path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
src/components/Interactive/FilterBox/index.js
ndlib/usurper
import React from 'react' import PropTypes from 'prop-types' import typy from 'typy' import styles from './style.module.css' const FilterBox = (props) => { const hNum = typy(props.htag).isNumber ? props.htag : parseInt(props.htag.replace('h', ''), 10) const headerTextEl = React.createElement((hNum > 0 && hNum <= 6) ? ('h' + hNum) : 'span', { className: styles.headerText, }, props.title) return ( <div className={styles.filter}> <label role='search'> {headerTextEl} <input type='search' value={props.value} onChange={props.onChange} autoComplete='off' data-lpignore /> </label> </div> ) } FilterBox.propTypes = { title: PropTypes.string.isRequired, htag: PropTypes.oneOfType([ PropTypes.number, PropTypes.string, // Ex: '1', '4', 'h2', 'h4', etc. ]), value: PropTypes.string, onChange: PropTypes.func, } FilterBox.defaultProps = { htag: 0, value: '', } export default FilterBox
src/main/ui/src/store/app-context.js
jwboardman/whirlpool
import React from 'react'; const AppContext = React.createContext({ isLoggedIn: false, websocket: null, clientName: null, loginHandler: undefined, logoutHandler: undefined, removeStockHandler: undefined, removeUpDownHandler: undefined, removeWeatherHandler: undefined, stockList: [], upDownList: [], weatherList: [] }); export default AppContext;
src/BackgroundCells.js
TeaBough/react-big-calendar
import PropTypes from 'prop-types' import React from 'react' import { findDOMNode } from 'react-dom' import clsx from 'clsx' import * as dates from './utils/dates' import { notify } from './utils/helpers' import { dateCellSelection, getSlotAtX, pointInBox } from './utils/selection' import Selection, { getBoundsForNode, isEvent } from './Selection' class BackgroundCells extends React.Component { constructor(props, context) { super(props, context) this.state = { selecting: false, } } componentDidMount() { this.props.selectable && this._selectable() } componentWillUnmount() { this._teardownSelectable() } UNSAFE_componentWillReceiveProps(nextProps) { if (nextProps.selectable && !this.props.selectable) this._selectable() if (!nextProps.selectable && this.props.selectable) this._teardownSelectable() } render() { let { range, getNow, getters, date: currentDate, components: { dateCellWrapper: Wrapper }, } = this.props let { selecting, startIdx, endIdx } = this.state let current = getNow() return ( <div className="rbc-row-bg"> {range.map((date, index) => { let selected = selecting && index >= startIdx && index <= endIdx const { className, style } = getters.dayProp(date) return ( <Wrapper key={index} value={date} range={range}> <div style={style} className={clsx( 'rbc-day-bg', className, selected && 'rbc-selected-cell', dates.eq(date, current, 'day') && 'rbc-today', currentDate && dates.month(currentDate) !== dates.month(date) && 'rbc-off-range-bg' )} /> </Wrapper> ) })} </div> ) } _selectable() { let node = findDOMNode(this) let selector = (this._selector = new Selection(this.props.container, { longPressThreshold: this.props.longPressThreshold, })) let selectorClicksHandler = (point, actionType) => { if (!isEvent(findDOMNode(this), point)) { let rowBox = getBoundsForNode(node) let { range, rtl } = this.props if (pointInBox(rowBox, point)) { let currentCell = getSlotAtX(rowBox, point.x, rtl, range.length) this._selectSlot({ startIdx: currentCell, endIdx: currentCell, action: actionType, box: point, }) } } this._initial = {} this.setState({ selecting: false }) } selector.on('selecting', box => { let { range, rtl } = this.props let startIdx = -1 let endIdx = -1 if (!this.state.selecting) { notify(this.props.onSelectStart, [box]) this._initial = { x: box.x, y: box.y } } if (selector.isSelected(node)) { let nodeBox = getBoundsForNode(node) ;({ startIdx, endIdx } = dateCellSelection( this._initial, nodeBox, box, range.length, rtl )) } this.setState({ selecting: true, startIdx, endIdx, }) }) selector.on('beforeSelect', box => { if (this.props.selectable !== 'ignoreEvents') return return !isEvent(findDOMNode(this), box) }) selector.on('click', point => selectorClicksHandler(point, 'click')) selector.on('doubleClick', point => selectorClicksHandler(point, 'doubleClick') ) selector.on('select', bounds => { this._selectSlot({ ...this.state, action: 'select', bounds }) this._initial = {} this.setState({ selecting: false }) notify(this.props.onSelectEnd, [this.state]) }) } _teardownSelectable() { if (!this._selector) return this._selector.teardown() this._selector = null } _selectSlot({ endIdx, startIdx, action, bounds, box }) { if (endIdx !== -1 && startIdx !== -1) this.props.onSelectSlot && this.props.onSelectSlot({ start: startIdx, end: endIdx, action, bounds, box, resourceId: this.props.resourceId, }) } } BackgroundCells.propTypes = { date: PropTypes.instanceOf(Date), getNow: PropTypes.func.isRequired, getters: PropTypes.object.isRequired, components: PropTypes.object.isRequired, container: PropTypes.func, dayPropGetter: PropTypes.func, selectable: PropTypes.oneOf([true, false, 'ignoreEvents']), longPressThreshold: PropTypes.number, onSelectSlot: PropTypes.func.isRequired, onSelectEnd: PropTypes.func, onSelectStart: PropTypes.func, range: PropTypes.arrayOf(PropTypes.instanceOf(Date)), rtl: PropTypes.bool, type: PropTypes.string, resourceId: PropTypes.any, } export default BackgroundCells
test/ButtonToolbarSpec.js
bbc/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ButtonToolbar from '../src/ButtonToolbar'; import ButtonGroup from '../src/ButtonGroup'; import Button from '../src/Button'; describe('ButtonToolbar', () => { it('Should output a button toolbar', () => { let instance = ReactTestUtils.renderIntoDocument( <ButtonToolbar> <ButtonGroup> <Button> Title </Button> </ButtonGroup> </ButtonToolbar> ); let node = React.findDOMNode(instance); assert.equal(node.nodeName, 'DIV'); assert.ok(node.className.match(/\bbtn-toolbar\b/)); assert.equal(node.getAttribute('role'), 'toolbar'); }); });
ajax/libs/rxjs/2.2.28/rx.all.js
wmkcc/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false }; var root = (objectTypes[typeof window] && window) || this, freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports, freeModule = objectTypes[typeof module] && module && !module.nodeType && module, moduleExports = freeModule && freeModule.exports === freeExports && freeExports, freeGlobal = objectTypes[typeof global] && global; if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal)) { root = freeGlobal; } var Rx = { internals: {}, config: { Promise: root.Promise // Detect if promise exists }, helpers: { } }; // Defaults var noop = Rx.helpers.noop = function () { }, identity = Rx.helpers.identity = function (x) { return x; }, pluck = Rx.helpers.pluck = function (property) { return function (x) { return x[property]; }; }, just = Rx.helpers.just = function (value) { return function () { return value; }; }, defaultNow = Rx.helpers.defaultNow = Date.now, defaultComparer = Rx.helpers.defaultComparer = function (x, y) { return isEqual(x, y); }, defaultSubComparer = Rx.helpers.defaultSubComparer = function (x, y) { return x > y ? 1 : (x < y ? -1 : 0); }, defaultKeySerializer = Rx.helpers.defaultKeySerializer = function (x) { return x.toString(); }, defaultError = Rx.helpers.defaultError = function (err) { throw err; }, isPromise = Rx.helpers.isPromise = function (p) { return !!p && typeof p.then === 'function' && p.then !== Rx.Observable.prototype.then; }, asArray = Rx.helpers.asArray = function () { return Array.prototype.slice.call(arguments); }, not = Rx.helpers.not = function (a) { return !a; }; // Errors var sequenceContainsNoElements = 'Sequence contains no elements.'; var argumentOutOfRange = 'Argument out of range'; var objectDisposed = 'Object has been disposed'; function checkDisposed() { if (this.isDisposed) { throw new Error(objectDisposed); } } // Shim in iterator support var $iterator$ = (typeof Symbol === 'object' && Symbol.iterator) || '_es6shim_iterator_'; // Firefox ships a partial implementation using the name @@iterator. // https://bugzilla.mozilla.org/show_bug.cgi?id=907077#c14 // So use that name if we detect it. if (root.Set && typeof new root.Set()['@@iterator'] === 'function') { $iterator$ = '@@iterator'; } var doneEnumerator = { done: true, value: undefined }; /** `Object#toString` result shortcuts */ var argsClass = '[object Arguments]', arrayClass = '[object Array]', boolClass = '[object Boolean]', dateClass = '[object Date]', errorClass = '[object Error]', funcClass = '[object Function]', numberClass = '[object Number]', objectClass = '[object Object]', regexpClass = '[object RegExp]', stringClass = '[object String]'; var toString = Object.prototype.toString, hasOwnProperty = Object.prototype.hasOwnProperty, supportsArgsClass = toString.call(arguments) == argsClass, // For less <IE9 && FF<4 suportNodeClass, errorProto = Error.prototype, objectProto = Object.prototype, propertyIsEnumerable = objectProto.propertyIsEnumerable; try { suportNodeClass = !(toString.call(document) == objectClass && !({ 'toString': 0 } + '')); } catch(e) { suportNodeClass = true; } var shadowedProps = [ 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf' ]; var nonEnumProps = {}; nonEnumProps[arrayClass] = nonEnumProps[dateClass] = nonEnumProps[numberClass] = { 'constructor': true, 'toLocaleString': true, 'toString': true, 'valueOf': true }; nonEnumProps[boolClass] = nonEnumProps[stringClass] = { 'constructor': true, 'toString': true, 'valueOf': true }; nonEnumProps[errorClass] = nonEnumProps[funcClass] = nonEnumProps[regexpClass] = { 'constructor': true, 'toString': true }; nonEnumProps[objectClass] = { 'constructor': true }; var support = {}; (function () { var ctor = function() { this.x = 1; }, props = []; ctor.prototype = { 'valueOf': 1, 'y': 1 }; for (var key in new ctor) { props.push(key); } for (key in arguments) { } // Detect if `name` or `message` properties of `Error.prototype` are enumerable by default. support.enumErrorProps = propertyIsEnumerable.call(errorProto, 'message') || propertyIsEnumerable.call(errorProto, 'name'); // Detect if `prototype` properties are enumerable by default. support.enumPrototypes = propertyIsEnumerable.call(ctor, 'prototype'); // Detect if `arguments` object indexes are non-enumerable support.nonEnumArgs = key != 0; // Detect if properties shadowing those on `Object.prototype` are non-enumerable. support.nonEnumShadows = !/valueOf/.test(props); }(1)); function isObject(value) { // check if the value is the ECMAScript language type of Object // http://es5.github.io/#x8 // and avoid a V8 bug // https://code.google.com/p/v8/issues/detail?id=2291 var type = typeof value; return value && (type == 'function' || type == 'object') || false; } function keysIn(object) { var result = []; if (!isObject(object)) { return result; } if (support.nonEnumArgs && object.length && isArguments(object)) { object = slice.call(object); } var skipProto = support.enumPrototypes && typeof object == 'function', skipErrorProps = support.enumErrorProps && (object === errorProto || object instanceof Error); for (var key in object) { if (!(skipProto && key == 'prototype') && !(skipErrorProps && (key == 'message' || key == 'name'))) { result.push(key); } } if (support.nonEnumShadows && object !== objectProto) { var ctor = object.constructor, index = -1, length = shadowedProps.length; if (object === (ctor && ctor.prototype)) { var className = object === stringProto ? stringClass : object === errorProto ? errorClass : toString.call(object), nonEnum = nonEnumProps[className]; } while (++index < length) { key = shadowedProps[index]; if (!(nonEnum && nonEnum[key]) && hasOwnProperty.call(object, key)) { result.push(key); } } } return result; } function internalFor(object, callback, keysFunc) { var index = -1, props = keysFunc(object), length = props.length; while (++index < length) { var key = props[index]; if (callback(object[key], key, object) === false) { break; } } return object; } function internalForIn(object, callback) { return internalFor(object, callback, keysIn); } function isNode(value) { // IE < 9 presents DOM nodes as `Object` objects except they have `toString` // methods that are `typeof` "string" and still can coerce nodes to strings return typeof value.toString != 'function' && typeof (value + '') == 'string'; } function isArguments(value) { return (value && typeof value == 'object') ? toString.call(value) == argsClass : false; } // fallback for browsers that can't detect `arguments` objects by [[Class]] if (!supportsArgsClass) { isArguments = function(value) { return (value && typeof value == 'object') ? hasOwnProperty.call(value, 'callee') : false; }; } function isFunction(value) { return typeof value == 'function' || false; } // fallback for older versions of Chrome and Safari if (isFunction(/x/)) { isFunction = function(value) { return typeof value == 'function' && toString.call(value) == funcClass; }; } var isEqual = Rx.internals.isEqual = function (x, y) { return deepEquals(x, y, [], []); }; /** @private * Used for deep comparison **/ function deepEquals(a, b, stackA, stackB) { // exit early for identical values if (a === b) { // treat `+0` vs. `-0` as not equal return a !== 0 || (1 / a == 1 / b); } var type = typeof a, otherType = typeof b; // exit early for unlike primitive values if (a === a && (a == null || b == null || (type != 'function' && type != 'object' && otherType != 'function' && otherType != 'object'))) { return false; } // compare [[Class]] names var className = toString.call(a), otherClass = toString.call(b); if (className == argsClass) { className = objectClass; } if (otherClass == argsClass) { otherClass = objectClass; } if (className != otherClass) { return false; } switch (className) { case boolClass: case dateClass: // coerce dates and booleans to numbers, dates to milliseconds and booleans // to `1` or `0` treating invalid dates coerced to `NaN` as not equal return +a == +b; case numberClass: // treat `NaN` vs. `NaN` as equal return (a != +a) ? b != +b // but treat `-0` vs. `+0` as not equal : (a == 0 ? (1 / a == 1 / b) : a == +b); case regexpClass: case stringClass: // coerce regexes to strings (http://es5.github.io/#x15.10.6.4) // treat string primitives and their corresponding object instances as equal return a == String(b); } var isArr = className == arrayClass; if (!isArr) { // exit for functions and DOM nodes if (className != objectClass || (!support.nodeClass && (isNode(a) || isNode(b)))) { return false; } // in older versions of Opera, `arguments` objects have `Array` constructors var ctorA = !support.argsObject && isArguments(a) ? Object : a.constructor, ctorB = !support.argsObject && isArguments(b) ? Object : b.constructor; // non `Object` object instances with different constructors are not equal if (ctorA != ctorB && !(hasOwnProperty.call(a, 'constructor') && hasOwnProperty.call(b, 'constructor')) && !(isFunction(ctorA) && ctorA instanceof ctorA && isFunction(ctorB) && ctorB instanceof ctorB) && ('constructor' in a && 'constructor' in b) ) { return false; } } // assume cyclic structures are equal // the algorithm for detecting cyclic structures is adapted from ES 5.1 // section 15.12.3, abstract operation `JO` (http://es5.github.io/#x15.12.3) var initedStack = !stackA; stackA || (stackA = []); stackB || (stackB = []); var length = stackA.length; while (length--) { if (stackA[length] == a) { return stackB[length] == b; } } var size = 0; result = true; // add `a` and `b` to the stack of traversed objects stackA.push(a); stackB.push(b); // recursively compare objects and arrays (susceptible to call stack limits) if (isArr) { // compare lengths to determine if a deep comparison is necessary length = a.length; size = b.length; result = size == length; if (result) { // deep compare the contents, ignoring non-numeric properties while (size--) { var index = length, value = b[size]; if (!(result = deepEquals(a[size], value, stackA, stackB))) { break; } } } } else { // deep compare objects using `forIn`, instead of `forOwn`, to avoid `Object.keys` // which, in this case, is more costly internalForIn(b, function(value, key, b) { if (hasOwnProperty.call(b, key)) { // count the number of properties. size++; // deep compare each property value. return (result = hasOwnProperty.call(a, key) && deepEquals(a[key], value, stackA, stackB)); } }); if (result) { // ensure both objects have the same number of properties internalForIn(a, function(value, key, a) { if (hasOwnProperty.call(a, key)) { // `size` will be `-1` if `a` has more properties than `b` return (result = --size > -1); } }); } } stackA.pop(); stackB.pop(); return result; } var slice = Array.prototype.slice; function argsOrArray(args, idx) { return args.length === 1 && Array.isArray(args[idx]) ? args[idx] : slice.call(args); } var hasProp = {}.hasOwnProperty; /** @private */ var inherits = this.inherits = Rx.internals.inherits = function (child, parent) { function __() { this.constructor = child; } __.prototype = parent.prototype; child.prototype = new __(); }; /** @private */ var addProperties = Rx.internals.addProperties = function (obj) { var sources = slice.call(arguments, 1); for (var i = 0, len = sources.length; i < len; i++) { var source = sources[i]; for (var prop in source) { obj[prop] = source[prop]; } } }; // Rx Utils var addRef = Rx.internals.addRef = function (xs, r) { return new AnonymousObservable(function (observer) { return new CompositeDisposable(r.getDisposable(), xs.subscribe(observer)); }); }; // Collection polyfills function arrayInitialize(count, factory) { var a = new Array(count); for (var i = 0; i < count; i++) { a[i] = factory(); } return a; } // Collections var IndexedItem = function (id, value) { this.id = id; this.value = value; }; IndexedItem.prototype.compareTo = function (other) { var c = this.value.compareTo(other.value); if (c === 0) { c = this.id - other.id; } return c; }; // Priority Queue for Scheduling var PriorityQueue = Rx.internals.PriorityQueue = function (capacity) { this.items = new Array(capacity); this.length = 0; }; var priorityProto = PriorityQueue.prototype; priorityProto.isHigherPriority = function (left, right) { return this.items[left].compareTo(this.items[right]) < 0; }; priorityProto.percolate = function (index) { if (index >= this.length || index < 0) { return; } var parent = index - 1 >> 1; if (parent < 0 || parent === index) { return; } if (this.isHigherPriority(index, parent)) { var temp = this.items[index]; this.items[index] = this.items[parent]; this.items[parent] = temp; this.percolate(parent); } }; priorityProto.heapify = function (index) { if (index === undefined) { index = 0; } if (index >= this.length || index < 0) { return; } var left = 2 * index + 1, right = 2 * index + 2, first = index; if (left < this.length && this.isHigherPriority(left, first)) { first = left; } if (right < this.length && this.isHigherPriority(right, first)) { first = right; } if (first !== index) { var temp = this.items[index]; this.items[index] = this.items[first]; this.items[first] = temp; this.heapify(first); } }; priorityProto.peek = function () { return this.items[0].value; }; priorityProto.removeAt = function (index) { this.items[index] = this.items[--this.length]; delete this.items[this.length]; this.heapify(); }; priorityProto.dequeue = function () { var result = this.peek(); this.removeAt(0); return result; }; priorityProto.enqueue = function (item) { var index = this.length++; this.items[index] = new IndexedItem(PriorityQueue.count++, item); this.percolate(index); }; priorityProto.remove = function (item) { for (var i = 0; i < this.length; i++) { if (this.items[i].value === item) { this.removeAt(i); return true; } } return false; }; PriorityQueue.count = 0; /** * Represents a group of disposable resources that are disposed together. * @constructor */ var CompositeDisposable = Rx.CompositeDisposable = function () { this.disposables = argsOrArray(arguments, 0); this.isDisposed = false; this.length = this.disposables.length; }; var CompositeDisposablePrototype = CompositeDisposable.prototype; /** * Adds a disposable to the CompositeDisposable or disposes the disposable if the CompositeDisposable is disposed. * @param {Mixed} item Disposable to add. */ CompositeDisposablePrototype.add = function (item) { if (this.isDisposed) { item.dispose(); } else { this.disposables.push(item); this.length++; } }; /** * Removes and disposes the first occurrence of a disposable from the CompositeDisposable. * @param {Mixed} item Disposable to remove. * @returns {Boolean} true if found; false otherwise. */ CompositeDisposablePrototype.remove = function (item) { var shouldDispose = false; if (!this.isDisposed) { var idx = this.disposables.indexOf(item); if (idx !== -1) { shouldDispose = true; this.disposables.splice(idx, 1); this.length--; item.dispose(); } } return shouldDispose; }; /** * Disposes all disposables in the group and removes them from the group. */ CompositeDisposablePrototype.dispose = function () { if (!this.isDisposed) { this.isDisposed = true; var currentDisposables = this.disposables.slice(0); this.disposables = []; this.length = 0; for (var i = 0, len = currentDisposables.length; i < len; i++) { currentDisposables[i].dispose(); } } }; /** * Removes and disposes all disposables from the CompositeDisposable, but does not dispose the CompositeDisposable. */ CompositeDisposablePrototype.clear = function () { var currentDisposables = this.disposables.slice(0); this.disposables = []; this.length = 0; for (var i = 0, len = currentDisposables.length; i < len; i++) { currentDisposables[i].dispose(); } }; /** * Determines whether the CompositeDisposable contains a specific disposable. * @param {Mixed} item Disposable to search for. * @returns {Boolean} true if the disposable was found; otherwise, false. */ CompositeDisposablePrototype.contains = function (item) { return this.disposables.indexOf(item) !== -1; }; /** * Converts the existing CompositeDisposable to an array of disposables * @returns {Array} An array of disposable objects. */ CompositeDisposablePrototype.toArray = function () { return this.disposables.slice(0); }; /** * Provides a set of static methods for creating Disposables. * * @constructor * @param {Function} dispose Action to run during the first call to dispose. The action is guaranteed to be run at most once. */ var Disposable = Rx.Disposable = function (action) { this.isDisposed = false; this.action = action || noop; }; /** Performs the task of cleaning up resources. */ Disposable.prototype.dispose = function () { if (!this.isDisposed) { this.action(); this.isDisposed = true; } }; /** * Creates a disposable object that invokes the specified action when disposed. * @param {Function} dispose Action to run during the first call to dispose. The action is guaranteed to be run at most once. * @return {Disposable} The disposable object that runs the given action upon disposal. */ var disposableCreate = Disposable.create = function (action) { return new Disposable(action); }; /** * Gets the disposable that does nothing when disposed. */ var disposableEmpty = Disposable.empty = { dispose: noop }; var BooleanDisposable = (function () { function BooleanDisposable (isSingle) { this.isSingle = isSingle; this.isDisposed = false; this.current = null; } var booleanDisposablePrototype = BooleanDisposable.prototype; /** * Gets the underlying disposable. * @return The underlying disposable. */ booleanDisposablePrototype.getDisposable = function () { return this.current; }; /** * Sets the underlying disposable. * @param {Disposable} value The new underlying disposable. */ booleanDisposablePrototype.setDisposable = function (value) { if (this.current && this.isSingle) { throw new Error('Disposable has already been assigned'); } var shouldDispose = this.isDisposed, old; if (!shouldDispose) { old = this.current; this.current = value; } if (old) { old.dispose(); } if (shouldDispose && value) { value.dispose(); } }; /** * Disposes the underlying disposable as well as all future replacements. */ booleanDisposablePrototype.dispose = function () { var old; if (!this.isDisposed) { this.isDisposed = true; old = this.current; this.current = null; } if (old) { old.dispose(); } }; return BooleanDisposable; }()); /** * Represents a disposable resource which only allows a single assignment of its underlying disposable resource. * If an underlying disposable resource has already been set, future attempts to set the underlying disposable resource will throw an Error. */ var SingleAssignmentDisposable = Rx.SingleAssignmentDisposable = (function (super_) { inherits(SingleAssignmentDisposable, super_); function SingleAssignmentDisposable() { super_.call(this, true); } return SingleAssignmentDisposable; }(BooleanDisposable)); /** * Represents a disposable resource whose underlying disposable resource can be replaced by another disposable resource, causing automatic disposal of the previous underlying disposable resource. */ var SerialDisposable = Rx.SerialDisposable = (function (super_) { inherits(SerialDisposable, super_); function SerialDisposable() { super_.call(this, false); } return SerialDisposable; }(BooleanDisposable)); /** * Represents a disposable resource that only disposes its underlying disposable resource when all dependent disposable objects have been disposed. */ var RefCountDisposable = Rx.RefCountDisposable = (function () { function InnerDisposable(disposable) { this.disposable = disposable; this.disposable.count++; this.isInnerDisposed = false; } InnerDisposable.prototype.dispose = function () { if (!this.disposable.isDisposed) { if (!this.isInnerDisposed) { this.isInnerDisposed = true; this.disposable.count--; if (this.disposable.count === 0 && this.disposable.isPrimaryDisposed) { this.disposable.isDisposed = true; this.disposable.underlyingDisposable.dispose(); } } } }; /** * Initializes a new instance of the RefCountDisposable with the specified disposable. * @constructor * @param {Disposable} disposable Underlying disposable. */ function RefCountDisposable(disposable) { this.underlyingDisposable = disposable; this.isDisposed = false; this.isPrimaryDisposed = false; this.count = 0; } /** * Disposes the underlying disposable only when all dependent disposables have been disposed */ RefCountDisposable.prototype.dispose = function () { if (!this.isDisposed) { if (!this.isPrimaryDisposed) { this.isPrimaryDisposed = true; if (this.count === 0) { this.isDisposed = true; this.underlyingDisposable.dispose(); } } } }; /** * Returns a dependent disposable that when disposed decreases the refcount on the underlying disposable. * @returns {Disposable} A dependent disposable contributing to the reference count that manages the underlying disposable's lifetime. */ RefCountDisposable.prototype.getDisposable = function () { return this.isDisposed ? disposableEmpty : new InnerDisposable(this); }; return RefCountDisposable; })(); function ScheduledDisposable(scheduler, disposable) { this.scheduler = scheduler; this.disposable = disposable; this.isDisposed = false; } ScheduledDisposable.prototype.dispose = function () { var parent = this; this.scheduler.schedule(function () { if (!parent.isDisposed) { parent.isDisposed = true; parent.disposable.dispose(); } }); }; var ScheduledItem = Rx.internals.ScheduledItem = function (scheduler, state, action, dueTime, comparer) { this.scheduler = scheduler; this.state = state; this.action = action; this.dueTime = dueTime; this.comparer = comparer || defaultSubComparer; this.disposable = new SingleAssignmentDisposable(); } ScheduledItem.prototype.invoke = function () { this.disposable.setDisposable(this.invokeCore()); }; ScheduledItem.prototype.compareTo = function (other) { return this.comparer(this.dueTime, other.dueTime); }; ScheduledItem.prototype.isCancelled = function () { return this.disposable.isDisposed; }; ScheduledItem.prototype.invokeCore = function () { return this.action(this.scheduler, this.state); }; /** Provides a set of static properties to access commonly used schedulers. */ var Scheduler = Rx.Scheduler = (function () { /** * @constructor * @private */ function Scheduler(now, schedule, scheduleRelative, scheduleAbsolute) { this.now = now; this._schedule = schedule; this._scheduleRelative = scheduleRelative; this._scheduleAbsolute = scheduleAbsolute; } function invokeRecImmediate(scheduler, pair) { var state = pair.first, action = pair.second, group = new CompositeDisposable(), recursiveAction = function (state1) { action(state1, function (state2) { var isAdded = false, isDone = false, d = scheduler.scheduleWithState(state2, function (scheduler1, state3) { if (isAdded) { group.remove(d); } else { isDone = true; } recursiveAction(state3); return disposableEmpty; }); if (!isDone) { group.add(d); isAdded = true; } }); }; recursiveAction(state); return group; } function invokeRecDate(scheduler, pair, method) { var state = pair.first, action = pair.second, group = new CompositeDisposable(), recursiveAction = function (state1) { action(state1, function (state2, dueTime1) { var isAdded = false, isDone = false, d = scheduler[method].call(scheduler, state2, dueTime1, function (scheduler1, state3) { if (isAdded) { group.remove(d); } else { isDone = true; } recursiveAction(state3); return disposableEmpty; }); if (!isDone) { group.add(d); isAdded = true; } }); }; recursiveAction(state); return group; } function invokeAction(scheduler, action) { action(); return disposableEmpty; } var schedulerProto = Scheduler.prototype; /** * Returns a scheduler that wraps the original scheduler, adding exception handling for scheduled actions. * @param {Function} handler Handler that's run if an exception is caught. The exception will be rethrown if the handler returns false. * @returns {Scheduler} Wrapper around the original scheduler, enforcing exception handling. */ schedulerProto.catchException = schedulerProto['catch'] = function (handler) { return new CatchScheduler(this, handler); }; /** * Schedules a periodic piece of work by dynamically discovering the scheduler's capabilities. The periodic task will be scheduled using window.setInterval for the base implementation. * @param {Number} period Period for running the work periodically. * @param {Function} action Action to be executed. * @returns {Disposable} The disposable object used to cancel the scheduled recurring action (best effort). */ schedulerProto.schedulePeriodic = function (period, action) { return this.schedulePeriodicWithState(null, period, function () { action(); }); }; /** * Schedules a periodic piece of work by dynamically discovering the scheduler's capabilities. The periodic task will be scheduled using window.setInterval for the base implementation. * @param {Mixed} state Initial state passed to the action upon the first iteration. * @param {Number} period Period for running the work periodically. * @param {Function} action Action to be executed, potentially updating the state. * @returns {Disposable} The disposable object used to cancel the scheduled recurring action (best effort). */ schedulerProto.schedulePeriodicWithState = function (state, period, action) { var s = state, id = setInterval(function () { s = action(s); }, period); return disposableCreate(function () { clearInterval(id); }); }; /** * Schedules an action to be executed. * @param {Function} action Action to execute. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.schedule = function (action) { return this._schedule(action, invokeAction); }; /** * Schedules an action to be executed. * @param state State passed to the action to be executed. * @param {Function} action Action to be executed. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.scheduleWithState = function (state, action) { return this._schedule(state, action); }; /** * Schedules an action to be executed after the specified relative due time. * @param {Function} action Action to execute. * @param {Number} dueTime Relative time after which to execute the action. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.scheduleWithRelative = function (dueTime, action) { return this._scheduleRelative(action, dueTime, invokeAction); }; /** * Schedules an action to be executed after dueTime. * @param state State passed to the action to be executed. * @param {Function} action Action to be executed. * @param {Number} dueTime Relative time after which to execute the action. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.scheduleWithRelativeAndState = function (state, dueTime, action) { return this._scheduleRelative(state, dueTime, action); }; /** * Schedules an action to be executed at the specified absolute due time. * @param {Function} action Action to execute. * @param {Number} dueTime Absolute time at which to execute the action. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.scheduleWithAbsolute = function (dueTime, action) { return this._scheduleAbsolute(action, dueTime, invokeAction); }; /** * Schedules an action to be executed at dueTime. * @param {Mixed} state State passed to the action to be executed. * @param {Function} action Action to be executed. * @param {Number}dueTime Absolute time at which to execute the action. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.scheduleWithAbsoluteAndState = function (state, dueTime, action) { return this._scheduleAbsolute(state, dueTime, action); }; /** * Schedules an action to be executed recursively. * @param {Function} action Action to execute recursively. The parameter passed to the action is used to trigger recursive scheduling of the action. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.scheduleRecursive = function (action) { return this.scheduleRecursiveWithState(action, function (_action, self) { _action(function () { self(_action); }); }); }; /** * Schedules an action to be executed recursively. * @param {Mixed} state State passed to the action to be executed. * @param {Function} action Action to execute recursively. The last parameter passed to the action is used to trigger recursive scheduling of the action, passing in recursive invocation state. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.scheduleRecursiveWithState = function (state, action) { return this.scheduleWithState({ first: state, second: action }, function (s, p) { return invokeRecImmediate(s, p); }); }; /** * Schedules an action to be executed recursively after a specified relative due time. * @param {Function} action Action to execute recursively. The parameter passed to the action is used to trigger recursive scheduling of the action at the specified relative time. * @param {Number}dueTime Relative time after which to execute the action for the first time. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.scheduleRecursiveWithRelative = function (dueTime, action) { return this.scheduleRecursiveWithRelativeAndState(action, dueTime, function (_action, self) { _action(function (dt) { self(_action, dt); }); }); }; /** * Schedules an action to be executed recursively after a specified relative due time. * @param {Mixed} state State passed to the action to be executed. * @param {Function} action Action to execute recursively. The last parameter passed to the action is used to trigger recursive scheduling of the action, passing in the recursive due time and invocation state. * @param {Number}dueTime Relative time after which to execute the action for the first time. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.scheduleRecursiveWithRelativeAndState = function (state, dueTime, action) { return this._scheduleRelative({ first: state, second: action }, dueTime, function (s, p) { return invokeRecDate(s, p, 'scheduleWithRelativeAndState'); }); }; /** * Schedules an action to be executed recursively at a specified absolute due time. * @param {Function} action Action to execute recursively. The parameter passed to the action is used to trigger recursive scheduling of the action at the specified absolute time. * @param {Number}dueTime Absolute time at which to execute the action for the first time. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.scheduleRecursiveWithAbsolute = function (dueTime, action) { return this.scheduleRecursiveWithAbsoluteAndState(action, dueTime, function (_action, self) { _action(function (dt) { self(_action, dt); }); }); }; /** * Schedules an action to be executed recursively at a specified absolute due time. * @param {Mixed} state State passed to the action to be executed. * @param {Function} action Action to execute recursively. The last parameter passed to the action is used to trigger recursive scheduling of the action, passing in the recursive due time and invocation state. * @param {Number}dueTime Absolute time at which to execute the action for the first time. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.scheduleRecursiveWithAbsoluteAndState = function (state, dueTime, action) { return this._scheduleAbsolute({ first: state, second: action }, dueTime, function (s, p) { return invokeRecDate(s, p, 'scheduleWithAbsoluteAndState'); }); }; /** Gets the current time according to the local machine's system clock. */ Scheduler.now = defaultNow; /** * Normalizes the specified TimeSpan value to a positive value. * @param {Number} timeSpan The time span value to normalize. * @returns {Number} The specified TimeSpan value if it is zero or positive; otherwise, 0 */ Scheduler.normalize = function (timeSpan) { if (timeSpan < 0) { timeSpan = 0; } return timeSpan; }; return Scheduler; }()); var normalizeTime = Scheduler.normalize; var SchedulePeriodicRecursive = Rx.internals.SchedulePeriodicRecursive = (function () { function tick(command, recurse) { recurse(0, this._period); try { this._state = this._action(this._state); } catch (e) { this._cancel.dispose(); throw e; } } function SchedulePeriodicRecursive(scheduler, state, period, action) { this._scheduler = scheduler; this._state = state; this._period = period; this._action = action; } SchedulePeriodicRecursive.prototype.start = function () { var d = new SingleAssignmentDisposable(); this._cancel = d; d.setDisposable(this._scheduler.scheduleRecursiveWithRelativeAndState(0, this._period, tick.bind(this))); return d; }; return SchedulePeriodicRecursive; }()); /** * Gets a scheduler that schedules work immediately on the current thread. */ var immediateScheduler = Scheduler.immediate = (function () { function scheduleNow(state, action) { return action(this, state); } function scheduleRelative(state, dueTime, action) { var dt = normalizeTime(dt); while (dt - this.now() > 0) { } return action(this, state); } function scheduleAbsolute(state, dueTime, action) { return this.scheduleWithRelativeAndState(state, dueTime - this.now(), action); } return new Scheduler(defaultNow, scheduleNow, scheduleRelative, scheduleAbsolute); }()); /** * Gets a scheduler that schedules work as soon as possible on the current thread. */ var currentThreadScheduler = Scheduler.currentThread = (function () { var queue; function runTrampoline (q) { var item; while (q.length > 0) { item = q.dequeue(); if (!item.isCancelled()) { // Note, do not schedule blocking work! while (item.dueTime - Scheduler.now() > 0) { } if (!item.isCancelled()) { item.invoke(); } } } } function scheduleNow(state, action) { return this.scheduleWithRelativeAndState(state, 0, action); } function scheduleRelative(state, dueTime, action) { var dt = this.now() + Scheduler.normalize(dueTime), si = new ScheduledItem(this, state, action, dt), t; if (!queue) { queue = new PriorityQueue(4); queue.enqueue(si); try { runTrampoline(queue); } catch (e) { throw e; } finally { queue = null; } } else { queue.enqueue(si); } return si.disposable; } function scheduleAbsolute(state, dueTime, action) { return this.scheduleWithRelativeAndState(state, dueTime - this.now(), action); } var currentScheduler = new Scheduler(defaultNow, scheduleNow, scheduleRelative, scheduleAbsolute); currentScheduler.scheduleRequired = function () { return queue === null; }; currentScheduler.ensureTrampoline = function (action) { if (queue === null) { return this.schedule(action); } else { return action(); } }; return currentScheduler; }()); var scheduleMethod, clearMethod = noop; (function () { var reNative = RegExp('^' + String(toString) .replace(/[.*+?^${}()|[\]\\]/g, '\\$&') .replace(/toString| for [^\]]+/g, '.*?') + '$' ); var setImmediate = typeof (setImmediate = freeGlobal && moduleExports && freeGlobal.setImmediate) == 'function' && !reNative.test(setImmediate) && setImmediate, clearImmediate = typeof (clearImmediate = freeGlobal && moduleExports && freeGlobal.clearImmediate) == 'function' && !reNative.test(clearImmediate) && clearImmediate; function postMessageSupported () { // Ensure not in a worker if (!root.postMessage || root.importScripts) { return false; } var isAsync = false, oldHandler = root.onmessage; // Test for async root.onmessage = function () { isAsync = true; }; root.postMessage('','*'); root.onmessage = oldHandler; return isAsync; } // Use in order, nextTick, setImmediate, postMessage, MessageChannel, script readystatechanged, setTimeout if (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') { scheduleMethod = process.nextTick; } else if (typeof setImmediate === 'function') { scheduleMethod = setImmediate; clearMethod = clearImmediate; } else if (postMessageSupported()) { var MSG_PREFIX = 'ms.rx.schedule' + Math.random(), tasks = {}, taskId = 0; function onGlobalPostMessage(event) { // Only if we're a match to avoid any other global events if (typeof event.data === 'string' && event.data.substring(0, MSG_PREFIX.length) === MSG_PREFIX) { var handleId = event.data.substring(MSG_PREFIX.length), action = tasks[handleId]; action(); delete tasks[handleId]; } } if (root.addEventListener) { root.addEventListener('message', onGlobalPostMessage, false); } else { root.attachEvent('onmessage', onGlobalPostMessage, false); } scheduleMethod = function (action) { var currentId = taskId++; tasks[currentId] = action; root.postMessage(MSG_PREFIX + currentId, '*'); }; } else if (!!root.MessageChannel) { var channel = new root.MessageChannel(), channelTasks = {}, channelTaskId = 0; channel.port1.onmessage = function (event) { var id = event.data, action = channelTasks[id]; action(); delete channelTasks[id]; }; scheduleMethod = function (action) { var id = channelTaskId++; channelTasks[id] = action; channel.port2.postMessage(id); }; } else if ('document' in root && 'onreadystatechange' in root.document.createElement('script')) { scheduleMethod = function (action) { var scriptElement = root.document.createElement('script'); scriptElement.onreadystatechange = function () { action(); scriptElement.onreadystatechange = null; scriptElement.parentNode.removeChild(scriptElement); scriptElement = null; }; root.document.documentElement.appendChild(scriptElement); }; } else { scheduleMethod = function (action) { return setTimeout(action, 0); }; clearMethod = clearTimeout; } }()); /** * Gets a scheduler that schedules work via a timed callback based upon platform. */ var timeoutScheduler = Scheduler.timeout = (function () { function scheduleNow(state, action) { var scheduler = this, disposable = new SingleAssignmentDisposable(); var id = scheduleMethod(function () { if (!disposable.isDisposed) { disposable.setDisposable(action(scheduler, state)); } }); return new CompositeDisposable(disposable, disposableCreate(function () { clearMethod(id); })); } function scheduleRelative(state, dueTime, action) { var scheduler = this, dt = Scheduler.normalize(dueTime); if (dt === 0) { return scheduler.scheduleWithState(state, action); } var disposable = new SingleAssignmentDisposable(); var id = setTimeout(function () { if (!disposable.isDisposed) { disposable.setDisposable(action(scheduler, state)); } }, dt); return new CompositeDisposable(disposable, disposableCreate(function () { clearTimeout(id); })); } function scheduleAbsolute(state, dueTime, action) { return this.scheduleWithRelativeAndState(state, dueTime - this.now(), action); } return new Scheduler(defaultNow, scheduleNow, scheduleRelative, scheduleAbsolute); })(); /** @private */ var CatchScheduler = (function (_super) { function localNow() { return this._scheduler.now(); } function scheduleNow(state, action) { return this._scheduler.scheduleWithState(state, this._wrap(action)); } function scheduleRelative(state, dueTime, action) { return this._scheduler.scheduleWithRelativeAndState(state, dueTime, this._wrap(action)); } function scheduleAbsolute(state, dueTime, action) { return this._scheduler.scheduleWithAbsoluteAndState(state, dueTime, this._wrap(action)); } inherits(CatchScheduler, _super); /** @private */ function CatchScheduler(scheduler, handler) { this._scheduler = scheduler; this._handler = handler; this._recursiveOriginal = null; this._recursiveWrapper = null; _super.call(this, localNow, scheduleNow, scheduleRelative, scheduleAbsolute); } /** @private */ CatchScheduler.prototype._clone = function (scheduler) { return new CatchScheduler(scheduler, this._handler); }; /** @private */ CatchScheduler.prototype._wrap = function (action) { var parent = this; return function (self, state) { try { return action(parent._getRecursiveWrapper(self), state); } catch (e) { if (!parent._handler(e)) { throw e; } return disposableEmpty; } }; }; /** @private */ CatchScheduler.prototype._getRecursiveWrapper = function (scheduler) { if (this._recursiveOriginal !== scheduler) { this._recursiveOriginal = scheduler; var wrapper = this._clone(scheduler); wrapper._recursiveOriginal = scheduler; wrapper._recursiveWrapper = wrapper; this._recursiveWrapper = wrapper; } return this._recursiveWrapper; }; /** @private */ CatchScheduler.prototype.schedulePeriodicWithState = function (state, period, action) { var self = this, failed = false, d = new SingleAssignmentDisposable(); d.setDisposable(this._scheduler.schedulePeriodicWithState(state, period, function (state1) { if (failed) { return null; } try { return action(state1); } catch (e) { failed = true; if (!self._handler(e)) { throw e; } d.dispose(); return null; } })); return d; }; return CatchScheduler; }(Scheduler)); /** * Represents a notification to an observer. */ var Notification = Rx.Notification = (function () { function Notification(kind, hasValue) { this.hasValue = hasValue == null ? false : hasValue; this.kind = kind; } var NotificationPrototype = Notification.prototype; /** * Invokes the delegate corresponding to the notification or the observer's method corresponding to the notification and returns the produced result. * * @memberOf Notification * @param {Any} observerOrOnNext Delegate to invoke for an OnNext notification or Observer to invoke the notification on.. * @param {Function} onError Delegate to invoke for an OnError notification. * @param {Function} onCompleted Delegate to invoke for an OnCompleted notification. * @returns {Any} Result produced by the observation. */ NotificationPrototype.accept = function (observerOrOnNext, onError, onCompleted) { if (arguments.length === 1 && typeof observerOrOnNext === 'object') { return this._acceptObservable(observerOrOnNext); } return this._accept(observerOrOnNext, onError, onCompleted); }; /** * Returns an observable sequence with a single notification. * * @memberOf Notification * @param {Scheduler} [scheduler] Scheduler to send out the notification calls on. * @returns {Observable} The observable sequence that surfaces the behavior of the notification upon subscription. */ NotificationPrototype.toObservable = function (scheduler) { var notification = this; scheduler || (scheduler = immediateScheduler); return new AnonymousObservable(function (observer) { return scheduler.schedule(function () { notification._acceptObservable(observer); if (notification.kind === 'N') { observer.onCompleted(); } }); }); }; return Notification; })(); /** * Creates an object that represents an OnNext notification to an observer. * @param {Any} value The value contained in the notification. * @returns {Notification} The OnNext notification containing the value. */ var notificationCreateOnNext = Notification.createOnNext = (function () { function _accept (onNext) { return onNext(this.value); } function _acceptObservable(observer) { return observer.onNext(this.value); } function toString () { return 'OnNext(' + this.value + ')'; } return function (value) { var notification = new Notification('N', true); notification.value = value; notification._accept = _accept; notification._acceptObservable = _acceptObservable; notification.toString = toString; return notification; }; }()); /** * Creates an object that represents an OnError notification to an observer. * @param {Any} error The exception contained in the notification. * @returns {Notification} The OnError notification containing the exception. */ var notificationCreateOnError = Notification.createOnError = (function () { function _accept (onNext, onError) { return onError(this.exception); } function _acceptObservable(observer) { return observer.onError(this.exception); } function toString () { return 'OnError(' + this.exception + ')'; } return function (exception) { var notification = new Notification('E'); notification.exception = exception; notification._accept = _accept; notification._acceptObservable = _acceptObservable; notification.toString = toString; return notification; }; }()); /** * Creates an object that represents an OnCompleted notification to an observer. * @returns {Notification} The OnCompleted notification. */ var notificationCreateOnCompleted = Notification.createOnCompleted = (function () { function _accept (onNext, onError, onCompleted) { return onCompleted(); } function _acceptObservable(observer) { return observer.onCompleted(); } function toString () { return 'OnCompleted()'; } return function () { var notification = new Notification('C'); notification._accept = _accept; notification._acceptObservable = _acceptObservable; notification.toString = toString; return notification; }; }()); var Enumerator = Rx.internals.Enumerator = function (next) { this._next = next; }; Enumerator.prototype.next = function () { return this._next(); }; Enumerator.prototype[$iterator$] = function () { return this; } var Enumerable = Rx.internals.Enumerable = function (iterator) { this._iterator = iterator; }; Enumerable.prototype[$iterator$] = function () { return this._iterator(); }; Enumerable.prototype.concat = function () { var sources = this; return new AnonymousObservable(function (observer) { var e; try { e = sources[$iterator$](); } catch(err) { observer.onError(); return; } var isDisposed, subscription = new SerialDisposable(); var cancelable = immediateScheduler.scheduleRecursive(function (self) { var currentItem; if (isDisposed) { return; } try { currentItem = e.next(); } catch (ex) { observer.onError(ex); return; } if (currentItem.done) { observer.onCompleted(); return; } // Check if promise var currentValue = currentItem.value; isPromise(currentValue) && (currentValue = observableFromPromise(currentValue)); var d = new SingleAssignmentDisposable(); subscription.setDisposable(d); d.setDisposable(currentValue.subscribe( observer.onNext.bind(observer), observer.onError.bind(observer), function () { self(); }) ); }); return new CompositeDisposable(subscription, cancelable, disposableCreate(function () { isDisposed = true; })); }); }; Enumerable.prototype.catchException = function () { var sources = this; return new AnonymousObservable(function (observer) { var e; try { e = sources[$iterator$](); } catch(err) { observer.onError(); return; } var isDisposed, lastException, subscription = new SerialDisposable(); var cancelable = immediateScheduler.scheduleRecursive(function (self) { if (isDisposed) { return; } var currentItem; try { currentItem = e.next(); } catch (ex) { observer.onError(ex); return; } if (currentItem.done) { if (lastException) { observer.onError(lastException); } else { observer.onCompleted(); } return; } // Check if promise var currentValue = currentItem.value; isPromise(currentValue) && (currentValue = observableFromPromise(currentValue)); var d = new SingleAssignmentDisposable(); subscription.setDisposable(d); d.setDisposable(currentValue.subscribe( observer.onNext.bind(observer), function (exn) { lastException = exn; self(); }, observer.onCompleted.bind(observer))); }); return new CompositeDisposable(subscription, cancelable, disposableCreate(function () { isDisposed = true; })); }); }; var enumerableRepeat = Enumerable.repeat = function (value, repeatCount) { if (repeatCount == null) { repeatCount = -1; } return new Enumerable(function () { var left = repeatCount; return new Enumerator(function () { if (left === 0) { return doneEnumerator; } if (left > 0) { left--; } return { done: false, value: value }; }); }); }; var enumerableFor = Enumerable.forEach = function (source, selector, thisArg) { selector || (selector = identity); return new Enumerable(function () { var index = -1; return new Enumerator( function () { return ++index < source.length ? { done: false, value: selector.call(thisArg, source[index], index, source) } : doneEnumerator; }); }); }; /** * Supports push-style iteration over an observable sequence. */ var Observer = Rx.Observer = function () { }; /** * Creates a notification callback from an observer. * * @param observer Observer object. * @returns The action that forwards its input notification to the underlying observer. */ Observer.prototype.toNotifier = function () { var observer = this; return function (n) { return n.accept(observer); }; }; /** * Hides the identity of an observer. * @returns An observer that hides the identity of the specified observer. */ Observer.prototype.asObserver = function () { return new AnonymousObserver(this.onNext.bind(this), this.onError.bind(this), this.onCompleted.bind(this)); }; /** * Checks access to the observer for grammar violations. This includes checking for multiple OnError or OnCompleted calls, as well as reentrancy in any of the observer methods. * If a violation is detected, an Error is thrown from the offending observer method call. * * @returns An observer that checks callbacks invocations against the observer grammar and, if the checks pass, forwards those to the specified observer. */ Observer.prototype.checked = function () { return new CheckedObserver(this); }; /** * Creates an observer from the specified OnNext, along with optional OnError, and OnCompleted actions. * * @static * @memberOf Observer * @param {Function} [onNext] Observer's OnNext action implementation. * @param {Function} [onError] Observer's OnError action implementation. * @param {Function} [onCompleted] Observer's OnCompleted action implementation. * @returns {Observer} The observer object implemented using the given actions. */ var observerCreate = Observer.create = function (onNext, onError, onCompleted) { onNext || (onNext = noop); onError || (onError = defaultError); onCompleted || (onCompleted = noop); return new AnonymousObserver(onNext, onError, onCompleted); }; /** * Creates an observer from a notification callback. * * @static * @memberOf Observer * @param {Function} handler Action that handles a notification. * @returns The observer object that invokes the specified handler using a notification corresponding to each message it receives. */ Observer.fromNotifier = function (handler) { return new AnonymousObserver(function (x) { return handler(notificationCreateOnNext(x)); }, function (exception) { return handler(notificationCreateOnError(exception)); }, function () { return handler(notificationCreateOnCompleted()); }); }; /** * Schedules the invocation of observer methods on the given scheduler. * @param {Scheduler} scheduler Scheduler to schedule observer messages on. * @returns {Observer} Observer whose messages are scheduled on the given scheduler. */ Observer.notifyOn = function (scheduler) { return new ObserveOnObserver(scheduler, this); }; /** * Abstract base class for implementations of the Observer class. * This base class enforces the grammar of observers where OnError and OnCompleted are terminal messages. */ var AbstractObserver = Rx.internals.AbstractObserver = (function (_super) { inherits(AbstractObserver, _super); /** * Creates a new observer in a non-stopped state. * * @constructor */ function AbstractObserver() { this.isStopped = false; _super.call(this); } /** * Notifies the observer of a new element in the sequence. * * @memberOf AbstractObserver * @param {Any} value Next element in the sequence. */ AbstractObserver.prototype.onNext = function (value) { if (!this.isStopped) { this.next(value); } }; /** * Notifies the observer that an exception has occurred. * * @memberOf AbstractObserver * @param {Any} error The error that has occurred. */ AbstractObserver.prototype.onError = function (error) { if (!this.isStopped) { this.isStopped = true; this.error(error); } }; /** * Notifies the observer of the end of the sequence. */ AbstractObserver.prototype.onCompleted = function () { if (!this.isStopped) { this.isStopped = true; this.completed(); } }; /** * Disposes the observer, causing it to transition to the stopped state. */ AbstractObserver.prototype.dispose = function () { this.isStopped = true; }; AbstractObserver.prototype.fail = function (e) { if (!this.isStopped) { this.isStopped = true; this.error(e); return true; } return false; }; return AbstractObserver; }(Observer)); /** * Class to create an Observer instance from delegate-based implementations of the on* methods. */ var AnonymousObserver = Rx.AnonymousObserver = (function (_super) { inherits(AnonymousObserver, _super); /** * Creates an observer from the specified OnNext, OnError, and OnCompleted actions. * @param {Any} onNext Observer's OnNext action implementation. * @param {Any} onError Observer's OnError action implementation. * @param {Any} onCompleted Observer's OnCompleted action implementation. */ function AnonymousObserver(onNext, onError, onCompleted) { _super.call(this); this._onNext = onNext; this._onError = onError; this._onCompleted = onCompleted; } /** * Calls the onNext action. * @param {Any} value Next element in the sequence. */ AnonymousObserver.prototype.next = function (value) { this._onNext(value); }; /** * Calls the onError action. * @param {Any} error The error that has occurred. */ AnonymousObserver.prototype.error = function (exception) { this._onError(exception); }; /** * Calls the onCompleted action. */ AnonymousObserver.prototype.completed = function () { this._onCompleted(); }; return AnonymousObserver; }(AbstractObserver)); var CheckedObserver = (function (_super) { inherits(CheckedObserver, _super); function CheckedObserver(observer) { _super.call(this); this._observer = observer; this._state = 0; // 0 - idle, 1 - busy, 2 - done } var CheckedObserverPrototype = CheckedObserver.prototype; CheckedObserverPrototype.onNext = function (value) { this.checkAccess(); try { this._observer.onNext(value); } catch (e) { throw e; } finally { this._state = 0; } }; CheckedObserverPrototype.onError = function (err) { this.checkAccess(); try { this._observer.onError(err); } catch (e) { throw e; } finally { this._state = 2; } }; CheckedObserverPrototype.onCompleted = function () { this.checkAccess(); try { this._observer.onCompleted(); } catch (e) { throw e; } finally { this._state = 2; } }; CheckedObserverPrototype.checkAccess = function () { if (this._state === 1) { throw new Error('Re-entrancy detected'); } if (this._state === 2) { throw new Error('Observer completed'); } if (this._state === 0) { this._state = 1; } }; return CheckedObserver; }(Observer)); var ScheduledObserver = Rx.internals.ScheduledObserver = (function (_super) { inherits(ScheduledObserver, _super); function ScheduledObserver(scheduler, observer) { _super.call(this); this.scheduler = scheduler; this.observer = observer; this.isAcquired = false; this.hasFaulted = false; this.queue = []; this.disposable = new SerialDisposable(); } ScheduledObserver.prototype.next = function (value) { var self = this; this.queue.push(function () { self.observer.onNext(value); }); }; ScheduledObserver.prototype.error = function (exception) { var self = this; this.queue.push(function () { self.observer.onError(exception); }); }; ScheduledObserver.prototype.completed = function () { var self = this; this.queue.push(function () { self.observer.onCompleted(); }); }; ScheduledObserver.prototype.ensureActive = function () { var isOwner = false, parent = this; if (!this.hasFaulted && this.queue.length > 0) { isOwner = !this.isAcquired; this.isAcquired = true; } if (isOwner) { this.disposable.setDisposable(this.scheduler.scheduleRecursive(function (self) { var work; if (parent.queue.length > 0) { work = parent.queue.shift(); } else { parent.isAcquired = false; return; } try { work(); } catch (ex) { parent.queue = []; parent.hasFaulted = true; throw ex; } self(); })); } }; ScheduledObserver.prototype.dispose = function () { _super.prototype.dispose.call(this); this.disposable.dispose(); }; return ScheduledObserver; }(AbstractObserver)); /** @private */ var ObserveOnObserver = (function (_super) { inherits(ObserveOnObserver, _super); /** @private */ function ObserveOnObserver() { _super.apply(this, arguments); } /** @private */ ObserveOnObserver.prototype.next = function (value) { _super.prototype.next.call(this, value); this.ensureActive(); }; /** @private */ ObserveOnObserver.prototype.error = function (e) { _super.prototype.error.call(this, e); this.ensureActive(); }; /** @private */ ObserveOnObserver.prototype.completed = function () { _super.prototype.completed.call(this); this.ensureActive(); }; return ObserveOnObserver; })(ScheduledObserver); var observableProto; /** * Represents a push-style collection. */ var Observable = Rx.Observable = (function () { function Observable(subscribe) { this._subscribe = subscribe; } observableProto = Observable.prototype; /** * Subscribes an observer to the observable sequence. * * @example * 1 - source.subscribe(); * 2 - source.subscribe(observer); * 3 - source.subscribe(function (x) { console.log(x); }); * 4 - source.subscribe(function (x) { console.log(x); }, function (err) { console.log(err); }); * 5 - source.subscribe(function (x) { console.log(x); }, function (err) { console.log(err); }, function () { console.log('done'); }); * @param {Mixed} [observerOrOnNext] The object that is to receive notifications or an action to invoke for each element in the observable sequence. * @param {Function} [onError] Action to invoke upon exceptional termination of the observable sequence. * @param {Function} [onCompleted] Action to invoke upon graceful termination of the observable sequence. * @returns {Diposable} The source sequence whose subscriptions and unsubscriptions happen on the specified scheduler. */ observableProto.subscribe = observableProto.forEach = function (observerOrOnNext, onError, onCompleted) { var subscriber = typeof observerOrOnNext === 'object' ? observerOrOnNext : observerCreate(observerOrOnNext, onError, onCompleted); return this._subscribe(subscriber); }; return Observable; })(); /** * Wraps the source sequence in order to run its observer callbacks on the specified scheduler. * * This only invokes observer callbacks on a scheduler. In case the subscription and/or unsubscription actions have side-effects * that require to be run on a scheduler, use subscribeOn. * * @param {Scheduler} scheduler Scheduler to notify observers on. * @returns {Observable} The source sequence whose observations happen on the specified scheduler. */ observableProto.observeOn = function (scheduler) { var source = this; return new AnonymousObservable(function (observer) { return source.subscribe(new ObserveOnObserver(scheduler, observer)); }); }; /** * Wraps the source sequence in order to run its subscription and unsubscription logic on the specified scheduler. This operation is not commonly used; * see the remarks section for more information on the distinction between subscribeOn and observeOn. * This only performs the side-effects of subscription and unsubscription on the specified scheduler. In order to invoke observer * callbacks on a scheduler, use observeOn. * @param {Scheduler} scheduler Scheduler to perform subscription and unsubscription actions on. * @returns {Observable} The source sequence whose subscriptions and unsubscriptions happen on the specified scheduler. */ observableProto.subscribeOn = function (scheduler) { var source = this; return new AnonymousObservable(function (observer) { var m = new SingleAssignmentDisposable(), d = new SerialDisposable(); d.setDisposable(m); m.setDisposable(scheduler.schedule(function () { d.setDisposable(new ScheduledDisposable(scheduler, source.subscribe(observer))); })); return d; }); }; /** * Converts a Promise to an Observable sequence * @param {Promise} An ES6 Compliant promise. * @returns {Observable} An Observable sequence which wraps the existing promise success and failure. */ var observableFromPromise = Observable.fromPromise = function (promise) { return new AnonymousObservable(function (observer) { promise.then( function (value) { observer.onNext(value); observer.onCompleted(); }, function (reason) { observer.onError(reason); }); return function () { if (promise && promise.abort) { promise.abort(); } } }); }; /* * Converts an existing observable sequence to an ES6 Compatible Promise * @example * var promise = Rx.Observable.return(42).toPromise(RSVP.Promise); * * // With config * Rx.config.Promise = RSVP.Promise; * var promise = Rx.Observable.return(42).toPromise(); * @param {Function} [promiseCtor] The constructor of the promise. If not provided, it looks for it in Rx.config.Promise. * @returns {Promise} An ES6 compatible promise with the last value from the observable sequence. */ observableProto.toPromise = function (promiseCtor) { promiseCtor || (promiseCtor = Rx.config.Promise); if (!promiseCtor) { throw new Error('Promise type not provided nor in Rx.config.Promise'); } var source = this; return new promiseCtor(function (resolve, reject) { // No cancellation can be done var value, hasValue = false; source.subscribe(function (v) { value = v; hasValue = true; }, function (err) { reject(err); }, function () { if (hasValue) { resolve(value); } }); }); }; /** * Creates a list from an observable sequence. * @returns An observable sequence containing a single element with a list containing all the elements of the source sequence. */ observableProto.toArray = function () { var self = this; return new AnonymousObservable(function(observer) { var arr = []; return self.subscribe( arr.push.bind(arr), observer.onError.bind(observer), function () { observer.onNext(arr); observer.onCompleted(); }); }); }; /** * Creates an observable sequence from a specified subscribe method implementation. * * @example * var res = Rx.Observable.create(function (observer) { return function () { } ); * var res = Rx.Observable.create(function (observer) { return Rx.Disposable.empty; } ); * var res = Rx.Observable.create(function (observer) { } ); * * @param {Function} subscribe Implementation of the resulting observable sequence's subscribe method, returning a function that will be wrapped in a Disposable. * @returns {Observable} The observable sequence with the specified implementation for the Subscribe method. */ Observable.create = Observable.createWithDisposable = function (subscribe) { return new AnonymousObservable(subscribe); }; /** * Returns an observable sequence that invokes the specified factory function whenever a new observer subscribes. * * @example * var res = Rx.Observable.defer(function () { return Rx.Observable.fromArray([1,2,3]); }); * @param {Function} observableFactory Observable factory function to invoke for each observer that subscribes to the resulting sequence or Promise. * @returns {Observable} An observable sequence whose observers trigger an invocation of the given observable factory function. */ var observableDefer = Observable.defer = function (observableFactory) { return new AnonymousObservable(function (observer) { var result; try { result = observableFactory(); } catch (e) { return observableThrow(e).subscribe(observer); } isPromise(result) && (result = observableFromPromise(result)); return result.subscribe(observer); }); }; /** * Returns an empty observable sequence, using the specified scheduler to send out the single OnCompleted message. * * @example * var res = Rx.Observable.empty(); * var res = Rx.Observable.empty(Rx.Scheduler.timeout); * @param {Scheduler} [scheduler] Scheduler to send the termination call on. * @returns {Observable} An observable sequence with no elements. */ var observableEmpty = Observable.empty = function (scheduler) { scheduler || (scheduler = immediateScheduler); return new AnonymousObservable(function (observer) { return scheduler.schedule(function () { observer.onCompleted(); }); }); }; /** * Converts an array to an observable sequence, using an optional scheduler to enumerate the array. * * @example * var res = Rx.Observable.fromArray([1,2,3]); * var res = Rx.Observable.fromArray([1,2,3], Rx.Scheduler.timeout); * @param {Scheduler} [scheduler] Scheduler to run the enumeration of the input sequence on. * @returns {Observable} The observable sequence whose elements are pulled from the given enumerable sequence. */ var observableFromArray = Observable.fromArray = function (array, scheduler) { scheduler || (scheduler = currentThreadScheduler); return new AnonymousObservable(function (observer) { var count = 0, len = array.length; return scheduler.scheduleRecursive(function (self) { if (count < len) { observer.onNext(array[count++]); self(); } else { observer.onCompleted(); } }); }); }; /** * Converts an iterable into an Observable sequence * * @example * var res = Rx.Observable.fromIterable(new Map()); * var res = Rx.Observable.fromIterable(new Set(), Rx.Scheduler.timeout); * @param {Scheduler} [scheduler] Scheduler to run the enumeration of the input sequence on. * @returns {Observable} The observable sequence whose elements are pulled from the given generator sequence. */ Observable.fromIterable = function (iterable, scheduler) { scheduler || (scheduler = currentThreadScheduler); return new AnonymousObservable(function (observer) { var iterator; try { iterator = iterable[$iterator$](); } catch (e) { observer.onError(e); return; } return scheduler.scheduleRecursive(function (self) { var next; try { next = iterator.next(); } catch (err) { observer.onError(err); return; } if (next.done) { observer.onCompleted(); } else { observer.onNext(next.value); self(); } }); }); }; /** * Generates an observable sequence by running a state-driven loop producing the sequence's elements, using the specified scheduler to send out observer messages. * * @example * var res = Rx.Observable.generate(0, function (x) { return x < 10; }, function (x) { return x + 1; }, function (x) { return x; }); * var res = Rx.Observable.generate(0, function (x) { return x < 10; }, function (x) { return x + 1; }, function (x) { return x; }, Rx.Scheduler.timeout); * @param {Mixed} initialState Initial state. * @param {Function} condition Condition to terminate generation (upon returning false). * @param {Function} iterate Iteration step function. * @param {Function} resultSelector Selector function for results produced in the sequence. * @param {Scheduler} [scheduler] Scheduler on which to run the generator loop. If not provided, defaults to Scheduler.currentThread. * @returns {Observable} The generated sequence. */ Observable.generate = function (initialState, condition, iterate, resultSelector, scheduler) { scheduler || (scheduler = currentThreadScheduler); return new AnonymousObservable(function (observer) { var first = true, state = initialState; return scheduler.scheduleRecursive(function (self) { var hasResult, result; try { if (first) { first = false; } else { state = iterate(state); } hasResult = condition(state); if (hasResult) { result = resultSelector(state); } } catch (exception) { observer.onError(exception); return; } if (hasResult) { observer.onNext(result); self(); } else { observer.onCompleted(); } }); }); }; /** * This method creates a new Observable instance with a variable number of arguments, regardless of number or type of the arguments. * @example * var res = Rx.Observable.of(1,2,3); * @returns {Observable} The observable sequence whose elements are pulled from the given arguments. */ Observable.of = function () { var len = arguments.length, args = new Array(len); for(var i = 0; i < len; i++) { args[i] = arguments[i]; } return observableFromArray(args); }; /** * This method creates a new Observable instance with a variable number of arguments, regardless of number or type of the arguments. * @example * var res = Rx.Observable.of(1,2,3); * @param {Scheduler} scheduler A scheduler to use for scheduling the arguments. * @returns {Observable} The observable sequence whose elements are pulled from the given arguments. */ var observableOf = Observable.ofWithScheduler = function (scheduler) { var len = arguments.length - 1, args = new Array(len); for(var i = 0; i < len; i++) { args[i] = arguments[i + 1]; } return observableFromArray(args, scheduler); }; /** * Returns a non-terminating observable sequence, which can be used to denote an infinite duration (e.g. when using reactive joins). * @returns {Observable} An observable sequence whose observers will never get called. */ var observableNever = Observable.never = function () { return new AnonymousObservable(function () { return disposableEmpty; }); }; /** * Generates an observable sequence of integral numbers within a specified range, using the specified scheduler to send out observer messages. * * @example * var res = Rx.Observable.range(0, 10); * var res = Rx.Observable.range(0, 10, Rx.Scheduler.timeout); * @param {Number} start The value of the first integer in the sequence. * @param {Number} count The number of sequential integers to generate. * @param {Scheduler} [scheduler] Scheduler to run the generator loop on. If not specified, defaults to Scheduler.currentThread. * @returns {Observable} An observable sequence that contains a range of sequential integral numbers. */ Observable.range = function (start, count, scheduler) { scheduler || (scheduler = currentThreadScheduler); return new AnonymousObservable(function (observer) { return scheduler.scheduleRecursiveWithState(0, function (i, self) { if (i < count) { observer.onNext(start + i); self(i + 1); } else { observer.onCompleted(); } }); }); }; /** * Generates an observable sequence that repeats the given element the specified number of times, using the specified scheduler to send out observer messages. * * @example * var res = Rx.Observable.repeat(42); * var res = Rx.Observable.repeat(42, 4); * 3 - res = Rx.Observable.repeat(42, 4, Rx.Scheduler.timeout); * 4 - res = Rx.Observable.repeat(42, null, Rx.Scheduler.timeout); * @param {Mixed} value Element to repeat. * @param {Number} repeatCount [Optiona] Number of times to repeat the element. If not specified, repeats indefinitely. * @param {Scheduler} scheduler Scheduler to run the producer loop on. If not specified, defaults to Scheduler.immediate. * @returns {Observable} An observable sequence that repeats the given element the specified number of times. */ Observable.repeat = function (value, repeatCount, scheduler) { scheduler || (scheduler = currentThreadScheduler); if (repeatCount == null) { repeatCount = -1; } return observableReturn(value, scheduler).repeat(repeatCount); }; /** * Returns an observable sequence that contains a single element, using the specified scheduler to send out observer messages. * There is an alias called 'just', and 'returnValue' for browsers <IE9. * * @example * var res = Rx.Observable.return(42); * var res = Rx.Observable.return(42, Rx.Scheduler.timeout); * @param {Mixed} value Single element in the resulting observable sequence. * @param {Scheduler} scheduler Scheduler to send the single element on. If not specified, defaults to Scheduler.immediate. * @returns {Observable} An observable sequence containing the single specified element. */ var observableReturn = Observable['return'] = Observable.returnValue = Observable.just = function (value, scheduler) { scheduler || (scheduler = immediateScheduler); return new AnonymousObservable(function (observer) { return scheduler.schedule(function () { observer.onNext(value); observer.onCompleted(); }); }); }; /** * Returns an observable sequence that terminates with an exception, using the specified scheduler to send out the single onError message. * There is an alias to this method called 'throwException' for browsers <IE9. * * @example * var res = Rx.Observable.throwException(new Error('Error')); * var res = Rx.Observable.throwException(new Error('Error'), Rx.Scheduler.timeout); * @param {Mixed} exception An object used for the sequence's termination. * @param {Scheduler} scheduler Scheduler to send the exceptional termination call on. If not specified, defaults to Scheduler.immediate. * @returns {Observable} The observable sequence that terminates exceptionally with the specified exception object. */ var observableThrow = Observable['throw'] = Observable.throwException = function (exception, scheduler) { scheduler || (scheduler = immediateScheduler); return new AnonymousObservable(function (observer) { return scheduler.schedule(function () { observer.onError(exception); }); }); }; /** * Constructs an observable sequence that depends on a resource object, whose lifetime is tied to the resulting observable sequence's lifetime. * * @example * var res = Rx.Observable.using(function () { return new AsyncSubject(); }, function (s) { return s; }); * @param {Function} resourceFactory Factory function to obtain a resource object. * @param {Function} observableFactory Factory function to obtain an observable sequence that depends on the obtained resource. * @returns {Observable} An observable sequence whose lifetime controls the lifetime of the dependent resource object. */ Observable.using = function (resourceFactory, observableFactory) { return new AnonymousObservable(function (observer) { var disposable = disposableEmpty, resource, source; try { resource = resourceFactory(); if (resource) { disposable = resource; } source = observableFactory(resource); } catch (exception) { return new CompositeDisposable(observableThrow(exception).subscribe(observer), disposable); } return new CompositeDisposable(source.subscribe(observer), disposable); }); }; /** * Propagates the observable sequence or Promise that reacts first. * @param {Observable} rightSource Second observable sequence or Promise. * @returns {Observable} {Observable} An observable sequence that surfaces either of the given sequences, whichever reacted first. */ observableProto.amb = function (rightSource) { var leftSource = this; return new AnonymousObservable(function (observer) { var choice, leftChoice = 'L', rightChoice = 'R', leftSubscription = new SingleAssignmentDisposable(), rightSubscription = new SingleAssignmentDisposable(); isPromise(rightSource) && (rightSource = observableFromPromise(rightSource)); function choiceL() { if (!choice) { choice = leftChoice; rightSubscription.dispose(); } } function choiceR() { if (!choice) { choice = rightChoice; leftSubscription.dispose(); } } leftSubscription.setDisposable(leftSource.subscribe(function (left) { choiceL(); if (choice === leftChoice) { observer.onNext(left); } }, function (err) { choiceL(); if (choice === leftChoice) { observer.onError(err); } }, function () { choiceL(); if (choice === leftChoice) { observer.onCompleted(); } })); rightSubscription.setDisposable(rightSource.subscribe(function (right) { choiceR(); if (choice === rightChoice) { observer.onNext(right); } }, function (err) { choiceR(); if (choice === rightChoice) { observer.onError(err); } }, function () { choiceR(); if (choice === rightChoice) { observer.onCompleted(); } })); return new CompositeDisposable(leftSubscription, rightSubscription); }); }; /** * Propagates the observable sequence or Promise that reacts first. * * @example * var = Rx.Observable.amb(xs, ys, zs); * @returns {Observable} An observable sequence that surfaces any of the given sequences, whichever reacted first. */ Observable.amb = function () { var acc = observableNever(), items = argsOrArray(arguments, 0); function func(previous, current) { return previous.amb(current); } for (var i = 0, len = items.length; i < len; i++) { acc = func(acc, items[i]); } return acc; }; function observableCatchHandler(source, handler) { return new AnonymousObservable(function (observer) { var d1 = new SingleAssignmentDisposable(), subscription = new SerialDisposable(); subscription.setDisposable(d1); d1.setDisposable(source.subscribe(observer.onNext.bind(observer), function (exception) { var d, result; try { result = handler(exception); } catch (ex) { observer.onError(ex); return; } isPromise(result) && (result = observableFromPromise(result)); d = new SingleAssignmentDisposable(); subscription.setDisposable(d); d.setDisposable(result.subscribe(observer)); }, observer.onCompleted.bind(observer))); return subscription; }); } /** * Continues an observable sequence that is terminated by an exception with the next observable sequence. * @example * 1 - xs.catchException(ys) * 2 - xs.catchException(function (ex) { return ys(ex); }) * @param {Mixed} handlerOrSecond Exception handler function that returns an observable sequence given the error that occurred in the first sequence, or a second observable sequence used to produce results when an error occurred in the first sequence. * @returns {Observable} An observable sequence containing the first sequence's elements, followed by the elements of the handler sequence in case an exception occurred. */ observableProto['catch'] = observableProto.catchException = function (handlerOrSecond) { return typeof handlerOrSecond === 'function' ? observableCatchHandler(this, handlerOrSecond) : observableCatch([this, handlerOrSecond]); }; /** * Continues an observable sequence that is terminated by an exception with the next observable sequence. * * @example * 1 - res = Rx.Observable.catchException(xs, ys, zs); * 2 - res = Rx.Observable.catchException([xs, ys, zs]); * @returns {Observable} An observable sequence containing elements from consecutive source sequences until a source sequence terminates successfully. */ var observableCatch = Observable.catchException = Observable['catch'] = function () { var items = argsOrArray(arguments, 0); return enumerableFor(items).catchException(); }; /** * Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences or Promises produces an element. * This can be in the form of an argument list of observables or an array. * * @example * 1 - obs = observable.combineLatest(obs1, obs2, obs3, function (o1, o2, o3) { return o1 + o2 + o3; }); * 2 - obs = observable.combineLatest([obs1, obs2, obs3], function (o1, o2, o3) { return o1 + o2 + o3; }); * @returns {Observable} An observable sequence containing the result of combining elements of the sources using the specified result selector function. */ observableProto.combineLatest = function () { var args = slice.call(arguments); if (Array.isArray(args[0])) { args[0].unshift(this); } else { args.unshift(this); } return combineLatest.apply(this, args); }; /** * Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences or Promises produces an element. * * @example * 1 - obs = Rx.Observable.combineLatest(obs1, obs2, obs3, function (o1, o2, o3) { return o1 + o2 + o3; }); * 2 - obs = Rx.Observable.combineLatest([obs1, obs2, obs3], function (o1, o2, o3) { return o1 + o2 + o3; }); * @returns {Observable} An observable sequence containing the result of combining elements of the sources using the specified result selector function. */ var combineLatest = Observable.combineLatest = function () { var args = slice.call(arguments), resultSelector = args.pop(); if (Array.isArray(args[0])) { args = args[0]; } return new AnonymousObservable(function (observer) { var falseFactory = function () { return false; }, n = args.length, hasValue = arrayInitialize(n, falseFactory), hasValueAll = false, isDone = arrayInitialize(n, falseFactory), values = new Array(n); function next(i) { var res; hasValue[i] = true; if (hasValueAll || (hasValueAll = hasValue.every(identity))) { try { res = resultSelector.apply(null, values); } catch (ex) { observer.onError(ex); return; } observer.onNext(res); } else if (isDone.filter(function (x, j) { return j !== i; }).every(identity)) { observer.onCompleted(); } } function done (i) { isDone[i] = true; if (isDone.every(identity)) { observer.onCompleted(); } } var subscriptions = new Array(n); for (var idx = 0; idx < n; idx++) { (function (i) { var source = args[i], sad = new SingleAssignmentDisposable(); isPromise(source) && (source = observableFromPromise(source)); sad.setDisposable(source.subscribe(function (x) { values[i] = x; next(i); }, observer.onError.bind(observer), function () { done(i); })); subscriptions[i] = sad; }(idx)); } return new CompositeDisposable(subscriptions); }); }; /** * Concatenates all the observable sequences. This takes in either an array or variable arguments to concatenate. * * @example * 1 - concatenated = xs.concat(ys, zs); * 2 - concatenated = xs.concat([ys, zs]); * @returns {Observable} An observable sequence that contains the elements of each given sequence, in sequential order. */ observableProto.concat = function () { var items = slice.call(arguments, 0); items.unshift(this); return observableConcat.apply(this, items); }; /** * Concatenates all the observable sequences. * * @example * 1 - res = Rx.Observable.concat(xs, ys, zs); * 2 - res = Rx.Observable.concat([xs, ys, zs]); * @returns {Observable} An observable sequence that contains the elements of each given sequence, in sequential order. */ var observableConcat = Observable.concat = function () { var sources = argsOrArray(arguments, 0); return enumerableFor(sources).concat(); }; /** * Concatenates an observable sequence of observable sequences. * @returns {Observable} An observable sequence that contains the elements of each observed inner sequence, in sequential order. */ observableProto.concatObservable = observableProto.concatAll =function () { return this.merge(1); }; /** * Merges an observable sequence of observable sequences into an observable sequence, limiting the number of concurrent subscriptions to inner sequences. * Or merges two observable sequences into a single observable sequence. * * @example * 1 - merged = sources.merge(1); * 2 - merged = source.merge(otherSource); * @param {Mixed} [maxConcurrentOrOther] Maximum number of inner observable sequences being subscribed to concurrently or the second observable sequence. * @returns {Observable} The observable sequence that merges the elements of the inner sequences. */ observableProto.merge = function (maxConcurrentOrOther) { if (typeof maxConcurrentOrOther !== 'number') { return observableMerge(this, maxConcurrentOrOther); } var sources = this; return new AnonymousObservable(function (observer) { var activeCount = 0, group = new CompositeDisposable(), isStopped = false, q = [], subscribe = function (xs) { var subscription = new SingleAssignmentDisposable(); group.add(subscription); // Check for promises support if (isPromise(xs)) { xs = observableFromPromise(xs); } subscription.setDisposable(xs.subscribe(observer.onNext.bind(observer), observer.onError.bind(observer), function () { var s; group.remove(subscription); if (q.length > 0) { s = q.shift(); subscribe(s); } else { activeCount--; if (isStopped && activeCount === 0) { observer.onCompleted(); } } })); }; group.add(sources.subscribe(function (innerSource) { if (activeCount < maxConcurrentOrOther) { activeCount++; subscribe(innerSource); } else { q.push(innerSource); } }, observer.onError.bind(observer), function () { isStopped = true; if (activeCount === 0) { observer.onCompleted(); } })); return group; }); }; /** * Merges all the observable sequences into a single observable sequence. * The scheduler is optional and if not specified, the immediate scheduler is used. * * @example * 1 - merged = Rx.Observable.merge(xs, ys, zs); * 2 - merged = Rx.Observable.merge([xs, ys, zs]); * 3 - merged = Rx.Observable.merge(scheduler, xs, ys, zs); * 4 - merged = Rx.Observable.merge(scheduler, [xs, ys, zs]); * @returns {Observable} The observable sequence that merges the elements of the observable sequences. */ var observableMerge = Observable.merge = function () { var scheduler, sources; if (!arguments[0]) { scheduler = immediateScheduler; sources = slice.call(arguments, 1); } else if (arguments[0].now) { scheduler = arguments[0]; sources = slice.call(arguments, 1); } else { scheduler = immediateScheduler; sources = slice.call(arguments, 0); } if (Array.isArray(sources[0])) { sources = sources[0]; } return observableFromArray(sources, scheduler).mergeObservable(); }; /** * Merges an observable sequence of observable sequences into an observable sequence. * @returns {Observable} The observable sequence that merges the elements of the inner sequences. */ observableProto.mergeObservable = observableProto.mergeAll =function () { var sources = this; return new AnonymousObservable(function (observer) { var group = new CompositeDisposable(), isStopped = false, m = new SingleAssignmentDisposable(); group.add(m); m.setDisposable(sources.subscribe(function (innerSource) { var innerSubscription = new SingleAssignmentDisposable(); group.add(innerSubscription); // Check if Promise or Observable if (isPromise(innerSource)) { innerSource = observableFromPromise(innerSource); } innerSubscription.setDisposable(innerSource.subscribe(function (x) { observer.onNext(x); }, observer.onError.bind(observer), function () { group.remove(innerSubscription); if (isStopped && group.length === 1) { observer.onCompleted(); } })); }, observer.onError.bind(observer), function () { isStopped = true; if (group.length === 1) { observer.onCompleted(); } })); return group; }); }; /** * Continues an observable sequence that is terminated normally or by an exception with the next observable sequence. * @param {Observable} second Second observable sequence used to produce results after the first sequence terminates. * @returns {Observable} An observable sequence that concatenates the first and second sequence, even if the first sequence terminates exceptionally. */ observableProto.onErrorResumeNext = function (second) { if (!second) { throw new Error('Second observable is required'); } return onErrorResumeNext([this, second]); }; /** * Continues an observable sequence that is terminated normally or by an exception with the next observable sequence. * * @example * 1 - res = Rx.Observable.onErrorResumeNext(xs, ys, zs); * 1 - res = Rx.Observable.onErrorResumeNext([xs, ys, zs]); * @returns {Observable} An observable sequence that concatenates the source sequences, even if a sequence terminates exceptionally. */ var onErrorResumeNext = Observable.onErrorResumeNext = function () { var sources = argsOrArray(arguments, 0); return new AnonymousObservable(function (observer) { var pos = 0, subscription = new SerialDisposable(), cancelable = immediateScheduler.scheduleRecursive(function (self) { var current, d; if (pos < sources.length) { current = sources[pos++]; isPromise(current) && (current = observableFromPromise(current)); d = new SingleAssignmentDisposable(); subscription.setDisposable(d); d.setDisposable(current.subscribe(observer.onNext.bind(observer), function () { self(); }, function () { self(); })); } else { observer.onCompleted(); } }); return new CompositeDisposable(subscription, cancelable); }); }; /** * Returns the values from the source observable sequence only after the other observable sequence produces a value. * @param {Observable | Promise} other The observable sequence or Promise that triggers propagation of elements of the source sequence. * @returns {Observable} An observable sequence containing the elements of the source sequence starting from the point the other sequence triggered propagation. */ observableProto.skipUntil = function (other) { var source = this; return new AnonymousObservable(function (observer) { var isOpen = false; var disposables = new CompositeDisposable(source.subscribe(function (left) { isOpen && observer.onNext(left); }, observer.onError.bind(observer), function () { isOpen && observer.onCompleted(); })); isPromise(other) && (other = observableFromPromise(other)); var rightSubscription = new SingleAssignmentDisposable(); disposables.add(rightSubscription); rightSubscription.setDisposable(other.subscribe(function () { isOpen = true; rightSubscription.dispose(); }, observer.onError.bind(observer), function () { rightSubscription.dispose(); })); return disposables; }); }; /** * Transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence. * @returns {Observable} The observable sequence that at any point in time produces the elements of the most recent inner observable sequence that has been received. */ observableProto['switch'] = observableProto.switchLatest = function () { var sources = this; return new AnonymousObservable(function (observer) { var hasLatest = false, innerSubscription = new SerialDisposable(), isStopped = false, latest = 0, subscription = sources.subscribe(function (innerSource) { var d = new SingleAssignmentDisposable(), id = ++latest; hasLatest = true; innerSubscription.setDisposable(d); // Check if Promise or Observable if (isPromise(innerSource)) { innerSource = observableFromPromise(innerSource); } d.setDisposable(innerSource.subscribe(function (x) { if (latest === id) { observer.onNext(x); } }, function (e) { if (latest === id) { observer.onError(e); } }, function () { if (latest === id) { hasLatest = false; if (isStopped) { observer.onCompleted(); } } })); }, observer.onError.bind(observer), function () { isStopped = true; if (!hasLatest) { observer.onCompleted(); } }); return new CompositeDisposable(subscription, innerSubscription); }); }; /** * Returns the values from the source observable sequence until the other observable sequence produces a value. * @param {Observable | Promise} other Observable sequence or Promise that terminates propagation of elements of the source sequence. * @returns {Observable} An observable sequence containing the elements of the source sequence up to the point the other sequence interrupted further propagation. */ observableProto.takeUntil = function (other) { var source = this; return new AnonymousObservable(function (observer) { isPromise(other) && (other = observableFromPromise(other)); return new CompositeDisposable( source.subscribe(observer), other.subscribe(observer.onCompleted.bind(observer), observer.onError.bind(observer), noop) ); }); }; function zipArray(second, resultSelector) { var first = this; return new AnonymousObservable(function (observer) { var index = 0, len = second.length; return first.subscribe(function (left) { if (index < len) { var right = second[index++], result; try { result = resultSelector(left, right); } catch (e) { observer.onError(e); return; } observer.onNext(result); } else { observer.onCompleted(); } }, observer.onError.bind(observer), observer.onCompleted.bind(observer)); }); } /** * Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences or an array have produced an element at a corresponding index. * The last element in the arguments must be a function to invoke for each series of elements at corresponding indexes in the sources. * * @example * 1 - res = obs1.zip(obs2, fn); * 1 - res = x1.zip([1,2,3], fn); * @returns {Observable} An observable sequence containing the result of combining elements of the sources using the specified result selector function. */ observableProto.zip = function () { if (Array.isArray(arguments[0])) { return zipArray.apply(this, arguments); } var parent = this, sources = slice.call(arguments), resultSelector = sources.pop(); sources.unshift(parent); return new AnonymousObservable(function (observer) { var n = sources.length, queues = arrayInitialize(n, function () { return []; }), isDone = arrayInitialize(n, function () { return false; }); function next(i) { var res, queuedValues; if (queues.every(function (x) { return x.length > 0; })) { try { queuedValues = queues.map(function (x) { return x.shift(); }); res = resultSelector.apply(parent, queuedValues); } catch (ex) { observer.onError(ex); return; } observer.onNext(res); } else if (isDone.filter(function (x, j) { return j !== i; }).every(identity)) { observer.onCompleted(); } }; function done(i) { isDone[i] = true; if (isDone.every(function (x) { return x; })) { observer.onCompleted(); } } var subscriptions = new Array(n); for (var idx = 0; idx < n; idx++) { (function (i) { var source = sources[i], sad = new SingleAssignmentDisposable(); isPromise(source) && (source = observableFromPromise(source)); sad.setDisposable(source.subscribe(function (x) { queues[i].push(x); next(i); }, observer.onError.bind(observer), function () { done(i); })); subscriptions[i] = sad; })(idx); } return new CompositeDisposable(subscriptions); }); }; /** * Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences have produced an element at a corresponding index. * @param arguments Observable sources. * @param {Function} resultSelector Function to invoke for each series of elements at corresponding indexes in the sources. * @returns {Observable} An observable sequence containing the result of combining elements of the sources using the specified result selector function. */ Observable.zip = function () { var args = slice.call(arguments, 0), first = args.shift(); return first.zip.apply(first, args); }; /** * Merges the specified observable sequences into one observable sequence by emitting a list with the elements of the observable sequences at corresponding indexes. * @param arguments Observable sources. * @returns {Observable} An observable sequence containing lists of elements at corresponding indexes. */ Observable.zipArray = function () { var sources = argsOrArray(arguments, 0); return new AnonymousObservable(function (observer) { var n = sources.length, queues = arrayInitialize(n, function () { return []; }), isDone = arrayInitialize(n, function () { return false; }); function next(i) { if (queues.every(function (x) { return x.length > 0; })) { var res = queues.map(function (x) { return x.shift(); }); observer.onNext(res); } else if (isDone.filter(function (x, j) { return j !== i; }).every(identity)) { observer.onCompleted(); return; } }; function done(i) { isDone[i] = true; if (isDone.every(identity)) { observer.onCompleted(); return; } } var subscriptions = new Array(n); for (var idx = 0; idx < n; idx++) { (function (i) { subscriptions[i] = new SingleAssignmentDisposable(); subscriptions[i].setDisposable(sources[i].subscribe(function (x) { queues[i].push(x); next(i); }, observer.onError.bind(observer), function () { done(i); })); })(idx); } var compositeDisposable = new CompositeDisposable(subscriptions); compositeDisposable.add(disposableCreate(function () { for (var qIdx = 0, qLen = queues.length; qIdx < qLen; qIdx++) { queues[qIdx] = []; } })); return compositeDisposable; }); }; /** * Hides the identity of an observable sequence. * @returns {Observable} An observable sequence that hides the identity of the source sequence. */ observableProto.asObservable = function () { var source = this; return new AnonymousObservable(function (observer) { return source.subscribe(observer); }); }; /** * Projects each element of an observable sequence into zero or more buffers which are produced based on element count information. * * @example * var res = xs.bufferWithCount(10); * var res = xs.bufferWithCount(10, 1); * @param {Number} count Length of each buffer. * @param {Number} [skip] Number of elements to skip between creation of consecutive buffers. If not provided, defaults to the count. * @returns {Observable} An observable sequence of buffers. */ observableProto.bufferWithCount = function (count, skip) { if (typeof skip !== 'number') { skip = count; } return this.windowWithCount(count, skip).selectMany(function (x) { return x.toArray(); }).where(function (x) { return x.length > 0; }); }; /** * Dematerializes the explicit notification values of an observable sequence as implicit notifications. * @returns {Observable} An observable sequence exhibiting the behavior corresponding to the source sequence's notification values. */ observableProto.dematerialize = function () { var source = this; return new AnonymousObservable(function (observer) { return source.subscribe(function (x) { return x.accept(observer); }, observer.onError.bind(observer), observer.onCompleted.bind(observer)); }); }; /** * Returns an observable sequence that contains only distinct contiguous elements according to the keySelector and the comparer. * * var obs = observable.distinctUntilChanged(); * var obs = observable.distinctUntilChanged(function (x) { return x.id; }); * var obs = observable.distinctUntilChanged(function (x) { return x.id; }, function (x, y) { return x === y; }); * * @param {Function} [keySelector] A function to compute the comparison key for each element. If not provided, it projects the value. * @param {Function} [comparer] Equality comparer for computed key values. If not provided, defaults to an equality comparer function. * @returns {Observable} An observable sequence only containing the distinct contiguous elements, based on a computed key value, from the source sequence. */ observableProto.distinctUntilChanged = function (keySelector, comparer) { var source = this; keySelector || (keySelector = identity); comparer || (comparer = defaultComparer); return new AnonymousObservable(function (observer) { var hasCurrentKey = false, currentKey; return source.subscribe(function (value) { var comparerEquals = false, key; try { key = keySelector(value); } catch (exception) { observer.onError(exception); return; } if (hasCurrentKey) { try { comparerEquals = comparer(currentKey, key); } catch (exception) { observer.onError(exception); return; } } if (!hasCurrentKey || !comparerEquals) { hasCurrentKey = true; currentKey = key; observer.onNext(value); } }, observer.onError.bind(observer), observer.onCompleted.bind(observer)); }); }; /** * Invokes an action for each element in the observable sequence and invokes an action upon graceful or exceptional termination of the observable sequence. * This method can be used for debugging, logging, etc. of query behavior by intercepting the message stream to run arbitrary actions for messages on the pipeline. * * @example * var res = observable.doAction(observer); * var res = observable.doAction(onNext); * var res = observable.doAction(onNext, onError); * var res = observable.doAction(onNext, onError, onCompleted); * @param {Mixed} observerOrOnNext Action to invoke for each element in the observable sequence or an observer. * @param {Function} [onError] Action to invoke upon exceptional termination of the observable sequence. Used if only the observerOrOnNext parameter is also a function. * @param {Function} [onCompleted] Action to invoke upon graceful termination of the observable sequence. Used if only the observerOrOnNext parameter is also a function. * @returns {Observable} The source sequence with the side-effecting behavior applied. */ observableProto['do'] = observableProto.doAction = function (observerOrOnNext, onError, onCompleted) { var source = this, onNextFunc; if (typeof observerOrOnNext === 'function') { onNextFunc = observerOrOnNext; } else { onNextFunc = observerOrOnNext.onNext.bind(observerOrOnNext); onError = observerOrOnNext.onError.bind(observerOrOnNext); onCompleted = observerOrOnNext.onCompleted.bind(observerOrOnNext); } return new AnonymousObservable(function (observer) { return source.subscribe(function (x) { try { onNextFunc(x); } catch (e) { observer.onError(e); } observer.onNext(x); }, function (exception) { if (!onError) { observer.onError(exception); } else { try { onError(exception); } catch (e) { observer.onError(e); } observer.onError(exception); } }, function () { if (!onCompleted) { observer.onCompleted(); } else { try { onCompleted(); } catch (e) { observer.onError(e); } observer.onCompleted(); } }); }); }; /** * Invokes a specified action after the source observable sequence terminates gracefully or exceptionally. * * @example * var res = observable.finallyAction(function () { console.log('sequence ended'; }); * @param {Function} finallyAction Action to invoke after the source observable sequence terminates. * @returns {Observable} Source sequence with the action-invoking termination behavior applied. */ observableProto['finally'] = observableProto.finallyAction = function (action) { var source = this; return new AnonymousObservable(function (observer) { var subscription; try { subscription = source.subscribe(observer); } catch (e) { action(); throw e; } return disposableCreate(function () { try { subscription.dispose(); } catch (e) { throw e; } finally { action(); } }); }); }; /** * Ignores all elements in an observable sequence leaving only the termination messages. * @returns {Observable} An empty observable sequence that signals termination, successful or exceptional, of the source sequence. */ observableProto.ignoreElements = function () { var source = this; return new AnonymousObservable(function (observer) { return source.subscribe(noop, observer.onError.bind(observer), observer.onCompleted.bind(observer)); }); }; /** * Materializes the implicit notifications of an observable sequence as explicit notification values. * @returns {Observable} An observable sequence containing the materialized notification values from the source sequence. */ observableProto.materialize = function () { var source = this; return new AnonymousObservable(function (observer) { return source.subscribe(function (value) { observer.onNext(notificationCreateOnNext(value)); }, function (e) { observer.onNext(notificationCreateOnError(e)); observer.onCompleted(); }, function () { observer.onNext(notificationCreateOnCompleted()); observer.onCompleted(); }); }); }; /** * Repeats the observable sequence a specified number of times. If the repeat count is not specified, the sequence repeats indefinitely. * * @example * var res = repeated = source.repeat(); * var res = repeated = source.repeat(42); * @param {Number} [repeatCount] Number of times to repeat the sequence. If not provided, repeats the sequence indefinitely. * @returns {Observable} The observable sequence producing the elements of the given sequence repeatedly. */ observableProto.repeat = function (repeatCount) { return enumerableRepeat(this, repeatCount).concat(); }; /** * Repeats the source observable sequence the specified number of times or until it successfully terminates. If the retry count is not specified, it retries indefinitely. * * @example * var res = retried = retry.repeat(); * var res = retried = retry.repeat(42); * @param {Number} [retryCount] Number of times to retry the sequence. If not provided, retry the sequence indefinitely. * @returns {Observable} An observable sequence producing the elements of the given sequence repeatedly until it terminates successfully. */ observableProto.retry = function (retryCount) { return enumerableRepeat(this, retryCount).catchException(); }; /** * Applies an accumulator function over an observable sequence and returns each intermediate result. The optional seed value is used as the initial accumulator value. * For aggregation behavior with no intermediate results, see Observable.aggregate. * @example * var res = source.scan(function (acc, x) { return acc + x; }); * var res = source.scan(0, function (acc, x) { return acc + x; }); * @param {Mixed} [seed] The initial accumulator value. * @param {Function} accumulator An accumulator function to be invoked on each element. * @returns {Observable} An observable sequence containing the accumulated values. */ observableProto.scan = function () { var hasSeed = false, seed, accumulator, source = this; if (arguments.length === 2) { hasSeed = true; seed = arguments[0]; accumulator = arguments[1]; } else { accumulator = arguments[0]; } return new AnonymousObservable(function (observer) { var hasAccumulation, accumulation, hasValue; return source.subscribe ( function (x) { try { if (!hasValue) { hasValue = true; } if (hasAccumulation) { accumulation = accumulator(accumulation, x); } else { accumulation = hasSeed ? accumulator(seed, x) : x; hasAccumulation = true; } } catch (e) { observer.onError(e); return; } observer.onNext(accumulation); }, observer.onError.bind(observer), function () { if (!hasValue && hasSeed) { observer.onNext(seed); } observer.onCompleted(); } ); }); }; /** * Bypasses a specified number of elements at the end of an observable sequence. * @description * This operator accumulates a queue with a length enough to store the first `count` elements. As more elements are * received, elements are taken from the front of the queue and produced on the result sequence. This causes elements to be delayed. * @param count Number of elements to bypass at the end of the source sequence. * @returns {Observable} An observable sequence containing the source sequence elements except for the bypassed ones at the end. */ observableProto.skipLast = function (count) { var source = this; return new AnonymousObservable(function (observer) { var q = []; return source.subscribe(function (x) { q.push(x); if (q.length > count) { observer.onNext(q.shift()); } }, observer.onError.bind(observer), observer.onCompleted.bind(observer)); }); }; /** * Prepends a sequence of values to an observable sequence with an optional scheduler and an argument list of values to prepend. * * var res = source.startWith(1, 2, 3); * var res = source.startWith(Rx.Scheduler.timeout, 1, 2, 3); * * @memberOf Observable# * @returns {Observable} The source sequence prepended with the specified values. */ observableProto.startWith = function () { var values, scheduler, start = 0; if (!!arguments.length && 'now' in Object(arguments[0])) { scheduler = arguments[0]; start = 1; } else { scheduler = immediateScheduler; } values = slice.call(arguments, start); return enumerableFor([observableFromArray(values, scheduler), this]).concat(); }; /** * Returns a specified number of contiguous elements from the end of an observable sequence, using an optional scheduler to drain the queue. * * @example * var res = source.takeLast(5); * var res = source.takeLast(5, Rx.Scheduler.timeout); * * @description * This operator accumulates a buffer with a length enough to store elements count elements. Upon completion of * the source sequence, this buffer is drained on the result sequence. This causes the elements to be delayed. * @param {Number} count Number of elements to take from the end of the source sequence. * @param {Scheduler} [scheduler] Scheduler used to drain the queue upon completion of the source sequence. * @returns {Observable} An observable sequence containing the specified number of elements from the end of the source sequence. */ observableProto.takeLast = function (count, scheduler) { return this.takeLastBuffer(count).selectMany(function (xs) { return observableFromArray(xs, scheduler); }); }; /** * Returns an array with the specified number of contiguous elements from the end of an observable sequence. * * @description * This operator accumulates a buffer with a length enough to store count elements. Upon completion of the * source sequence, this buffer is produced on the result sequence. * @param {Number} count Number of elements to take from the end of the source sequence. * @returns {Observable} An observable sequence containing a single array with the specified number of elements from the end of the source sequence. */ observableProto.takeLastBuffer = function (count) { var source = this; return new AnonymousObservable(function (observer) { var q = []; return source.subscribe(function (x) { q.push(x); if (q.length > count) { q.shift(); } }, observer.onError.bind(observer), function () { observer.onNext(q); observer.onCompleted(); }); }); }; /** * Projects each element of an observable sequence into zero or more windows which are produced based on element count information. * * var res = xs.windowWithCount(10); * var res = xs.windowWithCount(10, 1); * @param {Number} count Length of each window. * @param {Number} [skip] Number of elements to skip between creation of consecutive windows. If not specified, defaults to the count. * @returns {Observable} An observable sequence of windows. */ observableProto.windowWithCount = function (count, skip) { var source = this; if (count <= 0) { throw new Error(argumentOutOfRange); } if (arguments.length === 1) { skip = count; } if (skip <= 0) { throw new Error(argumentOutOfRange); } return new AnonymousObservable(function (observer) { var m = new SingleAssignmentDisposable(), refCountDisposable = new RefCountDisposable(m), n = 0, q = [], createWindow = function () { var s = new Subject(); q.push(s); observer.onNext(addRef(s, refCountDisposable)); }; createWindow(); m.setDisposable(source.subscribe(function (x) { var s; for (var i = 0, len = q.length; i < len; i++) { q[i].onNext(x); } var c = n - count + 1; if (c >= 0 && c % skip === 0) { s = q.shift(); s.onCompleted(); } n++; if (n % skip === 0) { createWindow(); } }, function (exception) { while (q.length > 0) { q.shift().onError(exception); } observer.onError(exception); }, function () { while (q.length > 0) { q.shift().onCompleted(); } observer.onCompleted(); })); return refCountDisposable; }); }; function concatMap(selector) { return this.map(function (x, i) { var result = selector(x, i); return isPromise(result) ? observableFromPromise(result) : result; }).concatAll(); } function concatMapObserver(onNext, onError, onCompleted) { var source = this; return new AnonymousObservable(function (observer) { var index = 0; return source.subscribe( function (x) { observer.onNext(onNext(x, index++)); }, function (err) { observer.onNext(onError(err)); observer.completed(); }, function () { observer.onNext(onCompleted()); observer.onCompleted(); }); }).concatAll(); } /** * One of the Following: * Projects each element of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence. * * @example * var res = source.selectMany(function (x) { return Rx.Observable.range(0, x); }); * Or: * Projects each element of an observable sequence to an observable sequence, invokes the result selector for the source element and each of the corresponding inner sequence's elements, and merges the results into one observable sequence. * * var res = source.selectMany(function (x) { return Rx.Observable.range(0, x); }, function (x, y) { return x + y; }); * Or: * Projects each element of the source observable sequence to the other observable sequence and merges the resulting observable sequences into one observable sequence. * * var res = source.selectMany(Rx.Observable.fromArray([1,2,3])); * @param selector A transform function to apply to each element or an observable sequence to project each element from the * source sequence onto which could be either an observable or Promise. * @param {Function} [resultSelector] A transform function to apply to each element of the intermediate sequence. * @returns {Observable} An observable sequence whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of the input sequence and then mapping each of those sequence elements and their corresponding source element to a result element. */ observableProto.selectConcat = observableProto.concatMap = function (selector, resultSelector) { if (resultSelector) { return this.concatMap(function (x, i) { var selectorResult = selector(x, i), result = isPromise(selectorResult) ? observableFromPromise(selectorResult) : selectorResult; return result.map(function (y) { return resultSelector(x, y, i); }); }); } if (typeof selector === 'function') { return concatMap.call(this, selector); } return concatMap.call(this, function () { return selector; }); }; /** * Returns the elements of the specified sequence or the specified value in a singleton sequence if the sequence is empty. * * var res = obs = xs.defaultIfEmpty(); * 2 - obs = xs.defaultIfEmpty(false); * * @memberOf Observable# * @param defaultValue The value to return if the sequence is empty. If not provided, this defaults to null. * @returns {Observable} An observable sequence that contains the specified default value if the source is empty; otherwise, the elements of the source itself. */ observableProto.defaultIfEmpty = function (defaultValue) { var source = this; if (defaultValue === undefined) { defaultValue = null; } return new AnonymousObservable(function (observer) { var found = false; return source.subscribe(function (x) { found = true; observer.onNext(x); }, observer.onError.bind(observer), function () { if (!found) { observer.onNext(defaultValue); } observer.onCompleted(); }); }); }; /** * Returns an observable sequence that contains only distinct elements according to the keySelector and the comparer. * Usage of this operator should be considered carefully due to the maintenance of an internal lookup structure which can grow large. * * @example * var res = obs = xs.distinct(); * 2 - obs = xs.distinct(function (x) { return x.id; }); * 2 - obs = xs.distinct(function (x) { return x.id; }, function (x) { return x.toString(); }); * @param {Function} [keySelector] A function to compute the comparison key for each element. * @param {Function} [keySerializer] Used to serialize the given object into a string for object comparison. * @returns {Observable} An observable sequence only containing the distinct elements, based on a computed key value, from the source sequence. */ observableProto.distinct = function (keySelector, keySerializer) { var source = this; keySelector || (keySelector = identity); keySerializer || (keySerializer = defaultKeySerializer); return new AnonymousObservable(function (observer) { var hashSet = {}; return source.subscribe(function (x) { var key, serializedKey, otherKey, hasMatch = false; try { key = keySelector(x); serializedKey = keySerializer(key); } catch (exception) { observer.onError(exception); return; } for (otherKey in hashSet) { if (serializedKey === otherKey) { hasMatch = true; break; } } if (!hasMatch) { hashSet[serializedKey] = null; observer.onNext(x); } }, observer.onError.bind(observer), observer.onCompleted.bind(observer)); }); }; /** * Groups the elements of an observable sequence according to a specified key selector function and comparer and selects the resulting elements by using a specified function. * * @example * var res = observable.groupBy(function (x) { return x.id; }); * 2 - observable.groupBy(function (x) { return x.id; }), function (x) { return x.name; }); * 3 - observable.groupBy(function (x) { return x.id; }), function (x) { return x.name; }, function (x) { return x.toString(); }); * @param {Function} keySelector A function to extract the key for each element. * @param {Function} [elementSelector] A function to map each source element to an element in an observable group. * @param {Function} [keySerializer] Used to serialize the given object into a string for object comparison. * @returns {Observable} A sequence of observable groups, each of which corresponds to a unique key value, containing all elements that share that same key value. */ observableProto.groupBy = function (keySelector, elementSelector, keySerializer) { return this.groupByUntil(keySelector, elementSelector, function () { return observableNever(); }, keySerializer); }; /** * Groups the elements of an observable sequence according to a specified key selector function. * A duration selector function is used to control the lifetime of groups. When a group expires, it receives an OnCompleted notification. When a new element with the same * key value as a reclaimed group occurs, the group will be reborn with a new lifetime request. * * @example * var res = observable.groupByUntil(function (x) { return x.id; }, null, function () { return Rx.Observable.never(); }); * 2 - observable.groupBy(function (x) { return x.id; }), function (x) { return x.name; }, function () { return Rx.Observable.never(); }); * 3 - observable.groupBy(function (x) { return x.id; }), function (x) { return x.name; }, function () { return Rx.Observable.never(); }, function (x) { return x.toString(); }); * @param {Function} keySelector A function to extract the key for each element. * @param {Function} durationSelector A function to signal the expiration of a group. * @param {Function} [keySerializer] Used to serialize the given object into a string for object comparison. * @returns {Observable} * A sequence of observable groups, each of which corresponds to a unique key value, containing all elements that share that same key value. * If a group's lifetime expires, a new group with the same key value can be created once an element with such a key value is encoutered. * */ observableProto.groupByUntil = function (keySelector, elementSelector, durationSelector, keySerializer) { var source = this; elementSelector || (elementSelector = identity); keySerializer || (keySerializer = defaultKeySerializer); return new AnonymousObservable(function (observer) { var map = {}, groupDisposable = new CompositeDisposable(), refCountDisposable = new RefCountDisposable(groupDisposable); groupDisposable.add(source.subscribe(function (x) { var duration, durationGroup, element, fireNewMapEntry, group, key, serializedKey, md, writer, w; try { key = keySelector(x); serializedKey = keySerializer(key); } catch (e) { for (w in map) { map[w].onError(e); } observer.onError(e); return; } fireNewMapEntry = false; try { writer = map[serializedKey]; if (!writer) { writer = new Subject(); map[serializedKey] = writer; fireNewMapEntry = true; } } catch (e) { for (w in map) { map[w].onError(e); } observer.onError(e); return; } if (fireNewMapEntry) { group = new GroupedObservable(key, writer, refCountDisposable); durationGroup = new GroupedObservable(key, writer); try { duration = durationSelector(durationGroup); } catch (e) { for (w in map) { map[w].onError(e); } observer.onError(e); return; } observer.onNext(group); md = new SingleAssignmentDisposable(); groupDisposable.add(md); var expire = function () { if (serializedKey in map) { delete map[serializedKey]; writer.onCompleted(); } groupDisposable.remove(md); }; md.setDisposable(duration.take(1).subscribe(noop, function (exn) { for (w in map) { map[w].onError(exn); } observer.onError(exn); }, function () { expire(); })); } try { element = elementSelector(x); } catch (e) { for (w in map) { map[w].onError(e); } observer.onError(e); return; } writer.onNext(element); }, function (ex) { for (var w in map) { map[w].onError(ex); } observer.onError(ex); }, function () { for (var w in map) { map[w].onCompleted(); } observer.onCompleted(); })); return refCountDisposable; }); }; /** * Projects each element of an observable sequence into a new form by incorporating the element's index. * @param {Function} selector A transform function to apply to each source element; the second parameter of the function represents the index of the source element. * @param {Any} [thisArg] Object to use as this when executing callback. * @returns {Observable} An observable sequence whose elements are the result of invoking the transform function on each element of source. */ observableProto.select = observableProto.map = function (selector, thisArg) { var parent = this; return new AnonymousObservable(function (observer) { var count = 0; return parent.subscribe(function (value) { var result; try { result = selector.call(thisArg, value, count++, parent); } catch (exception) { observer.onError(exception); return; } observer.onNext(result); }, observer.onError.bind(observer), observer.onCompleted.bind(observer)); }); }; /** * Retrieves the value of a specified property from all elements in the Observable sequence. * @param {String} property The property to pluck. * @returns {Observable} Returns a new Observable sequence of property values. */ observableProto.pluck = function (property) { return this.select(function (x) { return x[property]; }); }; function selectMany(selector) { return this.select(function (x, i) { var result = selector(x, i); return isPromise(result) ? observableFromPromise(result) : result; }).mergeObservable(); } function selectManyObserver(onNext, onError, onCompleted) { var source = this; return new AnonymousObservable(function (observer) { var index = 0; return source.subscribe( function (x) { observer.onNext(onNext(x, index++)); }, function (err) { observer.onNext(onError(err)); observer.completed(); }, function () { observer.onNext(onCompleted()); observer.onCompleted(); }); }).mergeAll(); } /** * One of the Following: * Projects each element of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence. * * @example * var res = source.selectMany(function (x) { return Rx.Observable.range(0, x); }); * Or: * Projects each element of an observable sequence to an observable sequence, invokes the result selector for the source element and each of the corresponding inner sequence's elements, and merges the results into one observable sequence. * * var res = source.selectMany(function (x) { return Rx.Observable.range(0, x); }, function (x, y) { return x + y; }); * Or: * Projects each element of the source observable sequence to the other observable sequence and merges the resulting observable sequences into one observable sequence. * * var res = source.selectMany(Rx.Observable.fromArray([1,2,3])); * @param selector A transform function to apply to each element or an observable sequence to project each element from the * source sequence onto which could be either an observable or Promise. * @param {Function} [resultSelector] A transform function to apply to each element of the intermediate sequence. * @returns {Observable} An observable sequence whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of the input sequence and then mapping each of those sequence elements and their corresponding source element to a result element. */ observableProto.selectMany = observableProto.flatMap = function (selector, resultSelector) { if (resultSelector) { return this.selectMany(function (x, i) { var selectorResult = selector(x, i), result = isPromise(selectorResult) ? observableFromPromise(selectorResult) : selectorResult; return result.select(function (y) { return resultSelector(x, y, i); }); }); } if (typeof selector === 'function') { return selectMany.call(this, selector); } return selectMany.call(this, function () { return selector; }); }; /** * Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then * transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence. * @param {Function} selector A transform function to apply to each source element; the second parameter of the function represents the index of the source element. * @param {Any} [thisArg] Object to use as this when executing callback. * @returns {Observable} An observable sequence whose elements are the result of invoking the transform function on each element of source producing an Observable of Observable sequences * and that at any point in time produces the elements of the most recent inner observable sequence that has been received. */ observableProto.selectSwitch = observableProto.flatMapLatest = observableProto.switchMap = function (selector, thisArg) { return this.select(selector, thisArg).switchLatest(); }; /** * Bypasses a specified number of elements in an observable sequence and then returns the remaining elements. * @param {Number} count The number of elements to skip before returning the remaining elements. * @returns {Observable} An observable sequence that contains the elements that occur after the specified index in the input sequence. */ observableProto.skip = function (count) { if (count < 0) { throw new Error(argumentOutOfRange); } var observable = this; return new AnonymousObservable(function (observer) { var remaining = count; return observable.subscribe(function (x) { if (remaining <= 0) { observer.onNext(x); } else { remaining--; } }, observer.onError.bind(observer), observer.onCompleted.bind(observer)); }); }; /** * Bypasses elements in an observable sequence as long as a specified condition is true and then returns the remaining elements. * The element's index is used in the logic of the predicate function. * * var res = source.skipWhile(function (value) { return value < 10; }); * var res = source.skipWhile(function (value, index) { return value < 10 || index < 10; }); * @param {Function} predicate A function to test each element for a condition; the second parameter of the function represents the index of the source element. * @param {Any} [thisArg] Object to use as this when executing callback. * @returns {Observable} An observable sequence that contains the elements from the input sequence starting at the first element in the linear series that does not pass the test specified by predicate. */ observableProto.skipWhile = function (predicate, thisArg) { var source = this; return new AnonymousObservable(function (observer) { var i = 0, running = false; return source.subscribe(function (x) { if (!running) { try { running = !predicate.call(thisArg, x, i++, source); } catch (e) { observer.onError(e); return; } } if (running) { observer.onNext(x); } }, observer.onError.bind(observer), observer.onCompleted.bind(observer)); }); }; /** * Returns a specified number of contiguous elements from the start of an observable sequence, using the specified scheduler for the edge case of take(0). * * var res = source.take(5); * var res = source.take(0, Rx.Scheduler.timeout); * @param {Number} count The number of elements to return. * @param {Scheduler} [scheduler] Scheduler used to produce an OnCompleted message in case <paramref name="count count</paramref> is set to 0. * @returns {Observable} An observable sequence that contains the specified number of elements from the start of the input sequence. */ observableProto.take = function (count, scheduler) { if (count < 0) { throw new Error(argumentOutOfRange); } if (count === 0) { return observableEmpty(scheduler); } var observable = this; return new AnonymousObservable(function (observer) { var remaining = count; return observable.subscribe(function (x) { if (remaining > 0) { remaining--; observer.onNext(x); if (remaining === 0) { observer.onCompleted(); } } }, observer.onError.bind(observer), observer.onCompleted.bind(observer)); }); }; /** * Returns elements from an observable sequence as long as a specified condition is true. * The element's index is used in the logic of the predicate function. * * @example * var res = source.takeWhile(function (value) { return value < 10; }); * var res = source.takeWhile(function (value, index) { return value < 10 || index < 10; }); * @param {Function} predicate A function to test each element for a condition; the second parameter of the function represents the index of the source element. * @param {Any} [thisArg] Object to use as this when executing callback. * @returns {Observable} An observable sequence that contains the elements from the input sequence that occur before the element at which the test no longer passes. */ observableProto.takeWhile = function (predicate, thisArg) { var observable = this; return new AnonymousObservable(function (observer) { var i = 0, running = true; return observable.subscribe(function (x) { if (running) { try { running = predicate.call(thisArg, x, i++, observable); } catch (e) { observer.onError(e); return; } if (running) { observer.onNext(x); } else { observer.onCompleted(); } } }, observer.onError.bind(observer), observer.onCompleted.bind(observer)); }); }; /** * Filters the elements of an observable sequence based on a predicate by incorporating the element's index. * * @example * var res = source.where(function (value) { return value < 10; }); * var res = source.where(function (value, index) { return value < 10 || index < 10; }); * @param {Function} predicate A function to test each source element for a condition; the second parameter of the function represents the index of the source element. * @param {Any} [thisArg] Object to use as this when executing callback. * @returns {Observable} An observable sequence that contains elements from the input sequence that satisfy the condition. */ observableProto.where = observableProto.filter = function (predicate, thisArg) { var parent = this; return new AnonymousObservable(function (observer) { var count = 0; return parent.subscribe(function (value) { var shouldRun; try { shouldRun = predicate.call(thisArg, value, count++, parent); } catch (exception) { observer.onError(exception); return; } if (shouldRun) { observer.onNext(value); } }, observer.onError.bind(observer), observer.onCompleted.bind(observer)); }); }; observableProto.finalValue = function () { var source = this; return new AnonymousObservable(function (observer) { var hasValue = false, value; return source.subscribe(function (x) { hasValue = true; value = x; }, observer.onError.bind(observer), function () { if (!hasValue) { observer.onError(new Error(sequenceContainsNoElements)); } else { observer.onNext(value); observer.onCompleted(); } }); }); }; function extremaBy(source, keySelector, comparer) { return new AnonymousObservable(function (observer) { var hasValue = false, lastKey = null, list = []; return source.subscribe(function (x) { var comparison, key; try { key = keySelector(x); } catch (ex) { observer.onError(ex); return; } comparison = 0; if (!hasValue) { hasValue = true; lastKey = key; } else { try { comparison = comparer(key, lastKey); } catch (ex1) { observer.onError(ex1); return; } } if (comparison > 0) { lastKey = key; list = []; } if (comparison >= 0) { list.push(x); } }, observer.onError.bind(observer), function () { observer.onNext(list); observer.onCompleted(); }); }); } function firstOnly(x) { if (x.length === 0) { throw new Error(sequenceContainsNoElements); } return x[0]; } /** * Applies an accumulator function over an observable sequence, returning the result of the aggregation as a single element in the result sequence. The specified seed value is used as the initial accumulator value. * For aggregation behavior with incremental intermediate results, see Observable.scan. * @example * 1 - res = source.aggregate(function (acc, x) { return acc + x; }); * 2 - res = source.aggregate(0, function (acc, x) { return acc + x; }); * @param {Mixed} [seed] The initial accumulator value. * @param {Function} accumulator An accumulator function to be invoked on each element. * @returns {Observable} An observable sequence containing a single element with the final accumulator value. */ observableProto.aggregate = function () { var seed, hasSeed, accumulator; if (arguments.length === 2) { seed = arguments[0]; hasSeed = true; accumulator = arguments[1]; } else { accumulator = arguments[0]; } return hasSeed ? this.scan(seed, accumulator).startWith(seed).finalValue() : this.scan(accumulator).finalValue(); }; /** * Applies an accumulator function over an observable sequence, returning the result of the aggregation as a single element in the result sequence. The specified seed value is used as the initial accumulator value. * For aggregation behavior with incremental intermediate results, see Observable.scan. * @example * 1 - res = source.reduce(function (acc, x) { return acc + x; }); * 2 - res = source.reduce(function (acc, x) { return acc + x; }, 0); * @param {Function} accumulator An accumulator function to be invoked on each element. * @param {Any} [seed] The initial accumulator value. * @returns {Observable} An observable sequence containing a single element with the final accumulator value. */ observableProto.reduce = function (accumulator) { var seed, hasSeed; if (arguments.length === 2) { hasSeed = true; seed = arguments[1]; } return hasSeed ? this.scan(seed, accumulator).startWith(seed).finalValue() : this.scan(accumulator).finalValue(); }; /** * Determines whether any element of an observable sequence satisfies a condition if present, else if any items are in the sequence. * @example * var result = source.any(); * var result = source.any(function (x) { return x > 3; }); * @param {Function} [predicate] A function to test each element for a condition. * @returns {Observable} An observable sequence containing a single element determining whether any elements in the source sequence pass the test in the specified predicate if given, else if any items are in the sequence. */ observableProto.some = observableProto.any = function (predicate, thisArg) { var source = this; return predicate ? source.where(predicate, thisArg).any() : new AnonymousObservable(function (observer) { return source.subscribe(function () { observer.onNext(true); observer.onCompleted(); }, observer.onError.bind(observer), function () { observer.onNext(false); observer.onCompleted(); }); }); }; /** * Determines whether an observable sequence is empty. * * @memberOf Observable# * @returns {Observable} An observable sequence containing a single element determining whether the source sequence is empty. */ observableProto.isEmpty = function () { return this.any().select(function (b) { return !b; }); }; /** * Determines whether all elements of an observable sequence satisfy a condition. * * 1 - res = source.all(function (value) { return value.length > 3; }); * @memberOf Observable# * @param {Function} [predicate] A function to test each element for a condition. * @param {Any} [thisArg] Object to use as this when executing callback. * @returns {Observable} An observable sequence containing a single element determining whether all elements in the source sequence pass the test in the specified predicate. */ observableProto.every = observableProto.all = function (predicate, thisArg) { return this.where(function (v) { return !predicate(v); }, thisArg).any().select(function (b) { return !b; }); }; /** * Determines whether an observable sequence contains a specified element with an optional equality comparer. * @example * 1 - res = source.contains(42); * 2 - res = source.contains({ value: 42 }, function (x, y) { return x.value === y.value; }); * @param value The value to locate in the source sequence. * @param {Function} [comparer] An equality comparer to compare elements. * @returns {Observable} An observable sequence containing a single element determining whether the source sequence contains an element that has the specified value. */ observableProto.contains = function (value, comparer) { comparer || (comparer = defaultComparer); return this.where(function (v) { return comparer(v, value); }).any(); }; /** * Returns an observable sequence containing a value that represents how many elements in the specified observable sequence satisfy a condition if provided, else the count of items. * @example * res = source.count(); * res = source.count(function (x) { return x > 3; }); * @param {Function} [predicate]A function to test each element for a condition. * @param {Any} [thisArg] Object to use as this when executing callback. * @returns {Observable} An observable sequence containing a single element with a number that represents how many elements in the input sequence satisfy the condition in the predicate function if provided, else the count of items in the sequence. */ observableProto.count = function (predicate, thisArg) { return predicate ? this.where(predicate, thisArg).count() : this.aggregate(0, function (count) { return count + 1; }); }; /** * Computes the sum of a sequence of values that are obtained by invoking an optional transform function on each element of the input sequence, else if not specified computes the sum on each item in the sequence. * @example * var res = source.sum(); * var res = source.sum(function (x) { return x.value; }); * @param {Function} [selector] A transform function to apply to each element. * @param {Any} [thisArg] Object to use as this when executing callback. * @returns {Observable} An observable sequence containing a single element with the sum of the values in the source sequence. */ observableProto.sum = function (keySelector, thisArg) { return keySelector ? this.select(keySelector, thisArg).sum() : this.aggregate(0, function (prev, curr) { return prev + curr; }); }; /** * Returns the elements in an observable sequence with the minimum key value according to the specified comparer. * @example * var res = source.minBy(function (x) { return x.value; }); * var res = source.minBy(function (x) { return x.value; }, function (x, y) { return x - y; }); * @param {Function} keySelector Key selector function. * @param {Function} [comparer] Comparer used to compare key values. * @returns {Observable} An observable sequence containing a list of zero or more elements that have a minimum key value. */ observableProto.minBy = function (keySelector, comparer) { comparer || (comparer = defaultSubComparer); return extremaBy(this, keySelector, function (x, y) { return comparer(x, y) * -1; }); }; /** * Returns the minimum element in an observable sequence according to the optional comparer else a default greater than less than check. * @example * var res = source.min(); * var res = source.min(function (x, y) { return x.value - y.value; }); * @param {Function} [comparer] Comparer used to compare elements. * @returns {Observable} An observable sequence containing a single element with the minimum element in the source sequence. */ observableProto.min = function (comparer) { return this.minBy(identity, comparer).select(function (x) { return firstOnly(x); }); }; /** * Returns the elements in an observable sequence with the maximum key value according to the specified comparer. * @example * var res = source.maxBy(function (x) { return x.value; }); * var res = source.maxBy(function (x) { return x.value; }, function (x, y) { return x - y;; }); * @param {Function} keySelector Key selector function. * @param {Function} [comparer] Comparer used to compare key values. * @returns {Observable} An observable sequence containing a list of zero or more elements that have a maximum key value. */ observableProto.maxBy = function (keySelector, comparer) { comparer || (comparer = defaultSubComparer); return extremaBy(this, keySelector, comparer); }; /** * Returns the maximum value in an observable sequence according to the specified comparer. * @example * var res = source.max(); * var res = source.max(function (x, y) { return x.value - y.value; }); * @param {Function} [comparer] Comparer used to compare elements. * @returns {Observable} An observable sequence containing a single element with the maximum element in the source sequence. */ observableProto.max = function (comparer) { return this.maxBy(identity, comparer).select(function (x) { return firstOnly(x); }); }; /** * Computes the average of an observable sequence of values that are in the sequence or obtained by invoking a transform function on each element of the input sequence if present. * @example * var res = res = source.average(); * var res = res = source.average(function (x) { return x.value; }); * @param {Function} [selector] A transform function to apply to each element. * @param {Any} [thisArg] Object to use as this when executing callback. * @returns {Observable} An observable sequence containing a single element with the average of the sequence of values. */ observableProto.average = function (keySelector, thisArg) { return keySelector ? this.select(keySelector, thisArg).average() : this.scan({ sum: 0, count: 0 }, function (prev, cur) { return { sum: prev.sum + cur, count: prev.count + 1 }; }).finalValue().select(function (s) { if (s.count === 0) { throw new Error('The input sequence was empty'); } return s.sum / s.count; }); }; function sequenceEqualArray(first, second, comparer) { return new AnonymousObservable(function (observer) { var count = 0, len = second.length; return first.subscribe(function (value) { var equal = false; try { if (count < len) { equal = comparer(value, second[count++]); } } catch (e) { observer.onError(e); return; } if (!equal) { observer.onNext(false); observer.onCompleted(); } }, observer.onError.bind(observer), function () { observer.onNext(count === len); observer.onCompleted(); }); }); } /** * Determines whether two sequences are equal by comparing the elements pairwise using a specified equality comparer. * * @example * var res = res = source.sequenceEqual([1,2,3]); * var res = res = source.sequenceEqual([{ value: 42 }], function (x, y) { return x.value === y.value; }); * 3 - res = source.sequenceEqual(Rx.Observable.returnValue(42)); * 4 - res = source.sequenceEqual(Rx.Observable.returnValue({ value: 42 }), function (x, y) { return x.value === y.value; }); * @param {Observable} second Second observable sequence or array to compare. * @param {Function} [comparer] Comparer used to compare elements of both sequences. * @returns {Observable} An observable sequence that contains a single element which indicates whether both sequences are of equal length and their corresponding elements are equal according to the specified equality comparer. */ observableProto.sequenceEqual = function (second, comparer) { var first = this; comparer || (comparer = defaultComparer); if (Array.isArray(second)) { return sequenceEqualArray(first, second, comparer); } return new AnonymousObservable(function (observer) { var donel = false, doner = false, ql = [], qr = []; var subscription1 = first.subscribe(function (x) { var equal, v; if (qr.length > 0) { v = qr.shift(); try { equal = comparer(v, x); } catch (e) { observer.onError(e); return; } if (!equal) { observer.onNext(false); observer.onCompleted(); } } else if (doner) { observer.onNext(false); observer.onCompleted(); } else { ql.push(x); } }, observer.onError.bind(observer), function () { donel = true; if (ql.length === 0) { if (qr.length > 0) { observer.onNext(false); observer.onCompleted(); } else if (doner) { observer.onNext(true); observer.onCompleted(); } } }); isPromise(second) && (second = observableFromPromise(second)); var subscription2 = second.subscribe(function (x) { var equal, v; if (ql.length > 0) { v = ql.shift(); try { equal = comparer(v, x); } catch (exception) { observer.onError(exception); return; } if (!equal) { observer.onNext(false); observer.onCompleted(); } } else if (donel) { observer.onNext(false); observer.onCompleted(); } else { qr.push(x); } }, observer.onError.bind(observer), function () { doner = true; if (qr.length === 0) { if (ql.length > 0) { observer.onNext(false); observer.onCompleted(); } else if (donel) { observer.onNext(true); observer.onCompleted(); } } }); return new CompositeDisposable(subscription1, subscription2); }); }; function elementAtOrDefault(source, index, hasDefault, defaultValue) { if (index < 0) { throw new Error(argumentOutOfRange); } return new AnonymousObservable(function (observer) { var i = index; return source.subscribe(function (x) { if (i === 0) { observer.onNext(x); observer.onCompleted(); } i--; }, observer.onError.bind(observer), function () { if (!hasDefault) { observer.onError(new Error(argumentOutOfRange)); } else { observer.onNext(defaultValue); observer.onCompleted(); } }); }); } /** * Returns the element at a specified index in a sequence. * @example * var res = source.elementAt(5); * @param {Number} index The zero-based index of the element to retrieve. * @returns {Observable} An observable sequence that produces the element at the specified position in the source sequence. */ observableProto.elementAt = function (index) { return elementAtOrDefault(this, index, false); }; /** * Returns the element at a specified index in a sequence or a default value if the index is out of range. * @example * var res = source.elementAtOrDefault(5); * var res = source.elementAtOrDefault(5, 0); * @param {Number} index The zero-based index of the element to retrieve. * @param [defaultValue] The default value if the index is outside the bounds of the source sequence. * @returns {Observable} An observable sequence that produces the element at the specified position in the source sequence, or a default value if the index is outside the bounds of the source sequence. */ observableProto.elementAtOrDefault = function (index, defaultValue) { return elementAtOrDefault(this, index, true, defaultValue); }; function singleOrDefaultAsync(source, hasDefault, defaultValue) { return new AnonymousObservable(function (observer) { var value = defaultValue, seenValue = false; return source.subscribe(function (x) { if (seenValue) { observer.onError(new Error('Sequence contains more than one element')); } else { value = x; seenValue = true; } }, observer.onError.bind(observer), function () { if (!seenValue && !hasDefault) { observer.onError(new Error(sequenceContainsNoElements)); } else { observer.onNext(value); observer.onCompleted(); } }); }); } /** * Returns the only element of an observable sequence that satisfies the condition in the optional predicate, and reports an exception if there is not exactly one element in the observable sequence. * @example * var res = res = source.single(); * var res = res = source.single(function (x) { return x === 42; }); * @param {Function} [predicate] A predicate function to evaluate for elements in the source sequence. * @param {Any} [thisArg] Object to use as `this` when executing the predicate. * @returns {Observable} Sequence containing the single element in the observable sequence that satisfies the condition in the predicate. */ observableProto.single = function (predicate, thisArg) { return predicate ? this.where(predicate, thisArg).single() : singleOrDefaultAsync(this, false); }; /** * Returns the only element of an observable sequence that matches the predicate, or a default value if no such element exists; this method reports an exception if there is more than one element in the observable sequence. * @example * var res = res = source.singleOrDefault(); * var res = res = source.singleOrDefault(function (x) { return x === 42; }); * res = source.singleOrDefault(function (x) { return x === 42; }, 0); * res = source.singleOrDefault(null, 0); * @memberOf Observable# * @param {Function} predicate A predicate function to evaluate for elements in the source sequence. * @param [defaultValue] The default value if the index is outside the bounds of the source sequence. * @param {Any} [thisArg] Object to use as `this` when executing the predicate. * @returns {Observable} Sequence containing the single element in the observable sequence that satisfies the condition in the predicate, or a default value if no such element exists. */ observableProto.singleOrDefault = function (predicate, defaultValue, thisArg) { return predicate? this.where(predicate, thisArg).singleOrDefault(null, defaultValue) : singleOrDefaultAsync(this, true, defaultValue) }; function firstOrDefaultAsync(source, hasDefault, defaultValue) { return new AnonymousObservable(function (observer) { return source.subscribe(function (x) { observer.onNext(x); observer.onCompleted(); }, observer.onError.bind(observer), function () { if (!hasDefault) { observer.onError(new Error(sequenceContainsNoElements)); } else { observer.onNext(defaultValue); observer.onCompleted(); } }); }); } /** * Returns the first element of an observable sequence that satisfies the condition in the predicate if present else the first item in the sequence. * @example * var res = res = source.first(); * var res = res = source.first(function (x) { return x > 3; }); * @param {Function} [predicate] A predicate function to evaluate for elements in the source sequence. * @param {Any} [thisArg] Object to use as `this` when executing the predicate. * @returns {Observable} Sequence containing the first element in the observable sequence that satisfies the condition in the predicate if provided, else the first item in the sequence. */ observableProto.first = function (predicate, thisArg) { return predicate ? this.where(predicate, thisArg).first() : firstOrDefaultAsync(this, false); }; /** * Returns the first element of an observable sequence that satisfies the condition in the predicate, or a default value if no such element exists. * @example * var res = res = source.firstOrDefault(); * var res = res = source.firstOrDefault(function (x) { return x > 3; }); * var res = source.firstOrDefault(function (x) { return x > 3; }, 0); * var res = source.firstOrDefault(null, 0); * @param {Function} [predicate] A predicate function to evaluate for elements in the source sequence. * @param {Any} [defaultValue] The default value if no such element exists. If not specified, defaults to null. * @param {Any} [thisArg] Object to use as `this` when executing the predicate. * @returns {Observable} Sequence containing the first element in the observable sequence that satisfies the condition in the predicate, or a default value if no such element exists. */ observableProto.firstOrDefault = function (predicate, defaultValue, thisArg) { return predicate ? this.where(predicate).firstOrDefault(null, defaultValue) : firstOrDefaultAsync(this, true, defaultValue); }; function lastOrDefaultAsync(source, hasDefault, defaultValue) { return new AnonymousObservable(function (observer) { var value = defaultValue, seenValue = false; return source.subscribe(function (x) { value = x; seenValue = true; }, observer.onError.bind(observer), function () { if (!seenValue && !hasDefault) { observer.onError(new Error(sequenceContainsNoElements)); } else { observer.onNext(value); observer.onCompleted(); } }); }); } /** * Returns the last element of an observable sequence that satisfies the condition in the predicate if specified, else the last element. * @example * var res = source.last(); * var res = source.last(function (x) { return x > 3; }); * @param {Function} [predicate] A predicate function to evaluate for elements in the source sequence. * @param {Any} [thisArg] Object to use as `this` when executing the predicate. * @returns {Observable} Sequence containing the last element in the observable sequence that satisfies the condition in the predicate. */ observableProto.last = function (predicate, thisArg) { return predicate ? this.where(predicate, thisArg).last() : lastOrDefaultAsync(this, false); }; /** * Returns the last element of an observable sequence that satisfies the condition in the predicate, or a default value if no such element exists. * @example * var res = source.lastOrDefault(); * var res = source.lastOrDefault(function (x) { return x > 3; }); * var res = source.lastOrDefault(function (x) { return x > 3; }, 0); * var res = source.lastOrDefault(null, 0); * @param {Function} [predicate] A predicate function to evaluate for elements in the source sequence. * @param [defaultValue] The default value if no such element exists. If not specified, defaults to null. * @param {Any} [thisArg] Object to use as `this` when executing the predicate. * @returns {Observable} Sequence containing the last element in the observable sequence that satisfies the condition in the predicate, or a default value if no such element exists. */ observableProto.lastOrDefault = function (predicate, defaultValue, thisArg) { return predicate ? this.where(predicate, thisArg).lastOrDefault(null, defaultValue) : lastOrDefaultAsync(this, true, defaultValue); }; function findValue (source, predicate, thisArg, yieldIndex) { return new AnonymousObservable(function (observer) { var i = 0; return source.subscribe(function (x) { var shouldRun; try { shouldRun = predicate.call(thisArg, x, i, source); } catch(e) { observer.onError(e); return; } if (shouldRun) { observer.onNext(yieldIndex ? i : x); observer.onCompleted(); } else { i++; } }, observer.onError.bind(observer), function () { observer.onNext(yieldIndex ? -1 : undefined); observer.onCompleted(); }); }); } /** * Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire Observable sequence. * @param {Function} predicate The predicate that defines the conditions of the element to search for. * @param {Any} [thisArg] Object to use as `this` when executing the predicate. * @returns {Observable} An Observable sequence with the first element that matches the conditions defined by the specified predicate, if found; otherwise, undefined. */ observableProto.find = function (predicate, thisArg) { return findValue(this, predicate, thisArg, false); }; /** * Searches for an element that matches the conditions defined by the specified predicate, and returns * an Observable sequence with the zero-based index of the first occurrence within the entire Observable sequence. * @param {Function} predicate The predicate that defines the conditions of the element to search for. * @param {Any} [thisArg] Object to use as `this` when executing the predicate. * @returns {Observable} An Observable sequence with the zero-based index of the first occurrence of an element that matches the conditions defined by match, if found; otherwise, –1. */ observableProto.findIndex = function (predicate, thisArg) { return findValue(this, predicate, thisArg, true); }; /** * Invokes the specified function asynchronously on the specified scheduler, surfacing the result through an observable sequence. * * @example * var res = Rx.Observable.start(function () { console.log('hello'); }); * var res = Rx.Observable.start(function () { console.log('hello'); }, Rx.Scheduler.timeout); * var res = Rx.Observable.start(function () { this.log('hello'); }, Rx.Scheduler.timeout, console); * * @param {Function} func Function to run asynchronously. * @param {Scheduler} [scheduler] Scheduler to run the function on. If not specified, defaults to Scheduler.timeout. * @param [context] The context for the func parameter to be executed. If not specified, defaults to undefined. * @returns {Observable} An observable sequence exposing the function's result value, or an exception. * * Remarks * * The function is called immediately, not during the subscription of the resulting sequence. * * Multiple subscriptions to the resulting sequence can observe the function's result. */ Observable.start = function (func, scheduler, context) { return observableToAsync(func, scheduler, context)(); }; /** * Converts the function into an asynchronous function. Each invocation of the resulting asynchronous function causes an invocation of the original synchronous function on the specified scheduler. * * @example * var res = Rx.Observable.toAsync(function (x, y) { return x + y; })(4, 3); * var res = Rx.Observable.toAsync(function (x, y) { return x + y; }, Rx.Scheduler.timeout)(4, 3); * var res = Rx.Observable.toAsync(function (x) { this.log(x); }, Rx.Scheduler.timeout, console)('hello'); * * @param {Function} function Function to convert to an asynchronous function. * @param {Scheduler} [scheduler] Scheduler to run the function on. If not specified, defaults to Scheduler.timeout. * @param {Mixed} [context] The context for the func parameter to be executed. If not specified, defaults to undefined. * @returns {Function} Asynchronous function. */ var observableToAsync = Observable.toAsync = function (func, scheduler, context) { scheduler || (scheduler = timeoutScheduler); return function () { var args = arguments, subject = new AsyncSubject(); scheduler.schedule(function () { var result; try { result = func.apply(context, args); } catch (e) { subject.onError(e); return; } subject.onNext(result); subject.onCompleted(); }); return subject.asObservable(); }; }; /** * Converts a callback function to an observable sequence. * * @param {Function} function Function with a callback as the last parameter to convert to an Observable sequence. * @param {Scheduler} [scheduler] Scheduler to run the function on. If not specified, defaults to Scheduler.timeout. * @param {Mixed} [context] The context for the func parameter to be executed. If not specified, defaults to undefined. * @param {Function} [selector] A selector which takes the arguments from the callback to produce a single item to yield on next. * @returns {Function} A function, when executed with the required parameters minus the callback, produces an Observable sequence with a single value of the arguments to the callback as an array. */ Observable.fromCallback = function (func, scheduler, context, selector) { scheduler || (scheduler = immediateScheduler); return function () { var args = slice.call(arguments, 0); return new AnonymousObservable(function (observer) { return scheduler.schedule(function () { function handler(e) { var results = e; if (selector) { try { results = selector(arguments); } catch (err) { observer.onError(err); return; } } else { if (results.length === 1) { results = results[0]; } } observer.onNext(results); observer.onCompleted(); } args.push(handler); func.apply(context, args); }); }); }; }; /** * Converts a Node.js callback style function to an observable sequence. This must be in function (err, ...) format. * @param {Function} func The function to call * @param {Scheduler} [scheduler] Scheduler to run the function on. If not specified, defaults to Scheduler.timeout. * @param {Mixed} [context] The context for the func parameter to be executed. If not specified, defaults to undefined. * @param {Function} [selector] A selector which takes the arguments from the callback minus the error to produce a single item to yield on next. * @returns {Function} An async function which when applied, returns an observable sequence with the callback arguments as an array. */ Observable.fromNodeCallback = function (func, scheduler, context, selector) { scheduler || (scheduler = immediateScheduler); return function () { var args = slice.call(arguments, 0); return new AnonymousObservable(function (observer) { return scheduler.schedule(function () { function handler(err) { if (err) { observer.onError(err); return; } var results = slice.call(arguments, 1); if (selector) { try { results = selector(results); } catch (e) { observer.onError(e); return; } } else { if (results.length === 1) { results = results[0]; } } observer.onNext(results); observer.onCompleted(); } args.push(handler); func.apply(context, args); }); }); }; }; function createListener (element, name, handler) { // Node.js specific if (element.addListener) { element.addListener(name, handler); return disposableCreate(function () { element.removeListener(name, handler); }); } if (element.addEventListener) { element.addEventListener(name, handler, false); return disposableCreate(function () { element.removeEventListener(name, handler, false); }); } throw new Error('No listener found'); } function createEventListener (el, eventName, handler) { var disposables = new CompositeDisposable(); // Asume NodeList if (typeof el.item === 'function' && typeof el.length === 'number') { for (var i = 0, len = el.length; i < len; i++) { disposables.add(createEventListener(el.item(i), eventName, handler)); } } else if (el) { disposables.add(createListener(el, eventName, handler)); } return disposables; } // Check for Angular/jQuery/Zepto support var jq = !!root.angular && !!angular.element ? angular.element : (!!root.jQuery ? root.jQuery : ( !!root.Zepto ? root.Zepto : null)); // Check for ember var ember = !!root.Ember && typeof root.Ember.addListener === 'function'; /** * Creates an observable sequence by adding an event listener to the matching DOMElement or each item in the NodeList. * * @example * var source = Rx.Observable.fromEvent(element, 'mouseup'); * * @param {Object} element The DOMElement or NodeList to attach a listener. * @param {String} eventName The event name to attach the observable sequence. * @param {Function} [selector] A selector which takes the arguments from the event handler to produce a single item to yield on next. * @returns {Observable} An observable sequence of events from the specified element and the specified event. */ Observable.fromEvent = function (element, eventName, selector) { if (ember) { return fromEventPattern( function (h) { Ember.addListener(element, eventName, h); }, function (h) { Ember.removeListener(element, eventName, h); }, selector); } if (jq) { var $elem = jq(element); return fromEventPattern( function (h) { $elem.on(eventName, h); }, function (h) { $elem.off(eventName, h); }, selector); } return new AnonymousObservable(function (observer) { return createEventListener( element, eventName, function handler (e) { var results = e; if (selector) { try { results = selector(arguments); } catch (err) { observer.onError(err); return } } observer.onNext(results); }); }).publish().refCount(); }; /** * Creates an observable sequence from an event emitter via an addHandler/removeHandler pair. * @param {Function} addHandler The function to add a handler to the emitter. * @param {Function} [removeHandler] The optional function to remove a handler from an emitter. * @param {Function} [selector] A selector which takes the arguments from the event handler to produce a single item to yield on next. * @returns {Observable} An observable sequence which wraps an event from an event emitter */ var fromEventPattern = Observable.fromEventPattern = function (addHandler, removeHandler, selector) { return new AnonymousObservable(function (observer) { function innerHandler (e) { var result = e; if (selector) { try { result = selector(arguments); } catch (err) { observer.onError(err); return; } } observer.onNext(result); } var returnValue = addHandler(innerHandler); return disposableCreate(function () { if (removeHandler) { removeHandler(innerHandler, returnValue); } }); }).publish().refCount(); }; /** * Invokes the asynchronous function, surfacing the result through an observable sequence. * @param {Function} functionAsync Asynchronous function which returns a Promise to run. * @returns {Observable} An observable sequence exposing the function's result value, or an exception. */ Observable.startAsync = function (functionAsync) { var promise; try { promise = functionAsync(); } catch (e) { return observableThrow(e); } return observableFromPromise(promise); } var PausableObservable = (function (_super) { inherits(PausableObservable, _super); function subscribe(observer) { var conn = this.source.publish(), subscription = conn.subscribe(observer), connection = disposableEmpty; var pausable = this.subject.distinctUntilChanged().subscribe(function (b) { if (b) { connection = conn.connect(); } else { connection.dispose(); connection = disposableEmpty; } }); return new CompositeDisposable(subscription, connection, pausable); } function PausableObservable(source, subject) { this.source = source; this.subject = subject || new Subject(); this.isPaused = true; _super.call(this, subscribe); } PausableObservable.prototype.pause = function () { if (this.isPaused === true){ return; } this.isPaused = true; this.subject.onNext(false); }; PausableObservable.prototype.resume = function () { if (this.isPaused === false){ return; } this.isPaused = false; this.subject.onNext(true); }; return PausableObservable; }(Observable)); /** * Pauses the underlying observable sequence based upon the observable sequence which yields true/false. * @example * var pauser = new Rx.Subject(); * var source = Rx.Observable.interval(100).pausable(pauser); * @param {Observable} pauser The observable sequence used to pause the underlying sequence. * @returns {Observable} The observable sequence which is paused based upon the pauser. */ observableProto.pausable = function (pauser) { return new PausableObservable(this, pauser); }; function combineLatestSource(source, subject, resultSelector) { return new AnonymousObservable(function (observer) { var n = 2, hasValue = [false, false], hasValueAll = false, isDone = false, values = new Array(n); function next(x, i) { values[i] = x var res; hasValue[i] = true; if (hasValueAll || (hasValueAll = hasValue.every(identity))) { try { res = resultSelector.apply(null, values); } catch (ex) { observer.onError(ex); return; } observer.onNext(res); } else if (isDone) { observer.onCompleted(); } } return new CompositeDisposable( source.subscribe( function (x) { next(x, 0); }, observer.onError.bind(observer), function () { isDone = true; observer.onCompleted(); }), subject.subscribe( function (x) { next(x, 1); }, observer.onError.bind(observer)) ); }); } var PausableBufferedObservable = (function (_super) { inherits(PausableBufferedObservable, _super); function subscribe(observer) { var q = [], previous = true; var subscription = combineLatestSource( this.source, this.subject.distinctUntilChanged(), function (data, shouldFire) { return { data: data, shouldFire: shouldFire }; }) .subscribe( function (results) { if (results.shouldFire && previous) { observer.onNext(results.data); } if (results.shouldFire && !previous) { while (q.length > 0) { observer.onNext(q.shift()); } previous = true; } else if (!results.shouldFire && !previous) { q.push(results.data); } else if (!results.shouldFire && previous) { previous = false; } }, function (err) { // Empty buffer before sending error while (q.length > 0) { observer.onNext(q.shift()); } observer.onError(err); }, function () { // Empty buffer before sending completion while (q.length > 0) { observer.onNext(q.shift()); } observer.onCompleted(); } ); this.subject.onNext(false); return subscription; } function PausableBufferedObservable(source, subject) { this.source = source; this.subject = subject || new Subject(); this.isPaused = true; _super.call(this, subscribe); } PausableBufferedObservable.prototype.pause = function () { if (this.isPaused === true){ return; } this.isPaused = true; this.subject.onNext(false); }; PausableBufferedObservable.prototype.resume = function () { if (this.isPaused === false){ return; } this.isPaused = false; this.subject.onNext(true); }; return PausableBufferedObservable; }(Observable)); /** * Pauses the underlying observable sequence based upon the observable sequence which yields true/false, * and yields the values that were buffered while paused. * @example * var pauser = new Rx.Subject(); * var source = Rx.Observable.interval(100).pausableBuffered(pauser); * @param {Observable} pauser The observable sequence used to pause the underlying sequence. * @returns {Observable} The observable sequence which is paused based upon the pauser. */ observableProto.pausableBuffered = function (subject) { return new PausableBufferedObservable(this, subject); }; /** * Attaches a controller to the observable sequence with the ability to queue. * @example * var source = Rx.Observable.interval(100).controlled(); * source.request(3); // Reads 3 values * @param {Observable} pauser The observable sequence used to pause the underlying sequence. * @returns {Observable} The observable sequence which is paused based upon the pauser. */ observableProto.controlled = function (enableQueue) { if (enableQueue == null) { enableQueue = true; } return new ControlledObservable(this, enableQueue); }; var ControlledObservable = (function (_super) { inherits(ControlledObservable, _super); function subscribe (observer) { return this.source.subscribe(observer); } function ControlledObservable (source, enableQueue) { _super.call(this, subscribe); this.subject = new ControlledSubject(enableQueue); this.source = source.multicast(this.subject).refCount(); } ControlledObservable.prototype.request = function (numberOfItems) { if (numberOfItems == null) { numberOfItems = -1; } return this.subject.request(numberOfItems); }; return ControlledObservable; }(Observable)); var ControlledSubject = Rx.ControlledSubject = (function (_super) { function subscribe (observer) { return this.subject.subscribe(observer); } inherits(ControlledSubject, _super); function ControlledSubject(enableQueue) { if (enableQueue == null) { enableQueue = true; } _super.call(this, subscribe); this.subject = new Subject(); this.enableQueue = enableQueue; this.queue = enableQueue ? [] : null; this.requestedCount = 0; this.requestedDisposable = disposableEmpty; this.error = null; this.hasFailed = false; this.hasCompleted = false; this.controlledDisposable = disposableEmpty; } addProperties(ControlledSubject.prototype, Observer, { onCompleted: function () { checkDisposed.call(this); this.hasCompleted = true; if (!this.enableQueue || this.queue.length === 0) { this.subject.onCompleted(); } }, onError: function (error) { checkDisposed.call(this); this.hasFailed = true; this.error = error; if (!this.enableQueue || this.queue.length === 0) { this.subject.onError(error); } }, onNext: function (value) { checkDisposed.call(this); var hasRequested = false; if (this.requestedCount === 0) { if (this.enableQueue) { this.queue.push(value); } } else { if (this.requestedCount !== -1) { if (this.requestedCount-- === 0) { this.disposeCurrentRequest(); } } hasRequested = true; } if (hasRequested) { this.subject.onNext(value); } }, _processRequest: function (numberOfItems) { if (this.enableQueue) { //console.log('queue length', this.queue.length); while (this.queue.length >= numberOfItems && numberOfItems > 0) { //console.log('number of items', numberOfItems); this.subject.onNext(this.queue.shift()); numberOfItems--; } if (this.queue.length !== 0) { return { numberOfItems: numberOfItems, returnValue: true }; } else { return { numberOfItems: numberOfItems, returnValue: false }; } } if (this.hasFailed) { this.subject.onError(this.error); this.controlledDisposable.dispose(); this.controlledDisposable = disposableEmpty; } else if (this.hasCompleted) { this.subject.onCompleted(); this.controlledDisposable.dispose(); this.controlledDisposable = disposableEmpty; } return { numberOfItems: numberOfItems, returnValue: false }; }, request: function (number) { checkDisposed.call(this); this.disposeCurrentRequest(); var self = this, r = this._processRequest(number); number = r.numberOfItems; if (!r.returnValue) { this.requestedCount = number; this.requestedDisposable = disposableCreate(function () { self.requestedCount = 0; }); return this.requestedDisposable } else { return disposableEmpty; } }, disposeCurrentRequest: function () { this.requestedDisposable.dispose(); this.requestedDisposable = disposableEmpty; }, dispose: function () { this.isDisposed = true; this.error = null; this.subject.dispose(); this.requestedDisposable.dispose(); } }); return ControlledSubject; }(Observable)); /** * Multicasts the source sequence notifications through an instantiated subject into all uses of the sequence within a selector function. Each * subscription to the resulting sequence causes a separate multicast invocation, exposing the sequence resulting from the selector function's * invocation. For specializations with fixed subject types, see Publish, PublishLast, and Replay. * * @example * 1 - res = source.multicast(observable); * 2 - res = source.multicast(function () { return new Subject(); }, function (x) { return x; }); * * @param {Function|Subject} subjectOrSubjectSelector * Factory function to create an intermediate subject through which the source sequence's elements will be multicast to the selector function. * Or: * Subject to push source elements into. * * @param {Function} [selector] Optional selector function which can use the multicasted source sequence subject to the policies enforced by the created subject. Specified only if <paramref name="subjectOrSubjectSelector" is a factory function. * @returns {Observable} An observable sequence that contains the elements of a sequence produced by multicasting the source sequence within a selector function. */ observableProto.multicast = function (subjectOrSubjectSelector, selector) { var source = this; return typeof subjectOrSubjectSelector === 'function' ? new AnonymousObservable(function (observer) { var connectable = source.multicast(subjectOrSubjectSelector()); return new CompositeDisposable(selector(connectable).subscribe(observer), connectable.connect()); }) : new ConnectableObservable(source, subjectOrSubjectSelector); }; /** * Returns an observable sequence that is the result of invoking the selector on a connectable observable sequence that shares a single subscription to the underlying sequence. * This operator is a specialization of Multicast using a regular Subject. * * @example * var resres = source.publish(); * var res = source.publish(function (x) { return x; }); * * @param {Function} [selector] Selector function which can use the multicasted source sequence as many times as needed, without causing multiple subscriptions to the source sequence. Subscribers to the given source will receive all notifications of the source from the time of the subscription on. * @returns {Observable} An observable sequence that contains the elements of a sequence produced by multicasting the source sequence within a selector function. */ observableProto.publish = function (selector) { return !selector ? this.multicast(new Subject()) : this.multicast(function () { return new Subject(); }, selector); }; /** * Returns an observable sequence that shares a single subscription to the underlying sequence. * This operator is a specialization of publish which creates a subscription when the number of observers goes from zero to one, then shares that subscription with all subsequent observers until the number of observers returns to zero, at which point the subscription is disposed. * * @example * var res = source.share(); * * @returns {Observable} An observable sequence that contains the elements of a sequence produced by multicasting the source sequence. */ observableProto.share = function () { return this.publish(null).refCount(); }; /** * Returns an observable sequence that is the result of invoking the selector on a connectable observable sequence that shares a single subscription to the underlying sequence containing only the last notification. * This operator is a specialization of Multicast using a AsyncSubject. * * @example * var res = source.publishLast(); * var res = source.publishLast(function (x) { return x; }); * * @param selector [Optional] Selector function which can use the multicasted source sequence as many times as needed, without causing multiple subscriptions to the source sequence. Subscribers to the given source will only receive the last notification of the source. * @returns {Observable} An observable sequence that contains the elements of a sequence produced by multicasting the source sequence within a selector function. */ observableProto.publishLast = function (selector) { return !selector ? this.multicast(new AsyncSubject()) : this.multicast(function () { return new AsyncSubject(); }, selector); }; /** * Returns an observable sequence that is the result of invoking the selector on a connectable observable sequence that shares a single subscription to the underlying sequence and starts with initialValue. * This operator is a specialization of Multicast using a BehaviorSubject. * * @example * var res = source.publishValue(42); * var res = source.publishValue(function (x) { return x.select(function (y) { return y * y; }) }, 42); * * @param {Function} [selector] Optional selector function which can use the multicasted source sequence as many times as needed, without causing multiple subscriptions to the source sequence. Subscribers to the given source will receive immediately receive the initial value, followed by all notifications of the source from the time of the subscription on. * @param {Mixed} initialValue Initial value received by observers upon subscription. * @returns {Observable} An observable sequence that contains the elements of a sequence produced by multicasting the source sequence within a selector function. */ observableProto.publishValue = function (initialValueOrSelector, initialValue) { return arguments.length === 2 ? this.multicast(function () { return new BehaviorSubject(initialValue); }, initialValueOrSelector) : this.multicast(new BehaviorSubject(initialValueOrSelector)); }; /** * Returns an observable sequence that shares a single subscription to the underlying sequence and starts with an initialValue. * This operator is a specialization of publishValue which creates a subscription when the number of observers goes from zero to one, then shares that subscription with all subsequent observers until the number of observers returns to zero, at which point the subscription is disposed. * * @example * var res = source.shareValue(42); * * @param {Mixed} initialValue Initial value received by observers upon subscription. * @returns {Observable} An observable sequence that contains the elements of a sequence produced by multicasting the source sequence. */ observableProto.shareValue = function (initialValue) { return this.publishValue(initialValue). refCount(); }; /** * Returns an observable sequence that is the result of invoking the selector on a connectable observable sequence that shares a single subscription to the underlying sequence replaying notifications subject to a maximum time length for the replay buffer. * This operator is a specialization of Multicast using a ReplaySubject. * * @example * var res = source.replay(null, 3); * var res = source.replay(null, 3, 500); * var res = source.replay(null, 3, 500, scheduler); * var res = source.replay(function (x) { return x.take(6).repeat(); }, 3, 500, scheduler); * * @param selector [Optional] Selector function which can use the multicasted source sequence as many times as needed, without causing multiple subscriptions to the source sequence. Subscribers to the given source will receive all the notifications of the source subject to the specified replay buffer trimming policy. * @param bufferSize [Optional] Maximum element count of the replay buffer. * @param window [Optional] Maximum time length of the replay buffer. * @param scheduler [Optional] Scheduler where connected observers within the selector function will be invoked on. * @returns {Observable} An observable sequence that contains the elements of a sequence produced by multicasting the source sequence within a selector function. */ observableProto.replay = function (selector, bufferSize, window, scheduler) { return !selector ? this.multicast(new ReplaySubject(bufferSize, window, scheduler)) : this.multicast(function () { return new ReplaySubject(bufferSize, window, scheduler); }, selector); }; /** * Returns an observable sequence that shares a single subscription to the underlying sequence replaying notifications subject to a maximum time length for the replay buffer. * This operator is a specialization of replay which creates a subscription when the number of observers goes from zero to one, then shares that subscription with all subsequent observers until the number of observers returns to zero, at which point the subscription is disposed. * * @example * var res = source.shareReplay(3); * var res = source.shareReplay(3, 500); * var res = source.shareReplay(3, 500, scheduler); * * @param bufferSize [Optional] Maximum element count of the replay buffer. * @param window [Optional] Maximum time length of the replay buffer. * @param scheduler [Optional] Scheduler where connected observers within the selector function will be invoked on. * @returns {Observable} An observable sequence that contains the elements of a sequence produced by multicasting the source sequence. */ observableProto.shareReplay = function (bufferSize, window, scheduler) { return this.replay(null, bufferSize, window, scheduler).refCount(); }; /** @private */ var InnerSubscription = function (subject, observer) { this.subject = subject; this.observer = observer; }; /** * @private * @memberOf InnerSubscription */ InnerSubscription.prototype.dispose = function () { if (!this.subject.isDisposed && this.observer !== null) { var idx = this.subject.observers.indexOf(this.observer); this.subject.observers.splice(idx, 1); this.observer = null; } }; /** * Represents a value that changes over time. * Observers can subscribe to the subject to receive the last (or initial) value and all subsequent notifications. */ var BehaviorSubject = Rx.BehaviorSubject = (function (_super) { function subscribe(observer) { checkDisposed.call(this); if (!this.isStopped) { this.observers.push(observer); observer.onNext(this.value); return new InnerSubscription(this, observer); } var ex = this.exception; if (ex) { observer.onError(ex); } else { observer.onCompleted(); } return disposableEmpty; } inherits(BehaviorSubject, _super); /** * @constructor * Initializes a new instance of the BehaviorSubject class which creates a subject that caches its last value and starts with the specified value. * @param {Mixed} value Initial value sent to observers when no other value has been received by the subject yet. */ function BehaviorSubject(value) { _super.call(this, subscribe); this.value = value, this.observers = [], this.isDisposed = false, this.isStopped = false, this.exception = null; } addProperties(BehaviorSubject.prototype, Observer, { /** * Indicates whether the subject has observers subscribed to it. * @returns {Boolean} Indicates whether the subject has observers subscribed to it. */ hasObservers: function () { return this.observers.length > 0; }, /** * Notifies all subscribed observers about the end of the sequence. */ onCompleted: function () { checkDisposed.call(this); if (!this.isStopped) { var os = this.observers.slice(0); this.isStopped = true; for (var i = 0, len = os.length; i < len; i++) { os[i].onCompleted(); } this.observers = []; } }, /** * Notifies all subscribed observers about the exception. * @param {Mixed} error The exception to send to all observers. */ onError: function (error) { checkDisposed.call(this); if (!this.isStopped) { var os = this.observers.slice(0); this.isStopped = true; this.exception = error; for (var i = 0, len = os.length; i < len; i++) { os[i].onError(error); } this.observers = []; } }, /** * Notifies all subscribed observers about the arrival of the specified element in the sequence. * @param {Mixed} value The value to send to all observers. */ onNext: function (value) { checkDisposed.call(this); if (!this.isStopped) { this.value = value; var os = this.observers.slice(0); for (var i = 0, len = os.length; i < len; i++) { os[i].onNext(value); } } }, /** * Unsubscribe all observers and release resources. */ dispose: function () { this.isDisposed = true; this.observers = null; this.value = null; this.exception = null; } }); return BehaviorSubject; }(Observable)); /** * Represents an object that is both an observable sequence as well as an observer. * Each notification is broadcasted to all subscribed and future observers, subject to buffer trimming policies. */ var ReplaySubject = Rx.ReplaySubject = (function (_super) { function RemovableDisposable (subject, observer) { this.subject = subject; this.observer = observer; }; RemovableDisposable.prototype.dispose = function () { this.observer.dispose(); if (!this.subject.isDisposed) { var idx = this.subject.observers.indexOf(this.observer); this.subject.observers.splice(idx, 1); } }; function subscribe(observer) { var so = new ScheduledObserver(this.scheduler, observer), subscription = new RemovableDisposable(this, so); checkDisposed.call(this); this._trim(this.scheduler.now()); this.observers.push(so); var n = this.q.length; for (var i = 0, len = this.q.length; i < len; i++) { so.onNext(this.q[i].value); } if (this.hasError) { n++; so.onError(this.error); } else if (this.isStopped) { n++; so.onCompleted(); } so.ensureActive(n); return subscription; } inherits(ReplaySubject, _super); /** * Initializes a new instance of the ReplaySubject class with the specified buffer size, window size and scheduler. * @param {Number} [bufferSize] Maximum element count of the replay buffer. * @param {Number} [windowSize] Maximum time length of the replay buffer. * @param {Scheduler} [scheduler] Scheduler the observers are invoked on. */ function ReplaySubject(bufferSize, windowSize, scheduler) { this.bufferSize = bufferSize == null ? Number.MAX_VALUE : bufferSize; this.windowSize = windowSize == null ? Number.MAX_VALUE : windowSize; this.scheduler = scheduler || currentThreadScheduler; this.q = []; this.observers = []; this.isStopped = false; this.isDisposed = false; this.hasError = false; this.error = null; _super.call(this, subscribe); } addProperties(ReplaySubject.prototype, Observer, { /** * Indicates whether the subject has observers subscribed to it. * @returns {Boolean} Indicates whether the subject has observers subscribed to it. */ hasObservers: function () { return this.observers.length > 0; }, /* @private */ _trim: function (now) { while (this.q.length > this.bufferSize) { this.q.shift(); } while (this.q.length > 0 && (now - this.q[0].interval) > this.windowSize) { this.q.shift(); } }, /** * Notifies all subscribed observers about the arrival of the specified element in the sequence. * @param {Mixed} value The value to send to all observers. */ onNext: function (value) { var observer; checkDisposed.call(this); if (!this.isStopped) { var now = this.scheduler.now(); this.q.push({ interval: now, value: value }); this._trim(now); var o = this.observers.slice(0); for (var i = 0, len = o.length; i < len; i++) { observer = o[i]; observer.onNext(value); observer.ensureActive(); } } }, /** * Notifies all subscribed observers about the exception. * @param {Mixed} error The exception to send to all observers. */ onError: function (error) { var observer; checkDisposed.call(this); if (!this.isStopped) { this.isStopped = true; this.error = error; this.hasError = true; var now = this.scheduler.now(); this._trim(now); var o = this.observers.slice(0); for (var i = 0, len = o.length; i < len; i++) { observer = o[i]; observer.onError(error); observer.ensureActive(); } this.observers = []; } }, /** * Notifies all subscribed observers about the end of the sequence. */ onCompleted: function () { var observer; checkDisposed.call(this); if (!this.isStopped) { this.isStopped = true; var now = this.scheduler.now(); this._trim(now); var o = this.observers.slice(0); for (var i = 0, len = o.length; i < len; i++) { observer = o[i]; observer.onCompleted(); observer.ensureActive(); } this.observers = []; } }, /** * Unsubscribe all observers and release resources. */ dispose: function () { this.isDisposed = true; this.observers = null; } }); return ReplaySubject; }(Observable)); /** @private */ var ConnectableObservable = Rx.ConnectableObservable = (function (_super) { inherits(ConnectableObservable, _super); /** * @constructor * @private */ function ConnectableObservable(source, subject) { var state = { subject: subject, source: source.asObservable(), hasSubscription: false, subscription: null }; this.connect = function () { if (!state.hasSubscription) { state.hasSubscription = true; state.subscription = new CompositeDisposable(state.source.subscribe(state.subject), disposableCreate(function () { state.hasSubscription = false; })); } return state.subscription; }; function subscribe(observer) { return state.subject.subscribe(observer); } _super.call(this, subscribe); } /** * @private * @memberOf ConnectableObservable */ ConnectableObservable.prototype.connect = function () { return this.connect(); }; /** * @private * @memberOf ConnectableObservable */ ConnectableObservable.prototype.refCount = function () { var connectableSubscription = null, count = 0, source = this; return new AnonymousObservable(function (observer) { var shouldConnect, subscription; count++; shouldConnect = count === 1; subscription = source.subscribe(observer); if (shouldConnect) { connectableSubscription = source.connect(); } return disposableCreate(function () { subscription.dispose(); count--; if (count === 0) { connectableSubscription.dispose(); } }); }); }; return ConnectableObservable; }(Observable)); // Real Dictionary var primes = [1, 3, 7, 13, 31, 61, 127, 251, 509, 1021, 2039, 4093, 8191, 16381, 32749, 65521, 131071, 262139, 524287, 1048573, 2097143, 4194301, 8388593, 16777213, 33554393, 67108859, 134217689, 268435399, 536870909, 1073741789, 2147483647]; var noSuchkey = "no such key"; var duplicatekey = "duplicate key"; function isPrime(candidate) { if (candidate & 1 === 0) { return candidate === 2; } var num1 = Math.sqrt(candidate), num2 = 3; while (num2 <= num1) { if (candidate % num2 === 0) { return false; } num2 += 2; } return true; } function getPrime(min) { var index, num, candidate; for (index = 0; index < primes.length; ++index) { num = primes[index]; if (num >= min) { return num; } } candidate = min | 1; while (candidate < primes[primes.length - 1]) { if (isPrime(candidate)) { return candidate; } candidate += 2; } return min; } function stringHashFn(str) { var hash = 757602046; if (!str.length) { return hash; } for (var i = 0, len = str.length; i < len; i++) { var character = str.charCodeAt(i); hash = ((hash<<5)-hash)+character; hash = hash & hash; } return hash; } function numberHashFn(key) { var c2 = 0x27d4eb2d; key = (key ^ 61) ^ (key >>> 16); key = key + (key << 3); key = key ^ (key >>> 4); key = key * c2; key = key ^ (key >>> 15); return key; } var getHashCode = (function () { var uniqueIdCounter = 0; return function (obj) { if (obj == null) { throw new Error(noSuchkey); } // Check for built-ins before tacking on our own for any object if (typeof obj === 'string') { return stringHashFn(obj); } if (typeof obj === 'number') { return numberHashFn(obj); } if (typeof obj === 'boolean') { return obj === true ? 1 : 0; } if (obj instanceof Date) { return obj.getTime(); } if (obj.getHashCode) { return obj.getHashCode(); } var id = 17 * uniqueIdCounter++; obj.getHashCode = function () { return id; }; return id; }; } ()); function newEntry() { return { key: null, value: null, next: 0, hashCode: 0 }; } // Dictionary implementation var Dictionary = function (capacity, comparer) { if (capacity < 0) { throw new Error('out of range') } if (capacity > 0) { this._initialize(capacity); } this.comparer = comparer || defaultComparer; this.freeCount = 0; this.size = 0; this.freeList = -1; }; Dictionary.prototype._initialize = function (capacity) { var prime = getPrime(capacity), i; this.buckets = new Array(prime); this.entries = new Array(prime); for (i = 0; i < prime; i++) { this.buckets[i] = -1; this.entries[i] = newEntry(); } this.freeList = -1; }; Dictionary.prototype.count = function () { return this.size; }; Dictionary.prototype.add = function (key, value) { return this._insert(key, value, true); }; Dictionary.prototype._insert = function (key, value, add) { if (!this.buckets) { this._initialize(0); } var index3; var num = getHashCode(key) & 2147483647; var index1 = num % this.buckets.length; for (var index2 = this.buckets[index1]; index2 >= 0; index2 = this.entries[index2].next) { if (this.entries[index2].hashCode === num && this.comparer(this.entries[index2].key, key)) { if (add) { throw new Error(duplicatekey); } this.entries[index2].value = value; return; } } if (this.freeCount > 0) { index3 = this.freeList; this.freeList = this.entries[index3].next; --this.freeCount; } else { if (this.size === this.entries.length) { this._resize(); index1 = num % this.buckets.length; } index3 = this.size; ++this.size; } this.entries[index3].hashCode = num; this.entries[index3].next = this.buckets[index1]; this.entries[index3].key = key; this.entries[index3].value = value; this.buckets[index1] = index3; }; Dictionary.prototype._resize = function () { var prime = getPrime(this.size * 2), numArray = new Array(prime); for (index = 0; index < numArray.length; ++index) { numArray[index] = -1; } var entryArray = new Array(prime); for (index = 0; index < this.size; ++index) { entryArray[index] = this.entries[index]; } for (var index = this.size; index < prime; ++index) { entryArray[index] = newEntry(); } for (var index1 = 0; index1 < this.size; ++index1) { var index2 = entryArray[index1].hashCode % prime; entryArray[index1].next = numArray[index2]; numArray[index2] = index1; } this.buckets = numArray; this.entries = entryArray; }; Dictionary.prototype.remove = function (key) { if (this.buckets) { var num = getHashCode(key) & 2147483647; var index1 = num % this.buckets.length; var index2 = -1; for (var index3 = this.buckets[index1]; index3 >= 0; index3 = this.entries[index3].next) { if (this.entries[index3].hashCode === num && this.comparer(this.entries[index3].key, key)) { if (index2 < 0) { this.buckets[index1] = this.entries[index3].next; } else { this.entries[index2].next = this.entries[index3].next; } this.entries[index3].hashCode = -1; this.entries[index3].next = this.freeList; this.entries[index3].key = null; this.entries[index3].value = null; this.freeList = index3; ++this.freeCount; return true; } else { index2 = index3; } } } return false; }; Dictionary.prototype.clear = function () { var index, len; if (this.size <= 0) { return; } for (index = 0, len = this.buckets.length; index < len; ++index) { this.buckets[index] = -1; } for (index = 0; index < this.size; ++index) { this.entries[index] = newEntry(); } this.freeList = -1; this.size = 0; }; Dictionary.prototype._findEntry = function (key) { if (this.buckets) { var num = getHashCode(key) & 2147483647; for (var index = this.buckets[num % this.buckets.length]; index >= 0; index = this.entries[index].next) { if (this.entries[index].hashCode === num && this.comparer(this.entries[index].key, key)) { return index; } } } return -1; }; Dictionary.prototype.count = function () { return this.size - this.freeCount; }; Dictionary.prototype.tryGetValue = function (key) { var entry = this._findEntry(key); if (entry >= 0) { return this.entries[entry].value; } return undefined; }; Dictionary.prototype.getValues = function () { var index = 0, results = []; if (this.entries) { for (var index1 = 0; index1 < this.size; index1++) { if (this.entries[index1].hashCode >= 0) { results[index++] = this.entries[index1].value; } } } return results; }; Dictionary.prototype.get = function (key) { var entry = this._findEntry(key); if (entry >= 0) { return this.entries[entry].value; } throw new Error(noSuchkey); }; Dictionary.prototype.set = function (key, value) { this._insert(key, value, false); }; Dictionary.prototype.containskey = function (key) { return this._findEntry(key) >= 0; }; /** * Correlates the elements of two sequences based on overlapping durations. * * @param {Observable} right The right observable sequence to join elements for. * @param {Function} leftDurationSelector A function to select the duration (expressed as an observable sequence) of each element of the left observable sequence, used to determine overlap. * @param {Function} rightDurationSelector A function to select the duration (expressed as an observable sequence) of each element of the right observable sequence, used to determine overlap. * @param {Function} resultSelector A function invoked to compute a result element for any two overlapping elements of the left and right observable sequences. The parameters passed to the function correspond with the elements from the left and right source sequences for which overlap occurs. * @returns {Observable} An observable sequence that contains result elements computed from source elements that have an overlapping duration. */ observableProto.join = function (right, leftDurationSelector, rightDurationSelector, resultSelector) { var left = this; return new AnonymousObservable(function (observer) { var group = new CompositeDisposable(), leftDone = false, leftId = 0, leftMap = new Dictionary(), rightDone = false, rightId = 0, rightMap = new Dictionary(); group.add(left.subscribe(function (value) { var duration, expire, id = leftId++, md = new SingleAssignmentDisposable(), result, values; leftMap.add(id, value); group.add(md); expire = function () { if (leftMap.remove(id) && leftMap.count() === 0 && leftDone) { observer.onCompleted(); } return group.remove(md); }; try { duration = leftDurationSelector(value); } catch (e) { observer.onError(e); return; } md.setDisposable(duration.take(1).subscribe(noop, observer.onError.bind(observer), function () { expire(); })); values = rightMap.getValues(); for (var i = 0; i < values.length; i++) { try { result = resultSelector(value, values[i]); } catch (exception) { observer.onError(exception); return; } observer.onNext(result); } }, observer.onError.bind(observer), function () { leftDone = true; if (rightDone || leftMap.count() === 0) { observer.onCompleted(); } })); group.add(right.subscribe(function (value) { var duration, expire, id = rightId++, md = new SingleAssignmentDisposable(), result, values; rightMap.add(id, value); group.add(md); expire = function () { if (rightMap.remove(id) && rightMap.count() === 0 && rightDone) { observer.onCompleted(); } return group.remove(md); }; try { duration = rightDurationSelector(value); } catch (exception) { observer.onError(exception); return; } md.setDisposable(duration.take(1).subscribe(noop, observer.onError.bind(observer), function () { expire(); })); values = leftMap.getValues(); for (var i = 0; i < values.length; i++) { try { result = resultSelector(values[i], value); } catch (exception) { observer.onError(exception); return; } observer.onNext(result); } }, observer.onError.bind(observer), function () { rightDone = true; if (leftDone || rightMap.count() === 0) { observer.onCompleted(); } })); return group; }); }; /** * Correlates the elements of two sequences based on overlapping durations, and groups the results. * * @param {Observable} right The right observable sequence to join elements for. * @param {Function} leftDurationSelector A function to select the duration (expressed as an observable sequence) of each element of the left observable sequence, used to determine overlap. * @param {Function} rightDurationSelector A function to select the duration (expressed as an observable sequence) of each element of the right observable sequence, used to determine overlap. * @param {Function} resultSelector A function invoked to compute a result element for any element of the left sequence with overlapping elements from the right observable sequence. The first parameter passed to the function is an element of the left sequence. The second parameter passed to the function is an observable sequence with elements from the right sequence that overlap with the left sequence's element. * @returns {Observable} An observable sequence that contains result elements computed from source elements that have an overlapping duration. */ observableProto.groupJoin = function (right, leftDurationSelector, rightDurationSelector, resultSelector) { var left = this; return new AnonymousObservable(function (observer) { var nothing = function () {}; var group = new CompositeDisposable(); var r = new RefCountDisposable(group); var leftMap = new Dictionary(); var rightMap = new Dictionary(); var leftID = 0; var rightID = 0; group.add(left.subscribe( function (value) { var s = new Subject(); var id = leftID++; leftMap.add(id, s); var i, len, leftValues, rightValues; var result; try { result = resultSelector(value, addRef(s, r)); } catch (e) { leftValues = leftMap.getValues(); for (i = 0, len = leftValues.length; i < len; i++) { leftValues[i].onError(e); } observer.onError(e); return; } observer.onNext(result); rightValues = rightMap.getValues(); for (i = 0, len = rightValues.length; i < len; i++) { s.onNext(rightValues[i]); } var md = new SingleAssignmentDisposable(); group.add(md); var expire = function () { if (leftMap.remove(id)) { s.onCompleted(); } group.remove(md); }; var duration; try { duration = leftDurationSelector(value); } catch (e) { leftValues = leftMap.getValues(); for (i = 0, len = leftMap.length; i < len; i++) { leftValues[i].onError(e); } observer.onError(e); return; } md.setDisposable(duration.take(1).subscribe( nothing, function (e) { leftValues = leftMap.getValues(); for (i = 0, len = leftValues.length; i < len; i++) { leftValues[i].onError(e); } observer.onError(e); }, expire) ); }, function (e) { var leftValues = leftMap.getValues(); for (var i = 0, len = leftValues.length; i < len; i++) { leftValues[i].onError(e); } observer.onError(e); }, observer.onCompleted.bind(observer))); group.add(right.subscribe( function (value) { var leftValues, i, len; var id = rightID++; rightMap.add(id, value); var md = new SingleAssignmentDisposable(); group.add(md); var expire = function () { rightMap.remove(id); group.remove(md); }; var duration; try { duration = rightDurationSelector(value); } catch (e) { leftValues = leftMap.getValues(); for (i = 0, len = leftMap.length; i < len; i++) { leftValues[i].onError(e); } observer.onError(e); return; } md.setDisposable(duration.take(1).subscribe( nothing, function (e) { leftValues = leftMap.getValues(); for (i = 0, len = leftMap.length; i < len; i++) { leftValues[i].onError(e); } observer.onError(e); }, expire) ); leftValues = leftMap.getValues(); for (i = 0, len = leftValues.length; i < len; i++) { leftValues[i].onNext(value); } }, function (e) { var leftValues = leftMap.getValues(); for (var i = 0, len = leftValues.length; i < len; i++) { leftValues[i].onError(e); } observer.onError(e); })); return r; }); }; /** * Projects each element of an observable sequence into zero or more buffers. * * @param {Mixed} bufferOpeningsOrClosingSelector Observable sequence whose elements denote the creation of new windows, or, a function invoked to define the boundaries of the produced windows (a new window is started when the previous one is closed, resulting in non-overlapping windows). * @param {Function} [bufferClosingSelector] A function invoked to define the closing of each produced window. If a closing selector function is specified for the first parameter, this parameter is ignored. * @returns {Observable} An observable sequence of windows. */ observableProto.buffer = function (bufferOpeningsOrClosingSelector, bufferClosingSelector) { return this.window.apply(this, arguments).selectMany(function (x) { return x.toArray(); }); }; /** * Projects each element of an observable sequence into zero or more windows. * * @param {Mixed} windowOpeningsOrClosingSelector Observable sequence whose elements denote the creation of new windows, or, a function invoked to define the boundaries of the produced windows (a new window is started when the previous one is closed, resulting in non-overlapping windows). * @param {Function} [windowClosingSelector] A function invoked to define the closing of each produced window. If a closing selector function is specified for the first parameter, this parameter is ignored. * @returns {Observable} An observable sequence of windows. */ observableProto.window = function (windowOpeningsOrClosingSelector, windowClosingSelector) { if (arguments.length === 1 && typeof arguments[0] !== 'function') { return observableWindowWithBounaries.call(this, windowOpeningsOrClosingSelector); } return typeof windowOpeningsOrClosingSelector === 'function' ? observableWindowWithClosingSelector.call(this, windowOpeningsOrClosingSelector) : observableWindowWithOpenings.call(this, windowOpeningsOrClosingSelector, windowClosingSelector); }; function observableWindowWithOpenings(windowOpenings, windowClosingSelector) { return windowOpenings.groupJoin(this, windowClosingSelector, function () { return observableEmpty(); }, function (_, window) { return window; }); } function observableWindowWithBounaries(windowBoundaries) { var source = this; return new AnonymousObservable(function (observer) { var window = new Subject(), d = new CompositeDisposable(), r = new RefCountDisposable(d); observer.onNext(addRef(window, r)); d.add(source.subscribe(function (x) { window.onNext(x); }, function (err) { window.onError(err); observer.onError(err); }, function () { window.onCompleted(); observer.onCompleted(); })); d.add(windowBoundaries.subscribe(function (w) { window.onCompleted(); window = new Subject(); observer.onNext(addRef(window, r)); }, function (err) { window.onError(err); observer.onError(err); }, function () { window.onCompleted(); observer.onCompleted(); })); return r; }); } function observableWindowWithClosingSelector(windowClosingSelector) { var source = this; return new AnonymousObservable(function (observer) { var createWindowClose, m = new SerialDisposable(), d = new CompositeDisposable(m), r = new RefCountDisposable(d), window = new Subject(); observer.onNext(addRef(window, r)); d.add(source.subscribe(function (x) { window.onNext(x); }, function (ex) { window.onError(ex); observer.onError(ex); }, function () { window.onCompleted(); observer.onCompleted(); })); createWindowClose = function () { var m1, windowClose; try { windowClose = windowClosingSelector(); } catch (exception) { observer.onError(exception); return; } m1 = new SingleAssignmentDisposable(); m.setDisposable(m1); m1.setDisposable(windowClose.take(1).subscribe(noop, function (ex) { window.onError(ex); observer.onError(ex); }, function () { window.onCompleted(); window = new Subject(); observer.onNext(addRef(window, r)); createWindowClose(); })); }; createWindowClose(); return r; }); } /** * Returns a new observable that triggers on the second and subsequent triggerings of the input observable. * The Nth triggering of the input observable passes the arguments from the N-1th and Nth triggering as a pair. * The argument passed to the N-1th triggering is held in hidden internal state until the Nth triggering occurs. * @returns {Observable} An observable that triggers on successive pairs of observations from the input observable as an array. */ observableProto.pairwise = function () { var source = this; return new AnonymousObservable(function (observer) { var previous, hasPrevious = false; return source.subscribe( function (x) { if (hasPrevious) { observer.onNext([previous, x]); } else { hasPrevious = true; } previous = x; }, observer.onError.bind(observer), observer.onCompleted.bind(observer)); }); }; /** * Returns two observables which partition the observations of the source by the given function. * The first will trigger observations for those values for which the predicate returns true. * The second will trigger observations for those values where the predicate returns false. * The predicate is executed once for each subscribed observer. * Both also propagate all error observations arising from the source and each completes * when the source completes. * @param {Function} predicate * The function to determine which output Observable will trigger a particular observation. * @returns {Array} * An array of observables. The first triggers when the predicate returns true, * and the second triggers when the predicate returns false. */ observableProto.partition = function(predicate, thisArg) { var published = this.publish().refCount(); return [ published.filter(predicate, thisArg), published.filter(function (x, i, o) { return !predicate.call(thisArg, x, i, o); }) ]; }; function enumerableWhile(condition, source) { return new Enumerable(function () { return new Enumerator(function () { return condition() ? { done: false, value: source } : { done: true, value: undefined }; }); }); } /** * Returns an observable sequence that is the result of invoking the selector on the source sequence, without sharing subscriptions. * This operator allows for a fluent style of writing queries that use the same sequence multiple times. * * @param {Function} selector Selector function which can use the source sequence as many times as needed, without sharing subscriptions to the source sequence. * @returns {Observable} An observable sequence that contains the elements of a sequence produced by multicasting the source sequence within a selector function. */ observableProto.letBind = observableProto['let'] = function (func) { return func(this); }; /** * Determines whether an observable collection contains values. There is an alias for this method called 'ifThen' for browsers <IE9 * * @example * 1 - res = Rx.Observable.if(condition, obs1); * 2 - res = Rx.Observable.if(condition, obs1, obs2); * 3 - res = Rx.Observable.if(condition, obs1, scheduler); * @param {Function} condition The condition which determines if the thenSource or elseSource will be run. * @param {Observable} thenSource The observable sequence or Promise that will be run if the condition function returns true. * @param {Observable} [elseSource] The observable sequence or Promise that will be run if the condition function returns false. If this is not provided, it defaults to Rx.Observabe.Empty with the specified scheduler. * @returns {Observable} An observable sequence which is either the thenSource or elseSource. */ Observable['if'] = Observable.ifThen = function (condition, thenSource, elseSourceOrScheduler) { return observableDefer(function () { elseSourceOrScheduler || (elseSourceOrScheduler = observableEmpty()); isPromise(thenSource) && (thenSource = observableFromPromise(thenSource)); isPromise(elseSourceOrScheduler) && (elseSourceOrScheduler = observableFromPromise(elseSourceOrScheduler)); // Assume a scheduler for empty only typeof elseSourceOrScheduler.now === 'function' && (elseSourceOrScheduler = observableEmpty(elseSourceOrScheduler)); return condition() ? thenSource : elseSourceOrScheduler; }); }; /** * Concatenates the observable sequences obtained by running the specified result selector for each element in source. * There is an alias for this method called 'forIn' for browsers <IE9 * @param {Array} sources An array of values to turn into an observable sequence. * @param {Function} resultSelector A function to apply to each item in the sources array to turn it into an observable sequence. * @returns {Observable} An observable sequence from the concatenated observable sequences. */ Observable['for'] = Observable.forIn = function (sources, resultSelector) { return enumerableFor(sources, resultSelector).concat(); }; /** * Repeats source as long as condition holds emulating a while loop. * There is an alias for this method called 'whileDo' for browsers <IE9 * * @param {Function} condition The condition which determines if the source will be repeated. * @param {Observable} source The observable sequence that will be run if the condition function returns true. * @returns {Observable} An observable sequence which is repeated as long as the condition holds. */ var observableWhileDo = Observable['while'] = Observable.whileDo = function (condition, source) { isPromise(source) && (source = observableFromPromise(source)); return enumerableWhile(condition, source).concat(); }; /** * Repeats source as long as condition holds emulating a do while loop. * * @param {Function} condition The condition which determines if the source will be repeated. * @param {Observable} source The observable sequence that will be run if the condition function returns true. * @returns {Observable} An observable sequence which is repeated as long as the condition holds. */ observableProto.doWhile = function (condition) { return observableConcat([this, observableWhileDo(condition, this)]); }; /** * Uses selector to determine which source in sources to use. * There is an alias 'switchCase' for browsers <IE9. * * @example * 1 - res = Rx.Observable.case(selector, { '1': obs1, '2': obs2 }); * 1 - res = Rx.Observable.case(selector, { '1': obs1, '2': obs2 }, obs0); * 1 - res = Rx.Observable.case(selector, { '1': obs1, '2': obs2 }, scheduler); * * @param {Function} selector The function which extracts the value for to test in a case statement. * @param {Array} sources A object which has keys which correspond to the case statement labels. * @param {Observable} [elseSource] The observable sequence or Promise that will be run if the sources are not matched. If this is not provided, it defaults to Rx.Observabe.empty with the specified scheduler. * * @returns {Observable} An observable sequence which is determined by a case statement. */ Observable['case'] = Observable.switchCase = function (selector, sources, defaultSourceOrScheduler) { return observableDefer(function () { defaultSourceOrScheduler || (defaultSourceOrScheduler = observableEmpty()); typeof defaultSourceOrScheduler.now === 'function' && (defaultSourceOrScheduler = observableEmpty(defaultSourceOrScheduler)); var result = sources[selector()]; isPromise(result) && (result = observableFromPromise(result)); return result || defaultSourceOrScheduler; }); }; /** * Expands an observable sequence by recursively invoking selector. * * @param {Function} selector Selector function to invoke for each produced element, resulting in another sequence to which the selector will be invoked recursively again. * @param {Scheduler} [scheduler] Scheduler on which to perform the expansion. If not provided, this defaults to the current thread scheduler. * @returns {Observable} An observable sequence containing all the elements produced by the recursive expansion. */ observableProto.expand = function (selector, scheduler) { scheduler || (scheduler = immediateScheduler); var source = this; return new AnonymousObservable(function (observer) { var q = [], m = new SerialDisposable(), d = new CompositeDisposable(m), activeCount = 0, isAcquired = false; var ensureActive = function () { var isOwner = false; if (q.length > 0) { isOwner = !isAcquired; isAcquired = true; } if (isOwner) { m.setDisposable(scheduler.scheduleRecursive(function (self) { var work; if (q.length > 0) { work = q.shift(); } else { isAcquired = false; return; } var m1 = new SingleAssignmentDisposable(); d.add(m1); m1.setDisposable(work.subscribe(function (x) { observer.onNext(x); var result = null; try { result = selector(x); } catch (e) { observer.onError(e); } q.push(result); activeCount++; ensureActive(); }, observer.onError.bind(observer), function () { d.remove(m1); activeCount--; if (activeCount === 0) { observer.onCompleted(); } })); self(); })); } }; q.push(source); activeCount++; ensureActive(); return d; }); }; /** * Runs all observable sequences in parallel and collect their last elements. * * @example * 1 - res = Rx.Observable.forkJoin([obs1, obs2]); * 1 - res = Rx.Observable.forkJoin(obs1, obs2, ...); * @returns {Observable} An observable sequence with an array collecting the last elements of all the input sequences. */ Observable.forkJoin = function () { var allSources = argsOrArray(arguments, 0); return new AnonymousObservable(function (subscriber) { var count = allSources.length; if (count === 0) { subscriber.onCompleted(); return disposableEmpty; } var group = new CompositeDisposable(), finished = false, hasResults = new Array(count), hasCompleted = new Array(count), results = new Array(count); for (var idx = 0; idx < count; idx++) { (function (i) { var source = allSources[i]; isPromise(source) && (source = observableFromPromise(source)); group.add( source.subscribe( function (value) { if (!finished) { hasResults[i] = true; results[i] = value; } }, function (e) { finished = true; subscriber.onError(e); group.dispose(); }, function () { if (!finished) { if (!hasResults[i]) { subscriber.onCompleted(); return; } hasCompleted[i] = true; for (var ix = 0; ix < count; ix++) { if (!hasCompleted[ix]) { return; } } finished = true; subscriber.onNext(results); subscriber.onCompleted(); } })); })(idx); } return group; }); }; /** * Runs two observable sequences in parallel and combines their last elemenets. * * @param {Observable} second Second observable sequence. * @param {Function} resultSelector Result selector function to invoke with the last elements of both sequences. * @returns {Observable} An observable sequence with the result of calling the selector function with the last elements of both input sequences. */ observableProto.forkJoin = function (second, resultSelector) { var first = this; return new AnonymousObservable(function (observer) { var leftStopped = false, rightStopped = false, hasLeft = false, hasRight = false, lastLeft, lastRight, leftSubscription = new SingleAssignmentDisposable(), rightSubscription = new SingleAssignmentDisposable(); isPromise(second) && (second = observableFromPromise(second)); leftSubscription.setDisposable( first.subscribe(function (left) { hasLeft = true; lastLeft = left; }, function (err) { rightSubscription.dispose(); observer.onError(err); }, function () { leftStopped = true; if (rightStopped) { if (!hasLeft) { observer.onCompleted(); } else if (!hasRight) { observer.onCompleted(); } else { var result; try { result = resultSelector(lastLeft, lastRight); } catch (e) { observer.onError(e); return; } observer.onNext(result); observer.onCompleted(); } } }) ); rightSubscription.setDisposable( second.subscribe(function (right) { hasRight = true; lastRight = right; }, function (err) { leftSubscription.dispose(); observer.onError(err); }, function () { rightStopped = true; if (leftStopped) { if (!hasLeft) { observer.onCompleted(); } else if (!hasRight) { observer.onCompleted(); } else { var result; try { result = resultSelector(lastLeft, lastRight); } catch (e) { observer.onError(e); return; } observer.onNext(result); observer.onCompleted(); } } }) ); return new CompositeDisposable(leftSubscription, rightSubscription); }); }; /** * Comonadic bind operator. * @param {Function} selector A transform function to apply to each element. * @param {Object} scheduler Scheduler used to execute the operation. If not specified, defaults to the ImmediateScheduler. * @returns {Observable} An observable sequence which results from the comonadic bind operation. */ observableProto.manySelect = function (selector, scheduler) { scheduler || (scheduler = immediateScheduler); var source = this; return observableDefer(function () { var chain; return source .select( function (x) { var curr = new ChainObservable(x); if (chain) { chain.onNext(x); } chain = curr; return curr; }) .doAction( noop, function (e) { if (chain) { chain.onError(e); } }, function () { if (chain) { chain.onCompleted(); } }) .observeOn(scheduler) .select(function (x, i, o) { return selector(x, i, o); }); }); }; var ChainObservable = (function (_super) { function subscribe (observer) { var self = this, g = new CompositeDisposable(); g.add(currentThreadScheduler.schedule(function () { observer.onNext(self.head); g.add(self.tail.mergeObservable().subscribe(observer)); })); return g; } inherits(ChainObservable, _super); function ChainObservable(head) { _super.call(this, subscribe); this.head = head; this.tail = new AsyncSubject(); } addProperties(ChainObservable.prototype, Observer, { onCompleted: function () { this.onNext(Observable.empty()); }, onError: function (e) { this.onNext(Observable.throwException(e)); }, onNext: function (v) { this.tail.onNext(v); this.tail.onCompleted(); } }); return ChainObservable; }(Observable)); /** @private */ var Map = (function () { /** * @constructor * @private */ function Map() { this.keys = []; this.values = []; } /** * @private * @memberOf Map# */ Map.prototype['delete'] = function (key) { var i = this.keys.indexOf(key); if (i !== -1) { this.keys.splice(i, 1); this.values.splice(i, 1); } return i !== -1; }; /** * @private * @memberOf Map# */ Map.prototype.get = function (key, fallback) { var i = this.keys.indexOf(key); return i !== -1 ? this.values[i] : fallback; }; /** * @private * @memberOf Map# */ Map.prototype.set = function (key, value) { var i = this.keys.indexOf(key); if (i !== -1) { this.values[i] = value; } this.values[this.keys.push(key) - 1] = value; }; /** * @private * @memberOf Map# */ Map.prototype.size = function () { return this.keys.length; }; /** * @private * @memberOf Map# */ Map.prototype.has = function (key) { return this.keys.indexOf(key) !== -1; }; /** * @private * @memberOf Map# */ Map.prototype.getKeys = function () { return this.keys.slice(0); }; /** * @private * @memberOf Map# */ Map.prototype.getValues = function () { return this.values.slice(0); }; return Map; }()); /** * @constructor * Represents a join pattern over observable sequences. */ function Pattern(patterns) { this.patterns = patterns; } /** * Creates a pattern that matches the current plan matches and when the specified observable sequences has an available value. * * @param other Observable sequence to match in addition to the current pattern. * @return Pattern object that matches when all observable sequences in the pattern have an available value. */ Pattern.prototype.and = function (other) { var patterns = this.patterns.slice(0); patterns.push(other); return new Pattern(patterns); }; /** * Matches when all observable sequences in the pattern (specified using a chain of and operators) have an available value and projects the values. * * @param selector Selector that will be invoked with available values from the source sequences, in the same order of the sequences in the pattern. * @return Plan that produces the projected values, to be fed (with other plans) to the when operator. */ Pattern.prototype.then = function (selector) { return new Plan(this, selector); }; function Plan(expression, selector) { this.expression = expression; this.selector = selector; } Plan.prototype.activate = function (externalSubscriptions, observer, deactivate) { var self = this; var joinObservers = []; for (var i = 0, len = this.expression.patterns.length; i < len; i++) { joinObservers.push(planCreateObserver(externalSubscriptions, this.expression.patterns[i], observer.onError.bind(observer))); } var activePlan = new ActivePlan(joinObservers, function () { var result; try { result = self.selector.apply(self, arguments); } catch (exception) { observer.onError(exception); return; } observer.onNext(result); }, function () { for (var j = 0, jlen = joinObservers.length; j < jlen; j++) { joinObservers[j].removeActivePlan(activePlan); } deactivate(activePlan); }); for (i = 0, len = joinObservers.length; i < len; i++) { joinObservers[i].addActivePlan(activePlan); } return activePlan; }; function planCreateObserver(externalSubscriptions, observable, onError) { var entry = externalSubscriptions.get(observable); if (!entry) { var observer = new JoinObserver(observable, onError); externalSubscriptions.set(observable, observer); return observer; } return entry; } // Active Plan function ActivePlan(joinObserverArray, onNext, onCompleted) { var i, joinObserver; this.joinObserverArray = joinObserverArray; this.onNext = onNext; this.onCompleted = onCompleted; this.joinObservers = new Map(); for (i = 0; i < this.joinObserverArray.length; i++) { joinObserver = this.joinObserverArray[i]; this.joinObservers.set(joinObserver, joinObserver); } } ActivePlan.prototype.dequeue = function () { var values = this.joinObservers.getValues(); for (var i = 0, len = values.length; i < len; i++) { values[i].queue.shift(); } }; ActivePlan.prototype.match = function () { var firstValues, i, len, isCompleted, values, hasValues = true; for (i = 0, len = this.joinObserverArray.length; i < len; i++) { if (this.joinObserverArray[i].queue.length === 0) { hasValues = false; break; } } if (hasValues) { firstValues = []; isCompleted = false; for (i = 0, len = this.joinObserverArray.length; i < len; i++) { firstValues.push(this.joinObserverArray[i].queue[0]); if (this.joinObserverArray[i].queue[0].kind === 'C') { isCompleted = true; } } if (isCompleted) { this.onCompleted(); } else { this.dequeue(); values = []; for (i = 0; i < firstValues.length; i++) { values.push(firstValues[i].value); } this.onNext.apply(this, values); } } }; /** @private */ var JoinObserver = (function (_super) { inherits(JoinObserver, _super); /** * @constructor * @private */ function JoinObserver(source, onError) { _super.call(this); this.source = source; this.onError = onError; this.queue = []; this.activePlans = []; this.subscription = new SingleAssignmentDisposable(); this.isDisposed = false; } var JoinObserverPrototype = JoinObserver.prototype; /** * @memberOf JoinObserver# * @private */ JoinObserverPrototype.next = function (notification) { if (!this.isDisposed) { if (notification.kind === 'E') { this.onError(notification.exception); return; } this.queue.push(notification); var activePlans = this.activePlans.slice(0); for (var i = 0, len = activePlans.length; i < len; i++) { activePlans[i].match(); } } }; /** * @memberOf JoinObserver# * @private */ JoinObserverPrototype.error = noop; /** * @memberOf JoinObserver# * @private */ JoinObserverPrototype.completed = noop; /** * @memberOf JoinObserver# * @private */ JoinObserverPrototype.addActivePlan = function (activePlan) { this.activePlans.push(activePlan); }; /** * @memberOf JoinObserver# * @private */ JoinObserverPrototype.subscribe = function () { this.subscription.setDisposable(this.source.materialize().subscribe(this)); }; /** * @memberOf JoinObserver# * @private */ JoinObserverPrototype.removeActivePlan = function (activePlan) { var idx = this.activePlans.indexOf(activePlan); this.activePlans.splice(idx, 1); if (this.activePlans.length === 0) { this.dispose(); } }; /** * @memberOf JoinObserver# * @private */ JoinObserverPrototype.dispose = function () { _super.prototype.dispose.call(this); if (!this.isDisposed) { this.isDisposed = true; this.subscription.dispose(); } }; return JoinObserver; } (AbstractObserver)); /** * Creates a pattern that matches when both observable sequences have an available value. * * @param right Observable sequence to match with the current sequence. * @return {Pattern} Pattern object that matches when both observable sequences have an available value. */ observableProto.and = function (right) { return new Pattern([this, right]); }; /** * Matches when the observable sequence has an available value and projects the value. * * @param selector Selector that will be invoked for values in the source sequence. * @returns {Plan} Plan that produces the projected values, to be fed (with other plans) to the when operator. */ observableProto.then = function (selector) { return new Pattern([this]).then(selector); }; /** * Joins together the results from several patterns. * * @param plans A series of plans (specified as an Array of as a series of arguments) created by use of the Then operator on patterns. * @returns {Observable} Observable sequence with the results form matching several patterns. */ Observable.when = function () { var plans = argsOrArray(arguments, 0); return new AnonymousObservable(function (observer) { var activePlans = [], externalSubscriptions = new Map(), group, i, len, joinObserver, joinValues, outObserver; outObserver = observerCreate(observer.onNext.bind(observer), function (exception) { var values = externalSubscriptions.getValues(); for (var j = 0, jlen = values.length; j < jlen; j++) { values[j].onError(exception); } observer.onError(exception); }, observer.onCompleted.bind(observer)); try { for (i = 0, len = plans.length; i < len; i++) { activePlans.push(plans[i].activate(externalSubscriptions, outObserver, function (activePlan) { var idx = activePlans.indexOf(activePlan); activePlans.splice(idx, 1); if (activePlans.length === 0) { outObserver.onCompleted(); } })); } } catch (e) { observableThrow(e).subscribe(observer); } group = new CompositeDisposable(); joinValues = externalSubscriptions.getValues(); for (i = 0, len = joinValues.length; i < len; i++) { joinObserver = joinValues[i]; joinObserver.subscribe(); group.add(joinObserver); } return group; }); }; function observableTimerDate(dueTime, scheduler) { return new AnonymousObservable(function (observer) { return scheduler.scheduleWithAbsolute(dueTime, function () { observer.onNext(0); observer.onCompleted(); }); }); } function observableTimerDateAndPeriod(dueTime, period, scheduler) { var p = normalizeTime(period); return new AnonymousObservable(function (observer) { var count = 0, d = dueTime; return scheduler.scheduleRecursiveWithAbsolute(d, function (self) { var now; if (p > 0) { now = scheduler.now(); d = d + p; if (d <= now) { d = now + p; } } observer.onNext(count++); self(d); }); }); } function observableTimerTimeSpan(dueTime, scheduler) { var d = normalizeTime(dueTime); return new AnonymousObservable(function (observer) { return scheduler.scheduleWithRelative(d, function () { observer.onNext(0); observer.onCompleted(); }); }); } function observableTimerTimeSpanAndPeriod(dueTime, period, scheduler) { if (dueTime === period) { return new AnonymousObservable(function (observer) { return scheduler.schedulePeriodicWithState(0, period, function (count) { observer.onNext(count); return count + 1; }); }); } return observableDefer(function () { return observableTimerDateAndPeriod(scheduler.now() + dueTime, period, scheduler); }); } /** * Returns an observable sequence that produces a value after each period. * * @example * 1 - res = Rx.Observable.interval(1000); * 2 - res = Rx.Observable.interval(1000, Rx.Scheduler.timeout); * * @param {Number} period Period for producing the values in the resulting sequence (specified as an integer denoting milliseconds). * @param {Scheduler} [scheduler] Scheduler to run the timer on. If not specified, Rx.Scheduler.timeout is used. * @returns {Observable} An observable sequence that produces a value after each period. */ var observableinterval = Observable.interval = function (period, scheduler) { scheduler || (scheduler = timeoutScheduler); return observableTimerTimeSpanAndPeriod(period, period, scheduler); }; /** * Returns an observable sequence that produces a value after dueTime has elapsed and then after each period. * * @example * 1 - res = Rx.Observable.timer(new Date()); * 2 - res = Rx.Observable.timer(new Date(), 1000); * 3 - res = Rx.Observable.timer(new Date(), Rx.Scheduler.timeout); * 4 - res = Rx.Observable.timer(new Date(), 1000, Rx.Scheduler.timeout); * * 5 - res = Rx.Observable.timer(5000); * 6 - res = Rx.Observable.timer(5000, 1000); * 7 - res = Rx.Observable.timer(5000, Rx.Scheduler.timeout); * 8 - res = Rx.Observable.timer(5000, 1000, Rx.Scheduler.timeout); * * @param {Number} dueTime Absolute (specified as a Date object) or relative time (specified as an integer denoting milliseconds) at which to produce the first value. * @param {Mixed} [periodOrScheduler] Period to produce subsequent values (specified as an integer denoting milliseconds), or the scheduler to run the timer on. If not specified, the resulting timer is not recurring. * @param {Scheduler} [scheduler] Scheduler to run the timer on. If not specified, the timeout scheduler is used. * @returns {Observable} An observable sequence that produces a value after due time has elapsed and then each period. */ var observableTimer = Observable.timer = function (dueTime, periodOrScheduler, scheduler) { var period; scheduler || (scheduler = timeoutScheduler); if (periodOrScheduler !== undefined && typeof periodOrScheduler === 'number') { period = periodOrScheduler; } else if (periodOrScheduler !== undefined && typeof periodOrScheduler === 'object') { scheduler = periodOrScheduler; } if (dueTime instanceof Date && period === undefined) { return observableTimerDate(dueTime.getTime(), scheduler); } if (dueTime instanceof Date && period !== undefined) { period = periodOrScheduler; return observableTimerDateAndPeriod(dueTime.getTime(), period, scheduler); } if (period === undefined) { return observableTimerTimeSpan(dueTime, scheduler); } return observableTimerTimeSpanAndPeriod(dueTime, period, scheduler); }; function observableDelayTimeSpan(dueTime, scheduler) { var source = this; return new AnonymousObservable(function (observer) { var active = false, cancelable = new SerialDisposable(), exception = null, q = [], running = false, subscription; subscription = source.materialize().timestamp(scheduler).subscribe(function (notification) { var d, shouldRun; if (notification.value.kind === 'E') { q = []; q.push(notification); exception = notification.value.exception; shouldRun = !running; } else { q.push({ value: notification.value, timestamp: notification.timestamp + dueTime }); shouldRun = !active; active = true; } if (shouldRun) { if (exception !== null) { observer.onError(exception); } else { d = new SingleAssignmentDisposable(); cancelable.setDisposable(d); d.setDisposable(scheduler.scheduleRecursiveWithRelative(dueTime, function (self) { var e, recurseDueTime, result, shouldRecurse; if (exception !== null) { return; } running = true; do { result = null; if (q.length > 0 && q[0].timestamp - scheduler.now() <= 0) { result = q.shift().value; } if (result !== null) { result.accept(observer); } } while (result !== null); shouldRecurse = false; recurseDueTime = 0; if (q.length > 0) { shouldRecurse = true; recurseDueTime = Math.max(0, q[0].timestamp - scheduler.now()); } else { active = false; } e = exception; running = false; if (e !== null) { observer.onError(e); } else if (shouldRecurse) { self(recurseDueTime); } })); } } }); return new CompositeDisposable(subscription, cancelable); }); } function observableDelayDate(dueTime, scheduler) { var self = this; return observableDefer(function () { var timeSpan = dueTime - scheduler.now(); return observableDelayTimeSpan.call(self, timeSpan, scheduler); }); } /** * Time shifts the observable sequence by dueTime. The relative time intervals between the values are preserved. * * @example * 1 - res = Rx.Observable.delay(new Date()); * 2 - res = Rx.Observable.delay(new Date(), Rx.Scheduler.timeout); * * 3 - res = Rx.Observable.delay(5000); * 4 - res = Rx.Observable.delay(5000, 1000, Rx.Scheduler.timeout); * @memberOf Observable# * @param {Number} dueTime Absolute (specified as a Date object) or relative time (specified as an integer denoting milliseconds) by which to shift the observable sequence. * @param {Scheduler} [scheduler] Scheduler to run the delay timers on. If not specified, the timeout scheduler is used. * @returns {Observable} Time-shifted sequence. */ observableProto.delay = function (dueTime, scheduler) { scheduler || (scheduler = timeoutScheduler); return dueTime instanceof Date ? observableDelayDate.call(this, dueTime.getTime(), scheduler) : observableDelayTimeSpan.call(this, dueTime, scheduler); }; /** * Ignores values from an observable sequence which are followed by another value before dueTime. * * @example * 1 - res = source.throttle(5000); // 5 seconds * 2 - res = source.throttle(5000, scheduler); * * @param {Number} dueTime Duration of the throttle period for each value (specified as an integer denoting milliseconds). * @param {Scheduler} [scheduler] Scheduler to run the throttle timers on. If not specified, the timeout scheduler is used. * @returns {Observable} The throttled sequence. */ observableProto.throttle = function (dueTime, scheduler) { scheduler || (scheduler = timeoutScheduler); var source = this; return this.throttleWithSelector(function () { return observableTimer(dueTime, scheduler); }) }; /** * Projects each element of an observable sequence into zero or more windows which are produced based on timing information. * * @example * 1 - res = xs.windowWithTime(1000, scheduler); // non-overlapping segments of 1 second * 2 - res = xs.windowWithTime(1000, 500 , scheduler); // segments of 1 second with time shift 0.5 seconds * * @param {Number} timeSpan Length of each window (specified as an integer denoting milliseconds). * @param {Mixed} [timeShiftOrScheduler] Interval between creation of consecutive windows (specified as an integer denoting milliseconds), or an optional scheduler parameter. If not specified, the time shift corresponds to the timeSpan parameter, resulting in non-overlapping adjacent windows. * @param {Scheduler} [scheduler] Scheduler to run windowing timers on. If not specified, the timeout scheduler is used. * @returns {Observable} An observable sequence of windows. */ observableProto.windowWithTime = function (timeSpan, timeShiftOrScheduler, scheduler) { var source = this, timeShift; if (timeShiftOrScheduler === undefined) { timeShift = timeSpan; } if (scheduler === undefined) { scheduler = timeoutScheduler; } if (typeof timeShiftOrScheduler === 'number') { timeShift = timeShiftOrScheduler; } else if (typeof timeShiftOrScheduler === 'object') { timeShift = timeSpan; scheduler = timeShiftOrScheduler; } return new AnonymousObservable(function (observer) { var groupDisposable, nextShift = timeShift, nextSpan = timeSpan, q = [], refCountDisposable, timerD = new SerialDisposable(), totalTime = 0; groupDisposable = new CompositeDisposable(timerD), refCountDisposable = new RefCountDisposable(groupDisposable); function createTimer () { var m = new SingleAssignmentDisposable(), isSpan = false, isShift = false; timerD.setDisposable(m); if (nextSpan === nextShift) { isSpan = true; isShift = true; } else if (nextSpan < nextShift) { isSpan = true; } else { isShift = true; } var newTotalTime = isSpan ? nextSpan : nextShift, ts = newTotalTime - totalTime; totalTime = newTotalTime; if (isSpan) { nextSpan += timeShift; } if (isShift) { nextShift += timeShift; } m.setDisposable(scheduler.scheduleWithRelative(ts, function () { var s; if (isShift) { s = new Subject(); q.push(s); observer.onNext(addRef(s, refCountDisposable)); } if (isSpan) { s = q.shift(); s.onCompleted(); } createTimer(); })); }; q.push(new Subject()); observer.onNext(addRef(q[0], refCountDisposable)); createTimer(); groupDisposable.add(source.subscribe(function (x) { var i, s; for (i = 0; i < q.length; i++) { s = q[i]; s.onNext(x); } }, function (e) { var i, s; for (i = 0; i < q.length; i++) { s = q[i]; s.onError(e); } observer.onError(e); }, function () { var i, s; for (i = 0; i < q.length; i++) { s = q[i]; s.onCompleted(); } observer.onCompleted(); })); return refCountDisposable; }); }; /** * Projects each element of an observable sequence into a window that is completed when either it's full or a given amount of time has elapsed. * @example * 1 - res = source.windowWithTimeOrCount(5000, 50); // 5s or 50 items * 2 - res = source.windowWithTimeOrCount(5000, 50, scheduler); //5s or 50 items * * @memberOf Observable# * @param {Number} timeSpan Maximum time length of a window. * @param {Number} count Maximum element count of a window. * @param {Scheduler} [scheduler] Scheduler to run windowing timers on. If not specified, the timeout scheduler is used. * @returns {Observable} An observable sequence of windows. */ observableProto.windowWithTimeOrCount = function (timeSpan, count, scheduler) { var source = this; scheduler || (scheduler = timeoutScheduler); return new AnonymousObservable(function (observer) { var createTimer, groupDisposable, n = 0, refCountDisposable, s, timerD = new SerialDisposable(), windowId = 0; groupDisposable = new CompositeDisposable(timerD); refCountDisposable = new RefCountDisposable(groupDisposable); createTimer = function (id) { var m = new SingleAssignmentDisposable(); timerD.setDisposable(m); m.setDisposable(scheduler.scheduleWithRelative(timeSpan, function () { var newId; if (id !== windowId) { return; } n = 0; newId = ++windowId; s.onCompleted(); s = new Subject(); observer.onNext(addRef(s, refCountDisposable)); createTimer(newId); })); }; s = new Subject(); observer.onNext(addRef(s, refCountDisposable)); createTimer(0); groupDisposable.add(source.subscribe(function (x) { var newId = 0, newWindow = false; s.onNext(x); n++; if (n === count) { newWindow = true; n = 0; newId = ++windowId; s.onCompleted(); s = new Subject(); observer.onNext(addRef(s, refCountDisposable)); } if (newWindow) { createTimer(newId); } }, function (e) { s.onError(e); observer.onError(e); }, function () { s.onCompleted(); observer.onCompleted(); })); return refCountDisposable; }); }; /** * Projects each element of an observable sequence into zero or more buffers which are produced based on timing information. * * @example * 1 - res = xs.bufferWithTime(1000, scheduler); // non-overlapping segments of 1 second * 2 - res = xs.bufferWithTime(1000, 500, scheduler; // segments of 1 second with time shift 0.5 seconds * * @param {Number} timeSpan Length of each buffer (specified as an integer denoting milliseconds). * @param {Mixed} [timeShiftOrScheduler] Interval between creation of consecutive buffers (specified as an integer denoting milliseconds), or an optional scheduler parameter. If not specified, the time shift corresponds to the timeSpan parameter, resulting in non-overlapping adjacent buffers. * @param {Scheduler} [scheduler] Scheduler to run buffer timers on. If not specified, the timeout scheduler is used. * @returns {Observable} An observable sequence of buffers. */ observableProto.bufferWithTime = function (timeSpan, timeShiftOrScheduler, scheduler) { return this.windowWithTime.apply(this, arguments).selectMany(function (x) { return x.toArray(); }); }; /** * Projects each element of an observable sequence into a buffer that is completed when either it's full or a given amount of time has elapsed. * * @example * 1 - res = source.bufferWithTimeOrCount(5000, 50); // 5s or 50 items in an array * 2 - res = source.bufferWithTimeOrCount(5000, 50, scheduler); // 5s or 50 items in an array * * @param {Number} timeSpan Maximum time length of a buffer. * @param {Number} count Maximum element count of a buffer. * @param {Scheduler} [scheduler] Scheduler to run bufferin timers on. If not specified, the timeout scheduler is used. * @returns {Observable} An observable sequence of buffers. */ observableProto.bufferWithTimeOrCount = function (timeSpan, count, scheduler) { return this.windowWithTimeOrCount(timeSpan, count, scheduler).selectMany(function (x) { return x.toArray(); }); }; /** * Records the time interval between consecutive values in an observable sequence. * * @example * 1 - res = source.timeInterval(); * 2 - res = source.timeInterval(Rx.Scheduler.timeout); * * @param [scheduler] Scheduler used to compute time intervals. If not specified, the timeout scheduler is used. * @returns {Observable} An observable sequence with time interval information on values. */ observableProto.timeInterval = function (scheduler) { var source = this; scheduler || (scheduler = timeoutScheduler); return observableDefer(function () { var last = scheduler.now(); return source.select(function (x) { var now = scheduler.now(), span = now - last; last = now; return { value: x, interval: span }; }); }); }; /** * Records the timestamp for each value in an observable sequence. * * @example * 1 - res = source.timestamp(); // produces { value: x, timestamp: ts } * 2 - res = source.timestamp(Rx.Scheduler.timeout); * * @param {Scheduler} [scheduler] Scheduler used to compute timestamps. If not specified, the timeout scheduler is used. * @returns {Observable} An observable sequence with timestamp information on values. */ observableProto.timestamp = function (scheduler) { scheduler || (scheduler = timeoutScheduler); return this.select(function (x) { return { value: x, timestamp: scheduler.now() }; }); }; function sampleObservable(source, sampler) { return new AnonymousObservable(function (observer) { var atEnd, value, hasValue; function sampleSubscribe() { if (hasValue) { hasValue = false; observer.onNext(value); } if (atEnd) { observer.onCompleted(); } } return new CompositeDisposable( source.subscribe(function (newValue) { hasValue = true; value = newValue; }, observer.onError.bind(observer), function () { atEnd = true; }), sampler.subscribe(sampleSubscribe, observer.onError.bind(observer), sampleSubscribe) ); }); } /** * Samples the observable sequence at each interval. * * @example * 1 - res = source.sample(sampleObservable); // Sampler tick sequence * 2 - res = source.sample(5000); // 5 seconds * 2 - res = source.sample(5000, Rx.Scheduler.timeout); // 5 seconds * * @param {Mixed} intervalOrSampler Interval at which to sample (specified as an integer denoting milliseconds) or Sampler Observable. * @param {Scheduler} [scheduler] Scheduler to run the sampling timer on. If not specified, the timeout scheduler is used. * @returns {Observable} Sampled observable sequence. */ observableProto.sample = function (intervalOrSampler, scheduler) { scheduler || (scheduler = timeoutScheduler); if (typeof intervalOrSampler === 'number') { return sampleObservable(this, observableinterval(intervalOrSampler, scheduler)); } return sampleObservable(this, intervalOrSampler); }; /** * Returns the source observable sequence or the other observable sequence if dueTime elapses. * * @example * 1 - res = source.timeout(new Date()); // As a date * 2 - res = source.timeout(5000); // 5 seconds * 3 - res = source.timeout(new Date(), Rx.Observable.returnValue(42)); // As a date and timeout observable * 4 - res = source.timeout(5000, Rx.Observable.returnValue(42)); // 5 seconds and timeout observable * 5 - res = source.timeout(new Date(), Rx.Observable.returnValue(42), Rx.Scheduler.timeout); // As a date and timeout observable * 6 - res = source.timeout(5000, Rx.Observable.returnValue(42), Rx.Scheduler.timeout); // 5 seconds and timeout observable * * @param {Number} dueTime Absolute (specified as a Date object) or relative time (specified as an integer denoting milliseconds) when a timeout occurs. * @param {Observable} [other] Sequence to return in case of a timeout. If not specified, a timeout error throwing sequence will be used. * @param {Scheduler} [scheduler] Scheduler to run the timeout timers on. If not specified, the timeout scheduler is used. * @returns {Observable} The source sequence switching to the other sequence in case of a timeout. */ observableProto.timeout = function (dueTime, other, scheduler) { other || (other = observableThrow(new Error('Timeout'))); scheduler || (scheduler = timeoutScheduler); var source = this, schedulerMethod = dueTime instanceof Date ? 'scheduleWithAbsolute' : 'scheduleWithRelative'; return new AnonymousObservable(function (observer) { var id = 0, original = new SingleAssignmentDisposable(), subscription = new SerialDisposable(), switched = false, timer = new SerialDisposable(); subscription.setDisposable(original); var createTimer = function () { var myId = id; timer.setDisposable(scheduler[schedulerMethod](dueTime, function () { if (id === myId) { isPromise(other) && (other = observableFromPromise(other)); subscription.setDisposable(other.subscribe(observer)); } })); }; createTimer(); original.setDisposable(source.subscribe(function (x) { if (!switched) { id++; observer.onNext(x); createTimer(); } }, function (e) { if (!switched) { id++; observer.onError(e); } }, function () { if (!switched) { id++; observer.onCompleted(); } })); return new CompositeDisposable(subscription, timer); }); }; /** * Generates an observable sequence by iterating a state from an initial state until the condition fails. * * @example * res = source.generateWithAbsoluteTime(0, * function (x) { return return true; }, * function (x) { return x + 1; }, * function (x) { return x; }, * function (x) { return new Date(); } * }); * * @param {Mixed} initialState Initial state. * @param {Function} condition Condition to terminate generation (upon returning false). * @param {Function} iterate Iteration step function. * @param {Function} resultSelector Selector function for results produced in the sequence. * @param {Function} timeSelector Time selector function to control the speed of values being produced each iteration, returning Date values. * @param {Scheduler} [scheduler] Scheduler on which to run the generator loop. If not specified, the timeout scheduler is used. * @returns {Observable} The generated sequence. */ Observable.generateWithAbsoluteTime = function (initialState, condition, iterate, resultSelector, timeSelector, scheduler) { scheduler || (scheduler = timeoutScheduler); return new AnonymousObservable(function (observer) { var first = true, hasResult = false, result, state = initialState, time; return scheduler.scheduleRecursiveWithAbsolute(scheduler.now(), function (self) { if (hasResult) { observer.onNext(result); } try { if (first) { first = false; } else { state = iterate(state); } hasResult = condition(state); if (hasResult) { result = resultSelector(state); time = timeSelector(state); } } catch (e) { observer.onError(e); return; } if (hasResult) { self(time); } else { observer.onCompleted(); } }); }); }; /** * Generates an observable sequence by iterating a state from an initial state until the condition fails. * * @example * res = source.generateWithRelativeTime(0, * function (x) { return return true; }, * function (x) { return x + 1; }, * function (x) { return x; }, * function (x) { return 500; } * ); * * @param {Mixed} initialState Initial state. * @param {Function} condition Condition to terminate generation (upon returning false). * @param {Function} iterate Iteration step function. * @param {Function} resultSelector Selector function for results produced in the sequence. * @param {Function} timeSelector Time selector function to control the speed of values being produced each iteration, returning integer values denoting milliseconds. * @param {Scheduler} [scheduler] Scheduler on which to run the generator loop. If not specified, the timeout scheduler is used. * @returns {Observable} The generated sequence. */ Observable.generateWithRelativeTime = function (initialState, condition, iterate, resultSelector, timeSelector, scheduler) { scheduler || (scheduler = timeoutScheduler); return new AnonymousObservable(function (observer) { var first = true, hasResult = false, result, state = initialState, time; return scheduler.scheduleRecursiveWithRelative(0, function (self) { if (hasResult) { observer.onNext(result); } try { if (first) { first = false; } else { state = iterate(state); } hasResult = condition(state); if (hasResult) { result = resultSelector(state); time = timeSelector(state); } } catch (e) { observer.onError(e); return; } if (hasResult) { self(time); } else { observer.onCompleted(); } }); }); }; /** * Time shifts the observable sequence by delaying the subscription. * * @example * 1 - res = source.delaySubscription(5000); // 5s * 2 - res = source.delaySubscription(5000, Rx.Scheduler.timeout); // 5 seconds * * @param {Number} dueTime Absolute or relative time to perform the subscription at. * @param {Scheduler} [scheduler] Scheduler to run the subscription delay timer on. If not specified, the timeout scheduler is used. * @returns {Observable} Time-shifted sequence. */ observableProto.delaySubscription = function (dueTime, scheduler) { scheduler || (scheduler = timeoutScheduler); return this.delayWithSelector(observableTimer(dueTime, scheduler), function () { return observableEmpty(); }); }; /** * Time shifts the observable sequence based on a subscription delay and a delay selector function for each element. * * @example * 1 - res = source.delayWithSelector(function (x) { return Rx.Scheduler.timer(5000); }); // with selector only * 1 - res = source.delayWithSelector(Rx.Observable.timer(2000), function (x) { return Rx.Observable.timer(x); }); // with delay and selector * * @param {Observable} [subscriptionDelay] Sequence indicating the delay for the subscription to the source. * @param {Function} delayDurationSelector Selector function to retrieve a sequence indicating the delay for each given element. * @returns {Observable} Time-shifted sequence. */ observableProto.delayWithSelector = function (subscriptionDelay, delayDurationSelector) { var source = this, subDelay, selector; if (typeof subscriptionDelay === 'function') { selector = subscriptionDelay; } else { subDelay = subscriptionDelay; selector = delayDurationSelector; } return new AnonymousObservable(function (observer) { var delays = new CompositeDisposable(), atEnd = false, done = function () { if (atEnd && delays.length === 0) { observer.onCompleted(); } }, subscription = new SerialDisposable(), start = function () { subscription.setDisposable(source.subscribe(function (x) { var delay; try { delay = selector(x); } catch (error) { observer.onError(error); return; } var d = new SingleAssignmentDisposable(); delays.add(d); d.setDisposable(delay.subscribe(function () { observer.onNext(x); delays.remove(d); done(); }, observer.onError.bind(observer), function () { observer.onNext(x); delays.remove(d); done(); })); }, observer.onError.bind(observer), function () { atEnd = true; subscription.dispose(); done(); })); }; if (!subDelay) { start(); } else { subscription.setDisposable(subDelay.subscribe(function () { start(); }, observer.onError.bind(observer), function () { start(); })); } return new CompositeDisposable(subscription, delays); }); }; /** * Returns the source observable sequence, switching to the other observable sequence if a timeout is signaled. * * @example * 1 - res = source.timeoutWithSelector(Rx.Observable.timer(500)); * 2 - res = source.timeoutWithSelector(Rx.Observable.timer(500), function (x) { return Rx.Observable.timer(200); }); * 3 - res = source.timeoutWithSelector(Rx.Observable.timer(500), function (x) { return Rx.Observable.timer(200); }, Rx.Observable.returnValue(42)); * * @param {Observable} [firstTimeout] Observable sequence that represents the timeout for the first element. If not provided, this defaults to Observable.never(). * @param {Function} [timeoutDurationSelector] Selector to retrieve an observable sequence that represents the timeout between the current element and the next element. * @param {Observable} [other] Sequence to return in case of a timeout. If not provided, this is set to Observable.throwException(). * @returns {Observable} The source sequence switching to the other sequence in case of a timeout. */ observableProto.timeoutWithSelector = function (firstTimeout, timeoutdurationSelector, other) { if (arguments.length === 1) { timeoutdurationSelector = firstTimeout; var firstTimeout = observableNever(); } other || (other = observableThrow(new Error('Timeout'))); var source = this; return new AnonymousObservable(function (observer) { var subscription = new SerialDisposable(), timer = new SerialDisposable(), original = new SingleAssignmentDisposable(); subscription.setDisposable(original); var id = 0, switched = false, setTimer = function (timeout) { var myId = id, timerWins = function () { return id === myId; }; var d = new SingleAssignmentDisposable(); timer.setDisposable(d); d.setDisposable(timeout.subscribe(function () { if (timerWins()) { subscription.setDisposable(other.subscribe(observer)); } d.dispose(); }, function (e) { if (timerWins()) { observer.onError(e); } }, function () { if (timerWins()) { subscription.setDisposable(other.subscribe(observer)); } })); }; setTimer(firstTimeout); var observerWins = function () { var res = !switched; if (res) { id++; } return res; }; original.setDisposable(source.subscribe(function (x) { if (observerWins()) { observer.onNext(x); var timeout; try { timeout = timeoutdurationSelector(x); } catch (e) { observer.onError(e); return; } setTimer(timeout); } }, function (e) { if (observerWins()) { observer.onError(e); } }, function () { if (observerWins()) { observer.onCompleted(); } })); return new CompositeDisposable(subscription, timer); }); }; /** * Ignores values from an observable sequence which are followed by another value within a computed throttle duration. * * @example * 1 - res = source.delayWithSelector(function (x) { return Rx.Scheduler.timer(x + x); }); * * @param {Function} throttleDurationSelector Selector function to retrieve a sequence indicating the throttle duration for each given element. * @returns {Observable} The throttled sequence. */ observableProto.throttleWithSelector = function (throttleDurationSelector) { var source = this; return new AnonymousObservable(function (observer) { var value, hasValue = false, cancelable = new SerialDisposable(), id = 0, subscription = source.subscribe(function (x) { var throttle; try { throttle = throttleDurationSelector(x); } catch (e) { observer.onError(e); return; } hasValue = true; value = x; id++; var currentid = id, d = new SingleAssignmentDisposable(); cancelable.setDisposable(d); d.setDisposable(throttle.subscribe(function () { if (hasValue && id === currentid) { observer.onNext(value); } hasValue = false; d.dispose(); }, observer.onError.bind(observer), function () { if (hasValue && id === currentid) { observer.onNext(value); } hasValue = false; d.dispose(); })); }, function (e) { cancelable.dispose(); observer.onError(e); hasValue = false; id++; }, function () { cancelable.dispose(); if (hasValue) { observer.onNext(value); } observer.onCompleted(); hasValue = false; id++; }); return new CompositeDisposable(subscription, cancelable); }); }; /** * Skips elements for the specified duration from the end of the observable source sequence, using the specified scheduler to run timers. * * 1 - res = source.skipLastWithTime(5000); * 2 - res = source.skipLastWithTime(5000, scheduler); * * @description * This operator accumulates a queue with a length enough to store elements received during the initial duration window. * As more elements are received, elements older than the specified duration are taken from the queue and produced on the * result sequence. This causes elements to be delayed with duration. * @param {Number} duration Duration for skipping elements from the end of the sequence. * @param {Scheduler} [scheduler] Scheduler to run the timer on. If not specified, defaults to Rx.Scheduler.timeout * @returns {Observable} An observable sequence with the elements skipped during the specified duration from the end of the source sequence. */ observableProto.skipLastWithTime = function (duration, scheduler) { scheduler || (scheduler = timeoutScheduler); var source = this; return new AnonymousObservable(function (observer) { var q = []; return source.subscribe(function (x) { var now = scheduler.now(); q.push({ interval: now, value: x }); while (q.length > 0 && now - q[0].interval >= duration) { observer.onNext(q.shift().value); } }, observer.onError.bind(observer), function () { var now = scheduler.now(); while (q.length > 0 && now - q[0].interval >= duration) { observer.onNext(q.shift().value); } observer.onCompleted(); }); }); }; /** * Returns elements within the specified duration from the end of the observable source sequence, using the specified schedulers to run timers and to drain the collected elements. * * @example * 1 - res = source.takeLastWithTime(5000, [optional timer scheduler], [optional loop scheduler]); * @description * This operator accumulates a queue with a length enough to store elements received during the initial duration window. * As more elements are received, elements older than the specified duration are taken from the queue and produced on the * result sequence. This causes elements to be delayed with duration. * @param {Number} duration Duration for taking elements from the end of the sequence. * @param {Scheduler} [timerScheduler] Scheduler to run the timer on. If not specified, defaults to Rx.Scheduler.timeout. * @param {Scheduler} [loopScheduler] Scheduler to drain the collected elements. If not specified, defaults to Rx.Scheduler.immediate. * @returns {Observable} An observable sequence with the elements taken during the specified duration from the end of the source sequence. */ observableProto.takeLastWithTime = function (duration, timerScheduler, loopScheduler) { return this.takeLastBufferWithTime(duration, timerScheduler).selectMany(function (xs) { return observableFromArray(xs, loopScheduler); }); }; /** * Returns an array with the elements within the specified duration from the end of the observable source sequence, using the specified scheduler to run timers. * * @example * 1 - res = source.takeLastBufferWithTime(5000, [optional scheduler]); * @description * This operator accumulates a queue with a length enough to store elements received during the initial duration window. * As more elements are received, elements older than the specified duration are taken from the queue and produced on the * result sequence. This causes elements to be delayed with duration. * @param {Number} duration Duration for taking elements from the end of the sequence. * @param {Scheduler} scheduler Scheduler to run the timer on. If not specified, defaults to Rx.Scheduler.timeout. * @returns {Observable} An observable sequence containing a single array with the elements taken during the specified duration from the end of the source sequence. */ observableProto.takeLastBufferWithTime = function (duration, scheduler) { var source = this; scheduler || (scheduler = timeoutScheduler); return new AnonymousObservable(function (observer) { var q = []; return source.subscribe(function (x) { var now = scheduler.now(); q.push({ interval: now, value: x }); while (q.length > 0 && now - q[0].interval >= duration) { q.shift(); } }, observer.onError.bind(observer), function () { var now = scheduler.now(), res = []; while (q.length > 0) { var next = q.shift(); if (now - next.interval <= duration) { res.push(next.value); } } observer.onNext(res); observer.onCompleted(); }); }); }; /** * Takes elements for the specified duration from the start of the observable source sequence, using the specified scheduler to run timers. * * @example * 1 - res = source.takeWithTime(5000, [optional scheduler]); * @description * This operator accumulates a queue with a length enough to store elements received during the initial duration window. * As more elements are received, elements older than the specified duration are taken from the queue and produced on the * result sequence. This causes elements to be delayed with duration. * @param {Number} duration Duration for taking elements from the start of the sequence. * @param {Scheduler} scheduler Scheduler to run the timer on. If not specified, defaults to Rx.Scheduler.timeout. * @returns {Observable} An observable sequence with the elements taken during the specified duration from the start of the source sequence. */ observableProto.takeWithTime = function (duration, scheduler) { var source = this; scheduler || (scheduler = timeoutScheduler); return new AnonymousObservable(function (observer) { var t = scheduler.scheduleWithRelative(duration, function () { observer.onCompleted(); }); return new CompositeDisposable(t, source.subscribe(observer)); }); }; /** * Skips elements for the specified duration from the start of the observable source sequence, using the specified scheduler to run timers. * * @example * 1 - res = source.skipWithTime(5000, [optional scheduler]); * * @description * Specifying a zero value for duration doesn't guarantee no elements will be dropped from the start of the source sequence. * This is a side-effect of the asynchrony introduced by the scheduler, where the action that causes callbacks from the source sequence to be forwarded * may not execute immediately, despite the zero due time. * * Errors produced by the source sequence are always forwarded to the result sequence, even if the error occurs before the duration. * @param {Number} duration Duration for skipping elements from the start of the sequence. * @param {Scheduler} scheduler Scheduler to run the timer on. If not specified, defaults to Rx.Scheduler.timeout. * @returns {Observable} An observable sequence with the elements skipped during the specified duration from the start of the source sequence. */ observableProto.skipWithTime = function (duration, scheduler) { var source = this; scheduler || (scheduler = timeoutScheduler); return new AnonymousObservable(function (observer) { var open = false, t = scheduler.scheduleWithRelative(duration, function () { open = true; }), d = source.subscribe(function (x) { if (open) { observer.onNext(x); } }, observer.onError.bind(observer), observer.onCompleted.bind(observer)); return new CompositeDisposable(t, d); }); }; /** * Skips elements from the observable source sequence until the specified start time, using the specified scheduler to run timers. * Errors produced by the source sequence are always forwarded to the result sequence, even if the error occurs before the start time. * * @examples * 1 - res = source.skipUntilWithTime(new Date(), [optional scheduler]); * 2 - res = source.skipUntilWithTime(5000, [optional scheduler]); * @param startTime Time to start taking elements from the source sequence. If this value is less than or equal to Date(), no elements will be skipped. * @param scheduler Scheduler to run the timer on. If not specified, defaults to Rx.Scheduler.timeout. * @returns {Observable} An observable sequence with the elements skipped until the specified start time. */ observableProto.skipUntilWithTime = function (startTime, scheduler) { scheduler || (scheduler = timeoutScheduler); var source = this, schedulerMethod = startTime instanceof Date ? 'scheduleWithAbsolute' : 'scheduleWithRelative'; return new AnonymousObservable(function (observer) { var open = false; return new CompositeDisposable( scheduler[schedulerMethod](startTime, function () { open = true; }), source.subscribe( function (x) { open && observer.onNext(x); }, observer.onError.bind(observer), observer.onCompleted.bind(observer))); }); }; /** * Takes elements for the specified duration until the specified end time, using the specified scheduler to run timers. * * @example * 1 - res = source.takeUntilWithTime(new Date(), [optional scheduler]); * 2 - res = source.takeUntilWithTime(5000, [optional scheduler]); * @param {Number | Date} endTime Time to stop taking elements from the source sequence. If this value is less than or equal to new Date(), the result stream will complete immediately. * @param {Scheduler} scheduler Scheduler to run the timer on. * @returns {Observable} An observable sequence with the elements taken until the specified end time. */ observableProto.takeUntilWithTime = function (endTime, scheduler) { scheduler || (scheduler = timeoutScheduler); var source = this, schedulerMethod = endTime instanceof Date ? 'scheduleWithAbsolute' : 'scheduleWithRelative'; return new AnonymousObservable(function (observer) { return new CompositeDisposable(scheduler[schedulerMethod](endTime, function () { observer.onCompleted(); }), source.subscribe(observer)); }); }; /* * Performs a exclusive waiting for the first to finish before subscribing to another observable. * Observables that come in between subscriptions will be dropped on the floor. * @returns {Observable} A exclusive observable with only the results that happen when subscribed. */ observableProto.exclusive = function () { var sources = this; return new AnonymousObservable(function (observer) { var hasCurrent = false, isStopped = false, m = new SingleAssignmentDisposable(), g = new CompositeDisposable(); g.add(m); m.setDisposable(sources.subscribe( function (innerSource) { if (!hasCurrent) { hasCurrent = true; isPromise(innerSource) && (innerSource = observableFromPromise(innerSource)); var innerSubscription = new SingleAssignmentDisposable(); g.add(innerSubscription); innerSubscription.setDisposable(innerSource.subscribe( observer.onNext.bind(observer), observer.onError.bind(observer), function () { g.remove(innerSubscription); hasCurrent = false; if (isStopped && g.length === 1) { observer.onCompleted(); } })); } }, observer.onError.bind(observer), function () { isStopped = true; if (!hasCurrent && g.length === 1) { observer.onCompleted(); } })); return g; }); }; /* * Performs a exclusive map waiting for the first to finish before subscribing to another observable. * Observables that come in between subscriptions will be dropped on the floor. * @param {Function} selector Selector to invoke for every item in the current subscription. * @param {Any} [thisArg] An optional context to invoke with the selector parameter. * @returns {Observable} An exclusive observable with only the results that happen when subscribed. */ observableProto.exclusiveMap = function (selector, thisArg) { var sources = this; return new AnonymousObservable(function (observer) { var index = 0, hasCurrent = false, isStopped = true, m = new SingleAssignmentDisposable(), g = new CompositeDisposable(); g.add(m); m.setDisposable(sources.subscribe( function (innerSource) { if (!hasCurrent) { hasCurrent = true; innerSubscription = new SingleAssignmentDisposable(); g.add(innerSubscription); isPromise(innerSource) && (innerSource = observableFromPromise(innerSource)); innerSubscription.setDisposable(innerSource.subscribe( function (x) { var result; try { result = selector.call(thisArg, x, index++, innerSource); } catch (e) { observer.onError(e); return; } observer.onNext(result); }, observer.onError.bind(observer), function () { g.remove(innerSubscription); hasCurrent = false; if (isStopped && g.length === 1) { observer.onCompleted(); } })); } }, observer.onError.bind(observer), function () { isStopped = true; if (g.length === 1 && !hasCurrent) { observer.onCompleted(); } })); return g; }); }; /** Provides a set of extension methods for virtual time scheduling. */ Rx.VirtualTimeScheduler = (function (_super) { function notImplemented() { throw new Error('Not implemented'); } function localNow() { return this.toDateTimeOffset(this.clock); } function scheduleNow(state, action) { return this.scheduleAbsoluteWithState(state, this.clock, action); } function scheduleRelative(state, dueTime, action) { return this.scheduleRelativeWithState(state, this.toRelative(dueTime), action); } function scheduleAbsolute(state, dueTime, action) { return this.scheduleRelativeWithState(state, this.toRelative(dueTime - this.now()), action); } function invokeAction(scheduler, action) { action(); return disposableEmpty; } inherits(VirtualTimeScheduler, _super); /** * Creates a new virtual time scheduler with the specified initial clock value and absolute time comparer. * * @constructor * @param {Number} initialClock Initial value for the clock. * @param {Function} comparer Comparer to determine causality of events based on absolute time. */ function VirtualTimeScheduler(initialClock, comparer) { this.clock = initialClock; this.comparer = comparer; this.isEnabled = false; this.queue = new PriorityQueue(1024); _super.call(this, localNow, scheduleNow, scheduleRelative, scheduleAbsolute); } var VirtualTimeSchedulerPrototype = VirtualTimeScheduler.prototype; /** * Adds a relative time value to an absolute time value. * @param {Number} absolute Absolute virtual time value. * @param {Number} relative Relative virtual time value to add. * @return {Number} Resulting absolute virtual time sum value. */ VirtualTimeSchedulerPrototype.add = notImplemented; /** * Converts an absolute time to a number * @param {Any} The absolute time. * @returns {Number} The absolute time in ms */ VirtualTimeSchedulerPrototype.toDateTimeOffset = notImplemented; /** * Converts the TimeSpan value to a relative virtual time value. * @param {Number} timeSpan TimeSpan value to convert. * @return {Number} Corresponding relative virtual time value. */ VirtualTimeSchedulerPrototype.toRelative = notImplemented; /** * Schedules a periodic piece of work by dynamically discovering the scheduler's capabilities. The periodic task will be emulated using recursive scheduling. * @param {Mixed} state Initial state passed to the action upon the first iteration. * @param {Number} period Period for running the work periodically. * @param {Function} action Action to be executed, potentially updating the state. * @returns {Disposable} The disposable object used to cancel the scheduled recurring action (best effort). */ VirtualTimeSchedulerPrototype.schedulePeriodicWithState = function (state, period, action) { var s = new SchedulePeriodicRecursive(this, state, period, action); return s.start(); }; /** * Schedules an action to be executed after dueTime. * @param {Mixed} state State passed to the action to be executed. * @param {Number} dueTime Relative time after which to execute the action. * @param {Function} action Action to be executed. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ VirtualTimeSchedulerPrototype.scheduleRelativeWithState = function (state, dueTime, action) { var runAt = this.add(this.clock, dueTime); return this.scheduleAbsoluteWithState(state, runAt, action); }; /** * Schedules an action to be executed at dueTime. * @param {Number} dueTime Relative time after which to execute the action. * @param {Function} action Action to be executed. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ VirtualTimeSchedulerPrototype.scheduleRelative = function (dueTime, action) { return this.scheduleRelativeWithState(action, dueTime, invokeAction); }; /** * Starts the virtual time scheduler. */ VirtualTimeSchedulerPrototype.start = function () { var next; if (!this.isEnabled) { this.isEnabled = true; do { next = this.getNext(); if (next !== null) { if (this.comparer(next.dueTime, this.clock) > 0) { this.clock = next.dueTime; } next.invoke(); } else { this.isEnabled = false; } } while (this.isEnabled); } }; /** * Stops the virtual time scheduler. */ VirtualTimeSchedulerPrototype.stop = function () { this.isEnabled = false; }; /** * Advances the scheduler's clock to the specified time, running all work till that point. * @param {Number} time Absolute time to advance the scheduler's clock to. */ VirtualTimeSchedulerPrototype.advanceTo = function (time) { var next; var dueToClock = this.comparer(this.clock, time); if (this.comparer(this.clock, time) > 0) { throw new Error(argumentOutOfRange); } if (dueToClock === 0) { return; } if (!this.isEnabled) { this.isEnabled = true; do { next = this.getNext(); if (next !== null && this.comparer(next.dueTime, time) <= 0) { if (this.comparer(next.dueTime, this.clock) > 0) { this.clock = next.dueTime; } next.invoke(); } else { this.isEnabled = false; } } while (this.isEnabled); this.clock = time; } }; /** * Advances the scheduler's clock by the specified relative time, running all work scheduled for that timespan. * @param {Number} time Relative time to advance the scheduler's clock by. */ VirtualTimeSchedulerPrototype.advanceBy = function (time) { var dt = this.add(this.clock, time); var dueToClock = this.comparer(this.clock, dt); if (dueToClock > 0) { throw new Error(argumentOutOfRange); } if (dueToClock === 0) { return; } this.advanceTo(dt); }; /** * Advances the scheduler's clock by the specified relative time. * @param {Number} time Relative time to advance the scheduler's clock by. */ VirtualTimeSchedulerPrototype.sleep = function (time) { var dt = this.add(this.clock, time); if (this.comparer(this.clock, dt) >= 0) { throw new Error(argumentOutOfRange); } this.clock = dt; }; /** * Gets the next scheduled item to be executed. * @returns {ScheduledItem} The next scheduled item. */ VirtualTimeSchedulerPrototype.getNext = function () { var next; while (this.queue.length > 0) { next = this.queue.peek(); if (next.isCancelled()) { this.queue.dequeue(); } else { return next; } } return null; }; /** * Schedules an action to be executed at dueTime. * @param {Scheduler} scheduler Scheduler to execute the action on. * @param {Number} dueTime Absolute time at which to execute the action. * @param {Function} action Action to be executed. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ VirtualTimeSchedulerPrototype.scheduleAbsolute = function (dueTime, action) { return this.scheduleAbsoluteWithState(action, dueTime, invokeAction); }; /** * Schedules an action to be executed at dueTime. * @param {Mixed} state State passed to the action to be executed. * @param {Number} dueTime Absolute time at which to execute the action. * @param {Function} action Action to be executed. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ VirtualTimeSchedulerPrototype.scheduleAbsoluteWithState = function (state, dueTime, action) { var self = this, run = function (scheduler, state1) { self.queue.remove(si); return action(scheduler, state1); }, si = new ScheduledItem(self, state, run, dueTime, self.comparer); self.queue.enqueue(si); return si.disposable; }; return VirtualTimeScheduler; }(Scheduler)); /** Provides a virtual time scheduler that uses Date for absolute time and number for relative time. */ Rx.HistoricalScheduler = (function (_super) { inherits(HistoricalScheduler, _super); /** * Creates a new historical scheduler with the specified initial clock value. * * @constructor * @param {Number} initialClock Initial value for the clock. * @param {Function} comparer Comparer to determine causality of events based on absolute time. */ function HistoricalScheduler(initialClock, comparer) { var clock = initialClock == null ? 0 : initialClock; var cmp = comparer || defaultSubComparer; _super.call(this, clock, cmp); } var HistoricalSchedulerProto = HistoricalScheduler.prototype; /** * Adds a relative time value to an absolute time value. * @param {Number} absolute Absolute virtual time value. * @param {Number} relative Relative virtual time value to add. * @return {Number} Resulting absolute virtual time sum value. */ HistoricalSchedulerProto.add = function (absolute, relative) { return absolute + relative; }; /** * @private */ HistoricalSchedulerProto.toDateTimeOffset = function (absolute) { return new Date(absolute).getTime(); }; /** * Converts the TimeSpan value to a relative virtual time value. * * @memberOf HistoricalScheduler * @param {Number} timeSpan TimeSpan value to convert. * @return {Number} Corresponding relative virtual time value. */ HistoricalSchedulerProto.toRelative = function (timeSpan) { return timeSpan; }; return HistoricalScheduler; }(Rx.VirtualTimeScheduler)); var AnonymousObservable = Rx.AnonymousObservable = (function (__super__) { inherits(AnonymousObservable, __super__); // Fix subscriber to check for undefined or function returned to decorate as Disposable function fixSubscriber(subscriber) { if (typeof subscriber === 'undefined') { subscriber = disposableEmpty; } else if (typeof subscriber === 'function') { subscriber = disposableCreate(subscriber); } return subscriber; } function AnonymousObservable(subscribe) { if (!(this instanceof AnonymousObservable)) { return new AnonymousObservable(subscribe); } function s(observer) { var setDisposable = function () { try { autoDetachObserver.setDisposable(fixSubscriber(subscribe(autoDetachObserver))); } catch (e) { if (!autoDetachObserver.fail(e)) { throw e; } } }; var autoDetachObserver = new AutoDetachObserver(observer); if (currentThreadScheduler.scheduleRequired()) { currentThreadScheduler.schedule(setDisposable); } else { setDisposable(); } return autoDetachObserver; } __super__.call(this, s); } return AnonymousObservable; }(Observable)); /** @private */ var AutoDetachObserver = (function (_super) { inherits(AutoDetachObserver, _super); function AutoDetachObserver(observer) { _super.call(this); this.observer = observer; this.m = new SingleAssignmentDisposable(); } var AutoDetachObserverPrototype = AutoDetachObserver.prototype; AutoDetachObserverPrototype.next = function (value) { var noError = false; try { this.observer.onNext(value); noError = true; } catch (e) { throw e; } finally { if (!noError) { this.dispose(); } } }; AutoDetachObserverPrototype.error = function (exn) { try { this.observer.onError(exn); } catch (e) { throw e; } finally { this.dispose(); } }; AutoDetachObserverPrototype.completed = function () { try { this.observer.onCompleted(); } catch (e) { throw e; } finally { this.dispose(); } }; AutoDetachObserverPrototype.setDisposable = function (value) { this.m.setDisposable(value); }; AutoDetachObserverPrototype.getDisposable = function (value) { return this.m.getDisposable(); }; /* @private */ AutoDetachObserverPrototype.disposable = function (value) { return arguments.length ? this.getDisposable() : setDisposable(value); }; AutoDetachObserverPrototype.dispose = function () { _super.prototype.dispose.call(this); this.m.dispose(); }; return AutoDetachObserver; }(AbstractObserver)); /** @private */ var GroupedObservable = (function (_super) { inherits(GroupedObservable, _super); function subscribe(observer) { return this.underlyingObservable.subscribe(observer); } /** * @constructor * @private */ function GroupedObservable(key, underlyingObservable, mergedDisposable) { _super.call(this, subscribe); this.key = key; this.underlyingObservable = !mergedDisposable ? underlyingObservable : new AnonymousObservable(function (observer) { return new CompositeDisposable(mergedDisposable.getDisposable(), underlyingObservable.subscribe(observer)); }); } return GroupedObservable; }(Observable)); /** * Represents an object that is both an observable sequence as well as an observer. * Each notification is broadcasted to all subscribed observers. */ var Subject = Rx.Subject = (function (_super) { function subscribe(observer) { checkDisposed.call(this); if (!this.isStopped) { this.observers.push(observer); return new InnerSubscription(this, observer); } if (this.exception) { observer.onError(this.exception); return disposableEmpty; } observer.onCompleted(); return disposableEmpty; } inherits(Subject, _super); /** * Creates a subject. * @constructor */ function Subject() { _super.call(this, subscribe); this.isDisposed = false, this.isStopped = false, this.observers = []; } addProperties(Subject.prototype, Observer, { /** * Indicates whether the subject has observers subscribed to it. * @returns {Boolean} Indicates whether the subject has observers subscribed to it. */ hasObservers: function () { return this.observers.length > 0; }, /** * Notifies all subscribed observers about the end of the sequence. */ onCompleted: function () { checkDisposed.call(this); if (!this.isStopped) { var os = this.observers.slice(0); this.isStopped = true; for (var i = 0, len = os.length; i < len; i++) { os[i].onCompleted(); } this.observers = []; } }, /** * Notifies all subscribed observers about the exception. * @param {Mixed} error The exception to send to all observers. */ onError: function (exception) { checkDisposed.call(this); if (!this.isStopped) { var os = this.observers.slice(0); this.isStopped = true; this.exception = exception; for (var i = 0, len = os.length; i < len; i++) { os[i].onError(exception); } this.observers = []; } }, /** * Notifies all subscribed observers about the arrival of the specified element in the sequence. * @param {Mixed} value The value to send to all observers. */ onNext: function (value) { checkDisposed.call(this); if (!this.isStopped) { var os = this.observers.slice(0); for (var i = 0, len = os.length; i < len; i++) { os[i].onNext(value); } } }, /** * Unsubscribe all observers and release resources. */ dispose: function () { this.isDisposed = true; this.observers = null; } }); /** * Creates a subject from the specified observer and observable. * @param {Observer} observer The observer used to send messages to the subject. * @param {Observable} observable The observable used to subscribe to messages sent from the subject. * @returns {Subject} Subject implemented using the given observer and observable. */ Subject.create = function (observer, observable) { return new AnonymousSubject(observer, observable); }; return Subject; }(Observable)); /** * Represents the result of an asynchronous operation. * The last value before the OnCompleted notification, or the error received through OnError, is sent to all subscribed observers. */ var AsyncSubject = Rx.AsyncSubject = (function (_super) { function subscribe(observer) { checkDisposed.call(this); if (!this.isStopped) { this.observers.push(observer); return new InnerSubscription(this, observer); } var ex = this.exception, hv = this.hasValue, v = this.value; if (ex) { observer.onError(ex); } else if (hv) { observer.onNext(v); observer.onCompleted(); } else { observer.onCompleted(); } return disposableEmpty; } inherits(AsyncSubject, _super); /** * Creates a subject that can only receive one value and that value is cached for all future observations. * @constructor */ function AsyncSubject() { _super.call(this, subscribe); this.isDisposed = false; this.isStopped = false; this.value = null; this.hasValue = false; this.observers = []; this.exception = null; } addProperties(AsyncSubject.prototype, Observer, { /** * Indicates whether the subject has observers subscribed to it. * @returns {Boolean} Indicates whether the subject has observers subscribed to it. */ hasObservers: function () { checkDisposed.call(this); return this.observers.length > 0; }, /** * Notifies all subscribed observers about the end of the sequence, also causing the last received value to be sent out (if any). */ onCompleted: function () { var o, i, len; checkDisposed.call(this); if (!this.isStopped) { this.isStopped = true; var os = this.observers.slice(0), v = this.value, hv = this.hasValue; if (hv) { for (i = 0, len = os.length; i < len; i++) { o = os[i]; o.onNext(v); o.onCompleted(); } } else { for (i = 0, len = os.length; i < len; i++) { os[i].onCompleted(); } } this.observers = []; } }, /** * Notifies all subscribed observers about the exception. * @param {Mixed} error The exception to send to all observers. */ onError: function (exception) { checkDisposed.call(this); if (!this.isStopped) { var os = this.observers.slice(0); this.isStopped = true; this.exception = exception; for (var i = 0, len = os.length; i < len; i++) { os[i].onError(exception); } this.observers = []; } }, /** * Sends a value to the subject. The last value received before successful termination will be sent to all subscribed and future observers. * @param {Mixed} value The value to store in the subject. */ onNext: function (value) { checkDisposed.call(this); if (!this.isStopped) { this.value = value; this.hasValue = true; } }, /** * Unsubscribe all observers and release resources. */ dispose: function () { this.isDisposed = true; this.observers = null; this.exception = null; this.value = null; } }); return AsyncSubject; }(Observable)); /** @private */ var AnonymousSubject = (function (_super) { inherits(AnonymousSubject, _super); function subscribe(observer) { return this.observable.subscribe(observer); } /** * @private * @constructor */ function AnonymousSubject(observer, observable) { _super.call(this, subscribe); this.observer = observer; this.observable = observable; } addProperties(AnonymousSubject.prototype, Observer, { /** * @private * @memberOf AnonymousSubject# */ onCompleted: function () { this.observer.onCompleted(); }, /** * @private * @memberOf AnonymousSubject# */ onError: function (exception) { this.observer.onError(exception); }, /** * @private * @memberOf AnonymousSubject# */ onNext: function (value) { this.observer.onNext(value); } }); return AnonymousSubject; }(Observable)); if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) { root.Rx = Rx; define(function() { return Rx; }); } else if (freeExports && freeModule) { // in Node.js or RingoJS if (moduleExports) { (freeModule.exports = Rx).Rx = Rx; } else { freeExports.Rx = Rx; } } else { // in a browser or Rhino root.Rx = Rx; } }.call(this));
docs/app/Examples/collections/Form/Content/FormExampleField.js
vageeshb/Semantic-UI-React
import React from 'react' import { Form } from 'semantic-ui-react' const FormExampleField = () => ( <Form> <Form.Field> <label>User Input</label> <input /> </Form.Field> </Form> ) export default FormExampleField
dcc-portal-ui/app/scripts/oncololliplot/js/react-components/Lolliplot.js
icgc-dcc/dcc-portal
import React, { Component } from 'react'; import { object } from 'prop-types'; import { connect } from 'react-redux'; import LolliplotChart from './LolliplotChart'; import Toolbar from './Toolbar'; import Tooltip from './Tooltip'; import Backbone from './Backbone'; import Minimap from './Minimap'; import Loading from './Loading'; import { updateChartState } from '../redux/OncoLolliplot/redux'; class Lolliplot extends Component { static displayName = 'Lolliplot'; static propTypes = { d3: object.isRequired, }; constructor(props) { super(props); this.state = { cursorPos: { x: 0, y: 0, }, }; } _onMouseMove(e) { this.setState({ ...this.state, cursorPos: { x: e.nativeEvent.clientX, y: e.nativeEvent.clientY }, }); } render() { const { d3, lolliplotState, displayWidth, highlightedPointId, updateChartState, tooltip, loading, } = this.props; const { cursorPos } = this.state; // If data is still loading or the UI parent element has not been drawn yet by Angular ... loadingStatus === true const loadingStatus = loading || displayWidth === 0; return ( <div onMouseMove={this._onMouseMove.bind(this)} style={{ minHeight: '454px' }}> <h3>Protein</h3> <Toolbar /> {loadingStatus ? ( <Loading /> ) : ( <div> <LolliplotChart {...lolliplotState} d3={d3} width={displayWidth} highlightedPointId={highlightedPointId} update={updateChartState} /> <Backbone d3={d3} /> <Minimap d3={d3} /> </div> )} {tooltip ? <Tooltip cursorPos={cursorPos} /> : null} </div> ); } } const mapStateToProps = state => { return { ...state.oncoLolliplot, }; }; const mapDispatchToProps = dispatch => { return { updateChartState: state => dispatch(updateChartState(state)), }; }; export default connect(mapStateToProps, mapDispatchToProps)(Lolliplot);
src/ButtonGroup.js
tonylinyy/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const ButtonGroup = React.createClass({ mixins: [BootstrapMixin], propTypes: { vertical: React.PropTypes.bool, justified: React.PropTypes.bool, /** * Display block buttons, only useful when used with the "vertical" prop. * @type {bool} */ block: CustomPropTypes.all([ React.PropTypes.bool, function(props, propName, componentName) { if (props.block && !props.vertical) { return new Error('The block property requires the vertical property to be set to have any effect'); } } ]) }, getDefaultProps() { return { bsClass: 'button-group' }; }, render() { let classes = this.getBsClassSet(); classes['btn-group'] = !this.props.vertical; classes['btn-group-vertical'] = this.props.vertical; classes['btn-group-justified'] = this.props.justified; classes['btn-block'] = this.props.block; return ( <div {...this.props} className={classNames(this.props.className, classes)}> {this.props.children} </div> ); } }); export default ButtonGroup;
apps/store/extensions/app/social-reviews/themes/store/js/lib/jquery-1.8.3.min.js
jeradrutnam/carbon-store
/*! jQuery v1.8.3 jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:D.test(r)?v.parseJSON(r):r}catch(s){}v.data(e,n,r)}else r=t}return r}function B(e){var t;for(t in e){if(t==="data"&&v.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function et(){return!1}function tt(){return!0}function ut(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function at(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function ft(e,t,n){t=t||0;if(v.isFunction(t))return v.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return v.grep(e,function(e,r){return e===t===n});if(typeof t=="string"){var r=v.grep(e,function(e){return e.nodeType===1});if(it.test(t))return v.filter(t,r,!n);t=v.filter(t,r)}return v.grep(e,function(e,r){return v.inArray(e,t)>=0===n})}function lt(e){var t=ct.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function At(e,t){if(t.nodeType!==1||!v.hasData(e))return;var n,r,i,s=v._data(e),o=v._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u)for(r=0,i=u[n].length;r<i;r++)v.event.add(t,n,u[n][r])}o.data&&(o.data=v.extend({},o.data))}function Ot(e,t){var n;if(t.nodeType!==1)return;t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),n=t.nodeName.toLowerCase(),n==="object"?(t.parentNode&&(t.outerHTML=e.outerHTML),v.support.html5Clone&&e.innerHTML&&!v.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):n==="input"&&Et.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):n==="option"?t.selected=e.defaultSelected:n==="input"||n==="textarea"?t.defaultValue=e.defaultValue:n==="script"&&t.text!==e.text&&(t.text=e.text),t.removeAttribute(v.expando)}function Mt(e){return typeof e.getElementsByTagName!="undefined"?e.getElementsByTagName("*"):typeof e.querySelectorAll!="undefined"?e.querySelectorAll("*"):[]}function _t(e){Et.test(e.type)&&(e.defaultChecked=e.checked)}function Qt(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Jt.length;while(i--){t=Jt[i]+n;if(t in e)return t}return r}function Gt(e,t){return e=t||e,v.css(e,"display")==="none"||!v.contains(e.ownerDocument,e)}function Yt(e,t){var n,r,i=[],s=0,o=e.length;for(;s<o;s++){n=e[s];if(!n.style)continue;i[s]=v._data(n,"olddisplay"),t?(!i[s]&&n.style.display==="none"&&(n.style.display=""),n.style.display===""&&Gt(n)&&(i[s]=v._data(n,"olddisplay",nn(n.nodeName)))):(r=Dt(n,"display"),!i[s]&&r!=="none"&&v._data(n,"olddisplay",r))}for(s=0;s<o;s++){n=e[s];if(!n.style)continue;if(!t||n.style.display==="none"||n.style.display==="")n.style.display=t?i[s]||"":"none"}return e}function Zt(e,t,n){var r=Rt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function en(e,t,n,r){var i=n===(r?"border":"content")?4:t==="width"?1:0,s=0;for(;i<4;i+=2)n==="margin"&&(s+=v.css(e,n+$t[i],!0)),r?(n==="content"&&(s-=parseFloat(Dt(e,"padding"+$t[i]))||0),n!=="margin"&&(s-=parseFloat(Dt(e,"border"+$t[i]+"Width"))||0)):(s+=parseFloat(Dt(e,"padding"+$t[i]))||0,n!=="padding"&&(s+=parseFloat(Dt(e,"border"+$t[i]+"Width"))||0));return s}function tn(e,t,n){var r=t==="width"?e.offsetWidth:e.offsetHeight,i=!0,s=v.support.boxSizing&&v.css(e,"boxSizing")==="border-box";if(r<=0||r==null){r=Dt(e,t);if(r<0||r==null)r=e.style[t];if(Ut.test(r))return r;i=s&&(v.support.boxSizingReliable||r===e.style[t]),r=parseFloat(r)||0}return r+en(e,t,n||(s?"border":"content"),i)+"px"}function nn(e){if(Wt[e])return Wt[e];var t=v("<"+e+">").appendTo(i.body),n=t.css("display");t.remove();if(n==="none"||n===""){Pt=i.body.appendChild(Pt||v.extend(i.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!Ht||!Pt.createElement)Ht=(Pt.contentWindow||Pt.contentDocument).document,Ht.write("<!doctype html><html><body>"),Ht.close();t=Ht.body.appendChild(Ht.createElement(e)),n=Dt(t,"display"),i.body.removeChild(Pt)}return Wt[e]=n,n}function fn(e,t,n,r){var i;if(v.isArray(t))v.each(t,function(t,i){n||sn.test(e)?r(e,i):fn(e+"["+(typeof i=="object"?t:"")+"]",i,n,r)});else if(!n&&v.type(t)==="object")for(i in t)fn(e+"["+i+"]",t[i],n,r);else r(e,t)}function Cn(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,i,s,o=t.toLowerCase().split(y),u=0,a=o.length;if(v.isFunction(n))for(;u<a;u++)r=o[u],s=/^\+/.test(r),s&&(r=r.substr(1)||"*"),i=e[r]=e[r]||[],i[s?"unshift":"push"](n)}}function kn(e,n,r,i,s,o){s=s||n.dataTypes[0],o=o||{},o[s]=!0;var u,a=e[s],f=0,l=a?a.length:0,c=e===Sn;for(;f<l&&(c||!u);f++)u=a[f](n,r,i),typeof u=="string"&&(!c||o[u]?u=t:(n.dataTypes.unshift(u),u=kn(e,n,r,i,u,o)));return(c||!u)&&!o["*"]&&(u=kn(e,n,r,i,"*",o)),u}function Ln(e,n){var r,i,s=v.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((s[r]?e:i||(i={}))[r]=n[r]);i&&v.extend(!0,e,i)}function An(e,n,r){var i,s,o,u,a=e.contents,f=e.dataTypes,l=e.responseFields;for(s in l)s in r&&(n[l[s]]=r[s]);while(f[0]==="*")f.shift(),i===t&&(i=e.mimeType||n.getResponseHeader("content-type"));if(i)for(s in a)if(a[s]&&a[s].test(i)){f.unshift(s);break}if(f[0]in r)o=f[0];else{for(s in r){if(!f[0]||e.converters[s+" "+f[0]]){o=s;break}u||(u=s)}o=o||u}if(o)return o!==f[0]&&f.unshift(o),r[o]}function On(e,t){var n,r,i,s,o=e.dataTypes.slice(),u=o[0],a={},f=0;e.dataFilter&&(t=e.dataFilter(t,e.dataType));if(o[1])for(n in e.converters)a[n.toLowerCase()]=e.converters[n];for(;i=o[++f];)if(i!=="*"){if(u!=="*"&&u!==i){n=a[u+" "+i]||a["* "+i];if(!n)for(r in a){s=r.split(" ");if(s[1]===i){n=a[u+" "+s[0]]||a["* "+s[0]];if(n){n===!0?n=a[r]:a[r]!==!0&&(i=s[0],o.splice(f--,0,i));break}}}if(n!==!0)if(n&&e["throws"])t=n(t);else try{t=n(t)}catch(l){return{state:"parsererror",error:n?l:"No conversion from "+u+" to "+i}}}u=i}return{state:"success",data:t}}function Fn(){try{return new e.XMLHttpRequest}catch(t){}}function In(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function $n(){return setTimeout(function(){qn=t},0),qn=v.now()}function Jn(e,t){v.each(t,function(t,n){var r=(Vn[t]||[]).concat(Vn["*"]),i=0,s=r.length;for(;i<s;i++)if(r[i].call(e,t,n))return})}function Kn(e,t,n){var r,i=0,s=0,o=Xn.length,u=v.Deferred().always(function(){delete a.elem}),a=function(){var t=qn||$n(),n=Math.max(0,f.startTime+f.duration-t),r=n/f.duration||0,i=1-r,s=0,o=f.tweens.length;for(;s<o;s++)f.tweens[s].run(i);return u.notifyWith(e,[f,i,n]),i<1&&o?n:(u.resolveWith(e,[f]),!1)},f=u.promise({elem:e,props:v.extend({},t),opts:v.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:qn||$n(),duration:n.duration,tweens:[],createTween:function(t,n,r){var i=v.Tween(e,f.opts,t,n,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(i),i},stop:function(t){var n=0,r=t?f.tweens.length:0;for(;n<r;n++)f.tweens[n].run(1);return t?u.resolveWith(e,[f,t]):u.rejectWith(e,[f,t]),this}}),l=f.props;Qn(l,f.opts.specialEasing);for(;i<o;i++){r=Xn[i].call(f,e,l,f.opts);if(r)return r}return Jn(f,l),v.isFunction(f.opts.start)&&f.opts.start.call(e,f),v.fx.timer(v.extend(a,{anim:f,queue:f.opts.queue,elem:e})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}function Qn(e,t){var n,r,i,s,o;for(n in e){r=v.camelCase(n),i=t[r],s=e[n],v.isArray(s)&&(i=s[1],s=e[n]=s[0]),n!==r&&(e[r]=s,delete e[n]),o=v.cssHooks[r];if(o&&"expand"in o){s=o.expand(s),delete e[r];for(n in s)n in e||(e[n]=s[n],t[n]=i)}else t[r]=i}}function Gn(e,t,n){var r,i,s,o,u,a,f,l,c,h=this,p=e.style,d={},m=[],g=e.nodeType&&Gt(e);n.queue||(l=v._queueHooks(e,"fx"),l.unqueued==null&&(l.unqueued=0,c=l.empty.fire,l.empty.fire=function(){l.unqueued||c()}),l.unqueued++,h.always(function(){h.always(function(){l.unqueued--,v.queue(e,"fx").length||l.empty.fire()})})),e.nodeType===1&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],v.css(e,"display")==="inline"&&v.css(e,"float")==="none"&&(!v.support.inlineBlockNeedsLayout||nn(e.nodeName)==="inline"?p.display="inline-block":p.zoom=1)),n.overflow&&(p.overflow="hidden",v.support.shrinkWrapBlocks||h.done(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t){s=t[r];if(Un.exec(s)){delete t[r],a=a||s==="toggle";if(s===(g?"hide":"show"))continue;m.push(r)}}o=m.length;if(o){u=v._data(e,"fxshow")||v._data(e,"fxshow",{}),"hidden"in u&&(g=u.hidden),a&&(u.hidden=!g),g?v(e).show():h.done(function(){v(e).hide()}),h.done(function(){var t;v.removeData(e,"fxshow",!0);for(t in d)v.style(e,t,d[t])});for(r=0;r<o;r++)i=m[r],f=h.createTween(i,g?u[i]:0),d[i]=u[i]||v.style(e,i),i in u||(u[i]=f.start,g&&(f.end=f.start,f.start=i==="width"||i==="height"?1:0))}}function Yn(e,t,n,r,i){return new Yn.prototype.init(e,t,n,r,i)}function Zn(e,t){var n,r={height:e},i=0;t=t?1:0;for(;i<4;i+=2-t)n=$t[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function tr(e){return v.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:!1}var n,r,i=e.document,s=e.location,o=e.navigator,u=e.jQuery,a=e.$,f=Array.prototype.push,l=Array.prototype.slice,c=Array.prototype.indexOf,h=Object.prototype.toString,p=Object.prototype.hasOwnProperty,d=String.prototype.trim,v=function(e,t){return new v.fn.init(e,t,n)},m=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,g=/\S/,y=/\s+/,b=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,w=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,E=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,S=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,T=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,N=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,C=/^-ms-/,k=/-([\da-z])/gi,L=function(e,t){return(t+"").toUpperCase()},A=function(){i.addEventListener?(i.removeEventListener("DOMContentLoaded",A,!1),v.ready()):i.readyState==="complete"&&(i.detachEvent("onreadystatechange",A),v.ready())},O={};v.fn=v.prototype={constructor:v,init:function(e,n,r){var s,o,u,a;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if(typeof e=="string"){e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?s=[null,e,null]:s=w.exec(e);if(s&&(s[1]||!n)){if(s[1])return n=n instanceof v?n[0]:n,a=n&&n.nodeType?n.ownerDocument||n:i,e=v.parseHTML(s[1],a,!0),E.test(s[1])&&v.isPlainObject(n)&&this.attr.call(e,n,!0),v.merge(this,e);o=i.getElementById(s[2]);if(o&&o.parentNode){if(o.id!==s[2])return r.find(e);this.length=1,this[0]=o}return this.context=i,this.selector=e,this}return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}return v.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),v.makeArray(e,this))},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return l.call(this)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=v.merge(this.constructor(),e);return r.prevObject=this,r.context=this.context,t==="find"?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return v.each(this,e,t)},ready:function(e){return v.ready.promise().done(e),this},eq:function(e){return e=+e,e===-1?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(l.apply(this,arguments),"slice",l.call(arguments).join(","))},map:function(e){return this.pushStack(v.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:[].sort,splice:[].splice},v.fn.init.prototype=v.fn,v.extend=v.fn.extend=function(){var e,n,r,i,s,o,u=arguments[0]||{},a=1,f=arguments.length,l=!1;typeof u=="boolean"&&(l=u,u=arguments[1]||{},a=2),typeof u!="object"&&!v.isFunction(u)&&(u={}),f===a&&(u=this,--a);for(;a<f;a++)if((e=arguments[a])!=null)for(n in e){r=u[n],i=e[n];if(u===i)continue;l&&i&&(v.isPlainObject(i)||(s=v.isArray(i)))?(s?(s=!1,o=r&&v.isArray(r)?r:[]):o=r&&v.isPlainObject(r)?r:{},u[n]=v.extend(l,o,i)):i!==t&&(u[n]=i)}return u},v.extend({noConflict:function(t){return e.$===v&&(e.$=a),t&&e.jQuery===v&&(e.jQuery=u),v},isReady:!1,readyWait:1,holdReady:function(e){e?v.readyWait++:v.ready(!0)},ready:function(e){if(e===!0?--v.readyWait:v.isReady)return;if(!i.body)return setTimeout(v.ready,1);v.isReady=!0;if(e!==!0&&--v.readyWait>0)return;r.resolveWith(i,[v]),v.fn.trigger&&v(i).trigger("ready").off("ready")},isFunction:function(e){return v.type(e)==="function"},isArray:Array.isArray||function(e){return v.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):O[h.call(e)]||"object"},isPlainObject:function(e){if(!e||v.type(e)!=="object"||e.nodeType||v.isWindow(e))return!1;try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||p.call(e,r)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){var r;return!e||typeof e!="string"?null:(typeof t=="boolean"&&(n=t,t=0),t=t||i,(r=E.exec(e))?[t.createElement(r[1])]:(r=v.buildFragment([e],t,n?null:[]),v.merge([],(r.cacheable?v.clone(r.fragment):r.fragment).childNodes)))},parseJSON:function(t){if(!t||typeof t!="string")return null;t=v.trim(t);if(e.JSON&&e.JSON.parse)return e.JSON.parse(t);if(S.test(t.replace(T,"@").replace(N,"]").replace(x,"")))return(new Function("return "+t))();v.error("Invalid JSON: "+t)},parseXML:function(n){var r,i;if(!n||typeof n!="string")return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(s){r=t}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&v.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&g.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(C,"ms-").replace(k,L)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,n,r){var i,s=0,o=e.length,u=o===t||v.isFunction(e);if(r){if(u){for(i in e)if(n.apply(e[i],r)===!1)break}else for(;s<o;)if(n.apply(e[s++],r)===!1)break}else if(u){for(i in e)if(n.call(e[i],i,e[i])===!1)break}else for(;s<o;)if(n.call(e[s],s,e[s++])===!1)break;return e},trim:d&&!d.call("\ufeff\u00a0")?function(e){return e==null?"":d.call(e)}:function(e){return e==null?"":(e+"").replace(b,"")},makeArray:function(e,t){var n,r=t||[];return e!=null&&(n=v.type(e),e.length==null||n==="string"||n==="function"||n==="regexp"||v.isWindow(e)?f.call(r,e):v.merge(r,e)),r},inArray:function(e,t,n){var r;if(t){if(c)return c.call(t,e,n);r=t.length,n=n?n<0?Math.max(0,r+n):n:0;for(;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,s=0;if(typeof r=="number")for(;s<r;s++)e[i++]=n[s];else while(n[s]!==t)e[i++]=n[s++];return e.length=i,e},grep:function(e,t,n){var r,i=[],s=0,o=e.length;n=!!n;for(;s<o;s++)r=!!t(e[s],s),n!==r&&i.push(e[s]);return i},map:function(e,n,r){var i,s,o=[],u=0,a=e.length,f=e instanceof v||a!==t&&typeof a=="number"&&(a>0&&e[0]&&e[a-1]||a===0||v.isArray(e));if(f)for(;u<a;u++)i=n(e[u],u,r),i!=null&&(o[o.length]=i);else for(s in e)i=n(e[s],s,r),i!=null&&(o[o.length]=i);return o.concat.apply([],o)},guid:1,proxy:function(e,n){var r,i,s;return typeof n=="string"&&(r=e[n],n=e,e=r),v.isFunction(e)?(i=l.call(arguments,2),s=function(){return e.apply(n,i.concat(l.call(arguments)))},s.guid=e.guid=e.guid||v.guid++,s):t},access:function(e,n,r,i,s,o,u){var a,f=r==null,l=0,c=e.length;if(r&&typeof r=="object"){for(l in r)v.access(e,n,l,r[l],1,o,i);s=1}else if(i!==t){a=u===t&&v.isFunction(i),f&&(a?(a=n,n=function(e,t,n){return a.call(v(e),n)}):(n.call(e,i),n=null));if(n)for(;l<c;l++)n(e[l],r,a?i.call(e[l],l,n(e[l],r)):i,u);s=1}return s?e:f?n.call(e):c?n(e[0],r):o},now:function(){return(new Date).getTime()}}),v.ready.promise=function(t){if(!r){r=v.Deferred();if(i.readyState==="complete")setTimeout(v.ready,1);else if(i.addEventListener)i.addEventListener("DOMContentLoaded",A,!1),e.addEventListener("load",v.ready,!1);else{i.attachEvent("onreadystatechange",A),e.attachEvent("onload",v.ready);var n=!1;try{n=e.frameElement==null&&i.documentElement}catch(s){}n&&n.doScroll&&function o(){if(!v.isReady){try{n.doScroll("left")}catch(e){return setTimeout(o,50)}v.ready()}}()}}return r.promise(t)},v.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,t){O["[object "+t+"]"]=t.toLowerCase()}),n=v(i);var M={};v.Callbacks=function(e){e=typeof e=="string"?M[e]||_(e):v.extend({},e);var n,r,i,s,o,u,a=[],f=!e.once&&[],l=function(t){n=e.memory&&t,r=!0,u=s||0,s=0,o=a.length,i=!0;for(;a&&u<o;u++)if(a[u].apply(t[0],t[1])===!1&&e.stopOnFalse){n=!1;break}i=!1,a&&(f?f.length&&l(f.shift()):n?a=[]:c.disable())},c={add:function(){if(a){var t=a.length;(function r(t){v.each(t,function(t,n){var i=v.type(n);i==="function"?(!e.unique||!c.has(n))&&a.push(n):n&&n.length&&i!=="string"&&r(n)})})(arguments),i?o=a.length:n&&(s=t,l(n))}return this},remove:function(){return a&&v.each(arguments,function(e,t){var n;while((n=v.inArray(t,a,n))>-1)a.splice(n,1),i&&(n<=o&&o--,n<=u&&u--)}),this},has:function(e){return v.inArray(e,a)>-1},empty:function(){return a=[],this},disable:function(){return a=f=n=t,this},disabled:function(){return!a},lock:function(){return f=t,n||c.disable(),this},locked:function(){return!f},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],a&&(!r||f)&&(i?f.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},v.extend({Deferred:function(e){var t=[["resolve","done",v.Callbacks("once memory"),"resolved"],["reject","fail",v.Callbacks("once memory"),"rejected"],["notify","progress",v.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return v.Deferred(function(n){v.each(t,function(t,r){var s=r[0],o=e[t];i[r[1]](v.isFunction(o)?function(){var e=o.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===i?n:this,[e])}:n[s])}),e=null}).promise()},promise:function(e){return e!=null?v.extend(e,r):r}},i={};return r.pipe=r.then,v.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add,u&&o.add(function(){n=u},t[e^1][2].disable,t[2][2].lock),i[s[0]]=o.fire,i[s[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=l.call(arguments),r=n.length,i=r!==1||e&&v.isFunction(e.promise)?r:0,s=i===1?e:v.Deferred(),o=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?l.call(arguments):r,n===u?s.notifyWith(t,n):--i||s.resolveWith(t,n)}},u,a,f;if(r>1){u=new Array(r),a=new Array(r),f=new Array(r);for(;t<r;t++)n[t]&&v.isFunction(n[t].promise)?n[t].promise().done(o(t,f,n)).fail(s.reject).progress(o(t,a,u)):--i}return i||s.resolveWith(f,n),s.promise()}}),v.support=function(){var t,n,r,s,o,u,a,f,l,c,h,p=i.createElement("div");p.setAttribute("className","t"),p.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=p.getElementsByTagName("*"),r=p.getElementsByTagName("a")[0];if(!n||!r||!n.length)return{};s=i.createElement("select"),o=s.appendChild(i.createElement("option")),u=p.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:r.getAttribute("href")==="/a",opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:u.value==="on",optSelected:o.selected,getSetAttribute:p.className!=="t",enctype:!!i.createElement("form").enctype,html5Clone:i.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",boxModel:i.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},u.checked=!0,t.noCloneChecked=u.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!o.disabled;try{delete p.test}catch(d){t.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",h=function(){t.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick"),p.detachEvent("onclick",h)),u=i.createElement("input"),u.value="t",u.setAttribute("type","radio"),t.radioValue=u.value==="t",u.setAttribute("checked","checked"),u.setAttribute("name","t"),p.appendChild(u),a=i.createDocumentFragment(),a.appendChild(p.lastChild),t.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=u.checked,a.removeChild(u),a.appendChild(p);if(p.attachEvent)for(l in{submit:!0,change:!0,focusin:!0})f="on"+l,c=f in p,c||(p.setAttribute(f,"return;"),c=typeof p[f]=="function"),t[l+"Bubbles"]=c;return v(function(){var n,r,s,o,u="padding:0;margin:0;border:0;display:block;overflow:hidden;",a=i.getElementsByTagName("body")[0];if(!a)return;n=i.createElement("div"),n.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",a.insertBefore(n,a.firstChild),r=i.createElement("div"),n.appendChild(r),r.innerHTML="<table><tr><td></td><td>t</td></tr></table>",s=r.getElementsByTagName("td"),s[0].style.cssText="padding:0;margin:0;border:0;display:none",c=s[0].offsetHeight===0,s[0].style.display="",s[1].style.display="none",t.reliableHiddenOffsets=c&&s[0].offsetHeight===0,r.innerHTML="",r.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=r.offsetWidth===4,t.doesNotIncludeMarginInBodyOffset=a.offsetTop!==1,e.getComputedStyle&&(t.pixelPosition=(e.getComputedStyle(r,null)||{}).top!=="1%",t.boxSizingReliable=(e.getComputedStyle(r,null)||{width:"4px"}).width==="4px",o=i.createElement("div"),o.style.cssText=r.style.cssText=u,o.style.marginRight=o.style.width="0",r.style.width="1px",r.appendChild(o),t.reliableMarginRight=!parseFloat((e.getComputedStyle(o,null)||{}).marginRight)),typeof r.style.zoom!="undefined"&&(r.innerHTML="",r.style.cssText=u+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=r.offsetWidth===3,r.style.display="block",r.style.overflow="visible",r.innerHTML="<div></div>",r.firstChild.style.width="5px",t.shrinkWrapBlocks=r.offsetWidth!==3,n.style.zoom=1),a.removeChild(n),n=r=s=o=null}),a.removeChild(p),n=r=s=o=u=a=p=null,t}();var D=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;v.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(v.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?v.cache[e[v.expando]]:e[v.expando],!!e&&!B(e)},data:function(e,n,r,i){if(!v.acceptData(e))return;var s,o,u=v.expando,a=typeof n=="string",f=e.nodeType,l=f?v.cache:e,c=f?e[u]:e[u]&&u;if((!c||!l[c]||!i&&!l[c].data)&&a&&r===t)return;c||(f?e[u]=c=v.deletedIds.pop()||v.guid++:c=u),l[c]||(l[c]={},f||(l[c].toJSON=v.noop));if(typeof n=="object"||typeof n=="function")i?l[c]=v.extend(l[c],n):l[c].data=v.extend(l[c].data,n);return s=l[c],i||(s.data||(s.data={}),s=s.data),r!==t&&(s[v.camelCase(n)]=r),a?(o=s[n],o==null&&(o=s[v.camelCase(n)])):o=s,o},removeData:function(e,t,n){if(!v.acceptData(e))return;var r,i,s,o=e.nodeType,u=o?v.cache:e,a=o?e[v.expando]:v.expando;if(!u[a])return;if(t){r=n?u[a]:u[a].data;if(r){v.isArray(t)||(t in r?t=[t]:(t=v.camelCase(t),t in r?t=[t]:t=t.split(" ")));for(i=0,s=t.length;i<s;i++)delete r[t[i]];if(!(n?B:v.isEmptyObject)(r))return}}if(!n){delete u[a].data;if(!B(u[a]))return}o?v.cleanData([e],!0):v.support.deleteExpando||u!=u.window?delete u[a]:u[a]=null},_data:function(e,t,n){return v.data(e,t,n,!0)},acceptData:function(e){var t=e.nodeName&&v.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),v.fn.extend({data:function(e,n){var r,i,s,o,u,a=this[0],f=0,l=null;if(e===t){if(this.length){l=v.data(a);if(a.nodeType===1&&!v._data(a,"parsedAttrs")){s=a.attributes;for(u=s.length;f<u;f++)o=s[f].name,o.indexOf("data-")||(o=v.camelCase(o.substring(5)),H(a,o,l[o]));v._data(a,"parsedAttrs",!0)}}return l}return typeof e=="object"?this.each(function(){v.data(this,e)}):(r=e.split(".",2),r[1]=r[1]?"."+r[1]:"",i=r[1]+"!",v.access(this,function(n){if(n===t)return l=this.triggerHandler("getData"+i,[r[0]]),l===t&&a&&(l=v.data(a,e),l=H(a,e,l)),l===t&&r[1]?this.data(r[0]):l;r[1]=n,this.each(function(){var t=v(this);t.triggerHandler("setData"+i,r),v.data(this,e,n),t.triggerHandler("changeData"+i,r)})},null,n,arguments.length>1,null,!1))},removeData:function(e){return this.each(function(){v.removeData(this,e)})}}),v.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=v._data(e,t),n&&(!r||v.isArray(n)?r=v._data(e,t,v.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),r=n.length,i=n.shift(),s=v._queueHooks(e,t),o=function(){v.dequeue(e,t)};i==="inprogress"&&(i=n.shift(),r--),i&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return v._data(e,n)||v._data(e,n,{empty:v.Callbacks("once memory").add(function(){v.removeData(e,t+"queue",!0),v.removeData(e,n,!0)})})}}),v.fn.extend({queue:function(e,n){var r=2;return typeof e!="string"&&(n=e,e="fx",r--),arguments.length<r?v.queue(this[0],e):n===t?this:this.each(function(){var t=v.queue(this,e,n);v._queueHooks(this,e),e==="fx"&&t[0]!=="inprogress"&&v.dequeue(this,e)})},dequeue:function(e){return this.each(function(){v.dequeue(this,e)})},delay:function(e,t){return e=v.fx?v.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,s=v.Deferred(),o=this,u=this.length,a=function(){--i||s.resolveWith(o,[o])};typeof e!="string"&&(n=e,e=t),e=e||"fx";while(u--)r=v._data(o[u],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(a));return a(),s.promise(n)}});var j,F,I,q=/[\t\r\n]/g,R=/\r/g,U=/^(?:button|input)$/i,z=/^(?:button|input|object|select|textarea)$/i,W=/^a(?:rea|)$/i,X=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,V=v.support.getSetAttribute;v.fn.extend({attr:function(e,t){return v.access(this,v.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})},prop:function(e,t){return v.access(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return e=v.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,s,o,u;if(v.isFunction(e))return this.each(function(t){v(this).addClass(e.call(this,t,this.className))});if(e&&typeof e=="string"){t=e.split(y);for(n=0,r=this.length;n<r;n++){i=this[n];if(i.nodeType===1)if(!i.className&&t.length===1)i.className=e;else{s=" "+i.className+" ";for(o=0,u=t.length;o<u;o++)s.indexOf(" "+t[o]+" ")<0&&(s+=t[o]+" ");i.className=v.trim(s)}}}return this},removeClass:function(e){var n,r,i,s,o,u,a;if(v.isFunction(e))return this.each(function(t){v(this).removeClass(e.call(this,t,this.className))});if(e&&typeof e=="string"||e===t){n=(e||"").split(y);for(u=0,a=this.length;u<a;u++){i=this[u];if(i.nodeType===1&&i.className){r=(" "+i.className+" ").replace(q," ");for(s=0,o=n.length;s<o;s++)while(r.indexOf(" "+n[s]+" ")>=0)r=r.replace(" "+n[s]+" "," ");i.className=e?v.trim(r):""}}}return this},toggleClass:function(e,t){var n=typeof e,r=typeof t=="boolean";return v.isFunction(e)?this.each(function(n){v(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(n==="string"){var i,s=0,o=v(this),u=t,a=e.split(y);while(i=a[s++])u=r?u:!o.hasClass(i),o[u?"addClass":"removeClass"](i)}else if(n==="undefined"||n==="boolean")this.className&&v._data(this,"__className__",this.className),this.className=this.className||e===!1?"":v._data(this,"__className__")||""})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;n<r;n++)if(this[n].nodeType===1&&(" "+this[n].className+" ").replace(q," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,s=this[0];if(!arguments.length){if(s)return n=v.valHooks[s.type]||v.valHooks[s.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(s,"value"))!==t?r:(r=s.value,typeof r=="string"?r.replace(R,""):r==null?"":r);return}return i=v.isFunction(e),this.each(function(r){var s,o=v(this);if(this.nodeType!==1)return;i?s=e.call(this,r,o.val()):s=e,s==null?s="":typeof s=="number"?s+="":v.isArray(s)&&(s=v.map(s,function(e){return e==null?"":e+""})),n=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()];if(!n||!("set"in n)||n.set(this,s,"value")===t)this.value=s})}}),v.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s=e.type==="select-one"||i<0,o=s?null:[],u=s?i+1:r.length,a=i<0?u:s?i:0;for(;a<u;a++){n=r[a];if((n.selected||a===i)&&(v.support.optDisabled?!n.disabled:n.getAttribute("disabled")===null)&&(!n.parentNode.disabled||!v.nodeName(n.parentNode,"optgroup"))){t=v(n).val();if(s)return t;o.push(t)}}return o},set:function(e,t){var n=v.makeArray(t);return v(e).find("option").each(function(){this.selected=v.inArray(v(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{},attr:function(e,n,r,i){var s,o,u,a=e.nodeType;if(!e||a===3||a===8||a===2)return;if(i&&v.isFunction(v.fn[n]))return v(e)[n](r);if(typeof e.getAttribute=="undefined")return v.prop(e,n,r);u=a!==1||!v.isXMLDoc(e),u&&(n=n.toLowerCase(),o=v.attrHooks[n]||(X.test(n)?F:j));if(r!==t){if(r===null){v.removeAttr(e,n);return}return o&&"set"in o&&u&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r)}return o&&"get"in o&&u&&(s=o.get(e,n))!==null?s:(s=e.getAttribute(n),s===null?t:s)},removeAttr:function(e,t){var n,r,i,s,o=0;if(t&&e.nodeType===1){r=t.split(y);for(;o<r.length;o++)i=r[o],i&&(n=v.propFix[i]||i,s=X.test(i),s||v.attr(e,i,""),e.removeAttribute(V?i:n),s&&n in e&&(e[n]=!1))}},attrHooks:{type:{set:function(e,t){if(U.test(e.nodeName)&&e.parentNode)v.error("type property can't be changed");else if(!v.support.radioValue&&t==="radio"&&v.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}},value:{get:function(e,t){return j&&v.nodeName(e,"button")?j.get(e,t):t in e?e.value:null},set:function(e,t,n){if(j&&v.nodeName(e,"button"))return j.set(e,t,n);e.value=t}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,r){var i,s,o,u=e.nodeType;if(!e||u===3||u===8||u===2)return;return o=u!==1||!v.isXMLDoc(e),o&&(n=v.propFix[n]||n,s=v.propHooks[n]),r!==t?s&&"set"in s&&(i=s.set(e,r,n))!==t?i:e[n]=r:s&&"get"in s&&(i=s.get(e,n))!==null?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):z.test(e.nodeName)||W.test(e.nodeName)&&e.href?0:t}}}}),F={get:function(e,n){var r,i=v.prop(e,n);return i===!0||typeof i!="boolean"&&(r=e.getAttributeNode(n))&&r.nodeValue!==!1?n.toLowerCase():t},set:function(e,t,n){var r;return t===!1?v.removeAttr(e,n):(r=v.propFix[n]||n,r in e&&(e[r]=!0),e.setAttribute(n,n.toLowerCase())),n}},V||(I={name:!0,id:!0,coords:!0},j=v.valHooks.button={get:function(e,n){var r;return r=e.getAttributeNode(n),r&&(I[n]?r.value!=="":r.specified)?r.value:t},set:function(e,t,n){var r=e.getAttributeNode(n);return r||(r=i.createAttribute(n),e.setAttributeNode(r)),r.value=t+""}},v.each(["width","height"],function(e,t){v.attrHooks[t]=v.extend(v.attrHooks[t],{set:function(e,n){if(n==="")return e.setAttribute(t,"auto"),n}})}),v.attrHooks.contenteditable={get:j.get,set:function(e,t,n){t===""&&(t="false"),j.set(e,t,n)}}),v.support.hrefNormalized||v.each(["href","src","width","height"],function(e,n){v.attrHooks[n]=v.extend(v.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return r===null?t:r}})}),v.support.style||(v.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||t},set:function(e,t){return e.style.cssText=t+""}}),v.support.optSelected||(v.propHooks.selected=v.extend(v.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),v.support.enctype||(v.propFix.enctype="encoding"),v.support.checkOn||v.each(["radio","checkbox"],function(){v.valHooks[this]={get:function(e){return e.getAttribute("value")===null?"on":e.value}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]=v.extend(v.valHooks[this],{set:function(e,t){if(v.isArray(t))return e.checked=v.inArray(v(e).val(),t)>=0}})});var $=/^(?:textarea|input|select)$/i,J=/^([^\.]*|)(?:\.(.+)|)$/,K=/(?:^|\s)hover(\.\S+|)\b/,Q=/^key/,G=/^(?:mouse|contextmenu)|click/,Y=/^(?:focusinfocus|focusoutblur)$/,Z=function(e){return v.event.special.hover?e:e.replace(K,"mouseenter$1 mouseleave$1")};v.event={add:function(e,n,r,i,s){var o,u,a,f,l,c,h,p,d,m,g;if(e.nodeType===3||e.nodeType===8||!n||!r||!(o=v._data(e)))return;r.handler&&(d=r,r=d.handler,s=d.selector),r.guid||(r.guid=v.guid++),a=o.events,a||(o.events=a={}),u=o.handle,u||(o.handle=u=function(e){return typeof v=="undefined"||!!e&&v.event.triggered===e.type?t:v.event.dispatch.apply(u.elem,arguments)},u.elem=e),n=v.trim(Z(n)).split(" ");for(f=0;f<n.length;f++){l=J.exec(n[f])||[],c=l[1],h=(l[2]||"").split(".").sort(),g=v.event.special[c]||{},c=(s?g.delegateType:g.bindType)||c,g=v.event.special[c]||{},p=v.extend({type:c,origType:l[1],data:i,handler:r,guid:r.guid,selector:s,needsContext:s&&v.expr.match.needsContext.test(s),namespace:h.join(".")},d),m=a[c];if(!m){m=a[c]=[],m.delegateCount=0;if(!g.setup||g.setup.call(e,i,h,u)===!1)e.addEventListener?e.addEventListener(c,u,!1):e.attachEvent&&e.attachEvent("on"+c,u)}g.add&&(g.add.call(e,p),p.handler.guid||(p.handler.guid=r.guid)),s?m.splice(m.delegateCount++,0,p):m.push(p),v.event.global[c]=!0}e=null},global:{},remove:function(e,t,n,r,i){var s,o,u,a,f,l,c,h,p,d,m,g=v.hasData(e)&&v._data(e);if(!g||!(h=g.events))return;t=v.trim(Z(t||"")).split(" ");for(s=0;s<t.length;s++){o=J.exec(t[s])||[],u=a=o[1],f=o[2];if(!u){for(u in h)v.event.remove(e,u+t[s],n,r,!0);continue}p=v.event.special[u]||{},u=(r?p.delegateType:p.bindType)||u,d=h[u]||[],l=d.length,f=f?new RegExp("(^|\\.)"+f.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null;for(c=0;c<d.length;c++)m=d[c],(i||a===m.origType)&&(!n||n.guid===m.guid)&&(!f||f.test(m.namespace))&&(!r||r===m.selector||r==="**"&&m.selector)&&(d.splice(c--,1),m.selector&&d.delegateCount--,p.remove&&p.remove.call(e,m));d.length===0&&l!==d.length&&((!p.teardown||p.teardown.call(e,f,g.handle)===!1)&&v.removeEvent(e,u,g.handle),delete h[u])}v.isEmptyObject(h)&&(delete g.handle,v.removeData(e,"events",!0))},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(n,r,s,o){if(!s||s.nodeType!==3&&s.nodeType!==8){var u,a,f,l,c,h,p,d,m,g,y=n.type||n,b=[];if(Y.test(y+v.event.triggered))return;y.indexOf("!")>=0&&(y=y.slice(0,-1),a=!0),y.indexOf(".")>=0&&(b=y.split("."),y=b.shift(),b.sort());if((!s||v.event.customEvent[y])&&!v.event.global[y])return;n=typeof n=="object"?n[v.expando]?n:new v.Event(y,n):new v.Event(y),n.type=y,n.isTrigger=!0,n.exclusive=a,n.namespace=b.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,h=y.indexOf(":")<0?"on"+y:"";if(!s){u=v.cache;for(f in u)u[f].events&&u[f].events[y]&&v.event.trigger(n,r,u[f].handle.elem,!0);return}n.result=t,n.target||(n.target=s),r=r!=null?v.makeArray(r):[],r.unshift(n),p=v.event.special[y]||{};if(p.trigger&&p.trigger.apply(s,r)===!1)return;m=[[s,p.bindType||y]];if(!o&&!p.noBubble&&!v.isWindow(s)){g=p.delegateType||y,l=Y.test(g+y)?s:s.parentNode;for(c=s;l;l=l.parentNode)m.push([l,g]),c=l;c===(s.ownerDocument||i)&&m.push([c.defaultView||c.parentWindow||e,g])}for(f=0;f<m.length&&!n.isPropagationStopped();f++)l=m[f][0],n.type=m[f][1],d=(v._data(l,"events")||{})[n.type]&&v._data(l,"handle"),d&&d.apply(l,r),d=h&&l[h],d&&v.acceptData(l)&&d.apply&&d.apply(l,r)===!1&&n.preventDefault();return n.type=y,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(s.ownerDocument,r)===!1)&&(y!=="click"||!v.nodeName(s,"a"))&&v.acceptData(s)&&h&&s[y]&&(y!=="focus"&&y!=="blur"||n.target.offsetWidth!==0)&&!v.isWindow(s)&&(c=s[h],c&&(s[h]=null),v.event.triggered=y,s[y](),v.event.triggered=t,c&&(s[h]=c)),n.result}return},dispatch:function(n){n=v.event.fix(n||e.event);var r,i,s,o,u,a,f,c,h,p,d=(v._data(this,"events")||{})[n.type]||[],m=d.delegateCount,g=l.call(arguments),y=!n.exclusive&&!n.namespace,b=v.event.special[n.type]||{},w=[];g[0]=n,n.delegateTarget=this;if(b.preDispatch&&b.preDispatch.call(this,n)===!1)return;if(m&&(!n.button||n.type!=="click"))for(s=n.target;s!=this;s=s.parentNode||this)if(s.disabled!==!0||n.type!=="click"){u={},f=[];for(r=0;r<m;r++)c=d[r],h=c.selector,u[h]===t&&(u[h]=c.needsContext?v(h,this).index(s)>=0:v.find(h,this,null,[s]).length),u[h]&&f.push(c);f.length&&w.push({elem:s,matches:f})}d.length>m&&w.push({elem:this,matches:d.slice(m)});for(r=0;r<w.length&&!n.isPropagationStopped();r++){a=w[r],n.currentTarget=a.elem;for(i=0;i<a.matches.length&&!n.isImmediatePropagationStopped();i++){c=a.matches[i];if(y||!n.namespace&&!c.namespace||n.namespace_re&&n.namespace_re.test(c.namespace))n.data=c.data,n.handleObj=c,o=((v.event.special[c.origType]||{}).handle||c.handler).apply(a.elem,g),o!==t&&(n.result=o,o===!1&&(n.preventDefault(),n.stopPropagation()))}}return b.postDispatch&&b.postDispatch.call(this,n),n.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return e.which==null&&(e.which=t.charCode!=null?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,s,o,u=n.button,a=n.fromElement;return e.pageX==null&&n.clientX!=null&&(r=e.target.ownerDocument||i,s=r.documentElement,o=r.body,e.pageX=n.clientX+(s&&s.scrollLeft||o&&o.scrollLeft||0)-(s&&s.clientLeft||o&&o.clientLeft||0),e.pageY=n.clientY+(s&&s.scrollTop||o&&o.scrollTop||0)-(s&&s.clientTop||o&&o.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?n.toElement:a),!e.which&&u!==t&&(e.which=u&1?1:u&2?3:u&4?2:0),e}},fix:function(e){if(e[v.expando])return e;var t,n,r=e,s=v.event.fixHooks[e.type]||{},o=s.props?this.props.concat(s.props):this.props;e=v.Event(r);for(t=o.length;t;)n=o[--t],e[n]=r[n];return e.target||(e.target=r.srcElement||i),e.target.nodeType===3&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,r):e},special:{load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(e,t,n){v.isWindow(this)&&(this.onbeforeunload=n)},teardown:function(e,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}},simulate:function(e,t,n,r){var i=v.extend(new v.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?v.event.trigger(i,null,t):v.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},v.event.handle=v.event.dispatch,v.removeEvent=i.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]=="undefined"&&(e[r]=null),e.detachEvent(r,n))},v.Event=function(e,t){if(!(this instanceof v.Event))return new v.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?tt:et):this.type=e,t&&v.extend(this,t),this.timeStamp=e&&e.timeStamp||v.now(),this[v.expando]=!0},v.Event.prototype={preventDefault:function(){this.isDefaultPrevented=tt;var e=this.originalEvent;if(!e)return;e.preventDefault?e.preventDefault():e.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=tt;var e=this.originalEvent;if(!e)return;e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=tt,this.stopPropagation()},isDefaultPrevented:et,isPropagationStopped:et,isImmediatePropagationStopped:et},v.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){v.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,s=e.handleObj,o=s.selector;if(!i||i!==r&&!v.contains(r,i))e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t;return n}}}),v.support.submitBubbles||(v.event.special.submit={setup:function(){if(v.nodeName(this,"form"))return!1;v.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=v.nodeName(n,"input")||v.nodeName(n,"button")?n.form:t;r&&!v._data(r,"_submit_attached")&&(v.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),v._data(r,"_submit_attached",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&v.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(v.nodeName(this,"form"))return!1;v.event.remove(this,"._submit")}}),v.support.changeBubbles||(v.event.special.change={setup:function(){if($.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")v.event.add(this,"propertychange._change",function(e){e.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),v.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),v.event.simulate("change",this,e,!0)});return!1}v.event.add(this,"beforeactivate._change",function(e){var t=e.target;$.test(t.nodeName)&&!v._data(t,"_change_attached")&&(v.event.add(t,"change._change",function(e){this.parentNode&&!e.isSimulated&&!e.isTrigger&&v.event.simulate("change",this.parentNode,e,!0)}),v._data(t,"_change_attached",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return e.handleObj.handler.apply(this,arguments)},teardown:function(){return v.event.remove(this,"._change"),!$.test(this.nodeName)}}),v.support.focusinBubbles||v.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){v.event.simulate(t,e.target,v.event.fix(e),!0)};v.event.special[t]={setup:function(){n++===0&&i.addEventListener(e,r,!0)},teardown:function(){--n===0&&i.removeEventListener(e,r,!0)}}}),v.fn.extend({on:function(e,n,r,i,s){var o,u;if(typeof e=="object"){typeof n!="string"&&(r=r||n,n=t);for(u in e)this.on(u,n,r,e[u],s);return this}r==null&&i==null?(i=n,r=n=t):i==null&&(typeof n=="string"?(i=r,r=t):(i=r,r=n,n=t));if(i===!1)i=et;else if(!i)return this;return s===1&&(o=i,i=function(e){return v().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=v.guid++)),this.each(function(){v.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,s;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,v(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if(typeof e=="object"){for(s in e)this.off(s,n,e[s]);return this}if(n===!1||typeof n=="function")r=n,n=t;return r===!1&&(r=et),this.each(function(){v.event.remove(this,e,r,n)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},live:function(e,t,n){return v(this.context).on(e,this.selector,t,n),this},die:function(e,t){return v(this.context).off(e,this.selector||"**",t),this},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)},trigger:function(e,t){return this.each(function(){v.event.trigger(e,t,this)})},triggerHandler:function(e,t){if(this[0])return v.event.trigger(e,t,this[0],!0)},toggle:function(e){var t=arguments,n=e.guid||v.guid++,r=0,i=function(n){var i=(v._data(this,"lastToggle"+e.guid)||0)%r;return v._data(this,"lastToggle"+e.guid,i+1),n.preventDefault(),t[i].apply(this,arguments)||!1};i.guid=n;while(r<t.length)t[r++].guid=n;return this.click(i)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),v.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){v.fn[t]=function(e,n){return n==null&&(n=e,e=null),arguments.length>0?this.on(t,null,e,n):this.trigger(t)},Q.test(t)&&(v.event.fixHooks[t]=v.event.keyHooks),G.test(t)&&(v.event.fixHooks[t]=v.event.mouseHooks)}),function(e,t){function nt(e,t,n,r){n=n||[],t=t||g;var i,s,a,f,l=t.nodeType;if(!e||typeof e!="string")return n;if(l!==1&&l!==9)return[];a=o(t);if(!a&&!r)if(i=R.exec(e))if(f=i[1]){if(l===9){s=t.getElementById(f);if(!s||!s.parentNode)return n;if(s.id===f)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(f))&&u(t,s)&&s.id===f)return n.push(s),n}else{if(i[2])return S.apply(n,x.call(t.getElementsByTagName(e),0)),n;if((f=i[3])&&Z&&t.getElementsByClassName)return S.apply(n,x.call(t.getElementsByClassName(f),0)),n}return vt(e.replace(j,"$1"),t,n,r,a)}function rt(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function it(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function st(e){return N(function(t){return t=+t,N(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function ot(e,t,n){if(e===t)return n;var r=e.nextSibling;while(r){if(r===t)return-1;r=r.nextSibling}return 1}function ut(e,t){var n,r,s,o,u,a,f,l=L[d][e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=i.preFilter;while(u){if(!n||(r=F.exec(u)))r&&(u=u.slice(r[0].length)||u),a.push(s=[]);n=!1;if(r=I.exec(u))s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=r[0].replace(j," ");for(o in i.filter)(r=J[o].exec(u))&&(!f[o]||(r=f[o](r)))&&(s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=o,n.matches=r);if(!n)break}return t?u.length:u?nt.error(e):L(e,a).slice(0)}function at(e,t,r){var i=t.dir,s=r&&t.dir==="parentNode",o=w++;return t.first?function(t,n,r){while(t=t[i])if(s||t.nodeType===1)return e(t,n,r)}:function(t,r,u){if(!u){var a,f=b+" "+o+" ",l=f+n;while(t=t[i])if(s||t.nodeType===1){if((a=t[d])===l)return t.sizset;if(typeof a=="string"&&a.indexOf(f)===0){if(t.sizset)return t}else{t[d]=l;if(e(t,r,u))return t.sizset=!0,t;t.sizset=!1}}}else while(t=t[i])if(s||t.nodeType===1)if(e(t,r,u))return t}}function ft(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function lt(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u<a;u++)if(s=e[u])if(!n||n(s,r,i))o.push(s),f&&t.push(u);return o}function ct(e,t,n,r,i,s){return r&&!r[d]&&(r=ct(r)),i&&!i[d]&&(i=ct(i,s)),N(function(s,o,u,a){var f,l,c,h=[],p=[],d=o.length,v=s||dt(t||"*",u.nodeType?[u]:u,[]),m=e&&(s||!t)?lt(v,h,e,u,a):v,g=n?i||(s?e:d||r)?[]:o:m;n&&n(m,g,u,a);if(r){f=lt(g,p),r(f,[],u,a),l=f.length;while(l--)if(c=f[l])g[p[l]]=!(m[p[l]]=c)}if(s){if(i||e){if(i){f=[],l=g.length;while(l--)(c=g[l])&&f.push(m[l]=c);i(null,g=[],f,a)}l=g.length;while(l--)(c=g[l])&&(f=i?T.call(s,c):h[l])>-1&&(s[f]=!(o[f]=c))}}else g=lt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):S.apply(o,g)})}function ht(e){var t,n,r,s=e.length,o=i.relative[e[0].type],u=o||i.relative[" "],a=o?1:0,f=at(function(e){return e===t},u,!0),l=at(function(e){return T.call(t,e)>-1},u,!0),h=[function(e,n,r){return!o&&(r||n!==c)||((t=n).nodeType?f(e,n,r):l(e,n,r))}];for(;a<s;a++)if(n=i.relative[e[a].type])h=[at(ft(h),n)];else{n=i.filter[e[a].type].apply(null,e[a].matches);if(n[d]){r=++a;for(;r<s;r++)if(i.relative[e[r].type])break;return ct(a>1&&ft(h),a>1&&e.slice(0,a-1).join("").replace(j,"$1"),n,a<r&&ht(e.slice(a,r)),r<s&&ht(e=e.slice(r)),r<s&&e.join(""))}h.push(n)}return ft(h)}function pt(e,t){var r=t.length>0,s=e.length>0,o=function(u,a,f,l,h){var p,d,v,m=[],y=0,w="0",x=u&&[],T=h!=null,N=c,C=u||s&&i.find.TAG("*",h&&a.parentNode||a),k=b+=N==null?1:Math.E;T&&(c=a!==g&&a,n=o.el);for(;(p=C[w])!=null;w++){if(s&&p){for(d=0;v=e[d];d++)if(v(p,a,f)){l.push(p);break}T&&(b=k,n=++o.el)}r&&((p=!v&&p)&&y--,u&&x.push(p))}y+=w;if(r&&w!==y){for(d=0;v=t[d];d++)v(x,m,a,f);if(u){if(y>0)while(w--)!x[w]&&!m[w]&&(m[w]=E.call(l));m=lt(m)}S.apply(l,m),T&&!u&&m.length>0&&y+t.length>1&&nt.uniqueSort(l)}return T&&(b=k,c=N),x};return o.el=0,r?N(o):o}function dt(e,t,n){var r=0,i=t.length;for(;r<i;r++)nt(e,t[r],n);return n}function vt(e,t,n,r,s){var o,u,f,l,c,h=ut(e),p=h.length;if(!r&&h.length===1){u=h[0]=h[0].slice(0);if(u.length>2&&(f=u[0]).type==="ID"&&t.nodeType===9&&!s&&i.relative[u[1].type]){t=i.find.ID(f.matches[0].replace($,""),t,s)[0];if(!t)return n;e=e.slice(u.shift().length)}for(o=J.POS.test(e)?-1:u.length-1;o>=0;o--){f=u[o];if(i.relative[l=f.type])break;if(c=i.find[l])if(r=c(f.matches[0].replace($,""),z.test(u[0].type)&&t.parentNode||t,s)){u.splice(o,1),e=r.length&&u.join("");if(!e)return S.apply(n,x.call(r,0)),n;break}}}return a(e,h)(r,t,s,n,z.test(e)),n}function mt(){}var n,r,i,s,o,u,a,f,l,c,h=!0,p="undefined",d=("sizcache"+Math.random()).replace(".",""),m=String,g=e.document,y=g.documentElement,b=0,w=0,E=[].pop,S=[].push,x=[].slice,T=[].indexOf||function(e){var t=0,n=this.length;for(;t<n;t++)if(this[t]===e)return t;return-1},N=function(e,t){return e[d]=t==null||t,e},C=function(){var e={},t=[];return N(function(n,r){return t.push(n)>i.cacheLength&&delete e[t.shift()],e[n+" "]=r},e)},k=C(),L=C(),A=C(),O="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",_=M.replace("w","w#"),D="([*^$|!~]?=)",P="\\["+O+"*("+M+")"+O+"*(?:"+D+O+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+_+")|)|)"+O+"*\\]",H=":("+M+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+P+")|[^:]|\\\\.)*|.*))\\)|)",B=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)",j=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),F=new RegExp("^"+O+"*,"+O+"*"),I=new RegExp("^"+O+"*([\\x20\\t\\r\\n\\f>+~])"+O+"*"),q=new RegExp(H),R=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,U=/^:not/,z=/[\x20\t\r\n\f]*[+~]/,W=/:not\($/,X=/h\d/i,V=/input|select|textarea|button/i,$=/\\(?!\\)/g,J={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),NAME:new RegExp("^\\[name=['\"]?("+M+")['\"]?\\]"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+H),POS:new RegExp(B,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),needsContext:new RegExp("^"+O+"*[>+~]|"+B,"i")},K=function(e){var t=g.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}},Q=K(function(e){return e.appendChild(g.createComment("")),!e.getElementsByTagName("*").length}),G=K(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!==p&&e.firstChild.getAttribute("href")==="#"}),Y=K(function(e){e.innerHTML="<select></select>";var t=typeof e.lastChild.getAttribute("multiple");return t!=="boolean"&&t!=="string"}),Z=K(function(e){return e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",!e.getElementsByClassName||!e.getElementsByClassName("e").length?!1:(e.lastChild.className="e",e.getElementsByClassName("e").length===2)}),et=K(function(e){e.id=d+0,e.innerHTML="<a name='"+d+"'></a><div name='"+d+"'></div>",y.insertBefore(e,y.firstChild);var t=g.getElementsByName&&g.getElementsByName(d).length===2+g.getElementsByName(d+0).length;return r=!g.getElementById(d),y.removeChild(e),t});try{x.call(y.childNodes,0)[0].nodeType}catch(tt){x=function(e){var t,n=[];for(;t=this[e];e++)n.push(t);return n}}nt.matches=function(e,t){return nt(e,null,null,t)},nt.matchesSelector=function(e,t){return nt(t,null,null,[e]).length>0},s=nt.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(i===1||i===9||i===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(i===3||i===4)return e.nodeValue}else for(;t=e[r];r++)n+=s(t);return n},o=nt.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1},u=nt.contains=y.contains?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!(r&&r.nodeType===1&&n.contains&&n.contains(r))}:y.compareDocumentPosition?function(e,t){return t&&!!(e.compareDocumentPosition(t)&16)}:function(e,t){while(t=t.parentNode)if(t===e)return!0;return!1},nt.attr=function(e,t){var n,r=o(e);return r||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):r||Y?e.getAttribute(t):(n=e.getAttributeNode(t),n?typeof e[t]=="boolean"?e[t]?t:null:n.specified?n.value:null:null)},i=nt.selectors={cacheLength:50,createPseudo:N,match:J,attrHandle:G?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:r?function(e,t,n){if(typeof t.getElementById!==p&&!n){var r=t.getElementById(e);return r&&r.parentNode?[r]:[]}}:function(e,n,r){if(typeof n.getElementById!==p&&!r){var i=n.getElementById(e);return i?i.id===e||typeof i.getAttributeNode!==p&&i.getAttributeNode("id").value===e?[i]:t:[]}},TAG:Q?function(e,t){if(typeof t.getElementsByTagName!==p)return t.getElementsByTagName(e)}:function(e,t){var n=t.getElementsByTagName(e);if(e==="*"){var r,i=[],s=0;for(;r=n[s];s++)r.nodeType===1&&i.push(r);return i}return n},NAME:et&&function(e,t){if(typeof t.getElementsByName!==p)return t.getElementsByName(name)},CLASS:Z&&function(e,t,n){if(typeof t.getElementsByClassName!==p&&!n)return t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace($,""),e[3]=(e[4]||e[5]||"").replace($,""),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1]==="nth"?(e[2]||nt.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*(e[2]==="even"||e[2]==="odd")),e[4]=+(e[6]+e[7]||e[2]==="odd")):e[2]&&nt.error(e[0]),e},PSEUDO:function(e){var t,n;if(J.CHILD.test(e[0]))return null;if(e[3])e[2]=e[3];else if(t=e[4])q.test(t)&&(n=ut(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(t=t.slice(0,n),e[0]=e[0].slice(0,n)),e[2]=t;return e.slice(0,3)}},filter:{ID:r?function(e){return e=e.replace($,""),function(t){return t.getAttribute("id")===e}}:function(e){return e=e.replace($,""),function(t){var n=typeof t.getAttributeNode!==p&&t.getAttributeNode("id");return n&&n.value===e}},TAG:function(e){return e==="*"?function(){return!0}:(e=e.replace($,"").toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[d][e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&k(e,function(e){return t.test(e.className||typeof e.getAttribute!==p&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r,i){var s=nt.attr(r,e);return s==null?t==="!=":t?(s+="",t==="="?s===n:t==="!="?s!==n:t==="^="?n&&s.indexOf(n)===0:t==="*="?n&&s.indexOf(n)>-1:t==="$="?n&&s.substr(s.length-n.length)===n:t==="~="?(" "+s+" ").indexOf(n)>-1:t==="|="?s===n||s.substr(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r){return e==="nth"?function(e){var t,i,s=e.parentNode;if(n===1&&r===0)return!0;if(s){i=0;for(t=s.firstChild;t;t=t.nextSibling)if(t.nodeType===1){i++;if(e===t)break}}return i-=r,i===n||i%n===0&&i/n>=0}:function(t){var n=t;switch(e){case"only":case"first":while(n=n.previousSibling)if(n.nodeType===1)return!1;if(e==="first")return!0;n=t;case"last":while(n=n.nextSibling)if(n.nodeType===1)return!1;return!0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||nt.error("unsupported pseudo: "+e);return r[d]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?N(function(e,n){var i,s=r(e,t),o=s.length;while(o--)i=T.call(e,s[o]),e[i]=!(n[i]=s[o])}):function(e){return r(e,0,n)}):r}},pseudos:{not:N(function(e){var t=[],n=[],r=a(e.replace(j,"$1"));return r[d]?N(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)if(s=o[u])e[u]=!(t[u]=s)}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:N(function(e){return function(t){return nt(e,t).length>0}}),contains:N(function(e){return function(t){return(t.textContent||t.innerText||s(t)).indexOf(e)>-1}}),enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!i.pseudos.empty(e)},empty:function(e){var t;e=e.firstChild;while(e){if(e.nodeName>"@"||(t=e.nodeType)===3||t===4)return!1;e=e.nextSibling}return!0},header:function(e){return X.test(e.nodeName)},text:function(e){var t,n;return e.nodeName.toLowerCase()==="input"&&(t=e.type)==="text"&&((n=e.getAttribute("type"))==null||n.toLowerCase()===t)},radio:rt("radio"),checkbox:rt("checkbox"),file:rt("file"),password:rt("password"),image:rt("image"),submit:it("submit"),reset:it("reset"),button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},input:function(e){return V.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},active:function(e){return e===e.ownerDocument.activeElement},first:st(function(){return[0]}),last:st(function(e,t){return[t-1]}),eq:st(function(e,t,n){return[n<0?n+t:n]}),even:st(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:st(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:st(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:st(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},f=y.compareDocumentPosition?function(e,t){return e===t?(l=!0,0):(!e.compareDocumentPosition||!t.compareDocumentPosition?e.compareDocumentPosition:e.compareDocumentPosition(t)&4)?-1:1}:function(e,t){if(e===t)return l=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var n,r,i=[],s=[],o=e.parentNode,u=t.parentNode,a=o;if(o===u)return ot(e,t);if(!o)return-1;if(!u)return 1;while(a)i.unshift(a),a=a.parentNode;a=u;while(a)s.unshift(a),a=a.parentNode;n=i.length,r=s.length;for(var f=0;f<n&&f<r;f++)if(i[f]!==s[f])return ot(i[f],s[f]);return f===n?ot(e,s[f],-1):ot(i[f],t,1)},[0,0].sort(f),h=!l,nt.uniqueSort=function(e){var t,n=[],r=1,i=0;l=h,e.sort(f);if(l){for(;t=e[r];r++)t===e[r-1]&&(i=n.push(r));while(i--)e.splice(n[i],1)}return e},nt.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},a=nt.compile=function(e,t){var n,r=[],i=[],s=A[d][e+" "];if(!s){t||(t=ut(e)),n=t.length;while(n--)s=ht(t[n]),s[d]?r.push(s):i.push(s);s=A(e,pt(i,r))}return s},g.querySelectorAll&&function(){var e,t=vt,n=/'|\\/g,r=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,i=[":focus"],s=[":active"],u=y.matchesSelector||y.mozMatchesSelector||y.webkitMatchesSelector||y.oMatchesSelector||y.msMatchesSelector;K(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||i.push("\\["+O+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||i.push(":checked")}),K(function(e){e.innerHTML="<p test=''></p>",e.querySelectorAll("[test^='']").length&&i.push("[*^$]="+O+"*(?:\"\"|'')"),e.innerHTML="<input type='hidden'/>",e.querySelectorAll(":enabled").length||i.push(":enabled",":disabled")}),i=new RegExp(i.join("|")),vt=function(e,r,s,o,u){if(!o&&!u&&!i.test(e)){var a,f,l=!0,c=d,h=r,p=r.nodeType===9&&e;if(r.nodeType===1&&r.nodeName.toLowerCase()!=="object"){a=ut(e),(l=r.getAttribute("id"))?c=l.replace(n,"\\$&"):r.setAttribute("id",c),c="[id='"+c+"'] ",f=a.length;while(f--)a[f]=c+a[f].join("");h=z.test(e)&&r.parentNode||r,p=a.join(",")}if(p)try{return S.apply(s,x.call(h.querySelectorAll(p),0)),s}catch(v){}finally{l||r.removeAttribute("id")}}return t(e,r,s,o,u)},u&&(K(function(t){e=u.call(t,"div");try{u.call(t,"[test!='']:sizzle"),s.push("!=",H)}catch(n){}}),s=new RegExp(s.join("|")),nt.matchesSelector=function(t,n){n=n.replace(r,"='$1']");if(!o(t)&&!s.test(n)&&!i.test(n))try{var a=u.call(t,n);if(a||e||t.document&&t.document.nodeType!==11)return a}catch(f){}return nt(n,null,null,[t]).length>0})}(),i.pseudos.nth=i.pseudos.eq,i.filters=mt.prototype=i.pseudos,i.setFilters=new mt,nt.attr=v.attr,v.find=nt,v.expr=nt.selectors,v.expr[":"]=v.expr.pseudos,v.unique=nt.uniqueSort,v.text=nt.getText,v.isXMLDoc=nt.isXML,v.contains=nt.contains}(e);var nt=/Until$/,rt=/^(?:parents|prev(?:Until|All))/,it=/^.[^:#\[\.,]*$/,st=v.expr.match.needsContext,ot={children:!0,contents:!0,next:!0,prev:!0};v.fn.extend({find:function(e){var t,n,r,i,s,o,u=this;if(typeof e!="string")return v(e).filter(function(){for(t=0,n=u.length;t<n;t++)if(v.contains(u[t],this))return!0});o=this.pushStack("","find",e);for(t=0,n=this.length;t<n;t++){r=o.length,v.find(e,this[t],o);if(t>0)for(i=r;i<o.length;i++)for(s=0;s<r;s++)if(o[s]===o[i]){o.splice(i--,1);break}}return o},has:function(e){var t,n=v(e,this),r=n.length;return this.filter(function(){for(t=0;t<r;t++)if(v.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e,!1),"not",e)},filter:function(e){return this.pushStack(ft(this,e,!0),"filter",e)},is:function(e){return!!e&&(typeof e=="string"?st.test(e)?v(e,this.context).index(this[0])>=0:v.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,s=[],o=st.test(e)||typeof e!="string"?v(e,t||this.context):0;for(;r<i;r++){n=this[r];while(n&&n.ownerDocument&&n!==t&&n.nodeType!==11){if(o?o.index(n)>-1:v.find.matchesSelector(n,e)){s.push(n);break}n=n.parentNode}}return s=s.length>1?v.unique(s):s,this.pushStack(s,"closest",e)},index:function(e){return e?typeof e=="string"?v.inArray(this[0],v(e)):v.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n=typeof e=="string"?v(e,t):v.makeArray(e&&e.nodeType?[e]:e),r=v.merge(this.get(),n);return this.pushStack(ut(n[0])||ut(r[0])?r:v.unique(r))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),v.fn.andSelf=v.fn.addBack,v.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return v.dir(e,"parentNode")},parentsUntil:function(e,t,n){return v.dir(e,"parentNode",n)},next:function(e){return at(e,"nextSibling")},prev:function(e){return at(e,"previousSibling")},nextAll:function(e){return v.dir(e,"nextSibling")},prevAll:function(e){return v.dir(e,"previousSibling")},nextUntil:function(e,t,n){return v.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return v.dir(e,"previousSibling",n)},siblings:function(e){return v.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return v.sibling(e.firstChild)},contents:function(e){return v.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:v.merge([],e.childNodes)}},function(e,t){v.fn[e]=function(n,r){var i=v.map(this,t,n);return nt.test(e)||(r=n),r&&typeof r=="string"&&(i=v.filter(r,i)),i=this.length>1&&!ot[e]?v.unique(i):i,this.length>1&&rt.test(e)&&(i=i.reverse()),this.pushStack(i,e,l.call(arguments).join(","))}}),v.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),t.length===1?v.find.matchesSelector(t[0],e)?[t[0]]:[]:v.find.matches(e,t)},dir:function(e,n,r){var i=[],s=e[n];while(s&&s.nodeType!==9&&(r===t||s.nodeType!==1||!v(s).is(r)))s.nodeType===1&&i.push(s),s=s[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}});var ct="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ht=/ jQuery\d+="(?:null|\d+)"/g,pt=/^\s+/,dt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,vt=/<([\w:]+)/,mt=/<tbody/i,gt=/<|&#?\w+;/,yt=/<(?:script|style|link)/i,bt=/<(?:script|object|embed|option|style)/i,wt=new RegExp("<(?:"+ct+")[\\s/>]","i"),Et=/^(?:checkbox|radio)$/,St=/checked\s*(?:[^=]|=\s*.checked.)/i,xt=/\/(java|ecma)script/i,Tt=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,Nt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},Ct=lt(i),kt=Ct.appendChild(i.createElement("div"));Nt.optgroup=Nt.option,Nt.tbody=Nt.tfoot=Nt.colgroup=Nt.caption=Nt.thead,Nt.th=Nt.td,v.support.htmlSerialize||(Nt._default=[1,"X<div>","</div>"]),v.fn.extend({text:function(e){return v.access(this,function(e){return e===t?v.text(this):this.empty().append((this[0]&&this[0].ownerDocument||i).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(v.isFunction(e))return this.each(function(t){v(this).wrapAll(e.call(this,t))});if(this[0]){var t=v(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return v.isFunction(e)?this.each(function(t){v(this).wrapInner(e.call(this,t))}):this.each(function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v.isFunction(e);return this.each(function(n){v(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){v.nodeName(this,"body")||v(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(e,this.firstChild)})},before:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(e,this),"before",this.selector)}},after:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(this,e),"after",this.selector)}},remove:function(e,t){var n,r=0;for(;(n=this[r])!=null;r++)if(!e||v.filter(e,[n]).length)!t&&n.nodeType===1&&(v.cleanData(n.getElementsByTagName("*")),v.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n);return this},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){e.nodeType===1&&v.cleanData(e.getElementsByTagName("*"));while(e.firstChild)e.removeChild(e.firstChild)}return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return v.clone(this,e,t)})},html:function(e){return v.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return n.nodeType===1?n.innerHTML.replace(ht,""):t;if(typeof e=="string"&&!yt.test(e)&&(v.support.htmlSerialize||!wt.test(e))&&(v.support.leadingWhitespace||!pt.test(e))&&!Nt[(vt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(dt,"<$1></$2>");try{for(;r<i;r++)n=this[r]||{},n.nodeType===1&&(v.cleanData(n.getElementsByTagName("*")),n.innerHTML=e);n=0}catch(s){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){return ut(this[0])?this.length?this.pushStack(v(v.isFunction(e)?e():e),"replaceWith",e):this:v.isFunction(e)?this.each(function(t){var n=v(this),r=n.html();n.replaceWith(e.call(this,t,r))}):(typeof e!="string"&&(e=v(e).detach()),this.each(function(){var t=this.nextSibling,n=this.parentNode;v(this).remove(),t?v(t).before(e):v(n).append(e)}))},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){e=[].concat.apply([],e);var i,s,o,u,a=0,f=e[0],l=[],c=this.length;if(!v.support.checkClone&&c>1&&typeof f=="string"&&St.test(f))return this.each(function(){v(this).domManip(e,n,r)});if(v.isFunction(f))return this.each(function(i){var s=v(this);e[0]=f.call(this,i,n?s.html():t),s.domManip(e,n,r)});if(this[0]){i=v.buildFragment(e,this,l),o=i.fragment,s=o.firstChild,o.childNodes.length===1&&(o=s);if(s){n=n&&v.nodeName(s,"tr");for(u=i.cacheable||c-1;a<c;a++)r.call(n&&v.nodeName(this[a],"table")?Lt(this[a],"tbody"):this[a],a===u?o:v.clone(o,!0,!0))}o=s=null,l.length&&v.each(l,function(e,t){t.src?v.ajax?v.ajax({url:t.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):v.error("no ajax"):v.globalEval((t.text||t.textContent||t.innerHTML||"").replace(Tt,"")),t.parentNode&&t.parentNode.removeChild(t)})}return this}}),v.buildFragment=function(e,n,r){var s,o,u,a=e[0];return n=n||i,n=!n.nodeType&&n[0]||n,n=n.ownerDocument||n,e.length===1&&typeof a=="string"&&a.length<512&&n===i&&a.charAt(0)==="<"&&!bt.test(a)&&(v.support.checkClone||!St.test(a))&&(v.support.html5Clone||!wt.test(a))&&(o=!0,s=v.fragments[a],u=s!==t),s||(s=n.createDocumentFragment(),v.clean(e,n,s,r),o&&(v.fragments[a]=u&&s)),{fragment:s,cacheable:o}},v.fragments={},v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){v.fn[e]=function(n){var r,i=0,s=[],o=v(n),u=o.length,a=this.length===1&&this[0].parentNode;if((a==null||a&&a.nodeType===11&&a.childNodes.length===1)&&u===1)return o[t](this[0]),this;for(;i<u;i++)r=(i>0?this.clone(!0):this).get(),v(o[i])[t](r),s=s.concat(r);return this.pushStack(s,e,o.selector)}}),v.extend({clone:function(e,t,n){var r,i,s,o;v.support.html5Clone||v.isXMLDoc(e)||!wt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(kt.innerHTML=e.outerHTML,kt.removeChild(o=kt.firstChild));if((!v.support.noCloneEvent||!v.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!v.isXMLDoc(e)){Ot(e,o),r=Mt(e),i=Mt(o);for(s=0;r[s];++s)i[s]&&Ot(r[s],i[s])}if(t){At(e,o);if(n){r=Mt(e),i=Mt(o);for(s=0;r[s];++s)At(r[s],i[s])}}return r=i=null,o},clean:function(e,t,n,r){var s,o,u,a,f,l,c,h,p,d,m,g,y=t===i&&Ct,b=[];if(!t||typeof t.createDocumentFragment=="undefined")t=i;for(s=0;(u=e[s])!=null;s++){typeof u=="number"&&(u+="");if(!u)continue;if(typeof u=="string")if(!gt.test(u))u=t.createTextNode(u);else{y=y||lt(t),c=t.createElement("div"),y.appendChild(c),u=u.replace(dt,"<$1></$2>"),a=(vt.exec(u)||["",""])[1].toLowerCase(),f=Nt[a]||Nt._default,l=f[0],c.innerHTML=f[1]+u+f[2];while(l--)c=c.lastChild;if(!v.support.tbody){h=mt.test(u),p=a==="table"&&!h?c.firstChild&&c.firstChild.childNodes:f[1]==="<table>"&&!h?c.childNodes:[];for(o=p.length-1;o>=0;--o)v.nodeName(p[o],"tbody")&&!p[o].childNodes.length&&p[o].parentNode.removeChild(p[o])}!v.support.leadingWhitespace&&pt.test(u)&&c.insertBefore(t.createTextNode(pt.exec(u)[0]),c.firstChild),u=c.childNodes,c.parentNode.removeChild(c)}u.nodeType?b.push(u):v.merge(b,u)}c&&(u=c=y=null);if(!v.support.appendChecked)for(s=0;(u=b[s])!=null;s++)v.nodeName(u,"input")?_t(u):typeof u.getElementsByTagName!="undefined"&&v.grep(u.getElementsByTagName("input"),_t);if(n){m=function(e){if(!e.type||xt.test(e.type))return r?r.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e)};for(s=0;(u=b[s])!=null;s++)if(!v.nodeName(u,"script")||!m(u))n.appendChild(u),typeof u.getElementsByTagName!="undefined"&&(g=v.grep(v.merge([],u.getElementsByTagName("script")),m),b.splice.apply(b,[s+1,0].concat(g)),s+=g.length)}return b},cleanData:function(e,t){var n,r,i,s,o=0,u=v.expando,a=v.cache,f=v.support.deleteExpando,l=v.event.special;for(;(i=e[o])!=null;o++)if(t||v.acceptData(i)){r=i[u],n=r&&a[r];if(n){if(n.events)for(s in n.events)l[s]?v.event.remove(i,s):v.removeEvent(i,s,n.handle);a[r]&&(delete a[r],f?delete i[u]:i.removeAttribute?i.removeAttribute(u):i[u]=null,v.deletedIds.push(r))}}}}),function(){var e,t;v.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e=v.uaMatch(o.userAgent),t={},e.browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),v.browser=t,v.sub=function(){function e(t,n){return new e.fn.init(t,n)}v.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(r,i){return i&&i instanceof v&&!(i instanceof e)&&(i=e(i)),v.fn.init.call(this,r,i,t)},e.fn.init.prototype=e.fn;var t=e(i);return e}}();var Dt,Pt,Ht,Bt=/alpha\([^)]*\)/i,jt=/opacity=([^)]*)/,Ft=/^(top|right|bottom|left)$/,It=/^(none|table(?!-c[ea]).+)/,qt=/^margin/,Rt=new RegExp("^("+m+")(.*)$","i"),Ut=new RegExp("^("+m+")(?!px)[a-z%]+$","i"),zt=new RegExp("^([-+])=("+m+")","i"),Wt={BODY:"block"},Xt={position:"absolute",visibility:"hidden",display:"block"},Vt={letterSpacing:0,fontWeight:400},$t=["Top","Right","Bottom","Left"],Jt=["Webkit","O","Moz","ms"],Kt=v.fn.toggle;v.fn.extend({css:function(e,n){return v.access(this,function(e,n,r){return r!==t?v.style(e,n,r):v.css(e,n)},e,n,arguments.length>1)},show:function(){return Yt(this,!0)},hide:function(){return Yt(this)},toggle:function(e,t){var n=typeof e=="boolean";return v.isFunction(e)&&v.isFunction(t)?Kt.apply(this,arguments):this.each(function(){(n?e:Gt(this))?v(this).show():v(this).hide()})}}),v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Dt(e,"opacity");return n===""?"1":n}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":v.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;var s,o,u,a=v.camelCase(n),f=e.style;n=v.cssProps[a]||(v.cssProps[a]=Qt(f,a)),u=v.cssHooks[n]||v.cssHooks[a];if(r===t)return u&&"get"in u&&(s=u.get(e,!1,i))!==t?s:f[n];o=typeof r,o==="string"&&(s=zt.exec(r))&&(r=(s[1]+1)*s[2]+parseFloat(v.css(e,n)),o="number");if(r==null||o==="number"&&isNaN(r))return;o==="number"&&!v.cssNumber[a]&&(r+="px");if(!u||!("set"in u)||(r=u.set(e,r,i))!==t)try{f[n]=r}catch(l){}},css:function(e,n,r,i){var s,o,u,a=v.camelCase(n);return n=v.cssProps[a]||(v.cssProps[a]=Qt(e.style,a)),u=v.cssHooks[n]||v.cssHooks[a],u&&"get"in u&&(s=u.get(e,!0,i)),s===t&&(s=Dt(e,n)),s==="normal"&&n in Vt&&(s=Vt[n]),r||i!==t?(o=parseFloat(s),r||v.isNumeric(o)?o||0:s):s},swap:function(e,t,n){var r,i,s={};for(i in t)s[i]=e.style[i],e.style[i]=t[i];r=n.call(e);for(i in t)e.style[i]=s[i];return r}}),e.getComputedStyle?Dt=function(t,n){var r,i,s,o,u=e.getComputedStyle(t,null),a=t.style;return u&&(r=u.getPropertyValue(n)||u[n],r===""&&!v.contains(t.ownerDocument,t)&&(r=v.style(t,n)),Ut.test(r)&&qt.test(n)&&(i=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=u.width,a.width=i,a.minWidth=s,a.maxWidth=o)),r}:i.documentElement.currentStyle&&(Dt=function(e,t){var n,r,i=e.currentStyle&&e.currentStyle[t],s=e.style;return i==null&&s&&s[t]&&(i=s[t]),Ut.test(i)&&!Ft.test(t)&&(n=s.left,r=e.runtimeStyle&&e.runtimeStyle.left,r&&(e.runtimeStyle.left=e.currentStyle.left),s.left=t==="fontSize"?"1em":i,i=s.pixelLeft+"px",s.left=n,r&&(e.runtimeStyle.left=r)),i===""?"auto":i}),v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,n,r){if(n)return e.offsetWidth===0&&It.test(Dt(e,"display"))?v.swap(e,Xt,function(){return tn(e,t,r)}):tn(e,t,r)},set:function(e,n,r){return Zt(e,n,r?en(e,t,r,v.support.boxSizing&&v.css(e,"boxSizing")==="border-box"):0)}}}),v.support.opacity||(v.cssHooks.opacity={get:function(e,t){return jt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=v.isNumeric(t)?"alpha(opacity="+t*100+")":"",s=r&&r.filter||n.filter||"";n.zoom=1;if(t>=1&&v.trim(s.replace(Bt,""))===""&&n.removeAttribute){n.removeAttribute("filter");if(r&&!r.filter)return}n.filter=Bt.test(s)?s.replace(Bt,i):s+" "+i}}),v(function(){v.support.reliableMarginRight||(v.cssHooks.marginRight={get:function(e,t){return v.swap(e,{display:"inline-block"},function(){if(t)return Dt(e,"marginRight")})}}),!v.support.pixelPosition&&v.fn.position&&v.each(["top","left"],function(e,t){v.cssHooks[t]={get:function(e,n){if(n){var r=Dt(e,t);return Ut.test(r)?v(e).position()[t]+"px":r}}}})}),v.expr&&v.expr.filters&&(v.expr.filters.hidden=function(e){return e.offsetWidth===0&&e.offsetHeight===0||!v.support.reliableHiddenOffsets&&(e.style&&e.style.display||Dt(e,"display"))==="none"},v.expr.filters.visible=function(e){return!v.expr.filters.hidden(e)}),v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(n){var r,i=typeof n=="string"?n.split(" "):[n],s={};for(r=0;r<4;r++)s[e+$t[r]+t]=i[r]||i[r-2]||i[0];return s}},qt.test(e)||(v.cssHooks[e+t].set=Zt)});var rn=/%20/g,sn=/\[\]$/,on=/\r?\n/g,un=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,an=/^(?:select|textarea)/i;v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?v.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||an.test(this.nodeName)||un.test(this.type))}).map(function(e,t){var n=v(this).val();return n==null?null:v.isArray(n)?v.map(n,function(e,n){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),v.param=function(e,n){var r,i=[],s=function(e,t){t=v.isFunction(t)?t():t==null?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};n===t&&(n=v.ajaxSettings&&v.ajaxSettings.traditional);if(v.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,function(){s(this.name,this.value)});else for(r in e)fn(r,e[r],n,s);return i.join("&").replace(rn,"+")};var ln,cn,hn=/#.*$/,pn=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,dn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,vn=/^(?:GET|HEAD)$/,mn=/^\/\//,gn=/\?/,yn=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bn=/([?&])_=[^&]*/,wn=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,En=v.fn.load,Sn={},xn={},Tn=["*/"]+["*"];try{cn=s.href}catch(Nn){cn=i.createElement("a"),cn.href="",cn=cn.href}ln=wn.exec(cn.toLowerCase())||[],v.fn.load=function(e,n,r){if(typeof e!="string"&&En)return En.apply(this,arguments);if(!this.length)return this;var i,s,o,u=this,a=e.indexOf(" ");return a>=0&&(i=e.slice(a,e.length),e=e.slice(0,a)),v.isFunction(n)?(r=n,n=t):n&&typeof n=="object"&&(s="POST"),v.ajax({url:e,type:s,dataType:"html",data:n,complete:function(e,t){r&&u.each(r,o||[e.responseText,t,e])}}).done(function(e){o=arguments,u.html(i?v("<div>").append(e.replace(yn,"")).find(i):e)}),this},v.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){v.fn[t]=function(e){return this.on(t,e)}}),v.each(["get","post"],function(e,n){v[n]=function(e,r,i,s){return v.isFunction(r)&&(s=s||i,i=r,r=t),v.ajax({type:n,url:e,data:r,success:i,dataType:s})}}),v.extend({getScript:function(e,n){return v.get(e,t,n,"script")},getJSON:function(e,t,n){return v.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?Ln(e,v.ajaxSettings):(t=e,e=v.ajaxSettings),Ln(e,t),e},ajaxSettings:{url:cn,isLocal:dn.test(ln[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Tn},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":v.parseJSON,"text xml":v.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Cn(Sn),ajaxTransport:Cn(xn),ajax:function(e,n){function T(e,n,s,a){var l,y,b,w,S,T=n;if(E===2)return;E=2,u&&clearTimeout(u),o=t,i=a||"",x.readyState=e>0?4:0,s&&(w=An(c,x,s));if(e>=200&&e<300||e===304)c.ifModified&&(S=x.getResponseHeader("Last-Modified"),S&&(v.lastModified[r]=S),S=x.getResponseHeader("Etag"),S&&(v.etag[r]=S)),e===304?(T="notmodified",l=!0):(l=On(c,w),T=l.state,y=l.data,b=l.error,l=!b);else{b=T;if(!T||e)T="error",e<0&&(e=0)}x.status=e,x.statusText=(n||T)+"",l?d.resolveWith(h,[y,T,x]):d.rejectWith(h,[x,T,b]),x.statusCode(g),g=t,f&&p.trigger("ajax"+(l?"Success":"Error"),[x,c,l?y:b]),m.fireWith(h,[x,T]),f&&(p.trigger("ajaxComplete",[x,c]),--v.active||v.event.trigger("ajaxStop"))}typeof e=="object"&&(n=e,e=t),n=n||{};var r,i,s,o,u,a,f,l,c=v.ajaxSetup({},n),h=c.context||c,p=h!==c&&(h.nodeType||h instanceof v)?v(h):v.event,d=v.Deferred(),m=v.Callbacks("once memory"),g=c.statusCode||{},b={},w={},E=0,S="canceled",x={readyState:0,setRequestHeader:function(e,t){if(!E){var n=e.toLowerCase();e=w[n]=w[n]||e,b[e]=t}return this},getAllResponseHeaders:function(){return E===2?i:null},getResponseHeader:function(e){var n;if(E===2){if(!s){s={};while(n=pn.exec(i))s[n[1].toLowerCase()]=n[2]}n=s[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return E||(c.mimeType=e),this},abort:function(e){return e=e||S,o&&o.abort(e),T(0,e),this}};d.promise(x),x.success=x.done,x.error=x.fail,x.complete=m.add,x.statusCode=function(e){if(e){var t;if(E<2)for(t in e)g[t]=[g[t],e[t]];else t=e[x.status],x.always(t)}return this},c.url=((e||c.url)+"").replace(hn,"").replace(mn,ln[1]+"//"),c.dataTypes=v.trim(c.dataType||"*").toLowerCase().split(y),c.crossDomain==null&&(a=wn.exec(c.url.toLowerCase()),c.crossDomain=!(!a||a[1]===ln[1]&&a[2]===ln[2]&&(a[3]||(a[1]==="http:"?80:443))==(ln[3]||(ln[1]==="http:"?80:443)))),c.data&&c.processData&&typeof c.data!="string"&&(c.data=v.param(c.data,c.traditional)),kn(Sn,c,n,x);if(E===2)return x;f=c.global,c.type=c.type.toUpperCase(),c.hasContent=!vn.test(c.type),f&&v.active++===0&&v.event.trigger("ajaxStart");if(!c.hasContent){c.data&&(c.url+=(gn.test(c.url)?"&":"?")+c.data,delete c.data),r=c.url;if(c.cache===!1){var N=v.now(),C=c.url.replace(bn,"$1_="+N);c.url=C+(C===c.url?(gn.test(c.url)?"&":"?")+"_="+N:"")}}(c.data&&c.hasContent&&c.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",c.contentType),c.ifModified&&(r=r||c.url,v.lastModified[r]&&x.setRequestHeader("If-Modified-Since",v.lastModified[r]),v.etag[r]&&x.setRequestHeader("If-None-Match",v.etag[r])),x.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", "+Tn+"; q=0.01":""):c.accepts["*"]);for(l in c.headers)x.setRequestHeader(l,c.headers[l]);if(!c.beforeSend||c.beforeSend.call(h,x,c)!==!1&&E!==2){S="abort";for(l in{success:1,error:1,complete:1})x[l](c[l]);o=kn(xn,c,n,x);if(!o)T(-1,"No Transport");else{x.readyState=1,f&&p.trigger("ajaxSend",[x,c]),c.async&&c.timeout>0&&(u=setTimeout(function(){x.abort("timeout")},c.timeout));try{E=1,o.send(b,T)}catch(k){if(!(E<2))throw k;T(-1,k)}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var Mn=[],_n=/\?/,Dn=/(=)\?(?=&|$)|\?\?/,Pn=v.now();v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Mn.pop()||v.expando+"_"+Pn++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",function(n,r,i){var s,o,u,a=n.data,f=n.url,l=n.jsonp!==!1,c=l&&Dn.test(f),h=l&&!c&&typeof a=="string"&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Dn.test(a);if(n.dataTypes[0]==="jsonp"||c||h)return s=n.jsonpCallback=v.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,o=e[s],c?n.url=f.replace(Dn,"$1"+s):h?n.data=a.replace(Dn,"$1"+s):l&&(n.url+=(_n.test(f)?"&":"?")+n.jsonp+"="+s),n.converters["script json"]=function(){return u||v.error(s+" was not called"),u[0]},n.dataTypes[0]="json",e[s]=function(){u=arguments},i.always(function(){e[s]=o,n[s]&&(n.jsonpCallback=r.jsonpCallback,Mn.push(s)),u&&v.isFunction(o)&&o(u[0]),u=o=t}),"script"}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),v.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=i.head||i.getElementsByTagName("head")[0]||i.documentElement;return{send:function(s,o){n=i.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,i){if(i||!n.readyState||/loaded|complete/.test(n.readyState))n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=t,i||o(200,"success")},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var Hn,Bn=e.ActiveXObject?function(){for(var e in Hn)Hn[e](0,1)}:!1,jn=0;v.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&Fn()||In()}:Fn,function(e){v.extend(v.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(v.ajaxSettings.xhr()),v.support.ajax&&v.ajaxTransport(function(n){if(!n.crossDomain||v.support.cors){var r;return{send:function(i,s){var o,u,a=n.xhr();n.username?a.open(n.type,n.url,n.async,n.username,n.password):a.open(n.type,n.url,n.async);if(n.xhrFields)for(u in n.xhrFields)a[u]=n.xhrFields[u];n.mimeType&&a.overrideMimeType&&a.overrideMimeType(n.mimeType),!n.crossDomain&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");try{for(u in i)a.setRequestHeader(u,i[u])}catch(f){}a.send(n.hasContent&&n.data||null),r=function(e,i){var u,f,l,c,h;try{if(r&&(i||a.readyState===4)){r=t,o&&(a.onreadystatechange=v.noop,Bn&&delete Hn[o]);if(i)a.readyState!==4&&a.abort();else{u=a.status,l=a.getAllResponseHeaders(),c={},h=a.responseXML,h&&h.documentElement&&(c.xml=h);try{c.text=a.responseText}catch(p){}try{f=a.statusText}catch(p){f=""}!u&&n.isLocal&&!n.crossDomain?u=c.text?200:404:u===1223&&(u=204)}}}catch(d){i||s(-1,d)}c&&s(u,f,c,l)},n.async?a.readyState===4?setTimeout(r,0):(o=++jn,Bn&&(Hn||(Hn={},v(e).unload(Bn)),Hn[o]=r),a.onreadystatechange=r):r()},abort:function(){r&&r(0,1)}}}});var qn,Rn,Un=/^(?:toggle|show|hide)$/,zn=new RegExp("^(?:([-+])=|)("+m+")([a-z%]*)$","i"),Wn=/queueHooks$/,Xn=[Gn],Vn={"*":[function(e,t){var n,r,i=this.createTween(e,t),s=zn.exec(t),o=i.cur(),u=+o||0,a=1,f=20;if(s){n=+s[2],r=s[3]||(v.cssNumber[e]?"":"px");if(r!=="px"&&u){u=v.css(i.elem,e,!0)||n||1;do a=a||".5",u/=a,v.style(i.elem,e,u+r);while(a!==(a=i.cur()/o)&&a!==1&&--f)}i.unit=r,i.start=u,i.end=s[1]?u+(s[1]+1)*n:n}return i}]};v.Animation=v.extend(Kn,{tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;r<i;r++)n=e[r],Vn[n]=Vn[n]||[],Vn[n].unshift(t)},prefilter:function(e,t){t?Xn.unshift(e):Xn.push(e)}}),v.Tween=Yn,Yn.prototype={constructor:Yn,init:function(e,t,n,r,i,s){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(v.cssNumber[n]?"":"px")},cur:function(){var e=Yn.propHooks[this.prop];return e&&e.get?e.get(this):Yn.propHooks._default.get(this)},run:function(e){var t,n=Yn.propHooks[this.prop];return this.options.duration?this.pos=t=v.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Yn.propHooks._default.set(this),this}},Yn.prototype.init.prototype=Yn.prototype,Yn.propHooks={_default:{get:function(e){var t;return e.elem[e.prop]==null||!!e.elem.style&&e.elem.style[e.prop]!=null?(t=v.css(e.elem,e.prop,!1,""),!t||t==="auto"?0:t):e.elem[e.prop]},set:function(e){v.fx.step[e.prop]?v.fx.step[e.prop](e):e.elem.style&&(e.elem.style[v.cssProps[e.prop]]!=null||v.cssHooks[e.prop])?v.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Yn.propHooks.scrollTop=Yn.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},v.each(["toggle","show","hide"],function(e,t){var n=v.fn[t];v.fn[t]=function(r,i,s){return r==null||typeof r=="boolean"||!e&&v.isFunction(r)&&v.isFunction(i)?n.apply(this,arguments):this.animate(Zn(t,!0),r,i,s)}}),v.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Gt).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=v.isEmptyObject(e),s=v.speed(t,n,r),o=function(){var t=Kn(this,v.extend({},e),s);i&&t.stop(!0)};return i||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return typeof e!="string"&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=e!=null&&e+"queueHooks",s=v.timers,o=v._data(this);if(n)o[n]&&o[n].stop&&i(o[n]);else for(n in o)o[n]&&o[n].stop&&Wn.test(n)&&i(o[n]);for(n=s.length;n--;)s[n].elem===this&&(e==null||s[n].queue===e)&&(s[n].anim.stop(r),t=!1,s.splice(n,1));(t||!r)&&v.dequeue(this,e)})}}),v.each({slideDown:Zn("show"),slideUp:Zn("hide"),slideToggle:Zn("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){v.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),v.speed=function(e,t,n){var r=e&&typeof e=="object"?v.extend({},e):{complete:n||!n&&t||v.isFunction(e)&&e,duration:e,easing:n&&t||t&&!v.isFunction(t)&&t};r.duration=v.fx.off?0:typeof r.duration=="number"?r.duration:r.duration in v.fx.speeds?v.fx.speeds[r.duration]:v.fx.speeds._default;if(r.queue==null||r.queue===!0)r.queue="fx";return r.old=r.complete,r.complete=function(){v.isFunction(r.old)&&r.old.call(this),r.queue&&v.dequeue(this,r.queue)},r},v.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},v.timers=[],v.fx=Yn.prototype.init,v.fx.tick=function(){var e,n=v.timers,r=0;qn=v.now();for(;r<n.length;r++)e=n[r],!e()&&n[r]===e&&n.splice(r--,1);n.length||v.fx.stop(),qn=t},v.fx.timer=function(e){e()&&v.timers.push(e)&&!Rn&&(Rn=setInterval(v.fx.tick,v.fx.interval))},v.fx.interval=13,v.fx.stop=function(){clearInterval(Rn),Rn=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fx.step={},v.expr&&v.expr.filters&&(v.expr.filters.animated=function(e){return v.grep(v.timers,function(t){return e===t.elem}).length});var er=/^(?:body|html)$/i;v.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){v.offset.setOffset(this,e,t)});var n,r,i,s,o,u,a,f={top:0,left:0},l=this[0],c=l&&l.ownerDocument;if(!c)return;return(r=c.body)===l?v.offset.bodyOffset(l):(n=c.documentElement,v.contains(n,l)?(typeof l.getBoundingClientRect!="undefined"&&(f=l.getBoundingClientRect()),i=tr(c),s=n.clientTop||r.clientTop||0,o=n.clientLeft||r.clientLeft||0,u=i.pageYOffset||n.scrollTop,a=i.pageXOffset||n.scrollLeft,{top:f.top+u-s,left:f.left+a-o}):f)},v.offset={bodyOffset:function(e){var t=e.offsetTop,n=e.offsetLeft;return v.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(v.css(e,"marginTop"))||0,n+=parseFloat(v.css(e,"marginLeft"))||0),{top:t,left:n}},setOffset:function(e,t,n){var r=v.css(e,"position");r==="static"&&(e.style.position="relative");var i=v(e),s=i.offset(),o=v.css(e,"top"),u=v.css(e,"left"),a=(r==="absolute"||r==="fixed")&&v.inArray("auto",[o,u])>-1,f={},l={},c,h;a?(l=i.position(),c=l.top,h=l.left):(c=parseFloat(o)||0,h=parseFloat(u)||0),v.isFunction(t)&&(t=t.call(e,n,s)),t.top!=null&&(f.top=t.top-s.top+c),t.left!=null&&(f.left=t.left-s.left+h),"using"in t?t.using.call(e,f):i.css(f)}},v.fn.extend({position:function(){if(!this[0])return;var e=this[0],t=this.offsetParent(),n=this.offset(),r=er.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(v.css(e,"marginTop"))||0,n.left-=parseFloat(v.css(e,"marginLeft"))||0,r.top+=parseFloat(v.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(v.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||i.body;while(e&&!er.test(e.nodeName)&&v.css(e,"position")==="static")e=e.offsetParent;return e||i.body})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);v.fn[e]=function(i){return v.access(this,function(e,i,s){var o=tr(e);if(s===t)return o?n in o?o[n]:o.document.documentElement[i]:e[i];o?o.scrollTo(r?v(o).scrollLeft():s,r?s:v(o).scrollTop()):e[i]=s},e,i,arguments.length,null)}}),v.each({Height:"height",Width:"width"},function(e,n){v.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){v.fn[i]=function(i,s){var o=arguments.length&&(r||typeof i!="boolean"),u=r||(i===!0||s===!0?"margin":"border");return v.access(this,function(n,r,i){var s;return v.isWindow(n)?n.document.documentElement["client"+e]:n.nodeType===9?(s=n.documentElement,Math.max(n.body["scroll"+e],s["scroll"+e],n.body["offset"+e],s["offset"+e],s["client"+e])):i===t?v.css(n,r,i,u):v.style(n,r,i,u)},n,o?i:t,o,null)}})}),e.jQuery=e.$=v,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return v})})(window);
src/components/Spinner.js
lxgreen/flickr-viewr
import React from 'react'; import './Spinner.css'; // html + css source: https://codepen.io/magnus16/pen/BKoRNw const Spinner = () => { return ( <div className="cs-loader"> <div className="cs-loader-inner"> <label> ●</label> <label> ●</label> <label> ●</label> <label> ●</label> <label> ●</label> <label> ●</label> </div> </div> ); }; export default Spinner;
ajax/libs/react-native-web/0.15.4/exports/KeyboardAvoidingView/index.js
cdnjs/cdnjs
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); } function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } /** * Copyright (c) Nicolas Gallagher. * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * */ import View from '../View'; import React from 'react'; var KeyboardAvoidingView = /*#__PURE__*/ function (_React$Component) { _inheritsLoose(KeyboardAvoidingView, _React$Component); function KeyboardAvoidingView() { var _this; for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; _this.frame = null; _this.onLayout = function (event) { _this.frame = event.nativeEvent.layout; }; return _this; } var _proto = KeyboardAvoidingView.prototype; _proto.relativeKeyboardHeight = function relativeKeyboardHeight(keyboardFrame) { var frame = this.frame; if (!frame || !keyboardFrame) { return 0; } var keyboardY = keyboardFrame.screenY - (this.props.keyboardVerticalOffset || 0); return Math.max(frame.y + frame.height - keyboardY, 0); }; _proto.onKeyboardChange = function onKeyboardChange(event) {}; _proto.render = function render() { var _this$props = this.props, behavior = _this$props.behavior, contentContainerStyle = _this$props.contentContainerStyle, keyboardVerticalOffset = _this$props.keyboardVerticalOffset, rest = _objectWithoutPropertiesLoose(_this$props, ["behavior", "contentContainerStyle", "keyboardVerticalOffset"]); return ( /*#__PURE__*/ React.createElement(View, _extends({ onLayout: this.onLayout }, rest)) ); }; return KeyboardAvoidingView; }(React.Component); export default KeyboardAvoidingView;
test/components/Counter.spec.js
jkup/starter-kit
/* eslint no-unused-expressions: 0 */ import { expect } from 'chai'; import { spy } from 'sinon'; import React from 'react'; import { renderIntoDocument, scryRenderedDOMComponentsWithTag, findRenderedDOMComponentWithClass, Simulate } from 'react-addons-test-utils'; import Counter from '../../app/components/Counter'; function setup() { const actions = { increment: spy(), incrementIfOdd: spy(), incrementAsync: spy(), decrement: spy() }; const component = renderIntoDocument(<Counter counter={1} {...actions} />); return { component, actions, buttons: scryRenderedDOMComponentsWithTag(component, 'button').map(button => button), p: findRenderedDOMComponentWithClass(component, 'counter') }; } describe('Counter component', () => { it('should display count', () => { const { p } = setup(); expect(p.textContent).to.match(/^1$/); }); it('first button should call increment', () => { const { buttons, actions } = setup(); Simulate.click(buttons[0]); expect(actions.increment.called).to.be.true; }); it('second button should call decrement', () => { const { buttons, actions } = setup(); Simulate.click(buttons[1]); expect(actions.decrement.called).to.be.true; }); it('third button should call incrementIfOdd', () => { const { buttons, actions } = setup(); Simulate.click(buttons[2]); expect(actions.incrementIfOdd.called).to.be.true; }); it('fourth button should call incrementAsync', () => { const { buttons, actions } = setup(); Simulate.click(buttons[3]); expect(actions.incrementAsync.called).to.be.true; }); });
lib/Collator.js
taggon/react-native-intl
'use strict'; const { RNIntl } = require('react-native').NativeModules; class Collator { constructor() { throw 'Intl.Collator is not supported yet.'; } } module.exports = Collator;
dist/js/vendor/jquery-1.11.3.min.js
l0rd0fwar/html5-boilerplate
/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.3",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b="length"in a&&a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+L+"*\\]",P=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",Q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),S=new RegExp("^"+L+"*,"+L+"*"),T=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(P),W=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,aa=/[+~]/,ba=/'|\\/g,ca=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),da=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ea=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(fa){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],k=b.nodeType,"string"!=typeof a||!a||1!==k&&9!==k&&11!==k)return d;if(!e&&p){if(11!==k&&(f=_.exec(a)))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return H.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName)return H.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=1!==k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(ba,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+ra(o[l]);w=aa.test(a)&&pa(b.parentNode)||b,x=o.join(",")}if(x)try{return H.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function pa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=g.documentElement,e=g.defaultView,e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",ea,!1):e.attachEvent&&e.attachEvent("onunload",ea)),p=!f(g),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(g.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(g.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!g.getElementsByName||!g.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(g.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\f]' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){var b=g.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",P)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===v&&t(v,a)?-1:b===g||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===g?-1:b===g?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?la(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},g):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ca,da),a[3]=(a[3]||a[4]||a[5]||"").replace(ca,da),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ca,da).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(Q," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(ca,da),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return W.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(ca,da).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:oa(function(){return[0]}),last:oa(function(a,b){return[b-1]}),eq:oa(function(a,b,c){return[0>c?c+b:c]}),even:oa(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:oa(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:oa(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:oa(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=ma(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=na(b);function qa(){}qa.prototype=d.filters=d.pseudos,d.setFilters=new qa,g=ga.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=S.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(R," ")}),h=h.slice(c.length));for(g in d.filter)!(e=X[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?ga.error(a):z(a,i).slice(0)};function ra(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function sa(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function ta(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ua(a,b,c){for(var d=0,e=b.length;e>d;d++)ga(a,b[d],c);return c}function va(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function wa(a,b,c,d,e,f){return d&&!d[u]&&(d=wa(d)),e&&!e[u]&&(e=wa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ua(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:va(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=va(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=va(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function xa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=sa(function(a){return a===b},h,!0),l=sa(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[sa(ta(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return wa(i>1&&ta(m),i>1&&ra(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&xa(a.slice(i,e)),f>e&&xa(a=a.slice(e)),f>e&&ra(a))}m.push(c)}return ta(m)}function ya(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=F.call(i));s=va(s)}H.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&ga.uniqueSort(i)}return k&&(w=v,j=t),r};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=xa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,ya(e,d)),f.selector=a}return f},i=ga.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ca,da),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ca,da),aa.test(j[0].type)&&pa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&ra(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,aa.test(a)&&pa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ja(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);m.find=s,m.expr=s.selectors,m.expr[":"]=m.expr.pseudos,m.unique=s.uniqueSort,m.text=s.getText,m.isXMLDoc=s.isXML,m.contains=s.contains;var t=m.expr.match.needsContext,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/^.[^:#\[\.,]*$/;function w(a,b,c){if(m.isFunction(b))return m.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return m.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(v.test(b))return m.filter(b,a,c);b=m.filter(b,a)}return m.grep(a,function(a){return m.inArray(a,b)>=0!==c})}m.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?m.find.matchesSelector(d,a)?[d]:[]:m.find.matches(a,m.grep(b,function(a){return 1===a.nodeType}))},m.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(m(a).filter(function(){for(b=0;e>b;b++)if(m.contains(d[b],this))return!0}));for(b=0;e>b;b++)m.find(a,d[b],c);return c=this.pushStack(e>1?m.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(w(this,a||[],!1))},not:function(a){return this.pushStack(w(this,a||[],!0))},is:function(a){return!!w(this,"string"==typeof a&&t.test(a)?m(a):a||[],!1).length}});var x,y=a.document,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=m.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||x).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof m?b[0]:b,m.merge(this,m.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:y,!0)),u.test(c[1])&&m.isPlainObject(b))for(c in b)m.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=y.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return x.find(a);this.length=1,this[0]=d}return this.context=y,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):m.isFunction(a)?"undefined"!=typeof x.ready?x.ready(a):a(m):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),m.makeArray(a,this))};A.prototype=m.fn,x=m(y);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};m.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!m(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),m.fn.extend({has:function(a){var b,c=m(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(m.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=t.test(a)||"string"!=typeof a?m(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&m.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?m.unique(f):f)},index:function(a){return a?"string"==typeof a?m.inArray(this[0],m(a)):m.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(m.unique(m.merge(this.get(),m(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}m.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return m.dir(a,"parentNode")},parentsUntil:function(a,b,c){return m.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return m.dir(a,"nextSibling")},prevAll:function(a){return m.dir(a,"previousSibling")},nextUntil:function(a,b,c){return m.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return m.dir(a,"previousSibling",c)},siblings:function(a){return m.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return m.sibling(a.firstChild)},contents:function(a){return m.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:m.merge([],a.childNodes)}},function(a,b){m.fn[a]=function(c,d){var e=m.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=m.filter(d,e)),this.length>1&&(C[a]||(e=m.unique(e)),B.test(a)&&(e=e.reverse())),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return m.each(a.match(E)||[],function(a,c){b[c]=!0}),b}m.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):m.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&m.each(arguments,function(a,c){var d;while((d=m.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?m.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},m.extend({Deferred:function(a){var b=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return m.Deferred(function(c){m.each(b,function(b,f){var g=m.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&m.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?m.extend(a,d):d}},e={};return d.pipe=d.then,m.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&m.isFunction(a.promise)?e:0,g=1===f?a:m.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&m.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;m.fn.ready=function(a){return m.ready.promise().done(a),this},m.extend({isReady:!1,readyWait:1,holdReady:function(a){a?m.readyWait++:m.ready(!0)},ready:function(a){if(a===!0?!--m.readyWait:!m.isReady){if(!y.body)return setTimeout(m.ready);m.isReady=!0,a!==!0&&--m.readyWait>0||(H.resolveWith(y,[m]),m.fn.triggerHandler&&(m(y).triggerHandler("ready"),m(y).off("ready")))}}});function I(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",J,!1),a.removeEventListener("load",J,!1)):(y.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(y.addEventListener||"load"===event.type||"complete"===y.readyState)&&(I(),m.ready())}m.ready.promise=function(b){if(!H)if(H=m.Deferred(),"complete"===y.readyState)setTimeout(m.ready);else if(y.addEventListener)y.addEventListener("DOMContentLoaded",J,!1),a.addEventListener("load",J,!1);else{y.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&y.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!m.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}I(),m.ready()}}()}return H.promise(b)};var K="undefined",L;for(L in m(k))break;k.ownLast="0"!==L,k.inlineBlockNeedsLayout=!1,m(function(){var a,b,c,d;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",k.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(d))}),function(){var a=y.createElement("div");if(null==k.deleteExpando){k.deleteExpando=!0;try{delete a.test}catch(b){k.deleteExpando=!1}}a=null}(),m.acceptData=function(a){var b=m.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:M.test(c)?m.parseJSON(c):c}catch(e){}m.data(a,b,c)}else c=void 0}return c}function P(a){var b;for(b in a)if(("data"!==b||!m.isEmptyObject(a[b]))&&"toJSON"!==b)return!1; return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?m.queue(this[0],a):void 0===b?this:this.each(function(){var c=m.queue(this,a,b);m._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&m.dequeue(this,a)})},dequeue:function(a){return this.each(function(){m.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=m.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=m._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=["Top","Right","Bottom","Left"],U=function(a,b){return a=b||a,"none"===m.css(a,"display")||!m.contains(a.ownerDocument,a)},V=m.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===m.type(c)){e=!0;for(h in c)m.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,m.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(m(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if(b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav></:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(k[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),k[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function aa(){return!0}function ba(){return!1}function ca(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=m.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof m===K||a&&m.event.triggered===a.type?void 0:m.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(E)||[""],h=b.length;while(h--)f=_.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=m.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=m.event.special[o]||{},l=m.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&m.expr.match.needsContext.test(e),namespace:p.join(".")},i),(n=g[o])||(n=g[o]=[],n.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?n.splice(n.delegateCount++,0,l):n.push(l),m.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m.hasData(a)&&m._data(a);if(r&&(k=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=_.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=m.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,n=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=n.length;while(f--)g=n[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(n.splice(f,1),g.selector&&n.delegateCount--,l.remove&&l.remove.call(a,g));i&&!n.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||m.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)m.event.remove(a,o+b[j],c,d,!0);m.isEmptyObject(k)&&(delete r.handle,m._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,o=[d||y],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||y,3!==d.nodeType&&8!==d.nodeType&&!$.test(p+m.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[m.expando]?b:new m.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:m.makeArray(c,[b]),k=m.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!m.isWindow(d)){for(i=k.delegateType||p,$.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||y)&&o.push(l.defaultView||l.parentWindow||a)}n=0;while((h=o[n++])&&!b.isPropagationStopped())b.type=n>1?i:k.bindType||p,f=(m._data(h,"events")||{})[b.type]&&m._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&m.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&m.acceptData(d)&&g&&d[p]&&!m.isWindow(d)){l=d[g],l&&(d[g]=null),m.event.triggered=p;try{d[p]()}catch(r){}m.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=m.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(m._data(this,"events")||{})[a.type]||[],k=m.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=m.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((m.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?m(c,this).index(i)>=0:m.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[m.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=Z.test(e)?this.mouseHooks:Y.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new m.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=f.srcElement||y),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||y,e=d.documentElement,c=d.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ca()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===ca()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return m.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return m.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=m.extend(new m.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?m.event.trigger(e,null,b):m.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},m.removeEvent=y.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]===K&&(a[d]=null),a.detachEvent(d,c))},m.Event=function(a,b){return this instanceof m.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?aa:ba):this.type=a,b&&m.extend(this,b),this.timeStamp=a&&a.timeStamp||m.now(),void(this[m.expando]=!0)):new m.Event(a,b)},m.Event.prototype={isDefaultPrevented:ba,isPropagationStopped:ba,isImmediatePropagationStopped:ba,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=aa,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=aa,a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=aa,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){m.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!m.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.submitBubbles||(m.event.special.submit={setup:function(){return m.nodeName(this,"form")?!1:void m.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=m.nodeName(b,"input")||m.nodeName(b,"button")?b.form:void 0;c&&!m._data(c,"submitBubbles")&&(m.event.add(c,"submit._submit",function(a){a._submit_bubble=!0}),m._data(c,"submitBubbles",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&m.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){return m.nodeName(this,"form")?!1:void m.event.remove(this,"._submit")}}),k.changeBubbles||(m.event.special.change={setup:function(){return X.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(m.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),m.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),m.event.simulate("change",this,a,!0)})),!1):void m.event.add(this,"beforeactivate._change",function(a){var b=a.target;X.test(b.nodeName)&&!m._data(b,"changeBubbles")&&(m.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||m.event.simulate("change",this.parentNode,a,!0)}),m._data(b,"changeBubbles",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return m.event.remove(this,"._change"),!X.test(this.nodeName)}}),k.focusinBubbles||m.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){m.event.simulate(b,a.target,m.event.fix(a),!0)};m.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=m._data(d,b);e||d.addEventListener(a,c,!0),m._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=m._data(d,b)-1;e?m._data(d,b,e):(d.removeEventListener(a,c,!0),m._removeData(d,b))}}}),m.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(f in a)this.on(f,b,c,a[f],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=ba;else if(!d)return this;return 1===e&&(g=d,d=function(a){return m().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=m.guid++)),this.each(function(){m.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,m(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=ba),this.each(function(){m.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){m.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?m.event.trigger(a,b,c,!0):void 0}});function da(a){var b=ea.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}var ea="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",fa=/ jQuery\d+="(?:null|\d+)"/g,ga=new RegExp("<(?:"+ea+")[\\s/>]","i"),ha=/^\s+/,ia=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ja=/<([\w:]+)/,ka=/<tbody/i,la=/<|&#?\w+;/,ma=/<(?:script|style|link)/i,na=/checked\s*(?:[^=]|=\s*.checked.)/i,oa=/^$|\/(?:java|ecma)script/i,pa=/^true\/(.*)/,qa=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ra={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:k.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},sa=da(y),ta=sa.appendChild(y.createElement("div"));ra.optgroup=ra.option,ra.tbody=ra.tfoot=ra.colgroup=ra.caption=ra.thead,ra.th=ra.td;function ua(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==K?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==K?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||m.nodeName(d,b)?f.push(d):m.merge(f,ua(d,b));return void 0===b||b&&m.nodeName(a,b)?m.merge([a],f):f}function va(a){W.test(a.type)&&(a.defaultChecked=a.checked)}function wa(a,b){return m.nodeName(a,"table")&&m.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function xa(a){return a.type=(null!==m.find.attr(a,"type"))+"/"+a.type,a}function ya(a){var b=pa.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function za(a,b){for(var c,d=0;null!=(c=a[d]);d++)m._data(c,"globalEval",!b||m._data(b[d],"globalEval"))}function Aa(a,b){if(1===b.nodeType&&m.hasData(a)){var c,d,e,f=m._data(a),g=m._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)m.event.add(b,c,h[c][d])}g.data&&(g.data=m.extend({},g.data))}}function Ba(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!k.noCloneEvent&&b[m.expando]){e=m._data(b);for(d in e.events)m.removeEvent(b,d,e.handle);b.removeAttribute(m.expando)}"script"===c&&b.text!==a.text?(xa(b).text=a.text,ya(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),k.html5Clone&&a.innerHTML&&!m.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&W.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}m.extend({clone:function(a,b,c){var d,e,f,g,h,i=m.contains(a.ownerDocument,a);if(k.html5Clone||m.isXMLDoc(a)||!ga.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(ta.innerHTML=a.outerHTML,ta.removeChild(f=ta.firstChild)),!(k.noCloneEvent&&k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||m.isXMLDoc(a)))for(d=ua(f),h=ua(a),g=0;null!=(e=h[g]);++g)d[g]&&Ba(e,d[g]);if(b)if(c)for(h=h||ua(a),d=d||ua(f),g=0;null!=(e=h[g]);g++)Aa(e,d[g]);else Aa(a,f);return d=ua(f,"script"),d.length>0&&za(d,!i&&ua(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,l,n=a.length,o=da(b),p=[],q=0;n>q;q++)if(f=a[q],f||0===f)if("object"===m.type(f))m.merge(p,f.nodeType?[f]:f);else if(la.test(f)){h=h||o.appendChild(b.createElement("div")),i=(ja.exec(f)||["",""])[1].toLowerCase(),l=ra[i]||ra._default,h.innerHTML=l[1]+f.replace(ia,"<$1></$2>")+l[2],e=l[0];while(e--)h=h.lastChild;if(!k.leadingWhitespace&&ha.test(f)&&p.push(b.createTextNode(ha.exec(f)[0])),!k.tbody){f="table"!==i||ka.test(f)?"<table>"!==l[1]||ka.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)m.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}m.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),k.appendChecked||m.grep(ua(p,"input"),va),q=0;while(f=p[q++])if((!d||-1===m.inArray(f,d))&&(g=m.contains(f.ownerDocument,f),h=ua(o.appendChild(f),"script"),g&&za(h),c)){e=0;while(f=h[e++])oa.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=m.expando,j=m.cache,l=k.deleteExpando,n=m.event.special;null!=(d=a[h]);h++)if((b||m.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)n[e]?m.event.remove(d,e):m.removeEvent(d,e,g.handle);j[f]&&(delete j[f],l?delete d[i]:typeof d.removeAttribute!==K?d.removeAttribute(i):d[i]=null,c.push(f))}}}),m.fn.extend({text:function(a){return V(this,function(a){return void 0===a?m.text(this):this.empty().append((this[0]&&this[0].ownerDocument||y).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?m.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||m.cleanData(ua(c)),c.parentNode&&(b&&m.contains(c.ownerDocument,c)&&za(ua(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&m.cleanData(ua(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&m.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return m.clone(this,a,b)})},html:function(a){return V(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(fa,""):void 0;if(!("string"!=typeof a||ma.test(a)||!k.htmlSerialize&&ga.test(a)||!k.leadingWhitespace&&ha.test(a)||ra[(ja.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(ia,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(m.cleanData(ua(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,m.cleanData(ua(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,n=this,o=l-1,p=a[0],q=m.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&na.test(p))return this.each(function(c){var d=n.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(i=m.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=m.map(ua(i,"script"),xa),f=g.length;l>j;j++)d=i,j!==o&&(d=m.clone(d,!0,!0),f&&m.merge(g,ua(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,m.map(g,ya),j=0;f>j;j++)d=g[j],oa.test(d.type||"")&&!m._data(d,"globalEval")&&m.contains(h,d)&&(d.src?m._evalUrl&&m._evalUrl(d.src):m.globalEval((d.text||d.textContent||d.innerHTML||"").replace(qa,"")));i=c=null}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){m.fn[a]=function(a){for(var c,d=0,e=[],g=m(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),m(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Ca,Da={};function Ea(b,c){var d,e=m(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:m.css(e[0],"display");return e.detach(),f}function Fa(a){var b=y,c=Da[a];return c||(c=Ea(a,b),"none"!==c&&c||(Ca=(Ca||m("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Ca[0].contentWindow||Ca[0].contentDocument).document,b.write(),b.close(),c=Ea(a,b),Ca.detach()),Da[a]=c),c}!function(){var a;k.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,d;return c=y.getElementsByTagName("body")[0],c&&c.style?(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(y.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(d),a):void 0}}();var Ga=/^margin/,Ha=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Ia,Ja,Ka=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ia=function(b){return b.ownerDocument.defaultView.opener?b.ownerDocument.defaultView.getComputedStyle(b,null):a.getComputedStyle(b,null)},Ja=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ia(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&&(""!==g||m.contains(a.ownerDocument,a)||(g=m.style(a,b)),Ha.test(g)&&Ga.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+""}):y.documentElement.currentStyle&&(Ia=function(a){return a.currentStyle},Ja=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ia(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Ha.test(g)&&!Ka.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function La(a,b){return{get:function(){var c=a();if(null!=c)return c?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d,e,f,g,h;if(b=y.createElement("div"),b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=d&&d.style){c.cssText="float:left;opacity:.5",k.opacity="0.5"===c.opacity,k.cssFloat=!!c.cssFloat,b.style.backgroundClip="content-box",b.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===b.style.backgroundClip,k.boxSizing=""===c.boxSizing||""===c.MozBoxSizing||""===c.WebkitBoxSizing,m.extend(k,{reliableHiddenOffsets:function(){return null==g&&i(),g},boxSizingReliable:function(){return null==f&&i(),f},pixelPosition:function(){return null==e&&i(),e},reliableMarginRight:function(){return null==h&&i(),h}});function i(){var b,c,d,i;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),b.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",e=f=!1,h=!0,a.getComputedStyle&&(e="1%"!==(a.getComputedStyle(b,null)||{}).top,f="4px"===(a.getComputedStyle(b,null)||{width:"4px"}).width,i=b.appendChild(y.createElement("div")),i.style.cssText=b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",b.style.width="1px",h=!parseFloat((a.getComputedStyle(i,null)||{}).marginRight),b.removeChild(i)),b.innerHTML="<table><tr><td></td><td>t</td></tr></table>",i=b.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",g=0===i[0].offsetHeight,g&&(i[0].style.display="",i[1].style.display="none",g=0===i[0].offsetHeight),c.removeChild(d))}}}(),m.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Ma=/alpha\([^)]*\)/i,Na=/opacity\s*=\s*([^)]*)/,Oa=/^(none|table(?!-c[ea]).+)/,Pa=new RegExp("^("+S+")(.*)$","i"),Qa=new RegExp("^([+-])=("+S+")","i"),Ra={position:"absolute",visibility:"hidden",display:"block"},Sa={letterSpacing:"0",fontWeight:"400"},Ta=["Webkit","O","Moz","ms"];function Ua(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=Ta.length;while(e--)if(b=Ta[e]+c,b in a)return b;return d}function Va(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=m._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&U(d)&&(f[g]=m._data(d,"olddisplay",Fa(d.nodeName)))):(e=U(d),(c&&"none"!==c||!e)&&m._data(d,"olddisplay",e?c:m.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function Wa(a,b,c){var d=Pa.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Xa(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=m.css(a,c+T[f],!0,e)),d?("content"===c&&(g-=m.css(a,"padding"+T[f],!0,e)),"margin"!==c&&(g-=m.css(a,"border"+T[f]+"Width",!0,e))):(g+=m.css(a,"padding"+T[f],!0,e),"padding"!==c&&(g+=m.css(a,"border"+T[f]+"Width",!0,e)));return g}function Ya(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ia(a),g=k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Ja(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ha.test(e))return e;d=g&&(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Xa(a,b,c||(g?"border":"content"),d,f)+"px"}m.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Ja(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":k.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=m.camelCase(b),i=a.style;if(b=m.cssProps[h]||(m.cssProps[h]=Ua(i,h)),g=m.cssHooks[b]||m.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=Qa.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(m.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||m.cssNumber[h]||(c+="px"),k.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=m.camelCase(b);return b=m.cssProps[h]||(m.cssProps[h]=Ua(a.style,h)),g=m.cssHooks[b]||m.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Ja(a,b,d)),"normal"===f&&b in Sa&&(f=Sa[b]),""===c||c?(e=parseFloat(f),c===!0||m.isNumeric(e)?e||0:f):f}}),m.each(["height","width"],function(a,b){m.cssHooks[b]={get:function(a,c,d){return c?Oa.test(m.css(a,"display"))&&0===a.offsetWidth?m.swap(a,Ra,function(){return Ya(a,b,d)}):Ya(a,b,d):void 0},set:function(a,c,d){var e=d&&Ia(a);return Wa(a,c,d?Xa(a,b,d,k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,e),e):0)}}}),k.opacity||(m.cssHooks.opacity={get:function(a,b){return Na.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=m.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===m.trim(f.replace(Ma,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Ma.test(f)?f.replace(Ma,e):f+" "+e)}}),m.cssHooks.marginRight=La(k.reliableMarginRight,function(a,b){return b?m.swap(a,{display:"inline-block"},Ja,[a,"marginRight"]):void 0}),m.each({margin:"",padding:"",border:"Width"},function(a,b){m.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+T[d]+b]=f[d]||f[d-2]||f[0];return e}},Ga.test(a)||(m.cssHooks[a+b].set=Wa)}),m.fn.extend({css:function(a,b){return V(this,function(a,b,c){var d,e,f={},g=0;if(m.isArray(b)){for(d=Ia(a),e=b.length;e>g;g++)f[b[g]]=m.css(a,b[g],!1,d);return f}return void 0!==c?m.style(a,b,c):m.css(a,b)},a,b,arguments.length>1)},show:function(){return Va(this,!0)},hide:function(){return Va(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){U(this)?m(this).show():m(this).hide()})}});function Za(a,b,c,d,e){ return new Za.prototype.init(a,b,c,d,e)}m.Tween=Za,Za.prototype={constructor:Za,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(m.cssNumber[c]?"":"px")},cur:function(){var a=Za.propHooks[this.prop];return a&&a.get?a.get(this):Za.propHooks._default.get(this)},run:function(a){var b,c=Za.propHooks[this.prop];return this.options.duration?this.pos=b=m.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Za.propHooks._default.set(this),this}},Za.prototype.init.prototype=Za.prototype,Za.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=m.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){m.fx.step[a.prop]?m.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[m.cssProps[a.prop]]||m.cssHooks[a.prop])?m.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Za.propHooks.scrollTop=Za.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},m.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},m.fx=Za.prototype.init,m.fx.step={};var $a,_a,ab=/^(?:toggle|show|hide)$/,bb=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),cb=/queueHooks$/,db=[ib],eb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=bb.exec(b),f=e&&e[3]||(m.cssNumber[a]?"":"px"),g=(m.cssNumber[a]||"px"!==f&&+d)&&bb.exec(m.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,m.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function fb(){return setTimeout(function(){$a=void 0}),$a=m.now()}function gb(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=T[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function hb(a,b,c){for(var d,e=(eb[b]||[]).concat(eb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function ib(a,b,c){var d,e,f,g,h,i,j,l,n=this,o={},p=a.style,q=a.nodeType&&U(a),r=m._data(a,"fxshow");c.queue||(h=m._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,n.always(function(){n.always(function(){h.unqueued--,m.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=m.css(a,"display"),l="none"===j?m._data(a,"olddisplay")||Fa(a.nodeName):j,"inline"===l&&"none"===m.css(a,"float")&&(k.inlineBlockNeedsLayout&&"inline"!==Fa(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",k.shrinkWrapBlocks()||n.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],ab.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||m.style(a,d)}else j=void 0;if(m.isEmptyObject(o))"inline"===("none"===j?Fa(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=m._data(a,"fxshow",{}),f&&(r.hidden=!q),q?m(a).show():n.done(function(){m(a).hide()}),n.done(function(){var b;m._removeData(a,"fxshow");for(b in o)m.style(a,b,o[b])});for(d in o)g=hb(q?r[d]:0,d,n),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function jb(a,b){var c,d,e,f,g;for(c in a)if(d=m.camelCase(c),e=b[d],f=a[c],m.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=m.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function kb(a,b,c){var d,e,f=0,g=db.length,h=m.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=$a||fb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:m.extend({},b),opts:m.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:$a||fb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=m.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(jb(k,j.opts.specialEasing);g>f;f++)if(d=db[f].call(j,a,k,j.opts))return d;return m.map(k,hb,j),m.isFunction(j.opts.start)&&j.opts.start.call(a,j),m.fx.timer(m.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}m.Animation=m.extend(kb,{tweener:function(a,b){m.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],eb[c]=eb[c]||[],eb[c].unshift(b)},prefilter:function(a,b){b?db.unshift(a):db.push(a)}}),m.speed=function(a,b,c){var d=a&&"object"==typeof a?m.extend({},a):{complete:c||!c&&b||m.isFunction(a)&&a,duration:a,easing:c&&b||b&&!m.isFunction(b)&&b};return d.duration=m.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in m.fx.speeds?m.fx.speeds[d.duration]:m.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){m.isFunction(d.old)&&d.old.call(this),d.queue&&m.dequeue(this,d.queue)},d},m.fn.extend({fadeTo:function(a,b,c,d){return this.filter(U).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=m.isEmptyObject(a),f=m.speed(b,c,d),g=function(){var b=kb(this,m.extend({},a),f);(e||m._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=m.timers,g=m._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&cb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&m.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=m._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=m.timers,g=d?d.length:0;for(c.finish=!0,m.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),m.each(["toggle","show","hide"],function(a,b){var c=m.fn[b];m.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(gb(b,!0),a,d,e)}}),m.each({slideDown:gb("show"),slideUp:gb("hide"),slideToggle:gb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){m.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),m.timers=[],m.fx.tick=function(){var a,b=m.timers,c=0;for($a=m.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||m.fx.stop(),$a=void 0},m.fx.timer=function(a){m.timers.push(a),a()?m.fx.start():m.timers.pop()},m.fx.interval=13,m.fx.start=function(){_a||(_a=setInterval(m.fx.tick,m.fx.interval))},m.fx.stop=function(){clearInterval(_a),_a=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(a,b){return a=m.fx?m.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a,b,c,d,e;b=y.createElement("div"),b.setAttribute("className","t"),b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=y.createElement("select"),e=c.appendChild(y.createElement("option")),a=b.getElementsByTagName("input")[0],d.style.cssText="top:1px",k.getSetAttribute="t"!==b.className,k.style=/top/.test(d.getAttribute("style")),k.hrefNormalized="/a"===d.getAttribute("href"),k.checkOn=!!a.value,k.optSelected=e.selected,k.enctype=!!y.createElement("form").enctype,c.disabled=!0,k.optDisabled=!e.disabled,a=y.createElement("input"),a.setAttribute("value",""),k.input=""===a.getAttribute("value"),a.value="t",a.setAttribute("type","radio"),k.radioValue="t"===a.value}();var lb=/\r/g;m.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=m.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,m(this).val()):a,null==e?e="":"number"==typeof e?e+="":m.isArray(e)&&(e=m.map(e,function(a){return null==a?"":a+""})),b=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=m.valHooks[e.type]||m.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(lb,""):null==c?"":c)}}}),m.extend({valHooks:{option:{get:function(a){var b=m.find.attr(a,"value");return null!=b?b:m.trim(m.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&m.nodeName(c.parentNode,"optgroup"))){if(b=m(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=m.makeArray(b),g=e.length;while(g--)if(d=e[g],m.inArray(m.valHooks.option.get(d),f)>=0)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(a,b){return m.isArray(b)?a.checked=m.inArray(m(a).val(),b)>=0:void 0}},k.checkOn||(m.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var mb,nb,ob=m.expr.attrHandle,pb=/^(?:checked|selected)$/i,qb=k.getSetAttribute,rb=k.input;m.fn.extend({attr:function(a,b){return V(this,m.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){m.removeAttr(this,a)})}}),m.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===K?m.prop(a,b,c):(1===f&&m.isXMLDoc(a)||(b=b.toLowerCase(),d=m.attrHooks[b]||(m.expr.match.bool.test(b)?nb:mb)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=m.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void m.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=m.propFix[c]||c,m.expr.match.bool.test(c)?rb&&qb||!pb.test(c)?a[d]=!1:a[m.camelCase("default-"+c)]=a[d]=!1:m.attr(a,c,""),a.removeAttribute(qb?c:d)},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&"radio"===b&&m.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),nb={set:function(a,b,c){return b===!1?m.removeAttr(a,c):rb&&qb||!pb.test(c)?a.setAttribute(!qb&&m.propFix[c]||c,c):a[m.camelCase("default-"+c)]=a[c]=!0,c}},m.each(m.expr.match.bool.source.match(/\w+/g),function(a,b){var c=ob[b]||m.find.attr;ob[b]=rb&&qb||!pb.test(b)?function(a,b,d){var e,f;return d||(f=ob[b],ob[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,ob[b]=f),e}:function(a,b,c){return c?void 0:a[m.camelCase("default-"+b)]?b.toLowerCase():null}}),rb&&qb||(m.attrHooks.value={set:function(a,b,c){return m.nodeName(a,"input")?void(a.defaultValue=b):mb&&mb.set(a,b,c)}}),qb||(mb={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},ob.id=ob.name=ob.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},m.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:mb.set},m.attrHooks.contenteditable={set:function(a,b,c){mb.set(a,""===b?!1:b,c)}},m.each(["width","height"],function(a,b){m.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),k.style||(m.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var sb=/^(?:input|select|textarea|button|object)$/i,tb=/^(?:a|area)$/i;m.fn.extend({prop:function(a,b){return V(this,m.prop,a,b,arguments.length>1)},removeProp:function(a){return a=m.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),m.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!m.isXMLDoc(a),f&&(b=m.propFix[b]||b,e=m.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=m.find.attr(a,"tabindex");return b?parseInt(b,10):sb.test(a.nodeName)||tb.test(a.nodeName)&&a.href?0:-1}}}}),k.hrefNormalized||m.each(["href","src"],function(a,b){m.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),k.optSelected||(m.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this}),k.enctype||(m.propFix.enctype="encoding");var ub=/[\t\r\n\f]/g;m.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j="string"==typeof a&&a;if(m.isFunction(a))return this.each(function(b){m(this).addClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(E)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ub," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=m.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=0===arguments.length||"string"==typeof a&&a;if(m.isFunction(a))return this.each(function(b){m(this).removeClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(E)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ub," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?m.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(m.isFunction(a)?function(c){m(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=m(this),f=a.match(E)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===K||"boolean"===c)&&(this.className&&m._data(this,"__className__",this.className),this.className=this.className||a===!1?"":m._data(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(ub," ").indexOf(b)>=0)return!0;return!1}}),m.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){m.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),m.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var vb=m.now(),wb=/\?/,xb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;m.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=m.trim(b+"");return e&&!m.trim(e.replace(xb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():m.error("Invalid JSON: "+b)},m.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||m.error("Invalid XML: "+b),c};var yb,zb,Ab=/#.*$/,Bb=/([?&])_=[^&]*/,Cb=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Db=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Eb=/^(?:GET|HEAD)$/,Fb=/^\/\//,Gb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Hb={},Ib={},Jb="*/".concat("*");try{zb=location.href}catch(Kb){zb=y.createElement("a"),zb.href="",zb=zb.href}yb=Gb.exec(zb.toLowerCase())||[];function Lb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(m.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Mb(a,b,c,d){var e={},f=a===Ib;function g(h){var i;return e[h]=!0,m.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Nb(a,b){var c,d,e=m.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&m.extend(!0,a,c),a}function Ob(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Pb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:zb,type:"GET",isLocal:Db.test(yb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Jb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":m.parseJSON,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Nb(Nb(a,m.ajaxSettings),b):Nb(m.ajaxSettings,a)},ajaxPrefilter:Lb(Hb),ajaxTransport:Lb(Ib),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=m.ajaxSetup({},b),l=k.context||k,n=k.context&&(l.nodeType||l.jquery)?m(l):m.event,o=m.Deferred(),p=m.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!j){j={};while(b=Cb.exec(f))j[b[1].toLowerCase()]=b[2]}b=j[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return i&&i.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||zb)+"").replace(Ab,"").replace(Fb,yb[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=m.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(c=Gb.exec(k.url.toLowerCase()),k.crossDomain=!(!c||c[1]===yb[1]&&c[2]===yb[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(yb[3]||("http:"===yb[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=m.param(k.data,k.traditional)),Mb(Hb,k,b,v),2===t)return v;h=m.event&&k.global,h&&0===m.active++&&m.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!Eb.test(k.type),e=k.url,k.hasContent||(k.data&&(e=k.url+=(wb.test(e)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=Bb.test(e)?e.replace(Bb,"$1_="+vb++):e+(wb.test(e)?"&":"?")+"_="+vb++)),k.ifModified&&(m.lastModified[e]&&v.setRequestHeader("If-Modified-Since",m.lastModified[e]),m.etag[e]&&v.setRequestHeader("If-None-Match",m.etag[e])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+Jb+"; q=0.01":""):k.accepts["*"]);for(d in k.headers)v.setRequestHeader(d,k.headers[d]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(d in{success:1,error:1,complete:1})v[d](k[d]);if(i=Mb(Ib,k,b,v)){v.readyState=1,h&&n.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,i.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,c,d){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),i=void 0,f=d||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,c&&(u=Ob(k,v,c)),u=Pb(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(m.lastModified[e]=w),w=v.getResponseHeader("etag"),w&&(m.etag[e]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,h&&n.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),h&&(n.trigger("ajaxComplete",[v,k]),--m.active||m.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return m.get(a,b,c,"json")},getScript:function(a,b){return m.get(a,void 0,b,"script")}}),m.each(["get","post"],function(a,b){m[b]=function(a,c,d,e){return m.isFunction(c)&&(e=e||d,d=c,c=void 0),m.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),m._evalUrl=function(a){return m.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},m.fn.extend({wrapAll:function(a){if(m.isFunction(a))return this.each(function(b){m(this).wrapAll(a.call(this,b))});if(this[0]){var b=m(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return this.each(m.isFunction(a)?function(b){m(this).wrapInner(a.call(this,b))}:function(){var b=m(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=m.isFunction(a);return this.each(function(c){m(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()}}),m.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0||!k.reliableHiddenOffsets()&&"none"===(a.style&&a.style.display||m.css(a,"display"))},m.expr.filters.visible=function(a){return!m.expr.filters.hidden(a)};var Qb=/%20/g,Rb=/\[\]$/,Sb=/\r?\n/g,Tb=/^(?:submit|button|image|reset|file)$/i,Ub=/^(?:input|select|textarea|keygen)/i;function Vb(a,b,c,d){var e;if(m.isArray(b))m.each(b,function(b,e){c||Rb.test(a)?d(a,e):Vb(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==m.type(b))d(a,b);else for(e in b)Vb(a+"["+e+"]",b[e],c,d)}m.param=function(a,b){var c,d=[],e=function(a,b){b=m.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(a)||a.jquery&&!m.isPlainObject(a))m.each(a,function(){e(this.name,this.value)});else for(c in a)Vb(c,a[c],b,e);return d.join("&").replace(Qb,"+")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=m.prop(this,"elements");return a?m.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!m(this).is(":disabled")&&Ub.test(this.nodeName)&&!Tb.test(a)&&(this.checked||!W.test(a))}).map(function(a,b){var c=m(this).val();return null==c?null:m.isArray(c)?m.map(c,function(a){return{name:b.name,value:a.replace(Sb,"\r\n")}}):{name:b.name,value:c.replace(Sb,"\r\n")}}).get()}}),m.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Zb()||$b()}:Zb;var Wb=0,Xb={},Yb=m.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in Xb)Xb[a](void 0,!0)}),k.cors=!!Yb&&"withCredentials"in Yb,Yb=k.ajax=!!Yb,Yb&&m.ajaxTransport(function(a){if(!a.crossDomain||k.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Wb;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)void 0!==c[e]&&f.setRequestHeader(e,c[e]+"");f.send(a.hasContent&&a.data||null),b=function(c,e){var h,i,j;if(b&&(e||4===f.readyState))if(delete Xb[g],b=void 0,f.onreadystatechange=m.noop,e)4!==f.readyState&&f.abort();else{j={},h=f.status,"string"==typeof f.responseText&&(j.text=f.responseText);try{i=f.statusText}catch(k){i=""}h||!a.isLocal||a.crossDomain?1223===h&&(h=204):h=j.text?200:404}j&&d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=Xb[g]=b:b()},abort:function(){b&&b(void 0,!0)}}}});function Zb(){try{return new a.XMLHttpRequest}catch(b){}}function $b(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return m.globalEval(a),a}}}),m.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),m.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=y.head||m("head")[0]||y.documentElement;return{send:function(d,e){b=y.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||e(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var _b=[],ac=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=_b.pop()||m.expando+"_"+vb++;return this[a]=!0,a}}),m.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(ac.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&ac.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=m.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(ac,"$1"+e):b.jsonp!==!1&&(b.url+=(wb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||m.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,_b.push(e)),g&&m.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),m.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||y;var d=u.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=m.buildFragment([a],b,e),e&&e.length&&m(e).remove(),m.merge([],d.childNodes))};var bc=m.fn.load;m.fn.load=function(a,b,c){if("string"!=typeof a&&bc)return bc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=m.trim(a.slice(h,a.length)),a=a.slice(0,h)),m.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(f="POST"),g.length>0&&m.ajax({url:a,type:f,dataType:"html",data:b}).done(function(a){e=arguments,g.html(d?m("<div>").append(m.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){m.fn[b]=function(a){return this.on(b,a)}}),m.expr.filters.animated=function(a){return m.grep(m.timers,function(b){return a===b.elem}).length};var cc=a.document.documentElement;function dc(a){return m.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}m.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,"position"),l=m(a),n={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=m.css(a,"top"),i=m.css(a,"left"),j=("absolute"===k||"fixed"===k)&&m.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),m.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(n.top=b.top-h.top+g),null!=b.left&&(n.left=b.left-h.left+e),"using"in b?b.using.call(a,n):l.css(n)}},m.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){m.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,m.contains(b,e)?(typeof e.getBoundingClientRect!==K&&(d=e.getBoundingClientRect()),c=dc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===m.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),m.nodeName(a[0],"html")||(c=a.offset()),c.top+=m.css(a[0],"borderTopWidth",!0),c.left+=m.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-m.css(d,"marginTop",!0),left:b.left-c.left-m.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||cc;while(a&&!m.nodeName(a,"html")&&"static"===m.css(a,"position"))a=a.offsetParent;return a||cc})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);m.fn[a]=function(d){return V(this,function(a,d,e){var f=dc(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?m(f).scrollLeft():e,c?e:m(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),m.each(["top","left"],function(a,b){m.cssHooks[b]=La(k.pixelPosition,function(a,c){return c?(c=Ja(a,b),Ha.test(c)?m(a).position()[b]+"px":c):void 0})}),m.each({Height:"height",Width:"width"},function(a,b){m.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){m.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return V(this,function(b,c,d){var e;return m.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?m.css(b,c,g):m.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return m});var ec=a.jQuery,fc=a.$;return m.noConflict=function(b){return a.$===m&&(a.$=fc),b&&a.jQuery===m&&(a.jQuery=ec),m},typeof b===K&&(a.jQuery=a.$=m),m}); //# sourceMappingURL=jquery.min.map
assets/js/main.min.js
LAIHAOTAO/laihaotao.github.io
function updateNav(){var e=$btn.hasClass("hidden")?$nav.width():$nav.width()-$btn.width()-30;$vlinks.width()>e?(breaks.push($vlinks.width()),$vlinks.children().last().prependTo($hlinks),$btn.hasClass("hidden")&&$btn.removeClass("hidden")):(e>breaks[breaks.length-1]&&($hlinks.children().first().appendTo($vlinks),breaks.pop()),breaks.length<1&&($btn.addClass("hidden"),$hlinks.addClass("hidden"))),$btn.attr("count",breaks.length),$vlinks.width()>e&&updateNav()}!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=!!e&&"length"in e&&e.length,n=pe.type(e);return"function"!==n&&!pe.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t,n){if(pe.isFunction(t))return pe.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)return pe.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(Te.test(t))return pe.filter(t,e,n);t=pe.filter(t,e)}return pe.grep(e,function(e){return pe.inArray(e,t)>-1!==n})}function r(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function o(e){var t={};return pe.each(e.match(Ae)||[],function(e,n){t[n]=!0}),t}function a(){ie.addEventListener?(ie.removeEventListener("DOMContentLoaded",s),e.removeEventListener("load",s)):(ie.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(ie.addEventListener||"load"===e.event.type||"complete"===ie.readyState)&&(a(),pe.ready())}function l(e,t,n){if(void 0===n&&1===e.nodeType){var i="data-"+t.replace(He,"-$1").toLowerCase();if(n=e.getAttribute(i),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Ie.test(n)?pe.parseJSON(n):n)}catch(e){}pe.data(e,t,n)}else n=void 0}return n}function u(e){var t;for(t in e)if(("data"!==t||!pe.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,i){if(De(e)){var r,o,a=pe.expando,s=e.nodeType,l=s?pe.cache:e,u=s?e[a]:e[a]&&a;if(u&&l[u]&&(i||l[u].data)||void 0!==n||"string"!=typeof t)return u||(u=s?e[a]=ne.pop()||pe.guid++:a),l[u]||(l[u]=s?{}:{toJSON:pe.noop}),"object"!=typeof t&&"function"!=typeof t||(i?l[u]=pe.extend(l[u],t):l[u].data=pe.extend(l[u].data,t)),o=l[u],i||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[pe.camelCase(t)]=n),"string"==typeof t?(r=o[t],null==r&&(r=o[pe.camelCase(t)])):r=o,r}}function d(e,t,n){if(De(e)){var i,r,o=e.nodeType,a=o?pe.cache:e,s=o?e[pe.expando]:pe.expando;if(a[s]){if(t&&(i=n?a[s]:a[s].data)){pe.isArray(t)?t=t.concat(pe.map(t,pe.camelCase)):t in i?t=[t]:(t=pe.camelCase(t),t=t in i?[t]:t.split(" ")),r=t.length;for(;r--;)delete i[t[r]];if(n?!u(i):!pe.isEmptyObject(i))return}(n||(delete a[s].data,u(a[s])))&&(o?pe.cleanData([e],!0):de.deleteExpando||a!=a.window?delete a[s]:a[s]=void 0)}}}function f(e,t,n,i){var r,o=1,a=20,s=i?function(){return i.cur()}:function(){return pe.css(e,t,"")},l=s(),u=n&&n[3]||(pe.cssNumber[t]?"":"px"),c=(pe.cssNumber[t]||"px"!==u&&+l)&&Me.exec(pe.css(e,t));if(c&&c[3]!==u){u=u||c[3],n=n||[],c=+l||1;do o=o||".5",c/=o,pe.style(e,t,c+u);while(o!==(o=s()/l)&&1!==o&&--a)}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}function p(e){var t=We.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function h(e,t){var n,i,r=0,o="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(i=n[r]);r++)!t||pe.nodeName(i,t)?o.push(i):pe.merge(o,h(i,t));return void 0===t||t&&pe.nodeName(e,t)?pe.merge([e],o):o}function m(e,t){for(var n,i=0;null!=(n=e[i]);i++)pe._data(n,"globalEval",!t||pe._data(t[i],"globalEval"))}function g(e){qe.test(e.type)&&(e.defaultChecked=e.checked)}function v(e,t,n,i,r){for(var o,a,s,l,u,c,d,f=e.length,v=p(t),y=[],b=0;f>b;b++)if(a=e[b],a||0===a)if("object"===pe.type(a))pe.merge(y,a.nodeType?[a]:a);else if(Ye.test(a)){for(l=l||v.appendChild(t.createElement("div")),u=($e.exec(a)||["",""])[1].toLowerCase(),d=Xe[u]||Xe._default,l.innerHTML=d[1]+pe.htmlPrefilter(a)+d[2],o=d[0];o--;)l=l.lastChild;if(!de.leadingWhitespace&&Re.test(a)&&y.push(t.createTextNode(Re.exec(a)[0])),!de.tbody)for(a="table"!==u||Ue.test(a)?"<table>"!==d[1]||Ue.test(a)?0:l:l.firstChild,o=a&&a.childNodes.length;o--;)pe.nodeName(c=a.childNodes[o],"tbody")&&!c.childNodes.length&&a.removeChild(c);for(pe.merge(y,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=v.lastChild}else y.push(t.createTextNode(a));for(l&&v.removeChild(l),de.appendChecked||pe.grep(h(y,"input"),g),b=0;a=y[b++];)if(i&&pe.inArray(a,i)>-1)r&&r.push(a);else if(s=pe.contains(a.ownerDocument,a),l=h(v.appendChild(a),"script"),s&&m(l),n)for(o=0;a=l[o++];)ze.test(a.type||"")&&n.push(a);return l=null,v}function y(){return!0}function b(){return!1}function x(){try{return ie.activeElement}catch(e){}}function w(e,t,n,i,r,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(i=i||n,n=void 0);for(s in t)w(e,s,n,i,t[s],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),r===!1)r=b;else if(!r)return e;return 1===o&&(a=r,r=function(e){return pe().off(e),a.apply(this,arguments)},r.guid=a.guid||(a.guid=pe.guid++)),e.each(function(){pe.event.add(this,t,r,i,n)})}function C(e,t){return pe.nodeName(e,"table")&&pe.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function T(e){return e.type=(null!==pe.find.attr(e,"type"))+"/"+e.type,e}function k(e){var t=rt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function E(e,t){if(1===t.nodeType&&pe.hasData(e)){var n,i,r,o=pe._data(e),a=pe._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(i=0,r=s[n].length;r>i;i++)pe.event.add(t,n,s[n][i])}a.data&&(a.data=pe.extend({},a.data))}}function S(e,t){var n,i,r;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!de.noCloneEvent&&t[pe.expando]){r=pe._data(t);for(i in r.events)pe.removeEvent(t,i,r.handle);t.removeAttribute(pe.expando)}"script"===n&&t.text!==e.text?(T(t).text=e.text,k(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),de.html5Clone&&e.innerHTML&&!pe.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&qe.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}function N(e,t,n,i){t=oe.apply([],t);var r,o,a,s,l,u,c=0,d=e.length,f=d-1,p=t[0],m=pe.isFunction(p);if(m||d>1&&"string"==typeof p&&!de.checkClone&&it.test(p))return e.each(function(r){var o=e.eq(r);m&&(t[0]=p.call(this,r,o.html())),N(o,t,n,i)});if(d&&(u=v(t,e[0].ownerDocument,!1,e,i),r=u.firstChild,1===u.childNodes.length&&(u=r),r||i)){for(s=pe.map(h(u,"script"),T),a=s.length;d>c;c++)o=u,c!==f&&(o=pe.clone(o,!0,!0),a&&pe.merge(s,h(o,"script"))),n.call(e[c],o,c);if(a)for(l=s[s.length-1].ownerDocument,pe.map(s,k),c=0;a>c;c++)o=s[c],ze.test(o.type||"")&&!pe._data(o,"globalEval")&&pe.contains(l,o)&&(o.src?pe._evalUrl&&pe._evalUrl(o.src):pe.globalEval((o.text||o.textContent||o.innerHTML||"").replace(ot,"")));u=r=null}return e}function L(e,t,n){for(var i,r=t?pe.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||pe.cleanData(h(i)),i.parentNode&&(n&&pe.contains(i.ownerDocument,i)&&m(h(i,"script")),i.parentNode.removeChild(i));return e}function A(e,t){var n=pe(t.createElement(e)).appendTo(t.body),i=pe.css(n[0],"display");return n.detach(),i}function j(e){var t=ie,n=ut[e];return n||(n=A(e,t),"none"!==n&&n||(lt=(lt||pe("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=(lt[0].contentWindow||lt[0].contentDocument).document,t.write(),t.close(),n=A(e,t),lt.detach()),ut[e]=n),n}function _(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function D(e){if(e in kt)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=Tt.length;n--;)if(e=Tt[n]+t,e in kt)return e}function I(e,t){for(var n,i,r,o=[],a=0,s=e.length;s>a;a++)i=e[a],i.style&&(o[a]=pe._data(i,"olddisplay"),n=i.style.display,t?(o[a]||"none"!==n||(i.style.display=""),""===i.style.display&&Be(i)&&(o[a]=pe._data(i,"olddisplay",j(i.nodeName)))):(r=Be(i),(n&&"none"!==n||!r)&&pe._data(i,"olddisplay",r?n:pe.css(i,"display"))));for(a=0;s>a;a++)i=e[a],i.style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?o[a]||"":"none"));return e}function H(e,t,n){var i=xt.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function O(e,t,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===t?1:0,a=0;4>o;o+=2)"margin"===n&&(a+=pe.css(e,n+Pe[o],!0,r)),i?("content"===n&&(a-=pe.css(e,"padding"+Pe[o],!0,r)),"margin"!==n&&(a-=pe.css(e,"border"+Pe[o]+"Width",!0,r))):(a+=pe.css(e,"padding"+Pe[o],!0,r),"padding"!==n&&(a+=pe.css(e,"border"+Pe[o]+"Width",!0,r)));return a}function M(e,t,n){var i=!0,r="width"===t?e.offsetWidth:e.offsetHeight,o=ht(e),a=de.boxSizing&&"border-box"===pe.css(e,"boxSizing",!1,o);if(0>=r||null==r){if(r=mt(e,t,o),(0>r||null==r)&&(r=e.style[t]),dt.test(r))return r;i=a&&(de.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+O(e,t,n||(a?"border":"content"),i,o)+"px"}function P(e,t,n,i,r){return new P.prototype.init(e,t,n,i,r)}function B(){return e.setTimeout(function(){Et=void 0}),Et=pe.now()}function F(e,t){var n,i={height:e},r=0;for(t=t?1:0;4>r;r+=2-t)n=Pe[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function q(e,t,n){for(var i,r=(R.tweeners[t]||[]).concat(R.tweeners["*"]),o=0,a=r.length;a>o;o++)if(i=r[o].call(n,t,e))return i}function $(e,t,n){var i,r,o,a,s,l,u,c,d=this,f={},p=e.style,h=e.nodeType&&Be(e),m=pe._data(e,"fxshow");n.queue||(s=pe._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,pe.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],u=pe.css(e,"display"),c="none"===u?pe._data(e,"olddisplay")||j(e.nodeName):u,"inline"===c&&"none"===pe.css(e,"float")&&(de.inlineBlockNeedsLayout&&"inline"!==j(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",de.shrinkWrapBlocks()||d.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(i in t)if(r=t[i],Nt.exec(r)){if(delete t[i],o=o||"toggle"===r,r===(h?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;h=!0}f[i]=m&&m[i]||pe.style(e,i)}else u=void 0;if(pe.isEmptyObject(f))"inline"===("none"===u?j(e.nodeName):u)&&(p.display=u);else{m?"hidden"in m&&(h=m.hidden):m=pe._data(e,"fxshow",{}),o&&(m.hidden=!h),h?pe(e).show():d.done(function(){pe(e).hide()}),d.done(function(){var t;pe._removeData(e,"fxshow");for(t in f)pe.style(e,t,f[t])});for(i in f)a=q(h?m[i]:0,i,d),i in m||(m[i]=a.start,h&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}}function z(e,t){var n,i,r,o,a;for(n in e)if(i=pe.camelCase(n),r=t[i],o=e[n],pe.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),a=pe.cssHooks[i],a&&"expand"in a){o=a.expand(o),delete e[i];for(n in o)n in e||(e[n]=o[n],t[n]=r)}else t[i]=r}function R(e,t,n){var i,r,o=0,a=R.prefilters.length,s=pe.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=Et||B(),n=Math.max(0,u.startTime+u.duration-t),i=n/u.duration||0,o=1-i,a=0,l=u.tweens.length;l>a;a++)u.tweens[a].run(o);return s.notifyWith(e,[u,o,n]),1>o&&l?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:pe.extend({},t),opts:pe.extend(!0,{specialEasing:{},easing:pe.easing._default},n),originalProperties:t,originalOptions:n,startTime:Et||B(),duration:n.duration,tweens:[],createTween:function(t,n){var i=pe.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(i),i},stop:function(t){var n=0,i=t?u.tweens.length:0;if(r)return this;for(r=!0;i>n;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),c=u.props;for(z(c,u.opts.specialEasing);a>o;o++)if(i=R.prefilters[o].call(u,e,c,u.opts))return pe.isFunction(i.stop)&&(pe._queueHooks(u.elem,u.opts.queue).stop=pe.proxy(i.stop,i)),i;return pe.map(c,q,u),pe.isFunction(u.opts.start)&&u.opts.start.call(e,u),pe.fx.timer(pe.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function W(e){return pe.attr(e,"class")||""}function X(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(Ae)||[];if(pe.isFunction(n))for(;i=o[r++];)"+"===i.charAt(0)?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Y(e,t,n,i){function r(s){var l;return o[s]=!0,pe.each(e[s]||[],function(e,s){var u=s(t,n,i);return"string"!=typeof u||a||o[u]?a?!(l=u):void 0:(t.dataTypes.unshift(u),r(u),!1)}),l}var o={},a=e===Jt;return r(t.dataTypes[0])||!o["*"]&&r("*")}function U(e,t){var n,i,r=pe.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((r[i]?e:n||(n={}))[i]=t[i]);return n&&pe.extend(!0,e,n),e}function V(e,t,n){for(var i,r,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(a in s)if(s[a]&&s[a].test(r)){l.unshift(a);break}if(l[0]in n)o=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){o=a;break}i||(i=a)}o=o||i}return o?(o!==l[0]&&l.unshift(o),n[o]):void 0}function G(e,t,n,i){var r,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=u[l+" "+o]||u["* "+o],!a)for(r in u)if(s=r.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){a===!0?a=u[r]:u[r]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}function Q(e){return e.style&&e.style.display||pe.css(e,"display")}function Z(e){if(!pe.contains(e.ownerDocument||ie,e))return!0;for(;e&&1===e.nodeType;){if("none"===Q(e)||"hidden"===e.type)return!0;e=e.parentNode}return!1}function J(e,t,n,i){var r;if(pe.isArray(t))pe.each(t,function(t,r){n||rn.test(e)?i(e,r):J(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)});else if(n||"object"!==pe.type(t))i(e,t);else for(r in t)J(e+"["+r+"]",t[r],n,i)}function K(){try{return new e.XMLHttpRequest}catch(e){}}function ee(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function te(e){return pe.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var ne=[],ie=e.document,re=ne.slice,oe=ne.concat,ae=ne.push,se=ne.indexOf,le={},ue=le.toString,ce=le.hasOwnProperty,de={},fe="1.12.4",pe=function(e,t){return new pe.fn.init(e,t)},he=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,me=/^-ms-/,ge=/-([\da-z])/gi,ve=function(e,t){return t.toUpperCase()};pe.fn=pe.prototype={jquery:fe,constructor:pe,selector:"",length:0,toArray:function(){return re.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:re.call(this)},pushStack:function(e){var t=pe.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return pe.each(this,e)},map:function(e){return this.pushStack(pe.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(re.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ae,sort:ne.sort,splice:ne.splice},pe.extend=pe.fn.extend=function(){var e,t,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||pe.isFunction(a)||(a={}),s===l&&(a=this,s--);l>s;s++)if(null!=(r=arguments[s]))for(i in r)e=a[i],n=r[i],a!==n&&(u&&n&&(pe.isPlainObject(n)||(t=pe.isArray(n)))?(t?(t=!1,o=e&&pe.isArray(e)?e:[]):o=e&&pe.isPlainObject(e)?e:{},a[i]=pe.extend(u,o,n)):void 0!==n&&(a[i]=n));return a},pe.extend({expando:"jQuery"+(fe+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===pe.type(e)},isArray:Array.isArray||function(e){return"array"===pe.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){var t=e&&e.toString();return!pe.isArray(e)&&t-parseFloat(t)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==pe.type(e)||e.nodeType||pe.isWindow(e))return!1;try{if(e.constructor&&!ce.call(e,"constructor")&&!ce.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(!de.ownFirst)for(t in e)return ce.call(e,t);for(t in e);return void 0===t||ce.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?le[ue.call(e)]||"object":typeof e},globalEval:function(t){t&&pe.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(me,"ms-").replace(ge,ve)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var i,r=0;if(n(e))for(i=e.length;i>r&&t.call(e[r],r,e[r])!==!1;r++);else for(r in e)if(t.call(e[r],r,e[r])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(he,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(n(Object(e))?pe.merge(i,"string"==typeof e?[e]:e):ae.call(i,e)),i},inArray:function(e,t,n){var i;if(t){if(se)return se.call(t,e,n);for(i=t.length,n=n?0>n?Math.max(0,i+n):n:0;i>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;n>i;)e[r++]=t[i++];if(n!==n)for(;void 0!==t[i];)e[r++]=t[i++];return e.length=r,e},grep:function(e,t,n){for(var i,r=[],o=0,a=e.length,s=!n;a>o;o++)i=!t(e[o],o),i!==s&&r.push(e[o]);return r},map:function(e,t,i){var r,o,a=0,s=[];if(n(e))for(r=e.length;r>a;a++)o=t(e[a],a,i),null!=o&&s.push(o);else for(a in e)o=t(e[a],a,i),null!=o&&s.push(o);return oe.apply([],s)},guid:1,proxy:function(e,t){var n,i,r;return"string"==typeof t&&(r=e[t],t=e,e=r),pe.isFunction(e)?(n=re.call(arguments,2),i=function(){return e.apply(t||this,n.concat(re.call(arguments)))},i.guid=e.guid=e.guid||pe.guid++,i):void 0},now:function(){return+new Date},support:de}),"function"==typeof Symbol&&(pe.fn[Symbol.iterator]=ne[Symbol.iterator]),pe.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){le["[object "+t+"]"]=t.toLowerCase()});var ye=function(e){function t(e,t,n,i){var r,o,a,s,l,u,d,p,h=t&&t.ownerDocument,m=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==m&&9!==m&&11!==m)return n;if(!i&&((t?t.ownerDocument||t:q)!==D&&_(t),t=t||D,H)){if(11!==m&&(u=ve.exec(e)))if(r=u[1]){if(9===m){if(!(a=t.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(h&&(a=h.getElementById(r))&&B(t,a)&&a.id===r)return n.push(a),n}else{if(u[2])return J.apply(n,t.getElementsByTagName(e)),n;if((r=u[3])&&w.getElementsByClassName&&t.getElementsByClassName)return J.apply(n,t.getElementsByClassName(r)),n}if(w.qsa&&!X[e+" "]&&(!O||!O.test(e))){if(1!==m)h=t,p=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(be,"\\$&"):t.setAttribute("id",s=F),d=E(e),o=d.length,l=fe.test(s)?"#"+s:"[id='"+s+"']";o--;)d[o]=l+" "+f(d[o]);p=d.join(","),h=ye.test(e)&&c(t.parentNode)||t}if(p)try{return J.apply(n,h.querySelectorAll(p)),n}catch(e){}finally{s===F&&t.removeAttribute("id")}}}return N(e.replace(se,"$1"),t,n,i)}function n(){function e(n,i){return t.push(n+" ")>C.cacheLength&&delete e[t.shift()],e[n+" "]=i}var t=[];return e}function i(e){return e[F]=!0,e}function r(e){var t=D.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),i=n.length;i--;)C.attrHandle[n[i]]=t}function a(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||U)-(~e.sourceIndex||U);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function u(e){return i(function(t){return t=+t,i(function(n,i){for(var r,o=e([],n.length,t),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function d(){}function f(e){for(var t=0,n=e.length,i="";n>t;t++)i+=e[t].value;return i}function p(e,t,n){var i=t.dir,r=n&&"parentNode"===i,o=z++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||r)return e(t,n,o)}:function(t,n,a){var s,l,u,c=[$,o];if(a){for(;t=t[i];)if((1===t.nodeType||r)&&e(t,n,a))return!0}else for(;t=t[i];)if(1===t.nodeType||r){if(u=t[F]||(t[F]={}),l=u[t.uniqueID]||(u[t.uniqueID]={}),(s=l[i])&&s[0]===$&&s[1]===o)return c[2]=s[2];if(l[i]=c,c[2]=e(t,n,a))return!0}}}function h(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function m(e,n,i){for(var r=0,o=n.length;o>r;r++)t(e,n[r],i);return i}function g(e,t,n,i,r){for(var o,a=[],s=0,l=e.length,u=null!=t;l>s;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),u&&t.push(s)));return a}function v(e,t,n,r,o,a){return r&&!r[F]&&(r=v(r)),o&&!o[F]&&(o=v(o,a)),i(function(i,a,s,l){var u,c,d,f=[],p=[],h=a.length,v=i||m(t||"*",s.nodeType?[s]:s,[]),y=!e||!i&&t?v:g(v,f,e,s,l),b=n?o||(i?e:h||r)?[]:a:y;if(n&&n(y,b,s,l),r)for(u=g(b,p),r(u,[],s,l),c=u.length;c--;)(d=u[c])&&(b[p[c]]=!(y[p[c]]=d));if(i){if(o||e){if(o){for(u=[],c=b.length;c--;)(d=b[c])&&u.push(y[c]=d);o(null,b=[],u,l)}for(c=b.length;c--;)(d=b[c])&&(u=o?ee(i,d):f[c])>-1&&(i[u]=!(a[u]=d))}}else b=g(b===a?b.splice(h,b.length):b),o?o(null,a,b,l):J.apply(a,b)})}function y(e){for(var t,n,i,r=e.length,o=C.relative[e[0].type],a=o||C.relative[" "],s=o?1:0,l=p(function(e){return e===t},a,!0),u=p(function(e){return ee(t,e)>-1},a,!0),c=[function(e,n,i){var r=!o&&(i||n!==L)||((t=n).nodeType?l(e,n,i):u(e,n,i));return t=null,r}];r>s;s++)if(n=C.relative[e[s].type])c=[p(h(c),n)];else{if(n=C.filter[e[s].type].apply(null,e[s].matches),n[F]){for(i=++s;r>i&&!C.relative[e[i].type];i++);return v(s>1&&h(c),s>1&&f(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),n,i>s&&y(e.slice(s,i)),r>i&&y(e=e.slice(i)),r>i&&f(e))}c.push(n)}return h(c)}function b(e,n){var r=n.length>0,o=e.length>0,a=function(i,a,s,l,u){var c,d,f,p=0,h="0",m=i&&[],v=[],y=L,b=i||o&&C.find.TAG("*",u),x=$+=null==y?1:Math.random()||.1,w=b.length;for(u&&(L=a===D||a||u);h!==w&&null!=(c=b[h]);h++){if(o&&c){for(d=0,a||c.ownerDocument===D||(_(c),s=!H);f=e[d++];)if(f(c,a||D,s)){l.push(c);break}u&&($=x)}r&&((c=!f&&c)&&p--,i&&m.push(c))}if(p+=h,r&&h!==p){for(d=0;f=n[d++];)f(m,v,a,s);if(i){if(p>0)for(;h--;)m[h]||v[h]||(v[h]=Q.call(l));v=g(v)}J.apply(l,v),u&&!i&&v.length>0&&p+n.length>1&&t.uniqueSort(l)}return u&&($=x,L=y),m};return r?i(a):a}var x,w,C,T,k,E,S,N,L,A,j,_,D,I,H,O,M,P,B,F="sizzle"+1*new Date,q=e.document,$=0,z=0,R=n(),W=n(),X=n(),Y=function(e,t){return e===t&&(j=!0),0},U=1<<31,V={}.hasOwnProperty,G=[],Q=G.pop,Z=G.push,J=G.push,K=G.slice,ee=function(e,t){for(var n=0,i=e.length;i>n;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",ie="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",re="\\["+ne+"*("+ie+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+ne+"*\\]",oe=":("+ie+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+re+")*)|.*)\\)|)",ae=new RegExp(ne+"+","g"),se=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),le=new RegExp("^"+ne+"*,"+ne+"*"),ue=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),ce=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),de=new RegExp(oe),fe=new RegExp("^"+ie+"$"),pe={ID:new RegExp("^#("+ie+")"),CLASS:new RegExp("^\\.("+ie+")"),TAG:new RegExp("^("+ie+"|[*])"),ATTR:new RegExp("^"+re),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,be=/'|\\/g,xe=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),we=function(e,t,n){var i="0x"+t-65536;return i!==i||n?t:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},Ce=function(){_()};try{J.apply(G=K.call(q.childNodes),q.childNodes),G[q.childNodes.length].nodeType}catch(e){J={apply:G.length?function(e,t){Z.apply(e,K.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}w=t.support={},k=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},_=t.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:q;return i!==D&&9===i.nodeType&&i.documentElement?(D=i,I=D.documentElement,H=!k(D),(n=D.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Ce,!1):n.attachEvent&&n.attachEvent("onunload",Ce)),w.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=r(function(e){return e.appendChild(D.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=ge.test(D.getElementsByClassName),w.getById=r(function(e){return I.appendChild(e).id=F,!D.getElementsByName||!D.getElementsByName(F).length}),w.getById?(C.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&H){var n=t.getElementById(e);return n?[n]:[]}},C.filter.ID=function(e){var t=e.replace(xe,we);return function(e){return e.getAttribute("id")===t}}):(delete C.find.ID,C.filter.ID=function(e){var t=e.replace(xe,we);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),C.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},C.find.CLASS=w.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&H?t.getElementsByClassName(e):void 0},M=[],O=[],(w.qsa=ge.test(D.querySelectorAll))&&(r(function(e){I.appendChild(e).innerHTML="<a id='"+F+"'></a><select id='"+F+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&O.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||O.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+F+"-]").length||O.push("~="),e.querySelectorAll(":checked").length||O.push(":checked"),e.querySelectorAll("a#"+F+"+*").length||O.push(".#.+[+~]")}),r(function(e){var t=D.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&O.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||O.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),O.push(",.*:")})),(w.matchesSelector=ge.test(P=I.matches||I.webkitMatchesSelector||I.mozMatchesSelector||I.oMatchesSelector||I.msMatchesSelector))&&r(function(e){w.disconnectedMatch=P.call(e,"div"),P.call(e,"[s!='']:x"),M.push("!=",oe)}),O=O.length&&new RegExp(O.join("|")),M=M.length&&new RegExp(M.join("|")),t=ge.test(I.compareDocumentPosition),B=t||ge.test(I.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Y=t?function(e,t){if(e===t)return j=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===D||e.ownerDocument===q&&B(q,e)?-1:t===D||t.ownerDocument===q&&B(q,t)?1:A?ee(A,e)-ee(A,t):0:4&n?-1:1)}:function(e,t){if(e===t)return j=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,s=[e],l=[t];if(!r||!o)return e===D?-1:t===D?1:r?-1:o?1:A?ee(A,e)-ee(A,t):0;if(r===o)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;s[i]===l[i];)i++;return i?a(s[i],l[i]):s[i]===q?-1:l[i]===q?1:0},D):D},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==D&&_(e),n=n.replace(ce,"='$1']"),w.matchesSelector&&H&&!X[n+" "]&&(!M||!M.test(n))&&(!O||!O.test(n)))try{var i=P.call(e,n);if(i||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return t(n,D,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==D&&_(e),B(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==D&&_(e);var n=C.attrHandle[t.toLowerCase()],i=n&&V.call(C.attrHandle,t.toLowerCase())?n(e,t,!H):void 0;return void 0!==i?i:w.attributes||!H?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],i=0,r=0;if(j=!w.detectDuplicates,A=!w.sortStable&&e.slice(0),e.sort(Y),j){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return A=null,e},T=t.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=T(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=T(t);return n},C=t.selectors={cacheLength:50,createPseudo:i,match:pe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(xe,we),e[3]=(e[3]||e[4]||e[5]||"").replace(xe,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&de.test(n)&&(t=E(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(xe,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=R[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&R(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(r){var o=t.attr(r,e);return null==o?"!="===n:!n||(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&o.indexOf(i)>-1:"$="===n?i&&o.slice(-i.length)===i:"~="===n?(" "+o.replace(ae," ")+" ").indexOf(i)>-1:"|="===n&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t; return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,f,p,h,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(g){if(o){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(f=g,d=f[F]||(f[F]={}),c=d[f.uniqueID]||(d[f.uniqueID]={}),u=c[e]||[],p=u[0]===$&&u[1],b=p&&u[2],f=p&&g.childNodes[p];f=++p&&f&&f[m]||(b=p=0)||h.pop();)if(1===f.nodeType&&++b&&f===t){c[e]=[$,p,b];break}}else if(y&&(f=t,d=f[F]||(f[F]={}),c=d[f.uniqueID]||(d[f.uniqueID]={}),u=c[e]||[],p=u[0]===$&&u[1],b=p),b===!1)for(;(f=++p&&f&&f[m]||(b=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++b||(y&&(d=f[F]||(f[F]={}),c=d[f.uniqueID]||(d[f.uniqueID]={}),c[e]=[$,b]),f!==t)););return b-=r,b===i||b%i===0&&b/i>=0}}},PSEUDO:function(e,n){var r,o=C.pseudos[e]||C.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[F]?o(n):o.length>1?(r=[e,e,"",n],C.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,t){for(var i,r=o(e,n),a=r.length;a--;)i=ee(e,r[a]),e[i]=!(t[i]=r[a])}):function(e){return o(e,0,r)}):o}},pseudos:{not:i(function(e){var t=[],n=[],r=S(e.replace(se,"$1"));return r[F]?i(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:i(function(e){return function(n){return t(e,n).length>0}}),contains:i(function(e){return e=e.replace(xe,we),function(t){return(t.textContent||t.innerText||T(t)).indexOf(e)>-1}}),lang:i(function(e){return fe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(xe,we).toLowerCase(),function(t){var n;do if(n=H?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===I},focus:function(e){return e===D.activeElement&&(!D.hasFocus||D.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!C.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[0>n?n+t:n]}),even:u(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:u(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:u(function(e,t,n){for(var i=0>n?n+t:n;--i>=0;)e.push(i);return e}),gt:u(function(e,t,n){for(var i=0>n?n+t:n;++i<t;)e.push(i);return e})}},C.pseudos.nth=C.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[x]=s(x);for(x in{submit:!0,reset:!0})C.pseudos[x]=l(x);return d.prototype=C.filters=C.pseudos,C.setFilters=new d,E=t.tokenize=function(e,n){var i,r,o,a,s,l,u,c=W[e+" "];if(c)return n?0:c.slice(0);for(s=e,l=[],u=C.preFilter;s;){i&&!(r=le.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=ue.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(se," ")}),s=s.slice(i.length));for(a in C.filter)!(r=pe[a].exec(s))||u[a]&&!(r=u[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return n?s.length:s?t.error(e):W(e,l).slice(0)},S=t.compile=function(e,t){var n,i=[],r=[],o=X[e+" "];if(!o){for(t||(t=E(e)),n=t.length;n--;)o=y(t[n]),o[F]?i.push(o):r.push(o);o=X(e,b(r,i)),o.selector=e}return o},N=t.select=function(e,t,n,i){var r,o,a,s,l,u="function"==typeof e&&e,d=!i&&E(e=u.selector||e);if(n=n||[],1===d.length){if(o=d[0]=d[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&w.getById&&9===t.nodeType&&H&&C.relative[o[1].type]){if(t=(C.find.ID(a.matches[0].replace(xe,we),t)||[])[0],!t)return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=pe.needsContext.test(e)?0:o.length;r--&&(a=o[r],!C.relative[s=a.type]);)if((l=C.find[s])&&(i=l(a.matches[0].replace(xe,we),ye.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&f(o),!e)return J.apply(n,i),n;break}}return(u||S(e,d))(i,t,!H,n,!t||ye.test(e)&&c(t.parentNode)||t),n},w.sortStable=F.split("").sort(Y).join("")===F,w.detectDuplicates=!!j,_(),w.sortDetached=r(function(e){return 1&e.compareDocumentPosition(D.createElement("div"))}),r(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&r(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),r(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,n){var i;return n?void 0:e[t]===!0?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),t}(e);pe.find=ye,pe.expr=ye.selectors,pe.expr[":"]=pe.expr.pseudos,pe.uniqueSort=pe.unique=ye.uniqueSort,pe.text=ye.getText,pe.isXMLDoc=ye.isXML,pe.contains=ye.contains;var be=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&pe(e).is(n))break;i.push(e)}return i},xe=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},we=pe.expr.match.needsContext,Ce=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Te=/^.[^:#\[\.,]*$/;pe.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?pe.find.matchesSelector(i,e)?[i]:[]:pe.find.matches(e,pe.grep(t,function(e){return 1===e.nodeType}))},pe.fn.extend({find:function(e){var t,n=[],i=this,r=i.length;if("string"!=typeof e)return this.pushStack(pe(e).filter(function(){for(t=0;r>t;t++)if(pe.contains(i[t],this))return!0}));for(t=0;r>t;t++)pe.find(e,i[t],n);return n=this.pushStack(r>1?pe.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(i(this,e||[],!1))},not:function(e){return this.pushStack(i(this,e||[],!0))},is:function(e){return!!i(this,"string"==typeof e&&we.test(e)?pe(e):e||[],!1).length}});var ke,Ee=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,Se=pe.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||ke,"string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:Ee.exec(e),!i||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof pe?t[0]:t,pe.merge(this,pe.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:ie,!0)),Ce.test(i[1])&&pe.isPlainObject(t))for(i in t)pe.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}if(r=ie.getElementById(i[2]),r&&r.parentNode){if(r.id!==i[2])return ke.find(e);this.length=1,this[0]=r}return this.context=ie,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):pe.isFunction(e)?"undefined"!=typeof n.ready?n.ready(e):e(pe):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),pe.makeArray(e,this))};Se.prototype=pe.fn,ke=pe(ie);var Ne=/^(?:parents|prev(?:Until|All))/,Le={children:!0,contents:!0,next:!0,prev:!0};pe.fn.extend({has:function(e){var t,n=pe(e,this),i=n.length;return this.filter(function(){for(t=0;i>t;t++)if(pe.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,i=0,r=this.length,o=[],a=we.test(e)||"string"!=typeof e?pe(e,t||this.context):0;r>i;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&pe.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?pe.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?pe.inArray(this[0],pe(e)):pe.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(pe.uniqueSort(pe.merge(this.get(),pe(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),pe.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return be(e,"parentNode")},parentsUntil:function(e,t,n){return be(e,"parentNode",n)},next:function(e){return r(e,"nextSibling")},prev:function(e){return r(e,"previousSibling")},nextAll:function(e){return be(e,"nextSibling")},prevAll:function(e){return be(e,"previousSibling")},nextUntil:function(e,t,n){return be(e,"nextSibling",n)},prevUntil:function(e,t,n){return be(e,"previousSibling",n)},siblings:function(e){return xe((e.parentNode||{}).firstChild,e)},children:function(e){return xe(e.firstChild)},contents:function(e){return pe.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:pe.merge([],e.childNodes)}},function(e,t){pe.fn[e]=function(n,i){var r=pe.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=pe.filter(i,r)),this.length>1&&(Le[e]||(r=pe.uniqueSort(r)),Ne.test(e)&&(r=r.reverse())),this.pushStack(r)}});var Ae=/\S+/g;pe.Callbacks=function(e){e="string"==typeof e?o(e):pe.extend({},e);var t,n,i,r,a=[],s=[],l=-1,u=function(){for(r=e.once,i=t=!0;s.length;l=-1)for(n=s.shift();++l<a.length;)a[l].apply(n[0],n[1])===!1&&e.stopOnFalse&&(l=a.length,n=!1);e.memory||(n=!1),t=!1,r&&(a=n?[]:"")},c={add:function(){return a&&(n&&!t&&(l=a.length-1,s.push(n)),function t(n){pe.each(n,function(n,i){pe.isFunction(i)?e.unique&&c.has(i)||a.push(i):i&&i.length&&"string"!==pe.type(i)&&t(i)})}(arguments),n&&!t&&u()),this},remove:function(){return pe.each(arguments,function(e,t){for(var n;(n=pe.inArray(t,a,n))>-1;)a.splice(n,1),l>=n&&l--}),this},has:function(e){return e?pe.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return r=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return r=!0,n||c.disable(),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},pe.extend({Deferred:function(e){var t=[["resolve","done",pe.Callbacks("once memory"),"resolved"],["reject","fail",pe.Callbacks("once memory"),"rejected"],["notify","progress",pe.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return pe.Deferred(function(n){pe.each(t,function(t,o){var a=pe.isFunction(e[t])&&e[t];r[o[1]](function(){var e=a&&a.apply(this,arguments);e&&pe.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===i?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?pe.extend(e,i):i}},r={};return i.pipe=i.then,pe.each(t,function(e,o){var a=o[2],s=o[3];i[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,arguments),this},r[o[0]+"With"]=a.fireWith}),i.promise(r),e&&e.call(r,r),r},when:function(e){var t,n,i,r=0,o=re.call(arguments),a=o.length,s=1!==a||e&&pe.isFunction(e.promise)?a:0,l=1===s?e:pe.Deferred(),u=function(e,n,i){return function(r){n[e]=this,i[e]=arguments.length>1?re.call(arguments):r,i===t?l.notifyWith(n,i):--s||l.resolveWith(n,i)}};if(a>1)for(t=new Array(a),n=new Array(a),i=new Array(a);a>r;r++)o[r]&&pe.isFunction(o[r].promise)?o[r].promise().progress(u(r,n,t)).done(u(r,i,o)).fail(l.reject):--s;return s||l.resolveWith(i,o),l.promise()}});var je;pe.fn.ready=function(e){return pe.ready.promise().done(e),this},pe.extend({isReady:!1,readyWait:1,holdReady:function(e){e?pe.readyWait++:pe.ready(!0)},ready:function(e){(e===!0?--pe.readyWait:pe.isReady)||(pe.isReady=!0,e!==!0&&--pe.readyWait>0||(je.resolveWith(ie,[pe]),pe.fn.triggerHandler&&(pe(ie).triggerHandler("ready"),pe(ie).off("ready"))))}}),pe.ready.promise=function(t){if(!je)if(je=pe.Deferred(),"complete"===ie.readyState||"loading"!==ie.readyState&&!ie.documentElement.doScroll)e.setTimeout(pe.ready);else if(ie.addEventListener)ie.addEventListener("DOMContentLoaded",s),e.addEventListener("load",s);else{ie.attachEvent("onreadystatechange",s),e.attachEvent("onload",s);var n=!1;try{n=null==e.frameElement&&ie.documentElement}catch(e){}n&&n.doScroll&&!function t(){if(!pe.isReady){try{n.doScroll("left")}catch(n){return e.setTimeout(t,50)}a(),pe.ready()}}()}return je.promise(t)},pe.ready.promise();var _e;for(_e in pe(de))break;de.ownFirst="0"===_e,de.inlineBlockNeedsLayout=!1,pe(function(){var e,t,n,i;n=ie.getElementsByTagName("body")[0],n&&n.style&&(t=ie.createElement("div"),i=ie.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",de.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(i))}),function(){var e=ie.createElement("div");de.deleteExpando=!0;try{delete e.test}catch(e){de.deleteExpando=!1}e=null}();var De=function(e){var t=pe.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||t!==!0&&e.getAttribute("classid")===t)},Ie=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,He=/([A-Z])/g;pe.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?pe.cache[e[pe.expando]]:e[pe.expando],!!e&&!u(e)},data:function(e,t,n){return c(e,t,n)},removeData:function(e,t){return d(e,t)},_data:function(e,t,n){return c(e,t,n,!0)},_removeData:function(e,t){return d(e,t,!0)}}),pe.fn.extend({data:function(e,t){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(r=pe.data(o),1===o.nodeType&&!pe._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&(i=a[n].name,0===i.indexOf("data-")&&(i=pe.camelCase(i.slice(5)),l(o,i,r[i])));pe._data(o,"parsedAttrs",!0)}return r}return"object"==typeof e?this.each(function(){pe.data(this,e)}):arguments.length>1?this.each(function(){pe.data(this,e,t)}):o?l(o,e,pe.data(o,e)):void 0},removeData:function(e){return this.each(function(){pe.removeData(this,e)})}}),pe.extend({queue:function(e,t,n){var i;return e?(t=(t||"fx")+"queue",i=pe._data(e,t),n&&(!i||pe.isArray(n)?i=pe._data(e,t,pe.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=pe.queue(e,t),i=n.length,r=n.shift(),o=pe._queueHooks(e,t),a=function(){pe.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,a,o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return pe._data(e,n)||pe._data(e,n,{empty:pe.Callbacks("once memory").add(function(){pe._removeData(e,t+"queue"),pe._removeData(e,n)})})}}),pe.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?pe.queue(this[0],e):void 0===t?this:this.each(function(){var n=pe.queue(this,e,t);pe._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&pe.dequeue(this,e)})},dequeue:function(e){return this.each(function(){pe.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=pe.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)n=pe._data(o[a],e+"queueHooks"),n&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(t)}}),function(){var e;de.shrinkWrapBlocks=function(){if(null!=e)return e;e=!1;var t,n,i;return n=ie.getElementsByTagName("body")[0],n&&n.style?(t=ie.createElement("div"),i=ie.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(ie.createElement("div")).style.width="5px",e=3!==t.offsetWidth),n.removeChild(i),e):void 0}}();var Oe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Me=new RegExp("^(?:([+-])=|)("+Oe+")([a-z%]*)$","i"),Pe=["Top","Right","Bottom","Left"],Be=function(e,t){return e=t||e,"none"===pe.css(e,"display")||!pe.contains(e.ownerDocument,e)},Fe=function(e,t,n,i,r,o,a){var s=0,l=e.length,u=null==n;if("object"===pe.type(n)){r=!0;for(s in n)Fe(e,t,s,n[s],!0,o,a)}else if(void 0!==i&&(r=!0,pe.isFunction(i)||(a=!0),u&&(a?(t.call(e,i),t=null):(u=t,t=function(e,t,n){return u.call(pe(e),n)})),t))for(;l>s;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return r?e:u?t.call(e):l?t(e[0],n):o},qe=/^(?:checkbox|radio)$/i,$e=/<([\w:-]+)/,ze=/^$|\/(?:java|ecma)script/i,Re=/^\s+/,We="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";!function(){var e=ie.createElement("div"),t=ie.createDocumentFragment(),n=ie.createElement("input");e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",de.leadingWhitespace=3===e.firstChild.nodeType,de.tbody=!e.getElementsByTagName("tbody").length,de.htmlSerialize=!!e.getElementsByTagName("link").length,de.html5Clone="<:nav></:nav>"!==ie.createElement("nav").cloneNode(!0).outerHTML,n.type="checkbox",n.checked=!0,t.appendChild(n),de.appendChecked=n.checked,e.innerHTML="<textarea>x</textarea>",de.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,t.appendChild(e),n=ie.createElement("input"),n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),de.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,de.noCloneEvent=!!e.addEventListener,e[pe.expando]=1,de.attributes=!e.getAttribute(pe.expando)}();var Xe={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:de.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};Xe.optgroup=Xe.option,Xe.tbody=Xe.tfoot=Xe.colgroup=Xe.caption=Xe.thead,Xe.th=Xe.td;var Ye=/<|&#?\w+;/,Ue=/<tbody/i;!function(){var t,n,i=ie.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})n="on"+t,(de[t]=n in e)||(i.setAttribute(n,"t"),de[t]=i.attributes[n].expando===!1);i=null}();var Ve=/^(?:input|select|textarea)$/i,Ge=/^key/,Qe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ze=/^(?:focusinfocus|focusoutblur)$/,Je=/^([^.]*)(?:\.(.+)|)/;pe.event={global:{},add:function(e,t,n,i,r){var o,a,s,l,u,c,d,f,p,h,m,g=pe._data(e);if(g){for(n.handler&&(l=n,n=l.handler,r=l.selector),n.guid||(n.guid=pe.guid++),(a=g.events)||(a=g.events={}),(c=g.handle)||(c=g.handle=function(e){return"undefined"==typeof pe||e&&pe.event.triggered===e.type?void 0:pe.event.dispatch.apply(c.elem,arguments)},c.elem=e),t=(t||"").match(Ae)||[""],s=t.length;s--;)o=Je.exec(t[s])||[],p=m=o[1],h=(o[2]||"").split(".").sort(),p&&(u=pe.event.special[p]||{},p=(r?u.delegateType:u.bindType)||p,u=pe.event.special[p]||{},d=pe.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&pe.expr.match.needsContext.test(r),namespace:h.join(".")},l),(f=a[p])||(f=a[p]=[],f.delegateCount=0,u.setup&&u.setup.call(e,i,h,c)!==!1||(e.addEventListener?e.addEventListener(p,c,!1):e.attachEvent&&e.attachEvent("on"+p,c))),u.add&&(u.add.call(e,d),d.handler.guid||(d.handler.guid=n.guid)),r?f.splice(f.delegateCount++,0,d):f.push(d),pe.event.global[p]=!0);e=null}},remove:function(e,t,n,i,r){var o,a,s,l,u,c,d,f,p,h,m,g=pe.hasData(e)&&pe._data(e);if(g&&(c=g.events)){for(t=(t||"").match(Ae)||[""],u=t.length;u--;)if(s=Je.exec(t[u])||[],p=m=s[1],h=(s[2]||"").split(".").sort(),p){for(d=pe.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,f=c[p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;o--;)a=f[o],!r&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||i&&i!==a.selector&&("**"!==i||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,d.remove&&d.remove.call(e,a));l&&!f.length&&(d.teardown&&d.teardown.call(e,h,g.handle)!==!1||pe.removeEvent(e,p,g.handle),delete c[p])}else for(p in c)pe.event.remove(e,p+t[u],n,i,!0);pe.isEmptyObject(c)&&(delete g.handle,pe._removeData(e,"events"))}},trigger:function(t,n,i,r){var o,a,s,l,u,c,d,f=[i||ie],p=ce.call(t,"type")?t.type:t,h=ce.call(t,"namespace")?t.namespace.split("."):[];if(s=c=i=i||ie,3!==i.nodeType&&8!==i.nodeType&&!Ze.test(p+pe.event.triggered)&&(p.indexOf(".")>-1&&(h=p.split("."),p=h.shift(),h.sort()),a=p.indexOf(":")<0&&"on"+p,t=t[pe.expando]?t:new pe.Event(p,"object"==typeof t&&t),t.isTrigger=r?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:pe.makeArray(n,[t]),u=pe.event.special[p]||{},r||!u.trigger||u.trigger.apply(i,n)!==!1)){if(!r&&!u.noBubble&&!pe.isWindow(i)){for(l=u.delegateType||p,Ze.test(l+p)||(s=s.parentNode);s;s=s.parentNode)f.push(s),c=s;c===(i.ownerDocument||ie)&&f.push(c.defaultView||c.parentWindow||e)}for(d=0;(s=f[d++])&&!t.isPropagationStopped();)t.type=d>1?l:u.bindType||p,o=(pe._data(s,"events")||{})[t.type]&&pe._data(s,"handle"),o&&o.apply(s,n),o=a&&s[a],o&&o.apply&&De(s)&&(t.result=o.apply(s,n),t.result===!1&&t.preventDefault());if(t.type=p,!r&&!t.isDefaultPrevented()&&(!u._default||u._default.apply(f.pop(),n)===!1)&&De(i)&&a&&i[p]&&!pe.isWindow(i)){c=i[a],c&&(i[a]=null),pe.event.triggered=p;try{i[p]()}catch(e){}pe.event.triggered=void 0,c&&(i[a]=c)}return t.result}},dispatch:function(e){e=pe.event.fix(e);var t,n,i,r,o,a=[],s=re.call(arguments),l=(pe._data(this,"events")||{})[e.type]||[],u=pe.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,e)!==!1){for(a=pe.event.handlers.call(this,e,l),t=0;(r=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,i=((pe.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s),void 0!==i&&(e.result=i)===!1&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,r,o,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){for(i=[],n=0;s>n;n++)o=t[n],r=o.selector+" ",void 0===i[r]&&(i[r]=o.needsContext?pe(r,this).index(l)>-1:pe.find(r,this,null,[l]).length),i[r]&&i.push(o);i.length&&a.push({elem:l,handlers:i})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[pe.expando])return e;var t,n,i,r=e.type,o=e,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=Qe.test(r)?this.mouseHooks:Ge.test(r)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,e=new pe.Event(o),t=i.length;t--;)n=i[t],e[n]=o[n];return e.target||(e.target=o.srcElement||ie),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,r,o=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=e.target.ownerDocument||ie,r=i.documentElement,n=i.body,e.pageX=t.clientX+(r&&r.scrollLeft||n&&n.scrollLeft||0)-(r&&r.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||n&&n.scrollTop||0)-(r&&r.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==x()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===x()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return pe.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(e){return pe.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n){var i=pe.extend(new pe.Event,n,{type:e,isSimulated:!0});pe.event.trigger(i,null,t),i.isDefaultPrevented()&&n.preventDefault()}},pe.removeEvent=ie.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)}:function(e,t,n){var i="on"+t;e.detachEvent&&("undefined"==typeof e[i]&&(e[i]=null),e.detachEvent(i,n))},pe.Event=function(e,t){return this instanceof pe.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?y:b):this.type=e,t&&pe.extend(this,t),this.timeStamp=e&&e.timeStamp||pe.now(),void(this[pe.expando]=!0)):new pe.Event(e,t)},pe.Event.prototype={constructor:pe.Event,isDefaultPrevented:b,isPropagationStopped:b,isImmediatePropagationStopped:b,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=y,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=y,e&&!this.isSimulated&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=y,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},pe.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){pe.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,r=e.relatedTarget,o=e.handleObj;return r&&(r===i||pe.contains(i,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),de.submit||(pe.event.special.submit={setup:function(){return!pe.nodeName(this,"form")&&void pe.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=pe.nodeName(t,"input")||pe.nodeName(t,"button")?pe.prop(t,"form"):void 0;n&&!pe._data(n,"submit")&&(pe.event.add(n,"submit._submit",function(e){e._submitBubble=!0}),pe._data(n,"submit",!0))})},postDispatch:function(e){e._submitBubble&&(delete e._submitBubble,this.parentNode&&!e.isTrigger&&pe.event.simulate("submit",this.parentNode,e))},teardown:function(){return!pe.nodeName(this,"form")&&void pe.event.remove(this,"._submit")}}),de.change||(pe.event.special.change={setup:function(){return Ve.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(pe.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._justChanged=!0)}),pe.event.add(this,"click._change",function(e){this._justChanged&&!e.isTrigger&&(this._justChanged=!1),pe.event.simulate("change",this,e)})),!1):void pe.event.add(this,"beforeactivate._change",function(e){var t=e.target;Ve.test(t.nodeName)&&!pe._data(t,"change")&&(pe.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||pe.event.simulate("change",this.parentNode,e)}),pe._data(t,"change",!0))})},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return pe.event.remove(this,"._change"),!Ve.test(this.nodeName)}}),de.focusin||pe.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){pe.event.simulate(t,e.target,pe.event.fix(e))};pe.event.special[t]={setup:function(){var i=this.ownerDocument||this,r=pe._data(i,t);r||i.addEventListener(e,n,!0),pe._data(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=pe._data(i,t)-1;r?pe._data(i,t,r):(i.removeEventListener(e,n,!0),pe._removeData(i,t))}}}),pe.fn.extend({on:function(e,t,n,i){return w(this,e,t,n,i)},one:function(e,t,n,i){return w(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,pe(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return t!==!1&&"function"!=typeof t||(n=t,t=void 0),n===!1&&(n=b),this.each(function(){pe.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){pe.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?pe.event.trigger(e,t,n,!0):void 0}});var Ke=/ jQuery\d+="(?:null|\d+)"/g,et=new RegExp("<(?:"+We+")[\\s/>]","i"),tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,nt=/<script|<style|<link/i,it=/checked\s*(?:[^=]|=\s*.checked.)/i,rt=/^true\/(.*)/,ot=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,at=p(ie),st=at.appendChild(ie.createElement("div"));pe.extend({htmlPrefilter:function(e){return e.replace(tt,"<$1></$2>")},clone:function(e,t,n){var i,r,o,a,s,l=pe.contains(e.ownerDocument,e);if(de.html5Clone||pe.isXMLDoc(e)||!et.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(st.innerHTML=e.outerHTML,st.removeChild(o=st.firstChild)),!(de.noCloneEvent&&de.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||pe.isXMLDoc(e)))for(i=h(o),s=h(e),a=0;null!=(r=s[a]);++a)i[a]&&S(r,i[a]);if(t)if(n)for(s=s||h(e),i=i||h(o),a=0;null!=(r=s[a]);a++)E(r,i[a]);else E(e,o);return i=h(o,"script"),i.length>0&&m(i,!l&&h(e,"script")),i=s=r=null,o},cleanData:function(e,t){for(var n,i,r,o,a=0,s=pe.expando,l=pe.cache,u=de.attributes,c=pe.event.special;null!=(n=e[a]);a++)if((t||De(n))&&(r=n[s],o=r&&l[r])){if(o.events)for(i in o.events)c[i]?pe.event.remove(n,i):pe.removeEvent(n,i,o.handle);l[r]&&(delete l[r],u||"undefined"==typeof n.removeAttribute?n[s]=void 0:n.removeAttribute(s),ne.push(r))}}}),pe.fn.extend({domManip:N,detach:function(e){return L(this,e,!0)},remove:function(e){return L(this,e)},text:function(e){return Fe(this,function(e){return void 0===e?pe.text(this):this.empty().append((this[0]&&this[0].ownerDocument||ie).createTextNode(e))},null,e,arguments.length)},append:function(){return N(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=C(this,e);t.appendChild(e)}})},prepend:function(){return N(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=C(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return N(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return N(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&pe.cleanData(h(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&pe.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return pe.clone(this,e,t)})},html:function(e){return Fe(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(Ke,""):void 0; if("string"==typeof e&&!nt.test(e)&&(de.htmlSerialize||!et.test(e))&&(de.leadingWhitespace||!Re.test(e))&&!Xe[($e.exec(e)||["",""])[1].toLowerCase()]){e=pe.htmlPrefilter(e);try{for(;i>n;n++)t=this[n]||{},1===t.nodeType&&(pe.cleanData(h(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return N(this,arguments,function(t){var n=this.parentNode;pe.inArray(this,e)<0&&(pe.cleanData(h(this)),n&&n.replaceChild(t,this))},e)}}),pe.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){pe.fn[e]=function(e){for(var n,i=0,r=[],o=pe(e),a=o.length-1;a>=i;i++)n=i===a?this:this.clone(!0),pe(o[i])[t](n),ae.apply(r,n.get());return this.pushStack(r)}});var lt,ut={HTML:"block",BODY:"block"},ct=/^margin/,dt=new RegExp("^("+Oe+")(?!px)[a-z%]+$","i"),ft=function(e,t,n,i){var r,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];r=n.apply(e,i||[]);for(o in t)e.style[o]=a[o];return r},pt=ie.documentElement;!function(){function t(){var t,c,d=ie.documentElement;d.appendChild(l),u.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",n=r=s=!1,i=a=!0,e.getComputedStyle&&(c=e.getComputedStyle(u),n="1%"!==(c||{}).top,s="2px"===(c||{}).marginLeft,r="4px"===(c||{width:"4px"}).width,u.style.marginRight="50%",i="4px"===(c||{marginRight:"4px"}).marginRight,t=u.appendChild(ie.createElement("div")),t.style.cssText=u.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",u.style.width="1px",a=!parseFloat((e.getComputedStyle(t)||{}).marginRight),u.removeChild(t)),u.style.display="none",o=0===u.getClientRects().length,o&&(u.style.display="",u.innerHTML="<table><tr><td></td><td>t</td></tr></table>",u.childNodes[0].style.borderCollapse="separate",t=u.getElementsByTagName("td"),t[0].style.cssText="margin:0;border:0;padding:0;display:none",o=0===t[0].offsetHeight,o&&(t[0].style.display="",t[1].style.display="none",o=0===t[0].offsetHeight)),d.removeChild(l)}var n,i,r,o,a,s,l=ie.createElement("div"),u=ie.createElement("div");u.style&&(u.style.cssText="float:left;opacity:.5",de.opacity="0.5"===u.style.opacity,de.cssFloat=!!u.style.cssFloat,u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",de.clearCloneStyle="content-box"===u.style.backgroundClip,l=ie.createElement("div"),l.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",u.innerHTML="",l.appendChild(u),de.boxSizing=""===u.style.boxSizing||""===u.style.MozBoxSizing||""===u.style.WebkitBoxSizing,pe.extend(de,{reliableHiddenOffsets:function(){return null==n&&t(),o},boxSizingReliable:function(){return null==n&&t(),r},pixelMarginRight:function(){return null==n&&t(),i},pixelPosition:function(){return null==n&&t(),n},reliableMarginRight:function(){return null==n&&t(),a},reliableMarginLeft:function(){return null==n&&t(),s}}))}();var ht,mt,gt=/^(top|right|bottom|left)$/;e.getComputedStyle?(ht=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},mt=function(e,t,n){var i,r,o,a,s=e.style;return n=n||ht(e),a=n?n.getPropertyValue(t)||n[t]:void 0,""!==a&&void 0!==a||pe.contains(e.ownerDocument,e)||(a=pe.style(e,t)),n&&!de.pixelMarginRight()&&dt.test(a)&&ct.test(t)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o),void 0===a?a:a+""}):pt.currentStyle&&(ht=function(e){return e.currentStyle},mt=function(e,t,n){var i,r,o,a,s=e.style;return n=n||ht(e),a=n?n[t]:void 0,null==a&&s&&s[t]&&(a=s[t]),dt.test(a)&&!gt.test(t)&&(i=s.left,r=e.runtimeStyle,o=r&&r.left,o&&(r.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=i,o&&(r.left=o)),void 0===a?a:a+""||"auto"});var vt=/alpha\([^)]*\)/i,yt=/opacity\s*=\s*([^)]*)/i,bt=/^(none|table(?!-c[ea]).+)/,xt=new RegExp("^("+Oe+")(.*)$","i"),wt={position:"absolute",visibility:"hidden",display:"block"},Ct={letterSpacing:"0",fontWeight:"400"},Tt=["Webkit","O","Moz","ms"],kt=ie.createElement("div").style;pe.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=mt(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:de.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=pe.camelCase(t),l=e.style;if(t=pe.cssProps[s]||(pe.cssProps[s]=D(s)||s),a=pe.cssHooks[t]||pe.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:l[t];if(o=typeof n,"string"===o&&(r=Me.exec(n))&&r[1]&&(n=f(e,t,r),o="number"),null!=n&&n===n&&("number"===o&&(n+=r&&r[3]||(pe.cssNumber[s]?"":"px")),de.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,i)))))try{l[t]=n}catch(e){}}},css:function(e,t,n,i){var r,o,a,s=pe.camelCase(t);return t=pe.cssProps[s]||(pe.cssProps[s]=D(s)||s),a=pe.cssHooks[t]||pe.cssHooks[s],a&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=mt(e,t,i)),"normal"===o&&t in Ct&&(o=Ct[t]),""===n||n?(r=parseFloat(o),n===!0||isFinite(r)?r||0:o):o}}),pe.each(["height","width"],function(e,t){pe.cssHooks[t]={get:function(e,n,i){return n?bt.test(pe.css(e,"display"))&&0===e.offsetWidth?ft(e,wt,function(){return M(e,t,i)}):M(e,t,i):void 0},set:function(e,n,i){var r=i&&ht(e);return H(e,n,i?O(e,t,i,de.boxSizing&&"border-box"===pe.css(e,"boxSizing",!1,r),r):0)}}}),de.opacity||(pe.cssHooks.opacity={get:function(e,t){return yt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,r=pe.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=i&&i.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===pe.trim(o.replace(vt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||i&&!i.filter)||(n.filter=vt.test(o)?o.replace(vt,r):o+" "+r)}}),pe.cssHooks.marginRight=_(de.reliableMarginRight,function(e,t){return t?ft(e,{display:"inline-block"},mt,[e,"marginRight"]):void 0}),pe.cssHooks.marginLeft=_(de.reliableMarginLeft,function(e,t){return t?(parseFloat(mt(e,"marginLeft"))||(pe.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-ft(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px":void 0}),pe.each({margin:"",padding:"",border:"Width"},function(e,t){pe.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];4>i;i++)r[e+Pe[i]+t]=o[i]||o[i-2]||o[0];return r}},ct.test(e)||(pe.cssHooks[e+t].set=H)}),pe.fn.extend({css:function(e,t){return Fe(this,function(e,t,n){var i,r,o={},a=0;if(pe.isArray(t)){for(i=ht(e),r=t.length;r>a;a++)o[t[a]]=pe.css(e,t[a],!1,i);return o}return void 0!==n?pe.style(e,t,n):pe.css(e,t)},e,t,arguments.length>1)},show:function(){return I(this,!0)},hide:function(){return I(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Be(this)?pe(this).show():pe(this).hide()})}}),pe.Tween=P,P.prototype={constructor:P,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||pe.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(pe.cssNumber[n]?"":"px")},cur:function(){var e=P.propHooks[this.prop];return e&&e.get?e.get(this):P.propHooks._default.get(this)},run:function(e){var t,n=P.propHooks[this.prop];return this.options.duration?this.pos=t=pe.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):P.propHooks._default.set(this),this}},P.prototype.init.prototype=P.prototype,P.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=pe.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){pe.fx.step[e.prop]?pe.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[pe.cssProps[e.prop]]&&!pe.cssHooks[e.prop]?e.elem[e.prop]=e.now:pe.style(e.elem,e.prop,e.now+e.unit)}}},P.propHooks.scrollTop=P.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},pe.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},pe.fx=P.prototype.init,pe.fx.step={};var Et,St,Nt=/^(?:toggle|show|hide)$/,Lt=/queueHooks$/;pe.Animation=pe.extend(R,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return f(n.elem,e,Me.exec(t),n),n}]},tweener:function(e,t){pe.isFunction(e)?(t=e,e=["*"]):e=e.match(Ae);for(var n,i=0,r=e.length;r>i;i++)n=e[i],R.tweeners[n]=R.tweeners[n]||[],R.tweeners[n].unshift(t)},prefilters:[$],prefilter:function(e,t){t?R.prefilters.unshift(e):R.prefilters.push(e)}}),pe.speed=function(e,t,n){var i=e&&"object"==typeof e?pe.extend({},e):{complete:n||!n&&t||pe.isFunction(e)&&e,duration:e,easing:n&&t||t&&!pe.isFunction(t)&&t};return i.duration=pe.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in pe.fx.speeds?pe.fx.speeds[i.duration]:pe.fx.speeds._default,null!=i.queue&&i.queue!==!0||(i.queue="fx"),i.old=i.complete,i.complete=function(){pe.isFunction(i.old)&&i.old.call(this),i.queue&&pe.dequeue(this,i.queue)},i},pe.fn.extend({fadeTo:function(e,t,n,i){return this.filter(Be).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=pe.isEmptyObject(e),o=pe.speed(t,n,i),a=function(){var t=R(this,pe.extend({},e),o);(r||pe._data(this,"finish"))&&t.stop(!0)};return a.finish=a,r||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",o=pe.timers,a=pe._data(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&Lt.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(n),t=!1,o.splice(r,1));!t&&n||pe.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=pe._data(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=pe.timers,a=i?i.length:0;for(n.finish=!0,pe.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),pe.each(["toggle","show","hide"],function(e,t){var n=pe.fn[t];pe.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(F(t,!0),e,i,r)}}),pe.each({slideDown:F("show"),slideUp:F("hide"),slideToggle:F("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){pe.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),pe.timers=[],pe.fx.tick=function(){var e,t=pe.timers,n=0;for(Et=pe.now();n<t.length;n++)e=t[n],e()||t[n]!==e||t.splice(n--,1);t.length||pe.fx.stop(),Et=void 0},pe.fx.timer=function(e){pe.timers.push(e),e()?pe.fx.start():pe.timers.pop()},pe.fx.interval=13,pe.fx.start=function(){St||(St=e.setInterval(pe.fx.tick,pe.fx.interval))},pe.fx.stop=function(){e.clearInterval(St),St=null},pe.fx.speeds={slow:600,fast:200,_default:400},pe.fn.delay=function(t,n){return t=pe.fx?pe.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,i){var r=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(r)}})},function(){var e,t=ie.createElement("input"),n=ie.createElement("div"),i=ie.createElement("select"),r=i.appendChild(ie.createElement("option"));n=ie.createElement("div"),n.setAttribute("className","t"),n.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",e=n.getElementsByTagName("a")[0],t.setAttribute("type","checkbox"),n.appendChild(t),e=n.getElementsByTagName("a")[0],e.style.cssText="top:1px",de.getSetAttribute="t"!==n.className,de.style=/top/.test(e.getAttribute("style")),de.hrefNormalized="/a"===e.getAttribute("href"),de.checkOn=!!t.value,de.optSelected=r.selected,de.enctype=!!ie.createElement("form").enctype,i.disabled=!0,de.optDisabled=!r.disabled,t=ie.createElement("input"),t.setAttribute("value",""),de.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),de.radioValue="t"===t.value}();var At=/\r/g,jt=/[\x20\t\r\n\f]+/g;pe.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=pe.isFunction(e),this.each(function(n){var r;1===this.nodeType&&(r=i?e.call(this,n,pe(this).val()):e,null==r?r="":"number"==typeof r?r+="":pe.isArray(r)&&(r=pe.map(r,function(e){return null==e?"":e+""})),t=pe.valHooks[this.type]||pe.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))})):r?(t=pe.valHooks[r.type]||pe.valHooks[r.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(At,""):null==n?"":n)):void 0}}),pe.extend({valHooks:{option:{get:function(e){var t=pe.find.attr(e,"value");return null!=t?t:pe.trim(pe.text(e)).replace(jt," ")}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,o="select-one"===e.type||0>r,a=o?null:[],s=o?r+1:i.length,l=0>r?s:o?r:0;s>l;l++)if(n=i[l],(n.selected||l===r)&&(de.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!pe.nodeName(n.parentNode,"optgroup"))){if(t=pe(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,i,r=e.options,o=pe.makeArray(t),a=r.length;a--;)if(i=r[a],pe.inArray(pe.valHooks.option.get(i),o)>-1)try{i.selected=n=!0}catch(e){i.scrollHeight}else i.selected=!1;return n||(e.selectedIndex=-1),r}}}}),pe.each(["radio","checkbox"],function(){pe.valHooks[this]={set:function(e,t){return pe.isArray(t)?e.checked=pe.inArray(pe(e).val(),t)>-1:void 0}},de.checkOn||(pe.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var _t,Dt,It=pe.expr.attrHandle,Ht=/^(?:checked|selected)$/i,Ot=de.getSetAttribute,Mt=de.input;pe.fn.extend({attr:function(e,t){return Fe(this,pe.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){pe.removeAttr(this,e)})}}),pe.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?pe.prop(e,t,n):(1===o&&pe.isXMLDoc(e)||(t=t.toLowerCase(),r=pe.attrHooks[t]||(pe.expr.match.bool.test(t)?Dt:_t)),void 0!==n?null===n?void pe.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:(i=pe.find.attr(e,t),null==i?void 0:i))},attrHooks:{type:{set:function(e,t){if(!de.radioValue&&"radio"===t&&pe.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i,r=0,o=t&&t.match(Ae);if(o&&1===e.nodeType)for(;n=o[r++];)i=pe.propFix[n]||n,pe.expr.match.bool.test(n)?Mt&&Ot||!Ht.test(n)?e[i]=!1:e[pe.camelCase("default-"+n)]=e[i]=!1:pe.attr(e,n,""),e.removeAttribute(Ot?n:i)}}),Dt={set:function(e,t,n){return t===!1?pe.removeAttr(e,n):Mt&&Ot||!Ht.test(n)?e.setAttribute(!Ot&&pe.propFix[n]||n,n):e[pe.camelCase("default-"+n)]=e[n]=!0,n}},pe.each(pe.expr.match.bool.source.match(/\w+/g),function(e,t){var n=It[t]||pe.find.attr;Mt&&Ot||!Ht.test(t)?It[t]=function(e,t,i){var r,o;return i||(o=It[t],It[t]=r,r=null!=n(e,t,i)?t.toLowerCase():null,It[t]=o),r}:It[t]=function(e,t,n){return n?void 0:e[pe.camelCase("default-"+t)]?t.toLowerCase():null}}),Mt&&Ot||(pe.attrHooks.value={set:function(e,t,n){return pe.nodeName(e,"input")?void(e.defaultValue=t):_t&&_t.set(e,t,n)}}),Ot||(_t={set:function(e,t,n){var i=e.getAttributeNode(n);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(n)),i.value=t+="","value"===n||t===e.getAttribute(n)?t:void 0}},It.id=It.name=It.coords=function(e,t,n){var i;return n?void 0:(i=e.getAttributeNode(t))&&""!==i.value?i.value:null},pe.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);return n&&n.specified?n.value:void 0},set:_t.set},pe.attrHooks.contenteditable={set:function(e,t,n){_t.set(e,""!==t&&t,n)}},pe.each(["width","height"],function(e,t){pe.attrHooks[t]={set:function(e,n){return""===n?(e.setAttribute(t,"auto"),n):void 0}}})),de.style||(pe.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Pt=/^(?:input|select|textarea|button|object)$/i,Bt=/^(?:a|area)$/i;pe.fn.extend({prop:function(e,t){return Fe(this,pe.prop,e,t,arguments.length>1)},removeProp:function(e){return e=pe.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(e){}})}}),pe.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&pe.isXMLDoc(e)||(t=pe.propFix[t]||t,r=pe.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=pe.find.attr(e,"tabindex");return t?parseInt(t,10):Pt.test(e.nodeName)||Bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),de.hrefNormalized||pe.each(["href","src"],function(e,t){pe.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),de.optSelected||(pe.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),pe.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){pe.propFix[this.toLowerCase()]=this}),de.enctype||(pe.propFix.enctype="encoding");var Ft=/[\t\r\n\f]/g;pe.fn.extend({addClass:function(e){var t,n,i,r,o,a,s,l=0;if(pe.isFunction(e))return this.each(function(t){pe(this).addClass(e.call(this,t,W(this)))});if("string"==typeof e&&e)for(t=e.match(Ae)||[];n=this[l++];)if(r=W(n),i=1===n.nodeType&&(" "+r+" ").replace(Ft," ")){for(a=0;o=t[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");s=pe.trim(i),r!==s&&pe.attr(n,"class",s)}return this},removeClass:function(e){var t,n,i,r,o,a,s,l=0;if(pe.isFunction(e))return this.each(function(t){pe(this).removeClass(e.call(this,t,W(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Ae)||[];n=this[l++];)if(r=W(n),i=1===n.nodeType&&(" "+r+" ").replace(Ft," ")){for(a=0;o=t[a++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");s=pe.trim(i),r!==s&&pe.attr(n,"class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):pe.isFunction(e)?this.each(function(n){pe(this).toggleClass(e.call(this,n,W(this),t),t)}):this.each(function(){var t,i,r,o;if("string"===n)for(i=0,r=pe(this),o=e.match(Ae)||[];t=o[i++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==n||(t=W(this),t&&pe._data(this,"__className__",t),pe.attr(this,"class",t||e===!1?"":pe._data(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+W(n)+" ").replace(Ft," ").indexOf(t)>-1)return!0;return!1}}),pe.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){pe.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),pe.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var qt=e.location,$t=pe.now(),zt=/\?/,Rt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;pe.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,i=null,r=pe.trim(t+"");return r&&!pe.trim(r.replace(Rt,function(e,t,r,o){return n&&t&&(i=0),0===i?e:(n=r||t,i+=!o-!r,"")}))?Function("return "+r)():pe.error("Invalid JSON: "+t)},pe.parseXML=function(t){var n,i;if(!t||"string"!=typeof t)return null;try{e.DOMParser?(i=new e.DOMParser,n=i.parseFromString(t,"text/xml")):(n=new e.ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(t))}catch(e){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||pe.error("Invalid XML: "+t),n};var Wt=/#.*$/,Xt=/([?&])_=[^&]*/,Yt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ut=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Vt=/^(?:GET|HEAD)$/,Gt=/^\/\//,Qt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Zt={},Jt={},Kt="*/".concat("*"),en=qt.href,tn=Qt.exec(en.toLowerCase())||[];pe.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:en,type:"GET",isLocal:Ut.test(tn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Kt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":pe.parseJSON,"text xml":pe.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?U(U(e,pe.ajaxSettings),t):U(pe.ajaxSettings,e)},ajaxPrefilter:X(Zt),ajaxTransport:X(Jt),ajax:function(t,n){function i(t,n,i,r){var o,d,y,b,w,T=n;2!==x&&(x=2,l&&e.clearTimeout(l),c=void 0,s=r||"",C.readyState=t>0?4:0,o=t>=200&&300>t||304===t,i&&(b=V(f,C,i)),b=G(f,b,C,o),o?(f.ifModified&&(w=C.getResponseHeader("Last-Modified"),w&&(pe.lastModified[a]=w),w=C.getResponseHeader("etag"),w&&(pe.etag[a]=w)),204===t||"HEAD"===f.type?T="nocontent":304===t?T="notmodified":(T=b.state,d=b.data,y=b.error,o=!y)):(y=T,!t&&T||(T="error",0>t&&(t=0))),C.status=t,C.statusText=(n||T)+"",o?m.resolveWith(p,[d,T,C]):m.rejectWith(p,[C,T,y]),C.statusCode(v),v=void 0,u&&h.trigger(o?"ajaxSuccess":"ajaxError",[C,f,o?d:y]),g.fireWith(p,[C,T]),u&&(h.trigger("ajaxComplete",[C,f]),--pe.active||pe.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,o,a,s,l,u,c,d,f=pe.ajaxSetup({},n),p=f.context||f,h=f.context&&(p.nodeType||p.jquery)?pe(p):pe.event,m=pe.Deferred(),g=pe.Callbacks("once memory"),v=f.statusCode||{},y={},b={},x=0,w="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!d)for(d={};t=Yt.exec(s);)d[t[1].toLowerCase()]=t[2];t=d[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=b[n]=b[n]||e,y[e]=t),this},overrideMimeType:function(e){return x||(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>x)for(t in e)v[t]=[v[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||w;return c&&c.abort(t),i(0,t),this}};if(m.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,f.url=((t||f.url||en)+"").replace(Wt,"").replace(Gt,tn[1]+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=pe.trim(f.dataType||"*").toLowerCase().match(Ae)||[""],null==f.crossDomain&&(r=Qt.exec(f.url.toLowerCase()),f.crossDomain=!(!r||r[1]===tn[1]&&r[2]===tn[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(tn[3]||("http:"===tn[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=pe.param(f.data,f.traditional)),Y(Zt,f,n,C),2===x)return C;u=pe.event&&f.global,u&&0===pe.active++&&pe.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Vt.test(f.type),a=f.url,f.hasContent||(f.data&&(a=f.url+=(zt.test(a)?"&":"?")+f.data,delete f.data),f.cache===!1&&(f.url=Xt.test(a)?a.replace(Xt,"$1_="+$t++):a+(zt.test(a)?"&":"?")+"_="+$t++)),f.ifModified&&(pe.lastModified[a]&&C.setRequestHeader("If-Modified-Since",pe.lastModified[a]),pe.etag[a]&&C.setRequestHeader("If-None-Match",pe.etag[a])),(f.data&&f.hasContent&&f.contentType!==!1||n.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Kt+"; q=0.01":""):f.accepts["*"]);for(o in f.headers)C.setRequestHeader(o,f.headers[o]);if(f.beforeSend&&(f.beforeSend.call(p,C,f)===!1||2===x))return C.abort();w="abort";for(o in{success:1,error:1,complete:1})C[o](f[o]);if(c=Y(Jt,f,n,C)){if(C.readyState=1,u&&h.trigger("ajaxSend",[C,f]),2===x)return C;f.async&&f.timeout>0&&(l=e.setTimeout(function(){C.abort("timeout")},f.timeout));try{x=1,c.send(y,i)}catch(e){if(!(2>x))throw e;i(-1,e)}}else i(-1,"No Transport");return C},getJSON:function(e,t,n){return pe.get(e,t,n,"json")},getScript:function(e,t){return pe.get(e,void 0,t,"script")}}),pe.each(["get","post"],function(e,t){pe[t]=function(e,n,i,r){return pe.isFunction(n)&&(r=r||i,i=n,n=void 0),pe.ajax(pe.extend({url:e,type:t,dataType:r,data:n,success:i},pe.isPlainObject(e)&&e))}}),pe._evalUrl=function(e){return pe.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},pe.fn.extend({wrapAll:function(e){if(pe.isFunction(e))return this.each(function(t){pe(this).wrapAll(e.call(this,t))});if(this[0]){var t=pe(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return pe.isFunction(e)?this.each(function(t){pe(this).wrapInner(e.call(this,t))}):this.each(function(){var t=pe(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=pe.isFunction(e);return this.each(function(n){pe(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){pe.nodeName(this,"body")||pe(this).replaceWith(this.childNodes)}).end()}}),pe.expr.filters.hidden=function(e){return de.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:Z(e)},pe.expr.filters.visible=function(e){return!pe.expr.filters.hidden(e)};var nn=/%20/g,rn=/\[\]$/,on=/\r?\n/g,an=/^(?:submit|button|image|reset|file)$/i,sn=/^(?:input|select|textarea|keygen)/i;pe.param=function(e,t){var n,i=[],r=function(e,t){t=pe.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=pe.ajaxSettings&&pe.ajaxSettings.traditional),pe.isArray(e)||e.jquery&&!pe.isPlainObject(e))pe.each(e,function(){r(this.name,this.value)});else for(n in e)J(n,e[n],t,r);return i.join("&").replace(nn,"+")},pe.fn.extend({serialize:function(){return pe.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=pe.prop(this,"elements");return e?pe.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!pe(this).is(":disabled")&&sn.test(this.nodeName)&&!an.test(e)&&(this.checked||!qe.test(e))}).map(function(e,t){var n=pe(this).val();return null==n?null:pe.isArray(n)?pe.map(n,function(e){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),pe.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return this.isLocal?ee():ie.documentMode>8?K():/^(get|post|head|put|delete|options)$/i.test(this.type)&&K()||ee()}:K;var ln=0,un={},cn=pe.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in un)un[e](void 0,!0)}),de.cors=!!cn&&"withCredentials"in cn,cn=de.ajax=!!cn,cn&&pe.ajaxTransport(function(t){if(!t.crossDomain||de.cors){var n;return{send:function(i,r){var o,a=t.xhr(),s=++ln;if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(o in i)void 0!==i[o]&&a.setRequestHeader(o,i[o]+"");a.send(t.hasContent&&t.data||null),n=function(e,i){var o,l,u;if(n&&(i||4===a.readyState))if(delete un[s],n=void 0,a.onreadystatechange=pe.noop,i)4!==a.readyState&&a.abort();else{u={},o=a.status,"string"==typeof a.responseText&&(u.text=a.responseText);try{l=a.statusText}catch(e){l=""}o||!t.isLocal||t.crossDomain?1223===o&&(o=204):o=u.text?200:404}u&&r(o,l,u,a.getAllResponseHeaders())},t.async?4===a.readyState?e.setTimeout(n):a.onreadystatechange=un[s]=n:n()},abort:function(){n&&n(void 0,!0)}}}}),pe.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return pe.globalEval(e),e}}}),pe.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),pe.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=ie.head||pe("head")[0]||ie.documentElement;return{send:function(i,r){t=ie.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||r(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var dn=[],fn=/(=)\?(?=&|$)|\?\?/;pe.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=dn.pop()||pe.expando+"_"+$t++;return this[e]=!0,e}}),pe.ajaxPrefilter("json jsonp",function(t,n,i){var r,o,a,s=t.jsonp!==!1&&(fn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&fn.test(t.data)&&"data");return s||"jsonp"===t.dataTypes[0]?(r=t.jsonpCallback=pe.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(fn,"$1"+r):t.jsonp!==!1&&(t.url+=(zt.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||pe.error(r+" was not called"),a[0]},t.dataTypes[0]="json",o=e[r],e[r]=function(){a=arguments},i.always(function(){void 0===o?pe(e).removeProp(r):e[r]=o,t[r]&&(t.jsonpCallback=n.jsonpCallback,dn.push(r)),a&&pe.isFunction(o)&&o(a[0]),a=o=void 0}),"script"):void 0}),pe.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||ie;var i=Ce.exec(e),r=!n&&[];return i?[t.createElement(i[1])]:(i=v([e],t,r),r&&r.length&&pe(r).remove(),pe.merge([],i.childNodes))};var pn=pe.fn.load;pe.fn.load=function(e,t,n){if("string"!=typeof e&&pn)return pn.apply(this,arguments);var i,r,o,a=this,s=e.indexOf(" ");return s>-1&&(i=pe.trim(e.slice(s,e.length)),e=e.slice(0,s)),pe.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),a.length>0&&pe.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(i?pe("<div>").append(pe.parseHTML(e)).find(i):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},pe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){pe.fn[t]=function(e){return this.on(t,e)}}),pe.expr.filters.animated=function(e){return pe.grep(pe.timers,function(t){return e===t.elem}).length},pe.offset={setOffset:function(e,t,n){var i,r,o,a,s,l,u,c=pe.css(e,"position"),d=pe(e),f={};"static"===c&&(e.style.position="relative"),s=d.offset(),o=pe.css(e,"top"),l=pe.css(e,"left"),u=("absolute"===c||"fixed"===c)&&pe.inArray("auto",[o,l])>-1,u?(i=d.position(),a=i.top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),pe.isFunction(t)&&(t=t.call(e,n,pe.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+r),"using"in t?t.using.call(e,f):d.css(f)}},pe.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){pe.offset.setOffset(this,e,t)});var t,n,i={top:0,left:0},r=this[0],o=r&&r.ownerDocument;return o?(t=o.documentElement,pe.contains(t,r)?("undefined"!=typeof r.getBoundingClientRect&&(i=r.getBoundingClientRect()),n=te(o),{top:i.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0), left:i.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):i):void 0},position:function(){if(this[0]){var e,t,n={top:0,left:0},i=this[0];return"fixed"===pe.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),pe.nodeName(e[0],"html")||(n=e.offset()),n.top+=pe.css(e[0],"borderTopWidth",!0),n.left+=pe.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-pe.css(i,"marginTop",!0),left:t.left-n.left-pe.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&!pe.nodeName(e,"html")&&"static"===pe.css(e,"position");)e=e.offsetParent;return e||pt})}}),pe.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);pe.fn[e]=function(i){return Fe(this,function(e,i,r){var o=te(e);return void 0===r?o?t in o?o[t]:o.document.documentElement[i]:e[i]:void(o?o.scrollTo(n?pe(o).scrollLeft():r,n?r:pe(o).scrollTop()):e[i]=r)},e,i,arguments.length,null)}}),pe.each(["top","left"],function(e,t){pe.cssHooks[t]=_(de.pixelPosition,function(e,n){return n?(n=mt(e,t),dt.test(n)?pe(e).position()[t]+"px":n):void 0})}),pe.each({Height:"height",Width:"width"},function(e,t){pe.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){pe.fn[i]=function(i,r){var o=arguments.length&&(n||"boolean"!=typeof i),a=n||(i===!0||r===!0?"margin":"border");return Fe(this,function(t,n,i){var r;return pe.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===i?pe.css(t,n,a):pe.style(t,n,i,a)},t,o?i:void 0,o,null)}})}),pe.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),pe.fn.size=function(){return this.length},pe.fn.andSelf=pe.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return pe});var hn=e.jQuery,mn=e.$;return pe.noConflict=function(t){return e.$===pe&&(e.$=mn),t&&e.jQuery===pe&&(e.jQuery=hn),pe},t||(e.jQuery=e.$=pe),pe}),function(e){"use strict";e.fn.fitVids=function(t){var n={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var i=document.head||document.getElementsByTagName("head")[0],r=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}",o=document.createElement("div");o.innerHTML='<p>x</p><style id="fit-vids-style">'+r+"</style>",i.appendChild(o.childNodes[1])}return t&&e.extend(n,t),this.each(function(){var t=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];n.customSelector&&t.push(n.customSelector);var i=".fitvidsignore";n.ignore&&(i=i+", "+n.ignore);var r=e(this).find(t.join(","));r=r.not("object object"),r=r.not(i),r.each(function(t){var n=e(this);if(!(n.parents(i).length>0||"embed"===this.tagName.toLowerCase()&&n.parent("object").length||n.parent(".fluid-width-video-wrapper").length)){n.css("height")||n.css("width")||!isNaN(n.attr("height"))&&!isNaN(n.attr("width"))||(n.attr("height",9),n.attr("width",16));var r="object"===this.tagName.toLowerCase()||n.attr("height")&&!isNaN(parseInt(n.attr("height"),10))?parseInt(n.attr("height"),10):n.height(),o=isNaN(parseInt(n.attr("width"),10))?n.width():parseInt(n.attr("width"),10),a=r/o;if(!n.attr("id")){var s="fitvid"+t;n.attr("id",s)}n.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*a+"%"),n.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto);var $nav=$("#site-nav"),$btn=$("#site-nav button"),$vlinks=$("#site-nav .visible-links"),$hlinks=$("#site-nav .hidden-links"),breaks=[];$(window).resize(function(){updateNav()}),$btn.on("click",function(){$hlinks.toggleClass("hidden"),$(this).toggleClass("close")}),updateNav(),function(e){var t,n,i,r,o,a,s,l="Close",u="BeforeClose",c="AfterClose",d="BeforeAppend",f="MarkupParse",p="Open",h="Change",m="mfp",g="."+m,v="mfp-ready",y="mfp-removing",b="mfp-prevent-close",x=function(){},w=!!window.jQuery,C=e(window),T=function(e,n){t.ev.on(m+e+g,n)},k=function(t,n,i,r){var o=document.createElement("div");return o.className="mfp-"+t,i&&(o.innerHTML=i),r?n&&n.appendChild(o):(o=e(o),n&&o.appendTo(n)),o},E=function(n,i){t.ev.triggerHandler(m+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},S=function(n){return n===s&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),s=n),t.currTemplate.closeBtn},N=function(){e.magnificPopup.instance||(t=new x,t.init(),e.magnificPopup.instance=t)},L=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};x.prototype={constructor:x,init:function(){var n=navigator.appVersion;t.isIE7=n.indexOf("MSIE 7.")!==-1,t.isIE8=n.indexOf("MSIE 8.")!==-1,t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=L(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),r=e(document),t.popupsCache={}},open:function(n){i||(i=e(document.body));var o;if(n.isObj===!1){t.items=n.items.toArray(),t.index=0;var s,l=n.items;for(o=0;o<l.length;o++)if(s=l[o],s.parsed&&(s=s.el[0]),s===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(t.isOpen)return void t.updateItemHTML();t.types=[],a="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=r,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=k("bg").on("click"+g,function(){t.close()}),t.wrap=k("wrap").attr("tabindex",-1).on("click"+g,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=k("container",t.wrap)),t.contentContainer=k("content"),t.st.preloader&&(t.preloader=k("preloader",t.container,t.st.tLoading));var u=e.magnificPopup.modules;for(o=0;o<u.length;o++){var c=u[o];c=c.charAt(0).toUpperCase()+c.slice(1),t["init"+c].call(t)}E("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(T(f,function(e,t,n,i){n.close_replaceWith=S(i.type)}),a+=" mfp-close-btn-in"):t.wrap.append(S())),t.st.alignTop&&(a+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:C.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:r.height(),position:"absolute"}),t.st.enableEscapeKey&&r.on("keyup"+g,function(e){27===e.keyCode&&t.close()}),C.on("resize"+g,function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var d=t.wH=C.height(),h={};if(t.fixedContentPos&&t._hasScrollBar(d)){var m=t._getScrollbarSize();m&&(h.marginRight=m)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):h.overflow="hidden");var y=t.st.mainClass;return t.isIE7&&(y+=" mfp-ie7"),y&&t._addClassToMFP(y),t.updateItemHTML(),E("BuildControls"),e("html").css(h),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||i),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(v),t._setFocus()):t.bgOverlay.addClass(v),r.on("focusin"+g,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(d),E(p),n},close:function(){t.isOpen&&(E(u),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(y),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){E(l);var n=y+" "+v+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var i={marginRight:""};t.isIE7?e("body, html").css("overflow",""):i.overflow="",e("html").css(i)}r.off("keyup"+g+" focusin"+g),t.ev.off(g),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&t.currTemplate[t.currItem.type]!==!0||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,E(c)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||C.height();t.fixedContentPos||t.wrap.css("height",t.wH),E("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(E("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var r=!!t.st[i]&&t.st[i].markup;E("FirstMarkupParse",r),r?t.currTemplate[i]=e(r):t.currTemplate[i]=!0}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var a=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(a,i),n.preloaded=!0,E(h,n),o=n.type,t.container.prepend(t.contentContainer),E("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[n]===!0?t.content.find(".mfp-close").length||t.content.append(S()):t.content=e:t.content="",E(d),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,r=t.items[n];if(r.tagName?r={el:e(r)}:(i=r.type,r={data:r,src:r.src}),r.el){for(var o=t.types,a=0;a<o.length;a++)if(r.el.hasClass("mfp-"+o[a])){i=o[a];break}r.src=r.el.attr("data-mfp-src"),r.src||(r.src=r.el.attr("href"))}return r.type=i||t.st.type||"inline",r.index=n,r.parsed=!0,t.items[n]=r,E("ElementParse",r),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var r="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(r).on(r,i)):(n.isObj=!1,n.delegate?e.off(r).on(r,n.delegate,i):(n.items=e,e.off(r).on(r,i)))},_openClick:function(n,i,r){var o=void 0!==r.midClick?r.midClick:e.magnificPopup.defaults.midClick;if(o||2!==n.which&&!n.ctrlKey&&!n.metaKey){var a=void 0!==r.disableOn?r.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(C.width()<a)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),r.el=e(n.mfpEl),r.delegate&&(r.items=i.find(r.delegate)),t.open(r)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var r={status:e,text:i};E("UpdateStatus",r),e=r.status,i=r.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(b)){var i=t.st.closeOnContentClick,r=t.st.closeOnBgClick;if(i&&r)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(r&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?r.height():document.body.scrollHeight)>(e||C.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var r;i.data&&(n=e.extend(i.data,n)),E(f,[t,n,i]),e.each(n,function(e,n){if(void 0===n||n===!1)return!0;if(r=e.split("_"),r.length>1){var i=t.find(g+"-"+r[0]);if(i.length>0){var o=r[1];"replaceWith"===o?i[0]!==n[0]&&i.replaceWith(n):"img"===o?i.is("img")?i.attr("src",n):i.replaceWith('<img src="'+n+'" class="'+i.attr("class")+'" />'):i.attr(r[1],n)}}else t.find(g+"-"+e).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.id="mfp-sbm",e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:x.prototype,modules:[],open:function(t,n){return N(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(n){N();var i=e(this);if("string"==typeof n)if("open"===n){var r,o=w?i.data("magnificPopup"):i[0].magnificPopup,a=parseInt(arguments[1],10)||0;o.items?r=o.items[a]:(r=i,o.delegate&&(r=r.find(o.delegate)),r=r.eq(a)),t._openClick({mfpEl:r},i,o)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),w?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var A,j,_,D="inline",I=function(){_&&(j.after(_.addClass(A)).detach(),_=null)};e.magnificPopup.registerModule(D,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(D),T(l+"."+D,function(){I()})},getInline:function(n,i){if(I(),n.src){var r=t.st.inline,o=e(n.src);if(o.length){var a=o[0].parentNode;a&&a.tagName&&(j||(A=r.hiddenClass,j=k(A),A="mfp-"+A),_=o.after(j).detach().removeClass(A)),t.updateStatus("ready")}else t.updateStatus("error",r.tNotFound),o=e("<div>");return n.inlineElement=o,o}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var H,O="ajax",M=function(){H&&i.removeClass(H)},P=function(){M(),t.req&&t.req.abort()};e.magnificPopup.registerModule(O,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(O),H=t.st.ajax.cursor,T(l+"."+O,P),T("BeforeChange."+O,P)},getAjax:function(n){H&&i.addClass(H),t.updateStatus("loading");var r=e.extend({url:n.src,success:function(i,r,o){var a={data:i,xhr:o};E("ParseAjax",a),t.appendContent(e(a.data),O),n.finished=!0,M(),t._setFocus(),setTimeout(function(){t.wrap.addClass(v)},16),t.updateStatus("ready"),E("AjaxContentAdded")},error:function(){M(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(r),""}}});var B,F=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var e=t.st.image,n=".image";t.types.push("image"),T(p+n,function(){"image"===t.currItem.type&&e.cursor&&i.addClass(e.cursor)}),T(l+n,function(){e.cursor&&i.removeClass(e.cursor),C.off("resize"+g)}),T("Resize"+n,t.resizeImage),t.isLowIE&&T("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,B&&clearInterval(B),e.isCheckingImgSize=!1,E("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],r=function(o){B&&clearInterval(B),B=setInterval(function(){return i.naturalWidth>0?void t._onImageHasSize(e):(n>200&&clearInterval(B),n++,void(3===n?r(10):40===n?r(50):100===n&&r(500)))},o)};r(1)},getImage:function(n,i){var r=0,o=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,E("ImageLoadComplete")):(r++,r<200?setTimeout(o,100):a()))},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var u=document.createElement("img");u.className="mfp-img",n.img=e(u).on("load.mfploader",o).on("error.mfploader",a),u.src=n.src,l.is("img")&&(n.img=n.img.clone()),u=n.img[0],u.naturalWidth>0?n.hasSize=!0:u.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:F(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(B&&clearInterval(B),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}});var q,$=function(){return void 0===q&&(q=void 0!==document.createElement("p").style.MozTransform),q};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var r,o,a=n.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,r={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return r["-webkit-"+o]=r["-moz-"+o]=r["-o-"+o]=r[o]=i,t.css(r),t},c=function(){t.content.css("visibility","visible")};T("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(r),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return void c();o=s(e),o.css(t._getOffset()),t.wrap.append(o),r=setTimeout(function(){o.css(t._getOffset(!0)),r=setTimeout(function(){c(),setTimeout(function(){o.remove(),e=o=null,E("ZoomAnimationEnded")},16)},a)},16)}}),T(u+i,function(){if(t._allowZoom()){if(clearTimeout(r),t.st.removalDelay=a,!e){if(e=t._getItemToZoom(),!e)return;o=s(e)}o.css(t._getOffset(!0)),t.wrap.append(o),t.content.css("visibility","hidden"),setTimeout(function(){o.css(t._getOffset())},16)}}),T(l+i,function(){t._allowZoom()&&(c(),o&&o.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i;i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var r=i.offset(),o=parseInt(i.css("padding-top"),10),a=parseInt(i.css("padding-bottom"),10);r.top-=e(window).scrollTop()-o;var s={width:i.width(),height:(w?i.innerHeight():i[0].offsetHeight)-a-o};return $()?s["-moz-transform"]=s.transform="translate("+r.left+"px,"+r.top+"px)":(s.left=r.left,s.top=r.top),s}}});var z="iframe",R="//about:blank",W=function(e){if(t.currTemplate[z]){var n=t.currTemplate[z].find("iframe");n.length&&(e||(n[0].src=R),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(z,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(z),T("BeforeChange",function(e,t,n){t!==n&&(t===z?W():n===z&&W(!0))}),T(l+"."+z,function(){W()})},getIframe:function(n,i){var r=n.src,o=t.st.iframe;e.each(o.patterns,function(){if(r.indexOf(this.index)>-1)return this.id&&(r="string"==typeof this.id?r.substr(r.lastIndexOf(this.id)+this.id.length,r.length):this.id.call(this,r)),r=this.src.replace("%id%",r),!1});var a={};return o.srcAction&&(a[o.srcAction]=r),t._parseMarkup(i,a,n),t.updateStatus("ready"),i}}});var X=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},Y=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,i=".mfp-gallery",o=Boolean(e.fn.mfpFastClick);return t.direction=!0,!(!n||!n.enabled)&&(a+=" mfp-gallery",T(p+i,function(){n.navigateByImgClick&&t.wrap.on("click"+i,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),r.on("keydown"+i,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),T("UpdateStatus"+i,function(e,n){n.text&&(n.text=Y(n.text,t.currItem.index,t.items.length))}),T(f+i,function(e,i,r,o){var a=t.items.length;r.counter=a>1?Y(n.tCounter,o.index,a):""}),T("BuildControls"+i,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,r=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(b),a=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(b),s=o?"mfpFastClick":"click";r[s](function(){t.prev()}),a[s](function(){t.next()}),t.isIE7&&(k("b",r[0],!1,!0),k("a",r[0],!1,!0),k("b",a[0],!1,!0),k("a",a[0],!1,!0)),t.container.append(r.add(a))}}),T(h+i,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),void T(l+i,function(){r.off(i),t.wrap.off("click"+i),t.arrowLeft&&o&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick(),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=X(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=X(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),r=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?r:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:r);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=X(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),E("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,E("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});var U="retina";e.magnificPopup.registerModule(U,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;n=isNaN(n)?n():n,n>1&&(T("ImageHasSize."+U,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),T("ElementParse."+U,function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),function(){var t=1e3,n="ontouchstart"in window,i=function(){C.off("touchmove"+o+" touchend"+o)},r="mfpFastClick",o="."+r;e.fn.mfpFastClick=function(r){return e(this).each(function(){var a,s=e(this);if(n){var l,u,c,d,f,p;s.on("touchstart"+o,function(e){d=!1,p=1,f=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],u=f.clientX,c=f.clientY,C.on("touchmove"+o,function(e){f=e.originalEvent?e.originalEvent.touches:e.touches,p=f.length,f=f[0],(Math.abs(f.clientX-u)>10||Math.abs(f.clientY-c)>10)&&(d=!0,i())}).on("touchend"+o,function(e){i(),d||p>1||(a=!0,e.preventDefault(),clearTimeout(l),l=setTimeout(function(){a=!1},t),r())})})}s.on("click"+o,function(){a||r()})})},e.fn.destroyMfpFastClick=function(){e(this).off("touchstart"+o+" click"+o),n&&C.off("touchmove"+o+" touchend"+o)}}(),N()}(window.jQuery||window.Zepto),!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(e){var t="1.7.2",n={},i={exclude:[],excludeWithin:[],offset:0,direction:"top",delegateSelector:null,scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!0},r=function(t){var n=[],i=!1,r=t.dir&&"left"===t.dir?"scrollLeft":"scrollTop";return this.each(function(){var t=e(this);if(this!==document&&this!==window)return!document.scrollingElement||this!==document.documentElement&&this!==document.body?void(t[r]()>0?n.push(this):(t[r](1),i=t[r]()>0,i&&n.push(this),t[r](0))):(n.push(document.scrollingElement),!1)}),n.length||this.each(function(){this===document.documentElement&&"smooth"===e(this).css("scrollBehavior")&&(n=[this]),n.length||"BODY"!==this.nodeName||(n=[this])}),"first"===t.el&&n.length>1&&(n=[n[0]]),n};e.fn.extend({scrollable:function(e){var t=r.call(this,{dir:e});return this.pushStack(t)},firstScrollable:function(e){var t=r.call(this,{el:"first",dir:e});return this.pushStack(t)},smoothScroll:function(t,n){if(t=t||{},"options"===t)return n?this.each(function(){var t=e(this),i=e.extend(t.data("ssOpts")||{},n);e(this).data("ssOpts",i)}):this.first().data("ssOpts");var i=e.extend({},e.fn.smoothScroll.defaults,t),r=function(t){var n=function(e){return e.replace(/(:|\.|\/)/g,"\\$1")},r=this,o=e(this),a=e.extend({},i,o.data("ssOpts")||{}),s=i.exclude,l=a.excludeWithin,u=0,c=0,d=!0,f={},p=e.smoothScroll.filterPath(location.pathname),h=e.smoothScroll.filterPath(r.pathname),m=location.hostname===r.hostname||!r.hostname,g=a.scrollTarget||h===p,v=n(r.hash);if(v&&!e(v).length&&(d=!1),a.scrollTarget||m&&g&&v){for(;d&&u<s.length;)o.is(n(s[u++]))&&(d=!1);for(;d&&c<l.length;)o.closest(l[c++]).length&&(d=!1)}else d=!1;d&&(a.preventDefault&&t.preventDefault(),e.extend(f,a,{scrollTarget:a.scrollTarget||v,link:r}),e.smoothScroll(f))};return null!==t.delegateSelector?this.undelegate(t.delegateSelector,"click.smoothscroll").delegate(t.delegateSelector,"click.smoothscroll",r):this.unbind("click.smoothscroll").bind("click.smoothscroll",r),this}}),e.smoothScroll=function(t,i){if("options"===t&&"object"==typeof i)return e.extend(n,i);var r,o,a,s,l,u=0,c="offset",d="scrollTop",f={},p={};"number"==typeof t?(r=e.extend({link:null},e.fn.smoothScroll.defaults,n),a=t):(r=e.extend({link:null},e.fn.smoothScroll.defaults,t||{},n),r.scrollElement&&(c="position","static"===r.scrollElement.css("position")&&r.scrollElement.css("position","relative"))),d="left"===r.direction?"scrollLeft":d,r.scrollElement?(o=r.scrollElement,/^(?:HTML|BODY)$/.test(o[0].nodeName)||(u=o[d]())):o=e("html, body").firstScrollable(r.direction),r.beforeScroll.call(o,r),a="number"==typeof t?t:i||e(r.scrollTarget)[c]()&&e(r.scrollTarget)[c]()[r.direction]||0,f[d]=a+u+r.offset,s=r.speed,"auto"===s&&(l=Math.abs(f[d]-o[d]()),s=l/r.autoCoefficient),p={duration:s,easing:r.easing,complete:function(){r.afterScroll.call(r.link,r)}},r.step&&(p.step=r.step),o.length?o.stop().animate(f,p):r.afterScroll.call(r.link,r)},e.smoothScroll.version=t,e.smoothScroll.filterPath=function(e){return e=e||"",e.replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},e.fn.smoothScroll.defaults=i}),!function(e,t){function n(){k=A=E=S=N=L=M}function i(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}function r(e){return parseFloat(e)||0}function o(){_={top:t.pageYOffset,left:t.pageXOffset}}function a(){return t.pageXOffset!=_.left?(o(),void E()):void(t.pageYOffset!=_.top&&(o(),l()))}function s(e){setTimeout(function(){t.pageYOffset!=_.top&&(_.top=t.pageYOffset,l())},0)}function l(){for(var e=I.length-1;e>=0;e--)u(I[e])}function u(e){if(e.inited){var t=_.top<=e.limit.start?0:_.top>=e.limit.end?2:1;e.mode!=t&&m(e,t)}}function c(){for(var e=I.length-1;e>=0;e--)if(I[e].inited){var t=Math.abs(b(I[e].clone)-I[e].docOffsetTop),n=Math.abs(I[e].parent.node.offsetHeight-I[e].parent.height);if(t>=2||n>=2)return!1}return!0}function d(e){isNaN(parseFloat(e.computed.top))||e.isCell||"none"==e.computed.display||(e.inited=!0,e.clone||g(e),"absolute"!=e.parent.computed.position&&"relative"!=e.parent.computed.position&&(e.parent.node.style.position="relative"),u(e),e.parent.height=e.parent.node.offsetHeight,e.docOffsetTop=b(e.clone))}function f(e){var t=!0;e.clone&&v(e),i(e.node.style,e.css);for(var n=I.length-1;n>=0;n--)if(I[n].node!==e.node&&I[n].parent.node===e.parent.node){t=!1;break}t&&(e.parent.node.style.position=e.parent.css.position),e.mode=-1}function p(){for(var e=I.length-1;e>=0;e--)d(I[e])}function h(){for(var e=I.length-1;e>=0;e--)f(I[e])}function m(e,t){var n=e.node.style;switch(t){case 0:n.position="absolute",n.left=e.offset.left+"px",n.right=e.offset.right+"px",n.top=e.offset.top+"px",n.bottom="auto",n.width="auto",n.marginLeft=0,n.marginRight=0,n.marginTop=0;break;case 1:n.position="fixed",n.left=e.box.left+"px",n.right=e.box.right+"px",n.top=e.css.top,n.bottom="auto",n.width="auto",n.marginLeft=0,n.marginRight=0,n.marginTop=0;break;case 2:n.position="absolute",n.left=e.offset.left+"px",n.right=e.offset.right+"px",n.top="auto",n.bottom=0,n.width="auto",n.marginLeft=0,n.marginRight=0}e.mode=t}function g(e){e.clone=document.createElement("div");var t=e.node.nextSibling||e.node,n=e.clone.style;n.height=e.height+"px",n.width=e.width+"px",n.marginTop=e.computed.marginTop,n.marginBottom=e.computed.marginBottom,n.marginLeft=e.computed.marginLeft,n.marginRight=e.computed.marginRight,n.padding=n.border=n.borderSpacing=0,n.fontSize="1em",n.position="static",n.cssFloat=e.computed.cssFloat,e.node.parentNode.insertBefore(e.clone,t)}function v(e){e.clone.parentNode.removeChild(e.clone),e.clone=void 0}function y(e){var t=getComputedStyle(e),n=e.parentNode,i=getComputedStyle(n),o=e.style.position;e.style.position="relative";var a={top:t.top,marginTop:t.marginTop,marginBottom:t.marginBottom,marginLeft:t.marginLeft,marginRight:t.marginRight,cssFloat:t.cssFloat,display:t.display},s={top:r(t.top),marginBottom:r(t.marginBottom),paddingLeft:r(t.paddingLeft),paddingRight:r(t.paddingRight),borderLeftWidth:r(t.borderLeftWidth),borderRightWidth:r(t.borderRightWidth)};e.style.position=o;var l={position:e.style.position,top:e.style.top,bottom:e.style.bottom,left:e.style.left,right:e.style.right,width:e.style.width,marginTop:e.style.marginTop,marginLeft:e.style.marginLeft,marginRight:e.style.marginRight},u=x(e),c=x(n),d={node:n,css:{position:n.style.position},computed:{position:i.position},numeric:{borderLeftWidth:r(i.borderLeftWidth),borderRightWidth:r(i.borderRightWidth),borderTopWidth:r(i.borderTopWidth),borderBottomWidth:r(i.borderBottomWidth)}},f={node:e,box:{left:u.win.left,right:O.clientWidth-u.win.right},offset:{top:u.win.top-c.win.top-d.numeric.borderTopWidth,left:u.win.left-c.win.left-d.numeric.borderLeftWidth,right:-u.win.right+c.win.right-d.numeric.borderRightWidth},css:l,isCell:"table-cell"==t.display,computed:a, numeric:s,width:u.win.right-u.win.left,height:u.win.bottom-u.win.top,mode:-1,inited:!1,parent:d,limit:{start:u.doc.top-s.top,end:c.doc.top+n.offsetHeight-d.numeric.borderBottomWidth-e.offsetHeight-s.top-s.marginBottom}};return f}function b(e){for(var t=0;e;)t+=e.offsetTop,e=e.offsetParent;return t}function x(e){var n=e.getBoundingClientRect();return{doc:{top:n.top+t.pageYOffset,left:n.left+t.pageXOffset},win:n}}function w(){D=setInterval(function(){!c()&&E()},500)}function C(){clearInterval(D)}function T(){H&&(document[P]?C():w())}function k(){H||(o(),p(),t.addEventListener("scroll",a),t.addEventListener("wheel",s),t.addEventListener("resize",E),t.addEventListener("orientationchange",E),e.addEventListener(B,T),w(),H=!0)}function E(){if(H){h();for(var e=I.length-1;e>=0;e--)I[e]=y(I[e].node);p()}}function S(){t.removeEventListener("scroll",a),t.removeEventListener("wheel",s),t.removeEventListener("resize",E),t.removeEventListener("orientationchange",E),e.removeEventListener(B,T),C(),H=!1}function N(){S(),h()}function L(){for(N();I.length;)I.pop()}function A(e){for(var t=I.length-1;t>=0;t--)if(I[t].node===e)return;var n=y(e);I.push(n),H?d(n):k()}function j(e){for(var t=I.length-1;t>=0;t--)I[t].node===e&&(f(I[t]),I.splice(t,1))}var _,D,I=[],H=!1,O=e.documentElement,M=function(){},P="hidden",B="visibilitychange";void 0!==e.webkitHidden&&(P="webkitHidden",B="webkitvisibilitychange"),t.getComputedStyle||n();for(var F=["","-webkit-","-moz-","-ms-"],q=document.createElement("div"),$=F.length-1;$>=0;$--){try{q.style.position=F[$]+"sticky"}catch(e){}""!=q.style.position&&n()}o(),t.Stickyfill={stickies:I,add:A,remove:j,init:k,rebuild:E,pause:S,stop:N,kill:L}}(document,window),window.jQuery&&!function(e){e.fn.Stickyfill=function(e){return this.each(function(){Stickyfill.add(this)}),this}}(window.jQuery),$(document).ready(function(){$("#main").fitVids(),$(".sticky").Stickyfill();var e=function(){var e=0===$(".author__urls-wrapper button").length?$(window).width()>1024:!$(".author__urls-wrapper button").is(":visible");e?(Stickyfill.rebuild(),Stickyfill.init(),$(".author__urls").show()):(Stickyfill.stop(),$(".author__urls").hide())};e(),$(window).resize(function(){e()}),$(".author__urls-wrapper button").on("click",function(){$(".author__urls").fadeToggle("fast",function(){}),$(".author__urls-wrapper button").toggleClass("open")}),$("a").smoothScroll({offset:-20}),$("a[href$='.jpg'],a[href$='.jpeg'],a[href$='.JPG'],a[href$='.png'],a[href$='.gif']").addClass("image-popup"),$(".image-popup").magnificPopup({type:"image",tLoading:"Loading image #%curr%...",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:'<a href="%url%">Image #%curr%</a> could not be loaded.'},removalDelay:500,mainClass:"mfp-zoom-in",callbacks:{beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace("mfp-figure","mfp-figure mfp-with-anim")}},closeOnContentClick:!0,midClick:!0})});
shared/components/Equilab/DownloadBar/DownloadButton.js
thehink/equilab-web
import React from 'react'; import PropTypes from 'prop-types'; import styles from './DownloadButton.scss'; const DownloadButton = ({ image, url }) => ( <a title={url} className={styles.wrapper} href={url} style={{ backgroundImage: `url('${image}')` }} > <span className="invisible">{url}</span> </a> ); DownloadButton.propTypes = { image: PropTypes.string.isRequired, url: PropTypes.string.isRequired, }; export default DownloadButton;
ajax/libs/material-ui/5.0.0-alpha.28/ImageListItemBar/ImageListItemBar.min.js
cdnjs/cdnjs
import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import _extends from"@babel/runtime/helpers/esm/extends";import{unstable_composeClasses as composeClasses}from"@material-ui/unstyled";import{deepmerge}from"@material-ui/utils";import clsx from"clsx";import PropTypes from"prop-types";import*as React from"react";import experimentalStyled from"../styles/experimentalStyled";import useThemeProps from"../styles/useThemeProps";import capitalize from"../utils/capitalize";import imageListItemBarClasses,{getImageListItemBarUtilityClass}from"./imageListItemBarClasses";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";const overridesResolver=(t,e)=>{const{styleProps:i}=t;return deepmerge(_extends({},e[`position${capitalize(i.position)}`],{[`& .${imageListItemBarClasses.titleWrap}`]:_extends({},e.titleWrap,e[`titleWrap${capitalize(i.position)}`],i.actionIcon&&e[`titleWrapActionPos${capitalize(i.actionPosition)}`]),[`& .${imageListItemBarClasses.title}`]:e.title,[`& .${imageListItemBarClasses.subtitle}`]:e.subtitle,[`& .${imageListItemBarClasses.actionIcon}`]:_extends({},e.actionIcon,e[`actionIconActionPos${capitalize(i.actionPosition)}`])}),e.root||{})},useUtilityClasses=t=>{const{classes:e,position:i,actionIcon:o,actionPosition:s}=t,a={root:["root",`position${capitalize(i)}`],titleWrap:["titleWrap",`titleWrap${capitalize(i)}`,o&&`titleWrapActionPos${capitalize(s)}`],title:["title"],subtitle:["subtitle"],actionIcon:["actionIcon",`actionIconActionPos${capitalize(s)}`]};return composeClasses(a,getImageListItemBarUtilityClass,e)},ImageListItemBarRoot=experimentalStyled("div",{},{name:"MuiImageListItemBar",slot:"Root",overridesResolver:overridesResolver})(({theme:t,styleProps:e})=>_extends({position:"absolute",left:0,right:0,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",fontFamily:t.typography.fontFamily},"bottom"===e.position&&{bottom:0},"top"===e.position&&{top:0},"below"===e.position&&{position:"relative",background:"transparent",alignItems:"normal"})),ImageListItemBarTitleWrap=experimentalStyled("div",{},{name:"MuiImageListItemBar",slot:"TitleWrap"})(({theme:t,styleProps:e})=>_extends({flexGrow:1,padding:"12px 16px",color:t.palette.common.white,overflow:"hidden"},"below"===e.position&&{padding:"6px 0 12px",color:"inherit"},e.actionIcon&&"left"===e.actionPosition&&{paddingLeft:0},e.actionIcon&&"right"===e.actionPosition&&{paddingRight:0})),ImageListItemBarTitle=experimentalStyled("div",{},{name:"MuiImageListItemBar",slot:"Title"})(({theme:t})=>({fontSize:t.typography.pxToRem(16),lineHeight:"24px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),ImageListItemBarSubtitle=experimentalStyled("div",{},{name:"MuiImageListItemBar",slot:"Subtitle"})(({theme:t})=>({fontSize:t.typography.pxToRem(12),lineHeight:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),ImageListItemBarActionIcon=experimentalStyled("div",{},{name:"MuiImageListItemBar",slot:"ActionIcon"})(({styleProps:t})=>_extends({},"left"===t.actionPosition&&{order:-1})),ImageListItemBar=React.forwardRef(function(t,e){const i=useThemeProps({props:t,name:"MuiImageListItemBar"}),{actionIcon:o,actionPosition:s="right",className:a,subtitle:r,title:l,position:n="bottom"}=i,p=_objectWithoutPropertiesLoose(i,["actionIcon","actionPosition","className","subtitle","title","position"]),m=_extends({},i,{position:n,actionPosition:s}),c=useUtilityClasses(m);return _jsxs(ImageListItemBarRoot,_extends({styleProps:m,className:clsx(c.root,a),ref:e},p,{children:[_jsxs(ImageListItemBarTitleWrap,{styleProps:m,className:c.titleWrap,children:[_jsx(ImageListItemBarTitle,{className:c.title,children:l}),r?_jsx(ImageListItemBarSubtitle,{className:c.subtitle,children:r}):null]}),o?_jsx(ImageListItemBarActionIcon,{styleProps:m,className:c.actionIcon,children:o}):null]}))});"production"!==process.env.NODE_ENV&&(ImageListItemBar.propTypes={actionIcon:PropTypes.node,actionPosition:PropTypes.oneOf(["left","right"]),children:PropTypes.node,classes:PropTypes.object,className:PropTypes.string,position:PropTypes.oneOf(["below","bottom","top"]),subtitle:PropTypes.node,sx:PropTypes.object,title:PropTypes.node});export default ImageListItemBar;
ajax/libs/react-nvd3/0.1.0/react-nvd3.min.js
BenjaminVanRyseghem/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("d3"),require("nvd3")):"function"==typeof define&&define.amd?define(["react","d3","nvd3"],e):"object"==typeof exports?exports.NVD3Chart=e(require("react"),require("d3"),require("nvd3")):t.NVD3Chart=e(t.React,t.d3,t.nv)}(this,function(t,e,n){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";var r=n(1)["default"],o=n(15)["default"],u=n(26)["default"],i=n(29)["default"],c=n(30)["default"],f=n(37)["default"],a=n(40)["default"];Object.defineProperty(e,"__esModule",{value:!0});var s=n(41),p=a(s),l=n(42),d=a(l),v=n(43),y=a(v),h=["x","y","width","height","type","datum"],g=function(t){function e(){i(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).apply(this,arguments)}return o(e,t),u(e,[{key:"componentDidMount",value:function(){var t=this;y["default"].addGraph(function(){return t.chart=y["default"].models[t.props.type]().x(t.getValueFunction(t.props.x,"x")).y(t.getValueFunction(t.props.y,"y")).margin(t.propsByPrefix("margin-")||{}).options(t.getChartOptions()),!t.props.configure||t.props.configure(t.chart),d["default"].select(t.refs.svg.getDOMNode()).datum(t.props.datum).call(t.chart),y["default"].utils.windowResize(t.chart.update),t.chart})}},{key:"componentDidUpdate",value:function(){!this.chart||d["default"].select(this.refs.svg.getDOMNode()).datum(this.props.datum).call(this.chart)}},{key:"getChartOptions",value:function(){var t=this,e=this.props.chartOptions||{};return f(this.props).forEach(function(n){h.indexOf(n)<0&&(e[n]=t.props[n])}),e}},{key:"propsByPrefix",value:function(t){var e=this;return f(this.props).reduce(function(n,r){return r.startsWith(t)&&(n[r.replace(t,"")]=e.props[r]),n},{})}},{key:"getValueFunction",value:function(t,e){return"function"==typeof t?t:function(n){return"undefined"!=typeof n[t]?n[t]:n[e]}}},{key:"render",value:function(){var t=this,e={};return["width","height"].forEach(function(n){t.props[n]&&(e[n]=t.props[n])}),p["default"].createElement("div",{ref:"root",className:"nv-chart"},p["default"].createElement("svg",c({ref:"svg"},e)))}}]),e}(p["default"].Component);e["default"]=g,t.exports=e["default"]},function(t,e,n){"use strict";var r=n(2)["default"];e["default"]=function(t,e,n){for(var o=!0;o;){var u=t,i=e,c=n;f=s=a=void 0,o=!1,null===u&&(u=Function.prototype);var f=r(u,i);if(void 0!==f){if("value"in f)return f.value;var a=f.get;return void 0===a?void 0:a.call(c)}var s=Object.getPrototypeOf(u);if(null===s)return void 0;t=s,e=i,n=c,o=!0}},e.__esModule=!0},function(t,e,n){t.exports={"default":n(3),__esModule:!0}},function(t,e,n){var r=n(4);n(5),t.exports=function(t,e){return r.getDesc(t,e)}},function(t,e){var n=Object;t.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},function(t,e,n){var r=n(6);n(10)("getOwnPropertyDescriptor",function(t){return function(e,n){return t(r(e),n)}})},function(t,e,n){var r=n(7),o=n(9);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(8);t.exports=0 in Object("z")?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){t.exports=function(t,e){var r=n(11),o=(n(13).Object||{})[t]||Object[t],u={};u[t]=e(o),r(r.S+r.F*n(14)(function(){o(1)}),"Object",u)}},function(t,e,n){var r=n(12),o=n(13),u="prototype",i=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e,n){var f,a,s,p,l=t&c.G,d=t&c.P,v=l?r:t&c.S?r[e]:(r[e]||{})[u],y=l?o:o[e]||(o[e]={});l&&(n=e);for(f in n)a=!(t&c.F)&&v&&f in v,a&&f in y||(s=a?v[f]:n[f],l&&"function"!=typeof v[f]?p=n[f]:t&c.B&&a?p=i(s,r):t&c.W&&v[f]==s?!function(t){p=function(e){return this instanceof t?new t(e):t(e)},p[u]=t[u]}(s):p=d&&"function"==typeof s?i(Function.call,s):s,y[f]=p,d&&((y[u]||(y[u]={}))[f]=s))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,t.exports=c},function(t,e){var n="undefined",r=t.exports=typeof window!=n&&window.Math==Math?window:typeof self!=n&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e){var n=t.exports={};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,n){"use strict";var r=n(16)["default"],o=n(18)["default"];e["default"]=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=r(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o?o(t,e):t.__proto__=e)},e.__esModule=!0},function(t,e,n){t.exports={"default":n(17),__esModule:!0}},function(t,e,n){var r=n(4);t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){t.exports={"default":n(19),__esModule:!0}},function(t,e,n){n(20),t.exports=n(13).Object.setPrototypeOf},function(t,e,n){var r=n(11);r(r.S,"Object",{setPrototypeOf:n(21).set})},function(t,e,n){var r=n(4).getDesc,o=n(22),u=n(23),i=function(t,e){if(u(t),!o(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e){try{e=n(24)(Function.call,r(Object.prototype,"__proto__").set,2),e({},[])}catch(o){t=!0}return function(n,r){return i(n,r),t?n.__proto__=r:e(n,r),n}}():void 0),check:i}},function(t,e){t.exports=function(t){return null!==t&&("object"==typeof t||"function"==typeof t)}},function(t,e,n){var r=n(22);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(25);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var r=n(27)["default"];e["default"]=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),r(t,o.key,o)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),e.__esModule=!0},function(t,e,n){t.exports={"default":n(28),__esModule:!0}},function(t,e,n){var r=n(4);t.exports=function(t,e,n){return r.setDesc(t,e,n)}},function(t,e){"use strict";e["default"]=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},e.__esModule=!0},function(t,e,n){"use strict";var r=n(31)["default"];e["default"]=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},e.__esModule=!0},function(t,e,n){t.exports={"default":n(32),__esModule:!0}},function(t,e,n){n(33),t.exports=n(13).Object.assign},function(t,e,n){var r=n(11);r(r.S+r.F,"Object",{assign:n(34)})},function(t,e,n){var r=n(35),o=n(7),u=n(36);t.exports=n(14)(function(){return Symbol()in Object.assign({})})?function(t,e){for(var n=r(t),i=arguments.length,c=1;i>c;)for(var f,a=o(arguments[c++]),s=u(a),p=s.length,l=0;p>l;)n[f=s[l++]]=a[f];return n}:Object.assign},function(t,e,n){var r=n(9);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(4);t.exports=function(t){var e=r.getKeys(t),n=r.getSymbols;if(n)for(var o,u=n(t),i=r.isEnum,c=0;u.length>c;)i.call(t,o=u[c++])&&e.push(o);return e}},function(t,e,n){t.exports={"default":n(38),__esModule:!0}},function(t,e,n){n(39),t.exports=n(13).Object.keys},function(t,e,n){var r=n(35);n(10)("keys",function(t){return function(e){return t(r(e))}})},function(t,e){"use strict";e["default"]=function(t){return t&&t.__esModule?t:{"default":t}},e.__esModule=!0},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){t.exports=n}])});
examples/counter/test/components/Counter.spec.js
mjw56/redux
import expect from 'expect' import React from 'react' import { shallow } from 'enzyme' import Counter from '../../components/Counter' function setup(value = 0) { const actions = { onIncrement: expect.createSpy(), onDecrement: expect.createSpy() } const component = shallow( <Counter value={value} {...actions} /> ) return { component: component, actions: actions, buttons: component.find('button'), p: component.find('p') } } describe('Counter component', () => { it('should display count', () => { const { p } = setup() expect(p.text()).toMatch(/^Clicked: 0 times/) }) it('first button should call onIncrement', () => { const { buttons, actions } = setup() buttons.at(0).simulate('click') expect(actions.onIncrement).toHaveBeenCalled() }) it('second button should call onDecrement', () => { const { buttons, actions } = setup() buttons.at(1).simulate('click') expect(actions.onDecrement).toHaveBeenCalled() }) it('third button should not call onIncrement if the counter is even', () => { const { buttons, actions } = setup(42) buttons.at(2).simulate('click') expect(actions.onIncrement).toNotHaveBeenCalled() }) it('third button should call onIncrement if the counter is odd', () => { const { buttons, actions } = setup(43) buttons.at(2).simulate('click') expect(actions.onIncrement).toHaveBeenCalled() }) it('third button should call onIncrement if the counter is odd and negative', () => { const { buttons, actions } = setup(-43) buttons.at(2).simulate('click') expect(actions.onIncrement).toHaveBeenCalled() }) it('fourth button should call onIncrement in a second', (done) => { const { buttons, actions } = setup() buttons.at(3).simulate('click') setTimeout(() => { expect(actions.onIncrement).toHaveBeenCalled() done() }, 1000) }) })
files/babel/5.5.5/browser-polyfill.js
Craga89/jsdelivr
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ (function (global){ "use strict"; require("core-js/shim"); require("regenerator/runtime"); if (global._babelPolyfill) { throw new Error("only one instance of babel/polyfill is allowed"); } global._babelPolyfill = true; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"core-js/shim":79,"regenerator/runtime":80}],2:[function(require,module,exports){ // shim for using process in browser var process = module.exports = {}; var queue = []; var draining = false; function drainQueue() { if (draining) { return; } draining = true; var currentQueue; var len = queue.length; while(len) { currentQueue = queue; queue = []; var i = -1; while (++i < len) { currentQueue[i](); } len = queue.length; } draining = false; } process.nextTick = function (fun) { queue.push(fun); if (!draining) { setTimeout(drainQueue, 0); } }; process.title = 'browser'; process.browser = true; process.env = {}; process.argv = []; process.version = ''; // empty string to avoid regexp issues process.versions = {}; function noop() {} process.on = noop; process.addListener = noop; process.once = noop; process.off = noop; process.removeListener = noop; process.removeAllListeners = noop; process.emit = noop; process.binding = function (name) { throw new Error('process.binding is not supported'); }; // TODO(shtylman) process.cwd = function () { return '/' }; process.chdir = function (dir) { throw new Error('process.chdir is not supported'); }; process.umask = function() { return 0; }; },{}],3:[function(require,module,exports){ 'use strict'; // false -> Array#indexOf // true -> Array#includes var $ = require('./$'); module.exports = function(IS_INCLUDES){ return function(el /*, fromIndex = 0 */){ var O = $.toObject(this) , length = $.toLength(O.length) , index = $.toIndex(arguments[1], length) , value; if(IS_INCLUDES && el != el)while(length > index){ value = O[index++]; if(value != value)return true; } else for(;length > index; index++)if(IS_INCLUDES || index in O){ if(O[index] === el)return IS_INCLUDES || index; } return !IS_INCLUDES && -1; }; }; },{"./$":22}],4:[function(require,module,exports){ 'use strict'; // 0 -> Array#forEach // 1 -> Array#map // 2 -> Array#filter // 3 -> Array#some // 4 -> Array#every // 5 -> Array#find // 6 -> Array#findIndex var $ = require('./$') , ctx = require('./$.ctx'); module.exports = function(TYPE){ var IS_MAP = TYPE == 1 , IS_FILTER = TYPE == 2 , IS_SOME = TYPE == 3 , IS_EVERY = TYPE == 4 , IS_FIND_INDEX = TYPE == 6 , NO_HOLES = TYPE == 5 || IS_FIND_INDEX; return function(callbackfn/*, that = undefined */){ var O = Object($.assertDefined(this)) , self = $.ES5Object(O) , f = ctx(callbackfn, arguments[1], 3) , length = $.toLength(self.length) , index = 0 , result = IS_MAP ? Array(length) : IS_FILTER ? [] : undefined , val, res; for(;length > index; index++)if(NO_HOLES || index in self){ val = self[index]; res = f(val, index, O); if(TYPE){ if(IS_MAP)result[index] = res; // map else if(res)switch(TYPE){ case 3: return true; // some case 5: return val; // find case 6: return index; // findIndex case 2: result.push(val); // filter } else if(IS_EVERY)return false; // every } } return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; }; }; },{"./$":22,"./$.ctx":12}],5:[function(require,module,exports){ var $ = require('./$'); function assert(condition, msg1, msg2){ if(!condition)throw TypeError(msg2 ? msg1 + msg2 : msg1); } assert.def = $.assertDefined; assert.fn = function(it){ if(!$.isFunction(it))throw TypeError(it + ' is not a function!'); return it; }; assert.obj = function(it){ if(!$.isObject(it))throw TypeError(it + ' is not an object!'); return it; }; assert.inst = function(it, Constructor, name){ if(!(it instanceof Constructor))throw TypeError(name + ": use the 'new' operator!"); return it; }; module.exports = assert; },{"./$":22}],6:[function(require,module,exports){ var $ = require('./$') , enumKeys = require('./$.enum-keys'); // 19.1.2.1 Object.assign(target, source, ...) /* eslint-disable no-unused-vars */ module.exports = Object.assign || function assign(target, source){ /* eslint-enable no-unused-vars */ var T = Object($.assertDefined(target)) , l = arguments.length , i = 1; while(l > i){ var S = $.ES5Object(arguments[i++]) , keys = enumKeys(S) , length = keys.length , j = 0 , key; while(length > j)T[key = keys[j++]] = S[key]; } return T; }; },{"./$":22,"./$.enum-keys":14}],7:[function(require,module,exports){ var $ = require('./$') , TAG = require('./$.wks')('toStringTag') , toString = {}.toString; function cof(it){ return toString.call(it).slice(8, -1); } cof.classof = function(it){ var O, T; return it == undefined ? it === undefined ? 'Undefined' : 'Null' : typeof (T = (O = Object(it))[TAG]) == 'string' ? T : cof(O); }; cof.set = function(it, tag, stat){ if(it && !$.has(it = stat ? it : it.prototype, TAG))$.hide(it, TAG, tag); }; module.exports = cof; },{"./$":22,"./$.wks":33}],8:[function(require,module,exports){ 'use strict'; var $ = require('./$') , ctx = require('./$.ctx') , safe = require('./$.uid').safe , assert = require('./$.assert') , forOf = require('./$.for-of') , step = require('./$.iter').step , has = $.has , set = $.set , isObject = $.isObject , hide = $.hide , isFrozen = Object.isFrozen || $.core.Object.isFrozen , ID = safe('id') , O1 = safe('O1') , LAST = safe('last') , FIRST = safe('first') , ITER = safe('iter') , SIZE = $.DESC ? safe('size') : 'size' , id = 0; function fastKey(it, create){ // return primitive with prefix if(!isObject(it))return (typeof it == 'string' ? 'S' : 'P') + it; // can't set id to frozen object if(isFrozen(it))return 'F'; if(!has(it, ID)){ // not necessary to add id if(!create)return 'E'; // add missing object id hide(it, ID, ++id); // return object id with prefix } return 'O' + it[ID]; } function getEntry(that, key){ // fast case var index = fastKey(key), entry; if(index != 'F')return that[O1][index]; // frozen object case for(entry = that[FIRST]; entry; entry = entry.n){ if(entry.k == key)return entry; } } module.exports = { getConstructor: function(NAME, IS_MAP, ADDER){ function C(){ var that = assert.inst(this, C, NAME) , iterable = arguments[0]; set(that, O1, $.create(null)); set(that, SIZE, 0); set(that, LAST, undefined); set(that, FIRST, undefined); if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that); } $.mix(C.prototype, { // 23.1.3.1 Map.prototype.clear() // 23.2.3.2 Set.prototype.clear() clear: function clear(){ for(var that = this, data = that[O1], entry = that[FIRST]; entry; entry = entry.n){ entry.r = true; if(entry.p)entry.p = entry.p.n = undefined; delete data[entry.i]; } that[FIRST] = that[LAST] = undefined; that[SIZE] = 0; }, // 23.1.3.3 Map.prototype.delete(key) // 23.2.3.4 Set.prototype.delete(value) 'delete': function(key){ var that = this , entry = getEntry(that, key); if(entry){ var next = entry.n , prev = entry.p; delete that[O1][entry.i]; entry.r = true; if(prev)prev.n = next; if(next)next.p = prev; if(that[FIRST] == entry)that[FIRST] = next; if(that[LAST] == entry)that[LAST] = prev; that[SIZE]--; } return !!entry; }, // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined) // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined) forEach: function forEach(callbackfn /*, that = undefined */){ var f = ctx(callbackfn, arguments[1], 3) , entry; while(entry = entry ? entry.n : this[FIRST]){ f(entry.v, entry.k, this); // revert to the last existing entry while(entry && entry.r)entry = entry.p; } }, // 23.1.3.7 Map.prototype.has(key) // 23.2.3.7 Set.prototype.has(value) has: function has(key){ return !!getEntry(this, key); } }); if($.DESC)$.setDesc(C.prototype, 'size', { get: function(){ return assert.def(this[SIZE]); } }); return C; }, def: function(that, key, value){ var entry = getEntry(that, key) , prev, index; // change existing entry if(entry){ entry.v = value; // create new entry } else { that[LAST] = entry = { i: index = fastKey(key, true), // <- index k: key, // <- key v: value, // <- value p: prev = that[LAST], // <- previous entry n: undefined, // <- next entry r: false // <- removed }; if(!that[FIRST])that[FIRST] = entry; if(prev)prev.n = entry; that[SIZE]++; // add to index if(index != 'F')that[O1][index] = entry; } return that; }, getEntry: getEntry, // add .keys, .values, .entries, [@@iterator] // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11 setIter: function(C, NAME, IS_MAP){ require('./$.iter-define')(C, NAME, function(iterated, kind){ set(this, ITER, {o: iterated, k: kind}); }, function(){ var iter = this[ITER] , kind = iter.k , entry = iter.l; // revert to the last existing entry while(entry && entry.r)entry = entry.p; // get next entry if(!iter.o || !(iter.l = entry = entry ? entry.n : iter.o[FIRST])){ // or finish the iteration iter.o = undefined; return step(1); } // return step by kind if(kind == 'keys' )return step(0, entry.k); if(kind == 'values')return step(0, entry.v); return step(0, [entry.k, entry.v]); }, IS_MAP ? 'entries' : 'values' , !IS_MAP, true); } }; },{"./$":22,"./$.assert":5,"./$.ctx":12,"./$.for-of":15,"./$.iter":21,"./$.iter-define":19,"./$.uid":31}],9:[function(require,module,exports){ // https://github.com/DavidBruant/Map-Set.prototype.toJSON var $def = require('./$.def') , forOf = require('./$.for-of'); module.exports = function(NAME){ $def($def.P, NAME, { toJSON: function toJSON(){ var arr = []; forOf(this, false, arr.push, arr); return arr; } }); }; },{"./$.def":13,"./$.for-of":15}],10:[function(require,module,exports){ 'use strict'; var $ = require('./$') , safe = require('./$.uid').safe , assert = require('./$.assert') , forOf = require('./$.for-of') , _has = $.has , isObject = $.isObject , hide = $.hide , isFrozen = Object.isFrozen || $.core.Object.isFrozen , id = 0 , ID = safe('id') , WEAK = safe('weak') , LEAK = safe('leak') , method = require('./$.array-methods') , find = method(5) , findIndex = method(6); function findFrozen(store, key){ return find.call(store.array, function(it){ return it[0] === key; }); } // fallback for frozen keys function leakStore(that){ return that[LEAK] || hide(that, LEAK, { array: [], get: function(key){ var entry = findFrozen(this, key); if(entry)return entry[1]; }, has: function(key){ return !!findFrozen(this, key); }, set: function(key, value){ var entry = findFrozen(this, key); if(entry)entry[1] = value; else this.array.push([key, value]); }, 'delete': function(key){ var index = findIndex.call(this.array, function(it){ return it[0] === key; }); if(~index)this.array.splice(index, 1); return !!~index; } })[LEAK]; } module.exports = { getConstructor: function(NAME, IS_MAP, ADDER){ function C(){ $.set(assert.inst(this, C, NAME), ID, id++); var iterable = arguments[0]; if(iterable != undefined)forOf(iterable, IS_MAP, this[ADDER], this); } $.mix(C.prototype, { // 23.3.3.2 WeakMap.prototype.delete(key) // 23.4.3.3 WeakSet.prototype.delete(value) 'delete': function(key){ if(!isObject(key))return false; if(isFrozen(key))return leakStore(this)['delete'](key); return _has(key, WEAK) && _has(key[WEAK], this[ID]) && delete key[WEAK][this[ID]]; }, // 23.3.3.4 WeakMap.prototype.has(key) // 23.4.3.4 WeakSet.prototype.has(value) has: function has(key){ if(!isObject(key))return false; if(isFrozen(key))return leakStore(this).has(key); return _has(key, WEAK) && _has(key[WEAK], this[ID]); } }); return C; }, def: function(that, key, value){ if(isFrozen(assert.obj(key))){ leakStore(that).set(key, value); } else { _has(key, WEAK) || hide(key, WEAK, {}); key[WEAK][that[ID]] = value; } return that; }, leakStore: leakStore, WEAK: WEAK, ID: ID }; },{"./$":22,"./$.array-methods":4,"./$.assert":5,"./$.for-of":15,"./$.uid":31}],11:[function(require,module,exports){ 'use strict'; var $ = require('./$') , $def = require('./$.def') , BUGGY = require('./$.iter').BUGGY , forOf = require('./$.for-of') , species = require('./$.species') , assertInstance = require('./$.assert').inst; module.exports = function(NAME, methods, common, IS_MAP, IS_WEAK){ var Base = $.g[NAME] , C = Base , ADDER = IS_MAP ? 'set' : 'add' , proto = C && C.prototype , O = {}; function fixMethod(KEY, CHAIN){ var method = proto[KEY]; if($.FW)proto[KEY] = function(a, b){ var result = method.call(this, a === 0 ? 0 : a, b); return CHAIN ? this : result; }; } if(!$.isFunction(C) || !(IS_WEAK || !BUGGY && proto.forEach && proto.entries)){ // create collection constructor C = common.getConstructor(NAME, IS_MAP, ADDER); $.mix(C.prototype, methods); } else { var inst = new C , chain = inst[ADDER](IS_WEAK ? {} : -0, 1) , buggyZero; // wrap for init collections from iterable if(!require('./$.iter-detect')(function(iter){ new C(iter); })){ // eslint-disable-line no-new C = function(){ assertInstance(this, C, NAME); var that = new Base , iterable = arguments[0]; if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that); return that; }; C.prototype = proto; if($.FW)proto.constructor = C; } IS_WEAK || inst.forEach(function(val, key){ buggyZero = 1 / key === -Infinity; }); // fix converting -0 key to +0 if(buggyZero){ fixMethod('delete'); fixMethod('has'); IS_MAP && fixMethod('get'); } // + fix .add & .set for chaining if(buggyZero || chain !== inst)fixMethod(ADDER, true); } require('./$.cof').set(C, NAME); O[NAME] = C; $def($def.G + $def.W + $def.F * (C != Base), O); species(C); species($.core[NAME]); // for wrapper if(!IS_WEAK)common.setIter(C, NAME, IS_MAP); return C; }; },{"./$":22,"./$.assert":5,"./$.cof":7,"./$.def":13,"./$.for-of":15,"./$.iter":21,"./$.iter-detect":20,"./$.species":28}],12:[function(require,module,exports){ // Optional / simple context binding var assertFunction = require('./$.assert').fn; module.exports = function(fn, that, length){ assertFunction(fn); if(~length && that === undefined)return fn; switch(length){ case 1: return function(a){ return fn.call(that, a); }; case 2: return function(a, b){ return fn.call(that, a, b); }; case 3: return function(a, b, c){ return fn.call(that, a, b, c); }; } return function(/* ...args */){ return fn.apply(that, arguments); }; }; },{"./$.assert":5}],13:[function(require,module,exports){ var $ = require('./$') , global = $.g , core = $.core , isFunction = $.isFunction; function ctx(fn, that){ return function(){ return fn.apply(that, arguments); }; } global.core = core; // type bitmap $def.F = 1; // forced $def.G = 2; // global $def.S = 4; // static $def.P = 8; // proto $def.B = 16; // bind $def.W = 32; // wrap function $def(type, name, source){ var key, own, out, exp , isGlobal = type & $def.G , target = isGlobal ? global : type & $def.S ? global[name] : (global[name] || {}).prototype , exports = isGlobal ? core : core[name] || (core[name] = {}); if(isGlobal)source = name; for(key in source){ // contains in native own = !(type & $def.F) && target && key in target; // export native or passed out = (own ? target : source)[key]; // bind timers to global for call from export context if(type & $def.B && own)exp = ctx(out, global); else exp = type & $def.P && isFunction(out) ? ctx(Function.call, out) : out; // extend global if(target && !own){ if(isGlobal)target[key] = out; else delete target[key] && $.hide(target, key, out); } // export if(exports[key] != out)$.hide(exports, key, exp); } } module.exports = $def; },{"./$":22}],14:[function(require,module,exports){ var $ = require('./$'); module.exports = function(it){ var keys = $.getKeys(it) , getDesc = $.getDesc , getSymbols = $.getSymbols; if(getSymbols)$.each.call(getSymbols(it), function(key){ if(getDesc(it, key).enumerable)keys.push(key); }); return keys; }; },{"./$":22}],15:[function(require,module,exports){ var ctx = require('./$.ctx') , get = require('./$.iter').get , call = require('./$.iter-call'); module.exports = function(iterable, entries, fn, that){ var iterator = get(iterable) , f = ctx(fn, that, entries ? 2 : 1) , step; while(!(step = iterator.next()).done){ if(call(iterator, f, step.value, entries) === false){ return call.close(iterator); } } }; },{"./$.ctx":12,"./$.iter":21,"./$.iter-call":18}],16:[function(require,module,exports){ module.exports = function($){ $.FW = true; $.path = $.g; return $; }; },{}],17:[function(require,module,exports){ // Fast apply // http://jsperf.lnkit.com/fast-apply/5 module.exports = function(fn, args, that){ var un = that === undefined; switch(args.length){ case 0: return un ? fn() : fn.call(that); case 1: return un ? fn(args[0]) : fn.call(that, args[0]); case 2: return un ? fn(args[0], args[1]) : fn.call(that, args[0], args[1]); case 3: return un ? fn(args[0], args[1], args[2]) : fn.call(that, args[0], args[1], args[2]); case 4: return un ? fn(args[0], args[1], args[2], args[3]) : fn.call(that, args[0], args[1], args[2], args[3]); case 5: return un ? fn(args[0], args[1], args[2], args[3], args[4]) : fn.call(that, args[0], args[1], args[2], args[3], args[4]); } return fn.apply(that, args); }; },{}],18:[function(require,module,exports){ var assertObject = require('./$.assert').obj; function close(iterator){ var ret = iterator['return']; if(ret !== undefined)assertObject(ret.call(iterator)); } function call(iterator, fn, value, entries){ try { return entries ? fn(assertObject(value)[0], value[1]) : fn(value); } catch(e){ close(iterator); throw e; } } call.close = close; module.exports = call; },{"./$.assert":5}],19:[function(require,module,exports){ var $def = require('./$.def') , $ = require('./$') , cof = require('./$.cof') , $iter = require('./$.iter') , SYMBOL_ITERATOR = require('./$.wks')('iterator') , FF_ITERATOR = '@@iterator' , VALUES = 'values' , Iterators = $iter.Iterators; module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCE){ $iter.create(Constructor, NAME, next); function createMethod(kind){ return function(){ return new Constructor(this, kind); }; } var TAG = NAME + ' Iterator' , proto = Base.prototype , _native = proto[SYMBOL_ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT] , _default = _native || createMethod(DEFAULT) , methods, key; // Fix native if(_native){ var IteratorPrototype = $.getProto(_default.call(new Base)); // Set @@toStringTag to native iterators cof.set(IteratorPrototype, TAG, true); // FF fix if($.FW && $.has(proto, FF_ITERATOR))$iter.set(IteratorPrototype, $.that); } // Define iterator if($.FW)$iter.set(proto, _default); // Plug for library Iterators[NAME] = _default; Iterators[TAG] = $.that; if(DEFAULT){ methods = { keys: IS_SET ? _default : createMethod('keys'), values: DEFAULT == VALUES ? _default : createMethod(VALUES), entries: DEFAULT != VALUES ? _default : createMethod('entries') }; if(FORCE)for(key in methods){ if(!(key in proto))$.hide(proto, key, methods[key]); } else $def($def.P + $def.F * $iter.BUGGY, NAME, methods); } }; },{"./$":22,"./$.cof":7,"./$.def":13,"./$.iter":21,"./$.wks":33}],20:[function(require,module,exports){ var SYMBOL_ITERATOR = require('./$.wks')('iterator') , SAFE_CLOSING = false; try { var riter = [7][SYMBOL_ITERATOR](); riter['return'] = function(){ SAFE_CLOSING = true; }; Array.from(riter, function(){ throw 2; }); } catch(e){ /* empty */ } module.exports = function(exec){ if(!SAFE_CLOSING)return false; var safe = false; try { var arr = [7] , iter = arr[SYMBOL_ITERATOR](); iter.next = function(){ safe = true; }; arr[SYMBOL_ITERATOR] = function(){ return iter; }; exec(arr); } catch(e){ /* empty */ } return safe; }; },{"./$.wks":33}],21:[function(require,module,exports){ 'use strict'; var $ = require('./$') , cof = require('./$.cof') , assertObject = require('./$.assert').obj , SYMBOL_ITERATOR = require('./$.wks')('iterator') , FF_ITERATOR = '@@iterator' , Iterators = {} , IteratorPrototype = {}; // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() setIterator(IteratorPrototype, $.that); function setIterator(O, value){ $.hide(O, SYMBOL_ITERATOR, value); // Add iterator for FF iterator protocol if(FF_ITERATOR in [])$.hide(O, FF_ITERATOR, value); } module.exports = { // Safari has buggy iterators w/o `next` BUGGY: 'keys' in [] && !('next' in [].keys()), Iterators: Iterators, step: function(done, value){ return {value: value, done: !!done}; }, is: function(it){ var O = Object(it) , Symbol = $.g.Symbol , SYM = Symbol && Symbol.iterator || FF_ITERATOR; return SYM in O || SYMBOL_ITERATOR in O || $.has(Iterators, cof.classof(O)); }, get: function(it){ var Symbol = $.g.Symbol , ext = it[Symbol && Symbol.iterator || FF_ITERATOR] , getIter = ext || it[SYMBOL_ITERATOR] || Iterators[cof.classof(it)]; return assertObject(getIter.call(it)); }, set: setIterator, create: function(Constructor, NAME, next, proto){ Constructor.prototype = $.create(proto || IteratorPrototype, {next: $.desc(1, next)}); cof.set(Constructor, NAME + ' Iterator'); } }; },{"./$":22,"./$.assert":5,"./$.cof":7,"./$.wks":33}],22:[function(require,module,exports){ 'use strict'; var global = typeof self != 'undefined' ? self : Function('return this')() , core = {} , defineProperty = Object.defineProperty , hasOwnProperty = {}.hasOwnProperty , ceil = Math.ceil , floor = Math.floor , max = Math.max , min = Math.min; // The engine works fine with descriptors? Thank's IE8 for his funny defineProperty. var DESC = !!function(){ try { return defineProperty({}, 'a', {get: function(){ return 2; }}).a == 2; } catch(e){ /* empty */ } }(); var hide = createDefiner(1); // 7.1.4 ToInteger function toInteger(it){ return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); } function desc(bitmap, value){ return { enumerable : !(bitmap & 1), configurable: !(bitmap & 2), writable : !(bitmap & 4), value : value }; } function simpleSet(object, key, value){ object[key] = value; return object; } function createDefiner(bitmap){ return DESC ? function(object, key, value){ return $.setDesc(object, key, desc(bitmap, value)); } : simpleSet; } function isObject(it){ return it !== null && (typeof it == 'object' || typeof it == 'function'); } function isFunction(it){ return typeof it == 'function'; } function assertDefined(it){ if(it == undefined)throw TypeError("Can't call method on " + it); return it; } var $ = module.exports = require('./$.fw')({ g: global, core: core, html: global.document && document.documentElement, // http://jsperf.com/core-js-isobject isObject: isObject, isFunction: isFunction, it: function(it){ return it; }, that: function(){ return this; }, // 7.1.4 ToInteger toInteger: toInteger, // 7.1.15 ToLength toLength: function(it){ return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 }, toIndex: function(index, length){ index = toInteger(index); return index < 0 ? max(index + length, 0) : min(index, length); }, has: function(it, key){ return hasOwnProperty.call(it, key); }, create: Object.create, getProto: Object.getPrototypeOf, DESC: DESC, desc: desc, getDesc: Object.getOwnPropertyDescriptor, setDesc: defineProperty, setDescs: Object.defineProperties, getKeys: Object.keys, getNames: Object.getOwnPropertyNames, getSymbols: Object.getOwnPropertySymbols, assertDefined: assertDefined, // Dummy, fix for not array-like ES3 string in es5 module ES5Object: Object, toObject: function(it){ return $.ES5Object(assertDefined(it)); }, hide: hide, def: createDefiner(0), set: global.Symbol ? simpleSet : hide, mix: function(target, src){ for(var key in src)hide(target, key, src[key]); return target; }, each: [].forEach }); /* eslint-disable no-undef */ if(typeof __e != 'undefined')__e = core; if(typeof __g != 'undefined')__g = global; },{"./$.fw":16}],23:[function(require,module,exports){ var $ = require('./$'); module.exports = function(object, el){ var O = $.toObject(object) , keys = $.getKeys(O) , length = keys.length , index = 0 , key; while(length > index)if(O[key = keys[index++]] === el)return key; }; },{"./$":22}],24:[function(require,module,exports){ var $ = require('./$') , assertObject = require('./$.assert').obj; module.exports = function ownKeys(it){ assertObject(it); var keys = $.getNames(it) , getSymbols = $.getSymbols; return getSymbols ? keys.concat(getSymbols(it)) : keys; }; },{"./$":22,"./$.assert":5}],25:[function(require,module,exports){ 'use strict'; var $ = require('./$') , invoke = require('./$.invoke') , assertFunction = require('./$.assert').fn; module.exports = function(/* ...pargs */){ var fn = assertFunction(this) , length = arguments.length , pargs = Array(length) , i = 0 , _ = $.path._ , holder = false; while(length > i)if((pargs[i] = arguments[i++]) === _)holder = true; return function(/* ...args */){ var that = this , _length = arguments.length , j = 0, k = 0, args; if(!holder && !_length)return invoke(fn, pargs, that); args = pargs.slice(); if(holder)for(;length > j; j++)if(args[j] === _)args[j] = arguments[k++]; while(_length > k)args.push(arguments[k++]); return invoke(fn, args, that); }; }; },{"./$":22,"./$.assert":5,"./$.invoke":17}],26:[function(require,module,exports){ 'use strict'; module.exports = function(regExp, replace, isStatic){ var replacer = replace === Object(replace) ? function(part){ return replace[part]; } : replace; return function(it){ return String(isStatic ? it : this).replace(regExp, replacer); }; }; },{}],27:[function(require,module,exports){ // Works with __proto__ only. Old v8 can't work with null proto objects. /* eslint-disable no-proto */ var $ = require('./$') , assert = require('./$.assert'); function check(O, proto){ assert.obj(O); assert(proto === null || $.isObject(proto), proto, ": can't set as prototype!"); } module.exports = { set: Object.setPrototypeOf || ('__proto__' in {} // eslint-disable-line ? function(buggy, set){ try { set = require('./$.ctx')(Function.call, $.getDesc(Object.prototype, '__proto__').set, 2); set({}, []); } catch(e){ buggy = true; } return function setPrototypeOf(O, proto){ check(O, proto); if(buggy)O.__proto__ = proto; else set(O, proto); return O; }; }() : undefined), check: check }; },{"./$":22,"./$.assert":5,"./$.ctx":12}],28:[function(require,module,exports){ var $ = require('./$') , SPECIES = require('./$.wks')('species'); module.exports = function(C){ if($.DESC && !(SPECIES in C))$.setDesc(C, SPECIES, { configurable: true, get: $.that }); }; },{"./$":22,"./$.wks":33}],29:[function(require,module,exports){ 'use strict'; // true -> String#at // false -> String#codePointAt var $ = require('./$'); module.exports = function(TO_STRING){ return function(pos){ var s = String($.assertDefined(this)) , i = $.toInteger(pos) , l = s.length , a, b; if(i < 0 || i >= l)return TO_STRING ? '' : undefined; a = s.charCodeAt(i); return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff ? TO_STRING ? s.charAt(i) : a : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; }; }; },{"./$":22}],30:[function(require,module,exports){ 'use strict'; var $ = require('./$') , ctx = require('./$.ctx') , cof = require('./$.cof') , invoke = require('./$.invoke') , global = $.g , isFunction = $.isFunction , html = $.html , document = global.document , process = global.process , setTask = global.setImmediate , clearTask = global.clearImmediate , postMessage = global.postMessage , addEventListener = global.addEventListener , MessageChannel = global.MessageChannel , counter = 0 , queue = {} , ONREADYSTATECHANGE = 'onreadystatechange' , defer, channel, port; function run(){ var id = +this; if($.has(queue, id)){ var fn = queue[id]; delete queue[id]; fn(); } } function listner(event){ run.call(event.data); } // Node.js 0.9+ & IE10+ has setImmediate, otherwise: if(!isFunction(setTask) || !isFunction(clearTask)){ setTask = function(fn){ var args = [], i = 1; while(arguments.length > i)args.push(arguments[i++]); queue[++counter] = function(){ invoke(isFunction(fn) ? fn : Function(fn), args); }; defer(counter); return counter; }; clearTask = function(id){ delete queue[id]; }; // Node.js 0.8- if(cof(process) == 'process'){ defer = function(id){ process.nextTick(ctx(run, id, 1)); }; // Modern browsers, skip implementation for WebWorkers // IE8 has postMessage, but it's sync & typeof its postMessage is object } else if(addEventListener && isFunction(postMessage) && !global.importScripts){ defer = function(id){ postMessage(id, '*'); }; addEventListener('message', listner, false); // WebWorkers } else if(isFunction(MessageChannel)){ channel = new MessageChannel; port = channel.port2; channel.port1.onmessage = listner; defer = ctx(port.postMessage, port, 1); // IE8- } else if(document && ONREADYSTATECHANGE in document.createElement('script')){ defer = function(id){ html.appendChild(document.createElement('script'))[ONREADYSTATECHANGE] = function(){ html.removeChild(this); run.call(id); }; }; // Rest old browsers } else { defer = function(id){ setTimeout(ctx(run, id, 1), 0); }; } } module.exports = { set: setTask, clear: clearTask }; },{"./$":22,"./$.cof":7,"./$.ctx":12,"./$.invoke":17}],31:[function(require,module,exports){ var sid = 0; function uid(key){ return 'Symbol(' + key + ')_' + (++sid + Math.random()).toString(36); } uid.safe = require('./$').g.Symbol || uid; module.exports = uid; },{"./$":22}],32:[function(require,module,exports){ // 22.1.3.31 Array.prototype[@@unscopables] var $ = require('./$') , UNSCOPABLES = require('./$.wks')('unscopables'); if($.FW && !(UNSCOPABLES in []))$.hide(Array.prototype, UNSCOPABLES, {}); module.exports = function(key){ if($.FW)[][UNSCOPABLES][key] = true; }; },{"./$":22,"./$.wks":33}],33:[function(require,module,exports){ var global = require('./$').g , store = {}; module.exports = function(name){ return store[name] || (store[name] = global.Symbol && global.Symbol[name] || require('./$.uid').safe('Symbol.' + name)); }; },{"./$":22,"./$.uid":31}],34:[function(require,module,exports){ var $ = require('./$') , cof = require('./$.cof') , $def = require('./$.def') , invoke = require('./$.invoke') , arrayMethod = require('./$.array-methods') , IE_PROTO = require('./$.uid').safe('__proto__') , assert = require('./$.assert') , assertObject = assert.obj , ObjectProto = Object.prototype , A = [] , slice = A.slice , indexOf = A.indexOf , classof = cof.classof , has = $.has , defineProperty = $.setDesc , getOwnDescriptor = $.getDesc , defineProperties = $.setDescs , isFunction = $.isFunction , toObject = $.toObject , toLength = $.toLength , IE8_DOM_DEFINE = false; if(!$.DESC){ try { IE8_DOM_DEFINE = defineProperty(document.createElement('div'), 'x', {get: function(){ return 8; }} ).x == 8; } catch(e){ /* empty */ } $.setDesc = function(O, P, Attributes){ if(IE8_DOM_DEFINE)try { return defineProperty(O, P, Attributes); } catch(e){ /* empty */ } if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!'); if('value' in Attributes)assertObject(O)[P] = Attributes.value; return O; }; $.getDesc = function(O, P){ if(IE8_DOM_DEFINE)try { return getOwnDescriptor(O, P); } catch(e){ /* empty */ } if(has(O, P))return $.desc(!ObjectProto.propertyIsEnumerable.call(O, P), O[P]); }; $.setDescs = defineProperties = function(O, Properties){ assertObject(O); var keys = $.getKeys(Properties) , length = keys.length , i = 0 , P; while(length > i)$.setDesc(O, P = keys[i++], Properties[P]); return O; }; } $def($def.S + $def.F * !$.DESC, 'Object', { // 19.1.2.6 / 15.2.3.3 Object.getOwnPropertyDescriptor(O, P) getOwnPropertyDescriptor: $.getDesc, // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) defineProperty: $.setDesc, // 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties) defineProperties: defineProperties }); // IE 8- don't enum bug keys var keys1 = ('constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,' + 'toLocaleString,toString,valueOf').split(',') // Additional keys for getOwnPropertyNames , keys2 = keys1.concat('length', 'prototype') , keysLen1 = keys1.length; // Create object with `null` prototype: use iframe Object with cleared prototype var createDict = function(){ // Thrash, waste and sodomy: IE GC bug var iframe = document.createElement('iframe') , i = keysLen1 , gt = '>' , iframeDocument; iframe.style.display = 'none'; $.html.appendChild(iframe); iframe.src = 'javascript:'; // eslint-disable-line no-script-url // createDict = iframe.contentWindow.Object; // html.removeChild(iframe); iframeDocument = iframe.contentWindow.document; iframeDocument.open(); iframeDocument.write('<script>document.F=Object</script' + gt); iframeDocument.close(); createDict = iframeDocument.F; while(i--)delete createDict.prototype[keys1[i]]; return createDict(); }; function createGetKeys(names, length){ return function(object){ var O = toObject(object) , i = 0 , result = [] , key; for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key); // Don't enum bug & hidden keys while(length > i)if(has(O, key = names[i++])){ ~indexOf.call(result, key) || result.push(key); } return result; }; } function isPrimitive(it){ return !$.isObject(it); } function Empty(){} $def($def.S, 'Object', { // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) getPrototypeOf: $.getProto = $.getProto || function(O){ O = Object(assert.def(O)); if(has(O, IE_PROTO))return O[IE_PROTO]; if(isFunction(O.constructor) && O instanceof O.constructor){ return O.constructor.prototype; } return O instanceof Object ? ObjectProto : null; }, // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) getOwnPropertyNames: $.getNames = $.getNames || createGetKeys(keys2, keys2.length, true), // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) create: $.create = $.create || function(O, /*?*/Properties){ var result; if(O !== null){ Empty.prototype = assertObject(O); result = new Empty(); Empty.prototype = null; // add "__proto__" for Object.getPrototypeOf shim result[IE_PROTO] = O; } else result = createDict(); return Properties === undefined ? result : defineProperties(result, Properties); }, // 19.1.2.14 / 15.2.3.14 Object.keys(O) keys: $.getKeys = $.getKeys || createGetKeys(keys1, keysLen1, false), // 19.1.2.17 / 15.2.3.8 Object.seal(O) seal: $.it, // <- cap // 19.1.2.5 / 15.2.3.9 Object.freeze(O) freeze: $.it, // <- cap // 19.1.2.15 / 15.2.3.10 Object.preventExtensions(O) preventExtensions: $.it, // <- cap // 19.1.2.13 / 15.2.3.11 Object.isSealed(O) isSealed: isPrimitive, // <- cap // 19.1.2.12 / 15.2.3.12 Object.isFrozen(O) isFrozen: isPrimitive, // <- cap // 19.1.2.11 / 15.2.3.13 Object.isExtensible(O) isExtensible: $.isObject // <- cap }); // 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...) $def($def.P, 'Function', { bind: function(that /*, args... */){ var fn = assert.fn(this) , partArgs = slice.call(arguments, 1); function bound(/* args... */){ var args = partArgs.concat(slice.call(arguments)); return invoke(fn, args, this instanceof bound ? $.create(fn.prototype) : that); } if(fn.prototype)bound.prototype = fn.prototype; return bound; } }); // Fix for not array-like ES3 string function arrayMethodFix(fn){ return function(){ return fn.apply($.ES5Object(this), arguments); }; } if(!(0 in Object('z') && 'z'[0] == 'z')){ $.ES5Object = function(it){ return cof(it) == 'String' ? it.split('') : Object(it); }; } $def($def.P + $def.F * ($.ES5Object != Object), 'Array', { slice: arrayMethodFix(slice), join: arrayMethodFix(A.join) }); // 22.1.2.2 / 15.4.3.2 Array.isArray(arg) $def($def.S, 'Array', { isArray: function(arg){ return cof(arg) == 'Array'; } }); function createArrayReduce(isRight){ return function(callbackfn, memo){ assert.fn(callbackfn); var O = toObject(this) , length = toLength(O.length) , index = isRight ? length - 1 : 0 , i = isRight ? -1 : 1; if(arguments.length < 2)for(;;){ if(index in O){ memo = O[index]; index += i; break; } index += i; assert(isRight ? index >= 0 : length > index, 'Reduce of empty array with no initial value'); } for(;isRight ? index >= 0 : length > index; index += i)if(index in O){ memo = callbackfn(memo, O[index], index, this); } return memo; }; } $def($def.P, 'Array', { // 22.1.3.10 / 15.4.4.18 Array.prototype.forEach(callbackfn [, thisArg]) forEach: $.each = $.each || arrayMethod(0), // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg]) map: arrayMethod(1), // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg]) filter: arrayMethod(2), // 22.1.3.23 / 15.4.4.17 Array.prototype.some(callbackfn [, thisArg]) some: arrayMethod(3), // 22.1.3.5 / 15.4.4.16 Array.prototype.every(callbackfn [, thisArg]) every: arrayMethod(4), // 22.1.3.18 / 15.4.4.21 Array.prototype.reduce(callbackfn [, initialValue]) reduce: createArrayReduce(false), // 22.1.3.19 / 15.4.4.22 Array.prototype.reduceRight(callbackfn [, initialValue]) reduceRight: createArrayReduce(true), // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex]) indexOf: indexOf = indexOf || require('./$.array-includes')(false), // 22.1.3.14 / 15.4.4.15 Array.prototype.lastIndexOf(searchElement [, fromIndex]) lastIndexOf: function(el, fromIndex /* = @[*-1] */){ var O = toObject(this) , length = toLength(O.length) , index = length - 1; if(arguments.length > 1)index = Math.min(index, $.toInteger(fromIndex)); if(index < 0)index = toLength(length + index); for(;index >= 0; index--)if(index in O)if(O[index] === el)return index; return -1; } }); // 21.1.3.25 / 15.5.4.20 String.prototype.trim() $def($def.P, 'String', {trim: require('./$.replacer')(/^\s*([\s\S]*\S)?\s*$/, '$1')}); // 20.3.3.1 / 15.9.4.4 Date.now() $def($def.S, 'Date', {now: function(){ return +new Date; }}); function lz(num){ return num > 9 ? num : '0' + num; } // 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString() // PhantomJS and old webkit had a broken Date implementation. var date = new Date(-5e13 - 1) , brokenDate = !(date.toISOString && date.toISOString() == '0385-07-25T07:06:39.999Z'); $def($def.P + $def.F * brokenDate, 'Date', {toISOString: function(){ if(!isFinite(this))throw RangeError('Invalid time value'); var d = this , y = d.getUTCFullYear() , m = d.getUTCMilliseconds() , s = y < 0 ? '-' : y > 9999 ? '+' : ''; return s + ('00000' + Math.abs(y)).slice(s ? -6 : -4) + '-' + lz(d.getUTCMonth() + 1) + '-' + lz(d.getUTCDate()) + 'T' + lz(d.getUTCHours()) + ':' + lz(d.getUTCMinutes()) + ':' + lz(d.getUTCSeconds()) + '.' + (m > 99 ? m : '0' + lz(m)) + 'Z'; }}); if(classof(function(){ return arguments; }()) == 'Object')cof.classof = function(it){ var tag = classof(it); return tag == 'Object' && isFunction(it.callee) ? 'Arguments' : tag; }; },{"./$":22,"./$.array-includes":3,"./$.array-methods":4,"./$.assert":5,"./$.cof":7,"./$.def":13,"./$.invoke":17,"./$.replacer":26,"./$.uid":31}],35:[function(require,module,exports){ 'use strict'; var $ = require('./$') , $def = require('./$.def') , toIndex = $.toIndex; $def($def.P, 'Array', { // 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length) copyWithin: function copyWithin(target/* = 0 */, start /* = 0, end = @length */){ var O = Object($.assertDefined(this)) , len = $.toLength(O.length) , to = toIndex(target, len) , from = toIndex(start, len) , end = arguments[2] , fin = end === undefined ? len : toIndex(end, len) , count = Math.min(fin - from, len - to) , inc = 1; if(from < to && to < from + count){ inc = -1; from = from + count - 1; to = to + count - 1; } while(count-- > 0){ if(from in O)O[to] = O[from]; else delete O[to]; to += inc; from += inc; } return O; } }); require('./$.unscope')('copyWithin'); },{"./$":22,"./$.def":13,"./$.unscope":32}],36:[function(require,module,exports){ 'use strict'; var $ = require('./$') , $def = require('./$.def') , toIndex = $.toIndex; $def($def.P, 'Array', { // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length) fill: function fill(value /*, start = 0, end = @length */){ var O = Object($.assertDefined(this)) , length = $.toLength(O.length) , index = toIndex(arguments[1], length) , end = arguments[2] , endPos = end === undefined ? length : toIndex(end, length); while(endPos > index)O[index++] = value; return O; } }); require('./$.unscope')('fill'); },{"./$":22,"./$.def":13,"./$.unscope":32}],37:[function(require,module,exports){ var $def = require('./$.def'); $def($def.P, 'Array', { // 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined) findIndex: require('./$.array-methods')(6) }); require('./$.unscope')('findIndex'); },{"./$.array-methods":4,"./$.def":13,"./$.unscope":32}],38:[function(require,module,exports){ var $def = require('./$.def'); $def($def.P, 'Array', { // 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined) find: require('./$.array-methods')(5) }); require('./$.unscope')('find'); },{"./$.array-methods":4,"./$.def":13,"./$.unscope":32}],39:[function(require,module,exports){ var $ = require('./$') , ctx = require('./$.ctx') , $def = require('./$.def') , $iter = require('./$.iter') , call = require('./$.iter-call'); $def($def.S + $def.F * !require('./$.iter-detect')(function(iter){ Array.from(iter); }), 'Array', { // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined) from: function from(arrayLike/*, mapfn = undefined, thisArg = undefined*/){ var O = Object($.assertDefined(arrayLike)) , mapfn = arguments[1] , mapping = mapfn !== undefined , f = mapping ? ctx(mapfn, arguments[2], 2) : undefined , index = 0 , length, result, step, iterator; if($iter.is(O)){ iterator = $iter.get(O); // strange IE quirks mode bug -> use typeof instead of isFunction result = new (typeof this == 'function' ? this : Array); for(; !(step = iterator.next()).done; index++){ result[index] = mapping ? call(iterator, f, [step.value, index], true) : step.value; } } else { // strange IE quirks mode bug -> use typeof instead of isFunction result = new (typeof this == 'function' ? this : Array)(length = $.toLength(O.length)); for(; length > index; index++){ result[index] = mapping ? f(O[index], index) : O[index]; } } result.length = index; return result; } }); },{"./$":22,"./$.ctx":12,"./$.def":13,"./$.iter":21,"./$.iter-call":18,"./$.iter-detect":20}],40:[function(require,module,exports){ var $ = require('./$') , setUnscope = require('./$.unscope') , ITER = require('./$.uid').safe('iter') , $iter = require('./$.iter') , step = $iter.step , Iterators = $iter.Iterators; // 22.1.3.4 Array.prototype.entries() // 22.1.3.13 Array.prototype.keys() // 22.1.3.29 Array.prototype.values() // 22.1.3.30 Array.prototype[@@iterator]() require('./$.iter-define')(Array, 'Array', function(iterated, kind){ $.set(this, ITER, {o: $.toObject(iterated), i: 0, k: kind}); // 22.1.5.2.1 %ArrayIteratorPrototype%.next() }, function(){ var iter = this[ITER] , O = iter.o , kind = iter.k , index = iter.i++; if(!O || index >= O.length){ iter.o = undefined; return step(1); } if(kind == 'keys' )return step(0, index); if(kind == 'values')return step(0, O[index]); return step(0, [index, O[index]]); }, 'values'); // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) Iterators.Arguments = Iterators.Array; setUnscope('keys'); setUnscope('values'); setUnscope('entries'); },{"./$":22,"./$.iter":21,"./$.iter-define":19,"./$.uid":31,"./$.unscope":32}],41:[function(require,module,exports){ var $def = require('./$.def'); $def($def.S, 'Array', { // 22.1.2.3 Array.of( ...items) of: function of(/* ...args */){ var index = 0 , length = arguments.length // strange IE quirks mode bug -> use typeof instead of isFunction , result = new (typeof this == 'function' ? this : Array)(length); while(length > index)result[index] = arguments[index++]; result.length = length; return result; } }); },{"./$.def":13}],42:[function(require,module,exports){ require('./$.species')(Array); },{"./$.species":28}],43:[function(require,module,exports){ 'use strict'; var $ = require('./$') , NAME = 'name' , setDesc = $.setDesc , FunctionProto = Function.prototype; // 19.2.4.2 name NAME in FunctionProto || $.FW && $.DESC && setDesc(FunctionProto, NAME, { configurable: true, get: function(){ var match = String(this).match(/^\s*function ([^ (]*)/) , name = match ? match[1] : ''; $.has(this, NAME) || setDesc(this, NAME, $.desc(5, name)); return name; }, set: function(value){ $.has(this, NAME) || setDesc(this, NAME, $.desc(0, value)); } }); },{"./$":22}],44:[function(require,module,exports){ 'use strict'; var strong = require('./$.collection-strong'); // 23.1 Map Objects require('./$.collection')('Map', { // 23.1.3.6 Map.prototype.get(key) get: function get(key){ var entry = strong.getEntry(this, key); return entry && entry.v; }, // 23.1.3.9 Map.prototype.set(key, value) set: function set(key, value){ return strong.def(this, key === 0 ? 0 : key, value); } }, strong, true); },{"./$.collection":11,"./$.collection-strong":8}],45:[function(require,module,exports){ var Infinity = 1 / 0 , $def = require('./$.def') , E = Math.E , pow = Math.pow , abs = Math.abs , exp = Math.exp , log = Math.log , sqrt = Math.sqrt , ceil = Math.ceil , floor = Math.floor , EPSILON = pow(2, -52) , EPSILON32 = pow(2, -23) , MAX32 = pow(2, 127) * (2 - EPSILON32) , MIN32 = pow(2, -126); function roundTiesToEven(n){ return n + 1 / EPSILON - 1 / EPSILON; } // 20.2.2.28 Math.sign(x) function sign(x){ return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1; } // 20.2.2.5 Math.asinh(x) function asinh(x){ return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : log(x + sqrt(x * x + 1)); } // 20.2.2.14 Math.expm1(x) function expm1(x){ return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : exp(x) - 1; } $def($def.S, 'Math', { // 20.2.2.3 Math.acosh(x) acosh: function acosh(x){ return (x = +x) < 1 ? NaN : isFinite(x) ? log(x / E + sqrt(x + 1) * sqrt(x - 1) / E) + 1 : x; }, // 20.2.2.5 Math.asinh(x) asinh: asinh, // 20.2.2.7 Math.atanh(x) atanh: function atanh(x){ return (x = +x) == 0 ? x : log((1 + x) / (1 - x)) / 2; }, // 20.2.2.9 Math.cbrt(x) cbrt: function cbrt(x){ return sign(x = +x) * pow(abs(x), 1 / 3); }, // 20.2.2.11 Math.clz32(x) clz32: function clz32(x){ return (x >>>= 0) ? 31 - floor(log(x + 0.5) * Math.LOG2E) : 32; }, // 20.2.2.12 Math.cosh(x) cosh: function cosh(x){ return (exp(x = +x) + exp(-x)) / 2; }, // 20.2.2.14 Math.expm1(x) expm1: expm1, // 20.2.2.16 Math.fround(x) fround: function fround(x){ var $abs = abs(x) , $sign = sign(x) , a, result; if($abs < MIN32)return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32; a = (1 + EPSILON32 / EPSILON) * $abs; result = a - (a - $abs); if(result > MAX32 || result != result)return $sign * Infinity; return $sign * result; }, // 20.2.2.17 Math.hypot([value1[, value2[, … ]]]) hypot: function hypot(value1, value2){ // eslint-disable-line no-unused-vars var sum = 0 , len1 = arguments.length , len2 = len1 , args = Array(len1) , larg = -Infinity , arg; while(len1--){ arg = args[len1] = +arguments[len1]; if(arg == Infinity || arg == -Infinity)return Infinity; if(arg > larg)larg = arg; } larg = arg || 1; while(len2--)sum += pow(args[len2] / larg, 2); return larg * sqrt(sum); }, // 20.2.2.18 Math.imul(x, y) imul: function imul(x, y){ var UInt16 = 0xffff , xn = +x , yn = +y , xl = UInt16 & xn , yl = UInt16 & yn; return 0 | xl * yl + ((UInt16 & xn >>> 16) * yl + xl * (UInt16 & yn >>> 16) << 16 >>> 0); }, // 20.2.2.20 Math.log1p(x) log1p: function log1p(x){ return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : log(1 + x); }, // 20.2.2.21 Math.log10(x) log10: function log10(x){ return log(x) / Math.LN10; }, // 20.2.2.22 Math.log2(x) log2: function log2(x){ return log(x) / Math.LN2; }, // 20.2.2.28 Math.sign(x) sign: sign, // 20.2.2.30 Math.sinh(x) sinh: function sinh(x){ return abs(x = +x) < 1 ? (expm1(x) - expm1(-x)) / 2 : (exp(x - 1) - exp(-x - 1)) * (E / 2); }, // 20.2.2.33 Math.tanh(x) tanh: function tanh(x){ var a = expm1(x = +x) , b = expm1(-x); return a == Infinity ? 1 : b == Infinity ? -1 : (a - b) / (exp(x) + exp(-x)); }, // 20.2.2.34 Math.trunc(x) trunc: function trunc(it){ return (it > 0 ? floor : ceil)(it); } }); },{"./$.def":13}],46:[function(require,module,exports){ 'use strict'; var $ = require('./$') , isObject = $.isObject , isFunction = $.isFunction , NUMBER = 'Number' , Number = $.g[NUMBER] , Base = Number , proto = Number.prototype; function toPrimitive(it){ var fn, val; if(isFunction(fn = it.valueOf) && !isObject(val = fn.call(it)))return val; if(isFunction(fn = it.toString) && !isObject(val = fn.call(it)))return val; throw TypeError("Can't convert object to number"); } function toNumber(it){ if(isObject(it))it = toPrimitive(it); if(typeof it == 'string' && it.length > 2 && it.charCodeAt(0) == 48){ var binary = false; switch(it.charCodeAt(1)){ case 66 : case 98 : binary = true; case 79 : case 111 : return parseInt(it.slice(2), binary ? 2 : 8); } } return +it; } if($.FW && !(Number('0o1') && Number('0b1'))){ Number = function Number(it){ return this instanceof Number ? new Base(toNumber(it)) : toNumber(it); }; $.each.call($.DESC ? $.getNames(Base) : ( // ES3: 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + // ES6 (in case, if modules with ES6 Number statics required before): 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger' ).split(','), function(key){ if($.has(Base, key) && !$.has(Number, key)){ $.setDesc(Number, key, $.getDesc(Base, key)); } } ); Number.prototype = proto; proto.constructor = Number; $.hide($.g, NUMBER, Number); } },{"./$":22}],47:[function(require,module,exports){ var $ = require('./$') , $def = require('./$.def') , abs = Math.abs , floor = Math.floor , _isFinite = $.g.isFinite , MAX_SAFE_INTEGER = 0x1fffffffffffff; // pow(2, 53) - 1 == 9007199254740991; function isInteger(it){ return !$.isObject(it) && _isFinite(it) && floor(it) === it; } $def($def.S, 'Number', { // 20.1.2.1 Number.EPSILON EPSILON: Math.pow(2, -52), // 20.1.2.2 Number.isFinite(number) isFinite: function isFinite(it){ return typeof it == 'number' && _isFinite(it); }, // 20.1.2.3 Number.isInteger(number) isInteger: isInteger, // 20.1.2.4 Number.isNaN(number) isNaN: function isNaN(number){ return number != number; }, // 20.1.2.5 Number.isSafeInteger(number) isSafeInteger: function isSafeInteger(number){ return isInteger(number) && abs(number) <= MAX_SAFE_INTEGER; }, // 20.1.2.6 Number.MAX_SAFE_INTEGER MAX_SAFE_INTEGER: MAX_SAFE_INTEGER, // 20.1.2.10 Number.MIN_SAFE_INTEGER MIN_SAFE_INTEGER: -MAX_SAFE_INTEGER, // 20.1.2.12 Number.parseFloat(string) parseFloat: parseFloat, // 20.1.2.13 Number.parseInt(string, radix) parseInt: parseInt }); },{"./$":22,"./$.def":13}],48:[function(require,module,exports){ // 19.1.3.1 Object.assign(target, source) var $def = require('./$.def'); $def($def.S, 'Object', {assign: require('./$.assign')}); },{"./$.assign":6,"./$.def":13}],49:[function(require,module,exports){ // 19.1.3.10 Object.is(value1, value2) var $def = require('./$.def'); $def($def.S, 'Object', { is: function is(x, y){ return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y; } }); },{"./$.def":13}],50:[function(require,module,exports){ // 19.1.3.19 Object.setPrototypeOf(O, proto) var $def = require('./$.def'); $def($def.S, 'Object', {setPrototypeOf: require('./$.set-proto').set}); },{"./$.def":13,"./$.set-proto":27}],51:[function(require,module,exports){ var $ = require('./$') , $def = require('./$.def') , isObject = $.isObject , toObject = $.toObject; function wrapObjectMethod(METHOD, MODE){ var fn = ($.core.Object || {})[METHOD] || Object[METHOD] , f = 0 , o = {}; o[METHOD] = MODE == 1 ? function(it){ return isObject(it) ? fn(it) : it; } : MODE == 2 ? function(it){ return isObject(it) ? fn(it) : true; } : MODE == 3 ? function(it){ return isObject(it) ? fn(it) : false; } : MODE == 4 ? function getOwnPropertyDescriptor(it, key){ return fn(toObject(it), key); } : MODE == 5 ? function getPrototypeOf(it){ return fn(Object($.assertDefined(it))); } : function(it){ return fn(toObject(it)); }; try { fn('z'); } catch(e){ f = 1; } $def($def.S + $def.F * f, 'Object', o); } wrapObjectMethod('freeze', 1); wrapObjectMethod('seal', 1); wrapObjectMethod('preventExtensions', 1); wrapObjectMethod('isFrozen', 2); wrapObjectMethod('isSealed', 2); wrapObjectMethod('isExtensible', 3); wrapObjectMethod('getOwnPropertyDescriptor', 4); wrapObjectMethod('getPrototypeOf', 5); wrapObjectMethod('keys'); wrapObjectMethod('getOwnPropertyNames'); },{"./$":22,"./$.def":13}],52:[function(require,module,exports){ 'use strict'; // 19.1.3.6 Object.prototype.toString() var $ = require('./$') , cof = require('./$.cof') , tmp = {}; tmp[require('./$.wks')('toStringTag')] = 'z'; if($.FW && cof(tmp) != 'z')$.hide(Object.prototype, 'toString', function toString(){ return '[object ' + cof.classof(this) + ']'; }); },{"./$":22,"./$.cof":7,"./$.wks":33}],53:[function(require,module,exports){ 'use strict'; var $ = require('./$') , ctx = require('./$.ctx') , cof = require('./$.cof') , $def = require('./$.def') , assert = require('./$.assert') , forOf = require('./$.for-of') , setProto = require('./$.set-proto').set , species = require('./$.species') , SPECIES = require('./$.wks')('species') , RECORD = require('./$.uid').safe('record') , PROMISE = 'Promise' , global = $.g , process = global.process , asap = process && process.nextTick || require('./$.task').set , P = global[PROMISE] , isFunction = $.isFunction , isObject = $.isObject , assertFunction = assert.fn , assertObject = assert.obj , test; var useNative = isFunction(P) && isFunction(P.resolve) && P.resolve(test = new P(function(){})) == test; // actual Firefox has broken subclass support, test that function P2(x){ var self = new P(x); setProto(self, P2.prototype); return self; } if(useNative){ try { // protect against bad/buggy Object.setPrototype setProto(P2, P); P2.prototype = $.create(P.prototype, {constructor: {value: P2}}); if(!(P2.resolve(5).then(function(){}) instanceof P2)){ useNative = false; } } catch(e){ useNative = false; } } // helpers function getConstructor(C){ var S = assertObject(C)[SPECIES]; return S != undefined ? S : C; } function isThenable(it){ var then; if(isObject(it))then = it.then; return isFunction(then) ? then : false; } function notify(record){ var chain = record.c; if(chain.length)asap(function(){ var value = record.v , ok = record.s == 1 , i = 0; while(chain.length > i)!function(react){ var cb = ok ? react.ok : react.fail , ret, then; try { if(cb){ if(!ok)record.h = true; ret = cb === true ? value : cb(value); if(ret === react.P){ react.rej(TypeError('Promise-chain cycle')); } else if(then = isThenable(ret)){ then.call(ret, react.res, react.rej); } else react.res(ret); } else react.rej(value); } catch(err){ react.rej(err); } }(chain[i++]); chain.length = 0; }); } function isUnhandled(promise){ var record = promise[RECORD] , chain = record.a , i = 0 , react; if(record.h)return false; while(chain.length > i){ react = chain[i++]; if(react.fail || !isUnhandled(react.P))return false; } return true; } function $reject(value){ var record = this , promise; if(record.d)return; record.d = true; record = record.r || record; // unwrap record.v = value; record.s = 2; asap(function(){ setTimeout(function(){ if(isUnhandled(promise = record.p)){ if(cof(process) == 'process'){ process.emit('unhandledRejection', value, promise); } else if(global.console && isFunction(console.error)){ console.error('Unhandled promise rejection', value); } } }, 1); }); notify(record); } function $resolve(value){ var record = this , then, wrapper; if(record.d)return; record.d = true; record = record.r || record; // unwrap try { if(then = isThenable(value)){ wrapper = {r: record, d: false}; // wrap then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1)); } else { record.v = value; record.s = 1; notify(record); } } catch(err){ $reject.call(wrapper || {r: record, d: false}, err); // wrap } } // constructor polyfill if(!useNative){ // 25.4.3.1 Promise(executor) P = function Promise(executor){ assertFunction(executor); var record = { p: assert.inst(this, P, PROMISE), // <- promise c: [], // <- awaiting reactions a: [], // <- all reactions s: 0, // <- state d: false, // <- done v: undefined, // <- value h: false // <- handled rejection }; $.hide(this, RECORD, record); try { executor(ctx($resolve, record, 1), ctx($reject, record, 1)); } catch(err){ $reject.call(record, err); } }; $.mix(P.prototype, { // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected) then: function then(onFulfilled, onRejected){ var S = assertObject(assertObject(this).constructor)[SPECIES]; var react = { ok: isFunction(onFulfilled) ? onFulfilled : true, fail: isFunction(onRejected) ? onRejected : false }; var promise = react.P = new (S != undefined ? S : P)(function(res, rej){ react.res = assertFunction(res); react.rej = assertFunction(rej); }); var record = this[RECORD]; record.a.push(react); record.c.push(react); record.s && notify(record); return promise; }, // 25.4.5.1 Promise.prototype.catch(onRejected) 'catch': function(onRejected){ return this.then(undefined, onRejected); } }); } // export $def($def.G + $def.W + $def.F * !useNative, {Promise: P}); cof.set(P, PROMISE); species(P); species($.core[PROMISE]); // for wrapper // statics $def($def.S + $def.F * !useNative, PROMISE, { // 25.4.4.5 Promise.reject(r) reject: function reject(r){ return new (getConstructor(this))(function(res, rej){ rej(r); }); }, // 25.4.4.6 Promise.resolve(x) resolve: function resolve(x){ return isObject(x) && RECORD in x && $.getProto(x) === this.prototype ? x : new (getConstructor(this))(function(res){ res(x); }); } }); $def($def.S + $def.F * !(useNative && require('./$.iter-detect')(function(iter){ P.all(iter)['catch'](function(){}); })), PROMISE, { // 25.4.4.1 Promise.all(iterable) all: function all(iterable){ var C = getConstructor(this) , values = []; return new C(function(res, rej){ forOf(iterable, false, values.push, values); var remaining = values.length , results = Array(remaining); if(remaining)$.each.call(values, function(promise, index){ C.resolve(promise).then(function(value){ results[index] = value; --remaining || res(results); }, rej); }); else res(results); }); }, // 25.4.4.4 Promise.race(iterable) race: function race(iterable){ var C = getConstructor(this); return new C(function(res, rej){ forOf(iterable, false, function(promise){ C.resolve(promise).then(res, rej); }); }); } }); },{"./$":22,"./$.assert":5,"./$.cof":7,"./$.ctx":12,"./$.def":13,"./$.for-of":15,"./$.iter-detect":20,"./$.set-proto":27,"./$.species":28,"./$.task":30,"./$.uid":31,"./$.wks":33}],54:[function(require,module,exports){ var $ = require('./$') , $def = require('./$.def') , setProto = require('./$.set-proto') , $iter = require('./$.iter') , ITER = require('./$.uid').safe('iter') , step = $iter.step , assert = require('./$.assert') , isObject = $.isObject , getDesc = $.getDesc , setDesc = $.setDesc , getProto = $.getProto , apply = Function.apply , assertObject = assert.obj , _isExtensible = Object.isExtensible || $.it; function Enumerate(iterated){ $.set(this, ITER, {o: iterated, k: undefined, i: 0}); } $iter.create(Enumerate, 'Object', function(){ var iter = this[ITER] , keys = iter.k , key; if(keys == undefined){ iter.k = keys = []; for(key in iter.o)keys.push(key); } do { if(iter.i >= keys.length)return step(1); } while(!((key = keys[iter.i++]) in iter.o)); return step(0, key); }); function wrap(fn){ return function(it){ assertObject(it); try { fn.apply(undefined, arguments); return true; } catch(e){ return false; } }; } function get(target, propertyKey/*, receiver*/){ var receiver = arguments.length < 3 ? target : arguments[2] , desc = getDesc(assertObject(target), propertyKey), proto; if(desc)return $.has(desc, 'value') ? desc.value : desc.get === undefined ? undefined : desc.get.call(receiver); return isObject(proto = getProto(target)) ? get(proto, propertyKey, receiver) : undefined; } function set(target, propertyKey, V/*, receiver*/){ var receiver = arguments.length < 4 ? target : arguments[3] , ownDesc = getDesc(assertObject(target), propertyKey) , existingDescriptor, proto; if(!ownDesc){ if(isObject(proto = getProto(target))){ return set(proto, propertyKey, V, receiver); } ownDesc = $.desc(0); } if($.has(ownDesc, 'value')){ if(ownDesc.writable === false || !isObject(receiver))return false; existingDescriptor = getDesc(receiver, propertyKey) || $.desc(0); existingDescriptor.value = V; setDesc(receiver, propertyKey, existingDescriptor); return true; } return ownDesc.set === undefined ? false : (ownDesc.set.call(receiver, V), true); } var reflect = { // 26.1.1 Reflect.apply(target, thisArgument, argumentsList) apply: require('./$.ctx')(Function.call, apply, 3), // 26.1.2 Reflect.construct(target, argumentsList [, newTarget]) construct: function construct(target, argumentsList /*, newTarget*/){ var proto = assert.fn(arguments.length < 3 ? target : arguments[2]).prototype , instance = $.create(isObject(proto) ? proto : Object.prototype) , result = apply.call(target, instance, argumentsList); return isObject(result) ? result : instance; }, // 26.1.3 Reflect.defineProperty(target, propertyKey, attributes) defineProperty: wrap(setDesc), // 26.1.4 Reflect.deleteProperty(target, propertyKey) deleteProperty: function deleteProperty(target, propertyKey){ var desc = getDesc(assertObject(target), propertyKey); return desc && !desc.configurable ? false : delete target[propertyKey]; }, // 26.1.5 Reflect.enumerate(target) enumerate: function enumerate(target){ return new Enumerate(assertObject(target)); }, // 26.1.6 Reflect.get(target, propertyKey [, receiver]) get: get, // 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey) getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey){ return getDesc(assertObject(target), propertyKey); }, // 26.1.8 Reflect.getPrototypeOf(target) getPrototypeOf: function getPrototypeOf(target){ return getProto(assertObject(target)); }, // 26.1.9 Reflect.has(target, propertyKey) has: function has(target, propertyKey){ return propertyKey in target; }, // 26.1.10 Reflect.isExtensible(target) isExtensible: function isExtensible(target){ return !!_isExtensible(assertObject(target)); }, // 26.1.11 Reflect.ownKeys(target) ownKeys: require('./$.own-keys'), // 26.1.12 Reflect.preventExtensions(target) preventExtensions: wrap(Object.preventExtensions || $.it), // 26.1.13 Reflect.set(target, propertyKey, V [, receiver]) set: set }; // 26.1.14 Reflect.setPrototypeOf(target, proto) if(setProto)reflect.setPrototypeOf = function setPrototypeOf(target, proto){ setProto.check(target, proto); try { setProto.set(target, proto); return true; } catch(e){ return false; } }; $def($def.G, {Reflect: {}}); $def($def.S, 'Reflect', reflect); },{"./$":22,"./$.assert":5,"./$.ctx":12,"./$.def":13,"./$.iter":21,"./$.own-keys":24,"./$.set-proto":27,"./$.uid":31}],55:[function(require,module,exports){ var $ = require('./$') , cof = require('./$.cof') , RegExp = $.g.RegExp , Base = RegExp , proto = RegExp.prototype; function regExpBroken() { try { var a = /a/g; // "new" creates a new object if (a === new RegExp(a)) { return true; } // RegExp allows a regex with flags as the pattern return RegExp(/a/g, 'i') != '/a/i'; } catch(e) { return true; } } if($.FW && $.DESC){ if(regExpBroken()) { RegExp = function RegExp(pattern, flags){ return new Base(cof(pattern) == 'RegExp' ? pattern.source : pattern, flags === undefined ? pattern.flags : flags); }; $.each.call($.getNames(Base), function(key){ key in RegExp || $.setDesc(RegExp, key, { configurable: true, get: function(){ return Base[key]; }, set: function(it){ Base[key] = it; } }); }); proto.constructor = RegExp; RegExp.prototype = proto; $.hide($.g, 'RegExp', RegExp); } // 21.2.5.3 get RegExp.prototype.flags() if(/./g.flags != 'g')$.setDesc(proto, 'flags', { configurable: true, get: require('./$.replacer')(/^.*\/(\w*)$/, '$1') }); } require('./$.species')(RegExp); },{"./$":22,"./$.cof":7,"./$.replacer":26,"./$.species":28}],56:[function(require,module,exports){ 'use strict'; var strong = require('./$.collection-strong'); // 23.2 Set Objects require('./$.collection')('Set', { // 23.2.3.1 Set.prototype.add(value) add: function add(value){ return strong.def(this, value = value === 0 ? 0 : value, value); } }, strong); },{"./$.collection":11,"./$.collection-strong":8}],57:[function(require,module,exports){ var $def = require('./$.def'); $def($def.P, 'String', { // 21.1.3.3 String.prototype.codePointAt(pos) codePointAt: require('./$.string-at')(false) }); },{"./$.def":13,"./$.string-at":29}],58:[function(require,module,exports){ 'use strict'; var $ = require('./$') , cof = require('./$.cof') , $def = require('./$.def') , toLength = $.toLength; $def($def.P, 'String', { // 21.1.3.6 String.prototype.endsWith(searchString [, endPosition]) endsWith: function endsWith(searchString /*, endPosition = @length */){ if(cof(searchString) == 'RegExp')throw TypeError(); var that = String($.assertDefined(this)) , endPosition = arguments[1] , len = toLength(that.length) , end = endPosition === undefined ? len : Math.min(toLength(endPosition), len); searchString += ''; return that.slice(end - searchString.length, end) === searchString; } }); },{"./$":22,"./$.cof":7,"./$.def":13}],59:[function(require,module,exports){ var $def = require('./$.def') , toIndex = require('./$').toIndex , fromCharCode = String.fromCharCode; $def($def.S, 'String', { // 21.1.2.2 String.fromCodePoint(...codePoints) fromCodePoint: function fromCodePoint(x){ // eslint-disable-line no-unused-vars var res = [] , len = arguments.length , i = 0 , code; while(len > i){ code = +arguments[i++]; if(toIndex(code, 0x10ffff) !== code)throw RangeError(code + ' is not a valid code point'); res.push(code < 0x10000 ? fromCharCode(code) : fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00) ); } return res.join(''); } }); },{"./$":22,"./$.def":13}],60:[function(require,module,exports){ 'use strict'; var $ = require('./$') , cof = require('./$.cof') , $def = require('./$.def'); $def($def.P, 'String', { // 21.1.3.7 String.prototype.includes(searchString, position = 0) includes: function includes(searchString /*, position = 0 */){ if(cof(searchString) == 'RegExp')throw TypeError(); return !!~String($.assertDefined(this)).indexOf(searchString, arguments[1]); } }); },{"./$":22,"./$.cof":7,"./$.def":13}],61:[function(require,module,exports){ var set = require('./$').set , at = require('./$.string-at')(true) , ITER = require('./$.uid').safe('iter') , $iter = require('./$.iter') , step = $iter.step; // 21.1.3.27 String.prototype[@@iterator]() require('./$.iter-define')(String, 'String', function(iterated){ set(this, ITER, {o: String(iterated), i: 0}); // 21.1.5.2.1 %StringIteratorPrototype%.next() }, function(){ var iter = this[ITER] , O = iter.o , index = iter.i , point; if(index >= O.length)return step(1); point = at.call(O, index); iter.i += point.length; return step(0, point); }); },{"./$":22,"./$.iter":21,"./$.iter-define":19,"./$.string-at":29,"./$.uid":31}],62:[function(require,module,exports){ var $ = require('./$') , $def = require('./$.def'); $def($def.S, 'String', { // 21.1.2.4 String.raw(callSite, ...substitutions) raw: function raw(callSite){ var tpl = $.toObject(callSite.raw) , len = $.toLength(tpl.length) , sln = arguments.length , res = [] , i = 0; while(len > i){ res.push(String(tpl[i++])); if(i < sln)res.push(String(arguments[i])); } return res.join(''); } }); },{"./$":22,"./$.def":13}],63:[function(require,module,exports){ 'use strict'; var $ = require('./$') , $def = require('./$.def'); $def($def.P, 'String', { // 21.1.3.13 String.prototype.repeat(count) repeat: function repeat(count){ var str = String($.assertDefined(this)) , res = '' , n = $.toInteger(count); if(n < 0 || n == Infinity)throw RangeError("Count can't be negative"); for(;n > 0; (n >>>= 1) && (str += str))if(n & 1)res += str; return res; } }); },{"./$":22,"./$.def":13}],64:[function(require,module,exports){ 'use strict'; var $ = require('./$') , cof = require('./$.cof') , $def = require('./$.def'); $def($def.P, 'String', { // 21.1.3.18 String.prototype.startsWith(searchString [, position ]) startsWith: function startsWith(searchString /*, position = 0 */){ if(cof(searchString) == 'RegExp')throw TypeError(); var that = String($.assertDefined(this)) , index = $.toLength(Math.min(arguments[1], that.length)); searchString += ''; return that.slice(index, index + searchString.length) === searchString; } }); },{"./$":22,"./$.cof":7,"./$.def":13}],65:[function(require,module,exports){ 'use strict'; // ECMAScript 6 symbols shim var $ = require('./$') , setTag = require('./$.cof').set , uid = require('./$.uid') , $def = require('./$.def') , keyOf = require('./$.keyof') , enumKeys = require('./$.enum-keys') , assertObject = require('./$.assert').obj , has = $.has , $create = $.create , getDesc = $.getDesc , setDesc = $.setDesc , desc = $.desc , getNames = $.getNames , toObject = $.toObject , Symbol = $.g.Symbol , setter = false , TAG = uid('tag') , HIDDEN = uid('hidden') , SymbolRegistry = {} , AllSymbols = {} , useNative = $.isFunction(Symbol); function wrap(tag){ var sym = AllSymbols[tag] = $.set($create(Symbol.prototype), TAG, tag); $.DESC && setter && setDesc(Object.prototype, tag, { configurable: true, set: function(value){ if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false; setDesc(this, tag, desc(1, value)); } }); return sym; } function defineProperty(it, key, D){ if(D && has(AllSymbols, key)){ if(!D.enumerable){ if(!has(it, HIDDEN))setDesc(it, HIDDEN, desc(1, {})); it[HIDDEN][key] = true; } else { if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false; D.enumerable = false; } } return setDesc(it, key, D); } function defineProperties(it, P){ assertObject(it); var keys = enumKeys(P = toObject(P)) , i = 0 , l = keys.length , key; while(l > i)defineProperty(it, key = keys[i++], P[key]); return it; } function create(it, P){ return P === undefined ? $create(it) : defineProperties($create(it), P); } function getOwnPropertyDescriptor(it, key){ var D = getDesc(it = toObject(it), key); if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true; return D; } function getOwnPropertyNames(it){ var names = getNames(toObject(it)) , result = [] , i = 0 , key; while(names.length > i)if(!has(AllSymbols, key = names[i++]) && key != HIDDEN)result.push(key); return result; } function getOwnPropertySymbols(it){ var names = getNames(toObject(it)) , result = [] , i = 0 , key; while(names.length > i)if(has(AllSymbols, key = names[i++]))result.push(AllSymbols[key]); return result; } // 19.4.1.1 Symbol([description]) if(!useNative){ Symbol = function Symbol(description){ if(this instanceof Symbol)throw TypeError('Symbol is not a constructor'); return wrap(uid(description)); }; $.hide(Symbol.prototype, 'toString', function(){ return this[TAG]; }); $.create = create; $.setDesc = defineProperty; $.getDesc = getOwnPropertyDescriptor; $.setDescs = defineProperties; $.getNames = getOwnPropertyNames; $.getSymbols = getOwnPropertySymbols; } var symbolStatics = { // 19.4.2.1 Symbol.for(key) 'for': function(key){ return has(SymbolRegistry, key += '') ? SymbolRegistry[key] : SymbolRegistry[key] = Symbol(key); }, // 19.4.2.5 Symbol.keyFor(sym) keyFor: function keyFor(key){ return keyOf(SymbolRegistry, key); }, useSetter: function(){ setter = true; }, useSimple: function(){ setter = false; } }; // 19.4.2.2 Symbol.hasInstance // 19.4.2.3 Symbol.isConcatSpreadable // 19.4.2.4 Symbol.iterator // 19.4.2.6 Symbol.match // 19.4.2.8 Symbol.replace // 19.4.2.9 Symbol.search // 19.4.2.10 Symbol.species // 19.4.2.11 Symbol.split // 19.4.2.12 Symbol.toPrimitive // 19.4.2.13 Symbol.toStringTag // 19.4.2.14 Symbol.unscopables $.each.call(( 'hasInstance,isConcatSpreadable,iterator,match,replace,search,' + 'species,split,toPrimitive,toStringTag,unscopables' ).split(','), function(it){ var sym = require('./$.wks')(it); symbolStatics[it] = useNative ? sym : wrap(sym); } ); setter = true; $def($def.G + $def.W, {Symbol: Symbol}); $def($def.S, 'Symbol', symbolStatics); $def($def.S + $def.F * !useNative, 'Object', { // 19.1.2.2 Object.create(O [, Properties]) create: create, // 19.1.2.4 Object.defineProperty(O, P, Attributes) defineProperty: defineProperty, // 19.1.2.3 Object.defineProperties(O, Properties) defineProperties: defineProperties, // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) getOwnPropertyDescriptor: getOwnPropertyDescriptor, // 19.1.2.7 Object.getOwnPropertyNames(O) getOwnPropertyNames: getOwnPropertyNames, // 19.1.2.8 Object.getOwnPropertySymbols(O) getOwnPropertySymbols: getOwnPropertySymbols }); // 19.4.3.5 Symbol.prototype[@@toStringTag] setTag(Symbol, 'Symbol'); // 20.2.1.9 Math[@@toStringTag] setTag(Math, 'Math', true); // 24.3.3 JSON[@@toStringTag] setTag($.g.JSON, 'JSON', true); },{"./$":22,"./$.assert":5,"./$.cof":7,"./$.def":13,"./$.enum-keys":14,"./$.keyof":23,"./$.uid":31,"./$.wks":33}],66:[function(require,module,exports){ 'use strict'; var $ = require('./$') , weak = require('./$.collection-weak') , leakStore = weak.leakStore , ID = weak.ID , WEAK = weak.WEAK , has = $.has , isObject = $.isObject , isFrozen = Object.isFrozen || $.core.Object.isFrozen , tmp = {}; // 23.3 WeakMap Objects var WeakMap = require('./$.collection')('WeakMap', { // 23.3.3.3 WeakMap.prototype.get(key) get: function get(key){ if(isObject(key)){ if(isFrozen(key))return leakStore(this).get(key); if(has(key, WEAK))return key[WEAK][this[ID]]; } }, // 23.3.3.5 WeakMap.prototype.set(key, value) set: function set(key, value){ return weak.def(this, key, value); } }, weak, true, true); // IE11 WeakMap frozen keys fix if($.FW && new WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7){ $.each.call(['delete', 'has', 'get', 'set'], function(key){ var method = WeakMap.prototype[key]; WeakMap.prototype[key] = function(a, b){ // store frozen objects on leaky map if(isObject(a) && isFrozen(a)){ var result = leakStore(this)[key](a, b); return key == 'set' ? this : result; // store all the rest on native weakmap } return method.call(this, a, b); }; }); } },{"./$":22,"./$.collection":11,"./$.collection-weak":10}],67:[function(require,module,exports){ 'use strict'; var weak = require('./$.collection-weak'); // 23.4 WeakSet Objects require('./$.collection')('WeakSet', { // 23.4.3.1 WeakSet.prototype.add(value) add: function add(value){ return weak.def(this, value, true); } }, weak, false, true); },{"./$.collection":11,"./$.collection-weak":10}],68:[function(require,module,exports){ // https://github.com/domenic/Array.prototype.includes var $def = require('./$.def'); $def($def.P, 'Array', { includes: require('./$.array-includes')(true) }); require('./$.unscope')('includes'); },{"./$.array-includes":3,"./$.def":13,"./$.unscope":32}],69:[function(require,module,exports){ // https://github.com/DavidBruant/Map-Set.prototype.toJSON require('./$.collection-to-json')('Map'); },{"./$.collection-to-json":9}],70:[function(require,module,exports){ // https://gist.github.com/WebReflection/9353781 var $ = require('./$') , $def = require('./$.def') , ownKeys = require('./$.own-keys'); $def($def.S, 'Object', { getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object){ var O = $.toObject(object) , result = {}; $.each.call(ownKeys(O), function(key){ $.setDesc(result, key, $.desc(0, $.getDesc(O, key))); }); return result; } }); },{"./$":22,"./$.def":13,"./$.own-keys":24}],71:[function(require,module,exports){ // http://goo.gl/XkBrjD var $ = require('./$') , $def = require('./$.def'); function createObjectToArray(isEntries){ return function(object){ var O = $.toObject(object) , keys = $.getKeys(O) , length = keys.length , i = 0 , result = Array(length) , key; if(isEntries)while(length > i)result[i] = [key = keys[i++], O[key]]; else while(length > i)result[i] = O[keys[i++]]; return result; }; } $def($def.S, 'Object', { values: createObjectToArray(false), entries: createObjectToArray(true) }); },{"./$":22,"./$.def":13}],72:[function(require,module,exports){ // https://gist.github.com/kangax/9698100 var $def = require('./$.def'); $def($def.S, 'RegExp', { escape: require('./$.replacer')(/([\\\-[\]{}()*+?.,^$|])/g, '\\$1', true) }); },{"./$.def":13,"./$.replacer":26}],73:[function(require,module,exports){ // https://github.com/DavidBruant/Map-Set.prototype.toJSON require('./$.collection-to-json')('Set'); },{"./$.collection-to-json":9}],74:[function(require,module,exports){ // https://github.com/mathiasbynens/String.prototype.at var $def = require('./$.def'); $def($def.P, 'String', { at: require('./$.string-at')(true) }); },{"./$.def":13,"./$.string-at":29}],75:[function(require,module,exports){ // JavaScript 1.6 / Strawman array statics shim var $ = require('./$') , $def = require('./$.def') , $Array = $.core.Array || Array , statics = {}; function setStatics(keys, length){ $.each.call(keys.split(','), function(key){ if(length == undefined && key in $Array)statics[key] = $Array[key]; else if(key in [])statics[key] = require('./$.ctx')(Function.call, [][key], length); }); } setStatics('pop,reverse,shift,keys,values,entries', 1); setStatics('indexOf,every,some,forEach,map,filter,find,findIndex,includes', 3); setStatics('join,slice,concat,push,splice,unshift,sort,lastIndexOf,' + 'reduce,reduceRight,copyWithin,fill,turn'); $def($def.S, 'Array', statics); },{"./$":22,"./$.ctx":12,"./$.def":13}],76:[function(require,module,exports){ require('./es6.array.iterator'); var $ = require('./$') , Iterators = require('./$.iter').Iterators , ITERATOR = require('./$.wks')('iterator') , ArrayValues = Iterators.Array , NodeList = $.g.NodeList; if($.FW && NodeList && !(ITERATOR in NodeList.prototype)){ $.hide(NodeList.prototype, ITERATOR, ArrayValues); } Iterators.NodeList = ArrayValues; },{"./$":22,"./$.iter":21,"./$.wks":33,"./es6.array.iterator":40}],77:[function(require,module,exports){ var $def = require('./$.def') , $task = require('./$.task'); $def($def.G + $def.B, { setImmediate: $task.set, clearImmediate: $task.clear }); },{"./$.def":13,"./$.task":30}],78:[function(require,module,exports){ // ie9- setTimeout & setInterval additional parameters fix var $ = require('./$') , $def = require('./$.def') , invoke = require('./$.invoke') , partial = require('./$.partial') , navigator = $.g.navigator , MSIE = !!navigator && /MSIE .\./.test(navigator.userAgent); // <- dirty ie9- check function wrap(set){ return MSIE ? function(fn, time /*, ...args */){ return set(invoke( partial, [].slice.call(arguments, 2), $.isFunction(fn) ? fn : Function(fn) ), time); } : set; } $def($def.G + $def.B + $def.F * MSIE, { setTimeout: wrap($.g.setTimeout), setInterval: wrap($.g.setInterval) }); },{"./$":22,"./$.def":13,"./$.invoke":17,"./$.partial":25}],79:[function(require,module,exports){ require('./modules/es5'); require('./modules/es6.symbol'); require('./modules/es6.object.assign'); require('./modules/es6.object.is'); require('./modules/es6.object.set-prototype-of'); require('./modules/es6.object.to-string'); require('./modules/es6.object.statics-accept-primitives'); require('./modules/es6.function.name'); require('./modules/es6.number.constructor'); require('./modules/es6.number.statics'); require('./modules/es6.math'); require('./modules/es6.string.from-code-point'); require('./modules/es6.string.raw'); require('./modules/es6.string.iterator'); require('./modules/es6.string.code-point-at'); require('./modules/es6.string.ends-with'); require('./modules/es6.string.includes'); require('./modules/es6.string.repeat'); require('./modules/es6.string.starts-with'); require('./modules/es6.array.from'); require('./modules/es6.array.of'); require('./modules/es6.array.iterator'); require('./modules/es6.array.species'); require('./modules/es6.array.copy-within'); require('./modules/es6.array.fill'); require('./modules/es6.array.find'); require('./modules/es6.array.find-index'); require('./modules/es6.regexp'); require('./modules/es6.promise'); require('./modules/es6.map'); require('./modules/es6.set'); require('./modules/es6.weak-map'); require('./modules/es6.weak-set'); require('./modules/es6.reflect'); require('./modules/es7.array.includes'); require('./modules/es7.string.at'); require('./modules/es7.regexp.escape'); require('./modules/es7.object.get-own-property-descriptors'); require('./modules/es7.object.to-array'); require('./modules/es7.map.to-json'); require('./modules/es7.set.to-json'); require('./modules/js.array.statics'); require('./modules/web.timers'); require('./modules/web.immediate'); require('./modules/web.dom.iterable'); module.exports = require('./modules/$').core; },{"./modules/$":22,"./modules/es5":34,"./modules/es6.array.copy-within":35,"./modules/es6.array.fill":36,"./modules/es6.array.find":38,"./modules/es6.array.find-index":37,"./modules/es6.array.from":39,"./modules/es6.array.iterator":40,"./modules/es6.array.of":41,"./modules/es6.array.species":42,"./modules/es6.function.name":43,"./modules/es6.map":44,"./modules/es6.math":45,"./modules/es6.number.constructor":46,"./modules/es6.number.statics":47,"./modules/es6.object.assign":48,"./modules/es6.object.is":49,"./modules/es6.object.set-prototype-of":50,"./modules/es6.object.statics-accept-primitives":51,"./modules/es6.object.to-string":52,"./modules/es6.promise":53,"./modules/es6.reflect":54,"./modules/es6.regexp":55,"./modules/es6.set":56,"./modules/es6.string.code-point-at":57,"./modules/es6.string.ends-with":58,"./modules/es6.string.from-code-point":59,"./modules/es6.string.includes":60,"./modules/es6.string.iterator":61,"./modules/es6.string.raw":62,"./modules/es6.string.repeat":63,"./modules/es6.string.starts-with":64,"./modules/es6.symbol":65,"./modules/es6.weak-map":66,"./modules/es6.weak-set":67,"./modules/es7.array.includes":68,"./modules/es7.map.to-json":69,"./modules/es7.object.get-own-property-descriptors":70,"./modules/es7.object.to-array":71,"./modules/es7.regexp.escape":72,"./modules/es7.set.to-json":73,"./modules/es7.string.at":74,"./modules/js.array.statics":75,"./modules/web.dom.iterable":76,"./modules/web.immediate":77,"./modules/web.timers":78}],80:[function(require,module,exports){ (function (process,global){ /** * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * https://raw.github.com/facebook/regenerator/master/LICENSE file. An * additional grant of patent rights can be found in the PATENTS file in * the same directory. */ !(function(global) { "use strict"; var hasOwn = Object.prototype.hasOwnProperty; var undefined; // More compressible than void 0. var iteratorSymbol = typeof Symbol === "function" && Symbol.iterator || "@@iterator"; var inModule = typeof module === "object"; var runtime = global.regeneratorRuntime; if (runtime) { if (inModule) { // If regeneratorRuntime is defined globally and we're in a module, // make the exports object identical to regeneratorRuntime. module.exports = runtime; } // Don't bother evaluating the rest of this file if the runtime was // already defined globally. return; } // Define the runtime globally (as expected by generated code) as either // module.exports (if we're in a module) or a new, empty object. runtime = global.regeneratorRuntime = inModule ? module.exports : {}; function wrap(innerFn, outerFn, self, tryLocsList) { // If outerFn provided, then outerFn.prototype instanceof Generator. var generator = Object.create((outerFn || Generator).prototype); generator._invoke = makeInvokeMethod( innerFn, self || null, new Context(tryLocsList || []) ); return generator; } runtime.wrap = wrap; // Try/catch helper to minimize deoptimizations. Returns a completion // record like context.tryEntries[i].completion. This interface could // have been (and was previously) designed to take a closure to be // invoked without arguments, but in all the cases we care about we // already have an existing method we want to call, so there's no need // to create a new function object. We can even get away with assuming // the method takes exactly one argument, since that happens to be true // in every case, so we don't have to touch the arguments object. The // only additional allocation required is the completion record, which // has a stable shape and so hopefully should be cheap to allocate. function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } var GenStateSuspendedStart = "suspendedStart"; var GenStateSuspendedYield = "suspendedYield"; var GenStateExecuting = "executing"; var GenStateCompleted = "completed"; // Returning this object from the innerFn has the same effect as // breaking out of the dispatch switch statement. var ContinueSentinel = {}; // Dummy constructor functions that we use as the .constructor and // .constructor.prototype properties for functions that return Generator // objects. For full spec compliance, you may wish to configure your // minifier not to mangle the names of these two functions. function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype; GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; GeneratorFunctionPrototype.constructor = GeneratorFunction; GeneratorFunction.displayName = "GeneratorFunction"; // Helper for defining the .next, .throw, and .return methods of the // Iterator interface in terms of a single ._invoke method. function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function(method) { prototype[method] = function(arg) { return this._invoke(method, arg); }; }); } runtime.isGeneratorFunction = function(genFun) { var ctor = typeof genFun === "function" && genFun.constructor; return ctor ? ctor === GeneratorFunction || // For the native GeneratorFunction constructor, the best we can // do is to check its .name property. (ctor.displayName || ctor.name) === "GeneratorFunction" : false; }; runtime.mark = function(genFun) { genFun.__proto__ = GeneratorFunctionPrototype; genFun.prototype = Object.create(Gp); return genFun; }; // Within the body of any async function, `await x` is transformed to // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test // `value instanceof AwaitArgument` to determine if the yielded value is // meant to be awaited. Some may consider the name of this method too // cutesy, but they are curmudgeons. runtime.awrap = function(arg) { return new AwaitArgument(arg); }; function AwaitArgument(arg) { this.arg = arg; } function AsyncIterator(generator) { // This invoke function is written in a style that assumes some // calling function (or Promise) will handle exceptions. function invoke(method, arg) { var result = generator[method](arg); var value = result.value; return value instanceof AwaitArgument ? Promise.resolve(value.arg).then(invokeNext, invokeThrow) : result; } if (typeof process === "object" && process.domain) { invoke = process.domain.bind(invoke); } var invokeNext = invoke.bind(generator, "next"); var invokeThrow = invoke.bind(generator, "throw"); var invokeReturn = invoke.bind(generator, "return"); var previousPromise; function enqueue(method, arg) { var enqueueResult = // If enqueue has been called before, then we want to wait until // all previous Promises have been resolved before calling invoke, // so that results are always delivered in the correct order. If // enqueue has not been called before, then it is important to // call invoke immediately, without waiting on a callback to fire, // so that the async generator function has the opportunity to do // any necessary setup in a predictable way. This predictability // is why the Promise constructor synchronously invokes its // executor callback, and why async functions synchronously // execute code before the first await. Since we implement simple // async functions in terms of async generators, it is especially // important to get this right, even though it requires care. previousPromise ? previousPromise.then(function() { return invoke(method, arg); }) : new Promise(function(resolve) { resolve(invoke(method, arg)); }); // Avoid propagating enqueueResult failures to Promises returned by // later invocations of the iterator, and call generator.return() to // allow the generator a chance to clean up. previousPromise = enqueueResult["catch"](invokeReturn); return enqueueResult; } // Define the unified helper method that is used to implement .next, // .throw, and .return (see defineIteratorMethods). this._invoke = enqueue; } defineIteratorMethods(AsyncIterator.prototype); // Note that simple async functions are implemented on top of // AsyncIterator objects; they just return a Promise for the value of // the final result produced by the iterator. runtime.async = function(innerFn, outerFn, self, tryLocsList) { var iter = new AsyncIterator( wrap(innerFn, outerFn, self, tryLocsList) ); return runtime.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator. : iter.next().then(function(result) { return result.done ? result.value : iter.next(); }); }; function makeInvokeMethod(innerFn, self, context) { var state = GenStateSuspendedStart; return function invoke(method, arg) { if (state === GenStateExecuting) { throw new Error("Generator is already running"); } if (state === GenStateCompleted) { // Be forgiving, per 25.3.3.3.3 of the spec: // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume return doneResult(); } while (true) { var delegate = context.delegate; if (delegate) { if (method === "return" || (method === "throw" && delegate.iterator[method] === undefined)) { // A return or throw (when the delegate iterator has no throw // method) always terminates the yield* loop. context.delegate = null; // If the delegate iterator has a return method, give it a // chance to clean up. var returnMethod = delegate.iterator["return"]; if (returnMethod) { var record = tryCatch(returnMethod, delegate.iterator, arg); if (record.type === "throw") { // If the return method threw an exception, let that // exception prevail over the original return or throw. method = "throw"; arg = record.arg; continue; } } if (method === "return") { // Continue with the outer return, now that the delegate // iterator has been terminated. continue; } } var record = tryCatch( delegate.iterator[method], delegate.iterator, arg ); if (record.type === "throw") { context.delegate = null; // Like returning generator.throw(uncaught), but without the // overhead of an extra function call. method = "throw"; arg = record.arg; continue; } // Delegate generator ran and handled its own exceptions so // regardless of what the method was, we continue as if it is // "next" with an undefined arg. method = "next"; arg = undefined; var info = record.arg; if (info.done) { context[delegate.resultName] = info.value; context.next = delegate.nextLoc; } else { state = GenStateSuspendedYield; return info; } context.delegate = null; } if (method === "next") { if (state === GenStateSuspendedYield) { context.sent = arg; } else { delete context.sent; } } else if (method === "throw") { if (state === GenStateSuspendedStart) { state = GenStateCompleted; throw arg; } if (context.dispatchException(arg)) { // If the dispatched exception was caught by a catch block, // then let that catch block handle the exception normally. method = "next"; arg = undefined; } } else if (method === "return") { context.abrupt("return", arg); } state = GenStateExecuting; var record = tryCatch(innerFn, self, context); if (record.type === "normal") { // If an exception is thrown from innerFn, we leave state === // GenStateExecuting and loop back for another invocation. state = context.done ? GenStateCompleted : GenStateSuspendedYield; var info = { value: record.arg, done: context.done }; if (record.arg === ContinueSentinel) { if (context.delegate && method === "next") { // Deliberately forget the last sent value so that we don't // accidentally pass it on to the delegate. arg = undefined; } } else { return info; } } else if (record.type === "throw") { state = GenStateCompleted; // Dispatch the exception by looping back around to the // context.dispatchException(arg) call above. method = "throw"; arg = record.arg; } } }; } // Define Generator.prototype.{next,throw,return} in terms of the // unified ._invoke helper method. defineIteratorMethods(Gp); Gp[iteratorSymbol] = function() { return this; }; Gp.toString = function() { return "[object Generator]"; }; function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; if (1 in locs) { entry.catchLoc = locs[1]; } if (2 in locs) { entry.finallyLoc = locs[2]; entry.afterLoc = locs[3]; } this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal"; delete record.arg; entry.completion = record; } function Context(tryLocsList) { // The root entry object (effectively a try statement without a catch // or a finally block) gives us a place to store values thrown from // locations where there is no enclosing try statement. this.tryEntries = [{ tryLoc: "root" }]; tryLocsList.forEach(pushTryEntry, this); this.reset(); } runtime.keys = function(object) { var keys = []; for (var key in object) { keys.push(key); } keys.reverse(); // Rather than returning an object with a next method, we keep // things simple and return the next function itself. return function next() { while (keys.length) { var key = keys.pop(); if (key in object) { next.value = key; next.done = false; return next; } } // To avoid creating an additional object, we just hang the .value // and .done properties off the next function object itself. This // also ensures that the minifier will not anonymize the function. next.done = true; return next; }; }; function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) { return iteratorMethod.call(iterable); } if (typeof iterable.next === "function") { return iterable; } if (!isNaN(iterable.length)) { var i = -1, next = function next() { while (++i < iterable.length) { if (hasOwn.call(iterable, i)) { next.value = iterable[i]; next.done = false; return next; } } next.value = undefined; next.done = true; return next; }; return next.next = next; } } // Return an iterator with no values. return { next: doneResult }; } runtime.values = values; function doneResult() { return { value: undefined, done: true }; } Context.prototype = { constructor: Context, reset: function() { this.prev = 0; this.next = 0; this.sent = undefined; this.done = false; this.delegate = null; this.tryEntries.forEach(resetTryEntry); // Pre-initialize at least 20 temporary variables to enable hidden // class optimizations for simple generators. for (var tempIndex = 0, tempName; hasOwn.call(this, tempName = "t" + tempIndex) || tempIndex < 20; ++tempIndex) { this[tempName] = null; } }, stop: function() { this.done = true; var rootEntry = this.tryEntries[0]; var rootRecord = rootEntry.completion; if (rootRecord.type === "throw") { throw rootRecord.arg; } return this.rval; }, dispatchException: function(exception) { if (this.done) { throw exception; } var context = this; function handle(loc, caught) { record.type = "throw"; record.arg = exception; context.next = loc; return !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; var record = entry.completion; if (entry.tryLoc === "root") { // Exception thrown outside of any try block that could handle // it, so set the completion value of the entire function to // throw the exception. return handle("end"); } if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"); var hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) { return handle(entry.catchLoc, true); } else if (this.prev < entry.finallyLoc) { return handle(entry.finallyLoc); } } else if (hasCatch) { if (this.prev < entry.catchLoc) { return handle(entry.catchLoc, true); } } else if (hasFinally) { if (this.prev < entry.finallyLoc) { return handle(entry.finallyLoc); } } else { throw new Error("try statement without catch or finally"); } } } }, abrupt: function(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) { // Ignore the finally entry if control is not jumping to a // location outside the try/catch block. finallyEntry = null; } var record = finallyEntry ? finallyEntry.completion : {}; record.type = type; record.arg = arg; if (finallyEntry) { this.next = finallyEntry.finallyLoc; } else { this.complete(record); } return ContinueSentinel; }, complete: function(record, afterLoc) { if (record.type === "throw") { throw record.arg; } if (record.type === "break" || record.type === "continue") { this.next = record.arg; } else if (record.type === "return") { this.rval = record.arg; this.next = "end"; } else if (record.type === "normal" && afterLoc) { this.next = afterLoc; } }, finish: function(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) { this.complete(entry.completion, entry.afterLoc); resetTryEntry(entry); return ContinueSentinel; } } }, "catch": function(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if (record.type === "throw") { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } // The context.catch method must only be called with a location // argument that corresponds to a known catch block. throw new Error("illegal catch attempt"); }, delegateYield: function(iterable, resultName, nextLoc) { this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }; return ContinueSentinel; } }; })( // Among the various tricks for obtaining a reference to the global // object, this seems to be the most reliable technique that does not // use indirect eval (which violates Content Security Policy). typeof global === "object" ? global : typeof window === "object" ? window : typeof self === "object" ? self : this ); }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"_process":2}]},{},[1]);
src/decorators/withViewport.js
Batname/Yeoman_react_tests
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from '../../node_modules/react/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default size for server-side rendering const RESIZE_EVENT = 'resize'; function handleWindowResize() { if (viewport.width !== window.innerWidth || viewport.height !== window.innerHeight) { viewport = {width: window.innerWidth, height: window.innerHeight}; EE.emit(RESIZE_EVENT, viewport); } } function withViewport(ComposedComponent) { return class WithViewport extends Component { constructor() { super(); this.state = { viewport: canUseDOM ? {width: window.innerWidth, height: window.innerHeight} : viewport }; } componentDidMount() { if (!EE) { EE = new EventEmitter(); window.addEventListener('resize', handleWindowResize); window.addEventListener('orientationchange', handleWindowResize); } EE.on('resize', this.handleResize, this); } componentWillUnmount() { EE.removeListener(RESIZE_EVENT, this.handleResize, this); if (!EE.listeners(RESIZE_EVENT, true)) { window.removeEventListener('resize', handleWindowResize); window.removeEventListener('orientationchange', handleWindowResize); EE = null; } } render() { return <ComposedComponent {...this.props} viewport={this.state.viewport}/>; } handleResize(value) { this.setState({viewport: value}); } }; } export default withViewport;
src/components/ShowCode.js
Synchro-TEC/site-apollo-11
/** * Created by gnf on 18/01/17. */ import React from 'react'; class ShowCode extends React.Component { constructor() { super(); this.state = {isShowing: false} } toggle() { this.setState({ isShowing: !this.state.isShowing }); } render() { return ( <div className={this.state.isShowing ? 'dm-code-container': 'dm-code-container inactive'}> <div style={{display: this.state.isShowing ? 'block': 'none'}}> <pre className='line-number'> {this.props.children} </pre> </div> <button className='dm-code-container__button' onClick={() => this.toggle()}> {this.state.isShowing ? 'Esconder código': 'Mostrar código'} </button> </div> ); } } ShowCode.displayName = 'ShowCode'; export default ShowCode;
js/components/category/category.js
dima11221122/63pokupki-react-native
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Loading from '../loading'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, ListItem, Text, Button, Icon } from 'native-base'; import { ListView, View, TouchableHighlight } from 'react-native'; import { openDrawer } from '../../actions/drawer'; import { loadNextPageCategory } from '../../actions/categories'; import { goToTopic } from '../../actions/topic'; import immutable from 'immutable'; import styles from './styles'; import listViewStyle from '../../themes/list-view'; class Category extends Component { static propTypes = { topics: React.PropTypes.instanceOf(immutable.List), page: React.PropTypes.instanceOf(immutable.Map), loadNextPageCategory: React.PropTypes.func, goToTopic: React.PropTypes.func } constructor(props) { super(props); const ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1.link !== r2.link}); this.state = { dataSource: ds.cloneWithRows(props.topics.toJS()) }; } componentWillReceiveProps(nextProps) { if (!nextProps.topics.size) return; this.setState({ dataSource: this.state.dataSource.cloneWithRows(nextProps.topics.toJS()) }) } _renderRow(rowData) { return ( <TouchableHighlight style={styles.row} onPress={() => this.props.goToTopic(rowData.link)}> <View style={{flex: 1, flexDirection: 'column', justifyContent: 'space-between', paddingBottom: 10}}> <Text numberOfLines={2}>{rowData.title}</Text> <View style={styles.noteBar}> <Text style={styles.noteItem}> <Icon name="ios-person" style={styles.note}/> {rowData.author} </Text> <Text style={styles.noteItem}> <Icon name="ios-calendar" style={styles.note}/> {rowData.createdAt} </Text> </View> </View> </TouchableHighlight> ); } _renderSeparator(sectionID, rowID, adjacentRowHighlighted) { return ( <View key={`${sectionID}-${rowID}`} style={adjacentRowHighlighted ? listViewStyle.separatorHighlited : listViewStyle.separator } /> ) } _renderFooter() { if (this.props.page.get('bottomLoading')) return (<Loading />); return ( <Button block bordered onPress={this._loadMoreTopics.bind(this)}>Загрузить еще</Button> ); } async _loadMoreTopics() { this.props.loadNextPageCategory(); } render() { return ( <ListView dataSource={this.state.dataSource} renderRow={this._renderRow.bind(this)} renderSeparator={this._renderSeparator.bind(this)} renderFooter={this._renderFooter.bind(this)} /> ); } } function bindAction(dispatch) { return { loadNextPageCategory: () => dispatch(loadNextPageCategory()), goToTopic: (link) => dispatch(goToTopic(link)) }; } function mapStateToProps(state) { console.log("CATEGORY STATE", state); return { topics: state.categories.getIn(['currentCategory', 'topics']), page: state.page }; } export default connect(mapStateToProps, bindAction)(Category);
ajax/libs/analytics.js/1.4.0/analytics.min.js
emijrp/cdnjs
(function(){function require(path,parent,orig){var resolved=require.resolve(path);if(null==resolved){orig=orig||path;parent=parent||"root";var err=new Error('Failed to require "'+orig+'" from "'+parent+'"');err.path=orig;err.parent=parent;err.require=true;throw err}var module=require.modules[resolved];if(!module._resolving&&!module.exports){var mod={};mod.exports={};mod.client=mod.component=true;module._resolving=true;module.call(this,mod.exports,require.relative(resolved),mod);delete module._resolving;module.exports=mod.exports}return module.exports}require.modules={};require.aliases={};require.resolve=function(path){if(path.charAt(0)==="/")path=path.slice(1);var paths=[path,path+".js",path+".json",path+"/index.js",path+"/index.json"];for(var i=0;i<paths.length;i++){var path=paths[i];if(require.modules.hasOwnProperty(path))return path;if(require.aliases.hasOwnProperty(path))return require.aliases[path]}};require.normalize=function(curr,path){var segs=[];if("."!=path.charAt(0))return path;curr=curr.split("/");path=path.split("/");for(var i=0;i<path.length;++i){if(".."==path[i]){curr.pop()}else if("."!=path[i]&&""!=path[i]){segs.push(path[i])}}return curr.concat(segs).join("/")};require.register=function(path,definition){require.modules[path]=definition};require.alias=function(from,to){if(!require.modules.hasOwnProperty(from)){throw new Error('Failed to alias "'+from+'", it does not exist')}require.aliases[to]=from};require.relative=function(parent){var p=require.normalize(parent,"..");function lastIndexOf(arr,obj){var i=arr.length;while(i--){if(arr[i]===obj)return i}return-1}function localRequire(path){var resolved=localRequire.resolve(path);return require(resolved,parent,path)}localRequire.resolve=function(path){var c=path.charAt(0);if("/"==c)return path.slice(1);if("."==c)return require.normalize(p,path);var segs=parent.split("/");var i=lastIndexOf(segs,"deps")+1;if(!i)i=0;path=segs.slice(0,i+1).join("/")+"/deps/"+path;return path};localRequire.exists=function(path){return require.modules.hasOwnProperty(localRequire.resolve(path))};return localRequire};require.register("avetisk-defaults/index.js",function(exports,require,module){"use strict";var defaults=function(dest,src,recursive){for(var prop in src){if(recursive&&dest[prop]instanceof Object&&src[prop]instanceof Object){dest[prop]=defaults(dest[prop],src[prop],true)}else if(!(prop in dest)){dest[prop]=src[prop]}}return dest};module.exports=defaults});require.register("component-type/index.js",function(exports,require,module){var toString=Object.prototype.toString;module.exports=function(val){switch(toString.call(val)){case"[object Function]":return"function";case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object String]":return"string"}if(val===null)return"null";if(val===undefined)return"undefined";if(val&&val.nodeType===1)return"element";if(val===Object(val))return"object";return typeof val}});require.register("component-clone/index.js",function(exports,require,module){var type;try{type=require("type")}catch(e){type=require("type-component")}module.exports=clone;function clone(obj){switch(type(obj)){case"object":var copy={};for(var key in obj){if(obj.hasOwnProperty(key)){copy[key]=clone(obj[key])}}return copy;case"array":var copy=new Array(obj.length);for(var i=0,l=obj.length;i<l;i++){copy[i]=clone(obj[i])}return copy;case"regexp":var flags="";flags+=obj.multiline?"m":"";flags+=obj.global?"g":"";flags+=obj.ignoreCase?"i":"";return new RegExp(obj.source,flags);case"date":return new Date(obj.getTime());default:return obj}}});require.register("component-cookie/index.js",function(exports,require,module){var encode=encodeURIComponent;var decode=decodeURIComponent;module.exports=function(name,value,options){switch(arguments.length){case 3:case 2:return set(name,value,options);case 1:return get(name);default:return all()}};function set(name,value,options){options=options||{};var str=encode(name)+"="+encode(value);if(null==value)options.maxage=-1;if(options.maxage){options.expires=new Date(+new Date+options.maxage)}if(options.path)str+="; path="+options.path;if(options.domain)str+="; domain="+options.domain;if(options.expires)str+="; expires="+options.expires.toGMTString();if(options.secure)str+="; secure";document.cookie=str}function all(){return parse(document.cookie)}function get(name){return all()[name]}function parse(str){var obj={};var pairs=str.split(/ *; */);var pair;if(""==pairs[0])return obj;for(var i=0;i<pairs.length;++i){pair=pairs[i].split("=");obj[decode(pair[0])]=decode(pair[1])}return obj}});require.register("component-each/index.js",function(exports,require,module){var type=require("type");var has=Object.prototype.hasOwnProperty;module.exports=function(obj,fn){switch(type(obj)){case"array":return array(obj,fn);case"object":if("number"==typeof obj.length)return array(obj,fn);return object(obj,fn);case"string":return string(obj,fn)}};function string(obj,fn){for(var i=0;i<obj.length;++i){fn(obj.charAt(i),i)}}function object(obj,fn){for(var key in obj){if(has.call(obj,key)){fn(key,obj[key])}}}function array(obj,fn){for(var i=0;i<obj.length;++i){fn(obj[i],i)}}});require.register("component-indexof/index.js",function(exports,require,module){module.exports=function(arr,obj){if(arr.indexOf)return arr.indexOf(obj);for(var i=0;i<arr.length;++i){if(arr[i]===obj)return i}return-1}});require.register("component-emitter/index.js",function(exports,require,module){var index=require("indexof");module.exports=Emitter;function Emitter(obj){if(obj)return mixin(obj)}function mixin(obj){for(var key in Emitter.prototype){obj[key]=Emitter.prototype[key]}return obj}Emitter.prototype.on=Emitter.prototype.addEventListener=function(event,fn){this._callbacks=this._callbacks||{};(this._callbacks[event]=this._callbacks[event]||[]).push(fn);return this};Emitter.prototype.once=function(event,fn){var self=this;this._callbacks=this._callbacks||{};function on(){self.off(event,on);fn.apply(this,arguments)}fn._off=on;this.on(event,on);return this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(event,fn){this._callbacks=this._callbacks||{};if(0==arguments.length){this._callbacks={};return this}var callbacks=this._callbacks[event];if(!callbacks)return this;if(1==arguments.length){delete this._callbacks[event];return this}var i=index(callbacks,fn._off||fn);if(~i)callbacks.splice(i,1);return this};Emitter.prototype.emit=function(event){this._callbacks=this._callbacks||{};var args=[].slice.call(arguments,1),callbacks=this._callbacks[event];if(callbacks){callbacks=callbacks.slice(0);for(var i=0,len=callbacks.length;i<len;++i){callbacks[i].apply(this,args)}}return this};Emitter.prototype.listeners=function(event){this._callbacks=this._callbacks||{};return this._callbacks[event]||[]};Emitter.prototype.hasListeners=function(event){return!!this.listeners(event).length}});require.register("component-event/index.js",function(exports,require,module){exports.bind=function(el,type,fn,capture){if(el.addEventListener){el.addEventListener(type,fn,capture||false)}else{el.attachEvent("on"+type,fn)}return fn};exports.unbind=function(el,type,fn,capture){if(el.removeEventListener){el.removeEventListener(type,fn,capture||false)}else{el.detachEvent("on"+type,fn)}return fn}});require.register("component-inherit/index.js",function(exports,require,module){module.exports=function(a,b){var fn=function(){};fn.prototype=b.prototype;a.prototype=new fn;a.prototype.constructor=a}});require.register("component-object/index.js",function(exports,require,module){var has=Object.prototype.hasOwnProperty;exports.keys=Object.keys||function(obj){var keys=[];for(var key in obj){if(has.call(obj,key)){keys.push(key)}}return keys};exports.values=function(obj){var vals=[];for(var key in obj){if(has.call(obj,key)){vals.push(obj[key])}}return vals};exports.merge=function(a,b){for(var key in b){if(has.call(b,key)){a[key]=b[key]}}return a};exports.length=function(obj){return exports.keys(obj).length};exports.isEmpty=function(obj){return 0==exports.length(obj)}});require.register("component-trim/index.js",function(exports,require,module){exports=module.exports=trim;function trim(str){if(str.trim)return str.trim();return str.replace(/^\s*|\s*$/g,"")}exports.left=function(str){if(str.trimLeft)return str.trimLeft();return str.replace(/^\s*/,"")};exports.right=function(str){if(str.trimRight)return str.trimRight();return str.replace(/\s*$/,"")}});require.register("component-querystring/index.js",function(exports,require,module){var encode=encodeURIComponent;var decode=decodeURIComponent;var trim=require("trim");var type=require("type");exports.parse=function(str){if("string"!=typeof str)return{};str=trim(str);if(""==str)return{};if("?"==str.charAt(0))str=str.slice(1);var obj={};var pairs=str.split("&");for(var i=0;i<pairs.length;i++){var parts=pairs[i].split("=");var key=decode(parts[0]);var m;if(m=/(\w+)\[(\d+)\]/.exec(key)){obj[m[1]]=obj[m[1]]||[];obj[m[1]][m[2]]=decode(parts[1]);continue}obj[parts[0]]=null==parts[1]?"":decode(parts[1])}return obj};exports.stringify=function(obj){if(!obj)return"";var pairs=[];for(var key in obj){var value=obj[key];if("array"==type(value)){for(var i=0;i<value.length;++i){pairs.push(encode(key+"["+i+"]")+"="+encode(value[i]))}continue}pairs.push(encode(key)+"="+encode(obj[key]))}return pairs.join("&")}});require.register("component-url/index.js",function(exports,require,module){exports.parse=function(url){var a=document.createElement("a");a.href=url;return{href:a.href,host:a.host,port:a.port,hash:a.hash,hostname:a.hostname,pathname:a.pathname,protocol:a.protocol,search:a.search,query:a.search.slice(1)}};exports.isAbsolute=function(url){if(0==url.indexOf("//"))return true;if(~url.indexOf("://"))return true;return false};exports.isRelative=function(url){return!exports.isAbsolute(url)};exports.isCrossDomain=function(url){url=exports.parse(url);return url.hostname!=location.hostname||url.port!=location.port||url.protocol!=location.protocol}});require.register("component-bind/index.js",function(exports,require,module){var slice=[].slice;module.exports=function(obj,fn){if("string"==typeof fn)fn=obj[fn];if("function"!=typeof fn)throw new Error("bind() requires a function");var args=slice.call(arguments,2);return function(){return fn.apply(obj,args.concat(slice.call(arguments)))}}});require.register("segmentio-bind-all/index.js",function(exports,require,module){try{var bind=require("bind");var type=require("type")}catch(e){var bind=require("bind-component");var type=require("type-component")}module.exports=function(obj){for(var key in obj){var val=obj[key];if(type(val)==="function")obj[key]=bind(obj,obj[key])}return obj}});require.register("ianstormtaylor-bind/index.js",function(exports,require,module){try{var bind=require("bind")}catch(e){var bind=require("bind-component")}var bindAll=require("bind-all");module.exports=exports=bind;exports.all=bindAll;exports.methods=bindMethods;function bindMethods(obj,methods){methods=[].slice.call(arguments,1);for(var i=0,method;method=methods[i];i++){obj[method]=bind(obj,obj[method])}return obj}});require.register("timoxley-next-tick/index.js",function(exports,require,module){"use strict";if(typeof setImmediate=="function"){module.exports=function(f){setImmediate(f)}}else if(typeof process!="undefined"&&typeof process.nextTick=="function"){module.exports=process.nextTick}else if(typeof window=="undefined"||window.ActiveXObject||!window.postMessage){module.exports=function(f){setTimeout(f)}}else{var q=[];window.addEventListener("message",function(){var i=0;while(i<q.length){try{q[i++]()}catch(e){q=q.slice(i);window.postMessage("tic!","*");throw e}}q.length=0},true);module.exports=function(fn){if(!q.length)window.postMessage("tic!","*");q.push(fn)}}});require.register("ianstormtaylor-callback/index.js",function(exports,require,module){var next=require("next-tick");module.exports=callback;function callback(fn){if("function"===typeof fn)fn()}callback.async=function(fn,wait){if("function"!==typeof fn)return;if(!wait)return next(fn);setTimeout(fn,wait)};callback.sync=callback});require.register("ianstormtaylor-is-empty/index.js",function(exports,require,module){module.exports=isEmpty;var has=Object.prototype.hasOwnProperty;function isEmpty(val){if(null==val)return true;if("number"==typeof val)return 0===val;if(undefined!==val.length)return 0===val.length;for(var key in val)if(has.call(val,key))return false;return true}});require.register("ianstormtaylor-is/index.js",function(exports,require,module){var isEmpty=require("is-empty");try{var typeOf=require("type")}catch(e){var typeOf=require("component-type")}var types=["arguments","array","boolean","date","element","function","null","number","object","regexp","string","undefined"];for(var i=0,type;type=types[i];i++)exports[type]=generate(type);exports.fn=exports["function"];exports.empty=isEmpty;exports.nan=function(val){return exports.number(val)&&val!=val};function generate(type){return function(value){return type===typeOf(value)}}});require.register("segmentio-after/index.js",function(exports,require,module){module.exports=function after(times,func){if(times<=0)return func();return function(){if(--times<1){return func.apply(this,arguments)}}}});require.register("component-domify/index.js",function(exports,require,module){module.exports=parse;var map={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:[0,"",""]};map.td=map.th=[3,"<table><tbody><tr>","</tr></tbody></table>"];map.option=map.optgroup=[1,'<select multiple="multiple">',"</select>"];map.thead=map.tbody=map.colgroup=map.caption=map.tfoot=[1,"<table>","</table>"];map.text=map.circle=map.ellipse=map.line=map.path=map.polygon=map.polyline=map.rect=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];function parse(html){if("string"!=typeof html)throw new TypeError("String expected");html=html.replace(/^\s+|\s+$/g,"");var m=/<([\w:]+)/.exec(html);if(!m)return document.createTextNode(html);var tag=m[1];if(tag=="body"){var el=document.createElement("html");el.innerHTML=html;return el.removeChild(el.lastChild)}var wrap=map[tag]||map._default;var depth=wrap[0];var prefix=wrap[1];var suffix=wrap[2];var el=document.createElement("div");el.innerHTML=prefix+html+suffix;while(depth--)el=el.lastChild;if(el.firstChild==el.lastChild){return el.removeChild(el.firstChild)}var fragment=document.createDocumentFragment();while(el.firstChild){fragment.appendChild(el.removeChild(el.firstChild))}return fragment}});require.register("component-once/index.js",function(exports,require,module){var n=0;var global=function(){return this}();module.exports=function(fn){var id=n++;function once(){if(this==global){if(once.called)return;once.called=true;return fn.apply(this,arguments)}var key="__called_"+id+"__";if(this[key])return;this[key]=true;return fn.apply(this,arguments)}return once}});require.register("segmentio-alias/index.js",function(exports,require,module){var type=require("type");try{var clone=require("clone")}catch(e){var clone=require("clone-component")}module.exports=alias;function alias(obj,method){switch(type(method)){case"object":return aliasByDictionary(clone(obj),method);case"function":return aliasByFunction(clone(obj),method)}}function aliasByDictionary(obj,aliases){for(var key in aliases){if(undefined===obj[key])continue;obj[aliases[key]]=obj[key];delete obj[key]}return obj}function aliasByFunction(obj,convert){var output={};for(var key in obj)output[convert(key)]=obj[key];return output}});require.register("ianstormtaylor-to-no-case/index.js",function(exports,require,module){module.exports=toNoCase;var hasSpace=/\s/;var hasCamel=/[a-z][A-Z]/;var hasSeparator=/[\W_]/;function toNoCase(string){if(hasSpace.test(string))return string.toLowerCase();if(hasSeparator.test(string))string=unseparate(string);if(hasCamel.test(string))string=uncamelize(string);return string.toLowerCase()}var separatorSplitter=/[\W_]+(.|$)/g;function unseparate(string){return string.replace(separatorSplitter,function(m,next){return next?" "+next:""})}var camelSplitter=/(.)([A-Z]+)/g;function uncamelize(string){return string.replace(camelSplitter,function(m,previous,uppers){return previous+" "+uppers.toLowerCase().split("").join(" ")})}});require.register("segmentio-analytics.js-integration/lib/index.js",function(exports,require,module){var bind=require("bind");var callback=require("callback");var clone=require("clone");var debug=require("debug");var defaults=require("defaults");var protos=require("./protos");var slug=require("slug");var statics=require("./statics");module.exports=createIntegration;function createIntegration(name){function Integration(options){this.debug=debug("analytics:integration:"+slug(name));this.options=defaults(clone(options)||{},this.defaults);this._queue=[];this.once("ready",bind(this,this.flush));Integration.emit("construct",this);this._wrapInitialize();this._wrapLoad();this._wrapPage();this._wrapTrack()}Integration.prototype.defaults={};Integration.prototype.globals=[];Integration.prototype.name=name;for(var key in statics)Integration[key]=statics[key];for(var key in protos)Integration.prototype[key]=protos[key];return Integration}});require.register("segmentio-analytics.js-integration/lib/protos.js",function(exports,require,module){var normalize=require("to-no-case");var after=require("after");var callback=require("callback");var Emitter=require("emitter");var tick=require("next-tick");var events=require("./events");var type=require("type");Emitter(exports);exports.initialize=function(){this.load()};exports.loaded=function(){return false};exports.load=function(cb){callback.async(cb)};exports.page=function(page){};exports.track=function(track){};exports.events=function(str){var events=this.options.events;var a=normalize(str);var ret=[];if(!events)return ret;if("object"==type(events)){for(var k in events){var item=events[k];var b=normalize(k);if(b==a)ret.push(item)}}if("array"==type(events)){if(!events.length)return ret;if(!events[0].key)return ret;for(var i=0;i<events.length;++i){var item=events[i];var b=normalize(item.key);if(b==a)ret.push(item.value)}}return ret};exports.invoke=function(method){if(!this[method])return;var args=[].slice.call(arguments,1);if(!this._ready)return this.queue(method,args);var ret;try{this.debug("%s with %o",method,args);ret=this[method].apply(this,args)}catch(e){this.debug("error %o calling %s with %o",e,method,args)}return ret};exports.queue=function(method,args){if("page"==method&&this._assumesPageview&&!this._initialized){return this.page.apply(this,args)}this._queue.push({method:method,args:args})};exports.flush=function(){this._ready=true;var call;while(call=this._queue.shift())this[call.method].apply(this,call.args)};exports.reset=function(){for(var i=0,key;key=this.globals[i];i++)window[key]=undefined};exports._wrapInitialize=function(){var initialize=this.initialize;this.initialize=function(){this.debug("initialize");this._initialized=true;var ret=initialize.apply(this,arguments);this.emit("initialize");var self=this;if(this._readyOnInitialize){tick(function(){self.emit("ready")})}return ret};if(this._assumesPageview)this.initialize=after(2,this.initialize)};exports._wrapLoad=function(){var load=this.load;this.load=function(callback){var self=this;this.debug("loading");if(this.loaded()){this.debug("already loaded");tick(function(){if(self._readyOnLoad)self.emit("ready");callback&&callback()});return}return load.call(this,function(err,e){self.debug("loaded");self.emit("load");if(self._readyOnLoad)self.emit("ready");callback&&callback(err,e)})}};exports._wrapPage=function(){var page=this.page;this.page=function(){if(this._assumesPageview&&!this._initialized){return this.initialize.apply(this,arguments)}return page.apply(this,arguments)}};exports._wrapTrack=function(){var t=this.track;this.track=function(track){var event=track.event();var called;var ret;for(var method in events){var regexp=events[method];if(!this[method])continue;if(!regexp.test(event))continue;ret=this[method].apply(this,arguments);called=true;break}if(!called)ret=t.apply(this,arguments);return ret}}});require.register("segmentio-analytics.js-integration/lib/events.js",function(exports,require,module){module.exports={removedProduct:/removed product/i,viewedProduct:/viewed product/i,addedProduct:/added product/i,completedOrder:/completed order/i}});require.register("segmentio-analytics.js-integration/lib/statics.js",function(exports,require,module){var after=require("after");var Emitter=require("emitter");Emitter(exports);exports.option=function(key,value){this.prototype.defaults[key]=value;return this};exports.global=function(key){this.prototype.globals.push(key);return this};exports.assumesPageview=function(){this.prototype._assumesPageview=true;return this};exports.readyOnLoad=function(){this.prototype._readyOnLoad=true;return this};exports.readyOnInitialize=function(){this.prototype._readyOnInitialize=true;return this}});require.register("segmentio-convert-dates/index.js",function(exports,require,module){var is=require("is");try{var clone=require("clone")}catch(e){var clone=require("clone-component")}module.exports=convertDates;function convertDates(obj,convert){obj=clone(obj);for(var key in obj){var val=obj[key];if(is.date(val))obj[key]=convert(val);if(is.object(val))obj[key]=convertDates(val,convert)}return obj}});require.register("segmentio-global-queue/index.js",function(exports,require,module){module.exports=generate;function generate(name,options){options=options||{};return function(args){args=[].slice.call(arguments);window[name]||(window[name]=[]);options.wrap===false?window[name].push.apply(window[name],args):window[name].push(args)}}});require.register("segmentio-load-date/index.js",function(exports,require,module){var time=new Date,perf=window.performance;if(perf&&perf.timing&&perf.timing.responseEnd){time=new Date(perf.timing.responseEnd)}module.exports=time});require.register("segmentio-load-script/index.js",function(exports,require,module){var type=require("type");module.exports=function loadScript(options,callback){if(!options)throw new Error("Cant load nothing...");if(type(options)==="string")options={src:options};var https=document.location.protocol==="https:"||document.location.protocol==="chrome-extension:";if(options.src&&options.src.indexOf("//")===0){options.src=https?"https:"+options.src:"http:"+options.src}if(https&&options.https)options.src=options.https;else if(!https&&options.http)options.src=options.http;var script=document.createElement("script");script.type="text/javascript";script.async=true;script.src=options.src;var firstScript=document.getElementsByTagName("script")[0];firstScript.parentNode.insertBefore(script,firstScript);if(callback&&type(callback)==="function"){if(script.addEventListener){script.addEventListener("load",function(event){callback(null,event)},false);script.addEventListener("error",function(event){callback(new Error("Failed to load the script."),event)},false)}else if(script.attachEvent){script.attachEvent("onreadystatechange",function(event){if(/complete|loaded/.test(script.readyState)){callback(null,event)}})}}return script}});require.register("segmentio-script-onload/index.js",function(exports,require,module){module.exports=function(el,fn){return el.addEventListener?add(el,fn):attach(el,fn)};function add(el,fn){el.addEventListener("load",function(_,e){fn(null,e)},false);el.addEventListener("error",function(e){var err=new Error('failed to load the script "'+el.src+'"');err.event=e;fn(err)},false)}function attach(el,fn){el.attachEvent("onreadystatechange",function(e){if(!/complete|loaded/.test(el.readyState))return;fn(null,e)})}});require.register("segmentio-on-body/index.js",function(exports,require,module){var each=require("each");var body=false;var callbacks=[];module.exports=function onBody(callback){if(body){call(callback)}else{callbacks.push(callback)}};var interval=setInterval(function(){if(!document.body)return;body=true;each(callbacks,call);clearInterval(interval)},5);function call(callback){callback(document.body)}});require.register("segmentio-on-error/index.js",function(exports,require,module){module.exports=onError;var callbacks=[];if("function"==typeof window.onerror)callbacks.push(window.onerror);window.onerror=handler;function handler(){for(var i=0,fn;fn=callbacks[i];i++)fn.apply(this,arguments)}function onError(fn){callbacks.push(fn);if(window.onerror!=handler){callbacks.push(window.onerror);window.onerror=handler}}});require.register("segmentio-to-iso-string/index.js",function(exports,require,module){module.exports=toIsoString;function toIsoString(date){return date.getUTCFullYear()+"-"+pad(date.getUTCMonth()+1)+"-"+pad(date.getUTCDate())+"T"+pad(date.getUTCHours())+":"+pad(date.getUTCMinutes())+":"+pad(date.getUTCSeconds())+"."+String((date.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}function pad(number){var n=number.toString();return n.length===1?"0"+n:n}});require.register("segmentio-to-unix-timestamp/index.js",function(exports,require,module){module.exports=toUnixTimestamp;function toUnixTimestamp(date){return Math.floor(date.getTime()/1e3)}});require.register("segmentio-use-https/index.js",function(exports,require,module){module.exports=function(url){switch(arguments.length){case 0:return check();case 1:return transform(url)}};function transform(url){return check()?"https:"+url:"http:"+url}function check(){return location.protocol=="https:"||location.protocol=="chrome-extension:"}});require.register("segmentio-when/index.js",function(exports,require,module){var callback=require("callback");module.exports=when;function when(condition,fn,interval){if(condition())return callback.async(fn);var ref=setInterval(function(){if(!condition())return;callback(fn);clearInterval(ref)},interval||10)}});require.register("yields-slug/index.js",function(exports,require,module){module.exports=function(str,options){options||(options={});return str.toLowerCase().replace(options.replace||/[^a-z0-9]/g," ").replace(/^ +| +$/g,"").replace(/ +/g,options.separator||"-")}});require.register("visionmedia-batch/index.js",function(exports,require,module){try{var EventEmitter=require("events").EventEmitter}catch(err){var Emitter=require("emitter")}function noop(){}module.exports=Batch;function Batch(){if(!(this instanceof Batch))return new Batch;this.fns=[];this.concurrency(Infinity);this.throws(true);for(var i=0,len=arguments.length;i<len;++i){this.push(arguments[i])}}if(EventEmitter){Batch.prototype.__proto__=EventEmitter.prototype}else{Emitter(Batch.prototype)}Batch.prototype.concurrency=function(n){this.n=n;return this};Batch.prototype.push=function(fn){this.fns.push(fn);return this};Batch.prototype.throws=function(throws){this.e=!!throws;return this};Batch.prototype.end=function(cb){var self=this,total=this.fns.length,pending=total,results=[],errors=[],cb=cb||noop,fns=this.fns,max=this.n,throws=this.e,index=0,done;if(!fns.length)return cb(null,results);function next(){var i=index++;var fn=fns[i];if(!fn)return;var start=new Date;try{fn(callback)}catch(err){callback(err)}function callback(err,res){if(done)return;if(err&&throws)return done=true,cb(err);var complete=total-pending+1;var end=new Date;results[i]=res;errors[i]=err;self.emit("progress",{index:i,value:res,error:err,pending:pending,total:total,complete:complete,percent:complete/total*100|0,start:start,end:end,duration:end-start});if(--pending)next();else if(!throws)cb(errors,results);else cb(null,results)}}for(var i=0;i<fns.length;i++){if(i==max)break;next()}return this}});require.register("segmentio-substitute/index.js",function(exports,require,module){module.exports=substitute;function substitute(str,obj,expr){if(!obj)throw new TypeError("expected an object");expr=expr||/:(\w+)/g;return str.replace(expr,function(_,prop){return null!=obj[prop]?obj[prop]:_})}});require.register("segmentio-load-pixel/index.js",function(exports,require,module){var stringify=require("querystring").stringify;var sub=require("substitute");module.exports=function(path){return function(query,obj,fn){if("function"==typeof obj)fn=obj,obj={};obj=obj||{};fn=fn||function(){};var url=sub(path,obj);var img=new Image;img.onerror=error(fn,"failed to load pixel",img);img.onload=function(){fn()};query=stringify(query);if(query)query="?"+query;img.src=url+query;img.width=1;img.height=1;return img}};function error(fn,message,img){return function(e){e=e||window.event;var err=new Error(message);err.event=e;err.source=img;fn(err)}}});require.register("segmentio-replace-document-write/index.js",function(exports,require,module){var domify=require("domify");module.exports=function(match,parent,fn){var write=document.write;document.write=append;if(typeof parent==="function")fn=parent,parent=null;if(!parent)parent=document.body;function append(str){var el=domify(str);var src=el.src||"";if(el.src.indexOf(match)===-1)return write(str);if("SCRIPT"==el.tagName)el=recreate(el);parent.appendChild(el);document.write=write;fn&&fn()}};function recreate(script){var ret=document.createElement("script");ret.src=script.src;ret.async=script.async;ret.defer=script.defer;return ret}});require.register("ianstormtaylor-to-camel-case/index.js",function(exports,require,module){var toSpace=require("to-space-case");module.exports=toCamelCase;function toCamelCase(string){return toSpace(string).replace(/\s(\w)/g,function(matches,letter){return letter.toUpperCase()})}});require.register("ianstormtaylor-to-capital-case/index.js",function(exports,require,module){var clean=require("to-no-case");module.exports=toCapitalCase;function toCapitalCase(string){return clean(string).replace(/(^|\s)(\w)/g,function(matches,previous,letter){return previous+letter.toUpperCase()})}});require.register("ianstormtaylor-to-constant-case/index.js",function(exports,require,module){var snake=require("to-snake-case");module.exports=toConstantCase;function toConstantCase(string){return snake(string).toUpperCase()}});require.register("ianstormtaylor-to-dot-case/index.js",function(exports,require,module){var toSpace=require("to-space-case");module.exports=toDotCase;function toDotCase(string){return toSpace(string).replace(/\s/g,".")}});require.register("ianstormtaylor-to-pascal-case/index.js",function(exports,require,module){var toSpace=require("to-space-case");module.exports=toPascalCase;function toPascalCase(string){return toSpace(string).replace(/(?:^|\s)(\w)/g,function(matches,letter){return letter.toUpperCase()})}});require.register("ianstormtaylor-to-sentence-case/index.js",function(exports,require,module){var clean=require("to-no-case");module.exports=toSentenceCase;function toSentenceCase(string){return clean(string).replace(/[a-z]/i,function(letter){return letter.toUpperCase()})}});require.register("ianstormtaylor-to-slug-case/index.js",function(exports,require,module){var toSpace=require("to-space-case");module.exports=toSlugCase;function toSlugCase(string){return toSpace(string).replace(/\s/g,"-")}});require.register("ianstormtaylor-to-snake-case/index.js",function(exports,require,module){var toSpace=require("to-space-case");module.exports=toSnakeCase;function toSnakeCase(string){return toSpace(string).replace(/\s/g,"_")}});require.register("ianstormtaylor-to-space-case/index.js",function(exports,require,module){var clean=require("to-no-case");module.exports=toSpaceCase;function toSpaceCase(string){return clean(string).replace(/[\W_]+(.|$)/g,function(matches,match){return match?" "+match:""})}});require.register("component-escape-regexp/index.js",function(exports,require,module){module.exports=function(str){return String(str).replace(/([.*+?=^!:${}()|[\]\/\\])/g,"\\$1")}});require.register("ianstormtaylor-map/index.js",function(exports,require,module){var each=require("each");module.exports=function map(obj,iterator){var arr=[]; each(obj,function(o){arr.push(iterator.apply(null,arguments))});return arr}});require.register("ianstormtaylor-title-case-minors/index.js",function(exports,require,module){module.exports=["a","an","and","as","at","but","by","en","for","from","how","if","in","neither","nor","of","on","only","onto","out","or","per","so","than","that","the","to","until","up","upon","v","v.","versus","vs","vs.","via","when","with","without","yet"]});require.register("ianstormtaylor-to-title-case/index.js",function(exports,require,module){var capital=require("to-capital-case"),escape=require("escape-regexp"),map=require("map"),minors=require("title-case-minors");module.exports=toTitleCase;var escaped=map(minors,escape);var minorMatcher=new RegExp("[^^]\\b("+escaped.join("|")+")\\b","ig");var colonMatcher=/:\s*(\w)/g;function toTitleCase(string){return capital(string).replace(minorMatcher,function(minor){return minor.toLowerCase()}).replace(colonMatcher,function(letter){return letter.toUpperCase()})}});require.register("ianstormtaylor-case/lib/index.js",function(exports,require,module){var cases=require("./cases");module.exports=exports=determineCase;function determineCase(string){for(var key in cases){if(key=="none")continue;var convert=cases[key];if(convert(string)==string)return key}return null}exports.add=function(name,convert){exports[name]=cases[name]=convert};for(var key in cases){exports.add(key,cases[key])}});require.register("ianstormtaylor-case/lib/cases.js",function(exports,require,module){var camel=require("to-camel-case"),capital=require("to-capital-case"),constant=require("to-constant-case"),dot=require("to-dot-case"),none=require("to-no-case"),pascal=require("to-pascal-case"),sentence=require("to-sentence-case"),slug=require("to-slug-case"),snake=require("to-snake-case"),space=require("to-space-case"),title=require("to-title-case");exports.camel=camel;exports.pascal=pascal;exports.dot=dot;exports.slug=slug;exports.snake=snake;exports.space=space;exports.constant=constant;exports.capital=capital;exports.title=title;exports.sentence=sentence;exports.lower=function(string){return none(string).toLowerCase()};exports.upper=function(string){return none(string).toUpperCase()};exports.inverse=function(string){for(var i=0,char;char=string[i];i++){if(!/[a-z]/i.test(char))continue;var upper=char.toUpperCase();var lower=char.toLowerCase();string[i]=char==upper?lower:upper}return string};exports.none=none});require.register("segmentio-obj-case/index.js",function(exports,require,module){var Case=require("case");var cases=[Case.upper,Case.lower,Case.snake,Case.pascal,Case.camel,Case.constant,Case.title,Case.capital,Case.sentence];module.exports=module.exports.find=multiple(find);module.exports.replace=function(obj,key,val){multiple(replace).apply(this,arguments);return obj};module.exports.del=function(obj,key){multiple(del).apply(this,arguments);return obj};function multiple(fn){return function(obj,key,val){var keys=key.split(".");if(keys.length===0)return;while(keys.length>1){key=keys.shift();obj=find(obj,key);if(obj===null||obj===undefined)return}key=keys.shift();return fn(obj,key,val)}}function find(obj,key){for(var i=0;i<cases.length;i++){var cased=cases[i](key);if(obj.hasOwnProperty(cased))return obj[cased]}}function del(obj,key){for(var i=0;i<cases.length;i++){var cased=cases[i](key);if(obj.hasOwnProperty(cased))delete obj[cased]}return obj}function replace(obj,key,val){for(var i=0;i<cases.length;i++){var cased=cases[i](key);if(obj.hasOwnProperty(cased))obj[cased]=val}return obj}});require.register("segmentio-analytics.js-integrations/index.js",function(exports,require,module){var integrations=require("./lib/slugs");var each=require("each");each(integrations,function(slug){var plugin=require("./lib/"+slug);var name=plugin.Integration.prototype.name;exports[name]=plugin})});require.register("segmentio-analytics.js-integrations/lib/adroll.js",function(exports,require,module){var integration=require("integration");var is=require("is");var load=require("load-script");var user;var has=Object.prototype.hasOwnProperty;module.exports=exports=function(analytics){analytics.addIntegration(AdRoll);user=analytics.user()};var AdRoll=exports.Integration=integration("AdRoll").assumesPageview().readyOnLoad().global("__adroll_loaded").global("adroll_adv_id").global("adroll_pix_id").global("adroll_custom_data").option("events",{}).option("advId","").option("pixId","");AdRoll.prototype.initialize=function(page){window.adroll_adv_id=this.options.advId;window.adroll_pix_id=this.options.pixId;if(user.id())window.adroll_custom_data={USER_ID:user.id()};window.__adroll_loaded=true;this.load()};AdRoll.prototype.loaded=function(){return window.__adroll};AdRoll.prototype.load=function(callback){load({http:"http://a.adroll.com/j/roundtrip.js",https:"https://s.adroll.com/j/roundtrip.js"},callback)};AdRoll.prototype.track=function(track){var events=this.options.events;var total=track.revenue();var event=track.event();if(has.call(events,event))event=events[event];window.__adroll.record_user({adroll_conversion_value_in_dollars:total||0,order_id:track.orderId()||0,adroll_segments:event})}});require.register("segmentio-analytics.js-integrations/lib/adwords.js",function(exports,require,module){var onbody=require("on-body");var integration=require("integration");var load=require("load-script");var domify=require("domify");module.exports=exports=function(analytics){analytics.addIntegration(AdWords)};var has=Object.prototype.hasOwnProperty;var AdWords=exports.Integration=integration("AdWords").readyOnLoad().option("conversionId","").option("events",{});AdWords.prototype.load=function(fn){onbody(fn)};AdWords.prototype.loaded=function(){return!!document.body};AdWords.prototype.track=function(track){var id=this.options.conversionId;var events=this.options.events;var event=track.event();if(!has.call(events,event))return;return this.conversion({value:track.revenue()||0,label:events[event],conversionId:id})};AdWords.prototype.conversion=function(obj,fn){if(this.reporting)return this.wait(obj);this.reporting=true;this.debug("sending %o",obj);var self=this;var write=document.write;document.write=append;window.google_conversion_id=obj.conversionId;window.google_conversion_language="en";window.google_conversion_format="3";window.google_conversion_color="ffffff";window.google_conversion_label=obj.label;window.google_conversion_value=obj.value;window.google_remarketing_only=false;load("//www.googleadservices.com/pagead/conversion.js",fn);function append(str){var el=domify(str);if(!el.src)return write(str);if(!/googleadservices/.test(el.src))return write(str);self.debug("append %o",el);document.body.appendChild(el);document.write=write;self.reporting=null}};AdWords.prototype.wait=function(obj){var self=this;var id=setTimeout(function(){clearTimeout(id);self.conversion(obj)},50)}});require.register("segmentio-analytics.js-integrations/lib/alexa.js",function(exports,require,module){var integration=require("integration");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(Alexa)};var Alexa=exports.Integration=integration("Alexa").assumesPageview().readyOnLoad().global("_atrk_opts").option("account",null).option("domain","").option("dynamic",true);Alexa.prototype.initialize=function(page){window._atrk_opts={atrk_acct:this.options.account,domain:this.options.domain,dynamic:this.options.dynamic};this.load()};Alexa.prototype.loaded=function(){return!!window.atrk};Alexa.prototype.load=function(callback){load("//d31qbv1cthcecs.cloudfront.net/atrk.js",function(err){if(err)return callback(err);window.atrk();callback()})}});require.register("segmentio-analytics.js-integrations/lib/amplitude.js",function(exports,require,module){var callback=require("callback");var integration=require("integration");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(Amplitude)};var Amplitude=exports.Integration=integration("Amplitude").assumesPageview().readyOnInitialize().global("amplitude").option("apiKey","").option("trackAllPages",false).option("trackNamedPages",true).option("trackCategorizedPages",true);Amplitude.prototype.initialize=function(page){(function(e,t){var r=e.amplitude||{};r._q=[];function i(e){r[e]=function(){r._q.push([e].concat(Array.prototype.slice.call(arguments,0)))}}var s=["init","logEvent","setUserId","setGlobalUserProperties","setVersionName","setDomain"];for(var c=0;c<s.length;c++){i(s[c])}e.amplitude=r})(window,document);window.amplitude.init(this.options.apiKey);this.load()};Amplitude.prototype.loaded=function(){return!!(window.amplitude&&window.amplitude.options)};Amplitude.prototype.load=function(callback){load("https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-1.1-min.js",callback)};Amplitude.prototype.page=function(page){var properties=page.properties();var category=page.category();var name=page.fullName();var opts=this.options;if(opts.trackAllPages){this.track(page.track())}if(category&&opts.trackCategorizedPages){this.track(page.track(category))}if(name&&opts.trackNamedPages){this.track(page.track(name))}};Amplitude.prototype.identify=function(identify){var id=identify.userId();var traits=identify.traits();if(id)window.amplitude.setUserId(id);if(traits)window.amplitude.setGlobalUserProperties(traits)};Amplitude.prototype.track=function(track){var props=track.properties();var event=track.event();window.amplitude.logEvent(event,props)}});require.register("segmentio-analytics.js-integrations/lib/awesm.js",function(exports,require,module){var integration=require("integration");var load=require("load-script");var user;module.exports=exports=function(analytics){analytics.addIntegration(Awesm);user=analytics.user()};var Awesm=exports.Integration=integration("awe.sm").assumesPageview().readyOnLoad().global("AWESM").option("apiKey","").option("events",{});Awesm.prototype.initialize=function(page){window.AWESM={api_key:this.options.apiKey};this.load()};Awesm.prototype.loaded=function(){return!!window.AWESM._exists};Awesm.prototype.load=function(callback){var key=this.options.apiKey;load("//widgets.awe.sm/v3/widgets.js?key="+key+"&async=true",callback)};Awesm.prototype.track=function(track){var event=track.event();var goal=this.options.events[event];if(!goal)return;window.AWESM.convert(goal,track.cents(),null,user.id())}});require.register("segmentio-analytics.js-integrations/lib/awesomatic.js",function(exports,require,module){var integration=require("integration");var is=require("is");var load=require("load-script");var noop=function(){};var onBody=require("on-body");var user;module.exports=exports=function(analytics){analytics.addIntegration(Awesomatic);user=analytics.user()};var Awesomatic=exports.Integration=integration("Awesomatic").assumesPageview().global("Awesomatic").global("AwesomaticSettings").global("AwsmSetup").global("AwsmTmp").option("appId","");Awesomatic.prototype.initialize=function(page){var self=this;var id=user.id();var options=user.traits();options.appId=this.options.appId;if(id)options.user_id=id;this.load(function(){window.Awesomatic.initialize(options,function(){self.emit("ready")})})};Awesomatic.prototype.loaded=function(){return is.object(window.Awesomatic)};Awesomatic.prototype.load=function(callback){var url="https://1c817b7a15b6941337c0-dff9b5f4adb7ba28259631e99c3f3691.ssl.cf2.rackcdn.com/gen/embed.js";load(url,callback)}});require.register("segmentio-analytics.js-integrations/lib/bing-ads.js",function(exports,require,module){var integration=require("integration");module.exports=exports=function(analytics){analytics.addIntegration(Bing)};var has=Object.prototype.hasOwnProperty;var Bing=exports.Integration=integration("Bing Ads").readyOnInitialize().option("siteId","").option("domainId","").option("goals",{});Bing.prototype.track=function(track){var goals=this.options.goals;var traits=track.traits();var event=track.event();if(!has.call(goals,event))return;var goal=goals[event];return exports.load(goal,track.revenue(),this.options)};exports.load=function(goal,revenue,options){var iframe=document.createElement("iframe");iframe.src="//flex.msn.com/mstag/tag/"+options.siteId+"/analytics.html"+"?domainId="+options.domainId+"&revenue="+revenue||0+"&actionid="+goal;+"&dedup=1"+"&type=1";iframe.width=1;iframe.height=1;return iframe}});require.register("segmentio-analytics.js-integrations/lib/bronto.js",function(exports,require,module){var integration=require("integration");var Track=require("facade").Track;var load=require("load-script");var each=require("each");module.exports=exports=function(analytics){analytics.addIntegration(Bronto)};var Bronto=exports.Integration=integration("Bronto").readyOnLoad().global("__bta").option("siteId","").option("host","");Bronto.prototype.initialize=function(page){this.load()};Bronto.prototype.loaded=function(){return this.bta};Bronto.prototype.load=function(fn){var self=this;load("//p.bm23.com/bta.js",function(err){if(err)return fn(err);var opts=self.options;self.bta=new window.__bta(opts.siteId);if(opts.host)self.bta.setHost(opts.host);fn()})};Bronto.prototype.track=function(track){var revenue=track.revenue();var event=track.event();var type="number"==typeof revenue?"$":"t";this.bta.addConversionLegacy(type,event,revenue)};Bronto.prototype.completedOrder=function(track){var products=track.products();var props=track.properties();var items=[];each(products,function(product){var track=new Track({properties:product});items.push({item_id:track.id()||track.sku(),desc:product.description||track.name(),quantity:track.quantity(),amount:track.price()})});this.bta.addConversion({order_id:track.orderId(),date:props.date||new Date,items:items})}});require.register("segmentio-analytics.js-integrations/lib/bugherd.js",function(exports,require,module){var integration=require("integration");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(BugHerd)};var BugHerd=exports.Integration=integration("BugHerd").assumesPageview().readyOnLoad().global("BugHerdConfig").global("_bugHerd").option("apiKey","").option("showFeedbackTab",true);BugHerd.prototype.initialize=function(page){window.BugHerdConfig={feedback:{hide:!this.options.showFeedbackTab}};this.load()};BugHerd.prototype.loaded=function(){return!!window._bugHerd};BugHerd.prototype.load=function(callback){load("//www.bugherd.com/sidebarv2.js?apikey="+this.options.apiKey,callback)}});require.register("segmentio-analytics.js-integrations/lib/bugsnag.js",function(exports,require,module){var integration=require("integration");var is=require("is");var extend=require("extend");var load=require("load-script");var onError=require("on-error");module.exports=exports=function(analytics){analytics.addIntegration(Bugsnag)};var Bugsnag=exports.Integration=integration("Bugsnag").readyOnLoad().global("Bugsnag").option("apiKey","");Bugsnag.prototype.initialize=function(page){this.load()};Bugsnag.prototype.loaded=function(){return is.object(window.Bugsnag)};Bugsnag.prototype.load=function(callback){var apiKey=this.options.apiKey;load("//d2wy8f7a9ursnm.cloudfront.net/bugsnag-2.min.js",function(err){if(err)return callback(err);window.Bugsnag.apiKey=apiKey;callback()})};Bugsnag.prototype.identify=function(identify){window.Bugsnag.metaData=window.Bugsnag.metaData||{};extend(window.Bugsnag.metaData,identify.traits())}});require.register("segmentio-analytics.js-integrations/lib/chartbeat.js",function(exports,require,module){var integration=require("integration");var onBody=require("on-body");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(Chartbeat)};var Chartbeat=exports.Integration=integration("Chartbeat").assumesPageview().readyOnLoad().global("_sf_async_config").global("_sf_endpt").global("pSUPERFLY").option("domain","").option("uid",null);Chartbeat.prototype.initialize=function(page){window._sf_async_config=this.options;onBody(function(){window._sf_endpt=(new Date).getTime()});this.load()};Chartbeat.prototype.loaded=function(){return!!window.pSUPERFLY};Chartbeat.prototype.load=function(callback){load({https:"https://a248.e.akamai.net/chartbeat.download.akamai.com/102508/js/chartbeat.js",http:"http://static.chartbeat.com/js/chartbeat.js"},callback)};Chartbeat.prototype.page=function(page){var props=page.properties();var name=page.fullName();window.pSUPERFLY.virtualPage(props.path,name||props.title)}});require.register("segmentio-analytics.js-integrations/lib/churnbee.js",function(exports,require,module){var push=require("global-queue")("_cbq");var integration=require("integration");var load=require("load-script");var has=Object.prototype.hasOwnProperty;var supported={activation:true,changePlan:true,register:true,refund:true,charge:true,cancel:true,login:true};module.exports=exports=function(analytics){analytics.addIntegration(ChurnBee)};var ChurnBee=exports.Integration=integration("ChurnBee").readyOnInitialize().global("_cbq").global("ChurnBee").option("events",{}).option("apiKey","");ChurnBee.prototype.initialize=function(page){push("_setApiKey",this.options.apiKey);this.load()};ChurnBee.prototype.loaded=function(){return!!window.ChurnBee};ChurnBee.prototype.load=function(fn){load("//api.churnbee.com/cb.js",fn)};ChurnBee.prototype.track=function(track){var events=this.options.events;var event=track.event();if(has.call(events,event))event=events[event];if(true!=supported[event])return;push(event,track.properties({revenue:"amount"}))}});require.register("segmentio-analytics.js-integrations/lib/clicktale.js",function(exports,require,module){var date=require("load-date");var domify=require("domify");var each=require("each");var integration=require("integration");var is=require("is");var useHttps=require("use-https");var load=require("load-script");var onBody=require("on-body");module.exports=exports=function(analytics){analytics.addIntegration(ClickTale)};var ClickTale=exports.Integration=integration("ClickTale").assumesPageview().readyOnLoad().global("WRInitTime").global("ClickTale").global("ClickTaleSetUID").global("ClickTaleField").global("ClickTaleEvent").option("httpCdnUrl","http://s.clicktale.net/WRe0.js").option("httpsCdnUrl","").option("projectId","").option("recordingRatio",.01).option("partitionId","");ClickTale.prototype.initialize=function(page){var options=this.options;window.WRInitTime=date.getTime();onBody(function(body){body.appendChild(domify('<div id="ClickTaleDiv" style="display: none;">'))});this.load(function(){window.ClickTale(options.projectId,options.recordingRatio,options.partitionId)})};ClickTale.prototype.loaded=function(){return is.fn(window.ClickTale)};ClickTale.prototype.load=function(callback){var http=this.options.httpCdnUrl;var https=this.options.httpsCdnUrl;if(useHttps()&&!https)return this.debug("https option required");load({http:http,https:https},callback)};ClickTale.prototype.identify=function(identify){var id=identify.userId();window.ClickTaleSetUID(id);each(identify.traits(),function(key,value){window.ClickTaleField(key,value)})};ClickTale.prototype.track=function(track){window.ClickTaleEvent(track.event())}});require.register("segmentio-analytics.js-integrations/lib/clicky.js",function(exports,require,module){var Identify=require("facade").Identify;var extend=require("extend");var integration=require("integration");var is=require("is");var load=require("load-script");var user;module.exports=exports=function(analytics){analytics.addIntegration(Clicky);user=analytics.user()};var Clicky=exports.Integration=integration("Clicky").assumesPageview().readyOnLoad().global("clicky").global("clicky_site_ids").global("clicky_custom").option("siteId",null);Clicky.prototype.initialize=function(page){window.clicky_site_ids=window.clicky_site_ids||[this.options.siteId];this.identify(new Identify({userId:user.id(),traits:user.traits()}));this.load()};Clicky.prototype.loaded=function(){return is.object(window.clicky)};Clicky.prototype.load=function(callback){load("//static.getclicky.com/js",callback)};Clicky.prototype.page=function(page){var properties=page.properties();var category=page.category();var name=page.fullName();window.clicky.log(properties.path,name||properties.title)};Clicky.prototype.identify=function(identify){window.clicky_custom=window.clicky_custom||{};window.clicky_custom.session=window.clicky_custom.session||{};extend(window.clicky_custom.session,identify.traits())};Clicky.prototype.track=function(track){window.clicky.goal(track.event(),track.revenue())}});require.register("segmentio-analytics.js-integrations/lib/comscore.js",function(exports,require,module){var integration=require("integration");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(Comscore)};var Comscore=exports.Integration=integration("comScore").assumesPageview().readyOnLoad().global("_comscore").global("COMSCORE").option("c1","2").option("c2","");Comscore.prototype.initialize=function(page){window._comscore=window._comscore||[this.options];this.load()};Comscore.prototype.loaded=function(){return!!window.COMSCORE};Comscore.prototype.load=function(callback){load({http:"http://b.scorecardresearch.com/beacon.js",https:"https://sb.scorecardresearch.com/beacon.js"},callback)}});require.register("segmentio-analytics.js-integrations/lib/crazy-egg.js",function(exports,require,module){var integration=require("integration");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(CrazyEgg)};var CrazyEgg=exports.Integration=integration("Crazy Egg").assumesPageview().readyOnLoad().global("CE2").option("accountNumber","");CrazyEgg.prototype.initialize=function(page){this.load()};CrazyEgg.prototype.loaded=function(){return!!window.CE2};CrazyEgg.prototype.load=function(callback){var number=this.options.accountNumber;var path=number.slice(0,4)+"/"+number.slice(4);var cache=Math.floor((new Date).getTime()/36e5);var url="//dnn506yrbagrg.cloudfront.net/pages/scripts/"+path+".js?"+cache;load(url,callback)}});require.register("segmentio-analytics.js-integrations/lib/curebit.js",function(exports,require,module){var clone=require("clone");var each=require("each");var Identify=require("facade").Identify;var integration=require("integration");var iso=require("to-iso-string");var load=require("load-script");var push=require("global-queue")("_curebitq");var Track=require("facade").Track;var user;module.exports=exports=function(analytics){analytics.addIntegration(Curebit);user=analytics.user()};var Curebit=exports.Integration=integration("Curebit").readyOnInitialize().global("_curebitq").global("curebit").option("siteId","").option("iframeWidth","100%").option("iframeHeight","480").option("iframeBorder",0).option("iframeId","").option("responsive",true).option("device","").option("insertIntoId","curebit-frame").option("campaigns",{}).option("server","https://www.curebit.com");Curebit.prototype.initialize=function(page){push("init",{site_id:this.options.siteId,server:this.options.server});this.load()};Curebit.prototype.loaded=function(){return!!window.curebit};Curebit.prototype.load=function(fn){var url="//d2jjzw81hqbuqv.cloudfront.net/integration/curebit-1.0.min.js";load(url,fn)};Curebit.prototype.page=function(page){var campaigns=this.options.campaigns;var path=window.location.pathname;if(!campaigns[path])return;var tags=(campaigns[path]||"").split(",");if(!tags.length)return;var settings={responsive:this.options.responsive,device:this.options.device,campaign_tags:tags,iframe:{width:this.options.iframeWidth,height:this.options.iframeHeight,id:this.options.iframeId,frameborder:this.options.iframeBorder,container:this.options.insertIntoId}};var identify=new Identify({userId:user.id(),traits:user.traits()});if(identify.email()){settings.affiliate_member={email:identify.email(),first_name:identify.firstName(),last_name:identify.lastName(),customer_id:identify.userId()}}push("register_affiliate",settings)};Curebit.prototype.completedOrder=function(track){var orderId=track.orderId();var products=track.products();var props=track.properties();var items=[];var identify=new Identify({traits:user.traits(),userId:user.id()});each(products,function(product){var track=new Track({properties:product});items.push({product_id:track.id()||track.sku(),quantity:track.quantity(),image_url:product.image,price:track.price(),title:track.name(),url:product.url})});push("register_purchase",{order_date:iso(props.date||new Date),order_number:orderId,coupon_code:track.coupon(),subtotal:track.total(),customer_id:identify.userId(),first_name:identify.firstName(),last_name:identify.lastName(),email:identify.email(),items:items})}});require.register("segmentio-analytics.js-integrations/lib/customerio.js",function(exports,require,module){var alias=require("alias");var callback=require("callback");var convertDates=require("convert-dates");var Identify=require("facade").Identify;var integration=require("integration");var load=require("load-script");var user;module.exports=exports=function(analytics){analytics.addIntegration(Customerio);user=analytics.user()};var Customerio=exports.Integration=integration("Customer.io").assumesPageview().readyOnInitialize().global("_cio").option("siteId","");Customerio.prototype.initialize=function(page){window._cio=window._cio||[];(function(){var a,b,c;a=function(f){return function(){window._cio.push([f].concat(Array.prototype.slice.call(arguments,0)))}};b=["identify","track"];for(c=0;c<b.length;c++){window._cio[b[c]]=a(b[c])}})();this.load()};Customerio.prototype.loaded=function(){return!!(window._cio&&window._cio.pageHasLoaded)};Customerio.prototype.load=function(callback){var script=load("https://assets.customer.io/assets/track.js",callback);script.id="cio-tracker";script.setAttribute("data-site-id",this.options.siteId)};Customerio.prototype.identify=function(identify){if(!identify.userId())return this.debug("user id required");var traits=identify.traits({created:"created_at"});traits=convertDates(traits,convertDate);window._cio.identify(traits)};Customerio.prototype.group=function(group){var traits=group.traits();traits=alias(traits,function(trait){return"Group "+trait});this.identify(new Identify({userId:user.id(),traits:traits}))};Customerio.prototype.track=function(track){var properties=track.properties();properties=convertDates(properties,convertDate);window._cio.track(track.event(),properties)};function convertDate(date){return Math.floor(date.getTime()/1e3)}});require.register("segmentio-analytics.js-integrations/lib/drip.js",function(exports,require,module){var alias=require("alias");var integration=require("integration");var is=require("is");var load=require("load-script");var push=require("global-queue")("_dcq");module.exports=exports=function(analytics){analytics.addIntegration(Drip)};var Drip=exports.Integration=integration("Drip").assumesPageview().readyOnLoad().global("dc").global("_dcq").global("_dcs").option("account","");Drip.prototype.initialize=function(page){window._dcq=window._dcq||[];window._dcs=window._dcs||{};window._dcs.account=this.options.account;this.load()};Drip.prototype.loaded=function(){return is.object(window.dc)};Drip.prototype.load=function(callback){load("//tag.getdrip.com/"+this.options.account+".js",callback)};Drip.prototype.track=function(track){var props=track.properties();var cents=Math.round(track.cents());props.action=track.event();if(cents)props.value=cents;delete props.revenue;push("track",props)}});require.register("segmentio-analytics.js-integrations/lib/errorception.js",function(exports,require,module){var callback=require("callback");var extend=require("extend");var integration=require("integration");var load=require("load-script");var onError=require("on-error");var push=require("global-queue")("_errs");module.exports=exports=function(analytics){analytics.addIntegration(Errorception)};var Errorception=exports.Integration=integration("Errorception").assumesPageview().readyOnInitialize().global("_errs").option("projectId","").option("meta",true);Errorception.prototype.initialize=function(page){window._errs=window._errs||[this.options.projectId];onError(push);this.load()};Errorception.prototype.loaded=function(){return!!(window._errs&&window._errs.push!==Array.prototype.push)};Errorception.prototype.load=function(callback){load("//beacon.errorception.com/"+this.options.projectId+".js",callback)};Errorception.prototype.identify=function(identify){if(!this.options.meta)return;var traits=identify.traits();window._errs=window._errs||[];window._errs.meta=window._errs.meta||{};extend(window._errs.meta,traits)}});require.register("segmentio-analytics.js-integrations/lib/evergage.js",function(exports,require,module){var each=require("each");var integration=require("integration");var load=require("load-script");var push=require("global-queue")("_aaq");module.exports=exports=function(analytics){analytics.addIntegration(Evergage)};var Evergage=exports.Integration=integration("Evergage").assumesPageview().readyOnInitialize().global("_aaq").option("account","").option("dataset","");Evergage.prototype.initialize=function(page){var account=this.options.account;var dataset=this.options.dataset;window._aaq=window._aaq||[];push("setEvergageAccount",account);push("setDataset",dataset);push("setUseSiteConfig",true);this.load()};Evergage.prototype.loaded=function(){return!!(window._aaq&&window._aaq.push!==Array.prototype.push)};Evergage.prototype.load=function(callback){var account=this.options.account;var dataset=this.options.dataset;var url="//cdn.evergage.com/beacon/"+account+"/"+dataset+"/scripts/evergage.min.js";load(url,callback)};Evergage.prototype.page=function(page){var props=page.properties();var name=page.name();if(name)push("namePage",name);each(props,function(key,value){push("setCustomField",key,value,"page")});window.Evergage.init(true)};Evergage.prototype.identify=function(identify){var id=identify.userId();if(!id)return;push("setUser",id);var traits=identify.traits({email:"userEmail",name:"userName"});each(traits,function(key,value){push("setUserField",key,value,"page")})};Evergage.prototype.group=function(group){var props=group.traits();var id=group.groupId();if(!id)return;push("setCompany",id);each(props,function(key,value){push("setAccountField",key,value,"page")})};Evergage.prototype.track=function(track){push("trackAction",track.event(),track.properties())}});require.register("segmentio-analytics.js-integrations/lib/facebook-ads.js",function(exports,require,module){var load=require("load-pixel")("//www.facebook.com/offsite_event.php");var integration=require("integration");module.exports=exports=function(analytics){analytics.addIntegration(Facebook)};exports.load=load;var has=Object.prototype.hasOwnProperty;var Facebook=exports.Integration=integration("Facebook Ads").readyOnInitialize().option("currency","USD").option("events",{});Facebook.prototype.track=function(track){var events=this.options.events;var traits=track.traits();var event=track.event();if(!has.call(events,event))return;return exports.load({currency:this.options.currency,value:track.revenue()||0,id:events[event]})}});require.register("segmentio-analytics.js-integrations/lib/foxmetrics.js",function(exports,require,module){var push=require("global-queue")("_fxm");var integration=require("integration");var Track=require("facade").Track;var callback=require("callback");var load=require("load-script");var each=require("each");module.exports=exports=function(analytics){analytics.addIntegration(FoxMetrics)};var FoxMetrics=exports.Integration=integration("FoxMetrics").assumesPageview().readyOnInitialize().global("_fxm").option("appId","");FoxMetrics.prototype.initialize=function(page){window._fxm=window._fxm||[];this.load()};FoxMetrics.prototype.loaded=function(){return!!(window._fxm&&window._fxm.appId)};FoxMetrics.prototype.load=function(callback){var id=this.options.appId;load("//d35tca7vmefkrc.cloudfront.net/scripts/"+id+".js",callback)};FoxMetrics.prototype.page=function(page){var properties=page.proxy("properties"); var category=page.category();var name=page.name();this._category=category;push("_fxm.pages.view",properties.title,name,category,properties.url,properties.referrer)};FoxMetrics.prototype.identify=function(identify){var id=identify.userId();if(!id)return;push("_fxm.visitor.profile",id,identify.firstName(),identify.lastName(),identify.email(),identify.address(),undefined,undefined,identify.traits())};FoxMetrics.prototype.track=function(track){var props=track.properties();var category=this._category||props.category;push(track.event(),category,props)};FoxMetrics.prototype.viewedProduct=function(track){ecommerce("productview",track)};FoxMetrics.prototype.removedProduct=function(track){ecommerce("removecartitem",track)};FoxMetrics.prototype.addedProduct=function(track){ecommerce("cartitem",track)};FoxMetrics.prototype.completedOrder=function(track){var orderId=track.orderId();push("_fxm.ecommerce.order",orderId,track.subtotal(),track.shipping(),track.tax(),track.city(),track.state(),track.zip(),track.quantity());each(track.products(),function(product){var track=new Track({properties:product});ecommerce("purchaseitem",track,[track.quantity(),track.price(),orderId])})};function ecommerce(event,track,arr){push.apply(null,["_fxm.ecommerce."+event,track.id()||track.sku(),track.name(),track.category()].concat(arr||[]))}});require.register("segmentio-analytics.js-integrations/lib/frontleaf.js",function(exports,require,module){var callback=require("callback");var integration=require("integration");var is=require("is");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(Frontleaf)};var Frontleaf=exports.Integration=integration("Frontleaf").assumesPageview().readyOnInitialize().global("_fl").global("_flBaseUrl").option("baseUrl","https://api.frontleaf.com").option("token","").option("stream","");Frontleaf.prototype.initialize=function(page){window._fl=window._fl||[];window._flBaseUrl=window._flBaseUrl||this.options.baseUrl;this._push("setApiToken",this.options.token);this._push("setStream",this.options.stream);this.load()};Frontleaf.prototype.loaded=function(){return is.array(window._fl)&&window._fl.ready===true};Frontleaf.prototype.load=function(fn){if(document.getElementById("_fl"))return callback.async(fn);var script=load(window._flBaseUrl+"/lib/tracker.js",fn);script.id="_fl"};Frontleaf.prototype.identify=function(identify){var userId=identify.userId();if(userId){this._push("setUser",{id:userId,name:identify.name()||identify.username(),data:clean(identify.traits())})}};Frontleaf.prototype.group=function(group){var groupId=group.groupId();if(groupId){this._push("setAccount",{id:groupId,name:group.proxy("traits.name"),data:clean(group.traits())})}};Frontleaf.prototype.track=function(track){var event=track.event();if(event){this._push("event",event,clean(track.properties()))}};Frontleaf.prototype._push=function(command){var args=[].slice.call(arguments,1);window._fl.push(function(t){t[command].apply(command,args)})};function clean(obj){var ret={};var excludeKeys=["id","name","firstName","lastName"];var len=excludeKeys.length;for(var i=0;i<len;i++){clear(obj,excludeKeys[i])}obj=flatten(obj);for(var key in obj){var val=obj[key];if(null==val){continue}if(is.array(val)){ret[key]=val.toString();continue}ret[key]=val}return ret}function clear(obj,key){if(obj.hasOwnProperty(key)){delete obj[key]}}function flatten(source){var output={};function step(object,prev){for(var key in object){var value=object[key];var newKey=prev?prev+" "+key:key;if(!is.array(value)&&is.object(value)){return step(value,newKey)}output[newKey]=value}}step(source);return output}});require.register("segmentio-analytics.js-integrations/lib/gauges.js",function(exports,require,module){var callback=require("callback");var integration=require("integration");var load=require("load-script");var push=require("global-queue")("_gauges");module.exports=exports=function(analytics){analytics.addIntegration(Gauges)};var Gauges=exports.Integration=integration("Gauges").assumesPageview().readyOnInitialize().global("_gauges").option("siteId","");Gauges.prototype.initialize=function(page){window._gauges=window._gauges||[];this.load()};Gauges.prototype.loaded=function(){return!!(window._gauges&&window._gauges.push!==Array.prototype.push)};Gauges.prototype.load=function(callback){var id=this.options.siteId;var script=load("//secure.gaug.es/track.js",callback);script.id="gauges-tracker";script.setAttribute("data-site-id",id)};Gauges.prototype.page=function(page){push("track")}});require.register("segmentio-analytics.js-integrations/lib/get-satisfaction.js",function(exports,require,module){var integration=require("integration");var load=require("load-script");var onBody=require("on-body");module.exports=exports=function(analytics){analytics.addIntegration(GetSatisfaction)};var GetSatisfaction=exports.Integration=integration("Get Satisfaction").assumesPageview().readyOnLoad().global("GSFN").option("widgetId","");GetSatisfaction.prototype.initialize=function(page){var widget=this.options.widgetId;var div=document.createElement("div");var id=div.id="getsat-widget-"+widget;onBody(function(body){body.appendChild(div)});this.load(function(){window.GSFN.loadWidget(widget,{containerId:id})})};GetSatisfaction.prototype.loaded=function(){return!!window.GSFN};GetSatisfaction.prototype.load=function(callback){load("https://loader.engage.gsfn.us/loader.js",callback)}});require.register("segmentio-analytics.js-integrations/lib/google-analytics.js",function(exports,require,module){var callback=require("callback");var canonical=require("canonical");var each=require("each");var integration=require("integration");var is=require("is");var load=require("load-script");var push=require("global-queue")("_gaq");var Track=require("facade").Track;var length=require("object").length;var keys=require("object").keys;var dot=require("obj-case");var type=require("type");var url=require("url");var group;var user;module.exports=exports=function(analytics){analytics.addIntegration(GA);group=analytics.group();user=analytics.user()};var GA=exports.Integration=integration("Google Analytics").readyOnLoad().global("ga").global("gaplugins").global("_gaq").global("GoogleAnalyticsObject").option("anonymizeIp",false).option("classic",false).option("domain","none").option("doubleClick",false).option("enhancedLinkAttribution",false).option("ignoredReferrers",null).option("includeSearch",false).option("siteSpeedSampleRate",null).option("trackingId","").option("trackNamedPages",true).option("trackCategorizedPages",true).option("sendUserId",false).option("metrics",{}).option("dimensions",{});GA.on("construct",function(integration){if(!integration.options.classic)return;integration.initialize=integration.initializeClassic;integration.load=integration.loadClassic;integration.loaded=integration.loadedClassic;integration.page=integration.pageClassic;integration.track=integration.trackClassic;integration.completedOrder=integration.completedOrderClassic});GA.prototype.initialize=function(){var opts=this.options;var gMetrics=metrics(group.traits(),opts);var uMetrics=metrics(user.traits(),opts);var custom;window.GoogleAnalyticsObject="ga";window.ga=window.ga||function(){window.ga.q=window.ga.q||[];window.ga.q.push(arguments)};window.ga.l=(new Date).getTime();window.ga("create",opts.trackingId,{cookieDomain:opts.domain||GA.prototype.defaults.domain,siteSpeedSampleRate:opts.siteSpeedSampleRate,allowLinker:true});if(opts.doubleClick){window.ga("require","displayfeatures")}if(opts.sendUserId&&user.id()){window.ga("set","&uid",user.id())}if(opts.anonymizeIp)window.ga("set","anonymizeIp",true);if(length(gMetrics))window.ga("set",gMetrics);if(length(uMetrics))window.ga("set",uMetrics);this.load()};GA.prototype.loaded=function(){return!!window.gaplugins};GA.prototype.load=function(callback){load("//www.google-analytics.com/analytics.js",callback)};GA.prototype.page=function(page){var category=page.category();var props=page.properties();var name=page.fullName();var pageview={};var track;this._category=category;var hit=metrics(page.properties(),this.options);hit.page=path(props,this.options);hit.title=name||props.title;hit.location=props.url;window.ga("send","pageview",hit);if(category&&this.options.trackCategorizedPages){track=page.track(category);this.track(track,{noninteraction:true})}if(name&&this.options.trackNamedPages){track=page.track(name);this.track(track,{noninteraction:true})}};GA.prototype.track=function(track,options){var opts=options||track.options(this.name);var props=track.properties();var event=metrics(props,this.options);event.eventAction=track.event();event.eventCategory=this._category||props.category||"All";event.eventLabel=props.label;event.eventValue=formatValue(props.value||track.revenue());event.nonInteraction=props.noninteraction||opts.noninteraction;window.ga("send","event",event)};GA.prototype.completedOrder=function(track){var orderId=track.orderId();var products=track.products();var props=track.properties();if(!orderId)return;if(!this.ecommerce){window.ga("require","ecommerce","ecommerce.js");this.ecommerce=true}window.ga("ecommerce:addTransaction",{affiliation:props.affiliation,shipping:track.shipping(),revenue:track.total(),tax:track.tax(),id:orderId});each(products,function(product){var track=new Track({properties:product});window.ga("ecommerce:addItem",{category:track.category(),quantity:track.quantity(),price:track.price(),name:track.name(),sku:track.sku(),id:orderId})});window.ga("ecommerce:send")};GA.prototype.initializeClassic=function(){var opts=this.options;var anonymize=opts.anonymizeIp;var db=opts.doubleClick;var domain=opts.domain;var enhanced=opts.enhancedLinkAttribution;var ignore=opts.ignoredReferrers;var sample=opts.siteSpeedSampleRate;window._gaq=window._gaq||[];push("_setAccount",opts.trackingId);push("_setAllowLinker",true);if(anonymize)push("_gat._anonymizeIp");if(domain)push("_setDomainName",domain);if(sample)push("_setSiteSpeedSampleRate",sample);if(enhanced){var protocol="https:"===document.location.protocol?"https:":"http:";var pluginUrl=protocol+"//www.google-analytics.com/plugins/ga/inpage_linkid.js";push("_require","inpage_linkid",pluginUrl)}if(ignore){if(!is.array(ignore))ignore=[ignore];each(ignore,function(domain){push("_addIgnoredRef",domain)})}this.load()};GA.prototype.loadedClassic=function(){return!!(window._gaq&&window._gaq.push!==Array.prototype.push)};GA.prototype.loadClassic=function(callback){if(this.options.doubleClick){load("//stats.g.doubleclick.net/dc.js",callback)}else{load({http:"http://www.google-analytics.com/ga.js",https:"https://ssl.google-analytics.com/ga.js"},callback)}};GA.prototype.pageClassic=function(page){var opts=page.options(this.name);var category=page.category();var props=page.properties();var name=page.fullName();var track;push("_trackPageview",path(props,this.options));if(category&&this.options.trackCategorizedPages){track=page.track(category);this.track(track,{noninteraction:true})}if(name&&this.options.trackNamedPages){track=page.track(name);this.track(track,{noninteraction:true})}};GA.prototype.trackClassic=function(track,options){var opts=options||track.options(this.name);var props=track.properties();var revenue=track.revenue();var event=track.event();var category=this._category||props.category||"All";var label=props.label;var value=formatValue(revenue||props.value);var noninteraction=props.noninteraction||opts.noninteraction;push("_trackEvent",category,event,label,value,noninteraction)};GA.prototype.completedOrderClassic=function(track){var orderId=track.orderId();var products=track.products()||[];var props=track.properties();if(!orderId)return;push("_addTrans",orderId,props.affiliation,track.total(),track.tax(),track.shipping(),track.city(),track.state(),track.country());each(products,function(product){var track=new Track({properties:product});push("_addItem",orderId,track.sku(),track.name(),track.category(),track.price(),track.quantity())});push("_trackTrans")};function path(properties,options){if(!properties)return;var str=properties.path;if(options.includeSearch&&properties.search)str+=properties.search;return str}function formatValue(value){if(!value||value<0)return 0;return Math.round(value)}function metrics(obj,data){var dimensions=data.dimensions;var metrics=data.metrics;var names=keys(metrics).concat(keys(dimensions));var ret={};for(var i=0;i<names.length;++i){var name=metrics[names[i]]||dimensions[names[i]];var value=dot(obj,name);if(null==value)continue;ret[names[i]]=value}return ret}});require.register("segmentio-analytics.js-integrations/lib/google-tag-manager.js",function(exports,require,module){var push=require("global-queue")("dataLayer",{wrap:false});var integration=require("integration");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(GTM)};var GTM=exports.Integration=integration("Google Tag Manager").assumesPageview().readyOnLoad().global("dataLayer").global("google_tag_manager").option("containerId","").option("trackNamedPages",true).option("trackCategorizedPages",true);GTM.prototype.initialize=function(){this.load()};GTM.prototype.loaded=function(){return!!(window.dataLayer&&[].push!=window.dataLayer.push)};GTM.prototype.load=function(fn){var id=this.options.containerId;push({"gtm.start":+new Date,event:"gtm.js"});load("//www.googletagmanager.com/gtm.js?id="+id+"&l=dataLayer",fn)};GTM.prototype.page=function(page){var category=page.category();var props=page.properties();var name=page.fullName();var opts=this.options;var track;if(opts.trackAllPages){this.track(page.track())}if(category&&opts.trackCategorizedPages){this.track(page.track(category))}if(name&&opts.trackNamedPages){this.track(page.track(name))}};GTM.prototype.track=function(track){var props=track.properties();props.event=track.event();push(props)}});require.register("segmentio-analytics.js-integrations/lib/gosquared.js",function(exports,require,module){var Identify=require("facade").Identify;var Track=require("facade").Track;var callback=require("callback");var integration=require("integration");var load=require("load-script");var onBody=require("on-body");var each=require("each");var user;module.exports=exports=function(analytics){analytics.addIntegration(GoSquared);user=analytics.user()};var GoSquared=exports.Integration=integration("GoSquared").assumesPageview().readyOnLoad().global("_gs").option("siteToken","").option("anonymizeIP",false).option("cookieDomain",null).option("useCookies",true).option("trackHash",false).option("trackLocal",false).option("trackParams",true);GoSquared.prototype.initialize=function(page){var self=this;var options=this.options;push(options.siteToken);each(options,function(name,value){if("siteToken"==name)return;if(null==value)return;push("set",name,value)});self.identify(new Identify({traits:user.traits(),userId:user.id()}));self.load()};GoSquared.prototype.loaded=function(){return!!(window._gs&&window._gs.v)};GoSquared.prototype.load=function(callback){load("//d1l6p2sc9645hc.cloudfront.net/tracker.js",callback)};GoSquared.prototype.page=function(page){var props=page.properties();var name=page.fullName();push("track",props.path,name||props.title)};GoSquared.prototype.identify=function(identify){var traits=identify.traits({userId:"userID"});var username=identify.username();var email=identify.email();var id=identify.userId();if(id)push("set","visitorID",id);var name=email||username||id;if(name)push("set","visitorName",name);push("set","visitor",traits)};GoSquared.prototype.track=function(track){push("event",track.event(),track.properties())};GoSquared.prototype.completedOrder=function(track){var products=track.products();var items=[];each(products,function(product){var track=new Track({properties:product});items.push({category:track.category(),quantity:track.quantity(),price:track.price(),name:track.name()})});push("transaction",track.orderId(),{revenue:track.total(),track:true},items)};function push(){var _gs=window._gs=window._gs||function(){(_gs.q=_gs.q||[]).push(arguments)};_gs.apply(null,arguments)}});require.register("segmentio-analytics.js-integrations/lib/heap.js",function(exports,require,module){var alias=require("alias");var callback=require("callback");var integration=require("integration");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(Heap)};var Heap=exports.Integration=integration("Heap").assumesPageview().readyOnInitialize().global("heap").global("_heapid").option("apiKey","");Heap.prototype.initialize=function(page){window.heap=window.heap||[];window.heap.load=function(a){window._heapid=a;var d=function(a){return function(){window.heap.push([a].concat(Array.prototype.slice.call(arguments,0)))}},e=["identify","track"];for(var f=0;f<e.length;f++)window.heap[e[f]]=d(e[f])};window.heap.load(this.options.apiKey);this.load()};Heap.prototype.loaded=function(){return window.heap&&window.heap.appid};Heap.prototype.load=function(callback){load("//d36lvucg9kzous.cloudfront.net",callback)};Heap.prototype.identify=function(identify){var traits=identify.traits();var username=identify.username();var id=identify.userId();var handle=username||id;if(handle)traits.handle=handle;delete traits.username;window.heap.identify(traits)};Heap.prototype.track=function(track){window.heap.track(track.event(),track.properties())}});require.register("segmentio-analytics.js-integrations/lib/hellobar.js",function(exports,require,module){var integration=require("integration");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(Hellobar)};var Hellobar=exports.Integration=integration("Hello Bar").assumesPageview().readyOnInitialize().global("_hbq").option("apiKey","");Hellobar.prototype.initialize=function(page){window._hbq=window._hbq||[];this.load()};Hellobar.prototype.load=function(callback){var url="//s3.amazonaws.com/scripts.hellobar.com/"+this.options.apiKey+".js";load(url,callback)};Hellobar.prototype.loaded=function(){return!!(window._hbq&&window._hbq.push!==Array.prototype.push)}});require.register("segmentio-analytics.js-integrations/lib/hittail.js",function(exports,require,module){var integration=require("integration");var is=require("is");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(HitTail)};var HitTail=exports.Integration=integration("HitTail").assumesPageview().readyOnLoad().global("htk").option("siteId","");HitTail.prototype.initialize=function(page){this.load()};HitTail.prototype.loaded=function(){return is.fn(window.htk)};HitTail.prototype.load=function(callback){var id=this.options.siteId;load("//"+id+".hittail.com/mlt.js",callback)}});require.register("segmentio-analytics.js-integrations/lib/hubspot.js",function(exports,require,module){var callback=require("callback");var convert=require("convert-dates");var integration=require("integration");var load=require("load-script");var push=require("global-queue")("_hsq");module.exports=exports=function(analytics){analytics.addIntegration(HubSpot)};var HubSpot=exports.Integration=integration("HubSpot").assumesPageview().readyOnInitialize().global("_hsq").option("portalId",null);HubSpot.prototype.initialize=function(page){window._hsq=[];this.load()};HubSpot.prototype.loaded=function(){return!!(window._hsq&&window._hsq.push!==Array.prototype.push)};HubSpot.prototype.load=function(fn){if(document.getElementById("hs-analytics"))return callback.async(fn);var id=this.options.portalId;var cache=Math.ceil(new Date/3e5)*3e5;var url="https://js.hs-analytics.net/analytics/"+cache+"/"+id+".js";var script=load(url,fn);script.id="hs-analytics"};HubSpot.prototype.page=function(page){push("_trackPageview")};HubSpot.prototype.identify=function(identify){if(!identify.email())return;var traits=identify.traits();traits=convertDates(traits);push("identify",traits)};HubSpot.prototype.track=function(track){var props=track.properties();props=convertDates(props);push("trackEvent",track.event(),props)};function convertDates(properties){return convert(properties,function(date){return date.getTime()})}});require.register("segmentio-analytics.js-integrations/lib/improvely.js",function(exports,require,module){var alias=require("alias");var callback=require("callback");var integration=require("integration");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(Improvely)};var Improvely=exports.Integration=integration("Improvely").assumesPageview().readyOnInitialize().global("_improvely").global("improvely").option("domain","").option("projectId",null);Improvely.prototype.initialize=function(page){window._improvely=[];window.improvely={init:function(e,t){window._improvely.push(["init",e,t])},goal:function(e){window._improvely.push(["goal",e])},label:function(e){window._improvely.push(["label",e])}};var domain=this.options.domain;var id=this.options.projectId;window.improvely.init(domain,id);this.load()};Improvely.prototype.loaded=function(){return!!(window.improvely&&window.improvely.identify)};Improvely.prototype.load=function(callback){var domain=this.options.domain;load("//"+domain+".iljmp.com/improvely.js",callback)};Improvely.prototype.identify=function(identify){var id=identify.userId();if(id)window.improvely.label(id)};Improvely.prototype.track=function(track){var props=track.properties({revenue:"amount"});props.type=track.event();window.improvely.goal(props)}});require.register("segmentio-analytics.js-integrations/lib/inspectlet.js",function(exports,require,module){var integration=require("integration");var alias=require("alias");var clone=require("clone");var load=require("load-script");var push=require("global-queue")("__insp");module.exports=exports=function(analytics){analytics.addIntegration(Inspectlet)};var Inspectlet=exports.Integration=integration("Inspectlet").assumesPageview().readyOnLoad().global("__insp").global("__insp_").option("wid","");Inspectlet.prototype.initialize=function(page){push("wid",this.options.wid);this.load()};Inspectlet.prototype.loaded=function(){return!!window.__insp_};Inspectlet.prototype.load=function(callback){load("//www.inspectlet.com/inspectlet.js",callback)};Inspectlet.prototype.identify=function(identify){var traits=identify.traits({id:"userid"});push("tagSession",traits)};Inspectlet.prototype.track=function(track){push("tagSession",track.event())}});require.register("segmentio-analytics.js-integrations/lib/intercom.js",function(exports,require,module){var alias=require("alias");var convertDates=require("convert-dates");var integration=require("integration");var each=require("each");var is=require("is");var isEmail=require("is-email");var load=require("load-script");var defaults=require("defaults");var empty=require("is-empty");var group;module.exports=exports=function(analytics){analytics.addIntegration(Intercom);group=analytics.group()};var Intercom=exports.Integration=integration("Intercom").assumesPageview().readyOnLoad().global("Intercom").option("activator","#IntercomDefaultWidget").option("appId","").option("inbox",false);Intercom.prototype.initialize=function(page){this.load()};Intercom.prototype.loaded=function(){return is.fn(window.Intercom)};Intercom.prototype.load=function(callback){load("https://static.intercomcdn.com/intercom.v1.js",callback)};Intercom.prototype.page=function(page){window.Intercom("update")};Intercom.prototype.identify=function(identify){var traits=identify.traits({userId:"user_id"});var activator=this.options.activator;var opts=identify.options(this.name);var companyCreated=identify.companyCreated();var created=identify.created();var email=identify.email();var name=identify.name();var id=identify.userId();if(!id&&!traits.email)return;traits.app_id=this.options.appId;if(!empty(group.traits())){traits.company=traits.company||{};defaults(traits.company,group.traits())}if(name)traits.name=name;if(companyCreated)traits.company.created=companyCreated;if(created)traits.created=created;traits=convertDates(traits,formatDate);traits=alias(traits,{created:"created_at"});if(traits.company){traits.company=alias(traits.company,{created:"created_at"})}if(opts.increments)traits.increments=opts.increments;if(opts.userHash)traits.user_hash=opts.userHash;if(opts.user_hash)traits.user_hash=opts.user_hash;if("#IntercomDefaultWidget"!=activator){traits.widget={activator:activator}}var method=this._id!==id?"boot":"update";this._id=id;window.Intercom(method,traits)};Intercom.prototype.group=function(group){var props=group.properties();var id=group.groupId();if(id)props.id=id;window.Intercom("update",{company:props})};Intercom.prototype.track=function(track){window.Intercom("trackEvent",track.event(),track.properties())};function formatDate(date){return Math.floor(date/1e3)}});require.register("segmentio-analytics.js-integrations/lib/keen-io.js",function(exports,require,module){var callback=require("callback");var integration=require("integration");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(Keen)};var Keen=exports.Integration=integration("Keen IO").readyOnInitialize().global("Keen").option("projectId","").option("readKey","").option("writeKey","").option("trackNamedPages",true).option("trackAllPages",false).option("trackCategorizedPages",true);Keen.prototype.initialize=function(){var options=this.options;window.Keen=window.Keen||{configure:function(e){this._cf=e},addEvent:function(e,t,n,i){this._eq=this._eq||[],this._eq.push([e,t,n,i])},setGlobalProperties:function(e){this._gp=e},onChartsReady:function(e){this._ocrq=this._ocrq||[],this._ocrq.push(e)}};window.Keen.configure({projectId:options.projectId,writeKey:options.writeKey,readKey:options.readKey});this.load()};Keen.prototype.loaded=function(){return!!(window.Keen&&window.Keen.Base64)};Keen.prototype.load=function(callback){load("//dc8na2hxrj29i.cloudfront.net/code/keen-2.1.0-min.js",callback)};Keen.prototype.page=function(page){var category=page.category();var props=page.properties();var name=page.fullName();var opts=this.options;if(opts.trackAllPages){this.track(page.track())}if(name&&opts.trackNamedPages){this.track(page.track(name))}if(category&&opts.trackCategorizedPages){this.track(page.track(category))}};Keen.prototype.identify=function(identify){var traits=identify.traits();var id=identify.userId();var user={};if(id)user.userId=id;if(traits)user.traits=traits;window.Keen.setGlobalProperties(function(){return{user:user}})};Keen.prototype.track=function(track){window.Keen.addEvent(track.event(),track.properties())}});require.register("segmentio-analytics.js-integrations/lib/kenshoo.js",function(exports,require,module){var integration=require("integration");var load=require("load-script");var is=require("is");module.exports=exports=function(analytics){analytics.addIntegration(Kenshoo)};var Kenshoo=exports.Integration=integration("Kenshoo").readyOnLoad().global("k_trackevent").option("cid","").option("subdomain","").option("trackNamedPages",true).option("trackCategorizedPages",true);Kenshoo.prototype.initialize=function(page){this.load()};Kenshoo.prototype.loaded=function(){return is.fn(window.k_trackevent)};Kenshoo.prototype.load=function(callback){var url="//"+this.options.subdomain+".xg4ken.com/media/getpx.php?cid="+this.options.cid;load(url,callback)};Kenshoo.prototype.completedOrder=function(track){this._track(track,{val:track.total()})};Kenshoo.prototype.page=function(page){var category=page.category();var name=page.name();var fullName=page.fullName();var isNamed=name&&this.options.trackNamedPages;var isCategorized=category&&this.options.trackCategorizedPages;var track;if(name&&!this.options.trackNamedPages){return}if(category&&!this.options.trackCategorizedPages){return}if(isNamed&&isCategorized){track=page.track(fullName)}else if(isNamed){track=page.track(name)}else if(isCategorized){track=page.track(category)}else{track=page.track()}this._track(track)};Kenshoo.prototype.track=function(track){this._track(track)};Kenshoo.prototype._track=function(track,options){options=options||{val:track.revenue()};var params=["id="+this.options.cid,"type="+track.event(),"val="+(options.val||"0.0"),"orderId="+(track.orderId()||""),"promoCode="+(track.coupon()||""),"valueCurrency="+(track.currency()||""),"GCID=","kw=","product="];window.k_trackevent(params,this.options.subdomain)}});require.register("segmentio-analytics.js-integrations/lib/kissmetrics.js",function(exports,require,module){var alias=require("alias");var Batch=require("batch");var callback=require("callback");var integration=require("integration");var is=require("is");var load=require("load-script");var push=require("global-queue")("_kmq");var Track=require("facade").Track;var each=require("each");module.exports=exports=function(analytics){analytics.addIntegration(KISSmetrics)};var KISSmetrics=exports.Integration=integration("KISSmetrics").assumesPageview().readyOnInitialize().global("_kmq").global("KM").global("_kmil").option("apiKey","").option("trackNamedPages",true).option("trackCategorizedPages",true);KISSmetrics.prototype.initialize=function(page){window._kmq=[];this.load()};KISSmetrics.prototype.loaded=function(){return is.object(window.KM)};KISSmetrics.prototype.load=function(callback){var key=this.options.apiKey;var useless="//i.kissmetrics.com/i.js";var library="//doug1izaerwt3.cloudfront.net/"+key+".1.js";(new Batch).push(function(done){load(useless,done)}).push(function(done){load(library,done)}).end(callback)};KISSmetrics.prototype.page=function(page){var category=page.category();var name=page.fullName();var opts=this.options;if(name&&opts.trackNamedPages){this.track(page.track(name))}if(category&&opts.trackCategorizedPages){this.track(page.track(category))}};KISSmetrics.prototype.identify=function(identify){var traits=identify.traits();var id=identify.userId();if(id)push("identify",id);if(traits)push("set",traits)};KISSmetrics.prototype.track=function(track){var props=track.properties({revenue:"Billing Amount"});push("record",track.event(),props)};KISSmetrics.prototype.alias=function(alias){push("alias",alias.to(),alias.from())};KISSmetrics.prototype.viewedProduct=function(track){push("record","Product Viewed",toProduct(track))};KISSmetrics.prototype.addedProduct=function(track){push("record","Product Added",toProduct(track))};KISSmetrics.prototype.completedOrder=function(track){var orderId=track.orderId();var products=track.products();push("record","Purchased",{"Order ID":track.orderId(),"Order Total":track.total()});window._kmq.push(function(){var km=window.KM;each(products,function(product,i){var track=new Track({properties:product});var item=toProduct(track);item["Order ID"]=orderId;item._t=km.ts()+i;item._d=1;km.set(item)})})};function toProduct(track){return{Quantity:track.quantity(),Price:track.price(),Name:track.name(),SKU:track.sku()}}});require.register("segmentio-analytics.js-integrations/lib/klaviyo.js",function(exports,require,module){var alias=require("alias");var callback=require("callback");var integration=require("integration");var load=require("load-script");var push=require("global-queue")("_learnq");module.exports=exports=function(analytics){analytics.addIntegration(Klaviyo)};var Klaviyo=exports.Integration=integration("Klaviyo").assumesPageview().readyOnInitialize().global("_learnq").option("apiKey","");Klaviyo.prototype.initialize=function(page){push("account",this.options.apiKey);this.load()};Klaviyo.prototype.loaded=function(){return!!(window._learnq&&window._learnq.push!==Array.prototype.push)};Klaviyo.prototype.load=function(callback){load("//a.klaviyo.com/media/js/learnmarklet.js",callback)};var aliases={id:"$id",email:"$email",firstName:"$first_name",lastName:"$last_name",phone:"$phone_number",title:"$title"};Klaviyo.prototype.identify=function(identify){var traits=identify.traits(aliases);if(!traits.$id&&!traits.$email)return;push("identify",traits)};Klaviyo.prototype.group=function(group){var props=group.properties();if(!props.name)return;push("identify",{$organization:props.name}) };Klaviyo.prototype.track=function(track){push("track",track.event(),track.properties({revenue:"$value"}))}});require.register("segmentio-analytics.js-integrations/lib/leadlander.js",function(exports,require,module){var integration=require("integration");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(LeadLander)};var LeadLander=exports.Integration=integration("LeadLander").assumesPageview().readyOnLoad().global("llactid").global("trackalyzer").option("accountId",null);LeadLander.prototype.initialize=function(page){window.llactid=this.options.accountId;this.load()};LeadLander.prototype.loaded=function(){return!!window.trackalyzer};LeadLander.prototype.load=function(callback){load("http://t6.trackalyzer.com/trackalyze-nodoc.js",callback)}});require.register("segmentio-analytics.js-integrations/lib/livechat.js",function(exports,require,module){var each=require("each");var integration=require("integration");var load=require("load-script");var clone=require("clone");var when=require("when");module.exports=exports=function(analytics){analytics.addIntegration(LiveChat)};var LiveChat=exports.Integration=integration("LiveChat").assumesPageview().readyOnLoad().global("__lc").global("__lc_inited").global("LC_API").global("LC_Invite").option("group",0).option("license","");LiveChat.prototype.initialize=function(page){window.__lc=clone(this.options);this.load()};LiveChat.prototype.loaded=function(){return!!(window.LC_API&&window.LC_Invite)};LiveChat.prototype.load=function(callback){var self=this;load("//cdn.livechatinc.com/tracking.js",function(err){if(err)return callback(err);when(function(){return self.loaded()},callback)})};LiveChat.prototype.identify=function(identify){var traits=identify.traits({userId:"User ID"});window.LC_API.set_custom_variables(convert(traits))};function convert(traits){var arr=[];each(traits,function(key,value){arr.push({name:key,value:value})});return arr}});require.register("segmentio-analytics.js-integrations/lib/lucky-orange.js",function(exports,require,module){var Identify=require("facade").Identify;var integration=require("integration");var load=require("load-script");var user;module.exports=exports=function(analytics){analytics.addIntegration(LuckyOrange);user=analytics.user()};var LuckyOrange=exports.Integration=integration("Lucky Orange").assumesPageview().readyOnLoad().global("_loq").global("__wtw_watcher_added").global("__wtw_lucky_site_id").global("__wtw_lucky_is_segment_io").global("__wtw_custom_user_data").option("siteId",null);LuckyOrange.prototype.initialize=function(page){window._loq||(window._loq=[]);window.__wtw_lucky_site_id=this.options.siteId;this.identify(new Identify({traits:user.traits(),userId:user.id()}));this.load()};LuckyOrange.prototype.loaded=function(){return!!window.__wtw_watcher_added};LuckyOrange.prototype.load=function(callback){var cache=Math.floor((new Date).getTime()/6e4);load({http:"http://www.luckyorange.com/w.js?"+cache,https:"https://ssl.luckyorange.com/w.js?"+cache},callback)};LuckyOrange.prototype.identify=function(identify){var traits=window.__wtw_custom_user_data=identify.traits();var email=identify.email();var name=identify.name();if(name)traits.name=name;if(email)traits.email=email}});require.register("segmentio-analytics.js-integrations/lib/lytics.js",function(exports,require,module){var alias=require("alias");var callback=require("callback");var integration=require("integration");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(Lytics)};var Lytics=exports.Integration=integration("Lytics").readyOnInitialize().global("jstag").option("cid","").option("cookie","seerid").option("delay",2e3).option("sessionTimeout",1800).option("url","//c.lytics.io");var aliases={sessionTimeout:"sessecs"};Lytics.prototype.initialize=function(page){var options=alias(this.options,aliases);window.jstag=function(){var t={_q:[],_c:options,ts:(new Date).getTime()};t.send=function(){this._q.push(["ready","send",Array.prototype.slice.call(arguments)]);return this};return t}();this.load()};Lytics.prototype.loaded=function(){return!!(window.jstag&&window.jstag.bind)};Lytics.prototype.load=function(callback){load("//c.lytics.io/static/io.min.js",callback)};Lytics.prototype.page=function(page){window.jstag.send(page.properties())};Lytics.prototype.identify=function(identify){var traits=identify.traits({userId:"_uid"});window.jstag.send(traits)};Lytics.prototype.track=function(track){var props=track.properties();props._e=track.event();window.jstag.send(props)}});require.register("segmentio-analytics.js-integrations/lib/mixpanel.js",function(exports,require,module){var alias=require("alias");var clone=require("clone");var dates=require("convert-dates");var integration=require("integration");var iso=require("to-iso-string");var load=require("load-script");var indexof=require("indexof");var del=require("obj-case").del;module.exports=exports=function(analytics){analytics.addIntegration(Mixpanel)};var Mixpanel=exports.Integration=integration("Mixpanel").readyOnLoad().global("mixpanel").option("increments",[]).option("cookieName","").option("nameTag",true).option("pageview",false).option("people",false).option("token","").option("trackAllPages",false).option("trackNamedPages",true).option("trackCategorizedPages",true);var optionsAliases={cookieName:"cookie_name"};Mixpanel.prototype.initialize=function(){(function(c,a){window.mixpanel=a;var b,d,h,e;a._i=[];a.init=function(b,c,f){function d(a,b){var c=b.split(".");2==c.length&&(a=a[c[0]],b=c[1]);a[b]=function(){a.push([b].concat(Array.prototype.slice.call(arguments,0)))}}var g=a;"undefined"!==typeof f?g=a[f]=[]:f="mixpanel";g.people=g.people||[];h=["disable","track","track_pageview","track_links","track_forms","register","register_once","unregister","identify","alias","name_tag","set_config","people.set","people.increment","people.track_charge","people.append"];for(e=0;e<h.length;e++)d(g,h[e]);a._i.push([b,c,f])};a.__SV=1.2})(document,window.mixpanel||[]);this.options.increments=lowercase(this.options.increments);var options=alias(this.options,optionsAliases);window.mixpanel.init(options.token,options);this.load()};Mixpanel.prototype.loaded=function(){return!!(window.mixpanel&&window.mixpanel.config)};Mixpanel.prototype.load=function(callback){load("//cdn.mxpnl.com/libs/mixpanel-2.2.min.js",callback)};Mixpanel.prototype.page=function(page){var category=page.category();var name=page.fullName();var opts=this.options;if(opts.trackAllPages){this.track(page.track())}if(category&&opts.trackCategorizedPages){this.track(page.track(category))}if(name&&opts.trackNamedPages){this.track(page.track(name))}};var traitAliases={created:"$created",email:"$email",firstName:"$first_name",lastName:"$last_name",lastSeen:"$last_seen",name:"$name",username:"$username",phone:"$phone"};Mixpanel.prototype.identify=function(identify){var username=identify.username();var email=identify.email();var id=identify.userId();if(id)window.mixpanel.identify(id);var nametag=email||username||id;if(nametag)window.mixpanel.name_tag(nametag);var traits=identify.traits(traitAliases);if(traits.$created)del(traits,"createdAt");window.mixpanel.register(traits);if(this.options.people)window.mixpanel.people.set(traits)};Mixpanel.prototype.track=function(track){var increments=this.options.increments;var increment=track.event().toLowerCase();var people=this.options.people;var props=track.properties();var revenue=track.revenue();if(people&&~indexof(increments,increment)){window.mixpanel.people.increment(track.event());window.mixpanel.people.set("Last "+track.event(),new Date)}props=dates(props,iso);window.mixpanel.track(track.event(),props);if(revenue&&people){window.mixpanel.people.track_charge(revenue)}};Mixpanel.prototype.alias=function(alias){var mp=window.mixpanel;var to=alias.to();if(mp.get_distinct_id&&mp.get_distinct_id()===to)return;if(mp.get_property&&mp.get_property("$people_distinct_id")===to)return;mp.alias(to,alias.from())};function lowercase(arr){var ret=new Array(arr.length);for(var i=0;i<arr.length;++i){ret[i]=String(arr[i]).toLowerCase()}return ret}});require.register("segmentio-analytics.js-integrations/lib/mojn.js",function(exports,require,module){var integration=require("integration");var load=require("load-script");var is=require("is");module.exports=exports=function(analytics){analytics.addIntegration(Mojn)};var Mojn=exports.Integration=integration("Mojn").option("customerCode","").global("_mojnTrack").readyOnInitialize();Mojn.prototype.initialize=function(){window._mojnTrack=window._mojnTrack||[];window._mojnTrack.push({cid:this.options.customerCode});this.load()};Mojn.prototype.load=function(fn){load("https://track.idtargeting.com/"+this.options.customerCode+"/track.js",fn)};Mojn.prototype.loaded=function(){return is.object(window._mojnTrack)};Mojn.prototype.identify=function(identify){var email=identify.email();if(!email)return;var img=new Image;img.src="//matcher.idtargeting.com/analytics.gif?cid="+this.options.customerCode+"&_mjnctid="+email;img.width=1;img.height=1;return img};Mojn.prototype.track=function(track){var properties=track.properties();var revenue=properties.revenue;var currency=properties.currency||"";var conv=currency+revenue;if(!revenue)return;window._mojnTrack.push({conv:conv});return conv}});require.register("segmentio-analytics.js-integrations/lib/mouseflow.js",function(exports,require,module){var push=require("global-queue")("_mfq");var integration=require("integration");var load=require("load-script");var each=require("each");module.exports=exports=function(analytics){analytics.addIntegration(Mouseflow)};var Mouseflow=exports.Integration=integration("Mouseflow").assumesPageview().readyOnLoad().global("mouseflow").global("_mfq").option("apiKey","").option("mouseflowHtmlDelay",0);Mouseflow.prototype.initialize=function(page){this.load()};Mouseflow.prototype.loaded=function(){return!!(window._mfq&&[].push!=window._mfq.push)};Mouseflow.prototype.load=function(fn){var apiKey=this.options.apiKey;window.mouseflowHtmlDelay=this.options.mouseflowHtmlDelay;load("//cdn.mouseflow.com/projects/"+apiKey+".js",fn)};Mouseflow.prototype.page=function(page){if(!window.mouseflow)return;if("function"!=typeof mouseflow.newPageView)return;mouseflow.newPageView()};Mouseflow.prototype.identify=function(identify){set(identify.traits())};Mouseflow.prototype.track=function(track){var props=track.properties();props.event=track.event();set(props)};function set(hash){each(hash,function(k,v){push("setVariable",k,v)})}});require.register("segmentio-analytics.js-integrations/lib/mousestats.js",function(exports,require,module){var each=require("each");var integration=require("integration");var is=require("is");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(MouseStats)};var MouseStats=exports.Integration=integration("MouseStats").assumesPageview().readyOnLoad().global("msaa").option("accountNumber","");MouseStats.prototype.initialize=function(page){this.load()};MouseStats.prototype.loaded=function(){return is.fn(window.msaa)};MouseStats.prototype.load=function(callback){var number=this.options.accountNumber;var path=number.slice(0,1)+"/"+number.slice(1,2)+"/"+number;var cache=Math.floor((new Date).getTime()/6e4);var partial=".mousestats.com/js/"+path+".js?"+cache;var http="http://www2"+partial;var https="https://ssl"+partial;load({http:http,https:https},callback)};MouseStats.prototype.identify=function(identify){each(identify.traits(),function(key,value){window.MouseStatsVisitorPlaybacks.customVariable(key,value)})}});require.register("segmentio-analytics.js-integrations/lib/navilytics.js",function(exports,require,module){var integration=require("integration");var load=require("load-script");var push=require("global-queue")("__nls");module.exports=exports=function(analytics){analytics.addIntegration(Navilytics)};var Navilytics=exports.Integration=integration("Navilytics").assumesPageview().readyOnLoad().global("__nls").option("memberId","").option("projectId","");Navilytics.prototype.initialize=function(page){window.__nls=window.__nls||[];this.load()};Navilytics.prototype.loaded=function(){return!!(window.__nls&&[].push!=window.__nls.push)};Navilytics.prototype.load=function(callback){var mid=this.options.memberId;var pid=this.options.projectId;var url="//www.navilytics.com/nls.js?mid="+mid+"&pid="+pid;load(url,callback)};Navilytics.prototype.track=function(track){push("tagRecording",track.event())}});require.register("segmentio-analytics.js-integrations/lib/olark.js",function(exports,require,module){var callback=require("callback");var integration=require("integration");var https=require("use-https");module.exports=exports=function(analytics){analytics.addIntegration(Olark)};var Olark=exports.Integration=integration("Olark").assumesPageview().readyOnInitialize().global("olark").option("identify",true).option("page",true).option("siteId","").option("track",false);Olark.prototype.initialize=function(page){window.olark||function(c){var f=window,d=document,l=https()?"https:":"http:",z=c.name,r="load";var nt=function(){f[z]=function(){(a.s=a.s||[]).push(arguments)};var a=f[z]._={},q=c.methods.length;while(q--){(function(n){f[z][n]=function(){f[z]("call",n,arguments)}})(c.methods[q])}a.l=c.loader;a.i=nt;a.p={0:+new Date};a.P=function(u){a.p[u]=new Date-a.p[0]};function s(){a.P(r);f[z](r)}f.addEventListener?f.addEventListener(r,s,false):f.attachEvent("on"+r,s);var ld=function(){function p(hd){hd="head";return["<",hd,"></",hd,"><",i," onl"+'oad="var d=',g,";d.getElementsByTagName('head')[0].",j,"(d.",h,"('script')).",k,"='",l,"//",a.l,"'",'"',"></",i,">"].join("")}var i="body",m=d[i];if(!m){return setTimeout(ld,100)}a.P(1);var j="appendChild",h="createElement",k="src",n=d[h]("div"),v=n[j](d[h](z)),b=d[h]("iframe"),g="document",e="domain",o;n.style.display="none";m.insertBefore(n,m.firstChild).id=z;b.frameBorder="0";b.id=z+"-loader";if(/MSIE[ ]+6/.test(navigator.userAgent)){b.src="javascript:false"}b.allowTransparency="true";v[j](b);try{b.contentWindow[g].open()}catch(w){c[e]=d[e];o="javascript:var d="+g+".open();d.domain='"+d.domain+"';";b[k]=o+"void(0);"}try{var t=b.contentWindow[g];t.write(p());t.close()}catch(x){b[k]=o+'d.write("'+p().replace(/"/g,String.fromCharCode(92)+'"')+'");d.close();'}a.P(2)};ld()};nt()}({loader:"static.olark.com/jsclient/loader0.js",name:"olark",methods:["configure","extend","declare","identify"]});window.olark.identify(this.options.siteId);var self=this;box("onExpand",function(){self._open=true});box("onShrink",function(){self._open=false})};Olark.prototype.page=function(page){if(!this.options.page||!this._open)return;var props=page.properties();var name=page.fullName();if(!name&&!props.url)return;var msg=name?name.toLowerCase()+" page":props.url;chat("sendNotificationToOperator",{body:"looking at "+msg})};Olark.prototype.identify=function(identify){if(!this.options.identify)return;var username=identify.username();var traits=identify.traits();var id=identify.userId();var email=identify.email();var phone=identify.phone();var name=identify.name()||identify.firstName();visitor("updateCustomFields",traits);if(email)visitor("updateEmailAddress",{emailAddress:email});if(phone)visitor("updatePhoneNumber",{phoneNumber:phone});if(name)visitor("updateFullName",{fullName:name});var nickname=name||email||username||id;if(name&&email)nickname+=" ("+email+")";if(nickname)chat("updateVisitorNickname",{snippet:nickname})};Olark.prototype.track=function(track){if(!this.options.track||!this._open)return;chat("sendNotificationToOperator",{body:'visitor triggered "'+track.event()+'"'})};function box(action,value){window.olark("api.box."+action,value)}function visitor(action,value){window.olark("api.visitor."+action,value)}function chat(action,value){window.olark("api.chat."+action,value)}});require.register("segmentio-analytics.js-integrations/lib/optimizely.js",function(exports,require,module){var bind=require("bind");var callback=require("callback");var each=require("each");var integration=require("integration");var push=require("global-queue")("optimizely");var tick=require("next-tick");var analytics;module.exports=exports=function(ajs){ajs.addIntegration(Optimizely);analytics=ajs};var Optimizely=exports.Integration=integration("Optimizely").readyOnInitialize().option("variations",true).option("trackNamedPages",true).option("trackCategorizedPages",true);Optimizely.prototype.initialize=function(){if(this.options.variations)tick(this.replay)};Optimizely.prototype.track=function(track){var props=track.properties();if(props.revenue)props.revenue*=100;push("trackEvent",track.event(),props)};Optimizely.prototype.page=function(page){var category=page.category();var name=page.fullName();var opts=this.options;if(category&&opts.trackCategorizedPages){this.track(page.track(category))}if(name&&opts.trackNamedPages){this.track(page.track(name))}};Optimizely.prototype.replay=function(){if(!window.optimizely)return;var data=window.optimizely.data;if(!data)return;var experiments=data.experiments;var map=data.state.variationNamesMap;var traits={};each(map,function(experimentId,variation){var experiment=experiments[experimentId].name;traits["Experiment: "+experiment]=variation});analytics.identify(traits)}});require.register("segmentio-analytics.js-integrations/lib/perfect-audience.js",function(exports,require,module){var integration=require("integration");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(PerfectAudience)};var PerfectAudience=exports.Integration=integration("Perfect Audience").assumesPageview().readyOnLoad().global("_pa").option("siteId","");PerfectAudience.prototype.initialize=function(page){window._pa=window._pa||{};this.load()};PerfectAudience.prototype.loaded=function(){return!!(window._pa&&window._pa.track)};PerfectAudience.prototype.load=function(callback){var id=this.options.siteId;load("//tag.perfectaudience.com/serve/"+id+".js",callback)};PerfectAudience.prototype.track=function(track){window._pa.track(track.event(),track.properties())}});require.register("segmentio-analytics.js-integrations/lib/pingdom.js",function(exports,require,module){var date=require("load-date");var integration=require("integration");var load=require("load-script");var push=require("global-queue")("_prum");module.exports=exports=function(analytics){analytics.addIntegration(Pingdom)};var Pingdom=exports.Integration=integration("Pingdom").assumesPageview().readyOnLoad().global("_prum").option("id","");Pingdom.prototype.initialize=function(page){window._prum=window._prum||[];push("id",this.options.id);push("mark","firstbyte",date.getTime());this.load()};Pingdom.prototype.loaded=function(){return!!(window._prum&&window._prum.push!==Array.prototype.push)};Pingdom.prototype.load=function(callback){load("//rum-static.pingdom.net/prum.min.js",callback)}});require.register("segmentio-analytics.js-integrations/lib/piwik.js",function(exports,require,module){var integration=require("integration");var load=require("load-script");var push=require("global-queue")("_paq");module.exports=exports=function(analytics){analytics.addIntegration(Piwik)};var Piwik=exports.Integration=integration("Piwik").global("_paq").option("url",null).option("siteId","").assumesPageview().readyOnInitialize();Piwik.prototype.initialize=function(){window._paq=window._paq||[];push("setSiteId",this.options.siteId);push("setTrackerUrl",this.options.url+"/piwik.php");push("enableLinkTracking");this.load()};Piwik.prototype.load=function(callback){load(this.options.url+"/piwik.js",callback)};Piwik.prototype.loaded=function(){return!!(window._paq&&window._paq.push!=[].push)};Piwik.prototype.page=function(page){push("trackPageView")}});require.register("segmentio-analytics.js-integrations/lib/preact.js",function(exports,require,module){var alias=require("alias");var callback=require("callback");var convertDates=require("convert-dates");var integration=require("integration");var load=require("load-script");var push=require("global-queue")("_lnq");module.exports=exports=function(analytics){analytics.addIntegration(Preact)};var Preact=exports.Integration=integration("Preact").assumesPageview().readyOnInitialize().global("_lnq").option("projectCode","");Preact.prototype.initialize=function(page){window._lnq=window._lnq||[];push("_setCode",this.options.projectCode);this.load()};Preact.prototype.loaded=function(){return!!(window._lnq&&window._lnq.push!==Array.prototype.push)};Preact.prototype.load=function(callback){load("//d2bbvl6dq48fa6.cloudfront.net/js/ln-2.4.min.js",callback)};Preact.prototype.identify=function(identify){if(!identify.userId())return;var traits=identify.traits({created:"created_at"});traits=convertDates(traits,convertDate);push("_setPersonData",{name:identify.name(),email:identify.email(),uid:identify.userId(),properties:traits})};Preact.prototype.group=function(group){if(!group.groupId())return;push("_setAccount",group.traits())};Preact.prototype.track=function(track){var props=track.properties();var revenue=track.revenue();var event=track.event();var special={name:event};if(revenue){special.revenue=revenue*100;delete props.revenue}if(props.note){special.note=props.note;delete props.note}push("_logEvent",special,props)};function convertDate(date){return Math.floor(date/1e3)}});require.register("segmentio-analytics.js-integrations/lib/qualaroo.js",function(exports,require,module){var callback=require("callback");var integration=require("integration");var load=require("load-script");var push=require("global-queue")("_kiq");var Facade=require("facade");var Identify=Facade.Identify;module.exports=exports=function(analytics){analytics.addIntegration(Qualaroo)};var Qualaroo=exports.Integration=integration("Qualaroo").assumesPageview().readyOnInitialize().global("_kiq").option("customerId","").option("siteToken","").option("track",false);Qualaroo.prototype.initialize=function(page){window._kiq=window._kiq||[];this.load()};Qualaroo.prototype.loaded=function(){return!!(window._kiq&&window._kiq.push!==Array.prototype.push)};Qualaroo.prototype.load=function(callback){var token=this.options.siteToken;var id=this.options.customerId;load("//s3.amazonaws.com/ki.js/"+id+"/"+token+".js",callback)};Qualaroo.prototype.identify=function(identify){var traits=identify.traits();var id=identify.userId();var email=identify.email();if(email)id=email;if(id)push("identify",id);if(traits)push("set",traits)};Qualaroo.prototype.track=function(track){if(!this.options.track)return;var event=track.event();var traits={};traits["Triggered: "+event]=true;this.identify(new Identify({traits:traits}))}});require.register("segmentio-analytics.js-integrations/lib/quantcast.js",function(exports,require,module){var integration=require("integration");var load=require("load-script");var push=require("global-queue")("_qevents",{wrap:false});var user;module.exports=exports=function(analytics){analytics.addIntegration(Quantcast);user=analytics.user()};var Quantcast=exports.Integration=integration("Quantcast").assumesPageview().readyOnInitialize().global("_qevents").global("__qc").option("pCode",null).option("advertise",false);Quantcast.prototype.initialize=function(page){window._qevents=window._qevents||[];var opts=this.options;var settings={qacct:opts.pCode};if(user.id())settings.uid=user.id();if(page){settings.labels=this.labels("page",page.category(),page.name())}push(settings);this.load()};Quantcast.prototype.loaded=function(){return!!window.__qc};Quantcast.prototype.load=function(callback){load({http:"http://edge.quantserve.com/quant.js",https:"https://secure.quantserve.com/quant.js"},callback)};Quantcast.prototype.page=function(page){var category=page.category();var name=page.name();var settings={event:"refresh",labels:this.labels("page",category,name),qacct:this.options.pCode};if(user.id())settings.uid=user.id();push(settings)};Quantcast.prototype.identify=function(identify){var id=identify.userId();if(id)window._qevents[0].uid=id};Quantcast.prototype.track=function(track){var name=track.event();var revenue=track.revenue();var settings={event:"click",labels:this.labels("event",name),qacct:this.options.pCode};if(null!=revenue)settings.revenue=revenue+"";if(user.id())settings.uid=user.id();push(settings)};Quantcast.prototype.completedOrder=function(track){var name=track.event();var revenue=track.total();var labels=this.labels("event",name);var category=track.category();if(this.options.advertise&&category){labels+=","+this.labels("pcat",category)}var settings={event:"refresh",labels:labels,revenue:revenue+"",orderid:track.orderId(),qacct:this.options.pCode};push(settings)};Quantcast.prototype.labels=function(type){var args=[].slice.call(arguments,1);var advertise=this.options.advertise;var ret=[];if(advertise&&"page"==type)type="event";if(advertise)type="_fp."+type;for(var i=0;i<args.length;++i){if(null==args[i])continue;var value=String(args[i]);ret.push(value.replace(/,/g,";"))}ret=advertise?ret.join(" "):ret.join(".");return[type,ret].join(".")}});require.register("segmentio-analytics.js-integrations/lib/rollbar.js",function(exports,require,module){var integration=require("integration");var is=require("is");var extend=require("extend");module.exports=exports=function(analytics){analytics.addIntegration(RollbarIntegration)};var RollbarIntegration=exports.Integration=integration("Rollbar").readyOnInitialize().global("Rollbar").option("identify",true).option("accessToken","").option("environment","unknown").option("captureUncaught",true);RollbarIntegration.prototype.initialize=function(page){var _rollbarConfig=this.config={accessToken:this.options.accessToken,captureUncaught:this.options.captureUncaught,payload:{environment:this.options.environment}};!function(a){function b(b){this.shimId=++g,this.notifier=null,this.parentShim=b,this.logger=function(){},a.console&&void 0===a.console.shimId&&(this.logger=a.console.log)}function c(b,c,d){!d[4]&&a._rollbarWrappedError&&(d[4]=a._rollbarWrappedError,a._rollbarWrappedError=null),b.uncaughtError.apply(b,d),c&&c.apply(a,d)}function d(c){var d=b;return f(function(){if(this.notifier)return this.notifier[c].apply(this.notifier,arguments);var b=this,e="scope"===c;e&&(b=new d(this));var f=Array.prototype.slice.call(arguments,0),g={shim:b,method:c,args:f,ts:new Date};return a._rollbarShimQueue.push(g),e?b:void 0})}function e(a,b){if(b.hasOwnProperty&&b.hasOwnProperty("addEventListener")){var c=b.addEventListener;b.addEventListener=function(b,d,e){c.call(this,b,a.wrap(d),e)};var d=b.removeEventListener;b.removeEventListener=function(a,b,c){d.call(this,a,b._wrapped||b,c)}}}function f(a,b){return b=b||this.logger,function(){try{return a.apply(this,arguments)}catch(c){b("Rollbar internal error:",c)}}}var g=0;b.init=function(a,d){var g=d.globalAlias||"Rollbar";if("object"==typeof a[g])return a[g];a._rollbarShimQueue=[],a._rollbarWrappedError=null,d=d||{};var h=new b;return f(function(){if(h.configure(d),d.captureUncaught){var b=a.onerror;a.onerror=function(){var a=Array.prototype.slice.call(arguments,0);c(h,b,a)};var f,i,j=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];for(f=0;f<j.length;++f)i=j[f],a[i]&&a[i].prototype&&e(h,a[i].prototype)}return a[g]=h,h},h.logger)()},b.prototype.loadFull=function(a,b,c,d,e){var g=f(function(){var a=b.createElement("script"),e=b.getElementsByTagName("script")[0];a.src=d.rollbarJsUrl,a.async=!c,a.onload=h,e.parentNode.insertBefore(a,e)},this.logger),h=f(function(){var b;if(void 0===a._rollbarPayloadQueue){var c,d,f,g;for(b=new Error("rollbar.js did not load");c=a._rollbarShimQueue.shift();)for(f=c.args,g=0;g<f.length;++g)if(d=f[g],"function"==typeof d){d(b);break}}e&&e(b)},this.logger);f(function(){c?g():a.addEventListener?a.addEventListener("load",g,!1):a.attachEvent("onload",g)},this.logger)()},b.prototype.wrap=function(b){if("function"!=typeof b)return b;if(b._isWrap)return b;if(!b._wrapped){b._wrapped=function(){try{return b.apply(this,arguments)}catch(c){throw a._rollbarWrappedError=c,c}},b._wrapped._isWrap=!0;for(var c in b)b.hasOwnProperty(c)&&(b._wrapped[c]=b[c])}return b._wrapped};for(var h="log,debug,info,warn,warning,error,critical,global,configure,scope,uncaughtError".split(","),i=0;i<h.length;++i)b.prototype[h[i]]=d(h[i]);var j="//d37gvrvc0wt4s1.cloudfront.net/js/v1.0/rollbar.min.js";_rollbarConfig.rollbarJsUrl=_rollbarConfig.rollbarJsUrl||j,b.init(a,_rollbarConfig)}(window,document);this.load()};RollbarIntegration.prototype.loaded=function(){return is.object(window.Rollbar)&&null==window.Rollbar.shimId};RollbarIntegration.prototype.load=function(callback){window.Rollbar.loadFull(window,document,true,this.config,callback)};RollbarIntegration.prototype.identify=function(identify){if(!this.options.identify)return;var uid=identify.userId();if(uid===null||uid===undefined)return;var rollbar=window.Rollbar;var person={id:uid};extend(person,identify.traits());rollbar.configure({payload:{person:person}})}});require.register("segmentio-analytics.js-integrations/lib/saasquatch.js",function(exports,require,module){var integration=require("integration");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(SaaSquatch)};var SaaSquatch=exports.Integration=integration("SaaSquatch").readyOnInitialize().option("tenantAlias","").global("_sqh");SaaSquatch.prototype.initialize=function(page){};SaaSquatch.prototype.loaded=function(){return window._sqh&&window._sqh.push!=[].push};SaaSquatch.prototype.load=function(fn){load("//d2rcp9ak152ke1.cloudfront.net/assets/javascripts/squatch.min.js",fn)};SaaSquatch.prototype.identify=function(identify){var sqh=window._sqh=window._sqh||[];var accountId=identify.proxy("traits.accountId");var image=identify.proxy("traits.referralImage");var opts=identify.options(this.name);var id=identify.userId();var email=identify.email();if(!(id||email))return;if(this.called)return;var init={tenant_alias:this.options.tenantAlias,first_name:identify.firstName(),last_name:identify.lastName(),user_image:identify.avatar(),email:email,user_id:id};if(accountId)init.account_id=accountId;if(opts.checksum)init.checksum=opts.checksum;if(image)init.fb_share_image=image;sqh.push(["init",init]);this.called=true;this.load()}});require.register("segmentio-analytics.js-integrations/lib/sentry.js",function(exports,require,module){var integration=require("integration");var is=require("is");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(Sentry)};var Sentry=exports.Integration=integration("Sentry").readyOnLoad().global("Raven").option("config","");Sentry.prototype.initialize=function(){var config=this.options.config;this.load(function(){window.Raven.config(config).install()})};Sentry.prototype.loaded=function(){return is.object(window.Raven)};Sentry.prototype.load=function(callback){load("//cdn.ravenjs.com/1.1.10/native/raven.min.js",callback)};Sentry.prototype.identify=function(identify){window.Raven.setUser(identify.traits())}});require.register("segmentio-analytics.js-integrations/lib/snapengage.js",function(exports,require,module){var integration=require("integration");var is=require("is");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(SnapEngage)};var SnapEngage=exports.Integration=integration("SnapEngage").assumesPageview().readyOnLoad().global("SnapABug").option("apiKey","");SnapEngage.prototype.initialize=function(page){this.load()};SnapEngage.prototype.loaded=function(){return is.object(window.SnapABug)};SnapEngage.prototype.load=function(callback){var key=this.options.apiKey; var url="//commondatastorage.googleapis.com/code.snapengage.com/js/"+key+".js";load(url,callback)};SnapEngage.prototype.identify=function(identify){var email=identify.email();if(!email)return;window.SnapABug.setUserEmail(email)}});require.register("segmentio-analytics.js-integrations/lib/spinnakr.js",function(exports,require,module){var integration=require("integration");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(Spinnakr)};var Spinnakr=exports.Integration=integration("Spinnakr").assumesPageview().readyOnLoad().global("_spinnakr_site_id").global("_spinnakr").option("siteId","");Spinnakr.prototype.initialize=function(page){window._spinnakr_site_id=this.options.siteId;this.load()};Spinnakr.prototype.loaded=function(){return!!window._spinnakr};Spinnakr.prototype.load=function(callback){load("//d3ojzyhbolvoi5.cloudfront.net/js/so.js",callback)}});require.register("segmentio-analytics.js-integrations/lib/tapstream.js",function(exports,require,module){var callback=require("callback");var integration=require("integration");var load=require("load-script");var slug=require("slug");var push=require("global-queue")("_tsq");module.exports=exports=function(analytics){analytics.addIntegration(Tapstream)};var Tapstream=exports.Integration=integration("Tapstream").assumesPageview().readyOnInitialize().global("_tsq").option("accountName","").option("trackAllPages",true).option("trackNamedPages",true).option("trackCategorizedPages",true);Tapstream.prototype.initialize=function(page){window._tsq=window._tsq||[];push("setAccountName",this.options.accountName);this.load()};Tapstream.prototype.loaded=function(){return!!(window._tsq&&window._tsq.push!==Array.prototype.push)};Tapstream.prototype.load=function(callback){load("//cdn.tapstream.com/static/js/tapstream.js",callback)};Tapstream.prototype.page=function(page){var category=page.category();var opts=this.options;var name=page.fullName();if(opts.trackAllPages){this.track(page.track())}if(name&&opts.trackNamedPages){this.track(page.track(name))}if(category&&opts.trackCategorizedPages){this.track(page.track(category))}};Tapstream.prototype.track=function(track){var props=track.properties();push("fireHit",slug(track.event()),[props.url])}});require.register("segmentio-analytics.js-integrations/lib/trakio.js",function(exports,require,module){var alias=require("alias");var callback=require("callback");var clone=require("clone");var integration=require("integration");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(Trakio)};var Trakio=exports.Integration=integration("trak.io").assumesPageview().readyOnInitialize().global("trak").option("token","").option("trackNamedPages",true).option("trackCategorizedPages",true);var optionsAliases={initialPageview:"auto_track_page_view"};Trakio.prototype.initialize=function(page){var self=this;var options=this.options;window.trak=window.trak||[];window.trak.io=window.trak.io||{};window.trak.io.load=function(e){self.load();var r=function(e){return function(){window.trak.push([e].concat(Array.prototype.slice.call(arguments,0)))}},i=["initialize","identify","track","alias","channel","source","host","protocol","page_view"];for(var s=0;s<i.length;s++)window.trak.io[i[s]]=r(i[s]);window.trak.io.initialize.apply(window.trak.io,arguments)};window.trak.io.load(options.token,alias(options,optionsAliases));this.load()};Trakio.prototype.loaded=function(){return!!(window.trak&&window.trak.loaded)};Trakio.prototype.load=function(callback){load("//d29p64779x43zo.cloudfront.net/v1/trak.io.min.js",callback)};Trakio.prototype.page=function(page){var category=page.category();var props=page.properties();var name=page.fullName();window.trak.io.page_view(props.path,name||props.title);if(name&&this.options.trackNamedPages){this.track(page.track(name))}if(category&&this.options.trackCategorizedPages){this.track(page.track(category))}};var traitAliases={avatar:"avatar_url",firstName:"first_name",lastName:"last_name"};Trakio.prototype.identify=function(identify){var traits=identify.traits(traitAliases);var id=identify.userId();if(id){window.trak.io.identify(id,traits)}else{window.trak.io.identify(traits)}};Trakio.prototype.track=function(track){window.trak.io.track(track.event(),track.properties())};Trakio.prototype.alias=function(alias){if(!window.trak.io.distinct_id)return;var from=alias.from();var to=alias.to();if(to===window.trak.io.distinct_id())return;if(from){window.trak.io.alias(from,to)}else{window.trak.io.alias(to)}}});require.register("segmentio-analytics.js-integrations/lib/twitter-ads.js",function(exports,require,module){var pixel=require("load-pixel")("//analytics.twitter.com/i/adsct");var integration=require("integration");module.exports=exports=function(analytics){analytics.addIntegration(TwitterAds)};exports.load=pixel;var has=Object.prototype.hasOwnProperty;var TwitterAds=exports.Integration=integration("Twitter Ads").readyOnInitialize().option("events",{});TwitterAds.prototype.track=function(track){var events=this.options.events;var event=track.event();if(!has.call(events,event))return;return exports.load({txn_id:events[event],p_id:"Twitter"})}});require.register("segmentio-analytics.js-integrations/lib/usercycle.js",function(exports,require,module){var callback=require("callback");var integration=require("integration");var load=require("load-script");var push=require("global-queue")("_uc");module.exports=exports=function(analytics){analytics.addIntegration(Usercycle)};var Usercycle=exports.Integration=integration("USERcycle").assumesPageview().readyOnInitialize().global("_uc").option("key","");Usercycle.prototype.initialize=function(page){push("_key",this.options.key);this.load()};Usercycle.prototype.loaded=function(){return!!(window._uc&&window._uc.push!==Array.prototype.push)};Usercycle.prototype.load=function(callback){load("//api.usercycle.com/javascripts/track.js",callback)};Usercycle.prototype.identify=function(identify){var traits=identify.traits();var id=identify.userId();if(id)push("uid",id);push("action","came_back",traits)};Usercycle.prototype.track=function(track){push("action",track.event(),track.properties({revenue:"revenue_amount"}))}});require.register("segmentio-analytics.js-integrations/lib/userfox.js",function(exports,require,module){var alias=require("alias");var callback=require("callback");var convertDates=require("convert-dates");var integration=require("integration");var load=require("load-script");var push=require("global-queue")("_ufq");module.exports=exports=function(analytics){analytics.addIntegration(Userfox)};var Userfox=exports.Integration=integration("userfox").assumesPageview().readyOnInitialize().global("_ufq").option("clientId","");Userfox.prototype.initialize=function(page){window._ufq=[];this.load()};Userfox.prototype.loaded=function(){return!!(window._ufq&&window._ufq.push!==Array.prototype.push)};Userfox.prototype.load=function(callback){load("//d2y71mjhnajxcg.cloudfront.net/js/userfox-stable.js",callback)};Userfox.prototype.identify=function(identify){var traits=identify.traits({created:"signup_date"});var email=identify.email();if(!email)return;push("init",{clientId:this.options.clientId,email:email});traits=convertDates(traits,formatDate);push("track",traits)};function formatDate(date){return Math.round(date.getTime()/1e3).toString()}});require.register("segmentio-analytics.js-integrations/lib/uservoice.js",function(exports,require,module){var alias=require("alias");var callback=require("callback");var clone=require("clone");var convertDates=require("convert-dates");var integration=require("integration");var load=require("load-script");var push=require("global-queue")("UserVoice");var unix=require("to-unix-timestamp");module.exports=exports=function(analytics){analytics.addIntegration(UserVoice)};var UserVoice=exports.Integration=integration("UserVoice").assumesPageview().readyOnInitialize().global("UserVoice").global("showClassicWidget").option("apiKey","").option("classic",false).option("forumId",null).option("showWidget",true).option("mode","contact").option("accentColor","#448dd6").option("smartvote",true).option("trigger",null).option("triggerPosition","bottom-right").option("triggerColor","#ffffff").option("triggerBackgroundColor","rgba(46, 49, 51, 0.6)").option("classicMode","full").option("primaryColor","#cc6d00").option("linkColor","#007dbf").option("defaultMode","support").option("tabLabel","Feedback & Support").option("tabColor","#cc6d00").option("tabPosition","middle-right").option("tabInverted",false);UserVoice.on("construct",function(integration){if(!integration.options.classic)return;integration.group=undefined;integration.identify=integration.identifyClassic;integration.initialize=integration.initializeClassic});UserVoice.prototype.initialize=function(page){var options=this.options;var opts=formatOptions(options);push("set",opts);push("autoprompt",{});if(options.showWidget){options.trigger?push("addTrigger",options.trigger,opts):push("addTrigger",opts)}this.load()};UserVoice.prototype.loaded=function(){return!!(window.UserVoice&&window.UserVoice.push!==Array.prototype.push)};UserVoice.prototype.load=function(callback){var key=this.options.apiKey;load("//widget.uservoice.com/"+key+".js",callback)};UserVoice.prototype.identify=function(identify){var traits=identify.traits({created:"created_at"});traits=convertDates(traits,unix);push("identify",traits)};UserVoice.prototype.group=function(group){var traits=group.traits({created:"created_at"});traits=convertDates(traits,unix);push("identify",{account:traits})};UserVoice.prototype.initializeClassic=function(){var options=this.options;window.showClassicWidget=showClassicWidget;if(options.showWidget)showClassicWidget("showTab",formatClassicOptions(options));this.load()};UserVoice.prototype.identifyClassic=function(identify){push("setCustomFields",identify.traits())};function formatOptions(options){return alias(options,{forumId:"forum_id",accentColor:"accent_color",smartvote:"smartvote_enabled",triggerColor:"trigger_color",triggerBackgroundColor:"trigger_background_color",triggerPosition:"trigger_position"})}function formatClassicOptions(options){return alias(options,{forumId:"forum_id",classicMode:"mode",primaryColor:"primary_color",tabPosition:"tab_position",tabColor:"tab_color",linkColor:"link_color",defaultMode:"default_mode",tabLabel:"tab_label",tabInverted:"tab_inverted"})}function showClassicWidget(type,options){type=type||"showLightbox";push(type,"classic_widget",options)}});require.register("segmentio-analytics.js-integrations/lib/vero.js",function(exports,require,module){var callback=require("callback");var integration=require("integration");var load=require("load-script");var push=require("global-queue")("_veroq");module.exports=exports=function(analytics){analytics.addIntegration(Vero)};var Vero=exports.Integration=integration("Vero").readyOnInitialize().global("_veroq").option("apiKey","");Vero.prototype.initialize=function(pgae){push("init",{api_key:this.options.apiKey});this.load()};Vero.prototype.loaded=function(){return!!(window._veroq&&window._veroq.push!==Array.prototype.push)};Vero.prototype.load=function(callback){load("//d3qxef4rp70elm.cloudfront.net/m.js",callback)};Vero.prototype.page=function(page){push("trackPageview")};Vero.prototype.identify=function(identify){var traits=identify.traits();var email=identify.email();var id=identify.userId();if(!id||!email)return;push("user",traits)};Vero.prototype.track=function(track){push("track",track.event(),track.properties())}});require.register("segmentio-analytics.js-integrations/lib/visual-website-optimizer.js",function(exports,require,module){var callback=require("callback");var each=require("each");var integration=require("integration");var tick=require("next-tick");var analytics;module.exports=exports=function(ajs){ajs.addIntegration(VWO);analytics=ajs};var VWO=exports.Integration=integration("Visual Website Optimizer").readyOnInitialize().option("replay",true);VWO.prototype.initialize=function(){if(this.options.replay)this.replay()};VWO.prototype.replay=function(){tick(function(){experiments(function(err,traits){if(traits)analytics.identify(traits)})})};function experiments(callback){enqueue(function(){var data={};var ids=window._vwo_exp_ids;if(!ids)return callback();each(ids,function(id){var name=variation(id);if(name)data["Experiment: "+id]=name});callback(null,data)})}function enqueue(fn){window._vis_opt_queue=window._vis_opt_queue||[];window._vis_opt_queue.push(fn)}function variation(id){var experiments=window._vwo_exp;if(!experiments)return null;var experiment=experiments[id];var variationId=experiment.combination_chosen;return variationId?experiment.comb_n[variationId]:null}});require.register("segmentio-analytics.js-integrations/lib/webengage.js",function(exports,require,module){var integration=require("integration");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(WebEngage)};var WebEngage=exports.Integration=integration("WebEngage").assumesPageview().readyOnLoad().global("_weq").global("webengage").option("widgetVersion","4.0").option("licenseCode","");WebEngage.prototype.initialize=function(page){var _weq=window._weq=window._weq||{};_weq["webengage.licenseCode"]=this.options.licenseCode;_weq["webengage.widgetVersion"]=this.options.widgetVersion;this.load()};WebEngage.prototype.loaded=function(){return!!window.webengage};WebEngage.prototype.load=function(fn){var path="/js/widget/webengage-min-v-4.0.js";load({https:"https://ssl.widgets.webengage.com"+path,http:"http://cdn.widgets.webengage.com"+path},fn)}});require.register("segmentio-analytics.js-integrations/lib/woopra.js",function(exports,require,module){var each=require("each");var extend=require("extend");var integration=require("integration");var isEmail=require("is-email");var load=require("load-script");var type=require("type");module.exports=exports=function(analytics){analytics.addIntegration(Woopra)};var Woopra=exports.Integration=integration("Woopra").readyOnLoad().global("woopra").option("domain","");Woopra.prototype.initialize=function(page){(function(){var i,s,z,w=window,d=document,a=arguments,q="script",f=["config","track","identify","visit","push","call"],c=function(){var i,self=this;self._e=[];for(i=0;i<f.length;i++){(function(f){self[f]=function(){self._e.push([f].concat(Array.prototype.slice.call(arguments,0)));return self}})(f[i])}};w._w=w._w||{};for(i=0;i<a.length;i++){w._w[a[i]]=w[a[i]]=w[a[i]]||new c}})("woopra");window.woopra.config({domain:this.options.domain});this.load()};Woopra.prototype.loaded=function(){return!!(window.woopra&&window.woopra.loaded)};Woopra.prototype.load=function(callback){load("//static.woopra.com/js/w.js",callback)};Woopra.prototype.page=function(page){var props=page.properties();var name=page.fullName();if(name)props.title=name;window.woopra.track("pv",props)};Woopra.prototype.identify=function(identify){window.woopra.identify(identify.traits()).push()};Woopra.prototype.track=function(track){window.woopra.track(track.event(),track.properties())}});require.register("segmentio-analytics.js-integrations/lib/yandex-metrica.js",function(exports,require,module){var callback=require("callback");var integration=require("integration");var load=require("load-script");module.exports=exports=function(analytics){analytics.addIntegration(Yandex)};var Yandex=exports.Integration=integration("Yandex Metrica").assumesPageview().readyOnInitialize().global("yandex_metrika_callbacks").global("Ya").option("counterId",null);Yandex.prototype.initialize=function(page){var id=this.options.counterId;push(function(){window["yaCounter"+id]=new window.Ya.Metrika({id:id})});this.load()};Yandex.prototype.loaded=function(){return!!(window.Ya&&window.Ya.Metrika)};Yandex.prototype.load=function(callback){load("//mc.yandex.ru/metrika/watch.js",callback)};function push(callback){window.yandex_metrika_callbacks=window.yandex_metrika_callbacks||[];window.yandex_metrika_callbacks.push(callback)}});require.register("segmentio-canonical/index.js",function(exports,require,module){module.exports=function canonical(){var tags=document.getElementsByTagName("link");for(var i=0,tag;tag=tags[i];i++){if("canonical"==tag.getAttribute("rel"))return tag.getAttribute("href")}}});require.register("segmentio-extend/index.js",function(exports,require,module){module.exports=function extend(object){var args=Array.prototype.slice.call(arguments,1);for(var i=0,source;source=args[i];i++){if(!source)continue;for(var property in source){object[property]=source[property]}}return object}});require.register("camshaft-require-component/index.js",function(exports,require,module){module.exports=function(parent){function require(name,fallback){try{return parent(name)}catch(e){try{return parent(fallback||name+"-component")}catch(e2){throw e}}}for(var key in parent){require[key]=parent[key]}return require}});require.register("segmentio-facade/lib/index.js",function(exports,require,module){var Facade=require("./facade");module.exports=Facade;Facade.Alias=require("./alias");Facade.Group=require("./group");Facade.Identify=require("./identify");Facade.Track=require("./track");Facade.Page=require("./page");Facade.Screen=require("./screen")});require.register("segmentio-facade/lib/alias.js",function(exports,require,module){var Facade=require("./facade");var component=require("require-component")(require);var inherit=component("inherit");module.exports=Alias;function Alias(dictionary){Facade.call(this,dictionary)}inherit(Alias,Facade);Alias.prototype.type=Alias.prototype.action=function(){return"alias"};Alias.prototype.from=Alias.prototype.previousId=function(){return this.field("previousId")||this.field("from")};Alias.prototype.to=Alias.prototype.userId=function(){return this.field("userId")||this.field("to")}});require.register("segmentio-facade/lib/facade.js",function(exports,require,module){var component=require("require-component")(require);var clone=component("clone");var isEnabled=component("./is-enabled");var objCase=component("obj-case");var traverse=component("isodate-traverse");module.exports=Facade;function Facade(obj){if(!obj.hasOwnProperty("timestamp"))obj.timestamp=new Date;else obj.timestamp=new Date(obj.timestamp);this.obj=obj}Facade.prototype.proxy=function(field){var fields=field.split(".");field=fields.shift();var obj=this[field]||this.field(field);if(!obj)return obj;if(typeof obj==="function")obj=obj.call(this)||{};if(fields.length===0)return transform(obj);obj=objCase(obj,fields.join("."));return transform(obj)};Facade.prototype.field=function(field){var obj=this.obj[field];return transform(obj)};Facade.proxy=function(field){return function(){return this.proxy(field)}};Facade.field=function(field){return function(){return this.field(field)}};Facade.prototype.json=function(){return clone(this.obj)};Facade.prototype.context=Facade.prototype.options=function(integration){var options=clone(this.obj.options||this.obj.context)||{};if(!integration)return clone(options);if(!this.enabled(integration))return;var integrations=this.integrations();var value=integrations[integration]||objCase(integrations,integration);if("boolean"==typeof value)value={};return value||{}};Facade.prototype.enabled=function(integration){var allEnabled=this.proxy("options.providers.all");if(typeof allEnabled!=="boolean")allEnabled=this.proxy("options.all");if(typeof allEnabled!=="boolean")allEnabled=this.proxy("integrations.all");if(typeof allEnabled!=="boolean")allEnabled=true;var enabled=allEnabled&&isEnabled(integration);var options=this.integrations();if(options.providers&&options.providers.hasOwnProperty(integration)){enabled=options.providers[integration]}if(options.hasOwnProperty(integration)){var settings=options[integration];if(typeof settings==="boolean"){enabled=settings}else{enabled=true}}return enabled?true:false};Facade.prototype.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()};Facade.prototype.active=function(){var active=this.proxy("options.active");if(active===null||active===undefined)active=true;return active};Facade.prototype.sessionId=Facade.prototype.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")};Facade.prototype.library=function(){var library=this.proxy("options.library");if(!library)return{name:"unknown",version:null};if(typeof library==="string")return{name:library,version:null};return library};Facade.prototype.userId=Facade.field("userId");Facade.prototype.channel=Facade.field("channel");Facade.prototype.timestamp=Facade.field("timestamp");Facade.prototype.userAgent=Facade.proxy("options.userAgent");Facade.prototype.ip=Facade.proxy("options.ip");function transform(obj){var cloned=clone(obj);traverse(cloned);return cloned}});require.register("segmentio-facade/lib/group.js",function(exports,require,module){var Facade=require("./facade");var component=require("require-component")(require);var inherit=component("inherit");var newDate=component("new-date");module.exports=Group;function Group(dictionary){Facade.call(this,dictionary)}inherit(Group,Facade);Group.prototype.type=Group.prototype.action=function(){return"group"};Group.prototype.groupId=Facade.field("groupId");Group.prototype.created=function(){var created=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(created)return newDate(created)};Group.prototype.traits=function(aliases){var ret=this.properties();var id=this.groupId();aliases=aliases||{};if(id)ret.id=id;for(var alias in aliases){var value=null==this[alias]?this.proxy("traits."+alias):this[alias]();if(null==value)continue;ret[aliases[alias]]=value;delete ret[alias]}return ret};Group.prototype.properties=function(){return this.field("traits")||this.field("properties")||{}}});require.register("segmentio-facade/lib/page.js",function(exports,require,module){var component=require("require-component")(require);var Facade=component("./facade");var inherit=component("inherit");var Track=require("./track");module.exports=Page;function Page(dictionary){Facade.call(this,dictionary)}inherit(Page,Facade);Page.prototype.type=Page.prototype.action=function(){return"page"};Page.prototype.category=Facade.field("category");Page.prototype.name=Facade.field("name");Page.prototype.properties=function(){var props=this.field("properties")||{};var category=this.category();var name=this.name();if(category)props.category=category;if(name)props.name=name;return props};Page.prototype.fullName=function(){var category=this.category();var name=this.name();return name&&category?category+" "+name:name};Page.prototype.event=function(name){return name?"Viewed "+name+" Page":"Loaded a Page"};Page.prototype.track=function(name){var props=this.properties();return new Track({event:this.event(name),properties:props})}});require.register("segmentio-facade/lib/identify.js",function(exports,require,module){var component=require("require-component")(require);var clone=component("clone");var Facade=component("./facade");var inherit=component("inherit");var isEmail=component("is-email");var newDate=component("new-date");var trim=component("trim");module.exports=Identify;function Identify(dictionary){Facade.call(this,dictionary)}inherit(Identify,Facade);Identify.prototype.type=Identify.prototype.action=function(){return"identify"};Identify.prototype.traits=function(aliases){var ret=this.field("traits")||{};var id=this.userId();aliases=aliases||{};if(id)ret.id=id;for(var alias in aliases){var value=null==this[alias]?this.proxy("traits."+alias):this[alias]();if(null==value)continue;ret[aliases[alias]]=value;delete ret[alias]}return ret};Identify.prototype.email=function(){var email=this.proxy("traits.email");if(email)return email;var userId=this.userId();if(isEmail(userId))return userId};Identify.prototype.created=function(){var created=this.proxy("traits.created")||this.proxy("traits.createdAt");if(created)return newDate(created)};Identify.prototype.companyCreated=function(){var created=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(created)return newDate(created)};Identify.prototype.name=function(){var name=this.proxy("traits.name");if(typeof name==="string")return trim(name);var firstName=this.firstName();var lastName=this.lastName();if(firstName&&lastName)return trim(firstName+" "+lastName)};Identify.prototype.firstName=function(){var firstName=this.proxy("traits.firstName");if(typeof firstName==="string")return trim(firstName);var name=this.proxy("traits.name");if(typeof name==="string")return trim(name).split(" ")[0]};Identify.prototype.lastName=function(){var lastName=this.proxy("traits.lastName");if(typeof lastName==="string")return trim(lastName);var name=this.proxy("traits.name");if(typeof name!=="string")return;var space=trim(name).indexOf(" ");if(space===-1)return;return trim(name.substr(space+1))};Identify.prototype.uid=function(){return this.userId()||this.username()||this.email()};Identify.prototype.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")};Identify.prototype.username=Facade.proxy("traits.username");Identify.prototype.website=Facade.proxy("traits.website");Identify.prototype.phone=Facade.proxy("traits.phone");Identify.prototype.address=Facade.proxy("traits.address");Identify.prototype.avatar=Facade.proxy("traits.avatar")});require.register("segmentio-facade/lib/is-enabled.js",function(exports,require,module){var disabled={Salesforce:true,Marketo:true};module.exports=function(integration){return!disabled[integration]}});require.register("segmentio-facade/lib/track.js",function(exports,require,module){var component=require("require-component")(require);var clone=component("clone");var Facade=component("./facade");var Identify=component("./identify");var inherit=component("inherit");var isEmail=component("is-email");module.exports=Track;function Track(dictionary){Facade.call(this,dictionary)}inherit(Track,Facade);Track.prototype.type=Track.prototype.action=function(){return"track"};Track.prototype.event=Facade.field("event");Track.prototype.value=Facade.proxy("properties.value");Track.prototype.category=Facade.proxy("properties.category");Track.prototype.country=Facade.proxy("properties.country");Track.prototype.state=Facade.proxy("properties.state");Track.prototype.city=Facade.proxy("properties.city");Track.prototype.zip=Facade.proxy("properties.zip");Track.prototype.id=Facade.proxy("properties.id");Track.prototype.sku=Facade.proxy("properties.sku");Track.prototype.tax=Facade.proxy("properties.tax");Track.prototype.name=Facade.proxy("properties.name");Track.prototype.price=Facade.proxy("properties.price");Track.prototype.total=Facade.proxy("properties.total");Track.prototype.coupon=Facade.proxy("properties.coupon");Track.prototype.shipping=Facade.proxy("properties.shipping");Track.prototype.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.orderId")};Track.prototype.subtotal=function(){var subtotal=this.obj.properties.subtotal;var total=this.total();var n;if(subtotal)return subtotal;if(!total)return 0;if(n=this.tax())total-=n;if(n=this.shipping())total-=n;return total};Track.prototype.products=function(){var props=this.obj.properties||{};return props.products||[]};Track.prototype.quantity=function(){var props=this.obj.properties||{};return props.quantity||1};Track.prototype.currency=function(){var props=this.obj.properties||{};return props.currency||"USD"};Track.prototype.referrer=Facade.proxy("properties.referrer");Track.prototype.query=Facade.proxy("options.query");Track.prototype.properties=function(aliases){var ret=this.field("properties")||{};aliases=aliases||{};for(var alias in aliases){var value=null==this[alias]?this.proxy("properties."+alias):this[alias]();if(null==value)continue;ret[aliases[alias]]=value;delete ret[alias]}return ret};Track.prototype.traits=function(){return this.proxy("options.traits")||{}};Track.prototype.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()};Track.prototype.email=function(){var email=this.proxy("traits.email");email=email||this.proxy("properties.email");if(email)return email;var userId=this.userId();if(isEmail(userId))return userId};Track.prototype.revenue=function(){var revenue=this.proxy("properties.revenue");var event=this.event();if(!revenue&&event&&event.match(/completed ?order/i)){revenue=this.proxy("properties.total")}return currency(revenue)};Track.prototype.cents=function(){var revenue=this.revenue();return"number"!=typeof revenue?this.value()||0:revenue*100};Track.prototype.identify=function(){var json=this.json();json.traits=this.traits();return new Identify(json)};function currency(val){if(!val)return;if(typeof val==="number")return val;if(typeof val!=="string")return;val=val.replace(/\$/g,"");val=parseFloat(val);if(!isNaN(val))return val}});require.register("segmentio-facade/lib/screen.js",function(exports,require,module){var component=require("require-component")(require);var inherit=component("inherit");var Page=component("./page");var Track=require("./track");module.exports=Screen;function Screen(dictionary){Page.call(this,dictionary)}inherit(Screen,Page);Screen.prototype.type=Screen.prototype.action=function(){return"screen"};Screen.prototype.event=function(name){return name?"Viewed "+name+" Screen":"Loaded a Screen"};Screen.prototype.track=function(name){var props=this.properties();return new Track({event:this.event(name),properties:props})}});require.register("segmentio-is-email/index.js",function(exports,require,module){module.exports=isEmail;var matcher=/.+\@.+\..+/;function isEmail(string){return matcher.test(string)}});require.register("segmentio-is-meta/index.js",function(exports,require,module){module.exports=function isMeta(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return true;var which=e.which,button=e.button;if(!which&&button!==undefined){return!button&1&&!button&2&&button&4}else if(which===2){return true}return false}});require.register("segmentio-isodate/index.js",function(exports,require,module){var matcher=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;exports.parse=function(iso){var numericKeys=[1,5,6,7,8,11,12];var arr=matcher.exec(iso);var offset=0;if(!arr)return new Date(iso);for(var i=0,val;val=numericKeys[i];i++){arr[val]=parseInt(arr[val],10)||0}arr[2]=parseInt(arr[2],10)||1;arr[3]=parseInt(arr[3],10)||1;arr[2]--;if(arr[8])arr[8]=(arr[8]+"00").substring(0,3);if(arr[4]==" "){offset=(new Date).getTimezoneOffset()}else if(arr[9]!=="Z"&&arr[10]){offset=arr[11]*60+arr[12];if("+"==arr[10])offset=0-offset}var millis=Date.UTC(arr[1],arr[2],arr[3],arr[5],arr[6]+offset,arr[7],arr[8]);return new Date(millis)};exports.is=function(string,strict){if(strict&&false===/^\d{4}-\d{2}-\d{2}/.test(string))return false;return matcher.test(string)}});require.register("segmentio-isodate-traverse/index.js",function(exports,require,module){var is=require("is");var isodate=require("isodate");var each;try{each=require("each")}catch(err){each=require("each-component")}module.exports=traverse;function traverse(input,strict){if(strict===undefined)strict=true;if(is.object(input)){return object(input,strict)}else if(is.array(input)){return array(input,strict)}}function object(obj,strict){each(obj,function(key,val){if(isodate.is(val,strict)){obj[key]=isodate.parse(val)}else if(is.object(val)||is.array(val)){traverse(val,strict)}});return obj}function array(arr,strict){each(arr,function(val,x){if(is.object(val)){traverse(val,strict)}else if(isodate.is(val,strict)){arr[x]=isodate.parse(val)}});return arr}});require.register("component-json-fallback/index.js",function(exports,require,module){(function(){"use strict";var JSON=module.exports={};function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null };String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}var cx,escapable,gap,indent,meta,rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){if(typeof rep[i]==="string"){k=rep[i];v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof JSON.stringify!=="function"){escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else if(typeof space==="string"){indent=space}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})}}if(typeof JSON.parse!=="function"){cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}})()});require.register("segmentio-json/index.js",function(exports,require,module){var json=window.JSON||{};var stringify=json.stringify;var parse=json.parse;module.exports=parse&&stringify?JSON:require("json-fallback")});require.register("segmentio-new-date/lib/index.js",function(exports,require,module){var is=require("is");var isodate=require("isodate");var milliseconds=require("./milliseconds");var seconds=require("./seconds");module.exports=function newDate(val){if(is.date(val))return val;if(is.number(val))return new Date(toMs(val));if(isodate.is(val))return isodate.parse(val);if(milliseconds.is(val))return milliseconds.parse(val);if(seconds.is(val))return seconds.parse(val);return new Date(val)};function toMs(num){if(num<315576e5)return num*1e3;return num}});require.register("segmentio-new-date/lib/milliseconds.js",function(exports,require,module){var matcher=/\d{13}/;exports.is=function(string){return matcher.test(string)};exports.parse=function(millis){millis=parseInt(millis,10);return new Date(millis)}});require.register("segmentio-new-date/lib/seconds.js",function(exports,require,module){var matcher=/\d{10}/;exports.is=function(string){return matcher.test(string)};exports.parse=function(seconds){var millis=parseInt(seconds,10)*1e3;return new Date(millis)}});require.register("segmentio-store.js/store.js",function(exports,require,module){(function(win){var store={},doc=win.document,localStorageName="localStorage",namespace="__storejs__",storage;store.disabled=false;store.set=function(key,value){};store.get=function(key){};store.remove=function(key){};store.clear=function(){};store.transact=function(key,defaultVal,transactionFn){var val=store.get(key);if(transactionFn==null){transactionFn=defaultVal;defaultVal=null}if(typeof val=="undefined"){val=defaultVal||{}}transactionFn(val);store.set(key,val)};store.getAll=function(){};store.serialize=function(value){return JSON.stringify(value)};store.deserialize=function(value){if(typeof value!="string"){return undefined}try{return JSON.parse(value)}catch(e){return value||undefined}};function isLocalStorageNameSupported(){try{return localStorageName in win&&win[localStorageName]}catch(err){return false}}if(isLocalStorageNameSupported()){storage=win[localStorageName];store.set=function(key,val){if(val===undefined){return store.remove(key)}storage.setItem(key,store.serialize(val));return val};store.get=function(key){return store.deserialize(storage.getItem(key))};store.remove=function(key){storage.removeItem(key)};store.clear=function(){storage.clear()};store.getAll=function(){var ret={};for(var i=0;i<storage.length;++i){var key=storage.key(i);ret[key]=store.get(key)}return ret}}else if(doc.documentElement.addBehavior){var storageOwner,storageContainer;try{storageContainer=new ActiveXObject("htmlfile");storageContainer.open();storageContainer.write("<s"+"cript>document.w=window</s"+'cript><iframe src="/favicon.ico"></iframe>');storageContainer.close();storageOwner=storageContainer.w.frames[0].document;storage=storageOwner.createElement("div")}catch(e){storage=doc.createElement("div");storageOwner=doc.body}function withIEStorage(storeFunction){return function(){var args=Array.prototype.slice.call(arguments,0);args.unshift(storage);storageOwner.appendChild(storage);storage.addBehavior("#default#userData");storage.load(localStorageName);var result=storeFunction.apply(store,args);storageOwner.removeChild(storage);return result}}var forbiddenCharsRegex=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function ieKeyFix(key){return key.replace(forbiddenCharsRegex,"___")}store.set=withIEStorage(function(storage,key,val){key=ieKeyFix(key);if(val===undefined){return store.remove(key)}storage.setAttribute(key,store.serialize(val));storage.save(localStorageName);return val});store.get=withIEStorage(function(storage,key){key=ieKeyFix(key);return store.deserialize(storage.getAttribute(key))});store.remove=withIEStorage(function(storage,key){key=ieKeyFix(key);storage.removeAttribute(key);storage.save(localStorageName)});store.clear=withIEStorage(function(storage){var attributes=storage.XMLDocument.documentElement.attributes;storage.load(localStorageName);for(var i=0,attr;attr=attributes[i];i++){storage.removeAttribute(attr.name)}storage.save(localStorageName)});store.getAll=withIEStorage(function(storage){var attributes=storage.XMLDocument.documentElement.attributes;var ret={};for(var i=0,attr;attr=attributes[i];++i){var key=ieKeyFix(attr.name);ret[attr.name]=store.deserialize(storage.getAttribute(key))}return ret})}try{store.set(namespace,namespace);if(store.get(namespace)!=namespace){store.disabled=true}store.remove(namespace)}catch(e){store.disabled=true}store.enabled=!store.disabled;if(typeof module!="undefined"&&module.exports){module.exports=store}else if(typeof define==="function"&&define.amd){define(store)}else{win.store=store}})(this.window||global)});require.register("segmentio-top-domain/index.js",function(exports,require,module){var parse=require("url").parse;module.exports=domain;var regexp=/[a-z0-9][a-z0-9\-]*[a-z0-9]\.[a-z\.]{2,6}$/i;function domain(url){var host=parse(url).hostname;var match=host.match(regexp);return match?match[0]:""}});require.register("visionmedia-debug/index.js",function(exports,require,module){if("undefined"==typeof window){module.exports=require("./lib/debug")}else{module.exports=require("./debug")}});require.register("visionmedia-debug/debug.js",function(exports,require,module){module.exports=debug;function debug(name){if(!debug.enabled(name))return function(){};return function(fmt){fmt=coerce(fmt);var curr=new Date;var ms=curr-(debug[name]||curr);debug[name]=curr;fmt=name+" "+fmt+" +"+debug.humanize(ms);window.console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}}debug.names=[];debug.skips=[];debug.enable=function(name){try{localStorage.debug=name}catch(e){}var split=(name||"").split(/[\s,]+/),len=split.length;for(var i=0;i<len;i++){name=split[i].replace("*",".*?");if(name[0]==="-"){debug.skips.push(new RegExp("^"+name.substr(1)+"$"))}else{debug.names.push(new RegExp("^"+name+"$"))}}};debug.disable=function(){debug.enable("")};debug.humanize=function(ms){var sec=1e3,min=60*1e3,hour=60*min;if(ms>=hour)return(ms/hour).toFixed(1)+"h";if(ms>=min)return(ms/min).toFixed(1)+"m";if(ms>=sec)return(ms/sec|0)+"s";return ms+"ms"};debug.enabled=function(name){for(var i=0,len=debug.skips.length;i<len;i++){if(debug.skips[i].test(name)){return false}}for(var i=0,len=debug.names.length;i<len;i++){if(debug.names[i].test(name)){return true}}return false};function coerce(val){if(val instanceof Error)return val.stack||val.message;return val}try{if(window.localStorage)debug.enable(localStorage.debug)}catch(e){}});require.register("yields-prevent/index.js",function(exports,require,module){module.exports=function(e){e=e||window.event;return e.preventDefault?e.preventDefault():e.returnValue=false}});require.register("analytics/lib/index.js",function(exports,require,module){var Integrations=require("integrations");var Analytics=require("./analytics");var each=require("each");var analytics=module.exports=exports=new Analytics;analytics.require=require;exports.VERSION="1.4.0";each(Integrations,function(name,Integration){analytics.use(Integration)})});require.register("analytics/lib/analytics.js",function(exports,require,module){var after=require("after");var bind=require("bind");var callback=require("callback");var canonical=require("canonical");var clone=require("clone");var cookie=require("./cookie");var debug=require("debug");var defaults=require("defaults");var each=require("each");var Emitter=require("emitter");var group=require("./group");var is=require("is");var isEmail=require("is-email");var isMeta=require("is-meta");var newDate=require("new-date");var on=require("event").bind;var prevent=require("prevent");var querystring=require("querystring");var size=require("object").length;var store=require("./store");var url=require("url");var user=require("./user");var Facade=require("facade");var Identify=Facade.Identify;var Group=Facade.Group;var Alias=Facade.Alias;var Track=Facade.Track;var Page=Facade.Page;module.exports=Analytics;function Analytics(){this.Integrations={};this._integrations={};this._readied=false;this._timeout=300;this._user=user;bind.all(this);var self=this;this.on("initialize",function(settings,options){if(options.initialPageview)self.page()});this.on("initialize",function(){self._parseQuery()})}Emitter(Analytics.prototype);Analytics.prototype.use=function(plugin){plugin(this);return this};Analytics.prototype.addIntegration=function(Integration){var name=Integration.prototype.name;if(!name)throw new TypeError("attempted to add an invalid integration");this.Integrations[name]=Integration;return this};Analytics.prototype.init=Analytics.prototype.initialize=function(settings,options){settings=settings||{};options=options||{};this._options(options);this._readied=false;this._integrations={};user.load();group.load();var self=this;each(settings,function(name){var Integration=self.Integrations[name];if(!Integration)delete settings[name]});var ready=after(size(settings),function(){self._readied=true;self.emit("ready")});each(settings,function(name,opts){var Integration=self.Integrations[name];if(options.initialPageview&&opts.initialPageview===false){Integration.prototype.page=after(2,Integration.prototype.page)}var integration=new Integration(clone(opts));integration.once("ready",ready);integration.initialize();self._integrations[name]=integration});this.initialized=true;this.emit("initialize",settings,options);return this};Analytics.prototype.identify=function(id,traits,options,fn){if(is.fn(options))fn=options,options=null;if(is.fn(traits))fn=traits,options=null,traits=null;if(is.object(id))options=traits,traits=id,id=user.id();user.identify(id,traits);id=user.id();traits=user.traits();this._invoke("identify",new Identify({options:options,traits:traits,userId:id}));this.emit("identify",id,traits,options);this._callback(fn);return this};Analytics.prototype.user=function(){return user};Analytics.prototype.group=function(id,traits,options,fn){if(0===arguments.length)return group;if(is.fn(options))fn=options,options=null;if(is.fn(traits))fn=traits,options=null,traits=null;if(is.object(id))options=traits,traits=id,id=group.id();group.identify(id,traits);id=group.id();traits=group.traits();this._invoke("group",new Group({options:options,traits:traits,groupId:id}));this.emit("group",id,traits,options);this._callback(fn);return this};Analytics.prototype.track=function(event,properties,options,fn){if(is.fn(options))fn=options,options=null;if(is.fn(properties))fn=properties,options=null,properties=null;this._invoke("track",new Track({properties:properties,options:options,event:event}));this.emit("track",event,properties,options);this._callback(fn);return this};Analytics.prototype.trackClick=Analytics.prototype.trackLink=function(links,event,properties){if(!links)return this;if(is.element(links))links=[links];var self=this;each(links,function(el){on(el,"click",function(e){var ev=is.fn(event)?event(el):event;var props=is.fn(properties)?properties(el):properties;self.track(ev,props);if(el.href&&el.target!=="_blank"&&!isMeta(e)){prevent(e);self._callback(function(){window.location.href=el.href})}})});return this};Analytics.prototype.trackSubmit=Analytics.prototype.trackForm=function(forms,event,properties){if(!forms)return this;if(is.element(forms))forms=[forms];var self=this;each(forms,function(el){function handler(e){prevent(e);var ev=is.fn(event)?event(el):event;var props=is.fn(properties)?properties(el):properties;self.track(ev,props);self._callback(function(){el.submit()})}var $=window.jQuery||window.Zepto;if($){$(el).submit(handler)}else{on(el,"submit",handler)}});return this};Analytics.prototype.page=function(category,name,properties,options,fn){if(is.fn(options))fn=options,options=null;if(is.fn(properties))fn=properties,options=properties=null;if(is.fn(name))fn=name,options=properties=name=null;if(is.object(category))options=name,properties=category,name=category=null;if(is.object(name))options=properties,properties=name,name=null;if(is.string(category)&&!is.string(name))name=category,category=null;var defs={path:canonicalPath(),referrer:document.referrer,title:document.title,search:location.search};if(name)defs.name=name;if(category)defs.category=category;properties=clone(properties)||{};defaults(properties,defs);properties.url=properties.url||canonicalUrl(properties.search);this._invoke("page",new Page({properties:properties,category:category,options:options,name:name}));this.emit("page",category,name,properties,options);this._callback(fn);return this};Analytics.prototype.pageview=function(url,options){var properties={};if(url)properties.path=url;this.page(properties);return this};Analytics.prototype.alias=function(to,from,options,fn){if(is.fn(options))fn=options,options=null;if(is.fn(from))fn=from,options=null,from=null;if(is.object(from))options=from,from=null;this._invoke("alias",new Alias({options:options,from:from,to:to}));this.emit("alias",to,from,options);this._callback(fn);return this};Analytics.prototype.ready=function(fn){if(!is.fn(fn))return this;this._readied?callback.async(fn):this.once("ready",fn);return this};Analytics.prototype.timeout=function(timeout){this._timeout=timeout};Analytics.prototype.debug=function(str){if(0==arguments.length||str){debug.enable("analytics:"+(str||"*"))}else{debug.disable()}};Analytics.prototype._options=function(options){options=options||{};cookie.options(options.cookie);store.options(options.localStorage);user.options(options.user);group.options(options.group);return this};Analytics.prototype._callback=function(fn){callback.async(fn,this._timeout);return this};Analytics.prototype._invoke=function(method,facade){var options=facade.options();this.emit("invoke",facade);each(this._integrations,function(name,integration){if(!facade.enabled(name))return;integration.invoke.call(integration,method,facade)});return this};Analytics.prototype.push=function(args){var method=args.shift();if(!this[method])return;this[method].apply(this,args)};Analytics.prototype._parseQuery=function(){var q=querystring.parse(window.location.search);if(q.ajs_uid)this.identify(q.ajs_uid);if(q.ajs_event)this.track(q.ajs_event);return this};function canonicalPath(){var canon=canonical();if(!canon)return window.location.pathname;var parsed=url.parse(canon);return parsed.pathname}function canonicalUrl(search){var canon=canonical();if(canon)return~canon.indexOf("?")?canon:canon+search;var url=window.location.href;var i=url.indexOf("#");return-1==i?url:url.slice(0,i)}});require.register("analytics/lib/cookie.js",function(exports,require,module){var bind=require("bind");var cookie=require("cookie");var clone=require("clone");var defaults=require("defaults");var json=require("json");var topDomain=require("top-domain");function Cookie(options){this.options(options)}Cookie.prototype.options=function(options){if(arguments.length===0)return this._options;options=options||{};var domain="."+topDomain(window.location.href);if("."==domain)domain="";defaults(options,{maxage:31536e6,path:"/",domain:domain});this._options=options};Cookie.prototype.set=function(key,value){try{value=json.stringify(value);cookie(key,value,clone(this._options));return true}catch(e){return false}};Cookie.prototype.get=function(key){try{var value=cookie(key);value=value?json.parse(value):null;return value}catch(e){return null}};Cookie.prototype.remove=function(key){try{cookie(key,null,clone(this._options));return true}catch(e){return false}};module.exports=bind.all(new Cookie);module.exports.Cookie=Cookie});require.register("analytics/lib/entity.js",function(exports,require,module){var traverse=require("isodate-traverse");var defaults=require("defaults");var cookie=require("./cookie");var store=require("./store");var extend=require("extend");var clone=require("clone");module.exports=Entity;function Entity(options){this.options(options)}Entity.prototype.options=function(options){if(arguments.length===0)return this._options;options||(options={});defaults(options,this.defaults||{});this._options=options};Entity.prototype.id=function(id){switch(arguments.length){case 0:return this._getId();case 1:return this._setId(id)}};Entity.prototype._getId=function(){var ret=this._options.persist?cookie.get(this._options.cookie.key):this._id;return ret===undefined?null:ret};Entity.prototype._setId=function(id){if(this._options.persist){cookie.set(this._options.cookie.key,id)}else{this._id=id}};Entity.prototype.properties=Entity.prototype.traits=function(traits){switch(arguments.length){case 0:return this._getTraits();case 1:return this._setTraits(traits)}};Entity.prototype._getTraits=function(){var ret=this._options.persist?store.get(this._options.localStorage.key):this._traits;return ret?traverse(clone(ret)):{}};Entity.prototype._setTraits=function(traits){traits||(traits={});if(this._options.persist){store.set(this._options.localStorage.key,traits)}else{this._traits=traits}};Entity.prototype.identify=function(id,traits){traits||(traits={});var current=this.id();if(current===null||current===id)traits=extend(this.traits(),traits);if(id)this.id(id);this.debug("identify %o, %o",id,traits);this.traits(traits);this.save()};Entity.prototype.save=function(){if(!this._options.persist)return false;cookie.set(this._options.cookie.key,this.id());store.set(this._options.localStorage.key,this.traits());return true};Entity.prototype.logout=function(){this.id(null);this.traits({});cookie.remove(this._options.cookie.key);store.remove(this._options.localStorage.key)};Entity.prototype.reset=function(){this.logout();this.options({})};Entity.prototype.load=function(){this.id(cookie.get(this._options.cookie.key));this.traits(store.get(this._options.localStorage.key))}});require.register("analytics/lib/group.js",function(exports,require,module){var debug=require("debug")("analytics:group");var Entity=require("./entity");var inherit=require("inherit");var bind=require("bind");Group.defaults={persist:true,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}};function Group(options){this.defaults=Group.defaults;this.debug=debug;Entity.call(this,options)}inherit(Group,Entity);module.exports=bind.all(new Group);module.exports.Group=Group});require.register("analytics/lib/store.js",function(exports,require,module){var bind=require("bind");var defaults=require("defaults");var store=require("store");function Store(options){this.options(options)}Store.prototype.options=function(options){if(arguments.length===0)return this._options;options=options||{};defaults(options,{enabled:true});this.enabled=options.enabled&&store.enabled;this._options=options};Store.prototype.set=function(key,value){if(!this.enabled)return false;return store.set(key,value)};Store.prototype.get=function(key){if(!this.enabled)return null;return store.get(key)};Store.prototype.remove=function(key){if(!this.enabled)return false;return store.remove(key)};module.exports=bind.all(new Store);module.exports.Store=Store});require.register("analytics/lib/user.js",function(exports,require,module){var debug=require("debug")("analytics:user");var Entity=require("./entity");var inherit=require("inherit");var bind=require("bind");var cookie=require("./cookie");User.defaults={persist:true,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}};function User(options){this.defaults=User.defaults;this.debug=debug;Entity.call(this,options)}inherit(User,Entity);User.prototype.load=function(){if(this._loadOldCookie())return;Entity.prototype.load.call(this)};User.prototype._loadOldCookie=function(){var user=cookie.get(this._options.cookie.oldKey);if(!user)return false;this.id(user.id);this.traits(user.traits);cookie.remove(this._options.cookie.oldKey);return true};module.exports=bind.all(new User);module.exports.User=User});require.register("segmentio-analytics.js-integrations/lib/slugs.json",function(exports,require,module){module.exports=["adroll","adwords","alexa","amplitude","awesm","awesomatic","bing-ads","bronto","bugherd","bugsnag","chartbeat","churnbee","clicktale","clicky","comscore","crazy-egg","curebit","customerio","drip","errorception","evergage","facebook-ads","foxmetrics","frontleaf","gauges","get-satisfaction","google-analytics","google-tag-manager","gosquared","heap","hellobar","hittail","hubspot","improvely","inspectlet","intercom","keen-io","kenshoo","kissmetrics","klaviyo","leadlander","livechat","lucky-orange","lytics","mixpanel","mojn","mouseflow","mousestats","navilytics","olark","optimizely","perfect-audience","pingdom","piwik","preact","qualaroo","quantcast","rollbar","saasquatch","sentry","snapengage","spinnakr","tapstream","trakio","twitter-ads","usercycle","userfox","uservoice","vero","visual-website-optimizer","webengage","woopra","yandex-metrica"]});require.alias("avetisk-defaults/index.js","analytics/deps/defaults/index.js");require.alias("avetisk-defaults/index.js","defaults/index.js");require.alias("component-clone/index.js","analytics/deps/clone/index.js");require.alias("component-clone/index.js","clone/index.js");require.alias("component-type/index.js","component-clone/deps/type/index.js");require.alias("component-cookie/index.js","analytics/deps/cookie/index.js");require.alias("component-cookie/index.js","cookie/index.js");require.alias("component-each/index.js","analytics/deps/each/index.js");require.alias("component-each/index.js","each/index.js");require.alias("component-type/index.js","component-each/deps/type/index.js");require.alias("component-emitter/index.js","analytics/deps/emitter/index.js");require.alias("component-emitter/index.js","emitter/index.js");require.alias("component-indexof/index.js","component-emitter/deps/indexof/index.js");require.alias("component-event/index.js","analytics/deps/event/index.js");require.alias("component-event/index.js","event/index.js");require.alias("component-inherit/index.js","analytics/deps/inherit/index.js");require.alias("component-inherit/index.js","inherit/index.js");require.alias("component-object/index.js","analytics/deps/object/index.js");require.alias("component-object/index.js","object/index.js");require.alias("component-querystring/index.js","analytics/deps/querystring/index.js");require.alias("component-querystring/index.js","querystring/index.js");require.alias("component-trim/index.js","component-querystring/deps/trim/index.js");require.alias("component-type/index.js","component-querystring/deps/type/index.js");require.alias("component-url/index.js","analytics/deps/url/index.js");require.alias("component-url/index.js","url/index.js");require.alias("ianstormtaylor-bind/index.js","analytics/deps/bind/index.js");require.alias("ianstormtaylor-bind/index.js","bind/index.js");require.alias("component-bind/index.js","ianstormtaylor-bind/deps/bind/index.js");require.alias("segmentio-bind-all/index.js","ianstormtaylor-bind/deps/bind-all/index.js");require.alias("component-bind/index.js","segmentio-bind-all/deps/bind/index.js");require.alias("component-type/index.js","segmentio-bind-all/deps/type/index.js");require.alias("ianstormtaylor-callback/index.js","analytics/deps/callback/index.js");require.alias("ianstormtaylor-callback/index.js","callback/index.js");require.alias("timoxley-next-tick/index.js","ianstormtaylor-callback/deps/next-tick/index.js");require.alias("ianstormtaylor-is/index.js","analytics/deps/is/index.js");require.alias("ianstormtaylor-is/index.js","is/index.js");require.alias("component-type/index.js","ianstormtaylor-is/deps/type/index.js");require.alias("ianstormtaylor-is-empty/index.js","ianstormtaylor-is/deps/is-empty/index.js");require.alias("segmentio-after/index.js","analytics/deps/after/index.js");require.alias("segmentio-after/index.js","after/index.js");require.alias("segmentio-analytics.js-integrations/index.js","analytics/deps/integrations/index.js");require.alias("segmentio-analytics.js-integrations/lib/adroll.js","analytics/deps/integrations/lib/adroll.js");require.alias("segmentio-analytics.js-integrations/lib/adwords.js","analytics/deps/integrations/lib/adwords.js");require.alias("segmentio-analytics.js-integrations/lib/alexa.js","analytics/deps/integrations/lib/alexa.js");require.alias("segmentio-analytics.js-integrations/lib/amplitude.js","analytics/deps/integrations/lib/amplitude.js");require.alias("segmentio-analytics.js-integrations/lib/awesm.js","analytics/deps/integrations/lib/awesm.js");require.alias("segmentio-analytics.js-integrations/lib/awesomatic.js","analytics/deps/integrations/lib/awesomatic.js");require.alias("segmentio-analytics.js-integrations/lib/bing-ads.js","analytics/deps/integrations/lib/bing-ads.js");require.alias("segmentio-analytics.js-integrations/lib/bronto.js","analytics/deps/integrations/lib/bronto.js");require.alias("segmentio-analytics.js-integrations/lib/bugherd.js","analytics/deps/integrations/lib/bugherd.js");require.alias("segmentio-analytics.js-integrations/lib/bugsnag.js","analytics/deps/integrations/lib/bugsnag.js");require.alias("segmentio-analytics.js-integrations/lib/chartbeat.js","analytics/deps/integrations/lib/chartbeat.js");require.alias("segmentio-analytics.js-integrations/lib/churnbee.js","analytics/deps/integrations/lib/churnbee.js");require.alias("segmentio-analytics.js-integrations/lib/clicktale.js","analytics/deps/integrations/lib/clicktale.js");require.alias("segmentio-analytics.js-integrations/lib/clicky.js","analytics/deps/integrations/lib/clicky.js");require.alias("segmentio-analytics.js-integrations/lib/comscore.js","analytics/deps/integrations/lib/comscore.js");require.alias("segmentio-analytics.js-integrations/lib/crazy-egg.js","analytics/deps/integrations/lib/crazy-egg.js");require.alias("segmentio-analytics.js-integrations/lib/curebit.js","analytics/deps/integrations/lib/curebit.js");require.alias("segmentio-analytics.js-integrations/lib/customerio.js","analytics/deps/integrations/lib/customerio.js");require.alias("segmentio-analytics.js-integrations/lib/drip.js","analytics/deps/integrations/lib/drip.js");require.alias("segmentio-analytics.js-integrations/lib/errorception.js","analytics/deps/integrations/lib/errorception.js");require.alias("segmentio-analytics.js-integrations/lib/evergage.js","analytics/deps/integrations/lib/evergage.js");require.alias("segmentio-analytics.js-integrations/lib/facebook-ads.js","analytics/deps/integrations/lib/facebook-ads.js");require.alias("segmentio-analytics.js-integrations/lib/foxmetrics.js","analytics/deps/integrations/lib/foxmetrics.js");require.alias("segmentio-analytics.js-integrations/lib/frontleaf.js","analytics/deps/integrations/lib/frontleaf.js");require.alias("segmentio-analytics.js-integrations/lib/gauges.js","analytics/deps/integrations/lib/gauges.js");require.alias("segmentio-analytics.js-integrations/lib/get-satisfaction.js","analytics/deps/integrations/lib/get-satisfaction.js");require.alias("segmentio-analytics.js-integrations/lib/google-analytics.js","analytics/deps/integrations/lib/google-analytics.js");require.alias("segmentio-analytics.js-integrations/lib/google-tag-manager.js","analytics/deps/integrations/lib/google-tag-manager.js");require.alias("segmentio-analytics.js-integrations/lib/gosquared.js","analytics/deps/integrations/lib/gosquared.js");require.alias("segmentio-analytics.js-integrations/lib/heap.js","analytics/deps/integrations/lib/heap.js");require.alias("segmentio-analytics.js-integrations/lib/hellobar.js","analytics/deps/integrations/lib/hellobar.js");require.alias("segmentio-analytics.js-integrations/lib/hittail.js","analytics/deps/integrations/lib/hittail.js");require.alias("segmentio-analytics.js-integrations/lib/hubspot.js","analytics/deps/integrations/lib/hubspot.js");require.alias("segmentio-analytics.js-integrations/lib/improvely.js","analytics/deps/integrations/lib/improvely.js");require.alias("segmentio-analytics.js-integrations/lib/inspectlet.js","analytics/deps/integrations/lib/inspectlet.js");require.alias("segmentio-analytics.js-integrations/lib/intercom.js","analytics/deps/integrations/lib/intercom.js");require.alias("segmentio-analytics.js-integrations/lib/keen-io.js","analytics/deps/integrations/lib/keen-io.js");require.alias("segmentio-analytics.js-integrations/lib/kenshoo.js","analytics/deps/integrations/lib/kenshoo.js");require.alias("segmentio-analytics.js-integrations/lib/kissmetrics.js","analytics/deps/integrations/lib/kissmetrics.js");require.alias("segmentio-analytics.js-integrations/lib/klaviyo.js","analytics/deps/integrations/lib/klaviyo.js");require.alias("segmentio-analytics.js-integrations/lib/leadlander.js","analytics/deps/integrations/lib/leadlander.js");require.alias("segmentio-analytics.js-integrations/lib/livechat.js","analytics/deps/integrations/lib/livechat.js");require.alias("segmentio-analytics.js-integrations/lib/lucky-orange.js","analytics/deps/integrations/lib/lucky-orange.js");require.alias("segmentio-analytics.js-integrations/lib/lytics.js","analytics/deps/integrations/lib/lytics.js"); require.alias("segmentio-analytics.js-integrations/lib/mixpanel.js","analytics/deps/integrations/lib/mixpanel.js");require.alias("segmentio-analytics.js-integrations/lib/mojn.js","analytics/deps/integrations/lib/mojn.js");require.alias("segmentio-analytics.js-integrations/lib/mouseflow.js","analytics/deps/integrations/lib/mouseflow.js");require.alias("segmentio-analytics.js-integrations/lib/mousestats.js","analytics/deps/integrations/lib/mousestats.js");require.alias("segmentio-analytics.js-integrations/lib/navilytics.js","analytics/deps/integrations/lib/navilytics.js");require.alias("segmentio-analytics.js-integrations/lib/olark.js","analytics/deps/integrations/lib/olark.js");require.alias("segmentio-analytics.js-integrations/lib/optimizely.js","analytics/deps/integrations/lib/optimizely.js");require.alias("segmentio-analytics.js-integrations/lib/perfect-audience.js","analytics/deps/integrations/lib/perfect-audience.js");require.alias("segmentio-analytics.js-integrations/lib/pingdom.js","analytics/deps/integrations/lib/pingdom.js");require.alias("segmentio-analytics.js-integrations/lib/piwik.js","analytics/deps/integrations/lib/piwik.js");require.alias("segmentio-analytics.js-integrations/lib/preact.js","analytics/deps/integrations/lib/preact.js");require.alias("segmentio-analytics.js-integrations/lib/qualaroo.js","analytics/deps/integrations/lib/qualaroo.js");require.alias("segmentio-analytics.js-integrations/lib/quantcast.js","analytics/deps/integrations/lib/quantcast.js");require.alias("segmentio-analytics.js-integrations/lib/rollbar.js","analytics/deps/integrations/lib/rollbar.js");require.alias("segmentio-analytics.js-integrations/lib/saasquatch.js","analytics/deps/integrations/lib/saasquatch.js");require.alias("segmentio-analytics.js-integrations/lib/sentry.js","analytics/deps/integrations/lib/sentry.js");require.alias("segmentio-analytics.js-integrations/lib/snapengage.js","analytics/deps/integrations/lib/snapengage.js");require.alias("segmentio-analytics.js-integrations/lib/spinnakr.js","analytics/deps/integrations/lib/spinnakr.js");require.alias("segmentio-analytics.js-integrations/lib/tapstream.js","analytics/deps/integrations/lib/tapstream.js");require.alias("segmentio-analytics.js-integrations/lib/trakio.js","analytics/deps/integrations/lib/trakio.js");require.alias("segmentio-analytics.js-integrations/lib/twitter-ads.js","analytics/deps/integrations/lib/twitter-ads.js");require.alias("segmentio-analytics.js-integrations/lib/usercycle.js","analytics/deps/integrations/lib/usercycle.js");require.alias("segmentio-analytics.js-integrations/lib/userfox.js","analytics/deps/integrations/lib/userfox.js");require.alias("segmentio-analytics.js-integrations/lib/uservoice.js","analytics/deps/integrations/lib/uservoice.js");require.alias("segmentio-analytics.js-integrations/lib/vero.js","analytics/deps/integrations/lib/vero.js");require.alias("segmentio-analytics.js-integrations/lib/visual-website-optimizer.js","analytics/deps/integrations/lib/visual-website-optimizer.js");require.alias("segmentio-analytics.js-integrations/lib/webengage.js","analytics/deps/integrations/lib/webengage.js");require.alias("segmentio-analytics.js-integrations/lib/woopra.js","analytics/deps/integrations/lib/woopra.js");require.alias("segmentio-analytics.js-integrations/lib/yandex-metrica.js","analytics/deps/integrations/lib/yandex-metrica.js");require.alias("segmentio-analytics.js-integrations/index.js","integrations/index.js");require.alias("avetisk-defaults/index.js","segmentio-analytics.js-integrations/deps/defaults/index.js");require.alias("component-clone/index.js","segmentio-analytics.js-integrations/deps/clone/index.js");require.alias("component-type/index.js","component-clone/deps/type/index.js");require.alias("component-domify/index.js","segmentio-analytics.js-integrations/deps/domify/index.js");require.alias("component-each/index.js","segmentio-analytics.js-integrations/deps/each/index.js");require.alias("component-type/index.js","component-each/deps/type/index.js");require.alias("component-once/index.js","segmentio-analytics.js-integrations/deps/once/index.js");require.alias("component-type/index.js","segmentio-analytics.js-integrations/deps/type/index.js");require.alias("component-url/index.js","segmentio-analytics.js-integrations/deps/url/index.js");require.alias("ianstormtaylor-callback/index.js","segmentio-analytics.js-integrations/deps/callback/index.js");require.alias("timoxley-next-tick/index.js","ianstormtaylor-callback/deps/next-tick/index.js");require.alias("ianstormtaylor-bind/index.js","segmentio-analytics.js-integrations/deps/bind/index.js");require.alias("component-bind/index.js","ianstormtaylor-bind/deps/bind/index.js");require.alias("segmentio-bind-all/index.js","ianstormtaylor-bind/deps/bind-all/index.js");require.alias("component-bind/index.js","segmentio-bind-all/deps/bind/index.js");require.alias("component-type/index.js","segmentio-bind-all/deps/type/index.js");require.alias("ianstormtaylor-is/index.js","segmentio-analytics.js-integrations/deps/is/index.js");require.alias("component-type/index.js","ianstormtaylor-is/deps/type/index.js");require.alias("ianstormtaylor-is-empty/index.js","ianstormtaylor-is/deps/is-empty/index.js");require.alias("ianstormtaylor-is-empty/index.js","segmentio-analytics.js-integrations/deps/is-empty/index.js");require.alias("segmentio-alias/index.js","segmentio-analytics.js-integrations/deps/alias/index.js");require.alias("component-clone/index.js","segmentio-alias/deps/clone/index.js");require.alias("component-type/index.js","component-clone/deps/type/index.js");require.alias("component-type/index.js","segmentio-alias/deps/type/index.js");require.alias("segmentio-analytics.js-integration/lib/index.js","segmentio-analytics.js-integrations/deps/integration/lib/index.js");require.alias("segmentio-analytics.js-integration/lib/protos.js","segmentio-analytics.js-integrations/deps/integration/lib/protos.js");require.alias("segmentio-analytics.js-integration/lib/events.js","segmentio-analytics.js-integrations/deps/integration/lib/events.js");require.alias("segmentio-analytics.js-integration/lib/statics.js","segmentio-analytics.js-integrations/deps/integration/lib/statics.js");require.alias("segmentio-analytics.js-integration/lib/index.js","segmentio-analytics.js-integrations/deps/integration/index.js");require.alias("avetisk-defaults/index.js","segmentio-analytics.js-integration/deps/defaults/index.js");require.alias("component-clone/index.js","segmentio-analytics.js-integration/deps/clone/index.js");require.alias("component-type/index.js","component-clone/deps/type/index.js");require.alias("component-emitter/index.js","segmentio-analytics.js-integration/deps/emitter/index.js");require.alias("component-indexof/index.js","component-emitter/deps/indexof/index.js");require.alias("ianstormtaylor-bind/index.js","segmentio-analytics.js-integration/deps/bind/index.js");require.alias("component-bind/index.js","ianstormtaylor-bind/deps/bind/index.js");require.alias("segmentio-bind-all/index.js","ianstormtaylor-bind/deps/bind-all/index.js");require.alias("component-bind/index.js","segmentio-bind-all/deps/bind/index.js");require.alias("component-type/index.js","segmentio-bind-all/deps/type/index.js");require.alias("ianstormtaylor-callback/index.js","segmentio-analytics.js-integration/deps/callback/index.js");require.alias("timoxley-next-tick/index.js","ianstormtaylor-callback/deps/next-tick/index.js");require.alias("ianstormtaylor-to-no-case/index.js","segmentio-analytics.js-integration/deps/to-no-case/index.js");require.alias("component-type/index.js","segmentio-analytics.js-integration/deps/type/index.js");require.alias("segmentio-after/index.js","segmentio-analytics.js-integration/deps/after/index.js");require.alias("timoxley-next-tick/index.js","segmentio-analytics.js-integration/deps/next-tick/index.js");require.alias("yields-slug/index.js","segmentio-analytics.js-integration/deps/slug/index.js");require.alias("visionmedia-debug/index.js","segmentio-analytics.js-integration/deps/debug/index.js");require.alias("visionmedia-debug/debug.js","segmentio-analytics.js-integration/deps/debug/debug.js");require.alias("segmentio-analytics.js-integration/lib/index.js","segmentio-analytics.js-integration/index.js");require.alias("segmentio-canonical/index.js","segmentio-analytics.js-integrations/deps/canonical/index.js");require.alias("segmentio-convert-dates/index.js","segmentio-analytics.js-integrations/deps/convert-dates/index.js");require.alias("component-clone/index.js","segmentio-convert-dates/deps/clone/index.js");require.alias("component-type/index.js","component-clone/deps/type/index.js");require.alias("ianstormtaylor-is/index.js","segmentio-convert-dates/deps/is/index.js");require.alias("component-type/index.js","ianstormtaylor-is/deps/type/index.js");require.alias("ianstormtaylor-is-empty/index.js","ianstormtaylor-is/deps/is-empty/index.js");require.alias("segmentio-extend/index.js","segmentio-analytics.js-integrations/deps/extend/index.js");require.alias("segmentio-facade/lib/index.js","segmentio-analytics.js-integrations/deps/facade/lib/index.js");require.alias("segmentio-facade/lib/alias.js","segmentio-analytics.js-integrations/deps/facade/lib/alias.js");require.alias("segmentio-facade/lib/facade.js","segmentio-analytics.js-integrations/deps/facade/lib/facade.js");require.alias("segmentio-facade/lib/group.js","segmentio-analytics.js-integrations/deps/facade/lib/group.js");require.alias("segmentio-facade/lib/page.js","segmentio-analytics.js-integrations/deps/facade/lib/page.js");require.alias("segmentio-facade/lib/identify.js","segmentio-analytics.js-integrations/deps/facade/lib/identify.js");require.alias("segmentio-facade/lib/is-enabled.js","segmentio-analytics.js-integrations/deps/facade/lib/is-enabled.js");require.alias("segmentio-facade/lib/track.js","segmentio-analytics.js-integrations/deps/facade/lib/track.js");require.alias("segmentio-facade/lib/screen.js","segmentio-analytics.js-integrations/deps/facade/lib/screen.js");require.alias("segmentio-facade/lib/index.js","segmentio-analytics.js-integrations/deps/facade/index.js");require.alias("camshaft-require-component/index.js","segmentio-facade/deps/require-component/index.js");require.alias("segmentio-isodate-traverse/index.js","segmentio-facade/deps/isodate-traverse/index.js");require.alias("component-each/index.js","segmentio-isodate-traverse/deps/each/index.js");require.alias("component-type/index.js","component-each/deps/type/index.js");require.alias("ianstormtaylor-is/index.js","segmentio-isodate-traverse/deps/is/index.js");require.alias("component-type/index.js","ianstormtaylor-is/deps/type/index.js");require.alias("ianstormtaylor-is-empty/index.js","ianstormtaylor-is/deps/is-empty/index.js");require.alias("segmentio-isodate/index.js","segmentio-isodate-traverse/deps/isodate/index.js");require.alias("component-clone/index.js","segmentio-facade/deps/clone/index.js");require.alias("component-type/index.js","component-clone/deps/type/index.js");require.alias("component-inherit/index.js","segmentio-facade/deps/inherit/index.js");require.alias("component-trim/index.js","segmentio-facade/deps/trim/index.js");require.alias("segmentio-is-email/index.js","segmentio-facade/deps/is-email/index.js");require.alias("segmentio-new-date/lib/index.js","segmentio-facade/deps/new-date/lib/index.js");require.alias("segmentio-new-date/lib/milliseconds.js","segmentio-facade/deps/new-date/lib/milliseconds.js");require.alias("segmentio-new-date/lib/seconds.js","segmentio-facade/deps/new-date/lib/seconds.js");require.alias("segmentio-new-date/lib/index.js","segmentio-facade/deps/new-date/index.js");require.alias("ianstormtaylor-is/index.js","segmentio-new-date/deps/is/index.js");require.alias("component-type/index.js","ianstormtaylor-is/deps/type/index.js");require.alias("ianstormtaylor-is-empty/index.js","ianstormtaylor-is/deps/is-empty/index.js");require.alias("segmentio-isodate/index.js","segmentio-new-date/deps/isodate/index.js");require.alias("segmentio-new-date/lib/index.js","segmentio-new-date/index.js");require.alias("segmentio-obj-case/index.js","segmentio-facade/deps/obj-case/index.js");require.alias("segmentio-obj-case/index.js","segmentio-facade/deps/obj-case/index.js");require.alias("ianstormtaylor-case/lib/index.js","segmentio-obj-case/deps/case/lib/index.js");require.alias("ianstormtaylor-case/lib/cases.js","segmentio-obj-case/deps/case/lib/cases.js");require.alias("ianstormtaylor-case/lib/index.js","segmentio-obj-case/deps/case/index.js");require.alias("ianstormtaylor-to-camel-case/index.js","ianstormtaylor-case/deps/to-camel-case/index.js");require.alias("ianstormtaylor-to-space-case/index.js","ianstormtaylor-to-camel-case/deps/to-space-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-space-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-capital-case/index.js","ianstormtaylor-case/deps/to-capital-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-capital-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-constant-case/index.js","ianstormtaylor-case/deps/to-constant-case/index.js");require.alias("ianstormtaylor-to-snake-case/index.js","ianstormtaylor-to-constant-case/deps/to-snake-case/index.js");require.alias("ianstormtaylor-to-space-case/index.js","ianstormtaylor-to-snake-case/deps/to-space-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-space-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-dot-case/index.js","ianstormtaylor-case/deps/to-dot-case/index.js");require.alias("ianstormtaylor-to-space-case/index.js","ianstormtaylor-to-dot-case/deps/to-space-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-space-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-pascal-case/index.js","ianstormtaylor-case/deps/to-pascal-case/index.js");require.alias("ianstormtaylor-to-space-case/index.js","ianstormtaylor-to-pascal-case/deps/to-space-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-space-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-sentence-case/index.js","ianstormtaylor-case/deps/to-sentence-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-sentence-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-slug-case/index.js","ianstormtaylor-case/deps/to-slug-case/index.js");require.alias("ianstormtaylor-to-space-case/index.js","ianstormtaylor-to-slug-case/deps/to-space-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-space-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-snake-case/index.js","ianstormtaylor-case/deps/to-snake-case/index.js");require.alias("ianstormtaylor-to-space-case/index.js","ianstormtaylor-to-snake-case/deps/to-space-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-space-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-space-case/index.js","ianstormtaylor-case/deps/to-space-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-space-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-title-case/index.js","ianstormtaylor-case/deps/to-title-case/index.js");require.alias("component-escape-regexp/index.js","ianstormtaylor-to-title-case/deps/escape-regexp/index.js");require.alias("ianstormtaylor-map/index.js","ianstormtaylor-to-title-case/deps/map/index.js");require.alias("component-each/index.js","ianstormtaylor-map/deps/each/index.js");require.alias("component-type/index.js","component-each/deps/type/index.js");require.alias("ianstormtaylor-title-case-minors/index.js","ianstormtaylor-to-title-case/deps/title-case-minors/index.js");require.alias("ianstormtaylor-to-capital-case/index.js","ianstormtaylor-to-title-case/deps/to-capital-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-capital-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-case/lib/index.js","ianstormtaylor-case/index.js");require.alias("segmentio-obj-case/index.js","segmentio-obj-case/index.js");require.alias("segmentio-facade/lib/index.js","segmentio-facade/index.js");require.alias("segmentio-global-queue/index.js","segmentio-analytics.js-integrations/deps/global-queue/index.js");require.alias("segmentio-is-email/index.js","segmentio-analytics.js-integrations/deps/is-email/index.js");require.alias("segmentio-load-date/index.js","segmentio-analytics.js-integrations/deps/load-date/index.js");require.alias("segmentio-load-script/index.js","segmentio-analytics.js-integrations/deps/load-script/index.js");require.alias("component-type/index.js","segmentio-load-script/deps/type/index.js");require.alias("segmentio-script-onload/index.js","segmentio-analytics.js-integrations/deps/script-onload/index.js");require.alias("segmentio-script-onload/index.js","segmentio-analytics.js-integrations/deps/script-onload/index.js");require.alias("segmentio-script-onload/index.js","segmentio-script-onload/index.js");require.alias("segmentio-on-body/index.js","segmentio-analytics.js-integrations/deps/on-body/index.js");require.alias("component-each/index.js","segmentio-on-body/deps/each/index.js");require.alias("component-type/index.js","component-each/deps/type/index.js");require.alias("segmentio-on-error/index.js","segmentio-analytics.js-integrations/deps/on-error/index.js");require.alias("segmentio-to-iso-string/index.js","segmentio-analytics.js-integrations/deps/to-iso-string/index.js");require.alias("segmentio-to-unix-timestamp/index.js","segmentio-analytics.js-integrations/deps/to-unix-timestamp/index.js");require.alias("segmentio-use-https/index.js","segmentio-analytics.js-integrations/deps/use-https/index.js");require.alias("segmentio-when/index.js","segmentio-analytics.js-integrations/deps/when/index.js");require.alias("ianstormtaylor-callback/index.js","segmentio-when/deps/callback/index.js");require.alias("timoxley-next-tick/index.js","ianstormtaylor-callback/deps/next-tick/index.js");require.alias("timoxley-next-tick/index.js","segmentio-analytics.js-integrations/deps/next-tick/index.js");require.alias("yields-slug/index.js","segmentio-analytics.js-integrations/deps/slug/index.js");require.alias("visionmedia-batch/index.js","segmentio-analytics.js-integrations/deps/batch/index.js");require.alias("component-emitter/index.js","visionmedia-batch/deps/emitter/index.js");require.alias("component-indexof/index.js","component-emitter/deps/indexof/index.js");require.alias("visionmedia-debug/index.js","segmentio-analytics.js-integrations/deps/debug/index.js");require.alias("visionmedia-debug/debug.js","segmentio-analytics.js-integrations/deps/debug/debug.js");require.alias("segmentio-load-pixel/index.js","segmentio-analytics.js-integrations/deps/load-pixel/index.js");require.alias("segmentio-load-pixel/index.js","segmentio-analytics.js-integrations/deps/load-pixel/index.js");require.alias("component-querystring/index.js","segmentio-load-pixel/deps/querystring/index.js");require.alias("component-trim/index.js","component-querystring/deps/trim/index.js");require.alias("component-type/index.js","component-querystring/deps/type/index.js");require.alias("segmentio-substitute/index.js","segmentio-load-pixel/deps/substitute/index.js");require.alias("segmentio-substitute/index.js","segmentio-load-pixel/deps/substitute/index.js");require.alias("segmentio-substitute/index.js","segmentio-substitute/index.js");require.alias("segmentio-load-pixel/index.js","segmentio-load-pixel/index.js");require.alias("segmentio-replace-document-write/index.js","segmentio-analytics.js-integrations/deps/replace-document-write/index.js");require.alias("segmentio-replace-document-write/index.js","segmentio-analytics.js-integrations/deps/replace-document-write/index.js");require.alias("component-domify/index.js","segmentio-replace-document-write/deps/domify/index.js");require.alias("segmentio-replace-document-write/index.js","segmentio-replace-document-write/index.js");require.alias("component-indexof/index.js","segmentio-analytics.js-integrations/deps/indexof/index.js");require.alias("component-object/index.js","segmentio-analytics.js-integrations/deps/object/index.js");require.alias("segmentio-obj-case/index.js","segmentio-analytics.js-integrations/deps/obj-case/index.js");require.alias("segmentio-obj-case/index.js","segmentio-analytics.js-integrations/deps/obj-case/index.js");require.alias("ianstormtaylor-case/lib/index.js","segmentio-obj-case/deps/case/lib/index.js");require.alias("ianstormtaylor-case/lib/cases.js","segmentio-obj-case/deps/case/lib/cases.js");require.alias("ianstormtaylor-case/lib/index.js","segmentio-obj-case/deps/case/index.js");require.alias("ianstormtaylor-to-camel-case/index.js","ianstormtaylor-case/deps/to-camel-case/index.js");require.alias("ianstormtaylor-to-space-case/index.js","ianstormtaylor-to-camel-case/deps/to-space-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-space-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-capital-case/index.js","ianstormtaylor-case/deps/to-capital-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-capital-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-constant-case/index.js","ianstormtaylor-case/deps/to-constant-case/index.js");require.alias("ianstormtaylor-to-snake-case/index.js","ianstormtaylor-to-constant-case/deps/to-snake-case/index.js");require.alias("ianstormtaylor-to-space-case/index.js","ianstormtaylor-to-snake-case/deps/to-space-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-space-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-dot-case/index.js","ianstormtaylor-case/deps/to-dot-case/index.js");require.alias("ianstormtaylor-to-space-case/index.js","ianstormtaylor-to-dot-case/deps/to-space-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-space-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-pascal-case/index.js","ianstormtaylor-case/deps/to-pascal-case/index.js");require.alias("ianstormtaylor-to-space-case/index.js","ianstormtaylor-to-pascal-case/deps/to-space-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-space-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-sentence-case/index.js","ianstormtaylor-case/deps/to-sentence-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-sentence-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-slug-case/index.js","ianstormtaylor-case/deps/to-slug-case/index.js");require.alias("ianstormtaylor-to-space-case/index.js","ianstormtaylor-to-slug-case/deps/to-space-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-space-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-snake-case/index.js","ianstormtaylor-case/deps/to-snake-case/index.js");require.alias("ianstormtaylor-to-space-case/index.js","ianstormtaylor-to-snake-case/deps/to-space-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-space-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-space-case/index.js","ianstormtaylor-case/deps/to-space-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-space-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-title-case/index.js","ianstormtaylor-case/deps/to-title-case/index.js");require.alias("component-escape-regexp/index.js","ianstormtaylor-to-title-case/deps/escape-regexp/index.js");require.alias("ianstormtaylor-map/index.js","ianstormtaylor-to-title-case/deps/map/index.js");require.alias("component-each/index.js","ianstormtaylor-map/deps/each/index.js");require.alias("component-type/index.js","component-each/deps/type/index.js");require.alias("ianstormtaylor-title-case-minors/index.js","ianstormtaylor-to-title-case/deps/title-case-minors/index.js");require.alias("ianstormtaylor-to-capital-case/index.js","ianstormtaylor-to-title-case/deps/to-capital-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-capital-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-case/lib/index.js","ianstormtaylor-case/index.js");require.alias("segmentio-obj-case/index.js","segmentio-obj-case/index.js");require.alias("segmentio-canonical/index.js","analytics/deps/canonical/index.js");require.alias("segmentio-canonical/index.js","canonical/index.js");require.alias("segmentio-extend/index.js","analytics/deps/extend/index.js");require.alias("segmentio-extend/index.js","extend/index.js");require.alias("segmentio-facade/lib/index.js","analytics/deps/facade/lib/index.js");require.alias("segmentio-facade/lib/alias.js","analytics/deps/facade/lib/alias.js");require.alias("segmentio-facade/lib/facade.js","analytics/deps/facade/lib/facade.js");require.alias("segmentio-facade/lib/group.js","analytics/deps/facade/lib/group.js");require.alias("segmentio-facade/lib/page.js","analytics/deps/facade/lib/page.js");require.alias("segmentio-facade/lib/identify.js","analytics/deps/facade/lib/identify.js");require.alias("segmentio-facade/lib/is-enabled.js","analytics/deps/facade/lib/is-enabled.js");require.alias("segmentio-facade/lib/track.js","analytics/deps/facade/lib/track.js");require.alias("segmentio-facade/lib/screen.js","analytics/deps/facade/lib/screen.js");require.alias("segmentio-facade/lib/index.js","analytics/deps/facade/index.js");require.alias("segmentio-facade/lib/index.js","facade/index.js");require.alias("camshaft-require-component/index.js","segmentio-facade/deps/require-component/index.js");require.alias("segmentio-isodate-traverse/index.js","segmentio-facade/deps/isodate-traverse/index.js");require.alias("component-each/index.js","segmentio-isodate-traverse/deps/each/index.js");require.alias("component-type/index.js","component-each/deps/type/index.js");require.alias("ianstormtaylor-is/index.js","segmentio-isodate-traverse/deps/is/index.js");require.alias("component-type/index.js","ianstormtaylor-is/deps/type/index.js");require.alias("ianstormtaylor-is-empty/index.js","ianstormtaylor-is/deps/is-empty/index.js");require.alias("segmentio-isodate/index.js","segmentio-isodate-traverse/deps/isodate/index.js");require.alias("component-clone/index.js","segmentio-facade/deps/clone/index.js");require.alias("component-type/index.js","component-clone/deps/type/index.js");require.alias("component-inherit/index.js","segmentio-facade/deps/inherit/index.js");require.alias("component-trim/index.js","segmentio-facade/deps/trim/index.js");require.alias("segmentio-is-email/index.js","segmentio-facade/deps/is-email/index.js");require.alias("segmentio-new-date/lib/index.js","segmentio-facade/deps/new-date/lib/index.js");require.alias("segmentio-new-date/lib/milliseconds.js","segmentio-facade/deps/new-date/lib/milliseconds.js");require.alias("segmentio-new-date/lib/seconds.js","segmentio-facade/deps/new-date/lib/seconds.js");require.alias("segmentio-new-date/lib/index.js","segmentio-facade/deps/new-date/index.js");require.alias("ianstormtaylor-is/index.js","segmentio-new-date/deps/is/index.js");require.alias("component-type/index.js","ianstormtaylor-is/deps/type/index.js");require.alias("ianstormtaylor-is-empty/index.js","ianstormtaylor-is/deps/is-empty/index.js");require.alias("segmentio-isodate/index.js","segmentio-new-date/deps/isodate/index.js");require.alias("segmentio-new-date/lib/index.js","segmentio-new-date/index.js");require.alias("segmentio-obj-case/index.js","segmentio-facade/deps/obj-case/index.js");require.alias("segmentio-obj-case/index.js","segmentio-facade/deps/obj-case/index.js");require.alias("ianstormtaylor-case/lib/index.js","segmentio-obj-case/deps/case/lib/index.js");require.alias("ianstormtaylor-case/lib/cases.js","segmentio-obj-case/deps/case/lib/cases.js");require.alias("ianstormtaylor-case/lib/index.js","segmentio-obj-case/deps/case/index.js");require.alias("ianstormtaylor-to-camel-case/index.js","ianstormtaylor-case/deps/to-camel-case/index.js");require.alias("ianstormtaylor-to-space-case/index.js","ianstormtaylor-to-camel-case/deps/to-space-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-space-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-capital-case/index.js","ianstormtaylor-case/deps/to-capital-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-capital-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-constant-case/index.js","ianstormtaylor-case/deps/to-constant-case/index.js");require.alias("ianstormtaylor-to-snake-case/index.js","ianstormtaylor-to-constant-case/deps/to-snake-case/index.js");require.alias("ianstormtaylor-to-space-case/index.js","ianstormtaylor-to-snake-case/deps/to-space-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-space-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-dot-case/index.js","ianstormtaylor-case/deps/to-dot-case/index.js");require.alias("ianstormtaylor-to-space-case/index.js","ianstormtaylor-to-dot-case/deps/to-space-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-space-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-pascal-case/index.js","ianstormtaylor-case/deps/to-pascal-case/index.js");require.alias("ianstormtaylor-to-space-case/index.js","ianstormtaylor-to-pascal-case/deps/to-space-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-space-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-sentence-case/index.js","ianstormtaylor-case/deps/to-sentence-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-sentence-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-slug-case/index.js","ianstormtaylor-case/deps/to-slug-case/index.js");require.alias("ianstormtaylor-to-space-case/index.js","ianstormtaylor-to-slug-case/deps/to-space-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-space-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-snake-case/index.js","ianstormtaylor-case/deps/to-snake-case/index.js");require.alias("ianstormtaylor-to-space-case/index.js","ianstormtaylor-to-snake-case/deps/to-space-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-space-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-space-case/index.js","ianstormtaylor-case/deps/to-space-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-space-case/deps/to-no-case/index.js");require.alias("ianstormtaylor-to-title-case/index.js","ianstormtaylor-case/deps/to-title-case/index.js");require.alias("component-escape-regexp/index.js","ianstormtaylor-to-title-case/deps/escape-regexp/index.js");require.alias("ianstormtaylor-map/index.js","ianstormtaylor-to-title-case/deps/map/index.js");require.alias("component-each/index.js","ianstormtaylor-map/deps/each/index.js");require.alias("component-type/index.js","component-each/deps/type/index.js");require.alias("ianstormtaylor-title-case-minors/index.js","ianstormtaylor-to-title-case/deps/title-case-minors/index.js");require.alias("ianstormtaylor-to-capital-case/index.js","ianstormtaylor-to-title-case/deps/to-capital-case/index.js");require.alias("ianstormtaylor-to-no-case/index.js","ianstormtaylor-to-capital-case/deps/to-no-case/index.js"); require.alias("ianstormtaylor-case/lib/index.js","ianstormtaylor-case/index.js");require.alias("segmentio-obj-case/index.js","segmentio-obj-case/index.js");require.alias("segmentio-facade/lib/index.js","segmentio-facade/index.js");require.alias("segmentio-is-email/index.js","analytics/deps/is-email/index.js");require.alias("segmentio-is-email/index.js","is-email/index.js");require.alias("segmentio-is-meta/index.js","analytics/deps/is-meta/index.js");require.alias("segmentio-is-meta/index.js","is-meta/index.js");require.alias("segmentio-isodate-traverse/index.js","analytics/deps/isodate-traverse/index.js");require.alias("segmentio-isodate-traverse/index.js","isodate-traverse/index.js");require.alias("component-each/index.js","segmentio-isodate-traverse/deps/each/index.js");require.alias("component-type/index.js","component-each/deps/type/index.js");require.alias("ianstormtaylor-is/index.js","segmentio-isodate-traverse/deps/is/index.js");require.alias("component-type/index.js","ianstormtaylor-is/deps/type/index.js");require.alias("ianstormtaylor-is-empty/index.js","ianstormtaylor-is/deps/is-empty/index.js");require.alias("segmentio-isodate/index.js","segmentio-isodate-traverse/deps/isodate/index.js");require.alias("segmentio-json/index.js","analytics/deps/json/index.js");require.alias("segmentio-json/index.js","json/index.js");require.alias("component-json-fallback/index.js","segmentio-json/deps/json-fallback/index.js");require.alias("segmentio-new-date/lib/index.js","analytics/deps/new-date/lib/index.js");require.alias("segmentio-new-date/lib/milliseconds.js","analytics/deps/new-date/lib/milliseconds.js");require.alias("segmentio-new-date/lib/seconds.js","analytics/deps/new-date/lib/seconds.js");require.alias("segmentio-new-date/lib/index.js","analytics/deps/new-date/index.js");require.alias("segmentio-new-date/lib/index.js","new-date/index.js");require.alias("ianstormtaylor-is/index.js","segmentio-new-date/deps/is/index.js");require.alias("component-type/index.js","ianstormtaylor-is/deps/type/index.js");require.alias("ianstormtaylor-is-empty/index.js","ianstormtaylor-is/deps/is-empty/index.js");require.alias("segmentio-isodate/index.js","segmentio-new-date/deps/isodate/index.js");require.alias("segmentio-new-date/lib/index.js","segmentio-new-date/index.js");require.alias("segmentio-store.js/store.js","analytics/deps/store/store.js");require.alias("segmentio-store.js/store.js","analytics/deps/store/index.js");require.alias("segmentio-store.js/store.js","store/index.js");require.alias("segmentio-store.js/store.js","segmentio-store.js/index.js");require.alias("segmentio-top-domain/index.js","analytics/deps/top-domain/index.js");require.alias("segmentio-top-domain/index.js","analytics/deps/top-domain/index.js");require.alias("segmentio-top-domain/index.js","top-domain/index.js");require.alias("component-url/index.js","segmentio-top-domain/deps/url/index.js");require.alias("segmentio-top-domain/index.js","segmentio-top-domain/index.js");require.alias("visionmedia-debug/index.js","analytics/deps/debug/index.js");require.alias("visionmedia-debug/debug.js","analytics/deps/debug/debug.js");require.alias("visionmedia-debug/index.js","debug/index.js");require.alias("yields-prevent/index.js","analytics/deps/prevent/index.js");require.alias("yields-prevent/index.js","prevent/index.js");require.alias("analytics/lib/index.js","analytics/index.js");if(typeof exports=="object"){module.exports=require("analytics")}else if(typeof define=="function"&&define.amd){define([],function(){return require("analytics")})}else{this["analytics"]=require("analytics")}})();
src/svg-icons/social/share.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialShare = (props) => ( <SvgIcon {...props}> <path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z"/> </SvgIcon> ); SocialShare = pure(SocialShare); SocialShare.displayName = 'SocialShare'; SocialShare.muiName = 'SvgIcon'; export default SocialShare;
ajax/libs/angular.js/0.9.6/angular-scenario.min.js
sujonvidia/cdnjs
/*! * jQuery JavaScript Library v1.4.2 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. * * Date: Sat Feb 13 22:33:48 2010 -0500 */ (function(aM,C){var a=function(aY,aZ){return new a.fn.init(aY,aZ)},n=aM.jQuery,R=aM.$,ab=aM.document,X,P=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,aW=/^.[^:#\[\.,]*$/,ax=/\S/,M=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,e=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,b=navigator.userAgent,u,K=false,ad=[],aG,at=Object.prototype.toString,ap=Object.prototype.hasOwnProperty,g=Array.prototype.push,F=Array.prototype.slice,s=Array.prototype.indexOf;a.fn=a.prototype={init:function(aY,a1){var a0,a2,aZ,a3;if(!aY){return this}if(aY.nodeType){this.context=this[0]=aY;this.length=1;return this}if(aY==="body"&&!a1){this.context=ab;this[0]=ab.body;this.selector="body";this.length=1;return this}if(typeof aY==="string"){a0=P.exec(aY);if(a0&&(a0[1]||!a1)){if(a0[1]){a3=(a1?a1.ownerDocument||a1:ab);aZ=e.exec(aY);if(aZ){if(a.isPlainObject(a1)){aY=[ab.createElement(aZ[1])];a.fn.attr.call(aY,a1,true)}else{aY=[a3.createElement(aZ[1])]}}else{aZ=J([a0[1]],[a3]);aY=(aZ.cacheable?aZ.fragment.cloneNode(true):aZ.fragment).childNodes}return a.merge(this,aY)}else{a2=ab.getElementById(a0[2]);if(a2){if(a2.id!==a0[2]){return X.find(aY)}this.length=1;this[0]=a2}this.context=ab;this.selector=aY;return this}}else{if(!a1&&/^\w+$/.test(aY)){this.selector=aY;this.context=ab;aY=ab.getElementsByTagName(aY);return a.merge(this,aY)}else{if(!a1||a1.jquery){return(a1||X).find(aY)}else{return a(a1).find(aY)}}}}else{if(a.isFunction(aY)){return X.ready(aY)}}if(aY.selector!==C){this.selector=aY.selector;this.context=aY.context}return a.makeArray(aY,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(aY){return aY==null?this.toArray():(aY<0?this.slice(aY)[0]:this[aY])},pushStack:function(aZ,a1,aY){var a0=a();if(a.isArray(aZ)){g.apply(a0,aZ)}else{a.merge(a0,aZ)}a0.prevObject=this;a0.context=this.context;if(a1==="find"){a0.selector=this.selector+(this.selector?" ":"")+aY}else{if(a1){a0.selector=this.selector+"."+a1+"("+aY+")"}}return a0},each:function(aZ,aY){return a.each(this,aZ,aY)},ready:function(aY){a.bindReady();if(a.isReady){aY.call(ab,a)}else{if(ad){ad.push(aY)}}return this},eq:function(aY){return aY===-1?this.slice(aY):this.slice(aY,+aY+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(aY){return this.pushStack(a.map(this,function(a0,aZ){return aY.call(a0,aZ,a0)}))},end:function(){return this.prevObject||a(null)},push:g,sort:[].sort,splice:[].splice};a.fn.init.prototype=a.fn;a.extend=a.fn.extend=function(){var a3=arguments[0]||{},a2=1,a1=arguments.length,a5=false,a6,a0,aY,aZ;if(typeof a3==="boolean"){a5=a3;a3=arguments[1]||{};a2=2}if(typeof a3!=="object"&&!a.isFunction(a3)){a3={}}if(a1===a2){a3=this;--a2}for(;a2<a1;a2++){if((a6=arguments[a2])!=null){for(a0 in a6){aY=a3[a0];aZ=a6[a0];if(a3===aZ){continue}if(a5&&aZ&&(a.isPlainObject(aZ)||a.isArray(aZ))){var a4=aY&&(a.isPlainObject(aY)||a.isArray(aY))?aY:a.isArray(aZ)?[]:{};a3[a0]=a.extend(a5,a4,aZ)}else{if(aZ!==C){a3[a0]=aZ}}}}}return a3};a.extend({noConflict:function(aY){aM.$=R;if(aY){aM.jQuery=n}return a},isReady:false,ready:function(){if(!a.isReady){if(!ab.body){return setTimeout(a.ready,13)}a.isReady=true;if(ad){var aZ,aY=0;while((aZ=ad[aY++])){aZ.call(ab,a)}ad=null}if(a.fn.triggerHandler){a(ab).triggerHandler("ready")}}},bindReady:function(){if(K){return}K=true;if(ab.readyState==="complete"){return a.ready()}if(ab.addEventListener){ab.addEventListener("DOMContentLoaded",aG,false);aM.addEventListener("load",a.ready,false)}else{if(ab.attachEvent){ab.attachEvent("onreadystatechange",aG);aM.attachEvent("onload",a.ready);var aY=false;try{aY=aM.frameElement==null}catch(aZ){}if(ab.documentElement.doScroll&&aY){x()}}}},isFunction:function(aY){return at.call(aY)==="[object Function]"},isArray:function(aY){return at.call(aY)==="[object Array]"},isPlainObject:function(aZ){if(!aZ||at.call(aZ)!=="[object Object]"||aZ.nodeType||aZ.setInterval){return false}if(aZ.constructor&&!ap.call(aZ,"constructor")&&!ap.call(aZ.constructor.prototype,"isPrototypeOf")){return false}var aY;for(aY in aZ){}return aY===C||ap.call(aZ,aY)},isEmptyObject:function(aZ){for(var aY in aZ){return false}return true},error:function(aY){throw aY},parseJSON:function(aY){if(typeof aY!=="string"||!aY){return null}aY=a.trim(aY);if(/^[\],:{}\s]*$/.test(aY.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return aM.JSON&&aM.JSON.parse?aM.JSON.parse(aY):(new Function("return "+aY))()}else{a.error("Invalid JSON: "+aY)}},noop:function(){},globalEval:function(a0){if(a0&&ax.test(a0)){var aZ=ab.getElementsByTagName("head")[0]||ab.documentElement,aY=ab.createElement("script");aY.type="text/javascript";if(a.support.scriptEval){aY.appendChild(ab.createTextNode(a0))}else{aY.text=a0}aZ.insertBefore(aY,aZ.firstChild);aZ.removeChild(aY)}},nodeName:function(aZ,aY){return aZ.nodeName&&aZ.nodeName.toUpperCase()===aY.toUpperCase()},each:function(a1,a5,a0){var aZ,a2=0,a3=a1.length,aY=a3===C||a.isFunction(a1);if(a0){if(aY){for(aZ in a1){if(a5.apply(a1[aZ],a0)===false){break}}}else{for(;a2<a3;){if(a5.apply(a1[a2++],a0)===false){break}}}}else{if(aY){for(aZ in a1){if(a5.call(a1[aZ],aZ,a1[aZ])===false){break}}}else{for(var a4=a1[0];a2<a3&&a5.call(a4,a2,a4)!==false;a4=a1[++a2]){}}}return a1},trim:function(aY){return(aY||"").replace(M,"")},makeArray:function(a0,aZ){var aY=aZ||[];if(a0!=null){if(a0.length==null||typeof a0==="string"||a.isFunction(a0)||(typeof a0!=="function"&&a0.setInterval)){g.call(aY,a0)}else{a.merge(aY,a0)}}return aY},inArray:function(a0,a1){if(a1.indexOf){return a1.indexOf(a0)}for(var aY=0,aZ=a1.length;aY<aZ;aY++){if(a1[aY]===a0){return aY}}return -1},merge:function(a2,a0){var a1=a2.length,aZ=0;if(typeof a0.length==="number"){for(var aY=a0.length;aZ<aY;aZ++){a2[a1++]=a0[aZ]}}else{while(a0[aZ]!==C){a2[a1++]=a0[aZ++]}}a2.length=a1;return a2},grep:function(aZ,a3,aY){var a0=[];for(var a1=0,a2=aZ.length;a1<a2;a1++){if(!aY!==!a3(aZ[a1],a1)){a0.push(aZ[a1])}}return a0},map:function(aZ,a4,aY){var a0=[],a3;for(var a1=0,a2=aZ.length;a1<a2;a1++){a3=a4(aZ[a1],a1,aY);if(a3!=null){a0[a0.length]=a3}}return a0.concat.apply([],a0)},guid:1,proxy:function(a0,aZ,aY){if(arguments.length===2){if(typeof aZ==="string"){aY=a0;a0=aY[aZ];aZ=C}else{if(aZ&&!a.isFunction(aZ)){aY=aZ;aZ=C}}}if(!aZ&&a0){aZ=function(){return a0.apply(aY||this,arguments)}}if(a0){aZ.guid=a0.guid=a0.guid||aZ.guid||a.guid++}return aZ},uaMatch:function(aZ){aZ=aZ.toLowerCase();var aY=/(webkit)[ \/]([\w.]+)/.exec(aZ)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(aZ)||/(msie) ([\w.]+)/.exec(aZ)||!/compatible/.test(aZ)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(aZ)||[];return{browser:aY[1]||"",version:aY[2]||"0"}},browser:{}});u=a.uaMatch(b);if(u.browser){a.browser[u.browser]=true;a.browser.version=u.version}if(a.browser.webkit){a.browser.safari=true}if(s){a.inArray=function(aY,aZ){return s.call(aZ,aY)}}X=a(ab);if(ab.addEventListener){aG=function(){ab.removeEventListener("DOMContentLoaded",aG,false);a.ready()}}else{if(ab.attachEvent){aG=function(){if(ab.readyState==="complete"){ab.detachEvent("onreadystatechange",aG);a.ready()}}}}function x(){if(a.isReady){return}try{ab.documentElement.doScroll("left")}catch(aY){setTimeout(x,1);return}a.ready()}function aV(aY,aZ){if(aZ.src){a.ajax({url:aZ.src,async:false,dataType:"script"})}else{a.globalEval(aZ.text||aZ.textContent||aZ.innerHTML||"")}if(aZ.parentNode){aZ.parentNode.removeChild(aZ)}}function an(aY,a6,a4,a0,a3,a5){var aZ=aY.length;if(typeof a6==="object"){for(var a1 in a6){an(aY,a1,a6[a1],a0,a3,a4)}return aY}if(a4!==C){a0=!a5&&a0&&a.isFunction(a4);for(var a2=0;a2<aZ;a2++){a3(aY[a2],a6,a0?a4.call(aY[a2],a2,a3(aY[a2],a6)):a4,a5)}return aY}return aZ?a3(aY[0],a6):C}function aP(){return(new Date).getTime()}(function(){a.support={};var a4=ab.documentElement,a3=ab.createElement("script"),aY=ab.createElement("div"),aZ="script"+aP();aY.style.display="none";aY.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var a6=aY.getElementsByTagName("*"),a5=aY.getElementsByTagName("a")[0];if(!a6||!a6.length||!a5){return}a.support={leadingWhitespace:aY.firstChild.nodeType===3,tbody:!aY.getElementsByTagName("tbody").length,htmlSerialize:!!aY.getElementsByTagName("link").length,style:/red/.test(a5.getAttribute("style")),hrefNormalized:a5.getAttribute("href")==="/a",opacity:/^0.55$/.test(a5.style.opacity),cssFloat:!!a5.style.cssFloat,checkOn:aY.getElementsByTagName("input")[0].value==="on",optSelected:ab.createElement("select").appendChild(ab.createElement("option")).selected,parentNode:aY.removeChild(aY.appendChild(ab.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};a3.type="text/javascript";try{a3.appendChild(ab.createTextNode("window."+aZ+"=1;"))}catch(a1){}a4.insertBefore(a3,a4.firstChild);if(aM[aZ]){a.support.scriptEval=true;delete aM[aZ]}try{delete a3.test}catch(a1){a.support.deleteExpando=false}a4.removeChild(a3);if(aY.attachEvent&&aY.fireEvent){aY.attachEvent("onclick",function a7(){a.support.noCloneEvent=false;aY.detachEvent("onclick",a7)});aY.cloneNode(true).fireEvent("onclick")}aY=ab.createElement("div");aY.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var a0=ab.createDocumentFragment();a0.appendChild(aY.firstChild);a.support.checkClone=a0.cloneNode(true).cloneNode(true).lastChild.checked;a(function(){var a8=ab.createElement("div");a8.style.width=a8.style.paddingLeft="1px";ab.body.appendChild(a8);a.boxModel=a.support.boxModel=a8.offsetWidth===2;ab.body.removeChild(a8).style.display="none";a8=null});var a2=function(a8){var ba=ab.createElement("div");a8="on"+a8;var a9=(a8 in ba);if(!a9){ba.setAttribute(a8,"return;");a9=typeof ba[a8]==="function"}ba=null;return a9};a.support.submitBubbles=a2("submit");a.support.changeBubbles=a2("change");a4=a3=aY=a6=a5=null})();a.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var aI="jQuery"+aP(),aH=0,aT={};a.extend({cache:{},expando:aI,noData:{embed:true,object:true,applet:true},data:function(a0,aZ,a2){if(a0.nodeName&&a.noData[a0.nodeName.toLowerCase()]){return}a0=a0==aM?aT:a0;var a3=a0[aI],aY=a.cache,a1;if(!a3&&typeof aZ==="string"&&a2===C){return null}if(!a3){a3=++aH}if(typeof aZ==="object"){a0[aI]=a3;a1=aY[a3]=a.extend(true,{},aZ)}else{if(!aY[a3]){a0[aI]=a3;aY[a3]={}}}a1=aY[a3];if(a2!==C){a1[aZ]=a2}return typeof aZ==="string"?a1[aZ]:a1},removeData:function(a0,aZ){if(a0.nodeName&&a.noData[a0.nodeName.toLowerCase()]){return}a0=a0==aM?aT:a0;var a2=a0[aI],aY=a.cache,a1=aY[a2];if(aZ){if(a1){delete a1[aZ];if(a.isEmptyObject(a1)){a.removeData(a0)}}}else{if(a.support.deleteExpando){delete a0[a.expando]}else{if(a0.removeAttribute){a0.removeAttribute(a.expando)}}delete aY[a2]}}});a.fn.extend({data:function(aY,a0){if(typeof aY==="undefined"&&this.length){return a.data(this[0])}else{if(typeof aY==="object"){return this.each(function(){a.data(this,aY)})}}var a1=aY.split(".");a1[1]=a1[1]?"."+a1[1]:"";if(a0===C){var aZ=this.triggerHandler("getData"+a1[1]+"!",[a1[0]]);if(aZ===C&&this.length){aZ=a.data(this[0],aY)}return aZ===C&&a1[1]?this.data(a1[0]):aZ}else{return this.trigger("setData"+a1[1]+"!",[a1[0],a0]).each(function(){a.data(this,aY,a0)})}},removeData:function(aY){return this.each(function(){a.removeData(this,aY)})}});a.extend({queue:function(aZ,aY,a1){if(!aZ){return}aY=(aY||"fx")+"queue";var a0=a.data(aZ,aY);if(!a1){return a0||[]}if(!a0||a.isArray(a1)){a0=a.data(aZ,aY,a.makeArray(a1))}else{a0.push(a1)}return a0},dequeue:function(a1,a0){a0=a0||"fx";var aY=a.queue(a1,a0),aZ=aY.shift();if(aZ==="inprogress"){aZ=aY.shift()}if(aZ){if(a0==="fx"){aY.unshift("inprogress")}aZ.call(a1,function(){a.dequeue(a1,a0)})}}});a.fn.extend({queue:function(aY,aZ){if(typeof aY!=="string"){aZ=aY;aY="fx"}if(aZ===C){return a.queue(this[0],aY)}return this.each(function(a1,a2){var a0=a.queue(this,aY,aZ);if(aY==="fx"&&a0[0]!=="inprogress"){a.dequeue(this,aY)}})},dequeue:function(aY){return this.each(function(){a.dequeue(this,aY)})},delay:function(aZ,aY){aZ=a.fx?a.fx.speeds[aZ]||aZ:aZ;aY=aY||"fx";return this.queue(aY,function(){var a0=this;setTimeout(function(){a.dequeue(a0,aY)},aZ)})},clearQueue:function(aY){return this.queue(aY||"fx",[])}});var ao=/[\n\t]/g,S=/\s+/,av=/\r/g,aQ=/href|src|style/,d=/(button|input)/i,z=/(button|input|object|select|textarea)/i,j=/^(a|area)$/i,I=/radio|checkbox/;a.fn.extend({attr:function(aY,aZ){return an(this,aY,aZ,true,a.attr)},removeAttr:function(aY,aZ){return this.each(function(){a.attr(this,aY,"");if(this.nodeType===1){this.removeAttribute(aY)}})},addClass:function(a5){if(a.isFunction(a5)){return this.each(function(a8){var a7=a(this);a7.addClass(a5.call(this,a8,a7.attr("class")))})}if(a5&&typeof a5==="string"){var aY=(a5||"").split(S);for(var a1=0,a0=this.length;a1<a0;a1++){var aZ=this[a1];if(aZ.nodeType===1){if(!aZ.className){aZ.className=a5}else{var a2=" "+aZ.className+" ",a4=aZ.className;for(var a3=0,a6=aY.length;a3<a6;a3++){if(a2.indexOf(" "+aY[a3]+" ")<0){a4+=" "+aY[a3]}}aZ.className=a.trim(a4)}}}}return this},removeClass:function(a3){if(a.isFunction(a3)){return this.each(function(a7){var a6=a(this);a6.removeClass(a3.call(this,a7,a6.attr("class")))})}if((a3&&typeof a3==="string")||a3===C){var a4=(a3||"").split(S);for(var a0=0,aZ=this.length;a0<aZ;a0++){var a2=this[a0];if(a2.nodeType===1&&a2.className){if(a3){var a1=(" "+a2.className+" ").replace(ao," ");for(var a5=0,aY=a4.length;a5<aY;a5++){a1=a1.replace(" "+a4[a5]+" "," ")}a2.className=a.trim(a1)}else{a2.className=""}}}}return this},toggleClass:function(a1,aZ){var a0=typeof a1,aY=typeof aZ==="boolean";if(a.isFunction(a1)){return this.each(function(a3){var a2=a(this);a2.toggleClass(a1.call(this,a3,a2.attr("class"),aZ),aZ)})}return this.each(function(){if(a0==="string"){var a4,a3=0,a2=a(this),a5=aZ,a6=a1.split(S);while((a4=a6[a3++])){a5=aY?a5:!a2.hasClass(a4);a2[a5?"addClass":"removeClass"](a4)}}else{if(a0==="undefined"||a0==="boolean"){if(this.className){a.data(this,"__className__",this.className)}this.className=this.className||a1===false?"":a.data(this,"__className__")||""}}})},hasClass:function(aY){var a1=" "+aY+" ";for(var a0=0,aZ=this.length;a0<aZ;a0++){if((" "+this[a0].className+" ").replace(ao," ").indexOf(a1)>-1){return true}}return false},val:function(a5){if(a5===C){var aZ=this[0];if(aZ){if(a.nodeName(aZ,"option")){return(aZ.attributes.value||{}).specified?aZ.value:aZ.text}if(a.nodeName(aZ,"select")){var a3=aZ.selectedIndex,a6=[],a7=aZ.options,a2=aZ.type==="select-one";if(a3<0){return null}for(var a0=a2?a3:0,a4=a2?a3+1:a7.length;a0<a4;a0++){var a1=a7[a0];if(a1.selected){a5=a(a1).val();if(a2){return a5}a6.push(a5)}}return a6}if(I.test(aZ.type)&&!a.support.checkOn){return aZ.getAttribute("value")===null?"on":aZ.value}return(aZ.value||"").replace(av,"")}return C}var aY=a.isFunction(a5);return this.each(function(ba){var a9=a(this),bb=a5;if(this.nodeType!==1){return}if(aY){bb=a5.call(this,ba,a9.val())}if(typeof bb==="number"){bb+=""}if(a.isArray(bb)&&I.test(this.type)){this.checked=a.inArray(a9.val(),bb)>=0}else{if(a.nodeName(this,"select")){var a8=a.makeArray(bb);a("option",this).each(function(){this.selected=a.inArray(a(this).val(),a8)>=0});if(!a8.length){this.selectedIndex=-1}}else{this.value=bb}}})}});a.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(aZ,aY,a4,a7){if(!aZ||aZ.nodeType===3||aZ.nodeType===8){return C}if(a7&&aY in a.attrFn){return a(aZ)[aY](a4)}var a0=aZ.nodeType!==1||!a.isXMLDoc(aZ),a3=a4!==C;aY=a0&&a.props[aY]||aY;if(aZ.nodeType===1){var a2=aQ.test(aY);if(aY==="selected"&&!a.support.optSelected){var a5=aZ.parentNode;if(a5){a5.selectedIndex;if(a5.parentNode){a5.parentNode.selectedIndex}}}if(aY in aZ&&a0&&!a2){if(a3){if(aY==="type"&&d.test(aZ.nodeName)&&aZ.parentNode){a.error("type property can't be changed")}aZ[aY]=a4}if(a.nodeName(aZ,"form")&&aZ.getAttributeNode(aY)){return aZ.getAttributeNode(aY).nodeValue}if(aY==="tabIndex"){var a6=aZ.getAttributeNode("tabIndex");return a6&&a6.specified?a6.value:z.test(aZ.nodeName)||j.test(aZ.nodeName)&&aZ.href?0:C}return aZ[aY]}if(!a.support.style&&a0&&aY==="style"){if(a3){aZ.style.cssText=""+a4}return aZ.style.cssText}if(a3){aZ.setAttribute(aY,""+a4)}var a1=!a.support.hrefNormalized&&a0&&a2?aZ.getAttribute(aY,2):aZ.getAttribute(aY);return a1===null?C:a1}return a.style(aZ,aY,a4)}});var aC=/\.(.*)$/,A=function(aY){return aY.replace(/[^\w\s\.\|`]/g,function(aZ){return"\\"+aZ})};a.event={add:function(a1,a5,ba,a3){if(a1.nodeType===3||a1.nodeType===8){return}if(a1.setInterval&&(a1!==aM&&!a1.frameElement)){a1=aM}var aZ,a9;if(ba.handler){aZ=ba;ba=aZ.handler}if(!ba.guid){ba.guid=a.guid++}var a6=a.data(a1);if(!a6){return}var bb=a6.events=a6.events||{},a4=a6.handle,a4;if(!a4){a6.handle=a4=function(){return typeof a!=="undefined"&&!a.event.triggered?a.event.handle.apply(a4.elem,arguments):C}}a4.elem=a1;a5=a5.split(" ");var a8,a2=0,aY;while((a8=a5[a2++])){a9=aZ?a.extend({},aZ):{handler:ba,data:a3};if(a8.indexOf(".")>-1){aY=a8.split(".");a8=aY.shift();a9.namespace=aY.slice(0).sort().join(".")}else{aY=[];a9.namespace=""}a9.type=a8;a9.guid=ba.guid;var a0=bb[a8],a7=a.event.special[a8]||{};if(!a0){a0=bb[a8]=[];if(!a7.setup||a7.setup.call(a1,a3,aY,a4)===false){if(a1.addEventListener){a1.addEventListener(a8,a4,false)}else{if(a1.attachEvent){a1.attachEvent("on"+a8,a4)}}}}if(a7.add){a7.add.call(a1,a9);if(!a9.handler.guid){a9.handler.guid=ba.guid}}a0.push(a9);a.event.global[a8]=true}a1=null},global:{},remove:function(bd,a8,aZ,a4){if(bd.nodeType===3||bd.nodeType===8){return}var bg,a3,a5,bb=0,a1,a6,a9,a2,a7,aY,bf,bc=a.data(bd),a0=bc&&bc.events;if(!bc||!a0){return}if(a8&&a8.type){aZ=a8.handler;a8=a8.type}if(!a8||typeof a8==="string"&&a8.charAt(0)==="."){a8=a8||"";for(a3 in a0){a.event.remove(bd,a3+a8)}return}a8=a8.split(" ");while((a3=a8[bb++])){bf=a3;aY=null;a1=a3.indexOf(".")<0;a6=[];if(!a1){a6=a3.split(".");a3=a6.shift();a9=new RegExp("(^|\\.)"+a.map(a6.slice(0).sort(),A).join("\\.(?:.*\\.)?")+"(\\.|$)")}a7=a0[a3];if(!a7){continue}if(!aZ){for(var ba=0;ba<a7.length;ba++){aY=a7[ba];if(a1||a9.test(aY.namespace)){a.event.remove(bd,bf,aY.handler,ba);a7.splice(ba--,1)}}continue}a2=a.event.special[a3]||{};for(var ba=a4||0;ba<a7.length;ba++){aY=a7[ba];if(aZ.guid===aY.guid){if(a1||a9.test(aY.namespace)){if(a4==null){a7.splice(ba--,1)}if(a2.remove){a2.remove.call(bd,aY)}}if(a4!=null){break}}}if(a7.length===0||a4!=null&&a7.length===1){if(!a2.teardown||a2.teardown.call(bd,a6)===false){ag(bd,a3,bc.handle)}bg=null;delete a0[a3]}}if(a.isEmptyObject(a0)){var be=bc.handle;if(be){be.elem=null}delete bc.events;delete bc.handle;if(a.isEmptyObject(bc)){a.removeData(bd)}}},trigger:function(aY,a2,a0){var a7=aY.type||aY,a1=arguments[3];if(!a1){aY=typeof aY==="object"?aY[aI]?aY:a.extend(a.Event(a7),aY):a.Event(a7);if(a7.indexOf("!")>=0){aY.type=a7=a7.slice(0,-1);aY.exclusive=true}if(!a0){aY.stopPropagation();if(a.event.global[a7]){a.each(a.cache,function(){if(this.events&&this.events[a7]){a.event.trigger(aY,a2,this.handle.elem)}})}}if(!a0||a0.nodeType===3||a0.nodeType===8){return C}aY.result=C;aY.target=a0;a2=a.makeArray(a2);a2.unshift(aY)}aY.currentTarget=a0;var a3=a.data(a0,"handle");if(a3){a3.apply(a0,a2)}var a8=a0.parentNode||a0.ownerDocument;try{if(!(a0&&a0.nodeName&&a.noData[a0.nodeName.toLowerCase()])){if(a0["on"+a7]&&a0["on"+a7].apply(a0,a2)===false){aY.result=false}}}catch(a5){}if(!aY.isPropagationStopped()&&a8){a.event.trigger(aY,a2,a8,true)}else{if(!aY.isDefaultPrevented()){var a4=aY.target,aZ,a9=a.nodeName(a4,"a")&&a7==="click",a6=a.event.special[a7]||{};if((!a6._default||a6._default.call(a0,aY)===false)&&!a9&&!(a4&&a4.nodeName&&a.noData[a4.nodeName.toLowerCase()])){try{if(a4[a7]){aZ=a4["on"+a7];if(aZ){a4["on"+a7]=null}a.event.triggered=true;a4[a7]()}}catch(a5){}if(aZ){a4["on"+a7]=aZ}a.event.triggered=false}}}},handle:function(aY){var a6,a0,aZ,a1,a7;aY=arguments[0]=a.event.fix(aY||aM.event);aY.currentTarget=this;a6=aY.type.indexOf(".")<0&&!aY.exclusive;if(!a6){aZ=aY.type.split(".");aY.type=aZ.shift();a1=new RegExp("(^|\\.)"+aZ.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var a7=a.data(this,"events"),a0=a7[aY.type];if(a7&&a0){a0=a0.slice(0);for(var a3=0,a2=a0.length;a3<a2;a3++){var a5=a0[a3];if(a6||a1.test(a5.namespace)){aY.handler=a5.handler;aY.data=a5.data;aY.handleObj=a5;var a4=a5.handler.apply(this,arguments);if(a4!==C){aY.result=a4;if(a4===false){aY.preventDefault();aY.stopPropagation()}}if(aY.isImmediatePropagationStopped()){break}}}}return aY.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a1){if(a1[aI]){return a1}var aZ=a1;a1=a.Event(aZ);for(var a0=this.props.length,a3;a0;){a3=this.props[--a0];a1[a3]=aZ[a3]}if(!a1.target){a1.target=a1.srcElement||ab}if(a1.target.nodeType===3){a1.target=a1.target.parentNode}if(!a1.relatedTarget&&a1.fromElement){a1.relatedTarget=a1.fromElement===a1.target?a1.toElement:a1.fromElement}if(a1.pageX==null&&a1.clientX!=null){var a2=ab.documentElement,aY=ab.body;a1.pageX=a1.clientX+(a2&&a2.scrollLeft||aY&&aY.scrollLeft||0)-(a2&&a2.clientLeft||aY&&aY.clientLeft||0);a1.pageY=a1.clientY+(a2&&a2.scrollTop||aY&&aY.scrollTop||0)-(a2&&a2.clientTop||aY&&aY.clientTop||0)}if(!a1.which&&((a1.charCode||a1.charCode===0)?a1.charCode:a1.keyCode)){a1.which=a1.charCode||a1.keyCode}if(!a1.metaKey&&a1.ctrlKey){a1.metaKey=a1.ctrlKey}if(!a1.which&&a1.button!==C){a1.which=(a1.button&1?1:(a1.button&2?3:(a1.button&4?2:0)))}return a1},guid:100000000,proxy:a.proxy,special:{ready:{setup:a.bindReady,teardown:a.noop},live:{add:function(aY){a.event.add(this,aY.origType,a.extend({},aY,{handler:V}))},remove:function(aZ){var aY=true,a0=aZ.origType.replace(aC,"");a.each(a.data(this,"events").live||[],function(){if(a0===this.origType.replace(aC,"")){aY=false;return false}});if(aY){a.event.remove(this,aZ.origType,V)}}},beforeunload:{setup:function(a0,aZ,aY){if(this.setInterval){this.onbeforeunload=aY}return false},teardown:function(aZ,aY){if(this.onbeforeunload===aY){this.onbeforeunload=null}}}}};var ag=ab.removeEventListener?function(aZ,aY,a0){aZ.removeEventListener(aY,a0,false)}:function(aZ,aY,a0){aZ.detachEvent("on"+aY,a0)};a.Event=function(aY){if(!this.preventDefault){return new a.Event(aY)}if(aY&&aY.type){this.originalEvent=aY;this.type=aY.type}else{this.type=aY}this.timeStamp=aP();this[aI]=true};function aR(){return false}function f(){return true}a.Event.prototype={preventDefault:function(){this.isDefaultPrevented=f;var aY=this.originalEvent;if(!aY){return}if(aY.preventDefault){aY.preventDefault()}aY.returnValue=false},stopPropagation:function(){this.isPropagationStopped=f;var aY=this.originalEvent;if(!aY){return}if(aY.stopPropagation){aY.stopPropagation()}aY.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=f;this.stopPropagation()},isDefaultPrevented:aR,isPropagationStopped:aR,isImmediatePropagationStopped:aR};var Q=function(aZ){var aY=aZ.relatedTarget;try{while(aY&&aY!==this){aY=aY.parentNode}if(aY!==this){aZ.type=aZ.data;a.event.handle.apply(this,arguments)}}catch(a0){}},ay=function(aY){aY.type=aY.data;a.event.handle.apply(this,arguments)};a.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(aZ,aY){a.event.special[aZ]={setup:function(a0){a.event.add(this,aY,a0&&a0.selector?ay:Q,aZ)},teardown:function(a0){a.event.remove(this,aY,a0&&a0.selector?ay:Q)}}});if(!a.support.submitBubbles){a.event.special.submit={setup:function(aZ,aY){if(this.nodeName.toLowerCase()!=="form"){a.event.add(this,"click.specialSubmit",function(a2){var a1=a2.target,a0=a1.type;if((a0==="submit"||a0==="image")&&a(a1).closest("form").length){return aA("submit",this,arguments)}});a.event.add(this,"keypress.specialSubmit",function(a2){var a1=a2.target,a0=a1.type;if((a0==="text"||a0==="password")&&a(a1).closest("form").length&&a2.keyCode===13){return aA("submit",this,arguments)}})}else{return false}},teardown:function(aY){a.event.remove(this,".specialSubmit")}}}if(!a.support.changeBubbles){var aq=/textarea|input|select/i,aS,i=function(aZ){var aY=aZ.type,a0=aZ.value;if(aY==="radio"||aY==="checkbox"){a0=aZ.checked}else{if(aY==="select-multiple"){a0=aZ.selectedIndex>-1?a.map(aZ.options,function(a1){return a1.selected}).join("-"):""}else{if(aZ.nodeName.toLowerCase()==="select"){a0=aZ.selectedIndex}}}return a0},O=function O(a0){var aY=a0.target,aZ,a1;if(!aq.test(aY.nodeName)||aY.readOnly){return}aZ=a.data(aY,"_change_data");a1=i(aY);if(a0.type!=="focusout"||aY.type!=="radio"){a.data(aY,"_change_data",a1)}if(aZ===C||a1===aZ){return}if(aZ!=null||a1){a0.type="change";return a.event.trigger(a0,arguments[1],aY)}};a.event.special.change={filters:{focusout:O,click:function(a0){var aZ=a0.target,aY=aZ.type;if(aY==="radio"||aY==="checkbox"||aZ.nodeName.toLowerCase()==="select"){return O.call(this,a0)}},keydown:function(a0){var aZ=a0.target,aY=aZ.type;if((a0.keyCode===13&&aZ.nodeName.toLowerCase()!=="textarea")||(a0.keyCode===32&&(aY==="checkbox"||aY==="radio"))||aY==="select-multiple"){return O.call(this,a0)}},beforeactivate:function(aZ){var aY=aZ.target;a.data(aY,"_change_data",i(aY))}},setup:function(a0,aZ){if(this.type==="file"){return false}for(var aY in aS){a.event.add(this,aY+".specialChange",aS[aY])}return aq.test(this.nodeName)},teardown:function(aY){a.event.remove(this,".specialChange");return aq.test(this.nodeName)}};aS=a.event.special.change.filters}function aA(aZ,a0,aY){aY[0].type=aZ;return a.event.handle.apply(a0,aY)}if(ab.addEventListener){a.each({focus:"focusin",blur:"focusout"},function(a0,aY){a.event.special[aY]={setup:function(){this.addEventListener(a0,aZ,true)},teardown:function(){this.removeEventListener(a0,aZ,true)}};function aZ(a1){a1=a.event.fix(a1);a1.type=aY;return a.event.handle.call(this,a1)}})}a.each(["bind","one"],function(aZ,aY){a.fn[aY]=function(a5,a6,a4){if(typeof a5==="object"){for(var a2 in a5){this[aY](a2,a6,a5[a2],a4)}return this}if(a.isFunction(a6)){a4=a6;a6=C}var a3=aY==="one"?a.proxy(a4,function(a7){a(this).unbind(a7,a3);return a4.apply(this,arguments)}):a4;if(a5==="unload"&&aY!=="one"){this.one(a5,a6,a4)}else{for(var a1=0,a0=this.length;a1<a0;a1++){a.event.add(this[a1],a5,a3,a6)}}return this}});a.fn.extend({unbind:function(a2,a1){if(typeof a2==="object"&&!a2.preventDefault){for(var a0 in a2){this.unbind(a0,a2[a0])}}else{for(var aZ=0,aY=this.length;aZ<aY;aZ++){a.event.remove(this[aZ],a2,a1)}}return this},delegate:function(aY,aZ,a1,a0){return this.live(aZ,a1,a0,aY)},undelegate:function(aY,aZ,a0){if(arguments.length===0){return this.unbind("live")}else{return this.die(aZ,null,a0,aY)}},trigger:function(aY,aZ){return this.each(function(){a.event.trigger(aY,aZ,this)})},triggerHandler:function(aY,a0){if(this[0]){var aZ=a.Event(aY);aZ.preventDefault();aZ.stopPropagation();a.event.trigger(aZ,a0,this[0]);return aZ.result}},toggle:function(a0){var aY=arguments,aZ=1;while(aZ<aY.length){a.proxy(a0,aY[aZ++])}return this.click(a.proxy(a0,function(a1){var a2=(a.data(this,"lastToggle"+a0.guid)||0)%aZ;a.data(this,"lastToggle"+a0.guid,a2+1);a1.preventDefault();return aY[a2].apply(this,arguments)||false}))},hover:function(aY,aZ){return this.mouseenter(aY).mouseleave(aZ||aY)}});var aw={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};a.each(["live","die"],function(aZ,aY){a.fn[aY]=function(a7,a4,a9,a2){var a8,a5=0,a6,a1,ba,a3=a2||this.selector,a0=a2?this:a(this.context);if(a.isFunction(a4)){a9=a4;a4=C}a7=(a7||"").split(" ");while((a8=a7[a5++])!=null){a6=aC.exec(a8);a1="";if(a6){a1=a6[0];a8=a8.replace(aC,"")}if(a8==="hover"){a7.push("mouseenter"+a1,"mouseleave"+a1);continue}ba=a8;if(a8==="focus"||a8==="blur"){a7.push(aw[a8]+a1);a8=a8+a1}else{a8=(aw[a8]||a8)+a1}if(aY==="live"){a0.each(function(){a.event.add(this,m(a8,a3),{data:a4,selector:a3,handler:a9,origType:a8,origHandler:a9,preType:ba})})}else{a0.unbind(m(a8,a3),a9)}}return this}});function V(aY){var a8,aZ=[],bb=[],a7=arguments,ba,a6,a9,a1,a3,a5,a2,a4,bc=a.data(this,"events");if(aY.liveFired===this||!bc||!bc.live||aY.button&&aY.type==="click"){return}aY.liveFired=this;var a0=bc.live.slice(0);for(a3=0;a3<a0.length;a3++){a9=a0[a3];if(a9.origType.replace(aC,"")===aY.type){bb.push(a9.selector)}else{a0.splice(a3--,1)}}a6=a(aY.target).closest(bb,aY.currentTarget);for(a5=0,a2=a6.length;a5<a2;a5++){for(a3=0;a3<a0.length;a3++){a9=a0[a3];if(a6[a5].selector===a9.selector){a1=a6[a5].elem;ba=null;if(a9.preType==="mouseenter"||a9.preType==="mouseleave"){ba=a(aY.relatedTarget).closest(a9.selector)[0]}if(!ba||ba!==a1){aZ.push({elem:a1,handleObj:a9})}}}}for(a5=0,a2=aZ.length;a5<a2;a5++){a6=aZ[a5];aY.currentTarget=a6.elem;aY.data=a6.handleObj.data;aY.handleObj=a6.handleObj;if(a6.handleObj.origHandler.apply(a6.elem,a7)===false){a8=false;break}}return a8}function m(aZ,aY){return"live."+(aZ&&aZ!=="*"?aZ+".":"")+aY.replace(/\./g,"`").replace(/ /g,"&")}a.each(("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error").split(" "),function(aZ,aY){a.fn[aY]=function(a0){return a0?this.bind(aY,a0):this.trigger(aY)};if(a.attrFn){a.attrFn[aY]=true}});if(aM.attachEvent&&!aM.addEventListener){aM.attachEvent("onunload",function(){for(var aZ in a.cache){if(a.cache[aZ].handle){try{a.event.remove(a.cache[aZ].handle.elem)}catch(aY){}}}}); /*! * Sizzle CSS Selector Engine - v1.0 * Copyright 2009, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. * More information: http://sizzlejs.com/ */ }(function(){var a9=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,ba=0,bc=Object.prototype.toString,a4=false,a3=true;[0,0].sort(function(){a3=false;return 0});var a0=function(bl,bg,bo,bp){bo=bo||[];var br=bg=bg||ab;if(bg.nodeType!==1&&bg.nodeType!==9){return[]}if(!bl||typeof bl!=="string"){return bo}var bm=[],bi,bt,bw,bh,bk=true,bj=a1(bg),bq=bl;while((a9.exec(""),bi=a9.exec(bq))!==null){bq=bi[3];bm.push(bi[1]);if(bi[2]){bh=bi[3];break}}if(bm.length>1&&a5.exec(bl)){if(bm.length===2&&a6.relative[bm[0]]){bt=bd(bm[0]+bm[1],bg)}else{bt=a6.relative[bm[0]]?[bg]:a0(bm.shift(),bg);while(bm.length){bl=bm.shift();if(a6.relative[bl]){bl+=bm.shift()}bt=bd(bl,bt)}}}else{if(!bp&&bm.length>1&&bg.nodeType===9&&!bj&&a6.match.ID.test(bm[0])&&!a6.match.ID.test(bm[bm.length-1])){var bs=a0.find(bm.shift(),bg,bj);bg=bs.expr?a0.filter(bs.expr,bs.set)[0]:bs.set[0]}if(bg){var bs=bp?{expr:bm.pop(),set:a8(bp)}:a0.find(bm.pop(),bm.length===1&&(bm[0]==="~"||bm[0]==="+")&&bg.parentNode?bg.parentNode:bg,bj);bt=bs.expr?a0.filter(bs.expr,bs.set):bs.set;if(bm.length>0){bw=a8(bt)}else{bk=false}while(bm.length){var bv=bm.pop(),bu=bv;if(!a6.relative[bv]){bv=""}else{bu=bm.pop()}if(bu==null){bu=bg}a6.relative[bv](bw,bu,bj)}}else{bw=bm=[]}}if(!bw){bw=bt}if(!bw){a0.error(bv||bl)}if(bc.call(bw)==="[object Array]"){if(!bk){bo.push.apply(bo,bw)}else{if(bg&&bg.nodeType===1){for(var bn=0;bw[bn]!=null;bn++){if(bw[bn]&&(bw[bn]===true||bw[bn].nodeType===1&&a7(bg,bw[bn]))){bo.push(bt[bn])}}}else{for(var bn=0;bw[bn]!=null;bn++){if(bw[bn]&&bw[bn].nodeType===1){bo.push(bt[bn])}}}}}else{a8(bw,bo)}if(bh){a0(bh,br,bo,bp);a0.uniqueSort(bo)}return bo};a0.uniqueSort=function(bh){if(bb){a4=a3;bh.sort(bb);if(a4){for(var bg=1;bg<bh.length;bg++){if(bh[bg]===bh[bg-1]){bh.splice(bg--,1)}}}}return bh};a0.matches=function(bg,bh){return a0(bg,null,null,bh)};a0.find=function(bn,bg,bo){var bm,bk;if(!bn){return[]}for(var bj=0,bi=a6.order.length;bj<bi;bj++){var bl=a6.order[bj],bk;if((bk=a6.leftMatch[bl].exec(bn))){var bh=bk[1];bk.splice(1,1);if(bh.substr(bh.length-1)!=="\\"){bk[1]=(bk[1]||"").replace(/\\/g,"");bm=a6.find[bl](bk,bg,bo);if(bm!=null){bn=bn.replace(a6.match[bl],"");break}}}}if(!bm){bm=bg.getElementsByTagName("*")}return{set:bm,expr:bn}};a0.filter=function(br,bq,bu,bk){var bi=br,bw=[],bo=bq,bm,bg,bn=bq&&bq[0]&&a1(bq[0]);while(br&&bq.length){for(var bp in a6.filter){if((bm=a6.leftMatch[bp].exec(br))!=null&&bm[2]){var bh=a6.filter[bp],bv,bt,bj=bm[1];bg=false;bm.splice(1,1);if(bj.substr(bj.length-1)==="\\"){continue}if(bo===bw){bw=[]}if(a6.preFilter[bp]){bm=a6.preFilter[bp](bm,bo,bu,bw,bk,bn);if(!bm){bg=bv=true}else{if(bm===true){continue}}}if(bm){for(var bl=0;(bt=bo[bl])!=null;bl++){if(bt){bv=bh(bt,bm,bl,bo);var bs=bk^!!bv;if(bu&&bv!=null){if(bs){bg=true}else{bo[bl]=false}}else{if(bs){bw.push(bt);bg=true}}}}}if(bv!==C){if(!bu){bo=bw}br=br.replace(a6.match[bp],"");if(!bg){return[]}break}}}if(br===bi){if(bg==null){a0.error(br)}else{break}}bi=br}return bo};a0.error=function(bg){throw"Syntax error, unrecognized expression: "+bg};var a6=a0.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(bg){return bg.getAttribute("href")}},relative:{"+":function(bm,bh){var bj=typeof bh==="string",bl=bj&&!/\W/.test(bh),bn=bj&&!bl;if(bl){bh=bh.toLowerCase()}for(var bi=0,bg=bm.length,bk;bi<bg;bi++){if((bk=bm[bi])){while((bk=bk.previousSibling)&&bk.nodeType!==1){}bm[bi]=bn||bk&&bk.nodeName.toLowerCase()===bh?bk||false:bk===bh}}if(bn){a0.filter(bh,bm,true)}},">":function(bm,bh){var bk=typeof bh==="string";if(bk&&!/\W/.test(bh)){bh=bh.toLowerCase();for(var bi=0,bg=bm.length;bi<bg;bi++){var bl=bm[bi];if(bl){var bj=bl.parentNode;bm[bi]=bj.nodeName.toLowerCase()===bh?bj:false}}}else{for(var bi=0,bg=bm.length;bi<bg;bi++){var bl=bm[bi];if(bl){bm[bi]=bk?bl.parentNode:bl.parentNode===bh}}if(bk){a0.filter(bh,bm,true)}}},"":function(bj,bh,bl){var bi=ba++,bg=be;if(typeof bh==="string"&&!/\W/.test(bh)){var bk=bh=bh.toLowerCase();bg=aY}bg("parentNode",bh,bi,bj,bk,bl)},"~":function(bj,bh,bl){var bi=ba++,bg=be;if(typeof bh==="string"&&!/\W/.test(bh)){var bk=bh=bh.toLowerCase();bg=aY}bg("previousSibling",bh,bi,bj,bk,bl)}},find:{ID:function(bh,bi,bj){if(typeof bi.getElementById!=="undefined"&&!bj){var bg=bi.getElementById(bh[1]);return bg?[bg]:[]}},NAME:function(bi,bl){if(typeof bl.getElementsByName!=="undefined"){var bh=[],bk=bl.getElementsByName(bi[1]);for(var bj=0,bg=bk.length;bj<bg;bj++){if(bk[bj].getAttribute("name")===bi[1]){bh.push(bk[bj])}}return bh.length===0?null:bh}},TAG:function(bg,bh){return bh.getElementsByTagName(bg[1])}},preFilter:{CLASS:function(bj,bh,bi,bg,bm,bn){bj=" "+bj[1].replace(/\\/g,"")+" ";if(bn){return bj}for(var bk=0,bl;(bl=bh[bk])!=null;bk++){if(bl){if(bm^(bl.className&&(" "+bl.className+" ").replace(/[\t\n]/g," ").indexOf(bj)>=0)){if(!bi){bg.push(bl)}}else{if(bi){bh[bk]=false}}}}return false},ID:function(bg){return bg[1].replace(/\\/g,"")},TAG:function(bh,bg){return bh[1].toLowerCase()},CHILD:function(bg){if(bg[1]==="nth"){var bh=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(bg[2]==="even"&&"2n"||bg[2]==="odd"&&"2n+1"||!/\D/.test(bg[2])&&"0n+"+bg[2]||bg[2]);bg[2]=(bh[1]+(bh[2]||1))-0;bg[3]=bh[3]-0}bg[0]=ba++;return bg},ATTR:function(bk,bh,bi,bg,bl,bm){var bj=bk[1].replace(/\\/g,"");if(!bm&&a6.attrMap[bj]){bk[1]=a6.attrMap[bj]}if(bk[2]==="~="){bk[4]=" "+bk[4]+" "}return bk},PSEUDO:function(bk,bh,bi,bg,bl){if(bk[1]==="not"){if((a9.exec(bk[3])||"").length>1||/^\w/.test(bk[3])){bk[3]=a0(bk[3],null,null,bh)}else{var bj=a0.filter(bk[3],bh,bi,true^bl);if(!bi){bg.push.apply(bg,bj)}return false}}else{if(a6.match.POS.test(bk[0])||a6.match.CHILD.test(bk[0])){return true}}return bk},POS:function(bg){bg.unshift(true);return bg}},filters:{enabled:function(bg){return bg.disabled===false&&bg.type!=="hidden"},disabled:function(bg){return bg.disabled===true},checked:function(bg){return bg.checked===true},selected:function(bg){bg.parentNode.selectedIndex;return bg.selected===true},parent:function(bg){return !!bg.firstChild},empty:function(bg){return !bg.firstChild},has:function(bi,bh,bg){return !!a0(bg[3],bi).length},header:function(bg){return/h\d/i.test(bg.nodeName)},text:function(bg){return"text"===bg.type},radio:function(bg){return"radio"===bg.type},checkbox:function(bg){return"checkbox"===bg.type},file:function(bg){return"file"===bg.type},password:function(bg){return"password"===bg.type},submit:function(bg){return"submit"===bg.type},image:function(bg){return"image"===bg.type},reset:function(bg){return"reset"===bg.type},button:function(bg){return"button"===bg.type||bg.nodeName.toLowerCase()==="button"},input:function(bg){return/input|select|textarea|button/i.test(bg.nodeName)}},setFilters:{first:function(bh,bg){return bg===0},last:function(bi,bh,bg,bj){return bh===bj.length-1},even:function(bh,bg){return bg%2===0},odd:function(bh,bg){return bg%2===1},lt:function(bi,bh,bg){return bh<bg[3]-0},gt:function(bi,bh,bg){return bh>bg[3]-0},nth:function(bi,bh,bg){return bg[3]-0===bh},eq:function(bi,bh,bg){return bg[3]-0===bh}},filter:{PSEUDO:function(bm,bi,bj,bn){var bh=bi[1],bk=a6.filters[bh];if(bk){return bk(bm,bj,bi,bn)}else{if(bh==="contains"){return(bm.textContent||bm.innerText||aZ([bm])||"").indexOf(bi[3])>=0}else{if(bh==="not"){var bl=bi[3];for(var bj=0,bg=bl.length;bj<bg;bj++){if(bl[bj]===bm){return false}}return true}else{a0.error("Syntax error, unrecognized expression: "+bh)}}}},CHILD:function(bg,bj){var bm=bj[1],bh=bg;switch(bm){case"only":case"first":while((bh=bh.previousSibling)){if(bh.nodeType===1){return false}}if(bm==="first"){return true}bh=bg;case"last":while((bh=bh.nextSibling)){if(bh.nodeType===1){return false}}return true;case"nth":var bi=bj[2],bp=bj[3];if(bi===1&&bp===0){return true}var bl=bj[0],bo=bg.parentNode;if(bo&&(bo.sizcache!==bl||!bg.nodeIndex)){var bk=0;for(bh=bo.firstChild;bh;bh=bh.nextSibling){if(bh.nodeType===1){bh.nodeIndex=++bk}}bo.sizcache=bl}var bn=bg.nodeIndex-bp;if(bi===0){return bn===0}else{return(bn%bi===0&&bn/bi>=0)}}},ID:function(bh,bg){return bh.nodeType===1&&bh.getAttribute("id")===bg},TAG:function(bh,bg){return(bg==="*"&&bh.nodeType===1)||bh.nodeName.toLowerCase()===bg},CLASS:function(bh,bg){return(" "+(bh.className||bh.getAttribute("class"))+" ").indexOf(bg)>-1},ATTR:function(bl,bj){var bi=bj[1],bg=a6.attrHandle[bi]?a6.attrHandle[bi](bl):bl[bi]!=null?bl[bi]:bl.getAttribute(bi),bm=bg+"",bk=bj[2],bh=bj[4];return bg==null?bk==="!=":bk==="="?bm===bh:bk==="*="?bm.indexOf(bh)>=0:bk==="~="?(" "+bm+" ").indexOf(bh)>=0:!bh?bm&&bg!==false:bk==="!="?bm!==bh:bk==="^="?bm.indexOf(bh)===0:bk==="$="?bm.substr(bm.length-bh.length)===bh:bk==="|="?bm===bh||bm.substr(0,bh.length+1)===bh+"-":false},POS:function(bk,bh,bi,bl){var bg=bh[2],bj=a6.setFilters[bg];if(bj){return bj(bk,bi,bh,bl)}}}};var a5=a6.match.POS;for(var a2 in a6.match){a6.match[a2]=new RegExp(a6.match[a2].source+/(?![^\[]*\])(?![^\(]*\))/.source);a6.leftMatch[a2]=new RegExp(/(^(?:.|\r|\n)*?)/.source+a6.match[a2].source.replace(/\\(\d+)/g,function(bh,bg){return"\\"+(bg-0+1)}))}var a8=function(bh,bg){bh=Array.prototype.slice.call(bh,0);if(bg){bg.push.apply(bg,bh);return bg}return bh};try{Array.prototype.slice.call(ab.documentElement.childNodes,0)[0].nodeType}catch(bf){a8=function(bk,bj){var bh=bj||[];if(bc.call(bk)==="[object Array]"){Array.prototype.push.apply(bh,bk)}else{if(typeof bk.length==="number"){for(var bi=0,bg=bk.length;bi<bg;bi++){bh.push(bk[bi])}}else{for(var bi=0;bk[bi];bi++){bh.push(bk[bi])}}}return bh}}var bb;if(ab.documentElement.compareDocumentPosition){bb=function(bh,bg){if(!bh.compareDocumentPosition||!bg.compareDocumentPosition){if(bh==bg){a4=true}return bh.compareDocumentPosition?-1:1}var bi=bh.compareDocumentPosition(bg)&4?-1:bh===bg?0:1;if(bi===0){a4=true}return bi}}else{if("sourceIndex" in ab.documentElement){bb=function(bh,bg){if(!bh.sourceIndex||!bg.sourceIndex){if(bh==bg){a4=true}return bh.sourceIndex?-1:1}var bi=bh.sourceIndex-bg.sourceIndex;if(bi===0){a4=true}return bi}}else{if(ab.createRange){bb=function(bj,bh){if(!bj.ownerDocument||!bh.ownerDocument){if(bj==bh){a4=true}return bj.ownerDocument?-1:1}var bi=bj.ownerDocument.createRange(),bg=bh.ownerDocument.createRange();bi.setStart(bj,0);bi.setEnd(bj,0);bg.setStart(bh,0);bg.setEnd(bh,0);var bk=bi.compareBoundaryPoints(Range.START_TO_END,bg);if(bk===0){a4=true}return bk}}}}function aZ(bg){var bh="",bj;for(var bi=0;bg[bi];bi++){bj=bg[bi];if(bj.nodeType===3||bj.nodeType===4){bh+=bj.nodeValue}else{if(bj.nodeType!==8){bh+=aZ(bj.childNodes)}}}return bh}(function(){var bh=ab.createElement("div"),bi="script"+(new Date).getTime();bh.innerHTML="<a name='"+bi+"'/>";var bg=ab.documentElement;bg.insertBefore(bh,bg.firstChild);if(ab.getElementById(bi)){a6.find.ID=function(bk,bl,bm){if(typeof bl.getElementById!=="undefined"&&!bm){var bj=bl.getElementById(bk[1]);return bj?bj.id===bk[1]||typeof bj.getAttributeNode!=="undefined"&&bj.getAttributeNode("id").nodeValue===bk[1]?[bj]:C:[]}};a6.filter.ID=function(bl,bj){var bk=typeof bl.getAttributeNode!=="undefined"&&bl.getAttributeNode("id");return bl.nodeType===1&&bk&&bk.nodeValue===bj}}bg.removeChild(bh);bg=bh=null})();(function(){var bg=ab.createElement("div");bg.appendChild(ab.createComment(""));if(bg.getElementsByTagName("*").length>0){a6.find.TAG=function(bh,bl){var bk=bl.getElementsByTagName(bh[1]);if(bh[1]==="*"){var bj=[];for(var bi=0;bk[bi];bi++){if(bk[bi].nodeType===1){bj.push(bk[bi])}}bk=bj}return bk}}bg.innerHTML="<a href='#'></a>";if(bg.firstChild&&typeof bg.firstChild.getAttribute!=="undefined"&&bg.firstChild.getAttribute("href")!=="#"){a6.attrHandle.href=function(bh){return bh.getAttribute("href",2)}}bg=null})();if(ab.querySelectorAll){(function(){var bg=a0,bi=ab.createElement("div");bi.innerHTML="<p class='TEST'></p>";if(bi.querySelectorAll&&bi.querySelectorAll(".TEST").length===0){return}a0=function(bm,bl,bj,bk){bl=bl||ab;if(!bk&&bl.nodeType===9&&!a1(bl)){try{return a8(bl.querySelectorAll(bm),bj)}catch(bn){}}return bg(bm,bl,bj,bk)};for(var bh in bg){a0[bh]=bg[bh]}bi=null})()}(function(){var bg=ab.createElement("div");bg.innerHTML="<div class='test e'></div><div class='test'></div>";if(!bg.getElementsByClassName||bg.getElementsByClassName("e").length===0){return}bg.lastChild.className="e";if(bg.getElementsByClassName("e").length===1){return}a6.order.splice(1,0,"CLASS");a6.find.CLASS=function(bh,bi,bj){if(typeof bi.getElementsByClassName!=="undefined"&&!bj){return bi.getElementsByClassName(bh[1])}};bg=null})();function aY(bh,bm,bl,bp,bn,bo){for(var bj=0,bi=bp.length;bj<bi;bj++){var bg=bp[bj];if(bg){bg=bg[bh];var bk=false;while(bg){if(bg.sizcache===bl){bk=bp[bg.sizset];break}if(bg.nodeType===1&&!bo){bg.sizcache=bl;bg.sizset=bj}if(bg.nodeName.toLowerCase()===bm){bk=bg;break}bg=bg[bh]}bp[bj]=bk}}}function be(bh,bm,bl,bp,bn,bo){for(var bj=0,bi=bp.length;bj<bi;bj++){var bg=bp[bj];if(bg){bg=bg[bh];var bk=false;while(bg){if(bg.sizcache===bl){bk=bp[bg.sizset];break}if(bg.nodeType===1){if(!bo){bg.sizcache=bl;bg.sizset=bj}if(typeof bm!=="string"){if(bg===bm){bk=true;break}}else{if(a0.filter(bm,[bg]).length>0){bk=bg;break}}}bg=bg[bh]}bp[bj]=bk}}}var a7=ab.compareDocumentPosition?function(bh,bg){return !!(bh.compareDocumentPosition(bg)&16)}:function(bh,bg){return bh!==bg&&(bh.contains?bh.contains(bg):true)};var a1=function(bg){var bh=(bg?bg.ownerDocument||bg:0).documentElement;return bh?bh.nodeName!=="HTML":false};var bd=function(bg,bn){var bj=[],bk="",bl,bi=bn.nodeType?[bn]:bn;while((bl=a6.match.PSEUDO.exec(bg))){bk+=bl[0];bg=bg.replace(a6.match.PSEUDO,"")}bg=a6.relative[bg]?bg+"*":bg;for(var bm=0,bh=bi.length;bm<bh;bm++){a0(bg,bi[bm],bj)}return a0.filter(bk,bj)};a.find=a0;a.expr=a0.selectors;a.expr[":"]=a.expr.filters;a.unique=a0.uniqueSort;a.text=aZ;a.isXMLDoc=a1;a.contains=a7;return;aM.Sizzle=a0})();var N=/Until$/,Y=/^(?:parents|prevUntil|prevAll)/,aL=/,/,F=Array.prototype.slice;var ai=function(a1,a0,aY){if(a.isFunction(a0)){return a.grep(a1,function(a3,a2){return !!a0.call(a3,a2,a3)===aY})}else{if(a0.nodeType){return a.grep(a1,function(a3,a2){return(a3===a0)===aY})}else{if(typeof a0==="string"){var aZ=a.grep(a1,function(a2){return a2.nodeType===1});if(aW.test(a0)){return a.filter(a0,aZ,!aY)}else{a0=a.filter(a0,aZ)}}}}return a.grep(a1,function(a3,a2){return(a.inArray(a3,a0)>=0)===aY})};a.fn.extend({find:function(aY){var a0=this.pushStack("","find",aY),a3=0;for(var a1=0,aZ=this.length;a1<aZ;a1++){a3=a0.length;a.find(aY,this[a1],a0);if(a1>0){for(var a4=a3;a4<a0.length;a4++){for(var a2=0;a2<a3;a2++){if(a0[a2]===a0[a4]){a0.splice(a4--,1);break}}}}}return a0},has:function(aZ){var aY=a(aZ);return this.filter(function(){for(var a1=0,a0=aY.length;a1<a0;a1++){if(a.contains(this,aY[a1])){return true}}})},not:function(aY){return this.pushStack(ai(this,aY,false),"not",aY)},filter:function(aY){return this.pushStack(ai(this,aY,true),"filter",aY)},is:function(aY){return !!aY&&a.filter(aY,this).length>0},closest:function(a7,aY){if(a.isArray(a7)){var a4=[],a6=this[0],a3,a2={},a0;if(a6&&a7.length){for(var a1=0,aZ=a7.length;a1<aZ;a1++){a0=a7[a1];if(!a2[a0]){a2[a0]=a.expr.match.POS.test(a0)?a(a0,aY||this.context):a0}}while(a6&&a6.ownerDocument&&a6!==aY){for(a0 in a2){a3=a2[a0];if(a3.jquery?a3.index(a6)>-1:a(a6).is(a3)){a4.push({selector:a0,elem:a6});delete a2[a0]}}a6=a6.parentNode}}return a4}var a5=a.expr.match.POS.test(a7)?a(a7,aY||this.context):null;return this.map(function(a8,a9){while(a9&&a9.ownerDocument&&a9!==aY){if(a5?a5.index(a9)>-1:a(a9).is(a7)){return a9}a9=a9.parentNode}return null})},index:function(aY){if(!aY||typeof aY==="string"){return a.inArray(this[0],aY?a(aY):this.parent().children())}return a.inArray(aY.jquery?aY[0]:aY,this)},add:function(aY,aZ){var a1=typeof aY==="string"?a(aY,aZ||this.context):a.makeArray(aY),a0=a.merge(this.get(),a1);return this.pushStack(y(a1[0])||y(a0[0])?a0:a.unique(a0))},andSelf:function(){return this.add(this.prevObject)}});function y(aY){return !aY||!aY.parentNode||aY.parentNode.nodeType===11}a.each({parent:function(aZ){var aY=aZ.parentNode;return aY&&aY.nodeType!==11?aY:null},parents:function(aY){return a.dir(aY,"parentNode")},parentsUntil:function(aZ,aY,a0){return a.dir(aZ,"parentNode",a0)},next:function(aY){return a.nth(aY,2,"nextSibling")},prev:function(aY){return a.nth(aY,2,"previousSibling")},nextAll:function(aY){return a.dir(aY,"nextSibling")},prevAll:function(aY){return a.dir(aY,"previousSibling")},nextUntil:function(aZ,aY,a0){return a.dir(aZ,"nextSibling",a0)},prevUntil:function(aZ,aY,a0){return a.dir(aZ,"previousSibling",a0)},siblings:function(aY){return a.sibling(aY.parentNode.firstChild,aY)},children:function(aY){return a.sibling(aY.firstChild)},contents:function(aY){return a.nodeName(aY,"iframe")?aY.contentDocument||aY.contentWindow.document:a.makeArray(aY.childNodes)}},function(aY,aZ){a.fn[aY]=function(a2,a0){var a1=a.map(this,aZ,a2);if(!N.test(aY)){a0=a2}if(a0&&typeof a0==="string"){a1=a.filter(a0,a1)}a1=this.length>1?a.unique(a1):a1;if((this.length>1||aL.test(a0))&&Y.test(aY)){a1=a1.reverse()}return this.pushStack(a1,aY,F.call(arguments).join(","))}});a.extend({filter:function(a0,aY,aZ){if(aZ){a0=":not("+a0+")"}return a.find.matches(a0,aY)},dir:function(a0,aZ,a2){var aY=[],a1=a0[aZ];while(a1&&a1.nodeType!==9&&(a2===C||a1.nodeType!==1||!a(a1).is(a2))){if(a1.nodeType===1){aY.push(a1)}a1=a1[aZ]}return aY},nth:function(a2,aY,a0,a1){aY=aY||1;var aZ=0;for(;a2;a2=a2[a0]){if(a2.nodeType===1&&++aZ===aY){break}}return a2},sibling:function(a0,aZ){var aY=[];for(;a0;a0=a0.nextSibling){if(a0.nodeType===1&&a0!==aZ){aY.push(a0)}}return aY}});var T=/ jQuery\d+="(?:\d+|null)"/g,Z=/^\s+/,H=/(<([\w:]+)[^>]*?)\/>/g,al=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,c=/<([\w:]+)/,t=/<tbody/i,L=/<|&#?\w+;/,E=/<script|<object|<embed|<option|<style/i,l=/checked\s*(?:[^=]|=\s*.checked.)/i,p=function(aZ,a0,aY){return al.test(aY)?aZ:a0+"></"+aY+">"},ac={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};ac.optgroup=ac.option;ac.tbody=ac.tfoot=ac.colgroup=ac.caption=ac.thead;ac.th=ac.td;if(!a.support.htmlSerialize){ac._default=[1,"div<div>","</div>"]}a.fn.extend({text:function(aY){if(a.isFunction(aY)){return this.each(function(a0){var aZ=a(this);aZ.text(aY.call(this,a0,aZ.text()))})}if(typeof aY!=="object"&&aY!==C){return this.empty().append((this[0]&&this[0].ownerDocument||ab).createTextNode(aY))}return a.text(this)},wrapAll:function(aY){if(a.isFunction(aY)){return this.each(function(a0){a(this).wrapAll(aY.call(this,a0))})}if(this[0]){var aZ=a(aY,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){aZ.insertBefore(this[0])}aZ.map(function(){var a0=this;while(a0.firstChild&&a0.firstChild.nodeType===1){a0=a0.firstChild}return a0}).append(this)}return this},wrapInner:function(aY){if(a.isFunction(aY)){return this.each(function(aZ){a(this).wrapInner(aY.call(this,aZ))})}return this.each(function(){var aZ=a(this),a0=aZ.contents();if(a0.length){a0.wrapAll(aY)}else{aZ.append(aY)}})},wrap:function(aY){return this.each(function(){a(this).wrapAll(aY)})},unwrap:function(){return this.parent().each(function(){if(!a.nodeName(this,"body")){a(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(aY){if(this.nodeType===1){this.appendChild(aY)}})},prepend:function(){return this.domManip(arguments,true,function(aY){if(this.nodeType===1){this.insertBefore(aY,this.firstChild)}})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(aZ){this.parentNode.insertBefore(aZ,this)})}else{if(arguments.length){var aY=a(arguments[0]);aY.push.apply(aY,this.toArray());return this.pushStack(aY,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(aZ){this.parentNode.insertBefore(aZ,this.nextSibling)})}else{if(arguments.length){var aY=this.pushStack(this,"after",arguments);aY.push.apply(aY,a(arguments[0]).toArray());return aY}}},remove:function(aY,a1){for(var aZ=0,a0;(a0=this[aZ])!=null;aZ++){if(!aY||a.filter(aY,[a0]).length){if(!a1&&a0.nodeType===1){a.cleanData(a0.getElementsByTagName("*"));a.cleanData([a0])}if(a0.parentNode){a0.parentNode.removeChild(a0)}}}return this},empty:function(){for(var aY=0,aZ;(aZ=this[aY])!=null;aY++){if(aZ.nodeType===1){a.cleanData(aZ.getElementsByTagName("*"))}while(aZ.firstChild){aZ.removeChild(aZ.firstChild)}}return this},clone:function(aZ){var aY=this.map(function(){if(!a.support.noCloneEvent&&!a.isXMLDoc(this)){var a1=this.outerHTML,a0=this.ownerDocument;if(!a1){var a2=a0.createElement("div");a2.appendChild(this.cloneNode(true));a1=a2.innerHTML}return a.clean([a1.replace(T,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(Z,"")],a0)[0]}else{return this.cloneNode(true)}});if(aZ===true){q(this,aY);q(this.find("*"),aY.find("*"))}return aY},html:function(a0){if(a0===C){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(T,""):null}else{if(typeof a0==="string"&&!E.test(a0)&&(a.support.leadingWhitespace||!Z.test(a0))&&!ac[(c.exec(a0)||["",""])[1].toLowerCase()]){a0=a0.replace(H,p);try{for(var aZ=0,aY=this.length;aZ<aY;aZ++){if(this[aZ].nodeType===1){a.cleanData(this[aZ].getElementsByTagName("*"));this[aZ].innerHTML=a0}}}catch(a1){this.empty().append(a0)}}else{if(a.isFunction(a0)){this.each(function(a4){var a3=a(this),a2=a3.html();a3.empty().append(function(){return a0.call(this,a4,a2)})})}else{this.empty().append(a0)}}}return this},replaceWith:function(aY){if(this[0]&&this[0].parentNode){if(a.isFunction(aY)){return this.each(function(a1){var a0=a(this),aZ=a0.html();a0.replaceWith(aY.call(this,a1,aZ))})}if(typeof aY!=="string"){aY=a(aY).detach()}return this.each(function(){var a0=this.nextSibling,aZ=this.parentNode;a(this).remove();if(a0){a(a0).before(aY)}else{a(aZ).append(aY)}})}else{return this.pushStack(a(a.isFunction(aY)?aY():aY),"replaceWith",aY)}},detach:function(aY){return this.remove(aY,true)},domManip:function(a4,a9,a8){var a1,a2,a7=a4[0],aZ=[],a3,a6;if(!a.support.checkClone&&arguments.length===3&&typeof a7==="string"&&l.test(a7)){return this.each(function(){a(this).domManip(a4,a9,a8,true)})}if(a.isFunction(a7)){return this.each(function(bb){var ba=a(this);a4[0]=a7.call(this,bb,a9?ba.html():C);ba.domManip(a4,a9,a8)})}if(this[0]){a6=a7&&a7.parentNode;if(a.support.parentNode&&a6&&a6.nodeType===11&&a6.childNodes.length===this.length){a1={fragment:a6}}else{a1=J(a4,this,aZ)}a3=a1.fragment;if(a3.childNodes.length===1){a2=a3=a3.firstChild}else{a2=a3.firstChild}if(a2){a9=a9&&a.nodeName(a2,"tr");for(var a0=0,aY=this.length;a0<aY;a0++){a8.call(a9?a5(this[a0],a2):this[a0],a0>0||a1.cacheable||this.length>1?a3.cloneNode(true):a3)}}if(aZ.length){a.each(aZ,aV)}}return this;function a5(ba,bb){return a.nodeName(ba,"table")?(ba.getElementsByTagName("tbody")[0]||ba.appendChild(ba.ownerDocument.createElement("tbody"))):ba}}});function q(a0,aY){var aZ=0;aY.each(function(){if(this.nodeName!==(a0[aZ]&&a0[aZ].nodeName)){return}var a5=a.data(a0[aZ++]),a4=a.data(this,a5),a1=a5&&a5.events;if(a1){delete a4.handle;a4.events={};for(var a3 in a1){for(var a2 in a1[a3]){a.event.add(this,a3,a1[a3][a2],a1[a3][a2].data)}}}})}function J(a3,a1,aZ){var a2,aY,a0,a4=(a1&&a1[0]?a1[0].ownerDocument||a1[0]:ab);if(a3.length===1&&typeof a3[0]==="string"&&a3[0].length<512&&a4===ab&&!E.test(a3[0])&&(a.support.checkClone||!l.test(a3[0]))){aY=true;a0=a.fragments[a3[0]];if(a0){if(a0!==1){a2=a0}}}if(!a2){a2=a4.createDocumentFragment();a.clean(a3,a4,a2,aZ)}if(aY){a.fragments[a3[0]]=a0?a2:1}return{fragment:a2,cacheable:aY}}a.fragments={};a.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(aY,aZ){a.fn[aY]=function(a0){var a3=[],a6=a(a0),a5=this.length===1&&this[0].parentNode;if(a5&&a5.nodeType===11&&a5.childNodes.length===1&&a6.length===1){a6[aZ](this[0]);return this}else{for(var a4=0,a1=a6.length;a4<a1;a4++){var a2=(a4>0?this.clone(true):this).get();a.fn[aZ].apply(a(a6[a4]),a2);a3=a3.concat(a2)}return this.pushStack(a3,aY,a6.selector)}}});a.extend({clean:function(a0,a2,a9,a4){a2=a2||ab;if(typeof a2.createElement==="undefined"){a2=a2.ownerDocument||a2[0]&&a2[0].ownerDocument||ab}var ba=[];for(var a8=0,a3;(a3=a0[a8])!=null;a8++){if(typeof a3==="number"){a3+=""}if(!a3){continue}if(typeof a3==="string"&&!L.test(a3)){a3=a2.createTextNode(a3)}else{if(typeof a3==="string"){a3=a3.replace(H,p);var bb=(c.exec(a3)||["",""])[1].toLowerCase(),a1=ac[bb]||ac._default,a7=a1[0],aZ=a2.createElement("div");aZ.innerHTML=a1[1]+a3+a1[2];while(a7--){aZ=aZ.lastChild}if(!a.support.tbody){var aY=t.test(a3),a6=bb==="table"&&!aY?aZ.firstChild&&aZ.firstChild.childNodes:a1[1]==="<table>"&&!aY?aZ.childNodes:[];for(var a5=a6.length-1;a5>=0;--a5){if(a.nodeName(a6[a5],"tbody")&&!a6[a5].childNodes.length){a6[a5].parentNode.removeChild(a6[a5])}}}if(!a.support.leadingWhitespace&&Z.test(a3)){aZ.insertBefore(a2.createTextNode(Z.exec(a3)[0]),aZ.firstChild)}a3=aZ.childNodes}}if(a3.nodeType){ba.push(a3)}else{ba=a.merge(ba,a3)}}if(a9){for(var a8=0;ba[a8];a8++){if(a4&&a.nodeName(ba[a8],"script")&&(!ba[a8].type||ba[a8].type.toLowerCase()==="text/javascript")){a4.push(ba[a8].parentNode?ba[a8].parentNode.removeChild(ba[a8]):ba[a8])}else{if(ba[a8].nodeType===1){ba.splice.apply(ba,[a8+1,0].concat(a.makeArray(ba[a8].getElementsByTagName("script"))))}a9.appendChild(ba[a8])}}}return ba},cleanData:function(aZ){var a2,a0,aY=a.cache,a5=a.event.special,a4=a.support.deleteExpando;for(var a3=0,a1;(a1=aZ[a3])!=null;a3++){a0=a1[a.expando];if(a0){a2=aY[a0];if(a2.events){for(var a6 in a2.events){if(a5[a6]){a.event.remove(a1,a6)}else{ag(a1,a6,a2.handle)}}}if(a4){delete a1[a.expando]}else{if(a1.removeAttribute){a1.removeAttribute(a.expando)}}delete aY[a0]}}}});var ar=/z-?index|font-?weight|opacity|zoom|line-?height/i,U=/alpha\([^)]*\)/,aa=/opacity=([^)]*)/,ah=/float/i,az=/-([a-z])/ig,v=/([A-Z])/g,aO=/^-?\d+(?:px)?$/i,aU=/^-?\d/,aK={position:"absolute",visibility:"hidden",display:"block"},W=["Left","Right"],aE=["Top","Bottom"],ak=ab.defaultView&&ab.defaultView.getComputedStyle,aN=a.support.cssFloat?"cssFloat":"styleFloat",k=function(aY,aZ){return aZ.toUpperCase()};a.fn.css=function(aY,aZ){return an(this,aY,aZ,true,function(a1,a0,a2){if(a2===C){return a.curCSS(a1,a0)}if(typeof a2==="number"&&!ar.test(a0)){a2+="px"}a.style(a1,a0,a2)})};a.extend({style:function(a2,aZ,a3){if(!a2||a2.nodeType===3||a2.nodeType===8){return C}if((aZ==="width"||aZ==="height")&&parseFloat(a3)<0){a3=C}var a1=a2.style||a2,a4=a3!==C;if(!a.support.opacity&&aZ==="opacity"){if(a4){a1.zoom=1;var aY=parseInt(a3,10)+""==="NaN"?"":"alpha(opacity="+a3*100+")";var a0=a1.filter||a.curCSS(a2,"filter")||"";a1.filter=U.test(a0)?a0.replace(U,aY):aY}return a1.filter&&a1.filter.indexOf("opacity=")>=0?(parseFloat(aa.exec(a1.filter)[1])/100)+"":""}if(ah.test(aZ)){aZ=aN}aZ=aZ.replace(az,k);if(a4){a1[aZ]=a3}return a1[aZ]},css:function(a1,aZ,a3,aY){if(aZ==="width"||aZ==="height"){var a5,a0=aK,a4=aZ==="width"?W:aE;function a2(){a5=aZ==="width"?a1.offsetWidth:a1.offsetHeight;if(aY==="border"){return}a.each(a4,function(){if(!aY){a5-=parseFloat(a.curCSS(a1,"padding"+this,true))||0}if(aY==="margin"){a5+=parseFloat(a.curCSS(a1,"margin"+this,true))||0}else{a5-=parseFloat(a.curCSS(a1,"border"+this+"Width",true))||0}})}if(a1.offsetWidth!==0){a2()}else{a.swap(a1,a0,a2)}return Math.max(0,Math.round(a5))}return a.curCSS(a1,aZ,a3)},curCSS:function(a4,aZ,a0){var a7,aY=a4.style,a1;if(!a.support.opacity&&aZ==="opacity"&&a4.currentStyle){a7=aa.test(a4.currentStyle.filter||"")?(parseFloat(RegExp.$1)/100)+"":"";return a7===""?"1":a7}if(ah.test(aZ)){aZ=aN}if(!a0&&aY&&aY[aZ]){a7=aY[aZ]}else{if(ak){if(ah.test(aZ)){aZ="float"}aZ=aZ.replace(v,"-$1").toLowerCase();var a6=a4.ownerDocument.defaultView;if(!a6){return null}var a8=a6.getComputedStyle(a4,null);if(a8){a7=a8.getPropertyValue(aZ)}if(aZ==="opacity"&&a7===""){a7="1"}}else{if(a4.currentStyle){var a3=aZ.replace(az,k);a7=a4.currentStyle[aZ]||a4.currentStyle[a3];if(!aO.test(a7)&&aU.test(a7)){var a2=aY.left,a5=a4.runtimeStyle.left;a4.runtimeStyle.left=a4.currentStyle.left;aY.left=a3==="fontSize"?"1em":(a7||0);a7=aY.pixelLeft+"px";aY.left=a2;a4.runtimeStyle.left=a5}}}}return a7},swap:function(a1,a0,a2){var aY={};for(var aZ in a0){aY[aZ]=a1.style[aZ];a1.style[aZ]=a0[aZ]}a2.call(a1);for(var aZ in a0){a1.style[aZ]=aY[aZ]}}});if(a.expr&&a.expr.filters){a.expr.filters.hidden=function(a1){var aZ=a1.offsetWidth,aY=a1.offsetHeight,a0=a1.nodeName.toLowerCase()==="tr";return aZ===0&&aY===0&&!a0?true:aZ>0&&aY>0&&!a0?false:a.curCSS(a1,"display")==="none"};a.expr.filters.visible=function(aY){return !a.expr.filters.hidden(aY)}}var af=aP(),aJ=/<script(.|\s)*?\/script>/gi,o=/select|textarea/i,aB=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,r=/=\?(&|$)/,D=/\?/,aX=/(\?|&)_=.*?(&|$)/,B=/^(\w+:)?\/\/([^\/?#]+)/,h=/%20/g,w=a.fn.load;a.fn.extend({load:function(a0,a3,a4){if(typeof a0!=="string"){return w.call(this,a0)}else{if(!this.length){return this}}var a2=a0.indexOf(" ");if(a2>=0){var aY=a0.slice(a2,a0.length);a0=a0.slice(0,a2)}var a1="GET";if(a3){if(a.isFunction(a3)){a4=a3;a3=null}else{if(typeof a3==="object"){a3=a.param(a3,a.ajaxSettings.traditional);a1="POST"}}}var aZ=this;a.ajax({url:a0,type:a1,dataType:"html",data:a3,complete:function(a6,a5){if(a5==="success"||a5==="notmodified"){aZ.html(aY?a("<div />").append(a6.responseText.replace(aJ,"")).find(aY):a6.responseText)}if(a4){aZ.each(a4,[a6.responseText,a5,a6])}}});return this},serialize:function(){return a.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?a.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||o.test(this.nodeName)||aB.test(this.type))}).map(function(aY,aZ){var a0=a(this).val();return a0==null?null:a.isArray(a0)?a.map(a0,function(a2,a1){return{name:aZ.name,value:a2}}):{name:aZ.name,value:a0}}).get()}});a.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(aY,aZ){a.fn[aZ]=function(a0){return this.bind(aZ,a0)}});a.extend({get:function(aY,a0,a1,aZ){if(a.isFunction(a0)){aZ=aZ||a1;a1=a0;a0=null}return a.ajax({type:"GET",url:aY,data:a0,success:a1,dataType:aZ})},getScript:function(aY,aZ){return a.get(aY,null,aZ,"script")},getJSON:function(aY,aZ,a0){return a.get(aY,aZ,a0,"json")},post:function(aY,a0,a1,aZ){if(a.isFunction(a0)){aZ=aZ||a1;a1=a0;a0={}}return a.ajax({type:"POST",url:aY,data:a0,success:a1,dataType:aZ})},ajaxSetup:function(aY){a.extend(a.ajaxSettings,aY)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:aM.XMLHttpRequest&&(aM.location.protocol!=="file:"||!aM.ActiveXObject)?function(){return new aM.XMLHttpRequest()}:function(){try{return new aM.ActiveXObject("Microsoft.XMLHTTP")}catch(aY){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(bd){var a8=a.extend(true,{},a.ajaxSettings,bd);var bi,bc,bh,bj=bd&&bd.context||a8,a0=a8.type.toUpperCase();if(a8.data&&a8.processData&&typeof a8.data!=="string"){a8.data=a.param(a8.data,a8.traditional)}if(a8.dataType==="jsonp"){if(a0==="GET"){if(!r.test(a8.url)){a8.url+=(D.test(a8.url)?"&":"?")+(a8.jsonp||"callback")+"=?"}}else{if(!a8.data||!r.test(a8.data)){a8.data=(a8.data?a8.data+"&":"")+(a8.jsonp||"callback")+"=?"}}a8.dataType="json"}if(a8.dataType==="json"&&(a8.data&&r.test(a8.data)||r.test(a8.url))){bi=a8.jsonpCallback||("jsonp"+af++);if(a8.data){a8.data=(a8.data+"").replace(r,"="+bi+"$1")}a8.url=a8.url.replace(r,"="+bi+"$1");a8.dataType="script";aM[bi]=aM[bi]||function(bk){bh=bk;a3();a6();aM[bi]=C;try{delete aM[bi]}catch(bl){}if(a1){a1.removeChild(bf)}}}if(a8.dataType==="script"&&a8.cache===null){a8.cache=false}if(a8.cache===false&&a0==="GET"){var aY=aP();var bg=a8.url.replace(aX,"$1_="+aY+"$2");a8.url=bg+((bg===a8.url)?(D.test(a8.url)?"&":"?")+"_="+aY:"")}if(a8.data&&a0==="GET"){a8.url+=(D.test(a8.url)?"&":"?")+a8.data}if(a8.global&&!a.active++){a.event.trigger("ajaxStart")}var bb=B.exec(a8.url),a2=bb&&(bb[1]&&bb[1]!==location.protocol||bb[2]!==location.host);if(a8.dataType==="script"&&a0==="GET"&&a2){var a1=ab.getElementsByTagName("head")[0]||ab.documentElement;var bf=ab.createElement("script");bf.src=a8.url;if(a8.scriptCharset){bf.charset=a8.scriptCharset}if(!bi){var ba=false;bf.onload=bf.onreadystatechange=function(){if(!ba&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){ba=true;a3();a6();bf.onload=bf.onreadystatechange=null;if(a1&&bf.parentNode){a1.removeChild(bf)}}}}a1.insertBefore(bf,a1.firstChild);return C}var a5=false;var a4=a8.xhr();if(!a4){return}if(a8.username){a4.open(a0,a8.url,a8.async,a8.username,a8.password)}else{a4.open(a0,a8.url,a8.async)}try{if(a8.data||bd&&bd.contentType){a4.setRequestHeader("Content-Type",a8.contentType)}if(a8.ifModified){if(a.lastModified[a8.url]){a4.setRequestHeader("If-Modified-Since",a.lastModified[a8.url])}if(a.etag[a8.url]){a4.setRequestHeader("If-None-Match",a.etag[a8.url])}}if(!a2){a4.setRequestHeader("X-Requested-With","XMLHttpRequest")}a4.setRequestHeader("Accept",a8.dataType&&a8.accepts[a8.dataType]?a8.accepts[a8.dataType]+", */*":a8.accepts._default)}catch(be){}if(a8.beforeSend&&a8.beforeSend.call(bj,a4,a8)===false){if(a8.global&&!--a.active){a.event.trigger("ajaxStop")}a4.abort();return false}if(a8.global){a9("ajaxSend",[a4,a8])}var a7=a4.onreadystatechange=function(bk){if(!a4||a4.readyState===0||bk==="abort"){if(!a5){a6()}a5=true;if(a4){a4.onreadystatechange=a.noop}}else{if(!a5&&a4&&(a4.readyState===4||bk==="timeout")){a5=true;a4.onreadystatechange=a.noop;bc=bk==="timeout"?"timeout":!a.httpSuccess(a4)?"error":a8.ifModified&&a.httpNotModified(a4,a8.url)?"notmodified":"success";var bm;if(bc==="success"){try{bh=a.httpData(a4,a8.dataType,a8)}catch(bl){bc="parsererror";bm=bl}}if(bc==="success"||bc==="notmodified"){if(!bi){a3()}}else{a.handleError(a8,a4,bc,bm)}a6();if(bk==="timeout"){a4.abort()}if(a8.async){a4=null}}}};try{var aZ=a4.abort;a4.abort=function(){if(a4){aZ.call(a4)}a7("abort")}}catch(be){}if(a8.async&&a8.timeout>0){setTimeout(function(){if(a4&&!a5){a7("timeout")}},a8.timeout)}try{a4.send(a0==="POST"||a0==="PUT"||a0==="DELETE"?a8.data:null)}catch(be){a.handleError(a8,a4,null,be);a6()}if(!a8.async){a7()}function a3(){if(a8.success){a8.success.call(bj,bh,bc,a4)}if(a8.global){a9("ajaxSuccess",[a4,a8])}}function a6(){if(a8.complete){a8.complete.call(bj,a4,bc)}if(a8.global){a9("ajaxComplete",[a4,a8])}if(a8.global&&!--a.active){a.event.trigger("ajaxStop")}}function a9(bl,bk){(a8.context?a(a8.context):a.event).trigger(bl,bk)}return a4},handleError:function(aZ,a1,aY,a0){if(aZ.error){aZ.error.call(aZ.context||aZ,a1,aY,a0)}if(aZ.global){(aZ.context?a(aZ.context):a.event).trigger("ajaxError",[a1,aZ,a0])}},active:0,httpSuccess:function(aZ){try{return !aZ.status&&location.protocol==="file:"||(aZ.status>=200&&aZ.status<300)||aZ.status===304||aZ.status===1223||aZ.status===0}catch(aY){}return false},httpNotModified:function(a1,aY){var a0=a1.getResponseHeader("Last-Modified"),aZ=a1.getResponseHeader("Etag");if(a0){a.lastModified[aY]=a0}if(aZ){a.etag[aY]=aZ}return a1.status===304||a1.status===0},httpData:function(a3,a1,a0){var aZ=a3.getResponseHeader("content-type")||"",aY=a1==="xml"||!a1&&aZ.indexOf("xml")>=0,a2=aY?a3.responseXML:a3.responseText;if(aY&&a2.documentElement.nodeName==="parsererror"){a.error("parsererror")}if(a0&&a0.dataFilter){a2=a0.dataFilter(a2,a1)}if(typeof a2==="string"){if(a1==="json"||!a1&&aZ.indexOf("json")>=0){a2=a.parseJSON(a2)}else{if(a1==="script"||!a1&&aZ.indexOf("javascript")>=0){a.globalEval(a2)}}}return a2},param:function(aY,a1){var aZ=[];if(a1===C){a1=a.ajaxSettings.traditional}if(a.isArray(aY)||aY.jquery){a.each(aY,function(){a3(this.name,this.value)})}else{for(var a2 in aY){a0(a2,aY[a2])}}return aZ.join("&").replace(h,"+");function a0(a4,a5){if(a.isArray(a5)){a.each(a5,function(a7,a6){if(a1||/\[\]$/.test(a4)){a3(a4,a6)}else{a0(a4+"["+(typeof a6==="object"||a.isArray(a6)?a7:"")+"]",a6)}})}else{if(!a1&&a5!=null&&typeof a5==="object"){a.each(a5,function(a7,a6){a0(a4+"["+a7+"]",a6)})}else{a3(a4,a5)}}}function a3(a4,a5){a5=a.isFunction(a5)?a5():a5;aZ[aZ.length]=encodeURIComponent(a4)+"="+encodeURIComponent(a5)}}});var G={},ae=/toggle|show|hide/,au=/^([+-]=)?([\d+-.]+)(.*)$/,aF,aj=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];a.fn.extend({show:function(aZ,a7){if(aZ||aZ===0){return this.animate(aD("show",3),aZ,a7)}else{for(var a4=0,a1=this.length;a4<a1;a4++){var aY=a.data(this[a4],"olddisplay");this[a4].style.display=aY||"";if(a.css(this[a4],"display")==="none"){var a6=this[a4].nodeName,a5;if(G[a6]){a5=G[a6]}else{var a0=a("<"+a6+" />").appendTo("body");a5=a0.css("display");if(a5==="none"){a5="block"}a0.remove();G[a6]=a5}a.data(this[a4],"olddisplay",a5)}}for(var a3=0,a2=this.length;a3<a2;a3++){this[a3].style.display=a.data(this[a3],"olddisplay")||""}return this}},hide:function(a3,a4){if(a3||a3===0){return this.animate(aD("hide",3),a3,a4)}else{for(var a2=0,aZ=this.length;a2<aZ;a2++){var aY=a.data(this[a2],"olddisplay");if(!aY&&aY!=="none"){a.data(this[a2],"olddisplay",a.css(this[a2],"display"))}}for(var a1=0,a0=this.length;a1<a0;a1++){this[a1].style.display="none"}return this}},_toggle:a.fn.toggle,toggle:function(a0,aZ){var aY=typeof a0==="boolean";if(a.isFunction(a0)&&a.isFunction(aZ)){this._toggle.apply(this,arguments)}else{if(a0==null||aY){this.each(function(){var a1=aY?a0:a(this).is(":hidden");a(this)[a1?"show":"hide"]()})}else{this.animate(aD("toggle",3),a0,aZ)}}return this},fadeTo:function(aY,a0,aZ){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:a0},aY,aZ)},animate:function(a2,aZ,a1,a0){var aY=a.speed(aZ,a1,a0);if(a.isEmptyObject(a2)){return this.each(aY.complete)}return this[aY.queue===false?"each":"queue"](function(){var a5=a.extend({},aY),a7,a6=this.nodeType===1&&a(this).is(":hidden"),a3=this;for(a7 in a2){var a4=a7.replace(az,k);if(a7!==a4){a2[a4]=a2[a7];delete a2[a7];a7=a4}if(a2[a7]==="hide"&&a6||a2[a7]==="show"&&!a6){return a5.complete.call(this)}if((a7==="height"||a7==="width")&&this.style){a5.display=a.css(this,"display");a5.overflow=this.style.overflow}if(a.isArray(a2[a7])){(a5.specialEasing=a5.specialEasing||{})[a7]=a2[a7][1];a2[a7]=a2[a7][0]}}if(a5.overflow!=null){this.style.overflow="hidden"}a5.curAnim=a.extend({},a2);a.each(a2,function(a9,bd){var bc=new a.fx(a3,a5,a9);if(ae.test(bd)){bc[bd==="toggle"?a6?"show":"hide":bd](a2)}else{var bb=au.exec(bd),be=bc.cur(true)||0;if(bb){var a8=parseFloat(bb[2]),ba=bb[3]||"px";if(ba!=="px"){a3.style[a9]=(a8||1)+ba;be=((a8||1)/bc.cur(true))*be;a3.style[a9]=be+ba}if(bb[1]){a8=((bb[1]==="-="?-1:1)*a8)+be}bc.custom(be,a8,ba)}else{bc.custom(be,bd,"")}}});return true})},stop:function(aZ,aY){var a0=a.timers;if(aZ){this.queue([])}this.each(function(){for(var a1=a0.length-1;a1>=0;a1--){if(a0[a1].elem===this){if(aY){a0[a1](true)}a0.splice(a1,1)}}});if(!aY){this.dequeue()}return this}});a.each({slideDown:aD("show",1),slideUp:aD("hide",1),slideToggle:aD("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(aY,aZ){a.fn[aY]=function(a0,a1){return this.animate(aZ,a0,a1)}});a.extend({speed:function(a0,a1,aZ){var aY=a0&&typeof a0==="object"?a0:{complete:aZ||!aZ&&a1||a.isFunction(a0)&&a0,duration:a0,easing:aZ&&a1||a1&&!a.isFunction(a1)&&a1};aY.duration=a.fx.off?0:typeof aY.duration==="number"?aY.duration:a.fx.speeds[aY.duration]||a.fx.speeds._default;aY.old=aY.complete;aY.complete=function(){if(aY.queue!==false){a(this).dequeue()}if(a.isFunction(aY.old)){aY.old.call(this)}};return aY},easing:{linear:function(a0,a1,aY,aZ){return aY+aZ*a0},swing:function(a0,a1,aY,aZ){return((-Math.cos(a0*Math.PI)/2)+0.5)*aZ+aY}},timers:[],fx:function(aZ,aY,a0){this.options=aY;this.elem=aZ;this.prop=a0;if(!aY.orig){aY.orig={}}}});a.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(a.fx.step[this.prop]||a.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(aZ){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var aY=parseFloat(a.css(this.elem,this.prop,aZ));return aY&&aY>-10000?aY:parseFloat(a.curCSS(this.elem,this.prop))||0},custom:function(a2,a1,a0){this.startTime=aP();this.start=a2;this.end=a1;this.unit=a0||this.unit||"px";this.now=this.start;this.pos=this.state=0;var aY=this;function aZ(a3){return aY.step(a3)}aZ.elem=this.elem;if(aZ()&&a.timers.push(aZ)&&!aF){aF=setInterval(a.fx.tick,13)}},show:function(){this.options.orig[this.prop]=a.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());a(this.elem).show()},hide:function(){this.options.orig[this.prop]=a.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a1){var a6=aP(),a2=true;if(a1||a6>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var a3 in this.options.curAnim){if(this.options.curAnim[a3]!==true){a2=false}}if(a2){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;var a0=a.data(this.elem,"olddisplay");this.elem.style.display=a0?a0:this.options.display;if(a.css(this.elem,"display")==="none"){this.elem.style.display="block"}}if(this.options.hide){a(this.elem).hide()}if(this.options.hide||this.options.show){for(var aY in this.options.curAnim){a.style(this.elem,aY,this.options.orig[aY])}}this.options.complete.call(this.elem)}return false}else{var aZ=a6-this.startTime;this.state=aZ/this.options.duration;var a4=this.options.specialEasing&&this.options.specialEasing[this.prop];var a5=this.options.easing||(a.easing.swing?"swing":"linear");this.pos=a.easing[a4||a5](this.state,aZ,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};a.extend(a.fx,{tick:function(){var aZ=a.timers;for(var aY=0;aY<aZ.length;aY++){if(!aZ[aY]()){aZ.splice(aY--,1)}}if(!aZ.length){a.fx.stop()}},stop:function(){clearInterval(aF);aF=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(aY){a.style(aY.elem,"opacity",aY.now)},_default:function(aY){if(aY.elem.style&&aY.elem.style[aY.prop]!=null){aY.elem.style[aY.prop]=(aY.prop==="width"||aY.prop==="height"?Math.max(0,aY.now):aY.now)+aY.unit}else{aY.elem[aY.prop]=aY.now}}}});if(a.expr&&a.expr.filters){a.expr.filters.animated=function(aY){return a.grep(a.timers,function(aZ){return aY===aZ.elem}).length}}function aD(aZ,aY){var a0={};a.each(aj.concat.apply([],aj.slice(0,aY)),function(){a0[this]=aZ});return a0}if("getBoundingClientRect" in ab.documentElement){a.fn.offset=function(a7){var a0=this[0];if(a7){return this.each(function(a8){a.offset.setOffset(this,a7,a8)})}if(!a0||!a0.ownerDocument){return null}if(a0===a0.ownerDocument.body){return a.offset.bodyOffset(a0)}var a2=a0.getBoundingClientRect(),a6=a0.ownerDocument,a3=a6.body,aY=a6.documentElement,a1=aY.clientTop||a3.clientTop||0,a4=aY.clientLeft||a3.clientLeft||0,a5=a2.top+(self.pageYOffset||a.support.boxModel&&aY.scrollTop||a3.scrollTop)-a1,aZ=a2.left+(self.pageXOffset||a.support.boxModel&&aY.scrollLeft||a3.scrollLeft)-a4;return{top:a5,left:aZ}}}else{a.fn.offset=function(a9){var a3=this[0];if(a9){return this.each(function(ba){a.offset.setOffset(this,a9,ba)})}if(!a3||!a3.ownerDocument){return null}if(a3===a3.ownerDocument.body){return a.offset.bodyOffset(a3)}a.offset.initialize();var a0=a3.offsetParent,aZ=a3,a8=a3.ownerDocument,a6,a1=a8.documentElement,a4=a8.body,a5=a8.defaultView,aY=a5?a5.getComputedStyle(a3,null):a3.currentStyle,a7=a3.offsetTop,a2=a3.offsetLeft;while((a3=a3.parentNode)&&a3!==a4&&a3!==a1){if(a.offset.supportsFixedPosition&&aY.position==="fixed"){break}a6=a5?a5.getComputedStyle(a3,null):a3.currentStyle;a7-=a3.scrollTop;a2-=a3.scrollLeft;if(a3===a0){a7+=a3.offsetTop;a2+=a3.offsetLeft;if(a.offset.doesNotAddBorder&&!(a.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(a3.nodeName))){a7+=parseFloat(a6.borderTopWidth)||0;a2+=parseFloat(a6.borderLeftWidth)||0}aZ=a0,a0=a3.offsetParent}if(a.offset.subtractsBorderForOverflowNotVisible&&a6.overflow!=="visible"){a7+=parseFloat(a6.borderTopWidth)||0;a2+=parseFloat(a6.borderLeftWidth)||0}aY=a6}if(aY.position==="relative"||aY.position==="static"){a7+=a4.offsetTop;a2+=a4.offsetLeft}if(a.offset.supportsFixedPosition&&aY.position==="fixed"){a7+=Math.max(a1.scrollTop,a4.scrollTop);a2+=Math.max(a1.scrollLeft,a4.scrollLeft)}return{top:a7,left:a2}}}a.offset={initialize:function(){var aY=ab.body,aZ=ab.createElement("div"),a2,a4,a3,a5,a0=parseFloat(a.curCSS(aY,"marginTop",true))||0,a1="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.extend(aZ.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});aZ.innerHTML=a1;aY.insertBefore(aZ,aY.firstChild);a2=aZ.firstChild;a4=a2.firstChild;a5=a2.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(a4.offsetTop!==5);this.doesAddBorderForTableAndCells=(a5.offsetTop===5);a4.style.position="fixed",a4.style.top="20px";this.supportsFixedPosition=(a4.offsetTop===20||a4.offsetTop===15);a4.style.position=a4.style.top="";a2.style.overflow="hidden",a2.style.position="relative";this.subtractsBorderForOverflowNotVisible=(a4.offsetTop===-5);this.doesNotIncludeMarginInBodyOffset=(aY.offsetTop!==a0);aY.removeChild(aZ);aY=aZ=a2=a4=a3=a5=null;a.offset.initialize=a.noop},bodyOffset:function(aY){var a0=aY.offsetTop,aZ=aY.offsetLeft;a.offset.initialize();if(a.offset.doesNotIncludeMarginInBodyOffset){a0+=parseFloat(a.curCSS(aY,"marginTop",true))||0;aZ+=parseFloat(a.curCSS(aY,"marginLeft",true))||0}return{top:a0,left:aZ}},setOffset:function(a3,aZ,a0){if(/static/.test(a.curCSS(a3,"position"))){a3.style.position="relative"}var a2=a(a3),a5=a2.offset(),aY=parseInt(a.curCSS(a3,"top",true),10)||0,a4=parseInt(a.curCSS(a3,"left",true),10)||0;if(a.isFunction(aZ)){aZ=aZ.call(a3,a0,a5)}var a1={top:(aZ.top-a5.top)+aY,left:(aZ.left-a5.left)+a4};if("using" in aZ){aZ.using.call(a3,a1)}else{a2.css(a1)}}};a.fn.extend({position:function(){if(!this[0]){return null}var a0=this[0],aZ=this.offsetParent(),a1=this.offset(),aY=/^body|html$/i.test(aZ[0].nodeName)?{top:0,left:0}:aZ.offset();a1.top-=parseFloat(a.curCSS(a0,"marginTop",true))||0;a1.left-=parseFloat(a.curCSS(a0,"marginLeft",true))||0;aY.top+=parseFloat(a.curCSS(aZ[0],"borderTopWidth",true))||0;aY.left+=parseFloat(a.curCSS(aZ[0],"borderLeftWidth",true))||0;return{top:a1.top-aY.top,left:a1.left-aY.left}},offsetParent:function(){return this.map(function(){var aY=this.offsetParent||ab.body;while(aY&&(!/^body|html$/i.test(aY.nodeName)&&a.css(aY,"position")==="static")){aY=aY.offsetParent}return aY})}});a.each(["Left","Top"],function(aZ,aY){var a0="scroll"+aY;a.fn[a0]=function(a3){var a1=this[0],a2;if(!a1){return null}if(a3!==C){return this.each(function(){a2=am(this);if(a2){a2.scrollTo(!aZ?a3:a(a2).scrollLeft(),aZ?a3:a(a2).scrollTop())}else{this[a0]=a3}})}else{a2=am(a1);return a2?("pageXOffset" in a2)?a2[aZ?"pageYOffset":"pageXOffset"]:a.support.boxModel&&a2.document.documentElement[a0]||a2.document.body[a0]:a1[a0]}}});function am(aY){return("scrollTo" in aY&&aY.document)?aY:aY.nodeType===9?aY.defaultView||aY.parentWindow:false}a.each(["Height","Width"],function(aZ,aY){var a0=aY.toLowerCase();a.fn["inner"+aY]=function(){return this[0]?a.css(this[0],a0,false,"padding"):null};a.fn["outer"+aY]=function(a1){return this[0]?a.css(this[0],a0,false,a1?"margin":"border"):null};a.fn[a0]=function(a1){var a2=this[0];if(!a2){return a1==null?null:this}if(a.isFunction(a1)){return this.each(function(a4){var a3=a(this);a3[a0](a1.call(this,a4,a3[a0]()))})}return("scrollTo" in a2&&a2.document)?a2.document.compatMode==="CSS1Compat"&&a2.document.documentElement["client"+aY]||a2.document.body["client"+aY]:(a2.nodeType===9)?Math.max(a2.documentElement["client"+aY],a2.body["scroll"+aY],a2.documentElement["scroll"+aY],a2.body["offset"+aY],a2.documentElement["offset"+aY]):a1===C?a.css(a2,a0):this.css(a0,typeof a1==="string"?a1:a1+"px")}});aM.jQuery=aM.$=a})(window);(function(bU,r,bi){var b8=bU.jQuery.noConflict(true);if(typeof r.getAttribute==q){r.getAttribute=function(){}}var am=function(cV){return ci(cV)?cV.toLowerCase():cV};var bI=function(cV){return ci(cV)?cV.toUpperCase():cV};var aE=function(cV){return ci(cV)?cV.replace(/[A-Z]/g,function(cW){return G(cW.charCodeAt(0)|32)}):cV};var ce=function(cV){return ci(cV)?cV.replace(/[a-z]/g,function(cW){return G(cW.charCodeAt(0)&~32)}):cV};if("i"!=="I".toLowerCase()){am=aE;bI=ce}function G(cV){return String.fromCharCode(cV)}var cS=undefined,a6=null,by="$element",ac="$update",bR="$scope",bf="$validate",R="angular",a3="array",b9="boolean",bA="console",bc="date",aL="display",cC="element",bz="function",ai="length",Y="name",b="none",cE="noop",v="null",ch="number",aP="object",P="string",ay="value",aA="selected",q="undefined",a="ng-exception",k="ng-validation-error",o="noop",bp=-99999,an=-1000,cg=99999,aM={FIRST:bp,LAST:cg,WATCH:an},cK=bU.Error,cx=bU.jQuery||bU["$"],ca=bU._,at=parseInt((/msie (\d+)/.exec(am(navigator.userAgent))||[])[1],10),ck=cx||cL,ad=Array.prototype.slice,C=Array.prototype.push,cG=bU[bA]?bF(bU[bA],bU[bA]["error"]||j):j,aB=bU[R]||(bU[R]={}),ag=bo(aB,"markup"),s=bo(aB,"attrMarkup"),Z=bo(aB,"directive"),B=bo(aB,"widget",am),aK=bo(aB,"validator"),cu=bo(aB,"filter"),l=bo(aB,"formatter"),bs=bo(aB,"service"),bg=bo(aB,"callbacks"),au,ab=/^(|.*\/)angular(-.*?)?(\.min)?.js(\?[^#]*)?(#(.*))?$/;function aS(cY,cX,cW){var cV;if(cY){if(E(cY)){for(cV in cY){if(cV!="prototype"&&cV!=ai&&cV!=Y&&cY.hasOwnProperty(cV)){cX.call(cW,cY[cV],cV)}}}else{if(cY.forEach){cY.forEach(cX,cW)}else{if(cR(cY)&&aU(cY.length)){for(cV=0;cV<cY.length;cV++){cX.call(cW,cY[cV],cV)}}else{for(cV in cY){cX.call(cW,cY[cV],cV)}}}}}return cY}function ar(c0,cY,cX){var cZ=[];for(var cW in c0){cZ.push(cW)}cZ.sort();for(var cV=0;cV<cZ.length;cV++){cY.call(cX,c0[cZ[cV]],cZ[cV])}return cZ}function bb(cV){if(cV instanceof cK){if(cV.stack){cV=cV.stack}else{if(cV.sourceURL){cV=cV.message+"\n"+cV.sourceURL+":"+cV.line}}}return cV}function b7(cV){aS(arguments,function(cW){if(cW!==cV){aS(cW,function(cY,cX){cV[cX]=cY})}});return cV}function b5(cW,cV){return b7(new (b7(function(){},{prototype:cW}))(),cV)}function j(){}function aG(cV){return cV}function cr(cV){return function(){return cV}}function bo(cX,cW,cV){var cY;return cX[cW]||(cY=cX[cW]=function(cZ,c0,c1){cZ=(cV||aG)(cZ);if(cv(c0)){if(cv(cY[cZ])){aS(cY[cZ],function(c3,c2){if(c2.charAt(0)=="$"&&bB(c0[c2])){c0[c2]=c3}})}cY[cZ]=b7(c0,c1||{})}return cY[cZ]})}function cL(cV){if(cV){if(ci(cV)){var cW=r.createElement("div");cW.innerHTML=cV;cV=new bu(cW.childNodes)}else{if(!(cV instanceof bu)&&bJ(cV)){cV=new bu(cV)}}}return cV}function bB(cV){return typeof cV==q}function cv(cV){return typeof cV!=q}function cR(cV){return cV!=a6&&typeof cV==aP}function ci(cV){return typeof cV==P}function aU(cV){return typeof cV==ch}function ax(cV){return cV instanceof Date}function a9(cV){return cV instanceof Array}function E(cV){return typeof cV==bz}function be(cV){return typeof cV==b9}function t(cV){return au(cV)=="#text"}function av(cV){return ci(cV)?cV.replace(/^\s*/,"").replace(/\s*$/,""):cV}function bJ(cV){return cV&&(cV.nodeName||cV instanceof bu||(cx&&cV instanceof cx))}function aW(cW,cX){this.html=cW;this.get=am(cX)=="unsafe"?cr(cW):function cV(){var cY=[];aQ(cW,a5(cY));return cY.join("")}}if(at){au=function(cV){cV=cV.nodeName?cV:cV[0];return(cV.scopeName&&cV.scopeName!="HTML")?bI(cV.scopeName+":"+cV.nodeName):cV.nodeName}}else{au=function(cV){return cV.nodeName?cV.nodeName:cV[0].nodeName}}function A(cV){return ck(cV[0].cloneNode(true))}function aR(cW){var cY=cW[0].getBoundingClientRect(),cX=(cY.width||(cY.right||0-cY.left||0)),cV=(cY.height||(cY.bottom||0-cY.top||0));return cX>0&&cV>0}function aI(cY,cX,cW){var cV=[];aS(cY,function(c1,cZ,c0){cV.push(cX.call(cW,c1,cZ,c0))});return cV}function aw(cW){var cV=0;if(cW){if(aU(cW.length)){return cW.length}else{if(cR(cW)){for(key in cW){cV++}}}}return cV}function u(cX,cW){for(var cV=0;cV<cX.length;cV++){if(cW===cX[cV]){return true}}return false}function cO(cX,cW){for(var cV=0;cV<cX.length;cV++){if(cW===cX[cV]){return cV}}return -1}function b4(cV){if(cV){switch(cV.nodeName){case"OPTION":case"PRE":case"TITLE":return true}}return false}function bv(cY,cV){if(!cV){cV=cY;if(cY){if(a9(cY)){cV=bv(cY,[])}else{if(ax(cY)){cV=new Date(cY.getTime())}else{if(cR(cY)){cV=bv(cY,{})}}}}}else{if(a9(cY)){while(cV.length){cV.pop()}for(var cX=0;cX<cY.length;cX++){cV.push(bv(cY[cX]))}}else{aS(cV,function(c0,cZ){delete cV[cZ]});for(var cW in cY){cV[cW]=bv(cY[cW])}}}return cV}function p(c1,c0){if(c1==c0){return true}var cZ=typeof c1,cX=typeof c0,cY,cW,cV;if(cZ==cX&&cZ=="object"){if(c1 instanceof Array){if((cY=c1.length)==c0.length){for(cW=0;cW<cY;cW++){if(!p(c1[cW],c0[cW])){return false}}return true}}else{cV={};for(cW in c1){if(cW.charAt(0)!=="$"&&!E(c1[cW])&&!p(c1[cW],c0[cW])){return false}cV[cW]=true}for(cW in c0){if(!cV[cW]&&cW.charAt(0)!=="$"&&!E(c0[cW])){return false}}return true}}return false}function U(cW,cV){if(b4(cW)){if(at){cW.innerText=cV}else{cW.textContent=cV}}else{cW.innerHTML=cV}}function bM(cW){var cV=cW&&cW[0]&&cW[0].nodeName;return cV&&cV.charAt(0)!="#"&&!u(["TR","COL","COLGROUP","TBODY","THEAD","TFOOT"],cV)}function b0(cW,cX,cV){while(!bM(cW)){cW=cW.parent()||ck(r.body)}if(cW[0]["$NG_ERROR"]!==cV){cW[0]["$NG_ERROR"]=cV;if(cV){cW.addClass(cX);cW.attr(cX,cV)}else{cW.removeClass(cX);cW.removeAttr(cX)}}}function bd(cX,cW,cV){return cX.concat(ad.call(cW,cV,cW.length))}function bF(cW,cX){var cV=arguments.length>2?ad.call(arguments,2,arguments.length):[];if(typeof cX==bz){return cV.length?function(){return arguments.length?cX.apply(cW,cV.concat(ad.call(arguments,0,arguments.length))):cX.apply(cW,cV)}:function(){return arguments.length?cX.apply(cW,arguments):cX.call(cW)}}else{return cX}}function cp(cW){if(cW&&cW.length!==0){var cV=am(""+cW);cW=!(cV=="f"||cV=="0"||cV=="false"||cV=="no"||cV=="n"||cV=="[]")}else{cW=false}return cW}function bm(cY,cZ){for(var cV in cY){var cX=cZ[cV];var cW=typeof cX;if(cW==q){cZ[cV]=Q(cm(cY[cV]))}else{if(cW=="object"&&cX.constructor!=F&&cV.substring(0,1)!="$"){bm(cY[cV],cX)}}}}function a2(cW,cY){var cX=new ba(ag,s,Z,B),cV=ck(cW);return cX.compile(cV)(cV,cY)}function ah(cY){var cX={},cV,cW;aS((cY||"").split("&"),function(cZ){if(cZ){cV=cZ.split("=");cW=unescape(cV[0]);cX[cW]=cv(cV[1])?unescape(cV[1]):true}});return cX}function N(cW){var cV=[];aS(cW,function(cY,cX){cV.push(escape(cX)+(cY===true?"":"="+escape(cY)))});return cV.length?cV.join("&"):""}function bw(cW){if(cW.autobind){var cX=a2(bU.document,a6,{"$config":cW}),cV=cX.$inject("$browser");if(cW.css){cV.addCss(cW.base_url+cW.css)}else{if(at<8){cV.addJs(cW.base_url+cW.ie_compat,cW.ie_compat_id)}}cX.$init()}}function bH(cW,cZ){var cV=cW.getElementsByTagName("script"),cY;cZ=b7({ie_compat_id:"ng-ie-compat"},cZ);for(var cX=0;cX<cV.length;cX++){cY=(cV[cX].src||"").match(ab);if(cY){cZ.base_url=cY[1];cZ.ie_compat=cY[1]+"angular-ie-compat"+(cY[2]||"")+".js";b7(cZ,ah(cY[6]));a4(ck(cV[cX]),function(c1,c0){if(/^ng:/.exec(c0)){c0=c0.substring(3).replace(/-/g,"_");if(c0=="autobind"){c1=true}cZ[c0]=c1}})}}return cZ}var F=[].constructor;function cm(cX,cW){var cV=[];bS(cV,cX,cW?"\n ":a6,[]);return cV.join("")}function Q(cV){if(!cV){return cV}try{var cX=S(cV,true);var cY=cX.primary();cX.assertAllConsumed();return cY()}catch(cW){cG("fromJson error: ",cV,cW);throw cW}}aB.toJson=cm;aB.fromJson=Q;function bS(cW,cY,c1,c2){if(cR(cY)){if(cY===bU){cW.push("WINDOW");return}if(cY===r){cW.push("DOCUMENT");return}if(u(c2,cY)){cW.push("RECURSION");return}c2.push(cY)}if(cY===a6){cW.push(v)}else{if(cY instanceof RegExp){cW.push(aB.String["quoteUnicode"](cY.toString()))}else{if(E(cY)){return}else{if(be(cY)){cW.push(""+cY)}else{if(aU(cY)){if(isNaN(cY)){cW.push(v)}else{cW.push(""+cY)}}else{if(ci(cY)){return cW.push(aB.String["quoteUnicode"](cY))}else{if(cR(cY)){if(a9(cY)){cW.push("[");var c0=cY.length;var c9=false;for(var cZ=0;cZ<c0;cZ++){var c6=cY[cZ];if(c9){cW.push(",")}if(!(c6 instanceof RegExp)&&(E(c6)||bB(c6))){cW.push(v)}else{bS(cW,c6,c1,c2)}c9=true}cW.push("]")}else{if(ax(cY)){cW.push(aB.String["quoteUnicode"](aB.Date["toString"](cY)))}else{cW.push("{");if(c1){cW.push(c1)}var c8=false;var c7=c1?c1+" ":false;var c5=[];for(var cX in cY){if(cY[cX]===cS){continue}c5.push(cX)}c5.sort();for(var cV=0;cV<c5.length;cV++){var c4=c5[cV];var c3=cY[c4];if(typeof c3!=bz){if(c8){cW.push(",");if(c1){cW.push(c1)}}cW.push(aB.String["quote"](c4));cW.push(":");bS(cW,c3,c7,c2);c8=true}}cW.push("}")}}}}}}}}}if(cR(cY)){c2.pop()}}function cw(cV){this.paths=[];this.children=[];this.inits=[];this.priority=cV;this.newScope=false}cw.prototype={init:function(cV,cW){var cX={};this.collectInits(cV,cX,cW);ar(cX,function(cY){aS(cY,function(cZ){cZ()})})},collectInits:function(cX,c0,c3){var cZ=c0[this.priority],c1=c3;if(!cZ){c0[this.priority]=cZ=[]}cX=ck(cX);if(this.newScope){c1=bV(c3);c3.$onEval(c1.$eval);cX.data(bR,c1)}aS(this.inits,function(c5){cZ.push(function(){c1.$tryEval(function(){return c1.$inject(c5,c1,cX)},cX)})});var cY,c2=cX[0].childNodes,cW=this.children,c4=this.paths,cV=c4.length;for(cY=0;cY<cV;cY++){cW[cY].collectInits(c2[c4[cY]],c0,c1)}},addInit:function(cV){if(cV){this.inits.push(cV)}},addChild:function(cV,cW){if(cW){this.paths.push(cV);this.children.push(cW)}},empty:function(){return this.inits.length===0&&this.paths.length===0}};function ae(cV){var cW;while(cV&&!(cW=cV.data(bR))){cV=cV.parent()}return cW}function ba(cV,cW,cY,cX){this.markup=cV;this.attrMarkup=cW;this.directives=cY;this.widgets=cX}ba.prototype={compile:function(cZ){cZ=ck(cZ);var cV=0,cY,cX=cZ.parent();if(cX&&cX[0]){cX=cX[0];for(var cW=0;cW<cX.childNodes.length;cW++){if(cX.childNodes[cW]==cZ[0]){cV=cW}}}cY=this.templatize(cZ,cV,0)||new cw();return function(c0,c2){c0=ck(c0);var c1=c2&&c2.$eval?c2:bV(c2);c0.data(bR,c1);return b7(c1,{$element:c0,$init:function(){cY.init(c0,c1);c1.$eval();delete c1.$init;return c1}})}},templatize:function(c0,cW,c5){var c9=this,c1,c4,cX=c9.directives,c3=true,cY=true,da=au(c0),c8,c7={compile:bF(c9,c9.compile),comment:function(db){return ck(r.createComment(db))},element:function(db){return ck(r.createElement(db))},text:function(db){return ck(r.createTextNode(db))},descend:function(db){if(cv(db)){c3=db}return c3},directives:function(db){if(cv(db)){cY=db}return cY},scope:function(db){if(cv(db)){c8.newScope=c8.newScope||db}return c8.newScope}};try{c5=c0.attr("ng:eval-order")||c5||0}catch(c2){c5=c5||0}if(ci(c5)){c5=aM[bI(c5)]||parseInt(c5,10)}c8=new cw(c5);a4(c0,function(dc,db){if(!c1){if(c1=c9.widgets("@"+db)){c0.addClass("ng-attr-widget");c1=bF(c7,c1,dc,c0)}}});if(!c1){if(c1=c9.widgets(da)){if(da.indexOf(":")>0){c0.addClass("ng-widget")}c1=bF(c7,c1,c0)}}if(c1){c3=false;cY=false;var c6=c0.parent();c8.addInit(c1.call(c7,c0));if(c6&&c6[0]){c0=ck(c6[0].childNodes[cW])}}if(c3){for(var cZ=0,cV=c0[0].childNodes;cZ<cV.length;cZ++){if(t(cV[cZ])){aS(c9.markup,function(db){if(cZ<cV.length){var dc=ck(cV[cZ]);db.call(c7,dc.text(),dc,c0)}})}}}if(cY){a4(c0,function(dc,db){aS(c9.attrMarkup,function(dd){dd.call(c7,dc,db,c0)})});a4(c0,function(dc,db){c4=cX[db];if(c4){c0.addClass("ng-directive");c8.addInit((cX[db]).call(c7,dc,c0))}})}if(c3){aX(c0,function(dc,db){c8.addChild(db,c9.templatize(dc,db,c5))})}return c8.empty()?a6:c8}};function aX(cW,cX){var cV,cZ=cW[0].childNodes||[],cY;for(cV=0;cV<cZ.length;cV++){if(!t(cY=cZ[cV])){cX(ck(cY),cV)}}}function a4(cW,c0){var cX,c3=cW[0].attributes||[],c2,cZ,cV,c1,cY={};for(cX=0;cX<c3.length;cX++){cZ=c3[cX];cV=cZ.name;c1=cZ.value;if(at&&cV=="href"){c1=decodeURIComponent(cW[0].getAttribute(cV,2))}cY[cV]=c1}ar(cY,c0)}function bQ(c3,c4,c1){if(!c4){return c3}var cW=c4.split(".");var c2;var cV=c3;var cY=cW.length;for(var cX=0;cX<cY;cX++){c2=cW[cX];if(!c2.match(/^[\$\w][\$\w\d]*$/)){throw"Expression '"+c4+"' is not a valid expression for accesing variables."}if(c3){cV=c3;c3=c3[c2]}if(bB(c3)&&c2.charAt(0)=="$"){var cZ=aB.Global["typeOf"](cV);cZ=aB[cZ.charAt(0).toUpperCase()+cZ.substring(1)];var c0=cZ?cZ[[c2.substring(1)]]:cS;if(c0){c3=bF(cV,c0,cV);return c3}}}if(!c1&&E(c3)){return bF(cV,c3)}return c3}function cd(cV,c1,c0){var cZ=c1.split(".");for(var cY=0;cZ.length>1;cY++){var cX=cZ.shift();var cW=cV[cX];if(!cW){cW={};cV[cX]=cW}cV=cW}cV[cZ.shift()]=c0;return c0}var az=0,cD={},aN={},cN={};aS(("abstract,boolean,break,byte,case,catch,char,class,const,continue,debugger,default,delete,do,double,else,enum,export,extends,false,final,finally,float,for,function,goto,if,implements,import,ininstanceof,intinterface,long,native,new,null,package,private,protected,public,return,short,static,super,switch,synchronized,this,throw,throws,transient,true,try,typeof,var,volatile,void,undefined,while,with").split(/,/),function(cV){cN[cV]=true});function co(cX){var cV=cD[cX];if(cV){return cV}var cW="var l, fn, t;\n";aS(cX.split("."),function(cZ){cZ=(cN[cZ])?'["'+cZ+'"]':"."+cZ;cW+="if(!s) return s;\nl=s;\ns=s"+cZ+';\nif(typeof s=="function") s = function(){ return l'+cZ+".apply(l, arguments); };\n";if(cZ.charAt(1)=="$"){var cY=cZ.substr(2);cW+='if(!s) {\n t = angular.Global.typeOf(l);\n fn = (angular[t.charAt(0).toUpperCase() + t.substring(1)]||{})["'+cY+'"];\n if (fn) s = function(){ return fn.apply(l, [l].concat(Array.prototype.slice.call(arguments, 0, arguments.length))); };\n}\n'}});cW+="return s;";cV=Function("s",cW);cV.toString=function(){return cW};return cD[cX]=cV}function bt(cY){if(typeof cY===bz){return cY}var cV=aN[cY];if(!cV){var cW=S(cY);var cX=cW.statements();cW.assertAllConsumed();cV=aN[cY]=b7(function(){return cX(this)},{fnSelf:cX})}return cV}function ao(cW,cV){b0(cW,a,cv(cV)?bb(cV):cV)}function bV(cY,c0,cW){function cX(){}cY=cX.prototype=(cY||{});var cV=new cX();var cZ={sorted:[]};b7(cV,{"this":cV,$id:(az++),$parent:cY,$bind:bF(cV,bF,cV),$get:bF(cV,bQ,cV),$set:bF(cV,cd,cV),$eval:function(c7){var c6=typeof c7;var c4,c3;var c2,c8;var c1;var c5;if(c6==q){for(c4=0,c3=cZ.sorted.length;c4<c3;c4++){for(c1=cZ.sorted[c4],c8=c1.length,c2=0;c2<c8;c2++){cV.$tryEval(c1[c2].fn,c1[c2].handler)}}}else{if(c6===bz){return c7.call(cV)}else{if(c6==="string"){return bt(c7).call(cV)}}}},$tryEval:function(c4,c1){var c2=typeof c4;try{if(c2==bz){return c4.call(cV)}else{if(c2=="string"){return bt(c4).call(cV)}}}catch(c3){(cV.$log||{error:cG}).error(c3);if(E(c1)){c1(c3)}else{if(c1){ao(c1,c3)}else{if(E(cV.$exceptionHandler)){cV.$exceptionHandler(c3)}}}}},$watch:function(c6,c5,c2,c1){var c7=bt(c6),c4=c7.call(cV);c5=bt(c5);function c3(da){var c9=c7.call(cV),c8=c4;if(da||c8!==c9){c4=c9;cV.$tryEval(function(){return c5.call(cV,c9,c8)},c2)}}cV.$onEval(an,c3);if(bB(c1)){c1=true}if(c1){c3(true)}},$onEval:function(c2,c4,c1){if(!aU(c2)){c1=c4;c4=c2;c2=0}var c3=cZ[c2];if(!c3){c3=cZ[c2]=[];c3.priority=c2;cZ.sorted.push(c3);cZ.sorted.sort(function(c6,c5){return c6.priority-c5.priority})}c3.push({fn:bt(c4),handler:c1})},$become:function(c1){if(E(c1)){cV.constructor=c1;aS(c1.prototype,function(c3,c2){cV[c2]=bF(cV,c3)});cV.$inject.apply(cV,bd([c1,cV],arguments,1));if(E(c1.prototype.init)){cV.init()}}},$new:function(c1){var c2=bV(cV);c2.$become.apply(cV,bd([c1],arguments,1));cV.$onEval(c2.$eval);return c2}});if(!cY.$root){cV.$root=cV;cV.$parent=cV;(cV.$inject=bY(cV,c0,cW))()}return cV}function bY(cW,cY,cV){cY=cY||bs;cV=cV||{};cW=cW||{};return function cX(c3,c2,c0){var c1,c4,cZ;if(ci(c3)){if(!cV.hasOwnProperty(c3)){c4=cY[c3];if(!c4){throw"Unknown provider for '"+c3+"'."}cV[c3]=cX(c4,cW)}c1=cV[c3]}else{if(a9(c3)){c1=[];aS(c3,function(c5){c1.push(cX(c5))})}else{if(E(c3)){c1=cX(c3.$inject||[]);c1=c3.apply(c2,bd(c1,arguments,2))}else{if(cR(c3)){aS(cY,function(c6,c5){cZ=c6.$creation;if(cZ=="eager"){cX(c5)}if(cZ=="eager-published"){cd(c3,c5,cX(c5))}})}else{c1=cX(cW)}}}}return c1}}var J={"null":function(cV){return a6},"true":function(cV){return true},"false":function(cV){return false},$undefined:j,"+":function(cX,cW,cV){return(cv(cW)?cW:0)+(cv(cV)?cV:0)},"-":function(cX,cW,cV){return(cv(cW)?cW:0)-(cv(cV)?cV:0)},"*":function(cX,cW,cV){return cW*cV},"/":function(cX,cW,cV){return cW/cV},"%":function(cX,cW,cV){return cW%cV},"^":function(cX,cW,cV){return cW^cV},"=":function(cX,cW,cV){return cd(cX,cW,cV)},"==":function(cX,cW,cV){return cW==cV},"!=":function(cX,cW,cV){return cW!=cV},"<":function(cX,cW,cV){return cW<cV},">":function(cX,cW,cV){return cW>cV},"<=":function(cX,cW,cV){return cW<=cV},">=":function(cX,cW,cV){return cW>=cV},"&&":function(cX,cW,cV){return cW&&cV},"||":function(cX,cW,cV){return cW||cV},"&":function(cX,cW,cV){return cW&cV},"|":function(cX,cW,cV){return cV(cX,cW)},"!":function(cW,cV){return !cV}};var T={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'};function bq(c9,cZ){var de=cZ?24:-1,db=[],c4,c3=0,dg=[],c7,di=":";while(c3<c9.length){c7=c9.charAt(c3);if(c2("\"'")){cX(c7)}else{if(da(c7)||c2(".")&&da(dd())){cY()}else{if(c6("({[:,;")&&c2("/")){cW()}else{if(dc(c7)){c8();if(c6("{,")&&dg[0]=="{"&&(c4=db[db.length-1])){c4.json=c4.text.indexOf(".")==-1}}else{if(c2("(){}[].,;:")){db.push({index:c3,text:c7,json:c2("{}[]:,")});if(c2("{[")){dg.unshift(c7)}if(c2("}]")){dg.shift()}c3++}else{if(c1(c7)){c3++;continue}else{var cV=c7+dd(),c5=J[c7],df=J[cV];if(df){db.push({index:c3,text:cV,fn:df});c3+=2}else{if(c5){db.push({index:c3,text:c7,fn:c5,json:c6("[,:")&&c2("+-")});c3+=1}else{dh("Unexpected next character ",c3,c3+1)}}}}}}}}di=c7}return db;function c2(dj){return dj.indexOf(c7)!=-1}function c6(dj){return dj.indexOf(di)!=-1}function dd(){return c3+1<c9.length?c9.charAt(c3+1):false}function da(dj){return"0"<=dj&&dj<="9"}function c1(dj){return dj==" "||dj=="\r"||dj=="\t"||dj=="\n"||dj=="\v"||dj=="\u00A0"}function dc(dj){return"a"<=dj&&dj<="z"||"A"<=dj&&dj<="Z"||"_"==dj||dj=="$"}function c0(dj){return dj=="-"||dj=="+"||da(dj)}function dh(dk,dl,dj){dj=dj||c3;throw cK("Lexer Error: "+dk+" at column"+(cv(dl)?"s "+dl+"-"+c3+" ["+c9.substring(dl,dj)+"]":" "+dj)+" in expression ["+c9+"].")}function cY(){var dl="";var dm=c3;while(c3<c9.length){var dk=am(c9.charAt(c3));if(dk=="."||da(dk)){dl+=dk}else{var dj=dd();if(dk=="e"&&c0(dj)){dl+=dk}else{if(c0(dk)&&dj&&da(dj)&&dl.charAt(dl.length-1)=="e"){dl+=dk}else{if(c0(dk)&&(!dj||!da(dj))&&dl.charAt(dl.length-1)=="e"){dh("Invalid exponent")}else{break}}}}c3++}dl=1*dl;db.push({index:dm,text:dl,json:true,fn:function(){return dl}})}function c8(){var dl="";var dm=c3;while(c3<c9.length){var dk=c9.charAt(c3);if(dk=="."||dc(dk)||da(dk)){dl+=dk}else{break}c3++}var dj=J[dl];if(!dj){dj=co(dl);dj.isAssignable=dl}db.push({index:dm,text:dl,fn:dj,json:J[dl]})}function cX(dj){var dr=c3;c3++;var dk="";var dl=dj;var dp=false;while(c3<c9.length){var dm=c9.charAt(c3);dl+=dm;if(dp){if(dm=="u"){var dn=c9.substring(c3+1,c3+5);if(!dn.match(/[\da-f]{4}/i)){dh("Invalid unicode escape [\\u"+dn+"]")}c3+=4;dk+=String.fromCharCode(parseInt(dn,16))}else{var dq=T[dm];if(dq){dk+=dq}else{dk+=dm}}dp=false}else{if(dm=="\\"){dp=true}else{if(dm==dj){c3++;db.push({index:dr,text:dl,string:dk,json:true,fn:function(){return(dk.length==de)?aB.String["toDate"](dk):dk}});return}else{dk+=dm}}}c3++}dh("Unterminated quote",dr)}function cW(dl){var dq=c3;c3++;var dp="";var dn=false;while(c3<c9.length){var dm=c9.charAt(c3);if(dn){dp+=dm;dn=false}else{if(dm==="\\"){dp+=dm;dn=true}else{if(dm==="/"){c3++;var dj="";if(dc(c9.charAt(c3))){c8();dj=db.pop().text}var dk=new RegExp(dp,dj);db.push({index:dq,text:dp,flags:dj,fn:function(){return dk}});return}else{dp+=dm}}}c3++}dh("Unterminated RegExp",dq)}}function S(dj,ds){var c9=cr(0),dm=bq(dj,ds);return{assertAllConsumed:de,primary:dc,statements:c0,validator:dt,filter:dn,watch:dd};function c7(dx,dw){throw cK("Parse Error: Token '"+dw.text+"' "+dx+" at column "+(dw.index+1)+" of expression ["+dj+"] starting at ["+dj.substring(dw.index)+"].")}function c1(){if(dm.length===0){throw cK("Unexpected end of expression: "+dj)}return dm[0]}function c3(dB,dA,dz,dy){if(dm.length>0){var dx=dm[0];var dw=dx.text;if(dw==dB||dw==dA||dw==dz||dw==dy||(!dB&&!dA&&!dz&&!dy)){return dx}}return false}function cX(dA,dz,dy,dx){var dw=c3(dA,dz,dy,dx);if(dw){if(ds&&!dw.json){index=dw.index;c7("is not valid json",dw)}dm.shift();this.currentToken=dw;return dw}return false}function dg(dw){if(!cX(dw)){c7("is unexpected, expecting ["+dw+"]",c3())}}function c8(dx,dw){return function(dy){return dx(dy,dw(dy))}}function du(dy,dx,dw){return function(dz){return dx(dz,dy(dz),dw(dz))}}function c6(){return dm.length>0}function de(){if(dm.length!==0){c7("is extra token not part of expression",dm[0])}}function c0(){var dw=[];while(true){if(dm.length>0&&!c3("}",")",";","]")){dw.push(c4())}if(!cX(";")){return function(dx){var dA;for(var dy=0;dy<dw.length;dy++){var dz=dw[dy];if(dz){dA=dz(dx)}}return dA}}}}function c4(){var dx=di();var dw;while(true){if((dw=cX("|"))){dx=du(dx,dw.fn,dn())}else{return dx}}}function dn(){return cV(cu)}function dt(){return cV(aK)}function cV(dy){var dz=cY(dy);var dw=[];var dx;while(true){if((dx=cX(":"))){dw.push(di())}else{var dA=function(dC,dB){var dD=[dB];for(var dE=0;dE<dw.length;dE++){dD.push(dw[dE](dC))}return dz.apply(dC,dD)};return function(){return dA}}}}function di(){return da()}function da(){var dy=dq();var dw;if(dw=cX("=")){if(!dy.isAssignable){c7("implies assignment but ["+dj.substring(0,dw.index)+"] can not be assigned to",dw)}var dx=function(){return dy.isAssignable};return du(dx,dw.fn,dq())}else{return dy}}function dq(){var dx=c5();var dw;while(true){if((dw=cX("||"))){dx=du(dx,dw.fn,c5())}else{return dx}}}function c5(){var dx=cZ();var dw;if((dw=cX("&&"))){dx=du(dx,dw.fn,c5())}return dx}function cZ(){var dx=dk();var dw;if((dw=cX("==","!="))){dx=du(dx,dw.fn,cZ())}return dx}function dk(){var dx=dl();var dw;if(dw=cX("<",">","<=",">=")){dx=du(dx,dw.fn,dk())}return dx}function dl(){var dx=cW();var dw;while(dw=cX("+","-")){dx=du(dx,dw.fn,cW())}return dx}function cW(){var dx=df();var dw;while(dw=cX("*","/","%")){dx=du(dx,dw.fn,df())}return dx}function df(){var dw;if(cX("+")){return dc()}else{if(dw=cX("-")){return du(c9,dw.fn,df())}else{if(dw=cX("!")){return c8(dw.fn,df())}else{return dc()}}}}function cY(dB){var dA=cX();var dz=dA.text.split(".");var dw=dB;var dy;for(var dx=0;dx<dz.length;dx++){dy=dz[dx];if(dw){dw=dw[dy]}}if(typeof dw!=bz){c7("should be a function",dA)}return dw}function dc(){var dy;if(cX("(")){var dz=c4();dg(")");dy=dz}else{if(cX("[")){dy=c2()}else{if(cX("{")){dy=dr()}else{var dw=cX();dy=dw.fn;if(!dy){c7("not a primary expression",dw)}}}}var dx;while(dx=cX("(","[",".")){if(dx.text==="("){dy=dh(dy)}else{if(dx.text==="["){dy=db(dy)}else{if(dx.text==="."){dy=dp(dy)}else{c7("IMPOSSIBLE")}}}}return dy}function dp(dx){var dz=cX().text;var dw=co(dz);var dy=function(dA){return dw(dx(dA))};dy.isAssignable=dz;return dy}function db(dx){var dw=di();dg("]");if(cX("=")){var dy=di();return function(dz){return dx(dz)[dw(dz)]=dy(dz)}}else{return function(dz){var dB=dx(dz);var dA=dw(dz);return(dB)?dB[dA]:cS}}}function dh(dx){var dw=[];if(c1().text!=")"){do{dw.push(di())}while(cX(","))}dg(")");return function(dz){var dA=[];for(var dB=0;dB<dw.length;dB++){dA.push(dw[dB](dz))}var dy=dx(dz)||j;return dy.apply?dy.apply(dz,dA):dy(dA[0],dA[1],dA[2],dA[3],dA[4])}}function c2(){var dw=[];if(c1().text!="]"){do{dw.push(di())}while(cX(","))}dg("]");return function(dx){var dz=[];for(var dy=0;dy<dw.length;dy++){dz.push(dw[dy](dx))}return dz}}function dr(){var dw=[];if(c1().text!="}"){do{var dy=cX(),dx=dy.string||dy.text;dg(":");var dz=di();dw.push({key:dx,value:dz})}while(cX(","))}dg("}");return function(dA){var dB={};for(var dC=0;dC<dw.length;dC++){var dE=dw[dC];var dD=dE.value(dA);dB[dE.key]=dD}return dB}}function dd(){var dw=[];while(c6()){dw.push(dv());if(!cX(";")){de()}}de();return function(dx){for(var dy=0;dy<dw.length;dy++){var dz=dw[dy](dx);dx.addListener(dz.name,dz.fn)}}}function dv(){var dw=cX().text;dg(":");var dx;if(c1().text=="{"){dg("{");dx=c0();dg("}")}else{dx=di()}return function(dy){return{name:dw,fn:dx}}}}function bX(cW,cX){this.template=cW=cW+"#";this.defaults=cX||{};var cV=this.urlParams={};aS(cW.split(/\W/),function(cY){if(cY&&cW.match(new RegExp(":"+cY+"\\W"))){cV[cY]=true}})}bX.prototype={url:function(cZ){var cY=[];var cV=this;var cW=this.template;cZ=cZ||{};aS(this.urlParams,function(c1,c0){var c2=cZ[c0]||cV.defaults[c0]||"";cW=cW.replace(new RegExp(":"+c0+"(\\W)"),c2+"$1")});cW=cW.replace(/\/?#$/,"");var cX=[];ar(cZ,function(c1,c0){if(!cV.urlParams[c0]){cX.push(encodeURI(c0)+"="+encodeURI(c1))}});cW=cW.replace(/\/*$/,"");return cW+(cX.length?"?"+cX.join("&"):"")}};function bO(cV){this.xhr=cV}bO.DEFAULT_ACTIONS={get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:true},remove:{method:"DELETE"},"delete":{method:"DELETE"}};bO.prototype={route:function(cY,cZ,c1){var cW=this;var cV=new bX(cY);c1=b7({},bO.DEFAULT_ACTIONS,c1);function cX(c3){var c2={};aS(cZ||{},function(c5,c4){c2[c4]=c5.charAt&&c5.charAt(0)=="@"?bQ(c3,c5.substr(1)):c5});return c2}function c0(c2){bv(c2||{},this)}aS(c1,function(c4,c3){var c2=c4.method=="POST"||c4.method=="PUT";c0[c3]=function(c6,c5,db){var c9={};var c8;var da=j;switch(arguments.length){case 3:da=db;case 2:if(E(c5)){da=c5}else{c9=c6;c8=c5;break}case 1:if(E(c6)){da=c6}else{if(c2){c8=c6}else{c9=c6}}break;case 0:break;default:throw"Expected between 0-3 arguments [params, data, callback], got "+arguments.length+" arguments."}var c7=this instanceof c0?this:(c4.isArray?[]:new c0(c8));cW.xhr(c4.method,cV.url(b7({},c4.params||{},cX(c8),c9)),c8,function(dd,de,dc){if(dd==200){if(c4.isArray){c7.length=0;aS(de,function(df){c7.push(new c0(df))})}else{bv(de,c7)}(da||j)(c7)}else{throw {status:dd,response:de,message:dd+": "+de}}},c4.verifyCache);return c7};c0.bind=function(c5){return cW.route(cY,b7({},cZ,c5),c1)};c0.prototype["$"+c3]=function(c6,c5){var c8=cX(this);var c9=j;switch(arguments.length){case 2:c8=c6;c9=c5;case 1:if(typeof c6==bz){c9=c6}else{c8=c6}case 0:break;default:throw"Expected between 1-2 arguments [params, callback], got "+arguments.length+" arguments."}var c7=c2?this:cS;c0[c3].call(this,c8,c7,c9)}});return c0}};var L=bU.XMLHttpRequest||function(){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(cX){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(cW){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(cV){}throw new cK("This browser does not support XMLHttpRequest.")};function aO(c7,c5,c6,c3,da,c2){var c8=this;c8.isMock=false;var cZ=0;var c1=0;var c9=[];function c4(db){try{db.apply(null,ad.call(arguments,1))}finally{c1--;if(c1===0){while(c9.length){try{c9.pop()()}catch(dc){da.error(dc)}}}}}c8.xhr=function(dh,dc,dd,dg){if(E(dd)){dg=dd;dd=a6}if(am(dh)=="json"){var de="angular_"+Math.random()+"_"+(cZ++);de=de.replace(/\d\./,"");var db=c5[0].createElement("script");db.type="text/javascript";db.src=dc.replace("JSON_CALLBACK",de);bU[de]=function(di){bU[de]=cS;dg(200,di)};c6.append(db)}else{var df=new c3();df.open(dh,dc,true);df.setRequestHeader("Content-Type","application/x-www-form-urlencoded");df.setRequestHeader("Accept","application/json, text/plain, */*");df.setRequestHeader("X-Requested-With","XMLHttpRequest");c1++;df.onreadystatechange=function(){if(df.readyState==4){c4(dg,df.status||200,df.responseText)}};df.send(dd||"")}};c8.notifyWhenNoOutstandingRequests=function(db){if(c1===0){db()}else{c9.push(db)}};var cY=[];c8.poll=function(){aS(cY,function(db){db()})};c8.addPollFn=function(db){cY.push(db);return db};c8.startPoller=function(dc,dd){(function db(){c8.poll();dd(db,dc)})()};c8.setUrl=function(dc){var db=c7.href;if(!db.match(/#/)){db+="#"}if(!dc.match(/#/)){dc+="#"}c7.href=dc};c8.getUrl=function(){return c7.href};var cV=c5[0];var cX={};var cW="";c8.cookies=function(dc,de){var dg,db,dd,df;if(dc){if(de===cS){cV.cookie=escape(dc)+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}else{if(ci(de)){cV.cookie=escape(dc)+"="+escape(de);dg=dc.length+de.length+1;if(dg>4096){da.warn("Cookie '"+dc+"' possibly not set or overflowed because it was too large ("+dg+" > 4096 bytes)!")}if(cX.length>20){da.warn("Cookie '"+dc+"' possibly not set or overflowed because too many cookies were already set ("+cX.length+" > 20 )")}}}}else{if(cV.cookie!==cW){cW=cV.cookie;db=cW.split("; ");cX={};for(dd=0;dd<db.length;dd++){df=db[dd].split("=");if(df.length===2){cX[unescape(df[0])]=unescape(df[1])}}}return cX}};c8.defer=function(db){c1++;c2(function(){c4(db)},0)};var c0=j;c8.hover=function(db){c0=db};c8.bind=function(){c5.bind("mouseover",function(db){c0(ck(at?db.srcElement:db.target),true);return true});c5.bind("mouseleave mouseout click dblclick keypress keyup",function(db){c0(ck(db.target),false);return true})};c8.addCss=function(db){var dc=ck(cV.createElement("link"));dc.attr("rel","stylesheet");dc.attr("type","text/css");dc.attr("href",db);c6.append(dc)};c8.addJs=function(dd,dc){var db=ck(cV.createElement("script"));db.attr("type","text/javascript");db.attr("src",dd);if(dc){db.attr("id",dc)}c6.append(db)}}var b6=/^<\s*([\w:]+)((?:\s+\w+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,n=/^<\s*\/\s*([\w:]+)[^>]*>/,cs=/(\w+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,cy=/^</,g=/^<\s*\//,aD=/<!--(.*?)-->/g,bW=/<!\[CDATA\[(.*?)]]>/g,bC=/^((ftp|https?):\/\/|mailto:|#)/,bh=/([^\#-~| |!])/g;var aV=cF("area,br,col,hr,img");var b2=cF("address,blockquote,center,dd,del,dir,div,dl,dt,hr,ins,li,map,menu,ol,p,pre,script,table,tbody,td,tfoot,th,thead,tr,ul");var al=cF("a,abbr,acronym,b,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,q,s,samp,small,span,strike,strong,sub,sup,tt,u,var");var K=cF("colgroup,dd,dt,li,p,td,tfoot,th,thead,tr");var bP=cF("script,style");var bx=b7({},aV,b2,al,K);var a1=cF("compact,ismap,nohref,nowrap");var cJ=cF("background,href,longdesc,src,usemap");var a8=b7({},a1,cJ,cF("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,coords,dir,face,headers,height,hreflang,hspace,lang,language,rel,rev,rows,rowspan,rules,scope,scrolling,shape,span,start,summary,target,title,type,valign,value,vspace,width"));function aQ(cW,c4){var cZ,c0,cX,c1=[],c2=cW;c1.last=function(){return c1[c1.length-1]};while(cW){c0=true;if(!c1.last()||!bP[c1.last()]){if(cW.indexOf("<!--")===0){cZ=cW.indexOf("-->");if(cZ>=0){if(c4.comment){c4.comment(cW.substring(4,cZ))}cW=cW.substring(cZ+3);c0=false}}else{if(g.test(cW)){cX=cW.match(n);if(cX){cW=cW.substring(cX[0].length);cX[0].replace(n,cY);c0=false}}else{if(cy.test(cW)){cX=cW.match(b6);if(cX){cW=cW.substring(cX[0].length);cX[0].replace(b6,cV);c0=false}}}}if(c0){cZ=cW.indexOf("<");var c3=cZ<0?cW:cW.substring(0,cZ);cW=cZ<0?"":cW.substring(cZ);c4.chars(aa(c3))}}else{cW=cW.replace(new RegExp("(.*)<\\s*\\/\\s*"+c1.last()+"[^>]*>","i"),function(c5,c6){c6=c6.replace(aD,"$1").replace(bW,"$1");c4.chars(aa(c6));return""});cY("",c1.last())}if(cW==c2){throw"Parse Error: "+cW}c2=cW}cY();function cV(c5,c8,c9,c6){c8=am(c8);if(b2[c8]){while(c1.last()&&al[c1.last()]){cY("",c1.last())}}if(K[c8]&&c1.last()==c8){cY("",c8)}c6=aV[c8]||!!c6;if(!c6){c1.push(c8)}var c7={};c9.replace(cs,function(db,da){var dc=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:a1[da]?da:"";c7[da]=aa(dc)});c4.start(c8,c7,c6)}function cY(c5,c7){var c8=0,c6;c7=am(c7);if(c7){for(c8=c1.length-1;c8>=0;c8--){if(c1[c8]==c7){break}}}if(c8>=0){for(c6=c1.length-1;c6>=c8;c6--){c4.end(c1[c6])}c1.length=c8}}}function cF(cY){var cX={},cV=cY.split(","),cW;for(cW=0;cW<cV.length;cW++){cX[cV[cW]]=true}return cX}var y=r.createElement("pre");function aa(cV){y.innerHTML=cV.replace(/</g,"&lt;");return y.innerText||y.textContent}function aF(cV){return cV.replace(/&/g,"&amp;").replace(bh,function(cW){return"&#"+cW.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function a5(cW){var cX=false;var cV=bF(cW,cW.push);return{start:function(cY,c0,cZ){cY=am(cY);if(!cX&&bP[cY]){cX=cY}if(!cX&&bx[cY]==true){cV("<");cV(cY);aS(c0,function(c2,c1){var c3=am(c1);if(a8[c3]==true&&(cJ[c3]!==true||c2.match(bC))){cV(" ");cV(c1);cV('="');cV(aF(c2));cV('"')}});cV(cZ?"/>":">")}},end:function(cY){cY=am(cY);if(!cX&&bx[cY]==true){cV("</");cV(cY);cV(">")}if(cY==cX){cX=false}},chars:function(cY){if(!cX){cV(aF(cY))}}}}var cc={},cB="ng-"+new Date().getTime(),aj=1,aC=(bU.document.attachEvent?function(cV,cX,cW){cV.attachEvent("on"+cX,cW)}:function(cV,cX,cW){cV.addEventListener(cX,cW,false)}),e=(bU.document.detachEvent?function(cV,cX,cW){cV.detachEvent("on"+cX,cW)}:function(cV,cX,cW){cV.removeEventListener(cX,cW,false)});function cf(){return(aj++)}function cU(cW){var cX=cW[cB],cV=cc[cX];if(cV){aS(cV.bind||{},function(cZ,cY){e(cW,cY,cZ)});delete cc[cX];if(at){cW[cB]=""}else{delete cW[cB]}}}function cb(cX){var c0={},cY=cX[0].style,cZ,cV,cW;if(typeof cY.length=="number"){for(cW=0;cW<cY.length;cW++){cV=cY[cW];c0[cV]=cY[cV]}}else{for(cV in cY){cZ=cY[cV];if(1*cV!=cV&&cV!="cssText"&&cZ&&typeof cZ=="string"&&cZ!="false"){c0[cV]=cZ}}}return c0}function bu(cW){if(bJ(cW)){this[0]=cW;this.length=1}else{if(cv(cW.length)&&cW.item){for(var cV=0;cV<cW.length;cV++){this[cV]=cW[cV]}this.length=cW.length}}}bu.prototype={data:function(cX,cY){var cW=this[0],cZ=cW[cB],cV=cc[cZ||-1];if(cv(cY)){if(!cV){cW[cB]=cZ=cf();cV=cc[cZ]={}}cV[cX]=cY}else{return cV?cV[cX]:a6}},removeData:function(){cU(this[0])},dealoc:function(){(function cV(cY){cU(cY);for(var cX=0,cW=cY.childNodes;cX<cW.length;cX++){cV(cW[cX])}})(this[0])},bind:function(cZ,cY){var cV=this,cX=cV[0],c0=cV.data("bind"),cW;if(!c0){this.data("bind",c0={})}aS(cZ.split(" "),function(c1){cW=c0[c1];if(!cW){c0[c1]=cW=function(c2){if(!c2.preventDefault){c2.preventDefault=function(){c2.returnValue=false}}if(!c2.stopPropagation){c2.stopPropagation=function(){c2.cancelBubble=true}}aS(cW.fns,function(c3){c3.call(cV,c2)})};cW.fns=[];aC(cX,c1,cW)}cW.fns.push(cY)})},replaceWith:function(cV){this[0].parentNode.replaceChild(ck(cV)[0],this[0])},children:function(){return new bu(this[0].childNodes)},append:function(cW){var cV=this[0];cW=ck(cW);aS(cW,function(cX){cV.appendChild(cX)})},remove:function(){this.dealoc();var cV=this[0].parentNode;if(cV){cV.removeChild(this[0])}},removeAttr:function(cV){this[0].removeAttribute(cV)},after:function(cV){this[0].parentNode.insertBefore(ck(cV)[0],this[0].nextSibling)},hasClass:function(cV){var cW=" "+cV+" ";if((" "+this[0].className+" ").replace(/[\n\t]/g," ").indexOf(cW)>-1){return true}return false},removeClass:function(cV){this[0].className=av((" "+this[0].className+" ").replace(/[\n\t]/g," ").replace(" "+cV+" ",""))},toggleClass:function(cV,cX){var cW=this;(cX?cW.addClass:cW.removeClass).call(cW,cV)},addClass:function(cV){if(!this.hasClass(cV)){this[0].className=av(this[0].className+" "+cV)}},css:function(cV,cX){var cW=this[0].style;if(ci(cV)){if(cv(cX)){cW[cV]=cX}else{return cW[cV]}}else{b7(cW,cV)}},attr:function(cV,cW){var cX=this[0];if(cR(cV)){aS(cV,function(cZ,cY){cX.setAttribute(cY,cZ)})}else{if(cv(cW)){cX.setAttribute(cV,cW)}else{return cX.getAttribute(cV,2)}}},text:function(cV){if(cv(cV)){this[0].textContent=cV}return this[0].textContent},val:function(cV){if(cv(cV)){this[0].value=cV}return this[0].value},html:function(cW){if(cv(cW)){var cV=0,cX=this[0].childNodes;for(;cV<cX.length;cV++){ck(cX[cV]).dealoc()}this[0].innerHTML=cW}return this[0].innerHTML},parent:function(){return ck(this[0].parentNode)},clone:function(){return ck(this[0].cloneNode(true))}};if(at){b7(bu.prototype,{text:function(cV){var cW=this[0];if(cW.nodeType==3){if(cv(cV)){cW.nodeValue=cV}return cW.nodeValue}else{if(cv(cV)){cW.innerText=cV}return cW.innerText}}})}var aY={typeOf:function(cW){if(cW===a6){return v}var cV=typeof cW;if(cV==aP){if(cW instanceof Array){return a3}if(ax(cW)){return bc}if(cW.nodeType==1){return cC}}return cV}};var cQ={copy:bv,size:aw,equals:p};var bk={extend:b7};var M={indexOf:cO,sum:function(c0,cZ){var cX=aB.Function["compile"](cZ);var cW=0;for(var cV=0;cV<c0.length;cV++){var cY=1*cX(c0[cV]);if(!isNaN(cY)){cW+=cY}}return cW},remove:function(cX,cW){var cV=cO(cX,cW);if(cV>=0){cX.splice(cV,1)}return cW},filter:function(c2,c1){var cX=[];cX.check=function(c4){for(var c3=0;c3<cX.length;c3++){if(!cX[c3](c4)){return false}}return true};var cZ=function(c5,c6){if(c6.charAt(0)==="!"){return !cZ(c5,c6.substr(1))}switch(typeof c5){case"boolean":case"number":case"string":return(""+c5).toLowerCase().indexOf(c6)>-1;case"object":for(var c4 in c5){if(c4.charAt(0)!=="$"&&cZ(c5[c4],c6)){return true}}return false;case"array":for(var c3=0;c3<c5.length;c3++){if(cZ(c5[c3],c6)){return true}}return false;default:return false}};switch(typeof c1){case"boolean":case"number":case"string":c1={$:c1};case"object":for(var cY in c1){if(cY=="$"){(function(){var c3=(""+c1[cY]).toLowerCase();if(!c3){return}cX.push(function(c4){return cZ(c4,c3)})})()}else{(function(){var c3=cY;var c4=(""+c1[cY]).toLowerCase();if(!c4){return}cX.push(function(c5){return cZ(bQ(c5,c3),c4)})})()}}break;case bz:cX.push(c1);break;default:return c2}var cW=[];for(var cV=0;cV<c2.length;cV++){var c0=c2[cV];if(cX.check(c0)){cW.push(c0)}}return cW},add:function(cW,cV){cW.push(bB(cV)?{}:cV);return cW},count:function(cY,cX){if(!cX){return cY.length}var cV=aB.Function["compile"](cX),cW=0;aS(cY,function(cZ){if(cV(cZ)){cW++}});return cW},orderBy:function(c2,c1,cZ){c1=a9(c1)?c1:[c1];c1=aI(c1,function(c4){var c5=false,c3=c4||aG;if(ci(c4)){if((c4.charAt(0)=="+"||c4.charAt(0)=="-")){c5=c4.charAt(0)=="-";c4=c4.substring(1)}c3=bt(c4).fnSelf}return cW(function(c7,c6){return c0(c3(c7),c3(c6))},c5)});var cY=[];for(var cX=0;cX<c2.length;cX++){cY.push(c2[cX])}return cY.sort(cW(cV,cZ));function cV(c6,c5){for(var c4=0;c4<c1.length;c4++){var c3=c1[c4](c6,c5);if(c3!==0){return c3}}return 0}function cW(c3,c4){return cp(c4)?function(c6,c5){return c3(c5,c6)}:c3}function c0(c6,c5){var c4=typeof c6;var c3=typeof c5;if(c4==c3){if(c4=="string"){c6=c6.toLowerCase()}if(c4=="string"){c5=c5.toLowerCase()}if(c6===c5){return 0}return c6<c5?-1:1}else{return c4<c3?-1:1}}},limitTo:function(cZ,cV){cV=parseInt(cV,10);var cW=[],cX,cY;if(cV>0){cX=0;cY=cV}else{cX=cZ.length+cV;cY=cZ.length}for(;cX<cY;cX++){cW.push(cZ[cX])}return cW}};var a7=/^(\d{4})-(\d\d)-(\d\d)(?:T(\d\d)(?:\:(\d\d)(?:\:(\d\d)(?:\.(\d{3}))?)?)?Z)?$/;var aq={quote:function(cV){return'"'+cV.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v")+'"'},quoteUnicode:function(cV){var c0=aB.String["quote"](cV);var cZ=[];for(var cW=0;cW<c0.length;cW++){var cX=c0.charCodeAt(cW);if(cX<128){cZ.push(c0.charAt(cW))}else{var cY="000"+cX.toString(16);cZ.push("\\u"+cY.substring(cY.length-4))}}return cZ.join("")},toDate:function(cX){var cW;if(ci(cX)&&(cW=cX.match(a7))){var cV=new Date(0);cV.setUTCFullYear(cW[1],cW[2]-1,cW[3]);cV.setUTCHours(cW[4]||0,cW[5]||0,cW[6]||0,cW[7]||0);return cV}return cX}};var af={toString:function(cV){return !cV?cV:cV.toISOString?cV.toISOString():cn(cV.getUTCFullYear(),4)+"-"+cn(cV.getUTCMonth()+1,2)+"-"+cn(cV.getUTCDate(),2)+"T"+cn(cV.getUTCHours(),2)+":"+cn(cV.getUTCMinutes(),2)+":"+cn(cV.getUTCSeconds(),2)+"."+cn(cV.getUTCMilliseconds(),3)+"Z"}};var w={compile:function(cV){if(E(cV)){return cV}else{if(cV){return bt(cV).fnSelf}else{return aG}}}};function I(cW,cV){aB[cW]=aB[cW]||{};aS(cV,function(cX){b7(aB[cW],cX)})}I("Global",[aY]);I("Collection",[aY,cQ]);I("Array",[aY,cQ,M]);I("Object",[aY,cQ,bk]);I("String",[aY,aq]);I("Date",[aY,af]);aB.Date["toString"]=af.toString;I("Function",[aY,cQ,w]);cu.currency=function(cV){this.$element.toggleClass("ng-format-negative",cV<0);return"$"+cu.number.apply(this,[cV,2])};cu.number=function(cY,cV){if(isNaN(cY)||!isFinite(cY)){return""}cV=typeof cV==q?2:cV;var cW=cY<0;cY=Math.abs(cY);var c1=Math.pow(10,cV);var c3=""+Math.round(cY*c1);var c2=c3.substring(0,c3.length-cV);c2=c2||"0";var cX=c3.substring(c3.length-cV);c3=cW?"-":"";for(var c0=0;c0<c2.length;c0++){if((c2.length-c0)%3===0&&c0!==0){c3+=","}c3+=c2.charAt(c0)}if(cV>0){for(var cZ=cX.length;cZ<cV;cZ++){cX+="0"}c3+="."+cX.substring(0,cV)}return c3};function cn(cW,cX,cV){var cY="";if(cW<0){cY="-";cW=-cW}cW=""+cW;while(cW.length<cX){cW="0"+cW}if(cV){cW=cW.substr(cW.length-cX)}return cY+cW}function br(cW,cX,cY,cV){return function(cZ){var c0=cZ["get"+cW]();if(cY>0||c0>-cY){c0+=cY}if(c0===0&&cY==-12){c0=12}return cn(c0,cX,cV)}}var bG={yyyy:br("FullYear",4),yy:br("FullYear",2,0,true),MM:br("Month",2,1),M:br("Month",1,1),dd:br("Date",2),d:br("Date",1),HH:br("Hours",2),H:br("Hours",1),hh:br("Hours",2,-12),h:br("Hours",1,-12),mm:br("Minutes",2),m:br("Minutes",1),ss:br("Seconds",2),s:br("Seconds",1),a:function(cV){return cV.getHours()<12?"am":"pm"},Z:function(cV){var cW=cV.getTimezoneOffset();return cn(cW/60,2)+cn(Math.abs(cW%60),2)}};var ap=/([^yMdHhmsaZ]*)(y+|M+|d+|H+|h+|m+|s+|a|Z)(.*)/;var cq=/^\d+$/;cu.date=function(cV,cY){if(ci(cV)){if(cq.test(cV)){cV=parseInt(cV,10)}else{cV=aq.toDate(cV)}}if(aU(cV)){cV=new Date(cV)}if(!ax(cV)){return cV}var cZ=cV.toLocaleDateString(),cW;if(cY&&ci(cY)){cZ="";var cX=[];while(cY){cX=bd(cX,ap.exec(cY),1);cY=cX.pop()}aS(cX,function(c0){cW=bG[c0];cZ+=cW?cW(cV):c0})}return cZ};cu.json=function(cV){this.$element.addClass("ng-monospace");return cm(cV,true)};cu.lowercase=am;cu.uppercase=bI;cu.html=function(cV,cW){return new aW(cV,cW)};cu.linky=function(c2){if(!c2){return c2}var cV=/((ftp|https?):\/\/|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s\.\;\,\(\)\{\}\<\>]/;var cY;var cX=c2;var c0=[];var c1=a5(c0);var cW;var cZ;while(cY=cX.match(cV)){cW=cY[0];if(cY[2]==cY[3]){cW="mailto:"+cW}cZ=cY.index;c1.chars(cX.substr(0,cZ));c1.start("a",{href:cW});c1.chars(cY[0].replace(/^mailto:/,""));c1.end("a");cX=cX.substring(cZ+cY[0].length)}c1.chars(cX);return new aW(c0.join(""))};function a0(cV,cW){return{format:cV,parse:cW||cV}}function D(cV){return(cv(cV)&&cV!==a6)?""+cV:cV}var aT=/^\s*[-+]?\d*(\.\d*)?\s*$/;l.noop=a0(aG,aG);l.json=a0(cm,Q);l["boolean"]=a0(D,cp);l.number=a0(D,function(cV){if(cV==a6||aT.exec(cV)){return cV===a6||cV===""?a6:1*cV}else{throw"Not a number"}});l.list=a0(function(cV){return cV?cV.join(", "):cV},function(cW){var cV=[];aS((cW||"").split(","),function(cX){cX=av(cX);if(cX){cV.push(cX)}});return cV});l.trim=a0(function(cV){return cV?av(""+cV):""});b7(aK,{noop:function(){return a6},regexp:function(cW,cV,cX){if(!cW.match(cV)){return cX||"Value does not match expected format "+cV+"."}else{return a6}},number:function(cY,cX,cV){var cW=1*cY;if(cW==cY){if(typeof cX!=q&&cW<cX){return"Value can not be less than "+cX+"."}if(typeof cX!=q&&cW>cV){return"Value can not be greater than "+cV+"."}return a6}else{return"Not a number"}},integer:function(cY,cW,cV){var cX=aK.number(cY,cW,cV);if(cX){return cX}if(!(""+cY).match(/^\s*[\d+]*\s*$/)||cY!=Math.round(cY)){return"Not a whole number"}return a6},date:function(cX){var cV=/^(\d\d?)\/(\d\d?)\/(\d\d\d\d)$/.exec(cX);var cW=cV?new Date(cV[3],cV[1]-1,cV[2]):0;return(cW&&cW.getFullYear()==cV[3]&&cW.getMonth()==cV[1]-1&&cW.getDate()==cV[2])?a6:"Value is not a date. (Expecting format: 12/31/2009)."},email:function(cV){if(cV.match(/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/)){return a6}return"Email needs to be in username@host.com format."},phone:function(cV){if(cV.match(/^1\(\d\d\d\)\d\d\d-\d\d\d\d$/)){return a6}if(cV.match(/^\+\d{2,3} (\(\d{1,5}\))?[\d ]+\d$/)){return a6}return"Phone number needs to be in 1(987)654-3210 format in North America or +999 (123) 45678 906 internationaly."},url:function(cV){if(cV.match(/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/)){return a6}return"URL needs to be in http://server[:port]/path format."},json:function(cV){try{Q(cV);return a6}catch(cW){return cW.toString()}},asynchronous:function(cY,c1,cW){if(!cY){return}var c0=this;var cZ=c0.$element;var cX=cZ.data("$asyncValidator");if(!cX){cZ.data("$asyncValidator",cX={inputs:{}})}cX.current=cY;var cV=cX.inputs[cY];if(!cV){cX.inputs[cY]=cV={inFlight:true};c0.$invalidWidgets.markInvalid(c0.$element);cZ.addClass("ng-input-indicator-wait");c1(cY,function(c2,c3){cV.response=c3;cV.error=c2;cV.inFlight=false;if(cX.current==cY){cZ.removeClass("ng-input-indicator-wait");c0.$invalidWidgets.markValid(cZ)}cZ.data(bf)();c0.$root.$eval()})}else{if(cV.inFlight){c0.$invalidWidgets.markInvalid(c0.$element)}else{(cW||j)(cV.response)}}return cV.error}});var H=/^(file|ftp|http|https):\/\/(\w+:{0,1}\w*@)?([\w\.-]*)(:([0-9]+))?(\/[^\?#]*)?(\?([^#]*))?(#(.*))?$/,z=/^([^\?]*)?(\?([^\?]*))?$/,cA={http:80,https:443,ftp:21},bT="eager",bK=bT+"-published";function cl(cW,cY,cX,cV){bs(cW,cY,{$inject:cX,$creation:cV})}cl("$window",bF(bU,aG,bU),[],bK);cl("$document",function(cV){return ck(cV.document)},["$window"],bK);cl("$location",function(c2){var da=this,c6={toString:cW,update:c1,updateHash:c5},c0=c2.getUrl(),cY,c3;c2.addPollFn(function(){if(c0!=c2.getUrl()){c1(c0=c2.getUrl());c9();da.$eval()}});this.$onEval(bp,c4);this.$onEval(cg,c4);c1(c0);c9();return c6;function c1(db){if(ci(db)){b7(c6,c8(db))}else{if(cv(db.hash)){b7(db,cZ(db.hash))}b7(c6,db);if(cv(db.hashPath||db.hashSearch)){c6.hash=cX(c6)}c6.href=c7(c6)}}function c5(dd,db){var dc={};if(ci(dd)){dc.hashPath=dd;if(cv(db)){dc.hashSearch=db}}else{dc.hashSearch=dd}c1(dc)}function cW(){cV();return c6.href}function cV(){if(c6.href==cY){if(c6.hash==c3){c6.hash=cX(c6)}c6.href=c7(c6)}c1(c6.href)}function c9(){cY=c6.href;c3=c6.hash}function c4(){cV();if(c6.href!=cY){c2.setUrl(c0=c6.href);c9()}}function c7(dd){var dc=N(dd.search);var db=(dd.port==cA[dd.protocol]?a6:dd.port);return dd.protocol+"://"+dd.host+(db?":"+db:"")+dd.path+(dc?"?"+dc:"")+(dd.hash?"#"+dd.hash:"")}function cX(dc){var db=N(dc.hashSearch);return escape(dc.hashPath).replace(/%21/gi,"!").replace(/%3A/gi,":").replace(/%24/gi,"$")+(db?"?"+db:"")}function c8(db){var dd={};var dc=H.exec(db);if(dc){dd.href=db.replace(/#$/,"");dd.protocol=dc[1];dd.host=dc[3]||"";dd.port=dc[5]||cA[dd.protocol]||a6;dd.path=dc[6]||"";dd.search=ah(dc[8]);dd.hash=dc[10]||"";b7(dd,cZ(dd.hash))}return dd}function cZ(dd){var dc={};var db=z.exec(dd);if(db){dc.hash=dd;dc.hashPath=unescape(db[1]||"");dc.hashSearch=ah(db[3])}return dc}},["$browser"],bK);cl("$log",function(cW){return{log:cV("log"),warn:cV("warn"),info:cV("info"),error:cV("error")};function cV(cY){var cX=cW.console||{};var cZ=cX[cY]||cX.log||j;if(cZ.apply){return function(){var c0=[];aS(arguments,function(c1){c0.push(bb(c1))});return cZ.apply(cX,c0)}}else{return cZ}}},["$window"],bK);cl("$exceptionHandler",function(cV){return function(cW){cV.error(cW)}},["$log"],bK);cl("$hover",function(c0,cW){var c2,cY=this,cZ,c1=300,cX=10,cV=ck(cW[0].body);c0.hover(function(c6,c4){if(c4&&(cZ=c6.attr(a)||c6.attr(k))){if(!c2){c2={callout:ck('<div id="ng-callout"></div>'),arrow:ck("<div></div>"),title:ck('<div class="ng-title"></div>'),content:ck('<div class="ng-content"></div>')};c2.callout.append(c2.arrow);c2.callout.append(c2.title);c2.callout.append(c2.content);cV.append(c2.callout)}var c3=cV[0].getBoundingClientRect(),c5=c6[0].getBoundingClientRect(),c7=c3.right-c5.right-cX;c2.title.text(c6.hasClass("ng-exception")?"EXCEPTION:":"Validation error...");c2.content.text(cZ);if(c7<c1){c2.arrow.addClass("ng-arrow-right");c2.arrow.css({left:(c1+1)+"px"});c2.callout.css({position:"fixed",left:(c5.left-cX-c1-4)+"px",top:(c5.top-3)+"px",width:c1+"px"})}else{c2.arrow.addClass("ng-arrow-left");c2.callout.css({position:"fixed",left:(c5.right+cX)+"px",top:(c5.top-3)+"px",width:c1+"px"})}}else{if(c2){c2.callout.remove();c2=a6}}})},["$browser","$document"],bT);cl("$invalidWidgets",function(){var cW=[];cW.markValid=function(cY){var cX=cO(cW,cY);if(cX!=-1){cW.splice(cX,1)}};cW.markInvalid=function(cY){var cX=cO(cW,cY);if(cX===-1){cW.push(cY)}};cW.visible=function(){var cX=0;aS(cW,function(cY){cX=cX+(aR(cY)?1:0)});return cX};this.$onEval(cg,function(){for(var cX=0;cX<cW.length;){var cY=cW[cX];if(cV(cY[0])){cW.splice(cX,1);if(cY.dealoc){cY.dealoc()}}else{cX++}}});function cV(cY){if(cY==bU.document){return false}var cX=cY.parentNode;return !cX||cV(cX)}return cW},[],bK);function bj(cW,cV,cZ){var cY="^"+cV.replace(/[\.\\\(\)\^\$]/g,"$1")+"$",c0=[],c1={};aS(cV.split(/\W/),function(c3){if(c3){var c2=new RegExp(":"+c3+"([\\W])");if(cY.match(c2)){cY=cY.replace(c2,"([^/]*)$1");c0.push(c3)}}});var cX=cW.match(new RegExp(cY));if(cX){aS(c0,function(c3,c2){c1[c3]=cX[c2+1]});if(cZ){this.$set(cZ,c1)}}return cX?c1:a6}cl("$route",function(cW){var cV={},cX=[],c1=bj,cZ=this,cY=0,c2={routes:cV,onChange:bF(cX,cX.push),when:function(c4,c5){if(aB.isUndefined(c4)){return cV}var c3=cV[c4];if(!c3){c3=cV[c4]={}}if(c5){aB.extend(c3,c5)}cY++;return c3}};function c0(){var c3;c2.current=a6;aB.foreach(cV,function(c4,c5){if(!c3){var c6=c1(cW.hashPath,c5);if(c6){c3=aB.scope(cZ);c2.current=aB.extend({},c4,{scope:c3,params:aB.extend({},cW.hashSearch,c6)})}}});aB.foreach(cX,cZ.$tryEval);if(c3){c3.$become(c2.current.controller)}}this.$watch(function(){return cY+cW.hash},c0);return c2},["$location"],bK);cl("$xhr",function(cW,cV,cY){var cX=this;return function(c2,cZ,c0,c1){if(E(c0)){c1=c0;c0=a6}if(c0&&cR(c0)){c0=cm(c0)}cW.xhr(c2,cZ,c0,function(c4,c3){try{if(ci(c3)&&/^\s*[\[\{]/.exec(c3)&&/[\}\]]\s*$/.exec(c3)){c3=Q(c3)}if(c4==200){c1(c4,c3)}else{cV({method:c2,url:cZ,data:c0,callback:c1},{status:c4,body:c3})}}catch(c5){cY.error(c5)}finally{cX.$eval()}})}},["$browser","$xhr.error","$log"]);cl("$xhr.error",function(cV){return function(cX,cW){cV.error("ERROR: XHR: "+cX.url,cX,cW)}},["$log"]);cl("$xhr.bulk",function(cW,cV,cZ){var c0=[],cY=this;function cX(c5,c1,c2,c4){if(E(c2)){c4=c2;c2=a6}var c3;aS(cX.urls,function(c6){if(E(c6.match)?c6.match(c1):c6.match.exec(c1)){c3=c6}});if(c3){if(!c3.requests){c3.requests=[]}c3.requests.push({method:c5,url:c1,data:c2,callback:c4})}else{cW(c5,c1,c2,c4)}}cX.urls={};cX.flush=function(c1){aS(cX.urls,function(c2,c3){var c4=c2.requests;if(c4&&c4.length){c2.requests=[];c2.callbacks=[];cW("POST",c3,{requests:c4},function(c6,c5){aS(c5,function(c7,c8){try{if(c7.status==200){(c4[c8].callback||j)(c7.status,c7.response)}else{cV(c4[c8],c7)}}catch(c9){cZ.error(c9)}});(c1||j)()});cY.$eval()}})};this.$onEval(cg,cX.flush);return cX},["$xhr","$xhr.error","$log"]);cl("$defer",function(cV,cW){return function(cX){cV.defer(function(){try{cX()}catch(cY){cW(cY)}})}},["$browser","$exceptionHandler"]);cl("$xhr.cache",function(cV,cY){var cZ={},cX=this;function cW(c6,c0,c1,c5,c4){if(E(c1)){c5=c1;c1=a6}if(c6=="GET"){var c3,c2;if(c2=cW.data[c0]){cY(function(){c5(200,bv(c2.value))});if(!c4){return}}if(c3=cZ[c0]){c3.callbacks.push(c5)}else{cZ[c0]={callbacks:[c5]};cW.delegate(c6,c0,c1,function(c7,c8){if(c7==200){cW.data[c0]={value:c8}}var c9=cZ[c0].callbacks;delete cZ[c0];aS(c9,function(db){try{(db||j)(c7,bv(c8))}catch(da){cX.$log.error(da)}})})}}else{cW.data={};cW.delegate(c6,c0,c1,c5)}}cW.data={};cW.delegate=cV;return cW},["$xhr.bulk","$defer"]);cl("$resource",function(cV){var cW=new bO(cV);return bF(cW,cW.route)},["$xhr.cache"]);cl("$cookies",function(cW){var cZ=this,c0={},cX={},cV;cW.addPollFn(function(){var c1=cW.cookies();if(cV!=c1){cV=c1;bv(c1,cX);bv(c1,c0);cZ.$eval()}})();this.$onEval(cg,cY);return c0;function cY(){var c2,c3,c1;for(c2 in cX){if(bB(c0[c2])){cW.cookies(c2,cS)}}for(c2 in c0){if(c0[c2]!==cX[c2]){cW.cookies(c2,c0[c2]);c1=true}}if(c1){c1=!c1;c3=cW.cookies();for(c2 in c0){if(c0[c2]!==c3[c2]){if(bB(c3[c2])){delete c0[c2]}else{c0[c2]=c3[c2]}c1=true}}if(c1){cZ.$eval()}}}},["$browser"],bK);cl("$cookieStore",function(cV){return{get:function(cW){return Q(cV[cW])},put:function(cW,cX){cV[cW]=cm(cX)},remove:function(cW){delete cV[cW]}}},["$cookies"]);Z("ng:init",function(cV){return function(cW){this.$tryEval(cV,cW)}});Z("ng:controller",function(cV){this.scope(true);return function(cX){var cW=bQ(bU,cV,true)||bQ(this,cV,true);if(!cW){throw"Can not find '"+cV+"' controller."}if(!E(cW)){throw"Reference '"+cV+"' is not a class."}this.$become(cW)}});Z("ng:eval",function(cV){return function(cW){this.$onEval(cV,cW)}});Z("ng:bind",function(cW,cV){cV.addClass("ng-binding");return function(cY){var cX=j,cZ=j;this.$onEval(function(){var c1,c5,c2,c3,c4,c0=this.hasOwnProperty(by)?this.$element:cS;this.$element=cY;c5=this.$tryEval(cW,function(c6){c1=bb(c6)});this.$element=c0;if(c3=(c5 instanceof aW)){c5=(c2=c5).html}if(cX===c5&&cZ==c1){return}c4=bJ(c5);if(!c3&&!c4&&cR(c5)){c5=cm(c5)}if(c5!=cX||c1!=cZ){cX=c5;cZ=c1;b0(cY,a,c1);if(c1){c5=c1}if(c3){cY.html(c2.get())}else{if(c4){cY.html("");cY.append(c5)}else{cY.text(c5===cS?"":c5)}}}},cY)}});var bD={};function cT(cW){var cV=bD[cW];if(!cV){var cX=[];aS(aZ(cW),function(cZ){var cY=cI(cZ);cX.push(cY?function(c1){var c0,c2=this.$tryEval(cY,function(c3){c0=cm(c3)});b0(c1,a,c0);return c0?c0:c2}:function(){return cZ})});bD[cW]=cV=function(c1){var c3=[],cY=this,cZ=this.hasOwnProperty(by)?cY.$element:cS;cY.$element=c1;for(var c0=0;c0<cX.length;c0++){var c2=cX[c0].call(cY,c1);if(bJ(c2)){c2=""}else{if(cR(c2)){c2=cm(c2,true)}}c3.push(c2)}cY.$element=cZ;return c3.join("")}}return cV}Z("ng:bind-template",function(cW,cV){cV.addClass("ng-binding");var cX=cT(cW);return function(cZ){var cY;this.$onEval(function(){var c0=cX.call(this,cZ);if(c0!=cY){cZ.text(c0);cY=c0}},cZ)}});var f={disabled:"disabled",readonly:"readOnly",checked:"checked",selected:"selected"};Z("ng:bind-attr",function(cV){return function(cY){var cX={};var cW=cY.data(ac)||j;this.$onEval(function(){var cZ=this.$eval(cV),c1=j;for(var c0 in cZ){var c3=cT(cZ[c0]).call(this,cY),c2=f[am(c0)];if(cX[c0]!==c3){cX[c0]=c3;if(c2){if(cp(c3)){cY.attr(c2,c2);cY.attr("ng-"+c2,c3)}else{cY.removeAttr(c2);cY.removeAttr("ng-"+c2)}(cY.data(bf)||j)()}else{cY.attr(c0,c3)}c1=cW}}c1()},cY)}});Z("ng:click",function(cW,cV){return function(cY){var cX=this;cY.bind("click",function(cZ){cX.$tryEval(cW,cY);cX.$root.$eval();cZ.stopPropagation()})}});Z("ng:submit",function(cW,cV){return function(cY){var cX=this;cY.bind("submit",function(cZ){cX.$tryEval(cW,cY);cX.$root.$eval();cZ.preventDefault()})}});Z("ng:watch",function(cW,cV){return function(cY){var cX=this;S(cW).watch()({addListener:function(cZ,c0){cX.$watch(cZ,function(){return c0(cX)},cY)}})}});function bE(cV){return function(cY,cW){var cX=cW[0].className+" ";return function(cZ){this.$onEval(function(){if(cV(this.$index)){var c0=this.$eval(cY);if(a9(c0)){c0=c0.join(" ")}cZ[0].className=av(cX+c0)}},cZ)}}}Z("ng:class",bE(function(){return true}));Z("ng:class-odd",bE(function(cV){return cV%2===0}));Z("ng:class-even",bE(function(cV){return cV%2===1}));Z("ng:show",function(cW,cV){return function(cX){this.$onEval(function(){cX.css(aL,cp(this.$eval(cW))?"":b)},cX)}});Z("ng:hide",function(cW,cV){return function(cX){this.$onEval(function(){cX.css(aL,cp(this.$eval(cW))?b:"")},cX)}});Z("ng:style",function(cW,cV){return function(cX){var cY=cb(cX);this.$onEval(function(){var c0=this.$eval(cW)||{},cZ,c1={};for(cZ in c0){if(cY[cZ]===cS){cY[cZ]=""}c1[cZ]=c0[cZ]}for(cZ in cY){c1[cZ]=c1[cZ]||cY[cZ]}cX.css(c1)},cX)}});function aZ(cW){var cX=[];var cY=0;var cV;while((cV=cW.indexOf("{{",cY))>-1){if(cY<cV){cX.push(cW.substr(cY,cV-cY))}cY=cV;cV=cW.indexOf("}}",cV);cV=cV<0?cW.length:cV+2;cX.push(cW.substr(cY,cV-cY));cY=cV}if(cY!=cW.length){cX.push(cW.substr(cY,cW.length-cY))}return cX.length===0?[cW]:cX}function cI(cV){var cW=cV.replace(/\n/gm," ").match(/^\{\{(.*)\}\}$/);return cW?cW[1]:a6}function cH(cV){return cV.length>1||cI(cV[0])!==a6}ag("{{}}",function(cZ,cY,cV){var c1=aZ(cZ),cW=this;if(cH(c1)){if(b4(cV[0])){cV.attr("ng:bind-template",cZ)}else{var cX=cY,c0;aS(aZ(cZ),function(c4){var c3=cI(c4);if(c3){c0=cW.element("span");c0.attr("ng:bind",c3)}else{c0=cW.text(c4)}if(at&&c4.charAt(0)==" "){c0=ck("<span>&nbsp;</span>");var c2=c0.html();c0.text(c4.substr(1));c0.html(c2+c0.html())}cX.after(c0);cX=c0});cY.remove()}}});ag("OPTION",function(cY,cX,cW){if(au(cW)=="OPTION"){var cV=r.createElement("select");cV.insertBefore(cW[0].cloneNode(true),a6);if(!cV.innerHTML.match(/<option(\s.*\s|\s)value\s*=\s*.*>.*<\/\s*option\s*>/gi)){cW.attr("value",cY)}}});var bL="ng:bind-attr";var aH={"ng:src":"src","ng:href":"href"};s("{{}}",function(cY,cW,cX){if(Z(cW)||Z("@"+cW)){return}if(at&&cW=="src"){cY=decodeURI(cY)}var cZ=aZ(cY),cV;if(cH(cZ)){cX.removeAttr(cW);cV=Q(cX.attr(bL)||"{}");cV[aH[cW]||cW]=cY;cX.attr(bL,cm(cV))}});function bN(cW,cV){var cX=cV.attr("name");if(!cX){throw"Required field 'name' not found."}return{get:function(){return cW.$eval(cX)},set:function(cY){if(cY!==cS){return cW.$tryEval(cX+"="+cm(cY),cV)}}}}function bn(cY,cX){var cV=bN(cY,cX),cZ=cX.attr("ng:format")||o,cW=l(cZ);if(!cW){throw"Formatter named '"+cZ+"' not found."}return{get:function(){return cW.format(cV.get())},set:function(c0){return cV.set(cW.parse(c0))}}}function d(cV){return S(cV).validator()()}function b1(c6,cZ){var cX=cZ.attr("ng:validate")||o,cW=d(cX),cV=cZ.attr("ng:required"),c7=cZ.attr("ng:format")||o,c5=l(c7),c4,cY,c1,c0,c3=c6.$invalidWidgets||{markValid:j,markInvalid:j};if(!cW){throw"Validator named '"+cX+"' not found."}if(!c5){throw"Formatter named '"+c7+"' not found."}c4=c5.format;cY=c5.parse;if(cV){c6.$watch(cV,function(c8){c0=c8;c2()})}else{c0=cV===""}cZ.data(bf,c2);return{get:function(){if(c1){b0(cZ,k,a6)}try{var c8=cY(cZ.val());c2();return c8}catch(c9){c1=c9;b0(cZ,k,c9)}},set:function(c9){var c8=cZ.val(),da=c4(c9);if(c8!=da){cZ.val(da||"")}c2()}};function c2(){var da=av(cZ.val());if(cZ[0].disabled||cZ[0].readOnly){b0(cZ,k,a6);c3.markValid(cZ)}else{var c9,c8=b5(c6,{$element:cZ});c9=c0&&!da?"Required":(da?cW(c8,da):a6);b0(cZ,k,c9);c1=c9;if(c9){c3.markInvalid(cZ)}else{c3.markValid(cZ)}}}}function aJ(cW,cV){var cY=cV[0],cX=cY.value;return{get:function(){return !!cY.checked},set:function(cZ){cY.checked=cp(cZ)}}}function cP(cW,cV){var cX=cV[0];return{get:function(){return cX.checked?cX.value:a6},set:function(cY){cX.checked=cY==cX.value}}}function cz(cX,cW){var cV=cW[0].options;return{get:function(){var cY=[];aS(cV,function(cZ){if(cZ.selected){cY.push(cZ.value)}});return cY},set:function(cY){var cZ={};aS(cY,function(c0){cZ[c0]=true});aS(cV,function(c0){c0.selected=cZ[c0.value]})}}}function O(){return{get:j,set:j}}var bl=bZ("keyup change",bN,b1,h()),b3=bZ("click",O,O,j),cM={text:bl,textarea:bl,hidden:bl,password:bl,button:b3,submit:b3,reset:b3,image:b3,checkbox:bZ("click",bn,aJ,h(false)),radio:bZ("click",bn,cP,ct),"select-one":bZ("change",bn,b1,h(a6)),"select-multiple":bZ("change",bn,cz,h([]))};function h(cV){return function(cX,cW){var cY=cW.get();if(!cY&&cv(cV)){cY=bv(cV)}if(bB(cX.get())&&cv(cY)){cX.set(cY)}}}function ct(cY,cV,cZ){var cX=cY.get(),c0=cV.get(),cW=cZ[0];cW.checked=false;cW.name=this.$id+"@"+cW.name;if(bB(cX)){cY.set(cX=a6)}if(cX==a6&&c0!==a6){cY.set(c0)}cV.set(cX)}function bZ(cX,cW,cV,cY){return function(c2){var c3=this,c1=cW(c3,c2),cZ=cV(c3,c2),c4=c2.attr("ng:change")||"",c0;cY.call(c3,c1,cZ,c2);this.$eval(c2.attr("ng:init")||"");if(c4||cW!==O){c2.bind(cX,function(){c1.set(cZ.get());c0=c1.get();c3.$tryEval(c4,c2);c3.$root.$eval()})}c3.$watch(c1.get,function(c5){if(c0!==c5){cZ.set(c0=c5)}})}}function X(cV){this.directives(true);return cM[am(cV[0].type)]||j}B("input",X);B("textarea",X);B("button",X);B("select",function(cV){this.descend(true);return X.call(this,cV)});B("option",function(){this.descend(true);this.directives(true);return function(cZ){var cV=cZ.parent();var c1=ae(cV);var cY=bn(c1,cV);var cW=b1(c1,cV);var c0=cZ;var cX=c0.attr(ay);var c2=c0.attr("ng-"+aA);cZ.data(ac,function(){var c5=c0.attr(ay);var c4=c0.attr("ng-"+aA);var c3=cY.get();if(c2!=c4||cX!=c5){c2=c4;cX=c5;if(c4||c3==a6||c3==cS){cY.set(c5)}if(c5==c3){cW.set(cX)}}})}});B("ng:include",function(cX){var cY=this,cW=cX.attr("src"),cZ=cX.attr("scope")||"",cV=cX[0].getAttribute("onload")||"";if(cX[0]["ng:compiled"]){this.descend(true);this.directives(true)}else{cX[0]["ng:compiled"]=true;return b7(function(c5,c2){var c4=this,c0;var c6=0;var c3=false;function c1(){c6++}this.$watch(cW,c1);this.$watch(cZ,c1);c4.$onEval(function(){if(c0&&!c3){c3=true;try{c0.$eval()}finally{c3=false}}});this.$watch(function(){return c6},function(){var c8=this.$eval(cW),c7=this.$eval(cZ);if(c8){c5("GET",c8,function(da,c9){c2.html(c9);c0=c7||bV(c4);cY.compile(c2)(c2,c0);c0.$init();c4.$eval(cV)})}else{c0=null;c2.html("")}})},{$inject:["$xhr.cache"]})}});var m=B("ng:switch",function(cZ){var c0=this,cY=cZ.attr("on"),c2=(cZ.attr("using")||"equals"),cV=c2.split(":"),cW=m[cV.shift()],cX=cZ.attr("change")||"",c1=[];if(!cW){throw"Using expression '"+c2+"' unknown."}if(!cY){throw"Missing 'on' attribute."}aX(cZ,function(c5){var c3=c5.attr("ng:switch-when");var c4={change:cX,element:c5,template:c0.compile(c5)};if(ci(c3)){c4.when=function(c7,c8){var c6=[c8,c3];aS(cV,function(c9){c6.push(c9)});return cW.apply(c7,c6)};c1.unshift(c4)}else{if(ci(c5.attr("ng:switch-default"))){c4.when=cr(true);c1.push(c4)}}});aS(c1,function(c3){c3.element.remove()});cZ.html("");return function(c4){var c5=this,c3;this.$watch(cY,function(c7){var c6=false;c4.html("");c3=bV(c5);aS(c1,function(c8){if(!c6&&c8.when(c3,c7)){c6=true;var c9=A(c8.element);c4.append(c9);c3.$tryEval(c8.change,c4);c8.template(c9,c3);c3.$init()}})});c5.$onEval(function(){if(c3){c3.$eval()}})}},{equals:function(cW,cV){return""+cW==cV},route:bj});B("a",function(){this.descend(true);this.directives(true);return function(cV){if(cV.attr("href")===""){cV.bind("click",function(cW){cW.preventDefault()})}}});B("@ng:repeat",function(cX,cV){cV.removeAttr("ng:repeat");cV.replaceWith(this.comment("ng:repeat: "+cX));var cW=this.compile(cV);return function(cY){var c2=cX.match(/^\s*(.+)\s+in\s+(.*)\s*$/),cZ,c5,c0,c4;if(!c2){throw cK("Expected ng:repeat in form of 'item in collection' but got '"+cX+"'.")}cZ=c2[1];c5=c2[2];c2=cZ.match(/^([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\)$/);if(!c2){throw cK("'item' in 'item in collection' should be identifier or (key, value) but got '"+keyValue+"'.")}c0=c2[3]||c2[1];c4=c2[2];var c3=[],c1=this;this.$onEval(function(){var c8=0,c7=c3.length,dd=cY,dc=this.$tryEval(c5,cY),da=a9(dc),db=0,c6,c9;if(da){db=dc.length}else{for(c9 in dc){if(dc.hasOwnProperty(c9)){db++}}}for(c9 in dc){if(!da||dc.hasOwnProperty(c9)){if(c8<c7){c6=c3[c8];c6[c0]=dc[c9];if(c4){c6[c4]=c9}}else{c6=cW(A(cV),bV(c1));c6[c0]=dc[c9];if(c4){c6[c4]=c9}dd.after(c6.$element);c6.$index=c8;c6.$position=c8==0?"first":(c8==db-1?"last":"middle");c6.$element.attr("ng:repeat-index",c8);c6.$init();c3.push(c6)}c6.$eval();dd=c6.$element;c8++}}while(c3.length>c8){c3.pop().$element.remove()}},cY)}});B("@ng:non-bindable",j);var cj;bs("$browser",function(cV){if(!cj){cj=new aO(bU.location,ck(bU.document),ck(bU.document.getElementsByTagName("head")[0]),L,cV,bU.setTimeout);cj.startPoller(50,function(cW,cX){setTimeout(cW,cX)});cj.bind()}return cj},{inject:["$log"]});b7(aB,{element:ck,compile:a2,scope:bV,copy:bv,extend:b7,equals:p,foreach:aS,injector:bY,noop:j,bind:bF,toJson:cm,fromJson:Q,identity:aG,isUndefined:bB,isDefined:cv,isString:ci,isFunction:E,isObject:cR,isNumber:aU,isArray:a9});aB.scenario=aB.scenario||{};aB.scenario.output=aB.scenario.output||function(cV,cW){aB.scenario.output[cV]=cW};aB.scenario.dsl=aB.scenario.dsl||function(cV,cW){aB.scenario.dsl[cV]=function(){function cX(c3,c1){var cZ=c3.apply(this,c1);if(aB.isFunction(cZ)||cZ instanceof aB.scenario.Future){return cZ}var c0=this;var c2=aB.extend({},cZ);aB.foreach(c2,function(c5,c4){if(aB.isFunction(c5)){c2[c4]=function(){return cX.call(c0,c5,arguments)}}else{c2[c4]=c5}});return c2}var cY=cW.apply(this,arguments);return function(){return cX.call(this,cY,arguments)}}};aB.scenario.matcher=aB.scenario.matcher||function(cV,cW){aB.scenario.matcher[cV]=function(cY){var cZ="expect "+this.future.name+" ";if(this.inverse){cZ+="not "}var cX=this;this.addFuture(cZ+cV+" "+aB.toJson(cY),function(c0){var c1;cX.actual=cX.future.value;if((cX.inverse&&cW.call(cX,cY))||(!cX.inverse&&!cW.call(cX,cY))){c1="expected "+aB.toJson(cY)+" but was "+aB.toJson(cX.actual)}c0(c1)})}};function i(c0,cZ){var cX=bU.location.href;var cV=b8(r.body);var cW=[];if(cZ.scenario_output){cW=cZ.scenario_output.split(",")}aB.foreach(aB.scenario.output,function(c4,c2){if(!cW.length||cO(cW,c2)!=-1){var c3=cV.append("<div></div>").find("div:last");c3.attr("id",c2);c4.call({},c3,c0)}});if(!/^http/.test(cX)&&!/^https/.test(cX)){cV.append('<p id="system-error"></p>');cV.find("#system-error").text("Scenario runner must be run using http or https. The protocol "+cX.split(":")[0]+":// is not supported.");return}var c1=cV.append('<div id="application"></div>').find("#application");var cY=new aB.scenario.Application(c1);c0.on("RunnerEnd",function(){c1.css("display","none");c1.find("iframe").attr("src","about:blank")});c0.on("RunnerError",function(c2){if(bU.console){console.log(V(c2))}else{alert(c2)}});c0.run(cY)}function W(cZ,cY,cW){var cX=0;function cV(c1,c0){if(c0&&c0>cX){cX=c0}if(c1||cX>=cZ.length){cW(c1)}else{try{cY(cZ[cX++],cV)}catch(c2){cW(c2)}}}cV()}function V(cW,cX){cX=cX||5;var cY=cW.toString();if(cW.stack){var cV=cW.stack.split("\n");if(cV[0].indexOf(cY)===-1){cX++;cV.unshift(cW.message)}cY=cV.slice(0,cX).join("\n")}return cY}function x(cW){var cV=new cK();return function(){var cX=(cV.stack||"").split("\n")[cW];if(cX){if(cX.indexOf("@")!==-1){cX=cX.substring(cX.indexOf("@")+1)}else{cX=cX.substring(cX.indexOf("(")+1).replace(")","")}}return cX||""}}function c(cV,cW){if(cV&&!cV.nodeName){cV=cV[0]}if(!cV){return}if(!cW){cW={text:"change",textarea:"change",hidden:"change",password:"change",button:"click",submit:"click",reset:"click",image:"click",checkbox:"click",radio:"click","select-one":"change","select-multiple":"change"}[cV.type]||"click"}if(am(au(cV))=="option"){cV.parentNode.value=cV.value;cV=cV.parentNode;cW="change"}if(at){switch(cV.type){case"radio":case"checkbox":cV.checked=!cV.checked;break}cV.fireEvent("on"+cW);if(am(cV.type)=="submit"){while(cV){if(am(cV.nodeName)=="form"){cV.fireEvent("onsubmit");break}cV=cV.parentNode}}}else{var cX=r.createEvent("MouseEvents");cX.initMouseEvent(cW,true,true,bU,0,0,0,0,0,false,false,false,false,0,cV);cV.dispatchEvent(cX)}}(function(cW){var cV=cW.trigger;cW.trigger=function(cX){if(/(click|change|keyup)/.test(cX)){return this.each(function(cY,cZ){c(cZ,cX)})}return cV.apply(this,arguments)}})(b8.fn);b8.fn.bindings=function(cW){function cX(cZ,cY){return cY instanceof RegExp?cY.test(cZ):cZ&&cZ.indexOf(cY)>=0}var cV=[];this.find(".ng-binding:visible").each(function(){var cY=new b8(this);if(!aB.isDefined(cW)||cX(cY.attr("ng:bind"),cW)||cX(cY.attr("ng:bind-template"),cW)){if(cY.is("input, textarea")){cV.push(cY.val())}else{cV.push(cY.html())}}});return cV};aB.scenario.Application=function(cV){this.context=cV;cV.append('<h2>Current URL: <a href="about:blank">None</a></h2><div id="test-frames"></div>')};aB.scenario.Application.prototype.getFrame_=function(){return this.context.find("#test-frames iframe:last")};aB.scenario.Application.prototype.getWindow_=function(){var cV=this.getFrame_().attr("contentWindow");if(!cV){throw"Frame window is not accessible."}return cV};aB.scenario.Application.prototype.checkUrlStatus_=function(cW,cX){var cV=this;b8.ajax({url:cW,type:"HEAD",complete:function(cY){if(cY.status<200||cY.status>=300){if(!cY.status){cX.call(cV,"Sandbox Error: Cannot access "+cW)}else{cX.call(cV,cY.status+" "+cY.statusText)}}else{cX.call(cV)}}})};aB.scenario.Application.prototype.navigateTo=function(cW,cX,cZ){var cV=this;var cY=this.getFrame_();cZ=cZ||function(c0){throw c0};if(cW==="about:blank"){cZ("Sandbox Error: Navigating to about:blank is not allowed.")}else{if(cW.charAt(0)==="#"){cW=cY.attr("src").split("#")[0]+cW;cY.attr("src",cW);this.executeAction(cX)}else{cY.css("display","none").attr("src","about:blank");this.checkUrlStatus_(cW,function(c0){if(c0){return cZ(c0)}cV.context.find("#test-frames").append("<iframe>");cY=this.getFrame_();cY.load(function(){cY.unbind();try{cV.executeAction(cX)}catch(c1){cZ(c1)}}).attr("src",cW)})}}this.context.find("> h2 a").attr("href",cW).text(cW)};aB.scenario.Application.prototype.executeAction=function(cX){var cW=this;var cY=this.getWindow_();if(!cY.document){throw"Sandbox Error: Application document not accessible."}if(!cY.angular){return cX.call(this,cY,b8(cY.document))}var cV=cY.angular.service.$browser();cV.poll();cV.notifyWhenNoOutstandingRequests(function(){cX.call(cW,cY,b8(cY.document))})};aB.scenario.Describe=function(cW,cY){this.only=cY&&cY.only;this.beforeEachFns=[];this.afterEachFns=[];this.its=[];this.children=[];this.name=cW;this.parent=cY;this.id=aB.scenario.Describe.id++;var cV=this.beforeEachFns;this.setupBefore=function(){if(cY){cY.setupBefore.call(this)}aB.foreach(cV,function(cZ){cZ.call(this)},this)};var cX=this.afterEachFns;this.setupAfter=function(){aB.foreach(cX,function(cZ){cZ.call(this)},this);if(cY){cY.setupAfter.call(this)}}};aB.scenario.Describe.id=0;aB.scenario.Describe.prototype.beforeEach=function(cV){this.beforeEachFns.push(cV)};aB.scenario.Describe.prototype.afterEach=function(cV){this.afterEachFns.push(cV)};aB.scenario.Describe.prototype.describe=function(cW,cV){var cX=new aB.scenario.Describe(cW,this);this.children.push(cX);cV.call(cX)};aB.scenario.Describe.prototype.ddescribe=function(cW,cV){var cX=new aB.scenario.Describe(cW,this);cX.only=true;this.children.push(cX);cV.call(cX)};aB.scenario.Describe.prototype.xdescribe=aB.noop;aB.scenario.Describe.prototype.it=function(cW,cV){this.its.push({definition:this,only:this.only,name:cW,before:this.setupBefore,body:cV,after:this.setupAfter})};aB.scenario.Describe.prototype.iit=function(cW,cV){this.it.apply(this,arguments);this.its[this.its.length-1].only=true};aB.scenario.Describe.prototype.xit=aB.noop;aB.scenario.Describe.prototype.getSpecs=function(){var cW=arguments[0]||[];aB.foreach(this.children,function(cX){cX.getSpecs(cW)});aB.foreach(this.its,function(cX){cW.push(cX)});var cV=[];aB.foreach(cW,function(cX){if(cX.only){cV.push(cX)}});return(cV.length&&cV)||cW};aB.scenario.Future=function(cW,cX,cV){this.name=cW;this.behavior=cX;this.fulfilled=false;this.value=undefined;this.parser=aB.identity;this.line=cV||function(){return""}};aB.scenario.Future.prototype.execute=function(cW){var cV=this;this.behavior(function(cY,cX){cV.fulfilled=true;if(cX){try{cX=cV.parser(cX)}catch(cZ){cY=cZ}}cV.value=cY||cX;cW(cY,cX)})};aB.scenario.Future.prototype.parsedWith=function(cV){this.parser=cV;return this};aB.scenario.Future.prototype.fromJson=function(){return this.parsedWith(aB.fromJson)};aB.scenario.Future.prototype.toJson=function(){return this.parsedWith(aB.toJson)};aB.scenario.ObjectModel=function(cX){var cW=this;this.specMap={};this.value={name:"",children:{}};cX.on("SpecBegin",function(cY){var cZ=cW.value;aB.foreach(cW.getDefinitionPath(cY),function(c0){if(!cZ.children[c0.name]){cZ.children[c0.name]={id:c0.id,name:c0.name,children:{},specs:{}}}cZ=cZ.children[c0.name]});cW.specMap[cY.id]=cZ.specs[cY.name]=new aB.scenario.ObjectModel.Spec(cY.id,cY.name)});cX.on("SpecError",function(cY,cZ){var c0=cW.getSpec(cY.id);c0.status="error";c0.error=cZ});cX.on("SpecEnd",function(cY){var cZ=cW.getSpec(cY.id);cV(cZ)});cX.on("StepBegin",function(cY,c0){var cZ=cW.getSpec(cY.id);cZ.steps.push(new aB.scenario.ObjectModel.Step(c0.name))});cX.on("StepEnd",function(cY,c0){var cZ=cW.getSpec(cY.id);if(cZ.getLastStep().name!==c0.name){throw"Events fired in the wrong order. Step names don' match."}cV(cZ.getLastStep())});cX.on("StepFailure",function(cY,c2,cZ){var c0=cW.getSpec(cY.id);var c1=c0.getLastStep();c1.error=cZ;if(!c0.status){c0.status=c1.status="failure"}});cX.on("StepError",function(cY,c2,cZ){var c0=cW.getSpec(cY.id);var c1=c0.getLastStep();c0.status="error";c1.status="error";c1.error=cZ});function cV(cY){cY.endTime=new Date().getTime();cY.duration=cY.endTime-cY.startTime;cY.status=cY.status||"success"}};aB.scenario.ObjectModel.prototype.getDefinitionPath=function(cV){var cX=[];var cW=cV.definition;while(cW&&cW.name){cX.unshift(cW);cW=cW.parent}return cX};aB.scenario.ObjectModel.prototype.getSpec=function(cV){return this.specMap[cV]};aB.scenario.ObjectModel.Spec=function(cW,cV){this.id=cW;this.name=cV;this.startTime=new Date().getTime();this.steps=[]};aB.scenario.ObjectModel.Spec.prototype.addStep=function(cV){var cW=new aB.scenario.ObjectModel.Step(cV);this.steps.push(cW);return cW};aB.scenario.ObjectModel.Spec.prototype.getLastStep=function(){return this.steps[this.steps.length-1]};aB.scenario.ObjectModel.Step=function(cV){this.name=cV;this.startTime=new Date().getTime()};aB.scenario.Describe=function(cW,cY){this.only=cY&&cY.only;this.beforeEachFns=[];this.afterEachFns=[];this.its=[];this.children=[];this.name=cW;this.parent=cY;this.id=aB.scenario.Describe.id++;var cV=this.beforeEachFns;this.setupBefore=function(){if(cY){cY.setupBefore.call(this)}aB.foreach(cV,function(cZ){cZ.call(this)},this)};var cX=this.afterEachFns;this.setupAfter=function(){aB.foreach(cX,function(cZ){cZ.call(this)},this);if(cY){cY.setupAfter.call(this)}}};aB.scenario.Describe.id=0;aB.scenario.Describe.prototype.beforeEach=function(cV){this.beforeEachFns.push(cV)};aB.scenario.Describe.prototype.afterEach=function(cV){this.afterEachFns.push(cV)};aB.scenario.Describe.prototype.describe=function(cW,cV){var cX=new aB.scenario.Describe(cW,this);this.children.push(cX);cV.call(cX)};aB.scenario.Describe.prototype.ddescribe=function(cW,cV){var cX=new aB.scenario.Describe(cW,this);cX.only=true;this.children.push(cX);cV.call(cX)};aB.scenario.Describe.prototype.xdescribe=aB.noop;aB.scenario.Describe.prototype.it=function(cW,cV){this.its.push({definition:this,only:this.only,name:cW,before:this.setupBefore,body:cV,after:this.setupAfter})};aB.scenario.Describe.prototype.iit=function(cW,cV){this.it.apply(this,arguments);this.its[this.its.length-1].only=true};aB.scenario.Describe.prototype.xit=aB.noop;aB.scenario.Describe.prototype.getSpecs=function(){var cW=arguments[0]||[];aB.foreach(this.children,function(cX){cX.getSpecs(cW)});aB.foreach(this.its,function(cX){cW.push(cX)});var cV=[];aB.foreach(cW,function(cX){if(cX.only){cV.push(cX)}});return(cV.length&&cV)||cW};aB.scenario.Runner=function(cV){this.listeners=[];this.$window=cV;this.rootDescribe=new aB.scenario.Describe();this.currentDescribe=this.rootDescribe;this.api={it:this.it,iit:this.iit,xit:aB.noop,describe:this.describe,ddescribe:this.ddescribe,xdescribe:aB.noop,beforeEach:this.beforeEach,afterEach:this.afterEach};aB.foreach(this.api,aB.bind(this,function(cX,cW){this.$window[cW]=aB.bind(this,cX)}))};aB.scenario.Runner.prototype.emit=function(cW){var cV=this;var cX=Array.prototype.slice.call(arguments,1);cW=cW.toLowerCase();if(!this.listeners[cW]){return}aB.foreach(this.listeners[cW],function(cY){cY.apply(cV,cX)})};aB.scenario.Runner.prototype.on=function(cV,cW){cV=cV.toLowerCase();this.listeners[cV]=this.listeners[cV]||[];this.listeners[cV].push(cW)};aB.scenario.Runner.prototype.describe=function(cX,cV){var cW=this;this.currentDescribe.describe(cX,function(){var cY=cW.currentDescribe;cW.currentDescribe=this;try{cV.call(this)}finally{cW.currentDescribe=cY}})};aB.scenario.Runner.prototype.ddescribe=function(cX,cV){var cW=this;this.currentDescribe.ddescribe(cX,function(){var cY=cW.currentDescribe;cW.currentDescribe=this;try{cV.call(this)}finally{cW.currentDescribe=cY}})};aB.scenario.Runner.prototype.it=function(cW,cV){this.currentDescribe.it(cW,cV)};aB.scenario.Runner.prototype.iit=function(cW,cV){this.currentDescribe.iit(cW,cV)};aB.scenario.Runner.prototype.beforeEach=function(cV){this.currentDescribe.beforeEach(cV)};aB.scenario.Runner.prototype.afterEach=function(cV){this.currentDescribe.afterEach(cV)};aB.scenario.Runner.prototype.createSpecRunner_=function(cV){return cV.$new(aB.scenario.SpecRunner)};aB.scenario.Runner.prototype.run=function(cW){var cV=this;var cX=aB.scope(this);cX.application=cW;this.emit("RunnerBegin");W(this.rootDescribe.getSpecs(),function(cY,c1){var cZ={};var c0=cV.createSpecRunner_(cX);aB.foreach(aB.scenario.dsl,function(c3,c2){cZ[c2]=c3.call(cX)});aB.foreach(aB.scenario.dsl,function(c3,c2){cV.$window[c2]=function(){var c4=x(3);var c5=aB.scope(c0);c5.dsl={};aB.foreach(cZ,function(c7,c6){c5.dsl[c6]=function(){return cZ[c6].apply(c5,arguments)}});c5.addFuture=function(){Array.prototype.push.call(arguments,c4);return aB.scenario.SpecRunner.prototype.addFuture.apply(c5,arguments)};c5.addFutureAction=function(){Array.prototype.push.call(arguments,c4);return aB.scenario.SpecRunner.prototype.addFutureAction.apply(c5,arguments)};return c5.dsl[c2].apply(c5,arguments)}});c0.run(cY,c1)},function(cY){if(cY){cV.emit("RunnerError",cY)}cV.emit("RunnerEnd")})};aB.scenario.SpecRunner=function(){this.futures=[];this.afterIndex=0};aB.scenario.SpecRunner.prototype.run=function(cW,cY){var cV=this;this.spec=cW;this.emit("SpecBegin",cW);try{cW.before.call(this);cW.body.call(this);this.afterIndex=this.futures.length;cW.after.call(this)}catch(cX){this.emit("SpecError",cW,cX);this.emit("SpecEnd",cW);cY();return}var cZ=function(c1,c0){if(cV.error){return c0()}cV.error=true;c0(null,cV.afterIndex)};W(this.futures,function(c0,c1){cV.step=c0;cV.emit("StepBegin",cW,c0);try{c0.execute(function(c3){if(c3){cV.emit("StepFailure",cW,c0,c3);cV.emit("StepEnd",cW,c0);return cZ(c3,c1)}cV.emit("StepEnd",cW,c0);cV.$window.setTimeout(function(){c1()},0)})}catch(c2){cV.emit("StepError",cW,c0,c2);cV.emit("StepEnd",cW,c0);cZ(c2,c1)}},function(c0){if(c0){cV.emit("SpecError",cW,c0)}cV.emit("SpecEnd",cW);cV.$window.setTimeout(function(){cY()},0)})};aB.scenario.SpecRunner.prototype.addFuture=function(cX,cY,cW){var cV=new aB.scenario.Future(cX,aB.bind(this,cY),cW);this.futures.push(cV);return cV};aB.scenario.SpecRunner.prototype.addFutureAction=function(cX,cY,cV){var cW=this;return this.addFuture(cX,function(cZ){this.application.executeAction(function(c2,c1){c1.elements=function(c4){var c5=Array.prototype.slice.call(arguments,1);c4=(cW.selector||"")+" "+(c4||"");c4=b8.trim(c4)||"*";aB.foreach(c5,function(c7,c6){c4=c4.replace("$"+(c6+1),c7)});var c3=c1.find(c4);if(!c3.length){throw {type:"selector",message:"Selector "+c4+" did not match any elements."}}return c3};try{cY.call(cW,c2,c1,cZ)}catch(c0){if(c0.type&&c0.type==="selector"){cZ(c0.message)}else{throw c0}}})},cV)};aB.scenario.dsl("wait",function(){return function(){return this.addFuture("waiting for you to resume",function(cV){this.emit("InteractiveWait",this.spec,this.step);this.$window.resume=function(){cV()}})}});aB.scenario.dsl("pause",function(){return function(cV){return this.addFuture("pause for "+cV+" seconds",function(cW){this.$window.setTimeout(function(){cW(null,cV*1000)},cV*1000)})}});aB.scenario.dsl("browser",function(){var cV={};cV.navigateTo=function(cX,cY){var cW=this.application;return this.addFuture("browser navigate to '"+cX+"'",function(cZ){if(cY){cX=cY.call(this,cX)}cW.navigateTo(cX,function(){cZ(null,cX)},cZ)})};cV.reload=function(){var cW=this.application;return this.addFutureAction("browser reload",function(c0,cZ,cX){var cY=c0.location.href;cW.navigateTo(cY,function(){cX(null,cY)},cX)})};cV.location=function(){var cW={};cW.href=function(){return this.addFutureAction("browser url",function(cZ,cY,cX){cX(null,cZ.location.href)})};cW.hash=function(){return this.addFutureAction("browser url hash",function(cZ,cY,cX){cX(null,cZ.location.hash.replace("#",""))})};cW.path=function(){return this.addFutureAction("browser url path",function(cZ,cY,cX){cX(null,cZ.location.pathname)})};cW.search=function(){return this.addFutureAction("browser url search",function(cZ,cY,cX){cX(null,cZ.angular.scope().$location.search)})};cW.hashSearch=function(){return this.addFutureAction("browser url hash search",function(cZ,cY,cX){cX(null,cZ.angular.scope().$location.hashSearch)})};cW.hashPath=function(){return this.addFutureAction("browser url hash path",function(cZ,cY,cX){cX(null,cZ.angular.scope().$location.hashPath)})};return cW};return function(cW){return cV}});aB.scenario.dsl("expect",function(){var cV=aB.extend({},aB.scenario.matcher);cV.not=function(){this.inverse=true;return cV};return function(cW){this.future=cW;return cV}});aB.scenario.dsl("using",function(){return function(cV,cW){this.selector=b8.trim((this.selector||"")+" "+cV);if(aB.isString(cW)&&cW.length){this.label=cW+" ( "+this.selector+" )"}else{this.label=this.selector}return this.dsl}});aB.scenario.dsl("binding",function(){return function(cV){return this.addFutureAction("select binding '"+cV+"'",function(cZ,cY,cW){var cX=cY.elements().bindings(cV);if(!cX.length){return cW("Binding selector '"+cV+"' did not match.")}cW(null,cX[0])})}});aB.scenario.dsl("input",function(){var cV={};cV.enter=function(cW){return this.addFutureAction("input '"+this.name+"' enter '"+cW+"'",function(c0,cZ,cX){var cY=cZ.elements(':input[name="$1"]',this.name);cY.val(cW);cY.trigger("change");cX()})};cV.check=function(){return this.addFutureAction("checkbox '"+this.name+"' toggle",function(cZ,cY,cW){var cX=cY.elements(':checkbox[name="$1"]',this.name);cX.trigger("click");cW()})};cV.select=function(cW){return this.addFutureAction("radio button '"+this.name+"' toggle '"+cW+"'",function(c0,cZ,cX){var cY=cZ.elements(':radio[name$="@$1"][value="$2"]',this.name,cW);cY.trigger("click");cX()})};return function(cW){this.name=cW;return cV}});aB.scenario.dsl("repeater",function(){var cV={};cV.count=function(){return this.addFutureAction("repeater '"+this.label+"' count",function(cZ,cY,cW){try{cW(null,cY.elements().length)}catch(cX){cW(null,0)}})};cV.column=function(cW){return this.addFutureAction("repeater '"+this.label+"' column '"+cW+"'",function(cZ,cY,cX){cX(null,cY.elements().bindings(cW))})};cV.row=function(cW){return this.addFutureAction("repeater '"+this.label+"' row '"+cW+"'",function(c1,c0,cX){var cY=[];var cZ=c0.elements().slice(cW,cW+1);if(!cZ.length){return cX("row "+cW+" out of bounds")}cX(null,cZ.bindings())})};return function(cW,cX){this.dsl.using(cW,cX);return cV}});aB.scenario.dsl("select",function(){var cV={};cV.option=function(cW){return this.addFutureAction("select '"+this.name+"' option '"+cW+"'",function(c0,cZ,cY){var cX=cZ.elements('select[name="$1"]',this.name);cX.val(cW);cX.trigger("change");cY()})};cV.options=function(){var cW=arguments;return this.addFutureAction("select '"+this.name+"' options '"+cW+"'",function(c0,cZ,cY){var cX=cZ.elements('select[multiple][name="$1"]',this.name);cX.val(cW);cX.trigger("change");cY()})};return function(cW){this.name=cW;return cV}});aB.scenario.dsl("element",function(){var cV=["attr","css"];var cX=["val","text","html","height","innerHeight","outerHeight","width","innerWidth","outerWidth","position","scrollLeft","scrollTop","offset"];var cW={};cW.count=function(){return this.addFutureAction("element '"+this.label+"' count",function(c1,c0,cY){try{cY(null,c0.elements().length)}catch(cZ){cY(null,0)}})};cW.click=function(){return this.addFutureAction("element '"+this.label+"' click",function(c2,c1,cY){var c0=c1.elements();var cZ=c0.attr("href");c0.trigger("click");if(cZ&&c0[0].nodeName.toUpperCase()==="A"){this.application.navigateTo(cZ,function(){cY()},cY)}else{cY()}})};cW.query=function(cY){return this.addFutureAction("element "+this.label+" custom query",function(c1,c0,cZ){cY.call(this,c0.elements(),cZ)})};aB.foreach(cV,function(cY){cW[cY]=function(cZ,c1){var c0="element '"+this.label+"' get "+cY+" '"+cZ+"'";if(aB.isDefined(c1)){c0="element '"+this.label+"' set "+cY+" '"+cZ+"' to '"+c1+"'"}return this.addFutureAction(c0,function(c5,c4,c2){var c3=c4.elements();c2(null,c3[cY].call(c3,cZ,c1))})}});aB.foreach(cX,function(cY){cW[cY]=function(c0){var cZ="element '"+this.label+"' "+cY;if(aB.isDefined(c0)){cZ="element '"+this.label+"' set "+cY+" to '"+c0+"'"}return this.addFutureAction(cZ,function(c4,c3,c1){var c2=c3.elements();c1(null,c2[cY].call(c2,c0))})}});return function(cY,cZ){this.dsl.using(cY,cZ);return cW}});aB.scenario.matcher("toEqual",function(cV){return aB.equals(this.actual,cV)});aB.scenario.matcher("toBe",function(cV){return this.actual===cV});aB.scenario.matcher("toBeDefined",function(){return aB.isDefined(this.actual)});aB.scenario.matcher("toBeTruthy",function(){return this.actual});aB.scenario.matcher("toBeFalsy",function(){return !this.actual});aB.scenario.matcher("toMatch",function(cV){return new RegExp(cV).test(this.actual)});aB.scenario.matcher("toBeNull",function(){return this.actual===null});aB.scenario.matcher("toContain",function(cV){return u(this.actual,cV)});aB.scenario.matcher("toBeLessThan",function(cV){return this.actual<cV});aB.scenario.matcher("toBeGreaterThan",function(cV){return this.actual>cV});aB.scenario.output("html",function(cY,c0){var cX=new aB.scenario.ObjectModel(c0);cY.append('<div id="header"> <h1><span class="angular">&lt;angular/&gt;</span>: Scenario Test Runner</h1> <ul id="status-legend" class="status-display"> <li class="status-error">0 Errors</li> <li class="status-failure">0 Failures</li> <li class="status-success">0 Passed</li> </ul></div><div id="specs"> <div class="test-children"></div></div>');c0.on("InteractiveWait",function(c1,c2){var c3=cX.getSpec(c1.id).getLastStep().ui;c3.find(".test-title").html('waiting for you to <a href="javascript:resume()">resume</a>.')});c0.on("SpecBegin",function(c1){var c2=cZ(c1);c2.find("> .tests").append('<li class="status-pending test-it"></li>');c2=c2.find("> .tests li:last");c2.append('<div class="test-info"> <p class="test-title"> <span class="timer-result"></span> <span class="test-name"></span> </p></div><div class="scrollpane"> <ol class="test-actions"></ol></div>');c2.find("> .test-info .test-name").text(c1.name);c2.find("> .test-info").click(function(){var c4=c2.find("> .scrollpane");var c5=c4.find("> .test-actions");var c3=cY.find("> .test-info .test-name");if(c5.find(":visible").length){c5.hide();c3.removeClass("open").addClass("closed")}else{c5.show();c4.attr("scrollTop",c4.attr("scrollHeight"));c3.removeClass("closed").addClass("open")}});cX.getSpec(c1.id).ui=c2});c0.on("SpecError",function(c1,c2){var c3=cX.getSpec(c1.id).ui;c3.append("<pre></pre>");c3.find("> pre").text(V(c2))});c0.on("SpecEnd",function(c1){c1=cX.getSpec(c1.id);c1.ui.removeClass("status-pending");c1.ui.addClass("status-"+c1.status);c1.ui.find("> .test-info .timer-result").text(c1.duration+"ms");if(c1.status==="success"){c1.ui.find("> .test-info .test-name").addClass("closed");c1.ui.find("> .scrollpane .test-actions").hide()}cW(c1.status)});c0.on("StepBegin",function(c1,c3){c1=cX.getSpec(c1.id);c3=c1.getLastStep();c1.ui.find("> .scrollpane .test-actions").append('<li class="status-pending"></li>');c3.ui=c1.ui.find("> .scrollpane .test-actions li:last");c3.ui.append('<div class="timer-result"></div><div class="test-title"></div>');c3.ui.find("> .test-title").text(c3.name);var c2=c3.ui.parents(".scrollpane");c2.attr("scrollTop",c2.attr("scrollHeight"))});c0.on("StepFailure",function(c1,c3,c2){var c4=cX.getSpec(c1.id).getLastStep().ui;cV(c4,c3.line,c2)});c0.on("StepError",function(c1,c3,c2){var c4=cX.getSpec(c1.id).getLastStep().ui;cV(c4,c3.line,c2)});c0.on("StepEnd",function(c1,c3){c1=cX.getSpec(c1.id);c3=c1.getLastStep();c3.ui.find(".timer-result").text(c3.duration+"ms");c3.ui.removeClass("status-pending");c3.ui.addClass("status-"+c3.status);var c2=c1.ui.find("> .scrollpane");c2.attr("scrollTop",c2.attr("scrollHeight"))});function cZ(c1){var c2=cY.find("#specs");aB.foreach(cX.getDefinitionPath(c1),function(c3){var c4="describe-"+c3.id;if(!cY.find("#"+c4).length){c2.find("> .test-children").append('<div class="test-describe" id="'+c4+'"> <h2></h2> <div class="test-children"></div> <ul class="tests"></ul></div>');cY.find("#"+c4).find("> h2").text("describe: "+c3.name)}c2=cY.find("#"+c4)});return cY.find("#describe-"+c1.definition.id)}function cW(c1){var c2=cY.find("#status-legend .status-"+c1);var c4=c2.text().split(" ");var c3=(c4[0]*1)+1;c2.text(c3+" "+c4[1])}function cV(c3,c1,c2){c3.find(".test-title").append("<pre></pre>");var c4=b8.trim(c1()+"\n\n"+V(c2));c3.find(".test-title pre:last").text(c4)}});aB.scenario.output("json",function(cW,cX){var cV=new aB.scenario.ObjectModel(cX);cX.on("RunnerEnd",function(){cW.text(aB.toJson(cV.value))})});aB.scenario.output("xml",function(cW,cY){var cV=new aB.scenario.ObjectModel(cY);var cZ=function(c0){return new cW.init(c0)};cY.on("RunnerEnd",function(){var c0=cZ("<scenario></scenario>");cW.append(c0);cX(c0,cV.value)});function cX(c2,c0){aB.foreach(c0.children,function(c4){var c3=cZ("<describe></describe>");c3.attr("id",c4.id);c3.attr("name",c4.name);c2.append(c3);cX(c3,c4)});var c1=cZ("<its></its>");c2.append(c1);aB.foreach(c0.specs,function(c3){var c4=cZ("<it></it>");c4.attr("id",c3.id);c4.attr("name",c3.name);c4.attr("duration",c3.duration);c4.attr("status",c3.status);c1.append(c4);aB.foreach(c3.steps,function(c7){var c6=cZ("<step></step>");c6.attr("name",c7.name);c6.attr("duration",c7.duration);c6.attr("status",c7.status);c4.append(c6);if(c7.error){var c5=cZ("<error></error");c6.append(c5);c5.text(V(c6.error))}})})}});aB.scenario.output("object",function(cV,cW){cW.$window.$result=new aB.scenario.ObjectModel(cW).value});var ak=new aB.scenario.Runner(bU);bU.onload=function(){try{if(bi){bi()}}catch(cV){}i(ak,bH(r))}})(window,document,window.onload);document.write('<style type="text/css">@charset "UTF-8";\n\n.ng-format-negative {\n color: red;\n}\n\n.ng-exception {\n border: 2px solid #FF0000;\n font-family: "Courier New", Courier, monospace;\n font-size: smaller;\n white-space: pre;\n}\n\n.ng-validation-error {\n border: 2px solid #FF0000;\n}\n\n\n/*****************\n * TIP\n *****************/\n#ng-callout {\n margin: 0;\n padding: 0;\n border: 0;\n outline: 0;\n font-size: 13px;\n font-weight: normal;\n font-family: Verdana, Arial, Helvetica, sans-serif;\n vertical-align: baseline;\n background: transparent;\n text-decoration: none;\n}\n\n#ng-callout .ng-arrow-left{\n background-image: url("data:image/gif;base64,R0lGODlhCwAXAKIAAMzMzO/v7/f39////////wAAAAAAAAAAACH5BAUUAAQALAAAAAALABcAAAMrSLoc/AG8FeUUIN+sGebWAnbKSJodqqlsOxJtqYooU9vvk+vcJIcTkg+QAAA7");\n background-repeat: no-repeat;\n background-position: left top;\n position: absolute;\n z-index:101;\n left:-12px;\n height:23px;\n width:10px;\n top:-3px;\n}\n\n#ng-callout .ng-arrow-right{\n background-image: url("data:image/gif;base64,R0lGODlhCwAXAKIAAMzMzO/v7/f39////////wAAAAAAAAAAACH5BAUUAAQALAAAAAALABcAAAMrCLTcoM29yN6k9socs91e5X3EyJloipYrO4ohTMqA0Fn2XVNswJe+H+SXAAA7");\n background-repeat: no-repeat;\n background-position: left top;\n position: absolute;\n z-index:101;\n height:23px;\n width:11px;\n top:-2px;\n}\n\n#ng-callout {\n position: absolute;\n z-index:100;\n border: 2px solid #CCCCCC;\n background-color: #fff;\n}\n\n#ng-callout .ng-content{\n padding:10px 10px 10px 10px;\n color:#333333;\n}\n\n#ng-callout .ng-title{\n background-color: #CCCCCC;\n text-align: left;\n padding-left: 8px;\n padding-bottom: 5px;\n padding-top: 2px;\n font-weight:bold;\n}\n\n\n/*****************\n * indicators\n *****************/\n.ng-input-indicator-wait {\n background-image: url("data:image/png;base64,R0lGODlhEAAQAPQAAP///wAAAPDw8IqKiuDg4EZGRnp6egAAAFhYWCQkJKysrL6+vhQUFJycnAQEBDY2NmhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAAFdyAgAgIJIeWoAkRCCMdBkKtIHIngyMKsErPBYbADpkSCwhDmQCBethRB6Vj4kFCkQPG4IlWDgrNRIwnO4UKBXDufzQvDMaoSDBgFb886MiQadgNABAokfCwzBA8LCg0Egl8jAggGAA1kBIA1BAYzlyILczULC2UhACH5BAkKAAAALAAAAAAQABAAAAV2ICACAmlAZTmOREEIyUEQjLKKxPHADhEvqxlgcGgkGI1DYSVAIAWMx+lwSKkICJ0QsHi9RgKBwnVTiRQQgwF4I4UFDQQEwi6/3YSGWRRmjhEETAJfIgMFCnAKM0KDV4EEEAQLiF18TAYNXDaSe3x6mjidN1s3IQAh+QQJCgAAACwAAAAAEAAQAAAFeCAgAgLZDGU5jgRECEUiCI+yioSDwDJyLKsXoHFQxBSHAoAAFBhqtMJg8DgQBgfrEsJAEAg4YhZIEiwgKtHiMBgtpg3wbUZXGO7kOb1MUKRFMysCChAoggJCIg0GC2aNe4gqQldfL4l/Ag1AXySJgn5LcoE3QXI3IQAh+QQJCgAAACwAAAAAEAAQAAAFdiAgAgLZNGU5joQhCEjxIssqEo8bC9BRjy9Ag7GILQ4QEoE0gBAEBcOpcBA0DoxSK/e8LRIHn+i1cK0IyKdg0VAoljYIg+GgnRrwVS/8IAkICyosBIQpBAMoKy9dImxPhS+GKkFrkX+TigtLlIyKXUF+NjagNiEAIfkECQoAAAAsAAAAABAAEAAABWwgIAICaRhlOY4EIgjH8R7LKhKHGwsMvb4AAy3WODBIBBKCsYA9TjuhDNDKEVSERezQEL0WrhXucRUQGuik7bFlngzqVW9LMl9XWvLdjFaJtDFqZ1cEZUB0dUgvL3dgP4WJZn4jkomWNpSTIyEAIfkECQoAAAAsAAAAABAAEAAABX4gIAICuSxlOY6CIgiD8RrEKgqGOwxwUrMlAoSwIzAGpJpgoSDAGifDY5kopBYDlEpAQBwevxfBtRIUGi8xwWkDNBCIwmC9Vq0aiQQDQuK+VgQPDXV9hCJjBwcFYU5pLwwHXQcMKSmNLQcIAExlbH8JBwttaX0ABAcNbWVbKyEAIfkECQoAAAAsAAAAABAAEAAABXkgIAICSRBlOY7CIghN8zbEKsKoIjdFzZaEgUBHKChMJtRwcWpAWoWnifm6ESAMhO8lQK0EEAV3rFopIBCEcGwDKAqPh4HUrY4ICHH1dSoTFgcHUiZjBhAJB2AHDykpKAwHAwdzf19KkASIPl9cDgcnDkdtNwiMJCshACH5BAkKAAAALAAAAAAQABAAAAV3ICACAkkQZTmOAiosiyAoxCq+KPxCNVsSMRgBsiClWrLTSWFoIQZHl6pleBh6suxKMIhlvzbAwkBWfFWrBQTxNLq2RG2yhSUkDs2b63AYDAoJXAcFRwADeAkJDX0AQCsEfAQMDAIPBz0rCgcxky0JRWE1AmwpKyEAIfkECQoAAAAsAAAAABAAEAAABXkgIAICKZzkqJ4nQZxLqZKv4NqNLKK2/Q4Ek4lFXChsg5ypJjs1II3gEDUSRInEGYAw6B6zM4JhrDAtEosVkLUtHA7RHaHAGJQEjsODcEg0FBAFVgkQJQ1pAwcDDw8KcFtSInwJAowCCA6RIwqZAgkPNgVpWndjdyohACH5BAkKAAAALAAAAAAQABAAAAV5ICACAimc5KieLEuUKvm2xAKLqDCfC2GaO9eL0LABWTiBYmA06W6kHgvCqEJiAIJiu3gcvgUsscHUERm+kaCxyxa+zRPk0SgJEgfIvbAdIAQLCAYlCj4DBw0IBQsMCjIqBAcPAooCBg9pKgsJLwUFOhCZKyQDA3YqIQAh+QQJCgAAACwAAAAAEAAQAAAFdSAgAgIpnOSonmxbqiThCrJKEHFbo8JxDDOZYFFb+A41E4H4OhkOipXwBElYITDAckFEOBgMQ3arkMkUBdxIUGZpEb7kaQBRlASPg0FQQHAbEEMGDSVEAA1QBhAED1E0NgwFAooCDWljaQIQCE5qMHcNhCkjIQAh+QQJCgAAACwAAAAAEAAQAAAFeSAgAgIpnOSoLgxxvqgKLEcCC65KEAByKK8cSpA4DAiHQ/DkKhGKh4ZCtCyZGo6F6iYYPAqFgYy02xkSaLEMV34tELyRYNEsCQyHlvWkGCzsPgMCEAY7Cg04Uk48LAsDhRA8MVQPEF0GAgqYYwSRlycNcWskCkApIyEAOwAAAAAAAAAAAA==");\n background-position: right;\n background-repeat: no-repeat;\n}\n</style>');document.write("<style type=\"text/css\">@charset \"UTF-8\";\n/* CSS Document */\n\n/** Structure */\nbody {\n font-family: Arial, sans-serif;\n margin: 0;\n font-size: 14px;\n}\n\n#system-error {\n font-size: 1.5em;\n text-align: center;\n}\n\n#json, #xml {\n display: none;\n}\n\n#header {\n position: fixed;\n width: 100%;\n}\n\n#specs {\n padding-top: 50px;\n}\n\n#header .angular {\n font-family: Courier New, monospace;\n font-weight: bold;\n}\n\n#header h1 {\n font-weight: normal;\n float: left;\n font-size: 30px;\n line-height: 30px;\n margin: 0;\n padding: 10px 10px;\n height: 30px;\n}\n\n#application h2,\n#specs h2 {\n margin: 0;\n padding: 0.5em;\n font-size: 1.1em;\n}\n\n#status-legend {\n margin-top: 10px;\n margin-right: 10px;\n}\n\n#header,\n#application,\n.test-info,\n.test-actions li {\n overflow: hidden;\n}\n\n#application {\n margin: 10px;\n}\n\n#application iframe {\n width: 100%;\n height: 758px;\n}\n\n#application .popout {\n float: right;\n}\n\n#application iframe {\n border: none;\n}\n\n.tests li,\n.test-actions li,\n.test-it li,\n.test-it ol,\n.status-display {\n list-style-type: none;\n}\n\n.tests,\n.test-it ol,\n.status-display {\n margin: 0;\n padding: 0;\n}\n\n.test-info {\n margin-left: 1em;\n margin-top: 0.5em;\n border-radius: 8px 0 0 8px;\n -webkit-border-radius: 8px 0 0 8px;\n -moz-border-radius: 8px 0 0 8px;\n cursor: pointer;\n}\n\n.test-info:hover .test-name {\n text-decoration: underline;\n}\n\n.test-info .closed:before {\n content: '\\25b8\\00A0';\n}\n\n.test-info .open:before {\n content: '\\25be\\00A0';\n font-weight: bold;\n}\n\n.test-it ol {\n margin-left: 2.5em;\n}\n\n.status-display,\n.status-display li {\n float: right;\n}\n\n.status-display li {\n padding: 5px 10px;\n}\n\n.timer-result,\n.test-title {\n display: inline-block;\n margin: 0;\n padding: 4px;\n}\n\n.test-actions .test-title,\n.test-actions .test-result {\n display: table-cell;\n padding-left: 0.5em;\n padding-right: 0.5em;\n}\n\n.test-actions {\n display: table;\n}\n\n.test-actions li {\n display: table-row;\n}\n\n.timer-result {\n width: 4em;\n padding: 0 10px;\n text-align: right;\n font-family: monospace;\n}\n\n.test-it pre,\n.test-actions pre {\n clear: left;\n color: black;\n margin-left: 6em;\n}\n\n.test-describe {\n padding-bottom: 0.5em;\n}\n\n.test-describe .test-describe {\n margin: 5px 5px 10px 2em;\n}\n\n.test-actions .status-pending .test-title:before {\n content: '\\00bb\\00A0';\n}\n\n.scrollpane {\n max-height: 20em;\n overflow: auto;\n}\n\n/** Colors */\n\n#header {\n background-color: #F2C200;\n}\n\n#specs h2 {\n border-top: 2px solid #BABAD1;\n}\n\n#specs h2,\n#application h2 {\n background-color: #efefef;\n}\n\n#application {\n border: 1px solid #BABAD1;\n}\n\n.test-describe .test-describe {\n border-left: 1px solid #BABAD1;\n border-right: 1px solid #BABAD1;\n border-bottom: 1px solid #BABAD1;\n}\n\n.status-display {\n border: 1px solid #777;\n}\n\n.status-display .status-pending,\n.status-pending .test-info {\n background-color: #F9EEBC;\n}\n\n.status-display .status-success,\n.status-success .test-info {\n background-color: #B1D7A1;\n}\n\n.status-display .status-failure,\n.status-failure .test-info {\n background-color: #FF8286;\n}\n\n.status-display .status-error,\n.status-error .test-info {\n background-color: black;\n color: white;\n}\n\n.test-actions .status-success .test-title {\n color: #30B30A;\n}\n\n.test-actions .status-failure .test-title {\n color: #DF0000;\n}\n\n.test-actions .status-error .test-title {\n color: black;\n}\n\n.test-actions .timer-result {\n color: #888;\n}\n</style>");
src/routes/codes/ValuesModal.js
yunqiangwu/kmadmin
import React from 'react' import PropTypes from 'prop-types' import { Form, Input, InputNumber, Radio, Modal, Cascader } from 'antd' const FormItem = Form.Item const formItemLayout = { labelCol: { span: 6, }, wrapperCol: { span: 14, }, } const modal = ({ item = {}, onOk, form: { getFieldDecorator, validateFields, getFieldsValue, }, ...modalProps }) => { const handleOk = () => { validateFields((errors) => { if (errors) { return } const data = { ...getFieldsValue(), key: item.key, } onOk(data) }) } const modalOpts = { ...modalProps, onOk: handleOk, } return ( <Modal {...modalOpts}> <Form layout="horizontal"> <FormItem label="代码" hasFeedback {...formItemLayout}> {getFieldDecorator('lookupType', { initialValue: item.lookupType, rules: [ { required: true, }, ], })(<Input />)} </FormItem> <FormItem label="名称" hasFeedback {...formItemLayout}> {getFieldDecorator('name', { initialValue: item.name, rules: [ { required: true, }, ], })(<Input />)} </FormItem> <FormItem label="描述" hasFeedback {...formItemLayout}> {getFieldDecorator('description', { initialValue: item.description, rules: [ { required: false, }, ], })(<Input.TextArea />)} </FormItem> </Form> </Modal> ) } modal.propTypes = { form: PropTypes.object.isRequired, type: PropTypes.string, item: PropTypes.object, onOk: PropTypes.func, } export default Form.create()(modal)
sites/all/modules/jquery_update/replace/jquery/1.10/jquery.min.js
muradkarakas/chipingo
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery-1.10.2.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim,x=function(e,t){return new x.fn.init(e,t,r)},w=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=/\S+/g,C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^[\],:{}\s]*$/,S=/(?:^|:|,)(?:\s*\[)+/g,A=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,j=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,D=/^-ms-/,L=/-([\da-z])/gi,H=function(e,t){return t.toUpperCase()},q=function(e){(a.addEventListener||"load"===e.type||"complete"===a.readyState)&&(_(),x.ready())},_=function(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",q,!1),e.removeEventListener("load",q,!1)):(a.detachEvent("onreadystatechange",q),e.detachEvent("onload",q))};x.fn=x.prototype={jquery:f,constructor:x,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof x?n[0]:n,x.merge(this,x.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:a,!0)),k.test(i[1])&&x.isPlainObject(n))for(i in n)x.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(o=a.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return g.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(g.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),"object"==typeof s||x.isFunction(s)||(s={}),u===l&&(s=this,--l);u>l;l++)if(null!=(o=arguments[l]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(x.isPlainObject(r)||(n=x.isArray(r)))?(n?(n=!1,a=e&&x.isArray(e)?e:[]):a=e&&x.isPlainObject(e)?e:{},s[i]=x.extend(c,a,r)):r!==t&&(s[i]=r));return s},x.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=l),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){if(e===!0?!--x.readyWait:!x.isReady){if(!a.body)return setTimeout(x.ready);x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(a,[x]),x.fn.trigger&&x(a).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray||function(e){return"array"===x.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[y.call(e)]||"object":typeof e},isPlainObject:function(e){var n;if(!e||"object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!v.call(e,"constructor")&&!v.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(x.support.ownLast)for(n in e)return v.call(e,n);for(n in e);return n===t||v.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||a;var r=k.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=x.trim(n),n&&E.test(n.replace(A,"@").replace(j,"]").replace(S,"")))?Function("return "+n)():(x.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&x.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(D,"ms-").replace(L,H)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:b&&!b.call("\ufeff\u00a0")?function(e){return null==e?"":b.call(e)}:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(m)return m.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return d.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),x.isFunction(e)?(r=g.call(arguments,2),i=function(){return e.apply(n||this,r.concat(g.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):t},access:function(e,n,r,i,o,a,s){var l=0,u=e.length,c=null==r;if("object"===x.type(r)){o=!0;for(l in r)x.access(e,n,l,r[l],!0,a,s)}else if(i!==t&&(o=!0,x.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(x(e),n)})),n))for(;u>l;l++)n(e[l],r,s?i:i.call(e[l],l,n(e[l],r)));return o?e:c?n.call(e):u?n(e[0],r):a},now:function(){return(new Date).getTime()},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),x.ready.promise=function(t){if(!n)if(n=x.Deferred(),"complete"===a.readyState)setTimeout(x.ready);else if(a.addEventListener)a.addEventListener("DOMContentLoaded",q,!1),e.addEventListener("load",q,!1);else{a.attachEvent("onreadystatechange",q),e.attachEvent("onload",q);var r=!1;try{r=null==e.frameElement&&a.documentElement}catch(i){}r&&r.doScroll&&function o(){if(!x.isReady){try{r.doScroll("left")}catch(e){return setTimeout(o,50)}_(),x.ready()}}()}return n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=x(a),function(e,t){var n,r,i,o,a,s,l,u,c,p,f,d,h,g,m,y,v,b="sizzle"+-new Date,w=e.document,T=0,C=0,N=st(),k=st(),E=st(),S=!1,A=function(e,t){return e===t?(S=!0,0):0},j=typeof t,D=1<<31,L={}.hasOwnProperty,H=[],q=H.pop,_=H.push,M=H.push,O=H.slice,F=H.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=R.replace("w","w#"),$="\\["+P+"*("+R+")"+P+"*(?:([*^$|!~]?=)"+P+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+W+")|)|)"+P+"*\\]",I=":("+R+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+$.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),X=RegExp("^"+P+"*,"+P+"*"),U=RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),V=RegExp(P+"*[+~]"),Y=RegExp("="+P+"*([^\\]'\"]*)"+P+"*\\]","g"),J=RegExp(I),G=RegExp("^"+W+"$"),Q={ID:RegExp("^#("+R+")"),CLASS:RegExp("^\\.("+R+")"),TAG:RegExp("^("+R.replace("w","w*")+")"),ATTR:RegExp("^"+$),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:RegExp("^(?:"+B+")$","i"),needsContext:RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{M.apply(H=O.call(w.childNodes),w.childNodes),H[w.childNodes.length].nodeType}catch(ot){M={apply:H.length?function(e,t){_.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function at(e,t,n,i){var o,a,s,l,u,c,d,m,y,x;if((t?t.ownerDocument||t:w)!==f&&p(t),t=t||f,n=n||[],!e||"string"!=typeof e)return n;if(1!==(l=t.nodeType)&&9!==l)return[];if(h&&!i){if(o=Z.exec(e))if(s=o[1]){if(9===l){if(a=t.getElementById(s),!a||!a.parentNode)return n;if(a.id===s)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(s))&&v(t,a)&&a.id===s)return n.push(a),n}else{if(o[2])return M.apply(n,t.getElementsByTagName(e)),n;if((s=o[3])&&r.getElementsByClassName&&t.getElementsByClassName)return M.apply(n,t.getElementsByClassName(s)),n}if(r.qsa&&(!g||!g.test(e))){if(m=d=b,y=t,x=9===l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){c=mt(e),(d=t.getAttribute("id"))?m=d.replace(nt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",u=c.length;while(u--)c[u]=m+yt(c[u]);y=V.test(e)&&t.parentNode||t,x=c.join(",")}if(x)try{return M.apply(n,y.querySelectorAll(x)),n}catch(T){}finally{d||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,n,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>o.cacheLength&&delete t[e.shift()],t[n]=r}return t}function lt(e){return e[b]=!0,e}function ut(e){var t=f.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ct(e,t){var n=e.split("|"),r=e.length;while(r--)o.attrHandle[n[r]]=t}function pt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function dt(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return lt(function(t){return t=+t,lt(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}s=at.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},r=at.support={},p=at.setDocument=function(e){var n=e?e.ownerDocument||e:w,i=n.defaultView;return n!==f&&9===n.nodeType&&n.documentElement?(f=n,d=n.documentElement,h=!s(n),i&&i.attachEvent&&i!==i.top&&i.attachEvent("onbeforeunload",function(){p()}),r.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ut(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=ut(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),r.getById=ut(function(e){return d.appendChild(e).id=b,!n.getElementsByName||!n.getElementsByName(b).length}),r.getById?(o.find.ID=function(e,t){if(typeof t.getElementById!==j&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){return e.getAttribute("id")===t}}):(delete o.find.ID,o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),o.find.TAG=r.getElementsByTagName?function(e,n){return typeof n.getElementsByTagName!==j?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},o.find.CLASS=r.getElementsByClassName&&function(e,n){return typeof n.getElementsByClassName!==j&&h?n.getElementsByClassName(e):t},m=[],g=[],(r.qsa=K.test(n.querySelectorAll))&&(ut(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+B+")"),e.querySelectorAll(":checked").length||g.push(":checked")}),ut(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&g.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(r.matchesSelector=K.test(y=d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ut(function(e){r.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),m.push("!=",I)}),g=g.length&&RegExp(g.join("|")),m=m.length&&RegExp(m.join("|")),v=K.test(d.contains)||d.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},A=d.compareDocumentPosition?function(e,t){if(e===t)return S=!0,0;var i=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);return i?1&i||!r.sortDetached&&t.compareDocumentPosition(e)===i?e===n||v(w,e)?-1:t===n||v(w,t)?1:c?F.call(c,e)-F.call(c,t):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return S=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:c?F.call(c,e)-F.call(c,t):0;if(o===a)return pt(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?pt(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},n):f},at.matches=function(e,t){return at(e,null,null,t)},at.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(Y,"='$1']"),!(!r.matchesSelector||!h||m&&m.test(t)||g&&g.test(t)))try{var n=y.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(i){}return at(t,f,null,[e]).length>0},at.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),v(e,t)},at.attr=function(e,n){(e.ownerDocument||e)!==f&&p(e);var i=o.attrHandle[n.toLowerCase()],a=i&&L.call(o.attrHandle,n.toLowerCase())?i(e,n,!h):t;return a===t?r.attributes||!h?e.getAttribute(n):(a=e.getAttributeNode(n))&&a.specified?a.value:null:a},at.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},at.uniqueSort=function(e){var t,n=[],i=0,o=0;if(S=!r.detectDuplicates,c=!r.sortStable&&e.slice(0),e.sort(A),S){while(t=e[o++])t===e[o]&&(i=n.push(o));while(i--)e.splice(n[i],1)}return e},a=at.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=a(t);return n},o=at.selectors={cacheLength:50,createPseudo:lt,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(rt,it),e[3]=(e[4]||e[5]||"").replace(rt,it),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||at.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&at.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&J.test(r)&&(n=mt(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(rt,it).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=N[e+" "];return t||(t=RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&N(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=at.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){c=m[b]||(m[b]={}),u=c[e]||[],d=u[0]===T&&u[1],f=u[0]===T&&u[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[T,d,f];break}}else if(v&&(u=(t[b]||(t[b]={}))[e])&&u[0]===T)f=u[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(v&&((p[b]||(p[b]={}))[e]=[T,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||at.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?lt(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=F.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:lt(function(e){var t=[],n=[],r=l(e.replace(z,"$1"));return r[b]?lt(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:lt(function(e){return function(t){return at(e,t).length>0}}),contains:lt(function(e){return function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}}),lang:lt(function(e){return G.test(e||"")||at.error("unsupported lang: "+e),e=e.replace(rt,it).toLowerCase(),function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return tt.test(e.nodeName)},input:function(e){return et.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[0>n?n+t:n]}),even:ht(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:ht(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:ht(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},o.pseudos.nth=o.pseudos.eq;for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[n]=ft(n);for(n in{submit:!0,reset:!0})o.pseudos[n]=dt(n);function gt(){}gt.prototype=o.filters=o.pseudos,o.setFilters=new gt;function mt(e,t){var n,r,i,a,s,l,u,c=k[e+" "];if(c)return t?0:c.slice(0);s=e,l=[],u=o.preFilter;while(s){(!n||(r=X.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(i=[])),n=!1,(r=U.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(z," ")}),s=s.slice(n.length));for(a in o.filter)!(r=Q[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?at.error(e):k(e,l).slice(0)}function yt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function vt(e,t,n){var r=t.dir,o=n&&"parentNode"===r,a=C++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,s){var l,u,c,p=T+" "+a;if(s){while(t=t[r])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[r])if(1===t.nodeType||o)if(c=t[b]||(t[b]={}),(u=c[r])&&u[0]===p){if((l=u[1])===!0||l===i)return l===!0}else if(u=c[r]=[p],u[1]=e(t,n,s)||i,u[1]===!0)return!0}}function bt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,a=[],s=0,l=e.length,u=null!=t;for(;l>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),u&&t.push(s));return a}function wt(e,t,n,r,i,o){return r&&!r[b]&&(r=wt(r)),i&&!i[b]&&(i=wt(i,o)),lt(function(o,a,s,l){var u,c,p,f=[],d=[],h=a.length,g=o||Nt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:xt(g,f,e,s,l),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,l),r){u=xt(y,d),r(u,[],s,l),c=u.length;while(c--)(p=u[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){u=[],c=y.length;while(c--)(p=y[c])&&u.push(m[c]=p);i(null,y=[],u,l)}c=y.length;while(c--)(p=y[c])&&(u=i?F.call(o,p):f[c])>-1&&(o[u]=!(a[u]=p))}}else y=xt(y===a?y.splice(h,y.length):y),i?i(null,a,y,l):M.apply(a,y)})}function Tt(e){var t,n,r,i=e.length,a=o.relative[e[0].type],s=a||o.relative[" "],l=a?1:0,c=vt(function(e){return e===t},s,!0),p=vt(function(e){return F.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;i>l;l++)if(n=o.relative[e[l].type])f=[vt(bt(f),n)];else{if(n=o.filter[e[l].type].apply(null,e[l].matches),n[b]){for(r=++l;i>r;r++)if(o.relative[e[r].type])break;return wt(l>1&&bt(f),l>1&&yt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,r>l&&Tt(e.slice(l,r)),i>r&&Tt(e=e.slice(r)),i>r&&yt(e))}f.push(n)}return bt(f)}function Ct(e,t){var n=0,r=t.length>0,a=e.length>0,s=function(s,l,c,p,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,C=u,N=s||a&&o.find.TAG("*",d&&l.parentNode||l),k=T+=null==C?1:Math.random()||.1;for(w&&(u=l!==f&&l,i=n);null!=(h=N[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,l,c)){p.push(h);break}w&&(T=k,i=++n)}r&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,r&&b!==v){g=0;while(m=t[g++])m(x,y,l,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=q.call(p));y=xt(y)}M.apply(p,y),w&&!s&&y.length>0&&v+t.length>1&&at.uniqueSort(p)}return w&&(T=k,u=C),x};return r?lt(s):s}l=at.compile=function(e,t){var n,r=[],i=[],o=E[e+" "];if(!o){t||(t=mt(e)),n=t.length;while(n--)o=Tt(t[n]),o[b]?r.push(o):i.push(o);o=E(e,Ct(i,r))}return o};function Nt(e,t,n){var r=0,i=t.length;for(;i>r;r++)at(e,t[r],n);return n}function kt(e,t,n,i){var a,s,u,c,p,f=mt(e);if(!i&&1===f.length){if(s=f[0]=f[0].slice(0),s.length>2&&"ID"===(u=s[0]).type&&r.getById&&9===t.nodeType&&h&&o.relative[s[1].type]){if(t=(o.find.ID(u.matches[0].replace(rt,it),t)||[])[0],!t)return n;e=e.slice(s.shift().value.length)}a=Q.needsContext.test(e)?0:s.length;while(a--){if(u=s[a],o.relative[c=u.type])break;if((p=o.find[c])&&(i=p(u.matches[0].replace(rt,it),V.test(s[0].type)&&t.parentNode||t))){if(s.splice(a,1),e=i.length&&yt(s),!e)return M.apply(n,i),n;break}}}return l(e,f)(i,t,!h,n,V.test(e)),n}r.sortStable=b.split("").sort(A).join("")===b,r.detectDuplicates=S,p(),r.sortDetached=ut(function(e){return 1&e.compareDocumentPosition(f.createElement("div"))}),ut(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ct("type|href|height|width",function(e,n,r){return r?t:e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),r.attributes&&ut(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ct("value",function(e,n,r){return r||"input"!==e.nodeName.toLowerCase()?t:e.defaultValue}),ut(function(e){return null==e.getAttribute("disabled")})||ct(B,function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&i.specified?i.value:e[n]===!0?n.toLowerCase():null}),x.find=at,x.expr=at.selectors,x.expr[":"]=x.expr.pseudos,x.unique=at.uniqueSort,x.text=at.getText,x.isXMLDoc=at.isXML,x.contains=at.contains}(e);var O={};function F(e){var t=O[e]={};return x.each(e.match(T)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?O[e]||F(e):x.extend({},e);var n,r,i,o,a,s,l=[],u=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=l.length,n=!0;l&&o>a;a++)if(l[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,l&&(u?u.length&&c(u.shift()):r?l=[]:p.disable())},p={add:function(){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&p.has(n)||l.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=l.length:r&&(s=t,c(r))}return this},remove:function(){return l&&x.each(arguments,function(e,t){var r;while((r=x.inArray(t,l,r))>-1)l.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?x.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=u=r=t,this},disabled:function(){return!l},lock:function(){return u=t,r||p.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!l||i&&!u||(t=t||[],t=[e,t.slice?t.slice():t],n?u.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var a=o[0],s=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=g.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?g.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,l,u;if(r>1)for(s=Array(r),l=Array(r),u=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(a(t,u,n)).fail(o.reject).progress(a(t,l,s)):--i;return i||o.resolveWith(u,n),o.promise()}}),x.support=function(t){var n,r,o,s,l,u,c,p,f,d=a.createElement("div");if(d.setAttribute("className","t"),d.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=d.getElementsByTagName("*")||[],r=d.getElementsByTagName("a")[0],!r||!r.style||!n.length)return t;s=a.createElement("select"),u=s.appendChild(a.createElement("option")),o=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute="t"!==d.className,t.leadingWhitespace=3===d.firstChild.nodeType,t.tbody=!d.getElementsByTagName("tbody").length,t.htmlSerialize=!!d.getElementsByTagName("link").length,t.style=/top/.test(r.getAttribute("style")),t.hrefNormalized="/a"===r.getAttribute("href"),t.opacity=/^0.5/.test(r.style.opacity),t.cssFloat=!!r.style.cssFloat,t.checkOn=!!o.value,t.optSelected=u.selected,t.enctype=!!a.createElement("form").enctype,t.html5Clone="<:nav></:nav>"!==a.createElement("nav").cloneNode(!0).outerHTML,t.inlineBlockNeedsLayout=!1,t.shrinkWrapBlocks=!1,t.pixelPosition=!1,t.deleteExpando=!0,t.noCloneEvent=!0,t.reliableMarginRight=!0,t.boxSizingReliable=!0,o.checked=!0,t.noCloneChecked=o.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!u.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}o=a.createElement("input"),o.setAttribute("value",""),t.input=""===o.getAttribute("value"),o.value="t",o.setAttribute("type","radio"),t.radioValue="t"===o.value,o.setAttribute("checked","t"),o.setAttribute("name","t"),l=a.createDocumentFragment(),l.appendChild(o),t.appendChecked=o.checked,t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip;for(f in x(t))break;return t.ownLast="0"!==f,x(function(){var n,r,o,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",l=a.getElementsByTagName("body")[0];l&&(n=a.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",l.appendChild(n).appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",o=d.getElementsByTagName("td"),o[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",t.reliableHiddenOffsets=p&&0===o[0].offsetHeight,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",x.swap(l,null!=l.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===d.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(a.createElement("div")),r.style.cssText=d.style.cssText=s,r.style.marginRight=r.style.width="0",d.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof d.style.zoom!==i&&(d.innerHTML="",d.style.cssText=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="<div></div>",d.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&&(l.style.zoom=1)),l.removeChild(n),n=d=o=r=null)}),n=s=l=u=r=o=null,t }({});var B=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;function R(e,n,r,i){if(x.acceptData(e)){var o,a,s=x.expando,l=e.nodeType,u=l?x.cache:e,c=l?e[s]:e[s]&&s;if(c&&u[c]&&(i||u[c].data)||r!==t||"string"!=typeof n)return c||(c=l?e[s]=p.pop()||x.guid++:s),u[c]||(u[c]=l?{}:{toJSON:x.noop}),("object"==typeof n||"function"==typeof n)&&(i?u[c]=x.extend(u[c],n):u[c].data=x.extend(u[c].data,n)),a=u[c],i||(a.data||(a.data={}),a=a.data),r!==t&&(a[x.camelCase(n)]=r),"string"==typeof n?(o=a[n],null==o&&(o=a[x.camelCase(n)])):o=a,o}}function W(e,t,n){if(x.acceptData(e)){var r,i,o=e.nodeType,a=o?x.cache:e,s=o?e[x.expando]:x.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){x.isArray(t)?t=t.concat(x.map(t,x.camelCase)):t in r?t=[t]:(t=x.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;while(i--)delete r[t[i]];if(n?!I(r):!x.isEmptyObject(r))return}(n||(delete a[s].data,I(a[s])))&&(o?x.cleanData([e],!0):x.support.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}x.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?x.cache[e[x.expando]]:e[x.expando],!!e&&!I(e)},data:function(e,t,n){return R(e,t,n)},removeData:function(e,t){return W(e,t)},_data:function(e,t,n){return R(e,t,n,!0)},_removeData:function(e,t){return W(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&x.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),x.fn.extend({data:function(e,n){var r,i,o=null,a=0,s=this[0];if(e===t){if(this.length&&(o=x.data(s),1===s.nodeType&&!x._data(s,"parsedAttrs"))){for(r=s.attributes;r.length>a;a++)i=r[a].name,0===i.indexOf("data-")&&(i=x.camelCase(i.slice(5)),$(s,i,o[i]));x._data(s,"parsedAttrs",!0)}return o}return"object"==typeof e?this.each(function(){x.data(this,e)}):arguments.length>1?this.each(function(){x.data(this,e,n)}):s?$(s,e,x.data(s,e)):null},removeData:function(e){return this.each(function(){x.removeData(this,e)})}});function $(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(P,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:B.test(r)?x.parseJSON(r):r}catch(o){}x.data(e,n,r)}else r=t}return r}function I(e){var t;for(t in e)if(("data"!==t||!x.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}x.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=x._data(e,n),r&&(!i||x.isArray(r)?i=x._data(e,n,x.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),a=function(){x.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return x._data(e,n)||x._data(e,n,{empty:x.Callbacks("once memory").add(function(){x._removeData(e,t+"queue"),x._removeData(e,n)})})}}),x.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?x.queue(this[0],e):n===t?this:this.each(function(){var t=x.queue(this,e,n);x._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=x.Deferred(),a=this,s=this.length,l=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=x._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(l));return l(),o.promise(n)}});var z,X,U=/[\t\r\n\f]/g,V=/\r/g,Y=/^(?:input|select|textarea|button|object)$/i,J=/^(?:a|area)$/i,G=/^(?:checked|selected)$/i,Q=x.support.getSetAttribute,K=x.support.input;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return e=x.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,l="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,l=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var t,r=0,o=x(this),a=e.match(T)||[];while(t=a[r++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else(n===i||"boolean"===n)&&(this.className&&x._data(this,"__className__",this.className),this.className=this.className||e===!1?"":x._data(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(U," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=x.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=i?e.call(this,n,x(this).val()):e,null==o?o="":"number"==typeof o?o+="":x.isArray(o)&&(o=x.map(o,function(e){return null==e?"":e+""})),r=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(V,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,l=0>i?s:o?i:0;for(;s>l;l++)if(n=r[l],!(!n.selected&&l!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),a=i.length;while(a--)r=i[a],(r.selected=x.inArray(x(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,n,r){var o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===i?x.prop(e,n,r):(1===s&&x.isXMLDoc(e)||(n=n.toLowerCase(),o=x.attrHooks[n]||(x.expr.match.bool.test(n)?X:z)),r===t?o&&"get"in o&&null!==(a=o.get(e,n))?a:(a=x.find.attr(e,n),null==a?t:a):null!==r?o&&"set"in o&&(a=o.set(e,r,n))!==t?a:(e.setAttribute(n,r+""),r):(x.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(T);if(o&&1===e.nodeType)while(n=o[i++])r=x.propFix[n]||n,x.expr.match.bool.test(n)?K&&Q||!G.test(n)?e[r]=!1:e[x.camelCase("default-"+n)]=e[r]=!1:x.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!x.isXMLDoc(e),a&&(n=x.propFix[n]||n,o=x.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):Y.test(e.nodeName)||J.test(e.nodeName)&&e.href?0:-1}}}}),X={set:function(e,t,n){return t===!1?x.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&x.propFix[n]||n,n):e[x.camelCase("default-"+n)]=e[n]=!0,n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,n){var r=x.expr.attrHandle[n]||x.find.attr;x.expr.attrHandle[n]=K&&Q||!G.test(n)?function(e,n,i){var o=x.expr.attrHandle[n],a=i?t:(x.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;return x.expr.attrHandle[n]=o,a}:function(e,n,r){return r?t:e[x.camelCase("default-"+n)]?n.toLowerCase():null}}),K&&Q||(x.attrHooks.value={set:function(e,n,r){return x.nodeName(e,"input")?(e.defaultValue=n,t):z&&z.set(e,n,r)}}),Q||(z={set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===e.getAttribute(r)?n:t}},x.expr.attrHandle.id=x.expr.attrHandle.name=x.expr.attrHandle.coords=function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&""!==i.value?i.value:null},x.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&r.specified?r.value:t},set:z.set},x.attrHooks.contenteditable={set:function(e,t,n){z.set(e,""===t?!1:t,n)}},x.each(["width","height"],function(e,n){x.attrHooks[n]={set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}}})),x.support.hrefNormalized||x.each(["href","src"],function(e,t){x.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),x.support.style||(x.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.support.enctype||(x.propFix.enctype="encoding"),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,n){return x.isArray(n)?e.checked=x.inArray(x(e).val(),n)>=0:t}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}function at(){try{return a.activeElement}catch(e){}}x.event={global:{},add:function(e,n,r,o,a){var s,l,u,c,p,f,d,h,g,m,y,v=x._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=x.guid++),(l=v.events)||(l=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof x===i||e&&x.event.triggered===e.type?t:x.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(T)||[""],u=n.length;while(u--)s=rt.exec(n[u])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),g&&(p=x.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=x.event.special[g]||{},d=x.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&&x.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=l[g])||(h=l[g]=[],h.delegateCount=0,p.setup&&p.setup.call(e,o,m,f)!==!1||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&&e.attachEvent("on"+g,f))),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),x.event.global[g]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,p,f,d,h,g,m=x.hasData(e)&&x._data(e);if(m&&(c=m.events)){t=(t||"").match(T)||[""],u=t.length;while(u--)if(s=rt.exec(t[u])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=x.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;while(o--)a=f[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,p.remove&&p.remove.call(e,a));l&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||x.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)x.event.remove(e,d+t[u],n,r,!0);x.isEmptyObject(c)&&(delete m.handle,x._removeData(e,"events"))}},trigger:function(n,r,i,o){var s,l,u,c,p,f,d,h=[i||a],g=v.call(n,"type")?n.type:n,m=v.call(n,"namespace")?n.namespace.split("."):[];if(u=f=i=i||a,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+x.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),l=0>g.indexOf(":")&&"on"+g,n=n[x.expando]?n:new x.Event(g,"object"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:x.makeArray(r,[n]),p=x.event.special[g]||{},o||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!o&&!p.noBubble&&!x.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(u=u.parentNode);u;u=u.parentNode)h.push(u),f=u;f===(i.ownerDocument||a)&&h.push(f.defaultView||f.parentWindow||e)}d=0;while((u=h[d++])&&!n.isPropagationStopped())n.type=d>1?c:p.bindType||g,s=(x._data(u,"events")||{})[n.type]&&x._data(u,"handle"),s&&s.apply(u,r),s=l&&u[l],s&&x.acceptData(u)&&s.apply&&s.apply(u,r)===!1&&n.preventDefault();if(n.type=g,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(h.pop(),r)===!1)&&x.acceptData(i)&&l&&i[g]&&!x.isWindow(i)){f=i[l],f&&(i[l]=null),x.event.triggered=g;try{i[g]()}catch(y){}x.event.triggered=t,f&&(i[l]=f)}return n.result}},dispatch:function(e){e=x.event.fix(e);var n,r,i,o,a,s=[],l=g.call(arguments),u=(x._data(this,"events")||{})[e.type]||[],c=x.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=x.event.handlers.call(this,e,u),n=0;while((o=s[n++])&&!e.isPropagationStopped()){e.currentTarget=o.elem,a=0;while((i=o.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((x.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l),r!==t&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],l=n.delegateCount,u=e.target;if(l&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(o=[],a=0;l>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?x(r,this).index(u)>=0:x.find(r,this,null,[u]).length),o[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return n.length>l&&s.push({elem:this,handlers:n.slice(l)}),s},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new x.Event(o),t=r.length;while(t--)n=r[t],e[n]=o[n];return e.target||(e.target=o.srcElement||a),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,o,s=n.button,l=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||a,o=i.documentElement,r=i.body,e.pageX=n.clientX+(o&&o.scrollLeft||r&&r.scrollLeft||0)-(o&&o.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(o&&o.scrollTop||r&&r.scrollTop||0)-(o&&o.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&l&&(e.relatedTarget=l===e.target?n.toElement:l),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==at()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===at()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return x.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=a.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===i&&(e[r]=null),e.detachEvent(r,n))},x.Event=function(e,n){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:ot):this.type=e,n&&x.extend(this,n),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,t):new x.Event(e,n)},x.Event.prototype={isDefaultPrevented:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.support.submitBubbles||(x.event.special.submit={setup:function(){return x.nodeName(this,"form")?!1:(x.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=x.nodeName(n,"input")||x.nodeName(n,"button")?n.form:t;r&&!x._data(r,"submitBubbles")&&(x.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),x._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&x.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return x.nodeName(this,"form")?!1:(x.event.remove(this,"._submit"),t)}}),x.support.changeBubbles||(x.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(x.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),x.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),x.event.simulate("change",this,e,!0)})),!1):(x.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!x._data(t,"changeBubbles")&&(x.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||x.event.simulate("change",this.parentNode,e,!0)}),x._data(t,"changeBubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.isSimulated||e.isTrigger||"radio"!==n.type&&"checkbox"!==n.type?e.handleObj.handler.apply(this,arguments):t},teardown:function(){return x.event.remove(this,"._change"),!Z.test(this.nodeName)}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&a.addEventListener(e,r,!0)},teardown:function(){0===--n&&a.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=ot;else if(!i)return this;return 1===o&&(s=i,i=function(e){return x().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=x.guid++)),this.each(function(){x.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,x(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=ot),this.each(function(){x.event.remove(this,e,r,n)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?x.event.trigger(e,n,r,!0):t}});var st=/^.[^:#\[\.,]*$/,lt=/^(?:parents|prev(?:Until|All))/,ut=x.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;i>t;t++)if(x.contains(r[t],this))return!0}));for(t=0;i>t;t++)x.find(e,r[t],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t,n=x(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(x.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e||[],!0))},filter:function(e){return this.pushStack(ft(this,e||[],!1))},is:function(e){return!!ft(this,"string"==typeof e&&ut.test(e)?x(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,o=[],a=ut.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?x.unique(o):o)},index:function(e){return e?"string"==typeof e?x.inArray(this[0],x(e)):x.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function pt(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return x.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(ct[e]||(i=x.unique(i)),lt.test(e)&&(i=i.reverse())),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!x(o).is(r)))1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function ft(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(st.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return x.inArray(e,t)>=0!==n})}function dt(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ jQuery\d+="(?:null|\d+)"/g,mt=RegExp("<(?:"+ht+")[\\s/>]","i"),yt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/<tbody/i,wt=/<|&#?\w+;/,Tt=/<(?:script|style|link)/i,Ct=/^(?:checkbox|radio)$/i,Nt=/checked\s*(?:[^=]|=\s*.checked.)/i,kt=/^$|\/(?:java|ecma)script/i,Et=/^true\/(.*)/,St=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,At={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:x.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},jt=dt(a),Dt=jt.appendChild(a.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===t?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||a).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(Ft(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&_t(Ft(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&x.cleanData(Ft(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&x.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(gt,""):t;if(!("string"!=typeof e||Tt.test(e)||!x.support.htmlSerialize&&mt.test(e)||!x.support.leadingWhitespace&&yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(vt,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(x.cleanData(Ft(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=d.apply([],e);var r,i,o,a,s,l,u=0,c=this.length,p=this,f=c-1,h=e[0],g=x.isFunction(h);if(g||!(1>=c||"string"!=typeof h||x.support.checkClone)&&Nt.test(h))return this.each(function(r){var i=p.eq(r);g&&(e[0]=h.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(l=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),r=l.firstChild,1===l.childNodes.length&&(l=r),r)){for(a=x.map(Ft(l,"script"),Ht),o=a.length;c>u;u++)i=l,u!==f&&(i=x.clone(i,!0,!0),o&&x.merge(a,Ft(i,"script"))),t.call(this[u],i,u);if(o)for(s=a[a.length-1].ownerDocument,x.map(a,qt),u=0;o>u;u++)i=a[u],kt.test(i.type||"")&&!x._data(i,"globalEval")&&x.contains(s,i)&&(i.src?x._evalUrl(i.src):x.globalEval((i.text||i.textContent||i.innerHTML||"").replace(St,"")));l=r=null}return this}});function Lt(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ht(e){return e.type=(null!==x.find.attr(e,"type"))+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _t(e,t){var n,r=0;for(;null!=(n=e[r]);r++)x._data(n,"globalEval",!t||x._data(t[r],"globalEval"))}function Mt(e,t){if(1===t.nodeType&&x.hasData(e)){var n,r,i,o=x._data(e),a=x._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)x.event.add(t,n,s[n][r])}a.data&&(a.data=x.extend({},a.data))}}function Ot(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!x.support.noCloneEvent&&t[x.expando]){i=x._data(t);for(r in i.events)x.removeEvent(t,r,i.handle);t.removeAttribute(x.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),x.support.html5Clone&&e.innerHTML&&!x.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ct.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=0,i=[],o=x(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),x(o[r])[t](n),h.apply(i,n.get());return this.pushStack(i)}});function Ft(e,n){var r,o,a=0,s=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!s)for(s=[],r=e.childNodes||e;null!=(o=r[a]);a++)!n||x.nodeName(o,n)?s.push(o):x.merge(s,Ft(o,n));return n===t||n&&x.nodeName(e,n)?x.merge([e],s):s}function Bt(e){Ct.test(e.type)&&(e.defaultChecked=e.checked)}x.extend({clone:function(e,t,n){var r,i,o,a,s,l=x.contains(e.ownerDocument,e);if(x.support.html5Clone||x.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(x.support.noCloneEvent&&x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(r=Ft(o),s=Ft(e),a=0;null!=(i=s[a]);++a)r[a]&&Ot(i,r[a]);if(t)if(n)for(s=s||Ft(e),r=r||Ft(o),a=0;null!=(i=s[a]);a++)Mt(i,r[a]);else Mt(e,o);return r=Ft(o,"script"),r.length>0&&_t(r,!l&&Ft(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,l,u,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===x.type(o))x.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),l=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[l]||At._default,s.innerHTML=c[1]+o.replace(vt,"<$1></$2>")+c[2],i=c[0];while(i--)s=s.lastChild;if(!x.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0])),!x.support.tbody){o="table"!==l||xt.test(o)?"<table>"!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;while(i--)x.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u)}x.merge(d,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.firstChild);s=f.lastChild}else d.push(t.createTextNode(o));s&&f.removeChild(s),x.support.appendChecked||x.grep(Ft(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===x.inArray(o,r))&&(a=x.contains(o.ownerDocument,o),s=Ft(f.appendChild(o),"script"),a&&_t(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&&n.push(o)}return s=null,f},cleanData:function(e,t){var n,r,o,a,s=0,l=x.expando,u=x.cache,c=x.support.deleteExpando,f=x.event.special;for(;null!=(n=e[s]);s++)if((t||x.acceptData(n))&&(o=n[l],a=o&&u[o])){if(a.events)for(r in a.events)f[r]?x.event.remove(n,r):x.removeEvent(n,r,a.handle); u[o]&&(delete u[o],c?delete n[l]:typeof n.removeAttribute!==i?n.removeAttribute(l):n[l]=null,p.push(o))}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),x.fn.extend({wrapAll:function(e){if(x.isFunction(e))return this.each(function(t){x(this).wrapAll(e.call(this,t))});if(this[0]){var t=x(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var Pt,Rt,Wt,$t=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Ut=/^margin/,Vt=RegExp("^("+w+")(.*)$","i"),Yt=RegExp("^("+w+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+w+")","i"),Gt={BODY:"block"},Qt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,o=[],a=0,s=e.length;for(;s>a;a++)r=e[a],r.style&&(o[a]=x._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=x._data(r,"olddisplay",ln(r.nodeName)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&x._data(r,"olddisplay",i?n:x.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}x.fn.extend({css:function(e,n){return x.access(this,function(e,n,r){var i,o,a={},s=0;if(x.isArray(n)){for(o=Rt(e),i=n.length;i>s;s++)a[n[s]]=x.css(e,n[s],!1,o);return a}return r!==t?x.style(e,n,r):x.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){nn(this)?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Wt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":x.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,l=x.camelCase(n),u=e.style;if(n=x.cssProps[l]||(x.cssProps[l]=tn(u,l)),s=x.cssHooks[n]||x.cssHooks[l],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:u[n];if(a=typeof r,"string"===a&&(o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(x.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||x.cssNumber[l]||(r+="px"),x.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(u[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{u[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,l=x.camelCase(n);return n=x.cssProps[l]||(x.cssProps[l]=tn(e.style,l)),s=x.cssHooks[n]||x.cssHooks[l],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=Wt(e,n,i)),"normal"===a&&n in Kt&&(a=Kt[n]),""===r||r?(o=parseFloat(a),r===!0||x.isNumeric(o)?o||0:a):a}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s.getPropertyValue(n)||s[n]:t,u=e.style;return s&&(""!==l||x.contains(e.ownerDocument,e)||(l=x.style(e,n)),Yt.test(l)&&Ut.test(n)&&(i=u.width,o=u.minWidth,a=u.maxWidth,u.minWidth=u.maxWidth=u.width=l,l=s.width,u.width=i,u.minWidth=o,u.maxWidth=a)),l}):a.documentElement.currentStyle&&(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s[n]:t,u=e.style;return null==l&&u&&u[n]&&(l=u[n]),Yt.test(l)&&!zt.test(n)&&(i=u.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),u.left="fontSize"===n?"1em":l,l=u.pixelLeft+"px",u.left=i,a&&(o.left=a)),""===l?"auto":l});function on(e,t,n){var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4>o;o+=2)"margin"===n&&(a+=x.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=x.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&&(a-=x.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=x.css(e,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=x.css(e,"border"+Zt[o]+"Width",!0,i)));return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Rt(e),a=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=Wt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Yt.test(i))return i;r=a&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function ln(e){var t=a,n=Gt[e];return n||(n=un(e,t),"none"!==n&&n||(Pt=(Pt||x("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(Pt[0].contentWindow||Pt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=un(e,t),Pt.detach()),Gt[e]=n),n}function un(e,t){var n=x(t.createElement(e)).appendTo(t.body),r=x.css(n[0],"display");return n.remove(),r}x.each(["height","width"],function(e,n){x.cssHooks[n]={get:function(e,r,i){return r?0===e.offsetWidth&&Xt.test(x.css(e,"display"))?x.swap(e,Qt,function(){return sn(e,n,i)}):sn(e,n,i):t},set:function(e,t,r){var i=r&&Rt(e);return on(e,t,r?an(e,n,r,x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,i),i):0)}}}),x.support.opacity||(x.cssHooks.opacity={get:function(e,t){return It.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=x.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===x.trim(o.replace($t,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=$t.test(o)?o.replace($t,i):o+" "+i)}}),x(function(){x.support.reliableMarginRight||(x.cssHooks.marginRight={get:function(e,n){return n?x.swap(e,{display:"inline-block"},Wt,[e,"marginRight"]):t}}),!x.support.pixelPosition&&x.fn.position&&x.each(["top","left"],function(e,n){x.cssHooks[n]={get:function(e,r){return r?(r=Wt(e,n),Yt.test(r)?x(e).position()[n]+"px":r):t}}})}),x.expr&&x.expr.filters&&(x.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight||!x.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||x.css(e,"display"))},x.expr.filters.visible=function(e){return!x.expr.filters.hidden(e)}),x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){var r=0,i={},o="string"==typeof n?n.split(" "):[n];for(;4>r;r++)i[e+Zt[r]+t]=o[r]||o[r-2]||o[0];return i}},Ut.test(e)||(x.cssHooks[e+t].set=on)});var cn=/%20/g,pn=/\[\]$/,fn=/\r?\n/g,dn=/^(?:submit|button|image|reset|file)$/i,hn=/^(?:input|select|textarea|keygen)/i;x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&hn.test(this.nodeName)&&!dn.test(e)&&(this.checked||!Ct.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:x.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(fn,"\r\n")}}):{name:t.name,value:n.replace(fn,"\r\n")}}).get()}}),x.param=function(e,n){var r,i=[],o=function(e,t){t=x.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=x.ajaxSettings&&x.ajaxSettings.traditional),x.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){o(this.name,this.value)});else for(r in e)gn(r,e[r],n,o);return i.join("&").replace(cn,"+")};function gn(e,t,n,r){var i;if(x.isArray(t))x.each(t,function(t,i){n||pn.test(e)?r(e,i):gn(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==x.type(t))r(e,t);else for(i in t)gn(e+"["+i+"]",t[i],n,r)}x.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),x.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var mn,yn,vn=x.now(),bn=/\?/,xn=/#.*$/,wn=/([?&])_=[^&]*/,Tn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Cn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Nn=/^(?:GET|HEAD)$/,kn=/^\/\//,En=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Sn=x.fn.load,An={},jn={},Dn="*/".concat("*");try{yn=o.href}catch(Ln){yn=a.createElement("a"),yn.href="",yn=yn.href}mn=En.exec(yn.toLowerCase())||[];function Hn(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(T)||[];if(x.isFunction(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function qn(e,n,r,i){var o={},a=e===jn;function s(l){var u;return o[l]=!0,x.each(e[l]||[],function(e,l){var c=l(n,r,i);return"string"!=typeof c||a||o[c]?a?!(u=c):t:(n.dataTypes.unshift(c),s(c),!1)}),u}return s(n.dataTypes[0])||!o["*"]&&s("*")}function _n(e,n){var r,i,o=x.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((o[i]?e:r||(r={}))[i]=n[i]);return r&&x.extend(!0,e,r),e}x.fn.load=function(e,n,r){if("string"!=typeof e&&Sn)return Sn.apply(this,arguments);var i,o,a,s=this,l=e.indexOf(" ");return l>=0&&(i=e.slice(l,e.length),e=e.slice(0,l)),x.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(a="POST"),s.length>0&&x.ajax({url:e,type:a,dataType:"html",data:n}).done(function(e){o=arguments,s.html(i?x("<div>").append(x.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Cn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":x.parseJSON,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_n(_n(e,x.ajaxSettings),t):_n(x.ajaxSettings,e)},ajaxPrefilter:Hn(An),ajaxTransport:Hn(jn),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,a,s,l,u,c,p=x.ajaxSetup({},n),f=p.context||p,d=p.context&&(f.nodeType||f.jquery)?x(f):x.event,h=x.Deferred(),g=x.Callbacks("once memory"),m=p.statusCode||{},y={},v={},b=0,w="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c){c={};while(t=Tn.exec(a))c[t[1].toLowerCase()]=t[2]}t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||w;return u&&u.abort(t),k(0,t),this}};if(h.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=x.trim(p.dataType||"*").toLowerCase().match(T)||[""],null==p.crossDomain&&(r=En.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(mn[3]||("http:"===mn[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),qn(An,p,n,C),2===b)return C;l=p.global,l&&0===x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Nn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(bn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(bn.test(o)?"&":"?")+"_="+vn++)),p.ifModified&&(x.lastModified[o]&&C.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&C.setRequestHeader("If-None-Match",x.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers)C.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(p.beforeSend.call(f,C,p)===!1||2===b))return C.abort();w="abort";for(i in{success:1,error:1,complete:1})C[i](p[i]);if(u=qn(jn,p,n,C)){C.readyState=1,l&&d.trigger("ajaxSend",[C,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){C.abort("timeout")},p.timeout));try{b=1,u.send(y,k)}catch(N){if(!(2>b))throw N;k(-1,N)}}else k(-1,"No Transport");function k(e,n,r,i){var c,y,v,w,T,N=n;2!==b&&(b=2,s&&clearTimeout(s),u=t,a=i||"",C.readyState=e>0?4:0,c=e>=200&&300>e||304===e,r&&(w=Mn(p,C,r)),w=On(p,w,C,c),c?(p.ifModified&&(T=C.getResponseHeader("Last-Modified"),T&&(x.lastModified[o]=T),T=C.getResponseHeader("etag"),T&&(x.etag[o]=T)),204===e||"HEAD"===p.type?N="nocontent":304===e?N="notmodified":(N=w.state,y=w.data,v=w.error,c=!v)):(v=N,(e||!N)&&(N="error",0>e&&(e=0))),C.status=e,C.statusText=(n||N)+"",c?h.resolveWith(f,[y,N,C]):h.rejectWith(f,[C,N,v]),C.statusCode(m),m=t,l&&d.trigger(c?"ajaxSuccess":"ajaxError",[C,p,c?y:v]),g.fireWith(f,[C,N]),l&&(d.trigger("ajaxComplete",[C,p]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,n){return x.get(e,t,n,"script")}}),x.each(["get","post"],function(e,n){x[n]=function(e,r,i,o){return x.isFunction(r)&&(o=o||i,i=r,r=t),x.ajax({url:e,type:n,dataType:o,data:r,success:i})}});function Mn(e,n,r){var i,o,a,s,l=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in l)if(l[s]&&l[s].test(o)){u.unshift(s);break}if(u[0]in r)a=u[0];else{for(s in r){if(!u[0]||e.converters[s+" "+u[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==u[0]&&u.unshift(a),r[a]):t}function On(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=u[l+" "+o]||u["* "+o],!a)for(i in u)if(s=i.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){a===!0?a=u[i]:u[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(p){return{state:"parsererror",error:a?p:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),x.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=a.head||x("head")[0]||a.documentElement;return{send:function(t,i){n=a.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var Fn=[],Bn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Fn.pop()||x.expando+"_"+vn++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,l=n.jsonp!==!1&&(Bn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bn.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=x.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||x.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,Fn.push(o)),s&&x.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Pn,Rn,Wn=0,$n=e.ActiveXObject&&function(){var e;for(e in Pn)Pn[e](t,!0)};function In(){try{return new e.XMLHttpRequest}catch(t){}}function zn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}x.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&In()||zn()}:In,Rn=x.ajaxSettings.xhr(),x.support.cors=!!Rn&&"withCredentials"in Rn,Rn=x.support.ajax=!!Rn,Rn&&x.ajaxTransport(function(n){if(!n.crossDomain||x.support.cors){var r;return{send:function(i,o){var a,s,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)l[s]=n.xhrFields[s];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)l.setRequestHeader(s,i[s])}catch(u){}l.send(n.hasContent&&n.data||null),r=function(e,i){var s,u,c,p;try{if(r&&(i||4===l.readyState))if(r=t,a&&(l.onreadystatechange=x.noop,$n&&delete Pn[a]),i)4!==l.readyState&&l.abort();else{p={},s=l.status,u=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(p.text=l.responseText);try{c=l.statusText}catch(f){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=p.text?200:404}}catch(d){i||o(-1,d)}p&&o(s,c,p,u)},n.async?4===l.readyState?setTimeout(r):(a=++Wn,$n&&(Pn||(Pn={},x(e).unload($n)),Pn[a]=r),l.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+w+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Yn.exec(t),o=i&&i[3]||(x.cssNumber[e]?"":"px"),a=(x.cssNumber[e]||"px"!==o&&+r)&&Yn.exec(x.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,x.style(n.elem,e,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--l)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};function Kn(){return setTimeout(function(){Xn=t}),Xn=x.now()}function Zn(e,t,n){var r,i=(Qn[t]||[]).concat(Qn["*"]),o=0,a=i.length;for(;a>o;o++)if(r=i[o].call(n,t,e))return r}function er(e,t,n){var r,i,o=0,a=Gn.length,s=x.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;var t=Xn||Kn(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,o=1-r,a=0,l=u.tweens.length;for(;l>a;a++)u.tweens[a].run(o);return s.notifyWith(e,[u,o,n]),1>o&&l?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(tr(c,u.opts.specialEasing);a>o;o++)if(r=Gn[o].call(u,e,c,u.opts))return r;return x.map(c,Zn,u),x.isFunction(u.opts.start)&&u.opts.start.call(e,u),x.fx.timer(x.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function tr(e,t){var n,r,i,o,a;for(n in e)if(r=x.camelCase(n),i=t[r],o=e[n],x.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=x.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}x.Animation=x.extend(er,{tweener:function(e,t){x.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],Qn[n]=Qn[n]||[],Qn[n].unshift(t)},prefilter:function(e,t){t?Gn.unshift(e):Gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,l,u=this,c={},p=e.style,f=e.nodeType&&nn(e),d=x._data(e,"fxshow");n.queue||(s=x._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,x.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===x.css(e,"display")&&"none"===x.css(e,"float")&&(x.support.inlineBlockNeedsLayout&&"inline"!==ln(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",x.support.shrinkWrapBlocks||u.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],Vn.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(f?"hide":"show"))continue;c[r]=d&&d[r]||x.style(e,r)}if(!x.isEmptyObject(c)){d?"hidden"in d&&(f=d.hidden):d=x._data(e,"fxshow",{}),o&&(d.hidden=!f),f?x(e).show():u.done(function(){x(e).hide()}),u.done(function(){var t;x._removeData(e,"fxshow");for(t in c)x.style(e,t,c[t])});for(r in c)a=Zn(f?d[r]:0,r,u),r in d||(d[r]=a.start,f&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}x.Tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];return this.pos=t=this.options.duration?x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=x.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[x.cssProps[e.prop]]||x.cssHooks[e.prop])?x.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=x.isEmptyObject(e),o=x.speed(t,n,r),a=function(){var t=er(this,x.extend({},e),o);(i||x._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=x.timers,a=x._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&Jn.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&x.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=x._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=x.timers,a=r?r.length:0;for(n.finish=!0,x.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Zt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}x.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||x.isFunction(e)&&e,duration:e,easing:n&&t||t&&!x.isFunction(t)&&t};return r.duration=x.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in x.fx.speeds?x.fx.speeds[r.duration]:x.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){x.isFunction(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},x.timers=[],x.fx=rr.prototype.init,x.fx.tick=function(){var e,n=x.timers,r=0;for(Xn=x.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||x.fx.stop(),Xn=t},x.fx.timer=function(e){e()&&x.timers.push(e)&&x.fx.start()},x.fx.interval=13,x.fx.start=function(){Un||(Un=setInterval(x.fx.tick,x.fx.interval))},x.fx.stop=function(){clearInterval(Un),Un=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fx.step={},x.expr&&x.expr.filters&&(x.expr.filters.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length}),x.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){x.offset.setOffset(this,e,t)});var n,r,o={top:0,left:0},a=this[0],s=a&&a.ownerDocument;if(s)return n=s.documentElement,x.contains(n,a)?(typeof a.getBoundingClientRect!==i&&(o=a.getBoundingClientRect()),r=or(s),{top:o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o},x.offset={setOffset:function(e,t,n){var r=x.css(e,"position");"static"===r&&(e.style.position="relative");var i=x(e),o=i.offset(),a=x.css(e,"top"),s=x.css(e,"left"),l=("absolute"===r||"fixed"===r)&&x.inArray("auto",[a,s])>-1,u={},c={},p,f;l?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0),x.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(u.top=t.top-o.top+p),null!=t.left&&(u.left=t.left-o.left+f),"using"in t?t.using.call(e,u):i.css(u)}},x.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===x.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),x.nodeName(e[0],"html")||(n=e.offset()),n.top+=x.css(e[0],"borderTopWidth",!0),n.left+=x.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-x.css(r,"marginTop",!0),left:t.left-n.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||s;while(e&&!x.nodeName(e,"html")&&"static"===x.css(e,"position"))e=e.offsetParent;return e||s})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);x.fn[e]=function(i){return x.access(this,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?x(a).scrollLeft():o,r?o:x(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return x.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}x.each({Height:"height",Width:"width"},function(e,n){x.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){x.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return x.access(this,function(n,r,i){var o;return x.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?x.css(n,r,s):x.style(n,r,i,s)},n,a?i:t,a,null)}})}),x.fn.size=function(){return this.length},x.fn.andSelf=x.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=x:(e.jQuery=e.$=x,"function"==typeof define&&define.amd&&define("jquery",[],function(){return x}))})(window);
actor-apps/app-web/src/app/components/modals/invite-user/ContactItem.react.js
Havi4/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import classnames from 'classnames'; import InviteUserStore from 'stores/InviteUserStore'; import { AsyncActionStates } from 'constants/ActorAppConstants'; import AvatarItem from 'components/common/AvatarItem.react'; import * as Stateful from 'components/common/Stateful.react'; const {addons: { PureRenderMixin }} = addons; const getStateFromStore = (props) => { const { contact } = props; return { inviteUserState: InviteUserStore.getInviteUserState(contact.uid) } }; @ReactMixin.decorate(PureRenderMixin) class ContactItem extends React.Component { static propTypes = { contact: React.PropTypes.object, onSelect: React.PropTypes.func, isMember: React.PropTypes.bool }; constructor(props) { super(props); this.state = getStateFromStore(props); } componentWillUnmount() { const { contact } = this.props; InviteUserStore.resetInviteUserState(contact.uid); } onSelect = () => { const { contact } = this.props; InviteUserStore.addChangeListener(this.onChange); this.props.onSelect(contact); }; onChange = () => { this.setState(getStateFromStore(this.props)); setTimeout(() => { const { inviteUserState } = this.state; if (inviteUserState === AsyncActionStates.SUCCESS || inviteUserState === AsyncActionStates.FAILURE) { InviteUserStore.removeChangeListener(this.onChange); } }, 0); }; render() { const { contact, isMember } = this.props; const { inviteUserState } = this.state; const contactClassName = classnames('contacts__list__item row', { 'contacts__list__item--member': isMember }); const controls = isMember ? <i className="material-icons">check</i> : <Stateful.Root currentState={inviteUserState}> <Stateful.Pending> <a className="material-icons" onClick={this.onSelect}>person_add</a> </Stateful.Pending> <Stateful.Processing> <i className="material-icons spin">autorenew</i> </Stateful.Processing> <Stateful.Success> <i className="material-icons">check</i> </Stateful.Success> <Stateful.Failure> <i className="material-icons">warning</i> </Stateful.Failure> </Stateful.Root>; return ( <li className={contactClassName}> <AvatarItem image={contact.avatar} placeholder={contact.placeholder} size="small" title={contact.name}/> <div className="col-xs"> <span className="title"> {contact.name} </span> </div> <div className="controls"> {controls} </div> </li> ); } } export default ContactItem;
ajax/libs/onsen/1.3.2/js/onsenui.js
dakshshah96/cdnjs
/*! onsenui - v1.3.2 - 2015-05-12 */ // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // JavaScript Dynamic Content shim for Windows Store apps (function () { if (window.MSApp && MSApp.execUnsafeLocalFunction) { // Some nodes will have an "attributes" property which shadows the Node.prototype.attributes property // and means we don't actually see the attributes of the Node (interestingly the VS debug console // appears to suffer from the same issue). // var Element_setAttribute = Object.getOwnPropertyDescriptor(Element.prototype, "setAttribute").value; var Element_removeAttribute = Object.getOwnPropertyDescriptor(Element.prototype, "removeAttribute").value; var HTMLElement_insertAdjacentHTMLPropertyDescriptor = Object.getOwnPropertyDescriptor(HTMLElement.prototype, "insertAdjacentHTML"); var Node_get_attributes = Object.getOwnPropertyDescriptor(Node.prototype, "attributes").get; var Node_get_childNodes = Object.getOwnPropertyDescriptor(Node.prototype, "childNodes").get; var detectionDiv = document.createElement("div"); function getAttributes(element) { return Node_get_attributes.call(element); } function setAttribute(element, attribute, value) { try { Element_setAttribute.call(element, attribute, value); } catch (e) { // ignore } } function removeAttribute(element, attribute) { Element_removeAttribute.call(element, attribute); } function childNodes(element) { return Node_get_childNodes.call(element); } function empty(element) { while (element.childNodes.length) { element.removeChild(element.lastChild); } } function insertAdjacentHTML(element, position, html) { HTMLElement_insertAdjacentHTMLPropertyDescriptor.value.call(element, position, html); } function inUnsafeMode() { var isUnsafe = true; try { detectionDiv.innerHTML = "<test/>"; } catch (ex) { isUnsafe = false; } return isUnsafe; } function cleanse(html, targetElement) { var cleaner = document.implementation.createHTMLDocument("cleaner"); empty(cleaner.documentElement); MSApp.execUnsafeLocalFunction(function () { insertAdjacentHTML(cleaner.documentElement, "afterbegin", html); }); var scripts = cleaner.documentElement.querySelectorAll("script"); Array.prototype.forEach.call(scripts, function (script) { switch (script.type.toLowerCase()) { case "": script.type = "text/inert"; break; case "text/javascript": case "text/ecmascript": case "text/x-javascript": case "text/jscript": case "text/livescript": case "text/javascript1.1": case "text/javascript1.2": case "text/javascript1.3": script.type = "text/inert-" + script.type.slice("text/".length); break; case "application/javascript": case "application/ecmascript": case "application/x-javascript": script.type = "application/inert-" + script.type.slice("application/".length); break; default: break; } }); function cleanseAttributes(element) { var attributes = getAttributes(element); if (attributes && attributes.length) { // because the attributes collection is live it is simpler to queue up the renames var events; for (var i = 0, len = attributes.length; i < len; i++) { var attribute = attributes[i]; var name = attribute.name; if ((name[0] === "o" || name[0] === "O") && (name[1] === "n" || name[1] === "N")) { events = events || []; events.push({ name: attribute.name, value: attribute.value }); } } if (events) { for (var i = 0, len = events.length; i < len; i++) { var attribute = events[i]; removeAttribute(element, attribute.name); setAttribute(element, "x-" + attribute.name, attribute.value); } } } var children = childNodes(element); for (var i = 0, len = children.length; i < len; i++) { cleanseAttributes(children[i]); } } cleanseAttributes(cleaner.documentElement); var cleanedNodes = []; if (targetElement.tagName === 'HTML') { cleanedNodes = Array.prototype.slice.call(document.adoptNode(cleaner.documentElement).childNodes); } else { if (cleaner.head) { cleanedNodes = cleanedNodes.concat(Array.prototype.slice.call(document.adoptNode(cleaner.head).childNodes)); } if (cleaner.body) { cleanedNodes = cleanedNodes.concat(Array.prototype.slice.call(document.adoptNode(cleaner.body).childNodes)); } } return cleanedNodes; } function cleansePropertySetter(property, setter) { var propertyDescriptor = Object.getOwnPropertyDescriptor(HTMLElement.prototype, property); var originalSetter = propertyDescriptor.set; Object.defineProperty(HTMLElement.prototype, property, { get: propertyDescriptor.get, set: function (value) { if(window.WinJS && window.WinJS._execUnsafe && inUnsafeMode()) { originalSetter.call(this, value); } else { var that = this; var nodes = cleanse(value, that); MSApp.execUnsafeLocalFunction(function () { setter(propertyDescriptor, that, nodes); }); } }, enumerable: propertyDescriptor.enumerable, configurable: propertyDescriptor.configurable, }); } cleansePropertySetter("innerHTML", function (propertyDescriptor, target, elements) { empty(target); for (var i = 0, len = elements.length; i < len; i++) { target.appendChild(elements[i]); } }); cleansePropertySetter("outerHTML", function (propertyDescriptor, target, elements) { for (var i = 0, len = elements.length; i < len; i++) { target.insertAdjacentElement("afterend", elements[i]); } target.parentNode.removeChild(target); }); } }()); /* Simple JavaScript Inheritance * By John Resig http://ejohn.org/ * MIT Licensed. */ // Inspired by base2 and Prototype (function(){ var initializing = false, fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/; // The base Class implementation (does nothing) this.Class = function(){}; // Create a new Class that inherits from this class Class.extend = function(prop) { var _super = this.prototype; // Instantiate a base class (but only create the instance, // don't run the init constructor) initializing = true; var prototype = new this(); initializing = false; // Copy the properties over onto the new prototype for (var name in prop) { // Check if we're overwriting an existing function prototype[name] = typeof prop[name] == "function" && typeof _super[name] == "function" && fnTest.test(prop[name]) ? (function(name, fn){ return function() { var tmp = this._super; // Add a new ._super() method that is the same method // but on the super-class this._super = _super[name]; // The method only need to be bound temporarily, so we // remove it when we're done executing var ret = fn.apply(this, arguments); this._super = tmp; return ret; }; })(name, prop[name]) : prop[name]; } // The dummy class constructor function Class() { // All construction is actually done in the init method if ( !initializing && this.init ) this.init.apply(this, arguments); } // Populate our constructed prototype object Class.prototype = prototype; // Enforce the constructor to be what we expect Class.prototype.constructor = Class; // And make this class extendable Class.extend = arguments.callee; return Class; }; })(); ;(function () { 'use strict'; /** * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs. * * @codingstandard ftlabs-jsv2 * @copyright The Financial Times Limited [All Rights Reserved] * @license MIT License (see LICENSE.txt) */ /*jslint browser:true, node:true*/ /*global define, Event, Node*/ /** * Instantiate fast-clicking listeners on the specified layer. * * @constructor * @param {Element} layer The layer to listen on * @param {Object} [options={}] The options to override the defaults */ function FastClick(layer, options) { var oldOnClick; options = options || {}; /** * Whether a click is currently being tracked. * * @type boolean */ this.trackingClick = false; /** * Timestamp for when click tracking started. * * @type number */ this.trackingClickStart = 0; /** * The element being tracked for a click. * * @type EventTarget */ this.targetElement = null; /** * X-coordinate of touch start event. * * @type number */ this.touchStartX = 0; /** * Y-coordinate of touch start event. * * @type number */ this.touchStartY = 0; /** * ID of the last touch, retrieved from Touch.identifier. * * @type number */ this.lastTouchIdentifier = 0; /** * Touchmove boundary, beyond which a click will be cancelled. * * @type number */ this.touchBoundary = options.touchBoundary || 10; /** * The FastClick layer. * * @type Element */ this.layer = layer; /** * The minimum time between tap(touchstart and touchend) events * * @type number */ this.tapDelay = options.tapDelay || 200; /** * The maximum time for a tap * * @type number */ this.tapTimeout = options.tapTimeout || 700; if (FastClick.notNeeded(layer)) { return; } // Some old versions of Android don't have Function.prototype.bind function bind(method, context) { return function() { return method.apply(context, arguments); }; } var methods = ['onMouse', 'onClick', 'onTouchStart', 'onTouchMove', 'onTouchEnd', 'onTouchCancel']; var context = this; for (var i = 0, l = methods.length; i < l; i++) { context[methods[i]] = bind(context[methods[i]], context); } // Set up event handlers as required if (deviceIsAndroid) { layer.addEventListener('mouseover', this.onMouse, true); layer.addEventListener('mousedown', this.onMouse, true); layer.addEventListener('mouseup', this.onMouse, true); } layer.addEventListener('click', this.onClick, true); layer.addEventListener('touchstart', this.onTouchStart, false); layer.addEventListener('touchmove', this.onTouchMove, false); layer.addEventListener('touchend', this.onTouchEnd, false); layer.addEventListener('touchcancel', this.onTouchCancel, false); // Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2) // which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick // layer when they are cancelled. if (!Event.prototype.stopImmediatePropagation) { layer.removeEventListener = function(type, callback, capture) { var rmv = Node.prototype.removeEventListener; if (type === 'click') { rmv.call(layer, type, callback.hijacked || callback, capture); } else { rmv.call(layer, type, callback, capture); } }; layer.addEventListener = function(type, callback, capture) { var adv = Node.prototype.addEventListener; if (type === 'click') { adv.call(layer, type, callback.hijacked || (callback.hijacked = function(event) { if (!event.propagationStopped) { callback(event); } }), capture); } else { adv.call(layer, type, callback, capture); } }; } // If a handler is already declared in the element's onclick attribute, it will be fired before // FastClick's onClick handler. Fix this by pulling out the user-defined handler function and // adding it as listener. if (typeof layer.onclick === 'function') { // Android browser on at least 3.2 requires a new reference to the function in layer.onclick // - the old one won't work if passed to addEventListener directly. oldOnClick = layer.onclick; layer.addEventListener('click', function(event) { oldOnClick(event); }, false); layer.onclick = null; } } /** * Windows Phone 8.1 fakes user agent string to look like Android and iPhone. * * @type boolean */ var deviceIsWindowsPhone = navigator.userAgent.indexOf("Windows Phone") >= 0; /** * Android requires exceptions. * * @type boolean */ var deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0 && !deviceIsWindowsPhone; /** * iOS requires exceptions. * * @type boolean */ var deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent) && !deviceIsWindowsPhone; /** * iOS 4 requires an exception for select elements. * * @type boolean */ var deviceIsIOS4 = deviceIsIOS && (/OS 4_\d(_\d)?/).test(navigator.userAgent); /** * iOS 6.0-7.* requires the target element to be manually derived * * @type boolean */ var deviceIsIOSWithBadTarget = deviceIsIOS && (/OS [6-7]_\d/).test(navigator.userAgent); /** * BlackBerry requires exceptions. * * @type boolean */ var deviceIsBlackBerry10 = navigator.userAgent.indexOf('BB10') > 0; /** * Determine whether a given element requires a native click. * * @param {EventTarget|Element} target Target DOM element * @returns {boolean} Returns true if the element needs a native click */ FastClick.prototype.needsClick = function(target) { switch (target.nodeName.toLowerCase()) { // Don't send a synthetic click to disabled inputs (issue #62) case 'button': case 'select': case 'textarea': if (target.disabled) { return true; } break; case 'input': // File inputs need real clicks on iOS 6 due to a browser bug (issue #68) if ((deviceIsIOS && target.type === 'file') || target.disabled) { return true; } break; case 'label': case 'iframe': // iOS8 homescreen apps can prevent events bubbling into frames case 'video': return true; } return (/\bneedsclick\b/).test(target.className); }; /** * Determine whether a given element requires a call to focus to simulate click into element. * * @param {EventTarget|Element} target Target DOM element * @returns {boolean} Returns true if the element requires a call to focus to simulate native click. */ FastClick.prototype.needsFocus = function(target) { switch (target.nodeName.toLowerCase()) { case 'textarea': return true; case 'select': return !deviceIsAndroid; case 'input': switch (target.type) { case 'button': case 'checkbox': case 'file': case 'image': case 'radio': case 'submit': return false; } // No point in attempting to focus disabled inputs return !target.disabled && !target.readOnly; default: return (/\bneedsfocus\b/).test(target.className); } }; /** * Send a click event to the specified element. * * @param {EventTarget|Element} targetElement * @param {Event} event */ FastClick.prototype.sendClick = function(targetElement, event) { var clickEvent, touch; // On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24) if (document.activeElement && document.activeElement !== targetElement) { document.activeElement.blur(); } touch = event.changedTouches[0]; // Synthesise a click event, with an extra attribute so it can be tracked clickEvent = document.createEvent('MouseEvents'); clickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null); clickEvent.forwardedTouchEvent = true; targetElement.dispatchEvent(clickEvent); }; FastClick.prototype.determineEventType = function(targetElement) { //Issue #159: Android Chrome Select Box does not open with a synthetic click event if (deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') { return 'mousedown'; } return 'click'; }; /** * @param {EventTarget|Element} targetElement */ FastClick.prototype.focus = function(targetElement) { var length; // Issue #160: on iOS 7, some input elements (e.g. date datetime month) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724. if (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time' && targetElement.type !== 'month') { length = targetElement.value.length; targetElement.setSelectionRange(length, length); } else { targetElement.focus(); } }; /** * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it. * * @param {EventTarget|Element} targetElement */ FastClick.prototype.updateScrollParent = function(targetElement) { var scrollParent, parentElement; scrollParent = targetElement.fastClickScrollParent; // Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the // target element was moved to another parent. if (!scrollParent || !scrollParent.contains(targetElement)) { parentElement = targetElement; do { if (parentElement.scrollHeight > parentElement.offsetHeight) { scrollParent = parentElement; targetElement.fastClickScrollParent = parentElement; break; } parentElement = parentElement.parentElement; } while (parentElement); } // Always update the scroll top tracker if possible. if (scrollParent) { scrollParent.fastClickLastScrollTop = scrollParent.scrollTop; } }; /** * @param {EventTarget} targetElement * @returns {Element|EventTarget} */ FastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) { // On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node. if (eventTarget.nodeType === Node.TEXT_NODE) { return eventTarget.parentNode; } return eventTarget; }; /** * On touch start, record the position and scroll offset. * * @param {Event} event * @returns {boolean} */ FastClick.prototype.onTouchStart = function(event) { var targetElement, touch, selection; // Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111). if (event.targetTouches.length > 1) { return true; } targetElement = this.getTargetElementFromEventTarget(event.target); touch = event.targetTouches[0]; if (deviceIsIOS) { // Only trusted events will deselect text on iOS (issue #49) selection = window.getSelection(); if (selection.rangeCount && !selection.isCollapsed) { return true; } if (!deviceIsIOS4) { // Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23): // when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched // with the same identifier as the touch event that previously triggered the click that triggered the alert. // Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an // immediately preceeding touch event (issue #52), so this fix is unavailable on that platform. // Issue 120: touch.identifier is 0 when Chrome dev tools 'Emulate touch events' is set with an iOS device UA string, // which causes all touch events to be ignored. As this block only applies to iOS, and iOS identifiers are always long, // random integers, it's safe to to continue if the identifier is 0 here. if (touch.identifier && touch.identifier === this.lastTouchIdentifier) { event.preventDefault(); return false; } this.lastTouchIdentifier = touch.identifier; // If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and: // 1) the user does a fling scroll on the scrollable layer // 2) the user stops the fling scroll with another tap // then the event.target of the last 'touchend' event will be the element that was under the user's finger // when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check // is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42). this.updateScrollParent(targetElement); } } this.trackingClick = true; this.trackingClickStart = event.timeStamp; this.targetElement = targetElement; this.touchStartX = touch.pageX; this.touchStartY = touch.pageY; // Prevent phantom clicks on fast double-tap (issue #36) if ((event.timeStamp - this.lastClickTime) < this.tapDelay) { event.preventDefault(); } return true; }; /** * Based on a touchmove event object, check whether the touch has moved past a boundary since it started. * * @param {Event} event * @returns {boolean} */ FastClick.prototype.touchHasMoved = function(event) { var touch = event.changedTouches[0], boundary = this.touchBoundary; if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) { return true; } return false; }; /** * Update the last position. * * @param {Event} event * @returns {boolean} */ FastClick.prototype.onTouchMove = function(event) { if (!this.trackingClick) { return true; } // If the touch has moved, cancel the click tracking if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) { this.trackingClick = false; this.targetElement = null; } return true; }; /** * Attempt to find the labelled control for the given label element. * * @param {EventTarget|HTMLLabelElement} labelElement * @returns {Element|null} */ FastClick.prototype.findControl = function(labelElement) { // Fast path for newer browsers supporting the HTML5 control attribute if (labelElement.control !== undefined) { return labelElement.control; } // All browsers under test that support touch events also support the HTML5 htmlFor attribute if (labelElement.htmlFor) { return document.getElementById(labelElement.htmlFor); } // If no for attribute exists, attempt to retrieve the first labellable descendant element // the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label return labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea'); }; /** * On touch end, determine whether to send a click event at once. * * @param {Event} event * @returns {boolean} */ FastClick.prototype.onTouchEnd = function(event) { var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement; if (!this.trackingClick) { return true; } // Prevent phantom clicks on fast double-tap (issue #36) if ((event.timeStamp - this.lastClickTime) < this.tapDelay) { this.cancelNextClick = true; return true; } if ((event.timeStamp - this.trackingClickStart) > this.tapTimeout) { return true; } // Reset to prevent wrong click cancel on input (issue #156). this.cancelNextClick = false; this.lastClickTime = event.timeStamp; trackingClickStart = this.trackingClickStart; this.trackingClick = false; this.trackingClickStart = 0; // On some iOS devices, the targetElement supplied with the event is invalid if the layer // is performing a transition or scroll, and has to be re-detected manually. Note that // for this to function correctly, it must be called *after* the event target is checked! // See issue #57; also filed as rdar://13048589 . if (deviceIsIOSWithBadTarget) { touch = event.changedTouches[0]; // In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement; targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent; } targetTagName = targetElement.tagName.toLowerCase(); if (targetTagName === 'label') { forElement = this.findControl(targetElement); if (forElement) { this.focus(targetElement); if (deviceIsAndroid) { return false; } targetElement = forElement; } } else if (this.needsFocus(targetElement)) { // Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through. // Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37). if ((event.timeStamp - trackingClickStart) > 100 || (deviceIsIOS && window.top !== window && targetTagName === 'input')) { this.targetElement = null; return false; } this.focus(targetElement); this.sendClick(targetElement, event); // Select elements need the event to go through on iOS 4, otherwise the selector menu won't open. // Also this breaks opening selects when VoiceOver is active on iOS6, iOS7 (and possibly others) if (!deviceIsIOS || targetTagName !== 'select') { this.targetElement = null; event.preventDefault(); } return false; } if (deviceIsIOS && !deviceIsIOS4) { // Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled // and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42). scrollParent = targetElement.fastClickScrollParent; if (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) { return true; } } // Prevent the actual click from going though - unless the target node is marked as requiring // real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted. if (!this.needsClick(targetElement)) { event.preventDefault(); this.sendClick(targetElement, event); } return false; }; /** * On touch cancel, stop tracking the click. * * @returns {void} */ FastClick.prototype.onTouchCancel = function() { this.trackingClick = false; this.targetElement = null; }; /** * Determine mouse events which should be permitted. * * @param {Event} event * @returns {boolean} */ FastClick.prototype.onMouse = function(event) { // If a target element was never set (because a touch event was never fired) allow the event if (!this.targetElement) { return true; } if (event.forwardedTouchEvent) { return true; } // Programmatically generated events targeting a specific element should be permitted if (!event.cancelable) { return true; } // Derive and check the target element to see whether the mouse event needs to be permitted; // unless explicitly enabled, prevent non-touch click events from triggering actions, // to prevent ghost/doubleclicks. if (!this.needsClick(this.targetElement) || this.cancelNextClick) { // Prevent any user-added listeners declared on FastClick element from being fired. if (event.stopImmediatePropagation) { event.stopImmediatePropagation(); } else { // Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2) event.propagationStopped = true; } // Cancel the event event.stopPropagation(); event.preventDefault(); return false; } // If the mouse event is permitted, return true for the action to go through. return true; }; /** * On actual clicks, determine whether this is a touch-generated click, a click action occurring * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or * an actual click which should be permitted. * * @param {Event} event * @returns {boolean} */ FastClick.prototype.onClick = function(event) { var permitted; // It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early. if (this.trackingClick) { this.targetElement = null; this.trackingClick = false; return true; } // Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target. if (event.target.type === 'submit' && event.detail === 0) { return true; } permitted = this.onMouse(event); // Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through. if (!permitted) { this.targetElement = null; } // If clicks are permitted, return true for the action to go through. return permitted; }; /** * Remove all FastClick's event listeners. * * @returns {void} */ FastClick.prototype.destroy = function() { var layer = this.layer; if (deviceIsAndroid) { layer.removeEventListener('mouseover', this.onMouse, true); layer.removeEventListener('mousedown', this.onMouse, true); layer.removeEventListener('mouseup', this.onMouse, true); } layer.removeEventListener('click', this.onClick, true); layer.removeEventListener('touchstart', this.onTouchStart, false); layer.removeEventListener('touchmove', this.onTouchMove, false); layer.removeEventListener('touchend', this.onTouchEnd, false); layer.removeEventListener('touchcancel', this.onTouchCancel, false); }; /** * Check whether FastClick is needed. * * @param {Element} layer The layer to listen on */ FastClick.notNeeded = function(layer) { var metaViewport; var chromeVersion; var blackberryVersion; var firefoxVersion; // Devices that don't support touch don't need FastClick if (typeof window.ontouchstart === 'undefined') { return true; } // Chrome version - zero for other browsers chromeVersion = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1]; if (chromeVersion) { if (deviceIsAndroid) { metaViewport = document.querySelector('meta[name=viewport]'); if (metaViewport) { // Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89) if (metaViewport.content.indexOf('user-scalable=no') !== -1) { return true; } // Chrome 32 and above with width=device-width or less don't need FastClick if (chromeVersion > 31 && document.documentElement.scrollWidth <= window.outerWidth) { return true; } } // Chrome desktop doesn't need FastClick (issue #15) } else { return true; } } if (deviceIsBlackBerry10) { blackberryVersion = navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/); // BlackBerry 10.3+ does not require Fastclick library. // https://github.com/ftlabs/fastclick/issues/251 if (blackberryVersion[1] >= 10 && blackberryVersion[2] >= 3) { metaViewport = document.querySelector('meta[name=viewport]'); if (metaViewport) { // user-scalable=no eliminates click delay. if (metaViewport.content.indexOf('user-scalable=no') !== -1) { return true; } // width=device-width (or less than device-width) eliminates click delay. if (document.documentElement.scrollWidth <= window.outerWidth) { return true; } } } } // IE10 with -ms-touch-action: none or manipulation, which disables double-tap-to-zoom (issue #97) if (layer.style.msTouchAction === 'none' || layer.style.touchAction === 'manipulation') { return true; } // Firefox version - zero for other browsers firefoxVersion = +(/Firefox\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1]; if (firefoxVersion >= 27) { // Firefox 27+ does not have tap delay if the content is not zoomable - https://bugzilla.mozilla.org/show_bug.cgi?id=922896 metaViewport = document.querySelector('meta[name=viewport]'); if (metaViewport && (metaViewport.content.indexOf('user-scalable=no') !== -1 || document.documentElement.scrollWidth <= window.outerWidth)) { return true; } } // IE11: prefixed -ms-touch-action is no longer supported and it's recomended to use non-prefixed version // http://msdn.microsoft.com/en-us/library/windows/apps/Hh767313.aspx if (layer.style.touchAction === 'none' || layer.style.touchAction === 'manipulation') { return true; } return false; }; /** * Factory method for creating a FastClick object * * @param {Element} layer The layer to listen on * @param {Object} [options={}] The options to override the defaults */ FastClick.attach = function(layer, options) { return new FastClick(layer, options); }; if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) { // AMD. Register as an anonymous module. define(function() { return FastClick; }); } else if (typeof module !== 'undefined' && module.exports) { module.exports = FastClick.attach; module.exports.FastClick = FastClick; } else { window.FastClick = FastClick; } }()); /*! Hammer.JS - v1.1.3 - 2014-05-20 * http://eightmedia.github.io/hammer.js * * Copyright (c) 2014 Jorik Tangelder <j.tangelder@gmail.com>; * Licensed under the MIT license */ (function(window, undefined) { 'use strict'; /** * @main * @module hammer * * @class Hammer * @static */ /** * Hammer, use this to create instances * ```` * var hammertime = new Hammer(myElement); * ```` * * @method Hammer * @param {HTMLElement} element * @param {Object} [options={}] * @return {Hammer.Instance} */ var Hammer = function Hammer(element, options) { return new Hammer.Instance(element, options || {}); }; /** * version, as defined in package.json * the value will be set at each build * @property VERSION * @final * @type {String} */ Hammer.VERSION = '1.1.3'; /** * default settings. * more settings are defined per gesture at `/gestures`. Each gesture can be disabled/enabled * by setting it's name (like `swipe`) to false. * You can set the defaults for all instances by changing this object before creating an instance. * @example * ```` * Hammer.defaults.drag = false; * Hammer.defaults.behavior.touchAction = 'pan-y'; * delete Hammer.defaults.behavior.userSelect; * ```` * @property defaults * @type {Object} */ Hammer.defaults = { /** * this setting object adds styles and attributes to the element to prevent the browser from doing * its native behavior. The css properties are auto prefixed for the browsers when needed. * @property defaults.behavior * @type {Object} */ behavior: { /** * Disables text selection to improve the dragging gesture. When the value is `none` it also sets * `onselectstart=false` for IE on the element. Mainly for desktop browsers. * @property defaults.behavior.userSelect * @type {String} * @default 'none' */ userSelect: 'none', /** * Specifies whether and how a given region can be manipulated by the user (for instance, by panning or zooming). * Used by Chrome 35> and IE10>. By default this makes the element blocking any touch event. * @property defaults.behavior.touchAction * @type {String} * @default: 'pan-y' */ touchAction: 'pan-y', /** * Disables the default callout shown when you touch and hold a touch target. * On iOS, when you touch and hold a touch target such as a link, Safari displays * a callout containing information about the link. This property allows you to disable that callout. * @property defaults.behavior.touchCallout * @type {String} * @default 'none' */ touchCallout: 'none', /** * Specifies whether zooming is enabled. Used by IE10> * @property defaults.behavior.contentZooming * @type {String} * @default 'none' */ contentZooming: 'none', /** * Specifies that an entire element should be draggable instead of its contents. * Mainly for desktop browsers. * @property defaults.behavior.userDrag * @type {String} * @default 'none' */ userDrag: 'none', /** * Overrides the highlight color shown when the user taps a link or a JavaScript * clickable element in Safari on iPhone. This property obeys the alpha value, if specified. * * If you don't specify an alpha value, Safari on iPhone applies a default alpha value * to the color. To disable tap highlighting, set the alpha value to 0 (invisible). * If you set the alpha value to 1.0 (opaque), the element is not visible when tapped. * @property defaults.behavior.tapHighlightColor * @type {String} * @default 'rgba(0,0,0,0)' */ tapHighlightColor: 'rgba(0,0,0,0)' } }; /** * hammer document where the base events are added at * @property DOCUMENT * @type {HTMLElement} * @default window.document */ Hammer.DOCUMENT = document; /** * detect support for pointer events * @property HAS_POINTEREVENTS * @type {Boolean} */ Hammer.HAS_POINTEREVENTS = navigator.pointerEnabled || navigator.msPointerEnabled; /** * detect support for touch events * @property HAS_TOUCHEVENTS * @type {Boolean} */ Hammer.HAS_TOUCHEVENTS = ('ontouchstart' in window); /** * detect mobile browsers * @property IS_MOBILE * @type {Boolean} */ Hammer.IS_MOBILE = /mobile|tablet|ip(ad|hone|od)|android|silk/i.test(navigator.userAgent); /** * detect if we want to support mouseevents at all * @property NO_MOUSEEVENTS * @type {Boolean} */ Hammer.NO_MOUSEEVENTS = (Hammer.HAS_TOUCHEVENTS && Hammer.IS_MOBILE) || Hammer.HAS_POINTEREVENTS; /** * interval in which Hammer recalculates current velocity/direction/angle in ms * @property CALCULATE_INTERVAL * @type {Number} * @default 25 */ Hammer.CALCULATE_INTERVAL = 25; /** * eventtypes per touchevent (start, move, end) are filled by `Event.determineEventTypes` on `setup` * the object contains the DOM event names per type (`EVENT_START`, `EVENT_MOVE`, `EVENT_END`) * @property EVENT_TYPES * @private * @writeOnce * @type {Object} */ var EVENT_TYPES = {}; /** * direction strings, for safe comparisons * @property DIRECTION_DOWN|LEFT|UP|RIGHT * @final * @type {String} * @default 'down' 'left' 'up' 'right' */ var DIRECTION_DOWN = Hammer.DIRECTION_DOWN = 'down'; var DIRECTION_LEFT = Hammer.DIRECTION_LEFT = 'left'; var DIRECTION_UP = Hammer.DIRECTION_UP = 'up'; var DIRECTION_RIGHT = Hammer.DIRECTION_RIGHT = 'right'; /** * pointertype strings, for safe comparisons * @property POINTER_MOUSE|TOUCH|PEN * @final * @type {String} * @default 'mouse' 'touch' 'pen' */ var POINTER_MOUSE = Hammer.POINTER_MOUSE = 'mouse'; var POINTER_TOUCH = Hammer.POINTER_TOUCH = 'touch'; var POINTER_PEN = Hammer.POINTER_PEN = 'pen'; /** * eventtypes * @property EVENT_START|MOVE|END|RELEASE|TOUCH * @final * @type {String} * @default 'start' 'change' 'move' 'end' 'release' 'touch' */ var EVENT_START = Hammer.EVENT_START = 'start'; var EVENT_MOVE = Hammer.EVENT_MOVE = 'move'; var EVENT_END = Hammer.EVENT_END = 'end'; var EVENT_RELEASE = Hammer.EVENT_RELEASE = 'release'; var EVENT_TOUCH = Hammer.EVENT_TOUCH = 'touch'; /** * if the window events are set... * @property READY * @writeOnce * @type {Boolean} * @default false */ Hammer.READY = false; /** * plugins namespace * @property plugins * @type {Object} */ Hammer.plugins = Hammer.plugins || {}; /** * gestures namespace * see `/gestures` for the definitions * @property gestures * @type {Object} */ Hammer.gestures = Hammer.gestures || {}; /** * setup events to detect gestures on the document * this function is called when creating an new instance * @private */ function setup() { if(Hammer.READY) { return; } // find what eventtypes we add listeners to Event.determineEventTypes(); // Register all gestures inside Hammer.gestures Utils.each(Hammer.gestures, function(gesture) { Detection.register(gesture); }); // Add touch events on the document Event.onTouch(Hammer.DOCUMENT, EVENT_MOVE, Detection.detect); Event.onTouch(Hammer.DOCUMENT, EVENT_END, Detection.detect); // Hammer is ready...! Hammer.READY = true; } /** * @module hammer * * @class Utils * @static */ var Utils = Hammer.utils = { /** * extend method, could also be used for cloning when `dest` is an empty object. * changes the dest object * @method extend * @param {Object} dest * @param {Object} src * @param {Boolean} [merge=false] do a merge * @return {Object} dest */ extend: function extend(dest, src, merge) { for(var key in src) { if(!src.hasOwnProperty(key) || (dest[key] !== undefined && merge)) { continue; } dest[key] = src[key]; } return dest; }, /** * simple addEventListener wrapper * @method on * @param {HTMLElement} element * @param {String} type * @param {Function} handler */ on: function on(element, type, handler) { element.addEventListener(type, handler, false); }, /** * simple removeEventListener wrapper * @method off * @param {HTMLElement} element * @param {String} type * @param {Function} handler */ off: function off(element, type, handler) { element.removeEventListener(type, handler, false); }, /** * forEach over arrays and objects * @method each * @param {Object|Array} obj * @param {Function} iterator * @param {any} iterator.item * @param {Number} iterator.index * @param {Object|Array} iterator.obj the source object * @param {Object} context value to use as `this` in the iterator */ each: function each(obj, iterator, context) { var i, len; // native forEach on arrays if('forEach' in obj) { obj.forEach(iterator, context); // arrays } else if(obj.length !== undefined) { for(i = 0, len = obj.length; i < len; i++) { if(iterator.call(context, obj[i], i, obj) === false) { return; } } // objects } else { for(i in obj) { if(obj.hasOwnProperty(i) && iterator.call(context, obj[i], i, obj) === false) { return; } } } }, /** * find if a string contains the string using indexOf * @method inStr * @param {String} src * @param {String} find * @return {Boolean} found */ inStr: function inStr(src, find) { return src.indexOf(find) > -1; }, /** * find if a array contains the object using indexOf or a simple polyfill * @method inArray * @param {String} src * @param {String} find * @return {Boolean|Number} false when not found, or the index */ inArray: function inArray(src, find) { if(src.indexOf) { var index = src.indexOf(find); return (index === -1) ? false : index; } else { for(var i = 0, len = src.length; i < len; i++) { if(src[i] === find) { return i; } } return false; } }, /** * convert an array-like object (`arguments`, `touchlist`) to an array * @method toArray * @param {Object} obj * @return {Array} */ toArray: function toArray(obj) { return Array.prototype.slice.call(obj, 0); }, /** * find if a node is in the given parent * @method hasParent * @param {HTMLElement} node * @param {HTMLElement} parent * @return {Boolean} found */ hasParent: function hasParent(node, parent) { while(node) { if(node == parent) { return true; } node = node.parentNode; } return false; }, /** * get the center of all the touches * @method getCenter * @param {Array} touches * @return {Object} center contains `pageX`, `pageY`, `clientX` and `clientY` properties */ getCenter: function getCenter(touches) { var pageX = [], pageY = [], clientX = [], clientY = [], min = Math.min, max = Math.max; // no need to loop when only one touch if(touches.length === 1) { return { pageX: touches[0].pageX, pageY: touches[0].pageY, clientX: touches[0].clientX, clientY: touches[0].clientY }; } Utils.each(touches, function(touch) { pageX.push(touch.pageX); pageY.push(touch.pageY); clientX.push(touch.clientX); clientY.push(touch.clientY); }); return { pageX: (min.apply(Math, pageX) + max.apply(Math, pageX)) / 2, pageY: (min.apply(Math, pageY) + max.apply(Math, pageY)) / 2, clientX: (min.apply(Math, clientX) + max.apply(Math, clientX)) / 2, clientY: (min.apply(Math, clientY) + max.apply(Math, clientY)) / 2 }; }, /** * calculate the velocity between two points. unit is in px per ms. * @method getVelocity * @param {Number} deltaTime * @param {Number} deltaX * @param {Number} deltaY * @return {Object} velocity `x` and `y` */ getVelocity: function getVelocity(deltaTime, deltaX, deltaY) { return { x: Math.abs(deltaX / deltaTime) || 0, y: Math.abs(deltaY / deltaTime) || 0 }; }, /** * calculate the angle between two coordinates * @method getAngle * @param {Touch} touch1 * @param {Touch} touch2 * @return {Number} angle */ getAngle: function getAngle(touch1, touch2) { var x = touch2.clientX - touch1.clientX, y = touch2.clientY - touch1.clientY; return Math.atan2(y, x) * 180 / Math.PI; }, /** * do a small comparision to get the direction between two touches. * @method getDirection * @param {Touch} touch1 * @param {Touch} touch2 * @return {String} direction matches `DIRECTION_LEFT|RIGHT|UP|DOWN` */ getDirection: function getDirection(touch1, touch2) { var x = Math.abs(touch1.clientX - touch2.clientX), y = Math.abs(touch1.clientY - touch2.clientY); if(x >= y) { return touch1.clientX - touch2.clientX > 0 ? DIRECTION_LEFT : DIRECTION_RIGHT; } return touch1.clientY - touch2.clientY > 0 ? DIRECTION_UP : DIRECTION_DOWN; }, /** * calculate the distance between two touches * @method getDistance * @param {Touch}touch1 * @param {Touch} touch2 * @return {Number} distance */ getDistance: function getDistance(touch1, touch2) { var x = touch2.clientX - touch1.clientX, y = touch2.clientY - touch1.clientY; return Math.sqrt((x * x) + (y * y)); }, /** * calculate the scale factor between two touchLists * no scale is 1, and goes down to 0 when pinched together, and bigger when pinched out * @method getScale * @param {Array} start array of touches * @param {Array} end array of touches * @return {Number} scale */ getScale: function getScale(start, end) { // need two fingers... if(start.length >= 2 && end.length >= 2) { return this.getDistance(end[0], end[1]) / this.getDistance(start[0], start[1]); } return 1; }, /** * calculate the rotation degrees between two touchLists * @method getRotation * @param {Array} start array of touches * @param {Array} end array of touches * @return {Number} rotation */ getRotation: function getRotation(start, end) { // need two fingers if(start.length >= 2 && end.length >= 2) { return this.getAngle(end[1], end[0]) - this.getAngle(start[1], start[0]); } return 0; }, /** * find out if the direction is vertical * * @method isVertical * @param {String} direction matches `DIRECTION_UP|DOWN` * @return {Boolean} is_vertical */ isVertical: function isVertical(direction) { return direction == DIRECTION_UP || direction == DIRECTION_DOWN; }, /** * set css properties with their prefixes * @param {HTMLElement} element * @param {String} prop * @param {String} value * @param {Boolean} [toggle=true] * @return {Boolean} */ setPrefixedCss: function setPrefixedCss(element, prop, value, toggle) { var prefixes = ['', 'Webkit', 'Moz', 'O', 'ms']; prop = Utils.toCamelCase(prop); for(var i = 0; i < prefixes.length; i++) { var p = prop; // prefixes if(prefixes[i]) { p = prefixes[i] + p.slice(0, 1).toUpperCase() + p.slice(1); } // test the style if(p in element.style) { element.style[p] = (toggle == null || toggle) && value || ''; break; } } }, /** * toggle browser default behavior by setting css properties. * `userSelect='none'` also sets `element.onselectstart` to false * `userDrag='none'` also sets `element.ondragstart` to false * * @method toggleBehavior * @param {HtmlElement} element * @param {Object} props * @param {Boolean} [toggle=true] */ toggleBehavior: function toggleBehavior(element, props, toggle) { if(!props || !element || !element.style) { return; } // set the css properties Utils.each(props, function(value, prop) { Utils.setPrefixedCss(element, prop, value, toggle); }); var falseFn = toggle && function() { return false; }; // also the disable onselectstart if(props.userSelect == 'none') { element.onselectstart = falseFn; } // and disable ondragstart if(props.userDrag == 'none') { element.ondragstart = falseFn; } }, /** * convert a string with underscores to camelCase * so prevent_default becomes preventDefault * @param {String} str * @return {String} camelCaseStr */ toCamelCase: function toCamelCase(str) { return str.replace(/[_-]([a-z])/g, function(s) { return s[1].toUpperCase(); }); } }; /** * @module hammer */ /** * @class Event * @static */ var Event = Hammer.event = { /** * when touch events have been fired, this is true * this is used to stop mouse events * @property prevent_mouseevents * @private * @type {Boolean} */ preventMouseEvents: false, /** * if EVENT_START has been fired * @property started * @private * @type {Boolean} */ started: false, /** * when the mouse is hold down, this is true * @property should_detect * @private * @type {Boolean} */ shouldDetect: false, /** * simple event binder with a hook and support for multiple types * @method on * @param {HTMLElement} element * @param {String} type * @param {Function} handler * @param {Function} [hook] * @param {Object} hook.type */ on: function on(element, type, handler, hook) { var types = type.split(' '); Utils.each(types, function(type) { Utils.on(element, type, handler); hook && hook(type); }); }, /** * simple event unbinder with a hook and support for multiple types * @method off * @param {HTMLElement} element * @param {String} type * @param {Function} handler * @param {Function} [hook] * @param {Object} hook.type */ off: function off(element, type, handler, hook) { var types = type.split(' '); Utils.each(types, function(type) { Utils.off(element, type, handler); hook && hook(type); }); }, /** * the core touch event handler. * this finds out if we should to detect gestures * @method onTouch * @param {HTMLElement} element * @param {String} eventType matches `EVENT_START|MOVE|END` * @param {Function} handler * @return onTouchHandler {Function} the core event handler */ onTouch: function onTouch(element, eventType, handler) { var self = this; var onTouchHandler = function onTouchHandler(ev) { var srcType = ev.type.toLowerCase(), isPointer = Hammer.HAS_POINTEREVENTS, isMouse = Utils.inStr(srcType, 'mouse'), triggerType; // if we are in a mouseevent, but there has been a touchevent triggered in this session // we want to do nothing. simply break out of the event. if(isMouse && self.preventMouseEvents) { return; // mousebutton must be down } else if(isMouse && eventType == EVENT_START && ev.button === 0) { self.preventMouseEvents = false; self.shouldDetect = true; } else if(isPointer && eventType == EVENT_START) { self.shouldDetect = (ev.buttons === 1 || PointerEvent.matchType(POINTER_TOUCH, ev)); // just a valid start event, but no mouse } else if(!isMouse && eventType == EVENT_START) { self.preventMouseEvents = true; self.shouldDetect = true; } // update the pointer event before entering the detection if(isPointer && eventType != EVENT_END) { PointerEvent.updatePointer(eventType, ev); } // we are in a touch/down state, so allowed detection of gestures if(self.shouldDetect) { triggerType = self.doDetect.call(self, ev, eventType, element, handler); } // ...and we are done with the detection // so reset everything to start each detection totally fresh if(triggerType == EVENT_END) { self.preventMouseEvents = false; self.shouldDetect = false; PointerEvent.reset(); // update the pointerevent object after the detection } if(isPointer && eventType == EVENT_END) { PointerEvent.updatePointer(eventType, ev); } }; this.on(element, EVENT_TYPES[eventType], onTouchHandler); return onTouchHandler; }, /** * the core detection method * this finds out what hammer-touch-events to trigger * @method doDetect * @param {Object} ev * @param {String} eventType matches `EVENT_START|MOVE|END` * @param {HTMLElement} element * @param {Function} handler * @return {String} triggerType matches `EVENT_START|MOVE|END` */ doDetect: function doDetect(ev, eventType, element, handler) { var touchList = this.getTouchList(ev, eventType); var touchListLength = touchList.length; var triggerType = eventType; var triggerChange = touchList.trigger; // used by fakeMultitouch plugin var changedLength = touchListLength; // at each touchstart-like event we want also want to trigger a TOUCH event... if(eventType == EVENT_START) { triggerChange = EVENT_TOUCH; // ...the same for a touchend-like event } else if(eventType == EVENT_END) { triggerChange = EVENT_RELEASE; // keep track of how many touches have been removed changedLength = touchList.length - ((ev.changedTouches) ? ev.changedTouches.length : 1); } // after there are still touches on the screen, // we just want to trigger a MOVE event. so change the START or END to a MOVE // but only after detection has been started, the first time we actualy want a START if(changedLength > 0 && this.started) { triggerType = EVENT_MOVE; } // detection has been started, we keep track of this, see above this.started = true; // generate some event data, some basic information var evData = this.collectEventData(element, triggerType, touchList, ev); // trigger the triggerType event before the change (TOUCH, RELEASE) events // but the END event should be at last if(eventType != EVENT_END) { handler.call(Detection, evData); } // trigger a change (TOUCH, RELEASE) event, this means the length of the touches changed if(triggerChange) { evData.changedLength = changedLength; evData.eventType = triggerChange; handler.call(Detection, evData); evData.eventType = triggerType; delete evData.changedLength; } // trigger the END event if(triggerType == EVENT_END) { handler.call(Detection, evData); // ...and we are done with the detection // so reset everything to start each detection totally fresh this.started = false; } return triggerType; }, /** * we have different events for each device/browser * determine what we need and set them in the EVENT_TYPES constant * the `onTouch` method is bind to these properties. * @method determineEventTypes * @return {Object} events */ determineEventTypes: function determineEventTypes() { var types; if(Hammer.HAS_POINTEREVENTS) { if(window.PointerEvent) { types = [ 'pointerdown', 'pointermove', 'pointerup pointercancel lostpointercapture' ]; } else { types = [ 'MSPointerDown', 'MSPointerMove', 'MSPointerUp MSPointerCancel MSLostPointerCapture' ]; } } else if(Hammer.NO_MOUSEEVENTS) { types = [ 'touchstart', 'touchmove', 'touchend touchcancel' ]; } else { types = [ 'touchstart mousedown', 'touchmove mousemove', 'touchend touchcancel mouseup' ]; } EVENT_TYPES[EVENT_START] = types[0]; EVENT_TYPES[EVENT_MOVE] = types[1]; EVENT_TYPES[EVENT_END] = types[2]; return EVENT_TYPES; }, /** * create touchList depending on the event * @method getTouchList * @param {Object} ev * @param {String} eventType * @return {Array} touches */ getTouchList: function getTouchList(ev, eventType) { // get the fake pointerEvent touchlist if(Hammer.HAS_POINTEREVENTS) { return PointerEvent.getTouchList(); } // get the touchlist if(ev.touches) { if(eventType == EVENT_MOVE) { return ev.touches; } var identifiers = []; var concat = [].concat(Utils.toArray(ev.touches), Utils.toArray(ev.changedTouches)); var touchList = []; Utils.each(concat, function(touch) { if(Utils.inArray(identifiers, touch.identifier) === false) { touchList.push(touch); } identifiers.push(touch.identifier); }); return touchList; } // make fake touchList from mouse position ev.identifier = 1; return [ev]; }, /** * collect basic event data * @method collectEventData * @param {HTMLElement} element * @param {String} eventType matches `EVENT_START|MOVE|END` * @param {Array} touches * @param {Object} ev * @return {Object} ev */ collectEventData: function collectEventData(element, eventType, touches, ev) { // find out pointerType var pointerType = POINTER_TOUCH; if(Utils.inStr(ev.type, 'mouse') || PointerEvent.matchType(POINTER_MOUSE, ev)) { pointerType = POINTER_MOUSE; } else if(PointerEvent.matchType(POINTER_PEN, ev)) { pointerType = POINTER_PEN; } return { center: Utils.getCenter(touches), timeStamp: Date.now(), target: ev.target, touches: touches, eventType: eventType, pointerType: pointerType, srcEvent: ev, /** * prevent the browser default actions * mostly used to disable scrolling of the browser */ preventDefault: function() { var srcEvent = this.srcEvent; srcEvent.preventManipulation && srcEvent.preventManipulation(); srcEvent.preventDefault && srcEvent.preventDefault(); }, /** * stop bubbling the event up to its parents */ stopPropagation: function() { this.srcEvent.stopPropagation(); }, /** * immediately stop gesture detection * might be useful after a swipe was detected * @return {*} */ stopDetect: function() { return Detection.stopDetect(); } }; } }; /** * @module hammer * * @class PointerEvent * @static */ var PointerEvent = Hammer.PointerEvent = { /** * holds all pointers, by `identifier` * @property pointers * @type {Object} */ pointers: {}, /** * get the pointers as an array * @method getTouchList * @return {Array} touchlist */ getTouchList: function getTouchList() { var touchlist = []; // we can use forEach since pointerEvents only is in IE10 Utils.each(this.pointers, function(pointer) { touchlist.push(pointer); }); return touchlist; }, /** * update the position of a pointer * @method updatePointer * @param {String} eventType matches `EVENT_START|MOVE|END` * @param {Object} pointerEvent */ updatePointer: function updatePointer(eventType, pointerEvent) { if(eventType == EVENT_END || (eventType != EVENT_END && pointerEvent.buttons !== 1)) { delete this.pointers[pointerEvent.pointerId]; } else { pointerEvent.identifier = pointerEvent.pointerId; this.pointers[pointerEvent.pointerId] = pointerEvent; } }, /** * check if ev matches pointertype * @method matchType * @param {String} pointerType matches `POINTER_MOUSE|TOUCH|PEN` * @param {PointerEvent} ev */ matchType: function matchType(pointerType, ev) { if(!ev.pointerType) { return false; } var pt = ev.pointerType, types = {}; types[POINTER_MOUSE] = (pt === (ev.MSPOINTER_TYPE_MOUSE || POINTER_MOUSE)); types[POINTER_TOUCH] = (pt === (ev.MSPOINTER_TYPE_TOUCH || POINTER_TOUCH)); types[POINTER_PEN] = (pt === (ev.MSPOINTER_TYPE_PEN || POINTER_PEN)); return types[pointerType]; }, /** * reset the stored pointers * @method reset */ reset: function resetList() { this.pointers = {}; } }; /** * @module hammer * * @class Detection * @static */ var Detection = Hammer.detection = { // contains all registred Hammer.gestures in the correct order gestures: [], // data of the current Hammer.gesture detection session current: null, // the previous Hammer.gesture session data // is a full clone of the previous gesture.current object previous: null, // when this becomes true, no gestures are fired stopped: false, /** * start Hammer.gesture detection * @method startDetect * @param {Hammer.Instance} inst * @param {Object} eventData */ startDetect: function startDetect(inst, eventData) { // already busy with a Hammer.gesture detection on an element if(this.current) { return; } this.stopped = false; // holds current session this.current = { inst: inst, // reference to HammerInstance we're working for startEvent: Utils.extend({}, eventData), // start eventData for distances, timing etc lastEvent: false, // last eventData lastCalcEvent: false, // last eventData for calculations. futureCalcEvent: false, // last eventData for calculations. lastCalcData: {}, // last lastCalcData name: '' // current gesture we're in/detected, can be 'tap', 'hold' etc }; this.detect(eventData); }, /** * Hammer.gesture detection * @method detect * @param {Object} eventData * @return {any} */ detect: function detect(eventData) { if(!this.current || this.stopped) { return; } // extend event data with calculations about scale, distance etc eventData = this.extendEventData(eventData); // hammer instance and instance options var inst = this.current.inst, instOptions = inst.options; // call Hammer.gesture handlers Utils.each(this.gestures, function triggerGesture(gesture) { // only when the instance options have enabled this gesture if(!this.stopped && inst.enabled && instOptions[gesture.name]) { gesture.handler.call(gesture, eventData, inst); } }, this); // store as previous event event if(this.current) { this.current.lastEvent = eventData; } if(eventData.eventType == EVENT_END) { this.stopDetect(); } return eventData; }, /** * clear the Hammer.gesture vars * this is called on endDetect, but can also be used when a final Hammer.gesture has been detected * to stop other Hammer.gestures from being fired * @method stopDetect */ stopDetect: function stopDetect() { // clone current data to the store as the previous gesture // used for the double tap gesture, since this is an other gesture detect session this.previous = Utils.extend({}, this.current); // reset the current this.current = null; this.stopped = true; }, /** * calculate velocity, angle and direction * @method getVelocityData * @param {Object} ev * @param {Object} center * @param {Number} deltaTime * @param {Number} deltaX * @param {Number} deltaY */ getCalculatedData: function getCalculatedData(ev, center, deltaTime, deltaX, deltaY) { var cur = this.current, recalc = false, calcEv = cur.lastCalcEvent, calcData = cur.lastCalcData; if(calcEv && ev.timeStamp - calcEv.timeStamp > Hammer.CALCULATE_INTERVAL) { center = calcEv.center; deltaTime = ev.timeStamp - calcEv.timeStamp; deltaX = ev.center.clientX - calcEv.center.clientX; deltaY = ev.center.clientY - calcEv.center.clientY; recalc = true; } if(ev.eventType == EVENT_TOUCH || ev.eventType == EVENT_RELEASE) { cur.futureCalcEvent = ev; } if(!cur.lastCalcEvent || recalc) { calcData.velocity = Utils.getVelocity(deltaTime, deltaX, deltaY); calcData.angle = Utils.getAngle(center, ev.center); calcData.direction = Utils.getDirection(center, ev.center); cur.lastCalcEvent = cur.futureCalcEvent || ev; cur.futureCalcEvent = ev; } ev.velocityX = calcData.velocity.x; ev.velocityY = calcData.velocity.y; ev.interimAngle = calcData.angle; ev.interimDirection = calcData.direction; }, /** * extend eventData for Hammer.gestures * @method extendEventData * @param {Object} ev * @return {Object} ev */ extendEventData: function extendEventData(ev) { var cur = this.current, startEv = cur.startEvent, lastEv = cur.lastEvent || startEv; // update the start touchlist to calculate the scale/rotation if(ev.eventType == EVENT_TOUCH || ev.eventType == EVENT_RELEASE) { startEv.touches = []; Utils.each(ev.touches, function(touch) { startEv.touches.push({ clientX: touch.clientX, clientY: touch.clientY }); }); } var deltaTime = ev.timeStamp - startEv.timeStamp, deltaX = ev.center.clientX - startEv.center.clientX, deltaY = ev.center.clientY - startEv.center.clientY; this.getCalculatedData(ev, lastEv.center, deltaTime, deltaX, deltaY); Utils.extend(ev, { startEvent: startEv, deltaTime: deltaTime, deltaX: deltaX, deltaY: deltaY, distance: Utils.getDistance(startEv.center, ev.center), angle: Utils.getAngle(startEv.center, ev.center), direction: Utils.getDirection(startEv.center, ev.center), scale: Utils.getScale(startEv.touches, ev.touches), rotation: Utils.getRotation(startEv.touches, ev.touches) }); return ev; }, /** * register new gesture * @method register * @param {Object} gesture object, see `gestures/` for documentation * @return {Array} gestures */ register: function register(gesture) { // add an enable gesture options if there is no given var options = gesture.defaults || {}; if(options[gesture.name] === undefined) { options[gesture.name] = true; } // extend Hammer default options with the Hammer.gesture options Utils.extend(Hammer.defaults, options, true); // set its index gesture.index = gesture.index || 1000; // add Hammer.gesture to the list this.gestures.push(gesture); // sort the list by index this.gestures.sort(function(a, b) { if(a.index < b.index) { return -1; } if(a.index > b.index) { return 1; } return 0; }); return this.gestures; } }; /** * @module hammer */ /** * create new hammer instance * all methods should return the instance itself, so it is chainable. * * @class Instance * @constructor * @param {HTMLElement} element * @param {Object} [options={}] options are merged with `Hammer.defaults` * @return {Hammer.Instance} */ Hammer.Instance = function(element, options) { var self = this; // setup HammerJS window events and register all gestures // this also sets up the default options setup(); /** * @property element * @type {HTMLElement} */ this.element = element; /** * @property enabled * @type {Boolean} * @protected */ this.enabled = true; /** * options, merged with the defaults * options with an _ are converted to camelCase * @property options * @type {Object} */ Utils.each(options, function(value, name) { delete options[name]; options[Utils.toCamelCase(name)] = value; }); this.options = Utils.extend(Utils.extend({}, Hammer.defaults), options || {}); // add some css to the element to prevent the browser from doing its native behavoir if(this.options.behavior) { Utils.toggleBehavior(this.element, this.options.behavior, true); } /** * event start handler on the element to start the detection * @property eventStartHandler * @type {Object} */ this.eventStartHandler = Event.onTouch(element, EVENT_START, function(ev) { if(self.enabled && ev.eventType == EVENT_START) { Detection.startDetect(self, ev); } else if(ev.eventType == EVENT_TOUCH) { Detection.detect(ev); } }); /** * keep a list of user event handlers which needs to be removed when calling 'dispose' * @property eventHandlers * @type {Array} */ this.eventHandlers = []; }; Hammer.Instance.prototype = { /** * bind events to the instance * @method on * @chainable * @param {String} gestures multiple gestures by splitting with a space * @param {Function} handler * @param {Object} handler.ev event object */ on: function onEvent(gestures, handler) { var self = this; Event.on(self.element, gestures, handler, function(type) { self.eventHandlers.push({ gesture: type, handler: handler }); }); return self; }, /** * unbind events to the instance * @method off * @chainable * @param {String} gestures * @param {Function} handler */ off: function offEvent(gestures, handler) { var self = this; Event.off(self.element, gestures, handler, function(type) { var index = Utils.inArray({ gesture: type, handler: handler }); if(index !== false) { self.eventHandlers.splice(index, 1); } }); return self; }, /** * trigger gesture event * @method trigger * @chainable * @param {String} gesture * @param {Object} [eventData] */ trigger: function triggerEvent(gesture, eventData) { // optional if(!eventData) { eventData = {}; } // create DOM event var event = Hammer.DOCUMENT.createEvent('Event'); event.initEvent(gesture, true, true); event.gesture = eventData; // trigger on the target if it is in the instance element, // this is for event delegation tricks var element = this.element; if(Utils.hasParent(eventData.target, element)) { element = eventData.target; } element.dispatchEvent(event); return this; }, /** * enable of disable hammer.js detection * @method enable * @chainable * @param {Boolean} state */ enable: function enable(state) { this.enabled = state; return this; }, /** * dispose this hammer instance * @method dispose * @return {Null} */ dispose: function dispose() { var i, eh; // undo all changes made by stop_browser_behavior Utils.toggleBehavior(this.element, this.options.behavior, false); // unbind all custom event handlers for(i = -1; (eh = this.eventHandlers[++i]);) { Utils.off(this.element, eh.gesture, eh.handler); } this.eventHandlers = []; // unbind the start event listener Event.off(this.element, EVENT_TYPES[EVENT_START], this.eventStartHandler); return null; } }; /** * @module gestures */ /** * Move with x fingers (default 1) around on the page. * Preventing the default browser behavior is a good way to improve feel and working. * ```` * hammertime.on("drag", function(ev) { * console.log(ev); * ev.gesture.preventDefault(); * }); * ```` * * @class Drag * @static */ /** * @event drag * @param {Object} ev */ /** * @event dragstart * @param {Object} ev */ /** * @event dragend * @param {Object} ev */ /** * @event drapleft * @param {Object} ev */ /** * @event dragright * @param {Object} ev */ /** * @event dragup * @param {Object} ev */ /** * @event dragdown * @param {Object} ev */ /** * @param {String} name */ (function(name) { var triggered = false; function dragGesture(ev, inst) { var cur = Detection.current; // max touches if(inst.options.dragMaxTouches > 0 && ev.touches.length > inst.options.dragMaxTouches) { return; } switch(ev.eventType) { case EVENT_START: triggered = false; break; case EVENT_MOVE: // when the distance we moved is too small we skip this gesture // or we can be already in dragging if(ev.distance < inst.options.dragMinDistance && cur.name != name) { return; } var startCenter = cur.startEvent.center; // we are dragging! if(cur.name != name) { cur.name = name; if(inst.options.dragDistanceCorrection && ev.distance > 0) { // When a drag is triggered, set the event center to dragMinDistance pixels from the original event center. // Without this correction, the dragged distance would jumpstart at dragMinDistance pixels instead of at 0. // It might be useful to save the original start point somewhere var factor = Math.abs(inst.options.dragMinDistance / ev.distance); startCenter.pageX += ev.deltaX * factor; startCenter.pageY += ev.deltaY * factor; startCenter.clientX += ev.deltaX * factor; startCenter.clientY += ev.deltaY * factor; // recalculate event data using new start point ev = Detection.extendEventData(ev); } } // lock drag to axis? if(cur.lastEvent.dragLockToAxis || ( inst.options.dragLockToAxis && inst.options.dragLockMinDistance <= ev.distance )) { ev.dragLockToAxis = true; } // keep direction on the axis that the drag gesture started on var lastDirection = cur.lastEvent.direction; if(ev.dragLockToAxis && lastDirection !== ev.direction) { if(Utils.isVertical(lastDirection)) { ev.direction = (ev.deltaY < 0) ? DIRECTION_UP : DIRECTION_DOWN; } else { ev.direction = (ev.deltaX < 0) ? DIRECTION_LEFT : DIRECTION_RIGHT; } } // first time, trigger dragstart event if(!triggered) { inst.trigger(name + 'start', ev); triggered = true; } // trigger events inst.trigger(name, ev); inst.trigger(name + ev.direction, ev); var isVertical = Utils.isVertical(ev.direction); // block the browser events if((inst.options.dragBlockVertical && isVertical) || (inst.options.dragBlockHorizontal && !isVertical)) { ev.preventDefault(); } break; case EVENT_RELEASE: if(triggered && ev.changedLength <= inst.options.dragMaxTouches) { inst.trigger(name + 'end', ev); triggered = false; } break; case EVENT_END: triggered = false; break; } } Hammer.gestures.Drag = { name: name, index: 50, handler: dragGesture, defaults: { /** * minimal movement that have to be made before the drag event gets triggered * @property dragMinDistance * @type {Number} * @default 10 */ dragMinDistance: 10, /** * Set dragDistanceCorrection to true to make the starting point of the drag * be calculated from where the drag was triggered, not from where the touch started. * Useful to avoid a jerk-starting drag, which can make fine-adjustments * through dragging difficult, and be visually unappealing. * @property dragDistanceCorrection * @type {Boolean} * @default true */ dragDistanceCorrection: true, /** * set 0 for unlimited, but this can conflict with transform * @property dragMaxTouches * @type {Number} * @default 1 */ dragMaxTouches: 1, /** * prevent default browser behavior when dragging occurs * be careful with it, it makes the element a blocking element * when you are using the drag gesture, it is a good practice to set this true * @property dragBlockHorizontal * @type {Boolean} * @default false */ dragBlockHorizontal: false, /** * same as `dragBlockHorizontal`, but for vertical movement * @property dragBlockVertical * @type {Boolean} * @default false */ dragBlockVertical: false, /** * dragLockToAxis keeps the drag gesture on the axis that it started on, * It disallows vertical directions if the initial direction was horizontal, and vice versa. * @property dragLockToAxis * @type {Boolean} * @default false */ dragLockToAxis: false, /** * drag lock only kicks in when distance > dragLockMinDistance * This way, locking occurs only when the distance has become large enough to reliably determine the direction * @property dragLockMinDistance * @type {Number} * @default 25 */ dragLockMinDistance: 25 } }; })('drag'); /** * @module gestures */ /** * trigger a simple gesture event, so you can do anything in your handler. * only usable if you know what your doing... * * @class Gesture * @static */ /** * @event gesture * @param {Object} ev */ Hammer.gestures.Gesture = { name: 'gesture', index: 1337, handler: function releaseGesture(ev, inst) { inst.trigger(this.name, ev); } }; /** * @module gestures */ /** * Touch stays at the same place for x time * * @class Hold * @static */ /** * @event hold * @param {Object} ev */ /** * @param {String} name */ (function(name) { var timer; function holdGesture(ev, inst) { var options = inst.options, current = Detection.current; switch(ev.eventType) { case EVENT_START: clearTimeout(timer); // set the gesture so we can check in the timeout if it still is current.name = name; // set timer and if after the timeout it still is hold, // we trigger the hold event timer = setTimeout(function() { if(current && current.name == name) { inst.trigger(name, ev); } }, options.holdTimeout); break; case EVENT_MOVE: if(ev.distance > options.holdThreshold) { clearTimeout(timer); } break; case EVENT_RELEASE: clearTimeout(timer); break; } } Hammer.gestures.Hold = { name: name, index: 10, defaults: { /** * @property holdTimeout * @type {Number} * @default 500 */ holdTimeout: 500, /** * movement allowed while holding * @property holdThreshold * @type {Number} * @default 2 */ holdThreshold: 2 }, handler: holdGesture }; })('hold'); /** * @module gestures */ /** * when a touch is being released from the page * * @class Release * @static */ /** * @event release * @param {Object} ev */ Hammer.gestures.Release = { name: 'release', index: Infinity, handler: function releaseGesture(ev, inst) { if(ev.eventType == EVENT_RELEASE) { inst.trigger(this.name, ev); } } }; /** * @module gestures */ /** * triggers swipe events when the end velocity is above the threshold * for best usage, set `preventDefault` (on the drag gesture) to `true` * ```` * hammertime.on("dragleft swipeleft", function(ev) { * console.log(ev); * ev.gesture.preventDefault(); * }); * ```` * * @class Swipe * @static */ /** * @event swipe * @param {Object} ev */ /** * @event swipeleft * @param {Object} ev */ /** * @event swiperight * @param {Object} ev */ /** * @event swipeup * @param {Object} ev */ /** * @event swipedown * @param {Object} ev */ Hammer.gestures.Swipe = { name: 'swipe', index: 40, defaults: { /** * @property swipeMinTouches * @type {Number} * @default 1 */ swipeMinTouches: 1, /** * @property swipeMaxTouches * @type {Number} * @default 1 */ swipeMaxTouches: 1, /** * horizontal swipe velocity * @property swipeVelocityX * @type {Number} * @default 0.6 */ swipeVelocityX: 0.6, /** * vertical swipe velocity * @property swipeVelocityY * @type {Number} * @default 0.6 */ swipeVelocityY: 0.6 }, handler: function swipeGesture(ev, inst) { if(ev.eventType == EVENT_RELEASE) { var touches = ev.touches.length, options = inst.options; // max touches if(touches < options.swipeMinTouches || touches > options.swipeMaxTouches) { return; } // when the distance we moved is too small we skip this gesture // or we can be already in dragging if(ev.velocityX > options.swipeVelocityX || ev.velocityY > options.swipeVelocityY) { // trigger swipe events inst.trigger(this.name, ev); inst.trigger(this.name + ev.direction, ev); } } } }; /** * @module gestures */ /** * Single tap and a double tap on a place * * @class Tap * @static */ /** * @event tap * @param {Object} ev */ /** * @event doubletap * @param {Object} ev */ /** * @param {String} name */ (function(name) { var hasMoved = false; function tapGesture(ev, inst) { var options = inst.options, current = Detection.current, prev = Detection.previous, sincePrev, didDoubleTap; switch(ev.eventType) { case EVENT_START: hasMoved = false; break; case EVENT_MOVE: hasMoved = hasMoved || (ev.distance > options.tapMaxDistance); break; case EVENT_END: if(!Utils.inStr(ev.srcEvent.type, 'cancel') && ev.deltaTime < options.tapMaxTime && !hasMoved) { // previous gesture, for the double tap since these are two different gesture detections sincePrev = prev && prev.lastEvent && ev.timeStamp - prev.lastEvent.timeStamp; didDoubleTap = false; // check if double tap if(prev && prev.name == name && (sincePrev && sincePrev < options.doubleTapInterval) && ev.distance < options.doubleTapDistance) { inst.trigger('doubletap', ev); didDoubleTap = true; } // do a single tap if(!didDoubleTap || options.tapAlways) { current.name = name; inst.trigger(current.name, ev); } } break; } } Hammer.gestures.Tap = { name: name, index: 100, handler: tapGesture, defaults: { /** * max time of a tap, this is for the slow tappers * @property tapMaxTime * @type {Number} * @default 250 */ tapMaxTime: 250, /** * max distance of movement of a tap, this is for the slow tappers * @property tapMaxDistance * @type {Number} * @default 10 */ tapMaxDistance: 10, /** * always trigger the `tap` event, even while double-tapping * @property tapAlways * @type {Boolean} * @default true */ tapAlways: true, /** * max distance between two taps * @property doubleTapDistance * @type {Number} * @default 20 */ doubleTapDistance: 20, /** * max time between two taps * @property doubleTapInterval * @type {Number} * @default 300 */ doubleTapInterval: 300 } }; })('tap'); /** * @module gestures */ /** * when a touch is being touched at the page * * @class Touch * @static */ /** * @event touch * @param {Object} ev */ Hammer.gestures.Touch = { name: 'touch', index: -Infinity, defaults: { /** * call preventDefault at touchstart, and makes the element blocking by disabling the scrolling of the page, * but it improves gestures like transforming and dragging. * be careful with using this, it can be very annoying for users to be stuck on the page * @property preventDefault * @type {Boolean} * @default false */ preventDefault: false, /** * disable mouse events, so only touch (or pen!) input triggers events * @property preventMouse * @type {Boolean} * @default false */ preventMouse: false }, handler: function touchGesture(ev, inst) { if(inst.options.preventMouse && ev.pointerType == POINTER_MOUSE) { ev.stopDetect(); return; } if(inst.options.preventDefault) { ev.preventDefault(); } if(ev.eventType == EVENT_TOUCH) { inst.trigger('touch', ev); } } }; /** * @module gestures */ /** * User want to scale or rotate with 2 fingers * Preventing the default browser behavior is a good way to improve feel and working. This can be done with the * `preventDefault` option. * * @class Transform * @static */ /** * @event transform * @param {Object} ev */ /** * @event transformstart * @param {Object} ev */ /** * @event transformend * @param {Object} ev */ /** * @event pinchin * @param {Object} ev */ /** * @event pinchout * @param {Object} ev */ /** * @event rotate * @param {Object} ev */ /** * @param {String} name */ (function(name) { var triggered = false; function transformGesture(ev, inst) { switch(ev.eventType) { case EVENT_START: triggered = false; break; case EVENT_MOVE: // at least multitouch if(ev.touches.length < 2) { return; } var scaleThreshold = Math.abs(1 - ev.scale); var rotationThreshold = Math.abs(ev.rotation); // when the distance we moved is too small we skip this gesture // or we can be already in dragging if(scaleThreshold < inst.options.transformMinScale && rotationThreshold < inst.options.transformMinRotation) { return; } // we are transforming! Detection.current.name = name; // first time, trigger dragstart event if(!triggered) { inst.trigger(name + 'start', ev); triggered = true; } inst.trigger(name, ev); // basic transform event // trigger rotate event if(rotationThreshold > inst.options.transformMinRotation) { inst.trigger('rotate', ev); } // trigger pinch event if(scaleThreshold > inst.options.transformMinScale) { inst.trigger('pinch', ev); inst.trigger('pinch' + (ev.scale < 1 ? 'in' : 'out'), ev); } break; case EVENT_RELEASE: if(triggered && ev.changedLength < 2) { inst.trigger(name + 'end', ev); triggered = false; } break; } } Hammer.gestures.Transform = { name: name, index: 45, defaults: { /** * minimal scale factor, no scale is 1, zoomin is to 0 and zoomout until higher then 1 * @property transformMinScale * @type {Number} * @default 0.01 */ transformMinScale: 0.01, /** * rotation in degrees * @property transformMinRotation * @type {Number} * @default 1 */ transformMinRotation: 1 }, handler: transformGesture }; })('transform'); /** * @module hammer */ // AMD export if(typeof define == 'function' && define.amd) { define(function() { return Hammer; }); // commonjs export } else if(typeof module !== 'undefined' && module.exports) { module.exports = Hammer; // browser export } else { window.Hammer = Hammer; } })(window); /*! iScroll v5.0.6 ~ (c) 2008-2013 Matteo Spinelli ~ http://cubiq.org/license */ var IScroll = (function (window, document, Math) { var rAF = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (callback) { window.setTimeout(callback, 1000 / 60); }; var utils = (function () { var me = {}; var _elementStyle = document.createElement('div').style; var _vendor = (function () { var vendors = ['t', 'webkitT', 'MozT', 'msT', 'OT'], transform, i = 0, l = vendors.length; for ( ; i < l; i++ ) { transform = vendors[i] + 'ransform'; if ( transform in _elementStyle ) return vendors[i].substr(0, vendors[i].length-1); } return false; })(); function _prefixStyle (style) { if ( _vendor === false ) return false; if ( _vendor === '' ) return style; return _vendor + style.charAt(0).toUpperCase() + style.substr(1); } me.getTime = Date.now || function getTime () { return new Date().getTime(); }; me.extend = function (target, obj) { for ( var i in obj ) { target[i] = obj[i]; } }; me.addEvent = function (el, type, fn, capture) { el.addEventListener(type, fn, !!capture); }; me.removeEvent = function (el, type, fn, capture) { el.removeEventListener(type, fn, !!capture); }; me.momentum = function (current, start, time, lowerMargin, wrapperSize) { var distance = current - start, speed = Math.abs(distance) / time, destination, duration, deceleration = 0.0006; destination = current + ( speed * speed ) / ( 2 * deceleration ) * ( distance < 0 ? -1 : 1 ); duration = speed / deceleration; if ( destination < lowerMargin ) { destination = wrapperSize ? lowerMargin - ( wrapperSize / 2.5 * ( speed / 8 ) ) : lowerMargin; distance = Math.abs(destination - current); duration = distance / speed; } else if ( destination > 0 ) { destination = wrapperSize ? wrapperSize / 2.5 * ( speed / 8 ) : 0; distance = Math.abs(current) + destination; duration = distance / speed; } return { destination: Math.round(destination), duration: duration }; }; var _transform = _prefixStyle('transform'); me.extend(me, { hasTransform: _transform !== false, hasPerspective: _prefixStyle('perspective') in _elementStyle, hasTouch: 'ontouchstart' in window, hasPointer: navigator.msPointerEnabled, hasTransition: _prefixStyle('transition') in _elementStyle }); me.isAndroidBrowser = /Android/.test(window.navigator.appVersion) && /Version\/\d/.test(window.navigator.appVersion); me.extend(me.style = {}, { transform: _transform, transitionTimingFunction: _prefixStyle('transitionTimingFunction'), transitionDuration: _prefixStyle('transitionDuration'), transformOrigin: _prefixStyle('transformOrigin') }); me.hasClass = function (e, c) { var re = new RegExp("(^|\\s)" + c + "(\\s|$)"); return re.test(e.className); }; me.addClass = function (e, c) { if ( me.hasClass(e, c) ) { return; } var newclass = e.className.split(' '); newclass.push(c); e.className = newclass.join(' '); }; me.removeClass = function (e, c) { if ( !me.hasClass(e, c) ) { return; } var re = new RegExp("(^|\\s)" + c + "(\\s|$)", 'g'); e.className = e.className.replace(re, ' '); }; me.offset = function (el) { var left = -el.offsetLeft, top = -el.offsetTop; // jshint -W084 while (el = el.offsetParent) { left -= el.offsetLeft; top -= el.offsetTop; } // jshint +W084 return { left: left, top: top }; }; me.preventDefaultException = function (el, exceptions) { for ( var i in exceptions ) { if ( exceptions[i].test(el[i]) ) { return true; } } return false; }; me.extend(me.eventType = {}, { touchstart: 1, touchmove: 1, touchend: 1, mousedown: 2, mousemove: 2, mouseup: 2, MSPointerDown: 3, MSPointerMove: 3, MSPointerUp: 3 }); me.extend(me.ease = {}, { quadratic: { style: 'cubic-bezier(0.25, 0.46, 0.45, 0.94)', fn: function (k) { return k * ( 2 - k ); } }, circular: { style: 'cubic-bezier(0.1, 0.57, 0.1, 1)', // Not properly "circular" but this looks better, it should be (0.075, 0.82, 0.165, 1) fn: function (k) { return Math.sqrt( 1 - ( --k * k ) ); } }, back: { style: 'cubic-bezier(0.175, 0.885, 0.32, 1.275)', fn: function (k) { var b = 4; return ( k = k - 1 ) * k * ( ( b + 1 ) * k + b ) + 1; } }, bounce: { style: '', fn: function (k) { if ( ( k /= 1 ) < ( 1 / 2.75 ) ) { return 7.5625 * k * k; } else if ( k < ( 2 / 2.75 ) ) { return 7.5625 * ( k -= ( 1.5 / 2.75 ) ) * k + 0.75; } else if ( k < ( 2.5 / 2.75 ) ) { return 7.5625 * ( k -= ( 2.25 / 2.75 ) ) * k + 0.9375; } else { return 7.5625 * ( k -= ( 2.625 / 2.75 ) ) * k + 0.984375; } } }, elastic: { style: '', fn: function (k) { var f = 0.22, e = 0.4; if ( k === 0 ) { return 0; } if ( k == 1 ) { return 1; } return ( e * Math.pow( 2, - 10 * k ) * Math.sin( ( k - f / 4 ) * ( 2 * Math.PI ) / f ) + 1 ); } } }); me.tap = function (e, eventName) { var ev = document.createEvent('Event'); ev.initEvent(eventName, true, true); ev.pageX = e.pageX; ev.pageY = e.pageY; e.target.dispatchEvent(ev); }; me.click = function (e) { var target = e.target, ev; if (target.tagName != 'SELECT' && target.tagName != 'INPUT' && target.tagName != 'TEXTAREA') { ev = document.createEvent('MouseEvents'); ev.initMouseEvent('click', true, true, e.view, 1, target.screenX, target.screenY, target.clientX, target.clientY, e.ctrlKey, e.altKey, e.shiftKey, e.metaKey, 0, null); ev._constructed = true; target.dispatchEvent(ev); } }; return me; })(); function IScroll (el, options) { this.wrapper = typeof el == 'string' ? document.querySelector(el) : el; this.scroller = this.wrapper.children[0]; this.scrollerStyle = this.scroller.style; // cache style for better performance this.options = { // INSERT POINT: OPTIONS startX: 0, startY: 0, scrollY: true, directionLockThreshold: 5, momentum: true, bounce: true, bounceTime: 600, bounceEasing: '', preventDefault: true, preventDefaultException: { tagName: /^(INPUT|TEXTAREA|BUTTON|SELECT)$/ }, HWCompositing: true, useTransition: true, useTransform: true }; for ( var i in options ) { this.options[i] = options[i]; } // Normalize options this.translateZ = this.options.HWCompositing && utils.hasPerspective ? ' translateZ(0)' : ''; this.options.useTransition = utils.hasTransition && this.options.useTransition; this.options.useTransform = utils.hasTransform && this.options.useTransform; this.options.eventPassthrough = this.options.eventPassthrough === true ? 'vertical' : this.options.eventPassthrough; this.options.preventDefault = !this.options.eventPassthrough && this.options.preventDefault; // If you want eventPassthrough I have to lock one of the axes this.options.scrollY = this.options.eventPassthrough == 'vertical' ? false : this.options.scrollY; this.options.scrollX = this.options.eventPassthrough == 'horizontal' ? false : this.options.scrollX; // With eventPassthrough we also need lockDirection mechanism this.options.freeScroll = this.options.freeScroll && !this.options.eventPassthrough; this.options.directionLockThreshold = this.options.eventPassthrough ? 0 : this.options.directionLockThreshold; this.options.bounceEasing = typeof this.options.bounceEasing == 'string' ? utils.ease[this.options.bounceEasing] || utils.ease.circular : this.options.bounceEasing; this.options.resizePolling = this.options.resizePolling === undefined ? 60 : this.options.resizePolling; if ( this.options.tap === true ) { this.options.tap = 'tap'; } // INSERT POINT: NORMALIZATION // Some defaults this.x = 0; this.y = 0; this.directionX = 0; this.directionY = 0; this._events = {}; // INSERT POINT: DEFAULTS this._init(); this.refresh(); this.scrollTo(this.options.startX, this.options.startY); this.enable(); } IScroll.prototype = { version: '5.0.6', _init: function () { this._initEvents(); // INSERT POINT: _init }, destroy: function () { this._initEvents(true); this._execEvent('destroy'); }, _transitionEnd: function (e) { if ( e.target != this.scroller ) { return; } this._transitionTime(0); if ( !this.resetPosition(this.options.bounceTime) ) { this._execEvent('scrollEnd'); } }, _start: function (e) { // React to left mouse button only if ( utils.eventType[e.type] != 1 ) { if ( e.button !== 0 ) { return; } } if ( !this.enabled || (this.initiated && utils.eventType[e.type] !== this.initiated) ) { return; } if ( this.options.preventDefault && !utils.isAndroidBrowser && !utils.preventDefaultException(e.target, this.options.preventDefaultException) ) { e.preventDefault(); // This seems to break default Android browser } var point = e.touches ? e.touches[0] : e, pos; this.initiated = utils.eventType[e.type]; this.moved = false; this.distX = 0; this.distY = 0; this.directionX = 0; this.directionY = 0; this.directionLocked = 0; this._transitionTime(); this.isAnimating = false; this.startTime = utils.getTime(); if ( this.options.useTransition && this.isInTransition ) { pos = this.getComputedPosition(); this._translate(Math.round(pos.x), Math.round(pos.y)); this._execEvent('scrollEnd'); this.isInTransition = false; } this.startX = this.x; this.startY = this.y; this.absStartX = this.x; this.absStartY = this.y; this.pointX = point.pageX; this.pointY = point.pageY; this._execEvent('beforeScrollStart'); }, _move: function (e) { if ( !this.enabled || utils.eventType[e.type] !== this.initiated ) { return; } if ( this.options.preventDefault ) { // increases performance on Android? TODO: check! e.preventDefault(); } var point = e.touches ? e.touches[0] : e, deltaX = point.pageX - this.pointX, deltaY = point.pageY - this.pointY, timestamp = utils.getTime(), newX, newY, absDistX, absDistY; this.pointX = point.pageX; this.pointY = point.pageY; this.distX += deltaX; this.distY += deltaY; absDistX = Math.abs(this.distX); absDistY = Math.abs(this.distY); // We need to move at least 10 pixels for the scrolling to initiate if ( timestamp - this.endTime > 300 && (absDistX < 10 && absDistY < 10) ) { return; } // If you are scrolling in one direction lock the other if ( !this.directionLocked && !this.options.freeScroll ) { if ( absDistX > absDistY + this.options.directionLockThreshold ) { this.directionLocked = 'h'; // lock horizontally } else if ( absDistY >= absDistX + this.options.directionLockThreshold ) { this.directionLocked = 'v'; // lock vertically } else { this.directionLocked = 'n'; // no lock } } if ( this.directionLocked == 'h' ) { if ( this.options.eventPassthrough == 'vertical' ) { e.preventDefault(); } else if ( this.options.eventPassthrough == 'horizontal' ) { this.initiated = false; return; } deltaY = 0; } else if ( this.directionLocked == 'v' ) { if ( this.options.eventPassthrough == 'horizontal' ) { e.preventDefault(); } else if ( this.options.eventPassthrough == 'vertical' ) { this.initiated = false; return; } deltaX = 0; } deltaX = this.hasHorizontalScroll ? deltaX : 0; deltaY = this.hasVerticalScroll ? deltaY : 0; newX = this.x + deltaX; newY = this.y + deltaY; // Slow down if outside of the boundaries if ( newX > 0 || newX < this.maxScrollX ) { newX = this.options.bounce ? this.x + deltaX / 3 : newX > 0 ? 0 : this.maxScrollX; } if ( newY > 0 || newY < this.maxScrollY ) { newY = this.options.bounce ? this.y + deltaY / 3 : newY > 0 ? 0 : this.maxScrollY; } this.directionX = deltaX > 0 ? -1 : deltaX < 0 ? 1 : 0; this.directionY = deltaY > 0 ? -1 : deltaY < 0 ? 1 : 0; if ( !this.moved ) { this._execEvent('scrollStart'); } this.moved = true; this._translate(newX, newY); /* REPLACE START: _move */ if ( timestamp - this.startTime > 300 ) { this.startTime = timestamp; this.startX = this.x; this.startY = this.y; } /* REPLACE END: _move */ }, _end: function (e) { if ( !this.enabled || utils.eventType[e.type] !== this.initiated ) { return; } if ( this.options.preventDefault && !utils.preventDefaultException(e.target, this.options.preventDefaultException) ) { e.preventDefault(); } var point = e.changedTouches ? e.changedTouches[0] : e, momentumX, momentumY, duration = utils.getTime() - this.startTime, newX = Math.round(this.x), newY = Math.round(this.y), distanceX = Math.abs(newX - this.startX), distanceY = Math.abs(newY - this.startY), time = 0, easing = ''; this.scrollTo(newX, newY); // ensures that the last position is rounded this.isInTransition = 0; this.initiated = 0; this.endTime = utils.getTime(); // reset if we are outside of the boundaries if ( this.resetPosition(this.options.bounceTime) ) { return; } // we scrolled less than 10 pixels if ( !this.moved ) { if ( this.options.tap ) { utils.tap(e, this.options.tap); } if ( this.options.click ) { utils.click(e); } return; } if ( this._events.flick && duration < 200 && distanceX < 100 && distanceY < 100 ) { this._execEvent('flick'); return; } // start momentum animation if needed if ( this.options.momentum && duration < 300 ) { momentumX = this.hasHorizontalScroll ? utils.momentum(this.x, this.startX, duration, this.maxScrollX, this.options.bounce ? this.wrapperWidth : 0) : { destination: newX, duration: 0 }; momentumY = this.hasVerticalScroll ? utils.momentum(this.y, this.startY, duration, this.maxScrollY, this.options.bounce ? this.wrapperHeight : 0) : { destination: newY, duration: 0 }; newX = momentumX.destination; newY = momentumY.destination; time = Math.max(momentumX.duration, momentumY.duration); this.isInTransition = 1; } // INSERT POINT: _end if ( newX != this.x || newY != this.y ) { // change easing function when scroller goes out of the boundaries if ( newX > 0 || newX < this.maxScrollX || newY > 0 || newY < this.maxScrollY ) { easing = utils.ease.quadratic; } this.scrollTo(newX, newY, time, easing); return; } this._execEvent('scrollEnd'); }, _resize: function () { var that = this; clearTimeout(this.resizeTimeout); this.resizeTimeout = setTimeout(function () { that.refresh(); }, this.options.resizePolling); }, resetPosition: function (time) { var x = this.x, y = this.y; time = time || 0; if ( !this.hasHorizontalScroll || this.x > 0 ) { x = 0; } else if ( this.x < this.maxScrollX ) { x = this.maxScrollX; } if ( !this.hasVerticalScroll || this.y > 0 ) { y = 0; } else if ( this.y < this.maxScrollY ) { y = this.maxScrollY; } if ( x == this.x && y == this.y ) { return false; } this.scrollTo(x, y, time, this.options.bounceEasing); return true; }, disable: function () { this.enabled = false; }, enable: function () { this.enabled = true; }, refresh: function () { var rf = this.wrapper.offsetHeight; // Force reflow this.wrapperWidth = this.wrapper.clientWidth; this.wrapperHeight = this.wrapper.clientHeight; /* REPLACE START: refresh */ this.scrollerWidth = this.scroller.offsetWidth; this.scrollerHeight = this.scroller.offsetHeight; /* REPLACE END: refresh */ this.maxScrollX = this.wrapperWidth - this.scrollerWidth; this.maxScrollY = this.wrapperHeight - this.scrollerHeight; this.hasHorizontalScroll = this.options.scrollX && this.maxScrollX < 0; this.hasVerticalScroll = this.options.scrollY && this.maxScrollY < 0; if ( !this.hasHorizontalScroll ) { this.maxScrollX = 0; this.scrollerWidth = this.wrapperWidth; } if ( !this.hasVerticalScroll ) { this.maxScrollY = 0; this.scrollerHeight = this.wrapperHeight; } this.endTime = 0; this.directionX = 0; this.directionY = 0; this.wrapperOffset = utils.offset(this.wrapper); this._execEvent('refresh'); this.resetPosition(); // INSERT POINT: _refresh }, on: function (type, fn) { if ( !this._events[type] ) { this._events[type] = []; } this._events[type].push(fn); }, _execEvent: function (type) { if ( !this._events[type] ) { return; } var i = 0, l = this._events[type].length; if ( !l ) { return; } for ( ; i < l; i++ ) { this._events[type][i].call(this); } }, scrollBy: function (x, y, time, easing) { x = this.x + x; y = this.y + y; time = time || 0; this.scrollTo(x, y, time, easing); }, scrollTo: function (x, y, time, easing) { easing = easing || utils.ease.circular; if ( !time || (this.options.useTransition && easing.style) ) { this._transitionTimingFunction(easing.style); this._transitionTime(time); this._translate(x, y); } else { this._animate(x, y, time, easing.fn); } }, scrollToElement: function (el, time, offsetX, offsetY, easing) { el = el.nodeType ? el : this.scroller.querySelector(el); if ( !el ) { return; } var pos = utils.offset(el); pos.left -= this.wrapperOffset.left; pos.top -= this.wrapperOffset.top; // if offsetX/Y are true we center the element to the screen if ( offsetX === true ) { offsetX = Math.round(el.offsetWidth / 2 - this.wrapper.offsetWidth / 2); } if ( offsetY === true ) { offsetY = Math.round(el.offsetHeight / 2 - this.wrapper.offsetHeight / 2); } pos.left -= offsetX || 0; pos.top -= offsetY || 0; pos.left = pos.left > 0 ? 0 : pos.left < this.maxScrollX ? this.maxScrollX : pos.left; pos.top = pos.top > 0 ? 0 : pos.top < this.maxScrollY ? this.maxScrollY : pos.top; time = time === undefined || time === null || time === 'auto' ? Math.max(Math.abs(this.x-pos.left), Math.abs(this.y-pos.top)) : time; this.scrollTo(pos.left, pos.top, time, easing); }, _transitionTime: function (time) { time = time || 0; this.scrollerStyle[utils.style.transitionDuration] = time + 'ms'; // INSERT POINT: _transitionTime }, _transitionTimingFunction: function (easing) { this.scrollerStyle[utils.style.transitionTimingFunction] = easing; // INSERT POINT: _transitionTimingFunction }, _translate: function (x, y) { if ( this.options.useTransform ) { /* REPLACE START: _translate */ this.scrollerStyle[utils.style.transform] = 'translate(' + x + 'px,' + y + 'px)' + this.translateZ; /* REPLACE END: _translate */ } else { x = Math.round(x); y = Math.round(y); this.scrollerStyle.left = x + 'px'; this.scrollerStyle.top = y + 'px'; } this.x = x; this.y = y; // INSERT POINT: _translate }, _initEvents: function (remove) { var eventType = remove ? utils.removeEvent : utils.addEvent, target = this.options.bindToWrapper ? this.wrapper : window; eventType(window, 'orientationchange', this); eventType(window, 'resize', this); if ( this.options.click ) { eventType(this.wrapper, 'click', this, true); } if ( !this.options.disableMouse ) { eventType(this.wrapper, 'mousedown', this); eventType(target, 'mousemove', this); eventType(target, 'mousecancel', this); eventType(target, 'mouseup', this); } if ( utils.hasPointer && !this.options.disablePointer ) { eventType(this.wrapper, 'MSPointerDown', this); eventType(target, 'MSPointerMove', this); eventType(target, 'MSPointerCancel', this); eventType(target, 'MSPointerUp', this); } if ( utils.hasTouch && !this.options.disableTouch ) { eventType(this.wrapper, 'touchstart', this); eventType(target, 'touchmove', this); eventType(target, 'touchcancel', this); eventType(target, 'touchend', this); } eventType(this.scroller, 'transitionend', this); eventType(this.scroller, 'webkitTransitionEnd', this); eventType(this.scroller, 'oTransitionEnd', this); eventType(this.scroller, 'MSTransitionEnd', this); }, getComputedPosition: function () { var matrix = window.getComputedStyle(this.scroller, null), x, y; if ( this.options.useTransform ) { matrix = matrix[utils.style.transform].split(')')[0].split(', '); x = +(matrix[12] || matrix[4]); y = +(matrix[13] || matrix[5]); } else { x = +matrix.left.replace(/[^-\d]/g, ''); y = +matrix.top.replace(/[^-\d]/g, ''); } return { x: x, y: y }; }, _animate: function (destX, destY, duration, easingFn) { var that = this, startX = this.x, startY = this.y, startTime = utils.getTime(), destTime = startTime + duration; function step () { var now = utils.getTime(), newX, newY, easing; if ( now >= destTime ) { that.isAnimating = false; that._translate(destX, destY); if ( !that.resetPosition(that.options.bounceTime) ) { that._execEvent('scrollEnd'); } return; } now = ( now - startTime ) / duration; easing = easingFn(now); newX = ( destX - startX ) * easing + startX; newY = ( destY - startY ) * easing + startY; that._translate(newX, newY); if ( that.isAnimating ) { rAF(step); } } this.isAnimating = true; step(); }, handleEvent: function (e) { switch ( e.type ) { case 'touchstart': case 'MSPointerDown': case 'mousedown': this._start(e); break; case 'touchmove': case 'MSPointerMove': case 'mousemove': this._move(e); break; case 'touchend': case 'MSPointerUp': case 'mouseup': case 'touchcancel': case 'MSPointerCancel': case 'mousecancel': this._end(e); break; case 'orientationchange': case 'resize': this._resize(); break; case 'transitionend': case 'webkitTransitionEnd': case 'oTransitionEnd': case 'MSTransitionEnd': this._transitionEnd(e); break; case 'DOMMouseScroll': case 'mousewheel': this._wheel(e); break; case 'keydown': this._key(e); break; case 'click': if ( !e._constructed ) { e.preventDefault(); e.stopPropagation(); } break; } } }; IScroll.ease = utils.ease; return IScroll; })(window, document, Math); /** * MicroEvent - to make any js object an event emitter (server or browser) * * - pure javascript - server compatible, browser compatible * - dont rely on the browser doms * - super simple - you get it immediatly, no mistery, no magic involved * * - create a MicroEventDebug with goodies to debug * - make it safer to use */ /** NOTE: This library is customized for Onsen UI. */ var MicroEvent = function(){}; MicroEvent.prototype = { on : function(event, fct){ this._events = this._events || {}; this._events[event] = this._events[event] || []; this._events[event].push(fct); }, once : function(event, fct){ var self = this; var wrapper = function() { self.off(event, wrapper); return fct.apply(null, arguments); }; this.on(event, wrapper); }, off : function(event, fct){ this._events = this._events || {}; if( event in this._events === false ) return; this._events[event].splice(this._events[event].indexOf(fct), 1); }, emit : function(event /* , args... */){ this._events = this._events || {}; if( event in this._events === false ) return; for(var i = 0; i < this._events[event].length; i++){ this._events[event][i].apply(this, Array.prototype.slice.call(arguments, 1)); } } }; /** * mixin will delegate all MicroEvent.js function in the destination object * * - require('MicroEvent').mixin(Foobar) will make Foobar able to use MicroEvent * * @param {Object} the object which will support MicroEvent */ MicroEvent.mixin = function(destObject){ var props = ['on', 'once', 'off', 'emit']; for(var i = 0; i < props.length; i ++){ if( typeof destObject === 'function' ){ destObject.prototype[props[i]] = MicroEvent.prototype[props[i]]; }else{ destObject[props[i]] = MicroEvent.prototype[props[i]]; } } } // export in common js if( typeof module !== "undefined" && ('exports' in module)){ module.exports = MicroEvent; } /* Modernizr 2.6.2 (Custom Build) | MIT & BSD * Build: http://modernizr.com/download/#-borderradius-boxshadow-cssanimations-csstransforms-csstransforms3d-csstransitions-canvas-svg-shiv-cssclasses-teststyles-testprop-testallprops-prefixes-domprefixes-load */ ; window.Modernizr = (function( window, document, undefined ) { var version = '2.6.2', Modernizr = {}, enableClasses = true, docElement = document.documentElement, mod = 'modernizr', modElem = document.createElement(mod), mStyle = modElem.style, inputElem , toString = {}.toString, prefixes = ' -webkit- -moz- -o- -ms- '.split(' '), omPrefixes = 'Webkit Moz O ms', cssomPrefixes = omPrefixes.split(' '), domPrefixes = omPrefixes.toLowerCase().split(' '), ns = {'svg': 'http://www.w3.org/2000/svg'}, tests = {}, inputs = {}, attrs = {}, classes = [], slice = classes.slice, featureName, injectElementWithStyles = function( rule, callback, nodes, testnames ) { var style, ret, node, docOverflow, div = document.createElement('div'), body = document.body, fakeBody = body || document.createElement('body'); if ( parseInt(nodes, 10) ) { while ( nodes-- ) { node = document.createElement('div'); node.id = testnames ? testnames[nodes] : mod + (nodes + 1); div.appendChild(node); } } style = ['&#173;','<style id="s', mod, '">', rule, '</style>'].join(''); div.id = mod; (body ? div : fakeBody).innerHTML += style; fakeBody.appendChild(div); if ( !body ) { fakeBody.style.background = ''; fakeBody.style.overflow = 'hidden'; docOverflow = docElement.style.overflow; docElement.style.overflow = 'hidden'; docElement.appendChild(fakeBody); } ret = callback(div, rule); if ( !body ) { fakeBody.parentNode.removeChild(fakeBody); docElement.style.overflow = docOverflow; } else { div.parentNode.removeChild(div); } return !!ret; }, _hasOwnProperty = ({}).hasOwnProperty, hasOwnProp; if ( !is(_hasOwnProperty, 'undefined') && !is(_hasOwnProperty.call, 'undefined') ) { hasOwnProp = function (object, property) { return _hasOwnProperty.call(object, property); }; } else { hasOwnProp = function (object, property) { return ((property in object) && is(object.constructor.prototype[property], 'undefined')); }; } if (!Function.prototype.bind) { Function.prototype.bind = function bind(that) { var target = this; if (typeof target != "function") { throw new TypeError(); } var args = slice.call(arguments, 1), bound = function () { if (this instanceof bound) { var F = function(){}; F.prototype = target.prototype; var self = new F(); var result = target.apply( self, args.concat(slice.call(arguments)) ); if (Object(result) === result) { return result; } return self; } else { return target.apply( that, args.concat(slice.call(arguments)) ); } }; return bound; }; } function setCss( str ) { mStyle.cssText = str; } function setCssAll( str1, str2 ) { return setCss(prefixes.join(str1 + ';') + ( str2 || '' )); } function is( obj, type ) { return typeof obj === type; } function contains( str, substr ) { return !!~('' + str).indexOf(substr); } function testProps( props, prefixed ) { for ( var i in props ) { var prop = props[i]; if ( !contains(prop, "-") && mStyle[prop] !== undefined ) { return prefixed == 'pfx' ? prop : true; } } return false; } function testDOMProps( props, obj, elem ) { for ( var i in props ) { var item = obj[props[i]]; if ( item !== undefined) { if (elem === false) return props[i]; if (is(item, 'function')){ return item.bind(elem || obj); } return item; } } return false; } function testPropsAll( prop, prefixed, elem ) { var ucProp = prop.charAt(0).toUpperCase() + prop.slice(1), props = (prop + ' ' + cssomPrefixes.join(ucProp + ' ') + ucProp).split(' '); if(is(prefixed, "string") || is(prefixed, "undefined")) { return testProps(props, prefixed); } else { props = (prop + ' ' + (domPrefixes).join(ucProp + ' ') + ucProp).split(' '); return testDOMProps(props, prefixed, elem); } } tests['canvas'] = function() { var elem = document.createElement('canvas'); return !!(elem.getContext && elem.getContext('2d')); }; tests['borderradius'] = function() { return testPropsAll('borderRadius'); }; tests['boxshadow'] = function() { return testPropsAll('boxShadow'); }; tests['cssanimations'] = function() { return testPropsAll('animationName'); }; tests['csstransforms'] = function() { return !!testPropsAll('transform'); }; tests['csstransforms3d'] = function() { var ret = !!testPropsAll('perspective'); if ( ret && 'webkitPerspective' in docElement.style ) { injectElementWithStyles('@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}', function( node, rule ) { ret = node.offsetLeft === 9 && node.offsetHeight === 3; }); } return ret; }; tests['csstransitions'] = function() { return testPropsAll('transition'); }; tests['svg'] = function() { return !!document.createElementNS && !!document.createElementNS(ns.svg, 'svg').createSVGRect; }; for ( var feature in tests ) { if ( hasOwnProp(tests, feature) ) { featureName = feature.toLowerCase(); Modernizr[featureName] = tests[feature](); classes.push((Modernizr[featureName] ? '' : 'no-') + featureName); } } Modernizr.addTest = function ( feature, test ) { if ( typeof feature == 'object' ) { for ( var key in feature ) { if ( hasOwnProp( feature, key ) ) { Modernizr.addTest( key, feature[ key ] ); } } } else { feature = feature.toLowerCase(); if ( Modernizr[feature] !== undefined ) { return Modernizr; } test = typeof test == 'function' ? test() : test; if (typeof enableClasses !== "undefined" && enableClasses) { docElement.className += ' ' + (test ? '' : 'no-') + feature; } Modernizr[feature] = test; } return Modernizr; }; setCss(''); modElem = inputElem = null; ;(function(window, document) { var options = window.html5 || {}; var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i; var saveClones = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i; var supportsHtml5Styles; var expando = '_html5shiv'; var expanID = 0; var expandoData = {}; var supportsUnknownElements; (function() { try { var a = document.createElement('a'); a.innerHTML = '<xyz></xyz>'; supportsHtml5Styles = ('hidden' in a); supportsUnknownElements = a.childNodes.length == 1 || (function() { (document.createElement)('a'); var frag = document.createDocumentFragment(); return ( typeof frag.cloneNode == 'undefined' || typeof frag.createDocumentFragment == 'undefined' || typeof frag.createElement == 'undefined' ); }()); } catch(e) { supportsHtml5Styles = true; supportsUnknownElements = true; } }()); function addStyleSheet(ownerDocument, cssText) { var p = ownerDocument.createElement('p'), parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement; p.innerHTML = 'x<style>' + cssText + '</style>'; return parent.insertBefore(p.lastChild, parent.firstChild); } function getElements() { var elements = html5.elements; return typeof elements == 'string' ? elements.split(' ') : elements; } function getExpandoData(ownerDocument) { var data = expandoData[ownerDocument[expando]]; if (!data) { data = {}; expanID++; ownerDocument[expando] = expanID; expandoData[expanID] = data; } return data; } function createElement(nodeName, ownerDocument, data){ if (!ownerDocument) { ownerDocument = document; } if(supportsUnknownElements){ return ownerDocument.createElement(nodeName); } if (!data) { data = getExpandoData(ownerDocument); } var node; if (data.cache[nodeName]) { node = data.cache[nodeName].cloneNode(); } else if (saveClones.test(nodeName)) { node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode(); } else { node = data.createElem(nodeName); } return node.canHaveChildren && !reSkip.test(nodeName) ? data.frag.appendChild(node) : node; } function createDocumentFragment(ownerDocument, data){ if (!ownerDocument) { ownerDocument = document; } if(supportsUnknownElements){ return ownerDocument.createDocumentFragment(); } data = data || getExpandoData(ownerDocument); var clone = data.frag.cloneNode(), i = 0, elems = getElements(), l = elems.length; for(;i<l;i++){ clone.createElement(elems[i]); } return clone; } function shivMethods(ownerDocument, data) { if (!data.cache) { data.cache = {}; data.createElem = ownerDocument.createElement; data.createFrag = ownerDocument.createDocumentFragment; data.frag = data.createFrag(); } ownerDocument.createElement = function(nodeName) { if (!html5.shivMethods) { return data.createElem(nodeName); } return createElement(nodeName, ownerDocument, data); }; ownerDocument.createDocumentFragment = Function('h,f', 'return function(){' + 'var n=f.cloneNode(),c=n.createElement;' + 'h.shivMethods&&(' + getElements().join().replace(/\w+/g, function(nodeName) { data.createElem(nodeName); data.frag.createElement(nodeName); return 'c("' + nodeName + '")'; }) + ');return n}' )(html5, data.frag); } function shivDocument(ownerDocument) { if (!ownerDocument) { ownerDocument = document; } var data = getExpandoData(ownerDocument); if (html5.shivCSS && !supportsHtml5Styles && !data.hasCSS) { data.hasCSS = !!addStyleSheet(ownerDocument, 'article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}' + 'mark{background:#FF0;color:#000}' ); } if (!supportsUnknownElements) { shivMethods(ownerDocument, data); } return ownerDocument; } var html5 = { 'elements': options.elements || 'abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video', 'shivCSS': (options.shivCSS !== false), 'supportsUnknownElements': supportsUnknownElements, 'shivMethods': (options.shivMethods !== false), 'type': 'default', 'shivDocument': shivDocument, createElement: createElement, createDocumentFragment: createDocumentFragment }; window.html5 = html5; shivDocument(document); }(this, document)); Modernizr._version = version; Modernizr._prefixes = prefixes; Modernizr._domPrefixes = domPrefixes; Modernizr._cssomPrefixes = cssomPrefixes; Modernizr.testProp = function(prop){ return testProps([prop]); }; Modernizr.testAllProps = testPropsAll; Modernizr.testStyles = injectElementWithStyles; docElement.className = docElement.className.replace(/(^|\s)no-js(\s|$)/, '$1$2') + (enableClasses ? ' js ' + classes.join(' ') : ''); return Modernizr; })(this, this.document); /*yepnope1.5.4|WTFPL*/ (function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}})(this,document); Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0));}; ; /* Copyright (c) 2012 Barnesandnoble.com, llc, Donavon West, and Domenic Denicola Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ (function (global, undefined) { "use strict"; if (global.setImmediate) { return; } var nextHandle = 1; // Spec says greater than zero var tasksByHandle = {}; var currentlyRunningATask = false; var doc = global.document; var setImmediate; function addFromSetImmediateArguments(args) { tasksByHandle[nextHandle] = partiallyApplied.apply(undefined, args); return nextHandle++; } // This function accepts the same arguments as setImmediate, but // returns a function that requires no arguments. function partiallyApplied(handler) { var args = [].slice.call(arguments, 1); return function() { if (typeof handler === "function") { handler.apply(undefined, args); } else { (new Function("" + handler))(); } }; } function runIfPresent(handle) { // From the spec: "Wait until any invocations of this algorithm started before this one have completed." // So if we're currently running a task, we'll need to delay this invocation. if (currentlyRunningATask) { // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a // "too much recursion" error. setTimeout(partiallyApplied(runIfPresent, handle), 0); } else { var task = tasksByHandle[handle]; if (task) { currentlyRunningATask = true; try { task(); } finally { clearImmediate(handle); currentlyRunningATask = false; } } } } function clearImmediate(handle) { delete tasksByHandle[handle]; } function installNextTickImplementation() { setImmediate = function() { var handle = addFromSetImmediateArguments(arguments); process.nextTick(partiallyApplied(runIfPresent, handle)); return handle; }; } function canUsePostMessage() { // The test against `importScripts` prevents this implementation from being installed inside a web worker, // where `global.postMessage` means something completely different and can't be used for this purpose. if (global.postMessage && !global.importScripts) { var postMessageIsAsynchronous = true; var oldOnMessage = global.onmessage; global.onmessage = function() { postMessageIsAsynchronous = false; }; global.postMessage("", "*"); global.onmessage = oldOnMessage; return postMessageIsAsynchronous; } } function installPostMessageImplementation() { // Installs an event handler on `global` for the `message` event: see // * https://developer.mozilla.org/en/DOM/window.postMessage // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages var messagePrefix = "setImmediate$" + Math.random() + "$"; var onGlobalMessage = function(event) { if (event.source === global && typeof event.data === "string" && event.data.indexOf(messagePrefix) === 0) { runIfPresent(+event.data.slice(messagePrefix.length)); } }; if (global.addEventListener) { global.addEventListener("message", onGlobalMessage, false); } else { global.attachEvent("onmessage", onGlobalMessage); } setImmediate = function() { var handle = addFromSetImmediateArguments(arguments); global.postMessage(messagePrefix + handle, "*"); return handle; }; } function installMessageChannelImplementation() { var channel = new MessageChannel(); channel.port1.onmessage = function(event) { var handle = event.data; runIfPresent(handle); }; setImmediate = function() { var handle = addFromSetImmediateArguments(arguments); channel.port2.postMessage(handle); return handle; }; } function installReadyStateChangeImplementation() { var html = doc.documentElement; setImmediate = function() { var handle = addFromSetImmediateArguments(arguments); // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called. var script = doc.createElement("script"); script.onreadystatechange = function () { runIfPresent(handle); script.onreadystatechange = null; html.removeChild(script); script = null; }; html.appendChild(script); return handle; }; } function installSetTimeoutImplementation() { setImmediate = function() { var handle = addFromSetImmediateArguments(arguments); setTimeout(partiallyApplied(runIfPresent, handle), 0); return handle; }; } // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live. var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global); attachTo = attachTo && attachTo.setTimeout ? attachTo : global; // Don't get fooled by e.g. browserify environments. if ({}.toString.call(global.process) === "[object process]") { // For Node.js before 0.9 installNextTickImplementation(); } else if (canUsePostMessage()) { // For non-IE10 modern browsers installPostMessageImplementation(); } else if (global.MessageChannel) { // For web workers, where supported installMessageChannelImplementation(); } else if (doc && "onreadystatechange" in doc.createElement("script")) { // For IE 6–8 installReadyStateChangeImplementation(); } else { // For older browsers installSetTimeoutImplementation(); } attachTo.setImmediate = setImmediate; attachTo.clearImmediate = clearImmediate; }(new Function("return this")())); (function() { function Viewport() { this.PRE_IOS7_VIEWPORT = "initial-scale=1, maximum-scale=1, user-scalable=no"; this.IOS7_VIEWPORT = "initial-scale=1, maximum-scale=1, user-scalable=no"; this.DEFAULT_VIEWPORT = "initial-scale=1, maximum-scale=1, user-scalable=no"; this.ensureViewportElement(); this.platform = {}; this.platform.name = this.getPlatformName(); this.platform.version = this.getPlatformVersion(); return this; }; Viewport.prototype.ensureViewportElement = function(){ this.viewportElement = document.querySelector('meta[name=viewport]'); if(!this.viewportElement){ this.viewportElement = document.createElement('meta'); this.viewportElement.name = "viewport"; document.head.appendChild(this.viewportElement); } }, Viewport.prototype.setup = function() { if (!this.viewportElement) { return; } if (this.viewportElement.getAttribute('data-no-adjust') == "true") { return; } if (this.platform.name == 'ios') { if (this.platform.version >= 7 && isWebView()) { this.viewportElement.setAttribute('content', this.IOS7_VIEWPORT); } else { this.viewportElement.setAttribute('content', this.PRE_IOS7_VIEWPORT); } } else { this.viewportElement.setAttribute('content', this.DEFAULT_VIEWPORT); } function isWebView() { return !!(window.cordova || window.phonegap || window.PhoneGap); } }; Viewport.prototype.getPlatformName = function() { if (navigator.userAgent.match(/Android/i)) { return "android"; } if (navigator.userAgent.match(/iPhone|iPad|iPod/i)) { return "ios"; } // unknown return undefined; }; Viewport.prototype.getPlatformVersion = function() { var start = window.navigator.userAgent.indexOf('OS '); return window.Number(window.navigator.userAgent.substr(start + 3, 3).replace('_', '.')); }; window.Viewport = Viewport; })(); (function(module) { try { module = angular.module('templates-main'); } catch(err) { module = angular.module('templates-main', []); } module.run(['$templateCache', function($templateCache) { 'use strict'; $templateCache.put('templates/back_button.tpl', '<span \n' + ' class="toolbar-button--quiet {{modifierTemplater(\'toolbar-button--*\')}}" \n' + ' ng-click="$root.ons.findParentComponentUntil(\'ons-navigator\', $event).popPage()" \n' + ' ng-show="showBackButton"\n' + ' style="height: 44px; line-height: 0; padding: 0 10px 0 0; position: relative;">\n' + ' \n' + ' <i \n' + ' class="ion-ios-arrow-back ons-back-button__icon" \n' + ' style="vertical-align: top; background-color: transparent; height: 44px; line-height: 44px; font-size: 36px; margin-left: 8px; margin-right: 2px; width: 16px; display: inline-block; padding-top: 1px;"></i>\n' + '\n' + ' <span \n' + ' style="vertical-align: top; display: inline-block; line-height: 44px; height: 44px;" \n' + ' class="back-button__label"></span>\n' + '</span>\n' + ''); }]); })(); (function(module) { try { module = angular.module('templates-main'); } catch(err) { module = angular.module('templates-main', []); } module.run(['$templateCache', function($templateCache) { 'use strict'; $templateCache.put('templates/button.tpl', '<span class="label ons-button-inner"></span>\n' + '<span class="spinner button__spinner {{modifierTemplater(\'button--*__spinner\')}}"></span>\n' + ''); }]); })(); (function(module) { try { module = angular.module('templates-main'); } catch(err) { module = angular.module('templates-main', []); } module.run(['$templateCache', function($templateCache) { 'use strict'; $templateCache.put('templates/dialog.tpl', '<div class="dialog-mask"></div>\n' + '<div class="dialog {{ modifierTemplater(\'dialog--*\') }}"></div>\n' + '</div>\n' + ''); }]); })(); (function(module) { try { module = angular.module('templates-main'); } catch(err) { module = angular.module('templates-main', []); } module.run(['$templateCache', function($templateCache) { 'use strict'; $templateCache.put('templates/icon.tpl', '<i class="fa fa-{{icon}} fa-{{spin}} fa-{{fixedWidth}} fa-rotate-{{rotate}} fa-flip-{{flip}}" ng-class="sizeClass" ng-style="style"></i>\n' + ''); }]); })(); (function(module) { try { module = angular.module('templates-main'); } catch(err) { module = angular.module('templates-main', []); } module.run(['$templateCache', function($templateCache) { 'use strict'; $templateCache.put('templates/popover.tpl', '<div class="popover-mask"></div>\n' + '<div class="popover popover--{{ direction }} {{ modifierTemplater(\'popover--*\') }}">\n' + ' <div class="popover__content {{ modifierTemplater(\'popover__content--*\') }}"></div>\n' + ' <div class="popover__{{ arrowPosition }}-arrow"></div>\n' + '</div>\n' + ''); }]); })(); (function(module) { try { module = angular.module('templates-main'); } catch(err) { module = angular.module('templates-main', []); } module.run(['$templateCache', function($templateCache) { 'use strict'; $templateCache.put('templates/row.tpl', '<div class="row row-{{align}} ons-row-inner"></div>\n' + ''); }]); })(); (function(module) { try { module = angular.module('templates-main'); } catch(err) { module = angular.module('templates-main', []); } module.run(['$templateCache', function($templateCache) { 'use strict'; $templateCache.put('templates/sliding_menu.tpl', '<div class="onsen-sliding-menu__menu ons-sliding-menu-inner"></div>\n' + '<div class="onsen-sliding-menu__main ons-sliding-menu-inner"></div>\n' + ''); }]); })(); (function(module) { try { module = angular.module('templates-main'); } catch(err) { module = angular.module('templates-main', []); } module.run(['$templateCache', function($templateCache) { 'use strict'; $templateCache.put('templates/split_view.tpl', '<div class="onsen-split-view__secondary full-screen ons-split-view-inner"></div>\n' + '<div class="onsen-split-view__main full-screen ons-split-view-inner"></div>\n' + ''); }]); })(); (function(module) { try { module = angular.module('templates-main'); } catch(err) { module = angular.module('templates-main', []); } module.run(['$templateCache', function($templateCache) { 'use strict'; $templateCache.put('templates/switch.tpl', '<label class="switch {{modifierTemplater(\'switch--*\')}}">\n' + ' <input type="checkbox" class="switch__input {{modifierTemplater(\'switch--*__input\')}}" ng-model="model">\n' + ' <div class="switch__toggle {{modifierTemplater(\'switch--*__toggle\')}}"></div>\n' + '</label>\n' + ''); }]); })(); (function(module) { try { module = angular.module('templates-main'); } catch(err) { module = angular.module('templates-main', []); } module.run(['$templateCache', function($templateCache) { 'use strict'; $templateCache.put('templates/tab.tpl', '<input type="radio" name="tab-bar-{{tabbarId}}" style="display: none">\n' + '<button class="tab-bar__button tab-bar-inner {{tabbarModifierTemplater(\'tab-bar--*__button\')}} {{modifierTemplater(\'tab-bar__button--*\')}}" ng-click="tryToChange()">\n' + '</button>\n' + ''); }]); })(); (function(module) { try { module = angular.module('templates-main'); } catch(err) { module = angular.module('templates-main', []); } module.run(['$templateCache', function($templateCache) { 'use strict'; $templateCache.put('templates/tab_bar.tpl', '<div class="ons-tab-bar__content tab-bar__content"></div>\n' + '<div ng-hide="hideTabs" class="tab-bar ons-tab-bar__footer {{modifierTemplater(\'tab-bar--*\')}} ons-tabbar-inner"></div>\n' + ''); }]); })(); (function(module) { try { module = angular.module('templates-main'); } catch(err) { module = angular.module('templates-main', []); } module.run(['$templateCache', function($templateCache) { 'use strict'; $templateCache.put('templates/toolbar_button.tpl', '<span class="toolbar-button {{modifierTemplater(\'toolbar-button--*\')}} navigation-bar__line-height" ng-transclude></span>\n' + ''); }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ window.DoorLock = (function() { /** * Door locking system. * * @param {Object} [options] * @param {Function} [options.log] */ var DoorLock = function(options) { options = options || {}; this._lockList = []; this._waitList = []; this._log = options.log || function() {}; }; DoorLock.generateId = (function() { var i = 0; return function() { return i++; }; })(); DoorLock.prototype = { /** * Register a lock. * * @return {Function} Callback for unlocking. */ lock: function() { var self = this; var unlock = function() { self._unlock(unlock); }; unlock.id = DoorLock.generateId(); this._lockList.push(unlock); this._log('lock: ' + (unlock.id)); return unlock; }, _unlock: function(fn) { var index = this._lockList.indexOf(fn); if (index === -1) { throw new Error('This function is not registered in the lock list.'); } this._lockList.splice(index, 1); this._log('unlock: ' + fn.id); this._tryToFreeWaitList(); }, _tryToFreeWaitList: function() { while (!this.isLocked() && this._waitList.length > 0) { this._waitList.shift()(); } }, /** * Register a callback for waiting unlocked door. * * @params {Function} callback Callback on unlocking the door completely. */ waitUnlock: function(callback) { if (!(callback instanceof Function)) { throw new Error('The callback param must be a function.'); } if (this.isLocked()) { this._waitList.push(callback); } else { callback(); } }, /** * @return {Boolean} */ isLocked: function() { return this._lockList.length > 0; } }; return DoorLock; })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ /** * @ngdoc object * @name ons * @category util * @description * [ja]Onsen UIで利用できるグローバルなオブジェクトです。このオブジェクトは、AngularJSのスコープから参照することができます。 [/ja] * [en]A global object that's used in Onsen UI. This object can be reached from the AngularJS scope.[/en] */ /** * @ngdoc method * @signature ready(callback) * @description * [ja]アプリの初期化に利用するメソッドです。渡された関数は、Onsen UIの初期化が終了している時点で必ず呼ばれます。[/ja] * [en]Method used to wait for app initialization. The callback will not be executed until Onsen UI has been completely initialized.[/en] * @param {Function} callback * [en]Function that executes after Onsen UI has been initialized.[/en] * [ja]Onsen UIが初期化が完了した後に呼び出される関数オブジェクトを指定します。[/ja] */ /** * @ngdoc method * @signature bootstrap([moduleName, [dependencies]]) * @description * [ja]Onsen UIの初期化を行います。Angular.jsのng-app属性を利用すること無しにOnsen UIを読み込んで初期化してくれます。[/ja] * [en]Initialize Onsen UI. Can be used to load Onsen UI without using the <code>ng-app</code> attribute from AngularJS.[/en] * @param {String} [moduleName] * [en]AngularJS module name.[/en] * [ja]Angular.jsでのモジュール名[/ja] * @param {Array} [dependencies] * [en]List of AngularJS module dependencies.[/en] * [ja]依存するAngular.jsのモジュール名の配列[/ja] * @return {Object} * [en]An AngularJS module object.[/en] * [ja]AngularJSのModuleオブジェクトを表します。[/ja] */ /** * @ngdoc method * @signature enableAutoStatusBarFill() * @description * [en]Enable status bar fill feature on iOS7 and above.[/en] * [ja]iOS7以上で、ステータスバー部分の高さを自動的に埋める処理を有効にします。[/ja] */ /** * @ngdoc method * @signature disableAutoStatusBarFill() * @description * [en]Disable status bar fill feature on iOS7 and above.[/en] * [ja]iOS7以上で、ステータスバー部分の高さを自動的に埋める処理を無効にします。[/ja] */ /** * @ngdoc method * @signature findParentComponentUntil(name, [dom]) * @param {String} name * [en]Name of component, i.e. 'ons-page'.[/en] * [ja]コンポーネント名を指定します。例えばons-pageなどを指定します。[/ja] * @param {Object|jqLite|HTMLElement} [dom] * [en]$event, jqLite or HTMLElement object.[/en] * [ja]$eventオブジェクト、jqLiteオブジェクト、HTMLElementオブジェクトのいずれかを指定できます。[/ja] * @return {Object} * [en]Component object. Will return null if no component was found.[/en] * [ja]コンポーネントのオブジェクトを返します。もしコンポーネントが見つからなかった場合にはnullを返します。[/ja] * @description * [en]Find parent component object of <code>dom</code> element.[/en] * [ja]指定されたdom引数の親要素をたどってコンポーネントを検索します。[/ja] */ /** * @ngdoc method * @signature findComponent(selector, [dom]) * @param {String} selector * [en]CSS selector[/en] * [ja]CSSセレクターを指定します。[/ja] * @param {HTMLElement} [dom] * [en]DOM element to search from.[/en] * [ja]検索対象とするDOM要素を指定します。[/ja] * @return {Object} * [en]Component object. Will return null if no component was found.[/en] * [ja]コンポーネントのオブジェクトを返します。もしコンポーネントが見つからなかった場合にはnullを返します。[/ja] * @description * [en]Find component object using CSS selector.[/en] * [ja]CSSセレクタを使ってコンポーネントのオブジェクトを検索します。[/ja] */ /** * @ngdoc method * @signature setDefaultDeviceBackButtonListener(listener) * @param {Function} listener * [en]Function that executes when device back button is pressed.[/en] * [ja]デバイスのバックボタンが押された時に実行される関数オブジェクトを指定します。[/ja] * @description * [en]Set default handler for device back button.[/en] * [ja]デバイスのバックボタンのためのデフォルトのハンドラを設定します。[/ja] */ /** * @ngdoc method * @signature disableDeviceBackButtonHandler() * @description * [en]Disable device back button event handler.[/en] * [ja]デバイスのバックボタンのイベントを受け付けないようにします。[/ja] */ /** * @ngdoc method * @signature enableDeviceBackButtonHandler() * @description * [en]Enable device back button event handler.[/en] * [ja]デバイスのバックボタンのイベントを受け付けるようにします。[/ja] */ /** * @ngdoc method * @signature isReady() * @return {Boolean} * [en]Will be true if Onsen UI is initialized.[/en] * [ja]初期化されているかどうかを返します。[/ja] * @description * [en]Returns true if Onsen UI is initialized.[/en] * [ja]Onsen UIがすでに初期化されているかどうかを返すメソッドです。[/ja] */ /** * @ngdoc method * @signature compile(dom) * @param {HTMLElement} dom * [en]Element to compile.[/en] * [ja]コンパイルする要素を指定します。[/ja] * @description * [en]Compile Onsen UI components.[/en] * [ja]通常のHTMLの要素をOnsen UIのコンポーネントにコンパイルします。[/ja] */ /** * @ngdoc method * @signature isWebView() * @return {Boolean} * [en]Will be true if the app is running in Cordova.[/en] * [ja]Cordovaで実行されている場合にtrueになります。[/ja] * @description * [en]Returns true if running inside Cordova.[/en] * [ja]Cordovaで実行されているかどうかを返すメソッドです。[/ja] */ /** * @ngdoc method * @signature createAlertDialog(page, [options]) * @param {String} page * [en]Page name. Can be either an HTML file or an <ons-template> containing a <ons-alert-dialog> component.[/en] * [ja]pageのURLか、もしくはons-templateで宣言したテンプレートのid属性の値を指定できます。[/ja] * @param {Object} [options] * [en]Parameter object.[/en] * [ja]オプションを指定するオブジェクト。[/ja] * @param {Object} [options.parentScope] * [en]Parent scope of the dialog. Used to bind models and access scope methods from the dialog.[/en] * [ja]ダイアログ内で利用する親スコープを指定します。ダイアログからモデルやスコープのメソッドにアクセスするのに使います。[/ja] * @return {Promise} * [en]Promise object that resolves to the alert dialog component object.[/en] * [ja]ダイアログのコンポーネントオブジェクトを解決するPromiseオブジェクトを返します。[/ja] * @description * [en]Create a alert dialog instance from a template.[/en] * [ja]テンプレートからアラートダイアログのインスタンスを生成します。[/ja] */ /** * @ngdoc method * @signature createDialog(page, [options]) * @param {String} page * [en]Page name. Can be either an HTML file or an <ons-template> containing a <ons-dialog> component.[/en] * [ja]pageのURLか、もしくはons-templateで宣言したテンプレートのid属性の値を指定できます。[/ja] * @param {Object} [options] * [en]Parameter object.[/en] * [ja]オプションを指定するオブジェクト。[/ja] * @param {Object} [options.parentScope] * [en]Parent scope of the dialog. Used to bind models and access scope methods from the dialog.[/en] * [ja]ダイアログ内で利用する親スコープを指定します。ダイアログからモデルやスコープのメソッドにアクセスするのに使います。[/ja] * @return {Promise} * [en]Promise object that resolves to the dialog component object.[/en] * [ja]ダイアログのコンポーネントオブジェクトを解決するPromiseオブジェクトを返します。[/ja] * @description * [en]Create a dialog instance from a template.[/en] * [ja]テンプレートからダイアログのインスタンスを生成します。[/ja] */ /** * @ngdoc method * @signature createPopover(page, [options]) * @param {String} page * [en]Page name. Can be either an HTML file or an <ons-template> containing a <ons-dialog> component.[/en] * [ja]pageのURLか、もしくはons-templateで宣言したテンプレートのid属性の値を指定できます。[/ja] * @param {Object} [options] * [en]Parameter object.[/en] * [ja]オプションを指定するオブジェクト。[/ja] * @param {Object} [options.parentScope] * [en]Parent scope of the dialog. Used to bind models and access scope methods from the dialog.[/en] * [ja]ダイアログ内で利用する親スコープを指定します。ダイアログからモデルやスコープのメソッドにアクセスするのに使います。[/ja] * @return {Promise} * [en]Promise object that resolves to the popover component object.[/en] * [ja]ポップオーバーのコンポーネントオブジェクトを解決するPromiseオブジェクトを返します。[/ja] * @description * [en]Create a popover instance from a template.[/en] * [ja]テンプレートからポップオーバーのインスタンスを生成します。[/ja] */ window.ons = (function(){ 'use strict'; var module = angular.module('onsen', ['templates-main']); angular.module('onsen.directives', ['onsen']); // for BC // JS Global facade for Onsen UI. var ons = createOnsenFacade(); initKeyboardEvents(); waitDeviceReady(); waitOnsenUILoad(); initAngularModule(); changeHammerDefault(); return ons; function waitDeviceReady() { var unlockDeviceReady = ons._readyLock.lock(); window.addEventListener('DOMContentLoaded', function() { if (ons.isWebView()) { window.document.addEventListener('deviceready', unlockDeviceReady, false); } else { unlockDeviceReady(); } }, false); } function waitOnsenUILoad() { var unlockOnsenUI = ons._readyLock.lock(); module.run(['$compile', '$rootScope', '$onsen', function($compile, $rootScope, $onsen) { // for initialization hook. if (document.readyState === 'loading' || document.readyState == 'uninitialized') { window.addEventListener('DOMContentLoaded', function() { document.body.appendChild(document.createElement('ons-dummy-for-init')); }); } else if (document.body) { document.body.appendChild(document.createElement('ons-dummy-for-init')); } else { throw new Error('Invalid initialization state.'); } $rootScope.$on('$ons-ready', unlockOnsenUI); }]); } function initAngularModule() { module.value('$onsGlobal', ons); module.run(['$compile', '$rootScope', '$onsen', '$q', function($compile, $rootScope, $onsen, $q) { ons._onsenService = $onsen; ons._qService = $q; $rootScope.ons = window.ons; $rootScope.console = window.console; $rootScope.alert = window.alert; ons.$compile = $compile; }]); } //Change the default touchAction of Hammer.js, needed for Windows Phone app function changeHammerDefault() { Hammer.defaults.behavior.touchAction = 'none'; } function initKeyboardEvents() { ons.softwareKeyboard = new MicroEvent(); ons.softwareKeyboard._visible = false; var onShow = function() { ons.softwareKeyboard._visible = true; ons.softwareKeyboard.emit('show'); }, onHide = function() { ons.softwareKeyboard._visible = false; ons.softwareKeyboard.emit('hide'); }; var bindEvents = function() { if (typeof Keyboard !== 'undefined') { // https://github.com/martinmose/cordova-keyboard/blob/95f3da3a38d8f8e1fa41fbf40145352c13535a00/README.md Keyboard.onshow = onShow; Keyboard.onhide = onHide; ons.softwareKeyboard.emit('init', {visible: Keyboard.isVisible}); return true; } else if (typeof cordova.plugins !== 'undefined' && typeof cordova.plugins.Keyboard !== 'undefined') { // https://github.com/driftyco/ionic-plugins-keyboard/blob/ca27ecf/README.md window.addEventListener('native.keyboardshow', onShow); window.addEventListener('native.keyboardhide', onHide); ons.softwareKeyboard.emit('init', {visible: cordova.plugins.Keyboard.isVisible}); return true; } return false; }; var noPluginError = function() { console.warn('ons-keyboard: Cordova Keyboard plugin is not present.'); }; document.addEventListener('deviceready', function() { if (!bindEvents()) { if (document.querySelector('[ons-keyboard-active]') || document.querySelector('[ons-keyboard-inactive]')) { noPluginError(); } ons.softwareKeyboard.on = noPluginError; } }); } function createOnsenFacade() { var ons = { _readyLock: new DoorLock(), _onsenService: null, _config: { autoStatusBarFill: true }, _unlockersDict: {}, // Object to attach component variables to when using the var="..." attribute. // Can be set to null to avoid polluting the global scope. componentBase: window, /** * Bootstrap this document as a Onsen UI application. * * @param {String} [name] optional name * @param {Array} [deps] optional dependency modules */ bootstrap : function(name, deps) { if (angular.isArray(name)) { deps = name; name = undefined; } if (!name) { name = 'myOnsenApp'; } deps = ['onsen'].concat(angular.isArray(deps) ? deps : []); var module = angular.module(name, deps); var doc = window.document; if (doc.readyState == 'loading' || doc.readyState == 'uninitialized') { doc.addEventListener('DOMContentLoaded', function() { angular.bootstrap(doc.documentElement, [name]); }, false); } else if (doc.documentElement) { angular.bootstrap(doc.documentElement, [name]); } else { throw new Error('Invalid state'); } return module; }, /** * Enable status bar fill feature on iOS7 and above. */ enableAutoStatusBarFill: function() { if (this.isReady()) { throw new Error('This method must be called before ons.isReady() is true.'); } this._config.autoStatusBarFill = true; }, /** * Disable status bar fill feature on iOS7 and above. */ disableAutoStatusBarFill: function() { if (this.isReady()) { throw new Error('This method must be called before ons.isReady() is true.'); } this._config.autoStatusBarFill = false; }, /** * @param {String} [name] * @param {Object/jqLite/HTMLElement} dom $event object or jqLite object or HTMLElement object. * @return {Object} */ findParentComponentUntil: function(name, dom) { var element; if (dom instanceof HTMLElement) { element = angular.element(dom); } else if (dom instanceof angular.element) { element = dom; } else if (dom.target) { element = angular.element(dom.target); } return element.inheritedData(name); }, /** * @param {Function} listener */ setDefaultDeviceBackButtonListener: function(listener) { this._getOnsenService().getDefaultDeviceBackButtonHandler().setListener(listener); }, /** * Disable this framework to handle cordova "backbutton" event. */ disableDeviceBackButtonHandler: function() { this._getOnsenService().DeviceBackButtonHandler.disable(); }, /** * Enable this framework to handle cordova "backbutton" event. */ enableDeviceBackButtonHandler: function() { this._getOnsenService().DeviceBackButtonHandler.enable(); }, /** * Find view object correspond dom element queried by CSS selector. * * @param {String} selector CSS selector * @param {HTMLElement} [dom] * @return {Object/void} */ findComponent: function(selector, dom) { var target = (dom ? dom : document).querySelector(selector); return target ? angular.element(target).data(target.nodeName.toLowerCase()) || null : null; }, /** * @return {Boolean} */ isReady: function() { return !ons._readyLock.isLocked(); }, /** * @param {HTMLElement} dom */ compile : function(dom) { if (!ons.$compile) { throw new Error('ons.$compile() is not ready. Wait for initialization with ons.ready().'); } if (!(dom instanceof HTMLElement)) { throw new Error('First argument must be an instance of HTMLElement.'); } var scope = angular.element(dom).scope(); if (!scope) { throw new Error('AngularJS Scope is null. Argument DOM element must be attached in DOM document.'); } ons.$compile(dom)(scope); }, _getOnsenService: function() { if (!this._onsenService) { throw new Error('$onsen is not loaded, wait for ons.ready().'); } return this._onsenService; }, /** * @param {Array} [dependencies] * @param {Function} callback */ ready : function(/* dependencies, */callback) { if (callback instanceof Function) { if (ons.isReady()) { callback(); } else { ons._readyLock.waitUnlock(callback); } } else if (angular.isArray(callback) && arguments[1] instanceof Function) { var dependencies = callback; callback = arguments[1]; ons.ready(function() { var $onsen = ons._getOnsenService(); $onsen.waitForVariables(dependencies, callback); }); } }, /** * @return {Boolean} */ isWebView: function() { if (document.readyState === 'loading' || document.readyState == 'uninitialized') { throw new Error('isWebView() method is available after dom contents loaded.'); } return !!(window.cordova || window.phonegap || window.PhoneGap); }, /** * @param {String} page * @param {Object} [options] * @param {Object} [options.parentScope] * @return {Promise} */ createAlertDialog: function(page, options) { options = options || {}; if (!page) { throw new Error('Page url must be defined.'); } var alertDialog = angular.element('<ons-alert-dialog>'), $onsen = this._getOnsenService(); angular.element(document.body).append(angular.element(alertDialog)); return $onsen.getPageHTMLAsync(page).then(function(html) { var div = document.createElement('div'); div.innerHTML = html; var el = angular.element(div.querySelector('ons-alert-dialog')); // Copy attributes and insert html. var attrs = el.prop('attributes'); for (var i = 0, l = attrs.length; i < l; i++) { alertDialog.attr(attrs[i].name, attrs[i].value); } alertDialog.html(el.html()); if (options.parentScope) { ons.$compile(alertDialog)(options.parentScope.$new()); } else { ons.compile(alertDialog[0]); } if (el.attr('disabled')) { alertDialog.attr('disabled', 'disabled'); } return alertDialog.data('ons-alert-dialog'); }); }, /** * @param {String} page * @param {Object} [options] * @param {Object} [options.parentScope] * @return {Promise} */ createDialog: function(page, options) { options = options || {}; if (!page) { throw new Error('Page url must be defined.'); } var dialog = angular.element('<ons-dialog>'), $onsen = this._getOnsenService(); angular.element(document.body).append(angular.element(dialog)); return $onsen.getPageHTMLAsync(page).then(function(html) { var div = document.createElement('div'); div.innerHTML = html; var el = angular.element(div.querySelector('ons-dialog')); // Copy attributes and insert html. var attrs = el.prop('attributes'); for (var i = 0, l = attrs.length; i < l; i++) { dialog.attr(attrs[i].name, attrs[i].value); } dialog.html(el.html()); if (options.parentScope) { ons.$compile(dialog)(options.parentScope.$new()); } else { ons.compile(dialog[0]); } if (el.attr('disabled')) { dialog.attr('disabled', 'disabled'); } var deferred = ons._qService.defer(); dialog.on('ons-dialog:init', function(e) { // Copy "style" attribute from parent. var child = dialog[0].querySelector('.dialog'); if (el[0].hasAttribute('style')) { var parentStyle = el[0].getAttribute('style'), childStyle = child.getAttribute('style'), newStyle = (function(a, b) { var c = (a.substr(-1) === ';' ? a : a + ';') + (b.substr(-1) === ';' ? b : b + ';'); return c; })(parentStyle, childStyle); child.setAttribute('style', newStyle); } deferred.resolve(e.component); }); return deferred.promise; }); }, /** * @param {String} page * @param {Object} [options] * @param {Object} [options.parentScope] * @return {Promise} */ createPopover: function(page, options) { options = options || {}; if (!page) { throw new Error('Page url must be defined.'); } var popover = angular.element('<ons-popover>'), $onsen = this._getOnsenService(); angular.element(document.body).append(angular.element(popover)); return $onsen.getPageHTMLAsync(page).then(function(html) { var div = document.createElement('div'); div.innerHTML = html; var el = angular.element(div.querySelector('ons-popover')); // Copy attributes and insert html. var attrs = el.prop('attributes'); for (var i = 0, l = attrs.length; i < l; i++) { popover.attr(attrs[i].name, attrs[i].value); } popover.html(el.html()); if (options.parentScope) { ons.$compile(popover)(options.parentScope.$new()); } else { ons.compile(popover[0]); } if (el.attr('disabled')) { popover.attr('disabled', 'disabled'); } var deferred = ons._qService.defer(); popover.on('ons-popover:init', function(e) { // Copy "style" attribute from parent. var child = popover[0].querySelector('.popover'); if (el[0].hasAttribute('style')) { var parentStyle = el[0].getAttribute('style'), childStyle = child.getAttribute('style'), newStyle = (function(a, b) { var c = (a.substr(-1) === ';' ? a : a + ';') + (b.substr(-1) === ';' ? b : b + ';'); return c; })(parentStyle, childStyle); child.setAttribute('style', newStyle); } deferred.resolve(e.component); }); return deferred.promise; }); } }; return ons; } })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict'; var module = angular.module('onsen'); module.factory('AlertDialogView', ['$onsen', 'DialogAnimator', 'SlideDialogAnimator', 'AndroidAlertDialogAnimator', 'IOSAlertDialogAnimator', function($onsen, DialogAnimator, SlideDialogAnimator, AndroidAlertDialogAnimator, IOSAlertDialogAnimator) { var AlertDialogView = Class.extend({ /** * @param {Object} scope * @param {jqLite} element * @param {Object} attrs */ init: function(scope, element, attrs) { this._scope = scope; this._element = element; this._attrs = attrs; this._element.css({ display: 'none', zIndex: 20001 }); this._dialog = element; this._visible = false; this._doorLock = new DoorLock(); this._animation = AlertDialogView._animatorDict[typeof attrs.animation !== 'undefined' ? attrs.animation : 'default']; if (!this._animation) { throw new Error('No such animation: ' + attrs.animation); } this._deviceBackButtonHandler = $onsen.DeviceBackButtonHandler.create(this._element, this._onDeviceBackButton.bind(this)); this._createMask(attrs.maskColor); this._scope.$on('$destroy', this._destroy.bind(this)); }, /** * Show alert dialog. * * @param {Object} [options] * @param {String} [options.animation] animation type * @param {Function} [options.callback] callback after dialog is shown */ show: function(options) { options = options || {}; var cancel = false, callback = options.callback || function() {}; this.emit('preshow', { alertDialog: this, cancel: function() { cancel = true; } }); if (!cancel) { this._doorLock.waitUnlock(function() { var unlock = this._doorLock.lock(), animation = this._animation; this._mask.css('display', 'block'); this._mask.css('opacity', 1); this._element.css('display', 'block'); if (options.animation) { animation = AlertDialogView._animatorDict[options.animation]; } animation.show(this, function() { this._visible = true; unlock(); this.emit('postshow', {alertDialog: this}); callback(); }.bind(this)); }.bind(this)); } }, /** * Hide alert dialog. * * @param {Object} [options] * @param {String} [options.animation] animation type * @param {Function} [options.callback] callback after dialog is hidden */ hide: function(options) { options = options || {}; var cancel = false, callback = options.callback || function() {}; this.emit('prehide', { alertDialog: this, cancel: function() { cancel = true; } }); if (!cancel) { this._doorLock.waitUnlock(function() { var unlock = this._doorLock.lock(), animation = this._animation; if (options.animation) { animation = AlertDialogView._animatorDict[options.animation]; } animation.hide(this, function() { this._element.css('display', 'none'); this._mask.css('display', 'none'); this._visible = false; unlock(); this.emit('posthide', {alertDialog: this}); callback(); }.bind(this)); }.bind(this)); } }, /** * True if alert dialog is visible. * * @return {Boolean} */ isShown: function() { return this._visible; }, /** * Destroy alert dialog. */ destroy: function() { this._scope.$destroy(); }, _destroy: function() { this.emit('destroy'); this._mask.off(); this._element.remove(); this._mask.remove(); this._deviceBackButtonHandler.destroy(); this._deviceBackButtonHandler = this._scope = this._attrs = this._element = this._mask = null; }, /** * Disable or enable alert dialog. * * @param {Boolean} */ setDisabled: function(disabled) { if (typeof disabled !== 'boolean') { throw new Error('Argument must be a boolean.'); } if (disabled) { this._element.attr('disabled', true); } else { this._element.removeAttr('disabled'); } }, /** * True if alert dialog is disabled. * * @return {Boolean} */ isDisabled: function() { return this._element[0].hasAttribute('disabled'); }, /** * Make alert dialog cancelable or uncancelable. * * @param {Boolean} */ setCancelable: function(cancelable) { if (typeof cancelable !== 'boolean') { throw new Error('Argument must be a boolean.'); } if (cancelable) { this._element.attr('cancelable', true); } else { this._element.removeAttr('cancelable'); } }, isCancelable: function() { return this._element[0].hasAttribute('cancelable'); }, _cancel: function() { if (this.isCancelable()) { this.hide({ callback: function () { this.emit('cancel'); }.bind(this) }); } }, _onDeviceBackButton: function(event) { if (this.isCancelable()) { this._cancel.bind(this)(); } else { event.callParentHandler(); } }, _createMask: function(color) { this._mask = angular.element('<div>').addClass('alert-dialog-mask').css({ zIndex: 20000, display: 'none' }); this._mask.on('click', this._cancel.bind(this)); if (color) { this._mask.css('background-color', color); } angular.element(document.body).append(this._mask); } }); AlertDialogView._animatorDict = { 'default': $onsen.isAndroid() ? new AndroidAlertDialogAnimator() : new IOSAlertDialogAnimator(), 'fade': $onsen.isAndroid() ? new AndroidAlertDialogAnimator() : new IOSAlertDialogAnimator(), 'slide': new SlideDialogAnimator(), 'none': new DialogAnimator() }; /** * @param {String} name * @param {DialogAnimator} animator */ AlertDialogView.registerAnimator = function(name, animator) { if (!(animator instanceof DialogAnimator)) { throw new Error('"animator" param must be an instance of DialogAnimator'); } this._animatorDict[name] = animator; }; MicroEvent.mixin(AlertDialogView); return AlertDialogView; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict;'; var module = angular.module('onsen'); module.factory('AndroidAlertDialogAnimator', ['DialogAnimator', function(DialogAnimator) { /** * Android style animator for alert dialog. */ var AndroidAlertDialogAnimator = DialogAnimator.extend({ timing: 'cubic-bezier(.1, .7, .4, 1)', duration: 0.2, init: function(options) { options = options || {}; this.timing = options.timing || this.timing; this.duration = options.duration !== undefined ? options.duration : this.duration; }, /** * @param {Object} dialog * @param {Function} callback */ show: function(dialog, callback) { callback = callback ? callback : function() {}; animit.runAll( animit(dialog._mask[0]) .queue({ opacity: 0 }) .queue({ opacity: 1.0 }, { duration: this.duration, timing: this.timing }), animit(dialog._dialog[0]) .queue({ css: { transform: 'translate3d(-50%, -50%, 0) scale3d(0.9, 0.9, 1.0)', opacity: 0.0 }, duration: 0 }) .queue({ css: { transform: 'translate3d(-50%, -50%, 0) scale3d(1.0, 1.0, 1.0)', opacity: 1.0 }, duration: this.duration, timing: this.timing }) .resetStyle() .queue(function(done) { callback(); done(); }) ); }, /** * @param {Object} dialog * @param {Function} callback */ hide: function(dialog, callback) { callback = callback ? callback : function() {}; animit.runAll( animit(dialog._mask[0]) .queue({ opacity: 1.0 }) .queue({ opacity: 0 }, { duration: this.duration, timing: this.timing }), animit(dialog._dialog[0]) .queue({ css: { transform: 'translate3d(-50%, -50%, 0) scale3d(1.0, 1.0, 1.0)', opacity: 1.0 }, duration: 0 }) .queue({ css: { transform: 'translate3d(-50%, -50%, 0) scale3d(0.9, 0.9, 1.0)', opacity: 0.0 }, duration: this.duration, timing: this.timing }) .resetStyle() .queue(function(done) { callback(); done(); }) ); } }); return AndroidAlertDialogAnimator; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict;'; var module = angular.module('onsen'); module.factory('AndroidDialogAnimator', ['DialogAnimator', function(DialogAnimator) { /** * Android style animator for dialog. */ var AndroidDialogAnimator = DialogAnimator.extend({ timing: 'ease-in-out', duration: 0.3, init: function(options) { options = options || {}; this.timing = options.timing || this.timing; this.duration = options.duration !== undefined ? options.duration : this.duration; }, /** * @param {Object} dialog * @param {Function} callback */ show: function(dialog, callback) { callback = callback ? callback : function() {}; animit.runAll( animit(dialog._mask[0]) .queue({ opacity: 0 }) .queue({ opacity: 1.0 }, { duration: this.duration, timing: this.timing }), animit(dialog._dialog[0]) .queue({ css: { transform: 'translate3d(-50%, -60%, 0)', opacity: 0.0 }, duration: 0 }) .queue({ css: { transform: 'translate3d(-50%, -50%, 0)', opacity: 1.0 }, duration: this.duration, timing: this.timing }) .resetStyle() .queue(function(done) { callback(); done(); }) ); }, /** * @param {Object} dialog * @param {Function} callback */ hide: function(dialog, callback) { callback = callback ? callback : function() {}; animit.runAll( animit(dialog._mask[0]) .queue({ opacity: 1.0 }) .queue({ opacity: 0 }, { duration: this.duration, timing: this.timing }), animit(dialog._dialog[0]) .queue({ css: { transform: 'translate3d(-50%, -50%, 0)', opacity: 1.0 }, duration: 0 }) .queue({ css: { transform: 'translate3d(-50%, -60%, 0)', opacity: 0.0 }, duration: this.duration, timing: this.timing }) .resetStyle() .queue(function(done) { callback(); done(); }) ); } }); return AndroidDialogAnimator; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function(){ 'use strict'; var module = angular.module('onsen'); module.factory('ButtonView', ['$onsen', function($onsen) { var ButtonView = Class.extend({ /** * @param {Object} scope * @param {jqLite} element * @param {Object} attrs */ init: function(scope, element, attrs) { this._element = element; this._scope = scope; this._attrs = attrs; }, /** * Start spinning. */ startSpin: function() { this._attrs.$set('shouldSpin', 'true'); }, /** * Stop spinning. */ stopSpin: function() { this._attrs.$set('shouldSpin', 'false'); }, /** * Returns whether button is spinning or not. */ isSpinning: function() { return this._attrs.shouldSpin === 'true'; }, /** * Set spin animation. * * @param {String} animation type */ setSpinAnimation: function(animation) { this._scope.$apply(function() { var animations = ['slide-left', 'slide-right', 'slide-up', 'slide-down', 'expand-left', 'expand-right', 'expand-up', 'expand-down', 'zoom-out', 'zoom-in']; if (animations.indexOf(animation) < 0) { console.warn('Animation ' + animation + 'doesn\'t exist.'); animation = 'slide-left'; } this._scope.animation = animation; }.bind(this)); }, /** * Returns whether the button is disabled or not. */ isDisabled: function() { return this._element[0].hasAttribute('disabled'); }, /** * Disabled or enable button. */ setDisabled: function(disabled) { if (typeof disabled !== 'boolean') { throw new Error('Argument must be a boolean.'); } if (disabled) { this._element[0].setAttribute('disabled', ''); } else { this._element[0].removeAttribute('disabled'); } } }); MicroEvent.mixin(ButtonView); return ButtonView; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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 :qaistributed 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. */ (function() { 'use strict;'; var module = angular.module('onsen'); module.factory('CarouselView', ['$onsen', function($onsen) { var VerticalModeTrait = { _getScrollDelta: function(event) { return event.gesture.deltaY; }, _getScrollVelocity: function(event) { return event.gesture.velocityY; }, _getElementSize: function() { if (!this._currentElementSize) { this._currentElementSize = this._element[0].getBoundingClientRect().height; } return this._currentElementSize; }, _generateScrollTransform: function(scroll) { return 'translate3d(0px, ' + -scroll + 'px, 0px)'; }, _layoutCarouselItems: function() { var children = this._getCarouselItemElements(); var sizeAttr = this._getCarouselItemSizeAttr(); var sizeInfo = this._decomposeSizeString(sizeAttr); for (var i = 0; i < children.length; i++) { angular.element(children[i]).css({ position: 'absolute', height: sizeAttr, width: '100%', visibility: 'visible', left: '0px', top: (i * sizeInfo.number) + sizeInfo.unit }); } }, }; var HorizontalModeTrait = { _getScrollDelta: function(event) { return event.gesture.deltaX; }, _getScrollVelocity: function(event) { return event.gesture.velocityX; }, _getElementSize: function() { if (!this._currentElementSize) { this._currentElementSize = this._element[0].getBoundingClientRect().width; } return this._currentElementSize; }, _generateScrollTransform: function(scroll) { return 'translate3d(' + -scroll + 'px, 0px, 0px)'; }, _layoutCarouselItems: function() { var children = this._getCarouselItemElements(); var sizeAttr = this._getCarouselItemSizeAttr(); var sizeInfo = this._decomposeSizeString(sizeAttr); for (var i = 0; i < children.length; i++) { angular.element(children[i]).css({ position: 'absolute', width: sizeAttr, height: '100%', top: '0px', visibility: 'visible', left: (i * sizeInfo.number) + sizeInfo.unit }); } }, }; /** * @class CarouselView */ var CarouselView = Class.extend({ /** * @member jqLite Object */ _element: undefined, /** * @member {Object} */ _scope: undefined, /** * @member {DoorLock} */ _doorLock: undefined, /** * @member {Number} */ _scroll: undefined, /** * @param {Object} scope * @param {jqLite} element * @param {Object} attrs */ init: function(scope, element, attrs) { this._element = element; this._scope = scope; this._attrs = attrs; this._doorLock = new DoorLock(); this._scroll = 0; this._lastActiveIndex = 0; this._bindedOnDrag = this._onDrag.bind(this); this._bindedOnDragEnd = this._onDragEnd.bind(this); this._bindedOnResize = this._onResize.bind(this); this._mixin(this._isVertical() ? VerticalModeTrait : HorizontalModeTrait); this._prepareEventListeners(); this._layoutCarouselItems(); this._setupInitialIndex(); this._attrs.$observe('direction', this._onDirectionChange.bind(this)); this._scope.$on('$destroy', this._destroy.bind(this)); this._saveLastState(); }, _onResize: function() { this.refresh(); }, _onDirectionChange: function() { if (this._isVertical()) { this._element.css({ overflowX: 'auto', overflowY: '' }); } else { this._element.css({ overflowX: '', overflowY: 'auto' }); } }, _saveLastState: function() { this._lastState = { elementSize: this._getCarouselItemSize(), carouselElementCount: this._getCarouselItemCount(), width: this._getCarouselItemSize() * this._getCarouselItemCount() }; }, /** * @return {Number} */ _getCarouselItemSize: function() { var sizeAttr = this._getCarouselItemSizeAttr(); var sizeInfo = this._decomposeSizeString(sizeAttr); var elementSize = this._getElementSize(); if (sizeInfo.unit === '%') { return Math.round(sizeInfo.number / 100 * elementSize); } else if (sizeInfo.unit === 'px') { return sizeInfo.number; } else { throw new Error('Invalid state'); } }, /** * @return {Number} */ _getInitialIndex: function() { var index = parseInt(this._element.attr('initial-index'), 10); if (typeof index === 'number' && !isNaN(index)) { return Math.max(Math.min(index, this._getCarouselItemCount() - 1), 0); } else { return 0; } }, /** * @return {String} */ _getCarouselItemSizeAttr: function() { var attrName = 'item-' + (this._isVertical() ? 'height' : 'width'); var itemSizeAttr = ('' + this._element.attr(attrName)).trim(); return itemSizeAttr.match(/^\d+(px|%)$/) ? itemSizeAttr : '100%'; }, /** * @return {Object} */ _decomposeSizeString: function(size) { var matches = size.match(/^(\d+)(px|%)/); return { number: parseInt(matches[1], 10), unit: matches[2], }; }, _setupInitialIndex: function() { this._scroll = this._getCarouselItemSize() * this._getInitialIndex(); this._lastActiveIndex = this._getInitialIndex(); this._scrollTo(this._scroll); }, /** * @param {Boolean} swipeable */ setSwipeable: function(swipeable) { if (swipeable) { this._element[0].setAttribute('swipeable', ''); } else { this._element[0].removeAttribute('swipeable'); } }, /** * @return {Boolean} */ isSwipeable: function() { return this._element[0].hasAttribute('swipeable'); }, /** * @param {Number} ratio */ setAutoScrollRatio: function(ratio) { if (ratio < 0.0 || ratio > 1.0) { throw new Error('Invalid ratio.'); } this._element[0].setAttribute('auto-scroll-ratio', ratio); }, /** * @return {Number} */ getAutoScrollRatio: function(ratio) { var attr = this._element[0].getAttribute('auto-scroll-ratio'); if (!attr) { return 0.5; } var scrollRatio = parseFloat(attr); if (scrollRatio < 0.0 || scrollRatio > 1.0) { throw new Error('Invalid ratio.'); } return isNaN(scrollRatio) ? 0.5 : scrollRatio; }, /** * @param {Number} index * @param {Object} [options] * @param {Function} [options.callback] * @param {String} [options.animation] */ setActiveCarouselItemIndex: function(index, options) { options = options || {}; index = Math.max(0, Math.min(index, this._getCarouselItemCount() - 1)); var scroll = this._getCarouselItemSize() * index; var max = this._calculateMaxScroll(); this._scroll = Math.max(0, Math.min(max, scroll)); this._scrollTo(this._scroll, {animate: options.animation !== 'none', callback: options.callback}); this._tryFirePostChangeEvent(); }, /** * @return {Number} */ getActiveCarouselItemIndex: function() { var scroll = this._scroll; var count = this._getCarouselItemCount(); var size = this._getCarouselItemSize(); if (scroll < 0) { return 0; } for (var i = 0; i < count; i++) { if (size * i <= scroll && size * (i + 1) > scroll) { return i; } } // max carousel index return i; }, /** * @param {Object} [options] * @param {Function} [options.callback] * @param {String} [options.animation] */ next: function(options) { this.setActiveCarouselItemIndex(this.getActiveCarouselItemIndex() + 1, options); }, /** * @param {Object} [options] * @param {Function} [options.callback] * @param {String} [options.animation] */ prev: function(options) { this.setActiveCarouselItemIndex(this.getActiveCarouselItemIndex() - 1, options); }, /** * @param {Boolean} enabled */ setAutoScrollEnabled: function(enabled) { if (enabled) { this._element[0].setAttribute('auto-scroll', ''); } else { this._element[0].removeAttribute('auto-scroll'); } }, /** * @param {Boolean} enabled */ isAutoScrollEnabled: function(enabled) { return this._element[0].hasAttribute('auto-scroll'); }, /** * @param {Boolean} disabled */ setDisabled: function(disabled) { if (disabled) { this._element[0].setAttribute('disabled', ''); } else { this._element[0].removeAttribute('disabled'); } }, /** * @return {Boolean} */ isDisabled: function() { return this._element[0].hasAttribute('disabled'); }, /** * @param {Boolean} scrollable */ setOverscrollable: function(scrollable) { if (scrollable) { this._element[0].setAttribute('overscrollable', ''); } else { this._element[0].removeAttribute('overscrollable'); } }, /** * @param {Object} trait */ _mixin: function(trait) { Object.keys(trait).forEach(function(key) { this[key] = trait[key]; }.bind(this)); }, /** * @return {Boolean} */ _isEnabledChangeEvent: function() { var elementSize = this._getElementSize(); var carouselItemSize = this._getCarouselItemSize(); return this.isAutoScrollEnabled() && elementSize === carouselItemSize; }, /** * @return {Boolean} */ _isVertical: function() { return this._element.attr('direction') === 'vertical'; }, _prepareEventListeners: function() { this._hammer = new Hammer(this._element[0], { dragMinDistance: 1 }); this._hammer.on('drag dragleft dragright dragup dragdown swipe swipeleft swiperight swipeup swipedown', this._bindedOnDrag); this._hammer.on('dragend', this._bindedOnDragEnd); angular.element(window).on('resize', this._bindedOnResize); }, _tryFirePostChangeEvent: function() { var currentIndex = this.getActiveCarouselItemIndex(); if (this._lastActiveIndex !== currentIndex) { var lastActiveIndex = this._lastActiveIndex; this._lastActiveIndex = currentIndex; this.emit('postchange', { carousel: this, activeIndex: currentIndex, lastActiveIndex: lastActiveIndex }); } }, _onDrag: function(event) { if (!this.isSwipeable()) { return; } var direction = event.gesture.direction; if ((this._isVertical() && (direction === 'left' || direction === 'right')) || (!this._isVertical() && (direction === 'up' || direction === 'down'))) { return; } event.stopPropagation(); this._lastDragEvent = event; var scroll = this._scroll - this._getScrollDelta(event); this._scrollTo(scroll); event.gesture.preventDefault(); this._tryFirePostChangeEvent(); }, _onDragEnd: function(event) { this._currentElementSize = undefined; this._carouselItemElements = undefined; if (!this.isSwipeable()) { return; } this._scroll = this._scroll - this._getScrollDelta(event); if (this._getScrollDelta(event) !== 0) { event.stopPropagation(); } if (this._isOverScroll(this._scroll)) { var waitForAction = false; this.emit('overscroll', { carousel: this, activeIndex: this.getActiveCarouselItemIndex(), direction: this._getOverScrollDirection(), waitToReturn: function(promise) { waitForAction = true; promise.then( function() { this._scrollToKillOverScroll(); }.bind(this) ); }.bind(this) }); if (!waitForAction) { this._scrollToKillOverScroll(); } } else if (this._lastDragEvent !== null) { this._startMomemtumScroll(event); } this._lastDragEvent = null; event.gesture.preventDefault(); }, _getTouchEvents: function() { var EVENTS = [ 'drag', 'dragstart', 'dragend', 'dragup', 'dragdown', 'dragleft', 'dragright', 'swipe', 'swipeup', 'swipedown', 'swipeleft', 'swiperight' ]; return EVENTS.join(' '); }, /** * @return {Boolean} */ isOverscrollable: function() { return this._element[0].hasAttribute('overscrollable'); }, _startMomemtumScroll: function(event) { if (this._lastDragEvent !== null) { var velocity = this._getScrollVelocity(this._lastDragEvent); var duration = 0.3; var scrollDelta = duration * 100 * velocity; var scroll = this._scroll + (this._getScrollDelta(this._lastDragEvent) > 0 ? -scrollDelta : scrollDelta); scroll = this._normalizeScrollPosition(scroll); this._scroll = scroll; animit(this._getCarouselItemElements()) .queue({ transform: this._generateScrollTransform(this._scroll) }, { duration: duration, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .queue(function(done) { done(); this._tryFirePostChangeEvent(); }.bind(this)) .play(); } }, _normalizeScrollPosition: function(scroll) { var max = this._calculateMaxScroll(); if (this.isAutoScrollEnabled()) { var arr = []; var size = this._getCarouselItemSize(); for (var i = 0; i < this._getCarouselItemCount(); i++) { if (max >= i * size) { arr.push(i * size); } } arr.push(max); arr.sort(function(left, right) { left = Math.abs(left - scroll); right = Math.abs(right - scroll); return left - right; }); arr = arr.filter(function(item, pos) { return !pos || item != arr[pos - 1]; }); var lastScroll = this._lastActiveIndex * size, scrollRatio = Math.abs(scroll - lastScroll) / size; if (scrollRatio <= this.getAutoScrollRatio()) { return lastScroll; } else if (scrollRatio > this.getAutoScrollRatio() && scrollRatio < 1.0) { if (arr[0] === lastScroll && arr.length > 1) { return arr[1]; } } return arr[0]; } else { return Math.max(0, Math.min(max, scroll)); } }, /** * @return {Array} */ _getCarouselItemElements: function() { if (this._carouselItemElements && this._carouselItemElements.length) { return this._carouselItemElements; } var nodeList = this._element[0].querySelectorAll('ons-carousel-item'); this._carouselItemElements = []; for (var i = nodeList.length; i--; ) { this._carouselItemElements.unshift(nodeList[i]); } return this._carouselItemElements; }, /** * @param {Number} scroll * @param {Object} [options] */ _scrollTo: function(scroll, options) { options = options || {}; var self = this; var isOverscrollable = this.isOverscrollable(); if (options.animate) { animit(this._getCarouselItemElements()) .queue({ transform: this._generateScrollTransform(normalizeScroll(scroll)) }, { duration: 0.3, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .play(options.callback); } else { animit(this._getCarouselItemElements()) .queue({ transform: this._generateScrollTransform(normalizeScroll(scroll)) }) .play(options.callback); } function normalizeScroll(scroll) { var ratio = 0.35; if (scroll < 0) { return isOverscrollable ? Math.round(scroll * ratio) : 0; } var maxScroll = self._calculateMaxScroll(); if (maxScroll < scroll) { return isOverscrollable ? maxScroll + Math.round((scroll - maxScroll) * ratio) : maxScroll; } return scroll; } }, _calculateMaxScroll: function() { var max = this._getCarouselItemCount() * this._getCarouselItemSize() - this._getElementSize(); return Math.ceil(max < 0 ? 0 : max); // Need to return an integer value. }, _isOverScroll: function(scroll) { if (scroll < 0 || scroll > this._calculateMaxScroll()) { return true; } return false; }, _getOverScrollDirection: function() { if (this._isVertical()) { if (this._scroll <= 0) { return 'up'; } else { return 'down'; } } else { if (this._scroll <= 0) { return 'left'; } else { return 'right'; } } }, _scrollToKillOverScroll: function() { var duration = 0.4; if (this._scroll < 0) { animit(this._getCarouselItemElements()) .queue({ transform: this._generateScrollTransform(0) }, { duration: duration, timing: 'cubic-bezier(.1, .4, .1, 1)' }) .play(); this._scroll = 0; return; } var maxScroll = this._calculateMaxScroll(); if (maxScroll < this._scroll) { animit(this._getCarouselItemElements()) .queue({ transform: this._generateScrollTransform(maxScroll) }, { duration: duration, timing: 'cubic-bezier(.1, .4, .1, 1)' }) .play(); this._scroll = maxScroll; return; } return; }, /** * @return {Number} */ _getCarouselItemCount: function() { return this._getCarouselItemElements().length; }, /** * Refresh carousel item layout. */ refresh: function() { // Bug fix if (this._getCarouselItemSize() === 0) { return; } this._mixin(this._isVertical() ? VerticalModeTrait : HorizontalModeTrait); this._layoutCarouselItems(); if (this._lastState && this._lastState.width > 0) { var scroll = this._scroll; if (this._isOverScroll(scroll)) { this._scrollToKillOverScroll(); } else { if (this.isAutoScrollEnabled()) { scroll = this._normalizeScrollPosition(scroll); } this._scrollTo(scroll); } } this._saveLastState(); this.emit('refresh', { carousel: this }); }, /** */ first: function() { this.setActiveCarouselItemIndex(0); }, /** */ last: function() { this.setActiveCarouselItemIndex( Math.max(this._getCarouselItemCount() - 1, 0) ); }, _destroy: function() { this.emit('destroy'); this._hammer.off('drag dragleft dragright dragup dragdown swipe swipeleft swiperight swipeup swipedown', this._bindedOnDrag); this._hammer.off('dragend', this._bindedOnDragEnd); angular.element(window).off('resize', this._bindedOnResize); this._element = this._scope = this._attrs = null; } }); MicroEvent.mixin(CarouselView); return CarouselView; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict'; var module = angular.module('onsen'); module.factory('DialogView', ['$onsen', 'DialogAnimator', 'IOSDialogAnimator', 'AndroidDialogAnimator', 'SlideDialogAnimator', function($onsen, DialogAnimator, IOSDialogAnimator, AndroidDialogAnimator, SlideDialogAnimator) { var DialogView = Class.extend({ /** * @param {Object} scope * @param {jqLite} element * @param {Object} attrs */ init: function(scope, element, attrs) { this._scope = scope; this._element = element; this._attrs = attrs; this._element.css('display', 'none'); this._dialog = angular.element(element[0].querySelector('.dialog')); this._mask = angular.element(element[0].querySelector('.dialog-mask')); this._dialog.css('z-index', 20001); this._mask.css('z-index', 20000); this._mask.on('click', this._cancel.bind(this)); this._visible = false; this._doorLock = new DoorLock(); this._animation = DialogView._animatorDict[typeof attrs.animation !== 'undefined' ? attrs.animation : 'default']; if (!this._animation) { throw new Error('No such animation: ' + attrs.animation); } this._deviceBackButtonHandler = $onsen.DeviceBackButtonHandler.create(this._element, this._onDeviceBackButton.bind(this)); this._scope.$on('$destroy', this._destroy.bind(this)); }, /** * @return {Object} */ getDeviceBackButtonHandler: function() { return this._deviceBackButtonHandler; }, /** * Show dialog. * * @param {Object} [options] * @param {String} [options.animation] animation type * @param {Function} [options.callback] callback after dialog is shown */ show: function(options) { options = options || {}; var cancel = false, callback = options.callback || function() {}; this.emit('preshow', { dialog: this, cancel: function() { cancel = true; } }); if (!cancel) { this._doorLock.waitUnlock(function() { var unlock = this._doorLock.lock(), animation = this._animation; this._element.css('display', 'block'); this._mask.css('opacity', 1); if (options.animation) { animation = DialogView._animatorDict[options.animation]; } animation.show(this, function() { this._visible = true; unlock(); this.emit('postshow', {dialog: this}); callback(); }.bind(this)); }.bind(this)); } }, /** * Hide dialog. * * @param {Object} [options] * @param {String} [options.animation] animation type * @param {Function} [options.callback] callback after dialog is hidden */ hide: function(options) { options = options || {}; var cancel = false, callback = options.callback || function() {}; this.emit('prehide', { dialog: this, cancel: function() { cancel = true; } }); if (!cancel) { this._doorLock.waitUnlock(function() { var unlock = this._doorLock.lock(), animation = this._animation; if (options.animation) { animation = DialogView._animatorDict[options.animation]; } animation.hide(this, function() { this._element.css('display', 'none'); this._visible = false; unlock(); this.emit('posthide', {dialog: this}); callback(); }.bind(this)); }.bind(this)); } }, /** * True if dialog is visible. * * @return {Boolean} */ isShown: function() { return this._visible; }, /** * Destroy dialog. */ destroy: function() { this._scope.$destroy(); }, _destroy: function() { this.emit('destroy'); this._element.remove(); this._deviceBackButtonHandler.destroy(); this._mask.off(); this._deviceBackButtonHandler = this._scope = this._attrs = this._element = this._dialog = this._mask = null; }, /** * Disable or enable dialog. * * @param {Boolean} */ setDisabled: function(disabled) { if (typeof disabled !== 'boolean') { throw new Error('Argument must be a boolean.'); } if (disabled) { this._element.attr('disabled', true); } else { this._element.removeAttr('disabled'); } }, /** * True if dialog is disabled. * * @return {Boolean} */ isDisabled: function() { return this._element[0].hasAttribute('disabled'); }, /** * Make dialog cancelable or uncancelable. * * @param {Boolean} */ setCancelable: function(cancelable) { if (typeof cancelable !== 'boolean') { throw new Error('Argument must be a boolean.'); } if (cancelable) { this._element.attr('cancelable', true); } else { this._element.removeAttr('cancelable'); } }, /** * True if the dialog is cancelable. * * @return {Boolean} */ isCancelable: function() { return this._element[0].hasAttribute('cancelable'); }, _cancel: function() { if (this.isCancelable()) { this.hide({ callback: function () { this.emit('cancel'); }.bind(this) }); } }, _onDeviceBackButton: function(event) { if (this.isCancelable()) { this._cancel.bind(this)(); } else { event.callParentHandler(); } } }); DialogView._animatorDict = { 'default': $onsen.isAndroid() ? new AndroidDialogAnimator() : new IOSDialogAnimator(), 'fade': $onsen.isAndroid() ? new AndroidDialogAnimator() : new IOSDialogAnimator(), 'slide': new SlideDialogAnimator(), 'none': new DialogAnimator() }; /** * @param {String} name * @param {DialogAnimator} animator */ DialogView.registerAnimator = function(name, animator) { if (!(animator instanceof DialogAnimator)) { throw new Error('"animator" param must be an instance of DialogAnimator'); } this._animatorDict[name] = animator; }; MicroEvent.mixin(DialogView); return DialogView; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict;'; var module = angular.module('onsen'); module.factory('DialogAnimator', function() { var DialogAnimator = Class.extend({ show: function(dialog, callback) { callback(); }, hide: function(dialog, callback) { callback(); } }); return DialogAnimator; }); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict'; var module = angular.module('onsen'); module.factory('FadePopoverAnimator', ['PopoverAnimator', function(PopoverAnimator) { /** * Fade animator for popover. */ var FadePopoverAnimator = PopoverAnimator.extend({ timing: 'cubic-bezier(.1, .7, .4, 1)', duration: 0.2, init: function(options) { options = options || {}; this.timing = options.timing || this.timing; this.duration = options.duration !== undefined ? options.duration : this.duration; }, /** * @param {Object} popover * @param {Function} callback */ show: function(popover, callback) { var pop = popover._element[0].querySelector('.popover'), mask = popover._element[0].querySelector('.popover-mask'); animit.runAll( animit(mask) .queue({ opacity: 0 }) .queue({ opacity: 1.0 }, { duration: this.duration, timing: this.timing }), animit(pop) .queue({ transform: 'scale3d(1.3, 1.3, 1.0)', opacity: 0 }) .queue({ transform: 'scale3d(1.0, 1.0, 1.0)', opacity: 1.0 }, { duration: this.duration, timing: this.timing }) .resetStyle() .queue(function(done) { callback(); done(); }) ); }, /** * @param {Object} popover * @param {Function} callback */ hide: function(popover, callback) { var pop = popover._element[0].querySelector('.popover'), mask = popover._element[0].querySelector('.popover-mask'); animit.runAll( animit(mask) .queue({ opacity: 1.0 }) .queue({ opacity: 0 }, { duration: this.duration, timing: this.timing }), animit(pop) .queue({ opacity: 1.0 }) .queue({ opacity: 0 }, { duration: this.duration, timing: this.timing }) .resetStyle() .queue(function(done) { callback(); done(); }) ); } }); return FadePopoverAnimator; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict;'; var module = angular.module('onsen'); module.factory('FadeTransitionAnimator', ['NavigatorTransitionAnimator', function(NavigatorTransitionAnimator) { /** * Fade-in screen transition. */ var FadeTransitionAnimator = NavigatorTransitionAnimator.extend({ /** * @param {Object} enterPage * @param {Object} leavePage * @param {Function} callback */ push: function(enterPage, leavePage, callback) { animit.runAll( animit([enterPage.getPageView().getContentElement(), enterPage.getPageView().getBackgroundElement()]) .queue({ css: { transform: 'translate3D(0, 0, 0)', opacity: 0 }, duration: 0 }) .queue({ css: { transform: 'translate3D(0, 0, 0)', opacity: 1 }, duration: 0.4, timing: 'linear' }) .resetStyle() .queue(function(done) { callback(); done(); }), animit(enterPage.getPageView().getToolbarElement()) .queue({ css: { transform: 'translate3D(0, 0, 0)', opacity: 0 }, duration: 0 }) .queue({ css: { transform: 'translate3D(0, 0, 0)', opacity: 1 }, duration: 0.4, timing: 'linear' }) .resetStyle() ); }, /** * @param {Object} enterPage * @param {Object} leavePage * @param {Function} done */ pop: function(enterPage, leavePage, callback) { animit.runAll( animit([leavePage.getPageView().getContentElement(), leavePage.getPageView().getBackgroundElement()]) .queue({ css: { transform: 'translate3D(0, 0, 0)', opacity: 1 }, duration: 0 }) .queue({ css: { transform: 'translate3D(0, 0, 0)', opacity: 0 }, duration: 0.4, timing: 'linear' }) .queue(function(done) { callback(); done(); }), animit(leavePage.getPageView().getToolbarElement()) .queue({ css: { transform: 'translate3D(0, 0, 0)', opacity: 1 }, duration: 0 }) .queue({ css: { transform: 'translate3D(0, 0, 0)', opacity: 0 }, duration: 0.4, timing: 'linear' }) ); } }); return FadeTransitionAnimator; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function(){ 'use strict'; var module = angular.module('onsen'); module.factory('GenericView', ['$onsen', function($onsen) { var GenericView = Class.extend({ /** * @param {Object} scope * @param {jqLite} element * @param {Object} attrs */ init: function(scope, element, attrs) { this._element = element; this._scope = scope; } }); MicroEvent.mixin(GenericView); return GenericView; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict;'; var module = angular.module('onsen'); module.factory('IOSAlertDialogAnimator', ['DialogAnimator', function(DialogAnimator) { /** * iOS style animator for alert dialog. */ var IOSAlertDialogAnimator = DialogAnimator.extend({ timing: 'cubic-bezier(.1, .7, .4, 1)', duration: 0.2, init: function(options) { options = options || {}; this.timing = options.timing || this.timing; this.duration = options.duration !== undefined ? options.duration : this.duration; }, /** * @param {Object} dialog * @param {Function} callback */ show: function(dialog, callback) { callback = callback ? callback : function() {}; animit.runAll( animit(dialog._mask[0]) .queue({ opacity: 0 }) .queue({ opacity: 1.0 }, { duration: this.duration, timing: this.timing }), animit(dialog._dialog[0]) .queue({ css: { transform: 'translate3d(-50%, -50%, 0) scale3d(1.3, 1.3, 1.0)', opacity: 0.0 }, duration: 0 }) .queue({ css: { transform: 'translate3d(-50%, -50%, 0) scale3d(1.0, 1.0, 1.0)', opacity: 1.0 }, duration: this.duration, timing: this.timing }) .resetStyle() .queue(function(done) { callback(); done(); }) ); }, /** * @param {Object} dialog * @param {Function} callback */ hide: function(dialog, callback) { callback = callback ? callback : function() {}; animit.runAll( animit(dialog._mask[0]) .queue({ opacity: 1.0 }) .queue({ opacity: 0 }, { duration: this.duration, timing: this.timing }), animit(dialog._dialog[0]) .queue({ css: { opacity: 1.0 }, duration: 0 }) .queue({ css: { opacity: 0.0 }, duration: this.duration, timing: this.timing }) .resetStyle() .queue(function(done) { callback(); done(); }) ); } }); return IOSAlertDialogAnimator; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict;'; var module = angular.module('onsen'); module.factory('IOSDialogAnimator', ['DialogAnimator', function(DialogAnimator) { /** * iOS style animator for dialog. */ var IOSDialogAnimator = DialogAnimator.extend({ timing: 'ease-in-out', duration: 0.3, init: function(options) { options = options || {}; this.timing = options.timing || this.timing; this.duration = options.duration !== undefined ? options.duration : this.duration; }, /** * @param {Object} dialog * @param {Function} callback */ show: function(dialog, callback) { callback = callback ? callback : function() {}; animit.runAll( animit(dialog._mask[0]) .queue({ opacity: 0 }) .queue({ opacity: 1.0 }, { duration: this.duration, timing: this.timing }), animit(dialog._dialog[0]) .queue({ css: { transform: 'translate3d(-50%, 300%, 0)' }, duration: 0 }) .queue({ css: { transform: 'translate3d(-50%, -50%, 0)' }, duration: this.duration, timing: this.timing }) .resetStyle() .queue(function(done) { callback(); done(); }) ); }, /** * @param {Object} dialog * @param {Function} callback */ hide: function(dialog, callback) { callback = callback ? callback : function() {}; animit.runAll( animit(dialog._mask[0]) .queue({ opacity: 1.0 }) .queue({ opacity: 0 }, { duration: this.duration, timing: this.timing }), animit(dialog._dialog[0]) .queue({ css: { transform: 'translate3d(-50%, -50%, 0)' }, duration: 0 }) .queue({ css: { transform: 'translate3d(-50%, 300%, 0)' }, duration: this.duration, timing: this.timing }) .resetStyle() .queue(function(done) { callback(); done(); }) ); } }); return IOSDialogAnimator; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict;'; var module = angular.module('onsen'); module.factory('IOSSlideTransitionAnimator', ['NavigatorTransitionAnimator', 'PageView', function(NavigatorTransitionAnimator, PageView) { /** * Slide animator for navigator transition like iOS's screen slide transition. */ var IOSSlideTransitionAnimator = NavigatorTransitionAnimator.extend({ /** Black mask */ backgroundMask : angular.element( '<div style="position: absolute; width: 100%;' + 'height: 100%; background-color: black; opacity: 0;"></div>' ), _decompose: function(page) { var elements = []; var left = page.getPageView().getToolbarLeftItemsElement(); var right = page.getPageView().getToolbarRightItemsElement(); var other = [] .concat(left.children.length === 0 ? left : excludeBackButtonLabel(left.children)) .concat(right.children.length === 0 ? right : excludeBackButtonLabel(right.children)); var pageLabels = [ page.getPageView().getToolbarCenterItemsElement(), page.getPageView().getToolbarBackButtonLabelElement() ]; return { pageLabels: pageLabels, other: other, content: page.getPageView().getContentElement(), background: page.getPageView().getBackgroundElement(), toolbar: page.getPageView().getToolbarElement(), bottomToolbar: page.getPageView().getBottomToolbarElement() }; function excludeBackButtonLabel(elements) { var result = []; for (var i = 0; i < elements.length; i++) { if (elements[i].nodeName.toLowerCase() === 'ons-back-button') { result.push(elements[i].querySelector('.ons-back-button__icon')); } else { result.push(elements[i]); } } return result; } }, _shouldAnimateToolbar: function(enterPage, leavePage) { var bothPageHasToolbar = enterPage.getPageView().hasToolbarElement() && leavePage.getPageView().hasToolbarElement(); var noAndroidLikeToolbar = !angular.element(enterPage.getPageView().getToolbarElement()).hasClass('navigation-bar--android') && !angular.element(leavePage.getPageView().getToolbarElement()).hasClass('navigation-bar--android'); return bothPageHasToolbar && noAndroidLikeToolbar; }, /** * @param {Object} enterPage * @param {Object} leavePage * @param {Function} callback */ push: function(enterPage, leavePage, callback) { var mask = this.backgroundMask.remove(); leavePage.element[0].parentNode.insertBefore(mask[0], leavePage.element[0].nextSibling); var enterPageDecomposition = this._decompose(enterPage); var leavePageDecomposition = this._decompose(leavePage); var delta = (function() { var rect = leavePage.element[0].getBoundingClientRect(); return Math.round(((rect.right - rect.left) / 2) * 0.6); })(); var maskClear = animit(mask[0]) .queue({ opacity: 0, transform: 'translate3d(0, 0, 0)' }) .queue({ opacity: 0.1 }, { duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .resetStyle() .queue(function(done) { mask.remove(); done(); }); var shouldAnimateToolbar = this._shouldAnimateToolbar(enterPage, leavePage); if (shouldAnimateToolbar) { enterPage.element.css({zIndex: 'auto'}); leavePage.element.css({zIndex: 'auto'}); animit.runAll( maskClear, animit([enterPageDecomposition.content, enterPageDecomposition.bottomToolbar, enterPageDecomposition.background]) .queue({ css: { transform: 'translate3D(100%, 0px, 0px)', }, duration: 0 }) .queue({ css: { transform: 'translate3D(0px, 0px, 0px)', }, duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .resetStyle(), animit(enterPageDecomposition.toolbar) .queue({ css: { background: 'none', backgroundColor: 'rgba(0, 0, 0, 0)', borderColor: 'rgba(0, 0, 0, 0)' }, duration: 0 }) .wait(0.3) .resetStyle({ duration: 0.1, transition: 'background-color 0.1s linear, ' + 'border-color 0.1s linear' }), animit(enterPageDecomposition.pageLabels) .queue({ css: { transform: 'translate3d(' + delta + 'px, 0, 0)', opacity: 0 }, duration: 0 }) .queue({ css: { transform: 'translate3d(0, 0, 0)', opacity: 1.0 }, duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .resetStyle(), animit(enterPageDecomposition.other) .queue({ css: {opacity: 0}, duration: 0 }) .queue({ css: {opacity: 1}, duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .resetStyle(), animit([leavePageDecomposition.content, leavePageDecomposition.bottomToolbar, leavePageDecomposition.background]) .queue({ css: { transform: 'translate3D(0, 0, 0)', }, duration: 0 }) .queue({ css: { transform: 'translate3D(-25%, 0px, 0px)', }, duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .resetStyle() .queue(function(done) { enterPage.element.css({zIndex: ''}); leavePage.element.css({zIndex: ''}); callback(); done(); }), animit(leavePageDecomposition.pageLabels) .queue({ css: { transform: 'translate3d(0, 0, 0)', opacity: 1.0 }, duration: 0 }) .queue({ css: { transform: 'translate3d(-' + delta + 'px, 0, 0)', opacity: 0, }, duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .resetStyle(), animit(leavePageDecomposition.other) .queue({ css: {opacity: 1}, duration: 0 }) .queue({ css: {opacity: 0}, duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .resetStyle() ); } else { animit.runAll( maskClear, animit(enterPage.element[0]) .queue({ css: { transform: 'translate3D(100%, 0px, 0px)', }, duration: 0 }) .queue({ css: { transform: 'translate3D(0px, 0px, 0px)', }, duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .resetStyle(), animit(leavePage.element[0]) .queue({ css: { transform: 'translate3D(0, 0, 0)' }, duration: 0 }) .queue({ css: { transform: 'translate3D(-25%, 0px, 0px)' }, duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .resetStyle() .queue(function(done) { callback(); done(); }) ); } }, /** * @param {Object} enterPage * @param {Object} leavePage * @param {Function} done */ pop: function(enterPage, leavePage, done) { var mask = this.backgroundMask.remove(); enterPage.element[0].parentNode.insertBefore(mask[0], enterPage.element[0].nextSibling); var enterPageDecomposition = this._decompose(enterPage); var leavePageDecomposition = this._decompose(leavePage); var delta = (function() { var rect = leavePage.element[0].getBoundingClientRect(); return Math.round(((rect.right - rect.left) / 2) * 0.6); })(); var maskClear = animit(mask[0]) .queue({ opacity: 0.1, transform: 'translate3d(0, 0, 0)' }) .queue({ opacity: 0 }, { duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .resetStyle() .queue(function(done) { mask.remove(); done(); }); var shouldAnimateToolbar = this._shouldAnimateToolbar(enterPage, leavePage); if (shouldAnimateToolbar) { enterPage.element.css({zIndex: 'auto'}); leavePage.element.css({zIndex: 'auto'}); animit.runAll( maskClear, animit([enterPageDecomposition.content, enterPageDecomposition.bottomToolbar, enterPageDecomposition.background]) .queue({ css: { transform: 'translate3D(-25%, 0px, 0px)', opacity: 0.9 }, duration: 0 }) .queue({ css: { transform: 'translate3D(0px, 0px, 0px)', opacity: 1.0 }, duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .resetStyle(), animit(enterPageDecomposition.pageLabels) .queue({ css: { transform: 'translate3d(-' + delta + 'px, 0, 0)', opacity: 0 }, duration: 0 }) .queue({ css: { transform: 'translate3d(0, 0, 0)', opacity: 1.0 }, duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .resetStyle(), animit(enterPageDecomposition.toolbar) .queue({ css: { transform: 'translate3d(0, 0, 0)', opacity: 1.0 }, duration: 0 }) .queue({ css: { transform: 'translate3d(0, 0, 0)', opacity: 1.0 }, duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .resetStyle(), animit(enterPageDecomposition.other) .queue({ css: {opacity: 0}, duration: 0 }) .queue({ css: {opacity: 1}, duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .resetStyle(), animit([leavePageDecomposition.content, leavePageDecomposition.bottomToolbar, leavePageDecomposition.background]) .queue({ css: { transform: 'translate3D(0px, 0px, 0px)' }, duration: 0 }) .queue({ css: { transform: 'translate3D(100%, 0px, 0px)' }, duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .wait(0) .queue(function(finish) { enterPage.element.css({zIndex: ''}); leavePage.element.css({zIndex: ''}); done(); finish(); }), animit(leavePageDecomposition.other) .queue({ css: { transform: 'translate3d(0, 0, 0)', opacity: 1 }, duration: 0 }) .queue({ css: { transform: 'translate3d(0, 0, 0)', opacity: 0, }, duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }), animit(leavePageDecomposition.toolbar) .queue({ css: { background: 'none', backgroundColor: 'rgba(0, 0, 0, 0)', borderColor: 'rgba(0, 0, 0, 0)' }, duration: 0 }), animit(leavePageDecomposition.pageLabels) .queue({ css: { transform: 'translate3d(0, 0, 0)', opacity: 1.0 }, duration: 0 }) .queue({ css: { transform: 'translate3d(' + delta + 'px, 0, 0)', opacity: 0, }, duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }) ); } else { animit.runAll( maskClear, animit(enterPage.element[0]) .queue({ css: { transform: 'translate3D(-25%, 0px, 0px)', opacity: 0.9 }, duration: 0 }) .queue({ css: { transform: 'translate3D(0px, 0px, 0px)', opacity: 1.0 }, duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .resetStyle(), animit(leavePage.element[0]) .queue({ css: { transform: 'translate3D(0px, 0px, 0px)' }, duration: 0 }) .queue({ css: { transform: 'translate3D(100%, 0px, 0px)' }, duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .queue(function(finish) { done(); finish(); }) ); } } }); return IOSSlideTransitionAnimator; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function(){ 'use strict'; var module = angular.module('onsen'); module.factory('LazyRepeatView', ['$onsen', '$document', '$compile', function($onsen, $document, $compile) { var LazyRepeatView = Class.extend({ /** * @param {Object} scope * @param {jqLite} element * @param {Object} attrs */ init: function(scope, element, attrs, linker) { this._element = element; this._scope = scope; this._attrs = attrs; this._linker = linker; this._parentElement = element.parent(); this._pageContent = this._findPageContent(); if (!this._pageContent) { throw new Error('ons-lazy-repeat must be a descendant of an <ons-page> object.'); } this._itemHeightSum = []; this._maxIndex = 0; this._doorLock = new DoorLock(); this._delegate = this._getDelegate(); this._renderedElements = {}; this._addEventListeners(); this._scope.$watch(this._onChange.bind(this)); this._scope.$on('$destroy', this._destroy.bind(this)); this._onChange(); }, _getDelegate: function() { var delegate = this._scope.$eval(this._attrs.onsLazyRepeat); if (typeof delegate === 'undefined') { /*jshint evil:true */ delegate = eval(this._attrs.onsLazyRepeat); } return delegate; }, _countItems: function() { return this._delegate.countItems(); }, _getItemHeight: function(i) { return this._delegate.calculateItemHeight(i); }, _getTopOffset: function() { return this._parentElement[0].getBoundingClientRect().top; }, _render: function() { var items = this._getItemsInView(), keep = {}; this._parentElement.css('height', this._itemHeightSum[this._maxIndex] + 'px'); for (var i = 0, l = items.length; i < l; i ++) { var _item = items[i]; this._renderElement(_item); keep[_item.index] = true; } for (var key in this._renderedElements) { if (this._renderedElements.hasOwnProperty(key) && !keep.hasOwnProperty(key)) { this._removeElement(key); } } }, _isRendered: function(i) { return this._renderedElements.hasOwnProperty(i); }, _renderElement: function(item) { if (this._isRendered(item.index)) { // Update content even if it's already added to DOM // to account for changes within the list. var currentItem = this._renderedElements[item.index]; if (this._delegate.configureItemScope) { this._delegate.configureItemScope(item.index, currentItem.scope); } return; } var childScope = this._scope.$new(); this._addSpecialProperties(item.index, childScope); this._linker(childScope, function(clone) { if (this._delegate.configureItemScope) { this._delegate.configureItemScope(item.index, childScope); } else if (this._delegate.createItemContent) { clone.append(this._delegate.createItemContent(item.index)); $compile(clone[0].firstChild)(childScope); } this._parentElement.append(clone); clone.css({ position: 'absolute', top: item.top + 'px', left: '0px', right: '0px', display: 'none' }); var element = { element: clone, scope: childScope }; // Don't show elements before they are finished rendering. this._scope.$evalAsync(function() { clone.css('display', 'block'); }); this._renderedElements[item.index] = element; }.bind(this)); }, _removeElement: function(i) { if (!this._isRendered(i)) { return; } var element = this._renderedElements[i]; if (this._delegate.destroyItemScope) { this._delegate.destroyItemScope(i, element.scope); } else if (this._delegate.destroyItemContent) { this._delegate.destroyItemContent(i, element.element.children()[0]); } element.element.remove(); element.scope.$destroy(); element.element = element.scope = null; delete this._renderedElements[i]; }, _removeAllElements: function() { for (var key in this._renderedElements) { if (this._removeElement.hasOwnProperty(key)) { this._removeElement(key); } } }, _calculateStartIndex: function(current) { var start = 0, end = this._maxIndex; // Binary search for index at top of screen so // we can speed up rendering. while (true) { var middle = Math.floor((start + end) / 2), value = current + this._itemHeightSum[middle]; if (end < start) { return 0; } else if (value >= 0 && value - this._getItemHeight(middle) < 0) { return middle; } else if (isNaN(value) || value >= 0) { end = middle - 1; } else { start = middle + 1; } } }, _getItemsInView: function() { var topOffset = this._getTopOffset(), topPosition = topOffset, cnt = this._countItems(); var startIndex = this._calculateStartIndex(topPosition); startIndex = Math.max(startIndex - 30, 0); if (startIndex > 0) { topPosition += this._itemHeightSum[startIndex - 1]; } if (cnt < this._itemHeightSum.length){ this._itemHeightSum = new Array(cnt); this._maxIndex = cnt - 1; } var items = []; for (var i = startIndex; i < cnt && topPosition < 4 * window.innerHeight; i++) { var h = this._getItemHeight(); if (i >= this._itemHeightSum.length) { this._itemHeightSum = this._itemHeightSum.concat(new Array(100)); } if (i > 0) { this._itemHeightSum[i] = this._itemHeightSum[i - 1] + h; } else { this._itemHeightSum[i] = h; } this._maxIndex = Math.max(i, this._maxIndex); items.push({ index: i, top: topPosition - topOffset }); topPosition += h; } return items; }, _addSpecialProperties: function(i, scope) { scope.$index = i; scope.$first = i === 0; scope.$last = i === this._countItems() - 1; scope.$middle = !scope.$first && !scope.$last; scope.$even = i % 2 === 0; scope.$odd = !scope.$even; }, _onChange: function() { if (this._doorLock._waitList.length > 0) { return; } this._doorLock.waitUnlock(function() { var unlock = this._doorLock.lock(); setTimeout(function() { unlock(); }, 200); this._render(); }.bind(this)); }, _findPageContent: function() { var e = this._element[0]; while(e.parentNode) { e = e.parentNode; if (e.className) { if (e.className.split(/\s+/).indexOf('page__content') >= 0) { break; } } } return e; }, _addEventListeners: function() { this._boundOnChange = this._onChange.bind(this); this._pageContent.addEventListener('scroll', this._boundOnChange, true); $document[0].addEventListener('resize', this._boundOnChange, true); }, _removeEventListeners: function() { this._pageContent.removeEventListener('scroll', this._boundOnChange, true); $document[0].removeEventListener('resize', this._boundOnChange, true); }, _destroy: function() { this._removeEventListeners(); this._removeAllElements(); this._parentElement = this._renderedElements = this._element = this._scope = this._attrs = null; } }); return LazyRepeatView; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict;'; var module = angular.module('onsen'); module.factory('LiftTransitionAnimator', ['NavigatorTransitionAnimator', function(NavigatorTransitionAnimator) { /** * Lift screen transition. */ var LiftTransitionAnimator = NavigatorTransitionAnimator.extend({ /** Black mask */ backgroundMask : angular.element( '<div style="position: absolute; width: 100%;' + 'height: 100%; background-color: black;"></div>' ), /** * @param {Object} enterPage * @param {Object} leavePage * @param {Function} callback */ push: function(enterPage, leavePage, callback) { var mask = this.backgroundMask.remove(); leavePage.element[0].parentNode.insertBefore(mask[0], leavePage.element[0]); var maskClear = animit(mask[0]) .wait(0.6) .queue(function(done) { mask.remove(); done(); }); animit.runAll( maskClear, animit(enterPage.element[0]) .queue({ css: { transform: 'translate3D(0, 100%, 0)', }, duration: 0 }) .queue({ css: { transform: 'translate3D(0, 0, 0)', }, duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .wait(0.2) .resetStyle() .queue(function(done) { callback(); done(); }), animit(leavePage.element[0]) .queue({ css: { transform: 'translate3D(0, 0, 0)', opacity: 1.0 }, duration: 0 }) .queue({ css: { transform: 'translate3D(0, -10%, 0)', opacity: 0.9 }, duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }) ); }, /** * @param {Object} enterPage * @param {Object} leavePage * @param {Function} callback */ pop: function(enterPage, leavePage, callback) { var mask = this.backgroundMask.remove(); enterPage.element[0].parentNode.insertBefore(mask[0], enterPage.element[0]); animit.runAll( animit(mask[0]) .wait(0.4) .queue(function(done) { mask.remove(); done(); }), animit(enterPage.element[0]) .queue({ css: { transform: 'translate3D(0, -10%, 0)', opacity: 0.9 }, duration: 0 }) .queue({ css: { transform: 'translate3D(0, 0, 0)', opacity: 1.0 }, duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .resetStyle() .wait(0.4) .queue(function(done) { callback(); done(); }), animit(leavePage.element[0]) .queue({ css: { transform: 'translate3D(0, 0, 0)' }, duration: 0 }) .queue({ css: { transform: 'translate3D(0, 100%, 0)' }, duration: 0.4, timing: 'cubic-bezier(.1, .7, .1, 1)' }) ); } }); return LiftTransitionAnimator; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict;'; var module = angular.module('onsen'); module.factory('ModalView', ['$onsen', '$rootScope', function($onsen, $rootScope) { var ModalView = Class.extend({ _element: undefined, _scope: undefined, /** * @param {Object} scope * @param {jqLite} element */ init: function(scope, element) { this._scope = scope; this._element = element; var pageView = $rootScope.ons.findParentComponentUntil('ons-page', this._element); if (pageView) { this._pageContent = angular.element(pageView._element[0].querySelector('.page__content')); } this._scope.$on('$destroy', this._destroy.bind(this)); this._deviceBackButtonHandler = $onsen.DeviceBackButtonHandler.create(this._element, this._onDeviceBackButton.bind(this)); this.hide(); }, getDeviceBackButtonHandler: function() { return this._deviceBackButtonHandler; }, /** * Show modal view. */ show: function() { this._element.css('display', 'table'); }, _isVisible: function() { return this._element[0].clientWidth > 0; }, _onDeviceBackButton: function() { // Do nothing and stop device-backbutton handler chain. return; }, /** * Hide modal view. */ hide: function() { this._element.css('display', 'none'); }, /** * Toggle modal view visibility. */ toggle: function() { if (this._isVisible()) { return this.hide.apply(this, arguments); } else { return this.show.apply(this, arguments); } }, _destroy: function() { this.emit('destroy', {page: this}); this._deviceBackButtonHandler.destroy(); this._element = this._scope = null; } }); MicroEvent.mixin(ModalView); return ModalView; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict;'; var module = angular.module('onsen'); var NavigatorPageObject = Class.extend({ /** * @param {Object} params * @param {Object} params.page * @param {Object} params.element * @param {Object} params.pageScope * @param {Object} params.options * @param {Object} params.navigator */ init: function(params) { this.page = params.page; this.name = params.page; this.element = params.element; this.pageScope = params.pageScope; this.options = params.options; this.navigator = params.navigator; // Block events while page is being animated to stop scrolling, pressing buttons, etc. this._blockEvents = function(event) { if (this.navigator._isPopping || this.navigator._isPushing) { event.preventDefault(); event.stopPropagation(); } }.bind(this); this.element.on(this._pointerEvents, this._blockEvents); }, _pointerEvents: 'touchstart touchend touchmove click', /** * @return {PageView} */ getPageView: function() { if (!this._pageView) { this._pageView = this.element.inheritedData('ons-page'); if (!this._pageView) { throw new Error('Fail to fetch PageView from ons-page element.'); } } return this._pageView; }, destroy: function() { this.pageScope.$destroy(); this.element.off(this._pointerEvents, this._blockEvents); this.element.remove(); this.element = null; this._pageView = null; this.pageScope = null; this.options = null; var index = this.navigator.pages.indexOf(this); if (index !== -1) { this.navigator.pages.splice(index, 1); } this.navigator = null; } }); module.factory('NavigatorView', ['$http', '$parse', '$templateCache', '$compile', '$onsen', '$timeout', 'SimpleSlideTransitionAnimator', 'NavigatorTransitionAnimator', 'LiftTransitionAnimator', 'NullTransitionAnimator', 'IOSSlideTransitionAnimator', 'FadeTransitionAnimator', function($http, $parse, $templateCache, $compile, $onsen, $timeout, SimpleSlideTransitionAnimator, NavigatorTransitionAnimator, LiftTransitionAnimator, NullTransitionAnimator, IOSSlideTransitionAnimator, FadeTransitionAnimator) { /** * Manages the page navigation backed by page stack. * * @class NavigatorView */ var NavigatorView = Class.extend({ /** * @member {jqLite} Object */ _element: undefined, /** * @member {Object} Object */ _attrs: undefined, /** * @member {Array} */ pages: undefined, /** * @member {Object} */ _scope: undefined, /** * @member {DoorLock} */ _doorLock: undefined, /** * @member {Boolean} */ _profiling: false, /** * @param {Object} scope * @param {jqLite} element jqLite Object to manage with navigator * @param {Object} attrs */ init: function(scope, element, attrs) { this._element = element || angular.element(window.document.body); this._scope = scope || this._element.scope(); this._attrs = attrs; this._doorLock = new DoorLock(); this.pages = []; this._isPopping = this._isPushing = false; this._deviceBackButtonHandler = $onsen.DeviceBackButtonHandler.create(this._element, this._onDeviceBackButton.bind(this)); this._scope.$on('$destroy', this._destroy.bind(this)); }, _destroy: function() { this.emit('destroy'); this.pages.forEach(function(page) { page.destroy(); }); this._deviceBackButtonHandler.destroy(); this._deviceBackButtonHandler = null; this._element = this._scope = this._attrs = null; }, _onDeviceBackButton: function(event) { if (this.pages.length > 1) { this._scope.$evalAsync(this.popPage.bind(this)); } else { event.callParentHandler(); } }, /** * @param element jqLite Object * @return jqLite Object */ _normalizePageElement: function(element) { for (var i = 0; i < element.length; i++) { if (element[i].nodeType === 1) { return angular.element(element[i]); } } throw new Error('invalid state'); }, _createPageElementAndLinkFunction : function(templateHTML, pageScope, done) { var div = document.createElement('div'); div.innerHTML = templateHTML.trim(); var pageElement = angular.element(div); var hasPage = div.childElementCount === 1 && div.childNodes[0].nodeName.toLowerCase() === 'ons-page'; if (hasPage) { pageElement = angular.element(div.childNodes[0]); } else { throw new Error('You can not supply no "ons-page" element to "ons-navigator".'); } var link = $compile(pageElement); return { element: pageElement, link: function() { link(pageScope); safeApply(pageScope); } }; function safeApply(scope) { var phase = scope.$root.$$phase; if (phase !== '$apply' && phase !== '$digest') { scope.$apply(); } } }, /** * Insert page object that has the specified pageUrl into the page stack and * if options object is specified, apply the options. * * @param {Number} index * @param {String} page * @param {Object} [options] * @param {String/NavigatorTransitionAnimator} [options.animation] */ insertPage: function(index, page, options) { options = options || {}; if (options && typeof options != 'object') { throw new Error('options must be an object. You supplied ' + options); } if (this.pages.length === 0) { return this.pushPage.apply(this, arguments); } this._doorLock.waitUnlock(function() { var unlock = this._doorLock.lock(); $onsen.getPageHTMLAsync(page).then(function(templateHTML) { var pageScope = this._createPageScope(); var object = this._createPageElementAndLinkFunction(templateHTML, pageScope); var element = object.element; var link = object.link; element = this._normalizePageElement(element); var pageObject = this._createPageObject(page, element, pageScope, options); if (this.pages.length > 0) { index = normalizeIndex(index); this._element[0].insertBefore(element[0], this.pages[index] ? this.pages[index].element[0] : null); this.pages.splice(index, 0, pageObject); link(); setTimeout(function() { if (this.getCurrentPage() !== pageObject) { element.css('display', 'none'); } unlock(); element = null; }.bind(this), 1000 / 60); } else { this._element.append(element); this.pages.push(pageObject); link(); unlock(); element = null; } }.bind(this), function() { unlock(); throw new Error('Page is not found: ' + page); }); }.bind(this)); var normalizeIndex = function(index) { if (index < 0) { index = this.pages.length + index; } return index; }.bind(this); }, /** * Pushes the specified pageUrl into the page stack and * if options object is specified, apply the options. * * @param {String} page * @param {Object} [options] * @param {String/NavigatorTransitionAnimator} [options.animation] * @param {Function} [options.onTransitionEnd] */ pushPage: function(page, options) { if (this._profiling) { console.time('pushPage'); } options = options || {}; if (options && typeof options != 'object') { throw new Error('options must be an object. You supplied ' + options); } if (this._emitPrePushEvent()) { return; } this._doorLock.waitUnlock(function() { this._pushPage(page, options); }.bind(this)); }, _pushPage: function(page, options) { var unlock = this._doorLock.lock(); var done = function() { unlock(); if (this._profiling) { console.timeEnd('pushPage'); } }; $onsen.getPageHTMLAsync(page).then(function(templateHTML) { var pageScope = this._createPageScope(); var object = this._createPageElementAndLinkFunction(templateHTML, pageScope); setImmediate(function() { this._pushPageDOM(page, object.element, object.link, pageScope, options, done); object = null; }.bind(this)); }.bind(this), function() { done(); throw new Error('Page is not found: ' + page); }.bind(this)); }, getDeviceBackButtonHandler: function() { return this._deviceBackButtonHandler; }, /** * @param {Object} options pushPage()'s options parameter * @param {NavigatorTransitionAnimator} [defaultAnimator] */ _getAnimatorOption: function(options, defaultAnimator) { var animator = null; if (options.animation instanceof NavigatorTransitionAnimator) { return options.animation; } if (typeof options.animation === 'string') { animator = NavigatorView._transitionAnimatorDict[options.animation]; } if (!animator && this._element.attr('animation')) { animator = NavigatorView._transitionAnimatorDict[this._element.attr('animation')]; } if (!animator) { animator = defaultAnimator || NavigatorView._transitionAnimatorDict['default']; } if (!(animator instanceof NavigatorTransitionAnimator)) { throw new Error('"animator" is not an instance of NavigatorTransitionAnimator.'); } return animator; }, _createPageScope: function() { return this._scope.$new(); }, /** * @param {String} page * @param {jqLite} element * @param {Object} pageScope * @param {Object} options */ _createPageObject: function(page, element, pageScope, options) { options.animator = this._getAnimatorOption(options); return new NavigatorPageObject({ page: page, element: element, pageScope: pageScope, options: options, navigator: this }); }, /** * @param {String} page Page name. * @param {Object} element * @param {Function} link * @param {Object} pageScope * @param {Object} options * @param {Function} [unlock] */ _pushPageDOM: function(page, element, link, pageScope, options, unlock) { if (this._profiling) { console.time('pushPageDOM'); } unlock = unlock || function() {}; options = options || {}; element = this._normalizePageElement(element); var pageObject = this._createPageObject(page, element, pageScope, options); var event = { enterPage: pageObject, leavePage: this.pages[this.pages.length - 1], navigator: this }; this.pages.push(pageObject); var done = function() { if (this.pages[this.pages.length - 2]) { this.pages[this.pages.length - 2].element.css('display', 'none'); } if (this._profiling) { console.timeEnd('pushPageDOM'); } this._isPushing = false; unlock(); this.emit('postpush', event); if (typeof options.onTransitionEnd === 'function') { options.onTransitionEnd(); } element = null; }.bind(this); this._isPushing = true; if (this.pages.length > 1) { var leavePage = this.pages.slice(-2)[0]; var enterPage = this.pages.slice(-1)[0]; this._element.append(element); link(); options.animator.push(enterPage, leavePage, done); element = null; } else { this._element.append(element); link(); done(); element = null; } }, /** * @return {Boolean} Whether if event is canceled. */ _emitPrePushEvent: function() { var isCanceled = false; var prePushEvent = { navigator: this, currentPage: this.getCurrentPage(), cancel: function() { isCanceled = true; } }; this.emit('prepush', prePushEvent); return isCanceled; }, /** * @return {Boolean} Whether if event is canceled. */ _emitPrePopEvent: function() { var isCanceled = false; var prePopEvent = { navigator: this, currentPage: this.getCurrentPage(), cancel: function() { isCanceled = true; } }; this.emit('prepop', prePopEvent); return isCanceled; }, /** * Pops current page from the page stack. * @param {Object} [options] * @param {Function} [options.onTransitionEnd] */ popPage: function(options) { options = options || {}; this._doorLock.waitUnlock(function() { if (this.pages.length <= 1) { throw new Error('NavigatorView\'s page stack is empty.'); } if (this._emitPrePopEvent()) { return; } this._popPage(options); }.bind(this)); }, _popPage: function(options) { var unlock = this._doorLock.lock(); var leavePage = this.pages.pop(); if (this.pages[this.pages.length - 1]) { this.pages[this.pages.length - 1].element.css('display', 'block'); } var enterPage = this.pages[this.pages.length -1]; var event = { leavePage: leavePage, enterPage: this.pages[this.pages.length - 1], navigator: this }; var callback = function() { leavePage.destroy(); this._isPopping = false; unlock(); this.emit('postpop', event); event.leavePage = null; if (typeof options.onTransitionEnd === 'function') { options.onTransitionEnd(); } }.bind(this); this._isPopping = true; var animator = this._getAnimatorOption(options, leavePage.options.animator); animator.pop(enterPage, leavePage, callback); }, /** * Replaces the current page with the specified one. * * @param {String} page * @param {Object} [options] */ replacePage: function(page, options) { options = options || {}; var onTransitionEnd = options.onTransitionEnd || function() {}; options.onTransitionEnd = function() { if (this.pages.length > 1) { this.pages[this.pages.length - 2].destroy(); } onTransitionEnd(); }.bind(this); this.pushPage(page, options); }, /** * Clears page stack and add the specified pageUrl to the page stack. * If options object is specified, apply the options. * the options object include all the attributes of this navigator. * * @param {String} page * @param {Object} [options] */ resetToPage: function(page, options) { options = options || {}; if (!options.animator && !options.animation) { options.animation = 'none'; } var onTransitionEnd = options.onTransitionEnd || function() {}; var self = this; options.onTransitionEnd = function() { while (self.pages.length > 1) { self.pages.shift().destroy(); } onTransitionEnd(); }; this.pushPage(page, options); }, /** * Get current page's navigator item. * * Use this method to access options passed by pushPage() or resetToPage() method. * eg. ons.navigator.getCurrentPage().options * * @return {Object} */ getCurrentPage: function() { return this.pages[this.pages.length - 1]; }, /** * Retrieve the entire page stages of the navigator. * * @return {Array} */ getPages: function() { return this.pages; }, /** * @return {Boolean} */ canPopPage: function() { return this.pages.length > 1; } }); // Preset transition animators. NavigatorView._transitionAnimatorDict = { 'default': $onsen.isAndroid() ? new SimpleSlideTransitionAnimator() : new IOSSlideTransitionAnimator(), 'slide': $onsen.isAndroid() ? new SimpleSlideTransitionAnimator() : new IOSSlideTransitionAnimator(), 'simpleslide': new SimpleSlideTransitionAnimator(), 'lift': new LiftTransitionAnimator(), 'fade': new FadeTransitionAnimator(), 'none': new NullTransitionAnimator() }; /** * @param {String} name * @param {NavigatorTransitionAnimator} animator */ NavigatorView.registerTransitionAnimator = function(name, animator) { if (!(animator instanceof NavigatorTransitionAnimator)) { throw new Error('"animator" param must be an instance of NavigatorTransitionAnimator'); } this._transitionAnimatorDict[name] = animator; }; MicroEvent.mixin(NavigatorView); return NavigatorView; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict;'; var module = angular.module('onsen'); module.factory('NavigatorTransitionAnimator', function() { var NavigatorTransitionAnimator = Class.extend({ push: function(enterPage, leavePage, callback) { callback(); }, pop: function(enterPage, leavePage, callback) { callback(); } }); return NavigatorTransitionAnimator; }); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict;'; var module = angular.module('onsen'); /** * Null animator do screen transition with no animations. */ module.factory('NullTransitionAnimator', ['NavigatorTransitionAnimator', function(NavigatorTransitionAnimator) { var NullTransitionAnimator = NavigatorTransitionAnimator.extend({}); return NullTransitionAnimator; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict'; var module = angular.module('onsen'); module.factory('OverlaySlidingMenuAnimator', ['SlidingMenuAnimator', function(SlidingMenuAnimator) { var OverlaySlidingMenuAnimator = SlidingMenuAnimator.extend({ _blackMask: undefined, _isRight: false, _element: false, _menuPage: false, _mainPage: false, _width: false, _duration: false, /** * @param {jqLite} element "ons-sliding-menu" or "ons-split-view" element * @param {jqLite} mainPage * @param {jqLite} menuPage * @param {Object} options * @param {String} options.width "width" style value * @param {Boolean} options.isRight */ setup: function(element, mainPage, menuPage, options) { options = options || {}; this._width = options.width || '90%'; this._isRight = !!options.isRight; this._element = element; this._mainPage = mainPage; this._menuPage = menuPage; this._duration = 0.4; menuPage.css('box-shadow', '0px 0 10px 0px rgba(0, 0, 0, 0.2)'); menuPage.css({ width: options.width, display: 'none', zIndex: 2 }); // Fix for transparent menu page on iOS8. menuPage.css('-webkit-transform', 'translate3d(0px, 0px, 0px)'); mainPage.css({zIndex: 1}); if (this._isRight) { menuPage.css({ right: '-' + options.width, left: 'auto' }); } else { menuPage.css({ right: 'auto', left: '-' + options.width }); } this._blackMask = angular.element('<div></div>').css({ backgroundColor: 'black', top: '0px', left: '0px', right: '0px', bottom: '0px', position: 'absolute', display: 'none', zIndex: 0 }); element.prepend(this._blackMask); }, /** * @param {Object} options * @param {String} options.width */ onResized: function(options) { this._menuPage.css('width', options.width); if (this._isRight) { this._menuPage.css({ right: '-' + options.width, left: 'auto' }); } else { this._menuPage.css({ right: 'auto', left: '-' + options.width }); } if (options.isOpened) { var max = this._menuPage[0].clientWidth; var menuStyle = this._generateMenuPageStyle(max); animit(this._menuPage[0]).queue(menuStyle).play(); } }, /** */ destroy: function() { if (this._blackMask) { this._blackMask.remove(); this._blackMask = null; } this._mainPage.removeAttr('style'); this._menuPage.removeAttr('style'); this._element = this._mainPage = this._menuPage = null; }, /** * @param {Function} callback * @param {Boolean} instant */ openMenu: function(callback, instant) { var duration = instant === true ? 0.0 : this._duration; this._menuPage.css('display', 'block'); this._blackMask.css('display', 'block'); var max = this._menuPage[0].clientWidth; var menuStyle = this._generateMenuPageStyle(max); var mainPageStyle = this._generateMainPageStyle(max); setTimeout(function() { animit(this._mainPage[0]) .queue(mainPageStyle, { duration: duration, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .queue(function(done) { callback(); done(); }) .play(); animit(this._menuPage[0]) .queue(menuStyle, { duration: duration, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .play(); }.bind(this), 1000 / 60); }, /** * @param {Function} callback * @param {Boolean} instant */ closeMenu: function(callback, instant) { var duration = instant === true ? 0.0 : this._duration; this._blackMask.css({display: 'block'}); var menuPageStyle = this._generateMenuPageStyle(0); var mainPageStyle = this._generateMainPageStyle(0); setTimeout(function() { animit(this._mainPage[0]) .queue(mainPageStyle, { duration: duration, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .queue(function(done) { this._menuPage.css('display', 'none'); callback(); done(); }.bind(this)) .play(); animit(this._menuPage[0]) .queue(menuPageStyle, { duration: duration, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .play(); }.bind(this), 1000 / 60); }, /** * @param {Object} options * @param {Number} options.distance * @param {Number} options.maxDistance */ translateMenu: function(options) { this._menuPage.css('display', 'block'); this._blackMask.css({display: 'block'}); var menuPageStyle = this._generateMenuPageStyle(Math.min(options.maxDistance, options.distance)); var mainPageStyle = this._generateMainPageStyle(Math.min(options.maxDistance, options.distance)); delete mainPageStyle.opacity; animit(this._menuPage[0]) .queue(menuPageStyle) .play(); if (Object.keys(mainPageStyle).length > 0) { animit(this._mainPage[0]) .queue(mainPageStyle) .play(); } }, _generateMenuPageStyle: function(distance) { var max = this._menuPage[0].clientWidth; var x = this._isRight ? -distance : distance; var transform = 'translate3d(' + x + 'px, 0, 0)'; return { transform: transform, 'box-shadow': distance === 0 ? 'none' : '0px 0 10px 0px rgba(0, 0, 0, 0.2)' }; }, _generateMainPageStyle: function(distance) { var max = this._menuPage[0].clientWidth; var opacity = 1 - (0.1 * distance / max); return { opacity: opacity }; }, copy: function() { return new OverlaySlidingMenuAnimator(); } }); return OverlaySlidingMenuAnimator; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict;'; var module = angular.module('onsen'); module.factory('PageView', ['$onsen', '$parse', function($onsen, $parse) { var PageView = Class.extend({ _registeredToolbarElement : false, _registeredBottomToolbarElement : false, _nullElement : window.document.createElement('div'), _toolbarElement : null, _bottomToolbarElement : null, init: function(scope, element, attrs) { this._scope = scope; this._element = element; this._attrs = attrs; this._registeredToolbarElement = false; this._registeredBottomToolbarElement = false; this._nullElement = window.document.createElement('div'); this._toolbarElement = angular.element(this._nullElement); this._bottomToolbarElement = angular.element(this._nullElement); this._clearListener = scope.$on('$destroy', this._destroy.bind(this)); this._userDeviceBackButtonListener = angular.noop; if (this._attrs.ngDeviceBackbutton || this._attrs.onDeviceBackbutton) { this._deviceBackButtonHandler = $onsen.DeviceBackButtonHandler.create(this._element, this._onDeviceBackButton.bind(this)); } }, _onDeviceBackButton: function($event) { this._userDeviceBackButtonListener($event); // ng-device-backbutton if (this._attrs.ngDeviceBackbutton) { $parse(this._attrs.ngDeviceBackbutton)(this._scope, {$event: $event}); } // on-device-backbutton /* jshint ignore:start */ if (this._attrs.onDeviceBackbutton) { var lastEvent = window.$event; window.$event = $event; new Function(this._attrs.onDeviceBackbutton)(); window.$event = lastEvent; } /* jshint ignore:end */ }, /** * @param {Function} callback */ setDeviceBackButtonHandler: function(callback) { if (!this._deviceBackButtonHandler) { this._deviceBackButtonHandler = $onsen.DeviceBackButtonHandler.create(this._element, this._onDeviceBackButton.bind(this)); } this._userDeviceBackButtonListener = callback; }, /** * @return {Object/null} */ getDeviceBackButtonHandler: function() { return this._deviceBackButtonHandler || null; }, /** * Register toolbar element to this page. * * @param {jqLite} element */ registerToolbar: function(element) { if (this._registeredToolbarElement) { throw new Error('This page\'s toolbar is already registered.'); } angular.element(this.getContentElement()).attr('no-status-bar-fill', ''); element.remove(); var statusFill = this._element[0].querySelector('.page__status-bar-fill'); if (statusFill) { angular.element(statusFill).after(element); } else { this._element.prepend(element); } this._toolbarElement = element; this._registeredToolbarElement = true; }, /** * Register toolbar element to this page. * * @param {jqLite} element */ registerBottomToolbar: function(element) { if (this._registeredBottomToolbarElement) { throw new Error('This page\'s bottom-toolbar is already registered.'); } element.remove(); this._bottomToolbarElement = element; this._registeredBottomToolbarElement = true; var fill = angular.element(document.createElement('div')); fill.addClass('page__bottom-bar-fill'); fill.css({width: '0px', height: '0px'}); this._element.prepend(fill); this._element.append(element); }, /** * @param {jqLite} element */ registerExtraElement: function(element) { if (!this._extraElement) { this._extraElement = angular.element('<div></div>'); this._extraElement.addClass('page__extra'); this._extraElement.css({ 'z-index': '10001' }); this._element.append(this._extraElement); } this._extraElement.append(element.remove()); }, /** * @return {Boolean} */ hasToolbarElement : function() { return !!this._registeredToolbarElement; }, /** * @return {Boolean} */ hasBottomToolbarElement : function() { return !!this._registeredBottomToolbarElement; }, /** * @return {HTMLElement} */ getContentElement : function() { for (var i = 0; i < this._element.length; i++) { if (this._element[i].querySelector) { var content = this._element[i].querySelector('.page__content'); if (content) { return content; } } } throw Error('fail to get ".page__content" element.'); }, /** * @return {HTMLElement} */ getBackgroundElement : function() { for (var i = 0; i < this._element.length; i++) { if (this._element[i].querySelector) { var content = this._element[i].querySelector('.page__background'); if (content) { return content; } } } throw Error('fail to get ".page__background" element.'); }, /** * @return {HTMLElement} */ getToolbarElement : function() { return this._toolbarElement[0] || this._nullElement; }, /** * @return {HTMLElement} */ getBottomToolbarElement : function() { return this._bottomToolbarElement[0] || this._nullElement; }, /** * @return {HTMLElement} */ getToolbarLeftItemsElement : function() { return this._toolbarElement[0].querySelector('.left') || this._nullElement; }, /** * @return {HTMLElement} */ getToolbarCenterItemsElement : function() { return this._toolbarElement[0].querySelector('.center') || this._nullElement; }, /** * @return {HTMLElement} */ getToolbarRightItemsElement : function() { return this._toolbarElement[0].querySelector('.right') || this._nullElement; }, /** * @return {HTMLElement} */ getToolbarBackButtonLabelElement : function() { return this._toolbarElement[0].querySelector('ons-back-button .back-button__label') || this._nullElement; }, _destroy: function() { this.emit('destroy', {page: this}); if (this._deviceBackButtonHandler) { this._deviceBackButtonHandler.destroy(); this._deviceBackButtonHandler = null; } this._element = null; this._toolbarElement = null; this._nullElement = null; this._bottomToolbarElement = null; this._extraElement = null; this._scope = null; this._clearListener(); } }); MicroEvent.mixin(PageView); return PageView; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function(){ 'use strict'; var module = angular.module('onsen'); module.factory('PopoverView', ['$onsen', 'PopoverAnimator', 'FadePopoverAnimator', function($onsen, PopoverAnimator, FadePopoverAnimator) { var PopoverView = Class.extend({ /** * @param {Object} scope * @param {jqLite} element * @param {Object} attrs */ init: function(scope, element, attrs) { this._element = element; this._scope = scope; this._attrs = attrs; this._mask = angular.element(this._element[0].querySelector('.popover-mask')); this._popover = angular.element(this._element[0].querySelector('.popover')); this._mask.css('z-index', 20000); this._popover.css('z-index', 20001); this._element.css('display', 'none'); if (attrs.maskColor) { this._mask.css('background-color', attrs.maskColor); } this._mask.on('click', this._cancel.bind(this)); this._visible = false; this._doorLock = new DoorLock(); this._animation = PopoverView._animatorDict[typeof attrs.animation !== 'undefined' ? attrs.animation : 'fade']; if (!this._animation) { throw new Error('No such animation: ' + attrs.animation); } this._deviceBackButtonHandler = $onsen.DeviceBackButtonHandler.create(this._element, this._onDeviceBackButton.bind(this)); this._onChange = function() { setImmediate(function() { if (this._currentTarget) { this._positionPopover(this._currentTarget); } }.bind(this)); }.bind(this); this._popover[0].addEventListener('DOMNodeInserted', this._onChange, false); this._popover[0].addEventListener('DOMNodeRemoved', this._onChange, false); window.addEventListener('resize', this._onChange, false); this._scope.$on('$destroy', this._destroy.bind(this)); }, _onDeviceBackButton: function(event) { if (this.isCancelable()) { this._cancel.bind(this)(); } else { event.callParentHandler(); } }, _setDirection: function(direction) { if (direction === 'up') { this._scope.direction = direction; this._scope.arrowPosition = 'bottom'; } else if (direction === 'left') { this._scope.direction = direction; this._scope.arrowPosition = 'right'; } else if (direction === 'down') { this._scope.direction = direction; this._scope.arrowPosition = 'top'; } else if (direction == 'right') { this._scope.direction = direction; this._scope.arrowPosition = 'left'; } else { throw new Error('Invalid direction.'); } if (!this._scope.$$phase) { this._scope.$apply(); } }, _positionPopoverByDirection: function(target, direction) { var el = angular.element(this._element[0].querySelector('.popover')), pos = target.getBoundingClientRect(), own = el[0].getBoundingClientRect(), arrow = angular.element(el.children()[1]), offset = 14, margin = 6, radius = parseInt(window.getComputedStyle(el[0].querySelector('.popover__content')).borderRadius); arrow.css({ top: '', left: '' }); // This is the difference between the side and the hypothenuse of the arrow. var diff = (function(x) { return (x / 2) * Math.sqrt(2) - x / 2; })(parseInt(window.getComputedStyle(arrow[0]).width)); // This is the limit for the arrow. If it's moved further than this it's outside the popover. var limit = margin + radius + diff; this._setDirection(direction); // Position popover next to the target. if (['left', 'right'].indexOf(direction) > -1) { if (direction == 'left') { el.css('left', (pos.right - pos.width - own.width - offset) + 'px'); } else { el.css('left', (pos.right + offset) + 'px'); } el.css('top', (pos.bottom - pos.height / 2 - own.height / 2) + 'px'); } else { if (direction == 'up') { el.css('top', (pos.bottom - pos.height - own.height - offset) + 'px'); } else { el.css('top', (pos.bottom + offset) + 'px'); } el.css('left', (pos.right - pos.width / 2 - own.width / 2) + 'px'); } own = el[0].getBoundingClientRect(); // Keep popover inside window and arrow inside popover. if (['left', 'right'].indexOf(direction) > -1) { if (own.top < margin) { arrow.css('top', Math.max(own.height / 2 + own.top - margin, limit) + 'px'); el.css('top', margin + 'px'); } else if (own.bottom > window.innerHeight - margin) { arrow.css('top', Math.min(own.height / 2 - (window.innerHeight - own.bottom) + margin, own.height - limit) + 'px'); el.css('top', (window.innerHeight - own.height - margin) + 'px'); } } else { if (own.left < margin) { arrow.css('left', Math.max(own.width / 2 + own.left - margin, limit) + 'px'); el.css('left', margin + 'px'); } else if (own.right > window.innerWidth - margin) { arrow.css('left', Math.min(own.width / 2 - (window.innerWidth - own.right) + margin, own.width - limit) + 'px'); el.css('left', (window.innerWidth - own.width - margin) + 'px'); } } }, _positionPopover: function(target) { var directions; if (!this._element.attr('direction')) { directions = ['up', 'down', 'left', 'right']; } else { directions = this._element.attr('direction').split(/\s+/); } var position = target.getBoundingClientRect(); // The popover should be placed on the side with the most space. var scores = { left: position.left, right: window.innerWidth - position.right, up: position.top, down: window.innerHeight - position.bottom }; var orderedDirections = Object.keys(scores).sort(function(a, b) {return -(scores[a] - scores[b]);}); for (var i = 0, l = orderedDirections.length; i < l; i++) { var direction = orderedDirections[i]; if (directions.indexOf(direction) > -1) { this._positionPopoverByDirection(target, direction); return; } } }, /** * Show popover. * * @param {HTMLElement} [target] target element * @param {String} [target] css selector * @param {Event} [target] event * @param {Object} [options] options * @param {String} [options.animation] animation type */ show: function(target, options) { if (typeof target === 'string') { target = document.querySelector(target); } else if (target instanceof Event) { target = target.target; } if (!target) { throw new Error('Target undefined'); } options = options || {}; var cancel = false; this.emit('preshow', { popover: this, cancel: function() { cancel = true; } }); if (!cancel) { this._doorLock.waitUnlock(function() { var unlock = this._doorLock.lock(), animation = this._animation; this._element.css('display', 'block'); this._currentTarget = target; this._positionPopover(target); if (options.animation) { animation = PopoverView._animatorDict[options.animation]; } animation.show(this, function() { this._visible = true; this._positionPopover(target); unlock(); this.emit('postshow', {popover: this}); }.bind(this)); }.bind(this)); } }, /** * Hide popover. * * @param {Object} [options] options * @param {String} [options.animation] animation type */ hide: function(options) { options = options || {}; var cancel = false; this.emit('prehide', { popover: this, cancel: function() { cancel = true; } }); if (!cancel) { this._doorLock.waitUnlock(function() { var unlock = this._doorLock.lock(), animation = this._animation; if (options.animation) { animation = PopoverView._animatorDict[options.animation]; } animation.hide(this, function() { this._element.css('display', 'none'); this._visible = false; unlock(); this.emit('posthide', {popover: this}); }.bind(this)); }.bind(this)); } }, /** * Returns whether the popover is visible or not. * * @return {Boolean} */ isShown: function() { return this._visible; }, /** * Destroy the popover and remove it from the DOM tree. */ destroy: function() { this._scope.$destroy(); }, _destroy: function() { this.emit('destroy'); this._deviceBackButtonHandler.destroy(); this._popover[0].removeEventListener('DOMNodeInserted', this._onChange, false); this._popover[0].removeEventListener('DOMNodeRemoved', this._onChange, false); window.removeEventListener('resize', this._onChange, false); this._mask.off(); this._mask.remove(); this._popover.remove(); this._element.remove(); this._onChange = this._deviceBackButtonHandler = this._mask = this._popover = this._element = this._scope = null; }, /** * Set whether the popover should be cancelable or not. * * @param {Boolean} */ setCancelable: function(cancelable) { if (typeof cancelable !== 'boolean') { throw new Error('Argument must be a boolean.'); } if (cancelable) { this._element.attr('cancelable', true); } else { this._element.removeAttr('cancelable'); } }, /** * Return whether the popover is cancelable or not. * * @return {Boolean} */ isCancelable: function() { return this._element[0].hasAttribute('cancelable'); }, _cancel: function() { if (this.isCancelable()) { this.hide(); } }, }); PopoverView._animatorDict = { 'fade': new FadePopoverAnimator(), 'none': new PopoverAnimator() }; /** * @param {String} name * @param {PopoverAnimator} animator */ PopoverView.registerAnimator = function(name, animator) { if (!(animator instanceof PopoverAnimator)) { throw new Error('"animator" param must be an instance of PopoverAnimator'); } this._animatorDict[name] = animator; }; MicroEvent.mixin(PopoverView); return PopoverView; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict'; var module = angular.module('onsen'); module.factory('PopoverAnimator', function() { var PopoverAnimator = Class.extend({ show: function(popover, callback) { callback(); }, hide: function(popover, callback) { callback(); } }); return PopoverAnimator; }); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function(){ 'use strict'; var module = angular.module('onsen'); module.factory('PullHookView', ['$onsen', '$parse', function($onsen, $parse) { var PullHookView = Class.extend({ STATE_INITIAL: 'initial', STATE_PREACTION: 'preaction', STATE_ACTION: 'action', /** * @param {Object} scope * @param {jqLite} element * @param {Object} attrs */ init: function(scope, element, attrs) { this._element = element; this._scope = scope; this._attrs = attrs; this._scrollElement = this._createScrollElement(); this._pageElement = this._scrollElement.parent(); if (!this._pageElement.hasClass('page__content') && !this._pageElement.hasClass('ons-scroller__content')) { throw new Error('<ons-pull-hook> must be a direct descendant of an <ons-page> or an <ons-scroller> element.'); } this._currentTranslation = 0; this._createEventListeners(); this._setState(this.STATE_INITIAL, true); this._setStyle(); this._scope.$on('$destroy', this._destroy.bind(this)); }, _createScrollElement: function() { var scrollElement = angular.element('<div>') .addClass('scroll'); var pageElement = this._element.parent(), children = pageElement.children(); pageElement.append(scrollElement); scrollElement.append(children); return scrollElement; }, _setStyle: function() { var h = this._getHeight(); this._element.css({ top: '-' + h + 'px', height: h + 'px', lineHeight: h + 'px' }); }, _onScroll: function(event) { var el = this._pageElement[0]; if (el.scrollTop < 0) { el.scrollTop = 0; } }, _generateTranslationTransform: function(scroll) { return 'translate3d(0px, ' + scroll + 'px, 0px)'; }, _onDrag: function(event) { if (this.isDisabled()) { return; } // Ignore when dragging left and right. if (event.gesture.direction === 'left' || event.gesture.direction === 'right') { return; } // Hack to make it work on Android 4.4 WebView. Scrolls manually near the top of the page so // there will be no inertial scroll when scrolling down. Allowing default scrolling will // kill all 'touchmove' events. var el = this._pageElement[0]; el.scrollTop = this._startScroll - event.gesture.deltaY; if (el.scrollTop < window.innerHeight && event.gesture.direction !== 'up') { event.gesture.preventDefault(); } if (this._currentTranslation === 0 && this._getCurrentScroll() === 0) { this._transitionDragLength = event.gesture.deltaY; var direction = event.gesture.interimDirection; if (direction === 'down') { this._transitionDragLength -= 1; } else { this._transitionDragLength += 1; } } var scroll = event.gesture.deltaY - this._startScroll; scroll = Math.max(scroll, 0); if (this._thresholdHeightEnabled() && scroll >= this._getThresholdHeight()) { event.gesture.stopDetect(); setImmediate(function() { this._setState(this.STATE_ACTION); this._translateTo(this._getHeight(), {animate: true}); this._waitForAction(this._onDone.bind(this)); }.bind(this)); } else if (scroll >= this._getHeight()) { this._setState(this.STATE_PREACTION); } else { this._setState(this.STATE_INITIAL); } event.stopPropagation(); this._translateTo(scroll); }, _onDragStart: function(event) { if (this.isDisabled()) { return; } this._startScroll = this._getCurrentScroll(); }, _onDragEnd: function(event) { if (this.isDisabled()) { return; } if (this._currentTranslation > 0) { var scroll = this._currentTranslation; if (scroll > this._getHeight()) { this._setState(this.STATE_ACTION); this._translateTo(this._getHeight(), {animate: true}); this._waitForAction(this._onDone.bind(this)); } else { this._translateTo(0, {animate: true}); } } }, _waitForAction: function(done) { if (this._attrs.ngAction) { this._scope.$eval(this._attrs.ngAction, {$done: done}); } else if (this._attrs.onAction) { /*jshint evil:true */ eval(this._attrs.onAction); } else { done(); } }, _onDone: function(done) { // Check if the pull hook still exists. if (this._element) { this._translateTo(0, {animate: true}); this._setState(this.STATE_INITIAL); } }, _getHeight: function() { return parseInt(this._element[0].getAttribute('height') || '64', 10); }, setHeight: function(height) { this._element[0].setAttribute('height', height + 'px'); this._setStyle(); }, setThresholdHeight: function(thresholdHeight) { this._element[0].setAttribute('threshold-height', thresholdHeight + 'px'); }, _getThresholdHeight: function() { return parseInt(this._element[0].getAttribute('threshold-height') || '96', 10); }, _thresholdHeightEnabled: function() { var th = this._getThresholdHeight(); return th > 0 && th >= this._getHeight(); }, _setState: function(state, noEvent) { var oldState = this._getState(); this._scope.$evalAsync(function() { this._element[0].setAttribute('state', state); if (!noEvent && oldState !== this._getState()) { this.emit('changestate', { state: state, pullHook: this }); } }.bind(this)); }, _getState: function() { return this._element[0].getAttribute('state'); }, getCurrentState: function() { return this._getState(); }, _getCurrentScroll: function() { return this._pageElement[0].scrollTop; }, isDisabled: function() { return this._element[0].hasAttribute('disabled'); }, setDisabled: function(disabled) { if (disabled) { this._element[0].setAttribute('disabled', ''); } else { this._element[0].removeAttribute('disabled'); } }, _translateTo: function(scroll, options) { options = options || {}; this._currentTranslation = scroll; if (options.animate) { animit(this._scrollElement[0]) .queue({ transform: this._generateTranslationTransform(scroll) }, { duration: 0.3, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .play(options.callback); } else { animit(this._scrollElement[0]) .queue({ transform: this._generateTranslationTransform(scroll) }) .play(options.callback); } }, _getMinimumScroll: function() { var scrollHeight = this._scrollElement[0].getBoundingClientRect().height, pageHeight = this._pageElement[0].getBoundingClientRect().height; if (scrollHeight > pageHeight) { return -(scrollHeight - pageHeight); } else { return 0; } }, _createEventListeners: function() { var element = this._scrollElement.parent(); this._hammer = new Hammer(element[0], { dragMinDistance: 1, dragDistanceCorrection: false }); // Event listeners this._bindedOnDrag = this._onDrag.bind(this); this._bindedOnDragStart = this._onDragStart.bind(this); this._bindedOnDragEnd = this._onDragEnd.bind(this); this._bindedOnScroll = this._onScroll.bind(this); // Bind listeners this._hammer.on('drag', this._bindedOnDrag); this._hammer.on('dragstart', this._bindedOnDragStart); this._hammer.on('dragend', this._bindedOnDragEnd); element.on('scroll', this._bindedOnScroll); }, _destroyEventListeners: function() { var element = this._scrollElement.parent(); this._hammer.off('drag', this._bindedOnDrag); this._hammer.off('dragstart', this._bindedOnDragStart); this._hammer.off('dragend', this._bindedOnDragEnd); element.off('scroll', this._bindedOnScroll); }, _destroy: function() { this.emit('destroy'); this._destroyEventListeners(); this._element = this._scope = this._attrs = null; } }); MicroEvent.mixin(PullHookView); return PullHookView; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict'; var module = angular.module('onsen'); module.factory('PushSlidingMenuAnimator', ['SlidingMenuAnimator', function(SlidingMenuAnimator) { var PushSlidingMenuAnimator = SlidingMenuAnimator.extend({ _isRight: false, _element: undefined, _menuPage: undefined, _mainPage: undefined, _width: undefined, _duration: false, /** * @param {jqLite} element "ons-sliding-menu" or "ons-split-view" element * @param {jqLite} mainPage * @param {jqLite} menuPage * @param {Object} options * @param {String} options.width "width" style value * @param {Boolean} options.isRight */ setup: function(element, mainPage, menuPage, options) { options = options || {}; this._element = element; this._mainPage = mainPage; this._menuPage = menuPage; this._isRight = !!options.isRight; this._width = options.width || '90%'; this._duration = 0.4; menuPage.css({ width: options.width, display: 'none' }); if (this._isRight) { menuPage.css({ right: '-' + options.width, left: 'auto' }); } else { menuPage.css({ right: 'auto', left: '-' + options.width }); } }, /** * @param {Object} options * @param {String} options.width * @param {Object} options.isRight */ onResized: function(options) { this._menuPage.css('width', options.width); if (this._isRight) { this._menuPage.css({ right: '-' + options.width, left: 'auto' }); } else { this._menuPage.css({ right: 'auto', left: '-' + options.width }); } if (options.isOpened) { var max = this._menuPage[0].clientWidth; var mainPageTransform = this._generateAbovePageTransform(max); var menuPageStyle = this._generateBehindPageStyle(max); animit(this._mainPage[0]).queue({transform: mainPageTransform}).play(); animit(this._menuPage[0]).queue(menuPageStyle).play(); } }, /** */ destroy: function() { this._mainPage.removeAttr('style'); this._menuPage.removeAttr('style'); this._element = this._mainPage = this._menuPage = null; }, /** * @param {Function} callback * @param {Boolean} instant */ openMenu: function(callback, instant) { var duration = instant === true ? 0.0 : this._duration; this._menuPage.css('display', 'block'); var max = this._menuPage[0].clientWidth; var aboveTransform = this._generateAbovePageTransform(max); var behindStyle = this._generateBehindPageStyle(max); setTimeout(function() { animit(this._mainPage[0]) .queue({ transform: aboveTransform }, { duration: duration, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .queue(function(done) { callback(); done(); }) .play(); animit(this._menuPage[0]) .queue(behindStyle, { duration: duration, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .play(); }.bind(this), 1000 / 60); }, /** * @param {Function} callback * @param {Boolean} instant */ closeMenu: function(callback, instant) { var duration = instant === true ? 0.0 : this._duration; var aboveTransform = this._generateAbovePageTransform(0); var behindStyle = this._generateBehindPageStyle(0); setTimeout(function() { animit(this._mainPage[0]) .queue({ transform: aboveTransform }, { duration: duration, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .queue({ transform: 'translate3d(0, 0, 0)' }) .queue(function(done) { this._menuPage.css('display', 'none'); callback(); done(); }.bind(this)) .play(); animit(this._menuPage[0]) .queue(behindStyle, { duration: duration, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .queue(function(done) { done(); }) .play(); }.bind(this), 1000 / 60); }, /** * @param {Object} options * @param {Number} options.distance * @param {Number} options.maxDistance */ translateMenu: function(options) { this._menuPage.css('display', 'block'); var aboveTransform = this._generateAbovePageTransform(Math.min(options.maxDistance, options.distance)); var behindStyle = this._generateBehindPageStyle(Math.min(options.maxDistance, options.distance)); animit(this._mainPage[0]) .queue({transform: aboveTransform}) .play(); animit(this._menuPage[0]) .queue(behindStyle) .play(); }, _generateAbovePageTransform: function(distance) { var x = this._isRight ? -distance : distance; var aboveTransform = 'translate3d(' + x + 'px, 0, 0)'; return aboveTransform; }, _generateBehindPageStyle: function(distance) { var max = this._menuPage[0].clientWidth; var behindX = this._isRight ? -distance : distance; var behindTransform = 'translate3d(' + behindX + 'px, 0, 0)'; return { transform: behindTransform }; }, copy: function() { return new PushSlidingMenuAnimator(); } }); return PushSlidingMenuAnimator; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict'; var module = angular.module('onsen'); module.factory('RevealSlidingMenuAnimator', ['SlidingMenuAnimator', function(SlidingMenuAnimator) { var RevealSlidingMenuAnimator = SlidingMenuAnimator.extend({ _blackMask: undefined, _isRight: false, _menuPage: undefined, _element: undefined, _mainPage: undefined, _duration: undefined, /** * @param {jqLite} element "ons-sliding-menu" or "ons-split-view" element * @param {jqLite} mainPage * @param {jqLite} menuPage * @param {Object} options * @param {String} options.width "width" style value * @param {Boolean} options.isRight */ setup: function(element, mainPage, menuPage, options) { this._element = element; this._menuPage = menuPage; this._mainPage = mainPage; this._isRight = !!options.isRight; this._width = options.width || '90%'; this._duration = 0.4; mainPage.css({ boxShadow: '0px 0 10px 0px rgba(0, 0, 0, 0.2)' }); menuPage.css({ width: options.width, opacity: 0.9, display: 'none' }); if (this._isRight) { menuPage.css({ right: '0px', left: 'auto' }); } else { menuPage.css({ right: 'auto', left: '0px' }); } this._blackMask = angular.element('<div></div>').css({ backgroundColor: 'black', top: '0px', left: '0px', right: '0px', bottom: '0px', position: 'absolute', display: 'none' }); element.prepend(this._blackMask); // Dirty fix for broken rendering bug on android 4.x. animit(mainPage[0]).queue({transform: 'translate3d(0, 0, 0)'}).play(); }, /** * @param {Object} options * @param {Boolean} options.isOpened * @param {String} options.width */ onResized: function(options) { this._width = options.width; this._menuPage.css('width', this._width); if (options.isOpened) { var max = this._menuPage[0].clientWidth; var aboveTransform = this._generateAbovePageTransform(max); var behindStyle = this._generateBehindPageStyle(max); animit(this._mainPage[0]).queue({transform: aboveTransform}).play(); animit(this._menuPage[0]).queue(behindStyle).play(); } }, /** * @param {jqLite} element "ons-sliding-menu" or "ons-split-view" element * @param {jqLite} mainPage * @param {jqLite} menuPage */ destroy: function() { if (this._blackMask) { this._blackMask.remove(); this._blackMask = null; } if (this._mainPage) { this._mainPage.attr('style', ''); } if (this._menuPage) { this._menuPage.attr('style', ''); } this._mainPage = this._menuPage = this._element = undefined; }, /** * @param {Function} callback * @param {Boolean} instant */ openMenu: function(callback, instant) { var duration = instant === true ? 0.0 : this._duration; this._menuPage.css('display', 'block'); this._blackMask.css('display', 'block'); var max = this._menuPage[0].clientWidth; var aboveTransform = this._generateAbovePageTransform(max); var behindStyle = this._generateBehindPageStyle(max); setTimeout(function() { animit(this._mainPage[0]) .queue({ transform: aboveTransform }, { duration: duration, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .queue(function(done) { callback(); done(); }) .play(); animit(this._menuPage[0]) .queue(behindStyle, { duration: duration, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .play(); }.bind(this), 1000 / 60); }, /** * @param {Function} callback * @param {Boolean} instant */ closeMenu: function(callback, instant) { var duration = instant === true ? 0.0 : this._duration; this._blackMask.css('display', 'block'); var aboveTransform = this._generateAbovePageTransform(0); var behindStyle = this._generateBehindPageStyle(0); setTimeout(function() { animit(this._mainPage[0]) .queue({ transform: aboveTransform }, { duration: duration, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .queue({ transform: 'translate3d(0, 0, 0)' }) .queue(function(done) { this._menuPage.css('display', 'none'); callback(); done(); }.bind(this)) .play(); animit(this._menuPage[0]) .queue(behindStyle, { duration: duration, timing: 'cubic-bezier(.1, .7, .1, 1)' }) .queue(function(done) { done(); }) .play(); }.bind(this), 1000 / 60); }, /** * @param {Object} options * @param {Number} options.distance * @param {Number} options.maxDistance */ translateMenu: function(options) { this._menuPage.css('display', 'block'); this._blackMask.css('display', 'block'); var aboveTransform = this._generateAbovePageTransform(Math.min(options.maxDistance, options.distance)); var behindStyle = this._generateBehindPageStyle(Math.min(options.maxDistance, options.distance)); delete behindStyle.opacity; animit(this._mainPage[0]) .queue({transform: aboveTransform}) .play(); animit(this._menuPage[0]) .queue(behindStyle) .play(); }, _generateAbovePageTransform: function(distance) { var x = this._isRight ? -distance : distance; var aboveTransform = 'translate3d(' + x + 'px, 0, 0)'; return aboveTransform; }, _generateBehindPageStyle: function(distance) { var max = this._menuPage[0].getBoundingClientRect().width; var behindDistance = (distance - max) / max * 10; behindDistance = isNaN(behindDistance) ? 0 : Math.max(Math.min(behindDistance, 0), -10); var behindX = this._isRight ? -behindDistance : behindDistance; var behindTransform = 'translate3d(' + behindX + '%, 0, 0)'; var opacity = 1 + behindDistance / 100; return { transform: behindTransform, opacity: opacity }; }, copy: function() { return new RevealSlidingMenuAnimator(); } }); return RevealSlidingMenuAnimator; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict;'; var module = angular.module('onsen'); module.factory('SimpleSlideTransitionAnimator', ['NavigatorTransitionAnimator', function(NavigatorTransitionAnimator) { /** * Slide animator for navigator transition. */ var SimpleSlideTransitionAnimator = NavigatorTransitionAnimator.extend({ /** Black mask */ backgroundMask : angular.element( '<div style="z-index: 2; position: absolute; width: 100%;' + 'height: 100%; background-color: black; opacity: 0;"></div>' ), timing: 'cubic-bezier(.1, .7, .4, 1)', duration: 0.3, blackMaskOpacity: 0.4, init: function(options) { options = options || {}; this.timing = options.timing || this.timing; this.duration = options.duration !== undefined ? options.duration : this.duration; }, /** * @param {Object} enterPage * @param {Object} leavePage * @param {Function} callback */ push: function(enterPage, leavePage, callback) { var mask = this.backgroundMask.remove(); leavePage.element[0].parentNode.insertBefore(mask[0], leavePage.element[0].nextSibling); animit.runAll( animit(mask[0]) .queue({ opacity: 0, transform: 'translate3d(0, 0, 0)' }) .queue({ opacity: this.blackMaskOpacity }, { duration: this.duration, timing: this.timing }) .resetStyle() .queue(function(done) { mask.remove(); done(); }), animit(enterPage.element[0]) .queue({ css: { transform: 'translate3D(100%, 0, 0)', }, duration: 0 }) .queue({ css: { transform: 'translate3D(0, 0, 0)', }, duration: this.duration, timing: this.timing }) .resetStyle(), animit(leavePage.element[0]) .queue({ css: { transform: 'translate3D(0, 0, 0)' }, duration: 0 }) .queue({ css: { transform: 'translate3D(-45%, 0px, 0px)' }, duration: this.duration, timing: this.timing }) .resetStyle() .wait(0.2) .queue(function(done) { callback(); done(); }) ); }, /** * @param {Object} enterPage * @param {Object} leavePage * @param {Function} done */ pop: function(enterPage, leavePage, done) { var mask = this.backgroundMask.remove(); enterPage.element[0].parentNode.insertBefore(mask[0], enterPage.element[0].nextSibling); animit.runAll( animit(mask[0]) .queue({ opacity: this.blackMaskOpacity, transform: 'translate3d(0, 0, 0)' }) .queue({ opacity: 0 }, { duration: this.duration, timing: this.timing }) .resetStyle() .queue(function(done) { mask.remove(); done(); }), animit(enterPage.element[0]) .queue({ css: { transform: 'translate3D(-45%, 0px, 0px)', opacity: 0.9 }, duration: 0 }) .queue({ css: { transform: 'translate3D(0px, 0px, 0px)', opacity: 1.0 }, duration: this.duration, timing: this.timing }) .resetStyle(), animit(leavePage.element[0]) .queue({ css: { transform: 'translate3D(0px, 0px, 0px)' }, duration: 0 }) .queue({ css: { transform: 'translate3D(100%, 0px, 0px)' }, duration: this.duration, timing: this.timing }) .wait(0.2) .queue(function(finish) { done(); finish(); }) ); } }); return SimpleSlideTransitionAnimator; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict;'; var module = angular.module('onsen'); module.factory('SlideDialogAnimator', ['DialogAnimator', function(DialogAnimator) { /** * Slide animator for dialog. */ var SlideDialogAnimator = DialogAnimator.extend({ timing: 'cubic-bezier(.1, .7, .4, 1)', duration: 0.2, init: function(options) { options = options || {}; this.timing = options.timing || this.timing; this.duration = options.duration !== undefined ? options.duration : this.duration; }, /** * @param {Object} dialog * @param {Function} callback */ show: function(dialog, callback) { callback = callback ? callback : function() {}; animit.runAll( animit(dialog._mask[0]) .queue({ opacity: 0 }) .queue({ opacity: 1.0 }, { duration: this.duration, timing: this.timing }), animit(dialog._dialog[0]) .queue({ css: { transform: 'translate3D(-50%, -350%, 0)', }, duration: 0 }) .queue({ css: { transform: 'translate3D(-50%, -50%, 0)', }, duration: this.duration, timing: this.timing }) .resetStyle() .queue(function(done) { callback(); done(); }) ); }, /** * @param {Object} dialog * @param {Function} callback */ hide: function(dialog, callback) { callback = callback ? callback : function() {}; animit.runAll( animit(dialog._mask[0]) .queue({ opacity: 1.0 }) .queue({ opacity: 0 }, { duration: this.duration, timing: this.timing }), animit(dialog._dialog[0]) .queue({ css: { transform: 'translate3D(-50%, -50%, 0)' }, duration: 0 }) .queue({ css: { transform: 'translate3D(-50%, -350%, 0)' }, duration: this.duration, timing: this.timing }) .resetStyle() .queue(function(done) { callback(); done(); }) ); } }); return SlideDialogAnimator; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict'; var module = angular.module('onsen'); var SlidingMenuViewModel = Class.extend({ /** * @member Number */ _distance: 0, /** * @member Number */ _maxDistance: undefined, /** * @param {Object} options * @param {Number} maxDistance */ init: function(options) { if (!angular.isNumber(options.maxDistance)) { throw new Error('options.maxDistance must be number'); } this.setMaxDistance(options.maxDistance); }, /** * @param {Number} maxDistance */ setMaxDistance: function(maxDistance) { if (maxDistance <= 0) { throw new Error('maxDistance must be greater then zero.'); } if (this.isOpened()) { this._distance = maxDistance; } this._maxDistance = maxDistance; }, /** * @return {Boolean} */ shouldOpen: function() { return !this.isOpened() && this._distance >= this._maxDistance / 2; }, /** * @return {Boolean} */ shouldClose: function() { return !this.isClosed() && this._distance < this._maxDistance / 2; }, openOrClose: function(options) { if (this.shouldOpen()) { this.open(options); } else if (this.shouldClose()) { this.close(options); } }, close: function(options) { var callback = options.callback || function() {}; if (!this.isClosed()) { this._distance = 0; this.emit('close', options); } else { callback(); } }, open: function(options) { var callback = options.callback || function() {}; if (!this.isOpened()) { this._distance = this._maxDistance; this.emit('open', options); } else { callback(); } }, /** * @return {Boolean} */ isClosed: function() { return this._distance === 0; }, /** * @return {Boolean} */ isOpened: function() { return this._distance === this._maxDistance; }, /** * @return {Number} */ getX: function() { return this._distance; }, /** * @return {Number} */ getMaxDistance: function() { return this._maxDistance; }, /** * @param {Number} x */ translate: function(x) { this._distance = Math.max(1, Math.min(this._maxDistance - 1, x)); var options = { distance: this._distance, maxDistance: this._maxDistance }; this.emit('translate', options); }, toggle: function() { if (this.isClosed()) { this.open(); } else { this.close(); } } }); MicroEvent.mixin(SlidingMenuViewModel); module.factory('SlidingMenuView', ['$onsen', '$compile', 'SlidingMenuAnimator', 'RevealSlidingMenuAnimator', 'PushSlidingMenuAnimator', 'OverlaySlidingMenuAnimator', function($onsen, $compile, SlidingMenuAnimator, RevealSlidingMenuAnimator, PushSlidingMenuAnimator, OverlaySlidingMenuAnimator) { var SlidingMenuView = Class.extend({ _scope: undefined, _attrs: undefined, _element: undefined, _menuPage: undefined, _mainPage: undefined, _doorLock: undefined, _isRightMenu: false, init: function(scope, element, attrs) { this._scope = scope; this._attrs = attrs; this._element = element; this._menuPage = angular.element(element[0].querySelector('.onsen-sliding-menu__menu')); this._mainPage = angular.element(element[0].querySelector('.onsen-sliding-menu__main')); this._doorLock = new DoorLock(); this._isRightMenu = attrs.side === 'right'; // Close menu on tap event. this._mainPageHammer = new Hammer(this._mainPage[0]); this._bindedOnTap = this._onTap.bind(this); var maxDistance = this._normalizeMaxSlideDistanceAttr(); this._logic = new SlidingMenuViewModel({maxDistance: Math.max(maxDistance, 1)}); this._logic.on('translate', this._translate.bind(this)); this._logic.on('open', function(options) { this._open(options); }.bind(this)); this._logic.on('close', function(options) { this._close(options); }.bind(this)); attrs.$observe('maxSlideDistance', this._onMaxSlideDistanceChanged.bind(this)); attrs.$observe('swipeable', this._onSwipeableChanged.bind(this)); this._bindedOnWindowResize = this._onWindowResize.bind(this); window.addEventListener('resize', this._bindedOnWindowResize); this._boundHandleEvent = this._handleEvent.bind(this); this._bindEvents(); if (attrs.mainPage) { this.setMainPage(attrs.mainPage); } if (attrs.menuPage) { this.setMenuPage(attrs.menuPage); } this._deviceBackButtonHandler = $onsen.DeviceBackButtonHandler.create(this._element, this._onDeviceBackButton.bind(this)); var unlock = this._doorLock.lock(); window.setTimeout(function() { var maxDistance = this._normalizeMaxSlideDistanceAttr(); this._logic.setMaxDistance(maxDistance); this._menuPage.css({opacity: 1}); this._animator = this._getAnimatorOption(); this._animator.setup( this._element, this._mainPage, this._menuPage, { isRight: this._isRightMenu, width: this._attrs.maxSlideDistance || '90%' } ); unlock(); }.bind(this), 400); scope.$on('$destroy', this._destroy.bind(this)); }, getDeviceBackButtonHandler: function() { return this._deviceBackButtonHandler; }, _onDeviceBackButton: function(event) { if (this.isMenuOpened()) { this.closeMenu(); } else { event.callParentHandler(); } }, _onTap: function() { if (this.isMenuOpened()) { this.closeMenu(); } }, _refreshMenuPageWidth: function() { var width = ('maxSlideDistance' in this._attrs) ? this._attrs.maxSlideDistance : '90%'; if (this._animator) { this._animator.onResized({ isOpened: this._logic.isOpened(), width: width }); } }, _destroy: function() { this.emit('destroy'); this._deviceBackButtonHandler.destroy(); window.removeEventListener('resize', this._bindedOnWindowResize); this._mainPageHammer.off('tap', this._bindedOnTap); this._element = this._scope = this._attrs = null; }, _getAnimatorOption: function() { var animator = SlidingMenuView._animatorDict[this._attrs.type]; if (!(animator instanceof SlidingMenuAnimator)) { animator = SlidingMenuView._animatorDict['default']; } return animator.copy(); }, _onSwipeableChanged: function(swipeable) { swipeable = swipeable === '' || swipeable === undefined || swipeable == 'true'; this.setSwipeable(swipeable); }, /** * @param {Boolean} enabled */ setSwipeable: function(enabled) { if (enabled) { this._activateHammer(); } else { this._deactivateHammer(); } }, _onWindowResize: function() { this._recalculateMAX(); this._refreshMenuPageWidth(); }, _onMaxSlideDistanceChanged: function() { this._recalculateMAX(); this._refreshMenuPageWidth(); }, /** * @return {Number} */ _normalizeMaxSlideDistanceAttr: function() { var maxDistance = this._attrs.maxSlideDistance; if (!('maxSlideDistance' in this._attrs)) { maxDistance = 0.9 * this._mainPage[0].clientWidth; } else if (typeof maxDistance == 'string') { if (maxDistance.indexOf('px', maxDistance.length - 2) !== -1) { maxDistance = parseInt(maxDistance.replace('px', ''), 10); } else if (maxDistance.indexOf('%', maxDistance.length - 1) > 0) { maxDistance = maxDistance.replace('%', ''); maxDistance = parseFloat(maxDistance) / 100 * this._mainPage[0].clientWidth; } } else { throw new Error('invalid state'); } return maxDistance; }, _recalculateMAX: function() { var maxDistance = this._normalizeMaxSlideDistanceAttr(); if (maxDistance) { this._logic.setMaxDistance(parseInt(maxDistance, 10)); } }, _activateHammer: function(){ this._hammertime.on('touch dragleft dragright swipeleft swiperight release', this._boundHandleEvent); }, _deactivateHammer: function(){ this._hammertime.off('touch dragleft dragright swipeleft swiperight release', this._boundHandleEvent); }, _bindEvents: function() { this._hammertime = new Hammer(this._element[0], { dragMinDistance: 1 }); }, _appendMainPage: function(pageUrl, templateHTML) { var pageScope = this._scope.$new(); var pageContent = angular.element(templateHTML); var link = $compile(pageContent); this._mainPage.append(pageContent); if (this._currentPageElement) { this._currentPageElement.remove(); this._currentPageScope.$destroy(); } link(pageScope); this._currentPageElement = pageContent; this._currentPageScope = pageScope; this._currentPageUrl = pageUrl; }, /** * @param {String} */ _appendMenuPage: function(templateHTML) { var pageScope = this._scope.$new(); var pageContent = angular.element(templateHTML); var link = $compile(pageContent); this._menuPage.append(pageContent); if (this._currentMenuPageScope) { this._currentMenuPageScope.$destroy(); this._currentMenuPageElement.remove(); } link(pageScope); this._currentMenuPageElement = pageContent; this._currentMenuPageScope = pageScope; }, /** * @param {String} page * @param {Object} options * @param {Boolean} [options.closeMenu] * @param {Boolean} [options.callback] */ setMenuPage: function(page, options) { if (page) { options = options || {}; options.callback = options.callback || function() {}; var self = this; $onsen.getPageHTMLAsync(page).then(function(html) { self._appendMenuPage(angular.element(html)); if (options.closeMenu) { self.close(); } options.callback(); }, function() { throw new Error('Page is not found: ' + page); }); } else { throw new Error('cannot set undefined page'); } }, /** * @param {String} pageUrl * @param {Object} options * @param {Boolean} [options.closeMenu] * @param {Boolean} [options.callback] */ setMainPage: function(pageUrl, options) { options = options || {}; options.callback = options.callback || function() {}; var done = function() { if (options.closeMenu) { this.close(); } options.callback(); }.bind(this); if (this.currentPageUrl === pageUrl) { done(); return; } if (pageUrl) { var self = this; $onsen.getPageHTMLAsync(pageUrl).then(function(html) { self._appendMainPage(pageUrl, html); done(); }, function() { throw new Error('Page is not found: ' + page); }); } else { throw new Error('cannot set undefined page'); } }, _handleEvent: function(event) { if (this._doorLock.isLocked()) { return; } if (this._isInsideIgnoredElement(event.target)){ event.gesture.stopDetect(); } switch (event.type) { case 'dragleft': case 'dragright': if (this._logic.isClosed() && !this._isInsideSwipeTargetArea(event)) { return; } event.gesture.preventDefault(); var deltaX = event.gesture.deltaX; var deltaDistance = this._isRightMenu ? -deltaX : deltaX; var startEvent = event.gesture.startEvent; if (!('isOpened' in startEvent)) { startEvent.isOpened = this._logic.isOpened(); } if (deltaDistance < 0 && this._logic.isClosed()) { break; } if (deltaDistance > 0 && this._logic.isOpened()) { break; } var distance = startEvent.isOpened ? deltaDistance + this._logic.getMaxDistance() : deltaDistance; this._logic.translate(distance); break; case 'swipeleft': event.gesture.preventDefault(); if (this._isRightMenu) { this.open(); } else { this.close(); } event.gesture.stopDetect(); break; case 'swiperight': event.gesture.preventDefault(); if (this._isRightMenu) { this.close(); } else { this.open(); } event.gesture.stopDetect(); break; case 'release': this._lastDistance = null; if (this._logic.shouldOpen()) { this.open(); } else if (this._logic.shouldClose()) { this.close(); } break; } }, /** * @param {jqLite} element * @return {Boolean} */ _isInsideIgnoredElement: function(element) { do { if (element.getAttribute && element.getAttribute('sliding-menu-ignore')) { return true; } element = element.parentNode; } while (element); return false; }, _isInsideSwipeTargetArea: function(event) { var x = event.gesture.center.pageX; if (!('_swipeTargetWidth' in event.gesture.startEvent)) { event.gesture.startEvent._swipeTargetWidth = this._getSwipeTargetWidth(); } var targetWidth = event.gesture.startEvent._swipeTargetWidth; return this._isRightMenu ? this._mainPage[0].clientWidth - x < targetWidth : x < targetWidth; }, _getSwipeTargetWidth: function() { var targetWidth = this._attrs.swipeTargetWidth; if (typeof targetWidth == 'string') { targetWidth = targetWidth.replace('px', ''); } var width = parseInt(targetWidth, 10); if (width < 0 || !targetWidth) { return this._mainPage[0].clientWidth; } else { return width; } }, closeMenu: function() { return this.close.apply(this, arguments); }, /** * Close sliding-menu page. * * @param {Object} options */ close: function(options) { options = options || {}; options = typeof options == 'function' ? {callback: options} : options; if (!this._logic.isClosed()) { this.emit('preclose', { slidingMenu: this }); this._doorLock.waitUnlock(function() { this._logic.close(options); }.bind(this)); } }, _close: function(options) { var callback = options.callback || function() {}, unlock = this._doorLock.lock(), instant = options.animation == 'none'; this._animator.closeMenu(function() { unlock(); this._mainPage.children().css('pointer-events', ''); this._mainPageHammer.off('tap', this._bindedOnTap); this.emit('postclose', { slidingMenu: this }); callback(); }.bind(this), instant); }, /** * Open sliding-menu page. * * @param {Object} [options] * @param {Function} [options.callback] */ openMenu: function() { return this.open.apply(this, arguments); }, /** * Open sliding-menu page. * * @param {Object} [options] * @param {Function} [options.callback] */ open: function(options) { options = options || {}; options = typeof options == 'function' ? {callback: options} : options; this.emit('preopen', { slidingMenu: this }); this._doorLock.waitUnlock(function() { this._logic.open(options); }.bind(this)); }, _open: function(options) { var callback = options.callback || function() {}, unlock = this._doorLock.lock(), instant = options.animation == 'none'; this._animator.openMenu(function() { unlock(); this._mainPage.children().css('pointer-events', 'none'); this._mainPageHammer.on('tap', this._bindedOnTap); this.emit('postopen', { slidingMenu: this }); callback(); }.bind(this), instant); }, /** * Toggle sliding-menu page. * @param {Object} [options] * @param {Function} [options.callback] */ toggle: function(options) { if (this._logic.isClosed()) { this.open(options); } else { this.close(options); } }, /** * Toggle sliding-menu page. */ toggleMenu: function() { return this.toggle.apply(this, arguments); }, /** * @return {Boolean} */ isMenuOpened: function() { return this._logic.isOpened(); }, /** * @param {Object} event */ _translate: function(event) { this._animator.translateMenu(event); } }); // Preset sliding menu animators. SlidingMenuView._animatorDict = { 'default': new RevealSlidingMenuAnimator(), 'overlay': new OverlaySlidingMenuAnimator(), 'reveal': new RevealSlidingMenuAnimator(), 'push': new PushSlidingMenuAnimator() }; /** * @param {String} name * @param {NavigatorTransitionAnimator} animator */ SlidingMenuView.registerSlidingMenuAnimator = function(name, animator) { if (!(animator instanceof SlidingMenuAnimator)) { throw new Error('"animator" param must be an instance of SlidingMenuAnimator'); } this._animatorDict[name] = animator; }; MicroEvent.mixin(SlidingMenuView); return SlidingMenuView; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict'; var module = angular.module('onsen'); module.factory('SlidingMenuAnimator', function() { return Class.extend({ /** * @param {jqLite} element "ons-sliding-menu" or "ons-split-view" element * @param {jqLite} mainPage * @param {jqLite} menuPage * @param {Object} options * @param {String} options.width "width" style value * @param {Boolean} options.isRight */ setup: function(element, mainPage, menuPage, options) { }, /** * @param {Object} options * @param {Boolean} options.isRight * @param {Boolean} options.isOpened * @param {String} options.width */ onResized: function(options) { }, /** * @param {Function} callback */ openMenu: function(callback) { }, /** * @param {Function} callback */ closeClose: function(callback) { }, /** */ destroy: function() { }, /** * @param {Object} options * @param {Number} options.distance * @param {Number} options.maxDistance */ translateMenu: function(mainPage, menuPage, options) { }, /** * @return {SlidingMenuAnimator} */ copy: function() { throw new Error('Override copy method.'); } }); }); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict'; var module = angular.module('onsen'); module.factory('SplitView', ['$compile', 'RevealSlidingMenuAnimator', '$onsen', '$onsGlobal', function($compile, RevealSlidingMenuAnimator, $onsen, $onsGlobal) { var SPLIT_MODE = 0; var COLLAPSE_MODE = 1; var MAIN_PAGE_RATIO = 0.9; var ON_PAGE_READY = 'onPageReady'; var SplitView = Class.extend({ init: function(scope, element, attrs) { element.addClass('onsen-sliding-menu'); this._element = element; this._scope = scope; this._attrs = attrs; this._mainPage = angular.element(element[0].querySelector('.onsen-split-view__main')); this._secondaryPage = angular.element(element[0].querySelector('.onsen-split-view__secondary')); this._max = this._mainPage[0].clientWidth * MAIN_PAGE_RATIO; this._mode = SPLIT_MODE; this._doorLock = new DoorLock(); this._doSplit = false; this._doCollapse = false; $onsGlobal.orientation.on('change', this._onResize.bind(this)); this._animator = new RevealSlidingMenuAnimator(); this._element.css('display', 'none'); if (attrs.mainPage) { this.setMainPage(attrs.mainPage); } if (attrs.secondaryPage) { this.setSecondaryPage(attrs.secondaryPage); } var unlock = this._doorLock.lock(); this._considerChangingCollapse(); this._setSize(); setTimeout(function() { this._element.css('display', 'block'); unlock(); }.bind(this), 1000 / 60 * 2); scope.$on('$destroy', this._destroy.bind(this)); }, /** * @param {String} templateHTML */ _appendSecondPage: function(templateHTML) { var pageScope = this._scope.$new(); var pageContent = $compile(templateHTML)(pageScope); this._secondaryPage.append(pageContent); if (this._currentSecondaryPageElement) { this._currentSecondaryPageElement.remove(); this._currentSecondaryPageScope.$destroy(); } this._currentSecondaryPageElement = pageContent; this._currentSecondaryPageScope = pageScope; }, /** * @param {String} templateHTML */ _appendMainPage: function(templateHTML) { var pageScope = this._scope.$new(); var pageContent = $compile(templateHTML)(pageScope); this._mainPage.append(pageContent); if (this._currentPage) { this._currentPage.remove(); this._currentPageScope.$destroy(); } this._currentPage = pageContent; this._currentPageScope = pageScope; }, /** * @param {String} page */ setSecondaryPage : function(page) { if (page) { $onsen.getPageHTMLAsync(page).then(function(html) { this._appendSecondPage(angular.element(html.trim())); }.bind(this), function() { throw new Error('Page is not found: ' + page); }); } else { throw new Error('cannot set undefined page'); } }, /** * @param {String} page */ setMainPage : function(page) { if (page) { $onsen.getPageHTMLAsync(page).then(function(html) { this._appendMainPage(angular.element(html.trim())); }.bind(this), function() { throw new Error('Page is not found: ' + page); }); } else { throw new Error('cannot set undefined page'); } }, _onResize: function() { var lastMode = this._mode; this._considerChangingCollapse(); if (lastMode === COLLAPSE_MODE && this._mode === COLLAPSE_MODE) { this._animator.onResized({ isOpened: false, width: '90%' }); } this._max = this._mainPage[0].clientWidth * MAIN_PAGE_RATIO; }, _considerChangingCollapse: function() { var should = this._shouldCollapse(); if (should && this._mode !== COLLAPSE_MODE) { this._fireUpdateEvent(); if (this._doSplit) { this._activateSplitMode(); } else { this._activateCollapseMode(); } } else if (!should && this._mode === COLLAPSE_MODE) { this._fireUpdateEvent(); if (this._doCollapse) { this._activateCollapseMode(); } else { this._activateSplitMode(); } } this._doCollapse = this._doSplit = false; }, update: function() { this._fireUpdateEvent(); var should = this._shouldCollapse(); if (this._doSplit) { this._activateSplitMode(); } else if (this._doCollapse) { this._activateCollapseMode(); } else if (should) { this._activateCollapseMode(); } else if (!should) { this._activateSplitMode(); } this._doSplit = this._doCollapse = false; }, _getOrientation: function() { if ($onsGlobal.orientation.isPortrait()) { return 'portrait'; } else { return 'landscape'; } }, getCurrentMode: function() { if (this._mode === COLLAPSE_MODE) { return 'collapse'; } else { return 'split'; } }, _shouldCollapse: function() { var c = 'portrait'; if (typeof this._attrs.collapse === 'string') { c = this._attrs.collapse.trim(); } if (c == 'portrait') { return $onsGlobal.orientation.isPortrait(); } else if (c == 'landscape') { return $onsGlobal.orientation.isLandscape(); } else if (c.substr(0,5) == 'width') { var num = c.split(' ')[1]; if (num.indexOf('px') >= 0) { num = num.substr(0,num.length-2); } var width = window.innerWidth; return isNumber(num) && width < num; } else { var mq = window.matchMedia(c); return mq.matches; } }, _setSize: function() { if (this._mode === SPLIT_MODE) { if (!this._attrs.mainPageWidth) { this._attrs.mainPageWidth = '70'; } var secondarySize = 100 - this._attrs.mainPageWidth.replace('%', ''); this._secondaryPage.css({ width: secondarySize + '%', opacity: 1 }); this._mainPage.css({ width: this._attrs.mainPageWidth + '%' }); this._mainPage.css('left', secondarySize + '%'); } }, _fireEvent: function(name) { this.emit(name, { splitView: this, width: window.innerWidth, orientation: this._getOrientation() }); }, _fireUpdateEvent: function() { var that = this; this.emit('update', { splitView: this, shouldCollapse: this._shouldCollapse(), currentMode: this.getCurrentMode(), split: function() { that._doSplit = true; that._doCollapse = false; }, collapse: function() { that._doSplit = false; that._doCollapse = true; }, width: window.innerWidth, orientation: this._getOrientation() }); }, _activateCollapseMode: function() { if (this._mode !== COLLAPSE_MODE) { this._fireEvent('precollapse'); this._secondaryPage.attr('style', ''); this._mainPage.attr('style', ''); this._mode = COLLAPSE_MODE; this._animator.setup( this._element, this._mainPage, this._secondaryPage, {isRight: false, width: '90%'} ); this._fireEvent('postcollapse'); } }, _activateSplitMode: function() { if (this._mode !== SPLIT_MODE) { this._fireEvent('presplit'); this._animator.destroy(); this._secondaryPage.attr('style', ''); this._mainPage.attr('style', ''); this._mode = SPLIT_MODE; this._setSize(); this._fireEvent('postsplit'); } }, _destroy: function() { this.emit('destroy'); this._element = null; this._scope = null; } }); function isNumber(n) { return !isNaN(parseFloat(n)) && isFinite(n); } MicroEvent.mixin(SplitView); return SplitView; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function(){ 'use strict'; var module = angular.module('onsen'); module.factory('SwitchView', ['$onsen', function($onsen) { var SwitchView = Class.extend({ /** * @param {jqLite} element * @param {Object} scope * @param {Object} attrs */ init: function(element, scope, attrs) { this._element = element; this._checkbox = angular.element(element[0].querySelector('input[type=checkbox]')); this._scope = scope; attrs.$observe('disabled', function(disabled) { if (!!element.attr('disabled')) { this._checkbox.attr('disabled', 'disabled'); } else { this._checkbox.removeAttr('disabled'); } }.bind(this)); this._checkbox.on('change', function(event) { this.emit('change', {'switch': this, value: this._checkbox[0].checked, isInteractive: true}); }.bind(this)); }, /** * @return {Boolean} */ isChecked: function() { return this._checkbox[0].checked; }, /** * @param {Boolean} */ setChecked: function(isChecked) { isChecked = !!isChecked; if (this._checkbox[0].checked != isChecked) { this._scope.model = isChecked; this._checkbox[0].checked = isChecked; this._scope.$evalAsync(); this.emit('change', {'switch': this, value: isChecked, isInteractive: false}); } }, /** * @return {HTMLElement} */ getCheckboxElement: function() { return this._checkbox[0]; } }); MicroEvent.mixin(SwitchView); return SwitchView; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function() { 'use strict;'; var module = angular.module('onsen'); module.factory('TabbarAnimator', function() { var TabbarAnimator = Class.extend({ /** * @param {jqLite} enterPage * @param {jqLite} leavePage */ apply: function(enterPage, leavePage, done) { throw new Error('This method must be implemented.'); } }); return TabbarAnimator; }); module.factory('TabbarNoneAnimator', ['TabbarAnimator', function(TabbarAnimator) { var TabbarNoneAnimator = TabbarAnimator.extend({ /** * @param {jqLite} enterPage * @param {jqLite} leavePage */ apply: function(enterPage, leavePage, done) { done(); } }); return TabbarNoneAnimator; }]); module.factory('TabbarFadeAnimator', ['TabbarAnimator', function(TabbarAnimator) { var TabbarFadeAnimator = TabbarAnimator.extend({ /** * @param {jqLite} enterPage * @param {jqLite} leavePage */ apply: function(enterPage, leavePage, done) { animit.runAll( animit(enterPage[0]) .queue({ transform: 'translate3D(0, 0, 0)', opacity: 0 }) .queue({ transform: 'translate3D(0, 0, 0)', opacity: 1 }, { duration: 0.4, timing: 'linear' }) .resetStyle() .queue(function(callback) { done(); callback(); }), animit(leavePage[0]) .queue({ transform: 'translate3D(0, 0, 0)', opacity: 1 }) .queue({ transform: 'translate3D(0, 0, 0)', opacity: 0 }, { duration: 0.4, timing: 'linear' }) ); } }); return TabbarFadeAnimator; }]); module.factory('TabbarView', ['$onsen', '$compile', 'TabbarAnimator', 'TabbarNoneAnimator', 'TabbarFadeAnimator', function($onsen, $compile, TabbarAnimator, TabbarNoneAnimator, TabbarFadeAnimator) { var TabbarView = Class.extend({ _tabbarId: undefined, _tabItems: undefined, init: function(scope, element, attrs) { this._scope = scope; this._element = element; this._attrs = attrs; this._tabbarId = Date.now(); this._tabItems = []; this._contentElement = angular.element(element[0].querySelector('.ons-tab-bar__content')); this._tabbarElement = angular.element(element[0].querySelector('.ons-tab-bar__footer')); this._scope.$on('$destroy', this._destroy.bind(this)); if (this._hasTopTabbar()) { this._prepareForTopTabbar(); } }, _prepareForTopTabbar: function() { this._contentElement.attr('no-status-bar-fill', ''); setImmediate(function() { this._contentElement.addClass('tab-bar--top__content'); this._tabbarElement.addClass('tab-bar--top'); }.bind(this)); var page = ons.findParentComponentUntil('ons-page', this._element[0]); if (page) { this._element.css('top', window.getComputedStyle(page.getContentElement(), null).getPropertyValue('padding-top')); } if ($onsen.shouldFillStatusBar(this._element[0])) { // Adjustments for IOS7 var fill = angular.element(document.createElement('div')); fill.addClass('tab-bar__status-bar-fill'); fill.css({width: '0px', height: '0px'}); this._element.prepend(fill); } }, _hasTopTabbar: function() { return this._attrs.position === 'top'; }, /** * @param {Number} index * @param {Object} [options] * @param {Boolean} [options.keepPage] * @param {String} [options.animation] * @return {Boolean} success or not */ setActiveTab: function(index, options) { options = options || {}; var previousTabItem = this._tabItems[this.getActiveTabIndex()]; var selectedTabItem = this._tabItems[index]; if((typeof selectedTabItem.noReload !== 'undefined' || typeof selectedTabItem.isPersistent()) && index === this.getActiveTabIndex()) { this.emit('reactive', { index: index, tabItem: selectedTabItem, }); return false; } var needLoad = selectedTabItem.page && !options.keepPage; if (!selectedTabItem) { return false; } var canceled = false; this.emit('prechange', { index: index, tabItem: selectedTabItem, cancel: function() { canceled = true; } }); if (canceled) { selectedTabItem.setInactive(); if (previousTabItem) { previousTabItem.setActive(); } return false; } selectedTabItem.setActive(); if (needLoad) { var removeElement = true; if (previousTabItem && previousTabItem.isPersistent()) { removeElement = false; previousTabItem._pageElement = this._currentPageElement; } var params = { callback: function() { this.emit('postchange', {index: index, tabItem: selectedTabItem}); }.bind(this), _removeElement: removeElement }; if (options.animation) { params.animation = options.animation; } if (selectedTabItem.isPersistent() && selectedTabItem._pageElement) { this._loadPersistentPageDOM(selectedTabItem._pageElement, params); } else { this._loadPage(selectedTabItem.page, params); } } for (var i = 0; i < this._tabItems.length; i++) { if (this._tabItems[i] != selectedTabItem) { this._tabItems[i].setInactive(); } else { if (!needLoad) { this.emit('postchange', {index: index, tabItem: selectedTabItem}); } } } return true; }, /** * @param {Boolean} visible */ setTabbarVisibility: function(visible) { this._scope.hideTabs = !visible; this._onTabbarVisibilityChanged(); }, _onTabbarVisibilityChanged: function() { if (this._hasTopTabbar()) { if (this._scope.hideTabs) { this._contentElement.css('top', '0px'); } else { this._contentElement.css('top', ''); } } else { if (this._scope.hideTabs) { this._contentElement.css('bottom', '0px'); } else { this._contentElement.css('bottom', ''); } } }, /** * @param {Object} tabItem */ addTabItem: function(tabItem) { this._tabItems.push(tabItem); }, /** * @return {Number} When active tab is not found, returns -1. */ getActiveTabIndex: function() { var tabItem; for (var i = 0; i < this._tabItems.length; i++) { tabItem = this._tabItems[i]; if (tabItem.isActive()) { return i; } } return -1; }, /** * @param {String} page * @param {Object} [options] * @param {Object} [options.animation] * @param {Object} [options.callback] */ loadPage: function(page, options) { return this._loadPage(page, options); }, /** * @param {String} page * @param {Object} [options] * @param {Object} [options.animation] */ _loadPage: function(page, options) { $onsen.getPageHTMLAsync(page).then(function(html) { var pageElement = angular.element(html.trim()); this._loadPageDOM(pageElement, options); }.bind(this), function() { throw new Error('Page is not found: ' + page); }); }, /** * @param {jqLite} element * @param {Object} scope * @param {Object} options * @param {Object} options.animation */ _switchPage: function(element, scope, options) { if (this._currentPageElement) { var oldPageElement = this._currentPageElement; var oldPageScope = this._currentPageScope; this._currentPageElement = element; this._currentPageScope = scope; this._getAnimatorOption(options).apply(element, oldPageElement, function() { if (options._removeElement) { oldPageElement.remove(); oldPageScope.$destroy(); } else { oldPageElement.css('display', 'none'); } if (options.callback instanceof Function) { options.callback(); } }); } else { this._currentPageElement = element; this._currentPageScope = scope; if (options.callback instanceof Function) { options.callback(); } } }, /** * @param {jqLite} element * @param {Object} options * @param {Object} options.animation */ _loadPageDOM: function(element, options) { options = options || {}; var pageScope = this._scope.$new(); var link = $compile(element); this._contentElement.append(element); var pageContent = link(pageScope); pageScope.$evalAsync(); this._switchPage(pageContent, pageScope, options); }, /** * @param {jqLite} element * @param {Object} options * @param {Object} options.animation */ _loadPersistentPageDOM: function(element, options) { options = options || {}; element.css('display', 'block'); this._switchPage(element, element.scope(), options); }, /** * @param {Object} options * @param {String} [options.animation] * @return {TabbarAnimator} */ _getAnimatorOption: function(options) { var animationAttr = this._element.attr('animation') || 'default'; return TabbarView._animatorDict[options.animation || animationAttr] || TabbarView._animatorDict['default']; }, _destroy: function() { this.emit('destroy'); this._element = this._scope = this._attrs = null; } }); MicroEvent.mixin(TabbarView); // Preset transition animators. TabbarView._animatorDict = { 'default': new TabbarNoneAnimator(), 'none': new TabbarNoneAnimator(), 'fade': new TabbarFadeAnimator() }; /** * @param {String} name * @param {NavigatorTransitionAnimator} animator */ TabbarView.registerAnimator = function(name, animator) { if (!(animator instanceof TabbarAnimator)) { throw new Error('"animator" param must be an instance of TabbarAnimator'); } this._animatorDict[name] = animator; }; return TabbarView; }]); })(); /** * @ngdoc directive * @id alert-dialog * @name ons-alert-dialog * @category dialog * @modifier android * [en]Display an Android style alert dialog.[/en] * [ja]Androidライクなスタイルを表示します。[/ja] * @description * [en]Alert dialog that is displayed on top of the current screen.[/en] * [ja]現在のスクリーンにアラートダイアログを表示します。[/ja] * @codepen Qwwxyp * @guide UsingAlert * [en]Learn how to use the alert dialog.[/en] * [ja]アラートダイアログの使い方の解説。[/ja] * @seealso ons-dialog * [en]ons-dialog component[/en] * [ja]ons-dialogコンポーネント[/ja] * @seealso ons-popover * [en]ons-popover component[/en] * [ja]ons-dialogコンポーネント[/ja] * @seealso ons.notification * [en]Using ons.notification utility functions.[/en] * [ja]アラートダイアログを表示するには、ons.notificationオブジェクトのメソッドを使うこともできます。[/ja] * @example * <script> * ons.ready(function() { * ons.createAlertDialog('alert.html').then(function(alertDialog) { * alertDialog.show(); * }); * }); * </script> * * <script type="text/ons-template" id="alert.html"> * <ons-alert-dialog animation="default" cancelable> * <div class="alert-dialog-title">Warning!</div> * <div class="alert-dialog-content"> * An error has occurred! * </div> * <div class="alert-dialog-footer"> * <button class="alert-dialog-button">OK</button> * </div> * </ons-alert-dialog> * </script> */ /** * @ngdoc event * @name preshow * @description * [en]Fired just before the alert dialog is displayed.[/en] * [ja]アラートダイアログが表示される直前に発火します。[/ja] * @param {Object} event [en]Event object.[/en] * @param {Object} event.alertDialog * [en]Alert dialog object.[/en] * [ja]アラートダイアログのオブジェクト。[/ja] * @param {Function} event.cancel * [en]Execute to stop the dialog from showing.[/en] * [ja]この関数を実行すると、アラートダイアログの表示を止めます。[/ja] */ /** * @ngdoc event * @name postshow * @description * [en]Fired just after the alert dialog is displayed.[/en] * [ja]アラートダイアログが表示された直後に発火します。[/ja] * @param {Object} event [en]Event object.[/en] * @param {Object} event.alertDialog * [en]Alert dialog object.[/en] * [ja]アラートダイアログのオブジェクト。[/ja] */ /** * @ngdoc event * @name prehide * @description * [en]Fired just before the alert dialog is hidden.[/en] * [ja]アラートダイアログが隠れる直前に発火します。[/ja] * @param {Object} event [en]Event object.[/en] * @param {Object} event.alertDialog * [en]Alert dialog object.[/en] * [ja]アラートダイアログのオブジェクト。[/ja] * @param {Function} event.cancel * [en]Execute to stop the dialog from hiding.[/en] * [ja]この関数を実行すると、アラートダイアログが閉じようとするのを止めます。[/ja] */ /** * @ngdoc event * @name posthide * @description * [en]Fired just after the alert dialog is hidden.[/en] * [ja]アラートダイアログが隠れた後に発火します。[/ja] * @param {Object} event [en]Event object.[/en] * @param {Object} event.alertDialog * [en]Alert dialog object.[/en] * [ja]アラートダイアログのオブジェクト。[/ja] */ /** * @ngdoc attribute * @name var * @type {String} * @description * [en]Variable name to refer this alert dialog.[/en] * [ja]このアラートダイアログを参照するための名前を指定します。[/ja] */ /** * @ngdoc attribute * @name modifier * @type {String} * @description * [en]The appearance of the dialog.[/en] * [ja]ダイアログの見た目を指定します。[/ja] */ /** * @ngdoc attribute * @name cancelable * @description * [en]If this attribute is set the dialog can be closed by tapping the background or by pressing the back button.[/en] * [ja]この属性があると、ダイアログが表示された時に、背景やバックボタンをタップした時にダイアログを閉じます。[/ja] */ /** * @ngdoc attribute * @name disabled * @description * [en]If this attribute is set the dialog is disabled.[/en] * [ja]この属性がある時、アラートダイアログはdisabled状態になります。[/ja] */ /** * @ngdoc attribute * @name animation * @type {String} * @default default * @description * [en]The animation used when showing and hiding the dialog. Can be either "none" or "default".[/en] * [ja]ダイアログを表示する際のアニメーション名を指定します。デフォルトでは"none"か"default"が指定できます。[/ja] */ /** * @ngdoc attribute * @name mask-color * @type {String} * @default rgba(0, 0, 0, 0.2) * @description * [en]Color of the background mask. Default is "rgba(0, 0, 0, 0.2)".[/en] * [ja]背景のマスクの色を指定します。"rgba(0, 0, 0, 0.2)"がデフォルト値です。[/ja] */ /** * @ngdoc attribute * @name ons-preshow * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "preshow" event is fired.[/en] * [ja]"preshow"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-prehide * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "prehide" event is fired.[/en] * [ja]"prehide"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-postshow * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "postshow" event is fired.[/en] * [ja]"postshow"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-posthide * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "posthide" event is fired.[/en] * [ja]"posthide"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-destroy * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en] * [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc method * @signature show([options]) * @param {Object} [options] * [en]Parameter object.[/en] * [ja]オプションを指定するオブジェクトです。[/ja] * @param {String} [options.animation] * [en]Animation name. Available animations are "fade", "slide" and "none".[/en] * [ja]アニメーション名を指定します。指定できるのは、"fade", "slide", "none"のいずれかです。[/ja] * @param {Function} [options.callback] * [en]Function to execute after the dialog has been revealed.[/en] * [ja]ダイアログが表示され終わった時に呼び出されるコールバックを指定します。[/ja] * @description * [en]Show the alert dialog.[/en] * [ja]ダイアログを表示します。[/ja] */ /** * @ngdoc method * @signature hide([options]) * @param {Object} [options] * [en]Parameter object.[/en] * [ja]オプションを指定するオブジェクト。[/ja] * @param {String} [options.animation] * [en]Animation name. Available animations are "fade", "slide" and "none".[/en] * [ja]アニメーション名を指定します。"fade", "slide", "none"のいずれかを指定します。[/ja] * @param {Function} [options.callback] * [en]Function to execute after the dialog has been hidden.[/en] * [ja]このダイアログが閉じた時に呼び出されるコールバックを指定します。[/ja] * @description * [en]Hide the alert dialog.[/en] * [ja]ダイアログを閉じます。[/ja] */ /** * @ngdoc method * @signature isShown() * @description * [en]Returns whether the dialog is visible or not.[/en] * [ja]ダイアログが表示されているかどうかを返します。[/ja] * @return {Boolean} * [en]true if the dialog is currently visible.[/en] * [ja]ダイアログが表示されていればtrueを返します。[/ja] */ /** * @ngdoc method * @signature destroy() * @description * [en]Destroy the alert dialog and remove it from the DOM tree.[/en] * [ja]ダイアログを破棄して、DOMツリーから取り除きます。[/ja] */ /** * @ngdoc method * @signature setCancelable(cancelable) * @description * [en]Define whether the dialog can be canceled by the user or not.[/en] * [ja]アラートダイアログを表示した際に、ユーザがそのダイアログをキャンセルできるかどうかを指定します。[/ja] * @param {Boolean} cancelable * [en]If true the dialog will be cancelable.[/en] * [ja]キャンセルできるかどうかを真偽値で指定します。[/ja] */ /** * @ngdoc method * @signature isCancelable() * @description * [en]Returns whether the dialog is cancelable or not.[/en] * [ja]このアラートダイアログがキャンセル可能かどうかを返します。[/ja] * @return {Boolean} * [en]true if the dialog is cancelable.[/en] * [ja]キャンセル可能であればtrueを返します。[/ja] */ /** * @ngdoc method * @signature setDisabled(disabled) * @description * [en]Disable or enable the alert dialog.[/en] * [ja]このアラートダイアログをdisabled状態にするかどうかを設定します。[/ja] * @param {Boolean} disabled * [en]If true the dialog will be disabled.[/en] * [ja]disabled状態にするかどうかを真偽値で指定します。[/ja] */ /** * @ngdoc method * @signature isDisabled() * @description * [en]Returns whether the dialog is disabled or enabled.[/en] * [ja]このアラートダイアログがdisabled状態かどうかを返します。[/ja] * @return {Boolean} * [en]true if the dialog is disabled.[/en] * [ja]disabled状態であればtrueを返します。[/ja] */ /** * @ngdoc method * @signature on(eventName, listener) * @description * [en]Add an event listener.[/en] * [ja]イベントリスナーを追加します。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]イベントが発火された際に呼び出されるコールバックを指定します。[/ja] */ /** * @ngdoc method * @signature once(eventName, listener) * @description * [en]Add an event listener that's only triggered once.[/en] * [ja]一度だけ呼び出されるイベントリスナーを追加します。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]イベントが発火した際に呼び出されるコールバックを指定します。[/ja] */ /** * @ngdoc method * @signature off(eventName, [listener]) * @description * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en] * [ja]イベントリスナーを削除します。もしlistenerパラメータが指定されなかった場合、そのイベントのリスナーが全て削除されます。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]削除するイベントリスナーの関数オブジェクトを渡します。[/ja] */ (function() { 'use strict'; var module = angular.module('onsen'); /** * Alert dialog directive. */ module.directive('onsAlertDialog', ['$onsen', 'AlertDialogView', function($onsen, AlertDialogView) { return { restrict: 'E', replace: false, scope: true, transclude: false, compile: function(element, attrs) { var modifierTemplater = $onsen.generateModifierTemplater(attrs); element.addClass('alert-dialog ' + modifierTemplater('alert-dialog--*')); var titleElement = angular.element(element[0].querySelector('.alert-dialog-title')), contentElement = angular.element(element[0].querySelector('.alert-dialog-content')); if (titleElement.length) { titleElement.addClass(modifierTemplater('alert-dialog-title--*')); } if (contentElement.length) { contentElement.addClass(modifierTemplater('alert-dialog-content--*')); } return { pre: function(scope, element, attrs) { var alertDialog = new AlertDialogView(scope, element, attrs); $onsen.declareVarAttribute(attrs, alertDialog); $onsen.registerEventHandlers(alertDialog, 'preshow prehide postshow posthide destroy'); $onsen.addModifierMethods(alertDialog, 'alert-dialog--*', element); if (titleElement.length) { $onsen.addModifierMethods(alertDialog, 'alert-dialog-title--*', titleElement); } if (contentElement.length) { $onsen.addModifierMethods(alertDialog, 'alert-dialog-content--*', contentElement); } if ($onsen.isAndroid()) { alertDialog.addModifier('android'); } element.data('ons-alert-dialog', alertDialog); scope.$on('$destroy', function() { alertDialog._events = undefined; $onsen.removeModifierMethods(alertDialog); element.data('ons-alert-dialog', undefined); element = null; }); }, post: function(scope, element) { $onsen.fireComponentEvent(element[0], 'init'); } }; } }; }]); })(); /** * @ngdoc directive * @id back_button * @name ons-back-button * @category toolbar * @description * [en]Back button component for ons-toolbar. Can be used with ons-navigator to provide back button support.[/en] * [ja]ons-toolbarに配置できる「戻るボタン」用コンポーネントです。ons-navigatorと共に使用し、ページを1つ前に戻る動作を行います。[/ja] * @codepen aHmGL * @seealso ons-toolbar * [en]ons-toolbar component[/en] * [ja]ons-toolbarコンポーネント[/ja] * @seealso ons-navigator * [en]ons-navigator component[/en] * [ja]ons-navigatorコンポーネント[/en] * @guide Addingatoolbar * [en]Adding a toolbar[/en] * [ja]ツールバーの追加[/ja] * @guide Returningfromapage * [en]Returning from a page[/en] * [ja]一つ前のページに戻る[/ja] * @example * <ons-back-button> * Back * </ons-back-button> */ (function(){ 'use strict'; var module = angular.module('onsen'); module.directive('onsBackButton', ['$onsen', '$compile', 'GenericView', 'ComponentCleaner', function($onsen, $compile, GenericView, ComponentCleaner) { return { restrict: 'E', replace: false, templateUrl: $onsen.DIRECTIVE_TEMPLATE_URL + '/back_button.tpl', // NOTE: This element must coexists with ng-controller. // Do not use isolated scope and template's ng-transclude. transclude: true, scope: true, link: { pre: function(scope, element, attrs, controller, transclude) { var backButton = new GenericView(scope, element, attrs); $onsen.declareVarAttribute(attrs, backButton); element.data('ons-back-button', backButton); scope.$on('$destroy', function() { backButton._events = undefined; $onsen.removeModifierMethods(backButton); element.data('ons-back-button', undefined); element = null; }); scope.modifierTemplater = $onsen.generateModifierTemplater(attrs); var navigator = ons.findParentComponentUntil('ons-navigator', element); scope.$watch(function() { return navigator.pages.length; }, function(nbrOfPages) { scope.showBackButton = nbrOfPages > 1; }); $onsen.addModifierMethods(backButton, 'toolbar-button--*', element.children()); transclude(scope, function(clonedElement) { if (clonedElement[0]) { element[0].querySelector('.back-button__label').appendChild(clonedElement[0]); } }); ComponentCleaner.onDestroy(scope, function() { ComponentCleaner.destroyScope(scope); ComponentCleaner.destroyAttributes(attrs); element = null; scope = null; attrs = null; }); }, post: function(scope, element) { $onsen.fireComponentEvent(element[0], 'init'); } } }; }]); })(); /** * @ngdoc directive * @id bottom_toolbar * @name ons-bottom-toolbar * @category toolbar * @description * [en]Toolbar component that is positioned at the bottom of the page.[/en] * [ja]ページ下部に配置されるツールバー用コンポーネントです。[/ja] * @modifier transparent * [en]Make the toolbar transparent.[/en] * [ja]ツールバーの背景を透明にして表示します。[/ja] * @seealso ons-toolbar [en]ons-toolbar component[/en][ja]ons-toolbarコンポーネント[/ja] * @guide Addingatoolbar * [en]Adding a toolbar[/en] * [ja]ツールバーの追加[/ja] * @example * <ons-bottom-toolbar> * <div style="text-align: center; line-height: 44px">Text</div> * </ons-bottom-toolbar> */ /** * @ngdoc attribute * @name modifier * @type {String} * @description * [en]The appearance of the toolbar.[/en] * [ja]ツールバーの見た目の表現を指定します。[/ja] */ /** * @ngdoc attribute * @name inline * @description * [en]Display the toolbar as an inline element.[/en] * [ja]この属性があると、ツールバーを画面下部ではなくスクロール領域内にそのまま表示します。[/ja] */ (function(){ 'use strict'; var module = angular.module('onsen'); module.directive('onsBottomToolbar', ['$onsen', 'GenericView', function($onsen, GenericView) { return { restrict: 'E', replace: false, // NOTE: This element must coexists with ng-controller. // Do not use isolated scope and template's ng-transclde. transclude: false, scope: false, compile: function(element, attrs) { var modifierTemplater = $onsen.generateModifierTemplater(attrs), inline = typeof attrs.inline !== 'undefined'; element.addClass('bottom-bar'); element.addClass(modifierTemplater('bottom-bar--*')); element.css({'z-index': 0}); if (inline) { element.css('position', 'static'); } return { pre: function(scope, element, attrs) { var bottomToolbar = new GenericView(scope, element, attrs); $onsen.declareVarAttribute(attrs, bottomToolbar); element.data('ons-bottomToolbar', bottomToolbar); scope.$on('$destroy', function() { bottomToolbar._events = undefined; $onsen.removeModifierMethods(bottomToolbar); element.data('ons-bottomToolbar', undefined); element = null; }); $onsen.addModifierMethods(bottomToolbar, 'bottom-bar--*', element); var pageView = element.inheritedData('ons-page'); if (pageView && !inline) { pageView.registerBottomToolbar(element); } }, post: function(scope, element, attrs) { $onsen.fireComponentEvent(element[0], 'init'); } }; } }; }]); })(); /** * @ngdoc directive * @id button * @name ons-button * @category form * @modifier outline * [en]Button with outline and transparent background[/en] * [ja]アウトラインを持ったボタンを表示します。[/ja] * @modifier light * [en]Button that doesn't stand out.[/en] * [ja]目立たないボタンを表示します。[/ja] * @modifier quiet * [en]Button with no outline and or background..[/en] * [ja]枠線や背景が無い文字だけのボタンを表示します。[/ja] * @modifier cta * [en]Button that really stands out.[/en] * [ja]目立つボタンを表示します。[/ja] * @modifier large * [en]Large button that covers the width of the screen.[/en] * [ja]横いっぱいに広がる大きなボタンを表示します。[/ja] * @modifier large--quiet * [en]Large quiet button.[/en] * [ja]横いっぱいに広がるquietボタンを表示します。[/ja] * @modifier large--cta * [en]Large call to action button.[/en] * [ja]横いっぱいに広がるctaボタンを表示します。[/ja] * @description * [en]Button component. If you want to place a button in a toolbar, use ons-toolbar-button or ons-back-button instead.[/en] * [ja]ボタン用コンポーネント。ツールバーにボタンを設置する場合は、ons-toolbar-buttonもしくはons-back-buttonコンポーネントを使用します。[/ja] * @codepen hLayx * @guide Button [en]Guide for ons-button[/en][ja]ons-buttonの使い方[/ja] * @guide OverridingCSSstyles [en]More details about modifier attribute[/en][ja]modifier属性の使い方[/ja] * @example * <ons-button modifier="large--cta"> * Tap Me * </ons-button> */ /** * @ngdoc attribute * @name modifier * @type {String} * @description * [en]The appearance of the button.[/en] * [ja]ボタンの表現を指定します。[/ja] */ /** * @ngdoc attribute * @name should-spin * @type {Boolean} * @description * [en]Specify if the button should have a spinner. [/en] * [ja]ボタンにスピナーを表示する場合に指定します。[/ja] */ /** * @ngdoc attribute * @name animation * @type {String} * @description * [en]The animation when the button transitions to and from the spinner. Possible values are "slide-left" (default), "slide-right", "slide-up", "slide-down", "expand-left", "expand-right", "expand-up", "expand-down", "zoom-out", "zoom-in".[/en] * [ja]スピナーを表示する場合のアニメーションを指定します。"slide-left" (デフォルト), "slide-right", "slide-up", "slide-down", "expand-left", "expand-right", "expand-up", "expand-down", "zoom-out", "zoom-in"のいずれかを指定します。[/ja] */ /** * @ngdoc attribute * @name disabled * @description * [en]Specify if button should be disabled.[/en] * [ja]ボタンを無効化する場合は指定します。[/ja] */ /** * @ngdoc method * @signature startSpin() * @description * [en]Show spinner on the button.[/en] * [ja]ボタンにスピナーを表示します。[/ja] */ /** * @ngdoc method * @signature stopSpin() * @description * [en]Remove spinner from button.[/en] * [ja]ボタンのスピナーを隠します。[/ja] */ /** * @ngdoc method * @signature isSpinning() * @return {Boolean} * [en]true if the button is spinning.[/en] * [ja]spinしているかどうかを返します。[/ja] * @description * [en]Return whether the spinner is visible or not.[/en] * [ja]ボタン内にスピナーが表示されているかどうかを返します。[/ja] */ /** * @ngdoc method * @signature setSpinAnimation(animation) * @description * [en]Set spin animation. Possible values are "slide-left" (default), "slide-right", "slide-up", "slide-down", "expand-left", "expand-right", "expand-up", "expand-down", "zoom-out", "zoom-in".[/en] * [ja]スピナーを表示する場合のアニメーションを指定します。"slide-left" (デフォルト), "slide-right", "slide-up", "slide-down", "expand-left", "expand-right", "expand-up", "expand-down", "zoom-out", "zoom-in"のいずれかを指定します。[/ja] * @param {String} animation * [en]Animation name.[/en] * [ja]アニメーション名を指定します。[/ja] */ /** * @ngdoc method * @signature setDisabled(disabled) * @description * [en]Disable or enable the button.[/en] * [ja]このボタンをdisabled状態にするかどうかを設定します。[/ja] * @param {String} disabled * [en]If true the button will be disabled.[/en] * [ja]disabled状態にするかどうかを真偽値で指定します。[/ja] */ /** * @ngdoc method * @signature isDisabled() * @return {Boolean} * [en]true if the button is disabled.[/en] * [ja]ボタンがdisabled状態になっているかどうかを返します。[/ja] * @description * [en]Returns whether the button is disabled or enabled.[/en] * [ja]このボタンがdisabled状態かどうかを返します。[/ja] */ (function(){ 'use strict'; var module = angular.module('onsen'); module.directive('onsButton', ['$onsen', 'ButtonView', function($onsen, ButtonView) { return { restrict: 'E', replace: false, transclude: true, scope: { animation: '@', }, templateUrl: $onsen.DIRECTIVE_TEMPLATE_URL + '/button.tpl', link: function(scope, element, attrs, _, transclude) { var button = new ButtonView(scope, element, attrs); $onsen.declareVarAttribute(attrs, button); element.data('ons-button', button); scope.$on('$destroy', function() { button._events = undefined; $onsen.removeModifierMethods(button); element.data('ons-button', undefined); element = null; }); var initialAnimation = 'slide-left'; scope.modifierTemplater = $onsen.generateModifierTemplater(attrs); element.addClass('button effeckt-button'); element.addClass(scope.modifierTemplater('button--*')); element.addClass(initialAnimation); $onsen.addModifierMethods(button, 'button--*', element); transclude(scope.$parent, function(cloned) { angular.element(element[0].querySelector('.ons-button-inner')).append(cloned); }); if (attrs.ngController) { throw new Error('This element can\'t accept ng-controller directive.'); } scope.item = {}; // if animation is not specified -> default is slide-left scope.item.animation = initialAnimation; scope.$watch('animation', function(newAnimation) { if (newAnimation) { if (scope.item.animation) { element.removeClass(scope.item.animation); } scope.item.animation = newAnimation; element.addClass(scope.item.animation); } }); attrs.$observe('shouldSpin', function(shouldSpin) { if (shouldSpin === 'true') { element.attr('data-loading', true); } else { element.removeAttr('data-loading'); } }); $onsen.cleaner.onDestroy(scope, function() { $onsen.clearComponent({ scope: scope, attrs: attrs, element: element }); scope = element = attrs = null; }); $onsen.fireComponentEvent(element[0], 'init'); } }; }]); })(); /** * @ngdoc directive * @id carousel * @name ons-carousel * @category carousel * @description * [en]Carousel component.[/en] * [ja]カルーセルを表示できるコンポーネント。[/ja] * @codepen xbbzOQ * @guide UsingCarousel * [en]Learn how to use the carousel component.[/en] * [ja]carouselコンポーネントの使い方[/ja] * @example * <ons-carousel style="width: 100%; height: 200px"> * <ons-carousel-item> * ... * </ons-carousel-item> * <ons-carousel-item> * ... * </ons-carousel-item> * </ons-carousel> */ /** * @ngdoc event * @name postchange * @description * [en]Fired just after the current carousel item has changed.[/en] * [ja]現在表示しているカルーセルの要素が変わった時に発火します。[/ja] * @param {Object} event * [en]Event object.[/en] * [ja]イベントオブジェクトです。[/ja] * @param {Object} event.carousel * [en]Carousel object.[/en] * [ja]イベントが発火したCarouselオブジェクトです。[/ja] * @param {Number} event.activeIndex * [en]Current active index.[/en] * [ja]現在アクティブになっている要素のインデックス。[/ja] * @param {Number} event.lastActiveIndex * [en]Previous active index.[/en] * [ja]以前アクティブだった要素のインデックス。[/ja] */ /** * @ngdoc event * @name refresh * @description * [en]Fired when the carousel has been refreshed.[/en] * [ja]カルーセルが更新された時に発火します。[/ja] * @param {Object} event * [en]Event object.[/en] * [ja]イベントオブジェクトです。[/ja] * @param {Object} event.carousel * [en]Carousel object.[/en] * [ja]イベントが発火したCarouselオブジェクトです。[/ja] */ /** * @ngdoc event * @name overscroll * @description * [en]Fired when the carousel has been overscrolled.[/en] * [ja]カルーセルがオーバースクロールした時に発火します。[/ja] * @param {Object} event * [en]Event object.[/en] * [ja]イベントオブジェクトです。[/ja] * @param {Object} event.carousel * [en]Fired when the carousel has been refreshed.[/en] * [ja]カルーセルが更新された時に発火します。[/ja] * @param {Number} event.activeIndex * [en]Current active index.[/en] * [ja]現在アクティブになっている要素のインデックス。[/ja] * @param {String} event.direction * [en]Can be one of either "up", "down", "left" or "right".[/en] * [ja]オーバースクロールされた方向が得られます。"up", "down", "left", "right"のいずれかの方向が渡されます。[/ja] * @param {Function} event.waitToReturn * [en]Takes a <code>Promise</code> object as an argument. The carousel will not scroll back until the promise has been resolved or rejected.[/en] * [ja]この関数はPromiseオブジェクトを引数として受け取ります。渡したPromiseオブジェクトがresolveされるかrejectされるまで、カルーセルはスクロールバックしません。[/ja] */ /** * @ngdoc attribute * @name direction * @type {String} * @description * [en]The direction of the carousel. Can be either "horizontal" or "vertical". Default is "horizontal".[/en] * [ja]カルーセルの方向を指定します。"horizontal"か"vertical"を指定できます。"horizontal"がデフォルト値です。[/ja] */ /** * @ngdoc attribute * @name fullscreen * @description * [en]If this attribute is set the carousel will cover the whole screen.[/en] * [ja]この属性があると、absoluteポジションを使ってカルーセルが自動的に画面いっぱいに広がります。[/ja] */ /** * @ngdoc attribute * @name var * @type {String} * @description * [en]Variable name to refer this carousel.[/en] * [ja]このカルーセルを参照するための変数名を指定します。[/ja] */ /** * @ngdoc attribute * @name overscrollable * @description * [en]If this attribute is set the carousel will be scrollable over the edge. It will bounce back when released.[/en] * [ja]この属性がある時、タッチやドラッグで端までスクロールした時に、バウンドするような効果が当たります。[/ja] */ /** * @ngdoc attribute * @name item-width * @type {String} * @description * [en]ons-carousel-item's width. Only works when the direction is set to "horizontal".[/en] * [ja]ons-carousel-itemの幅を指定します。この属性は、direction属性に"horizontal"を指定した時のみ有効になります。[/ja] */ /** * @ngdoc attribute * @name item-height * @type {String} * @description * [en]ons-carousel-item's height. Only works when the direction is set to "vertical".[/en] * [ja]ons-carousel-itemの高さを指定します。この属性は、direction属性に"vertical"を指定した時のみ有効になります。[/ja] */ /** * @ngdoc attribute * @name auto-scroll * @description * [en]If this attribute is set the carousel will be automatically scrolled to the closest item border when released.[/en] * [ja]この属性がある時、一番近いcarosel-itemの境界まで自動的にスクロールするようになります。[/ja] */ /** * @ngdoc attribute * @name auto-scroll-ratio * @type {Number} * @description * [en]A number between 0.0 and 1.0 that specifies how much the user must drag the carousel in order for it to auto scroll to the next item.[/en] * [ja]0.0から1.0までの値を指定します。カルーセルの要素をどれぐらいの割合までドラッグすると次の要素に自動的にスクロールするかを指定します。[/ja] */ /** * @ngdoc attribute * @name swipeable * @description * [en]If this attribute is set the carousel can be scrolled by drag or swipe.[/en] * [ja]この属性がある時、カルーセルをスワイプやドラッグで移動できるようになります。[/ja] */ /** * @ngdoc attribute * @name disabled * @description * [en]If this attribute is set the carousel is disabled.[/en] * [ja]この属性がある時、dragやtouchやswipeを受け付けなくなります。[/ja] */ /** * @ngdoc attribute * @name intial-index * @type {Number} * @description * [en]Specify the index of the ons-carousel-item to show initially. Default is 0.[/en] * [ja]最初に表示するons-carousel-itemを0始まりのインデックスで指定します。デフォルト値は 0 です。[/ja] */ /** * @ngdoc attribute * @name auto-refresh * @description * [en]When this attribute is set the carousel will automatically refresh when the number of child nodes change.[/en] * [ja]この属性がある時、子要素の数が変わるとカルーセルは自動的に更新されるようになります。[/ja] */ /** * @ngdoc attribute * @name ons-postchange * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "postchange" event is fired.[/en] * [ja]"postchange"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-refresh * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "refresh" event is fired.[/en] * [ja]"refresh"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-overscroll * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "overscroll" event is fired.[/en] * [ja]"overscroll"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-destroy * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en] * [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc method * @signature next() * @description * [en]Show next ons-carousel item.[/en] * [ja]次のons-carousel-itemを表示します。[/ja] */ /** * @ngdoc method * @signature prev() * @description * [en]Show previous ons-carousel item.[/en] * [ja]前のons-carousel-itemを表示します。[/ja] */ /** * @ngdoc method * @signature first() * @description * [en]Show first ons-carousel item.[/en] * [ja]最初のons-carousel-itemを表示します。[/ja] */ /** * @ngdoc method * @signature last() * @description * [en]Show last ons-carousel item.[/en] * [ja]最後のons-carousel-itemを表示します。[/ja] */ /** * @ngdoc method * @signature setSwipeable(swipeable) * @param {Booelan} swipeable * [en]If value is true the carousel will be swipeable.[/en] * [ja]swipeableにする場合にはtrueを指定します。[/ja] * @description * [en]Set whether the carousel is swipeable or not.[/en] * [ja]swipeできるかどうかを指定します。[/ja] */ /** * @ngdoc method * @signature isSwipeable() * @return {Boolean} * [en]true if the carousel is swipeable.[/en] * [ja]swipeableであればtrueを返します。[/ja] * @description * [en]Returns whether the carousel is swipeable or not.[/en] * [ja]swiapble属性があるかどうかを返します。[/ja] */ /** * @ngdoc method * @signature setActiveCarouselItemIndex(index) * @param {Number} index * [en]The index that the carousel should be set to.[/en] * [ja]carousel要素のインデックスを指定します。[/ja] * @description * [en]Specify the index of the ons-carousel-item to show.[/en] * [ja]表示するons-carousel-itemをindexで指定します。[/ja] */ /** * @ngdoc method * @signature getActiveCarouselItemIndex() * @return {Number} * [en]The current carousel item index.[/en] * [ja]現在表示しているカルーセル要素のインデックスが返されます。[/ja] * @description * [en]Returns the index of the currently visible ons-carousel-item.[/en] * [ja]現在表示されているons-carousel-item要素のインデックスを返します。[/ja] */ /** * @ngdoc method * @signature setAutoScrollEnabled(enabled) * @param {Boolean} enabled * [en]If true auto scroll will be enabled.[/en] * [ja]オートスクロールを有効にする場合にはtrueを渡します。[/ja] * @description * [en]Enable or disable "auto-scroll" attribute.[/en] * [ja]auto-scroll属性があるかどうかを設定します。[/ja] */ /** * @ngdoc method * @signature isAutoScrollEnabled() * @return {Boolean} * [en]true if auto scroll is enabled.[/en] * [ja]オートスクロールが有効であればtrueを返します。[/ja] * @description * [en]Returns whether the "auto-scroll" attribute is set or not.[/en] * [ja]auto-scroll属性があるかどうかを返します。[/ja] */ /** * @ngdoc method * @signature setAutoScrollRatio(ratio) * @param {Number} ratio * [en]The desired ratio.[/en] * [ja]オートスクロールするのに必要な0.0から1.0までのratio値を指定します。[/ja] * @description * [en]Set the auto scroll ratio. Must be a value between 0.0 and 1.0.[/en] * [ja]オートスクロールするのに必要なratio値を指定します。0.0から1.0を必ず指定しなければならない。[/ja] */ /** * @ngdoc method * @signature getAutoScrollRatio() * @return {Number} * [en]The current auto scroll ratio.[/en] * [ja]現在のオートスクロールのratio値。[/ja] * @description * [en]Returns the current auto scroll ratio.[/en] * [ja]現在のオートスクロールのratio値を返します。[/ja] */ /** * @ngdoc method * @signature setOverscrollable(overscrollable) * @param {Boolean} overscrollable * [en]If true the carousel will be overscrollable.[/en] * [ja]overscrollできるかどうかを指定します。[/ja] * @description * [en]Set whether the carousel is overscrollable or not.[/en] * [ja]overscroll属性があるかどうかを設定します。[/ja] */ /** * @ngdoc method * @signature isOverscrollable() * @return {Boolean} * [en]Whether the carousel is overscrollable or not.[/en] * [ja]overscrollできればtrueを返します。[/ja] * @description * [en]Returns whether the carousel is overscrollable or not.[/en] * [ja]overscroll属性があるかどうかを返します。[/ja] */ /** * @ngdoc method * @signature refresh() * @description * [en]Update the layout of the carousel. Used when adding ons-carousel-items dynamically or to automatically adjust the size.[/en] * [ja]レイアウトや内部の状態を最新のものに更新します。ons-carousel-itemを動的に増やしたり、ons-carouselの大きさを動的に変える際に利用します。[/ja] */ /** * @ngdoc method * @signature isDisabled() * @return {Boolean} * [en]Whether the carousel is disabled or not.[/en] * [ja]disabled状態になっていればtrueを返します。[/ja] * @description * [en]Returns whether the dialog is disabled or enabled.[/en] * [ja]disabled属性があるかどうかを返します。[/ja] */ /** * @ngdoc method * @signature setDisabled(disabled) * @param {Boolean} disabled * [en]If true the carousel will be disabled.[/en] * [ja]disabled状態にする場合にはtrueを指定します。[/ja] * @description * [en]Disable or enable the dialog.[/en] * [ja]disabled属性があるかどうかを設定します。[/ja] */ /** * @ngdoc method * @signature on(eventName, listener) * @description * [en]Add an event listener.[/en] * [ja]イベントリスナーを追加します。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja] */ /** * @ngdoc method * @signature once(eventName, listener) * @description * [en]Add an event listener that's only triggered once.[/en] * [ja]一度だけ呼び出されるイベントリスナを追加します。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja] */ /** * @ngdoc method * @signature off(eventName, [listener]) * @description * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en] * [ja]イベントリスナーを削除します。もしイベントリスナーが指定されなかった場合には、そのイベントに紐付いているイベントリスナーが全て削除されます。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja] */ (function() { 'use strict'; var module = angular.module('onsen'); module.directive('onsCarousel', ['$onsen', 'CarouselView', function($onsen, CarouselView) { return { restrict: 'E', replace: false, // NOTE: This element must coexists with ng-controller. // Do not use isolated scope and template's ng-transclude. scope: false, transclude: false, compile: function(element, attrs) { var templater = $onsen.generateModifierTemplater(attrs); element.addClass(templater('carousel--*')); return function(scope, element, attrs) { var carousel = new CarouselView(scope, element, attrs); element.data('ons-carousel', carousel); $onsen.registerEventHandlers(carousel, 'postchange refresh overscroll destroy'); $onsen.declareVarAttribute(attrs, carousel); scope.$on('$destroy', function() { carousel._events = undefined; element.data('ons-carousel', undefined); element = null; }); if (element[0].hasAttribute('auto-refresh')) { // Refresh carousel when items are added or removed. scope.$watch( function () { return element[0].childNodes.length; }, function () { setImmediate(function() { carousel.refresh(); }); } ); } setImmediate(function() { carousel.refresh(); }); $onsen.fireComponentEvent(element[0], 'init'); }; }, }; }]); module.directive('onsCarouselItem', ['$onsen', function($onsen) { return { restrict: 'E', replace: false, // NOTE: This element must coexists with ng-controller. // Do not use isolated scope and template's ng-transclude. scope: false, transclude: false, compile: function(element, attrs) { var templater = $onsen.generateModifierTemplater(attrs); element.addClass(templater('carousel-item--*')); element.css('width', '100%'); return function(scope, element, attrs) { }; }, }; }]); })(); /** * @ngdoc directive * @id col * @name ons-col * @category grid * @description * [en]Represents a column in the grid system. Use with ons-row to layout components.[/en] * [ja]グリッドシステムにて列を定義します。ons-rowとともに使用し、コンポーネントのレイアウトに利用します。[/ja] * @note * [en]For Android 4.3 and earlier, and iOS6 and earlier, when using mixed alignment with ons-row and ons-column, they may not be displayed correctly. You can use only one align.[/en] * [ja]Android 4.3以前、もしくはiOS 6以前のOSの場合、ons-rowとons-columnを組み合わせた場合に描画が崩れる場合があります。[/ja] * @codepen GgujC {wide} * @guide layouting [en]Layouting guide[/en][ja]レイアウト機能[/ja] * @seealso ons-row [en]ons-row component[/en][ja]ons-rowコンポーネント[/ja] * @example * <ons-row> * <ons-col width="50px"><ons-icon icon="fa-twitter"></ons-icon></ons-col> * <ons-col>Text</ons-col> * </ons-row> */ /** * @ngdoc attribute * @name align * @type {String} * @description * [en]Vertical alignment of the column. Valid values are "top", "center", and "bottom".[/en] * [ja]縦の配置を指定する。"top", "center", "bottom"のいずれかを指定します。[/ja] */ /** * @ngdoc attribute * @name width * @type {String} * @description * [en]The width of the column. Valid values are css width values ("10%", "50px").[/en] * [ja]カラムの横幅を指定する。パーセントもしくはピクセルで指定します(10%や50px)。[/ja] */ (function(){ 'use strict'; var module = angular.module('onsen'); module.directive('onsCol', ['$timeout', '$onsen', function($timeout, $onsen) { return { restrict: 'E', replace: false, // NOTE: This element must coexists with ng-controller. // Do not use isolated scope and template's ng-transclude. transclude: false, scope: false, compile: function(element, attrs, transclude) { element.addClass('col ons-col-inner'); return function(scope, element, attrs) { attrs.$observe('align', function(align) { updateAlign(align); }); attrs.$observe('width', function(width) { updateWidth(width); }); // For BC attrs.$observe('size', function(size) { if (!attrs.width) { updateWidth(size); } }); updateAlign(attrs.align); if (attrs.size && !attrs.width) { updateWidth(attrs.size); } else { updateWidth(attrs.width); } $onsen.cleaner.onDestroy(scope, function() { $onsen.clearComponent({ scope: scope, element: element, attrs: attrs }); element = attrs = scope = null; }); function updateAlign(align) { if (align === 'top' || align === 'center' || align === 'bottom') { element.removeClass('col-top col-center col-bottom'); element.addClass('col-' + align); } else { element.removeClass('col-top col-center col-bottom'); } } function updateWidth(width) { if (typeof width === 'string') { width = ('' + width).trim(); width = width.match(/^\d+$/) ? width + '%' : width; element.css({ '-webkit-box-flex': '0', '-webkit-flex': '0 0 ' + width, '-moz-box-flex': '0', '-moz-flex': '0 0 ' + width, '-ms-flex': '0 0 ' + width, 'flex': '0 0 ' + width, 'max-width': width }); } else { element.removeAttr('style'); } } $onsen.fireComponentEvent(element[0], 'init'); }; } }; }]); })(); /** * @ngdoc directive * @id dialog * @name ons-dialog * @category dialog * @description * [en]Dialog that is displayed on top of current screen.[/en] * [ja]現在のスクリーンにダイアログを表示します。[/ja] * @codepen zxxaGa * @guide UsingDialog * [en]Learn how to use the dialog component.[/en] * [ja]ダイアログコンポーネントの使い方[/ja] * @seealso ons-alert-dialog * [en]ons-alert-dialog component[/en] * [ja]ons-alert-dialogコンポーネント[/ja] * @seealso ons-popover * [en]ons-popover component[/en] * [ja]ons-popoverコンポーネント[/ja] * @example * <script> * ons.ready(function() { * ons.createDialog('dialog.html').then(function(dialog) { * dialog.show(); * }); * }); * </script> * * <script type="text/ons-template" id="dialog.html"> * <ons-dialog cancelable> * ... * </ons-dialog> * </script> */ /** * @ngdoc event * @name preshow * @description * [en]Fired just before the dialog is displayed.[/en] * [ja]ダイアログが表示される直前に発火します。[/ja] * @param {Object} event [en]Event object.[/en] * @param {Object} event.dialog * [en]Component object.[/en] * [ja]コンポーネントのオブジェクト。[/ja] * @param {Function} event.cancel * [en]Execute this function to stop the dialog from being shown.[/en] * [ja]この関数を実行すると、ダイアログの表示がキャンセルされます。[/ja] */ /** * @ngdoc event * @name postshow * @description * [en]Fired just after the dialog is displayed.[/en] * [ja]ダイアログが表示された直後に発火します。[/ja] * @param {Object} event [en]Event object.[/en] * @param {Object} event.dialog * [en]Component object.[/en] * [ja]コンポーネントのオブジェクト。[/ja] */ /** * @ngdoc event * @name prehide * @description * [en]Fired just before the dialog is hidden.[/en] * [ja]ダイアログが隠れる直前に発火します。[/ja] * @param {Object} event [en]Event object.[/en] * @param {Object} event.dialog * [en]Component object.[/en] * [ja]コンポーネントのオブジェクト。[/ja] * @param {Function} event.cancel * [en]Execute this function to stop the dialog from being hidden.[/en] * [ja]この関数を実行すると、ダイアログの非表示がキャンセルされます。[/ja] */ /** * @ngdoc event * @name posthide * @description * [en]Fired just after the dialog is hidden.[/en] * [ja]ダイアログが隠れた後に発火します。[/ja] * @param {Object} event [en]Event object.[/en] * @param {Object} event.dialog * [en]Component object.[/en] * [ja]コンポーネントのオブジェクト。[/ja] */ /** * @ngdoc attribute * @name var * @type {String} * @description * [en]Variable name to refer this dialog.[/en] * [ja]このダイアログを参照するための名前を指定します。[/ja] */ /** * @ngdoc attribute * @name modifier * @type {String} * @description * [en]The appearance of the dialog.[/en] * [ja]ダイアログの表現を指定します。[/ja] */ /** * @ngdoc attribute * @name cancelable * @description * [en]If this attribute is set the dialog can be closed by tapping the background or by pressing the back button.[/en] * [ja]この属性があると、ダイアログが表示された時に、背景やバックボタンをタップした時にダイアログを閉じます。[/ja] */ /** * @ngdoc attribute * @name disabled * @description * [en]If this attribute is set the dialog is disabled.[/en] * [ja]この属性がある時、ダイアログはdisabled状態になります。[/ja] */ /** * @ngdoc attribute * @name animation * @type {String} * @default default * @description * [en]The animation used when showing and hiding the dialog. Can be either "none" or "default".[/en] * [ja]ダイアログを表示する際のアニメーション名を指定します。"none"もしくは"default"を指定できます。[/ja] */ /** * @ngdoc attribute * @name mask-color * @type {String} * @default rgba(0, 0, 0, 0.2) * @description * [en]Color of the background mask. Default is "rgba(0, 0, 0, 0.2)".[/en] * [ja]背景のマスクの色を指定します。"rgba(0, 0, 0, 0.2)"がデフォルト値です。[/ja] */ /** * @ngdoc attribute * @name ons-preshow * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "preshow" event is fired.[/en] * [ja]"preshow"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-prehide * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "prehide" event is fired.[/en] * [ja]"prehide"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-postshow * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "postshow" event is fired.[/en] * [ja]"postshow"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-posthide * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "posthide" event is fired.[/en] * [ja]"posthide"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-destroy * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en] * [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc method * @signature show([options]) * @param {Object} [options] * [en]Parameter object.[/en] * [ja]オプションを指定するオブジェクト。[/ja] * @param {String} [options.animation] * [en]Animation name. Available animations are "none", "fade" and "slide".[/en] * [ja]アニメーション名を指定します。"none", "fade", "slide"のいずれかを指定します。[/ja] * @param {Function} [options.callback] * [en]This function is called after the dialog has been revealed.[/en] * [ja]ダイアログが表示され終わった後に呼び出される関数オブジェクトを指定します。[/ja] * @description * [en]Show the dialog.[/en] * [ja]ダイアログを開きます。[/ja] */ /** * @ngdoc method * @signature hide([options]) * @param {Object} [options] * [en]Parameter object.[/en] * [ja]オプションを指定するオブジェクト。[/ja] * @param {String} [options.animation] * [en]Animation name. Available animations are "none", "fade" and "slide".[/en] * [ja]アニメーション名を指定します。"none", "fade", "slide"のいずれかを指定できます。[/ja] * @param {Function} [options.callback] * [en]This functions is called after the dialog has been hidden.[/en] * [ja]ダイアログが隠れた後に呼び出される関数オブジェクトを指定します。[/ja] * @description * [en]Hide the dialog.[/en] * [ja]ダイアログを閉じます。[/ja] */ /** * @ngdoc method * @signature isShown() * @description * [en]Returns whether the dialog is visible or not.[/en] * [ja]ダイアログが表示されているかどうかを返します。[/ja] * @return {Boolean} * [en]true if the dialog is visible.[/en] * [ja]ダイアログが表示されている場合にtrueを返します。[/ja] */ /** * @ngdoc method * @signature destroy() * @description * [en]Destroy the dialog and remove it from the DOM tree.[/en] * [ja]ダイアログを破棄して、DOMツリーから取り除きます。[/ja] */ /** * @ngdoc method * @signature getDeviceBackButtonHandler() * @return {Object} * [en]Device back button handler.[/en] * [ja]デバイスのバックボタンハンドラを返します。[/ja] * @description * [en]Retrieve the back button handler for overriding the default behavior.[/en] * [ja]バックボタンハンドラを取得します。デフォルトの挙動を変更することができます。[/ja] */ /** * @ngdoc method * @signature setCancelable(cancelable) * @param {Boolean} cancelable * [en]If true the dialog will be cancelable.[/en] * [ja]ダイアログをキャンセル可能にする場合trueを指定します。[/ja] * @description * [en]Define whether the dialog can be canceled by the user or not.[/en] * [ja]ダイアログを表示した際に、ユーザがそのダイアログをキャンセルできるかどうかを指定します。[/ja] */ /** * @ngdoc method * @signature isCancelable() * @description * [en]Returns whether the dialog is cancelable or not.[/en] * [ja]このダイアログがキャンセル可能かどうかを返します。[/ja] * @return {Boolean} * [en]true if the dialog is cancelable.[/en] * [ja]ダイアログがキャンセル可能な場合trueを返します。[/ja] */ /** * @ngdoc method * @signature setDisabled(disabled) * @description * [en]Disable or enable the dialog.[/en] * [ja]このダイアログをdisabled状態にするかどうかを設定します。[/ja] * @param {Boolean} disabled * [en]If true the dialog will be disabled.[/en] * [ja]trueを指定するとダイアログをdisabled状態になります。[/ja] */ /** * @ngdoc method * @signature isDisabled() * @description * [en]Returns whether the dialog is disabled or enabled.[/en] * [ja]このダイアログがdisabled状態かどうかを返します。[/ja] * @return {Boolean} * [en]true if the dialog is disabled.[/en] * [ja]ダイアログがdisabled状態の場合trueを返します。[/ja] */ /** * @ngdoc method * @signature on(eventName, listener) * @description * [en]Add an event listener.[/en] * [ja]イベントリスナーを追加します。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja] */ /** * @ngdoc method * @signature once(eventName, listener) * @description * [en]Add an event listener that's only triggered once.[/en] * [ja]一度だけ呼び出されるイベントリスナを追加します。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja] */ /** * @ngdoc method * @signature off(eventName, [listener]) * @description * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en] * [ja]イベントリスナーを削除します。もしイベントリスナーが指定されなかった場合には、そのイベントに紐付いているイベントリスナーが全て削除されます。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja] */ (function() { 'use strict'; var module = angular.module('onsen'); /** * Dialog directive. */ module.directive('onsDialog', ['$onsen', 'DialogView', function($onsen, DialogView) { return { restrict: 'E', replace: false, scope: true, transclude: true, templateUrl: $onsen.DIRECTIVE_TEMPLATE_URL + '/dialog.tpl', compile: function(element, attrs, transclude) { element[0].setAttribute('no-status-bar-fill', ''); return { pre: function(scope, element, attrs) { transclude(scope, function(clone) { angular.element(element[0].querySelector('.dialog')).append(clone); }); var dialog = new DialogView(scope, element, attrs); scope.modifierTemplater = $onsen.generateModifierTemplater(attrs); $onsen.addModifierMethods(dialog, 'dialog--*', angular.element(element[0].querySelector('.dialog'))); $onsen.declareVarAttribute(attrs, dialog); $onsen.registerEventHandlers(dialog, 'preshow prehide postshow posthide destroy'); element.data('ons-dialog', dialog); scope.$on('$destroy', function() { dialog._events = undefined; $onsen.removeModifierMethods(dialog); element.data('ons-dialog', undefined); element = null; }); }, post: function(scope, element) { $onsen.fireComponentEvent(element[0], 'init'); } }; } }; }]); })(); (function() { 'use strict'; var module = angular.module('onsen'); module.directive('onsDummyForInit', ['$rootScope', function($rootScope) { var isReady = false; return { restrict: 'E', replace: false, link: { post: function(scope, element) { if (!isReady) { isReady = true; $rootScope.$broadcast('$ons-ready'); } element.remove(); } } }; }]); })(); /** * @ngdoc directive * @id gestureDetector * @name ons-gesture-detector * @category input * @description * [en]Component to detect finger gestures within the wrapped element. See the guide for more details.[/en] * [ja]要素内のジェスチャー操作を検知します。詳しくはガイドを参照してください。[/ja] * @guide DetectingFingerGestures * [en]Detecting finger gestures[/en] * [ja]ジェスチャー操作の検知[/ja] * @example * <ons-gesture-detector> * ... * </ons-gesture-detector> */ (function() { 'use strict'; var EVENTS = ('drag dragleft dragright dragup dragdown hold release swipe swipeleft swiperight ' + 'swipeup swipedown tap doubletap touch transform pinch pinchin pinchout rotate').split(/ +/); angular.module('onsen').directive('onsGestureDetector', ['$onsen', function($onsen) { var scopeDef = EVENTS.reduce(function(dict, name) { dict['ng' + titlize(name)] = '&'; return dict; }, {}); return { restrict: 'E', scope: scopeDef, // NOTE: This element must coexists with ng-controller. // Do not use isolated scope and template's ng-transclude. replace: false, transclude: true, compile: function(element, attrs) { return function link(scope, element, attrs, controller, transclude) { transclude(scope.$parent, function(cloned) { element.append(cloned); }); var hammer = new Hammer(element[0]); hammer.on(EVENTS.join(' '), handleEvent); $onsen.cleaner.onDestroy(scope, function() { hammer.off(EVENTS.join(' '), handleEvent); $onsen.clearComponent({ scope: scope, element: element, attrs: attrs }); hammer.element = scope = element = attrs = null; }); function handleEvent(event) { var attr = 'ng' + titlize(event.type); if (attr in scopeDef) { scope[attr]({$event: event}); } } $onsen.fireComponentEvent(element[0], 'init'); }; } }; function titlize(str) { return str.charAt(0).toUpperCase() + str.slice(1); } }]); })(); /** * @ngdoc directive * @id icon * @name ons-icon * @category icon * @description * [en]Displays an icon. Font Awesome and Ionicon icons are supported.[/en] * [ja]アイコンを表示するコンポーネントです。Font AwesomeもしくはIoniconsから選択できます。[/ja] * @codepen xAhvg * @guide UsingIcons [en]Using icons[/en][ja]アイコンを使う[/ja] * @example * <ons-icon * icon="fa-twitter" * size="20px" * fixed-width="false" * style="color: red"> * </ons-icon> */ /** * @ngdoc attribute * @name icon * @type {String} * @description * [en]The icon name. <code>fa-</code> prefix for Font Awesome, <code>ion-</code> prefix for Ionicons icons. See all icons at http://fontawesome.io/icons/ and http://ionicons.com.[/en] * [ja]アイコン名を指定します。<code>fa-</code>で始まるものはFont Awesomeとして、<code>ion-</code>で始まるものはIoniconsとして扱われます。使用できるアイコンはこちら: http://fontawesome.io/icons/ および http://ionicons.com。[/ja] */ /** * @ngdoc attribute * @name size * @type {String} * @description * [en]The sizes of the icon. Valid values are lg, 2x, 3x, 4x, 5x, or in pixels.[/en] * [ja]アイコンのサイズを指定します。値は、lg, 2x, 3x, 4x, 5xもしくはピクセル単位で指定できます。[/ja] */ /** * @ngdoc attribute * @name rotate * @type {Number} * @description * [en]Number of degrees to rotate the icon. Valid values are 90, 180, or 270.[/en] * [ja]アイコンを回転して表示します。90, 180, 270から指定できます。[/ja] */ /** * @ngdoc attribute * @name flip * @type {String} * @description * [en]Flip the icon. Valid values are "horizontal" and "vertical".[/en] * [ja]アイコンを反転します。horizontalもしくはverticalを指定できます。[/ja] */ /** * @ngdoc attribute * @name fixed-width * @type {Boolean} * @default false * @description * [en]When used in the list, you want the icons to have the same width so that they align vertically by setting the value to true. Valid values are true, false. Default is false.[/en] * [ja]等幅にするかどうかを指定します。trueもしくはfalseを指定できます。デフォルトはfalseです。[/ja] */ /** * @ngdoc attribute * @name spin * @type {Boolean} * @default false * @description * [en]Specify whether the icon should be spinning. Valid values are true and false.[/en] * [ja]アイコンを回転するかどうかを指定します。trueもしくはfalseを指定できます。[/ja] */ (function(){ 'use strict'; var module = angular.module('onsen'); function cleanClassAttribute(element) { var classList = ('' + element.attr('class')).split(/ +/).filter(function(classString) { return classString !== 'fa' && classString.substring(0, 3) !== 'fa-' && classString.substring(0, 4) !== 'ion-'; }); element.attr('class', classList.join(' ')); } function buildClassAndStyle(attrs) { var classList = ['ons-icon']; var style = {}; // icon if (attrs.icon.indexOf('ion-') === 0) { classList.push(attrs.icon); classList.push('ons-icon--ion'); } else if (attrs.icon.indexOf('fa-') === 0) { classList.push(attrs.icon); classList.push('fa'); } else { classList.push('fa'); classList.push('fa-' + attrs.icon); } // size var size = '' + attrs.size; if (size.match(/^[1-5]x|lg$/)) { classList.push('fa-' + size); } else if (typeof attrs.size === 'string') { style['font-size'] = size; } else { classList.push('fa-lg'); } return { 'class': classList.join(' '), 'style': style }; } module.directive('onsIcon', ['$onsen', function($onsen) { return { restrict: 'E', replace: false, transclude: false, link: function(scope, element, attrs) { if (attrs.ngController) { throw new Error('This element can\'t accept ng-controller directive.'); } var update = function() { cleanClassAttribute(element); var builded = buildClassAndStyle(attrs); element.css(builded.style); element.addClass(builded['class']); }; var builded = buildClassAndStyle(attrs); element.css(builded.style); element.addClass(builded['class']); attrs.$observe('icon', update); attrs.$observe('size', update); attrs.$observe('fixedWidth', update); attrs.$observe('rotate', update); attrs.$observe('flip', update); attrs.$observe('spin', update); $onsen.cleaner.onDestroy(scope, function() { $onsen.clearComponent({ scope: scope, element: element, attrs: attrs }); element = scope = attrs = null; }); $onsen.fireComponentEvent(element[0], 'init'); } }; }]); })(); /** * @ngdoc directive * @id if-orientation * @name ons-if-orientation * @category util * @description * [en]Conditionally display content depending on screen orientation. Valid values are portrait and landscape. Different from other components, this component is used as attribute in any element.[/en] * [ja]画面の向きに応じてコンテンツの制御を行います。portraitもしくはlandscapeを指定できます。すべての要素の属性に使用できます。[/ja] * @seealso ons-if-platform [en]ons-if-platform component[/en][ja]ons-if-platformコンポーネント[/ja] * @guide UtilityAPIs [en]Other utility APIs[/en][ja]他のユーティリティAPI[/ja] * @example * <div ons-if-orientation="portrait"> * <p>This will only be visible in portrait mode.</p> * </div> */ /** * @ngdoc attribute * @name ons-if-orientation * @type {String} * @description * [en]Either "portrait" or "landscape".[/en] * [ja]portraitもしくはlandscapeを指定します。[/ja] */ (function(){ 'use strict'; var module = angular.module('onsen'); module.directive('onsIfOrientation', ['$onsen', '$onsGlobal', function($onsen, $onsGlobal) { return { restrict: 'A', replace: false, // NOTE: This element must coexists with ng-controller. // Do not use isolated scope and template's ng-transclude. transclude: false, scope: false, compile: function(element) { element.css('display', 'none'); return function(scope, element, attrs) { element.addClass('ons-if-orientation-inner'); attrs.$observe('onsIfOrientation', update); $onsGlobal.orientation.on('change', update); update(); $onsen.cleaner.onDestroy(scope, function() { $onsGlobal.orientation.off('change', update); $onsen.clearComponent({ element: element, scope: scope, attrs: attrs }); element = scope = attrs = null; }); function update() { var userOrientation = ('' + attrs.onsIfOrientation).toLowerCase(); var orientation = getLandscapeOrPortrait(); if (userOrientation === 'portrait' || userOrientation === 'landscape') { if (userOrientation === orientation) { element.css('display', ''); } else { element.css('display', 'none'); } } } function getLandscapeOrPortrait() { return $onsGlobal.orientation.isPortrait() ? 'portrait' : 'landscape'; } }; } }; }]); })(); /** * @ngdoc directive * @id if-platform * @name ons-if-platform * @category util * @description * [en]Conditionally display content depending on the platform / browser. Valid values are "ios", "android", "blackberry", "chrome", "safari", "firefox", and "opera".[/en] * [ja]プラットフォームやブラウザーに応じてコンテンツの制御をおこないます。ios, android, blackberry, chrome, safari, firefox, operaを指定できます。[/ja] * @seealso ons-if-orientation [en]ons-if-orientation component[/en][ja]ons-if-orientationコンポーネント[/ja] * @guide UtilityAPIs [en]Other utility APIs[/en][ja]他のユーティリティAPI[/ja] * @example * <div ons-if-platform="android"> * ... * </div> */ /** * @ngdoc attribute * @name ons-if-platform * @type {String} * @description * [en]Either "opera", "firefox", "safari", "chrome", "ie", "android", "blackberry", "ios" or "windows".[/en] * [ja]"opera", "firefox", "safari", "chrome", "ie", "android", "blackberry", "ios", "windows"のいずれかを指定します。[/ja] */ (function() { 'use strict'; var module = angular.module('onsen'); module.directive('onsIfPlatform', ['$onsen', function($onsen) { return { restrict: 'A', replace: false, // NOTE: This element must coexists with ng-controller. // Do not use isolated scope and template's ng-transclude. transclude: false, scope: false, compile: function(element) { element.addClass('ons-if-platform-inner'); element.css('display', 'none'); var platform = getPlatformString(); return function(scope, element, attrs) { attrs.$observe('onsIfPlatform', function(userPlatform) { if (userPlatform) { update(); } }); update(); $onsen.cleaner.onDestroy(scope, function() { $onsen.clearComponent({ element: element, scope: scope, attrs: attrs }); element = scope = attrs = null; }); function update() { if (attrs.onsIfPlatform.toLowerCase() === platform.toLowerCase()) { element.css('display', 'block'); } else { element.css('display', 'none'); } } }; function getPlatformString() { if (navigator.userAgent.match(/Android/i)) { return 'android'; } if ((navigator.userAgent.match(/BlackBerry/i)) || (navigator.userAgent.match(/RIM Tablet OS/i)) || (navigator.userAgent.match(/BB10/i))) { return 'blackberry'; } if (navigator.userAgent.match(/iPhone|iPad|iPod/i)) { return 'ios'; } if (navigator.userAgent.match(/IEMobile/i)) { return 'windows'; } // Opera 8.0+ (UA detection to detect Blink/v8-powered Opera) var isOpera = !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0; if (isOpera) { return 'opera'; } var isFirefox = typeof InstallTrigger !== 'undefined'; // Firefox 1.0+ if (isFirefox) { return 'firefox'; } var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0; // At least Safari 3+: "[object HTMLElementConstructor]" if (isSafari) { return 'safari'; } var isChrome = !!window.chrome && !isOpera; // Chrome 1+ if (isChrome) { return 'chrome'; } var isIE = /*@cc_on!@*/false || !!document.documentMode; // At least IE6 if (isIE) { return 'ie'; } return 'unknown'; } } }; }]); })(); /** * @ngdoc directive * @id ons-keyboard-active * @name ons-keyboard-active * @category input * @description * [en] * Conditionally display content depending on if the software keyboard is visible or hidden. * This component requires cordova and that the com.ionic.keyboard plugin is installed. * [/en] * [ja] * ソフトウェアキーボードが表示されているかどうかで、コンテンツを表示するかどうかを切り替えることが出来ます。 * このコンポーネントは、Cordovaやcom.ionic.keyboardプラグインを必要とします。 * [/ja] * @guide UtilityAPIs * [en]Other utility APIs[/en] * [ja]他のユーティリティAPI[/ja] * @example * <div ons-keyboard-active> * This will only be displayed if the software keyboard is open. * </div> * <div ons-keyboard-inactive> * There is also a component that does the opposite. * </div> */ /** * @ngdoc attribute * @name ons-keyboard-active * @description * [en]The content of tags with this attribute will be visible when the software keyboard is open.[/en] * [ja]この属性がついた要素は、ソフトウェアキーボードが表示された時に初めて表示されます。[/ja] */ /** * @ngdoc attribute * @name ons-keyboard-inactive * @description * [en]The content of tags with this attribute will be visible when the software keyboard is hidden.[/en] * [ja]この属性がついた要素は、ソフトウェアキーボードが隠れている時のみ表示されます。[/ja] */ (function() { 'use strict'; var module = angular.module('onsen'); var compileFunction = function(show, $onsen) { return function(element) { return function(scope, element, attrs) { var dispShow = show ? 'block' : 'none', dispHide = show ? 'none' : 'block'; var onShow = function() { element.css('display', dispShow); }; var onHide = function() { element.css('display', dispHide); }; var onInit = function(e) { if (e.visible) { onShow(); } else { onHide(); } }; ons.softwareKeyboard.on('show', onShow); ons.softwareKeyboard.on('hide', onHide); ons.softwareKeyboard.on('init', onInit); if (ons.softwareKeyboard._visible) { onShow(); } else { onHide(); } $onsen.cleaner.onDestroy(scope, function() { ons.softwareKeyboard.off('show', onShow); ons.softwareKeyboard.off('hide', onHide); ons.softwareKeyboard.off('init', onInit); $onsen.clearComponent({ element: element, scope: scope, attrs: attrs }); element = scope = attrs = null; }); }; }; }; module.directive('onsKeyboardActive', ['$onsen', function($onsen) { return { restrict: 'A', replace: false, transclude: false, scope: false, compile: compileFunction(true, $onsen) }; }]); module.directive('onsKeyboardInactive', ['$onsen', function($onsen) { return { restrict: 'A', replace: false, transclude: false, scope: false, compile: compileFunction(false, $onsen) }; }]); })(); /** * @ngdoc directive * @id lazy-repeat * @name ons-lazy-repeat * @category control * @description * [en] * Using this component a list with millions of items can be rendered without a drop in performance. * It does that by "lazily" loading elements into the DOM when they come into view and * removing items from the DOM when they are not visible. * [/en] * [ja] * このコンポーネント内で描画されるアイテムのDOM要素の読み込みは、画面に見えそうになった時まで自動的に遅延され、 * 画面から見えなくなった場合にはその要素は動的にアンロードされます。 * このコンポーネントを使うことで、パフォーマンスを劣化させること無しに巨大な数の要素を描画できます。 * [/ja] * @codepen QwrGBm * @guide UsingLazyRepeat * [en]How to use Lazy Repeat[/en] * [ja]レイジーリピートの使い方[/ja] * @example * <script> * ons.bootstrap() * * .controller('MyController', function($scope) { * $scope.MyDelegate = { * countItems: function() { * // Return number of items. * return 1000000; * }, * * calculateItemHeight: function(index) { * // Return the height of an item in pixels. * return 45; * }, * * configureItemScope: function(index, itemScope) { * // Initialize scope * itemScope.item = 'Item #' + (index + 1); * }, * * destroyItemScope: function(index, itemScope) { * // Optional method that is called when an item is unloaded. * console.log('Destroyed item with index: ' + index); * } * }; * }); * </script> * * <ons-list ng-controller="MyController"> * <ons-list-item ons-lazy-repeat="MyDelegate"> * {{ item }} * </ons-list-item> * </ons-list> */ /** * @ngdoc attribute * @name ons-lazy-repeat * @type {Expression} * @description * [en]A delegate object, can be either an object attached to the scope (when using AngularJS) or a normal JavaScript variable.[/en] * [ja]要素のロード、アンロードなどの処理を委譲するオブジェクトを指定します。AngularJSのスコープの変数名や、通常のJavaScriptの変数名を指定します。[/ja] */ (function() { 'use strict'; var module = angular.module('onsen'); /** * Lazy repeat directive. */ module.directive('onsLazyRepeat', ['$onsen', 'LazyRepeatView', function($onsen, LazyRepeatView) { return { restrict: 'A', replace: false, priority: 1000, transclude: 'element', compile: function(element, attrs, linker) { return function(scope, element, attrs) { var lazyRepeat = new LazyRepeatView(scope, element, attrs, linker); scope.$on('$destroy', function() { scope = element = attrs = linker = null; }); }; } }; }]); })(); /** * @ngdoc directive * @id list * @name ons-list * @category list * @modifier inset * [en]Inset list that doesn't cover the whole width of the parent.[/en] * [ja]親要素の画面いっぱいに広がらないリストを表示します。[/ja] * @modifier noborder * [en]A list with no borders at the top and bottom.[/en] * [ja]リストの上下のボーダーが無いリストを表示します。[/ja] * @description * [en]Component to define a list, and the container for ons-list-item(s).[/en] * [ja]リストを表現するためのコンポーネント。ons-list-itemのコンテナとして使用します。[/ja] * @seealso ons-list-item * [en]ons-list-item component[/en] * [ja]ons-list-itemコンポーネント[/ja] * @seealso ons-list-header * [en]ons-list-header component[/en] * [ja]ons-list-headerコンポーネント[/ja] * @guide UsingList * [en]Using lists[/en] * [ja]リストを使う[/ja] * @codepen yxcCt * @example * <ons-list> * <ons-list-header>Header Text</ons-list-header> * <ons-list-item>Item</ons-list-item> * <ons-list-item>Item</ons-list-item> * </ons-list> */ /** * @ngdoc attribute * @name modifier * @type {String} * @description * [en]The appearance of the list.[/en] * [ja]リストの表現を指定します。[/ja] */ (function() { 'use strict'; var module = angular.module('onsen'); module.directive('onsList', ['$onsen', 'GenericView', function($onsen, GenericView) { return { restrict: 'E', scope: false, // NOTE: This element must coexists with ng-controller. // Do not use isolated scope and template's ng-transclude. replace: false, transclude: false, compile: function(element, attrs) { return function(scope, element, attrs) { var list = new GenericView(scope, element, attrs); $onsen.declareVarAttribute(attrs, list); element.data('ons-list', list); scope.$on('$destroy', function() { list._events = undefined; $onsen.removeModifierMethods(list); element.data('ons-list', undefined); element = null; }); var templater = $onsen.generateModifierTemplater(attrs); element.addClass('list ons-list-inner'); element.addClass(templater('list--*')); $onsen.addModifierMethods(list, 'list--*', element); $onsen.fireComponentEvent(element[0], 'init'); }; } }; }]); })(); /** * @ngdoc directive * @id list-header * @name ons-list-header * @category list * @description * [en]Header element for list items. Must be put inside ons-list component.[/en] * [ja]リスト要素に使用するヘッダー用コンポーネント。ons-listと共に使用します。[/ja] * @seealso ons-list * [en]ons-list component[/en] * [ja]ons-listコンポーネント[/ja] * @seealso ons-list-item [en]ons-list-item component[/en][ja]ons-list-itemコンポーネント[/ja] * @guide UsingList [en]Using lists[/en][ja]リストを使う[/ja] * @codepen yxcCt * @example * <ons-list> * <ons-list-header>Header Text</ons-list-header> * <ons-list-item>Item</ons-list-item> * <ons-list-item>Item</ons-list-item> * </ons-list> */ /** * @ngdoc attribute * @name modifier * @type {String} * @description * [en]The appearance of the list header.[/en] * [ja]ヘッダーの表現を指定します。[/ja] */ (function() { 'use strict'; var module = angular.module('onsen'); module.directive('onsListHeader', ['$onsen', 'GenericView', function($onsen, GenericView) { return { restrict: 'E', // NOTE: This element must coexists with ng-controller. // Do not use isolated scope and template's ng-transclude. replace: false, transclude: false, compile: function() { return function(scope, element, attrs) { var listHeader = new GenericView(scope, element, attrs); $onsen.declareVarAttribute(attrs, listHeader); element.data('ons-listHeader', listHeader); scope.$on('$destroy', function() { listHeader._events = undefined; $onsen.removeModifierMethods(listHeader); element.data('ons-listHeader', undefined); element = null; }); var templater = $onsen.generateModifierTemplater(attrs); element.addClass('list__header ons-list-header-inner'); element.addClass(templater('list__header--*')); $onsen.addModifierMethods(listHeader, 'list__header--*', element); $onsen.fireComponentEvent(element[0], 'init'); }; } }; }]); })(); /** * @ngdoc directive * @id list-item * @name ons-list-item * @category list * @modifier tappable * [en]Made the list item change appearance when it's tapped.[/en] * [ja]タップやクリックした時に効果が表示されるようになります。[/ja] * @modifier chevron * [en]Display a chevron at the right end of the list item and make it change appearance when tapped.[/en] * [ja]要素の右側に右矢印が表示されます。また、タップやクリックした時に効果が表示されるようになります。[/ja] * @description * [en]Component that represents each item in the list. Must be put inside the ons-list component.[/en] * [ja]リストの各要素を表現するためのコンポーネントです。ons-listコンポーネントと共に使用します。[/ja] * @seealso ons-list * [en]ons-list component[/en] * [ja]ons-listコンポーネント[/ja] * @seealso ons-list-header * [en]ons-list-header component[/en] * [ja]ons-list-headerコンポーネント[/ja] * @guide UsingList * [en]Using lists[/en] * [ja]リストを使う[/ja] * @codepen yxcCt * @example * <ons-list> * <ons-list-header>Header Text</ons-list-header> * <ons-list-item>Item</ons-list-item> * <ons-list-item>Item</ons-list-item> * </ons-list> */ /** * @ngdoc attribute * @name modifier * @type {String} * @description * [en]The appearance of the list item.[/en] * [ja]各要素の表現を指定します。[/ja] */ (function() { 'use strict'; var module = angular.module('onsen'); module.directive('onsListItem', ['$onsen', 'GenericView', function($onsen, GenericView) { return { restrict: 'E', // NOTE: This element must coexists with ng-controller. // Do not use isolated scope and template's ng-transclude. replace: false, transclude: false, compile: function() { return function(scope, element, attrs) { var listItem = new GenericView(scope, element, attrs); $onsen.declareVarAttribute(attrs, listItem); element.data('ons-list-item', listItem); scope.$on('$destroy', function() { listItem._events = undefined; $onsen.removeModifierMethods(listItem); element.data('ons-list-item', undefined); element = null; }); var templater = $onsen.generateModifierTemplater(attrs); element.addClass('list__item ons-list-item-inner'); element.addClass(templater('list__item--*')); $onsen.addModifierMethods(listItem, 'list__item--*', element); $onsen.fireComponentEvent(element[0], 'init'); }; } }; }]); })(); /** * @ngdoc directive * @id loading-placeholder * @name ons-loading-placeholder * @category util * @description * [en]Display a placeholder while the content is loading.[/en] * [ja]Onsen UIが読み込まれるまでに表示するプレースホルダーを表現します。[/ja] * @guide UtilityAPIs [en]Other utility APIs[/en][ja]他のユーティリティAPI[/ja] * @example * <div ons-loading-placeholder="page.html"> * Loading... * </div> */ /** * @ngdoc attribute * @name ons-loading-placeholder * @type {String} * @description * [en]The url of the page to load.[/en] * [ja]読み込むページのURLを指定します。[/ja] */ (function(){ 'use strict'; var module = angular.module('onsen'); module.directive('onsLoadingPlaceholder', ['$onsen', '$compile', function($onsen, $compile) { return { restrict: 'A', replace: false, transclude: false, scope: false, compile: function(element, attrs) { if (!attrs.onsLoadingPlaceholder.length) { throw Error('Must define page to load.'); } setImmediate(function() { $onsen.getPageHTMLAsync(attrs.onsLoadingPlaceholder).then(function(html) { // Remove page tag. html = html .trim() .replace(/^<ons-page>/, '') .replace(/<\/ons-page>$/, ''); var div = document.createElement('div'); div.innerHTML = html; var newElement = angular.element(div); newElement.css('display', 'none'); element.append(newElement); ons.compile(newElement[0]); for (var i = element[0].childNodes.length - 1; i >= 0; i--){ var e = element[0].childNodes[i]; if (e !== div) { element[0].removeChild(e); } } newElement.css('display', 'block'); }); }); } }; }]); })(); /** * @ngdoc directive * @id modal * @name ons-modal * @category modal * @description * [en] * Modal component that masks current screen. * Underlying components are not subject to any events while the modal component is shown. * [/en] * [ja] * 画面全体をマスクするモーダル用コンポーネントです。下側にあるコンポーネントは、 * モーダルが表示されている間はイベント通知が行われません。 * [/ja] * @guide UsingModal * [en]Using ons-modal component[/en] * [ja]モーダルの使い方[/ja] * @guide CallingComponentAPIsfromJavaScript * [en]Using navigator from JavaScript[/en] * [ja]JavaScriptからコンポーネントを呼び出す[/ja] * @codepen devIg * @example * <ons-modal> * ... * </ons-modal> */ /** * @ngdoc attribute * @name var * @type {String} * @description * [en]Variable name to refer this modal.[/en] * [ja]このモーダルを参照するための名前を指定します。[/ja] */ /** * @ngdoc method * @signature toggle() * @description * [en]Toggle modal visibility.[/en] * [ja]モーダルの表示を切り替えます。[/ja] */ /** * @ngdoc method * @signature show() * @description * [en]Show modal.[/en] * [ja]モーダルを表示します。[/ja] */ /** * @ngdoc method * @signature hide() * @description * [en]Hide modal.[/en] * [ja]モーダルを非表示にします。[/ja] */ /** * @ngdoc method * @signature getDeviceBackButtonHandler() * @return {Object} * [en]Device back button handler.[/en] * [ja]デバイスのバックボタンハンドラを返します。[/ja] * @description * [en]Retrieve the back button handler.[/en] * [ja]ons-modalに紐付いているバックボタンハンドラを取得します。[/ja] */ (function() { 'use strict'; var module = angular.module('onsen'); /** * Modal directive. */ module.directive('onsModal', ['$onsen', 'ModalView', function($onsen, ModalView) { return { restrict: 'E', replace: false, // NOTE: This element must coexists with ng-controller. // Do not use isolated scope and template's ng-transclde. scope: false, transclude: false, compile: function(element, attrs) { compile(element, attrs); return { pre: function(scope, element, attrs) { var page = element.inheritedData('ons-page'); if (page) { page.registerExtraElement(element); } var modal = new ModalView(scope, element); $onsen.addModifierMethods(modal, 'modal--*', element); $onsen.addModifierMethods(modal, 'modal--*__content', element.children()); $onsen.declareVarAttribute(attrs, modal); element.data('ons-modal', modal); scope.$on('$destroy', function() { modal._events = undefined; $onsen.removeModifierMethods(modal); element.data('ons-modal', undefined); }); }, post: function(scope, element) { $onsen.fireComponentEvent(element[0], 'init'); } }; } }; function compile(element, attrs) { var modifierTemplater = $onsen.generateModifierTemplater(attrs); var html = element[0].innerHTML; element[0].innerHTML = ''; var wrapper = angular.element('<div></div>'); wrapper.addClass('modal__content'); wrapper.addClass(modifierTemplater('modal--*__content')); element.css('display', 'none'); element.addClass('modal'); element.addClass(modifierTemplater('modal--*')); wrapper[0].innerHTML = html; element.append(wrapper); } }]); })(); /** * @ngdoc directive * @id navigator * @name ons-navigator * @category navigation * @description * [en]A component that provides page stack management and navigation. This component does not have a visible content.[/en] * [ja]ページスタックの管理とナビゲーション機能を提供するコンポーネント。画面上への出力はありません。[/ja] * @codepen yrhtv * @guide PageNavigation * [en]Guide for page navigation[/en] * [ja]ページナビゲーションの概要[/ja] * @guide CallingComponentAPIsfromJavaScript * [en]Using navigator from JavaScript[/en] * [ja]JavaScriptからコンポーネントを呼び出す[/ja] * @guide EventHandling * [en]Event handling descriptions[/en] * [ja]イベント処理の使い方[/ja] * @guide DefiningMultiplePagesinSingleHTML * [en]Defining multiple pages in single html[/en] * [ja]複数のページを1つのHTMLに記述する[/ja] * @seealso ons-toolbar * [en]ons-toolbar component[/en] * [ja]ons-toolbarコンポーネント[/ja] * @seealso ons-back-button * [en]ons-back-button component[/en] * [ja]ons-back-buttonコンポーネント[/ja] * @example * <ons-navigator animation="slide" var="app.navi"> * <ons-page> * <ons-toolbar> * <div class="center">Title</div> * </ons-toolbar> * * <p style="text-align: center"> * <ons-button modifier="light" ng-click="app.navi.pushPage('page.html');">Push</ons-button> * </p> * </ons-page> * </ons-navigator> * * <ons-template id="page.html"> * <ons-page> * <ons-toolbar> * <div class="center">Title</div> * </ons-toolbar> * * <p style="text-align: center"> * <ons-button modifier="light" ng-click="app.navi.popPage('page.html');">Pop</ons-button> * </p> * </ons-page> * </ons-template> */ /** * @ngdoc event * @name prepush * @description * [en]Fired just before a page is pushed.[/en] * [ja]pageがpushされる直前に発火されます。[/ja] * @param {Object} event [en]Event object.[/en] * @param {Object} event.navigator * [en]Component object.[/en] * [ja]コンポーネントのオブジェクト。[/ja] * @param {Object} event.currentPage * [en]Current page object.[/en] * [ja]現在のpageオブジェクト。[/ja] * @param {Function} event.cancel * [en]Call this function to cancel the push.[/en] * [ja]この関数を呼び出すと、push処理がキャンセルされます。[/ja] */ /** * @ngdoc event * @name prepop * @description * [en]Fired just before a page is popped.[/en] * [ja]pageがpopされる直前に発火されます。[/ja] * @param {Object} event [en]Event object.[/en] * @param {Object} event.navigator * [en]Component object.[/en] * [ja]コンポーネントのオブジェクト。[/ja] * @param {Object} event.currentPage * [en]Current page object.[/en] * [ja]現在のpageオブジェクト。[/ja] * @param {Function} event.cancel * [en]Call this function to cancel the pop.[/en] * [ja]この関数を呼び出すと、pageのpopがキャンセルされます。[/ja] */ /** * @ngdoc event * @name postpush * @description * [en]Fired just after a page is pushed.[/en] * [ja]pageがpushされてアニメーションが終了してから発火されます。[/ja] * @param {Object} event [en]Event object.[/en] * @param {Object} event.navigator * [en]Component object.[/en] * [ja]コンポーネントのオブジェクト。[/ja] * @param {Object} event.enterPage * [en]Object of the next page.[/en] * [ja]pushされたpageオブジェクト。[/ja] * @param {Object} event.leavePage * [en]Object of the previous page.[/en] * [ja]以前のpageオブジェクト。[/ja] */ /** * @ngdoc event * @name postpop * @description * [en]Fired just after a page is popped.[/en] * [ja]pageがpopされてアニメーションが終わった後に発火されます。[/ja] * @param {Object} event [en]Event object.[/en] * @param {Object} event.navigator * [en]Component object.[/en] * [ja]コンポーネントのオブジェクト。[/ja] * @param {Object} event.enterPage * [en]Object of the next page.[/en] * [ja]popされて表示されるページのオブジェクト。[/ja] * @param {Object} event.leavePage * [en]Object of the previous page.[/en] * [ja]popされて消えるページのオブジェクト。[/ja] */ /** * @ngdoc attribute * @name page * @type {String} * @description * [en]First page to show when navigator is initialized.[/en] * [ja]ナビゲーターが初期化された時に表示するページを指定します。[/ja] */ /** * @ngdoc attribute * @name var * @type {String} * @description * [en]Variable name to refer this navigator.[/en] * [ja]このナビゲーターを参照するための名前を指定します。[/ja] */ /** * @ngdoc attribute * @name ons-prepush * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "prepush" event is fired.[/en] * [ja]"prepush"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-prepop * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "prepop" event is fired.[/en] * [ja]"prepop"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-postpush * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "postpush" event is fired.[/en] * [ja]"postpush"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-postpop * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "postpop" event is fired.[/en] * [ja]"postpop"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-destroy * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en] * [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc method * @signature pushPage(pageUrl, [options]) * @param {String} pageUrl * [en]Page URL. Can be either a HTML document or a <code>&lt;ons-template&gt;</code>.[/en] * [ja]pageのURLか、もしくはons-templateで宣言したテンプレートのid属性の値を指定できます。[/ja] * @param {Object} [options] * [en]Parameter object.[/en] * [ja]オプションを指定するオブジェクト。[/ja] * @param {String} [options.animation] * [en]Animation name. Available animations are "slide", "simpleslide", "lift", "fade" and "none".[/en] * [ja]アニメーション名を指定します。"slide", "simpleslide", "lift", "fade", "none"のいずれかを指定できます。[/ja] * @param {Function} [options.onTransitionEnd] * [en]Function that is called when the transition has ended.[/en] * [ja]pushPage()による画面遷移が終了した時に呼び出される関数オブジェクトを指定します。[/ja] * @description * [en]Pushes the specified pageUrl into the page stack.[/en] * [ja]指定したpageUrlを新しいページスタックに追加します。新しいページが表示されます。[/ja] */ /** * @ngdoc method * @signature insertPage(index, pageUrl, [options]) * @param {Number} index * [en]The index where it should be inserted.[/en] * [ja]スタックに挿入する位置のインデックスを指定します。[/ja] * @param {String} pageUrl * [en]Page URL. Can be either a HTML document or a <code>&lt;ons-template&gt;</code>.[/en] * [ja]pageのURLか、もしくはons-templateで宣言したテンプレートのid属性の値を指定できます。[/ja] * @param {Object} [options] * [en]Parameter object.[/en] * [ja]オプションを指定するオブジェクト。[/ja] * @param {String} [options.animation] * [en]Animation name. Available animations are "slide", "simpleslide", "lift", "fade" and "none".[/en] * [ja]アニメーション名を指定します。"slide", "simpleslide", "lift", "fade", "none"のいずれかを指定できます。[/ja] * @description * [en]Insert the specified pageUrl into the page stack with specified index.[/en] * [ja]指定したpageUrlをページスタックのindexで指定した位置に追加します。[/ja] */ /** * @ngdoc method * @signature popPage([options]) * @param {Object} [options] * [en]Parameter object.[/en] * [ja]オプションを指定するオブジェクト。[/ja] * @param {String} [options.animation] * [en]Animation name. Available animations are "slide", "simpleslide", "lift", "fade" and "none".[/en] * [ja]アニメーション名を指定します。"slide", "simpleslide", "lift", "fade", "none"のいずれかを指定できます。[/ja] * @param {Function} [options.onTransitionEnd] * [en]Function that is called when the transition has ended.[/en] * [ja]このメソッドによる画面遷移が終了した際に呼び出される関数オブジェクトを指定します。[/ja] * @description * [en]Pops the current page from the page stack. The previous page will be displayed.[/en] * [ja]現在表示中のページをページスタックから取り除きます。一つ前のページに戻ります。[/ja] */ /** * @ngdoc method * @signature replacePage(pageUrl, [options]) * @param {String} pageUrl * [en]Page URL. Can be either a HTML document or an <code>&lt;ons-template&gt;</code>.[/en] * [ja]pageのURLか、もしくはons-templateで宣言したテンプレートのid属性の値を指定できます。[/ja] * @param {Object} [options] * [en]Parameter object.[/en] * [ja]オプションを指定するオブジェクト。[/ja] * @param {String} [options.animation] * [en]Animation name. Available animations are "slide", "simpleslide", "lift", "fade" and "none".[/en] * [ja]アニメーション名を指定できます。"slide", "simpleslide", "lift", "fade", "none"のいずれかを指定できます。[/ja] * @param {Function} [options.onTransitionEnd] * [en]Function that is called when the transition has ended.[/en] * [ja]このメソッドによる画面遷移が終了した際に呼び出される関数オブジェクトを指定します。[/ja] * @description * [en]Replaces the current page with the specified one.[/en] * [ja]現在表示中のページをを指定したページに置き換えます。[/ja] */ /** * @ngdoc method * @signature resetToPage(pageUrl, [options]) * @param {String} pageUrl * [en]Page URL. Can be either a HTML document or an <code>&lt;ons-template&gt;</code>.[/en] * [ja]pageのURLか、もしくはons-templateで宣言したテンプレートのid属性の値を指定できます。[/ja] * @param {Object} [options] * [en]Parameter object.[/en] * [ja]オプションを指定するオブジェクト。[/ja] * @param {String} [options.animation] * [en]Animation name. Available animations are "slide", "simpleslide", "lift", "fade" and "none".[/en] * [ja]アニメーション名を指定できます。"slide", "simpleslide", "lift", "fade", "none"のいずれかを指定できます。[/ja] * @param {Function} [options.onTransitionEnd] * [en]Function that is called when the transition has ended.[/en] * [ja]このメソッドによる画面遷移が終了した際に呼び出される関数オブジェクトを指定します。[/ja] * @description * [en]Clears page stack and adds the specified pageUrl to the page stack.[/en] * [ja]ページスタックをリセットし、指定したページを表示します。[/ja] */ /** * @ngdoc method * @signature getCurrentPage() * @return {Object} * [en]Current page object.[/en] * [ja]現在のpageオブジェクト。[/ja] * @description * [en]Get current page's navigator item. Use this method to access options passed by pushPage() or resetToPage() method.[/en] * [ja]現在のページを取得します。pushPage()やresetToPage()メソッドの引数を取得できます。[/ja] */ /** * @ngdoc method * @signature getPages() * @return {List} * [en]List of page objects.[/en] * [ja]pageオブジェクトの配列。[/ja] * @description * [en]Retrieve the entire page stack of the navigator.[/en] * [ja]ナビゲーターの持つページスタックの一覧を取得します。[/ja] */ /** * @ngdoc method * @signature getDeviceBackButtonHandler() * @return {Object} * [en]Device back button handler.[/en] * [ja]デバイスのバックボタンハンドラを返します。[/ja] * @description * [en]Retrieve the back button handler for overriding the default behavior.[/en] * [ja]バックボタンハンドラを取得します。デフォルトの挙動を変更することができます。[/ja] */ /** * @ngdoc method * @signature on(eventName, listener) * @description * [en]Add an event listener.[/en] * [ja]イベントリスナーを追加します。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]このイベントが発火された際に呼び出される関数オブジェクトを指定します。[/ja] */ /** * @ngdoc method * @signature once(eventName, listener) * @description * [en]Add an event listener that's only triggered once.[/en] * [ja]一度だけ呼び出されるイベントリスナーを追加します。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja] */ /** * @ngdoc method * @signature off(eventName, [listener]) * @description * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en] * [ja]イベントリスナーを削除します。もしイベントリスナーを指定しなかった場合には、そのイベントに紐づく全てのイベントリスナーが削除されます。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]削除するイベントリスナーを指定します。[/ja] */ (function() { 'use strict'; var module = angular.module('onsen'); module.directive('onsNavigator', ['$compile', 'NavigatorView', '$onsen', function($compile, NavigatorView, $onsen) { return { restrict: 'E', // NOTE: This element must coexists with ng-controller. // Do not use isolated scope and template's ng-transclude. transclude: false, scope: true, compile: function(element) { var html = $onsen.normalizePageHTML(element.html()); element.contents().remove(); return { pre: function(scope, element, attrs, controller) { var navigator = new NavigatorView(scope, element, attrs); $onsen.declareVarAttribute(attrs, navigator); $onsen.registerEventHandlers(navigator, 'prepush prepop postpush postpop destroy'); if (attrs.page) { navigator.pushPage(attrs.page, {}); } else { var pageScope = navigator._createPageScope(); var pageElement = angular.element(html); var linkScope = $compile(pageElement); var link = function() { linkScope(pageScope); }; navigator._pushPageDOM('', pageElement, link, pageScope, {}); pageElement = null; } element.data('ons-navigator', navigator); scope.$on('$destroy', function() { navigator._events = undefined; element.data('ons-navigator', undefined); element = null; }); }, post: function(scope, element, attrs) { $onsen.fireComponentEvent(element[0], 'init'); } }; } }; }]); })(); /** * @ngdoc directive * @id page * @name ons-page * @category base * @description * [en]Should be used as root component of each page. The content inside page component is scrollable.[/en] * [ja]ページ定義のためのコンポーネントです。このコンポーネントの内容はスクロールが許可されます。[/ja] * @guide ManagingMultiplePages * [en]Managing multiple pages[/en] * [ja]複数のページを管理する[/ja] * @guide Pageinitevent * [en]Event for page initialization[/en] * [ja]ページ初期化のイベント[/ja] * @guide HandlingBackButton * [en]Handling back button[/en] * [ja]バックボタンに対応する[/ja] * @guide OverridingCSSstyles * [en]Overriding CSS styles[/en] * [ja]CSSスタイルのオーバーライド[/ja] * @guide DefiningMultiplePagesinSingleHTML * [en]Defining multiple pages in single html[/en] * [ja]複数のページを1つのHTMLに記述する[/ja] * @example * <ons-page> * <ons-toolbar> * <div class="center">Title</div> * </ons-toolbar> * * ... * </ons-page> */ /** * @ngdoc attribute * @name var * @type {String} * @description * [en]Variable name to refer this page.[/en] * [ja]このページを参照するための名前を指定します。[/ja] */ /** * @ngdoc attribute * @name modifier * @type {String} * @description * [en]Specify modifier name to specify custom styles.[/en] * [ja]スタイル定義をカスタマイズするための名前を指定します。[/ja] */ /** * @ngdoc attribute * @name on-device-backbutton * @type {Expression} * @description * [en]Allows you to specify custom behavior when the back button is pressed.[/en] * [ja]デバイスのバックボタンが押された時の挙動を設定できます。[/ja] */ /** * @ngdoc attribute * @name ng-device-backbutton * @type {Expression} * @description * [en]Allows you to specify custom behavior with an AngularJS expression when the back button is pressed.[/en] * [ja]デバイスのバックボタンが押された時の挙動を設定できます。AngularJSのexpressionを指定できます。[/ja] */ /** * @ngdoc method * @signature getDeviceBackButtonHandler() * @return {Object} * [en]Device back button handler.[/en] * [ja]デバイスのバックボタンハンドラを返します。[/ja] * @description * [en]Get the associated back button handler. This method may return null if no handler is assigned.[/en] * [ja]バックボタンハンドラを取得します。このメソッドはnullを返す場合があります。[/ja] */ (function() { 'use strict'; var module = angular.module('onsen'); module.directive('onsPage', ['$onsen', 'PageView', function($onsen, PageView) { function firePageInitEvent(element) { // TODO: remove dirty fix var i = 0; var f = function() { if (i++ < 5) { if (isAttached(element)) { fillStatusBar(element); $onsen.fireComponentEvent(element, 'init'); fireActualPageInitEvent(element); } else { setImmediate(f); } } else { throw new Error('Fail to fire "pageinit" event. Attach "ons-page" element to the document after initialization.'); } }; f(); } function fireActualPageInitEvent(element) { var event = document.createEvent('HTMLEvents'); event.initEvent('pageinit', true, true); element.dispatchEvent(event); } function fillStatusBar(element) { if ($onsen.shouldFillStatusBar(element)) { // Adjustments for IOS7 var fill = angular.element(document.createElement('div')); fill.addClass('page__status-bar-fill'); fill.css({width: '0px', height: '0px'}); angular.element(element).prepend(fill); } } function isAttached(element) { if (document.documentElement === element) { return true; } return element.parentNode ? isAttached(element.parentNode) : false; } function preLink(scope, element, attrs, controller, transclude) { var page = new PageView(scope, element, attrs); $onsen.declareVarAttribute(attrs, page); element.data('ons-page', page); var modifierTemplater = $onsen.generateModifierTemplater(attrs), template = 'page--*'; element.addClass('page ' + modifierTemplater(template)); $onsen.addModifierMethods(page, template, element); var pageContent = angular.element(element[0].querySelector('.page__content')); pageContent.addClass(modifierTemplater('page--*__content')); pageContent = null; var pageBackground = angular.element(element[0].querySelector('.page__background')); pageBackground.addClass(modifierTemplater('page--*__background')); pageBackground = null; $onsen.cleaner.onDestroy(scope, function() { page._events = undefined; $onsen.removeModifierMethods(page); element.data('ons-page', undefined); $onsen.clearComponent({ element: element, scope: scope, attrs: attrs }); scope = element = attrs = null; }); } function postLink(scope, element, attrs) { firePageInitEvent(element[0]); } return { restrict: 'E', // NOTE: This element must coexists with ng-controller. // Do not use isolated scope and template's ng-transclde. transclude: false, scope: false, compile: function(element) { var children = element.children().remove(); var content = angular.element('<div class="page__content ons-page-inner"></div>').append(children); var background = angular.element('<div class="page__background"></div>'); if (element.attr('style')) { background.attr('style', element.attr('style')); element.attr('style', ''); } element.append(background); if (Modernizr.csstransforms3d) { element.append(content); } else { content.css('overflow', 'visible'); var wrapper = angular.element('<div></div>'); wrapper.append(children); content.append(wrapper); element.append(content); wrapper = null; // IScroll for Android2 var scroller = new IScroll(content[0], { momentum: true, bounce: true, hScrollbar: false, vScrollbar: false, preventDefault: false }); var offset = 10; scroller.on('scrollStart', function(e) { var scrolled = scroller.y - offset; if (scrolled < (scroller.maxScrollY + 40)) { // TODO: find a better way to know when content is upated so we can refresh scroller.refresh(); } }); } content = null; background = null; children = null; return { pre: preLink, post: postLink }; } }; }]); })(); /** * @ngdoc directive * @id popover * @name ons-popover * @category popover * @modifier android * [en]Display an Android style popover.[/en] * [ja]Androidライクなポップオーバーを表示します。[/ja] * @description * [en]A component that displays a popover next to an element.[/en] * [ja]ある要素を対象とするポップオーバーを表示するコンポーネントです。[/ja] * @codepen ZYYRKo * @example * <script> * ons.ready(function() { * ons.createPopover('popover.html').then(function(popover) { * popover.show('#mybutton'); * }); * }); * </script> * * <script type="text/ons-template" id="popover.html"> * <ons-popover cancelable> * <p style="text-align: center; opacity: 0.5;">This popover will choose which side it's displayed on automatically.</p> * </ons-popover> * </script> */ /** * @ngdoc event * @name preshow * @description * [en]Fired just before the popover is displayed.[/en] * [ja]ポップオーバーが表示される直前に発火します。[/ja] * @param {Object} event [en]Event object.[/en] * @param {Object} event.popover * [en]Component object.[/en] * [ja]コンポーネントのオブジェクト。[/ja] * @param {Function} event.cancel * [en]Call this function to stop the popover from being shown.[/en] * [ja]この関数を呼び出すと、ポップオーバーの表示がキャンセルされます。[/ja] */ /** * @ngdoc event * @name postshow * @description * [en]Fired just after the popover is displayed.[/en] * [ja]ポップオーバーが表示された直後に発火します。[/ja] * @param {Object} event [en]Event object.[/en] * @param {Object} event.popover * [en]Component object.[/en] * [ja]コンポーネントのオブジェクト。[/ja] */ /** * @ngdoc event * @name prehide * @description * [en]Fired just before the popover is hidden.[/en] * [ja]ポップオーバーが隠れる直前に発火します。[/ja] * @param {Object} event [en]Event object.[/en] * @param {Object} event.popover * [en]Component object.[/en] * [ja]コンポーネントのオブジェクト。[/ja] * @param {Function} event.cancel * [en]Call this function to stop the popover from being hidden.[/en] * [ja]この関数を呼び出すと、ポップオーバーが隠れる処理をキャンセルします。[/ja] */ /** * @ngdoc event * @name posthide * @description * [en]Fired just after the popover is hidden.[/en] * [ja]ポップオーバーが隠れた後に発火します。[/ja] * @param {Object} event [en]Event object.[/en] * @param {Object} event.popover * [en]Component object.[/en] * [ja]コンポーネントのオブジェクト。[/ja] */ /** * @ngdoc attribute * @name var * @type {String} * @description * [en]Variable name to refer this popover.[/en] * [ja]このポップオーバーを参照するための名前を指定します。[/ja] */ /** * @ngdoc attribute * @name modifier * @type {String} * @description * [en]The appearance of the popover.[/en] * [ja]ポップオーバーの表現を指定します。[/ja] */ /** * @ngdoc attribute * @name direction * @type {String} * @description * [en] * A space separated list of directions. If more than one direction is specified, * it will be chosen automatically. Valid directions are "up", "down", "left" and "right". * [/en] * [ja] * ポップオーバーを表示する方向を空白区切りで複数指定できます。 * 指定できる方向は、"up", "down", "left", "right"の4つです。空白区切りで複数指定することもできます。 * 複数指定された場合、対象とする要素に合わせて指定した値から自動的に選択されます。 * [/ja] */ /** * @ngdoc attribute * @name cancelable * @description * [en]If this attribute is set the popover can be closed by tapping the background or by pressing the back button.[/en] * [ja]この属性があると、ポップオーバーが表示された時に、背景やバックボタンをタップした時にをポップオーバー閉じます。[/ja] */ /** * @ngdoc attribute * @name disabled * @description * [en]If this attribute is set the popover is disabled.[/en] * [ja]この属性がある時、ポップオーバーはdisabled状態になります。[/ja] */ /** * @ngdoc attribute * @name animation * @type {String} * @description * [en]The animation used when showing an hiding the popover. Can be either "none" or "fade".[/en] * [ja]ポップオーバーを表示する際のアニメーション名を指定します。[/ja] */ /** * @ngdoc attribute * @name mask-color * @type {Color} * @description * [en]Color of the background mask. Default is "rgba(0, 0, 0, 0.2)".[/en] * [ja]背景のマスクの色を指定します。デフォルトは"rgba(0, 0, 0, 0.2)"です。[/ja] */ /** * @ngdoc attribute * @name ons-preshow * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "preshow" event is fired.[/en] * [ja]"preshow"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-prehide * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "prehide" event is fired.[/en] * [ja]"prehide"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-postshow * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "postshow" event is fired.[/en] * [ja]"postshow"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-posthide * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "posthide" event is fired.[/en] * [ja]"posthide"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-destroy * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en] * [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc method * @signature show(target, [options]) * @param {String|Event|HTMLElement} target * [en]Target element. Can be either a CSS selector, an event object or a DOM element.[/en] * [ja]ポップオーバーのターゲットとなる要素を指定します。CSSセレクタかeventオブジェクトかDOM要素のいずれかを渡せます。[/ja] * @param {Object} [options] * [en]Parameter object.[/en] * [ja]オプションを指定するオブジェクト。[/ja] * @param {String} [options.animation] * [en]Animation name. Available animations are "fade" and "none".[/en] * [ja]アニメーション名を指定します。"fade"もしくは"none"を指定できます。[/ja] * @description * [en]Open the popover and point it at a target. The target can be either an event, a css selector or a DOM element..[/en] * [ja]対象とする要素にポップオーバーを表示します。target引数には、$eventオブジェクトやDOMエレメントやCSSセレクタを渡すことが出来ます。[/ja] */ /** * @ngdoc method * @signature hide([options]) * @param {Object} [options] * [en]Parameter object.[/en] * [ja]オプションを指定するオブジェクト。[/ja] * @param {String} [options.animation] * [en]Animation name. Available animations are "fade" and "none".[/en] * [ja]アニメーション名を指定します。"fade"もしくは"none"を指定できます。[/ja] * @description * [en]Close the popover.[/en] * [ja]ポップオーバーを閉じます。[/ja] */ /** * @ngdoc method * @signature isShown() * @return {Boolean} * [en]true if the popover is visible.[/en] * [ja]ポップオーバーが表示されている場合にtrueとなります。[/ja] * @description * [en]Returns whether the popover is visible or not.[/en] * [ja]ポップオーバーが表示されているかどうかを返します。[/ja] */ /** * @ngdoc method * @signature destroy() * @description * [en]Destroy the popover and remove it from the DOM tree.[/en] * [ja]ポップオーバーを破棄して、DOMツリーから取り除きます。[/ja] */ /** * @ngdoc method * @signature setCancelable(cancelable) * @param {Boolean} cancelable * [en]If true the popover will be cancelable.[/en] * [ja]ポップオーバーがキャンセル可能にしたい場合にtrueを指定します。[/ja] * @description * [en]Set whether the popover can be canceled by the user when it is shown.[/en] * [ja]ポップオーバーを表示した際に、ユーザがそのポップオーバーをキャンセルできるかどうかを指定します。[/ja] */ /** * @ngdoc method * @signature isCancelable() * @return {Boolean} * [en]true if the popover is cancelable.[/en] * [ja]ポップオーバーがキャンセル可能であればtrueとなります。[/ja] * @description * [en]Returns whether the popover is cancelable or not.[/en] * [ja]このポップオーバーがキャンセル可能かどうかを返します。[/ja] */ /** * @ngdoc method * @signature setDisabled(disabled) * @param {Boolean} disabled * [en]If true the popover will be disabled.[/en] * [ja]ポップオーバーをdisabled状態にしたい場合にはtrueを指定します。[/ja] * @description * [en]Disable or enable the popover.[/en] * [ja]このポップオーバーをdisabled状態にするかどうかを設定します。[/ja] */ /** * @ngdoc method * @signature isDisabled() * @return {Boolean} * [en]true if the popover is disabled.[/en] * [ja]ポップオーバーがdisabled状態であればtrueとなります。[/ja] * @description * [en]Returns whether the popover is disabled or enabled.[/en] * [ja]このポップオーバーがdisabled状態かどうかを返します。[/ja] */ /** * @ngdoc method * @signature on(eventName, listener) * @description * [en]Add an event listener.[/en] * [ja]イベントリスナーを追加します。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]このイベントが発火された際に呼び出される関数オブジェクトを指定します。[/ja] */ /** * @ngdoc method * @signature once(eventName, listener) * @description * [en]Add an event listener that's only triggered once.[/en] * [ja]一度だけ呼び出されるイベントリスナーを追加します。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja] */ /** * @ngdoc method * @signature off(eventName, [listener]) * @description * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en] * [ja]イベントリスナーを削除します。もしイベントリスナーを指定しなかった場合には、そのイベントに紐づく全てのイベントリスナーが削除されます。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]削除するイベントリスナーを指定します。[/ja] */ (function(){ 'use strict'; var module = angular.module('onsen'); module.directive('onsPopover', ['$onsen', 'PopoverView', function($onsen, PopoverView) { return { restrict: 'E', replace: false, transclude: true, scope: true, templateUrl: $onsen.DIRECTIVE_TEMPLATE_URL + '/popover.tpl', compile: function(element, attrs, transclude) { return { pre: function(scope, element, attrs) { transclude(scope, function(clone) { angular.element(element[0].querySelector('.popover__content')).append(clone); }); var popover = new PopoverView(scope, element, attrs); $onsen.declareVarAttribute(attrs, popover); $onsen.registerEventHandlers(popover, 'preshow prehide postshow posthide destroy'); element.data('ons-popover', popover); scope.$on('$destroy', function() { popover._events = undefined; $onsen.removeModifierMethods(popover); element.data('ons-popover', undefined); element = null; }); scope.modifierTemplater = $onsen.generateModifierTemplater(attrs); $onsen.addModifierMethods(popover, 'popover--*', angular.element(element[0].querySelector('.popover'))); $onsen.addModifierMethods(popover, 'popover__content--*', angular.element(element[0].querySelector('.popover__content'))); if ($onsen.isAndroid()) { setImmediate(function() { popover.addModifier('android'); }); } scope.direction = 'up'; scope.arrowPosition = 'bottom'; }, post: function(scope, element) { $onsen.fireComponentEvent(element[0], 'init'); } }; } }; }]); })(); /** * @ngdoc directive * @id pull-hook * @name ons-pull-hook * @category control * @description * [en]Component that adds "pull-to-refresh" to an <ons-page> element.[/en] * [ja]ons-page要素以下でいわゆるpull to refreshを実装するためのコンポーネントです。[/ja] * @codepen WbJogM * @guide UsingPullHook * [en]How to use Pull Hook[/en] * [ja]プルフックを使う[/ja] * @example * <script> * ons.bootstrap() * * .controller('MyController', function($scope, $timeout) { * $scope.items = [3, 2 ,1]; * * $scope.load = function($done) { * $timeout(function() { * $scope.items.unshift($scope.items.length + 1); * $done(); * }, 1000); * }; * }); * </script> * * <ons-page ng-controller="MyController"> * <ons-pull-hook var="loaded" ng-action="load($done)"> * <span ng-switch="loader.getCurrentState()"> * <span ng-switch-when="initial">Pull down to refresh</span> * <span ng-switch-when="preaction">Release to refresh</span> * <span ng-switch-when="action">Loading data. Please wait...</span> * </span> * </ons-pull-hook> * <ons-list> * <ons-list-item ng-repeat="item in items"> * Item #{{ item }} * </ons-list-item> * </ons-list> * </ons-page> */ /** * @ngdoc event * @name changestate * @description * [en]Fired when the state is changed. The state can be either "initial", "preaction" or "action".[/en] * [ja]コンポーネントの状態が変わった場合に発火します。状態は、"initial", "preaction", "action"のいずれかです。[/ja] * @param {Object} event * [en]Event object.[/en] * [ja]イベントオブジェクト。[/ja] * @param {Object} event.pullHook * [en]Component object.[/en] * [ja]コンポーネントのオブジェクト。[/ja] * @param {String} event.state * [en]Current state.[/en] * [ja]現在の状態名を参照できます。[/ja] */ /** * @ngdoc attribute * @name var * @type {String} * @description * [en]Variable name to refer this component.[/en] * [ja]このコンポーネントを参照するための名前を指定します。[/ja] */ /** * @ngdoc attribute * @name disabled * @description * [en]If this attribute is set the "pull-to-refresh" functionality is disabled.[/en] * [ja]この属性がある時、disabled状態になりアクションが実行されなくなります[/ja] */ /** * @ngdoc attribute * @name ng-action * @type {Expression} * @description * [en]Use to specify custom behavior when the page is pulled down. A <code>$done</code> function is available to tell the component that the action is completed.[/en] * [ja]pull downしたときの振る舞いを指定します。アクションが完了した時には<code>$done</code>関数を呼び出します。[/ja] */ /** * @ngdoc attribute * @name on-action * @type {Expression} * @description * [en]Same as <code>ng-action</code> but can be used without AngularJS. A function called <code>done</code> is available to call when action is complete.[/en] * [ja]<code>ng-action</code>と同じですが、AngularJS無しで利用する場合に利用できます。アクションが完了した時には<code>done</code>関数を呼び出します。[/ja] */ /** * @ngdoc attribute * @name height * @type {String} * @description * [en]Specify the height of the component. When pulled down further than this value it will switch to the "preaction" state. The default value is "64px".[/en] * [ja]コンポーネントの高さを指定します。この高さ以上にpull downすると"preaction"状態に移行します。デフォルトの値は"64px"です。[/ja] */ /** * @ngdoc attribute * @name threshold-height * @type {String} * @description * [en]Specify the threshold height. The component automatically switches to the "action" state when pulled further than this value. The default value is "96px". A negative value or a value less than the height will disable this property.[/en] * [ja]閾値となる高さを指定します。この値で指定した高さよりもpull downすると、このコンポーネントは自動的に"action"状態に移行します。[/ja] */ /** * @ngdoc attribute * @name ons-changestate * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "changestate" event is fired.[/en] * [ja]"changestate"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc method * @signature setDisabled(disabled) * @param {Boolean} disabled * [en]If true the pull hook will be disabled.[/en] * [ja]trueを指定すると、プルフックがdisabled状態になります。[/ja] * @description * [en]Disable or enable the component.[/en] * [ja]disabled状態にするかどうかを設定できます。[/ja] */ /** * @ngdoc method * @signature isDisabled() * @return {Boolean} * [en]true if the pull hook is disabled.[/en] * [ja]プルフックがdisabled状態の場合、trueを返します。[/ja] * @description * [en]Returns whether the component is disabled or enabled.[/en] * [ja]dsiabled状態になっているかを得ることが出来ます。[/ja] */ /** * @ngdoc method * @signature setHeight(height) * @param {Number} height * [en]Desired height.[/en] * [ja]要素の高さを指定します。[/ja] * @description * [en]Specify the height.[/en] * [ja]高さを指定できます。[/ja] */ /** * @ngdoc method * @signature setThresholdHeight(thresholdHeight) * @param {Number} thresholdHeight * [en]Desired threshold height.[/en] * [ja]プルフックのアクションを起こす閾値となる高さを指定します。[/ja] * @description * [en]Specify the threshold height.[/en] * [ja]閾値となる高さを指定できます。[/ja] */ /** * @ngdoc method * @signature on(eventName, listener) * @description * [en]Add an event listener.[/en] * [ja]イベントリスナーを追加します。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]このイベントが発火された際に呼び出される関数オブジェクトを指定します。[/ja] */ /** * @ngdoc method * @signature once(eventName, listener) * @description * [en]Add an event listener that's only triggered once.[/en] * [ja]一度だけ呼び出されるイベントリスナーを追加します。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja] */ /** * @ngdoc method * @signature off(eventName, [listener]) * @description * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en] * [ja]イベントリスナーを削除します。もしイベントリスナーを指定しなかった場合には、そのイベントに紐づく全てのイベントリスナーが削除されます。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]削除するイベントリスナーを指定します。[/ja] */ (function() { 'use strict'; var module = angular.module('onsen'); /** * Pull hook directive. */ module.directive('onsPullHook', ['$onsen', 'PullHookView', function($onsen, PullHookView) { return { restrict: 'E', replace: false, scope: true, compile: function(element, attrs) { return { pre: function(scope, element, attrs) { var pullHook = new PullHookView(scope, element, attrs); $onsen.declareVarAttribute(attrs, pullHook); $onsen.registerEventHandlers(pullHook, 'changestate destroy'); element.data('ons-pull-hook', pullHook); scope.$on('$destroy', function() { pullHook._events = undefined; element.data('ons-pull-hook', undefined); scope = element = attrs = null; }); }, post: function(scope, element) { $onsen.fireComponentEvent(element[0], 'init'); } }; } }; }]); })(); /** * @ngdoc directive * @id row * @name ons-row * @category grid * @description * [en]Represents a row in the grid system. Use with ons-col to layout components.[/en] * [ja]グリッドシステムにて行を定義します。ons-colとともに使用し、コンポーネントの配置に使用します。[/ja] * @codepen GgujC {wide} * @guide Layouting * [en]Layouting guide[/en] * [ja]レイアウト調整[/ja] * @seealso ons-col * [en]ons-col component[/en] * [ja]ons-colコンポーネント[/ja] * @note * [en]For Android 4.3 and earlier, and iOS6 and earlier, when using mixed alignment with ons-row and ons-column, they may not be displayed correctly. You can use only one align.[/en] * [ja]Android 4.3以前、もしくはiOS 6以前のOSの場合、ons-rowとons-columnを組み合わせた場合に描画が崩れる場合があります。[/ja] * @example * <ons-row> * <ons-col width="50px"><ons-icon icon="fa-twitter"></ons-icon></ons-col> * <ons-col>Text</ons-col> * </ons-row> */ /** * @ngdoc attribute * @name align * @type {String} * @description * [en]Short hand attribute for aligning vertically. Valid values are top, bottom, and center.[/en] * [ja]縦に整列するために指定します。top、bottom、centerのいずれかを指定できます。[/ja] */ (function(){ 'use strict'; var module = angular.module('onsen'); module.directive('onsRow', ['$onsen', '$timeout', function($onsen, $timeout) { return { restrict: 'E', replace: false, // NOTE: This element must coexists with ng-controller. // Do not use isolated scope and template's ng-transclude. transclude: false, scope: false, compile: function(element, attrs) { element.addClass('row ons-row-inner'); return function(scope, element, attrs) { attrs.$observe('align', function(align) { update(); }); update(); function update() { var align = ('' + attrs.align).trim(); if (align === 'top' || align === 'center' || align === 'bottom') { element.removeClass('row-bottom row-center row-top'); element.addClass('row-' + align); } } $onsen.fireComponentEvent(element[0], 'init'); }; } }; }]); })(); /** * @ngdoc directive * @id scroller * @name ons-scroller * @category base * @description * [en]Makes the content inside this tag scrollable.[/en] * [ja]要素内をスクロール可能にします。[/ja] * @example * <ons-scroller style="height: 200px; width: 100%"> * ... * </ons-scroller> */ (function() { 'use strict'; var module = angular.module('onsen'); module.directive('onsScroller', ['$onsen', '$timeout', function($onsen, $timeout) { return { restrict: 'E', replace: false, transclude: true, scope: { onScrolled: '&', infinitScrollEnable: '=' }, compile: function(element, attrs) { var content = element.addClass('ons-scroller').children().remove(); return function(scope, element, attrs, controller, transclude) { if (attrs.ngController) { throw new Error('"ons-scroller" can\'t accept "ng-controller" directive.'); } var wrapper = angular.element('<div></div>'); wrapper.addClass('ons-scroller__content ons-scroller-inner'); element.append(wrapper); transclude(scope.$parent, function(cloned) { wrapper.append(cloned); wrapper = null; }); // inifinte scroll var scrollWrapper; scrollWrapper = element[0]; var offset = parseInt(attrs.threshold) || 10; if (scope.onScrolled) { scrollWrapper.addEventListener('scroll', function() { if (scope.infinitScrollEnable) { var scrollTopAndOffsetHeight = scrollWrapper.scrollTop + scrollWrapper.offsetHeight; var scrollHeightMinusOffset = scrollWrapper.scrollHeight - offset; if (scrollTopAndOffsetHeight >= scrollHeightMinusOffset) { scope.onScrolled(); } } }); } // IScroll for Android if (!Modernizr.csstransforms3d) { $timeout(function() { var iScroll = new IScroll(scrollWrapper, { momentum: true, bounce: true, hScrollbar: false, vScrollbar: false, preventDefault: false }); iScroll.on('scrollStart', function(e) { var scrolled = iScroll.y - offset; if (scrolled < (iScroll.maxScrollY + 40)) { // TODO: find a better way to know when content is upated so we can refresh iScroll.refresh(); } }); if (scope.onScrolled) { iScroll.on('scrollEnd', function(e) { var scrolled = iScroll.y - offset; if (scrolled < iScroll.maxScrollY) { // console.log('we are there!'); scope.onScrolled(); } }); } }, 500); } $onsen.fireComponentEvent(element[0], 'init'); }; } }; }]); })(); /** * @ngdoc directive * @id sliding_menu * @name ons-sliding-menu * @category navigation * @description * [en]Component for sliding UI where one page is overlayed over another page. The above page can be slided aside to reveal the page behind.[/en] * [ja]スライディングメニューを表現するためのコンポーネントで、片方のページが別のページの上にオーバーレイで表示されます。above-pageで指定されたページは、横からスライドして表示します。[/ja] * @codepen IDvFJ * @seealso ons-page * [en]ons-page component[/en] * [ja]ons-pageコンポーネント[/ja] * @guide UsingSlidingMenu * [en]Using sliding menu[/en] * [ja]スライディングメニューを使う[/ja] * @guide EventHandling * [en]Using events[/en] * [ja]イベントの利用[/ja] * @guide CallingComponentAPIsfromJavaScript * [en]Using navigator from JavaScript[/en] * [ja]JavaScriptからコンポーネントを呼び出す[/ja] * @guide DefiningMultiplePagesinSingleHTML * [en]Defining multiple pages in single html[/en] * [ja]複数のページを1つのHTMLに記述する[/ja] * @example * <ons-sliding-menu var="app.menu" main-page="page.html" menu-page="menu.html" max-slide-distance="200px" type="reveal" side="left"> * </ons-sliding-menu> * * <ons-template id="page.html"> * <ons-page> * <p style="text-align: center"> * <ons-button ng-click="app.menu.toggleMenu()">Toggle</ons-button> * </p> * </ons-page> * </ons-template> * * <ons-template id="menu.html"> * <ons-page> * <!-- menu page's contents --> * </ons-page> * </ons-template> * */ /** * @ngdoc event * @name preopen * @description * [en]Fired just before the sliding menu is opened.[/en] * [ja]スライディングメニューが開く前に発火します。[/ja] * @param {Object} event * [en]Event object.[/en] * [ja]イベントオブジェクトです。[/ja] * @param {Object} event.slidingMenu * [en]Sliding menu view object.[/en] * [ja]イベントが発火したSlidingMenuオブジェクトです。[/ja] */ /** * @ngdoc event * @name postopen * @description * [en]Fired just after the sliding menu is opened.[/en] * [ja]スライディングメニューが開き終わった後に発火します。[/ja] * @param {Object} event * [en]Event object.[/en] * [ja]イベントオブジェクトです。[/ja] * @param {Object} event.slidingMenu * [en]Sliding menu view object.[/en] * [ja]イベントが発火したSlidingMenuオブジェクトです。[/ja] */ /** * @ngdoc event * @name preclose * @description * [en]Fired just before the sliding menu is closed.[/en] * [ja]スライディングメニューが閉じる前に発火します。[/ja] * @param {Object} event * [en]Event object.[/en] * [ja]イベントオブジェクトです。[/ja] * @param {Object} event.slidingMenu * [en]Sliding menu view object.[/en] * [ja]イベントが発火したSlidingMenuオブジェクトです。[/ja] */ /** * @ngdoc event * @name postclose * @description * [en]Fired just after the sliding menu is closed.[/en] * [ja]スライディングメニューが閉じ終わった後に発火します。[/ja] * @param {Object} event * [en]Event object.[/en] * [ja]イベントオブジェクトです。[/ja] * @param {Object} event.slidingMenu * [en]Sliding menu view object.[/en] * [ja]イベントが発火したSlidingMenuオブジェクトです。[/ja] */ /** * @ngdoc attribute * @name var * @type {String} * @description * [en]Variable name to refer this sliding menu.[/en] * [ja]このスライディングメニューを参照するための名前を指定します。[/ja] */ /** * @ngdoc attribute * @name menu-page * @type {String} * @description * [en]The url of the menu page.[/en] * [ja]左に位置するメニューページのURLを指定します。[/ja] */ /** * @ngdoc attribute * @name main-page * @type {String} * @description * [en]The url of the main page.[/en] * [ja]右に位置するメインページのURLを指定します。[/ja] */ /** * @ngdoc attribute * @name swipeable * @type {Boolean} * @description * [en]Whether to enable swipe interaction.[/en] * [ja]スワイプ操作を有効にする場合に指定します。[/ja] */ /** * @ngdoc attribute * @name swipe-target-width * @type {String} * @description * [en]The width of swipeable area calculated from the left (in pixels). Use this to enable swipe only when the finger touch on the screen edge.[/en] * [ja]スワイプの判定領域をピクセル単位で指定します。画面の端から指定した距離に達するとページが表示されます。[/ja] */ /** * @ngdoc attribute * @name max-slide-distance * @type {String} * @description * [en]How far the menu page will slide open. Can specify both in px and %. eg. 90%, 200px[/en] * [ja]menu-pageで指定されたページの表示幅を指定します。ピクセルもしくは%の両方で指定できます(例: 90%, 200px)[/ja] */ /** * @ngdoc attribute * @name direction * @type {String} * @description * [en]Specify which side of the screen the menu page is located on. Possible values are "left" and "right".[/en] * [ja]menu-pageで指定されたページが画面のどちら側から表示されるかを指定します。leftもしくはrightのいずれかを指定できます。[/ja] */ /** * @ngdoc attribute * @name type * @type {String} * @description * [en]Sliding menu animator. Possible values are reveal (default), push and overlay.[/en] * [ja]スライディングメニューのアニメーションです。"reveal"(デフォルト)、"push"、"overlay"のいずれかを指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-preopen * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "preopen" event is fired.[/en] * [ja]"preopen"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-preclose * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "preclose" event is fired.[/en] * [ja]"preclose"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-postopen * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "postopen" event is fired.[/en] * [ja]"postopen"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-postclose * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "postclose" event is fired.[/en] * [ja]"postclose"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-destroy * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en] * [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc method * @signature setMainPage(pageUrl, [options]) * @param {String} pageUrl * [en]Page URL. Can be either an HTML document or an <code>&lt;ons-template&gt;</code>.[/en] * [ja]pageのURLか、ons-templateで宣言したテンプレートのid属性の値を指定します。[/ja] * @param {Object} [options] * [en]Parameter object.[/en] * [ja]オプションを指定するオブジェクト。[/ja] * @param {Boolean} [options.closeMenu] * [en]If true the menu will be closed.[/en] * [ja]trueを指定すると、開いているメニューを閉じます。[/ja] * @param {Function} [options.callback] * [en]Function that is executed after the page has been set.[/en] * [ja]ページが読み込まれた後に呼び出される関数オブジェクトを指定します。[/ja] * @description * [en]Show the page specified in pageUrl in the main contents pane.[/en] * [ja]中央部分に表示されるページをpageUrlに指定します。[/ja] */ /** * @ngdoc method * @signature setMenuPage(pageUrl, [options]) * @param {String} pageUrl * [en]Page URL. Can be either an HTML document or an <code>&lt;ons-template&gt;</code>.[/en] * [ja]pageのURLか、ons-templateで宣言したテンプレートのid属性の値を指定します。[/ja] * @param {Object} [options] * [en]Parameter object.[/en] * [ja]オプションを指定するオブジェクト。[/ja] * @param {Boolean} [options.closeMenu] * [en]If true the menu will be closed after the menu page has been set.[/en] * [ja]trueを指定すると、開いているメニューを閉じます。[/ja] * @param {Function} [options.callback] * [en]This function will be executed after the menu page has been set.[/en] * [ja]メニューページが読み込まれた後に呼び出される関数オブジェクトを指定します。[/ja] * @description * [en]Show the page specified in pageUrl in the side menu pane.[/en] * [ja]メニュー部分に表示されるページをpageUrlに指定します。[/ja] */ /** * @ngdoc method * @signature openMenu([options]) * @param {Object} [options] * [en]Parameter object.[/en] * [ja]オプションを指定するオブジェクト。[/ja] * @param {Function} [options.callback] * [en]This function will be called after the menu has been opened.[/en] * [ja]メニューが開いた後に呼び出される関数オブジェクトを指定します。[/ja] * @description * [en]Slide the above layer to reveal the layer behind.[/en] * [ja]メニューページを表示します。[/ja] */ /** * @ngdoc method * @signature closeMenu([options]) * @param {Object} [options] * [en]Parameter object.[/en] * [ja]オプションを指定するオブジェクト。[/ja] * @param {Function} [options.callback] * [en]This function will be called after the menu has been closed.[/en] * [ja]メニューが閉じられた後に呼び出される関数オブジェクトを指定します。[/ja] * @description * [en]Slide the above layer to hide the layer behind.[/en] * [ja]メニューページを非表示にします。[/ja] */ /** * @ngdoc method * @signature toggleMenu([options]) * @param {Object} [options] * [en]Parameter object.[/en] * [ja]オプションを指定するオブジェクト。[/ja] * @param {Function} [options.callback] * [en]This function will be called after the menu has been opened or closed.[/en] * [ja]メニューが開き終わった後か、閉じ終わった後に呼び出される関数オブジェクトです。[/ja] * @description * [en]Slide the above layer to reveal the layer behind if it is currently hidden, otherwise, hide the layer behind.[/en] * [ja]現在の状況に合わせて、メニューページを表示もしくは非表示にします。[/ja] */ /** * @ngdoc method * @signature isMenuOpened() * @return {Boolean} * [en]true if the menu is currently open.[/en] * [ja]メニューが開いていればtrueとなります。[/ja] * @description * [en]Returns true if the menu page is open, otherwise false.[/en] * [ja]メニューページが開いている場合はtrue、そうでない場合はfalseを返します。[/ja] */ /** * @ngdoc method * @signature getDeviceBackButtonHandler() * @return {Object} * [en]Device back button handler.[/en] * [ja]デバイスのバックボタンハンドラを返します。[/ja] * @description * [en]Retrieve the back-button handler.[/en] * [ja]ons-sliding-menuに紐付いているバックボタンハンドラを取得します。[/ja] */ /** * @ngdoc method * @signature setSwipeable(swipeable) * @param {Boolean} swipeable * [en]If true the menu will be swipeable.[/en] * [ja]スワイプで開閉できるようにする場合にはtrueを指定します。[/ja] * @description * [en]Specify if the menu should be swipeable or not.[/en] * [ja]スワイプで開閉するかどうかを設定する。[/ja] */ /** * @ngdoc method * @signature on(eventName, listener) * @description * [en]Add an event listener.[/en] * [ja]イベントリスナーを追加します。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]このイベントが発火された際に呼び出される関数オブジェクトを指定します。[/ja] */ /** * @ngdoc method * @signature once(eventName, listener) * @description * [en]Add an event listener that's only triggered once.[/en] * [ja]一度だけ呼び出されるイベントリスナーを追加します。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja] */ /** * @ngdoc method * @signature off(eventName, [listener]) * @description * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en] * [ja]イベントリスナーを削除します。もしイベントリスナーを指定しなかった場合には、そのイベントに紐づく全てのイベントリスナーが削除されます。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]削除するイベントリスナーを指定します。[/ja] */ (function() { 'use strict'; var module = angular.module('onsen'); module.directive('onsSlidingMenu', ['$compile', 'SlidingMenuView', '$onsen', function($compile, SlidingMenuView, $onsen) { return { restrict: 'E', replace: false, // NOTE: This element must coexists with ng-controller. // Do not use isolated scope and template's ng-transclude. transclude: false, scope: true, compile: function(element, attrs) { var main = element[0].querySelector('.main'), menu = element[0].querySelector('.menu'); if (main) { var mainHtml = angular.element(main).remove().html().trim(); } if (menu) { var menuHtml = angular.element(menu).remove().html().trim(); } return function(scope, element, attrs) { if (attrs.ngController) { throw new Error('This element can\'t accept ng-controller directive.'); } element.append(angular.element('<div></div>').addClass('onsen-sliding-menu__menu ons-sliding-menu-inner')); element.append(angular.element('<div></div>').addClass('onsen-sliding-menu__main ons-sliding-menu-inner')); var slidingMenu = new SlidingMenuView(scope, element, attrs); $onsen.registerEventHandlers(slidingMenu, 'preopen preclose postopen postclose destroy'); if (mainHtml && !attrs.mainPage) { slidingMenu._appendMainPage(null, mainHtml); } if (menuHtml && !attrs.menuPage) { slidingMenu._appendMenuPage(menuHtml); } $onsen.declareVarAttribute(attrs, slidingMenu); element.data('ons-sliding-menu', slidingMenu); scope.$on('$destroy', function(){ slidingMenu._events = undefined; element.data('ons-sliding-menu', undefined); }); $onsen.fireComponentEvent(element[0], 'init'); }; } }; }]); })(); /** * @ngdoc directive * @id split-view * @name ons-split-view * @category control * @description * [en]Divides the screen into a left and right section.[/en] * [ja]画面を左右に分割するコンポーネントです。[/ja] * @codepen nKqfv {wide} * @guide Usingonssplitviewcomponent * [en]Using ons-split-view.[/en] * [ja]ons-split-viewコンポーネントを使う[/ja] * @guide CallingComponentAPIsfromJavaScript * [en]Using navigator from JavaScript[/en] * [ja]JavaScriptからコンポーネントを呼び出す[/ja] * @example * <ons-split-view * secondary-page="secondary.html" * main-page="main.html" * main-page-width="70%" * collapse="portrait"> * </ons-split-view> */ /** * @ngdoc event * @name update * @description * [en]Fired when the split view is updated.[/en] * [ja]split viewの状態が更新された際に発火します。[/ja] * @param {Object} event * [en]Event object.[/en] * [ja]イベントオブジェクトです。[/ja] * @param {Object} event.splitView * [en]Split view object.[/en] * [ja]イベントが発火したSplitViewオブジェクトです。[/ja] * @param {Boolean} event.shouldCollapse * [en]True if the view should collapse.[/en] * [ja]collapse状態の場合にtrueになります。[/ja] * @param {String} event.currentMode * [en]Current mode.[/en] * [ja]現在のモード名を返します。"collapse"か"split"かのいずれかです。[/ja] * @param {Function} event.split * [en]Call to force split.[/en] * [ja]この関数を呼び出すと強制的にsplitモードにします。[/ja] * @param {Function} event.collapse * [en]Call to force collapse.[/en] * [ja]この関数を呼び出すと強制的にcollapseモードにします。[/ja] * @param {Number} event.width * [en]Current width.[/en] * [ja]現在のSplitViewの幅を返します。[/ja] * @param {String} event.orientation * [en]Current orientation.[/en] * [ja]現在の画面のオリエンテーションを返します。"portrait"かもしくは"landscape"です。 [/ja] */ /** * @ngdoc event * @name presplit * @description * [en]Fired just before the view is split.[/en] * [ja]split状態にる前に発火します。[/ja] * @param {Object} event * [en]Event object.[/en] * [ja]イベントオブジェクト。[/ja] * @param {Object} event.splitView * [en]Split view object.[/en] * [ja]イベントが発火したSplitViewオブジェクトです。[/ja] * @param {Number} event.width * [en]Current width.[/en] * [ja]現在のSplitViewnの幅です。[/ja] * @param {String} event.orientation * [en]Current orientation.[/en] * [ja]現在の画面のオリエンテーションを返します。"portrait"もしくは"landscape"です。[/ja] */ /** * @ngdoc event * @name postsplit * @description * [en]Fired just after the view is split.[/en] * [ja]split状態になった後に発火します。[/ja] * @param {Object} event * [en]Event object.[/en] * [ja]イベントオブジェクト。[/ja] * @param {Object} event.splitView * [en]Split view object.[/en] * [ja]イベントが発火したSplitViewオブジェクトです。[/ja] * @param {Number} event.width * [en]Current width.[/en] * [ja]現在のSplitViewnの幅です。[/ja] * @param {String} event.orientation * [en]Current orientation.[/en] * [ja]現在の画面のオリエンテーションを返します。"portrait"もしくは"landscape"です。[/ja] */ /** * @ngdoc event * @name precollapse * @description * [en]Fired just before the view is collapsed.[/en] * [ja]collapse状態になる前に発火します。[/ja] * @param {Object} event * [en]Event object.[/en] * [ja]イベントオブジェクト。[/ja] * @param {Object} event.splitView * [en]Split view object.[/en] * [ja]イベントが発火したSplitViewオブジェクトです。[/ja] * @param {Number} event.width * [en]Current width.[/en] * [ja]現在のSplitViewnの幅です。[/ja] * @param {String} event.orientation * [en]Current orientation.[/en] * [ja]現在の画面のオリエンテーションを返します。"portrait"もしくは"landscape"です。[/ja] */ /** * @ngdoc event * @name postcollapse * @description * [en]Fired just after the view is collapsed.[/en] * [ja]collapse状態になった後に発火します。[/ja] * @param {Object} event * [en]Event object.[/en] * [ja]イベントオブジェクト。[/ja] * @param {Object} event.splitView * [en]Split view object.[/en] * [ja]イベントが発火したSplitViewオブジェクトです。[/ja] * @param {Number} event.width * [en]Current width.[/en] * [ja]現在のSplitViewnの幅です。[/ja] * @param {String} event.orientation * [en]Current orientation.[/en] * [ja]現在の画面のオリエンテーションを返します。"portrait"もしくは"landscape"です。[/ja] */ /** * @ngdoc attribute * @name var * @type {String} * @description * [en]Variable name to refer this split view.[/en] * [ja]このスプリットビューコンポーネントを参照するための名前を指定します。[/ja] */ /** * @ngdoc attribute * @name main-page * @type {String} * @description * [en]The url of the page on the right.[/en] * [ja]右側に表示するページのURLを指定します。[/ja] */ /** * @ngdoc attribute * @name main-page-width * @type {Number} * @description * [en]Main page width percentage. The secondary page width will be the remaining percentage.[/en] * [ja]右側のページの幅をパーセント単位で指定します。[/ja] */ /** * @ngdoc attribute * @name secondary-page * @type {String} * @description * [en]The url of the page on the left.[/en] * [ja]左側に表示するページのURLを指定します。[/ja] */ /** * @ngdoc attribute * @name collapse * @type {String} * @description * [en] * Specify the collapse behavior. Valid values are portrait, landscape, width #px or a media query. * "portrait" or "landscape" means the view will collapse when device is in landscape or portrait orientation. * "width #px" means the view will collapse when the window width is smaller than the specified #px. * If the value is a media query, the view will collapse when the media query is true. * [/en] * [ja] * 左側のページを非表示にする条件を指定します。portrait, landscape、width #pxもしくはメディアクエリの指定が可能です。 * portraitもしくはlandscapeを指定すると、デバイスの画面が縦向きもしくは横向きになった時に適用されます。 * width #pxを指定すると、画面が指定した横幅よりも短い場合に適用されます。 * メディアクエリを指定すると、指定したクエリに適合している場合に適用されます。 * [/ja] */ /** * @ngdoc attribute * @name ons-update * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "update" event is fired.[/en] * [ja]"update"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-presplit * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "presplit" event is fired.[/en] * [ja]"presplit"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-precollapse * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "precollapse" event is fired.[/en] * [ja]"precollapse"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-postsplit * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "postsplit" event is fired.[/en] * [ja]"postsplit"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-postcollapse * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "postcollapse" event is fired.[/en] * [ja]"postcollapse"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-destroy * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en] * [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc method * @signature setMainPage(pageUrl) * @param {String} pageUrl * [en]Page URL. Can be either an HTML document or an <ons-template>.[/en] * [ja]pageのURLか、ons-templateで宣言したテンプレートのid属性の値を指定します。[/ja] * @description * [en]Show the page specified in pageUrl in the right section[/en] * [ja]指定したURLをメインページを読み込みます。[/ja] */ /** * @ngdoc method * @signature setSecondaryPage(pageUrl) * @param {String} pageUrl * [en]Page URL. Can be either an HTML document or an <ons-template>.[/en] * [ja]pageのURLか、ons-templateで宣言したテンプレートのid属性の値を指定します。[/ja] * @description * [en]Show the page specified in pageUrl in the left section[/en] * [ja]指定したURLを左のページの読み込みます。[/ja] */ /** * @ngdoc method * @signature update() * @description * [en]Trigger an 'update' event and try to determine if the split behaviour should be changed.[/en] * [ja]splitモードを変えるべきかどうかを判断するための'update'イベントを発火します。[/ja] */ /** * @ngdoc method * @signature on(eventName, listener) * @description * [en]Add an event listener.[/en] * [ja]イベントリスナーを追加します。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]このイベントが発火された際に呼び出される関数オブジェクトを指定します。[/ja] */ /** * @ngdoc method * @signature once(eventName, listener) * @description * [en]Add an event listener that's only triggered once.[/en] * [ja]一度だけ呼び出されるイベントリスナーを追加します。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja] */ /** * @ngdoc method * @signature off(eventName, [listener]) * @description * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en] * [ja]イベントリスナーを削除します。もしイベントリスナーを指定しなかった場合には、そのイベントに紐づく全てのイベントリスナーが削除されます。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]削除するイベントリスナーを指定します。[/ja] */ (function() { 'use strict'; var module = angular.module('onsen'); module.directive('onsSplitView', ['$compile', 'SplitView', '$onsen', function($compile, SplitView, $onsen) { return { restrict: 'E', replace: false, transclude: false, scope: true, compile: function(element, attrs) { var mainPage = element[0].querySelector('.main-page'), secondaryPage = element[0].querySelector('.secondary-page'); if (mainPage) { var mainHtml = angular.element(mainPage).remove().html().trim(); } if (secondaryPage) { var secondaryHtml = angular.element(secondaryPage).remove().html().trim(); } return function(scope, element, attrs) { if (attrs.ngController) { throw new Error('This element can\'t accept ng-controller directive.'); } element.append(angular.element('<div></div>').addClass('onsen-split-view__secondary full-screen ons-split-view-inner')); element.append(angular.element('<div></div>').addClass('onsen-split-view__main full-screen ons-split-view-inner')); var splitView = new SplitView(scope, element, attrs); if (mainHtml && !attrs.mainPage) { splitView._appendMainPage(mainHtml); } if (secondaryHtml && !attrs.secondaryPage) { splitView._appendSecondPage(secondaryHtml); } $onsen.declareVarAttribute(attrs, splitView); $onsen.registerEventHandlers(splitView, 'update presplit precollapse postsplit postcollapse destroy'); element.data('ons-split-view', splitView); scope.$on('$destroy', function() { splitView._events = undefined; element.data('ons-split-view', undefined); }); $onsen.fireComponentEvent(element[0], 'init'); }; } }; }]); })(); /** * @ngdoc directive * @id switch * @name ons-switch * @category form * @description * [en]Switch component.[/en] * [ja]スイッチを表示するコンポーネントです。[/ja] * @guide UsingFormComponents * [en]Using form components[/en] * [ja]フォームを使う[/ja] * @guide EventHandling * [en]Event handling descriptions[/en] * [ja]イベント処理の使い方[/ja] * @seealso ons-button * [en]ons-button component[/en] * [ja]ons-buttonコンポーネント[/ja] * @example * <ons-switch checked></ons-switch> */ /** * @ngdoc event * @name change * @description * [en]Fired when the value is changed.[/en] * [ja]ON/OFFが変わった時に発火します。[/ja] * @param {Object} event * [en]Event object.[/en] * [ja]イベントオブジェクト。[/ja] * @param {Object} event.switch * [en]Switch object.[/en] * [ja]イベントが発火したSwitchオブジェクトを返します。[/ja] * @param {Boolean} event.value * [en]Current value.[/en] * [ja]現在の値を返します。[/ja] * @param {Boolean} event.isInteractive * [en]True if the change was triggered by the user clicking on the switch.[/en] * [ja]タップやクリックなどのユーザの操作によって変わった場合にはtrueを返します。[/ja] */ /** * @ngdoc attribute * @name var * @type {String} * @description * [en]Variable name to refer this switch.[/en] * [ja]JavaScriptから参照するための変数名を指定します。[/ja] */ /** * @ngdoc attribute * @name modifier * @type {String} * @description * [en]The appearance of the switch.[/en] * [ja]スイッチの表現を指定します。[/ja] */ /** * @ngdoc attribute * @name disabled * @description * [en]Whether the switch should be disabled.[/en] * [ja]スイッチを無効の状態にする場合に指定します。[/ja] */ /** * @ngdoc attribute * @name checked * @description * [en]Whether the switch is checked.[/en] * [ja]スイッチがONの状態にするときに指定します。[/ja] */ /** * @ngdoc method * @signature isChecked() * @return {Boolean} * [en]true if the switch is on.[/en] * [ja]ONになっている場合にはtrueになります。[/ja] * @description * [en]Returns true if the switch is ON.[/en] * [ja]スイッチがONの場合にtrueを返します。[/ja] */ /** * @ngdoc method * @signature setChecked(checked) * @param {Boolean} checked * [en]If true the switch will be set to on.[/en] * [ja]ONにしたい場合にはtrueを指定します。[/ja] * @description * [en]Set the value of the switch. isChecked can be either true or false.[/en] * [ja]スイッチの値を指定します。isCheckedにはtrueもしくはfalseを指定します。[/ja] */ /** * @ngdoc method * @signature getCheckboxElement() * @return {HTMLElement} * [en]The underlying checkbox element.[/en] * [ja]コンポーネント内部のcheckbox要素になります。[/ja] * @description * [en]Get inner input[type=checkbox] element.[/en] * [ja]スイッチが内包する、input[type=checkbox]の要素を取得します。[/ja] */ /** * @ngdoc method * @signature on(eventName, listener) * @description * [en]Add an event listener.[/en] * [ja]イベントリスナーを追加します。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]このイベントが発火された際に呼び出される関数オブジェクトを指定します。[/ja] */ /** * @ngdoc method * @signature once(eventName, listener) * @description * [en]Add an event listener that's only triggered once.[/en] * [ja]一度だけ呼び出されるイベントリスナーを追加します。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja] */ /** * @ngdoc method * @signature off(eventName, [listener]) * @description * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en] * [ja]イベントリスナーを削除します。もしイベントリスナーを指定しなかった場合には、そのイベントに紐づく全てのイベントリスナーが削除されます。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]削除するイベントリスナーを指定します。[/ja] */ (function(){ 'use strict'; var module = angular.module('onsen'); module.directive('onsSwitch', ['$onsen', '$parse', 'SwitchView', function($onsen, $parse, SwitchView) { return { restrict: 'E', replace: false, transclude: false, scope: true, templateUrl: $onsen.DIRECTIVE_TEMPLATE_URL + '/switch.tpl', compile: function(element) { return function(scope, element, attrs) { if (attrs.ngController) { throw new Error('This element can\'t accept ng-controller directive.'); } var switchView = new SwitchView(element, scope, attrs); var checkbox = angular.element(element[0].querySelector('input[type=checkbox]')); scope.modifierTemplater = $onsen.generateModifierTemplater(attrs); var label = element.children(), input = angular.element(label.children()[0]), toggle = angular.element(label.children()[1]); $onsen.addModifierMethods(switchView, 'switch--*', label); $onsen.addModifierMethods(switchView, 'switch--*__input', input); $onsen.addModifierMethods(switchView, 'switch--*__toggle', toggle); attrs.$observe('checked', function(checked) { scope.model = !!element.attr('checked'); }); attrs.$observe('name', function(name) { if (!!element.attr('name')) { checkbox.attr('name', name); } }); if (attrs.ngModel) { var set = $parse(attrs.ngModel).assign; scope.$parent.$watch(attrs.ngModel, function(value) { scope.model = value; }); scope.$watch('model', function(to, from) { set(scope.$parent, to); if (to !== from) { scope.$eval(attrs.ngChange); } }); } $onsen.declareVarAttribute(attrs, switchView); element.data('ons-switch', switchView); $onsen.cleaner.onDestroy(scope, function() { switchView._events = undefined; $onsen.removeModifierMethods(switchView); element.data('ons-switch', undefined); $onsen.clearComponent({ element : element, scope : scope, attrs : attrs }); checkbox = element = attrs = scope = null; }); $onsen.fireComponentEvent(element[0], 'init'); }; } }; }]); })(); /** * @ngdoc directive * @id tabbar_item * @name ons-tab * @category navigation * @description * [en]Represents a tab inside tabbar. Each ons-tab represents a page.[/en] * [ja] * タブバーに配置される各アイテムのコンポーネントです。それぞれのons-tabはページを表します。 * ons-tab要素の中には、タブに表示されるコンテンツを直接記述することが出来ます。 * [/ja] * @codepen pGuDL * @guide UsingTabBar * [en]Using tab bar[/en] * [ja]タブバーを使う[/ja] * @guide DefiningMultiplePagesinSingleHTML * [en]Defining multiple pages in single html[/en] * [ja]複数のページを1つのHTMLに記述する[/ja] * @seealso ons-tabbar * [en]ons-tabbar component[/en] * [ja]ons-tabbarコンポーネント[/ja] * @seealso ons-page * [en]ons-page component[/en] * [ja]ons-pageコンポーネント[/ja] * @seealso ons-icon * [en]ons-icon component[/en] * [ja]ons-iconコンポーネント[/ja] * @example * <ons-tabbar> * <ons-tab page="home.html" active="true"> * <ons-icon icon="ion-home"></ons-icon> * <span style="font-size: 14px">Home</span> * </ons-tab> * <ons-tab page="fav.html" active="true"> * <ons-icon icon="ion-star"></ons-icon> * <span style="font-size: 14px">Favorites</span> * </ons-tab> * <ons-tab page="settings.html" active="true"> * <ons-icon icon="ion-gear-a"></ons-icon> * <span style="font-size: 14px">Settings</span> * </ons-tab> * </ons-tabbar> * * <ons-template id="home.html"> * ... * </ons-template> * * <ons-template id="fav.html"> * ... * </ons-template> * * <ons-template id="settings.html"> * ... * </ons-template> */ /** * @ngdoc attribute * @name page * @type {String} * @description * [en]The page that this <code>&lt;ons-tab&gt;</code> points to.[/en] * [ja]<code>&lt;ons-tab&gt;</code>が参照するページへのURLを指定します。[/ja] */ /** * @ngdoc attribute * @name icon * @type {String} * @description * [en] * The icon name for the tab. Can specify the same icon name as <code>&lt;ons-icon&gt;</code>. * If you need to use your own icon, create a css class with background-image or any css properties and specify the name of your css class here. * [/en] * [ja] * アイコン名を指定します。<code>&lt;ons-icon&gt;</code>と同じアイコン名を指定できます。 * 個別にアイコンをカスタマイズする場合は、background-imageなどのCSSスタイルを用いて指定できます。 * [/ja] */ /** * @ngdoc attribute * @name active-icon * @type {String} * @description * [en]The name of the icon when the tab is active.[/en] * [ja]アクティブの際のアイコン名を指定します。[/ja] */ /** * @ngdoc attribute * @name label * @type {String} * @description * [en]The label of the tab item.[/en] * [ja]アイコン下に表示されるラベルを指定します。[/ja] */ /** * @ngdoc attribute * @name active * @type {Boolean} * @default false * @description * [en]Set whether this item should be active or not. Valid values are true and false.[/en] * [ja]このタブアイテムをアクティブ状態にするかどうかを指定します。trueもしくはfalseを指定できます。[/ja] */ /** * @ngdoc attribute * @name no-reload * @description * [en]Set if the page shouldn't be reloaded when clicking on the same tab twice.[/en] * [ja]すでにアクティブになったタブを再びクリックするとページの再読み込みは発生しません。[/ja] */ /** * @ngdoc attribute * @name persistent * @description * [en] * Set to make the tab content persistent. * If this attribute it set the DOM will not be destroyed when navigating to another tab. * [/en] * [ja] * このタブで読み込んだページを永続化します。 * この属性があるとき、別のタブのページに切り替えても、 * 読み込んだページのDOM要素は破棄されずに単に非表示になります。 * [/ja] */ (function() { 'use strict'; var module = angular.module('onsen'); module.directive('onsTab', tab); module.directive('onsTabbarItem', tab); // for BC var defaultInnerTemplate = '<div ng-if="icon != undefined" class="tab-bar__icon">' + '<ons-icon icon="{{tabIcon}}" style="font-size: 28px; line-height: 34px; vertical-align: top;"></ons-icon>' + '</div>' + '<div ng-if="label" class="tab-bar__label">{{label}}</div>'; function tab($onsen, $compile) { return { restrict: 'E', transclude: true, scope: { page: '@', active: '@', icon: '@', activeIcon: '@', label: '@', noReload: '@', persistent: '@' }, templateUrl: $onsen.DIRECTIVE_TEMPLATE_URL + '/tab.tpl', compile: function(element, attrs) { element.addClass('tab-bar__item'); return function(scope, element, attrs, controller, transclude) { var tabbarView = element.inheritedData('ons-tabbar'); if (!tabbarView) { throw new Error('This ons-tab element is must be child of ons-tabbar element.'); } element.addClass(tabbarView._scope.modifierTemplater('tab-bar--*__item')); element.addClass(tabbarView._scope.modifierTemplater('tab-bar__item--*')); transclude(scope.$parent, function(cloned) { var wrapper = angular.element(element[0].querySelector('.tab-bar-inner')); if (attrs.icon || attrs.label || !cloned[0]) { var innerElement = angular.element('<div>' + defaultInnerTemplate + '</div>').children(); wrapper.append(innerElement); $compile(innerElement)(scope); } else { wrapper.append(cloned); } }); var radioButton = element[0].querySelector('input'); scope.tabbarModifierTemplater = tabbarView._scope.modifierTemplater; scope.modifierTemplater = $onsen.generateModifierTemplater(attrs); scope.tabbarId = tabbarView._tabbarId; scope.tabIcon = scope.icon; tabbarView.addTabItem(scope); // Make this tab active. scope.setActive = function() { element.addClass('active'); radioButton.checked = true; if (scope.activeIcon) { scope.tabIcon = scope.activeIcon; } angular.element(element[0].querySelectorAll('[ons-tab-inactive]')).css('display', 'none'); angular.element(element[0].querySelectorAll('[ons-tab-active]')).css('display', 'inherit'); }; // Make this tab inactive. scope.setInactive = function() { element.removeClass('active'); radioButton.checked = false; scope.tabIcon = scope.icon; angular.element(element[0].querySelectorAll('[ons-tab-inactive]')).css('display', 'inherit'); angular.element(element[0].querySelectorAll('[ons-tab-active]')).css('display', 'none'); }; scope.isPersistent = function() { return typeof scope.persistent != 'undefined'; }; /** * @return {Boolean} */ scope.isActive = function() { return element.hasClass('active'); }; scope.tryToChange = function() { tabbarView.setActiveTab(tabbarView._tabItems.indexOf(scope)); }; if (scope.active) { tabbarView.setActiveTab(tabbarView._tabItems.indexOf(scope)); } $onsen.fireComponentEvent(element[0], 'init'); }; } }; } tab.$inject = ['$onsen', '$compile']; })(); /** * @ngdoc directive * @id tabbar * @name ons-tabbar * @category navigation * @description * [en]A component to display a tab bar on the bottom of a page. Used with ons-tab to manage pages using tabs.[/en] * [ja]タブバーをページ下部に表示するためのコンポーネントです。ons-tabと組み合わせて使うことで、ページを管理できます。[/ja] * @codepen pGuDL * @guide UsingTabBar * [en]Using tab bar[/en] * [ja]タブバーを使う[/ja] * @guide EventHandling * [en]Event handling descriptions[/en] * [ja]イベント処理の使い方[/ja] * @guide CallingComponentAPIsfromJavaScript * [en]Using navigator from JavaScript[/en] * [ja]JavaScriptからコンポーネントを呼び出す[/ja] * @guide DefiningMultiplePagesinSingleHTML * [en]Defining multiple pages in single html[/en] * [ja]複数のページを1つのHTMLに記述する[/ja] * @seealso ons-tab * [en]ons-tab component[/en] * [ja]ons-tabコンポーネント[/ja] * @seealso ons-page * [en]ons-page component[/en] * [ja]ons-pageコンポーネント[/ja] * @example * <ons-tabbar> * <ons-tab page="home.html" active="true"> * <ons-icon icon="ion-home"></ons-icon> * <span style="font-size: 14px">Home</span> * </ons-tab> * <ons-tab page="fav.html" active="true"> * <ons-icon icon="ion-star"></ons-icon> * <span style="font-size: 14px">Favorites</span> * </ons-tab> * <ons-tab page="settings.html" active="true"> * <ons-icon icon="ion-gear-a"></ons-icon> * <span style="font-size: 14px">Settings</span> * </ons-tab> * </ons-tabbar> * * <ons-template id="home.html"> * ... * </ons-template> * * <ons-template id="fav.html"> * ... * </ons-template> * * <ons-template id="settings.html"> * ... * </ons-template> */ /** * @ngdoc event * @name prechange * @description * [en]Fires just before the tab is changed.[/en] * [ja]アクティブなタブが変わる前に発火します。[/ja] * @param {Object} event * [en]Event object.[/en] * [ja]イベントオブジェクト。[/ja] * @param {Number} event.index * [en]Current index.[/en] * [ja]現在アクティブになっているons-tabのインデックスを返します。[/ja] * @param {Object} event.tabItem * [en]Tab item object.[/en] * [ja]tabItemオブジェクト。[/ja] * @param {Function} event.cancel * [en]Call this function to cancel the change event.[/en] * [ja]この関数を呼び出すと、アクティブなタブの変更がキャンセルされます。[/ja] */ /** * @ngdoc event * @name postchange * @description * [en]Fires just after the tab is changed.[/en] * [ja]アクティブなタブが変わった後に発火します。[/ja] * @param {Object} event * [en]Event object.[/en] * [ja]イベントオブジェクト。[/ja] * @param {Number} event.index * [en]Current index.[/en] * [ja]現在アクティブになっているons-tabのインデックスを返します。[/ja] * @param {Object} event.tabItem * [en]Tab item object.[/en] * [ja]tabItemオブジェクト。[/ja] */ /** * @ngdoc event * @name reactive * @description * [en]Fires if the already open tab is tapped again.[/en] * [ja]すでにアクティブになっているタブがもう一度タップやクリックされた場合に発火します。[/ja] * @param {Object} event * [en]Event object.[/en] * [ja]イベントオブジェクト。[/ja] * @param {Number} event.index * [en]Current index.[/en] * [ja]現在アクティブになっているons-tabのインデックスを返します。[/ja] * @param {Object} event.tabItem * [en]Tab item object.[/en] * [ja]tabItemオブジェクト。[/ja] */ /** * @ngdoc attribute * @name var * @type {String} * @description * [en]Variable name to refer this tab bar.[/en] * [ja]このタブバーを参照するための名前を指定します。[/ja] */ /** * @ngdoc attribute * @name hide-tabs * @type {Boolean} * @default false * @description * [en]Whether to hide the tabs. Valid values are true/false.[/en] * [ja]タブを非表示にする場合に指定します。trueもしくはfalseを指定できます。[/ja] */ /** * @ngdoc attribute * @name animation * @type {String} * @default none * @description * [en]Animation name. Preset values are "none" and "fade". Default is "none".[/en] * [ja]ページ読み込み時のアニメーションを指定します。"none"もしくは"fade"を選択できます。デフォルトは"none"です。[/ja] */ /** * @ngdoc attribute * @name position * @type {String} * @default bottom * @description * [en]Tabbar's position. Preset values are "bottom" and "top". Default is "bottom".[/en] * [ja]タブバーの位置を指定します。"bottom"もしくは"top"を選択できます。デフォルトは"bottom"です。[/ja] */ /** * @ngdoc attribute * @name ons-reactive * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "reactive" event is fired.[/en] * [ja]"reactive"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-prechange * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "prechange" event is fired.[/en] * [ja]"prechange"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-postchange * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "postchange" event is fired.[/en] * [ja]"postchange"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc attribute * @name ons-destroy * @type {Expression} * @description * [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en] * [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja] */ /** * @ngdoc method * @signature setActiveTab(index, [options]) * @param {Number} index * [en]Tab index.[/en] * [ja]タブのインデックスを指定します。[/ja] * @param {Object} [options] * [en]Parameter object.[/en] * [ja]オプションを指定するオブジェクト。[/ja] * @param {Boolean} [options.keepPage] * [en]If true the page will not be changed.[/en] * [ja]タブバーが現在表示しているpageを変えない場合にはtrueを指定します。[/ja] * @param {String} [options.animation] * [en]Animation name. Available animations are "fade" and "none".[/en] * [ja]アニメーション名を指定します。"fade", "none"のいずれかを指定できます。[/ja] * @return {Boolean} * [en]true if the change was successful.[/en] * [ja]変更が成功した場合にtrueを返します。[/ja] * @description * [en]Show specified tab page. Animations and other options can be specified by the second parameter.[/en] * [ja]指定したインデックスのタブを表示します。アニメーションなどのオプションを指定できます。[/ja] */ /** * @ngdoc method * @signature getActiveTabIndex() * @return {Number} * [en]The index of the currently active tab.[/en] * [ja]現在アクティブになっているタブのインデックスを返します。[/ja] * @description * [en]Returns tab index on current active tab. If active tab is not found, returns -1.[/en] * [ja]現在アクティブになっているタブのインデックスを返します。現在アクティブなタブがない場合には-1を返します。[/ja] */ /** * @ngdoc method * @signature loadPage(url) * @param {String} url * [en]Page URL. Can be either an HTML document or an <code>&lt;ons-template&gt;</code>.[/en] * [ja]pageのURLか、もしくは<code>&lt;ons-template&gt;</code>で宣言したid属性の値を利用できます。[/ja] * @description * [en]Displays a new page without changing the active index.[/en] * [ja]現在のアクティブなインデックスを変更せずに、新しいページを表示します。[/ja] */ /** * @ngdoc method * @signature on(eventName, listener) * @description * [en]Add an event listener.[/en] * [ja]イベントリスナーを追加します。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]このイベントが発火された際に呼び出される関数オブジェクトを指定します。[/ja] */ /** * @ngdoc method * @signature once(eventName, listener) * @description * [en]Add an event listener that's only triggered once.[/en] * [ja]一度だけ呼び出されるイベントリスナーを追加します。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja] */ /** * @ngdoc method * @signature off(eventName, [listener]) * @description * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en] * [ja]イベントリスナーを削除します。もしイベントリスナーを指定しなかった場合には、そのイベントに紐づく全てのイベントリスナーが削除されます。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]削除するイベントリスナーを指定します。[/ja] */ (function() { 'use strict'; var module = angular.module('onsen'); module.directive('onsTabbar', ['$onsen', '$compile', 'TabbarView', function($onsen, $compile, TabbarView) { return { restrict: 'E', replace: false, transclude: true, scope: true, templateUrl: $onsen.DIRECTIVE_TEMPLATE_URL + '/tab_bar.tpl', link: function(scope, element, attrs, controller, transclude) { scope.modifierTemplater = $onsen.generateModifierTemplater(attrs); scope.selectedTabItem = {source: ''}; attrs.$observe('hideTabs', function(hide) { var visible = hide !== 'true'; tabbarView.setTabbarVisibility(visible); }); var tabbarView = new TabbarView(scope, element, attrs); $onsen.addModifierMethods(tabbarView, 'tab-bar--*', angular.element(element.children()[1])); $onsen.registerEventHandlers(tabbarView, 'reactive prechange postchange destroy'); scope.tabbarId = tabbarView._tabbarId; element.data('ons-tabbar', tabbarView); $onsen.declareVarAttribute(attrs, tabbarView); transclude(scope, function(cloned) { angular.element(element[0].querySelector('.ons-tabbar-inner')).append(cloned); }); scope.$on('$destroy', function() { tabbarView._events = undefined; $onsen.removeModifierMethods(tabbarView); element.data('ons-tabbar', undefined); }); $onsen.fireComponentEvent(element[0], 'init'); } }; }]); })(); /** * @ngdoc directive * @id template * @name ons-template * @category util * @description * [en]Define a separate HTML fragment and use as a template.[/en] * [ja]テンプレートとして使用するためのHTMLフラグメントを定義します。この要素でHTMLを宣言すると、id属性に指定した名前をpageのURLとしてons-navigatorなどのコンポーネントから参照できます。[/ja] * @guide DefiningMultiplePagesinSingleHTML * [en]Defining multiple pages in single html[/en] * [ja]複数のページを1つのHTMLに記述する[/ja] * @example * <ons-template id="foobar.html"> * ... * </ons-template> */ (function(){ 'use strict'; var module = angular.module('onsen'); module.directive('onsTemplate', ['$onsen', '$templateCache', function($onsen, $templateCache) { return { restrict: 'E', transclude: false, priority: 1000, terminal: true, compile: function(element) { $templateCache.put(element.attr('id'), element.remove().html()); $onsen.fireComponentEvent(element[0], 'init'); } }; }]); })(); /** * @ngdoc directive * @id toolbar * @name ons-toolbar * @category toolbar * @modifier transparent * [en]Transparent toolbar[/en] * [ja]透明な背景を持つツールバーを表示します。[/ja] * @modifier android * [en]Android style toolbar. Title is left-aligned.[/en] * [ja]Androidライクなツールバーを表示します。タイトルが左に寄ります。[/ja] * @description * [en]Toolbar component that can be used with navigation. Left, center and right container can be specified by class names.[/en] * [ja]ナビゲーションで使用するツールバー用コンポーネントです。クラス名により、左、中央、右のコンテナを指定できます。[/ja] * @codepen aHmGL * @guide Addingatoolbar [en]Adding a toolbar[/en][ja]ツールバーの追加[/ja] * @seealso ons-bottom-toolbar * [en]ons-bottom-toolbar component[/en] * [ja]ons-bottom-toolbarコンポーネント[/ja] * @seealso ons-back-button * [en]ons-back-button component[/en] * [ja]ons-back-buttonコンポーネント[/ja] * @seealso ons-toolbar-button * [en]ons-toolbar-button component[/en] * [ja]ons-toolbar-buttonコンポーネント[/ja] * @example * <ons-page> * <ons-toolbar> * <div class="left"><ons-back-button>Back</ons-back-button></div> * <div class="center">Title</div> * <div class="right">Label</div> * </ons-toolbar> * </ons-page> */ /** * @ngdoc attribute * @name var * @type {String} * @description * [en]Variable name to refer this toolbar.[/en] * [ja]このツールバーを参照するための名前を指定します。[/ja] */ /** * @ngdoc attribute * @name inline * @description * [en]Display the toolbar as an inline element.[/en] * [ja]ツールバーをインラインに置きます。スクロール領域内にそのまま表示されます。[/ja] */ /** * @ngdoc attribute * @name modifier * @description * [en]The appearance of the toolbar.[/en] * [ja]ツールバーの表現を指定します。[/ja] */ /** * @ngdoc attribute * @name fixed-style * @description * [en] * By default the center element will be left-aligned on Android and center-aligned on iOS. * Use this attribute to override this behavior so it's always displayed in the center. * [/en] * [ja] * このコンポーネントは、Androidではタイトルを左寄せ、iOSでは中央配置します。 * この属性を使用すると、要素はAndroidとiOSともに中央配置となります。 * [/ja] */ (function() { 'use strict'; var module = angular.module('onsen'); function ensureLeftContainer(element, modifierTemplater) { var container = element[0].querySelector('.left'); if (!container) { container = document.createElement('div'); container.setAttribute('class', 'left'); container.innerHTML = '&nbsp;'; } if (container.innerHTML.trim() === '') { container.innerHTML = '&nbsp;'; } angular.element(container) .addClass('navigation-bar__left') .addClass(modifierTemplater('navigation-bar--*__left')); return container; } function ensureCenterContainer(element, modifierTemplater) { var container = element[0].querySelector('.center'); if (!container) { container = document.createElement('div'); container.setAttribute('class', 'center'); } if (container.innerHTML.trim() === '') { container.innerHTML = '&nbsp;'; } angular.element(container) .addClass('navigation-bar__title navigation-bar__center') .addClass(modifierTemplater('navigation-bar--*__center')); return container; } function ensureRightContainer(element, modifierTemplater) { var container = element[0].querySelector('.right'); if (!container) { container = document.createElement('div'); container.setAttribute('class', 'right'); container.innerHTML = '&nbsp;'; } if (container.innerHTML.trim() === '') { container.innerHTML = '&nbsp;'; } angular.element(container) .addClass('navigation-bar__right') .addClass(modifierTemplater('navigation-bar--*__right')); return container; } /** * @param {jqLite} element * @return {Boolean} */ function hasCenterClassElementOnly(element) { var hasCenter = false; var hasOther = false; var child, children = element.contents(); for (var i = 0; i < children.length; i++) { child = angular.element(children[i]); if (child.hasClass('center')) { hasCenter = true; continue; } if (child.hasClass('left') || child.hasClass('right')) { hasOther = true; continue; } } return hasCenter && !hasOther; } function ensureToolbarItemElements(element, modifierTemplater) { var center; if (hasCenterClassElementOnly(element)) { center = ensureCenterContainer(element, modifierTemplater); element.contents().remove(); element.append(center); } else { center = ensureCenterContainer(element, modifierTemplater); var left = ensureLeftContainer(element, modifierTemplater); var right = ensureRightContainer(element, modifierTemplater); element.contents().remove(); element.append(angular.element([left, center, right])); } } /** * Toolbar directive. */ module.directive('onsToolbar', ['$onsen', 'GenericView', function($onsen, GenericView) { return { restrict: 'E', replace: false, // NOTE: This element must coexists with ng-controller. // Do not use isolated scope and template's ng-transclde. scope: false, transclude: false, compile: function(element, attrs) { var shouldAppendAndroidModifier = ons.platform.isAndroid() && !element[0].hasAttribute('fixed-style'); var modifierTemplater = $onsen.generateModifierTemplater(attrs, shouldAppendAndroidModifier ? ['android'] : []), inline = typeof attrs.inline !== 'undefined'; element.addClass('navigation-bar'); element.addClass(modifierTemplater('navigation-bar--*')); if (!inline) { element.css({ 'position': 'absolute', 'z-index': '10000', 'left': '0px', 'right': '0px', 'top': '0px' }); } ensureToolbarItemElements(element, modifierTemplater); return { pre: function(scope, element, attrs) { var toolbar = new GenericView(scope, element, attrs); $onsen.declareVarAttribute(attrs, toolbar); scope.$on('$destroy', function() { toolbar._events = undefined; $onsen.removeModifierMethods(toolbar); element.data('ons-toolbar', undefined); element = null; }); $onsen.addModifierMethods(toolbar, 'navigation-bar--*', element); angular.forEach(['left', 'center', 'right'], function(position) { var el = element[0].querySelector('.navigation-bar__' + position); if (el) { $onsen.addModifierMethods(toolbar, 'navigation-bar--*__' + position, angular.element(el)); } }); var pageView = element.inheritedData('ons-page'); if (pageView && !inline) { pageView.registerToolbar(element); } element.data('ons-toolbar', toolbar); }, post: function(scope, element, attrs) { $onsen.fireComponentEvent(element[0], 'init'); } }; } }; }]); })(); /** * @ngdoc directive * @id toolbar_button * @name ons-toolbar-button * @category toolbar * @modifier outline * [en]A button with an outline.[/en] * [ja]アウトラインをもったボタンを表示します。[/ja] * @description * [en]Button component for ons-toolbar and ons-bottom-toolbar.[/en] * [ja]ons-toolbarあるいはons-bottom-toolbarに設置できるボタン用コンポーネントです。[/ja] * @codepen aHmGL * @guide Addingatoolbar * [en]Adding a toolbar[/en] * [ja]ツールバーの追加[/ja] * @seealso ons-toolbar * [en]ons-toolbar component[/en] * [ja]ons-toolbarコンポーネント[/ja] * @seealso ons-back-button * [en]ons-back-button component[/en] * [ja]ons-back-buttonコンポーネント[/ja] * @seealso ons-toolbar-button * [en]ons-toolbar-button component[/en] * [ja]ons-toolbar-buttonコンポーネント[/ja] * @example * <ons-toolbar> * <div class="left"><ons-toolbar-button>Button</ons-toolbar-button></div> * <div class="center">Title</div> * <div class="right"><ons-toolbar-button><ons-icon icon="ion-navion" size="28px"></ons-icon></ons-toolbar-button></div> * </ons-toolbar> */ /** * @ngdoc attribute * @name var * @type {String} * @description * [en]Variable name to refer this buttom.[/en] * [ja]このボタンを参照するための名前を指定します。[/ja] */ /** * @ngdoc attribute * @name modifier * @type {String} * @description * [en]The appearance of the button.[/en] * [ja]ボタンの表現を指定します。[/ja] */ /** * @ngdoc attribute * @name disabled * @description * [en]Specify if button should be disabled.[/en] * [ja]ボタンを無効化する場合は指定してください。[/ja] */ (function(){ 'use strict'; var module = angular.module('onsen'); module.directive('onsToolbarButton', ['$onsen', 'GenericView', function($onsen, GenericView) { return { restrict: 'E', transclude: true, scope: {}, templateUrl: $onsen.DIRECTIVE_TEMPLATE_URL + '/toolbar_button.tpl', link: { pre: function(scope, element, attrs) { var toolbarButton = new GenericView(scope, element, attrs), innerElement = element[0].querySelector('.toolbar-button'); $onsen.declareVarAttribute(attrs, toolbarButton); element.data('ons-toolbar-button', toolbarButton); scope.$on('$destroy', function() { toolbarButton._events = undefined; $onsen.removeModifierMethods(toolbarButton); element.data('ons-toolbar-button', undefined); element = null; }); var modifierTemplater = $onsen.generateModifierTemplater(attrs); if (attrs.ngController) { throw new Error('This element can\'t accept ng-controller directive.'); } attrs.$observe('disabled', function(value) { if (value === false || typeof value === 'undefined') { innerElement.removeAttribute('disabled'); } else { innerElement.setAttribute('disabled', 'disabled'); } }); scope.modifierTemplater = $onsen.generateModifierTemplater(attrs); $onsen.addModifierMethods(toolbarButton, 'toolbar-button--*', element.children()); element.children('span').addClass(modifierTemplater('toolbar-button--*')); $onsen.cleaner.onDestroy(scope, function() { $onsen.clearComponent({ scope: scope, attrs: attrs, element: element, }); scope = element = attrs = null; }); }, post: function(scope, element, attrs) { $onsen.fireComponentEvent(element[0], 'init'); } } }; }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function(){ 'use strict'; var module = angular.module('onsen'); var ComponentCleaner = { /** * @param {jqLite} element */ decomposeNode: function(element) { var children = element.remove().children(); for (var i = 0; i < children.length; i++) { ComponentCleaner.decomposeNode(angular.element(children[i])); } }, /** * @param {Attributes} attrs */ destroyAttributes: function(attrs) { attrs.$$element = null; attrs.$$observers = null; }, /** * @param {jqLite} element */ destroyElement: function(element) { element.remove(); }, /** * @param {Scope} scope */ destroyScope: function(scope) { scope.$$listeners = {}; scope.$$watchers = null; scope = null; }, /** * @param {Scope} scope * @param {Function} fn */ onDestroy: function(scope, fn) { var clear = scope.$on('$destroy', function() { clear(); fn.apply(null, arguments); }); } }; module.factory('ComponentCleaner', function() { return ComponentCleaner; }); // override builtin ng-(eventname) directives (function() { var ngEventDirectives = {}; 'click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste'.split(' ').forEach( function(name) { var directiveName = directiveNormalize('ng-' + name); ngEventDirectives[directiveName] = ['$parse', function($parse) { return { compile: function($element, attr) { var fn = $parse(attr[directiveName]); return function(scope, element, attr) { var listener = function(event) { scope.$apply(function() { fn(scope, {$event:event}); }); }; element.on(name, listener); ComponentCleaner.onDestroy(scope, function() { element.off(name, listener); element = null; ComponentCleaner.destroyScope(scope); scope = null; ComponentCleaner.destroyAttributes(attr); attr = null; }); }; } }; }]; function directiveNormalize(name) { return name.replace(/-([a-z])/g, function(matches) { return matches[1].toUpperCase(); }); } } ); module.config(['$provide', function($provide) { var shift = function($delegate) { $delegate.shift(); return $delegate; }; Object.keys(ngEventDirectives).forEach(function(directiveName) { $provide.decorator(directiveName + 'Directive', ['$delegate', shift]); }); }]); Object.keys(ngEventDirectives).forEach(function(directiveName) { module.directive(directiveName, ngEventDirectives[directiveName]); }); })(); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function(){ 'use strict'; var util = { init: function() { this.ready = false; }, addBackButtonListener: function(fn) { if (this._ready) { window.document.addEventListener('backbutton', fn, false); } else { window.document.addEventListener('deviceready', function() { window.document.addEventListener('backbutton', fn, false); }); } }, removeBackButtonListener: function(fn) { if (this._ready) { window.document.removeEventListener('backbutton', fn, false); } else { window.document.addEventListener('deviceready', function() { window.document.removeEventListener('backbutton', fn, false); }); } } }; util.init(); /** * Internal service class for framework implementation. */ angular.module('onsen').service('DeviceBackButtonHandler', function() { this._init = function() { if (window.ons.isWebView()) { window.document.addEventListener('deviceready', function() { util._ready = true; }, false); } else { util._ready = true; } this._bindedCallback = this._callback.bind(this); this.enable(); }; this._isEnabled = false; /** * Enable to handle 'backbutton' events. */ this.enable = function() { if (!this._isEnabled) { util.addBackButtonListener(this._bindedCallback); this._isEnabled = true; } }; /** * Disable to handle 'backbutton' events. */ this.disable = function() { if (this._isEnabled) { util.removeBackButtonListener(this._bindedCallback); this._isEnabled = false; } }; /** * Fire a 'backbutton' event manually. */ this.fireDeviceBackButtonEvent = function() { var event = document.createEvent('Event'); event.initEvent('backbutton', true, true); document.dispatchEvent(event); }; this._callback = function() { this._dispatchDeviceBackButtonEvent(); }; /** * @param {jqLite} element * @param {Function} callback */ this.create = function(element, callback) { if (!(element instanceof angular.element().constructor)) { throw new Error('element must be an instance of jqLite'); } if (!(callback instanceof Function)) { throw new Error('callback must be an instance of Function'); } var handler = { _callback: callback, _element: element, disable: function() { this._element.data('device-backbutton-handler', null); }, setListener: function(callback) { this._callback = callback; }, enable: function() { this._element.data('device-backbutton-handler', this); }, isEnabled: function() { return this._element.data('device-backbutton-handler') === this; }, destroy: function() { this._element.data('device-backbutton-handler', null); this._callback = this._element = null; } }; handler.enable(); return handler; }; /** * @param {Object} event */ this._dispatchDeviceBackButtonEvent = function(event) { var tree = this._captureTree(); var element = this._findHandlerLeafElement(tree); //this._dumpTree(tree); //this._dumpParents(element); var handler = element.data('device-backbutton-handler'); handler._callback(createEvent(element)); function createEvent(element) { return { _element: element, callParentHandler: function() { var parent = this._element.parent(); var hander = null; while (parent[0]) { handler = parent.data('device-backbutton-handler'); if (handler) { return handler._callback(createEvent(parent)); } parent = parent.parent(); } } }; } }; this._dumpParents = function(element) { while(element[0]) { console.log(element[0].nodeName.toLowerCase() + '.' + element.attr('class')); element = element.parent(); } }; /** * @return {Object} */ this._captureTree = function() { return createTree(angular.element(document.body)); function createTree(element) { return { element: element, children: Array.prototype.concat.apply([], Array.prototype.map.call(element.children(), function(child) { child = angular.element(child); if (child[0].style.display === 'none') { return []; } if (child.children().length === 0 && !child.data('device-backbutton-handler')) { return []; } var result = createTree(child); if (result.children.length === 0 && !child.data('device-backbutton-handler')) { return []; } return [result]; })) }; } }; this._dumpTree = function(node) { _dump(node, 0); function _dump(node, level) { var pad = new Array(level + 1).join(' '); console.log(pad + node.element[0].nodeName.toLowerCase()); node.children.forEach(function(node) { _dump(node, level + 1); }); } }; /** * @param {Object} tree * @return {jqLite} */ this._findHandlerLeafElement = function(tree) { return find(tree); function find(node) { if (node.children.length === 0) { return node.element; } if (node.children.length === 1) { return find(node.children[0]); } return node.children.map(function(childNode) { return childNode.element; }).reduce(function(left, right) { if (left === null) { return right; } var leftZ = parseInt(window.getComputedStyle(left[0], '').zIndex, 10); var rightZ = parseInt(window.getComputedStyle(right[0], '').zIndex, 10); if (!isNaN(leftZ) && !isNaN(rightZ)) { return leftZ > rightZ ? left : right; } throw new Error('Capturing backbutton-handler is failure.'); }, null); } }; this._init(); }); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function(){ 'use strict'; var module = angular.module('onsen'); /** * Internal service class for framework implementation. */ module.factory('$onsen', ['$rootScope', '$window', '$cacheFactory', '$document', '$templateCache', '$http', '$q', '$onsGlobal', 'ComponentCleaner', 'DeviceBackButtonHandler', function($rootScope, $window, $cacheFactory, $document, $templateCache, $http, $q, $onsGlobal, ComponentCleaner, DeviceBackButtonHandler) { var unlockerDict = createUnlockerDict(); var $onsen = createOnsenService(); return $onsen; function createOnsenService() { return { DIRECTIVE_TEMPLATE_URL: 'templates', cleaner: ComponentCleaner, DeviceBackButtonHandler: DeviceBackButtonHandler, _defaultDeviceBackButtonHandler: DeviceBackButtonHandler.create(angular.element(document.body), function() { navigator.app.exitApp(); }), getDefaultDeviceBackButtonHandler: function() { return this._defaultDeviceBackButtonHandler; }, /** * @return {Boolean} */ isEnabledAutoStatusBarFill: function() { return !!$onsGlobal._config.autoStatusBarFill; }, /** * @param {HTMLElement} element * @return {Boolean} */ shouldFillStatusBar: function(element) { if (this.isEnabledAutoStatusBarFill() && this.isWebView() && this.isIOS7Above()) { if (!(element instanceof HTMLElement)) { throw new Error('element must be an instance of HTMLElement'); } var debug = element.tagName === 'ONS-TABBAR' ? console.log.bind(console) : angular.noop; for (;;) { if (element.hasAttribute('no-status-bar-fill')) { return false; } element = element.parentNode; debug(element); if (!element || !element.hasAttribute) { return true; } } } return false; }, /** * @param {Object} params * @param {Scope} [params.scope] * @param {jqLite} [params.element] * @param {Array} [params.elements] * @param {Attributes} [params.attrs] */ clearComponent: function(params) { if (params.scope) { ComponentCleaner.destroyScope(params.scope); } if (params.attrs) { ComponentCleaner.destroyAttributes(params.attrs); } if (params.element) { ComponentCleaner.destroyElement(params.element); } if (params.elements) { params.elements.forEach(function(element) { ComponentCleaner.destroyElement(element); }); } }, /** * Find first ancestor of el with tagName * or undefined if not found * * @param {jqLite} element * @param {String} tagName */ upTo : function(el, tagName) { tagName = tagName.toLowerCase(); do { if (!el) { return null; } el = el.parentNode; if (el.tagName.toLowerCase() == tagName) { return el; } } while (el.parentNode); return null; }, /** * @param {Array} dependencies * @param {Function} callback */ waitForVariables: function(dependencies, callback) { unlockerDict.addCallback(dependencies, callback); }, /** * @param {jqLite} element * @param {String} name */ findElementeObject: function(element, name) { return element.inheritedData(name); }, /** * @param {String} page * @return {Promise} */ getPageHTMLAsync: function(page) { var cache = $templateCache.get(page); if (cache) { var deferred = $q.defer(); var html = typeof cache === 'string' ? cache : cache[1]; deferred.resolve(this.normalizePageHTML(html)); return deferred.promise; } else { return $http({ url: page, method: 'GET' }).then(function(response) { var html = response.data; return this.normalizePageHTML(html); }.bind(this)); } }, /** * @param {String} html * @return {String} */ normalizePageHTML: function(html) { html = ('' + html).trim(); if (!html.match(/^<(ons-page|ons-navigator|ons-tabbar|ons-sliding-menu|ons-split-view)/)) { html = '<ons-page>' + html + '</ons-page>'; } return html; }, /** * Create modifier templater function. The modifier templater generate css classes binded modifier name. * * @param {Object} attrs * @param {Array} [modifiers] an array of appendix modifier * @return {Function} */ generateModifierTemplater: function(attrs, modifiers) { var attrModifiers = attrs && typeof attrs.modifier === 'string' ? attrs.modifier.trim().split(/ +/) : []; modifiers = angular.isArray(modifiers) ? attrModifiers.concat(modifiers) : attrModifiers; /** * @return {String} template eg. 'ons-button--*', 'ons-button--*__item' * @return {String} */ return function(template) { return modifiers.map(function(modifier) { return template.replace('*', modifier); }).join(' '); }; }, /** * Add modifier methods to view object. * * @param {Object} view object * @param {String} template * @param {jqLite} element */ addModifierMethods: function(view, template, element) { var _tr = function(modifier) { return template.replace('*', modifier); }; var fns = { hasModifier: function(modifier) { return element.hasClass(_tr(modifier)); }, removeModifier: function(modifier) { element.removeClass(_tr(modifier)); }, addModifier: function(modifier) { element.addClass(_tr(modifier)); }, setModifier: function(modifier) { var classes = element.attr('class').split(/\s+/), patt = template.replace('*', '.'); for (var i=0; i < classes.length; i++) { var cls = classes[i]; if (cls.match(patt)) { element.removeClass(cls); } } element.addClass(_tr(modifier)); }, toggleModifier: function(modifier) { var cls = _tr(modifier); if (element.hasClass(cls)) { element.removeClass(cls); } else { element.addClass(cls); } } }; var append = function(oldFn, newFn) { if (typeof oldFn !== 'undefined') { return function() { return oldFn.apply(null, arguments) || newFn.apply(null, arguments); }; } else { return newFn; } }; view.hasModifier = append(view.hasModifier, fns.hasModifier); view.removeModifier = append(view.removeModifier, fns.removeModifier); view.addModifier = append(view.addModifier, fns.addModifier); view.setModifier = append(view.setModifier, fns.setModifier); view.toggleModifier = append(view.toggleModifier, fns.toggleModifier); }, /** * Remove modifier methods. * * @param {Object} view object */ removeModifierMethods: function(view) { view.hasModifier = view.removeModifier = view.addModifier = view.setModifier = view.toggleModifier = undefined; }, /** * Define a variable to JavaScript global scope and AngularJS scope as 'var' attribute name. * * @param {Object} attrs * @param object */ declareVarAttribute: function(attrs, object) { if (typeof attrs['var'] === 'string') { var varName = attrs['var']; this._defineVar(varName, object); unlockerDict.unlockVarName(varName); } }, _registerEventHandler: function(component, eventName) { var capitalizedEventName = eventName.charAt(0).toUpperCase() + eventName.slice(1); component.on(eventName, function(event) { $onsen.fireComponentEvent(component._element[0], eventName, event); var handler = component._attrs['ons' + capitalizedEventName]; if (handler) { component._scope.$eval(handler, {$event: event}); component._scope.$evalAsync(); } }); }, /** * Register event handlers for attributes. * * @param {Object} component * @param {String} eventNames */ registerEventHandlers: function(component, eventNames) { eventNames = eventNames.trim().split(/\s+/); for (var i = 0, l = eventNames.length; i < l; i ++) { var eventName = eventNames[i]; this._registerEventHandler(component, eventName); } }, /** * @return {Boolean} */ isAndroid: function() { return !!window.navigator.userAgent.match(/android/i); }, /** * @return {Boolean} */ isIOS: function() { return !!window.navigator.userAgent.match(/(ipad|iphone|ipod touch)/i); }, /** * @return {Boolean} */ isWebView: function() { return window.ons.isWebView(); }, /** * @return {Boolean} */ isIOS7Above: (function() { var ua = window.navigator.userAgent; var match = ua.match(/(iPad|iPhone|iPod touch);.*CPU.*OS (\d+)_(\d+)/i); var result = match ? parseFloat(match[2] + '.' + match[3]) >= 7 : false; return function() { return result; }; })(), /** * Fire a named event for a component. The view object, if it exists, is attached to event.component. * * @param {HTMLElement} [dom] * @param {String} event name */ fireComponentEvent: function(dom, eventName, data) { data = data || {}; var event = document.createEvent('HTMLEvents'); for (var key in data) { if (data.hasOwnProperty(key)) { event[key] = data[key]; } } event.component = dom ? angular.element(dom).data(dom.nodeName.toLowerCase()) || null : null; event.initEvent(dom.nodeName.toLowerCase() + ':' + eventName, true, true); dom.dispatchEvent(event); }, /** * Define a variable to JavaScript global scope and AngularJS scope. * * Util.defineVar('foo', 'foo-value'); * // => window.foo and $scope.foo is now 'foo-value' * * Util.defineVar('foo.bar', 'foo-bar-value'); * // => window.foo.bar and $scope.foo.bar is now 'foo-bar-value' * * @param {String} name * @param object */ _defineVar: function(name, object) { var names = name.split(/\./); function set(container, names, object) { var name; for (var i = 0; i < names.length - 1; i++) { name = names[i]; if (container[name] === undefined || container[name] === null) { container[name] = {}; } container = container[name]; } container[names[names.length - 1]] = object; } if (ons.componentBase) { set(ons.componentBase, names, object); } set($rootScope, names, object); } }; } function createUnlockerDict() { return { _unlockersDict: {}, _unlockedVarDict: {}, /** * @param {String} name * @param {Function} unlocker */ _addVarLock: function (name, unlocker) { if (!(unlocker instanceof Function)) { throw new Error('unlocker argument must be an instance of Function.'); } if (this._unlockersDict[name]) { this._unlockersDict[name].push(unlocker); } else { this._unlockersDict[name] = [unlocker]; } }, /** * @param {String} varName */ unlockVarName: function(varName) { var unlockers = this._unlockersDict[varName]; if (unlockers) { unlockers.forEach(function(unlock) { unlock(); }); } this._unlockedVarDict[varName] = true; }, /** * @param {Array} dependencies an array of var name * @param {Function} callback */ addCallback: function(dependencies, callback) { if (!(callback instanceof Function)) { throw new Error('callback argument must be an instance of Function.'); } var doorLock = new DoorLock(); var self = this; dependencies.forEach(function(varName) { if (!self._unlockedVarDict[varName]) { // wait for variable declaration var unlock = doorLock.lock(); self._addVarLock(varName, unlock); } }); if (doorLock.isLocked()) { doorLock.waitUnlock(callback); } else { callback(); } } }; } }]); })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ /** * Minimal animation library for managing css transition on mobile browsers. */ window.animit = (function(){ 'use strict'; /** * @param {HTMLElement} element */ var Animit = function(element) { if (!(this instanceof Animit)) { return new Animit(element); } if (element instanceof HTMLElement) { this.elements = [element]; } else if (Object.prototype.toString.call(element) === '[object Array]') { this.elements = element; } else { throw new Error('First argument must be an array or an instance of HTMLElement.'); } this.transitionQueue = []; this.lastStyleAttributeDict = []; var self = this; this.elements.forEach(function(element, index) { if (!element.hasAttribute('data-animit-orig-style')) { self.lastStyleAttributeDict[index] = element.getAttribute('style'); element.setAttribute('data-animit-orig-style', self.lastStyleAttributeDict[index] || ''); } else { self.lastStyleAttributeDict[index] = element.getAttribute('data-animit-orig-style'); } }); }; Animit.prototype = { /** * @property {Array} */ transitionQueue: undefined, /** * @property {HTMLElement} */ element: undefined, /** * Start animation sequence with passed animations. * * @param {Function} callback */ play: function(callback) { if (typeof callback === 'function') { this.transitionQueue.push(function(done) { callback(); done(); }); } this.startAnimation(); return this; }, /** * Queue transition animations or other function. * * e.g. animit(elt).queue({color: 'red'}) * e.g. animit(elt).queue({color: 'red'}, {duration: 0.4}) * e.g. animit(elt).queue({css: {color: 'red'}, duration: 0.2}) * * @param {Object|Animit.Transition|Function} transition * @param {Object} [options] */ queue: function(transition, options) { var queue = this.transitionQueue; if (transition && options) { options.css = transition; transition = new Animit.Transition(options); } if (!(transition instanceof Function || transition instanceof Animit.Transition)) { if (transition.css) { transition = new Animit.Transition(transition); } else { transition = new Animit.Transition({ css: transition }); } } if (transition instanceof Function) { queue.push(transition); } else if (transition instanceof Animit.Transition) { queue.push(transition.build()); } else { throw new Error('Invalid arguments'); } return this; }, /** * Queue transition animations. * * @param {Float} seconds */ wait: function(seconds) { var self = this; this.transitionQueue.push(function(done) { setTimeout(done, 1000 * seconds); }); return this; }, /** * Reset element's style. * * @param {Object} [options] * @param {Float} [options.duration] * @param {String} [options.timing] * @param {String} [options.transition] */ resetStyle: function(options) { options = options || {}; var self = this; if (options.transition && !options.duration) { throw new Error('"options.duration" is required when "options.transition" is enabled.'); } if (options.transition || (options.duration && options.duration > 0)) { var transitionValue = options.transition || ('all ' + options.duration + 's ' + (options.timing || 'linear')); var transitionStyle = 'transition: ' + transitionValue + '; -' + Animit.prefix + '-transition: ' + transitionValue + ';'; this.transitionQueue.push(function(done) { var elements = this.elements; // transition and style settings elements.forEach(function(element, index) { element.style[Animit.prefix + 'Transition'] = transitionValue; element.style.transition = transitionValue; var styleValue = (self.lastStyleAttributeDict[index] ? self.lastStyleAttributeDict[index] + '; ' : '') + transitionStyle; element.setAttribute('style', styleValue); }); // add "transitionend" event handler var removeListeners = util.addOnTransitionEnd(elements[0], function() { clearTimeout(timeoutId); reset(); done(); }); // for fail safe. var timeoutId = setTimeout(function() { removeListeners(); reset(); done(); }, options.duration * 1000 * 1.4); }); } else { this.transitionQueue.push(function(done) { reset(); done(); }); } return this; function reset() { // Clear transition animation settings. self.elements.forEach(function(element, index) { element.style[Animit.prefix + 'Transition'] = 'none'; element.style.transition = 'none'; if (self.lastStyleAttributeDict[index]) { element.setAttribute('style', self.lastStyleAttributeDict[index]); } else { element.setAttribute('style', ''); element.removeAttribute('style'); } }); } }, /** * Start animation sequence. */ startAnimation: function() { this._dequeueTransition(); return this; }, _dequeueTransition: function() { var transition = this.transitionQueue.shift(); if (this._currentTransition) { throw new Error('Current transition exists.'); } this._currentTransition = transition; var self = this; var called = false; var done = function() { if (!called) { called = true; self._currentTransition = undefined; self._dequeueTransition(); } else { throw new Error('Invalid state: This callback is called twice.'); } }; if (transition) { transition.call(this, done); } } }; Animit.cssPropertyDict = (function() { var styles = window.getComputedStyle(document.documentElement, ''); var dict = {}; var a = 'A'.charCodeAt(0); var z = 'z'.charCodeAt(0); for (var key in styles) { if (styles.hasOwnProperty(key)) { var char = key.charCodeAt(0); if (a <= key.charCodeAt(0) && z >= key.charCodeAt(0)) { if (key !== 'cssText' && key !== 'parentText' && key !== 'length') { dict[key] = true; } } } } return dict; })(); Animit.hasCssProperty = function(name) { return !!Animit.cssPropertyDict[name]; }; /** * Vendor prefix for css property. */ Animit.prefix = (function() { var styles = window.getComputedStyle(document.documentElement, ''), pre = (Array.prototype.slice .call(styles) .join('') .match(/-(moz|webkit|ms)-/) || (styles.OLink === '' && ['', 'o']) )[1]; return pre; })(); /** * @param {Animit} arguments */ Animit.runAll = function(/* arguments... */) { for (var i = 0; i < arguments.length; i++) { arguments[i].play(); } }; /** * @param {Object} options * @param {Float} [options.duration] * @param {String} [options.property] * @param {String} [options.timing] */ Animit.Transition = function(options) { this.options = options || {}; this.options.duration = this.options.duration || 0; this.options.timing = this.options.timing || 'linear'; this.options.css = this.options.css || {}; this.options.property = this.options.property || 'all'; }; Animit.Transition.prototype = { /** * @param {HTMLElement} element * @return {Function} */ build: function() { if (Object.keys(this.options.css).length === 0) { throw new Error('options.css is required.'); } var css = createActualCssProps(this.options.css); if (this.options.duration > 0) { var transitionValue = util.buildTransitionValue(this.options); var self = this; return function(callback) { var elements = this.elements; var timeout = self.options.duration * 1000 * 1.4; var removeListeners = util.addOnTransitionEnd(elements[0], function() { clearTimeout(timeoutId); callback(); }); var timeoutId = setTimeout(function() { removeListeners(); callback(); }, timeout); elements.forEach(function(element, index) { element.style[Animit.prefix + 'Transition'] = transitionValue; element.style.transition = transitionValue; Object.keys(css).forEach(function(name) { element.style[name] = css[name]; }); }); }; } if (this.options.duration <= 0) { return function(callback) { var elements = this.elements; elements.forEach(function(element, index) { element.style[Animit.prefix + 'Transition'] = 'none'; element.transition = 'none'; Object.keys(css).forEach(function(name) { element.style[name] = css[name]; }); }); if (elements.length) { elements[0].offsetHeight; } if (window.requestAnimationFrame) { requestAnimationFrame(callback); } else { setTimeout(callback, 1000 / 30); } }; } function createActualCssProps(css) { var result = {}; Object.keys(css).forEach(function(name) { var value = css[name]; name = util.normalizeStyleName(name); var prefixed = Animit.prefix + util.capitalize(name); if (Animit.cssPropertyDict[name]) { result[name] = value; } else if (Animit.cssPropertyDict[prefixed]) { result[prefixed] = value; } else { result[prefixed] = value; result[name] = value; } }); return result; } } }; var util = { /** * Normalize style property name. */ normalizeStyleName: function(name) { name = name.replace(/-[a-zA-Z]/g, function(all) { return all.slice(1).toUpperCase(); }); return name.charAt(0).toLowerCase() + name.slice(1); }, // capitalize string capitalize : function(str) { return str.charAt(0).toUpperCase() + str.slice(1); }, /** * @param {Object} params * @param {String} params.property * @param {Float} params.duration * @param {String} params.timing */ buildTransitionValue: function(params) { params.property = params.property || 'all'; params.duration = params.duration || 0.4; params.timing = params.timing || 'linear'; var props = params.property.split(/ +/); return props.map(function(prop) { return prop + ' ' + params.duration + 's ' + params.timing; }).join(', '); }, /** * Add an event handler on "transitionend" event. */ addOnTransitionEnd: function(element, callback) { if (!element) { return function() {}; } var fn = function(event) { if (element == event.target) { event.stopPropagation(); removeListeners(); callback(); } }; var removeListeners = function() { util._transitionEndEvents.forEach(function(eventName) { element.removeEventListener(eventName, fn); }); }; util._transitionEndEvents.forEach(function(eventName) { element.addEventListener(eventName, fn, false); }); return removeListeners; }, _transitionEndEvents: (function() { if (Animit.prefix === 'webkit' || Animit.prefix === 'o' || Animit.prefix === 'moz' || Animit.prefix === 'ms') { return [Animit.prefix + 'TransitionEnd', 'transitionend']; } return ['transitionend']; })() }; return Animit; })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ /** * @ngdoc object * @name ons.notification * @category dialog * @codepen Qwwxyp * @description * [en]Utility methods to create different kinds of alert dialogs. There are three methods available: alert, confirm and prompt.[/en] * [ja]いくつかの種類のアラートダイアログを作成するためのユーティリティメソッドを収めたオブジェクトです。[/ja] * @example * <script> * ons.notification.alert({ * message: 'Hello, world!' * }); * * ons.notification.confirm({ * message: 'Are you ready?' * callback: function(answer) { * // Do something here. * } * }); * * ons.notification.prompt({ * message: 'How old are you?', * callback: function(age) { * ons.notification.alert({ * message: 'You are ' + age + ' years old.' * }); * }); * }); * </script> */ /** * @ngdoc method * @signature alert(options) * @param {Object} options * [en]Parameter object.[/en] * [ja]オプションを指定するオブジェクトです。[/ja] * @param {String} [options.message] * [en]Alert message.[/en] * [ja]アラートダイアログに表示する文字列を指定します。[/ja] * @param {String} [options.messageHTML] * [en]Alert message in HTML.[/en] * [ja]アラートダイアログに表示するHTMLを指定します。[/ja] * @param {String} [options.buttonLabel] * [en]Label for confirmation button. Default is "OK".[/en] * [ja]確認ボタンのラベルを指定します。"OK"がデフォルトです。[/ja] * @param {String} [options.animation] * [en]Animation name. Available animations are "none", "fade" and "slide".[/en] * [ja]アラートダイアログを表示する際のアニメーション名を指定します。"none", "fade", "slide"のいずれかを指定できます。[/ja] * @param {String} [options.title] * [en]Dialog title. Default is "Alert".[/en] * [ja]アラートダイアログの上部に表示するタイトルを指定します。"Alert"がデフォルトです。[/ja] * @param {String} [options.modifier] * [en]Modifier for the dialog.[/en] * [ja]アラートダイアログのmodifier属性の値を指定します。[/ja] * @param {Function} [options.callback] * [en]Function that executes after dialog has been closed.[/en] * [ja]アラートダイアログが閉じられた時に呼び出される関数オブジェクトを指定します。[/ja] * @description * [en] * Display an alert dialog to show the user a message. * The content of the message can be either simple text or HTML. * Must specify either message or messageHTML. * [/en] * [ja] * ユーザーへメッセージを見せるためのアラートダイアログを表示します。 * 表示するメッセージは、テキストかもしくはHTMLを指定できます。 * このメソッドの引数には、options.messageもしくはoptions.messageHTMLのどちらかを必ず指定する必要があります。 * [/ja] */ /** * @ngdoc method * @signature confirm(options) * @param {Object} options * [en]Parameter object.[/en] * @param {String} [options.message] * [en]Confirmation question.[/en] * [ja]確認ダイアログに表示するメッセージを指定します。[/ja] * @param {String} [options.messageHTML] * [en]Dialog content in HTML.[/en] * [ja]確認ダイアログに表示するHTMLを指定します。[/ja] * @param {Array} [options.buttonLabels] * [en]Labels for the buttons. Default is ["Cancel", "OK"].[/en] * [ja]ボタンのラベルの配列を指定します。["Cancel", "OK"]がデフォルトです。[/ja] * @param {Number} [options.primaryButtonIndex] * [en]Index of primary button. Default is 1.[/en] * [ja]プライマリボタンのインデックスを指定します。デフォルトは 1 です。[/ja] * @param {Boolean} [options.cancelable] * [en]Whether the dialog is cancelable or not. Default is false.[/en] * [ja]ダイアログがキャンセル可能かどうかを指定します。[/ja] * @param {String} [options.animation] * [en]Animation name. Available animations are "none", "fade" and "slide".[/en] * [ja]アニメーション名を指定します。"none", "fade", "slide"のいずれかを指定します。[/ja] * @param {String} [options.title] * [en]Dialog title. Default is "Confirm".[/en] * [ja]ダイアログのタイトルを指定します。"Confirm"がデフォルトです。[/ja] * @param {String} [options.modifier] * [en]Modifier for the dialog.[/en] * [ja]ダイアログのmodifier属性の値を指定します。[/ja] * @param {Function} [options.callback] * [en] * Function that executes after the dialog has been closed. * Argument for the function is the index of the button that was pressed or -1 if the dialog was canceled. * [/en] * [ja] * ダイアログが閉じられた後に呼び出される関数オブジェクトを指定します。 * この関数の引数として、押されたボタンのインデックス値が渡されます。 * もしダイアログがキャンセルされた場合には-1が渡されます。 * [/ja] * @description * [en] * Display a dialog to ask the user for confirmation. * The default button labels are "Cancel" and "OK" but they can be customized. * Must specify either message or messageHTML. * [/en] * [ja] * ユーザに確認を促すダイアログを表示します。 * デオルとのボタンラベルは、"Cancel"と"OK"ですが、これはこのメソッドの引数でカスタマイズできます。 * このメソッドの引数には、options.messageもしくはoptions.messageHTMLのどちらかを必ず指定する必要があります。 * [/ja] */ /** * @ngdoc method * @signature prompt(options) * @param {Object} options * [en]Parameter object.[/en] * [ja]オプションを指定するオブジェクトです。[/ja] * @param {String} [options.message] * [en]Prompt question.[/en] * [ja]ダイアログに表示するメッセージを指定します。[/ja] * @param {String} [options.messageHTML] * [en]Dialog content in HTML.[/en] * [ja]ダイアログに表示するHTMLを指定します。[/ja] * @param {String} [options.buttonLabel] * [en]Label for confirmation button. Default is "OK".[/en] * [ja]確認ボタンのラベルを指定します。"OK"がデフォルトです。[/ja] * @param {Number} [options.primaryButtonIndex] * [en]Index of primary button. Default is 1.[/en] * [ja]プライマリボタンのインデックスを指定します。デフォルトは 1 です。[/ja] * @param {Boolean} [options.cancelable] * [en]Whether the dialog is cancelable or not. Default is false.[/en] * [ja]ダイアログがキャンセル可能かどうかを指定します。デフォルトは false です。[/ja] * @param {String} [options.animation] * [en]Animation name. Available animations are "none", "fade" and "slide".[/en] * [ja]アニメーション名を指定します。"none", "fade", "slide"のいずれかを指定します。[/ja] * @param {String} [options.title] * [en]Dialog title. Default is "Alert".[/en] * [ja]ダイアログのタイトルを指定します。デフォルトは "Alert" です。[/ja] * @param {String} [options.modifier] * [en]Modifier for the dialog.[/en] * [ja]ダイアログのmodifier属性の値を指定します。[/ja] * @param {Function} [options.callback] * [en] * Function that executes after the dialog has been closed. * Argument for the function is the value of the input field or null if the dialog was canceled. * [/en] * [ja] * ダイアログが閉じられた後に実行される関数オブジェクトを指定します。 * 関数の引数として、インプット要素の中の値が渡されます。ダイアログがキャンセルされた場合には、nullが渡されます。 * [/ja] * @description * [en] * Display a dialog with a prompt to ask the user a question. * Must specify either message or messageHTML. * [/en] * [ja] * ユーザーに入力を促すダイアログを表示します。 * このメソッドの引数には、options.messageもしくはoptions.messageHTMLのどちらかを必ず指定する必要があります。 * [/ja] */ window.ons.notification = (function() { var createAlertDialog = function(title, message, buttonLabels, primaryButtonIndex, modifier, animation, callback, messageIsHTML, cancelable, promptDialog, autofocus, placeholder) { var dialogEl = angular.element('<ons-alert-dialog>'), titleEl = angular.element('<div>').addClass('alert-dialog-title').text(title), messageEl = angular.element('<div>').addClass('alert-dialog-content'), footerEl = angular.element('<div>').addClass('alert-dialog-footer'), inputEl; if (modifier) { dialogEl.attr('modifier', modifier); } dialogEl.attr('animation', animation); if (messageIsHTML) { messageEl.html(message); } else { messageEl.text(message); } dialogEl.append(titleEl).append(messageEl); if (promptDialog) { inputEl = angular.element('<input>') .addClass('text-input') .attr('placeholder', placeholder) .css({width: '100%', marginTop: '10px'}); messageEl.append(inputEl); } dialogEl.append(footerEl); angular.element(document.body).append(dialogEl); ons.compile(dialogEl[0]); var alertDialog = dialogEl.data('ons-alert-dialog'); if (buttonLabels.length <= 2) { footerEl.addClass('alert-dialog-footer--one'); } var createButton = function(i) { var buttonEl = angular.element('<button>').addClass('alert-dialog-button').text(buttonLabels[i]); if (i == primaryButtonIndex) { buttonEl.addClass('alert-dialog-button--primal'); } if (buttonLabels.length <= 2) { buttonEl.addClass('alert-dialog-button--one'); } buttonEl.on('click', function() { buttonEl.off('click'); alertDialog.hide({ callback: function() { if (promptDialog) { callback(inputEl.val()); } else { callback(i); } alertDialog.destroy(); alertDialog = inputEl = buttonEl = null; } }); }); footerEl.append(buttonEl); }; for (var i = 0; i < buttonLabels.length; i++) { createButton(i); } if (cancelable) { alertDialog.setCancelable(cancelable); alertDialog.on('cancel', function() { if(promptDialog) { callback(null); } else { callback(-1); } setTimeout(function() { alertDialog.destroy(); alertDialog = null; inputEl = null; }); }); } alertDialog.show({ callback: function() { if(promptDialog && autofocus) { inputEl[0].focus(); } } }); dialogEl = titleEl = messageEl = footerEl = null; }; return { /** * @param {Object} options * @param {String} [options.message] * @param {String} [options.messageHTML] * @param {String} [options.buttonLabel] * @param {String} [options.animation] * @param {String} [options.title] * @param {String} [options.modifier] * @param {Function} [options.callback] */ alert: function(options) { var defaults = { buttonLabel: 'OK', animation: 'default', title: 'Alert', callback: function() {} }; options = angular.extend({}, defaults, options); if (!options.message && !options.messageHTML) { throw new Error('Alert dialog must contain a message.'); } createAlertDialog( options.title, options.message || options.messageHTML, [options.buttonLabel], 0, options.modifier, options.animation, options.callback, !options.message ? true : false, false, false, false ); }, /** * @param {Object} options * @param {String} [options.message] * @param {String} [options.messageHTML] * @param {Array} [options.buttonLabels] * @param {Number} [options.primaryButtonIndex] * @param {Boolean} [options.cancelable] * @param {String} [options.animation] * @param {String} [options.title] * @param {String} [options.modifier] * @param {Function} [options.callback] */ confirm: function(options) { var defaults = { buttonLabels: ['Cancel', 'OK'], primaryButtonIndex: 1, animation: 'default', title: 'Confirm', callback: function() {}, cancelable: false }; options = angular.extend({}, defaults, options); if (!options.message && !options.messageHTML) { throw new Error('Confirm dialog must contain a message.'); } createAlertDialog( options.title, options.message || options.messageHTML, options.buttonLabels, options.primaryButtonIndex, options.modifier, options.animation, options.callback, !options.message ? true : false, options.cancelable, false, false ); }, /** * @param {Object} options * @param {String} [options.message] * @param {String} [options.messageHTML] * @param {String} [options.buttonLabel] * @param {Boolean} [options.cancelable] * @param {String} [options.animation] * @param {String} [options.placeholder] * @param {String} [options.title] * @param {String} [options.modifier] * @param {Function} [options.callback] * @param {Boolean} [options.autofocus] */ prompt: function(options) { var defaults = { buttonLabel: 'OK', animation: 'default', title: 'Alert', placeholder: '', callback: function() {}, cancelable: false, autofocus: true, }; options = angular.extend({}, defaults, options); if (!options.message && !options.messageHTML) { throw new Error('Prompt dialog must contain a message.'); } createAlertDialog( options.title, options.message || options.messageHTML, [options.buttonLabel], 0, options.modifier, options.animation, options.callback, !options.message ? true : false, options.cancelable, true, options.autofocus, options.placeholder ); } }; })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ /** * @ngdoc object * @name ons.orientation * @category util * @description * [en]Utility methods for orientation detection.[/en] * [ja]画面のオリエンテーション検知のためのユーティリティメソッドを収めているオブジェクトです。[/ja] */ /** * @ngdoc event * @name change * @description * [en]Fired when the device orientation changes.[/en] * [ja]デバイスのオリエンテーションが変化した際に発火します。[/ja] * @param {Object} event * [en]Event object.[/en] * [ja]イベントオブジェクトです。[/ja] * @param {Boolean} event.isPortrait * [en]Will be true if the current orientation is portrait mode.[/en] * [ja]現在のオリエンテーションがportraitの場合にtrueを返します。[/ja] */ /** * @ngdoc method * @signature isPortrait() * @return {Boolean} * [en]Will be true if the current orientation is portrait mode.[/en] * [ja]オリエンテーションがportraitモードの場合にtrueになります。[/ja] * @description * [en]Returns whether the current screen orientation is portrait or not.[/en] * [ja]オリエンテーションがportraitモードかどうかを返します。[/ja] */ /** * @ngdoc method * @signature isLandscape() * @return {Boolean} * [en]Will be true if the current orientation is landscape mode.[/en] * [ja]オリエンテーションがlandscapeモードの場合にtrueになります。[/ja] * @description * [en]Returns whether the current screen orientation is landscape or not.[/en] * [ja]オリエンテーションがlandscapeモードかどうかを返します。[/ja] */ /** * @ngdoc method * @signature on(eventName, listener) * @description * [en]Add an event listener.[/en] * [ja]イベントリスナーを追加します。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]このイベントが発火された際に呼び出される関数オブジェクトを指定します。[/ja] */ /** * @ngdoc method * @signature once(eventName, listener) * @description * [en]Add an event listener that's only triggered once.[/en] * [ja]一度だけ呼び出されるイベントリスナーを追加します。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja] */ /** * @ngdoc method * @signature off(eventName, [listener]) * @description * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en] * [ja]イベントリスナーを削除します。もしイベントリスナーを指定しなかった場合には、そのイベントに紐づく全てのイベントリスナーが削除されます。[/ja] * @param {String} eventName * [en]Name of the event.[/en] * [ja]イベント名を指定します。[/ja] * @param {Function} listener * [en]Function to execute when the event is triggered.[/en] * [ja]削除するイベントリスナーを指定します。[/ja] */ window.ons.orientation = (function() { return create()._init(); function create() { var obj = { // actual implementation to detect if whether current screen is portrait or not _isPortrait: false, /** * @return {Boolean} */ isPortrait: function() { return this._isPortrait(); }, /** * @return {Boolean} */ isLandscape: function() { return !this.isPortrait(); }, _init: function() { document.addEventListener('DOMContentLoaded', this._onDOMContentLoaded.bind(this), false); if ('orientation' in window) { window.addEventListener('orientationchange', this._onOrientationChange.bind(this), false); } else { window.addEventListener('resize', this._onResize.bind(this), false); } this._isPortrait = function() { return window.innerHeight > window.innerWidth; }; return this; }, _onDOMContentLoaded: function() { this._installIsPortraitImplementation(); this.emit('change', {isPortrait: this.isPortrait()}); }, _installIsPortraitImplementation: function() { var isPortrait = window.innerWidth < window.innerHeight; if (!('orientation' in window)) { this._isPortrait = function() { return window.innerHeight > window.innerWidth; }; } else if (window.orientation % 180 === 0) { this._isPortrait = function() { return Math.abs(window.orientation % 180) === 0 ? isPortrait : !isPortrait; }; } else { this._isPortrait = function() { return Math.abs(window.orientation % 180) === 90 ? isPortrait : !isPortrait; }; } }, _onOrientationChange: function() { var isPortrait = this._isPortrait(); // Wait for the dimensions to change because // of Android inconsistency. var nIter = 0; var interval = setInterval(function() { nIter++; var w = window.innerWidth, h = window.innerHeight; if ((isPortrait && w <= h) || (!isPortrait && w >= h)) { this.emit('change', {isPortrait: isPortrait}); clearInterval(interval); } else if (nIter === 50) { this.emit('change', {isPortrait: isPortrait}); clearInterval(interval); } }.bind(this), 20); }, // Run on not mobile browser. _onResize: function() { this.emit('change', {isPortrait: this.isPortrait()}); } }; MicroEvent.mixin(obj); return obj; } })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ /** * @ngdoc object * @name ons.platform * @category util * @description * [en]Utility methods to detect current platform.[/en] * [ja]現在実行されているプラットフォームを検知するためのユーティリティメソッドを収めたオブジェクトです。[/ja] */ /** * @ngdoc method * @signature isWebView() * @description * [en]Returns whether app is running in Cordova.[/en] * [ja]Cordova内で実行されているかどうかを返します。[/ja] * @return {Boolean} */ /** * @ngdoc method * @signature isIOS() * @description * [en]Returns whether the OS is iOS.[/en] * [ja]iOS上で実行されているかどうかを返します。[/ja] * @return {Boolean} */ /** * @ngdoc method * @signature isAndroid() * @description * [en]Returns whether the OS is Android.[/en] * [ja]Android上で実行されているかどうかを返します。[/ja] * @return {Boolean} */ /** * @ngdoc method * @signature isIPhone() * @description * [en]Returns whether the device is iPhone.[/en] * [ja]iPhone上で実行されているかどうかを返します。[/ja] * @return {Boolean} */ /** * @ngdoc method * @signature isIPad() * @description * [en]Returns whether the device is iPad.[/en] * [ja]iPad上で実行されているかどうかを返します。[/ja] * @return {Boolean} */ /** * @ngdoc method * @signature isBlackBerry() * @description * [en]Returns whether the device is BlackBerry.[/en] * [ja]BlackBerry上で実行されているかどうかを返します。[/ja] * @return {Boolean} */ /** * @ngdoc method * @signature isOpera() * @description * [en]Returns whether the browser is Opera.[/en] * [ja]Opera上で実行されているかどうかを返します。[/ja] * @return {Boolean} */ /** * @ngdoc method * @signature isFirefox() * @description * [en]Returns whether the browser is Firefox.[/en] * [ja]Firefox上で実行されているかどうかを返します。[/ja] * @return {Boolean} */ /** * @ngdoc method * @signature isSafari() * @description * [en]Returns whether the browser is Safari.[/en] * [ja]Safari上で実行されているかどうかを返します。[/ja] * @return {Boolean} */ /** * @ngdoc method * @signature isChrome() * @description * [en]Returns whether the browser is Chrome.[/en] * [ja]Chrome上で実行されているかどうかを返します。[/ja] * @return {Boolean} */ /** * @ngdoc method * @signature isIE() * @description * [en]Returns whether the browser is Internet Explorer.[/en] * [ja]Internet Explorer上で実行されているかどうかを返します。[/ja] * @return {Boolean} */ /** * @ngdoc method * @signature isIOS7above() * @description * [en]Returns whether the iOS version is 7 or above.[/en] * [ja]iOS7以上で実行されているかどうかを返します。[/ja] * @return {Boolean} */ (function() { 'use strict'; window.ons.platform = { /** * @return {Boolean} */ isWebView: function() { return ons.isWebView(); }, /** * @return {Boolean} */ isIOS: function() { return /iPhone|iPad|iPod/i.test(navigator.userAgent); }, /** * @return {Boolean} */ isAndroid: function() { return /Android/i.test(navigator.userAgent); }, /** * @return {Boolean} */ isIPhone: function() { return /iPhone/i.test(navigator.userAgent); }, /** * @return {Boolean} */ isIPad: function() { return /iPad/i.test(navigator.userAgent); }, /** * @return {Boolean} */ isBlackBerry: function() { return /BlackBerry|RIM Tablet OS|BB10/i.test(navigator.userAgent); }, /** * @return {Boolean} */ isOpera: function() { return (!!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0); }, /** * @return {Boolean} */ isFirefox: function() { return (typeof InstallTrigger !== 'undefined'); }, /** * @return {Boolean} */ isSafari: function() { return (Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0); }, /** * @return {Boolean} */ isChrome: function() { return (!!window.chrome && !(!!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0)); }, /** * @return {Boolean} */ isIE: function() { return false || !!document.documentMode; }, /** * @return {Boolean} */ isIOS7above: function() { if(/iPhone|iPad|iPod/i.test(navigator.userAgent)) { var ver = (navigator.userAgent.match(/\b[0-9]+_[0-9]+(?:_[0-9]+)?\b/)||[''])[0].replace(/_/g,'.'); return (parseInt(ver.split('.')[0]) >= 7); } return false; } }; })(); (function() { 'use strict'; // fastclick window.addEventListener('load', function() { FastClick.attach(document.body); }, false); // viewport.js new Viewport().setup(); // modernize Modernizr.testStyles('#modernizr { -webkit-overflow-scrolling:touch }', function(elem, rule) { Modernizr.addTest( 'overflowtouch', window.getComputedStyle && window.getComputedStyle(elem).getPropertyValue('-webkit-overflow-scrolling') == 'touch'); }); // confirm to use jqLite if (window.jQuery && angular.element === window.jQuery) { console.warn('Onsen UI require jqLite. Load jQuery after loading AngularJS to fix this error. jQuery may break Onsen UI behavior.'); } })(); /* Copyright 2013-2015 ASIAL CORPORATION 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. */ (function(){ 'use strict'; angular.module('onsen').run(['$templateCache', function($templateCache) { var templates = window.document.querySelectorAll('script[type="text/ons-template"]'); for (var i = 0; i < templates.length; i++) { var template = angular.element(templates[i]); var id = template.attr('id'); if (typeof id === 'string') { $templateCache.put(id, template.text()); } } }]); })();
src/Feedback/FeedbackCard/FeedbackCard.js
ctco/rosemary-ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import noop from 'lodash/noop'; import types from '../types'; const cardTitle = { [types.error]: 'Error', [types.success]: 'Success', [types.waring]: 'Warning', [types.info]: 'Info' }; class FeedbackCard extends React.Component { static propTypes = { id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), onClose: PropTypes.func, text: PropTypes.string.isRequired, title: PropTypes.string, type: PropTypes.string.isRequired, testId: PropTypes.any }; static defaultProps = { onClose: noop }; render() { const { waring, success, error, info } = types; const { type } = this.props; let className = classNames(this.props.className, 'card', { 'card--success': success === type, 'card--error': error === type, 'card--warning': waring === type, 'card--info': info === type }); return ( <div data-test-id={this.props.testId} className={className}> <div className="card__content"> <i className="im card__icon" /> <div className="card-message"> <div className="card-message__title">{this.props.title || cardTitle[type]}</div> <div className="card-message__description"> <span dangerouslySetInnerHTML={{ __html: this.props.text }} /> </div> <i onClick={this._onClose} className="im icon-close close-message" /> </div> </div> </div> ); } _onClose = e => { this.props.onClose(this.props.id); }; } export default FeedbackCard;
docs/src/app/components/pages/components/List/ExamplePhone.js
verdan/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import Divider from 'material-ui/Divider'; import CommunicationCall from 'material-ui/svg-icons/communication/call'; import CommunicationChatBubble from 'material-ui/svg-icons/communication/chat-bubble'; import {indigo500} from 'material-ui/styles/colors'; import CommunicationEmail from 'material-ui/svg-icons/communication/email'; const ListExamplePhone = () => ( <MobileTearSheet> <List> <ListItem leftIcon={<CommunicationCall color={indigo500} />} rightIcon={<CommunicationChatBubble />} primaryText="(650) 555 - 1234" secondaryText="Mobile" /> <ListItem insetChildren={true} rightIcon={<CommunicationChatBubble />} primaryText="(323) 555 - 6789" secondaryText="Work" /> </List> <Divider inset={true} /> <List> <ListItem leftIcon={<CommunicationEmail color={indigo500} />} primaryText="aliconnors@example.com" secondaryText="Personal" /> <ListItem insetChildren={true} primaryText="ali_connors@example.com" secondaryText="Work" /> </List> </MobileTearSheet> ); export default ListExamplePhone;
src/library/breadCrumbs/index.js
zdizzle6717/tree-machine-records
'use strict'; import React from 'react'; import { Link, browserHistory } from 'react-router'; export default class BreadCrumbs extends React.Component { // TODO: This is garbage. Find a better solution. constructor() { super(); this.state = { 'breadCrumbs': [] } this.onViewChange = this.onViewChange.bind(this); } componentWillMount() { let locationListener = browserHistory.listen((location) => { this.onViewChange(location); }); } onViewChange(location) { let breadCrumbs = this.state.breadCrumbs; if (breadCrumbs.length < this.props.totalCrumbs) { breadCrumbs.push(location) } else { breadCrumbs.shift(); breadCrumbs.push(location); } this.setState({ 'breadCrumbs': breadCrumbs }); } componentDidMount() { } componentWillUnmount() { locationListener(); } render() { return ( <ul className="breadCrumbs"> { this.state.breadCrumbs.length > 1 && this.state.breadCrumbs.map((crumb) => <li><Link className="crumb" key={crumb.key} to={crumb.pathname} activeClassName="active">{crumb.key}</Link></li> ) } </ul> ) } } BreadCrumbs.propTypes = { 'totalCrumbs': React.PropTypes.number.isRequired, }
classic/src/scenes/keychain/src/index.js
wavebox/waveboxapp
import React from 'react' import ReactDOM from 'react-dom' import Provider from 'Scenes/Provider' import TopLevelErrorBoundary from 'wbui/TopLevelErrorBoundary' // Prevent Drag/Drop document.addEventListener('drop', (evt) => { evt.preventDefault() evt.stopPropagation() }, false) document.addEventListener('dragover', (evt) => { evt.preventDefault() evt.stopPropagation() }, false) // Render ReactDOM.render(( <TopLevelErrorBoundary> <Provider /> </TopLevelErrorBoundary> ), document.getElementById('ReactComponent-AppScene'))
src/components/common/TwoColumnView.js
CodeLanka/ez-net-app
import React from 'react'; import { StyleSheet, View } from 'react-native'; import PropTypes from 'prop-types'; const styles = StyleSheet.create({ layout: { flex: 1, flexDirection: 'row', justifyContent: 'space-between', }, }); const TwoColumnView = (props) => { const { children } = props; if (!Array.isArray(children)) { console.log('Children to the TwoColumnView is not an array') return null; } const left = []; const right = []; children.forEach((child, index) => { if (index % 2 === 0) { // even left.push(child); } else { right.push(child); } }); return ( <View style={styles.layout}> <View> {left} </View> <View> {right} </View> </View> ); }; TwoColumnView.propTypes = { children: PropTypes.arrayOf(PropTypes.node).isRequired, }; export default TwoColumnView;
files/maxmertkit/1.0.5/js/maxmertkit.js
gswalden/jsdelivr
(function() { "use strict"; var MaxmertkitEvent, MaxmertkitHelpers, MaxmertkitReactor, isInDOM, _eventCallbackId, _eventCallbacks, _eventHandlers, _id, _reactor, _reactorEvents; _eventHandlers = []; _eventCallbacks = []; _reactorEvents = []; _eventCallbackId = 0; _id = 0; isInDOM = function(el) { var html; html = document.body.parentNode; while (el) { if (el === html) { return true; } el = el.parentNode; } return false; }; MaxmertkitEvent = (function() { function MaxmertkitEvent(name) { this.name = name; this.callbacks = new Array(); } MaxmertkitEvent.prototype.registerCallback = function(callback, el, id) { return this.callbacks.push({ id: id, el: el, callback: callback }); }; MaxmertkitEvent.prototype.removeCallback = function(id) { var cb, index, _i, _len, _ref, _results; _ref = this.callbacks; _results = []; for (index = _i = 0, _len = _ref.length; _i < _len; index = ++_i) { cb = _ref[index]; if ((cb != null) && cb.id === id) { _results.push(this.callbacks.splice(index, 1)); } else { _results.push(void 0); } } return _results; }; return MaxmertkitEvent; })(); MaxmertkitReactor = (function() { function MaxmertkitReactor() {} MaxmertkitReactor.prototype.events = _reactorEvents; MaxmertkitReactor.prototype.registerEvent = function(eventName) { var event; event = new MaxmertkitEvent(eventName); if (this.events[eventName] == null) { return this.events[eventName] = event; } }; MaxmertkitReactor.prototype.dispatchEvent = function(eventName, eventArgs) { var callback, index, _i, _len, _ref, _results; _ref = this.events[eventName].callbacks; _results = []; for (index = _i = 0, _len = _ref.length; _i < _len; index = ++_i) { callback = _ref[index]; if (isInDOM(callback.el)) { _results.push(callback.callback(eventArgs)); } else { _results.push(this.events[eventName].removeCallback(callback.id)); } } return _results; }; MaxmertkitReactor.prototype.removeEventListener = function(eventName, callbackId) { if (this.events[eventName] != null) { return this.events[eventName].removeCallback(callbackId); } }; MaxmertkitReactor.prototype.addEventListener = function(eventName, callback, el, immediately) { var eventId, i, timer; eventId = _eventCallbackId++; if (this.events[eventName] != null) { this.events[eventName].registerCallback(callback, el, eventId); } else { i = 0; timer = setInterval((function(_this) { return function() { if (i < 10) { if (_this.events[eventName] != null) { if ((immediately != null) && immediately) { callback(); } _this.events[eventName].registerCallback(callback, el, eventId); clearInterval(timer); return timer = null; } else { return i++; } } else { clearInterval(timer); return timer = null; } }; })(this), 1000); } return eventId; }; return MaxmertkitReactor; })(); _reactor = new MaxmertkitReactor(); MaxmertkitHelpers = (function() { MaxmertkitHelpers.prototype._id = null; MaxmertkitHelpers.prototype._instances = new Array(); MaxmertkitHelpers.prototype.reactor = _reactor; function MaxmertkitHelpers(el, options) { this.el = el; this.options = options; this._pushInstance(); } MaxmertkitHelpers.prototype.destroy = function() { this._popInstance(); this._destroy(this); return true; }; MaxmertkitHelpers.prototype._delete = function(object) { var key, value, _results; _results = []; for (key in object) { value = object[key]; _results.push(delete object[key]); } return _results; }; MaxmertkitHelpers.prototype._destroy = function(object) { this._delete(object); object = null; return true; }; MaxmertkitHelpers.prototype._pushInstance = function() { this._id = _id++; return this._instances.push(this); }; MaxmertkitHelpers.prototype._popInstance = function() { var index, instance, _i, _len, _ref, _results; _ref = this._instances; _results = []; for (index = _i = 0, _len = _ref.length; _i < _len; index = ++_i) { instance = _ref[index]; if ((instance != null ? instance._id : void 0) === this._id) { this._instances.splice(index, 1); } _results.push(delete this); } return _results; }; MaxmertkitHelpers.prototype._setOptions = function(options) { return console.warning("Maxmertkit Helpers. There is no standart setOptions function."); }; MaxmertkitHelpers.prototype._extend = function(object, properties) { var key, val; for (key in properties) { val = properties[key]; object[key] = val; } return object; }; MaxmertkitHelpers.prototype._merge = function(options, overrides) { return this._extend(this._extend({}, options), overrides); }; MaxmertkitHelpers.prototype._selfish = function() { var index, instance, _i, _len, _ref, _results; _ref = this._instances; _results = []; for (index = _i = 0, _len = _ref.length; _i < _len; index = ++_i) { instance = _ref[index]; if (this._id !== instance._id) { _results.push((typeof instance.close === "function" ? instance.close() : void 0) || (typeof instance.deactivate === "function" ? instance.deactivate() : void 0)); } else { _results.push(void 0); } } return _results; }; MaxmertkitHelpers.prototype._isMobile = function() { return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent); }; MaxmertkitHelpers.prototype._removeEventListener = function(el, eventName, handler) { if (el.removeEventListener) { el.removeEventListener(eventName, handler, false); } else { el.detachEvent("on" + eventName, handler); } }; MaxmertkitHelpers.prototype._addEventListener = function(el, eventName, handler) { if (el.addEventListener) { el.addEventListener(eventName, handler, false); } else { el.attachEvent("on" + eventName, function() { handler.call(el); }); } }; MaxmertkitHelpers.prototype._isInDOM = isInDOM; MaxmertkitHelpers.prototype._hasClass = function(className, el) { el = el || this.el; if (el.classList) { return el.classList.contains(className); } else { return new RegExp('(^| )' + className + '( |$)', 'gi').test(el.className); } }; MaxmertkitHelpers.prototype._addClass = function(className, el) { var classes, classin, _i, _len, _results; el = el || this.el; if (el.classList != null) { classes = className.split(" "); _results = []; for (_i = 0, _len = classes.length; _i < _len; _i++) { classin = classes[_i]; _results.push(el.classList.add(classin)); } return _results; } else { return el.className += ' ' + className; } }; MaxmertkitHelpers.prototype._removeClass = function(className, el) { var classes, classin, _i, _len, _results; el = el || this.el; if (el.classList) { classes = className.split(" "); _results = []; for (_i = 0, _len = classes.length; _i < _len; _i++) { classin = classes[_i]; _results.push(el.classList.remove(classin)); } return _results; } else { return el.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' '); } }; MaxmertkitHelpers.prototype._closest = function(selector, el) { var matchesSelector; el = el || this.el; matchesSelector = el.matches || el.webkitMatchesSelector || el.mozMatchesSelector || el.msMatchesSelector; while (el) { if (matchesSelector.bind(el)(selector)) { return el; } else { el = el.parentElement; } } return false; }; MaxmertkitHelpers.prototype._outerWidth = function(el) { var style, width; el = el || this.el; width = el.offsetWidth; try { style = el.currentStyle || getComputedStyle(el); } catch (_error) {} if (style) { if ((style.paddingLeft != null) && style.paddingLeft !== '') { width += parseInt(style.paddingLeft); } if ((style.paddingRight != null) && style.paddingRight !== '') { width += parseInt(style.paddingRight); } } return width; }; MaxmertkitHelpers.prototype._outerHeight = function(el) { var height, style; el = el || this.el; height = el.offsetHeight; try { style = el.currentStyle || getComputedStyle(el); } catch (_error) {} if (style != null) { if ((style.paddingTop != null) && style.paddingTop !== '') { height += parseInt(style.paddingTop); } if ((style.paddingBottom != null) && style.paddingBottom !== '') { height += parseInt(style.paddingBottom); } } return height; }; MaxmertkitHelpers.prototype._getPosition = function(el) { var curleft, curtop, style; el = el || this.el; curleft = curtop = 0; if (el.offsetParent) { while (true) { /* FIXME: Not sure if it needed to calculate with style margin */ try { style = el.currentStyle || getComputedStyle(el); } catch (_error) {} curleft += el.offsetLeft; curtop += el.offsetTop; if (!(el = el.offsetParent)) { break; } } } return { left: curleft, top: curtop }; }; MaxmertkitHelpers.prototype._getContainer = function(el) { var parent, style; parent = el || this.el; try { style = getComputedStyle(parent); } catch (_error) {} if (style == null) { return parent; } if (/(relative|fixed)/.test(style['position'])) { return parent; } while ((parent != null) && (parent = parent.parentNode)) { try { style = getComputedStyle(parent); } catch (_error) {} if (style == null) { return parent; } if (/(relative|fixed)/.test(style['position'])) { return parent; } } return document; }; MaxmertkitHelpers.prototype._getScrollContainer = function(el) { var parent, style; parent = el || this.el; try { style = getComputedStyle(parent); } catch (_error) {} if (style == null) { return parent; } if (/(auto|scroll)/.test(style['overflow'] + style['overflow-y'] + style['overflow-x']) && parent.nodeName !== 'BODY') { return parent; } while (parent = parent.parentNode) { try { style = getComputedStyle(parent); } catch (_error) {} if (style == null) { return parent; } if (/(auto|scroll)/.test(style['overflow'] + style['overflow-y'] + style['overflow-x']) && parent.nodeName !== 'BODY') { return parent; } } return document; }; MaxmertkitHelpers.prototype._setCSSTransform = function(el, transform) { el = el || this.el; el.style.webkitTransform = transform; el.style.mozTransform = transform; el.style.msTransform = transform; el.style.oTransform = transform; return el.style.transform = transform; }; MaxmertkitHelpers.prototype._setCSSFilter = function(el, filter) { el = el || this.el; el.style.webkitFilter = filter; el.style.mozFilter = filter; el.style.msFilter = filter; el.style.oFilter = filter; return el.style.filter = filter; }; MaxmertkitHelpers.prototype._setCSSOpacity = function(el, opacity) { el = el || this.el; el.style.webkitOpacity = opacity; el.style.mozOpacity = opacity; el.style.msOpacity = opacity; el.style.oOpacity = opacity; return el.style.opacity = opacity; }; return MaxmertkitHelpers; })(); (function() { var lastTime, vendors, x; lastTime = 0; vendors = ["ms", "moz", "webkit", "o"]; x = 0; while (x < vendors.length && !window.requestAnimationFrame) { window.requestAnimationFrame = window[vendors[x] + "RequestAnimationFrame"]; window.cancelAnimationFrame = window[vendors[x] + "CancelAnimationFrame"] || window[vendors[x] + "CancelRequestAnimationFrame"]; ++x; } if (!window.requestAnimationFrame) { window.requestAnimationFrame = function(callback, element) { var currTime, id, timeToCall; currTime = new Date().getTime(); timeToCall = Math.max(0, 16 - (currTime - lastTime)); id = window.setTimeout(function() { callback(currTime + timeToCall); }, timeToCall); lastTime = currTime + timeToCall; return id; }; } if (!window.cancelAnimationFrame) { window.cancelAnimationFrame = function(id) { clearTimeout(id); }; } })(); Function.prototype.bind = Function.prototype.bind || function(d) { var a, b, c; a = Array.prototype.splice.call(arguments, 1); c = this; b = function() { var e; e = a.concat(Array.prototype.splice.call(arguments, 0)); if (!(this instanceof b)) { return c.apply(d, e); } c.apply(this, e); }; b.prototype = c.prototype; return b; }; window['MaxmertkitHelpers'] = MaxmertkitHelpers; window['MaxmertkitReactor'] = MaxmertkitReactor; window['MaxmertkitEvent'] = MaxmertkitEvent; }).call(this); (function() { "use strict"; var MaxmertkitHelpers, Modal, _activate, _backdropClick, _beforeactivate, _beforedeactivate, _deactivate, _id, _instances, _name, _pushStart, _pushStop, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; _name = "modal"; _instances = []; _id = 0; MaxmertkitHelpers = window['MaxmertkitHelpers']; Modal = (function(_super) { __extends(Modal, _super); Modal.prototype._name = _name; Modal.prototype._instances = _instances; Modal.prototype.enabled = true; Modal.prototype.opened = false; function Modal(el, options) { var _options; this.el = el; this.options = options; _options = { toggle: this.el.getAttribute('data-toggle') || _name, target: this.el.getAttribute('data-target') || null, dialog: this.el.getAttribute('data-dialog') || ".-dialog", event: this.el.getAttribute('data-event') || "click", eventClose: this.el.getAttribute('data-event-close') || "click", backdrop: this.el.getAttribute('data-backdrop') || false, push: this.el.getAttribute('data-push') || false, autoOpen: this.el.getAttribute('data-autoopen') || false, selfish: this.el.getAttribute('data-selfish') || true, beforeactive: function() {}, onactive: function() {}, failactive: function() {}, beforedeactive: function() {}, ondeactive: function() {}, faildeactive: function() {} }; this.options = this._merge(_options, this.options); this.target = document.querySelector(this.options.target); this.reactor.registerEvent("initialize." + _name); this.reactor.registerEvent("open." + _name); this.reactor.registerEvent("close." + _name); this.dialog = this.target.querySelector(this.options.dialog); this.closers = document.querySelectorAll("[data-dismiss='" + this.options.target + "']"); this.closerF = this.close.bind(this); this.clickerF = this.clicker.bind(this); this.backdropClickF = _backdropClick.bind(this); this._setOptions(this.options); Modal.__super__.constructor.call(this, this.el, this.options); this.reactor.dispatchEvent("initialize." + _name); if (this.options.autoOpen) { this.open(); } } Modal.prototype.destroy = function() { var closer, _i, _len, _ref; this._removeEventListener(this.el, this.options.event, this.clickerF); _ref = this.closers; for (_i = 0, _len = _ref.length; _i < _len; _i++) { closer = _ref[_i]; this._removeEventListener(closer, this.options.eventClose, this.closerF(this)); } this.el.data["kitModal"] = null; return Modal.__super__.destroy.apply(this, arguments); }; Modal.prototype._setOptions = function(options) { var closer, key, value, _i, _len, _ref; for (key in options) { value = options[key]; if (this.options[key] == null) { return console.error("Maxmertkit Modal. You're trying to set unpropriate option – " + key); } switch (key) { case 'event': this._removeEventListener(this.el, this.options.event, this.clickerF); this._addEventListener(this.el, value, this.clickerF); break; case 'eventClose': _ref = this.closers; for (_i = 0, _len = _ref.length; _i < _len; _i++) { closer = _ref[_i]; this._removeEventListener(closer, this.options.eventClose, this.closerF); this._addEventListener(closer, value, this.closerF); } break; case 'backdrop': if (this.options.backdrop) { this._removeEventListener(this.el, "click", this.backdropClickF); } if (value) { this._addEventListener(this.el, "click", this.backdropClickF); } break; case 'push': if (value) { this.push = document.querySelectorAll(value); } else { this.push = false; } } this.options[key] = value; if (typeof value === 'function') { this[key] = value; } } }; Modal.prototype.clicker = function() { if (!this.opened) { return this.open(); } else { return this.close(); } }; Modal.prototype.open = function() { return this.activate(); }; Modal.prototype.close = function() { return this.deactivate(); }; Modal.prototype.activate = function() { if (this.enabled && !this.opened) { return _beforeactivate.call(this); } }; Modal.prototype.deactivate = function() { if (this.enabled && this.opened) { return _beforedeactivate.call(this); } }; Modal.prototype.disable = function() { return this.enabled = false; }; Modal.prototype.enable = function() { return this.enabled = true; }; return Modal; })(MaxmertkitHelpers); _pushStart = function() { if (this.push) { this._addClass('-start--', this.push); return this._removeClass('-stop--', this.push); } }; _pushStop = function() { if (this.push) { this._addClass('-stop--', this.push); this._removeClass('-start--', this.push); if (this.push && (this.push.style != null) && (this.push.style['-webkit-overflow-scrolling'] != null)) { return this.push.style['-webkit-overflow-scrolling'] = 'auto'; } } }; _backdropClick = function(event) { if (this._hasClass('-modal', event.target) && this.opened) { return this.close(); } }; _beforeactivate = function() { var deferred; if (this.options.selfish) { this._selfish(); } if (this.beforeactive != null) { try { deferred = this.beforeactive.call(this.el); return deferred.done((function(_this) { return function() { return _activate.call(_this); }; })(this)).fail((function(_this) { return function() { var _ref; return (_ref = _this.faildeactive) != null ? _ref.call(_this.el) : void 0; }; })(this)); } catch (_error) { return _activate.call(this); } } else { return _activate.call(this); } }; _activate = function() { var _ref; if (this.push) { this._addClass('_perspective_', document.body); } this._addClass('_no-scroll_', document.body); this.target.style.display = 'table'; this._addClass('_visible_ -start--', this.target); this._addClass('_visible_ -start--', this.dialog); _pushStart.call(this); if ((_ref = this.onactive) != null) { _ref.call(this.el); } this.reactor.dispatchEvent("open." + _name); return this.opened = true; }; _beforedeactivate = function() { var deferred; if (this.beforedeactive != null) { try { deferred = this.beforedeactive.call(this.el); return deferred.done((function(_this) { return function() { return _deactivate.call(_this); }; })(this)).fail((function(_this) { return function() { var _ref; return (_ref = _this.faildeactive) != null ? _ref.call(_this.el) : void 0; }; })(this)); } catch (_error) { return _deactivate.call(this); } } else { return _deactivate.call(this); } }; _deactivate = function() { var _ref; this._addClass('-stop--', this.target); this._addClass('-stop--', this.dialog); _pushStop.call(this); setTimeout((function(_this) { return function() { _this._removeClass('_visible_ -start-- -stop--', _this.target); _this._removeClass('_visible_ -start-- -stop--', _this.dialog); _this._removeClass('_no-scroll_', document.body); if (_this.push) { _this._removeClass('_perspective_', document.body); } return _this.target.style.display = 'none'; }; })(this), 1000); this.reactor.dispatchEvent("close." + _name); if ((_ref = this.ondeactive) != null) { _ref.call(this.el); } return this.opened = false; }; window['Modal'] = Modal; window['mkitModal'] = function(options) { var result; result = null; if (this.data == null) { this.data = {}; } if (!this.data['kitModal']) { result = new Modal(this, options); this.data['kitModal'] = result; } else { if (typeof options === 'object') { this.data['kitModal']._setOptions(options); } else { if (typeof options === "string" && options.charAt(0) !== "_") { this.data['kitModal'][options]; } } result = this.data['kitModal']; } return result; }; if (typeof Element !== "undefined" && Element !== null) { Element.prototype.modal = window['mkitModal']; } if (typeof jQuery !== "undefined" && jQuery !== null) { $.fn[_name] = function(options) { return this.each(function() { return window['mkitModal'].call(this, options); }); }; } }).call(this); (function() { "use strict"; var MaxmertkitHelpers, Skyline, _activate, _beforeactivate, _beforedeactivate, _deactivate, _getWindowSize, _id, _instances, _lastScrollY, _name, _onResize, _onScroll, _requestResize, _requestTick, _resizing, _spy, _windowSize, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; _name = "skyline"; _instances = []; _id = 0; _lastScrollY = 0; _windowSize = 0; MaxmertkitHelpers = window['MaxmertkitHelpers']; Skyline = (function(_super) { __extends(Skyline, _super); Skyline.prototype._name = _name; Skyline.prototype._instances = _instances; Skyline.prototype.started = false; Skyline.prototype.active = false; function Skyline(el, options) { var _options; this.el = el; this.options = options; _options = { spy: this.el.getAttribute('data-spy') || _name, offset: this.el.getAttribute('data-offset') || 5, delay: this.el.getAttribute('data-delay') || 300, onMobile: this.el.getAttribute('data-on-mobile') || false, beforeactive: function() {}, onactive: function() {}, failactive: function() {}, beforedeactive: function() {}, ondeactive: function() {}, faildeactive: function() {} }; this.options = this._merge(_options, this.options); this.ticking = false; this.resizingTick = false; this.scroller = this._getScrollContainer(this.el); this.spy = _spy.bind(this); this.onScroll = _onScroll.bind(this); this.onResize = _onResize.bind(this); this.resizing = _resizing.bind(this); this._setOptions(this.options); Skyline.__super__.constructor.call(this, this.el, this.options); this._addEventListener(window, 'resize', this.onResize); this.reactor.registerEvent("initialize." + _name); this.reactor.registerEvent("start." + _name); this.reactor.registerEvent("stop." + _name); this.reactor.dispatchEvent("initialize." + _name); if (!(!this.options.onMobile && _getWindowSize().width < 992)) { this.start(this.deactivate); } } Skyline.prototype.destroy = function() { _deactivate.call(this); this.el.data["kitSkyline"] = null; return Skyline.__super__.destroy.apply(this, arguments); }; Skyline.prototype._setOptions = function(options) { var key, value; for (key in options) { value = options[key]; if (this.options[key] == null) { return console.error("Maxmertkit Skyline. You're trying to set unpropriate option – " + key); } this.options[key] = value; if (typeof value === 'function') { this[key] = value; } } }; Skyline.prototype.start = function(cb) { if (!this.started) { return _beforeactivate.call(this, cb); } }; Skyline.prototype.stop = function(cb) { if (this.started) { return _beforedeactivate.call(this, cb); } }; Skyline.prototype.activate = function() { var delay; if (typeof this.options.delay === 'function') { delay = this.options.delay(); } else { delay = this.options.delay; } return this.timer = setTimeout((function(_this) { return function() { _this._addClass('-start--'); _this._removeClass('-stop--'); return _this.active = true; }; })(this), delay); }; Skyline.prototype.deactivate = function() { if (this.timer != null) { clearTimeout(this.timer); this.timer = null; } this._removeClass('-start-- _active_'); this._addClass('-stop--'); return this.active = false; }; Skyline.prototype.refresh = function() { _windowSize = _getWindowSize(); return this.spyParams = { offset: this._getPosition(this.el), height: this._outerHeight() }; }; return Skyline; })(MaxmertkitHelpers); _onResize = function() { return _requestResize.call(this); }; _requestResize = function() { if (!this.resizingTick) { if (this.resizing != null) { requestAnimationFrame(this.resizing); return this.resizingTick = true; } } }; _resizing = function() { this.refresh(); if (!this.options.onMobile) { if (_getWindowSize().width < 992) { this.stop(this.activate); } else { this.start(); } } return this.resizingTick = false; }; _getWindowSize = function() { var clientHeight, clientWidth; clientWidth = 0; clientHeight = 0; if (typeof window.innerWidth === "number") { clientWidth = window.innerWidth; clientHeight = window.innerHeight; } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { clientWidth = document.documentElement.clientWidth; clientHeight = document.documentElement.clientHeight; } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) { clientWidth = document.body.clientWidth; clientHeight = document.body.clientHeight; } return { width: clientWidth, height: clientHeight }; }; _onScroll = function(event) { _lastScrollY = event.target.nodeName === '#document' ? (document.documentElement && document.documentElement.scrollTop) || event.target.body.scrollTop : event.target.scrollTop; return _requestTick.call(this); }; _requestTick = function() { if (!this.ticking) { requestAnimationFrame(this.spy); return this.ticking = true; } }; _spy = function() { var _ref; if ((this.spyParams.offset.top - _windowSize.height <= (_ref = _lastScrollY + this.options.offset) && _ref <= this.spyParams.offset.top + this.spyParams.height)) { if (!this.active) { this.activate(); } } else { if (this.active) { this.deactivate(); } } return this.ticking = false; }; _beforeactivate = function(cb) { var deferred; if (this.beforeactive != null) { try { deferred = this.beforeactive.call(this.el); return deferred.done((function(_this) { return function() { return _activate.call(_this, cb); }; })(this)).fail((function(_this) { return function() { var _ref; return (_ref = _this.failactive) != null ? _ref.call(_this.el) : void 0; }; })(this)); } catch (_error) { return _activate.call(this, cb); } } else { return _activate.call(this, cb); } }; _activate = function(cb) { var _ref; this.refresh(); this._addEventListener(this.scroller, 'scroll', this.onScroll); if ((_ref = this.onactive) != null) { _ref.call(this.el); } this.reactor.dispatchEvent("start." + _name); this.started = true; if (cb != null) { cb.call(this); } return setTimeout((function(_this) { return function() { return _this.refresh(); }; })(this), 100); }; _beforedeactivate = function(cb) { var deferred; if (this.beforedeactive != null) { try { deferred = this.beforedeactive.call(this.el); return deferred.done((function(_this) { return function() { return _deactivate.call(_this, cb); }; })(this)).fail((function(_this) { return function() { var _ref; return (_ref = _this.faildeactive) != null ? _ref.call(_this.el) : void 0; }; })(this)); } catch (_error) { return _deactivate.call(this, cb); } } else { return _deactivate.call(this, cb); } }; _deactivate = function(cb) { var _ref; this._removeEventListener(this.scroller, 'scroll', this.onScroll); this.reactor.dispatchEvent("stop." + _name); if ((_ref = this.ondeactive) != null) { _ref.call(this.el); } this.started = false; if (cb != null) { return cb.call(this); } }; window['Skyline'] = Skyline; window['mkitSkyline'] = function(options) { var result; result = null; if (this.data == null) { this.data = {}; } if (!this.data['kitSkyline']) { result = new Skyline(this, options); this.data['kitSkyline'] = result; } else { if (typeof options === 'object') { this.data['kitSkyline']._setOptions(options); } else { if (typeof options === "string" && options.charAt(0) !== "_") { this.data['kitSkyline'][options]; } } result = this.data['kitSkyline']; } return result; }; if (typeof Element !== "undefined" && Element !== null) { Element.prototype.skyline = window['mkitSkyline']; } if (typeof jQuery !== "undefined" && jQuery !== null) { $.fn[_name] = function(options) { return this.each(function() { return window['mkitSkyline'].call(this, options); }); }; } }).call(this); (function() { "use strict"; var Affix, MaxmertkitHelpers, _activate, _beforeactivate, _beforedeactivate, _deactivate, _getWindowSize, _id, _instances, _lastScrollY, _name, _onResize, _onScroll, _requestResize, _requestTick, _resizing, _resizingTick, _setPosition, _setPositionAbsolute, _setPositionFixed, _setPositionRelative, _ticking, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; _name = "affix"; _instances = []; _id = 0; _lastScrollY = 0; _ticking = false; _resizingTick = false; MaxmertkitHelpers = window['MaxmertkitHelpers']; Affix = (function(_super) { __extends(Affix, _super); Affix.prototype._name = _name; Affix.prototype._instances = _instances; Affix.prototype.started = false; function Affix(el, options) { var _options; this.el = el; this.options = options; _options = { spy: this.el.getAttribute('data-spy') || _name, offset: this.el.getAttribute('data-offset') || 5, onMobile: this.el.getAttribute('data-on-mobile') || false, beforeactive: function() {}, onactive: function() {}, failactive: function() {}, beforedeactive: function() {}, ondeactive: function() {}, faildeactive: function() {} }; this.options = this._merge(_options, this.options); this._setOptions(this.options); Affix.__super__.constructor.call(this, this.el, this.options); this.scroller = this._getScrollContainer(); this.container = this._getContainer(); this.onScroll = _onScroll.bind(this); this.setPosition = _setPosition.bind(this); this.onResize = _onResize.bind(this); this.resizing = _resizing.bind(this); this._addEventListener(window, 'resize', this.onResize); this.reactor.registerEvent("initialize." + _name); this.reactor.registerEvent("start." + _name); this.reactor.registerEvent("stop." + _name); this.reactor.dispatchEvent("initialize." + _name); if (!(!this.options.onMobile && _getWindowSize().width < 992)) { this.start(); } } Affix.prototype.destroy = function() { _deactivate.call(this); this.el.data["kitAffix"] = null; return Affix.__super__.destroy.apply(this, arguments); }; Affix.prototype.start = function() { if (!this.started) { return _beforeactivate.call(this); } }; Affix.prototype.stop = function() { if (this.started) { return _beforedeactivate.call(this); } }; Affix.prototype._setOptions = function(options) { var key, value; for (key in options) { value = options[key]; if (this.options[key] == null) { return console.error("Maxmertkit Affix. You're trying to set unpropriate option – " + key); } this.options[key] = value; if (typeof value === 'function') { this[key] = value; } } }; Affix.prototype.refresh = function() { this.HEIGHT = this._outerHeight(); return this.CONTAINER_HEIGHT = this._outerHeight(this.container); }; return Affix; })(MaxmertkitHelpers); _onResize = function() { return _requestResize.call(this); }; _requestResize = function() { if (!_resizingTick) { if (this.resizing != null) { requestAnimationFrame(this.resizing); return _resizingTick = true; } } }; _resizing = function() { if (!this.options.onMobile) { if (_getWindowSize().width < 992) { this.stop(); _setPositionRelative.call(this); } else { this.refresh(); this.start(); } } return _resizingTick = false; }; _getWindowSize = function() { var clientHeight, clientWidth; clientWidth = 0; clientHeight = 0; if (typeof window.innerWidth === "number") { clientWidth = window.innerWidth; clientHeight = window.innerHeight; } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { clientWidth = document.documentElement.clientWidth; clientHeight = document.documentElement.clientHeight; } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) { clientWidth = document.body.clientWidth; clientHeight = document.body.clientHeight; } return { width: clientWidth, height: clientHeight }; }; _onScroll = function(event) { _lastScrollY = event.target.nodeName === '#document' ? (document.documentElement && document.documentElement.scrollTop) || event.target.body.scrollTop : event.target.scrollTop; return _requestTick.call(this); }; _requestTick = function() { if (!_ticking) { requestAnimationFrame(this.setPosition); return _ticking = true; } }; _beforeactivate = function() { var deferred; if (this.beforeactive != null) { try { deferred = this.beforeactive.call(this.el); return deferred.done((function(_this) { return function() { return _activate.call(_this); }; })(this)).fail((function(_this) { return function() { var _ref; return (_ref = _this.failactive) != null ? _ref.call(_this.el) : void 0; }; })(this)); } catch (_error) { return _activate.call(this); } } else { return _activate.call(this); } }; _activate = function() { var _ref; this.refresh(); this._addEventListener(this.scroller, 'scroll', this.onScroll); this._addClass('_active_'); if ((_ref = this.onactive) != null) { _ref.call(this.el); } this.reactor.dispatchEvent("start." + _name); this.started = true; return setTimeout((function(_this) { return function() { return _this.refresh(); }; })(this), 100); }; _beforedeactivate = function() { var deferred; if (this.beforedeactive != null) { try { deferred = this.beforedeactive.call(this.el); return deferred.done((function(_this) { return function() { return _deactivate.call(_this); }; })(this)).fail((function(_this) { return function() { var _ref; return (_ref = _this.faildeactive) != null ? _ref.call(_this.el) : void 0; }; })(this)); } catch (_error) { return _deactivate.call(this); } } else { return _deactivate.call(this); } }; _deactivate = function() { var _ref; this._removeEventListener(this.scroller, 'scroll', this.onScroll); this._removeClass('_active_'); this.reactor.dispatchEvent("stop." + _name); if ((_ref = this.ondeactive) != null) { _ref.call(this.el); } return this.started = false; }; _setPositionFixed = function() { var style, top; this.el.style.width = this.el.offsetWidth; this.el.style.position = 'fixed'; top = this.options.offset; try { style = this.el.currentStyle || getComputedStyle(this.el); } catch (_error) {} if (style != null) { if ((style.marginTop != null) && style.marginTop !== '') { top += parseInt(style.marginTop); } } this.el.style.top = "" + this.options.offset + "px"; return this.el.style.bottom = 'auto'; }; _setPositionRelative = function() { this.el.style.position = 'relative'; return this.el.style.top = 'inherit'; }; _setPositionAbsolute = function() { this.el.style.position = 'absolute'; this.el.style.top = 'auto'; this.el.style.bottom = "" + this.options.offset + "px"; return this.el.style.width = this.el.offsetWidth; }; _setPosition = function() { var containerTop; containerTop = this.container.offsetTop; if (containerTop - this.options.offset <= _lastScrollY) { if (containerTop + this.CONTAINER_HEIGHT - this.options.offset - this.HEIGHT >= _lastScrollY) { if (this.el.style.position !== 'fixed') { _setPositionFixed.call(this); } } else { if (this.el.style.position !== 'absolute') { if (containerTop + this.CONTAINER_HEIGHT - this.options.offset - this.HEIGHT < _lastScrollY + this.HEIGHT) { _setPositionAbsolute.call(this); } } } } else { if (this.el.style.position !== 'relative') { _setPositionRelative.call(this); } } return _ticking = false; }; window['Affix'] = Affix; window['mkitAffix'] = function(options) { var result; result = null; if (this.data == null) { this.data = {}; } if (!this.data['kitAffix']) { result = new Affix(this, options); this.data['kitAffix'] = result; } else { if (typeof options === 'object') { this.data['kitAffix']._setOptions(options); } else { if (typeof options === "string" && options.charAt(0) !== "_") { this.data['kitAffix'][options]; } } result = this.data['kitAffix']; } return result; }; if (typeof Element !== "undefined" && Element !== null) { Element.prototype.affix = window['mkitAffix']; } if (typeof jQuery !== "undefined" && jQuery !== null) { $.fn[_name] = function(options) { return this.each(function() { return window['mkitAffix'].call(this, options); }); }; } }).call(this); (function() { "use strict"; var Button, MaxmertkitHelpers, _activate, _beforeactivate, _beforedeactivate, _clicker, _deactivate, _id, _instances, _name, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; _name = "button"; _instances = []; _id = 0; MaxmertkitHelpers = window['MaxmertkitHelpers']; Button = (function(_super) { __extends(Button, _super); Button.prototype._name = _name; Button.prototype._instances = _instances; Button.prototype.active = false; Button.prototype.enabled = true; function Button(el, options) { var _options; this.el = el; this.options = options; _options = { toggle: this.el.getAttribute('data-toggle') || _name, type: this.el.getAttribute('data-type') || _name, group: this.el.getAttribute('data-group') || false, event: this.el.getAttribute('data-event') || "click", selfish: this.el.getAttribute('data-selfish') || false, beforeactive: function() {}, onactive: function() {}, failactive: function() {}, beforedeactive: function() {}, ondeactive: function() {}, faildeactive: function() {} }; this.options = this._merge(_options, this.options); this.clicker = _clicker.bind(this); this._setOptions(this.options); Button.__super__.constructor.call(this, this.el, this.options); this.reactor.registerEvent("initialize." + _name); this.reactor.registerEvent("active." + _name); this.reactor.registerEvent("deactive." + _name); this.reactor.dispatchEvent("initialize." + _name); } Button.prototype.destroy = function() { this._removeEventListener(this.el, this.options.event, this.clicker); this.el.data["kitButton"] = null; return Button.__super__.destroy.apply(this, arguments); }; Button.prototype._setOptions = function(options) { var key, value; for (key in options) { value = options[key]; if (this.options[key] == null) { return console.error("Maxmertkit Button. You're trying to set unpropriate option – " + key); } switch (key) { case 'event': this._removeEventListener(this.el, this.options.event, this.clicker); this._addEventListener(this.el, value, this.clicker); } this.options[key] = value; if (typeof value === 'function') { this[key] = value; } } }; Button.prototype.activate = function() { if (this.enabled && !this.active) { return _beforeactivate.call(this); } }; Button.prototype.deactivate = function() { if (this.enabled && this.active) { return _beforedeactivate.call(this); } }; Button.prototype.disable = function() { return this.enabled = false; }; Button.prototype.enable = function() { return this.enabled = true; }; return Button; })(MaxmertkitHelpers); _clicker = function() { if (!this.active) { return this.activate(); } else { return this.deactivate(); } }; _beforeactivate = function() { var deferred; if (this.options.selfish) { this._selfish(); } if (this.beforeactive != null) { try { deferred = this.beforeactive.call(this.el); return deferred.done((function(_this) { return function() { return _activate.call(_this); }; })(this)).fail((function(_this) { return function() { var _ref; return (_ref = _this.faildeactive) != null ? _ref.call(_this.el) : void 0; }; })(this)); } catch (_error) { return _activate.call(this); } } else { return _activate.call(this); } }; _activate = function() { var button, _i, _len, _ref, _ref1; if (this.options.type === 'radio') { _ref = this._instances; for (_i = 0, _len = _ref.length; _i < _len; _i++) { button = _ref[_i]; if (this._id !== button._id && button.options.type === 'radio' && button.options.group === this.options.group) { button.deactivate(); } } } this._addClass('_active_'); if ((_ref1 = this.onactive) != null) { _ref1.call(this.el); } this.reactor.dispatchEvent("active." + _name); return this.active = true; }; _beforedeactivate = function() { var deferred; if (this.beforedeactive != null) { try { deferred = this.beforedeactive.call(this.el); return deferred.done((function(_this) { return function() { return _deactivate.call(_this); }; })(this)).fail((function(_this) { return function() { var _ref; return (_ref = _this.faildeactive) != null ? _ref.call(_this.el) : void 0; }; })(this)); } catch (_error) { return _deactivate.call(this); } } else { return _deactivate.call(this); } }; _deactivate = function() { var _ref; this._removeClass('_active_'); this.reactor.dispatchEvent("deactive." + _name); if ((_ref = this.ondeactive) != null) { _ref.call(this.el); } return this.active = false; }; window['Button'] = Button; window['mkitButton'] = function(options) { var result; result = null; if (this.data == null) { this.data = {}; } if (!this.data['kitButton']) { result = new Button(this, options); this.data['kitButton'] = result; } else { if (typeof options === 'object') { this.data['kitButton']._setOptions(options); } else { if (typeof options === "string" && options.charAt(0) !== "_") { this.data['kitButton'][options]; } } result = this.data['kitButton']; } return result; }; if (typeof Element !== "undefined" && Element !== null) { Element.prototype.button = window['mkitButton']; } if (typeof jQuery !== "undefined" && jQuery !== null) { $.fn[_name] = function(options) { return this.each(function() { return window['mkitButton'].call(this, options); }); }; } }).call(this); (function() { "use strict"; var MaxmertkitHelpers, Scrollspy, _activate, _activateItem, _beforeactivate, _beforedeactivate, _deactivate, _deactivateAllItems, _deactivateItem, _getWindowSize, _id, _instances, _lastScrollY, _name, _onResize, _onScroll, _requestResize, _requestTick, _resizing, _resizingTick, _spy, _ticking, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; _name = "scrollspy"; _instances = []; _id = 0; _lastScrollY = 0; _ticking = false; _resizingTick = false; MaxmertkitHelpers = window['MaxmertkitHelpers']; Scrollspy = (function(_super) { __extends(Scrollspy, _super); Scrollspy.prototype._name = _name; Scrollspy.prototype._instances = _instances; Scrollspy.prototype.started = false; Scrollspy.prototype.active = -1; function Scrollspy(el, options) { var _options; this.el = el; this.options = options; _options = { spy: this.el.getAttribute('data-spy') || _name, target: this.el.getAttribute('data-target') || 'body', offset: this.el.getAttribute('data-offset') || 5, elements: this.el.getAttribute('data-elements') || 'li a', elementsAttr: this.el.getAttribute('data-elements-attr') || 'href', onMobile: this.el.getAttribute('data-on-mobile') || false, beforeactive: function() {}, onactive: function() {}, failactive: function() {}, beforedeactive: function() {}, ondeactive: function() {}, faildeactive: function() {} }; this.options = this._merge(_options, this.options); this.target = document.querySelector(this.options.target); this.scroller = this._getScrollContainer(this.target); this.spy = _spy.bind(this); this.onScroll = _onScroll.bind(this); this.onResize = _onResize.bind(this); this.resizing = _resizing.bind(this); this._setOptions(this.options); Scrollspy.__super__.constructor.call(this, this.el, this.options); this._addEventListener(window, 'resize', this.onResize); this.reactor.registerEvent("initialize." + _name); this.reactor.registerEvent("start." + _name); this.reactor.registerEvent("stop." + _name); this.reactor.dispatchEvent("initialize." + _name); if (!(!this.options.onMobile && _getWindowSize().width < 992)) { this.start(); } } Scrollspy.prototype.destroy = function() { _deactivate.call(this); this.el.data["kitScrollspy"] = null; return Scrollspy.__super__.destroy.apply(this, arguments); }; Scrollspy.prototype._setOptions = function(options) { var key, value; for (key in options) { value = options[key]; if (this.options[key] == null) { return console.error("Maxmertkit Scrollspy. You're trying to set unpropriate option – " + key); } switch (key) { case 'elements': this.refresh(); break; case 'offset': if (typeof value === 'string') { this.offsetTop = value[value.length - 1] === '%' ? _getWindowSize().height * parseInt(value) / 100 : parseInt(value); } } this.options[key] = value; if (typeof value === 'function') { this[key] = value; } } }; Scrollspy.prototype.start = function() { if (!this.started) { return _beforeactivate.call(this); } }; Scrollspy.prototype.stop = function() { if (this.started) { return _beforedeactivate.call(this); } }; Scrollspy.prototype.refresh = function() { var el, elements, offsetTop, targetEl, _i, _len, _results; this.offsetTop = this.options.offset[this.options.offset.length - 1] === '%' ? _getWindowSize().height * parseInt(this.options.offset) / 100 : parseInt(this.options.offset); elements = this.el.querySelectorAll(this.options.elements); this.elements = []; _results = []; for (_i = 0, _len = elements.length; _i < _len; _i++) { el = elements[_i]; targetEl = this.target.querySelector(el.getAttribute(this.options.elementsAttr)); if (targetEl != null) { offsetTop = targetEl.offsetTop; if (this.target.offsetTop != null) { offsetTop += this.target.offsetTop; } _results.push(this.elements.push({ element: el, target: targetEl, height: targetEl.offsetHeight, top: offsetTop })); } else { _results.push(void 0); } } return _results; }; return Scrollspy; })(MaxmertkitHelpers); _onResize = function() { return _requestResize.call(this); }; _requestResize = function() { if (!_resizingTick) { if (this.resizing != null) { requestAnimationFrame(this.resizing); return _resizingTick = true; } } }; _resizing = function() { this.refresh(); if (!this.options.onMobile) { if (_getWindowSize().width < 992) { this.stop(); _deactivateAllItems.call(this); } else { this.start(); } } return _resizingTick = false; }; _getWindowSize = function() { var clientHeight, clientWidth; clientWidth = 0; clientHeight = 0; if (typeof window.innerWidth === "number") { clientWidth = window.innerWidth; clientHeight = window.innerHeight; } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { clientWidth = document.documentElement.clientWidth; clientHeight = document.documentElement.clientHeight; } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) { clientWidth = document.body.clientWidth; clientHeight = document.body.clientHeight; } return { width: clientWidth, height: clientHeight }; }; _onScroll = function(event) { _lastScrollY = event.target.nodeName === '#document' ? (document.documentElement && document.documentElement.scrollTop) || event.target.body.scrollTop : event.target.scrollTop; return _requestTick.call(this); }; _requestTick = function() { if (!_ticking) { requestAnimationFrame(this.spy); return _ticking = true; } }; _activateItem = function(itemNumber) { var el, parent, _i, _len, _ref, _results; _ref = this.elements; for (_i = 0, _len = _ref.length; _i < _len; _i++) { el = _ref[_i]; this._removeClass('_active_', el.element); parent = el.element.parentNode; this._removeClass('_active_', parent); while ((parent != null) && (parent = parent.parentNode)) { if (parent.nodeName === 'LI') { this._removeClass('_active_', parent); } } } this._addClass('_active_', this.elements[itemNumber].element); if (this.elements[itemNumber].element.getAttribute("data-invert")) { this._addClass('_invert_'); } else { this._removeClass('_invert_'); } parent = this.elements[itemNumber].element.parentNode; this._addClass('_active_', parent); _results = []; while ((parent != null) && (parent = parent.parentNode)) { if (parent.nodeName === 'LI') { _results.push(this._addClass('_active_', parent)); } else { _results.push(void 0); } } return _results; }; _deactivateItem = function(itemNumber) { this._removeClass('_active_', this.elements[itemNumber].element); return this._removeClass('_active_', this.elements[itemNumber].element.parentNode); }; _deactivateAllItems = function() { var index, item, _i, _len, _ref, _results; _ref = this.elements; _results = []; for (index = _i = 0, _len = _ref.length; _i < _len; index = ++_i) { item = _ref[index]; _results.push(_deactivateItem.call(this, index)); } return _results; }; _spy = function(event) { var i, _ref, _ref1; i = 0; while (i < this.elements.length) { if (((this.elements[i].top <= (_ref = _lastScrollY + this.offsetTop) && _ref <= this.elements[i].top + this.elements[i].height)) || (i < this.elements.length - 1 ? (this.elements[i].top <= (_ref1 = _lastScrollY + this.offsetTop) && _ref1 <= this.elements[i + 1].top) : void 0)) { if (!this._hasClass('_active_', this.elements[i].element)) { _activateItem.call(this, i); } } else { if (this._hasClass('_active_', this.elements[i].element) && _lastScrollY + this.offsetTop < this.elements[i].top + this.elements[i].height) { _deactivateItem.call(this, i); } } i++; } return _ticking = false; }; _beforeactivate = function() { var deferred; if (this.beforeactive != null) { try { deferred = this.beforeactive.call(this.el); return deferred.done((function(_this) { return function() { return _activate.call(_this); }; })(this)).fail((function(_this) { return function() { var _ref; return (_ref = _this.failactive) != null ? _ref.call(_this.el) : void 0; }; })(this)); } catch (_error) { return _activate.call(this); } } else { return _activate.call(this); } }; _activate = function() { var _ref; this._addEventListener(this.scroller, 'scroll', this.onScroll); if ((_ref = this.onactive) != null) { _ref.call(this.el); } this.reactor.dispatchEvent("start." + _name); this.started = true; return setTimeout((function(_this) { return function() { return _this.refresh(); }; })(this), 100); }; _beforedeactivate = function() { var deferred; if (this.beforedeactive != null) { try { deferred = this.beforedeactive.call(this.el); return deferred.done((function(_this) { return function() { return _deactivate.call(_this); }; })(this)).fail((function(_this) { return function() { var _ref; return (_ref = _this.faildeactive) != null ? _ref.call(_this.el) : void 0; }; })(this)); } catch (_error) { return _deactivate.call(this); } } else { return _deactivate.call(this); } }; _deactivate = function() { var _ref; this._removeEventListener(this.scroller, 'scroll', this.onScroll); this.reactor.dispatchEvent("stop." + _name); if ((_ref = this.ondeactive) != null) { _ref.call(this.el); } return this.started = false; }; window['Scrollspy'] = Scrollspy; window['mkitScrollspy'] = function(options) { var result; result = null; if (this.data == null) { this.data = {}; } if (!this.data['kitScrollspy']) { result = new Scrollspy(this, options); this.data['kitScrollspy'] = result; } else { if (typeof options === 'object') { this.data['kitScrollspy']._setOptions(options); } else { if (typeof options === "string" && options.charAt(0) !== "_") { this.data['kitScrollspy'][options]; } } result = this.data['kitScrollspy']; } return result; }; if (typeof Element !== "undefined" && Element !== null) { Element.prototype.scrollspy = window['mkitScrollspy']; } if (typeof jQuery !== "undefined" && jQuery !== null) { $.fn[_name] = function(options) { return this.each(function() { return window['mkitScrollspy'].call(this, options); }); }; } }).call(this); (function() { "use strict"; var MaxmertkitHelpers, Tabs, _activate, _beforeactivate, _beforedeactivate, _clicker, _deactivate, _id, _initialActivate, _instances, _name, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; _name = "tabs"; _instances = []; _id = 0; MaxmertkitHelpers = window['MaxmertkitHelpers']; Tabs = (function(_super) { __extends(Tabs, _super); Tabs.prototype._name = _name; Tabs.prototype._instances = _instances; Tabs.prototype.enabled = true; Tabs.prototype.active = false; function Tabs(el, options) { var _options; this.el = el; this.options = options; _options = { toggle: this.el.getAttribute('data-toggle') || _name, target: this.el.getAttribute('data-target') || null, group: this.el.getAttribute('data-group') || null, event: this.el.getAttribute('data-event') || "click", initial: this.el.getAttribute('data-initial') || 0, beforeactive: function() {}, onactive: function() {}, failactive: function() {}, beforedeactive: function() {}, ondeactive: function() {}, faildeactive: function() {} }; this.options = this._merge(_options, this.options); this.clicker = _clicker.bind(this); this._setOptions(this.options); Tabs.__super__.constructor.call(this, this.el, this.options); this.reactor.registerEvent("initialize." + _name); this.reactor.registerEvent("active." + _name); this.reactor.registerEvent("deactive." + _name); this.reactor.dispatchEvent("initialize." + _name); _initialActivate.call(this, this.options.initial); } Tabs.prototype.destroy = function() { this._removeEventListener(this.el, this.options.event, this.clicker); this.el.data["kitTabs"] = null; return Tabs.__super__.destroy.apply(this, arguments); }; Tabs.prototype._setOptions = function(options) { var key, value; for (key in options) { value = options[key]; if (this.options[key] == null) { return console.error("Maxmertkit Tabs. You're trying to set unpropriate option – " + key); } switch (key) { case 'event': this._removeEventListener(this.el, this.options.event, this.clicker); this._addEventListener(this.el, value, this.clicker); break; case 'target': this.target = document.querySelector(value); } this.options[key] = value; if (typeof value === 'function') { this[key] = value; } } }; Tabs.prototype.activate = function() { if (this.enabled && !this.active) { return _beforeactivate.call(this); } }; Tabs.prototype.deactivate = function() { if (this.enabled) { return _beforedeactivate.call(this); } }; Tabs.prototype.disable = function() { return this.enabled = false; }; Tabs.prototype.enable = function() { return this.enabled = true; }; return Tabs; })(MaxmertkitHelpers); _initialActivate = function(number) { var index, tab, _i, _len, _ref, _results; _ref = this._instances; _results = []; for (index = _i = 0, _len = _ref.length; _i < _len; index = ++_i) { tab = _ref[index]; if (index === number) { _results.push(tab.activate()); } else { _results.push(tab.deactivate()); } } return _results; }; _clicker = function() { if (!this.active) { return this.activate(); } }; _beforeactivate = function() { var deferred; this._selfish(); if (this.beforeactive != null) { try { deferred = this.beforeactive.call(this.el); return deferred.done((function(_this) { return function() { return _activate.call(_this); }; })(this)).fail((function(_this) { return function() { var _ref; return (_ref = _this.faildeactive) != null ? _ref.call(_this.el) : void 0; }; })(this)); } catch (_error) { return _activate.call(this); } } else { return _activate.call(this); } }; _activate = function() { var tab, _i, _len, _ref, _ref1; _ref = this._instances; for (_i = 0, _len = _ref.length; _i < _len; _i++) { tab = _ref[_i]; if (this._id !== tab._id && tab.options.group === this.options.group) { tab.deactivate(); } } this._addClass('_active_'); this.target.style.display = ''; if ((_ref1 = this.onactive) != null) { _ref1.call(this.el); } this.reactor.dispatchEvent("active." + _name); return this.active = true; }; _beforedeactivate = function() { var deferred; if (this.beforedeactive != null) { try { deferred = this.beforedeactive.call(this.el); return deferred.done((function(_this) { return function() { return _deactivate.call(_this); }; })(this)).fail((function(_this) { return function() { var _ref; return (_ref = _this.faildeactive) != null ? _ref.call(_this.el) : void 0; }; })(this)); } catch (_error) { return _deactivate.call(this); } } else { return _deactivate.call(this); } }; _deactivate = function() { var _ref; this._removeClass('_active_'); this.target.style.display = 'none'; this.reactor.dispatchEvent("deactive." + _name); if ((_ref = this.ondeactive) != null) { _ref.call(this.el); } return this.active = false; }; window['Tabs'] = Tabs; window['mkitTabs'] = function(options) { var result; result = null; if (this.data == null) { this.data = {}; } if (!this.data['kitTabs']) { result = new Tabs(this, options); this.data['kitTabs'] = result; } else { if (typeof options === 'object') { this.data['kitTabs']._setOptions(options); } else { if (typeof options === "string" && options.charAt(0) !== "_") { this.data['kitTabs'][options]; } } result = this.data['kitTabs']; } return result; }; if (typeof Element !== "undefined" && Element !== null) { Element.prototype.tabs = window['mkitTabs']; } if (typeof jQuery !== "undefined" && jQuery !== null) { $.fn[_name] = function(options) { return this.each(function() { return window['mkitTabs'].call(this, options); }); }; } }).call(this); (function() { "use strict"; var MaxmertkitHelpers, Popup, _activate, _beforeactivate, _beforedeactivate, _clicker, _closeUnfocus, _deactivate, _id, _instances, _name, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; _name = "popup"; _instances = []; _id = 0; MaxmertkitHelpers = window['MaxmertkitHelpers']; Popup = (function(_super) { __extends(Popup, _super); Popup.prototype._name = _name; Popup.prototype._instances = _instances; Popup.prototype.opened = false; Popup.prototype.enabled = true; function Popup(el, options) { var _options; this.el = el; this.options = options; _options = { toggle: this.el.getAttribute('data-toggle') || _name, target: this.el.getAttribute('data-target') || null, dialog: this.el.getAttribute('data-dialog') || ".-content", event: this.el.getAttribute('data-event') || "click", eventClose: this.el.getAttribute('data-event-close') || "click", autoOpen: this.el.getAttribute('data-autoopen') || false, position: { vertical: this.el.getAttribute('data-position-vertical') || 'top', horizontal: this.el.getAttribute('data-position-horizontal') || 'center' }, offset: { horizontal: this.el.getAttribute('data-offset-horizontal') || 0, vertical: this.el.getAttribute('data-offset-vertical') || 0 }, closeOnUnfocus: this.el.getAttribute('data-close-unfocus') || false, closeOnResize: this.el.getAttribute('data-close-resize') || true, selfish: this.el.getAttribute('data-selfish') || true, beforeactive: function() {}, onactive: function() {}, failactive: function() {}, beforedeactive: function() {}, ondeactive: function() {}, faildeactive: function() {} }; this.options = this._merge(_options, this.options); this.target = document.querySelector(this.options.target); this.closers = document.querySelectorAll("[data-dismiss='" + this.options.target + "']"); this.dialog = this.target.querySelector(this.options.dialog); this.closeUnfocus = _closeUnfocus.bind(this); this.clicker = _clicker.bind(this); this.closer = this.close.bind(this); this._setOptions(this.options); Popup.__super__.constructor.call(this, this.el, this.options); this.reactor.registerEvent("initialize." + _name); this.reactor.registerEvent("open." + _name); this.reactor.registerEvent("close." + _name); this.reactor.dispatchEvent("initialize." + _name); if (this.options.autoOpen) { this.open(); } } Popup.prototype.destroy = function() { var closer, _i, _len, _ref; this._removeEventListener(this.el, this.options.event, this.clicker); this._removeEventListener(document, this.options.event, this.closeUnfocus); this._removeEventListener(window, "resize", this.closer); _ref = this.closers; for (_i = 0, _len = _ref.length; _i < _len; _i++) { closer = _ref[_i]; this._removeEventListener(closer, this.options.eventClose, this.closer); } this.el.data["kitPopup"] = null; return Popup.__super__.destroy.apply(this, arguments); }; Popup.prototype._setOptions = function(options) { var closer, key, value, _i, _len, _ref; for (key in options) { value = options[key]; if (this.options[key] == null) { return console.error("Maxmertkit Modal. You're trying to set unpropriate option – " + key); } switch (key) { case 'event': this._removeEventListener(this.el, this.options.event, this.clicker); this._addEventListener(this.el, value, this.clicker); break; case 'eventClose': _ref = this.closers; for (_i = 0, _len = _ref.length; _i < _len; _i++) { closer = _ref[_i]; this._removeEventListener(closer, this.options.eventClose, this.closer); this._addEventListener(closer, value, this.closer); } break; case 'position': this._removeClass("_top_ _bottom_ _left_ _right_ _center_ _middle_", this.target); this._addClass("_" + this.options.position.vertical + "_ _" + this.options.position.horizontal + "_", this.target); break; case 'closeOnUnfocus': this._removeEventListener(document, this.options.event, this.closeUnfocus); if (value) { this._addEventListener(document, this.options.event, this.closeUnfocus); } break; case 'closeOnResize': this._removeEventListener(window, "resize", this.closer); if (value) { this._addEventListener(window, "resize", this.closer); } } this.options[key] = value; if (typeof value === 'function') { this[key] = value; } } }; Popup.prototype.open = function() { return this.activate(); }; Popup.prototype.close = function() { return this.deactivate(); }; Popup.prototype.activate = function() { if (this.enabled && !this.opened) { return _beforeactivate.call(this); } }; Popup.prototype.deactivate = function() { if (this.enabled && this.opened) { return _beforedeactivate.call(this); } }; Popup.prototype.disable = function() { return this.enabled = false; }; Popup.prototype.enable = function() { return this.enabled = true; }; Popup.prototype.setPosition = function() { var btnOffset, btnSize, newLeft, newTop, pos, scrollParentTarget, targetSize; pos = this.el.getBoundingClientRect(); scrollParentTarget = this._getContainer(this.target); btnOffset = this._getPosition(); if ((scrollParentTarget != null) && (((scrollParentTarget.activeElement != null) && scrollParentTarget.activeElement.nodeName !== 'BODY') || ((scrollParentTarget.nodeName != null) && (scrollParentTarget.nodeName !== 'BODY' && scrollParentTarget.nodeName !== '#document')))) { btnOffset.top = btnOffset.top - scrollParentTarget.offsetTop; btnOffset.left = btnOffset.left - scrollParentTarget.offsetLeft; } btnSize = { width: this._outerWidth(), height: this._outerHeight() }; this.target.style.visibility = 'hidden'; this.target.style.display = 'block'; targetSize = { width: this._outerWidth(this.target), height: this._outerHeight(this.target) }; this.target.style.display = 'none'; this.target.style.visibility = 'visible'; switch (this.options.position.vertical) { case 'top': newTop = btnOffset.top - targetSize.height - this.options.offset.vertical; break; case 'bottom': newTop = btnOffset.top + btnSize.height + this.options.offset.vertical; break; case 'middle' || 'center': newTop = btnOffset.top + btnSize.height / 2 - targetSize.height / 2; } switch (this.options.position.horizontal) { case 'center' || 'middle': newLeft = btnOffset.left + btnSize.width / 2 - targetSize.width / 2; break; case 'left': newLeft = btnOffset.left - targetSize.width - this.options.offset.horizontal; break; case 'right': newLeft = btnOffset.left + btnSize.width + this.options.offset.horizontal; } this.target.style.left = "" + newLeft + "px"; this.target.style.top = "" + newTop + "px"; return true; }; return Popup; })(MaxmertkitHelpers); _clicker = function() { if (!this.opened) { return this.open(); } else { return this.close(); } }; _closeUnfocus = function(event) { var classes; classes = '.' + this.el.className.split(' ').join('.'); if ((this._closest(classes, event.target) == null) && event.target !== this.el) { return this.close(); } }; _beforeactivate = function() { var deferred; if (this.options.selfish) { this._selfish(); } if (this.beforeactive != null) { try { deferred = this.beforeactive.call(this.el); return deferred.done((function(_this) { return function() { return _activate.call(_this); }; })(this)).fail((function(_this) { return function() { var _ref; return (_ref = _this.faildeactive) != null ? _ref.call(_this.el) : void 0; }; })(this)); } catch (_error) { return _activate.call(this); } } else { return _activate.call(this); } }; _activate = function() { var _ref; this.setPosition(); this.target.style.display = ''; this._addClass('_active_', this.target); if ((_ref = this.onactive) != null) { _ref.call(this.el); } this.reactor.dispatchEvent("open." + _name); return this.opened = true; }; _beforedeactivate = function() { var deferred; if (this.beforedeactive != null) { try { deferred = this.beforedeactive.call(this.el); return deferred.done((function(_this) { return function() { return _deactivate.call(_this); }; })(this)).fail((function(_this) { return function() { var _ref; return (_ref = _this.faildeactive) != null ? _ref.call(_this.el) : void 0; }; })(this)); } catch (_error) { return _deactivate.call(this); } } else { return _deactivate.call(this); } }; _deactivate = function() { var _ref; this._removeClass('_active_', this.target); this.reactor.dispatchEvent("close." + _name); if ((_ref = this.ondeactive) != null) { _ref.call(this.el); } return this.opened = false; }; window['Popup'] = Popup; window['mkitPopup'] = function(options) { var result; result = null; if (this.data == null) { this.data = {}; } if (!this.data['kitPopup']) { result = new Popup(this, options); this.data['kitPopup'] = result; } else { if (typeof options === 'object') { this.data['kitPopup']._setOptions(options); } else { if (typeof options === "string" && options.charAt(0) !== "_") { this.data['kitPopup'][options]; } } result = this.data['kitPopup']; } return result; }; if (typeof Element !== "undefined" && Element !== null) { Element.prototype.popup = window['mkitPopup']; } if (typeof jQuery !== "undefined" && jQuery !== null) { $.fn[_name] = function(options) { return this.each(function() { return window['mkitPopup'].call(this, options); }); }; } }).call(this); (function() { "use strict"; var MaxmertkitHelpers, Wall, _activate, _beforeactivate, _beforedeactivate, _deactivate, _getTargetSize, _getWindowSize, _id, _instances, _lastScrollY, _name, _onResize, _onScroll, _requestResize, _resizing, _spy, _windowSize, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; _name = "wall"; _instances = []; _id = 0; _lastScrollY = 0; _windowSize = 0; MaxmertkitHelpers = window['MaxmertkitHelpers']; Wall = (function(_super) { __extends(Wall, _super); Wall.prototype._name = _name; Wall.prototype._instances = _instances; Wall.prototype.started = false; Wall.prototype.active = false; function Wall(el, options) { var _options; this.el = el; this.options = options; _options = { kind: this.el.getAttribute('data-kind') || _name, target: this.el.getAttribute('data-target') || '.-thumbnail', header: this.el.getAttribute('data-header') || '.-header', headerFade: this.el.getAttribute('data-fade') || true, speed: this.el.getAttribute('data-speed') || 0.7, zoom: this.el.getAttribute('data-zoom') || false, /* Extrimely slow */ height: this.el.getAttribute('data-height') || '100%', onMobile: this.el.getAttribute('data-on-mobile') || false, beforeactive: function() {}, onactive: function() {}, failactive: function() {}, beforedeactive: function() {}, ondeactive: function() {}, faildeactive: function() {} }; this.options = this._merge(_options, this.options); this.resizingTick = false; this.scroller = this._getScrollContainer(this.el); this.spy = _spy.bind(this); this.onScroll = _onScroll.bind(this); this.onResize = _onResize.bind(this); this.resizing = _resizing.bind(this); this._setOptions(this.options); Wall.__super__.constructor.call(this, this.el, this.options); this._addEventListener(window, 'resize', this.onResize); this.reactor.registerEvent("initialize." + _name); this.reactor.registerEvent("start." + _name); this.reactor.registerEvent("stop." + _name); this.reactor.dispatchEvent("initialize." + _name); if (!(!this.options.onMobile && _getWindowSize().width < 992)) { this.start(this.deactivate); } } Wall.prototype.destroy = function() { _deactivate.call(this); this.el.data["kitWall"] = null; return Wall.__super__.destroy.apply(this, arguments); }; Wall.prototype._setOptions = function(options) { var key, value; for (key in options) { value = options[key]; if (this.options[key] == null) { return console.error("Maxmertkit Wall. You're trying to set unpropriate option – " + key); } switch (key) { case 'target': this.target = this.el.querySelector(this.options.target); this.targetObject = this.target.querySelector('img'); break; case 'header': this.header = this.el.querySelector(this.options.header); } /* Extrimely slow */ this.options[key] = value; if (typeof value === 'function') { this[key] = value; } } }; Wall.prototype.start = function(cb) { if (!this.started) { return _beforeactivate.call(this, cb); } }; Wall.prototype.stop = function(cb) { if (this.started) { return _beforedeactivate.call(this, cb); } }; Wall.prototype.refresh = function() { var percent; _windowSize = _getWindowSize(); if (this.header == null) { if (this.options.height[this.options.height.length - 1] === '%') { percent = parseInt(this.options.height) / 100; this.el.style.height = "" + (_windowSize.height * percent) + "px"; } else { this.el.style.height = this.options.height; } } else { if (this.options.height[this.options.height.length - 1] === '%') { percent = parseInt(this.options.height) / 100; this.header.style.height = "" + (_windowSize.height * percent) + "px"; } else { this.header.style.height = this.options.height; } this.header.style.width = "" + _windowSize.width + "px"; } if (_windowSize.width / _windowSize.height > 16 / 9) { this.target.style.width = "100%"; this.target.style.height = "auto"; } else { this.target.style.width = "auto"; this.target.style.height = "100%"; } this.targetSize = _getTargetSize.call(this); if (this.targetSize.width - _windowSize.width > 0) { this._setCSSTransform(this.target, "translateX(-" + ((this.targetSize.width - _windowSize.width) / 2) + "px)"); } else if (this.target.style.transform !== '') { this._setCSSTransform(this.target, "translateX(0)"); } return this.spyParams = { offset: this._getPosition(this.el), height: this._outerHeight() }; }; return Wall; })(MaxmertkitHelpers); _getTargetSize = function() { return { width: this._outerWidth(this.target), height: this._outerHeight(this.target) }; }; _onResize = function() { return _requestResize.call(this); }; _requestResize = function() { if (!this.resizingTick) { if (this.resizing != null) { requestAnimationFrame(this.resizing); return this.resizingTick = true; } } }; _resizing = function() { this.refresh(); if (this.started) { this.spy(); } if (!this.options.onMobile) { if (_getWindowSize().width < 992) { this.stop(this.activate); } else { this.start(); } } return this.resizingTick = false; }; _getWindowSize = function() { var clientHeight, clientWidth; clientWidth = 0; clientHeight = 0; if (typeof window.innerWidth === "number") { clientWidth = window.innerWidth; clientHeight = window.innerHeight; } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { clientWidth = document.documentElement.clientWidth; clientHeight = document.documentElement.clientHeight; } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) { clientWidth = document.body.clientWidth; clientHeight = document.body.clientHeight; } return { width: clientWidth, height: clientHeight }; }; _onScroll = function(event) { _lastScrollY = event.target.nodeName === '#document' ? (document.documentElement && document.documentElement.scrollTop) || event.target.body.scrollTop : event.target.scrollTop; if (this.started) { return this.spy(); } }; _spy = function() { var current, max, percent, transform, _ref; if ((this.spyParams.offset.top <= (_ref = _lastScrollY + _windowSize.height) && _ref <= this.spyParams.offset.top + this.spyParams.height + _windowSize.height)) { max = this.spyParams.height; current = _lastScrollY - this.spyParams.offset.top; percent = (1 - current / max) / 2; transform = "translateY(" + (Math.round(current * this.options.speed)) + "px) translateZ(0)"; if (this.targetSize.width - _windowSize.width > 0) { transform += " translateX(-" + ((this.targetSize.width - _windowSize.width) / 2) + "px)"; } else if (this.target.style.transform !== '') { transform += " translateX(0)"; } if (this.options.zoom) { transform += " scale(" + (1 + percent) + ")"; } this._setCSSTransform(this.target, transform); if (this.header != null) { if (percent / 2 < 0.25) { if (!(this._hasClass('_top_') || this._hasClass('_bottom_'))) { this._setCSSTransform(this.header, "translateY(" + (Math.round(current / 2.5)) + "px) translateZ(0)"); } if (this._hasClass('_bottom_')) { this._setCSSTransform(this.header, "translateY(" + (Math.round(-current / 10)) + "px) translateZ(0)"); } if (this._hasClass('_top_')) { this._setCSSTransform(this.header, "translateY(" + (Math.round(current / 1.1)) + "px) translateZ(0)"); } if (this.options.headerFade) { return this._setCSSOpacity(this.header, percent * 2.5); } } } /* Extrimely slow */ } }; _beforeactivate = function(cb) { var deferred; if (this.beforeactive != null) { try { deferred = this.beforeactive.call(this.el); return deferred.done((function(_this) { return function() { return _activate.call(_this, cb); }; })(this)).fail((function(_this) { return function() { var _ref; return (_ref = _this.failactive) != null ? _ref.call(_this.el) : void 0; }; })(this)); } catch (_error) { return _activate.call(this, cb); } } else { return _activate.call(this, cb); } }; _activate = function(cb) { var _ref; this.refresh(); this._addEventListener(this.scroller, 'scroll', this.onScroll); if ((_ref = this.onactive) != null) { _ref.call(this.el); } this.reactor.dispatchEvent("start." + _name); this.started = true; if (cb != null) { cb.call(this); } return setTimeout((function(_this) { return function() { return _this.refresh(); }; })(this), 100); }; _beforedeactivate = function(cb) { var deferred; if (this.beforedeactive != null) { try { deferred = this.beforedeactive.call(this.el); return deferred.done((function(_this) { return function() { return _deactivate.call(_this, cb); }; })(this)).fail((function(_this) { return function() { var _ref; return (_ref = _this.faildeactive) != null ? _ref.call(_this.el) : void 0; }; })(this)); } catch (_error) { return _deactivate.call(this, cb); } } else { return _deactivate.call(this, cb); } }; _deactivate = function(cb) { var _ref; this._removeEventListener(this.scroller, 'scroll', this.onScroll); this._removeEventListener(window, 'resize', this.onResize); this.reactor.dispatchEvent("stop." + _name); if ((_ref = this.ondeactive) != null) { _ref.call(this.el); } this.started = false; if (cb != null) { return cb.call(this); } }; window['Wall'] = Wall; window['mkitWall'] = function(options) { var result; result = null; if (this.data == null) { this.data = {}; } if (!this.data['kitWall']) { result = new Wall(this, options); this.data['kitWall'] = result; } else { if (typeof options === 'object') { this.data['kitWall']._setOptions(options); } else { if (typeof options === "string" && options.charAt(0) !== "_") { this.data['kitWall'][options]; } } result = this.data['kitWall']; } return result; }; if (typeof Element !== "undefined" && Element !== null) { Element.prototype.wall = window['mkitWall']; } if (typeof jQuery !== "undefined" && jQuery !== null) { $.fn[_name] = function(options) { return this.each(function() { return window['mkitWall'].call(this, options); }); }; } }).call(this);
packages/arwes/src/Loading/sandbox.js
romelperez/ui
import React from 'react'; import Loading from './index'; export default () => ( <div> <Loading animate /> <Loading animate small /> <div style={{ position: 'relative', width: 200, height: 200 }}> <Loading animate full /> </div> </div> );
ajax/libs/js-data/1.2.1/js-data-debug.js
emmy41124/cdnjs
/** * @author Jason Dobry <jason.dobry@gmail.com> * @file dist/js-data-debug.js * @version 1.2.0 - Homepage <http://www.js-data.io/> * @copyright (c) 2014 Jason Dobry * @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE> * * @overview Data store. */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.JSData=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ // Copyright 2012 Google Inc. // // 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. // Modifications // Copyright 2014-2015 Jason Dobry // // Summary of modifications: // Fixed use of "delete" keyword for IE8 compatibility // Exposed diffObjectFromOldObject on the exported object // Added the "equals" argument to diffObjectFromOldObject to be used to check equality // Added a way to to define a default equality operator for diffObjectFromOldObject // Added a way in diffObjectFromOldObject to ignore changes to certain properties // Removed all code related to: // - ArrayObserver // - ArraySplice // - PathObserver // - CompoundObserver // - Path // - ObserverTransform (function(global) { 'use strict'; var equalityFn = function (a, b) { return a === b; }; var blacklist = []; // Detect and do basic sanity checking on Object/Array.observe. function detectObjectObserve() { if (typeof Object.observe !== 'function' || typeof Array.observe !== 'function') { return false; } var records = []; function callback(recs) { records = recs; } var test = {}; var arr = []; Object.observe(test, callback); Array.observe(arr, callback); test.id = 1; test.id = 2; delete test.id; arr.push(1, 2); arr.length = 0; Object.deliverChangeRecords(callback); if (records.length !== 5) return false; if (records[0].type != 'add' || records[1].type != 'update' || records[2].type != 'delete' || records[3].type != 'splice' || records[4].type != 'splice') { return false; } Object.unobserve(test, callback); Array.unobserve(arr, callback); return true; } var hasObserve = detectObjectObserve(); function detectEval() { // Don't test for eval if we're running in a Chrome App environment. // We check for APIs set that only exist in a Chrome App context. if (typeof chrome !== 'undefined' && chrome.app && chrome.app.runtime) { return false; } try { var f = new Function('', 'return true;'); return f(); } catch (ex) { return false; } } var hasEval = detectEval(); var createObject = ('__proto__' in {}) ? function(obj) { return obj; } : function(obj) { var proto = obj.__proto__; if (!proto) return obj; var newObject = Object.create(proto); Object.getOwnPropertyNames(obj).forEach(function(name) { Object.defineProperty(newObject, name, Object.getOwnPropertyDescriptor(obj, name)); }); return newObject; }; var MAX_DIRTY_CHECK_CYCLES = 1000; function dirtyCheck(observer) { var cycles = 0; while (cycles < MAX_DIRTY_CHECK_CYCLES && observer.check_()) { cycles++; } if (global.testingExposeCycleCount) global.dirtyCheckCycleCount = cycles; return cycles > 0; } function objectIsEmpty(object) { for (var prop in object) return false; return true; } function diffIsEmpty(diff) { return objectIsEmpty(diff.added) && objectIsEmpty(diff.removed) && objectIsEmpty(diff.changed); } function isBlacklisted(prop, bl) { if (!bl || !bl.length) { return false; } var matches; for (var i = 0; i < bl.length; i++) { if ((Object.prototype.toString.call(bl[i]) === '[object RegExp]' && bl[i].test(prop)) || bl[i] === prop) { return matches = prop; } } return !!matches; } function diffObjectFromOldObject(object, oldObject, equals, bl) { var added = {}; var removed = {}; var changed = {}; for (var prop in oldObject) { var newValue = object[prop]; if (isBlacklisted(prop, bl)) continue; if (newValue !== undefined && (equals ? equals(newValue, oldObject[prop]) : newValue === oldObject[prop])) continue; if (!(prop in object)) { removed[prop] = undefined; continue; } if (equals ? !equals(newValue, oldObject[prop]) : newValue !== oldObject[prop]) changed[prop] = newValue; } for (var prop in object) { if (prop in oldObject) continue; if (isBlacklisted(prop, bl)) continue; added[prop] = object[prop]; } if (Array.isArray(object) && object.length !== oldObject.length) changed.length = object.length; return { added: added, removed: removed, changed: changed }; } var eomTasks = []; function runEOMTasks() { if (!eomTasks.length) return false; for (var i = 0; i < eomTasks.length; i++) { eomTasks[i](); } eomTasks.length = 0; return true; } var runEOM = hasObserve ? (function(){ var eomObj = { pingPong: true }; var eomRunScheduled = false; Object.observe(eomObj, function() { runEOMTasks(); eomRunScheduled = false; }); return function(fn) { eomTasks.push(fn); if (!eomRunScheduled) { eomRunScheduled = true; eomObj.pingPong = !eomObj.pingPong; } }; })() : (function() { return function(fn) { eomTasks.push(fn); }; })(); var observedObjectCache = []; function newObservedObject() { var observer; var object; var discardRecords = false; var first = true; function callback(records) { if (observer && observer.state_ === OPENED && !discardRecords) observer.check_(records); } return { open: function(obs) { if (observer) throw Error('ObservedObject in use'); if (!first) Object.deliverChangeRecords(callback); observer = obs; first = false; }, observe: function(obj, arrayObserve) { object = obj; if (arrayObserve) Array.observe(object, callback); else Object.observe(object, callback); }, deliver: function(discard) { discardRecords = discard; Object.deliverChangeRecords(callback); discardRecords = false; }, close: function() { observer = undefined; Object.unobserve(object, callback); observedObjectCache.push(this); } }; } /* * The observedSet abstraction is a perf optimization which reduces the total * number of Object.observe observations of a set of objects. The idea is that * groups of Observers will have some object dependencies in common and this * observed set ensures that each object in the transitive closure of * dependencies is only observed once. The observedSet acts as a write barrier * such that whenever any change comes through, all Observers are checked for * changed values. * * Note that this optimization is explicitly moving work from setup-time to * change-time. * * TODO(rafaelw): Implement "garbage collection". In order to move work off * the critical path, when Observers are closed, their observed objects are * not Object.unobserve(d). As a result, it's possible that if the observedSet * is kept open, but some Observers have been closed, it could cause "leaks" * (prevent otherwise collectable objects from being collected). At some * point, we should implement incremental "gc" which keeps a list of * observedSets which may need clean-up and does small amounts of cleanup on a * timeout until all is clean. */ function getObservedObject(observer, object, arrayObserve) { var dir = observedObjectCache.pop() || newObservedObject(); dir.open(observer); dir.observe(object, arrayObserve); return dir; } var UNOPENED = 0; var OPENED = 1; var CLOSED = 2; var nextObserverId = 1; function Observer() { this.state_ = UNOPENED; this.callback_ = undefined; this.target_ = undefined; // TODO(rafaelw): Should be WeakRef this.directObserver_ = undefined; this.value_ = undefined; this.id_ = nextObserverId++; } Observer.prototype = { open: function(callback, target) { if (this.state_ != UNOPENED) throw Error('Observer has already been opened.'); addToAll(this); this.callback_ = callback; this.target_ = target; this.connect_(); this.state_ = OPENED; return this.value_; }, close: function() { if (this.state_ != OPENED) return; removeFromAll(this); this.disconnect_(); this.value_ = undefined; this.callback_ = undefined; this.target_ = undefined; this.state_ = CLOSED; }, deliver: function() { if (this.state_ != OPENED) return; dirtyCheck(this); }, report_: function(changes) { try { this.callback_.apply(this.target_, changes); } catch (ex) { Observer._errorThrownDuringCallback = true; console.error('Exception caught during observer callback: ' + (ex.stack || ex)); } }, discardChanges: function() { this.check_(undefined, true); return this.value_; } } var collectObservers = !hasObserve; var allObservers; Observer._allObserversCount = 0; if (collectObservers) { allObservers = []; } function addToAll(observer) { Observer._allObserversCount++; if (!collectObservers) return; allObservers.push(observer); } function removeFromAll(observer) { Observer._allObserversCount--; } var runningMicrotaskCheckpoint = false; var hasDebugForceFullDelivery = hasObserve && hasEval && (function() { try { eval('%RunMicrotasks()'); return true; } catch (ex) { return false; } })(); global.Platform = global.Platform || {}; global.Platform.performMicrotaskCheckpoint = function() { if (runningMicrotaskCheckpoint) return; if (hasDebugForceFullDelivery) { eval('%RunMicrotasks()'); return; } if (!collectObservers) return; runningMicrotaskCheckpoint = true; var cycles = 0; var anyChanged, toCheck; do { cycles++; toCheck = allObservers; allObservers = []; anyChanged = false; for (var i = 0; i < toCheck.length; i++) { var observer = toCheck[i]; if (observer.state_ != OPENED) continue; if (observer.check_()) anyChanged = true; allObservers.push(observer); } if (runEOMTasks()) anyChanged = true; } while (cycles < MAX_DIRTY_CHECK_CYCLES && anyChanged); if (global.testingExposeCycleCount) global.dirtyCheckCycleCount = cycles; runningMicrotaskCheckpoint = false; }; if (collectObservers) { global.Platform.clearObservers = function() { allObservers = []; }; } function ObjectObserver(object) { Observer.call(this); this.value_ = object; this.oldObject_ = undefined; } ObjectObserver.prototype = createObject({ __proto__: Observer.prototype, arrayObserve: false, connect_: function(callback, target) { if (hasObserve) { this.directObserver_ = getObservedObject(this, this.value_, this.arrayObserve); } else { this.oldObject_ = this.copyObject(this.value_); } }, copyObject: function(object) { var copy = Array.isArray(object) ? [] : {}; for (var prop in object) { copy[prop] = object[prop]; }; if (Array.isArray(object)) copy.length = object.length; return copy; }, check_: function(changeRecords, skipChanges) { var diff; var oldValues; if (hasObserve) { if (!changeRecords) return false; oldValues = {}; diff = diffObjectFromChangeRecords(this.value_, changeRecords, oldValues); } else { oldValues = this.oldObject_; diff = diffObjectFromOldObject(this.value_, this.oldObject_); } if (diffIsEmpty(diff)) return false; if (!hasObserve) this.oldObject_ = this.copyObject(this.value_); this.report_([ diff.added || {}, diff.removed || {}, diff.changed || {}, function(property) { return oldValues[property]; } ]); return true; }, disconnect_: function() { if (hasObserve) { this.directObserver_.close(); this.directObserver_ = undefined; } else { this.oldObject_ = undefined; } }, deliver: function() { if (this.state_ != OPENED) return; if (hasObserve) this.directObserver_.deliver(false); else dirtyCheck(this); }, discardChanges: function() { if (this.directObserver_) this.directObserver_.deliver(true); else this.oldObject_ = this.copyObject(this.value_); return this.value_; } }); var observerSentinel = {}; var expectedRecordTypes = { add: true, update: true, delete: true }; function diffObjectFromChangeRecords(object, changeRecords, oldValues) { var added = {}; var removed = {}; for (var i = 0; i < changeRecords.length; i++) { var record = changeRecords[i]; if (!expectedRecordTypes[record.type]) { console.error('Unknown changeRecord type: ' + record.type); console.error(record); continue; } if (!(record.name in oldValues)) oldValues[record.name] = record.oldValue; if (record.type == 'update') continue; if (record.type == 'add') { if (record.name in removed) delete removed[record.name]; else added[record.name] = true; continue; } // type = 'delete' if (record.name in added) { delete added[record.name]; delete oldValues[record.name]; } else { removed[record.name] = true; } } for (var prop in added) added[prop] = object[prop]; for (var prop in removed) removed[prop] = undefined; var changed = {}; for (var prop in oldValues) { if (prop in added || prop in removed) continue; var newValue = object[prop]; if (oldValues[prop] !== newValue) changed[prop] = newValue; } return { added: added, removed: removed, changed: changed }; } global.Observer = Observer; global.diffObjectFromOldObject = diffObjectFromOldObject; global.setEqualityFn = function (fn) { equalityFn = fn; }; global.setBlacklist = function (bl) { blacklist = bl; }; global.Observer.runEOM_ = runEOM; global.Observer.observerSentinel_ = observerSentinel; // for testing. global.Observer.hasObjectObserve = hasObserve; global.ObjectObserver = ObjectObserver; })(exports); },{}],2:[function(require,module,exports){ (function (process,global){ /*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE * @version 2.0.1 */ (function() { "use strict"; function $$utils$$objectOrFunction(x) { return typeof x === 'function' || (typeof x === 'object' && x !== null); } function $$utils$$isFunction(x) { return typeof x === 'function'; } function $$utils$$isMaybeThenable(x) { return typeof x === 'object' && x !== null; } var $$utils$$_isArray; if (!Array.isArray) { $$utils$$_isArray = function (x) { return Object.prototype.toString.call(x) === '[object Array]'; }; } else { $$utils$$_isArray = Array.isArray; } var $$utils$$isArray = $$utils$$_isArray; var $$utils$$now = Date.now || function() { return new Date().getTime(); }; function $$utils$$F() { } var $$utils$$o_create = (Object.create || function (o) { if (arguments.length > 1) { throw new Error('Second argument not supported'); } if (typeof o !== 'object') { throw new TypeError('Argument must be an object'); } $$utils$$F.prototype = o; return new $$utils$$F(); }); var $$asap$$len = 0; var $$asap$$default = function asap(callback, arg) { $$asap$$queue[$$asap$$len] = callback; $$asap$$queue[$$asap$$len + 1] = arg; $$asap$$len += 2; if ($$asap$$len === 2) { // If len is 1, that means that we need to schedule an async flush. // If additional callbacks are queued before the queue is flushed, they // will be processed by this flush that we are scheduling. $$asap$$scheduleFlush(); } }; var $$asap$$browserGlobal = (typeof window !== 'undefined') ? window : {}; var $$asap$$BrowserMutationObserver = $$asap$$browserGlobal.MutationObserver || $$asap$$browserGlobal.WebKitMutationObserver; // test for web worker but not in IE10 var $$asap$$isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined'; // node function $$asap$$useNextTick() { return function() { process.nextTick($$asap$$flush); }; } function $$asap$$useMutationObserver() { var iterations = 0; var observer = new $$asap$$BrowserMutationObserver($$asap$$flush); var node = document.createTextNode(''); observer.observe(node, { characterData: true }); return function() { node.data = (iterations = ++iterations % 2); }; } // web worker function $$asap$$useMessageChannel() { var channel = new MessageChannel(); channel.port1.onmessage = $$asap$$flush; return function () { channel.port2.postMessage(0); }; } function $$asap$$useSetTimeout() { return function() { setTimeout($$asap$$flush, 1); }; } var $$asap$$queue = new Array(1000); function $$asap$$flush() { for (var i = 0; i < $$asap$$len; i+=2) { var callback = $$asap$$queue[i]; var arg = $$asap$$queue[i+1]; callback(arg); $$asap$$queue[i] = undefined; $$asap$$queue[i+1] = undefined; } $$asap$$len = 0; } var $$asap$$scheduleFlush; // Decide what async method to use to triggering processing of queued callbacks: if (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') { $$asap$$scheduleFlush = $$asap$$useNextTick(); } else if ($$asap$$BrowserMutationObserver) { $$asap$$scheduleFlush = $$asap$$useMutationObserver(); } else if ($$asap$$isWorker) { $$asap$$scheduleFlush = $$asap$$useMessageChannel(); } else { $$asap$$scheduleFlush = $$asap$$useSetTimeout(); } function $$$internal$$noop() {} var $$$internal$$PENDING = void 0; var $$$internal$$FULFILLED = 1; var $$$internal$$REJECTED = 2; var $$$internal$$GET_THEN_ERROR = new $$$internal$$ErrorObject(); function $$$internal$$selfFullfillment() { return new TypeError("You cannot resolve a promise with itself"); } function $$$internal$$cannotReturnOwn() { return new TypeError('A promises callback cannot return that same promise.') } function $$$internal$$getThen(promise) { try { return promise.then; } catch(error) { $$$internal$$GET_THEN_ERROR.error = error; return $$$internal$$GET_THEN_ERROR; } } function $$$internal$$tryThen(then, value, fulfillmentHandler, rejectionHandler) { try { then.call(value, fulfillmentHandler, rejectionHandler); } catch(e) { return e; } } function $$$internal$$handleForeignThenable(promise, thenable, then) { $$asap$$default(function(promise) { var sealed = false; var error = $$$internal$$tryThen(then, thenable, function(value) { if (sealed) { return; } sealed = true; if (thenable !== value) { $$$internal$$resolve(promise, value); } else { $$$internal$$fulfill(promise, value); } }, function(reason) { if (sealed) { return; } sealed = true; $$$internal$$reject(promise, reason); }, 'Settle: ' + (promise._label || ' unknown promise')); if (!sealed && error) { sealed = true; $$$internal$$reject(promise, error); } }, promise); } function $$$internal$$handleOwnThenable(promise, thenable) { if (thenable._state === $$$internal$$FULFILLED) { $$$internal$$fulfill(promise, thenable._result); } else if (promise._state === $$$internal$$REJECTED) { $$$internal$$reject(promise, thenable._result); } else { $$$internal$$subscribe(thenable, undefined, function(value) { $$$internal$$resolve(promise, value); }, function(reason) { $$$internal$$reject(promise, reason); }); } } function $$$internal$$handleMaybeThenable(promise, maybeThenable) { if (maybeThenable.constructor === promise.constructor) { $$$internal$$handleOwnThenable(promise, maybeThenable); } else { var then = $$$internal$$getThen(maybeThenable); if (then === $$$internal$$GET_THEN_ERROR) { $$$internal$$reject(promise, $$$internal$$GET_THEN_ERROR.error); } else if (then === undefined) { $$$internal$$fulfill(promise, maybeThenable); } else if ($$utils$$isFunction(then)) { $$$internal$$handleForeignThenable(promise, maybeThenable, then); } else { $$$internal$$fulfill(promise, maybeThenable); } } } function $$$internal$$resolve(promise, value) { if (promise === value) { $$$internal$$reject(promise, $$$internal$$selfFullfillment()); } else if ($$utils$$objectOrFunction(value)) { $$$internal$$handleMaybeThenable(promise, value); } else { $$$internal$$fulfill(promise, value); } } function $$$internal$$publishRejection(promise) { if (promise._onerror) { promise._onerror(promise._result); } $$$internal$$publish(promise); } function $$$internal$$fulfill(promise, value) { if (promise._state !== $$$internal$$PENDING) { return; } promise._result = value; promise._state = $$$internal$$FULFILLED; if (promise._subscribers.length === 0) { } else { $$asap$$default($$$internal$$publish, promise); } } function $$$internal$$reject(promise, reason) { if (promise._state !== $$$internal$$PENDING) { return; } promise._state = $$$internal$$REJECTED; promise._result = reason; $$asap$$default($$$internal$$publishRejection, promise); } function $$$internal$$subscribe(parent, child, onFulfillment, onRejection) { var subscribers = parent._subscribers; var length = subscribers.length; parent._onerror = null; subscribers[length] = child; subscribers[length + $$$internal$$FULFILLED] = onFulfillment; subscribers[length + $$$internal$$REJECTED] = onRejection; if (length === 0 && parent._state) { $$asap$$default($$$internal$$publish, parent); } } function $$$internal$$publish(promise) { var subscribers = promise._subscribers; var settled = promise._state; if (subscribers.length === 0) { return; } var child, callback, detail = promise._result; for (var i = 0; i < subscribers.length; i += 3) { child = subscribers[i]; callback = subscribers[i + settled]; if (child) { $$$internal$$invokeCallback(settled, child, callback, detail); } else { callback(detail); } } promise._subscribers.length = 0; } function $$$internal$$ErrorObject() { this.error = null; } var $$$internal$$TRY_CATCH_ERROR = new $$$internal$$ErrorObject(); function $$$internal$$tryCatch(callback, detail) { try { return callback(detail); } catch(e) { $$$internal$$TRY_CATCH_ERROR.error = e; return $$$internal$$TRY_CATCH_ERROR; } } function $$$internal$$invokeCallback(settled, promise, callback, detail) { var hasCallback = $$utils$$isFunction(callback), value, error, succeeded, failed; if (hasCallback) { value = $$$internal$$tryCatch(callback, detail); if (value === $$$internal$$TRY_CATCH_ERROR) { failed = true; error = value.error; value = null; } else { succeeded = true; } if (promise === value) { $$$internal$$reject(promise, $$$internal$$cannotReturnOwn()); return; } } else { value = detail; succeeded = true; } if (promise._state !== $$$internal$$PENDING) { // noop } else if (hasCallback && succeeded) { $$$internal$$resolve(promise, value); } else if (failed) { $$$internal$$reject(promise, error); } else if (settled === $$$internal$$FULFILLED) { $$$internal$$fulfill(promise, value); } else if (settled === $$$internal$$REJECTED) { $$$internal$$reject(promise, value); } } function $$$internal$$initializePromise(promise, resolver) { try { resolver(function resolvePromise(value){ $$$internal$$resolve(promise, value); }, function rejectPromise(reason) { $$$internal$$reject(promise, reason); }); } catch(e) { $$$internal$$reject(promise, e); } } function $$$enumerator$$makeSettledResult(state, position, value) { if (state === $$$internal$$FULFILLED) { return { state: 'fulfilled', value: value }; } else { return { state: 'rejected', reason: value }; } } function $$$enumerator$$Enumerator(Constructor, input, abortOnReject, label) { this._instanceConstructor = Constructor; this.promise = new Constructor($$$internal$$noop, label); this._abortOnReject = abortOnReject; if (this._validateInput(input)) { this._input = input; this.length = input.length; this._remaining = input.length; this._init(); if (this.length === 0) { $$$internal$$fulfill(this.promise, this._result); } else { this.length = this.length || 0; this._enumerate(); if (this._remaining === 0) { $$$internal$$fulfill(this.promise, this._result); } } } else { $$$internal$$reject(this.promise, this._validationError()); } } $$$enumerator$$Enumerator.prototype._validateInput = function(input) { return $$utils$$isArray(input); }; $$$enumerator$$Enumerator.prototype._validationError = function() { return new Error('Array Methods must be provided an Array'); }; $$$enumerator$$Enumerator.prototype._init = function() { this._result = new Array(this.length); }; var $$$enumerator$$default = $$$enumerator$$Enumerator; $$$enumerator$$Enumerator.prototype._enumerate = function() { var length = this.length; var promise = this.promise; var input = this._input; for (var i = 0; promise._state === $$$internal$$PENDING && i < length; i++) { this._eachEntry(input[i], i); } }; $$$enumerator$$Enumerator.prototype._eachEntry = function(entry, i) { var c = this._instanceConstructor; if ($$utils$$isMaybeThenable(entry)) { if (entry.constructor === c && entry._state !== $$$internal$$PENDING) { entry._onerror = null; this._settledAt(entry._state, i, entry._result); } else { this._willSettleAt(c.resolve(entry), i); } } else { this._remaining--; this._result[i] = this._makeResult($$$internal$$FULFILLED, i, entry); } }; $$$enumerator$$Enumerator.prototype._settledAt = function(state, i, value) { var promise = this.promise; if (promise._state === $$$internal$$PENDING) { this._remaining--; if (this._abortOnReject && state === $$$internal$$REJECTED) { $$$internal$$reject(promise, value); } else { this._result[i] = this._makeResult(state, i, value); } } if (this._remaining === 0) { $$$internal$$fulfill(promise, this._result); } }; $$$enumerator$$Enumerator.prototype._makeResult = function(state, i, value) { return value; }; $$$enumerator$$Enumerator.prototype._willSettleAt = function(promise, i) { var enumerator = this; $$$internal$$subscribe(promise, undefined, function(value) { enumerator._settledAt($$$internal$$FULFILLED, i, value); }, function(reason) { enumerator._settledAt($$$internal$$REJECTED, i, reason); }); }; var $$promise$all$$default = function all(entries, label) { return new $$$enumerator$$default(this, entries, true /* abort on reject */, label).promise; }; var $$promise$race$$default = function race(entries, label) { /*jshint validthis:true */ var Constructor = this; var promise = new Constructor($$$internal$$noop, label); if (!$$utils$$isArray(entries)) { $$$internal$$reject(promise, new TypeError('You must pass an array to race.')); return promise; } var length = entries.length; function onFulfillment(value) { $$$internal$$resolve(promise, value); } function onRejection(reason) { $$$internal$$reject(promise, reason); } for (var i = 0; promise._state === $$$internal$$PENDING && i < length; i++) { $$$internal$$subscribe(Constructor.resolve(entries[i]), undefined, onFulfillment, onRejection); } return promise; }; var $$promise$resolve$$default = function resolve(object, label) { /*jshint validthis:true */ var Constructor = this; if (object && typeof object === 'object' && object.constructor === Constructor) { return object; } var promise = new Constructor($$$internal$$noop, label); $$$internal$$resolve(promise, object); return promise; }; var $$promise$reject$$default = function reject(reason, label) { /*jshint validthis:true */ var Constructor = this; var promise = new Constructor($$$internal$$noop, label); $$$internal$$reject(promise, reason); return promise; }; var $$es6$promise$promise$$counter = 0; function $$es6$promise$promise$$needsResolver() { throw new TypeError('You must pass a resolver function as the first argument to the promise constructor'); } function $$es6$promise$promise$$needsNew() { throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function."); } var $$es6$promise$promise$$default = $$es6$promise$promise$$Promise; /** Promise objects represent the eventual result of an asynchronous operation. The primary way of interacting with a promise is through its `then` method, which registers callbacks to receive either a promise’s eventual value or the reason why the promise cannot be fulfilled. Terminology ----------- - `promise` is an object or function with a `then` method whose behavior conforms to this specification. - `thenable` is an object or function that defines a `then` method. - `value` is any legal JavaScript value (including undefined, a thenable, or a promise). - `exception` is a value that is thrown using the throw statement. - `reason` is a value that indicates why a promise was rejected. - `settled` the final resting state of a promise, fulfilled or rejected. A promise can be in one of three states: pending, fulfilled, or rejected. Promises that are fulfilled have a fulfillment value and are in the fulfilled state. Promises that are rejected have a rejection reason and are in the rejected state. A fulfillment value is never a thenable. Promises can also be said to *resolve* a value. If this value is also a promise, then the original promise's settled state will match the value's settled state. So a promise that *resolves* a promise that rejects will itself reject, and a promise that *resolves* a promise that fulfills will itself fulfill. Basic Usage: ------------ ```js var promise = new Promise(function(resolve, reject) { // on success resolve(value); // on failure reject(reason); }); promise.then(function(value) { // on fulfillment }, function(reason) { // on rejection }); ``` Advanced Usage: --------------- Promises shine when abstracting away asynchronous interactions such as `XMLHttpRequest`s. ```js function getJSON(url) { return new Promise(function(resolve, reject){ var xhr = new XMLHttpRequest(); xhr.open('GET', url); xhr.onreadystatechange = handler; xhr.responseType = 'json'; xhr.setRequestHeader('Accept', 'application/json'); xhr.send(); function handler() { if (this.readyState === this.DONE) { if (this.status === 200) { resolve(this.response); } else { reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']')); } } }; }); } getJSON('/posts.json').then(function(json) { // on fulfillment }, function(reason) { // on rejection }); ``` Unlike callbacks, promises are great composable primitives. ```js Promise.all([ getJSON('/posts'), getJSON('/comments') ]).then(function(values){ values[0] // => postsJSON values[1] // => commentsJSON return values; }); ``` @class Promise @param {function} resolver Useful for tooling. @constructor */ function $$es6$promise$promise$$Promise(resolver) { this._id = $$es6$promise$promise$$counter++; this._state = undefined; this._result = undefined; this._subscribers = []; if ($$$internal$$noop !== resolver) { if (!$$utils$$isFunction(resolver)) { $$es6$promise$promise$$needsResolver(); } if (!(this instanceof $$es6$promise$promise$$Promise)) { $$es6$promise$promise$$needsNew(); } $$$internal$$initializePromise(this, resolver); } } $$es6$promise$promise$$Promise.all = $$promise$all$$default; $$es6$promise$promise$$Promise.race = $$promise$race$$default; $$es6$promise$promise$$Promise.resolve = $$promise$resolve$$default; $$es6$promise$promise$$Promise.reject = $$promise$reject$$default; $$es6$promise$promise$$Promise.prototype = { constructor: $$es6$promise$promise$$Promise, /** The primary way of interacting with a promise is through its `then` method, which registers callbacks to receive either a promise's eventual value or the reason why the promise cannot be fulfilled. ```js findUser().then(function(user){ // user is available }, function(reason){ // user is unavailable, and you are given the reason why }); ``` Chaining -------- The return value of `then` is itself a promise. This second, 'downstream' promise is resolved with the return value of the first promise's fulfillment or rejection handler, or rejected if the handler throws an exception. ```js findUser().then(function (user) { return user.name; }, function (reason) { return 'default name'; }).then(function (userName) { // If `findUser` fulfilled, `userName` will be the user's name, otherwise it // will be `'default name'` }); findUser().then(function (user) { throw new Error('Found user, but still unhappy'); }, function (reason) { throw new Error('`findUser` rejected and we're unhappy'); }).then(function (value) { // never reached }, function (reason) { // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'. // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'. }); ``` If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream. ```js findUser().then(function (user) { throw new PedagogicalException('Upstream error'); }).then(function (value) { // never reached }).then(function (value) { // never reached }, function (reason) { // The `PedgagocialException` is propagated all the way down to here }); ``` Assimilation ------------ Sometimes the value you want to propagate to a downstream promise can only be retrieved asynchronously. This can be achieved by returning a promise in the fulfillment or rejection handler. The downstream promise will then be pending until the returned promise is settled. This is called *assimilation*. ```js findUser().then(function (user) { return findCommentsByAuthor(user); }).then(function (comments) { // The user's comments are now available }); ``` If the assimliated promise rejects, then the downstream promise will also reject. ```js findUser().then(function (user) { return findCommentsByAuthor(user); }).then(function (comments) { // If `findCommentsByAuthor` fulfills, we'll have the value here }, function (reason) { // If `findCommentsByAuthor` rejects, we'll have the reason here }); ``` Simple Example -------------- Synchronous Example ```javascript var result; try { result = findResult(); // success } catch(reason) { // failure } ``` Errback Example ```js findResult(function(result, err){ if (err) { // failure } else { // success } }); ``` Promise Example; ```javascript findResult().then(function(result){ // success }, function(reason){ // failure }); ``` Advanced Example -------------- Synchronous Example ```javascript var author, books; try { author = findAuthor(); books = findBooksByAuthor(author); // success } catch(reason) { // failure } ``` Errback Example ```js function foundBooks(books) { } function failure(reason) { } findAuthor(function(author, err){ if (err) { failure(err); // failure } else { try { findBoooksByAuthor(author, function(books, err) { if (err) { failure(err); } else { try { foundBooks(books); } catch(reason) { failure(reason); } } }); } catch(error) { failure(err); } // success } }); ``` Promise Example; ```javascript findAuthor(). then(findBooksByAuthor). then(function(books){ // found books }).catch(function(reason){ // something went wrong }); ``` @method then @param {Function} onFulfilled @param {Function} onRejected Useful for tooling. @return {Promise} */ then: function(onFulfillment, onRejection) { var parent = this; var state = parent._state; if (state === $$$internal$$FULFILLED && !onFulfillment || state === $$$internal$$REJECTED && !onRejection) { return this; } var child = new this.constructor($$$internal$$noop); var result = parent._result; if (state) { var callback = arguments[state - 1]; $$asap$$default(function(){ $$$internal$$invokeCallback(state, child, callback, result); }); } else { $$$internal$$subscribe(parent, child, onFulfillment, onRejection); } return child; }, /** `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same as the catch block of a try/catch statement. ```js function findAuthor(){ throw new Error('couldn't find that author'); } // synchronous try { findAuthor(); } catch(reason) { // something went wrong } // async with promises findAuthor().catch(function(reason){ // something went wrong }); ``` @method catch @param {Function} onRejection Useful for tooling. @return {Promise} */ 'catch': function(onRejection) { return this.then(null, onRejection); } }; var $$es6$promise$polyfill$$default = function polyfill() { var local; if (typeof global !== 'undefined') { local = global; } else if (typeof window !== 'undefined' && window.document) { local = window; } else { local = self; } var es6PromiseSupport = "Promise" in local && // Some of these methods are missing from // Firefox/Chrome experimental implementations "resolve" in local.Promise && "reject" in local.Promise && "all" in local.Promise && "race" in local.Promise && // Older version of the spec had a resolver object // as the arg rather than a function (function() { var resolve; new local.Promise(function(r) { resolve = r; }); return $$utils$$isFunction(resolve); }()); if (!es6PromiseSupport) { local.Promise = $$es6$promise$promise$$default; } }; var es6$promise$umd$$ES6Promise = { 'Promise': $$es6$promise$promise$$default, 'polyfill': $$es6$promise$polyfill$$default }; /* global define:true module:true window: true */ if (typeof define === 'function' && define['amd']) { define(function() { return es6$promise$umd$$ES6Promise; }); } else if (typeof module !== 'undefined' && module['exports']) { module['exports'] = es6$promise$umd$$ES6Promise; } else if (typeof this !== 'undefined') { this['ES6Promise'] = es6$promise$umd$$ES6Promise; } }).call(this); }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"_process":3}],3:[function(require,module,exports){ // shim for using process in browser var process = module.exports = {}; var queue = []; var draining = false; function drainQueue() { if (draining) { return; } draining = true; var currentQueue; var len = queue.length; while(len) { currentQueue = queue; queue = []; var i = -1; while (++i < len) { currentQueue[i](); } len = queue.length; } draining = false; } process.nextTick = function (fun) { queue.push(fun); if (!draining) { setTimeout(drainQueue, 0); } }; process.title = 'browser'; process.browser = true; process.env = {}; process.argv = []; process.version = ''; // empty string to avoid regexp issues function noop() {} process.on = noop; process.addListener = noop; process.once = noop; process.off = noop; process.removeListener = noop; process.removeAllListeners = noop; process.emit = noop; process.binding = function (name) { throw new Error('process.binding is not supported'); }; // TODO(shtylman) process.cwd = function () { return '/' }; process.chdir = function (dir) { throw new Error('process.chdir is not supported'); }; process.umask = function() { return 0; }; },{}],4:[function(require,module,exports){ var indexOf = require('./indexOf'); /** * If array contains values. */ function contains(arr, val) { return indexOf(arr, val) !== -1; } module.exports = contains; },{"./indexOf":6}],5:[function(require,module,exports){ /** * Array forEach */ function forEach(arr, callback, thisObj) { if (arr == null) { return; } var i = -1, len = arr.length; while (++i < len) { // we iterate over sparse items since there is no way to make it // work properly on IE 7-8. see #64 if ( callback.call(thisObj, arr[i], i, arr) === false ) { break; } } } module.exports = forEach; },{}],6:[function(require,module,exports){ /** * Array.indexOf */ function indexOf(arr, item, fromIndex) { fromIndex = fromIndex || 0; if (arr == null) { return -1; } var len = arr.length, i = fromIndex < 0 ? len + fromIndex : fromIndex; while (i < len) { // we iterate over sparse items since there is no way to make it // work properly on IE 7-8. see #64 if (arr[i] === item) { return i; } i++; } return -1; } module.exports = indexOf; },{}],7:[function(require,module,exports){ var indexOf = require('./indexOf'); /** * Remove a single item from the array. * (it won't remove duplicates, just a single item) */ function remove(arr, item){ var idx = indexOf(arr, item); if (idx !== -1) arr.splice(idx, 1); } module.exports = remove; },{"./indexOf":6}],8:[function(require,module,exports){ /** * Create slice of source array or array-like object */ function slice(arr, start, end){ var len = arr.length; if (start == null) { start = 0; } else if (start < 0) { start = Math.max(len + start, 0); } else { start = Math.min(start, len); } if (end == null) { end = len; } else if (end < 0) { end = Math.max(len + end, 0); } else { end = Math.min(end, len); } var result = []; while (start < end) { result.push(arr[start++]); } return result; } module.exports = slice; },{}],9:[function(require,module,exports){ /** * Merge sort (http://en.wikipedia.org/wiki/Merge_sort) */ function mergeSort(arr, compareFn) { if (arr == null) { return []; } else if (arr.length < 2) { return arr; } if (compareFn == null) { compareFn = defaultCompare; } var mid, left, right; mid = ~~(arr.length / 2); left = mergeSort( arr.slice(0, mid), compareFn ); right = mergeSort( arr.slice(mid, arr.length), compareFn ); return merge(left, right, compareFn); } function defaultCompare(a, b) { return a < b ? -1 : (a > b? 1 : 0); } function merge(left, right, compareFn) { var result = []; while (left.length && right.length) { if (compareFn(left[0], right[0]) <= 0) { // if 0 it should preserve same order (stable) result.push(left.shift()); } else { result.push(right.shift()); } } if (left.length) { result.push.apply(result, left); } if (right.length) { result.push.apply(result, right); } return result; } module.exports = mergeSort; },{}],10:[function(require,module,exports){ /** * Checks if the value is created by the `Object` constructor. */ function isPlainObject(value) { return (!!value && typeof value === 'object' && value.constructor === Object); } module.exports = isPlainObject; },{}],11:[function(require,module,exports){ /** * Checks if the object is a primitive */ function isPrimitive(value) { // Using switch fallthrough because it's simple to read and is // generally fast: http://jsperf.com/testing-value-is-primitive/5 switch (typeof value) { case "string": case "number": case "boolean": return true; } return value == null; } module.exports = isPrimitive; },{}],12:[function(require,module,exports){ /** * Typecast a value to a String, using an empty string value for null or * undefined. */ function toString(val){ return val == null ? '' : val.toString(); } module.exports = toString; },{}],13:[function(require,module,exports){ var forOwn = require('./forOwn'); var isPlainObject = require('../lang/isPlainObject'); /** * Mixes objects into the target object, recursively mixing existing child * objects. */ function deepMixIn(target, objects) { var i = 0, n = arguments.length, obj; while(++i < n){ obj = arguments[i]; if (obj) { forOwn(obj, copyProp, target); } } return target; } function copyProp(val, key) { var existing = this[key]; if (isPlainObject(val) && isPlainObject(existing)) { deepMixIn(existing, val); } else { this[key] = val; } } module.exports = deepMixIn; },{"../lang/isPlainObject":10,"./forOwn":15}],14:[function(require,module,exports){ var hasOwn = require('./hasOwn'); var _hasDontEnumBug, _dontEnums; function checkDontEnum(){ _dontEnums = [ 'toString', 'toLocaleString', 'valueOf', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'constructor' ]; _hasDontEnumBug = true; for (var key in {'toString': null}) { _hasDontEnumBug = false; } } /** * Similar to Array/forEach but works over object properties and fixes Don't * Enum bug on IE. * based on: http://whattheheadsaid.com/2010/10/a-safer-object-keys-compatibility-implementation */ function forIn(obj, fn, thisObj){ var key, i = 0; // no need to check if argument is a real object that way we can use // it for arrays, functions, date, etc. //post-pone check till needed if (_hasDontEnumBug == null) checkDontEnum(); for (key in obj) { if (exec(fn, obj, key, thisObj) === false) { break; } } if (_hasDontEnumBug) { var ctor = obj.constructor, isProto = !!ctor && obj === ctor.prototype; while (key = _dontEnums[i++]) { // For constructor, if it is a prototype object the constructor // is always non-enumerable unless defined otherwise (and // enumerated above). For non-prototype objects, it will have // to be defined on this object, since it cannot be defined on // any prototype objects. // // For other [[DontEnum]] properties, check if the value is // different than Object prototype value. if ( (key !== 'constructor' || (!isProto && hasOwn(obj, key))) && obj[key] !== Object.prototype[key] ) { if (exec(fn, obj, key, thisObj) === false) { break; } } } } } function exec(fn, obj, key, thisObj){ return fn.call(thisObj, obj[key], key, obj); } module.exports = forIn; },{"./hasOwn":17}],15:[function(require,module,exports){ var hasOwn = require('./hasOwn'); var forIn = require('./forIn'); /** * Similar to Array/forEach but works over object properties and fixes Don't * Enum bug on IE. * based on: http://whattheheadsaid.com/2010/10/a-safer-object-keys-compatibility-implementation */ function forOwn(obj, fn, thisObj){ forIn(obj, function(val, key){ if (hasOwn(obj, key)) { return fn.call(thisObj, obj[key], key, obj); } }); } module.exports = forOwn; },{"./forIn":14,"./hasOwn":17}],16:[function(require,module,exports){ var isPrimitive = require('../lang/isPrimitive'); /** * get "nested" object property */ function get(obj, prop){ var parts = prop.split('.'), last = parts.pop(); while (prop = parts.shift()) { obj = obj[prop]; if (obj == null) return; } return obj[last]; } module.exports = get; },{"../lang/isPrimitive":11}],17:[function(require,module,exports){ /** * Safer Object.hasOwnProperty */ function hasOwn(obj, prop){ return Object.prototype.hasOwnProperty.call(obj, prop); } module.exports = hasOwn; },{}],18:[function(require,module,exports){ var forEach = require('../array/forEach'); /** * Create nested object if non-existent */ function namespace(obj, path){ if (!path) return obj; forEach(path.split('.'), function(key){ if (!obj[key]) { obj[key] = {}; } obj = obj[key]; }); return obj; } module.exports = namespace; },{"../array/forEach":5}],19:[function(require,module,exports){ var slice = require('../array/slice'); /** * Return a copy of the object, filtered to only have values for the whitelisted keys. */ function pick(obj, var_keys){ var keys = typeof arguments[1] !== 'string'? arguments[1] : slice(arguments, 1), out = {}, i = 0, key; while (key = keys[i++]) { out[key] = obj[key]; } return out; } module.exports = pick; },{"../array/slice":8}],20:[function(require,module,exports){ var namespace = require('./namespace'); /** * set "nested" object property */ function set(obj, prop, val){ var parts = (/^(.+)\.(.+)$/).exec(prop); if (parts){ namespace(obj, parts[1])[parts[2]] = val; } else { obj[prop] = val; } } module.exports = set; },{"./namespace":18}],21:[function(require,module,exports){ var toString = require('../lang/toString'); var replaceAccents = require('./replaceAccents'); var removeNonWord = require('./removeNonWord'); var upperCase = require('./upperCase'); var lowerCase = require('./lowerCase'); /** * Convert string to camelCase text. */ function camelCase(str){ str = toString(str); str = replaceAccents(str); str = removeNonWord(str) .replace(/[\-_]/g, ' ') //convert all hyphens and underscores to spaces .replace(/\s[a-z]/g, upperCase) //convert first char of each word to UPPERCASE .replace(/\s+/g, '') //remove spaces .replace(/^[A-Z]/g, lowerCase); //convert first char to lowercase return str; } module.exports = camelCase; },{"../lang/toString":12,"./lowerCase":22,"./removeNonWord":24,"./replaceAccents":25,"./upperCase":26}],22:[function(require,module,exports){ var toString = require('../lang/toString'); /** * "Safer" String.toLowerCase() */ function lowerCase(str){ str = toString(str); return str.toLowerCase(); } module.exports = lowerCase; },{"../lang/toString":12}],23:[function(require,module,exports){ var toString = require('../lang/toString'); var camelCase = require('./camelCase'); var upperCase = require('./upperCase'); /** * camelCase + UPPERCASE first char */ function pascalCase(str){ str = toString(str); return camelCase(str).replace(/^[a-z]/, upperCase); } module.exports = pascalCase; },{"../lang/toString":12,"./camelCase":21,"./upperCase":26}],24:[function(require,module,exports){ var toString = require('../lang/toString'); // This pattern is generated by the _build/pattern-removeNonWord.js script var PATTERN = /[^\x20\x2D0-9A-Z\x5Fa-z\xC0-\xD6\xD8-\xF6\xF8-\xFF]/g; /** * Remove non-word chars. */ function removeNonWord(str){ str = toString(str); return str.replace(PATTERN, ''); } module.exports = removeNonWord; },{"../lang/toString":12}],25:[function(require,module,exports){ var toString = require('../lang/toString'); /** * Replaces all accented chars with regular ones */ function replaceAccents(str){ str = toString(str); // verifies if the String has accents and replace them if (str.search(/[\xC0-\xFF]/g) > -1) { str = str .replace(/[\xC0-\xC5]/g, "A") .replace(/[\xC6]/g, "AE") .replace(/[\xC7]/g, "C") .replace(/[\xC8-\xCB]/g, "E") .replace(/[\xCC-\xCF]/g, "I") .replace(/[\xD0]/g, "D") .replace(/[\xD1]/g, "N") .replace(/[\xD2-\xD6\xD8]/g, "O") .replace(/[\xD9-\xDC]/g, "U") .replace(/[\xDD]/g, "Y") .replace(/[\xDE]/g, "P") .replace(/[\xE0-\xE5]/g, "a") .replace(/[\xE6]/g, "ae") .replace(/[\xE7]/g, "c") .replace(/[\xE8-\xEB]/g, "e") .replace(/[\xEC-\xEF]/g, "i") .replace(/[\xF1]/g, "n") .replace(/[\xF2-\xF6\xF8]/g, "o") .replace(/[\xF9-\xFC]/g, "u") .replace(/[\xFE]/g, "p") .replace(/[\xFD\xFF]/g, "y"); } return str; } module.exports = replaceAccents; },{"../lang/toString":12}],26:[function(require,module,exports){ var toString = require('../lang/toString'); /** * "Safer" String.toUpperCase() */ function upperCase(str){ str = toString(str); return str.toUpperCase(); } module.exports = upperCase; },{"../lang/toString":12}],27:[function(require,module,exports){ var DSUtils = require('../../utils'); var DSErrors = require('../../errors'); function create(resourceName, attrs, options) { var _this = this; var definition = _this.definitions[resourceName]; options = options || {}; attrs = attrs || {}; var rejectionError; if (!definition) { rejectionError = new DSErrors.NER(resourceName); } else if (!DSUtils.isObject(attrs)) { rejectionError = new DSErrors.IA('"attrs" must be an object!'); } else { options = DSUtils._(definition, options); if (options.upsert && (DSUtils.isString(attrs[definition.idAttribute]) || DSUtils.isNumber(attrs[definition.idAttribute]))) { return _this.update(resourceName, attrs[definition.idAttribute], attrs, options); } options.logFn('create', attrs, options); } return new DSUtils.Promise(function (resolve, reject) { if (rejectionError) { reject(rejectionError); } else { resolve(attrs); } }) .then(function (attrs) { return options.beforeValidate.call(attrs, options, attrs); }) .then(function (attrs) { return options.validate.call(attrs, options, attrs); }) .then(function (attrs) { return options.afterValidate.call(attrs, options, attrs); }) .then(function (attrs) { return options.beforeCreate.call(attrs, options, attrs); }) .then(function (attrs) { if (options.notify) { _this.emit(options, 'beforeCreate', DSUtils.copy(attrs)); } return _this.getAdapter(options).create(definition, attrs, options); }) .then(function (attrs) { return options.afterCreate.call(attrs, options, attrs); }) .then(function (attrs) { if (options.notify) { _this.emit(options, 'afterCreate', DSUtils.copy(attrs)); } if (options.cacheResponse) { var created = _this.inject(definition.name, attrs, options); var id = created[definition.idAttribute]; _this.store[resourceName].completedQueries[id] = new Date().getTime(); return created; } else { return _this.createInstance(resourceName, attrs, options); } }); } module.exports = create; },{"../../errors":48,"../../utils":50}],28:[function(require,module,exports){ var DSUtils = require('../../utils'); var DSErrors = require('../../errors'); function destroy(resourceName, id, options) { var _this = this; var definition = _this.definitions[resourceName]; var item; return new DSUtils.Promise(function (resolve, reject) { id = DSUtils.resolveId(definition, id); if (!definition) { reject(new DSErrors.NER(resourceName)); } else if (!DSUtils.isString(id) && !DSUtils.isNumber(id)) { reject(new DSErrors.IA('"id" must be a string or a number!')); } else { item = _this.get(resourceName, id) || { id: id }; options = DSUtils._(definition, options); options.logFn('destroy', id, options); resolve(item); } }) .then(function (attrs) { return options.beforeDestroy.call(attrs, options, attrs); }) .then(function (attrs) { if (options.notify) { _this.emit(options, 'beforeDestroy', DSUtils.copy(attrs)); } if (options.eagerEject) { _this.eject(resourceName, id); } return _this.getAdapter(options).destroy(definition, id, options); }) .then(function () { return options.afterDestroy.call(item, options, item); }) .then(function (item) { if (options.notify) { _this.emit(options, 'afterDestroy', DSUtils.copy(item)); } _this.eject(resourceName, id); return id; })['catch'](function (err) { if (options && options.eagerEject && item) { _this.inject(resourceName, item, { notify: false }); } throw err; }); } module.exports = destroy; },{"../../errors":48,"../../utils":50}],29:[function(require,module,exports){ var DSUtils = require('../../utils'); var DSErrors = require('../../errors'); function destroyAll(resourceName, params, options) { var _this = this; var definition = _this.definitions[resourceName]; var ejected, toEject; params = params || {}; return new DSUtils.Promise(function (resolve, reject) { if (!definition) { reject(new DSErrors.NER(resourceName)); } else if (!DSUtils.isObject(params)) { reject(new DSErrors.IA('"params" must be an object!')); } else { options = DSUtils._(definition, options); options.logFn('destroyAll', params, options); resolve(); } }).then(function () { toEject = _this.defaults.defaultFilter.call(_this, resourceName, params); return options.beforeDestroy(options, toEject); }).then(function () { if (options.notify) { _this.emit(options, 'beforeDestroy', DSUtils.copy(toEject)); } if (options.eagerEject) { ejected = _this.ejectAll(resourceName, params); } return _this.getAdapter(options).destroyAll(definition, params, options); }).then(function () { return options.afterDestroy(options, toEject); }).then(function () { if (options.notify) { _this.emit(options, 'afterDestroy', DSUtils.copy(toEject)); } return ejected || _this.ejectAll(resourceName, params); })['catch'](function (err) { if (options && options.eagerEject && ejected) { _this.inject(resourceName, ejected, { notify: false }); } throw err; }); } module.exports = destroyAll; },{"../../errors":48,"../../utils":50}],30:[function(require,module,exports){ /* jshint -W082 */ var DSUtils = require('../../utils'); var DSErrors = require('../../errors'); function find(resourceName, id, options) { var _this = this; var definition = _this.definitions[resourceName]; var resource = _this.store[resourceName]; return new DSUtils.Promise(function (resolve, reject) { if (!definition) { reject(new DSErrors.NER(resourceName)); } else if (!DSUtils.isString(id) && !DSUtils.isNumber(id)) { reject(new DSErrors.IA('"id" must be a string or a number!')); } else { options = DSUtils._(definition, options); options.logFn('find', id, options); if (options.params) { options.params = DSUtils.copy(options.params); } if (options.bypassCache || !options.cacheResponse) { delete resource.completedQueries[id]; } if (id in resource.completedQueries) { resolve(_this.get(resourceName, id)); } else { resolve(); } } }).then(function (item) { if (!(id in resource.completedQueries)) { if (!(id in resource.pendingQueries)) { var promise; var strategy = options.findStrategy || options.strategy; if (strategy === 'fallback') { function makeFallbackCall(index) { return _this.getAdapter((options.findFallbackAdapters || options.fallbackAdapters)[index]).find(definition, id, options)['catch'](function (err) { index++; if (index < options.fallbackAdapters.length) { return makeFallbackCall(index); } else { return Promise.reject(err); } }); } promise = makeFallbackCall(0); } else { promise = _this.getAdapter(options).find(definition, id, options); } resource.pendingQueries[id] = promise.then(function (data) { // Query is no longer pending delete resource.pendingQueries[id]; if (options.cacheResponse) { resource.completedQueries[id] = new Date().getTime(); return _this.inject(resourceName, data, options); } else { return _this.createInstance(resourceName, data, options); } }); } return resource.pendingQueries[id]; } else { return item; } })['catch'](function (err) { if (resource) { delete resource.pendingQueries[id]; } throw err; }); } module.exports = find; },{"../../errors":48,"../../utils":50}],31:[function(require,module,exports){ /* jshint -W082 */ var DSUtils = require('../../utils'); var DSErrors = require('../../errors'); function processResults(data, resourceName, queryHash, options) { var _this = this; var resource = _this.store[resourceName]; var idAttribute = _this.definitions[resourceName].idAttribute; var date = new Date().getTime(); data = data || []; // Query is no longer pending delete resource.pendingQueries[queryHash]; resource.completedQueries[queryHash] = date; // Update modified timestamp of collection resource.collectionModified = DSUtils.updateTimestamp(resource.collectionModified); // Merge the new values into the cache var injected = _this.inject(resourceName, data, options); // Make sure each object is added to completedQueries if (DSUtils.isArray(injected)) { DSUtils.forEach(injected, function (item) { if (item && item[idAttribute]) { resource.completedQueries[item[idAttribute]] = date; } }); } else { options.errorFn('response is expected to be an array!'); resource.completedQueries[injected[idAttribute]] = date; } return injected; } function findAll(resourceName, params, options) { var _this = this; var definition = _this.definitions[resourceName]; var resource = _this.store[resourceName]; var queryHash; return new DSUtils.Promise(function (resolve, reject) { params = params || {}; if (!_this.definitions[resourceName]) { reject(new DSErrors.NER(resourceName)); } else if (!DSUtils.isObject(params)) { reject(new DSErrors.IA('"params" must be an object!')); } else { options = DSUtils._(definition, options); queryHash = DSUtils.toJson(params); options.logFn('findAll', params, options); if (options.params) { options.params = DSUtils.copy(options.params); } if (options.bypassCache || !options.cacheResponse) { delete resource.completedQueries[queryHash]; delete resource.queryData[queryHash]; } if (queryHash in resource.completedQueries) { if (options.useFilter) { resolve(_this.filter(resourceName, params, options)); } else { resolve(resource.queryData[queryHash]); } } else { resolve(); } } }).then(function (items) { if (!(queryHash in resource.completedQueries)) { if (!(queryHash in resource.pendingQueries)) { var promise; var strategy = options.findAllStrategy || options.strategy; if (strategy === 'fallback') { function makeFallbackCall(index) { return _this.getAdapter((options.findAllFallbackAdapters || options.fallbackAdapters)[index]).findAll(definition, params, options)['catch'](function (err) { index++; if (index < options.fallbackAdapters.length) { return makeFallbackCall(index); } else { return Promise.reject(err); } }); } promise = makeFallbackCall(0); } else { promise = _this.getAdapter(options).findAll(definition, params, options); } resource.pendingQueries[queryHash] = promise.then(function (data) { delete resource.pendingQueries[queryHash]; if (options.cacheResponse) { resource.queryData[queryHash] = processResults.call(_this, data, resourceName, queryHash, options); resource.queryData[queryHash].$$injected = true; return resource.queryData[queryHash]; } else { DSUtils.forEach(data, function (item, i) { data[i] = _this.createInstance(resourceName, item, options); }); return data; } }); } return resource.pendingQueries[queryHash]; } else { return items; } })['catch'](function (err) { if (resource) { delete resource.pendingQueries[queryHash]; } throw err; }); } module.exports = findAll; },{"../../errors":48,"../../utils":50}],32:[function(require,module,exports){ var DSUtils = require('../../utils'); var DSErrors = require('../../errors'); function reap(resourceName, options) { var _this = this; var definition = _this.definitions[resourceName]; var resource = _this.store[resourceName]; return new DSUtils.Promise(function (resolve, reject) { if (!definition) { reject(new _this.errors.NER(resourceName)); } else { options = DSUtils._(definition, options); if (!options.hasOwnProperty('notify')) { options.notify = false; } options.logFn('reap', options); var items = []; var now = new Date().getTime(); var expiredItem; while ((expiredItem = resource.expiresHeap.peek()) && expiredItem.expires < now) { items.push(expiredItem.item); delete expiredItem.item; resource.expiresHeap.pop(); } resolve(items); } }).then(function (items) { if (options.isInterval || options.notify) { definition.beforeReap(options, items); _this.emit(options, 'beforeReap', DSUtils.copy(items)); } if (options.reapAction === 'inject') { DSUtils.forEach(items, function (item) { var id = item[definition.idAttribute]; resource.expiresHeap.push({ item: item, timestamp: resource.saved[id], expires: definition.maxAge ? resource.saved[id] + definition.maxAge : Number.MAX_VALUE }); }); } else if (options.reapAction === 'eject') { DSUtils.forEach(items, function (item) { _this.eject(resourceName, item[definition.idAttribute]); }); } else if (options.reapAction === 'refresh') { var tasks = []; DSUtils.forEach(items, function (item) { tasks.push(_this.refresh(resourceName, item[definition.idAttribute])); }); return DSUtils.Promise.all(tasks); } return items; }).then(function (items) { if (options.isInterval || options.notify) { definition.afterReap(options, items); _this.emit(options, 'afterReap', DSUtils.copy(items)); } return items; }); } function refresh(resourceName, id, options) { var _this = this; return new DSUtils.Promise(function (resolve, reject) { var definition = _this.definitions[resourceName]; id = DSUtils.resolveId(_this.definitions[resourceName], id); if (!definition) { reject(new _this.errors.NER(resourceName)); } else if (!DSUtils.isString(id) && !DSUtils.isNumber(id)) { reject(new DSErrors.IA('"id" must be a string or a number!')); } else { options = DSUtils._(definition, options); options.bypassCache = true; options.logFn('refresh', id, options); resolve(_this.get(resourceName, id)); } }).then(function (item) { if (item) { return _this.find(resourceName, id, options); } else { return item; } }); } module.exports = { create: require('./create'), destroy: require('./destroy'), destroyAll: require('./destroyAll'), find: require('./find'), findAll: require('./findAll'), loadRelations: require('./loadRelations'), reap: reap, refresh: refresh, save: require('./save'), update: require('./update'), updateAll: require('./updateAll') }; },{"../../errors":48,"../../utils":50,"./create":27,"./destroy":28,"./destroyAll":29,"./find":30,"./findAll":31,"./loadRelations":33,"./save":34,"./update":35,"./updateAll":36}],33:[function(require,module,exports){ var DSUtils = require('../../utils'); var DSErrors = require('../../errors'); function loadRelations(resourceName, instance, relations, options) { var _this = this; var definition = _this.definitions[resourceName]; var fields = []; return new DSUtils.Promise(function (resolve, reject) { if (DSUtils.isString(instance) || DSUtils.isNumber(instance)) { instance = _this.get(resourceName, instance); } if (DSUtils.isString(relations)) { relations = [relations]; } if (!definition) { reject(new DSErrors.NER(resourceName)); } else if (!DSUtils.isObject(instance)) { reject(new DSErrors.IA('"instance(id)" must be a string, number or object!')); } else if (!DSUtils.isArray(relations)) { reject(new DSErrors.IA('"relations" must be a string or an array!')); } else { var _options = DSUtils._(definition, options); if (!_options.hasOwnProperty('findBelongsTo')) { _options.findBelongsTo = true; } if (!_options.hasOwnProperty('findHasMany')) { _options.findHasMany = true; } _options.logFn('loadRelations', instance, relations, _options); var tasks = []; DSUtils.forEach(definition.relationList, function (def) { var relationName = def.relation; var relationDef = definition.getResource(relationName); var __options = DSUtils._(relationDef, options); if (DSUtils.contains(relations, relationName)) { var task; var params = {}; if (__options.allowSimpleWhere) { params[def.foreignKey] = instance[definition.idAttribute]; } else { params.where = {}; params.where[def.foreignKey] = { '==': instance[definition.idAttribute] }; } if (def.type === 'hasMany' && params[def.foreignKey]) { task = _this.findAll(relationName, params, __options); } else if (def.type === 'hasOne') { if (def.localKey && instance[def.localKey]) { task = _this.find(relationName, instance[def.localKey], __options); } else if (def.foreignKey && params[def.foreignKey]) { task = _this.findAll(relationName, params, __options).then(function (hasOnes) { return hasOnes.length ? hasOnes[0] : null; }); } } else if (instance[def.localKey]) { task = _this.find(relationName, instance[def.localKey], options); } if (task) { tasks.push(task); fields.push(def.localField); } } }); resolve(tasks); } }) .then(function (tasks) { return DSUtils.Promise.all(tasks); }) .then(function (loadedRelations) { DSUtils.forEach(fields, function (field, index) { instance[field] = loadedRelations[index]; }); return instance; }); } module.exports = loadRelations; },{"../../errors":48,"../../utils":50}],34:[function(require,module,exports){ var DSUtils = require('../../utils'); var DSErrors = require('../../errors'); function save(resourceName, id, options) { var _this = this; var definition = _this.definitions[resourceName]; var item; return new DSUtils.Promise(function (resolve, reject) { id = DSUtils.resolveId(definition, id); if (!definition) { reject(new DSErrors.NER(resourceName)); } else if (!DSUtils.isString(id) && !DSUtils.isNumber(id)) { reject(new DSErrors.IA('"id" must be a string or a number!')); } else if (!_this.get(resourceName, id)) { reject(new DSErrors.R('id "' + id + '" not found in cache!')); } else { item = _this.get(resourceName, id); options = DSUtils._(definition, options); options.logFn('save', id, options); resolve(item); } }).then(function (attrs) { return options.beforeValidate.call(attrs, options, attrs); }) .then(function (attrs) { return options.validate.call(attrs, options, attrs); }) .then(function (attrs) { return options.afterValidate.call(attrs, options, attrs); }) .then(function (attrs) { return options.beforeUpdate.call(attrs, options, attrs); }) .then(function (attrs) { if (options.notify) { _this.emit(options, 'beforeUpdate', DSUtils.copy(attrs)); } if (options.changesOnly) { var resource = _this.store[resourceName]; if (DSUtils.w) { resource.observers[id].deliver(); } var toKeep = []; var changes = _this.changes(resourceName, id); for (var key in changes.added) { toKeep.push(key); } for (key in changes.changed) { toKeep.push(key); } changes = DSUtils.pick(attrs, toKeep); if (DSUtils.isEmpty(changes)) { // no changes, return return attrs; } else { attrs = changes; } } return _this.getAdapter(options).update(definition, id, attrs, options); }) .then(function (data) { return options.afterUpdate.call(data, options, data); }) .then(function (attrs) { if (options.notify) { _this.emit(options, 'afterUpdate', DSUtils.copy(attrs)); } if (options.cacheResponse) { return _this.inject(definition.name, attrs, options); } else { return _this.createInstance(resourceName, attrs, options); } }); } module.exports = save; },{"../../errors":48,"../../utils":50}],35:[function(require,module,exports){ var DSUtils = require('../../utils'); var DSErrors = require('../../errors'); function update(resourceName, id, attrs, options) { var _this = this; var definition = _this.definitions[resourceName]; return new DSUtils.Promise(function (resolve, reject) { id = DSUtils.resolveId(definition, id); if (!definition) { reject(new DSErrors.NER(resourceName)); } else if (!DSUtils.isString(id) && !DSUtils.isNumber(id)) { reject(new DSErrors.IA('"id" must be a string or a number!')); } else { options = DSUtils._(definition, options); options.logFn('update', id, attrs, options); resolve(attrs); } }).then(function (attrs) { return options.beforeValidate.call(attrs, options, attrs); }) .then(function (attrs) { return options.validate.call(attrs, options, attrs); }) .then(function (attrs) { return options.afterValidate.call(attrs, options, attrs); }) .then(function (attrs) { return options.beforeUpdate.call(attrs, options, attrs); }) .then(function (attrs) { if (options.notify) { _this.emit(options, 'beforeUpdate', DSUtils.copy(attrs)); } return _this.getAdapter(options).update(definition, id, attrs, options); }) .then(function (data) { return options.afterUpdate.call(data, options, data); }) .then(function (attrs) { if (options.notify) { _this.emit(options, 'afterUpdate', DSUtils.copy(attrs)); } if (options.cacheResponse) { return _this.inject(definition.name, attrs, options); } else { return _this.createInstance(resourceName, attrs, options); } }); } module.exports = update; },{"../../errors":48,"../../utils":50}],36:[function(require,module,exports){ var DSUtils = require('../../utils'); var DSErrors = require('../../errors'); function updateAll(resourceName, attrs, params, options) { var _this = this; var definition = _this.definitions[resourceName]; return new DSUtils.Promise(function (resolve, reject) { if (!definition) { reject(new DSErrors.NER(resourceName)); } else { options = DSUtils._(definition, options); options.logFn('updateAll', attrs, params, options); resolve(attrs); } }).then(function (attrs) { return options.beforeValidate.call(attrs, options, attrs); }) .then(function (attrs) { return options.validate.call(attrs, options, attrs); }) .then(function (attrs) { return options.afterValidate.call(attrs, options, attrs); }) .then(function (attrs) { return options.beforeUpdate.call(attrs, options, attrs); }) .then(function (attrs) { if (options.notify) { _this.emit(options, 'beforeUpdate', DSUtils.copy(attrs)); } return _this.getAdapter(options).updateAll(definition, attrs, params, options); }) .then(function (data) { return options.afterUpdate.call(data, options, data); }) .then(function (data) { if (options.notify) { _this.emit(options, 'afterUpdate', DSUtils.copy(attrs)); } if (options.cacheResponse) { return _this.inject(definition.name, data, options); } else { var instances = []; DSUtils.forEach(data, function (item) { instances.push(_this.createInstance(resourceName, item, options)); }); return instances; } }); } module.exports = updateAll; },{"../../errors":48,"../../utils":50}],37:[function(require,module,exports){ var DSUtils = require('../utils'); var DSErrors = require('../errors'); var syncMethods = require('./sync_methods'); var asyncMethods = require('./async_methods'); var Schemator; function lifecycleNoopCb(resource, attrs, cb) { cb(null, attrs); } function lifecycleNoop(resource, attrs) { return attrs; } function compare(orderBy, index, a, b) { var def = orderBy[index]; var cA = DSUtils.get(a, def[0]), cB = DSUtils.get(b, def[0]); if (DSUtils.isString(cA)) { cA = DSUtils.upperCase(cA); } if (DSUtils.isString(cB)) { cB = DSUtils.upperCase(cB); } if (def[1] === 'DESC') { if (cB < cA) { return -1; } else if (cB > cA) { return 1; } else { if (index < orderBy.length - 1) { return compare(orderBy, index + 1, a, b); } else { return 0; } } } else { if (cA < cB) { return -1; } else if (cA > cB) { return 1; } else { if (index < orderBy.length - 1) { return compare(orderBy, index + 1, a, b); } else { return 0; } } } } function Defaults() { } var defaultsPrototype = Defaults.prototype; defaultsPrototype.actions = {}; defaultsPrototype.afterCreate = lifecycleNoopCb; defaultsPrototype.afterCreateInstance = lifecycleNoop; defaultsPrototype.afterDestroy = lifecycleNoopCb; defaultsPrototype.afterEject = lifecycleNoop; defaultsPrototype.afterInject = lifecycleNoop; defaultsPrototype.afterReap = lifecycleNoop; defaultsPrototype.afterUpdate = lifecycleNoopCb; defaultsPrototype.afterValidate = lifecycleNoopCb; defaultsPrototype.allowSimpleWhere = true; defaultsPrototype.basePath = ''; defaultsPrototype.beforeCreate = lifecycleNoopCb; defaultsPrototype.beforeCreateInstance = lifecycleNoop; defaultsPrototype.beforeDestroy = lifecycleNoopCb; defaultsPrototype.beforeEject = lifecycleNoop; defaultsPrototype.beforeInject = lifecycleNoop; defaultsPrototype.beforeReap = lifecycleNoop; defaultsPrototype.beforeUpdate = lifecycleNoopCb; defaultsPrototype.beforeValidate = lifecycleNoopCb; defaultsPrototype.bypassCache = false; defaultsPrototype.cacheResponse = !!DSUtils.w; defaultsPrototype.defaultAdapter = 'http'; defaultsPrototype.debug = true; defaultsPrototype.eagerEject = false; // TODO: Implement eagerInject in DS#create defaultsPrototype.eagerInject = false; defaultsPrototype.endpoint = ''; defaultsPrototype.error = console ? function (a, b, c) { console[typeof console.error === 'function' ? 'error' : 'log'](a, b, c); } : false; defaultsPrototype.errorFn = function (a, b) { if (this.error && typeof this.error === 'function') { try { if (typeof a === 'string') { throw new Error(a); } else { throw a; } } catch (err) { a = err; } this.error(this.name || null, a || null, b || null); } }; defaultsPrototype.fallbackAdapters = ['http']; defaultsPrototype.findBelongsTo = true; defaultsPrototype.findHasOne = true; defaultsPrototype.findHasMany = true; defaultsPrototype.findInverseLinks = true; defaultsPrototype.idAttribute = 'id'; defaultsPrototype.ignoredChanges = [/\$/]; defaultsPrototype.ignoreMissing = false; defaultsPrototype.keepChangeHistory = false; defaultsPrototype.loadFromServer = false; defaultsPrototype.log = console ? function (a, b, c, d, e) { console[typeof console.info === 'function' ? 'info' : 'log'](a, b, c, d, e); } : false; defaultsPrototype.logFn = function (a, b, c, d) { if (this.debug && this.log && typeof this.log === 'function') { this.log(this.name || null, a || null, b || null, c || null, d || null); } }; defaultsPrototype.maxAge = false; defaultsPrototype.notify = !!DSUtils.w; defaultsPrototype.reapAction = !!DSUtils.w ? 'inject' : 'none'; defaultsPrototype.reapInterval = !!DSUtils.w ? 30000 : false; defaultsPrototype.resetHistoryOnInject = true; defaultsPrototype.strategy = 'single'; defaultsPrototype.upsert = !!DSUtils.w; defaultsPrototype.useClass = true; defaultsPrototype.useFilter = false; defaultsPrototype.validate = lifecycleNoopCb; defaultsPrototype.defaultFilter = function (collection, resourceName, params, options) { var _this = this; var filtered = collection; var where = null; var reserved = { skip: '', offset: '', where: '', limit: '', orderBy: '', sort: '' }; params = params || {}; options = options || {}; if (DSUtils.isObject(params.where)) { where = params.where; } else { where = {}; } if (options.allowSimpleWhere) { DSUtils.forOwn(params, function (value, key) { if (!(key in reserved) && !(key in where)) { where[key] = { '==': value }; } }); } if (DSUtils.isEmpty(where)) { where = null; } if (where) { filtered = DSUtils.filter(filtered, function (attrs) { var first = true; var keep = true; DSUtils.forOwn(where, function (clause, field) { if (DSUtils.isString(clause)) { clause = { '===': clause }; } else if (DSUtils.isNumber(clause) || DSUtils.isBoolean(clause)) { clause = { '==': clause }; } if (DSUtils.isObject(clause)) { DSUtils.forOwn(clause, function (term, op) { var expr; var isOr = op[0] === '|'; var val = attrs[field]; op = isOr ? op.substr(1) : op; if (op === '==') { expr = val == term; } else if (op === '===') { expr = val === term; } else if (op === '!=') { expr = val != term; } else if (op === '!==') { expr = val !== term; } else if (op === '>') { expr = val > term; } else if (op === '>=') { expr = val >= term; } else if (op === '<') { expr = val < term; } else if (op === '<=') { expr = val <= term; } else if (op === 'isectEmpty') { expr = !DSUtils.intersection((val || []), (term || [])).length; } else if (op === 'isectNotEmpty') { expr = DSUtils.intersection((val || []), (term || [])).length; } else if (op === 'in') { if (DSUtils.isString(term)) { expr = term.indexOf(val) !== -1; } else { expr = DSUtils.contains(term, val); } } else if (op === 'notIn') { if (DSUtils.isString(term)) { expr = term.indexOf(val) === -1; } else { expr = !DSUtils.contains(term, val); } } else if (op === 'contains') { if (DSUtils.isString(val)) { expr = val.indexOf(term) !== -1; } else { expr = DSUtils.contains(val, term); } } else if (op === 'notContains') { if (DSUtils.isString(val)) { expr = val.indexOf(term) === -1; } else { expr = !DSUtils.contains(val, term); } } if (expr !== undefined) { keep = first ? expr : (isOr ? keep || expr : keep && expr); } first = false; }); } }); return keep; }); } var orderBy = null; if (DSUtils.isString(params.orderBy)) { orderBy = [ [params.orderBy, 'ASC'] ]; } else if (DSUtils.isArray(params.orderBy)) { orderBy = params.orderBy; } if (!orderBy && DSUtils.isString(params.sort)) { orderBy = [ [params.sort, 'ASC'] ]; } else if (!orderBy && DSUtils.isArray(params.sort)) { orderBy = params.sort; } // Apply 'orderBy' if (orderBy) { var index = 0; DSUtils.forEach(orderBy, function (def, i) { if (DSUtils.isString(def)) { orderBy[i] = [def, 'ASC']; } else if (!DSUtils.isArray(def)) { throw new _this.errors.IllegalArgumentError('DS.filter(resourceName[, params][, options]): ' + DSUtils.toJson(def) + ': Must be a string or an array!', { params: { 'orderBy[i]': { actual: typeof def, expected: 'string|array' } } }); } }); filtered = DSUtils.sort(filtered, function (a, b) { return compare(orderBy, index, a, b); }); } var limit = DSUtils.isNumber(params.limit) ? params.limit : null; var skip = null; if (DSUtils.isNumber(params.skip)) { skip = params.skip; } else if (DSUtils.isNumber(params.offset)) { skip = params.offset; } // Apply 'limit' and 'skip' if (limit && skip) { filtered = DSUtils.slice(filtered, skip, Math.min(filtered.length, skip + limit)); } else if (DSUtils.isNumber(limit)) { filtered = DSUtils.slice(filtered, 0, Math.min(filtered.length, limit)); } else if (DSUtils.isNumber(skip)) { if (skip < filtered.length) { filtered = DSUtils.slice(filtered, skip); } else { filtered = []; } } return filtered; }; function DS(options) { var _this = this; options = options || {}; try { Schemator = require('js-data-schema'); } catch (e) { } if (!Schemator) { try { Schemator = window.Schemator; } catch (e) { } } if (Schemator || options.schemator) { _this.schemator = options.schemator || new Schemator(); } _this.store = {}; _this.definitions = {}; _this.adapters = {}; _this.defaults = new Defaults(); _this.observe = DSUtils.observe; DSUtils.forOwn(options, function (v, k) { _this.defaults[k] = v; }); _this.defaults.logFn('new data store created', _this.defaults); } var dsPrototype = DS.prototype; dsPrototype.getAdapter = function (options) { var errorIfNotExist = false; options = options || {}; this.defaults.logFn('getAdapter', options); if (DSUtils.isString(options)) { errorIfNotExist = true; options = { adapter: options }; } var adapter = this.adapters[options.adapter]; if (adapter) { return adapter; } else if (errorIfNotExist) { throw new Error(options.adapter + ' is not a registered adapter!'); } else { return this.adapters[options.defaultAdapter]; } }; dsPrototype.registerAdapter = function (name, Adapter, options) { var _this = this; options = options || {}; _this.defaults.logFn('registerAdapter', name, Adapter, options); if (DSUtils.isFunction(Adapter)) { _this.adapters[name] = new Adapter(options); } else { _this.adapters[name] = Adapter; } if (options.default) { _this.defaults.defaultAdapter = name; } _this.defaults.logFn('default adapter is ' + _this.defaults.defaultAdapter); }; dsPrototype.emit = function (definition, event) { var args = Array.prototype.slice.call(arguments, 2); args.unshift(definition.name); args.unshift('DS.' + event); definition.emit.apply(definition, args); }; dsPrototype.errors = require('../errors'); dsPrototype.utils = DSUtils; DSUtils.deepMixIn(dsPrototype, syncMethods); DSUtils.deepMixIn(dsPrototype, asyncMethods); module.exports = DS; },{"../errors":48,"../utils":50,"./async_methods":32,"./sync_methods":42,"js-data-schema":"js-data-schema"}],38:[function(require,module,exports){ /*jshint evil:true, loopfunc:true*/ var DSUtils = require('../../utils'); var DSErrors = require('../../errors'); function Resource(options) { DSUtils.deepMixIn(this, options); if ('endpoint' in options) { this.endpoint = options.endpoint; } else { this.endpoint = this.name; } } var instanceMethods = [ 'compute', 'refresh', 'save', 'update', 'destroy', 'loadRelations', 'changeHistory', 'changes', 'hasChanges', 'lastModified', 'lastSaved', 'link', 'linkInverse', 'previous', 'unlinkInverse' ]; function defineResource(definition) { var _this = this; var definitions = _this.definitions; if (DSUtils.isString(definition)) { definition = { name: definition.replace(/\s/gi, '') }; } if (!DSUtils.isObject(definition)) { throw new DSErrors.IA('"definition" must be an object!'); } else if (!DSUtils.isString(definition.name)) { throw new DSErrors.IA('"name" must be a string!'); } else if (_this.store[definition.name]) { throw new DSErrors.R(definition.name + ' is already registered!'); } try { // Inherit from global defaults Resource.prototype = _this.defaults; definitions[definition.name] = new Resource(definition); var def = definitions[definition.name]; def.logFn('Preparing resource.'); if (!DSUtils.isString(def.idAttribute)) { throw new DSErrors.IA('"idAttribute" must be a string!'); } // Setup nested parent configuration if (def.relations) { def.relationList = []; def.relationFields = []; DSUtils.forOwn(def.relations, function (relatedModels, type) { DSUtils.forOwn(relatedModels, function (defs, relationName) { if (!DSUtils.isArray(defs)) { relatedModels[relationName] = [defs]; } DSUtils.forEach(relatedModels[relationName], function (d) { d.type = type; d.relation = relationName; d.name = def.name; def.relationList.push(d); def.relationFields.push(d.localField); }); }); }); if (def.relations.belongsTo) { DSUtils.forOwn(def.relations.belongsTo, function (relatedModel, modelName) { DSUtils.forEach(relatedModel, function (relation) { if (relation.parent) { def.parent = modelName; def.parentKey = relation.localKey; def.parentField = relation.localField; } }); }); } if (typeof Object.freeze === 'function') { Object.freeze(def.relations); Object.freeze(def.relationList); } } def.getResource = function (resourceName) { return _this.definitions[resourceName]; }; def.getEndpoint = function (id, options) { options.params = options.params || {}; var item; var parentKey = def.parentKey; var endpoint = options.hasOwnProperty('endpoint') ? options.endpoint : def.endpoint; var parentField = def.parentField; var parentDef = definitions[def.parent]; var parentId = options.params[parentKey]; if (parentId === false || !parentKey || !parentDef) { if (parentId === false) { delete options.params[parentKey]; } return endpoint; } else { delete options.params[parentKey]; if (DSUtils.isNumber(id) || DSUtils.isString(id)) { item = def.get(id); } else if (DSUtils.isObject(id)) { item = id; } if (item) { parentId = parentId || item[parentKey] || (item[parentField] ? item[parentField][parentDef.idAttribute] : null); } if (parentId) { delete options.endpoint; var _options = {}; DSUtils.forOwn(options, function (value, key) { _options[key] = value; }); return DSUtils.makePath(parentDef.getEndpoint(parentId, DSUtils._(parentDef, _options)), parentId, endpoint); } else { return endpoint; } } }; // Remove this in v0.11.0 and make a breaking change notice // the the `filter` option has been renamed to `defaultFilter` if (def.filter) { def.defaultFilter = def.filter; delete def.filter; } // Create the wrapper class for the new resource def['class'] = DSUtils.pascalCase(definition.name); try { eval('function ' + def['class'] + '() {}'); def[def['class']] = eval(def['class']); } catch (e) { def[def['class']] = function () { }; } // Apply developer-defined methods if (def.methods) { DSUtils.deepMixIn(def[def['class']].prototype, def.methods); } def[def['class']].prototype.set = function (key, value) { DSUtils.set(this, key, value); var observer = _this.store[def.name].observers[this[def.idAttribute]]; if (observer && !DSUtils.observe.hasObjectObserve) { observer.deliver(); } else { _this.compute(def.name, this); } return this; }; def[def['class']].prototype.get = function (key) { return DSUtils.get(this, key); }; // Prepare for computed properties if (def.computed) { DSUtils.forOwn(def.computed, function (fn, field) { if (DSUtils.isFunction(fn)) { def.computed[field] = [fn]; fn = def.computed[field]; } if (def.methods && field in def.methods) { def.errorFn('Computed property "' + field + '" conflicts with previously defined prototype method!'); } var deps; if (fn.length === 1) { var match = fn[0].toString().match(/function.*?\(([\s\S]*?)\)/); deps = match[1].split(','); def.computed[field] = deps.concat(fn); fn = def.computed[field]; if (deps.length) { def.errorFn('Use the computed property array syntax for compatibility with minified code!'); } } deps = fn.slice(0, fn.length - 1); DSUtils.forEach(deps, function (val, index) { deps[index] = val.trim(); }); fn.deps = DSUtils.filter(deps, function (dep) { return !!dep; }); }); } if (definition.schema && _this.schemator) { def.schema = _this.schemator.defineSchema(def.name, definition.schema); if (!definition.hasOwnProperty('validate')) { def.validate = function (resourceName, attrs, cb) { def.schema.validate(attrs, { ignoreMissing: def.ignoreMissing }, function (err) { if (err) { return cb(err); } else { return cb(null, attrs); } }); }; } } DSUtils.forEach(instanceMethods, function (name) { def[def['class']].prototype['DS' + DSUtils.pascalCase(name)] = function () { var args = Array.prototype.slice.call(arguments); args.unshift(this[def.idAttribute] || this); args.unshift(def.name); return _this[name].apply(_this, args); }; }); def[def['class']].prototype.DSCreate = function () { var args = Array.prototype.slice.call(arguments); args.unshift(this); args.unshift(def.name); return _this.create.apply(_this, args); }; // Initialize store data for the new resource _this.store[def.name] = { collection: [], expiresHeap: new DSUtils.DSBinaryHeap(function (x) { return x.expires; }, function (x, y) { return x.item === y; }), completedQueries: {}, queryData: {}, pendingQueries: {}, index: {}, modified: {}, saved: {}, previousAttributes: {}, observers: {}, changeHistories: {}, changeHistory: [], collectionModified: 0 }; if (def.reapInterval) { setInterval(function () { _this.reap(def.name, { isInterval: true }); }, def.reapInterval); } // Proxy DS methods with shorthand ones for (var key in _this) { if (typeof _this[key] === 'function' && key !== 'defineResource') { (function (k) { def[k] = function () { var args = Array.prototype.slice.call(arguments); args.unshift(def.name); return _this[k].apply(_this, args); }; })(key); } } def.beforeValidate = DSUtils.promisify(def.beforeValidate); def.validate = DSUtils.promisify(def.validate); def.afterValidate = DSUtils.promisify(def.afterValidate); def.beforeCreate = DSUtils.promisify(def.beforeCreate); def.afterCreate = DSUtils.promisify(def.afterCreate); def.beforeUpdate = DSUtils.promisify(def.beforeUpdate); def.afterUpdate = DSUtils.promisify(def.afterUpdate); def.beforeDestroy = DSUtils.promisify(def.beforeDestroy); def.afterDestroy = DSUtils.promisify(def.afterDestroy); DSUtils.forOwn(def.actions, function addAction(action, name) { if (def[name]) { throw new Error('Cannot override existing method "' + name + '"!'); } def[name] = function (options) { options = options || {}; var adapter = _this.getAdapter(action.adapter || 'http'); var config = DSUtils.deepMixIn({}, action); if (!options.hasOwnProperty('endpoint') && config.endpoint) { options.endpoint = config.endpoint; } if (typeof options.getEndpoint === 'function') { config.url = options.getEndpoint(def, options); } else { config.url = DSUtils.makePath(options.basePath || adapter.defaults.basePath || def.basePath, def.getEndpoint(null, options), name); } config.method = config.method || 'GET'; DSUtils.deepMixIn(config, options); return adapter.HTTP(config); }; }); // Mix-in events DSUtils.Events(def); def.logFn('Done preparing resource.'); return def; } catch (err) { delete definitions[definition.name]; delete _this.store[definition.name]; throw err; } } module.exports = defineResource; },{"../../errors":48,"../../utils":50}],39:[function(require,module,exports){ var DSUtils = require('../../utils'); var DSErrors = require('../../errors'); function eject(resourceName, id, options) { var _this = this; var definition = _this.definitions[resourceName]; var resource = _this.store[resourceName]; var item; var found = false; id = DSUtils.resolveId(definition, id); if (!definition) { throw new DSErrors.NER(resourceName); } else if (!DSUtils.isString(id) && !DSUtils.isNumber(id)) { throw new DSErrors.IA('"id" must be a string or a number!'); } options = DSUtils._(definition, options); options.logFn('eject', id, options); for (var i = 0; i < resource.collection.length; i++) { if (resource.collection[i][definition.idAttribute] == id) { item = resource.collection[i]; resource.expiresHeap.remove(item); found = true; break; } } if (found) { if (options.notify) { definition.beforeEject(options, item); _this.emit(options, 'beforeEject', DSUtils.copy(item)); } _this.unlinkInverse(definition.name, id); resource.collection.splice(i, 1); if (DSUtils.w) { resource.observers[id].close(); } delete resource.observers[id]; delete resource.index[id]; delete resource.previousAttributes[id]; delete resource.completedQueries[id]; delete resource.pendingQueries[id]; DSUtils.forEach(resource.changeHistories[id], function (changeRecord) { DSUtils.remove(resource.changeHistory, changeRecord); }); DSUtils.forOwn(resource.queryData, function (items) { if (items.$$injected) { DSUtils.remove(items, item); } }); delete resource.changeHistories[id]; delete resource.modified[id]; delete resource.saved[id]; resource.collectionModified = DSUtils.updateTimestamp(resource.collectionModified); if (options.notify) { definition.afterEject(options, item); _this.emit(options, 'afterEject', DSUtils.copy(item)); } return item; } } module.exports = eject; },{"../../errors":48,"../../utils":50}],40:[function(require,module,exports){ var DSUtils = require('../../utils'); var DSErrors = require('../../errors'); function ejectAll(resourceName, params, options) { var _this = this; var definition = _this.definitions[resourceName]; params = params || {}; if (!definition) { throw new DSErrors.NER(resourceName); } else if (!DSUtils.isObject(params)) { throw new DSErrors.IA('"params" must be an object!'); } definition.logFn('ejectAll', params, options); var resource = _this.store[resourceName]; if (DSUtils.isEmpty(params)) { resource.completedQueries = {}; } var queryHash = DSUtils.toJson(params); var items = _this.filter(definition.name, params); var ids = []; DSUtils.forEach(items, function (item) { if (item && item[definition.idAttribute]) { ids.push(item[definition.idAttribute]); } }); DSUtils.forEach(ids, function (id) { _this.eject(definition.name, id, options); }); delete resource.completedQueries[queryHash]; resource.collectionModified = DSUtils.updateTimestamp(resource.collectionModified); return items; } module.exports = ejectAll; },{"../../errors":48,"../../utils":50}],41:[function(require,module,exports){ var DSUtils = require('../../utils'); var DSErrors = require('../../errors'); function filter(resourceName, params, options) { var _this = this; var definition = _this.definitions[resourceName]; var resource = _this.store[resourceName]; if (!definition) { throw new DSErrors.NER(resourceName); } else if (params && !DSUtils.isObject(params)) { throw new DSErrors.IA('"params" must be an object!'); } options = DSUtils._(definition, options); options.logFn('filter', params, options); // Protect against null params = params || {}; var queryHash = DSUtils.toJson(params); if (!(queryHash in resource.completedQueries) && options.loadFromServer) { // This particular query has never been completed if (!resource.pendingQueries[queryHash]) { // This particular query has never even been started _this.findAll(resourceName, params, options); } } return definition.defaultFilter.call(_this, resource.collection, resourceName, params, options); } module.exports = filter; },{"../../errors":48,"../../utils":50}],42:[function(require,module,exports){ var DSUtils = require('../../utils'); var DSErrors = require('../../errors'); var NER = DSErrors.NER; var IA = DSErrors.IA; var R = DSErrors.R; function changes(resourceName, id, options) { var _this = this; var definition = _this.definitions[resourceName]; options = options || {}; id = DSUtils.resolveId(definition, id); if (!definition) { throw new NER(resourceName); } else if (!DSUtils.isString(id) && !DSUtils.isNumber(id)) { throw new IA('"id" must be a string or a number!'); } options = DSUtils._(definition, options); options.logFn('changes', id, options); var item = _this.get(resourceName, id); if (item) { if (DSUtils.w) { _this.store[resourceName].observers[id].deliver(); } var diff = DSUtils.diffObjectFromOldObject(item, _this.store[resourceName].previousAttributes[id], DSUtils.equals, options.ignoredChanges); DSUtils.forOwn(diff, function (changeset, name) { var toKeep = []; DSUtils.forOwn(changeset, function (value, field) { if (!DSUtils.isFunction(value)) { toKeep.push(field); } }); diff[name] = DSUtils.pick(diff[name], toKeep); }); DSUtils.forEach(definition.relationFields, function (field) { delete diff.added[field]; delete diff.removed[field]; delete diff.changed[field]; }); return diff; } } function changeHistory(resourceName, id) { var _this = this; var definition = _this.definitions[resourceName]; var resource = _this.store[resourceName]; id = DSUtils.resolveId(definition, id); if (resourceName && !_this.definitions[resourceName]) { throw new NER(resourceName); } else if (id && !DSUtils.isString(id) && !DSUtils.isNumber(id)) { throw new IA('"id" must be a string or a number!'); } definition.logFn('changeHistory', id); if (!definition.keepChangeHistory) { definition.errorFn('changeHistory is disabled for this resource!'); } else { if (resourceName) { var item = _this.get(resourceName, id); if (item) { return resource.changeHistories[id]; } } else { return resource.changeHistory; } } } function compute(resourceName, instance) { var _this = this; var definition = _this.definitions[resourceName]; instance = DSUtils.resolveItem(_this.store[resourceName], instance); if (!definition) { throw new NER(resourceName); } else if (!instance) { throw new R('Item not in the store!'); } else if (!DSUtils.isObject(instance) && !DSUtils.isString(instance) && !DSUtils.isNumber(instance)) { throw new IA('"instance" must be an object, string or number!'); } definition.logFn('compute', instance); DSUtils.forOwn(definition.computed, function (fn, field) { DSUtils.compute.call(instance, fn, field); }); return instance; } function createInstance(resourceName, attrs, options) { var definition = this.definitions[resourceName]; var item; attrs = attrs || {}; if (!definition) { throw new NER(resourceName); } else if (attrs && !DSUtils.isObject(attrs)) { throw new IA('"attrs" must be an object!'); } options = DSUtils._(definition, options); options.logFn('createInstance', attrs, options); if (options.notify) { options.beforeCreateInstance(options, attrs); } if (options.useClass) { var Constructor = definition[definition.class]; item = new Constructor(); } else { item = {}; } DSUtils.deepMixIn(item, attrs); if (options.notify) { options.afterCreateInstance(options, attrs); } return item; } function diffIsEmpty(diff) { return !(DSUtils.isEmpty(diff.added) && DSUtils.isEmpty(diff.removed) && DSUtils.isEmpty(diff.changed)); } function digest() { this.observe.Platform.performMicrotaskCheckpoint(); } function get(resourceName, id, options) { var _this = this; var definition = _this.definitions[resourceName]; if (!definition) { throw new NER(resourceName); } else if (!DSUtils.isString(id) && !DSUtils.isNumber(id)) { throw new IA('"id" must be a string or a number!'); } options = DSUtils._(definition, options); options.logFn('get', id, options); // cache miss, request resource from server var item = _this.store[resourceName].index[id]; if (!item && options.loadFromServer) { _this.find(resourceName, id, options); } // return resource from cache return item; } function getAll(resourceName, ids) { var _this = this; var definition = _this.definitions[resourceName]; var resource = _this.store[resourceName]; var collection = []; if (!definition) { throw new NER(resourceName); } else if (ids && !DSUtils.isArray(ids)) { throw new IA('"ids" must be an array!'); } definition.logFn('getAll', ids); if (DSUtils.isArray(ids)) { var length = ids.length; for (var i = 0; i < length; i++) { if (resource.index[ids[i]]) { collection.push(resource.index[ids[i]]); } } } else { collection = resource.collection.slice(); } return collection; } function hasChanges(resourceName, id) { var _this = this; var definition = _this.definitions[resourceName]; id = DSUtils.resolveId(definition, id); if (!definition) { throw new NER(resourceName); } else if (!DSUtils.isString(id) && !DSUtils.isNumber(id)) { throw new IA('"id" must be a string or a number!'); } definition.logFn('hasChanges', id); // return resource from cache if (_this.get(resourceName, id)) { return diffIsEmpty(_this.changes(resourceName, id)); } else { return false; } } function lastModified(resourceName, id) { var definition = this.definitions[resourceName]; var resource = this.store[resourceName]; id = DSUtils.resolveId(definition, id); if (!definition) { throw new NER(resourceName); } definition.logFn('lastModified', id); if (id) { if (!(id in resource.modified)) { resource.modified[id] = 0; } return resource.modified[id]; } return resource.collectionModified; } function lastSaved(resourceName, id) { var definition = this.definitions[resourceName]; var resource = this.store[resourceName]; id = DSUtils.resolveId(definition, id); if (!definition) { throw new NER(resourceName); } definition.logFn('lastSaved', id); if (!(id in resource.saved)) { resource.saved[id] = 0; } return resource.saved[id]; } function previous(resourceName, id) { var _this = this; var definition = _this.definitions[resourceName]; var resource = _this.store[resourceName]; id = DSUtils.resolveId(definition, id); if (!definition) { throw new NER(resourceName); } else if (!DSUtils.isString(id) && !DSUtils.isNumber(id)) { throw new IA('"id" must be a string or a number!'); } definition.logFn('previous', id); // return resource from cache return resource.previousAttributes[id] ? DSUtils.copy(resource.previousAttributes[id]) : undefined; } module.exports = { changes: changes, changeHistory: changeHistory, compute: compute, createInstance: createInstance, defineResource: require('./defineResource'), digest: digest, eject: require('./eject'), ejectAll: require('./ejectAll'), filter: require('./filter'), get: get, getAll: getAll, hasChanges: hasChanges, inject: require('./inject'), lastModified: lastModified, lastSaved: lastSaved, link: require('./link'), linkAll: require('./linkAll'), linkInverse: require('./linkInverse'), previous: previous, unlinkInverse: require('./unlinkInverse') }; },{"../../errors":48,"../../utils":50,"./defineResource":38,"./eject":39,"./ejectAll":40,"./filter":41,"./inject":43,"./link":44,"./linkAll":45,"./linkInverse":46,"./unlinkInverse":47}],43:[function(require,module,exports){ var DSUtils = require('../../utils'); var DSErrors = require('../../errors'); function _getReactFunction(DS, definition, resource) { var name = definition.name; return function _react(added, removed, changed, oldValueFn, firstTime) { var target = this; var item; var innerId = (oldValueFn && oldValueFn(definition.idAttribute)) ? oldValueFn(definition.idAttribute) : target[definition.idAttribute]; DSUtils.forEach(definition.relationFields, function (field) { delete added[field]; delete removed[field]; delete changed[field]; }); if (!DSUtils.isEmpty(added) || !DSUtils.isEmpty(removed) || !DSUtils.isEmpty(changed) || firstTime) { item = DS.get(name, innerId); resource.modified[innerId] = DSUtils.updateTimestamp(resource.modified[innerId]); resource.collectionModified = DSUtils.updateTimestamp(resource.collectionModified); if (definition.keepChangeHistory) { var changeRecord = { resourceName: name, target: item, added: added, removed: removed, changed: changed, timestamp: resource.modified[innerId] }; resource.changeHistories[innerId].push(changeRecord); resource.changeHistory.push(changeRecord); } } if (definition.computed) { item = item || DS.get(name, innerId); DSUtils.forOwn(definition.computed, function (fn, field) { var compute = false; // check if required fields changed DSUtils.forEach(fn.deps, function (dep) { if (dep in added || dep in removed || dep in changed || !(field in item)) { compute = true; } }); compute = compute || !fn.deps.length; if (compute) { DSUtils.compute.call(item, fn, field); } }); } if (definition.relations) { item = item || DS.get(name, innerId); DSUtils.forEach(definition.relationList, function (def) { if (item[def.localField] && (def.localKey in added || def.localKey in removed || def.localKey in changed)) { DS.link(name, item[definition.idAttribute], [def.relation]); } }); } if (definition.idAttribute in changed) { definition.errorFn('Doh! You just changed the primary key of an object! Your data for the "' + name + '" resource is now in an undefined (probably broken) state.'); } }; } function _inject(definition, resource, attrs, options) { var _this = this; var _react = _getReactFunction(_this, definition, resource, attrs, options); var injected; if (DSUtils.isArray(attrs)) { injected = []; for (var i = 0; i < attrs.length; i++) { injected.push(_inject.call(_this, definition, resource, attrs[i], options)); } } else { // check if "idAttribute" is a computed property var c = definition.computed; var idA = definition.idAttribute; if (c && c[idA]) { var args = []; DSUtils.forEach(c[idA].deps, function (dep) { args.push(attrs[dep]); }); attrs[idA] = c[idA][c[idA].length - 1].apply(attrs, args); } if (!(idA in attrs)) { var error = new DSErrors.R(definition.name + '.inject: "attrs" must contain the property specified by `idAttribute`!'); options.errorFn(error); throw error; } else { try { DSUtils.forEach(definition.relationList, function (def) { var relationName = def.relation; var relationDef = _this.definitions[relationName]; var toInject = attrs[def.localField]; if (toInject) { if (!relationDef) { throw new DSErrors.R(definition.name + ' relation is defined but the resource is not!'); } if (DSUtils.isArray(toInject)) { var items = []; DSUtils.forEach(toInject, function (toInjectItem) { if (toInjectItem !== _this.store[relationName][toInjectItem[relationDef.idAttribute]]) { try { var injectedItem = _this.inject(relationName, toInjectItem, options); if (def.foreignKey) { injectedItem[def.foreignKey] = attrs[definition.idAttribute]; } items.push(injectedItem); } catch (err) { options.errorFn(err, 'Failed to inject ' + def.type + ' relation: "' + relationName + '"!'); } } }); attrs[def.localField] = items; } else { if (toInject !== _this.store[relationName][toInject[relationDef.idAttribute]]) { try { attrs[def.localField] = _this.inject(relationName, attrs[def.localField], options); if (def.foreignKey) { attrs[def.localField][def.foreignKey] = attrs[definition.idAttribute]; } } catch (err) { options.errorFn(err, 'Failed to inject ' + def.type + ' relation: "' + relationName + '"!'); } } } } }); var id = attrs[idA]; var item = _this.get(definition.name, id); var initialLastModified = item ? resource.modified[id] : 0; if (!item) { if (options.useClass) { if (attrs instanceof definition[definition['class']]) { item = attrs; } else { item = new definition[definition['class']](); } } else { item = {}; } resource.previousAttributes[id] = DSUtils.copy(attrs); DSUtils.deepMixIn(item, attrs); resource.collection.push(item); resource.changeHistories[id] = []; if (DSUtils.w) { resource.observers[id] = new _this.observe.ObjectObserver(item); resource.observers[id].open(_react, item); } resource.index[id] = item; _react.call(item, {}, {}, {}, null, true); } else { DSUtils.deepMixIn(item, attrs); if (definition.resetHistoryOnInject) { resource.previousAttributes[id] = {}; DSUtils.deepMixIn(resource.previousAttributes[id], attrs); if (resource.changeHistories[id].length) { DSUtils.forEach(resource.changeHistories[id], function (changeRecord) { DSUtils.remove(resource.changeHistory, changeRecord); }); resource.changeHistories[id].splice(0, resource.changeHistories[id].length); } } if (DSUtils.w) { resource.observers[id].deliver(); } } resource.saved[id] = DSUtils.updateTimestamp(resource.saved[id]); resource.modified[id] = initialLastModified && resource.modified[id] === initialLastModified ? DSUtils.updateTimestamp(resource.modified[id]) : resource.modified[id]; resource.expiresHeap.remove(item); resource.expiresHeap.push({ item: item, timestamp: resource.saved[id], expires: definition.maxAge ? resource.saved[id] + definition.maxAge : Number.MAX_VALUE }); injected = item; } catch (err) { options.errorFn(err, attrs); } } } return injected; } function _link(definition, injected, options) { var _this = this; DSUtils.forEach(definition.relationList, function (def) { if (options.findBelongsTo && def.type === 'belongsTo' && injected[definition.idAttribute]) { _this.link(definition.name, injected[definition.idAttribute], [def.relation]); } else if ((options.findHasMany && def.type === 'hasMany') || (options.findHasOne && def.type === 'hasOne')) { _this.link(definition.name, injected[definition.idAttribute], [def.relation]); } }); } function inject(resourceName, attrs, options) { var _this = this; var definition = _this.definitions[resourceName]; var resource = _this.store[resourceName]; var injected; if (!definition) { throw new DSErrors.NER(resourceName); } else if (!DSUtils.isObject(attrs) && !DSUtils.isArray(attrs)) { throw new DSErrors.IA(resourceName + '.inject: "attrs" must be an object or an array!'); } var name = definition.name; options = DSUtils._(definition, options); options.logFn('inject', attrs, options); if (options.notify) { options.beforeInject(options, attrs); _this.emit(options, 'beforeInject', DSUtils.copy(attrs)); } injected = _inject.call(_this, definition, resource, attrs, options); resource.collectionModified = DSUtils.updateTimestamp(resource.collectionModified); if (options.findInverseLinks) { if (DSUtils.isArray(injected)) { if (injected.length) { _this.linkInverse(name, injected[0][definition.idAttribute]); } } else { _this.linkInverse(name, injected[definition.idAttribute]); } } if (DSUtils.isArray(injected)) { DSUtils.forEach(injected, function (injectedI) { _link.call(_this, definition, injectedI, options); }); } else { _link.call(_this, definition, injected, options); } if (options.notify) { options.afterInject(options, injected); _this.emit(options, 'afterInject', DSUtils.copy(injected)); } return injected; } module.exports = inject; },{"../../errors":48,"../../utils":50}],44:[function(require,module,exports){ var DSUtils = require('../../utils'); var DSErrors = require('../../errors'); function link(resourceName, id, relations) { var _this = this; var definition = _this.definitions[resourceName]; relations = relations || []; id = DSUtils.resolveId(definition, id); if (!definition) { throw new DSErrors.NER(resourceName); } else if (!DSUtils.isString(id) && !DSUtils.isNumber(id)) { throw new DSErrors.IA('"id" must be a string or a number!'); } else if (!DSUtils.isArray(relations)) { throw new DSErrors.IA('"relations" must be an array!'); } definition.logFn('link', id, relations); var linked = _this.get(resourceName, id); if (linked) { DSUtils.forEach(definition.relationList, function (def) { var relationName = def.relation; if (relations.length && !DSUtils.contains(relations, relationName)) { return; } var params = {}; if (def.type === 'belongsTo') { var parent = linked[def.localKey] ? _this.get(relationName, linked[def.localKey]) : null; if (parent) { linked[def.localField] = parent; } } else if (def.type === 'hasMany') { params[def.foreignKey] = linked[definition.idAttribute]; linked[def.localField] = _this.defaults.constructor.prototype.defaultFilter.call(_this, _this.store[relationName].collection, relationName, params, { allowSimpleWhere: true }); } else if (def.type === 'hasOne') { params[def.foreignKey] = linked[definition.idAttribute]; var children = _this.defaults.constructor.prototype.defaultFilter.call(_this, _this.store[relationName].collection, relationName, params, { allowSimpleWhere: true }); if (children.length) { linked[def.localField] = children[0]; } } }); } return linked; } module.exports = link; },{"../../errors":48,"../../utils":50}],45:[function(require,module,exports){ var DSUtils = require('../../utils'); var DSErrors = require('../../errors'); function linkAll(resourceName, params, relations) { var _this = this; var definition = _this.definitions[resourceName]; relations = relations || []; if (!definition) { throw new DSErrors.NER(resourceName); } else if (!DSUtils.isArray(relations)) { throw new DSErrors.IA('"relations" must be an array!'); } definition.logFn('linkAll', params, relations); var linked = _this.filter(resourceName, params); if (linked) { DSUtils.forEach(definition.relationList, function (def) { var relationName = def.relation; if (relations.length && !DSUtils.contains(relations, relationName)) { return; } if (def.type === 'belongsTo') { DSUtils.forEach(linked, function (injectedItem) { var parent = injectedItem[def.localKey] ? _this.get(relationName, injectedItem[def.localKey]) : null; if (parent) { injectedItem[def.localField] = parent; } }); } else if (def.type === 'hasMany') { DSUtils.forEach(linked, function (injectedItem) { var params = {}; params[def.foreignKey] = injectedItem[definition.idAttribute]; injectedItem[def.localField] = _this.defaults.constructor.prototype.defaultFilter.call(_this, _this.store[relationName].collection, relationName, params, { allowSimpleWhere: true }); }); } else if (def.type === 'hasOne') { DSUtils.forEach(linked, function (injectedItem) { var params = {}; params[def.foreignKey] = injectedItem[definition.idAttribute]; var children = _this.defaults.constructor.prototype.defaultFilter.call(_this, _this.store[relationName].collection, relationName, params, { allowSimpleWhere: true }); if (children.length) { injectedItem[def.localField] = children[0]; } }); } }); } return linked; } module.exports = linkAll; },{"../../errors":48,"../../utils":50}],46:[function(require,module,exports){ var DSUtils = require('../../utils'); var DSErrors = require('../../errors'); function linkInverse(resourceName, id, relations) { var _this = this; var definition = _this.definitions[resourceName]; relations = relations || []; id = DSUtils.resolveId(definition, id); if (!definition) { throw new DSErrors.NER(resourceName); } else if (!DSUtils.isString(id) && !DSUtils.isNumber(id)) { throw new DSErrors.IA('"id" must be a string or a number!'); } else if (!DSUtils.isArray(relations)) { throw new DSErrors.IA('"relations" must be an array!'); } definition.logFn('linkInverse', id, relations); var linked = _this.get(resourceName, id); if (linked) { DSUtils.forOwn(_this.definitions, function (d) { DSUtils.forOwn(d.relations, function (relatedModels) { DSUtils.forOwn(relatedModels, function (defs, relationName) { if (relations.length && !DSUtils.contains(relations, d.name)) { return; } if (definition.name === relationName) { _this.linkAll(d.name, {}, [definition.name]); } }); }); }); } return linked; } module.exports = linkInverse; },{"../../errors":48,"../../utils":50}],47:[function(require,module,exports){ var DSUtils = require('../../utils'); var DSErrors = require('../../errors'); function unlinkInverse(resourceName, id, relations) { var _this = this; var definition = _this.definitions[resourceName]; relations = relations || []; id = DSUtils.resolveId(definition, id); if (!definition) { throw new DSErrors.NER(resourceName); } else if (!DSUtils.isString(id) && !DSUtils.isNumber(id)) { throw new DSErrors.IA('"id" must be a string or a number!'); } else if (!DSUtils.isArray(relations)) { throw new DSErrors.IA('"relations" must be an array!'); } definition.logFn('unlinkInverse', id, relations); var linked = _this.get(resourceName, id); if (linked) { DSUtils.forOwn(_this.definitions, function (d) { DSUtils.forOwn(d.relations, function (relatedModels) { DSUtils.forOwn(relatedModels, function (defs, relationName) { if (definition.name === relationName) { DSUtils.forEach(defs, function (def) { DSUtils.forEach(_this.store[def.name].collection, function (item) { if (def.type === 'hasMany' && item[def.localField]) { var index; DSUtils.forEach(item[def.localField], function (subItem, i) { if (subItem === linked) { index = i; } }); item[def.localField].splice(index, 1); } else if (item[def.localField] === linked) { delete item[def.localField]; } }); }); } }); }); }); } return linked; } module.exports = unlinkInverse; },{"../../errors":48,"../../utils":50}],48:[function(require,module,exports){ function IllegalArgumentError(message) { Error.call(this); if (typeof Error.captureStackTrace === 'function') { Error.captureStackTrace(this, this.constructor); } this.type = this.constructor.name; this.message = message || 'Illegal Argument!'; } IllegalArgumentError.prototype = new Error(); IllegalArgumentError.prototype.constructor = IllegalArgumentError; function RuntimeError(message) { Error.call(this); if (typeof Error.captureStackTrace === 'function') { Error.captureStackTrace(this, this.constructor); } this.type = this.constructor.name; this.message = message || 'RuntimeError Error!'; } RuntimeError.prototype = new Error(); RuntimeError.prototype.constructor = RuntimeError; function NonexistentResourceError(resourceName) { Error.call(this); if (typeof Error.captureStackTrace === 'function') { Error.captureStackTrace(this, this.constructor); } this.type = this.constructor.name; this.message = (resourceName || '') + ' is not a registered resource!'; } NonexistentResourceError.prototype = new Error(); NonexistentResourceError.prototype.constructor = NonexistentResourceError; module.exports = { IllegalArgumentError: IllegalArgumentError, IA: IllegalArgumentError, RuntimeError: RuntimeError, R: RuntimeError, NonexistentResourceError: NonexistentResourceError, NER: NonexistentResourceError }; },{}],49:[function(require,module,exports){ var DS = require('./datastore'); module.exports = { DS: DS, createStore: function (options) { return new DS(options); }, DSUtils: require('./utils'), DSErrors: require('./errors'), version: { full: '1.2.0', major: parseInt('1', 10), minor: parseInt('2', 10), patch: parseInt('0', 10), alpha: 'false' !== 'false' ? 'false' : false, beta: 'false' !== 'false' ? 'false' : false } }; },{"./datastore":37,"./errors":48,"./utils":50}],50:[function(require,module,exports){ /* jshint -W041 */ var w, _Promise; var objectProto = Object.prototype; var toString = objectProto.toString; var DSErrors = require('./errors'); var forEach = require('mout/array/forEach'); var slice = require('mout/array/slice'); var forOwn = require('mout/object/forOwn'); var observe = require('../lib/observe-js/observe-js'); var es6Promise = require('es6-promise'); es6Promise.polyfill(); var isArray = Array.isArray || function isArray(value) { return toString.call(value) == '[object Array]' || false; }; function isRegExp(value) { return toString.call(value) == '[object RegExp]' || false; } // adapted from lodash.isBoolean function isBoolean(value) { return (value === true || value === false || value && typeof value == 'object' && toString.call(value) == '[object Boolean]') || false; } // adapted from lodash.isString function isString(value) { return typeof value == 'string' || (value && typeof value == 'object' && toString.call(value) == '[object String]') || false; } function isObject(value) { return toString.call(value) == '[object Object]' || false; } // adapted from lodash.isDate function isDate(value) { return (value && typeof value == 'object' && toString.call(value) == '[object Date]') || false; } // adapted from lodash.isNumber function isNumber(value) { var type = typeof value; return type == 'number' || (value && type == 'object' && toString.call(value) == '[object Number]') || false; } // adapted from lodash.isFunction function isFunction(value) { return typeof value == 'function' || (value && toString.call(value) === '[object Function]') || false; } // adapted from mout.isEmpty function isEmpty(val) { if (val == null) { // typeof null == 'object' so we check it first return true; } else if (typeof val === 'string' || isArray(val)) { return !val.length; } else if (typeof val === 'object') { var result = true; forOwn(val, function () { result = false; return false; // break loop }); return result; } else { return true; } } function intersection(array1, array2) { if (!array1 || !array2) { return []; } var result = []; var item; for (var i = 0, length = array1.length; i < length; i++) { item = array1[i]; if (DSUtils.contains(result, item)) { continue; } if (DSUtils.contains(array2, item)) { result.push(item); } } return result; } function filter(array, cb, thisObj) { var results = []; forEach(array, function (value, key, arr) { if (cb(value, key, arr)) { results.push(value); } }, thisObj); return results; } function finallyPolyfill(cb) { var constructor = this.constructor; return this.then(function (value) { return constructor.resolve(cb()).then(function () { return value; }); }, function (reason) { return constructor.resolve(cb()).then(function () { throw reason; }); }); } try { w = window; if (!w.Promise.prototype['finally']) { w.Promise.prototype['finally'] = finallyPolyfill; } _Promise = w.Promise; w = {}; } catch (e) { w = null; _Promise = require('bluebird'); } function updateTimestamp(timestamp) { var newTimestamp = typeof Date.now === 'function' ? Date.now() : new Date().getTime(); if (timestamp && newTimestamp <= timestamp) { return timestamp + 1; } else { return newTimestamp; } } function Events(target) { var events = {}; target = target || this; target.on = function (type, func, ctx) { events[type] = events[type] || []; events[type].push({ f: func, c: ctx }); }; target.off = function (type, func) { var listeners = events[type]; if (!listeners) { events = {}; } else if (func) { for (var i = 0; i < listeners.length; i++) { if (listeners[i] === func) { listeners.splice(i, 1); break; } } } else { listeners.splice(0, listeners.length); } }; target.emit = function () { var args = Array.prototype.slice.call(arguments); var listeners = events[args.shift()] || []; if (listeners) { for (var i = 0; i < listeners.length; i++) { listeners[i].f.apply(listeners[i].c, args); } } }; } /** * @method bubbleUp * @param {array} heap The heap. * @param {function} weightFunc The weight function. * @param {number} n The index of the element to bubble up. */ function bubbleUp(heap, weightFunc, n) { var element = heap[n]; var weight = weightFunc(element); // When at 0, an element can not go up any further. while (n > 0) { // Compute the parent element's index, and fetch it. var parentN = Math.floor((n + 1) / 2) - 1; var parent = heap[parentN]; // If the parent has a lesser weight, things are in order and we // are done. if (weight >= weightFunc(parent)) { break; } else { heap[parentN] = element; heap[n] = parent; n = parentN; } } } /** * @method bubbleDown * @param {array} heap The heap. * @param {function} weightFunc The weight function. * @param {number} n The index of the element to sink down. */ function bubbleDown(heap, weightFunc, n) { var length = heap.length; var node = heap[n]; var nodeWeight = weightFunc(node); while (true) { var child2N = (n + 1) * 2, child1N = child2N - 1; var swap = null; if (child1N < length) { var child1 = heap[child1N], child1Weight = weightFunc(child1); // If the score is less than our node's, we need to swap. if (child1Weight < nodeWeight) { swap = child1N; } } // Do the same checks for the other child. if (child2N < length) { var child2 = heap[child2N], child2Weight = weightFunc(child2); if (child2Weight < (swap === null ? nodeWeight : weightFunc(heap[child1N]))) { swap = child2N; } } if (swap === null) { break; } else { heap[n] = heap[swap]; heap[swap] = node; n = swap; } } } function DSBinaryHeap(weightFunc, compareFunc) { if (weightFunc && !isFunction(weightFunc)) { throw new Error('DSBinaryHeap(weightFunc): weightFunc: must be a function!'); } weightFunc = weightFunc || function (x) { return x; }; compareFunc = compareFunc || function (x, y) { return x === y; }; this.weightFunc = weightFunc; this.compareFunc = compareFunc; this.heap = []; } var dsp = DSBinaryHeap.prototype; dsp.push = function (node) { this.heap.push(node); bubbleUp(this.heap, this.weightFunc, this.heap.length - 1); }; dsp.peek = function () { return this.heap[0]; }; dsp.pop = function () { var front = this.heap[0], end = this.heap.pop(); if (this.heap.length > 0) { this.heap[0] = end; bubbleDown(this.heap, this.weightFunc, 0); } return front; }; dsp.remove = function (node) { var length = this.heap.length; for (var i = 0; i < length; i++) { if (this.compareFunc(this.heap[i], node)) { var removed = this.heap[i]; var end = this.heap.pop(); if (i !== length - 1) { this.heap[i] = end; bubbleUp(this.heap, this.weightFunc, i); bubbleDown(this.heap, this.weightFunc, i); } return removed; } } return null; }; dsp.removeAll = function () { this.heap = []; }; dsp.size = function () { return this.heap.length; }; var toPromisify = [ 'beforeValidate', 'validate', 'afterValidate', 'beforeCreate', 'afterCreate', 'beforeUpdate', 'afterUpdate', 'beforeDestroy', 'afterDestroy' ]; // adapted from angular.copy function copy(source, destination, stackSource, stackDest) { if (!destination) { destination = source; if (source) { if (isArray(source)) { destination = copy(source, [], stackSource, stackDest); } else if (isDate(source)) { destination = new Date(source.getTime()); } else if (isRegExp(source)) { destination = new RegExp(source.source, source.toString().match(/[^\/]*$/)[0]); destination.lastIndex = source.lastIndex; } else if (isObject(source)) { var emptyObject = Object.create(Object.getPrototypeOf(source)); destination = copy(source, emptyObject, stackSource, stackDest); } } } else { if (source === destination) { throw new Error('Cannot copy! Source and destination are identical.'); } stackSource = stackSource || []; stackDest = stackDest || []; if (isObject(source)) { var index = stackSource.indexOf(source); if (index !== -1) return stackDest[index]; stackSource.push(source); stackDest.push(destination); } var result; if (isArray(source)) { destination.length = 0; for (var i = 0; i < source.length; i++) { result = copy(source[i], null, stackSource, stackDest); if (isObject(source[i])) { stackSource.push(source[i]); stackDest.push(result); } destination.push(result); } } else { if (isArray(destination)) { destination.length = 0; } else { forEach(destination, function (value, key) { delete destination[key]; }); } for (var key in source) { if (source.hasOwnProperty(key)) { result = copy(source[key], null, stackSource, stackDest); if (isObject(source[key])) { stackSource.push(source[key]); stackDest.push(result); } destination[key] = result; } } } } return destination; } // adapted from angular.equals function equals(o1, o2) { if (o1 === o2) return true; if (o1 === null || o2 === null) return false; if (o1 !== o1 && o2 !== o2) return true; // NaN === NaN var t1 = typeof o1, t2 = typeof o2, length, key, keySet; if (t1 == t2) { if (t1 == 'object') { if (isArray(o1)) { if (!isArray(o2)) return false; if ((length = o1.length) == o2.length) { for (key = 0; key < length; key++) { if (!equals(o1[key], o2[key])) return false; } return true; } } else if (isDate(o1)) { if (!isDate(o2)) return false; return equals(o1.getTime(), o2.getTime()); } else if (isRegExp(o1) && isRegExp(o2)) { return o1.toString() == o2.toString(); } else { if (isArray(o2)) return false; keySet = {}; for (key in o1) { if (key.charAt(0) === '$' || isFunction(o1[key])) continue; if (!equals(o1[key], o2[key])) return false; keySet[key] = true; } for (key in o2) { if (!keySet.hasOwnProperty(key) && key.charAt(0) !== '$' && o2[key] !== undefined && !isFunction(o2[key])) return false; } return true; } } } return false; } function resolveId(definition, idOrInstance) { if (this.isString(idOrInstance) || isNumber(idOrInstance)) { return idOrInstance; } else if (idOrInstance && definition) { return idOrInstance[definition.idAttribute] || idOrInstance; } else { return idOrInstance; } } function resolveItem(resource, idOrInstance) { if (resource && (isString(idOrInstance) || isNumber(idOrInstance))) { return resource.index[idOrInstance] || idOrInstance; } else { return idOrInstance; } } function isValidString(val) { return (val != null && val !== ''); } function join(items, separator) { separator = separator || ''; return filter(items, isValidString).join(separator); } function makePath(var_args) { var result = join(slice(arguments), '/'); return result.replace(/([^:\/]|^)\/{2,}/g, '$1/'); } observe.setEqualityFn(equals); var DSUtils = { // Options that inherit from defaults _: function (parent, options) { var _this = this; options = options || {}; if (options && options.constructor === parent.constructor) { return options; } else if (!isObject(options)) { throw new DSErrors.IA('"options" must be an object!'); } forEach(toPromisify, function (name) { if (typeof options[name] === 'function' && options[name].toString().indexOf('var args = Array') === -1) { options[name] = _this.promisify(options[name]); } }); var O = function Options(attrs) { var self = this; forOwn(attrs, function (value, key) { self[key] = value; }); }; O.prototype = parent; return new O(options); }, compute: function (fn, field) { var _this = this; var args = []; forEach(fn.deps, function (dep) { args.push(_this[dep]); }); // compute property _this[field] = fn[fn.length - 1].apply(_this, args); }, contains: require('mout/array/contains'), copy: copy, deepMixIn: require('mout/object/deepMixIn'), diffObjectFromOldObject: observe.diffObjectFromOldObject, DSBinaryHeap: DSBinaryHeap, equals: equals, Events: Events, filter: filter, forEach: forEach, forOwn: forOwn, fromJson: function (json) { return isString(json) ? JSON.parse(json) : json; }, get: require('mout/object/get'), intersection: intersection, isArray: isArray, isBoolean: isBoolean, isDate: isDate, isEmpty: isEmpty, isFunction: isFunction, isObject: isObject, isNumber: isNumber, isRegExp: isRegExp, isString: isString, makePath: makePath, observe: observe, pascalCase: require('mout/string/pascalCase'), pick: require('mout/object/pick'), Promise: _Promise, promisify: function (fn, target) { var Promise = this.Promise; if (!fn) { return; } else if (typeof fn !== 'function') { throw new Error('Can only promisify functions!'); } return function () { var args = Array.prototype.slice.apply(arguments); return new Promise(function (resolve, reject) { args.push(function (err, result) { if (err) { reject(err); } else { resolve(result); } }); try { var promise = fn.apply(target || this, args); if (promise && promise.then) { promise.then(resolve, reject); } } catch (err) { reject(err); } }); }; }, remove: require('mout/array/remove'), set: require('mout/object/set'), slice: slice, sort: require('mout/array/sort'), toJson: JSON.stringify, updateTimestamp: updateTimestamp, upperCase: require('mout/string/upperCase'), removeCircular: function (object) { var objects = []; return (function rmCirc(value) { var i; var nu; if (typeof value === 'object' && value !== null && !(value instanceof Boolean) && !(value instanceof Date) && !(value instanceof Number) && !(value instanceof RegExp) && !(value instanceof String)) { for (i = 0; i < objects.length; i += 1) { if (objects[i] === value) { return undefined; } } objects.push(value); if (DSUtils.isArray(value)) { nu = []; for (i = 0; i < value.length; i += 1) { nu[i] = rmCirc(value[i]); } } else { nu = {}; forOwn(value, function (v, k) { nu[k] = rmCirc(value[k]); }); } return nu; } return value; }(object)); }, resolveItem: resolveItem, resolveId: resolveId, w: w }; module.exports = DSUtils; },{"../lib/observe-js/observe-js":1,"./errors":48,"bluebird":"bluebird","es6-promise":2,"mout/array/contains":4,"mout/array/forEach":5,"mout/array/remove":7,"mout/array/slice":8,"mout/array/sort":9,"mout/object/deepMixIn":13,"mout/object/forOwn":15,"mout/object/get":16,"mout/object/pick":19,"mout/object/set":20,"mout/string/pascalCase":23,"mout/string/upperCase":26}]},{},[49])(49) });
modules/Lifecycle.js
ustccjw/react-router
import React from 'react' import invariant from 'invariant' const { object } = React.PropTypes /** * The Lifecycle mixin adds the routerWillLeave lifecycle method * to a component that may be used to cancel a transition or prompt * the user for confirmation. * * On standard transitions, routerWillLeave receives a single argument: the * location we're transitioning to. To cancel the transition, return false. * To prompt the user for confirmation, return a prompt message (string). * * routerWillLeave does not receive a location object during the beforeunload * event in web browsers (assuming you're using the useBeforeUnload history * enhancer). In this case, it is not possible for us to know the location * we're transitioning to so routerWillLeave must return a prompt message to * prevent the user from closing the tab. */ const Lifecycle = { propTypes: { // Route components receive the route object as a prop. route: object }, contextTypes: { history: object.isRequired, // Nested children receive the route as context, either // set by the route component using the RouteContext mixin // or by some other ancestor. route: object }, _getRoute() { const route = this.props.route || this.context.route invariant( route, 'The Lifecycle mixin needs to be used either on 1) a <Route component> or ' + '2) a descendant of a <Route component> that uses the RouteContext mixin' ) return route }, componentWillMount() { invariant( this.routerWillLeave, 'The Lifecycle mixin requires you to define a routerWillLeave method' ) this.context.history.registerRouteHook( this._getRoute(), this.routerWillLeave ) }, componentWillUnmount() { this.context.history.unregisterRouteHook( this._getRoute(), this.routerWillLeave ) } } export default Lifecycle
src/PageHeader.js
pivotal-cf/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const PageHeader = React.createClass({ render() { return ( <div {...this.props} className={classNames(this.props.className, 'page-header')}> <h1>{this.props.children}</h1> </div> ); } }); export default PageHeader;
src/globalConfig/index.js
NE-SmallTown/React-QuietWater
/** * v0.0.1 * * Copyright (c) 2017 * * Date: 2017/5/3 by Heaven */ import React from 'react'; import merge from 'lodash/merge'; const configParams = { languageName: 'zh-cn', // Note that this property value must match the file name in the /src/language directory styles: { // 各个部分的皮肤设置,注意要和JSX中的style属性格式一致 quietWater: { }, replyEditor: { }, loadMoreReplyBtn: { backgroundColor: 'rgb(247, 255, 248)' }, replyList: { backgroundColor: 'rgba(255, 255, 255, 0.89)' }, reply: { lineHeight: 1.9, fontSize: '15px', color: '#333333' }, comment: { fontSize: '15px', color: '#333333' }, conversationBox: { // 点击"查看对话"时显示的modal框 top: '30px', fontSize: '15px' }, commentListBox: { // 在未浏览到回复的内容底部时点击"展开评论"时显示的modal框 fontSize: '15px' } }, loading: { commentList: { // eslint-disable-next-line getComponent: () => <img src="data:image/gif;base64,R0lGODlhNgA3APMAAP///2Kb7KzK9XSm7muh7efw/Ja88urx/Nvo+4+48bfR9mKb7GKb7GKb7GKb7GKb7CH5BAkKAAAAIf4aQ3JlYXRlZCB3aXRoIGFqYXhsb2FkLmluZm8AIf8LTkVUU0NBUEUyLjADAQAAACwAAAAANgA3AAAEzBDISau9OOvNu/9gKI5kaZ4lkhBEgqCnws6EApMITb93uOqsRC8EpA1Bxdnx8wMKl51ckXcsGFiGAkamsy0LA9pAe1EFqRbBYCAYXXUGk4DWJhZN4dlAlMSLRW80cSVzM3UgB3ksAwcnamwkB28GjVCWl5iZmpucnZ4cj4eWoRqFLKJHpgSoFIoEe5ausBeyl7UYqqw9uaVrukOkn8LDxMXGx8ibwY6+JLxydCO3JdMg1dJ/Is+E0SPLcs3Jnt/F28XXw+jC5uXh4u89EQAh+QQJCgAAACwAAAAANgA3AAAEzhDISau9OOvNu/9gKI5kaZ5oqhYGQRiFWhaD6w6xLLa2a+iiXg8YEtqIIF7vh/QcarbB4YJIuBKIpuTAM0wtCqNiJBgMBCaE0ZUFCXpoknWdCEFvpfURdCcM8noEIW82cSNzRnWDZoYjamttWhphQmOSHFVXkZecnZ6foKFujJdlZxqELo1AqQSrFH1/TbEZtLM9shetrzK7qKSSpryixMXGx8jJyifCKc1kcMzRIrYl1Xy4J9cfvibdIs/MwMue4cffxtvE6qLoxubk8ScRACH5BAkKAAAALAAAAAA2ADcAAATOEMhJq7046827/2AojmRpnmiqrqwwDAJbCkRNxLI42MSQ6zzfD0Sz4YYfFwyZKxhqhgJJeSQVdraBNFSsVUVPHsEAzJrEtnJNSELXRN2bKcwjw19f0QG7PjA7B2EGfn+FhoeIiYoSCAk1CQiLFQpoChlUQwhuBJEWcXkpjm4JF3w9P5tvFqZsLKkEF58/omiksXiZm52SlGKWkhONj7vAxcbHyMkTmCjMcDygRNAjrCfVaqcm11zTJrIjzt64yojhxd/G28XqwOjG5uTxJhEAIfkECQoAAAAsAAAAADYANwAABM0QyEmrvTjrzbv/YCiOZGmeaKqurDAMAlsKRE3EsjjYxJDrPN8PRLPhhh8XDMk0KY/OF5TIm4qKNWtnZxOWuDUvCNw7kcXJ6gl7Iz1T76Z8Tq/b7/i8qmCoGQoacT8FZ4AXbFopfTwEBhhnQ4w2j0GRkgQYiEOLPI6ZUkgHZwd6EweLBqSlq6ytricICTUJCKwKkgojgiMIlwS1VEYlspcJIZAkvjXHlcnKIZokxJLG0KAlvZfAebeMuUi7FbGz2z/Rq8jozavn7Nev8CsRACH5BAkKAAAALAAAAAA2ADcAAATLEMhJq7046827/2AojmRpnmiqrqwwDAJbCkRNxLI42MSQ6zzfD0Sz4YYfFwzJNCmPzheUyJuKijVrZ2cTlrg1LwjcO5HFyeoJeyM9U++mfE6v2+/4PD6O5F/YWiqAGWdIhRiHP4kWg0ONGH4/kXqUlZaXmJlMBQY1BgVuUicFZ6AhjyOdPAQGQF0mqzauYbCxBFdqJao8rVeiGQgJNQkIFwdnB0MKsQrGqgbJPwi2BMV5wrYJetQ129x62LHaedO21nnLq82VwcPnIhEAIfkECQoAAAAsAAAAADYANwAABMwQyEmrvTjrzbv/YCiOZGmeaKqurDAMAlsKRE3EsjjYxJDrPN8PRLPhhh8XDMk0KY/OF5TIm4qKNWtnZxOWuDUvCNw7kcXJ6gl7Iz1T76Z8Tq/b7/g8Po7kX9haKoAZZ0iFGIc/iRaDQ40Yfj+RepSVlpeYAAgJNQkIlgo8NQqUCKI2nzNSIpynBAkzaiCuNl9BIbQ1tl0hraewbrIfpq6pbqsioaKkFwUGNQYFSJudxhUFZ9KUz6IGlbTfrpXcPN6UB2cHlgfcBuqZKBEAIfkECQoAAAAsAAAAADYANwAABMwQyEmrvTjrzbv/YCiOZGmeaKqurDAMAlsKRE3EsjjYxJDrPN8PRLPhhh8XDMk0KY/OF5TIm4qKNWtnZxOWuDUvCNw7kcXJ6gl7Iz1T76Z8Tq/b7yJEopZA4CsKPDUKfxIIgjZ+P3EWe4gECYtqFo82P2cXlTWXQReOiJE5bFqHj4qiUhmBgoSFho59rrKztLVMBQY1BgWzBWe8UUsiuYIGTpMglSaYIcpfnSHEPMYzyB8HZwdrqSMHxAbath2MsqO0zLLorua05OLvJxEAIfkECQoAAAAsAAAAADYANwAABMwQyEmrvTjrzbv/YCiOZGmeaKqurDAMAlsKRE3EsjjYxJDrPN8PRLPhfohELYHQuGBDgIJXU0Q5CKqtOXsdP0otITHjfTtiW2lnE37StXUwFNaSScXaGZvm4r0jU1RWV1hhTIWJiouMjVcFBjUGBY4WBWw1A5RDT3sTkVQGnGYYaUOYPaVip3MXoDyiP3k3GAeoAwdRnRoHoAa5lcHCw8TFxscduyjKIrOeRKRAbSe3I9Um1yHOJ9sjzCbfyInhwt3E2cPo5dHF5OLvJREAOw==" /> } }, responseNormalizeSchema: { // 进行范式化的各个api返回的数据的schema,会与QuietWater本身已经设置好的schema进行合并 quietWaterOfHost: {}, // 这里根据自己的业务进行设置,但是后端必须按照QuietWater本身已经设置好的schema的格式返回数据 Comment: {} }, router: { user: { postfixIsIdOrLoginName: 'id' // 有的网站用户路由的后者是用的id(.../user/123),有的是用的用户名(.../user/qweksdfs) // PREFIXURL: 'http://www.mysite.com/user/' } }, events: { quietWater: { // we will check the document.activeElement's nodeName and attribute,if it matches one of the below // array's value,we will don't react the key event. responsePrevOrNextReplyExcludeIn: ['input', 'textarea', 'contenteditable'], prevReplyPressKey: 'j', nextReplyPressKey: 'k' } }, paginations: { // default pagination options replyList: { pageSize: 6 }, commentList: { pageSize: 10 } }, api: { // PREFIX: 'http://www.easy-mock.com/mock/590c4f0087cce4690fed1f43/qw/api/', // P_PREFIX: 'http://www.easy-mock.com/mock/590c4f0087cce4690fed1f43/qw/api/p/', // p represent private // quietWaterInitUrl: 'http://www.easy-mock.com/mock/5919acf69aba4141cf23044d/common/rqw', // 初始化QuietWater时需要获取某些数据存储到localstorage里面 // hostUserLoginUrl: 'https://github.com/login', // 很多操作都需要用户登录后才能操作,这个url是接入QuietWater的网站的用户的登录界面的url // quietWaterOfHostUrl: 'articles/info', // 获取QuietWater添加到的那个item的基本信息(如某篇文章,某个歌曲等.包括id,reply列表信息等等) post: { operationBar: { // praiseUrl: 'reply/praise' // the post praise interface url } }, share: { // twitter: { // 可参考https://github.com/overtrue/share.js // https://github.com/nygardk/react-share // }, weibo: { urlPrefix: 'http://service.weibo.com/share/share.php' // sourceWebSiteName: 分享来源于哪个网站,一般填写为接入QuietWater的用户的网站的名称 // sourceWebSiteName: Represent the name of the source website,e.g. // if your website or company's name is walmart,then we should write `sourceWebSiteName: 'walmart'` // sourceWebSiteUrl: 分享来源于哪个网站,一般填写为接入QuietWater的用户的网站的url // sourceWebSiteUrl: Represent the url of the source website // if your website or company's url is 'https://www.mysite.com',then we should write `sourceWebSiteUrl: 'https://www.mysite.com'` // if you want to use the share feature,here you need to provide a getComponent function // e.g. // TODO 已经在社交平台上提了个问题问如何设计锚点交互,如果找到好的想法那么将会应用进来 /* getComponent ({ replyUrl, sharedText }) { // These properties provided by QuietWater // replyUrl: 某个回复的url,带锚点,目前来说我们主要是在PC上使用,且回复列表一般不会太多,所以选择了加锚点的方式,而不是市场上很多其他的交互方式 // replyUrl: The corresponding reply's url with the anchor,at now we mainly use this repo in PC // rather than mobile,that's why we decide to use anchor,but there are many things we need to think,please discuss in the issue // sharedText: 一般分享出去都需要填写一段描述性的话,然后这段话会在发布的分享中显示(一般为标题) // sharedText: Usually we need write a text to describe the share(normally this is the title of the share) const generatedUrl = ... return ( <div> <icon iconName="icon-weibo" /> <a href={generatedUrl} target="_blank" /> </div> ); } */ } }, responseStatusHandler: { // template is: statusCode: () => {} // e.g. ok: () => {...} }, httpStatusExcptionHandler: { // template is: statusCode: () => {} // e.g. 403: () => {...} }, responseErrorHandler: { // template is: errorCode: () => {} // e.g. 100023: () => {...} } }, localStorage: { info2Storage: { userName: 'u_userName', loginName: 'u_loginName', avatarUrl: 'u_avatarUrl', userId: 'u_id', roleName: 'u_roleName', userToken: 'u_tk' } }, sessionStorage: { keyOfCurrentReplyItemHash: 'qw_curReply' } }; export default configParams; export const configQuietWater = options => merge(configParams, options);
node_modules/react-native/Libraries/Renderer/src/renderers/native/ReactNativeTagHandles.js
aksharora/ReactNativeDemoBasic
/** * Copyright (c) 2015-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. * * @providesModule ReactNativeTagHandles * @flow */ 'use strict'; var invariant = require('fbjs/lib/invariant'); /** * Keeps track of allocating and associating native "tags" which are numeric, * unique view IDs. All the native tags are negative numbers, to avoid * collisions, but in the JS we keep track of them as positive integers to store * them effectively in Arrays. So we must refer to them as "inverses" of the * native tags (that are * normally negative). * * It *must* be the case that every `rootNodeID` always maps to the exact same * `tag` forever. The easiest way to accomplish this is to never delete * anything from this table. * Why: Because `dangerouslyReplaceNodeWithMarkupByID` relies on being able to * unmount a component with a `rootNodeID`, then mount a new one in its place, */ var INITIAL_TAG_COUNT = 1; var ReactNativeTagHandles = { tagsStartAt: INITIAL_TAG_COUNT, tagCount: INITIAL_TAG_COUNT, allocateTag: function(): number { // Skip over root IDs as those are reserved for native while (this.reactTagIsNativeTopRootID(ReactNativeTagHandles.tagCount)) { ReactNativeTagHandles.tagCount++; } var tag = ReactNativeTagHandles.tagCount; ReactNativeTagHandles.tagCount++; return tag; }, assertRootTag: function(tag: number): void { invariant( this.reactTagIsNativeTopRootID(tag), 'Expect a native root tag, instead got %s', tag ); }, reactTagIsNativeTopRootID: function(reactTag: number): boolean { // We reserve all tags that are 1 mod 10 for native root views return reactTag % 10 === 1; }, }; module.exports = ReactNativeTagHandles;
ajax/libs/dc/2.1.1/dc.js
cdnjs/cdnjs
/*! * dc 2.1.1 * http://dc-js.github.io/dc.js/ * Copyright 2012-2016 Nick Zhu & the dc.js Developers * https://github.com/dc-js/dc.js/blob/master/AUTHORS * * 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. */ (function() { function _dc(d3, crossfilter) { 'use strict'; /** * The entire dc.js library is scoped under the **dc** name space. It does not introduce * anything else into the global name space. * * Most `dc` functions are designed to allow function chaining, meaning they return the current chart * instance whenever it is appropriate. The getter forms of functions do not participate in function * chaining because they return values that are not the chart, although some, * such as {@link dc.baseMixin#svg .svg} and {@link dc.coordinateGridMixin#xAxis .xAxis}, * return values that are themselves chainable d3 objects. * @namespace dc * @version 2.1.1 * @example * // Example chaining * chart.width(300) * .height(300) * .filter('sunday'); */ /*jshint -W079*/ var dc = { version: '2.1.1', constants: { CHART_CLASS: 'dc-chart', DEBUG_GROUP_CLASS: 'debug', STACK_CLASS: 'stack', DESELECTED_CLASS: 'deselected', SELECTED_CLASS: 'selected', NODE_INDEX_NAME: '__index__', GROUP_INDEX_NAME: '__group_index__', DEFAULT_CHART_GROUP: '__default_chart_group__', EVENT_DELAY: 40, NEGLIGIBLE_NUMBER: 1e-10 }, _renderlet: null }; /*jshint +W079*/ /** * The dc.chartRegistry object maintains sets of all instantiated dc.js charts under named groups * and the default group. * * A chart group often corresponds to a crossfilter instance. It specifies * the set of charts which should be updated when a filter changes on one of the charts or when the * global functions {@link dc.filterAll dc.filterAll}, {@link dc.refocusAll dc.refocusAll}, * {@link dc.renderAll dc.renderAll}, {@link dc.redrawAll dc.redrawAll}, or chart functions * {@link dc.baseMixin#renderGroup baseMixin.renderGroup}, * {@link dc.baseMixin#redrawGroup baseMixin.redrawGroup} are called. * * @namespace chartRegistry * @memberof dc * @type {{has, register, deregister, clear, list}} */ dc.chartRegistry = (function () { // chartGroup:string => charts:array var _chartMap = {}; function initializeChartGroup (group) { if (!group) { group = dc.constants.DEFAULT_CHART_GROUP; } if (!_chartMap[group]) { _chartMap[group] = []; } return group; } return { /** * Determine if a given chart instance resides in any group in the registry. * @method has * @memberof dc.chartRegistry * @param {Object} chart dc.js chart instance * @returns {Boolean} */ has: function (chart) { for (var e in _chartMap) { if (_chartMap[e].indexOf(chart) >= 0) { return true; } } return false; }, /** * Add given chart instance to the given group, creating the group if necessary. * If no group is provided, the default group `dc.constants.DEFAULT_CHART_GROUP` will be used. * @method register * @memberof dc.chartRegistry * @param {Object} chart dc.js chart instance * @param {String} [group] Group name */ register: function (chart, group) { group = initializeChartGroup(group); _chartMap[group].push(chart); }, /** * Remove given chart instance from the given group, creating the group if necessary. * If no group is provided, the default group `dc.constants.DEFAULT_CHART_GROUP` will be used. * @method deregister * @memberof dc.chartRegistry * @param {Object} chart dc.js chart instance * @param {String} [group] Group name */ deregister: function (chart, group) { group = initializeChartGroup(group); for (var i = 0; i < _chartMap[group].length; i++) { if (_chartMap[group][i].anchorName() === chart.anchorName()) { _chartMap[group].splice(i, 1); break; } } }, /** * Clear given group if one is provided, otherwise clears all groups. * @method clear * @memberof dc.chartRegistry * @param {String} group Group name */ clear: function (group) { if (group) { delete _chartMap[group]; } else { _chartMap = {}; } }, /** * Get an array of each chart instance in the given group. * If no group is provided, the charts in the default group are returned. * @method list * @memberof dc.chartRegistry * @param {String} [group] Group name * @returns {Array<Object>} */ list: function (group) { group = initializeChartGroup(group); return _chartMap[group]; } }; })(); /** * Add given chart instance to the given group, creating the group if necessary. * If no group is provided, the default group `dc.constants.DEFAULT_CHART_GROUP` will be used. * @memberof dc * @method registerChart * @param {Object} chart dc.js chart instance * @param {String} [group] Group name */ dc.registerChart = function (chart, group) { dc.chartRegistry.register(chart, group); }; /** * Remove given chart instance from the given group, creating the group if necessary. * If no group is provided, the default group `dc.constants.DEFAULT_CHART_GROUP` will be used. * @memberof dc * @method deregisterChart * @param {Object} chart dc.js chart instance * @param {String} [group] Group name */ dc.deregisterChart = function (chart, group) { dc.chartRegistry.deregister(chart, group); }; /** * Determine if a given chart instance resides in any group in the registry. * @memberof dc * @method hasChart * @param {Object} chart dc.js chart instance * @returns {Boolean} */ dc.hasChart = function (chart) { return dc.chartRegistry.has(chart); }; /** * Clear given group if one is provided, otherwise clears all groups. * @memberof dc * @method deregisterAllCharts * @param {String} group Group name */ dc.deregisterAllCharts = function (group) { dc.chartRegistry.clear(group); }; /** * Clear all filters on all charts within the given chart group. If the chart group is not given then * only charts that belong to the default chart group will be reset. * @memberof dc * @method filterAll * @param {String} [group] */ dc.filterAll = function (group) { var charts = dc.chartRegistry.list(group); for (var i = 0; i < charts.length; ++i) { charts[i].filterAll(); } }; /** * Reset zoom level / focus on all charts that belong to the given chart group. If the chart group is * not given then only charts that belong to the default chart group will be reset. * @memberof dc * @method refocusAll * @param {String} [group] */ dc.refocusAll = function (group) { var charts = dc.chartRegistry.list(group); for (var i = 0; i < charts.length; ++i) { if (charts[i].focus) { charts[i].focus(); } } }; /** * Re-render all charts belong to the given chart group. If the chart group is not given then only * charts that belong to the default chart group will be re-rendered. * @memberof dc * @method renderAll * @param {String} [group] */ dc.renderAll = function (group) { var charts = dc.chartRegistry.list(group); for (var i = 0; i < charts.length; ++i) { charts[i].render(); } if (dc._renderlet !== null) { dc._renderlet(group); } }; /** * Redraw all charts belong to the given chart group. If the chart group is not given then only charts * that belong to the default chart group will be re-drawn. Redraw is different from re-render since * when redrawing dc tries to update the graphic incrementally, using transitions, instead of starting * from scratch. * @memberof dc * @method redrawAll * @param {String} [group] */ dc.redrawAll = function (group) { var charts = dc.chartRegistry.list(group); for (var i = 0; i < charts.length; ++i) { charts[i].redraw(); } if (dc._renderlet !== null) { dc._renderlet(group); } }; /** * If this boolean is set truthy, all transitions will be disabled, and changes to the charts will happen * immediately. * @memberof dc * @member disableTransitions * @type {Boolean} * @default false */ dc.disableTransitions = false; /** * Start a transition on a selection if transitions are globally enabled * ({@link dc.disableTransitions} is false) and the duration is greater than zero; otherwise return * the selection. Since most operations are the same on a d3 selection and a d3 transition, this * allows a common code path for both cases. * @memberof dc * @method transition * @param {d3.selection} selection - the selection to be transitioned * @param {Number|Function} [duration=250] - the duration of the transition in milliseconds, a * function returning the duration, or 0 for no transition * @param {Number|Function} [delay] - the delay of the transition in milliseconds, or a function * returning the delay, or 0 for no delay * @param {String} [name] - the name of the transition (if concurrent transitions on the same * elements are needed) * @returns {d3.transition|d3.selection} */ dc.transition = function (selection, duration, delay, name) { if (dc.disableTransitions || duration <= 0) { return selection; } var s = selection.transition(name); if (duration >= 0 || duration !== undefined) { s = s.duration(duration); } if (delay >= 0 || delay !== undefined) { s = s.delay(delay); } return s; }; /* somewhat silly, but to avoid duplicating logic */ dc.optionalTransition = function (enable, duration, delay, name) { if (enable) { return function (selection) { return dc.transition(selection, duration, delay, name); }; } else { return function (selection) { return selection; }; } }; // See http://stackoverflow.com/a/20773846 dc.afterTransition = function (transition, callback) { if (transition.empty() || !transition.duration) { callback.call(transition); } else { var n = 0; transition .each(function () { ++n; }) .each('end', function () { if (!--n) { callback.call(transition); } }); } }; /** * @namespace units * @memberof dc * @type {{}} */ dc.units = {}; /** * The default value for {@link dc.coordinateGridMixin#xUnits .xUnits} for the * {@link dc.coordinateGridMixin Coordinate Grid Chart} and should * be used when the x values are a sequence of integers. * It is a function that counts the number of integers in the range supplied in its start and end parameters. * @method integers * @memberof dc.units * @see {@link dc.coordinateGridMixin#xUnits coordinateGridMixin.xUnits} * @example * chart.xUnits(dc.units.integers) // already the default * @param {Number} start * @param {Number} end * @returns {Number} */ dc.units.integers = function (start, end) { return Math.abs(end - start); }; /** * This argument can be passed to the {@link dc.coordinateGridMixin#xUnits .xUnits} function of the to * specify ordinal units for the x axis. Usually this parameter is used in combination with passing * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Ordinal-Scales.md d3.scale.ordinal} to * {@link dc.coordinateGridMixin#x .x}. * It just returns the domain passed to it, which for ordinal charts is an array of all values. * @method ordinal * @memberof dc.units * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Ordinal-Scales.md d3.scale.ordinal} * @see {@link dc.coordinateGridMixin#xUnits coordinateGridMixin.xUnits} * @see {@link dc.coordinateGridMixin#x coordinateGridMixin.x} * @example * chart.xUnits(dc.units.ordinal) * .x(d3.scale.ordinal()) * @param {*} start * @param {*} end * @param {Array<String>} domain * @returns {Array<String>} */ dc.units.ordinal = function (start, end, domain) { return domain; }; /** * @namespace fp * @memberof dc.units * @type {{}} */ dc.units.fp = {}; /** * This function generates an argument for the {@link dc.coordinateGridMixin Coordinate Grid Chart} * {@link dc.coordinateGridMixin#xUnits .xUnits} function specifying that the x values are floating-point * numbers with the given precision. * The returned function determines how many values at the given precision will fit into the range * supplied in its start and end parameters. * @method precision * @memberof dc.units.fp * @see {@link dc.coordinateGridMixin#xUnits coordinateGridMixin.xUnits} * @example * // specify values (and ticks) every 0.1 units * chart.xUnits(dc.units.fp.precision(0.1) * // there are 500 units between 0.5 and 1 if the precision is 0.001 * var thousandths = dc.units.fp.precision(0.001); * thousandths(0.5, 1.0) // returns 500 * @param {Number} precision * @returns {Function} start-end unit function */ dc.units.fp.precision = function (precision) { var _f = function (s, e) { var d = Math.abs((e - s) / _f.resolution); if (dc.utils.isNegligible(d - Math.floor(d))) { return Math.floor(d); } else { return Math.ceil(d); } }; _f.resolution = precision; return _f; }; dc.round = {}; dc.round.floor = function (n) { return Math.floor(n); }; dc.round.ceil = function (n) { return Math.ceil(n); }; dc.round.round = function (n) { return Math.round(n); }; dc.override = function (obj, functionName, newFunction) { var existingFunction = obj[functionName]; obj['_' + functionName] = existingFunction; obj[functionName] = newFunction; }; dc.renderlet = function (_) { if (!arguments.length) { return dc._renderlet; } dc._renderlet = _; return dc; }; dc.instanceOfChart = function (o) { return o instanceof Object && o.__dcFlag__ && true; }; dc.errors = {}; dc.errors.Exception = function (msg) { var _msg = msg || 'Unexpected internal error'; this.message = _msg; this.toString = function () { return _msg; }; this.stack = (new Error()).stack; }; dc.errors.Exception.prototype = Object.create(Error.prototype); dc.errors.Exception.prototype.constructor = dc.errors.Exception; dc.errors.InvalidStateException = function () { dc.errors.Exception.apply(this, arguments); }; dc.errors.InvalidStateException.prototype = Object.create(dc.errors.Exception.prototype); dc.errors.InvalidStateException.prototype.constructor = dc.errors.InvalidStateException; dc.errors.BadArgumentException = function () { dc.errors.Exception.apply(this, arguments); }; dc.errors.BadArgumentException.prototype = Object.create(dc.errors.Exception.prototype); dc.errors.BadArgumentException.prototype.constructor = dc.errors.BadArgumentException; /** * The default date format for dc.js * @name dateFormat * @memberof dc * @type {Function} * @default d3.time.format('%m/%d/%Y') */ dc.dateFormat = d3.time.format('%m/%d/%Y'); /** * @namespace printers * @memberof dc * @type {{}} */ dc.printers = {}; /** * Converts a list of filters into a readable string. * @method filters * @memberof dc.printers * @param {Array<dc.filters>} filters * @returns {String} */ dc.printers.filters = function (filters) { var s = ''; for (var i = 0; i < filters.length; ++i) { if (i > 0) { s += ', '; } s += dc.printers.filter(filters[i]); } return s; }; /** * Converts a filter into a readable string. * @method filter * @memberof dc.printers * @param {dc.filters|any|Array<any>} filter * @returns {String} */ dc.printers.filter = function (filter) { var s = ''; if (typeof filter !== 'undefined' && filter !== null) { if (filter instanceof Array) { if (filter.length >= 2) { s = '[' + dc.utils.printSingleValue(filter[0]) + ' -> ' + dc.utils.printSingleValue(filter[1]) + ']'; } else if (filter.length >= 1) { s = dc.utils.printSingleValue(filter[0]); } } else { s = dc.utils.printSingleValue(filter); } } return s; }; /** * Returns a function that given a string property name, can be used to pluck the property off an object. A function * can be passed as the second argument to also alter the data being returned. * * This can be a useful shorthand method to create accessor functions. * @method pluck * @memberof dc * @example * var xPluck = dc.pluck('x'); * var objA = {x: 1}; * xPluck(objA) // 1 * @example * var xPosition = dc.pluck('x', function (x, i) { * // `this` is the original datum, * // `x` is the x property of the datum, * // `i` is the position in the array * return this.radius + x; * }); * dc.selectAll('.circle').data(...).x(xPosition); * @param {String} n * @param {Function} [f] * @returns {Function} */ dc.pluck = function (n, f) { if (!f) { return function (d) { return d[n]; }; } return function (d, i) { return f.call(d, d[n], i); }; }; /** * @namespace utils * @memberof dc * @type {{}} */ dc.utils = {}; /** * Print a single value filter. * @method printSingleValue * @memberof dc.utils * @param {any} filter * @returns {String} */ dc.utils.printSingleValue = function (filter) { var s = '' + filter; if (filter instanceof Date) { s = dc.dateFormat(filter); } else if (typeof(filter) === 'string') { s = filter; } else if (dc.utils.isFloat(filter)) { s = dc.utils.printSingleValue.fformat(filter); } else if (dc.utils.isInteger(filter)) { s = Math.round(filter); } return s; }; dc.utils.printSingleValue.fformat = d3.format('.2f'); /** * Arbitrary add one value to another. * @method add * @memberof dc.utils * @todo * These assume than any string r is a percentage (whether or not it includes %). * They also generate strange results if l is a string. * @param {String|Date|Number} l the value to modify * @param {Number} r the amount by which to modify the value * @param {String} [t] if `l` is a `Date`, the * [interval](https://github.com/d3/d3-3.x-api-reference/blob/master/Time-Intervals.md#interval) in * the `d3.time` namespace * @returns {String|Date|Number} */ dc.utils.add = function (l, r, t) { if (typeof r === 'string') { r = r.replace('%', ''); } if (l instanceof Date) { if (typeof r === 'string') { r = +r; } if (t === 'millis') { return new Date(l.getTime() + r); } t = t || 'day'; return d3.time[t].offset(l, r); } else if (typeof r === 'string') { var percentage = (+r / 100); return l > 0 ? l * (1 + percentage) : l * (1 - percentage); } else { return l + r; } }; /** * Arbitrary subtract one value from another. * @method subtract * @memberof dc.utils * @todo * These assume than any string r is a percentage (whether or not it includes %). * They also generate strange results if l is a string. * @param {String|Date|Number} l the value to modify * @param {Number} r the amount by which to modify the value * @param {String} [t] if `l` is a `Date`, the * [interval](https://github.com/d3/d3-3.x-api-reference/blob/master/Time-Intervals.md#interval) in * the `d3.time` namespace * @returns {String|Date|Number} */ dc.utils.subtract = function (l, r, t) { if (typeof r === 'string') { r = r.replace('%', ''); } if (l instanceof Date) { if (typeof r === 'string') { r = +r; } if (t === 'millis') { return new Date(l.getTime() - r); } t = t || 'day'; return d3.time[t].offset(l, -r); } else if (typeof r === 'string') { var percentage = (+r / 100); return l < 0 ? l * (1 + percentage) : l * (1 - percentage); } else { return l - r; } }; /** * Is the value a number? * @method isNumber * @memberof dc.utils * @param {any} n * @returns {Boolean} */ dc.utils.isNumber = function (n) { return n === +n; }; /** * Is the value a float? * @method isFloat * @memberof dc.utils * @param {any} n * @returns {Boolean} */ dc.utils.isFloat = function (n) { return n === +n && n !== (n | 0); }; /** * Is the value an integer? * @method isInteger * @memberof dc.utils * @param {any} n * @returns {Boolean} */ dc.utils.isInteger = function (n) { return n === +n && n === (n | 0); }; /** * Is the value very close to zero? * @method isNegligible * @memberof dc.utils * @param {any} n * @returns {Boolean} */ dc.utils.isNegligible = function (n) { return !dc.utils.isNumber(n) || (n < dc.constants.NEGLIGIBLE_NUMBER && n > -dc.constants.NEGLIGIBLE_NUMBER); }; /** * Ensure the value is no greater or less than the min/max values. If it is return the boundary value. * @method clamp * @memberof dc.utils * @param {any} val * @param {any} min * @param {any} max * @returns {any} */ dc.utils.clamp = function (val, min, max) { return val < min ? min : (val > max ? max : val); }; /** * Using a simple static counter, provide a unique integer id. * @method uniqueId * @memberof dc.utils * @returns {Number} */ var _idCounter = 0; dc.utils.uniqueId = function () { return ++_idCounter; }; /** * Convert a name to an ID. * @method nameToId * @memberof dc.utils * @param {String} name * @returns {String} */ dc.utils.nameToId = function (name) { return name.toLowerCase().replace(/[\s]/g, '_').replace(/[\.']/g, ''); }; /** * Append or select an item on a parent element. * @method appendOrSelect * @memberof dc.utils * @param {d3.selection} parent * @param {String} selector * @param {String} tag * @returns {d3.selection} */ dc.utils.appendOrSelect = function (parent, selector, tag) { tag = tag || selector; var element = parent.select(selector); if (element.empty()) { element = parent.append(tag); } return element; }; /** * Return the number if the value is a number; else 0. * @method safeNumber * @memberof dc.utils * @param {Number|any} n * @returns {Number} */ dc.utils.safeNumber = function (n) { return dc.utils.isNumber(+n) ? +n : 0;}; dc.logger = {}; dc.logger.enableDebugLog = false; dc.logger.warn = function (msg) { if (console) { if (console.warn) { console.warn(msg); } else if (console.log) { console.log(msg); } } return dc.logger; }; dc.logger.debug = function (msg) { if (dc.logger.enableDebugLog && console) { if (console.debug) { console.debug(msg); } else if (console.log) { console.log(msg); } } return dc.logger; }; dc.logger.deprecate = function (fn, msg) { // Allow logging of deprecation var warned = false; function deprecated () { if (!warned) { dc.logger.warn(msg); warned = true; } return fn.apply(this, arguments); } return deprecated; }; dc.events = { current: null }; /** * This function triggers a throttled event function with a specified delay (in milli-seconds). Events * that are triggered repetitively due to user interaction such brush dragging might flood the library * and invoke more renders than can be executed in time. Using this function to wrap your event * function allows the library to smooth out the rendering by throttling events and only responding to * the most recent event. * @name events.trigger * @memberof dc * @example * chart.on('renderlet', function(chart) { * // smooth the rendering through event throttling * dc.events.trigger(function(){ * // focus some other chart to the range selected by user on this chart * someOtherChart.focus(chart.filter()); * }); * }) * @param {Function} closure * @param {Number} [delay] */ dc.events.trigger = function (closure, delay) { if (!delay) { closure(); return; } dc.events.current = closure; setTimeout(function () { if (closure === dc.events.current) { closure(); } }, delay); }; /** * The dc.js filters are functions which are passed into crossfilter to chose which records will be * accumulated to produce values for the charts. In the crossfilter model, any filters applied on one * dimension will affect all the other dimensions but not that one. dc always applies a filter * function to the dimension; the function combines multiple filters and if any of them accept a * record, it is filtered in. * * These filter constructors are used as appropriate by the various charts to implement brushing. We * mention below which chart uses which filter. In some cases, many instances of a filter will be added. * * Each of the dc.js filters is an object with the following properties: * * `isFiltered` - a function that returns true if a value is within the filter * * `filterType` - a string identifying the filter, here the name of the constructor * * Currently these filter objects are also arrays, but this is not a requirement. Custom filters * can be used as long as they have the properties above. * @namespace filters * @memberof dc * @type {{}} */ dc.filters = {}; /** * RangedFilter is a filter which accepts keys between `low` and `high`. It is used to implement X * axis brushing for the {@link dc.coordinateGridMixin coordinate grid charts}. * * Its `filterType` is 'RangedFilter' * @name RangedFilter * @memberof dc.filters * @param {Number} low * @param {Number} high * @returns {Array<Number>} * @constructor */ dc.filters.RangedFilter = function (low, high) { var range = new Array(low, high); range.isFiltered = function (value) { return value >= this[0] && value < this[1]; }; range.filterType = 'RangedFilter'; return range; }; /** * TwoDimensionalFilter is a filter which accepts a single two-dimensional value. It is used by the * {@link dc.heatMap heat map chart} to include particular cells as they are clicked. (Rows and columns are * filtered by filtering all the cells in the row or column.) * * Its `filterType` is 'TwoDimensionalFilter' * @name TwoDimensionalFilter * @memberof dc.filters * @param {Array<Number>} filter * @returns {Array<Number>} * @constructor */ dc.filters.TwoDimensionalFilter = function (filter) { if (filter === null) { return null; } var f = filter; f.isFiltered = function (value) { return value.length && value.length === f.length && value[0] === f[0] && value[1] === f[1]; }; f.filterType = 'TwoDimensionalFilter'; return f; }; /** * The RangedTwoDimensionalFilter allows filtering all values which fit within a rectangular * region. It is used by the {@link dc.scatterPlot scatter plot} to implement rectangular brushing. * * It takes two two-dimensional points in the form `[[x1,y1],[x2,y2]]`, and normalizes them so that * `x1 <= x2` and `y1 <= y2`. It then returns a filter which accepts any points which are in the * rectangular range including the lower values but excluding the higher values. * * If an array of two values are given to the RangedTwoDimensionalFilter, it interprets the values as * two x coordinates `x1` and `x2` and returns a filter which accepts any points for which `x1 <= x < * x2`. * * Its `filterType` is 'RangedTwoDimensionalFilter' * @name RangedTwoDimensionalFilter * @memberof dc.filters * @param {Array<Array<Number>>} filter * @returns {Array<Array<Number>>} * @constructor */ dc.filters.RangedTwoDimensionalFilter = function (filter) { if (filter === null) { return null; } var f = filter; var fromBottomLeft; if (f[0] instanceof Array) { fromBottomLeft = [ [Math.min(filter[0][0], filter[1][0]), Math.min(filter[0][1], filter[1][1])], [Math.max(filter[0][0], filter[1][0]), Math.max(filter[0][1], filter[1][1])] ]; } else { fromBottomLeft = [[filter[0], -Infinity], [filter[1], Infinity]]; } f.isFiltered = function (value) { var x, y; if (value instanceof Array) { x = value[0]; y = value[1]; } else { x = value; y = fromBottomLeft[0][1]; } return x >= fromBottomLeft[0][0] && x < fromBottomLeft[1][0] && y >= fromBottomLeft[0][1] && y < fromBottomLeft[1][1]; }; f.filterType = 'RangedTwoDimensionalFilter'; return f; }; /** * `dc.baseMixin` is an abstract functional object representing a basic `dc` chart object * for all chart and widget implementations. Methods from the {@link #dc.baseMixin dc.baseMixin} are inherited * and available on all chart implementations in the `dc` library. * @name baseMixin * @memberof dc * @mixin * @param {Object} _chart * @returns {dc.baseMixin} */ dc.baseMixin = function (_chart) { _chart.__dcFlag__ = dc.utils.uniqueId(); var _dimension; var _group; var _anchor; var _root; var _svg; var _isChild; var _minWidth = 200; var _defaultWidthCalc = function (element) { var width = element && element.getBoundingClientRect && element.getBoundingClientRect().width; return (width && width > _minWidth) ? width : _minWidth; }; var _widthCalc = _defaultWidthCalc; var _minHeight = 200; var _defaultHeightCalc = function (element) { var height = element && element.getBoundingClientRect && element.getBoundingClientRect().height; return (height && height > _minHeight) ? height : _minHeight; }; var _heightCalc = _defaultHeightCalc; var _width, _height; var _keyAccessor = dc.pluck('key'); var _valueAccessor = dc.pluck('value'); var _label = dc.pluck('key'); var _ordering = dc.pluck('key'); var _orderSort; var _renderLabel = false; var _title = function (d) { return _chart.keyAccessor()(d) + ': ' + _chart.valueAccessor()(d); }; var _renderTitle = true; var _controlsUseVisibility = false; var _transitionDuration = 750; var _transitionDelay = 0; var _filterPrinter = dc.printers.filters; var _mandatoryAttributes = ['dimension', 'group']; var _chartGroup = dc.constants.DEFAULT_CHART_GROUP; var _listeners = d3.dispatch( 'preRender', 'postRender', 'preRedraw', 'postRedraw', 'filtered', 'zoomed', 'renderlet', 'pretransition'); var _legend; var _commitHandler; var _filters = []; var _filterHandler = function (dimension, filters) { if (filters.length === 0) { dimension.filter(null); } else if (filters.length === 1 && !filters[0].isFiltered) { // single value and not a function-based filter dimension.filterExact(filters[0]); } else if (filters.length === 1 && filters[0].filterType === 'RangedFilter') { // single range-based filter dimension.filterRange(filters[0]); } else { dimension.filterFunction(function (d) { for (var i = 0; i < filters.length; i++) { var filter = filters[i]; if (filter.isFiltered && filter.isFiltered(d)) { return true; } else if (filter <= d && filter >= d) { return true; } } return false; }); } return filters; }; var _data = function (group) { return group.all(); }; /** * Set or get the height attribute of a chart. The height is applied to the SVGElement generated by * the chart when rendered (or re-rendered). If a value is given, then it will be used to calculate * the new height and the chart returned for method chaining. The value can either be a numeric, a * function, or falsy. If no value is specified then the value of the current height attribute will * be returned. * * By default, without an explicit height being given, the chart will select the width of its * anchor element. If that isn't possible it defaults to 200 (provided by the * {@link dc.baseMixin#minHeight minHeight} property). Setting the value falsy will return * the chart to the default behavior. * @method height * @memberof dc.baseMixin * @instance * @see {@link dc.baseMixin#minHeight minHeight} * @example * // Default height * chart.height(function (element) { * var height = element && element.getBoundingClientRect && element.getBoundingClientRect().height; * return (height && height > chart.minHeight()) ? height : chart.minHeight(); * }); * * chart.height(250); // Set the chart's height to 250px; * chart.height(function(anchor) { return doSomethingWith(anchor); }); // set the chart's height with a function * chart.height(null); // reset the height to the default auto calculation * @param {Number|Function} [height] * @returns {Number|dc.baseMixin} */ _chart.height = function (height) { if (!arguments.length) { if (!dc.utils.isNumber(_height)) { // only calculate once _height = _heightCalc(_root.node()); } return _height; } _heightCalc = d3.functor(height || _defaultHeightCalc); _height = undefined; return _chart; }; /** * Set or get the width attribute of a chart. * @method width * @memberof dc.baseMixin * @instance * @see {@link dc.baseMixin#height height} * @see {@link dc.baseMixin#minWidth minWidth} * @example * // Default width * chart.width(function (element) { * var width = element && element.getBoundingClientRect && element.getBoundingClientRect().width; * return (width && width > chart.minWidth()) ? width : chart.minWidth(); * }); * @param {Number|Function} [width] * @returns {Number|dc.baseMixin} */ _chart.width = function (width) { if (!arguments.length) { if (!dc.utils.isNumber(_width)) { // only calculate once _width = _widthCalc(_root.node()); } return _width; } _widthCalc = d3.functor(width || _defaultWidthCalc); _width = undefined; return _chart; }; /** * Set or get the minimum width attribute of a chart. This only has effect when used with the default * {@link dc.baseMixin#width width} function. * @method minWidth * @memberof dc.baseMixin * @instance * @see {@link dc.baseMixin#width width} * @param {Number} [minWidth=200] * @returns {Number|dc.baseMixin} */ _chart.minWidth = function (minWidth) { if (!arguments.length) { return _minWidth; } _minWidth = minWidth; return _chart; }; /** * Set or get the minimum height attribute of a chart. This only has effect when used with the default * {@link dc.baseMixin#height height} function. * @method minHeight * @memberof dc.baseMixin * @instance * @see {@link dc.baseMixin#height height} * @param {Number} [minHeight=200] * @returns {Number|dc.baseMixin} */ _chart.minHeight = function (minHeight) { if (!arguments.length) { return _minHeight; } _minHeight = minHeight; return _chart; }; /** * **mandatory** * * Set or get the dimension attribute of a chart. In `dc`, a dimension can be any valid * {@link https://github.com/crossfilter/crossfilter/wiki/API-Reference#dimension crossfilter dimension} * * If a value is given, then it will be used as the new dimension. If no value is specified then * the current dimension will be returned. * @method dimension * @memberof dc.baseMixin * @instance * @see {@link https://github.com/crossfilter/crossfilter/wiki/API-Reference#dimension crossfilter.dimension} * @example * var index = crossfilter([]); * var dimension = index.dimension(dc.pluck('key')); * chart.dimension(dimension); * @param {crossfilter.dimension} [dimension] * @returns {crossfilter.dimension|dc.baseMixin} */ _chart.dimension = function (dimension) { if (!arguments.length) { return _dimension; } _dimension = dimension; _chart.expireCache(); return _chart; }; /** * Set the data callback or retrieve the chart's data set. The data callback is passed the chart's * group and by default will return * {@link https://github.com/crossfilter/crossfilter/wiki/API-Reference#group_all group.all}. * This behavior may be modified to, for instance, return only the top 5 groups. * @method data * @memberof dc.baseMixin * @instance * @example * // Default data function * chart.data(function (group) { return group.all(); }); * * chart.data(function (group) { return group.top(5); }); * @param {Function} [callback] * @returns {*|dc.baseMixin} */ _chart.data = function (callback) { if (!arguments.length) { return _data.call(_chart, _group); } _data = d3.functor(callback); _chart.expireCache(); return _chart; }; /** * **mandatory** * * Set or get the group attribute of a chart. In `dc` a group is a * {@link https://github.com/crossfilter/crossfilter/wiki/API-Reference#group-map-reduce crossfilter group}. * Usually the group should be created from the particular dimension associated with the same chart. If a value is * given, then it will be used as the new group. * * If no value specified then the current group will be returned. * If `name` is specified then it will be used to generate legend label. * @method group * @memberof dc.baseMixin * @instance * @see {@link https://github.com/crossfilter/crossfilter/wiki/API-Reference#group-map-reduce crossfilter.group} * @example * var index = crossfilter([]); * var dimension = index.dimension(dc.pluck('key')); * chart.dimension(dimension); * chart.group(dimension.group(crossfilter.reduceSum())); * @param {crossfilter.group} [group] * @param {String} [name] * @returns {crossfilter.group|dc.baseMixin} */ _chart.group = function (group, name) { if (!arguments.length) { return _group; } _group = group; _chart._groupName = name; _chart.expireCache(); return _chart; }; /** * Get or set an accessor to order ordinal dimensions. The chart uses * {@link https://github.com/crossfilter/crossfilter/wiki/API-Reference#quicksort_by crossfilter.quicksort.by} * to sort elements; this accessor returns the value to order on. * @method ordering * @memberof dc.baseMixin * @instance * @see {@link https://github.com/crossfilter/crossfilter/wiki/API-Reference#quicksort_by crossfilter.quicksort.by} * @example * // Default ordering accessor * _chart.ordering(dc.pluck('key')); * @param {Function} [orderFunction] * @returns {Function|dc.baseMixin} */ _chart.ordering = function (orderFunction) { if (!arguments.length) { return _ordering; } _ordering = orderFunction; _orderSort = crossfilter.quicksort.by(_ordering); _chart.expireCache(); return _chart; }; _chart._computeOrderedGroups = function (data) { var dataCopy = data.slice(0); if (dataCopy.length <= 1) { return dataCopy; } if (!_orderSort) { _orderSort = crossfilter.quicksort.by(_ordering); } return _orderSort(dataCopy, 0, dataCopy.length); }; /** * Clear all filters associated with this chart. The same effect can be achieved by calling * {@link dc.baseMixin#filter chart.filter(null)}. * @method filterAll * @memberof dc.baseMixin * @instance * @returns {dc.baseMixin} */ _chart.filterAll = function () { return _chart.filter(null); }; /** * Execute d3 single selection in the chart's scope using the given selector and return the d3 * selection. * * This function is **not chainable** since it does not return a chart instance; however the d3 * selection result can be chained to d3 function calls. * @method select * @memberof dc.baseMixin * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Selections.md#d3_select d3.select} * @example * // Has the same effect as d3.select('#chart-id').select(selector) * chart.select(selector) * @returns {d3.selection} */ _chart.select = function (s) { return _root.select(s); }; /** * Execute in scope d3 selectAll using the given selector and return d3 selection result. * * This function is **not chainable** since it does not return a chart instance; however the d3 * selection result can be chained to d3 function calls. * @method selectAll * @memberof dc.baseMixin * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Selections.md#d3_selectAll d3.selectAll} * @example * // Has the same effect as d3.select('#chart-id').selectAll(selector) * chart.selectAll(selector) * @returns {d3.selection} */ _chart.selectAll = function (s) { return _root ? _root.selectAll(s) : null; }; /** * Set the root SVGElement to either be an existing chart's root; or any valid [d3 single * selector](https://github.com/d3/d3-3.x-api-reference/blob/master/Selections.md#selecting-elements) specifying a dom * block element such as a div; or a dom element or d3 selection. Optionally registers the chart * within the chartGroup. This class is called internally on chart initialization, but be called * again to relocate the chart. However, it will orphan any previously created SVGElements. * @method anchor * @memberof dc.baseMixin * @instance * @param {anchorChart|anchorSelector|anchorNode} [parent] * @param {String} [chartGroup] * @returns {String|node|d3.selection|dc.baseMixin} */ _chart.anchor = function (parent, chartGroup) { if (!arguments.length) { return _anchor; } if (dc.instanceOfChart(parent)) { _anchor = parent.anchor(); _root = parent.root(); _isChild = true; } else if (parent) { if (parent.select && parent.classed) { // detect d3 selection _anchor = parent.node(); } else { _anchor = parent; } _root = d3.select(_anchor); _root.classed(dc.constants.CHART_CLASS, true); dc.registerChart(_chart, chartGroup); _isChild = false; } else { throw new dc.errors.BadArgumentException('parent must be defined'); } _chartGroup = chartGroup; return _chart; }; /** * Returns the DOM id for the chart's anchored location. * @method anchorName * @memberof dc.baseMixin * @instance * @returns {String} */ _chart.anchorName = function () { var a = _chart.anchor(); if (a && a.id) { return a.id; } if (a && a.replace) { return a.replace('#', ''); } return 'dc-chart' + _chart.chartID(); }; /** * Returns the root element where a chart resides. Usually it will be the parent div element where * the SVGElement was created. You can also pass in a new root element however this is usually handled by * dc internally. Resetting the root element on a chart outside of dc internals may have * unexpected consequences. * @method root * @memberof dc.baseMixin * @instance * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement HTMLElement} * @param {HTMLElement} [rootElement] * @returns {HTMLElement|dc.baseMixin} */ _chart.root = function (rootElement) { if (!arguments.length) { return _root; } _root = rootElement; return _chart; }; /** * Returns the top SVGElement for this specific chart. You can also pass in a new SVGElement, * however this is usually handled by dc internally. Resetting the SVGElement on a chart outside * of dc internals may have unexpected consequences. * @method svg * @memberof dc.baseMixin * @instance * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/SVGElement SVGElement} * @param {SVGElement|d3.selection} [svgElement] * @returns {SVGElement|d3.selection|dc.baseMixin} */ _chart.svg = function (svgElement) { if (!arguments.length) { return _svg; } _svg = svgElement; return _chart; }; /** * Remove the chart's SVGElements from the dom and recreate the container SVGElement. * @method resetSvg * @memberof dc.baseMixin * @instance * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/SVGElement SVGElement} * @returns {SVGElement} */ _chart.resetSvg = function () { _chart.select('svg').remove(); return generateSvg(); }; function sizeSvg () { if (_svg) { _svg .attr('width', _chart.width()) .attr('height', _chart.height()); } } function generateSvg () { _svg = _chart.root().append('svg'); sizeSvg(); return _svg; } /** * Set or get the filter printer function. The filter printer function is used to generate human * friendly text for filter value(s) associated with the chart instance. The text will get shown * in the `.filter element; see {@link dc.baseMixin#turnOnControls turnOnControls}. * * By default dc charts use a default filter printer {@link dc.printers.filters dc.printers.filters} * that provides simple printing support for both single value and ranged filters. * @method filterPrinter * @memberof dc.baseMixin * @instance * @example * // for a chart with an ordinal brush, print the filters in upper case * chart.filterPrinter(function(filters) { * return filters.map(function(f) { return f.toUpperCase(); }).join(', '); * }); * // for a chart with a range brush, print the filter as start and extent * chart.filterPrinter(function(filters) { * return 'start ' + dc.utils.printSingleValue(filters[0][0]) + * ' extent ' + dc.utils.printSingleValue(filters[0][1] - filters[0][0]); * }); * @param {Function} [filterPrinterFunction=dc.printers.filters] * @returns {Function|dc.baseMixin} */ _chart.filterPrinter = function (filterPrinterFunction) { if (!arguments.length) { return _filterPrinter; } _filterPrinter = filterPrinterFunction; return _chart; }; /** * If set, use the `visibility` attribute instead of the `display` attribute for showing/hiding * chart reset and filter controls, for less disruption to the layout. * @method controlsUseVisibility * @memberof dc.baseMixin * @instance * @param {Boolean} [controlsUseVisibility=false] * @returns {Boolean|dc.baseMixin} **/ _chart.controlsUseVisibility = function (useVisibility) { if (!arguments.length) { return _controlsUseVisibility; } _controlsUseVisibility = useVisibility; return _chart; }; /** * Turn on optional control elements within the root element. dc currently supports the * following html control elements. * * root.selectAll('.reset') - elements are turned on if the chart has an active filter. This type * of control element is usually used to store a reset link to allow user to reset filter on a * certain chart. This element will be turned off automatically if the filter is cleared. * * root.selectAll('.filter') elements are turned on if the chart has an active filter. The text * content of this element is then replaced with the current filter value using the filter printer * function. This type of element will be turned off automatically if the filter is cleared. * @method turnOnControls * @memberof dc.baseMixin * @instance * @returns {dc.baseMixin} */ _chart.turnOnControls = function () { if (_root) { var attribute = _chart.controlsUseVisibility() ? 'visibility' : 'display'; _chart.selectAll('.reset').style(attribute, null); _chart.selectAll('.filter').text(_filterPrinter(_chart.filters())).style(attribute, null); } return _chart; }; /** * Turn off optional control elements within the root element. * @method turnOffControls * @memberof dc.baseMixin * @see {@link dc.baseMixin#turnOnControls turnOnControls} * @instance * @returns {dc.baseMixin} */ _chart.turnOffControls = function () { if (_root) { var attribute = _chart.controlsUseVisibility() ? 'visibility' : 'display'; var value = _chart.controlsUseVisibility() ? 'hidden' : 'none'; _chart.selectAll('.reset').style(attribute, value); _chart.selectAll('.filter').style(attribute, value).text(_chart.filter()); } return _chart; }; /** * Set or get the animation transition duration (in milliseconds) for this chart instance. * @method transitionDuration * @memberof dc.baseMixin * @instance * @param {Number} [duration=750] * @returns {Number|dc.baseMixin} */ _chart.transitionDuration = function (duration) { if (!arguments.length) { return _transitionDuration; } _transitionDuration = duration; return _chart; }; /** * Set or get the animation transition delay (in milliseconds) for this chart instance. * @method transitionDelay * @memberof dc.baseMixin * @instance * @param {Number} [delay=0] * @returns {Number|dc.baseMixin} */ _chart.transitionDelay = function (delay) { if (!arguments.length) { return _transitionDelay; } _transitionDelay = delay; return _chart; }; _chart._mandatoryAttributes = function (_) { if (!arguments.length) { return _mandatoryAttributes; } _mandatoryAttributes = _; return _chart; }; function checkForMandatoryAttributes (a) { if (!_chart[a] || !_chart[a]()) { throw new dc.errors.InvalidStateException('Mandatory attribute chart.' + a + ' is missing on chart[#' + _chart.anchorName() + ']'); } } /** * Invoking this method will force the chart to re-render everything from scratch. Generally it * should only be used to render the chart for the first time on the page or if you want to make * sure everything is redrawn from scratch instead of relying on the default incremental redrawing * behaviour. * @method render * @memberof dc.baseMixin * @instance * @returns {dc.baseMixin} */ _chart.render = function () { _height = _width = undefined; // force recalculate _listeners.preRender(_chart); if (_mandatoryAttributes) { _mandatoryAttributes.forEach(checkForMandatoryAttributes); } var result = _chart._doRender(); if (_legend) { _legend.render(); } _chart._activateRenderlets('postRender'); return result; }; _chart._activateRenderlets = function (event) { _listeners.pretransition(_chart); if (_chart.transitionDuration() > 0 && _svg) { _svg.transition().duration(_chart.transitionDuration()).delay(_chart.transitionDelay()) .each('end', function () { _listeners.renderlet(_chart); if (event) { _listeners[event](_chart); } }); } else { _listeners.renderlet(_chart); if (event) { _listeners[event](_chart); } } }; /** * Calling redraw will cause the chart to re-render data changes incrementally. If there is no * change in the underlying data dimension then calling this method will have no effect on the * chart. Most chart interaction in dc will automatically trigger this method through internal * events (in particular {@link dc.redrawAll dc.redrawAll}); therefore, you only need to * manually invoke this function if data is manipulated outside of dc's control (for example if * data is loaded in the background using * {@link https://github.com/crossfilter/crossfilter/wiki/API-Reference#crossfilter_add crossfilter.add}). * @method redraw * @memberof dc.baseMixin * @instance * @returns {dc.baseMixin} */ _chart.redraw = function () { sizeSvg(); _listeners.preRedraw(_chart); var result = _chart._doRedraw(); if (_legend) { _legend.render(); } _chart._activateRenderlets('postRedraw'); return result; }; /** * Gets/sets the commit handler. If the chart has a commit handler, the handler will be called when * the chart's filters have changed, in order to send the filter data asynchronously to a server. * * Unlike other functions in dc.js, the commit handler is asynchronous. It takes two arguments: * a flag indicating whether this is a render (true) or a redraw (false), and a callback to be * triggered once the commit is filtered. The callback has the standard node.js continuation signature * with error first and result second. * @method commitHandler * @memberof dc.baseMixin * @instance * @returns {dc.baseMixin} */ _chart.commitHandler = function (commitHandler) { if (!arguments.length) { return _commitHandler; } _commitHandler = commitHandler; return _chart; }; /** * Redraws all charts in the same group as this chart, typically in reaction to a filter * change. If the chart has a {@link dc.baseMixin.commitFilter commitHandler}, it will * be executed and waited for. * @method redrawGroup * @memberof dc.baseMixin * @instance * @returns {dc.baseMixin} */ _chart.redrawGroup = function () { if (_commitHandler) { _commitHandler(false, function (error, result) { if (error) { console.log(error); } else { dc.redrawAll(_chart.chartGroup()); } }); } else { dc.redrawAll(_chart.chartGroup()); } return _chart; }; /** * Renders all charts in the same group as this chart. If the chart has a * {@link dc.baseMixin.commitFilter commitHandler}, it will be executed and waited for * @method renderGroup * @memberof dc.baseMixin * @instance * @returns {dc.baseMixin} */ _chart.renderGroup = function () { if (_commitHandler) { _commitHandler(false, function (error, result) { if (error) { console.log(error); } else { dc.renderAll(_chart.chartGroup()); } }); } else { dc.renderAll(_chart.chartGroup()); } return _chart; }; _chart._invokeFilteredListener = function (f) { if (f !== undefined) { _listeners.filtered(_chart, f); } }; _chart._invokeZoomedListener = function () { _listeners.zoomed(_chart); }; var _hasFilterHandler = function (filters, filter) { if (filter === null || typeof(filter) === 'undefined') { return filters.length > 0; } return filters.some(function (f) { return filter <= f && filter >= f; }); }; /** * Set or get the has-filter handler. The has-filter handler is a function that checks to see if * the chart's current filters (first argument) include a specific filter (second argument). Using a custom has-filter handler allows * you to change the way filters are checked for and replaced. * @method hasFilterHandler * @memberof dc.baseMixin * @instance * @example * // default has-filter handler * chart.hasFilterHandler(function (filters, filter) { * if (filter === null || typeof(filter) === 'undefined') { * return filters.length > 0; * } * return filters.some(function (f) { * return filter <= f && filter >= f; * }); * }); * * // custom filter handler (no-op) * chart.hasFilterHandler(function(filters, filter) { * return false; * }); * @param {Function} [hasFilterHandler] * @returns {Function|dc.baseMixin} */ _chart.hasFilterHandler = function (hasFilterHandler) { if (!arguments.length) { return _hasFilterHandler; } _hasFilterHandler = hasFilterHandler; return _chart; }; /** * Check whether any active filter or a specific filter is associated with particular chart instance. * This function is **not chainable**. * @method hasFilter * @memberof dc.baseMixin * @instance * @see {@link dc.baseMixin#hasFilterHandler hasFilterHandler} * @param {*} [filter] * @returns {Boolean} */ _chart.hasFilter = function (filter) { return _hasFilterHandler(_filters, filter); }; var _removeFilterHandler = function (filters, filter) { for (var i = 0; i < filters.length; i++) { if (filters[i] <= filter && filters[i] >= filter) { filters.splice(i, 1); break; } } return filters; }; /** * Set or get the remove filter handler. The remove filter handler is a function that removes a * filter from the chart's current filters. Using a custom remove filter handler allows you to * change how filters are removed or perform additional work when removing a filter, e.g. when * using a filter server other than crossfilter. * * The handler should return a new or modified array as the result. * @method removeFilterHandler * @memberof dc.baseMixin * @instance * @example * // default remove filter handler * chart.removeFilterHandler(function (filters, filter) { * for (var i = 0; i < filters.length; i++) { * if (filters[i] <= filter && filters[i] >= filter) { * filters.splice(i, 1); * break; * } * } * return filters; * }); * * // custom filter handler (no-op) * chart.removeFilterHandler(function(filters, filter) { * return filters; * }); * @param {Function} [removeFilterHandler] * @returns {Function|dc.baseMixin} */ _chart.removeFilterHandler = function (removeFilterHandler) { if (!arguments.length) { return _removeFilterHandler; } _removeFilterHandler = removeFilterHandler; return _chart; }; var _addFilterHandler = function (filters, filter) { filters.push(filter); return filters; }; /** * Set or get the add filter handler. The add filter handler is a function that adds a filter to * the chart's filter list. Using a custom add filter handler allows you to change the way filters * are added or perform additional work when adding a filter, e.g. when using a filter server other * than crossfilter. * * The handler should return a new or modified array as the result. * @method addFilterHandler * @memberof dc.baseMixin * @instance * @example * // default add filter handler * chart.addFilterHandler(function (filters, filter) { * filters.push(filter); * return filters; * }); * * // custom filter handler (no-op) * chart.addFilterHandler(function(filters, filter) { * return filters; * }); * @param {Function} [addFilterHandler] * @returns {Function|dc.baseMixin} */ _chart.addFilterHandler = function (addFilterHandler) { if (!arguments.length) { return _addFilterHandler; } _addFilterHandler = addFilterHandler; return _chart; }; var _resetFilterHandler = function (filters) { return []; }; /** * Set or get the reset filter handler. The reset filter handler is a function that resets the * chart's filter list by returning a new list. Using a custom reset filter handler allows you to * change the way filters are reset, or perform additional work when resetting the filters, * e.g. when using a filter server other than crossfilter. * * The handler should return a new or modified array as the result. * @method resetFilterHandler * @memberof dc.baseMixin * @instance * @example * // default remove filter handler * function (filters) { * return []; * } * * // custom filter handler (no-op) * chart.resetFilterHandler(function(filters) { * return filters; * }); * @param {Function} [resetFilterHandler] * @returns {dc.baseMixin} */ _chart.resetFilterHandler = function (resetFilterHandler) { if (!arguments.length) { return _resetFilterHandler; } _resetFilterHandler = resetFilterHandler; return _chart; }; function applyFilters (filters) { if (_chart.dimension() && _chart.dimension().filter) { var fs = _filterHandler(_chart.dimension(), filters); if (fs) { filters = fs; } } return filters; } /** * Replace the chart filter. This is equivalent to calling `chart.filter(null).filter(filter)` * but more efficient because the filter is only applied once. * * @method replaceFilter * @memberof dc.baseMixin * @instance * @param {*} [filter] * @returns {dc.baseMixin} **/ _chart.replaceFilter = function (filter) { _filters = _resetFilterHandler(_filters); _chart.filter(filter); }; /** * Filter the chart by the given parameter, or return the current filter if no input parameter * is given. * * The filter parameter can take one of these forms: * * A single value: the value will be toggled (added if it is not present in the current * filters, removed if it is present) * * An array containing a single array of values (`[[value,value,value]]`): each value is * toggled * * When appropriate for the chart, a {@link dc.filters dc filter object} such as * * {@link dc.filters.RangedFilter `dc.filters.RangedFilter`} for the * {@link dc.coordinateGridMixin dc.coordinateGridMixin} charts * * {@link dc.filters.TwoDimensionalFilter `dc.filters.TwoDimensionalFilter`} for the * {@link dc.heatMap heat map} * * {@link dc.filters.RangedTwoDimensionalFilter `dc.filters.RangedTwoDimensionalFilter`} * for the {@link dc.scatterPlot scatter plot} * * `null`: the filter will be reset using the * {@link dc.baseMixin#resetFilterHandler resetFilterHandler} * * Note that this is always a toggle (even when it doesn't make sense for the filter type). If * you wish to replace the current filter, either call `chart.filter(null)` first - or it's more * efficient to call {@link dc.baseMixin#replaceFilter `chart.replaceFilter(filter)`} instead. * * Each toggle is executed by checking if the value is already present using the * {@link dc.baseMixin#hasFilterHandler hasFilterHandler}; if it is not present, it is added * using the {@link dc.baseMixin#addFilterHandler addFilterHandler}; if it is already present, * it is removed using the {@link dc.baseMixin#removeFilterHandler removeFilterHandler}. * * Once the filters array has been updated, the filters are applied to the * crossfilter dimension, using the {@link dc.baseMixin#filterHandler filterHandler}. * * Once you have set the filters, call {@link dc.baseMixin#redrawGroup `chart.redrawGroup()`} * (or {@link dc.redrawAll `dc.redrawAll()`}) to redraw the chart's group. * @method filter * @memberof dc.baseMixin * @instance * @see {@link dc.baseMixin#addFilterHandler addFilterHandler} * @see {@link dc.baseMixin#removeFilterHandler removeFilterHandler} * @see {@link dc.baseMixin#resetFilterHandler resetFilterHandler} * @see {@link dc.baseMixin#filterHandler filterHandler} * @example * // filter by a single string * chart.filter('Sunday'); * // filter by a single age * chart.filter(18); * // filter by a set of states * chart.filter([['MA', 'TX', 'ND', 'WA']]); * // filter by range -- note the use of dc.filters.RangedFilter, which is different * // from the syntax for filtering a crossfilter dimension directly, dimension.filter([15,20]) * chart.filter(dc.filters.RangedFilter(15,20)); * @param {*} [filter] * @returns {dc.baseMixin} */ _chart.filter = function (filter) { if (!arguments.length) { return _filters.length > 0 ? _filters[0] : null; } var filters = _filters; if (filter instanceof Array && filter[0] instanceof Array && !filter.isFiltered) { // toggle each filter filter[0].forEach(function (f) { if (_hasFilterHandler(filters, f)) { filters = _removeFilterHandler(filters, f); } else { filters = _addFilterHandler(filters, f); } }); } else if (filter === null) { filters = _resetFilterHandler(filters); } else { if (_hasFilterHandler(filters, filter)) { filters = _removeFilterHandler(filters, filter); } else { filters = _addFilterHandler(filters, filter); } } _filters = applyFilters(filters); _chart._invokeFilteredListener(filter); if (_root !== null && _chart.hasFilter()) { _chart.turnOnControls(); } else { _chart.turnOffControls(); } return _chart; }; /** * Returns all current filters. This method does not perform defensive cloning of the internal * filter array before returning, therefore any modification of the returned array will effect the * chart's internal filter storage. * @method filters * @memberof dc.baseMixin * @instance * @returns {Array<*>} */ _chart.filters = function () { return _filters; }; _chart.highlightSelected = function (e) { d3.select(e).classed(dc.constants.SELECTED_CLASS, true); d3.select(e).classed(dc.constants.DESELECTED_CLASS, false); }; _chart.fadeDeselected = function (e) { d3.select(e).classed(dc.constants.SELECTED_CLASS, false); d3.select(e).classed(dc.constants.DESELECTED_CLASS, true); }; _chart.resetHighlight = function (e) { d3.select(e).classed(dc.constants.SELECTED_CLASS, false); d3.select(e).classed(dc.constants.DESELECTED_CLASS, false); }; /** * This function is passed to d3 as the onClick handler for each chart. The default behavior is to * filter on the clicked datum (passed to the callback) and redraw the chart group. * @method onClick * @memberof dc.baseMixin * @instance * @param {*} datum */ _chart.onClick = function (datum) { var filter = _chart.keyAccessor()(datum); dc.events.trigger(function () { _chart.filter(filter); _chart.redrawGroup(); }); }; /** * Set or get the filter handler. The filter handler is a function that performs the filter action * on a specific dimension. Using a custom filter handler allows you to perform additional logic * before or after filtering. * @method filterHandler * @memberof dc.baseMixin * @instance * @see {@link https://github.com/crossfilter/crossfilter/wiki/API-Reference#dimension_filter crossfilter.dimension.filter} * @example * // the default filter handler handles all possible cases for the charts in dc.js * // you can replace it with something more specialized for your own chart * chart.filterHandler(function (dimension, filters) { * if (filters.length === 0) { * // the empty case (no filtering) * dimension.filter(null); * } else if (filters.length === 1 && !filters[0].isFiltered) { * // single value and not a function-based filter * dimension.filterExact(filters[0]); * } else if (filters.length === 1 && filters[0].filterType === 'RangedFilter') { * // single range-based filter * dimension.filterRange(filters[0]); * } else { * // an array of values, or an array of filter objects * dimension.filterFunction(function (d) { * for (var i = 0; i < filters.length; i++) { * var filter = filters[i]; * if (filter.isFiltered && filter.isFiltered(d)) { * return true; * } else if (filter <= d && filter >= d) { * return true; * } * } * return false; * }); * } * return filters; * }); * * // custom filter handler * chart.filterHandler(function(dimension, filter){ * var newFilter = filter + 10; * dimension.filter(newFilter); * return newFilter; // set the actual filter value to the new value * }); * @param {Function} [filterHandler] * @returns {Function|dc.baseMixin} */ _chart.filterHandler = function (filterHandler) { if (!arguments.length) { return _filterHandler; } _filterHandler = filterHandler; return _chart; }; // abstract function stub _chart._doRender = function () { // do nothing in base, should be overridden by sub-function return _chart; }; _chart._doRedraw = function () { // do nothing in base, should be overridden by sub-function return _chart; }; _chart.legendables = function () { // do nothing in base, should be overridden by sub-function return []; }; _chart.legendHighlight = function () { // do nothing in base, should be overridden by sub-function }; _chart.legendReset = function () { // do nothing in base, should be overridden by sub-function }; _chart.legendToggle = function () { // do nothing in base, should be overriden by sub-function }; _chart.isLegendableHidden = function () { // do nothing in base, should be overridden by sub-function return false; }; /** * Set or get the key accessor function. The key accessor function is used to retrieve the key * value from the crossfilter group. Key values are used differently in different charts, for * example keys correspond to slices in a pie chart and x axis positions in a grid coordinate chart. * @method keyAccessor * @memberof dc.baseMixin * @instance * @example * // default key accessor * chart.keyAccessor(function(d) { return d.key; }); * // custom key accessor for a multi-value crossfilter reduction * chart.keyAccessor(function(p) { return p.value.absGain; }); * @param {Function} [keyAccessor] * @returns {Function|dc.baseMixin} */ _chart.keyAccessor = function (keyAccessor) { if (!arguments.length) { return _keyAccessor; } _keyAccessor = keyAccessor; return _chart; }; /** * Set or get the value accessor function. The value accessor function is used to retrieve the * value from the crossfilter group. Group values are used differently in different charts, for * example values correspond to slice sizes in a pie chart and y axis positions in a grid * coordinate chart. * @method valueAccessor * @memberof dc.baseMixin * @instance * @example * // default value accessor * chart.valueAccessor(function(d) { return d.value; }); * // custom value accessor for a multi-value crossfilter reduction * chart.valueAccessor(function(p) { return p.value.percentageGain; }); * @param {Function} [valueAccessor] * @returns {Function|dc.baseMixin} */ _chart.valueAccessor = function (valueAccessor) { if (!arguments.length) { return _valueAccessor; } _valueAccessor = valueAccessor; return _chart; }; /** * Set or get the label function. The chart class will use this function to render labels for each * child element in the chart, e.g. slices in a pie chart or bubbles in a bubble chart. Not every * chart supports the label function, for example line chart does not use this function * at all. By default, enables labels; pass false for the second parameter if this is not desired. * @method label * @memberof dc.baseMixin * @instance * @example * // default label function just return the key * chart.label(function(d) { return d.key; }); * // label function has access to the standard d3 data binding and can get quite complicated * chart.label(function(d) { return d.data.key + '(' + Math.floor(d.data.value / all.value() * 100) + '%)'; }); * @param {Function} [labelFunction] * @param {Boolean} [enableLabels=true] * @returns {Function|dc.baseMixin} */ _chart.label = function (labelFunction, enableLabels) { if (!arguments.length) { return _label; } _label = labelFunction; if ((enableLabels === undefined) || enableLabels) { _renderLabel = true; } return _chart; }; /** * Turn on/off label rendering * @method renderLabel * @memberof dc.baseMixin * @instance * @param {Boolean} [renderLabel=false] * @returns {Boolean|dc.baseMixin} */ _chart.renderLabel = function (renderLabel) { if (!arguments.length) { return _renderLabel; } _renderLabel = renderLabel; return _chart; }; /** * Set or get the title function. The chart class will use this function to render the SVGElement title * (usually interpreted by browser as tooltips) for each child element in the chart, e.g. a slice * in a pie chart or a bubble in a bubble chart. Almost every chart supports the title function; * however in grid coordinate charts you need to turn off the brush in order to see titles, because * otherwise the brush layer will block tooltip triggering. * @method title * @memberof dc.baseMixin * @instance * @example * // default title function shows "key: value" * chart.title(function(d) { return d.key + ': ' + d.value; }); * // title function has access to the standard d3 data binding and can get quite complicated * chart.title(function(p) { * return p.key.getFullYear() * + '\n' * + 'Index Gain: ' + numberFormat(p.value.absGain) + '\n' * + 'Index Gain in Percentage: ' + numberFormat(p.value.percentageGain) + '%\n' * + 'Fluctuation / Index Ratio: ' + numberFormat(p.value.fluctuationPercentage) + '%'; * }); * @param {Function} [titleFunction] * @returns {Function|dc.baseMixin} */ _chart.title = function (titleFunction) { if (!arguments.length) { return _title; } _title = titleFunction; return _chart; }; /** * Turn on/off title rendering, or return the state of the render title flag if no arguments are * given. * @method renderTitle * @memberof dc.baseMixin * @instance * @param {Boolean} [renderTitle=true] * @returns {Boolean|dc.baseMixin} */ _chart.renderTitle = function (renderTitle) { if (!arguments.length) { return _renderTitle; } _renderTitle = renderTitle; return _chart; }; /** * A renderlet is similar to an event listener on rendering event. Multiple renderlets can be added * to an individual chart. Each time a chart is rerendered or redrawn the renderlets are invoked * right after the chart finishes its transitions, giving you a way to modify the SVGElements. * Renderlet functions take the chart instance as the only input parameter and you can * use the dc API or use raw d3 to achieve pretty much any effect. * * Use {@link dc.baseMixin#on on} with a 'renderlet' prefix. * Generates a random key for the renderlet, which makes it hard to remove. * @method renderlet * @memberof dc.baseMixin * @instance * @deprecated * @example * // do this instead of .renderlet(function(chart) { ... }) * chart.on("renderlet", function(chart){ * // mix of dc API and d3 manipulation * chart.select('g.y').style('display', 'none'); * // its a closure so you can also access other chart variable available in the closure scope * moveChart.filter(chart.filter()); * }); * @param {Function} renderletFunction * @returns {dc.baseMixin} */ _chart.renderlet = dc.logger.deprecate(function (renderletFunction) { _chart.on('renderlet.' + dc.utils.uniqueId(), renderletFunction); return _chart; }, 'chart.renderlet has been deprecated. Please use chart.on("renderlet.<renderletKey>", renderletFunction)'); /** * Get or set the chart group to which this chart belongs. Chart groups are rendered or redrawn * together since it is expected they share the same underlying crossfilter data set. * @method chartGroup * @memberof dc.baseMixin * @instance * @param {String} [chartGroup] * @returns {String|dc.baseMixin} */ _chart.chartGroup = function (chartGroup) { if (!arguments.length) { return _chartGroup; } if (!_isChild) { dc.deregisterChart(_chart, _chartGroup); } _chartGroup = chartGroup; if (!_isChild) { dc.registerChart(_chart, _chartGroup); } return _chart; }; /** * Expire the internal chart cache. dc charts cache some data internally on a per chart basis to * speed up rendering and avoid unnecessary calculation; however it might be useful to clear the * cache if you have changed state which will affect rendering. For example, if you invoke * {@link https://github.com/crossfilter/crossfilter/wiki/API-Reference#crossfilter_add crossfilter.add} * function or reset group or dimension after rendering, it is a good idea to * clear the cache to make sure charts are rendered properly. * @method expireCache * @memberof dc.baseMixin * @instance * @returns {dc.baseMixin} */ _chart.expireCache = function () { // do nothing in base, should be overridden by sub-function return _chart; }; /** * Attach a dc.legend widget to this chart. The legend widget will automatically draw legend labels * based on the color setting and names associated with each group. * @method legend * @memberof dc.baseMixin * @instance * @example * chart.legend(dc.legend().x(400).y(10).itemHeight(13).gap(5)) * @param {dc.legend} [legend] * @returns {dc.legend|dc.baseMixin} */ _chart.legend = function (legend) { if (!arguments.length) { return _legend; } _legend = legend; _legend.parent(_chart); return _chart; }; /** * Returns the internal numeric ID of the chart. * @method chartID * @memberof dc.baseMixin * @instance * @returns {String} */ _chart.chartID = function () { return _chart.__dcFlag__; }; /** * Set chart options using a configuration object. Each key in the object will cause the method of * the same name to be called with the value to set that attribute for the chart. * @method options * @memberof dc.baseMixin * @instance * @example * chart.options({dimension: myDimension, group: myGroup}); * @param {{}} opts * @returns {dc.baseMixin} */ _chart.options = function (opts) { var applyOptions = [ 'anchor', 'group', 'xAxisLabel', 'yAxisLabel', 'stack', 'title', 'point', 'getColor', 'overlayGeoJson' ]; for (var o in opts) { if (typeof(_chart[o]) === 'function') { if (opts[o] instanceof Array && applyOptions.indexOf(o) !== -1) { _chart[o].apply(_chart, opts[o]); } else { _chart[o].call(_chart, opts[o]); } } else { dc.logger.debug('Not a valid option setter name: ' + o); } } return _chart; }; /** * All dc chart instance supports the following listeners. * Supports the following events: * * `renderlet` - This listener function will be invoked after transitions after redraw and render. Replaces the * deprecated {@link dc.baseMixin#renderlet renderlet} method. * * `pretransition` - Like `.on('renderlet', ...)` but the event is fired before transitions start. * * `preRender` - This listener function will be invoked before chart rendering. * * `postRender` - This listener function will be invoked after chart finish rendering including * all renderlets' logic. * * `preRedraw` - This listener function will be invoked before chart redrawing. * * `postRedraw` - This listener function will be invoked after chart finish redrawing * including all renderlets' logic. * * `filtered` - This listener function will be invoked after a filter is applied, added or removed. * * `zoomed` - This listener function will be invoked after a zoom is triggered. * @method on * @memberof dc.baseMixin * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Internals.md#dispatch_on d3.dispatch.on} * @example * .on('renderlet', function(chart, filter){...}) * .on('pretransition', function(chart, filter){...}) * .on('preRender', function(chart){...}) * .on('postRender', function(chart){...}) * .on('preRedraw', function(chart){...}) * .on('postRedraw', function(chart){...}) * .on('filtered', function(chart, filter){...}) * .on('zoomed', function(chart, filter){...}) * @param {String} event * @param {Function} listener * @returns {dc.baseMixin} */ _chart.on = function (event, listener) { _listeners.on(event, listener); return _chart; }; return _chart; }; /** * Margin is a mixin that provides margin utility functions for both the Row Chart and Coordinate Grid * Charts. * @name marginMixin * @memberof dc * @mixin * @param {Object} _chart * @returns {dc.marginMixin} */ dc.marginMixin = function (_chart) { var _margin = {top: 10, right: 50, bottom: 30, left: 30}; /** * Get or set the margins for a particular coordinate grid chart instance. The margins is stored as * an associative Javascript array. * @method margins * @memberof dc.marginMixin * @instance * @example * var leftMargin = chart.margins().left; // 30 by default * chart.margins().left = 50; * leftMargin = chart.margins().left; // now 50 * @param {{top: Number, right: Number, left: Number, bottom: Number}} [margins={top: 10, right: 50, bottom: 30, left: 30}] * @returns {{top: Number, right: Number, left: Number, bottom: Number}|dc.marginMixin} */ _chart.margins = function (margins) { if (!arguments.length) { return _margin; } _margin = margins; return _chart; }; _chart.effectiveWidth = function () { return _chart.width() - _chart.margins().left - _chart.margins().right; }; _chart.effectiveHeight = function () { return _chart.height() - _chart.margins().top - _chart.margins().bottom; }; return _chart; }; /** * The Color Mixin is an abstract chart functional class providing universal coloring support * as a mix-in for any concrete chart implementation. * @name colorMixin * @memberof dc * @mixin * @param {Object} _chart * @returns {dc.colorMixin} */ dc.colorMixin = function (_chart) { var _colors = d3.scale.category20c(); var _defaultAccessor = true; var _colorAccessor = function (d) { return _chart.keyAccessor()(d); }; /** * Retrieve current color scale or set a new color scale. This methods accepts any function that * operates like a d3 scale. * @method colors * @memberof dc.colorMixin * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Scales.md d3.scale} * @example * // alternate categorical scale * chart.colors(d3.scale.category20b()); * // ordinal scale * chart.colors(d3.scale.ordinal().range(['red','green','blue'])); * // convenience method, the same as above * chart.ordinalColors(['red','green','blue']); * // set a linear scale * chart.linearColors(["#4575b4", "#ffffbf", "#a50026"]); * @param {d3.scale} [colorScale=d3.scale.category20c()] * @returns {d3.scale|dc.colorMixin} */ _chart.colors = function (colorScale) { if (!arguments.length) { return _colors; } if (colorScale instanceof Array) { _colors = d3.scale.quantize().range(colorScale); // deprecated legacy support, note: this fails for ordinal domains } else { _colors = d3.functor(colorScale); } return _chart; }; /** * Convenience method to set the color scale to * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Ordinal-Scales.md#ordinal d3.scale.ordinal} with * range `r`. * @method ordinalColors * @memberof dc.colorMixin * @instance * @param {Array<String>} r * @returns {dc.colorMixin} */ _chart.ordinalColors = function (r) { return _chart.colors(d3.scale.ordinal().range(r)); }; /** * Convenience method to set the color scale to an Hcl interpolated linear scale with range `r`. * @method linearColors * @memberof dc.colorMixin * @instance * @param {Array<Number>} r * @returns {dc.colorMixin} */ _chart.linearColors = function (r) { return _chart.colors(d3.scale.linear() .range(r) .interpolate(d3.interpolateHcl)); }; /** * Set or the get color accessor function. This function will be used to map a data point in a * crossfilter group to a color value on the color scale. The default function uses the key * accessor. * @method colorAccessor * @memberof dc.colorMixin * @instance * @example * // default index based color accessor * .colorAccessor(function (d, i){return i;}) * // color accessor for a multi-value crossfilter reduction * .colorAccessor(function (d){return d.value.absGain;}) * @param {Function} [colorAccessor] * @returns {Function|dc.colorMixin} */ _chart.colorAccessor = function (colorAccessor) { if (!arguments.length) { return _colorAccessor; } _colorAccessor = colorAccessor; _defaultAccessor = false; return _chart; }; // what is this? _chart.defaultColorAccessor = function () { return _defaultAccessor; }; /** * Set or get the current domain for the color mapping function. The domain must be supplied as an * array. * * Note: previously this method accepted a callback function. Instead you may use a custom scale * set by {@link dc.colorMixin#colors .colors}. * @method colorDomain * @memberof dc.colorMixin * @instance * @param {Array<String>} [domain] * @returns {Array<String>|dc.colorMixin} */ _chart.colorDomain = function (domain) { if (!arguments.length) { return _colors.domain(); } _colors.domain(domain); return _chart; }; /** * Set the domain by determining the min and max values as retrieved by * {@link dc.colorMixin#colorAccessor .colorAccessor} over the chart's dataset. * @method calculateColorDomain * @memberof dc.colorMixin * @instance * @returns {dc.colorMixin} */ _chart.calculateColorDomain = function () { var newDomain = [d3.min(_chart.data(), _chart.colorAccessor()), d3.max(_chart.data(), _chart.colorAccessor())]; _colors.domain(newDomain); return _chart; }; /** * Get the color for the datum d and counter i. This is used internally by charts to retrieve a color. * @method getColor * @memberof dc.colorMixin * @instance * @param {*} d * @param {Number} [i] * @returns {String} */ _chart.getColor = function (d, i) { return _colors(_colorAccessor.call(this, d, i)); }; /** * **Deprecated.** Get/set the color calculator. This actually replaces the * {@link dc.colorMixin#getColor getColor} method! * * This is not recommended, since using a {@link dc.colorMixin#colorAccessor colorAccessor} and * color scale ({@link dc.colorMixin#colors .colors}) is more powerful and idiomatic d3. * @method colorCalculator * @memberof dc.colorMixin * @instance * @param {*} [colorCalculator] * @returns {Function|dc.colorMixin} */ _chart.colorCalculator = dc.logger.deprecate(function (colorCalculator) { if (!arguments.length) { return _chart.getColor; } _chart.getColor = colorCalculator; return _chart; }, 'colorMixin.colorCalculator has been deprecated. Please colorMixin.colors and colorMixin.colorAccessor instead'); return _chart; }; /** * Coordinate Grid is an abstract base chart designed to support a number of coordinate grid based * concrete chart types, e.g. bar chart, line chart, and bubble chart. * @name coordinateGridMixin * @memberof dc * @mixin * @mixes dc.colorMixin * @mixes dc.marginMixin * @mixes dc.baseMixin * @param {Object} _chart * @returns {dc.coordinateGridMixin} */ dc.coordinateGridMixin = function (_chart) { var GRID_LINE_CLASS = 'grid-line'; var HORIZONTAL_CLASS = 'horizontal'; var VERTICAL_CLASS = 'vertical'; var Y_AXIS_LABEL_CLASS = 'y-axis-label'; var X_AXIS_LABEL_CLASS = 'x-axis-label'; var DEFAULT_AXIS_LABEL_PADDING = 12; _chart = dc.colorMixin(dc.marginMixin(dc.baseMixin(_chart))); _chart.colors(d3.scale.category10()); _chart._mandatoryAttributes().push('x'); var _parent; var _g; var _chartBodyG; var _x; var _xOriginalDomain; var _xAxis = d3.svg.axis().orient('bottom'); var _xUnits = dc.units.integers; var _xAxisPadding = 0; var _xAxisPaddingUnit = 'day'; var _xElasticity = false; var _xAxisLabel; var _xAxisLabelPadding = 0; var _lastXDomain; var _y; var _yAxis = d3.svg.axis().orient('left'); var _yAxisPadding = 0; var _yElasticity = false; var _yAxisLabel; var _yAxisLabelPadding = 0; var _brush = d3.svg.brush(); var _brushOn = true; var _round; var _renderHorizontalGridLine = false; var _renderVerticalGridLine = false; var _refocused = false, _resizing = false; var _unitCount; var _zoomScale = [1, Infinity]; var _zoomOutRestrict = true; var _zoom = d3.behavior.zoom().on('zoom', zoomHandler); var _nullZoom = d3.behavior.zoom().on('zoom', null); var _hasBeenMouseZoomable = false; var _rangeChart; var _focusChart; var _mouseZoomable = false; var _clipPadding = 0; var _outerRangeBandPadding = 0.5; var _rangeBandPadding = 0; var _useRightYAxis = false; /** * When changing the domain of the x or y scale, it is necessary to tell the chart to recalculate * and redraw the axes. (`.rescale()` is called automatically when the x or y scale is replaced * with {@link dc.coordinateGridMixin+x .x()} or {@link dc.coordinateGridMixin#y .y()}, and has * no effect on elastic scales.) * @method rescale * @memberof dc.coordinateGridMixin * @instance * @returns {dc.coordinateGridMixin} */ _chart.rescale = function () { _unitCount = undefined; _resizing = true; return _chart; }; _chart.resizing = function () { return _resizing; }; /** * Get or set the range selection chart associated with this instance. Setting the range selection * chart using this function will automatically update its selection brush when the current chart * zooms in. In return the given range chart will also automatically attach this chart as its focus * chart hence zoom in when range brush updates. * * Usually the range and focus charts will share a dimension. The range chart will set the zoom * boundaries for the focus chart, so its dimension values must be compatible with the domain of * the focus chart. * * See the [Nasdaq 100 Index](http://dc-js.github.com/dc.js/) example for this effect in action. * @method rangeChart * @memberof dc.coordinateGridMixin * @instance * @param {dc.coordinateGridMixin} [rangeChart] * @returns {dc.coordinateGridMixin} */ _chart.rangeChart = function (rangeChart) { if (!arguments.length) { return _rangeChart; } _rangeChart = rangeChart; _rangeChart.focusChart(_chart); return _chart; }; /** * Get or set the scale extent for mouse zooms. * @method zoomScale * @memberof dc.coordinateGridMixin * @instance * @param {Array<Number|Date>} [extent=[1, Infinity]] * @returns {Array<Number|Date>|dc.coordinateGridMixin} */ _chart.zoomScale = function (extent) { if (!arguments.length) { return _zoomScale; } _zoomScale = extent; return _chart; }; /** * Get or set the zoom restriction for the chart. If true limits the zoom to origional domain of the chart. * @method zoomOutRestrict * @memberof dc.coordinateGridMixin * @instance * @param {Boolean} [zoomOutRestrict=true] * @returns {Boolean|dc.coordinateGridMixin} */ _chart.zoomOutRestrict = function (zoomOutRestrict) { if (!arguments.length) { return _zoomOutRestrict; } _zoomScale[0] = zoomOutRestrict ? 1 : 0; _zoomOutRestrict = zoomOutRestrict; return _chart; }; _chart._generateG = function (parent) { if (parent === undefined) { _parent = _chart.svg(); } else { _parent = parent; } var href = window.location.href.split('#')[0]; _g = _parent.append('g'); _chartBodyG = _g.append('g').attr('class', 'chart-body') .attr('transform', 'translate(' + _chart.margins().left + ', ' + _chart.margins().top + ')') .attr('clip-path', 'url(' + href + '#' + getClipPathId() + ')'); return _g; }; /** * Get or set the root g element. This method is usually used to retrieve the g element in order to * overlay custom svg drawing programatically. **Caution**: The root g element is usually generated * by dc.js internals, and resetting it might produce unpredictable result. * @method g * @memberof dc.coordinateGridMixin * @instance * @param {SVGElement} [gElement] * @returns {SVGElement|dc.coordinateGridMixin} */ _chart.g = function (gElement) { if (!arguments.length) { return _g; } _g = gElement; return _chart; }; /** * Set or get mouse zoom capability flag (default: false). When turned on the chart will be * zoomable using the mouse wheel. If the range selector chart is attached zooming will also update * the range selection brush on the associated range selector chart. * @method mouseZoomable * @memberof dc.coordinateGridMixin * @instance * @param {Boolean} [mouseZoomable=false] * @returns {Boolean|dc.coordinateGridMixin} */ _chart.mouseZoomable = function (mouseZoomable) { if (!arguments.length) { return _mouseZoomable; } _mouseZoomable = mouseZoomable; return _chart; }; /** * Retrieve the svg group for the chart body. * @method chartBodyG * @memberof dc.coordinateGridMixin * @instance * @param {SVGElement} [chartBodyG] * @returns {SVGElement} */ _chart.chartBodyG = function (chartBodyG) { if (!arguments.length) { return _chartBodyG; } _chartBodyG = chartBodyG; return _chart; }; /** * **mandatory** * * Get or set the x scale. The x scale can be any d3 * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Quantitative-Scales.md quantitive scale} or * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Ordinal-Scales.md ordinal scale}. * @method x * @memberof dc.coordinateGridMixin * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Scales.md d3.scale} * @example * // set x to a linear scale * chart.x(d3.scale.linear().domain([-2500, 2500])) * // set x to a time scale to generate histogram * chart.x(d3.time.scale().domain([new Date(1985, 0, 1), new Date(2012, 11, 31)])) * @param {d3.scale} [xScale] * @returns {d3.scale|dc.coordinateGridMixin} */ _chart.x = function (xScale) { if (!arguments.length) { return _x; } _x = xScale; _xOriginalDomain = _x.domain(); _chart.rescale(); return _chart; }; _chart.xOriginalDomain = function () { return _xOriginalDomain; }; /** * Set or get the xUnits function. The coordinate grid chart uses the xUnits function to calculate * the number of data projections on x axis such as the number of bars for a bar chart or the * number of dots for a line chart. This function is expected to return a Javascript array of all * data points on x axis, or the number of points on the axis. [d3 time range functions * d3.time.days, d3.time.months, and * d3.time.years](https://github.com/d3/d3-3.x-api-reference/blob/master/Time-Intervals.md#aliases) are all valid xUnits * function. dc.js also provides a few units function, see the {@link dc.units Units Namespace} for * a list of built-in units functions. * @method xUnits * @memberof dc.coordinateGridMixin * @instance * @todo Add docs for utilities * @example * // set x units to count days * chart.xUnits(d3.time.days); * // set x units to count months * chart.xUnits(d3.time.months); * * // A custom xUnits function can be used as long as it follows the following interface: * // units in integer * function(start, end, xDomain) { * // simply calculates how many integers in the domain * return Math.abs(end - start); * }; * * // fixed units * function(start, end, xDomain) { * // be aware using fixed units will disable the focus/zoom ability on the chart * return 1000; * @param {Function} [xUnits=dc.units.integers] * @returns {Function|dc.coordinateGridMixin} */ _chart.xUnits = function (xUnits) { if (!arguments.length) { return _xUnits; } _xUnits = xUnits; return _chart; }; /** * Set or get the x axis used by a particular coordinate grid chart instance. This function is most * useful when x axis customization is required. The x axis in dc.js is an instance of a * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Axes.md#axis d3 axis object}; * therefore it supports any valid d3 axis manipulation. * * **Caution**: The x axis is usually generated internally by dc; resetting it may cause * unexpected results. Note also that when used as a getter, this function is not chainable: * it returns the axis, not the chart, * {@link https://github.com/dc-js/dc.js/wiki/FAQ#why-does-everything-break-after-a-call-to-xaxis-or-yaxis * so attempting to call chart functions after calling `.xAxis()` will fail}. * @method xAxis * @memberof dc.coordinateGridMixin * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Axes.md#axis d3.svg.axis} * @example * // customize x axis tick format * chart.xAxis().tickFormat(function(v) {return v + '%';}); * // customize x axis tick values * chart.xAxis().tickValues([0, 100, 200, 300]); * @param {d3.svg.axis} [xAxis=d3.svg.axis().orient('bottom')] * @returns {d3.svg.axis|dc.coordinateGridMixin} */ _chart.xAxis = function (xAxis) { if (!arguments.length) { return _xAxis; } _xAxis = xAxis; return _chart; }; /** * Turn on/off elastic x axis behavior. If x axis elasticity is turned on, then the grid chart will * attempt to recalculate the x axis range whenever a redraw event is triggered. * @method elasticX * @memberof dc.coordinateGridMixin * @instance * @param {Boolean} [elasticX=false] * @returns {Boolean|dc.coordinateGridMixin} */ _chart.elasticX = function (elasticX) { if (!arguments.length) { return _xElasticity; } _xElasticity = elasticX; return _chart; }; /** * Set or get x axis padding for the elastic x axis. The padding will be added to both end of the x * axis if elasticX is turned on; otherwise it is ignored. * * Padding can be an integer or percentage in string (e.g. '10%'). Padding can be applied to * number or date x axes. When padding a date axis, an integer represents number of units being padded * and a percentage string will be treated the same as an integer. The unit will be determined by the * xAxisPaddingUnit variable. * @method xAxisPadding * @memberof dc.coordinateGridMixin * @instance * @param {Number|String} [padding=0] * @returns {Number|String|dc.coordinateGridMixin} */ _chart.xAxisPadding = function (padding) { if (!arguments.length) { return _xAxisPadding; } _xAxisPadding = padding; return _chart; }; /** * Set or get x axis padding unit for the elastic x axis. The padding unit will determine which unit to * use when applying xAxis padding if elasticX is turned on and if x-axis uses a time dimension; * otherwise it is ignored. * * Padding unit is a string that will be used when the padding is calculated. Available parameters are * the available d3 time intervals; see * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Time-Intervals.md#interval d3.time.interval}. * @method xAxisPaddingUnit * @memberof dc.coordinateGridMixin * @instance * @param {String} [unit='days'] * @returns {String|dc.coordinateGridMixin} */ _chart.xAxisPaddingUnit = function (unit) { if (!arguments.length) { return _xAxisPaddingUnit; } _xAxisPaddingUnit = unit; return _chart; }; /** * Returns the number of units displayed on the x axis using the unit measure configured by * {@link dc.coordinateGridMixin#xUnits xUnits}. * @method xUnitCount * @memberof dc.coordinateGridMixin * @instance * @returns {Number} */ _chart.xUnitCount = function () { if (_unitCount === undefined) { var units = _chart.xUnits()(_chart.x().domain()[0], _chart.x().domain()[1], _chart.x().domain()); if (units instanceof Array) { _unitCount = units.length; } else { _unitCount = units; } } return _unitCount; }; /** * Gets or sets whether the chart should be drawn with a right axis instead of a left axis. When * used with a chart in a composite chart, allows both left and right Y axes to be shown on a * chart. * @method useRightYAxis * @memberof dc.coordinateGridMixin * @instance * @param {Boolean} [useRightYAxis=false] * @returns {Boolean|dc.coordinateGridMixin} */ _chart.useRightYAxis = function (useRightYAxis) { if (!arguments.length) { return _useRightYAxis; } _useRightYAxis = useRightYAxis; return _chart; }; /** * Returns true if the chart is using ordinal xUnits ({@link dc.units.ordinal dc.units.ordinal}, or false * otherwise. Most charts behave differently with ordinal data and use the result of this method to * trigger the appropriate logic. * @method isOrdinal * @memberof dc.coordinateGridMixin * @instance * @returns {Boolean} */ _chart.isOrdinal = function () { return _chart.xUnits() === dc.units.ordinal; }; _chart._useOuterPadding = function () { return true; }; _chart._ordinalXDomain = function () { var groups = _chart._computeOrderedGroups(_chart.data()); return groups.map(_chart.keyAccessor()); }; function compareDomains (d1, d2) { return !d1 || !d2 || d1.length !== d2.length || d1.some(function (elem, i) { return (elem && d2[i]) ? elem.toString() !== d2[i].toString() : elem === d2[i]; }); } function prepareXAxis (g, render) { if (!_chart.isOrdinal()) { if (_chart.elasticX()) { _x.domain([_chart.xAxisMin(), _chart.xAxisMax()]); } } else { // _chart.isOrdinal() if (_chart.elasticX() || _x.domain().length === 0) { _x.domain(_chart._ordinalXDomain()); } } // has the domain changed? var xdom = _x.domain(); if (render || compareDomains(_lastXDomain, xdom)) { _chart.rescale(); } _lastXDomain = xdom; // please can't we always use rangeBands for bar charts? if (_chart.isOrdinal()) { _x.rangeBands([0, _chart.xAxisLength()], _rangeBandPadding, _chart._useOuterPadding() ? _outerRangeBandPadding : 0); } else { _x.range([0, _chart.xAxisLength()]); } _xAxis = _xAxis.scale(_chart.x()); renderVerticalGridLines(g); } _chart.renderXAxis = function (g) { var axisXG = g.select('g.x'); if (axisXG.empty()) { axisXG = g.append('g') .attr('class', 'axis x') .attr('transform', 'translate(' + _chart.margins().left + ',' + _chart._xAxisY() + ')'); } var axisXLab = g.select('text.' + X_AXIS_LABEL_CLASS); if (axisXLab.empty() && _chart.xAxisLabel()) { axisXLab = g.append('text') .attr('class', X_AXIS_LABEL_CLASS) .attr('transform', 'translate(' + (_chart.margins().left + _chart.xAxisLength() / 2) + ',' + (_chart.height() - _xAxisLabelPadding) + ')') .attr('text-anchor', 'middle'); } if (_chart.xAxisLabel() && axisXLab.text() !== _chart.xAxisLabel()) { axisXLab.text(_chart.xAxisLabel()); } dc.transition(axisXG, _chart.transitionDuration(), _chart.transitionDelay()) .attr('transform', 'translate(' + _chart.margins().left + ',' + _chart._xAxisY() + ')') .call(_xAxis); dc.transition(axisXLab, _chart.transitionDuration(), _chart.transitionDelay()) .attr('transform', 'translate(' + (_chart.margins().left + _chart.xAxisLength() / 2) + ',' + (_chart.height() - _xAxisLabelPadding) + ')'); }; function renderVerticalGridLines (g) { var gridLineG = g.select('g.' + VERTICAL_CLASS); if (_renderVerticalGridLine) { if (gridLineG.empty()) { gridLineG = g.insert('g', ':first-child') .attr('class', GRID_LINE_CLASS + ' ' + VERTICAL_CLASS) .attr('transform', 'translate(' + _chart.margins().left + ',' + _chart.margins().top + ')'); } var ticks = _xAxis.tickValues() ? _xAxis.tickValues() : (typeof _x.ticks === 'function' ? _x.ticks(_xAxis.ticks()[0]) : _x.domain()); var lines = gridLineG.selectAll('line') .data(ticks); // enter var linesGEnter = lines.enter() .append('line') .attr('x1', function (d) { return _x(d); }) .attr('y1', _chart._xAxisY() - _chart.margins().top) .attr('x2', function (d) { return _x(d); }) .attr('y2', 0) .attr('opacity', 0); dc.transition(linesGEnter, _chart.transitionDuration(), _chart.transitionDelay()) .attr('opacity', 1); // update dc.transition(lines, _chart.transitionDuration(), _chart.transitionDelay()) .attr('x1', function (d) { return _x(d); }) .attr('y1', _chart._xAxisY() - _chart.margins().top) .attr('x2', function (d) { return _x(d); }) .attr('y2', 0); // exit lines.exit().remove(); } else { gridLineG.selectAll('line').remove(); } } _chart._xAxisY = function () { return (_chart.height() - _chart.margins().bottom); }; _chart.xAxisLength = function () { return _chart.effectiveWidth(); }; /** * Set or get the x axis label. If setting the label, you may optionally include additional padding to * the margin to make room for the label. By default the padded is set to 12 to accomodate the text height. * @method xAxisLabel * @memberof dc.coordinateGridMixin * @instance * @param {String} [labelText] * @param {Number} [padding=12] * @returns {String} */ _chart.xAxisLabel = function (labelText, padding) { if (!arguments.length) { return _xAxisLabel; } _xAxisLabel = labelText; _chart.margins().bottom -= _xAxisLabelPadding; _xAxisLabelPadding = (padding === undefined) ? DEFAULT_AXIS_LABEL_PADDING : padding; _chart.margins().bottom += _xAxisLabelPadding; return _chart; }; _chart._prepareYAxis = function (g) { if (_y === undefined || _chart.elasticY()) { if (_y === undefined) { _y = d3.scale.linear(); } var min = _chart.yAxisMin() || 0, max = _chart.yAxisMax() || 0; _y.domain([min, max]).rangeRound([_chart.yAxisHeight(), 0]); } _y.range([_chart.yAxisHeight(), 0]); _yAxis = _yAxis.scale(_y); if (_useRightYAxis) { _yAxis.orient('right'); } _chart._renderHorizontalGridLinesForAxis(g, _y, _yAxis); }; _chart.renderYAxisLabel = function (axisClass, text, rotation, labelXPosition) { labelXPosition = labelXPosition || _yAxisLabelPadding; var axisYLab = _chart.g().select('text.' + Y_AXIS_LABEL_CLASS + '.' + axisClass + '-label'); var labelYPosition = (_chart.margins().top + _chart.yAxisHeight() / 2); if (axisYLab.empty() && text) { axisYLab = _chart.g().append('text') .attr('transform', 'translate(' + labelXPosition + ',' + labelYPosition + '),rotate(' + rotation + ')') .attr('class', Y_AXIS_LABEL_CLASS + ' ' + axisClass + '-label') .attr('text-anchor', 'middle') .text(text); } if (text && axisYLab.text() !== text) { axisYLab.text(text); } dc.transition(axisYLab, _chart.transitionDuration(), _chart.transitionDelay()) .attr('transform', 'translate(' + labelXPosition + ',' + labelYPosition + '),rotate(' + rotation + ')'); }; _chart.renderYAxisAt = function (axisClass, axis, position) { var axisYG = _chart.g().select('g.' + axisClass); if (axisYG.empty()) { axisYG = _chart.g().append('g') .attr('class', 'axis ' + axisClass) .attr('transform', 'translate(' + position + ',' + _chart.margins().top + ')'); } dc.transition(axisYG, _chart.transitionDuration(), _chart.transitionDelay()) .attr('transform', 'translate(' + position + ',' + _chart.margins().top + ')') .call(axis); }; _chart.renderYAxis = function () { var axisPosition = _useRightYAxis ? (_chart.width() - _chart.margins().right) : _chart._yAxisX(); _chart.renderYAxisAt('y', _yAxis, axisPosition); var labelPosition = _useRightYAxis ? (_chart.width() - _yAxisLabelPadding) : _yAxisLabelPadding; var rotation = _useRightYAxis ? 90 : -90; _chart.renderYAxisLabel('y', _chart.yAxisLabel(), rotation, labelPosition); }; _chart._renderHorizontalGridLinesForAxis = function (g, scale, axis) { var gridLineG = g.select('g.' + HORIZONTAL_CLASS); if (_renderHorizontalGridLine) { var ticks = axis.tickValues() ? axis.tickValues() : scale.ticks(axis.ticks()[0]); if (gridLineG.empty()) { gridLineG = g.insert('g', ':first-child') .attr('class', GRID_LINE_CLASS + ' ' + HORIZONTAL_CLASS) .attr('transform', 'translate(' + _chart.margins().left + ',' + _chart.margins().top + ')'); } var lines = gridLineG.selectAll('line') .data(ticks); // enter var linesGEnter = lines.enter() .append('line') .attr('x1', 1) .attr('y1', function (d) { return scale(d); }) .attr('x2', _chart.xAxisLength()) .attr('y2', function (d) { return scale(d); }) .attr('opacity', 0); dc.transition(linesGEnter, _chart.transitionDuration(), _chart.transitionDelay()) .attr('opacity', 1); // update dc.transition(lines, _chart.transitionDuration(), _chart.transitionDelay()) .attr('x1', 1) .attr('y1', function (d) { return scale(d); }) .attr('x2', _chart.xAxisLength()) .attr('y2', function (d) { return scale(d); }); // exit lines.exit().remove(); } else { gridLineG.selectAll('line').remove(); } }; _chart._yAxisX = function () { return _chart.useRightYAxis() ? _chart.width() - _chart.margins().right : _chart.margins().left; }; /** * Set or get the y axis label. If setting the label, you may optionally include additional padding * to the margin to make room for the label. By default the padding is set to 12 to accommodate the * text height. * @method yAxisLabel * @memberof dc.coordinateGridMixin * @instance * @param {String} [labelText] * @param {Number} [padding=12] * @returns {String|dc.coordinateGridMixin} */ _chart.yAxisLabel = function (labelText, padding) { if (!arguments.length) { return _yAxisLabel; } _yAxisLabel = labelText; _chart.margins().left -= _yAxisLabelPadding; _yAxisLabelPadding = (padding === undefined) ? DEFAULT_AXIS_LABEL_PADDING : padding; _chart.margins().left += _yAxisLabelPadding; return _chart; }; /** * Get or set the y scale. The y scale is typically automatically determined by the chart implementation. * @method y * @memberof dc.coordinateGridMixin * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Scales.md d3.scale} * @param {d3.scale} [yScale] * @returns {d3.scale|dc.coordinateGridMixin} */ _chart.y = function (yScale) { if (!arguments.length) { return _y; } _y = yScale; _chart.rescale(); return _chart; }; /** * Set or get the y axis used by the coordinate grid chart instance. This function is most useful * when y axis customization is required. The y axis in dc.js is simply an instance of a [d3 axis * object](https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Axes.md#axis); therefore it supports any * valid d3 axis manipulation. * * **Caution**: The y axis is usually generated internally by dc; resetting it may cause * unexpected results. Note also that when used as a getter, this function is not chainable: it * returns the axis, not the chart, * {@link https://github.com/dc-js/dc.js/wiki/FAQ#why-does-everything-break-after-a-call-to-xaxis-or-yaxis * so attempting to call chart functions after calling `.yAxis()` will fail}. * @method yAxis * @memberof dc.coordinateGridMixin * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Axes.md#axis d3.svg.axis} * @example * // customize y axis tick format * chart.yAxis().tickFormat(function(v) {return v + '%';}); * // customize y axis tick values * chart.yAxis().tickValues([0, 100, 200, 300]); * @param {d3.svg.axis} [yAxis=d3.svg.axis().orient('left')] * @returns {d3.svg.axis|dc.coordinateGridMixin} */ _chart.yAxis = function (yAxis) { if (!arguments.length) { return _yAxis; } _yAxis = yAxis; return _chart; }; /** * Turn on/off elastic y axis behavior. If y axis elasticity is turned on, then the grid chart will * attempt to recalculate the y axis range whenever a redraw event is triggered. * @method elasticY * @memberof dc.coordinateGridMixin * @instance * @param {Boolean} [elasticY=false] * @returns {Boolean|dc.coordinateGridMixin} */ _chart.elasticY = function (elasticY) { if (!arguments.length) { return _yElasticity; } _yElasticity = elasticY; return _chart; }; /** * Turn on/off horizontal grid lines. * @method renderHorizontalGridLines * @memberof dc.coordinateGridMixin * @instance * @param {Boolean} [renderHorizontalGridLines=false] * @returns {Boolean|dc.coordinateGridMixin} */ _chart.renderHorizontalGridLines = function (renderHorizontalGridLines) { if (!arguments.length) { return _renderHorizontalGridLine; } _renderHorizontalGridLine = renderHorizontalGridLines; return _chart; }; /** * Turn on/off vertical grid lines. * @method renderVerticalGridLines * @memberof dc.coordinateGridMixin * @instance * @param {Boolean} [renderVerticalGridLines=false] * @returns {Boolean|dc.coordinateGridMixin} */ _chart.renderVerticalGridLines = function (renderVerticalGridLines) { if (!arguments.length) { return _renderVerticalGridLine; } _renderVerticalGridLine = renderVerticalGridLines; return _chart; }; /** * Calculates the minimum x value to display in the chart. Includes xAxisPadding if set. * @method xAxisMin * @memberof dc.coordinateGridMixin * @instance * @returns {*} */ _chart.xAxisMin = function () { var min = d3.min(_chart.data(), function (e) { return _chart.keyAccessor()(e); }); return dc.utils.subtract(min, _xAxisPadding, _xAxisPaddingUnit); }; /** * Calculates the maximum x value to display in the chart. Includes xAxisPadding if set. * @method xAxisMax * @memberof dc.coordinateGridMixin * @instance * @returns {*} */ _chart.xAxisMax = function () { var max = d3.max(_chart.data(), function (e) { return _chart.keyAccessor()(e); }); return dc.utils.add(max, _xAxisPadding, _xAxisPaddingUnit); }; /** * Calculates the minimum y value to display in the chart. Includes yAxisPadding if set. * @method yAxisMin * @memberof dc.coordinateGridMixin * @instance * @returns {*} */ _chart.yAxisMin = function () { var min = d3.min(_chart.data(), function (e) { return _chart.valueAccessor()(e); }); return dc.utils.subtract(min, _yAxisPadding); }; /** * Calculates the maximum y value to display in the chart. Includes yAxisPadding if set. * @method yAxisMax * @memberof dc.coordinateGridMixin * @instance * @returns {*} */ _chart.yAxisMax = function () { var max = d3.max(_chart.data(), function (e) { return _chart.valueAccessor()(e); }); return dc.utils.add(max, _yAxisPadding); }; /** * Set or get y axis padding for the elastic y axis. The padding will be added to the top and * bottom of the y axis if elasticY is turned on; otherwise it is ignored. * * Padding can be an integer or percentage in string (e.g. '10%'). Padding can be applied to * number or date axes. When padding a date axis, an integer represents number of days being padded * and a percentage string will be treated the same as an integer. * @method yAxisPadding * @memberof dc.coordinateGridMixin * @instance * @param {Number|String} [padding=0] * @returns {Number|dc.coordinateGridMixin} */ _chart.yAxisPadding = function (padding) { if (!arguments.length) { return _yAxisPadding; } _yAxisPadding = padding; return _chart; }; _chart.yAxisHeight = function () { return _chart.effectiveHeight(); }; /** * Set or get the rounding function used to quantize the selection when brushing is enabled. * @method round * @memberof dc.coordinateGridMixin * @instance * @example * // set x unit round to by month, this will make sure range selection brush will * // select whole months * chart.round(d3.time.month.round); * @param {Function} [round] * @returns {Function|dc.coordinateGridMixin} */ _chart.round = function (round) { if (!arguments.length) { return _round; } _round = round; return _chart; }; _chart._rangeBandPadding = function (_) { if (!arguments.length) { return _rangeBandPadding; } _rangeBandPadding = _; return _chart; }; _chart._outerRangeBandPadding = function (_) { if (!arguments.length) { return _outerRangeBandPadding; } _outerRangeBandPadding = _; return _chart; }; dc.override(_chart, 'filter', function (_) { if (!arguments.length) { return _chart._filter(); } _chart._filter(_); if (_) { _chart.brush().extent(_); } else { _chart.brush().clear(); } return _chart; }); _chart.brush = function (_) { if (!arguments.length) { return _brush; } _brush = _; return _chart; }; function brushHeight () { return _chart._xAxisY() - _chart.margins().top; } _chart.renderBrush = function (g) { if (_brushOn) { _brush.on('brush', _chart._brushing); _brush.on('brushstart', _chart._disableMouseZoom); _brush.on('brushend', configureMouseZoom); var gBrush = g.append('g') .attr('class', 'brush') .attr('transform', 'translate(' + _chart.margins().left + ',' + _chart.margins().top + ')') .call(_brush.x(_chart.x())); _chart.setBrushY(gBrush, false); _chart.setHandlePaths(gBrush); if (_chart.hasFilter()) { _chart.redrawBrush(g, false); } } }; _chart.setHandlePaths = function (gBrush) { gBrush.selectAll('.resize').append('path').attr('d', _chart.resizeHandlePath); }; _chart.setBrushY = function (gBrush) { gBrush.selectAll('rect') .attr('height', brushHeight()); gBrush.selectAll('.resize path') .attr('d', _chart.resizeHandlePath); }; _chart.extendBrush = function () { var extent = _brush.extent(); if (_chart.round()) { extent[0] = extent.map(_chart.round())[0]; extent[1] = extent.map(_chart.round())[1]; _g.select('.brush') .call(_brush.extent(extent)); } return extent; }; _chart.brushIsEmpty = function (extent) { return _brush.empty() || !extent || extent[1] <= extent[0]; }; _chart._brushing = function () { var extent = _chart.extendBrush(); _chart.redrawBrush(_g, false); if (_chart.brushIsEmpty(extent)) { dc.events.trigger(function () { _chart.filter(null); _chart.redrawGroup(); }, dc.constants.EVENT_DELAY); } else { var rangedFilter = dc.filters.RangedFilter(extent[0], extent[1]); dc.events.trigger(function () { _chart.replaceFilter(rangedFilter); _chart.redrawGroup(); }, dc.constants.EVENT_DELAY); } }; _chart.redrawBrush = function (g, doTransition) { if (_brushOn) { if (_chart.filter() && _chart.brush().empty()) { _chart.brush().extent(_chart.filter()); } var gBrush = dc.optionalTransition(doTransition, _chart.transitionDuration(), _chart.transitionDelay())(g.select('g.brush')); _chart.setBrushY(gBrush); gBrush.call(_chart.brush() .x(_chart.x()) .extent(_chart.brush().extent())); } _chart.fadeDeselectedArea(); }; _chart.fadeDeselectedArea = function () { // do nothing, sub-chart should override this function }; // borrowed from Crossfilter example _chart.resizeHandlePath = function (d) { var e = +(d === 'e'), x = e ? 1 : -1, y = brushHeight() / 3; return 'M' + (0.5 * x) + ',' + y + 'A6,6 0 0 ' + e + ' ' + (6.5 * x) + ',' + (y + 6) + 'V' + (2 * y - 6) + 'A6,6 0 0 ' + e + ' ' + (0.5 * x) + ',' + (2 * y) + 'Z' + 'M' + (2.5 * x) + ',' + (y + 8) + 'V' + (2 * y - 8) + 'M' + (4.5 * x) + ',' + (y + 8) + 'V' + (2 * y - 8); }; function getClipPathId () { return _chart.anchorName().replace(/[ .#=\[\]]/g, '-') + '-clip'; } /** * Get or set the padding in pixels for the clip path. Once set padding will be applied evenly to * the top, left, right, and bottom when the clip path is generated. If set to zero, the clip area * will be exactly the chart body area minus the margins. * @method clipPadding * @memberof dc.coordinateGridMixin * @instance * @param {Number} [padding=5] * @returns {Number|dc.coordinateGridMixin} */ _chart.clipPadding = function (padding) { if (!arguments.length) { return _clipPadding; } _clipPadding = padding; return _chart; }; function generateClipPath () { var defs = dc.utils.appendOrSelect(_parent, 'defs'); // cannot select <clippath> elements; bug in WebKit, must select by id // https://groups.google.com/forum/#!topic/d3-js/6EpAzQ2gU9I var id = getClipPathId(); var chartBodyClip = dc.utils.appendOrSelect(defs, '#' + id, 'clipPath').attr('id', id); var padding = _clipPadding * 2; dc.utils.appendOrSelect(chartBodyClip, 'rect') .attr('width', _chart.xAxisLength() + padding) .attr('height', _chart.yAxisHeight() + padding) .attr('transform', 'translate(-' + _clipPadding + ', -' + _clipPadding + ')'); } _chart._preprocessData = function () {}; _chart._doRender = function () { _chart.resetSvg(); _chart._preprocessData(); _chart._generateG(); generateClipPath(); drawChart(true); configureMouseZoom(); return _chart; }; _chart._doRedraw = function () { _chart._preprocessData(); drawChart(false); generateClipPath(); return _chart; }; function drawChart (render) { if (_chart.isOrdinal()) { _brushOn = false; } prepareXAxis(_chart.g(), render); _chart._prepareYAxis(_chart.g()); _chart.plotData(); if (_chart.elasticX() || _resizing || render) { _chart.renderXAxis(_chart.g()); } if (_chart.elasticY() || _resizing || render) { _chart.renderYAxis(_chart.g()); } if (render) { _chart.renderBrush(_chart.g(), false); } else { _chart.redrawBrush(_chart.g(), _resizing); } _chart.fadeDeselectedArea(); _resizing = false; } function configureMouseZoom () { if (_mouseZoomable) { _chart._enableMouseZoom(); } else if (_hasBeenMouseZoomable) { _chart._disableMouseZoom(); } } _chart._enableMouseZoom = function () { _hasBeenMouseZoomable = true; _zoom.x(_chart.x()) .scaleExtent(_zoomScale) .size([_chart.width(), _chart.height()]) .duration(_chart.transitionDuration()); _chart.root().call(_zoom); }; _chart._disableMouseZoom = function () { _chart.root().call(_nullZoom); }; function zoomHandler () { _refocused = true; if (_zoomOutRestrict) { var constraint = _xOriginalDomain; if (_rangeChart) { constraint = intersectExtents(constraint, _rangeChart.x().domain()); } var constrained = constrainExtent(_chart.x().domain(), constraint); if (constrained) { _chart.x().domain(constrained); } } var domain = _chart.x().domain(); var domFilter = dc.filters.RangedFilter(domain[0], domain[1]); _chart.replaceFilter(domFilter); _chart.rescale(); _chart.redraw(); if (_rangeChart && !rangesEqual(_chart.filter(), _rangeChart.filter())) { dc.events.trigger(function () { _rangeChart.replaceFilter(domFilter); _rangeChart.redraw(); }); } _chart._invokeZoomedListener(); dc.events.trigger(function () { _chart.redrawGroup(); }, dc.constants.EVENT_DELAY); _refocused = !rangesEqual(domain, _xOriginalDomain); } function intersectExtents (ext1, ext2) { if (ext1[0] > ext2[1] || ext1[1] < ext2[0]) { console.warn('could not intersect extents'); } return [Math.max(ext1[0], ext2[0]), Math.min(ext1[1], ext2[1])]; } function constrainExtent (extent, constraint) { var size = extent[1] - extent[0]; if (extent[0] < constraint[0]) { return [constraint[0], Math.min(constraint[1], dc.utils.add(constraint[0], size, 'millis'))]; } else if (extent[1] > constraint[1]) { return [Math.max(constraint[0], dc.utils.subtract(constraint[1], size, 'millis')), constraint[1]]; } else { return null; } } /** * Zoom this chart to focus on the given range. The given range should be an array containing only * 2 elements (`[start, end]`) defining a range in the x domain. If the range is not given or set * to null, then the zoom will be reset. _For focus to work elasticX has to be turned off; * otherwise focus will be ignored. * @method focus * @memberof dc.coordinateGridMixin * @instance * @example * chart.on('renderlet', function(chart) { * // smooth the rendering through event throttling * dc.events.trigger(function(){ * // focus some other chart to the range selected by user on this chart * someOtherChart.focus(chart.filter()); * }); * }) * @param {Array<Number>} [range] */ _chart.focus = function (range) { if (hasRangeSelected(range)) { _chart.x().domain(range); } else { _chart.x().domain(_xOriginalDomain); } _zoom.x(_chart.x()); zoomHandler(); }; _chart.refocused = function () { return _refocused; }; _chart.focusChart = function (c) { if (!arguments.length) { return _focusChart; } _focusChart = c; _chart.on('filtered', function (chart) { if (!chart.filter()) { dc.events.trigger(function () { _focusChart.x().domain(_focusChart.xOriginalDomain()); }); } else if (!rangesEqual(chart.filter(), _focusChart.filter())) { dc.events.trigger(function () { _focusChart.focus(chart.filter()); }); } }); return _chart; }; function rangesEqual (range1, range2) { if (!range1 && !range2) { return true; } else if (!range1 || !range2) { return false; } else if (range1.length === 0 && range2.length === 0) { return true; } else if (range1[0].valueOf() === range2[0].valueOf() && range1[1].valueOf() === range2[1].valueOf()) { return true; } return false; } /** * Turn on/off the brush-based range filter. When brushing is on then user can drag the mouse * across a chart with a quantitative scale to perform range filtering based on the extent of the * brush, or click on the bars of an ordinal bar chart or slices of a pie chart to filter and * un-filter them. However turning on the brush filter will disable other interactive elements on * the chart such as highlighting, tool tips, and reference lines. Zooming will still be possible * if enabled, but only via scrolling (panning will be disabled.) * @method brushOn * @memberof dc.coordinateGridMixin * @instance * @param {Boolean} [brushOn=true] * @returns {Boolean|dc.coordinateGridMixin} */ _chart.brushOn = function (brushOn) { if (!arguments.length) { return _brushOn; } _brushOn = brushOn; return _chart; }; function hasRangeSelected (range) { return range instanceof Array && range.length > 1; } return _chart; }; /** * Stack Mixin is an mixin that provides cross-chart support of stackability using d3.layout.stack. * @name stackMixin * @memberof dc * @mixin * @param {Object} _chart * @returns {dc.stackMixin} */ dc.stackMixin = function (_chart) { function prepareValues (layer, layerIdx) { var valAccessor = layer.accessor || _chart.valueAccessor(); layer.name = String(layer.name || layerIdx); layer.values = layer.group.all().map(function (d, i) { return { x: _chart.keyAccessor()(d, i), y: layer.hidden ? null : valAccessor(d, i), data: d, layer: layer.name, hidden: layer.hidden }; }); layer.values = layer.values.filter(domainFilter()); return layer.values; } var _stackLayout = d3.layout.stack() .values(prepareValues); var _stack = []; var _titles = {}; var _hidableStacks = false; function domainFilter () { if (!_chart.x()) { return d3.functor(true); } var xDomain = _chart.x().domain(); if (_chart.isOrdinal()) { // TODO #416 //var domainSet = d3.set(xDomain); return function () { return true; //domainSet.has(p.x); }; } if (_chart.elasticX()) { return function () { return true; }; } return function (p) { //return true; return p.x >= xDomain[0] && p.x <= xDomain[xDomain.length - 1]; }; } /** * Stack a new crossfilter group onto this chart with an optional custom value accessor. All stacks * in the same chart will share the same key accessor and therefore the same set of keys. * * For example, in a stacked bar chart, the bars of each stack will be positioned using the same set * of keys on the x axis, while stacked vertically. If name is specified then it will be used to * generate the legend label. * @method stack * @memberof dc.stackMixin * @instance * @see {@link https://github.com/crossfilter/crossfilter/wiki/API-Reference#group-map-reduce crossfilter.group} * @example * // stack group using default accessor * chart.stack(valueSumGroup) * // stack group using custom accessor * .stack(avgByDayGroup, function(d){return d.value.avgByDay;}); * @param {crossfilter.group} group * @param {String} [name] * @param {Function} [accessor] * @returns {Array<{group: crossfilter.group, name: String, accessor: Function}>|dc.stackMixin} */ _chart.stack = function (group, name, accessor) { if (!arguments.length) { return _stack; } if (arguments.length <= 2) { accessor = name; } var layer = {group: group}; if (typeof name === 'string') { layer.name = name; } if (typeof accessor === 'function') { layer.accessor = accessor; } _stack.push(layer); return _chart; }; dc.override(_chart, 'group', function (g, n, f) { if (!arguments.length) { return _chart._group(); } _stack = []; _titles = {}; _chart.stack(g, n); if (f) { _chart.valueAccessor(f); } return _chart._group(g, n); }); /** * Allow named stacks to be hidden or shown by clicking on legend items. * This does not affect the behavior of hideStack or showStack. * @method hidableStacks * @memberof dc.stackMixin * @instance * @param {Boolean} [hidableStacks=false] * @returns {Boolean|dc.stackMixin} */ _chart.hidableStacks = function (hidableStacks) { if (!arguments.length) { return _hidableStacks; } _hidableStacks = hidableStacks; return _chart; }; function findLayerByName (n) { var i = _stack.map(dc.pluck('name')).indexOf(n); return _stack[i]; } /** * Hide all stacks on the chart with the given name. * The chart must be re-rendered for this change to appear. * @method hideStack * @memberof dc.stackMixin * @instance * @param {String} stackName * @returns {dc.stackMixin} */ _chart.hideStack = function (stackName) { var layer = findLayerByName(stackName); if (layer) { layer.hidden = true; } return _chart; }; /** * Show all stacks on the chart with the given name. * The chart must be re-rendered for this change to appear. * @method showStack * @memberof dc.stackMixin * @instance * @param {String} stackName * @returns {dc.stackMixin} */ _chart.showStack = function (stackName) { var layer = findLayerByName(stackName); if (layer) { layer.hidden = false; } return _chart; }; _chart.getValueAccessorByIndex = function (index) { return _stack[index].accessor || _chart.valueAccessor(); }; _chart.yAxisMin = function () { var min = d3.min(flattenStack(), function (p) { return (p.y < 0) ? (p.y + p.y0) : p.y0; }); return dc.utils.subtract(min, _chart.yAxisPadding()); }; _chart.yAxisMax = function () { var max = d3.max(flattenStack(), function (p) { return (p.y > 0) ? (p.y + p.y0) : p.y0; }); return dc.utils.add(max, _chart.yAxisPadding()); }; function flattenStack () { var valueses = _chart.data().map(function (layer) { return layer.values; }); return Array.prototype.concat.apply([], valueses); } _chart.xAxisMin = function () { var min = d3.min(flattenStack(), dc.pluck('x')); return dc.utils.subtract(min, _chart.xAxisPadding(), _chart.xAxisPaddingUnit()); }; _chart.xAxisMax = function () { var max = d3.max(flattenStack(), dc.pluck('x')); return dc.utils.add(max, _chart.xAxisPadding(), _chart.xAxisPaddingUnit()); }; /** * Set or get the title function. Chart class will use this function to render svg title (usually interpreted by * browser as tooltips) for each child element in the chart, i.e. a slice in a pie chart or a bubble in a bubble chart. * Almost every chart supports title function however in grid coordinate chart you need to turn off brush in order to * use title otherwise the brush layer will block tooltip trigger. * * If the first argument is a stack name, the title function will get or set the title for that stack. If stackName * is not provided, the first stack is implied. * @method title * @memberof dc.stackMixin * @instance * @example * // set a title function on 'first stack' * chart.title('first stack', function(d) { return d.key + ': ' + d.value; }); * // get a title function from 'second stack' * var secondTitleFunction = chart.title('second stack'); * @param {String} [stackName] * @param {Function} [titleAccessor] * @returns {String|dc.stackMixin} */ dc.override(_chart, 'title', function (stackName, titleAccessor) { if (!stackName) { return _chart._title(); } if (typeof stackName === 'function') { return _chart._title(stackName); } if (stackName === _chart._groupName && typeof titleAccessor === 'function') { return _chart._title(titleAccessor); } if (typeof titleAccessor !== 'function') { return _titles[stackName] || _chart._title(); } _titles[stackName] = titleAccessor; return _chart; }); /** * Gets or sets the stack layout algorithm, which computes a baseline for each stack and * propagates it to the next. * @method stackLayout * @memberof dc.stackMixin * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Stack-Layout.md d3.layout.stack} * @param {Function} [stack=d3.layout.stack] * @returns {Function|dc.stackMixin} */ _chart.stackLayout = function (stack) { if (!arguments.length) { return _stackLayout; } _stackLayout = stack; if (_stackLayout.values() === d3.layout.stack().values()) { _stackLayout.values(prepareValues); } return _chart; }; function visability (l) { return !l.hidden; } _chart.data(function () { var layers = _stack.filter(visability); return layers.length ? _chart.stackLayout()(layers) : []; }); _chart._ordinalXDomain = function () { var flat = flattenStack().map(dc.pluck('data')); var ordered = _chart._computeOrderedGroups(flat); return ordered.map(_chart.keyAccessor()); }; _chart.colorAccessor(function (d) { var layer = this.layer || this.name || d.name || d.layer; return layer; }); _chart.legendables = function () { return _stack.map(function (layer, i) { return { chart: _chart, name: layer.name, hidden: layer.hidden || false, color: _chart.getColor.call(layer, layer.values, i) }; }); }; _chart.isLegendableHidden = function (d) { var layer = findLayerByName(d.name); return layer ? layer.hidden : false; }; _chart.legendToggle = function (d) { if (_hidableStacks) { if (_chart.isLegendableHidden(d)) { _chart.showStack(d.name); } else { _chart.hideStack(d.name); } //_chart.redraw(); _chart.renderGroup(); } }; return _chart; }; /** * Cap is a mixin that groups small data elements below a _cap_ into an *others* grouping for both the * Row and Pie Charts. * * The top ordered elements in the group up to the cap amount will be kept in the chart, and the rest * will be replaced with an *others* element, with value equal to the sum of the replaced values. The * keys of the elements below the cap limit are recorded in order to filter by those keys when the * others* element is clicked. * @name capMixin * @memberof dc * @mixin * @param {Object} _chart * @returns {dc.capMixin} */ dc.capMixin = function (_chart) { var _cap = Infinity; var _othersLabel = 'Others'; var _othersGrouper = function (topRows) { var topRowsSum = d3.sum(topRows, _chart.valueAccessor()), allRows = _chart.group().all(), allRowsSum = d3.sum(allRows, _chart.valueAccessor()), topKeys = topRows.map(_chart.keyAccessor()), allKeys = allRows.map(_chart.keyAccessor()), topSet = d3.set(topKeys), others = allKeys.filter(function (d) {return !topSet.has(d);}); if (allRowsSum > topRowsSum) { return topRows.concat([{ 'others': others, 'key': _chart.othersLabel(), 'value': allRowsSum - topRowsSum }]); } return topRows; }; _chart.cappedKeyAccessor = function (d, i) { if (d.others) { return d.key; } return _chart.keyAccessor()(d, i); }; _chart.cappedValueAccessor = function (d, i) { if (d.others) { return d.value; } return _chart.valueAccessor()(d, i); }; _chart.data(function (group) { if (_cap === Infinity) { return _chart._computeOrderedGroups(group.all()); } else { var topRows = group.top(_cap); // ordered by crossfilter group order (default value) topRows = _chart._computeOrderedGroups(topRows); // re-order using ordering (default key) if (_othersGrouper) { return _othersGrouper(topRows); } return topRows; } }); /** * Get or set the count of elements to that will be included in the cap. If there is an * {@link dc.capMixin#othersGrouper othersGrouper}, any further elements will be combined in an * extra element with its name determined by {@link dc.capMixin#othersLabel othersLabel}. * * Up through dc.js 2.0.*, capping uses * {@link https://github.com/crossfilter/crossfilter/wiki/API-Reference#group_top group.top(N)}, * which selects the largest items according to * {@link https://github.com/crossfilter/crossfilter/wiki/API-Reference#group_order group.order()}. * The chart then sorts the items according to {@link dc.baseMixin#ordering baseMixin.ordering()}. * So the two values essentially have to agree, but if the former is incorrect (it's easy to * forget about `group.order()`), the latter will mask the problem. This also makes * {@link https://github.com/dc-js/dc.js/wiki/FAQ#fake-groups fake groups} difficult to * implement. * * In dc.js 2.1 and forward, only * {@link https://github.com/crossfilter/crossfilter/wiki/API-Reference#group_all group.all()} * and `baseMixin.ordering()` are used. * @method cap * @memberof dc.capMixin * @instance * @param {Number} [count=Infinity] * @returns {Number|dc.capMixin} */ _chart.cap = function (count) { if (!arguments.length) { return _cap; } _cap = count; return _chart; }; /** * Get or set the label for *Others* slice when slices cap is specified. * @method othersLabel * @memberof dc.capMixin * @instance * @param {String} [label="Others"] * @returns {String|dc.capMixin} */ _chart.othersLabel = function (label) { if (!arguments.length) { return _othersLabel; } _othersLabel = label; return _chart; }; /** * Get or set the grouper function that will perform the insertion of data for the *Others* slice * if the slices cap is specified. If set to a falsy value, no others will be added. By default the * grouper function computes the sum of all values below the cap. * @method othersGrouper * @memberof dc.capMixin * @instance * @example * // Do not show others * chart.othersGrouper(null); * // Default others grouper * chart.othersGrouper(function (topRows) { * var topRowsSum = d3.sum(topRows, _chart.valueAccessor()), * allRows = _chart.group().all(), * allRowsSum = d3.sum(allRows, _chart.valueAccessor()), * topKeys = topRows.map(_chart.keyAccessor()), * allKeys = allRows.map(_chart.keyAccessor()), * topSet = d3.set(topKeys), * others = allKeys.filter(function (d) {return !topSet.has(d);}); * if (allRowsSum > topRowsSum) { * return topRows.concat([{ * 'others': others, * 'key': _chart.othersLabel(), * 'value': allRowsSum - topRowsSum * }]); * } * return topRows; * }); * // Custom others grouper * chart.othersGrouper(function (data) { * // compute the value for others, presumably the sum of all values below the cap * var othersSum = yourComputeOthersValueLogic(data) * * // the keys are needed to properly filter when the others element is clicked * var othersKeys = yourComputeOthersKeysArrayLogic(data); * * // add the others row to the dataset * data.push({'key': 'Others', 'value': othersSum, 'others': othersKeys }); * * return data; * }); * @param {Function} [grouperFunction] * @returns {Function|dc.capMixin} */ _chart.othersGrouper = function (grouperFunction) { if (!arguments.length) { return _othersGrouper; } _othersGrouper = grouperFunction; return _chart; }; dc.override(_chart, 'onClick', function (d) { if (d.others) { _chart.filter([d.others]); } _chart._onClick(d); }); return _chart; }; /** * This Mixin provides reusable functionalities for any chart that needs to visualize data using bubbles. * @name bubbleMixin * @memberof dc * @mixin * @mixes dc.colorMixin * @param {Object} _chart * @returns {dc.bubbleMixin} */ dc.bubbleMixin = function (_chart) { var _maxBubbleRelativeSize = 0.3; var _minRadiusWithLabel = 10; _chart.BUBBLE_NODE_CLASS = 'node'; _chart.BUBBLE_CLASS = 'bubble'; _chart.MIN_RADIUS = 10; _chart = dc.colorMixin(_chart); _chart.renderLabel(true); _chart.data(function (group) { return group.top(Infinity); }); var _r = d3.scale.linear().domain([0, 100]); var _rValueAccessor = function (d) { return d.r; }; /** * Get or set the bubble radius scale. By default the bubble chart uses * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Quantitative-Scales.md#linear d3.scale.linear().domain([0, 100])} * as its radius scale. * @method r * @memberof dc.bubbleMixin * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Scales.md d3.scale} * @param {d3.scale} [bubbleRadiusScale=d3.scale.linear().domain([0, 100])] * @returns {d3.scale|dc.bubbleMixin} */ _chart.r = function (bubbleRadiusScale) { if (!arguments.length) { return _r; } _r = bubbleRadiusScale; return _chart; }; /** * Get or set the radius value accessor function. If set, the radius value accessor function will * be used to retrieve a data value for each bubble. The data retrieved then will be mapped using * the r scale to the actual bubble radius. This allows you to encode a data dimension using bubble * size. * @method radiusValueAccessor * @memberof dc.bubbleMixin * @instance * @param {Function} [radiusValueAccessor] * @returns {Function|dc.bubbleMixin} */ _chart.radiusValueAccessor = function (radiusValueAccessor) { if (!arguments.length) { return _rValueAccessor; } _rValueAccessor = radiusValueAccessor; return _chart; }; _chart.rMin = function () { var min = d3.min(_chart.data(), function (e) { return _chart.radiusValueAccessor()(e); }); return min; }; _chart.rMax = function () { var max = d3.max(_chart.data(), function (e) { return _chart.radiusValueAccessor()(e); }); return max; }; _chart.bubbleR = function (d) { var value = _chart.radiusValueAccessor()(d); var r = _chart.r()(value); if (isNaN(r) || value <= 0) { r = 0; } return r; }; var labelFunction = function (d) { return _chart.label()(d); }; var shouldLabel = function (d) { return (_chart.bubbleR(d) > _minRadiusWithLabel); }; var labelOpacity = function (d) { return shouldLabel(d) ? 1 : 0; }; var labelPointerEvent = function (d) { return shouldLabel(d) ? 'all' : 'none'; }; _chart._doRenderLabel = function (bubbleGEnter) { if (_chart.renderLabel()) { var label = bubbleGEnter.select('text'); if (label.empty()) { label = bubbleGEnter.append('text') .attr('text-anchor', 'middle') .attr('dy', '.3em') .on('click', _chart.onClick); } label .attr('opacity', 0) .attr('pointer-events', labelPointerEvent) .text(labelFunction); dc.transition(label, _chart.transitionDuration(), _chart.transitionDelay()) .attr('opacity', labelOpacity); } }; _chart.doUpdateLabels = function (bubbleGEnter) { if (_chart.renderLabel()) { var labels = bubbleGEnter.select('text') .attr('pointer-events', labelPointerEvent) .text(labelFunction); dc.transition(labels, _chart.transitionDuration(), _chart.transitionDelay()) .attr('opacity', labelOpacity); } }; var titleFunction = function (d) { return _chart.title()(d); }; _chart._doRenderTitles = function (g) { if (_chart.renderTitle()) { var title = g.select('title'); if (title.empty()) { g.append('title').text(titleFunction); } } }; _chart.doUpdateTitles = function (g) { if (_chart.renderTitle()) { g.select('title').text(titleFunction); } }; /** * Get or set the minimum radius. This will be used to initialize the radius scale's range. * @method minRadius * @memberof dc.bubbleMixin * @instance * @param {Number} [radius=10] * @returns {Number|dc.bubbleMixin} */ _chart.minRadius = function (radius) { if (!arguments.length) { return _chart.MIN_RADIUS; } _chart.MIN_RADIUS = radius; return _chart; }; /** * Get or set the minimum radius for label rendering. If a bubble's radius is less than this value * then no label will be rendered. * @method minRadiusWithLabel * @memberof dc.bubbleMixin * @instance * @param {Number} [radius=10] * @returns {Number|dc.bubbleMixin} */ _chart.minRadiusWithLabel = function (radius) { if (!arguments.length) { return _minRadiusWithLabel; } _minRadiusWithLabel = radius; return _chart; }; /** * Get or set the maximum relative size of a bubble to the length of x axis. This value is useful * when the difference in radius between bubbles is too great. * @method maxBubbleRelativeSize * @memberof dc.bubbleMixin * @instance * @param {Number} [relativeSize=0.3] * @returns {Number|dc.bubbleMixin} */ _chart.maxBubbleRelativeSize = function (relativeSize) { if (!arguments.length) { return _maxBubbleRelativeSize; } _maxBubbleRelativeSize = relativeSize; return _chart; }; _chart.fadeDeselectedArea = function () { if (_chart.hasFilter()) { _chart.selectAll('g.' + _chart.BUBBLE_NODE_CLASS).each(function (d) { if (_chart.isSelectedNode(d)) { _chart.highlightSelected(this); } else { _chart.fadeDeselected(this); } }); } else { _chart.selectAll('g.' + _chart.BUBBLE_NODE_CLASS).each(function () { _chart.resetHighlight(this); }); } }; _chart.isSelectedNode = function (d) { return _chart.hasFilter(d.key); }; _chart.onClick = function (d) { var filter = d.key; dc.events.trigger(function () { _chart.filter(filter); _chart.redrawGroup(); }); }; return _chart; }; /** * The pie chart implementation is usually used to visualize a small categorical distribution. The pie * chart uses keyAccessor to determine the slices, and valueAccessor to calculate the size of each * slice relative to the sum of all values. Slices are ordered by {@link dc.baseMixin#ordering ordering} * which defaults to sorting by key. * * Examples: * - {@link http://dc-js.github.com/dc.js/ Nasdaq 100 Index} * @class pieChart * @memberof dc * @mixes dc.capMixin * @mixes dc.colorMixin * @mixes dc.baseMixin * @example * // create a pie chart under #chart-container1 element using the default global chart group * var chart1 = dc.pieChart('#chart-container1'); * // create a pie chart under #chart-container2 element using chart group A * var chart2 = dc.pieChart('#chart-container2', 'chartGroupA'); * @param {String|node|d3.selection} parent - Any valid * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Selections.md#selecting-elements d3 single selector} specifying * a dom block element such as a div; or a dom element or d3 selection. * @param {String} [chartGroup] - The name of the chart group this chart instance should be placed in. * Interaction with a chart will only trigger events and redraws within the chart's group. * @returns {dc.pieChart} */ dc.pieChart = function (parent, chartGroup) { var DEFAULT_MIN_ANGLE_FOR_LABEL = 0.5; var _sliceCssClass = 'pie-slice'; var _labelCssClass = 'pie-label'; var _sliceGroupCssClass = 'pie-slice-group'; var _labelGroupCssClass = 'pie-label-group'; var _emptyCssClass = 'empty-chart'; var _emptyTitle = 'empty'; var _radius, _givenRadius, // specified radius, if any _innerRadius = 0, _externalRadiusPadding = 0; var _g; var _cx; var _cy; var _minAngleForLabel = DEFAULT_MIN_ANGLE_FOR_LABEL; var _externalLabelRadius; var _drawPaths = false; var _chart = dc.capMixin(dc.colorMixin(dc.baseMixin({}))); _chart.colorAccessor(_chart.cappedKeyAccessor); _chart.title(function (d) { return _chart.cappedKeyAccessor(d) + ': ' + _chart.cappedValueAccessor(d); }); /** * Get or set the maximum number of slices the pie chart will generate. The top slices are determined by * value from high to low. Other slices exeeding the cap will be rolled up into one single *Others* slice. * @method slicesCap * @memberof dc.pieChart * @instance * @param {Number} [cap] * @returns {Number|dc.pieChart} */ _chart.slicesCap = _chart.cap; _chart.label(_chart.cappedKeyAccessor); _chart.renderLabel(true); _chart.transitionDuration(350); _chart.transitionDelay(0); _chart._doRender = function () { _chart.resetSvg(); _g = _chart.svg() .append('g') .attr('transform', 'translate(' + _chart.cx() + ',' + _chart.cy() + ')'); _g.append('g').attr('class', _sliceGroupCssClass); _g.append('g').attr('class', _labelGroupCssClass); drawChart(); return _chart; }; function drawChart () { // set radius on basis of chart dimension if missing _radius = _givenRadius ? _givenRadius : d3.min([_chart.width(), _chart.height()]) / 2; var arc = buildArcs(); var pie = pieLayout(); var pieData; // if we have data... if (d3.sum(_chart.data(), _chart.valueAccessor())) { pieData = pie(_chart.data()); _g.classed(_emptyCssClass, false); } else { // otherwise we'd be getting NaNs, so override // note: abuse others for its ignoring the value accessor pieData = pie([{key: _emptyTitle, value: 1, others: [_emptyTitle]}]); _g.classed(_emptyCssClass, true); } if (_g) { var slices = _g.select('g.' + _sliceGroupCssClass) .selectAll('g.' + _sliceCssClass) .data(pieData); var labels = _g.select('g.' + _labelGroupCssClass) .selectAll('text.' + _labelCssClass) .data(pieData); createElements(slices, labels, arc, pieData); updateElements(pieData, arc); removeElements(slices, labels); highlightFilter(); dc.transition(_g, _chart.transitionDuration(), _chart.transitionDelay()) .attr('transform', 'translate(' + _chart.cx() + ',' + _chart.cy() + ')'); } } function createElements (slices, labels, arc, pieData) { var slicesEnter = createSliceNodes(slices); createSlicePath(slicesEnter, arc); createTitles(slicesEnter); createLabels(labels, pieData, arc); } function createSliceNodes (slices) { var slicesEnter = slices .enter() .append('g') .attr('class', function (d, i) { return _sliceCssClass + ' _' + i; }); return slicesEnter; } function createSlicePath (slicesEnter, arc) { var slicePath = slicesEnter.append('path') .attr('fill', fill) .on('click', onClick) .attr('d', function (d, i) { return safeArc(d, i, arc); }); var transition = dc.transition(slicePath, _chart.transitionDuration(), _chart.transitionDelay()); if (transition.attrTween) { transition.attrTween('d', tweenPie); } } function createTitles (slicesEnter) { if (_chart.renderTitle()) { slicesEnter.append('title').text(function (d) { return _chart.title()(d.data); }); } } _chart._applyLabelText = function (labels) { labels .text(function (d) { var data = d.data; if ((sliceHasNoData(data) || sliceTooSmall(d)) && !isSelectedSlice(d)) { return ''; } return _chart.label()(d.data); }); }; function positionLabels (labels, arc) { _chart._applyLabelText(labels); dc.transition(labels, _chart.transitionDuration(), _chart.transitionDelay()) .attr('transform', function (d) { return labelPosition(d, arc); }) .attr('text-anchor', 'middle'); } function highlightSlice (i, whether) { _chart.select('g.pie-slice._' + i) .classed('highlight', whether); } function createLabels (labels, pieData, arc) { if (_chart.renderLabel()) { var labelsEnter = labels .enter() .append('text') .attr('class', function (d, i) { var classes = _sliceCssClass + ' ' + _labelCssClass + ' _' + i; if (_externalLabelRadius) { classes += ' external'; } return classes; }) .on('click', onClick) .on('mouseover', function (d, i) { highlightSlice(i, true); }) .on('mouseout', function (d, i) { highlightSlice(i, false); }); positionLabels(labelsEnter, arc); if (_externalLabelRadius && _drawPaths) { updateLabelPaths(pieData, arc); } } } function updateLabelPaths (pieData, arc) { var polyline = _g.selectAll('polyline.' + _sliceCssClass) .data(pieData); polyline .enter() .append('polyline') .attr('class', function (d, i) { return 'pie-path _' + i + ' ' + _sliceCssClass; }) .on('click', onClick) .on('mouseover', function (d, i) { highlightSlice(i, true); }) .on('mouseout', function (d, i) { highlightSlice(i, false); }); polyline.exit().remove(); var arc2 = d3.svg.arc() .outerRadius(_radius - _externalRadiusPadding + _externalLabelRadius) .innerRadius(_radius - _externalRadiusPadding); var transition = dc.transition(polyline, _chart.transitionDuration(), _chart.transitionDelay()); // this is one rare case where d3.selection differs from d3.transition if (transition.attrTween) { transition .attrTween('points', function (d) { var current = this._current || d; current = {startAngle: current.startAngle, endAngle: current.endAngle}; var interpolate = d3.interpolate(current, d); this._current = interpolate(0); return function (t) { var d2 = interpolate(t); return [arc.centroid(d2), arc2.centroid(d2)]; }; }); } else { transition.attr('points', function (d) { return [arc.centroid(d), arc2.centroid(d)]; }); } transition.style('visibility', function (d) { return d.endAngle - d.startAngle < 0.0001 ? 'hidden' : 'visible'; }); } function updateElements (pieData, arc) { updateSlicePaths(pieData, arc); updateLabels(pieData, arc); updateTitles(pieData); } function updateSlicePaths (pieData, arc) { var slicePaths = _g.selectAll('g.' + _sliceCssClass) .data(pieData) .select('path') .attr('d', function (d, i) { return safeArc(d, i, arc); }); var transition = dc.transition(slicePaths, _chart.transitionDuration(), _chart.transitionDelay()); if (transition.attrTween) { transition.attrTween('d', tweenPie); } transition.attr('fill', fill); } function updateLabels (pieData, arc) { if (_chart.renderLabel()) { var labels = _g.selectAll('text.' + _labelCssClass) .data(pieData); positionLabels(labels, arc); if (_externalLabelRadius && _drawPaths) { updateLabelPaths(pieData, arc); } } } function updateTitles (pieData) { if (_chart.renderTitle()) { _g.selectAll('g.' + _sliceCssClass) .data(pieData) .select('title') .text(function (d) { return _chart.title()(d.data); }); } } function removeElements (slices, labels) { slices.exit().remove(); labels.exit().remove(); } function highlightFilter () { if (_chart.hasFilter()) { _chart.selectAll('g.' + _sliceCssClass).each(function (d) { if (isSelectedSlice(d)) { _chart.highlightSelected(this); } else { _chart.fadeDeselected(this); } }); } else { _chart.selectAll('g.' + _sliceCssClass).each(function () { _chart.resetHighlight(this); }); } } /** * Get or set the external radius padding of the pie chart. This will force the radius of the * pie chart to become smaller or larger depending on the value. * @method externalRadiusPadding * @memberof dc.pieChart * @instance * @param {Number} [externalRadiusPadding=0] * @returns {Number|dc.pieChart} */ _chart.externalRadiusPadding = function (externalRadiusPadding) { if (!arguments.length) { return _externalRadiusPadding; } _externalRadiusPadding = externalRadiusPadding; return _chart; }; /** * Get or set the inner radius of the pie chart. If the inner radius is greater than 0px then the * pie chart will be rendered as a doughnut chart. * @method innerRadius * @memberof dc.pieChart * @instance * @param {Number} [innerRadius=0] * @returns {Number|dc.pieChart} */ _chart.innerRadius = function (innerRadius) { if (!arguments.length) { return _innerRadius; } _innerRadius = innerRadius; return _chart; }; /** * Get or set the outer radius. If the radius is not set, it will be half of the minimum of the * chart width and height. * @method radius * @memberof dc.pieChart * @instance * @param {Number} [radius] * @returns {Number|dc.pieChart} */ _chart.radius = function (radius) { if (!arguments.length) { return _givenRadius; } _givenRadius = radius; return _chart; }; /** * Get or set center x coordinate position. Default is center of svg. * @method cx * @memberof dc.pieChart * @instance * @param {Number} [cx] * @returns {Number|dc.pieChart} */ _chart.cx = function (cx) { if (!arguments.length) { return (_cx || _chart.width() / 2); } _cx = cx; return _chart; }; /** * Get or set center y coordinate position. Default is center of svg. * @method cy * @memberof dc.pieChart * @instance * @param {Number} [cy] * @returns {Number|dc.pieChart} */ _chart.cy = function (cy) { if (!arguments.length) { return (_cy || _chart.height() / 2); } _cy = cy; return _chart; }; function buildArcs () { return d3.svg.arc() .outerRadius(_radius - _externalRadiusPadding) .innerRadius(_innerRadius); } function isSelectedSlice (d) { return _chart.hasFilter(_chart.cappedKeyAccessor(d.data)); } _chart._doRedraw = function () { drawChart(); return _chart; }; /** * Get or set the minimal slice angle for label rendering. Any slice with a smaller angle will not * display a slice label. * @method minAngleForLabel * @memberof dc.pieChart * @instance * @param {Number} [minAngleForLabel=0.5] * @returns {Number|dc.pieChart} */ _chart.minAngleForLabel = function (minAngleForLabel) { if (!arguments.length) { return _minAngleForLabel; } _minAngleForLabel = minAngleForLabel; return _chart; }; function pieLayout () { return d3.layout.pie().sort(null).value(_chart.cappedValueAccessor); } function sliceTooSmall (d) { var angle = (d.endAngle - d.startAngle); return isNaN(angle) || angle < _minAngleForLabel; } function sliceHasNoData (d) { return _chart.cappedValueAccessor(d) === 0; } function tweenPie (b) { b.innerRadius = _innerRadius; var current = this._current; if (isOffCanvas(current)) { current = {startAngle: 0, endAngle: 0}; } else { // only interpolate startAngle & endAngle, not the whole data object current = {startAngle: current.startAngle, endAngle: current.endAngle}; } var i = d3.interpolate(current, b); this._current = i(0); return function (t) { return safeArc(i(t), 0, buildArcs()); }; } function isOffCanvas (current) { return !current || isNaN(current.startAngle) || isNaN(current.endAngle); } function fill (d, i) { return _chart.getColor(d.data, i); } function onClick (d, i) { if (_g.attr('class') !== _emptyCssClass) { _chart.onClick(d.data, i); } } function safeArc (d, i, arc) { var path = arc(d, i); if (path.indexOf('NaN') >= 0) { path = 'M0,0'; } return path; } /** * Title to use for the only slice when there is no data. * @method emptyTitle * @memberof dc.pieChart * @instance * @param {String} [title] * @returns {String|dc.pieChart} */ _chart.emptyTitle = function (title) { if (arguments.length === 0) { return _emptyTitle; } _emptyTitle = title; return _chart; }; /** * Position slice labels offset from the outer edge of the chart. * * The argument specifies the extra radius to be added for slice labels. * @method externalLabels * @memberof dc.pieChart * @instance * @param {Number} [externalLabelRadius] * @returns {Number|dc.pieChart} */ _chart.externalLabels = function (externalLabelRadius) { if (arguments.length === 0) { return _externalLabelRadius; } else if (externalLabelRadius) { _externalLabelRadius = externalLabelRadius; } else { _externalLabelRadius = undefined; } return _chart; }; /** * Get or set whether to draw lines from pie slices to their labels. * * @method drawPaths * @memberof dc.pieChart * @instance * @param {Boolean} [drawPaths] * @returns {Boolean|dc.pieChart} */ _chart.drawPaths = function (drawPaths) { if (arguments.length === 0) { return _drawPaths; } _drawPaths = drawPaths; return _chart; }; function labelPosition (d, arc) { var centroid; if (_externalLabelRadius) { centroid = d3.svg.arc() .outerRadius(_radius - _externalRadiusPadding + _externalLabelRadius) .innerRadius(_radius - _externalRadiusPadding + _externalLabelRadius) .centroid(d); } else { centroid = arc.centroid(d); } if (isNaN(centroid[0]) || isNaN(centroid[1])) { return 'translate(0,0)'; } else { return 'translate(' + centroid + ')'; } } _chart.legendables = function () { return _chart.data().map(function (d, i) { var legendable = {name: d.key, data: d.value, others: d.others, chart: _chart}; legendable.color = _chart.getColor(d, i); return legendable; }); }; _chart.legendHighlight = function (d) { highlightSliceFromLegendable(d, true); }; _chart.legendReset = function (d) { highlightSliceFromLegendable(d, false); }; _chart.legendToggle = function (d) { _chart.onClick({key: d.name, others: d.others}); }; function highlightSliceFromLegendable (legendable, highlighted) { _chart.selectAll('g.pie-slice').each(function (d) { if (legendable.name === d.data.key) { d3.select(this).classed('highlight', highlighted); } }); } return _chart.anchor(parent, chartGroup); }; /** * Concrete bar chart/histogram implementation. * * Examples: * - {@link http://dc-js.github.com/dc.js/ Nasdaq 100 Index} * - {@link http://dc-js.github.com/dc.js/crime/index.html Canadian City Crime Stats} * @class barChart * @memberof dc * @mixes dc.stackMixin * @mixes dc.coordinateGridMixin * @example * // create a bar chart under #chart-container1 element using the default global chart group * var chart1 = dc.barChart('#chart-container1'); * // create a bar chart under #chart-container2 element using chart group A * var chart2 = dc.barChart('#chart-container2', 'chartGroupA'); * // create a sub-chart under a composite parent chart * var chart3 = dc.barChart(compositeChart); * @param {String|node|d3.selection|dc.compositeChart} parent - Any valid * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Selections.md#selecting-elements d3 single selector} * specifying a dom block element such as a div; or a dom element or d3 selection. If the bar * chart is a sub-chart in a {@link dc.compositeChart Composite Chart} then pass in the parent * composite chart instance instead. * @param {String} [chartGroup] - The name of the chart group this chart instance should be placed in. * Interaction with a chart will only trigger events and redraws within the chart's group. * @returns {dc.barChart} */ dc.barChart = function (parent, chartGroup) { var MIN_BAR_WIDTH = 1; var DEFAULT_GAP_BETWEEN_BARS = 2; var LABEL_PADDING = 3; var _chart = dc.stackMixin(dc.coordinateGridMixin({})); var _gap = DEFAULT_GAP_BETWEEN_BARS; var _centerBar = false; var _alwaysUseRounding = false; var _barWidth; dc.override(_chart, 'rescale', function () { _chart._rescale(); _barWidth = undefined; return _chart; }); dc.override(_chart, 'render', function () { if (_chart.round() && _centerBar && !_alwaysUseRounding) { dc.logger.warn('By default, brush rounding is disabled if bars are centered. ' + 'See dc.js bar chart API documentation for details.'); } return _chart._render(); }); _chart.label(function (d) { return dc.utils.printSingleValue(d.y0 + d.y); }, false); _chart.plotData = function () { var layers = _chart.chartBodyG().selectAll('g.stack') .data(_chart.data()); calculateBarWidth(); layers .enter() .append('g') .attr('class', function (d, i) { return 'stack ' + '_' + i; }); var last = layers.size() - 1; layers.each(function (d, i) { var layer = d3.select(this); renderBars(layer, i, d); if (_chart.renderLabel() && last === i) { renderLabels(layer, i, d); } }); }; function barHeight (d) { return dc.utils.safeNumber(Math.abs(_chart.y()(d.y + d.y0) - _chart.y()(d.y0))); } function renderLabels (layer, layerIndex, d) { var labels = layer.selectAll('text.barLabel') .data(d.values, dc.pluck('x')); labels.enter() .append('text') .attr('class', 'barLabel') .attr('text-anchor', 'middle'); if (_chart.isOrdinal()) { labels.on('click', _chart.onClick); labels.attr('cursor', 'pointer'); } dc.transition(labels, _chart.transitionDuration(), _chart.transitionDelay()) .attr('x', function (d) { var x = _chart.x()(d.x); if (!_centerBar) { x += _barWidth / 2; } return dc.utils.safeNumber(x); }) .attr('y', function (d) { var y = _chart.y()(d.y + d.y0); if (d.y < 0) { y -= barHeight(d); } return dc.utils.safeNumber(y - LABEL_PADDING); }) .text(function (d) { return _chart.label()(d); }); dc.transition(labels.exit(), _chart.transitionDuration(), _chart.transitionDelay()) .attr('height', 0) .remove(); } function renderBars (layer, layerIndex, d) { var bars = layer.selectAll('rect.bar') .data(d.values, dc.pluck('x')); var enter = bars.enter() .append('rect') .attr('class', 'bar') .attr('fill', dc.pluck('data', _chart.getColor)) .attr('y', _chart.yAxisHeight()) .attr('height', 0); if (_chart.renderTitle()) { enter.append('title').text(dc.pluck('data', _chart.title(d.name))); } if (_chart.isOrdinal()) { bars.on('click', _chart.onClick); } dc.transition(bars, _chart.transitionDuration(), _chart.transitionDelay()) .attr('x', function (d) { var x = _chart.x()(d.x); if (_centerBar) { x -= _barWidth / 2; } if (_chart.isOrdinal() && _gap !== undefined) { x += _gap / 2; } return dc.utils.safeNumber(x); }) .attr('y', function (d) { var y = _chart.y()(d.y + d.y0); if (d.y < 0) { y -= barHeight(d); } return dc.utils.safeNumber(y); }) .attr('width', _barWidth) .attr('height', function (d) { return barHeight(d); }) .attr('fill', dc.pluck('data', _chart.getColor)) .select('title').text(dc.pluck('data', _chart.title(d.name))); dc.transition(bars.exit(), _chart.transitionDuration(), _chart.transitionDelay()) .attr('x', function (d) { return _chart.x()(d.x); }) .attr('width', _barWidth * 0.9) .remove(); } function calculateBarWidth () { if (_barWidth === undefined) { var numberOfBars = _chart.xUnitCount(); // please can't we always use rangeBands for bar charts? if (_chart.isOrdinal() && _gap === undefined) { _barWidth = Math.floor(_chart.x().rangeBand()); } else if (_gap) { _barWidth = Math.floor((_chart.xAxisLength() - (numberOfBars - 1) * _gap) / numberOfBars); } else { _barWidth = Math.floor(_chart.xAxisLength() / (1 + _chart.barPadding()) / numberOfBars); } if (_barWidth === Infinity || isNaN(_barWidth) || _barWidth < MIN_BAR_WIDTH) { _barWidth = MIN_BAR_WIDTH; } } } _chart.fadeDeselectedArea = function () { var bars = _chart.chartBodyG().selectAll('rect.bar'); var extent = _chart.brush().extent(); if (_chart.isOrdinal()) { if (_chart.hasFilter()) { bars.classed(dc.constants.SELECTED_CLASS, function (d) { return _chart.hasFilter(d.x); }); bars.classed(dc.constants.DESELECTED_CLASS, function (d) { return !_chart.hasFilter(d.x); }); } else { bars.classed(dc.constants.SELECTED_CLASS, false); bars.classed(dc.constants.DESELECTED_CLASS, false); } } else { if (!_chart.brushIsEmpty(extent)) { var start = extent[0]; var end = extent[1]; bars.classed(dc.constants.DESELECTED_CLASS, function (d) { return d.x < start || d.x >= end; }); } else { bars.classed(dc.constants.DESELECTED_CLASS, false); } } }; /** * Whether the bar chart will render each bar centered around the data position on the x-axis. * @method centerBar * @memberof dc.barChart * @instance * @param {Boolean} [centerBar=false] * @returns {Boolean|dc.barChart} */ _chart.centerBar = function (centerBar) { if (!arguments.length) { return _centerBar; } _centerBar = centerBar; return _chart; }; dc.override(_chart, 'onClick', function (d) { _chart._onClick(d.data); }); /** * Get or set the spacing between bars as a fraction of bar size. Valid values are between 0-1. * Setting this value will also remove any previously set {@link dc.barChart#gap gap}. See the * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Ordinal-Scales.md#ordinal_rangeBands d3 docs} * for a visual description of how the padding is applied. * @method barPadding * @memberof dc.barChart * @instance * @param {Number} [barPadding=0] * @returns {Number|dc.barChart} */ _chart.barPadding = function (barPadding) { if (!arguments.length) { return _chart._rangeBandPadding(); } _chart._rangeBandPadding(barPadding); _gap = undefined; return _chart; }; _chart._useOuterPadding = function () { return _gap === undefined; }; /** * Get or set the outer padding on an ordinal bar chart. This setting has no effect on non-ordinal charts. * Will pad the width by `padding * barWidth` on each side of the chart. * @method outerPadding * @memberof dc.barChart * @instance * @param {Number} [padding=0.5] * @returns {Number|dc.barChart} */ _chart.outerPadding = _chart._outerRangeBandPadding; /** * Manually set fixed gap (in px) between bars instead of relying on the default auto-generated * gap. By default the bar chart implementation will calculate and set the gap automatically * based on the number of data points and the length of the x axis. * @method gap * @memberof dc.barChart * @instance * @param {Number} [gap=2] * @returns {Number|dc.barChart} */ _chart.gap = function (gap) { if (!arguments.length) { return _gap; } _gap = gap; return _chart; }; _chart.extendBrush = function () { var extent = _chart.brush().extent(); if (_chart.round() && (!_centerBar || _alwaysUseRounding)) { extent[0] = extent.map(_chart.round())[0]; extent[1] = extent.map(_chart.round())[1]; _chart.chartBodyG().select('.brush') .call(_chart.brush().extent(extent)); } return extent; }; /** * Set or get whether rounding is enabled when bars are centered. If false, using * rounding with centered bars will result in a warning and rounding will be ignored. This flag * has no effect if bars are not {@link dc.barChart#centerBar centered}. * When using standard d3.js rounding methods, the brush often doesn't align correctly with * centered bars since the bars are offset. The rounding function must add an offset to * compensate, such as in the following example. * @method alwaysUseRounding * @memberof dc.barChart * @instance * @example * chart.round(function(n) { return Math.floor(n) + 0.5; }); * @param {Boolean} [alwaysUseRounding=false] * @returns {Boolean|dc.barChart} */ _chart.alwaysUseRounding = function (alwaysUseRounding) { if (!arguments.length) { return _alwaysUseRounding; } _alwaysUseRounding = alwaysUseRounding; return _chart; }; function colorFilter (color, inv) { return function () { var item = d3.select(this); var match = item.attr('fill') === color; return inv ? !match : match; }; } _chart.legendHighlight = function (d) { if (!_chart.isLegendableHidden(d)) { _chart.g().selectAll('rect.bar') .classed('highlight', colorFilter(d.color)) .classed('fadeout', colorFilter(d.color, true)); } }; _chart.legendReset = function () { _chart.g().selectAll('rect.bar') .classed('highlight', false) .classed('fadeout', false); }; dc.override(_chart, 'xAxisMax', function () { var max = this._xAxisMax(); if ('resolution' in _chart.xUnits()) { var res = _chart.xUnits().resolution; max += res; } return max; }); return _chart.anchor(parent, chartGroup); }; /** * Concrete line/area chart implementation. * * Examples: * - {@link http://dc-js.github.com/dc.js/ Nasdaq 100 Index} * - {@link http://dc-js.github.com/dc.js/crime/index.html Canadian City Crime Stats} * @class lineChart * @memberof dc * @mixes dc.stackMixin * @mixes dc.coordinateGridMixin * @example * // create a line chart under #chart-container1 element using the default global chart group * var chart1 = dc.lineChart('#chart-container1'); * // create a line chart under #chart-container2 element using chart group A * var chart2 = dc.lineChart('#chart-container2', 'chartGroupA'); * // create a sub-chart under a composite parent chart * var chart3 = dc.lineChart(compositeChart); * @param {String|node|d3.selection|dc.compositeChart} parent - Any valid * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Selections.md#selecting-elements d3 single selector} * specifying a dom block element such as a div; or a dom element or d3 selection. If the line * chart is a sub-chart in a {@link dc.compositeChart Composite Chart} then pass in the parent * composite chart instance instead. * @param {String} [chartGroup] - The name of the chart group this chart instance should be placed in. * Interaction with a chart will only trigger events and redraws within the chart's group. * @returns {dc.lineChart} */ dc.lineChart = function (parent, chartGroup) { var DEFAULT_DOT_RADIUS = 5; var TOOLTIP_G_CLASS = 'dc-tooltip'; var DOT_CIRCLE_CLASS = 'dot'; var Y_AXIS_REF_LINE_CLASS = 'yRef'; var X_AXIS_REF_LINE_CLASS = 'xRef'; var DEFAULT_DOT_OPACITY = 1e-6; var LABEL_PADDING = 3; var _chart = dc.stackMixin(dc.coordinateGridMixin({})); var _renderArea = false; var _dotRadius = DEFAULT_DOT_RADIUS; var _dataPointRadius = null; var _dataPointFillOpacity = DEFAULT_DOT_OPACITY; var _dataPointStrokeOpacity = DEFAULT_DOT_OPACITY; var _interpolate = 'linear'; var _tension = 0.7; var _defined; var _dashStyle; var _xyTipsOn = true; _chart.transitionDuration(500); _chart.transitionDelay(0); _chart._rangeBandPadding(1); _chart.plotData = function () { var chartBody = _chart.chartBodyG(); var layersList = chartBody.select('g.stack-list'); if (layersList.empty()) { layersList = chartBody.append('g').attr('class', 'stack-list'); } var layers = layersList.selectAll('g.stack').data(_chart.data()); var layersEnter = layers .enter() .append('g') .attr('class', function (d, i) { return 'stack ' + '_' + i; }); drawLine(layersEnter, layers); drawArea(layersEnter, layers); drawDots(chartBody, layers); if (_chart.renderLabel()) { drawLabels(layers); } }; /** * Gets or sets the interpolator to use for lines drawn, by string name, allowing e.g. step * functions, splines, and cubic interpolation. This is passed to * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Shapes.md#line_interpolate d3.svg.line.interpolate} and * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Shapes.md#area_interpolate d3.svg.area.interpolate}, * where you can find a complete list of valid arguments. * @method interpolate * @memberof dc.lineChart * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Shapes.md#line_interpolate d3.svg.line.interpolate} * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Shapes.md#area_interpolate d3.svg.area.interpolate} * @param {String} [interpolate='linear'] * @returns {String|dc.lineChart} */ _chart.interpolate = function (interpolate) { if (!arguments.length) { return _interpolate; } _interpolate = interpolate; return _chart; }; /** * Gets or sets the tension to use for lines drawn, in the range 0 to 1. * This parameter further customizes the interpolation behavior. It is passed to * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Shapes.md#line_tension d3.svg.line.tension} and * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Shapes.md#area_tension d3.svg.area.tension}. * @method tension * @memberof dc.lineChart * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Shapes.md#line_interpolate d3.svg.line.interpolate} * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Shapes.md#area_interpolate d3.svg.area.interpolate} * @param {Number} [tension=0.7] * @returns {Number|dc.lineChart} */ _chart.tension = function (tension) { if (!arguments.length) { return _tension; } _tension = tension; return _chart; }; /** * Gets or sets a function that will determine discontinuities in the line which should be * skipped: the path will be broken into separate subpaths if some points are undefined. * This function is passed to * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Shapes.md#line_defined d3.svg.line.defined} * * Note: crossfilter will sometimes coerce nulls to 0, so you may need to carefully write * custom reduce functions to get this to work, depending on your data. See * {@link https://github.com/dc-js/dc.js/issues/615#issuecomment-49089248 this GitHub comment} * for more details and an example. * @method defined * @memberof dc.lineChart * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Shapes.md#line_defined d3.svg.line.defined} * @param {Function} [defined] * @returns {Function|dc.lineChart} */ _chart.defined = function (defined) { if (!arguments.length) { return _defined; } _defined = defined; return _chart; }; /** * Set the line's d3 dashstyle. This value becomes the 'stroke-dasharray' of line. Defaults to empty * array (solid line). * @method dashStyle * @memberof dc.lineChart * @instance * @see {@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray stroke-dasharray} * @example * // create a Dash Dot Dot Dot * chart.dashStyle([3,1,1,1]); * @param {Array<Number>} [dashStyle=[]] * @returns {Array<Number>|dc.lineChart} */ _chart.dashStyle = function (dashStyle) { if (!arguments.length) { return _dashStyle; } _dashStyle = dashStyle; return _chart; }; /** * Get or set render area flag. If the flag is set to true then the chart will render the area * beneath each line and the line chart effectively becomes an area chart. * @method renderArea * @memberof dc.lineChart * @instance * @param {Boolean} [renderArea=false] * @returns {Boolean|dc.lineChart} */ _chart.renderArea = function (renderArea) { if (!arguments.length) { return _renderArea; } _renderArea = renderArea; return _chart; }; function colors (d, i) { return _chart.getColor.call(d, d.values, i); } function drawLine (layersEnter, layers) { var line = d3.svg.line() .x(function (d) { return _chart.x()(d.x); }) .y(function (d) { return _chart.y()(d.y + d.y0); }) .interpolate(_interpolate) .tension(_tension); if (_defined) { line.defined(_defined); } var path = layersEnter.append('path') .attr('class', 'line') .attr('stroke', colors); if (_dashStyle) { path.attr('stroke-dasharray', _dashStyle); } dc.transition(layers.select('path.line'), _chart.transitionDuration(), _chart.transitionDelay()) //.ease('linear') .attr('stroke', colors) .attr('d', function (d) { return safeD(line(d.values)); }); } function drawArea (layersEnter, layers) { if (_renderArea) { var area = d3.svg.area() .x(function (d) { return _chart.x()(d.x); }) .y(function (d) { return _chart.y()(d.y + d.y0); }) .y0(function (d) { return _chart.y()(d.y0); }) .interpolate(_interpolate) .tension(_tension); if (_defined) { area.defined(_defined); } layersEnter.append('path') .attr('class', 'area') .attr('fill', colors) .attr('d', function (d) { return safeD(area(d.values)); }); dc.transition(layers.select('path.area'), _chart.transitionDuration(), _chart.transitionDelay()) //.ease('linear') .attr('fill', colors) .attr('d', function (d) { return safeD(area(d.values)); }); } } function safeD (d) { return (!d || d.indexOf('NaN') >= 0) ? 'M0,0' : d; } function drawDots (chartBody, layers) { if (_chart.xyTipsOn() === 'always' || (!_chart.brushOn() && _chart.xyTipsOn())) { var tooltipListClass = TOOLTIP_G_CLASS + '-list'; var tooltips = chartBody.select('g.' + tooltipListClass); if (tooltips.empty()) { tooltips = chartBody.append('g').attr('class', tooltipListClass); } layers.each(function (d, layerIndex) { var points = d.values; if (_defined) { points = points.filter(_defined); } var g = tooltips.select('g.' + TOOLTIP_G_CLASS + '._' + layerIndex); if (g.empty()) { g = tooltips.append('g').attr('class', TOOLTIP_G_CLASS + ' _' + layerIndex); } createRefLines(g); var dots = g.selectAll('circle.' + DOT_CIRCLE_CLASS) .data(points, dc.pluck('x')); dots.enter() .append('circle') .attr('class', DOT_CIRCLE_CLASS) .attr('r', getDotRadius()) .style('fill-opacity', _dataPointFillOpacity) .style('stroke-opacity', _dataPointStrokeOpacity) .attr('fill', _chart.getColor) .on('mousemove', function () { var dot = d3.select(this); showDot(dot); showRefLines(dot, g); }) .on('mouseout', function () { var dot = d3.select(this); hideDot(dot); hideRefLines(g); }); dots.call(renderTitle, d); dc.transition(dots, _chart.transitionDuration()) .attr('cx', function (d) { return dc.utils.safeNumber(_chart.x()(d.x)); }) .attr('cy', function (d) { return dc.utils.safeNumber(_chart.y()(d.y + d.y0)); }) .attr('fill', _chart.getColor); dots.exit().remove(); }); } } _chart.label(function (d) { return dc.utils.printSingleValue(d.y0 + d.y); }, false); function drawLabels (layers) { layers.each(function (d, layerIndex) { var layer = d3.select(this); var labels = layer.selectAll('text.lineLabel') .data(d.values, dc.pluck('x')); labels.enter() .append('text') .attr('class', 'lineLabel') .attr('text-anchor', 'middle'); dc.transition(labels, _chart.transitionDuration()) .attr('x', function (d) { return dc.utils.safeNumber(_chart.x()(d.x)); }) .attr('y', function (d) { var y = _chart.y()(d.y + d.y0) - LABEL_PADDING; return dc.utils.safeNumber(y); }) .text(function (d) { return _chart.label()(d); }); dc.transition(labels.exit(), _chart.transitionDuration()) .attr('height', 0) .remove(); }); } function createRefLines (g) { var yRefLine = g.select('path.' + Y_AXIS_REF_LINE_CLASS).empty() ? g.append('path').attr('class', Y_AXIS_REF_LINE_CLASS) : g.select('path.' + Y_AXIS_REF_LINE_CLASS); yRefLine.style('display', 'none').attr('stroke-dasharray', '5,5'); var xRefLine = g.select('path.' + X_AXIS_REF_LINE_CLASS).empty() ? g.append('path').attr('class', X_AXIS_REF_LINE_CLASS) : g.select('path.' + X_AXIS_REF_LINE_CLASS); xRefLine.style('display', 'none').attr('stroke-dasharray', '5,5'); } function showDot (dot) { dot.style('fill-opacity', 0.8); dot.style('stroke-opacity', 0.8); dot.attr('r', _dotRadius); return dot; } function showRefLines (dot, g) { var x = dot.attr('cx'); var y = dot.attr('cy'); var yAxisX = (_chart._yAxisX() - _chart.margins().left); var yAxisRefPathD = 'M' + yAxisX + ' ' + y + 'L' + (x) + ' ' + (y); var xAxisRefPathD = 'M' + x + ' ' + _chart.yAxisHeight() + 'L' + x + ' ' + y; g.select('path.' + Y_AXIS_REF_LINE_CLASS).style('display', '').attr('d', yAxisRefPathD); g.select('path.' + X_AXIS_REF_LINE_CLASS).style('display', '').attr('d', xAxisRefPathD); } function getDotRadius () { return _dataPointRadius || _dotRadius; } function hideDot (dot) { dot.style('fill-opacity', _dataPointFillOpacity) .style('stroke-opacity', _dataPointStrokeOpacity) .attr('r', getDotRadius()); } function hideRefLines (g) { g.select('path.' + Y_AXIS_REF_LINE_CLASS).style('display', 'none'); g.select('path.' + X_AXIS_REF_LINE_CLASS).style('display', 'none'); } function renderTitle (dot, d) { if (_chart.renderTitle()) { dot.select('title').remove(); dot.append('title').text(dc.pluck('data', _chart.title(d.name))); } } /** * Turn on/off the mouseover behavior of an individual data point which renders a circle and x/y axis * dashed lines back to each respective axis. This is ignored if the chart * {@link dc.coordinateGridMixin#brushOn brush} is on * @method xyTipsOn * @memberof dc.lineChart * @instance * @param {Boolean} [xyTipsOn=false] * @returns {Boolean|dc.lineChart} */ _chart.xyTipsOn = function (xyTipsOn) { if (!arguments.length) { return _xyTipsOn; } _xyTipsOn = xyTipsOn; return _chart; }; /** * Get or set the radius (in px) for dots displayed on the data points. * @method dotRadius * @memberof dc.lineChart * @instance * @param {Number} [dotRadius=5] * @returns {Number|dc.lineChart} */ _chart.dotRadius = function (dotRadius) { if (!arguments.length) { return _dotRadius; } _dotRadius = dotRadius; return _chart; }; /** * Always show individual dots for each datapoint. * * If `options` is falsy, it disables data point rendering. If no `options` are provided, the * current `options` values are instead returned. * @method renderDataPoints * @memberof dc.lineChart * @instance * @example * chart.renderDataPoints({radius: 2, fillOpacity: 0.8, strokeOpacity: 0.8}) * @param {{fillOpacity: Number, strokeOpacity: Number, radius: Number}} [options={fillOpacity: 0.8, strokeOpacity: 0.8, radius: 2}] * @returns {{fillOpacity: Number, strokeOpacity: Number, radius: Number}|dc.lineChart} */ _chart.renderDataPoints = function (options) { if (!arguments.length) { return { fillOpacity: _dataPointFillOpacity, strokeOpacity: _dataPointStrokeOpacity, radius: _dataPointRadius }; } else if (!options) { _dataPointFillOpacity = DEFAULT_DOT_OPACITY; _dataPointStrokeOpacity = DEFAULT_DOT_OPACITY; _dataPointRadius = null; } else { _dataPointFillOpacity = options.fillOpacity || 0.8; _dataPointStrokeOpacity = options.strokeOpacity || 0.8; _dataPointRadius = options.radius || 2; } return _chart; }; function colorFilter (color, dashstyle, inv) { return function () { var item = d3.select(this); var match = (item.attr('stroke') === color && item.attr('stroke-dasharray') === ((dashstyle instanceof Array) ? dashstyle.join(',') : null)) || item.attr('fill') === color; return inv ? !match : match; }; } _chart.legendHighlight = function (d) { if (!_chart.isLegendableHidden(d)) { _chart.g().selectAll('path.line, path.area') .classed('highlight', colorFilter(d.color, d.dashstyle)) .classed('fadeout', colorFilter(d.color, d.dashstyle, true)); } }; _chart.legendReset = function () { _chart.g().selectAll('path.line, path.area') .classed('highlight', false) .classed('fadeout', false); }; dc.override(_chart, 'legendables', function () { var legendables = _chart._legendables(); if (!_dashStyle) { return legendables; } return legendables.map(function (l) { l.dashstyle = _dashStyle; return l; }); }); return _chart.anchor(parent, chartGroup); }; /** * The data count widget is a simple widget designed to display the number of records selected by the * current filters out of the total number of records in the data set. Once created the data count widget * will automatically update the text content of child elements with the following classes: * * * `.total-count` - total number of records * * `.filter-count` - number of records matched by the current filters * * Note: this widget works best for the specific case of showing the number of records out of a * total. If you want a more general-purpose numeric display, please use the * {@link dc.numberDisplay} widget instead. * * Examples: * - {@link http://dc-js.github.com/dc.js/ Nasdaq 100 Index} * @class dataCount * @memberof dc * @mixes dc.baseMixin * @example * var ndx = crossfilter(data); * var all = ndx.groupAll(); * * dc.dataCount('.dc-data-count') * .dimension(ndx) * .group(all); * @param {String|node|d3.selection} parent - Any valid * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Selections.md#selecting-elements d3 single selector} specifying * a dom block element such as a div; or a dom element or d3 selection. * @param {String} [chartGroup] - The name of the chart group this chart instance should be placed in. * Interaction with a chart will only trigger events and redraws within the chart's group. * @returns {dc.dataCount} */ dc.dataCount = function (parent, chartGroup) { var _formatNumber = d3.format(',d'); var _chart = dc.baseMixin({}); var _html = {some: '', all: ''}; /** * Gets or sets an optional object specifying HTML templates to use depending how many items are * selected. The text `%total-count` will replaced with the total number of records, and the text * `%filter-count` will be replaced with the number of selected records. * - all: HTML template to use if all items are selected * - some: HTML template to use if not all items are selected * @method html * @memberof dc.dataCount * @instance * @example * counter.html({ * some: '%filter-count out of %total-count records selected', * all: 'All records selected. Click on charts to apply filters' * }) * @param {{some:String, all: String}} [options] * @returns {{some:String, all: String}|dc.dataCount} */ _chart.html = function (options) { if (!arguments.length) { return _html; } if (options.all) { _html.all = options.all; } if (options.some) { _html.some = options.some; } return _chart; }; /** * Gets or sets an optional function to format the filter count and total count. * @method formatNumber * @memberof dc.dataCount * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md d3.format} * @example * counter.formatNumber(d3.format('.2g')) * @param {Function} [formatter=d3.format('.2g')] * @returns {Function|dc.dataCount} */ _chart.formatNumber = function (formatter) { if (!arguments.length) { return _formatNumber; } _formatNumber = formatter; return _chart; }; _chart._doRender = function () { var tot = _chart.dimension().size(), val = _chart.group().value(); var all = _formatNumber(tot); var selected = _formatNumber(val); if ((tot === val) && (_html.all !== '')) { _chart.root().html(_html.all.replace('%total-count', all).replace('%filter-count', selected)); } else if (_html.some !== '') { _chart.root().html(_html.some.replace('%total-count', all).replace('%filter-count', selected)); } else { _chart.selectAll('.total-count').text(all); _chart.selectAll('.filter-count').text(selected); } return _chart; }; _chart._doRedraw = function () { return _chart._doRender(); }; return _chart.anchor(parent, chartGroup); }; /** * The data table is a simple widget designed to list crossfilter focused data set (rows being * filtered) in a good old tabular fashion. * * Note: Unlike other charts, the data table (and data grid chart) use the {@link dc.dataTable#group group} attribute as a * keying function for {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Arrays.md#nest nesting} the data * together in groups. Do not pass in a crossfilter group as this will not work. * * Another interesting feature of the data table is that you can pass a crossfilter group to the `dimension`, as * long as you specify the {@link dc.dataTable#order order} as `d3.descending`, since the data * table will use `dimension.top()` to fetch the data in that case, and the method is equally * supported on the crossfilter group as the crossfilter dimension. * * Examples: * - {@link http://dc-js.github.com/dc.js/ Nasdaq 100 Index} * - {@link http://dc-js.github.io/dc.js/examples/table-on-aggregated-data.html dataTable on a crossfilter group} * ({@link https://github.com/dc-js/dc.js/blob/develop/web/examples/table-on-aggregated-data.html source}) * @class dataTable * @memberof dc * @mixes dc.baseMixin * @param {String|node|d3.selection} parent - Any valid * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Selections.md#selecting-elements d3 single selector} specifying * a dom block element such as a div; or a dom element or d3 selection. * @param {String} [chartGroup] - The name of the chart group this chart instance should be placed in. * Interaction with a chart will only trigger events and redraws within the chart's group. * @returns {dc.dataTable} */ dc.dataTable = function (parent, chartGroup) { var LABEL_CSS_CLASS = 'dc-table-label'; var ROW_CSS_CLASS = 'dc-table-row'; var COLUMN_CSS_CLASS = 'dc-table-column'; var GROUP_CSS_CLASS = 'dc-table-group'; var HEAD_CSS_CLASS = 'dc-table-head'; var _chart = dc.baseMixin({}); var _size = 25; var _columns = []; var _sortBy = function (d) { return d; }; var _order = d3.ascending; var _beginSlice = 0; var _endSlice; var _showGroups = true; _chart._doRender = function () { _chart.selectAll('tbody').remove(); renderRows(renderGroups()); return _chart; }; _chart._doColumnValueFormat = function (v, d) { return ((typeof v === 'function') ? v(d) : // v as function ((typeof v === 'string') ? d[v] : // v is field name string v.format(d) // v is Object, use fn (element 2) ) ); }; _chart._doColumnHeaderFormat = function (d) { // if 'function', convert to string representation // show a string capitalized // if an object then display its label string as-is. return (typeof d === 'function') ? _chart._doColumnHeaderFnToString(d) : ((typeof d === 'string') ? _chart._doColumnHeaderCapitalize(d) : String(d.label)); }; _chart._doColumnHeaderCapitalize = function (s) { // capitalize return s.charAt(0).toUpperCase() + s.slice(1); }; _chart._doColumnHeaderFnToString = function (f) { // columnString(f) { var s = String(f); var i1 = s.indexOf('return '); if (i1 >= 0) { var i2 = s.lastIndexOf(';'); if (i2 >= 0) { s = s.substring(i1 + 7, i2); var i3 = s.indexOf('numberFormat'); if (i3 >= 0) { s = s.replace('numberFormat', ''); } } } return s; }; function renderGroups () { // The 'original' example uses all 'functions'. // If all 'functions' are used, then don't remove/add a header, and leave // the html alone. This preserves the functionality of earlier releases. // A 2nd option is a string representing a field in the data. // A third option is to supply an Object such as an array of 'information', and // supply your own _doColumnHeaderFormat and _doColumnValueFormat functions to // create what you need. var bAllFunctions = true; _columns.forEach(function (f) { bAllFunctions = bAllFunctions & (typeof f === 'function'); }); if (!bAllFunctions) { // ensure one thead var thead = _chart.selectAll('thead').data([0]); thead.enter().append('thead'); thead.exit().remove(); // with one tr var headrow = thead.selectAll('tr').data([0]); headrow.enter().append('tr'); headrow.exit().remove(); // with a th for each column var headcols = headrow.selectAll('th') .data(_columns); headcols.enter().append('th'); headcols.exit().remove(); headcols .attr('class', HEAD_CSS_CLASS) .html(function (d) { return (_chart._doColumnHeaderFormat(d)); }); } var groups = _chart.root().selectAll('tbody') .data(nestEntries(), function (d) { return _chart.keyAccessor()(d); }); var rowGroup = groups .enter() .append('tbody'); if (_showGroups === true) { rowGroup .append('tr') .attr('class', GROUP_CSS_CLASS) .append('td') .attr('class', LABEL_CSS_CLASS) .attr('colspan', _columns.length) .html(function (d) { return _chart.keyAccessor()(d); }); } groups.exit().remove(); return rowGroup; } function nestEntries () { var entries; if (_order === d3.ascending) { entries = _chart.dimension().bottom(_size); } else { entries = _chart.dimension().top(_size); } return d3.nest() .key(_chart.group()) .sortKeys(_order) .entries(entries.sort(function (a, b) { return _order(_sortBy(a), _sortBy(b)); }).slice(_beginSlice, _endSlice)); } function renderRows (groups) { var rows = groups.order() .selectAll('tr.' + ROW_CSS_CLASS) .data(function (d) { return d.values; }); var rowEnter = rows.enter() .append('tr') .attr('class', ROW_CSS_CLASS); _columns.forEach(function (v, i) { rowEnter.append('td') .attr('class', COLUMN_CSS_CLASS + ' _' + i) .html(function (d) { return _chart._doColumnValueFormat(v, d); }); }); rows.exit().remove(); return rows; } _chart._doRedraw = function () { return _chart._doRender(); }; /** * Get or set the group function for the data table. The group function takes a data row and * returns the key to specify to {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Arrays.md#d3_nest d3.nest} * to split rows into groups. * * Do not pass in a crossfilter group as this will not work. * @method group * @memberof dc.dataTable * @instance * @example * // group rows by the value of their field * chart * .group(function(d) { return d.field; }) * @param {Function} groupFunction Function taking a row of data and returning the nest key. * @returns {Function|dc.dataTable} */ /** * Get or set the table size which determines the number of rows displayed by the widget. * @method size * @memberof dc.dataTable * @instance * @param {Number} [size=25] * @returns {Number|dc.dataTable} */ _chart.size = function (size) { if (!arguments.length) { return _size; } _size = size; return _chart; }; /** * Get or set the index of the beginning slice which determines which entries get displayed * by the widget. Useful when implementing pagination. * * Note: the sortBy function will determine how the rows are ordered for pagination purposes. * See the {@link http://dc-js.github.io/dc.js/examples/table-pagination.html table pagination example} * to see how to implement the pagination user interface using `beginSlice` and `endSlice`. * @method beginSlice * @memberof dc.dataTable * @instance * @param {Number} [beginSlice=0] * @returns {Number|dc.dataTable} */ _chart.beginSlice = function (beginSlice) { if (!arguments.length) { return _beginSlice; } _beginSlice = beginSlice; return _chart; }; /** * Get or set the index of the end slice which determines which entries get displayed by the * widget. Useful when implementing pagination. See {@link dc.dataTable#beginSlice `beginSlice`} for more information. * @method endSlice * @memberof dc.dataTable * @instance * @param {Number|undefined} [endSlice=undefined] * @returns {Number|dc.dataTable} */ _chart.endSlice = function (endSlice) { if (!arguments.length) { return _endSlice; } _endSlice = endSlice; return _chart; }; /** * Get or set column functions. The data table widget supports several methods of specifying the * columns to display. * * The original method uses an array of functions to generate dynamic columns. Column functions * are simple javascript functions with only one input argument `d` which represents a row in * the data set. The return value of these functions will be used to generate the content for * each cell. However, this method requires the HTML for the table to have a fixed set of column * headers. * * <pre><code>chart.columns([ * function(d) { return d.date; }, * function(d) { return d.open; }, * function(d) { return d.close; }, * function(d) { return numberFormat(d.close - d.open); }, * function(d) { return d.volume; } * ]); * </code></pre> * * In the second method, you can list the columns to read from the data without specifying it as * a function, except where necessary (ie, computed columns). Note the data element name is * capitalized when displayed in the table header. You can also mix in functions as necessary, * using the third `{label, format}` form, as shown below. * * <pre><code>chart.columns([ * "date", // d["date"], ie, a field accessor; capitalized automatically * "open", // ... * "close", // ... * { * label: "Change", * format: function (d) { * return numberFormat(d.close - d.open); * } * }, * "volume" // d["volume"], ie, a field accessor; capitalized automatically * ]); * </code></pre> * * In the third example, we specify all fields using the `{label, format}` method: * <pre><code>chart.columns([ * { * label: "Date", * format: function (d) { return d.date; } * }, * { * label: "Open", * format: function (d) { return numberFormat(d.open); } * }, * { * label: "Close", * format: function (d) { return numberFormat(d.close); } * }, * { * label: "Change", * format: function (d) { return numberFormat(d.close - d.open); } * }, * { * label: "Volume", * format: function (d) { return d.volume; } * } * ]); * </code></pre> * * You may wish to override the dataTable functions `_doColumnHeaderCapitalize` and * `_doColumnHeaderFnToString`, which are used internally to translate the column information or * function into a displayed header. The first one is used on the "string" column specifier; the * second is used to transform a stringified function into something displayable. For the Stock * example, the function for Change becomes the table header **d.close - d.open**. * * Finally, you can even specify a completely different form of column definition. To do this, * override `_chart._doColumnHeaderFormat` and `_chart._doColumnValueFormat` Be aware that * fields without numberFormat specification will be displayed just as they are stored in the * data, unformatted. * @method columns * @memberof dc.dataTable * @instance * @param {Array<Function>} [columns=[]] * @returns {Array<Function>}|dc.dataTable} */ _chart.columns = function (columns) { if (!arguments.length) { return _columns; } _columns = columns; return _chart; }; /** * Get or set sort-by function. This function works as a value accessor at row level and returns a * particular field to be sorted by. * @method sortBy * @memberof dc.dataTable * @instance * @example * chart.sortBy(function(d) { * return d.date; * }); * @param {Function} [sortBy=identity function] * @returns {Function|dc.dataTable} */ _chart.sortBy = function (sortBy) { if (!arguments.length) { return _sortBy; } _sortBy = sortBy; return _chart; }; /** * Get or set sort order. If the order is `d3.ascending`, the data table will use * `dimension().bottom()` to fetch the data; otherwise it will use `dimension().top()` * @method order * @memberof dc.dataTable * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Arrays.md#d3_ascending d3.ascending} * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Arrays.md#d3_descending d3.descending} * @example * chart.order(d3.descending); * @param {Function} [order=d3.ascending] * @returns {Function|dc.dataTable} */ _chart.order = function (order) { if (!arguments.length) { return _order; } _order = order; return _chart; }; /** * Get or set if group rows will be shown. The dataTable {@link dc.dataTable#group group} * function must be specified even if groups are not shown. * @method showGroups * @memberof dc.dataTable * @instance * @example * chart * .group([value], [name]) * .showGroups(true|false); * @param {Boolean} [showGroups=true] * @returns {Boolean|dc.dataTable} */ _chart.showGroups = function (showGroups) { if (!arguments.length) { return _showGroups; } _showGroups = showGroups; return _chart; }; return _chart.anchor(parent, chartGroup); }; /** * Data grid is a simple widget designed to list the filtered records, providing * a simple way to define how the items are displayed. * * Note: Unlike other charts, the data grid chart (and data table) use the {@link dc.dataGrid#group group} attribute as a keying function * for {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Arrays.md#nest nesting} the data together in groups. * Do not pass in a crossfilter group as this will not work. * * Examples: * - {@link http://europarl.me/dc.js/web/ep/index.html List of members of the european parliament} * @class dataGrid * @memberof dc * @mixes dc.baseMixin * @param {String|node|d3.selection} parent - Any valid * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Selections.md#selecting-elements d3 single selector} specifying * a dom block element such as a div; or a dom element or d3 selection. * @param {String} [chartGroup] - The name of the chart group this chart instance should be placed in. * Interaction with a chart will only trigger events and redraws within the chart's group. * @returns {dc.dataGrid} */ dc.dataGrid = function (parent, chartGroup) { var LABEL_CSS_CLASS = 'dc-grid-label'; var ITEM_CSS_CLASS = 'dc-grid-item'; var GROUP_CSS_CLASS = 'dc-grid-group'; var GRID_CSS_CLASS = 'dc-grid-top'; var _chart = dc.baseMixin({}); var _size = 999; // shouldn't be needed, but you might var _html = function (d) { return 'you need to provide an html() handling param: ' + JSON.stringify(d); }; var _sortBy = function (d) { return d; }; var _order = d3.ascending; var _beginSlice = 0, _endSlice; var _htmlGroup = function (d) { return '<div class=\'' + GROUP_CSS_CLASS + '\'><h1 class=\'' + LABEL_CSS_CLASS + '\'>' + _chart.keyAccessor()(d) + '</h1></div>'; }; _chart._doRender = function () { _chart.selectAll('div.' + GRID_CSS_CLASS).remove(); renderItems(renderGroups()); return _chart; }; function renderGroups () { var groups = _chart.root().selectAll('div.' + GRID_CSS_CLASS) .data(nestEntries(), function (d) { return _chart.keyAccessor()(d); }); var itemGroup = groups .enter() .append('div') .attr('class', GRID_CSS_CLASS); if (_htmlGroup) { itemGroup .html(function (d) { return _htmlGroup(d); }); } groups.exit().remove(); return itemGroup; } function nestEntries () { var entries = _chart.dimension().top(_size); return d3.nest() .key(_chart.group()) .sortKeys(_order) .entries(entries.sort(function (a, b) { return _order(_sortBy(a), _sortBy(b)); }).slice(_beginSlice, _endSlice)); } function renderItems (groups) { var items = groups.order() .selectAll('div.' + ITEM_CSS_CLASS) .data(function (d) { return d.values; }); items.enter() .append('div') .attr('class', ITEM_CSS_CLASS) .html(function (d) { return _html(d); }); items.exit().remove(); return items; } _chart._doRedraw = function () { return _chart._doRender(); }; /** * Get or set the group function for the data grid. The group function takes a data row and * returns the key to specify to {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Arrays.md#d3_nest d3.nest} * to split rows into groups. * * Do not pass in a crossfilter group as this will not work. * @method group * @memberof dc.dataGrid * @instance * @example * // group rows by the value of their field * chart * .group(function(d) { return d.field; }) * @param {Function} groupFunction Function taking a row of data and returning the nest key. * @returns {Function|dc.dataTable} */ /** * Get or set the index of the beginning slice which determines which entries get displayed by the widget. * Useful when implementing pagination. * @method beginSlice * @memberof dc.dataGrid * @instance * @param {Number} [beginSlice=0] * @returns {Number|dc.dataGrid} */ _chart.beginSlice = function (beginSlice) { if (!arguments.length) { return _beginSlice; } _beginSlice = beginSlice; return _chart; }; /** * Get or set the index of the end slice which determines which entries get displayed by the widget. * Useful when implementing pagination. * @method endSlice * @memberof dc.dataGrid * @instance * @param {Number} [endSlice] * @returns {Number|dc.dataGrid} */ _chart.endSlice = function (endSlice) { if (!arguments.length) { return _endSlice; } _endSlice = endSlice; return _chart; }; /** * Get or set the grid size which determines the number of items displayed by the widget. * @method size * @memberof dc.dataGrid * @instance * @param {Number} [size=999] * @returns {Number|dc.dataGrid} */ _chart.size = function (size) { if (!arguments.length) { return _size; } _size = size; return _chart; }; /** * Get or set the function that formats an item. The data grid widget uses a * function to generate dynamic html. Use your favourite templating engine or * generate the string directly. * @method html * @memberof dc.dataGrid * @instance * @example * chart.html(function (d) { return '<div class='item '+data.exampleCategory+''>'+data.exampleString+'</div>';}); * @param {Function} [html] * @returns {Function|dc.dataGrid} */ _chart.html = function (html) { if (!arguments.length) { return _html; } _html = html; return _chart; }; /** * Get or set the function that formats a group label. * @method htmlGroup * @memberof dc.dataGrid * @instance * @example * chart.htmlGroup (function (d) { return '<h2>'.d.key . 'with ' . d.values.length .' items</h2>'}); * @param {Function} [htmlGroup] * @returns {Function|dc.dataGrid} */ _chart.htmlGroup = function (htmlGroup) { if (!arguments.length) { return _htmlGroup; } _htmlGroup = htmlGroup; return _chart; }; /** * Get or set sort-by function. This function works as a value accessor at the item * level and returns a particular field to be sorted. * @method sortBy * @memberof dc.dataGrid * @instance * @example * chart.sortBy(function(d) { * return d.date; * }); * @param {Function} [sortByFunction] * @returns {Function|dc.dataGrid} */ _chart.sortBy = function (sortByFunction) { if (!arguments.length) { return _sortBy; } _sortBy = sortByFunction; return _chart; }; /** * Get or set sort the order function. * @method order * @memberof dc.dataGrid * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Arrays.md#d3_ascending d3.ascending} * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Arrays.md#d3_descending d3.descending} * @example * chart.order(d3.descending); * @param {Function} [order=d3.ascending] * @returns {Function|dc.dataGrid} */ _chart.order = function (order) { if (!arguments.length) { return _order; } _order = order; return _chart; }; return _chart.anchor(parent, chartGroup); }; /** * A concrete implementation of a general purpose bubble chart that allows data visualization using the * following dimensions: * - x axis position * - y axis position * - bubble radius * - color * * Examples: * - {@link http://dc-js.github.com/dc.js/ Nasdaq 100 Index} * - {@link http://dc-js.github.com/dc.js/vc/index.html US Venture Capital Landscape 2011} * @class bubbleChart * @memberof dc * @mixes dc.bubbleMixin * @mixes dc.coordinateGridMixin * @example * // create a bubble chart under #chart-container1 element using the default global chart group * var bubbleChart1 = dc.bubbleChart('#chart-container1'); * // create a bubble chart under #chart-container2 element using chart group A * var bubbleChart2 = dc.bubbleChart('#chart-container2', 'chartGroupA'); * @param {String|node|d3.selection} parent - Any valid * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Selections.md#selecting-elements d3 single selector} specifying * a dom block element such as a div; or a dom element or d3 selection. * @param {String} [chartGroup] - The name of the chart group this chart instance should be placed in. * Interaction with a chart will only trigger events and redraws within the chart's group. * @returns {dc.bubbleChart} */ dc.bubbleChart = function (parent, chartGroup) { var _chart = dc.bubbleMixin(dc.coordinateGridMixin({})); var _elasticRadius = false; var _sortBubbleSize = false; _chart.transitionDuration(750); _chart.transitionDelay(0); var bubbleLocator = function (d) { return 'translate(' + (bubbleX(d)) + ',' + (bubbleY(d)) + ')'; }; /** * Turn on or off the elastic bubble radius feature, or return the value of the flag. If this * feature is turned on, then bubble radii will be automatically rescaled to fit the chart better. * @method elasticRadius * @memberof dc.bubbleChart * @instance * @param {Boolean} [elasticRadius=false] * @returns {Boolean|dc.bubbleChart} */ _chart.elasticRadius = function (elasticRadius) { if (!arguments.length) { return _elasticRadius; } _elasticRadius = elasticRadius; return _chart; }; /** * Turn on or off the bubble sorting feature, or return the value of the flag. If enabled, * bubbles will be sorted by their radius, with smaller bubbles in front. * @method sortBubbleSize * @memberof dc.bubbleChart * @instance * @param {Boolean} [sortBubbleSize=false] * @returns {Boolean|dc.bubbleChart} */ _chart.sortBubbleSize = function (sortBubbleSize) { if (!arguments.length) { return _sortBubbleSize; } _sortBubbleSize = sortBubbleSize; return _chart; }; _chart.plotData = function () { if (_elasticRadius) { _chart.r().domain([_chart.rMin(), _chart.rMax()]); } _chart.r().range([_chart.MIN_RADIUS, _chart.xAxisLength() * _chart.maxBubbleRelativeSize()]); var data = _chart.data(); if (_sortBubbleSize) { // sort descending so smaller bubbles are on top var radiusAccessor = _chart.radiusValueAccessor(); data.sort(function (a, b) { return d3.descending(radiusAccessor(a), radiusAccessor(b)); }); } var bubbleG = _chart.chartBodyG().selectAll('g.' + _chart.BUBBLE_NODE_CLASS) .data(data, function (d) { return d.key; }); if (_sortBubbleSize) { // Call order here to update dom order based on sort bubbleG.order(); } renderNodes(bubbleG); updateNodes(bubbleG); removeNodes(bubbleG); _chart.fadeDeselectedArea(); }; function renderNodes (bubbleG) { var bubbleGEnter = bubbleG.enter().append('g'); bubbleGEnter .attr('class', _chart.BUBBLE_NODE_CLASS) .attr('transform', bubbleLocator) .append('circle').attr('class', function (d, i) { return _chart.BUBBLE_CLASS + ' _' + i; }) .on('click', _chart.onClick) .attr('fill', _chart.getColor) .attr('r', 0); dc.transition(bubbleG, _chart.transitionDuration(), _chart.transitionDelay()) .select('circle.' + _chart.BUBBLE_CLASS) .attr('r', function (d) { return _chart.bubbleR(d); }) .attr('opacity', function (d) { return (_chart.bubbleR(d) > 0) ? 1 : 0; }); _chart._doRenderLabel(bubbleGEnter); _chart._doRenderTitles(bubbleGEnter); } function updateNodes (bubbleG) { dc.transition(bubbleG, _chart.transitionDuration(), _chart.transitionDelay()) .attr('transform', bubbleLocator) .select('circle.' + _chart.BUBBLE_CLASS) .attr('fill', _chart.getColor) .attr('r', function (d) { return _chart.bubbleR(d); }) .attr('opacity', function (d) { return (_chart.bubbleR(d) > 0) ? 1 : 0; }); _chart.doUpdateLabels(bubbleG); _chart.doUpdateTitles(bubbleG); } function removeNodes (bubbleG) { bubbleG.exit().remove(); } function bubbleX (d) { var x = _chart.x()(_chart.keyAccessor()(d)); if (isNaN(x)) { x = 0; } return x; } function bubbleY (d) { var y = _chart.y()(_chart.valueAccessor()(d)); if (isNaN(y)) { y = 0; } return y; } _chart.renderBrush = function () { // override default x axis brush from parent chart }; _chart.redrawBrush = function () { // override default x axis brush from parent chart _chart.fadeDeselectedArea(); }; return _chart.anchor(parent, chartGroup); }; /** * Composite charts are a special kind of chart that render multiple charts on the same Coordinate * Grid. You can overlay (compose) different bar/line/area charts in a single composite chart to * achieve some quite flexible charting effects. * @class compositeChart * @memberof dc * @mixes dc.coordinateGridMixin * @example * // create a composite chart under #chart-container1 element using the default global chart group * var compositeChart1 = dc.compositeChart('#chart-container1'); * // create a composite chart under #chart-container2 element using chart group A * var compositeChart2 = dc.compositeChart('#chart-container2', 'chartGroupA'); * @param {String|node|d3.selection} parent - Any valid * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Selections.md#selecting-elements d3 single selector} specifying * a dom block element such as a div; or a dom element or d3 selection. * @param {String} [chartGroup] - The name of the chart group this chart instance should be placed in. * Interaction with a chart will only trigger events and redraws within the chart's group. * @returns {dc.compositeChart} */ dc.compositeChart = function (parent, chartGroup) { var SUB_CHART_CLASS = 'sub'; var DEFAULT_RIGHT_Y_AXIS_LABEL_PADDING = 12; var _chart = dc.coordinateGridMixin({}); var _children = []; var _childOptions = {}; var _shareColors = false, _shareTitle = true, _alignYAxes = false; var _rightYAxis = d3.svg.axis(), _rightYAxisLabel = 0, _rightYAxisLabelPadding = DEFAULT_RIGHT_Y_AXIS_LABEL_PADDING, _rightY, _rightAxisGridLines = false; _chart._mandatoryAttributes([]); _chart.transitionDuration(500); _chart.transitionDelay(0); dc.override(_chart, '_generateG', function () { var g = this.__generateG(); for (var i = 0; i < _children.length; ++i) { var child = _children[i]; generateChildG(child, i); if (!child.dimension()) { child.dimension(_chart.dimension()); } if (!child.group()) { child.group(_chart.group()); } child.chartGroup(_chart.chartGroup()); child.svg(_chart.svg()); child.xUnits(_chart.xUnits()); child.transitionDuration(_chart.transitionDuration(), _chart.transitionDelay()); child.brushOn(_chart.brushOn()); child.renderTitle(_chart.renderTitle()); child.elasticX(_chart.elasticX()); } return g; }); _chart._brushing = function () { var extent = _chart.extendBrush(); var brushIsEmpty = _chart.brushIsEmpty(extent); for (var i = 0; i < _children.length; ++i) { _children[i].replaceFilter(brushIsEmpty ? null : extent); } }; _chart._prepareYAxis = function () { var left = (leftYAxisChildren().length !== 0); var right = (rightYAxisChildren().length !== 0); var ranges = calculateYAxisRanges(left, right); if (left) { prepareLeftYAxis(ranges); } if (right) { prepareRightYAxis(ranges); } if (leftYAxisChildren().length > 0 && !_rightAxisGridLines) { _chart._renderHorizontalGridLinesForAxis(_chart.g(), _chart.y(), _chart.yAxis()); } else if (rightYAxisChildren().length > 0) { _chart._renderHorizontalGridLinesForAxis(_chart.g(), _rightY, _rightYAxis); } }; _chart.renderYAxis = function () { if (leftYAxisChildren().length !== 0) { _chart.renderYAxisAt('y', _chart.yAxis(), _chart.margins().left); _chart.renderYAxisLabel('y', _chart.yAxisLabel(), -90); } if (rightYAxisChildren().length !== 0) { _chart.renderYAxisAt('yr', _chart.rightYAxis(), _chart.width() - _chart.margins().right); _chart.renderYAxisLabel('yr', _chart.rightYAxisLabel(), 90, _chart.width() - _rightYAxisLabelPadding); } }; function calculateYAxisRanges (left, right) { var lyAxisMin, lyAxisMax, ryAxisMin, ryAxisMax; var ranges; if (left) { lyAxisMin = yAxisMin(); lyAxisMax = yAxisMax(); } if (right) { ryAxisMin = rightYAxisMin(); ryAxisMax = rightYAxisMax(); } if (_chart.alignYAxes() && left && right) { ranges = alignYAxisRanges(lyAxisMin, lyAxisMax, ryAxisMin, ryAxisMax); } return ranges || { lyAxisMin: lyAxisMin, lyAxisMax: lyAxisMax, ryAxisMin: ryAxisMin, ryAxisMax: ryAxisMax }; } function alignYAxisRanges (lyAxisMin, lyAxisMax, ryAxisMin, ryAxisMax) { // since the two series will share a zero, each Y is just a multiple // of the other. and the ratio should be the ratio of the ranges of the // input data, so that they come out the same height. so we just min/max // note: both ranges already include zero due to the stack mixin (#667) // if #667 changes, we can reconsider whether we want data height or // height from zero to be equal. and it will be possible for the axes // to be aligned but not visible. var extentRatio = (ryAxisMax - ryAxisMin) / (lyAxisMax - lyAxisMin); return { lyAxisMin: Math.min(lyAxisMin, ryAxisMin / extentRatio), lyAxisMax: Math.max(lyAxisMax, ryAxisMax / extentRatio), ryAxisMin: Math.min(ryAxisMin, lyAxisMin * extentRatio), ryAxisMax: Math.max(ryAxisMax, lyAxisMax * extentRatio) }; } function prepareRightYAxis (ranges) { var needDomain = _chart.rightY() === undefined || _chart.elasticY(), needRange = needDomain || _chart.resizing(); if (_chart.rightY() === undefined) { _chart.rightY(d3.scale.linear()); } if (needDomain) { _chart.rightY().domain([ranges.ryAxisMin, ranges.ryAxisMax]); } if (needRange) { _chart.rightY().rangeRound([_chart.yAxisHeight(), 0]); } _chart.rightY().range([_chart.yAxisHeight(), 0]); _chart.rightYAxis(_chart.rightYAxis().scale(_chart.rightY())); _chart.rightYAxis().orient('right'); } function prepareLeftYAxis (ranges) { var needDomain = _chart.y() === undefined || _chart.elasticY(), needRange = needDomain || _chart.resizing(); if (_chart.y() === undefined) { _chart.y(d3.scale.linear()); } if (needDomain) { _chart.y().domain([ranges.lyAxisMin, ranges.lyAxisMax]); } if (needRange) { _chart.y().rangeRound([_chart.yAxisHeight(), 0]); } _chart.y().range([_chart.yAxisHeight(), 0]); _chart.yAxis(_chart.yAxis().scale(_chart.y())); _chart.yAxis().orient('left'); } function generateChildG (child, i) { child._generateG(_chart.g()); child.g().attr('class', SUB_CHART_CLASS + ' _' + i); } _chart.plotData = function () { for (var i = 0; i < _children.length; ++i) { var child = _children[i]; if (!child.g()) { generateChildG(child, i); } if (_shareColors) { child.colors(_chart.colors()); } child.x(_chart.x()); child.xAxis(_chart.xAxis()); if (child.useRightYAxis()) { child.y(_chart.rightY()); child.yAxis(_chart.rightYAxis()); } else { child.y(_chart.y()); child.yAxis(_chart.yAxis()); } child.plotData(); child._activateRenderlets(); } }; /** * Get or set whether to draw gridlines from the right y axis. Drawing from the left y axis is the * default behavior. This option is only respected when subcharts with both left and right y-axes * are present. * @method useRightAxisGridLines * @memberof dc.compositeChart * @instance * @param {Boolean} [useRightAxisGridLines=false] * @returns {Boolean|dc.compositeChart} */ _chart.useRightAxisGridLines = function (useRightAxisGridLines) { if (!arguments) { return _rightAxisGridLines; } _rightAxisGridLines = useRightAxisGridLines; return _chart; }; /** * Get or set chart-specific options for all child charts. This is equivalent to calling * {@link dc.baseMixin#options .options} on each child chart. * @method childOptions * @memberof dc.compositeChart * @instance * @param {Object} [childOptions] * @returns {Object|dc.compositeChart} */ _chart.childOptions = function (childOptions) { if (!arguments.length) { return _childOptions; } _childOptions = childOptions; _children.forEach(function (child) { child.options(_childOptions); }); return _chart; }; _chart.fadeDeselectedArea = function () { for (var i = 0; i < _children.length; ++i) { var child = _children[i]; child.brush(_chart.brush()); child.fadeDeselectedArea(); } }; /** * Set or get the right y axis label. * @method rightYAxisLabel * @memberof dc.compositeChart * @instance * @param {String} [rightYAxisLabel] * @param {Number} [padding] * @returns {String|dc.compositeChart} */ _chart.rightYAxisLabel = function (rightYAxisLabel, padding) { if (!arguments.length) { return _rightYAxisLabel; } _rightYAxisLabel = rightYAxisLabel; _chart.margins().right -= _rightYAxisLabelPadding; _rightYAxisLabelPadding = (padding === undefined) ? DEFAULT_RIGHT_Y_AXIS_LABEL_PADDING : padding; _chart.margins().right += _rightYAxisLabelPadding; return _chart; }; /** * Combine the given charts into one single composite coordinate grid chart. * @method compose * @memberof dc.compositeChart * @instance * @example * moveChart.compose([ * // when creating sub-chart you need to pass in the parent chart * dc.lineChart(moveChart) * .group(indexAvgByMonthGroup) // if group is missing then parent's group will be used * .valueAccessor(function (d){return d.value.avg;}) * // most of the normal functions will continue to work in a composed chart * .renderArea(true) * .stack(monthlyMoveGroup, function (d){return d.value;}) * .title(function (d){ * var value = d.value.avg?d.value.avg:d.value; * if(isNaN(value)) value = 0; * return dateFormat(d.key) + '\n' + numberFormat(value); * }), * dc.barChart(moveChart) * .group(volumeByMonthGroup) * .centerBar(true) * ]); * @param {Array<Chart>} [subChartArray] * @returns {dc.compositeChart} */ _chart.compose = function (subChartArray) { _children = subChartArray; _children.forEach(function (child) { child.height(_chart.height()); child.width(_chart.width()); child.margins(_chart.margins()); if (_shareTitle) { child.title(_chart.title()); } child.options(_childOptions); }); return _chart; }; /** * Returns the child charts which are composed into the composite chart. * @method children * @memberof dc.compositeChart * @instance * @returns {Array<dc.baseMixin>} */ _chart.children = function () { return _children; }; /** * Get or set color sharing for the chart. If set, the {@link dc.colorMixin#colors .colors()} value from this chart * will be shared with composed children. Additionally if the child chart implements * Stackable and has not set a custom .colorAccessor, then it will generate a color * specific to its order in the composition. * @method shareColors * @memberof dc.compositeChart * @instance * @param {Boolean} [shareColors=false] * @returns {Boolean|dc.compositeChart} */ _chart.shareColors = function (shareColors) { if (!arguments.length) { return _shareColors; } _shareColors = shareColors; return _chart; }; /** * Get or set title sharing for the chart. If set, the {@link dc.baseMixin#title .title()} value from * this chart will be shared with composed children. * @method shareTitle * @memberof dc.compositeChart * @instance * @param {Boolean} [shareTitle=true] * @returns {Boolean|dc.compositeChart} */ _chart.shareTitle = function (shareTitle) { if (!arguments.length) { return _shareTitle; } _shareTitle = shareTitle; return _chart; }; /** * Get or set the y scale for the right axis. The right y scale is typically automatically * generated by the chart implementation. * @method rightY * @memberof dc.compositeChart * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Scales.md d3.scale} * @param {d3.scale} [yScale] * @returns {d3.scale|dc.compositeChart} */ _chart.rightY = function (yScale) { if (!arguments.length) { return _rightY; } _rightY = yScale; _chart.rescale(); return _chart; }; /** * Get or set alignment between left and right y axes. A line connecting '0' on both y axis * will be parallel to x axis. This only has effect when {@link #dc.coordinateGridMixin+elasticY elasticY} is true. * @method alignYAxes * @memberof dc.compositeChart * @instance * @param {Boolean} [alignYAxes=false] * @returns {Chart} */ _chart.alignYAxes = function (alignYAxes) { if (!arguments.length) { return _alignYAxes; } _alignYAxes = alignYAxes; _chart.rescale(); return _chart; }; function leftYAxisChildren () { return _children.filter(function (child) { return !child.useRightYAxis(); }); } function rightYAxisChildren () { return _children.filter(function (child) { return child.useRightYAxis(); }); } function getYAxisMin (charts) { return charts.map(function (c) { return c.yAxisMin(); }); } delete _chart.yAxisMin; function yAxisMin () { return d3.min(getYAxisMin(leftYAxisChildren())); } function rightYAxisMin () { return d3.min(getYAxisMin(rightYAxisChildren())); } function getYAxisMax (charts) { return charts.map(function (c) { return c.yAxisMax(); }); } delete _chart.yAxisMax; function yAxisMax () { return dc.utils.add(d3.max(getYAxisMax(leftYAxisChildren())), _chart.yAxisPadding()); } function rightYAxisMax () { return dc.utils.add(d3.max(getYAxisMax(rightYAxisChildren())), _chart.yAxisPadding()); } function getAllXAxisMinFromChildCharts () { return _children.map(function (c) { return c.xAxisMin(); }); } dc.override(_chart, 'xAxisMin', function () { return dc.utils.subtract(d3.min(getAllXAxisMinFromChildCharts()), _chart.xAxisPadding()); }); function getAllXAxisMaxFromChildCharts () { return _children.map(function (c) { return c.xAxisMax(); }); } dc.override(_chart, 'xAxisMax', function () { return dc.utils.add(d3.max(getAllXAxisMaxFromChildCharts()), _chart.xAxisPadding()); }); _chart.legendables = function () { return _children.reduce(function (items, child) { if (_shareColors) { child.colors(_chart.colors()); } items.push.apply(items, child.legendables()); return items; }, []); }; _chart.legendHighlight = function (d) { for (var j = 0; j < _children.length; ++j) { var child = _children[j]; child.legendHighlight(d); } }; _chart.legendReset = function (d) { for (var j = 0; j < _children.length; ++j) { var child = _children[j]; child.legendReset(d); } }; _chart.legendToggle = function () { console.log('composite should not be getting legendToggle itself'); }; /** * Set or get the right y axis used by the composite chart. This function is most useful when y * axis customization is required. The y axis in dc.js is an instance of a [d3 axis * object](https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Axes.md#axis) therefore it supports any valid * d3 axis manipulation. * * **Caution**: The y axis is usually generated internally by dc; resetting it may cause * unexpected results. * @method rightYAxis * @memberof dc.compositeChart * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Axes.md#axis d3.svg.axis} * @example * // customize y axis tick format * chart.rightYAxis().tickFormat(function (v) {return v + '%';}); * // customize y axis tick values * chart.rightYAxis().tickValues([0, 100, 200, 300]); * @param {d3.svg.axis} [rightYAxis] * @returns {d3.svg.axis|dc.compositeChart} */ _chart.rightYAxis = function (rightYAxis) { if (!arguments.length) { return _rightYAxis; } _rightYAxis = rightYAxis; return _chart; }; return _chart.anchor(parent, chartGroup); }; /** * A series chart is a chart that shows multiple series of data overlaid on one chart, where the * series is specified in the data. It is a specialization of Composite Chart and inherits all * composite features other than recomposing the chart. * * Examples: * - {@link http://dc-js.github.io/dc.js/examples/series.html Series Chart} * @class seriesChart * @memberof dc * @mixes dc.compositeChart * @example * // create a series chart under #chart-container1 element using the default global chart group * var seriesChart1 = dc.seriesChart("#chart-container1"); * // create a series chart under #chart-container2 element using chart group A * var seriesChart2 = dc.seriesChart("#chart-container2", "chartGroupA"); * @param {String|node|d3.selection} parent - Any valid * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Selections.md#selecting-elements d3 single selector} specifying * a dom block element such as a div; or a dom element or d3 selection. * @param {String} [chartGroup] - The name of the chart group this chart instance should be placed in. * Interaction with a chart will only trigger events and redraws within the chart's group. * @returns {dc.seriesChart} */ dc.seriesChart = function (parent, chartGroup) { var _chart = dc.compositeChart(parent, chartGroup); function keySort (a, b) { return d3.ascending(_chart.keyAccessor()(a), _chart.keyAccessor()(b)); } var _charts = {}; var _chartFunction = dc.lineChart; var _seriesAccessor; var _seriesSort = d3.ascending; var _valueSort = keySort; _chart._mandatoryAttributes().push('seriesAccessor', 'chart'); _chart.shareColors(true); _chart._preprocessData = function () { var keep = []; var childrenChanged; var nester = d3.nest().key(_seriesAccessor); if (_seriesSort) { nester.sortKeys(_seriesSort); } if (_valueSort) { nester.sortValues(_valueSort); } var nesting = nester.entries(_chart.data()); var children = nesting.map(function (sub, i) { var subChart = _charts[sub.key] || _chartFunction.call(_chart, _chart, chartGroup, sub.key, i); if (!_charts[sub.key]) { childrenChanged = true; } _charts[sub.key] = subChart; keep.push(sub.key); return subChart .dimension(_chart.dimension()) .group({all: d3.functor(sub.values)}, sub.key) .keyAccessor(_chart.keyAccessor()) .valueAccessor(_chart.valueAccessor()) .brushOn(_chart.brushOn()); }); // this works around the fact compositeChart doesn't really // have a removal interface Object.keys(_charts) .filter(function (c) {return keep.indexOf(c) === -1;}) .forEach(function (c) { clearChart(c); childrenChanged = true; }); _chart._compose(children); if (childrenChanged && _chart.legend()) { _chart.legend().render(); } }; function clearChart (c) { if (_charts[c].g()) { _charts[c].g().remove(); } delete _charts[c]; } function resetChildren () { Object.keys(_charts).map(clearChart); _charts = {}; } /** * Get or set the chart function, which generates the child charts. * @method chart * @memberof dc.seriesChart * @instance * @example * // put interpolation on the line charts used for the series * chart.chart(function(c) { return dc.lineChart(c).interpolate('basis'); }) * // do a scatter series chart * chart.chart(dc.scatterPlot) * @param {Function} [chartFunction=dc.lineChart] * @returns {Function|dc.seriesChart} */ _chart.chart = function (chartFunction) { if (!arguments.length) { return _chartFunction; } _chartFunction = chartFunction; resetChildren(); return _chart; }; /** * **mandatory** * * Get or set accessor function for the displayed series. Given a datum, this function * should return the series that datum belongs to. * @method seriesAccessor * @memberof dc.seriesChart * @instance * @example * // simple series accessor * chart.seriesAccessor(function(d) { return "Expt: " + d.key[0]; }) * @param {Function} [accessor] * @returns {Function|dc.seriesChart} */ _chart.seriesAccessor = function (accessor) { if (!arguments.length) { return _seriesAccessor; } _seriesAccessor = accessor; resetChildren(); return _chart; }; /** * Get or set a function to sort the list of series by, given series values. * @method seriesSort * @memberof dc.seriesChart * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Arrays.md#d3_ascending d3.ascending} * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Arrays.md#d3_descending d3.descending} * @example * chart.seriesSort(d3.descending); * @param {Function} [sortFunction=d3.ascending] * @returns {Function|dc.seriesChart} */ _chart.seriesSort = function (sortFunction) { if (!arguments.length) { return _seriesSort; } _seriesSort = sortFunction; resetChildren(); return _chart; }; /** * Get or set a function to sort each series values by. By default this is the key accessor which, * for example, will ensure a lineChart series connects its points in increasing key/x order, * rather than haphazardly. * @method valueSort * @memberof dc.seriesChart * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Arrays.md#d3_ascending d3.ascending} * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Arrays.md#d3_descending d3.descending} * @example * // Default value sort * _chart.valueSort(function keySort (a, b) { * return d3.ascending(_chart.keyAccessor()(a), _chart.keyAccessor()(b)); * }); * @param {Function} [sortFunction] * @returns {Function|dc.seriesChart} */ _chart.valueSort = function (sortFunction) { if (!arguments.length) { return _valueSort; } _valueSort = sortFunction; resetChildren(); return _chart; }; // make compose private _chart._compose = _chart.compose; delete _chart.compose; return _chart; }; /** * The geo choropleth chart is designed as an easy way to create a crossfilter driven choropleth map * from GeoJson data. This chart implementation was inspired by * {@link http://bl.ocks.org/4060606 the great d3 choropleth example}. * * Examples: * - {@link http://dc-js.github.com/dc.js/vc/index.html US Venture Capital Landscape 2011} * @class geoChoroplethChart * @memberof dc * @mixes dc.colorMixin * @mixes dc.baseMixin * @example * // create a choropleth chart under '#us-chart' element using the default global chart group * var chart1 = dc.geoChoroplethChart('#us-chart'); * // create a choropleth chart under '#us-chart2' element using chart group A * var chart2 = dc.compositeChart('#us-chart2', 'chartGroupA'); * @param {String|node|d3.selection} parent - Any valid * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Selections.md#selecting-elements d3 single selector} specifying * a dom block element such as a div; or a dom element or d3 selection. * @param {String} [chartGroup] - The name of the chart group this chart instance should be placed in. * Interaction with a chart will only trigger events and redraws within the chart's group. * @returns {dc.geoChoroplethChart} */ dc.geoChoroplethChart = function (parent, chartGroup) { var _chart = dc.colorMixin(dc.baseMixin({})); _chart.colorAccessor(function (d) { return d || 0; }); var _geoPath = d3.geo.path(); var _projectionFlag; var _geoJsons = []; _chart._doRender = function () { _chart.resetSvg(); for (var layerIndex = 0; layerIndex < _geoJsons.length; ++layerIndex) { var states = _chart.svg().append('g') .attr('class', 'layer' + layerIndex); var regionG = states.selectAll('g.' + geoJson(layerIndex).name) .data(geoJson(layerIndex).data) .enter() .append('g') .attr('class', geoJson(layerIndex).name); regionG .append('path') .attr('fill', 'white') .attr('d', _geoPath); regionG.append('title'); plotData(layerIndex); } _projectionFlag = false; }; function plotData (layerIndex) { var data = generateLayeredData(); if (isDataLayer(layerIndex)) { var regionG = renderRegionG(layerIndex); renderPaths(regionG, layerIndex, data); renderTitle(regionG, layerIndex, data); } } function generateLayeredData () { var data = {}; var groupAll = _chart.data(); for (var i = 0; i < groupAll.length; ++i) { data[_chart.keyAccessor()(groupAll[i])] = _chart.valueAccessor()(groupAll[i]); } return data; } function isDataLayer (layerIndex) { return geoJson(layerIndex).keyAccessor; } function renderRegionG (layerIndex) { var regionG = _chart.svg() .selectAll(layerSelector(layerIndex)) .classed('selected', function (d) { return isSelected(layerIndex, d); }) .classed('deselected', function (d) { return isDeselected(layerIndex, d); }) .attr('class', function (d) { var layerNameClass = geoJson(layerIndex).name; var regionClass = dc.utils.nameToId(geoJson(layerIndex).keyAccessor(d)); var baseClasses = layerNameClass + ' ' + regionClass; if (isSelected(layerIndex, d)) { baseClasses += ' selected'; } if (isDeselected(layerIndex, d)) { baseClasses += ' deselected'; } return baseClasses; }); return regionG; } function layerSelector (layerIndex) { return 'g.layer' + layerIndex + ' g.' + geoJson(layerIndex).name; } function isSelected (layerIndex, d) { return _chart.hasFilter() && _chart.hasFilter(getKey(layerIndex, d)); } function isDeselected (layerIndex, d) { return _chart.hasFilter() && !_chart.hasFilter(getKey(layerIndex, d)); } function getKey (layerIndex, d) { return geoJson(layerIndex).keyAccessor(d); } function geoJson (index) { return _geoJsons[index]; } function renderPaths (regionG, layerIndex, data) { var paths = regionG .select('path') .attr('fill', function () { var currentFill = d3.select(this).attr('fill'); if (currentFill) { return currentFill; } return 'none'; }) .on('click', function (d) { return _chart.onClick(d, layerIndex); }); dc.transition(paths, _chart.transitionDuration(), _chart.transitionDelay()).attr('fill', function (d, i) { return _chart.getColor(data[geoJson(layerIndex).keyAccessor(d)], i); }); } _chart.onClick = function (d, layerIndex) { var selectedRegion = geoJson(layerIndex).keyAccessor(d); dc.events.trigger(function () { _chart.filter(selectedRegion); _chart.redrawGroup(); }); }; function renderTitle (regionG, layerIndex, data) { if (_chart.renderTitle()) { regionG.selectAll('title').text(function (d) { var key = getKey(layerIndex, d); var value = data[key]; return _chart.title()({key: key, value: value}); }); } } _chart._doRedraw = function () { for (var layerIndex = 0; layerIndex < _geoJsons.length; ++layerIndex) { plotData(layerIndex); if (_projectionFlag) { _chart.svg().selectAll('g.' + geoJson(layerIndex).name + ' path').attr('d', _geoPath); } } _projectionFlag = false; }; /** * **mandatory** * * Use this function to insert a new GeoJson map layer. This function can be invoked multiple times * if you have multiple GeoJson data layers to render on top of each other. If you overlay multiple * layers with the same name the new overlay will override the existing one. * @method overlayGeoJson * @memberof dc.geoChoroplethChart * @instance * @see {@link http://geojson.org/ GeoJSON} * @see {@link https://github.com/topojson/topojson/wiki TopoJSON} * @see {@link https://github.com/topojson/topojson-1.x-api-reference/blob/master/API-Reference.md#wiki-feature topojson.feature} * @example * // insert a layer for rendering US states * chart.overlayGeoJson(statesJson.features, 'state', function(d) { * return d.properties.name; * }); * @param {geoJson} json - a geojson feed * @param {String} name - name of the layer * @param {Function} keyAccessor - accessor function used to extract 'key' from the GeoJson data. The key extracted by * this function should match the keys returned by the crossfilter groups. * @returns {dc.geoChoroplethChart} */ _chart.overlayGeoJson = function (json, name, keyAccessor) { for (var i = 0; i < _geoJsons.length; ++i) { if (_geoJsons[i].name === name) { _geoJsons[i].data = json; _geoJsons[i].keyAccessor = keyAccessor; return _chart; } } _geoJsons.push({name: name, data: json, keyAccessor: keyAccessor}); return _chart; }; /** * Set custom geo projection function. See the available * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Geo-Projections.md d3 geo projection functions}. * @method projection * @memberof dc.geoChoroplethChart * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Geo-Projections.md d3.geo.projection} * @see {@link https://github.com/d3/d3-geo-projection Extended d3.geo.projection} * @param {d3.projection} [projection=d3.geo.albersUsa()] * @returns {dc.geoChoroplethChart} */ _chart.projection = function (projection) { _geoPath.projection(projection); _projectionFlag = true; return _chart; }; /** * Returns all GeoJson layers currently registered with this chart. The returned array is a * reference to this chart's internal data structure, so any modification to this array will also * modify this chart's internal registration. * @method geoJsons * @memberof dc.geoChoroplethChart * @instance * @returns {Array<{name:String, data: Object, accessor: Function}>} */ _chart.geoJsons = function () { return _geoJsons; }; /** * Returns the {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Geo-Paths.md#path d3.geo.path} object used to * render the projection and features. Can be useful for figuring out the bounding box of the * feature set and thus a way to calculate scale and translation for the projection. * @method geoPath * @memberof dc.geoChoroplethChart * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Geo-Paths.md#path d3.geo.path} * @returns {d3.geo.path} */ _chart.geoPath = function () { return _geoPath; }; /** * Remove a GeoJson layer from this chart by name * @method removeGeoJson * @memberof dc.geoChoroplethChart * @instance * @param {String} name * @returns {dc.geoChoroplethChart} */ _chart.removeGeoJson = function (name) { var geoJsons = []; for (var i = 0; i < _geoJsons.length; ++i) { var layer = _geoJsons[i]; if (layer.name !== name) { geoJsons.push(layer); } } _geoJsons = geoJsons; return _chart; }; return _chart.anchor(parent, chartGroup); }; /** * The bubble overlay chart is quite different from the typical bubble chart. With the bubble overlay * chart you can arbitrarily place bubbles on an existing svg or bitmap image, thus changing the * typical x and y positioning while retaining the capability to visualize data using bubble radius * and coloring. * * Examples: * - {@link http://dc-js.github.com/dc.js/crime/index.html Canadian City Crime Stats} * @class bubbleOverlay * @memberof dc * @mixes dc.bubbleMixin * @mixes dc.baseMixin * @example * // create a bubble overlay chart on top of the '#chart-container1 svg' element using the default global chart group * var bubbleChart1 = dc.bubbleOverlayChart('#chart-container1').svg(d3.select('#chart-container1 svg')); * // create a bubble overlay chart on top of the '#chart-container2 svg' element using chart group A * var bubbleChart2 = dc.compositeChart('#chart-container2', 'chartGroupA').svg(d3.select('#chart-container2 svg')); * @param {String|node|d3.selection} parent - Any valid * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Selections.md#selecting-elements d3 single selector} specifying * a dom block element such as a div; or a dom element or d3 selection. * @param {String} [chartGroup] - The name of the chart group this chart instance should be placed in. * Interaction with a chart will only trigger events and redraws within the chart's group. * @returns {dc.bubbleOverlay} */ dc.bubbleOverlay = function (parent, chartGroup) { var BUBBLE_OVERLAY_CLASS = 'bubble-overlay'; var BUBBLE_NODE_CLASS = 'node'; var BUBBLE_CLASS = 'bubble'; /** * **mandatory** * * Set the underlying svg image element. Unlike other dc charts this chart will not generate a svg * element; therefore the bubble overlay chart will not work if this function is not invoked. If the * underlying image is a bitmap, then an empty svg will need to be created on top of the image. * @method svg * @memberof dc.bubbleOverlay * @instance * @example * // set up underlying svg element * chart.svg(d3.select('#chart svg')); * @param {SVGElement|d3.selection} [imageElement] * @returns {dc.bubbleOverlay} */ var _chart = dc.bubbleMixin(dc.baseMixin({})); var _g; var _points = []; _chart.transitionDuration(750); _chart.transitionDelay(0); _chart.radiusValueAccessor(function (d) { return d.value; }); /** * **mandatory** * * Set up a data point on the overlay. The name of a data point should match a specific 'key' among * data groups generated using keyAccessor. If a match is found (point name <-> data group key) * then a bubble will be generated at the position specified by the function. x and y * value specified here are relative to the underlying svg. * @method point * @memberof dc.bubbleOverlay * @instance * @param {String} name * @param {Number} x * @param {Number} y * @returns {dc.bubbleOverlay} */ _chart.point = function (name, x, y) { _points.push({name: name, x: x, y: y}); return _chart; }; _chart._doRender = function () { _g = initOverlayG(); _chart.r().range([_chart.MIN_RADIUS, _chart.width() * _chart.maxBubbleRelativeSize()]); initializeBubbles(); _chart.fadeDeselectedArea(); return _chart; }; function initOverlayG () { _g = _chart.select('g.' + BUBBLE_OVERLAY_CLASS); if (_g.empty()) { _g = _chart.svg().append('g').attr('class', BUBBLE_OVERLAY_CLASS); } return _g; } function initializeBubbles () { var data = mapData(); _points.forEach(function (point) { var nodeG = getNodeG(point, data); var circle = nodeG.select('circle.' + BUBBLE_CLASS); if (circle.empty()) { circle = nodeG.append('circle') .attr('class', BUBBLE_CLASS) .attr('r', 0) .attr('fill', _chart.getColor) .on('click', _chart.onClick); } dc.transition(circle, _chart.transitionDuration(), _chart.transitionDelay()) .attr('r', function (d) { return _chart.bubbleR(d); }); _chart._doRenderLabel(nodeG); _chart._doRenderTitles(nodeG); }); } function mapData () { var data = {}; _chart.data().forEach(function (datum) { data[_chart.keyAccessor()(datum)] = datum; }); return data; } function getNodeG (point, data) { var bubbleNodeClass = BUBBLE_NODE_CLASS + ' ' + dc.utils.nameToId(point.name); var nodeG = _g.select('g.' + dc.utils.nameToId(point.name)); if (nodeG.empty()) { nodeG = _g.append('g') .attr('class', bubbleNodeClass) .attr('transform', 'translate(' + point.x + ',' + point.y + ')'); } nodeG.datum(data[point.name]); return nodeG; } _chart._doRedraw = function () { updateBubbles(); _chart.fadeDeselectedArea(); return _chart; }; function updateBubbles () { var data = mapData(); _points.forEach(function (point) { var nodeG = getNodeG(point, data); var circle = nodeG.select('circle.' + BUBBLE_CLASS); dc.transition(circle, _chart.transitionDuration(), _chart.transitionDelay()) .attr('r', function (d) { return _chart.bubbleR(d); }) .attr('fill', _chart.getColor); _chart.doUpdateLabels(nodeG); _chart.doUpdateTitles(nodeG); }); } _chart.debug = function (flag) { if (flag) { var debugG = _chart.select('g.' + dc.constants.DEBUG_GROUP_CLASS); if (debugG.empty()) { debugG = _chart.svg() .append('g') .attr('class', dc.constants.DEBUG_GROUP_CLASS); } var debugText = debugG.append('text') .attr('x', 10) .attr('y', 20); debugG .append('rect') .attr('width', _chart.width()) .attr('height', _chart.height()) .on('mousemove', function () { var position = d3.mouse(debugG.node()); var msg = position[0] + ', ' + position[1]; debugText.text(msg); }); } else { _chart.selectAll('.debug').remove(); } return _chart; }; _chart.anchor(parent, chartGroup); return _chart; }; /** * Concrete row chart implementation. * * Examples: * - {@link http://dc-js.github.com/dc.js/ Nasdaq 100 Index} * @class rowChart * @memberof dc * @mixes dc.capMixin * @mixes dc.marginMixin * @mixes dc.colorMixin * @mixes dc.baseMixin * @example * // create a row chart under #chart-container1 element using the default global chart group * var chart1 = dc.rowChart('#chart-container1'); * // create a row chart under #chart-container2 element using chart group A * var chart2 = dc.rowChart('#chart-container2', 'chartGroupA'); * @param {String|node|d3.selection} parent - Any valid * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Selections.md#selecting-elements d3 single selector} specifying * a dom block element such as a div; or a dom element or d3 selection. * @param {String} [chartGroup] - The name of the chart group this chart instance should be placed in. * Interaction with a chart will only trigger events and redraws within the chart's group. * @returns {dc.rowChart} */ dc.rowChart = function (parent, chartGroup) { var _g; var _labelOffsetX = 10; var _labelOffsetY = 15; var _hasLabelOffsetY = false; var _dyOffset = '0.35em'; // this helps center labels https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Shapes.md#svg_text var _titleLabelOffsetX = 2; var _gap = 5; var _fixedBarHeight = false; var _rowCssClass = 'row'; var _titleRowCssClass = 'titlerow'; var _renderTitleLabel = false; var _chart = dc.capMixin(dc.marginMixin(dc.colorMixin(dc.baseMixin({})))); var _x; var _elasticX; var _xAxis = d3.svg.axis().orient('bottom'); var _rowData; _chart.rowsCap = _chart.cap; function calculateAxisScale () { if (!_x || _elasticX) { var extent = d3.extent(_rowData, _chart.cappedValueAccessor); if (extent[0] > 0) { extent[0] = 0; } if (extent[1] < 0) { extent[1] = 0; } _x = d3.scale.linear().domain(extent) .range([0, _chart.effectiveWidth()]); } _xAxis.scale(_x); } function drawAxis () { var axisG = _g.select('g.axis'); calculateAxisScale(); if (axisG.empty()) { axisG = _g.append('g').attr('class', 'axis'); } axisG.attr('transform', 'translate(0, ' + _chart.effectiveHeight() + ')'); dc.transition(axisG, _chart.transitionDuration(), _chart.transitionDelay()) .call(_xAxis); } _chart._doRender = function () { _chart.resetSvg(); _g = _chart.svg() .append('g') .attr('transform', 'translate(' + _chart.margins().left + ',' + _chart.margins().top + ')'); drawChart(); return _chart; }; _chart.title(function (d) { return _chart.cappedKeyAccessor(d) + ': ' + _chart.cappedValueAccessor(d); }); _chart.label(_chart.cappedKeyAccessor); /** * Gets or sets the x scale. The x scale can be any d3 * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Quantitative-Scales.md quantitive scale}. * @method x * @memberof dc.rowChart * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Quantitative-Scales.md quantitive scale} * @param {d3.scale} [scale] * @returns {d3.scale|dc.rowChart} */ _chart.x = function (scale) { if (!arguments.length) { return _x; } _x = scale; return _chart; }; function drawGridLines () { _g.selectAll('g.tick') .select('line.grid-line') .remove(); _g.selectAll('g.tick') .append('line') .attr('class', 'grid-line') .attr('x1', 0) .attr('y1', 0) .attr('x2', 0) .attr('y2', function () { return -_chart.effectiveHeight(); }); } function drawChart () { _rowData = _chart.data(); drawAxis(); drawGridLines(); var rows = _g.selectAll('g.' + _rowCssClass) .data(_rowData); createElements(rows); removeElements(rows); updateElements(rows); } function createElements (rows) { var rowEnter = rows.enter() .append('g') .attr('class', function (d, i) { return _rowCssClass + ' _' + i; }); rowEnter.append('rect').attr('width', 0); createLabels(rowEnter); } function removeElements (rows) { rows.exit().remove(); } function rootValue () { var root = _x(0); return (root === -Infinity || root !== root) ? _x(1) : root; } function updateElements (rows) { var n = _rowData.length; var height; if (!_fixedBarHeight) { height = (_chart.effectiveHeight() - (n + 1) * _gap) / n; } else { height = _fixedBarHeight; } // vertically align label in center unless they override the value via property setter if (!_hasLabelOffsetY) { _labelOffsetY = height / 2; } var rect = rows.attr('transform', function (d, i) { return 'translate(0,' + ((i + 1) * _gap + i * height) + ')'; }).select('rect') .attr('height', height) .attr('fill', _chart.getColor) .on('click', onClick) .classed('deselected', function (d) { return (_chart.hasFilter()) ? !isSelectedRow(d) : false; }) .classed('selected', function (d) { return (_chart.hasFilter()) ? isSelectedRow(d) : false; }); dc.transition(rect, _chart.transitionDuration(), _chart.transitionDelay()) .attr('width', function (d) { return Math.abs(rootValue() - _x(_chart.valueAccessor()(d))); }) .attr('transform', translateX); createTitles(rows); updateLabels(rows); } function createTitles (rows) { if (_chart.renderTitle()) { rows.select('title').remove(); rows.append('title').text(_chart.title()); } } function createLabels (rowEnter) { if (_chart.renderLabel()) { rowEnter.append('text') .on('click', onClick); } if (_chart.renderTitleLabel()) { rowEnter.append('text') .attr('class', _titleRowCssClass) .on('click', onClick); } } function updateLabels (rows) { if (_chart.renderLabel()) { var lab = rows.select('text') .attr('x', _labelOffsetX) .attr('y', _labelOffsetY) .attr('dy', _dyOffset) .on('click', onClick) .attr('class', function (d, i) { return _rowCssClass + ' _' + i; }) .text(function (d) { return _chart.label()(d); }); dc.transition(lab, _chart.transitionDuration(), _chart.transitionDelay()) .attr('transform', translateX); } if (_chart.renderTitleLabel()) { var titlelab = rows.select('.' + _titleRowCssClass) .attr('x', _chart.effectiveWidth() - _titleLabelOffsetX) .attr('y', _labelOffsetY) .attr('dy', _dyOffset) .attr('text-anchor', 'end') .on('click', onClick) .attr('class', function (d, i) { return _titleRowCssClass + ' _' + i ; }) .text(function (d) { return _chart.title()(d); }); dc.transition(titlelab, _chart.transitionDuration(), _chart.transitionDelay()) .attr('transform', translateX); } } /** * Turn on/off Title label rendering (values) using SVG style of text-anchor 'end'. * @method renderTitleLabel * @memberof dc.rowChart * @instance * @param {Boolean} [renderTitleLabel=false] * @returns {Boolean|dc.rowChart} */ _chart.renderTitleLabel = function (renderTitleLabel) { if (!arguments.length) { return _renderTitleLabel; } _renderTitleLabel = renderTitleLabel; return _chart; }; function onClick (d) { _chart.onClick(d); } function translateX (d) { var x = _x(_chart.cappedValueAccessor(d)), x0 = rootValue(), s = x > x0 ? x0 : x; return 'translate(' + s + ',0)'; } _chart._doRedraw = function () { drawChart(); return _chart; }; /** * Get the x axis for the row chart instance. Note: not settable for row charts. * See the {@link https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Axes.md#axis d3 axis object} * documention for more information. * @method xAxis * @memberof dc.rowChart * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Axes.md#axis d3.svg.axis} * @example * // customize x axis tick format * chart.xAxis().tickFormat(function (v) {return v + '%';}); * // customize x axis tick values * chart.xAxis().tickValues([0, 100, 200, 300]); * @returns {d3.svg.axis} */ _chart.xAxis = function () { return _xAxis; }; /** * Get or set the fixed bar height. Default is [false] which will auto-scale bars. * For example, if you want to fix the height for a specific number of bars (useful in TopN charts) * you could fix height as follows (where count = total number of bars in your TopN and gap is * your vertical gap space). * @method fixedBarHeight * @memberof dc.rowChart * @instance * @example * chart.fixedBarHeight( chartheight - (count + 1) * gap / count); * @param {Boolean|Number} [fixedBarHeight=false] * @returns {Boolean|Number|dc.rowChart} */ _chart.fixedBarHeight = function (fixedBarHeight) { if (!arguments.length) { return _fixedBarHeight; } _fixedBarHeight = fixedBarHeight; return _chart; }; /** * Get or set the vertical gap space between rows on a particular row chart instance. * @method gap * @memberof dc.rowChart * @instance * @param {Number} [gap=5] * @returns {Number|dc.rowChart} */ _chart.gap = function (gap) { if (!arguments.length) { return _gap; } _gap = gap; return _chart; }; /** * Get or set the elasticity on x axis. If this attribute is set to true, then the x axis will rescle to auto-fit the * data range when filtered. * @method elasticX * @memberof dc.rowChart * @instance * @param {Boolean} [elasticX] * @returns {Boolean|dc.rowChart} */ _chart.elasticX = function (elasticX) { if (!arguments.length) { return _elasticX; } _elasticX = elasticX; return _chart; }; /** * Get or set the x offset (horizontal space to the top left corner of a row) for labels on a particular row chart. * @method labelOffsetX * @memberof dc.rowChart * @instance * @param {Number} [labelOffsetX=10] * @returns {Number|dc.rowChart} */ _chart.labelOffsetX = function (labelOffsetX) { if (!arguments.length) { return _labelOffsetX; } _labelOffsetX = labelOffsetX; return _chart; }; /** * Get or set the y offset (vertical space to the top left corner of a row) for labels on a particular row chart. * @method labelOffsetY * @memberof dc.rowChart * @instance * @param {Number} [labelOffsety=15] * @returns {Number|dc.rowChart} */ _chart.labelOffsetY = function (labelOffsety) { if (!arguments.length) { return _labelOffsetY; } _labelOffsetY = labelOffsety; _hasLabelOffsetY = true; return _chart; }; /** * Get of set the x offset (horizontal space between right edge of row and right edge or text. * @method titleLabelOffsetX * @memberof dc.rowChart * @instance * @param {Number} [titleLabelOffsetX=2] * @returns {Number|dc.rowChart} */ _chart.titleLabelOffsetX = function (titleLabelOffsetX) { if (!arguments.length) { return _titleLabelOffsetX; } _titleLabelOffsetX = titleLabelOffsetX; return _chart; }; function isSelectedRow (d) { return _chart.hasFilter(_chart.cappedKeyAccessor(d)); } return _chart.anchor(parent, chartGroup); }; /** * Legend is a attachable widget that can be added to other dc charts to render horizontal legend * labels. * * Examples: * - {@link http://dc-js.github.com/dc.js/ Nasdaq 100 Index} * - {@link http://dc-js.github.com/dc.js/crime/index.html Canadian City Crime Stats} * @class legend * @memberof dc * @example * chart.legend(dc.legend().x(400).y(10).itemHeight(13).gap(5)) * @returns {dc.legend} */ dc.legend = function () { var LABEL_GAP = 2; var _legend = {}, _parent, _x = 0, _y = 0, _itemHeight = 12, _gap = 5, _horizontal = false, _legendWidth = 560, _itemWidth = 70, _autoItemWidth = false, _legendText = dc.pluck('name'), _maxItems; var _g; _legend.parent = function (p) { if (!arguments.length) { return _parent; } _parent = p; return _legend; }; _legend.render = function () { _parent.svg().select('g.dc-legend').remove(); _g = _parent.svg().append('g') .attr('class', 'dc-legend') .attr('transform', 'translate(' + _x + ',' + _y + ')'); var legendables = _parent.legendables(); if (_maxItems !== undefined) { legendables = legendables.slice(0, _maxItems); } var itemEnter = _g.selectAll('g.dc-legend-item') .data(legendables) .enter() .append('g') .attr('class', 'dc-legend-item') .on('mouseover', function (d) { _parent.legendHighlight(d); }) .on('mouseout', function (d) { _parent.legendReset(d); }) .on('click', function (d) { d.chart.legendToggle(d); }); _g.selectAll('g.dc-legend-item') .classed('fadeout', function (d) { return d.chart.isLegendableHidden(d); }); if (legendables.some(dc.pluck('dashstyle'))) { itemEnter .append('line') .attr('x1', 0) .attr('y1', _itemHeight / 2) .attr('x2', _itemHeight) .attr('y2', _itemHeight / 2) .attr('stroke-width', 2) .attr('stroke-dasharray', dc.pluck('dashstyle')) .attr('stroke', dc.pluck('color')); } else { itemEnter .append('rect') .attr('width', _itemHeight) .attr('height', _itemHeight) .attr('fill', function (d) {return d ? d.color : 'blue';}); } itemEnter.append('text') .text(_legendText) .attr('x', _itemHeight + LABEL_GAP) .attr('y', function () { return _itemHeight / 2 + (this.clientHeight ? this.clientHeight : 13) / 2 - 2; }); var _cumulativeLegendTextWidth = 0; var row = 0; itemEnter.attr('transform', function (d, i) { if (_horizontal) { var itemWidth = _autoItemWidth === true ? this.getBBox().width + _gap : _itemWidth; if ((_cumulativeLegendTextWidth + itemWidth) > _legendWidth && _cumulativeLegendTextWidth > 0) { ++row; _cumulativeLegendTextWidth = 0; } var translateBy = 'translate(' + _cumulativeLegendTextWidth + ',' + row * legendItemHeight() + ')'; _cumulativeLegendTextWidth += itemWidth; return translateBy; } else { return 'translate(0,' + i * legendItemHeight() + ')'; } }); }; function legendItemHeight () { return _gap + _itemHeight; } /** * Set or get x coordinate for legend widget. * @method x * @memberof dc.legend * @instance * @param {Number} [x=0] * @returns {Number|dc.legend} */ _legend.x = function (x) { if (!arguments.length) { return _x; } _x = x; return _legend; }; /** * Set or get y coordinate for legend widget. * @method y * @memberof dc.legend * @instance * @param {Number} [y=0] * @returns {Number|dc.legend} */ _legend.y = function (y) { if (!arguments.length) { return _y; } _y = y; return _legend; }; /** * Set or get gap between legend items. * @method gap * @memberof dc.legend * @instance * @param {Number} [gap=5] * @returns {Number|dc.legend} */ _legend.gap = function (gap) { if (!arguments.length) { return _gap; } _gap = gap; return _legend; }; /** * Set or get legend item height. * @method itemHeight * @memberof dc.legend * @instance * @param {Number} [itemHeight=12] * @returns {Number|dc.legend} */ _legend.itemHeight = function (itemHeight) { if (!arguments.length) { return _itemHeight; } _itemHeight = itemHeight; return _legend; }; /** * Position legend horizontally instead of vertically. * @method horizontal * @memberof dc.legend * @instance * @param {Boolean} [horizontal=false] * @returns {Boolean|dc.legend} */ _legend.horizontal = function (horizontal) { if (!arguments.length) { return _horizontal; } _horizontal = horizontal; return _legend; }; /** * Maximum width for horizontal legend. * @method legendWidth * @memberof dc.legend * @instance * @param {Number} [legendWidth=500] * @returns {Number|dc.legend} */ _legend.legendWidth = function (legendWidth) { if (!arguments.length) { return _legendWidth; } _legendWidth = legendWidth; return _legend; }; /** * Legend item width for horizontal legend. * @method itemWidth * @memberof dc.legend * @instance * @param {Number} [itemWidth=70] * @returns {Number|dc.legend} */ _legend.itemWidth = function (itemWidth) { if (!arguments.length) { return _itemWidth; } _itemWidth = itemWidth; return _legend; }; /** * Turn automatic width for legend items on or off. If true, {@link dc.legend#itemWidth itemWidth} is ignored. * This setting takes into account the {@link dc.legend#gap gap}. * @method autoItemWidth * @memberof dc.legend * @instance * @param {Boolean} [autoItemWidth=false] * @returns {Boolean|dc.legend} */ _legend.autoItemWidth = function (autoItemWidth) { if (!arguments.length) { return _autoItemWidth; } _autoItemWidth = autoItemWidth; return _legend; }; /** * Set or get the legend text function. The legend widget uses this function to render the legend * text for each item. If no function is specified the legend widget will display the names * associated with each group. * @method legendText * @memberof dc.legend * @instance * @param {Function} [legendText] * @returns {Function|dc.legend} * @example * // default legendText * legend.legendText(dc.pluck('name')) * * // create numbered legend items * chart.legend(dc.legend().legendText(function(d, i) { return i + '. ' + d.name; })) * * // create legend displaying group counts * chart.legend(dc.legend().legendText(function(d) { return d.name + ': ' d.data; })) **/ _legend.legendText = function (legendText) { if (!arguments.length) { return _legendText; } _legendText = legendText; return _legend; }; /** * Maximum number of legend items to display * @method maxItems * @memberof dc.legend * @instance * @param {Number} [maxItems] * @return {dc.legend} */ _legend.maxItems = function (maxItems) { if (!arguments.length) { return _maxItems; } _maxItems = dc.utils.isNumber(maxItems) ? maxItems : undefined; return _legend; }; return _legend; }; /** * A scatter plot chart * * Examples: * - {@link http://dc-js.github.io/dc.js/examples/scatter.html Scatter Chart} * - {@link http://dc-js.github.io/dc.js/examples/multi-scatter.html Multi-Scatter Chart} * @class scatterPlot * @memberof dc * @mixes dc.coordinateGridMixin * @example * // create a scatter plot under #chart-container1 element using the default global chart group * var chart1 = dc.scatterPlot('#chart-container1'); * // create a scatter plot under #chart-container2 element using chart group A * var chart2 = dc.scatterPlot('#chart-container2', 'chartGroupA'); * // create a sub-chart under a composite parent chart * var chart3 = dc.scatterPlot(compositeChart); * @param {String|node|d3.selection} parent - Any valid * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Selections.md#selecting-elements d3 single selector} specifying * a dom block element such as a div; or a dom element or d3 selection. * @param {String} [chartGroup] - The name of the chart group this chart instance should be placed in. * Interaction with a chart will only trigger events and redraws within the chart's group. * @returns {dc.scatterPlot} */ dc.scatterPlot = function (parent, chartGroup) { var _chart = dc.coordinateGridMixin({}); var _symbol = d3.svg.symbol(); var _existenceAccessor = function (d) { return d.value; }; var originalKeyAccessor = _chart.keyAccessor(); _chart.keyAccessor(function (d) { return originalKeyAccessor(d)[0]; }); _chart.valueAccessor(function (d) { return originalKeyAccessor(d)[1]; }); _chart.colorAccessor(function () { return _chart._groupName; }); _chart.title(function (d) { // this basically just counteracts the setting of its own key/value accessors // see https://github.com/dc-js/dc.js/issues/702 return _chart.keyAccessor()(d) + ',' + _chart.valueAccessor()(d) + ': ' + _chart.existenceAccessor()(d); }); var _locator = function (d) { return 'translate(' + _chart.x()(_chart.keyAccessor()(d)) + ',' + _chart.y()(_chart.valueAccessor()(d)) + ')'; }; var _highlightedSize = 7; var _symbolSize = 5; var _excludedSize = 3; var _excludedColor = null; var _excludedOpacity = 1.0; var _emptySize = 0; var _emptyOpacity = 0; var _nonemptyOpacity = 1; var _emptyColor = null; var _filtered = []; _symbol.size(function (d, i) { if (!_existenceAccessor(d)) { return Math.pow(_emptySize, 2); } else if (_filtered[i]) { return Math.pow(_symbolSize, 2); } else { return Math.pow(_excludedSize, 2); } }); dc.override(_chart, '_filter', function (filter) { if (!arguments.length) { return _chart.__filter(); } return _chart.__filter(dc.filters.RangedTwoDimensionalFilter(filter)); }); _chart.plotData = function () { var symbols = _chart.chartBodyG().selectAll('path.symbol') .data(_chart.data()); symbols .enter() .append('path') .attr('class', 'symbol') .attr('opacity', 0) .attr('fill', _chart.getColor) .attr('transform', _locator); symbols.call(renderTitles, _chart.data()); symbols.each(function (d, i) { _filtered[i] = !_chart.filter() || _chart.filter().isFiltered([d.key[0], d.key[1]]); }); dc.transition(symbols, _chart.transitionDuration(), _chart.transitionDelay()) .attr('opacity', function (d, i) { if (!_existenceAccessor(d)) { return _emptyOpacity; } else if (_filtered[i]) { return _nonemptyOpacity; } else { return _chart.excludedOpacity(); } }) .attr('fill', function (d, i) { if (_emptyColor && !_existenceAccessor(d)) { return _emptyColor; } else if (_chart.excludedColor() && !_filtered[i]) { return _chart.excludedColor(); } else { return _chart.getColor(d); } }) .attr('transform', _locator) .attr('d', _symbol); dc.transition(symbols.exit(), _chart.transitionDuration(), _chart.transitionDelay()) .attr('opacity', 0).remove(); }; function renderTitles (symbol, d) { if (_chart.renderTitle()) { symbol.selectAll('title').remove(); symbol.append('title').text(function (d) { return _chart.title()(d); }); } } /** * Get or set the existence accessor. If a point exists, it is drawn with * {@link dc.scatterPlot#symbolSize symbolSize} radius and * opacity 1; if it does not exist, it is drawn with * {@link dc.scatterPlot#emptySize emptySize} radius and opacity 0. By default, * the existence accessor checks if the reduced value is truthy. * @method existenceAccessor * @memberof dc.scatterPlot * @instance * @see {@link dc.scatterPlot#symbolSize symbolSize} * @see {@link dc.scatterPlot#emptySize emptySize} * @example * // default accessor * chart.existenceAccessor(function (d) { return d.value; }); * @param {Function} [accessor] * @returns {Function|dc.scatterPlot} */ _chart.existenceAccessor = function (accessor) { if (!arguments.length) { return _existenceAccessor; } _existenceAccessor = accessor; return this; }; /** * Get or set the symbol type used for each point. By default the symbol is a circle. * Type can be a constant or an accessor. * @method symbol * @memberof dc.scatterPlot * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Shapes.md#symbol_type d3.svg.symbol.type} * @example * // Circle type * chart.symbol('circle'); * // Square type * chart.symbol('square'); * @param {String|Function} [type='circle'] * @returns {String|Function|dc.scatterPlot} */ _chart.symbol = function (type) { if (!arguments.length) { return _symbol.type(); } _symbol.type(type); return _chart; }; /** * Set or get radius for symbols. * @method symbolSize * @memberof dc.scatterPlot * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Shapes.md#symbol_size d3.svg.symbol.size} * @param {Number} [symbolSize=3] * @returns {Number|dc.scatterPlot} */ _chart.symbolSize = function (symbolSize) { if (!arguments.length) { return _symbolSize; } _symbolSize = symbolSize; return _chart; }; /** * Set or get radius for highlighted symbols. * @method highlightedSize * @memberof dc.scatterPlot * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Shapes.md#symbol_size d3.svg.symbol.size} * @param {Number} [highlightedSize=5] * @returns {Number|dc.scatterPlot} */ _chart.highlightedSize = function (highlightedSize) { if (!arguments.length) { return _highlightedSize; } _highlightedSize = highlightedSize; return _chart; }; /** * Set or get size for symbols excluded from this chart's filter. If null, no * special size is applied for symbols based on their filter status. * @method excludedSize * @memberof dc.scatterPlot * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Shapes.md#symbol_size d3.svg.symbol.size} * @param {Number} [excludedSize=null] * @returns {Number|dc.scatterPlot} */ _chart.excludedSize = function (excludedSize) { if (!arguments.length) { return _excludedSize; } _excludedSize = excludedSize; return _chart; }; /** * Set or get color for symbols excluded from this chart's filter. If null, no * special color is applied for symbols based on their filter status. * @method excludedColor * @memberof dc.scatterPlot * @instance * @param {Number} [excludedColor=null] * @returns {Number|dc.scatterPlot} */ _chart.excludedColor = function (excludedColor) { if (!arguments.length) { return _excludedColor; } _excludedColor = excludedColor; return _chart; }; /** * Set or get opacity for symbols excluded from this chart's filter. * @method excludedOpacity * @memberof dc.scatterPlot * @instance * @param {Number} [excludedOpacity=1.0] * @returns {Number|dc.scatterPlot} */ _chart.excludedOpacity = function (excludedOpacity) { if (!arguments.length) { return _excludedOpacity; } _excludedOpacity = excludedOpacity; return _chart; }; /** * Set or get radius for symbols when the group is empty. * @method emptySize * @memberof dc.scatterPlot * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Shapes.md#symbol_size d3.svg.symbol.size} * @param {Number} [emptySize=0] * @returns {Number|dc.scatterPlot} */ _chart.hiddenSize = _chart.emptySize = function (emptySize) { if (!arguments.length) { return _emptySize; } _emptySize = emptySize; return _chart; }; /** * Set or get color for symbols when the group is empty. If null, just use the * {@link dc.colorMixin#colors colorMixin.colors} color scale zero value. * @name emptyColor * @memberof dc.scatterPlot * @instance * @param {String} [emptyColor=null] * @return {String} * @return {dc.scatterPlot}/ */ _chart.emptyColor = function (emptyColor) { if (!arguments.length) { return _emptyColor; } _emptyColor = emptyColor; return _chart; }; /** * Set or get opacity for symbols when the group is empty. * @name emptyOpacity * @memberof dc.scatterPlot * @instance * @param {Number} [emptyOpacity=0] * @return {Number} * @return {dc.scatterPlot} */ _chart.emptyOpacity = function (emptyOpacity) { if (!arguments.length) { return _emptyOpacity; } _emptyOpacity = emptyOpacity; return _chart; }; /** * Set or get opacity for symbols when the group is not empty. * @name nonemptyOpacity * @memberof dc.scatterPlot * @instance * @param {Number} [nonemptyOpacity=1] * @return {Number} * @return {dc.scatterPlot} */ _chart.nonemptyOpacity = function (nonemptyOpacity) { if (!arguments.length) { return _emptyOpacity; } _nonemptyOpacity = nonemptyOpacity; return _chart; }; _chart.legendables = function () { return [{chart: _chart, name: _chart._groupName, color: _chart.getColor()}]; }; _chart.legendHighlight = function (d) { resizeSymbolsWhere(function (symbol) { return symbol.attr('fill') === d.color; }, _highlightedSize); _chart.selectAll('.chart-body path.symbol').filter(function () { return d3.select(this).attr('fill') !== d.color; }).classed('fadeout', true); }; _chart.legendReset = function (d) { resizeSymbolsWhere(function (symbol) { return symbol.attr('fill') === d.color; }, _symbolSize); _chart.selectAll('.chart-body path.symbol').filter(function () { return d3.select(this).attr('fill') !== d.color; }).classed('fadeout', false); }; function resizeSymbolsWhere (condition, size) { var symbols = _chart.selectAll('.chart-body path.symbol').filter(function () { return condition(d3.select(this)); }); var oldSize = _symbol.size(); _symbol.size(Math.pow(size, 2)); dc.transition(symbols, _chart.transitionDuration(), _chart.transitionDelay()).attr('d', _symbol); _symbol.size(oldSize); } _chart.setHandlePaths = function () { // no handle paths for poly-brushes }; _chart.extendBrush = function () { var extent = _chart.brush().extent(); if (_chart.round()) { extent[0] = extent[0].map(_chart.round()); extent[1] = extent[1].map(_chart.round()); _chart.g().select('.brush') .call(_chart.brush().extent(extent)); } return extent; }; _chart.brushIsEmpty = function (extent) { return _chart.brush().empty() || !extent || extent[0][0] >= extent[1][0] || extent[0][1] >= extent[1][1]; }; _chart._brushing = function () { var extent = _chart.extendBrush(); _chart.redrawBrush(_chart.g()); if (_chart.brushIsEmpty(extent)) { dc.events.trigger(function () { _chart.filter(null); _chart.redrawGroup(); }); } else { var ranged2DFilter = dc.filters.RangedTwoDimensionalFilter(extent); dc.events.trigger(function () { _chart.filter(null); _chart.filter(ranged2DFilter); _chart.redrawGroup(); }, dc.constants.EVENT_DELAY); } }; _chart.setBrushY = function (gBrush) { gBrush.call(_chart.brush().y(_chart.y())); }; return _chart.anchor(parent, chartGroup); }; /** * A display of a single numeric value. * Unlike other charts, you do not need to set a dimension. Instead a group object must be provided and * a valueAccessor that returns a single value. * @class numberDisplay * @memberof dc * @mixes dc.baseMixin * @example * // create a number display under #chart-container1 element using the default global chart group * var display1 = dc.numberDisplay('#chart-container1'); * @param {String|node|d3.selection} parent - Any valid * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Selections.md#selecting-elements d3 single selector} specifying * a dom block element such as a div; or a dom element or d3 selection. * @param {String} [chartGroup] - The name of the chart group this chart instance should be placed in. * Interaction with a chart will only trigger events and redraws within the chart's group. * @returns {dc.numberDisplay} */ dc.numberDisplay = function (parent, chartGroup) { var SPAN_CLASS = 'number-display'; var _formatNumber = d3.format('.2s'); var _chart = dc.baseMixin({}); var _html = {one: '', some: '', none: ''}; var _lastValue; // dimension not required _chart._mandatoryAttributes(['group']); /** * Gets or sets an optional object specifying HTML templates to use depending on the number * displayed. The text `%number` will be replaced with the current value. * - one: HTML template to use if the number is 1 * - zero: HTML template to use if the number is 0 * - some: HTML template to use otherwise * @method html * @memberof dc.numberDisplay * @instance * @example * numberWidget.html({ * one:'%number record', * some:'%number records', * none:'no records'}) * @param {{one:String, some:String, none:String}} [html={one: '', some: '', none: ''}] * @returns {{one:String, some:String, none:String}|dc.numberDisplay} */ _chart.html = function (html) { if (!arguments.length) { return _html; } if (html.none) { _html.none = html.none;//if none available } else if (html.one) { _html.none = html.one;//if none not available use one } else if (html.some) { _html.none = html.some;//if none and one not available use some } if (html.one) { _html.one = html.one;//if one available } else if (html.some) { _html.one = html.some;//if one not available use some } if (html.some) { _html.some = html.some;//if some available } else if (html.one) { _html.some = html.one;//if some not available use one } return _chart; }; /** * Calculate and return the underlying value of the display. * @method value * @memberof dc.numberDisplay * @instance * @returns {Number} */ _chart.value = function () { return _chart.data(); }; _chart.data(function (group) { var valObj = group.value ? group.value() : group.top(1)[0]; return _chart.valueAccessor()(valObj); }); _chart.transitionDuration(250); // good default _chart.transitionDelay(0); _chart._doRender = function () { var newValue = _chart.value(), span = _chart.selectAll('.' + SPAN_CLASS); if (span.empty()) { span = span.data([0]) .enter() .append('span') .attr('class', SPAN_CLASS); } span.transition() .duration(_chart.transitionDuration()) .delay(_chart.transitionDelay()) .ease('quad-out-in') .tween('text', function () { // [XA] don't try and interpolate from Infinity, else this breaks. var interpStart = isFinite(_lastValue) ? _lastValue : 0; var interp = d3.interpolateNumber(interpStart || 0, newValue); _lastValue = newValue; return function (t) { var html = null, num = _chart.formatNumber()(interp(t)); if (newValue === 0 && (_html.none !== '')) { html = _html.none; } else if (newValue === 1 && (_html.one !== '')) { html = _html.one; } else if (_html.some !== '') { html = _html.some; } this.innerHTML = html ? html.replace('%number', num) : num; }; }); }; _chart._doRedraw = function () { return _chart._doRender(); }; /** * Get or set a function to format the value for the display. * @method formatNumber * @memberof dc.numberDisplay * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md d3.format} * @param {Function} [formatter=d3.format('.2s')] * @returns {Function|dc.numberDisplay} */ _chart.formatNumber = function (formatter) { if (!arguments.length) { return _formatNumber; } _formatNumber = formatter; return _chart; }; return _chart.anchor(parent, chartGroup); }; /** * A heat map is matrix that represents the values of two dimensions of data using colors. * @class heatMap * @memberof dc * @mixes dc.colorMixin * @mixes dc.marginMixin * @mixes dc.baseMixin * @example * // create a heat map under #chart-container1 element using the default global chart group * var heatMap1 = dc.heatMap('#chart-container1'); * // create a heat map under #chart-container2 element using chart group A * var heatMap2 = dc.heatMap('#chart-container2', 'chartGroupA'); * @param {String|node|d3.selection} parent - Any valid * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Selections.md#selecting-elements d3 single selector} specifying * a dom block element such as a div; or a dom element or d3 selection. * @param {String} [chartGroup] - The name of the chart group this chart instance should be placed in. * Interaction with a chart will only trigger events and redraws within the chart's group. * @returns {dc.heatMap} */ dc.heatMap = function (parent, chartGroup) { var DEFAULT_BORDER_RADIUS = 6.75; var _chartBody; var _cols; var _rows; var _colOrdering = d3.ascending; var _rowOrdering = d3.ascending; var _colScale = d3.scale.ordinal(); var _rowScale = d3.scale.ordinal(); var _xBorderRadius = DEFAULT_BORDER_RADIUS; var _yBorderRadius = DEFAULT_BORDER_RADIUS; var _chart = dc.colorMixin(dc.marginMixin(dc.baseMixin({}))); _chart._mandatoryAttributes(['group']); _chart.title(_chart.colorAccessor()); var _colsLabel = function (d) { return d; }; var _rowsLabel = function (d) { return d; }; /** * Set or get the column label function. The chart class uses this function to render * column labels on the X axis. It is passed the column name. * @method colsLabel * @memberof dc.heatMap * @instance * @example * // the default label function just returns the name * chart.colsLabel(function(d) { return d; }); * @param {Function} [labelFunction=function(d) { return d; }] * @returns {Function|dc.heatMap} */ _chart.colsLabel = function (labelFunction) { if (!arguments.length) { return _colsLabel; } _colsLabel = labelFunction; return _chart; }; /** * Set or get the row label function. The chart class uses this function to render * row labels on the Y axis. It is passed the row name. * @method rowsLabel * @memberof dc.heatMap * @instance * @example * // the default label function just returns the name * chart.rowsLabel(function(d) { return d; }); * @param {Function} [labelFunction=function(d) { return d; }] * @returns {Function|dc.heatMap} */ _chart.rowsLabel = function (labelFunction) { if (!arguments.length) { return _rowsLabel; } _rowsLabel = labelFunction; return _chart; }; var _xAxisOnClick = function (d) { filterAxis(0, d); }; var _yAxisOnClick = function (d) { filterAxis(1, d); }; var _boxOnClick = function (d) { var filter = d.key; dc.events.trigger(function () { _chart.filter(filter); _chart.redrawGroup(); }); }; function filterAxis (axis, value) { var cellsOnAxis = _chart.selectAll('.box-group').filter(function (d) { return d.key[axis] === value; }); var unfilteredCellsOnAxis = cellsOnAxis.filter(function (d) { return !_chart.hasFilter(d.key); }); dc.events.trigger(function () { var selection = unfilteredCellsOnAxis.empty() ? cellsOnAxis : unfilteredCellsOnAxis; var filters = selection.data().map(function (kv) { return dc.filters.TwoDimensionalFilter(kv.key); }); _chart._filter([filters]); _chart.redrawGroup(); }); } dc.override(_chart, 'filter', function (filter) { if (!arguments.length) { return _chart._filter(); } return _chart._filter(dc.filters.TwoDimensionalFilter(filter)); }); /** * Gets or sets the values used to create the rows of the heatmap, as an array. By default, all * the values will be fetched from the data using the value accessor. * @method rows * @memberof dc.heatMap * @instance * @param {Array<String|Number>} [rows] * @returns {Array<String|Number>|dc.heatMap} */ _chart.rows = function (rows) { if (!arguments.length) { return _rows; } _rows = rows; return _chart; }; /** #### .rowOrdering([orderFunction]) Get or set an accessor to order the rows. Default is d3.ascending. */ _chart.rowOrdering = function (_) { if (!arguments.length) { return _rowOrdering; } _rowOrdering = _; return _chart; }; /** * Gets or sets the keys used to create the columns of the heatmap, as an array. By default, all * the values will be fetched from the data using the key accessor. * @method cols * @memberof dc.heatMap * @instance * @param {Array<String|Number>} [cols] * @returns {Array<String|Number>|dc.heatMap} */ _chart.cols = function (cols) { if (!arguments.length) { return _cols; } _cols = cols; return _chart; }; /** #### .colOrdering([orderFunction]) Get or set an accessor to order the cols. Default is ascending. */ _chart.colOrdering = function (_) { if (!arguments.length) { return _colOrdering; } _colOrdering = _; return _chart; }; _chart._doRender = function () { _chart.resetSvg(); _chartBody = _chart.svg() .append('g') .attr('class', 'heatmap') .attr('transform', 'translate(' + _chart.margins().left + ',' + _chart.margins().top + ')'); return _chart._doRedraw(); }; _chart._doRedraw = function () { var data = _chart.data(), rows = _chart.rows() || data.map(_chart.valueAccessor()), cols = _chart.cols() || data.map(_chart.keyAccessor()); if (_rowOrdering) { rows = rows.sort(_rowOrdering); } if (_colOrdering) { cols = cols.sort(_colOrdering); } rows = _rowScale.domain(rows); cols = _colScale.domain(cols); var rowCount = rows.domain().length, colCount = cols.domain().length, boxWidth = Math.floor(_chart.effectiveWidth() / colCount), boxHeight = Math.floor(_chart.effectiveHeight() / rowCount); cols.rangeRoundBands([0, _chart.effectiveWidth()]); rows.rangeRoundBands([_chart.effectiveHeight(), 0]); var boxes = _chartBody.selectAll('g.box-group').data(_chart.data(), function (d, i) { return _chart.keyAccessor()(d, i) + '\0' + _chart.valueAccessor()(d, i); }); var gEnter = boxes.enter().append('g') .attr('class', 'box-group'); gEnter.append('rect') .attr('class', 'heat-box') .attr('fill', 'white') .on('click', _chart.boxOnClick()); if (_chart.renderTitle()) { gEnter.append('title'); boxes.select('title').text(_chart.title()); } dc.transition(boxes.select('rect'), _chart.transitionDuration(), _chart.transitionDelay()) .attr('x', function (d, i) { return cols(_chart.keyAccessor()(d, i)); }) .attr('y', function (d, i) { return rows(_chart.valueAccessor()(d, i)); }) .attr('rx', _xBorderRadius) .attr('ry', _yBorderRadius) .attr('fill', _chart.getColor) .attr('width', boxWidth) .attr('height', boxHeight); boxes.exit().remove(); var gCols = _chartBody.select('g.cols'); if (gCols.empty()) { gCols = _chartBody.append('g').attr('class', 'cols axis'); } var gColsText = gCols.selectAll('text').data(cols.domain()); gColsText.enter().append('text') .attr('x', function (d) { return cols(d) + boxWidth / 2; }) .style('text-anchor', 'middle') .attr('y', _chart.effectiveHeight()) .attr('dy', 12) .on('click', _chart.xAxisOnClick()) .text(_chart.colsLabel()); dc.transition(gColsText, _chart.transitionDuration(), _chart.transitionDelay()) .text(_chart.colsLabel()) .attr('x', function (d) { return cols(d) + boxWidth / 2; }) .attr('y', _chart.effectiveHeight()); gColsText.exit().remove(); var gRows = _chartBody.select('g.rows'); if (gRows.empty()) { gRows = _chartBody.append('g').attr('class', 'rows axis'); } var gRowsText = gRows.selectAll('text').data(rows.domain()); gRowsText.enter().append('text') .attr('dy', 6) .style('text-anchor', 'end') .attr('x', 0) .attr('dx', -2) .on('click', _chart.yAxisOnClick()) .text(_chart.rowsLabel()); dc.transition(gRowsText, _chart.transitionDuration(), _chart.transitionDelay()) .text(_chart.rowsLabel()) .attr('y', function (d) { return rows(d) + boxHeight / 2; }); gRowsText.exit().remove(); if (_chart.hasFilter()) { _chart.selectAll('g.box-group').each(function (d) { if (_chart.isSelectedNode(d)) { _chart.highlightSelected(this); } else { _chart.fadeDeselected(this); } }); } else { _chart.selectAll('g.box-group').each(function () { _chart.resetHighlight(this); }); } return _chart; }; /** * Gets or sets the handler that fires when an individual cell is clicked in the heatmap. * By default, filtering of the cell will be toggled. * @method boxOnClick * @memberof dc.heatMap * @instance * @example * // default box on click handler * chart.boxOnClick(function (d) { * var filter = d.key; * dc.events.trigger(function () { * _chart.filter(filter); * _chart.redrawGroup(); * }); * }); * @param {Function} [handler] * @returns {Function|dc.heatMap} */ _chart.boxOnClick = function (handler) { if (!arguments.length) { return _boxOnClick; } _boxOnClick = handler; return _chart; }; /** * Gets or sets the handler that fires when a column tick is clicked in the x axis. * By default, if any cells in the column are unselected, the whole column will be selected, * otherwise the whole column will be unselected. * @method xAxisOnClick * @memberof dc.heatMap * @instance * @param {Function} [handler] * @returns {Function|dc.heatMap} */ _chart.xAxisOnClick = function (handler) { if (!arguments.length) { return _xAxisOnClick; } _xAxisOnClick = handler; return _chart; }; /** * Gets or sets the handler that fires when a row tick is clicked in the y axis. * By default, if any cells in the row are unselected, the whole row will be selected, * otherwise the whole row will be unselected. * @method yAxisOnClick * @memberof dc.heatMap * @instance * @param {Function} [handler] * @returns {Function|dc.heatMap} */ _chart.yAxisOnClick = function (handler) { if (!arguments.length) { return _yAxisOnClick; } _yAxisOnClick = handler; return _chart; }; /** * Gets or sets the X border radius. Set to 0 to get full rectangles. * @method xBorderRadius * @memberof dc.heatMap * @instance * @param {Number} [xBorderRadius=6.75] * @returns {Number|dc.heatMap} */ _chart.xBorderRadius = function (xBorderRadius) { if (!arguments.length) { return _xBorderRadius; } _xBorderRadius = xBorderRadius; return _chart; }; /** * Gets or sets the Y border radius. Set to 0 to get full rectangles. * @method yBorderRadius * @memberof dc.heatMap * @instance * @param {Number} [yBorderRadius=6.75] * @returns {Number|dc.heatMap} */ _chart.yBorderRadius = function (yBorderRadius) { if (!arguments.length) { return _yBorderRadius; } _yBorderRadius = yBorderRadius; return _chart; }; _chart.isSelectedNode = function (d) { return _chart.hasFilter(d.key); }; return _chart.anchor(parent, chartGroup); }; // https://github.com/d3/d3-plugins/blob/master/box/box.js (function () { // Inspired by http://informationandvisualization.de/blog/box-plot d3.box = function () { var width = 1, height = 1, duration = 0, delay = 0, domain = null, value = Number, whiskers = boxWhiskers, quartiles = boxQuartiles, tickFormat = null; // For each small multiple… function box (g) { g.each(function (d, i) { d = d.map(value).sort(d3.ascending); var g = d3.select(this), n = d.length, min = d[0], max = d[n - 1]; // Compute quartiles. Must return exactly 3 elements. var quartileData = d.quartiles = quartiles(d); // Compute whiskers. Must return exactly 2 elements, or null. var whiskerIndices = whiskers && whiskers.call(this, d, i), whiskerData = whiskerIndices && whiskerIndices.map(function (i) { return d[i]; }); // Compute outliers. If no whiskers are specified, all data are 'outliers'. // We compute the outliers as indices, so that we can join across transitions! var outlierIndices = whiskerIndices ? d3.range(0, whiskerIndices[0]).concat(d3.range(whiskerIndices[1] + 1, n)) : d3.range(n); // Compute the new x-scale. var x1 = d3.scale.linear() .domain(domain && domain.call(this, d, i) || [min, max]) .range([height, 0]); // Retrieve the old x-scale, if this is an update. var x0 = this.__chart__ || d3.scale.linear() .domain([0, Infinity]) .range(x1.range()); // Stash the new scale. this.__chart__ = x1; // Note: the box, median, and box tick elements are fixed in number, // so we only have to handle enter and update. In contrast, the outliers // and other elements are variable, so we need to exit them! Variable // elements also fade in and out. // Update center line: the vertical line spanning the whiskers. var center = g.selectAll('line.center') .data(whiskerData ? [whiskerData] : []); center.enter().insert('line', 'rect') .attr('class', 'center') .attr('x1', width / 2) .attr('y1', function (d) { return x0(d[0]); }) .attr('x2', width / 2) .attr('y2', function (d) { return x0(d[1]); }) .style('opacity', 1e-6) .transition() .duration(duration) .delay(delay) .style('opacity', 1) .attr('y1', function (d) { return x1(d[0]); }) .attr('y2', function (d) { return x1(d[1]); }); center.transition() .duration(duration) .delay(delay) .style('opacity', 1) .attr('x1', width / 2) .attr('x2', width / 2) .attr('y1', function (d) { return x1(d[0]); }) .attr('y2', function (d) { return x1(d[1]); }); center.exit().transition() .duration(duration) .delay(delay) .style('opacity', 1e-6) .attr('y1', function (d) { return x1(d[0]); }) .attr('y2', function (d) { return x1(d[1]); }) .remove(); // Update innerquartile box. var box = g.selectAll('rect.box') .data([quartileData]); box.enter().append('rect') .attr('class', 'box') .attr('x', 0) .attr('y', function (d) { return x0(d[2]); }) .attr('width', width) .attr('height', function (d) { return x0(d[0]) - x0(d[2]); }) .transition() .duration(duration) .delay(delay) .attr('y', function (d) { return x1(d[2]); }) .attr('height', function (d) { return x1(d[0]) - x1(d[2]); }); box.transition() .duration(duration) .delay(delay) .attr('width', width) .attr('y', function (d) { return x1(d[2]); }) .attr('height', function (d) { return x1(d[0]) - x1(d[2]); }); // Update median line. var medianLine = g.selectAll('line.median') .data([quartileData[1]]); medianLine.enter().append('line') .attr('class', 'median') .attr('x1', 0) .attr('y1', x0) .attr('x2', width) .attr('y2', x0) .transition() .duration(duration) .delay(delay) .attr('y1', x1) .attr('y2', x1); medianLine.transition() .duration(duration) .delay(delay) .attr('x1', 0) .attr('x2', width) .attr('y1', x1) .attr('y2', x1); // Update whiskers. var whisker = g.selectAll('line.whisker') .data(whiskerData || []); whisker.enter().insert('line', 'circle, text') .attr('class', 'whisker') .attr('x1', 0) .attr('y1', x0) .attr('x2', width) .attr('y2', x0) .style('opacity', 1e-6) .transition() .duration(duration) .delay(delay) .attr('y1', x1) .attr('y2', x1) .style('opacity', 1); whisker.transition() .duration(duration) .delay(delay) .attr('x1', 0) .attr('x2', width) .attr('y1', x1) .attr('y2', x1) .style('opacity', 1); whisker.exit().transition() .duration(duration) .delay(delay) .attr('y1', x1) .attr('y2', x1) .style('opacity', 1e-6) .remove(); // Update outliers. var outlier = g.selectAll('circle.outlier') .data(outlierIndices, Number); outlier.enter().insert('circle', 'text') .attr('class', 'outlier') .attr('r', 5) .attr('cx', width / 2) .attr('cy', function (i) { return x0(d[i]); }) .style('opacity', 1e-6) .transition() .duration(duration) .delay(delay) .attr('cy', function (i) { return x1(d[i]); }) .style('opacity', 1); outlier.transition() .duration(duration) .delay(delay) .attr('cx', width / 2) .attr('cy', function (i) { return x1(d[i]); }) .style('opacity', 1); outlier.exit().transition() .duration(duration) .delay(delay) .attr('cy', function (i) { return x1(d[i]); }) .style('opacity', 1e-6) .remove(); // Compute the tick format. var format = tickFormat || x1.tickFormat(8); // Update box ticks. var boxTick = g.selectAll('text.box') .data(quartileData); boxTick.enter().append('text') .attr('class', 'box') .attr('dy', '.3em') .attr('dx', function (d, i) { return i & 1 ? 6 : -6; }) .attr('x', function (d, i) { return i & 1 ? width : 0; }) .attr('y', x0) .attr('text-anchor', function (d, i) { return i & 1 ? 'start' : 'end'; }) .text(format) .transition() .duration(duration) .delay(delay) .attr('y', x1); boxTick.transition() .duration(duration) .delay(delay) .text(format) .attr('x', function (d, i) { return i & 1 ? width : 0; }) .attr('y', x1); // Update whisker ticks. These are handled separately from the box // ticks because they may or may not exist, and we want don't want // to join box ticks pre-transition with whisker ticks post-. var whiskerTick = g.selectAll('text.whisker') .data(whiskerData || []); whiskerTick.enter().append('text') .attr('class', 'whisker') .attr('dy', '.3em') .attr('dx', 6) .attr('x', width) .attr('y', x0) .text(format) .style('opacity', 1e-6) .transition() .duration(duration) .delay(delay) .attr('y', x1) .style('opacity', 1); whiskerTick.transition() .duration(duration) .delay(delay) .text(format) .attr('x', width) .attr('y', x1) .style('opacity', 1); whiskerTick.exit().transition() .duration(duration) .delay(delay) .attr('y', x1) .style('opacity', 1e-6) .remove(); }); d3.timer.flush(); } box.width = function (x) { if (!arguments.length) { return width; } width = x; return box; }; box.height = function (x) { if (!arguments.length) { return height; } height = x; return box; }; box.tickFormat = function (x) { if (!arguments.length) { return tickFormat; } tickFormat = x; return box; }; box.duration = function (x) { if (!arguments.length) { return duration; } duration = x; return box; }; box.domain = function (x) { if (!arguments.length) { return domain; } domain = x === null ? x : d3.functor(x); return box; }; box.value = function (x) { if (!arguments.length) { return value; } value = x; return box; }; box.whiskers = function (x) { if (!arguments.length) { return whiskers; } whiskers = x; return box; }; box.quartiles = function (x) { if (!arguments.length) { return quartiles; } quartiles = x; return box; }; return box; }; function boxWhiskers (d) { return [0, d.length - 1]; } function boxQuartiles (d) { return [ d3.quantile(d, 0.25), d3.quantile(d, 0.5), d3.quantile(d, 0.75) ]; } })(); /** * A box plot is a chart that depicts numerical data via their quartile ranges. * * Examples: * - {@link http://dc-js.github.io/dc.js/examples/box-plot-time.html Box plot time example} * - {@link http://dc-js.github.io/dc.js/examples/box-plot.html Box plot example} * @class boxPlot * @memberof dc * @mixes dc.coordinateGridMixin * @example * // create a box plot under #chart-container1 element using the default global chart group * var boxPlot1 = dc.boxPlot('#chart-container1'); * // create a box plot under #chart-container2 element using chart group A * var boxPlot2 = dc.boxPlot('#chart-container2', 'chartGroupA'); * @param {String|node|d3.selection} parent - Any valid * {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Selections.md#selecting-elements d3 single selector} specifying * a dom block element such as a div; or a dom element or d3 selection. * @param {String} [chartGroup] - The name of the chart group this chart instance should be placed in. * Interaction with a chart will only trigger events and redraws within the chart's group. * @returns {dc.boxPlot} */ dc.boxPlot = function (parent, chartGroup) { var _chart = dc.coordinateGridMixin({}); // Returns a function to compute the interquartile range. function DEFAULT_WHISKERS_IQR (k) { return function (d) { var q1 = d.quartiles[0], q3 = d.quartiles[2], iqr = (q3 - q1) * k, i = -1, j = d.length; do { ++i; } while (d[i] < q1 - iqr); do { --j; } while (d[j] > q3 + iqr); return [i, j]; }; } var _whiskerIqrFactor = 1.5; var _whiskersIqr = DEFAULT_WHISKERS_IQR; var _whiskers = _whiskersIqr(_whiskerIqrFactor); var _box = d3.box(); var _tickFormat = null; var _boxWidth = function (innerChartWidth, xUnits) { if (_chart.isOrdinal()) { return _chart.x().rangeBand(); } else { return innerChartWidth / (1 + _chart.boxPadding()) / xUnits; } }; // default padding to handle min/max whisker text _chart.yAxisPadding(12); // default to ordinal _chart.x(d3.scale.ordinal()); _chart.xUnits(dc.units.ordinal); // valueAccessor should return an array of values that can be coerced into numbers // or if data is overloaded for a static array of arrays, it should be `Number`. // Empty arrays are not included. _chart.data(function (group) { return group.all().map(function (d) { d.map = function (accessor) { return accessor.call(d, d); }; return d; }).filter(function (d) { var values = _chart.valueAccessor()(d); return values.length !== 0; }); }); /** * Get or set the spacing between boxes as a fraction of box size. Valid values are within 0-1. * See the {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Ordinal-Scales.md#ordinal_rangeBands d3 docs} * for a visual description of how the padding is applied. * @method boxPadding * @memberof dc.boxPlot * @instance * @see {@link https://github.com/d3/d3-3.x-api-reference/blob/master/Ordinal-Scales.md#ordinal_rangeBands d3.scale.ordinal.rangeBands} * @param {Number} [padding=0.8] * @returns {Number|dc.boxPlot} */ _chart.boxPadding = _chart._rangeBandPadding; _chart.boxPadding(0.8); /** * Get or set the outer padding on an ordinal box chart. This setting has no effect on non-ordinal charts * or on charts with a custom {@link dc.boxPlot#boxWidth .boxWidth}. Will pad the width by * `padding * barWidth` on each side of the chart. * @method outerPadding * @memberof dc.boxPlot * @instance * @param {Number} [padding=0.5] * @returns {Number|dc.boxPlot} */ _chart.outerPadding = _chart._outerRangeBandPadding; _chart.outerPadding(0.5); /** * Get or set the numerical width of the boxplot box. The width may also be a function taking as * parameters the chart width excluding the right and left margins, as well as the number of x * units. * @example * // Using numerical parameter * chart.boxWidth(10); * // Using function * chart.boxWidth((innerChartWidth, xUnits) { ... }); * @method boxWidth * @memberof dc.boxPlot * @instance * @param {Number|Function} [boxWidth=0.5] * @returns {Number|Function|dc.boxPlot} */ _chart.boxWidth = function (boxWidth) { if (!arguments.length) { return _boxWidth; } _boxWidth = d3.functor(boxWidth); return _chart; }; var boxTransform = function (d, i) { var xOffset = _chart.x()(_chart.keyAccessor()(d, i)); return 'translate(' + xOffset + ', 0)'; }; _chart._preprocessData = function () { if (_chart.elasticX()) { _chart.x().domain([]); } }; _chart.plotData = function () { var _calculatedBoxWidth = _boxWidth(_chart.effectiveWidth(), _chart.xUnitCount()); _box.whiskers(_whiskers) .width(_calculatedBoxWidth) .height(_chart.effectiveHeight()) .value(_chart.valueAccessor()) .domain(_chart.y().domain()) .duration(_chart.transitionDuration()) .tickFormat(_tickFormat); var boxesG = _chart.chartBodyG().selectAll('g.box').data(_chart.data(), _chart.keyAccessor()); renderBoxes(boxesG); updateBoxes(boxesG); removeBoxes(boxesG); _chart.fadeDeselectedArea(); }; function renderBoxes (boxesG) { var boxesGEnter = boxesG.enter().append('g'); boxesGEnter .attr('class', 'box') .attr('transform', boxTransform) .call(_box) .on('click', function (d) { _chart.filter(_chart.keyAccessor()(d)); _chart.redrawGroup(); }); } function updateBoxes (boxesG) { dc.transition(boxesG, _chart.transitionDuration(), _chart.transitionDelay()) .attr('transform', boxTransform) .call(_box) .each(function () { d3.select(this).select('rect.box').attr('fill', _chart.getColor); }); } function removeBoxes (boxesG) { boxesG.exit().remove().call(_box); } _chart.fadeDeselectedArea = function () { if (_chart.hasFilter()) { if (_chart.isOrdinal()) { _chart.g().selectAll('g.box').each(function (d) { if (_chart.isSelectedNode(d)) { _chart.highlightSelected(this); } else { _chart.fadeDeselected(this); } }); } else { var extent = _chart.brush().extent(); var start = extent[0]; var end = extent[1]; var keyAccessor = _chart.keyAccessor(); _chart.g().selectAll('g.box').each(function (d) { var key = keyAccessor(d); if (key < start || key >= end) { _chart.fadeDeselected(this); } else { _chart.highlightSelected(this); } }); } } else { _chart.g().selectAll('g.box').each(function () { _chart.resetHighlight(this); }); } }; _chart.isSelectedNode = function (d) { return _chart.hasFilter(_chart.keyAccessor()(d)); }; _chart.yAxisMin = function () { var min = d3.min(_chart.data(), function (e) { return d3.min(_chart.valueAccessor()(e)); }); return dc.utils.subtract(min, _chart.yAxisPadding()); }; _chart.yAxisMax = function () { var max = d3.max(_chart.data(), function (e) { return d3.max(_chart.valueAccessor()(e)); }); return dc.utils.add(max, _chart.yAxisPadding()); }; /** * Set the numerical format of the boxplot median, whiskers and quartile labels. Defaults to * integer formatting. * @example * // format ticks to 2 decimal places * chart.tickFormat(d3.format('.2f')); * @method tickFormat * @memberof dc.boxPlot * @instance * @param {Function} [tickFormat] * @returns {Number|Function|dc.boxPlot} */ _chart.tickFormat = function (tickFormat) { if (!arguments.length) { return _tickFormat; } _tickFormat = tickFormat; return _chart; }; return _chart.anchor(parent, chartGroup); }; /** * The select menu is a simple widget designed to filter a dimension by selecting an option from * an HTML `<select/>` menu. The menu can be optionally turned into a multiselect. * @class selectMenu * @memberof dc * @mixes dc.baseMixin * @example * // create a select menu under #select-container using the default global chart group * var select = dc.selectMenu('#select-container') * .dimension(states) * .group(stateGroup); * // the option text can be set via the title() function * // by default the option text is '`key`: `value`' * select.title(function (d){ * return 'STATE: ' + d.key; * }) * @param {String|node|d3.selection|dc.compositeChart} parent - Any valid * [d3 single selector](https://github.com/mbostock/d3/wiki/Selections#selecting-elements) specifying * a dom block element such as a div; or a dom element or d3 selection. * @param {String} [chartGroup] - The name of the chart group this widget should be placed in. * Interaction with the widget will only trigger events and redraws within its group. * @returns {selectMenu} **/ dc.selectMenu = function (parent, chartGroup) { var SELECT_CSS_CLASS = 'dc-select-menu'; var OPTION_CSS_CLASS = 'dc-select-option'; var _chart = dc.baseMixin({}); var _select; var _promptText = 'Select all'; var _multiple = false; var _promptValue = null; var _numberVisible = null; var _order = function (a, b) { return _chart.keyAccessor()(a) > _chart.keyAccessor()(b) ? 1 : _chart.keyAccessor()(b) > _chart.keyAccessor()(a) ? -1 : 0; }; var _filterDisplayed = function (d) { return _chart.valueAccessor()(d) > 0; }; _chart.data(function (group) { return group.all().filter(_filterDisplayed); }); _chart._doRender = function () { _chart.select('select').remove(); _select = _chart.root().append('select') .classed(SELECT_CSS_CLASS, true); _select.append('option').text(_promptText).attr('value', ''); _chart._doRedraw(); return _chart; }; _chart._doRedraw = function () { setAttributes(); renderOptions(); // select the option(s) corresponding to current filter(s) if (_chart.hasFilter() && _multiple) { _select.selectAll('option') .property('selected', function (d) { return d && _chart.filters().indexOf(String(_chart.keyAccessor()(d))) >= 0; }); } else if (_chart.hasFilter()) { _select.property('value', _chart.filter()); } else { _select.property('value', ''); } return _chart; }; function renderOptions () { var options = _select.selectAll('option.' + OPTION_CSS_CLASS) .data(_chart.data(), function (d) { return _chart.keyAccessor()(d); }); options.enter() .append('option') .classed(OPTION_CSS_CLASS, true) .attr('value', function (d) { return _chart.keyAccessor()(d); }); options.text(_chart.title()); options.exit().remove(); _select.selectAll('option.' + OPTION_CSS_CLASS).sort(_order); _select.on('change', onChange); return options; } function onChange (d, i) { var values; var target = d3.event.target; if (target.selectedOptions) { var selectedOptions = Array.prototype.slice.call(target.selectedOptions); values = selectedOptions.map(function (d) { return d.value; }); } else { // IE and other browsers do not support selectedOptions // adapted from this polyfill: https://gist.github.com/brettz9/4212217 var options = [].slice.call(d3.event.target.options); values = options.filter(function (option) { return option.selected; }).map(function (option) { return option.value; }); } // console.log(values); // check if only prompt option is selected if (values.length === 1 && values[0] === '') { values = _promptValue || null; } else if (!_multiple && values.length === 1) { values = values[0]; } _chart.onChange(values); } _chart.onChange = function (val) { if (val && _multiple) { _chart.replaceFilter([val]); } else if (val) { _chart.replaceFilter(val); } else { _chart.filterAll(); } dc.events.trigger(function () { _chart.redrawGroup(); }); }; function setAttributes () { if (_multiple) { _select.attr('multiple', true); } else { _select.attr('multiple', null); } if (_numberVisible !== null) { _select.attr('size', _numberVisible); } else { _select.attr('size', null); } } /** * Get or set the function that controls the ordering of option tags in the * select menu. By default options are ordered by the group key in ascending * order. * @name order * @memberof dc.selectMenu * @instance * @param {Function} [order] * @example * // order by the group's value * chart.order(function (a,b) { * return a.value > b.value ? 1 : b.value > a.value ? -1 : 0; * }); **/ _chart.order = function (order) { if (!arguments.length) { return _order; } _order = order; return _chart; }; /** * Get or set the text displayed in the options used to prompt selection. * @name promptText * @memberof dc.selectMenu * @instance * @param {String} [promptText='Select all'] * @example * chart.promptText('All states'); **/ _chart.promptText = function (_) { if (!arguments.length) { return _promptText; } _promptText = _; return _chart; }; /** * Get or set the function that filters option tags prior to display. By default options * with a value of < 1 are not displayed. * @name filterDisplayed * @memberof dc.selectMenu * @instance * @param {function} [filterDisplayed] * @example * // display all options override the `filterDisplayed` function: * chart.filterDisplayed(function () { * return true; * }); **/ _chart.filterDisplayed = function (filterDisplayed) { if (!arguments.length) { return _filterDisplayed; } _filterDisplayed = filterDisplayed; return _chart; }; /** * Controls the type of select menu. Setting it to true converts the underlying * HTML tag into a multiple select. * @name multiple * @memberof dc.selectMenu * @instance * @param {boolean} [multiple=false] * @example * chart.multiple(true); **/ _chart.multiple = function (multiple) { if (!arguments.length) { return _multiple; } _multiple = multiple; return _chart; }; /** * Controls the default value to be used for * [dimension.filter](https://github.com/crossfilter/crossfilter/wiki/API-Reference#dimension_filter) * when only the prompt value is selected. If `null` (the default), no filtering will occur when * just the prompt is selected. * @name promptValue * @memberof dc.selectMenu * @instance * @param {?*} [promptValue=null] **/ _chart.promptValue = function (promptValue) { if (!arguments.length) { return _promptValue; } _promptValue = promptValue; return _chart; }; /** * Controls the number of items to show in the select menu, when `.multiple()` is true. This * controls the [`size` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#Attributes) of * the `select` element. If `null` (the default), uses the browser's default height. * @name numberItems * @memberof dc.selectMenu * @instance * @param {?number} [numberVisible=null] * @example * chart.numberVisible(10); **/ _chart.numberVisible = function (numberVisible) { if (!arguments.length) { return _numberVisible; } _numberVisible = numberVisible; return _chart; }; _chart.size = dc.logger.deprecate(_chart.numberVisible, 'selectMenu.size is ambiguous - use numberVisible instead'); return _chart.anchor(parent, chartGroup); }; // Renamed functions dc.abstractBubbleChart = dc.bubbleMixin; dc.baseChart = dc.baseMixin; dc.capped = dc.capMixin; dc.colorChart = dc.colorMixin; dc.coordinateGridChart = dc.coordinateGridMixin; dc.marginable = dc.marginMixin; dc.stackableChart = dc.stackMixin; // Expose d3 and crossfilter, so that clients in browserify // case can obtain them if they need them. dc.d3 = d3; dc.crossfilter = crossfilter; return dc;} if(typeof define === "function" && define.amd) { define(["d3", "crossfilter"], _dc); } else if(typeof module === "object" && module.exports) { var _d3 = require('d3'); var _crossfilter = require('crossfilter2'); // When using npm + browserify, 'crossfilter' is a function, // since package.json specifies index.js as main function, and it // does special handling. When using bower + browserify, // there's no main in bower.json (in fact, there's no bower.json), // so we need to fix it. if (typeof _crossfilter !== "function") { _crossfilter = _crossfilter.crossfilter; } module.exports = _dc(_d3, _crossfilter); } else { this.dc = _dc(d3, crossfilter); } } )(); //# sourceMappingURL=dc.js.map
examples/server-rendering/reactserver/server.js
MoOx/react
var React = require('react'); var express = require('express'); var path = require('path'); // Transparently support JSX require('node-jsx').install(); var app = express(); // All the render server does is take a CommonJS module ID and some JSON props // in the querystring and return a static HTML representation of the component. // Note that this is a backend service hit by your actual web app. Even so, // you would probably put Varnish in front of this in production. app.get('/', function(req, res){ var component = require(path.resolve(req.query['module'])); var props = JSON.parse(req.query['props'] || '{}'); res.send(React.renderToString(component(props))); }); app.listen(3000);
src/stories/api/weather.js
Cirych/WeatherApp
import React from 'react'; import { storiesOf, action, linkTo } from '@kadira/storybook'; import pick from 'lodash/pick'; import data from './data'; import forecast from './forecast'; const pickWeather = json => pick(json, [ 'id', 'name', 'weather', 'main', 'wind', 'visibility' ]); storiesOf('Api.Weather', module) .add('Raw data', () => ( <pre> {JSON.stringify(data[0], null, 2)} </pre> )) .add('Peaked data', () => ( <pre> {JSON.stringify(pickWeather(data[0]), null, 2)} </pre> )) .add('Forecast data', () => ( <pre> {JSON.stringify(forecast, null, 2)} </pre> ))
frontend/src/components/common/hoc/withApplicationStatusChange.js
unicef/un-partner-portal
// eslint-disable-next-line import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { changeAppStatus } from '../../../reducers/partnersApplicationsList'; const WithApplicationStatusChange = status => ComposedComponent => connect( null, dispatch => ({ changeStatus: id => dispatch(changeAppStatus(id, status)) }), )(ComposedComponent); WithApplicationStatusChange.propTypes = { changeStatus: PropTypes.string.isRequired, }; export default WithApplicationStatusChange;
tests/routes/UserManagement/components/CreateUser.spec.js
vijayasankar/ML2.0
import React from 'react' import { expect } from 'chai' import { shallow, mount } from 'enzyme' import ReduxFormStub from '../../../ReduxFormStub' import CreateUserReduxForm, { CreateUser } from 'routes/UserManagement/components/CreateUser' describe('(Component) RequestPreApproval/ProcedureCost - shallow', () => { let props let wrapper const spyChange = sinon.spy() const spyHandleSubmit = sinon.spy() beforeEach(() => { props = { change: spyChange, cssName: '', handleSubmit: spyHandleSubmit, submitting: false } wrapper = shallow(<CreateUser {...props} />) }) afterEach(() => { spyChange.reset() spyHandleSubmit.reset() // wrapper.instance().handleClick.reset() }) it('renders correct title', () => { expect(wrapper.find('h3').text()).to.equal('Create user') }) it('renders 4 unique TextField on initial render', () => { expect(wrapper.find('TextField')).to.have.length(4) expect(wrapper.find('TextField').get(0).props.fieldName).to.equal('firstName') expect(wrapper.find('TextField').get(0).props.name).to.equal('first-name') expect(wrapper.find('TextField').get(0).props.placeholderText).to.equal('First name') expect(wrapper.find('TextField').get(0).props.change).to.equal(props.change) expect(wrapper.find('TextField').get(0).props.cssName).to.equal(props.cssName) expect(wrapper.find('TextField').get(1).props.fieldName).to.equal('lastName') expect(wrapper.find('TextField').get(1).props.name).to.equal('last-name') expect(wrapper.find('TextField').get(1).props.placeholderText).to.equal('Last name') expect(wrapper.find('TextField').get(1).props.change).to.equal(props.change) expect(wrapper.find('TextField').get(1).props.cssName).to.equal(props.cssName) expect(wrapper.find('TextField').get(2).props.fieldName).to.equal('phoneNumber') expect(wrapper.find('TextField').get(2).props.name).to.equal('phone-number') expect(wrapper.find('TextField').get(2).props.placeholderText).to.equal('Phone number') expect(wrapper.find('TextField').get(2).props.change).to.equal(props.change) expect(wrapper.find('TextField').get(2).props.cssName).to.equal(props.cssName) expect(wrapper.find('TextField').get(3).props.fieldName).to.equal('email') expect(wrapper.find('TextField').get(3).props.name).to.equal('email') expect(wrapper.find('TextField').get(3).props.placeholderText).to.equal('Email') expect(wrapper.find('TextField').get(3).props.change).to.equal(props.change) expect(wrapper.find('TextField').get(3).props.cssName).to.equal(props.cssName) }) it('renders a Button on initial render', () => { expect(wrapper.find('Button')).to.have.length(1) expect(wrapper.find('Button').get(0).props.className).to.equal(`${props.cssName}-trigger is-submit primary-btn`) expect(wrapper.find('Button').get(0).props.type).to.equal('submit') }) it('renders a Button with prop className', () => { wrapper.setProps({ cssName: 'aaa' }) expect(wrapper.find('Button').get(0).props.className).to.equal('aaa-trigger is-submit primary-btn') wrapper.setProps({ cssName: 'bbb' }) expect(wrapper.find('Button').get(0).props.className).to.equal('bbb-trigger is-submit primary-btn') }) it('renders a Button with prop disabled', () => { wrapper.setProps({ submitting: true }) expect(wrapper.find('Button').get(0).props.disabled).to.equal(true) wrapper.setProps({ submitting: false }) expect(wrapper.find('Button').get(0).props.disabled).to.equal(false) }) })
ajax/libs/yui/3.4.0pr3/event-focus/event-focus-min.js
froala/cdnjs
YUI.add("event-focus",function(e){var d=e.Event,c=e.Lang,a=c.isString,b=c.isFunction(e.DOM.create('<p onbeforeactivate=";"/>').onbeforeactivate);function f(h,g,j){var i="_"+h+"Notifiers";e.Event.define(h,{_attach:function(l,m,k){if(e.DOM.isWindow(l)){return d._attach([h,function(n){m.fire(n);},l]);}else{return d._attach([g,this._proxy,l,this,m,k],{capture:true});}},_proxy:function(o,s,p){var m=o.target,q=m.getData(i),t=e.stamp(o.currentTarget._node),k=(b||o.target!==o.currentTarget),l=s.handle.sub,r=[m,o].concat(l.args||[]),n;s.currentTarget=(p)?m:o.currentTarget;s.container=(p)?o.currentTarget:null;if(!l.filter||l.filter.apply(m,r)){if(!q){q={};m.setData(i,q);if(k){n=d._attach([j,this._notify,m._node]).sub;n.once=true;}}if(!q[t]){q[t]=[];}q[t].push(s);if(!k){this._notify(o);}}},_notify:function(p,l){var m=p.currentTarget,r=m.getData(i),s=m.get("ownerDocument")||m,q=m,k=[],t,n,o;if(r){while(q&&q!==s){k.push.apply(k,r[e.stamp(q)]||[]);q=q.get("parentNode");}k.push.apply(k,r[e.stamp(s)]||[]);for(n=0,o=k.length;n<o;++n){t=k[n];p.currentTarget=k[n].currentTarget;if(t.container){p.container=t.container;}t.fire(p);}m.clearData(i);}},on:function(m,k,l){k.onHandle=this._attach(m._node,l);},detach:function(l,k){k.onHandle.detach();},delegate:function(n,l,m,k){if(a(k)){l.filter=e.delegate.compileFilter(k);}l.delegateHandle=this._attach(n._node,m,true);},detachDelegate:function(l,k){k.delegateHandle.detach();}},true);}if(b){f("focus","beforeactivate","focusin");f("blur","beforedeactivate","focusout");}else{f("focus","focus","focus");f("blur","blur","blur");}},"@VERSION@",{requires:["event-synthetic"]});
src/components/Play.js
evgenity/react-html5-video-editor
import React from 'react'; import Icon from './Icon'; var Play = React.createClass({ propTypes: { copyKeys: React.PropTypes.object, togglePlay: React.PropTypes.func, paused: React.PropTypes.bool }, /** * As controls receive all props for extensibility, we do a quick * check and make sure only the props we care about have changed. * @param {object} nextProps The next props from parent * @return {boolean} Whether we re-render or not */ shouldComponentUpdate(nextProps) { return this.props.paused !== nextProps.paused || this.props.togglePlay !== nextProps.togglePlay; }, render() { return ( <button className="video-play video__control" onClick={()=>{this.props.togglePlay()}}> {this.props.paused ? <Icon name="play-1" /> : <Icon name="pause-1" />} </button> ); } }); export default Play;
files/react.foundation-apps/0.6.0/react-foundation-apps.js
gregorypratt/jsdelivr
var RFA = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ exports: {}, /******/ id: moduleId, /******/ loaded: false /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.loaded = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(0); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ function(module, exports, __webpack_require__) { module.exports = { Accordion: __webpack_require__(1), ActionSheet: __webpack_require__(2), Iconic: __webpack_require__(3), Interchange: __webpack_require__(4), Modal: __webpack_require__(5), Notification: __webpack_require__(6), OffCanvas: __webpack_require__(7), Panel: __webpack_require__(8), Popup: __webpack_require__(9), Tabs: __webpack_require__(10), Trigger: __webpack_require__(11), }; /***/ }, /* 1 */ /***/ function(module, exports, __webpack_require__) { var React = __webpack_require__(12); var cloneWithProps = __webpack_require__(24); var Accordion = React.createClass({displayName: "Accordion", getInitialState: function () { return { sections: [] }; }, getDefaultProps: function () { return { autoOpen: true, multiOpen: false, collapsible: false }; }, componentDidMount: function () { var sections = []; React.Children.forEach(this.props.children, function (child, index) { sections.push({active: false}); }); if (this.props.autoOpen) { sections[0].active = true; } this.setState({sections: sections}); }, select: function (selectSection) { var sections = this.state.sections; sections.forEach(function (section, index) { if(this.props.multiOpen) { if(index === selectSection) { section.active = !section.active; } } else { if(index === selectSection) { section.active = (this.props.collapsible === true)? !section.active: true; } else { section.active = false; } } }.bind(this)); this.setState({sections: sections}); }, render: function () { var children = React.Children.map(this.props.children, function (child, index) { return cloneWithProps(child, { active: this.state.sections[index]? this.state.sections[index].active: false, activate: this.select.bind(this, index) }); }.bind(this)); return ( React.createElement("div", {className: "accordion"}, children) ); } }); module.exports = Accordion; Accordion.Item = __webpack_require__(15); /***/ }, /* 2 */ /***/ function(module, exports, __webpack_require__) { var React = __webpack_require__(12); var cloneWithProps = __webpack_require__(24); var ActionSheet = React.createClass({displayName: "ActionSheet", getInitialState: function () { return {active: false}; }, setActiveState: function (active) { this.setState({active: active}); }, render: function () { var children = React.Children.map(this.props.children, function (child, index) { var extraProps = {active: this.state.active}; if (child.type.displayName === 'ActionSheetButton') { extraProps.setActiveState = this.setActiveState; } return cloneWithProps(child, extraProps); }.bind(this)); return ( React.createElement("div", {className: "action-sheet-container"}, children ) ); } }); module.exports = ActionSheet; ActionSheet.Button = __webpack_require__(16); ActionSheet.Content = __webpack_require__(17); /***/ }, /* 3 */ /***/ function(module, exports, __webpack_require__) { var React = __webpack_require__(12); var ExecutionEnvironment = __webpack_require__(25); var IconicJs = ExecutionEnvironment.canUseDOM && __webpack_require__(14); var cloneWithProps = __webpack_require__(24); var Iconic = React.createClass({displayName: "Iconic", inject: function () { var ico = IconicJs(); ico.inject(this.getDOMNode()); }, componentDidMount: function () { this.inject(); }, componentDidUpdate: function () { this.inject(); }, render: function () { return React.Children.only(this.props.children); } }); module.exports = Iconic; /***/ }, /* 4 */ /***/ function(module, exports, __webpack_require__) { var React = __webpack_require__(12); var ResponsiveMixin = __webpack_require__(23); var namedQueries = { // small: '(min-width: 0) and (max-width: 640px)', // medium: '(min-width: 641px) and (max-width: 1200px)', // large: '(min-width: 1201px) and (max-width: 1440px)', // 'default' : 'only screen', // landscape : 'only screen and (orientation: landscape)', // portrait : 'only screen and (orientation: portrait)', // retina : 'only screen and (-webkit-min-device-pixel-ratio: 2),' + // 'only screen and (min--moz-device-pixel-ratio: 2),' + // 'only screen and (-o-min-device-pixel-ratio: 2/1),' + // 'only screen and (min-device-pixel-ratio: 2),' + // 'only screen and (min-resolution: 192dpi),' + // 'only screen and (min-resolution: 2dppx)' }; var Interchange = React.createClass({displayName: "Interchange", mixins: [ResponsiveMixin], getInitialState: function () { return {matchedMedia: 'large'}; }, componentDidMount: function () { // for (var name in namedQueries) { // this.media(namedQueries[name], function () { // this.setState({matchedMedia: name}); // }.bind(this)); // } this.media({minWidth: 0, maxWidth: 640}, function () { this.setState({matchedMedia: 'small'}); }.bind(this)); this.media({minWidth: 641, maxWidth: 1200}, function () { this.setState({matchedMedia: 'medium'}); }.bind(this)); this.media({minWidth: 1200, maxWidth: 1440}, function () { this.setState({matchedMedia: 'large'}); }.bind(this)); }, render: function () { var matchedNode = null; React.Children.forEach(this.props.children, function (child) { if(child.props.media === this.state.matchedMedia) { matchedNode = child; } }.bind(this)); return matchedNode; } }); module.exports = Interchange; /***/ }, /* 5 */ /***/ function(module, exports, __webpack_require__) { var React = __webpack_require__(12); var cx = __webpack_require__(26); var Animation = __webpack_require__(18); var foundationApi = __webpack_require__(13); var Modal = React.createClass({displayName: "Modal", getInitialState: function () { return { open: false }; }, getDefaultProps: function () { return { overlay: false, overlayClose: false }; }, componentDidMount: function () { foundationApi.subscribe(this.props.id, function (name, msg) { if (msg === 'open') { this.setState({open: true}); } else if (msg === 'close') { this.setState({open: false}); } else if (msg === 'toggle') { this.setState({open: !this.state.open}); } }.bind(this)); }, componentWillUnmount: function () { foundationApi.unsubscribe(this.props.id); }, hideOverlay: function () { if (this.props.overlayClose) { this.setState({open: false}); } }, render: function() { var overlay = (this.props.overlay === true || this.props.overlayClose === true) ? true : false; var overlayClasses = { 'modal-overlay': true, }; var modalClasses = { 'modal': true, }; var overlayStyle = {}; if (!overlay) { overlayStyle.background = 'transparent'; } return ( React.createElement(Animation, {active: this.state.open, animationIn: "fadeIn", animationOut: "fadeOut"}, React.createElement("div", {className: cx(overlayClasses), style: overlayStyle, onClick: this.hideOverlay}, React.createElement(Animation, {active: this.state.open, animationIn: "fadeIn", animationOut: "fadeOut"}, React.createElement("div", {id: this.props.id, "data-closable": true, className: cx(modalClasses)}, this.props.children ) ) ) ) ); }, }); module.exports = Modal; /***/ }, /* 6 */ /***/ function(module, exports, __webpack_require__) { module.exports = { Set: __webpack_require__(19), Static: __webpack_require__(20) }; /***/ }, /* 7 */ /***/ function(module, exports, __webpack_require__) { var React = __webpack_require__(12); var cx = __webpack_require__(26); // var LayerMixin = require('react-layer-mixin'); var foundationApi = __webpack_require__(13); var Offcanvas = React.createClass({displayName: "Offcanvas", // mixins: [LayerMixin], getInitialState: function () { return {open: false}; }, getDefaultProps: function () { return { position: 'left' }; }, componentDidMount: function () { foundationApi.subscribe(this.props.id, function (name, msg) { if (msg === 'open') { this.setState({open: true}); } else if (msg === 'close') { this.setState({open: false}); } else if (msg === 'toggle') { this.setState({open: !this.state.open}); } }.bind(this)); }, componentWillUnmount: function () { foundationApi.unsubscribe(this.props.id); }, render: function() { var classes = { 'off-canvas': true, 'is-active': this.state.open, }; classes[this.props.position] = true; if (this.props.className) { classes[this.props.className] = true; } return ( React.createElement("div", {id: this.props.id, "data-closable": true, className: cx(classes)}, this.props.children ) ); }, }); module.exports = Offcanvas; /***/ }, /* 8 */ /***/ function(module, exports, __webpack_require__) { var React = __webpack_require__(12); var cx = __webpack_require__(26); var Animation = __webpack_require__(18); var foundationApi = __webpack_require__(13); var Panel = React.createClass({displayName: "Panel", getInitialState: function () { return {open: false}; }, getDefaultProps: function () { return { position: 'left' }; }, componentDidMount: function () { foundationApi.subscribe(this.props.id, function (name, msg) { if (msg === 'open') { this.setState({open: true}); } else if (msg === 'close') { this.setState({open: false}); } else if (msg === 'toggle') { this.setState({open: !this.state.open}); } }.bind(this)); }, componentWillUnmount: function () { foundationApi.unsubscribe(this.props.id); }, render: function() { var classes = 'panel panel-' + this.props.position; if (this.props.className) { classes += ' ' + this.props.className; } if(this.props.position === 'left') { animationIn = this.props.animationIn || 'slideInRight'; animationOut = this.props.animationOut || 'slideOutLeft'; } else if (this.props.position === 'right') { animationIn = this.props.animationIn || 'slideInLeft'; animationOut = this.props.animationOut || 'slideOutRight'; } else if (this.props.position === 'top') { animationIn = this.props.animationIn || 'slideInDown'; animationOut = this.props.animationOut || 'slideOutUp'; } else if (this.props.position === 'bottom') { animationIn = this.props.animationIn || 'slideInUp'; animationOut = this.props.animationOut || 'slideOutBottom'; } return ( React.createElement(Animation, {active: this.state.open, animationIn: animationIn, animationOut: animationOut}, React.createElement("div", {"data-closable": true, id: this.props.id, className: classes}, this.props.children ) ) ); }, }); module.exports = Panel; /***/ }, /* 9 */ /***/ function(module, exports, __webpack_require__) { var React = __webpack_require__(12); var cx = __webpack_require__(26); var ExecutionEnvironment = __webpack_require__(25); var foundationApi = __webpack_require__(13); var Tether = ExecutionEnvironment.canUseDOM && __webpack_require__(27); var Popup = React.createClass({displayName: "Popup", getInitialState: function () { return { active: false, tetherInit: false }; }, getDefaultProps: function () { return { pinTo: 'top center', pinAt:'' }; }, componentDidMount: function () { this.tether = {}; foundationApi.subscribe(this.props.id, function (name, msg) { if (msg[0] === 'toggle') { this.toggle(msg[1]); } }.bind(this)); }, toggle: function (target) { var active = !this.state.active; this.setState({active: active}, function () { if (active) { this.tetherElement(target); } else { this.tether.destroy(); } }.bind(this)); }, tetherElement: function(target) { var targetElement = document.getElementById(target); var attachment = 'top center'; this.tether = new Tether({ element: this.getDOMNode(), target: targetElement, attachment: attachment, }); }, render: function () { var classes = { popup: true, 'is-active': this.state.active }; return ( React.createElement("div", {id: this.props.id, className: cx(classes), "data-closable": "popup"}, this.props.children ) ); }, }); module.exports = Popup; /***/ }, /* 10 */ /***/ function(module, exports, __webpack_require__) { var React = __webpack_require__(12); var cloneWithProps = __webpack_require__(24); var Tabs = React.createClass({displayName: "Tabs", getInitialState: function () { return { selectedTab: 0, content: null }; }, selectTab: function (options) { this.setState(options); }, render: function () { var children = React.Children.map(this.props.children, function (child, index) { return cloneWithProps(child, { active: (index === this.state.selectedTab), index: index, selectTab: this.selectTab }); }.bind(this)); return ( React.createElement("div", null, React.createElement("div", {className: "tabs"}, children), React.createElement("div", null, this.state.content) ) ); } }); module.exports = Tabs; Tabs.Tab = __webpack_require__(21); /***/ }, /* 11 */ /***/ function(module, exports, __webpack_require__) { var React = __webpack_require__(12); var cloneWithProps = __webpack_require__(24); var foundationApi = __webpack_require__(13); var PopupToggle = __webpack_require__(22); var Trigger = React.createClass({displayName: "Trigger", getDefaultProps: function () { return { open: null, close: null, toggle: null, hardToggle: null, popupToggle: null, notify: null }; }, getCloseId: function () { if (this.props.close) { return this.props.close; } else { var parentElement= false; var tempElement = this.getDOMNode().parentNode; while(parentElement === false) { if(tempElement.nodeName == 'BODY') { parentElement = ''; } if(typeof tempElement.getAttribute('data-closable') !== 'undefined' && tempElement.getAttribute('data-closable') !== false) { parentElement = tempElement; } tempElement = tempElement.parentNode; } return parentElement.getAttribute('id'); } }, clickHandler: function (e) { e.preventDefault(); if (this.props.open) { foundationApi.publish(this.props.open, 'open'); } else if (this.props.close !== null) { foundationApi.publish(this.getCloseId(), 'close'); } else if (this.props.toggle) { foundationApi.publish(this.props.toggle, 'toggle'); } else if (this.props.hardToggle) { foundationApi.closeActiveElements({exclude: this.props.hardToggle}); foundationApi.publish(this.props.hardToggle, 'toggle'); } else if (this.props.notify) { foundationApi.publish(this.props.notify, { title: this.props.title, content: this.props.content, position: this.props.position, color: this.props.color, image: this.props.image }); } }, render: function () { if (this.props.popupToggle) { return React.createElement(PopupToggle, React.__spread({}, this.props)); } else { var child = React.Children.only(this.props.children); return cloneWithProps(child, { onClick: this.clickHandler }); } } }); module.exports = Trigger; /***/ }, /* 12 */ /***/ function(module, exports, __webpack_require__) { module.exports = React; /***/ }, /* 13 */ /***/ function(module, exports, __webpack_require__) { //From https://github.com/zurb/foundation-apps/blob/master/js/angular/common/common.services.js var PubSub = __webpack_require__(36); var assign = __webpack_require__(31); var listeners = []; var settings = {}; var uniqueIds = []; var foundationApi = { subscribe: PubSub.subscribe, publish: PubSub.publish, unsubscribe: PubSub.unsubscribe, closeActiveElements: function(options) { var self = this; options = options || {}; var activeElements = document.querySelectorAll('.is-active[data-closable]'); Array.prototype.forEach.call(activeElements, function (el) { if (options.exclude !== el.id) { self.publish(el.id, 'close'); } }); }, getSettings: function() { return settings; }, modifySettings: function(tree) { settings = angular.extend(settings, tree); return settings; }, generateUuid: function() { var uuid = ''; //little trick to produce semi-random IDs do { uuid += 'zf-uuid-'; for (var i=0; i<15; i++) { uuid += Math.floor(Math.random()*16).toString(16); } } while(!uniqueIds.indexOf(uuid)); uniqueIds.push(uuid); return uuid; }, }; module.exports = foundationApi; /***/ }, /* 14 */ /***/ function(module, exports, __webpack_require__) { var require;var require;/*! * iconic.js v0.4.0 - The Iconic JavaScript library * Copyright (c) 2014 Waybury - http://useiconic.com */ !function(a){true?module.exports=a():"function"==typeof define&&define.amd?define(a):"undefined"!=typeof window?window.IconicJS=a():"undefined"!=typeof global?global.IconicJS=a():"undefined"!=typeof self&&(self.IconicJS=a())}(function(){var a;return function b(a,c,d){function e(g,h){if(!c[g]){if(!a[g]){var i="function"==typeof require&&require;if(!h&&i)return require(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};a[g][0].call(j.exports,function(b){var c=a[g][1][b];return e(c?c:b)},j,j.exports,b,a,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b){var c=(a("./modules/polyfills"),a("./modules/svg-injector")),d=a("./modules/extend"),e=a("./modules/responsive"),f=a("./modules/position"),g=a("./modules/container"),h=a("./modules/log"),i={},j=window.iconicSmartIconApis={},k=("file:"===window.location.protocol,0),l=function(a,b,e){b=d({},i,b||{});var f={evalScripts:b.evalScripts,pngFallback:b.pngFallback};f.each=function(a){if(a)if("string"==typeof a)h.debug(a);else if(a instanceof SVGSVGElement){var c=a.getAttribute("data-icon");if(c&&j[c]){var d=j[c](a);for(var e in d)a[e]=d[e]}/iconic-bg-/.test(a.getAttribute("class"))&&g.addBackground(a),m(a),k++,b&&b.each&&"function"==typeof b.each&&b.each(a)}},"string"==typeof a&&(a=document.querySelectorAll(a)),c(a,f,e)},m=function(a){var b=[];a?"string"==typeof a?b=document.querySelectorAll(a):void 0!==a.length?b=a:"object"==typeof a&&b.push(a):b=document.querySelectorAll("svg.iconic"),Array.prototype.forEach.call(b,function(a){a instanceof SVGSVGElement&&(a.update&&a.update(),e.refresh(a),f.refresh(a))})},n=function(){i.debug&&console.time&&console.time("autoInjectSelector - "+i.autoInjectSelector);var a=k;l(i.autoInjectSelector,{},function(){if(i.debug&&console.timeEnd&&console.timeEnd("autoInjectSelector - "+i.autoInjectSelector),h.debug("AutoInjected: "+(k-a)),e.refreshAll(),i.autoInjectDone&&"function"==typeof i.autoInjectDone){var b=k-a;i.autoInjectDone(b)}})},o=function(a){a&&""!==a&&"complete"!==document.readyState?document.addEventListener("DOMContentLoaded",n):document.removeEventListener("DOMContentLoaded",n)},p=function(a){return a=a||{},d(i,a),o(i.autoInjectSelector),h.enableDebug(i.debug),window._Iconic?window._Iconic:{inject:l,update:m,smartIconApis:j,svgInjectedCount:k}};b.exports=p,window._Iconic=new p({autoInjectSelector:"img.iconic",evalScripts:"once",pngFallback:!1,each:null,autoInjectDone:null,debug:!1})},{"./modules/container":2,"./modules/extend":3,"./modules/log":4,"./modules/polyfills":5,"./modules/position":6,"./modules/responsive":7,"./modules/svg-injector":8}],2:[function(a,b){var c=function(a){var b=a.getAttribute("class").split(" "),c=-1!==b.indexOf("iconic-fluid"),d=[],e=["iconic-bg"];Array.prototype.forEach.call(b,function(a){switch(a){case"iconic-sm":case"iconic-md":case"iconic-lg":d.push(a),c||e.push(a.replace(/-/,"-bg-"));break;case"iconic-fluid":d.push(a),e.push(a.replace(/-/,"-bg-"));break;case"iconic-bg-circle":case"iconic-bg-rounded-rect":case"iconic-bg-badge":e.push(a);break;default:d.push(a)}}),a.setAttribute("class",d.join(" "));var f=a.parentNode,g=Array.prototype.indexOf.call(f.childNodes,a),h=document.createElement("span");h.setAttribute("class",e.join(" ")),h.appendChild(a),f.insertBefore(h,f.childNodes[g])};b.exports={addBackground:c}},{}],3:[function(a,b){b.exports=function(a){return Array.prototype.forEach.call(Array.prototype.slice.call(arguments,1),function(b){if(b)for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])}),a}},{}],4:[function(a,b){var c=!1,d=function(a){console&&console.log&&console.log(a)},e=function(a){d("Iconic INFO: "+a)},f=function(a){d("Iconic WARNING: "+a)},g=function(a){c&&d("Iconic DEBUG: "+a)},h=function(a){c=a};b.exports={info:e,warn:f,debug:g,enableDebug:h}},{}],5:[function(){Array.prototype.forEach||(Array.prototype.forEach=function(a,b){"use strict";if(void 0===this||null===this||"function"!=typeof a)throw new TypeError;var c,d=this.length>>>0;for(c=0;d>c;++c)c in this&&a.call(b,this[c],c,this)}),function(){if(Event.prototype.preventDefault||(Event.prototype.preventDefault=function(){this.returnValue=!1}),Event.prototype.stopPropagation||(Event.prototype.stopPropagation=function(){this.cancelBubble=!0}),!Element.prototype.addEventListener){var a=[],b=function(b,c){var d=this,e=function(a){a.target=a.srcElement,a.currentTarget=d,c.handleEvent?c.handleEvent(a):c.call(d,a)};if("DOMContentLoaded"==b){var f=function(a){"complete"==document.readyState&&e(a)};if(document.attachEvent("onreadystatechange",f),a.push({object:this,type:b,listener:c,wrapper:f}),"complete"==document.readyState){var g=new Event;g.srcElement=window,f(g)}}else this.attachEvent("on"+b,e),a.push({object:this,type:b,listener:c,wrapper:e})},c=function(b,c){for(var d=0;d<a.length;){var e=a[d];if(e.object==this&&e.type==b&&e.listener==c){"DOMContentLoaded"==b?this.detachEvent("onreadystatechange",e.wrapper):this.detachEvent("on"+b,e.wrapper);break}++d}};Element.prototype.addEventListener=b,Element.prototype.removeEventListener=c,HTMLDocument&&(HTMLDocument.prototype.addEventListener=b,HTMLDocument.prototype.removeEventListener=c),Window&&(Window.prototype.addEventListener=b,Window.prototype.removeEventListener=c)}}()},{}],6:[function(a,b){var c=function(a){var b=a.getAttribute("data-position");if(b&&""!==b){var c,d,e,f,g,h,i,j=a.getAttribute("width"),k=a.getAttribute("height"),l=b.split("-"),m=a.querySelectorAll("g.iconic-container");Array.prototype.forEach.call(m,function(a){if(c=a.getAttribute("data-width"),d=a.getAttribute("data-height"),c!==j||d!==k){if(e=a.getAttribute("transform"),f=1,e){var b=e.match(/scale\((\d)/);f=b&&b[1]?b[1]:1}g=Math.floor((j/f-c)/2),h=Math.floor((k/f-d)/2),Array.prototype.forEach.call(l,function(a){switch(a){case"top":h=0;break;case"bottom":h=k/f-d;break;case"left":g=0;break;case"right":g=j/f-c;break;case"center":break;default:console&&console.log&&console.log("Unknown position: "+a)}}),i=0===h?g:g+" "+h,i="translate("+i+")",e?/translate/.test(e)?e=e.replace(/translate\(.*?\)/,i):e+=" "+i:e=i,a.setAttribute("transform",e)}})}};b.exports={refresh:c}},{}],7:[function(a,b){var c=/(iconic-sm\b|iconic-md\b|iconic-lg\b)/,d=function(a,b){var c="undefined"!=typeof window.getComputedStyle&&window.getComputedStyle(a,null).getPropertyValue(b);return!c&&a.currentStyle&&(c=a.currentStyle[b.replace(/([a-z])\-([a-z])/,function(a,b,c){return b+c.toUpperCase()})]||a.currentStyle[b]),c},e=function(a){var b=a.style.display;a.style.display="block";var c=parseFloat(d(a,"width").slice(0,-2)),e=parseFloat(d(a,"height").slice(0,-2));return a.style.display=b,{width:c,height:e}},f=function(){var a="/* Iconic Responsive Support Styles */\n.iconic-property-fill, .iconic-property-text {stroke: none !important;}\n.iconic-property-stroke {fill: none !important;}\nsvg.iconic.iconic-fluid {height:100% !important;width:100% !important;}\nsvg.iconic.iconic-sm:not(.iconic-size-md):not(.iconic-size-lg), svg.iconic.iconic-size-sm{width:16px;height:16px;}\nsvg.iconic.iconic-md:not(.iconic-size-sm):not(.iconic-size-lg), svg.iconic.iconic-size-md{width:32px;height:32px;}\nsvg.iconic.iconic-lg:not(.iconic-size-sm):not(.iconic-size-md), svg.iconic.iconic-size-lg{width:128px;height:128px;}\nsvg.iconic-sm > g.iconic-md, svg.iconic-sm > g.iconic-lg, svg.iconic-md > g.iconic-sm, svg.iconic-md > g.iconic-lg, svg.iconic-lg > g.iconic-sm, svg.iconic-lg > g.iconic-md {display: none;}\nsvg.iconic.iconic-icon-sm > g.iconic-lg, svg.iconic.iconic-icon-md > g.iconic-lg {display:none;}\nsvg.iconic-sm:not(.iconic-icon-md):not(.iconic-icon-lg) > g.iconic-sm, svg.iconic-md.iconic-icon-sm > g.iconic-sm, svg.iconic-lg.iconic-icon-sm > g.iconic-sm {display:inline;}\nsvg.iconic-md:not(.iconic-icon-sm):not(.iconic-icon-lg) > g.iconic-md, svg.iconic-sm.iconic-icon-md > g.iconic-md, svg.iconic-lg.iconic-icon-md > g.iconic-md {display:inline;}\nsvg.iconic-lg:not(.iconic-icon-sm):not(.iconic-icon-md) > g.iconic-lg, svg.iconic-sm.iconic-icon-lg > g.iconic-lg, svg.iconic-md.iconic-icon-lg > g.iconic-lg {display:inline;}";navigator&&navigator.userAgent&&/MSIE 10\.0/.test(navigator.userAgent)&&(a+="svg.iconic{zoom:1.0001;}");var b=document.createElement("style");b.id="iconic-responsive-css",b.type="text/css",b.styleSheet?b.styleSheet.cssText=a:b.appendChild(document.createTextNode(a)),(document.head||document.getElementsByTagName("head")[0]).appendChild(b)},g=function(a){if(/iconic-fluid/.test(a.getAttribute("class"))){var b,d=e(a),f=a.viewBox.baseVal.width/a.viewBox.baseVal.height;b=1===f?Math.min(d.width,d.height):1>f?d.width:d.height;var g;g=32>b?"iconic-sm":b>=32&&128>b?"iconic-md":"iconic-lg";var h=a.getAttribute("class"),i=c.test(h)?h.replace(c,g):h+" "+g;a.setAttribute("class",i)}},h=function(){var a=document.querySelectorAll(".injected-svg.iconic-fluid");Array.prototype.forEach.call(a,function(a){g(a)})};document.addEventListener("DOMContentLoaded",function(){f()}),window.addEventListener("resize",function(){h()}),b.exports={refresh:g,refreshAll:h}},{}],8:[function(b,c,d){!function(b,e){"use strict";function f(a){a=a.split(" ");for(var b={},c=a.length,d=[];c--;)b.hasOwnProperty(a[c])||(b[a[c]]=1,d.unshift(a[c]));return d.join(" ")}var g="file:"===b.location.protocol,h=e.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"),i=Array.prototype.forEach||function(a,b){if(void 0===this||null===this||"function"!=typeof a)throw new TypeError;var c,d=this.length>>>0;for(c=0;d>c;++c)c in this&&a.call(b,this[c],c,this)},j={},k=0,l=[],m=[],n={},o=function(a){return a.cloneNode(!0)},p=function(a,b){m[a]=m[a]||[],m[a].push(b)},q=function(a){for(var b=0,c=m[a].length;c>b;b++)!function(b){setTimeout(function(){m[a][b](o(j[a]))},0)}(b)},r=function(a,c){if(void 0!==j[a])j[a]instanceof SVGSVGElement?c(o(j[a])):p(a,c);else{if(!b.XMLHttpRequest)return c("Browser does not support XMLHttpRequest"),!1;j[a]={},p(a,c);var d=new XMLHttpRequest;d.onreadystatechange=function(){if(4===d.readyState){if(404===d.status||null===d.responseXML)return c("Unable to load SVG file: "+a),g&&c("Note: SVG injection ajax calls do not work locally without adjusting security setting in your browser. Or consider using a local webserver."),c(),!1;if(!(200===d.status||g&&0===d.status))return c("There was a problem injecting the SVG: "+d.status+" "+d.statusText),!1;if(d.responseXML instanceof Document)j[a]=d.responseXML.documentElement;else if(DOMParser&&DOMParser instanceof Function){var b;try{var e=new DOMParser;b=e.parseFromString(d.responseText,"text/xml")}catch(f){b=void 0}if(!b||b.getElementsByTagName("parsererror").length)return c("Unable to parse SVG file: "+a),!1;j[a]=b.documentElement}q(a)}},d.open("GET",a),d.overrideMimeType&&d.overrideMimeType("text/xml"),d.send()}},s=function(a,c,d,e){var g=a.getAttribute("data-src")||a.getAttribute("src");if(!/svg$/i.test(g))return e("Attempted to inject a file with a non-svg extension: "+g),void 0;if(!h){var j=a.getAttribute("data-fallback")||a.getAttribute("data-png");return j?(a.setAttribute("src",j),e(null)):d?(a.setAttribute("src",d+"/"+g.split("/").pop().replace(".svg",".png")),e(null)):e("This browser does not support SVG and no PNG fallback was defined."),void 0}-1===l.indexOf(a)&&(l.push(a),a.setAttribute("src",""),r(g,function(d){if("undefined"==typeof d||"string"==typeof d)return e(d),!1;var h=a.getAttribute("id");h&&d.setAttribute("id",h);var j=a.getAttribute("title");j&&d.setAttribute("title",j);var m=[].concat(d.getAttribute("class")||[],"injected-svg",a.getAttribute("class")||[]).join(" ");d.setAttribute("class",f(m));var o=a.getAttribute("style");o&&d.setAttribute("style",o);var p=[].filter.call(a.attributes,function(a){return/^data-\w[\w\-]*$/.test(a.name)});i.call(p,function(a){a.name&&a.value&&d.setAttribute(a.name,a.value)});for(var q,r=d.querySelectorAll("defs clipPath[id]"),s=0,t=r.length;t>s;s++){q=r[s].id+"-"+k;for(var u=d.querySelectorAll('[clip-path*="'+r[s].id+'"]'),v=0,w=u.length;w>v;v++)u[v].setAttribute("clip-path","url(#"+q+")");r[s].id=q}d.removeAttribute("xmlns:a");for(var x,y,z=d.querySelectorAll("script"),A=[],B=0,C=z.length;C>B;B++)y=z[B].getAttribute("type"),y&&"application/ecmascript"!==y&&"application/javascript"!==y||(x=z[B].innerText||z[B].textContent,A.push(x),d.removeChild(z[B]));if(A.length>0&&("always"===c||"once"===c&&!n[g])){for(var D=0,E=A.length;E>D;D++)new Function(A[D])(b);n[g]=!0}a.parentNode.replaceChild(d,a),delete l[l.indexOf(a)],a=null,k++,e(d)}))},t=function(a,b,c){b=b||{};var d=b.evalScripts||"always",e=b.pngFallback||!1,f=b.each;if(void 0!==a.length){var g=0;i.call(a,function(b){s(b,d,e,function(b){f&&"function"==typeof f&&f(b),c&&a.length===++g&&c(g)})})}else a?s(a,d,e,function(b){f&&"function"==typeof f&&f(b),c&&c(1),a=null}):c&&c(0)};"object"==typeof c&&"object"==typeof c.exports?c.exports=d=t:"function"==typeof a&&a.amd?a(function(){return t}):"object"==typeof b&&(b.SVGInjector=t)}(window,document)},{}]},{},[1])(1)}); /***/ }, /* 15 */ /***/ function(module, exports, __webpack_require__) { var React = __webpack_require__(12); var cx = __webpack_require__(26); var AccordionItem = React.createClass({displayName: "AccordionItem", render: function () { var itemClasses = { 'accordion-item': true, 'is-active': this.props.active }; return ( React.createElement("div", {className: cx(itemClasses)}, React.createElement("div", {className: "accordion-title", onClick: this.props.activate}, this.props.title ), React.createElement("div", {className: "accordion-content"}, this.props.children ) ) ); } }); module.exports = AccordionItem; /***/ }, /* 16 */ /***/ function(module, exports, __webpack_require__) { var React = __webpack_require__(12); var ActionSheetButton = React.createClass({displayName: "ActionSheetButton", toggle: function () { this.props.setActiveState(!this.props.active); }, render: function () { var Title = null; if (this.props.title.length > 0) { Title = React.createElement("a", {className: "button"}, this.props.title); } return ( React.createElement("div", {onClick: this.toggle}, Title, React.createElement("div", null, this.props.children) ) ); } }); module.exports = ActionSheetButton; /***/ }, /* 17 */ /***/ function(module, exports, __webpack_require__) { var React = __webpack_require__(12); var cx = __webpack_require__(26); var ActionSheetContent = React.createClass({displayName: "ActionSheetContent", getDefaultProps: function () { return {position: 'bottom'}; }, render: function () { var classes = { 'action-sheet': true, 'is-active': this.props.active }; return ( React.createElement("div", {className: cx(classes)}, this.props.children) ); } }); module.exports = ActionSheetContent; /***/ }, /* 18 */ /***/ function(module, exports, __webpack_require__) { // some parts of code from react/lib/ReactCSSTransitionGroupChild.js var React = __webpack_require__(12); var ReactTransitionEvents = __webpack_require__(29); var CSSCore = __webpack_require__(30); var cloneWithProps = __webpack_require__(24); var cx = __webpack_require__(26); var TICK = 17; var Animation = React.createClass({displayName: "Animation", getInitialState: function () { return { }; }, getDefaultProps: function () { return { active: false, animationIn: '', animationOut: '' }; }, reflow: function (node) { return node.offsetWidth; }, reset: function (node) { node.style.transitionDuration = 0; CSSCore.removeClass(node, 'ng-enter'); CSSCore.removeClass(node, 'ng-leave'); CSSCore.removeClass(node, 'ng-enter-active'); CSSCore.removeClass(node, 'ng-leave-active'); CSSCore.removeClass(node, this.props.animationIn); CSSCore.removeClass(node, this.props.animationOut); }, finishAnimation: function () { var node = this.getDOMNode(); this.reset(node); CSSCore.removeClass(node, this.props.active? '' : 'is-active'); this.reflow(node); ReactTransitionEvents.removeEndEventListener(node, this.finishAnimation); }, animate: function(animationClass, animationType) { var node = this.getDOMNode(); var initClass = 'ng-' + animationType; var activeClass = initClass + '-active'; this.reset(node); CSSCore.addClass(node, animationClass); CSSCore.addClass(node, initClass); CSSCore.addClass(node, 'is-active'); //force a "tick" this.reflow(node); //activate node.style.transitionDuration = ''; CSSCore.addClass(node, activeClass); ReactTransitionEvents.addEndEventListener(node, this.finishAnimation); }, componentDidUpdate: function (prevProps) { if (prevProps.active !== this.props.active) { var animationClass = this.props.active ? this.props.animationIn: this.props.animationOut; var animationType = this.props.active ? 'enter': 'leave'; this.animate(animationClass, animationType); } }, render: function () { var child = React.Children.only(this.props.children); var extraProps = {}; return cloneWithProps(child, extraProps); } }); module.exports = Animation; /***/ }, /* 19 */ /***/ function(module, exports, __webpack_require__) { var React = __webpack_require__(12); var foundationApi = __webpack_require__(13); var Notification = __webpack_require__(28); var Animation = __webpack_require__(18); var NotificationSet = React.createClass({displayName: "NotificationSet", getInitialState: function () { return {notifications: []}; }, componentDidMount: function () { foundationApi.subscribe(this.props.id, function(name, msg) { if(msg === 'clearall') { this.clearAll(); } else { this.addNotification(msg); } }.bind(this)); }, addNotification: function (notification) { notification.id = foundationApi.generateUuid(); var notifications = this.state.notifications.concat(notification); this.setState({ notifications: notifications }); }, removeNotifcation: function (id) { return function (e) { var notifications = [] this.state.notifications.forEach(function (notification) { if (notification.id !== id) { notifications.push(notification) } }); this.setState({ notifications: notifications }); e.preventDefault(); }.bind(this); }, clearAll: function () { this.setState({notifications: []}); }, render: function () { var notifications = this.state.notifications.map(function (notification) { return ( React.createElement(Notification, React.__spread({key: notification.id}, notification, {closeHandler: this.removeNotifcation(notification.id), className: "is-active"}), notification.content ) ); }.bind(this)); return ( React.createElement("div", null, notifications) ) } }); module.exports = NotificationSet; /***/ }, /* 20 */ /***/ function(module, exports, __webpack_require__) { var React = __webpack_require__(12); var cx = __webpack_require__(26); var foundationApi = __webpack_require__(13); var Animation = __webpack_require__(18); var Notification = __webpack_require__(28); var NotificationStatic = React.createClass({displayName: "NotificationStatic", getInitialState: function () { return { open: false }; }, componentDidMount: function () { foundationApi.subscribe(this.props.id, function (name, msg) { if (msg === 'open') { this.setState({open: true}); } else if (msg === 'close') { this.setState({open: false}); } }.bind(this)); }, componentWillUnmount: function () { foundationApi.unsubscribe(this.props.id); }, closeHandler: function (e) { this.setState({open: false}); e.preventDefault(); e.stopPropagation(); }, render: function () { return ( React.createElement(Animation, {active: this.state.open, animationIn: "fadeIn", animationOut: "fadeOut"}, React.createElement(Notification, React.__spread({}, this.props, {closeHandler: this.closeHandler}), this.props.children ) ) ); } }); module.exports = NotificationStatic; /***/ }, /* 21 */ /***/ function(module, exports, __webpack_require__) { var React = __webpack_require__(12); var cx = __webpack_require__(26); var Tab = React.createClass({displayName: "Tab", componentDidMount: function () { if (this.props.active) { this.select(); } }, select: function () { var options = { selectedTab: this.props.index, content: this.props.children }; this.props.selectTab(options); }, render: function () { var classes = { 'tab-item': true, 'is-active': this.props.active }; return ( React.createElement("div", {className: cx(classes), onClick: this.select}, this.props.title ) ); } }); module.exports = Tab; /***/ }, /* 22 */ /***/ function(module, exports, __webpack_require__) { var React = __webpack_require__(12); var foundationApi = __webpack_require__(13); var cloneWithProps = __webpack_require__(24); var PopupToggle = React.createClass({displayName: "PopupToggle", clickHandler: function (id, e) { e.preventDefault(); foundationApi.publish(this.props.popupToggle, ['toggle', id]); }, render: function () { var child = React.Children.only(this.props.children); var id = this.props.id || foundationApi.generateUuid(); return cloneWithProps(child, { id: id, onClick: this.clickHandler.bind(this, id) }); } }); module.exports = PopupToggle; /***/ }, /* 23 */ /***/ function(module, exports, __webpack_require__) { var canUseDOM = __webpack_require__(38); var enquire = canUseDOM && __webpack_require__(40); var json2mq = __webpack_require__(39); var ResponsiveMixin = { media: function (query, handler) { query = json2mq(query); if (typeof handler === 'function') { handler = { match: handler }; } enquire.register(query, handler); // Queue the handlers to unregister them at unmount if (! this._responsiveMediaHandlers) { this._responsiveMediaHandlers = []; } this._responsiveMediaHandlers.push({query: query, handler: handler}); }, componentWillUnmount: function () { this._responsiveMediaHandlers.forEach(function(obj) { enquire.unregister(obj.query, obj.handler); }); } }; module.exports = ResponsiveMixin; /***/ }, /* 24 */ /***/ function(module, exports, __webpack_require__) { /** * Copyright 2013-2014, 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. * * @typechecks * @providesModule cloneWithProps */ "use strict"; var ReactElement = __webpack_require__(33); var ReactPropTransferer = __webpack_require__(32); var keyOf = __webpack_require__(34); var warning = __webpack_require__(35); var CHILDREN_PROP = keyOf({children: null}); /** * Sometimes you want to change the props of a child passed to you. Usually * this is to add a CSS class. * * @param {object} child child component you'd like to clone * @param {object} props props you'd like to modify. They will be merged * as if you used `transferPropsTo()`. * @return {object} a clone of child with props merged in. */ function cloneWithProps(child, props) { if ("production" !== (undefined)) { ("production" !== (undefined) ? warning( !child.ref, 'You are calling cloneWithProps() on a child with a ref. This is ' + 'dangerous because you\'re creating a new child which will not be ' + 'added as a ref to its parent.' ) : null); } var newProps = ReactPropTransferer.mergeProps(props, child.props); // Use `child.props.children` if it is provided. if (!newProps.hasOwnProperty(CHILDREN_PROP) && child.props.hasOwnProperty(CHILDREN_PROP)) { newProps.children = child.props.children; } // The current API doesn't retain _owner and _context, which is why this // doesn't use ReactElement.cloneAndReplaceProps. return ReactElement.createElement(child.type, newProps); } module.exports = cloneWithProps; /***/ }, /* 25 */ /***/ function(module, exports, __webpack_require__) { /** * Copyright 2013-2014, 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. * * @providesModule ExecutionEnvironment */ /*jslint evil: true */ "use strict"; var canUseDOM = !!( typeof window !== 'undefined' && window.document && window.document.createElement ); /** * Simple, lightweight module assisting with the detection and context of * Worker. Helps avoid circular dependencies and allows code to reason about * whether or not they are in a Worker, even if they never include the main * `ReactWorker` dependency. */ var ExecutionEnvironment = { canUseDOM: canUseDOM, canUseWorkers: typeof Worker !== 'undefined', canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent), canUseViewport: canUseDOM && !!window.screen, isInWorker: !canUseDOM // For now, this is true - might change in the future. }; module.exports = ExecutionEnvironment; /***/ }, /* 26 */ /***/ function(module, exports, __webpack_require__) { /** * Copyright 2013-2014, 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. * * @providesModule cx */ /** * This function is used to mark string literals representing CSS class names * so that they can be transformed statically. This allows for modularization * and minification of CSS class names. * * In static_upstream, this function is actually implemented, but it should * eventually be replaced with something more descriptive, and the transform * that is used in the main stack should be ported for use elsewhere. * * @param string|object className to modularize, or an object of key/values. * In the object case, the values are conditions that * determine if the className keys should be included. * @param [string ...] Variable list of classNames in the string case. * @return string Renderable space-separated CSS className. */ function cx(classNames) { if (typeof classNames == 'object') { return Object.keys(classNames).filter(function(className) { return classNames[className]; }).join(' '); } else { return Array.prototype.join.call(arguments, ' '); } } module.exports = cx; /***/ }, /* 27 */ /***/ function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! tether 0.6.5 */ (function(root, factory) { if (true) { !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof exports === 'object') { module.exports = factory(require,exports,module); } else { root.Tether = factory(); } }(this, function(require,exports,module) { (function() { var Evented, addClass, defer, deferred, extend, flush, getBounds, getClassName, getOffsetParent, getOrigin, getScrollBarSize, getScrollParent, hasClass, node, removeClass, setClassName, uniqueId, updateClasses, zeroPosCache, __hasProp = {}.hasOwnProperty, __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }, __slice = [].slice; if (this.Tether == null) { this.Tether = { modules: [] }; } getScrollParent = function(el) { var parent, position, scrollParent, style, _ref; position = getComputedStyle(el).position; if (position === 'fixed') { return el; } scrollParent = void 0; parent = el; while (parent = parent.parentNode) { try { style = getComputedStyle(parent); } catch (_error) {} if (style == null) { return parent; } if (/(auto|scroll)/.test(style['overflow'] + style['overflowY'] + style['overflowX'])) { if (position !== 'absolute' || ((_ref = style['position']) === 'relative' || _ref === 'absolute' || _ref === 'fixed')) { return parent; } } } return document.body; }; uniqueId = (function() { var id; id = 0; return function() { return id++; }; })(); zeroPosCache = {}; getOrigin = function(doc) { var id, k, node, v, _ref; node = doc._tetherZeroElement; if (node == null) { node = doc.createElement('div'); node.setAttribute('data-tether-id', uniqueId()); extend(node.style, { top: 0, left: 0, position: 'absolute' }); doc.body.appendChild(node); doc._tetherZeroElement = node; } id = node.getAttribute('data-tether-id'); if (zeroPosCache[id] == null) { zeroPosCache[id] = {}; _ref = node.getBoundingClientRect(); for (k in _ref) { v = _ref[k]; zeroPosCache[id][k] = v; } defer(function() { return zeroPosCache[id] = void 0; }); } return zeroPosCache[id]; }; node = null; getBounds = function(el) { var box, doc, docEl, k, origin, v, _ref; if (el === document) { doc = document; el = document.documentElement; } else { doc = el.ownerDocument; } docEl = doc.documentElement; box = {}; _ref = el.getBoundingClientRect(); for (k in _ref) { v = _ref[k]; box[k] = v; } origin = getOrigin(doc); box.top -= origin.top; box.left -= origin.left; if (box.width == null) { box.width = document.body.scrollWidth - box.left - box.right; } if (box.height == null) { box.height = document.body.scrollHeight - box.top - box.bottom; } box.top = box.top - docEl.clientTop; box.left = box.left - docEl.clientLeft; box.right = doc.body.clientWidth - box.width - box.left; box.bottom = doc.body.clientHeight - box.height - box.top; return box; }; getOffsetParent = function(el) { return el.offsetParent || document.documentElement; }; getScrollBarSize = function() { var inner, outer, width, widthContained, widthScroll; inner = document.createElement('div'); inner.style.width = '100%'; inner.style.height = '200px'; outer = document.createElement('div'); extend(outer.style, { position: 'absolute', top: 0, left: 0, pointerEvents: 'none', visibility: 'hidden', width: '200px', height: '150px', overflow: 'hidden' }); outer.appendChild(inner); document.body.appendChild(outer); widthContained = inner.offsetWidth; outer.style.overflow = 'scroll'; widthScroll = inner.offsetWidth; if (widthContained === widthScroll) { widthScroll = outer.clientWidth; } document.body.removeChild(outer); width = widthContained - widthScroll; return { width: width, height: width }; }; extend = function(out) { var args, key, obj, val, _i, _len, _ref; if (out == null) { out = {}; } args = []; Array.prototype.push.apply(args, arguments); _ref = args.slice(1); for (_i = 0, _len = _ref.length; _i < _len; _i++) { obj = _ref[_i]; if (obj) { for (key in obj) { if (!__hasProp.call(obj, key)) continue; val = obj[key]; out[key] = val; } } } return out; }; removeClass = function(el, name) { var className, cls, _i, _len, _ref, _results; if (el.classList != null) { _ref = name.split(' '); _results = []; for (_i = 0, _len = _ref.length; _i < _len; _i++) { cls = _ref[_i]; if (cls.trim()) { _results.push(el.classList.remove(cls)); } } return _results; } else { className = getClassName(el).replace(new RegExp("(^| )" + (name.split(' ').join('|')) + "( |$)", 'gi'), ' '); return setClassName(el, className); } }; addClass = function(el, name) { var cls, _i, _len, _ref, _results; if (el.classList != null) { _ref = name.split(' '); _results = []; for (_i = 0, _len = _ref.length; _i < _len; _i++) { cls = _ref[_i]; if (cls.trim()) { _results.push(el.classList.add(cls)); } } return _results; } else { removeClass(el, name); cls = getClassName(el) + (" " + name); return setClassName(el, cls); } }; hasClass = function(el, name) { if (el.classList != null) { return el.classList.contains(name); } else { return new RegExp("(^| )" + name + "( |$)", 'gi').test(getClassName(el)); } }; getClassName = function(el) { if (el.className instanceof SVGAnimatedString) { return el.className.baseVal; } else { return el.className; } }; setClassName = function(el, className) { return el.setAttribute('class', className); }; updateClasses = function(el, add, all) { var cls, _i, _j, _len, _len1, _results; for (_i = 0, _len = all.length; _i < _len; _i++) { cls = all[_i]; if (__indexOf.call(add, cls) < 0) { if (hasClass(el, cls)) { removeClass(el, cls); } } } _results = []; for (_j = 0, _len1 = add.length; _j < _len1; _j++) { cls = add[_j]; if (!hasClass(el, cls)) { _results.push(addClass(el, cls)); } else { _results.push(void 0); } } return _results; }; deferred = []; defer = function(fn) { return deferred.push(fn); }; flush = function() { var fn, _results; _results = []; while (fn = deferred.pop()) { _results.push(fn()); } return _results; }; Evented = (function() { function Evented() {} Evented.prototype.on = function(event, handler, ctx, once) { var _base; if (once == null) { once = false; } if (this.bindings == null) { this.bindings = {}; } if ((_base = this.bindings)[event] == null) { _base[event] = []; } return this.bindings[event].push({ handler: handler, ctx: ctx, once: once }); }; Evented.prototype.once = function(event, handler, ctx) { return this.on(event, handler, ctx, true); }; Evented.prototype.off = function(event, handler) { var i, _ref, _results; if (((_ref = this.bindings) != null ? _ref[event] : void 0) == null) { return; } if (handler == null) { return delete this.bindings[event]; } else { i = 0; _results = []; while (i < this.bindings[event].length) { if (this.bindings[event][i].handler === handler) { _results.push(this.bindings[event].splice(i, 1)); } else { _results.push(i++); } } return _results; } }; Evented.prototype.trigger = function() { var args, ctx, event, handler, i, once, _ref, _ref1, _results; event = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : []; if ((_ref = this.bindings) != null ? _ref[event] : void 0) { i = 0; _results = []; while (i < this.bindings[event].length) { _ref1 = this.bindings[event][i], handler = _ref1.handler, ctx = _ref1.ctx, once = _ref1.once; handler.apply(ctx != null ? ctx : this, args); if (once) { _results.push(this.bindings[event].splice(i, 1)); } else { _results.push(i++); } } return _results; } }; return Evented; })(); this.Tether.Utils = { getScrollParent: getScrollParent, getBounds: getBounds, getOffsetParent: getOffsetParent, extend: extend, addClass: addClass, removeClass: removeClass, hasClass: hasClass, updateClasses: updateClasses, defer: defer, flush: flush, uniqueId: uniqueId, Evented: Evented, getScrollBarSize: getScrollBarSize }; }).call(this); (function() { var MIRROR_LR, MIRROR_TB, OFFSET_MAP, Tether, addClass, addOffset, attachmentToOffset, autoToFixedAttachment, defer, extend, flush, getBounds, getOffsetParent, getOuterSize, getScrollBarSize, getScrollParent, getSize, now, offsetToPx, parseAttachment, parseOffset, position, removeClass, tethers, transformKey, updateClasses, within, _Tether, _ref, __slice = [].slice, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; if (this.Tether == null) { throw new Error("You must include the utils.js file before tether.js"); } Tether = this.Tether; _ref = Tether.Utils, getScrollParent = _ref.getScrollParent, getSize = _ref.getSize, getOuterSize = _ref.getOuterSize, getBounds = _ref.getBounds, getOffsetParent = _ref.getOffsetParent, extend = _ref.extend, addClass = _ref.addClass, removeClass = _ref.removeClass, updateClasses = _ref.updateClasses, defer = _ref.defer, flush = _ref.flush, getScrollBarSize = _ref.getScrollBarSize; within = function(a, b, diff) { if (diff == null) { diff = 1; } return (a + diff >= b && b >= a - diff); }; transformKey = (function() { var el, key, _i, _len, _ref1; el = document.createElement('div'); _ref1 = ['transform', 'webkitTransform', 'OTransform', 'MozTransform', 'msTransform']; for (_i = 0, _len = _ref1.length; _i < _len; _i++) { key = _ref1[_i]; if (el.style[key] !== void 0) { return key; } } })(); tethers = []; position = function() { var tether, _i, _len; for (_i = 0, _len = tethers.length; _i < _len; _i++) { tether = tethers[_i]; tether.position(false); } return flush(); }; now = function() { var _ref1; return (_ref1 = typeof performance !== "undefined" && performance !== null ? typeof performance.now === "function" ? performance.now() : void 0 : void 0) != null ? _ref1 : +(new Date); }; (function() { var event, lastCall, lastDuration, pendingTimeout, tick, _i, _len, _ref1, _results; lastCall = null; lastDuration = null; pendingTimeout = null; tick = function() { if ((lastDuration != null) && lastDuration > 16) { lastDuration = Math.min(lastDuration - 16, 250); pendingTimeout = setTimeout(tick, 250); return; } if ((lastCall != null) && (now() - lastCall) < 10) { return; } if (pendingTimeout != null) { clearTimeout(pendingTimeout); pendingTimeout = null; } lastCall = now(); position(); return lastDuration = now() - lastCall; }; _ref1 = ['resize', 'scroll', 'touchmove']; _results = []; for (_i = 0, _len = _ref1.length; _i < _len; _i++) { event = _ref1[_i]; _results.push(window.addEventListener(event, tick)); } return _results; })(); MIRROR_LR = { center: 'center', left: 'right', right: 'left' }; MIRROR_TB = { middle: 'middle', top: 'bottom', bottom: 'top' }; OFFSET_MAP = { top: 0, left: 0, middle: '50%', center: '50%', bottom: '100%', right: '100%' }; autoToFixedAttachment = function(attachment, relativeToAttachment) { var left, top; left = attachment.left, top = attachment.top; if (left === 'auto') { left = MIRROR_LR[relativeToAttachment.left]; } if (top === 'auto') { top = MIRROR_TB[relativeToAttachment.top]; } return { left: left, top: top }; }; attachmentToOffset = function(attachment) { var _ref1, _ref2; return { left: (_ref1 = OFFSET_MAP[attachment.left]) != null ? _ref1 : attachment.left, top: (_ref2 = OFFSET_MAP[attachment.top]) != null ? _ref2 : attachment.top }; }; addOffset = function() { var left, offsets, out, top, _i, _len, _ref1; offsets = 1 <= arguments.length ? __slice.call(arguments, 0) : []; out = { top: 0, left: 0 }; for (_i = 0, _len = offsets.length; _i < _len; _i++) { _ref1 = offsets[_i], top = _ref1.top, left = _ref1.left; if (typeof top === 'string') { top = parseFloat(top, 10); } if (typeof left === 'string') { left = parseFloat(left, 10); } out.top += top; out.left += left; } return out; }; offsetToPx = function(offset, size) { if (typeof offset.left === 'string' && offset.left.indexOf('%') !== -1) { offset.left = parseFloat(offset.left, 10) / 100 * size.width; } if (typeof offset.top === 'string' && offset.top.indexOf('%') !== -1) { offset.top = parseFloat(offset.top, 10) / 100 * size.height; } return offset; }; parseAttachment = parseOffset = function(value) { var left, top, _ref1; _ref1 = value.split(' '), top = _ref1[0], left = _ref1[1]; return { top: top, left: left }; }; _Tether = (function() { _Tether.modules = []; function _Tether(options) { this.position = __bind(this.position, this); var module, _i, _len, _ref1, _ref2; tethers.push(this); this.history = []; this.setOptions(options, false); _ref1 = Tether.modules; for (_i = 0, _len = _ref1.length; _i < _len; _i++) { module = _ref1[_i]; if ((_ref2 = module.initialize) != null) { _ref2.call(this); } } this.position(); } _Tether.prototype.getClass = function(key) { var _ref1, _ref2; if ((_ref1 = this.options.classes) != null ? _ref1[key] : void 0) { return this.options.classes[key]; } else if (((_ref2 = this.options.classes) != null ? _ref2[key] : void 0) !== false) { if (this.options.classPrefix) { return "" + this.options.classPrefix + "-" + key; } else { return key; } } else { return ''; } }; _Tether.prototype.setOptions = function(options, position) { var defaults, key, _i, _len, _ref1, _ref2; this.options = options; if (position == null) { position = true; } defaults = { offset: '0 0', targetOffset: '0 0', targetAttachment: 'auto auto', classPrefix: 'tether' }; this.options = extend(defaults, this.options); _ref1 = this.options, this.element = _ref1.element, this.target = _ref1.target, this.targetModifier = _ref1.targetModifier; if (this.target === 'viewport') { this.target = document.body; this.targetModifier = 'visible'; } else if (this.target === 'scroll-handle') { this.target = document.body; this.targetModifier = 'scroll-handle'; } _ref2 = ['element', 'target']; for (_i = 0, _len = _ref2.length; _i < _len; _i++) { key = _ref2[_i]; if (this[key] == null) { throw new Error("Tether Error: Both element and target must be defined"); } if (this[key].jquery != null) { this[key] = this[key][0]; } else if (typeof this[key] === 'string') { this[key] = document.querySelector(this[key]); } } addClass(this.element, this.getClass('element')); addClass(this.target, this.getClass('target')); if (!this.options.attachment) { throw new Error("Tether Error: You must provide an attachment"); } this.targetAttachment = parseAttachment(this.options.targetAttachment); this.attachment = parseAttachment(this.options.attachment); this.offset = parseOffset(this.options.offset); this.targetOffset = parseOffset(this.options.targetOffset); if (this.scrollParent != null) { this.disable(); } if (this.targetModifier === 'scroll-handle') { this.scrollParent = this.target; } else { this.scrollParent = getScrollParent(this.target); } if (this.options.enabled !== false) { return this.enable(position); } }; _Tether.prototype.getTargetBounds = function() { var bounds, fitAdj, hasBottomScroll, height, out, scrollBottom, scrollPercentage, style, target; if (this.targetModifier != null) { switch (this.targetModifier) { case 'visible': if (this.target === document.body) { return { top: pageYOffset, left: pageXOffset, height: innerHeight, width: innerWidth }; } else { bounds = getBounds(this.target); out = { height: bounds.height, width: bounds.width, top: bounds.top, left: bounds.left }; out.height = Math.min(out.height, bounds.height - (pageYOffset - bounds.top)); out.height = Math.min(out.height, bounds.height - ((bounds.top + bounds.height) - (pageYOffset + innerHeight))); out.height = Math.min(innerHeight, out.height); out.height -= 2; out.width = Math.min(out.width, bounds.width - (pageXOffset - bounds.left)); out.width = Math.min(out.width, bounds.width - ((bounds.left + bounds.width) - (pageXOffset + innerWidth))); out.width = Math.min(innerWidth, out.width); out.width -= 2; if (out.top < pageYOffset) { out.top = pageYOffset; } if (out.left < pageXOffset) { out.left = pageXOffset; } return out; } break; case 'scroll-handle': target = this.target; if (target === document.body) { target = document.documentElement; bounds = { left: pageXOffset, top: pageYOffset, height: innerHeight, width: innerWidth }; } else { bounds = getBounds(target); } style = getComputedStyle(target); hasBottomScroll = target.scrollWidth > target.clientWidth || 'scroll' === [style.overflow, style.overflowX] || this.target !== document.body; scrollBottom = 0; if (hasBottomScroll) { scrollBottom = 15; } height = bounds.height - parseFloat(style.borderTopWidth) - parseFloat(style.borderBottomWidth) - scrollBottom; out = { width: 15, height: height * 0.975 * (height / target.scrollHeight), left: bounds.left + bounds.width - parseFloat(style.borderLeftWidth) - 15 }; fitAdj = 0; if (height < 408 && this.target === document.body) { fitAdj = -0.00011 * Math.pow(height, 2) - 0.00727 * height + 22.58; } if (this.target !== document.body) { out.height = Math.max(out.height, 24); } scrollPercentage = this.target.scrollTop / (target.scrollHeight - height); out.top = scrollPercentage * (height - out.height - fitAdj) + bounds.top + parseFloat(style.borderTopWidth); if (this.target === document.body) { out.height = Math.max(out.height, 24); } return out; } } else { return getBounds(this.target); } }; _Tether.prototype.clearCache = function() { return this._cache = {}; }; _Tether.prototype.cache = function(k, getter) { if (this._cache == null) { this._cache = {}; } if (this._cache[k] == null) { this._cache[k] = getter.call(this); } return this._cache[k]; }; _Tether.prototype.enable = function(position) { if (position == null) { position = true; } addClass(this.target, this.getClass('enabled')); addClass(this.element, this.getClass('enabled')); this.enabled = true; if (this.scrollParent !== document) { this.scrollParent.addEventListener('scroll', this.position); } if (position) { return this.position(); } }; _Tether.prototype.disable = function() { removeClass(this.target, this.getClass('enabled')); removeClass(this.element, this.getClass('enabled')); this.enabled = false; if (this.scrollParent != null) { return this.scrollParent.removeEventListener('scroll', this.position); } }; _Tether.prototype.destroy = function() { var i, tether, _i, _len, _results; this.disable(); _results = []; for (i = _i = 0, _len = tethers.length; _i < _len; i = ++_i) { tether = tethers[i]; if (tether === this) { tethers.splice(i, 1); break; } else { _results.push(void 0); } } return _results; }; _Tether.prototype.updateAttachClasses = function(elementAttach, targetAttach) { var add, all, side, sides, _i, _j, _len, _len1, _ref1, _this = this; if (elementAttach == null) { elementAttach = this.attachment; } if (targetAttach == null) { targetAttach = this.targetAttachment; } sides = ['left', 'top', 'bottom', 'right', 'middle', 'center']; if ((_ref1 = this._addAttachClasses) != null ? _ref1.length : void 0) { this._addAttachClasses.splice(0, this._addAttachClasses.length); } add = this._addAttachClasses != null ? this._addAttachClasses : this._addAttachClasses = []; if (elementAttach.top) { add.push("" + (this.getClass('element-attached')) + "-" + elementAttach.top); } if (elementAttach.left) { add.push("" + (this.getClass('element-attached')) + "-" + elementAttach.left); } if (targetAttach.top) { add.push("" + (this.getClass('target-attached')) + "-" + targetAttach.top); } if (targetAttach.left) { add.push("" + (this.getClass('target-attached')) + "-" + targetAttach.left); } all = []; for (_i = 0, _len = sides.length; _i < _len; _i++) { side = sides[_i]; all.push("" + (this.getClass('element-attached')) + "-" + side); } for (_j = 0, _len1 = sides.length; _j < _len1; _j++) { side = sides[_j]; all.push("" + (this.getClass('target-attached')) + "-" + side); } return defer(function() { if (_this._addAttachClasses == null) { return; } updateClasses(_this.element, _this._addAttachClasses, all); updateClasses(_this.target, _this._addAttachClasses, all); return _this._addAttachClasses = void 0; }); }; _Tether.prototype.position = function(flushChanges) { var elementPos, elementStyle, height, left, manualOffset, manualTargetOffset, module, next, offset, offsetBorder, offsetParent, offsetParentSize, offsetParentStyle, offsetPosition, ret, scrollLeft, scrollTop, scrollbarSize, side, targetAttachment, targetOffset, targetPos, targetSize, top, width, _i, _j, _len, _len1, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _this = this; if (flushChanges == null) { flushChanges = true; } if (!this.enabled) { return; } this.clearCache(); targetAttachment = autoToFixedAttachment(this.targetAttachment, this.attachment); this.updateAttachClasses(this.attachment, targetAttachment); elementPos = this.cache('element-bounds', function() { return getBounds(_this.element); }); width = elementPos.width, height = elementPos.height; if (width === 0 && height === 0 && (this.lastSize != null)) { _ref1 = this.lastSize, width = _ref1.width, height = _ref1.height; } else { this.lastSize = { width: width, height: height }; } targetSize = targetPos = this.cache('target-bounds', function() { return _this.getTargetBounds(); }); offset = offsetToPx(attachmentToOffset(this.attachment), { width: width, height: height }); targetOffset = offsetToPx(attachmentToOffset(targetAttachment), targetSize); manualOffset = offsetToPx(this.offset, { width: width, height: height }); manualTargetOffset = offsetToPx(this.targetOffset, targetSize); offset = addOffset(offset, manualOffset); targetOffset = addOffset(targetOffset, manualTargetOffset); left = targetPos.left + targetOffset.left - offset.left; top = targetPos.top + targetOffset.top - offset.top; _ref2 = Tether.modules; for (_i = 0, _len = _ref2.length; _i < _len; _i++) { module = _ref2[_i]; ret = module.position.call(this, { left: left, top: top, targetAttachment: targetAttachment, targetPos: targetPos, attachment: this.attachment, elementPos: elementPos, offset: offset, targetOffset: targetOffset, manualOffset: manualOffset, manualTargetOffset: manualTargetOffset, scrollbarSize: scrollbarSize }); if ((ret == null) || typeof ret !== 'object') { continue; } else if (ret === false) { return false; } else { top = ret.top, left = ret.left; } } next = { page: { top: top, left: left }, viewport: { top: top - pageYOffset, bottom: pageYOffset - top - height + innerHeight, left: left - pageXOffset, right: pageXOffset - left - width + innerWidth } }; if (document.body.scrollWidth > window.innerWidth) { scrollbarSize = this.cache('scrollbar-size', getScrollBarSize); next.viewport.bottom -= scrollbarSize.height; } if (document.body.scrollHeight > window.innerHeight) { scrollbarSize = this.cache('scrollbar-size', getScrollBarSize); next.viewport.right -= scrollbarSize.width; } if (((_ref3 = document.body.style.position) !== '' && _ref3 !== 'static') || ((_ref4 = document.body.parentElement.style.position) !== '' && _ref4 !== 'static')) { next.page.bottom = document.body.scrollHeight - top - height; next.page.right = document.body.scrollWidth - left - width; } if (((_ref5 = this.options.optimizations) != null ? _ref5.moveElement : void 0) !== false && (this.targetModifier == null)) { offsetParent = this.cache('target-offsetparent', function() { return getOffsetParent(_this.target); }); offsetPosition = this.cache('target-offsetparent-bounds', function() { return getBounds(offsetParent); }); offsetParentStyle = getComputedStyle(offsetParent); elementStyle = getComputedStyle(this.element); offsetParentSize = offsetPosition; offsetBorder = {}; _ref6 = ['Top', 'Left', 'Bottom', 'Right']; for (_j = 0, _len1 = _ref6.length; _j < _len1; _j++) { side = _ref6[_j]; offsetBorder[side.toLowerCase()] = parseFloat(offsetParentStyle["border" + side + "Width"]); } offsetPosition.right = document.body.scrollWidth - offsetPosition.left - offsetParentSize.width + offsetBorder.right; offsetPosition.bottom = document.body.scrollHeight - offsetPosition.top - offsetParentSize.height + offsetBorder.bottom; if (next.page.top >= (offsetPosition.top + offsetBorder.top) && next.page.bottom >= offsetPosition.bottom) { if (next.page.left >= (offsetPosition.left + offsetBorder.left) && next.page.right >= offsetPosition.right) { scrollTop = offsetParent.scrollTop; scrollLeft = offsetParent.scrollLeft; next.offset = { top: next.page.top - offsetPosition.top + scrollTop - offsetBorder.top, left: next.page.left - offsetPosition.left + scrollLeft - offsetBorder.left }; } } } this.move(next); this.history.unshift(next); if (this.history.length > 3) { this.history.pop(); } if (flushChanges) { flush(); } return true; }; _Tether.prototype.move = function(position) { var css, elVal, found, key, moved, offsetParent, point, same, transcribe, type, val, write, writeCSS, _i, _len, _ref1, _ref2, _this = this; if (this.element.parentNode == null) { return; } same = {}; for (type in position) { same[type] = {}; for (key in position[type]) { found = false; _ref1 = this.history; for (_i = 0, _len = _ref1.length; _i < _len; _i++) { point = _ref1[_i]; if (!within((_ref2 = point[type]) != null ? _ref2[key] : void 0, position[type][key])) { found = true; break; } } if (!found) { same[type][key] = true; } } } css = { top: '', left: '', right: '', bottom: '' }; transcribe = function(same, pos) { var xPos, yPos, _ref3; if (((_ref3 = _this.options.optimizations) != null ? _ref3.gpu : void 0) !== false) { if (same.top) { css.top = 0; yPos = pos.top; } else { css.bottom = 0; yPos = -pos.bottom; } if (same.left) { css.left = 0; xPos = pos.left; } else { css.right = 0; xPos = -pos.right; } css[transformKey] = "translateX(" + (Math.round(xPos)) + "px) translateY(" + (Math.round(yPos)) + "px)"; if (transformKey !== 'msTransform') { return css[transformKey] += " translateZ(0)"; } } else { if (same.top) { css.top = "" + pos.top + "px"; } else { css.bottom = "" + pos.bottom + "px"; } if (same.left) { return css.left = "" + pos.left + "px"; } else { return css.right = "" + pos.right + "px"; } } }; moved = false; if ((same.page.top || same.page.bottom) && (same.page.left || same.page.right)) { css.position = 'absolute'; transcribe(same.page, position.page); } else if ((same.viewport.top || same.viewport.bottom) && (same.viewport.left || same.viewport.right)) { css.position = 'fixed'; transcribe(same.viewport, position.viewport); } else if ((same.offset != null) && same.offset.top && same.offset.left) { css.position = 'absolute'; offsetParent = this.cache('target-offsetparent', function() { return getOffsetParent(_this.target); }); if (getOffsetParent(this.element) !== offsetParent) { defer(function() { _this.element.parentNode.removeChild(_this.element); return offsetParent.appendChild(_this.element); }); } transcribe(same.offset, position.offset); moved = true; } else { css.position = 'absolute'; transcribe({ top: true, left: true }, position.page); } if (!moved && this.element.parentNode.tagName !== 'BODY') { this.element.parentNode.removeChild(this.element); document.body.appendChild(this.element); } writeCSS = {}; write = false; for (key in css) { val = css[key]; elVal = this.element.style[key]; if (elVal !== '' && val !== '' && (key === 'top' || key === 'left' || key === 'bottom' || key === 'right')) { elVal = parseFloat(elVal); val = parseFloat(val); } if (elVal !== val) { write = true; writeCSS[key] = css[key]; } } if (write) { return defer(function() { return extend(_this.element.style, writeCSS); }); } }; return _Tether; })(); Tether.position = position; this.Tether = extend(_Tether, Tether); }).call(this); (function() { var BOUNDS_FORMAT, MIRROR_ATTACH, defer, extend, getBoundingRect, getBounds, getOuterSize, getSize, updateClasses, _ref, __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; _ref = this.Tether.Utils, getOuterSize = _ref.getOuterSize, getBounds = _ref.getBounds, getSize = _ref.getSize, extend = _ref.extend, updateClasses = _ref.updateClasses, defer = _ref.defer; MIRROR_ATTACH = { left: 'right', right: 'left', top: 'bottom', bottom: 'top', middle: 'middle' }; BOUNDS_FORMAT = ['left', 'top', 'right', 'bottom']; getBoundingRect = function(tether, to) { var i, pos, side, size, style, _i, _len; if (to === 'scrollParent') { to = tether.scrollParent; } else if (to === 'window') { to = [pageXOffset, pageYOffset, innerWidth + pageXOffset, innerHeight + pageYOffset]; } if (to === document) { to = to.documentElement; } if (to.nodeType != null) { pos = size = getBounds(to); style = getComputedStyle(to); to = [pos.left, pos.top, size.width + pos.left, size.height + pos.top]; for (i = _i = 0, _len = BOUNDS_FORMAT.length; _i < _len; i = ++_i) { side = BOUNDS_FORMAT[i]; side = side[0].toUpperCase() + side.substr(1); if (side === 'Top' || side === 'Left') { to[i] += parseFloat(style["border" + side + "Width"]); } else { to[i] -= parseFloat(style["border" + side + "Width"]); } } } return to; }; this.Tether.modules.push({ position: function(_arg) { var addClasses, allClasses, attachment, bounds, changeAttachX, changeAttachY, cls, constraint, eAttachment, height, left, oob, oobClass, p, pin, pinned, pinnedClass, removeClass, side, tAttachment, targetAttachment, targetHeight, targetSize, targetWidth, to, top, width, _i, _j, _k, _l, _len, _len1, _len2, _len3, _len4, _len5, _m, _n, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _this = this; top = _arg.top, left = _arg.left, targetAttachment = _arg.targetAttachment; if (!this.options.constraints) { return true; } removeClass = function(prefix) { var side, _i, _len, _results; _this.removeClass(prefix); _results = []; for (_i = 0, _len = BOUNDS_FORMAT.length; _i < _len; _i++) { side = BOUNDS_FORMAT[_i]; _results.push(_this.removeClass("" + prefix + "-" + side)); } return _results; }; _ref1 = this.cache('element-bounds', function() { return getBounds(_this.element); }), height = _ref1.height, width = _ref1.width; if (width === 0 && height === 0 && (this.lastSize != null)) { _ref2 = this.lastSize, width = _ref2.width, height = _ref2.height; } targetSize = this.cache('target-bounds', function() { return _this.getTargetBounds(); }); targetHeight = targetSize.height; targetWidth = targetSize.width; tAttachment = {}; eAttachment = {}; allClasses = [this.getClass('pinned'), this.getClass('out-of-bounds')]; _ref3 = this.options.constraints; for (_i = 0, _len = _ref3.length; _i < _len; _i++) { constraint = _ref3[_i]; if (constraint.outOfBoundsClass) { allClasses.push(constraint.outOfBoundsClass); } if (constraint.pinnedClass) { allClasses.push(constraint.pinnedClass); } } for (_j = 0, _len1 = allClasses.length; _j < _len1; _j++) { cls = allClasses[_j]; _ref4 = ['left', 'top', 'right', 'bottom']; for (_k = 0, _len2 = _ref4.length; _k < _len2; _k++) { side = _ref4[_k]; allClasses.push("" + cls + "-" + side); } } addClasses = []; tAttachment = extend({}, targetAttachment); eAttachment = extend({}, this.attachment); _ref5 = this.options.constraints; for (_l = 0, _len3 = _ref5.length; _l < _len3; _l++) { constraint = _ref5[_l]; to = constraint.to, attachment = constraint.attachment, pin = constraint.pin; if (attachment == null) { attachment = ''; } if (__indexOf.call(attachment, ' ') >= 0) { _ref6 = attachment.split(' '), changeAttachY = _ref6[0], changeAttachX = _ref6[1]; } else { changeAttachX = changeAttachY = attachment; } bounds = getBoundingRect(this, to); if (changeAttachY === 'target' || changeAttachY === 'both') { if (top < bounds[1] && tAttachment.top === 'top') { top += targetHeight; tAttachment.top = 'bottom'; } if (top + height > bounds[3] && tAttachment.top === 'bottom') { top -= targetHeight; tAttachment.top = 'top'; } } if (changeAttachY === 'together') { if (top < bounds[1] && tAttachment.top === 'top') { if (eAttachment.top === 'bottom') { top += targetHeight; tAttachment.top = 'bottom'; top += height; eAttachment.top = 'top'; } else if (eAttachment.top === 'top') { top += targetHeight; tAttachment.top = 'bottom'; top -= height; eAttachment.top = 'bottom'; } } if (top + height > bounds[3] && tAttachment.top === 'bottom') { if (eAttachment.top === 'top') { top -= targetHeight; tAttachment.top = 'top'; top -= height; eAttachment.top = 'bottom'; } else if (eAttachment.top === 'bottom') { top -= targetHeight; tAttachment.top = 'top'; top += height; eAttachment.top = 'top'; } } if (tAttachment.top === 'middle') { if (top + height > bounds[3] && eAttachment.top === 'top') { top -= height; eAttachment.top = 'bottom'; } else if (top < bounds[1] && eAttachment.top === 'bottom') { top += height; eAttachment.top = 'top'; } } } if (changeAttachX === 'target' || changeAttachX === 'both') { if (left < bounds[0] && tAttachment.left === 'left') { left += targetWidth; tAttachment.left = 'right'; } if (left + width > bounds[2] && tAttachment.left === 'right') { left -= targetWidth; tAttachment.left = 'left'; } } if (changeAttachX === 'together') { if (left < bounds[0] && tAttachment.left === 'left') { if (eAttachment.left === 'right') { left += targetWidth; tAttachment.left = 'right'; left += width; eAttachment.left = 'left'; } else if (eAttachment.left === 'left') { left += targetWidth; tAttachment.left = 'right'; left -= width; eAttachment.left = 'right'; } } else if (left + width > bounds[2] && tAttachment.left === 'right') { if (eAttachment.left === 'left') { left -= targetWidth; tAttachment.left = 'left'; left -= width; eAttachment.left = 'right'; } else if (eAttachment.left === 'right') { left -= targetWidth; tAttachment.left = 'left'; left += width; eAttachment.left = 'left'; } } else if (tAttachment.left === 'center') { if (left + width > bounds[2] && eAttachment.left === 'left') { left -= width; eAttachment.left = 'right'; } else if (left < bounds[0] && eAttachment.left === 'right') { left += width; eAttachment.left = 'left'; } } } if (changeAttachY === 'element' || changeAttachY === 'both') { if (top < bounds[1] && eAttachment.top === 'bottom') { top += height; eAttachment.top = 'top'; } if (top + height > bounds[3] && eAttachment.top === 'top') { top -= height; eAttachment.top = 'bottom'; } } if (changeAttachX === 'element' || changeAttachX === 'both') { if (left < bounds[0] && eAttachment.left === 'right') { left += width; eAttachment.left = 'left'; } if (left + width > bounds[2] && eAttachment.left === 'left') { left -= width; eAttachment.left = 'right'; } } if (typeof pin === 'string') { pin = (function() { var _len4, _m, _ref7, _results; _ref7 = pin.split(','); _results = []; for (_m = 0, _len4 = _ref7.length; _m < _len4; _m++) { p = _ref7[_m]; _results.push(p.trim()); } return _results; })(); } else if (pin === true) { pin = ['top', 'left', 'right', 'bottom']; } pin || (pin = []); pinned = []; oob = []; if (top < bounds[1]) { if (__indexOf.call(pin, 'top') >= 0) { top = bounds[1]; pinned.push('top'); } else { oob.push('top'); } } if (top + height > bounds[3]) { if (__indexOf.call(pin, 'bottom') >= 0) { top = bounds[3] - height; pinned.push('bottom'); } else { oob.push('bottom'); } } if (left < bounds[0]) { if (__indexOf.call(pin, 'left') >= 0) { left = bounds[0]; pinned.push('left'); } else { oob.push('left'); } } if (left + width > bounds[2]) { if (__indexOf.call(pin, 'right') >= 0) { left = bounds[2] - width; pinned.push('right'); } else { oob.push('right'); } } if (pinned.length) { pinnedClass = (_ref7 = this.options.pinnedClass) != null ? _ref7 : this.getClass('pinned'); addClasses.push(pinnedClass); for (_m = 0, _len4 = pinned.length; _m < _len4; _m++) { side = pinned[_m]; addClasses.push("" + pinnedClass + "-" + side); } } if (oob.length) { oobClass = (_ref8 = this.options.outOfBoundsClass) != null ? _ref8 : this.getClass('out-of-bounds'); addClasses.push(oobClass); for (_n = 0, _len5 = oob.length; _n < _len5; _n++) { side = oob[_n]; addClasses.push("" + oobClass + "-" + side); } } if (__indexOf.call(pinned, 'left') >= 0 || __indexOf.call(pinned, 'right') >= 0) { eAttachment.left = tAttachment.left = false; } if (__indexOf.call(pinned, 'top') >= 0 || __indexOf.call(pinned, 'bottom') >= 0) { eAttachment.top = tAttachment.top = false; } if (tAttachment.top !== targetAttachment.top || tAttachment.left !== targetAttachment.left || eAttachment.top !== this.attachment.top || eAttachment.left !== this.attachment.left) { this.updateAttachClasses(eAttachment, tAttachment); } } defer(function() { updateClasses(_this.target, addClasses, allClasses); return updateClasses(_this.element, addClasses, allClasses); }); return { top: top, left: left }; } }); }).call(this); (function() { var defer, getBounds, updateClasses, _ref; _ref = this.Tether.Utils, getBounds = _ref.getBounds, updateClasses = _ref.updateClasses, defer = _ref.defer; this.Tether.modules.push({ position: function(_arg) { var abutted, addClasses, allClasses, bottom, height, left, right, side, sides, targetPos, top, width, _i, _j, _k, _l, _len, _len1, _len2, _len3, _ref1, _ref2, _ref3, _ref4, _ref5, _this = this; top = _arg.top, left = _arg.left; _ref1 = this.cache('element-bounds', function() { return getBounds(_this.element); }), height = _ref1.height, width = _ref1.width; targetPos = this.getTargetBounds(); bottom = top + height; right = left + width; abutted = []; if (top <= targetPos.bottom && bottom >= targetPos.top) { _ref2 = ['left', 'right']; for (_i = 0, _len = _ref2.length; _i < _len; _i++) { side = _ref2[_i]; if ((_ref3 = targetPos[side]) === left || _ref3 === right) { abutted.push(side); } } } if (left <= targetPos.right && right >= targetPos.left) { _ref4 = ['top', 'bottom']; for (_j = 0, _len1 = _ref4.length; _j < _len1; _j++) { side = _ref4[_j]; if ((_ref5 = targetPos[side]) === top || _ref5 === bottom) { abutted.push(side); } } } allClasses = []; addClasses = []; sides = ['left', 'top', 'right', 'bottom']; allClasses.push(this.getClass('abutted')); for (_k = 0, _len2 = sides.length; _k < _len2; _k++) { side = sides[_k]; allClasses.push("" + (this.getClass('abutted')) + "-" + side); } if (abutted.length) { addClasses.push(this.getClass('abutted')); } for (_l = 0, _len3 = abutted.length; _l < _len3; _l++) { side = abutted[_l]; addClasses.push("" + (this.getClass('abutted')) + "-" + side); } defer(function() { updateClasses(_this.target, addClasses, allClasses); return updateClasses(_this.element, addClasses, allClasses); }); return true; } }); }).call(this); (function() { this.Tether.modules.push({ position: function(_arg) { var left, result, shift, shiftLeft, shiftTop, top, _ref; top = _arg.top, left = _arg.left; if (!this.options.shift) { return; } result = function(val) { if (typeof val === 'function') { return val.call(this, { top: top, left: left }); } else { return val; } }; shift = result(this.options.shift); if (typeof shift === 'string') { shift = shift.split(' '); shift[1] || (shift[1] = shift[0]); shiftTop = shift[0], shiftLeft = shift[1]; shiftTop = parseFloat(shiftTop, 10); shiftLeft = parseFloat(shiftLeft, 10); } else { _ref = [shift.top, shift.left], shiftTop = _ref[0], shiftLeft = _ref[1]; } top += shiftTop; left += shiftLeft; return { top: top, left: left }; } }); }).call(this); return this.Tether; })); /***/ }, /* 28 */ /***/ function(module, exports, __webpack_require__) { var React = __webpack_require__(12); var Notification = React.createClass({displayName: "Notification", getDefaultProps: function () { return { position: 'top-right', color: 'success', title: null, image: null, content: null }; }, render: function () { var classes = 'notification ' + this.props.position + ' ' + this.props.color; classes += ' ' + (this.props.className || ''); var imageNode = null; if (this.props.image) { imageNode = ( React.createElement("div", {className: "notification-icon"}, React.createElement("img", {src: "{{ image }}"}) ) ); } return ( React.createElement("div", {id: this.props.id, "data-closable": true, className: classes}, React.createElement("a", {href: "#", className: "close-button", onClick: this.props.closeHandler}, "×"), imageNode, React.createElement("div", {className: "notification-content"}, React.createElement("h1", null, this.props.title), React.createElement("p", null, this.props.children) ) ) ); } }); module.exports = Notification; /***/ }, /* 29 */ /***/ function(module, exports, __webpack_require__) { /** * Copyright 2013-2014, 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. * * @providesModule ReactTransitionEvents */ "use strict"; var ExecutionEnvironment = __webpack_require__(25); /** * EVENT_NAME_MAP is used to determine which event fired when a * transition/animation ends, based on the style property used to * define that event. */ var EVENT_NAME_MAP = { transitionend: { 'transition': 'transitionend', 'WebkitTransition': 'webkitTransitionEnd', 'MozTransition': 'mozTransitionEnd', 'OTransition': 'oTransitionEnd', 'msTransition': 'MSTransitionEnd' }, animationend: { 'animation': 'animationend', 'WebkitAnimation': 'webkitAnimationEnd', 'MozAnimation': 'mozAnimationEnd', 'OAnimation': 'oAnimationEnd', 'msAnimation': 'MSAnimationEnd' } }; var endEvents = []; function detectEvents() { var testEl = document.createElement('div'); var style = testEl.style; // On some platforms, in particular some releases of Android 4.x, // the un-prefixed "animation" and "transition" properties are defined on the // style object but the events that fire will still be prefixed, so we need // to check if the un-prefixed events are useable, and if not remove them // from the map if (!('AnimationEvent' in window)) { delete EVENT_NAME_MAP.animationend.animation; } if (!('TransitionEvent' in window)) { delete EVENT_NAME_MAP.transitionend.transition; } for (var baseEventName in EVENT_NAME_MAP) { var baseEvents = EVENT_NAME_MAP[baseEventName]; for (var styleName in baseEvents) { if (styleName in style) { endEvents.push(baseEvents[styleName]); break; } } } } if (ExecutionEnvironment.canUseDOM) { detectEvents(); } // We use the raw {add|remove}EventListener() call because EventListener // does not know how to remove event listeners and we really should // clean up. Also, these events are not triggered in older browsers // so we should be A-OK here. function addEventListener(node, eventName, eventListener) { node.addEventListener(eventName, eventListener, false); } function removeEventListener(node, eventName, eventListener) { node.removeEventListener(eventName, eventListener, false); } var ReactTransitionEvents = { addEndEventListener: function(node, eventListener) { if (endEvents.length === 0) { // If CSS transitions are not supported, trigger an "end animation" // event immediately. window.setTimeout(eventListener, 0); return; } endEvents.forEach(function(endEvent) { addEventListener(node, endEvent, eventListener); }); }, removeEndEventListener: function(node, eventListener) { if (endEvents.length === 0) { return; } endEvents.forEach(function(endEvent) { removeEventListener(node, endEvent, eventListener); }); } }; module.exports = ReactTransitionEvents; /***/ }, /* 30 */ /***/ function(module, exports, __webpack_require__) { /** * Copyright 2013-2014, 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. * * @providesModule CSSCore * @typechecks */ var invariant = __webpack_require__(37); /** * The CSSCore module specifies the API (and implements most of the methods) * that should be used when dealing with the display of elements (via their * CSS classes and visibility on screen. It is an API focused on mutating the * display and not reading it as no logical state should be encoded in the * display of elements. */ var CSSCore = { /** * Adds the class passed in to the element if it doesn't already have it. * * @param {DOMElement} element the element to set the class on * @param {string} className the CSS className * @return {DOMElement} the element passed in */ addClass: function(element, className) { ("production" !== (undefined) ? invariant( !/\s/.test(className), 'CSSCore.addClass takes only a single class name. "%s" contains ' + 'multiple classes.', className ) : invariant(!/\s/.test(className))); if (className) { if (element.classList) { element.classList.add(className); } else if (!CSSCore.hasClass(element, className)) { element.className = element.className + ' ' + className; } } return element; }, /** * Removes the class passed in from the element * * @param {DOMElement} element the element to set the class on * @param {string} className the CSS className * @return {DOMElement} the element passed in */ removeClass: function(element, className) { ("production" !== (undefined) ? invariant( !/\s/.test(className), 'CSSCore.removeClass takes only a single class name. "%s" contains ' + 'multiple classes.', className ) : invariant(!/\s/.test(className))); if (className) { if (element.classList) { element.classList.remove(className); } else if (CSSCore.hasClass(element, className)) { element.className = element.className .replace(new RegExp('(^|\\s)' + className + '(?:\\s|$)', 'g'), '$1') .replace(/\s+/g, ' ') // multiple spaces to one .replace(/^\s*|\s*$/g, ''); // trim the ends } } return element; }, /** * Helper to add or remove a class from an element based on a condition. * * @param {DOMElement} element the element to set the class on * @param {string} className the CSS className * @param {*} bool condition to whether to add or remove the class * @return {DOMElement} the element passed in */ conditionClass: function(element, className, bool) { return (bool ? CSSCore.addClass : CSSCore.removeClass)(element, className); }, /** * Tests whether the element has the class specified. * * @param {DOMNode|DOMWindow} element the element to set the class on * @param {string} className the CSS className * @return {boolean} true if the element has the class, false if not */ hasClass: function(element, className) { ("production" !== (undefined) ? invariant( !/\s/.test(className), 'CSS.hasClass takes only a single class name.' ) : invariant(!/\s/.test(className))); if (element.classList) { return !!className && element.classList.contains(className); } return (' ' + element.className + ' ').indexOf(' ' + className + ' ') > -1; } }; module.exports = CSSCore; /***/ }, /* 31 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; function ToObject(val) { if (val == null) { throw new TypeError('Object.assign cannot be called with null or undefined'); } return Object(val); } module.exports = Object.assign || function (target, source) { var from; var keys; var to = ToObject(target); for (var s = 1; s < arguments.length; s++) { from = arguments[s]; keys = Object.keys(Object(from)); for (var i = 0; i < keys.length; i++) { to[keys[i]] = from[keys[i]]; } } return to; }; /***/ }, /* 32 */ /***/ function(module, exports, __webpack_require__) { /** * Copyright 2013-2014, 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. * * @providesModule ReactPropTransferer */ "use strict"; var assign = __webpack_require__(44); var emptyFunction = __webpack_require__(43); var invariant = __webpack_require__(37); var joinClasses = __webpack_require__(45); var warning = __webpack_require__(35); var didWarn = false; /** * Creates a transfer strategy that will merge prop values using the supplied * `mergeStrategy`. If a prop was previously unset, this just sets it. * * @param {function} mergeStrategy * @return {function} */ function createTransferStrategy(mergeStrategy) { return function(props, key, value) { if (!props.hasOwnProperty(key)) { props[key] = value; } else { props[key] = mergeStrategy(props[key], value); } }; } var transferStrategyMerge = createTransferStrategy(function(a, b) { // `merge` overrides the first object's (`props[key]` above) keys using the // second object's (`value`) keys. An object's style's existing `propA` would // get overridden. Flip the order here. return assign({}, b, a); }); /** * Transfer strategies dictate how props are transferred by `transferPropsTo`. * NOTE: if you add any more exceptions to this list you should be sure to * update `cloneWithProps()` accordingly. */ var TransferStrategies = { /** * Never transfer `children`. */ children: emptyFunction, /** * Transfer the `className` prop by merging them. */ className: createTransferStrategy(joinClasses), /** * Transfer the `style` prop (which is an object) by merging them. */ style: transferStrategyMerge }; /** * Mutates the first argument by transferring the properties from the second * argument. * * @param {object} props * @param {object} newProps * @return {object} */ function transferInto(props, newProps) { for (var thisKey in newProps) { if (!newProps.hasOwnProperty(thisKey)) { continue; } var transferStrategy = TransferStrategies[thisKey]; if (transferStrategy && TransferStrategies.hasOwnProperty(thisKey)) { transferStrategy(props, thisKey, newProps[thisKey]); } else if (!props.hasOwnProperty(thisKey)) { props[thisKey] = newProps[thisKey]; } } return props; } /** * ReactPropTransferer are capable of transferring props to another component * using a `transferPropsTo` method. * * @class ReactPropTransferer */ var ReactPropTransferer = { TransferStrategies: TransferStrategies, /** * Merge two props objects using TransferStrategies. * * @param {object} oldProps original props (they take precedence) * @param {object} newProps new props to merge in * @return {object} a new object containing both sets of props merged. */ mergeProps: function(oldProps, newProps) { return transferInto(assign({}, oldProps), newProps); }, /** * @lends {ReactPropTransferer.prototype} */ Mixin: { /** * Transfer props from this component to a target component. * * Props that do not have an explicit transfer strategy will be transferred * only if the target component does not already have the prop set. * * This is usually used to pass down props to a returned root component. * * @param {ReactElement} element Component receiving the properties. * @return {ReactElement} The supplied `component`. * @final * @protected */ transferPropsTo: function(element) { ("production" !== (undefined) ? invariant( element._owner === this, '%s: You can\'t call transferPropsTo() on a component that you ' + 'don\'t own, %s. This usually means you are calling ' + 'transferPropsTo() on a component passed in as props or children.', this.constructor.displayName, typeof element.type === 'string' ? element.type : element.type.displayName ) : invariant(element._owner === this)); if ("production" !== (undefined)) { if (!didWarn) { didWarn = true; ("production" !== (undefined) ? warning( false, 'transferPropsTo is deprecated. ' + 'See http://fb.me/react-transferpropsto for more information.' ) : null); } } // Because elements are immutable we have to merge into the existing // props object rather than clone it. transferInto(element.props, this.props); return element; } } }; module.exports = ReactPropTransferer; /***/ }, /* 33 */ /***/ function(module, exports, __webpack_require__) { /** * Copyright 2014, 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. * * @providesModule ReactElement */ "use strict"; var ReactContext = __webpack_require__(41); var ReactCurrentOwner = __webpack_require__(42); var warning = __webpack_require__(35); var RESERVED_PROPS = { key: true, ref: true }; /** * Warn for mutations. * * @internal * @param {object} object * @param {string} key */ function defineWarningProperty(object, key) { Object.defineProperty(object, key, { configurable: false, enumerable: true, get: function() { if (!this._store) { return null; } return this._store[key]; }, set: function(value) { ("production" !== (undefined) ? warning( false, 'Don\'t set the ' + key + ' property of the component. ' + 'Mutate the existing props object instead.' ) : null); this._store[key] = value; } }); } /** * This is updated to true if the membrane is successfully created. */ var useMutationMembrane = false; /** * Warn for mutations. * * @internal * @param {object} element */ function defineMutationMembrane(prototype) { try { var pseudoFrozenProperties = { props: true }; for (var key in pseudoFrozenProperties) { defineWarningProperty(prototype, key); } useMutationMembrane = true; } catch (x) { // IE will fail on defineProperty } } /** * Base constructor for all React elements. This is only used to make this * work with a dynamic instanceof check. Nothing should live on this prototype. * * @param {*} type * @param {string|object} ref * @param {*} key * @param {*} props * @internal */ var ReactElement = function(type, key, ref, owner, context, props) { // Built-in properties that belong on the element this.type = type; this.key = key; this.ref = ref; // Record the component responsible for creating this element. this._owner = owner; // TODO: Deprecate withContext, and then the context becomes accessible // through the owner. this._context = context; if ("production" !== (undefined)) { // The validation flag and props are currently mutative. We put them on // an external backing store so that we can freeze the whole object. // This can be replaced with a WeakMap once they are implemented in // commonly used development environments. this._store = { validated: false, props: props }; // We're not allowed to set props directly on the object so we early // return and rely on the prototype membrane to forward to the backing // store. if (useMutationMembrane) { Object.freeze(this); return; } } this.props = props; }; // We intentionally don't expose the function on the constructor property. // ReactElement should be indistinguishable from a plain object. ReactElement.prototype = { _isReactElement: true }; if ("production" !== (undefined)) { defineMutationMembrane(ReactElement.prototype); } ReactElement.createElement = function(type, config, children) { var propName; // Reserved names are extracted var props = {}; var key = null; var ref = null; if (config != null) { ref = config.ref === undefined ? null : config.ref; if ("production" !== (undefined)) { ("production" !== (undefined) ? warning( config.key !== null, 'createElement(...): Encountered component with a `key` of null. In ' + 'a future version, this will be treated as equivalent to the string ' + '\'null\'; instead, provide an explicit key or use undefined.' ) : null); } // TODO: Change this back to `config.key === undefined` key = config.key == null ? null : '' + config.key; // Remaining properties are added to a new props object for (propName in config) { if (config.hasOwnProperty(propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { props[propName] = config[propName]; } } } // Children can be more than one argument, and those are transferred onto // the newly allocated props object. var childrenLength = arguments.length - 2; if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 2]; } props.children = childArray; } // Resolve default props if (type && type.defaultProps) { var defaultProps = type.defaultProps; for (propName in defaultProps) { if (typeof props[propName] === 'undefined') { props[propName] = defaultProps[propName]; } } } return new ReactElement( type, key, ref, ReactCurrentOwner.current, ReactContext.current, props ); }; ReactElement.createFactory = function(type) { var factory = ReactElement.createElement.bind(null, type); // Expose the type on the factory and the prototype so that it can be // easily accessed on elements. E.g. <Foo />.type === Foo.type. // This should not be named `constructor` since this may not be the function // that created the element, and it may not even be a constructor. factory.type = type; return factory; }; ReactElement.cloneAndReplaceProps = function(oldElement, newProps) { var newElement = new ReactElement( oldElement.type, oldElement.key, oldElement.ref, oldElement._owner, oldElement._context, newProps ); if ("production" !== (undefined)) { // If the key on the original is valid, then the clone is valid newElement._store.validated = oldElement._store.validated; } return newElement; }; /** * @param {?object} object * @return {boolean} True if `object` is a valid component. * @final */ ReactElement.isValidElement = function(object) { // ReactTestUtils is often used outside of beforeEach where as React is // within it. This leads to two different instances of React on the same // page. To identify a element from a different React instance we use // a flag instead of an instanceof check. var isElement = !!(object && object._isReactElement); // if (isElement && !(object instanceof ReactElement)) { // This is an indicator that you're using multiple versions of React at the // same time. This will screw with ownership and stuff. Fix it, please. // TODO: We could possibly warn here. // } return isElement; }; module.exports = ReactElement; /***/ }, /* 34 */ /***/ function(module, exports, __webpack_require__) { /** * Copyright 2013-2014, 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. * * @providesModule keyOf */ /** * Allows extraction of a minified key. Let's the build system minify keys * without loosing the ability to dynamically use key strings as values * themselves. Pass in an object with a single key/val pair and it will return * you the string key of that single record. Suppose you want to grab the * value for a key 'className' inside of an object. Key/val minification may * have aliased that key to be 'xa12'. keyOf({className: null}) will return * 'xa12' in that case. Resolve keys you want to use once at startup time, then * reuse those resolutions. */ var keyOf = function(oneKeyObj) { var key; for (key in oneKeyObj) { if (!oneKeyObj.hasOwnProperty(key)) { continue; } return key; } return null; }; module.exports = keyOf; /***/ }, /* 35 */ /***/ function(module, exports, __webpack_require__) { /** * Copyright 2014, 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. * * @providesModule warning */ "use strict"; var emptyFunction = __webpack_require__(43); /** * Similar to invariant but only logs a warning if the condition is not met. * This can be used to log issues in development environments in critical * paths. Removing the logging code for production environments will keep the * same logic and follow the same code paths. */ var warning = emptyFunction; if ("production" !== (undefined)) { warning = function(condition, format ) {for (var args=[],$__0=2,$__1=arguments.length;$__0<$__1;$__0++) args.push(arguments[$__0]); if (format === undefined) { throw new Error( '`warning(condition, format, ...args)` requires a warning ' + 'message argument' ); } if (!condition) { var argIndex = 0; console.warn('Warning: ' + format.replace(/%s/g, function() {return args[argIndex++];})); } }; } module.exports = warning; /***/ }, /* 36 */ /***/ function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* Copyright (c) 2010,2011,2012,2013,2014 Morgan Roderick http://roderick.dk License: MIT - http://mrgnrdrck.mit-license.org https://github.com/mroderick/PubSubJS */ /*jslint white:true, plusplus:true, stupid:true*/ /*global setTimeout, module, exports, define, require, window */ (function (root, factory){ 'use strict'; if (true){ // AMD. Register as an anonymous module. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports], __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__)); } else if (typeof exports === 'object'){ // CommonJS factory(exports); } else { // Browser globals factory((root.PubSub = {})); } }(( typeof window === 'object' && window ) || this, function (PubSub){ 'use strict'; var messages = {}, lastUid = -1; function hasKeys(obj){ var key; for (key in obj){ if ( obj.hasOwnProperty(key) ){ return true; } } return false; } /** * Returns a function that throws the passed exception, for use as argument for setTimeout * @param { Object } ex An Error object */ function throwException( ex ){ return function reThrowException(){ throw ex; }; } function callSubscriberWithDelayedExceptions( subscriber, message, data ){ try { subscriber( message, data ); } catch( ex ){ setTimeout( throwException( ex ), 0); } } function callSubscriberWithImmediateExceptions( subscriber, message, data ){ subscriber( message, data ); } function deliverMessage( originalMessage, matchedMessage, data, immediateExceptions ){ var subscribers = messages[matchedMessage], callSubscriber = immediateExceptions ? callSubscriberWithImmediateExceptions : callSubscriberWithDelayedExceptions, s; if ( !messages.hasOwnProperty( matchedMessage ) ) { return; } for (s in subscribers){ if ( subscribers.hasOwnProperty(s)){ callSubscriber( subscribers[s], originalMessage, data ); } } } function createDeliveryFunction( message, data, immediateExceptions ){ return function deliverNamespaced(){ var topic = String( message ), position = topic.lastIndexOf( '.' ); // deliver the message as it is now deliverMessage(message, message, data, immediateExceptions); // trim the hierarchy and deliver message to each level while( position !== -1 ){ topic = topic.substr( 0, position ); position = topic.lastIndexOf('.'); deliverMessage( message, topic, data ); } }; } function messageHasSubscribers( message ){ var topic = String( message ), found = Boolean(messages.hasOwnProperty( topic ) && hasKeys(messages[topic])), position = topic.lastIndexOf( '.' ); while ( !found && position !== -1 ){ topic = topic.substr( 0, position ); position = topic.lastIndexOf( '.' ); found = Boolean(messages.hasOwnProperty( topic ) && hasKeys(messages[topic])); } return found; } function publish( message, data, sync, immediateExceptions ){ var deliver = createDeliveryFunction( message, data, immediateExceptions ), hasSubscribers = messageHasSubscribers( message ); if ( !hasSubscribers ){ return false; } if ( sync === true ){ deliver(); } else { setTimeout( deliver, 0 ); } return true; } /** * PubSub.publish( message[, data] ) -> Boolean * - message (String): The message to publish * - data: The data to pass to subscribers * Publishes the the message, passing the data to it's subscribers **/ PubSub.publish = function( message, data ){ return publish( message, data, false, PubSub.immediateExceptions ); }; /** * PubSub.publishSync( message[, data] ) -> Boolean * - message (String): The message to publish * - data: The data to pass to subscribers * Publishes the the message synchronously, passing the data to it's subscribers **/ PubSub.publishSync = function( message, data ){ return publish( message, data, true, PubSub.immediateExceptions ); }; /** * PubSub.subscribe( message, func ) -> String * - message (String): The message to subscribe to * - func (Function): The function to call when a new message is published * Subscribes the passed function to the passed message. Every returned token is unique and should be stored if * you need to unsubscribe **/ PubSub.subscribe = function( message, func ){ if ( typeof func !== 'function'){ return false; } // message is not registered yet if ( !messages.hasOwnProperty( message ) ){ messages[message] = {}; } // forcing token as String, to allow for future expansions without breaking usage // and allow for easy use as key names for the 'messages' object var token = 'uid_' + String(++lastUid); messages[message][token] = func; // return token for unsubscribing return token; }; /* Public: Clears all subscriptions */ PubSub.clearAllSubscriptions = function clearSubscriptions(){ messages = {}; }; /* Public: removes subscriptions. * When passed a token, removes a specific subscription. * When passed a function, removes all subscriptions for that function * When passed a topic, removes all subscriptions for that topic (hierarchy) * * value - A token, function or topic to unsubscribe. * * Examples * * // Example 1 - unsubscribing with a token * var token = PubSub.subscribe('mytopic', myFunc); * PubSub.unsubscribe(token); * * // Example 2 - unsubscribing with a function * PubSub.unsubscribe(myFunc); * * // Example 3 - unsubscribing a topic * PubSub.unsubscribe('mytopic'); */ PubSub.unsubscribe = function(value){ var isTopic = typeof value === 'string' && messages.hasOwnProperty(value), isToken = !isTopic && typeof value === 'string', isFunction = typeof value === 'function', result = false, m, message, t, token; if (isTopic){ delete messages[value]; return; } for ( m in messages ){ if ( messages.hasOwnProperty( m ) ){ message = messages[m]; if ( isToken && message[value] ){ delete message[value]; result = value; // tokens are unique, so we can just stop here break; } else if (isFunction) { for ( t in message ){ if (message.hasOwnProperty(t) && message[t] === value){ delete message[t]; result = true; } } } } } return result; }; })); /***/ }, /* 37 */ /***/ function(module, exports, __webpack_require__) { /** * Copyright 2013-2014, 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. * * @providesModule invariant */ "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 invariant = function(condition, format, a, b, c, d, e, f) { if ("production" !== (undefined)) { if (format === undefined) { throw new Error('invariant requires an error message argument'); } } 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( 'Invariant Violation: ' + format.replace(/%s/g, function() { return args[argIndex++]; }) ); } error.framesToPop = 1; // we don't care about invariant's own frame throw error; } }; module.exports = invariant; /***/ }, /* 38 */ /***/ function(module, exports, __webpack_require__) { var canUseDOM = !!( typeof window !== 'undefined' && window.document && window.document.createElement ); module.exports = canUseDOM; /***/ }, /* 39 */ /***/ function(module, exports, __webpack_require__) { var camel2hyphen = __webpack_require__(46); var isDimension = function (feature) { var re = /[height|width]$/; return re.test(feature); }; var obj2mq = function (obj) { var mq = ''; var features = Object.keys(obj); features.forEach(function (feature, index) { var value = obj[feature]; feature = camel2hyphen(feature); // Add px to dimension features if (isDimension(feature) && typeof value === 'number') { value = value + 'px'; } if (value === true) { mq += feature; } else if (value === false) { mq += 'not ' + feature; } else { mq += '(' + feature + ': ' + value + ')'; } if (index < features.length-1) { mq += ' and ' } }); return mq; }; var json2mq = function (query) { var mq = ''; if (typeof query === 'string') { return query; } // Handling array of media queries if (query instanceof Array) { query.forEach(function (q, index) { mq += obj2mq(q); if (index < query.length-1) { mq += ', ' } }); return mq; } // Handling single media query return obj2mq(query); }; module.exports = json2mq; /***/ }, /* 40 */ /***/ function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;/*! * enquire.js v2.1.1 - Awesome Media Queries in JavaScript * Copyright (c) 2014 Nick Williams - http://wicky.nillia.ms/enquire.js * License: MIT (http://www.opensource.org/licenses/mit-license.php) */ ;(function (name, context, factory) { var matchMedia = window.matchMedia; if (typeof module !== 'undefined' && module.exports) { module.exports = factory(matchMedia); } else if (true) { !(__WEBPACK_AMD_DEFINE_RESULT__ = function() { return (context[name] = factory(matchMedia)); }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else { context[name] = factory(matchMedia); } }('enquire', this, function (matchMedia) { 'use strict'; /*jshint unused:false */ /** * Helper function for iterating over a collection * * @param collection * @param fn */ function each(collection, fn) { var i = 0, length = collection.length, cont; for(i; i < length; i++) { cont = fn(collection[i], i); if(cont === false) { break; //allow early exit } } } /** * Helper function for determining whether target object is an array * * @param target the object under test * @return {Boolean} true if array, false otherwise */ function isArray(target) { return Object.prototype.toString.apply(target) === '[object Array]'; } /** * Helper function for determining whether target object is a function * * @param target the object under test * @return {Boolean} true if function, false otherwise */ function isFunction(target) { return typeof target === 'function'; } /** * Delegate to handle a media query being matched and unmatched. * * @param {object} options * @param {function} options.match callback for when the media query is matched * @param {function} [options.unmatch] callback for when the media query is unmatched * @param {function} [options.setup] one-time callback triggered the first time a query is matched * @param {boolean} [options.deferSetup=false] should the setup callback be run immediately, rather than first time query is matched? * @constructor */ function QueryHandler(options) { this.options = options; !options.deferSetup && this.setup(); } QueryHandler.prototype = { /** * coordinates setup of the handler * * @function */ setup : function() { if(this.options.setup) { this.options.setup(); } this.initialised = true; }, /** * coordinates setup and triggering of the handler * * @function */ on : function() { !this.initialised && this.setup(); this.options.match && this.options.match(); }, /** * coordinates the unmatch event for the handler * * @function */ off : function() { this.options.unmatch && this.options.unmatch(); }, /** * called when a handler is to be destroyed. * delegates to the destroy or unmatch callbacks, depending on availability. * * @function */ destroy : function() { this.options.destroy ? this.options.destroy() : this.off(); }, /** * determines equality by reference. * if object is supplied compare options, if function, compare match callback * * @function * @param {object || function} [target] the target for comparison */ equals : function(target) { return this.options === target || this.options.match === target; } }; /** * Represents a single media query, manages it's state and registered handlers for this query * * @constructor * @param {string} query the media query string * @param {boolean} [isUnconditional=false] whether the media query should run regardless of whether the conditions are met. Primarily for helping older browsers deal with mobile-first design */ function MediaQuery(query, isUnconditional) { this.query = query; this.isUnconditional = isUnconditional; this.handlers = []; this.mql = matchMedia(query); var self = this; this.listener = function(mql) { self.mql = mql; self.assess(); }; this.mql.addListener(this.listener); } MediaQuery.prototype = { /** * add a handler for this query, triggering if already active * * @param {object} handler * @param {function} handler.match callback for when query is activated * @param {function} [handler.unmatch] callback for when query is deactivated * @param {function} [handler.setup] callback for immediate execution when a query handler is registered * @param {boolean} [handler.deferSetup=false] should the setup callback be deferred until the first time the handler is matched? */ addHandler : function(handler) { var qh = new QueryHandler(handler); this.handlers.push(qh); this.matches() && qh.on(); }, /** * removes the given handler from the collection, and calls it's destroy methods * * @param {object || function} handler the handler to remove */ removeHandler : function(handler) { var handlers = this.handlers; each(handlers, function(h, i) { if(h.equals(handler)) { h.destroy(); return !handlers.splice(i,1); //remove from array and exit each early } }); }, /** * Determine whether the media query should be considered a match * * @return {Boolean} true if media query can be considered a match, false otherwise */ matches : function() { return this.mql.matches || this.isUnconditional; }, /** * Clears all handlers and unbinds events */ clear : function() { each(this.handlers, function(handler) { handler.destroy(); }); this.mql.removeListener(this.listener); this.handlers.length = 0; //clear array }, /* * Assesses the query, turning on all handlers if it matches, turning them off if it doesn't match */ assess : function() { var action = this.matches() ? 'on' : 'off'; each(this.handlers, function(handler) { handler[action](); }); } }; /** * Allows for registration of query handlers. * Manages the query handler's state and is responsible for wiring up browser events * * @constructor */ function MediaQueryDispatch () { if(!matchMedia) { throw new Error('matchMedia not present, legacy browsers require a polyfill'); } this.queries = {}; this.browserIsIncapable = !matchMedia('only all').matches; } MediaQueryDispatch.prototype = { /** * Registers a handler for the given media query * * @param {string} q the media query * @param {object || Array || Function} options either a single query handler object, a function, or an array of query handlers * @param {function} options.match fired when query matched * @param {function} [options.unmatch] fired when a query is no longer matched * @param {function} [options.setup] fired when handler first triggered * @param {boolean} [options.deferSetup=false] whether setup should be run immediately or deferred until query is first matched * @param {boolean} [shouldDegrade=false] whether this particular media query should always run on incapable browsers */ register : function(q, options, shouldDegrade) { var queries = this.queries, isUnconditional = shouldDegrade && this.browserIsIncapable; if(!queries[q]) { queries[q] = new MediaQuery(q, isUnconditional); } //normalise to object in an array if(isFunction(options)) { options = { match : options }; } if(!isArray(options)) { options = [options]; } each(options, function(handler) { queries[q].addHandler(handler); }); return this; }, /** * unregisters a query and all it's handlers, or a specific handler for a query * * @param {string} q the media query to target * @param {object || function} [handler] specific handler to unregister */ unregister : function(q, handler) { var query = this.queries[q]; if(query) { if(handler) { query.removeHandler(handler); } else { query.clear(); delete this.queries[q]; } } return this; } }; return new MediaQueryDispatch(); })); /***/ }, /* 41 */ /***/ function(module, exports, __webpack_require__) { /** * Copyright 2013-2014, 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. * * @providesModule ReactContext */ "use strict"; var assign = __webpack_require__(44); /** * Keeps track of the current context. * * The context is automatically passed down the component ownership hierarchy * and is accessible via `this.context` on ReactCompositeComponents. */ var ReactContext = { /** * @internal * @type {object} */ current: {}, /** * Temporarily extends the current context while executing scopedCallback. * * A typical use case might look like * * render: function() { * var children = ReactContext.withContext({foo: 'foo'}, () => ( * * )); * return <div>{children}</div>; * } * * @param {object} newContext New context to merge into the existing context * @param {function} scopedCallback Callback to run with the new context * @return {ReactComponent|array<ReactComponent>} */ withContext: function(newContext, scopedCallback) { var result; var previousContext = ReactContext.current; ReactContext.current = assign({}, previousContext, newContext); try { result = scopedCallback(); } finally { ReactContext.current = previousContext; } return result; } }; module.exports = ReactContext; /***/ }, /* 42 */ /***/ function(module, exports, __webpack_require__) { /** * Copyright 2013-2014, 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. * * @providesModule ReactCurrentOwner */ "use strict"; /** * Keeps track of the current owner. * * The current owner is the component who should own any components that are * currently being constructed. * * The depth indicate how many composite components are above this render level. */ var ReactCurrentOwner = { /** * @internal * @type {ReactComponent} */ current: null }; module.exports = ReactCurrentOwner; /***/ }, /* 43 */ /***/ function(module, exports, __webpack_require__) { /** * Copyright 2013-2014, 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. * * @providesModule emptyFunction */ function makeEmptyFunction(arg) { return function() { return arg; }; } /** * 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. */ 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; /***/ }, /* 44 */ /***/ function(module, exports, __webpack_require__) { /** * Copyright 2014, 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. * * @providesModule Object.assign */ // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign function assign(target, sources) { if (target == null) { throw new TypeError('Object.assign target cannot be null or undefined'); } var to = Object(target); var hasOwnProperty = Object.prototype.hasOwnProperty; for (var nextIndex = 1; nextIndex < arguments.length; nextIndex++) { var nextSource = arguments[nextIndex]; if (nextSource == null) { continue; } var from = Object(nextSource); // We don't currently support accessors nor proxies. Therefore this // copy cannot throw. If we ever supported this then we must handle // exceptions and side-effects. We don't support symbols so they won't // be transferred. for (var key in from) { if (hasOwnProperty.call(from, key)) { to[key] = from[key]; } } } return to; }; module.exports = assign; /***/ }, /* 45 */ /***/ function(module, exports, __webpack_require__) { /** * Copyright 2013-2014, 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. * * @providesModule joinClasses * @typechecks static-only */ "use strict"; /** * Combines multiple className strings into one. * http://jsperf.com/joinclasses-args-vs-array * * @param {...?string} classes * @return {string} */ function joinClasses(className/*, ... */) { if (!className) { className = ''; } var nextClass; var argLength = arguments.length; if (argLength > 1) { for (var ii = 1; ii < argLength; ii++) { nextClass = arguments[ii]; if (nextClass) { className = (className ? className + ' ' : '') + nextClass; } } } return className; } module.exports = joinClasses; /***/ }, /* 46 */ /***/ function(module, exports, __webpack_require__) { var camel2hyphen = function (str) { return str .replace(/[A-Z]/g, function (match) { return '-' + match.toLowerCase(); }) .toLowerCase(); }; module.exports = camel2hyphen; /***/ } /******/ ])
app/components/Chunk.js
kenwilcox/fil
import _ from 'underscore-contrib'; import React from 'react'; import classNames from 'classnames'; import {parseOrFallback} from 'helpers'; class List extends React.Component { render() { let block = "console__chunk--list", output = this.props.chunk; let classes = classNames(block, { "console__chunk--set": this.props.isSet }); return ( <ul className={classes}> {output.map((item, i) => ( <li className={block + "__item"} key={i}> <Chunk className={block + "__val"} chunk={item} /> {i < output.length -1 && ( <span className={block + "__separator"}>,</span> )} </li> ))} {!output.length && ( <li className={block + "__item--empty"}></li> )} </ul> ); } } class Dict extends React.Component { render () { let block = "console__chunk--dict", output = this.props.chunk; return ( <table className={block}> {_.keys(output).map(key => ( <tr key={key} className={block + "__item"}> <td className={block + "__key"}>{key}:</td> <td className={block + "__val"}> <Chunk chunk={output[key]} /> </td> </tr> ))} {!_.keys(output).length && ( <tr> <td className={block + "__item--empty"}></td> </tr> )} </table> ); } } class Chunk extends React.Component { parse(output) { return parseOrFallback(output, _ => output); } render() { var output = this.parse(this.props.chunk), block = "console__chunk", isString = _.isString(output); if (_.isArray(output)) { return <List chunk={output} isSet={this.props.isSet} />; } if (_.isObject(output)) { return <Dict chunk={output} />; } if (isString && this.isSet()) { return <Chunk isSet={true} chunk={this.setToIterable(output)} />; } if (isString && this.isTuple()) { return <Chunk className={block + "--tuple"} chunk={this.tupleToIterable(output)} />; } let classes = classNames({ [this.props.className || block]: true, [block + "--builtin"]: isString && this.isBuiltin(), [block + "--instance"]: isString && this.isInstance(), [block + "--integer"]: this.isInteger(), [block + "--float"]: this.isFloat() }); return ( <span className={classes}> {output} </span> ); } isSet() { let chunk = this.props.chunk, tokens = chunk.slice(0, 4) + chunk.slice(-1); return tokens == 'set()'; } isTuple() { let chunk = this.props.chunk, tokens = chunk[0] + chunk.slice(-1); return tokens == '()'; } isInstance() { let chunk = this.props.chunk, tokens = chunk[0] + chunk.slice(-1); return tokens == '<>'; } isBuiltin() { let builtins = ['None', 'True', 'False', 'Infinity']; return builtins.indexOf(this.props.chunk) > -1; } isInteger() { return Number.isInteger(this.props.chunk); } isFloat() { return !isNaN(parseFloat(this.props.chunk)); } setToIterable(output) { return output.slice(4, -1); } tupleToIterable(output) { return `[${output.slice(1, -1)}]`; } } export default Chunk;
react/gameday2/components/embeds/EmbedLivestream.js
fangeugene/the-blue-alliance
import React from 'react' import { webcastPropType } from '../../utils/webcastUtils' const EmbedLivestream = (props) => { const channel = props.webcast.channel const file = props.webcast.file const iframeSrc = `https://new.livestream.com/accounts/${channel}/events/${file}/player?width=640&height=360&autoPlay=true&mute=false` return ( <iframe src={iframeSrc} frameBorder="0" scrolling="no" height="100%" width="100%" allowFullScreen /> ) } EmbedLivestream.propTypes = { webcast: webcastPropType.isRequired, } export default EmbedLivestream
ajax/libs/rxjs/2.3.25/rx.compat.js
thesandlord/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false }; var root = (objectTypes[typeof window] && window) || this, freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports, freeModule = objectTypes[typeof module] && module && !module.nodeType && module, moduleExports = freeModule && freeModule.exports === freeExports && freeExports, freeGlobal = objectTypes[typeof global] && global; if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal)) { root = freeGlobal; } var Rx = { internals: {}, config: { Promise: root.Promise }, helpers: { } }; // Defaults var noop = Rx.helpers.noop = function () { }, notDefined = Rx.helpers.notDefined = function (x) { return typeof x === 'undefined'; }, isScheduler = Rx.helpers.isScheduler = function (x) { return x instanceof Rx.Scheduler; }, identity = Rx.helpers.identity = function (x) { return x; }, pluck = Rx.helpers.pluck = function (property) { return function (x) { return x[property]; }; }, just = Rx.helpers.just = function (value) { return function () { return value; }; }, defaultNow = Rx.helpers.defaultNow = (function () { return !!Date.now ? Date.now : function () { return +new Date; }; }()), defaultComparer = Rx.helpers.defaultComparer = function (x, y) { return isEqual(x, y); }, defaultSubComparer = Rx.helpers.defaultSubComparer = function (x, y) { return x > y ? 1 : (x < y ? -1 : 0); }, defaultKeySerializer = Rx.helpers.defaultKeySerializer = function (x) { return x.toString(); }, defaultError = Rx.helpers.defaultError = function (err) { throw err; }, isPromise = Rx.helpers.isPromise = function (p) { return !!p && typeof p.then === 'function'; }, asArray = Rx.helpers.asArray = function () { return Array.prototype.slice.call(arguments); }, not = Rx.helpers.not = function (a) { return !a; }, isFunction = Rx.helpers.isFunction = (function () { var isFn = function (value) { return typeof value == 'function' || false; } // fallback for older versions of Chrome and Safari if (isFn(/x/)) { isFn = function(value) { return typeof value == 'function' && toString.call(value) == '[object Function]'; }; } return isFn; }()); // Errors var sequenceContainsNoElements = 'Sequence contains no elements.'; var argumentOutOfRange = 'Argument out of range'; var objectDisposed = 'Object has been disposed'; function checkDisposed(self) { if (self.isDisposed) { throw new Error(objectDisposed); } } function cloneArray(arr) { for(var a = [], i = 0, len = arr.length; i < len; i++) { a.push(arr[i]); } return a;} Rx.config.longStackSupport = false; var hasStacks = false; try { throw new Error(); } catch (e) { hasStacks = !!e.stack; } // All code after this point will be filtered from stack traces reported by RxJS var rStartingLine = captureLine(), rFileName; var STACK_JUMP_SEPARATOR = "From previous event:"; function makeStackTraceLong(error, observable) { // If possible, transform the error stack trace by removing Node and RxJS // cruft, then concatenating with the stack trace of `observable`. if (hasStacks && observable.stack && typeof error === "object" && error !== null && error.stack && error.stack.indexOf(STACK_JUMP_SEPARATOR) === -1 ) { var stacks = []; for (var o = observable; !!o; o = o.source) { if (o.stack) { stacks.unshift(o.stack); } } stacks.unshift(error.stack); var concatedStacks = stacks.join("\n" + STACK_JUMP_SEPARATOR + "\n"); error.stack = filterStackString(concatedStacks); } } function filterStackString(stackString) { var lines = stackString.split("\n"), desiredLines = []; for (var i = 0, len = lines.length; i < len; i++) { var line = lines[i]; if (!isInternalFrame(line) && !isNodeFrame(line) && line) { desiredLines.push(line); } } return desiredLines.join("\n"); } function isInternalFrame(stackLine) { var fileNameAndLineNumber = getFileNameAndLineNumber(stackLine); if (!fileNameAndLineNumber) { return false; } var fileName = fileNameAndLineNumber[0], lineNumber = fileNameAndLineNumber[1]; return fileName === rFileName && lineNumber >= rStartingLine && lineNumber <= rEndingLine; } function isNodeFrame(stackLine) { return stackLine.indexOf("(module.js:") !== -1 || stackLine.indexOf("(node.js:") !== -1; } function captureLine() { if (!hasStacks) { return; } try { throw new Error(); } catch (e) { var lines = e.stack.split("\n"); var firstLine = lines[0].indexOf("@") > 0 ? lines[1] : lines[2]; var fileNameAndLineNumber = getFileNameAndLineNumber(firstLine); if (!fileNameAndLineNumber) { return; } rFileName = fileNameAndLineNumber[0]; return fileNameAndLineNumber[1]; } } function getFileNameAndLineNumber(stackLine) { // Named functions: "at functionName (filename:lineNumber:columnNumber)" var attempt1 = /at .+ \((.+):(\d+):(?:\d+)\)$/.exec(stackLine); if (attempt1) { return [attempt1[1], Number(attempt1[2])]; } // Anonymous functions: "at filename:lineNumber:columnNumber" var attempt2 = /at ([^ ]+):(\d+):(?:\d+)$/.exec(stackLine); if (attempt2) { return [attempt2[1], Number(attempt2[2])]; } // Firefox style: "function@filename:lineNumber or @filename:lineNumber" var attempt3 = /.*@(.+):(\d+)$/.exec(stackLine); if (attempt3) { return [attempt3[1], Number(attempt3[2])]; } } // Shim in iterator support var $iterator$ = (typeof Symbol === 'function' && Symbol.iterator) || '_es6shim_iterator_'; // Bug for mozilla version if (root.Set && typeof new root.Set()['@@iterator'] === 'function') { $iterator$ = '@@iterator'; } var doneEnumerator = Rx.doneEnumerator = { done: true, value: undefined }; var isIterable = Rx.helpers.isIterable = function (o) { return o[$iterator$] !== undefined; } var isArrayLike = Rx.helpers.isArrayLike = function (o) { return o && o.length !== undefined; } Rx.helpers.iterator = $iterator$; var bindCallback = Rx.internals.bindCallback = function (func, thisArg, argCount) { if (typeof thisArg === 'undefined') { return func; } switch(argCount) { case 0: return function() { return func.call(thisArg) }; case 1: return function(arg) { return func.call(thisArg, arg); } case 2: return function(value, index) { return func.call(thisArg, value, index); }; case 3: return function(value, index, collection) { return func.call(thisArg, value, index, collection); }; } return function() { return func.apply(thisArg, arguments); }; }; /** Used to determine if values are of the language type Object */ var dontEnums = ['toString', 'toLocaleString', 'valueOf', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'constructor'], dontEnumsLength = dontEnums.length; /** `Object#toString` result shortcuts */ var argsClass = '[object Arguments]', arrayClass = '[object Array]', boolClass = '[object Boolean]', dateClass = '[object Date]', errorClass = '[object Error]', funcClass = '[object Function]', numberClass = '[object Number]', objectClass = '[object Object]', regexpClass = '[object RegExp]', stringClass = '[object String]'; var toString = Object.prototype.toString, hasOwnProperty = Object.prototype.hasOwnProperty, supportsArgsClass = toString.call(arguments) == argsClass, // For less <IE9 && FF<4 supportNodeClass, errorProto = Error.prototype, objectProto = Object.prototype, stringProto = String.prototype, propertyIsEnumerable = objectProto.propertyIsEnumerable; try { supportNodeClass = !(toString.call(document) == objectClass && !({ 'toString': 0 } + '')); } catch (e) { supportNodeClass = true; } var nonEnumProps = {}; nonEnumProps[arrayClass] = nonEnumProps[dateClass] = nonEnumProps[numberClass] = { 'constructor': true, 'toLocaleString': true, 'toString': true, 'valueOf': true }; nonEnumProps[boolClass] = nonEnumProps[stringClass] = { 'constructor': true, 'toString': true, 'valueOf': true }; nonEnumProps[errorClass] = nonEnumProps[funcClass] = nonEnumProps[regexpClass] = { 'constructor': true, 'toString': true }; nonEnumProps[objectClass] = { 'constructor': true }; var support = {}; (function () { var ctor = function() { this.x = 1; }, props = []; ctor.prototype = { 'valueOf': 1, 'y': 1 }; for (var key in new ctor) { props.push(key); } for (key in arguments) { } // Detect if `name` or `message` properties of `Error.prototype` are enumerable by default. support.enumErrorProps = propertyIsEnumerable.call(errorProto, 'message') || propertyIsEnumerable.call(errorProto, 'name'); // Detect if `prototype` properties are enumerable by default. support.enumPrototypes = propertyIsEnumerable.call(ctor, 'prototype'); // Detect if `arguments` object indexes are non-enumerable support.nonEnumArgs = key != 0; // Detect if properties shadowing those on `Object.prototype` are non-enumerable. support.nonEnumShadows = !/valueOf/.test(props); }(1)); var isObject = Rx.internals.isObject = function(value) { var type = typeof value; return value && (type == 'function' || type == 'object') || false; }; function keysIn(object) { var result = []; if (!isObject(object)) { return result; } if (support.nonEnumArgs && object.length && isArguments(object)) { object = slice.call(object); } var skipProto = support.enumPrototypes && typeof object == 'function', skipErrorProps = support.enumErrorProps && (object === errorProto || object instanceof Error); for (var key in object) { if (!(skipProto && key == 'prototype') && !(skipErrorProps && (key == 'message' || key == 'name'))) { result.push(key); } } if (support.nonEnumShadows && object !== objectProto) { var ctor = object.constructor, index = -1, length = dontEnumsLength; if (object === (ctor && ctor.prototype)) { var className = object === stringProto ? stringClass : object === errorProto ? errorClass : toString.call(object), nonEnum = nonEnumProps[className]; } while (++index < length) { key = dontEnums[index]; if (!(nonEnum && nonEnum[key]) && hasOwnProperty.call(object, key)) { result.push(key); } } } return result; } function internalFor(object, callback, keysFunc) { var index = -1, props = keysFunc(object), length = props.length; while (++index < length) { var key = props[index]; if (callback(object[key], key, object) === false) { break; } } return object; } function internalForIn(object, callback) { return internalFor(object, callback, keysIn); } function isNode(value) { // IE < 9 presents DOM nodes as `Object` objects except they have `toString` // methods that are `typeof` "string" and still can coerce nodes to strings return typeof value.toString != 'function' && typeof (value + '') == 'string'; } var isArguments = function(value) { return (value && typeof value == 'object') ? toString.call(value) == argsClass : false; } // fallback for browsers that can't detect `arguments` objects by [[Class]] if (!supportsArgsClass) { isArguments = function(value) { return (value && typeof value == 'object') ? hasOwnProperty.call(value, 'callee') : false; }; } var isEqual = Rx.internals.isEqual = function (x, y) { return deepEquals(x, y, [], []); }; /** @private * Used for deep comparison **/ function deepEquals(a, b, stackA, stackB) { // exit early for identical values if (a === b) { // treat `+0` vs. `-0` as not equal return a !== 0 || (1 / a == 1 / b); } var type = typeof a, otherType = typeof b; // exit early for unlike primitive values if (a === a && (a == null || b == null || (type != 'function' && type != 'object' && otherType != 'function' && otherType != 'object'))) { return false; } // compare [[Class]] names var className = toString.call(a), otherClass = toString.call(b); if (className == argsClass) { className = objectClass; } if (otherClass == argsClass) { otherClass = objectClass; } if (className != otherClass) { return false; } switch (className) { case boolClass: case dateClass: // coerce dates and booleans to numbers, dates to milliseconds and booleans // to `1` or `0` treating invalid dates coerced to `NaN` as not equal return +a == +b; case numberClass: // treat `NaN` vs. `NaN` as equal return (a != +a) ? b != +b : // but treat `-0` vs. `+0` as not equal (a == 0 ? (1 / a == 1 / b) : a == +b); case regexpClass: case stringClass: // coerce regexes to strings (http://es5.github.io/#x15.10.6.4) // treat string primitives and their corresponding object instances as equal return a == String(b); } var isArr = className == arrayClass; if (!isArr) { // exit for functions and DOM nodes if (className != objectClass || (!support.nodeClass && (isNode(a) || isNode(b)))) { return false; } // in older versions of Opera, `arguments` objects have `Array` constructors var ctorA = !support.argsObject && isArguments(a) ? Object : a.constructor, ctorB = !support.argsObject && isArguments(b) ? Object : b.constructor; // non `Object` object instances with different constructors are not equal if (ctorA != ctorB && !(hasOwnProperty.call(a, 'constructor') && hasOwnProperty.call(b, 'constructor')) && !(isFunction(ctorA) && ctorA instanceof ctorA && isFunction(ctorB) && ctorB instanceof ctorB) && ('constructor' in a && 'constructor' in b) ) { return false; } } // assume cyclic structures are equal // the algorithm for detecting cyclic structures is adapted from ES 5.1 // section 15.12.3, abstract operation `JO` (http://es5.github.io/#x15.12.3) var initedStack = !stackA; stackA || (stackA = []); stackB || (stackB = []); var length = stackA.length; while (length--) { if (stackA[length] == a) { return stackB[length] == b; } } var size = 0; var result = true; // add `a` and `b` to the stack of traversed objects stackA.push(a); stackB.push(b); // recursively compare objects and arrays (susceptible to call stack limits) if (isArr) { // compare lengths to determine if a deep comparison is necessary length = a.length; size = b.length; result = size == length; if (result) { // deep compare the contents, ignoring non-numeric properties while (size--) { var index = length, value = b[size]; if (!(result = deepEquals(a[size], value, stackA, stackB))) { break; } } } } else { // deep compare objects using `forIn`, instead of `forOwn`, to avoid `Object.keys` // which, in this case, is more costly internalForIn(b, function(value, key, b) { if (hasOwnProperty.call(b, key)) { // count the number of properties. size++; // deep compare each property value. return (result = hasOwnProperty.call(a, key) && deepEquals(a[key], value, stackA, stackB)); } }); if (result) { // ensure both objects have the same number of properties internalForIn(a, function(value, key, a) { if (hasOwnProperty.call(a, key)) { // `size` will be `-1` if `a` has more properties than `b` return (result = --size > -1); } }); } } stackA.pop(); stackB.pop(); return result; } var hasProp = {}.hasOwnProperty, slice = Array.prototype.slice; var inherits = this.inherits = Rx.internals.inherits = function (child, parent) { function __() { this.constructor = child; } __.prototype = parent.prototype; child.prototype = new __(); }; var addProperties = Rx.internals.addProperties = function (obj) { for(var sources = [], i = 1, len = arguments.length; i < len; i++) { sources.push(arguments[i]); } for (var idx = 0, ln = sources.length; idx < ln; idx++) { var source = sources[idx]; for (var prop in source) { obj[prop] = source[prop]; } } }; // Rx Utils var addRef = Rx.internals.addRef = function (xs, r) { return new AnonymousObservable(function (observer) { return new CompositeDisposable(r.getDisposable(), xs.subscribe(observer)); }); }; function arrayInitialize(count, factory) { var a = new Array(count); for (var i = 0; i < count; i++) { a[i] = factory(); } return a; } // Utilities if (!Function.prototype.bind) { Function.prototype.bind = function (that) { var target = this, args = slice.call(arguments, 1); var bound = function () { if (this instanceof bound) { function F() { } F.prototype = target.prototype; var self = new F(); var result = target.apply(self, args.concat(slice.call(arguments))); if (Object(result) === result) { return result; } return self; } else { return target.apply(that, args.concat(slice.call(arguments))); } }; return bound; }; } if (!Array.prototype.forEach) { Array.prototype.forEach = function (callback, thisArg) { var T, k; if (this == null) { throw new TypeError(" this is null or not defined"); } var O = Object(this); var len = O.length >>> 0; if (typeof callback !== "function") { throw new TypeError(callback + " is not a function"); } if (arguments.length > 1) { T = thisArg; } k = 0; while (k < len) { var kValue; if (k in O) { kValue = O[k]; callback.call(T, kValue, k, O); } k++; } }; } var boxedString = Object("a"), splitString = boxedString[0] != "a" || !(0 in boxedString); if (!Array.prototype.every) { Array.prototype.every = function every(fun /*, thisp */) { var object = Object(this), self = splitString && {}.toString.call(this) == stringClass ? this.split("") : object, length = self.length >>> 0, thisp = arguments[1]; if ({}.toString.call(fun) != funcClass) { throw new TypeError(fun + " is not a function"); } for (var i = 0; i < length; i++) { if (i in self && !fun.call(thisp, self[i], i, object)) { return false; } } return true; }; } if (!Array.prototype.map) { Array.prototype.map = function map(fun /*, thisp*/) { var object = Object(this), self = splitString && {}.toString.call(this) == stringClass ? this.split("") : object, length = self.length >>> 0, result = Array(length), thisp = arguments[1]; if ({}.toString.call(fun) != funcClass) { throw new TypeError(fun + " is not a function"); } for (var i = 0; i < length; i++) { if (i in self) { result[i] = fun.call(thisp, self[i], i, object); } } return result; }; } if (!Array.prototype.filter) { Array.prototype.filter = function (predicate) { var results = [], item, t = new Object(this); for (var i = 0, len = t.length >>> 0; i < len; i++) { item = t[i]; if (i in t && predicate.call(arguments[1], item, i, t)) { results.push(item); } } return results; }; } if (!Array.isArray) { Array.isArray = function (arg) { return {}.toString.call(arg) == arrayClass; }; } if (!Array.prototype.indexOf) { Array.prototype.indexOf = function indexOf(searchElement) { var t = Object(this); var len = t.length >>> 0; if (len === 0) { return -1; } var n = 0; if (arguments.length > 1) { n = Number(arguments[1]); if (n !== n) { n = 0; } else if (n !== 0 && n != Infinity && n !== -Infinity) { n = (n > 0 || -1) * Math.floor(Math.abs(n)); } } if (n >= len) { return -1; } var k = n >= 0 ? n : Math.max(len - Math.abs(n), 0); for (; k < len; k++) { if (k in t && t[k] === searchElement) { return k; } } return -1; }; } // Fix for Tessel if (!Object.prototype.propertyIsEnumerable) { Object.prototype.propertyIsEnumerable = function (key) { for (var k in this) { if (k === key) { return true; } } return false; }; } if (!Object.keys) { Object.keys = (function() { 'use strict'; var hasOwnProperty = Object.prototype.hasOwnProperty, hasDontEnumBug = !({ toString: null }).propertyIsEnumerable('toString'); return function(obj) { if (typeof obj !== 'object' && (typeof obj !== 'function' || obj === null)) { throw new TypeError('Object.keys called on non-object'); } var result = [], prop, i; for (prop in obj) { if (hasOwnProperty.call(obj, prop)) { result.push(prop); } } if (hasDontEnumBug) { for (i = 0; i < dontEnumsLength; i++) { if (hasOwnProperty.call(obj, dontEnums[i])) { result.push(dontEnums[i]); } } } return result; }; }()); } // Collections function IndexedItem(id, value) { this.id = id; this.value = value; } IndexedItem.prototype.compareTo = function (other) { var c = this.value.compareTo(other.value); c === 0 && (c = this.id - other.id); return c; }; // Priority Queue for Scheduling var PriorityQueue = Rx.internals.PriorityQueue = function (capacity) { this.items = new Array(capacity); this.length = 0; }; var priorityProto = PriorityQueue.prototype; priorityProto.isHigherPriority = function (left, right) { return this.items[left].compareTo(this.items[right]) < 0; }; priorityProto.percolate = function (index) { if (index >= this.length || index < 0) { return; } var parent = index - 1 >> 1; if (parent < 0 || parent === index) { return; } if (this.isHigherPriority(index, parent)) { var temp = this.items[index]; this.items[index] = this.items[parent]; this.items[parent] = temp; this.percolate(parent); } }; priorityProto.heapify = function (index) { +index || (index = 0); if (index >= this.length || index < 0) { return; } var left = 2 * index + 1, right = 2 * index + 2, first = index; if (left < this.length && this.isHigherPriority(left, first)) { first = left; } if (right < this.length && this.isHigherPriority(right, first)) { first = right; } if (first !== index) { var temp = this.items[index]; this.items[index] = this.items[first]; this.items[first] = temp; this.heapify(first); } }; priorityProto.peek = function () { return this.items[0].value; }; priorityProto.removeAt = function (index) { this.items[index] = this.items[--this.length]; this.items[this.length] = undefined; this.heapify(); }; priorityProto.dequeue = function () { var result = this.peek(); this.removeAt(0); return result; }; priorityProto.enqueue = function (item) { var index = this.length++; this.items[index] = new IndexedItem(PriorityQueue.count++, item); this.percolate(index); }; priorityProto.remove = function (item) { for (var i = 0; i < this.length; i++) { if (this.items[i].value === item) { this.removeAt(i); return true; } } return false; }; PriorityQueue.count = 0; /** * Represents a group of disposable resources that are disposed together. * @constructor */ var CompositeDisposable = Rx.CompositeDisposable = function () { var args = []; if (Array.isArray(arguments[0])) { args = arguments[0]; } else { for(var i = 0, len = arguments.length; i < len; i++) { args.push(arguments[i]); } } this.disposables = args; this.isDisposed = false; this.length = this.disposables.length; }; var CompositeDisposablePrototype = CompositeDisposable.prototype; /** * Adds a disposable to the CompositeDisposable or disposes the disposable if the CompositeDisposable is disposed. * @param {Mixed} item Disposable to add. */ CompositeDisposablePrototype.add = function (item) { if (this.isDisposed) { item.dispose(); } else { this.disposables.push(item); this.length++; } }; /** * Removes and disposes the first occurrence of a disposable from the CompositeDisposable. * @param {Mixed} item Disposable to remove. * @returns {Boolean} true if found; false otherwise. */ CompositeDisposablePrototype.remove = function (item) { var shouldDispose = false; if (!this.isDisposed) { var idx = this.disposables.indexOf(item); if (idx !== -1) { shouldDispose = true; this.disposables.splice(idx, 1); this.length--; item.dispose(); } } return shouldDispose; }; /** * Disposes all disposables in the group and removes them from the group. */ CompositeDisposablePrototype.dispose = function () { if (!this.isDisposed) { this.isDisposed = true; for(var currentDisposables = [], i = 0, len = this.disposables.length; i < len; i++) { currentDisposables.push(this.disposables[i]); } this.disposables = []; this.length = 0; for (i = 0, len = currentDisposables.length; i < len; i++) { currentDisposables[i].dispose(); } } }; /** * Converts the existing CompositeDisposable to an array of disposables * @returns {Array} An array of disposable objects. */ CompositeDisposablePrototype.toArray = function () { for(var currentDisposables = [], ix = 0, len = this.disposables.length; i < len; i++) { currentDisposables.push(this.disposables[i]); } return currentDisposables; }; /** * Provides a set of static methods for creating Disposables. * * @constructor * @param {Function} dispose Action to run during the first call to dispose. The action is guaranteed to be run at most once. */ var Disposable = Rx.Disposable = function (action) { this.isDisposed = false; this.action = action || noop; }; /** Performs the task of cleaning up resources. */ Disposable.prototype.dispose = function () { if (!this.isDisposed) { this.action(); this.isDisposed = true; } }; /** * Creates a disposable object that invokes the specified action when disposed. * @param {Function} dispose Action to run during the first call to dispose. The action is guaranteed to be run at most once. * @return {Disposable} The disposable object that runs the given action upon disposal. */ var disposableCreate = Disposable.create = function (action) { return new Disposable(action); }; /** * Gets the disposable that does nothing when disposed. */ var disposableEmpty = Disposable.empty = { dispose: noop }; var SingleAssignmentDisposable = Rx.SingleAssignmentDisposable = (function () { function BooleanDisposable () { this.isDisposed = false; this.current = null; } var booleanDisposablePrototype = BooleanDisposable.prototype; /** * Gets the underlying disposable. * @return The underlying disposable. */ booleanDisposablePrototype.getDisposable = function () { return this.current; }; /** * Sets the underlying disposable. * @param {Disposable} value The new underlying disposable. */ booleanDisposablePrototype.setDisposable = function (value) { var shouldDispose = this.isDisposed; if (!shouldDispose) { var old = this.current; this.current = value; } old && old.dispose(); shouldDispose && value && value.dispose(); }; /** * Disposes the underlying disposable as well as all future replacements. */ booleanDisposablePrototype.dispose = function () { if (!this.isDisposed) { this.isDisposed = true; var old = this.current; this.current = null; } old && old.dispose(); }; return BooleanDisposable; }()); var SerialDisposable = Rx.SerialDisposable = SingleAssignmentDisposable; /** * Represents a disposable resource that only disposes its underlying disposable resource when all dependent disposable objects have been disposed. */ var RefCountDisposable = Rx.RefCountDisposable = (function () { function InnerDisposable(disposable) { this.disposable = disposable; this.disposable.count++; this.isInnerDisposed = false; } InnerDisposable.prototype.dispose = function () { if (!this.disposable.isDisposed && !this.isInnerDisposed) { this.isInnerDisposed = true; this.disposable.count--; if (this.disposable.count === 0 && this.disposable.isPrimaryDisposed) { this.disposable.isDisposed = true; this.disposable.underlyingDisposable.dispose(); } } }; /** * Initializes a new instance of the RefCountDisposable with the specified disposable. * @constructor * @param {Disposable} disposable Underlying disposable. */ function RefCountDisposable(disposable) { this.underlyingDisposable = disposable; this.isDisposed = false; this.isPrimaryDisposed = false; this.count = 0; } /** * Disposes the underlying disposable only when all dependent disposables have been disposed */ RefCountDisposable.prototype.dispose = function () { if (!this.isDisposed && !this.isPrimaryDisposed) { this.isPrimaryDisposed = true; if (this.count === 0) { this.isDisposed = true; this.underlyingDisposable.dispose(); } } }; /** * Returns a dependent disposable that when disposed decreases the refcount on the underlying disposable. * @returns {Disposable} A dependent disposable contributing to the reference count that manages the underlying disposable's lifetime. */ RefCountDisposable.prototype.getDisposable = function () { return this.isDisposed ? disposableEmpty : new InnerDisposable(this); }; return RefCountDisposable; })(); function ScheduledDisposable(scheduler, disposable) { this.scheduler = scheduler; this.disposable = disposable; this.isDisposed = false; } function scheduleItem(s, self) { if (!self.isDisposed) { self.isDisposed = true; self.disposable.dispose(); } } ScheduledDisposable.prototype.dispose = function () { this.scheduler.scheduleWithState(this, scheduleItem); }; var ScheduledItem = Rx.internals.ScheduledItem = function (scheduler, state, action, dueTime, comparer) { this.scheduler = scheduler; this.state = state; this.action = action; this.dueTime = dueTime; this.comparer = comparer || defaultSubComparer; this.disposable = new SingleAssignmentDisposable(); } ScheduledItem.prototype.invoke = function () { this.disposable.setDisposable(this.invokeCore()); }; ScheduledItem.prototype.compareTo = function (other) { return this.comparer(this.dueTime, other.dueTime); }; ScheduledItem.prototype.isCancelled = function () { return this.disposable.isDisposed; }; ScheduledItem.prototype.invokeCore = function () { return this.action(this.scheduler, this.state); }; /** Provides a set of static properties to access commonly used schedulers. */ var Scheduler = Rx.Scheduler = (function () { function Scheduler(now, schedule, scheduleRelative, scheduleAbsolute) { this.now = now; this._schedule = schedule; this._scheduleRelative = scheduleRelative; this._scheduleAbsolute = scheduleAbsolute; } function invokeAction(scheduler, action) { action(); return disposableEmpty; } var schedulerProto = Scheduler.prototype; /** * Schedules an action to be executed. * @param {Function} action Action to execute. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.schedule = function (action) { return this._schedule(action, invokeAction); }; /** * Schedules an action to be executed. * @param state State passed to the action to be executed. * @param {Function} action Action to be executed. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.scheduleWithState = function (state, action) { return this._schedule(state, action); }; /** * Schedules an action to be executed after the specified relative due time. * @param {Function} action Action to execute. * @param {Number} dueTime Relative time after which to execute the action. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.scheduleWithRelative = function (dueTime, action) { return this._scheduleRelative(action, dueTime, invokeAction); }; /** * Schedules an action to be executed after dueTime. * @param state State passed to the action to be executed. * @param {Function} action Action to be executed. * @param {Number} dueTime Relative time after which to execute the action. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.scheduleWithRelativeAndState = function (state, dueTime, action) { return this._scheduleRelative(state, dueTime, action); }; /** * Schedules an action to be executed at the specified absolute due time. * @param {Function} action Action to execute. * @param {Number} dueTime Absolute time at which to execute the action. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.scheduleWithAbsolute = function (dueTime, action) { return this._scheduleAbsolute(action, dueTime, invokeAction); }; /** * Schedules an action to be executed at dueTime. * @param {Mixed} state State passed to the action to be executed. * @param {Function} action Action to be executed. * @param {Number}dueTime Absolute time at which to execute the action. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.scheduleWithAbsoluteAndState = function (state, dueTime, action) { return this._scheduleAbsolute(state, dueTime, action); }; /** Gets the current time according to the local machine's system clock. */ Scheduler.now = defaultNow; /** * Normalizes the specified TimeSpan value to a positive value. * @param {Number} timeSpan The time span value to normalize. * @returns {Number} The specified TimeSpan value if it is zero or positive; otherwise, 0 */ Scheduler.normalize = function (timeSpan) { timeSpan < 0 && (timeSpan = 0); return timeSpan; }; return Scheduler; }()); var normalizeTime = Scheduler.normalize; (function (schedulerProto) { function invokeRecImmediate(scheduler, pair) { var state = pair.first, action = pair.second, group = new CompositeDisposable(), recursiveAction = function (state1) { action(state1, function (state2) { var isAdded = false, isDone = false, d = scheduler.scheduleWithState(state2, function (scheduler1, state3) { if (isAdded) { group.remove(d); } else { isDone = true; } recursiveAction(state3); return disposableEmpty; }); if (!isDone) { group.add(d); isAdded = true; } }); }; recursiveAction(state); return group; } function invokeRecDate(scheduler, pair, method) { var state = pair.first, action = pair.second, group = new CompositeDisposable(), recursiveAction = function (state1) { action(state1, function (state2, dueTime1) { var isAdded = false, isDone = false, d = scheduler[method](state2, dueTime1, function (scheduler1, state3) { if (isAdded) { group.remove(d); } else { isDone = true; } recursiveAction(state3); return disposableEmpty; }); if (!isDone) { group.add(d); isAdded = true; } }); }; recursiveAction(state); return group; } function scheduleInnerRecursive(action, self) { action(function(dt) { self(action, dt); }); } /** * Schedules an action to be executed recursively. * @param {Function} action Action to execute recursively. The parameter passed to the action is used to trigger recursive scheduling of the action. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.scheduleRecursive = function (action) { return this.scheduleRecursiveWithState(action, function (_action, self) { _action(function () { self(_action); }); }); }; /** * Schedules an action to be executed recursively. * @param {Mixed} state State passed to the action to be executed. * @param {Function} action Action to execute recursively. The last parameter passed to the action is used to trigger recursive scheduling of the action, passing in recursive invocation state. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.scheduleRecursiveWithState = function (state, action) { return this.scheduleWithState({ first: state, second: action }, invokeRecImmediate); }; /** * Schedules an action to be executed recursively after a specified relative due time. * @param {Function} action Action to execute recursively. The parameter passed to the action is used to trigger recursive scheduling of the action at the specified relative time. * @param {Number}dueTime Relative time after which to execute the action for the first time. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.scheduleRecursiveWithRelative = function (dueTime, action) { return this.scheduleRecursiveWithRelativeAndState(action, dueTime, scheduleInnerRecursive); }; /** * Schedules an action to be executed recursively after a specified relative due time. * @param {Mixed} state State passed to the action to be executed. * @param {Function} action Action to execute recursively. The last parameter passed to the action is used to trigger recursive scheduling of the action, passing in the recursive due time and invocation state. * @param {Number}dueTime Relative time after which to execute the action for the first time. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.scheduleRecursiveWithRelativeAndState = function (state, dueTime, action) { return this._scheduleRelative({ first: state, second: action }, dueTime, function (s, p) { return invokeRecDate(s, p, 'scheduleWithRelativeAndState'); }); }; /** * Schedules an action to be executed recursively at a specified absolute due time. * @param {Function} action Action to execute recursively. The parameter passed to the action is used to trigger recursive scheduling of the action at the specified absolute time. * @param {Number}dueTime Absolute time at which to execute the action for the first time. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.scheduleRecursiveWithAbsolute = function (dueTime, action) { return this.scheduleRecursiveWithAbsoluteAndState(action, dueTime, scheduleInnerRecursive); }; /** * Schedules an action to be executed recursively at a specified absolute due time. * @param {Mixed} state State passed to the action to be executed. * @param {Function} action Action to execute recursively. The last parameter passed to the action is used to trigger recursive scheduling of the action, passing in the recursive due time and invocation state. * @param {Number}dueTime Absolute time at which to execute the action for the first time. * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). */ schedulerProto.scheduleRecursiveWithAbsoluteAndState = function (state, dueTime, action) { return this._scheduleAbsolute({ first: state, second: action }, dueTime, function (s, p) { return invokeRecDate(s, p, 'scheduleWithAbsoluteAndState'); }); }; }(Scheduler.prototype)); (function (schedulerProto) { /** * Schedules a periodic piece of work by dynamically discovering the scheduler's capabilities. The periodic task will be scheduled using window.setInterval for the base implementation. * @param {Number} period Period for running the work periodically. * @param {Function} action Action to be executed. * @returns {Disposable} The disposable object used to cancel the scheduled recurring action (best effort). */ Scheduler.prototype.schedulePeriodic = function (period, action) { return this.schedulePeriodicWithState(null, period, action); }; /** * Schedules a periodic piece of work by dynamically discovering the scheduler's capabilities. The periodic task will be scheduled using window.setInterval for the base implementation. * @param {Mixed} state Initial state passed to the action upon the first iteration. * @param {Number} period Period for running the work periodically. * @param {Function} action Action to be executed, potentially updating the state. * @returns {Disposable} The disposable object used to cancel the scheduled recurring action (best effort). */ Scheduler.prototype.schedulePeriodicWithState = function(state, period, action) { if (typeof root.setInterval === 'undefined') { throw new Error('Periodic scheduling not supported.'); } var s = state; var id = root.setInterval(function () { s = action(s); }, period); return disposableCreate(function () { root.clearInterval(id); }); }; }(Scheduler.prototype)); (function (schedulerProto) { /** * Returns a scheduler that wraps the original scheduler, adding exception handling for scheduled actions. * @param {Function} handler Handler that's run if an exception is caught. The exception will be rethrown if the handler returns false. * @returns {Scheduler} Wrapper around the original scheduler, enforcing exception handling. */ schedulerProto.catchError = schedulerProto['catch'] = function (handler) { return new CatchScheduler(this, handler); }; }(Scheduler.prototype)); var SchedulePeriodicRecursive = Rx.internals.SchedulePeriodicRecursive = (function () { function tick(command, recurse) { recurse(0, this._period); try { this._state = this._action(this._state); } catch (e) { this._cancel.dispose(); throw e; } } function SchedulePeriodicRecursive(scheduler, state, period, action) { this._scheduler = scheduler; this._state = state; this._period = period; this._action = action; } SchedulePeriodicRecursive.prototype.start = function () { var d = new SingleAssignmentDisposable(); this._cancel = d; d.setDisposable(this._scheduler.scheduleRecursiveWithRelativeAndState(0, this._period, tick.bind(this))); return d; }; return SchedulePeriodicRecursive; }()); /** Gets a scheduler that schedules work immediately on the current thread. */ var immediateScheduler = Scheduler.immediate = (function () { function scheduleNow(state, action) { return action(this, state); } function scheduleRelative(state, dueTime, action) { var dt = this.now() + normalizeTime(dueTime); while (dt - this.now() > 0) { } return action(this, state); } function scheduleAbsolute(state, dueTime, action) { return this.scheduleWithRelativeAndState(state, dueTime - this.now(), action); } return new Scheduler(defaultNow, scheduleNow, scheduleRelative, scheduleAbsolute); }()); /** * Gets a scheduler that schedules work as soon as possible on the current thread. */ var currentThreadScheduler = Scheduler.currentThread = (function () { var queue; function runTrampoline (q) { while (q.length > 0) { var item = q.dequeue(); if (!item.isCancelled()) { // Note, do not schedule blocking work! while (item.dueTime - Scheduler.now() > 0) { } !item.isCancelled() && item.invoke(); } } } function scheduleNow(state, action) { return this.scheduleWithRelativeAndState(state, 0, action); } function scheduleRelative(state, dueTime, action) { var dt = this.now() + Scheduler.normalize(dueTime), si = new ScheduledItem(this, state, action, dt); if (!queue) { queue = new PriorityQueue(4); queue.enqueue(si); try { runTrampoline(queue); } catch (e) { throw e; } finally { queue = null; } } else { queue.enqueue(si); } return si.disposable; } function scheduleAbsolute(state, dueTime, action) { return this.scheduleWithRelativeAndState(state, dueTime - this.now(), action); } var currentScheduler = new Scheduler(defaultNow, scheduleNow, scheduleRelative, scheduleAbsolute); currentScheduler.scheduleRequired = function () { return !queue; }; currentScheduler.ensureTrampoline = function (action) { if (!queue) { this.schedule(action); } else { action(); } }; return currentScheduler; }()); var scheduleMethod, clearMethod = noop; var localTimer = (function () { var localSetTimeout, localClearTimeout = noop; if ('WScript' in this) { localSetTimeout = function (fn, time) { WScript.Sleep(time); fn(); }; } else if (!!root.setTimeout) { localSetTimeout = root.setTimeout; localClearTimeout = root.clearTimeout; } else { throw new Error('No concurrency detected!'); } return { setTimeout: localSetTimeout, clearTimeout: localClearTimeout }; }()); var localSetTimeout = localTimer.setTimeout, localClearTimeout = localTimer.clearTimeout; (function () { var reNative = RegExp('^' + String(toString) .replace(/[.*+?^${}()|[\]\\]/g, '\\$&') .replace(/toString| for [^\]]+/g, '.*?') + '$' ); var setImmediate = typeof (setImmediate = freeGlobal && moduleExports && freeGlobal.setImmediate) == 'function' && !reNative.test(setImmediate) && setImmediate, clearImmediate = typeof (clearImmediate = freeGlobal && moduleExports && freeGlobal.clearImmediate) == 'function' && !reNative.test(clearImmediate) && clearImmediate; function postMessageSupported () { // Ensure not in a worker if (!root.postMessage || root.importScripts) { return false; } var isAsync = false, oldHandler = root.onmessage; // Test for async root.onmessage = function () { isAsync = true; }; root.postMessage('', '*'); root.onmessage = oldHandler; return isAsync; } // Use in order, setImmediate, nextTick, postMessage, MessageChannel, script readystatechanged, setTimeout if (typeof setImmediate === 'function') { scheduleMethod = setImmediate; clearMethod = clearImmediate; } else if (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') { scheduleMethod = process.nextTick; } else if (postMessageSupported()) { var MSG_PREFIX = 'ms.rx.schedule' + Math.random(), tasks = {}, taskId = 0; var onGlobalPostMessage = function (event) { // Only if we're a match to avoid any other global events if (typeof event.data === 'string' && event.data.substring(0, MSG_PREFIX.length) === MSG_PREFIX) { var handleId = event.data.substring(MSG_PREFIX.length), action = tasks[handleId]; action(); delete tasks[handleId]; } } if (root.addEventListener) { root.addEventListener('message', onGlobalPostMessage, false); } else { root.attachEvent('onmessage', onGlobalPostMessage, false); } scheduleMethod = function (action) { var currentId = taskId++; tasks[currentId] = action; root.postMessage(MSG_PREFIX + currentId, '*'); }; } else if (!!root.MessageChannel) { var channel = new root.MessageChannel(), channelTasks = {}, channelTaskId = 0; channel.port1.onmessage = function (event) { var id = event.data, action = channelTasks[id]; action(); delete channelTasks[id]; }; scheduleMethod = function (action) { var id = channelTaskId++; channelTasks[id] = action; channel.port2.postMessage(id); }; } else if ('document' in root && 'onreadystatechange' in root.document.createElement('script')) { scheduleMethod = function (action) { var scriptElement = root.document.createElement('script'); scriptElement.onreadystatechange = function () { action(); scriptElement.onreadystatechange = null; scriptElement.parentNode.removeChild(scriptElement); scriptElement = null; }; root.document.documentElement.appendChild(scriptElement); }; } else { scheduleMethod = function (action) { return localSetTimeout(action, 0); }; clearMethod = localClearTimeout; } }()); /** * Gets a scheduler that schedules work via a timed callback based upon platform. */ var timeoutScheduler = Scheduler.timeout = (function () { function scheduleNow(state, action) { var scheduler = this, disposable = new SingleAssignmentDisposable(); var id = scheduleMethod(function () { if (!disposable.isDisposed) { disposable.setDisposable(action(scheduler, state)); } }); return new CompositeDisposable(disposable, disposableCreate(function () { clearMethod(id); })); } function scheduleRelative(state, dueTime, action) { var scheduler = this, dt = Scheduler.normalize(dueTime); if (dt === 0) { return scheduler.scheduleWithState(state, action); } var disposable = new SingleAssignmentDisposable(); var id = localSetTimeout(function () { if (!disposable.isDisposed) { disposable.setDisposable(action(scheduler, state)); } }, dt); return new CompositeDisposable(disposable, disposableCreate(function () { localClearTimeout(id); })); } function scheduleAbsolute(state, dueTime, action) { return this.scheduleWithRelativeAndState(state, dueTime - this.now(), action); } return new Scheduler(defaultNow, scheduleNow, scheduleRelative, scheduleAbsolute); })(); var CatchScheduler = (function (__super__) { function scheduleNow(state, action) { return this._scheduler.scheduleWithState(state, this._wrap(action)); } function scheduleRelative(state, dueTime, action) { return this._scheduler.scheduleWithRelativeAndState(state, dueTime, this._wrap(action)); } function scheduleAbsolute(state, dueTime, action) { return this._scheduler.scheduleWithAbsoluteAndState(state, dueTime, this._wrap(action)); } inherits(CatchScheduler, __super__); function CatchScheduler(scheduler, handler) { this._scheduler = scheduler; this._handler = handler; this._recursiveOriginal = null; this._recursiveWrapper = null; __super__.call(this, this._scheduler.now.bind(this._scheduler), scheduleNow, scheduleRelative, scheduleAbsolute); } CatchScheduler.prototype._clone = function (scheduler) { return new CatchScheduler(scheduler, this._handler); }; CatchScheduler.prototype._wrap = function (action) { var parent = this; return function (self, state) { try { return action(parent._getRecursiveWrapper(self), state); } catch (e) { if (!parent._handler(e)) { throw e; } return disposableEmpty; } }; }; CatchScheduler.prototype._getRecursiveWrapper = function (scheduler) { if (this._recursiveOriginal !== scheduler) { this._recursiveOriginal = scheduler; var wrapper = this._clone(scheduler); wrapper._recursiveOriginal = scheduler; wrapper._recursiveWrapper = wrapper; this._recursiveWrapper = wrapper; } return this._recursiveWrapper; }; CatchScheduler.prototype.schedulePeriodicWithState = function (state, period, action) { var self = this, failed = false, d = new SingleAssignmentDisposable(); d.setDisposable(this._scheduler.schedulePeriodicWithState(state, period, function (state1) { if (failed) { return null; } try { return action(state1); } catch (e) { failed = true; if (!self._handler(e)) { throw e; } d.dispose(); return null; } })); return d; }; return CatchScheduler; }(Scheduler)); /** * Represents a notification to an observer. */ var Notification = Rx.Notification = (function () { function Notification(kind, hasValue) { this.hasValue = hasValue == null ? false : hasValue; this.kind = kind; } /** * Invokes the delegate corresponding to the notification or the observer's method corresponding to the notification and returns the produced result. * * @memberOf Notification * @param {Any} observerOrOnNext Delegate to invoke for an OnNext notification or Observer to invoke the notification on.. * @param {Function} onError Delegate to invoke for an OnError notification. * @param {Function} onCompleted Delegate to invoke for an OnCompleted notification. * @returns {Any} Result produced by the observation. */ Notification.prototype.accept = function (observerOrOnNext, onError, onCompleted) { return observerOrOnNext && typeof observerOrOnNext === 'object' ? this._acceptObservable(observerOrOnNext) : this._accept(observerOrOnNext, onError, onCompleted); }; /** * Returns an observable sequence with a single notification. * * @memberOf Notifications * @param {Scheduler} [scheduler] Scheduler to send out the notification calls on. * @returns {Observable} The observable sequence that surfaces the behavior of the notification upon subscription. */ Notification.prototype.toObservable = function (scheduler) { var notification = this; isScheduler(scheduler) || (scheduler = immediateScheduler); return new AnonymousObservable(function (observer) { return scheduler.schedule(function () { notification._acceptObservable(observer); notification.kind === 'N' && observer.onCompleted(); }); }); }; return Notification; })(); /** * Creates an object that represents an OnNext notification to an observer. * @param {Any} value The value contained in the notification. * @returns {Notification} The OnNext notification containing the value. */ var notificationCreateOnNext = Notification.createOnNext = (function () { function _accept (onNext) { return onNext(this.value); } function _acceptObservable(observer) { return observer.onNext(this.value); } function toString () { return 'OnNext(' + this.value + ')'; } return function (value) { var notification = new Notification('N', true); notification.value = value; notification._accept = _accept; notification._acceptObservable = _acceptObservable; notification.toString = toString; return notification; }; }()); /** * Creates an object that represents an OnError notification to an observer. * @param {Any} error The exception contained in the notification. * @returns {Notification} The OnError notification containing the exception. */ var notificationCreateOnError = Notification.createOnError = (function () { function _accept (onNext, onError) { return onError(this.exception); } function _acceptObservable(observer) { return observer.onError(this.exception); } function toString () { return 'OnError(' + this.exception + ')'; } return function (e) { var notification = new Notification('E'); notification.exception = e; notification._accept = _accept; notification._acceptObservable = _acceptObservable; notification.toString = toString; return notification; }; }()); /** * Creates an object that represents an OnCompleted notification to an observer. * @returns {Notification} The OnCompleted notification. */ var notificationCreateOnCompleted = Notification.createOnCompleted = (function () { function _accept (onNext, onError, onCompleted) { return onCompleted(); } function _acceptObservable(observer) { return observer.onCompleted(); } function toString () { return 'OnCompleted()'; } return function () { var notification = new Notification('C'); notification._accept = _accept; notification._acceptObservable = _acceptObservable; notification.toString = toString; return notification; }; }()); var Enumerator = Rx.internals.Enumerator = function (next) { this._next = next; }; Enumerator.prototype.next = function () { return this._next(); }; Enumerator.prototype[$iterator$] = function () { return this; } var Enumerable = Rx.internals.Enumerable = function (iterator) { this._iterator = iterator; }; Enumerable.prototype[$iterator$] = function () { return this._iterator(); }; Enumerable.prototype.concat = function () { var sources = this; return new AnonymousObservable(function (o) { var e = sources[$iterator$](); var isDisposed, subscription = new SerialDisposable(); var cancelable = immediateScheduler.scheduleRecursive(function (self) { if (isDisposed) { return; } try { var currentItem = e.next(); } catch (ex) { return o.onError(ex); } if (currentItem.done) { return o.onCompleted(); } // Check if promise var currentValue = currentItem.value; isPromise(currentValue) && (currentValue = observableFromPromise(currentValue)); var d = new SingleAssignmentDisposable(); subscription.setDisposable(d); d.setDisposable(currentValue.subscribe( function(x) { o.onNext(x); }, function(err) { o.onError(err); }, self) ); }); return new CompositeDisposable(subscription, cancelable, disposableCreate(function () { isDisposed = true; })); }); }; Enumerable.prototype.catchError = function () { var sources = this; return new AnonymousObservable(function (o) { var e = sources[$iterator$](); var isDisposed, subscription = new SerialDisposable(); var cancelable = immediateScheduler.scheduleRecursiveWithState(null, function (lastException, self) { if (isDisposed) { return; } try { var currentItem = e.next(); } catch (ex) { return observer.onError(ex); } if (currentItem.done) { if (lastException !== null) { o.onError(lastException); } else { o.onCompleted(); } return; } // Check if promise var currentValue = currentItem.value; isPromise(currentValue) && (currentValue = observableFromPromise(currentValue)); var d = new SingleAssignmentDisposable(); subscription.setDisposable(d); d.setDisposable(currentValue.subscribe( function(x) { o.onNext(x); }, self, function() { o.onCompleted(); })); }); return new CompositeDisposable(subscription, cancelable, disposableCreate(function () { isDisposed = true; })); }); }; Enumerable.prototype.catchErrorWhen = function (notificationHandler) { var sources = this; return new AnonymousObservable(function (o) { var exceptions = new Subject(), notifier = new Subject(), handled = notificationHandler(exceptions), notificationDisposable = handled.subscribe(notifier); var e = sources[$iterator$](); var isDisposed, lastException, subscription = new SerialDisposable(); var cancelable = immediateScheduler.scheduleRecursive(function (self) { if (isDisposed) { return; } try { var currentItem = e.next(); } catch (ex) { return o.onError(ex); } if (currentItem.done) { if (lastException) { o.onError(lastException); } else { o.onCompleted(); } return; } // Check if promise var currentValue = currentItem.value; isPromise(currentValue) && (currentValue = observableFromPromise(currentValue)); var outer = new SingleAssignmentDisposable(); var inner = new SingleAssignmentDisposable(); subscription.setDisposable(new CompositeDisposable(inner, outer)); outer.setDisposable(currentValue.subscribe( function(x) { o.onNext(x); }, function (exn) { inner.setDisposable(notifier.subscribe(self, function(ex) { o.onError(ex); }, function() { o.onCompleted(); })); exceptions.onNext(exn); }, function() { o.onCompleted(); })); }); return new CompositeDisposable(notificationDisposable, subscription, cancelable, disposableCreate(function () { isDisposed = true; })); }); }; var enumerableRepeat = Enumerable.repeat = function (value, repeatCount) { if (repeatCount == null) { repeatCount = -1; } return new Enumerable(function () { var left = repeatCount; return new Enumerator(function () { if (left === 0) { return doneEnumerator; } if (left > 0) { left--; } return { done: false, value: value }; }); }); }; var enumerableOf = Enumerable.of = function (source, selector, thisArg) { if (selector) { var selectorFn = bindCallback(selector, thisArg, 3); } return new Enumerable(function () { var index = -1; return new Enumerator( function () { return ++index < source.length ? { done: false, value: !selector ? source[index] : selectorFn(source[index], index, source) } : doneEnumerator; }); }); }; /** * Supports push-style iteration over an observable sequence. */ var Observer = Rx.Observer = function () { }; /** * Creates a notification callback from an observer. * @returns The action that forwards its input notification to the underlying observer. */ Observer.prototype.toNotifier = function () { var observer = this; return function (n) { return n.accept(observer); }; }; /** * Hides the identity of an observer. * @returns An observer that hides the identity of the specified observer. */ Observer.prototype.asObserver = function () { return new AnonymousObserver(this.onNext.bind(this), this.onError.bind(this), this.onCompleted.bind(this)); }; /** * Checks access to the observer for grammar violations. This includes checking for multiple OnError or OnCompleted calls, as well as reentrancy in any of the observer methods. * If a violation is detected, an Error is thrown from the offending observer method call. * @returns An observer that checks callbacks invocations against the observer grammar and, if the checks pass, forwards those to the specified observer. */ Observer.prototype.checked = function () { return new CheckedObserver(this); }; /** * Creates an observer from the specified OnNext, along with optional OnError, and OnCompleted actions. * @param {Function} [onNext] Observer's OnNext action implementation. * @param {Function} [onError] Observer's OnError action implementation. * @param {Function} [onCompleted] Observer's OnCompleted action implementation. * @returns {Observer} The observer object implemented using the given actions. */ var observerCreate = Observer.create = function (onNext, onError, onCompleted) { onNext || (onNext = noop); onError || (onError = defaultError); onCompleted || (onCompleted = noop); return new AnonymousObserver(onNext, onError, onCompleted); }; /** * Creates an observer from a notification callback. * * @static * @memberOf Observer * @param {Function} handler Action that handles a notification. * @returns The observer object that invokes the specified handler using a notification corresponding to each message it receives. */ Observer.fromNotifier = function (handler, thisArg) { return new AnonymousObserver(function (x) { return handler.call(thisArg, notificationCreateOnNext(x)); }, function (e) { return handler.call(thisArg, notificationCreateOnError(e)); }, function () { return handler.call(thisArg, notificationCreateOnCompleted()); }); }; /** * Schedules the invocation of observer methods on the given scheduler. * @param {Scheduler} scheduler Scheduler to schedule observer messages on. * @returns {Observer} Observer whose messages are scheduled on the given scheduler. */ Observer.prototype.notifyOn = function (scheduler) { return new ObserveOnObserver(scheduler, this); }; Observer.prototype.makeSafe = function(disposable) { return new AnonymousSafeObserver(this._onNext, this._onError, this._onCompleted, disposable); }; /** * Abstract base class for implementations of the Observer class. * This base class enforces the grammar of observers where OnError and OnCompleted are terminal messages. */ var AbstractObserver = Rx.internals.AbstractObserver = (function (__super__) { inherits(AbstractObserver, __super__); /** * Creates a new observer in a non-stopped state. */ function AbstractObserver() { this.isStopped = false; __super__.call(this); } /** * Notifies the observer of a new element in the sequence. * @param {Any} value Next element in the sequence. */ AbstractObserver.prototype.onNext = function (value) { if (!this.isStopped) { this.next(value); } }; /** * Notifies the observer that an exception has occurred. * @param {Any} error The error that has occurred. */ AbstractObserver.prototype.onError = function (error) { if (!this.isStopped) { this.isStopped = true; this.error(error); } }; /** * Notifies the observer of the end of the sequence. */ AbstractObserver.prototype.onCompleted = function () { if (!this.isStopped) { this.isStopped = true; this.completed(); } }; /** * Disposes the observer, causing it to transition to the stopped state. */ AbstractObserver.prototype.dispose = function () { this.isStopped = true; }; AbstractObserver.prototype.fail = function (e) { if (!this.isStopped) { this.isStopped = true; this.error(e); return true; } return false; }; return AbstractObserver; }(Observer)); /** * Class to create an Observer instance from delegate-based implementations of the on* methods. */ var AnonymousObserver = Rx.AnonymousObserver = (function (__super__) { inherits(AnonymousObserver, __super__); /** * Creates an observer from the specified OnNext, OnError, and OnCompleted actions. * @param {Any} onNext Observer's OnNext action implementation. * @param {Any} onError Observer's OnError action implementation. * @param {Any} onCompleted Observer's OnCompleted action implementation. */ function AnonymousObserver(onNext, onError, onCompleted) { __super__.call(this); this._onNext = onNext; this._onError = onError; this._onCompleted = onCompleted; } /** * Calls the onNext action. * @param {Any} value Next element in the sequence. */ AnonymousObserver.prototype.next = function (value) { this._onNext(value); }; /** * Calls the onError action. * @param {Any} error The error that has occurred. */ AnonymousObserver.prototype.error = function (error) { this._onError(error); }; /** * Calls the onCompleted action. */ AnonymousObserver.prototype.completed = function () { this._onCompleted(); }; return AnonymousObserver; }(AbstractObserver)); var CheckedObserver = (function (_super) { inherits(CheckedObserver, _super); function CheckedObserver(observer) { _super.call(this); this._observer = observer; this._state = 0; // 0 - idle, 1 - busy, 2 - done } var CheckedObserverPrototype = CheckedObserver.prototype; CheckedObserverPrototype.onNext = function (value) { this.checkAccess(); try { this._observer.onNext(value); } catch (e) { throw e; } finally { this._state = 0; } }; CheckedObserverPrototype.onError = function (err) { this.checkAccess(); try { this._observer.onError(err); } catch (e) { throw e; } finally { this._state = 2; } }; CheckedObserverPrototype.onCompleted = function () { this.checkAccess(); try { this._observer.onCompleted(); } catch (e) { throw e; } finally { this._state = 2; } }; CheckedObserverPrototype.checkAccess = function () { if (this._state === 1) { throw new Error('Re-entrancy detected'); } if (this._state === 2) { throw new Error('Observer completed'); } if (this._state === 0) { this._state = 1; } }; return CheckedObserver; }(Observer)); var ScheduledObserver = Rx.internals.ScheduledObserver = (function (__super__) { inherits(ScheduledObserver, __super__); function ScheduledObserver(scheduler, observer) { __super__.call(this); this.scheduler = scheduler; this.observer = observer; this.isAcquired = false; this.hasFaulted = false; this.queue = []; this.disposable = new SerialDisposable(); } ScheduledObserver.prototype.next = function (value) { var self = this; this.queue.push(function () { self.observer.onNext(value); }); }; ScheduledObserver.prototype.error = function (e) { var self = this; this.queue.push(function () { self.observer.onError(e); }); }; ScheduledObserver.prototype.completed = function () { var self = this; this.queue.push(function () { self.observer.onCompleted(); }); }; ScheduledObserver.prototype.ensureActive = function () { var isOwner = false, parent = this; if (!this.hasFaulted && this.queue.length > 0) { isOwner = !this.isAcquired; this.isAcquired = true; } if (isOwner) { this.disposable.setDisposable(this.scheduler.scheduleRecursive(function (self) { var work; if (parent.queue.length > 0) { work = parent.queue.shift(); } else { parent.isAcquired = false; return; } try { work(); } catch (ex) { parent.queue = []; parent.hasFaulted = true; throw ex; } self(); })); } }; ScheduledObserver.prototype.dispose = function () { __super__.prototype.dispose.call(this); this.disposable.dispose(); }; return ScheduledObserver; }(AbstractObserver)); var ObserveOnObserver = (function (__super__) { inherits(ObserveOnObserver, __super__); function ObserveOnObserver(scheduler, observer, cancel) { __super__.call(this, scheduler, observer); this._cancel = cancel; } ObserveOnObserver.prototype.next = function (value) { __super__.prototype.next.call(this, value); this.ensureActive(); }; ObserveOnObserver.prototype.error = function (e) { __super__.prototype.error.call(this, e); this.ensureActive(); }; ObserveOnObserver.prototype.completed = function () { __super__.prototype.completed.call(this); this.ensureActive(); }; ObserveOnObserver.prototype.dispose = function () { __super__.prototype.dispose.call(this); this._cancel && this._cancel.dispose(); this._cancel = null; }; return ObserveOnObserver; })(ScheduledObserver); var observableProto; /** * Represents a push-style collection. */ var Observable = Rx.Observable = (function () { function Observable(subscribe) { if (Rx.config.longStackSupport && hasStacks) { try { throw new Error(); } catch (e) { this.stack = e.stack.substring(e.stack.indexOf("\n") + 1); } var self = this; this._subscribe = function (observer) { var oldOnError = observer.onError.bind(observer); observer.onError = function (err) { makeStackTraceLong(err, self); oldOnError(err); }; return subscribe.call(self, observer); }; } else { this._subscribe = subscribe; } } observableProto = Observable.prototype; /** * Subscribes an observer to the observable sequence. * @param {Mixed} [observerOrOnNext] The object that is to receive notifications or an action to invoke for each element in the observable sequence. * @param {Function} [onError] Action to invoke upon exceptional termination of the observable sequence. * @param {Function} [onCompleted] Action to invoke upon graceful termination of the observable sequence. * @returns {Diposable} A disposable handling the subscriptions and unsubscriptions. */ observableProto.subscribe = observableProto.forEach = function (observerOrOnNext, onError, onCompleted) { return this._subscribe(typeof observerOrOnNext === 'object' ? observerOrOnNext : observerCreate(observerOrOnNext, onError, onCompleted)); }; /** * Subscribes to the next value in the sequence with an optional "this" argument. * @param {Function} onNext The function to invoke on each element in the observable sequence. * @param {Any} [thisArg] Object to use as this when executing callback. * @returns {Disposable} A disposable handling the subscriptions and unsubscriptions. */ observableProto.subscribeOnNext = function (onNext, thisArg) { return this._subscribe(observerCreate(typeof thisArg !== 'undefined' ? function(x) { onNext.call(thisArg, x); } : onNext)); }; /** * Subscribes to an exceptional condition in the sequence with an optional "this" argument. * @param {Function} onError The function to invoke upon exceptional termination of the observable sequence. * @param {Any} [thisArg] Object to use as this when executing callback. * @returns {Disposable} A disposable handling the subscriptions and unsubscriptions. */ observableProto.subscribeOnError = function (onError, thisArg) { return this._subscribe(observerCreate(null, typeof thisArg !== 'undefined' ? function(e) { onError.call(thisArg, e); } : onError)); }; /** * Subscribes to the next value in the sequence with an optional "this" argument. * @param {Function} onCompleted The function to invoke upon graceful termination of the observable sequence. * @param {Any} [thisArg] Object to use as this when executing callback. * @returns {Disposable} A disposable handling the subscriptions and unsubscriptions. */ observableProto.subscribeOnCompleted = function (onCompleted, thisArg) { return this._subscribe(observerCreate(null, null, typeof thisArg !== 'undefined' ? function() { onCompleted.call(thisArg); } : onCompleted)); }; return Observable; })(); var ObservableBase = Rx.ObservableBase = (function (__super__) { inherits(ObservableBase, __super__); // Fix subscriber to check for undefined or function returned to decorate as Disposable function fixSubscriber(subscriber) { if (subscriber && typeof subscriber.dispose === 'function') { return subscriber; } return typeof subscriber === 'function' ? disposableCreate(subscriber) : disposableEmpty; } function setDisposable(s, state) { var ado = state[0], self = state[1]; try { ado.setDisposable(fixSubscriber(self.subscribeCore(ado))); } catch (e) { if (!ado.fail(e)) { throw e; } } } function subscribe(observer) { var ado = new AutoDetachObserver(observer), state = [ado, this]; if (currentThreadScheduler.scheduleRequired()) { currentThreadScheduler.scheduleWithState(state, setDisposable); } else { setDisposable(null, state); } return ado; } function ObservableBase() { __super__.call(this, subscribe); } ObservableBase.prototype.subscribeCore = function(observer) { throw new Error('Not implemeneted'); } return ObservableBase; }(Observable)); /** * Wraps the source sequence in order to run its observer callbacks on the specified scheduler. * * This only invokes observer callbacks on a scheduler. In case the subscription and/or unsubscription actions have side-effects * that require to be run on a scheduler, use subscribeOn. * * @param {Scheduler} scheduler Scheduler to notify observers on. * @returns {Observable} The source sequence whose observations happen on the specified scheduler. */ observableProto.observeOn = function (scheduler) { var source = this; return new AnonymousObservable(function (observer) { return source.subscribe(new ObserveOnObserver(scheduler, observer)); }, source); }; /** * Wraps the source sequence in order to run its subscription and unsubscription logic on the specified scheduler. This operation is not commonly used; * see the remarks section for more information on the distinction between subscribeOn and observeOn. * This only performs the side-effects of subscription and unsubscription on the specified scheduler. In order to invoke observer * callbacks on a scheduler, use observeOn. * @param {Scheduler} scheduler Scheduler to perform subscription and unsubscription actions on. * @returns {Observable} The source sequence whose subscriptions and unsubscriptions happen on the specified scheduler. */ observableProto.subscribeOn = function (scheduler) { var source = this; return new AnonymousObservable(function (observer) { var m = new SingleAssignmentDisposable(), d = new SerialDisposable(); d.setDisposable(m); m.setDisposable(scheduler.schedule(function () { d.setDisposable(new ScheduledDisposable(scheduler, source.subscribe(observer))); })); return d; }, source); }; /** * Converts a Promise to an Observable sequence * @param {Promise} An ES6 Compliant promise. * @returns {Observable} An Observable sequence which wraps the existing promise success and failure. */ var observableFromPromise = Observable.fromPromise = function (promise) { return observableDefer(function () { var subject = new Rx.AsyncSubject(); promise.then( function (value) { subject.onNext(value); subject.onCompleted(); }, subject.onError.bind(subject)); return subject; }); }; /* * Converts an existing observable sequence to an ES6 Compatible Promise * @example * var promise = Rx.Observable.return(42).toPromise(RSVP.Promise); * * // With config * Rx.config.Promise = RSVP.Promise; * var promise = Rx.Observable.return(42).toPromise(); * @param {Function} [promiseCtor] The constructor of the promise. If not provided, it looks for it in Rx.config.Promise. * @returns {Promise} An ES6 compatible promise with the last value from the observable sequence. */ observableProto.toPromise = function (promiseCtor) { promiseCtor || (promiseCtor = Rx.config.Promise); if (!promiseCtor) { throw new TypeError('Promise type not provided nor in Rx.config.Promise'); } var source = this; return new promiseCtor(function (resolve, reject) { // No cancellation can be done var value, hasValue = false; source.subscribe(function (v) { value = v; hasValue = true; }, reject, function () { hasValue && resolve(value); }); }); }; /** * Creates an array from an observable sequence. * @returns {Observable} An observable sequence containing a single element with a list containing all the elements of the source sequence. */ observableProto.toArray = function () { var source = this; return new AnonymousObservable(function(observer) { var arr = []; return source.subscribe( function (x) { arr.push(x); }, function (e) { observer.onError(e); }, function () { observer.onNext(arr); observer.onCompleted(); }); }, source); }; /** * Creates an observable sequence from a specified subscribe method implementation. * @example * var res = Rx.Observable.create(function (observer) { return function () { } ); * var res = Rx.Observable.create(function (observer) { return Rx.Disposable.empty; } ); * var res = Rx.Observable.create(function (observer) { } ); * @param {Function} subscribe Implementation of the resulting observable sequence's subscribe method, returning a function that will be wrapped in a Disposable. * @returns {Observable} The observable sequence with the specified implementation for the Subscribe method. */ Observable.create = Observable.createWithDisposable = function (subscribe, parent) { return new AnonymousObservable(subscribe, parent); }; /** * Returns an observable sequence that invokes the specified factory function whenever a new observer subscribes. * * @example * var res = Rx.Observable.defer(function () { return Rx.Observable.fromArray([1,2,3]); }); * @param {Function} observableFactory Observable factory function to invoke for each observer that subscribes to the resulting sequence or Promise. * @returns {Observable} An observable sequence whose observers trigger an invocation of the given observable factory function. */ var observableDefer = Observable.defer = function (observableFactory) { return new AnonymousObservable(function (observer) { var result; try { result = observableFactory(); } catch (e) { return observableThrow(e).subscribe(observer); } isPromise(result) && (result = observableFromPromise(result)); return result.subscribe(observer); }); }; /** * Returns an empty observable sequence, using the specified scheduler to send out the single OnCompleted message. * * @example * var res = Rx.Observable.empty(); * var res = Rx.Observable.empty(Rx.Scheduler.timeout); * @param {Scheduler} [scheduler] Scheduler to send the termination call on. * @returns {Observable} An observable sequence with no elements. */ var observableEmpty = Observable.empty = function (scheduler) { isScheduler(scheduler) || (scheduler = immediateScheduler); return new AnonymousObservable(function (observer) { return scheduler.schedule(function () { observer.onCompleted(); }); }); }; var maxSafeInteger = Math.pow(2, 53) - 1; function StringIterable(str) { this._s = s; } StringIterable.prototype[$iterator$] = function () { return new StringIterator(this._s); }; function StringIterator(str) { this._s = s; this._l = s.length; this._i = 0; } StringIterator.prototype[$iterator$] = function () { return this; }; StringIterator.prototype.next = function () { if (this._i < this._l) { var val = this._s.charAt(this._i++); return { done: false, value: val }; } else { return doneEnumerator; } }; function ArrayIterable(a) { this._a = a; } ArrayIterable.prototype[$iterator$] = function () { return new ArrayIterator(this._a); }; function ArrayIterator(a) { this._a = a; this._l = toLength(a); this._i = 0; } ArrayIterator.prototype[$iterator$] = function () { return this; }; ArrayIterator.prototype.next = function () { if (this._i < this._l) { var val = this._a[this._i++]; return { done: false, value: val }; } else { return doneEnumerator; } }; function numberIsFinite(value) { return typeof value === 'number' && root.isFinite(value); } function isNan(n) { return n !== n; } function getIterable(o) { var i = o[$iterator$], it; if (!i && typeof o === 'string') { it = new StringIterable(o); return it[$iterator$](); } if (!i && o.length !== undefined) { it = new ArrayIterable(o); return it[$iterator$](); } if (!i) { throw new TypeError('Object is not iterable'); } return o[$iterator$](); } function sign(value) { var number = +value; if (number === 0) { return number; } if (isNaN(number)) { return number; } return number < 0 ? -1 : 1; } function toLength(o) { var len = +o.length; if (isNaN(len)) { return 0; } if (len === 0 || !numberIsFinite(len)) { return len; } len = sign(len) * Math.floor(Math.abs(len)); if (len <= 0) { return 0; } if (len > maxSafeInteger) { return maxSafeInteger; } return len; } /** * This method creates a new Observable sequence from an array-like or iterable object. * @param {Any} arrayLike An array-like or iterable object to convert to an Observable sequence. * @param {Function} [mapFn] Map function to call on every element of the array. * @param {Any} [thisArg] The context to use calling the mapFn if provided. * @param {Scheduler} [scheduler] Optional scheduler to use for scheduling. If not provided, defaults to Scheduler.currentThread. */ var observableFrom = Observable.from = function (iterable, mapFn, thisArg, scheduler) { if (iterable == null) { throw new Error('iterable cannot be null.') } if (mapFn && !isFunction(mapFn)) { throw new Error('mapFn when provided must be a function'); } if (mapFn) { var mapper = bindCallback(mapFn, thisArg, 2); } isScheduler(scheduler) || (scheduler = currentThreadScheduler); var list = Object(iterable), it = getIterable(list); return new AnonymousObservable(function (observer) { return scheduler.scheduleRecursiveWithState(0, function (i, self) { try { var next = it.next(); } catch (e) { observer.onError(e); return; } if (next.done) { observer.onCompleted(); return; } var result = next.value; if (mapper) { try { result = mapper(result, i); } catch (e) { observer.onError(e); return; } } observer.onNext(result); self(i + 1); }); }); }; var FromArrayObservable = (function(__super__) { inherits(FromArrayObservable, __super__); function FromArrayObservable(args, scheduler) { this.args = args; this.scheduler = scheduler || currentThreadScheduler; __super__.call(this); } FromArrayObservable.prototype.subscribeCore = function (observer) { var sink = new FromArraySink(observer, this); return sink.run(); }; return FromArrayObservable; }(ObservableBase)); var FromArraySink = (function () { function FromArraySink(observer, parent) { this.observer = observer; this.parent = parent; } function loopRecursive(state, recurse) { if (state.i < state.len) { state.observer.onNext(state.args[state.i++]); recurse(state); } else { state.observer.onCompleted(); } } FromArraySink.prototype.run = function () { return this.parent.scheduler.scheduleRecursiveWithState( {i: 0, args: this.parent.args, len: this.parent.args.length, observer: this.observer }, loopRecursive); }; return FromArraySink; }()); /** * Converts an array to an observable sequence, using an optional scheduler to enumerate the array. * @deprecated use Observable.from or Observable.of * @param {Scheduler} [scheduler] Scheduler to run the enumeration of the input sequence on. * @returns {Observable} The observable sequence whose elements are pulled from the given enumerable sequence. */ var observableFromArray = Observable.fromArray = function (array, scheduler) { return new FromArrayObservable(array, scheduler) }; /** * Generates an observable sequence by running a state-driven loop producing the sequence's elements, using the specified scheduler to send out observer messages. * * @example * var res = Rx.Observable.generate(0, function (x) { return x < 10; }, function (x) { return x + 1; }, function (x) { return x; }); * var res = Rx.Observable.generate(0, function (x) { return x < 10; }, function (x) { return x + 1; }, function (x) { return x; }, Rx.Scheduler.timeout); * @param {Mixed} initialState Initial state. * @param {Function} condition Condition to terminate generation (upon returning false). * @param {Function} iterate Iteration step function. * @param {Function} resultSelector Selector function for results produced in the sequence. * @param {Scheduler} [scheduler] Scheduler on which to run the generator loop. If not provided, defaults to Scheduler.currentThread. * @returns {Observable} The generated sequence. */ Observable.generate = function (initialState, condition, iterate, resultSelector, scheduler) { isScheduler(scheduler) || (scheduler = currentThreadScheduler); return new AnonymousObservable(function (observer) { var first = true, state = initialState; return scheduler.scheduleRecursive(function (self) { var hasResult, result; try { if (first) { first = false; } else { state = iterate(state); } hasResult = condition(state); if (hasResult) { result = resultSelector(state); } } catch (exception) { observer.onError(exception); return; } if (hasResult) { observer.onNext(result); self(); } else { observer.onCompleted(); } }); }); }; /** * Returns a non-terminating observable sequence, which can be used to denote an infinite duration (e.g. when using reactive joins). * @returns {Observable} An observable sequence whose observers will never get called. */ var observableNever = Observable.never = function () { return new AnonymousObservable(function () { return disposableEmpty; }); }; function observableOf (scheduler, array) { isScheduler(scheduler) || (scheduler = currentThreadScheduler); return new AnonymousObservable(function (observer) { var count = 0, len = array.length; return scheduler.scheduleRecursive(function (self) { if (count < len) { observer.onNext(array[count++]); self(); } else { observer.onCompleted(); } }); }); } /** * This method creates a new Observable instance with a variable number of arguments, regardless of number or type of the arguments. * @returns {Observable} The observable sequence whose elements are pulled from the given arguments. */ Observable.of = function () { for(var args = [], i = 0, len = arguments.length; i < len; i++) { args.push(arguments[i]); } return observableOf(null, args); }; /** * This method creates a new Observable instance with a variable number of arguments, regardless of number or type of the arguments. * @param {Scheduler} scheduler A scheduler to use for scheduling the arguments. * @returns {Observable} The observable sequence whose elements are pulled from the given arguments. */ Observable.ofWithScheduler = function (scheduler) { for(var args = [], i = 1, len = arguments.length; i < len; i++) { args.push(arguments[i]); } return observableOf(scheduler, args); }; /** * Convert an object into an observable sequence of [key, value] pairs. * @param {Object} obj The object to inspect. * @param {Scheduler} [scheduler] Scheduler to run the enumeration of the input sequence on. * @returns {Observable} An observable sequence of [key, value] pairs from the object. */ Observable.pairs = function (obj, scheduler) { scheduler || (scheduler = Rx.Scheduler.currentThread); return new AnonymousObservable(function (observer) { var keys = Object.keys(obj), len = keys.length; return scheduler.scheduleRecursiveWithState(0, function (idx, self) { if (idx < len) { var key = keys[idx]; observer.onNext([key, obj[key]]); self(idx + 1); } else { observer.onCompleted(); } }); }); }; /** * Generates an observable sequence of integral numbers within a specified range, using the specified scheduler to send out observer messages. * * @example * var res = Rx.Observable.range(0, 10); * var res = Rx.Observable.range(0, 10, Rx.Scheduler.timeout); * @param {Number} start The value of the first integer in the sequence. * @param {Number} count The number of sequential integers to generate. * @param {Scheduler} [scheduler] Scheduler to run the generator loop on. If not specified, defaults to Scheduler.currentThread. * @returns {Observable} An observable sequence that contains a range of sequential integral numbers. */ Observable.range = function (start, count, scheduler) { isScheduler(scheduler) || (scheduler = currentThreadScheduler); return new AnonymousObservable(function (observer) { return scheduler.scheduleRecursiveWithState(0, function (i, self) { if (i < count) { observer.onNext(start + i); self(i + 1); } else { observer.onCompleted(); } }); }); }; /** * Generates an observable sequence that repeats the given element the specified number of times, using the specified scheduler to send out observer messages. * * @example * var res = Rx.Observable.repeat(42); * var res = Rx.Observable.repeat(42, 4); * 3 - res = Rx.Observable.repeat(42, 4, Rx.Scheduler.timeout); * 4 - res = Rx.Observable.repeat(42, null, Rx.Scheduler.timeout); * @param {Mixed} value Element to repeat. * @param {Number} repeatCount [Optiona] Number of times to repeat the element. If not specified, repeats indefinitely. * @param {Scheduler} scheduler Scheduler to run the producer loop on. If not specified, defaults to Scheduler.immediate. * @returns {Observable} An observable sequence that repeats the given element the specified number of times. */ Observable.repeat = function (value, repeatCount, scheduler) { isScheduler(scheduler) || (scheduler = currentThreadScheduler); return observableReturn(value, scheduler).repeat(repeatCount == null ? -1 : repeatCount); }; /** * Returns an observable sequence that contains a single element, using the specified scheduler to send out observer messages. * There is an alias called 'just', and 'returnValue' for browsers <IE9. * @param {Mixed} value Single element in the resulting observable sequence. * @param {Scheduler} scheduler Scheduler to send the single element on. If not specified, defaults to Scheduler.immediate. * @returns {Observable} An observable sequence containing the single specified element. */ var observableReturn = Observable['return'] = Observable.just = function (value, scheduler) { isScheduler(scheduler) || (scheduler = immediateScheduler); return new AnonymousObservable(function (observer) { return scheduler.schedule(function () { observer.onNext(value); observer.onCompleted(); }); }); }; /** @deprecated use return or just */ Observable.returnValue = function () { //deprecate('returnValue', 'return or just'); return observableReturn.apply(null, arguments); }; /** * Returns an observable sequence that terminates with an exception, using the specified scheduler to send out the single onError message. * There is an alias to this method called 'throwError' for browsers <IE9. * @param {Mixed} error An object used for the sequence's termination. * @param {Scheduler} scheduler Scheduler to send the exceptional termination call on. If not specified, defaults to Scheduler.immediate. * @returns {Observable} The observable sequence that terminates exceptionally with the specified exception object. */ var observableThrow = Observable['throw'] = Observable.throwError = function (error, scheduler) { isScheduler(scheduler) || (scheduler = immediateScheduler); return new AnonymousObservable(function (observer) { return scheduler.schedule(function () { observer.onError(error); }); }); }; /** @deprecated use #some instead */ Observable.throwException = function () { //deprecate('throwException', 'throwError'); return Observable.throwError.apply(null, arguments); }; /** * Constructs an observable sequence that depends on a resource object, whose lifetime is tied to the resulting observable sequence's lifetime. * @param {Function} resourceFactory Factory function to obtain a resource object. * @param {Function} observableFactory Factory function to obtain an observable sequence that depends on the obtained resource. * @returns {Observable} An observable sequence whose lifetime controls the lifetime of the dependent resource object. */ Observable.using = function (resourceFactory, observableFactory) { return new AnonymousObservable(function (observer) { var disposable = disposableEmpty, resource, source; try { resource = resourceFactory(); resource && (disposable = resource); source = observableFactory(resource); } catch (exception) { return new CompositeDisposable(observableThrow(exception).subscribe(observer), disposable); } return new CompositeDisposable(source.subscribe(observer), disposable); }); }; /** * Propagates the observable sequence or Promise that reacts first. * @param {Observable} rightSource Second observable sequence or Promise. * @returns {Observable} {Observable} An observable sequence that surfaces either of the given sequences, whichever reacted first. */ observableProto.amb = function (rightSource) { var leftSource = this; return new AnonymousObservable(function (observer) { var choice, leftChoice = 'L', rightChoice = 'R', leftSubscription = new SingleAssignmentDisposable(), rightSubscription = new SingleAssignmentDisposable(); isPromise(rightSource) && (rightSource = observableFromPromise(rightSource)); function choiceL() { if (!choice) { choice = leftChoice; rightSubscription.dispose(); } } function choiceR() { if (!choice) { choice = rightChoice; leftSubscription.dispose(); } } leftSubscription.setDisposable(leftSource.subscribe(function (left) { choiceL(); if (choice === leftChoice) { observer.onNext(left); } }, function (err) { choiceL(); if (choice === leftChoice) { observer.onError(err); } }, function () { choiceL(); if (choice === leftChoice) { observer.onCompleted(); } })); rightSubscription.setDisposable(rightSource.subscribe(function (right) { choiceR(); if (choice === rightChoice) { observer.onNext(right); } }, function (err) { choiceR(); if (choice === rightChoice) { observer.onError(err); } }, function () { choiceR(); if (choice === rightChoice) { observer.onCompleted(); } })); return new CompositeDisposable(leftSubscription, rightSubscription); }); }; /** * Propagates the observable sequence or Promise that reacts first. * * @example * var = Rx.Observable.amb(xs, ys, zs); * @returns {Observable} An observable sequence that surfaces any of the given sequences, whichever reacted first. */ Observable.amb = function () { var acc = observableNever(), items = []; if (Array.isArray(arguments[0])) { items = arguments[0]; } else { for(var i = 0, len = arguments.length; i < len; i++) { items.push(arguments[i]); } } function func(previous, current) { return previous.amb(current); } for (var i = 0, len = items.length; i < len; i++) { acc = func(acc, items[i]); } return acc; }; function observableCatchHandler(source, handler) { return new AnonymousObservable(function (observer) { var d1 = new SingleAssignmentDisposable(), subscription = new SerialDisposable(); subscription.setDisposable(d1); d1.setDisposable(source.subscribe(observer.onNext.bind(observer), function (exception) { var d, result; try { result = handler(exception); } catch (ex) { observer.onError(ex); return; } isPromise(result) && (result = observableFromPromise(result)); d = new SingleAssignmentDisposable(); subscription.setDisposable(d); d.setDisposable(result.subscribe(observer)); }, observer.onCompleted.bind(observer))); return subscription; }, source); } /** * Continues an observable sequence that is terminated by an exception with the next observable sequence. * @example * 1 - xs.catchException(ys) * 2 - xs.catchException(function (ex) { return ys(ex); }) * @param {Mixed} handlerOrSecond Exception handler function that returns an observable sequence given the error that occurred in the first sequence, or a second observable sequence used to produce results when an error occurred in the first sequence. * @returns {Observable} An observable sequence containing the first sequence's elements, followed by the elements of the handler sequence in case an exception occurred. */ observableProto['catch'] = observableProto.catchError = function (handlerOrSecond) { return typeof handlerOrSecond === 'function' ? observableCatchHandler(this, handlerOrSecond) : observableCatch([this, handlerOrSecond]); }; /** * @deprecated use #catch or #catchError instead. */ observableProto.catchException = function (handlerOrSecond) { //deprecate('catchException', 'catch or catchError'); return this.catchError(handlerOrSecond); }; /** * Continues an observable sequence that is terminated by an exception with the next observable sequence. * @param {Array | Arguments} args Arguments or an array to use as the next sequence if an error occurs. * @returns {Observable} An observable sequence containing elements from consecutive source sequences until a source sequence terminates successfully. */ var observableCatch = Observable.catchError = Observable['catch'] = Observable.catchException = function () { var items = []; if (Array.isArray(arguments[0])) { items = arguments[0]; } else { for(var i = 0, len = arguments.length; i < len; i++) { items.push(arguments[i]); } } return enumerableOf(items).catchError(); }; /** * Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences or Promises produces an element. * This can be in the form of an argument list of observables or an array. * * @example * 1 - obs = observable.combineLatest(obs1, obs2, obs3, function (o1, o2, o3) { return o1 + o2 + o3; }); * 2 - obs = observable.combineLatest([obs1, obs2, obs3], function (o1, o2, o3) { return o1 + o2 + o3; }); * @returns {Observable} An observable sequence containing the result of combining elements of the sources using the specified result selector function. */ observableProto.combineLatest = function () { for(var args = [], i = 0, len = arguments.length; i < len; i++) { args.push(arguments[i]); } if (Array.isArray(args[0])) { args[0].unshift(this); } else { args.unshift(this); } return combineLatest.apply(this, args); }; /** * Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences or Promises produces an element. * * @example * 1 - obs = Rx.Observable.combineLatest(obs1, obs2, obs3, function (o1, o2, o3) { return o1 + o2 + o3; }); * 2 - obs = Rx.Observable.combineLatest([obs1, obs2, obs3], function (o1, o2, o3) { return o1 + o2 + o3; }); * @returns {Observable} An observable sequence containing the result of combining elements of the sources using the specified result selector function. */ var combineLatest = Observable.combineLatest = function () { for(var args = [], i = 0, len = arguments.length; i < len; i++) { args.push(arguments[i]); } var resultSelector = args.pop(); if (Array.isArray(args[0])) { args = args[0]; } return new AnonymousObservable(function (observer) { var falseFactory = function () { return false; }, n = args.length, hasValue = arrayInitialize(n, falseFactory), hasValueAll = false, isDone = arrayInitialize(n, falseFactory), values = new Array(n); function next(i) { var res; hasValue[i] = true; if (hasValueAll || (hasValueAll = hasValue.every(identity))) { try { res = resultSelector.apply(null, values); } catch (ex) { observer.onError(ex); return; } observer.onNext(res); } else if (isDone.filter(function (x, j) { return j !== i; }).every(identity)) { observer.onCompleted(); } } function done (i) { isDone[i] = true; if (isDone.every(identity)) { observer.onCompleted(); } } var subscriptions = new Array(n); for (var idx = 0; idx < n; idx++) { (function (i) { var source = args[i], sad = new SingleAssignmentDisposable(); isPromise(source) && (source = observableFromPromise(source)); sad.setDisposable(source.subscribe(function (x) { values[i] = x; next(i); }, function(e) { observer.onError(e); }, function () { done(i); } )); subscriptions[i] = sad; }(idx)); } return new CompositeDisposable(subscriptions); }, this); }; /** * Concatenates all the observable sequences. This takes in either an array or variable arguments to concatenate. * @returns {Observable} An observable sequence that contains the elements of each given sequence, in sequential order. */ observableProto.concat = function () { for(var args = [], i = 0, len = arguments.length; i < len; i++) { args.push(arguments[i]); } args.unshift(this); return observableConcat.apply(null, args); }; /** * Concatenates all the observable sequences. * @param {Array | Arguments} args Arguments or an array to concat to the observable sequence. * @returns {Observable} An observable sequence that contains the elements of each given sequence, in sequential order. */ var observableConcat = Observable.concat = function () { var items = []; if (Array.isArray(arguments[0])) { items = arguments[0]; } else { for(var i = 0, len = arguments.length; i < len; i++) { items.push(arguments[i]); } } return enumerableOf(items).concat(); }; /** * Concatenates an observable sequence of observable sequences. * @returns {Observable} An observable sequence that contains the elements of each observed inner sequence, in sequential order. */ observableProto.concatAll = observableProto.concatObservable = function () { return this.merge(1); }; /** * Merges an observable sequence of observable sequences into an observable sequence, limiting the number of concurrent subscriptions to inner sequences. * Or merges two observable sequences into a single observable sequence. * * @example * 1 - merged = sources.merge(1); * 2 - merged = source.merge(otherSource); * @param {Mixed} [maxConcurrentOrOther] Maximum number of inner observable sequences being subscribed to concurrently or the second observable sequence. * @returns {Observable} The observable sequence that merges the elements of the inner sequences. */ observableProto.merge = function (maxConcurrentOrOther) { if (typeof maxConcurrentOrOther !== 'number') { return observableMerge(this, maxConcurrentOrOther); } var sources = this; return new AnonymousObservable(function (o) { var activeCount = 0, group = new CompositeDisposable(), isStopped = false, q = []; function subscribe(xs) { var subscription = new SingleAssignmentDisposable(); group.add(subscription); // Check for promises support isPromise(xs) && (xs = observableFromPromise(xs)); subscription.setDisposable(xs.subscribe(function (x) { o.onNext(x); }, function (e) { o.onError(e); }, function () { group.remove(subscription); if (q.length > 0) { subscribe(q.shift()); } else { activeCount--; isStopped && activeCount === 0 && o.onCompleted(); } })); } group.add(sources.subscribe(function (innerSource) { if (activeCount < maxConcurrentOrOther) { activeCount++; subscribe(innerSource); } else { q.push(innerSource); } }, function (e) { o.onError(e); }, function () { isStopped = true; activeCount === 0 && o.onCompleted(); })); return group; }, sources); }; /** * Merges all the observable sequences into a single observable sequence. * The scheduler is optional and if not specified, the immediate scheduler is used. * @returns {Observable} The observable sequence that merges the elements of the observable sequences. */ var observableMerge = Observable.merge = function () { var scheduler, sources = [], i, len = arguments.length; if (!arguments[0]) { scheduler = immediateScheduler; for(i = 1; i < len; i++) { sources.push(arguments[i]); } } else if (isScheduler(arguments[0])) { scheduler = arguments[0]; for(i = 1; i < len; i++) { sources.push(arguments[i]); } } else { scheduler = immediateScheduler; for(i = 0; i < len; i++) { sources.push(arguments[i]); } } if (Array.isArray(sources[0])) { sources = sources[0]; } return observableOf(scheduler, sources).mergeAll(); }; /** * Merges an observable sequence of observable sequences into an observable sequence. * @returns {Observable} The observable sequence that merges the elements of the inner sequences. */ observableProto.mergeAll = function () { var sources = this; return new AnonymousObservable(function (o) { var group = new CompositeDisposable(), isStopped = false, m = new SingleAssignmentDisposable(); group.add(m); m.setDisposable(sources.subscribe(function (innerSource) { var innerSubscription = new SingleAssignmentDisposable(); group.add(innerSubscription); // Check for promises support isPromise(innerSource) && (innerSource = observableFromPromise(innerSource)); innerSubscription.setDisposable(innerSource.subscribe(function (x) { o.onNext(x); }, function (e) { o.onError(e); }, function () { group.remove(innerSubscription); isStopped && group.length === 1 && o.onCompleted(); })); }, function (e) { o.onError(e); }, function () { isStopped = true; group.length === 1 && o.onCompleted(); })); return group; }, sources); }; /** * @deprecated use #mergeAll instead. */ observableProto.mergeObservable = function () { //deprecate('mergeObservable', 'mergeAll'); return this.mergeAll.apply(this, arguments); }; /** * Continues an observable sequence that is terminated normally or by an exception with the next observable sequence. * @param {Observable} second Second observable sequence used to produce results after the first sequence terminates. * @returns {Observable} An observable sequence that concatenates the first and second sequence, even if the first sequence terminates exceptionally. */ observableProto.onErrorResumeNext = function (second) { if (!second) { throw new Error('Second observable is required'); } return onErrorResumeNext([this, second]); }; /** * Continues an observable sequence that is terminated normally or by an exception with the next observable sequence. * * @example * 1 - res = Rx.Observable.onErrorResumeNext(xs, ys, zs); * 1 - res = Rx.Observable.onErrorResumeNext([xs, ys, zs]); * @returns {Observable} An observable sequence that concatenates the source sequences, even if a sequence terminates exceptionally. */ var onErrorResumeNext = Observable.onErrorResumeNext = function () { var sources = []; if (Array.isArray(arguments[0])) { sources = arguments[0]; } else { for(var i = 0, len = arguments.length; i < len; i++) { sources.push(arguments[i]); } } return new AnonymousObservable(function (observer) { var pos = 0, subscription = new SerialDisposable(), cancelable = immediateScheduler.scheduleRecursive(function (self) { var current, d; if (pos < sources.length) { current = sources[pos++]; isPromise(current) && (current = observableFromPromise(current)); d = new SingleAssignmentDisposable(); subscription.setDisposable(d); d.setDisposable(current.subscribe(observer.onNext.bind(observer), self, self)); } else { observer.onCompleted(); } }); return new CompositeDisposable(subscription, cancelable); }); }; /** * Returns the values from the source observable sequence only after the other observable sequence produces a value. * @param {Observable | Promise} other The observable sequence or Promise that triggers propagation of elements of the source sequence. * @returns {Observable} An observable sequence containing the elements of the source sequence starting from the point the other sequence triggered propagation. */ observableProto.skipUntil = function (other) { var source = this; return new AnonymousObservable(function (o) { var isOpen = false; var disposables = new CompositeDisposable(source.subscribe(function (left) { isOpen && o.onNext(left); }, function (e) { o.onError(e); }, function () { isOpen && o.onCompleted(); })); isPromise(other) && (other = observableFromPromise(other)); var rightSubscription = new SingleAssignmentDisposable(); disposables.add(rightSubscription); rightSubscription.setDisposable(other.subscribe(function () { isOpen = true; rightSubscription.dispose(); }, function (e) { o.onError(e); }, function () { rightSubscription.dispose(); })); return disposables; }, source); }; /** * Transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence. * @returns {Observable} The observable sequence that at any point in time produces the elements of the most recent inner observable sequence that has been received. */ observableProto['switch'] = observableProto.switchLatest = function () { var sources = this; return new AnonymousObservable(function (observer) { var hasLatest = false, innerSubscription = new SerialDisposable(), isStopped = false, latest = 0, subscription = sources.subscribe( function (innerSource) { var d = new SingleAssignmentDisposable(), id = ++latest; hasLatest = true; innerSubscription.setDisposable(d); // Check if Promise or Observable isPromise(innerSource) && (innerSource = observableFromPromise(innerSource)); d.setDisposable(innerSource.subscribe( function (x) { latest === id && observer.onNext(x); }, function (e) { latest === id && observer.onError(e); }, function () { if (latest === id) { hasLatest = false; isStopped && observer.onCompleted(); } })); }, function (e) { observer.onError(e); }, function () { isStopped = true; !hasLatest && observer.onCompleted(); }); return new CompositeDisposable(subscription, innerSubscription); }, sources); }; /** * Returns the values from the source observable sequence until the other observable sequence produces a value. * @param {Observable | Promise} other Observable sequence or Promise that terminates propagation of elements of the source sequence. * @returns {Observable} An observable sequence containing the elements of the source sequence up to the point the other sequence interrupted further propagation. */ observableProto.takeUntil = function (other) { var source = this; return new AnonymousObservable(function (o) { isPromise(other) && (other = observableFromPromise(other)); return new CompositeDisposable( source.subscribe(o), other.subscribe(function () { o.onCompleted(); }, function (e) { o.onError(e); }, noop) ); }, source); }; /** * Merges the specified observable sequences into one observable sequence by using the selector function only when the (first) source observable sequence produces an element. * * @example * 1 - obs = obs1.withLatestFrom(obs2, obs3, function (o1, o2, o3) { return o1 + o2 + o3; }); * 2 - obs = obs1.withLatestFrom([obs2, obs3], function (o1, o2, o3) { return o1 + o2 + o3; }); * @returns {Observable} An observable sequence containing the result of combining elements of the sources using the specified result selector function. */ observableProto.withLatestFrom = function () { for(var args = [], i = 0, len = arguments.length; i < len; i++) { args.push(arguments[i]); } var resultSelector = args.pop(), source = this; if (typeof source === 'undefined') { throw new Error('Source observable not found for withLatestFrom().'); } if (typeof resultSelector !== 'function') { throw new Error('withLatestFrom() expects a resultSelector function.'); } if (Array.isArray(args[0])) { args = args[0]; } return new AnonymousObservable(function (observer) { var falseFactory = function () { return false; }, n = args.length, hasValue = arrayInitialize(n, falseFactory), hasValueAll = false, values = new Array(n); var subscriptions = new Array(n + 1); for (var idx = 0; idx < n; idx++) { (function (i) { var other = args[i], sad = new SingleAssignmentDisposable(); isPromise(other) && (other = observableFromPromise(other)); sad.setDisposable(other.subscribe(function (x) { values[i] = x; hasValue[i] = true; hasValueAll = hasValue.every(identity); }, observer.onError.bind(observer), function () {})); subscriptions[i] = sad; }(idx)); } var sad = new SingleAssignmentDisposable(); sad.setDisposable(source.subscribe(function (x) { var res; var allValues = [x].concat(values); if (!hasValueAll) return; try { res = resultSelector.apply(null, allValues); } catch (ex) { observer.onError(ex); return; } observer.onNext(res); }, observer.onError.bind(observer), function () { observer.onCompleted(); })); subscriptions[n] = sad; return new CompositeDisposable(subscriptions); }, this); }; function zipArray(second, resultSelector) { var first = this; return new AnonymousObservable(function (observer) { var index = 0, len = second.length; return first.subscribe(function (left) { if (index < len) { var right = second[index++], result; try { result = resultSelector(left, right); } catch (e) { return observer.onError(e); } observer.onNext(result); } else { observer.onCompleted(); } }, function (e) { observer.onError(e); }, function () { observer.onCompleted(); }); }, first); } function falseFactory() { return false; } function emptyArrayFactory() { return []; } /** * Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences or an array have produced an element at a corresponding index. * The last element in the arguments must be a function to invoke for each series of elements at corresponding indexes in the args. * * @example * 1 - res = obs1.zip(obs2, fn); * 1 - res = x1.zip([1,2,3], fn); * @returns {Observable} An observable sequence containing the result of combining elements of the args using the specified result selector function. */ observableProto.zip = function () { for(var args = [], i = 0, len = arguments.length; i < len; i++) { args.push(arguments[i]); } if (Array.isArray(args[0])) { return zipArray.apply(this, args); } var parent = this, resultSelector = args.pop(); args.unshift(parent); return new AnonymousObservable(function (observer) { var n = args.length, queues = arrayInitialize(n, emptyArrayFactory), isDone = arrayInitialize(n, falseFactory); function next(i) { var res, queuedValues; if (queues.every(function (x) { return x.length > 0; })) { try { queuedValues = queues.map(function (x) { return x.shift(); }); res = resultSelector.apply(parent, queuedValues); } catch (ex) { observer.onError(ex); return; } observer.onNext(res); } else if (isDone.filter(function (x, j) { return j !== i; }).every(identity)) { observer.onCompleted(); } }; function done(i) { isDone[i] = true; if (isDone.every(function (x) { return x; })) { observer.onCompleted(); } } var subscriptions = new Array(n); for (var idx = 0; idx < n; idx++) { (function (i) { var source = args[i], sad = new SingleAssignmentDisposable(); isPromise(source) && (source = observableFromPromise(source)); sad.setDisposable(source.subscribe(function (x) { queues[i].push(x); next(i); }, function (e) { observer.onError(e); }, function () { done(i); })); subscriptions[i] = sad; })(idx); } return new CompositeDisposable(subscriptions); }, parent); }; /** * Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences have produced an element at a corresponding index. * @param arguments Observable sources. * @param {Function} resultSelector Function to invoke for each series of elements at corresponding indexes in the sources. * @returns {Observable} An observable sequence containing the result of combining elements of the sources using the specified result selector function. */ Observable.zip = function () { for(var args = [], i = 0, len = arguments.length; i < len; i++) { args.push(arguments[i]); } var first = args.shift(); return first.zip.apply(first, args); }; /** * Merges the specified observable sequences into one observable sequence by emitting a list with the elements of the observable sequences at corresponding indexes. * @param arguments Observable sources. * @returns {Observable} An observable sequence containing lists of elements at corresponding indexes. */ Observable.zipArray = function () { var sources = []; if (Array.isArray(arguments[0])) { sources = arguments[0]; } else { for(var i = 0, len = arguments.length; i < len; i++) { sources.push(arguments[i]); } } return new AnonymousObservable(function (observer) { var n = sources.length, queues = arrayInitialize(n, function () { return []; }), isDone = arrayInitialize(n, function () { return false; }); function next(i) { if (queues.every(function (x) { return x.length > 0; })) { var res = queues.map(function (x) { return x.shift(); }); observer.onNext(res); } else if (isDone.filter(function (x, j) { return j !== i; }).every(identity)) { observer.onCompleted(); return; } }; function done(i) { isDone[i] = true; if (isDone.every(identity)) { observer.onCompleted(); return; } } var subscriptions = new Array(n); for (var idx = 0; idx < n; idx++) { (function (i) { subscriptions[i] = new SingleAssignmentDisposable(); subscriptions[i].setDisposable(sources[i].subscribe(function (x) { queues[i].push(x); next(i); }, function (e) { observer.onError(e); }, function () { done(i); })); })(idx); } return new CompositeDisposable(subscriptions); }); }; /** * Hides the identity of an observable sequence. * @returns {Observable} An observable sequence that hides the identity of the source sequence. */ observableProto.asObservable = function () { var source = this; return new AnonymousObservable(function (o) { return source.subscribe(o); }, this); }; /** * Projects each element of an observable sequence into zero or more buffers which are produced based on element count information. * * @example * var res = xs.bufferWithCount(10); * var res = xs.bufferWithCount(10, 1); * @param {Number} count Length of each buffer. * @param {Number} [skip] Number of elements to skip between creation of consecutive buffers. If not provided, defaults to the count. * @returns {Observable} An observable sequence of buffers. */ observableProto.bufferWithCount = function (count, skip) { if (typeof skip !== 'number') { skip = count; } return this.windowWithCount(count, skip).selectMany(function (x) { return x.toArray(); }).where(function (x) { return x.length > 0; }); }; /** * Dematerializes the explicit notification values of an observable sequence as implicit notifications. * @returns {Observable} An observable sequence exhibiting the behavior corresponding to the source sequence's notification values. */ observableProto.dematerialize = function () { var source = this; return new AnonymousObservable(function (o) { return source.subscribe(function (x) { return x.accept(o); }, function(e) { o.onError(e); }, function () { o.onCompleted(); }); }, this); }; /** * Returns an observable sequence that contains only distinct contiguous elements according to the keySelector and the comparer. * * var obs = observable.distinctUntilChanged(); * var obs = observable.distinctUntilChanged(function (x) { return x.id; }); * var obs = observable.distinctUntilChanged(function (x) { return x.id; }, function (x, y) { return x === y; }); * * @param {Function} [keySelector] A function to compute the comparison key for each element. If not provided, it projects the value. * @param {Function} [comparer] Equality comparer for computed key values. If not provided, defaults to an equality comparer function. * @returns {Observable} An observable sequence only containing the distinct contiguous elements, based on a computed key value, from the source sequence. */ observableProto.distinctUntilChanged = function (keySelector, comparer) { var source = this; comparer || (comparer = defaultComparer); return new AnonymousObservable(function (o) { var hasCurrentKey = false, currentKey; return source.subscribe(function (value) { var key = value; if (keySelector) { try { key = keySelector(value); } catch (e) { o.onError(e); return; } } if (hasCurrentKey) { try { var comparerEquals = comparer(currentKey, key); } catch (e) { o.onError(e); return; } } if (!hasCurrentKey || !comparerEquals) { hasCurrentKey = true; currentKey = key; o.onNext(value); } }, function (e) { o.onError(e); }, function () { o.onCompleted(); }); }, this); }; /** * Invokes an action for each element in the observable sequence and invokes an action upon graceful or exceptional termination of the observable sequence. * This method can be used for debugging, logging, etc. of query behavior by intercepting the message stream to run arbitrary actions for messages on the pipeline. * @param {Function | Observer} observerOrOnNext Action to invoke for each element in the observable sequence or an observer. * @param {Function} [onError] Action to invoke upon exceptional termination of the observable sequence. Used if only the observerOrOnNext parameter is also a function. * @param {Function} [onCompleted] Action to invoke upon graceful termination of the observable sequence. Used if only the observerOrOnNext parameter is also a function. * @returns {Observable} The source sequence with the side-effecting behavior applied. */ observableProto['do'] = observableProto.tap = observableProto.doAction = function (observerOrOnNext, onError, onCompleted) { var source = this, tapObserver = typeof observerOrOnNext === 'function' || typeof observerOrOnNext === 'undefined'? observerCreate(observerOrOnNext || noop, onError || noop, onCompleted || noop) : observerOrOnNext; return new AnonymousObservable(function (observer) { return source.subscribe(function (x) { try { tapObserver.onNext(x); } catch (e) { observer.onError(e); } observer.onNext(x); }, function (err) { try { tapObserver.onError(err); } catch (e) { observer.onError(e); } observer.onError(err); }, function () { try { tapObserver.onCompleted(); } catch (e) { observer.onError(e); } observer.onCompleted(); }); }, this); }; /** * Invokes an action for each element in the observable sequence. * This method can be used for debugging, logging, etc. of query behavior by intercepting the message stream to run arbitrary actions for messages on the pipeline. * @param {Function} onNext Action to invoke for each element in the observable sequence. * @param {Any} [thisArg] Object to use as this when executing callback. * @returns {Observable} The source sequence with the side-effecting behavior applied. */ observableProto.doOnNext = observableProto.tapOnNext = function (onNext, thisArg) { return this.tap(typeof thisArg !== 'undefined' ? function (x) { onNext.call(thisArg, x); } : onNext); }; /** * Invokes an action upon exceptional termination of the observable sequence. * This method can be used for debugging, logging, etc. of query behavior by intercepting the message stream to run arbitrary actions for messages on the pipeline. * @param {Function} onError Action to invoke upon exceptional termination of the observable sequence. * @param {Any} [thisArg] Object to use as this when executing callback. * @returns {Observable} The source sequence with the side-effecting behavior applied. */ observableProto.doOnError = observableProto.tapOnError = function (onError, thisArg) { return this.tap(noop, typeof thisArg !== 'undefined' ? function (e) { onError.call(thisArg, e); } : onError); }; /** * Invokes an action upon graceful termination of the observable sequence. * This method can be used for debugging, logging, etc. of query behavior by intercepting the message stream to run arbitrary actions for messages on the pipeline. * @param {Function} onCompleted Action to invoke upon graceful termination of the observable sequence. * @param {Any} [thisArg] Object to use as this when executing callback. * @returns {Observable} The source sequence with the side-effecting behavior applied. */ observableProto.doOnCompleted = observableProto.tapOnCompleted = function (onCompleted, thisArg) { return this.tap(noop, null, typeof thisArg !== 'undefined' ? function () { onCompleted.call(thisArg); } : onCompleted); }; /** * Invokes a specified action after the source observable sequence terminates gracefully or exceptionally. * @param {Function} finallyAction Action to invoke after the source observable sequence terminates. * @returns {Observable} Source sequence with the action-invoking termination behavior applied. */ observableProto['finally'] = observableProto.ensure = function (action) { var source = this; return new AnonymousObservable(function (observer) { var subscription; try { subscription = source.subscribe(observer); } catch (e) { action(); throw e; } return disposableCreate(function () { try { subscription.dispose(); } catch (e) { throw e; } finally { action(); } }); }, this); }; /** * @deprecated use #finally or #ensure instead. */ observableProto.finallyAction = function (action) { //deprecate('finallyAction', 'finally or ensure'); return this.ensure(action); }; /** * Ignores all elements in an observable sequence leaving only the termination messages. * @returns {Observable} An empty observable sequence that signals termination, successful or exceptional, of the source sequence. */ observableProto.ignoreElements = function () { var source = this; return new AnonymousObservable(function (o) { return source.subscribe(noop, function (e) { o.onError(e); }, function () { o.onCompleted(); }); }, source); }; /** * Materializes the implicit notifications of an observable sequence as explicit notification values. * @returns {Observable} An observable sequence containing the materialized notification values from the source sequence. */ observableProto.materialize = function () { var source = this; return new AnonymousObservable(function (observer) { return source.subscribe(function (value) { observer.onNext(notificationCreateOnNext(value)); }, function (e) { observer.onNext(notificationCreateOnError(e)); observer.onCompleted(); }, function () { observer.onNext(notificationCreateOnCompleted()); observer.onCompleted(); }); }, source); }; /** * Repeats the observable sequence a specified number of times. If the repeat count is not specified, the sequence repeats indefinitely. * @param {Number} [repeatCount] Number of times to repeat the sequence. If not provided, repeats the sequence indefinitely. * @returns {Observable} The observable sequence producing the elements of the given sequence repeatedly. */ observableProto.repeat = function (repeatCount) { return enumerableRepeat(this, repeatCount).concat(); }; /** * Repeats the source observable sequence the specified number of times or until it successfully terminates. If the retry count is not specified, it retries indefinitely. * Note if you encounter an error and want it to retry once, then you must use .retry(2); * * @example * var res = retried = retry.repeat(); * var res = retried = retry.repeat(2); * @param {Number} [retryCount] Number of times to retry the sequence. If not provided, retry the sequence indefinitely. * @returns {Observable} An observable sequence producing the elements of the given sequence repeatedly until it terminates successfully. */ observableProto.retry = function (retryCount) { return enumerableRepeat(this, retryCount).catchError(); }; /** * Repeats the source observable sequence upon error each time the notifier emits or until it successfully terminates. * if the notifier completes, the observable sequence completes. * * @example * var timer = Observable.timer(500); * var source = observable.retryWhen(timer); * @param {Observable} [notifier] An observable that triggers the retries or completes the observable with onNext or onCompleted respectively. * @returns {Observable} An observable sequence producing the elements of the given sequence repeatedly until it terminates successfully. */ observableProto.retryWhen = function (notifier) { return enumerableRepeat(this).catchErrorWhen(notifier); }; /** * Applies an accumulator function over an observable sequence and returns each intermediate result. The optional seed value is used as the initial accumulator value. * For aggregation behavior with no intermediate results, see Observable.aggregate. * @example * var res = source.scan(function (acc, x) { return acc + x; }); * var res = source.scan(0, function (acc, x) { return acc + x; }); * @param {Mixed} [seed] The initial accumulator value. * @param {Function} accumulator An accumulator function to be invoked on each element. * @returns {Observable} An observable sequence containing the accumulated values. */ observableProto.scan = function () { var hasSeed = false, seed, accumulator, source = this; if (arguments.length === 2) { hasSeed = true; seed = arguments[0]; accumulator = arguments[1]; } else { accumulator = arguments[0]; } return new AnonymousObservable(function (o) { var hasAccumulation, accumulation, hasValue; return source.subscribe ( function (x) { !hasValue && (hasValue = true); try { if (hasAccumulation) { accumulation = accumulator(accumulation, x); } else { accumulation = hasSeed ? accumulator(seed, x) : x; hasAccumulation = true; } } catch (e) { o.onError(e); return; } o.onNext(accumulation); }, function (e) { o.onError(e); }, function () { !hasValue && hasSeed && o.onNext(seed); o.onCompleted(); } ); }, source); }; /** * Bypasses a specified number of elements at the end of an observable sequence. * @description * This operator accumulates a queue with a length enough to store the first `count` elements. As more elements are * received, elements are taken from the front of the queue and produced on the result sequence. This causes elements to be delayed. * @param count Number of elements to bypass at the end of the source sequence. * @returns {Observable} An observable sequence containing the source sequence elements except for the bypassed ones at the end. */ observableProto.skipLast = function (count) { var source = this; return new AnonymousObservable(function (o) { var q = []; return source.subscribe(function (x) { q.push(x); q.length > count && o.onNext(q.shift()); }, function (e) { o.onError(e); }, function () { o.onCompleted(); }); }, source); }; /** * Prepends a sequence of values to an observable sequence with an optional scheduler and an argument list of values to prepend. * @example * var res = source.startWith(1, 2, 3); * var res = source.startWith(Rx.Scheduler.timeout, 1, 2, 3); * @param {Arguments} args The specified values to prepend to the observable sequence * @returns {Observable} The source sequence prepended with the specified values. */ observableProto.startWith = function () { var values, scheduler, start = 0; if (!!arguments.length && isScheduler(arguments[0])) { scheduler = arguments[0]; start = 1; } else { scheduler = immediateScheduler; } for(var args = [], i = start, len = arguments.length; i < len; i++) { args.push(arguments[i]); } return enumerableOf([observableFromArray(args, scheduler), this]).concat(); }; /** * Returns a specified number of contiguous elements from the end of an observable sequence. * @description * This operator accumulates a buffer with a length enough to store elements count elements. Upon completion of * the source sequence, this buffer is drained on the result sequence. This causes the elements to be delayed. * @param {Number} count Number of elements to take from the end of the source sequence. * @returns {Observable} An observable sequence containing the specified number of elements from the end of the source sequence. */ observableProto.takeLast = function (count) { var source = this; return new AnonymousObservable(function (o) { var q = []; return source.subscribe(function (x) { q.push(x); q.length > count && q.shift(); }, function (e) { o.onError(e); }, function () { while (q.length > 0) { o.onNext(q.shift()); } o.onCompleted(); }); }, source); }; /** * Returns an array with the specified number of contiguous elements from the end of an observable sequence. * * @description * This operator accumulates a buffer with a length enough to store count elements. Upon completion of the * source sequence, this buffer is produced on the result sequence. * @param {Number} count Number of elements to take from the end of the source sequence. * @returns {Observable} An observable sequence containing a single array with the specified number of elements from the end of the source sequence. */ observableProto.takeLastBuffer = function (count) { var source = this; return new AnonymousObservable(function (o) { var q = []; return source.subscribe(function (x) { q.push(x); q.length > count && q.shift(); }, function (e) { o.onError(e); }, function () { o.onNext(q); o.onCompleted(); }); }, source); }; /** * Projects each element of an observable sequence into zero or more windows which are produced based on element count information. * * var res = xs.windowWithCount(10); * var res = xs.windowWithCount(10, 1); * @param {Number} count Length of each window. * @param {Number} [skip] Number of elements to skip between creation of consecutive windows. If not specified, defaults to the count. * @returns {Observable} An observable sequence of windows. */ observableProto.windowWithCount = function (count, skip) { var source = this; +count || (count = 0); Math.abs(count) === Infinity && (count = 0); if (count <= 0) { throw new Error(argumentOutOfRange); } skip == null && (skip = count); +skip || (skip = 0); Math.abs(skip) === Infinity && (skip = 0); if (skip <= 0) { throw new Error(argumentOutOfRange); } return new AnonymousObservable(function (observer) { var m = new SingleAssignmentDisposable(), refCountDisposable = new RefCountDisposable(m), n = 0, q = []; function createWindow () { var s = new Subject(); q.push(s); observer.onNext(addRef(s, refCountDisposable)); } createWindow(); m.setDisposable(source.subscribe( function (x) { for (var i = 0, len = q.length; i < len; i++) { q[i].onNext(x); } var c = n - count + 1; c >= 0 && c % skip === 0 && q.shift().onCompleted(); ++n % skip === 0 && createWindow(); }, function (e) { while (q.length > 0) { q.shift().onError(e); } observer.onError(e); }, function () { while (q.length > 0) { q.shift().onCompleted(); } observer.onCompleted(); } )); return refCountDisposable; }, source); }; function concatMap(source, selector, thisArg) { var selectorFunc = bindCallback(selector, thisArg, 3); return source.map(function (x, i) { var result = selectorFunc(x, i, source); isPromise(result) && (result = observableFromPromise(result)); (isArrayLike(result) || isIterable(result)) && (result = observableFrom(result)); return result; }).concatAll(); } /** * One of the Following: * Projects each element of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence. * * @example * var res = source.concatMap(function (x) { return Rx.Observable.range(0, x); }); * Or: * Projects each element of an observable sequence to an observable sequence, invokes the result selector for the source element and each of the corresponding inner sequence's elements, and merges the results into one observable sequence. * * var res = source.concatMap(function (x) { return Rx.Observable.range(0, x); }, function (x, y) { return x + y; }); * Or: * Projects each element of the source observable sequence to the other observable sequence and merges the resulting observable sequences into one observable sequence. * * var res = source.concatMap(Rx.Observable.fromArray([1,2,3])); * @param {Function} selector A transform function to apply to each element or an observable sequence to project each element from the * source sequence onto which could be either an observable or Promise. * @param {Function} [resultSelector] A transform function to apply to each element of the intermediate sequence. * @returns {Observable} An observable sequence whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of the input sequence and then mapping each of those sequence elements and their corresponding source element to a result element. */ observableProto.selectConcat = observableProto.concatMap = function (selector, resultSelector, thisArg) { if (isFunction(selector) && isFunction(resultSelector)) { return this.concatMap(function (x, i) { var selectorResult = selector(x, i); isPromise(selectorResult) && (selectorResult = observableFromPromise(selectorResult)); (isArrayLike(selectorResult) || isIterable(selectorResult)) && (selectorResult = observableFrom(selectorResult)); return selectorResult.map(function (y, i2) { return resultSelector(x, y, i, i2); }); }); } return isFunction(selector) ? concatMap(this, selector, thisArg) : concatMap(this, function () { return selector; }); }; /** * Projects each notification of an observable sequence to an observable sequence and concats the resulting observable sequences into one observable sequence. * @param {Function} onNext A transform function to apply to each element; the second parameter of the function represents the index of the source element. * @param {Function} onError A transform function to apply when an error occurs in the source sequence. * @param {Function} onCompleted A transform function to apply when the end of the source sequence is reached. * @param {Any} [thisArg] An optional "this" to use to invoke each transform. * @returns {Observable} An observable sequence whose elements are the result of invoking the one-to-many transform function corresponding to each notification in the input sequence. */ observableProto.concatMapObserver = observableProto.selectConcatObserver = function(onNext, onError, onCompleted, thisArg) { var source = this, onNextFunc = bindCallback(onNext, thisArg, 2), onErrorFunc = bindCallback(onError, thisArg, 1), onCompletedFunc = bindCallback(onCompleted, thisArg, 0); return new AnonymousObservable(function (observer) { var index = 0; return source.subscribe( function (x) { var result; try { result = onNextFunc(x, index++); } catch (e) { observer.onError(e); return; } isPromise(result) && (result = observableFromPromise(result)); observer.onNext(result); }, function (err) { var result; try { result = onErrorFunc(err); } catch (e) { observer.onError(e); return; } isPromise(result) && (result = observableFromPromise(result)); observer.onNext(result); observer.onCompleted(); }, function () { var result; try { result = onCompletedFunc(); } catch (e) { observer.onError(e); return; } isPromise(result) && (result = observableFromPromise(result)); observer.onNext(result); observer.onCompleted(); }); }, this).concatAll(); }; /** * Returns the elements of the specified sequence or the specified value in a singleton sequence if the sequence is empty. * * var res = obs = xs.defaultIfEmpty(); * 2 - obs = xs.defaultIfEmpty(false); * * @memberOf Observable# * @param defaultValue The value to return if the sequence is empty. If not provided, this defaults to null. * @returns {Observable} An observable sequence that contains the specified default value if the source is empty; otherwise, the elements of the source itself. */ observableProto.defaultIfEmpty = function (defaultValue) { var source = this; defaultValue === undefined && (defaultValue = null); return new AnonymousObservable(function (observer) { var found = false; return source.subscribe(function (x) { found = true; observer.onNext(x); }, function (e) { observer.onError(e); }, function () { !found && observer.onNext(defaultValue); observer.onCompleted(); }); }, source); }; // Swap out for Array.findIndex function arrayIndexOfComparer(array, item, comparer) { for (var i = 0, len = array.length; i < len; i++) { if (comparer(array[i], item)) { return i; } } return -1; } function HashSet(comparer) { this.comparer = comparer; this.set = []; } HashSet.prototype.push = function(value) { var retValue = arrayIndexOfComparer(this.set, value, this.comparer) === -1; retValue && this.set.push(value); return retValue; }; /** * Returns an observable sequence that contains only distinct elements according to the keySelector and the comparer. * Usage of this operator should be considered carefully due to the maintenance of an internal lookup structure which can grow large. * * @example * var res = obs = xs.distinct(); * 2 - obs = xs.distinct(function (x) { return x.id; }); * 2 - obs = xs.distinct(function (x) { return x.id; }, function (a,b) { return a === b; }); * @param {Function} [keySelector] A function to compute the comparison key for each element. * @param {Function} [comparer] Used to compare items in the collection. * @returns {Observable} An observable sequence only containing the distinct elements, based on a computed key value, from the source sequence. */ observableProto.distinct = function (keySelector, comparer) { var source = this; comparer || (comparer = defaultComparer); return new AnonymousObservable(function (o) { var hashSet = new HashSet(comparer); return source.subscribe(function (x) { var key = x; if (keySelector) { try { key = keySelector(x); } catch (e) { o.onError(e); return; } } hashSet.push(key) && o.onNext(x); }, function (e) { o.onError(e); }, function () { o.onCompleted(); }); }, this); }; var MapObservable = (function (__super__) { inherits(MapObservable, __super__); function MapObservable(source, selector, thisArg) { this.source = source; this.selector = bindCallback(selector, thisArg, 3); __super__.call(this); } MapObservable.prototype.internalMap = function (selector, thisArg) { var self = this; return new MapObservable(this.source, function (x, i, o) { return selector(self.selector(x, i, o), i, o); }, thisArg) }; MapObservable.prototype.subscribeCore = function (observer) { return this.source.subscribe(new MapObserver(observer, this.selector, this)); }; return MapObservable; }(ObservableBase)); function MapObserver(observer, selector, source) { this.observer = observer; this.selector = selector; this.source = source; this.index = 0; this.isStopped = false; } MapObserver.prototype.onNext = function(x) { if (this.isStopped) { return; } try { var result = this.selector(x, this.index++, this.source); } catch(e) { return this.observer.onError(e); } this.observer.onNext(result); }; MapObserver.prototype.onError = function (e) { if(!this.isStopped) { this.isStopped = true; this.observer.onError(e); } }; MapObserver.prototype.onCompleted = function () { if(!this.isStopped) { this.isStopped = true; this.observer.onCompleted(); } }; MapObserver.prototype.dispose = function() { this.isStopped = true; }; MapObserver.prototype.fail = function (e) { if (!this.isStopped) { this.isStopped = true; this.observer.onError(e); return true; } return false; }; /** * Projects each element of an observable sequence into a new form by incorporating the element's index. * @param {Function} selector A transform function to apply to each source element; the second parameter of the function represents the index of the source element. * @param {Any} [thisArg] Object to use as this when executing callback. * @returns {Observable} An observable sequence whose elements are the result of invoking the transform function on each element of source. */ observableProto.map = observableProto.select = function (selector, thisArg) { var selectorFn = typeof selector === 'function' ? selector : function () { return selector; }; return this instanceof MapObservable ? this.internalMap(selector, thisArg) : new MapObservable(this, selectorFn, thisArg); }; /** * Retrieves the value of a specified nested property from all elements in * the Observable sequence. * @param {Arguments} arguments The nested properties to pluck. * @returns {Observable} Returns a new Observable sequence of property values. */ observableProto.pluck = function () { var args = arguments, len = arguments.length; if (len === 0) { throw new Error('List of properties cannot be empty.'); } return this.map(function (x) { var currentProp = x; for (var i = 0; i < len; i++) { var p = currentProp[args[i]]; if (typeof p !== 'undefined') { currentProp = p; } else { return undefined; } } return currentProp; }); }; function flatMap(source, selector, thisArg) { var selectorFunc = bindCallback(selector, thisArg, 3); return source.map(function (x, i) { var result = selectorFunc(x, i, source); isPromise(result) && (result = observableFromPromise(result)); (isArrayLike(result) || isIterable(result)) && (result = observableFrom(result)); return result; }).mergeAll(); } /** * One of the Following: * Projects each element of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence. * * @example * var res = source.selectMany(function (x) { return Rx.Observable.range(0, x); }); * Or: * Projects each element of an observable sequence to an observable sequence, invokes the result selector for the source element and each of the corresponding inner sequence's elements, and merges the results into one observable sequence. * * var res = source.selectMany(function (x) { return Rx.Observable.range(0, x); }, function (x, y) { return x + y; }); * Or: * Projects each element of the source observable sequence to the other observable sequence and merges the resulting observable sequences into one observable sequence. * * var res = source.selectMany(Rx.Observable.fromArray([1,2,3])); * @param {Function} selector A transform function to apply to each element or an observable sequence to project each element from the source sequence onto which could be either an observable or Promise. * @param {Function} [resultSelector] A transform function to apply to each element of the intermediate sequence. * @param {Any} [thisArg] Object to use as this when executing callback. * @returns {Observable} An observable sequence whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of the input sequence and then mapping each of those sequence elements and their corresponding source element to a result element. */ observableProto.selectMany = observableProto.flatMap = function (selector, resultSelector, thisArg) { if (isFunction(selector) && isFunction(resultSelector)) { return this.flatMap(function (x, i) { var selectorResult = selector(x, i); isPromise(selectorResult) && (selectorResult = observableFromPromise(selectorResult)); (isArrayLike(selectorResult) || isIterable(selectorResult)) && (selectorResult = observableFrom(selectorResult)); return selectorResult.map(function (y, i2) { return resultSelector(x, y, i, i2); }); }, thisArg); } return isFunction(selector) ? flatMap(this, selector, thisArg) : flatMap(this, function () { return selector; }); }; /** * Projects each notification of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence. * @param {Function} onNext A transform function to apply to each element; the second parameter of the function represents the index of the source element. * @param {Function} onError A transform function to apply when an error occurs in the source sequence. * @param {Function} onCompleted A transform function to apply when the end of the source sequence is reached. * @param {Any} [thisArg] An optional "this" to use to invoke each transform. * @returns {Observable} An observable sequence whose elements are the result of invoking the one-to-many transform function corresponding to each notification in the input sequence. */ observableProto.flatMapObserver = observableProto.selectManyObserver = function (onNext, onError, onCompleted, thisArg) { var source = this; return new AnonymousObservable(function (observer) { var index = 0; return source.subscribe( function (x) { var result; try { result = onNext.call(thisArg, x, index++); } catch (e) { observer.onError(e); return; } isPromise(result) && (result = observableFromPromise(result)); observer.onNext(result); }, function (err) { var result; try { result = onError.call(thisArg, err); } catch (e) { observer.onError(e); return; } isPromise(result) && (result = observableFromPromise(result)); observer.onNext(result); observer.onCompleted(); }, function () { var result; try { result = onCompleted.call(thisArg); } catch (e) { observer.onError(e); return; } isPromise(result) && (result = observableFromPromise(result)); observer.onNext(result); observer.onCompleted(); }); }, source).mergeAll(); }; /** * Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then * transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence. * @param {Function} selector A transform function to apply to each source element; the second parameter of the function represents the index of the source element. * @param {Any} [thisArg] Object to use as this when executing callback. * @returns {Observable} An observable sequence whose elements are the result of invoking the transform function on each element of source producing an Observable of Observable sequences * and that at any point in time produces the elements of the most recent inner observable sequence that has been received. */ observableProto.selectSwitch = observableProto.flatMapLatest = observableProto.switchMap = function (selector, thisArg) { return this.select(selector, thisArg).switchLatest(); }; /** * Bypasses a specified number of elements in an observable sequence and then returns the remaining elements. * @param {Number} count The number of elements to skip before returning the remaining elements. * @returns {Observable} An observable sequence that contains the elements that occur after the specified index in the input sequence. */ observableProto.skip = function (count) { if (count < 0) { throw new Error(argumentOutOfRange); } var source = this; return new AnonymousObservable(function (o) { var remaining = count; return source.subscribe(function (x) { if (remaining <= 0) { o.onNext(x); } else { remaining--; } }, function (e) { o.onError(e); }, function () { o.onCompleted(); }); }, source); }; /** * Bypasses elements in an observable sequence as long as a specified condition is true and then returns the remaining elements. * The element's index is used in the logic of the predicate function. * * var res = source.skipWhile(function (value) { return value < 10; }); * var res = source.skipWhile(function (value, index) { return value < 10 || index < 10; }); * @param {Function} predicate A function to test each element for a condition; the second parameter of the function represents the index of the source element. * @param {Any} [thisArg] Object to use as this when executing callback. * @returns {Observable} An observable sequence that contains the elements from the input sequence starting at the first element in the linear series that does not pass the test specified by predicate. */ observableProto.skipWhile = function (predicate, thisArg) { var source = this, callback = bindCallback(predicate, thisArg, 3); return new AnonymousObservable(function (o) { var i = 0, running = false; return source.subscribe(function (x) { if (!running) { try { running = !callback(x, i++, source); } catch (e) { o.onError(e); return; } } running && o.onNext(x); }, function (e) { o.onError(e); }, function () { o.onCompleted(); }); }, source); }; /** * Returns a specified number of contiguous elements from the start of an observable sequence, using the specified scheduler for the edge case of take(0). * * var res = source.take(5); * var res = source.take(0, Rx.Scheduler.timeout); * @param {Number} count The number of elements to return. * @param {Scheduler} [scheduler] Scheduler used to produce an OnCompleted message in case <paramref name="count count</paramref> is set to 0. * @returns {Observable} An observable sequence that contains the specified number of elements from the start of the input sequence. */ observableProto.take = function (count, scheduler) { if (count < 0) { throw new RangeError(argumentOutOfRange); } if (count === 0) { return observableEmpty(scheduler); } var source = this; return new AnonymousObservable(function (o) { var remaining = count; return source.subscribe(function (x) { if (remaining-- > 0) { o.onNext(x); remaining === 0 && o.onCompleted(); } }, function (e) { o.onError(e); }, function () { o.onCompleted(); }); }, source); }; /** * Returns elements from an observable sequence as long as a specified condition is true. * The element's index is used in the logic of the predicate function. * @param {Function} predicate A function to test each element for a condition; the second parameter of the function represents the index of the source element. * @param {Any} [thisArg] Object to use as this when executing callback. * @returns {Observable} An observable sequence that contains the elements from the input sequence that occur before the element at which the test no longer passes. */ observableProto.takeWhile = function (predicate, thisArg) { var source = this, callback = bindCallback(predicate, thisArg, 3); return new AnonymousObservable(function (o) { var i = 0, running = true; return source.subscribe(function (x) { if (running) { try { running = callback(x, i++, source); } catch (e) { o.onError(e); return; } if (running) { o.onNext(x); } else { o.onCompleted(); } } }, function (e) { o.onError(e); }, function () { o.onCompleted(); }); }, source); }; var FilterObservable = (function (__super__) { inherits(FilterObservable, __super__); function FilterObservable(source, predicate, thisArg) { this.source = source; this.predicate = bindCallback(predicate, thisArg, 3); __super__.call(this); } FilterObservable.prototype.subscribeCore = function (observer) { return this.source.subscribe(new FilterObserver(observer, this.predicate, this)); }; FilterObservable.prototype.internalFilter = function(predicate, thisArg) { var self = this; return new FilterObservable(this.source, function(x, i, o) { return self.predicate(x, i, o) && predicate(x, i, o); }, thisArg); }; return FilterObservable; }(ObservableBase)); function FilterObserver(observer, predicate, source) { this.observer = observer; this.predicate = predicate; this.source = source; this.index = 0; this.isStopped = false; } FilterObserver.prototype.onNext = function(x) { try { var shouldYield = this.predicate(x, this.index++, this.source); } catch(e) { return this.observer.onError(e); } shouldYield && this.observer.onNext(x); }; FilterObserver.prototype.onError = function (e) { if(!this.isStopped) { this.isStopped = true; this.observer.onError(e); } }; FilterObserver.prototype.onCompleted = function () { if(!this.isStopped) { this.isStopped = true; this.observer.onCompleted(); } }; FilterObserver.prototype.dispose = function() { this.isStopped = true; }; FilterObserver.prototype.fail = function (e) { if (!this.isStopped) { this.isStopped = true; this.observer.onError(e); return true; } return false; }; /** * Filters the elements of an observable sequence based on a predicate by incorporating the element's index. * @param {Function} predicate A function to test each source element for a condition; the second parameter of the function represents the index of the source element. * @param {Any} [thisArg] Object to use as this when executing callback. * @returns {Observable} An observable sequence that contains elements from the input sequence that satisfy the condition. */ observableProto.filter = observableProto.where = function (predicate, thisArg) { return this instanceof FilterObservable ? this.internalFilter(predicate, thisArg) : new FilterObservable(this, predicate, thisArg); }; /** * Executes a transducer to transform the observable sequence * @param {Transducer} transducer A transducer to execute * @returns {Observable} An Observable sequence containing the results from the transducer. */ observableProto.transduce = function(transducer) { var source = this; function transformForObserver(observer) { return { init: function() { return observer; }, step: function(obs, input) { return obs.onNext(input); }, result: function(obs) { return obs.onCompleted(); } }; } return new AnonymousObservable(function(observer) { var xform = transducer(transformForObserver(observer)); return source.subscribe( function(v) { try { xform.step(observer, v); } catch (e) { observer.onError(e); } }, observer.onError.bind(observer), function() { xform.result(observer); } ); }, source); }; var AnonymousObservable = Rx.AnonymousObservable = (function (__super__) { inherits(AnonymousObservable, __super__); // Fix subscriber to check for undefined or function returned to decorate as Disposable function fixSubscriber(subscriber) { if (subscriber && typeof subscriber.dispose === 'function') { return subscriber; } return typeof subscriber === 'function' ? disposableCreate(subscriber) : disposableEmpty; } function setDisposable(s, state) { var ado = state[0], subscribe = state[1]; try { ado.setDisposable(fixSubscriber(subscribe(ado))); } catch (e) { if (!ado.fail(e)) { throw e; } } } function AnonymousObservable(subscribe, parent) { this.source = parent; function s(observer) { var ado = new AutoDetachObserver(observer), state = [ado, subscribe]; if (currentThreadScheduler.scheduleRequired()) { currentThreadScheduler.scheduleWithState(state, setDisposable); } else { setDisposable(null, state); } return ado; } __super__.call(this, s); } return AnonymousObservable; }(Observable)); var AutoDetachObserver = (function (__super__) { inherits(AutoDetachObserver, __super__); function AutoDetachObserver(observer) { __super__.call(this); this.observer = observer; this.m = new SingleAssignmentDisposable(); } var AutoDetachObserverPrototype = AutoDetachObserver.prototype; AutoDetachObserverPrototype.next = function (value) { var noError = false; try { this.observer.onNext(value); noError = true; } catch (e) { throw e; } finally { !noError && this.dispose(); } }; AutoDetachObserverPrototype.error = function (err) { try { this.observer.onError(err); } catch (e) { throw e; } finally { this.dispose(); } }; AutoDetachObserverPrototype.completed = function () { try { this.observer.onCompleted(); } catch (e) { throw e; } finally { this.dispose(); } }; AutoDetachObserverPrototype.setDisposable = function (value) { this.m.setDisposable(value); }; AutoDetachObserverPrototype.getDisposable = function () { return this.m.getDisposable(); }; AutoDetachObserverPrototype.dispose = function () { __super__.prototype.dispose.call(this); this.m.dispose(); }; return AutoDetachObserver; }(AbstractObserver)); var InnerSubscription = function (subject, observer) { this.subject = subject; this.observer = observer; }; InnerSubscription.prototype.dispose = function () { if (!this.subject.isDisposed && this.observer !== null) { var idx = this.subject.observers.indexOf(this.observer); this.subject.observers.splice(idx, 1); this.observer = null; } }; /** * Represents an object that is both an observable sequence as well as an observer. * Each notification is broadcasted to all subscribed observers. */ var Subject = Rx.Subject = (function (__super__) { function subscribe(observer) { checkDisposed(this); if (!this.isStopped) { this.observers.push(observer); return new InnerSubscription(this, observer); } if (this.hasError) { observer.onError(this.error); return disposableEmpty; } observer.onCompleted(); return disposableEmpty; } inherits(Subject, __super__); /** * Creates a subject. */ function Subject() { __super__.call(this, subscribe); this.isDisposed = false, this.isStopped = false, this.observers = []; this.hasError = false; } addProperties(Subject.prototype, Observer.prototype, { /** * Indicates whether the subject has observers subscribed to it. * @returns {Boolean} Indicates whether the subject has observers subscribed to it. */ hasObservers: function () { return this.observers.length > 0; }, /** * Notifies all subscribed observers about the end of the sequence. */ onCompleted: function () { checkDisposed(this); if (!this.isStopped) { this.isStopped = true; for (var i = 0, os = cloneArray(this.observers), len = os.length; i < len; i++) { os[i].onCompleted(); } this.observers.length = 0; } }, /** * Notifies all subscribed observers about the exception. * @param {Mixed} error The exception to send to all observers. */ onError: function (error) { checkDisposed(this); if (!this.isStopped) { this.isStopped = true; this.error = error; this.hasError = true; for (var i = 0, os = cloneArray(this.observers), len = os.length; i < len; i++) { os[i].onError(error); } this.observers.length = 0; } }, /** * Notifies all subscribed observers about the arrival of the specified element in the sequence. * @param {Mixed} value The value to send to all observers. */ onNext: function (value) { checkDisposed(this); if (!this.isStopped) { for (var i = 0, os = cloneArray(this.observers), len = os.length; i < len; i++) { os[i].onNext(value); } } }, /** * Unsubscribe all observers and release resources. */ dispose: function () { this.isDisposed = true; this.observers = null; } }); /** * Creates a subject from the specified observer and observable. * @param {Observer} observer The observer used to send messages to the subject. * @param {Observable} observable The observable used to subscribe to messages sent from the subject. * @returns {Subject} Subject implemented using the given observer and observable. */ Subject.create = function (observer, observable) { return new AnonymousSubject(observer, observable); }; return Subject; }(Observable)); /** * Represents the result of an asynchronous operation. * The last value before the OnCompleted notification, or the error received through OnError, is sent to all subscribed observers. */ var AsyncSubject = Rx.AsyncSubject = (function (__super__) { function subscribe(observer) { checkDisposed(this); if (!this.isStopped) { this.observers.push(observer); return new InnerSubscription(this, observer); } if (this.hasError) { observer.onError(this.error); } else if (this.hasValue) { observer.onNext(this.value); observer.onCompleted(); } else { observer.onCompleted(); } return disposableEmpty; } inherits(AsyncSubject, __super__); /** * Creates a subject that can only receive one value and that value is cached for all future observations. * @constructor */ function AsyncSubject() { __super__.call(this, subscribe); this.isDisposed = false; this.isStopped = false; this.hasValue = false; this.observers = []; this.hasError = false; } addProperties(AsyncSubject.prototype, Observer, { /** * Indicates whether the subject has observers subscribed to it. * @returns {Boolean} Indicates whether the subject has observers subscribed to it. */ hasObservers: function () { checkDisposed(this); return this.observers.length > 0; }, /** * Notifies all subscribed observers about the end of the sequence, also causing the last received value to be sent out (if any). */ onCompleted: function () { var i, len; checkDisposed(this); if (!this.isStopped) { this.isStopped = true; var os = cloneArray(this.observers), len = os.length; if (this.hasValue) { for (i = 0; i < len; i++) { var o = os[i]; o.onNext(this.value); o.onCompleted(); } } else { for (i = 0; i < len; i++) { os[i].onCompleted(); } } this.observers.length = 0; } }, /** * Notifies all subscribed observers about the error. * @param {Mixed} error The Error to send to all observers. */ onError: function (error) { checkDisposed(this); if (!this.isStopped) { this.isStopped = true; this.hasError = true; this.error = error; for (var i = 0, os = cloneArray(this.observers), len = os.length; i < len; i++) { os[i].onError(error); } this.observers.length = 0; } }, /** * Sends a value to the subject. The last value received before successful termination will be sent to all subscribed and future observers. * @param {Mixed} value The value to store in the subject. */ onNext: function (value) { checkDisposed(this); if (this.isStopped) { return; } this.value = value; this.hasValue = true; }, /** * Unsubscribe all observers and release resources. */ dispose: function () { this.isDisposed = true; this.observers = null; this.exception = null; this.value = null; } }); return AsyncSubject; }(Observable)); var AnonymousSubject = Rx.AnonymousSubject = (function (__super__) { inherits(AnonymousSubject, __super__); function subscribe(observer) { return this.observable.subscribe(observer); } function AnonymousSubject(observer, observable) { this.observer = observer; this.observable = observable; __super__.call(this, subscribe); } addProperties(AnonymousSubject.prototype, Observer.prototype, { onCompleted: function () { this.observer.onCompleted(); }, onError: function (error) { this.observer.onError(error); }, onNext: function (value) { this.observer.onNext(value); } }); return AnonymousSubject; }(Observable)); if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) { root.Rx = Rx; define(function() { return Rx; }); } else if (freeExports && freeModule) { // in Node.js or RingoJS if (moduleExports) { (freeModule.exports = Rx).Rx = Rx; } else { freeExports.Rx = Rx; } } else { // in a browser or Rhino root.Rx = Rx; } // All code before this point will be filtered from stack traces. var rEndingLine = captureLine(); }.call(this));
src/isomorphic/classic/element/ReactElementValidator.js
yjyi/react
/** * Copyright 2014-2015, 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. * * @providesModule ReactElementValidator */ /** * ReactElementValidator provides a wrapper around a element factory * which validates the props passed to the element. This is intended to be * used only in DEV and could be replaced by a static type checker for languages * that support it. */ 'use strict'; var ReactElement = require('ReactElement'); var ReactPropTypeLocations = require('ReactPropTypeLocations'); var ReactPropTypeLocationNames = require('ReactPropTypeLocationNames'); var ReactCurrentOwner = require('ReactCurrentOwner'); var getIteratorFn = require('getIteratorFn'); var invariant = require('invariant'); var warning = require('warning'); function getDeclarationErrorAddendum() { if (ReactCurrentOwner.current) { var name = ReactCurrentOwner.current.getName(); if (name) { return ' Check the render method of `' + name + '`.'; } } return ''; } /** * Warn if there's no key explicitly set on dynamic arrays of children or * object keys are not valid. This allows us to keep track of children between * updates. */ var ownerHasKeyUseWarning = {}; var loggedTypeFailures = {}; /** * Warn if the element doesn't have an explicit key assigned to it. * This element is in an array. The array could grow and shrink or be * reordered. All children that haven't already been validated are required to * have a "key" property assigned to it. * * @internal * @param {ReactElement} element Element that requires a key. * @param {*} parentType element's parent's type. */ function validateExplicitKey(element, parentType) { if (element._store.validated || element.key != null) { return; } element._store.validated = true; var addenda = getAddendaForKeyUse('uniqueKey', element, parentType); if (addenda === null) { // we already showed the warning return; } warning( false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s%s', addenda.parentOrOwner || '', addenda.childOwner || '', addenda.url || '' ); } /** * Shared warning and monitoring code for the key warnings. * * @internal * @param {string} messageType A key used for de-duping warnings. * @param {ReactElement} element Component that requires a key. * @param {*} parentType element's parent's type. * @returns {?object} A set of addenda to use in the warning message, or null * if the warning has already been shown before (and shouldn't be shown again). */ function getAddendaForKeyUse(messageType, element, parentType) { var addendum = getDeclarationErrorAddendum(); if (!addendum) { var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name; if (parentName) { addendum = ` Check the top-level render call using <${parentName}>.`; } } var memoizer = ownerHasKeyUseWarning[messageType] || ( ownerHasKeyUseWarning[messageType] = {} ); if (memoizer[addendum]) { return null; } memoizer[addendum] = true; var addenda = { parentOrOwner: addendum, url: ' See https://fb.me/react-warning-keys for more information.', childOwner: null, }; // Usually the current owner is the offender, but if it accepts children as a // property, it may be the creator of the child that's responsible for // assigning it a key. if (element && element._owner && element._owner !== ReactCurrentOwner.current) { // Give the component that originally created this child. addenda.childOwner = ` It was passed a child from ${element._owner.getName()}.`; } return addenda; } /** * Ensure that every element either is passed in a static location, in an * array with an explicit keys property defined, or in an object literal * with valid key property. * * @internal * @param {ReactNode} node Statically passed child of any type. * @param {*} parentType node's parent's type. */ function validateChildKeys(node, parentType) { if (typeof node !== 'object') { return; } if (Array.isArray(node)) { for (var i = 0; i < node.length; i++) { var child = node[i]; if (ReactElement.isValidElement(child)) { validateExplicitKey(child, parentType); } } } else if (ReactElement.isValidElement(node)) { // This element was passed in a valid location. if (node._store) { node._store.validated = true; } } else if (node) { var iteratorFn = getIteratorFn(node); // Entry iterators provide implicit keys. if (iteratorFn) { if (iteratorFn !== node.entries) { var iterator = iteratorFn.call(node); var step; while (!(step = iterator.next()).done) { if (ReactElement.isValidElement(step.value)) { validateExplicitKey(step.value, parentType); } } } } } } /** * Assert that the props are valid * * @param {string} componentName Name of the component for error messages. * @param {object} propTypes Map of prop name to a ReactPropType * @param {object} props * @param {string} location e.g. "prop", "context", "child context" * @private */ function checkPropTypes(componentName, propTypes, props, location) { for (var propName in propTypes) { if (propTypes.hasOwnProperty(propName)) { var error; // Prop type validation may throw. In case they do, we don't want to // fail the render phase where it didn't fail before. So we log it. // After these have been cleaned up, we'll let them throw. try { // This is intentionally an invariant that gets caught. It's the same // behavior as without this statement except with a better message. invariant( typeof propTypes[propName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', componentName || 'React class', ReactPropTypeLocationNames[location], propName ); error = propTypes[propName](props, propName, componentName, location); } catch (ex) { error = ex; } warning( !error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', ReactPropTypeLocationNames[location], propName, typeof error ); if (error instanceof Error && !(error.message in loggedTypeFailures)) { // Only monitor this failure once because there tends to be a lot of the // same error. loggedTypeFailures[error.message] = true; var addendum = getDeclarationErrorAddendum(); warning(false, 'Failed propType: %s%s', error.message, addendum); } } } } /** * Given an element, validate that its props follow the propTypes definition, * provided by the type. * * @param {ReactElement} element */ function validatePropTypes(element) { var componentClass = element.type; if (typeof componentClass !== 'function') { return; } var name = componentClass.displayName || componentClass.name; if (componentClass.propTypes) { checkPropTypes( name, componentClass.propTypes, element.props, ReactPropTypeLocations.prop ); } if (typeof componentClass.getDefaultProps === 'function') { warning( componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.' ); } } var ReactElementValidator = { createElement: function(type, props, children) { // We warn in this case but don't throw. We expect the element creation to // succeed and there will likely be errors in render. warning(typeof type === 'string' || typeof type === 'function', 'React.createElement: type should not be null, undefined, boolean, or ' + 'number. It should be a string (for DOM elements) or a ReactClass ' + '(for composite components).%s', getDeclarationErrorAddendum() ); var element = ReactElement.createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used. // TODO: Drop this when these are no longer allowed as the type argument. if (element == null) { return element; } for (var i = 2; i < arguments.length; i++) { validateChildKeys(arguments[i], type); } validatePropTypes(element); return element; }, createFactory: function(type) { var validatedFactory = ReactElementValidator.createElement.bind( null, type ); // Legacy hook TODO: Warn if this is accessed validatedFactory.type = type; if (__DEV__) { try { Object.defineProperty( validatedFactory, 'type', { enumerable: false, get: function() { warning( false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.' ); Object.defineProperty(this, 'type', { value: type, }); return type; }, } ); } catch (x) { // IE will fail on defineProperty (es5-shim/sham too) } } return validatedFactory; }, cloneElement: function(element, props, children) { var newElement = ReactElement.cloneElement.apply(this, arguments); for (var i = 2; i < arguments.length; i++) { validateChildKeys(arguments[i], newElement.type); } validatePropTypes(newElement); return newElement; }, }; module.exports = ReactElementValidator;
components/Header.js
sunday-school/sundayschool.rocks
import React from 'react' import Nav from './Nav' import Church from './Church' const Header = ({children}) => <header className='bb cf mb3'> <div className='fl w-10'> <Church /> </div> <div className='fl w-60'> <h1 className='pa0 ma0'>{children}</h1> </div> <div className='fl w-30'> <Nav /> </div> </header> export default Header
src/browser/app/components/Radio.js
skallet/este
// @flow import type { CheckboxProps } from './Checkbox'; import type { Strict } from '../themes/types'; import Checkbox from './Checkbox'; import React from 'react'; export type RadioProps = CheckboxProps & { value: string | number, }; const defaultSvgIconChecked = ( <svg viewBox="7 9 70 70"> <path d="M45,24c11.579,0,21,9.42,21,21c0,11.579-9.421,21-21,21c-11.58,0-21-9.421-21-21C24,33.42,33.42,24,45,24 M45,20c-13.807,0-25,11.193-25,25c0,13.807,11.193,25,25,25c13.807,0,25-11.193,25-25C70,31.193,58.807,20,45,20L45,20z" fill="#000" /> <circle cx="45" cy="45" r="16.77" /> </svg> ); const defaultSvgIconUnchecked = ( <svg viewBox="7 9 70 70"> <path d="M45,24c11.579,0,21,9.42,21,21c0,11.579-9.421,21-21,21c-11.58,0-21-9.421-21-21C24,33.42,33.42,24,45,24 M45,20c-13.807,0-25,11.193-25,25s11.193,25,25,25s25-11.193,25-25S58.807,20,45,20L45,20z" /> </svg> ); const mapField = (field, value) => ({ onChange: () => field.onChange({ value }), value: value === field.value, }); const Radio = ({ display = 'inline-flex', field, value, svgIconChecked = defaultSvgIconChecked, svgIconUnchecked = defaultSvgIconUnchecked, ...props }: Strict<RadioProps>) => ( <Checkbox display={display} field={mapField(field, value)} svgIconChecked={svgIconChecked} svgIconUnchecked={svgIconUnchecked} {...props} /> ); export default Radio;
admin/client/components/ListSort.js
kumo/keystone
import { FormNote } from 'elemental'; import classNames from 'classnames'; import React from 'react'; import Popout from './Popout'; import PopoutList from './PopoutList'; import Transition from 'react-addons-css-transition-group'; import vkey from 'vkey'; import CurrentListStore from '../stores/CurrentListStore'; var ListSort = React.createClass({ displayName: 'ListSort', getInitialState () { return { altDown: false, popoutIsOpen: false }; }, componentDidMount () { document.body.addEventListener('keydown', this.handleKeyDown, false); document.body.addEventListener('keyup', this.handleKeyUp, false); }, componentWillUnmount () { document.body.removeEventListener('keydown', this.handleKeyDown); document.body.removeEventListener('keyup', this.handleKeyUp); }, handleKeyDown (e) { if (vkey[e.keyCode] !== '<alt>') return; this.setState({ altDown: true }); }, handleKeyUp (e) { if (vkey[e.keyCode] !== '<alt>') return; this.setState({ altDown: false }); }, openPopout () { this.setState({ popoutIsOpen: true }); }, closePopout () { this.setState({ popoutIsOpen: false }); }, handleSortSelect (path, inverted) { if (this.state.altDown) inverted = true; if (inverted) path = '-' + path; this.closePopout(); CurrentListStore.setActiveSort(path); }, renderSortOptions () { // TODO: Handle multiple sort paths let activeSortPath = CurrentListStore.getActiveSort().paths[0]; return CurrentListStore.getAvailableColumns().map((el, i) => { if (el.type === 'heading') { return <PopoutList.Heading key={'heading_' + i}>{el.content}</PopoutList.Heading>; } let path = el.field.path; let isSelected = activeSortPath && activeSortPath.path === path; let isInverted = isSelected && activeSortPath.invert; let icon = this.state.altDown || (isSelected && !isInverted) ? 'chevron-up' : 'chevron-down'; return ( <PopoutList.Item key={'column_' + el.field.path} icon={icon} isSelected={isSelected} label={el.field.label} onClick={() => { this.handleSortSelect(path, isSelected && !isInverted); }} /> ); }); }, render () { // TODO: Handle multiple sort paths let activeSortPath = CurrentListStore.getActiveSort().paths[0]; return ( <span> {activeSortPath && ( <span> <span className="ListHeader__sortedby"> sorted by </span> <a id="listHeaderSortButton" href="javascript:;" onClick={this.openPopout}> {activeSortPath.label.toLowerCase()} {activeSortPath.invert ? ' (descending)' : ''} <span className="disclosure-arrow" /> </a> </span> )} <Popout isOpen={this.state.popoutIsOpen} onCancel={this.closePopout} relativeToID="listHeaderSortButton"> <Popout.Header title="Sort" /> <Popout.Body scrollable> <PopoutList> {this.renderSortOptions()} </PopoutList> </Popout.Body> <Popout.Footer> <FormNote>Hold <kbd>alt</kbd> to toggle ascending/descending</FormNote> </Popout.Footer> </Popout> </span> ); } }); module.exports = ListSort;
src/js/modules/ReadingEntitiesD3V4.js
fredyagomez/reactjs-D3-V4-grommet
import React from 'react'; import * as d3 from 'd3'; import DiagramBox from './DiagramBox'; import DiagramTitle from './DiagramTitle'; import DiagramLine from './DiagramLine'; import DiagramRelationship from './DiagramRelationship'; import DiagramAttribute from './DiagramAttribute'; import Table from 'grommet/components/Table'; import TableRow from 'grommet/components/TableRow'; import Layer from 'grommet/components/Layer'; import Heading from 'grommet/components/Heading'; import ReactTransitionGroup from 'react-addons-transition-group'; export default class ReadingEntitiesD3V4 extends React.Component { constructor() { super(); this.parentHandleClick = this.parentHandleClick.bind(this); this._onClose = this._onClose.bind(this); this.state = {xaxis: [], xaxis1: [], entity :[], flag_rightTable: false}; } componentWillMount() { this.getData(); } getData() { let xaxispush1 = []; this.props.comment.entities.map ((comment, index) => { let position_list = function() { this.xpos = comment.x; this.ypos = comment.y; this.length = comment.attributes.length; this.color = comment.color; this.name = comment.name; this.attributes = comment.attributes; this.relationship = comment.relationship; }; let position = new position_list(); let position_array = new Array(position); xaxispush1.push(position_array); }); this.setState({xaxis1: xaxispush1}); } parentHandleClick () { this.setState({flag_rightTable: true}); } _onClose () { this.setState({flag_rightTable: false}); } render () { let search_entity2 = []; let model = this.props.comment.title; let diagrambox = this.state.xaxis1.map ((xcomment, xindex) => { let x_pos; for(let prop in xcomment) { x_pos = xcomment[prop]; let entity_list = function() { this.name = x_pos.name; this.xpos = x_pos.xpos; this.ypos = x_pos.ypos; this.length = x_pos.attributes.length; }; let entity2 = new entity_list(); search_entity2.push(entity2); let transition = d3.transition().duration(2050).ease(d3.easeCubicInOut); return ( <DiagramBox onClick={this.parentHandleClick} model={model} relationship={x_pos.relationship} attributes={x_pos.attributes} entity={x_pos.name} letterx={x_pos.xpos} color={x_pos.color} length={x_pos.length} lettery={x_pos.ypos} i={xindex} key={`letter-${x_pos.x}${xindex}`} transition={transition} search_entity={search_entity2} /> ); } return true; }); let diagramtitle = this.state.xaxis1.map ((xcomment, xindex) => { let x_pos; for(let prop in xcomment) { x_pos = xcomment[prop]; let transition = d3.transition().duration(2050).ease(d3.easeCubicInOut); let y = x_pos.ypos + 20; let x = x_pos.xpos + 5; return ( <DiagramTitle model={model} relationship={x_pos.relationship} attributes={x_pos.attributes} entity={x_pos.name} letterx={x} color={x_pos.color} length={x_pos.length} lettery={y} i={xindex} key={`letter-${x_pos.x}${xindex}`} transition={transition}/> ); } return true; }); let diagramattributearray = []; this.state.xaxis1.map ((comment, index) => { let x_pos; for(let prop in comment) { x_pos = comment[prop]; let y = x_pos.ypos + 28; let x = x_pos.xpos + 5; x_pos.attributes.map((xcomment, index) => { y = y + 18; let name = xcomment.name; diagramattributearray.push({x: x, y: y, name: name}); }); } }); let diagramattribute = diagramattributearray.map ((comment, index) => { let transition = d3.transition().duration(2050).ease(d3.easeCubicInOut); return ( <DiagramAttribute x={comment.x} y={comment.y} name={comment.name} i={index} key={`letter-${comment.x}${index}`} transition={transition}/> ); }); let diagramline = this.state.xaxis1.map ((xcomment, xindex) => { let x_pos; for(let prop in xcomment) { x_pos = xcomment[prop]; let transition = d3.transition().duration(2050).ease(d3.easeCubicInOut); let lengthString=23; let NewLengthStringI=23; let NewLengthStringII; let NewLengthString; if (x_pos.name.length > lengthString) { NewLengthStringII = x_pos.name.length; } x_pos.attributes.map ((comment, index) => { if (comment.name.length > NewLengthStringI) { NewLengthStringI = comment.name.length; } }); if (NewLengthStringII > NewLengthStringI) { NewLengthString = 5.1765*NewLengthStringII + 56.941; } else if (NewLengthStringI > NewLengthStringII) { NewLengthString = 5.1765*NewLengthStringI + 56.941; } else { NewLengthString = 210; } let y1 = x_pos.ypos + 30; let x1 = x_pos.xpos; let y2 = x_pos.ypos + 30; let x2 = x_pos.xpos+NewLengthString; return ( <DiagramLine model={model} relationship={x_pos.relationship} attributes={x_pos.attributes} entity={x_pos.name} x1={x1} y1={y1} x2={x2} y2={y2} color={x_pos.color} length={x_pos.length} i={xindex} key={`letter-${x_pos.x}${xindex}`} transition={transition}/> ); } return true; }); let diagramrelationshiparray = []; this.state.xaxis1.map ((xcomment, xindex) => { let x_pos; for(let prop in xcomment) { x_pos = xcomment[prop]; let entity_list = function() { this.name = x_pos.name; this.xpos = x_pos.xpos; this.ypos = x_pos.ypos; this.length = x_pos.attributes.length; }; let entity2 = new entity_list(); search_entity2.push(entity2); let length = x_pos.length; let lengthString=23; let NewLengthStringI=23; let NewLengthStringII; let NewLengthString; if (x_pos.name.length > lengthString) { NewLengthStringII = x_pos.name.length; } x_pos.attributes.map ((comment, index) => { if (comment.name.length > NewLengthStringI) { NewLengthStringI = comment.name.length; } }); if (NewLengthStringII > NewLengthStringI) { NewLengthString = 5.1765*NewLengthStringII + 56.941; } else if (NewLengthStringI > NewLengthStringII) { NewLengthString = 5.1765*NewLengthStringI + 56.941; } else { NewLengthString = 210; } let y1 = x_pos.ypos; let x1 = x_pos.xpos; let new_x1; let new_x2; let new_y1; let new_y2; x_pos.relationship.map ((commentI) => { let to = commentI.to; let new_x; let new_y; let new_length; search_entity2.map ((commentII) => { if (to == commentII.name) { new_x = commentII.xpos; new_y = commentII.ypos; new_length = commentII.length; } }); if (new_x > x1) { new_x1 = new_x; new_y1 = new_y+40; new_x2 = x1 + NewLengthString; new_y2 = y1+40; } else if (new_x == x1 && new_y > y1) { new_x1 = new_x+90; new_y1 = new_y; new_x2 = x1+90; new_y2 = y1 + 20*length+30; } else if (new_x == x1 && new_y < y1) { new_x1 = new_x+90; new_y1 = new_y+ 20*new_length+30; new_x2 = x1+90; new_y2 = y1; } else if (new_x < x1) { new_x1 = new_x + NewLengthString; new_y1 = new_y+40; new_x2 = x1; new_y2 = y1+40; } else { new_x1 = new_x; new_y1 = new_y; new_x2 = x1; new_y2 = y1; } diagramrelationshiparray.push({new_x1: new_x1, new_y1:new_y1, new_x2:new_x2, new_y2:new_y2}); }); } return true; }); let diagramrelationship = diagramrelationshiparray.map ((comment, index) => { let transition = d3.transition().duration(2050).ease(d3.easeCubicInOut); return ( <DiagramRelationship x1={comment.new_x1} y1={comment.new_y1} x2={comment.new_x2} y2={comment.new_y2} i={index} key={`letter-${comment.new_x1}${index}`} transition={transition}/> ); }); let entity = "Title"; let rightTable; if(this.state.flag_rightTable) { rightTable = ( <Layer closer={true} align="right" onClose={this._onClose}> <Heading tag="h2"> {entity} </Heading> <hr/> <Table> <thead> <tr> <th><b>Type</b></th> <th><b>Title</b></th> <th><b>Organization</b></th> <th><b>Status</b></th> <th><b>FullName</b></th> <th><b>Domain</b></th> </tr> </thead> <tbody> <TableRow key="Title"> <td>Type</td> <td>Title</td> <td>Organization</td> <td>Status</td> <td>FullName</td> <td>Domain</td> </TableRow> </tbody> </Table> </Layer> ); } return ( <g> {rightTable} <ReactTransitionGroup component="g"> {diagrambox} </ReactTransitionGroup> <ReactTransitionGroup component="g"> {diagramtitle} </ReactTransitionGroup> <ReactTransitionGroup component="g"> {diagramline} </ReactTransitionGroup> <ReactTransitionGroup component="g"> {diagramrelationship} </ReactTransitionGroup> <ReactTransitionGroup component="g"> {diagramattribute} </ReactTransitionGroup> </g> ); } };
client/app/src/pages/CreateEventPage/index.js
RyanCCollins/meetup-event-planner
import React from 'react'; import cssModules from 'react-css-modules'; import styles from './index.module.scss'; import { CreateEventContainer } from 'containers'; const CreateEventPage = () => ( <div className={styles.container}> <CreateEventContainer /> </div> ); export default cssModules(CreateEventPage, styles);
src/containers/cobrand-logo.js
MoveOnOrg/mop-frontend
/* eslint-disable camelcase */ import React from 'react' import { withRouter } from 'react-router' import PropTypes from 'prop-types' import { connect } from 'react-redux' class CobrandLogo extends React.Component { renderLogo() { const { cobrand } = this.props return ( <img className='org_logo' src={cobrand.logo_image_url} alt={`${cobrand.organization} logo`} /> ) } render() { const { cobrand } = this.props // Don’t render if org has no logo if (!cobrand || !cobrand.logo_image_url) return null return this.renderLogo() } } const getCobrandFromPetition = (petition = {}) => { // grab the sponsor / creator properties from _embedded if it exists const { _embedded: { sponsor, creator } = {} } = petition const branding = sponsor || creator if (!branding) return null const { organization_logo_image_url, organization } = branding return { logo_image_url: organization_logo_image_url, // format of the org api organization } } const mapStateToProps = ({ navStore, petitionStore }, { params }) => { let cobrand // Will be present we are at an org url (mega-partner) const orgName = params && params.organization // Will be present if we are viewing a petition const name = params && params.petitionName const petition = name && petitionStore.petitions[name.split('.')[0]] if (orgName) { // check the url for an organization cobrand = navStore.orgs[orgName] } else if (petition) { // check the currently viewed petition, for non-megapartner orgs cobrand = getCobrandFromPetition(petition) } return { cobrand } } CobrandLogo.propTypes = { cobrand: PropTypes.object } export default withRouter(connect(mapStateToProps)(CobrandLogo))
source/client/components/Card.js
NAlexandrov/yaw
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styled from 'react-emotion'; import { Modal } from 'antd'; import { Select, CardEdit, Input } from './'; import loading from './helpers/loading'; const CardLayout = styled.div` position: relative; width: 260px; height: 164px; box-sizing: border-box; margin-bottom: ${({ isSingle }) => (isSingle ? 0 : '15px')}; padding: 25px 20px 20px 25px; border-radius: 4px; background-color: ${({ bgColor, active }) => (active ? bgColor : 'rgba(255, 255, 255, 0.1)')}; `; const CardLogo = styled.div` height: 28px; margin-bottom: 25px; background-image: url(${({ url }) => url}); background-size: contain; background-repeat: no-repeat; filter: ${({ active }) => (active ? 'none' : 'grayscale(100%) opacity(60%)')}; `; const CardNumber = styled.div` margin-bottom: 20px; color: ${({ active, textColor }) => (active ? textColor : 'rgba(255, 255, 255, 0.6)')}; font-size: 15px; white-space: nowrap; font-family: 'OCR A Std Regular'; `; const CardType = styled.div` height: 26px; background-image: url(${({ url }) => url}); background-size: contain; background-repeat: no-repeat; background-position-x: right; opacity: ${({ active }) => (active ? '1' : '0.6')}; `; const NewCardLayout = styled(CardLayout)` background-color: transparent; background-image: url('/assets/cards-add.svg'); background-repeat: no-repeat; background-position: center; box-sizing: border-box; border: 2px dashed rgba(255, 255, 255, 0.2); &:hover { background-color: rgba(255, 255, 255, 0.05); cursor: pointer; } `; const CardSelect = styled(Select)` width: 100%; margin-bottom: 15px; `; const InputField = styled.div` display: flex; align-items: center; margin-bottom: 26px; position: relative; padding-left: 150px; `; const Label = styled.div` font-size: 15px; color: #000; position: absolute; left: 20px; `; const InputCardNumber = styled(Input)` width: 52px; background-color: #fff; color: #000; border-color: #ddd; &:focus { outline: none; border-color: #bbb; } `; const InputBalance = styled(InputCardNumber)` width: 284px; `; /** * Карта */ class Card extends Component { /** * Конструктор * * @param {Object} props свойства компонента */ constructor(props) { super(props); this.state = { activeCardIndex: 0, addCardModalVisible: false, card1: '', card2: '', card3: '', card4: '', balance: '', }; } /** * Обработчик переключения карты * * @param {Number} activeCardIndex индекс выбранной карты */ onCardChange(activeCardIndex) { this.setState({ activeCardIndex }); } onAddCardClick() { this.setState({ addCardModalVisible: true, card1: '', card2: '', card3: '', card4: '', balance: '', }); } onChangeInput(event) { if (!event) { return; } const { name, value } = event.target; this.setState({ [name]: value, }); } onChangeCardNumber(event) { if (!event) { return; } const { value } = event.target; if (value.length > 4) { // console.log(this.card2); } else { this.onChangeInput(event); } } handleOk() { const { addCard } = this.props; const { card1, card2, card3, card4, balance, } = this.state; const cardNumber = `${card1}${card2}${card3}${card4}`; const hide = loading('Подождите, пожалуйста...'); addCard({ cardNumber, balance, }).then(() => { hide(); this.setState({ addCardModalVisible: false, }); }).catch(() => hide()); } handleCancel() { this.setState({ addCardModalVisible: false, }); } /** * Рендер компонента * * @override * @returns {JSX} */ render() { const { data, type, active, isSingle, onClick, isCardsEditable, onChangeBarMode, } = this.props; if (type === 'new') { const { addCardModalVisible } = this.state; return ( <div> <NewCardLayout onClick={() => this.onAddCardClick()} /> <Modal title='Добавление новой карты' visible={addCardModalVisible} onOk={() => this.handleOk()} onCancel={() => this.handleCancel()} cancelText='Отмена' okText='Добавить'> <form> <InputField> <Label>Номер карты</Label> <InputCardNumber ref={(input) => { this.card1 = input; }} type='number' name='card1' required='required' value={this.state.card1} min='0' max='9999' maxlength='4' autoFocus='autoFocus' onChange={(event) => this.onChangeCardNumber(event)} /> &nbsp;&nbsp;&mdash;&nbsp;&nbsp; <InputCardNumber ref={(input) => { this.card2 = input; }} type='number' name='card2' required='required' value={this.state.card2} min='0' max='9999' maxlength='4' onChange={(event) => this.onChangeCardNumber(event)} /> &nbsp;&nbsp;&mdash;&nbsp;&nbsp; <InputCardNumber type='number' name='card3' required='required' value={this.state.card3} min='0' max='9999' maxlength='4' onChange={(event) => this.onChangeCardNumber(event)} /> &nbsp;&nbsp;&mdash;&nbsp;&nbsp; <InputCardNumber type='number' name='card4' required='required' value={this.state.card4} min='0' max='9999' maxlength='4' onChange={(event) => this.onChangeCardNumber(event)} /> </InputField> <InputField> <Label>Баланс</Label> <InputBalance type='number' name='balance' required='required' min='0' value={this.state.balance} placeholder='Нужно больше золота' placeholderColor='#666' onChange={(event) => this.onChangeInput(event)} /> </InputField> </form> </Modal> </div > ); } if (type === 'select') { const { activeCardIndex } = this.state; const selectedCard = data[activeCardIndex]; const { bgColor, bankLogoUrl, brandLogoUrl } = selectedCard.theme; const isActive = true; return ( <CardLayout active bgColor={bgColor} isCardsEditable={isCardsEditable} isSingle={isSingle}> <CardEdit editable={isCardsEditable} id={data.id} onChangeBarMode={onChangeBarMode} /> <CardLogo url={bankLogoUrl} active /> <CardSelect defaultValue='0' onChange={(index) => this.onCardChange(index)}> {data.map((card, index) => ( <Select.Option key={isActive} value={`${index}`}>{card.number}</Select.Option> ))} </CardSelect> <CardType url={brandLogoUrl} active={isActive} /> </CardLayout> ); } const { number, theme, id } = data; const { bgColor, textColor, bankLogoUrl, brandLogoUrl, } = theme; let themedBrandLogoUrl; if (brandLogoUrl) { themedBrandLogoUrl = active ? brandLogoUrl : brandLogoUrl.replace(/-colored.svg$/, '-white.svg'); } return ( <CardLayout active={active} bgColor={bgColor} onClick={onClick} isCardsEditable={isCardsEditable} isSingle={isSingle}> <CardEdit editable={isCardsEditable} id={id} onChangeBarMode={onChangeBarMode} /> <CardLogo url={bankLogoUrl} active={active} /> <CardNumber textColor={textColor} active={active}> {number} </CardNumber> <CardType url={themedBrandLogoUrl} active={active} /> </CardLayout> ); } } Card.propTypes = { data: PropTypes.oneOfType([PropTypes.array, PropTypes.object]), type: PropTypes.string, active: PropTypes.bool, isSingle: PropTypes.bool, isCardsEditable: PropTypes.bool, onClick: PropTypes.func, onChangeBarMode: PropTypes.func, addCard: PropTypes.func, }; export default Card;
src/containers/views/NotFound.js
jekyll/jekyll-admin
import React from 'react'; const NotFound = () => ( <div className="notfound"> <img src={require('../../assets/images/logo-black-red.png')} alt="Jekyll Admin" /> <h1>Huh. It seems that page is Hyde-ing...</h1> <h2>The resource you requested was not found.</h2> </div> ); export default NotFound;
src/components/PlaceHolder.js
ZevenFang/react-native-starterkit
import React from 'react'; import {Image, View, Text, ActivityIndicator, TouchableOpacity} from 'react-native'; import { Icon } from 'react-native-elements' import colors from '../utils/colors'; class PlaceHolder extends React.Component { render() { let {loading, onRefresh, text, image} = this.props; return ( <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}> {loading?<ActivityIndicator size="large" color={colors.defaults.title}/>: (image? <View style={styles.content}> <Image source={image} resizeMode='contain' style={{width: 100, height: 100}} /> <Text style={styles.text}>{text||'暂无数据'}</Text> </View>: <TouchableOpacity onPress={onRefresh} style={styles.content}> <Icon size={80} color={colors.defaults.title} type="ionicon" name="ios-refresh"/> <Text style={styles.text}>{text||'暂无数据'}</Text> </TouchableOpacity>) } </View> ) } } let styles = { content: {padding: 10}, text: {color: colors.defaults.title, marginTop: 10} }; export default PlaceHolder;
config/webpack.config.prod.js
KashGit/react-component-lib
'use strict'; const autoprefixer = require('autoprefixer'); const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const ManifestPlugin = require('webpack-manifest-plugin'); const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin'); const SWPrecacheWebpackPlugin = require('sw-precache-webpack-plugin'); const eslintFormatter = require('react-dev-utils/eslintFormatter'); const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin'); const paths = require('./paths'); const getClientEnvironment = require('./env'); // Webpack uses `publicPath` to determine where the app is being served from. // It requires a trailing slash, or the file assets will get an incorrect path. const publicPath = paths.servedPath; // Some apps do not use client-side routing with pushState. // For these, "homepage" can be set to "." to enable relative asset paths. const shouldUseRelativeAssetPaths = publicPath === './'; // `publicUrl` is just like `publicPath`, but we will provide it to our app // as %PUBLIC_URL% in `index.html` and `process.env.PUBLIC_URL` in JavaScript. // Omit trailing slash as %PUBLIC_URL%/xyz looks better than %PUBLIC_URL%xyz. const publicUrl = publicPath.slice(0, -1); // Get environment variables to inject into our app. const env = getClientEnvironment(publicUrl); // Assert this just to be safe. // Development builds of React are slow and not intended for production. if (env.stringified['process.env'].NODE_ENV !== '"production"') { throw new Error('Production builds must have NODE_ENV=production.'); } // Note: defined here because it will be used more than once. const cssFilename = 'static/css/[name].[contenthash:8].css'; // ExtractTextPlugin expects the build output to be flat. // (See https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/27) // However, our output is structured with css, js and media folders. // To have this structure working with relative paths, we have to use custom options. const extractTextPluginOptions = shouldUseRelativeAssetPaths ? // Making sure that the publicPath goes back to to build folder. { publicPath: Array(cssFilename.split('/').length).join('../') } : {}; // This is the production configuration. // It compiles slowly and is focused on producing a fast and minimal bundle. // The development configuration is different and lives in a separate file. module.exports = { // Don't attempt to continue if there are any errors. bail: true, // We generate sourcemaps in production. This is slow but gives good results. // You can exclude the *.map files from the build during deployment. devtool: 'source-map', // In production, we only want to load the polyfills and the app code. entry: [require.resolve('./polyfills'), paths.appIndexJs], output: { // The build folder. path: paths.appBuild, // Generated JS file names (with nested folders). // There will be one main bundle, and one file per asynchronous chunk. // We don't currently advertise code splitting but Webpack supports it. filename: 'static/js/[name].[chunkhash:8].js', chunkFilename: 'static/js/[name].[chunkhash:8].chunk.js', // We inferred the "public path" (such as / or /my-project) from homepage. publicPath: publicPath, // Point sourcemap entries to original disk location (format as URL on Windows) devtoolModuleFilenameTemplate: info => path .relative(paths.appSrc, info.absoluteResourcePath) .replace(/\\/g, '/'), }, resolve: { // This allows you to set a fallback for where Webpack should look for modules. // We placed these paths second because we want `node_modules` to "win" // if there are any conflicts. This matches Node resolution mechanism. // https://github.com/facebookincubator/create-react-app/issues/253 modules: ['node_modules', paths.appNodeModules].concat( // It is guaranteed to exist because we tweak it in `env.js` process.env.NODE_PATH.split(path.delimiter).filter(Boolean) ), // These are the reasonable defaults supported by the Node ecosystem. // We also include JSX as a common component filename extension to support // some tools, although we do not recommend using it, see: // https://github.com/facebookincubator/create-react-app/issues/290 // `web` extension prefixes have been added for better support // for React Native Web. extensions: ['.web.js', '.js', '.json', '.web.jsx', '.jsx'], alias: { // Support React Native Web // https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/ 'react-native': 'react-native-web', 'k-react': path.resolve(__dirname,'../src/components') }, plugins: [ // Prevents users from importing files from outside of src/ (or node_modules/). // This often causes confusion because we only process files within src/ with babel. // To fix this, we prevent you from importing files out of src/ -- if you'd like to, // please link the files into your node_modules/ and let module-resolution kick in. // Make sure your source files are compiled, as they will not be processed in any way. // new ModuleScopePlugin(paths.appSrc), ], }, module: { strictExportPresence: true, rules: [ // TODO: Disable require.ensure as it's not a standard language feature. // We are waiting for https://github.com/facebookincubator/create-react-app/issues/2176. // { parser: { requireEnsure: false } }, // First, run the linter. // It's important to do this before Babel processes the JS. { test: /\.(js|jsx)$/, enforce: 'pre', use: [ { options: { formatter: eslintFormatter, }, loader: require.resolve('eslint-loader'), }, ], include: paths.appSrc, }, // ** ADDING/UPDATING LOADERS ** // The "file" loader handles all assets unless explicitly excluded. // The `exclude` list *must* be updated with every change to loader extensions. // When adding a new loader, you must add its `test` // as a new entry in the `exclude` list in the "file" loader. // "file" loader makes sure those assets end up in the `build` folder. // When you `import` an asset, you get its filename. { exclude: [ /\.html$/, /\.(js|jsx)$/, /\.css$/, /\.json$/, /\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/, ], loader: require.resolve('file-loader'), options: { name: 'static/media/[name].[hash:8].[ext]', }, }, // "url" loader works just like "file" loader but it also embeds // assets smaller than specified size as data URLs to avoid requests. { test: [/\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/], loader: require.resolve('url-loader'), options: { limit: 10000, name: 'static/media/[name].[hash:8].[ext]', }, }, // Process JS with Babel. { test: /\.(js|jsx)$/, include: paths.appSrc, loader: require.resolve('babel-loader'), options: { compact: true, }, }, // The notation here is somewhat confusing. // "postcss" loader applies autoprefixer to our CSS. // "css" loader resolves paths in CSS and adds assets as dependencies. // "style" loader normally turns CSS into JS modules injecting <style>, // but unlike in development configuration, we do something different. // `ExtractTextPlugin` first applies the "postcss" and "css" loaders // (second argument), then grabs the result CSS and puts it into a // separate file in our build process. This way we actually ship // a single CSS file in production instead of JS code injecting <style> // tags. If you use code splitting, however, any async bundles will still // use the "style" loader inside the async code so CSS from them won't be // in the main CSS file. { test: /\.css$/, loader: ExtractTextPlugin.extract( Object.assign( { fallback: require.resolve('style-loader'), use: [ { loader: require.resolve('css-loader'), options: { importLoaders: 1, minimize: true, sourceMap: true, }, }, { loader: require.resolve('postcss-loader'), options: { // Necessary for external CSS imports to work // https://github.com/facebookincubator/create-react-app/issues/2677 ident: 'postcss', plugins: () => [ require('postcss-flexbugs-fixes'), autoprefixer({ browsers: [ '>1%', 'last 4 versions', 'Firefox ESR', 'not ie < 9', // React doesn't support IE8 anyway ], flexbox: 'no-2009', }), ], }, }, ], }, extractTextPluginOptions ) ), // Note: this won't work without `new ExtractTextPlugin()` in `plugins`. }, // ** STOP ** Are you adding a new loader? // Remember to add the new extension(s) to the "file" loader exclusion list. ], }, plugins: [ // Makes some environment variables available in index.html. // The public URL is available as %PUBLIC_URL% in index.html, e.g.: // <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico"> // In production, it will be an empty string unless you specify "homepage" // in `package.json`, in which case it will be the pathname of that URL. new InterpolateHtmlPlugin(env.raw), // Generates an `index.html` file with the <script> injected. new HtmlWebpackPlugin({ inject: true, template: paths.appHtml, minify: { removeComments: true, collapseWhitespace: true, removeRedundantAttributes: true, useShortDoctype: true, removeEmptyAttributes: true, removeStyleLinkTypeAttributes: true, keepClosingSlash: true, minifyJS: true, minifyCSS: true, minifyURLs: true, }, }), // Makes some environment variables available to the JS code, for example: // if (process.env.NODE_ENV === 'production') { ... }. See `./env.js`. // It is absolutely essential that NODE_ENV was set to production here. // Otherwise React will be compiled in the very slow development mode. new webpack.DefinePlugin(env.stringified), // Minify the code. new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false, // Disabled because of an issue with Uglify breaking seemingly valid code: // https://github.com/facebookincubator/create-react-app/issues/2376 // Pending further investigation: // https://github.com/mishoo/UglifyJS2/issues/2011 comparisons: false, }, output: { comments: false, // Turned on because emoji and regex is not minified properly using default // https://github.com/facebookincubator/create-react-app/issues/2488 ascii_only: true, }, sourceMap: true, }), // Note: this won't work without ExtractTextPlugin.extract(..) in `loaders`. new ExtractTextPlugin({ filename: cssFilename, }), // Generate a manifest file which contains a mapping of all asset filenames // to their corresponding output file so that tools can pick it up without // having to parse `index.html`. new ManifestPlugin({ fileName: 'asset-manifest.json', }), // Generate a service worker script that will precache, and keep up to date, // the HTML & assets that are part of the Webpack build. new SWPrecacheWebpackPlugin({ // By default, a cache-busting query parameter is appended to requests // used to populate the caches, to ensure the responses are fresh. // If a URL is already hashed by Webpack, then there is no concern // about it being stale, and the cache-busting can be skipped. dontCacheBustUrlsMatching: /\.\w{8}\./, filename: 'service-worker.js', logger(message) { if (message.indexOf('Total precache size is') === 0) { // This message occurs for every build and is a bit too noisy. return; } if (message.indexOf('Skipping static resource') === 0) { // This message obscures real errors so we ignore it. // https://github.com/facebookincubator/create-react-app/issues/2612 return; } console.log(message); }, minify: true, // For unknown URLs, fallback to the index page navigateFallback: publicUrl + '/index.html', // Ignores URLs starting from /__ (useful for Firebase): // https://github.com/facebookincubator/create-react-app/issues/2237#issuecomment-302693219 navigateFallbackWhitelist: [/^(?!\/__).*/], // Don't precache sourcemaps (they're large) and build asset manifest: staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/], }), // Moment.js is an extremely popular library that bundles large locale files // by default due to how Webpack interprets its code. This is a practical // solution that requires the user to opt into importing specific locales. // https://github.com/jmblog/how-to-optimize-momentjs-with-webpack // You can remove this if you don't use Moment.js: new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/), ], // Some libraries import Node modules but don't use them in the browser. // Tell Webpack to provide empty mocks for them so importing them works. node: { dgram: 'empty', fs: 'empty', net: 'empty', tls: 'empty', }, };
src/Containers/LaunchScreen.js
yarikgenza/WhereToGo-Lviv
import React, { Component } from 'react'; import { Image, View } from 'react-native'; import { Actions } from 'react-native-router-flux'; import * as Animatable from 'react-native-animatable'; import NativeFeedbackButton from '../Components/NativeFeedbackButton'; import Images from '../Themes/images'; import styles from './Styles/LaunchScreenStyles'; class LaunchScreen extends Component { handleNextButtonPress() { Actions.locationScreen(); } render() { return ( <View style={styles.container}> <Animatable.View animation="pulse" iterationCount="infinite" useNativeDriver style={styles.logoBlock}> <Image style={styles.logo} source={Images.logo} /> </Animatable.View> <View style={styles.headingContainer}> <Animatable.Text style={styles.heading} delay={100} animation="bounceInUp" useNativeDriver iterationCount={1} > Where to go? </Animatable.Text> <Animatable.Text style={styles.headingName} delay={500} animation="bounceInDown" useNativeDriver iterationCount={1} direction="alternate" > Lviv </Animatable.Text> </View> <NativeFeedbackButton onPress={() => this.handleNextButtonPress()} title="start exploring" styles={styles.nextButton} textStyles={styles.buttonText} /> </View> ); } } export default LaunchScreen;
client/modules/core/configs/notifications.js
pstuart/Open-Dash
import { Meteor } from 'meteor/meteor'; import React from 'react'; import sAlert from 'react-s-alert'; import swal from 'sweetalert'; /** * sAlerts defaults * https://github.com/juliancwirko/react-s-alert */ // wrapper for simpler calls export const Notify = { success(text, location) { sAlert.info(text, { effect: 'stackslide', position: location || 'top' }); }, info(text, location) { sAlert.info(text, { position: location || 'bottom-right' }); }, warn(text, location) { sAlert.warning(text, { position: location || 'top-right', timeout: 7000 }); }, error(text, location) { sAlert.error(text, { position: location || 'top', timeout: 7000 }); } }; /** * SweetAlert defaults * https://github.com/t4t5/sweetalert */ export const Alert = { success(options = {}) { swal(options.title || 'Success!', options.text, 'success'); }, info(title, text) { swal(title, text); }, confirm(options, callback) { swal({ title: options.title || 'Are you sure?', text: options.text || '', type: 'warning', showCancelButton: true, confirmButtonColor: '#DD6B55', confirmButtonText: options.confirmButtonText || 'Do it!', closeOnConfirm: false }, () => { swal({ title: 'Success!', text: options.successMsg || '', type: 'success', timer: 1500, showConfirmButton: false }); if (typeof callback === 'function') { callback(); } }); }, input(options, callback) { swal({ title: options.title, text: options.text, type: 'input', showCancelButton: true, closeOnConfirm: false, animation: 'slide-from-top' }, (inputValue) => { if (typeof callback === 'function') { callback(inputValue); } }); }, error(options) { swal(options.title || 'Oops!', options.text || 'Something went wrong.', 'error'); } };
node_modules/intl/dist/Intl.complete.js
Technocaveman/There-is-no-Third-Step
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):e.IntlPolyfill=r()}(this,function(){"use strict";function e(e){if("function"==typeof Math.log10)return Math.floor(Math.log10(e));var r=Math.round(Math.log(e)*Math.LOG10E);return r-(Number("1e"+r)>e)}function r(e){for(var t in e)(e instanceof r||Me.call(e,t))&&Ie(this,t,{value:e[t],enumerable:!0,writable:!0,configurable:!0})}function t(){Ie(this,"length",{writable:!0,value:0}),arguments.length&&Ge.apply(this,qe.call(arguments))}function n(){if($e.disableRegExpRestore)return function(){};for(var e={lastMatch:RegExp.lastMatch||"",leftContext:RegExp.leftContext,multiline:RegExp.multiline,input:RegExp.input},r=!1,n=1;n<=9;n++)r=(e["$"+n]=RegExp["$"+n])||r;return function(){var n=/[.?*+^$[\]\\(){}|-]/g,a=e.lastMatch.replace(n,"\\$&"),i=new t;if(r)for(var o=1;o<=9;o++){var s=e["$"+o];s?(s=s.replace(n,"\\$&"),a=a.replace(s,"("+s+")")):a="()"+a,Ge.call(i,a.slice(0,a.indexOf("(")+1)),a=a.slice(a.indexOf("(")+1)}var l=Ze.call(i,"")+a;l=l.replace(/(\\\(|\\\)|[^()])+/g,function(e){return"[\\s\\S]{"+e.replace("\\","").length+"}"});var c=new RegExp(l,e.multiline?"gm":"g");c.lastIndex=e.leftContext.length,c.exec(e.input)}}function a(e){if(null===e)throw new TypeError("Cannot convert null or undefined to object");return"object"===("undefined"==typeof e?"undefined":Ne.typeof(e))?e:Object(e)}function i(e){return"number"==typeof e?e:Number(e)}function o(e){var r=i(e);return isNaN(r)?0:0===r||r===-0||r===+(1/0)||r===-(1/0)?r:r<0?Math.floor(Math.abs(r))*-1:Math.floor(Math.abs(r))}function s(e){var r=o(e);return r<=0?0:r===1/0?Math.pow(2,53)-1:Math.min(r,Math.pow(2,53)-1)}function l(e){return Me.call(e,"__getInternalProperties")?e.__getInternalProperties(Ke):Re(null)}function c(e){cr=e}function u(e){for(var r=e.length;r--;){var t=e.charAt(r);t>="a"&&t<="z"&&(e=e.slice(0,r)+t.toUpperCase()+e.slice(r+1))}return e}function g(e){return!!ir.test(e)&&(!or.test(e)&&!sr.test(e))}function f(e){var r=void 0,t=void 0;e=e.toLowerCase(),t=e.split("-");for(var n=1,a=t.length;n<a;n++)if(2===t[n].length)t[n]=t[n].toUpperCase();else if(4===t[n].length)t[n]=t[n].charAt(0).toUpperCase()+t[n].slice(1);else if(1===t[n].length&&"x"!==t[n])break;e=Ze.call(t,"-"),(r=e.match(lr))&&r.length>1&&(r.sort(),e=e.replace(RegExp("(?:"+lr.source+")+","i"),Ze.call(r,""))),Me.call(ur.tags,e)&&(e=ur.tags[e]),t=e.split("-");for(var i=1,o=t.length;i<o;i++)Me.call(ur.subtags,t[i])?t[i]=ur.subtags[t[i]]:Me.call(ur.extLang,t[i])&&(t[i]=ur.extLang[t[i]][0],1===i&&ur.extLang[t[1]][1]===t[0]&&(t=qe.call(t,i++),o-=1));return Ze.call(t,"-")}function m(){return cr}function v(e){var r=String(e),t=u(r);return gr.test(t)!==!1}function d(e){if(void 0===e)return new t;var r=new t;e="string"==typeof e?[e]:e;for(var n=a(e),i=s(n.length),o=0;o<i;){var l=String(o),c=l in n;if(c){var u=n[l];if(null===u||"string"!=typeof u&&"object"!==("undefined"==typeof u?"undefined":Ne.typeof(u)))throw new TypeError("String or Object type expected");var m=String(u);if(!g(m))throw new RangeError("'"+m+"' is not a structurally valid language tag");m=f(m),Ae.call(r,m)===-1&&Ge.call(r,m)}o++}return r}function h(e,r){for(var t=r;t;){if(Ae.call(e,t)>-1)return t;var n=t.lastIndexOf("-");if(n<0)return;n>=2&&"-"===t.charAt(n-2)&&(n-=2),t=t.substring(0,n)}}function p(e,t){for(var n=0,a=t.length,i=void 0,o=void 0,s=void 0;n<a&&!i;)o=t[n],s=String(o).replace(fr,""),i=h(e,s),n++;var l=new r;if(void 0!==i){if(l["[[locale]]"]=i,String(o)!==String(s)){var c=o.match(fr)[0],u=o.indexOf("-u-");l["[[extension]]"]=c,l["[[extensionIndex]]"]=u}}else l["[[locale]]"]=m();return l}function y(e,r){return p(e,r)}function b(e,t,n,a,i){if(0===e.length)throw new ReferenceError("No locale data has been provided for this object yet.");var o=n["[[localeMatcher]]"],s=void 0;s="lookup"===o?p(e,t):y(e,t);var l=s["[[locale]]"],c=void 0,u=void 0;if(Me.call(s,"[[extension]]")){var g=s["[[extension]]"],m=String.prototype.split;c=m.call(g,"-"),u=c.length}var v=new r;v["[[dataLocale]]"]=l;for(var d="-u",h=0,b=a.length;h<b;){var w=a[h],x=i[l],j=x[w],D=j[0],z="",k=Ae;if(void 0!==c){var O=k.call(c,w);if(O!==-1)if(O+1<u&&c[O+1].length>2){var F=c[O+1],S=k.call(j,F);S!==-1&&(D=F,z="-"+w+"-"+D)}else{var E=k(j,"true");E!==-1&&(D="true")}}if(Me.call(n,"[["+w+"]]")){var L=n["[["+w+"]]"];k.call(j,L)!==-1&&L!==D&&(D=L,z="")}v["[["+w+"]]"]=D,d+=z,h++}if(d.length>2){var P=l.indexOf("-x-");if(P===-1)l+=d;else{var N=l.substring(0,P),T=l.substring(P);l=N+d+T}l=f(l)}return v["[[locale]]"]=l,v}function w(e,r){for(var n=r.length,a=new t,i=0;i<n;){var o=r[i],s=String(o).replace(fr,""),l=h(e,s);void 0!==l&&Ge.call(a,o),i++}var c=qe.call(a);return c}function x(e,r){return w(e,r)}function j(e,t,n){var i=void 0,o=void 0;if(void 0!==n&&(n=new r(a(n)),i=n.localeMatcher,void 0!==i&&(i=String(i),"lookup"!==i&&"best fit"!==i)))throw new RangeError('matcher should be "lookup" or "best fit"');o=void 0===i||"best fit"===i?x(e,t):w(e,t);for(var s in o)Me.call(o,s)&&Ie(o,s,{writable:!1,configurable:!1,value:o[s]});return Ie(o,"length",{writable:!1}),o}function D(e,r,t,n,a){var i=e[r];if(void 0!==i){if(i="boolean"===t?Boolean(i):"string"===t?String(i):i,void 0!==n&&Ae.call(n,i)===-1)throw new RangeError("'"+i+"' is not an allowed value for `"+r+"`");return i}return a}function z(e,r,t,n,a){var i=e[r];if(void 0!==i){if(i=Number(i),isNaN(i)||i<t||i>n)throw new RangeError("Value is not a number or outside accepted range");return Math.floor(i)}return a}function k(e){for(var r=d(e),t=[],n=r.length,a=0;a<n;)t[a]=r[a],a++;return t}function O(){var e=arguments[0],r=arguments[1];return this&&this!==mr?F(a(this),e,r):new mr.NumberFormat(e,r)}function F(e,i,o){var s=l(e),c=n();if(s["[[initializedIntlObject]]"]===!0)throw new TypeError("`this` object has already been initialized as an Intl object");Ie(e,"__getInternalProperties",{value:function(){if(arguments[0]===Ke)return s}}),s["[[initializedIntlObject]]"]=!0;var u=d(i);o=void 0===o?{}:a(o);var g=new r,f=D(o,"localeMatcher","string",new t("lookup","best fit"),"best fit");g["[[localeMatcher]]"]=f;var m=$e.NumberFormat["[[localeData]]"],h=b($e.NumberFormat["[[availableLocales]]"],u,g,$e.NumberFormat["[[relevantExtensionKeys]]"],m);s["[[locale]]"]=h["[[locale]]"],s["[[numberingSystem]]"]=h["[[nu]]"],s["[[dataLocale]]"]=h["[[dataLocale]]"];var p=h["[[dataLocale]]"],y=D(o,"style","string",new t("decimal","percent","currency"),"decimal");s["[[style]]"]=y;var w=D(o,"currency","string");if(void 0!==w&&!v(w))throw new RangeError("'"+w+"' is not a valid currency code");if("currency"===y&&void 0===w)throw new TypeError("Currency code is required when style is currency");var x=void 0;"currency"===y&&(w=w.toUpperCase(),s["[[currency]]"]=w,x=S(w));var j=D(o,"currencyDisplay","string",new t("code","symbol","name"),"symbol");"currency"===y&&(s["[[currencyDisplay]]"]=j);var k=z(o,"minimumIntegerDigits",1,21,1);s["[[minimumIntegerDigits]]"]=k;var O="currency"===y?x:0,F=z(o,"minimumFractionDigits",0,20,O);s["[[minimumFractionDigits]]"]=F;var L="currency"===y?Math.max(F,x):"percent"===y?Math.max(F,0):Math.max(F,3),P=z(o,"maximumFractionDigits",F,20,L);s["[[maximumFractionDigits]]"]=P;var N=o.minimumSignificantDigits,T=o.maximumSignificantDigits;void 0===N&&void 0===T||(N=z(o,"minimumSignificantDigits",1,21,1),T=z(o,"maximumSignificantDigits",N,21,21),s["[[minimumSignificantDigits]]"]=N,s["[[maximumSignificantDigits]]"]=T);var _=D(o,"useGrouping","boolean",void 0,!0);s["[[useGrouping]]"]=_;var M=m[p],I=M.patterns,A=I[y];return s["[[positivePattern]]"]=A.positivePattern,s["[[negativePattern]]"]=A.negativePattern,s["[[boundFormat]]"]=void 0,s["[[initializedNumberFormat]]"]=!0,_e&&(e.format=E.call(e)),c(),e}function S(e){return void 0!==vr[e]?vr[e]:2}function E(){var e=null!==this&&"object"===Ne.typeof(this)&&l(this);if(!e||!e["[[initializedNumberFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.NumberFormat object.");if(void 0===e["[[boundFormat]]"]){var r=function(e){return T(this,Number(e))},t=Ue.call(r,this);e["[[boundFormat]]"]=t}return e["[[boundFormat]]"]}function L(){var e=arguments.length<=0||void 0===arguments[0]?void 0:arguments[0],r=null!==this&&"object"===Ne.typeof(this)&&l(this);if(!r||!r["[[initializedNumberFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.NumberFormat object.");var t=Number(e);return P(this,t)}function P(e,r){for(var t=N(e,r),n=[],a=0,i=0;t.length>i;i++){var o=t[i],s={};s.type=o["[[type]]"],s.value=o["[[value]]"],n[a]=s,a+=1}return n}function N(e,r){var n=l(e),a=n["[[dataLocale]]"],i=n["[[numberingSystem]]"],o=$e.NumberFormat["[[localeData]]"][a],s=o.symbols[i]||o.symbols.latn,c=void 0;!isNaN(r)&&r<0?(r=-r,c=n["[[negativePattern]]"]):c=n["[[positivePattern]]"];for(var u=new t,g=c.indexOf("{",0),f=0,m=0,v=c.length;g>-1&&g<v;){if(f=c.indexOf("}",g),f===-1)throw new Error;if(g>m){var d=c.substring(m,g);Ge.call(u,{"[[type]]":"literal","[[value]]":d})}var h=c.substring(g+1,f);if("number"===h)if(isNaN(r)){var p=s.nan;Ge.call(u,{"[[type]]":"nan","[[value]]":p})}else if(isFinite(r)){"percent"===n["[[style]]"]&&isFinite(r)&&(r*=100);var y=void 0;y=Me.call(n,"[[minimumSignificantDigits]]")&&Me.call(n,"[[maximumSignificantDigits]]")?_(r,n["[[minimumSignificantDigits]]"],n["[[maximumSignificantDigits]]"]):M(r,n["[[minimumIntegerDigits]]"],n["[[minimumFractionDigits]]"],n["[[maximumFractionDigits]]"]),dr[i]?!function(){var e=dr[i];y=String(y).replace(/\d/g,function(r){return e[r]})}():y=String(y);var b=void 0,w=void 0,x=y.indexOf(".",0);if(x>0?(b=y.substring(0,x),w=y.substring(x+1,x.length)):(b=y,w=void 0),n["[[useGrouping]]"]===!0){var j=s.group,D=[],z=o.patterns.primaryGroupSize||3,k=o.patterns.secondaryGroupSize||z;if(b.length>z){var O=b.length-z,F=O%k,S=b.slice(0,F);for(S.length&&Ge.call(D,S);F<O;)Ge.call(D,b.slice(F,F+k)),F+=k;Ge.call(D,b.slice(O))}else Ge.call(D,b);if(0===D.length)throw new Error;for(;D.length;){var E=Be.call(D);Ge.call(u,{"[[type]]":"integer","[[value]]":E}),D.length&&Ge.call(u,{"[[type]]":"group","[[value]]":j})}}else Ge.call(u,{"[[type]]":"integer","[[value]]":b});if(void 0!==w){var L=s.decimal;Ge.call(u,{"[[type]]":"decimal","[[value]]":L}),Ge.call(u,{"[[type]]":"fraction","[[value]]":w})}}else{var P=s.infinity;Ge.call(u,{"[[type]]":"infinity","[[value]]":P})}else if("plusSign"===h){var N=s.plusSign;Ge.call(u,{"[[type]]":"plusSign","[[value]]":N})}else if("minusSign"===h){var T=s.minusSign;Ge.call(u,{"[[type]]":"minusSign","[[value]]":T})}else if("percentSign"===h&&"percent"===n["[[style]]"]){var I=s.percentSign;Ge.call(u,{"[[type]]":"literal","[[value]]":I})}else if("currency"===h&&"currency"===n["[[style]]"]){var A=n["[[currency]]"],R=void 0;"code"===n["[[currencyDisplay]]"]?R=A:"symbol"===n["[[currencyDisplay]]"]?R=o.currencies[A]||A:"name"===n["[[currencyDisplay]]"]&&(R=A),Ge.call(u,{"[[type]]":"currency","[[value]]":R})}else{var q=c.substring(g,f);Ge.call(u,{"[[type]]":"literal","[[value]]":q})}m=f+1,g=c.indexOf("{",m)}if(m<v){var C=c.substring(m,v);Ge.call(u,{"[[type]]":"literal","[[value]]":C})}return u}function T(e,r){for(var t=N(e,r),n="",a=0;t.length>a;a++){var i=t[a];n+=i["[[value]]"]}return n}function _(r,t,n){var a=n,i=void 0,o=void 0;if(0===r)i=Ze.call(Array(a+1),"0"),o=0;else{o=e(Math.abs(r));var s=Math.round(Math.exp(Math.abs(o-a+1)*Math.LN10));i=String(Math.round(o-a+1<0?r*s:r/s))}if(o>=a)return i+Ze.call(Array(o-a+1+1),"0");if(o===a-1)return i;if(o>=0?i=i.slice(0,o+1)+"."+i.slice(o+1):o<0&&(i="0."+Ze.call(Array(-(o+1)+1),"0")+i),i.indexOf(".")>=0&&n>t){for(var l=n-t;l>0&&"0"===i.charAt(i.length-1);)i=i.slice(0,-1),l--;"."===i.charAt(i.length-1)&&(i=i.slice(0,-1))}return i}function M(e,r,t,n){var a=n,i=Math.pow(10,a)*e,o=0===i?"0":i.toFixed(0),s=void 0,l=(s=o.indexOf("e"))>-1?o.slice(s+1):0;l&&(o=o.slice(0,s).replace(".",""),o+=Ze.call(Array(l-(o.length-1)+1),"0"));var c=void 0;if(0!==a){var u=o.length;if(u<=a){var g=Ze.call(Array(a+1-u+1),"0");o=g+o,u=a+1}var f=o.substring(0,u-a),m=o.substring(u-a,o.length);o=f+"."+m,c=f.length}else c=o.length;for(var v=n-t;v>0&&"0"===o.slice(-1);)o=o.slice(0,-1),v--;if("."===o.slice(-1)&&(o=o.slice(0,-1)),c<r){var d=Ze.call(Array(r-c+1),"0");o=d+o}return o}function I(e){for(var r=0;r<wr.length;r+=1)if(e.hasOwnProperty(wr[r]))return!1;return!0}function A(e){for(var r=0;r<br.length;r+=1)if(e.hasOwnProperty(br[r]))return!1;return!0}function R(e,r){for(var t={_:{}},n=0;n<br.length;n+=1)e[br[n]]&&(t[br[n]]=e[br[n]]),e._[br[n]]&&(t._[br[n]]=e._[br[n]]);for(var a=0;a<wr.length;a+=1)r[wr[a]]&&(t[wr[a]]=r[wr[a]]),r._[wr[a]]&&(t._[wr[a]]=r._[wr[a]]);return t}function q(e){return e.pattern12=e.extendedPattern.replace(/'([^']*)'/g,function(e,r){return r?r:"'"}),e.pattern=e.pattern12.replace("{ampm}","").replace(pr,""),e}function C(e,r){switch(e.charAt(0)){case"G":return r.era=["short","short","short","long","narrow"][e.length-1],"{era}";case"y":case"Y":case"u":case"U":case"r":return r.year=2===e.length?"2-digit":"numeric","{year}";case"Q":case"q":return r.quarter=["numeric","2-digit","short","long","narrow"][e.length-1],"{quarter}";case"M":case"L":return r.month=["numeric","2-digit","short","long","narrow"][e.length-1],"{month}";case"w":return r.week=2===e.length?"2-digit":"numeric","{weekday}";case"W":return r.week="numeric","{weekday}";case"d":return r.day=2===e.length?"2-digit":"numeric","{day}";case"D":case"F":case"g":return r.day="numeric","{day}";case"E":return r.weekday=["short","short","short","long","narrow","short"][e.length-1],"{weekday}";case"e":return r.weekday=["numeric","2-digit","short","long","narrow","short"][e.length-1],"{weekday}";case"c":return r.weekday=["numeric",void 0,"short","long","narrow","short"][e.length-1],"{weekday}";case"a":case"b":case"B":return r.hour12=!0,"{ampm}";case"h":case"H":return r.hour=2===e.length?"2-digit":"numeric","{hour}";case"k":case"K":return r.hour12=!0,r.hour=2===e.length?"2-digit":"numeric","{hour}";case"m":return r.minute=2===e.length?"2-digit":"numeric","{minute}";case"s":return r.second=2===e.length?"2-digit":"numeric","{second}";case"S":case"A":return r.second="numeric","{second}";case"z":case"Z":case"O":case"v":case"V":case"X":case"x":return r.timeZoneName=e.length<4?"short":"long","{timeZoneName}"}}function G(e,r){if(!yr.test(r)){var t={originalPattern:r,_:{}};return t.extendedPattern=r.replace(hr,function(e){return C(e,t._)}),e.replace(hr,function(e){return C(e,t)}),q(t)}}function Z(e){var r=e.availableFormats,t=e.timeFormats,n=e.dateFormats,a=[],i=void 0,o=void 0,s=void 0,l=void 0,c=void 0,u=[],g=[];for(i in r)r.hasOwnProperty(i)&&(o=r[i],s=G(i,o),s&&(a.push(s),I(s)?g.push(s):A(s)&&u.push(s)));for(i in t)t.hasOwnProperty(i)&&(o=t[i],s=G(i,o),s&&(a.push(s),u.push(s)));for(i in n)n.hasOwnProperty(i)&&(o=n[i],s=G(i,o),s&&(a.push(s),g.push(s)));for(l=0;l<u.length;l+=1)for(c=0;c<g.length;c+=1)o="long"===g[c].month?g[c].weekday?e.full:e.long:"short"===g[c].month?e.medium:e.short,s=R(g[c],u[l]),s.originalPattern=o,s.extendedPattern=o.replace("{0}",u[l].extendedPattern).replace("{1}",g[c].extendedPattern).replace(/^[,\s]+|[,\s]+$/gi,""),a.push(q(s));return a}function B(e,r){if(xr[e]&&xr[e][r]){var t;return t={originalPattern:xr[e][r],_:ge({},e,r),extendedPattern:"{"+e+"}"},ge(t,e,r),ge(t,"pattern12","{"+e+"}"),ge(t,"pattern","{"+e+"}"),t}}function U(e,r,t,n,a){var i=e[r]&&e[r][t]?e[r][t]:e.gregory[t],o={narrow:["short","long"],short:["long","narrow"],long:["short","narrow"]},s=Me.call(i,n)?i[n]:Me.call(i,o[n][0])?i[o[n][0]]:i[o[n][1]];return null!==a?s[a]:s}function $(){var e=arguments[0],r=arguments[1];return this&&this!==mr?K(a(this),e,r):new mr.DateTimeFormat(e,r)}function K(e,a,i){var o=l(e),s=n();if(o["[[initializedIntlObject]]"]===!0)throw new TypeError("`this` object has already been initialized as an Intl object");Ie(e,"__getInternalProperties",{value:function(){if(arguments[0]===Ke)return o}}),o["[[initializedIntlObject]]"]=!0;var c=d(a);i=H(i,"any","date");var g=new r,f=D(i,"localeMatcher","string",new t("lookup","best fit"),"best fit");g["[[localeMatcher]]"]=f;var m=$e.DateTimeFormat,v=m["[[localeData]]"],h=b(m["[[availableLocales]]"],c,g,m["[[relevantExtensionKeys]]"],v);o["[[locale]]"]=h["[[locale]]"],o["[[calendar]]"]=h["[[ca]]"],o["[[numberingSystem]]"]=h["[[nu]]"],o["[[dataLocale]]"]=h["[[dataLocale]]"];var p=h["[[dataLocale]]"],y=i.timeZone;if(void 0!==y&&(y=u(y),"UTC"!==y))throw new RangeError("timeZone is not supported.");o["[[timeZone]]"]=y,g=new r;for(var w in Dr)if(Me.call(Dr,w)){var x=D(i,w,"string",Dr[w]);g["[["+w+"]]"]=x}var j=void 0,z=v[p],k=Y(z.formats);if(f=D(i,"formatMatcher","string",new t("basic","best fit"),"best fit"),z.formats=k,"basic"===f)j=W(g,k);else{var O=D(i,"hour12","boolean");g.hour12=void 0===O?z.hour12:O,j=X(g,k)}for(var F in Dr)if(Me.call(Dr,F)&&Me.call(j,F)){var S=j[F];S=j._&&Me.call(j._,F)?j._[F]:S,o["[["+F+"]]"]=S}var E=void 0,L=D(i,"hour12","boolean");if(o["[[hour]]"])if(L=void 0===L?z.hour12:L,o["[[hour12]]"]=L,L===!0){var P=z.hourNo0;o["[[hourNo0]]"]=P,E=j.pattern12}else E=j.pattern;else E=j.pattern;return o["[[pattern]]"]=E,o["[[boundFormat]]"]=void 0,o["[[initializedDateTimeFormat]]"]=!0,_e&&(e.format=V.call(e)),s(),e}function Y(e){return"[object Array]"===Object.prototype.toString.call(e)?e:Z(e)}function H(e,t,n){if(void 0===e)e=null;else{var i=a(e);e=new r;for(var o in i)e[o]=i[o]}var s=Re;e=s(e);var l=!0;return"date"!==t&&"any"!==t||void 0===e.weekday&&void 0===e.year&&void 0===e.month&&void 0===e.day||(l=!1),"time"!==t&&"any"!==t||void 0===e.hour&&void 0===e.minute&&void 0===e.second||(l=!1),!l||"date"!==n&&"all"!==n||(e.year=e.month=e.day="numeric"),!l||"time"!==n&&"all"!==n||(e.hour=e.minute=e.second="numeric"),e}function W(e,r){for(var t=120,n=20,a=8,i=6,o=6,s=3,l=-(1/0),c=void 0,u=0,g=r.length;u<g;){var f=r[u],m=0;for(var v in Dr)if(Me.call(Dr,v)){var d=e["[["+v+"]]"],h=Me.call(f,v)?f[v]:void 0;if(void 0===d&&void 0!==h)m-=n;else if(void 0!==d&&void 0===h)m-=t;else{var p=["2-digit","numeric","narrow","short","long"],y=Ae.call(p,d),b=Ae.call(p,h),w=Math.max(Math.min(b-y,2),-2);2===w?m-=i:1===w?m-=s:w===-1?m-=o:w===-2&&(m-=a)}}m>l&&(l=m,c=f),u++}return c}function X(e,r){var t=[];for(var n in Dr)Me.call(Dr,n)&&void 0!==e["[["+n+"]]"]&&t.push(n);if(1===t.length){var a=B(t[0],e["[["+t[0]+"]]"]);if(a)return a}for(var i=120,o=20,s=8,l=6,c=6,u=3,g=2,f=1,m=-(1/0),v=void 0,d=0,h=r.length;d<h;){var p=r[d],y=0;for(var b in Dr)if(Me.call(Dr,b)){var w=e["[["+b+"]]"],x=Me.call(p,b)?p[b]:void 0,j=Me.call(p._,b)?p._[b]:void 0;if(w!==j&&(y-=g),void 0===w&&void 0!==x)y-=o;else if(void 0!==w&&void 0===x)y-=i;else{var D=["2-digit","numeric","narrow","short","long"],z=Ae.call(D,w),k=Ae.call(D,x),O=Math.max(Math.min(k-z,2),-2);k<=1&&z>=2||k>=2&&z<=1?O>0?y-=l:O<0&&(y-=s):O>1?y-=u:O<-1&&(y-=c)}}p._.hour12!==e.hour12&&(y-=f),y>m&&(m=y,v=p),d++}return v}function V(){var e=null!==this&&"object"===Ne.typeof(this)&&l(this);if(!e||!e["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.DateTimeFormat object.");if(void 0===e["[[boundFormat]]"]){var r=function(){var e=arguments.length<=0||void 0===arguments[0]?void 0:arguments[0],r=void 0===e?Date.now():i(e);return ee(this,r)},t=Ue.call(r,this);e["[[boundFormat]]"]=t}return e["[[boundFormat]]"]}function J(){var e=arguments.length<=0||void 0===arguments[0]?void 0:arguments[0],r=null!==this&&"object"===Ne.typeof(this)&&l(this);if(!r||!r["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.DateTimeFormat object.");var t=void 0===e?Date.now():i(e);return re(this,t)}function Q(e,r){if(!isFinite(r))throw new RangeError("Invalid valid date passed to format");var a=e.__getInternalProperties(Ke);n();for(var i=a["[[locale]]"],o=new mr.NumberFormat([i],{useGrouping:!1}),s=new mr.NumberFormat([i],{minimumIntegerDigits:2,useGrouping:!1}),l=te(r,a["[[calendar]]"],a["[[timeZone]]"]),c=a["[[pattern]]"],u=new t,g=0,f=c.indexOf("{"),m=0,v=a["[[dataLocale]]"],d=$e.DateTimeFormat["[[localeData]]"][v].calendars,h=a["[[calendar]]"];f!==-1;){var p=void 0;if(m=c.indexOf("}",f),m===-1)throw new Error("Unclosed pattern");f>g&&Ge.call(u,{type:"literal",value:c.substring(g,f)});var y=c.substring(f+1,m);if(Dr.hasOwnProperty(y)){var b=a["[["+y+"]]"],w=l["[["+y+"]]"];if("year"===y&&w<=0?w=1-w:"month"===y?w++:"hour"===y&&a["[[hour12]]"]===!0&&(w%=12,0===w&&a["[[hourNo0]]"]===!0&&(w=12)),"numeric"===b)p=T(o,w);else if("2-digit"===b)p=T(s,w),p.length>2&&(p=p.slice(-2));else if(b in jr)switch(y){case"month":p=U(d,h,"months",b,l["[["+y+"]]"]);break;case"weekday":try{p=U(d,h,"days",b,l["[["+y+"]]"])}catch(e){throw new Error("Could not find weekday data for locale "+i)}break;case"timeZoneName":p="";break;case"era":try{p=U(d,h,"eras",b,l["[["+y+"]]"])}catch(e){throw new Error("Could not find era data for locale "+i)}break;default:p=l["[["+y+"]]"]}Ge.call(u,{type:y,value:p})}else if("ampm"===y){var x=l["[[hour]]"];p=U(d,h,"dayPeriods",x>11?"pm":"am",null),Ge.call(u,{type:"dayPeriod",value:p})}else Ge.call(u,{type:"literal",value:c.substring(f,m+1)});g=m+1,f=c.indexOf("{",g)}return m<c.length-1&&Ge.call(u,{type:"literal",value:c.substr(m+1)}),u}function ee(e,r){for(var t=Q(e,r),n="",a=0;t.length>a;a++){var i=t[a];n+=i.value}return n}function re(e,r){for(var t=Q(e,r),n=[],a=0;t.length>a;a++){var i=t[a];n.push({type:i.type,value:i.value})}return n}function te(e,t,n){var a=new Date(e),i="get"+(n||"");return new r({"[[weekday]]":a[i+"Day"](),"[[era]]":+(a[i+"FullYear"]()>=0),"[[year]]":a[i+"FullYear"](),"[[month]]":a[i+"Month"](),"[[day]]":a[i+"Date"](),"[[hour]]":a[i+"Hours"](),"[[minute]]":a[i+"Minutes"](),"[[second]]":a[i+"Seconds"](),"[[inDST]]":!1})}function ne(e,r){if(!e.number)throw new Error("Object passed doesn't contain locale data for Intl.NumberFormat");var t=void 0,n=[r],a=r.split("-");for(a.length>2&&4===a[1].length&&Ge.call(n,a[0]+"-"+a[2]);t=Be.call(n);)Ge.call($e.NumberFormat["[[availableLocales]]"],t),$e.NumberFormat["[[localeData]]"][t]=e.number,e.date&&(e.date.nu=e.number.nu,Ge.call($e.DateTimeFormat["[[availableLocales]]"],t),$e.DateTimeFormat["[[localeData]]"][t]=e.date);void 0===cr&&c(r)}var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},ie=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(r,t,n,a){var i=r&&r.defaultProps,o=arguments.length-3;if(t||0===o||(t={}),t&&i)for(var s in i)void 0===t[s]&&(t[s]=i[s]);else t||(t=i||{});if(1===o)t.children=a;else if(o>1){for(var l=Array(o),c=0;c<o;c++)l[c]=arguments[c+3];t.children=l}return{$$typeof:e,type:r,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}}(),oe=function(e){return function(){var r=e.apply(this,arguments);return new Promise(function(e,t){function n(a,i){try{var o=r[a](i),s=o.value}catch(e){return void t(e)}return o.done?void e(s):Promise.resolve(s).then(function(e){return n("next",e)},function(e){return n("throw",e)})}return n("next")})}},se=function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")},le=function(){function e(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}(),ce=function(e,r){for(var t in r){var n=r[t];n.configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t,n)}return e},ue=function(e,r){for(var t=Object.getOwnPropertyNames(r),n=0;n<t.length;n++){var a=t[n],i=Object.getOwnPropertyDescriptor(r,a);i&&i.configurable&&void 0===e[a]&&Object.defineProperty(e,a,i)}return e},ge=function(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e},fe=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},me=function e(r,t,n){null===r&&(r=Function.prototype);var a=Object.getOwnPropertyDescriptor(r,t);if(void 0===a){var i=Object.getPrototypeOf(r);return null===i?void 0:e(i,t,n)}if("value"in a)return a.value;var o=a.get;if(void 0!==o)return o.call(n)},ve=function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)},de=function(e,r){return null!=r&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](e):e instanceof r},he=function(e){return e&&e.__esModule?e:{default:e}},pe=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r},ye=function(e,r){if(e!==r)throw new TypeError("Cannot instantiate an arrow function")},be=function(e){if(null==e)throw new TypeError("Cannot destructure undefined")},we=function(e,r){var t={};for(var n in e)r.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},xe=function(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?e:r},je="undefined"==typeof global?self:global,De=function e(r,t,n,a){var i=Object.getOwnPropertyDescriptor(r,t);if(void 0===i){var o=Object.getPrototypeOf(r);null!==o&&e(o,t,n,a)}else if("value"in i&&i.writable)i.value=n;else{var s=i.set;void 0!==s&&s.call(a,n)}return n},ze=function(){function e(e,r){var t=[],n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(t.push(o.value),!r||t.length!==r);n=!0);}catch(e){a=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(a)throw i}}return t}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ke=function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){for(var t,n=[],a=e[Symbol.iterator]();!(t=a.next()).done&&(n.push(t.value),!r||n.length!==r););return n}throw new TypeError("Invalid attempt to destructure non-iterable instance")},Oe=function(e,r){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))},Fe=function(e,r){return e.raw=r,e},Se=function(e,r,t){if(e===t)throw new ReferenceError(r+" is not defined - temporal dead zone");return e},Ee={},Le=function(e){return Array.isArray(e)?e:Array.from(e)},Pe=function(e){if(Array.isArray(e)){for(var r=0,t=Array(e.length);r<e.length;r++)t[r]=e[r];return t}return Array.from(e)},Ne=Object.freeze({jsx:ie,asyncToGenerator:oe,classCallCheck:se,createClass:le,defineEnumerableProperties:ce,defaults:ue,defineProperty:ge,get:me,inherits:ve,interopRequireDefault:he,interopRequireWildcard:pe,newArrowCheck:ye,objectDestructuringEmpty:be,objectWithoutProperties:we,possibleConstructorReturn:xe,selfGlobal:je,set:De,slicedToArray:ze,slicedToArrayLoose:ke,taggedTemplateLiteral:Oe,taggedTemplateLiteralLoose:Fe,temporalRef:Se,temporalUndefined:Ee,toArray:Le,toConsumableArray:Pe,typeof:ae,extends:fe,instanceof:de}),Te=function(){var e=function(){};try{return Object.defineProperty(e,"a",{get:function(){return 1}}),Object.defineProperty(e,"prototype",{writable:!1}),1===e.a&&e.prototype instanceof Object}catch(e){return!1}}(),_e=!Te&&!Object.prototype.__defineGetter__,Me=Object.prototype.hasOwnProperty,Ie=Te?Object.defineProperty:function(e,r,t){"get"in t&&e.__defineGetter__?e.__defineGetter__(r,t.get):(!Me.call(e,r)||"value"in t)&&(e[r]=t.value)},Ae=Array.prototype.indexOf||function(e){var r=this;if(!r.length)return-1;for(var t=arguments[1]||0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1},Re=Object.create||function(e,r){function t(){}var n=void 0;t.prototype=e,n=new t;for(var a in r)Me.call(r,a)&&Ie(n,a,r[a]);return n},qe=Array.prototype.slice,Ce=Array.prototype.concat,Ge=Array.prototype.push,Ze=Array.prototype.join,Be=Array.prototype.shift,Ue=Function.prototype.bind||function(e){var r=this,t=qe.call(arguments,1);return 1===r.length?function(){return r.apply(e,Ce.call(t,qe.call(arguments)))}:function(){return r.apply(e,Ce.call(t,qe.call(arguments)))}},$e=Re(null),Ke=Math.random();r.prototype=Re(null),t.prototype=Re(null);var Ye="[a-z]{3}(?:-[a-z]{3}){0,2}",He="(?:[a-z]{2,3}(?:-"+Ye+")?|[a-z]{4}|[a-z]{5,8})",We="[a-z]{4}",Xe="(?:[a-z]{2}|\\d{3})",Ve="(?:[a-z0-9]{5,8}|\\d[a-z0-9]{3})",Je="[0-9a-wy-z]",Qe=Je+"(?:-[a-z0-9]{2,8})+",er="x(?:-[a-z0-9]{1,8})+",rr="(?:en-GB-oed|i-(?:ami|bnn|default|enochian|hak|klingon|lux|mingo|navajo|pwn|tao|tay|tsu)|sgn-(?:BE-FR|BE-NL|CH-DE))",tr="(?:art-lojban|cel-gaulish|no-bok|no-nyn|zh-(?:guoyu|hakka|min|min-nan|xiang))",nr="(?:"+rr+"|"+tr+")",ar=He+"(?:-"+We+")?(?:-"+Xe+")?(?:-"+Ve+")*(?:-"+Qe+")*(?:-"+er+")?",ir=RegExp("^(?:"+ar+"|"+er+"|"+nr+")$","i"),or=RegExp("^(?!x).*?-("+Ve+")-(?:\\w{4,8}-(?!x-))*\\1\\b","i"),sr=RegExp("^(?!x).*?-("+Je+")-(?:\\w+-(?!x-))*\\1\\b","i"),lr=RegExp("-"+Qe,"ig"),cr=void 0,ur={tags:{"art-lojban":"jbo","i-ami":"ami","i-bnn":"bnn","i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu","no-bok":"nb","no-nyn":"nn","sgn-BE-FR":"sfb","sgn-BE-NL":"vgt","sgn-CH-DE":"sgg","zh-guoyu":"cmn","zh-hakka":"hak","zh-min-nan":"nan","zh-xiang":"hsn","sgn-BR":"bzs","sgn-CO":"csn","sgn-DE":"gsg","sgn-DK":"dsl","sgn-ES":"ssp","sgn-FR":"fsl","sgn-GB":"bfi","sgn-GR":"gss","sgn-IE":"isg","sgn-IT":"ise","sgn-JP":"jsl","sgn-MX":"mfs","sgn-NI":"ncs","sgn-NL":"dse","sgn-NO":"nsl","sgn-PT":"psr","sgn-SE":"swl","sgn-US":"ase","sgn-ZA":"sfs","zh-cmn":"cmn","zh-cmn-Hans":"cmn-Hans","zh-cmn-Hant":"cmn-Hant","zh-gan":"gan","zh-wuu":"wuu","zh-yue":"yue"},subtags:{BU:"MM",DD:"DE",FX:"FR",TP:"TL",YD:"YE",ZR:"CD",heploc:"alalc97",in:"id",iw:"he",ji:"yi",jw:"jv",mo:"ro",ayx:"nun",bjd:"drl",ccq:"rki",cjr:"mom",cka:"cmr",cmk:"xch",drh:"khk",drw:"prs",gav:"dev",hrr:"jal",ibi:"opa",kgh:"kml",lcq:"ppr",mst:"mry",myt:"mry",sca:"hle",tie:"ras",tkk:"twm",tlw:"weo",tnf:"prs",ybd:"rki",yma:"lrr"},extLang:{aao:["aao","ar"],abh:["abh","ar"],abv:["abv","ar"],acm:["acm","ar"],acq:["acq","ar"],acw:["acw","ar"],acx:["acx","ar"],acy:["acy","ar"],adf:["adf","ar"],ads:["ads","sgn"],aeb:["aeb","ar"],aec:["aec","ar"],aed:["aed","sgn"],aen:["aen","sgn"],afb:["afb","ar"],afg:["afg","sgn"],ajp:["ajp","ar"],apc:["apc","ar"],apd:["apd","ar"],arb:["arb","ar"],arq:["arq","ar"],ars:["ars","ar"],ary:["ary","ar"],arz:["arz","ar"],ase:["ase","sgn"],asf:["asf","sgn"],asp:["asp","sgn"],asq:["asq","sgn"],asw:["asw","sgn"],auz:["auz","ar"],avl:["avl","ar"],ayh:["ayh","ar"],ayl:["ayl","ar"],ayn:["ayn","ar"],ayp:["ayp","ar"],bbz:["bbz","ar"],bfi:["bfi","sgn"],bfk:["bfk","sgn"],bjn:["bjn","ms"],bog:["bog","sgn"],bqn:["bqn","sgn"],bqy:["bqy","sgn"],btj:["btj","ms"],bve:["bve","ms"],bvl:["bvl","sgn"],bvu:["bvu","ms"],bzs:["bzs","sgn"],cdo:["cdo","zh"],cds:["cds","sgn"],cjy:["cjy","zh"],cmn:["cmn","zh"],coa:["coa","ms"],cpx:["cpx","zh"],csc:["csc","sgn"],csd:["csd","sgn"],cse:["cse","sgn"],csf:["csf","sgn"],csg:["csg","sgn"],csl:["csl","sgn"],csn:["csn","sgn"],csq:["csq","sgn"],csr:["csr","sgn"],czh:["czh","zh"],czo:["czo","zh"],doq:["doq","sgn"],dse:["dse","sgn"],dsl:["dsl","sgn"],dup:["dup","ms"],ecs:["ecs","sgn"],esl:["esl","sgn"],esn:["esn","sgn"],eso:["eso","sgn"],eth:["eth","sgn"],fcs:["fcs","sgn"],fse:["fse","sgn"],fsl:["fsl","sgn"],fss:["fss","sgn"],gan:["gan","zh"],gds:["gds","sgn"],gom:["gom","kok"],gse:["gse","sgn"],gsg:["gsg","sgn"],gsm:["gsm","sgn"],gss:["gss","sgn"],gus:["gus","sgn"],hab:["hab","sgn"],haf:["haf","sgn"],hak:["hak","zh"],hds:["hds","sgn"],hji:["hji","ms"],hks:["hks","sgn"],hos:["hos","sgn"],hps:["hps","sgn"],hsh:["hsh","sgn"],hsl:["hsl","sgn"],hsn:["hsn","zh"],icl:["icl","sgn"],ils:["ils","sgn"],inl:["inl","sgn"],ins:["ins","sgn"], ise:["ise","sgn"],isg:["isg","sgn"],isr:["isr","sgn"],jak:["jak","ms"],jax:["jax","ms"],jcs:["jcs","sgn"],jhs:["jhs","sgn"],jls:["jls","sgn"],jos:["jos","sgn"],jsl:["jsl","sgn"],jus:["jus","sgn"],kgi:["kgi","sgn"],knn:["knn","kok"],kvb:["kvb","ms"],kvk:["kvk","sgn"],kvr:["kvr","ms"],kxd:["kxd","ms"],lbs:["lbs","sgn"],lce:["lce","ms"],lcf:["lcf","ms"],liw:["liw","ms"],lls:["lls","sgn"],lsg:["lsg","sgn"],lsl:["lsl","sgn"],lso:["lso","sgn"],lsp:["lsp","sgn"],lst:["lst","sgn"],lsy:["lsy","sgn"],ltg:["ltg","lv"],lvs:["lvs","lv"],lzh:["lzh","zh"],max:["max","ms"],mdl:["mdl","sgn"],meo:["meo","ms"],mfa:["mfa","ms"],mfb:["mfb","ms"],mfs:["mfs","sgn"],min:["min","ms"],mnp:["mnp","zh"],mqg:["mqg","ms"],mre:["mre","sgn"],msd:["msd","sgn"],msi:["msi","ms"],msr:["msr","sgn"],mui:["mui","ms"],mzc:["mzc","sgn"],mzg:["mzg","sgn"],mzy:["mzy","sgn"],nan:["nan","zh"],nbs:["nbs","sgn"],ncs:["ncs","sgn"],nsi:["nsi","sgn"],nsl:["nsl","sgn"],nsp:["nsp","sgn"],nsr:["nsr","sgn"],nzs:["nzs","sgn"],okl:["okl","sgn"],orn:["orn","ms"],ors:["ors","ms"],pel:["pel","ms"],pga:["pga","ar"],pks:["pks","sgn"],prl:["prl","sgn"],prz:["prz","sgn"],psc:["psc","sgn"],psd:["psd","sgn"],pse:["pse","ms"],psg:["psg","sgn"],psl:["psl","sgn"],pso:["pso","sgn"],psp:["psp","sgn"],psr:["psr","sgn"],pys:["pys","sgn"],rms:["rms","sgn"],rsi:["rsi","sgn"],rsl:["rsl","sgn"],sdl:["sdl","sgn"],sfb:["sfb","sgn"],sfs:["sfs","sgn"],sgg:["sgg","sgn"],sgx:["sgx","sgn"],shu:["shu","ar"],slf:["slf","sgn"],sls:["sls","sgn"],sqk:["sqk","sgn"],sqs:["sqs","sgn"],ssh:["ssh","ar"],ssp:["ssp","sgn"],ssr:["ssr","sgn"],svk:["svk","sgn"],swc:["swc","sw"],swh:["swh","sw"],swl:["swl","sgn"],syy:["syy","sgn"],tmw:["tmw","ms"],tse:["tse","sgn"],tsm:["tsm","sgn"],tsq:["tsq","sgn"],tss:["tss","sgn"],tsy:["tsy","sgn"],tza:["tza","sgn"],ugn:["ugn","sgn"],ugy:["ugy","sgn"],ukl:["ukl","sgn"],uks:["uks","sgn"],urk:["urk","ms"],uzn:["uzn","uz"],uzs:["uzs","uz"],vgt:["vgt","sgn"],vkk:["vkk","ms"],vkt:["vkt","ms"],vsi:["vsi","sgn"],vsl:["vsl","sgn"],vsv:["vsv","sgn"],wuu:["wuu","zh"],xki:["xki","sgn"],xml:["xml","sgn"],xmm:["xmm","ms"],xms:["xms","sgn"],yds:["yds","sgn"],ysl:["ysl","sgn"],yue:["yue","zh"],zib:["zib","sgn"],zlm:["zlm","ms"],zmi:["zmi","ms"],zsl:["zsl","sgn"],zsm:["zsm","ms"]}},gr=/^[A-Z]{3}$/,fr=/-u(?:-[0-9a-z]{2,8})+/gi,mr={};Object.defineProperty(mr,"getCanonicalLocales",{enumerable:!1,configurable:!0,writable:!0,value:k});var vr={BHD:3,BYR:0,XOF:0,BIF:0,XAF:0,CLF:4,CLP:0,KMF:0,DJF:0,XPF:0,GNF:0,ISK:0,IQD:3,JPY:0,JOD:3,KRW:0,KWD:3,LYD:3,OMR:3,PYG:0,RWF:0,TND:3,UGX:0,UYI:0,VUV:0,VND:0};Ie(mr,"NumberFormat",{configurable:!0,writable:!0,value:O}),Ie(mr.NumberFormat,"prototype",{writable:!1}),$e.NumberFormat={"[[availableLocales]]":[],"[[relevantExtensionKeys]]":["nu"],"[[localeData]]":{}},Ie(mr.NumberFormat,"supportedLocalesOf",{configurable:!0,writable:!0,value:Ue.call(function(e){if(!Me.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var r=n(),t=arguments[1],a=this["[[availableLocales]]"],i=d(e);return r(),j(a,i,t)},$e.NumberFormat)}),Ie(mr.NumberFormat.prototype,"format",{configurable:!0,get:E}),Object.defineProperty(mr.NumberFormat.prototype,"formatToParts",{configurable:!0,enumerable:!1,writable:!0,value:L});var dr={arab:["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"],arabext:["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],bali:["᭐","᭑","᭒","᭓","᭔","᭕","᭖","᭗","᭘","᭙"],beng:["০","১","২","৩","৪","৫","৬","৭","৮","৯"],deva:["०","१","२","३","४","५","६","७","८","९"],fullwide:["0","1","2","3","4","5","6","7","8","9"],gujr:["૦","૧","૨","૩","૪","૫","૬","૭","૮","૯"],guru:["੦","੧","੨","੩","੪","੫","੬","੭","੮","੯"],hanidec:["〇","一","二","三","四","五","六","七","八","九"],khmr:["០","១","២","៣","៤","៥","៦","៧","៨","៩"],knda:["೦","೧","೨","೩","೪","೫","೬","೭","೮","೯"],laoo:["໐","໑","໒","໓","໔","໕","໖","໗","໘","໙"],latn:["0","1","2","3","4","5","6","7","8","9"],limb:["᥆","᥇","᥈","᥉","᥊","᥋","᥌","᥍","᥎","᥏"],mlym:["൦","൧","൨","൩","൪","൫","൬","൭","൮","൯"],mong:["᠐","᠑","᠒","᠓","᠔","᠕","᠖","᠗","᠘","᠙"],mymr:["၀","၁","၂","၃","၄","၅","၆","၇","၈","၉"],orya:["୦","୧","୨","୩","୪","୫","୬","୭","୮","୯"],tamldec:["௦","௧","௨","௩","௪","௫","௬","௭","௮","௯"],telu:["౦","౧","౨","౩","౪","౫","౬","౭","౮","౯"],thai:["๐","๑","๒","๓","๔","๕","๖","๗","๘","๙"],tibt:["༠","༡","༢","༣","༤","༥","༦","༧","༨","༩"]};Ie(mr.NumberFormat.prototype,"resolvedOptions",{configurable:!0,writable:!0,value:function(){var e=void 0,t=new r,n=["locale","numberingSystem","style","currency","currencyDisplay","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","useGrouping"],a=null!==this&&"object"===Ne.typeof(this)&&l(this);if(!a||!a["[[initializedNumberFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.NumberFormat object.");for(var i=0,o=n.length;i<o;i++)Me.call(a,e="[["+n[i]+"]]")&&(t[n[i]]={value:a[e],writable:!0,configurable:!0,enumerable:!0});return Re({},t)}});var hr=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,pr=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,yr=/[rqQASjJgwWIQq]/,br=["era","year","month","day","weekday","quarter"],wr=["hour","minute","second","hour12","timeZoneName"],xr={second:{numeric:"s","2-digit":"ss"},minute:{numeric:"m","2-digit":"mm"},year:{numeric:"y","2-digit":"yy"},day:{numeric:"d","2-digit":"dd"},month:{numeric:"L","2-digit":"LL",narrow:"LLLLL",short:"LLL",long:"LLLL"},weekday:{narrow:"ccccc",short:"ccc",long:"cccc"}},jr=Re(null,{narrow:{},short:{},long:{}});Ie(mr,"DateTimeFormat",{configurable:!0,writable:!0,value:$}),Ie($,"prototype",{writable:!1});var Dr={weekday:["narrow","short","long"],era:["narrow","short","long"],year:["2-digit","numeric"],month:["2-digit","numeric","narrow","short","long"],day:["2-digit","numeric"],hour:["2-digit","numeric"],minute:["2-digit","numeric"],second:["2-digit","numeric"],timeZoneName:["short","long"]};$e.DateTimeFormat={"[[availableLocales]]":[],"[[relevantExtensionKeys]]":["ca","nu"],"[[localeData]]":{}},Ie(mr.DateTimeFormat,"supportedLocalesOf",{configurable:!0,writable:!0,value:Ue.call(function(e){if(!Me.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var r=n(),t=arguments[1],a=this["[[availableLocales]]"],i=d(e);return r(),j(a,i,t)},$e.NumberFormat)}),Ie(mr.DateTimeFormat.prototype,"format",{configurable:!0,get:V}),Object.defineProperty(mr.DateTimeFormat.prototype,"formatToParts",{enumerable:!1,writable:!0,configurable:!0,value:J}),Ie(mr.DateTimeFormat.prototype,"resolvedOptions",{writable:!0,configurable:!0,value:function(){var e=void 0,t=new r,n=["locale","calendar","numberingSystem","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"],a=null!==this&&"object"===Ne.typeof(this)&&l(this);if(!a||!a["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.DateTimeFormat object.");for(var i=0,o=n.length;i<o;i++)Me.call(a,e="[["+n[i]+"]]")&&(t[n[i]]={value:a[e],writable:!0,configurable:!0,enumerable:!0});return Re({},t)}});var zr=mr.__localeSensitiveProtos={Number:{},Date:{}};if(zr.Number.toLocaleString=function(){if("[object Number]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a number for Number.prototype.toLocaleString()");return T(new O(arguments[0],arguments[1]),this)},zr.Date.toLocaleString=function(){if("[object Date]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a Date instance for Date.prototype.toLocaleString()");var e=+this;if(isNaN(e))return"Invalid Date";var r=arguments[0],t=arguments[1];t=H(t,"any","all");var n=new $(r,t);return ee(n,e)},zr.Date.toLocaleDateString=function(){if("[object Date]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a Date instance for Date.prototype.toLocaleDateString()");var e=+this;if(isNaN(e))return"Invalid Date";var r=arguments[0],t=arguments[1];t=H(t,"date","date");var n=new $(r,t);return ee(n,e)},zr.Date.toLocaleTimeString=function(){if("[object Date]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a Date instance for Date.prototype.toLocaleTimeString()");var e=+this;if(isNaN(e))return"Invalid Date";var r=arguments[0],t=arguments[1];t=H(t,"time","time");var n=new $(r,t);return ee(n,e)},Ie(mr,"__applyLocaleSensitivePrototypes",{writable:!0,configurable:!0,value:function(){Ie(Number.prototype,"toLocaleString",{writable:!0,configurable:!0,value:zr.Number.toLocaleString}),Ie(Date.prototype,"toLocaleString",{writable:!0,configurable:!0,value:zr.Date.toLocaleString});for(var e in zr.Date)Me.call(zr.Date,e)&&Ie(Date.prototype,e,{writable:!0,configurable:!0,value:zr.Date[e]})}}),Ie(mr,"__addLocaleData",{value:function(e){if(!g(e.locale))throw new Error("Object passed doesn't identify itself with a valid language tag");ne(e,e.locale)}}),Ie(mr,"__disableRegExpRestore",{value:function(){$e.disableRegExpRestore=!0}}),"undefined"==typeof Intl)try{window.Intl=mr,mr.__applyLocaleSensitivePrototypes()}catch(e){}return mr}); //# sourceMappingURL=Intl.min.js.map (function(addLocaleData){ var a=["gregory","buddhist","chinese","coptic","dangi","ethioaa","ethiopic","generic","hebrew","indian","islamic","islamicc","japanese","persian","roc","{1}, {0}","{1} 'at' {0}","d","ccc","d E","E h:mm a","E HH:mm","E h:mm:ss a","E HH:mm:ss","y G","MMM y G","MMM d, y G","E, MMM d, y G","h a","HH","h:mm a","HH:mm","h:mm:ss a","HH:mm:ss","h:mm:ss a v","HH:mm:ss v","h:mm a v","HH:mm v","L","M/d","E, M/d","LLL","MMM d","E, MMM d","MMMM d","mm:ss","y","M/y","M/d/y","E, M/d/y","MMM y","MMM d, y","E, MMM d, y","MMMM y","QQQ y","QQQQ y","EEEE, MMMM d, y","MMMM d, y","M/d/yy","h:mm:ss a zzzz","h:mm:ss a z","J","F","M","A","S","O","N","D","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","June","July","August","September","October","November","December","T","W","Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","BE","AM","PM","1","2","3","4","5","6","7","8","9","10","11","12","Mo1","Mo2","Mo3","Mo4","Mo5","Mo6","Mo7","Mo8","Mo9","Mo10","Mo11","Mo12","Month1","Month2","Month3","Month4","Month5","Month6","Month7","Month8","Month9","Month10","Month11","Month12","13","Tout","Baba","Hator","Kiahk","Toba","Amshir","Baramhat","Baramouda","Bashans","Paona","Epep","Mesra","Nasie","ERA0","ERA1","Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen","M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12","B","BCE","CE","BC","AD","Before Christ","Anno Domini","Before Common Era","Common Era","Tishri","Heshvan","Kislev","Tevet","Shevat","Adar I","Adar","Nisan","Iyar","Sivan","Tamuz","Av","Elul","Adar II","Chaitra","Vaisakha","Jyaistha","Asadha","Sravana","Bhadra","Asvina","Kartika","Agrahayana","Pausa","Magha","Phalguna","Saka","Muh.","Saf.","Rab. I","Rab. II","Jum. I","Jum. II","Raj.","Sha.","Ram.","Shaw.","Dhuʻl-Q.","Dhuʻl-H.","Muharram","Safar","Rabiʻ I","Rabiʻ II","Jumada I","Jumada II","Rajab","Shaʻban","Ramadan","Shawwal","Dhuʻl-Qiʻdah","Dhuʻl-Hijjah","AH","Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","H","Meiji","Taishō","Shōwa","Heisei","Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand","AP","Before R.O.C.","Minguo","latn","{number}","{minusSign}{number}","{currency}{number}","{minusSign}{currency}{number}","{number}{percentSign}","{minusSign}{number}{percentSign}",".",",","NaN","+","-","%","∞","A$","R$","CA$","CN¥","€","£","HK$","₪","₹","¥","₩","MX$","NZ$","NT$","$","₫","FCFA","EC$","CFA","CFPF","{1} {0}","E d","E hh:mm a","E hh:mm:ss a","dd MMM y G","E, dd MMM y G","dd-MM","E, d/M","d MMM","E d MMM","E d MMMM","MM-y","y-MM-dd","E y-MM-dd","d MMM y","E, d MMM y","EEEE, dd MMMM y","dd MMMM y","dd MMM y","Jan.","Feb.","Mrt.","Apr.","Mei","Jun.","Jul.","Aug.","Sep.","Okt.","Nov.","Des.","Januarie","Februarie","Maart","Junie","Julie","Augustus","Oktober","Desember","V","So.","Ma.","Di.","Wo.","Do.","Vr.","Sa.","Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag","vm.","nm.","v.C.","n.C.","v.g.j.","g.j.","voor Christus","na Christus","voor die gewone jaartelling","R.O.C."," ","JP¥","฿","US$","R","G y","G y MMM","G y MMM d","G y MMM d, E","d/M","E d/M","m:ss","d/M/y","E d/M/y","E d MMM y","y MMMM","EEEE d MMMM y","d MMMM y","d MMM, y","HH:mm:ss zzzz","HH:mm:ss z","n","k","t","s","z","f","l","c","nùm","kɨz","tɨd","taa","see","nzu","dum","fɔe","dzu","lɔm","kaa","fwo","ndzɔ̀ŋɔ̀nùm","ndzɔ̀ŋɔ̀kƗ̀zùʔ","ndzɔ̀ŋɔ̀tƗ̀dʉ̀ghà","ndzɔ̀ŋɔ̀tǎafʉ̄ghā","ndzɔ̀ŋèsèe","ndzɔ̀ŋɔ̀nzùghò","ndzɔ̀ŋɔ̀dùmlo","ndzɔ̀ŋɔ̀kwîfɔ̀e","ndzɔ̀ŋɔ̀tƗ̀fʉ̀ghàdzughù","ndzɔ̀ŋɔ̀ghǔuwelɔ̀m","ndzɔ̀ŋɔ̀chwaʔàkaa wo","ndzɔ̀ŋèfwòo","g","u","nts","kpa","ghɔ","tɔm","ume","ghɨ","dzk","tsuʔntsɨ","tsuʔukpà","tsuʔughɔe","tsuʔutɔ̀mlò","tsuʔumè","tsuʔughɨ̂m","tsuʔndzɨkɔʔɔ","a.g","a.k","SK","BK","Sěe Kɨ̀lesto","Bǎa Kɨ̀lesto","{number}{currency}","{minusSign}{number}{currency}","d, E","E, MMMM d","y/M/d","y MMM d","EEEE, y MMMM dd","y MMMM d","yy/MM/dd","S-Ɔ","K-Ɔ","E-Ɔ","E-O","E-K","O-A","A-K","D-Ɔ","F-Ɛ","Ɔ-A","Ɔ-O","M-Ɔ","Sanda-Ɔpɛpɔn","Kwakwar-Ɔgyefuo","Ebɔw-Ɔbenem","Ebɔbira-Oforisuo","Esusow Aketseaba-Kɔtɔnimba","Obirade-Ayɛwohomumu","Ayɛwoho-Kitawonsa","Difuu-Ɔsandaa","Fankwa-Ɛbɔ","Ɔbɛsɛ-Ahinime","Ɔberɛfɛw-Obubuo","Mumu-Ɔpɛnimba","K","Y","Kwe","Dwo","Ben","Wuk","Yaw","Fia","Mem","Kwesida","Dwowda","Benada","Wukuda","Yawda","Fida","Memeneda","AN","EW","AK","KE","Ansa Kristo","Kristo Ekyiri","GH₵","MMM d፣ y G","E፣ MMM d፣ y G","E፣ M/d","E፣ MMM d","E፣ MMMM d","E፣ d/M/y","E፣ MMM d y","EEEE ፣d MMMM y","dd/MM/y","ጃ","ፌ","ማ","ኤ","ሜ","ጁ","ኦ","ሴ","ኖ","ዲ","ጃንዩ","ፌብሩ","ማርች","ኤፕሪ","ሜይ","ጁን","ጁላይ","ኦገስ","ሴፕቴ","ኦክቶ","ኖቬም","ዲሴም","ጃንዩወሪ","ፌብሩወሪ","ኤፕሪል","ኦገስት","ሴፕቴምበር","ኦክቶበር","ኖቬምበር","ዲሴምበር","እ","ሰ","ረ","ሐ","ዓ","ቅ","እሑድ","ሰኞ","ማክሰ","ረቡዕ","ሐሙስ","ዓርብ","ቅዳሜ","ማክሰኞ","ጥዋት","ከሰዓት","መስከረም","ጥቅምት","ኅዳር","ታኅሣሥ","ጥር","የካቲት","መጋቢት","ሚያዝያ","ግንቦት","ሰኔ","ሐምሌ","ነሐሴ","ጳጉሜን","ዓ/ዓ","ዓ/ም","ዓመተ ዓለም","ዓመተ ምሕረት","AU$","ብር","E، d","d MMM، y G","E، d MMM، y G","d/‏M","E، d/M","dd‏/MM","E، d MMM","d MMMM","E، d MMMM","M‏/y","d‏/M‏/y","E، d/‏M/‏y","MM‏/y","d MMM، y","E، d MMM، y","EEEE، d MMMM، y","d MMMM، y","dd‏/MM‏/y","ي","ف","م","أ","و","ن","ل","غ","س","ك","ب","د","يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر","ح","ث","ر","خ","ج","الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت","التقويم البوذي","ص","١","٢","٣","٤","٥","٦","٧","٨","٩","١٠","١١","١٢","١٣","توت","بابه","هاتور","كيهك","طوبة","أمشير","برمهات","برمودة","بشنس","بؤونة","أبيب","مسرى","نسيئ","مسكريم","تكمت","هدار","تهساس","تر","يكتت","مجابيت","ميازيا","جنبت","سين","هامل","نهاس","باجمن","ق.م","ب.م","قبل الميلاد","ميلادي","بعد الميلاد","تشري","مرحشوان","كيسلو","طيفت","شباط","آذار الأول","آذار","نيسان","أيار","سيفان","تموز","آب","أيلول","آذار الثاني","محرم","صفر","ربيع الأول","ربيع الآخر","جمادى الأولى","جمادى الآخرة","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة","هـ","تيكا","هاكتشي","هاكهو","شتشو","تيهو","كيين","وادو","رييكي","يورو","جينكي","تمبيو","تمبيو-كامبو","تمبيو-شوهو","تمبيو-هوجي","تمفو-جينجو","جينجو-كيين","هوكي","تن-أو","إنرياكو","ديدو","كونين","تنتشو","شووا (٨٣٤–٨٤٨)‏","كاجو","نينجو","سيكو","تنان","جوجان","جينكيي","نينا","كامبيو","شوتاي","انجي","انتشو","شوهيي","تنجيو","تنرياكو","تنتوكو","أووا","كوهو","آنا","تينروكو","تن-نن","جوجن","تنجن","إيكان","كانا","اي-ان","ايسو","شورياكو (٩٩٠–٩٩٥)‏","تشوتوكو","تشوهو","كانكو","تشووا","كانين","جاين","مانجو","تشوجين","تشورياكو","تشوكيو (١٠٤٠–١٠٤٤)‏","كانتوكو","ايشو (١٠٤٦–١٠٥٣)‏","تينجي","كوهيي","جيرياكو","انكيو (١٠٦٩–١٠٧٤)‏","شوهو (١٠٧٤–١٠٧٧)‏","شورياكو (١٠٧٧–١٠٨١)‏","ايهو","أوتوكو","كانجي","كاهو","ايتشو","شوتوكو","كووا (١٠٩٩–١١٠٤)‏","تشوجي","كاشو","تنين","تن-اي","ايكيو (١١١٣–١١١٨)‏","جن-اي","هوان","تنجي","ديجي","تنشو (١١٣١–١١٣٢)‏","تشوشو","هوين","ايجي","كوجي (١١٤٢–١١٤٤)‏","تنيو","كيوان","نينبيي","كيوجو","هجين","هيجي","ايرياكو","أوهو","تشوكان","ايمان","نين-ان","كاو","شون","أنجين","جيشو","يووا","جيي","جنريوكو","بنجي","كنكيو","شوجي","كنين","جنكيو (١٢٠٤–١٢٠٦)‏","كن-اي","شوجن (١٢٠٧–١٢١١)‏","كنرياكو","كنبو (١٢١٣–١٢١٩)‏","شوكيو","جو","جيننين","كروكو","أنتيي","كنكي","جويي","تمبكو","بنرياكو","كاتيي","رياكنين","ان-أو","نينجي","كنجين","هوجي","كنتشو","كوجن","شوكا","شوجن (١٢٥٩–١٢٦٠)‏","بن-أو","كوتشو","بن-اي","كنجي","كوان","شوو (١٢٨٨–١٢٩٣)‏","اينين","شوان","كنجن","كجن","توكجي","انكي","أوتشو","شووا (١٣١٢–١٣١٧)‏","بنبو","جنو","جنكيو (١٣٢١–١٣٢٤)‏","شوتشو (١٣٢٤–١٣٢٦)‏","كريكي","جنتكو","جنكو","كمو","إنجن","كوككو","شوهي","كنتكو","بنتشو","تنجو","كورياكو","كووا (١٣٨١–١٣٨٤)‏","جنتشو","مييتكو (١٣٨٤–١٣٨٧)‏","كاكي","كو","مييتكو (١٣٩٠–١٣٩٤)‏","أويي","شوتشو (١٤٢٨–١٤٢٩)‏","ايكيو (١٤٢٩–١٤٤١)‏","ككيتسو","بن-أن","هوتكو","كيوتكو","كوشو","تشوركو","كنشو","بنشو","أونين","بنمي","تشوكيو (١٤٨٧–١٤٨٩)‏","انتكو","ميو","بنكي","ايشو (١٥٠٤–١٥٢١)‏","تييي","كيوركو","تنمن","كوجي (١٥٥٥–١٥٥٨)‏","ايركو","جنكي","تنشو (١٥٧٣–١٥٩٢)‏","بنركو","كيتشو","جنوا","كان-اي","شوهو (١٦٤٤–١٦٤٨)‏","كيان","شوو (١٦٥٢–١٦٥٥)‏","ميرياكو","منجي","كنبن","انبو","تنوا","جوكيو","جنركو","هويي","شوتكو","كيوهو","جنبن","كنبو (١٧٤١–١٧٤٤)‏","انكيو (١٧٤٤–١٧٤٨)‏","كان-ان","هورياكو","مييوا","ان-اي","تنمي","كنسي","كيووا","بنكا","بنسي","تنبو","كوكا","كاي","أنسي","من-ان","بنكيو","جنجي","كيو","ميجي","تيشو","شووا","هيسي","فرفردن","أذربيهشت","خرداد","تار","مرداد","شهرفار","مهر","آيان","آذر","دي","بهمن","اسفندار","ه‍.ش","جمهورية الصي","arab","{currency} {number}","{minusSign}{currency} {number}","٫","٬","ليس رقم","‏+","‏-","٪","ليس رقمًا","‎+","‎-","د.إ.‏","د.ب.‏","د.ج.‏","ج.م.‏","ر.إن.","د.ع.‏","ر.إ.","د.أ.‏","ف.ج.ق.‏","د.ك.‏","ل.ل.‏","د.ل.‏","د.م.‏","أ.م.‏","ر.ع.‏","ر.ب.","ر.ق.‏","ر.س.‏","د.س.‏","ج.س.","ج.ج.س.","ل.س.‏","د.ت.‏","ل.ت.","***","ر.ي.‏","Fdj","جانفي","فيفري","أفريل","ماي","جوان","جويلية","أوت","Nfk","H:mm:ss zzzz","H:mm:ss z","H:mm:ss","H:mm","ش","آ","ت","كانون الثاني","حزيران","تشرین الأول","تشرين الثاني","كانون الأول","تشرين الأول","يوليوز","غشت","شتنبر","نونبر","دجنبر","إ","إبريل","أغشت","شتمبر","دجمبر","GB£","MM-dd","MM-dd, E","MMM d, E","y-MM","y-MM-dd, E","y MMM","y MMM d, E","y QQQ","y QQQQ","y MMMM d, EEEE","জানু","ফেব্ৰু","মাৰ্চ","এপ্ৰিল","মে","জুন","জুলাই","আগ","সেপ্ট","অক্টো","নভে","ডিসে","জানুৱাৰী","ফেব্ৰুৱাৰী","আগষ্ট","ছেপ্তেম্বৰ","অক্টোবৰ","নৱেম্বৰ","ডিচেম্বৰ","ৰবি","সোম","মঙ্গল","বুধ","বৃহষ্পতি","শুক্ৰ","শনি","দেওবাৰ","সোমবাৰ","মঙ্গলবাৰ","বুধবাৰ","বৃহষ্পতিবাৰ","শুক্ৰবাৰ","শনিবাৰ","পূৰ্বাহ্ণ","অপৰাহ্ণ","beng","EEEE, d MMMM y","Mac","Ago","Okt","Januari","Februari","Machi","Aprili","Juni","Julai","Agosti","Septemba","Oktoba","Novemba","Desemba","I","Jpi","Jtt","Jnn","Jtn","Alh","Ijm","Jmo","Jumapili","Jumatatu","Jumanne","Jumatano","Alhamisi","Ijumaa","Jumamosi","icheheavo","ichamthi","KM","BM","Kabla yakwe Yethu","Baada yakwe Yethu","{number} {currency}","{minusSign}{number} {currency}","TSh","{1} 'a' 'les' {0}","d MMM y G","E, d MMM y G","E, d MMM","E, d/M/y","LLLL 'de' y","EEEE, d MMMM 'de' y","d MMMM 'de' y","d/M/yy","X","P","xin","feb","mar","abr","may","xun","xnt","ago","set","och","pay","avi","de xineru","de febreru","de marzu","d’abril","de mayu","de xunu","de xunetu","d’agostu","de setiembre","d’ochobre","de payares","d’avientu","dom","llu","mié","xue","vie","sáb","domingu","llunes","martes","miércoles","xueves","vienres","sábadu","EB","era budista","de la mañana","de la tardi","mes 1","mes 2","mes 3","mes 4","mes 5","mes 6","mes 7","mes 8","mes 9","mes 10","mes 11","mes 12","mes","tek","hed","tah","ter","yek","meg","mia","gen","sen","ham","neh","pag","de meskerem","de tekemt","d’hedar","de tahsas","de ter","de yekatit","de megabit","de miazia","de genbot","de sene","d’hamle","de nehasse","de pagumen","aE","dE","a. E.","d. E.","antes de la Encarnación","después de la Encarnación","aC","dC","anE","nE","a.C.","d.C.","edC","n.E.","después de Cristu","antes de nuestra Era","nuestra Era","Taika","Tenpyō","T. kampō","T. shōhō","T. hōji","T. jingo","Saikō","Ten-an","Jōgan","Gangyō","Kanpyō","Jōhei","Tenryaku","Eien","Eihō","Hakuchi","Hakuhō","Shuchō","Taihō","Keiun","Wadō","Reiki","Yōrō","Jinki","T.-kampō","T.-shōhō","T.-hōji","T.-jingo","J.-keiun","Hōki","Ten-ō","Enryaku","Daidō","Kōnin","Tenchō","Jōwa","Kajō","Ninju","Ninna","Shōtai","Engi","Enchō","Tengyō","Tentoku","Ōwa","Kōhō","Anna","Tenroku","Ten’en","Jōgen","Tengen","Eikan","Kanna","Eiso","Shōryaku","Chōtoku","Chōhō","Kankō","Chōwa","Kannin","Jian","Manju","Chōgen","Chōryaku","Chōkyū","Kantoku","Eishō","Tengi","Kōhei","Jiryaku","Enkyū","Shōho","Shōryaku II","Ōtoku","Kanji","Kahō","Eichō","Jōtoku","Kōwa","Chōji","Kashō","Tennin","Ten-ei","Eikyū","Gen’ei","Hōan","Tenji","Daiji","Tenshō","Chōshō","Hōen","Eiji","Kōji","Ten’yō","Kyūan","Ninpei","Kyūju","Hōgen","Heiji","Eiryaku","Ōho","Chōkan","Eiman","Nin’an","Kaō","Shōan","Angen","Jishō","Yōwa","Juei","Genryaku","Bunji","Kenkyū","Shōji","Kennin","Genkyū","Ken’ei","Jōgen II","Kenryaku","Kenpō","Jōkyū","Jōō","Gennin","Karoku","Antei","Kanki","Jōei","Tenpuku","Bunryaku","Katei","Ryakunin","En’ō","Ninji","Kangen","Hōji","Kenchō","Kōgen","Shōka","Shōgen","Bun’ō","Kōchō","Bun’ei","Kenji","Kōan","Shōō","Einin","Shōan II","Kengen","Kagen","Tokuji","Enkyō","Ōchō","Bunpō","Genō","Genkō","Shōchū","Karyaku","Gentoku","Genkō II","Kenmu","Engen","Kōkoku","Shōhei","Kentoku","Bunchū","Tenju","Kōryaku","Kōwa II","Genchū","Meitoku","Kakei","Kōō","Meitoku II","Ōei","Shōchō","Eikyō","Kakitsu","Bun’an","Hōtoku","Kyōtoku","Kōshō","Chōroku","Kanshō","Bunshō","Ōnin","Bunmei","Chōkyō","Entoku","Meiō","Bunki","Eishō II","Taiei","Kyōroku","Tenbun","Kōji II","Eiroku","Genki","Tenshō II","Bunroku","Keichō","Genna","Kan’ei","Shōho II","Keian","Jōō II","Meireki","Manji","Kanbun","Enpō","Tenna","Jōkyō","Genroku","Hōei","Shōtoku","Kyōhō","Genbun","Kanpō","Enkyō II","Kan’en","Hōreki","Meiwa","An’ei","Tenmei","Kansei","Kyōwa","Bunka","Bunsei","Tenpō","Kōka","Kaei","Ansei","Man’en","Bunkyū","Genji","Keiō","e. Shōwa","En-ō (1239-1240)","era Shōwa","A.R.D.C.","R.D.C.","antes de la R.D.C.","ND","G MMM y","G d MMM y","G d MMM y, E","dd.MM","dd.MM, E","d MMM, E","MM.y","dd.MM.y","dd.MM.y, E","d MMM y, E","d MMMM y, EEEE","dd.MM.yy","yan","fev","apr","iyn","iyl","avq","okt","noy","dek","yanvar","fevral","mart","aprel","iyun","iyul","avqust","sentyabr","oktyabr","noyabr","dekabr","B.","B.E.","Ç.A.","Ç.","C.A.","C.","Ş.","bazar","bazar ertəsi","çərşənbə axşamı","çərşənbə","cümə axşamı","cümə","şənbə","e.ə.","b.e.","ü.e.ö.","ü.e.","eramızdan əvvəl","eramız","ümumi eradan öncə","ümumi era","₼","E, dd.MM","E, d, MMM","E, dd.MM.y","MMM, y","E, d, MMM, y","EEEE, d, MMMM, y","d MMMM, y","јанвар","феврал","март","апрел","май","ијун","ијул","август","сентјабр","октјабр","нојабр","декабр","базар","базар ертәси","чәршәнбә ахшамы","чәршәнбә","ҹүмә ахшамы","ҹүмә","шәнбә","m","h","b","kɔn","mac","mat","mto","mpu","hil","nje","hik","dip","bio","liɓ","Kɔndɔŋ","Màcɛ̂l","Màtùmb","Màtop","M̀puyɛ","Hìlòndɛ̀","Njèbà","Hìkaŋ","Dìpɔ̀s","Bìòôm","Màyɛsèp","Lìbuy li ńyèe","ŋ","j","nɔy","nja","uum","ŋge","mbɔ","kɔɔ","jon","ŋgwà nɔ̂y","ŋgwà njaŋgumba","ŋgwà ûm","ŋgwà ŋgê","ŋgwà mbɔk","ŋgwà kɔɔ","ŋgwà jôn","I bikɛ̂glà","I ɓugajɔp","b.Y.K","m.Y.K","bisū bi Yesù Krǐstò","i mbūs Yesù Krǐstò","{number} {percentSign}","{minusSign}{number} {percentSign}","{1} 'у' {0}","E hh.mm a","E HH.mm","E hh.mm.ss a","E HH.mm.ss","LLL y G","hh a","hh.mm a","HH.mm","hh.mm.ss a","HH.mm.ss","hh.mm.ss a v","HH.mm.ss v","hh.mm a v","HH.mm v","d.M","E, d.M","E, d MMMM","mm.ss","M.y","d.M.y","E, d.M.y","LLL y","LLLL y","d.M.yy","HH.mm.ss zzzz","HH.mm.ss z","с","л","к","м","ч","ж","в","сту","лют","сак","кра","мая","чэр","ліп","жні","вер","кас","ліс","сне","студзеня","лютага","сакавіка","красавіка","чэрвеня","ліпеня","жніўня","верасня","кастрычніка","лістапада","снежня","н","п","а","нд","пн","аў","ср","чц","пт","сб","нядзеля","панядзелак","аўторак","серада","чацвер","пятніца","субота","да паўдня","пасля паўдня","да н.э.","н.э.","да нашай эры","нашай эры","наша эра","р.","₽","E","Epr","Oga","Dis","Epreo","Ogasti","Disemba","Pa Mulungu","Palichimo","Palichibuli","Palichitatu","Palichine","Palichisano","Pachibelushi","uluchelo","akasuba","Before Yesu","After Yesu","Hut","Vil","Dat","Tai","Han","Sit","Sab","Nan","Tis","Kum","Kmj","Kmb","pa mwedzi gwa hutala","pa mwedzi gwa wuvili","pa mwedzi gwa wudatu","pa mwedzi gwa wutai","pa mwedzi gwa wuhanu","pa mwedzi gwa sita","pa mwedzi gwa saba","pa mwedzi gwa nane","pa mwedzi gwa tisa","pa mwedzi gwa kumi","pa mwedzi gwa kumi na moja","pa mwedzi gwa kumi na mbili","Mul","Hiv","Hid","Hit","Hih","Lem","pa mulungu","pa shahuviluha","pa hivili","pa hidatu","pa hitayi","pa hihanu","pa shahulembela","pamilau","pamunyi","Kabla ya Mtwaa","Baada ya Mtwaa","E, d","E, h:mm a","E, HH:mm","E, h:mm:ss a","E, H:mm:ss","y 'г'. G","MM.y 'г'. G","d.MM.y 'г'. G","E, d.MM.y 'г'. G","MMMM y 'г'. G","d MMMM y 'г'. G","E, d MMMM y 'г'. G","d.MM","E, d.MM","MM","LLLL","y 'г'.","M.y 'г'.","d.MM.y 'г'.","E, d.MM.y 'г'.","MM.y 'г'.","MMMM y 'г'.","d MMMM y 'г'.","E, d MMMM y 'г'.","QQQ y 'г'.","QQQQ y 'г'.","EEEE, d MMMM y 'г'.","d.MM.yy 'г'.","я","ф","ю","о","д","яну","фев","апр","юни","юли","авг","сеп","окт","ное","дек","януари","февруари","април","септември","октомври","ноември","декември","вт","чт","неделя","понеделник","вторник","сряда","четвъртък","петък","събота","пр.об.","сл.об.","пр.Хр.","сл.Хр.","пр.н.е.","сл.н.е.","преди Христа","след Христа","преди новата ера","след новата ера","тишри","хешван","кислев","тебет","шебат","адар I","адар","нисан","иар","сиван","тамуз","ав","елул","адар II","чайтра","вайсакха","джаинтха","асадха","сравана","бхада","азвина","картика","аграхайана","пауза","магха","пхалгуна","мухарам","сафар","раби-1","раби-2","джумада-1","джумада-2","раджаб","шабан","рамазан","Шавал","Дхул-Каада","Дхул-хиджа","лв.","щ.д.","d/MM","dd/MM","MMM","MM/y","Z","U","Ɔ","zan","awi","mɛ","zuw","zul","uti","sɛt","ɔku","now","des","zanwuye","feburuye","marisi","awirili","zuwɛn","zuluye","sɛtanburu","ɔkutɔburu","nowanburu","desanburu","kar","ntɛ","tar","ara","ala","jum","sib","kari","ntɛnɛ","tarata","araba","alamisa","juma","sibiri","J.-C. ɲɛ","ni J.-C.","jezu krisiti ɲɛ","jezu krisiti minkɛ","d MMM, y G","E, d MMM, y G","E, d-M","E, d MMM, y","EEEE, d MMMM, y","জা","ফে","মা","এ","জু","আ","সে","অ","ন","ডি","জানুয়ারী","ফেব্রুয়ারী","মার্চ","এপ্রিল","আগস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর","র","সো","ম","বু","বৃ","শু","শ","রবি","বৃহস্পতি","শুক্র","রবিবার","সোমবার","মঙ্গলবার","বুধবার","বৃহস্পতিবার","শুক্রবার","শনিবার","অপরাহ্ণ","খ্রিস্টপূর্ব","খৃষ্টাব্দ","খ্রিষ্টপূর্বাব্দ","খ্রিষ্টাব্দ","১","২","৩","৪","৫","৬","৭","৮","৯","১০","১১","১২","চৈত্র","বৈশাখ","জৈষ্ঠ্য","আষাঢ়","শ্রাবণ","ভাদ্র","আশ্বিন","কার্তিক","অগ্রহায়ণ","পৌষ","মাঘ","ফাল্গুন","সাল","মহররম","সফর","রবিউল আউয়াল","রবিউস সানি","জমাদিউল আউয়াল","জমাদিউস সানি","রজব","শা‘বান","রমজান","শাওয়াল","জ্বিলকদ","জ্বিলহজ্জ","যুগ","সংখ্যা না","৳","G y LLLL","MMMཚེས་d","MMMཚེས་d, E","MMMMའི་ཚེས་d","y LLL","y ལོའི་MMMཚེས་d","སྤྱི་ལོ་y MMMMའི་ཚེས་d","y MMMMའི་ཚེས་d, EEEE","ཟླ་༡","ཟླ་༢","ཟླ་༣","ཟླ་༤","ཟླ་༥","ཟླ་༦","ཟླ་༧","ཟླ་༨","ཟླ་༩","ཟླ་༡༠","ཟླ་༡༡","ཟླ་༡༢","ཟླ་བ་དང་པོ","ཟླ་བ་གཉིས་པ","ཟླ་བ་གསུམ་པ","ཟླ་བ་བཞི་པ","ཟླ་བ་ལྔ་པ","ཟླ་བ་དྲུག་པ","ཟླ་བ་བདུན་པ","ཟླ་བ་བརྒྱད་པ","ཟླ་བ་དགུ་པ","ཟླ་བ་བཅུ་པ","ཟླ་བ་བཅུ་གཅིག་པ","ཟླ་བ་བཅུ་གཉིས་པ","ཉི","ཟླ","མིག","ལྷག","ཕུར","སངས","སྤེན","ཉི་མ་","ཟླ་བ་","མིག་དམར་","ལྷག་པ་","ཕུར་བུ་","པ་སངས་","སྤེན་པ་","གཟའ་ཉི་མ་","གཟའ་ཟླ་བ་","གཟའ་མིག་དམར་","གཟའ་ལྷག་པ་","གཟའ་ཕུར་བུ་","གཟའ་པ་སངས་","གཟའ་སྤེན་པ་","སྔ་དྲོ་","ཕྱི་དྲོ་","སྤྱི་ལོ་སྔོན་","སྤྱི་ལོ་","ཨང་མེན་","{1} 'da' {0}","E d MMM y G","E dd/MM","E dd/MM/y","01","02","03","04","05","06","07","08","09","Gen.","Cʼhwe.","Meur.","Ebr.","Mae","Mezh.","Goue.","Eost","Gwen.","Here","Du","Kzu.","Genver","Cʼhwevrer","Meurzh","Ebrel","Mezheven","Gouere","Gwengolo","Kerzu","Su","Mz","Mc","G","Sa","Sul","Lun","Meu.","Mer.","Yaou","Gwe.","Sad.","Mercʼher","Gwener","Sadorn","A.M.","G.M.","a-raok J.K.","goude J.K.","a-raok Jezuz-Krist","goude Jezuz-Krist","a-raok R.S.","R.S.","a-raok Republik Sina","Republik Sina","$A","$CA","£ RU","$ HK","$ ZN","$ SU","MMM, y G","d-MMM","ज","फे","मा","ए","मे","जु","आ","से","अ","न","दि","जानुवारी","फेब्रुवारी","मार्स","एफ्रिल","जुन","जुलाइ","आगस्थ","सेबथेज्ब़र","अखथबर","नबेज्ब़र","दिसेज्ब़र","र","स","मं","बु","बि","सु","रबि","सम","मंगल","बुद","बिसथि","सुखुर","सुनि","रबिबार","समबार","मंगलबार","बुदबार","बिसथिबार","सुखुरबार","सुनिबार","फुं","बेलासे","ईसा.पूर्व","सन","बैसागो/बैसाग","जेथो","आसार","सावुन","भाद्र","आसिन","खाथि","आगाह्न","फुस","मागो","फागुन","सैथो","{1} 'u' {0}","E, dd.","y. G","MMM y. G","dd. MMM y. G","E, dd. MMM y. G","hh:mm a","hh:mm:ss a","dd.MM.","E, dd.MM.","dd. MM.","dd. MMM","E, dd. MMM","d. MMMM","E, d. MMMM","y.","MM.y.","dd.MM.y.","E, dd.MM.y.","MM. y.","MMM y.","dd. MMM y.","E, dd. MMM y.","LLLL y.","EEEE, dd. MMMM y.","dd. MMMM y.","dd. MMM. y.","dd.MM.yy.","a","o","jan","maj","jun","jul","aug","sep","nov","dec","januar","februar","april","juni","juli","august","septembar","oktobar","novembar","decembar","Č","ned","pon","uto","sri","čet","pet","sub","nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota","prije podne","popodne","p. n. e.","n. e.","pr.n.e.","n.e.","Prije nove ere","Nove ere","pr. n. e.","kn","din.","E, d.","d.M.yy.","ј","јан","феб","мар","мај","јун","јул","нов","дец","јануар","фебруар","јуни","јули","септембар","октобар","новембар","децембар","у","нед","пон","уто","сри","чет","пет","суб","недеља","понедељак","уторак","сриједа","четвртак","петак","БЕ","пре подне","поподне","Таут","Баба","Хатор","Киахк","Тоба","Амшир","Барамхат","Барамуда","Башанс","Паона","Епеп","Месра","Наси","Мескерем","Текемт","Хедар","Тахсас","Тер","Јекатит","Мегабит","Миазиа","Генбот","Сене","Хамле","Нехасе","Пагумен","п.н.е.","н.е.","п. н. е.","н. е.","Пре нове ере","Нове ере","Тишри","Хешван","Кислев","Тевет","Шеват","Адар I","Адар","Нисан","Ијар","Сиван","Тамуз","Ав","Елул","Адар II","Чаитра","Ваисака","Јиаиста","Асада","Сравана","Бадра","Асвина","Картика","Аргајана","Пауза","Мага","Фалгуна","САКА","Мурахам","Сафар","Рабиʻ I","Рабиʻ II","Јумада I","Јумада II","Рађаб","Шаʻбан","Рамадан","Дуʻл-Киʻда","Дуʻл-хиђа","АХ","Таика (645–650)","Хакучи (650–671)","Хакухо (672–686)","Шучо (686–701)","Таихо (701–704)","Кеиун (704–708)","Вадо (708–715)","Реики (715–717)","Јоро (717–724)","Јинки (724–729)","Темпио (729–749)","Темпио-кампо (749-749)","Темпио-шохо (749-757)","Темпио-хођи (757-765)","Темпо-ђинго (765-767)","Ђинго-кеиун (767-770)","Хоки (770–780)","Тен-о (781-782)","Енрјаку (782–806)","Даидо (806–810)","Конин (810–824)","Тенчо (824–834)","Шова (834–848)","Кајо (848–851)","Нињу (851–854)","Саико (854–857)","Тенан (857–859)","Јоган (859–877)","Генкеи (877–885)","Ниња (885–889)","Кампјо (889–898)","Шотаи (898–901)","Енђи (901–923)","Енчо (923–931)","Шохеи (931–938)","Тенгјо (938–947)","Тенриаку (947–957)","Тентоку (957–961)","Ова (961–964)","Кохо (964–968)","Ана (968–970)","Тенроку (970–973)","Тен-ен (973-976)","Јоген (976–978)","Тенген (978–983)","Еикан (983–985)","Кана (985–987)","Еи-ен (987-989)","Еисо (989–990)","Шорјаку (990–995)","Чотоку (995–999)","Чохо (999–1004)","Канко (1004–1012)","Чова (1012–1017)","Канин (1017–1021)","Ђиан (1021–1024)","Мању (1024–1028)","Чоген (1028–1037)","Чорјаку (1037–1040)","Чокју (1040–1044)","Кантоку (1044–1046)","Еишо (1046–1053)","Тенђи (1053–1058)","Кохеи (1058–1065)","Ђирјаку (1065–1069)","Енкју (1069–1074)","Шохо (1074–1077)","Шорјаку (1077–1081)","Еишо (1081–1084)","Отоку (1084–1087)","Канђи (1087–1094)","Кахо (1094–1096)","Еичо (1096–1097)","Шотоку (1097–1099)","Кова (1099–1104)","Чођи (1104–1106)","Кашо (1106–1108)","Тенин (1108–1110)","Тен-еи (1110-1113)","Еикју (1113–1118)","Ђен-еи (1118-1120)","Хоан (1120–1124)","Тенђи (1124–1126)","Даиђи (1126–1131)","Теншо (1131–1132)","Чошао (1132–1135)","Хоен (1135–1141)","Еиђи (1141–1142)","Кођи (1142–1144)","Тењо (1144–1145)","Кјуан (1145–1151)","Нинпеи (1151–1154)","Кјују (1154–1156)","Хоген (1156–1159)","Хеиђи (1159–1160)","Еирјаку (1160–1161)","Охо (1161–1163)","Чокан (1163–1165)","Еиман (1165–1166)","Нин-ан (1166-1169)","Као (1169–1171)","Шоан (1171–1175)","Анген (1175–1177)","Ђишо (1177–1181)","Јова (1181–1182)","Ђуеи (1182–1184)","Генрјуку (1184–1185)","Бунђи (1185–1190)","Кенкју (1190–1199)","Шођи (1199–1201)","Кенин (1201–1204)","Генкју (1204–1206)","Кен-еи (1206-1207)","Шоген (1207–1211)","Кенрјаку (1211–1213)","Кенпо (1213–1219)","Шокју (1219–1222)","Ђу (1222–1224)","Ђенин (1224–1225)","Кароку (1225–1227)","Антеи (1227–1229)","Канки (1229–1232)","Ђоеи (1232–1233)","Темпуку (1233–1234)","Бунрјаку (1234–1235)","Катеи (1235–1238)","Рјакунин (1238–1239)","Ен-о (1239-1240)","Нињи (1240–1243)","Канген (1243–1247)","Хођи (1247–1249)","Кенчо (1249–1256)","Коген (1256–1257)","Шока (1257–1259)","Шоген (1259–1260)","Бун-о (1260-1261)","Кочо (1261–1264)","Бун-еи (1264-1275)","Кенђи (1275–1278)","Коан (1278–1288)","Шу (1288–1293)","Еинин (1293–1299)","Шоан (1299–1302)","Кенген (1302–1303)","Каген (1303–1306)","Токуђи (1306–1308)","Енкеи (1308–1311)","Очо (1311–1312)","Шова (1312–1317)","Бунпо (1317–1319)","Ђено (1319–1321)","Ђенкјо (1321–1324)","Шочу (1324–1326)","Кареки (1326–1329)","Гентоку (1329–1331)","Генко (1331–1334)","Кему (1334–1336)","Енген (1336–1340)","Кококу (1340–1346)","Шохеи (1346–1370)","Кентоку (1370–1372)","Бучу (1372–1375)","Тењу (1375–1379)","Корјаку (1379–1381)","Кова (1381–1384)","Генчу (1384–1392)","Меитоку (1384–1387)","Какеи (1387–1389)","Ку (1389–1390)","Меитоку (1390–1394)","Оеи (1394–1428)","Шочо (1428–1429)","Еикјо (1429–1441)","Какитсу (1441–1444)","Бун-ан (1444-1449)","Хотоку (1449–1452)","Кјотоку (1452–1455)","Кошо (1455–1457)","Чороку (1457–1460)","Каншо (1460–1466)","Буншо (1466–1467)","Онин (1467–1469)","Бунмеи (1469–1487)","Чокјо (1487–1489)","Ентоку (1489–1492)","Меио (1492–1501)","Бунки (1501–1504)","Еишо (1504–1521)","Таиеи (1521–1528)","Кјороку (1528–1532)","Тенмон (1532–1555)","Кођи (1555–1558)","Еироку (1558–1570)","Генки (1570–1573)","Теншо (1573–1592)","Бунроку (1592–1596)","Кеичо (1596–1615)","Генва (1615–1624)","Кан-еи (1624-1644)","Шохо (1644–1648)","Кеиан (1648–1652)","Шу (1652–1655)","Меирјаку (1655–1658)","Мањи (1658–1661)","Канбун (1661–1673)","Енпо (1673–1681)","Тенва (1681–1684)","Јокјо (1684–1688)","Генроку (1688–1704)","Хоеи (1704–1711)","Шотоку (1711–1716)","Кјохо (1716–1736)","Генбун (1736–1741)","Канпо (1741–1744)","Енкјо (1744–1748)","Кан-ен (1748-1751)","Хорјаку (1751–1764)","Меива (1764–1772)","Ан-еи (1772-1781)","Тенмеи (1781–1789)","Кансеи (1789–1801)","Кјова (1801–1804)","Бунка (1804–1818)","Бунсеи (1818–1830)","Тенпо (1830–1844)","Кока (1844–1848)","Каеи (1848–1854)","Ансеи (1854–1860)","Ман-ен (1860-1861)","Бункју (1861–1864)","Генђи (1864–1865)","Кеико (1865–1868)","Меиђи","Таишо","Шова","Хаисеи","Фаравадин","Ордибехешт","Кордад","Тир","Мордад","Шахривар","Мехр","Абан","Азар","Деј","Бахман","Есфанд","Пре РК","РК","КМ","Кч","зл","дин.","Тл","E H:mm","E H:mm:ss","LLLL 'de' y G","d MMMM 'de' y G","E, d MMMM 'de' y G","LLL 'de' y","E, d MMMM 'de' y","GN","FB","MÇ","AB","MG","JN","JL","AG","ST","OC","NV","DS","gen.","febr.","març","abr.","maig","juny","jul.","ag.","set.","oct.","nov.","des.","de gener","de febrer","de març","de maig","de juny","de juliol","d’agost","de setembre","d’octubre","de novembre","de desembre","dg","dl","dt","dc","dj","dv","ds","dg.","dl.","dt.","dc.","dj.","dv.","ds.","diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte","eB","a. m.","p. m.","AEC","EC","abans de Crist","després de Crist","abans de l’Era Comuna","Era Comuna","₧","янв","июн","июл","сен","ноя","январь","февраль","апрель","июнь","июль","сентябрь","октябрь","ноябрь","декабрь","кӀиранан де","оршотан де","шинарин де","кхаарин де","еарин де","пӀераскан де","шот де","Терхьаш дац","KBZ","KBR","KST","KKN","KTN","KMK","KMS","KMN","KMW","KKM","KNK","KNB","Okwokubanza","Okwakabiri","Okwakashatu","Okwakana","Okwakataana","Okwamukaaga","Okwamushanju","Okwamunaana","Okwamwenda","Okwaikumi","Okwaikumi na kumwe","Okwaikumi na ibiri","SAN","ORK","OKB","OKS","OKN","OKT","OMK","Sande","Orwokubanza","Orwakabiri","Orwakashatu","Orwakana","Orwakataano","Orwamukaaga","Kurisito Atakaijire","Kurisito Yaijire","USh","Ꭴ","Ꭷ","Ꭰ","Ꮥ","Ꭻ","Ꭶ","Ꮪ","Ꮕ","Ꭵ","ᎤᏃ","ᎧᎦ","ᎠᏅ","ᎧᏬ","ᎠᏂ","ᏕᎭ","ᎫᏰ","ᎦᎶ","ᏚᎵ","ᏚᏂ","ᏅᏓ","ᎥᏍ","ᎤᏃᎸᏔᏅ","ᎧᎦᎵ","ᎠᏅᏱ","ᎧᏬᏂ","ᎠᏂᏍᎬᏘ","ᏕᎭᎷᏱ","ᎫᏰᏉᏂ","ᎦᎶᏂ","ᏚᎵᏍᏗ","ᏚᏂᏅᏗ","ᏅᏓᏕᏆ","ᎥᏍᎩᏱ","Ꮖ","Ꮙ","Ꮤ","Ꮶ","Ꮷ","ᏆᏍᎬ","ᏉᏅᎯ","ᏔᎵᏁ","ᏦᎢᏁ","ᏅᎩᏁ","ᏧᎾᎩ","ᏈᏕᎾ","ᎤᎾᏙᏓᏆᏍᎬ","ᎤᎾᏙᏓᏉᏅᎯ","ᏔᎵᏁᎢᎦ","ᏦᎢᏁᎢᎦ","ᏅᎩᏁᎢᎦ","ᏧᎾᎩᎶᏍᏗ","ᎤᎾᏙᏓᏈᏕᎾ","ᏌᎾᎴ","ᏒᎯᏱᎢᏗᏢ","ᎤᏓᎷᎸ","ᎤᎶᏐᏅ","Ꮟ ᏥᏌ ᎾᏕᎲᏍᎬᎾ","ᎠᎩᏃᎮᎵᏓᏍᏗᏱ ᎠᏕᏘᏱᏍᎬ ᏱᎰᏩ ᏧᏓᏂᎸᎢᏍᏗ","d.","E d.","LLLL y G","d. M. y G","E d. M. y G","d. MMMM y G","E d. MMMM y G","H:mm:ss v","H:mm v","d. M.","E d. M.","E d. MMMM","d. M. y","E d. M. y","d. MMMM y","E d. MMMM y","EEEE d. MMMM y","led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro","ledna","února","března","dubna","května","června","července","srpna","září","října","listopadu","prosince","Ú","ne","po","út","st","čt","pá","so","neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota","dop.","odp.","př.n.l.","n.l.","př. n. l.","n. l.","Před R. O. C.","Kčs","Kč","ECU","{1} 'am' {0}","E, HH:mm:ss","Q y","dd/MM/yy","Ch","Rh","Ion","Chwef","Maw","Ebrill","Mai","Meh","Gorff","Awst","Medi","Hyd","Tach","Rhag","Ionawr","Chwefror","Mawrth","Mehefin","Gorffennaf","Hydref","Tachwedd","Rhagfyr","Ll","Llun","Mer","Iau","Gwen","Sad","Dydd Sul","Dydd Llun","Dydd Mawrth","Dydd Mercher","Dydd Iau","Dydd Gwener","Dydd Sadwrn","C","CC","Cyn Crist","Oed Crist","Cyn Cyfnod Cyffredin","Cyfnod Cyffredin","{1} 'kl'. {0}","E 'den' d.","E h.mm a","E h.mm.ss a","d. MMM y G","E d. MMM y G","h.mm a","h.mm.ss a","h.mm.ss a v","h.mm a v","d. MMM","E d. MMM","d. MMM y","E d. MMM y","EEEE 'den' d. MMMM y","jan.","feb.","mar.","apr.","jun.","aug.","sep.","okt.","dec.","marts","september","oktober","november","december","søn.","man.","tir.","ons.","tor.","fre.","lør.","søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag","fKr","eKr","fvt","vt","f.Kr.","e.Kr.","f.v.t.","v.t.","før vesterlandsk tidsregning","vesterlandsk tidsregning","kr.","h.mm.ss a zzzz","h.mm.ss a z","Imb","Kaw","Kad","Kan","Kas","Kar","Mfu","Wun","Ike","Iku","Imw","Iwi","Mori ghwa imbiri","Mori ghwa kawi","Mori ghwa kadadu","Mori ghwa kana","Mori ghwa kasanu","Mori ghwa karandadu","Mori ghwa mfungade","Mori ghwa wunyanya","Mori ghwa ikenda","Mori ghwa ikumi","Mori ghwa ikumi na imweri","Mori ghwa ikumi na iwi","Jum","Jim","Ngu","Ituku ja jumwa","Kuramuka jimweri","Kuramuka kawi","Kuramuka kadadu","Kuramuka kana","Kuramuka kasanu","Kifula nguwo","Luma lwa K","luma lwa p","KK","Kabla ya Kristo","Baada ya Kristo","Ksh","{1} 'um' {0}","E, d. MMM y G","HH 'Uhr'","d.M.","E, d.M.","d.MM.","E, d. MMM","E, d. MMM y","EEEE, d. MMMM y","März","Juli","Dez.","Januar","Februar","Dezember","Mo.","Mi.","Fr.","Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","vorm.","nachm.","v. Chr.","n. Chr.","v. u. Z.","u. Z.","vor unserer Zeitrechnung","unserer Zeitrechnung","öS","BGK","BGJ","DM","Jän.","Jänner","{currency}{minusSign}{number}","'","Ž","Žan","Fee","Awi","Me","Žuw","Žuy","Ut","Sek","Noo","Dee","Žanwiye","Feewiriye","Marsi","Awiril","Žuweŋ","Žuyye","Sektanbur","Oktoobur","Noowanbur","Deesanbur","Ati","Ata","Ala","Alm","Alz","Asi","Alhadi","Atinni","Atalaata","Alarba","Alzuma","Asibti","Subbaahi","Zaarikay b","IJ","IZ","Isaa jine","Isaa zamanoo","E, 'zeg'. H:mm","'zeg'. H","'zeg'. H:mm","měr.","maj.","awg.","now.","januara","februara","měrca","apryla","maja","junija","julija","awgusta","septembra","oktobra","nowembra","decembra","p","w","pón","wał","srj","stw","pět","sob","njeźela","pónjeźele","wałtora","srjoda","stwórtk","pětk","dopołdnja","wótpołdnja","pś.Chr.n.","pó Chr.n.","pś.n.l.c.","n.l.c.","pśed Kristusowym naroźenim","pó Kristusowem naroźenju","pśed našym licenim casa","našogo licenja casa","zł","e","di","ŋgɔn","sɔŋ","diɓ","emi","esɔ","mad","diŋ","nyɛt","tin","elá","dimɔ́di","ŋgɔndɛ","sɔŋɛ","diɓáɓá","emiasele","esɔpɛsɔpɛ","madiɓɛ́díɓɛ́","diŋgindi","nyɛtɛki","mayésɛ́","tiníní","eláŋgɛ́","ɗ","ét","mɔ́s","kwa","muk","ŋgi","ɗón","esa","éti","mɔ́sú","kwasú","mukɔ́sú","ŋgisú","ɗónɛsú","esaɓasú","idiɓa","ebyámu","ɓ.Ys","mb.Ys","ɓoso ɓwá yáɓe lá","mbúsa kwédi a Yés","Fe","Ma","Ab","Sú","Se","Ok","No","De","Sanvie","Fébirie","Mars","Aburil","Mee","Sueŋ","Súuyee","Settembar","Oktobar","Novembar","Disambar","Dim","Ten","Tal","Ara","Arj","Sib","Dimas","Teneŋ","Talata","Alarbay","Aramisay","Arjuma","Sibiti","ArY","AtY","Ariŋuu Yeesu","Atooŋe Yeesu","G y སྤྱི་ཟླ་MMM","གཟའ་E, G ལོy ཟླ་MMM ཚེ་d","ཆུ་ཚོད་h a","ཆུ་ཚོད་HH","M-d","E, M-d","སྤྱི་LLL","སྤྱི་LLL ཚེ་d","E, སྤྱི་LLL ཚེ་d","y-M","y-M-d","E, y-M-d","y སྤྱི་ཟླ་MMM","གཟའ་E, ལོy ཟླ་MMM ཚེ་d","EEEE, སྤྱི་ལོ་y MMMM ཚེས་dd","སྤྱི་ལོ་y MMMM ཚེས་ dd","སྤྱི་ལོ་y ཟླ་MMM ཚེས་dd","ཆུ་ཚོད་ h སྐར་མ་ mm:ss a zzzz","ཆུ་ཚོད་ h སྐར་མ་ mm:ss a z","ཆུ་ཚོད་h:mm:ss a","ཆུ་ཚོད་ h སྐར་མ་ mm a","༡","༢","༣","༥","༦","༧","༨","༡༠","༡༡","༡༢","༤","༩","ཟླ་དངཔ་","ཟླ་གཉིས་པ་","ཟླ་གསུམ་པ་","ཟླ་བཞི་པ་","ཟླ་ལྔ་པ་","ཟླ་དྲུག་པ","ཟླ་བདུན་པ་","ཟླ་བརྒྱད་པ་","ཟླ་དགུ་པ་","ཟླ་བཅུ་པ་","ཟླ་བཅུ་གཅིག་པ་","ཟླ་བཅུ་གཉིས་པ་","མིར","སངྶ","ཟླ་","མིར་","ལྷག་","ཕུར་","སངས་","སྤེན་","ཉི་","སྔ་ཆ་","ཕྱི་ཆ་","tibt","ཨང་མད","གྲངས་མེད","Nu.","KR₩","TH฿","Mbe","Kai","Kat","Gat","Gan","Mug","Knn","Ken","Igi","Mweri wa mbere","Mweri wa kaĩri","Mweri wa kathatũ","Mweri wa kana","Mweri wa gatano","Mweri wa gatantatũ","Mweri wa mũgwanja","Mweri wa kanana","Mweri wa kenda","Mweri wa ikũmi","Mweri wa ikũmi na ũmwe","Mweri wa ikũmi na Kaĩrĩ","Kma","Tat","Ine","Tan","Arm","Maa","NMM","Kiumia","Njumatatu","Njumaine","Njumatano","Aramithi","Njumaa","NJumamothii","KI","UT","MK","TK","Mbere ya Kristo","Thutha wa Kristo","{0} {1}","E a 'ga' h:mm","E a 'ga' h:mm:ss","MMM d 'lia', y G","E, MMM d 'lia' y G","a 'ga' h","a 'ga' h:mm","a 'ga' h:mm:ss","MMM d 'lia'","E, MMM d 'lia'","MMMM d 'lia'","E, MMMM d 'lia'","'aɖabaƒoƒo' mm:ss","MMM d 'lia', y","EEEE, MMMM d 'lia' y","MMMM d 'lia' y","a 'ga' h:mm:ss zzzz","a 'ga' h:mm:ss z","dzv","dzd","ted","afɔ","dam","mas","sia","dea","any","kel","ade","dzm","dzove","dzodze","tedoxe","afɔfĩe","dama","masa","siamlɔm","deasiamime","anyɔnyɔ","kele","adeɛmekpɔxe","dzome","kɔs","dzo","bla","kuɖ","yaw","fiɖ","mem","kɔsiɖa","dzoɖa","blaɖa","kuɖa","yawoɖa","fiɖa","memleɖa","ŋdi","ɣetrɔ","hY","Yŋ","Bŋ","Eŋ","Hafi Yesu Va Do ŋgɔ","Yesu Ŋɔli","mnn","{1} - {0}","Ι","Φ","Μ","Α","Σ","Ο","Ν","Δ","Ιαν","Φεβ","Μαρ","Απρ","Μαΐ","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ","Ιανουαρίου","Φεβρουαρίου","Μαρτίου","Απριλίου","Μαΐου","Ιουνίου","Ιουλίου","Αυγούστου","Σεπτεμβρίου","Οκτωβρίου","Νοεμβρίου","Δεκεμβρίου","Κ","Τ","Π","Κυρ","Δευ","Τρί","Τετ","Πέμ","Παρ","Σάβ","Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο","π.μ.","μ.μ.","π.Χ.","μ.Χ.","π.Κ.Χ.","ΚΧ","προ Χριστού","μετά Χριστόν","πριν από την Κοινή Χρονολογία","Κοινή Χρονολογία","Πριν R.O.C.","Δρχ","E, dd/MM","E, dd/MM/y","LL","E, d MMM,y","dMMMM,y","dMMM,y","Mar.","Oct.","Dec.","Su.","M.","Tu.","W.","Th.","F.","Sun.","Mon.","Tue.","Wed.","Thu.","Fri.","Sat.","am","pm","Rs","CFP","FBu","dd MMM","E, dd MMM","E, dd MMM y","dd-MMM-y","E, MM-dd","E, y-MM-dd","E H.mm","E H.mm.ss","H.mm","H.mm.ss","H.mm.ss v","H.mm v","H.mm.ss zzzz","H.mm.ss z","a.m.","p.m.","E d MMM, y","Ar","MOP$","RM","₦","{currency} {minusSign}{number}","d/MM/y","d/MM/yy","₱","RF","SR","kr","Le","NAf.","T$","VT","WS$","MM/dd","E, MM/dd","y/MM/dd","E, y/MM/dd","dd MMM, y","E, dd MMM, y","dd MMM,y","EEEE, d-'a' 'de' MMMM y","y-MMMM-dd","y-MMM-dd","yy-MM-dd","H-'a' 'horo' 'kaj' m:ss zzzz","aŭg","januaro","februaro","marto","aprilo","majo","junio","julio","aŭgusto","septembro","oktobro","novembro","decembro","lu","ma","me","ĵa","ve","sa","dimanĉo","lundo","mardo","merkredo","ĵaŭdo","vendredo","sabato","atm","ptm","aK","pK","E, H:mm","MMMM 'de' y G","d 'de' MMMM 'de' y G","E, d 'de' MMMM 'de' y G","h:mm:ss a (vvvv)","H:mm:ss (vvvv)","d 'de' MMMM","E, d 'de' MMMM","EEE, d/M/y","EEE, d MMM y","MMMM 'de' y","d 'de' MMMM 'de' y","EEE, d 'de' MMMM 'de' y","QQQQ 'de' y","EEEE, d 'de' MMMM 'de' y","H:mm:ss (zzzz)","ene.","may.","ago.","sept.","dic.","enero","febrero","marzo","abril","mayo","agosto","septiembre","octubre","noviembre","diciembre","dom.","lun.","mié.","jue.","vie.","sáb.","domingo","lunes","jueves","viernes","sábado","a. C.","d. C.","a. e. c.","e. c.","antes de Cristo","después de Cristo","antes de la era común","era común","antes de R.O.C.","d 'de' MMM 'de' y G","dd-MMM","E, d 'de' MMM 'de' y","QQQ 'de' y","v","E, d 'de' MMM 'de' y G","hh:mm:ss","E d-M","M-y","d 'de' MMM 'de' y","Bs","E, dd-MM","dd-MM-y","E dd-MM-y","dd-MM-yy","MMM 'de' y G","E, d MMM 'de' y G","d 'de' MMM","E, d 'de' MMM","MMM 'de' y","₡","d MMM 'de' y","antes de la Era Común","Era Común","RD$","Q","EEEE dd 'de' MMMM 'de' y","dd 'de' MMMM 'de' y","E d 'de' MMM","ene","oct","dic","Af","Naf","Kz","$a","Afl.","C$","MM/dd/y","E MM/dd/y","MM/dd/yy","B/.","setiembre","S/.","Gs.","Bs.","E h:mm.ss a","E HH:mm.ss","E, d. MMMM y G","h:mm.ss a","H:mm.ss","h:mm.ss a v","HH:mm.ss v","MMMM","E, d. MMMM y","H:mm.ss zzzz","H:mm.ss z","jaan","veebr","märts","mai","juuni","juuli","sept","dets","jaanuar","veebruar","aprill","oktoober","detsember","pühapäev","esmaspäev","teisipäev","kolmapäev","neljapäev","reede","laupäev","pKr","e.m.a","m.a.j","enne Kristust","pärast Kristust","enne meie ajaarvamist","meie ajaarvamise järgi","−","G y. 'urteko' MMM","G y. 'urteko' MMM d","G y. 'urteko' MMM d, E","M/d, E","y/M","y/M/d, E","y('e')'ko' MMMM","y('e')'ko' MMMM d","y('e')'ko' MMMM d, E","y('e')'ko' QQQ","y('e')'ko' QQQQ","y('e')'ko' MMMM d, EEEE","HH:mm:ss (zzzz)","HH:mm:ss (z)","urt.","ots.","api.","mai.","eka.","uzt.","abu.","ira.","urr.","aza.","abe.","urtarrilak","otsailak","martxoak","apirilak","maiatzak","ekainak","uztailak","abuztuak","irailak","urriak","azaroak","abenduak","ig.","al.","ar.","az.","og.","or.","lr.","igandea","astelehena","asteartea","asteazkena","osteguna","ostirala","larunbata","BG","K.a.","K.o.","R.O.C. aurretik","{percentSign} {number}","{minusSign}{percentSign} {number}","ngo","ngb","ngl","ngn","ngt","ngs","ngz","ngm","nge","nga","ngad","ngab","ngɔn osú","ngɔn bɛ̌","ngɔn lála","ngɔn nyina","ngɔn tána","ngɔn saməna","ngɔn zamgbála","ngɔn mwom","ngɔn ebulú","ngɔn awóm","ngɔn awóm ai dziá","ngɔn awóm ai bɛ̌","sɔ́n","mɔ́n","smb","sml","smn","fúl","sér","sɔ́ndɔ","mɔ́ndi","sɔ́ndɔ məlú mə́bɛ̌","sɔ́ndɔ məlú mə́lɛ́","sɔ́ndɔ məlú mə́nyi","fúladé","séradé","kíkíríg","ngəgógəle","oyk","ayk","osúsúa Yésus kiri","ámvus Yésus Kirís","{1}،‏ {0}","{1}، ساعت {0}","HH:mm (Z)","E M/d","d LLL","E d LLL","d LLLL","E d LLLL","E y/M/d","H:mm:ss (z)","ژ","ا","ژانویهٔ","فوریهٔ","آوریل","مهٔ","ژوئن","ژوئیهٔ","اوت","سپتامبر","اکتبر","نوامبر","دسامبر","ی","چ","پ","یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه","قبل‌ازظهر","بعدازظهر","ق","ق.د.م","د.م.","ق.م.","م.","قبل از میلاد","میلادی","قبل از دوران مشترک","دوران مشترک","ک","ط","تشری","حشوان","کسلو","طوت","واذار","نیسان","ایار","سیوان","ایلول","واذار الثانی","ربیع الاول","ربیع الثانی","جمادی الاول","جمادی الثانی","ذیقعدهٔ","ذیحجهٔ","ه‍.ق.","هجری قمری","فروردین","اردیبهشت","تیر","شهریور","آبان","دی","اسفند","ه‍.ش.","هجری شمسی","arabext","‎{currency}{number}","{minusSign}‎{currency}{number}","ناعدد","‎+‎","‎−","؋","¥CN","$HK","ریال","$MX","$NZ","$EC","می","جول","دسم","جنوری","فبروری","مارچ","اپریل","جون","جولای","اگست","سپتمبر","اکتوبر","نومبر","دسمبر","حمل","ثور","جوزا","سرطان","اسد","سنبلهٔ","میزان","عقرب","قوس","جدی","دلو","حوت","sii","col","mbo","duu","kor","mor","juk","slt","yar","jol","bow","siilo","colte","mbooy","seeɗto","duujal","korse","morso","juko","siilto","yarkomaa","jolal","bowte","dew","aaɓ","maw","naa","mwd","hbi","dewo","aaɓnde","mawbaare","njeslaare","naasaande","mawnde","hoore-biir","subaka","kikiiɗe","H-I","C-I","Hade Iisa","Caggal Iisa","FG","UM","{1} 'klo' {0}","E d.M.","ccc d. MMM","m.ss","L.y","E d.M.y","cccc d. MMMM y","tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta","su","ti","ke","to","pe","la","sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina","ap.","ip.","eK","jK","eaa","jaa","eKr.","jKr.","eaa.","jaa.","ennen Kristuksen syntymää","jälkeen Kristuksen syntymän","ennen ajanlaskun alkua","jälkeen ajanlaskun alun","tišríkuuta","hešvánkuuta","kislévkuuta","tevétkuuta","ševátkuuta","adárkuuta I","adárkuuta","nisánkuuta","ijjárkuuta","sivánkuuta","tammúzkuuta","abkuuta","elúlkuuta","adárkuuta II","muharram","safar","rabi’ al-awwal","rabi’ al-akhir","džumada-l-ula","džumada-l-akhira","radžab","ša’ban","ramadan","šawwal","dhu-l-qa’da","dhu-l-hiddža","epäluku","mk","{1} 'nang' {0}","Ene","Peb","Abr","Hun","Hul","Set","Nob","Enero","Pebrero","Marso","Abril","Mayo","Hunyo","Hulyo","Agosto","Setyembre","Oktubre","Nobyembre","Disyembre","Lin","Miy","Huw","Biy","Linggo","Lunes","Martes","Miyerkules","Huwebes","Biyernes","Sabado","E dd.MM","E dd.MM.y","QQQ 'í' y","QQQQ 'í' y","mars","apríl","desember","sun.","mán.","týs.","mik.","hós.","frí.","ley.","sunnudagur","mánadagur","týsdagur","mikudagur","hósdagur","fríggjadagur","leygardagur","flt","lt","f.o.tíðr.","o.tíðr.","fyri Krist","eftir Krist","fyri okkara tíðarrokning","okkara tíðarrokning","{1} 'à' {0}","HH 'h'","janv.","févr.","avr.","juin","juil.","août","déc.","janvier","février","avril","juillet","septembre","octobre","novembre","décembre","dim.","mer.","jeu.","ven.","sam.","dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi","E.B.","ère b.","ère bouddhiste","1yuè","2yuè","3yuè","4yuè","5yuè","6yuè","7yuè","8yuè","9yuè","10yuè","11yuè","12yuè","zhēngyuè","èryuè","sānyuè","sìyuè","wǔyuè","liùyuè","qīyuè","bāyuè","jiǔyuè","shíyuè","shíyīyuè","shí’èryuè","av. J.-C.","ap. J.-C.","avant Jésus-Christ","après Jésus-Christ","avant l’ère commune","de l’ère commune","Tisseri","Hesvan","Tébeth","Schébat","Nissan","Tamouz","Elloul","mouh.","saf.","rab. aw.","rab. th.","joum. oul.","joum. tha.","raj.","chaa.","ram.","chaw.","dhou. q.","dhou. h.","mouharram","rabia al awal","rabia ath-thani","joumada al oula","joumada ath-thania","rajab","chaabane","chawwal","dhou al qi`da","dhou al-hijja","avant RdC","RdC","$AR","$AU","$BM","$BN","$BS","$BZ","$CL","$CO","£CY","$FJ","£FK","£GB","£GI","£IE","£IL","₤IT","£LB","£MT","$NA","$RH","$SB","$SG","$SR","$TT","$US","$UY","FCFP","H 'h' mm 'min' ss 's' zzzz","E M-d","MM-d","$ AU","$ HK","$ NZ","$ SG","$ US","FC","HH.mm:ss 'h' zzzz","DA","CF","fév.","jui.","LS","DT","d 'di' MMMM","LLLL 'dal' y","EEEE d 'di' MMMM 'dal' y","d 'di' MMMM 'dal' y","Zen","Fev","Avr","Jug","Lui","Avo","Otu","Dic","Zenâr","Fevrâr","Març","Avrîl","Jugn","Avost","Setembar","Otubar","Dicembar","lun","mie","joi","vin","sab","domenie","lunis","martars","miercus","joibe","vinars","sabide","a.","p.","pdC","ddC","d-M","d-M-y","E d-M-y","mrt.","jannewaris","febrewaris","maart","maaie","july","augustus","septimber","novimber","desimber","si","mo","wo","fr","snein","moandei","tiisdei","woansdei","tongersdei","freed","sneon","Tut","Babah","Hatur","Kiyahk","Tubah","Baramundah","Ba’unah","Abib","Misra","Nasi","Mäskäräm","Teqemt","T’er","Yäkatit","Mägabit","Miyazya","Säne","Nähase","Pagumän","f.K.","n.K.","fgj","gj","n.Kr.","f.g.j.","Foar Kristus","nei Kristus","foar gewoane jiertelling","gewoane jiertelling","Tisjrie","Chesjwan","Sjevat","Adar A","Ijar","Tammoez","Elloel","Adar B","Vaishakha","Jyeshtha","Aashaadha","Shraavana","Bhaadrapada","Ashvina","Kaartika","Pausha","Maagha","Phaalguna","SAKA","Moeh.","Joem. I","Joem. II","Sja.","Sjaw.","Doe al k.","Doe al h.","Moeharram","Rabiʻa al awal","Rabiʻa al thani","Joemadʻal awal","Joemadʻal thani","Sjaʻaban","Sjawal","Doe al kaʻaba","Doe al hizja","Saʻna Hizjria","{currency} {number}{minusSign}","FJ$","SI$","Ean","Feabh","Márta","Aib","Beal","Meith","Iúil","Lún","MFómh","DFómh","Samh","Noll","Eanáir","Feabhra","Aibreán","Bealtaine","Meitheamh","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig","Domh","Luan","Máirt","Céad","Déar","Aoine","Sath","Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn","RC","RCR","CR","Roimh Chríost","Roimh Chomh-Ré","Comh-Ré","E h:mma","ha","h:mma","h:mma v","d'mh' MMMM","EEEE, d'mh' MMMM y","d'mh' MMMM y","Ò","Faoi","Gearr","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùna","Sult","Dàmh","Dùbh","dhen Fhaoilleach","dhen Ghearran","dhen Mhàrt","dhen Ghiblean","dhen Chèitean","dhen Ògmhios","dhen Iuchar","dhen Lùnastal","dhen t-Sultain","dhen Dàmhair","dhen t-Samhain","dhen Dùbhlachd","DiD","DiL","DiM","DiC","Dia","Dih","DiS","DiDòmhnaich","DiLuain","DiMàirt","DiCiadain","DiarDaoin","DihAoine","DiSathairne","Ro Chrìosta","An dèidh Chrìosta","Ro PnS","Mínguó","Ro Ph. na Sìne","EEEE dd MMMM y","xan","xuñ","xul","out","xaneiro","febreiro","maio","xuño","xullo","setembro","outubro","luns","mér","xov","ven","mércores","xoves","venres","despois de Cristo","$R","¥JP","$NT","Mär","Dez","Auguscht","Septämber","Oktoober","Novämber","Dezämber","Mä.","Zi.","Du.","Sunntig","Määntig","Ziischtig","Mittwuch","Dunschtig","Friitig","Samschtig","nam.","’","MMM, G y","d MMM, G y","E, d MMM, G y","hh:mm:ss a zzzz","hh:mm:ss a z","જા","ફે","મા","એ","મે","જૂ","જુ","ઑ","સ","ન","ડિ","જાન્યુ","ફેબ્રુ","માર્ચ","એપ્રિલ","જૂન","જુલાઈ","ઑગસ્ટ","સપ્ટે","ઑક્ટો","નવે","ડિસે","જાન્યુઆરી","ફેબ્રુઆરી","સપ્ટેમ્બર","ઑક્ટોબર","નવેમ્બર","ડિસેમ્બર","ર","સો","મં","બુ","ગુ","શુ","શ","રવિ","સોમ","મંગળ","બુધ","ગુરુ","શુક્ર","શનિ","રવિવાર","સોમવાર","મંગળવાર","બુધવાર","ગુરુવાર","શુક્રવાર","શનિવાર","ઇ સ પુ","ઇસ","સા.યુ.પ.","સા.યુ.","ઈ.સ.પૂર્વે","ઈ.સ.","ઈસવીસન પૂર્વે","ઇસવીસન","સામાન્ય યુગ પહેલા","સામાન્ય યુગ","Can","Cul","Agt","Chanuari","Feburari","Apiriri","Chulai","Okitoba","Nobemba","Cpr","Ctt","Cmn","Cmt","Ars","Icm","Est","Chumapiri","Chumatato","Chumaine","Chumatano","Aramisi","Ichuma","Esabato","Ma/Mo","Mambia/Mog","YA","YK","Yeso ataiborwa","Yeso kaiboirwe","J-guer","T-arree","Mayrnt","Avrril","Boaldyn","M-souree","J-souree","Luanistyn","M-fouyir","J-fouyir","M-Houney","M-Nollick","Jerrey-geuree","Toshiaght-arree","Averil","Mean-souree","Jerrey-souree","Mean-fouyir","Jerrey-fouyir","Mee Houney","Mee ny Nollick","Jed","Jel","Jem","Jerc","Jerd","Jeh","Jes","Jedoonee","Jelhein","Jemayrt","Jercean","Jerdein","Jeheiney","Jesarn","Fab","Afi","Yun","Yul","Agu","Nuw","Janairu","Faburairu","Maris","Afirilu","Mayu","Yuni","Yuli","Agusta","Satumba","Nuwamba","Disamba","Lh","Li","Ta","Lr","Al","Ju","As","Lahadi","Litinin","Laraba","Alhamis","Jummaʼa","Asabar","KHAI","BHAI","Kafin haihuwar annab","Bayan haihuwar annab","M=romanlow","Ian.","Pep.","Mal.","ʻAp.","Iun.","Iul.","ʻAu.","Kep.","ʻOk.","Now.","Kek.","Ianuali","Pepeluali","Malaki","ʻApelila","Iune","Iulai","ʻAukake","Kepakemapa","ʻOkakopa","Nowemapa","Kekemapa","LP","P1","P2","P3","P4","P5","P6","Lāpule","Poʻakahi","Poʻalua","Poʻakolu","Poʻahā","Poʻalima","Poʻaono","{1} בשעה {0}","E ה-d","d בMMM y G","E, d בMMM y G","‏h a","d בMMM","E, d בMMM","d בMMM y","E, d בMMM y","EEEE, d בMMMM y","d בMMMM y","ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","דצמ׳","ינואר","פברואר","אפריל","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר","א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳","יום א׳","יום ב׳","יום ג׳","יום ד׳","יום ה׳","יום ו׳","שבת","יום ראשון","יום שני","יום שלישי","יום רביעי","יום חמישי","יום שישי","יום שבת","לפנה״צ","אחה״צ","לפנה״ס","לספירה","לפני הספירה","תש׳","חש׳","כס׳","טב׳","שב׳","א״א","אד׳","ני׳","אי׳","סי׳","תמ׳","אב","אל׳","א״ב","תשרי","חשון","כסלו","טבת","שבט","אדר א׳","אדר","ניסן","אייר","סיון","תמוז","אלול","אדר ב׳","לבה״ע","מוחרם","צפר","רביע א׳","רביע ב׳","ג׳ומאדא א׳","ג׳ומאדא ב׳","רג׳ב","שעבאן","רמדאן","שוואל","ד׳ו אל־קעדה","ד׳ו אל־חיג׳ה","רביע אל-אוול","רביע א-ת׳אני","ג׳ומאדא אל-אולא","ג׳ומאדא א-ת׳אניה","שנת היג׳רה","טאיקה","נינג׳ו","שוטוקו","ל״י","{1} को {0}","MMM G y","फ़","म","जू","सि","जन॰","फ़र॰","मार्च","अप्रैल","मई","जून","जुल॰","अग॰","सित॰","अक्तू॰","नव॰","दिस॰","जनवरी","फ़रवरी","जुलाई","अगस्त","सितंबर","अक्तूबर","नवंबर","दिसंबर","सो","गु","शु","श","रवि","सोम","बुध","गुरु","शुक्र","शनि","रविवार","सोमवार","मंगलवार","बुधवार","गुरुवार","शुक्रवार","शनिवार","पूर्वाह्न","अपराह्न","मस्केरेम","टेकेम्ट","हेदर","तहसास","टर","येकाटिट","मेगाबिट","मियाज़िया","गनबोट","सेन","हम्ले","नेहासे","पागूमन","ईसा-पूर्व","ईस्वी","ईसवी पूर्व","ईसवी","ईसवी सन","चैत्र","वैशाख","ज्येष्ठ","आषाढ़","श्रावण","भाद्रपद","अश्विन","कार्तिक","अग्रहायण","पौष","माघ","फाल्गुन","शक","मुहर्रम","सफर","राबी प्रथम","राबी द्वितीय","जुम्डा प्रथम","जुम्डा द्वितीय","रजब","शावन","रमजान","शव्व्ल","जिल-क्दाह","जिल्-हिज्जाह","ताएका (645–650)","हाकूची (650–671)","हाकूहो (672–686)","शूचो (686–701)","ताहिओ (701–704)","केउन (704–708)","वाडू (708–715)","रैकी (715–717)","योरो (717–724)","जिंकी (724–729)","टेम्प्यो (729–749)","टेम्प्यो-काम्पो (749–749)","टेम्प्यो-शोहो (749–757)","टेम्प्यो-होजी (757–765)","टेम्प्यो-जिंगो (765–767)","टेम्प्यो-किउन (767–770)","होकी (770–780)","टेनो (781–782)","इंर्याकू (782–806)","डाईडू (806–810)","क़ोनिन (810–824)","टेंचो (824–834)","शोवा (834–848)","काज्यो (848–851)","निंजू (851–854)","शाईकू (854–857)","टेनन (857–859)","जोगन् (859–877)","गेंकेई (877–885)","निन्ना (885–889)","केम्प्यो (889–898)","शूताई (898–901)","ईंगी (901–923)","ईंचो (923–931)","शोहेई (931–938)","टेंग्यो (938–947)","टेंर्याकू (947–957)","टेंटूकू (957–961)","ओवा (961–964)","कोहो (964–968)","अन्ना (968–970)","टेंरोकू (970–973)","टेन-एन (973–976)","जोगन् (976–978)","टेंगेन (978–983)","ईकान (983–985)","कन्ना (985–987)","ई-एन (987–989)","एइसो (989–990)","शोर्याकू (990–995)","चोटूकु (995–999)","चोहो (999–1004)","कंको (1004–1012)","च्योवा (1012–1017)","कन्निन (1017–1021)","ज़ियान (1021–1024)","मंजू (1024–1028)","चोगन (1028–1037)","चोर्याकू (1037–1040)","चोक्यु (1040–1044)","कांटूको (1044–1046)","ईशो (1046–1053)","टेंगी (1053–1058)","कोहैइ (1058–1065)","जिर्याकू (1065–1069)","ईंक्यू (1069–1074)","सोहो (1074–1077)","शोर्याकू (1077–1081)","ईहो (1081–1084)","ओटूको (1084–1087)","कांजि (1087–1094)","कोहो (1094–1096)","ईचो (1096–1097)","शोटूको (1097–1099)","कोवा (1099–1104)","चोजी (1104–1106)","काशो (1106–1108)","टेन्निन (1108–1110)","टेन-ई (1110–1113)","ईक्यू (1113–1118)","जेन-ई (1118–1120)","होआन (1120–1124)","तेंजी (1124–1126)","दाईजी (1126–1131)","टेंशो (1131–1132)","चोशो (1132–1135)","होएन (1135–1141)","ईजी (1141–1142)","कोजी (1142–1144)","टेन्यो (1144–1145)","क्यूआन (1145–1151)","निंपैई (1151–1154)","क्योजो (1154–1156)","होगेन (1156–1159)","हैजी (1159–1160)","ईर्याकू (1160–1161)","ओहो (1161–1163)","चोकान (1163–1165)","ईमान (1165–1166)","निन-आन (1166–1169)","काओ (1169–1171)","शोअन (1171–1175)","अंजन (1175–1177)","जिशो (1177–1181)","योवा (1181–1182)","जूऐई (1182–1184)","जेंर्याकू (1184–1185)","बूंजी (1185–1190)","केंक्यू (1190–1199)","शोजी (1199–1201)","केन्निन (1201–1204)","जेंक्यू (1204–1206)","केन-ई (1206–1207)","शोगेन (1207–1211)","केंर्याकू (1211–1213)","केंपो (1213–1219)","शोक्यू (1219–1222)","जू (1222–1224)","जेन्निन (1224–1225)","कोरोकू (1225–1227)","अंटैइ (1227–1229)","कांकी (1229–1232)","जोएई (1232–1233)","टेम्पूकू (1233–1234)","बुंर्याकू (1234–1235)","काटेई (1235–1238)","र्याकूनिन (1238–1239)","ईन-ओ (1239–1240)","निंजी (1240–1243)","कांजेन (1243–1247)","होजी (1247–1249)","केंचो (1249–1256)","कोगेन (1256–1257)","शोका (1257–1259)","शोगेन (1259–1260)","बुन-ओ (1260–1261)","कोचो (1261–1264)","बुन-ई (1264–1275)","केंजी (1275–1278)","कोअन (1278–1288)","शो (1288–1293)","ईनिन (1293–1299)","शोअन (1299–1302)","केंजेन (1302–1303)","काजेन (1303–1306)","टोकूजी (1306–1308)","ईंकेई (1308–1311)","ओचो (1311–1312)","शोवा (1312–1317)","बुंपो (1317–1319)","जेनो (1319–1321)","जेंक्यो (1321–1324)","शोचू (1324–1326)","कारेकी (1326–1329)","जेंटोकू (1329–1331)","गेंको (1331–1334)","केम्मू (1334–1336)","ईंजेन (1336–1340)","कोकोकू (1340–1346)","शोहेई (1346–1370)","केंटोकू (1370–1372)","बूंचो (1372–1375)","टेंजो (1375–1379)","कोर्याकू (1379–1381)","कोवा (1381–1384)","जेंचू (1384–1392)","मेटोकू (1384–1387)","काकेई (1387–1389)","कू (1389–1390)","मेटोकू (1390–1394)","ओई (1394–1428)","शोचो (1428–1429)","ईक्यो (1429–1441)","काकीत्सू (1441–1444)","बुन-अन (1444–1449)","होटोकू (1449–1452)","क्योटोकू (1452–1455)","कोशो (1455–1457)","चोरोकू (1457–1460)","कांशो (1460–1466)","बुंशो (1466–1467)","ओनिन (1467–1469)","बुन्मेई (1469–1487)","चोक्यो (1487–1489)","ईंटोकू (1489–1492)","मेईओ (1492–1501)","बुंकी (1501–1504)","ईशो (1504–1521)","ताईएई (1521–1528)","क्योरोकू (1528–1532)","टेन्मन (1532–1555)","कोजी (1555–1558)","ईरोकू (1558–1570)","जेंकी (1570–1573)","टेंशो (1573–1592)","बुंरोकू (1592–1596)","केईचो (1596–1615)","जेनवा (1615–1624)","कान-एई (1624–1644)","शोहो (1644–1648)","केईआन (1648–1652)","शो (1652–1655)","मेईर्याकू (1655–1658)","मानजी (1658–1661)","कनबुन (1661–1673)","ईंपो (1673–1681)","टेंवा (1681–1684)","जोक्यो (1684–1688)","जेंरोकू (1688–1704)","होएई (1704–1711)","शोटूको (1711–1716)","क्योहो (1716–1736)","जेंबुन (1736–1741)","कांपो (1741–1744)","इंक्यो (1744–1748)","कान-एन (1748–1751)","होर्याकू (1751–1764)","मेईवा (1764–1772)","अन-एई (1772–1781)","टेनमेई (1781–1789)","कांसेई (1789–1801)","क्योवा (1801–1804)","बुंका (1804–1818)","बुंसेई (1818–1830)","टेंपो (1830–1844)","कोका (1844–1848)","काईए (1848–1854)","अंसेई (1854–1860)","मान-ईन (1860–1861)","बुंक्यौ (1861–1864)","जेंजी (1864–1865)","केईओ (1865–1868)","मेजी","ताईशो","शोवा","हेईसेई","फर्वादिन","ओर्दिवेहेस्ट","खोरर्दाद","टिर","मोरदाद","शाहरीवर्","मेहर","अवन","अज़र","डे","बहमन","ईस्फन्द्","LLL y. G","d. MMM y. G","E, d. MMM y. G","L.","LLL y.","d. MMM y.","E, d. MMM y.","QQQ y.","QQQQ y.","EEEE, d. MMMM y.","d. MMMM y.","1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12.","sij","velj","ožu","tra","svi","lip","kol","ruj","stu","siječnja","veljače","ožujka","travnja","svibnja","lipnja","srpnja","kolovoza","rujna","listopada","studenoga","prosinca","pr. Kr.","p. Kr.","prije Krista","poslije Krista","Taika (645.-650.)","Hakuchi (650.-671.)","Hakuhō (672.-686.)","Shuchō (686.-701.)","Taihō (701.-704.)","Keiun (704.-708.)","Wadō (708.-715.)","Reiki (715.-717.)","Yōrō (717.-724.)","Jinki (724.-729.)","Tempyō (729.-749.)","Tempyō-kampō (749.-749.)","Tempyō-shōhō (749.-757.)","Tempyō-hōji (757.-765.)","Temphō-jingo (765.-767.)","Jingo-keiun (767.-770.)","Hōki (770.-780.)","Ten-ō (781.-782.)","Enryaku (782.-806.)","Daidō (806.-810.)","Kōnin (810.-824.)","Tenchō (824.-834.)","Jōwa (834.-848.)","Kajō (848.-851.)","Ninju (851.-854.)","Saiko (854.-857.)","Tennan (857.-859.)","Jōgan (859.-877.)","Genkei (877.-885.)","Ninna (885.-889.)","Kampyō (889.-898.)","Shōtai (898.-901.)","Engi (901.-923.)","Enchō (923.-931.)","Shōhei (931.-938.)","Tengyō (938.-947.)","Tenryaku (947.-957.)","Tentoku (957.-961.)","Ōwa (961.-964.)","Kōhō (964.-968.)","Anna (968.-970.)","Tenroku (970.-973.)","Ten-en (973.-976.)","Jōgen (976.-978.)","Tengen (978.-983.)","Eikan (983.-985.)","Kanna (985.-987.)","Ei-en (987.-989.)","Eiso (989.-990.)","Shōryaku (990.-995.)","Chōtoku (995.-999.)","Chōhō (999.-1004.)","Kankō (1004.-1012.)","Chōwa (1012.-1017.)","Kannin (1017.-1021.)","Jian (1021.-1024.)","Manju (1024.-1028.)","Chōgen (1028.-1037.)","Chōryaku (1037.-1040.)","Chōkyū (1040.-1044.)","Kantoku (1044.-1046.)","Eishō (1046.-1053.)","Tengi (1053.-1058.)","Kōhei (1058.-1065.)","Jiryaku (1065.-1069.)","Enkyū (1069.-1074.)","Shōho (1074.-1077.)","Shōryaku (1077.-1081.)","Eiho (1081.-1084.)","Ōtoku (1084.-1087.)","Kanji (1087.-1094.)","Kaho (1094.-1096.)","Eichō (1096.-1097.)","Shōtoku (1097.-1099.)","Kōwa (1099.-1104.)","Chōji (1104.-1106.)","Kashō (1106.-1108.)","Tennin (1108.-1110.)","Ten-ei (1110.-1113.)","Eikyū (1113.-1118.)","Gen-ei (1118.-1120.)","Hoan (1120.-1124.)","Tenji (1124.-1126.)","Daiji (1126.-1131.)","Tenshō (1131.-1132.)","Chōshō (1132.-1135.)","Hoen (1135.-1141.)","Eiji (1141.-1142.)","Kōji (1142.-1144.)","Tenyō (1144.-1145.)","Kyūan (1145.-1151.)","Ninpei (1151.-1154.)","Kyūju (1154.-1156.)","Hogen (1156.-1159.)","Heiji (1159.-1160.)","Eiryaku (1160.-1161.)","Ōho (1161.-1163.)","Chōkan (1163.-1165.)","Eiman (1165.-1166.)","Nin-an (1166.-1169.)","Kaō (1169.-1171.)","Shōan (1171.-1175.)","Angen (1175.-1177.)","Jishō (1177.-1181.)","Yōwa (1181.-1182.)","Juei (1182.-1184.)","Genryuku (1184.-1185.)","Bunji (1185.-1190.)","Kenkyū (1190.-1199.)","Shōji (1199.-1201.)","Kennin (1201.-1204.)","Genkyū (1204.-1206.)","Ken-ei (1206.-1207.)","Shōgen (1207.-1211.)","Kenryaku (1211.-1213.)","Kenpō (1213.-1219.)","Shōkyū (1219.-1222.)","Jōō (1222.-1224.)","Gennin (1224.-1225.)","Karoku (1225.-1227.)","Antei (1227.-1229.)","Kanki (1229.-1232.)","Jōei (1232.-1233.)","Tempuku (1233.-1234.)","Bunryaku (1234.-1235.)","Katei (1235.-1238.)","Ryakunin (1238.-1239.)","En-ō (1239.-1240.)","Ninji (1240.-1243.)","Kangen (1243.-1247.)","Hōji (1247.-1249.)","Kenchō (1249.-1256.)","Kōgen (1256.-1257.)","Shōka (1257.-1259.)","Shōgen (1259.-1260.)","Bun-ō (1260.-1261.)","Kōchō (1261.-1264.)","Bun-ei (1264.-1275.)","Kenji (1275.-1278.)","Kōan (1278.-1288.)","Shōō (1288.-1293.)","Einin (1293.-1299.)","Shōan (1299.-1302.)","Kengen (1302.-1303.)","Kagen (1303.-1306.)","Tokuji (1306.-1308.)","Enkei (1308.-1311.)","Ōchō (1311.-1312.)","Shōwa (1312.-1317.)","Bunpō (1317.-1319.)","Genō (1319.-1321.)","Genkyō (1321.-1324.)","Shōchū (1324.-1326.)","Kareki (1326.-1329.)","Gentoku (1329.-1331.)","Genkō (1331.-1334.)","Kemmu (1334.-1336.)","Engen (1336.-1340.)","Kōkoku (1340.-1346.)","Shōhei (1346.-1370.)","Kentoku (1370.-1372.)","Bunchū (1372.-1375.)","Tenju (1375.-1379.)","Kōryaku (1379.-1381.)","Kōwa (1381.-1384.)","Genchū (1384.-1392.)","Meitoku (1384.-1387.)","Kakei (1387.-1389.)","Kōō (1389.-1390.)","Meitoku (1390.-1394.)","Ōei (1394.-1428.)","Shōchō (1428.-1429.)","Eikyō (1429.-1441.)","Kakitsu (1441.-1444.)","Bun-an (1444.-1449.)","Hōtoku (1449.-1452.)","Kyōtoku (1452.-1455.)","Kōshō (1455.-1457.)","Chōroku (1457.-1460.)","Kanshō (1460.-1466.)","Bunshō (1466.-1467.)","Ōnin (1467.-1469.)","Bunmei (1469.-1487.)","Chōkyō (1487.-1489.)","Entoku (1489.-1492.)","Meiō (1492.-1501.)","Bunki (1501.-1504.)","Eishō (1504.-1521.)","Taiei (1521.-1528.)","Kyōroku (1528.-1532.)","Tenmon (1532.-1555.)","Kōji (1555.-1558.)","Eiroku (1558.-1570.)","Genki (1570.-1573.)","Tenshō (1573.-1592.)","Bunroku (1592.-1596.)","Keichō (1596.-1615.)","Genwa (1615.-1624.)","Kan-ei (1624.-1644.)","Shōho (1644.-1648.)","Keian (1648.-1652.)","Shōō (1652.-1655.)","Meiryaku (1655.-1658.)","Manji (1658.-1661.)","Kanbun (1661.-1673.)","Enpō (1673.-1681.)","Tenwa (1681.-1684.)","Jōkyō (1684.-1688.)","Genroku (1688.-1704.)","Hōei (1704.-1711.)","Shōtoku (1711.-1716.)","Kyōhō (1716.-1736.)","Genbun (1736.-1741.)","Kanpō (1741.-1744.)","Enkyō (1744.-1748.)","Kan-en (1748.-1751.)","Hōryaku (1751.-1764.)","Meiwa (1764.-1772.)","An-ei (1772.-1781.)","Tenmei (1781.-1789.)","Kansei (1789.-1801.)","Kyōwa (1801.-1804.)","Bunka (1804.-1818.)","Bunsei (1818.-1830.)","Tenpō (1830.-1844.)","Kōka (1844.-1848.)","Kaei (1848.-1854.)","Ansei (1854.-1860.)","Man-en (1860.-1861.)","Bunkyū (1861.-1864.)","Genji (1864.-1865.)","Keiō (1865.-1868.)","prije R.O.C.","E, H:mm 'hodź'.","H 'hodź'.","H:mm 'hodź'.","mej.","meje","š","wut","štw","pja","njedźela","póndźela","wutora","srjeda","štwórtk","pjatk","popołdnju","př.Chr.n.","po Chr.n.","př.n.l.č.","n.l.č.","před Chrystowym narodźenjom","po Chrystowym narodźenju","před našim ličenjom časa","našeho ličenja časa","d., E","G y.","G y. MMM","G y. MMM d.","G y. MMM d., E","a h","a h:mm","a h:mm:ss","M. d.","M. d., E","MMM d.","MMM d., E","MMMM d.","y. M.","y. MM. dd.","y. MM. dd., E","y. MMM","y. MMM d.","y. MMM d., E","y. MMMM","y. QQQ","y. QQQQ","y. MMMM d., EEEE","y. MMMM d.","Á","Sz","márc.","ápr.","máj.","jún.","júl.","szept.","január","február","március","április","május","június","július","augusztus","szeptember","október","Cs","Sze","Szo","vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat","de.","du.","ie.","isz.","i. e.","i. sz.","időszámításunk előtt","időszámításunk szerint","Tisri","Hesván","Kiszlév","Tévész","Svát","Ádár I","Ádár","Niszán","Ijár","Sziván","Áv","Ádár II","TÉ","Moh.","Réb. 1","Réb. 2","Dsem. I","Dsem. II","Red.","Sab.","Sev.","Dsül k.","Dsül h.","Moharrem","Rébi el avvel","Rébi el accher","Dsemádi el avvel","Dsemádi el accher","Redseb","Sabán","Ramadán","Sevvál","Dsül kade","Dsül hedse","MF","R.O.C. előtt","Ft","d, ccc","G yթ.","G yթ. LLL","d MMM, yթ.,","G yթ. MMM d, E","d.MM.yթ., E","yթ. LLL","d MMM, yթ.","yթ. MMM d, E","yթ․ MMMM","y թ, QQQ","y թ, QQQQ","yթ. MMMM d, EEEE","dd MMMM, yթ.","dd MMM, yթ.","H:mm:ss, zzzz","H:mm:ss, z","Հ","Փ","Մ","Ա","Օ","Ս","Ն","Դ","հնվ","փտվ","մրտ","ապր","մյս","հնս","հլս","օգս","սեպ","հոկ","նոյ","դեկ","հունվարի","փետրվարի","մարտի","ապրիլի","մայիսի","հունիսի","հուլիսի","օգոստոսի","սեպտեմբերի","հոկտեմբերի","նոյեմբերի","դեկտեմբերի","Կ","Ե","Չ","Ու","Շ","կիր","երկ","երք","չրք","հնգ","ուր","շբթ","կիրակի","երկուշաբթի","երեքշաբթի","չորեքշաբթի","հինգշաբթի","ուրբաթ","շաբաթ","մ.թ.ա.","մ.թ.","մ.թ.ա","մեր թվարկությունից առաջ","մեր թվարկության","֏","h.mm.ss. a v","Des","Maret","Agustus","Min","Sen","Sel","Rab","Kam","Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu","SM","SEU","EU","Sebelum Masehi","Sebelum Era Umum","Era Umum","Syaw.","Sya’ban","Ramadhan","Syawal","Tempyō (729–749)","Tempyō-kampō (749-749)","Tempyō-shōhō (749-757)","Tempyō-hōji (757-765)","Temphō-jingo (765-767)","Saiko (854–857)","Tennan (857–859)","Genkei (877–885)","Kampyō (889–898)","Shōhei (931–938)","Ten-en (973-976)","Ei-en (987-989)","Eiho (1081–1084)","Kaho (1094–1096)","Shōtoku (1097–1099)","Gen-ei (1118-1120)","Hoan (1120–1124)","Hoen (1135–1141)","Tenyō (1144–1145)","Hogen (1156–1159)","Nin-an (1166-1169)","Genryuku (1184–1185)","Ken-ei (1206-1207)","Shōgen (1207–1211)","Shōkyū (1219–1222)","Tempuku (1233–1234)","Bun-ō (1260-1261)","Bun-ei (1264-1275)","Enkei (1308–1311)","Genkyō (1321–1324)","Kareki (1326–1329)","Kemmu (1334–1336)","Bun-an (1444-1449)","Tenmon (1532–1555)","Genwa (1615–1624)","Kan-ei (1624-1644)","Shōō (1652–1655)","Meiryaku (1655–1658)","Tenwa (1681–1684)","Kan-en (1748-1751)","Hōryaku (1751–1764)","An-ei (1772-1781)","Man-en (1860-1861)","Sebelum R.O.C.","Rp","Jen","Juu","Ọgọ","Ọkt","Jenụwarị","Febrụwarị","Maachị","Eprel","Juun","Julaị","Ọgọọst","Ọktoba","Ụka","Mọn","Tiu","Wen","Tọọ","Fraị","Mbọsị Ụka","Mọnde","Tiuzdee","Wenezdee","Tọọzdee","Fraịdee","Satọdee","P.M.","T.K.","A.K.","Tupu Kristi","Afọ Kristi","ꋍꆪ","ꑍꆪ","ꌕꆪ","ꇖꆪ","ꉬꆪ","ꃘꆪ","ꏃꆪ","ꉆꆪ","ꈬꆪ","ꊰꆪ","ꊰꊪꆪ","ꊰꑋꆪ","ꆏ","ꋍ","ꑍ","ꌕ","ꇖ","ꉬ","ꃘ","ꑭꆏ","ꆏꋍ","ꆏꑍ","ꆏꌕ","ꆏꇖ","ꆏꉬ","ꆏꃘ","ꑭꆏꑍ","ꆏꊂꋍ","ꆏꊂꑍ","ꆏꊂꌕ","ꆏꊂꇖ","ꆏꊂꉬ","ꆏꊂꃘ","ꎸꄑ","ꁯꋒ","ꃅꋊꂿ","ꃅꋊꊂ","M. y","maí","ágú.","nóv.","janúar","febrúar","júní","júlí","ágúst","nóvember","Þ","þri.","mið.","fim.","fös.","lau.","mánudagur","þriðjudagur","miðvikudagur","fimmtudagur","föstudagur","laugardagur","f.h.","e.h.","f.k.","e.k.","f.l.t.","l.t.","fyrir Krist","fyrir kristið tímatal","kristið tímatal","mag","giu","lug","ott","gennaio","febbraio","aprile","maggio","giugno","luglio","settembre","ottobre","dicembre","mer","gio","domenica","lunedì","martedì","mercoledì","giovedì","venerdì","a.E.V.","E.V.","avanti Era Volgare","Era Volgare","Prima di R.O.C.","d-MMM-y","d日","d日(E)","d日EEEE","aK:mm (E)","H:mm (E)","aK:mm:ss (E)","H:mm:ss (E)","Gy年","Gy年M月","Gy年M月d日","Gy年M月d日(E)","Gy年M月d日EEEE","aK時","H時","aK:mm","aK:mm:ss","aK:mm:ss v","aK:mm v","M月","M/d(E)","M/dEEEE","M月d日","M月d日(E)","M月d日EEEE","y年","y/M/d(E)","y/M/dEEEE","y/MM","y年M月","y年M月d日","y年M月d日(E)","y年M月d日EEEE","y/QQQ","yQQQQ","H時mm分ss秒 zzzz","1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月","日","月","火","水","木","金","土","日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日","仏暦","午前","午後","正","二","三","四","五","六","七","八","九","十","十一","十二","正月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月","トウト","ババ","ハトール","キアック","トーバ","アムシール","バラムハート","バラモウダ","バシャンス","パオーナ","エペープ","メスラ","ナシエ","メスケレム","テケムト","ヘダル","ターサス","テル","イェカティト","メガビト","ミアジア","ゲンボト","セネ","ハムレ","ネハッセ","パグメン","紀元前","西暦","西暦紀元前","西暦紀元","ティスレ","へシボン","キスレブ","テベット","シバット","アダル I","アダル","ニサン","イヤル","シバン","タムズ","アヴ","エルル","アダル II","カイトラ","ヴァイサカ","ジャイスタ","アーサダ","スラバナ","バードラ","アスビナ","カルディカ","アヴラハヤナ","パウサ","マーガ","パルグナ","サカ","ムハッラム","サフアル","ラビー・ウル・アウワル","ラビー・ウッ・サーニー","ジュマーダル・アウワル","ジュマーダッサーニー","ラジャブ","シャアバーン","ラマダーン","シャウワール","ズル・カイダ","ズル・ヒッジャ","大化","白雉","白鳯","朱鳥","大宝","慶雲","和銅","霊亀","養老","神亀","天平","天平感宝","天平勝宝","天平宝字","天平神護","神護景雲","宝亀","天応","延暦","大同","弘仁","天長","承和","嘉祥","仁寿","斉衡","天安","貞観","元慶","仁和","寛平","昌泰","延喜","延長","承平","天慶","天暦","天徳","応和","康保","安和","天禄","天延","貞元","天元","永観","寛和","永延","永祚","正暦","長徳","長保","寛弘","長和","寛仁","治安","万寿","長元","長暦","長久","寛徳","永承","天喜","康平","治暦","延久","承保","承暦","永保","応徳","寛治","嘉保","永長","承徳","康和","長治","嘉承","天仁","天永","永久","元永","保安","天治","大治","天承","長承","保延","永治","康治","天養","久安","仁平","久寿","保元","平治","永暦","応保","長寛","永万","仁安","嘉応","承安","安元","治承","養和","寿永","元暦","文治","建久","正治","建仁","元久","建永","承元","建暦","建保","承久","貞応","元仁","嘉禄","安貞","寛喜","貞永","天福","文暦","嘉禎","暦仁","延応","仁治","寛元","宝治","建長","康元","正嘉","正元","文応","弘長","文永","建治","弘安","正応","永仁","正安","乾元","嘉元","徳治","延慶","応長","正和","文保","元応","元亨","正中","嘉暦","元徳","元弘","建武","延元","興国","正平","建徳","文中","天授","康暦","弘和","元中","至徳","嘉慶","康応","明徳","応永","正長","永享","嘉吉","文安","宝徳","享徳","康正","長禄","寛正","文正","応仁","文明","長享","延徳","明応","文亀","永正","大永","享禄","天文","弘治","永禄","元亀","天正","文禄","慶長","元和","寛永","正保","慶安","承応","明暦","万治","寛文","延宝","天和","貞享","元禄","宝永","正徳","享保","元文","寛保","延享","寛延","宝暦","明和","安永","天明","寛政","享和","文化","文政","天保","弘化","嘉永","安政","万延","文久","元治","慶応","明治","大正","昭和","平成","ファルヴァルディーン","オルディーベヘシュト","ホルダード","ティール","モルダード","シャハリーヴァル","メフル","アーバーン","アーザル","デイ","バフマン","エスファンド","民国前","民国","元","¥","M.d.y","Nduŋmbi Saŋ","Pɛsaŋ Pɛ́pá","Pɛsaŋ Pɛ́tát","Pɛsaŋ Pɛ́nɛ́kwa","Pɛsaŋ Pataa","Pɛsaŋ Pɛ́nɛ́ntúkú","Pɛsaŋ Saambá","Pɛsaŋ Pɛ́nɛ́fɔm","Pɛsaŋ Pɛ́nɛ́pfúꞋú","Pɛsaŋ Nɛgɛ́m","Pɛsaŋ Ntsɔ̌pmɔ́","Pɛsaŋ Ntsɔ̌ppá","Sɔ́","Mɔ́","ÁM","Wɛ́","Tɔ́","Fɛ","Sá","Sɔ́ndi","Mɔ́ndi","Ápta Mɔ́ndi","Wɛ́nɛsɛdɛ","Tɔ́sɛdɛ","Fɛlâyɛdɛ","Sásidɛ","mbaꞌmbaꞌ","ŋka mbɔ́t nji","tsɛttsɛt mɛŋguꞌ mi ɛ́ lɛɛnɛ Kɛlísɛtɔ gɔ ńɔ́","tsɛttsɛt mɛŋguꞌ mi ɛ́ fúnɛ Kɛlísɛtɔ tɔ́ mɔ́","Aprilyi","Junyi","Julyai","Agusti","Iju","Jumapilyi","Jumatatuu","Jumatanu","utuko","kyiukonyi","Kabla ya Kristu","Baada ya Kristu","MMM. y G","d MMM. y G","E, d MMM. y G","MMM. y","d MMM. y","E, d MMM. y","MMMM, y","QQQ, y","QQQQ, y","EEEE, dd MMMM, y","ი","თ","მ","ა","ს","ო","ნ","დ","იან","თებ","მარ","აპრ","მაი","ივნ","ივლ","აგვ","სექ","ოქტ","ნოე","დეკ","იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი","კ","ხ","პ","შ","კვი","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ","კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი","ძვ. წ.","ახ. წ.","ჩვ. ერამდე","ჩვ. ერა","ძველი წელთაღრიცხვით","ახალი წელთაღრიცხვით","ჩვენს ერამდე","ჩვენი ერა","არ არის რიცხვი","Ɣ","Yen","Fur","Meɣ","Yeb","Ɣuc","Cte","Tub","Nun","Duǧ","Yennayer","Fuṛar","Meɣres","Yebrir","Mayyu","Yunyu","Yulyu","Ɣuct","Ctembeṛ","Tubeṛ","Nunembeṛ","Duǧembeṛ","Yan","San","Kraḍ","Kuẓ","Sam","Sḍis","Say","Yanass","Sanass","Kraḍass","Kuẓass","Samass","Sḍisass","Sayass","n tufat","n tmeddit","snd. T.Ɛ","sld. T.Ɛ","send talalit n Ɛisa","seld talalit n Ɛisa","Ĩ","Kel","Ktũ","Ktn","Tha","Moo","Nya","Knd","Ĩku","Ĩkm","Ĩkl","Mwai wa mbee","Mwai wa kelĩ","Mwai wa katatũ","Mwai wa kana","Mwai wa katano","Mwai wa thanthatũ","Mwai wa muonza","Mwai wa nyaanya","Mwai wa kenda","Mwai wa ĩkumi","Mwai wa ĩkumi na ĩmwe","Mwai wa ĩkumi na ilĩ","Wky","Wkw","Wkl","Wtũ","Wkn","Wtn","Wth","Wa kyumwa","Wa kwambĩlĩlya","Wa kelĩ","Wa katatũ","Wa kana","Wa katano","Wa thanthatũ","Ĩyakwakya","Ĩyawĩoo","MY","IY","Mbee wa Yesũ","Ĩtina wa Yesũ","Mwedi Ntandi","Mwedi wa Pili","Mwedi wa Tatu","Mwedi wa Nchechi","Mwedi wa Nnyano","Mwedi wa Nnyano na Umo","Mwedi wa Nnyano na Mivili","Mwedi wa Nnyano na Mitatu","Mwedi wa Nnyano na Nchechi","Mwedi wa Nnyano na Nnyano","Mwedi wa Nnyano na Nnyano na U","Mwedi wa Nnyano na Nnyano na M","Ll2","Ll3","Ll4","Ll5","Ll6","Ll7","Ll1","Liduva lyapili","Liduva lyatatu","Liduva lyanchechi","Liduva lyannyano","Liduva lyannyano na linji","Liduva lyannyano na mavili","Liduva litandi","Muhi","Chilo","AY","NY","Akanapawa Yesu","Nankuida Yesu","MMM 'di' y G","d 'di' MMM 'di' y G","E, d 'di' MMM 'di' y G","E, d 'di' MMMM","MMM 'di' y","MMMM 'di' y","QQQQ 'di' y","EEEE, d 'di' MMMM 'di' y","d 'di' MMMM 'di' y","Nuv","Diz","Janeru","Febreru","Marsu","Maiu","Junhu","Julhu","Agostu","Setenbru","Otubru","Nuvenbru","Dizenbru","sig","kua","kin","ses","dumingu","sigunda-fera","tersa-fera","kuarta-fera","kinta-fera","sesta-fera","sabadu","DK","AEK","EK","Antis di Kristu","Dispos di Kristu","Antis di Era Kumun","Era Kumun","​","Alj","Ass","Atini","Atalata","Alhamiisa","Aljuma","Assabdu","Adduha","Aluula","Isaa jamanoo","JEN","WKR","WGT","WKN","WTN","WTD","WMJ","WNN","WKD","WIK","WMW","DIT","Njenuarĩ","Mwere wa kerĩ","Mwere wa gatatũ","Mwere wa kana","Mwere wa gatano","Mwere wa gatandatũ","Mwere wa mũgwanja","Mwere wa kanana","Mwere wa kenda","Mwere wa ikũmi","Mwere wa ikũmi na ũmwe","Ndithemba","KMA","NTT","NMN","NMT","ART","NMA","Njumatatũ","Njumatana","Njumamothi","Kiroko","Hwaĩ-inĩ","E, a h:mm","E, a h:mm:ss","G y 'ж'.","G y 'ж'. MMM","G y 'ж'. d MMM","G y 'ж'. d MMM, E","a h:mm:ss v","a h:mm v","y 'ж'. MMM","y 'ж'. d MMM","y 'ж'. d MMM, E","y 'ж'. MMMM","y 'ж'. QQQ","y 'ж'. QQQQ","y 'ж'. d MMMM, EEEE","y 'ж'. d MMMM","y 'ж'. dd MMM","Қ","А","Н","С","М","Ш","Т","Ж","қаң.","ақп.","нау.","сәу.","мам.","мау.","шіл.","там.","қыр.","қаз.","қар.","жел.","қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан","Д","Б","Жс","Дс","Сс","Ср","Бс","Жм","Сб","жексенбі","дүйсенбі","сейсенбі","сәрсенбі","бейсенбі","жұма","сенбі","таңғы","түскі/кешкі","б.з.д.","б.з.","Біздің заманымызға дейін","Біздің заманымыз","БД","КД$","₸","MM y","dd/MM y","E dd/MM y","pamba","wanja","mbiyɔ mɛndoŋgɔ","Nyɔlɔmbɔŋgɔ","Mɔnɔ ŋgbanja","Nyaŋgwɛ ŋgbanja","kuŋgwɛ","fɛ","njapi","nyukul","ɓulɓusɛ","ye","va","ms","sɔndi","mɛrkɛrɛdi","yedi","vaŋdɛrɛdi","mɔnɔ sɔndi","januari","februari","martsi","aprili","maji","augustusi","septemberi","oktoberi","novemberi","decemberi","ata","pin","sis","tal","arf","sabaat","ataasinngorneq","marlunngorneq","pingasunngorneq","sisamanngorneq","tallimanngorneq","arfininngorneq","Ngat","Taa","Iwo","Mam","Paa","Nge","Roo","Bur","Epe","Kpt","Kpa","Mulgul","Ng’atyaato","Kiptaamo","Iwootkuut","Mamuut","Paagi","Ng’eiyeet","Rooptui","Bureet","Epeeso","Kipsuunde ne taai","Kipsuunde nebo aeng’","Kts","Kot","Koo","Kos","Koa","Kom","Kol","Kotisap","Kotaai","Koaeng’","Kosomok","Koang’wan","Komuut","Kolo","karoon","kooskoliny","KO","Amait kesich Jesu","Kokakesich Jesu","{1} នៅ {0}","y នៃ G","MMM y នៃ G","d MMM y នៃ G","E d MMM y នៃ G","មករា","កុម្ភៈ","មីនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ","អា","ច","អ","ពុ","ព្រ","សុ","ស","អាទិត្យ","ច័ន្ទ","អង្គារ","ពុធ","ព្រហស្បតិ៍","សុក្រ","សៅរ៍","ព្រឹក","ល្ងាច","មុន គ.ស.","គ.ស.","មុន​គ្រិស្តសករាជ","គ្រិស្តសករាជ","៛","d/M, E","MMM d,y","ಜ","ಫೆ","ಮಾ","ಏ","ಮೇ","ಜೂ","ಜು","ಆ","ಸೆ","ಅ","ನ","ಡಿ","ಜನ","ಫೆಬ್ರ","ಮಾರ್ಚ್","ಏಪ್ರಿ","ಜೂನ್","ಜುಲೈ","ಆಗ","ಸೆಪ್ಟೆಂ","ಅಕ್ಟೋ","ನವೆಂ","ಡಿಸೆಂ","ಜನವರಿ","ಫೆಬ್ರವರಿ","ಏಪ್ರಿಲ್","ಆಗಸ್ಟ್","ಸೆಪ್ಟೆಂಬರ್","ಅಕ್ಟೋಬರ್","ನವೆಂಬರ್","ಡಿಸೆಂಬರ್","ಭಾ","ಸೋ","ಮಂ","ಬು","ಗು","ಶು","ಶ","ಭಾನು","ಸೋಮ","ಮಂಗಳ","ಬುಧ","ಗುರು","ಶುಕ್ರ","ಶನಿ","ಭಾನುವಾರ","ಸೋಮವಾರ","ಮಂಗಳವಾರ","ಬುಧವಾರ","ಗುರುವಾರ","ಶುಕ್ರವಾರ","ಶನಿವಾರ","ಪೂರ್ವಾಹ್ನ","ಅಪರಾಹ್ನ","ಕ್ರಿ.ಪೂ","ಕ್ರಿ.ಶ","ಕ್ರಿ.ಪೂ.ಕಾಲ","ಪ್ರಸಕ್ತ ಶಕ","ಕ್ರಿಸ್ತ ಪೂರ್ವ","ಕ್ರಿಸ್ತ ಶಕ","d일","d일 (E)","d일 EEEE","(E) a h:mm","(E) HH:mm","(E) a h:mm:ss","(E) HH:mm:ss","G y년","G y년 MMM","G y년 MMM d일","G y년 MMM d일 (E)","G y년 MMM d일 EEEE","a h시","H시","H시 m분 s초","H시 m분 s초 v","M월","M. d. (E)","M. d. EEEE","MMM d일","MMM d일 (E)","MMM d일 EEEE","MMMM d일","y년","y. M. d.","y. M. d. (E)","y. M. d. EEEE","y년 MMM","y년 MMM d일","y년 MMM d일 (E)","y년 MMM d일 EEEE","y년 MMMM","y년 QQQ","y년 QQQQ","y년 M월 d일 EEEE","y년 M월 d일","yy. M. d.","a h시 m분 s초 zzzz","a h시 m분 s초 z","1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월","일","월","화","수","목","금","토","일요일","월요일","화요일","수요일","목요일","금요일","토요일","불기","오전","오후","투트","바바흐","하투르","키야흐크","투바흐","암쉬르","바라마트","바라문다흐","바샨스","바우나흐","아비브","미스라","나시","매스캐램","테켐트","헤다르","타흐사스","테르","얘카티트","매가비트","미야지야","겐보트","새네","함레","내하세","파구맨","기원전","서기","디스리월","말케스월","기슬르월","데벳월","스밧월","아달월 1","아달월","닛산월","이야르월","시완월","담무르월","압월","엘룰월","아달월 2","무하람","사파르","라비 알 아왈","라비 알 쎄니","주마다 알 아왈","주마다 알 쎄니","라잡","쉐아반","라마단","쉐왈","듀 알 까다","듀 알 히자","다이카 (645 ~ 650)","하쿠치 (650 ~ 671)","하쿠호 (672 ~ 686)","슈초 (686 ~ 701)","다이호 (701 ~ 704)","게이운 (704 ~ 708)","와도 (708 ~ 715)","레이키 (715 ~ 717)","요로 (717 ~ 724)","진키 (724 ~ 729)","덴표 (729 ~ 749)","덴표칸포 (749 ~ 749)","덴표쇼호 (749 ~ 757)","덴표호지 (757 ~ 765)","덴표진고 (765 ~ 767)","진고케이운 (767 ~ 770)","호키 (770 ~ 780)","덴오 (781 ~ 782)","엔랴쿠 (782 ~ 806)","다이도 (806 ~ 810)","고닌 (810 ~ 824)","덴초 (824 ~ 834)","조와 (834 ~ 848)","가쇼 (848 ~ 851)","닌주 (851 ~ 854)","사이코 (854 ~ 857)","덴난 (857 ~ 859)","조간 (859 ~ 877)","간교 (877 ~ 885)","닌나 (885 ~ 889)","간표 (889 ~ 898)","쇼타이 (898 ~ 901)","엔기 (901 ~ 923)","엔초 (923 ~ 931)","조헤이 (931 ~ 938)","덴교 (938 ~ 947)","덴랴쿠 (947 ~ 957)","덴토쿠 (957 ~ 961)","오와 (961 ~ 964)","고호 (964 ~ 968)","안나 (968 ~ 970)","덴로쿠 (970 ~ 973)","덴엔 (973 ~ 976)","조겐 (976 ~ 978)","덴겐 (978 ~ 983)","에이간 (983 ~ 985)","간나 (985 ~ 987)","에이엔 (987 ~ 989)","에이소 (989 ~ 990)","쇼랴쿠 (990 ~ 995)","조토쿠 (995 ~ 999)","조호 (999 ~ 1004)","간코 (1004 ~ 1012)","조와 (1012 ~ 1017)","간닌 (1017 ~ 1021)","지안 (1021 ~ 1024)","만주 (1024 ~ 1028)","조겐 (1028 ~ 1037)","조랴쿠 (1037 ~ 1040)","조큐 (1040 ~ 1044)","간토쿠 (1044 ~ 1046)","에이쇼 (1046 ~ 1053)","덴기 (1053 ~ 1058)","고헤이 (1058 ~ 1065)","지랴쿠 (1065 ~ 1069)","엔큐 (1069 ~ 1074)","조호 (1074 ~ 1077)","쇼랴쿠 (1077 ~ 1081)","에이호 (1081 ~ 1084)","오토쿠 (1084 ~ 1087)","간지 (1087 ~ 1094)","가호 (1094 ~ 1096)","에이초 (1096 ~ 1097)","조토쿠 (1097 ~ 1099)","고와 (1099 ~ 1104)","조지 (1104 ~ 1106)","가쇼 (1106 ~ 1108)","덴닌 (1108 ~ 1110)","덴에이 (1110 ~ 1113)","에이큐 (1113 ~ 1118)","겐에이 (1118 ~ 1120)","호안 (1120 ~ 1124)","덴지 (1124 ~ 1126)","다이지 (1126 ~ 1131)","덴쇼 (1131 ~ 1132)","조쇼 (1132 ~ 1135)","호엔 (1135 ~ 1141)","에이지 (1141 ~ 1142)","고지 (1142 ~ 1144)","덴요 (1144 ~ 1145)","규안 (1145 ~ 1151)","닌페이 (1151 ~ 1154)","규주 (1154 ~ 1156)","호겐 (1156 ~ 1159)","헤이지 (1159 ~ 1160)","에이랴쿠 (1160 ~ 1161)","오호 (1161 ~ 1163)","조칸 (1163 ~ 1165)","에이만 (1165 ~ 1166)","닌난 (1166 ~ 1169)","가오 (1169 ~ 1171)","조안 (1171 ~ 1175)","안겐 (1175 ~ 1177)","지쇼 (1177 ~ 1181)","요와 (1181 ~ 1182)","주에이 (1182 ~ 1184)","겐랴쿠 (1184 ~ 1185)","분지 (1185 ~ 1190)","겐큐 (1190 ~ 1199)","쇼지 (1199 ~ 1201)","겐닌 (1201 ~ 1204)","겐큐 (1204 ~ 1206)","겐에이 (1206 ~ 1207)","조겐 (1207 ~ 1211)","겐랴쿠 (1211 ~ 1213)","겐포 (1213 ~ 1219)","조큐 (1219 ~ 1222)","조오 (1222 ~ 1224)","겐닌 (1224 ~ 1225)","가로쿠 (1225 ~ 1227)","안테이 (1227 ~ 1229)","간키 (1229 ~ 1232)","조에이 (1232 ~ 1233)","덴푸쿠 (1233 ~ 1234)","분랴쿠 (1234 ~ 1235)","가테이 (1235 ~ 1238)","랴쿠닌 (1238 ~ 1239)","엔오 (1239 ~ 1240)","닌지 (1240 ~ 1243)","간겐 (1243 ~ 1247)","호지 (1247 ~ 1249)","겐초 (1249 ~ 1256)","고겐 (1256 ~ 1257)","쇼카 (1257 ~ 1259)","쇼겐 (1259 ~ 1260)","분오 (1260 ~ 1261)","고초 (1261 ~ 1264)","분에이 (1264 ~ 1275)","겐지 (1275 ~ 1278)","고안 (1278 ~ 1288)","쇼오 (1288 ~ 1293)","에이닌 (1293 ~ 1299)","쇼안 (1299 ~ 1302)","겐겐 (1302 ~ 1303)","가겐 (1303 ~ 1306)","도쿠지 (1306 ~ 1308)","엔쿄 (1308 ~ 1311)","오초 (1311 ~ 1312)","쇼와 (1312 ~ 1317)","분포 (1317 ~ 1319)","겐오 (1319 ~ 1321)","겐코 (1321 ~ 1324)","쇼추 (1324 ~ 1326)","가랴쿠 (1326 ~ 1329)","겐토쿠 (1329 ~ 1331)","겐코 (1331 ~ 1334)","겐무 (1334 ~ 1336)","엔겐 (1336 ~ 1340)","고코쿠 (1340 ~ 1346)","쇼헤이 (1346 ~ 1370)","겐토쿠 (1370 ~ 1372)","분추 (1372 ~ 1375)","덴주 (1375 ~ 1379)","고랴쿠 (1379 ~ 1381)","고와 (1381 ~ 1384)","겐추 (1384 ~ 1392)","메이토쿠 (1384 ~ 1387)","가쿄 (1387 ~ 1389)","고오 (1389 ~ 1390)","메이토쿠 (1390 ~ 1394)","오에이 (1394 ~ 1428)","쇼초 (1428 ~ 1429)","에이쿄 (1429 ~ 1441)","가키쓰 (1441 ~ 1444)","분안 (1444 ~ 1449)","호토쿠 (1449 ~ 1452)","교토쿠 (1452 ~ 1455)","고쇼 (1455 ~ 1457)","조로쿠 (1457 ~ 1460)","간쇼 (1460 ~ 1466)","분쇼 (1466 ~ 1467)","오닌 (1467 ~ 1469)","분메이 (1469 ~ 1487)","조쿄 (1487 ~ 1489)<","엔토쿠 (1489 ~ 1492)","메이오 (1492 ~ 1501)","분키 (1501 ~ 1504)","에이쇼 (1504 ~ 1521)","다이에이 (1521 ~ 1528)","교로쿠 (1528 ~ 1532)","덴분 (1532 ~ 1555)","고지 (1555 ~ 1558)","에이로쿠 (1558 ~ 1570)","겐키 (1570 ~ 1573)","덴쇼 (1573 ~ 1592)","분로쿠 (1592 ~ 1596)","게이초 (1596 ~ 1615)","겐나 (1615 ~ 1624)","간에이 (1624 ~ 1644)","쇼호 (1644 ~ 1648)","게이안 (1648 ~ 1652)","조오 (1652 ~ 1655)","메이레키 (1655 ~ 1658)","만지 (1658 ~ 1661)","간분 (1661 ~ 1673)","엔포 (1673 ~ 1681)","덴나 (1681 ~ 1684)","조쿄 (1684 ~ 1688)","겐로쿠 (1688 ~ 1704)","호에이 (1704 ~ 1711)","쇼토쿠 (1711 ~ 1716)","교호 (1716 ~ 1736)","겐분 (1736 ~ 1741)","간포 (1741 ~ 1744)","엔쿄 (1744 ~ 1748)","간엔 (1748 ~ 1751)","호레키 (1751 ~ 1764)","메이와 (1764 ~ 1772)","안에이 (1772 ~ 1781)","덴메이 (1781 ~ 1789)","간세이 (1789 ~ 1801)","교와 (1801 ~ 1804)","분카 (1804 ~ 1818)","분세이 (1818 ~ 1830)","덴포 (1830 ~ 1844)","고카 (1844 ~ 1848)","가에이 (1848 ~ 1854)","안세이 (1854 ~ 1860)","만엔 (1860 ~ 1861)","분큐 (1861 ~ 1864)","겐지 (1864 ~ 1865)","게이오 (1865 ~ 1868)","메이지","다이쇼","쇼와","헤이세이","화르바딘","오르디베헤쉬트","호르다드","티르","모르다드","샤흐리바르","메흐르","아반","아자르","다이","바흐만","에스판드","중화민국전","중화민국","जानेवारी","एप्रिल","जुलै","ओगस्ट","सेप्टेंबर","ओक्टोबर","नोव्हेंबर","डिसेंबर","मंगळ","आदित्यवार","मंगळार","म.पू.","म.नं.","क्रिस्तपूर्व","क्रिस्तशखा","Gy","MMM Gy","MMM d, Gy","EEE, MMM d, Gy","EEE, M/d/y","EEE, MMM d, y","جنؤری","فرؤری","مارٕچ","میٔ","جوٗن","جوٗلایی","ستمبر","اکتوٗبر","آتھوار","ژٔنٛدٕروار","بوٚموار","بودوار","برٛٮ۪سوار","جُمہ","بٹوار","اَتھوار","ژٔنٛدرٕروار","بی سی","اے ڈی","قبٕل مسیٖح","عیٖسوی سنہٕ","ربیٖع الاول","ربیٖع الثانی","ذِی القد","ذِی الحج","‎-‎","?","Januali","Febluali","Aplili","Jmn","Jumaapii","Jumaatatu","Jumaane","Jumaatano","Jumaamosi","makeo","nyiaghuo","Kabla ya Klisto","Baada ya Klisto","ŋ1","ŋ2","ŋ3","ŋ4","ŋ5","ŋ6","ŋ7","ŋ8","ŋ9","ŋ10","ŋ11","ŋ12","ŋwíí a ntɔ́ntɔ","ŋwíí akǝ bɛ́ɛ","ŋwíí akǝ ráá","ŋwíí akǝ nin","ŋwíí akǝ táan","ŋwíí akǝ táafɔk","ŋwíí akǝ táabɛɛ","ŋwíí akǝ táaraa","ŋwíí akǝ táanin","ŋwíí akǝ ntɛk","ŋwíí akǝ ntɛk di bɔ́k","ŋwíí akǝ ntɛk di bɛ́ɛ","lǝn","maa","mɛk","jǝǝ","júm","sam","sɔ́ndǝ","lǝndí","maadí","mɛkrɛdí","jǝǝdí","júmbá","samdí","sárúwá","cɛɛ́nko","d.Y.","k.Y.","di Yɛ́sus aká yálɛ","cámɛɛn kǝ kǝbɔpka Y","E 'dä' d.","Y-MM","d. MMM. y","E d. MMM. y","QQQy","EEEE, 'dä' d. MMMM y","Fäb","Mäz","Mäi","Ouj","Säp","Jannewa","Fäbrowa","Määz","Aprell","Juuni","Juuli","Oujoß","Me.","Sunndaach","Moondaach","Dinnsdaach","Metwoch","Dunnersdaach","Friidaach","Samsdaach","Uhr vörmiddaachs","Uhr nommendaachs","vC","nC","vdZ","dZ","v. d. Z.","d. Z.","vür Chrestus","noh Chrestus","vür der gewöhnlichen Zeitrechnung","der gewöhnlichen Zeitrechnung","¤¤¤","Gen","Hwe","Meu","Ebr","Met","Gor","Gwn","Hed","Kev","mis Genver","mis Hwevrer","mis Meurth","mis Ebrel","mis Me","mis Metheven","mis Gortheren","mis Est","mis Gwynngala","mis Hedra","mis Du","mis Kevardhu","Mth","Mhr","Yow","Gwe","dy Sul","dy Lun","dy Meurth","dy Merher","dy Yow","dy Gwener","dy Sadorn","G y-'ж'.","G y-'ж'. MMM","G y-'ж'. d-MMM","G y-'ж'. d-MMM, E","dd-MM, E","d-MMM, E","y-'ж'. MMM","y-'ж'. d-MMM","y-'ж'. d-MMM, E","y-'ж'., QQQ","y-'ж'., QQQQ","EEEE, d-MMMM, y-'ж'.","Я","Ф","И","О","янв.","фев.","мар.","апр.","июн.","июл.","авг.","сен.","окт.","ноя.","дек.","жек.","дүй.","шейш.","шарш.","бейш.","жума","ишм.","жекшемби","дүйшөмбү","шейшемби","шаршемби","бейшемби","ишемби","таңкы","түштөн кийинки","б.з.ч.","биздин заманга чейин","биздин заман","сан эмес","сом","Fúngatɨ","Naanɨ","Keenda","Ikúmi","Inyambala","Idwaata","Mʉʉnchɨ","Vɨɨrɨ","Saatʉ","Inyi","Saano","Sasatʉ","Kʉfúngatɨ","Kʉnaanɨ","Kʉkeenda","Kwiikumi","Kwiinyambála","Kwiidwaata","Kʉmʉʉnchɨ","Kʉvɨɨrɨ","Kʉsaatʉ","Kwiinyi","Kʉsaano","Kʉsasatʉ","Píili","Táatu","Íne","Táano","Móosi","Jumapíiri","Jumatátu","Jumaíne","Jumatáano","Alamíisi","Ijumáa","Jumamóosi","TOO","MUU","KSA","KA","Kɨrɨsitʉ sɨ anavyaal","Kɨrɨsitʉ akavyaalwe","HH 'Auer'","Mäe.","Abr.","Mäerz","Abrëll","Son.","Méi.","Dën.","Mët.","Don.","Fre.","Sam.","Sonndeg","Méindeg","Dënschdeg","Mëttwoch","Donneschdeg","Freideg","Samschdeg","moies","nomëttes","v. e. Z.","n. e. Z.","Apu","Seb","Oki","Janwaliyo","Febwaliyo","Marisi","Apuli","Maayi","Julaayi","Agusito","Sebuttemba","Okitobba","Bal","Lw2","Lw3","Lw4","Lw5","Lw6","Sabbiiti","Balaza","Lwakubiri","Lwakusatu","Lwakuna","Lwakutaano","Lwamukaaga","Kulisito nga tannaza","Bukya Kulisito Azaal","Wiótheȟika Wí","Thiyóȟeyuŋka Wí","Ištáwičhayazaŋ Wí","Pȟežítȟo Wí","Čhaŋwápetȟo Wí","Wípazukȟa-wašté Wí","Čhaŋpȟásapa Wí","Wasútȟuŋ Wí","Čhaŋwápeǧi Wí","Čhaŋwápe-kasná Wí","Waníyetu Wí","Tȟahékapšuŋ Wí","Aŋpétuwakȟaŋ","Aŋpétuwaŋži","Aŋpétunuŋpa","Aŋpétuyamni","Aŋpétutopa","Aŋpétuzaptaŋ","Owáŋgyužažapi","ɔ","fbl","msi","apl","yun","yul","agt","stb","ɔtb","nvb","dsb","sánzá ya yambo","sánzá ya míbalé","sánzá ya mísáto","sánzá ya mínei","sánzá ya mítáno","sánzá ya motóbá","sánzá ya nsambo","sánzá ya mwambe","sánzá ya libwa","sánzá ya zómi","sánzá ya zómi na mɔ̌kɔ́","sánzá ya zómi na míbalé","eye","ybo","mbl","mst","min","mtn","mps","eyenga","mokɔlɔ mwa yambo","mokɔlɔ mwa míbalé","mokɔlɔ mwa mísáto","mokɔlɔ ya mínéi","mokɔlɔ ya mítáno","mpɔ́sɔ","ntɔ́ngɔ́","mpókwa","libóso ya","nsima ya Y","Yambo ya Yézu Krís","Nsima ya Yézu Krís","d MMMM, G y","E d MMMM, G y","h ໂມງa","EEEE ທີ d MMMM G y","H ໂມງ m ນາທີ ss ວິນາທີ zzzz","H ໂມງ m ນາທີ ss ວິນາທີ z","ມ.ກ.","ກ.ພ.","ມ.ນ.","ມ.ສ.","ພ.ພ.","ມິ.ຖ.","ກ.ລ.","ສ.ຫ.","ກ.ຍ.","ຕ.ລ.","ພ.ຈ.","ທ.ວ.","ມັງກອນ","ກຸມພາ","ມີນາ","ເມສາ","ພຶດສະພາ","ມິຖຸນາ","ກໍລະກົດ","ສິງຫາ","ກັນຍາ","ຕຸລາ","ພະຈິກ","ທັນວາ","ວັນອາທິດ","ວັນຈັນ","ວັນອັງຄານ","ວັນພຸດ","ວັນພະຫັດ","ວັນສຸກ","ວັນເສົາ","ກ່ອນທ່ຽງ","ຫຼັງທ່ຽງ","ເທົາ","ບາບາ","ຮາໂຕ","ເຄຍ","ໂທບາ","ອຳເຊີ","ບາລຳຮາດ","ບາລາມູດາ","ບາສຮານ","ເປົານາ","ອີແປບ","ມາສລາ","ນາຊິວ","ອາເຊີ","ນາຊີວ","ແມສເຄີແຣມ","ເຕເກມ","ເຮດາ","ທາຊັສ","ເທີ","ເຍຄາທິດ","ເມກາບິດ","ເມຍເຊຍ","ເຈນບອດ","ເຊເນ","ຮຳເລ","ເນແຮສ໌","ພາກູເມນ","ກ່ອນ ຄ.ສ.","ຄ.ສ.","ກ່ອນຍຸກ ຄ.ສ","ຍຸກ ຄ.ສ","ກ່ອນຄຣິດສັກກະລາດ","ຄຣິດສັກກະລາດ","ກ່ອນສາກົນສັກກະລາດ","ສາກົນສັກກະລາດ","ທຣິດຣີ","ເຮວານ","ກິດເລບ","ເຕເວດ","ຊີວັດ","ອາດາ I","ອາດາ","ນິດຊານ","ອີຍາຣ","ສີວານ","ຕາມູ","ເອບ","ອີລູ","ອາດາ II","ຈິຕຣາ","ວິສາຂະ","ເຊດຖາ","ອັດສາ","ສາຣາວານາ","ພະຕຣາ","ອັສວິຊາ","ການຕິກາ","ອັກຣາຮາຢານາ","ປຸສາ","ມາຄະ","ຜາລກຸນີ","ປຸສະຍາ","ມຸຮັດ","ເຄາະ","ຮອດບີ 1","ຮອກບີ 2","ນຸມາ 1","ນຸມາ 2","ເຮາະ","ຊະອ໌","ເຮາະມະ","ເຊົາ","ຊຸລກິອຸ","ຊຸລຫິຈ","ມຸຣະຮອມ","ຊາຟາຣ","ຮອດບີ 2","ຈຸມາດາ 1","ຈຸມາດາ 2","ຮາຈັບ","ຊະບານ","ຮາມາດອນ","ເຊົາວັດ","ດຸອັດກິດະ","ດຸອັດກິຈະ","ທະອິກະ (645–650)","ຮາກູຊິ (650–671)","ຮາກູໂຮ (672–686)","ຊູໂຊ (686–701)","ທາອິໂຮ (701–704)","ເຄອຸງ (704–708)","ວະໂດ (708–715)","ເຣອິກິ (715–717)","ໂຢໂຣ (717–724)","ຈິງກິ (724–729)","ເທັມປຽວ (729–749)","ເທັມປຽວ-ຄໍາໂປ (749–749)","ເທັມປຽວ-ໂຊໂຮ (749–757)","ເທັມປຽວ-ໂຮຈິ (757–765)","ເທັມປຽວ-ຈິງໂງະ (765–767)","ຈິງໂງະ-ເຄອຸງ (767–770)","ໂຮກິ (770–780)","ເທັນ-ໂອ (781–782)","ເອັນຣຢາກຸ (782–806)","ດາອິໂດ (806–810)","ໂກນິນ (810–824)","ເທັນໂຊ (824–834)","ໂຊວະ (834–848)","ກະໂຈ (848–851)","ນິນຈູ (851–854)","ສະອິໂກະ (854–857)","ເທັນນານ (857–859)","ໂຈງານ (859–877)","ເກັນເກ (877–885)","ນິນນາ (885–889)","ກໍາປຽວ (889–898)","ໂຊຕາອິ (898–901)","ເອັນງິ (901–923)","ເອັນໂຊ (923–931)","ໂຊເຮ (931–938)","ເທັນງຽວ (938–947)","ເທັນຣຢາກູ (947–957)","ເທັນໂຕະກຸ (957–961)","ໂອວະ (961–964)","ໂກໂຮ (964–968)","ອານະ (968–970)","ເທັນໂຣະກຸ (970–973)","ເທັນ-ເອັນ (973–976)","ໂຈເງັນ (976–978)","ເທັນເງັນ (978–983)","ເອການ (983–985)","ການນະ (985–987)","ເອ-ເອັນ (987–989)","ເອໂຊ (989–990)","ໂຊຣຢະກຸ (990–995)","ໂຊໂຕະກຸ (995–999)","ໂຊໂຮ (999–1004)","ການໂກ (1004–1012)","ໂຊຫວະ (1012–1017)","ການນິງ (1017–1021)","ຈິອານ (1021–1024)","ມານຈຸ (1024–1028)","ໂຊເງັນ (1028–1037)","ໂຊເຣຢະກຸ (1037–1040)","ໂຊຄິວ (1040–1044)","ການໂຕະກຸ (1044–1046)","ເອະໂຊ (1046–1053)","ເທັນງິ (1053–1058)","ໂກເຮ (1058–1065)","ຈິເຣຢະກຸ (1065–1069)","ເອັນຄິວ (1069–1074)","ໂຊະໂຮ (1074–1077)","ໂຊະເຣຢະກຸ (1077–1081)","ເອໂຊະ (1081–1084)","ໂອໂຕະກຸ (1084–1087)","ການຈິ (1087–1094)","ກາໂຊ (1094–1096)","ເອະໂຊະ (1096–1097)","ໂຊະໂຕະກຸ (1097–1099)","ໂກະວະ (1099–1104)","ໂຊະຈິ (1104–1106)","ກາໂຊະ (1106–1108)","ເທັນນິນ (1108–1110)","ເທັນ-ອິ (1110–1113)","ເອກິວ (1113–1118)","ເຄັນ-ເອ (1118–1120)","ໂຮະອານ (1120–1124)","ເທັນຈິ (1124–1126)","ດາອິຈິ (1126–1131)","ເທັນໂຊະ (1131–1132)","ໂຊະໂຊະ (1132–1135)","ໂຮເອັນ (1135–1141)","ເອຈິ (1141–1142)","ໂກະຈິ (1142–1144)","ເທັນໂຢະ (1144–1145)","ຄິວອານ (1145–1151)","ນິນເປ (1151–1154)","ຄິວຈຸ (1154–1156)","ໂຮເຄັນ (1156–1159)","ເຮຈິ (1159–1160)","ເອເຣຢະກຸ (1160–1161)","ໂອໂຊ (1161–1163)","ໂຊະການ (1163–1165)","ເອມານ (1165–1166)","ນິນ-ອານ (1166–1169)","ກະໂອ (1169–1171)","ໂຊະອານ (1171–1175)","ອານເຄັນ (1175–1177)","ຈິໂຊະ (1177–1181)","ໂຢະວະ (1181–1182)","ຈຸເອະ (1182–1184)","ເຄັນເຣຢຸກິ (1184–1185)","ບັນຈິ (1185–1190)","ເກັນຄິວ (1190–1199)","ໂຊຈິ (1199–1201)","ເກັນນິນ (1201–1204)","ເຄັນກິວ (1204–1206)","ເກັນ-ເອະ (1206–1207)","ໂຊະເຄັນ (1207–1211)","ເກັນເຣຢະກຸ (1211–1213)","ເກັນໂປະ (1213–1219)","ໂຊະກິວ (1219–1222)","ໂຈະໂອະ (1222–1224)","ເຄັນນິນ (1224–1225)","ກາໂຮກຸ (1225–1227)","ອານເຕະ (1227–1229)","ການກິ (1229–1232)","ໂຈະເອະ (1232–1233)","ເທັມປຸກຸ (1233–1234)","ບັນເຣຢະກຸ (1234–1235)","ກາເຕະ (1235–1238)","ເຣຢະກຸນິນ (1238–1239)","ເອັນ-ໂອ (1239–1240)","ນິນຈີ (1240–1243)","ຄານເຈນ (1243–1247)","ໂຫຈີ (1247–1249)","ເຄນໂຊ (1249–1256)","ໂຄເຈນ (1256–1257)","ໂຊກາ (1257–1259)","ໂຊເກນ (1259–1260)","ບຸນ-ໂອ (1260–1261)","ໂຄໂຊ (1261–1264)","ບຸນ-ອີ (1264–1275)","ເຄນຈີ (1275–1278)","ເຄິນ (1278–1288)","ໂຊ (1288–1293)","ອິນນິນ (1293–1299)","ເຊີນ (1299–1302)","ເຄນເຈນ (1302–1303)","ຄາເຈນ (1303–1306)","ໂຕກູຈິ (1306–1308)","ອິນກິ (1308–1311)","ໂອໂຊ (1300–1312)","ໂຊວາ (1312–1317)","ບຸນໂປ (1317–1319)","ຈີໂນ (1319–1321)","ເຈນກຽວ (1321–1324)","ໂຊຊິ (1324–1326)","ຄາຣາກິ (1326–1329)","ເຈນໂຕກູ (1329–1331)","ເຈນໂກ (1331–1334)","ເກັມມຸ (1334–1336)","ເອັນເຈັນ (1336–1340)","ໂກໂກກຸ (1340–1346)","ໂຊຊິ (1346–1370)","ເຄນໂຕກຸ (1370–1372)","ບຸນຊຸ (1372–1375)","ເທັນຈຸ (1375–1379)","ຄໍຢາກຸ (1379–1381)","ໂກວາ (1381–1384)","ເຈັນຊຸ (1384–1392)","ມີໂຕກຸ (1384–1387)","ກາກິ (1387–1389)","ຄູ (1389–1390)","ມິໂຕກຸ (1390–1394)","ໂອອິ (1394–1428)","ໂຊໂຊ (1428–1429)","ອິກຽວ (1429–1441)","ກາກິຊຸ (1441–1444)","ບຸນ-ອານ (1444–1449)","ໂຫໂຕກຸ (1449–1452)","ກຽວໂຕກຸ (1452–1455)","ເກໂຊ (1455–1457)","ໂຊໂຣກຸ (1457–1460)","ຄານໂຊ (1460–1466)","ບຸນໂຊ (1466–1467)","ໂອນິນ (1467–1469)","ບຸນມິ (1469–1487)","ໂຊກຽວ (1487–1489)","ເອັນໂຕກຸ (1489–1492)","ມິໂອ (1492–1501)","ບຸນກິ (1501–1504)","ອິໂຊ (1504–1521)","ໄຕອິ (1521–1528)","ກຽວໂຣກຸ (1528–1532)","ເທັນມອນ (1532–1555)","ໂກຈິ (1555–1558)","ອິໂຣກຸ (1558–1570)","ເຈັນກິ (1570–1573)","ເທັນໂຊ (1573–1592)","ບຸນໂຣກຸ (1592–1596)","ຄິໂຊ (1596–1615)","ເກັນວາ (1615–1624)","ຄານ-ອິ (1624–1644)","ໂຊໂຊ (1644–1648)","ຄຽນ (1648–1652)","ຊຸ (1652–1655)","ເມຍຢາກຸ (1655–1658)","ແມນຈິ (1658–1661)","ການບຸນ (1661–1673)","ເອັນໂປ (1673–1681)","ເທັນວາ (1681–1684)","ໂຈກຽວ (1684–1688)","ເຈັນໂຣກຸ (1688–1704)","ໂຫອິ (1704–1711)","ຊຸຕຸກຸ (1711–1716)","ກຽວຫຸ (1716–1736)","ເຈັນບຸນ (1736–1741)","ຄານໂປ (1741–1744)","ເອັນກຽວ (1744–1748)","ຄານ-ອິນ (1748–1751)","ໂຫຢາກຸ (1751–1764)","ເມຍວາ (1764–1772)","ເອັນ-ອິ (1772–1781)","ເທັນມິ (1781–1789)","ຄານຊິ (1789–1801)","ກຽວວາ (1801–1804)","ບຸນກາ (1804–1818)","ບຸນຊິ (1818–1830)","ເທັນໂປ (1830–1844)","ກຸກາ (1844–1848)","ກາອິ (1848–1854)","ແອັນຊິ (1854–1860)","ແມັນ-ເອັນ (1860–1861)","ບຸນກຸ (1861–1864)","ເຈນຈີ (1864–1865)","ຄີໂອ (1865–1868)","ມີຈີ","ໄຕໂຊ","ໂຊວາ","ຮີຊີ","ຟາຣວາດິນ","ອໍຣດີບີເຫຣດ","ຄໍຣເດດ","ແຕຣ","ມໍຣເດດ","ຊາຣຫິວາ","ເມີ","ອາບານ","ອາຊາ","ດີຣ","ບຣາມານ","ເອສຟານ","ຟຣາວາດິນ","ອາຊາຣ","ບຣາແມນ","ປີເປີເຊຍ","ກ່ອນ R.O.C.","ບໍ່​ແມ່ນ​ໂຕ​ເລກ","₭","جانڤیە","فئڤریە","آڤریل","مئی","جوٙأن","جوٙلا","آگوست","سئپتامر","ئوکتوڤر","نوڤامر","دئسامر","dd","hh:mm a, E","HH:mm, E","hh:mm:ss a, E","HH:mm:ss, E","y 'm'. G","y-MM G","y-MM-dd G","y-MM-dd G, E","y 'm'. G, LLLL","y 'm'. G MMMM d 'd'.","y 'm'. G MMMM d 'd'., E","hh:mm:ss a; v","HH:mm:ss; v","hh:mm a; v","HH:mm; v","MMMM d 'd'.","MMMM d 'd'., E","y 'm'. LLLL","y 'm'. MMMM d 'd'.","y 'm'. MMMM d 'd'., E","y 'm'. MMMM d 'd'., EEEE","saus.","vas.","kov.","bal.","geg.","birž.","liep.","rugp.","rugs.","spal.","lapkr.","gruod.","sausio","vasario","kovo","balandžio","gegužės","birželio","liepos","rugpjūčio","rugsėjo","spalio","lapkričio","gruodžio","Š","sk","pr","an","tr","kt","pn","št","sekmadienis","pirmadienis","antradienis","trečiadienis","ketvirtadienis","penktadienis","šeštadienis","priešpiet","popiet","po Kr.","pr. m. e.","mūsų eroje","prieš Kristų","po Kristaus","prieš mūsų erą","Hakuči (650–671)","Hakuho (672–686)","Šučo (686–701)","Taiho (701–704)","Vado (708–715)","Joro (717–724)","Tempio (729–749)","Tempio-kampo (749–749)","Tempio-šoho (749–757)","Tempio-hodzi (757–765)","Tempo-dzingo (765–767)","Dzingo-keiun (767–770)","Hoki (770–780)","Ten-o (781–782)","Enrjaku (782–806)","Daido (806–810)","Konin (810–824)","Tenčo (824–834)","Šova (834–848)","Kajo (848–851)","Tenan (857–859)","Jogan (859–877)","Ninja (885–889)","Kampjo (889–898)","Šotai (898–901)","Enčo (923–931)","Šohei (931–938)","Tengjo (938–947)","Tenriaku (947–957)","Ova (961–964)","Koho (964–968)","Ana (968–970)","Ten-en (973–976)","Jogen (976–978)","Kana (985–987)","Ei-en (987–989)","Šorjaku (990–995)","Čotoku (995–999)","Čoho (999–1004)","Kanko (1004–1012)","Čova (1012–1017)","Kanin (1017–1021)","Džian (1021–1024)","Mandžiu (1024–1028)","Čogen (1028–1037)","Čorjaku (1037–1040)","Čokju (1040–1044)","Eišo (1046–1053)","Kohei (1058–1065)","Džirjaku (1065–1069)","Enkju (1069–1074)","Šoho (1074–1077)","Šorjaku (1077–1081)","Eiho (1081–084)","Otoku (1084–1087)","Kandži (1087–1094)","Eičo (1096–1097)","Šotoku (1097–1099)","Kova (1099–1104)","Čodži (1104–1106)","Kašo (1106–1108)","Tenin (1108–1110)","Ten-ei (1110–1113)","Eikju (1113–1118)","Gen-ei (1118–1120)","Tendži (1124–1126)","Daidži (1126–1131)","Tenšo (1131–1132)","Čošo (1132–1135)","Eidži (1141–1142)","Kodži (1142–1144)","Tenjo (1144–1145)","Kjuan (1145–1151)","Kjuju (1154–1156)","Heidži (1159–1160)","Eirjaku (1160–1161)","Oho (1161–1163)","Čokan (1163–1165)","Nin-an (1166–1169)","Kao (1169–1171)","Šoan (1171–1175)","Džišo (1177–1181)","Jova (1181–1182)","Džuei (1182–1184)","Genrjuku (1184–1185)","Bundži (1185–1190)","Kenkju (1190–1199)","Šodži (1199–1201)","Kenin (1201–1204)","Genkju (1204–1206)","Ken-ei (1206–1207)","Šogen (1207–1211)","Kenrjaku (1211–1213)","Kenpo (1213–1219)","Šokju (1219–1222)","Džu (1222–1224)","Genin (1224–1225)","Džoei (1232–1233)","Bunrjaku (1234–1235)","Rjakunin (1238–1239)","En-o (1239–1240)","Nindži (1240–1243)","Hodži (1247–1249)","Kenčo (1249–1256)","Kogen (1256–1257)","Šoka (1257–1259)","Šogen (1259–1260)","Bun-o (1260–1261)","Kočo (1261–1264)","Bun-ei (1264–1275)","Kendži (1275–1278)","Koan (1278–1288)","Šu (1288–1293)","Šoan (1299–1302)","Tokudži (1306–1308)","Očo (1311–1312)","Šova (1312–1317)","Bunpo (1317–1319)","Dženo (1319–1321)","Dženkjo (1321–1324)","Šoču (1324–1326)","Genko (1331–1334)","Kemu (1334–1336)","Kokoku (1340–1346)","Šohei (1346–1370)","Bunču (1372–1375)","Tendžu (1375–1379)","Korjaku (1379–1381)","Kova (1381–1384)","Genču (1384–1392)","Ku (1389–1390)","Oei (1394–1428)","Šočo (1428–1429)","Eikjo (1429–1441)","Bun-an (1444–1449)","Hotoku (1449–1452)","Kjotoku (1452–1455)","Košo (1455–1457)","Čoroku (1457–1460)","Kanšo (1460–1466)","Bunšo (1466–1467)","Onin (1467–1469)","Čokjo (1487–1489)","Meio (1492–1501)","Eišo (1504–1521)","Kjoroku (1528–1532)","Kodži (1555–1558)","Tenšo (1573–1592)","Keičo (1596–1615)","Genva (1615–1624)","Kan-ei (1624–1644)","Šoho (1644–1648)","Šu (1652–1655)","Meirjaku (1655–1658)","Mandži (1658–1661)","Enpo (1673–1681)","Tenva (1681–1684)","Džokjo (1684–1688)","Hoei (1704–1711)","Šotoku (1711–1716)","Kjoho (1716–1736)","Kanpo (1741–1744)","Enkjo (1744–1748)","Kan-en (1748–1751)","Horjaku (1751–1764)","Meiva (1764–1772)","An-ei (1772–1781)","Kjova (1801–1804)","Tenpo (1830–1844)","Koka (1844–1848)","Man-en (1860–1861)","Bunkju (1861–1864)","Gendži (1864–1865)","Keiko (1865–1868)","Meidži","Taišo","Šova","Prieš R.O.C.","Cio","Lus","Muu","Lum","Luf","Kab","Lush","Lut","Cis","Ciongo","Lùishi","Lusòlo","Mùuyà","Lumùngùlù","Lufuimi","Kabàlàshìpù","Lùshìkà","Lutongolo","Lungùdi","Kaswèkèsè","Ciswà","Nko","Ndy","Ndg","Njw","Ngv","Lub","Lumingu","Nkodya","Ndàayà","Ndangù","Njòwa","Ngòvya","Lubingu","Dinda","Dilolo","kmp. Y.K.","kny. Y. K.","Kumpala kwa Yezu Kli","Kunyima kwa Yezu Kli","DAC","DAR","DAD","DAN","DAH","DAU","DAO","DAB","DOC","DAP","DGI","DAG","Dwe mar Achiel","Dwe mar Ariyo","Dwe mar Adek","Dwe mar Ang’wen","Dwe mar Abich","Dwe mar Auchiel","Dwe mar Abiriyo","Dwe mar Aboro","Dwe mar Ochiko","Dwe mar Apar","Dwe mar gi achiel","Dwe mar Apar gi ariyo","JMP","WUT","TAR","TAD","TAN","TAB","NGS","Jumapil","Wuok Tich","Tich Ariyo","Tich Adek","Tich Ang’wen","Tich Abich","Ngeso","OD","OT","Kapok Kristo obiro","Ka Kristo osebiro","J2","J3","J4","J5","Ij","J1","Jumapiri","Murwa wa Kanne","Murwa wa Katano","Imberi ya Kuuza Kwa","Muhiga Kuvita Kuuza","{currency}{minusSign} {number}","G y. 'g'.","G y. 'g'. MMM","G y. 'g'. d. MMM","E, G y. 'g'. d. MMM","y. 'g'.","d.M.y.","E, d.M.y.","y. 'g'. MMM","y. 'g'. d. MMM","E, y. 'g'. d. MMM","y. 'g'. MMMM","y. 'g'. QQQ","y. 'g'. QQQQ","EEEE, y. 'gada' d. MMMM","y. 'gada' d. MMMM","y. 'gada' d. MMM","maijs","jūn.","jūl.","janvāris","februāris","aprīlis","jūnijs","jūlijs","augusts","septembris","oktobris","novembris","decembris","Sv","Pr","Ot","Tr","Ce","Pk","svētdiena","pirmdiena","otrdiena","trešdiena","ceturtdiena","piektdiena","sestdiena","priekšpusdienā","pēcpusdienā","p.m.ē.","m.ē.","pirms mūsu ēras","mūsu ērā","tišri","hešvans","kisļevs","tevets","ševats","1. adars","adars","nisans","ijars","sivans","tamuzs","avs","eluls","2. adars","muharams","safars","1. rabī","2. rabī","1. džumādā","2. džumādā","radžabs","šabans","ramadāns","šauvals","du al-kidā","du al-hidžā","nav skaitlis","Ls","Dal","Ará","Ɔɛn","Doy","Lép","Rok","Sás","Bɔ́r","Kús","Gís","Shʉ́","Ntʉ́","Oladalʉ́","Arát","Ɔɛnɨ́ɔɨŋɔk","Olodoyíóríê inkókúâ","Oloilépūnyīē inkókúâ","Kújúɔrɔk","Mórusásin","Ɔlɔ́ɨ́bɔ́rárɛ","Kúshîn","Olgísan","Pʉshʉ́ka","Ntʉ́ŋʉ́s","Jumapílí","Jumane","Jumatánɔ","Alaámisi","Jumáa","Jumamósi","Ɛnkakɛnyá","Ɛndámâ","EY","Meínō Yɛ́sʉ","Eínō Yɛ́sʉ","JAN","FEB","MAC","ĨPU","MĨĨ","NJU","NJR","AGA","SPT","NOV","DEC","Januarĩ","Feburuarĩ","Ĩpurũ","Mĩĩ","Njuni","Njuraĩ","Agasti","Oktũba","Dicemba","KIU","MRA","WAI","WET","WEN","JUM","Muramuko","Wairi","Wethatu","Wena","Wetano","RŨ","ŨG","NK","Mbere ya Kristũ","Nyuma ya Kristũ","avr","zin","zil","zanvie","fevriye","zilye","septam","oktob","novam","desam","dim","lin","ze","van","dimans","lindi","merkredi","zedi","vandredi","samdi","av. Z-K","ap. Z-K","avan Zezi-Krist","apre Zezi-Krist","Mey","Jon","Jol","Aog","Janoary","Febroary","Martsa","Aprily","Jona","Jolay","Aogositra","Septambra","Oktobra","Novambra","Desambra","Alah","Alats","Alar","Alak","Zom","Asab","Alahady","Alatsinainy","Alarobia","Alakamisy","Zoma","Asabotsy","Alohan’i JK","Aorian’i JK","Kwa","Una","Rar","Che","Moc","Moj","Yel","Mweri wo kwanza","Mweri wo unayeli","Mweri wo uneraru","Mweri wo unecheshe","Mweri wo unethanu","Mweri wo thanu na mocha","Mweri wo saba","Mweri wo nane","Mweri wo tisa","Mweri wo kumi","Mweri wo kumi na moja","Mweri wo kumi na yel’li","Sabato","Arahamisi","wichishu","mchochil’l","HY","YY","Hinapiya yesu","Yopia yesu","MTn","M1","A2","M3","N4","F5","I6","A7","I8","K9","mbegtug","imeg àbùbì","imeg mbəŋchubi","iməg ngwə̀t","iməg fog","iməg ichiibɔd","iməg àdùmbə̀ŋ","iməg ichika","iməg kud","iməg tèsiʼe","iməg zò","iməg krizmed","iməg mbegtug","A1","A3","A4","A5","A6","Aneg 1","Aneg 2","Aneg 3","Aneg 4","Aneg 5","Aneg 6","Aneg 7","dd.M","MMM y 'г'.","d MMM y 'г'.","E, d MMM y 'г'.","dd.M.y","dd.M.yy","јан.","јун.","јул.","септ.","ноем.","јануари","нед.","пон.","вт.","сре.","чет.","пет.","саб.","недела","среда","четврток","петок","сабота","претпладне","попладне","пр. н.е.","пред нашата ера","од нашата ера","ден","MMMM d, E","d-M-y, E","y, MMMM d, EEEE","y, MMMM d","y, MMM d","ജ","ഫ","മാ","ഏ","മെ","ജൂ","ഓ","സ","ഒ","ന","ഡി","ജനു","ഫെബ്രു","മാർ","ഏപ്രി","മേയ്","ജൂൺ","ജൂലൈ","ഓഗ","സെപ്റ്റം","ഒക്ടോ","നവം","ഡിസം","ജനുവരി","ഫെബ്രുവരി","മാർച്ച്","ഏപ്രിൽ","ഓഗസ്റ്റ്","സെപ്റ്റംബർ","ഒക്‌ടോബർ","നവംബർ","ഡിസംബർ","ഞ","തി","ചൊ","ബു","വ്യാ","വെ","ശ","ഞായർ","തിങ്കൾ","ചൊവ്വ","ബുധൻ","വ്യാഴം","വെള്ളി","ശനി","ഞായറാഴ്‌ച","തിങ്കളാഴ്‌ച","ചൊവ്വാഴ്ച","ബുധനാഴ്‌ച","വ്യാഴാഴ്‌ച","വെള്ളിയാഴ്‌ച","ശനിയാഴ്‌ച","ക്രി.മു.","എഡി","ബിസിഇ","സിഇ","ക്രിസ്‌തുവിന് മുമ്പ്","ആന്നോ ഡൊമിനി","ബി.സി.ഇ.","സി.ഇ.","ചൈ","വൈ","ജ്യേ","ആ","ശ്രാ","ഭാ","കാ","പൗ","ചൈത്രം","വൈശാഖം","ജ്യേഷ്ഠം","ആഷാഢം","ശ്രാവണം","ഭാദ്രപാദം","ആശ്വിനം","കാർത്തികം","മാർഗശീർഷം","പൗഷം","മാഘം","ഫൽഗുനം","ശക","മു","റ","ദു","മുഹറം","സഫർ","റബീഹുൽ അവ്വൽ","റബീഹുൽ ആഖിർ","ജമാദുൽ അവ്വൽ","ജമാദുൽ ആഖിർ","റജബ്","ശഹബാൻ","റമളാൻ","ശവ്വാൽ","ദുൽ ഖഹദ്","ദുൽ ഹിജ്ജ","ഹിജറ","സംഖ്യയല്ല","dd E","E, G y MMM d","E MMM d","E, y MMM d","y 'оны' QQQQ","EEEE, y 'оны' MM 'сарын' d","y 'оны' MM 'сарын' d","1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар","Нэгдүгээр сар","Хоёрдугаар сар","Гуравдугаар сар","Дөрөвдүгээр сар","Тавдугаар сар","Зургадугаар сар","Долдугаар сар","Наймдугаар сар","Есдүгээр сар","Аравдугаар сар","Арван нэгдүгээр сар","Арван хоёрдугаар сар","Ня","Да","Мя","Лх","Пү","Ба","Бя","ням","даваа","мягмар","лхагва","пүрэв","баасан","бямба","ҮӨ","ҮХ","МЭӨ","МЭ","НТӨ","НТ","м.э.ө","м.э.","манай эриний өмнөх","манай эриний","₮","{1} रोजी {0}","E, d, MMM y","जा","ऑ","नो","डि","जाने","फेब्रु","एप्रि","ऑग","सप्टें","ऑक्टो","नोव्हें","डिसें","ऑगस्ट","सप्टेंबर","ऑक्टोबर","मंगळवार","म.उ.","इ. स. पू.","इ. स.","ईसापूर्व युग","ख्रि. यु.","ईसवीसनपूर्व","ईसवीसन","ख्रिस्तयुग","deva","Ogo","Ogos","Disember","Ahd","Isn","Kha","Ahad","Isnin","Khamis","Jumaat","PG","PTG","Jn","Fb","Ap","Jl","Og","Sp","Nv","Ds","S.M.","TM","EEEE, d 'ta'’ MMMM y","d 'ta'’ MMMM y","Ġ","Fra","Mej","Ġun","Lul","Aww","Ott","Diċ","Jannar","Frar","Marzu","Mejju","Ġunju","Lulju","Awwissu","Settembru","Ottubru","Novembru","Diċembru","Ħ","Ħad","Tne","Tli","Erb","Ħam","Ġim","Il-Ħadd","It-Tnejn","It-Tlieta","L-Erbgħa","Il-Ħamis","Il-Ġimgħa","Is-Sibt","QK","WK","QEK","Qabel Kristu","Wara Kristu","FLO","CLA","CKI","FMF","MAD","MBI","MLI","MAM","FDE","FMU","FGW","FYU","Fĩi Loo","Cokcwaklaŋne","Cokcwaklii","Fĩi Marfoo","Madǝǝuutǝbijaŋ","Mamǝŋgwãafahbii","Mamǝŋgwãalii","Madǝmbii","Fĩi Dǝɓlii","Fĩi Mundaŋ","Fĩi Gwahlle","Fĩi Yuru","Cya","Cla","Czi","Cko","Cka","Cga","Cze","Com’yakke","Comlaaɗii","Comzyiiɗii","Comkolle","Comkaldǝɓlii","Comgaisuu","Comzyeɓsuu","comme","lilli","PK","KǝPel Kristu","Pel Kristu","{1}မှာ {0}","E၊ d","E၊ G d MMM y","E၊ d/M","E၊ d MMM","E၊ d MMMM","E၊ d-M-y","E၊ d MMM y","EEEE၊ dd MMMM y","ဇ","ဖ","မ","ဧ","ဩ","စ","အ","န","ဒ","ဇန်","ဖေ","မတ်","ဧပြီ","မေ","ဇွန်","ဇူ","စက်","အောက်","နို","ဒီ","ဇန်နဝါရီ","ဖေဖော်ဝါရီ","ဇူလိုင်","ဩဂုတ်","စက်တင်ဘာ","အောက်တိုဘာ","နိုဝင်ဘာ","ဒီဇင်ဘာ","တ","ဗ","က","သ","တနင်္ဂနွေ","တနင်္လာ","အင်္ဂါ","ဗုဒ္ဓဟူး","ကြာသပတေး","သောကြာ","စနေ","နံနက်","ညနေ","ဘီစီ","အေဒီ","ဘီစီအီး","စီအီး","ခရစ်တော် မပေါ်မီကာလ","ခရစ်တော် ပေါ်ထွန်းပြီးကာလ","mymr","ဂဏန်းမဟုတ်သော","စီအာစီ","ژانویه","فوریه","مه","ژوئیه","پ.م","پ.م.","قبل میلاد","بعد میلاد","قبل میلادی تقویم","ǃKhanni","ǃKhanǀgôab","ǀKhuuǁkhâb","ǃHôaǂkhaib","ǃKhaitsâb","Gamaǀaeb","ǂKhoesaob","Aoǁkhuumûǁkhâb","Taraǀkhuumûǁkhâb","ǂNûǁnâiseb","ǀHooǂgaeb","Hôasoreǁkhâb","Son","Wu","Do","Fr","Sontaxtsees","Mantaxtsees","Denstaxtsees","Wunstaxtsees","Dondertaxtsees","Fraitaxtsees","Satertaxtsees","ǁgoagas","ǃuias","Xristub aiǃâ","Xristub khaoǃgâ","E d.M","E d.MM.y","tout","baba","hator","kiahk","toba","amshir","baramhat","baramouda","bashans","paona","epep","mesra","nasie","TA0","TA1","0. t.a.","1. t.a.","0. tidsalder","1. tidsalder","meskerem","tekemt","hedar","tahsas","yekatit","megabit","miazia","genbot","sene","hamle","nehasse","pagumen","fvt.","vt.","evt.","før Kristus","etter Kristus","før vår tidsregning","etter vår tidsregning","tishri","heshvan","kislev","tevet","shevat","adar I","adar","nisan","iyar","sivan","tamuz","av","elul","adar II","chaitra","vaisakha","jyaistha","asadha","sravana","bhadra","asvina","kartika","agrahayana","pausa","magha","phalguna","saka","muh.","rab. I","rab. II","jum. I","jum. II","sha.","shaw.","dhuʻl-q.","dhuʻl-h.","rabiʻ I","rabiʻ II","jumada I","jumada II","shaʻban","shawwal","dhuʻl-qiʻdah","dhuʻl-hijjah","farvardin","ordibehesht","khordad","tir","mordad","shahrivar","mehr","aban","azar","dey","bahman","esfand","Zib","Nhlo","Mbi","Mab","Nkw","Nhla","Ntu","Ncw","Mpan","Lwe","Mpal","Zibandlela","Nhlolanja","Mbimbitho","Mabasa","Nkwenkwezi","Nhlangula","Ntulikazi","Ncwabakazi","Mpandula","Mfumfu","Lwezi","Mpalakazi","Mvu","Sin","Sih","Mgq","Sonto","Mvulo","Sibili","Sithathu","Sine","Sihlanu","Mgqibelo","UKristo angakabuyi","Ukristo ebuyile","१","२","३","४","५","६","७","८","९","१०","११","१२","फेब्रुअरी","अप्रिल","अगस्ट","सेप्टेम्बर","अक्टोबर","नोभेम्बर","डिसेम्बर","आइत","मङ्गल","बिही","आइतबार","सोमबार","मङ्गलबार","बुधबार","बिहिबार","शुक्रबार","शनिबार","ईसा पूर्व","सन्","इस्वीपूर्व","सिइ","जेठ","असार","साउन","भदौ","असोज","कात्तिक","मङसिर","पुस","चैत","नेरू","mei","zo","do","vr","za","zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag","mnd 1","mnd 2","mnd 3","mnd 4","mnd 5","mnd 6","mnd 7","mnd 8","mnd 9","mnd 10","mnd 11","mnd 12","maand 1","maand 2","maand 3","maand 4","maand 5","maand 6","maand 7","maand 8","maand 9","maand 10","maand 11","maand 12","vgj","v.Chr.","n.Chr.","vóór gewone jaartelling","gewone jaartelling","voor R.O.C.","ng1","ng2","ng3","ng4","ng5","ng6","ng7","ng8","ng9","ng10","ng11","kris","ngwɛn matáhra","ngwɛn ńmba","ngwɛn ńlal","ngwɛn ńna","ngwɛn ńtan","ngwɛn ńtuó","ngwɛn hɛmbuɛrí","ngwɛn lɔmbi","ngwɛn rɛbvuâ","ngwɛn wum","ngwɛn wum navǔr","krísimin","mbs","sas","mɔ́ndɔ","sɔ́ndɔ mafú mába","sɔ́ndɔ mafú málal","sɔ́ndɔ mafú mána","mabágá má sukul","sásadi","maná","kugú","BL","PB","Bó Lahlɛ̄","Pfiɛ Burī","M y","'kl'. HH:mm:ss zzzz","sø.","må.","ty.","on.","to.","fr.","la.","måndag","tysdag","laurdag","formiddag","ettermiddag","{1},{0}","E , 'lyɛ'̌ʼ d 'na' M, y","'lyɛ'̌ʼ d 'na' MMMM, y","E , 'lyɛ'̌ʼ d 'na' MMM, y","EEEE , 'lyɛ'̌ʼ d 'na' MMMM, y","saŋ tsetsɛ̀ɛ lùm","saŋ kàg ngwóŋ","saŋ lepyè shúm","saŋ cÿó","saŋ tsɛ̀ɛ cÿó","saŋ njÿoláʼ","saŋ tyɛ̀b tyɛ̀b mbʉ̀ŋ","saŋ mbʉ̀ŋ","saŋ ngwɔ̀ʼ mbÿɛ","saŋ tàŋa tsetsáʼ","saŋ mejwoŋó","saŋ lùm","lyɛʼɛ́ sẅíŋtè","mvfò lyɛ̌ʼ","mbɔ́ɔntè mvfò lyɛ̌ʼ","tsètsɛ̀ɛ lyɛ̌ʼ","mbɔ́ɔntè tsetsɛ̀ɛ lyɛ̌ʼ","mvfò màga lyɛ̌ʼ","màga lyɛ̌ʼ","mbaʼámbaʼ","ncwònzém","m.z.Y.","m.g.n.Y.","mé zyé Yěsô","mé gÿo ńzyé Yěsô","E، d-M","E، d/M/y","E، d MMM y","zzzz h:mm:ss a","z h:mm:ss a","Tiop","Pɛt","Duɔ̱ɔ̱","Guak","Duä","Kor","Pay","Thoo","Tɛɛ","Laa","Kur","Tid","Tiop thar pɛt","Duɔ̱ɔ̱ŋ","Duät","Kornyoot","Pay yie̱tni","Tho̱o̱r","Tɛɛr","Laath","Tio̱p in di̱i̱t","Ŋ","Cäŋ","Jiec","Rɛw","Diɔ̱k","Ŋuaan","Dhieec","Bäkɛl","Cäŋ kuɔth","Jiec la̱t","Rɛw lätni","Diɔ̱k lätni","Ŋuaan lätni","Dhieec lätni","Bäkɛl lätni","RW","TŊ","ƐY","A ka̱n Yecu ni dap","Ɛ ca Yecu dap","dd MMMM","Ama","Gur","Bit","Elb","Cam","Wax","Ado","Hag","Ful","Onk","Mud","Amajjii","Guraandhala","Bitooteessa","Elba","Caamsa","Waxabajjii","Adooleessa","Hagayya","Fuulbana","Onkololeessa","Sadaasa","Muddee","Dil","Wix","Qib","Rob","Dilbata","Wiixata","Qibxata","Roobii","Kamiisa","Jimaata","Sanbata","WD","WB","KD","KB","Br","d-M-yy","ଜା","ଫେ","ମା","ଅ","ମଇ","ଜୁ","ସେ","ନ","ଡି","ଜାନୁଆରୀ","ଫେବୃଆରୀ","ମାର୍ଚ୍ଚ","ଅପ୍ରେଲ","ଜୁନ","ଜୁଲାଇ","ଅଗଷ୍ଟ","ସେପ୍ଟେମ୍ବର","ଅକ୍ଟୋବର","ନଭେମ୍ବର","ଡିସେମ୍ବର","ର","ସୋ","ମ","ବୁ","ଗୁ","ଶୁ","ଶ","ରବି","ସୋମ","ମଙ୍ଗଳ","ବୁଧ","ଗୁରୁ","ଶୁକ୍ର","ଶନି","ରବିବାର","ସୋମବାର","ମଙ୍ଗଳବାର","ବୁଧବାର","ଗୁରୁବାର","ଶୁକ୍ରବାର","ଶନିବାର","ccc, d MMM","y-'ӕм' 'азы' QQQ","y-'ӕм' 'азы' QQQQ","EEEE, d MMMM, y 'аз'","d MMMM, y 'аз'","dd MMM y 'аз'","майы","июны","июлы","январы","февралы","мартъийы","апрелы","августы","сентябры","октябры","ноябры","декабры","Х","К","Ӕ","Ц","хцб","крс","дцг","ӕрт","цпр","мрб","сбт","хуыцаубон","къуырисӕр","дыццӕг","ӕртыццӕг","цыппӕрӕм","майрӕмбон","сабат","ӕмбисбоны размӕ","ӕмбисбоны фӕстӕ","н.д.а.","н.д.","НН","E d MMM, G y","E, dd-MM.","ਜ","ਫ਼","ਮਾ","ਅ","ਮ","ਜੂ","ਜੁ","ਸ","ਨ","ਦ","ਜਨ","ਫ਼ਰ","ਮਾਰਚ","ਅਪ੍ਰੈ","ਮਈ","ਜੂਨ","ਜੁਲਾ","ਅਗ","ਸਤੰ","ਅਕਤੂ","ਨਵੰ","ਦਸੰ","ਜਨਵਰੀ","ਫ਼ਰਵਰੀ","ਅਪ੍ਰੈਲ","ਜੁਲਾਈ","ਅਗਸਤ","ਸਤੰਬਰ","ਅਕਤੂਬਰ","ਨਵੰਬਰ","ਦਸੰਬਰ","ਐ","ਸੋ","ਮੰ","ਬੁੱ","ਵੀ","ਸ਼ੁੱ","ਸ਼","ਐਤ","ਸੋਮ","ਮੰਗਲ","ਬੁੱਧ","ਵੀਰ","ਸ਼ੁੱਕਰ","ਸ਼ਨਿੱਚਰ","ਐਤਵਾਰ","ਸੋਮਵਾਰ","ਮੰਗਲਵਾਰ","ਬੁੱਧਵਾਰ","ਵੀਰਵਾਰ","ਸ਼ੁੱਕਰਵਾਰ","ਸ਼ਨਿੱਚਰਵਾਰ","ਪੂ.ਦੁ.","ਬਾ.ਦੁ.","ਈ. ਪੂ.","ਸੰਨ","ਈ. ਪੂ. ਸੰ.","ਈ. ਸੰ.","ਈਸਵੀ ਪੂਰਵ","ਈਸਵੀ ਸੰਨ","ਈਸਵੀ ਪੂਰਵ ਯੁੱਗ","ਈਸਵੀ ਯੁੱਗ","੧","੨","੩","੪","੫","੬","੭","੮","੯","੧੦","੧੧","੧੨","ਚੇਤ","ਵੈਸਾਖ","ਜੇਠ","ਹਾੜ","ਸਾਉਣ","ਭਾਦੋਂ","ਅੱਸੂ","ਕੱਤਕ","ਮੱਘਰ","ਪੋਹ","ਮਾਘ","ਫੱਗਣ","ਸਾਕਾ","فروری","مئ","جولائی","اتوار","پیر","منگل","بُدھ","جمعرات","جمعہ","ہفتہ","ايساپورو","سں","d.MM.y G","d MMMM y G","E, d MMMM y G","d.MM.y","E, d.MM.y","E, d MMMM y","sty","lut","kwi","cze","sie","wrz","paź","gru","stycznia","lutego","marca","kwietnia","czerwca","lipca","sierpnia","września","października","grudnia","Ś","niedz.","pon.","wt.","śr.","czw.","pt.","sob.","niedziela","poniedziałek","wtorek","środa","czwartek","piątek","p.n.e.","Tiszri","Cheszwan","Kislew","Tewet","Szwat","Siwan","Aw","Dżu. I","Dżu. II","Ra.","Sza.","Szaw.","Zu al-k.","Zu al-h.","Dżumada I","Dżumada II","Radżab","Szaban","Szawwal","Zu al-kada","Zu al-hidżdża","Farwardin","Ordibeheszt","Chordād","Mordād","Szahriwar","Ābān","Āsar","Déi","Przed ROC","ROC","EEEE د y د MMMM d","د y د MMMM d","جنوري","فبروري","اګست","غ.م.","غ.و.","وری","غویی","غبرگولی","چنگاښ","زمری","وږی","تله","لړم","لیندۍ","مرغومی","سلواغه","کب","E, d 'de' MMMM 'de' y","dez","janeiro","fevereiro","março","junho","julho","dezembro","seg","qua","qui","sex","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","Mês 1","Mês 2","Mês 3","Mês 4","Mês 5","Mês 6","Mês 7","Mês 8","Mês 9","Mês 10","Mês 11","Mês 12","depois de Cristo","antes da Era Comum","Era Comum","Antes de R.O.C.","Esc.","{1} 'às' {0}","E, d/MM","ccc, d 'de' MMMM","E, d/MM/y","EEEE, d/MM/y","ccc, d 'de' MMMM 'de' y","segunda","terça","quarta","quinta","sexta","da manhã","da tarde","M2","M4","M5","M6","M7","M8","M9","a.E.C.","E.C.","​PTE","Db","Qul","Hat","Pau","Ayr","Aym","Int","Ant","Qha","Uma","Aya","Kap","Qulla puquy","Hatun puquy","Pauqar waray","Ayriwa","Aymuray","Inti raymi","Anta Sitwa","Qhapaq Sitwa","Uma raymi","Kantaray","Ayamarqʼa","Kapaq Raymi","Dom","Mié","Jue","Vie","Domingo","Miércoles","Jueves","Viernes","Sábado","EEEE, 'ils' d 'da' MMMM y","d 'da' MMMM y","schan.","favr.","matg","zercl.","fan.","avust","sett.","schaner","favrer","avrigl","zercladur","fanadur","settember","october","du","gli","gie","dumengia","glindesdi","mesemna","gievgia","venderdi","sonda","sm","av. Cr.","s. Cr.","avant Cristus","suenter Cristus","Mut.","Gas.","Wer.","Mat.","Gic.","Kam.","Nya.","Kan.","Nze.","Ukw.","Ugu.","Uku.","Nzero","Ruhuhuma","Ntwarante","Ndamukiza","Rusama","Ruheshi","Mukakaro","Nyandagaro","Nyakanga","Gitugutu","Munyonyo","Kigarama","cu.","mbe.","kab.","gtu.","kan.","gnu.","gnd.","Ku w’indwi","Ku wa mbere","Ku wa kabiri","Ku wa gatatu","Ku wa kane","Ku wa gatanu","Ku wa gatandatu","Z.MU.","Z.MW.","Mb.Y.","Ny.Y","Mbere ya Yezu","Nyuma ya Yezu","ian.","iun.","iul.","ianuarie","februarie","martie","aprilie","iunie","iulie","septembrie","octombrie","noiembrie","decembrie","dum.","mie.","vin.","sâm.","duminică","luni","marți","miercuri","vineri","sâmbătă","e.b.","era budistă","î.Hr.","d.Hr.","î.e.n","e.n.","înainte de Hristos","după Hristos","înaintea erei noastre","era noastră","Tișrei","Heșvan","Șevat","Tammuz","Mi","Dum","Mie","Joi","Vin","Sâm","î.e.n.","Mweri wa kwanza","Mweri wa kaili","Mweri wa katatu","Mweri wa kaana","Mweri wa tanu","Mweri wa sita","Mweri wa saba","Mweri wa nane","Mweri wa tisa","Mweri wa ikumi","Mweri wa ikumi na moja","Mweri wa ikumi na mbili","Ijp","Ijt","Ijn","Ijtn","Ijumapili","Ijumatatu","Ijumanne","Ijumatano","Ijumamosi","kang’ama","kingoto","Kabla ya Mayesu","Baada ya Mayesu","ccc, d","d MMM y 'г'. G","E, d MMM y 'г'. G","ccc, d.MM.y 'г'.","LLL y 'г'.","LLLL y 'г'.","февр.","сент.","нояб.","января","февраля","марта","апреля","июня","июля","августа","сентября","октября","ноября","декабря","вс","воскресенье","понедельник","четверг","пятница","суббота","ДП","ПП","Тот","Бабэ","Хатур","Кихак","Тубэ","Бармуда","Башнас","Бауна","Абиб","Мисра","Якатит","Магабит","Миазия","Сэнэ","Хамлэ","Нахасэ","Эпагомен","до н.э.","до н. э.","н. э.","до Рождества Христова","от Рождества Христова","до нашей эры","нашей эры","Тишрей","Ияр","Таммуз","Элул","Чайтра","Ваисакха","Джанштха","Асадха","Бхадра","Азвина","Аграхайана","Магха","Пхалгуна","Мухаррам","Раби-уль-авваль","Раби-уль-ахир","Джумад-уль-авваль","Джумад-уль-ахир","Раджаб","Шаабан","Шавваль","Зуль-Каада","Зуль-Хиджжа","Эпоха Тайка (645–650)","Эпоха Хакути (650–671)","Эпоха Хакухо (672–686)","Эпоха Сючё (686–701)","Эпоха Тайхо (701–704)","Эпоха Кёюн (704–708)","Эпоха Вадо (708–715)","Эпоха Рэйки (715–717)","Эпоха Ёро (717–724)","Эпоха Дзинки (724–729)","Эпоха Темпьё (729–749)","Эпоха Темпьё (749–749)","Эпоха Темпьё-Сьохо (749-757)","Эпоха Темпьё-Ходзи (757-765)","Эпоха Темпьё-Ходзи (765-767)","Эпоха Джинго-Кёюн (767-770)","Эпоха Хоки (770–780)","Эпоха Теньё (781–782)","Эпоха Енряку (782–806)","Эпоха Дайдо (806–810)","Эпоха Конин (810–824)","Эпоха Тентьо (824–834)","Эпоха Шова (834–848)","Эпоха Кайо (848–851)","Эпоха Ниндзю (851–854)","Эпоха Сайко (854–857)","Эпоха Теннан (857–859)","Эпоха Йоган (859–877)","Эпоха Генкей (877–885)","Эпоха Нинна (885–889)","Эпоха Кампьё (889–898)","Эпоха Сьотай (898–901)","Эпоха Энги (901–923)","Эпоха Ентьо (923–931)","Эпоха Сьёхэй (931–938)","Эпоха Тенгьо (938–947)","Эпоха Тенрияку (947–957)","Эпоха Тентоку (957–961)","Эпоха Ова (961–964)","Эпоха Кохо (964–968)","Эпоха Анна (968–970)","Эпоха Тенроку (970–973)","Эпоха Теньен (973–976)","Эпоха Дзьоген (976–978)","Эпоха Тенген (978–983)","Эпоха Ейкан (983–985)","Эпоха Канна (985–987)","Эпоха Ейен (987–989)","Эпоха Ейсо (989–990)","Эпоха Сёряку (990–995)","Эпоха Тётоку (995–999)","Эпоха Тёхо (999–1004)","Эпоха Канко (1004–1012)","Эпоха Тёва (1012–1017)","Эпоха Каннин (1017–1021)","Эпоха Дзиан (1021–1024)","Эпоха Мандзю (1024–1028)","Эпоха Тёгэн (1028–1037)","Эпоха Тёряку (1037–1040)","Эпоха Тёкю (1040–1044)","Эпоха Катоку (1044–1046)","Эпоха Эйсо (1046–1053)","Эпоха Тэнги (1053–1058)","Эпоха Кохэй (1058–1065)","Эпоха Дзиряку (1065–1069)","Эпоха Энкю (1069–1074)","Эпоха Сёхо (1074–1077)","Эпоха Сёряку (1077–1081)","Эпоха Эйхо (1081–1084)","Эпоха Отоку (1084–1087)","Эпоха Кандзи (1087–1094)","Эпоха Кахо (1094–1096)","Эпоха Эйтё (1096–1097)","Эпоха Сётоку (1097–1099)","Эпоха Кова (1099–1104)","Эпоха Тёдзи (1104–1106)","Эпоха Касё (1106–1108)","Эпоха Тэннин (1108–1110)","Эпоха Тэнъэй (1110–1113)","Эпоха Эйкю (1113–1118)","Эпоха Гэнъэй (1118–1120)","Эпоха Хоан (1120–1124)","Эпоха Тэндзи (1124–1126)","Эпоха Дайдзи (1126–1131)","Эпоха Тэнсё (1131–1132)","Эпоха Тёсё (1132–1135)","Эпоха Хоэн (1135–1141)","Эпоха Эйдзи (1141–1142)","Эпоха Кодзи (1142–1144)","Эпоха Тэнё (1144–1145)","Эпоха Кюан (1145–1151)","Эпоха Нимпэй (1151–1154)","Эпоха Кюдзю (1154–1156)","Эпоха Хогэн (1156–1159)","Эпоха Хэйдзи (1159–1160)","Эпоха Эйряку (1160–1161)","Эпоха Охо (1161–1163)","Эпоха Тёкан (1163–1165)","Эпоха Эйман (1165–1166)","Эпоха Нинъан (1166–1169)","Эпоха Као (1169–1171)","Эпоха Сёан (1171–1175)","Эпоха Ангэн (1175–1177)","Эпоха Дзисё (1177–1181)","Эпоха Ёва (1181–1182)","Эпоха Дзюэй (1182–1184)","Эпоха Гэнрюку (1184–1185)","Эпоха Бундзи (1185–1190)","Эпоха Кэнкю (1190–1199)","Эпоха Сёдзи (1199–1201)","Эпоха Кэннин (1201–1204)","Эпоха Гэнкю (1204–1206)","Эпоха Кэнъэй (1206–1207)","Эпоха Сёгэн (1207–1211)","Эпоха Кэнряку (1211–1213)","Эпоха Кэмпо (1213–1219)","Эпоха Сёкю (1219–1222)","Эпоха Дзёо (1222–1224)","Эпоха Гэннин (1224–1225)","Эпоха Кароку (1225–1227)","Эпоха Антэй (1227–1229)","Эпоха Канки (1229–1232)","Эпоха Дзёэй (1232–1233)","Эпоха Тэмпуку (1233–1234)","Эпоха Бунряку (1234–1235)","Эпоха Катэй (1235–1238)","Эпоха Рякунин (1238–1239)","Эпоха Энъо (1239–1240)","Эпоха Ниндзи (1240–1243)","Эпоха Кангэн (1243–1247)","Эпоха Ходзи (1247–1249)","Эпоха Кэнтё (1249–1256)","Эпоха Когэн (1256–1257)","Эпоха Сёка (1257–1259)","Эпоха Сёгэн (1259–1260)","Эпоха Бунъо (1260–1261)","Эпоха Котё (1261–1264)","Эпоха Бунъэй (1264–1275)","Эпоха Кэндзи (1275–1278)","Эпоха Коан (1278–1288)","Эпоха Сёо (1288–1293)","Эпоха Эйнин (1293–1299)","Эпоха Сёан (1299–1302)","Эпоха Кэнгэн (1302–1303)","Эпоха Кагэн (1303–1306)","Эпоха Токудзи (1306–1308)","Эпоха Энкэй (1308–1311)","Эпоха Отё (1311–1312)","Эпоха Сёва (1312–1317)","Эпоха Бумпо (1317–1319)","Эпоха Гэно (1319–1321)","Эпоха Гэнкё (1321–1324)","Эпоха Сётю (1324–1326)","Эпоха Карэки (1326–1329)","Эпоха Гэнтоку (1329–1331)","Эпоха Гэнко (1331–1334)","Эпоха Кэмму (1334–1336)","Эпоха Энгэн (1336–1340)","Эпоха Кококу (1340–1346)","Эпоха Сёхэй (1346–1370)","Эпоха Кэнтоку (1370–1372)","Эпоха Бунтю (1372–1375)","Эпоха Иэндзю (1375–1379)","Эпоха Коряку (1379–1381)","Эпоха Кова (1381–1384)","Эпоха Гэнтю (1384–1392)","Эпоха Мэйтоку (1384–1387)","Эпоха Какэй (1387–1389)","Эпоха Коо (1389–1390)","Эпоха Мэйтоку (1390–1394)","Эпоха Оэй (1394–1428)","Эпоха Сётё (1428–1429)","Эпоха Эйкё (1429–1441)","Эпоха Какицу (1441–1444)","Эпоха Банъан (1444–1449)","Эпоха Хотоку (1449–1452)","Эпоха Кётоку (1452–1455)","Эпоха Косё (1455–1457)","Эпоха Тёроку (1457–1460)","Эпоха Кансё (1460–1466)","Эпоха Бунсё (1466–1467)","Эпоха Онин (1467–1469)","Эпоха Буммэй (1469–1487)","Эпоха Тёкё (1487–1489)","Эпоха Энтоку (1489–1492)","Эпоха Мэйо (1492–1501)","Эпоха Бунки (1501–1504)","Эпоха Эйсё (1504–1521)","Эпоха Тайэй (1521–1528)","Эпоха Кёроку (1528–1532)","Эпоха Тэммон (1532–1555)","Эпоха Кодзи (1555–1558)","Эпоха Эйроку (1558–1570)","Эпоха Гэнки (1570–1573)","Эпоха Тэнсё (1573–1592)","Эпоха Бунроку (1592–1596)","Эпоха Кэйтё (1596–1615)","Эпоха Гэнва (1615–1624)","Эпоха Канъэй (1624–1644)","Эпоха Сёхо (1644–1648)","Эпоха Кэйан (1648–1652)","Эпоха Сё (1652–1655)","Эпоха Мэйряку (1655–1658)","Эпоха Мандзи (1658–1661)","Эпоха Камбун (1661–1673)","Эпоха Эмпо (1673–1681)","Эпоха Тэнва (1681–1684)","Эпоха Дзёкё (1684–1688)","Эпоха Гэнроку (1688–1704)","Эпоха Хоэй (1704–1711)","Эпоха Сётоку (1711–1716)","Эпоха Кёхо (1716–1736)","Эпоха Гэмбун (1736–1741)","Эпоха Кампо (1741–1744)","Эпоха Энкё (1744–1748)","Эпоха Канъэн (1748–1751)","Эпоха Хоряку (1751–1764)","Эпоха Мэйва (1764–1772)","Эпоха Анъэй (1772–1781)","Эпоха Тэммэй (1781–1789)","Эпоха Кансэй (1789–1801)","Эпоха Кёва (1801–1804)","Эпоха Бунка (1804–1818)","Эпоха Бунсэй (1818–1830)","Эпоха Тэмпо (1830–1844)","Эпоха Кока (1844–1848)","Эпоха Каэй (1848–1854)","Эпоха Ансэй (1854–1860)","Эпоха Манъэн (1860–1861)","Эпоха Бункю (1861–1864)","Эпоха Гендзи (1864–1865)","Эпоха Кейо (1865–1868)","Эпоха Мэйдзи","Эпоха Тайсьо","Сьова","Эпоха Хэйсэй","Фарвардин","Хордад","Шахривер","Азер","Дей","Эсфанд","не число","ТМТ","₴","XXXX","mut.","gas.","wer.","mat.","gic.","kam.","nya.","nze.","ukw.","ugu.","uku.","Mutarama","Gashyantare","Werurwe","Mata","Gicuransi","Kamena","Kanama","Nzeli","Ukwakira","Ugushyingo","Ukuboza","cyu.","Ku cyumweru","Kuwa mbere","Kuwa kabiri","Kuwa gatatu","Kuwa kane","Kuwa gatanu","Kuwa gatandatu","y 'сыл' MMMM d 'күнэ', EEEE","yy/M/d","Ы","Тохс","Олун","Клн_ттр","Мус_уст","Ыам_йн","Бэс_йн","От_йн","Атрдь_йн","Блҕн_йн","Алт","Сэт","Ахс","Тохсунньу","Олунньу","Кулун тутар","Муус устар","Ыам ыйын","Бэс ыйын","От ыйын","Атырдьых ыйын","Балаҕан ыйын","Алтынньы","Сэтинньи","Ахсынньы","Ч","Бн","Оп","Сэ","Чп","Бэ","Баскыһыанньа","Бэнидиэлинньик","Оптуорунньук","Сэрэдэ","Чэппиэр","Бээтиҥсэ","Субуота","ЭИ","ЭК","б. э. и.","б. э","Obo","Waa","Oku","Ong","Ime","Ile","Sap","Isi","Saa","Tom","Tob","Tow","Lapa le obo","Lapa le waare","Lapa le okuni","Lapa le ong’wan","Lapa le imet","Lapa le ile","Lapa le sapa","Lapa le isiet","Lapa le saal","Lapa le tomon","Lapa le tomon obo","Lapa le tomon waare","Are","Kun","Mderot ee are","Mderot ee kuni","Mderot ee ong’wan","Mderot ee inet","Mderot ee ile","Mderot ee sapa","Mderot ee kwe","Tesiran","Teipa","Kabla ya Christo","Baada ya Christo","MMM d y","Mup","Mwi","Msh","Mun","Mag","Muj","Msp","Mpg","Mye","Mok","Mus","Muh","Mupalangulwa","Mwitope","Mushende","Munyi","Mushende Magali","Mujimbi","Mushipepo","Mupuguto","Munyense","Mokhu","Musongandembwe","Muhaano","Mulungu","Alahamisi","Lwamilawu","Pashamihe","Ashanali uKilisito","Pamwandi ya Kilisto","ođđj","guov","njuk","cuo","mies","geas","suoi","borg","čakč","golg","skáb","juov","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","sotn","vuos","maŋ","gask","duor","bear","láv","sotnabeaivi","vuossárga","maŋŋebárga","gaskavahkku","duorasdat","bearjadat","lávvardat","iđitbeaivet","eahketbeaivet","o.Kr.","m.Kr.","ovdal Kristtusa","maŋŋel Kristtusa","Dkr","Skr","Nkr","Janeiro","Fevreiro","Marco","Maio","Junho","Julho","Augusto","Setembro","Otubro","Novembro","Decembro","Pos","Pir","Nai","Sha","Dimingu","Chiposi","Chipiri","Chitatu","Chinai","Chishanu","Sabudu","AC","Antes de Cristo","Nye","Mbä","Bêl","Fön","Len","Kük","Ngb","Nab","Kak","Nyenye","Fulundïgi","Mbängü","Ngubùe","Bêläwü","Föndo","Lengua","Kükürü","Mvuka","Ngberere","Nabändüru","Kakauka","Bk1","Bk2","Bk3","Bk4","Bk5","Lâp","Lây","Bikua-ôko","Bïkua-ûse","Bïkua-ptâ","Bïkua-usïö","Bïkua-okü","Lâpôsö","Lâyenga","LK","KnK","NpK","Kôzo na Krîstu","Na pekô tî Krîstu","ⵉ","ⴱ","ⵎ","ⵢ","ⵖ","ⵛ","ⴽ","ⵏ","ⴷ","ⵉⵏⵏ","ⴱⵕⴰ","ⵎⴰⵕ","ⵉⴱⵔ","ⵎⴰⵢ","ⵢⵓⵏ","ⵢⵓⵍ","ⵖⵓⵛ","ⵛⵓⵜ","ⴽⵜⵓ","ⵏⵓⵡ","ⴷⵓⵊ","ⵉⵏⵏⴰⵢⵔ","ⴱⵕⴰⵢⵕ","ⵎⴰⵕⵚ","ⵉⴱⵔⵉⵔ","ⵎⴰⵢⵢⵓ","ⵢⵓⵏⵢⵓ","ⵢⵓⵍⵢⵓⵣ","ⵖⵓⵛⵜ","ⵛⵓⵜⴰⵏⴱⵉⵔ","ⴽⵜⵓⴱⵔ","ⵏⵓⵡⴰⵏⴱⵉⵔ","ⴷⵓⵊⴰⵏⴱⵉⵔ","ⴰⵙⴰ","ⴰⵢⵏ","ⴰⵙⵉ","ⴰⴽⵕ","ⴰⴽⵡ","ⴰⵙⵉⵎ","ⴰⵙⵉⴹ","ⴰⵙⴰⵎⴰⵙ","ⴰⵢⵏⴰⵙ","ⴰⵙⵉⵏⴰⵙ","ⴰⴽⵕⴰⵙ","ⴰⴽⵡⴰⵙ","ⵙⵉⵎⵡⴰⵙ","ⴰⵙⵉⴹⵢⴰⵙ","ⵜⵉⴼⴰⵡⵜ","ⵜⴰⴷⴳⴳⵯⴰⵜ","ⴷⴰⵄ","ⴷⴼⵄ","ⴷⴰⵜ ⵏ ⵄⵉⵙⴰ","ⴷⴼⴼⵉⵔ ⵏ ⵄⵉⵙⴰ","i","ɣ","inn","bṛa","maṛ","ibr","ɣuc","cut","ktu","nuw","duj","innayr","bṛayṛ","maṛṣ","ibrir","mayyu","yunyu","yulyuz","ɣuct","cutanbir","ktubr","nuwanbir","dujanbir","asa","ayn","asi","akṛ","akw","asim","asiḍ","asamas","aynas","asinas","akṛas","akwas","asimwas","asiḍyas","tifawt","tadggʷat","daɛ","dfɛ","dat n ɛisa","dffir n ɛisa","E a h.mm","E a h.mm.ss","a h.mm","a h.mm.ss","M-d, E","MMM d E","y-M-d, E","ජ","පෙ","මා","අ","මැ","ජූ","සැ","ඔ","නෙ","දෙ","ජන","පෙබ","මාර්තු","අප්‍රේල්","මැයි","ජූනි","ජූලි","අගෝ","සැප්","ඔක්","නොවැ","දෙසැ","ජනවාරි","පෙබරවාරි","අගෝස්තු","සැප්තැම්බර්","ඔක්තෝබර්","නොවැම්බර්","දෙසැම්බර්","ඉ","ස","බ","බ්‍ර","සි","සෙ","ඉරිදා","සඳුදා","අඟහ","බදාදා","බ්‍රහස්","සිකු","සෙන","අඟහරුවාදා","බ්‍රහස්පතින්දා","සිකුරාදා","සෙනසුරාදා","පෙ.ව.","ප.ව.","ක්‍රි.පූ.","ක්‍රි.ව.","පොපෙ","පො.යු","ක්‍රිස්තු පූර්ව","ක්‍රිස්තු වර්ෂ","පොදු යුගයට පෙර","පොදු යුගය","රු.","සිෆ්එ","E, d. M. y G","máj","jún","júl","januára","februára","apríla","mája","júna","júla","augusta","októbra","novembra","ut","pi","nedeľa","pondelok","utorok","streda","štvrtok","piatok","pred Kr.","pred n. l.","pred Kristom","po Kristovi","pred naším letopočtom","nášho letopočtu","NIS","E, d. M.","E, d. M. y","EEEE, dd. MMMM y","dd. MMMM y","d. MM. yy","avg.","marec","junij","julij","avgust","č","ned.","sre.","čet.","pet.","nedelja","ponedeljek","torek","sreda","četrtek","petek","pop.","po n. št.","pr. n. št.","n. št.","pred Kristusom","naše štetje","pred našim štetjem","pa","vu","ko","tu","vá","lá","pasepeeivi","vuossaargâ","majebaargâ","koskoho","tuorâstuv","vástuppeeivi","lávurduv","epiloho","Ndi","Kuk","Kub","Chv","Chk","Chg","Gun","Gum","Mb","Zvi","Ndira","Kukadzi","Kurume","Kubvumbi","Chivabvu","Chikumi","Chikunguru","Nyamavhuvhu","Gunyana","Gumiguru","Mbudzi","Zvita","Svo","Muv","Chip","Chit","Chin","Chis","Svondo","Muvhuro","China","Mugovera","Kristo asati auya","Kristo ashaya","EEEE, MMMM dd, y","Kob","Lab","Afr","Lix","Tod","Sid","Sag","KIT","LIT","Bisha Koobaad","Bisha Labaad","Bisha Saddexaad","Bisha Afraad","Bisha Shanaad","Bisha Lixaad","Bisha Todobaad","Bisha Sideedaad","Bisha Sagaalaad","Bisha Tobnaad","Bisha Kow iyo Tobnaad","Bisha Laba iyo Tobnaad","Axd","Arb","Axad","Isniin","Talaado","Arbaco","Khamiis","Jimco","Sabti","sn.","gn.","CK","CD","Ciise ka hor (CS)","Ciise ka dib (CS)","{1} 'në' {0}","h:mm:ss a, v","HH:mm:ss, v","h:mm a, v","HH:mm, v","h:mm:ss a, zzzz","h:mm:ss a, z","Shk","Pri","Maj","Qer","Gsh","Sht","Tet","Nën","Dhj","janar","shkurt","prill","qershor","korrik","gusht","shtator","tetor","nëntor","dhjetor","Die","Hën","Mër","Enj","Pre","e diel","e hënë","e martë","e mërkurë","e enjte","e premte","e shtunë","e paradites","e pasdites","p.e.r.","e.r.","p.e.s.","e.s.","para erës së re","erës së re","para erës sonë","erës sonë","Lekë","den","E, h.mm a","E, HH.mm","E, h.mm.ss a","E, HH.mm.ss","dd.MMM","M.y.","MMMM y.","QQQ. y","QQQQ. y","сре","по подне","пре нове ере","нове ере","[BGN]","[BYR]","avg","sre","ponedeljak","pre podne","po podne","Taut","Amšir","Baramuda","Bašans","Jekatit","Nehase","pre nove ere","nove ere","Tišri","Hešvan","Ševat","Čaitra","Vaisaka","Jiaista","Asada","Badra","Argajana","Pauza","Maga","Falguna","Muraham","Rađab","Šaʻban","Šaval","Duʻl-Kiʻda","Duʻl-hiđa","Tempio-kampo (749-749)","Tempio-šoho (749-757)","Tempio-hođi (757-765)","Tempo-đingo (765-767)","Đingo-keiun (767-770)","Ten-o (781-782)","Enđi (901–923)","Đian (1021–1024)","Tenđi (1053–1058)","Đirjaku (1065–1069)","Eišo (1081–1084)","Kanđi (1087–1094)","Čođi (1104–1106)","Đen-ei (1118-1120)","Tenđi (1124–1126)","Daiđi (1126–1131)","Čošao (1132–1135)","Eiđi (1141–1142)","Kođi (1142–1144)","Heiđi (1159–1160)","Đišo (1177–1181)","Đuei (1182–1184)","Bunđi (1185–1190)","Šođi (1199–1201)","Đu (1222–1224)","Đenin (1224–1225)","Đoei (1232–1233)","En-o (1239-1240)","Hođi (1247–1249)","Bun-o (1260-1261)","Kenđi (1275–1278)","Tokuđi (1306–1308)","Đeno (1319–1321)","Đenkjo (1321–1324)","Buču (1372–1375)","Kođi (1555–1558)","Jokjo (1684–1688)","Genđi (1864–1865)","Meiđi","Haisei","Faravadin","Ordibehešt","Kordad","Šahrivar","Dej","Pre RK","RK","augusti","sön","mån","tis","ons","tors","fre","lör","söndag","tisdag","lördag","fm","em","bâbâ","hâtour","toubah","amshîr","barmahât","barmoudah","ba’ounah","abîb","misra","al-nasi","mäskäräm","teqemt","tahesas","yäkatit","mägabit","miyazya","guenbot","säné","hamlé","nähasé","pagumén","före Kristus","efter Kristus","före västerländsk tideräkning","västerländsk tideräkning","tishrí","heshván","kislév","tevét","shevát","adár I","adár","nisán","ijjár","siván","tammúz","ab","elúl","adár II","vaishākh","jyaishtha","āshādha","shrāvana","bhādrapad","āshwin","kārtik","mārgashīrsha","paush","māgh","phālgun","Saka-eran","jumada-l-ula","jumada-l-akhira","sha’ban","dhu-l-ga’da","dhu-l-hijja","Tempyō-kampō (749–749)","Tempyō-shōhō (749–757)","Tempyō-hōji (757–765)","Temphō-jingo (765–767)","Jingo-keiun (767–770)","Ten-ō (781–782)","En-ō (1239–1240)","Bun-ō (1260–1261)","khordād","mordād","ābān","āzar","före R.K.","R.K.","Bds$","BM$","BR$","BS$","BZ$","Ekr","EG£","Ikr","JM$","mkw","mpi","mtu","msb","mun","mts","mku","mkm","mkb","mwezi ya kwanja","mwezi ya pili","mwezi ya tatu","mwezi ya ine","mwezi ya tanu","mwezi ya sita","mwezi ya saba","mwezi ya munane","mwezi ya tisa","mwezi ya kumi","mwezi ya kumi na moya","mwezi ya kumi ya mbili","yen","pil","tat","ine","tan","sit","siku ya yenga","siku ya kwanza","siku ya pili","siku ya tatu","siku ya ine","siku ya tanu","siku ya sita","ya asubuyi","ya muchana","{1} ’அன்று’ {0}","E a h:mm","E a h:mm:ss","a h:mm:ss zzzz","a h:mm:ss z","ஜ","பி","மா","ஏ","மே","ஜூ","ஆ","செ","அ","ந","டி","ஜன.","பிப்.","மார்.","ஏப்.","ஜூன்","ஜூலை","ஆக.","செப்.","அக்.","நவ.","டிச.","ஜனவரி","பிப்ரவரி","மார்ச்","ஏப்ரல்","ஆகஸ்ட்","செப்டம்பர்","அக்டோபர்","நவம்பர்","டிசம்பர்","ஞா","தி","பு","வி","வெ","ச","ஞாயி.","திங்.","செவ்.","புத.","வியா.","வெள்.","சனி","ஞாயிறு","திங்கள்","செவ்வாய்","புதன்","வியாழன்","வெள்ளி","முற்பகல்","பிற்பகல்","மா1","மா2","மா3","மா4","மா5","மா6","மா7","மா8","மா9","மா10","மா11","மா12","மாதம்1","மாதம்2","மாதம்3","மாதம்4","மாதம்5","மாதம்6","மாதம்7","மாதம்8","மாதம்9","மாதம்10","மாதம்11","மாதம்12","கி.மு.","கி.பி.","பொ.ச.மு","பொ.ச","கிறிஸ்துவுக்கு முன்","அன்னோ டோமினி","Rs.","S$","G d, MMM y","G, E d, MMM y","d, MMM y","d, MMMM y, EEEE","జ","ఫి","మా","ఏ","మే","జూ","జు","ఆ","సె","అ","న","డి","జన","ఫిబ్ర","మార్చి","ఏప్రి","జూన్","జులై","ఆగ","సెప్టెం","అక్టో","నవం","డిసెం","జనవరి","ఫిబ్రవరి","ఏప్రిల్","ఆగస్టు","సెప్టెంబర్","అక్టోబర్","నవంబర్","డిసెంబర్","సో","మ","బు","గు","శు","శ","ఆది","సోమ","మంగళ","బుధ","గురు","శుక్ర","శని","ఆదివారం","సోమవారం","మంగళవారం","బుధవారం","గురువారం","శుక్రవారం","శనివారం","[AM]","[PM]","క్రీపూ","క్రీశ","[BCE]","[CE]","క్రీస్తు పూర్వం","క్రీస్తు శకం","ప్రస్తుత శకానికి పూర్వం","ప్రస్తుత శకం","Muk","Dun","Mod","Ped","Sok","Tib","Poo","Orara","Omuk","Okwamg’","Odung’el","Omaruk","Omodok’king’ol","Ojola","Opedel","Osokosokoma","Otibar","Olabor","Opoo","Bar","Aar","Uni","Ung","Nakaejuma","Nakaebarasa","Nakaare","Nakauni","Nakaung’on","Nakakany","Nakasabiti","Taparachu","Ebongi","E HH:mm น.","d MMM G y","E d MMM G y","EEEEที่ d MMM G y","HH:mm น.","EEEEที่ d MMM","EEEEที่ d MMMM","EEEEที่ d MMM y","MMMM G y","d MMMM G y","E d MMMM G y","EEEEที่ d MMMM G y","QQQQ G y","H นาฬิกา mm นาที ss วินาที zzzz","H นาฬิกา mm นาที ss วินาที z","ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค.","มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม","อา","จ","อ","พ","พฤ","ศ","ส","อา.","จ.","อ.","พ.","พฤ.","ศ.","ส.","วันอาทิตย์","วันจันทร์","วันอังคาร","วันพุธ","วันพฤหัสบดี","วันศุกร์","วันเสาร์","พ.ศ.","พุทธศักราช","ก่อนเที่ยง","หลังเที่ยง","เทาท์","บาบา","ฮาเทอร์","เคียฟ","โทบา","อัมเชอร์","บารัมฮัท","บาราเมาดา","บาชันส์","พาโอนา","อีเปป","เมสรา","นาซี","เมสเคอเรม","เตเกมท","เฮดาร์","ทาฮ์ซัส","เทอร์","เยคาทิท","เมกาบิต","เมียเซีย","เจนบอต","เซเน","ฮัมเล","เนแฮซ","พากูเมน","ก่อน ค.ศ.","ค.ศ.","ก.ส.ศ.","ส.ศ.","ปีก่อน ค.ศ.","ปีก่อนคริสต์ศักราช","คริสต์ศักราช","ก่อนสามัญศักราช","สามัญศักราช","ทิชรี","เฮวาน","กีสเลฟ","เตเวต","เชวัต","อาดาร์ I","อาดาร์","นิสซาน","อิยาร์","สีวัน","ตามูซ","อัฟ","เอลอุล","อาดาร์ II","ย.ศ.","จิตรา","วิสาขา","เชษฐา","อัษฎา","ศรวณา","พัตรา","อัศวิชา","การติกา","มฤคศิรา","ปุษยา","มาฆะ","ผลคุณี","ม.ศ.","มุฮัร.","เศาะ.","รอบี I","รอบี II","จุมาดา I","จุมาดา II","เราะ.","ชะอ์.","เราะมะ.","เชาว.","ซุลกิอฺ.","ซุลหิจ.","มุฮะร์รอม","ซอฟาร์","รอจับ","ชะอะบาน","รอมะดอน","เชาวัล","ซุลกิอฺดะฮฺ","ซุลหิจญะฮฺ","ฮ.ศ.","ฮิจเราะห์ศักราช","ทะอิกะ (645–650)","ฮะกุชิ (650–671)","ฮากุโฮ (672–686)","ชุโช (686–701)","ทะอิโฮ (701–704)","เคอุง (704–708)","วะโด (708–715)","เรกิ (715–717)","โยโร (717–724)","จิงกิ (724–729)","เท็มเพียว (729–749)","เท็มเพียว-คัมโป (749-749)","เท็มเพียว-โชโฮ (749-757)","เท็มเพียว-โฮจิ (757-765)","เท็มเพียว-จิงโงะ (765-767)","จิงโงะ-เคอุง (767-770)","โฮกิ (770–780)","เท็นโอ (781–782)","เอ็นเรียะกุ (782–806)","ดะอิโด (806–810)","โคนิง (810–824)","เท็นโช (824–834)","โชวะ (834–848)","คะโจ (848–851)","นินจุ (851–854)","ซะอิโกะ (854–857)","เท็นนัง (857–859)","โจงัง (859–877)","เก็งเก (877–885)","นินนะ (885–889)","คัมเพียว (889–898)","โชตะอิ (898–901)","เอ็งงิ (901–923)","เอ็นโช (923–931)","โชเฮ (931–938)","เท็งเงียว (938–947)","เท็นเรียะกุ (947–957)","เท็นโตะกุ (957–961)","โอวะ (961–964)","โคโฮ (964–968)","อันนะ (968–970)","เท็นโระกุ (970–973)","เท็นเอ็ง (973–976)","โจเง็ง (976–978)","เท็งเง็ง (978–983)","เอกัง (983–985)","คันนะ (985–987)","เอเอ็ง (987–989)","เอโซ (989–990)","โชเรียะกุ (990–995)","โชโตะกุ (995–999)","โชโฮ (999–1004)","คันโก (1004–1012)","โชวะ (1012–1017)","คันนิง (1017–1021)","จิอัง (1021–1024)","มันจุ (1024–1028)","โชเง็ง (1028–1037)","โชเรียะกุ (1037–1040)","โชคีว (1040–1044)","คันโตะกุ (1044–1046)","เอโช (1046–1053)","เท็งงิ (1053–1058)","โคเฮ (1058–1065)","จิเรียะกุ (1065–1069)","เอ็งคีว (1069–1074)","โชโฮ (1074–1077)","โชเรียะกุ (1077–1081)","เอโฮะ (1081–1084)","โอโตะกุ (1084–1087)","คันจิ (1087–1094)","คะโฮะ (1094–1096)","เอโช (1096–1097)","โชโตะกุ (1097–1099)","โควะ (1099–1104)","โชจิ (1104–1106)","คะโช (1106–1108)","เท็นนิง (1108–1110)","เท็นเอ (1110–1113)","เอกีว (1113–1118)","เก็นเอ (1118–1120)","โฮะอัง (1120–1124)","เท็นจิ (1124–1126)","ดะอิจิ (1126–1131)","เท็นโช (1131–1132)","โชโช (1132–1135)","โฮะเอ็ง (1135–1141)","เอจิ (1141–1142)","โคจิ (1142–1144)","เท็นโย (1144–1145)","คีวอัง (1145–1151)","นิมเป (1151–1154)","คีวจุ (1154–1156)","โฮะเง็ง (1156–1159)","เฮจิ (1159–1160)","เอเรียะกุ (1160–1161)","โอโฮ (1161–1163)","โชกัง (1163–1165)","เอมัง (1165–1166)","นินอัง (1166–1169)","คะโอ (1169–1171)","โชอัง (1171–1175)","อังเง็ง (1175–1177)","จิโช (1177–1181)","โยวะ (1181–1182)","จุเอ (1182–1184)","เก็นเรียะกุ (1184–1185)","บุนจิ (1185–1190)","เค็งกีว (1190–1199)","โชจิ (1199–1201)","เค็นนิง (1201–1204)","เก็งกีว (1204–1206)","เค็นเอ (1206–1207)","โชเก็ง (1207–1211)","เค็นเรียะกุ (1211–1213)","เค็มโป (1213–1219)","โชกีว (1219–1222)","โจโอ (1222–1224)","เก็นนิง (1224–1225)","คะโระกุ (1225–1227)","อันเต (1227–1229)","คังกิ (1229–1232)","โจเอ (1232–1233)","เท็มปุกุ (1233–1234)","บุนเรียะกุ (1234–1235)","คะเต (1235–1238)","เรียะกุนิง (1238–1239)","เอ็นโอ (1239–1240)","นินจิ (1240–1243)","คังเง็ง (1243–1247)","โฮจิ (1247–1249)","เค็นโช (1249–1256)","โคเง็ง (1256–1257)","โชกะ (1257–1259)","โชเง็ง (1259–1260)","บุนโอ (1260–1261)","โคโช (1261–1264)","บุนเอ (1264–1275)","เค็นจิ (1275–1278)","โคอัง (1278–1288)","โชโอ (1288–1293)","เอนิง (1293–1299)","โชอัง (1299–1302)","เค็งเง็ง (1302–1303)","คะเง็ง (1303–1306)","โทะกุจิ (1306–1308)","เอ็งเก (1308–1311)","โอโช (1311–1312)","โชวะ (1312–1317)","บุมโป (1317–1319)","เก็นโอ (1319–1321)","เก็งเกียว (1321–1324)","โชชู (1324–1326)","คะเระกิ (1326–1329)","เก็นโตะกุ (1329–1331)","เก็งโก (1331–1334)","เค็มมุ (1334–1336)","เอ็งเง็ง (1336–1340)","โคโกะกุ (1340–1346)","โชเฮ (1346–1370)","เค็นโตะกุ (1370–1372)","บุนชู (1372–1375)","เท็นจุ (1375–1379)","โคเรียะกุ (1379–1381)","โควะ (1381–1384)","เก็นชู (1384–1392)","เมโตะกุ (1384–1387)","คะเค (1387–1389)","โคโอ (1389–1390)","เมโตะกุ (1390–1394)","โอเอ (1394–1428)","โชโช (1428–1429)","เอเกียว (1429–1441)","คะกิสึ (1441–1444)","บุนอัง (1444–1449)","โฮโตะกุ (1449–1452)","เคียวโตะกุ (1452–1455)","โคโช (1455–1457)","โชโระกุ (1457–1460)","คันโช (1460–1466)","บุนโช (1466–1467)","โอนิง (1467–1469)","บุมเม (1469–1487)","โชเกียว (1487–1489)","เอ็นโตะกุ (1489–1492)","เมโอ (1492–1501)","บุงกิ (1501–1504)","เอโช (1504–1521)","ทะอิเอ (1521–1528)","เคียวโระกุ (1528–1532)","เท็มมน (1532–1555)","โคจิ (1555–1558)","เอโระกุ (1558–1570)","เก็งกิ (1570–1573)","เท็นโช (1573–1592)","บุนโระกุ (1592–1596)","เคโช (1596–1615)","เก็งวะ (1615–1624)","คันเอ (1624–1644)","โชโฮ (1644–1648)","เคอัง (1648–1652)","โชโอ (1652–1655)","เมเรียะกุ (1655–1658)","มันจิ (1658–1661)","คัมบุง (1661–1673)","เอ็มโป (1673–1681)","เท็นวะ (1681–1684)","โจเกียว (1684–1688)","เก็นโระกุ (1688–1704)","โฮเอ (1704–1711)","โชโตะกุ (1711–1716)","เคียวโฮ (1716–1736)","เก็มบุง (1736–1741)","คัมโป (1741–1744)","เอ็งเกียว (1744–1748)","คันเอ็ง (1748–1751)","โฮเรียะกุ (1751–1764)","เมวะ (1764–1772)","อันเอ (1772–1781)","เท็มเม (1781–1789)","คันเซ (1789–1801)","เคียววะ (1801–1804)","บุงกะ (1804–1818)","บุนเซ (1818–1830)","เท็มโป (1830–1844)","โคกะ (1844–1848)","คะเอ (1848–1854)","อันเซ (1854–1860)","มันเอ็ง (1860–1861)","บุงกีว (1861–1864)","เก็นจิ (1864–1865)","เคโอ (1865–1868)","เมจิ","ทะอิโช","โชวะ","เฮเซ","ฟาร์วาร์ดิน","ออร์ดิเบเฮชต์","คอร์แดด","เตอร์","มอร์แดด","ชาหริวาร์","เมฮร์","อะบาน","อะซาร์","เดย์","บาฮ์มาน","เอสฟานด์","ปีเปอร์เซีย","ปีก่อนไต้หวัน","ไต้หวัน","EEEE፣ dd MMMM መዓልቲ y G","ኤፕረ","ኦክተ","ኤፕረል","ኦክተውበር","ሠ","ኃ","ቀ","ሰንበት","ሰኑይ","ሠሉስ","ኃሙስ","ዓርቢ","ቀዳም","ንጉሆ ሰዓተ","ድሕር ሰዓት","EEEE፡ dd MMMM መዓልቲ y G","ጥሪ","ለካቲ","መጋቢ","ሚያዝ","ግንቦ","ሰነ","ሓምለ","ነሓሰ","መስከ","ጥቅም","ሕዳር","ታሕሳ","ለካቲት","ጥቅምቲ","ታሕሳስ","ሰሉስ","ሓሙስ","d MMMM y EEEE","Ý","Ç","Ş","san däl","Sān","Fēp","Maʻa","ʻEpe","Mē","Siu","ʻAok","ʻOka","Nōv","Tīs","Sānuali","Fēpueli","Maʻasi","ʻEpeleli","Sune","Siulai","ʻAokosi","Sepitema","ʻOkatopa","Nōvema","Tīsema","Sāp","Mōn","Tūs","Pul","Tuʻa","Fal","Tok","Sāpate","Mōnite","Tūsite","Pulelulu","Tuʻapulelulu","Falaite","Tokonaki","TS","ki muʻa","taʻu ʻo Sīsū","TF","AUD$","NZD$","G dd MMM y","G d MMM y E","dd/MM E","d MMMM E","dd MMMM E","dd.MM.y E","d MMM y E","y/QQQQ","Oca","Şub","Nis","Haz","Tem","Ağu","Eyl","Eki","Ocak","Şubat","Mart","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık","Paz","Pzt","Sal","Çar","Per","Cum","Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi","ÖÖ","ÖS","Tût","Bâbe","Keyhek","Tûbe","Imşir","Bermuhat","Bermude","Peyştes","Bune","Ebip","Mısrî","Nesî","Tikimt","Hidar","Yakatit","Magabit","Ginbot","Nehasa","Pagumiene","MÖ","MS","İÖ","İS","Milattan Önce","Milattan Sonra","İsa’dan Önce","İsa’dan Sonra","Tişri","Heşvan","Şevat","Veadar","İyar","Muharrem","Safer","Rebiülevvel","Rebiülahir","Cemaziyelevvel","Cemaziyelahir","Recep","Şaban","Ramazan","Şevval","Zilkade","Zilhicce","Hicri","Ferverdin","Ordibeheşt","Hordad","Şehriver","Azer","Behmen","Esfend","{percentSign}{number}","{minusSign}{percentSign}{number}","₺","Ibr","Cut","Kṭu","Nwa","Duj","Yebrayer","Ibrir","Yulyuz","Cutanbir","Kṭuber","Nwanbir","Dujanbir","Asa","Ayn","Asn","Akr","Akw","Asm","Asḍ","Asamas","Aynas","Asinas","Akras","Akwas","Asimwas","Asiḍyas","Zdat azal","Ḍeffir aza","ZƐ","ḌƐ","Zdat Ɛisa (TAƔ)","Ḍeffir Ɛisa (TAƔ)","{1}، {0}","MMM d، y G","E، MMM d، y G","E، M/d","E، MMM d","E، M/d/y","MMM d، y","E، MMM d، y","EEEE، MMMM d، y","MMMM d، y","يانۋار","فېۋرال","مارت","ئاپرېل","ئىيۇن","ئىيۇل","ئاۋغۇست","سېنتەبىر","ئۆكتەبىر","نويابىر","دېكابىر","بويابىر","يە","دۈ","سە","چا","پە","چۈ","شە","يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە","بۇددا يىلنامەسى","چۈشتىن بۇرۇن","چۈشتىن كېيىن","مىلادىيە","مىلادىيەدىن بۇرۇن","مۇھەررەم","سەپەر","رەبىئۇلئەۋۋەل","رەبىئۇلئاخىر","جەمادىيەلئەۋۋەل","جەمادىيەلئاخىر","رەجەب","شەئبان","رامىزان","شەۋۋال","زۇلقەئدە","زۇلھەججە","ھىجرىيە","مىنگو","جۇڭخۇا مىنگودىن بۇرۇن","{1} 'о' {0}","QQQQ y 'р'.","EEEE, d MMMM y 'р'.","d MMMM y 'р'.","d MMM y 'р'.","Л","В","Г","січ.","лют.","бер.","квіт.","трав.","черв.","лип.","серп.","вер.","жовт.","лист.","груд.","січня","лютого","березня","квітня","травня","червня","липня","серпня","вересня","жовтня","листопада","грудня","П","Нд","Пн","Вт","Чт","Пт","неділя","понеділок","вівторок","середа","четвер","пʼятниця","дп","пп","Бабе","Кіхак","Тобе","Абіб","Насі","мес.","тек.","хед.","тах.","тер.","єкат.","мег.","міяз.","ген.","хам.","нех.","паг.","мескерема","текемта","хедара","тахсаса","тера","єкатіта","мегабіта","міязія","генбота","сене","хамле","нехасе","пагумена","до н.е.","до н. е.","до нашої ери","нашої ери","до нової ери","нової ери","Тішри","Марчешван","Числьов","Тебет","Нісан","Іар","Аб","чайт.","вайс.","джай.","асад.","шрав.","бхад.","асв.","кар.","агр.","паус.","маг.","фаль.","джайстха","шравана","бхадра","асвіна","картіка","аграхаяна","пауса","фальгуна","Рабі I","Рабі II","Джумада I","Джумада II","Даввал","Зу-ль-каада","Зу-ль-хіджа","Фарвардін","Ордібехешт","Тір","Шахрівер","крб.","سوموار","بدھ","قبل دوپہر","بعد دوپہر","قبل مسیح","عیسوی","ر بیع الاول","ر بیع الثانی","ذوالقعدۃ","ذوالحجۃ","d-MMM, G y","E, d-MMM, G y","h:mm:ss (v)","HH:mm:ss (v)","h:mm (v)","HH:mm (v)","E, d-MMM","d-MMMM","d-MMM, y","E, d-MMM, y","y, QQQ","y, QQQQ","d-MMMM, y","Sentabr","Oktabr","Ya","Pa","Sh","yakshanba","dushanba","seshanba","chorshanba","payshanba","shanba","TO","m.a.","milodiy","e.a.","miloddan avvalgi","eramizdan avvalgi","Robiʼ ul-avval","Robiʼ ul-oxir","Jumad ul-avval","Jumad ul-oxir","Shaʼbon","Ramazon","Shavvol","Zul-qaʼda","Zul-hijja","haqiqiy son emas","soʻm","فبر","مار","اپر","اگس","سپت","اکت","نوم","ی.","د.","س.","چ.","پ.","ج.","ش.","Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек","Январ","Феврал","Март","Апрел","Август","Сентябр","Октябр","Ноябр","Декабр","Якш","Душ","Сеш","Чор","Пай","Жум","Шан","якшанба","душанба","сешанба","чоршанба","пайшанба","шанба","М.А.","Э","сўм","ꖨꕪꖃ ꔞꕮ","ꕒꕡꖝꖕ","ꕾꖺ","ꖢꖕ","ꖑꕱ","ꗛꔕ","ꕢꕌ","ꕭꖃ","ꔞꘋꕔꕿ ꕸꖃꗏ","ꖨꕪꕱ ꗏꕮ","ꕞꕌꔵ","ꗳꗡꘉ","ꕚꕞꕚ","ꕉꕞꕒ","ꕉꔤꕆꕢ","ꕉꔤꕀꕮ","ꔻꔬꔳ","luukao kemã","ɓandaɓu","vɔɔ","fulu","goo","kɔnde","saah","galo","kenpkato ɓololɔ","luukao lɔma","lahadi","tɛɛnɛɛ","talata","alaba","aimisa","aijima","siɓiti","{0}, {1}","E, 'ngày' d","dd MMM, y G","dd/M","E, dd/M","E, dd/M/y","'tháng' MM, y","MMMM 'năm' y","QQQQ 'năm' y","EEEE, 'ngày' dd MMMM 'năm' y","'Ngày' dd 'tháng' MM 'năm' y","thg 1","thg 2","thg 3","thg 4","thg 5","thg 6","thg 7","thg 8","thg 9","thg 10","thg 11","thg 12","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","CN","T2","T3","T4","T5","T6","T7","Th 2","Th 3","Th 4","Th 5","Th 6","Th 7","Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy","SA","CH","tr. CN","sau CN","Trước R.O.C","Ö","Hor","Brá","Hei","Öig","Her","Wím","Win","Chr","Jenner","Hornig","Märze","Abrille","Meije","Bráčet","Heiwet","Öigšte","Herbštmánet","Wímánet","Wintermánet","Chrištmánet","Män","Ziš","Mit","Fró","Sunntag","Mäntag","Zištag","Mittwuč","Fróntag","Fritag","Samštag","n. Chr","Sabi","Bala","Kubi","Kusa","Kuna","Kuta","Muka","Sabiiti","Owokubili","Owokusatu","Olokuna","Olokutaanu","Olomukaaga","Munkyo","Eigulo","AZ","AF","Kulisto nga azilawo","Kulisto nga affile","o.1","o.2","o.3","o.4","o.5","o.6","o.7","o.8","o.9","o.10","o.11","o.12","pikítíkítie, oólí ú kutúan","siɛyɛ́, oóli ú kándíɛ","ɔnsúmbɔl, oóli ú kátátúɛ","mesiŋ, oóli ú kénie","ensil, oóli ú kátánuɛ","ɔsɔn","efute","pisuyú","imɛŋ i puɔs","imɛŋ i putúk,oóli ú kátíɛ","makandikɛ","pilɔndɔ́","sd","md","mw","et","kl","fl","ss","sɔ́ndiɛ","móndie","muányáŋmóndie","metúkpíápɛ","kúpélimetúkpiapɛ","feléte","séselé","kiɛmɛ́ɛm","kisɛ́ndɛ","+J.C.","katikupíen Yésuse","ékélémkúnupíén n","E דעם dטן","dטן MMM y G","E דעם dטן MMM yG","dטן MMM y","E, dטן MMM y","EEEE, dטן MMMM y","dטן MMMM y","יאַנואַר","פֿעברואַר","מערץ","אַפּריל","מיי","אויגוסט","סעפּטעמבער","אקטאבער","נאוועמבער","דעצעמבער","זונטיק","מאָנטיק","דינסטיק","מיטוואך","דאנערשטיק","פֿרײַטיק","פֿאַרמיטאָג","נאָכמיטאָג","תש","חש","כס","טב","שב","אא","אד","ני","אי","סי","תמ","אל","א2","חשוון","Ṣẹ́rẹ́","Èrèlè","Ẹrẹ̀nà","Ìgbé","Ẹ̀bibi","Òkúdu","Agẹmọ","Ògún","Owewe","Ọ̀wàrà","Bélú","Ọ̀pẹ̀","Oṣù Ṣẹ́rẹ́","Oṣù Èrèlè","Oṣù Ẹrẹ̀nà","Oṣù Ìgbé","Oṣù Ẹ̀bibi","Oṣù Òkúdu","Oṣù Agẹmọ","Oṣù Ògún","Oṣù Owewe","Oṣù Ọ̀wàrà","Oṣù Bélú","Oṣù Ọ̀pẹ̀","Àìkú","Ajé","Ìsẹ́gun","Ọjọ́rú","Ọjọ́bọ","Ẹtì","Àbámẹ́ta","Ọjọ́ Àìkú","Ọjọ́ Ajé","Ọjọ́ Ìsẹ́gun","Ọjọ́ Ẹtì","Ọjọ́ Àbámẹ́ta","Àárọ̀","Ọ̀sán","Saju Kristi","Lehin Kristi","Shɛ́rɛ́","Ɛrɛ̀nà","Ɛ̀bibi","Agɛmɔ","Ɔ̀wàrà","Ɔ̀pɛ̀","Oshù Shɛ́rɛ́","Oshù Èrèlè","Oshù Ɛrɛ̀nà","Oshù Ìgbé","Oshù Ɛ̀bibi","Oshù Òkúdu","Oshù Agɛmɔ","Oshù Ògún","Oshù Owewe","Oshù Ɔ̀wàrà","Oshù Bélú","Oshù Ɔ̀pɛ̀","Ìsɛ́gun","Ɔjɔ́rú","Ɔjɔ́bɔ","Ɛtì","Àbámɛ́ta","Ɔjɔ́ Àìkú","Ɔjɔ́ Ajé","Ɔjɔ́ Ìsɛ́gun","Ɔjɔ́ Ɛtì","Ɔjɔ́ Àbámɛ́ta","Àárɔ̀","Ɔ̀sán","ⴰⵙⵉⵎⵡⴰⵙ","d日E","E ah:mm","EHH:mm","E ah:mm:ss","EHH:mm:ss","Gy年M月d日E","ah时","H时","ah:mm","ah:mm:ss","v ah:mm:ss","v HH:mm:ss","v ah:mm","v HH:mm","M/dE","M月d日E","y/M/dE","y年M月d日E","y年第Q季度","zzzz ah:mm:ss","z ah:mm:ss","一月","一","周日","周一","周二","周三","周四","周五","周六","星期日","星期一","星期二","星期三","星期四","星期五","星期六","佛历","上午","下午","冬","腊","冬月","腊月","13月","十三月","公元前","公元","西元前","西元","闰7月","闰七月","希伯来历","印度历","伊斯兰历","大化 (645–650)","白雉 (650–671)","白凤 (672–686)","朱鸟 (686–701)","大宝 (701–704)","庆云 (704–708)","和铜 (708–715)","灵龟 (715–717)","养老 (717–724)","神龟 (724–729)","天平 (729–749)","天平感宝 (749–749)","天平胜宝 (749–757)","天平宝字 (757–765)","天平神护 (765–767)","神护景云 (767–770)","宝龟 (770–780)","天应 (781–782)","延历 (782–806)","大同 (806–810)","弘仁 (810–824)","天长 (824–834)","承和 (834–848)","嘉祥 (848–851)","仁寿 (851–854)","齐衡 (854–857)","天安 (857–859)","贞观 (859–877)","元庆 (877–885)","仁和 (885–889)","宽平 (889–898)","昌泰 (898–901)","延喜 (901–923)","延长 (923–931)","承平 (931–938)","天庆 (938–947)","天历 (947–957)","天德 (957–961)","应和 (961–964)","康保 (964–968)","安和 (968–970)","天禄 (970–973)","天延 (973–976)","贞元 (976–978)","天元 (978–983)","永观 (983–985)","宽和 (985–987)","永延 (987–989)","永祚 (989–990)","正历 (990–995)","长德 (995–999)","长保 (999–1004)","宽弘 (1004–1012)","长和 (1012–1017)","宽仁 (1017–1021)","治安 (1021–1024)","万寿 (1024–1028)","长元 (1028–1037)","长历 (1037–1040)","长久 (1040–1044)","宽德 (1044–1046)","永承 (1046–1053)","天喜 (1053–1058)","康平 (1058–1065)","治历 (1065–1069)","延久 (1069–1074)","承保 (1074–1077)","正历 (1077–1081)","永保 (1081–1084)","应德 (1084–1087)","宽治 (1087–1094)","嘉保 (1094–1096)","永长 (1096–1097)","承德 (1097–1099)","康和 (1099–1104)","长治 (1104–1106)","嘉承 (1106–1108)","天仁 (1108–1110)","天永 (1110–1113)","永久 (1113–1118)","元永 (1118–1120)","保安 (1120–1124)","天治 (1124–1126)","大治 (1126–1131)","天承 (1131–1132)","长承 (1132–1135)","保延 (1135–1141)","永治 (1141–1142)","康治 (1142–1144)","天养 (1144–1145)","久安 (1145–1151)","仁平 (1151–1154)","久寿 (1154–1156)","保元 (1156–1159)","平治 (1159–1160)","永历 (1160–1161)","应保 (1161–1163)","长宽 (1163–1165)","永万 (1165–1166)","仁安 (1166–1169)","嘉应 (1169–1171)","承安 (1171–1175)","安元 (1175–1177)","治承 (1177–1181)","养和 (1181–1182)","寿永 (1182–1184)","元历 (1184–1185)","文治 (1185–1190)","建久 (1190–1199)","正治 (1199–1201)","建仁 (1201–1204)","元久 (1204–1206)","建永 (1206–1207)","承元 (1207–1211)","建历 (1211–1213)","建保 (1213–1219)","承久 (1219–1222)","贞应 (1222–1224)","元仁 (1224–1225)","嘉禄 (1225–1227)","安贞 (1227–1229)","宽喜 (1229–1232)","贞永 (1232–1233)","天福 (1233–1234)","文历 (1234–1235)","嘉祯 (1235–1238)","历仁 (1238–1239)","延应 (1239–1240)","仁治 (1240–1243)","宽元 (1243–1247)","宝治 (1247–1249)","建长 (1249–1256)","康元 (1256–1257)","正嘉 (1257–1259)","正元 (1259–1260)","文应 (1260–1261)","弘长 (1261–1264)","文永 (1264–1275)","建治 (1275–1278)","弘安 (1278–1288)","正应 (1288–1293)","永仁 (1293–1299)","正安 (1299–1302)","干元 (1302–1303)","嘉元 (1303–1306)","德治 (1306–1308)","延庆 (1308–1311)","应长 (1311–1312)","正和 (1312–1317)","文保 (1317–1319)","元应 (1319–1321)","元亨 (1321–1324)","正中 (1324–1326)","嘉历 (1326–1329)","元德 (1329–1331)","元弘 (1331–1334)","建武 (1334–1336)","延元 (1336–1340)","兴国 (1340–1346)","正平 (1346–1370)","建德 (1370–1372)","文中 (1372–1375)","天授 (1375–1379)","康历 (1379–1381)","弘和 (1381–1384)","元中 (1384–1392)","至德 (1384–1387)","嘉庆 (1387–1389)","康应 (1389–1390)","明德 (1390–1394)","应永 (1394–1428)","正长 (1428–1429)","永享 (1429–1441)","嘉吉 (1441–1444)","文安 (1444–1449)","宝德 (1449–1452)","享德 (1452–1455)","康正 (1455–1457)","长禄 (1457–1460)","宽正 (1460–1466)","文正 (1466–1467)","应仁 (1467–1469)","文明 (1469–1487)","长享 (1487–1489)","延德 (1489–1492)","明应 (1492–1501)","文龟 (1501–1504)","永正 (1504–1521)","大永 (1521–1528)","享禄 (1528–1532)","天文 (1532–1555)","弘治 (1555–1558)","永禄 (1558–1570)","元龟 (1570–1573)","天正 (1573–1592)","文禄 (1592–1596)","庆长 (1596–1615)","元和 (1615–1624)","宽永 (1624–1644)","正保 (1644–1648)","庆安 (1648–1652)","承应 (1652–1655)","明历 (1655–1658)","万治 (1658–1661)","宽文 (1661–1673)","延宝 (1673–1681)","天和 (1681–1684)","贞享 (1684–1688)","元禄 (1688–1704)","宝永 (1704–1711)","正德 (1711–1716)","享保 (1716–1736)","元文 (1736–1741)","宽保 (1741–1744)","延享 (1744–1748)","宽延 (1748–1751)","宝历 (1751–1764)","明和 (1764–1772)","安永 (1772–1781)","天明 (1781–1789)","宽政 (1789–1801)","享和 (1801–1804)","文化 (1804–1818)","文政 (1818–1830)","天保 (1830–1844)","弘化 (1844–1848)","嘉永 (1848–1854)","安政 (1854–1860)","万延 (1860–1861)","文久 (1861–1864)","元治 (1864–1865)","庆应 (1865–1868)","波斯历","ILS","₩","d/M/y(E)","y年M月d日,E","M-dE","Gy年M月d日 E","ah時","ah:mm:ss [v]","HH:mm:ss [v]","ah:mm [v]","HH:mm [v]","M/d(E)","M月d日 E","y/M/d(E)","y年M月d日 E","y年QQQ","y年QQQQ","y年M月d日 EEEE","ah:mm:ss [zzzz]","ah:mm:ss [z]","週日","週一","週二","週三","週四","週五","週六","佛曆","臘","臘月","提斯利月","瑪西班月","基斯流月","提別月","細罷特月","亞達月 I","亞達月","尼散月","以珥月","西彎月","搭模斯月","埃波月","以祿月","亞達月 II","創世紀元","制檀邏月","吠舍佉月","逝瑟吒月","頞沙荼月","室羅伐拏月","婆羅鉢陀月","頞涇縛庚闍月","迦剌底迦月","末伽始羅月","報沙月","磨祛月","頗勒窶拏月","印度曆","穆哈蘭姆月","色法爾月","賴比月 I","賴比月 II","主馬達月 I","主馬達月 II","賴哲卜月","舍爾邦月","賴買丹月","閃瓦魯月","都爾喀爾德月","都爾黑哲月","伊斯蘭曆","白鳳","大寶","靈龜","神龜","天平感寶","天平勝寶","天平寶字","寶龜","天應","延曆","仁壽","齊衡","貞觀","寬平","天曆","天德","應和","天祿","永觀","寬和","正曆","長德","寬弘","寬仁","萬壽","長曆","寬德","治曆","承曆","應德","寬治","承德","久壽","永曆","應保","長寬","永萬","嘉應","壽永","元曆","建曆","貞應","嘉祿","寬喜","文曆","曆仁","延應","寬元","寶治","文應","正應","德治","應長","元應","嘉曆","元德","興國","建德","康曆","至德","康應","明德","應永","寶德","享德","長祿","寬正","應仁","延德","明應","文龜","享祿","永祿","元龜","文祿","寬永","承應","明曆","萬治","寬文","延寶","元祿","寶永","正德","寬保","寬延","寶曆","寬政","萬延","慶應","波斯曆","民國前","民國","非數值","cccc","Mas","Eph","Aga","Januwari","Februwari","Mashi","Ephreli","Meyi","Julayi","Septhemba","Okthoba","Mso","Bil","Hla","ISonto","UMsombuluko","ULwesibili","ULwesithathu","ULwesine","ULwesihlanu","UMgqibelo"],b=[];b[0]=[[a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14]],{"d":a[17],"E":a[18],"Ed":a[19],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[26],"GyMMMEd":a[27],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[39],"MEd":a[40],"MMM":a[41],"MMMd":a[42],"MMMEd":a[43],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[48],"yMEd":a[49],"yMMM":a[50],"yMMMd":a[51],"yMMMEd":a[52],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[56],"yMMMMd":a[57],"yMMMd":a[51],"yMd":a[58]},{"hmmsszzzz":a[59],"hmsz":a[60],"hms":a[32],"hm":a[30]},[a[61],a[62],a[63],a[64],a[63],a[61],a[61],a[64],a[65],a[66],a[67],a[68]],[a[69],a[70],a[71],a[72],a[73],a[74],a[75],a[76],a[77],a[78],a[79],a[80]],[a[81],a[82],a[83],a[84],a[73],a[85],a[86],a[87],a[88],a[89],a[90],a[91]],[a[65],a[63],a[92],a[93],a[92],a[62],a[65]],[a[94],a[95],a[96],a[97],a[98],a[99],a[100]],[a[101],a[102],a[103],a[104],a[105],a[106],a[107]],[a[108]],{"am":a[109],"pm":a[110]},[a[111],a[112],a[113],a[114],a[115],a[116],a[117],a[118],a[119],a[120],a[121],a[122]],[a[123],a[124],a[125],a[126],a[127],a[128],a[129],a[130],a[131],a[132],a[133],a[134]],[a[135],a[136],a[137],a[138],a[139],a[140],a[141],a[142],a[143],a[144],a[145],a[146]],[a[111],a[112],a[113],a[114],a[115],a[116],a[117],a[118],a[119],a[120],a[121],a[122],a[147]],[a[148],a[149],a[150],a[151],a[152],a[153],a[154],a[155],a[156],a[157],a[158],a[159],a[160]],[a[161],a[162]],[a[163],a[164],a[165],a[166],a[167],a[168],a[169],a[170],a[171],a[172],a[173],a[174],a[175]],[a[161]],[a[176],a[177],a[178],a[179],a[180],a[181],a[182],a[183],a[184],a[185],a[186],a[187]],[a[188],a[64],a[189],a[190]],[a[191],a[192],a[189],a[190]],[a[193],a[194],a[195],a[196]],[a[111],a[112],a[113],a[114],a[115],a[116],a[117],a[118],a[119],a[120],a[121],a[122],a[147],a[117]],[a[197],a[198],a[199],a[200],a[201],a[202],a[203],a[204],a[205],a[206],a[207],a[208],a[209],a[210]],[a[109]],[a[211],a[212],a[213],a[214],a[215],a[216],a[217],a[218],a[219],a[220],a[221],a[222]],[a[223]],[a[224],a[225],a[226],a[227],a[228],a[229],a[230],a[231],a[232],a[233],a[234],a[235]],[a[236],a[237],a[238],a[239],a[240],a[241],a[242],a[243],a[244],a[245],a[246],a[247]],[a[248]],[a[249],a[250],a[251],a[252],a[253],a[254],a[255],a[256],a[257],a[258],a[259],a[260],a[261],a[262],a[263],a[264],a[265],a[266],a[267],a[268],a[269],a[270],a[271],a[272],a[273],a[274],a[275],a[276],a[277],a[278],a[279],a[280],a[281],a[282],a[283],a[284],a[285],a[286],a[287],a[288],a[289],a[290],a[291],a[292],a[293],a[294],a[295],a[296],a[297],a[298],a[299],a[300],a[301],a[302],a[303],a[304],a[305],a[306],a[307],a[308],a[309],a[310],a[311],a[312],a[313],a[314],a[315],a[316],a[317],a[318],a[319],a[320],a[321],a[322],a[323],a[324],a[325],a[326],a[327],a[328],a[329],a[330],a[331],a[332],a[333],a[334],a[335],a[336],a[337],a[338],a[339],a[340],a[341],a[342],a[343],a[344],a[345],a[346],a[347],a[348],a[349],a[350],a[351],a[352],a[353],a[354],a[355],a[356],a[357],a[358],a[359],a[360],a[361],a[362],a[363],a[364],a[365],a[366],a[367],a[368],a[369],a[370],a[371],a[372],a[373],a[374],a[375],a[376],a[377],a[378],a[379],a[380],a[381],a[382],a[383],a[384],a[385],a[386],a[387],a[388],a[389],a[390],a[391],a[392],a[393],a[394],a[395],a[396],a[397],a[398],a[399],a[400],a[401],a[402],a[403],a[404],a[405],a[406],a[407],a[408],a[409],a[410],a[411],a[412],a[413],a[414],a[415],a[416],a[417],a[418],a[419],a[420],a[421],a[422],a[423],a[424],a[425],a[426],a[427],a[428],a[429],a[430],a[431],a[432],a[433],a[434],a[435],a[436],a[437],a[438],a[439],a[440],a[441],a[442],a[443],a[444],a[445],a[446],a[447],a[448],a[449],a[450],a[451],a[452],a[453],a[454],a[455],a[456],a[457],a[458],a[459],a[460],a[461],a[462],a[463],a[464],a[465],a[466],a[467],a[468],a[469],a[470],a[471],a[472],a[473],a[474],a[475],a[476],a[477],a[478],a[479],a[480],a[63],a[92],a[65],a[481]],[a[249],a[250],a[251],a[252],a[253],a[254],a[255],a[256],a[257],a[258],a[259],a[260],a[261],a[262],a[263],a[264],a[265],a[266],a[267],a[268],a[269],a[270],a[271],a[272],a[273],a[274],a[275],a[276],a[277],a[278],a[279],a[280],a[281],a[282],a[283],a[284],a[285],a[286],a[287],a[288],a[289],a[290],a[291],a[292],a[293],a[294],a[295],a[296],a[297],a[298],a[299],a[300],a[301],a[302],a[303],a[304],a[305],a[306],a[307],a[308],a[309],a[310],a[311],a[312],a[313],a[314],a[315],a[316],a[317],a[318],a[319],a[320],a[321],a[322],a[323],a[324],a[325],a[326],a[327],a[328],a[329],a[330],a[331],a[332],a[333],a[334],a[335],a[336],a[337],a[338],a[339],a[340],a[341],a[342],a[343],a[344],a[345],a[346],a[347],a[348],a[349],a[350],a[351],a[352],a[353],a[354],a[355],a[356],a[357],a[358],a[359],a[360],a[361],a[362],a[363],a[364],a[365],a[366],a[367],a[368],a[369],a[370],a[371],a[372],a[373],a[374],a[375],a[376],a[377],a[378],a[379],a[380],a[381],a[382],a[383],a[384],a[385],a[386],a[387],a[388],a[389],a[390],a[391],a[392],a[393],a[394],a[395],a[396],a[397],a[398],a[399],a[400],a[401],a[402],a[403],a[404],a[405],a[406],a[407],a[408],a[409],a[410],a[411],a[412],a[413],a[414],a[415],a[416],a[417],a[418],a[419],a[420],a[421],a[422],a[423],a[424],a[425],a[426],a[427],a[428],a[429],a[430],a[431],a[432],a[433],a[434],a[435],a[436],a[437],a[438],a[439],a[440],a[441],a[442],a[443],a[444],a[445],a[446],a[447],a[448],a[449],a[450],a[451],a[452],a[453],a[454],a[455],a[456],a[457],a[458],a[459],a[460],a[461],a[462],a[463],a[464],a[465],a[466],a[467],a[468],a[469],a[470],a[471],a[472],a[473],a[474],a[475],a[476],a[477],a[478],a[479],a[480],a[482],a[483],a[484],a[485]],[a[486],a[487],a[488],a[489],a[490],a[491],a[492],a[493],a[494],a[495],a[496],a[497]],[a[498]],[a[499],a[500]],[a[501]],{"positivePattern":a[502],"negativePattern":a[503]},{"positivePattern":a[504],"negativePattern":a[505]},{"positivePattern":a[506],"negativePattern":a[507]},{"decimal":a[508],"group":a[509],"nan":a[510],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[537],"EHm":a[21],"Ehms":a[538],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[539],"GyMMMEd":a[540],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[541],"MEd":a[542],"MMM":a[41],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[543],"MMMMEd":a[545],"ms":a[45],"y":a[46],"yM":a[546],"yMd":a[547],"yMEd":a[548],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[551],"yMMMMd":a[552],"yMMMd":a[553],"yMd":a[547]},[a[554],a[555],a[556],a[557],a[558],a[559],a[560],a[561],a[562],a[563],a[564],a[565]],[a[566],a[567],a[568],a[84],a[558],a[569],a[570],a[571],a[88],a[572],a[90],a[573]],[a[65],a[63],a[68],a[93],a[68],a[574],a[65]],[a[575],a[576],a[577],a[578],a[579],a[580],a[581]],[a[582],a[583],a[584],a[585],a[586],a[587],a[588]],{"am":a[589],"pm":a[590]},[a[591],a[592],a[593],a[594]],[a[595],a[596],a[597],a[594]],[a[499],a[598]],{"decimal":a[509],"group":a[599],"nan":a[510],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534],"ZAR":a[603]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"NAD":a[529],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534],"ZAR":a[603]},{"d":a[17],"E":a[18],"Ed":a[19],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[609],"MMM":a[41],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[44],"ms":a[610],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[612],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[613],"yMMMM":a[614],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[615],"yMMMMd":a[616],"yMMMd":a[617],"yMd":a[611]},{"hmmsszzzz":a[618],"hmsz":a[619],"hms":a[33],"hm":a[31]},[a[620],a[621],a[622],a[622],a[623],a[624],a[621],a[625],a[17],a[626],a[627],a[625]],[a[628],a[629],a[630],a[631],a[632],a[633],a[634],a[635],a[636],a[637],a[638],a[639]],[a[640],a[641],a[642],a[643],a[644],a[645],a[646],a[647],a[648],a[649],a[650],a[651]],[a[620],a[621],a[652],a[622],a[653],a[652],a[17]],[a[654],a[655],a[656],a[657],a[658],a[659],a[660]],[a[661],a[662],a[663],a[664],a[665],a[666],a[667]],{"am":a[668],"pm":a[669]},[a[670],a[671],a[189],a[190]],[a[672],a[673],a[189],a[190]],{"positivePattern":a[674],"negativePattern":a[675]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[39],"MEd":a[40],"MMM":a[41],"MMMd":a[42],"MMMEd":a[43],"MMMMd":a[44],"MMMMEd":a[677],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[678],"yMEd":a[49],"yMMM":a[50],"yMMMd":a[679],"yMMMEd":a[52],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[680],"yMMMMd":a[681],"yMMMd":a[679],"yMd":a[682]},[a[683],a[684],a[685],a[686],a[687],a[688],a[689],a[690],a[691],a[692],a[693],a[694]],[a[695],a[696],a[697],a[698],a[699],a[700],a[701],a[702],a[703],a[704],a[705],a[706]],[a[707],a[68],a[188],a[93],a[708],a[62],a[63]],[a[709],a[710],a[711],a[712],a[713],a[714],a[715]],[a[716],a[717],a[718],a[719],a[720],a[721],a[722]],{"am":a[723],"pm":a[724]},[a[725],a[726],a[189],a[190]],[a[727],a[728],a[189],a[190]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"GHS":a[729],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[730],"GyMMMEd":a[731],"h":a[28],"H":a[481],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[39],"MEd":a[732],"MMM":a[41],"MMMd":a[42],"MMMEd":a[733],"MMMMd":a[44],"MMMMEd":a[734],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[735],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[736],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[737],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[738]},[a[739],a[740],a[741],a[742],a[743],a[744],a[744],a[745],a[746],a[745],a[747],a[748]],[a[749],a[750],a[751],a[752],a[753],a[754],a[755],a[756],a[757],a[758],a[759],a[760]],[a[761],a[762],a[751],a[763],a[753],a[754],a[755],a[764],a[765],a[766],a[767],a[768]],[a[769],a[770],a[741],a[771],a[772],a[773],a[774]],[a[775],a[776],a[777],a[778],a[779],a[780],a[781]],[a[775],a[776],a[782],a[778],a[779],a[780],a[781]],{"am":a[783],"pm":a[784]},[a[785],a[786],a[787],a[788],a[789],a[790],a[791],a[792],a[793],a[794],a[795],a[796],a[797]],[a[798],a[799],a[189],a[190]],[a[800],a[801],a[189],a[799]],{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"ETB":a[803],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[804],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[805],"GyMMMEd":a[806],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[807],"MEd":a[808],"MMdd":a[809],"MMM":a[41],"MMMd":a[543],"MMMEd":a[810],"MMMMd":a[811],"MMMMEd":a[812],"ms":a[45],"y":a[46],"yM":a[813],"yMd":a[814],"yMEd":a[815],"yMM":a[816],"yMMM":a[50],"yMMMd":a[817],"yMMMEd":a[818],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[819],"yMMMMd":a[820],"yMMMd":a[821],"yMd":a[814]},[a[822],a[823],a[824],a[825],a[826],a[827],a[828],a[829],a[830],a[831],a[832],a[833]],[a[834],a[835],a[836],a[837],a[838],a[839],a[840],a[841],a[842],a[843],a[844],a[845]],[a[846],a[827],a[847],a[848],a[849],a[850],a[830]],[a[851],a[852],a[853],a[854],a[855],a[856],a[857]],[a[858]],{"am":a[859],"pm":a[824]},[a[860],a[861],a[862],a[863],a[864],a[865],a[866],a[867],a[868],a[869],a[870],a[871],a[872]],[a[873],a[874],a[875],a[876],a[877],a[878],a[879],a[880],a[881],a[882],a[883],a[884],a[885]],[a[886],a[887],a[888],a[889],a[890],a[891],a[892],a[893],a[894],a[895],a[896],a[897],a[898]],[a[899],a[824],a[189],a[900]],[a[901],a[902],a[189],a[903]],[a[904],a[905],a[906],a[907],a[908],a[909],a[910],a[911],a[912],a[913],a[914],a[915],a[916],a[917]],[a[859]],[a[860],a[861],a[862],a[863],a[864],a[865],a[866],a[867],a[868],a[869],a[870],a[871]],[a[918],a[919],a[920],a[921],a[922],a[923],a[924],a[925],a[926],a[927],a[928],a[929]],[a[930]],[a[931],a[932],a[933],a[934],a[935],a[936],a[937],a[938],a[939],a[940],a[941],a[942],a[943],a[944],a[945],a[946],a[947],a[948],a[949],a[950],a[951],a[952],a[953],a[954],a[955],a[956],a[957],a[958],a[959],a[960],a[961],a[962],a[963],a[964],a[965],a[966],a[967],a[968],a[969],a[970],a[971],a[972],a[973],a[974],a[975],a[976],a[977],a[978],a[979],a[980],a[981],a[982],a[983],a[984],a[985],a[986],a[987],a[988],a[989],a[990],a[991],a[992],a[993],a[994],a[995],a[996],a[997],a[998],a[999],a[1000],a[1001],a[1002],a[1003],a[1004],a[1005],a[1006],a[1007],a[1008],a[1009],a[1010],a[1011],a[1012],a[1013],a[1014],a[1015],a[1016],a[1017],a[1018],a[1019],a[1020],a[1021],a[1022],a[1023],a[1024],a[1025],a[1026],a[1027],a[1028],a[1029],a[1030],a[1031],a[1032],a[1033],a[1034],a[1035],a[1036],a[1037],a[1038],a[1039],a[1040],a[1041],a[1042],a[1043],a[1044],a[1045],a[1046],a[1047],a[1048],a[1049],a[1050],a[1051],a[1052],a[1053],a[1054],a[1055],a[1056],a[1057],a[1058],a[1059],a[1060],a[1061],a[1062],a[1063],a[1064],a[1065],a[1066],a[1067],a[1068],a[1069],a[1070],a[1071],a[1072],a[1073],a[1074],a[1075],a[1076],a[1077],a[1078],a[1079],a[1080],a[1081],a[1082],a[1083],a[1084],a[1085],a[1086],a[1087],a[1088],a[1089],a[1090],a[1091],a[1092],a[1093],a[1094],a[1095],a[1096],a[1097],a[1098],a[1099],a[1100],a[1101],a[1102],a[1103],a[1104],a[1105],a[1106],a[1107],a[1108],a[1109],a[1110],a[1111],a[1112],a[1113],a[1114],a[1115],a[1116],a[1117],a[1118],a[1119],a[1120],a[1121],a[1122],a[1123],a[1124],a[1125],a[1126],a[1127],a[1128],a[1129],a[1130],a[1131],a[1132],a[1133],a[1134],a[1135],a[1136],a[1137],a[1138],a[1139],a[1140],a[1141],a[1142],a[1143],a[1144],a[1145],a[1146],a[1147],a[1148],a[1149],a[1150],a[1151],a[1152],a[1153],a[1154],a[1155],a[1156],a[1157],a[1158],a[1159],a[1160],a[1161],a[1162],a[1163],a[1164],a[1165],a[1166]],[a[1167],a[1168],a[1169],a[1170],a[1171],a[1172],a[1173],a[1174],a[1175],a[1176],a[1177],a[1178]],[a[1179]],[a[499],a[1180]],[a[1181],a[501]],{"positivePattern":a[1182],"negativePattern":a[1183]},{"decimal":a[1184],"group":a[1185],"nan":a[1186],"plusSign":a[1187],"minusSign":a[1188],"percentSign":a[1189],"infinity":a[514]},{"decimal":a[508],"group":a[509],"nan":a[1190],"plusSign":a[1191],"minusSign":a[1192],"percentSign":a[1189],"infinity":a[514]},{"AED":a[1193],"AUD":a[802],"BHD":a[1194],"BRL":a[516],"CAD":a[517],"CNY":a[518],"DZD":a[1195],"EGP":a[1196],"EUR":a[519],"GBP":a[520],"HKD":a[521],"IDR":a[1197],"ILS":a[522],"INR":a[523],"IQD":a[1198],"IRR":a[1199],"JOD":a[1200],"JPY":a[600],"KMF":a[1201],"KRW":a[525],"KWD":a[1202],"LBP":a[1203],"LYD":a[1204],"MAD":a[1205],"MRO":a[1206],"MXN":a[526],"NZD":a[527],"OMR":a[1207],"PKR":a[1208],"QAR":a[1209],"SAR":a[1210],"SDD":a[1211],"SDG":a[1212],"SSP":a[1213],"SYP":a[1214],"THB":a[601],"TND":a[1215],"TRY":a[1216],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534],"XXX":a[1217],"YER":a[1218]},[a[899],a[824],a[899],a[900]],[a[901],a[902],a[901],a[903]],{"AED":a[1193],"AUD":a[802],"BHD":a[1194],"BRL":a[516],"CAD":a[517],"CNY":a[518],"DJF":a[1219],"DZD":a[1195],"EGP":a[1196],"EUR":a[519],"GBP":a[520],"HKD":a[521],"IDR":a[1197],"ILS":a[522],"INR":a[523],"IQD":a[1198],"IRR":a[1199],"JOD":a[1200],"JPY":a[600],"KMF":a[1201],"KRW":a[525],"KWD":a[1202],"LBP":a[1203],"LYD":a[1204],"MAD":a[1205],"MRO":a[1206],"MXN":a[526],"NZD":a[527],"OMR":a[1207],"PKR":a[1208],"QAR":a[1209],"SAR":a[1210],"SDD":a[1211],"SDG":a[1212],"SSP":a[1213],"SYP":a[1214],"THB":a[601],"TND":a[1215],"TRY":a[1216],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534],"XXX":a[1217],"YER":a[1218]},[a[850],a[823],a[824],a[825],a[824],a[850],a[850],a[825],a[830],a[825],a[827],a[833]],[a[1220],a[1221],a[836],a[1222],a[1223],a[1224],a[1225],a[1226],a[842],a[843],a[844],a[845]],{"decimal":a[509],"group":a[508],"nan":a[1190],"plusSign":a[1191],"minusSign":a[1192],"percentSign":a[1189],"infinity":a[514]},{"AED":a[1193],"AUD":a[802],"BHD":a[1194],"BRL":a[516],"CAD":a[517],"CNY":a[518],"DZD":a[1195],"EGP":a[1196],"ERN":a[1227],"EUR":a[519],"GBP":a[520],"HKD":a[521],"IDR":a[1197],"ILS":a[522],"INR":a[523],"IQD":a[1198],"IRR":a[1199],"JOD":a[1200],"JPY":a[600],"KMF":a[1201],"KRW":a[525],"KWD":a[1202],"LBP":a[1203],"LYD":a[1204],"MAD":a[1205],"MRO":a[1206],"MXN":a[526],"NZD":a[527],"OMR":a[1207],"PKR":a[1208],"QAR":a[1209],"SAR":a[1210],"SDD":a[1211],"SDG":a[1212],"SSP":a[1213],"SYP":a[1214],"THB":a[601],"TND":a[1215],"TRY":a[1216],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534],"XXX":a[1217],"YER":a[1218]},{"hmmsszzzz":a[1228],"hmsz":a[1229],"hms":a[1230],"hm":a[1231]},[a[831],a[1232],a[1233],a[827],a[825],a[846],a[1234],a[1233],a[825],a[1234],a[1234],a[831]],[a[1235],a[908],a[910],a[911],a[912],a[1236],a[914],a[915],a[916],a[1237],a[1238],a[1239]],[a[1235],a[908],a[910],a[911],a[912],a[1236],a[914],a[915],a[916],a[1240],a[1238],a[1239]],{"AED":a[1193],"AUD":a[802],"BHD":a[1194],"BRL":a[516],"CAD":a[517],"CNY":a[518],"DZD":a[1195],"EGP":a[1196],"EUR":a[519],"GBP":a[520],"HKD":a[521],"IDR":a[1197],"ILS":a[522],"INR":a[523],"IQD":a[1198],"IRR":a[1199],"JOD":a[1200],"JPY":a[600],"KMF":a[1201],"KRW":a[525],"KWD":a[1202],"LBP":a[1203],"LYD":a[1204],"MAD":a[1205],"MRO":a[1206],"MXN":a[526],"NZD":a[527],"OMR":a[1207],"PKR":a[1208],"QAR":a[1209],"SAR":a[1210],"SDD":a[1211],"SSP":a[1213],"SYP":a[1214],"THB":a[601],"TND":a[1215],"TRY":a[1216],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534],"XXX":a[1217],"YER":a[1218]},[a[822],a[823],a[824],a[825],a[824],a[827],a[828],a[829],a[1232],a[831],a[832],a[833]],[a[834],a[835],a[836],a[837],a[1223],a[839],a[1241],a[1242],a[1243],a[843],a[1244],a[1245]],[a[822],a[823],a[824],a[1246],a[826],a[827],a[828],a[829],a[1232],a[831],a[832],a[833]],[a[834],a[835],a[836],a[1247],a[838],a[839],a[840],a[1248],a[1249],a[843],a[844],a[1250]],{"AED":a[1193],"AUD":a[802],"BHD":a[1194],"BRL":a[516],"CAD":a[517],"CNY":a[518],"DZD":a[1195],"EGP":a[1196],"EUR":a[519],"GBP":a[520],"HKD":a[521],"IDR":a[1197],"ILS":a[522],"INR":a[523],"IQD":a[1198],"IRR":a[1199],"JOD":a[1200],"JPY":a[600],"KMF":a[1201],"KRW":a[525],"KWD":a[1202],"LBP":a[1203],"LYD":a[1204],"MAD":a[1205],"MRO":a[1206],"MXN":a[526],"NZD":a[527],"OMR":a[1207],"PKR":a[1208],"QAR":a[1209],"SAR":a[1210],"SDD":a[1211],"SDG":a[1212],"SOS":a[65],"SSP":a[1213],"SYP":a[1214],"THB":a[601],"TND":a[1215],"TRY":a[1216],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534],"XXX":a[1217],"YER":a[1218]},{"AED":a[1193],"AUD":a[802],"BHD":a[1194],"BRL":a[516],"CAD":a[517],"CNY":a[518],"DZD":a[1195],"EGP":a[1196],"EUR":a[519],"GBP":a[1251],"HKD":a[521],"IDR":a[1197],"ILS":a[522],"INR":a[523],"IQD":a[1198],"IRR":a[1199],"JOD":a[1200],"JPY":a[600],"KMF":a[1201],"KRW":a[525],"KWD":a[1202],"LBP":a[1203],"LYD":a[1204],"MAD":a[1205],"MRO":a[1206],"MXN":a[526],"NZD":a[527],"OMR":a[1207],"PKR":a[1208],"QAR":a[1209],"SAR":a[1210],"SDD":a[1211],"SDG":a[1212],"SSP":a[520],"SYP":a[1214],"THB":a[601],"TND":a[1215],"TRY":a[1216],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534],"XXX":a[1217],"YER":a[1218]},{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[1252],"MEd":a[1253],"MMM":a[41],"MMMd":a[42],"MMMEd":a[1254],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[1255],"yMd":a[547],"yMEd":a[1256],"yMMM":a[1257],"yMMMd":a[679],"yMMMEd":a[1258],"yMMMM":a[614],"yQQQ":a[1259],"yQQQQ":a[1260]},{"yMMMMEEEEd":a[1261],"yMMMMd":a[681],"yMMMd":a[679],"yMd":a[547]},[a[1262],a[1263],a[1264],a[1265],a[1266],a[1267],a[1268],a[1269],a[1270],a[1271],a[1272],a[1273]],[a[1274],a[1275],a[1264],a[1265],a[1266],a[1267],a[1268],a[1276],a[1277],a[1278],a[1279],a[1280]],[a[1281],a[1282],a[1283],a[1284],a[1285],a[1286],a[1287]],[a[1288],a[1289],a[1290],a[1291],a[1292],a[1293],a[1294]],{"am":a[1295],"pm":a[1296]},[a[189],a[190],a[189],a[190]],[a[1297],a[501]],{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[39],"MEd":a[40],"MMM":a[41],"MMMd":a[42],"MMMEd":a[43],"MMMMd":a[44],"MMMMEd":a[677],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[49],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[52],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[1298],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[738]},[a[69],a[70],a[1299],a[72],a[558],a[74],a[75],a[1300],a[77],a[1301],a[79],a[80]],[a[1302],a[1303],a[1304],a[1305],a[558],a[1306],a[1307],a[1308],a[1309],a[1310],a[1311],a[1312]],[a[61],a[61],a[61],a[61],a[64],a[1313],a[61]],[a[1314],a[1315],a[1316],a[1317],a[1318],a[1319],a[1320]],[a[1321],a[1322],a[1323],a[1324],a[1325],a[1326],a[1327]],{"am":a[1328],"pm":a[1329]},[a[1330],a[1331],a[189],a[190]],[a[1332],a[1333],a[189],a[190]],{"positivePattern":a[1334],"negativePattern":a[1335]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"TZS":a[1336],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[542],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[1341],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[1342],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[1343],"yMMMMd":a[1344],"yMMMd":a[549],"yMd":a[1345]},[a[1346],a[62],a[63],a[64],a[63],a[1346],a[1346],a[64],a[65],a[66],a[1347],a[64]],[a[1348],a[1349],a[1350],a[1351],a[1352],a[1353],a[1354],a[1355],a[1356],a[1357],a[1358],a[1359]],[a[1360],a[1361],a[1362],a[1363],a[1364],a[1365],a[1366],a[1367],a[1368],a[1369],a[1370],a[1371]],[a[68],a[38],a[63],a[63],a[1346],a[574],a[65]],[a[1372],a[1373],a[1350],a[1374],a[1375],a[1376],a[1377]],[a[1378],a[1379],a[1380],a[1381],a[1382],a[1383],a[1384]],[a[1385]],[a[1386]],{"am":a[1387],"pm":a[1388]},[a[1389],a[1390],a[1391],a[1392],a[1393],a[1394],a[1395],a[1396],a[1397],a[1398],a[1399],a[1400]],[a[1401],a[1402],a[1403],a[1404],a[1405],a[1406],a[1407],a[1408],a[1409],a[1410],a[1411],a[1412],a[1413]],[a[1414],a[1415],a[1416],a[1417],a[1418],a[1419],a[1420],a[1421],a[1422],a[1423],a[1424],a[1425],a[1426]],[a[1427],a[1428]],[a[1429],a[1430]],[a[1431],a[1432]],[a[1433],a[1434],a[1435],a[1436]],[a[1437],a[1438],a[1439],a[1440]],[a[1437],a[1441],a[1442],a[1443]],[a[1444],a[250],a[251],a[252],a[253],a[254],a[255],a[256],a[257],a[258],a[1445],a[1446],a[1447],a[1448],a[1449],a[264],a[265],a[266],a[267],a[268],a[269],a[270],a[271],a[272],a[273],a[1450],a[1451],a[1452],a[1453],a[278],a[1454],a[280],a[281],a[282],a[1455],a[284],a[1456],a[286],a[287],a[288],a[289],a[290],a[291],a[292],a[293],a[294],a[295],a[1457],a[297],a[298],a[299],a[300],a[301],a[302],a[303],a[304],a[305],a[306],a[307],a[308],a[309],a[310],a[311],a[312],a[313],a[314],a[315],a[316],a[1458],a[318],a[319],a[320],a[321],a[322],a[323],a[324],a[325],a[326],a[327],a[328],a[329],a[330],a[331],a[332],a[333],a[334],a[335],a[336],a[337],a[338],a[339],a[340],a[341],a[342],a[343],a[344],a[345],a[346],a[347],a[348],a[349],a[350],a[351],a[352],a[353],a[354],a[355],a[356],a[357],a[358],a[359],a[360],a[361],a[362],a[363],a[364],a[365],a[366],a[367],a[368],a[369],a[370],a[371],a[372],a[373],a[374],a[375],a[376],a[377],a[378],a[379],a[380],a[381],a[382],a[383],a[384],a[385],a[386],a[387],a[388],a[389],a[390],a[391],a[392],a[393],a[394],a[395],a[396],a[397],a[398],a[399],a[400],a[401],a[402],a[403],a[404],a[405],a[406],a[407],a[408],a[409],a[410],a[411],a[412],a[413],a[414],a[415],a[416],a[417],a[418],a[419],a[420],a[421],a[422],a[423],a[424],a[425],a[426],a[427],a[428],a[429],a[430],a[431],a[432],a[433],a[434],a[435],a[436],a[437],a[438],a[439],a[440],a[441],a[442],a[443],a[444],a[445],a[446],a[447],a[448],a[449],a[450],a[451],a[452],a[453],a[454],a[455],a[456],a[457],a[458],a[459],a[460],a[461],a[462],a[463],a[464],a[465],a[466],a[467],a[468],a[469],a[470],a[471],a[472],a[473],a[474],a[475],a[476],a[477],a[478],a[479],a[480],a[63],a[92],a[65],a[481]],[a[1444],a[1459],a[1460],a[1461],a[1462],a[1463],a[1464],a[1465],a[1466],a[1467],a[1445],a[1468],a[1469],a[1470],a[1471],a[1472],a[1473],a[1474],a[1475],a[1476],a[1477],a[1478],a[1479],a[1480],a[1481],a[1450],a[1451],a[1452],a[1453],a[1482],a[1454],a[1483],a[1484],a[1485],a[1455],a[1486],a[1456],a[1487],a[1488],a[1489],a[1490],a[1491],a[1492],a[1493],a[1494],a[1495],a[1496],a[1457],a[1497],a[1498],a[1499],a[1500],a[1501],a[1502],a[1503],a[1504],a[1505],a[1506],a[1507],a[1508],a[1509],a[1510],a[1511],a[1512],a[1513],a[1514],a[1515],a[1516],a[1458],a[1517],a[1518],a[1519],a[1520],a[1521],a[1522],a[1523],a[1524],a[1525],a[1526],a[1527],a[1528],a[1529],a[1530],a[1531],a[1532],a[1533],a[1534],a[1535],a[1536],a[1537],a[1538],a[1539],a[1540],a[1541],a[1542],a[1543],a[1544],a[1545],a[1546],a[1547],a[1548],a[1549],a[1550],a[1551],a[1552],a[1553],a[1554],a[1555],a[1556],a[1557],a[1558],a[1559],a[1560],a[1561],a[1562],a[1563],a[1564],a[1565],a[1566],a[1567],a[1568],a[1569],a[1570],a[1571],a[1572],a[1573],a[1574],a[1575],a[1576],a[1577],a[1578],a[1579],a[1580],a[1581],a[1582],a[1583],a[1584],a[1585],a[1586],a[1587],a[1588],a[1589],a[1590],a[1591],a[1592],a[1593],a[1594],a[1595],a[484],a[1596],a[1597],a[1598],a[1599],a[1600],a[1601],a[1602],a[1603],a[1604],a[1605],a[1606],a[1607],a[1608],a[1609],a[1610],a[1611],a[1612],a[1613],a[1614],a[1615],a[1616],a[1617],a[1618],a[1619],a[1620],a[1621],a[1622],a[1623],a[1624],a[1625],a[1626],a[1627],a[1628],a[1629],a[1630],a[1631],a[1632],a[1633],a[1634],a[1635],a[1636],a[1637],a[1638],a[1639],a[1640],a[1641],a[1642],a[1643],a[1644],a[1645],a[1646],a[1647],a[1648],a[1649],a[1650],a[1651],a[1652],a[1653],a[1654],a[1655],a[1656],a[1657],a[1658],a[1659],a[1660],a[1661],a[1662],a[1663],a[1664],a[1665],a[1666],a[1667],a[1668],a[1669],a[1670],a[1671],a[1672],a[1673],a[1674],a[1675],a[1676],a[1677],a[1678],a[482],a[483],a[1679],a[485]],[a[249],a[250],a[251],a[252],a[253],a[254],a[255],a[256],a[257],a[258],a[259],a[260],a[261],a[262],a[263],a[264],a[265],a[266],a[267],a[268],a[269],a[270],a[271],a[272],a[273],a[274],a[275],a[276],a[277],a[278],a[279],a[280],a[281],a[282],a[283],a[284],a[285],a[286],a[287],a[288],a[289],a[290],a[291],a[292],a[293],a[294],a[295],a[296],a[297],a[298],a[299],a[300],a[301],a[302],a[303],a[304],a[305],a[306],a[307],a[308],a[309],a[310],a[311],a[312],a[313],a[314],a[315],a[316],a[317],a[318],a[319],a[320],a[321],a[322],a[323],a[324],a[325],a[326],a[327],a[328],a[329],a[330],a[331],a[332],a[333],a[334],a[335],a[336],a[337],a[338],a[339],a[340],a[341],a[342],a[343],a[344],a[345],a[346],a[347],a[348],a[349],a[350],a[351],a[352],a[353],a[354],a[355],a[356],a[357],a[358],a[359],a[360],a[361],a[362],a[363],a[364],a[365],a[366],a[367],a[368],a[369],a[370],a[371],a[372],a[373],a[374],a[375],a[1680],a[377],a[378],a[379],a[380],a[381],a[382],a[383],a[384],a[385],a[386],a[387],a[388],a[389],a[390],a[391],a[392],a[393],a[394],a[395],a[396],a[397],a[398],a[399],a[400],a[401],a[402],a[403],a[404],a[405],a[406],a[407],a[408],a[409],a[410],a[411],a[412],a[413],a[414],a[415],a[416],a[417],a[418],a[419],a[420],a[421],a[422],a[423],a[424],a[425],a[426],a[427],a[428],a[429],a[430],a[431],a[432],a[433],a[434],a[435],a[436],a[437],a[438],a[439],a[440],a[441],a[442],a[443],a[444],a[445],a[446],a[447],a[448],a[449],a[450],a[451],a[452],a[453],a[454],a[455],a[456],a[457],a[458],a[459],a[460],a[461],a[462],a[463],a[464],a[465],a[466],a[467],a[468],a[469],a[470],a[471],a[472],a[473],a[474],a[475],a[476],a[477],a[478],a[479],a[480],a[482],a[483],a[1681],a[485]],[a[1682],a[1683]],[a[1682],a[500]],[a[1684],a[500]],{"decimal":a[509],"group":a[508],"nan":a[1685],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[19],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[1686],"GyMMMd":a[1687],"GyMMMEd":a[1688],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[1689],"MEd":a[1690],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1691],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[1692],"yMd":a[1693],"yMEd":a[1694],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[1695],"yMMMM":a[614],"yQQQ":a[1259],"yQQQQ":a[1260]},{"yMMMMEEEEd":a[1696],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[1697]},[a[1698],a[1699],a[1350],a[1700],a[1352],a[1701],a[1702],a[1703],a[1410],a[1704],a[1705],a[1706]],[a[1707],a[1708],a[1709],a[1710],a[1352],a[1711],a[1712],a[1713],a[1714],a[1715],a[1716],a[1717]],[a[117],a[111],a[112],a[113],a[114],a[115],a[116]],[a[1718],a[1719],a[1720],a[1721],a[1722],a[1723],a[1724]],[a[1725],a[1726],a[1727],a[1728],a[1729],a[1730],a[1731]],[a[1732],a[1733],a[1734],a[1735]],[a[1736],a[1737],a[1738],a[1739]],{"decimal":a[509],"group":a[508],"nan":a[510],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},{"AUD":a[515],"AZN":a[1740],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[1689],"MEd":a[1741],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1742],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[1692],"yMd":a[1693],"yMEd":a[1743],"yMMM":a[1744],"yMMMd":a[617],"yMMMEd":a[1745],"yMMMM":a[614],"yQQQ":a[1259],"yQQQQ":a[1260]},{"yMMMMEEEEd":a[1746],"yMMMMd":a[1747],"yMMMd":a[617],"yMd":a[1697]},[a[1748],a[1749],a[1750],a[1751],a[1752],a[1753],a[1754],a[1755],a[1756],a[1757],a[1758],a[1759]],[a[1760],a[1761],a[1762],a[1763],a[1764],a[1765],a[1766]],{"AUD":a[515],"AZN":a[1740],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[609],"MMM":a[41],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[44],"ms":a[610],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[612],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[613],"yMMMM":a[614],"yQQQ":a[54],"yQQQQ":a[55]},[a[621],a[1767],a[1767],a[1767],a[1767],a[1768],a[620],a[1768],a[17],a[1769],a[1767],a[626]],[a[1770],a[1771],a[1772],a[1773],a[1774],a[1775],a[1776],a[1777],a[1778],a[1779],a[1352],a[1780]],[a[1781],a[1782],a[1783],a[1784],a[1785],a[1786],a[1787],a[1788],a[1789],a[1790],a[1791],a[1792]],[a[620],a[620],a[653],a[1793],a[1767],a[621],a[1794]],[a[1795],a[1796],a[1797],a[1798],a[1799],a[1800],a[1801]],[a[1802],a[1803],a[1804],a[1805],a[1806],a[1807],a[1808]],{"am":a[1809],"pm":a[1810]},[a[1811],a[1812],a[189],a[190]],[a[1813],a[1814],a[189],a[190]],{"positivePattern":a[1815],"negativePattern":a[1816]},{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[1818],"EHm":a[1819],"Ehms":a[1820],"EHms":a[1821],"Gy":a[24],"GyMMM":a[1822],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[1823],"H":a[29],"hm":a[1824],"Hm":a[1825],"hms":a[1826],"Hms":a[1827],"hmsv":a[1828],"Hmsv":a[1829],"hmv":a[1830],"Hmv":a[1831],"M":a[38],"Md":a[1832],"MEd":a[1833],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"MMMMEd":a[1834],"ms":a[1835],"y":a[46],"yM":a[1836],"yMd":a[1837],"yMEd":a[1838],"yMMM":a[1839],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[1840],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[1298],"yMMMMd":a[616],"yMMMd":a[1837],"yMd":a[1841]},{"hmmsszzzz":a[1842],"hmsz":a[1843],"hms":a[1827],"hm":a[1825]},[a[1844],a[1845],a[1844],a[1846],a[1847],a[1848],a[1845],a[1849],a[1850],a[1846],a[1845],a[1844]],[a[1851],a[1852],a[1853],a[1854],a[1855],a[1856],a[1857],a[1858],a[1859],a[1860],a[1861],a[1862]],[a[1863],a[1864],a[1865],a[1866],a[1855],a[1867],a[1868],a[1869],a[1870],a[1871],a[1872],a[1873]],[a[1874],a[1875],a[1876],a[1844],a[1848],a[1875],a[1844]],[a[1877],a[1878],a[1879],a[1880],a[1881],a[1882],a[1883]],[a[1884],a[1885],a[1886],a[1887],a[1888],a[1889],a[1890]],{"am":a[1891],"pm":a[1892]},[a[1893],a[1894],a[189],a[190]],[a[1895],a[1896],a[189],a[1897]],{"AUD":a[515],"BYR":a[1898],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"MXN":a[526],"RUB":a[1899],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[61],a[62],a[63],a[1900],a[63],a[61],a[61],a[66],a[65],a[66],a[67],a[68]],[a[69],a[70],a[1299],a[1901],a[558],a[74],a[75],a[1902],a[77],a[1301],a[79],a[1903]],[a[1302],a[1303],a[1304],a[1904],a[558],a[1306],a[1307],a[1905],a[1309],a[1310],a[1311],a[1906]],[a[1907],a[1908],a[1909],a[1910],a[1911],a[1912],a[1913]],{"am":a[1914],"pm":a[1915]},[a[1916],a[1917],a[189],a[190]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534],"ZMW":a[707]},[a[481],a[574],a[68],a[92],a[481],a[65],a[65],a[67],a[92],a[707],a[707],a[707]],[a[1918],a[1919],a[1920],a[1921],a[1922],a[1923],a[1924],a[1925],a[1926],a[1927],a[1928],a[1929]],[a[1930],a[1931],a[1932],a[1933],a[1934],a[1935],a[1936],a[1937],a[1938],a[1939],a[1940],a[1941]],[a[63],a[61],a[481],a[481],a[481],a[93],a[61]],[a[1942],a[1919],a[1943],a[1944],a[1945],a[1946],a[1947]],[a[1948],a[1949],a[1950],a[1951],a[1952],a[1953],a[1954]],{"am":a[1955],"pm":a[1956]},[a[1957],a[1958],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[1959],"Ehm":a[1960],"EHm":a[1961],"Ehms":a[1962],"EHms":a[1963],"Gy":a[1964],"GyMMM":a[1965],"GyMMMd":a[1966],"GyMMMEd":a[1967],"GyMMMM":a[1968],"GyMMMMd":a[1969],"GyMMMMEd":a[1970],"h":a[28],"H":a[481],"hm":a[30],"Hm":a[1231],"hms":a[32],"Hms":a[1230],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[1971],"MEd":a[1972],"MMM":a[1973],"MMMd":a[1971],"MMMEd":a[1972],"MMMM":a[1974],"MMMMd":a[811],"MMMMdd":a[811],"MMMMEd":a[1834],"ms":a[610],"y":a[1975],"yM":a[1976],"yMd":a[1977],"yMEd":a[1978],"yMMM":a[1979],"yMMMd":a[1977],"yMMMEd":a[1978],"yMMMM":a[1980],"yMMMMd":a[1981],"yMMMMEd":a[1982],"yQQQ":a[1983],"yQQQQ":a[1984]},{"yMMMMEEEEd":a[1985],"yMMMMd":a[1981],"yMMMd":a[1977],"yMd":a[1986]},[a[1987],a[1988],a[1847],a[1876],a[1847],a[1989],a[1989],a[1876],a[1844],a[1990],a[1874],a[1991]],[a[1992],a[1993],a[1750],a[1994],a[1752],a[1995],a[1996],a[1997],a[1998],a[1999],a[2000],a[2001]],[a[2002],a[2003],a[1750],a[2004],a[1752],a[1995],a[1996],a[1755],a[2005],a[2006],a[2007],a[2008]],[a[1874],a[1875],a[1850],a[1844],a[1848],a[1875],a[1844]],[a[1877],a[1878],a[2009],a[1880],a[2010],a[1882],a[1883]],[a[2011],a[2012],a[2013],a[2014],a[2015],a[2016],a[2017]],{"am":a[2018],"pm":a[2019]},[a[2020],a[2021],a[2022],a[2023]],[a[2024],a[2025],a[2026],a[2027]],[a[2028],a[2029],a[2030],a[2031],a[2032],a[2033],a[2034],a[2035],a[2036],a[2037],a[2038],a[2039],a[2040],a[2041]],[a[2042],a[2043],a[2044],a[2045],a[2046],a[2047],a[2048],a[2049],a[2050],a[2051],a[2052],a[2053]],[a[2054],a[2055],a[2056],a[2057],a[2058],a[2059],a[2060],a[2061],a[2062],a[2063],a[2064],a[2065]],{"BGN":a[2066],"EUR":a[519],"USD":a[2067],"XAF":a[531],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[63],"Md":a[608],"MEd":a[1253],"MMd":a[2068],"MMdd":a[2069],"MMM":a[2070],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[811],"MMMMEd":a[545],"ms":a[610],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[612],"yMM":a[2071],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[613],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},[a[2072],a[62],a[63],a[64],a[63],a[2072],a[2072],a[2073],a[65],a[2074],a[67],a[68]],[a[2075],a[1349],a[1350],a[2076],a[2077],a[2078],a[2079],a[2080],a[2081],a[2082],a[2083],a[2084]],[a[2085],a[2086],a[2087],a[2088],a[2077],a[2089],a[2090],a[2080],a[2091],a[2092],a[2093],a[2094]],[a[707],a[67],a[92],a[64],a[64],a[61],a[65]],[a[2095],a[2096],a[2097],a[2098],a[2099],a[2100],a[2101]],[a[2102],a[2103],a[2104],a[2105],a[2106],a[2107],a[2108]],[a[2109],a[2110],a[189],a[190]],[a[2111],a[2112],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[19],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[2113],"GyMMMEd":a[2114],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[2115],"MMdd":a[541],"MMM":a[41],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[811],"MMMMEd":a[545],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[1341],"yMM":a[546],"yMMM":a[50],"yMMMd":a[617],"yMMMEd":a[2116],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[2117],"yMMMMd":a[1747],"yMMMd":a[617],"yMd":a[1345]},[a[2118],a[2119],a[2120],a[2121],a[1266],a[1267],a[2122],a[2123],a[2124],a[2125],a[2126],a[2127]],[a[2128],a[2129],a[2130],a[2131],a[1266],a[1267],a[1268],a[2132],a[2133],a[2134],a[2135],a[2136]],[a[2137],a[2138],a[2139],a[2140],a[2141],a[2142],a[2143]],[a[2144],a[1282],a[1283],a[1284],a[2145],a[2146],a[1287]],[a[2147],a[2148],a[2149],a[2150],a[2151],a[2152],a[2153]],{"am":a[109],"pm":a[2154]},[a[2155],a[2156],a[2157],a[2158]],[a[2159],a[2160],a[2161],a[2162],a[2163],a[2164],a[2165],a[2166],a[2167],a[2168],a[2169],a[2170]],[a[2171],a[2172],a[2173],a[2174],a[2175],a[2176],a[2177],a[2178],a[2179],a[2180],a[2181],a[2182]],[a[2183]],[a[2184],a[2185],a[2186],a[2187],a[2188],a[2189],a[2190],a[2191],a[2192],a[2193],a[2194],a[2195]],[a[2196]],{"decimal":a[508],"group":a[509],"nan":a[2197],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},{"AUD":a[515],"BDT":a[2198],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[2199],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[1252],"MEd":a[1253],"MMM":a[41],"MMMd":a[2200],"MMMEd":a[2201],"MMMMd":a[2202],"ms":a[45],"y":a[46],"yM":a[1255],"yMd":a[547],"yMEd":a[1256],"yMMM":a[2203],"yMMMd":a[2204],"yMMMEd":a[1258],"yMMMM":a[614],"yMMMMd":a[2205],"yQQQ":a[1259],"yQQQQ":a[1260]},{"yMMMMEEEEd":a[2206],"yMMMMd":a[2205],"yMMMd":a[2204],"yMd":a[547]},[a[2207],a[2208],a[2209],a[2210],a[2211],a[2212],a[2213],a[2214],a[2215],a[2216],a[2217],a[2218]],[a[2219],a[2220],a[2221],a[2222],a[2223],a[2224],a[2225],a[2226],a[2227],a[2228],a[2229],a[2230]],[a[2231],a[2232],a[2233],a[2234],a[2235],a[2236],a[2237]],[a[2238],a[2239],a[2240],a[2241],a[2242],a[2243],a[2244]],[a[2245],a[2246],a[2247],a[2248],a[2249],a[2250],a[2251]],{"am":a[2252],"pm":a[2253]},[a[2254],a[2255],a[189],a[190]],{"decimal":a[508],"group":a[509],"nan":a[2256],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[524],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[2258],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[1973],"Md":a[2069],"MEd":a[2259],"MMM":a[41],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[738],"yMEd":a[2260],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[613],"yMMMM":a[614],"yQQQ":a[54],"yQQQQ":a[55]},[a[2261],a[2262],a[2263],a[2264],a[2265],a[2266],a[2267],a[2268],a[2269],a[120],a[121],a[122]],[a[2270],a[2271],a[2272],a[2273],a[2274],a[2275],a[2276],a[2277],a[2278],a[2279],a[2280],a[2281]],[a[2282],a[2283],a[2284],a[2285],a[2274],a[2286],a[2287],a[2277],a[2288],a[2279],a[2280],a[2289]],[a[2290],a[38],a[2291],a[2292],a[708],a[2293],a[2294]],[a[2295],a[2296],a[2297],a[2298],a[2299],a[2300],a[2301]],[a[2295],a[2296],a[2284],a[2302],a[2299],a[2303],a[2304]],{"am":a[2305],"pm":a[2306]},[a[2307],a[2308],a[189],a[190]],[a[2309],a[2310],a[189],a[190]],[a[2311],a[2312]],[a[2313],a[2314]],{"AUD":a[2315],"CAD":a[2316],"EUR":a[519],"GBP":a[2317],"HKD":a[2318],"INR":a[523],"MXN":a[526],"NZD":a[2319],"USD":a[2320],"XAF":a[531],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[2321],"GyMMMd":a[26],"GyMMMEd":a[27],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[39],"MEd":a[40],"MMM":a[41],"MMMd":a[2322],"MMMEd":a[43],"MMMMd":a[44],"MMMMEd":a[677],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[547],"yMEd":a[49],"yMMM":a[50],"yMMMd":a[679],"yMMMEd":a[52],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},[a[2323],a[2324],a[2325],a[2326],a[2327],a[2328],a[2328],a[2329],a[2330],a[2331],a[2332],a[2333]],[a[2334],a[2335],a[2336],a[2337],a[2327],a[2338],a[2339],a[2340],a[2341],a[2342],a[2343],a[2344]],[a[2345],a[2346],a[2347],a[2348],a[2349],a[2350],a[2350]],[a[2351],a[2352],a[2353],a[2354],a[2355],a[2356],a[2357]],[a[2358],a[2359],a[2360],a[2361],a[2362],a[2363],a[2364]],{"am":a[2365],"pm":a[2366]},[a[2367],a[2368],a[189],a[190]],[a[2369],a[2370],a[2371],a[2372],a[2373],a[2374],a[2375],a[2376],a[2377],a[2378],a[2379],a[2380]],{"d":a[17],"E":a[18],"Ed":a[2382],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[2383],"GyMMM":a[2384],"GyMMMd":a[2385],"GyMMMEd":a[2386],"h":a[28],"H":a[29],"hm":a[2387],"Hm":a[31],"hms":a[2388],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[2389],"MEd":a[2390],"MMdd":a[2391],"MMM":a[41],"MMMd":a[2392],"MMMEd":a[2393],"MMMMd":a[2394],"MMMMEd":a[2395],"ms":a[45],"y":a[2396],"yM":a[2397],"yMd":a[2398],"yMEd":a[2399],"yMM":a[2400],"yMMM":a[2401],"yMMMd":a[2402],"yMMMEd":a[2403],"yMMMM":a[2404],"yQQQ":a[1259],"yQQQQ":a[1260]},{"yMMMMEEEEd":a[2405],"yMMMMd":a[2406],"yMMMd":a[2407],"yMd":a[2408]},[a[1794],a[625],a[1767],a[2409],a[1767],a[1794],a[1794],a[2409],a[623],a[2410],a[620],a[17]],[a[2411],a[1349],a[1350],a[1700],a[2412],a[2413],a[2414],a[2415],a[2416],a[1704],a[2417],a[2418]],[a[2419],a[2420],a[1709],a[2421],a[2412],a[2422],a[2423],a[2424],a[2425],a[2426],a[2427],a[2428]],[a[67],a[1347],a[2073],a[65],a[2429],a[1347],a[65]],[a[2430],a[2431],a[2432],a[2433],a[2434],a[2435],a[2436]],[a[2437],a[2438],a[2439],a[2440],a[2441],a[2442],a[2443]],{"am":a[2444],"pm":a[2445]},[a[2446],a[2447],a[2448],a[2449]],[a[2450],a[2451],a[2452],a[2449]],{"BAM":a[1330],"EUR":a[519],"HRK":a[2453],"INR":a[523],"JPY":a[524],"KRW":a[525],"RSD":a[2454],"THB":a[601],"TWD":a[528],"VND":a[530],"XAF":a[531],"XOF":a[533]},{"d":a[17],"E":a[18],"Ed":a[2455],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[2383],"GyMMM":a[2384],"GyMMMd":a[2385],"GyMMMEd":a[2386],"h":a[1823],"H":a[29],"hm":a[2387],"Hm":a[31],"hms":a[2388],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[2389],"MEd":a[2390],"MMM":a[41],"MMMd":a[2392],"MMMEd":a[2393],"MMMMd":a[44],"ms":a[45],"y":a[2396],"yM":a[2397],"yMd":a[2398],"yMEd":a[2399],"yMMM":a[2401],"yMMMd":a[2402],"yMMMEd":a[2403],"yMMMM":a[614],"yQQQ":a[1259],"yQQQQ":a[1260]},{"yMMMMEEEEd":a[2405],"yMMMMd":a[2406],"yMMMd":a[2398],"yMd":a[2456]},[a[2457],a[1988],a[1847],a[1876],a[1847],a[2457],a[2457],a[1876],a[1844],a[1990],a[1874],a[1991]],[a[2458],a[2459],a[2460],a[1994],a[2461],a[2462],a[2463],a[1997],a[1998],a[1999],a[2464],a[2465]],[a[2466],a[2467],a[1750],a[2004],a[2461],a[2468],a[2469],a[1755],a[2470],a[2471],a[2472],a[2473]],[a[1874],a[1875],a[2474],a[1844],a[1848],a[1875],a[1844]],[a[2475],a[2476],a[2477],a[2478],a[2479],a[2480],a[2481]],[a[2482],a[2483],a[2484],a[2485],a[2486],a[2487],a[1890]],[a[2488]],{"am":a[2489],"pm":a[2490]},[a[2491],a[2492],a[2493],a[2494],a[2495],a[2496],a[2497],a[2498],a[2499],a[2500],a[2501],a[2502],a[2503]],[a[2504],a[2505],a[2506],a[2507],a[2508],a[2509],a[2510],a[2511],a[2512],a[2513],a[2514],a[2515],a[2516]],[a[2517],a[2518],a[189],a[190]],[a[2519],a[2520],a[189],a[190]],[a[2521],a[2522],a[189],a[190]],[a[2523],a[2524],a[2525],a[2526],a[2527],a[2528],a[2529],a[2530],a[2531],a[2532],a[2533],a[2534],a[2535],a[2536]],[a[2537],a[2538],a[2539],a[2540],a[2541],a[2542],a[2543],a[2544],a[2545],a[2546],a[2547],a[2548]],[a[2549]],[a[2550],a[2551],a[2552],a[2553],a[2554],a[2555],a[2556],a[2557],a[2558],a[2063],a[2559],a[2560]],[a[2561]],[a[2562],a[2563],a[2564],a[2565],a[2566],a[2567],a[2568],a[2569],a[2570],a[2571],a[2572],a[2573],a[2574],a[2575],a[2576],a[2577],a[2578],a[2579],a[2580],a[2581],a[2582],a[2583],a[2584],a[2585],a[2586],a[2587],a[2588],a[2589],a[2590],a[2591],a[2592],a[2593],a[2594],a[2595],a[2596],a[2597],a[2598],a[2599],a[2600],a[2601],a[2602],a[2603],a[2604],a[2605],a[2606],a[2607],a[2608],a[2609],a[2610],a[2611],a[2612],a[2613],a[2614],a[2615],a[2616],a[2617],a[2618],a[2619],a[2620],a[2621],a[2622],a[2623],a[2624],a[2625],a[2626],a[2627],a[2628],a[2629],a[2630],a[2631],a[2632],a[2633],a[2634],a[2635],a[2636],a[2637],a[2638],a[2639],a[2640],a[2641],a[2642],a[2643],a[2644],a[2645],a[2646],a[2647],a[2648],a[2649],a[2650],a[2651],a[2652],a[2653],a[2654],a[2655],a[2656],a[2657],a[2658],a[2659],a[2660],a[2661],a[2662],a[2663],a[2664],a[2665],a[2666],a[2667],a[2668],a[2669],a[2670],a[2671],a[2672],a[2673],a[2674],a[2675],a[2676],a[2677],a[2678],a[2679],a[2680],a[2681],a[2682],a[2683],a[2684],a[2685],a[2686],a[2687],a[2688],a[2689],a[2690],a[2691],a[2692],a[2693],a[2694],a[2695],a[2696],a[2697],a[2698],a[2699],a[2700],a[2701],a[2702],a[2703],a[2704],a[2705],a[2706],a[2707],a[2708],a[2709],a[2710],a[2711],a[2712],a[2713],a[2714],a[2715],a[2716],a[2717],a[2718],a[2719],a[2720],a[2721],a[2722],a[2723],a[2724],a[2725],a[2726],a[2727],a[2728],a[2729],a[2730],a[2731],a[2732],a[2733],a[2734],a[2735],a[2736],a[2737],a[2738],a[2739],a[2740],a[2741],a[2742],a[2743],a[2744],a[2745],a[2746],a[2747],a[2748],a[2749],a[2750],a[2751],a[2752],a[2753],a[2754],a[2755],a[2756],a[2757],a[2758],a[2759],a[2760],a[2761],a[2762],a[2763],a[2764],a[2765],a[2766],a[2767],a[2768],a[2769],a[2770],a[2771],a[2772],a[2773],a[2774],a[2775],a[2776],a[2777],a[2778],a[2779],a[2780],a[2781],a[2782],a[2783],a[2784],a[2785],a[2786],a[2787],a[2788],a[2789],a[2790],a[2791],a[2792],a[2793],a[2794],a[2795],a[2796],a[2797]],[a[2798],a[2799],a[2800],a[2801],a[2802],a[2803],a[2804],a[2805],a[2806],a[2807],a[2808],a[2809]],[a[2810],a[2811]],{"AUD":a[515],"BAM":a[2812],"BRL":a[516],"CAD":a[517],"CNY":a[518],"CZK":a[2813],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"MXN":a[526],"NZD":a[527],"PLN":a[2814],"RSD":a[2815],"TRY":a[2816],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[2817],"Ehms":a[22],"EHms":a[2818],"Gy":a[24],"GyMMM":a[1822],"GyMMMd":a[1338],"GyMMMEd":a[1339],"GyMMMM":a[2819],"GyMMMMd":a[2820],"GyMMMMEd":a[2821],"h":a[28],"H":a[481],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[609],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"MMMMEd":a[1834],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[1341],"yMMM":a[2822],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[1342],"yMMMMd":a[1344],"yMMMMEd":a[2823],"yQQQ":a[54],"yQQQQ":a[55]},[a[2824],a[2825],a[2826],a[2827],a[2828],a[2829],a[2830],a[2831],a[2832],a[2833],a[2834],a[2835]],[a[2836],a[2837],a[2838],a[2839],a[2840],a[2841],a[2842],a[2843],a[2844],a[2845],a[2846],a[2847]],[a[2848],a[2849],a[2850],a[1363],a[2851],a[2852],a[2853],a[2854],a[2855],a[2856],a[2857],a[2858]],[a[2859],a[2860],a[2861],a[2862],a[2863],a[2864],a[2865]],[a[2866],a[2867],a[2868],a[2869],a[2870],a[2871],a[2872]],[a[2873],a[2874],a[2875],a[2876],a[2877],a[2878],a[2879]],[a[2880]],{"am":a[2881],"pm":a[2882]},[a[1433],a[1434],a[2883],a[2884]],[a[2885],a[2886],a[2887],a[2888]],{"AUD":a[802],"CNY":a[524],"ESP":a[2889],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"NZD":a[527],"THB":a[601],"TWD":a[528],"VND":a[530],"XAF":a[531],"XOF":a[533],"XPF":a[534]},{"AUD":a[802],"CNY":a[524],"ESP":a[2889],"EUR":a[519],"FRF":a[62],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"NZD":a[527],"THB":a[601],"TWD":a[528],"VND":a[530],"XAF":a[531],"XOF":a[533],"XPF":a[534]},[a[2890],a[1993],a[2460],a[1994],a[1752],a[2891],a[2892],a[1997],a[2893],a[1999],a[2894],a[2001]],[a[2895],a[2896],a[1750],a[2897],a[1752],a[2898],a[2899],a[1755],a[2900],a[2901],a[2902],a[2903]],[a[2904],a[2905],a[2906],a[2907],a[2908],a[2909],a[2910]],{"decimal":a[508],"group":a[509],"nan":a[2911],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"RUB":a[1899],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[2912],a[2913],a[2914],a[2915],a[2916],a[2917],a[2918],a[2919],a[2920],a[2921],a[2922],a[2923]],[a[2924],a[2925],a[2926],a[2927],a[2928],a[2929],a[2930],a[2931],a[2932],a[2933],a[2934],a[2935]],[a[65],a[707],a[603],a[65],a[67],a[92],a[63]],[a[2936],a[2937],a[2938],a[2939],a[2940],a[2941],a[2942]],[a[2943],a[2944],a[2945],a[2946],a[2947],a[2948],a[2949]],[a[2950],a[2951],a[189],a[190]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"UGX":a[2952],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[26],"GyMMMEd":a[27],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[1231],"hms":a[32],"Hms":a[1230],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[39],"MEd":a[40],"MMM":a[41],"MMMd":a[42],"MMMEd":a[1254],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[48],"yMEd":a[49],"yMMM":a[50],"yMMMd":a[51],"yMMMEd":a[52],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},[a[2953],a[2954],a[2955],a[2954],a[2955],a[2956],a[2957],a[2958],a[2959],a[2959],a[2960],a[2961]],[a[2962],a[2963],a[2964],a[2965],a[2966],a[2967],a[2968],a[2969],a[2970],a[2971],a[2972],a[2973]],[a[2974],a[2975],a[2976],a[2977],a[2978],a[2979],a[2980],a[2981],a[2982],a[2983],a[2984],a[2985]],[a[2986],a[2987],a[2988],a[2989],a[2960],a[2990],a[2953]],[a[2991],a[2992],a[2993],a[2994],a[2995],a[2996],a[2997]],[a[2998],a[2999],a[3000],a[3001],a[3002],a[3003],a[3004]],{"am":a[3005],"pm":a[3006]},[a[3007],a[3008],a[189],a[190]],[a[3009],a[3010],a[189],a[190]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"decimal":a[1184],"group":a[1185],"nan":a[510],"plusSign":a[1187],"minusSign":a[1188],"percentSign":a[1189],"infinity":a[514]},{"decimal":a[508],"group":a[509],"nan":a[510],"plusSign":a[1191],"minusSign":a[1192],"percentSign":a[513],"infinity":a[514]},{"d":a[3011],"E":a[18],"Ed":a[3012],"Ehm":a[20],"EHm":a[2817],"Ehms":a[22],"EHms":a[2818],"Gy":a[24],"GyMMM":a[3013],"GyMMMd":a[3014],"GyMMMEd":a[3015],"GyMMMMd":a[3016],"GyMMMMEd":a[3017],"h":a[28],"H":a[481],"hm":a[30],"Hm":a[1231],"hms":a[32],"Hms":a[1230],"hmsv":a[34],"Hmsv":a[3018],"hmv":a[36],"Hmv":a[3019],"M":a[38],"Md":a[3020],"MEd":a[3021],"MMM":a[41],"MMMd":a[3020],"MMMEd":a[3021],"MMMMd":a[2394],"MMMMEd":a[3022],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[3023],"yMEd":a[3024],"yMMM":a[1840],"yMMMd":a[3023],"yMMMEd":a[3024],"yMMMM":a[1840],"yMMMMd":a[3025],"yMMMMEd":a[3026],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[3027],"yMMMMd":a[3025],"yMMMd":a[3023],"yMd":a[1697]},[a[3028],a[3029],a[3030],a[3031],a[3032],a[3033],a[3034],a[3035],a[3036],a[3037],a[3038],a[3039]],[a[3040],a[3041],a[3042],a[3043],a[3044],a[3045],a[3046],a[3047],a[3048],a[3049],a[3050],a[3051]],[a[67],a[1347],a[3052],a[65],a[2429],a[1347],a[65]],[a[3053],a[3054],a[3055],a[3056],a[3057],a[3058],a[3059]],[a[3060],a[3061],a[3062],a[3063],a[3064],a[3065],a[3066]],{"am":a[3067],"pm":a[3068]},[a[3069],a[3070],a[189],a[190]],[a[3071],a[3072],a[189],a[190]],[a[3073],a[598]],{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"CSK":a[3074],"CZK":a[3075],"EUR":a[519],"GBP":a[520],"HKD":a[521],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"XAF":a[531],"XCD":a[532],"XEU":a[3076],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[1959],"Ehm":a[1960],"EHm":a[1961],"Ehms":a[1962],"EHms":a[3078],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[542],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[1341],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[53],"yQ":a[3079],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[1298],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[3080]},[a[1313],a[3081],a[63],a[1900],a[63],a[63],a[2293],a[64],a[63],a[481],a[92],a[3082]],[a[3083],a[3084],a[3085],a[3086],a[3087],a[3088],a[3089],a[3090],a[3091],a[3092],a[3093],a[3094]],[a[3095],a[3096],a[3097],a[3086],a[3087],a[3098],a[3099],a[3090],a[3091],a[3100],a[3101],a[3102]],[a[65],a[3103],a[63],a[63],a[1313],a[2293],a[65]],[a[2295],a[3104],a[3085],a[3105],a[3106],a[3107],a[3108]],[a[3109],a[3110],a[3111],a[3112],a[3113],a[3114],a[3115]],[a[3116],a[66],a[189],a[190]],[a[3117],a[2833],a[189],a[190]],[a[3118],a[3119],a[3120],a[3121]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[3011],"E":a[18],"Ed":a[3123],"Ehm":a[3124],"EHm":a[1819],"Ehms":a[3125],"EHms":a[1821],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[3126],"GyMMMEd":a[3127],"h":a[28],"H":a[29],"hm":a[3128],"Hm":a[1825],"hms":a[3129],"Hms":a[1827],"hmsv":a[3130],"Hmsv":a[1829],"hmv":a[3131],"Hmv":a[1831],"M":a[63],"Md":a[608],"MEd":a[609],"MMdd":a[2069],"MMM":a[2070],"MMMd":a[3132],"MMMEd":a[3133],"MMMMd":a[2394],"MMMMEd":a[3022],"ms":a[1835],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[612],"yMM":a[2071],"yMMM":a[50],"yMMMd":a[3134],"yMMMEd":a[3135],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[3136],"yMMMMd":a[3025],"yMMMd":a[3134],"yMd":a[738]},[a[3137],a[3138],a[3139],a[3140],a[2412],a[3141],a[2842],a[3142],a[3143],a[3144],a[2846],a[3145]],[a[2419],a[2420],a[3146],a[2421],a[2412],a[2422],a[2423],a[2424],a[3147],a[3148],a[3149],a[3150]],[a[65],a[63],a[92],a[66],a[92],a[62],a[38]],[a[3151],a[3152],a[3153],a[3154],a[3155],a[3156],a[3157]],[a[3158],a[3159],a[3160],a[3161],a[3162],a[3163],a[3164]],[a[3165],a[3166],a[3167],a[3168]],[a[3169],a[3170],a[3171],a[3172]],[a[3169],a[3170],a[3173],a[3174]],{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"DKK":a[3175],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"hmmsszzzz":a[3176],"hmsz":a[3177],"hms":a[3129],"hm":a[3128]},[a[1313],a[707],a[707],a[707],a[707],a[707],a[63],a[93],a[1313],a[1313],a[1313],a[1313]],[a[3178],a[3179],a[3180],a[3181],a[3182],a[3183],a[3184],a[3185],a[3186],a[3187],a[3188],a[3189]],[a[3190],a[3191],a[3192],a[3193],a[3194],a[3195],a[3196],a[3197],a[3198],a[3199],a[3200],a[3201]],[a[61],a[61],a[707],a[707],a[707],a[707],a[67]],[a[3202],a[3203],a[3179],a[3180],a[3181],a[3182],a[3204]],[a[3205],a[3206],a[3207],a[3208],a[3209],a[3210],a[3211]],{"am":a[3212],"pm":a[3213]},[a[3214],a[671],a[189],a[190]],[a[3215],a[3216],a[189],a[190]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KES":a[3217],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[2455],"Ehm":a[20],"EHm":a[1961],"Ehms":a[1962],"EHms":a[3078],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[3126],"GyMMMEd":a[3219],"h":a[28],"H":a[3220],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[3221],"MEd":a[3222],"MMd":a[3223],"MMdd":a[2389],"MMM":a[41],"MMMd":a[3132],"MMMEd":a[3224],"MMMMd":a[2394],"MMMMEd":a[2395],"ms":a[45],"y":a[46],"yM":a[1836],"yMd":a[1837],"yMEd":a[1838],"yMM":a[1692],"yMMdd":a[1693],"yMMM":a[50],"yMMMd":a[3134],"yMMMEd":a[3225],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[3226],"yMMMMd":a[3025],"yMMMd":a[1693],"yMd":a[1697]},[a[554],a[555],a[3227],a[557],a[3087],a[1306],a[3228],a[561],a[562],a[563],a[564],a[3229]],[a[3230],a[3231],a[3227],a[84],a[3087],a[1306],a[3228],a[87],a[88],a[572],a[90],a[3232]],[a[65],a[63],a[68],a[63],a[68],a[62],a[65]],[a[575],a[3233],a[577],a[3234],a[579],a[3235],a[581]],[a[3236],a[3237],a[3238],a[3239],a[3240],a[3241],a[3242]],{"am":a[3243],"pm":a[3244]},[a[3245],a[3246],a[3247],a[3248]],[a[3245],a[3246],a[3249],a[3250]],{"ATS":a[3251],"AUD":a[802],"BGM":a[3252],"BGO":a[3253],"BRL":a[516],"CAD":a[517],"CNY":a[518],"DEM":a[3254],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[3255],a[555],a[3227],a[557],a[3087],a[1306],a[3228],a[561],a[562],a[563],a[564],a[3229]],[a[3256],a[3231],a[3227],a[84],a[3087],a[1306],a[3228],a[87],a[88],a[572],a[90],a[3232]],{"positivePattern":a[1182],"negativePattern":a[3257]},{"decimal":a[508],"group":a[3258],"nan":a[510],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},{"ATS":a[3251],"AUD":a[802],"BGM":a[3252],"BGO":a[3253],"BRL":a[516],"CAD":a[517],"CNY":a[518],"DEM":a[3254],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"ATS":a[3251],"AUD":a[802],"BGM":a[3252],"BGO":a[3253],"BRL":a[516],"CAD":a[517],"CNY":a[518],"DEM":a[3254],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"LUF":a[62],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[3259],a[62],a[63],a[64],a[63],a[3259],a[3259],a[2073],a[65],a[66],a[67],a[68]],[a[3260],a[3261],a[71],a[3262],a[3263],a[3264],a[3265],a[3266],a[3267],a[1301],a[3268],a[3269]],[a[3270],a[3271],a[3272],a[3273],a[3263],a[3274],a[3275],a[3266],a[3276],a[3277],a[3278],a[3279]],[a[481],a[92],a[92],a[38],a[63],a[2072],a[65]],[a[1318],a[3280],a[3281],a[3282],a[3283],a[3284],a[3285]],[a[3286],a[3287],a[3288],a[3289],a[1325],a[3290],a[3291]],{"am":a[3292],"pm":a[3293]},[a[3294],a[3295],a[189],a[190]],[a[3296],a[3297],a[189],a[190]],{"decimal":a[508],"group":a[599],"nan":a[510],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},{"d":a[17],"E":a[18],"Ed":a[2455],"Ehm":a[1960],"EHm":a[3298],"Ehms":a[1962],"EHms":a[3078],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[3126],"GyMMMEd":a[3219],"h":a[28],"H":a[3299],"hm":a[30],"Hm":a[3300],"hms":a[32],"Hms":a[1230],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[3221],"MEd":a[3222],"MMM":a[41],"MMMd":a[3132],"MMMEd":a[3224],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[1836],"yMd":a[1837],"yMEd":a[1838],"yMMM":a[50],"yMMMd":a[3134],"yMMMEd":a[3225],"yMMMM":a[614],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[3226],"yMMMMd":a[3025],"yMMMd":a[1837],"yMd":a[1841]},[a[3137],a[3138],a[3301],a[3140],a[3302],a[3141],a[2842],a[3303],a[3143],a[3144],a[3304],a[3145]],[a[3305],a[3306],a[3307],a[3308],a[3309],a[3310],a[3311],a[3312],a[3313],a[3314],a[3315],a[3316]],[a[620],a[3317],a[3318],a[623],a[623],a[3317],a[623]],[a[1776],a[3319],a[3320],a[3321],a[3322],a[3323],a[3324]],[a[3325],a[3326],a[3327],a[3328],a[3329],a[3330],a[3066]],{"am":a[3331],"pm":a[3332]},[a[3333],a[3334],a[3335],a[3336]],[a[3337],a[3338],a[3339],a[3340]],{"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"MXN":a[526],"NZD":a[527],"PLN":a[3341],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"yMMMMEEEEd":a[615],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[611]},[a[17],a[1793],a[623],a[17],a[3342],a[3342],a[1767],a[17],a[620],a[1767],a[622],a[3342]],[a[3343],a[3344],a[3345],a[3346],a[3347],a[3348],a[3349],a[3350],a[3351],a[1352],a[3352],a[3353]],[a[3354],a[3355],a[3356],a[3357],a[3358],a[3359],a[3360],a[3361],a[3362],a[3363],a[3364],a[3365]],[a[3342],a[1767],a[621],a[1767],a[1793],a[3366],a[3342]],[a[3367],a[3368],a[3369],a[3370],a[3371],a[3372],a[3373]],[a[3374],a[3375],a[3376],a[3377],a[3378],a[3379],a[3380]],{"am":a[3381],"pm":a[3382]},[a[3383],a[3384],a[189],a[190]],[a[3385],a[3386],a[189],a[190]],[a[65],a[62],a[63],a[64],a[63],a[65],a[65],a[2073],a[65],a[66],a[67],a[68]],[a[2294],a[3387],a[3388],a[3389],a[3263],a[2290],a[3390],a[3266],a[3391],a[3392],a[3393],a[3394]],[a[3395],a[3396],a[3397],a[3398],a[3399],a[3400],a[3401],a[3266],a[3402],a[3403],a[3404],a[3405]],[a[68],a[92],a[92],a[64],a[64],a[64],a[65]],[a[3406],a[3407],a[3408],a[3282],a[3409],a[3410],a[3411]],[a[3412],a[3413],a[3414],a[3415],a[3416],a[3417],a[3418]],[a[3419],a[3420],a[189],a[190]],[a[3421],a[3422],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[19],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[3423],"GyMMMd":a[606],"GyMMMEd":a[3424],"h":a[3425],"H":a[3426],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[3427],"MEd":a[3428],"MMM":a[3429],"MMMd":a[3430],"MMMEd":a[3431],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[3432],"yMd":a[3433],"yMEd":a[3434],"yMMM":a[3435],"yMMMd":a[679],"yMMMEd":a[3436],"yMMMM":a[614],"yQQQ":a[1259],"yQQQQ":a[1260]},{"yMMMMEEEEd":a[3437],"yMMMMd":a[3438],"yMMMd":a[3439],"yMd":a[547]},{"hmmsszzzz":a[3440],"hmsz":a[3441],"hms":a[3442],"hm":a[3443]},[a[3444],a[3445],a[3446],a[114],a[3447],a[3448],a[3449],a[3450],a[119],a[3451],a[3452],a[3453]],[a[3444],a[3445],a[3446],a[3454],a[3447],a[3448],a[3449],a[3450],a[3455],a[3451],a[3452],a[122]],[a[3456],a[3457],a[3458],a[3459],a[3460],a[3461],a[3462],a[3463],a[3464],a[3465],a[3466],a[3467]],[a[2232],a[3468],a[2234],a[2235],a[3469],a[2237],a[2231]],[a[3470],a[3471],a[3472],a[3473],a[3474],a[3475],a[3476]],[a[2246],a[2247],a[2248],a[2249],a[2250],a[2251],a[2245]],{"am":a[3477],"pm":a[3478]},[a[3479],a[501]],{"decimal":a[508],"group":a[509],"nan":a[3480],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[3481]},{"AUD":a[802],"BRL":a[516],"BTN":a[3482],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"INR":a[523],"JPY":a[600],"KRW":a[3483],"MXN":a[526],"NZD":a[527],"THB":a[3484],"TWD":a[528],"USD":a[602],"VND":a[530],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[63],a[707],a[707],a[707],a[2293],a[2293],a[63],a[707],a[707],a[1313],a[1313],a[1313]],[a[3485],a[3486],a[3487],a[3181],a[3488],a[3489],a[3490],a[3491],a[3492],a[3187],a[3188],a[3493]],[a[3494],a[3495],a[3496],a[3497],a[3498],a[3499],a[3500],a[3501],a[3502],a[3503],a[3504],a[3505]],[a[707],a[67],a[67],a[67],a[64],a[63],a[67]],[a[3506],a[3507],a[3508],a[3509],a[3510],a[3511],a[3512]],[a[3513],a[3514],a[3515],a[3516],a[3517],a[3518],a[3519]],{"am":a[3520],"pm":a[3521]},[a[3522],a[3523],a[189],a[190]],[a[3524],a[3525],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[3527],"EHm":a[21],"Ehms":a[3528],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[3529],"GyMMMEd":a[3530],"h":a[3531],"H":a[29],"hm":a[3532],"Hm":a[31],"hms":a[3533],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[39],"MEd":a[40],"MMM":a[41],"MMMd":a[3534],"MMMEd":a[3535],"MMMMd":a[3536],"MMMMEd":a[3537],"ms":a[3538],"y":a[46],"yM":a[47],"yMd":a[48],"yMEd":a[49],"yMMM":a[50],"yMMMd":a[3539],"yMMMEd":a[52],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[3540],"yMMMMd":a[3541],"yMMMd":a[3539],"yMd":a[58]},{"hmmsszzzz":a[3542],"hmsz":a[3543],"hms":a[3533],"hm":a[3532]},[a[17],a[17],a[622],a[2409],a[17],a[1767],a[623],a[17],a[2409],a[621],a[2409],a[17]],[a[3544],a[3545],a[3546],a[3547],a[3548],a[3549],a[3550],a[3551],a[3552],a[3553],a[3554],a[3555]],[a[3556],a[3557],a[3558],a[3559],a[3560],a[3561],a[3562],a[3563],a[3564],a[3565],a[3566],a[3567]],[a[621],a[17],a[1769],a[621],a[46],a[625],a[1767]],[a[3568],a[3569],a[3570],a[3571],a[3572],a[3573],a[3574]],[a[3575],a[3576],a[3577],a[3578],a[3579],a[3580],a[3581]],{"am":a[3582],"pm":a[3583]},[a[3584],a[3585],a[3586],a[3587]],[a[3588],a[3589],a[3586],a[3587]],{"decimal":a[508],"group":a[509],"nan":a[3590],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"GHS":a[729],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[1822],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[542],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"MMMMEd":a[1834],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[1341],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[53],"yQQQ":a[1259],"yQQQQ":a[1260]},{"yMMMMEEEEd":a[1298],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[1345]},[a[3592],a[3593],a[3594],a[3595],a[3594],a[3592],a[3592],a[3595],a[3596],a[3597],a[3598],a[3599]],[a[3600],a[3601],a[3602],a[3603],a[3604],a[3605],a[3606],a[3607],a[3608],a[3609],a[3610],a[3611]],[a[3612],a[3613],a[3614],a[3615],a[3616],a[3617],a[3618],a[3619],a[3620],a[3621],a[3622],a[3623]],[a[3624],a[3599],a[3625],a[3625],a[3626],a[3626],a[3596]],[a[3627],a[3628],a[3629],a[3630],a[3631],a[3632],a[3633]],[a[3634],a[3635],a[3636],a[3637],a[3638],a[3639],a[3640]],{"am":a[3641],"pm":a[3642]},[a[3643],a[3644],a[3645],a[3646]],[a[3647],a[3648],a[3649],a[3650]],[a[3651],a[598]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"GRD":a[3652],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[2069],"MEd":a[3653],"MMdd":a[2069],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[738],"yMEd":a[3654],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[529],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[3655],"Md":a[2069],"MEd":a[3653],"MMdd":a[2069],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[738],"yMEd":a[3654],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[3656],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[1298],"yMMMMd":a[3657],"yMMMd":a[3658],"yMd":a[1345]},[a[554],a[555],a[3659],a[557],a[73],a[559],a[560],a[561],a[562],a[3660],a[564],a[3661]],[a[3662],a[3663],a[3664],a[3665],a[3666],a[3667],a[581]],[a[3668],a[3669],a[3670],a[3671],a[3672],a[3673],a[3674]],{"am":a[3675],"pm":a[3676]},{"AUD":a[529],"SCR":a[3677],"XPF":a[3678]},{"AUD":a[515],"BBD":a[529],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[542],"MMdd":a[2069],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[611],"yMEd":a[1341],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[1298],"yMMMMd":a[616],"yMMMd":a[553],"yMd":a[3080]},{"AUD":a[515],"BIF":a[3679],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BMD":a[529],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"BSD":a[529],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[539],"GyMMMEd":a[540],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[2069],"MEd":a[3653],"MMdd":a[2069],"MMM":a[41],"MMMd":a[3680],"MMMEd":a[3681],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[738],"yMEd":a[3654],"yMMM":a[50],"yMMMd":a[553],"yMMMEd":a[3682],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[551],"yMMMMd":a[552],"yMMMd":a[553],"yMd":a[3080]},{"AUD":a[515],"BRL":a[516],"BWP":a[1347],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[2069],"MEd":a[3653],"MMdd":a[2069],"MMM":a[41],"MMMd":a[3680],"MMMEd":a[3681],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[738],"yMEd":a[3654],"yMMM":a[50],"yMMMd":a[553],"yMMMEd":a[3682],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[551],"yMMMMd":a[552],"yMMMd":a[3683],"yMd":a[3080]},{"AUD":a[515],"BRL":a[516],"BZD":a[529],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[26],"GyMMMEd":a[27],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[1252],"MEd":a[3684],"MMdd":a[1252],"MMM":a[41],"MMMd":a[42],"MMMEd":a[43],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[1255],"yMd":a[547],"yMEd":a[3685],"yMMM":a[50],"yMMMd":a[51],"yMMMEd":a[52],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[56],"yMMMMd":a[57],"yMMMd":a[51],"yMd":a[547]},{"AUD":a[515],"BRL":a[516],"CAD":a[529],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[529],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[529],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[3124],"EHm":a[1819],"Ehms":a[3125],"EHms":a[1821],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[3128],"Hm":a[1825],"hms":a[3129],"Hms":a[1827],"hmsv":a[3130],"Hmsv":a[1829],"hmv":a[3131],"Hmv":a[1831],"M":a[38],"Md":a[2069],"MEd":a[3653],"MMdd":a[2069],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"ms":a[1835],"y":a[46],"yM":a[2071],"yMd":a[738],"yMEd":a[3654],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"DKK":a[3175],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"ERN":a[1227],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[3124],"EHm":a[3686],"Ehms":a[3125],"EHms":a[3687],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[3128],"Hm":a[3688],"hms":a[3129],"Hms":a[3689],"hmsv":a[3130],"Hmsv":a[3690],"hmv":a[3131],"Hmv":a[3691],"M":a[38],"Md":a[2069],"MEd":a[3653],"MMdd":a[2069],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"ms":a[1835],"y":a[46],"yM":a[2071],"yMd":a[738],"yMEd":a[3654],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"hmmsszzzz":a[3692],"hmsz":a[3693],"hms":a[3689],"hm":a[3688]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"FJD":a[529],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"FKP":a[520],"GBP":a[1251],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[1251],"GIP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"GMD":a[68],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"GYD":a[529],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[2069],"MEd":a[3653],"MMdd":a[2069],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"MMMMEd":a[1834],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[611],"yMEd":a[3654],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[1298],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[611]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[542],"MMdd":a[2069],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[611],"yMEd":a[1341],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[613],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[615],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[738]},{"am":a[3694],"pm":a[3695]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[2817],"Ehms":a[22],"EHms":a[2818],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[481],"hm":a[30],"Hm":a[1231],"hms":a[32],"Hms":a[1230],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[2069],"MEd":a[3653],"MMdd":a[2069],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[738],"yMEd":a[3654],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[2069],"MEd":a[3653],"MMdd":a[2069],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[611],"yMEd":a[612],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[3696],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[615],"yMMMMd":a[616],"yMMMd":a[3683],"yMd":a[3080]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JMD":a[529],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"KYD":a[529],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"LRD":a[529],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534],"ZAR":a[603]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MGA":a[3697],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MOP":a[3698],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[2069],"MEd":a[3653],"MMdd":a[2069],"MMM":a[41],"MMMd":a[3680],"MMMEd":a[1340],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[738],"yMEd":a[3654],"yMMM":a[50],"yMMMd":a[553],"yMMMEd":a[3682],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[1298],"yMMMMd":a[552],"yMMMd":a[553],"yMd":a[738]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[1251],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MUR":a[3677],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MWK":a[3522],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"MYR":a[3699],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NAD":a[529],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NGN":a[3700],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"positivePattern":a[1182],"negativePattern":a[3701]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[3653],"MMdd":a[2069],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[3702],"yMEd":a[3654],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[1298],"yMMMMd":a[616],"yMMMd":a[3702],"yMd":a[3703]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"PGK":a[707],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"PHP":a[3704],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"yMMMMEEEEd":a[1298],"yMMMMd":a[616],"yMMMd":a[3683],"yMd":a[738]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"PKR":a[3677],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"RWF":a[3705],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"SBD":a[529],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"SCR":a[3706],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[2069],"MEd":a[3653],"MMdd":a[2069],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[1255],"yMd":a[547],"yMEd":a[3685],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[1298],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[547]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"SEK":a[3707],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"SGD":a[529],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[1251],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"SHP":a[520],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"SLL":a[3708],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[1251],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"SSP":a[520],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"ANG":a[3709],"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"SZL":a[1900],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TOP":a[3710],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TTD":a[529],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"VUV":a[3711],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"WST":a[3712],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[3713],"MEd":a[3714],"MMdd":a[2069],"MMM":a[41],"MMMd":a[3680],"MMMEd":a[3681],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[3715],"yMEd":a[3716],"yMMM":a[50],"yMMMd":a[553],"yMMMEd":a[3682],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[551],"yMMMMd":a[552],"yMMMd":a[553],"yMd":a[3715]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[542],"MMdd":a[2069],"MMM":a[41],"MMMd":a[3680],"MMMEd":a[3681],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[611],"yMEd":a[1341],"yMMM":a[50],"yMMMd":a[3717],"yMMMEd":a[3718],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[551],"yMMMMd":a[552],"yMMMd":a[3719],"yMd":a[611]},{"yMMMMEEEEd":a[3720],"yMMMMd":a[3721],"yMMMd":a[3722],"yMd":a[3723]},{"hmmsszzzz":a[3724],"hmsz":a[619],"hms":a[33],"hm":a[31]},[a[2411],a[1349],a[1350],a[1700],a[2412],a[2413],a[2414],a[3725],a[2416],a[1704],a[2417],a[2418]],[a[3726],a[3727],a[3728],a[3729],a[3730],a[3731],a[3732],a[3733],a[3734],a[3735],a[3736],a[3737]],[a[3343],a[3738],a[3739],a[3740],a[3741],a[3742],a[3743]],[a[3744],a[3745],a[3746],a[3747],a[3748],a[3749],a[3750]],{"am":a[3751],"pm":a[3752]},[a[3753],a[3754],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[1960],"EHm":a[3755],"Ehms":a[1962],"EHms":a[1963],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"GyMMMM":a[3756],"GyMMMMd":a[3757],"GyMMMMEd":a[3758],"h":a[28],"H":a[481],"hm":a[30],"Hm":a[1231],"hms":a[32],"Hms":a[1230],"hmsv":a[34],"Hmsv":a[3018],"hmsvvvv":a[3759],"Hmsvvvv":a[3760],"hmv":a[36],"Hmv":a[3019],"M":a[38],"Md":a[608],"MEd":a[542],"MMd":a[608],"MMdd":a[608],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[3761],"MMMMEd":a[3762],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[3763],"yMM":a[47],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[3764],"yMMMM":a[3765],"yMMMMd":a[3766],"yMMMMEd":a[3767],"yQQQ":a[54],"yQQQQ":a[3768]},{"yMMMMEEEEd":a[3769],"yMMMMd":a[3766],"yMMMd":a[549],"yMd":a[1345]},{"hmmsszzzz":a[3770],"hmsz":a[1229],"hms":a[1230],"hm":a[1231]},[a[1900],a[62],a[63],a[64],a[63],a[61],a[61],a[64],a[65],a[66],a[67],a[68]],[a[3771],a[3138],a[3139],a[2839],a[3772],a[3141],a[2842],a[3773],a[3774],a[2845],a[2846],a[3775]],[a[3776],a[3777],a[3778],a[3779],a[3780],a[3731],a[3732],a[3781],a[3782],a[3783],a[3784],a[3785]],[a[68],a[38],a[63],a[1346],a[61],a[574],a[65]],[a[3786],a[3787],a[3139],a[3788],a[3789],a[3790],a[3791]],[a[3792],a[3793],a[1380],a[1381],a[3794],a[3795],a[3796]],[a[3797],a[3798],a[3799],a[3800]],[a[3801],a[3802],a[3803],a[3804]],[a[3805],a[598]],{"CAD":a[517],"ESP":a[2889],"EUR":a[519],"THB":a[601],"USD":a[529],"VND":a[530],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[1960],"EHm":a[1961],"Ehms":a[1962],"EHms":a[3078],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[3806],"GyMMMEd":a[1339],"GyMMMM":a[3756],"GyMMMMd":a[3757],"GyMMMMEd":a[3758],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[3018],"hmsvvvv":a[3759],"Hmsvvvv":a[3760],"hmv":a[36],"Hmv":a[3019],"M":a[38],"Md":a[608],"MEd":a[542],"MMd":a[608],"MMdd":a[608],"MMM":a[41],"MMMd":a[543],"MMMdd":a[3807],"MMMEd":a[1340],"MMMMd":a[3761],"MMMMEd":a[3762],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[612],"yMM":a[47],"yMMM":a[3765],"yMMMd":a[3766],"yMMMEd":a[3808],"yMMMM":a[3765],"yMMMMd":a[3766],"yMMMMEd":a[3767],"yQQQ":a[3809],"yQQQQ":a[3768]},[a[3342],a[625],a[1767],a[2409],a[1767],a[1794],a[1794],a[2409],a[623],a[2410],a[620],a[17]],[a[3771],a[3138],a[3139],a[2839],a[3772],a[3141],a[2842],a[3773],a[3143],a[2845],a[2846],a[3775]],[a[17],a[626],a[1767],a[1767],a[1794],a[3810],a[623]],{"ESP":a[2889],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[1960],"EHm":a[1961],"Ehms":a[1962],"EHms":a[3078],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[3806],"GyMMMEd":a[3811],"GyMMMM":a[3756],"GyMMMMd":a[3757],"GyMMMMEd":a[3758],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[3812],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmsvvvv":a[3759],"Hmsvvvv":a[3760],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[3813],"MMd":a[608],"MMdd":a[608],"MMM":a[41],"MMMd":a[543],"MMMdd":a[3807],"MMMEd":a[1340],"MMMMd":a[3761],"MMMMEd":a[3762],"ms":a[45],"y":a[46],"yM":a[3814],"yMd":a[611],"yMEd":a[1341],"yMM":a[47],"yMMM":a[3765],"yMMMd":a[3815],"yMMMEd":a[3808],"yMMMM":a[3765],"yMMMMd":a[3766],"yMMMMEd":a[3767],"yQQQ":a[3809],"yQQQQ":a[3768]},{"ARS":a[529],"ESP":a[2889],"USD":a[602],"XPF":a[534]},{"BOB":a[3816],"ESP":a[2889],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[1960],"EHm":a[1961],"Ehms":a[1962],"EHms":a[3078],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[3806],"GyMMMEd":a[1339],"GyMMMM":a[3756],"GyMMMMd":a[3757],"GyMMMMEd":a[3758],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[3018],"hmsvvvv":a[3759],"Hmsvvvv":a[3760],"hmv":a[36],"Hmv":a[3019],"M":a[38],"Md":a[541],"MEd":a[3817],"MMd":a[608],"MMdd":a[608],"MMM":a[41],"MMMd":a[543],"MMMdd":a[3807],"MMMEd":a[1340],"MMMMd":a[3761],"MMMMEd":a[3762],"ms":a[45],"y":a[46],"yM":a[546],"yMd":a[3818],"yMEd":a[3819],"yMM":a[47],"yMMM":a[3765],"yMMMd":a[3766],"yMMMEd":a[3808],"yMMMM":a[3765],"yMMMMd":a[3766],"yMMMMEd":a[3767],"yQQQ":a[3809],"yQQQQ":a[3768]},{"yMMMMEEEEd":a[3769],"yMMMMd":a[3766],"yMMMd":a[3818],"yMd":a[3820]},{"positivePattern":a[504],"negativePattern":a[3257]},{"CLP":a[529],"ESP":a[2889],"USD":a[602],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[1960],"EHm":a[1961],"Ehms":a[1962],"EHms":a[3078],"Gy":a[24],"GyMMM":a[3821],"GyMMMd":a[3806],"GyMMMEd":a[3822],"GyMMMM":a[3756],"GyMMMMd":a[3757],"GyMMMMEd":a[3758],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[3018],"hmsvvvv":a[3759],"Hmsvvvv":a[3760],"hmv":a[36],"Hmv":a[3019],"M":a[38],"Md":a[608],"MEd":a[542],"MMd":a[608],"MMdd":a[608],"MMM":a[41],"MMMd":a[3823],"MMMdd":a[3823],"MMMEd":a[3824],"MMMMd":a[3761],"MMMMEd":a[3762],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[612],"yMM":a[47],"yMMM":a[3825],"yMMMd":a[3815],"yMMMEd":a[3808],"yMMMM":a[3765],"yMMMMd":a[3766],"yMMMMEd":a[3767],"yQQQ":a[3809],"yQQQQ":a[3768]},{"yMMMMEEEEd":a[3769],"yMMMMd":a[3766],"yMMMd":a[3702],"yMd":a[3703]},{"COP":a[529],"ESP":a[2889],"USD":a[602],"XPF":a[534]},{"CRC":a[3826],"ESP":a[2889],"XPF":a[534]},{"CUP":a[529],"ESP":a[2889],"USD":a[602],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[1960],"EHm":a[1961],"Ehms":a[1962],"EHms":a[3078],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[3806],"GyMMMEd":a[1339],"GyMMMM":a[3756],"GyMMMMd":a[3757],"GyMMMMEd":a[3758],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[3018],"hmsvvvv":a[3759],"Hmsvvvv":a[3760],"hmv":a[36],"Hmv":a[3019],"M":a[38],"Md":a[608],"MEd":a[542],"MMd":a[608],"MMdd":a[608],"MMM":a[41],"MMMd":a[543],"MMMdd":a[3807],"MMMEd":a[1340],"MMMMd":a[3761],"MMMMEd":a[3762],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[612],"yMM":a[47],"yMMM":a[3765],"yMMMd":a[3827],"yMMMEd":a[3808],"yMMMM":a[3765],"yMMMMd":a[3766],"yMMMMEd":a[3767],"yQQQ":a[3809],"yQQQQ":a[3768]},[a[3801],a[3802],a[3828],a[3829]],{"DOP":a[3830],"ESP":a[2889],"USD":a[602],"XPF":a[534]},{"ESP":a[2889],"USD":a[529],"XPF":a[534]},{"CAD":a[517],"ESP":a[2889],"EUR":a[519],"THB":a[601],"USD":a[529],"VND":a[530],"XAF":a[531],"XPF":a[534]},{"ESP":a[2889],"GTQ":a[3831],"XPF":a[534]},{"yMMMMEEEEd":a[3832],"yMMMMd":a[3833],"yMMMd":a[549],"yMd":a[1345]},{"ESP":a[2889],"HNL":a[38],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[2817],"Ehms":a[22],"EHms":a[2818],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"GyMMMM":a[3756],"GyMMMMd":a[3757],"GyMMMMEd":a[3758],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[1231],"hms":a[32],"Hms":a[1230],"hmsv":a[34],"Hmsv":a[3018],"hmsvvvv":a[3759],"Hmsvvvv":a[3760],"hmv":a[36],"Hmv":a[3019],"M":a[38],"Md":a[608],"MEd":a[542],"MMd":a[2068],"MMdd":a[2069],"MMM":a[41],"MMMd":a[543],"MMMdd":a[3807],"MMMEd":a[3834],"MMMMd":a[3761],"MMMMEd":a[3762],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[612],"yMM":a[2071],"yMMM":a[3765],"yMMMd":a[3766],"yMMMEd":a[3767],"yMMMM":a[3765],"yMMMMd":a[3766],"yMMMMEd":a[3767],"yQQQ":a[54],"yQQQQ":a[3768]},{"yMMMMEEEEd":a[3769],"yMMMMd":a[3766],"yMMMd":a[738],"yMd":a[3080]},[a[3835],a[1349],a[1350],a[1351],a[1352],a[2413],a[2414],a[1355],a[2416],a[3836],a[2417],a[3837]],[a[68],a[38],a[63],a[63],a[61],a[574],a[65]],{"AFN":a[3838],"ANG":a[3839],"AOA":a[3840],"ARS":a[3841],"AUD":a[802],"AWG":a[3842],"CNY":a[518],"ESP":a[2889],"MXN":a[529]},{"ESP":a[2889],"NIO":a[3843],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[1960],"EHm":a[1961],"Ehms":a[1962],"EHms":a[3078],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[3806],"GyMMMEd":a[1339],"GyMMMM":a[3756],"GyMMMMd":a[3757],"GyMMMMEd":a[3758],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[3018],"hmsvvvv":a[3759],"Hmsvvvv":a[3760],"hmv":a[36],"Hmv":a[3019],"M":a[38],"Md":a[3713],"MEd":a[3714],"MMd":a[608],"MMdd":a[608],"MMM":a[41],"MMMd":a[543],"MMMdd":a[3807],"MMMEd":a[1340],"MMMMd":a[3761],"MMMMEd":a[3762],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[3844],"yMEd":a[3845],"yMM":a[47],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[3808],"yMMMM":a[3765],"yMMMMd":a[3766],"yMMMMEd":a[3767],"yQQQ":a[3809],"yQQQQ":a[3768]},{"yMMMMEEEEd":a[3769],"yMMMMd":a[3766],"yMMMd":a[3844],"yMd":a[3846]},{"ESP":a[2889],"PAB":a[3847],"XPF":a[534]},{"yMMMMEEEEd":a[3769],"yMMMMd":a[3766],"yMMMd":a[549],"yMd":a[3703]},[a[3771],a[3138],a[3139],a[2839],a[3772],a[3141],a[2842],a[3773],a[2844],a[2845],a[2846],a[3775]],[a[3776],a[3777],a[3778],a[3779],a[3780],a[3731],a[3732],a[3781],a[3848],a[3783],a[3784],a[3785]],{"ESP":a[2889],"PEN":a[3849],"XPF":a[534]},{"CAD":a[517],"ESP":a[2889],"EUR":a[519],"PHP":a[3704],"THB":a[601],"USD":a[529],"VND":a[530],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[1960],"EHm":a[1961],"Ehms":a[1962],"EHms":a[3078],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[3806],"GyMMMEd":a[1339],"GyMMMM":a[3756],"GyMMMMd":a[3757],"GyMMMMEd":a[3758],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[3018],"hmsvvvv":a[3759],"Hmsvvvv":a[3760],"hmv":a[36],"Hmv":a[3019],"M":a[38],"Md":a[3713],"MEd":a[3714],"MMd":a[608],"MMdd":a[608],"MMM":a[41],"MMMd":a[543],"MMMdd":a[3807],"MMMEd":a[1340],"MMMMd":a[3761],"MMMMEd":a[3762],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[3844],"yMEd":a[3845],"yMM":a[47],"yMMM":a[3765],"yMMMd":a[3766],"yMMMEd":a[3808],"yMMMM":a[3765],"yMMMMd":a[3766],"yMMMMEd":a[3767],"yQQQ":a[3809],"yQQQQ":a[3768]},{"ESP":a[2889],"PYG":a[3850],"XPF":a[534]},{"ESP":a[2889],"JPY":a[524],"USD":a[529],"XPF":a[534]},{"ESP":a[2889],"USD":a[602],"UYU":a[529],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[1960],"EHm":a[1961],"Ehms":a[1962],"EHms":a[3078],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[3806],"GyMMMEd":a[1339],"GyMMMM":a[3756],"GyMMMMd":a[3757],"GyMMMMEd":a[3758],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[3018],"hmsvvvv":a[3759],"Hmsvvvv":a[3760],"hmv":a[36],"Hmv":a[3019],"M":a[38],"Md":a[608],"MEd":a[542],"MMd":a[608],"MMdd":a[608],"MMM":a[41],"MMMd":a[543],"MMMdd":a[3807],"MMMEd":a[1340],"MMMMd":a[3761],"MMMMEd":a[3762],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[612],"yMM":a[47],"yMMM":a[3765],"yMMMd":a[549],"yMMMEd":a[3808],"yMMMM":a[3765],"yMMMMd":a[3766],"yMMMMEd":a[3767],"yQQQ":a[3809],"yQQQQ":a[3768]},{"ESP":a[2889],"VEF":a[3851],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[1959],"Ehm":a[20],"EHm":a[21],"Ehms":a[3852],"EHms":a[3853],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[3126],"GyMMMEd":a[3854],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[3855],"Hms":a[3856],"hmsv":a[3857],"Hmsv":a[3858],"hmv":a[36],"Hmv":a[37],"M":a[63],"Md":a[1832],"MEd":a[1833],"MMM":a[3859],"MMMd":a[3132],"MMMEd":a[3224],"MMMMd":a[2394],"MMMMEd":a[2395],"mmss":a[1835],"ms":a[1835],"y":a[46],"yM":a[1836],"yMd":a[1837],"yMEd":a[1838],"yMMM":a[50],"yMMMd":a[3134],"yMMMEd":a[3860],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[3226],"yMMMMd":a[3025],"yMMMd":a[3134],"yMd":a[1697]},{"hmmsszzzz":a[3861],"hmsz":a[3862],"hms":a[3856],"hm":a[1231]},[a[61],a[574],a[63],a[64],a[63],a[61],a[61],a[64],a[65],a[66],a[67],a[68]],[a[3863],a[3864],a[3865],a[1700],a[3866],a[3867],a[3868],a[2415],a[3869],a[1704],a[2417],a[3870]],[a[3871],a[3872],a[3865],a[3873],a[3866],a[3867],a[3868],a[2424],a[3147],a[3874],a[3149],a[3875]],[a[1347],a[1900],a[92],a[707],a[67],a[603],a[38]],[a[3876],a[3877],a[3878],a[3879],a[3880],a[3881],a[3882]],[a[3166],a[3883],a[3884],a[3885]],[a[3886],a[3887],a[3888],a[3889]],{"decimal":a[509],"group":a[599],"nan":a[510],"plusSign":a[511],"minusSign":a[3890],"percentSign":a[513],"infinity":a[514]},{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EEK":a[3707],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[3891],"GyMMMd":a[3892],"GyMMMEd":a[3893],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[39],"MEd":a[3894],"MMM":a[41],"MMMd":a[42],"MMMEd":a[1254],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[3895],"yMd":a[678],"yMEd":a[3896],"yMMM":a[1257],"yMMMd":a[679],"yMMMEd":a[1258],"yMMMM":a[3897],"yMMMMd":a[3898],"yMMMMEd":a[3899],"yQQQ":a[3900],"yQQQQ":a[3901]},{"yMMMMEEEEd":a[3902],"yMMMMd":a[3898],"yMMMd":a[679],"yMd":a[3715]},{"hmmsszzzz":a[3903],"hmsz":a[3904],"hms":a[33],"hm":a[31]},[a[2073],a[66],a[63],a[64],a[63],a[1900],a[2073],a[64],a[1313],a[2073],a[64],a[64]],[a[3905],a[3906],a[3139],a[3907],a[3908],a[3909],a[3910],a[3911],a[3912],a[3913],a[3914],a[3915]],[a[3916],a[3917],a[3918],a[3919],a[3920],a[3921],a[3922],a[3923],a[3924],a[3925],a[3926],a[3927]],[a[1313],a[64],a[64],a[64],a[66],a[66],a[38]],[a[3928],a[3929],a[3930],a[3931],a[3932],a[3933],a[3934]],[a[3935],a[3936],a[3937],a[3938],a[3939],a[3940],a[3941]],[a[3942]],[a[3943],a[3944],a[189],a[190]],[a[3945],a[598]],{"positivePattern":a[3946],"negativePattern":a[3947]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"ESP":a[2889],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[2410],a[1769],a[626],a[620],a[622],a[623],a[624],a[1767],a[3342],a[2409],a[17],a[1769]],[a[3948],a[3949],a[3950],a[3951],a[3952],a[3953],a[3954],a[3955],a[3956],a[3957],a[3958],a[3959]],[a[3960],a[3961],a[3962],a[3963],a[3964],a[3965],a[3966],a[3967],a[3968],a[3969],a[3970],a[3971]],[a[623],a[1767],a[623],a[623],a[623],a[625],a[623]],[a[3972],a[3973],a[3974],a[3975],a[3976],a[3977],a[3978]],[a[3979],a[3980],a[3981],a[3982],a[3983],a[3984],a[3985]],{"am":a[3986],"pm":a[3987]},[a[3988],a[3989],a[189],a[190]],[a[3990],a[3991],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[2817],"Ehms":a[22],"EHms":a[2818],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[2258],"h":a[28],"H":a[481],"HHmmZ":a[3994],"hm":a[30],"Hm":a[1231],"hms":a[32],"Hms":a[1230],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[39],"MEd":a[3995],"MMM":a[41],"MMMd":a[3996],"MMMEd":a[3997],"MMMMd":a[3998],"MMMMEd":a[3999],"mmss":a[45],"ms":a[45],"y":a[46],"yM":a[3895],"yMd":a[678],"yMEd":a[4000],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[613],"yMMMM":a[53],"yMMMMEEEEd":a[615],"yQQQ":a[55],"yQQQQ":a[55]},{"yMMMMEEEEd":a[615],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[678]},{"hmmsszzzz":a[3770],"hmsz":a[4001],"hms":a[1230],"hm":a[1231]},[a[4002],a[823],a[824],a[1233],a[824],a[4002],a[4002],a[4003],a[830],a[4003],a[827],a[833]],[a[4004],a[4005],a[836],a[4006],a[4007],a[4008],a[4009],a[4010],a[4011],a[4012],a[4013],a[4014]],[a[4015],a[833],a[830],a[4016],a[4017],a[850],a[1232]],[a[4018],a[4019],a[4020],a[4021],a[4022],a[4023],a[4024]],{"am":a[4025],"pm":a[4026]},[a[4027],a[824],a[4028],a[4029]],[a[4030],a[4031],a[4028],a[4029]],[a[4032],a[4033],a[4034],a[4035]],[a[1234],a[846],a[4036],a[4037],a[1232],a[1233],a[826],a[827],a[4003],a[830],a[1234],a[1233],a[4003],a[826]],[a[4038],a[4039],a[4040],a[4041],a[908],a[910],a[4042],a[4043],a[4044],a[4045],a[914],a[915],a[4046],a[4047]],[a[918],a[919],a[4048],a[4049],a[4050],a[4051],a[924],a[925],a[926],a[927],a[4052],a[4053]],[a[4054]],[a[4055]],[a[823],a[4003],a[849],a[1234],a[824],a[1232],a[824],a[1233],a[1233],a[833],a[832],a[4003]],[a[4056],a[4057],a[1169],a[4058],a[1171],a[4059],a[1173],a[4060],a[1175],a[4061],a[1177],a[4062]],[a[4063]],[a[4064]],[a[4065],a[501]],{"positivePattern":a[4066],"negativePattern":a[4067]},{"decimal":a[1184],"group":a[1185],"nan":a[4068],"plusSign":a[4069],"minusSign":a[4070],"percentSign":a[1189],"infinity":a[514]},{"decimal":a[508],"group":a[509],"nan":a[4068],"plusSign":a[1191],"minusSign":a[4070],"percentSign":a[513],"infinity":a[514]},{"AFN":a[4071],"AUD":a[515],"BRL":a[516],"CAD":a[2316],"CNY":a[4072],"EUR":a[519],"GBP":a[520],"HKD":a[4073],"ILS":a[522],"INR":a[523],"IRR":a[4074],"JPY":a[524],"KRW":a[525],"MXN":a[4075],"NZD":a[4076],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[4077],"XOF":a[533],"XPF":a[534]},[a[1081],a[4005],a[836],a[4006],a[4078],a[4008],a[4079],a[4010],a[4011],a[4012],a[4013],a[4080]],[a[4081],a[4082],a[4083],a[4084],a[4078],a[4085],a[4086],a[4087],a[4088],a[4089],a[4090],a[4091]],[a[4092],a[4093],a[4094],a[4095],a[4096],a[4097],a[4098],a[4099],a[4100],a[4101],a[4102],a[4103]],{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[63],"Md":a[608],"MEd":a[1253],"MMd":a[2068],"MMdd":a[2069],"MMM":a[2070],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[811],"MMMMEd":a[545],"ms":a[610],"y":a[46],"yM":a[47],"yMd":a[547],"yMEd":a[612],"yMM":a[2071],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[613],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},[a[623],a[627],a[1767],a[623],a[17],a[621],a[1767],a[1794],a[623],a[46],a[1794],a[1769]],[a[4104],a[4105],a[4106],a[632],a[4107],a[4108],a[4109],a[4110],a[4111],a[4112],a[4113],a[4114]],[a[4115],a[4116],a[4117],a[4118],a[4119],a[4120],a[4121],a[4122],a[4123],a[4124],a[4125],a[4126]],[a[17],a[2409],a[1767],a[620],a[620],a[1767],a[1768]],[a[4127],a[4128],a[4129],a[1776],a[4130],a[4131],a[4132]],[a[4133],a[4134],a[4135],a[4136],a[4137],a[4138],a[4139]],{"am":a[4140],"pm":a[4141]},[a[4142],a[4143],a[189],a[190]],[a[4144],a[4145],a[189],a[190]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"GNF":a[4146],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MRO":a[4147],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[3012],"Ehm":a[3124],"EHm":a[3686],"Ehms":a[3125],"EHms":a[3687],"Gy":a[24],"GyMMM":a[1822],"GyMMMd":a[3126],"GyMMMEd":a[3127],"h":a[28],"H":a[481],"hm":a[3128],"Hm":a[3688],"hms":a[3129],"Hms":a[3689],"hmsv":a[3130],"Hmsv":a[3690],"hmv":a[3131],"Hmv":a[3691],"M":a[38],"Md":a[3221],"MEd":a[4149],"MMM":a[41],"MMMd":a[3132],"MMMEd":a[4150],"MMMMd":a[2394],"ms":a[4151],"y":a[46],"yM":a[4152],"yMd":a[1837],"yMEd":a[4153],"yMM":a[1836],"yMMM":a[1839],"yMMMd":a[3134],"yMMMEd":a[3135],"yMMMM":a[1840],"yMMMMccccd":a[4154],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[4154],"yMMMMd":a[3025],"yMMMd":a[1837],"yMd":a[1837]},[a[92],a[481],a[63],a[481],a[92],a[707],a[481],a[1900],a[65],a[38],a[63],a[61]],[a[4155],a[4156],a[4157],a[4158],a[4159],a[4160],a[4161],a[4162],a[4163],a[4164],a[4165],a[4166]],[a[65],a[63],a[92],a[707],a[92],a[1347],a[38]],[a[4167],a[3739],a[4168],a[4169],a[4170],a[4171],a[4172]],[a[4173],a[4174],a[4175],a[4176],a[4177],a[4178],a[4179]],{"am":a[4180],"pm":a[4181]},[a[4182],a[4183],a[4184],a[4185]],[a[4186],a[4187],a[4188],a[4189]],[a[4190],a[4191],a[4192],a[4193]],[a[92],a[481],a[707],a[92],a[65],a[64],a[64],a[67],a[1313],a[65],a[92],a[64],a[1900],a[64]],[a[4194],a[4195],a[4196],a[4197],a[4198],a[4199],a[4200],a[4201],a[4202],a[4203],a[4204],a[4205],a[4206],a[4207]],[a[4208],a[4209],a[4210],a[4211],a[4212],a[4213],a[4214],a[4215],a[4216],a[4217],a[4218],a[4219]],{"decimal":a[509],"group":a[599],"nan":a[4220],"plusSign":a[511],"minusSign":a[3890],"percentSign":a[513],"infinity":a[514]},{"EUR":a[519],"FIM":a[4221],"GBP":a[520],"JPY":a[524],"USD":a[529],"XAF":a[531],"XOF":a[533]},{"d":a[17],"E":a[18],"Ed":a[19],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[25],"GyMMMd":a[26],"GyMMMEd":a[27],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[39],"MEd":a[40],"MMM":a[41],"MMMd":a[42],"MMMEd":a[43],"MMMMd":a[44],"MMMMEd":a[677],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[48],"yMEd":a[49],"yMM":a[2071],"yMMM":a[50],"yMMMd":a[51],"yMMMEd":a[52],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},[a[4223],a[4224],a[71],a[4225],a[73],a[4226],a[4227],a[1300],a[4228],a[1301],a[4229],a[1903]],[a[4230],a[4231],a[4232],a[4233],a[4234],a[4235],a[4236],a[4237],a[4238],a[4239],a[4240],a[4241]],[a[4242],a[2296],a[71],a[4243],a[4244],a[4245],a[1924]],[a[4246],a[4247],a[4248],a[4249],a[4250],a[4251],a[4252]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"MXN":a[526],"NZD":a[527],"PHP":a[3704],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[3011],"E":a[18],"Ed":a[3012],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[3126],"GyMMMEd":a[3127],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[3655],"Md":a[1689],"MEd":a[4253],"MMM":a[41],"MMMd":a[3132],"MMMEd":a[3133],"MMMMd":a[2394],"ms":a[45],"y":a[46],"yM":a[1692],"yMd":a[1693],"yMEd":a[4254],"yMMM":a[50],"yMMMd":a[3134],"yMMMEd":a[3135],"yMMMM":a[53],"yQQQ":a[4255],"yQQQQ":a[4256]},[a[3137],a[3138],a[3139],a[3140],a[3866],a[3141],a[2842],a[3142],a[3143],a[3144],a[2846],a[2847]],[a[2419],a[2420],a[4257],a[4258],a[3866],a[2422],a[2423],a[2424],a[3147],a[3148],a[3149],a[4259]],[a[65],a[63],a[92],a[63],a[481],a[62],a[38]],[a[4260],a[4261],a[4262],a[4263],a[4264],a[4265],a[4266]],[a[4267],a[4268],a[4269],a[4270],a[4271],a[4272],a[4273]],[a[3165],a[3166],a[4274],a[4275]],[a[3169],a[3170],a[4276],a[4277]],[a[4278],a[4279],a[4280],a[4281]],{"decimal":a[509],"group":a[508],"nan":a[510],"plusSign":a[511],"minusSign":a[3890],"percentSign":a[513],"infinity":a[514]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"DKK":a[3707],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[1900],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[2258],"h":a[28],"H":a[4283],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[2069],"MEd":a[2259],"MMM":a[41],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[738],"yMEd":a[2260],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[613],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},[a[4284],a[4285],a[4257],a[4286],a[3866],a[4287],a[4288],a[4289],a[3774],a[2845],a[2846],a[4290]],[a[4291],a[4292],a[4257],a[4293],a[3866],a[4287],a[4294],a[4289],a[4295],a[4296],a[4297],a[4298]],[a[4299],a[3787],a[3139],a[4300],a[4301],a[4302],a[4303]],[a[4304],a[4305],a[4306],a[4307],a[4308],a[4309],a[4310]],[a[4311]],[a[4312]],[a[4313]],[a[4314],a[4315],a[4316],a[4317],a[4318],a[4319],a[4320],a[4321],a[4322],a[4323],a[4324],a[4325]],[a[4326],a[4327],a[4328],a[4329],a[4330],a[4331],a[4332],a[4333],a[4334],a[4335],a[4336],a[4337]],[a[4338],a[4339],a[2883],a[2884]],[a[4340],a[4341],a[4342],a[4343]],[a[4344],a[4345],a[199],a[4346],a[4347],a[202],a[203],a[4348],a[205],a[206],a[4349],a[3389],a[4350],a[210]],[a[4351],a[4352],a[4353],a[4354],a[4355],a[4356],a[4357],a[4358],a[4359],a[4360],a[4361],a[4362]],[a[4363],a[4209],a[4364],a[4365],a[4366],a[4367],a[4368],a[4369],a[4216],a[4370],a[4371],a[4372]],[a[4373],a[4374]],{"ARS":a[4375],"AUD":a[4376],"BEF":a[2825],"BMD":a[4377],"BND":a[4378],"BRL":a[516],"BSD":a[4379],"BZD":a[4380],"CAD":a[2316],"CLP":a[4381],"COP":a[4382],"CYP":a[4383],"EUR":a[519],"FJD":a[4384],"FKP":a[4385],"FRF":a[62],"GBP":a[4386],"GIP":a[4387],"IEP":a[4388],"ILP":a[4389],"ILS":a[522],"INR":a[523],"ITL":a[4390],"KRW":a[525],"LBP":a[4391],"MTP":a[4392],"MXN":a[4075],"NAD":a[4393],"NZD":a[4076],"RHD":a[4394],"SBD":a[4395],"SGD":a[4396],"SRD":a[4397],"TTD":a[4398],"USD":a[4399],"UYU":a[4400],"VND":a[530],"WST":a[3712],"XAF":a[531],"XOF":a[533],"XPF":a[4401]},{"yMMMMEEEEd":a[615],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[3703]},{"hmmsszzzz":a[4402],"hmsz":a[619],"hms":a[33],"hm":a[31]},{"ARS":a[4375],"AUD":a[4376],"BEF":a[2825],"BIF":a[3679],"BMD":a[4377],"BND":a[4378],"BRL":a[516],"BSD":a[4379],"BZD":a[4380],"CAD":a[2316],"CLP":a[4381],"COP":a[4382],"CYP":a[4383],"EUR":a[519],"FJD":a[4384],"FKP":a[4385],"FRF":a[62],"GBP":a[4386],"GIP":a[4387],"IEP":a[4388],"ILP":a[4389],"ILS":a[522],"INR":a[523],"ITL":a[4390],"KRW":a[525],"LBP":a[4391],"MTP":a[4392],"MXN":a[4075],"NAD":a[4393],"NZD":a[4076],"RHD":a[4394],"SBD":a[4395],"SGD":a[4396],"SRD":a[4397],"TTD":a[4398],"USD":a[4399],"UYU":a[4400],"VND":a[530],"WST":a[3712],"XAF":a[531],"XOF":a[533],"XPF":a[4401]},{"d":a[17],"E":a[1900],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[2258],"h":a[28],"H":a[4283],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[3427],"MEd":a[4403],"MMd":a[4404],"MMdd":a[1252],"MMM":a[41],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[1255],"yMd":a[547],"yMEd":a[548],"yMM":a[1255],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[613],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[615],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[3723]},{"AUD":a[4405],"BEF":a[2825],"BRL":a[516],"CAD":a[529],"CNY":a[518],"CYP":a[4383],"EUR":a[519],"FRF":a[62],"GBP":a[520],"HKD":a[4406],"IEP":a[4388],"ILP":a[4389],"INR":a[523],"ITL":a[4390],"JPY":a[524],"MTP":a[4392],"NZD":a[4407],"RHD":a[4394],"SGD":a[4408],"USD":a[4409],"WST":a[3712]},{"ARS":a[4375],"AUD":a[4376],"BEF":a[2825],"BMD":a[4377],"BND":a[4378],"BRL":a[516],"BSD":a[4379],"BZD":a[4380],"CAD":a[2316],"CDF":a[4410],"CLP":a[4381],"COP":a[4382],"CYP":a[4383],"EUR":a[519],"FJD":a[4384],"FKP":a[4385],"FRF":a[62],"GBP":a[4386],"GIP":a[4387],"IEP":a[4388],"ILP":a[4389],"ILS":a[522],"INR":a[523],"ITL":a[4390],"KRW":a[525],"LBP":a[4391],"MTP":a[4392],"MXN":a[4075],"NAD":a[4393],"NZD":a[4076],"RHD":a[4394],"SBD":a[4395],"SGD":a[4396],"SRD":a[4397],"TTD":a[4398],"USD":a[4399],"UYU":a[4400],"VND":a[530],"WST":a[3712],"XAF":a[531],"XOF":a[533],"XPF":a[4401]},{"yMMMMEEEEd":a[1298],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[1697]},{"hmmsszzzz":a[4411],"hmsz":a[619],"hms":a[33],"hm":a[31]},{"ARS":a[4375],"AUD":a[4376],"BEF":a[2825],"BMD":a[4377],"BND":a[4378],"BRL":a[516],"BSD":a[4379],"BZD":a[4380],"CAD":a[2316],"CLP":a[4381],"COP":a[4382],"CYP":a[4383],"DJF":a[1219],"EUR":a[519],"FJD":a[4384],"FKP":a[4385],"FRF":a[62],"GBP":a[4386],"GIP":a[4387],"IEP":a[4388],"ILP":a[4389],"ILS":a[522],"INR":a[523],"ITL":a[4390],"KRW":a[525],"LBP":a[4391],"MTP":a[4392],"MXN":a[4075],"NAD":a[4393],"NZD":a[4076],"RHD":a[4394],"SBD":a[4395],"SGD":a[4396],"SRD":a[4397],"TTD":a[4398],"USD":a[4399],"UYU":a[4400],"VND":a[530],"WST":a[3712],"XAF":a[531],"XOF":a[533],"XPF":a[4401]},{"ARS":a[4375],"AUD":a[4376],"BEF":a[2825],"BMD":a[4377],"BND":a[4378],"BRL":a[516],"BSD":a[4379],"BZD":a[4380],"CAD":a[2316],"CLP":a[4381],"COP":a[4382],"CYP":a[4383],"DZD":a[4412],"EUR":a[519],"FJD":a[4384],"FKP":a[4385],"FRF":a[62],"GBP":a[4386],"GIP":a[4387],"IEP":a[4388],"ILP":a[4389],"ILS":a[522],"INR":a[523],"ITL":a[4390],"KRW":a[525],"LBP":a[4391],"MTP":a[4392],"MXN":a[4075],"NAD":a[4393],"NZD":a[4076],"RHD":a[4394],"SBD":a[4395],"SGD":a[4396],"SRD":a[4397],"TTD":a[4398],"USD":a[4399],"UYU":a[4400],"VND":a[530],"WST":a[3712],"XAF":a[531],"XOF":a[533],"XPF":a[4401]},{"ARS":a[4375],"AUD":a[4376],"BEF":a[2825],"BMD":a[4377],"BND":a[4378],"BRL":a[516],"BSD":a[4379],"BZD":a[4380],"CAD":a[2316],"CLP":a[4381],"COP":a[4382],"CYP":a[4383],"EUR":a[519],"FJD":a[4384],"FKP":a[4385],"FRF":a[62],"GBP":a[4386],"GIP":a[4387],"GNF":a[4146],"IEP":a[4388],"ILP":a[4389],"ILS":a[522],"INR":a[523],"ITL":a[4390],"KRW":a[525],"LBP":a[4391],"MTP":a[4392],"MXN":a[4075],"NAD":a[4393],"NZD":a[4076],"RHD":a[4394],"SBD":a[4395],"SGD":a[4396],"SRD":a[4397],"TTD":a[4398],"USD":a[4399],"UYU":a[4400],"VND":a[530],"WST":a[3712],"XAF":a[531],"XOF":a[533],"XPF":a[4401]},{"ARS":a[4375],"AUD":a[4376],"BEF":a[2825],"BMD":a[4377],"BND":a[4378],"BRL":a[516],"BSD":a[4379],"BZD":a[4380],"CAD":a[2316],"CLP":a[4381],"COP":a[4382],"CYP":a[4383],"EUR":a[519],"FJD":a[4384],"FKP":a[4385],"FRF":a[62],"GBP":a[4386],"GIP":a[4387],"HTG":a[2293],"IEP":a[4388],"ILP":a[4389],"ILS":a[522],"INR":a[523],"ITL":a[4390],"KRW":a[525],"LBP":a[4391],"MTP":a[4392],"MXN":a[4075],"NAD":a[4393],"NZD":a[4076],"RHD":a[4394],"SBD":a[4395],"SGD":a[4396],"SRD":a[4397],"TTD":a[4398],"USD":a[4399],"UYU":a[4400],"VND":a[530],"WST":a[3712],"XAF":a[531],"XOF":a[533],"XPF":a[4401]},{"ARS":a[4375],"AUD":a[4376],"BEF":a[2825],"BMD":a[4377],"BND":a[4378],"BRL":a[516],"BSD":a[4379],"BZD":a[4380],"CAD":a[2316],"CLP":a[4381],"COP":a[4382],"CYP":a[4383],"EUR":a[519],"FJD":a[4384],"FKP":a[4385],"FRF":a[62],"GBP":a[4386],"GIP":a[4387],"IEP":a[4388],"ILP":a[4389],"ILS":a[522],"INR":a[523],"ITL":a[4390],"KMF":a[4413],"KRW":a[525],"LBP":a[4391],"MTP":a[4392],"MXN":a[4075],"NAD":a[4393],"NZD":a[4076],"RHD":a[4394],"SBD":a[4395],"SGD":a[4396],"SRD":a[4397],"TTD":a[4398],"USD":a[4399],"UYU":a[4400],"VND":a[530],"WST":a[3712],"XAF":a[531],"XOF":a[533],"XPF":a[4401]},{"ARS":a[4375],"AUD":a[4376],"BEF":a[2825],"BMD":a[4377],"BND":a[4378],"BRL":a[516],"BSD":a[4379],"BZD":a[4380],"CAD":a[2316],"CLP":a[4381],"COP":a[4382],"CYP":a[4383],"EUR":a[519],"FJD":a[4384],"FKP":a[4385],"GBP":a[4386],"GIP":a[4387],"IEP":a[4388],"ILP":a[4389],"ILS":a[522],"INR":a[523],"ITL":a[4390],"KRW":a[525],"LBP":a[4391],"LUF":a[62],"MTP":a[4392],"MXN":a[4075],"NAD":a[4393],"NZD":a[4076],"RHD":a[4394],"SBD":a[4395],"SGD":a[4396],"SRD":a[4397],"TTD":a[4398],"USD":a[4399],"UYU":a[4400],"VND":a[530],"WST":a[3712],"XAF":a[531],"XOF":a[533],"XPF":a[4401]},[a[3137],a[4414],a[3139],a[4286],a[3866],a[4415],a[4288],a[4289],a[3774],a[2845],a[2846],a[4290]],{"ARS":a[4375],"AUD":a[4376],"BEF":a[2825],"BMD":a[4377],"BND":a[4378],"BRL":a[516],"BSD":a[4379],"BZD":a[4380],"CAD":a[2316],"CLP":a[4381],"COP":a[4382],"CYP":a[4383],"EUR":a[519],"FJD":a[4384],"FKP":a[4385],"FRF":a[62],"GBP":a[4386],"GIP":a[4387],"IEP":a[4388],"ILP":a[4389],"ILS":a[522],"INR":a[523],"ITL":a[4390],"KRW":a[525],"LBP":a[4391],"MGA":a[3697],"MTP":a[4392],"MXN":a[4075],"NAD":a[4393],"NZD":a[4076],"RHD":a[4394],"SBD":a[4395],"SGD":a[4396],"SRD":a[4397],"TTD":a[4398],"USD":a[4399],"UYU":a[4400],"VND":a[530],"WST":a[3712],"XAF":a[531],"XOF":a[533],"XPF":a[4401]},{"ARS":a[4375],"AUD":a[4376],"BEF":a[2825],"BMD":a[4377],"BND":a[4378],"BRL":a[516],"BSD":a[4379],"BZD":a[4380],"CAD":a[2316],"CLP":a[4381],"COP":a[4382],"CYP":a[4383],"EUR":a[519],"FJD":a[4384],"FKP":a[4385],"FRF":a[62],"GBP":a[4386],"GIP":a[4387],"IEP":a[4388],"ILP":a[4389],"ILS":a[522],"INR":a[523],"ITL":a[4390],"KRW":a[525],"LBP":a[4391],"MRO":a[4147],"MTP":a[4392],"MXN":a[4075],"NAD":a[4393],"NZD":a[4076],"RHD":a[4394],"SBD":a[4395],"SGD":a[4396],"SRD":a[4397],"TTD":a[4398],"USD":a[4399],"UYU":a[4400],"VND":a[530],"WST":a[3712],"XAF":a[531],"XOF":a[533],"XPF":a[4401]},{"ARS":a[4375],"AUD":a[4376],"BEF":a[2825],"BMD":a[4377],"BND":a[4378],"BRL":a[516],"BSD":a[4379],"BZD":a[4380],"CAD":a[2316],"CLP":a[4381],"COP":a[4382],"CYP":a[4383],"EUR":a[519],"FJD":a[4384],"FKP":a[4385],"FRF":a[62],"GBP":a[4386],"GIP":a[4387],"IEP":a[4388],"ILP":a[4389],"ILS":a[522],"INR":a[523],"ITL":a[4390],"KRW":a[525],"LBP":a[4391],"MTP":a[4392],"MUR":a[3677],"MXN":a[4075],"NAD":a[4393],"NZD":a[4076],"RHD":a[4394],"SBD":a[4395],"SGD":a[4396],"SRD":a[4397],"TTD":a[4398],"USD":a[4399],"UYU":a[4400],"VND":a[530],"WST":a[3712],"XAF":a[531],"XOF":a[533],"XPF":a[4401]},{"ARS":a[4375],"AUD":a[4376],"BEF":a[2825],"BMD":a[4377],"BND":a[4378],"BRL":a[516],"BSD":a[4379],"BZD":a[4380],"CAD":a[2316],"CLP":a[4381],"COP":a[4382],"CYP":a[4383],"EUR":a[519],"FJD":a[4384],"FKP":a[4385],"FRF":a[62],"GBP":a[4386],"GIP":a[4387],"IEP":a[4388],"ILP":a[4389],"ILS":a[522],"INR":a[523],"ITL":a[4390],"KRW":a[525],"LBP":a[4391],"MTP":a[4392],"MXN":a[4075],"NAD":a[4393],"NZD":a[4076],"RHD":a[4394],"RWF":a[3705],"SBD":a[4395],"SGD":a[4396],"SRD":a[4397],"TTD":a[4398],"USD":a[4399],"UYU":a[4400],"VND":a[530],"WST":a[3712],"XAF":a[531],"XOF":a[533],"XPF":a[4401]},{"ARS":a[4375],"AUD":a[4376],"BEF":a[2825],"BMD":a[4377],"BND":a[4378],"BRL":a[516],"BSD":a[4379],"BZD":a[4380],"CAD":a[2316],"CLP":a[4381],"COP":a[4382],"CYP":a[4383],"EUR":a[519],"FJD":a[4384],"FKP":a[4385],"FRF":a[62],"GBP":a[4386],"GIP":a[4387],"IEP":a[4388],"ILP":a[4389],"ILS":a[522],"INR":a[523],"ITL":a[4390],"KRW":a[525],"LBP":a[4391],"MTP":a[4392],"MXN":a[4075],"NAD":a[4393],"NZD":a[4076],"RHD":a[4394],"SBD":a[4395],"SCR":a[3706],"SGD":a[4396],"SRD":a[4397],"TTD":a[4398],"USD":a[4399],"UYU":a[4400],"VND":a[530],"WST":a[3712],"XAF":a[531],"XOF":a[533],"XPF":a[4401]},{"ARS":a[4375],"AUD":a[4376],"BEF":a[2825],"BMD":a[4377],"BND":a[4378],"BRL":a[516],"BSD":a[4379],"BZD":a[4380],"CAD":a[2316],"CLP":a[4381],"COP":a[4382],"CYP":a[4383],"EUR":a[519],"FJD":a[4384],"FKP":a[4385],"FRF":a[62],"GBP":a[4386],"GIP":a[4387],"IEP":a[4388],"ILP":a[4389],"ILS":a[522],"INR":a[523],"ITL":a[4390],"KRW":a[525],"LBP":a[4391],"MTP":a[4392],"MXN":a[4075],"NAD":a[4393],"NZD":a[4076],"RHD":a[4394],"SBD":a[4395],"SGD":a[4396],"SRD":a[4397],"SYP":a[4416],"TTD":a[4398],"USD":a[4399],"UYU":a[4400],"VND":a[530],"WST":a[3712],"XAF":a[531],"XOF":a[533],"XPF":a[4401]},{"ARS":a[4375],"AUD":a[4376],"BEF":a[2825],"BMD":a[4377],"BND":a[4378],"BRL":a[516],"BSD":a[4379],"BZD":a[4380],"CAD":a[2316],"CLP":a[4381],"COP":a[4382],"CYP":a[4383],"EUR":a[519],"FJD":a[4384],"FKP":a[4385],"FRF":a[62],"GBP":a[4386],"GIP":a[4387],"IEP":a[4388],"ILP":a[4389],"ILS":a[522],"INR":a[523],"ITL":a[4390],"KRW":a[525],"LBP":a[4391],"MTP":a[4392],"MXN":a[4075],"NAD":a[4393],"NZD":a[4076],"RHD":a[4394],"SBD":a[4395],"SGD":a[4396],"SRD":a[4397],"TND":a[4417],"TTD":a[4398],"USD":a[4399],"UYU":a[4400],"VND":a[530],"WST":a[3712],"XAF":a[531],"XOF":a[533],"XPF":a[4401]},{"ARS":a[4375],"AUD":a[4376],"BEF":a[2825],"BMD":a[4377],"BND":a[4378],"BRL":a[516],"BSD":a[4379],"BZD":a[4380],"CAD":a[2316],"CLP":a[4381],"COP":a[4382],"CYP":a[4383],"EUR":a[519],"FJD":a[4384],"FKP":a[4385],"FRF":a[62],"GBP":a[4386],"GIP":a[4387],"IEP":a[4388],"ILP":a[4389],"ILS":a[522],"INR":a[523],"ITL":a[4390],"KRW":a[525],"LBP":a[4391],"MTP":a[4392],"MXN":a[4075],"NAD":a[4393],"NZD":a[4076],"RHD":a[4394],"SBD":a[4395],"SGD":a[4396],"SRD":a[4397],"TTD":a[4398],"USD":a[4399],"UYU":a[4400],"VND":a[530],"VUV":a[3711],"WST":a[3712],"XAF":a[531],"XOF":a[533],"XPF":a[4401]},{"d":a[17],"E":a[18],"Ed":a[19],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[1231],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[609],"MMd":a[2068],"MMM":a[41],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[4418],"MMMMEd":a[545],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[547],"yMEd":a[1341],"yMMM":a[50],"yMMMd":a[679],"yMMMEd":a[613],"yMMMM":a[4419],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[4420],"yMMMMd":a[4421],"yMMMd":a[738],"yMd":a[3080]},[a[2072],a[62],a[63],a[64],a[63],a[61],a[38],a[64],a[65],a[66],a[67],a[68]],[a[4422],a[4423],a[71],a[4424],a[3087],a[4425],a[4426],a[4427],a[4228],a[4428],a[79],a[4429]],[a[4430],a[4431],a[4432],a[4433],a[3087],a[4434],a[4426],a[4435],a[4436],a[4437],a[3404],a[4438]],[a[1372],a[4439],a[1350],a[4440],a[4441],a[4442],a[4443]],[a[4444],a[4445],a[4446],a[4447],a[4448],a[4449],a[4450]],{"am":a[4451],"pm":a[4452]},[a[4453],a[4454],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[2258],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[4455],"MEd":a[3813],"MMM":a[41],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[3814],"yMd":a[4456],"yMEd":a[4457],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[613],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[615],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[3820]},[a[3137],a[3138],a[4458],a[3140],a[3908],a[3141],a[2842],a[3142],a[3143],a[3144],a[2846],a[2847]],[a[4459],a[4460],a[4461],a[2421],a[4462],a[2841],a[4463],a[4464],a[4465],a[3148],a[4466],a[4467]],[a[2072],a[63],a[68],a[93],a[68],a[574],a[2072]],[a[4468],a[4469],a[4168],a[4470],a[4170],a[4471],a[3059]],[a[4472],a[4473],a[4474],a[4475],a[4476],a[4477],a[4478]],[a[4479],a[4480],a[4481],a[4482],a[4483],a[153],a[154],a[4484],a[156],a[4485],a[4486],a[4487],a[4488]],[a[4489],a[4490],a[165],a[166],a[4491],a[4492],a[4493],a[4494],a[171],a[4495],a[173],a[4496],a[4497]],[a[4498],a[4499],a[4500],a[4501]],[a[3169],a[4502],a[4503],a[594]],[a[4504],a[4505],a[4506],a[4507]],[a[4508],a[4509],a[199],a[200],a[4510],a[4511],a[203],a[204],a[4512],a[206],a[4513],a[208],a[4514],a[4515]],[a[211],a[4516],a[4517],a[4518],a[4519],a[4520],a[4521],a[4522],a[219],a[4523],a[4524],a[4525]],[a[4526]],[a[4527],a[225],a[226],a[227],a[4528],a[4529],a[230],a[4530],a[232],a[4531],a[4532],a[4533]],[a[4534],a[237],a[4535],a[4536],a[4537],a[4538],a[242],a[4539],a[244],a[4540],a[4541],a[4542]],[a[4543]],{"positivePattern":a[1182],"negativePattern":a[4544]},{"AUD":a[802],"BRL":a[516],"CAD":a[3843],"CNY":a[518],"EUR":a[519],"FJD":a[4545],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"SBD":a[4546],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[2258],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[3655],"Md":a[2069],"MEd":a[2259],"MMM":a[41],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[738],"yMEd":a[2260],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[613],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},[a[1900],a[62],a[63],a[64],a[188],a[63],a[1313],a[38],a[63],a[68],a[65],a[67]],[a[4547],a[4548],a[4549],a[4550],a[4551],a[4552],a[4553],a[4554],a[4555],a[4556],a[4557],a[4558]],[a[4559],a[4560],a[4549],a[4561],a[4562],a[4563],a[4553],a[4564],a[4565],a[4566],a[4567],a[4568]],[a[68],a[38],a[63],a[3116],a[68],a[64],a[65]],[a[4569],a[4570],a[4571],a[4572],a[4573],a[4574],a[4575]],[a[4576],a[4577],a[4578],a[4579],a[4580],a[4581],a[4582]],[a[4583],a[192],a[4584],a[4585]],[a[4586],a[194],a[4587],a[4588]],{"d":a[17],"E":a[18],"Ed":a[1959],"Ehm":a[4589],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[4590],"H":a[29],"hm":a[4591],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[4592],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[542],"MMdd":a[2069],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[4593],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[48],"yMEd":a[1341],"yMM":a[2071],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[1840],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[4594],"yMMMMd":a[4595],"yMMMd":a[549],"yMd":a[738]},[a[62],a[2293],a[63],a[2293],a[3116],a[4596],a[1313],a[38],a[65],a[68],a[65],a[68]],[a[4597],a[4598],a[4599],a[4600],a[4601],a[4602],a[4603],a[4604],a[4605],a[4606],a[4557],a[4607]],[a[4608],a[4609],a[4610],a[4611],a[4612],a[4613],a[4614],a[4615],a[4616],a[4617],a[4618],a[4619]],[a[68],a[38],a[63],a[3116],a[64],a[481],a[65]],[a[4620],a[4621],a[4622],a[4623],a[4624],a[4625],a[4626]],[a[4627],a[4628],a[4629],a[4630],a[4631],a[4632],a[4633]],{"am":a[1767],"pm":a[625]},[a[603],a[64],a[189],a[190]],[a[4583],a[192],a[189],a[190]],[a[4634],a[4635],a[189],a[190]],[a[4636],a[4637]],[a[4638],a[4637]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[19],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[4455],"MEd":a[2115],"MMdd":a[2069],"MMM":a[41],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[811],"MMMMEd":a[545],"ms":a[45],"y":a[46],"yM":a[3814],"yMd":a[611],"yMEd":a[1341],"yMM":a[2071],"yMMM":a[50],"yMMMd":a[617],"yMMMEd":a[2116],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[4639],"yMMMMd":a[552],"yMMMd":a[617],"yMd":a[3080]},[a[1346],a[62],a[63],a[64],a[63],a[1346],a[1346],a[64],a[65],a[66],a[67],a[68]],[a[4640],a[1349],a[1350],a[1351],a[3866],a[4641],a[4642],a[1355],a[1356],a[4643],a[2417],a[2418]],[a[4644],a[4645],a[3778],a[3779],a[4646],a[4647],a[4648],a[3781],a[4649],a[4650],a[3736],a[3737]],[a[1372],a[4651],a[1350],a[4652],a[4653],a[4654],a[1377]],[a[3792],a[4651],a[1380],a[4655],a[4656],a[4657],a[3796]],[a[1437],a[1438],a[189],a[190]],[a[3801],a[4658],a[1437],a[1438]],{"AUD":a[2315],"BRL":a[4659],"CAD":a[2316],"CNY":a[518],"ESP":a[2889],"EUR":a[519],"GBP":a[520],"HKD":a[4073],"ILS":a[522],"INR":a[523],"JPY":a[4660],"KRW":a[525],"MXN":a[4075],"NZD":a[527],"THB":a[601],"TWD":a[4661],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[3012],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[481],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[3221],"MEd":a[3222],"MMd":a[3223],"MMdd":a[2389],"MMM":a[41],"MMMd":a[3132],"MMMEd":a[3133],"MMMMd":a[2394],"MMMMEd":a[3022],"mmss":a[45],"ms":a[45],"y":a[46],"yM":a[3432],"yMd":a[547],"yMEd":a[3434],"yMM":a[1692],"yMMdd":a[1693],"yMMM":a[50],"yMMMd":a[679],"yMMMEd":a[3225],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},[a[69],a[70],a[4662],a[72],a[3087],a[74],a[75],a[76],a[77],a[1301],a[79],a[4663]],[a[3230],a[3231],a[3227],a[84],a[3087],a[1306],a[3228],a[4664],a[4665],a[4666],a[4667],a[4668]],[a[3662],a[4669],a[4670],a[3234],a[4671],a[3235],a[581]],[a[4672],a[4673],a[4674],a[4675],a[4676],a[4677],a[4678]],{"am":a[3243],"pm":a[4679]},[a[3245],a[3246],a[189],a[190]],{"decimal":a[508],"group":a[4680],"nan":a[510],"plusSign":a[511],"minusSign":a[3890],"percentSign":a[513],"infinity":a[514]},{"ATS":a[3251],"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[4681],"GyMMMd":a[4682],"GyMMMEd":a[4683],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[542],"MMdd":a[541],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[1341],"yMM":a[546],"yMMM":a[50],"yMMMd":a[617],"yMMMEd":a[2116],"yMMMM":a[53],"yQQQ":a[1259],"yQQQQ":a[1260]},{"hmmsszzzz":a[4684],"hmsz":a[4685],"hms":a[2388],"hm":a[2387]},[a[4686],a[4687],a[4688],a[4689],a[4690],a[4691],a[4692],a[4693],a[4694],a[4693],a[4695],a[4696]],[a[4697],a[4698],a[4699],a[4700],a[4690],a[4701],a[4702],a[4703],a[4704],a[4705],a[4706],a[4707]],[a[4708],a[4709],a[4699],a[4700],a[4690],a[4701],a[4702],a[4703],a[4710],a[4711],a[4712],a[4713]],[a[4714],a[4715],a[4716],a[4717],a[4718],a[4719],a[4720]],[a[4721],a[4722],a[4723],a[4724],a[4725],a[4726],a[4727]],[a[4728],a[4729],a[4730],a[4731],a[4732],a[4733],a[4734]],[a[4735],a[4736],a[4737],a[4738]],[a[4739],a[4740],a[4737],a[4738]],[a[4741],a[4742],a[4743],a[4744]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[39],"MEd":a[40],"MMM":a[41],"MMMd":a[42],"MMMEd":a[43],"MMMMd":a[44],"MMMMEd":a[677],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[547],"yMEd":a[49],"yMMM":a[50],"yMMMd":a[679],"yMMMEd":a[52],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},[a[3116],a[62],a[63],a[64],a[63],a[61],a[3116],a[64],a[65],a[66],a[67],a[68]],[a[4745],a[70],a[1299],a[72],a[558],a[74],a[4746],a[4747],a[77],a[1301],a[4229],a[1903]],[a[4748],a[4749],a[1304],a[4750],a[558],a[1306],a[4751],a[1308],a[1309],a[4752],a[4753],a[1906]],[a[3116],a[3116],a[3116],a[3116],a[64],a[1313],a[1900]],[a[4754],a[4755],a[4756],a[4757],a[4758],a[4759],a[4760]],[a[4761],a[4762],a[4763],a[4764],a[4765],a[4766],a[4767]],{"am":a[4768],"pm":a[4769]},[a[4770],a[4771],a[189],a[190]],[a[4772],a[4773],a[189],a[190]],[a[4774],a[4775],a[4776],a[4777],a[4778],a[4779],a[4780],a[4781],a[4782],a[4783],a[4784],a[4785]],[a[4786],a[4787],a[4776],a[4788],a[4778],a[4789],a[4790],a[4781],a[4791],a[4792],a[4793],a[4794]],[a[4795],a[4796],a[4797],a[4798],a[4799],a[4800],a[4801]],[a[4802],a[4803],a[4804],a[4805],a[4806],a[4807],a[4808]],[a[61],a[62],a[63],a[64],a[63],a[708],a[708],a[64],a[65],a[66],a[67],a[68]],[a[69],a[4809],a[71],a[4810],a[73],a[4811],a[4812],a[4813],a[100],a[1301],a[4814],a[1903]],[a[4815],a[4816],a[4817],a[4818],a[4819],a[4820],a[4821],a[4822],a[4823],a[1310],a[4824],a[4825]],[a[38],a[38],a[92],a[38],a[64],a[61],a[64]],[a[4826],a[4827],a[4828],a[4829],a[4830],a[4831],a[4832]],[a[4833],a[4834],a[3414],a[4835],a[4836],a[4837],a[4838]],[a[4839],a[4840],a[189],a[190]],[a[4841],a[4842],a[189],a[190]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"GHS":a[729],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NGN":a[3700],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[542],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[1341],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[614],"yQQQ":a[1259],"yQQQQ":a[1260]},{"_value":a[1345],"_numbers":a[4843]},[a[4844],a[4845],a[4846],a[4847],a[558],a[4848],a[4849],a[4850],a[4851],a[4852],a[4853],a[4854]],[a[4855],a[4856],a[4857],a[4858],a[558],a[4859],a[4860],a[4861],a[4862],a[4863],a[4864],a[4865]],[a[4866],a[4867],a[4868],a[4869],a[4870],a[4871],a[4872]],[a[4873],a[4874],a[4875],a[4876],a[4877],a[4878],a[4879]],{"d":a[17],"E":a[18],"Ed":a[4881],"Ehm":a[20],"EHm":a[2817],"Ehms":a[22],"EHms":a[2818],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[4882],"GyMMMEd":a[4883],"h":a[4884],"H":a[481],"hm":a[30],"Hm":a[1231],"hms":a[32],"Hms":a[1230],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[1832],"MEd":a[1833],"MMM":a[41],"MMMd":a[4885],"MMMEd":a[4886],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[1836],"yMd":a[1837],"yMEd":a[1838],"yMM":a[1836],"yMMM":a[50],"yMMMd":a[4887],"yMMMEd":a[4888],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[4889],"yMMMMd":a[4890],"yMMMd":a[4887],"yMd":a[1837]},[a[4891],a[4892],a[4893],a[4894],a[4895],a[4896],a[4897],a[4898],a[4899],a[4900],a[4901],a[4902]],[a[4903],a[4904],a[4893],a[4905],a[4895],a[4896],a[4897],a[4906],a[4907],a[4908],a[4909],a[4910]],[a[4911],a[4912],a[4913],a[4914],a[4915],a[4916],a[4917]],[a[4918],a[4919],a[4920],a[4921],a[4922],a[4923],a[4924]],[a[4925],a[4926],a[4927],a[4928],a[4929],a[4930],a[4931]],{"am":a[4932],"pm":a[4933]},[a[4934],a[4935],a[189],a[190]],[a[4936],a[4935],a[4934],a[190]],[a[4937],a[4938],a[4939],a[4940],a[4941],a[4942],a[4943],a[4944],a[4945],a[4946],a[4947],a[4948],a[4949],a[4950]],[a[4951],a[4952],a[4953],a[4954],a[4955],a[4956],a[4957],a[4958],a[4959],a[4960],a[4961],a[4948],a[4962],a[4963]],[a[4964]],[a[4965],a[4966],a[4967],a[4968],a[4969],a[4970],a[4971],a[4972],a[4973],a[4974],a[4975],a[4976]],[a[4965],a[4966],a[4977],a[4978],a[4979],a[4980],a[4971],a[4972],a[4973],a[4974],a[4975],a[4976]],[a[4981]],[a[4982],a[250],a[251],a[252],a[253],a[254],a[255],a[256],a[257],a[258],a[259],a[260],a[261],a[262],a[263],a[264],a[265],a[266],a[267],a[268],a[269],a[270],a[271],a[272],a[4983],a[274],a[275],a[276],a[277],a[278],a[279],a[280],a[281],a[282],a[283],a[284],a[285],a[286],a[287],a[288],a[289],a[290],a[291],a[292],a[293],a[294],a[295],a[296],a[297],a[298],a[299],a[300],a[301],a[302],a[303],a[304],a[305],a[306],a[307],a[308],a[309],a[310],a[311],a[312],a[313],a[314],a[315],a[316],a[317],a[318],a[319],a[320],a[321],a[4984],a[323],a[324],a[325],a[326],a[327],a[328],a[329],a[330],a[331],a[332],a[333],a[334],a[335],a[336],a[337],a[338],a[339],a[340],a[341],a[342],a[343],a[344],a[345],a[346],a[347],a[348],a[349],a[350],a[351],a[352],a[353],a[354],a[355],a[356],a[357],a[358],a[359],a[360],a[361],a[362],a[363],a[364],a[365],a[366],a[367],a[368],a[369],a[370],a[371],a[372],a[373],a[374],a[375],a[376],a[377],a[378],a[379],a[380],a[381],a[382],a[383],a[384],a[385],a[386],a[387],a[388],a[389],a[390],a[391],a[392],a[393],a[394],a[395],a[396],a[397],a[398],a[399],a[400],a[401],a[402],a[403],a[404],a[405],a[406],a[407],a[408],a[409],a[410],a[411],a[412],a[413],a[414],a[415],a[416],a[417],a[418],a[419],a[420],a[421],a[422],a[423],a[424],a[425],a[426],a[427],a[428],a[429],a[430],a[431],a[432],a[433],a[434],a[435],a[436],a[437],a[438],a[439],a[440],a[441],a[442],a[443],a[444],a[445],a[446],a[447],a[448],a[449],a[450],a[451],a[452],a[453],a[454],a[455],a[456],a[457],a[458],a[459],a[460],a[461],a[462],a[463],a[464],a[465],a[466],a[467],a[468],a[469],a[470],a[471],a[472],a[473],a[474],a[475],a[476],a[477],a[478],a[479],a[480],a[482],a[483],a[484],a[485]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILP":a[4985],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[4987],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[542],"MMdd":a[2069],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"MMMMEd":a[1834],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[1341],"yMM":a[2071],"yMMdd":a[738],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[1298],"yMMMMd":a[616],"yMMMd":a[738],"yMd":a[1345]},[a[2323],a[4988],a[2325],a[2331],a[4989],a[4990],a[2328],a[2331],a[4991],a[2331],a[2332],a[2333]],[a[4992],a[4993],a[4994],a[4995],a[4996],a[4997],a[4998],a[4999],a[5000],a[5001],a[5002],a[5003]],[a[5004],a[5005],a[4994],a[4995],a[4996],a[4997],a[5006],a[5007],a[5008],a[5009],a[5010],a[5011]],[a[2345],a[5012],a[2347],a[2348],a[5013],a[5014],a[5015]],[a[5016],a[5017],a[2353],a[5018],a[5019],a[5020],a[5021]],[a[5022],a[5023],a[5024],a[5025],a[5026],a[5027],a[5028]],{"am":a[5029],"pm":a[5030]},[a[5031],a[5032],a[5033],a[5034],a[5035],a[5036],a[5037],a[5038],a[5039],a[5040],a[5041],a[5042],a[5043]],[a[5044],a[5045],a[5046],a[5047]],[a[5044],a[5048],a[5046],a[5047]],[a[5049],a[5050],a[5051],a[5052],a[5053],a[5054],a[5055],a[5056],a[5057],a[5058],a[5059],a[5060]],[a[5061]],[a[5062],a[5063],a[5064],a[5065],a[5066],a[5067],a[5068],a[5069],a[5070],a[5071],a[5072],a[5073]],[a[5074],a[5075],a[5076],a[5077],a[5078],a[5079],a[5080],a[5081],a[5082],a[5083],a[5084],a[5085],a[5086],a[5087],a[5088],a[5089],a[5090],a[5091],a[5092],a[5093],a[5094],a[5095],a[5096],a[5097],a[5098],a[5099],a[5100],a[5101],a[5102],a[5103],a[5104],a[5105],a[5106],a[5107],a[5108],a[5109],a[5110],a[5111],a[5112],a[5113],a[5114],a[5115],a[5116],a[5117],a[5118],a[5119],a[5120],a[5121],a[5122],a[5123],a[5124],a[5125],a[5126],a[5127],a[5128],a[5129],a[5130],a[5131],a[5132],a[5133],a[5134],a[5135],a[5136],a[5137],a[5138],a[5139],a[5140],a[5141],a[5142],a[5143],a[5144],a[5145],a[5146],a[5147],a[5148],a[5149],a[5150],a[5151],a[5152],a[5153],a[5154],a[5155],a[5156],a[5157],a[5158],a[5159],a[5160],a[5161],a[5162],a[5163],a[5164],a[5165],a[5166],a[5167],a[5168],a[5169],a[5170],a[5171],a[5172],a[5173],a[5174],a[5175],a[5176],a[5177],a[5178],a[5179],a[5180],a[5181],a[5182],a[5183],a[5184],a[5185],a[5186],a[5187],a[5188],a[5189],a[5190],a[5191],a[5192],a[5193],a[5194],a[5195],a[5196],a[5197],a[5198],a[5199],a[5200],a[5201],a[5202],a[5203],a[5204],a[5205],a[5206],a[5207],a[5208],a[5209],a[5210],a[5211],a[5212],a[5213],a[5214],a[5215],a[5216],a[5217],a[5218],a[5219],a[5220],a[5221],a[5222],a[5223],a[5224],a[5225],a[5226],a[5227],a[5228],a[5229],a[5230],a[5231],a[5232],a[5233],a[5234],a[5235],a[5236],a[5237],a[5238],a[5239],a[5240],a[5241],a[5242],a[5243],a[5244],a[5245],a[5246],a[5247],a[5248],a[5249],a[5250],a[5251],a[5252],a[5253],a[5254],a[5255],a[5256],a[5257],a[5258],a[5259],a[5260],a[5261],a[5262],a[5263],a[5264],a[5265],a[5266],a[5267],a[5268],a[5269],a[5270],a[5271],a[5272],a[5273],a[5274],a[5275],a[5276],a[5277],a[5278],a[5279],a[5280],a[5281],a[5282],a[5283],a[5284],a[5285],a[5286],a[5287],a[5288],a[5289],a[5290],a[5291],a[5292],a[5293],a[5294],a[5295],a[5296],a[5297],a[5298],a[5299],a[5300],a[5301],a[5302],a[5303],a[5304],a[5305],a[5306],a[5307],a[5308],a[5309]],[a[5310],a[5311],a[5312],a[5313],a[5314],a[5315],a[5316],a[5317],a[5318],a[5319],a[5320],a[5321]],{"d":a[3011],"E":a[18],"Ed":a[2455],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[2383],"GyMMM":a[5322],"GyMMMd":a[5323],"GyMMMEd":a[5324],"h":a[28],"H":a[29],"hm":a[2387],"Hm":a[31],"hms":a[2388],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[5325],"Md":a[2389],"MEd":a[2390],"MMdd":a[2391],"MMM":a[41],"MMMd":a[3132],"MMMEd":a[3224],"MMMMd":a[2394],"MMMMEd":a[2395],"ms":a[45],"y":a[2396],"yM":a[2397],"yMd":a[2398],"yMEd":a[2399],"yMM":a[2400],"yMMM":a[5326],"yMMMd":a[5327],"yMMMEd":a[5328],"yMMMM":a[2404],"yQQQ":a[5329],"yQQQQ":a[5330]},{"yMMMMEEEEd":a[5331],"yMMMMd":a[5332],"yMMMd":a[5327],"yMd":a[2398]},[a[5333],a[5334],a[5335],a[5336],a[5337],a[5338],a[5339],a[5340],a[5341],a[5342],a[5343],a[5344]],[a[5345],a[5346],a[5347],a[5348],a[5349],a[5350],a[3035],a[5351],a[5352],a[3038],a[5353],a[3039]],[a[5354],a[5355],a[5356],a[5357],a[5358],a[5359],a[5360],a[5361],a[5362],a[5363],a[5364],a[5365]],[a[2448],a[192],a[2452],a[2449]],[a[5366],a[5367],a[2452],a[2449]],[a[5368],a[5369],a[2452],a[2449]],[a[5370],a[5371],a[5372],a[5373],a[5374],a[5375],a[5376],a[5377],a[5378],a[5379],a[5380],a[5381],a[5382],a[5383],a[5384],a[5385],a[5386],a[5387],a[5388],a[5389],a[5390],a[5391],a[5392],a[5393],a[5394],a[5395],a[5396],a[5397],a[5398],a[5399],a[5400],a[5401],a[5402],a[5403],a[5404],a[5405],a[5406],a[5407],a[5408],a[5409],a[5410],a[5411],a[5412],a[5413],a[5414],a[5415],a[5416],a[5417],a[5418],a[5419],a[5420],a[5421],a[5422],a[5423],a[5424],a[5425],a[5426],a[5427],a[5428],a[5429],a[5430],a[5431],a[5432],a[5433],a[5434],a[5435],a[5436],a[5437],a[5438],a[5439],a[5440],a[5441],a[5442],a[5443],a[5444],a[5445],a[5446],a[5447],a[5448],a[5449],a[5450],a[5451],a[5452],a[5453],a[5454],a[5455],a[5456],a[5457],a[5458],a[5459],a[5460],a[5461],a[5462],a[5463],a[5464],a[5465],a[5466],a[5467],a[5468],a[5469],a[5470],a[5471],a[5472],a[5473],a[5474],a[5475],a[5476],a[5477],a[5478],a[5479],a[5480],a[5481],a[5482],a[5483],a[5484],a[5485],a[5486],a[5487],a[5488],a[5489],a[5490],a[5491],a[5492],a[5493],a[5494],a[5495],a[5496],a[5497],a[5498],a[5499],a[5500],a[5501],a[5502],a[5503],a[5504],a[5505],a[5506],a[5507],a[5508],a[5509],a[5510],a[5511],a[5512],a[5513],a[5514],a[5515],a[5516],a[5517],a[5518],a[5519],a[5520],a[5521],a[5522],a[5523],a[5524],a[5525],a[5526],a[5527],a[5528],a[5529],a[5530],a[5531],a[5532],a[5533],a[5534],a[5535],a[5536],a[5537],a[5538],a[5539],a[5540],a[5541],a[5542],a[5543],a[5544],a[5545],a[5546],a[5547],a[5548],a[5549],a[5550],a[5551],a[5552],a[5553],a[5554],a[5555],a[5556],a[5557],a[5558],a[5559],a[5560],a[5561],a[5562],a[5563],a[5564],a[5565],a[5566],a[5567],a[5568],a[5569],a[5570],a[5571],a[5572],a[5573],a[5574],a[5575],a[5576],a[5577],a[5578],a[5579],a[5580],a[5581],a[5582],a[5583],a[5584],a[5585],a[5586],a[5587],a[5588],a[5589],a[5590],a[5591],a[5592],a[5593],a[5594],a[5595],a[5596],a[5597],a[5598],a[5599],a[5600],a[5601],a[482],a[483],a[484],a[485]],[a[5602],a[598]],{"XAF":a[531],"XOF":a[533]},{"BAM":a[1330],"XAF":a[531],"XOF":a[533]},{"d":a[17],"E":a[18],"Ed":a[2455],"Ehm":a[1960],"EHm":a[5603],"Ehms":a[1962],"EHms":a[3078],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[3126],"GyMMMEd":a[3219],"h":a[28],"H":a[5604],"hm":a[30],"Hm":a[5605],"hms":a[32],"Hms":a[1230],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[3221],"MEd":a[3222],"MMM":a[41],"MMMd":a[3132],"MMMEd":a[3224],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[1836],"yMd":a[1837],"yMEd":a[1838],"yMMM":a[50],"yMMMd":a[3134],"yMMMEd":a[3225],"yMMMM":a[614],"yQQQ":a[54],"yQQQQ":a[55]},{"hmmsszzzz":a[1228],"hmsz":a[1229],"hms":a[1230],"hm":a[5605]},[a[3137],a[3138],a[3301],a[3140],a[5606],a[3141],a[2842],a[3303],a[3143],a[3144],a[3304],a[3145]],[a[3305],a[3306],a[3307],a[3308],a[5607],a[3310],a[3311],a[3312],a[3313],a[3314],a[3315],a[3316]],[a[620],a[3317],a[3318],a[623],a[5608],a[3317],a[623]],[a[1776],a[3319],a[5609],a[3321],a[5610],a[5611],a[3324]],[a[5612],a[5613],a[5614],a[5615],a[5616],a[5617],a[3066]],{"am":a[3331],"pm":a[5618]},[a[5619],a[5620],a[5621],a[5622]],[a[5623],a[5624],a[5625],a[5626]],{"d":a[17],"E":a[18],"Ed":a[5627],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[5628],"GyMMM":a[5629],"GyMMMd":a[5630],"GyMMMEd":a[5631],"h":a[5632],"H":a[481],"hm":a[5633],"Hm":a[1231],"hms":a[5634],"Hms":a[1230],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[5635],"MEd":a[5636],"MMM":a[41],"MMMd":a[5637],"MMMEd":a[5638],"MMMMd":a[5639],"mmss":a[45],"ms":a[45],"y":a[2396],"yM":a[5640],"yMd":a[5641],"yMEd":a[5642],"yMMM":a[5643],"yMMMd":a[5644],"yMMMEd":a[5645],"yMMMM":a[5646],"yQQQ":a[5647],"yQQQQ":a[5648]},{"yMMMMEEEEd":a[5649],"yMMMMd":a[5650],"yMMMd":a[5644],"yMd":a[5641]},[a[61],a[62],a[63],a[5651],a[63],a[61],a[61],a[64],a[5652],a[66],a[67],a[68]],[a[3137],a[2837],a[5653],a[5654],a[5655],a[5656],a[5657],a[3142],a[5658],a[3144],a[2846],a[3145]],[a[5659],a[5660],a[5661],a[5662],a[5663],a[5664],a[5665],a[5666],a[5667],a[5668],a[3149],a[3150]],[a[574],a[481],a[707],a[5652],a[5669],a[1347],a[5652]],[a[574],a[481],a[707],a[5670],a[5669],a[1347],a[5671]],[a[5672],a[5673],a[5674],a[5675],a[5676],a[5677],a[5678]],[a[671]],{"am":a[5679],"pm":a[5680]},[a[5681],a[5682],a[189],a[190]],[a[5683],a[5684],a[189],a[190]],[a[5685],a[5686],a[5683],a[5684]],[a[5687],a[5688],a[5689],a[5690],a[5691],a[5692],a[5693],a[5694],a[5695],a[5696],a[207],a[5697],a[209],a[5698]],[a[5699]],[a[5700],a[225],a[5701],a[5702],a[5703],a[5704],a[5705],a[5706],a[232],a[5707],a[5708],a[5709]],[a[5710],a[237],a[5711],a[5712],a[5713],a[5714],a[5715],a[5716],a[5717],a[5718],a[5719],a[5720]],[a[5721]],[a[5722],a[598]],{"HUF":a[5723],"JPY":a[524],"XAF":a[531],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[5724],"Ehm":a[1960],"EHm":a[1961],"Ehms":a[1962],"EHms":a[3078],"Gy":a[5725],"GyMMM":a[5726],"GyMMMd":a[5727],"GyMMMEd":a[5728],"h":a[28],"H":a[481],"hm":a[30],"Hm":a[1231],"hms":a[32],"Hms":a[1230],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[1689],"MEd":a[1690],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1691],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[1692],"yMd":a[1693],"yMEd":a[5729],"yMMM":a[5730],"yMMMd":a[5731],"yMMMEd":a[5732],"yMMMM":a[5733],"yQQQ":a[5734],"yQQQQ":a[5735]},{"yMMMMEEEEd":a[5736],"yMMMMd":a[5737],"yMMMd":a[5738],"yMd":a[1697]},{"hmmsszzzz":a[5739],"hmsz":a[5740],"hms":a[1230],"hm":a[1231]},[a[5741],a[5742],a[5743],a[5744],a[5743],a[5741],a[5741],a[5745],a[5746],a[5741],a[5747],a[5748]],[a[5749],a[5750],a[5751],a[5752],a[5753],a[5754],a[5755],a[5756],a[5757],a[5758],a[5759],a[5760]],[a[5761],a[5762],a[5763],a[5764],a[5765],a[5766],a[5767],a[5768],a[5769],a[5770],a[5771],a[5772]],[a[5773],a[5774],a[5774],a[5775],a[5741],a[5776],a[5777]],[a[5778],a[5779],a[5780],a[5781],a[5782],a[5783],a[5784]],[a[5785],a[5786],a[5787],a[5788],a[5789],a[5790],a[5791]],[a[5792],a[5793],a[5794],a[190]],[a[5792],a[5793],a[5795],a[5796]],{"AMD":a[5797],"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[1959],"Ehm":a[3124],"EHm":a[1819],"Ehms":a[3125],"EHms":a[1821],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[3128],"Hm":a[1825],"hms":a[3129],"Hms":a[1827],"hmsv":a[5798],"Hmsv":a[1829],"hmv":a[3131],"Hmv":a[1831],"M":a[38],"Md":a[608],"MEd":a[542],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"MMMMEd":a[1834],"ms":a[1835],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[1341],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[551],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[3080]},[a[69],a[70],a[71],a[72],a[558],a[74],a[75],a[4747],a[77],a[1301],a[79],a[5799]],[a[1302],a[1303],a[5800],a[84],a[558],a[1306],a[3228],a[5801],a[88],a[572],a[90],a[573]],[a[63],a[65],a[65],a[603],a[707],a[61],a[65]],[a[5802],a[5803],a[5804],a[5805],a[5806],a[3202],a[1924]],[a[5807],a[5808],a[5809],a[5810],a[5811],a[5812],a[5813]],[a[5814],a[63],a[5815],a[5816]],[a[5817],a[63],a[5818],a[5819]],[a[224],a[225],a[226],a[227],a[228],a[229],a[230],a[231],a[232],a[5820],a[234],a[235]],[a[236],a[237],a[238],a[239],a[240],a[241],a[242],a[5821],a[5822],a[5823],a[246],a[247]],[a[249],a[250],a[251],a[252],a[253],a[254],a[255],a[256],a[257],a[258],a[5824],a[5825],a[5826],a[5827],a[5828],a[264],a[265],a[266],a[267],a[268],a[269],a[270],a[271],a[272],a[273],a[5829],a[5830],a[276],a[5831],a[278],a[5832],a[280],a[281],a[282],a[5833],a[284],a[285],a[286],a[287],a[288],a[289],a[290],a[5834],a[292],a[293],a[294],a[295],a[5835],a[297],a[298],a[299],a[300],a[301],a[302],a[303],a[304],a[305],a[306],a[307],a[308],a[309],a[310],a[311],a[312],a[313],a[314],a[315],a[316],a[5836],a[318],a[319],a[5837],a[321],a[5838],a[323],a[324],a[325],a[326],a[327],a[328],a[5839],a[5840],a[331],a[332],a[333],a[334],a[5841],a[336],a[337],a[5842],a[339],a[340],a[341],a[5843],a[343],a[344],a[345],a[346],a[347],a[5844],a[349],a[350],a[351],a[352],a[353],a[354],a[5845],a[356],a[357],a[358],a[359],a[360],a[5846],a[5847],a[363],a[364],a[5848],a[366],a[367],a[368],a[369],a[370],a[371],a[5849],a[373],a[374],a[375],a[1680],a[377],a[378],a[379],a[380],a[381],a[382],a[383],a[5850],a[385],a[5851],a[387],a[388],a[389],a[390],a[391],a[392],a[393],a[394],a[5852],a[396],a[397],a[398],a[399],a[5853],a[401],a[5854],a[403],a[404],a[5855],a[406],a[407],a[408],a[409],a[410],a[411],a[412],a[413],a[414],a[415],a[416],a[417],a[418],a[419],a[420],a[421],a[422],a[5856],a[424],a[425],a[426],a[427],a[428],a[429],a[430],a[431],a[432],a[433],a[434],a[435],a[436],a[437],a[438],a[5857],a[440],a[441],a[442],a[443],a[444],a[445],a[5858],a[5859],a[448],a[449],a[5860],a[5861],a[452],a[453],a[454],a[5862],a[456],a[457],a[458],a[459],a[460],a[461],a[462],a[463],a[5863],a[5864],a[466],a[5865],a[468],a[469],a[470],a[471],a[472],a[473],a[474],a[475],a[476],a[5866],a[478],a[479],a[480],a[482],a[483],a[484],a[485]],[a[5867],a[598]],{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"IDR":a[5868],"ILS":a[522],"INR":a[3677],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[5869],a[70],a[3511],a[1901],a[3399],a[5870],a[75],a[5871],a[77],a[5872],a[79],a[1903]],[a[5873],a[5874],a[5875],a[5876],a[3399],a[5877],a[5878],a[5879],a[1309],a[5880],a[1311],a[1906]],[a[5881],a[5882],a[5883],a[5884],a[5885],a[5886],a[100]],[a[5887],a[5888],a[5889],a[5890],a[5891],a[5892],a[5893]],{"am":a[2305],"pm":a[5894]},[a[5895],a[5896],a[189],a[190]],[a[5897],a[5898],a[189],a[190]],[a[5899],a[5900],a[5901],a[5902],a[5903],a[5904],a[5905],a[5906],a[5907],a[5908],a[5909],a[5910]],[a[5911],a[5912],a[5913],a[5914],a[5915],a[5916],a[5917]],[a[5918],a[5919],a[5920],a[5921],a[5922],a[5923],a[5924]],[a[5925],a[5926],a[5927],a[5928],a[5929],a[5930],a[5931]],{"am":a[5932],"pm":a[5933]},[a[5934],a[5935],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[3012],"Ehm":a[1960],"EHm":a[1961],"Ehms":a[1962],"EHms":a[3078],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[3126],"GyMMMEd":a[3219],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[3221],"MEd":a[3222],"MMM":a[41],"MMMd":a[3132],"MMMEd":a[3224],"MMMMd":a[2394],"MMMMEd":a[2395],"ms":a[45],"y":a[46],"yM":a[5936],"yMd":a[1837],"yMEd":a[1838],"yMMM":a[50],"yMMMd":a[3134],"yMMMEd":a[3225],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[3226],"yMMMMd":a[3025],"yMMMd":a[3134],"yMd":a[1837]},[a[61],a[62],a[63],a[64],a[63],a[61],a[61],a[5651],a[65],a[66],a[67],a[68]],[a[3137],a[3138],a[3139],a[3140],a[5937],a[5656],a[5657],a[5938],a[3143],a[3144],a[5939],a[2847]],[a[5940],a[5941],a[4257],a[4258],a[5937],a[5942],a[5943],a[5944],a[3147],a[5668],a[5945],a[4259]],[a[65],a[63],a[5946],a[63],a[62],a[62],a[38]],[a[4260],a[4261],a[5947],a[5948],a[5949],a[5950],a[5951]],[a[4267],a[5952],a[5953],a[5954],a[5955],a[5956],a[5957]],{"am":a[5958],"pm":a[5959]},[a[5960],a[5961],a[5962],a[5963]],[a[3169],a[3170],a[5962],a[5963]],[a[5964],a[4279],a[5965],a[5966]],{"CNY":a[518],"HKD":a[521],"ILS":a[522],"JPY":a[600],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[2258],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[609],"MMM":a[41],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[612],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[613],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[615],"yMMMMd":a[616],"yMMMd":a[553],"yMd":a[3080]},[a[2293],a[62],a[63],a[64],a[63],a[2293],a[38],a[64],a[65],a[66],a[67],a[68]],[a[1409],a[1349],a[1350],a[1700],a[5967],a[5968],a[5969],a[1355],a[1356],a[5970],a[2417],a[3837]],[a[5971],a[5972],a[3778],a[5973],a[5974],a[5975],a[5976],a[3781],a[5977],a[5978],a[4297],a[5979]],[a[68],a[38],a[63],a[63],a[2293],a[574],a[65]],[a[1372],a[4439],a[1350],a[5980],a[5981],a[4654],a[4443]],[a[5982],a[5983],a[5984],a[5985],a[5986],a[5987],a[3750]],[a[1433],a[1434],a[189],a[190]],[a[1437],a[1438],a[5988],a[5989]],[a[1437],a[1438],a[5990],a[5991]],[a[5992],a[500]],{"AUD":a[515],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"ILS":a[522],"INR":a[523],"NZD":a[527],"THB":a[601],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"yMMMMEEEEd":a[1298],"yMMMMd":a[616],"yMMMd":a[5993],"yMd":a[1697]},{"d":a[5994],"E":a[18],"Ed":a[5995],"EEEEd":a[5996],"Ehm":a[5997],"EHm":a[5998],"Ehms":a[5999],"EHms":a[6000],"Gy":a[6001],"GyMMM":a[6002],"GyMMMd":a[6003],"GyMMMEd":a[6004],"GyMMMEEEEd":a[6005],"h":a[6006],"H":a[6007],"hm":a[6008],"Hm":a[1231],"hms":a[6009],"Hms":a[1230],"hmsv":a[6010],"Hmsv":a[3018],"hmv":a[6011],"Hmv":a[3019],"M":a[6012],"Md":a[39],"MEd":a[6013],"MEEEEd":a[6014],"MMM":a[6012],"MMMd":a[6015],"MMMEd":a[6016],"MMMEEEEd":a[6017],"MMMMd":a[6015],"ms":a[45],"y":a[6018],"yM":a[3895],"yMd":a[678],"yMEd":a[6019],"yMEEEEd":a[6020],"yMM":a[6021],"yMMM":a[6022],"yMMMd":a[6023],"yMMMEd":a[6024],"yMMMEEEEd":a[6025],"yMMMM":a[6022],"yQQQ":a[6026],"yQQQQ":a[6027]},{"yMMMMEEEEd":a[6025],"yMMMMd":a[6023],"yMMMd":a[3715],"yMd":a[3715]},{"hmmsszzzz":a[6028],"hmsz":a[1229],"hms":a[1230],"hm":a[1231]},[a[6029],a[6030],a[6031],a[6032],a[6033],a[6034],a[6035],a[6036],a[6037],a[6038],a[6039],a[6040]],[a[6041],a[6042],a[6043],a[6044],a[6045],a[6046],a[6047]],[a[6048],a[6049],a[6050],a[6051],a[6052],a[6053],a[6054]],[a[6055]],{"am":a[6056],"pm":a[6057]},[a[6058],a[6059],a[6060],a[6061],a[6062],a[6063],a[6064],a[6065],a[6066],a[6067],a[6068],a[6069]],[a[6070],a[6071],a[6072],a[6073],a[6074],a[6075],a[6076],a[6077],a[6078],a[6079],a[6080],a[6081]],[a[6082],a[6083],a[6084],a[6085],a[6086],a[6087],a[6088],a[6089],a[6090],a[6091],a[6092],a[6093],a[6094]],[a[6095],a[6096],a[6097],a[6098],a[6099],a[6100],a[6101],a[6102],a[6103],a[6104],a[6105],a[6106],a[6107]],[a[6108],a[6109],a[6110],a[6111]],[a[6112],a[6113],a[6114],a[6115],a[6116],a[6117],a[6118],a[6119],a[6120],a[6121],a[6122],a[6123],a[6124],a[6125]],[a[6126],a[6127],a[6128],a[6129],a[6130],a[6131],a[6132],a[6133],a[6134],a[6135],a[6136],a[6137]],[a[6138]],[a[6139],a[6140],a[6141],a[6142],a[6143],a[6144],a[6145],a[6146],a[6147],a[6148],a[6149],a[6150]],[a[6151],a[6152],a[6153],a[6154],a[6155],a[6156],a[6157],a[6158],a[6159],a[6160],a[6161],a[6162],a[6163],a[6164],a[6165],a[6166],a[6167],a[6168],a[6169],a[6170],a[6171],a[6172],a[6173],a[6174],a[6175],a[6176],a[6177],a[6178],a[6179],a[6180],a[6181],a[6182],a[6183],a[6184],a[6185],a[6186],a[6187],a[6188],a[6189],a[6190],a[6191],a[6192],a[6193],a[6194],a[6195],a[6196],a[6197],a[6198],a[6199],a[6200],a[6201],a[6202],a[6203],a[6204],a[6205],a[6206],a[6207],a[6208],a[6209],a[6210],a[6211],a[6212],a[6213],a[6214],a[6215],a[6216],a[6217],a[6218],a[6219],a[6220],a[6221],a[6222],a[6223],a[6224],a[6225],a[6226],a[6227],a[6228],a[6229],a[6230],a[6231],a[6232],a[6233],a[6234],a[6235],a[6236],a[6237],a[6238],a[6239],a[6240],a[6241],a[6242],a[6243],a[6244],a[6245],a[6246],a[6247],a[6248],a[6249],a[6250],a[6251],a[6252],a[6253],a[6254],a[6255],a[6256],a[6257],a[6258],a[6259],a[6260],a[6261],a[6262],a[6263],a[6264],a[6265],a[6266],a[6267],a[6268],a[6269],a[6270],a[6271],a[6272],a[6273],a[6274],a[6275],a[6276],a[6277],a[6278],a[6279],a[6280],a[6281],a[6282],a[6283],a[6284],a[6285],a[6286],a[6287],a[6288],a[6289],a[6290],a[6291],a[6292],a[6293],a[6294],a[6295],a[6296],a[6297],a[6298],a[6299],a[6300],a[6301],a[6302],a[6303],a[6304],a[6305],a[6306],a[6307],a[6308],a[6309],a[6310],a[6311],a[6312],a[6313],a[6314],a[6315],a[6316],a[6317],a[6318],a[6319],a[6320],a[6321],a[6322],a[6323],a[6324],a[6325],a[6326],a[6327],a[6328],a[6329],a[6330],a[6331],a[6332],a[6333],a[6334],a[6335],a[6336],a[6337],a[6338],a[6339],a[6340],a[6341],a[6342],a[6343],a[6344],a[6345],a[6346],a[6347],a[6348],a[6349],a[6350],a[6351],a[6352],a[6353],a[6354],a[6355],a[6356],a[6357],a[6358],a[6359],a[6360],a[6361],a[6362],a[6363],a[6364],a[6365],a[6366],a[6367],a[6368],a[6369],a[6370],a[6371],a[6372],a[6373],a[6374],a[6375],a[6376],a[6377],a[6378],a[6379],a[6380],a[6381],a[6382],a[63],a[92],a[65],a[481]],[a[6151],a[6152],a[6153],a[6154],a[6155],a[6156],a[6157],a[6158],a[6159],a[6160],a[6161],a[6162],a[6163],a[6164],a[6165],a[6166],a[6167],a[6168],a[6169],a[6170],a[6171],a[6172],a[6173],a[6174],a[6175],a[6176],a[6177],a[6178],a[6179],a[6180],a[6181],a[6182],a[6183],a[6184],a[6185],a[6186],a[6187],a[6188],a[6189],a[6190],a[6191],a[6192],a[6193],a[6194],a[6195],a[6196],a[6197],a[6198],a[6199],a[6200],a[6201],a[6202],a[6203],a[6204],a[6205],a[6206],a[6207],a[6208],a[6209],a[6210],a[6211],a[6212],a[6213],a[6214],a[6215],a[6216],a[6217],a[6218],a[6219],a[6220],a[6221],a[6222],a[6223],a[6224],a[6225],a[6226],a[6227],a[6228],a[6229],a[6230],a[6231],a[6232],a[6233],a[6234],a[6235],a[6236],a[6237],a[6238],a[6239],a[6240],a[6241],a[6242],a[6243],a[6244],a[6245],a[6246],a[6247],a[6248],a[6249],a[6250],a[6251],a[6252],a[6253],a[6254],a[6255],a[6256],a[6257],a[6258],a[6259],a[6260],a[6261],a[6262],a[6263],a[6264],a[6265],a[6266],a[6267],a[6268],a[6269],a[6270],a[6271],a[6272],a[6273],a[6274],a[6275],a[6276],a[6277],a[6278],a[6279],a[6280],a[6281],a[6282],a[6283],a[6284],a[6285],a[6286],a[6287],a[6288],a[6289],a[6290],a[6291],a[6292],a[6293],a[6294],a[6295],a[6296],a[6297],a[6298],a[6299],a[6300],a[6301],a[6302],a[6303],a[6304],a[6305],a[6306],a[6307],a[6308],a[6309],a[6310],a[6311],a[6312],a[6313],a[6314],a[6315],a[6316],a[6317],a[6318],a[6319],a[6320],a[6321],a[6322],a[6323],a[6324],a[6325],a[6326],a[6327],a[6328],a[6329],a[6330],a[6331],a[6332],a[6333],a[6334],a[6335],a[6336],a[6337],a[6338],a[6339],a[6340],a[6341],a[6342],a[6343],a[6344],a[6345],a[6346],a[6347],a[6348],a[6349],a[6350],a[6351],a[6352],a[6353],a[6354],a[6355],a[6356],a[6357],a[6358],a[6359],a[6360],a[6361],a[6362],a[6363],a[6364],a[6365],a[6366],a[6367],a[6368],a[6369],a[6370],a[6371],a[6372],a[6373],a[6374],a[6375],a[6376],a[6377],a[6378],a[6379],a[6380],a[6381],a[6382],a[6383],a[6384],a[6385],a[6386]],[a[6387],a[6388],a[6389],a[6390],a[6391],a[6392],a[6393],a[6394],a[6395],a[6396],a[6397],a[6398]],[a[6399],a[6400]],{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[6401],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[6402],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[1832],"MEd":a[1833],"MMM":a[41],"MMMd":a[42],"MMMEd":a[1254],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[1255],"yMd":a[6403],"yMEd":a[1256],"yMMM":a[1257],"yMMMd":a[679],"yMMMEd":a[1258],"yMMMM":a[614],"yQQQ":a[1259],"yQQQQ":a[1260]},{"yMMMMEEEEd":a[680],"yMMMMd":a[681],"yMMMd":a[679],"yMd":a[547]},[a[6404],a[6405],a[6406],a[6407],a[6408],a[6409],a[6410],a[6411],a[6412],a[6413],a[6414],a[6415]],[a[6416],a[6417],a[6418],a[6419],a[6420],a[6421],a[6422]],[a[6423],a[6424],a[6425],a[6426],a[6427],a[6428],a[6429]],{"am":a[6430],"pm":a[6431]},[a[6432],a[6433],a[189],a[190]],[a[69],a[70],a[1299],a[72],a[558],a[74],a[75],a[1300],a[77],a[1301],a[79],a[5799]],[a[1302],a[1303],a[1304],a[6434],a[558],a[6435],a[6436],a[6437],a[1309],a[1310],a[1311],a[1312]],[a[1314],a[1315],a[1316],a[1317],a[1318],a[6438],a[1320]],[a[6439],a[6440],a[1323],a[6441],a[1325],a[1326],a[1327]],{"am":a[6442],"pm":a[6443]},[a[6444],a[6445],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[19],"Ehm":a[1960],"EHm":a[1961],"Ehms":a[1962],"EHms":a[3078],"Gy":a[24],"GyMMM":a[6446],"GyMMMd":a[6447],"GyMMMEd":a[6448],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[1832],"MEd":a[1833],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[1836],"yMd":a[1837],"yMEd":a[1838],"yMMM":a[6449],"yMMMd":a[6450],"yMMMEd":a[6451],"yMMMM":a[6452],"yQQQ":a[6453],"yQQQQ":a[6454]},{"yMMMMEEEEd":a[6455],"yMMMMd":a[1747],"yMMMd":a[6450],"yMd":a[1697]},[a[6456],a[6457],a[6458],a[6459],a[6458],a[6456],a[6456],a[6459],a[6460],a[6461],a[6462],a[6463]],[a[6464],a[6465],a[6466],a[6467],a[6468],a[6469],a[6470],a[6471],a[6472],a[6473],a[6474],a[6475]],[a[6476],a[6477],a[6478],a[6479],a[6480],a[6481],a[6482],a[6483],a[6484],a[6485],a[6486],a[6487]],[a[6488],a[6461],a[6460],a[6461],a[6489],a[6490],a[6491]],[a[6492],a[6493],a[6494],a[6495],a[6496],a[6497],a[6498]],[a[6499],a[6500],a[6501],a[6502],a[6503],a[6504],a[6505]],[a[6506],a[6507],a[6508],a[6509]],[a[6510],a[6511],a[6512],a[6513]],{"decimal":a[509],"group":a[599],"nan":a[6514],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},{"BRL":a[516],"CAD":a[517],"EUR":a[519],"GBP":a[520],"MXN":a[526],"TWD":a[528],"USD":a[602],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[708],a[62],a[63],a[708],a[63],a[708],a[708],a[6515],a[3116],a[92],a[67],a[68]],[a[6516],a[6517],a[6518],a[6519],a[73],a[4811],a[4812],a[6520],a[6521],a[6522],a[6523],a[6524]],[a[6525],a[6526],a[6527],a[6528],a[6529],a[6530],a[6531],a[6532],a[6533],a[6534],a[6535],a[6536]],[a[708],a[65],a[707],a[707],a[65],a[65],a[65]],[a[6537],a[6538],a[6539],a[6540],a[6541],a[6542],a[6543]],[a[6544],a[6545],a[6546],a[6547],a[6548],a[6549],a[6550]],{"am":a[6551],"pm":a[6552]},[a[6553],a[6554],a[189],a[190]],[a[6555],a[6556],a[189],a[190]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"DZD":a[4412],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[63],a[707],a[707],a[707],a[707],a[92],a[63],a[67],a[707],a[6557],a[6557],a[6557]],[a[3485],a[6558],a[6559],a[3181],a[6560],a[6561],a[6562],a[6563],a[6564],a[6565],a[6566],a[6567]],[a[6568],a[6569],a[6570],a[6571],a[6572],a[6573],a[6574],a[6575],a[6576],a[6577],a[6578],a[6579]],[a[708],a[93],a[1900],a[64],a[64],a[64],a[64]],[a[6580],a[6581],a[6582],a[6583],a[6584],a[6585],a[6586]],[a[6587],a[6588],a[6589],a[6590],a[6591],a[6592],a[6593]],{"am":a[6594],"pm":a[6595]},[a[6596],a[6597],a[189],a[190]],[a[6598],a[6599],a[189],a[190]],[a[6600],a[6601],a[6602],a[6603],a[6604],a[6605],a[6606],a[6607],a[6608],a[6609],a[6610],a[6611]],[a[112],a[113],a[114],a[115],a[116],a[117],a[111]],[a[6612],a[6613],a[6614],a[6615],a[6616],a[6617],a[6618]],[a[6619],a[6620],a[6621],a[6622],a[6623],a[6624],a[6625]],{"am":a[6626],"pm":a[6627]},[a[6628],a[6629],a[189],a[190]],[a[6630],a[6631],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[1959],"Ehm":a[1960],"EHm":a[1961],"Ehms":a[1962],"EHms":a[3078],"Gy":a[24],"GyMMM":a[6632],"GyMMMd":a[6633],"GyMMMEd":a[6634],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[2069],"MEd":a[3653],"MMdd":a[2069],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[4418],"MMMMEd":a[6635],"mmss":a[45],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[738],"yMEd":a[3654],"yMM":a[2071],"yMMM":a[6636],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[6637],"yQQQ":a[54],"yQQQQ":a[6638]},{"yMMMMEEEEd":a[6639],"yMMMMd":a[6640],"yMMMd":a[549],"yMd":a[611]},[a[69],a[70],a[71],a[4225],a[3087],a[74],a[75],a[1300],a[4228],a[4428],a[6641],a[6642]],[a[6643],a[6644],a[6645],a[4233],a[6646],a[6647],a[6648],a[6649],a[6650],a[6651],a[6652],a[6653]],[a[68],a[65],a[92],a[707],a[707],a[65],a[65]],[a[634],a[6654],a[1405],a[6655],a[6656],a[6657],a[4443]],[a[6658],a[6659],a[6660],a[6661],a[6662],a[6663],a[6664]],[a[725],a[6665],a[6666],a[6667]],[a[6668],a[6669],a[6670],a[6671]],{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"CVE":a[6672],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[481],a[92],a[92],a[38],a[38],a[38],a[65]],[a[1318],a[3280],a[3281],a[3282],a[3283],a[6673],a[6674]],[a[3286],a[6675],a[6676],a[3289],a[6677],a[6678],a[6679]],{"am":a[6680],"pm":a[6681]},[a[3296],a[6682],a[189],a[190]],[a[61],a[707],a[2293],a[707],a[2293],a[2293],a[63],a[707],a[707],a[1313],a[1313],a[68]],[a[6683],a[6684],a[6685],a[6686],a[6687],a[6688],a[6689],a[6690],a[6691],a[6692],a[6693],a[6694]],[a[6695],a[6696],a[6697],a[6698],a[6699],a[6700],a[6701],a[6702],a[6703],a[6704],a[6705],a[6706]],[a[707],a[67],a[67],a[67],a[64],a[67],a[67]],[a[6707],a[6708],a[6709],a[6710],a[6711],a[6712],a[3512]],[a[3513],a[6713],a[3515],a[6714],a[3517],a[3518],a[6715]],{"am":a[6716],"pm":a[6717]},{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[6718],"EHm":a[21],"Ehms":a[6719],"EHms":a[23],"Gy":a[6720],"GyMMM":a[6721],"GyMMMd":a[6722],"GyMMMEd":a[6723],"h":a[5632],"H":a[29],"hm":a[5633],"Hm":a[31],"hms":a[5634],"Hms":a[33],"hmsv":a[6724],"Hmsv":a[35],"hmv":a[6725],"Hmv":a[37],"M":a[38],"Md":a[1689],"MEd":a[1690],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1691],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[1692],"yMd":a[1693],"yMEd":a[1694],"yMMM":a[6726],"yMMMd":a[6727],"yMMMEd":a[6728],"yMMMM":a[6729],"yQQQ":a[6730],"yQQQQ":a[6731]},{"yMMMMEEEEd":a[6732],"yMMMMd":a[6733],"yMMMd":a[6734],"yMd":a[1697]},[a[6735],a[6736],a[6737],a[6738],a[6739],a[6739],a[6740],a[6741],a[6735],a[6735],a[6735],a[6742]],[a[6743],a[6744],a[6745],a[6746],a[6747],a[6748],a[6749],a[6750],a[6751],a[6752],a[6753],a[6754]],[a[6755],a[6756],a[6757],a[6758],a[6759],a[6760],a[6761],a[6762],a[6763],a[6764],a[6765],a[6766]],[a[6742],a[6767],a[6738],a[6738],a[6768],a[6742],a[6738]],[a[6769],a[6770],a[6771],a[6772],a[6773],a[6774],a[6775]],[a[6776],a[6777],a[6778],a[6779],a[6780],a[6781],a[6782]],{"am":a[6783],"pm":a[6784]},[a[6785],a[6786],a[189],a[190]],[a[6787],a[6788],a[189],a[190]],{"AUD":a[515],"BMD":a[6789],"BRL":a[516],"CAD":a[6790],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"KZT":a[6791],"MXN":a[526],"NZD":a[527],"RUB":a[1899],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[2258],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[2069],"MEd":a[2259],"MMM":a[41],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[6792],"yMd":a[6793],"yMEd":a[6794],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[613],"yMMMM":a[614],"yQQQ":a[1259],"yQQQQ":a[1260]},{"yMMMMEEEEd":a[4639],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[6793]},[a[6795],a[6796],a[6797],a[6798],a[6799],a[6800],a[6801],a[6802],a[6803],a[6804],a[121],a[6805]],[a[3059],a[3738],a[3739],a[2077],a[6806],a[6807],a[6808]],[a[6809],a[4305],a[4306],a[6810],a[6811],a[6812],a[6813]],[a[6814],a[6815],a[6816],a[6817],a[6818],a[2422],a[2423],a[6819],a[6820],a[6821],a[6822],a[6823]],[a[4443],a[6824],a[1350],a[6825],a[6826],a[6827],a[6828]],[a[6829],a[6830],a[6831],a[6832],a[6833],a[6834],a[6835]],[a[63],a[67],a[92],a[1313],a[63],a[1347],a[67],a[603],a[188],a[1900],a[707],a[707]],[a[1942],a[6836],a[6837],a[6838],a[6839],a[6840],a[6841],a[6842],a[6843],a[6844],a[6845],a[6846]],[a[6847],a[6848],a[6849],a[6850],a[6851],a[6852],a[6853],a[6854],a[6855],a[6856],a[6857],a[6858]],[a[92],a[92],a[66],a[65],a[64],a[63],a[38]],[a[6859],a[6860],a[6861],a[6862],a[6863],a[6864],a[6865]],[a[6866],a[6867],a[6868],a[6869],a[6870],a[6871],a[6872]],{"am":a[6873],"pm":a[6874]},[a[109],a[6875],a[189],a[190]],[a[6876],a[6877],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[19],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[6879],"GyMMM":a[6880],"GyMMMd":a[6881],"GyMMMEd":a[6882],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[4455],"MEd":a[544],"MMM":a[41],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[3814],"yMd":a[4456],"yMEd":a[4457],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[613],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[615],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[1345]},[a[6883],a[6884],a[6885],a[6886],a[6887],a[6888],a[6889],a[6890],a[6891],a[6892],a[6893],a[6894]],[a[6895],a[6896],a[6897],a[6898],a[6899],a[6900],a[6901]],[a[6902],a[6903],a[6904],a[6905],a[6906],a[6907],a[6908]],{"am":a[6909],"pm":a[6910]},[a[6911],a[6912],a[189],a[190]],[a[6913],a[6914],a[189],a[190]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KHR":a[6915],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[19],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[6916],"MMdd":a[541],"MMM":a[41],"MMMd":a[42],"MMMEd":a[1340],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[49],"yMM":a[546],"yMMM":a[50],"yMMMd":a[6917],"yMMMEd":a[52],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[56],"yMMMMd":a[57],"yMMMd":a[51],"yMd":a[1345]},[a[6918],a[6919],a[6920],a[6921],a[6922],a[6923],a[6924],a[6925],a[6926],a[6927],a[6928],a[6929]],[a[6930],a[6931],a[6932],a[6933],a[6922],a[6934],a[6935],a[6936],a[6937],a[6938],a[6939],a[6940]],[a[6941],a[6942],a[6932],a[6943],a[6922],a[6934],a[6935],a[6944],a[6945],a[6946],a[6947],a[6948]],[a[6949],a[6950],a[6951],a[6952],a[6953],a[6954],a[6955]],[a[6956],a[6957],a[6958],a[6959],a[6960],a[6961],a[6962]],[a[6963],a[6964],a[6965],a[6966],a[6967],a[6968],a[6969]],{"am":a[6970],"pm":a[6971]},[a[6972],a[6973],a[6974],a[6975]],[a[6976],a[6977],a[6974],a[6975]],{"d":a[6978],"E":a[18],"Ed":a[6979],"EEEEd":a[6980],"Ehm":a[6981],"EHm":a[6982],"Ehms":a[6983],"EHms":a[6984],"Gy":a[6985],"GyMMM":a[6986],"GyMMMd":a[6987],"GyMMMEd":a[6988],"GyMMMEEEEd":a[6989],"h":a[6990],"H":a[6991],"HHmmss":a[33],"hm":a[5633],"Hm":a[31],"hms":a[5634],"Hms":a[6992],"hmsv":a[6724],"Hmsv":a[6993],"hmv":a[6725],"Hmv":a[37],"M":a[6994],"Md":a[5635],"MEd":a[6995],"MEEEEd":a[6996],"MMM":a[41],"MMMd":a[6997],"MMMEd":a[6998],"MMMEEEEd":a[6999],"MMMMd":a[7000],"mmss":a[45],"ms":a[45],"y":a[7001],"yM":a[5640],"yMd":a[7002],"yMEd":a[7003],"yMEEEEd":a[7004],"yMM":a[5640],"yMMM":a[7005],"yMMMd":a[7006],"yMMMEd":a[7007],"yMMMEEEEd":a[7008],"yMMMM":a[7009],"yQQQ":a[7010],"yQQQQ":a[7011]},{"yMMMMEEEEd":a[7012],"yMMMMd":a[7013],"yMMMd":a[7002],"yMd":a[7014]},{"hmmsszzzz":a[7015],"hmsz":a[7016],"hms":a[5634],"hm":a[5633]},[a[7017],a[7018],a[7019],a[7020],a[7021],a[7022],a[7023],a[7024],a[7025],a[7026],a[7027],a[7028]],[a[7029],a[7030],a[7031],a[7032],a[7033],a[7034],a[7035]],[a[7036],a[7037],a[7038],a[7039],a[7040],a[7041],a[7042]],[a[7043]],{"am":a[7044],"pm":a[7045]},[a[7046],a[7047],a[7048],a[7049],a[7050],a[7051],a[7052],a[7053],a[7054],a[7055],a[7056],a[7057],a[7058]],[a[7059],a[7060],a[7061],a[7062],a[7063],a[7064],a[7065],a[7066],a[7067],a[7068],a[7069],a[7070],a[7071]],[a[7072],a[7073],a[189],a[190]],[a[7074],a[7075],a[7076],a[7077],a[7078],a[7079],a[7080],a[7081],a[7082],a[7083],a[7084],a[7085],a[7086],a[7087]],[a[7088],a[7089],a[7090],a[7091],a[7092],a[7093],a[7094],a[7095],a[7096],a[7097],a[7098],a[7099]],[a[7100],a[7101],a[7102],a[7103],a[7104],a[7105],a[7106],a[7107],a[7108],a[7109],a[7110],a[7111],a[7112],a[7113],a[7114],a[7115],a[7116],a[7117],a[7118],a[7119],a[7120],a[7121],a[7122],a[7123],a[7124],a[7125],a[7126],a[7127],a[7128],a[7129],a[7130],a[7131],a[7132],a[7133],a[7134],a[7135],a[7136],a[7137],a[7138],a[7139],a[7140],a[7141],a[7142],a[7143],a[7144],a[7145],a[7146],a[7147],a[7148],a[7149],a[7150],a[7151],a[7152],a[7153],a[7154],a[7155],a[7156],a[7157],a[7158],a[7159],a[7160],a[7161],a[7162],a[7163],a[7164],a[7165],a[7166],a[7167],a[7168],a[7169],a[7170],a[7171],a[7172],a[7173],a[7174],a[7175],a[7176],a[7177],a[7178],a[7179],a[7180],a[7181],a[7182],a[7183],a[7184],a[7185],a[7186],a[7187],a[7188],a[7189],a[7190],a[7191],a[7192],a[7193],a[7194],a[7195],a[7196],a[7197],a[7198],a[7199],a[7200],a[7201],a[7202],a[7203],a[7204],a[7205],a[7206],a[7207],a[7208],a[7209],a[7210],a[7211],a[7212],a[7213],a[7214],a[7215],a[7216],a[7217],a[7218],a[7219],a[7220],a[7221],a[7222],a[7223],a[7224],a[7225],a[7226],a[7227],a[7228],a[7229],a[7230],a[7231],a[7232],a[7233],a[7234],a[7235],a[7236],a[7237],a[7238],a[7239],a[7240],a[7241],a[7242],a[7243],a[7244],a[7245],a[7246],a[7247],a[7248],a[7249],a[7250],a[7251],a[7252],a[7253],a[7254],a[7255],a[7256],a[7257],a[7258],a[7259],a[7260],a[7261],a[7262],a[7263],a[7264],a[7265],a[7266],a[7267],a[7268],a[7269],a[7270],a[7271],a[7272],a[7273],a[7274],a[7275],a[7276],a[7277],a[7278],a[7279],a[7280],a[7281],a[7282],a[7283],a[7284],a[7285],a[7286],a[7287],a[7288],a[7289],a[7290],a[7291],a[7292],a[7293],a[7294],a[7295],a[7296],a[7297],a[7298],a[7299],a[7300],a[7301],a[7302],a[7303],a[7304],a[7305],a[7306],a[7307],a[7308],a[7309],a[7310],a[7311],a[7312],a[7313],a[7314],a[7315],a[7316],a[7317],a[7318],a[7319],a[7320],a[7321],a[7322],a[7323],a[7324],a[7325],a[7326],a[7327],a[7328],a[7329],a[7330],a[7331],a[7332],a[7333],a[7334],a[7335]],[a[7336],a[7337],a[7338],a[7339],a[7340],a[7341],a[7342],a[7343],a[7344],a[7345],a[7346],a[7347]],[a[7348],a[7349]],{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[7350],a[2335],a[4994],a[7351],a[2327],a[4997],a[7352],a[7353],a[7354],a[7355],a[7356],a[7357]],[a[5016],a[5017],a[7358],a[5018],a[5019],a[5020],a[5021]],[a[7359],a[5023],a[7360],a[5025],a[5026],a[5027],a[5028]],{"am":a[7361],"pm":a[7362]},[a[7363],a[7364],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[7365],"GyMMM":a[7366],"GyMMMd":a[7367],"GyMMMEd":a[7368],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[39],"MEd":a[40],"MMM":a[41],"MMMd":a[2322],"MMMEd":a[43],"MMMMd":a[44],"MMMMEd":a[677],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[547],"yMEd":a[7369],"yMMM":a[50],"yMMMd":a[679],"yMMMEd":a[7370],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},[a[850],a[823],a[824],a[4003],a[824],a[850],a[850],a[4003],a[830],a[830],a[4003],a[827]],[a[7371],a[7372],a[7373],a[4084],a[7374],a[7375],a[7376],a[4087],a[7377],a[7378],a[4090],a[4091]],[a[4003],a[4002],a[832],a[832],a[832],a[850],a[832]],[a[7379],a[7380],a[7381],a[7382],a[7383],a[7384],a[7385]],[a[7386],a[7387],a[7381],a[7382],a[7383],a[7384],a[7385]],[a[7388],a[7389],a[189],a[190]],[a[7390],a[7391],a[189],a[190]],[a[918],a[919],a[7392],a[7393],a[4050],a[4051],a[924],a[925],a[926],a[927],a[7394],a[7395]],{"decimal":a[1184],"group":a[1185],"nan":a[510],"plusSign":a[4069],"minusSign":a[7396],"percentSign":a[1189],"infinity":a[514]},{"decimal":a[508],"group":a[509],"nan":a[510],"plusSign":a[1191],"minusSign":a[1192],"percentSign":a[513],"infinity":a[7397]},[a[7398],a[7399],a[1304],a[7400],a[558],a[1306],a[1307],a[1308],a[1309],a[1310],a[1311],a[1312]],[a[112],a[113],a[114],a[115],a[64],a[1313],a[111]],[a[1314],a[1315],a[7401],a[1317],a[1318],a[6438],a[1320]],[a[7402],a[7403],a[7404],a[7405],a[1325],a[1326],a[7406]],{"am":a[7407],"pm":a[7408]},[a[7409],a[7410],a[189],a[190]],[a[7411],a[7412],a[7413],a[7414],a[7415],a[7416],a[7417],a[7418],a[7419],a[7420],a[7421],a[7422]],[a[7423],a[7424],a[7425],a[7426],a[7427],a[7428],a[7429],a[7430],a[7431],a[7432],a[7433],a[7434]],[a[623],a[626],a[1767],a[1767],a[1794],a[1794],a[623]],[a[3972],a[7435],a[7436],a[7437],a[7438],a[7439],a[7440]],[a[7441],a[7442],a[7443],a[7444],a[7445],a[7446],a[7447]],{"am":a[7448],"pm":a[7449]},[a[7450],a[7451],a[189],a[190]],[a[7452],a[7453],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[7454],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[1231],"hms":a[32],"Hms":a[1230],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[1252],"MEd":a[3021],"MMM":a[41],"MMMd":a[3132],"MMMEd":a[3133],"MMMMd":a[2394],"ms":a[45],"y":a[46],"yM":a[7455],"yMd":a[547],"yMEd":a[548],"yMMM":a[50],"yMMMd":a[7456],"yMMMEd":a[7457],"yMMMM":a[53],"yQQQ":a[7458],"yQQQQ":a[55]},{"yMMMMEEEEd":a[7459],"yMMMMd":a[3025],"yMMMd":a[7456],"yMd":a[3023]},[a[69],a[7460],a[7461],a[72],a[7462],a[74],a[75],a[7463],a[7464],a[1301],a[79],a[4663]],[a[7465],a[7466],a[7467],a[7468],a[7462],a[7469],a[7470],a[7471],a[4665],a[4666],a[4667],a[4668]],[a[3662],a[3233],a[577],a[7472],a[4671],a[3235],a[581]],[a[7473],a[7474],a[7475],a[7476],a[7477],a[7478],a[7479]],{"am":a[7480],"pm":a[7481]},[a[7482],a[7483],a[7484],a[7485]],[a[3245],a[3246],a[7486],a[7487]],[a[7488],a[7489],a[7490],a[7491]],{"decimal":a[509],"group":a[599],"nan":a[7492],"plusSign":a[511],"minusSign":a[3890],"percentSign":a[513],"infinity":a[514]},[a[7493],a[7494],a[7495],a[7496],a[3263],a[7497],a[7498],a[4760],a[7499],a[7500],a[2280],a[7501]],[a[7502],a[7503],a[7504],a[7505],a[7506],a[7507],a[7508],a[7509],a[7510],a[7511],a[7512],a[7513]],[a[2295],a[2296],a[7514],a[7515],a[7516],a[7517],a[3108]],[a[7518],a[7519],a[7520],a[7521],a[7522],a[7523],a[7524]],{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[7525],"GyMMM":a[7526],"GyMMMd":a[7527],"GyMMMEd":a[7528],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[541],"MEd":a[7529],"MMM":a[41],"MMMd":a[2322],"MMMEd":a[7530],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[1255],"yMd":a[547],"yMEd":a[1256],"yMMM":a[7531],"yMMMd":a[7532],"yMMMEd":a[7533],"yMMMM":a[614],"yQQQ":a[7534],"yQQQQ":a[7535]},{"yMMMMEEEEd":a[7536],"yMMMMd":a[681],"yMMMd":a[679],"yMd":a[1697]},[a[7537],a[7538],a[6739],a[6736],a[6739],a[7539],a[7539],a[6736],a[6738],a[7540],a[6737],a[6767]],[a[7541],a[7542],a[7543],a[7544],a[1752],a[7545],a[7546],a[7547],a[7548],a[7549],a[7550],a[7551]],[a[6742],a[6767],a[6740],a[6740],a[6768],a[6742],a[7539]],[a[7552],a[7553],a[7554],a[7555],a[7556],a[7557],a[7558]],[a[7559],a[7560],a[7561],a[7562],a[7563],a[7557],a[7564]],{"am":a[7565],"pm":a[7566]},[a[7567],a[6786],a[189],a[190]],[a[7568],a[7569],a[189],a[190]],{"decimal":a[509],"group":a[599],"nan":a[7570],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},{"CNY":a[518],"EUR":a[519],"JPY":a[600],"KGS":a[7571],"THB":a[601],"VND":a[530],"XAF":a[531],"XOF":a[533],"XPF":a[534]},[a[62],a[67],a[707],a[1313],a[1313],a[1313],a[63],a[574],a[65],a[1313],a[65],a[65]],[a[7572],a[7573],a[7574],a[7575],a[7576],a[7577],a[7578],a[7579],a[7580],a[7581],a[7582],a[7583]],[a[7584],a[7585],a[7586],a[7587],a[7588],a[7589],a[7590],a[7591],a[7592],a[7593],a[7594],a[7595]],[a[1347],a[92],a[1900],a[66],a[64],a[1313],a[63]],[a[7596],a[7597],a[7598],a[7599],a[1318],a[1319],a[7600]],[a[7601],a[7602],a[7603],a[7604],a[7605],a[7606],a[7607]],{"am":a[7608],"pm":a[7609]},[a[7610],a[7611],a[189],a[190]],[a[7612],a[7613],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[2455],"Ehm":a[1960],"EHm":a[1961],"Ehms":a[1962],"EHms":a[3078],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[3126],"GyMMMEd":a[3219],"h":a[28],"H":a[7614],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[3221],"MEd":a[3222],"MMM":a[41],"MMMd":a[3132],"MMMEd":a[3224],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[1836],"yMd":a[1837],"yMEd":a[1838],"yMMM":a[50],"yMMMd":a[3134],"yMMMEd":a[3225],"yMMMM":a[614],"yQQQ":a[54],"yQQQQ":a[55]},[a[554],a[555],a[7615],a[7616],a[3399],a[1306],a[3228],a[561],a[562],a[563],a[564],a[3229]],[a[3230],a[3231],a[7617],a[7618],a[3399],a[1306],a[3228],a[87],a[88],a[572],a[90],a[3232]],[a[7619],a[7620],a[7621],a[7622],a[7623],a[7624],a[7625]],[a[7626],a[7627],a[7628],a[7629],a[7630],a[7631],a[7632]],{"am":a[7633],"pm":a[7634]},[a[3245],a[3246],a[7635],a[7636]],{"ATS":a[3251],"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[69],a[70],a[71],a[7637],a[3511],a[5870],a[75],a[4813],a[7638],a[7639],a[79],a[5799]],[a[7640],a[7641],a[7642],a[7643],a[7644],a[7469],a[7645],a[7646],a[7647],a[7648],a[1311],a[1312]],[a[65],a[188],a[38],a[38],a[38],a[38],a[38]],[a[1924],a[7649],a[7650],a[7651],a[7652],a[7653],a[7654]],[a[7655],a[7656],a[7657],a[7658],a[7659],a[7660],a[7661]],[a[7662],a[7663],a[189],a[190]],[a[7664],a[7665],a[7666],a[7667],a[7668],a[7669],a[7670],a[7671],a[7672],a[7673],a[7674],a[7675]],[a[64],a[93],a[67],a[708],a[92],a[2072],a[66]],[a[7676],a[7677],a[7678],a[7679],a[7680],a[7681],a[7682]],[a[46],a[625],a[1767],a[2409],a[1767],a[46],a[46],a[2409],a[623],a[7683],a[620],a[17]],[a[1698],a[7684],a[7685],a[7686],a[3866],a[7687],a[7688],a[7689],a[7690],a[7691],a[7692],a[7693]],[a[7694],a[7695],a[7696],a[7697],a[7698],a[7699],a[7700],a[7701],a[7702],a[7703],a[7704],a[7705]],[a[3342],a[46],a[1767],a[1767],a[1767],a[1767],a[3317]],[a[7706],a[7707],a[7708],a[7709],a[7710],a[7711],a[7712]],[a[7713],a[7714],a[7715],a[7716],a[7717],a[7718],a[7719]],{"am":a[7720],"pm":a[7721]},[a[7722],a[7723],a[189],a[190]],[a[7724],a[7725],a[189],a[190]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CDF":a[4410],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AOA":a[3840],"AUD":a[515],"BRL":a[516],"CAD":a[517],"CDF":a[4410],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[1959],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[4681],"GyMMMd":a[7726],"GyMMMEd":a[7727],"h":a[7728],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[542],"MMM":a[41],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[1341],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[614],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[7729],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[611]},{"hmmsszzzz":a[7730],"hmsz":a[7731],"hms":a[1230],"hm":a[1231]},[a[7732],a[7733],a[7734],a[7735],a[7736],a[7737],a[7738],a[7739],a[7740],a[7741],a[7742],a[7743]],[a[7744],a[7745],a[7746],a[7747],a[7748],a[7749],a[7750],a[7751],a[7752],a[7753],a[7754],a[7755]],[a[111],a[112],a[113],a[114],a[115],a[116],a[117]],[a[7756],a[7757],a[7758],a[7759],a[7760],a[7761],a[7762]],{"am":a[7763],"pm":a[7764]},[a[7765],a[7766],a[7767],a[7768],a[7769],a[7770],a[7771],a[7772],a[7773],a[7774],a[7775],a[7776],a[7777]],[a[7765],a[7766],a[7767],a[7768],a[7769],a[7778],a[7771],a[7772],a[7773],a[7774],a[7775],a[7776],a[7779]],[a[7780],a[7781],a[7782],a[7783],a[7784],a[7785],a[7786],a[7787],a[7788],a[7789],a[7790],a[7791],a[7792]],[a[7793],a[7794],a[7795],a[7796]],[a[7797],a[7798],a[7799],a[7800]],[a[7801],a[7802],a[7803],a[7804],a[7805],a[7806],a[7807],a[7808],a[7809],a[7810],a[7811],a[7812],a[7813],a[7814]],[a[7815],a[7816],a[7817],a[7818],a[7819],a[7820],a[7821],a[7822],a[7823],a[7824],a[7825],a[7826]],[a[7815],a[7816],a[7817],a[7818],a[7819],a[7820],a[7821],a[7822],a[7823],a[7827],a[7825],a[7826]],[a[7735]],[a[7828],a[7829],a[7830],a[7831],a[7832],a[7833],a[7834],a[7835],a[7836],a[7837],a[7838],a[7839]],[a[7840],a[7841],a[7830],a[7842],a[7843],a[7844],a[7845],a[7846],a[7847],a[7848],a[7849],a[7850]],[a[7851],a[7852],a[7853],a[7854],a[7855],a[7856],a[7857],a[7858],a[7859],a[7860],a[7861],a[7862],a[7863],a[7864],a[7865],a[7866],a[7867],a[7868],a[7869],a[7870],a[7871],a[7872],a[7873],a[7874],a[7875],a[7876],a[7877],a[7878],a[7879],a[7880],a[7881],a[7882],a[7883],a[7884],a[7885],a[7886],a[7887],a[7888],a[7889],a[7890],a[7891],a[7892],a[7893],a[7894],a[7895],a[7896],a[7897],a[7898],a[7899],a[7900],a[7901],a[7902],a[7903],a[7904],a[7905],a[7906],a[7907],a[7908],a[7909],a[7910],a[7911],a[7912],a[7913],a[7914],a[7915],a[7916],a[7917],a[7918],a[7919],a[7920],a[7921],a[7922],a[7923],a[7924],a[7925],a[7926],a[7927],a[7928],a[7929],a[7930],a[7931],a[7932],a[7933],a[7934],a[7935],a[7936],a[7937],a[7938],a[7939],a[7940],a[7941],a[7942],a[7943],a[7944],a[7945],a[7946],a[7947],a[7948],a[7949],a[7950],a[7951],a[7952],a[7953],a[7954],a[7955],a[7956],a[7957],a[7958],a[7959],a[7960],a[7961],a[7962],a[7963],a[7964],a[7965],a[7966],a[7967],a[7968],a[7969],a[7970],a[7971],a[7972],a[7973],a[7974],a[7975],a[7976],a[7977],a[7978],a[7979],a[7980],a[7981],a[7982],a[7983],a[7984],a[7985],a[7986],a[7987],a[7988],a[7989],a[7990],a[7991],a[7992],a[7993],a[7994],a[7995],a[7996],a[7997],a[7998],a[7999],a[8000],a[8001],a[8002],a[8003],a[8004],a[8005],a[8006],a[8007],a[8008],a[8009],a[8010],a[8011],a[8012],a[8013],a[8014],a[8015],a[8016],a[8017],a[8018],a[8019],a[8020],a[8021],a[8022],a[8023],a[8024],a[8025],a[8026],a[8027],a[8028],a[8029],a[8030],a[8031],a[8032],a[8033],a[8034],a[8035],a[8036],a[8037],a[8038],a[8039],a[8040],a[8041],a[8042],a[8043],a[8044],a[8045],a[8046],a[8047],a[8048],a[8049],a[8050],a[8051],a[8052],a[8053],a[8054],a[8055],a[8056],a[8057],a[8058],a[8059],a[8060],a[8061],a[8062],a[8063],a[8064],a[8065],a[8066],a[8067],a[8068],a[8069],a[8070],a[8071],a[8072],a[8073],a[8074],a[8075],a[8076],a[8077],a[8078],a[8079],a[8080],a[8081],a[8082],a[8083],a[8084],a[8085],a[8086]],[a[8087],a[8088],a[8089],a[8090],a[8091],a[8092],a[8093],a[8094],a[8095],a[8096],a[8097],a[8098]],[a[8099],a[8088],a[8089],a[8090],a[8091],a[8092],a[8093],a[8094],a[8100],a[8096],a[8101],a[8098]],[a[8102]],[a[8103],a[598]],{"decimal":a[509],"group":a[508],"nan":a[8104],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"LAK":a[8105],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[8106],a[8107],a[836],a[8108],a[8109],a[8110],a[8111],a[8112],a[8113],a[8114],a[8115],a[8116]],{"d":a[8117],"E":a[18],"Ed":a[676],"Ehm":a[8118],"EHm":a[8119],"Ehms":a[8120],"EHms":a[8121],"Gy":a[8122],"GyMMM":a[8123],"GyMMMd":a[8124],"GyMMMEd":a[8125],"GyMMMM":a[8126],"GyMMMMd":a[8127],"GyMMMMEd":a[8128],"h":a[1823],"H":a[29],"hm":a[2387],"Hm":a[31],"hms":a[2388],"Hms":a[33],"hmsv":a[8129],"Hmsv":a[8130],"hmv":a[8131],"Hmv":a[8132],"M":a[1973],"Md":a[4404],"MEd":a[1253],"MMdd":a[1252],"MMM":a[1973],"MMMd":a[1252],"MMMEd":a[1253],"MMMM":a[1974],"MMMMd":a[8133],"MMMMEd":a[8134],"ms":a[45],"y":a[46],"yM":a[1255],"yMd":a[547],"yMEd":a[1256],"yMMM":a[1255],"yMMMd":a[547],"yMMMEd":a[1256],"yMMMM":a[8135],"yMMMMd":a[8136],"yMMMMEd":a[8137],"yQQQ":a[1259],"yQQQQ":a[1260]},{"yMMMMEEEEd":a[8138],"yMMMMd":a[8136],"yMMMd":a[547],"yMd":a[547]},[a[65],a[574],a[707],a[188],a[2293],a[188],a[38],a[603],a[603],a[65],a[38],a[2293]],[a[8139],a[8140],a[8141],a[8142],a[8143],a[8144],a[8145],a[8146],a[8147],a[8148],a[8149],a[8150]],[a[8151],a[8152],a[8153],a[8154],a[8155],a[8156],a[8157],a[8158],a[8159],a[8160],a[8161],a[8162]],[a[65],a[1347],a[64],a[92],a[707],a[1347],a[8163]],[a[8164],a[8165],a[8166],a[8167],a[8168],a[8169],a[8170]],[a[8171],a[8172],a[8173],a[8174],a[8175],a[8176],a[8177]],{"am":a[8178],"pm":a[8179]},[a[5366],a[8180],a[8181],a[8182]],[a[8183],a[8184],a[8185],a[8182]],[a[249],a[8186],a[8187],a[8188],a[8189],a[254],a[8190],a[256],a[8191],a[258],a[8192],a[8193],a[8194],a[8195],a[8196],a[8197],a[8198],a[8199],a[8200],a[8201],a[8202],a[8203],a[8204],a[8205],a[273],a[5829],a[8206],a[8207],a[5831],a[8208],a[8209],a[8210],a[281],a[8211],a[8212],a[8213],a[8214],a[286],a[8215],a[8216],a[8217],a[290],a[8218],a[8219],a[293],a[294],a[8220],a[8221],a[297],a[8222],a[8223],a[8224],a[8225],a[8226],a[8227],a[8228],a[8229],a[8230],a[8231],a[8232],a[309],a[8233],a[311],a[8234],a[8235],a[8236],a[8237],a[8238],a[8239],a[8240],a[8241],a[5837],a[8242],a[8243],a[8244],a[8245],a[8246],a[8247],a[8248],a[8249],a[8250],a[5840],a[8251],a[8252],a[8253],a[8254],a[5841],a[8255],a[8256],a[8257],a[8258],a[340],a[8259],a[5843],a[8260],a[8261],a[8262],a[8263],a[347],a[8264],a[8265],a[8266],a[351],a[8267],a[8268],a[8269],a[8270],a[8271],a[8272],a[8273],a[8274],a[8275],a[8276],a[8277],a[8278],a[8279],a[8280],a[8281],a[8282],a[368],a[369],a[370],a[8283],a[5849],a[8284],a[374],a[8285],a[8286],a[8287],a[378],a[8288],a[8289],a[8290],a[8291],a[8292],a[8293],a[8294],a[8295],a[8296],a[8297],a[8298],a[390],a[8299],a[392],a[393],a[8300],a[5852],a[8301],a[8302],a[8303],a[8304],a[8305],a[8306],a[5854],a[403],a[8307],a[8308],a[406],a[8309],a[8310],a[409],a[8311],a[8312],a[8313],a[8314],a[8315],a[415],a[416],a[8316],a[418],a[8317],a[8318],a[8319],a[422],a[8320],a[8321],a[8322],a[8323],a[8324],a[8325],a[8326],a[8327],a[431],a[8328],a[433],a[8329],a[435],a[8330],a[437],a[8331],a[5857],a[8332],a[441],a[442],a[8333],a[444],a[8334],a[8335],a[8336],a[8337],a[449],a[8338],a[8339],a[8340],a[453],a[8341],a[8342],a[8343],a[457],a[8344],a[8345],a[8346],a[461],a[8347],a[8348],a[8349],a[8350],a[8351],a[8352],a[468],a[469],a[8353],a[471],a[472],a[8354],a[8355],a[475],a[476],a[8356],a[8357],a[8358],a[8359],a[8360],a[8361],a[8362],a[485]],[a[8363],a[598]],{"EUR":a[519]},[a[3116],a[38],a[38],a[63],a[38],a[38],a[707],a[38],a[38],a[38],a[707],a[3116]],[a[8364],a[4426],a[8365],a[8366],a[8367],a[8368],a[8369],a[8370],a[8371],a[2296],a[3182],a[8372]],[a[8373],a[8374],a[8375],a[8376],a[8377],a[8378],a[8379],a[8380],a[8381],a[8382],a[8383],a[8384]],[a[38],a[67],a[67],a[67],a[67],a[67],a[38]],[a[8367],a[8385],a[8386],a[8387],a[8388],a[8389],a[8390]],[a[8391],a[8392],a[8393],a[8394],a[8395],a[8396],a[8397]],{"am":a[8398],"pm":a[8399]},[a[8400],a[8401],a[189],a[190]],[a[8402],a[8403],a[189],a[190]],[a[3116],a[603],a[68],a[67],a[188],a[2073],a[188],a[188],a[3116],a[1347],a[3116],a[1347]],[a[8404],a[8405],a[8406],a[8407],a[8408],a[8409],a[8410],a[8411],a[8412],a[8413],a[8414],a[8415]],[a[8416],a[8417],a[8418],a[8419],a[8420],a[8421],a[8422],a[8423],a[8424],a[8425],a[8426],a[8427]],[a[61],a[93],a[92],a[92],a[92],a[92],a[67]],[a[8428],a[8429],a[8430],a[8431],a[8432],a[8433],a[8434]],[a[8435],a[8436],a[8437],a[8438],a[8439],a[8440],a[8441]],{"am":a[8442],"pm":a[8443]},[a[8444],a[8445],a[189],a[190]],[a[69],a[70],a[71],a[72],a[558],a[74],a[75],a[1300],a[77],a[1301],a[79],a[5799]],[a[8446],a[8447],a[8448],a[8449],a[4830],a[8450],a[8451]],[a[8452],a[1322],a[1323],a[1324],a[8453],a[8454],a[1327]],[a[8455],a[8456],a[189],a[190]],{"positivePattern":a[504],"negativePattern":a[8457]},{"d":a[17],"E":a[18],"Ed":a[2455],"Ehm":a[1960],"EHm":a[1961],"Ehms":a[1962],"EHms":a[3078],"Gy":a[8458],"GyMMM":a[8459],"GyMMMd":a[8460],"GyMMMEd":a[8461],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[2389],"MEd":a[2390],"MMM":a[41],"MMMd":a[3132],"MMMEd":a[3224],"MMMMd":a[2394],"MMMMEd":a[2395],"mmss":a[45],"ms":a[45],"y":a[8462],"yM":a[2397],"yMd":a[8463],"yMEd":a[8464],"yMMM":a[8465],"yMMMd":a[8466],"yMMMEd":a[8467],"yMMMM":a[8468],"yQQQ":a[8469],"yQQQQ":a[8470]},{"yMMMMEEEEd":a[8471],"yMMMMd":a[8472],"yMMMd":a[8473],"yMd":a[1697]},[a[4284],a[2837],a[3146],a[3140],a[8474],a[8475],a[8476],a[3142],a[3774],a[3144],a[2846],a[3145]],[a[8477],a[8478],a[3146],a[8479],a[8474],a[8480],a[8481],a[8482],a[8483],a[8484],a[8485],a[8486]],[a[65],a[1347],a[66],a[92],a[3116],a[1347],a[65]],[a[8487],a[8488],a[8489],a[8490],a[8491],a[8492],a[3391]],[a[8493],a[8494],a[8495],a[8496],a[8497],a[8498],a[8499]],{"am":a[8500],"pm":a[8501]},[a[8502],a[8503],a[189],a[190]],[a[8504],a[8505],a[189],a[190]],[a[8506],a[8507],a[8508],a[8509],a[8510],a[8511],a[8512],a[8513],a[8514],a[8515],a[8516],a[8517],a[8518],a[8519]],[a[8520],a[8521],a[8522],a[8523],a[8524],a[8525],a[8526],a[8527],a[8528],a[8529],a[8530],a[8531]],{"decimal":a[509],"group":a[599],"nan":a[8532],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"LVL":a[8533],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[8534],a[8535],a[8536],a[8537],a[8538],a[8539],a[8540],a[8541],a[8542],a[8543],a[8544],a[8545]],[a[8546],a[8547],a[8548],a[8549],a[8550],a[8551],a[8552],a[8553],a[8554],a[8555],a[8556],a[8557]],[a[8558],a[7602],a[8559],a[8560],a[8561],a[8562],a[8563]],{"am":a[8564],"pm":a[8565]},[a[6596],a[8566],a[189],a[190]],[a[8567],a[8568],a[189],a[190]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KES":a[3217],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"TZS":a[1336],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[61],a[62],a[63],a[6557],a[63],a[67],a[67],a[64],a[65],a[66],a[67],a[68]],[a[8569],a[8570],a[8571],a[8572],a[8573],a[8574],a[8575],a[8576],a[8577],a[2941],a[8578],a[8579]],[a[8580],a[8581],a[1304],a[8582],a[8583],a[8584],a[8585],a[8586],a[1309],a[8587],a[1311],a[8588]],[a[707],a[63],a[93],a[93],a[93],a[93],a[61]],[a[8589],a[8590],a[8591],a[8592],a[8593],a[6687],a[8594]],[a[3513],a[8595],a[8596],a[8597],a[8598],a[8599],a[1327]],{"am":a[8600],"pm":a[8601]},[a[3522],a[8602],a[189],a[190]],[a[8603],a[8604],a[189],a[190]],[a[624],a[625],a[1767],a[2409],a[1767],a[624],a[624],a[2410],a[623],a[2410],a[620],a[17]],[a[2075],a[1699],a[1350],a[8605],a[3740],a[8606],a[8607],a[4643],a[2416],a[1704],a[2417],a[2084]],[a[8608],a[8609],a[4257],a[4293],a[3740],a[8606],a[8610],a[4643],a[8611],a[8612],a[8613],a[8614]],[a[17],a[626],a[1767],a[1767],a[624],a[3810],a[623]],[a[8615],a[8616],a[1350],a[5980],a[8617],a[8618],a[7440]],[a[8619],a[8620],a[4306],a[8621],a[8622],a[8623],a[8624]],[a[8625],a[8626],a[189],a[190]],[a[8627],a[8628],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[63],"Md":a[608],"MEd":a[609],"MMd":a[2068],"MMdd":a[2069],"MMM":a[2070],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[811],"MMMMEd":a[545],"ms":a[610],"y":a[46],"yM":a[47],"yMd":a[547],"yMEd":a[612],"yMM":a[2071],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[613],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},[a[69],a[70],a[71],a[72],a[8629],a[8630],a[8631],a[8632],a[77],a[1301],a[79],a[5799]],[a[8633],a[8634],a[8635],a[8636],a[8629],a[8637],a[8638],a[8639],a[8640],a[8641],a[8642],a[8643]],[a[64],a[64],a[92],a[64],a[64],a[2072],a[64]],[a[8644],a[8645],a[3408],a[8646],a[8647],a[8648],a[8649]],[a[8650],a[8651],a[3414],a[8652],a[8653],a[8654],a[8655]],[a[8656],a[8657],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[40],"MMM":a[41],"MMMd":a[42],"MMMEd":a[43],"MMMMd":a[44],"ms":a[610],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[49],"yMMM":a[50],"yMMMd":a[51],"yMMMEd":a[52],"yMMMM":a[614],"yQQQ":a[54],"yQQQQ":a[55]},[a[707],a[2073],a[603],a[3116],a[92],a[63],a[65],a[67],a[92],a[707],a[63],a[708]],[a[8658],a[8659],a[8660],a[8661],a[6561],a[8662],a[1924],a[1925],a[1926],a[1927],a[8663],a[8664]],[a[8665],a[8666],a[8667],a[8668],a[8669],a[8670],a[8671],a[8672],a[8673],a[8674],a[8675],a[8676]],[a[65],a[61],a[61],a[61],a[64],a[1313],a[61]],[a[1924],a[1315],a[1316],a[1317],a[3409],a[6438],a[1320]],[a[8677],a[1322],a[1323],a[1324],a[8678],a[1326],a[1327]],{"am":a[8679],"pm":a[8680]},[a[8681],a[8682],a[189],a[190]],[a[8683],a[8684],a[189],a[190]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"MZN":a[8685],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[8686],a[8687],a[8688],a[8689],a[8690],a[8691],a[8692],a[8693],a[8694],a[120],a[121],a[122]],[a[8695],a[8696],a[8697],a[8698],a[8699],a[8700],a[8701],a[8702],a[8703],a[8704],a[8705],a[8706]],[a[8707],a[8696],a[8697],a[8698],a[8699],a[8700],a[8701],a[8702],a[8703],a[8704],a[8705],a[8706]],[a[8708],a[8687],a[8709],a[8710],a[8711],a[8712],a[8692]],[a[8713],a[8714],a[8715],a[8716],a[8717],a[8718],a[8719]],{"d":a[17],"E":a[18],"Ed":a[19],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[539],"GyMMMEd":a[540],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[1832],"Mdd":a[8720],"MEd":a[1833],"MMM":a[41],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[811],"MMMMEd":a[545],"ms":a[45],"y":a[46],"yM":a[1836],"yMd":a[1837],"yMEd":a[1838],"yMMM":a[8721],"yMMMd":a[8722],"yMMMEd":a[8723],"yMMMM":a[1980],"yQQQ":a[1983],"yQQQQ":a[1984]},{"yMMMMEEEEd":a[551],"yMMMMd":a[552],"yMMMd":a[8724],"yMd":a[8725]},[a[8726],a[7542],a[7543],a[7544],a[2461],a[8727],a[8728],a[7547],a[8729],a[7549],a[8730],a[7551]],[a[8731],a[2003],a[1750],a[2004],a[2461],a[2468],a[2469],a[1755],a[2005],a[2006],a[2007],a[2008]],[a[8732],a[8733],a[8734],a[8735],a[8736],a[8737],a[8738]],[a[8739],a[2012],a[2013],a[8740],a[8741],a[8742],a[8743]],{"am":a[8744],"pm":a[8745]},[a[2022],a[2518],a[8746],a[190]],[a[8747],a[8748],a[8746],a[190]],{"BRL":a[516],"CAD":a[517],"EUR":a[519],"MKD":a[8749],"MXN":a[526],"USD":a[602],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[6916],"MMdd":a[2069],"MMM":a[41],"MMMd":a[42],"MMMEd":a[1254],"MMMMd":a[44],"MMMMEd":a[8750],"ms":a[45],"y":a[46],"yM":a[3814],"yMd":a[611],"yMEd":a[8751],"yMM":a[546],"yMMM":a[1257],"yMMMd":a[679],"yMMMEd":a[1258],"yMMMM":a[614],"yQQQ":a[1259],"yQQQQ":a[1260]},{"yMMMMEEEEd":a[8752],"yMMMMd":a[8753],"yMMMd":a[8754],"yMd":a[1345]},[a[8755],a[8756],a[8757],a[8758],a[8759],a[8760],a[8760],a[8761],a[8762],a[8763],a[8764],a[8765]],[a[8766],a[8767],a[8768],a[8769],a[8770],a[8771],a[8772],a[8773],a[8774],a[8775],a[8776],a[8777]],[a[8778],a[8779],a[8780],a[8781],a[8770],a[8771],a[8772],a[8782],a[8783],a[8784],a[8785],a[8786]],[a[8787],a[8788],a[8789],a[8790],a[8791],a[8792],a[8793]],[a[8794],a[8795],a[8796],a[8797],a[8798],a[8799],a[8800]],[a[8801],a[8802],a[8803],a[8804],a[8805],a[8806],a[8807]],[a[8808],a[8809],a[8810],a[8811]],[a[8812],a[8813],a[8814],a[8815]],[a[8816],a[8817],a[8818],a[8819],a[8820],a[8821],a[8819],a[8822],a[8757],a[8823],a[8757],a[8756]],[a[8824],a[8825],a[8826],a[8827],a[8828],a[8829],a[8830],a[8831],a[8832],a[8833],a[8834],a[8835]],[a[8836]],[a[8837],a[8762],a[8838],a[8838],a[8755],a[8755],a[8838],a[8793],a[8838],a[8793],a[8839],a[8839]],[a[8840],a[8841],a[8842],a[8843],a[8844],a[8845],a[8846],a[8847],a[8848],a[8849],a[8850],a[8851]],[a[8852]],{"decimal":a[508],"group":a[509],"nan":a[8853],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},{"d":a[17],"E":a[18],"Ed":a[8854],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[8855],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[3427],"MEd":a[3428],"MMM":a[41],"MMMd":a[42],"MMMEd":a[8856],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[3432],"yMd":a[3433],"yMEd":a[3434],"yMMM":a[1257],"yMMMd":a[679],"yMMMEd":a[8857],"yMMMM":a[614],"yQQQ":a[1259],"yQQQQ":a[8858]},{"yMMMMEEEEd":a[8859],"yMMMMd":a[8860],"yMMMd":a[679],"yMd":a[547]},[a[8861],a[8862],a[8863],a[8864],a[8865],a[8866],a[8867],a[8868],a[8869],a[8870],a[8871],a[8872]],[a[8873],a[8874],a[8875],a[8876],a[8877],a[8878],a[8879],a[8880],a[8881],a[8882],a[8883],a[8884]],[a[8885],a[8886],a[8887],a[8888],a[8889],a[8890],a[8891]],[a[8892],a[8893],a[8894],a[8895],a[8896],a[8897],a[8898]],{"am":a[8899],"pm":a[8900]},[a[8901],a[8902],a[8903],a[8904]],[a[8905],a[8906],a[8903],a[8904]],[a[8907],a[8908],a[8903],a[8904]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MNT":a[8909],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[19],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[4987],"GyMMMd":a[4682],"GyMMMEd":a[4683],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[1231],"hms":a[32],"Hms":a[1230],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[542],"MMdd":a[541],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[1341],"yMM":a[546],"yMMM":a[50],"yMMMd":a[617],"yMMMEd":a[8911],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},[a[8912],a[2324],a[2325],a[2326],a[2327],a[4990],a[2328],a[8913],a[2346],a[8913],a[8914],a[8915]],[a[8916],a[8917],a[4994],a[8918],a[2327],a[4997],a[7352],a[8919],a[8920],a[8921],a[8922],a[8923]],[a[7350],a[2335],a[4994],a[7351],a[2327],a[4997],a[7352],a[8924],a[8925],a[8926],a[7356],a[7357]],[a[5022],a[5023],a[8927],a[5025],a[5026],a[5027],a[5028]],{"am":a[7361],"pm":a[8928]},[a[8929],a[8930],a[8931],a[8932]],[a[8933],a[8934],a[8931],a[8935]],[a[8936],a[501]],{"d":a[17],"E":a[18],"Ed":a[19],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"Hmm":a[1231],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[4455],"MEd":a[2115],"MMdd":a[2069],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[3814],"yMd":a[611],"yMEd":a[1341],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[614],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[1298],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[3703]},[a[61],a[62],a[63],a[64],a[63],a[61],a[61],a[66],a[65],a[66],a[67],a[68]],[a[69],a[70],a[1299],a[72],a[558],a[74],a[75],a[8937],a[77],a[1301],a[79],a[1903]],[a[1302],a[1303],a[1299],a[84],a[558],a[74],a[1307],a[8938],a[88],a[572],a[90],a[8939]],[a[64],a[1313],a[65],a[603],a[707],a[61],a[65]],[a[8940],a[8941],a[5804],a[5805],a[8942],a[3202],a[1924]],[a[8943],a[8944],a[5809],a[5810],a[8945],a[8946],a[5813]],{"am":a[8947],"pm":a[8948]},[a[8949],a[8950],a[2292],a[8951],a[3263],a[4831],a[8952],a[8953],a[8954],a[3392],a[8955],a[8956]],[a[8957],a[8958],a[189],a[190]],{"AUD":a[515],"BRL":a[516],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MYR":a[3699],"NZD":a[527],"TWD":a[528],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"yMMMMEEEEd":a[552],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[3703]},{"AUD":a[515],"BND":a[529],"BRL":a[516],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MYR":a[3699],"NZD":a[527],"TWD":a[528],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MYR":a[3699],"NZD":a[527],"SGD":a[529],"TWD":a[528],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"yMMMMEEEEd":a[8959],"yMMMMd":a[8960],"yMMMd":a[553],"yMd":a[738]},[a[61],a[62],a[63],a[64],a[63],a[8961],a[38],a[64],a[65],a[66],a[67],a[68]],[a[69],a[8962],a[71],a[72],a[8963],a[8964],a[8965],a[8966],a[4228],a[8967],a[79],a[8968]],[a[8969],a[8970],a[8971],a[84],a[8972],a[8973],a[8974],a[8975],a[8976],a[8977],a[8978],a[8979]],[a[8980],a[92],a[92],a[1900],a[8980],a[8961],a[65]],[a[8981],a[8982],a[8983],a[8984],a[8985],a[8986],a[3411]],[a[8987],a[8988],a[8989],a[8990],a[8991],a[8992],a[8993]],[a[8994],a[8995],a[8996],a[6667]],[a[8997],a[8998],a[8996],a[6667]],[a[66],a[64],a[1313],a[62],a[68],a[188],a[38],a[63],a[1900],a[2073],a[93],a[708]],[a[8999],a[9000],a[9001],a[9002],a[9003],a[9004],a[9005],a[9006],a[9007],a[9008],a[9009],a[9010]],[a[9011],a[9012],a[9013],a[9014],a[9015],a[9016],a[9017],a[9018],a[9019],a[9020],a[9021],a[9022]],[a[708],a[38],a[2072],a[66],a[64],a[2293],a[1900]],[a[9023],a[9024],a[9025],a[9026],a[9027],a[9028],a[9029]],[a[9030],a[9031],a[9032],a[9033],a[9034],a[9035],a[9036]],{"am":a[9037],"pm":a[9038]},[a[3214],a[9039],a[189],a[190]],[a[9040],a[9041],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[9043],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[1686],"GyMMMd":a[1687],"GyMMMEd":a[9044],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[9045],"MMM":a[41],"MMMd":a[543],"MMMEd":a[9046],"MMMMd":a[811],"MMMMEd":a[9047],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[3818],"yMEd":a[9048],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[9049],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[9050],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[3820]},[a[9051],a[9052],a[9053],a[9054],a[9053],a[9051],a[9051],a[9055],a[9056],a[9057],a[9058],a[9059]],[a[9060],a[9061],a[9062],a[9063],a[9064],a[9065],a[9066],a[9055],a[9067],a[9068],a[9069],a[9070]],[a[9071],a[9072],a[9062],a[9063],a[9064],a[9065],a[9073],a[9074],a[9075],a[9076],a[9077],a[9078]],[a[9079],a[9079],a[9057],a[9080],a[9081],a[9082],a[9056]],[a[9083],a[9084],a[9085],a[9086],a[9087],a[9088],a[9089]],{"am":a[9090],"pm":a[9091]},[a[9092],a[9093],a[9094],a[9095]],[a[9096],a[9097],a[9094],a[9095]],[a[9098],a[501]],{"decimal":a[508],"group":a[509],"nan":a[9099],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"CRC":a[9100],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MMK":a[707],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[9101],a[9102],a[836],a[4006],a[9103],a[4008],a[9104],a[4010],a[4011],a[4012],a[4013],a[4014]],[a[9105],a[4031],a[9106],a[824]],[a[9107],a[9108],a[9109],a[4033]],[a[9110],a[9111],a[9112],a[9113],a[9114],a[9115],a[9116],a[9117],a[9118],a[9119],a[9120],a[9121]],[a[65],a[63],a[1900],a[93],a[68],a[62],a[64]],[a[9122],a[3388],a[3394],a[9123],a[9124],a[9125],a[100]],[a[9126],a[9127],a[9128],a[9129],a[9130],a[9131],a[9132]],{"am":a[9133],"pm":a[9134]},[a[9135],a[9136],a[189],a[190]],{"d":a[3011],"E":a[18],"Ed":a[3012],"Ehm":a[3124],"EHm":a[1819],"Ehms":a[3125],"EHms":a[1821],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[3126],"GyMMMEd":a[3127],"h":a[28],"H":a[29],"hm":a[3128],"Hm":a[1825],"hms":a[3129],"Hms":a[1827],"hmsv":a[3130],"Hmsv":a[1829],"hmv":a[3131],"Hmv":a[1831],"M":a[5325],"Md":a[3221],"MEd":a[9137],"MMdd":a[3221],"MMM":a[41],"MMMd":a[3132],"MMMEd":a[3133],"MMMMd":a[2394],"ms":a[1835],"y":a[46],"yM":a[1836],"yMd":a[1837],"yMEd":a[9138],"yMM":a[1692],"yMMM":a[50],"yMMMd":a[3134],"yMMMEd":a[3135],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[3027],"yMMMMd":a[3025],"yMMMd":a[3134],"yMd":a[1693]},[a[2419],a[2420],a[4257],a[2421],a[3866],a[2422],a[2423],a[2424],a[3147],a[3148],a[3149],a[4259]],[a[9139],a[9140],a[9141],a[9142],a[9143],a[9144],a[9145],a[9146],a[9147],a[9148],a[9149],a[9150],a[9151]],[a[9152],a[9153]],[a[9154],a[9155]],[a[9156],a[9157]],[a[9158],a[9159],a[9160],a[9161],a[1405],a[9162],a[9163],a[9164],a[9165],a[9166],a[9167],a[9168],a[9169]],[a[3169],a[3170],a[9170],a[9171]],[a[3169],a[3170],a[9170],a[9172]],[a[9173],a[9174],a[9175],a[9176]],[a[9177],a[9178],a[9179],a[9180],a[9181],a[9182],a[9183],a[9184],a[9185],a[9186],a[9187],a[9188],a[9189],a[9190]],[a[9191],a[9192],a[9193],a[9194],a[9195],a[9196],a[9197],a[9198],a[9199],a[9200],a[9201],a[9202]],[a[9203]],[a[9204],a[4352],a[9205],a[9206],a[9207],a[9208],a[4357],a[9209],a[4359],a[9210],a[9211],a[9212]],[a[4208],a[4209],a[9213],a[9214],a[9215],a[9216],a[4368],a[9217],a[4216],a[9218],a[9219],a[9220]],[a[9221],a[9222],a[9223],a[9224],a[9225],a[9226],a[9227],a[9228],a[9229],a[9230],a[9231],a[9232]],{"EUR":a[519],"GBP":a[520],"NOK":a[3707],"XOF":a[533]},[a[2072],a[67],a[63],a[63],a[67],a[67],a[67],a[67],a[63],a[63],a[38],a[63]],[a[9233],a[9234],a[9235],a[9236],a[9237],a[9238],a[9239],a[9240],a[9241],a[3184],a[9242],a[9243]],[a[9244],a[9245],a[9246],a[9247],a[9248],a[9249],a[9250],a[9251],a[9252],a[9253],a[9254],a[9255]],[a[65],a[63],a[65],a[65],a[65],a[65],a[63]],[a[9122],a[9256],a[3411],a[1923],a[9257],a[9258],a[9259]],[a[9260],a[9261],a[9262],a[9263],a[9264],a[9265],a[9266]],[a[9267],a[9268],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[19],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[1252],"MEd":a[1253],"MMM":a[41],"MMMd":a[42],"MMMEd":a[1254],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[1255],"yMd":a[547],"yMEd":a[1256],"yMMM":a[1257],"yMMMd":a[679],"yMMMEd":a[1258],"yMMMM":a[614],"yQQQ":a[1259],"yQQQQ":a[1260]},[a[9269],a[9270],a[9271],a[9272],a[9273],a[9274],a[9275],a[9276],a[9277],a[9278],a[9279],a[9280]],[a[5004],a[9281],a[4994],a[9282],a[2327],a[2338],a[5006],a[9283],a[9284],a[9285],a[9286],a[9287]],[a[5004],a[9281],a[4994],a[9282],a[4996],a[2338],a[5006],a[9283],a[9284],a[9285],a[9286],a[9287]],[a[2329],a[5012],a[4989],a[2348],a[2349],a[5014],a[5015]],[a[9288],a[5017],a[9289],a[5018],a[9290],a[5020],a[5021]],[a[9291],a[9292],a[9293],a[9294],a[9295],a[9296],a[9297]],[a[9298],a[9299],a[9300],a[9301]],[a[5050],a[9302],a[9303],a[9304],a[9305],a[9306],a[9307],a[9308],a[9309],a[5059],a[2379],a[9310]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NPR":a[9311],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[3137],a[3138],a[4458],a[3140],a[9312],a[3141],a[2842],a[3142],a[3143],a[3144],a[2846],a[3145]],[a[6814],a[6815],a[4461],a[2421],a[9312],a[2422],a[2423],a[4464],a[3147],a[3148],a[3149],a[3150]],[a[9313],a[3739],a[3343],a[4470],a[9314],a[9315],a[9316]],[a[9317],a[9318],a[9319],a[9320],a[9321],a[9322],a[9323]],[a[9324],a[9325],a[9326],a[9327],a[9328],a[9329],a[9330],a[9331],a[9332],a[9333],a[9334],a[9335]],[a[9336],a[9337],a[9338],a[9339],a[9340],a[9341],a[9342],a[9343],a[9344],a[9345],a[9346],a[9347]],[a[591],a[592],a[9348],a[4501]],[a[9349],a[9350],a[593],a[594]],[a[595],a[596],a[9351],a[9352]],[a[249],a[250],a[251],a[252],a[253],a[254],a[255],a[256],a[257],a[258],a[259],a[260],a[261],a[262],a[263],a[264],a[265],a[266],a[267],a[268],a[269],a[270],a[271],a[272],a[273],a[274],a[275],a[276],a[277],a[278],a[279],a[280],a[281],a[282],a[283],a[284],a[285],a[286],a[287],a[288],a[289],a[290],a[291],a[292],a[293],a[294],a[295],a[296],a[297],a[298],a[299],a[300],a[301],a[302],a[303],a[304],a[305],a[306],a[307],a[308],a[309],a[310],a[311],a[312],a[313],a[314],a[315],a[316],a[317],a[318],a[319],a[5837],a[321],a[5838],a[323],a[324],a[325],a[326],a[327],a[328],a[5839],a[5840],a[331],a[332],a[333],a[334],a[5841],a[336],a[337],a[338],a[339],a[340],a[341],a[5843],a[343],a[344],a[345],a[346],a[347],a[348],a[349],a[350],a[351],a[352],a[353],a[354],a[355],a[356],a[357],a[358],a[359],a[360],a[5846],a[5847],a[363],a[364],a[5848],a[366],a[367],a[368],a[369],a[370],a[371],a[5849],a[373],a[374],a[375],a[1680],a[377],a[378],a[379],a[380],a[381],a[382],a[383],a[5850],a[385],a[5851],a[387],a[388],a[389],a[390],a[391],a[392],a[393],a[394],a[5852],a[396],a[397],a[398],a[399],a[5853],a[401],a[5854],a[403],a[404],a[5855],a[406],a[407],a[408],a[409],a[410],a[411],a[412],a[413],a[414],a[415],a[416],a[417],a[418],a[419],a[420],a[421],a[422],a[5856],a[424],a[425],a[426],a[427],a[428],a[429],a[430],a[431],a[432],a[433],a[434],a[435],a[436],a[437],a[438],a[5857],a[440],a[441],a[442],a[443],a[444],a[445],a[5858],a[5859],a[448],a[449],a[5860],a[5861],a[452],a[453],a[454],a[5862],a[456],a[457],a[458],a[459],a[460],a[461],a[462],a[463],a[5863],a[5864],a[466],a[5865],a[468],a[469],a[470],a[471],a[472],a[473],a[474],a[475],a[476],a[5866],a[478],a[479],a[480],a[482],a[483],a[484],a[485]],[a[9353],a[500]],{"AUD":a[802],"AWG":a[3842],"BRL":a[516],"CAD":a[3843],"CNY":a[518],"EUR":a[519],"FJD":a[4545],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"SBD":a[4546],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533]},{"AUD":a[802],"BRL":a[516],"CAD":a[3843],"CNY":a[518],"EUR":a[519],"FJD":a[4545],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"SBD":a[4546],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533]},{"ANG":a[3709],"AUD":a[802],"BRL":a[516],"CAD":a[3843],"CNY":a[518],"EUR":a[519],"FJD":a[4545],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"SBD":a[4546],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533]},{"AUD":a[802],"BRL":a[516],"CAD":a[3843],"CNY":a[518],"EUR":a[519],"FJD":a[4545],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"SBD":a[4546],"SRD":a[529],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533]},[a[9354],a[9355],a[9356],a[9357],a[9358],a[9359],a[9360],a[9361],a[9362],a[9363],a[9364],a[9365]],[a[9366],a[9367],a[9368],a[9369],a[9370],a[9371],a[9372],a[9373],a[9374],a[9375],a[9376],a[9377]],[a[623],a[1767],a[623],a[623],a[623],a[1767],a[623]],[a[3972],a[3973],a[3974],a[3975],a[3976],a[9378],a[9379]],[a[3979],a[9380],a[9381],a[9382],a[9383],a[9384],a[9385]],{"am":a[9386],"pm":a[9387]},[a[9388],a[9389],a[189],a[190]],[a[9390],a[9391],a[189],a[190]],{"d":a[3011],"E":a[18],"Ed":a[3012],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[3126],"GyMMMEd":a[3127],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[3221],"MEd":a[9137],"MMdd":a[3221],"MMM":a[41],"MMMd":a[3132],"MMMEd":a[3133],"MMMMd":a[2394],"ms":a[45],"y":a[46],"yM":a[9392],"yMd":a[1837],"yMEd":a[4153],"yMM":a[1692],"yMMM":a[50],"yMMMd":a[3134],"yMMMEd":a[3135],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"hmmsszzzz":a[9393],"hmsz":a[619],"hms":a[33],"hm":a[31]},[a[3137],a[3138],a[4257],a[3140],a[3866],a[2422],a[2423],a[3142],a[3143],a[3144],a[2846],a[2847]],[a[9394],a[9395],a[9396],a[9397],a[9398],a[9399],a[9400]],[a[3158],a[9401],a[9402],a[3161],a[3162],a[3163],a[9403]],{"am":a[9404],"pm":a[9405]},[a[3169],a[3170],a[189],a[190]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NOK":a[3707],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[1252],"MEd":a[1253],"MMM":a[41],"MMMd":a[42],"MMMEd":a[1254],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[1255],"yMd":a[611],"yMEd":a[9407],"yMMM":a[50],"yMMMd":a[9408],"yMMMEd":a[9409],"yMMMM":a[614],"yQQQ":a[1259],"yQQQQ":a[1260]},{"yMMMMEEEEd":a[9410],"yMMMMd":a[9408],"yMMMd":a[617],"yMd":a[3080]},[a[9411],a[9412],a[9413],a[9414],a[9415],a[9416],a[9417],a[9418],a[9419],a[9420],a[9421],a[9422]],[a[9423],a[9424],a[9425],a[9426],a[9427],a[9428],a[9429]],{"am":a[9430],"pm":a[9431]},[a[9432],a[9433],a[189],a[190]],[a[9434],a[9435],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[9436],"MMM":a[41],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[44],"ms":a[610],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[9437],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[9438],"yMMMM":a[614],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[615],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[3702]},{"hmmsszzzz":a[9439],"hmsz":a[9440],"hms":a[32],"hm":a[30]},[a[92],a[1347],a[68],a[2293],a[68],a[707],a[1347],a[92],a[92],a[38],a[707],a[92]],[a[9441],a[9442],a[9443],a[9444],a[9445],a[9446],a[9447],a[9448],a[9449],a[9450],a[9451],a[9452]],[a[9453],a[9442],a[9454],a[9444],a[9455],a[9456],a[9457],a[9458],a[9459],a[9460],a[9451],a[9461]],[a[3116],a[61],a[603],a[68],a[9462],a[68],a[188]],[a[9463],a[9464],a[9465],a[9466],a[9467],a[9468],a[9469]],[a[9470],a[9471],a[9472],a[9473],a[9474],a[9475],a[9476]],{"am":a[9477],"pm":a[9478]},[a[6628],a[9479],a[189],a[190]],[a[9480],a[9481],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[1252],"MEd":a[1253],"MMdd":a[2069],"MMM":a[41],"MMMd":a[42],"MMMEd":a[1254],"MMMMd":a[44],"MMMMdd":a[9482],"ms":a[45],"y":a[46],"yM":a[1255],"yMd":a[547],"yMEd":a[1256],"yMM":a[2071],"yMMM":a[1257],"yMMMd":a[679],"yMMMEd":a[1258],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[1260]},{"yMMMMEEEEd":a[56],"yMMMMd":a[552],"yMMMd":a[3683],"yMd":a[3080]},[a[9483],a[9484],a[9485],a[9486],a[9487],a[9488],a[9489],a[9490],a[9491],a[9492],a[3108],a[9493]],[a[9494],a[9495],a[9496],a[9497],a[9498],a[9499],a[9500],a[9501],a[9502],a[9503],a[9504],a[9505]],[a[9506],a[9507],a[9508],a[9509],a[5806],a[3203],a[6538]],[a[9510],a[9511],a[9512],a[9513],a[9514],a[9515],a[9516]],{"am":a[9517],"pm":a[9518]},[a[9519],a[9520],a[189],a[190]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"ETB":a[9521],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"ETB":a[9521],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KES":a[3217],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[1252],"MEd":a[1253],"MMdd":a[541],"MMM":a[41],"MMMd":a[42],"MMMEd":a[1254],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[1255],"yMd":a[547],"yMEd":a[1256],"yMM":a[546],"yMMM":a[1257],"yMMMd":a[679],"yMMMEd":a[1258],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[1260]},{"yMMMMEEEEd":a[1298],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[9522]},[a[9523],a[9524],a[9525],a[9526],a[9527],a[9528],a[9528],a[9526],a[9529],a[9526],a[9530],a[9531]],[a[9532],a[9533],a[9534],a[9535],a[9527],a[9536],a[9537],a[9538],a[9539],a[9540],a[9541],a[9542]],[a[9543],a[9544],a[9545],a[9546],a[9547],a[9548],a[9549]],[a[9550],a[9551],a[9552],a[9553],a[9554],a[9555],a[9556]],[a[9557],a[9558],a[9559],a[9560],a[9561],a[9562],a[9563]],{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[1689],"MEd":a[1741],"MMM":a[41],"MMMd":a[543],"MMMEd":a[9564],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[1692],"yMd":a[547],"yMEd":a[1743],"yMMM":a[1839],"yMMMd":a[679],"yMMMEd":a[550],"yMMMM":a[614],"yQQQ":a[9565],"yQQQQ":a[9566]},{"yMMMMEEEEd":a[9567],"yMMMMd":a[9568],"yMMMd":a[9569],"yMd":a[1697]},[a[7541],a[7542],a[7543],a[7544],a[9570],a[9571],a[9572],a[7547],a[7548],a[7549],a[7550],a[7551]],[a[9573],a[9574],a[9575],a[9576],a[9570],a[9571],a[9572],a[9577],a[9578],a[9579],a[9580],a[9581]],[a[9582],a[9583],a[6767],a[9584],a[9585],a[6739],a[6738]],[a[9586],a[9587],a[9588],a[9589],a[9590],a[9591],a[9592]],[a[9593],a[9594],a[9595],a[9596],a[9597],a[9598],a[9599]],{"am":a[9600],"pm":a[9601]},[a[9602],a[9603],a[189],a[190]],{"decimal":a[509],"group":a[599],"nan":a[9604],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"RUB":a[1899],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[4681],"GyMMMd":a[549],"GyMMMEd":a[9605],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[9606],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[44],"mmss":a[45],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[1341],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[614],"yQQQ":a[54],"yQQQQ":a[55]},[a[9607],a[9608],a[9609],a[9610],a[9611],a[9612],a[9613],a[9610],a[9614],a[9610],a[9615],a[9616]],[a[9617],a[9618],a[9619],a[9620],a[9621],a[9622],a[9623],a[9624],a[9625],a[9626],a[9627],a[9628]],[a[9629],a[9630],a[9619],a[9631],a[9621],a[9622],a[9632],a[9633],a[9634],a[9635],a[9636],a[9637]],[a[9638],a[9639],a[9640],a[9641],a[9642],a[9643],a[9644]],[a[9645],a[9646],a[9647],a[9648],a[9649],a[9650],a[9651]],[a[9652],a[9653],a[9654],a[9655],a[9656],a[9657],a[9658]],{"am":a[9659],"pm":a[9660]},[a[9661],a[9662],a[9663],a[9664]],[a[9665],a[9666],a[9667],a[9668]],[a[9669],a[9670],a[9671],a[9672],a[9673],a[9674],a[9675],a[9676],a[9677],a[9678],a[9679],a[9680]],[a[9681],a[9682],a[9683],a[9684],a[9685],a[9686],a[9687],a[9688],a[9689],a[9690],a[9691],a[9692]],[a[9693]],{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"HHmmss":a[33],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[1253],"MMM":a[41],"MMMd":a[42],"MMMEd":a[1254],"MMMMd":a[44],"mmss":a[45],"ms":a[45],"y":a[46],"yM":a[1255],"yMd":a[547],"yMEd":a[1256],"yMMM":a[50],"yMMMd":a[679],"yMMMEd":a[1258],"yMMMM":a[614],"yQQQ":a[54],"yQQQQ":a[1260]},{"yMMMMEEEEd":a[551],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[738]},[a[4081],a[9694],a[4083],a[4084],a[9695],a[4085],a[9696],a[4087],a[7377],a[4089],a[4090],a[4091]],[a[9697],a[9698],a[9699],a[9700],a[9701],a[9702],a[9703]],[a[9704],a[9705],a[189],a[190]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"PKR":a[848],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[1959],"Ehm":a[1960],"EHm":a[1961],"Ehms":a[1962],"EHms":a[3078],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[9706],"GyMMMEd":a[1339],"GyMMMM":a[3013],"GyMMMMd":a[9707],"GyMMMMEd":a[9708],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[1971],"MEd":a[1972],"MMM":a[41],"MMMd":a[1971],"MMMEd":a[1972],"MMMMd":a[811],"MMMMEd":a[1834],"ms":a[45],"y":a[46],"yM":a[1692],"yMd":a[9709],"yMEd":a[9710],"yMMM":a[1692],"yMMMd":a[9709],"yMMMEd":a[9710],"yMMMM":a[1840],"yMMMMd":a[616],"yMMMMEd":a[9711],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[1298],"yMMMMd":a[616],"yMMMd":a[1693],"yMd":a[1693]},[a[623],a[626],a[1767],a[621],a[1767],a[627],a[626],a[623],a[3318],a[3317],a[626],a[652]],[a[9712],a[9713],a[1350],a[9714],a[2412],a[9715],a[5350],a[9716],a[9717],a[9718],a[3038],a[9719]],[a[9720],a[9721],a[9722],a[9723],a[3309],a[9724],a[9725],a[9726],a[9727],a[9728],a[5363],a[9729]],[a[67],a[1347],a[93],a[9730],a[3116],a[1347],a[65]],[a[9731],a[9732],a[9733],a[9734],a[9735],a[9736],a[9737]],[a[9738],a[9739],a[9740],a[9741],a[9742],a[9743],a[3066]],[a[9744],a[2449],a[189],a[190]],[a[9745],a[9746],a[9747],a[9748],a[9749],a[202],a[203],a[204],a[4512],a[9750],a[207],a[9751],a[209],a[210]],[a[224],a[225],a[226],a[227],a[9752],a[9753],a[9754],a[9755],a[232],a[9756],a[9757],a[9758]],[a[236],a[237],a[238],a[239],a[9759],a[9760],a[9761],a[9762],a[244],a[9763],a[9764],a[9765]],[a[9766],a[9767],a[9768],a[489],a[9769],a[9770],a[492],a[9771],a[9772],a[9773],a[496],a[497]],[a[9774],a[9775]],{"BRL":a[516],"EUR":a[519],"PLN":a[3341],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[481],"hm":a[30],"Hm":a[1231],"hms":a[32],"Hms":a[1230],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[1252],"MEd":a[1253],"MMM":a[41],"MMMd":a[42],"MMMEd":a[1254],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[1255],"yMd":a[547],"yMEd":a[1256],"yMMM":a[1257],"yMMMd":a[679],"yMMMEd":a[1258],"yMMMM":a[614],"yQQQ":a[1259],"yQQQQ":a[1260]},{"yMMMMEEEEd":a[9776],"yMMMMd":a[9777],"yMMMd":a[549],"yMd":a[678]},[a[9778],a[9779],a[4083],a[4084],a[4078],a[4085],a[4086],a[9780],a[4088],a[4089],a[4090],a[4091]],{"am":a[9781],"pm":a[9782]},[a[4030],a[4031],a[189],a[190]],[a[9783],a[9784],a[9785],a[9786],a[9787],a[9788],a[9789],a[9790],a[9791],a[9792],a[9793],a[9794]],{"decimal":a[509],"group":a[508],"nan":a[510],"plusSign":a[1191],"minusSign":a[4070],"percentSign":a[513],"infinity":a[514]},{"AFN":a[4071],"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[1959],"Ehm":a[1960],"EHm":a[1961],"Ehms":a[1962],"EHms":a[3078],"Gy":a[24],"GyMMM":a[3821],"GyMMMd":a[3806],"GyMMMEd":a[3811],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[3653],"MMdd":a[2069],"MMM":a[41],"MMMd":a[3823],"MMMEd":a[3824],"MMMMd":a[3761],"MMMMEd":a[3762],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[738],"yMEd":a[3654],"yMM":a[2071],"yMMM":a[3825],"yMMMd":a[3815],"yMMMEd":a[3808],"yMMMM":a[3765],"yMMMMd":a[3766],"yMMMMEd":a[9795],"yQQQ":a[1259],"yQQQQ":a[1260]},{"yMMMMEEEEd":a[3769],"yMMMMd":a[3766],"yMMMd":a[3815],"yMd":a[3080]},[a[2411],a[1699],a[1350],a[1351],a[3866],a[2413],a[2414],a[1355],a[1356],a[4643],a[2417],a[9796]],[a[9797],a[9798],a[9799],a[3779],a[4646],a[9800],a[9801],a[3781],a[4649],a[4650],a[3736],a[9802]],[a[68],a[65],a[92],a[3831],a[3831],a[65],a[65]],[a[1372],a[9803],a[1405],a[9804],a[9805],a[9806],a[1377]],[a[3792],a[9807],a[9808],a[9809],a[9810],a[9811],a[3796]],[a[9812],a[9813],a[9814],a[9815],a[9816],a[9817],a[9818],a[9819],a[9820],a[9821],a[9822],a[9823]],[a[1437],a[1438],a[2883],a[2884]],[a[3801],a[9824],a[9825],a[9826]],[a[9827],a[598]],{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"PTE":a[9828],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[1959],"Ehm":a[1960],"EHm":a[1961],"Ehms":a[1962],"EHms":a[3078],"Gy":a[24],"GyMMM":a[3821],"GyMMMd":a[3806],"GyMMMEd":a[3811],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[2069],"MEd":a[3653],"MMdd":a[2069],"MMM":a[41],"MMMd":a[2068],"MMMEd":a[9830],"MMMMd":a[3761],"MMMMEd":a[9831],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[738],"yMEd":a[3654],"yMM":a[2071],"yMMM":a[2071],"yMMMd":a[3702],"yMMMEd":a[9832],"yMMMEEEEd":a[9833],"yMMMM":a[3765],"yMMMMd":a[3766],"yMMMMEd":a[9834],"yQQQ":a[3768],"yQQQQ":a[3768]},[a[3792],a[9835],a[9836],a[9837],a[9838],a[9839],a[3796]],{"am":a[9840],"pm":a[9841]},[a[8686],a[9842],a[8688],a[9843],a[9844],a[9845],a[9846],a[9847],a[9848],a[185],a[186],a[187]],[a[1437],a[1438],a[9849],a[9850]],{"AOA":a[3840],"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"PTE":a[6672],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"CVE":a[6672],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"PTE":a[9851],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"PTE":a[6672],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MOP":a[3698],"MXN":a[526],"NZD":a[527],"PTE":a[6672],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"MZN":a[8685],"NZD":a[527],"PTE":a[6672],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"PTE":a[6672],"STD":a[9852],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[1252],"MEd":a[1253],"MMM":a[41],"MMMd":a[42],"MMMEd":a[1254],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[1255],"yMd":a[3818],"yMEd":a[1256],"yMMM":a[1257],"yMMMd":a[679],"yMMMEd":a[2116],"yMMMM":a[614],"yQQQ":a[1259],"yQQQQ":a[1260]},{"yMMMMEEEEd":a[2117],"yMMMMd":a[681],"yMMMd":a[679],"yMd":a[738]},[a[9853],a[9854],a[9855],a[9856],a[9857],a[9858],a[9859],a[9860],a[9861],a[3181],a[9862],a[9863]],[a[9864],a[9865],a[9866],a[9867],a[9868],a[9869],a[9870],a[9871],a[9872],a[9873],a[9874],a[9875]],[a[9876],a[2296],a[71],a[9877],a[9878],a[9879],a[1924]],[a[9880],a[4247],a[4248],a[9881],a[9882],a[9883],a[9884]],[a[189],a[1434],a[189],a[190]],[a[189],a[1438],a[189],a[190]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"PEN":a[3849],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BOB":a[3816],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[3012],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[481],"HHmm":a[31],"HHmmss":a[33],"hm":a[30],"Hm":a[1231],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[3221],"MEd":a[3222],"MMd":a[3223],"MMdd":a[2389],"MMM":a[41],"MMMd":a[3132],"MMMEd":a[3133],"MMMMd":a[2394],"MMMMEd":a[3022],"mmss":a[45],"ms":a[45],"y":a[46],"yM":a[3432],"yMd":a[547],"yMEd":a[3434],"yMM":a[1692],"yMMdd":a[1693],"yMMM":a[50],"yMMMd":a[679],"yMMMEd":a[3225],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[9885],"yMMMMd":a[9886],"yMMMd":a[3818],"yMd":a[3820]},[a[65],a[62],a[63],a[64],a[63],a[2072],a[62],a[64],a[65],a[66],a[67],a[68]],[a[9887],a[9888],a[4257],a[4286],a[9889],a[9890],a[9891],a[9892],a[9893],a[2845],a[2846],a[3145]],[a[9894],a[9895],a[4257],a[9896],a[9889],a[9897],a[9898],a[9892],a[9899],a[9900],a[3149],a[3150]],[a[68],a[2293],a[63],a[63],a[2293],a[574],a[65]],[a[9901],a[9902],a[3739],a[3740],a[9903],a[3742],a[3059]],[a[9904],a[9905],a[4306],a[9906],a[9907],a[9908],a[9909]],{"am":a[3675],"pm":a[9910]},[a[9911],a[9912],a[189],a[190]],[a[9913],a[9914],a[189],a[190]],[a[9915],a[9916],a[9917],a[9918],a[9919],a[9920],a[9921],a[9922],a[9923],a[9924],a[9925],a[9926]],[a[9927],a[9928],a[9929],a[9930],a[9931],a[9932],a[9933],a[9934],a[9935],a[9936],a[9937],a[9938]],[a[9939],a[9940],a[9941],a[9942],a[9943],a[9944],a[9945]],[a[9946],a[9947],a[9948],a[9949],a[9950],a[9951],a[9952]],{"am":a[9953],"pm":a[9954]},[a[9955],a[9956],a[189],a[190]],[a[9957],a[9958],a[189],a[190]],{"AUD":a[515],"BIF":a[3679],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[1689],"MEd":a[1741],"MMdd":a[1689],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"MMMMEd":a[1834],"ms":a[45],"y":a[46],"yM":a[1692],"yMd":a[1693],"yMEd":a[1743],"yMM":a[1692],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[1298],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[1693]},[a[1313],a[62],a[63],a[64],a[63],a[1313],a[1313],a[64],a[65],a[66],a[67],a[68]],[a[9959],a[3138],a[3139],a[3140],a[3866],a[9960],a[9961],a[3142],a[3774],a[2845],a[2846],a[3145]],[a[9962],a[9963],a[9964],a[9965],a[3866],a[9966],a[9967],a[2424],a[9968],a[9969],a[9970],a[9971]],[a[9972],a[3787],a[3139],a[9973],a[4441],a[9974],a[9975]],[a[9976],a[9977],a[9978],a[9979],a[4441],a[9980],a[9981]],[a[9982]],[a[9983]],[a[9984],a[9985],a[9986],a[9987]],[a[9988],a[9989],a[9990],a[9991]],[a[9992],a[9993],a[199],a[200],a[9994],a[202],a[203],a[204],a[205],a[206],a[9995],a[208],a[209],a[210]],{"XAF":a[531],"XOF":a[533],"XPF":a[534]},[a[68],a[38],a[3388],a[9996],a[61],a[574],a[65]],[a[9997],a[2296],a[71],a[9998],a[9999],a[10000],a[10001]],[a[9984],a[9985],a[10002],a[9987]],{"MDL":a[38],"XAF":a[531],"XOF":a[533],"XPF":a[534]},[a[707],a[707],a[707],a[707],a[92],a[65],a[65],a[67],a[92],a[1313],a[1313],a[1313]],[a[10003],a[10004],a[10005],a[10006],a[10007],a[10008],a[10009],a[10010],a[10011],a[10012],a[10013],a[10014]],[a[10015],a[10016],a[10017],a[10018],a[1318],a[6438],a[1319]],[a[10019],a[10020],a[10021],a[10022],a[1325],a[1326],a[10023]],{"am":a[10024],"pm":a[10025]},[a[10026],a[10027],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[10028],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[1964],"GyMMM":a[1822],"GyMMMd":a[10029],"GyMMMEd":a[10030],"h":a[28],"H":a[481],"hm":a[30],"Hm":a[1231],"hms":a[32],"Hms":a[1230],"hmsv":a[34],"Hmsv":a[3018],"hmv":a[36],"Hmv":a[3019],"M":a[38],"Md":a[1689],"MEd":a[1741],"MMdd":a[1689],"MMM":a[41],"MMMd":a[543],"MMMEd":a[9564],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[1692],"yMd":a[1693],"yMEd":a[10031],"yMM":a[1692],"yMMM":a[10032],"yMMMd":a[8722],"yMMMEd":a[8723],"yMMMM":a[10033],"yQQQ":a[1983],"yQQQQ":a[1984]},{"yMMMMEEEEd":a[1985],"yMMMMd":a[1981],"yMMMd":a[8722],"yMd":a[1697]},[a[7541],a[10034],a[7543],a[7544],a[1855],a[7545],a[7546],a[7547],a[10035],a[7549],a[10036],a[7551]],[a[10037],a[10038],a[10039],a[10040],a[1855],a[10041],a[10042],a[10043],a[10044],a[10045],a[10046],a[10047]],[a[10048],a[1878],a[2009],a[1880],a[2010],a[1882],a[1883]],[a[10049],a[10050],a[2013],a[8740],a[10051],a[10052],a[10053]],{"am":a[10054],"pm":a[10055]},[a[10056],a[10057],a[10058],a[10059],a[10060],a[2496],a[2497],a[10061],a[10062],a[10063],a[10064],a[10065],a[2503]],[a[2504],a[2505],a[2506],a[2507],a[2508],a[10066],a[10067],a[10068],a[2512],a[10069],a[10070],a[10071],a[10072]],[a[10073],a[1894],a[189],a[190]],[a[10074],a[10075],a[189],a[190]],[a[10076],a[10077],a[10078],a[10079]],[a[10080],a[2524],a[2525],a[2526],a[2527],a[2528],a[2529],a[2530],a[10081],a[2532],a[10082],a[2534],a[10083],a[2536]],[a[10084],a[10085],a[10086],a[10087],a[2541],a[10088],a[10089],a[2544],a[10090],a[2546],a[10091],a[10092]],[a[10093],a[2551],a[10094],a[10095],a[10096],a[10097],a[10098],a[10099],a[2558],a[10100],a[10101],a[10102]],[a[10103],a[10104],a[10105],a[10106],a[10107],a[10108],a[10109],a[10110],a[10111],a[10112],a[10113],a[10114],a[10115],a[10116],a[10117],a[10118],a[10119],a[10120],a[10121],a[10122],a[10123],a[10124],a[10125],a[10126],a[10127],a[10128],a[10129],a[10130],a[10131],a[10132],a[10133],a[10134],a[10135],a[10136],a[10137],a[10138],a[10139],a[10140],a[10141],a[10142],a[10143],a[10144],a[10145],a[10146],a[10147],a[10148],a[10149],a[10150],a[10151],a[10152],a[10153],a[10154],a[10155],a[10156],a[10157],a[10158],a[10159],a[10160],a[10161],a[10162],a[10163],a[10164],a[10165],a[10166],a[10167],a[10168],a[10169],a[10170],a[10171],a[10172],a[10173],a[10174],a[10175],a[10176],a[10177],a[10178],a[10179],a[10180],a[10181],a[10182],a[10183],a[10184],a[10185],a[10186],a[10187],a[10188],a[10189],a[10190],a[10191],a[10192],a[10193],a[10194],a[10195],a[10196],a[10197],a[10198],a[10199],a[10200],a[10201],a[10202],a[10203],a[10204],a[10205],a[10206],a[10207],a[10208],a[10209],a[10210],a[10211],a[10212],a[10213],a[10214],a[10215],a[10216],a[10217],a[10218],a[10219],a[10220],a[10221],a[10222],a[10223],a[10224],a[10225],a[10226],a[10227],a[10228],a[10229],a[10230],a[10231],a[10232],a[10233],a[10234],a[10235],a[10236],a[10237],a[10238],a[10239],a[10240],a[10241],a[10242],a[10243],a[10244],a[10245],a[10246],a[10247],a[10248],a[10249],a[10250],a[10251],a[10252],a[10253],a[10254],a[10255],a[10256],a[10257],a[10258],a[10259],a[10260],a[10261],a[10262],a[10263],a[10264],a[10265],a[10266],a[10267],a[10268],a[10269],a[10270],a[10271],a[10272],a[10273],a[10274],a[10275],a[10276],a[10277],a[10278],a[10279],a[10280],a[10281],a[10282],a[10283],a[10284],a[10285],a[10286],a[10287],a[10288],a[10289],a[10290],a[10291],a[10292],a[10293],a[10294],a[10295],a[10296],a[10297],a[10298],a[10299],a[10300],a[10301],a[10302],a[10303],a[10304],a[10305],a[10306],a[10307],a[10308],a[10309],a[10310],a[10311],a[10312],a[10313],a[10314],a[10315],a[10316],a[10317],a[10318],a[10319],a[10320],a[10321],a[10322],a[10323],a[10324],a[10325],a[10326],a[10327],a[10328],a[10329],a[10330],a[10331],a[10332],a[10333],a[10334],a[10335],a[10336],a[10337],a[10338]],[a[10339],a[2799],a[10340],a[2801],a[2802],a[10341],a[2804],a[2805],a[10342],a[10343],a[2808],a[10344]],{"decimal":a[509],"group":a[599],"nan":a[10345],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"MXN":a[526],"NZD":a[527],"RUB":a[1899],"RUR":a[1898],"THB":a[601],"TMT":a[10346],"TWD":a[528],"UAH":a[10347],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534],"XXX":a[10348]},{"AUD":a[515],"BRL":a[516],"BYR":a[1898],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"MXN":a[526],"NZD":a[527],"RUB":a[1899],"THB":a[601],"TMT":a[10346],"TWD":a[528],"UAH":a[10347],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534],"XXX":a[10348]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KGS":a[7571],"KRW":a[525],"MXN":a[526],"NZD":a[527],"RUB":a[1899],"RUR":a[1898],"THB":a[601],"TMT":a[10346],"TWD":a[528],"UAH":a[10347],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534],"XXX":a[10348]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"KZT":a[6791],"MXN":a[526],"NZD":a[527],"RUB":a[1899],"RUR":a[1898],"THB":a[601],"TMT":a[10346],"TWD":a[528],"UAH":a[10347],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534],"XXX":a[10348]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"MDL":a[38],"MXN":a[526],"NZD":a[527],"RUB":a[1899],"RUR":a[1898],"THB":a[601],"TMT":a[10346],"TWD":a[528],"UAH":a[10347],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534],"XXX":a[10348]},[a[10349],a[10350],a[10351],a[10352],a[10353],a[10354],a[10355],a[9943],a[10356],a[10357],a[10358],a[10359]],[a[10360],a[10361],a[10362],a[10363],a[10364],a[10365],a[9935],a[10366],a[10367],a[10368],a[10369],a[10370]],[a[10371],a[9940],a[9941],a[9942],a[9943],a[9944],a[9945]],[a[10372],a[10373],a[10374],a[10375],a[10376],a[10377],a[10378]],{"yMMMMEEEEd":a[10379],"yMMMMd":a[8753],"yMMMd":a[8754],"yMd":a[10380]},[a[6741],a[7540],a[9583],a[6739],a[10381],a[6768],a[7540],a[6736],a[6768],a[6736],a[6738],a[6736]],[a[10382],a[10383],a[10384],a[10385],a[10386],a[10387],a[10388],a[10389],a[10390],a[10391],a[10392],a[10393]],[a[10394],a[10395],a[10396],a[10397],a[10398],a[10399],a[10400],a[10401],a[10402],a[10403],a[10404],a[10405]],[a[6768],a[6768],a[7540],a[6738],a[10406],a[6768],a[6738]],[a[6773],a[10407],a[10408],a[10409],a[10410],a[10411],a[6775]],[a[10412],a[10413],a[10414],a[10415],a[10416],a[10417],a[10418]],{"am":a[10419],"pm":a[10420]},[a[10421],a[10422],a[189],a[190]],[a[66],a[93],a[66],a[66],a[1313],a[1313],a[65],a[1313],a[65],a[92],a[92],a[92]],[a[10423],a[10424],a[10425],a[10426],a[10427],a[10428],a[10429],a[10430],a[10431],a[10432],a[10433],a[10434]],[a[10435],a[10436],a[10437],a[10438],a[10439],a[10440],a[10441],a[10442],a[10443],a[10444],a[10445],a[10446]],[a[64],a[707],a[66],a[1313],a[1313],a[65],a[707]],[a[10447],a[10448],a[10426],a[3508],a[10428],a[10429],a[709]],[a[10449],a[10450],a[10451],a[10452],a[10453],a[10454],a[10455]],{"am":a[10456],"pm":a[10457]},[a[10458],a[10459],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[39],"MEd":a[40],"MMM":a[41],"MMMd":a[42],"MMMEd":a[43],"MMMMd":a[44],"ms":a[610],"y":a[46],"yM":a[47],"yMd":a[48],"yMEd":a[49],"yMMM":a[50],"yMMMd":a[10460],"yMMMEd":a[52],"yMMMM":a[614],"yQQQ":a[54],"yQQQQ":a[55]},[a[10461],a[10462],a[10463],a[10464],a[10465],a[10466],a[10467],a[10468],a[10469],a[10470],a[10471],a[10472]],[a[10473],a[10474],a[10475],a[10476],a[10477],a[10478],a[10479],a[10480],a[10481],a[10482],a[10483],a[10484]],[a[63],a[61],a[61],a[61],a[64],a[1313],a[61]],[a[1942],a[1315],a[1316],a[1317],a[1318],a[6438],a[1320]],[a[10485],a[1322],a[1323],a[1324],a[10486],a[1326],a[1327]],{"am":a[10487],"pm":a[10488]},[a[725],a[9039],a[189],a[190]],[a[10489],a[10490],a[189],a[190]],[a[66],a[2293],a[67],a[3116],a[63],a[2293],a[65],a[188],a[2429],a[2293],a[65],a[61]],[a[10491],a[10492],a[10493],a[10494],a[10495],a[10496],a[10497],a[10498],a[10499],a[10500],a[10501],a[10502]],[a[10503],a[10504],a[10505],a[10506],a[10507],a[10508],a[10509],a[10510],a[10511],a[10512],a[10513],a[10514]],[a[65],a[574],a[63],a[2293],a[68],a[188],a[38]],[a[10515],a[10516],a[10517],a[10518],a[10519],a[10520],a[10521]],[a[10522],a[10523],a[10524],a[10525],a[10526],a[10527],a[10528]],{"am":a[10529],"pm":a[10530]},[a[10531],a[10532],a[189],a[190]],[a[10533],a[10534],a[189],a[190]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"DKK":a[10535],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NOK":a[3707],"NZD":a[527],"SEK":a[10536],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"DKK":a[10535],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NOK":a[10537],"NZD":a[527],"SEK":a[3707],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"HHmm":a[31],"HHmmss":a[33],"hm":a[30],"Hm":a[1231],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[3653],"MMdd":a[2069],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"MMMMEd":a[1834],"mmss":a[45],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[547],"yMEd":a[3654],"yMM":a[2071],"yMMM":a[3825],"yMMMd":a[3815],"yMMMEd":a[3808],"yMMMM":a[3765],"yQQQ":a[1259],"yQQQQ":a[1260]},{"yMMMMEEEEd":a[3769],"yMMMMd":a[3766],"yMMMd":a[3815],"yMd":a[611]},[a[69],a[4423],a[71],a[4225],a[3087],a[74],a[75],a[76],a[4228],a[4428],a[79],a[80]],[a[10538],a[10539],a[10540],a[4233],a[10541],a[10542],a[10543],a[10544],a[10545],a[10546],a[10547],a[10548]],[a[68],a[1347],a[3116],a[92],a[67],a[65],a[65]],[a[3406],a[10549],a[10550],a[3507],a[10551],a[10552],a[1924]],[a[10553],a[10554],a[10555],a[10556],a[10557],a[10558],a[10559]],[a[10560],a[192],a[189],a[190]],[a[10561],a[194],a[189],a[190]],[a[3286],a[3287],a[3288],a[3289],a[6677],a[3290],a[3291]],{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[63],"Md":a[608],"MEd":a[1253],"MMd":a[2068],"MMdd":a[2069],"MMM":a[2070],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[811],"MMMMEd":a[545],"ms":a[610],"y":a[46],"yM":a[47],"yMd":a[547],"yMEd":a[612],"yMMM":a[50],"yMMMd":a[679],"yMMMEd":a[613],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},[a[67],a[62],a[63],a[67],a[188],a[62],a[38],a[707],a[63],a[67],a[67],a[707]],[a[10562],a[9491],a[10563],a[3204],a[10564],a[10565],a[10566],a[10567],a[9256],a[10568],a[10569],a[10570]],[a[10571],a[10572],a[10573],a[10574],a[10575],a[10576],a[10577],a[10578],a[10579],a[10580],a[10581],a[10582]],[a[707],a[65],a[92],a[65],a[707],a[1347],a[708]],[a[10583],a[10584],a[10585],a[10586],a[10587],a[10588],a[10589]],[a[10590],a[10591],a[10592],a[10593],a[10594],a[10595],a[10596]],{"am":a[1685],"pm":a[10597]},[a[10598],a[10599],a[189],a[190]],[a[10600],a[10601],a[189],a[190]],[a[10602],a[10603],a[10604],a[10602],a[10604],a[10605],a[10605],a[10606],a[10607],a[10608],a[10609],a[10610]],[a[10611],a[10612],a[10613],a[10614],a[10615],a[10616],a[10617],a[10618],a[10619],a[10620],a[10621],a[10622]],[a[10623],a[10624],a[10625],a[10626],a[10627],a[10628],a[10629],a[10630],a[10631],a[10632],a[10633],a[10634]],[a[10635],a[10636],a[10637],a[10638],a[10639],a[10640],a[10641]],[a[10642],a[10643],a[10644],a[10645],a[10646],a[10647],a[10648]],{"am":a[10649],"pm":a[10650]},[a[10651],a[10652],a[189],a[190]],[a[10653],a[10654],a[189],a[190]],[a[10655],a[1769],a[1767],a[10655],a[1767],a[46],a[46],a[10656],a[627],a[621],a[620],a[17]],[a[10657],a[10658],a[10659],a[10660],a[1352],a[7687],a[7688],a[10661],a[10662],a[10663],a[10664],a[10665]],[a[10666],a[10667],a[10668],a[10669],a[10670],a[10671],a[10672],a[10673],a[10674],a[10675],a[10676],a[10677]],[a[10678],a[10679],a[10680],a[10681],a[10682],a[10683],a[10684]],[a[10685],a[10686],a[10687],a[10688],a[10689],a[10690],a[10691]],{"am":a[10692],"pm":a[10693]},[a[10694],a[10695],a[189],a[190]],[a[10696],a[10697],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[19],"Ehm":a[10698],"EHm":a[1819],"Ehms":a[10699],"EHms":a[1821],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[5632],"H":a[29],"hm":a[10700],"Hm":a[1825],"hms":a[10701],"Hms":a[1827],"hmsv":a[3130],"Hmsv":a[1829],"hmv":a[3131],"Hmv":a[1831],"M":a[38],"Md":a[3427],"MEd":a[10702],"MMM":a[41],"MMMd":a[42],"MMMEd":a[10703],"MMMMd":a[44],"ms":a[1835],"y":a[46],"yM":a[3432],"yMd":a[3433],"yMEd":a[10704],"yMMM":a[1257],"yMMMd":a[679],"yMMMEd":a[1258],"yMMMM":a[614],"yQQQ":a[1259],"yQQQQ":a[1260]},[a[10705],a[10706],a[10707],a[10708],a[10709],a[10710],a[10710],a[10708],a[10711],a[10712],a[10713],a[10714]],[a[10715],a[10716],a[10717],a[10718],a[10719],a[10720],a[10721],a[10722],a[10723],a[10724],a[10725],a[10726]],[a[10727],a[10728],a[10717],a[10718],a[10719],a[10720],a[10721],a[10729],a[10730],a[10731],a[10732],a[10733]],[a[10734],a[10735],a[10708],a[10736],a[10737],a[10738],a[10739]],[a[10740],a[10741],a[10742],a[10743],a[10744],a[10745],a[10746]],[a[10740],a[10741],a[10747],a[10743],a[10748],a[10749],a[10750]],{"am":a[10751],"pm":a[10752]},[a[10753],a[10754],a[10755],a[10756]],[a[10757],a[10758],a[10759],a[10760]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"LKR":a[10761],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[10762],"XPF":a[534]},{"d":a[3011],"E":a[18],"Ed":a[3012],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[3013],"GyMMMd":a[3014],"GyMMMEd":a[10763],"GyMMMMd":a[3014],"h":a[28],"H":a[481],"hm":a[30],"Hm":a[1231],"hms":a[32],"Hms":a[1230],"hmsv":a[34],"Hmsv":a[3018],"hmv":a[36],"Hmv":a[3019],"M":a[5325],"Md":a[3020],"MEd":a[3021],"MMM":a[41],"MMMd":a[3020],"MMMEd":a[3021],"MMMMd":a[2394],"MMMMEd":a[3022],"mmss":a[45],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[3023],"yMEd":a[3024],"yMMM":a[47],"yMMMd":a[3023],"yMMMEd":a[3024],"yMMMM":a[1840],"yMMMMd":a[3025],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[3226],"yMMMMd":a[3025],"yMMMd":a[3023],"yMd":a[1841]},[a[2411],a[1349],a[1350],a[1700],a[10764],a[10765],a[10766],a[2415],a[2416],a[1704],a[2417],a[2418]],[a[10767],a[10768],a[9722],a[10769],a[10770],a[10771],a[10772],a[10773],a[3313],a[10774],a[10775],a[3316]],[a[620],a[3317],a[653],a[623],a[5608],a[3317],a[623]],[a[3053],a[3054],a[10776],a[3056],a[8170],a[10777],a[3059]],[a[10778],a[10779],a[10780],a[10781],a[10782],a[10783],a[3066]],[a[10784],a[8180],a[10785],a[3072]],[a[10786],a[10787],a[10788],a[10789]],{"EUR":a[519],"ILS":a[10790],"MXN":a[526],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[3011],"E":a[18],"Ed":a[2455],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyM":a[25],"GyMMM":a[25],"GyMMMd":a[3126],"GyMMMEd":a[3219],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[3020],"MEd":a[10791],"MMM":a[41],"MMMd":a[3132],"MMMEd":a[3224],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[3023],"yMEd":a[10792],"yMMM":a[50],"yMMMd":a[3134],"yMMMEd":a[3225],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[10793],"yMMMMd":a[10794],"yMMMd":a[3134],"yMd":a[10795]},[a[3137],a[3138],a[3139],a[3140],a[2412],a[3141],a[2842],a[10796],a[3143],a[3144],a[2846],a[3145]],[a[2419],a[2420],a[10797],a[2421],a[2412],a[10798],a[10799],a[10800],a[3147],a[3148],a[3149],a[3150]],[a[620],a[3317],a[622],a[623],a[10801],a[3317],a[623]],[a[10802],a[9732],a[3155],a[10803],a[10804],a[10805],a[9737]],[a[10806],a[10807],a[10808],a[10809],a[10810],a[10811],a[3066]],{"am":a[3067],"pm":a[10812]},[a[5366],a[10813],a[10814],a[10815]],[a[10816],a[10817],a[10818],a[10813]],{"AUD":a[515],"BRL":a[516],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[1347],a[574],a[63],a[707],a[92],a[574],a[38]],[a[10819],a[10820],a[3739],a[10821],a[10822],a[10823],a[10824]],[a[10825],a[10826],a[10827],a[10828],a[10829],a[10830],a[10831]],{"decimal":a[508],"group":a[509],"nan":a[10832],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},[a[67],a[707],a[707],a[707],a[3116],a[3116],a[3116],a[67],a[2293],a[2293],a[63],a[2072]],[a[10833],a[10834],a[9451],a[10835],a[10836],a[10837],a[10838],a[6563],a[10839],a[10840],a[10841],a[10842]],[a[10843],a[10844],a[10845],a[10846],a[10847],a[10848],a[10849],a[10850],a[10851],a[10852],a[10853],a[10854]],[a[65],a[63],a[3116],a[3116],a[3116],a[3116],a[63]],[a[10855],a[10856],a[10857],a[10858],a[10859],a[10860],a[3490]],[a[10861],a[10862],a[10555],a[10556],a[10863],a[10558],a[10864]],[a[10865],a[10866],a[189],a[190]],{"yMMMMEEEEd":a[10867],"yMMMMd":a[552],"yMMMd":a[3683],"yMd":a[3080]},[a[10868],a[10869],a[3108],a[10870],a[10552],a[10871],a[10872],a[10873],a[10874],a[10433],a[10875],a[10876]],[a[10877],a[10878],a[10879],a[10880],a[10881],a[10882],a[10883],a[10884],a[10885],a[10886],a[10887],a[10888]],[a[64],a[1313],a[92],a[64],a[707],a[61],a[65]],[a[10889],a[8941],a[3408],a[10890],a[8942],a[3203],a[1924]],[a[10891],a[10892],a[10893],a[10894],a[10895],a[10896],a[10897]],{"am":a[10898],"pm":a[10899]},[a[10900],a[10901],a[189],a[190]],[a[10902],a[10903],a[189],a[190]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"SOS":a[65],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"DJF":a[1219],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"SOS":a[65],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"ETB":a[9521],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"SOS":a[65],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KES":a[3217],"KRW":a[525],"MXN":a[526],"NZD":a[527],"SOS":a[65],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[1959],"Ehm":a[1960],"EHm":a[1961],"Ehms":a[1962],"EHms":a[3078],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[10905],"Hmsv":a[10906],"hmv":a[10907],"Hmv":a[10908],"M":a[38],"Md":a[1832],"MEd":a[1833],"MMdd":a[1832],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"MMMMEd":a[1834],"ms":a[45],"y":a[46],"yM":a[1836],"yMd":a[1837],"yMEd":a[1838],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[53],"yQQQ":a[6453],"yQQQQ":a[6454]},{"yMMMMEEEEd":a[1298],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[1841]},{"hmmsszzzz":a[10909],"hmsz":a[10910],"hms":a[32],"hm":a[30]},[a[61],a[65],a[63],a[1347],a[63],a[3831],a[707],a[2293],a[65],a[92],a[67],a[68]],[a[69],a[10911],a[71],a[10912],a[10913],a[10914],a[9446],a[10915],a[10916],a[10917],a[10918],a[10919]],[a[10920],a[10921],a[4257],a[10922],a[2412],a[10923],a[10924],a[10925],a[10926],a[10927],a[10928],a[10929]],[a[68],a[481],a[63],a[63],a[1900],a[1347],a[65]],[a[10930],a[10931],a[71],a[10932],a[10933],a[10934],a[10916]],[a[10935],a[10936],a[10937],a[10938],a[10939],a[10940],a[10941]],{"am":a[10942],"pm":a[10943]},[a[10944],a[10945],a[10946],a[10947]],[a[10948],a[10949],a[10950],a[10951]],{"ALL":a[10952],"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"ALL":a[10952],"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MKD":a[10953],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[1900],"Ed":a[3012],"Ehm":a[10954],"EHm":a[10955],"Ehms":a[10956],"EHms":a[10957],"Gy":a[2383],"GyMMM":a[2384],"GyMMMd":a[5323],"GyMMMEd":a[5324],"h":a[28],"H":a[29],"hm":a[1824],"Hm":a[1825],"hms":a[1826],"Hms":a[1827],"hmsv":a[3130],"Hmsv":a[1829],"hmv":a[3131],"Hmv":a[1831],"M":a[38],"Md":a[608],"MEd":a[3222],"MMdd":a[1252],"MMM":a[41],"MMMd":a[3132],"MMMdd":a[10958],"MMMEd":a[3133],"MMMMd":a[2394],"MMMMEd":a[2395],"ms":a[1835],"y":a[2396],"yM":a[10959],"yMd":a[8463],"yMEd":a[8464],"yMM":a[2397],"yMMdd":a[2398],"yMMM":a[2401],"yMMMd":a[5327],"yMMMEd":a[5328],"yMMMM":a[10960],"yQQQ":a[10961],"yQQQQ":a[10962]},[a[2466],a[2467],a[1750],a[2004],a[2461],a[2462],a[2463],a[1755],a[2470],a[2471],a[2472],a[2473]],[a[2475],a[2476],a[2477],a[10963],a[2479],a[2480],a[2481]],[a[2482],a[2483],a[2484],a[8740],a[2486],a[2487],a[1890]],{"am":a[2489],"pm":a[10964]},[a[10965],a[10966],a[2519],a[2520]],{"BAM":a[2812],"BGN":a[10967],"BRL":a[516],"BYR":a[10968],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"MXN":a[526],"TWD":a[528],"USD":a[602],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[2411],a[1349],a[1350],a[1700],a[2412],a[2413],a[2414],a[10969],a[2416],a[1704],a[2417],a[2418]],[a[2419],a[2420],a[1709],a[2421],a[2412],a[2413],a[2414],a[10800],a[2425],a[2426],a[2427],a[2428]],[a[620],a[3317],a[653],a[623],a[10801],a[3317],a[623]],[a[2430],a[2431],a[2432],a[10970],a[2434],a[2435],a[2436]],[a[10806],a[10971],a[2439],a[10809],a[2441],a[2442],a[2443]],{"am":a[10972],"pm":a[10973]},[a[10974],a[149],a[150],a[151],a[152],a[10975],a[154],a[10976],a[10977],a[157],a[158],a[159],a[4488]],[a[163],a[164],a[165],a[166],a[167],a[10978],a[169],a[170],a[171],a[172],a[173],a[10979],a[175]],[a[2446],a[2447],a[189],a[190]],[a[10980],a[10981],a[2446],a[2447]],[a[10982],a[10983],a[199],a[200],a[10984],a[202],a[203],a[204],a[4512],a[206],a[207],a[208],a[209],a[210]],[a[10985],a[10986],a[10987],a[10988],a[215],a[10989],a[217],a[218],a[10990],a[10991],a[10992],a[10993]],[a[10994],a[237],a[238],a[239],a[240],a[241],a[10995],a[10996],a[244],a[10997],a[10998],a[10999]],[a[249],a[8186],a[8187],a[8188],a[8189],a[254],a[8190],a[256],a[8191],a[258],a[8192],a[11000],a[11001],a[11002],a[11003],a[11004],a[8198],a[11005],a[8200],a[8201],a[8202],a[8203],a[8204],a[8205],a[273],a[5829],a[8206],a[8207],a[5831],a[8208],a[8209],a[8210],a[11006],a[8211],a[8212],a[8213],a[8214],a[286],a[8215],a[8216],a[8217],a[290],a[5834],a[8219],a[293],a[294],a[8220],a[5835],a[297],a[8222],a[8223],a[8224],a[8225],a[8226],a[8227],a[11007],a[305],a[8230],a[8231],a[8232],a[309],a[8233],a[11008],a[8234],a[11009],a[8236],a[8237],a[8238],a[11010],a[8240],a[11011],a[5837],a[8242],a[8243],a[8244],a[11012],a[8246],a[8247],a[327],a[8249],a[11013],a[5840],a[11014],a[11015],a[8253],a[11016],a[5841],a[11017],a[11018],a[8257],a[8258],a[340],a[8259],a[5843],a[11019],a[8261],a[8262],a[8263],a[347],a[5844],a[8265],a[8266],a[351],a[11020],a[8268],a[11021],a[8270],a[11022],a[8272],a[11023],a[8274],a[8275],a[5846],a[8277],a[8278],a[8279],a[8280],a[11024],a[11025],a[368],a[369],a[370],a[11026],a[5849],a[8284],a[374],a[8285],a[11027],a[377],a[378],a[11028],a[8289],a[8290],a[8291],a[8292],a[11029],a[8294],a[5851],a[11030],a[8297],a[8298],a[390],a[8299],a[392],a[393],a[11031],a[5852],a[8301],a[8302],a[8303],a[11032],a[11033],a[8306],a[5854],a[403],a[8307],a[8308],a[406],a[8309],a[8310],a[409],a[11034],a[411],a[8313],a[8314],a[8315],a[415],a[416],a[8316],a[418],a[8317],a[8318],a[8319],a[422],a[5856],a[8321],a[8322],a[8323],a[8324],a[8325],a[8326],a[8327],a[431],a[8328],a[433],a[8329],a[435],a[8330],a[437],a[8331],a[5857],a[11035],a[441],a[442],a[8333],a[444],a[8334],a[8335],a[5859],a[8337],a[449],a[8338],a[8339],a[452],a[453],a[8341],a[8342],a[11036],a[457],a[8344],a[8345],a[8346],a[461],a[8347],a[8348],a[5863],a[8350],a[8351],a[5865],a[468],a[469],a[8353],a[471],a[472],a[8354],a[8355],a[475],a[476],a[5866],a[8357],a[11037],a[8359],a[11038],a[8361],a[8362],a[11039]],[a[11040],a[11041],a[11042],a[489],a[490],a[11043],a[492],a[493],a[494],a[11044],a[496],a[497]],[a[11045],a[11046]],{"BAM":a[1330],"BGN":a[10967],"BRL":a[516],"BYR":a[10968],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"MXN":a[526],"TWD":a[528],"USD":a[602],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[2258],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[609],"MMd":a[608],"MMdd":a[2069],"MMM":a[41],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[811],"MMMMEd":a[545],"ms":a[45],"y":a[46],"yM":a[1255],"yMd":a[547],"yMEd":a[3685],"yMM":a[1255],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[613],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[615],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[547]},[a[3137],a[3138],a[4257],a[3140],a[2412],a[2422],a[2423],a[3142],a[3143],a[3144],a[2846],a[3145]],[a[6814],a[6815],a[4257],a[2421],a[2412],a[2422],a[2423],a[11047],a[3147],a[3148],a[3149],a[3150]],[a[11048],a[11049],a[11050],a[11051],a[11052],a[11053],a[11054]],[a[11055],a[9401],a[11056],a[3161],a[3162],a[3163],a[11057]],{"am":a[11058],"pm":a[11059]},[a[9139],a[11060],a[11061],a[9142],a[11062],a[11063],a[11064],a[11065],a[9147],a[11066],a[11067],a[11068],a[11069]],[a[11070],a[11071],a[9160],a[11072],a[1405],a[11073],a[11074],a[11075],a[11076],a[11077],a[11078],a[11079],a[11080]],[a[3169],a[3170],a[3167],a[3168]],[a[11081],a[11082],a[11083],a[11084]],[a[11085],a[11086],a[11087],a[11088],a[11089],a[11090],a[11091],a[11092],a[11093],a[11094],a[11095],a[11096],a[11097],a[11098]],[a[9191],a[11099],a[11100],a[11101],a[11102],a[11103],a[11104],a[11105],a[11106],a[11107],a[11108],a[11109]],[a[11110]],[a[4208],a[4209],a[4210],a[4211],a[11111],a[11112],a[4368],a[11113],a[4216],a[9218],a[11114],a[11115]],[a[249],a[250],a[251],a[252],a[253],a[254],a[255],a[256],a[257],a[258],a[5824],a[11116],a[11117],a[11118],a[11119],a[11120],a[265],a[11121],a[267],a[268],a[269],a[270],a[271],a[272],a[273],a[5829],a[5830],a[276],a[5831],a[278],a[5832],a[280],a[281],a[282],a[5833],a[284],a[285],a[286],a[287],a[288],a[289],a[290],a[8218],a[292],a[293],a[294],a[295],a[8221],a[297],a[298],a[299],a[300],a[301],a[302],a[303],a[304],a[305],a[306],a[307],a[308],a[309],a[310],a[311],a[312],a[313],a[314],a[315],a[316],a[5836],a[318],a[319],a[5837],a[321],a[5838],a[323],a[324],a[325],a[326],a[8248],a[328],a[8250],a[5840],a[331],a[332],a[333],a[334],a[5841],a[336],a[337],a[5842],a[339],a[340],a[341],a[5843],a[343],a[344],a[345],a[346],a[347],a[8264],a[349],a[350],a[351],a[352],a[353],a[354],a[5845],a[356],a[357],a[358],a[359],a[360],a[8276],a[5847],a[363],a[364],a[5848],a[366],a[367],a[368],a[369],a[370],a[371],a[5849],a[373],a[374],a[375],a[11122],a[377],a[378],a[379],a[380],a[381],a[382],a[383],a[11123],a[385],a[8295],a[387],a[388],a[389],a[390],a[391],a[392],a[393],a[394],a[5852],a[396],a[397],a[398],a[399],a[5853],a[401],a[5854],a[403],a[404],a[5855],a[406],a[407],a[408],a[409],a[410],a[411],a[412],a[413],a[414],a[415],a[416],a[417],a[418],a[419],a[420],a[421],a[422],a[8320],a[424],a[425],a[426],a[427],a[428],a[429],a[430],a[431],a[432],a[433],a[434],a[435],a[436],a[437],a[438],a[5857],a[440],a[441],a[442],a[443],a[444],a[445],a[5858],a[8336],a[448],a[449],a[5860],a[5861],a[452],a[453],a[454],a[5862],a[456],a[457],a[458],a[459],a[460],a[461],a[462],a[463],a[8349],a[5864],a[466],a[8352],a[468],a[469],a[470],a[471],a[472],a[473],a[474],a[475],a[476],a[8356],a[478],a[479],a[480],a[482],a[483],a[484],a[485]],[a[9221],a[9222],a[11124],a[9224],a[11125],a[9226],a[9227],a[11126],a[11127],a[9230],a[9231],a[9232]],[a[11128],a[11129]],{"BBD":a[11130],"BMD":a[11131],"BRL":a[11132],"BSD":a[11133],"BZD":a[11134],"CAD":a[517],"DKK":a[10535],"DOP":a[3830],"EEK":a[11135],"EGP":a[11136],"EUR":a[519],"ILS":a[522],"ISK":a[11137],"JMD":a[11138],"MXN":a[526],"NOK":a[10537],"SEK":a[3707],"USD":a[602],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"yMMMMEEEEd":a[615],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[3818]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[27],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[542],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"MMMMEd":a[1834],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[1341],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[52],"yMMMM":a[53],"yQQQ":a[1259],"yQQQQ":a[55]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KES":a[3217],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"TZS":a[1336],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[27],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[609],"MMM":a[41],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[811],"MMMMEd":a[1834],"ms":a[610],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[612],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[613],"yMMMM":a[53],"yQQQ":a[1259],"yQQQQ":a[55]},[a[11139],a[11140],a[11141],a[7710],a[7711],a[7709],a[11142],a[11143],a[11144],a[11145],a[11146],a[11147]],[a[11148],a[11149],a[11150],a[11151],a[11152],a[11153],a[11154],a[11155],a[11156],a[11157],a[11158],a[11159]],[a[11160],a[3369],a[11161],a[11162],a[11163],a[11164],a[11165]],[a[11166],a[11167],a[11168],a[11169],a[11170],a[11171],a[11172]],{"am":a[11173],"pm":a[11174]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CDF":a[4410],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KES":a[3217],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"TZS":a[1336],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KES":a[3217],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"TZS":a[1336],"UGX":a[2952],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[19],"Ehm":a[11176],"EHm":a[21],"Ehms":a[11177],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[5632],"H":a[29],"hm":a[5633],"Hm":a[31],"hms":a[5634],"Hms":a[33],"hmsv":a[6724],"Hmsv":a[35],"hmv":a[6725],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[1253],"MMdd":a[541],"MMM":a[41],"MMMd":a[42],"MMMEd":a[1254],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[1341],"yMM":a[546],"yMMM":a[50],"yMMMd":a[617],"yMMMEd":a[2116],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"hmmsszzzz":a[11178],"hmsz":a[11179],"hms":a[5634],"hm":a[5633]},[a[11180],a[11181],a[11182],a[11183],a[11184],a[11185],a[11185],a[11186],a[11187],a[11188],a[11189],a[11190]],[a[11191],a[11192],a[11193],a[11194],a[11184],a[11195],a[11196],a[11197],a[11198],a[11199],a[11200],a[11201]],[a[11202],a[11203],a[11204],a[11205],a[11184],a[11195],a[11196],a[11206],a[11207],a[11208],a[11209],a[11210]],[a[11211],a[11212],a[11187],a[11213],a[11214],a[11215],a[11216]],[a[11217],a[11218],a[11219],a[11220],a[11221],a[11222],a[11223]],[a[11224],a[11225],a[11226],a[11227],a[11228],a[11229],a[11223]],{"am":a[11230],"pm":a[11231]},[a[11232],a[11233],a[11234],a[11235],a[11236],a[11237],a[11238],a[11239],a[11240],a[11241],a[11242],a[11243]],[a[11244],a[11245],a[11246],a[11247],a[11248],a[11249],a[11250],a[11251],a[11252],a[11253],a[11254],a[11255]],[a[11256],a[11257],a[11258],a[11259]],[a[11260],a[11261],a[11258],a[11259]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"LKR":a[11262],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"MXN":a[526],"MYR":a[3699],"NZD":a[527],"SGD":a[11263],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"MXN":a[526],"MYR":a[3699],"NZD":a[527],"SGD":a[529],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[11264],"GyMMMEd":a[11265],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[542],"MMdd":a[541],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[1341],"yMM":a[546],"yMMM":a[50],"yMMMd":a[11266],"yMMMEd":a[8911],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[11267],"yMMMMd":a[1747],"yMMMd":a[617],"yMd":a[3820]},[a[11268],a[11269],a[11270],a[11271],a[11272],a[11273],a[11274],a[11275],a[11276],a[11277],a[11278],a[11279]],[a[11280],a[11281],a[11282],a[11283],a[11272],a[11284],a[11285],a[11286],a[11287],a[11288],a[11289],a[11290]],[a[11291],a[11292],a[11282],a[11293],a[11272],a[11284],a[11285],a[11294],a[11295],a[11296],a[11297],a[11298]],[a[11275],a[11299],a[11300],a[11301],a[11302],a[11303],a[11304]],[a[11305],a[11306],a[11307],a[11308],a[11309],a[11310],a[11311]],[a[11312],a[11313],a[11314],a[11315],a[11316],a[11317],a[11318]],{"am":a[11319],"pm":a[11320]},[a[11321],a[11322],a[11323],a[11324]],[a[11325],a[11326],a[11327],a[11328]],[a[603],a[63],a[707],a[68],a[63],a[63],a[61],a[1347],a[65],a[92],a[38],a[1347]],[a[8660],a[11329],a[8658],a[11330],a[71],a[11331],a[8631],a[11332],a[11333],a[11334],a[10869],a[11335]],[a[11336],a[11337],a[11338],a[11339],a[11340],a[11341],a[11342],a[11343],a[11344],a[11345],a[11346],a[11347]],[a[61],a[188],a[64],a[2073],a[2073],a[707],a[65]],[a[3202],a[11348],a[11349],a[11350],a[11351],a[3181],a[1924]],[a[11352],a[11353],a[11354],a[11355],a[11356],a[11357],a[11358]],{"am":a[11359],"pm":a[11360]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KES":a[3217],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"UGX":a[2952],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[536],"Ehm":a[20],"EHm":a[11361],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[4987],"GyMMMd":a[11362],"GyMMMEd":a[11363],"GyMMMEEEEd":a[11364],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[11365],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[609],"MMM":a[41],"MMMd":a[543],"MMMEd":a[544],"MMMEEEEd":a[11366],"MMMMd":a[811],"MMMMEd":a[545],"MMMMEEEEd":a[11367],"mmss":a[45],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[612],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[613],"yMMMEEEEd":a[11368],"yMMMM":a[11369],"yMMMMd":a[11370],"yMMMMEd":a[11371],"yMMMMEEEEd":a[11372],"yQQQ":a[54],"yQQQQ":a[11373]},{"yMMMMEEEEd":a[11372],"yMMMMd":a[11370],"yMMMd":a[549],"yMd":a[1345]},{"hmmsszzzz":a[11374],"hmsz":a[11375],"hms":a[33],"hm":a[31]},[a[11376],a[11377],a[11378],a[11379],a[11380],a[11381],a[11382],a[11383],a[11384],a[11385],a[11386],a[11387]],[a[11388],a[11389],a[11390],a[11391],a[11392],a[11393],a[11394],a[11395],a[11396],a[11397],a[11398],a[11399]],[a[11400],a[11401],a[11402],a[11403],a[11404],a[11405],a[11406]],[a[11407],a[11408],a[11409],a[11410],a[11411],a[11412],a[11413]],[a[11414],a[11415],a[11416],a[11417],a[11418],a[11419],a[11420]],[a[11421]],[a[11422]],{"am":a[11423],"pm":a[11424]},[a[11425],a[11426],a[11427],a[11428],a[11429],a[11430],a[11431],a[11432],a[11433],a[11434],a[11435],a[11436],a[11437]],[a[11438],a[11439],a[11440],a[11441],a[11442],a[11443],a[11444],a[11445],a[11446],a[11447],a[11448],a[11449],a[11450]],[a[11451],a[11452],a[11453],a[11454]],[a[11455],a[11452],a[11453],a[11454]],[a[11456],a[11457],a[11458],a[11459]],[a[11460],a[11461],a[11462],a[11463],a[11464],a[11465],a[11466],a[11467],a[11468],a[11469],a[11470],a[11471],a[11472],a[11473]],[a[11474]],[a[11475],a[11476],a[11477],a[11478],a[11479],a[11480],a[11481],a[11482],a[11483],a[11484],a[11485],a[11486]],[a[11487]],[a[11488],a[11489],a[11490],a[11491],a[11492],a[11493],a[11494],a[11495],a[11496],a[11497],a[11498],a[11499]],[a[11500],a[11501],a[11490],a[11491],a[11492],a[11493],a[11502],a[11503],a[11504],a[11505],a[11506],a[11507]],[a[11508]],[a[11509]],[a[11510],a[11511],a[11512],a[11513],a[11514],a[11515],a[11516],a[11517],a[11518],a[11519],a[11520],a[11521],a[11522],a[11523],a[11524],a[11525],a[11526],a[11527],a[11528],a[11529],a[11530],a[11531],a[11532],a[11533],a[11534],a[11535],a[11536],a[11537],a[11538],a[11539],a[11540],a[11541],a[11542],a[11543],a[11544],a[11545],a[11546],a[11547],a[11548],a[11549],a[11550],a[11551],a[11552],a[11553],a[11554],a[11555],a[11556],a[11557],a[11558],a[11559],a[11560],a[11561],a[11562],a[11563],a[11564],a[11565],a[11566],a[11567],a[11568],a[11569],a[11570],a[11571],a[11572],a[11573],a[11574],a[11575],a[11576],a[11577],a[11578],a[11579],a[11580],a[11581],a[11582],a[11583],a[11584],a[11585],a[11586],a[11587],a[11588],a[11589],a[11590],a[11591],a[11592],a[11593],a[11594],a[11595],a[11596],a[11597],a[11598],a[11599],a[11600],a[11601],a[11602],a[11603],a[11604],a[11605],a[11606],a[11607],a[11608],a[11609],a[11610],a[11611],a[11612],a[11613],a[11614],a[11615],a[11616],a[11617],a[11618],a[11619],a[11620],a[11621],a[11622],a[11623],a[11624],a[11625],a[11626],a[11627],a[11628],a[11629],a[11630],a[11631],a[11632],a[11633],a[11634],a[11635],a[11636],a[11637],a[11638],a[11639],a[11640],a[11641],a[11642],a[11643],a[11644],a[11645],a[11646],a[11647],a[11648],a[11649],a[11650],a[11651],a[11652],a[11653],a[11654],a[11655],a[11656],a[11657],a[11658],a[11659],a[11660],a[11661],a[11662],a[11663],a[11664],a[11665],a[11666],a[11667],a[11668],a[11669],a[11670],a[11671],a[11672],a[11673],a[11674],a[11675],a[11676],a[11677],a[11678],a[11679],a[11680],a[11681],a[11682],a[11683],a[11684],a[11685],a[11686],a[11687],a[11688],a[11689],a[11690],a[11691],a[11692],a[11693],a[11694],a[11695],a[11696],a[11697],a[11698],a[11699],a[11700],a[11701],a[11702],a[11703],a[11704],a[11705],a[11706],a[11707],a[11708],a[11709],a[11710],a[11711],a[11712],a[11713],a[11714],a[11715],a[11716],a[11717],a[11718],a[11719],a[11720],a[11721],a[11722],a[11723],a[11724],a[11725],a[11726],a[11727],a[11728],a[11729],a[11730],a[11731],a[11732],a[11733],a[11734],a[11735],a[11736],a[11737],a[11738],a[11739],a[11740],a[11741],a[11742],a[11743],a[11744],a[11745]],[a[11746],a[11747],a[11748],a[11749],a[11750],a[11751],a[11752],a[11753],a[11754],a[11755],a[11756],a[11757]],[a[11758]],[a[11759],a[11760]],{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"yMMMMEEEEd":a[11761],"yMMMMd":a[552],"yMMMd":a[3683],"yMd":a[3080]},[a[749],a[750],a[751],a[11762],a[753],a[754],a[755],a[756],a[757],a[11763],a[759],a[760]],[a[761],a[762],a[751],a[11764],a[753],a[754],a[755],a[764],a[765],a[11765],a[767],a[768]],[a[770],a[770],a[11766],a[771],a[11767],a[773],a[11768]],[a[11769],a[11770],a[11771],a[778],a[11772],a[11773],a[11774]],{"am":a[11775],"pm":a[11776]},{"yMMMMEEEEd":a[11777],"yMMMMd":a[552],"yMMMd":a[3683],"yMd":a[3080]},[a[11778],a[11779],a[11780],a[11781],a[11782],a[11783],a[11784],a[11785],a[11786],a[11787],a[11788],a[11789]],[a[11778],a[11790],a[791],a[792],a[793],a[11783],a[11784],a[11785],a[785],a[11791],a[11788],a[11792]],[a[11769],a[11770],a[11793],a[778],a[11794],a[11773],a[11774]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"ERN":a[1227],"ETB":a[9521],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"yMMMMEEEEd":a[11795],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[1693]},[a[11796],a[68],a[65],a[11797],a[1347],a[64],a[11798]],{"decimal":a[509],"group":a[599],"nan":a[11799],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[19],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[1338],"GyMMMEd":a[2258],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[609],"MMM":a[41],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[811],"MMMMEd":a[545],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[612],"yMM":a[546],"yMMM":a[50],"yMMMd":a[549],"yMMMEd":a[613],"yMMMM":a[53],"yQQQ":a[1259],"yQQQQ":a[1260]},[a[65],a[62],a[63],a[1900],a[63],a[65],a[65],a[64],a[65],a[66],a[67],a[92]],[a[11800],a[11801],a[11802],a[11803],a[11804],a[94],a[11805],a[11806],a[77],a[11807],a[11808],a[11809]],[a[11810],a[11811],a[11812],a[11813],a[11804],a[11814],a[11815],a[11816],a[11817],a[11818],a[11819],a[11820]],[a[65],a[63],a[92],a[1347],a[92],a[62],a[92]],[a[11821],a[11822],a[11823],a[11824],a[11825],a[11826],a[11827]],[a[11828],a[11829],a[11830],a[11831],a[11832],a[11833],a[11834]],[a[1330],a[11835],a[189],a[190]],[a[11836],a[11837],a[1330],a[11835]],{"decimal":a[508],"group":a[509],"nan":a[11838],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},{"AUD":a[11839],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[11840],"TOP":a[3710],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[19],"Ehm":a[11176],"EHm":a[21],"Ehms":a[11177],"EHms":a[23],"Gy":a[604],"GyMMM":a[1686],"GyMMMd":a[11841],"GyMMMEd":a[11842],"h":a[5632],"H":a[29],"hm":a[5633],"Hm":a[31],"hms":a[5634],"Hms":a[33],"hmsv":a[6724],"Hmsv":a[35],"hmv":a[6725],"Hmv":a[37],"M":a[38],"Md":a[2069],"MEd":a[11843],"MMM":a[41],"MMMd":a[543],"MMMEd":a[11844],"MMMMd":a[9482],"MMMMEd":a[11845],"mmss":a[45],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[1693],"yMEd":a[11846],"yMM":a[1692],"yMMM":a[50],"yMMMd":a[553],"yMMMEd":a[11847],"yMMMM":a[53],"yQQQ":a[6026],"yQQQQ":a[11848]},{"yMMMMEEEEd":a[11795],"yMMMMd":a[616],"yMMMd":a[549],"yMd":a[9709]},[a[66],a[11798],a[63],a[67],a[63],a[481],a[92],a[64],a[1900],a[1900],a[707],a[64]],[a[11849],a[11850],a[71],a[11851],a[73],a[11852],a[11853],a[11854],a[11855],a[11856],a[3182],a[3409]],[a[11857],a[11858],a[11859],a[204],a[11860],a[11861],a[11862],a[11863],a[11864],a[11865],a[11866],a[11867]],[a[1347],a[1347],a[65],a[11797],a[1347],a[3116],a[3116]],[a[11868],a[11869],a[11870],a[11871],a[11872],a[11873],a[4757]],[a[11874],a[11875],a[11876],a[11877],a[11878],a[11879],a[11880]],{"am":a[11881],"pm":a[11882]},[a[11883],a[11884],a[4481],a[11885],a[11886],a[11887],a[11888],a[11889],a[11890],a[11891],a[11892],a[11893],a[11894]],[a[163],a[11895],a[11896],a[166],a[489],a[11897],a[11898],a[4494],a[11899],a[172],a[173],a[11900],a[11901]],[a[11902],a[11903],a[11904],a[11905]],[a[11906],a[11907],a[11908],a[11909]],[a[11910],a[11911],a[199],a[200],a[11912],a[11913],a[203],a[204],a[11914],a[206],a[207],a[208],a[209],a[210]],[a[11915],a[11916],a[11917],a[11918],a[11919],a[11920],a[11921],a[11922],a[11923],a[11924],a[11925],a[11926]],[a[11927]],[a[11928],a[11929],a[11930],a[489],a[490],a[11931],a[492],a[493],a[11932],a[495],a[11933],a[11934]],{"positivePattern":a[11935],"negativePattern":a[11936]},{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TRY":a[11937],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[708],a[708],a[63],a[1313],a[63],a[708],a[708],a[6515],a[3116],a[707],a[67],a[68]],[a[6516],a[6519],a[71],a[11938],a[73],a[4811],a[4812],a[6520],a[11939],a[11940],a[11941],a[11942]],[a[6525],a[11943],a[3397],a[11944],a[6529],a[6530],a[11945],a[6532],a[11946],a[11947],a[11948],a[11949]],[a[64],a[64],a[64],a[64],a[64],a[64],a[64]],[a[11950],a[11951],a[11952],a[11953],a[11954],a[11955],a[11956]],[a[11957],a[11958],a[11959],a[11960],a[11961],a[11962],a[11963]],{"am":a[11964],"pm":a[11965]},[a[11966],a[11967],a[189],a[190]],[a[11968],a[11969],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[19],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[11971],"GyMMMEd":a[11972],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[39],"MEd":a[11973],"MMM":a[41],"MMMd":a[42],"MMMEd":a[11974],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[48],"yMEd":a[11975],"yMMM":a[50],"yMMMd":a[11976],"yMMMEd":a[11977],"yMMMM":a[614],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[11978],"yMMMMd":a[11979],"yMMMd":a[11976],"yMd":a[58]},[a[11980],a[11981],a[11982],a[11983],a[1223],a[11984],a[11985],a[11986],a[11987],a[11988],a[11989],a[11990]],[a[11980],a[11981],a[11982],a[11983],a[1223],a[11984],a[11985],a[11986],a[11987],a[11988],a[11991],a[11990]],[a[822],a[833],a[830],a[4016],a[4017],a[850],a[1232]],[a[11992],a[11993],a[11994],a[11995],a[11996],a[11997],a[11998]],[a[11999],a[12000],a[12001],a[12002],a[12003],a[12004],a[12005]],[a[12006]],{"am":a[12007],"pm":a[12008]},[a[189],a[12009],a[189],a[190]],[a[12010],a[12009],a[189],a[190]],[a[12011],a[12012],a[12013],a[12014],a[12015],a[12016],a[12017],a[12018],a[12019],a[12020],a[12021],a[12022]],[a[12023]],[a[499],a[12024]],[a[12025],a[12024]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[6402],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[1959],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[1822],"GyMMMd":a[1338],"GyMMMEd":a[1339],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[3655],"Md":a[1689],"MEd":a[1741],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"MMMMEd":a[1834],"ms":a[45],"y":a[46],"yM":a[1692],"yMd":a[1693],"yMEd":a[1743],"yMMM":a[1839],"yMMMd":a[549],"yMMMEd":a[550],"yMMMM":a[1840],"yQQQ":a[54],"yQQQQ":a[12027]},{"yMMMMEEEEd":a[12028],"yMMMMd":a[12029],"yMMMd":a[12030],"yMd":a[1697]},[a[6738],a[12031],a[6768],a[9583],a[6741],a[10406],a[12031],a[6738],a[12032],a[6742],a[12031],a[12033]],[a[12034],a[12035],a[12036],a[12037],a[12038],a[12039],a[12040],a[12041],a[12042],a[12043],a[12044],a[12045]],[a[12046],a[12047],a[12048],a[12049],a[12050],a[12051],a[12052],a[12053],a[12054],a[12055],a[12056],a[12057]],[a[6737],a[12058],a[12032],a[6738],a[10406],a[12058],a[6738]],[a[12059],a[12060],a[12061],a[6772],a[12062],a[12063],a[6775]],[a[12064],a[12065],a[12066],a[12067],a[12068],a[12069],a[1890]],{"am":a[12070],"pm":a[12071]},[a[10056],a[12072],a[10058],a[12073],a[12074],a[2496],a[2497],a[10061],a[10062],a[10063],a[12075],a[10065],a[12076]],[a[2261],a[2262],a[2263],a[2264],a[2265],a[2266],a[2267],a[2268],a[2269],a[120],a[121],a[122],a[147]],[a[12077],a[12078],a[12079],a[12080],a[12081],a[12082],a[12083],a[12084],a[12085],a[7548],a[12086],a[12087],a[12088]],[a[12089],a[12090],a[12091],a[12092],a[12093],a[12094],a[12095],a[12096],a[12097],a[12098],a[12099],a[12100],a[12101]],[a[12102],a[2518],a[189],a[190]],[a[12103],a[2520],a[189],a[190]],[a[12104],a[12105],a[12106],a[12107]],[a[12108],a[12109],a[12110],a[12111],a[2527],a[2528],a[2529],a[12112],a[12113],a[2532],a[10082],a[12114],a[2535],a[2536]],[a[12115],a[12116],a[12117],a[12118],a[12119],a[12120],a[12121],a[12122],a[12123],a[12124],a[12125],a[12126]],[a[2042],a[2043],a[12127],a[2045],a[12128],a[12129],a[12130],a[12131],a[12132],a[12133],a[2052],a[12134]],[a[10093],a[2551],a[12135],a[12136],a[12137],a[12138],a[10098],a[10099],a[2558],a[12139],a[12140],a[12141]],[a[12142],a[12143],a[10340],a[12144],a[2802],a[12145],a[2804],a[2805],a[10342],a[10343],a[2808],a[2809]],{"JPY":a[524],"UAH":a[10347],"UAK":a[12146],"XAF":a[531],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[19],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[805],"GyMMMEd":a[806],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[608],"MEd":a[808],"MMM":a[41],"MMMd":a[543],"MMMEd":a[810],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[9437],"yMMM":a[50],"yMMMd":a[817],"yMMMEd":a[818],"yMMMM":a[614],"yQQQ":a[54],"yQQQQ":a[55]},{"yMMMMEEEEd":a[819],"yMMMMd":a[820],"yMMMd":a[817],"yMd":a[1345]},[a[4081],a[9694],a[4083],a[4084],a[8109],a[4085],a[9696],a[4087],a[7377],a[4089],a[4090],a[4091]],[a[9697],a[12147],a[9699],a[12148],a[9701],a[9702],a[9703]],{"am":a[12149],"pm":a[12150]},[a[12151],a[12152],a[189],a[190]],[a[918],a[919],a[12153],a[12154],a[4050],a[4051],a[924],a[925],a[926],a[927],a[12155],a[12156]],{"decimal":a[508],"group":a[509],"nan":a[510],"plusSign":a[4069],"minusSign":a[7396],"percentSign":a[513],"infinity":a[514]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"PKR":a[3677],"THB":a[601],"TWD":a[528],"USD":a[529],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[1960],"EHm":a[1961],"Ehms":a[1962],"EHms":a[3078],"Gy":a[604],"GyMMM":a[4681],"GyMMMd":a[12157],"GyMMMEd":a[12158],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[12159],"Hmsv":a[12160],"hmv":a[12161],"Hmv":a[12162],"M":a[3655],"Md":a[2069],"MEd":a[3653],"MMM":a[41],"MMMd":a[2322],"MMMEd":a[12163],"MMMMd":a[12164],"ms":a[45],"y":a[46],"yM":a[2071],"yMd":a[738],"yMEd":a[3654],"yMMM":a[1744],"yMMMd":a[12165],"yMMMEd":a[12166],"yMMMM":a[6452],"yQQQ":a[12167],"yQQQQ":a[12168]},{"yMMMMEEEEd":a[680],"yMMMMd":a[12169],"yMMMd":a[12165],"yMd":a[3080]},{"hmmsszzzz":a[3770],"hmsz":a[4001],"hms":a[33],"hm":a[31]},[a[708],a[62],a[63],a[64],a[63],a[1313],a[1313],a[64],a[65],a[66],a[67],a[68]],[a[1698],a[1699],a[1350],a[1700],a[1352],a[1701],a[1702],a[10969],a[1410],a[1704],a[1705],a[1706]],[a[1707],a[1708],a[1709],a[1710],a[1352],a[1711],a[1712],a[10800],a[12170],a[12171],a[1716],a[1717]],[a[708],a[68],a[65],a[3116],a[1347],a[61],a[65]],[a[12172],a[2280],a[3391],a[3081],a[12173],a[4831],a[12174]],[a[12175],a[12176],a[12177],a[12178],a[12179],a[2107],a[12180]],{"am":a[12181],"pm":a[3523]},[a[12182],a[12183],a[12184],a[190]],[a[12185],a[12183],a[12186],a[190]],[a[236],a[237],a[12187],a[12188],a[12189],a[12190],a[242],a[12191],a[12192],a[12193],a[12194],a[12195]],{"decimal":a[509],"group":a[599],"nan":a[12196],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"UZS":a[12197],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[1081],a[12198],a[12199],a[12200],a[4078],a[4085],a[4079],a[12201],a[12202],a[12203],a[12204],a[4080]],[a[12205],a[12206],a[12207],a[12208],a[12209],a[12210],a[12211]],{"yMMMMEEEEd":a[680],"yMMMMd":a[681],"yMMMd":a[679],"yMd":a[3080]},[a[12212],a[12213],a[12214],a[12215],a[12216],a[12217],a[12218],a[12219],a[12220],a[12221],a[12222],a[12223]],[a[12224],a[12225],a[12226],a[12227],a[12216],a[12217],a[12218],a[12228],a[12229],a[12230],a[12231],a[12232]],[a[7537],a[6767],a[6738],a[10406],a[12058],a[6742],a[6740]],[a[12233],a[12234],a[12235],a[12236],a[12237],a[12238],a[12239]],[a[12240],a[12241],a[12242],a[12243],a[12244],a[7557],a[12245]],[a[12246],a[12247],a[189],a[190]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[602],"UZS":a[12248],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},[a[12249],a[12250],a[12251],a[12252],a[12253],a[116],a[117],a[12254],a[12255],a[12256],a[12257],a[12258]],[a[12259],a[12260],a[12261],a[12262],a[12263],a[12264],a[12265]],[a[12266],a[12267],a[12268],a[12269],a[12270],a[116],a[117],a[12271],a[12272],a[12273],a[12274],a[12275]],[a[12276],a[12277],a[12278],a[12279],a[12280],a[12281],a[12282]],{"d":a[17],"E":a[18],"Ed":a[12284],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[24],"GyMMM":a[25],"GyMMMd":a[12285],"GyMMMEd":a[2114],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[1231],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[12286],"MEd":a[12287],"MMdd":a[541],"MMM":a[41],"MMMd":a[543],"MMMEd":a[1340],"MMMMd":a[811],"MMMMEd":a[1834],"mmss":a[45],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[611],"yMEd":a[12288],"yMM":a[12289],"yMMM":a[50],"yMMMd":a[617],"yMMMEd":a[2116],"yMMMM":a[12290],"yQQQ":a[54],"yQQQQ":a[12291]},{"yMMMMEEEEd":a[12292],"yMMMMd":a[12293],"yMMMd":a[617],"yMd":a[738]},[a[12294],a[12295],a[12296],a[12297],a[12298],a[12299],a[12300],a[12301],a[12302],a[12303],a[12304],a[12305]],[a[12306],a[12307],a[12308],a[12309],a[12310],a[12311],a[12312],a[12313],a[12314],a[12315],a[12316],a[12317]],[a[12318],a[12319],a[12320],a[12321],a[12322],a[12323],a[12324]],[a[12318],a[12325],a[12326],a[12327],a[12328],a[12329],a[12330]],[a[12331],a[12332],a[12333],a[12334],a[12335],a[12336],a[12337]],{"am":a[12338],"pm":a[12339]},[a[12340],a[12341],a[189],a[190]],[a[12342],a[598]],{"d":a[17],"E":a[18],"Ed":a[3012],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[41],"Md":a[3132],"MEd":a[3224],"MMM":a[41],"MMMd":a[3132],"MMMEd":a[3224],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[1255],"yMd":a[547],"yMEd":a[1256],"yMMM":a[50],"yMMMd":a[3134],"yMMMEd":a[3225],"yMMMM":a[614],"yQQQ":a[1259],"yQQQQ":a[1260]},{"yMMMMEEEEd":a[3226],"yMMMMd":a[3025],"yMMMd":a[3134],"yMd":a[547]},[a[61],a[481],a[63],a[64],a[63],a[188],a[481],a[12343],a[481],a[93],a[93],a[3116]],[a[5869],a[12344],a[4662],a[4225],a[558],a[12345],a[12346],a[12347],a[12348],a[12349],a[12350],a[12351]],[a[12352],a[12353],a[12354],a[12355],a[12356],a[12357],a[12358],a[12359],a[12360],a[12361],a[12362],a[12363]],[a[65],a[63],a[2072],a[63],a[62],a[62],a[65]],[a[94],a[12364],a[12365],a[12366],a[12367],a[99],a[6541]],[a[12368],a[12369],a[12370],a[12371],a[12372],a[12373],a[12374]],[a[3245],a[12375],a[189],a[190]],{"decimal":a[509],"group":a[4680],"nan":a[510],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},[a[65],a[188],a[188],a[65],a[707],a[707],a[63]],[a[12376],a[12377],a[12378],a[12379],a[12380],a[12381],a[12382]],[a[12383],a[7656],a[12384],a[12385],a[12386],a[12387],a[12388]],{"am":a[12389],"pm":a[12390]},[a[12391],a[12392],a[189],a[190]],[a[12393],a[12394],a[189],a[190]],[a[12395],a[12396],a[12397],a[12398],a[12399],a[12400],a[12401],a[12402],a[12403],a[12404],a[12405],a[12406]],[a[12407],a[12408],a[12409],a[12410],a[12411],a[12412],a[12413],a[12414],a[12415],a[12416],a[12417],a[12418]],[a[623],a[1767],a[1767],a[3342],a[621],a[625],a[623]],[a[12419],a[12420],a[12421],a[12422],a[12423],a[12424],a[12425]],[a[12426],a[12427],a[12428],a[12429],a[12430],a[12431],a[12432]],{"am":a[12433],"pm":a[12434]},[a[7451],a[12435],a[189],a[190]],[a[12436],a[12437],a[189],a[190]],{"d":a[17],"E":a[18],"Ed":a[12438],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[12439],"GyMMMEd":a[12440],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[1252],"MEd":a[542],"MMM":a[41],"MMMd":a[42],"MMMEd":a[1254],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[1255],"yMd":a[4456],"yMEd":a[1341],"yMM":a[2071],"yMMM":a[50],"yMMMd":a[12441],"yMMMEd":a[12442],"yMMMM":a[614],"yQQQ":a[1259],"yQQQQ":a[1260]},{"yMMMMEEEEd":a[12443],"yMMMMd":a[12444],"yMMMd":a[12441],"yMd":a[3080]},[a[12445],a[12446],a[12447],a[12448],a[12449],a[4896],a[4897],a[12450],a[12451],a[12452],a[12453],a[12454]],[a[12455],a[12456],a[12457],a[12458],a[12459],a[12460],a[4924]],{"am":a[12461],"pm":a[12462]},[a[12463],a[12464],a[12465],a[12466],a[12467],a[12468],a[12469],a[12470],a[12471],a[12472],a[12473],a[4948],a[12474],a[12475]],[a[4951],a[12476],a[4953],a[4954],a[4955],a[4956],a[4957],a[4958],a[4959],a[4960],a[4961],a[4948],a[4962],a[4963]],[a[12477],a[12478],a[12479],a[12480],a[12481],a[12482],a[12483],a[12484],a[12485],a[12486],a[12487],a[12488]],[a[12489],a[12490],a[12491],a[12492],a[12493],a[12494],a[12495],a[12496],a[12497],a[12498],a[12499],a[12500]],[a[12501],a[12502],a[12503],a[12504],a[12505],a[12506],a[12507]],[a[12508],a[12509],a[12510],a[12504],a[12505],a[12511],a[12512]],{"am":a[12513],"pm":a[12514]},[a[670],a[10597],a[189],a[190]],[a[12515],a[12516],a[189],a[190]],[a[12517],a[12478],a[12518],a[12480],a[12519],a[12482],a[12520],a[12484],a[12485],a[12521],a[12487],a[12522]],[a[12523],a[12524],a[12525],a[12526],a[12527],a[12528],a[12529],a[12530],a[12531],a[12532],a[12533],a[12534]],[a[12501],a[12502],a[12535],a[12536],a[12537],a[12538],a[12539]],[a[12540],a[12541],a[12542],a[12536],a[12537],a[12543],a[12544]],{"am":a[12545],"pm":a[12546]},{"d":a[17],"E":a[18],"Ed":a[676],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[63],"Md":a[608],"MEd":a[1253],"MMM":a[2070],"MMMd":a[543],"MMMEd":a[544],"MMMMd":a[44],"ms":a[610],"y":a[46],"yM":a[47],"yMd":a[547],"yMEd":a[612],"yMMM":a[50],"yMMMd":a[679],"yMMMEd":a[613],"yMMMM":a[614],"yQQQ":a[54],"yQQQQ":a[55]},[a[10642],a[10643],a[10644],a[10645],a[10646],a[12547],a[10648]],{"d":a[5994],"E":a[18],"Ed":a[12548],"Ehm":a[12549],"EHm":a[12550],"Ehms":a[12551],"EHms":a[12552],"Gy":a[6001],"GyMMM":a[6002],"GyMMMd":a[6003],"GyMMMEd":a[12553],"h":a[12554],"H":a[12555],"hm":a[12556],"Hm":a[31],"hms":a[12557],"Hms":a[33],"hmsv":a[12558],"Hmsv":a[12559],"hmv":a[12560],"Hmv":a[12561],"M":a[6012],"Md":a[39],"MEd":a[12562],"MMdd":a[3713],"MMM":a[41],"MMMd":a[6015],"MMMEd":a[12563],"MMMMd":a[6015],"ms":a[45],"y":a[6018],"yM":a[6022],"yMd":a[678],"yMEd":a[12564],"yMM":a[6022],"yMMM":a[6022],"yMMMd":a[6023],"yMMMEd":a[12565],"yMMMM":a[6022],"yQQQ":a[12566],"yQQQQ":a[12566]},{"yMMMMEEEEd":a[6025],"yMMMMd":a[6023],"yMMMd":a[6023],"yMd":a[678]},{"hmmsszzzz":a[12567],"hmsz":a[12568],"hms":a[12557],"hm":a[12556]},[a[12569],a[6071],a[6072],a[6073],a[6074],a[6075],a[6076],a[6077],a[6078],a[6079],a[6080],a[6081]],[a[6041],a[12570],a[6059],a[6060],a[6061],a[6062],a[6063]],[a[12571],a[12572],a[12573],a[12574],a[12575],a[12576],a[12577]],[a[12578],a[12579],a[12580],a[12581],a[12582],a[12583],a[12584]],[a[12585]],{"am":a[12586],"pm":a[12587]},[a[6058],a[6059],a[6060],a[6061],a[6062],a[6063],a[6064],a[6065],a[6066],a[6067],a[12588],a[12589]],[a[6070],a[6071],a[6072],a[6073],a[6074],a[6075],a[6076],a[6077],a[6078],a[6079],a[12590],a[12591]],[a[6029],a[6030],a[6031],a[6032],a[6033],a[6034],a[6035],a[6036],a[6037],a[6038],a[6039],a[6040],a[12592]],[a[12569],a[6071],a[6072],a[6073],a[6074],a[6075],a[6076],a[6077],a[6078],a[6079],a[6080],a[6081],a[12593]],[a[12594],a[12595],a[12596],a[12597]],[a[6029],a[6030],a[6031],a[6032],a[6033],a[6034],a[6035],a[6036],a[6037],a[6038],a[6039],a[6040],a[12592],a[12598]],[a[12569],a[6071],a[6072],a[6073],a[6074],a[6075],a[6076],a[6077],a[6078],a[6079],a[6080],a[6081],a[12593],a[12599]],[a[12600]],[a[12601]],[a[12602]],[a[12603],a[12604],a[12605],a[12606],a[12607],a[12608],a[12609],a[12610],a[12611],a[12612],a[12613],a[12614],a[12615],a[12616],a[12617],a[12618],a[12619],a[12620],a[12621],a[12622],a[12623],a[12624],a[12625],a[12626],a[12627],a[12628],a[12629],a[12630],a[12631],a[12632],a[12633],a[12634],a[12635],a[12636],a[12637],a[12638],a[12639],a[12640],a[12641],a[12642],a[12643],a[12644],a[12645],a[12646],a[12647],a[12648],a[12649],a[12650],a[12651],a[12652],a[12653],a[12654],a[12655],a[12656],a[12657],a[12658],a[12659],a[12660],a[12661],a[12662],a[12663],a[12664],a[12665],a[12666],a[12667],a[12668],a[12669],a[12670],a[12671],a[12672],a[12673],a[12674],a[12675],a[12676],a[12677],a[12678],a[12679],a[12680],a[12681],a[12682],a[12683],a[12684],a[12685],a[12686],a[12687],a[12688],a[12689],a[12690],a[12691],a[12692],a[12693],a[12694],a[12695],a[12696],a[12697],a[12698],a[12699],a[12700],a[12701],a[12702],a[12703],a[12704],a[12705],a[12706],a[12707],a[12708],a[12709],a[12710],a[12711],a[12712],a[12713],a[12714],a[12715],a[12716],a[12717],a[12718],a[12719],a[12720],a[12721],a[12722],a[12723],a[12724],a[12725],a[12726],a[12727],a[12728],a[12729],a[12730],a[12731],a[12732],a[12733],a[12734],a[12735],a[12736],a[12737],a[12738],a[12739],a[12740],a[12741],a[12742],a[12743],a[12744],a[12745],a[12746],a[12747],a[12748],a[12749],a[12750],a[12751],a[12752],a[12753],a[12754],a[12755],a[12756],a[12757],a[12758],a[12759],a[12760],a[12761],a[12762],a[12763],a[12764],a[12765],a[12766],a[12767],a[12768],a[12769],a[12770],a[12771],a[12772],a[12773],a[12774],a[12775],a[12776],a[12777],a[12778],a[12779],a[12780],a[12781],a[12782],a[12783],a[12784],a[12785],a[12786],a[12787],a[12788],a[12789],a[12790],a[12791],a[12792],a[12793],a[12794],a[12795],a[12796],a[12797],a[12798],a[12799],a[12800],a[12801],a[12802],a[12803],a[12804],a[12805],a[12806],a[12807],a[12808],a[12809],a[12810],a[12811],a[12812],a[12813],a[12814],a[12815],a[12816],a[12817],a[12818],a[12819],a[12820],a[12821],a[12822],a[12823],a[12824],a[12825],a[12826],a[12827],a[12828],a[12829],a[12830],a[12831],a[12832],a[12833],a[12834],a[6383],a[6384],a[6385],a[6386]],[a[12835]],{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[6402],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILR":a[12836],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[12837],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[5994],"E":a[18],"Ed":a[12548],"Ehm":a[12549],"EHm":a[12550],"Ehms":a[12551],"EHms":a[12552],"Gy":a[6001],"GyMMM":a[6002],"GyMMMd":a[6003],"GyMMMEd":a[12553],"h":a[12554],"H":a[12555],"HHmm":a[31],"hm":a[12556],"Hm":a[31],"hms":a[12557],"Hms":a[33],"hmsv":a[12558],"Hmsv":a[12559],"hmv":a[12560],"Hmv":a[12561],"M":a[6012],"Md":a[608],"MEd":a[542],"MMdd":a[2069],"MMM":a[41],"MMMd":a[6015],"MMMEd":a[12563],"MMMMd":a[6015],"MMMMdd":a[6015],"ms":a[45],"y":a[6018],"yM":a[47],"yMd":a[611],"yMEd":a[12838],"yMM":a[2071],"yMMM":a[6022],"yMMMd":a[6023],"yMMMEd":a[12565],"yMMMM":a[6022],"yQQQ":a[12566],"yQQQQ":a[12566]},{"yMMMMEEEEd":a[6025],"yMMMMd":a[6023],"yMMMd":a[6023],"yMd":a[1345]},{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILR":a[12836],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[12837],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[5994],"E":a[18],"Ed":a[12548],"Ehm":a[12549],"EHm":a[12550],"Ehms":a[12551],"EHms":a[12552],"Gy":a[6001],"GyMMM":a[6002],"GyMMMd":a[6003],"GyMMMEd":a[12553],"h":a[12554],"H":a[12555],"hm":a[12556],"Hm":a[31],"hms":a[12557],"Hms":a[33],"hmsv":a[12558],"Hmsv":a[12559],"hmv":a[12560],"Hmv":a[12561],"M":a[6012],"Md":a[608],"MEd":a[542],"MMdd":a[2069],"MMM":a[41],"MMMd":a[6015],"MMMEd":a[12563],"MMMMd":a[6015],"MMMMdd":a[6015],"ms":a[45],"y":a[6018],"yM":a[6022],"yMd":a[6023],"yMEd":a[12839],"yMM":a[6022],"yMMM":a[6022],"yMMMd":a[6023],"yMMMEd":a[12565],"yMMMM":a[6022],"yQQQ":a[12566],"yQQQQ":a[12566]},{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILR":a[12836],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[12837],"MOP":a[3698],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[5994],"E":a[18],"Ed":a[12548],"Ehm":a[12549],"EHm":a[12550],"Ehms":a[12551],"EHms":a[12552],"Gy":a[6001],"GyMMM":a[6002],"GyMMMd":a[6003],"GyMMMEd":a[12553],"h":a[12554],"H":a[12555],"hm":a[12556],"Hm":a[31],"hms":a[12557],"Hms":a[33],"hmsv":a[12558],"Hmsv":a[12559],"hmv":a[12560],"Hmv":a[12561],"M":a[6012],"Md":a[3427],"MEd":a[12840],"MMdd":a[1252],"MMM":a[6012],"MMMd":a[6015],"MMMEd":a[12563],"MMMMd":a[6015],"MMMMdd":a[6015],"ms":a[45],"y":a[6018],"yM":a[6022],"yMd":a[6023],"yMEd":a[12839],"yMM":a[6022],"yMMM":a[6022],"yMMMd":a[6023],"yMMMEd":a[12565],"yMMMM":a[6022],"yQQQ":a[12566],"yQQQQ":a[12566]},{"yMMMMEEEEd":a[6025],"yMMMMd":a[6023],"yMMMd":a[6023],"yMd":a[3080]},{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILR":a[12836],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[12837],"MXN":a[526],"NZD":a[527],"SGD":a[529],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[5994],"E":a[18],"Ed":a[19],"Ehm":a[12549],"EHm":a[21],"Ehms":a[12551],"EHms":a[23],"Gy":a[6001],"GyMMM":a[6002],"GyMMMd":a[6003],"GyMMMEd":a[12841],"h":a[12842],"H":a[6007],"hm":a[12556],"Hm":a[31],"hms":a[12557],"Hms":a[33],"hmsv":a[12843],"Hmsv":a[12844],"hmv":a[12845],"Hmv":a[12846],"M":a[6012],"Md":a[39],"MEd":a[12847],"MMdd":a[3713],"MMM":a[41],"MMMd":a[6015],"MMMEd":a[12848],"MMMMd":a[6015],"ms":a[45],"y":a[6018],"yM":a[3895],"yMd":a[678],"yMEd":a[12849],"yMM":a[6021],"yMMM":a[6022],"yMMMd":a[6023],"yMMMEd":a[12850],"yMMMM":a[6022],"yQQQ":a[12851],"yQQQQ":a[12852]},{"yMMMMEEEEd":a[12853],"yMMMMd":a[6023],"yMMMd":a[6023],"yMd":a[678]},{"hmmsszzzz":a[12854],"hmsz":a[12855],"hms":a[12557],"hm":a[12556]},[a[12856],a[12857],a[12858],a[12859],a[12860],a[12861],a[12862]],[a[12863]],[a[6058],a[6059],a[6060],a[6061],a[6062],a[6063],a[6064],a[6065],a[6066],a[6067],a[12588],a[12864]],[a[6070],a[6071],a[6072],a[6073],a[6074],a[6075],a[6076],a[6077],a[6078],a[6079],a[12590],a[12865]],[a[12596],a[12597],a[12594],a[12595]],[a[12866],a[12867],a[12868],a[12869],a[12870],a[12871],a[12872],a[12873],a[12874],a[12875],a[12876],a[12877],a[12878],a[12879]],[a[12880]],[a[12881],a[12882],a[12883],a[12884],a[12885],a[12886],a[12887],a[12888],a[12889],a[12890],a[12891],a[12892]],[a[12893]],[a[12894],a[12895],a[12896],a[12897],a[12898],a[12899],a[12900],a[12901],a[12902],a[12903],a[12904],a[12905]],[a[12906]],[a[6151],a[6152],a[12907],a[6154],a[12908],a[6156],a[6157],a[12909],a[6159],a[12910],a[6161],a[12911],a[12912],a[12913],a[6165],a[6166],a[12914],a[12915],a[12916],a[6170],a[6171],a[6172],a[6173],a[6174],a[12917],a[12918],a[6177],a[12919],a[6179],a[6180],a[12920],a[6182],a[6183],a[6184],a[6185],a[6186],a[12921],a[12922],a[12923],a[6190],a[6191],a[12924],a[6193],a[6194],a[6195],a[12925],a[12926],a[6198],a[6199],a[12927],a[12928],a[6202],a[12929],a[6204],a[12930],a[6206],a[12931],a[6208],a[12932],a[6210],a[12933],a[6212],a[6213],a[6214],a[12934],a[6216],a[6217],a[12935],a[6219],a[12936],a[12937],a[6222],a[6223],a[12938],a[6225],a[6226],a[6227],a[6228],a[6229],a[6230],a[6231],a[6232],a[6233],a[6234],a[6235],a[6236],a[6237],a[6238],a[6239],a[6240],a[6241],a[6242],a[12939],a[6244],a[6245],a[12940],a[12941],a[12942],a[12943],a[6250],a[12944],a[6252],a[6253],a[6254],a[6255],a[12945],a[12946],a[6258],a[6259],a[6260],a[6261],a[6262],a[6263],a[6264],a[12947],a[6266],a[6267],a[12948],a[6269],a[12949],a[6271],a[12950],a[6273],a[6274],a[12951],a[6276],a[12952],a[12953],a[6279],a[12954],a[12955],a[6282],a[6283],a[6284],a[6285],a[12956],a[6287],a[6288],a[6289],a[6290],a[12957],a[6292],a[6293],a[6294],a[6295],a[12958],a[6297],a[12959],a[6299],a[6300],a[12960],a[6302],a[6303],a[12961],a[12962],a[6306],a[6307],a[6308],a[12963],a[6310],a[12964],a[6312],a[6313],a[12965],a[6315],a[6316],a[12966],a[6318],a[12967],a[12968],a[12969],a[6322],a[6323],a[6324],a[6325],a[12970],a[12971],a[6328],a[12972],a[12973],a[6331],a[12974],a[6333],a[6334],a[12975],a[12976],a[12977],a[6338],a[6339],a[12978],a[6341],a[6342],a[12979],a[12980],a[6345],a[12981],a[6347],a[6348],a[12982],a[6350],a[6351],a[12983],a[12984],a[12985],a[12986],a[12987],a[6357],a[6358],a[12988],a[12989],a[12990],a[6362],a[6363],a[12991],a[6365],a[12992],a[12993],a[6368],a[6369],a[6370],a[12994],a[6372],a[6373],a[6374],a[6375],a[6376],a[6377],a[6378],a[12995],a[6380],a[6381],a[12996],a[6383],a[6384],a[6385],a[6386]],[a[12997]],[a[12998],a[12999]],{"decimal":a[508],"group":a[509],"nan":a[13000],"plusSign":a[511],"minusSign":a[512],"percentSign":a[513],"infinity":a[514]},{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[12837],"MXN":a[526],"NZD":a[527],"TWD":a[529],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[5994],"E":a[13001],"Ed":a[12548],"Ehm":a[12549],"EHm":a[21],"Ehms":a[12551],"EHms":a[23],"Gy":a[6001],"GyMMM":a[6002],"GyMMMd":a[6003],"GyMMMEd":a[12553],"h":a[12842],"H":a[6007],"hm":a[12556],"Hm":a[31],"hms":a[12557],"Hms":a[33],"hmsv":a[12843],"Hmsv":a[12844],"hmv":a[12845],"Hmv":a[12846],"M":a[6012],"Md":a[608],"MEd":a[542],"MMdd":a[2069],"MMM":a[41],"MMMd":a[6015],"MMMEd":a[12563],"MMMMd":a[6015],"ms":a[45],"y":a[6018],"yM":a[47],"yMd":a[611],"yMEd":a[12564],"yMM":a[2071],"yMMM":a[6022],"yMMMd":a[6023],"yMMMEd":a[12565],"yMMMM":a[6022],"yQQQ":a[12851],"yQQQQ":a[12852]},{"yMMMMEEEEd":a[6025],"yMMMMd":a[6023],"yMMMd":a[6023],"yMd":a[611]},[a[12594],a[12595],a[12594],a[12595]],{"AUD":a[802],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[524],"KRW":a[525],"MOP":a[3698],"MXN":a[526],"NZD":a[527],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534]},{"d":a[17],"E":a[18],"Ed":a[19],"Ehm":a[20],"EHm":a[21],"Ehms":a[22],"EHms":a[23],"Gy":a[604],"GyMMM":a[605],"GyMMMd":a[606],"GyMMMEd":a[607],"h":a[28],"H":a[29],"hm":a[30],"Hm":a[31],"hms":a[32],"Hms":a[33],"hmsv":a[34],"Hmsv":a[35],"hmv":a[36],"Hmv":a[37],"M":a[38],"Md":a[39],"MEd":a[40],"MMM":a[41],"MMMd":a[42],"MMMEd":a[43],"MMMMd":a[44],"ms":a[45],"y":a[46],"yM":a[47],"yMd":a[48],"yMEd":a[49],"yMMM":a[50],"yMMMd":a[51],"yMMMEd":a[52],"yMMMM":a[53],"yQQQ":a[54],"yQQQQ":a[55]},[a[61],a[62],a[63],a[1900],a[63],a[61],a[61],a[64],a[65],a[66],a[67],a[68]],[a[69],a[70],a[13002],a[13003],a[8629],a[74],a[75],a[13004],a[77],a[1301],a[79],a[1903]],[a[13005],a[13006],a[13007],a[13008],a[13009],a[1306],a[13010],a[8586],a[13011],a[13012],a[1311],a[1906]],[a[65],a[63],a[188],a[92],a[65],a[481],a[63]],[a[9122],a[13013],a[13014],a[6561],a[9257],a[13015],a[9259]],[a[13016],a[13017],a[13018],a[13019],a[13020],a[13021],a[13022]],{"AUD":a[515],"BRL":a[516],"CAD":a[517],"CNY":a[518],"EUR":a[519],"GBP":a[520],"HKD":a[521],"ILS":a[522],"INR":a[523],"JPY":a[600],"KRW":a[525],"MXN":a[526],"NZD":a[527],"THB":a[601],"TWD":a[528],"USD":a[602],"VND":a[530],"XAF":a[531],"XCD":a[532],"XOF":a[533],"XPF":a[534],"ZAR":a[603]}];b[1]=[{"short":a[15],"medium":a[15],"full":a[16],"long":a[16],"availableFormats":b[0][1],"dateFormats":b[0][2],"timeFormats":b[0][3]},{"narrow":b[0][4],"short":b[0][5],"long":b[0][6]},{"narrow":b[0][7],"short":b[0][8],"long":b[0][9]},{"narrow":b[0][10],"short":b[0][10],"long":b[0][10]},{"narrow":b[0][12],"short":b[0][13],"long":b[0][14]},{"narrow":b[0][15],"short":b[0][16],"long":b[0][16]},{"narrow":b[0][17],"short":b[0][17],"long":b[0][17]},{"narrow":b[0][15],"short":b[0][18],"long":b[0][18]},{"narrow":b[0][19],"short":b[0][19],"long":b[0][19]},{"narrow":b[0][12],"short":b[0][20],"long":b[0][20]},{"narrow":b[0][21],"short":b[0][22],"long":b[0][23]},{"narrow":b[0][24],"short":b[0][25],"long":b[0][25]},{"narrow":b[0][26],"short":b[0][26],"long":b[0][26]},{"narrow":b[0][12],"short":b[0][27],"long":b[0][27]},{"narrow":b[0][28],"short":b[0][28],"long":b[0][28]},{"narrow":b[0][12],"short":b[0][29],"long":b[0][30]},{"narrow":b[0][31],"short":b[0][31],"long":b[0][31]},{"narrow":b[0][32],"short":b[0][33],"long":b[0][33]},{"narrow":b[0][12],"short":b[0][34],"long":b[0][34]},{"narrow":b[0][35],"short":b[0][35],"long":b[0][35]},{"narrow":b[0][36],"short":b[0][36],"long":b[0][36]},{"decimal":b[0][38],"currency":b[0][39],"percent":b[0][40]},{"latn":b[0][41]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][43],"dateFormats":b[0][44],"timeFormats":b[0][3]},{"narrow":b[0][4],"short":b[0][45],"long":b[0][46]},{"narrow":b[0][47],"short":b[0][48],"long":b[0][49]},{"narrow":b[0][51],"short":b[0][51],"long":b[0][52]},{"narrow":b[0][53],"short":b[0][53],"long":b[0][53]},{"latn":b[0][54]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][57],"dateFormats":b[0][58],"timeFormats":b[0][59]},{"narrow":b[0][60],"short":b[0][61],"long":b[0][62]},{"narrow":b[0][63],"short":b[0][64],"long":b[0][65]},{"narrow":b[0][67],"short":b[0][67],"long":b[0][68]},{"decimal":b[0][38],"currency":b[0][69],"percent":b[0][40]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][71],"dateFormats":b[0][72],"timeFormats":b[0][3]},{"narrow":b[0][12],"short":b[0][73],"long":b[0][74]},{"narrow":b[0][75],"short":b[0][76],"long":b[0][77]},{"narrow":b[0][79],"short":b[0][79],"long":b[0][80]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][82],"dateFormats":b[0][83],"timeFormats":b[0][3]},{"narrow":b[0][84],"short":b[0][85],"long":b[0][86]},{"narrow":b[0][87],"short":b[0][88],"long":b[0][89]},{"narrow":b[0][15],"short":b[0][91],"long":b[0][91]},{"narrow":b[0][92],"short":b[0][92],"long":b[0][93]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][95],"dateFormats":b[0][96],"timeFormats":b[0][3]},{"narrow":b[0][97],"short":b[0][98],"long":b[0][98]},{"narrow":b[0][99],"short":b[0][100],"long":b[0][100]},{"narrow":b[0][10],"short":b[0][10],"long":b[0][101]},{"narrow":b[0][103],"short":b[0][104],"long":b[0][104]},{"narrow":b[0][15],"short":b[0][105],"long":b[0][105]},{"narrow":b[0][106],"short":b[0][106],"long":b[0][107]},{"narrow":b[0][24],"short":b[0][108],"long":b[0][108]},{"narrow":b[0][109],"short":b[0][109],"long":b[0][109]},{"narrow":b[0][110],"short":b[0][111],"long":b[0][111]},{"narrow":b[0][112],"short":b[0][112],"long":b[0][112]},{"narrow":b[0][32],"short":b[0][113],"long":b[0][113]},{"narrow":b[0][12],"short":b[0][114],"long":b[0][114]},{"narrow":b[0][115],"short":b[0][115],"long":b[0][115]},{"narrow":b[0][116],"short":b[0][116],"long":b[0][116]},{"decimal":b[0][38],"currency":b[0][118],"percent":b[0][40]},{"arab":b[0][119],"latn":b[0][120]},{"narrow":b[0][122],"short":b[0][122],"long":b[0][123]},{"narrow":b[0][125],"short":b[0][126],"long":b[0][126]},{"arab":b[0][119],"latn":b[0][127]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][95],"dateFormats":b[0][96],"timeFormats":b[0][129]},{"narrow":b[0][130],"short":b[0][131],"long":b[0][132]},{"narrow":b[0][130],"short":b[0][132],"long":b[0][132]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][95],"dateFormats":b[0][96],"timeFormats":b[0][59]},{"narrow":b[0][134],"short":b[0][135],"long":b[0][135]},{"narrow":b[0][136],"short":b[0][137],"long":b[0][137]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][140],"dateFormats":b[0][141],"timeFormats":b[0][59]},{"narrow":b[0][12],"short":b[0][142],"long":b[0][143]},{"narrow":b[0][7],"short":b[0][144],"long":b[0][145]},{"narrow":b[0][147],"short":b[0][147],"long":b[0][147]},{"decimal":b[0][38],"currency":b[0][118],"percent":b[0][40],"secondaryGroupSize":2},{"beng":b[0][41],"latn":b[0][41]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][149],"dateFormats":b[0][150],"timeFormats":b[0][59]},{"narrow":b[0][4],"short":b[0][151],"long":b[0][152]},{"narrow":b[0][153],"short":b[0][154],"long":b[0][155]},{"narrow":b[0][157],"short":b[0][157],"long":b[0][158]},{"decimal":b[0][38],"currency":b[0][159],"percent":b[0][40]},{"short":a[535],"medium":a[15],"full":a[1337],"long":a[1337],"availableFormats":b[0][161],"dateFormats":b[0][162],"timeFormats":b[0][59]},{"narrow":b[0][163],"short":b[0][164],"long":b[0][165]},{"narrow":b[0][166],"short":b[0][167],"long":b[0][168]},{"narrow":b[0][169],"short":b[0][169],"long":b[0][170]},{"narrow":b[0][12],"short":b[0][172],"long":b[0][172]},{"narrow":b[0][15],"short":b[0][173],"long":b[0][174]},{"narrow":b[0][175],"short":b[0][176],"long":b[0][177]},{"narrow":b[0][178],"short":b[0][179],"long":b[0][180]},{"narrow":b[0][181],"short":b[0][182],"long":b[0][183]},{"narrow":b[0][184],"short":b[0][185],"long":b[0][186]},{"latn":b[0][187]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][189],"dateFormats":b[0][190],"timeFormats":b[0][59]},{"narrow":b[0][12],"short":b[0][191],"long":b[0][192]},{"narrow":b[0][193],"short":b[0][194],"long":b[0][195]},{"narrow":b[0][196],"short":b[0][196],"long":b[0][197]},{"latn":b[0][198]},{"narrow":b[0][7],"short":b[0][8],"long":b[0][8]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][200],"dateFormats":b[0][201],"timeFormats":b[0][59]},{"narrow":b[0][12],"short":b[0][202],"long":b[0][202]},{"narrow":b[0][193],"short":b[0][203],"long":b[0][203]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][205],"dateFormats":b[0][58],"timeFormats":b[0][59]},{"narrow":b[0][206],"short":b[0][207],"long":b[0][208]},{"narrow":b[0][209],"short":b[0][210],"long":b[0][211]},{"narrow":b[0][213],"short":b[0][213],"long":b[0][214]},{"decimal":b[0][38],"currency":b[0][159],"percent":b[0][215]},{"short":a[15],"medium":a[15],"full":a[1817],"long":a[1817],"availableFormats":b[0][216],"dateFormats":b[0][217],"timeFormats":b[0][218]},{"narrow":b[0][219],"short":b[0][220],"long":b[0][221]},{"narrow":b[0][222],"short":b[0][223],"long":b[0][224]},{"narrow":b[0][226],"short":b[0][226],"long":b[0][227]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][149],"dateFormats":b[0][150],"timeFormats":b[0][3]},{"narrow":b[0][229],"short":b[0][230],"long":b[0][231]},{"narrow":b[0][7],"short":b[0][232],"long":b[0][232]},{"narrow":b[0][22],"short":b[0][22],"long":b[0][234]},{"narrow":b[0][236],"short":b[0][237],"long":b[0][238]},{"narrow":b[0][239],"short":b[0][240],"long":b[0][241]},{"narrow":b[0][157],"short":b[0][157],"long":b[0][243]},{"short":a[15],"medium":a[15],"full":a[15],"long":a[15],"availableFormats":b[0][244],"dateFormats":b[0][245],"timeFormats":b[0][129]},{"narrow":b[0][246],"short":b[0][247],"long":b[0][248]},{"narrow":b[0][249],"short":b[0][250],"long":b[0][251]},{"narrow":b[0][253],"short":b[0][253],"long":b[0][254]},{"narrow":b[0][24],"short":b[0][255],"long":b[0][255]},{"narrow":b[0][12],"short":b[0][256],"long":b[0][256]},{"narrow":b[0][12],"short":b[0][29],"long":b[0][257]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][259],"dateFormats":b[0][58],"timeFormats":b[0][59]},{"narrow":b[0][260],"short":b[0][261],"long":b[0][262]},{"narrow":b[0][263],"short":b[0][264],"long":b[0][265]},{"narrow":b[0][266],"short":b[0][266],"long":b[0][267]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][268],"dateFormats":b[0][269],"timeFormats":b[0][3]},{"narrow":b[0][270],"short":b[0][271],"long":b[0][271]},{"narrow":b[0][272],"short":b[0][273],"long":b[0][274]},{"narrow":b[0][276],"short":b[0][276],"long":b[0][276]},{"narrow":b[0][277],"short":b[0][278],"long":b[0][278]},{"narrow":b[0][279],"short":b[0][279],"long":b[0][279]},{"narrow":b[0][277],"short":b[0][29],"long":b[0][280]},{"narrow":b[0][281],"short":b[0][281],"long":b[0][281]},{"decimal":b[0][38],"currency":b[0][69],"percent":b[0][40],"secondaryGroupSize":2},{"beng":b[0][282],"latn":b[0][41]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][284],"dateFormats":b[0][285],"timeFormats":b[0][3]},{"narrow":b[0][12],"short":b[0][286],"long":b[0][287]},{"narrow":b[0][288],"short":b[0][289],"long":b[0][290]},{"narrow":b[0][292],"short":b[0][292],"long":b[0][292]},{"latn":b[0][41],"tibt":b[0][293]},{"short":a[535],"medium":a[535],"full":a[2257],"long":a[2257],"availableFormats":b[0][295],"dateFormats":b[0][141],"timeFormats":b[0][59]},{"narrow":b[0][296],"short":b[0][297],"long":b[0][298]},{"narrow":b[0][299],"short":b[0][300],"long":b[0][301]},{"narrow":b[0][303],"short":b[0][303],"long":b[0][304]},{"narrow":b[0][305],"short":b[0][305],"long":b[0][306]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][308],"dateFormats":b[0][2],"timeFormats":b[0][3]},{"narrow":b[0][309],"short":b[0][310],"long":b[0][310]},{"narrow":b[0][311],"short":b[0][312],"long":b[0][313]},{"narrow":b[0][315],"short":b[0][315],"long":b[0][315]},{"narrow":b[0][12],"short":b[0][316],"long":b[0][316]},{"deva":b[0][41],"latn":b[0][41]},{"short":a[535],"medium":a[535],"full":a[2381],"long":a[2381],"availableFormats":b[0][317],"dateFormats":b[0][318],"timeFormats":b[0][59]},{"narrow":b[0][319],"short":b[0][320],"long":b[0][321]},{"narrow":b[0][322],"short":b[0][323],"long":b[0][324]},{"narrow":b[0][326],"short":b[0][326],"long":b[0][327]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][329],"dateFormats":b[0][330],"timeFormats":b[0][59]},{"narrow":b[0][331],"short":b[0][332],"long":b[0][333]},{"narrow":b[0][334],"short":b[0][335],"long":b[0][336]},{"narrow":b[0][337],"short":b[0][337],"long":b[0][337]},{"narrow":b[0][15],"short":b[0][339],"long":b[0][339]},{"narrow":b[0][15],"short":b[0][340],"long":b[0][340]},{"narrow":b[0][341],"short":b[0][342],"long":b[0][343]},{"narrow":b[0][24],"short":b[0][344],"long":b[0][344]},{"narrow":b[0][12],"short":b[0][345],"long":b[0][345]},{"narrow":b[0][346],"short":b[0][346],"long":b[0][346]},{"narrow":b[0][12],"short":b[0][29],"long":b[0][347]},{"narrow":b[0][348],"short":b[0][348],"long":b[0][348]},{"narrow":b[0][32],"short":b[0][349],"long":b[0][349]},{"narrow":b[0][12],"short":b[0][350],"long":b[0][350]},{"narrow":b[0][351],"short":b[0][351],"long":b[0][351]},{"short":a[535],"medium":a[15],"full":a[1337],"long":a[15],"availableFormats":b[0][353],"dateFormats":b[0][162],"timeFormats":b[0][129]},{"narrow":b[0][354],"short":b[0][355],"long":b[0][356]},{"narrow":b[0][357],"short":b[0][358],"long":b[0][359]},{"narrow":b[0][360],"short":b[0][360],"long":b[0][360]},{"narrow":b[0][12],"short":b[0][12],"long":b[0][12]},{"narrow":b[0][362],"short":b[0][362],"long":b[0][363]},{"narrow":b[0][12],"short":b[0][366],"long":b[0][367]},{"narrow":b[0][7],"short":b[0][368],"long":b[0][368]},{"latn":b[0][369]},{"narrow":b[0][4],"short":b[0][371],"long":b[0][372]},{"narrow":b[0][373],"short":b[0][374],"long":b[0][375]},{"narrow":b[0][22],"short":b[0][22],"long":b[0][376]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][378],"dateFormats":b[0][2],"timeFormats":b[0][3]},{"narrow":b[0][379],"short":b[0][380],"long":b[0][381]},{"narrow":b[0][382],"short":b[0][383],"long":b[0][384]},{"narrow":b[0][386],"short":b[0][386],"long":b[0][387]},{"arab":b[0][389],"latn":b[0][390]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][391],"dateFormats":b[0][392],"timeFormats":b[0][129]},{"narrow":b[0][12],"short":b[0][393],"long":b[0][394]},{"narrow":b[0][395],"short":b[0][396],"long":b[0][397]},{"narrow":b[0][399],"short":b[0][400],"long":b[0][400]},{"narrow":b[0][401],"short":b[0][401],"long":b[0][401]},{"short":a[535],"medium":a[535],"full":a[3077],"long":a[3077],"availableFormats":b[0][403],"dateFormats":b[0][404],"timeFormats":b[0][59]},{"narrow":b[0][405],"short":b[0][406],"long":b[0][407]},{"narrow":b[0][408],"short":b[0][409],"long":b[0][410]},{"narrow":b[0][411],"short":b[0][412],"long":b[0][413]},{"short":a[535],"medium":a[535],"full":a[3122],"long":a[3122],"availableFormats":b[0][415],"dateFormats":b[0][416],"timeFormats":b[0][218]},{"narrow":b[0][4],"short":b[0][417],"long":b[0][418]},{"narrow":b[0][419],"short":b[0][420],"long":b[0][421]},{"narrow":b[0][422],"short":b[0][423],"long":b[0][424]},{"short":a[535],"medium":a[535],"full":a[3122],"long":a[3122],"availableFormats":b[0][415],"dateFormats":b[0][416],"timeFormats":b[0][426]},{"narrow":b[0][427],"short":b[0][428],"long":b[0][429]},{"narrow":b[0][430],"short":b[0][431],"long":b[0][432]},{"narrow":b[0][434],"short":b[0][434],"long":b[0][435]},{"short":a[15],"medium":a[15],"full":a[3218],"long":a[3218],"availableFormats":b[0][437],"dateFormats":b[0][438],"timeFormats":b[0][59]},{"narrow":b[0][4],"short":b[0][439],"long":b[0][440]},{"narrow":b[0][441],"short":b[0][442],"long":b[0][443]},{"narrow":b[0][445],"short":b[0][445],"long":b[0][446]},{"narrow":b[0][4],"short":b[0][448],"long":b[0][449]},{"decimal":b[0][38],"currency":b[0][118],"percent":b[0][215]},{"decimal":b[0][38],"currency":b[0][450],"percent":b[0][40]},{"latn":b[0][451]},{"narrow":b[0][454],"short":b[0][455],"long":b[0][456]},{"narrow":b[0][457],"short":b[0][458],"long":b[0][459]},{"narrow":b[0][461],"short":b[0][461],"long":b[0][462]},{"latn":b[0][463]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][464],"dateFormats":b[0][465],"timeFormats":b[0][129]},{"narrow":b[0][319],"short":b[0][466],"long":b[0][467]},{"narrow":b[0][468],"short":b[0][469],"long":b[0][470]},{"narrow":b[0][472],"short":b[0][472],"long":b[0][473]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][205],"dateFormats":b[0][475],"timeFormats":b[0][59]},{"narrow":b[0][476],"short":b[0][477],"long":b[0][478]},{"narrow":b[0][479],"short":b[0][480],"long":b[0][481]},{"narrow":b[0][483],"short":b[0][483],"long":b[0][484]},{"narrow":b[0][485],"short":b[0][486],"long":b[0][487]},{"narrow":b[0][488],"short":b[0][489],"long":b[0][490]},{"narrow":b[0][491],"short":b[0][491],"long":b[0][492]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][493],"dateFormats":b[0][494],"timeFormats":b[0][495]},{"narrow":b[0][496],"short":b[0][497],"long":b[0][498]},{"narrow":b[0][499],"short":b[0][500],"long":b[0][501]},{"decimal":b[0][38],"currency":b[0][39],"percent":b[0][215],"secondaryGroupSize":2},{"latn":b[0][41],"tibt":b[0][504]},{"narrow":b[0][506],"short":b[0][507],"long":b[0][508]},{"narrow":b[0][509],"short":b[0][510],"long":b[0][511]},{"narrow":b[0][513],"short":b[0][513],"long":b[0][514]},{"short":a[3526],"medium":a[3526],"full":a[3526],"long":a[3526],"availableFormats":b[0][515],"dateFormats":b[0][516],"timeFormats":b[0][517]},{"narrow":b[0][518],"short":b[0][519],"long":b[0][520]},{"narrow":b[0][521],"short":b[0][522],"long":b[0][523]},{"narrow":b[0][525],"short":b[0][525],"long":b[0][526]},{"latn":b[0][527]},{"short":a[3526],"medium":a[3526],"full":a[3526],"long":a[3526],"availableFormats":b[0][515],"dateFormats":b[0][516],"timeFormats":b[0][59]},{"short":a[15],"medium":a[15],"full":a[3591],"long":a[3591],"availableFormats":b[0][529],"dateFormats":b[0][530],"timeFormats":b[0][3]},{"narrow":b[0][531],"short":b[0][532],"long":b[0][533]},{"narrow":b[0][534],"short":b[0][535],"long":b[0][536]},{"narrow":b[0][538],"short":b[0][538],"long":b[0][539]},{"narrow":b[0][540],"short":b[0][540],"long":b[0][540]},{"short":a[15],"medium":a[15],"full":a[16],"long":a[16],"availableFormats":b[0][542],"dateFormats":b[0][150],"timeFormats":b[0][3]},{"short":a[15],"medium":a[15],"full":a[16],"long":a[16],"availableFormats":b[0][542],"dateFormats":b[0][150],"timeFormats":b[0][59]},{"short":a[15],"medium":a[15],"full":a[16],"long":a[16],"availableFormats":b[0][544],"dateFormats":b[0][545],"timeFormats":b[0][3]},{"narrow":b[0][546],"short":b[0][546],"long":b[0][6]},{"narrow":b[0][547],"short":b[0][548],"long":b[0][9]},{"short":a[15],"medium":a[15],"full":a[16],"long":a[16],"availableFormats":b[0][552],"dateFormats":b[0][553],"timeFormats":b[0][59]},{"short":a[15],"medium":a[15],"full":a[16],"long":a[16],"availableFormats":b[0][557],"dateFormats":b[0][558],"timeFormats":b[0][3]},{"short":a[15],"medium":a[15],"full":a[16],"long":a[16],"availableFormats":b[0][560],"dateFormats":b[0][561],"timeFormats":b[0][59]},{"short":a[15],"medium":a[15],"full":a[16],"long":a[16],"availableFormats":b[0][563],"dateFormats":b[0][564],"timeFormats":b[0][3]},{"short":a[15],"medium":a[15],"full":a[16],"long":a[16],"availableFormats":b[0][568],"dateFormats":b[0][150],"timeFormats":b[0][218]},{"short":a[15],"medium":a[15],"full":a[16],"long":a[16],"availableFormats":b[0][571],"dateFormats":b[0][150],"timeFormats":b[0][572]},{"short":a[15],"medium":a[15],"full":a[16],"long":a[16],"availableFormats":b[0][578],"dateFormats":b[0][579],"timeFormats":b[0][3]},{"short":a[15],"medium":a[15],"full":a[16],"long":a[16],"availableFormats":b[0][580],"dateFormats":b[0][581],"timeFormats":b[0][59]},{"short":a[15],"medium":a[15],"full":a[16],"long":a[16],"availableFormats":b[0][583],"dateFormats":b[0][150],"timeFormats":b[0][129]},{"short":a[15],"medium":a[15],"full":a[16],"long":a[16],"availableFormats":b[0][584],"dateFormats":b[0][585],"timeFormats":b[0][3]},{"short":a[15],"medium":a[15],"full":a[16],"long":a[16],"availableFormats":b[0][592],"dateFormats":b[0][593],"timeFormats":b[0][59]},{"decimal":b[0][38],"currency":b[0][600],"percent":b[0][40]},{"short":a[15],"medium":a[15],"full":a[16],"long":a[16],"availableFormats":b[0][601],"dateFormats":b[0][602],"timeFormats":b[0][3]},{"short":a[15],"medium":a[15],"full":a[16],"long":a[16],"availableFormats":b[0][542],"dateFormats":b[0][605],"timeFormats":b[0][3]},{"short":a[15],"medium":a[15],"full":a[16],"long":a[16],"availableFormats":b[0][610],"dateFormats":b[0][611],"timeFormats":b[0][59]},{"short":a[15],"medium":a[15],"full":a[16],"long":a[16],"availableFormats":b[0][542],"dateFormats":b[0][530],"timeFormats":b[0][3]},{"short":a[15],"medium":a[15],"full":a[16],"long":a[16],"availableFormats":b[0][623],"dateFormats":b[0][624],"timeFormats":b[0][3]},{"short":a[15],"medium":a[15],"full":a[16],"long":a[16],"availableFormats":b[0][625],"dateFormats":b[0][626],"timeFormats":b[0][3]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][140],"dateFormats":b[0][627],"timeFormats":b[0][628]},{"narrow":b[0][12],"short":b[0][629],"long":b[0][630]},{"narrow":b[0][7],"short":b[0][631],"long":b[0][632]},{"narrow":b[0][634],"short":b[0][634],"long":b[0][634]},{"short":a[535],"medium":a[535],"full":a[15],"long":a[15],"availableFormats":b[0][635],"dateFormats":b[0][636],"timeFormats":b[0][637]},{"narrow":b[0][638],"short":b[0][639],"long":b[0][640]},{"narrow":b[0][641],"short":b[0][642],"long":b[0][643]},{"narrow":b[0][644],"short":b[0][644],"long":b[0][645]},{"narrow":b[0][646],"short":b[0][646],"long":b[0][646]},{"short":a[535],"medium":a[535],"full":a[15],"long":a[15],"availableFormats":b[0][648],"dateFormats":b[0][636],"timeFormats":b[0][59]},{"narrow":b[0][649],"short":b[0][650],"long":b[0][640]},{"narrow":b[0][651],"short":b[0][642],"long":b[0][643]},{"decimal":b[0][38],"currency":b[0][39],"percent":b[0][215]},{"short":a[535],"medium":a[535],"full":a[15],"long":a[15],"availableFormats":b[0][653],"dateFormats":b[0][636],"timeFormats":b[0][59]},{"short":a[535],"medium":a[535],"full":a[15],"long":a[15],"availableFormats":b[0][656],"dateFormats":b[0][657],"timeFormats":b[0][59]},{"decimal":b[0][38],"currency":b[0][658],"percent":b[0][215]},{"short":a[15],"medium":a[15],"full":a[15],"long":a[15],"availableFormats":b[0][660],"dateFormats":b[0][661],"timeFormats":b[0][3]},{"short":a[535],"medium":a[535],"full":a[15],"long":a[15],"availableFormats":b[0][665],"dateFormats":b[0][636],"timeFormats":b[0][3]},{"narrow":b[0][644],"short":b[0][644],"long":b[0][666]},{"short":a[535],"medium":a[535],"full":a[15],"long":a[15],"availableFormats":b[0][648],"dateFormats":b[0][661],"timeFormats":b[0][59]},{"short":a[535],"medium":a[535],"full":a[15],"long":a[15],"availableFormats":b[0][648],"dateFormats":b[0][671],"timeFormats":b[0][59]},{"short":a[535],"medium":a[535],"full":a[15],"long":a[15],"availableFormats":b[0][673],"dateFormats":b[0][674],"timeFormats":b[0][59]},{"narrow":b[0][649],"short":b[0][675],"long":b[0][640]},{"narrow":b[0][676],"short":b[0][642],"long":b[0][643]},{"short":a[535],"medium":a[535],"full":a[15],"long":a[15],"availableFormats":b[0][679],"dateFormats":b[0][680],"timeFormats":b[0][3]},{"narrow":b[0][638],"short":b[0][650],"long":b[0][640]},{"short":a[535],"medium":a[535],"full":a[15],"long":a[15],"availableFormats":b[0][648],"dateFormats":b[0][682],"timeFormats":b[0][59]},{"narrow":b[0][649],"short":b[0][683],"long":b[0][684]},{"short":a[535],"medium":a[535],"full":a[15],"long":a[15],"availableFormats":b[0][635],"dateFormats":b[0][636],"timeFormats":b[0][3]},{"short":a[535],"medium":a[535],"full":a[15],"long":a[15],"availableFormats":b[0][687],"dateFormats":b[0][680],"timeFormats":b[0][3]},{"narrow":b[0][649],"short":b[0][639],"long":b[0][640]},{"decimal":b[0][38],"currency":b[0][600],"percent":b[0][215]},{"short":a[535],"medium":a[535],"full":a[15],"long":a[15],"availableFormats":b[0][648],"dateFormats":b[0][636],"timeFormats":b[0][3]},{"short":a[535],"medium":a[535],"full":a[15],"long":a[15],"availableFormats":b[0][691],"dateFormats":b[0][636],"timeFormats":b[0][3]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][693],"dateFormats":b[0][694],"timeFormats":b[0][695]},{"narrow":b[0][696],"short":b[0][697],"long":b[0][698]},{"narrow":b[0][699],"short":b[0][699],"long":b[0][700]},{"narrow":b[0][701],"short":b[0][701],"long":b[0][702]},{"latn":b[0][703]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][705],"dateFormats":b[0][706],"timeFormats":b[0][707]},{"narrow":b[0][708],"short":b[0][709],"long":b[0][710]},{"narrow":b[0][711],"short":b[0][712],"long":b[0][713]},{"narrow":b[0][714],"short":b[0][714],"long":b[0][714]},{"narrow":b[0][715],"short":b[0][715],"long":b[0][715]},{"narrow":b[0][716],"short":b[0][716],"long":b[0][716]},{"decimal":b[0][38],"currency":b[0][159],"percent":b[0][717]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][57],"dateFormats":b[0][475],"timeFormats":b[0][59]},{"narrow":b[0][719],"short":b[0][720],"long":b[0][721]},{"narrow":b[0][722],"short":b[0][723],"long":b[0][724]},{"narrow":b[0][726],"short":b[0][726],"long":b[0][727]},{"short":a[3992],"medium":a[3992],"full":a[3993],"long":a[3993],"availableFormats":b[0][728],"dateFormats":b[0][729],"timeFormats":b[0][730]},{"narrow":b[0][731],"short":b[0][732],"long":b[0][732]},{"narrow":b[0][733],"short":b[0][734],"long":b[0][734]},{"narrow":b[0][736],"short":b[0][737],"long":b[0][738]},{"narrow":b[0][739],"short":b[0][740],"long":b[0][740]},{"narrow":b[0][12],"short":b[0][741],"long":b[0][741]},{"narrow":b[0][742],"short":b[0][742],"long":b[0][743]},{"narrow":b[0][744],"short":b[0][745],"long":b[0][745]},{"narrow":b[0][746],"short":b[0][746],"long":b[0][747]},{"decimal":b[0][38],"currency":b[0][749],"percent":b[0][40]},{"arabext":b[0][750],"latn":b[0][751]},{"narrow":b[0][731],"short":b[0][753],"long":b[0][754]},{"narrow":b[0][744],"short":b[0][745],"long":b[0][755]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][756],"dateFormats":b[0][58],"timeFormats":b[0][59]},{"narrow":b[0][757],"short":b[0][758],"long":b[0][759]},{"narrow":b[0][760],"short":b[0][761],"long":b[0][762]},{"narrow":b[0][764],"short":b[0][764],"long":b[0][765]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][756],"dateFormats":b[0][58],"timeFormats":b[0][3]},{"short":a[535],"medium":a[4148],"full":a[4148],"long":a[4148],"availableFormats":b[0][768],"dateFormats":b[0][769],"timeFormats":b[0][572]},{"narrow":b[0][770],"short":b[0][771],"long":b[0][771]},{"narrow":b[0][772],"short":b[0][773],"long":b[0][774]},{"narrow":b[0][776],"short":b[0][777],"long":b[0][778]},{"narrow":b[0][779],"short":b[0][780],"long":b[0][780]},{"narrow":b[0][12],"short":b[0][29],"long":b[0][781]},{"latn":b[0][782]},{"short":a[15],"medium":a[15],"full":a[4222],"long":a[4222],"availableFormats":b[0][784],"dateFormats":b[0][2],"timeFormats":b[0][3]},{"narrow":b[0][785],"short":b[0][785],"long":b[0][786]},{"narrow":b[0][787],"short":b[0][787],"long":b[0][788]},{"narrow":b[0][22],"short":b[0][22],"long":b[0][22]},{"short":a[15],"medium":a[15],"full":a[3122],"long":a[3122],"availableFormats":b[0][790],"dateFormats":b[0][438],"timeFormats":b[0][59]},{"narrow":b[0][4],"short":b[0][791],"long":b[0][792]},{"narrow":b[0][793],"short":b[0][794],"long":b[0][795]},{"narrow":b[0][796],"short":b[0][797],"long":b[0][798]},{"latn":b[0][799]},{"short":a[535],"medium":a[4282],"full":a[4282],"long":a[4282],"availableFormats":b[0][801],"dateFormats":b[0][581],"timeFormats":b[0][59]},{"narrow":b[0][4],"short":b[0][802],"long":b[0][803]},{"narrow":b[0][676],"short":b[0][804],"long":b[0][805]},{"narrow":b[0][806],"short":b[0][807],"long":b[0][808]},{"narrow":b[0][12],"short":b[0][809],"long":b[0][810]},{"narrow":b[0][811],"short":b[0][811],"long":b[0][812]},{"narrow":b[0][24],"short":b[0][813],"long":b[0][813]},{"narrow":b[0][12],"short":b[0][814],"long":b[0][815]},{"narrow":b[0][816],"short":b[0][816],"long":b[0][816]},{"short":a[535],"medium":a[4282],"full":a[4282],"long":a[4282],"availableFormats":b[0][801],"dateFormats":b[0][818],"timeFormats":b[0][819]},{"short":a[535],"medium":a[535],"full":a[4282],"long":a[4282],"availableFormats":b[0][821],"dateFormats":b[0][822],"timeFormats":b[0][59]},{"short":a[535],"medium":a[4282],"full":a[4282],"long":a[4282],"availableFormats":b[0][801],"dateFormats":b[0][825],"timeFormats":b[0][826]},{"short":a[535],"medium":a[4282],"full":a[4282],"long":a[4282],"availableFormats":b[0][801],"dateFormats":b[0][581],"timeFormats":b[0][3]},{"narrow":b[0][4],"short":b[0][833],"long":b[0][803]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][842],"dateFormats":b[0][843],"timeFormats":b[0][59]},{"narrow":b[0][844],"short":b[0][845],"long":b[0][846]},{"narrow":b[0][676],"short":b[0][847],"long":b[0][848]},{"narrow":b[0][850],"short":b[0][850],"long":b[0][850]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][851],"dateFormats":b[0][852],"timeFormats":b[0][59]},{"narrow":b[0][4],"short":b[0][853],"long":b[0][854]},{"narrow":b[0][855],"short":b[0][856],"long":b[0][857]},{"narrow":b[0][15],"short":b[0][858],"long":b[0][858]},{"narrow":b[0][15],"short":b[0][859],"long":b[0][859]},{"narrow":b[0][860],"short":b[0][861],"long":b[0][862]},{"narrow":b[0][24],"short":b[0][863],"long":b[0][863]},{"narrow":b[0][12],"short":b[0][864],"long":b[0][864]},{"narrow":b[0][865],"short":b[0][865],"long":b[0][865]},{"narrow":b[0][12],"short":b[0][866],"long":b[0][867]},{"narrow":b[0][868],"short":b[0][868],"long":b[0][868]},{"decimal":b[0][38],"currency":b[0][869],"percent":b[0][40]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][871],"dateFormats":b[0][581],"timeFormats":b[0][59]},{"narrow":b[0][872],"short":b[0][873],"long":b[0][874]},{"narrow":b[0][875],"short":b[0][876],"long":b[0][877]},{"narrow":b[0][878],"short":b[0][878],"long":b[0][879]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][880],"dateFormats":b[0][881],"timeFormats":b[0][59]},{"narrow":b[0][882],"short":b[0][883],"long":b[0][884]},{"narrow":b[0][885],"short":b[0][886],"long":b[0][887]},{"narrow":b[0][889],"short":b[0][890],"long":b[0][891]},{"narrow":b[0][892],"short":b[0][892],"long":b[0][893]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][895],"dateFormats":b[0][896],"timeFormats":b[0][59]},{"narrow":b[0][897],"short":b[0][898],"long":b[0][899]},{"narrow":b[0][166],"short":b[0][900],"long":b[0][901]},{"narrow":b[0][902],"short":b[0][902],"long":b[0][903]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][905],"dateFormats":b[0][438],"timeFormats":b[0][59]},{"narrow":b[0][4],"short":b[0][906],"long":b[0][907]},{"narrow":b[0][441],"short":b[0][908],"long":b[0][909]},{"narrow":b[0][911],"short":b[0][911],"long":b[0][911]},{"latn":b[0][912]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][914],"dateFormats":b[0][269],"timeFormats":b[0][915]},{"narrow":b[0][916],"short":b[0][917],"long":b[0][918]},{"narrow":b[0][919],"short":b[0][920],"long":b[0][921]},{"narrow":b[0][922],"short":b[0][923],"long":b[0][924]},{"decimal":b[0][38],"currency":b[0][39],"percent":b[0][40],"secondaryGroupSize":2},{"gujr":b[0][41],"latn":b[0][41]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][926],"dateFormats":b[0][150],"timeFormats":b[0][59]},{"narrow":b[0][927],"short":b[0][928],"long":b[0][929]},{"narrow":b[0][930],"short":b[0][931],"long":b[0][932]},{"narrow":b[0][934],"short":b[0][934],"long":b[0][935]},{"narrow":b[0][12],"short":b[0][936],"long":b[0][937]},{"narrow":b[0][7],"short":b[0][938],"long":b[0][939]},{"narrow":b[0][890],"short":b[0][890],"long":b[0][890]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][926],"dateFormats":b[0][269],"timeFormats":b[0][3]},{"narrow":b[0][940],"short":b[0][941],"long":b[0][942]},{"narrow":b[0][943],"short":b[0][944],"long":b[0][945]},{"narrow":b[0][946],"short":b[0][946],"long":b[0][947]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][926],"dateFormats":b[0][269],"timeFormats":b[0][59]},{"yMMMMEEEEd":a[1298],"yMMMMd":a[616],"yMMMd":a[549],"yMd":b[0][950]},{"narrow":b[0][12],"short":b[0][951],"long":b[0][952]},{"narrow":b[0][7],"short":b[0][953],"long":b[0][954]},{"short":a[15],"medium":a[15],"full":a[4880],"long":a[4880],"availableFormats":b[0][955],"dateFormats":b[0][956],"timeFormats":b[0][129]},{"narrow":b[0][12],"short":b[0][957],"long":b[0][958]},{"narrow":b[0][959],"short":b[0][960],"long":b[0][961]},{"narrow":b[0][963],"short":b[0][963],"long":b[0][964]},{"narrow":b[0][965],"short":b[0][966],"long":b[0][966]},{"narrow":b[0][967],"short":b[0][967],"long":b[0][967]},{"narrow":b[0][12],"short":b[0][968],"long":b[0][969]},{"narrow":b[0][970],"short":b[0][970],"long":b[0][970]},{"narrow":b[0][32],"short":b[0][971],"long":b[0][971]},{"latn":b[0][390]},{"short":a[15],"medium":a[15],"full":a[4986],"long":a[4986],"availableFormats":b[0][973],"dateFormats":b[0][974],"timeFormats":b[0][3]},{"narrow":b[0][975],"short":b[0][976],"long":b[0][977]},{"narrow":b[0][978],"short":b[0][979],"long":b[0][980]},{"narrow":b[0][15],"short":b[0][982],"long":b[0][982]},{"narrow":b[0][983],"short":b[0][983],"long":b[0][984]},{"narrow":b[0][12],"short":b[0][985],"long":b[0][985]},{"narrow":b[0][986],"short":b[0][986],"long":b[0][986]},{"narrow":b[0][12],"short":b[0][29],"long":b[0][987]},{"narrow":b[0][32],"short":b[0][988],"long":b[0][988]},{"narrow":b[0][12],"short":b[0][989],"long":b[0][989]},{"short":a[535],"medium":a[535],"full":a[2381],"long":a[2381],"availableFormats":b[0][990],"dateFormats":b[0][991],"timeFormats":b[0][59]},{"narrow":b[0][992],"short":b[0][993],"long":b[0][994]},{"narrow":b[0][995],"short":b[0][996],"long":b[0][997]},{"narrow":b[0][32],"short":b[0][998],"long":b[0][998]},{"narrow":b[0][999],"short":b[0][999],"long":b[0][999]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1002],"dateFormats":b[0][465],"timeFormats":b[0][1003]},{"narrow":b[0][319],"short":b[0][1004],"long":b[0][1005]},{"narrow":b[0][1006],"short":b[0][1007],"long":b[0][1008]},{"narrow":b[0][1010],"short":b[0][1010],"long":b[0][1011]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1012],"dateFormats":b[0][1013],"timeFormats":b[0][129]},{"narrow":b[0][1014],"short":b[0][1015],"long":b[0][1016]},{"narrow":b[0][1017],"short":b[0][1018],"long":b[0][1019]},{"narrow":b[0][1020],"short":b[0][1020],"long":b[0][1020]},{"narrow":b[0][12],"short":b[0][12],"long":b[0][20]},{"narrow":b[0][1022],"short":b[0][1023],"long":b[0][1024]},{"narrow":b[0][24],"short":b[0][1025],"long":b[0][1025]},{"narrow":b[0][1026],"short":b[0][1026],"long":b[0][1026]},{"narrow":b[0][12],"short":b[0][1027],"long":b[0][1028]},{"narrow":b[0][1029],"short":b[0][1029],"long":b[0][1029]},{"narrow":b[0][1030],"short":b[0][1030],"long":b[0][1030]},{"short":a[15],"medium":a[15],"full":a[15],"long":a[15],"availableFormats":b[0][1032],"dateFormats":b[0][1033],"timeFormats":b[0][1034]},{"narrow":b[0][1035],"short":b[0][1036],"long":b[0][1037]},{"narrow":b[0][1038],"short":b[0][1039],"long":b[0][1040]},{"narrow":b[0][1041],"short":b[0][1041],"long":b[0][1042]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1044],"dateFormats":b[0][1045],"timeFormats":b[0][218]},{"narrow":b[0][4],"short":b[0][1046],"long":b[0][1047]},{"narrow":b[0][1048],"short":b[0][1049],"long":b[0][1050]},{"narrow":b[0][1051],"short":b[0][1051],"long":b[0][1052]},{"narrow":b[0][12],"short":b[0][1053],"long":b[0][1054]},{"narrow":b[0][32],"short":b[0][1055],"long":b[0][1055]},{"narrow":b[0][1056],"short":b[0][1056],"long":b[0][1056]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][926],"dateFormats":b[0][150],"timeFormats":b[0][3]},{"narrow":b[0][12],"short":b[0][1058],"long":b[0][1059]},{"narrow":b[0][7],"short":b[0][1060],"long":b[0][1061]},{"narrow":b[0][1063],"short":b[0][1063],"long":b[0][1064]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][140],"dateFormats":b[0][141],"timeFormats":b[0][3]},{"narrow":b[0][12],"short":b[0][1065],"long":b[0][1065]},{"narrow":b[0][1066],"short":b[0][1067],"long":b[0][1068]},{"narrow":b[0][1070],"short":b[0][1070],"long":b[0][1070]},{"short":a[15],"medium":a[15],"full":a[3122],"long":a[3122],"availableFormats":b[0][1071],"dateFormats":b[0][1072],"timeFormats":b[0][59]},{"narrow":b[0][1073],"short":b[0][1074],"long":b[0][1075]},{"narrow":b[0][1076],"short":b[0][1077],"long":b[0][1078]},{"narrow":b[0][1080],"short":b[0][1081],"long":b[0][1082]},{"short":a[15],"medium":a[15],"full":a[535],"long":a[535],"availableFormats":b[0][1084],"dateFormats":b[0][1085],"timeFormats":b[0][59]},{"narrow":b[0][1086],"short":b[0][1087],"long":b[0][1088]},{"narrow":b[0][1089],"short":b[0][1090],"long":b[0][1091]},{"narrow":b[0][169],"short":b[0][169],"long":b[0][169]},{"narrow":b[0][1092],"short":b[0][1093],"long":b[0][1094]},{"narrow":b[0][1095],"short":b[0][1095],"long":b[0][1095]},{"short":a[15],"medium":a[15],"full":a[535],"long":a[535],"availableFormats":b[0][1084],"dateFormats":b[0][1097],"timeFormats":b[0][59]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1098],"dateFormats":b[0][1099],"timeFormats":b[0][1100]},{"narrow":b[0][12],"short":b[0][1101],"long":b[0][1101]},{"narrow":b[0][1102],"short":b[0][1102],"long":b[0][1103]},{"narrow":b[0][10],"short":b[0][10],"long":b[0][1104]},{"narrow":b[0][1106],"short":b[0][1107],"long":b[0][1107]},{"narrow":b[0][15],"short":b[0][1108],"long":b[0][1108]},{"narrow":b[0][15],"short":b[0][1109],"long":b[0][1109]},{"narrow":b[0][22],"short":b[0][1110],"long":b[0][1110]},{"narrow":b[0][24],"short":b[0][1111],"long":b[0][1111]},{"narrow":b[0][12],"short":b[0][1112],"long":b[0][1112]},{"narrow":b[0][1113],"short":b[0][1113],"long":b[0][1113]},{"narrow":b[0][12],"short":b[0][1114],"long":b[0][1114]},{"narrow":b[0][1115],"short":b[0][1116],"long":b[0][1116]},{"narrow":b[0][12],"short":b[0][1117],"long":b[0][1117]},{"narrow":b[0][1118],"short":b[0][1118],"long":b[0][1118]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1120],"dateFormats":b[0][1121],"timeFormats":b[0][59]},{"narrow":b[0][12],"short":b[0][1122],"long":b[0][1122]},{"narrow":b[0][1123],"short":b[0][1124],"long":b[0][1124]},{"narrow":b[0][147],"short":b[0][147],"long":b[0][1126]},{"narrow":b[0][4],"short":b[0][1127],"long":b[0][1128]},{"narrow":b[0][153],"short":b[0][1129],"long":b[0][1130]},{"narrow":b[0][434],"short":b[0][434],"long":b[0][1132]},{"short":a[15],"medium":a[15],"full":a[15],"long":a[15],"availableFormats":b[0][1133],"dateFormats":b[0][1134],"timeFormats":b[0][59]},{"narrow":b[0][1135],"short":b[0][1136],"long":b[0][1137]},{"narrow":b[0][1138],"short":b[0][1139],"long":b[0][1140]},{"narrow":b[0][1141],"short":b[0][1141],"long":b[0][1142]},{"latn":b[0][1143]},{"narrow":b[0][1145],"short":b[0][1146],"long":b[0][1147]},{"narrow":b[0][1148],"short":b[0][1149],"long":b[0][1150]},{"narrow":b[0][1152],"short":b[0][1152],"long":b[0][1153]},{"narrow":b[0][1155],"short":b[0][1156],"long":b[0][1157]},{"narrow":b[0][1158],"short":b[0][1159],"long":b[0][1160]},{"narrow":b[0][1162],"short":b[0][1162],"long":b[0][1163]},{"narrow":b[0][4],"short":b[0][1127],"long":b[0][1164]},{"narrow":b[0][1165],"short":b[0][1166],"long":b[0][1167]},{"narrow":b[0][1169],"short":b[0][1169],"long":b[0][1170]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1171],"dateFormats":b[0][1172],"timeFormats":b[0][59]},{"narrow":b[0][4],"short":b[0][1173],"long":b[0][1174]},{"narrow":b[0][1175],"short":b[0][1176],"long":b[0][1177]},{"narrow":b[0][1178],"short":b[0][1178],"long":b[0][1179]},{"narrow":b[0][1181],"short":b[0][1182],"long":b[0][1183]},{"narrow":b[0][461],"short":b[0][461],"long":b[0][1185]},{"narrow":b[0][1186],"short":b[0][1187],"long":b[0][1188]},{"narrow":b[0][1189],"short":b[0][1190],"long":b[0][1191]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1193],"dateFormats":b[0][1194],"timeFormats":b[0][59]},{"narrow":b[0][1195],"short":b[0][1196],"long":b[0][1197]},{"narrow":b[0][1198],"short":b[0][1199],"long":b[0][1200]},{"narrow":b[0][1202],"short":b[0][1202],"long":b[0][1203]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1205],"dateFormats":b[0][1206],"timeFormats":b[0][59]},{"narrow":b[0][12],"short":b[0][1207],"long":b[0][1207]},{"narrow":b[0][1208],"short":b[0][1209],"long":b[0][1209]},{"narrow":b[0][12],"short":b[0][320],"long":b[0][1210]},{"narrow":b[0][7],"short":b[0][1211],"long":b[0][1212]},{"narrow":b[0][1213],"short":b[0][1214],"long":b[0][1215]},{"narrow":b[0][1216],"short":b[0][1217],"long":b[0][1218]},{"narrow":b[0][1220],"short":b[0][1220],"long":b[0][1221]},{"short":a[15],"medium":a[15],"full":a[6878],"long":a[6878],"availableFormats":b[0][1222],"dateFormats":b[0][1223],"timeFormats":b[0][3]},{"narrow":b[0][12],"short":b[0][1224],"long":b[0][1224]},{"narrow":b[0][1225],"short":b[0][1226],"long":b[0][1226]},{"narrow":b[0][1228],"short":b[0][1228],"long":b[0][1229]},{"khmr":b[0][198],"latn":b[0][198]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1231],"dateFormats":b[0][1232],"timeFormats":b[0][915]},{"narrow":b[0][1233],"short":b[0][1234],"long":b[0][1235]},{"narrow":b[0][1236],"short":b[0][1237],"long":b[0][1238]},{"narrow":b[0][1240],"short":b[0][1240],"long":b[0][1241]},{"knda":b[0][41],"latn":b[0][41]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1242],"dateFormats":b[0][1243],"timeFormats":b[0][1244]},{"narrow":b[0][1245],"short":b[0][1245],"long":b[0][1245]},{"narrow":b[0][1246],"short":b[0][1246],"long":b[0][1247]},{"narrow":b[0][1248],"short":b[0][1248],"long":b[0][1248]},{"narrow":b[0][12],"short":b[0][1245],"long":b[0][1245]},{"narrow":b[0][15],"short":b[0][1250],"long":b[0][1250]},{"narrow":b[0][15],"short":b[0][1251],"long":b[0][1251]},{"narrow":b[0][22],"short":b[0][22],"long":b[0][1252]},{"narrow":b[0][24],"short":b[0][1253],"long":b[0][1253]},{"narrow":b[0][12],"short":b[0][29],"long":b[0][1254]},{"narrow":b[0][32],"short":b[0][1255],"long":b[0][1255]},{"narrow":b[0][12],"short":b[0][1256],"long":b[0][1256]},{"narrow":b[0][1257],"short":b[0][1257],"long":b[0][1257]},{"narrow":b[0][12],"short":b[0][1259],"long":b[0][1259]},{"narrow":b[0][7],"short":b[0][1260],"long":b[0][1261]},{"narrow":b[0][1263],"short":b[0][1263],"long":b[0][1263]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1264],"dateFormats":b[0][2],"timeFormats":b[0][3]},{"narrow":b[0][1265],"short":b[0][1266],"long":b[0][1266]},{"narrow":b[0][1267],"short":b[0][1268],"long":b[0][1269]},{"narrow":b[0][1270],"short":b[0][1270],"long":b[0][1271]},{"narrow":b[0][12],"short":b[0][1272],"long":b[0][1272]},{"arabext":b[0][1273],"latn":b[0][1274]},{"narrow":b[0][4],"short":b[0][1127],"long":b[0][1275]},{"narrow":b[0][1276],"short":b[0][1277],"long":b[0][1278]},{"narrow":b[0][434],"short":b[0][434],"long":b[0][1280]},{"narrow":b[0][12],"short":b[0][1281],"long":b[0][1282]},{"narrow":b[0][1283],"short":b[0][1284],"long":b[0][1285]},{"narrow":b[0][1287],"short":b[0][1287],"long":b[0][1288]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1289],"dateFormats":b[0][1290],"timeFormats":b[0][59]},{"narrow":b[0][4],"short":b[0][1291],"long":b[0][1292]},{"narrow":b[0][441],"short":b[0][1293],"long":b[0][1294]},{"narrow":b[0][1296],"short":b[0][1297],"long":b[0][1298]},{"latn":b[0][1299]},{"narrow":b[0][12],"short":b[0][1300],"long":b[0][1301]},{"narrow":b[0][7],"short":b[0][1302],"long":b[0][1303]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1304],"dateFormats":b[0][1305],"timeFormats":b[0][59]},{"narrow":b[0][1306],"short":b[0][1307],"long":b[0][367]},{"narrow":b[0][1308],"short":b[0][1309],"long":b[0][1310]},{"narrow":b[0][1312],"short":b[0][1312],"long":b[0][1313]},{"latn":b[0][1314]},{"narrow":b[0][1316],"short":b[0][1317],"long":b[0][1318]},{"narrow":b[0][1319],"short":b[0][1320],"long":b[0][1321]},{"narrow":b[0][1323],"short":b[0][1323],"long":b[0][1324]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1325],"dateFormats":b[0][694],"timeFormats":b[0][59]},{"narrow":b[0][4],"short":b[0][1326],"long":b[0][1327]},{"narrow":b[0][441],"short":b[0][1328],"long":b[0][1329]},{"narrow":b[0][1331],"short":b[0][1331],"long":b[0][1331]},{"narrow":b[0][4],"short":b[0][1333],"long":b[0][1334]},{"narrow":b[0][1335],"short":b[0][1336],"long":b[0][1337]},{"narrow":b[0][22],"short":b[0][22],"long":b[0][1338]},{"narrow":b[0][12],"short":b[0][1339],"long":b[0][1339]},{"narrow":b[0][1340],"short":b[0][1341],"long":b[0][1341]},{"narrow":b[0][1342],"short":b[0][1343],"long":b[0][1344]},{"narrow":b[0][1345],"short":b[0][1346],"long":b[0][1347]},{"narrow":b[0][1349],"short":b[0][1349],"long":b[0][1350]},{"short":a[15],"medium":a[15],"full":a[15],"long":a[15],"availableFormats":b[0][1353],"dateFormats":b[0][1354],"timeFormats":b[0][1355]},{"narrow":b[0][12],"short":b[0][1356],"long":b[0][1357]},{"narrow":b[0][1358],"short":b[0][1359],"long":b[0][1359]},{"narrow":b[0][15],"short":b[0][1361],"long":b[0][1362]},{"narrow":b[0][15],"short":b[0][1363],"long":b[0][1363]},{"narrow":b[0][1364],"short":b[0][1364],"long":b[0][1365]},{"narrow":b[0][24],"short":b[0][1366],"long":b[0][1366]},{"narrow":b[0][12],"short":b[0][1367],"long":b[0][1368]},{"narrow":b[0][1369],"short":b[0][1369],"long":b[0][1369]},{"narrow":b[0][12],"short":b[0][1370],"long":b[0][1371]},{"narrow":b[0][32],"short":b[0][1372],"long":b[0][1372]},{"narrow":b[0][12],"short":b[0][1373],"long":b[0][1374]},{"narrow":b[0][1375],"short":b[0][1375],"long":b[0][1375]},{"narrow":b[0][1376],"short":b[0][1376],"long":b[0][1376]},{"decimal":b[0][38],"currency":b[0][658],"percent":b[0][40]},{"laoo":b[0][1377],"latn":b[0][1377]},{"narrow":b[0][12],"short":b[0][1379],"long":b[0][1379]},{"arabext":b[0][1273],"latn":b[0][41]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1380],"dateFormats":b[0][1381],"timeFormats":b[0][59]},{"narrow":b[0][1382],"short":b[0][1383],"long":b[0][1384]},{"narrow":b[0][1385],"short":b[0][1386],"long":b[0][1387]},{"narrow":b[0][1389],"short":b[0][1389],"long":b[0][1390]},{"narrow":b[0][32],"short":b[0][1391],"long":b[0][1391]},{"narrow":b[0][1392],"short":b[0][1392],"long":b[0][1392]},{"narrow":b[0][1394],"short":b[0][1395],"long":b[0][1396]},{"narrow":b[0][1397],"short":b[0][1398],"long":b[0][1399]},{"narrow":b[0][1401],"short":b[0][1401],"long":b[0][1402]},{"narrow":b[0][1403],"short":b[0][1404],"long":b[0][1405]},{"narrow":b[0][1406],"short":b[0][1407],"long":b[0][1408]},{"narrow":b[0][22],"short":b[0][22],"long":b[0][1410]},{"narrow":b[0][4],"short":b[0][1411],"long":b[0][152]},{"narrow":b[0][7],"short":b[0][1412],"long":b[0][1413]},{"narrow":b[0][22],"short":b[0][22],"long":b[0][1414]},{"decimal":b[0][38],"currency":b[0][1415],"percent":b[0][40]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1416],"dateFormats":b[0][1417],"timeFormats":b[0][59]},{"narrow":b[0][4],"short":b[0][1418],"long":b[0][1419]},{"narrow":b[0][1420],"short":b[0][1421],"long":b[0][1422]},{"narrow":b[0][1424],"short":b[0][1424],"long":b[0][1425]},{"narrow":b[0][24],"short":b[0][1426],"long":b[0][1426]},{"narrow":b[0][12],"short":b[0][29],"long":b[0][1427]},{"latn":b[0][1428]},{"narrow":b[0][12],"short":b[0][1430],"long":b[0][1431]},{"narrow":b[0][1165],"short":b[0][1129],"long":b[0][1432]},{"narrow":b[0][1434],"short":b[0][1434],"long":b[0][1435]},{"narrow":b[0][1437],"short":b[0][1438],"long":b[0][1439]},{"narrow":b[0][1440],"short":b[0][1441],"long":b[0][1442]},{"narrow":b[0][1444],"short":b[0][1444],"long":b[0][1445]},{"narrow":b[0][1446],"short":b[0][1447],"long":b[0][1448]},{"narrow":b[0][1449],"short":b[0][1450],"long":b[0][1451]},{"narrow":b[0][1452],"short":b[0][1452],"long":b[0][1453]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1454],"dateFormats":b[0][58],"timeFormats":b[0][59]},{"narrow":b[0][4],"short":b[0][1455],"long":b[0][1456]},{"narrow":b[0][1457],"short":b[0][1458],"long":b[0][1459]},{"narrow":b[0][22],"short":b[0][22],"long":b[0][1460]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1461],"dateFormats":b[0][150],"timeFormats":b[0][59]},{"narrow":b[0][1462],"short":b[0][1463],"long":b[0][1464]},{"narrow":b[0][1465],"short":b[0][1466],"long":b[0][1467]},{"narrow":b[0][1469],"short":b[0][1469],"long":b[0][1470]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][140],"dateFormats":b[0][1121],"timeFormats":b[0][59]},{"narrow":b[0][1472],"short":b[0][1473],"long":b[0][1474]},{"narrow":b[0][1475],"short":b[0][1476],"long":b[0][1476]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1477],"dateFormats":b[0][1478],"timeFormats":b[0][59]},{"narrow":b[0][331],"short":b[0][1479],"long":b[0][1480]},{"narrow":b[0][249],"short":b[0][1481],"long":b[0][1482]},{"narrow":b[0][1484],"short":b[0][1484],"long":b[0][1485]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1487],"dateFormats":b[0][1488],"timeFormats":b[0][3]},{"narrow":b[0][1489],"short":b[0][1490],"long":b[0][1491]},{"narrow":b[0][1492],"short":b[0][1493],"long":b[0][1494]},{"narrow":b[0][1495],"short":b[0][1495],"long":b[0][1496]},{"narrow":b[0][1497],"short":b[0][1498],"long":b[0][1498]},{"narrow":b[0][1499],"short":b[0][1499],"long":b[0][1499]},{"narrow":b[0][1500],"short":b[0][29],"long":b[0][1501]},{"narrow":b[0][1502],"short":b[0][1502],"long":b[0][1502]},{"latn":b[0][41],"mlym":b[0][1503]},{"short":a[15],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1504],"dateFormats":b[0][1505],"timeFormats":b[0][59]},{"narrow":b[0][12],"short":b[0][1506],"long":b[0][1507]},{"narrow":b[0][1358],"short":b[0][1508],"long":b[0][1509]},{"narrow":b[0][1511],"short":b[0][1512],"long":b[0][1513]},{"short":a[15],"medium":a[15],"full":a[8910],"long":a[8910],"availableFormats":b[0][1515],"dateFormats":b[0][269],"timeFormats":b[0][3]},{"narrow":b[0][1516],"short":b[0][1517],"long":b[0][1518]},{"narrow":b[0][978],"short":b[0][1260],"long":b[0][1519]},{"narrow":b[0][1521],"short":b[0][1521],"long":b[0][1522]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1524],"dateFormats":b[0][1525],"timeFormats":b[0][3]},{"narrow":b[0][1526],"short":b[0][1527],"long":b[0][1528]},{"narrow":b[0][1529],"short":b[0][1530],"long":b[0][1531]},{"narrow":b[0][1533],"short":b[0][1527],"long":b[0][1528]},{"narrow":b[0][1534],"short":b[0][1534],"long":b[0][1534]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1524],"dateFormats":b[0][1536],"timeFormats":b[0][3]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][140],"dateFormats":b[0][1539],"timeFormats":b[0][59]},{"narrow":b[0][1540],"short":b[0][1541],"long":b[0][1542]},{"narrow":b[0][1543],"short":b[0][1544],"long":b[0][1545]},{"narrow":b[0][1546],"short":b[0][1546],"long":b[0][1547]},{"narrow":b[0][1548],"short":b[0][1549],"long":b[0][1550]},{"narrow":b[0][1551],"short":b[0][1552],"long":b[0][1553]},{"narrow":b[0][1555],"short":b[0][1555],"long":b[0][1556]},{"short":a[535],"medium":a[535],"full":a[9042],"long":a[535],"availableFormats":b[0][1557],"dateFormats":b[0][1558],"timeFormats":b[0][59]},{"narrow":b[0][1559],"short":b[0][1560],"long":b[0][1561]},{"narrow":b[0][1562],"short":b[0][1563],"long":b[0][1563]},{"narrow":b[0][1565],"short":b[0][1565],"long":b[0][1566]},{"latn":b[0][1568],"mymr":b[0][1568]},{"narrow":b[0][12],"short":b[0][1570],"long":b[0][1570]},{"narrow":b[0][1571],"short":b[0][1571],"long":b[0][1572]},{"narrow":b[0][4],"short":b[0][5],"long":b[0][1573]},{"narrow":b[0][1574],"short":b[0][1575],"long":b[0][1576]},{"narrow":b[0][22],"short":b[0][22],"long":b[0][1578]},{"short":a[15],"medium":a[15],"full":a[535],"long":a[3122],"availableFormats":b[0][1579],"dateFormats":b[0][1580],"timeFormats":b[0][218]},{"narrow":b[0][4],"short":b[0][791],"long":b[0][1581]},{"narrow":b[0][15],"short":b[0][1582],"long":b[0][1582]},{"narrow":b[0][1583],"short":b[0][1584],"long":b[0][1585]},{"narrow":b[0][15],"short":b[0][1586],"long":b[0][1586]},{"narrow":b[0][1587],"short":b[0][1588],"long":b[0][1589]},{"narrow":b[0][24],"short":b[0][1590],"long":b[0][1590]},{"narrow":b[0][12],"short":b[0][1591],"long":b[0][1591]},{"narrow":b[0][1592],"short":b[0][1592],"long":b[0][1592]},{"narrow":b[0][12],"short":b[0][1593],"long":b[0][1594]},{"narrow":b[0][12],"short":b[0][1595],"long":b[0][1595]},{"narrow":b[0][1597],"short":b[0][1598],"long":b[0][1599]},{"narrow":b[0][1600],"short":b[0][1601],"long":b[0][1602]},{"narrow":b[0][22],"short":b[0][22],"long":b[0][1603]},{"short":a[15],"medium":a[15],"full":a[535],"long":a[535],"availableFormats":b[0][1604],"dateFormats":b[0][141],"timeFormats":b[0][59]},{"narrow":b[0][1605],"short":b[0][1606],"long":b[0][1607]},{"narrow":b[0][1608],"short":b[0][1609],"long":b[0][1610]},{"narrow":b[0][1611],"short":b[0][1611],"long":b[0][1611]},{"narrow":b[0][12],"short":b[0][1612],"long":b[0][1612]},{"short":a[15],"medium":a[15],"full":a[535],"long":a[535],"availableFormats":b[0][1604],"dateFormats":b[0][141],"timeFormats":b[0][3]},{"narrow":b[0][4],"short":b[0][1614],"long":b[0][1615]},{"narrow":b[0][855],"short":b[0][1616],"long":b[0][1617]},{"narrow":b[0][12],"short":b[0][1618],"long":b[0][1619]},{"narrow":b[0][1620],"short":b[0][1621],"long":b[0][1622]},{"narrow":b[0][32],"short":b[0][1623],"long":b[0][1623]},{"narrow":b[0][1624],"short":b[0][1624],"long":b[0][1624]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][851],"dateFormats":b[0][818],"timeFormats":b[0][59]},{"narrow":b[0][12],"short":b[0][1629],"long":b[0][1630]},{"narrow":b[0][1631],"short":b[0][1632],"long":b[0][1633]},{"narrow":b[0][1635],"short":b[0][1635],"long":b[0][1636]},{"short":a[15],"medium":a[15],"full":a[535],"long":a[3122],"availableFormats":b[0][1637],"dateFormats":b[0][1580],"timeFormats":b[0][1638]},{"narrow":b[0][4],"short":b[0][1639],"long":b[0][1581]},{"narrow":b[0][419],"short":b[0][1640],"long":b[0][1641]},{"narrow":b[0][1643],"short":b[0][1643],"long":b[0][1643]},{"short":a[535],"medium":a[535],"full":a[9406],"long":a[15],"availableFormats":b[0][1645],"dateFormats":b[0][1646],"timeFormats":b[0][59]},{"narrow":b[0][12],"short":b[0][1647],"long":b[0][1647]},{"narrow":b[0][7],"short":b[0][1648],"long":b[0][1648]},{"narrow":b[0][1650],"short":b[0][1650],"long":b[0][1651]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1652],"dateFormats":b[0][1653],"timeFormats":b[0][1654]},{"narrow":b[0][1655],"short":b[0][1656],"long":b[0][1657]},{"narrow":b[0][1658],"short":b[0][1659],"long":b[0][1660]},{"narrow":b[0][1662],"short":b[0][1662],"long":b[0][1663]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1664],"dateFormats":b[0][1665],"timeFormats":b[0][3]},{"narrow":b[0][4],"short":b[0][1666],"long":b[0][1667]},{"narrow":b[0][7],"short":b[0][1668],"long":b[0][1669]},{"narrow":b[0][1671],"short":b[0][1671],"long":b[0][1671]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1664],"dateFormats":b[0][1665],"timeFormats":b[0][59]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1674],"dateFormats":b[0][1675],"timeFormats":b[0][3]},{"narrow":b[0][1676],"short":b[0][1677],"long":b[0][1677]},{"narrow":b[0][1678],"short":b[0][1679],"long":b[0][1680]},{"latn":b[0][41],"orya":b[0][41]},{"short":a[15],"medium":a[15],"full":a[15],"long":a[15],"availableFormats":b[0][1681],"dateFormats":b[0][1682],"timeFormats":b[0][59]},{"narrow":b[0][1306],"short":b[0][1683],"long":b[0][1684]},{"narrow":b[0][1685],"short":b[0][1686],"long":b[0][1687]},{"narrow":b[0][1689],"short":b[0][1689],"long":b[0][1689]},{"latn":b[0][1690]},{"short":a[15],"medium":a[15],"full":a[535],"long":a[535],"availableFormats":b[0][1692],"dateFormats":b[0][530],"timeFormats":b[0][3]},{"narrow":b[0][1693],"short":b[0][1694],"long":b[0][1695]},{"narrow":b[0][1696],"short":b[0][1697],"long":b[0][1698]},{"narrow":b[0][1700],"short":b[0][1700],"long":b[0][1701]},{"narrow":b[0][1702],"short":b[0][1703],"long":b[0][1703]},{"narrow":b[0][1704],"short":b[0][1704],"long":b[0][1704]},{"guru":b[0][41],"latn":b[0][41]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1705],"dateFormats":b[0][1706],"timeFormats":b[0][3]},{"narrow":b[0][12],"short":b[0][1707],"long":b[0][1707]},{"narrow":b[0][7],"short":b[0][1708],"long":b[0][1708]},{"narrow":b[0][1709],"short":b[0][1709],"long":b[0][1709]},{"arabext":b[0][1273],"latn":b[0][390]},{"short":a[15],"medium":a[15],"full":a[535],"long":a[535],"availableFormats":b[0][1711],"dateFormats":b[0][1712],"timeFormats":b[0][59]},{"narrow":b[0][1713],"short":b[0][1714],"long":b[0][1715]},{"narrow":b[0][1716],"short":b[0][1717],"long":b[0][1718]},{"narrow":b[0][1719],"short":b[0][1719],"long":b[0][1719]},{"narrow":b[0][24],"short":b[0][1720],"long":b[0][1720]},{"narrow":b[0][12],"short":b[0][1721],"long":b[0][1722]},{"narrow":b[0][12],"short":b[0][1723],"long":b[0][1723]},{"narrow":b[0][1724],"short":b[0][1724],"long":b[0][1724]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1726],"dateFormats":b[0][1727],"timeFormats":b[0][730]},{"narrow":b[0][12],"short":b[0][1728],"long":b[0][1728]},{"narrow":b[0][7],"short":b[0][734],"long":b[0][734]},{"narrow":b[0][1730],"short":b[0][1730],"long":b[0][1730]},{"narrow":b[0][12],"short":b[0][1731],"long":b[0][1731]},{"arabext":b[0][1273],"latn":b[0][1732]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1734],"dateFormats":b[0][1735],"timeFormats":b[0][59]},{"narrow":b[0][4],"short":b[0][1736],"long":b[0][1737]},{"narrow":b[0][1738],"short":b[0][1739],"long":b[0][1740]},{"narrow":b[0][12],"short":b[0][1741],"long":b[0][1741]},{"narrow":b[0][1742],"short":b[0][1742],"long":b[0][1743]},{"narrow":b[0][1744],"short":b[0][1744],"long":b[0][1744]},{"short":a[15],"medium":a[15],"full":a[9829],"long":a[9829],"availableFormats":b[0][1746],"dateFormats":b[0][674],"timeFormats":b[0][59]},{"narrow":b[0][1738],"short":b[0][1747],"long":b[0][1740]},{"narrow":b[0][12],"short":b[0][1749],"long":b[0][1741]},{"narrow":b[0][1750],"short":b[0][1750],"long":b[0][1743]},{"short":a[15],"medium":a[15],"full":a[9829],"long":a[9829],"availableFormats":b[0][1746],"dateFormats":b[0][674],"timeFormats":b[0][3]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1757],"dateFormats":b[0][1758],"timeFormats":b[0][59]},{"narrow":b[0][12],"short":b[0][1759],"long":b[0][1760]},{"narrow":b[0][641],"short":b[0][1761],"long":b[0][1762]},{"narrow":b[0][1763],"short":b[0][1764],"long":b[0][1764]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1767],"dateFormats":b[0][1768],"timeFormats":b[0][59]},{"narrow":b[0][1769],"short":b[0][1770],"long":b[0][1771]},{"narrow":b[0][1772],"short":b[0][1773],"long":b[0][1774]},{"narrow":b[0][1776],"short":b[0][1776],"long":b[0][1777]},{"narrow":b[0][12],"short":b[0][1778],"long":b[0][1779]},{"narrow":b[0][7],"short":b[0][1780],"long":b[0][1781]},{"narrow":b[0][1783],"short":b[0][1783],"long":b[0][1784]},{"decimal":b[0][38],"currency":b[0][69],"percent":b[0][215]},{"short":a[15],"medium":a[15],"full":a[15],"long":a[15],"availableFormats":b[0][1786],"dateFormats":b[0][1787],"timeFormats":b[0][59]},{"narrow":b[0][1788],"short":b[0][1789],"long":b[0][1790]},{"narrow":b[0][676],"short":b[0][1791],"long":b[0][1792]},{"narrow":b[0][1793],"short":b[0][1793],"long":b[0][1794]},{"narrow":b[0][1795],"short":b[0][1795],"long":b[0][1796]},{"narrow":b[0][24],"short":b[0][1797],"long":b[0][1797]},{"narrow":b[0][1799],"short":b[0][1800],"long":b[0][1792]},{"narrow":b[0][1801],"short":b[0][1801],"long":b[0][1796]},{"narrow":b[0][1803],"short":b[0][1749],"long":b[0][1804]},{"narrow":b[0][1165],"short":b[0][1805],"long":b[0][1806]},{"narrow":b[0][157],"short":b[0][157],"long":b[0][1808]},{"short":a[15],"medium":a[15],"full":a[15],"long":a[15],"availableFormats":b[0][1809],"dateFormats":b[0][1810],"timeFormats":b[0][129]},{"narrow":b[0][1306],"short":b[0][1811],"long":b[0][1812]},{"narrow":b[0][1813],"short":b[0][1813],"long":b[0][1814]},{"narrow":b[0][15],"short":b[0][1816],"long":b[0][1816]},{"narrow":b[0][15],"short":b[0][1817],"long":b[0][1817]},{"narrow":b[0][1818],"short":b[0][1819],"long":b[0][1820]},{"narrow":b[0][24],"short":b[0][1821],"long":b[0][1821]},{"narrow":b[0][12],"short":b[0][1822],"long":b[0][1822]},{"narrow":b[0][12],"short":b[0][1823],"long":b[0][1823]},{"narrow":b[0][32],"short":b[0][1824],"long":b[0][1824]},{"narrow":b[0][12],"short":b[0][1825],"long":b[0][1825]},{"latn":b[0][1826]},{"short":a[15],"medium":a[15],"full":a[15],"long":a[15],"availableFormats":b[0][1809],"dateFormats":b[0][1810],"timeFormats":b[0][59]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][140],"dateFormats":b[0][72],"timeFormats":b[0][59]},{"narrow":b[0][12],"short":b[0][1832],"long":b[0][1833]},{"narrow":b[0][7],"short":b[0][1834],"long":b[0][1835]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][140],"dateFormats":b[0][1836],"timeFormats":b[0][59]},{"narrow":b[0][1837],"short":b[0][1838],"long":b[0][1839]},{"narrow":b[0][1840],"short":b[0][1841],"long":b[0][1842]},{"narrow":b[0][1844],"short":b[0][1844],"long":b[0][1844]},{"narrow":b[0][1845],"short":b[0][1846],"long":b[0][1847]},{"narrow":b[0][1848],"short":b[0][1849],"long":b[0][1850]},{"narrow":b[0][434],"short":b[0][434],"long":b[0][1852]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1853],"dateFormats":b[0][150],"timeFormats":b[0][59]},{"narrow":b[0][12],"short":b[0][1854],"long":b[0][1855]},{"narrow":b[0][1856],"short":b[0][1857],"long":b[0][1858]},{"narrow":b[0][1860],"short":b[0][1860],"long":b[0][1861]},{"narrow":b[0][1862],"short":b[0][1863],"long":b[0][1864]},{"narrow":b[0][1865],"short":b[0][1866],"long":b[0][1867]},{"narrow":b[0][1869],"short":b[0][1869],"long":b[0][1870]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1873],"dateFormats":b[0][1874],"timeFormats":b[0][59]},{"narrow":b[0][4],"short":b[0][1875],"long":b[0][1876]},{"narrow":b[0][1877],"short":b[0][1878],"long":b[0][1879]},{"narrow":b[0][1880],"short":b[0][1880],"long":b[0][1881]},{"narrow":b[0][1181],"short":b[0][458],"long":b[0][1882]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1883],"dateFormats":b[0][58],"timeFormats":b[0][59]},{"narrow":b[0][1884],"short":b[0][1885],"long":b[0][1886]},{"narrow":b[0][1887],"short":b[0][1888],"long":b[0][1889]},{"narrow":b[0][1891],"short":b[0][1891],"long":b[0][1892]},{"narrow":b[0][1893],"short":b[0][1894],"long":b[0][1895]},{"narrow":b[0][7],"short":b[0][1896],"long":b[0][1897]},{"narrow":b[0][1899],"short":b[0][1899],"long":b[0][1900]},{"narrow":b[0][1901],"short":b[0][1902],"long":b[0][1903]},{"narrow":b[0][7],"short":b[0][1904],"long":b[0][1905]},{"narrow":b[0][1907],"short":b[0][1907],"long":b[0][1908]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1909],"dateFormats":b[0][141],"timeFormats":b[0][218]},{"narrow":b[0][1910],"short":b[0][1911],"long":b[0][1912]},{"narrow":b[0][1913],"short":b[0][1914],"long":b[0][1915]},{"narrow":b[0][1917],"short":b[0][1917],"long":b[0][1918]},{"short":a[535],"medium":a[15],"full":a[15],"long":a[15],"availableFormats":b[0][1920],"dateFormats":b[0][1921],"timeFormats":b[0][129]},{"narrow":b[0][319],"short":b[0][1922],"long":b[0][1923]},{"narrow":b[0][1924],"short":b[0][1925],"long":b[0][1926]},{"narrow":b[0][1927],"short":b[0][1927],"long":b[0][1928]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1930],"dateFormats":b[0][1931],"timeFormats":b[0][59]},{"narrow":b[0][319],"short":b[0][1932],"long":b[0][1933]},{"narrow":b[0][1934],"short":b[0][1935],"long":b[0][1936]},{"narrow":b[0][1938],"short":b[0][1938],"long":b[0][1939]},{"narrow":b[0][1941],"short":b[0][1942],"long":b[0][1943]},{"latn":b[0][1944]},{"narrow":b[0][1945],"short":b[0][1946],"long":b[0][1947]},{"narrow":b[0][1948],"short":b[0][1949],"long":b[0][1950]},{"narrow":b[0][22],"short":b[0][22],"long":b[0][1951]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][926],"dateFormats":b[0][1952],"timeFormats":b[0][3]},{"narrow":b[0][12],"short":b[0][1953],"long":b[0][1954]},{"narrow":b[0][1955],"short":b[0][1956],"long":b[0][1957]},{"narrow":b[0][1959],"short":b[0][1959],"long":b[0][1960]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][926],"dateFormats":b[0][1952],"timeFormats":b[0][59]},{"short":a[15],"medium":a[15],"full":a[10904],"long":a[10904],"availableFormats":b[0][1965],"dateFormats":b[0][1966],"timeFormats":b[0][1967]},{"narrow":b[0][1968],"short":b[0][1969],"long":b[0][1970]},{"narrow":b[0][1971],"short":b[0][1972],"long":b[0][1973]},{"narrow":b[0][1975],"short":b[0][1975],"long":b[0][1976]},{"short":a[15],"medium":a[15],"full":a[10904],"long":a[10904],"availableFormats":b[0][1965],"dateFormats":b[0][1966],"timeFormats":b[0][59]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1979],"dateFormats":b[0][330],"timeFormats":b[0][218]},{"narrow":b[0][331],"short":b[0][332],"long":b[0][1980]},{"narrow":b[0][334],"short":b[0][1981],"long":b[0][1982]},{"narrow":b[0][341],"short":b[0][342],"long":b[0][1984]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1979],"dateFormats":b[0][330],"timeFormats":b[0][59]},{"narrow":b[0][319],"short":b[0][1986],"long":b[0][1987]},{"narrow":b[0][1988],"short":b[0][1989],"long":b[0][1990]},{"narrow":b[0][15],"short":b[0][1992],"long":b[0][1992]},{"narrow":b[0][15],"short":b[0][1993],"long":b[0][1993]},{"narrow":b[0][1719],"short":b[0][1994],"long":b[0][1995]},{"narrow":b[0][24],"short":b[0][1996],"long":b[0][1996]},{"narrow":b[0][12],"short":b[0][1997],"long":b[0][1997]},{"narrow":b[0][12],"short":b[0][29],"long":b[0][1998]},{"narrow":b[0][32],"short":b[0][1999],"long":b[0][1999]},{"narrow":b[0][12],"short":b[0][2000],"long":b[0][2000]},{"narrow":b[0][2001],"short":b[0][2001],"long":b[0][2001]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][2003],"dateFormats":b[0][2004],"timeFormats":b[0][1638]},{"narrow":b[0][4],"short":b[0][2005],"long":b[0][2006]},{"narrow":b[0][419],"short":b[0][2007],"long":b[0][2008]},{"narrow":b[0][15],"short":b[0][2010],"long":b[0][2010]},{"narrow":b[0][15],"short":b[0][2011],"long":b[0][2011]},{"narrow":b[0][2012],"short":b[0][423],"long":b[0][2013]},{"narrow":b[0][24],"short":b[0][2014],"long":b[0][2014]},{"narrow":b[0][12],"short":b[0][2015],"long":b[0][2015]},{"narrow":b[0][865],"short":b[0][865],"long":b[0][2016]},{"narrow":b[0][12],"short":b[0][29],"long":b[0][2017]},{"narrow":b[0][32],"short":b[0][2018],"long":b[0][2018]},{"narrow":b[0][12],"short":b[0][2019],"long":b[0][2019]},{"narrow":b[0][2020],"short":b[0][2020],"long":b[0][2020]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][2003],"dateFormats":b[0][2022],"timeFormats":b[0][1638]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][2023],"dateFormats":b[0][150],"timeFormats":b[0][59]},{"narrow":b[0][4],"short":b[0][1127],"long":b[0][152]},{"narrow":b[0][7],"short":b[0][155],"long":b[0][155]},{"narrow":b[0][22],"short":b[0][22],"long":b[0][435]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][2025],"dateFormats":b[0][475],"timeFormats":b[0][59]},{"narrow":b[0][4],"short":b[0][2026],"long":b[0][2027]},{"narrow":b[0][7],"short":b[0][2028],"long":b[0][2029]},{"short":a[15],"medium":a[15],"full":a[11175],"long":a[11175],"availableFormats":b[0][2033],"dateFormats":b[0][269],"timeFormats":b[0][2034]},{"narrow":b[0][2035],"short":b[0][2036],"long":b[0][2037]},{"narrow":b[0][2038],"short":b[0][2039],"long":b[0][2040]},{"narrow":b[0][12],"short":b[0][2042],"long":b[0][2043]},{"narrow":b[0][2044],"short":b[0][2044],"long":b[0][2045]},{"latn":b[0][41],"tamldec":b[0][41]},{"short":a[15],"medium":a[15],"full":a[11175],"long":a[11175],"availableFormats":b[0][2033],"dateFormats":b[0][269],"timeFormats":b[0][59]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][2049],"dateFormats":b[0][2050],"timeFormats":b[0][3]},{"narrow":b[0][2051],"short":b[0][2052],"long":b[0][2053]},{"narrow":b[0][2054],"short":b[0][2055],"long":b[0][2056]},{"narrow":b[0][2058],"short":b[0][2058],"long":b[0][2059]},{"latn":b[0][41],"telu":b[0][41]},{"narrow":b[0][2060],"short":b[0][2061],"long":b[0][2062]},{"narrow":b[0][2063],"short":b[0][2064],"long":b[0][2065]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][2068],"dateFormats":b[0][2069],"timeFormats":b[0][2070]},{"narrow":b[0][2071],"short":b[0][2071],"long":b[0][2072]},{"narrow":b[0][2073],"short":b[0][2074],"long":b[0][2075]},{"narrow":b[0][2076],"short":b[0][2076],"long":b[0][2077]},{"narrow":b[0][15],"short":b[0][2079],"long":b[0][2079]},{"narrow":b[0][15],"short":b[0][2080],"long":b[0][2080]},{"narrow":b[0][2081],"short":b[0][2082],"long":b[0][2083]},{"narrow":b[0][24],"short":b[0][2084],"long":b[0][2084]},{"narrow":b[0][2085],"short":b[0][2085],"long":b[0][2085]},{"narrow":b[0][12],"short":b[0][2086],"long":b[0][2086]},{"narrow":b[0][2087],"short":b[0][2087],"long":b[0][2087]},{"narrow":b[0][12],"short":b[0][2088],"long":b[0][2089]},{"narrow":b[0][2090],"short":b[0][2090],"long":b[0][2091]},{"narrow":b[0][32],"short":b[0][2092],"long":b[0][2092]},{"narrow":b[0][12],"short":b[0][2093],"long":b[0][2093]},{"narrow":b[0][2094],"short":b[0][2094],"long":b[0][2094]},{"narrow":b[0][2095],"short":b[0][2095],"long":b[0][2095]},{"latn":b[0][41],"thai":b[0][41]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1664],"dateFormats":b[0][2097],"timeFormats":b[0][3]},{"narrow":b[0][84],"short":b[0][2098],"long":b[0][2099]},{"narrow":b[0][2100],"short":b[0][2101],"long":b[0][2101]},{"narrow":b[0][92],"short":b[0][92],"long":b[0][92]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1664],"dateFormats":b[0][2103],"timeFormats":b[0][3]},{"narrow":b[0][84],"short":b[0][2104],"long":b[0][2105]},{"narrow":b[0][2100],"short":b[0][2106],"long":b[0][2106]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][140],"dateFormats":b[0][2108],"timeFormats":b[0][59]},{"narrow":b[0][2109],"short":b[0][8],"long":b[0][8]},{"latn":b[0][2110]},{"short":a[535],"medium":a[15],"full":a[15],"long":a[15],"availableFormats":b[0][2112],"dateFormats":b[0][1223],"timeFormats":b[0][3]},{"narrow":b[0][2113],"short":b[0][2114],"long":b[0][2115]},{"narrow":b[0][2116],"short":b[0][2117],"long":b[0][2118]},{"narrow":b[0][2119],"short":b[0][2119],"long":b[0][2120]},{"latn":b[0][2121]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][2123],"dateFormats":b[0][2124],"timeFormats":b[0][59]},{"narrow":b[0][2125],"short":b[0][2126],"long":b[0][2127]},{"narrow":b[0][2128],"short":b[0][2129],"long":b[0][2130]},{"narrow":b[0][15],"short":b[0][2132],"long":b[0][2132]},{"narrow":b[0][15],"short":b[0][2133],"long":b[0][2133]},{"narrow":b[0][2134],"short":b[0][2134],"long":b[0][2135]},{"narrow":b[0][24],"short":b[0][2136],"long":b[0][2136]},{"narrow":b[0][12],"short":b[0][2137],"long":b[0][2137]},{"narrow":b[0][2138],"short":b[0][2138],"long":b[0][2138]},{"narrow":b[0][12],"short":b[0][2139],"long":b[0][2139]},{"decimal":b[0][38],"currency":b[0][159],"percent":b[0][2140]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][2123],"dateFormats":b[0][2124],"timeFormats":b[0][3]},{"narrow":b[0][2142],"short":b[0][2143],"long":b[0][2144]},{"narrow":b[0][2145],"short":b[0][2146],"long":b[0][2147]},{"narrow":b[0][2149],"short":b[0][2149],"long":b[0][2150]},{"short":a[11970],"medium":a[11970],"full":a[535],"long":a[535],"availableFormats":b[0][2151],"dateFormats":b[0][2152],"timeFormats":b[0][3]},{"narrow":b[0][12],"short":b[0][2153],"long":b[0][2154]},{"narrow":b[0][2155],"short":b[0][2156],"long":b[0][2157]},{"narrow":b[0][10],"short":b[0][10],"long":b[0][2158]},{"narrow":b[0][2160],"short":b[0][2160],"long":b[0][2161]},{"narrow":b[0][12],"short":b[0][2162],"long":b[0][2162]},{"narrow":b[0][2163],"short":b[0][2163],"long":b[0][2163]},{"narrow":b[0][2164],"short":b[0][2164],"long":b[0][2165]},{"short":a[15],"medium":a[15],"full":a[12026],"long":a[12026],"availableFormats":b[0][2167],"dateFormats":b[0][2168],"timeFormats":b[0][59]},{"narrow":b[0][2169],"short":b[0][2170],"long":b[0][2171]},{"narrow":b[0][2172],"short":b[0][2173],"long":b[0][2174]},{"narrow":b[0][15],"short":b[0][2176],"long":b[0][2176]},{"narrow":b[0][2177],"short":b[0][2178],"long":b[0][2179]},{"narrow":b[0][2180],"short":b[0][2181],"long":b[0][2182]},{"narrow":b[0][24],"short":b[0][2183],"long":b[0][2183]},{"narrow":b[0][12],"short":b[0][2184],"long":b[0][2185]},{"narrow":b[0][12],"short":b[0][29],"long":b[0][2186]},{"narrow":b[0][12],"short":b[0][2187],"long":b[0][2187]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][2189],"dateFormats":b[0][2190],"timeFormats":b[0][3]},{"narrow":b[0][4],"short":b[0][2191],"long":b[0][2191]},{"narrow":b[0][7],"short":b[0][2192],"long":b[0][2192]},{"narrow":b[0][2194],"short":b[0][2194],"long":b[0][2194]},{"narrow":b[0][12],"short":b[0][29],"long":b[0][2195]},{"arabext":b[0][2196],"latn":b[0][390]},{"short":a[15],"medium":a[15],"full":a[15],"long":a[15],"availableFormats":b[0][2198],"dateFormats":b[0][2199],"timeFormats":b[0][2200]},{"narrow":b[0][2201],"short":b[0][2202],"long":b[0][2203]},{"narrow":b[0][2204],"short":b[0][2205],"long":b[0][2206]},{"narrow":b[0][2208],"short":b[0][2208],"long":b[0][2209]},{"narrow":b[0][12],"short":b[0][29],"long":b[0][2210]},{"latn":b[0][2211]},{"narrow":b[0][12],"short":b[0][2213],"long":b[0][754]},{"narrow":b[0][7],"short":b[0][2214],"long":b[0][734]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][140],"dateFormats":b[0][2215],"timeFormats":b[0][59]},{"narrow":b[0][1306],"short":b[0][2216],"long":b[0][2217]},{"narrow":b[0][2218],"short":b[0][2219],"long":b[0][2220]},{"narrow":b[0][2221],"short":b[0][2221],"long":b[0][2221]},{"narrow":b[0][12],"short":b[0][2223],"long":b[0][2223]},{"narrow":b[0][7],"short":b[0][2224],"long":b[0][2224]},{"latn":b[0][41],"vaii":b[0][41]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][1853],"dateFormats":b[0][150],"timeFormats":b[0][3]},{"narrow":b[0][12],"short":b[0][2225],"long":b[0][2225]},{"narrow":b[0][7],"short":b[0][2226],"long":b[0][2226]},{"short":a[12283],"medium":a[12283],"full":a[3526],"long":a[3526],"availableFormats":b[0][2227],"dateFormats":b[0][2228],"timeFormats":b[0][59]},{"narrow":b[0][12],"short":b[0][2229],"long":b[0][2230]},{"narrow":b[0][2231],"short":b[0][2232],"long":b[0][2233]},{"narrow":b[0][2235],"short":b[0][2235],"long":b[0][2235]},{"narrow":b[0][2236],"short":b[0][2236],"long":b[0][2236]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][2237],"dateFormats":b[0][2238],"timeFormats":b[0][59]},{"narrow":b[0][2239],"short":b[0][2240],"long":b[0][2241]},{"narrow":b[0][2242],"short":b[0][2243],"long":b[0][2244]},{"narrow":b[0][2245],"short":b[0][2245],"long":b[0][2245]},{"latn":b[0][2246]},{"narrow":b[0][2247],"short":b[0][2248],"long":b[0][2249]},{"narrow":b[0][2251],"short":b[0][2251],"long":b[0][2252]},{"narrow":b[0][12],"short":b[0][2253],"long":b[0][2254]},{"narrow":b[0][2255],"short":b[0][2256],"long":b[0][2257]},{"narrow":b[0][2259],"short":b[0][2259],"long":b[0][2260]},{"short":a[535],"medium":a[15],"full":a[535],"long":a[535],"availableFormats":b[0][2261],"dateFormats":b[0][2262],"timeFormats":b[0][59]},{"narrow":b[0][12],"short":b[0][2263],"long":b[0][2263]},{"narrow":b[0][7],"short":b[0][2264],"long":b[0][2264]},{"narrow":b[0][2266],"short":b[0][2267],"long":b[0][2267]},{"narrow":b[0][12],"short":b[0][2268],"long":b[0][2269]},{"narrow":b[0][7],"short":b[0][2270],"long":b[0][2271]},{"narrow":b[0][2273],"short":b[0][2273],"long":b[0][2274]},{"narrow":b[0][12],"short":b[0][2275],"long":b[0][2276]},{"narrow":b[0][7],"short":b[0][2277],"long":b[0][2278]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][2280],"dateFormats":b[0][58],"timeFormats":b[0][59]},{"narrow":b[0][7],"short":b[0][1896],"long":b[0][2281]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][2282],"dateFormats":b[0][2283],"timeFormats":b[0][2284]},{"narrow":b[0][12],"short":b[0][1101],"long":b[0][2285]},{"narrow":b[0][2286],"short":b[0][2287],"long":b[0][2288]},{"narrow":b[0][2289],"short":b[0][2289],"long":b[0][2289]},{"narrow":b[0][2291],"short":b[0][2292],"long":b[0][2292]},{"narrow":b[0][15],"short":b[0][2293],"long":b[0][2294]},{"narrow":b[0][2295],"short":b[0][2295],"long":b[0][2295]},{"narrow":b[0][24],"short":b[0][2296],"long":b[0][2297]},{"narrow":b[0][2298],"short":b[0][2298],"long":b[0][2298]},{"narrow":b[0][2299],"short":b[0][2299],"long":b[0][2299]},{"narrow":b[0][2300],"short":b[0][2300],"long":b[0][2300]},{"narrow":b[0][32],"short":b[0][2301],"long":b[0][2301]},{"narrow":b[0][2302],"short":b[0][2302],"long":b[0][2302]},{"hanidec":b[0][41],"latn":b[0][41]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][2304],"dateFormats":b[0][2305],"timeFormats":b[0][2284]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][2307],"dateFormats":b[0][2305],"timeFormats":b[0][2284]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][2309],"dateFormats":b[0][2310],"timeFormats":b[0][2284]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][2312],"dateFormats":b[0][2313],"timeFormats":b[0][2314]},{"narrow":b[0][2286],"short":b[0][2315],"long":b[0][2288]},{"narrow":b[0][2316],"short":b[0][2316],"long":b[0][2316]},{"narrow":b[0][2317],"short":b[0][2318],"long":b[0][2318]},{"narrow":b[0][15],"short":b[0][2293],"long":b[0][2293]},{"narrow":b[0][2319],"short":b[0][2319],"long":b[0][2319]},{"narrow":b[0][24],"short":b[0][2320],"long":b[0][2320]},{"narrow":b[0][2321],"short":b[0][2321],"long":b[0][2321]},{"narrow":b[0][12],"short":b[0][2322],"long":b[0][2322]},{"narrow":b[0][2323],"short":b[0][2323],"long":b[0][2323]},{"narrow":b[0][12],"short":b[0][2324],"long":b[0][2324]},{"narrow":b[0][2325],"short":b[0][2325],"long":b[0][2325]},{"narrow":b[0][32],"short":b[0][2326],"long":b[0][2326]},{"narrow":b[0][2327],"short":b[0][2327],"long":b[0][2327]},{"narrow":b[0][2328],"short":b[0][2328],"long":b[0][2328]},{"hanidec":b[0][2329],"latn":b[0][2329]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][2331],"dateFormats":b[0][2332],"timeFormats":b[0][2314]},{"narrow":b[0][2319],"short":b[0][2333],"long":b[0][2333]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][2335],"dateFormats":b[0][2],"timeFormats":b[0][3]},{"narrow":b[0][2336],"short":b[0][2337],"long":b[0][2338]},{"narrow":b[0][2339],"short":b[0][2340],"long":b[0][2341]}];b[2]=[{"months":b[1][1],"days":b[1][2],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][4],"days":b[1][2],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][2],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][2],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][2],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][2],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][1],"days":b[1][2],"eras":b[1][10],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][2],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][2],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][2],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][1],"days":b[1][2],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][2],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][1],"days":b[1][2],"eras":b[1][20],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][42]},{"months":b[1][24],"days":b[1][25],"eras":b[1][3],"dayPeriods":b[0][50]},{"months":b[1][9],"days":b[1][25],"dayPeriods":b[0][50]},{"months":b[1][5],"days":b[1][25],"eras":b[1][6],"dayPeriods":b[0][50]},{"months":b[1][7],"days":b[1][25],"eras":b[1][6],"dayPeriods":b[0][50]},{"months":b[1][7],"days":b[1][25],"eras":b[1][8],"dayPeriods":b[0][50]},{"months":b[1][9],"days":b[1][25],"eras":b[1][6],"dayPeriods":b[0][50]},{"months":b[1][24],"days":b[1][25],"eras":b[1][26],"dayPeriods":b[0][50]},{"months":b[1][11],"days":b[1][25],"eras":b[1][12],"dayPeriods":b[0][50]},{"months":b[1][13],"days":b[1][25],"eras":b[1][14],"dayPeriods":b[0][50]},{"months":b[1][15],"days":b[1][25],"eras":b[1][16],"dayPeriods":b[0][50]},{"months":b[1][24],"days":b[1][25],"eras":b[1][17],"dayPeriods":b[0][50]},{"months":b[1][18],"days":b[1][25],"eras":b[1][19],"dayPeriods":b[0][50]},{"months":b[1][24],"days":b[1][25],"eras":b[1][27],"dayPeriods":b[0][50]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][28],"currencies":b[0][55]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][28],"currencies":b[0][56]},{"months":b[1][30],"days":b[1][31],"eras":b[1][3],"dayPeriods":b[0][66]},{"months":b[1][9],"days":b[1][31],"dayPeriods":b[0][66]},{"months":b[1][5],"days":b[1][31],"eras":b[1][6],"dayPeriods":b[0][66]},{"months":b[1][7],"days":b[1][31],"eras":b[1][6],"dayPeriods":b[0][66]},{"months":b[1][7],"days":b[1][31],"eras":b[1][8],"dayPeriods":b[0][66]},{"months":b[1][9],"days":b[1][31],"eras":b[1][6],"dayPeriods":b[0][66]},{"months":b[1][30],"days":b[1][31],"eras":b[1][32],"dayPeriods":b[0][66]},{"months":b[1][11],"days":b[1][31],"eras":b[1][12],"dayPeriods":b[0][66]},{"months":b[1][13],"days":b[1][31],"eras":b[1][14],"dayPeriods":b[0][66]},{"months":b[1][15],"days":b[1][31],"eras":b[1][16],"dayPeriods":b[0][66]},{"months":b[1][30],"days":b[1][31],"eras":b[1][17],"dayPeriods":b[0][66]},{"months":b[1][18],"days":b[1][31],"eras":b[1][19],"dayPeriods":b[0][66]},{"months":b[1][30],"days":b[1][31],"eras":b[1][27],"dayPeriods":b[0][66]},{"nu":b[0][37],"patterns":b[1][33],"symbols":b[1][28],"currencies":b[0][70]},{"months":b[1][35],"days":b[1][36],"eras":b[1][3],"dayPeriods":b[0][78]},{"months":b[1][9],"days":b[1][36],"dayPeriods":b[0][78]},{"months":b[1][5],"days":b[1][36],"eras":b[1][6],"dayPeriods":b[0][78]},{"months":b[1][7],"days":b[1][36],"eras":b[1][6],"dayPeriods":b[0][78]},{"months":b[1][7],"days":b[1][36],"eras":b[1][8],"dayPeriods":b[0][78]},{"months":b[1][9],"days":b[1][36],"eras":b[1][6],"dayPeriods":b[0][78]},{"months":b[1][35],"days":b[1][36],"eras":b[1][37],"dayPeriods":b[0][78]},{"months":b[1][11],"days":b[1][36],"eras":b[1][12],"dayPeriods":b[0][78]},{"months":b[1][13],"days":b[1][36],"eras":b[1][14],"dayPeriods":b[0][78]},{"months":b[1][15],"days":b[1][36],"eras":b[1][16],"dayPeriods":b[0][78]},{"months":b[1][35],"days":b[1][36],"eras":b[1][17],"dayPeriods":b[0][78]},{"months":b[1][18],"days":b[1][36],"eras":b[1][19],"dayPeriods":b[0][78]},{"months":b[1][35],"days":b[1][36],"eras":b[1][27],"dayPeriods":b[0][78]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][81]},{"months":b[1][39],"days":b[1][40],"eras":b[1][3],"dayPeriods":b[0][90]},{"months":b[1][9],"days":b[1][40],"dayPeriods":b[0][90]},{"months":b[1][5],"days":b[1][40],"eras":b[1][6],"dayPeriods":b[0][90]},{"months":b[1][41],"days":b[1][40],"eras":b[1][6],"dayPeriods":b[0][90]},{"months":b[1][41],"days":b[1][40],"eras":b[1][8],"dayPeriods":b[0][90]},{"months":b[1][9],"days":b[1][40],"eras":b[1][6],"dayPeriods":b[0][90]},{"months":b[1][39],"days":b[1][40],"eras":b[1][42],"dayPeriods":b[0][90]},{"months":b[1][11],"days":b[1][40],"eras":b[1][12],"dayPeriods":b[0][90]},{"months":b[1][13],"days":b[1][40],"eras":b[1][14],"dayPeriods":b[0][90]},{"months":b[1][15],"days":b[1][40],"eras":b[1][16],"dayPeriods":b[0][90]},{"months":b[1][39],"days":b[1][40],"eras":b[1][17],"dayPeriods":b[0][90]},{"months":b[1][18],"days":b[1][40],"eras":b[1][19],"dayPeriods":b[0][90]},{"months":b[1][39],"days":b[1][40],"eras":b[1][27],"dayPeriods":b[0][90]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][94]},{"months":b[1][44],"days":b[1][45],"eras":b[1][46],"dayPeriods":b[0][102]},{"months":b[1][9],"days":b[1][45],"dayPeriods":b[0][102]},{"months":b[1][47],"days":b[1][45],"eras":b[1][6],"dayPeriods":b[0][102]},{"months":b[1][48],"days":b[1][45],"eras":b[1][6],"dayPeriods":b[0][102]},{"months":b[1][48],"days":b[1][45],"eras":b[1][8],"dayPeriods":b[0][102]},{"months":b[1][9],"days":b[1][45],"eras":b[1][6],"dayPeriods":b[0][102]},{"months":b[1][44],"days":b[1][45],"eras":b[1][49],"dayPeriods":b[0][102]},{"months":b[1][50],"days":b[1][45],"eras":b[1][51],"dayPeriods":b[0][102]},{"months":b[1][13],"days":b[1][45],"eras":b[1][14],"dayPeriods":b[0][102]},{"months":b[1][52],"days":b[1][45],"eras":b[1][53],"dayPeriods":b[0][102]},{"months":b[1][44],"days":b[1][45],"eras":b[1][54],"dayPeriods":b[0][102]},{"months":b[1][55],"days":b[1][45],"eras":b[1][56],"dayPeriods":b[0][102]},{"months":b[1][44],"days":b[1][45],"eras":b[1][57],"dayPeriods":b[0][102]},{"nu":b[0][117],"patterns":b[1][58],"symbols":b[1][59],"currencies":b[0][121]},{"months":b[1][44],"days":b[1][45],"eras":b[1][60],"dayPeriods":b[0][102]},{"nu":b[0][117],"patterns":b[1][58],"symbols":b[1][59],"currencies":b[0][124]},{"months":b[1][61],"days":b[1][45],"eras":b[1][46],"dayPeriods":b[0][102]},{"months":b[1][61],"days":b[1][45],"eras":b[1][49],"dayPeriods":b[0][102]},{"months":b[1][61],"days":b[1][45],"eras":b[1][54],"dayPeriods":b[0][102]},{"months":b[1][61],"days":b[1][45],"eras":b[1][57],"dayPeriods":b[0][102]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][62],"currencies":b[0][121]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][59],"currencies":b[0][121]},{"nu":b[0][117],"patterns":b[1][58],"symbols":b[1][59],"currencies":b[0][128]},{"months":b[1][64],"days":b[1][45],"eras":b[1][46],"dayPeriods":b[0][102]},{"months":b[1][64],"days":b[1][45],"eras":b[1][49],"dayPeriods":b[0][102]},{"months":b[1][64],"days":b[1][45],"eras":b[1][54],"dayPeriods":b[0][102]},{"months":b[1][64],"days":b[1][45],"eras":b[1][57],"dayPeriods":b[0][102]},{"months":b[1][65],"days":b[1][45],"eras":b[1][46],"dayPeriods":b[0][102]},{"months":b[1][65],"days":b[1][45],"eras":b[1][49],"dayPeriods":b[0][102]},{"months":b[1][65],"days":b[1][45],"eras":b[1][54],"dayPeriods":b[0][102]},{"months":b[1][65],"days":b[1][45],"eras":b[1][57],"dayPeriods":b[0][102]},{"nu":b[0][117],"patterns":b[1][58],"symbols":b[1][62],"currencies":b[0][133]},{"months":b[1][67],"days":b[1][45],"eras":b[1][46],"dayPeriods":b[0][102]},{"months":b[1][67],"days":b[1][45],"eras":b[1][49],"dayPeriods":b[0][102]},{"months":b[1][67],"days":b[1][45],"eras":b[1][54],"dayPeriods":b[0][102]},{"months":b[1][67],"days":b[1][45],"eras":b[1][57],"dayPeriods":b[0][102]},{"months":b[1][68],"days":b[1][45],"eras":b[1][46],"dayPeriods":b[0][102]},{"months":b[1][68],"days":b[1][45],"eras":b[1][49],"dayPeriods":b[0][102]},{"months":b[1][68],"days":b[1][45],"eras":b[1][54],"dayPeriods":b[0][102]},{"months":b[1][68],"days":b[1][45],"eras":b[1][57],"dayPeriods":b[0][102]},{"nu":b[0][117],"patterns":b[1][58],"symbols":b[1][62],"currencies":b[0][121]},{"nu":b[0][117],"patterns":b[1][58],"symbols":b[1][59],"currencies":b[0][138]},{"nu":b[0][117],"patterns":b[1][58],"symbols":b[1][59],"currencies":b[0][139]},{"months":b[1][70],"days":b[1][71],"eras":b[1][3],"dayPeriods":b[0][146]},{"months":b[1][9],"days":b[1][71],"dayPeriods":b[0][146]},{"months":b[1][5],"days":b[1][71],"eras":b[1][6],"dayPeriods":b[0][146]},{"months":b[1][7],"days":b[1][71],"eras":b[1][6],"dayPeriods":b[0][146]},{"months":b[1][7],"days":b[1][71],"eras":b[1][8],"dayPeriods":b[0][146]},{"months":b[1][9],"days":b[1][71],"eras":b[1][6],"dayPeriods":b[0][146]},{"months":b[1][70],"days":b[1][71],"eras":b[1][72],"dayPeriods":b[0][146]},{"months":b[1][11],"days":b[1][71],"eras":b[1][12],"dayPeriods":b[0][146]},{"months":b[1][13],"days":b[1][71],"eras":b[1][14],"dayPeriods":b[0][146]},{"months":b[1][15],"days":b[1][71],"eras":b[1][16],"dayPeriods":b[0][146]},{"months":b[1][70],"days":b[1][71],"eras":b[1][17],"dayPeriods":b[0][146]},{"months":b[1][18],"days":b[1][71],"eras":b[1][19],"dayPeriods":b[0][146]},{"months":b[1][70],"days":b[1][71],"eras":b[1][27],"dayPeriods":b[0][146]},{"nu":b[0][148],"patterns":b[1][73],"symbols":b[1][74],"currencies":b[0][70]},{"months":b[1][76],"days":b[1][77],"eras":b[1][3],"dayPeriods":b[0][156]},{"months":b[1][9],"days":b[1][77],"dayPeriods":b[0][156]},{"months":b[1][5],"days":b[1][77],"eras":b[1][6],"dayPeriods":b[0][156]},{"months":b[1][7],"days":b[1][77],"eras":b[1][6],"dayPeriods":b[0][156]},{"months":b[1][7],"days":b[1][77],"eras":b[1][8],"dayPeriods":b[0][156]},{"months":b[1][9],"days":b[1][77],"eras":b[1][6],"dayPeriods":b[0][156]},{"months":b[1][76],"days":b[1][77],"eras":b[1][78],"dayPeriods":b[0][156]},{"months":b[1][11],"days":b[1][77],"eras":b[1][12],"dayPeriods":b[0][156]},{"months":b[1][13],"days":b[1][77],"eras":b[1][14],"dayPeriods":b[0][156]},{"months":b[1][15],"days":b[1][77],"eras":b[1][16],"dayPeriods":b[0][156]},{"months":b[1][76],"days":b[1][77],"eras":b[1][17],"dayPeriods":b[0][156]},{"months":b[1][18],"days":b[1][77],"eras":b[1][19],"dayPeriods":b[0][156]},{"months":b[1][76],"days":b[1][77],"eras":b[1][27],"dayPeriods":b[0][156]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][22],"currencies":b[0][160]},{"months":b[1][81],"days":b[1][82],"eras":b[1][83],"dayPeriods":b[0][171]},{"months":b[1][84],"days":b[1][82],"dayPeriods":b[0][171]},{"months":b[1][5],"days":b[1][82],"eras":b[1][6],"dayPeriods":b[0][171]},{"months":b[1][85],"days":b[1][82],"eras":b[1][86],"dayPeriods":b[0][171]},{"months":b[1][85],"days":b[1][82],"eras":b[1][8],"dayPeriods":b[0][171]},{"months":b[1][9],"days":b[1][82],"eras":b[1][6],"dayPeriods":b[0][171]},{"months":b[1][81],"days":b[1][82],"eras":b[1][87],"dayPeriods":b[0][171]},{"months":b[1][11],"days":b[1][82],"eras":b[1][12],"dayPeriods":b[0][171]},{"months":b[1][13],"days":b[1][82],"eras":b[1][14],"dayPeriods":b[0][171]},{"months":b[1][15],"days":b[1][82],"eras":b[1][16],"dayPeriods":b[0][171]},{"months":b[1][81],"days":b[1][82],"eras":b[1][88],"dayPeriods":b[0][171]},{"months":b[1][18],"days":b[1][82],"eras":b[1][19],"dayPeriods":b[0][171]},{"months":b[1][81],"days":b[1][82],"eras":b[1][89],"dayPeriods":b[0][171]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][90],"currencies":b[0][188]},{"months":b[1][92],"days":b[1][93],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][93],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][93],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][93],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][93],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][93],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][92],"days":b[1][93],"eras":b[1][94],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][93],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][93],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][93],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][92],"days":b[1][93],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][93],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][92],"days":b[1][93],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][95],"currencies":b[0][199]},{"months":b[1][9],"days":b[1][96],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][96],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][96],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][96],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][96],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][96],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][96],"eras":b[1][72],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][96],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][96],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][96],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][96],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][96],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][96],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][22],"currencies":b[0][70]},{"months":b[1][98],"days":b[1][99],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][99],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][99],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][99],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][99],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][99],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][98],"days":b[1][99],"eras":b[1][72],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][99],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][99],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][99],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][98],"days":b[1][99],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][99],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][98],"days":b[1][99],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][95],"currencies":b[0][204]},{"months":b[1][101],"days":b[1][102],"eras":b[1][3],"dayPeriods":b[0][212]},{"months":b[1][9],"days":b[1][102],"dayPeriods":b[0][212]},{"months":b[1][5],"days":b[1][102],"eras":b[1][6],"dayPeriods":b[0][212]},{"months":b[1][7],"days":b[1][102],"eras":b[1][6],"dayPeriods":b[0][212]},{"months":b[1][7],"days":b[1][102],"eras":b[1][8],"dayPeriods":b[0][212]},{"months":b[1][9],"days":b[1][102],"eras":b[1][6],"dayPeriods":b[0][212]},{"months":b[1][101],"days":b[1][102],"eras":b[1][103],"dayPeriods":b[0][212]},{"months":b[1][11],"days":b[1][102],"eras":b[1][12],"dayPeriods":b[0][212]},{"months":b[1][13],"days":b[1][102],"eras":b[1][14],"dayPeriods":b[0][212]},{"months":b[1][15],"days":b[1][102],"eras":b[1][16],"dayPeriods":b[0][212]},{"months":b[1][101],"days":b[1][102],"eras":b[1][17],"dayPeriods":b[0][212]},{"months":b[1][18],"days":b[1][102],"eras":b[1][19],"dayPeriods":b[0][212]},{"months":b[1][101],"days":b[1][102],"eras":b[1][27],"dayPeriods":b[0][212]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][70]},{"months":b[1][106],"days":b[1][107],"eras":b[1][3],"dayPeriods":b[0][225]},{"months":b[1][9],"days":b[1][107],"dayPeriods":b[0][225]},{"months":b[1][5],"days":b[1][107],"eras":b[1][6],"dayPeriods":b[0][225]},{"months":b[1][7],"days":b[1][107],"eras":b[1][6],"dayPeriods":b[0][225]},{"months":b[1][7],"days":b[1][107],"eras":b[1][8],"dayPeriods":b[0][225]},{"months":b[1][9],"days":b[1][107],"eras":b[1][6],"dayPeriods":b[0][225]},{"months":b[1][106],"days":b[1][107],"eras":b[1][108],"dayPeriods":b[0][225]},{"months":b[1][11],"days":b[1][107],"eras":b[1][12],"dayPeriods":b[0][225]},{"months":b[1][13],"days":b[1][107],"eras":b[1][14],"dayPeriods":b[0][225]},{"months":b[1][15],"days":b[1][107],"eras":b[1][16],"dayPeriods":b[0][225]},{"months":b[1][106],"days":b[1][107],"eras":b[1][17],"dayPeriods":b[0][225]},{"months":b[1][18],"days":b[1][107],"eras":b[1][19],"dayPeriods":b[0][225]},{"months":b[1][106],"days":b[1][107],"eras":b[1][27],"dayPeriods":b[0][225]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][228]},{"months":b[1][110],"days":b[1][111],"eras":b[1][3],"dayPeriods":b[0][233]},{"months":b[1][9],"days":b[1][111],"dayPeriods":b[0][233]},{"months":b[1][5],"days":b[1][111],"eras":b[1][6],"dayPeriods":b[0][233]},{"months":b[1][7],"days":b[1][111],"eras":b[1][6],"dayPeriods":b[0][233]},{"months":b[1][7],"days":b[1][111],"eras":b[1][8],"dayPeriods":b[0][233]},{"months":b[1][9],"days":b[1][111],"eras":b[1][6],"dayPeriods":b[0][233]},{"months":b[1][110],"days":b[1][111],"eras":b[1][112],"dayPeriods":b[0][233]},{"months":b[1][11],"days":b[1][111],"eras":b[1][12],"dayPeriods":b[0][233]},{"months":b[1][13],"days":b[1][111],"eras":b[1][14],"dayPeriods":b[0][233]},{"months":b[1][15],"days":b[1][111],"eras":b[1][16],"dayPeriods":b[0][233]},{"months":b[1][110],"days":b[1][111],"eras":b[1][17],"dayPeriods":b[0][233]},{"months":b[1][18],"days":b[1][111],"eras":b[1][19],"dayPeriods":b[0][233]},{"months":b[1][110],"days":b[1][111],"eras":b[1][27],"dayPeriods":b[0][233]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][235]},{"months":b[1][113],"days":b[1][114],"eras":b[1][3],"dayPeriods":b[0][242]},{"months":b[1][9],"days":b[1][114],"dayPeriods":b[0][242]},{"months":b[1][5],"days":b[1][114],"eras":b[1][6],"dayPeriods":b[0][242]},{"months":b[1][7],"days":b[1][114],"eras":b[1][6],"dayPeriods":b[0][242]},{"months":b[1][7],"days":b[1][114],"eras":b[1][8],"dayPeriods":b[0][242]},{"months":b[1][9],"days":b[1][114],"eras":b[1][6],"dayPeriods":b[0][242]},{"months":b[1][113],"days":b[1][114],"eras":b[1][115],"dayPeriods":b[0][242]},{"months":b[1][11],"days":b[1][114],"eras":b[1][12],"dayPeriods":b[0][242]},{"months":b[1][13],"days":b[1][114],"eras":b[1][14],"dayPeriods":b[0][242]},{"months":b[1][15],"days":b[1][114],"eras":b[1][16],"dayPeriods":b[0][242]},{"months":b[1][113],"days":b[1][114],"eras":b[1][17],"dayPeriods":b[0][242]},{"months":b[1][18],"days":b[1][114],"eras":b[1][19],"dayPeriods":b[0][242]},{"months":b[1][113],"days":b[1][114],"eras":b[1][27],"dayPeriods":b[0][242]},{"nu":b[0][37],"patterns":b[1][33],"symbols":b[1][22],"currencies":b[0][160]},{"months":b[1][117],"days":b[1][118],"eras":b[1][3],"dayPeriods":b[0][252]},{"months":b[1][9],"days":b[1][118],"dayPeriods":b[0][252]},{"months":b[1][5],"days":b[1][118],"eras":b[1][6],"dayPeriods":b[0][252]},{"months":b[1][7],"days":b[1][118],"eras":b[1][6],"dayPeriods":b[0][252]},{"months":b[1][7],"days":b[1][118],"eras":b[1][8],"dayPeriods":b[0][252]},{"months":b[1][9],"days":b[1][118],"eras":b[1][6],"dayPeriods":b[0][252]},{"months":b[1][117],"days":b[1][118],"eras":b[1][119],"dayPeriods":b[0][252]},{"months":b[1][120],"days":b[1][118],"eras":b[1][12],"dayPeriods":b[0][252]},{"months":b[1][121],"days":b[1][118],"eras":b[1][14],"dayPeriods":b[0][252]},{"months":b[1][122],"days":b[1][118],"eras":b[1][16],"dayPeriods":b[0][252]},{"months":b[1][117],"days":b[1][118],"eras":b[1][17],"dayPeriods":b[0][252]},{"months":b[1][18],"days":b[1][118],"eras":b[1][19],"dayPeriods":b[0][252]},{"months":b[1][117],"days":b[1][118],"eras":b[1][27],"dayPeriods":b[0][252]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][28],"currencies":b[0][258]},{"months":b[1][124],"days":b[1][125],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][125],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][125],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][125],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][125],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][125],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][124],"days":b[1][125],"eras":b[1][126],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][125],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][125],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][125],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][124],"days":b[1][125],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][125],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][124],"days":b[1][125],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][70]},{"months":b[1][128],"days":b[1][129],"eras":b[1][3],"dayPeriods":b[0][275]},{"months":b[1][9],"days":b[1][129],"dayPeriods":b[0][275]},{"months":b[1][5],"days":b[1][129],"eras":b[1][6],"dayPeriods":b[0][275]},{"months":b[1][7],"days":b[1][129],"eras":b[1][6],"dayPeriods":b[0][275]},{"months":b[1][7],"days":b[1][129],"eras":b[1][8],"dayPeriods":b[0][275]},{"months":b[1][9],"days":b[1][129],"eras":b[1][6],"dayPeriods":b[0][275]},{"months":b[1][128],"days":b[1][129],"eras":b[1][130],"dayPeriods":b[0][275]},{"months":b[1][11],"days":b[1][129],"eras":b[1][12],"dayPeriods":b[0][275]},{"months":b[1][131],"days":b[1][129],"eras":b[1][132],"dayPeriods":b[0][275]},{"months":b[1][133],"days":b[1][129],"eras":b[1][134],"dayPeriods":b[0][275]},{"months":b[1][128],"days":b[1][129],"eras":b[1][17],"dayPeriods":b[0][275]},{"months":b[1][18],"days":b[1][129],"eras":b[1][19],"dayPeriods":b[0][275]},{"months":b[1][128],"days":b[1][129],"eras":b[1][27],"dayPeriods":b[0][275]},{"nu":b[0][148],"patterns":b[1][135],"symbols":b[1][136],"currencies":b[0][283]},{"months":b[1][138],"days":b[1][139],"eras":b[1][3],"dayPeriods":b[0][291]},{"months":b[1][9],"days":b[1][139],"dayPeriods":b[0][291]},{"months":b[1][5],"days":b[1][139],"eras":b[1][6],"dayPeriods":b[0][291]},{"months":b[1][7],"days":b[1][139],"eras":b[1][6],"dayPeriods":b[0][291]},{"months":b[1][7],"days":b[1][139],"eras":b[1][8],"dayPeriods":b[0][291]},{"months":b[1][9],"days":b[1][139],"eras":b[1][6],"dayPeriods":b[0][291]},{"months":b[1][138],"days":b[1][139],"eras":b[1][140],"dayPeriods":b[0][291]},{"months":b[1][11],"days":b[1][139],"eras":b[1][12],"dayPeriods":b[0][291]},{"months":b[1][13],"days":b[1][139],"eras":b[1][14],"dayPeriods":b[0][291]},{"months":b[1][15],"days":b[1][139],"eras":b[1][16],"dayPeriods":b[0][291]},{"months":b[1][138],"days":b[1][139],"eras":b[1][17],"dayPeriods":b[0][291]},{"months":b[1][18],"days":b[1][139],"eras":b[1][19],"dayPeriods":b[0][291]},{"months":b[1][138],"days":b[1][139],"eras":b[1][27],"dayPeriods":b[0][291]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][141],"currencies":b[0][294]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][141],"currencies":b[0][70]},{"months":b[1][143],"days":b[1][144],"eras":b[1][3],"dayPeriods":b[0][302]},{"months":b[1][9],"days":b[1][144],"dayPeriods":b[0][302]},{"months":b[1][5],"days":b[1][144],"eras":b[1][6],"dayPeriods":b[0][302]},{"months":b[1][7],"days":b[1][144],"eras":b[1][6],"dayPeriods":b[0][302]},{"months":b[1][7],"days":b[1][144],"eras":b[1][8],"dayPeriods":b[0][302]},{"months":b[1][9],"days":b[1][144],"eras":b[1][6],"dayPeriods":b[0][302]},{"months":b[1][143],"days":b[1][144],"eras":b[1][145],"dayPeriods":b[0][302]},{"months":b[1][11],"days":b[1][144],"eras":b[1][12],"dayPeriods":b[0][302]},{"months":b[1][13],"days":b[1][144],"eras":b[1][14],"dayPeriods":b[0][302]},{"months":b[1][15],"days":b[1][144],"eras":b[1][16],"dayPeriods":b[0][302]},{"months":b[1][143],"days":b[1][144],"eras":b[1][17],"dayPeriods":b[0][302]},{"months":b[1][18],"days":b[1][144],"eras":b[1][19],"dayPeriods":b[0][302]},{"months":b[1][143],"days":b[1][144],"eras":b[1][146],"dayPeriods":b[0][302]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][307]},{"months":b[1][148],"days":b[1][149],"eras":b[1][3],"dayPeriods":b[0][314]},{"months":b[1][9],"days":b[1][149],"dayPeriods":b[0][314]},{"months":b[1][5],"days":b[1][149],"eras":b[1][6],"dayPeriods":b[0][314]},{"months":b[1][7],"days":b[1][149],"eras":b[1][6],"dayPeriods":b[0][314]},{"months":b[1][7],"days":b[1][149],"eras":b[1][8],"dayPeriods":b[0][314]},{"months":b[1][9],"days":b[1][149],"eras":b[1][6],"dayPeriods":b[0][314]},{"months":b[1][148],"days":b[1][149],"eras":b[1][150],"dayPeriods":b[0][314]},{"months":b[1][11],"days":b[1][149],"eras":b[1][12],"dayPeriods":b[0][314]},{"months":b[1][151],"days":b[1][149],"eras":b[1][14],"dayPeriods":b[0][314]},{"months":b[1][15],"days":b[1][149],"eras":b[1][16],"dayPeriods":b[0][314]},{"months":b[1][148],"days":b[1][149],"eras":b[1][17],"dayPeriods":b[0][314]},{"months":b[1][18],"days":b[1][149],"eras":b[1][19],"dayPeriods":b[0][314]},{"months":b[1][148],"days":b[1][149],"eras":b[1][27],"dayPeriods":b[0][314]},{"nu":b[0][37],"patterns":b[1][73],"symbols":b[1][152],"currencies":b[0][70]},{"months":b[1][154],"days":b[1][155],"eras":b[1][3],"dayPeriods":b[0][325]},{"months":b[1][9],"days":b[1][155],"dayPeriods":b[0][325]},{"months":b[1][5],"days":b[1][155],"eras":b[1][6],"dayPeriods":b[0][325]},{"months":b[1][7],"days":b[1][155],"eras":b[1][6],"dayPeriods":b[0][325]},{"months":b[1][7],"days":b[1][155],"eras":b[1][8],"dayPeriods":b[0][325]},{"months":b[1][9],"days":b[1][155],"eras":b[1][6],"dayPeriods":b[0][325]},{"months":b[1][154],"days":b[1][155],"eras":b[1][156],"dayPeriods":b[0][325]},{"months":b[1][11],"days":b[1][155],"eras":b[1][12],"dayPeriods":b[0][325]},{"months":b[1][13],"days":b[1][155],"eras":b[1][14],"dayPeriods":b[0][325]},{"months":b[1][15],"days":b[1][155],"eras":b[1][16],"dayPeriods":b[0][325]},{"months":b[1][154],"days":b[1][155],"eras":b[1][17],"dayPeriods":b[0][325]},{"months":b[1][18],"days":b[1][155],"eras":b[1][19],"dayPeriods":b[0][325]},{"months":b[1][154],"days":b[1][155],"eras":b[1][27],"dayPeriods":b[0][325]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][95],"currencies":b[0][328]},{"months":b[1][158],"days":b[1][159],"eras":b[1][160],"dayPeriods":b[0][338]},{"months":b[1][9],"days":b[1][159],"dayPeriods":b[0][338]},{"months":b[1][161],"days":b[1][159],"eras":b[1][6],"dayPeriods":b[0][338]},{"months":b[1][162],"days":b[1][159],"eras":b[1][6],"dayPeriods":b[0][338]},{"months":b[1][162],"days":b[1][159],"eras":b[1][8],"dayPeriods":b[0][338]},{"months":b[1][9],"days":b[1][159],"eras":b[1][6],"dayPeriods":b[0][338]},{"months":b[1][158],"days":b[1][159],"eras":b[1][163],"dayPeriods":b[0][338]},{"months":b[1][164],"days":b[1][159],"eras":b[1][12],"dayPeriods":b[0][338]},{"months":b[1][165],"days":b[1][159],"eras":b[1][166],"dayPeriods":b[0][338]},{"months":b[1][167],"days":b[1][159],"eras":b[1][168],"dayPeriods":b[0][338]},{"months":b[1][158],"days":b[1][159],"eras":b[1][169],"dayPeriods":b[0][338]},{"months":b[1][170],"days":b[1][159],"eras":b[1][19],"dayPeriods":b[0][338]},{"months":b[1][158],"days":b[1][159],"eras":b[1][171],"dayPeriods":b[0][338]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][95],"currencies":b[0][352]},{"months":b[1][173],"days":b[1][174],"eras":b[1][175],"dayPeriods":b[0][361]},{"months":b[1][176],"days":b[1][174],"dayPeriods":b[0][361]},{"months":b[1][5],"days":b[1][174],"eras":b[1][6],"dayPeriods":b[0][361]},{"months":b[1][7],"days":b[1][174],"eras":b[1][6],"dayPeriods":b[0][361]},{"months":b[1][7],"days":b[1][174],"eras":b[1][8],"dayPeriods":b[0][361]},{"months":b[1][9],"days":b[1][174],"eras":b[1][6],"dayPeriods":b[0][361]},{"months":b[1][173],"days":b[1][174],"eras":b[1][177],"dayPeriods":b[0][361]},{"months":b[1][11],"days":b[1][174],"eras":b[1][12],"dayPeriods":b[0][361]},{"months":b[1][13],"days":b[1][174],"eras":b[1][14],"dayPeriods":b[0][361]},{"months":b[1][15],"days":b[1][174],"eras":b[1][16],"dayPeriods":b[0][361]},{"months":b[1][173],"days":b[1][174],"eras":b[1][17],"dayPeriods":b[0][361]},{"months":b[1][18],"days":b[1][174],"eras":b[1][19],"dayPeriods":b[0][361]},{"months":b[1][173],"days":b[1][174],"eras":b[1][27],"dayPeriods":b[0][361]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][95],"currencies":b[0][364]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][95],"currencies":b[0][365]},{"months":b[1][178],"days":b[1][179],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][179],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][179],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][179],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][179],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][179],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][178],"days":b[1][179],"eras":b[1][72],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][179],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][179],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][179],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][178],"days":b[1][179],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][179],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][178],"days":b[1][179],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][180],"currencies":b[0][370]},{"months":b[1][181],"days":b[1][182],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][182],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][182],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][182],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][182],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][182],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][181],"days":b[1][182],"eras":b[1][183],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][182],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][182],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][182],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][181],"days":b[1][182],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][182],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][181],"days":b[1][182],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][377]},{"months":b[1][185],"days":b[1][186],"eras":b[1][3],"dayPeriods":b[0][385]},{"months":b[1][9],"days":b[1][186],"dayPeriods":b[0][385]},{"months":b[1][5],"days":b[1][186],"eras":b[1][6],"dayPeriods":b[0][385]},{"months":b[1][7],"days":b[1][186],"eras":b[1][6],"dayPeriods":b[0][385]},{"months":b[1][7],"days":b[1][186],"eras":b[1][8],"dayPeriods":b[0][385]},{"months":b[1][9],"days":b[1][186],"eras":b[1][6],"dayPeriods":b[0][385]},{"months":b[1][185],"days":b[1][186],"eras":b[1][187],"dayPeriods":b[0][385]},{"months":b[1][11],"days":b[1][186],"eras":b[1][12],"dayPeriods":b[0][385]},{"months":b[1][13],"days":b[1][186],"eras":b[1][14],"dayPeriods":b[0][385]},{"months":b[1][15],"days":b[1][186],"eras":b[1][16],"dayPeriods":b[0][385]},{"months":b[1][185],"days":b[1][186],"eras":b[1][17],"dayPeriods":b[0][385]},{"months":b[1][18],"days":b[1][186],"eras":b[1][19],"dayPeriods":b[0][385]},{"months":b[1][185],"days":b[1][186],"eras":b[1][27],"dayPeriods":b[0][385]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][388]},{"nu":b[0][117],"patterns":b[1][58],"symbols":b[1][188],"currencies":b[0][70]},{"months":b[1][190],"days":b[1][191],"eras":b[1][3],"dayPeriods":b[0][398]},{"months":b[1][9],"days":b[1][191],"dayPeriods":b[0][398]},{"months":b[1][5],"days":b[1][191],"eras":b[1][6],"dayPeriods":b[0][398]},{"months":b[1][7],"days":b[1][191],"eras":b[1][6],"dayPeriods":b[0][398]},{"months":b[1][7],"days":b[1][191],"eras":b[1][8],"dayPeriods":b[0][398]},{"months":b[1][9],"days":b[1][191],"eras":b[1][6],"dayPeriods":b[0][398]},{"months":b[1][190],"days":b[1][191],"eras":b[1][192],"dayPeriods":b[0][398]},{"months":b[1][11],"days":b[1][191],"eras":b[1][12],"dayPeriods":b[0][398]},{"months":b[1][13],"days":b[1][191],"eras":b[1][14],"dayPeriods":b[0][398]},{"months":b[1][15],"days":b[1][191],"eras":b[1][16],"dayPeriods":b[0][398]},{"months":b[1][190],"days":b[1][191],"eras":b[1][17],"dayPeriods":b[0][398]},{"months":b[1][18],"days":b[1][191],"eras":b[1][19],"dayPeriods":b[0][398]},{"months":b[1][190],"days":b[1][191],"eras":b[1][193],"dayPeriods":b[0][398]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][402]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][22],"currencies":b[0][370]},{"months":b[1][195],"days":b[1][196],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][196],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][196],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][196],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][196],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][196],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][195],"days":b[1][196],"eras":b[1][197],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][196],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][196],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][196],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][195],"days":b[1][196],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][196],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][195],"days":b[1][196],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][414]},{"months":b[1][199],"days":b[1][200],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][200],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][200],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][200],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][200],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][200],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][199],"days":b[1][200],"eras":b[1][201],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][200],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][200],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][200],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][199],"days":b[1][200],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][200],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][199],"days":b[1][200],"eras":b[1][20],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][95],"currencies":b[0][425]},{"months":b[1][203],"days":b[1][204],"eras":b[1][3],"dayPeriods":b[0][433]},{"months":b[1][9],"days":b[1][204],"dayPeriods":b[0][433]},{"months":b[1][5],"days":b[1][204],"eras":b[1][6],"dayPeriods":b[0][433]},{"months":b[1][7],"days":b[1][204],"eras":b[1][6],"dayPeriods":b[0][433]},{"months":b[1][7],"days":b[1][204],"eras":b[1][8],"dayPeriods":b[0][433]},{"months":b[1][9],"days":b[1][204],"eras":b[1][6],"dayPeriods":b[0][433]},{"months":b[1][203],"days":b[1][204],"eras":b[1][205],"dayPeriods":b[0][433]},{"months":b[1][11],"days":b[1][204],"eras":b[1][12],"dayPeriods":b[0][433]},{"months":b[1][13],"days":b[1][204],"eras":b[1][14],"dayPeriods":b[0][433]},{"months":b[1][15],"days":b[1][204],"eras":b[1][16],"dayPeriods":b[0][433]},{"months":b[1][203],"days":b[1][204],"eras":b[1][17],"dayPeriods":b[0][433]},{"months":b[1][18],"days":b[1][204],"eras":b[1][19],"dayPeriods":b[0][433]},{"months":b[1][203],"days":b[1][204],"eras":b[1][27],"dayPeriods":b[0][433]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][436]},{"months":b[1][207],"days":b[1][208],"eras":b[1][3],"dayPeriods":b[0][444]},{"months":b[1][9],"days":b[1][208],"dayPeriods":b[0][444]},{"months":b[1][5],"days":b[1][208],"eras":b[1][6],"dayPeriods":b[0][444]},{"months":b[1][7],"days":b[1][208],"eras":b[1][6],"dayPeriods":b[0][444]},{"months":b[1][7],"days":b[1][208],"eras":b[1][8],"dayPeriods":b[0][444]},{"months":b[1][9],"days":b[1][208],"eras":b[1][6],"dayPeriods":b[0][444]},{"months":b[1][207],"days":b[1][208],"eras":b[1][209],"dayPeriods":b[0][444]},{"months":b[1][11],"days":b[1][208],"eras":b[1][12],"dayPeriods":b[0][444]},{"months":b[1][13],"days":b[1][208],"eras":b[1][14],"dayPeriods":b[0][444]},{"months":b[1][15],"days":b[1][208],"eras":b[1][16],"dayPeriods":b[0][444]},{"months":b[1][207],"days":b[1][208],"eras":b[1][17],"dayPeriods":b[0][444]},{"months":b[1][18],"days":b[1][208],"eras":b[1][19],"dayPeriods":b[0][444]},{"months":b[1][207],"days":b[1][208],"eras":b[1][20],"dayPeriods":b[0][444]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][95],"currencies":b[0][447]},{"months":b[1][210],"days":b[1][208],"eras":b[1][3],"dayPeriods":b[0][444]},{"months":b[1][210],"days":b[1][208],"eras":b[1][209],"dayPeriods":b[0][444]},{"months":b[1][210],"days":b[1][208],"eras":b[1][17],"dayPeriods":b[0][444]},{"months":b[1][210],"days":b[1][208],"eras":b[1][20],"dayPeriods":b[0][444]},{"nu":b[0][37],"patterns":b[1][211],"symbols":b[1][28],"currencies":b[0][447]},{"nu":b[0][37],"patterns":b[1][212],"symbols":b[1][213],"currencies":b[0][452]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][213],"currencies":b[0][452]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][95],"currencies":b[0][453]},{"months":b[1][214],"days":b[1][215],"eras":b[1][3],"dayPeriods":b[0][460]},{"months":b[1][9],"days":b[1][215],"dayPeriods":b[0][460]},{"months":b[1][5],"days":b[1][215],"eras":b[1][6],"dayPeriods":b[0][460]},{"months":b[1][7],"days":b[1][215],"eras":b[1][6],"dayPeriods":b[0][460]},{"months":b[1][7],"days":b[1][215],"eras":b[1][8],"dayPeriods":b[0][460]},{"months":b[1][9],"days":b[1][215],"eras":b[1][6],"dayPeriods":b[0][460]},{"months":b[1][214],"days":b[1][215],"eras":b[1][216],"dayPeriods":b[0][460]},{"months":b[1][11],"days":b[1][215],"eras":b[1][12],"dayPeriods":b[0][460]},{"months":b[1][13],"days":b[1][215],"eras":b[1][14],"dayPeriods":b[0][460]},{"months":b[1][15],"days":b[1][215],"eras":b[1][16],"dayPeriods":b[0][460]},{"months":b[1][214],"days":b[1][215],"eras":b[1][17],"dayPeriods":b[0][460]},{"months":b[1][18],"days":b[1][215],"eras":b[1][19],"dayPeriods":b[0][460]},{"months":b[1][214],"days":b[1][215],"eras":b[1][27],"dayPeriods":b[0][460]},{"nu":b[0][37],"patterns":b[1][33],"symbols":b[1][217],"currencies":b[0][70]},{"months":b[1][219],"days":b[1][220],"eras":b[1][3],"dayPeriods":b[0][471]},{"months":b[1][9],"days":b[1][220],"dayPeriods":b[0][471]},{"months":b[1][5],"days":b[1][220],"eras":b[1][6],"dayPeriods":b[0][471]},{"months":b[1][7],"days":b[1][220],"eras":b[1][6],"dayPeriods":b[0][471]},{"months":b[1][7],"days":b[1][220],"eras":b[1][8],"dayPeriods":b[0][471]},{"months":b[1][9],"days":b[1][220],"eras":b[1][6],"dayPeriods":b[0][471]},{"months":b[1][219],"days":b[1][220],"eras":b[1][221],"dayPeriods":b[0][471]},{"months":b[1][11],"days":b[1][220],"eras":b[1][12],"dayPeriods":b[0][471]},{"months":b[1][13],"days":b[1][220],"eras":b[1][14],"dayPeriods":b[0][471]},{"months":b[1][15],"days":b[1][220],"eras":b[1][16],"dayPeriods":b[0][471]},{"months":b[1][219],"days":b[1][220],"eras":b[1][17],"dayPeriods":b[0][471]},{"months":b[1][18],"days":b[1][220],"eras":b[1][19],"dayPeriods":b[0][471]},{"months":b[1][219],"days":b[1][220],"eras":b[1][27],"dayPeriods":b[0][471]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][95],"currencies":b[0][474]},{"months":b[1][223],"days":b[1][224],"eras":b[1][3],"dayPeriods":b[0][482]},{"months":b[1][9],"days":b[1][224],"dayPeriods":b[0][482]},{"months":b[1][5],"days":b[1][224],"eras":b[1][6],"dayPeriods":b[0][482]},{"months":b[1][7],"days":b[1][224],"eras":b[1][6],"dayPeriods":b[0][482]},{"months":b[1][7],"days":b[1][224],"eras":b[1][8],"dayPeriods":b[0][482]},{"months":b[1][9],"days":b[1][224],"eras":b[1][6],"dayPeriods":b[0][482]},{"months":b[1][223],"days":b[1][224],"eras":b[1][225],"dayPeriods":b[0][482]},{"months":b[1][11],"days":b[1][224],"eras":b[1][12],"dayPeriods":b[0][482]},{"months":b[1][13],"days":b[1][224],"eras":b[1][14],"dayPeriods":b[0][482]},{"months":b[1][15],"days":b[1][224],"eras":b[1][16],"dayPeriods":b[0][482]},{"months":b[1][223],"days":b[1][224],"eras":b[1][17],"dayPeriods":b[0][482]},{"months":b[1][18],"days":b[1][224],"eras":b[1][19],"dayPeriods":b[0][482]},{"months":b[1][223],"days":b[1][224],"eras":b[1][27],"dayPeriods":b[0][482]},{"months":b[1][226],"days":b[1][227],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][227],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][227],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][227],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][227],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][227],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][226],"days":b[1][227],"eras":b[1][228],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][227],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][227],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][227],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][226],"days":b[1][227],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][227],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][226],"days":b[1][227],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][28],"currencies":b[0][70]},{"months":b[1][230],"days":b[1][231],"eras":b[1][3],"dayPeriods":b[0][502]},{"months":b[1][9],"days":b[1][231],"dayPeriods":b[0][502]},{"months":b[1][5],"days":b[1][231],"eras":b[1][6],"dayPeriods":b[0][502]},{"months":b[1][7],"days":b[1][231],"eras":b[1][6],"dayPeriods":b[0][502]},{"months":b[1][7],"days":b[1][231],"eras":b[1][8],"dayPeriods":b[0][502]},{"months":b[1][9],"days":b[1][231],"eras":b[1][6],"dayPeriods":b[0][502]},{"months":b[1][230],"days":b[1][231],"eras":b[1][72],"dayPeriods":b[0][502]},{"months":b[1][11],"days":b[1][231],"eras":b[1][12],"dayPeriods":b[0][502]},{"months":b[1][13],"days":b[1][231],"eras":b[1][14],"dayPeriods":b[0][502]},{"months":b[1][15],"days":b[1][231],"eras":b[1][16],"dayPeriods":b[0][502]},{"months":b[1][230],"days":b[1][231],"eras":b[1][17],"dayPeriods":b[0][502]},{"months":b[1][18],"days":b[1][231],"eras":b[1][19],"dayPeriods":b[0][502]},{"months":b[1][230],"days":b[1][231],"eras":b[1][27],"dayPeriods":b[0][502]},{"nu":b[0][503],"patterns":b[1][232],"symbols":b[1][233],"currencies":b[0][505]},{"months":b[1][234],"days":b[1][235],"eras":b[1][3],"dayPeriods":b[0][512]},{"months":b[1][9],"days":b[1][235],"dayPeriods":b[0][512]},{"months":b[1][5],"days":b[1][235],"eras":b[1][6],"dayPeriods":b[0][512]},{"months":b[1][7],"days":b[1][235],"eras":b[1][6],"dayPeriods":b[0][512]},{"months":b[1][7],"days":b[1][235],"eras":b[1][8],"dayPeriods":b[0][512]},{"months":b[1][9],"days":b[1][235],"eras":b[1][6],"dayPeriods":b[0][512]},{"months":b[1][234],"days":b[1][235],"eras":b[1][236],"dayPeriods":b[0][512]},{"months":b[1][11],"days":b[1][235],"eras":b[1][12],"dayPeriods":b[0][512]},{"months":b[1][13],"days":b[1][235],"eras":b[1][14],"dayPeriods":b[0][512]},{"months":b[1][15],"days":b[1][235],"eras":b[1][16],"dayPeriods":b[0][512]},{"months":b[1][234],"days":b[1][235],"eras":b[1][17],"dayPeriods":b[0][512]},{"months":b[1][18],"days":b[1][235],"eras":b[1][19],"dayPeriods":b[0][512]},{"months":b[1][234],"days":b[1][235],"eras":b[1][27],"dayPeriods":b[0][512]},{"months":b[1][238],"days":b[1][239],"eras":b[1][3],"dayPeriods":b[0][524]},{"months":b[1][9],"days":b[1][239],"dayPeriods":b[0][524]},{"months":b[1][5],"days":b[1][239],"eras":b[1][6],"dayPeriods":b[0][524]},{"months":b[1][7],"days":b[1][239],"eras":b[1][6],"dayPeriods":b[0][524]},{"months":b[1][7],"days":b[1][239],"eras":b[1][8],"dayPeriods":b[0][524]},{"months":b[1][9],"days":b[1][239],"eras":b[1][6],"dayPeriods":b[0][524]},{"months":b[1][238],"days":b[1][239],"eras":b[1][240],"dayPeriods":b[0][524]},{"months":b[1][11],"days":b[1][239],"eras":b[1][12],"dayPeriods":b[0][524]},{"months":b[1][13],"days":b[1][239],"eras":b[1][14],"dayPeriods":b[0][524]},{"months":b[1][15],"days":b[1][239],"eras":b[1][16],"dayPeriods":b[0][524]},{"months":b[1][238],"days":b[1][239],"eras":b[1][17],"dayPeriods":b[0][524]},{"months":b[1][18],"days":b[1][239],"eras":b[1][19],"dayPeriods":b[0][524]},{"months":b[1][238],"days":b[1][239],"eras":b[1][27],"dayPeriods":b[0][524]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][241],"currencies":b[0][528]},{"months":b[1][244],"days":b[1][245],"eras":b[1][3],"dayPeriods":b[0][537]},{"months":b[1][9],"days":b[1][245],"dayPeriods":b[0][537]},{"months":b[1][5],"days":b[1][245],"eras":b[1][6],"dayPeriods":b[0][537]},{"months":b[1][7],"days":b[1][245],"eras":b[1][6],"dayPeriods":b[0][537]},{"months":b[1][7],"days":b[1][245],"eras":b[1][8],"dayPeriods":b[0][537]},{"months":b[1][9],"days":b[1][245],"eras":b[1][6],"dayPeriods":b[0][537]},{"months":b[1][244],"days":b[1][245],"eras":b[1][246],"dayPeriods":b[0][537]},{"months":b[1][11],"days":b[1][245],"eras":b[1][12],"dayPeriods":b[0][537]},{"months":b[1][13],"days":b[1][245],"eras":b[1][14],"dayPeriods":b[0][537]},{"months":b[1][15],"days":b[1][245],"eras":b[1][16],"dayPeriods":b[0][537]},{"months":b[1][244],"days":b[1][245],"eras":b[1][17],"dayPeriods":b[0][537]},{"months":b[1][18],"days":b[1][245],"eras":b[1][19],"dayPeriods":b[0][537]},{"months":b[1][244],"days":b[1][245],"eras":b[1][247],"dayPeriods":b[0][537]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][95],"currencies":b[0][541]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][95],"currencies":b[0][70]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][543]},{"nu":b[0][37],"patterns":b[1][211],"symbols":b[1][95],"currencies":b[0][70]},{"months":b[1][251],"days":b[1][252],"eras":b[1][3],"dayPeriods":b[0][549]},{"months":b[1][4],"days":b[1][252],"dayPeriods":b[0][549]},{"months":b[1][5],"days":b[1][252],"eras":b[1][6],"dayPeriods":b[0][549]},{"months":b[1][7],"days":b[1][252],"eras":b[1][6],"dayPeriods":b[0][549]},{"months":b[1][7],"days":b[1][252],"eras":b[1][8],"dayPeriods":b[0][549]},{"months":b[1][9],"days":b[1][252],"eras":b[1][6],"dayPeriods":b[0][549]},{"months":b[1][251],"days":b[1][252],"eras":b[1][10],"dayPeriods":b[0][549]},{"months":b[1][11],"days":b[1][252],"eras":b[1][12],"dayPeriods":b[0][549]},{"months":b[1][13],"days":b[1][252],"eras":b[1][14],"dayPeriods":b[0][549]},{"months":b[1][15],"days":b[1][252],"eras":b[1][16],"dayPeriods":b[0][549]},{"months":b[1][251],"days":b[1][252],"eras":b[1][17],"dayPeriods":b[0][549]},{"months":b[1][18],"days":b[1][252],"eras":b[1][19],"dayPeriods":b[0][549]},{"months":b[1][251],"days":b[1][252],"eras":b[1][20],"dayPeriods":b[0][549]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][550]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][551]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][554]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][555]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][556]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][559]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][562]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][565]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][566]},{"nu":b[0][37],"patterns":b[1][212],"symbols":b[1][95],"currencies":b[0][70]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][567]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][95],"currencies":b[0][70]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][95],"currencies":b[0][569]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][570]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][573]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][574]},{"months":b[1][1],"days":b[1][2],"eras":b[1][3],"dayPeriods":b[0][549]},{"months":b[1][4],"days":b[1][2],"dayPeriods":b[0][549]},{"months":b[1][5],"days":b[1][2],"eras":b[1][6],"dayPeriods":b[0][549]},{"months":b[1][7],"days":b[1][2],"eras":b[1][6],"dayPeriods":b[0][549]},{"months":b[1][7],"days":b[1][2],"eras":b[1][8],"dayPeriods":b[0][549]},{"months":b[1][9],"days":b[1][2],"eras":b[1][6],"dayPeriods":b[0][549]},{"months":b[1][1],"days":b[1][2],"eras":b[1][10],"dayPeriods":b[0][549]},{"months":b[1][11],"days":b[1][2],"eras":b[1][12],"dayPeriods":b[0][549]},{"months":b[1][13],"days":b[1][2],"eras":b[1][14],"dayPeriods":b[0][549]},{"months":b[1][15],"days":b[1][2],"eras":b[1][16],"dayPeriods":b[0][549]},{"months":b[1][1],"days":b[1][2],"eras":b[1][17],"dayPeriods":b[0][549]},{"months":b[1][18],"days":b[1][2],"eras":b[1][19],"dayPeriods":b[0][549]},{"months":b[1][1],"days":b[1][2],"eras":b[1][20],"dayPeriods":b[0][549]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][575]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][576]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][577]},{"months":b[1][1],"days":b[1][2],"eras":b[1][3],"dayPeriods":b[0][582]},{"months":b[1][4],"days":b[1][2],"dayPeriods":b[0][582]},{"months":b[1][5],"days":b[1][2],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][2],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][2],"eras":b[1][8],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][2],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][1],"days":b[1][2],"eras":b[1][10],"dayPeriods":b[0][582]},{"months":b[1][11],"days":b[1][2],"eras":b[1][12],"dayPeriods":b[0][582]},{"months":b[1][13],"days":b[1][2],"eras":b[1][14],"dayPeriods":b[0][582]},{"months":b[1][15],"days":b[1][2],"eras":b[1][16],"dayPeriods":b[0][582]},{"months":b[1][1],"days":b[1][2],"eras":b[1][17],"dayPeriods":b[0][582]},{"months":b[1][18],"days":b[1][2],"eras":b[1][19],"dayPeriods":b[0][582]},{"months":b[1][1],"days":b[1][2],"eras":b[1][20],"dayPeriods":b[0][582]},{"nu":b[0][37],"patterns":b[1][73],"symbols":b[1][22],"currencies":b[0][70]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][586]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][587]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][588]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][589]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][590]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][591]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][594]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][595]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][596]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][597]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][598]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][599]},{"nu":b[0][37],"patterns":b[1][264],"symbols":b[1][95],"currencies":b[0][70]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][603]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][604]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][606]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][607]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][608]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][609]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][612]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][613]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][614]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][615]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][616]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][617]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][618]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][619]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][620]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][160]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][621]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][622]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][28],"currencies":b[0][589]},{"months":b[1][272],"days":b[1][273],"eras":b[1][3],"dayPeriods":b[0][633]},{"months":b[1][9],"days":b[1][273],"dayPeriods":b[0][633]},{"months":b[1][5],"days":b[1][273],"eras":b[1][6],"dayPeriods":b[0][633]},{"months":b[1][7],"days":b[1][273],"eras":b[1][6],"dayPeriods":b[0][633]},{"months":b[1][7],"days":b[1][273],"eras":b[1][8],"dayPeriods":b[0][633]},{"months":b[1][9],"days":b[1][273],"eras":b[1][6],"dayPeriods":b[0][633]},{"months":b[1][272],"days":b[1][273],"eras":b[1][274],"dayPeriods":b[0][633]},{"months":b[1][11],"days":b[1][273],"eras":b[1][12],"dayPeriods":b[0][633]},{"months":b[1][13],"days":b[1][273],"eras":b[1][14],"dayPeriods":b[0][633]},{"months":b[1][15],"days":b[1][273],"eras":b[1][16],"dayPeriods":b[0][633]},{"months":b[1][272],"days":b[1][273],"eras":b[1][17],"dayPeriods":b[0][633]},{"months":b[1][18],"days":b[1][273],"eras":b[1][19],"dayPeriods":b[0][633]},{"months":b[1][272],"days":b[1][273],"eras":b[1][27],"dayPeriods":b[0][633]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][28],"currencies":b[0][70]},{"months":b[1][276],"days":b[1][277],"eras":b[1][3],"dayPeriods":b[0][361]},{"months":b[1][9],"days":b[1][277],"dayPeriods":b[0][361]},{"months":b[1][5],"days":b[1][277],"eras":b[1][6],"dayPeriods":b[0][361]},{"months":b[1][7],"days":b[1][277],"eras":b[1][6],"dayPeriods":b[0][361]},{"months":b[1][7],"days":b[1][277],"eras":b[1][8],"dayPeriods":b[0][361]},{"months":b[1][9],"days":b[1][277],"eras":b[1][6],"dayPeriods":b[0][361]},{"months":b[1][276],"days":b[1][277],"eras":b[1][278],"dayPeriods":b[0][361]},{"months":b[1][11],"days":b[1][277],"eras":b[1][12],"dayPeriods":b[0][361]},{"months":b[1][13],"days":b[1][277],"eras":b[1][14],"dayPeriods":b[0][361]},{"months":b[1][15],"days":b[1][277],"eras":b[1][16],"dayPeriods":b[0][361]},{"months":b[1][276],"days":b[1][277],"eras":b[1][17],"dayPeriods":b[0][361]},{"months":b[1][18],"days":b[1][277],"eras":b[1][19],"dayPeriods":b[0][361]},{"months":b[1][276],"days":b[1][277],"eras":b[1][279],"dayPeriods":b[0][361]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][95],"currencies":b[0][647]},{"months":b[1][281],"days":b[1][282],"eras":b[1][3],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][282],"dayPeriods":b[0][582]},{"months":b[1][5],"days":b[1][282],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][282],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][282],"eras":b[1][8],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][282],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][281],"days":b[1][282],"eras":b[1][278],"dayPeriods":b[0][582]},{"months":b[1][11],"days":b[1][282],"eras":b[1][12],"dayPeriods":b[0][582]},{"months":b[1][13],"days":b[1][282],"eras":b[1][14],"dayPeriods":b[0][582]},{"months":b[1][15],"days":b[1][282],"eras":b[1][16],"dayPeriods":b[0][582]},{"months":b[1][281],"days":b[1][282],"eras":b[1][17],"dayPeriods":b[0][582]},{"months":b[1][18],"days":b[1][282],"eras":b[1][19],"dayPeriods":b[0][582]},{"months":b[1][281],"days":b[1][282],"eras":b[1][279],"dayPeriods":b[0][582]},{"nu":b[0][37],"patterns":b[1][283],"symbols":b[1][22],"currencies":b[0][652]},{"nu":b[0][37],"patterns":b[1][211],"symbols":b[1][95],"currencies":b[0][654]},{"nu":b[0][37],"patterns":b[1][283],"symbols":b[1][95],"currencies":b[0][655]},{"nu":b[0][37],"patterns":b[1][286],"symbols":b[1][95],"currencies":b[0][659]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][95],"currencies":b[0][662]},{"nu":b[0][37],"patterns":b[1][283],"symbols":b[1][28],"currencies":b[0][663]},{"nu":b[0][37],"patterns":b[1][283],"symbols":b[1][22],"currencies":b[0][664]},{"months":b[1][281],"days":b[1][282],"eras":b[1][289],"dayPeriods":b[0][582]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][667]},{"nu":b[0][37],"patterns":b[1][286],"symbols":b[1][95],"currencies":b[0][668]},{"nu":b[0][37],"patterns":b[1][283],"symbols":b[1][95],"currencies":b[0][669]},{"nu":b[0][37],"patterns":b[1][283],"symbols":b[1][22],"currencies":b[0][670]},{"nu":b[0][37],"patterns":b[1][283],"symbols":b[1][22],"currencies":b[0][672]},{"months":b[1][293],"days":b[1][294],"eras":b[1][3],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][294],"dayPeriods":b[0][582]},{"months":b[1][5],"days":b[1][294],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][294],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][294],"eras":b[1][8],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][294],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][293],"days":b[1][294],"eras":b[1][278],"dayPeriods":b[0][582]},{"months":b[1][11],"days":b[1][294],"eras":b[1][12],"dayPeriods":b[0][582]},{"months":b[1][13],"days":b[1][294],"eras":b[1][14],"dayPeriods":b[0][582]},{"months":b[1][15],"days":b[1][294],"eras":b[1][16],"dayPeriods":b[0][582]},{"months":b[1][293],"days":b[1][294],"eras":b[1][17],"dayPeriods":b[0][582]},{"months":b[1][18],"days":b[1][294],"eras":b[1][19],"dayPeriods":b[0][582]},{"months":b[1][293],"days":b[1][294],"eras":b[1][279],"dayPeriods":b[0][582]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][677]},{"nu":b[0][37],"patterns":b[1][283],"symbols":b[1][22],"currencies":b[0][678]},{"months":b[1][296],"days":b[1][282],"eras":b[1][3],"dayPeriods":b[0][582]},{"months":b[1][296],"days":b[1][282],"eras":b[1][278],"dayPeriods":b[0][582]},{"months":b[1][296],"days":b[1][282],"eras":b[1][17],"dayPeriods":b[0][582]},{"months":b[1][296],"days":b[1][282],"eras":b[1][279],"dayPeriods":b[0][582]},{"nu":b[0][37],"patterns":b[1][283],"symbols":b[1][22],"currencies":b[0][681]},{"months":b[1][298],"days":b[1][282],"eras":b[1][3],"dayPeriods":b[0][582]},{"months":b[1][298],"days":b[1][282],"eras":b[1][278],"dayPeriods":b[0][582]},{"months":b[1][298],"days":b[1][282],"eras":b[1][17],"dayPeriods":b[0][582]},{"months":b[1][298],"days":b[1][282],"eras":b[1][279],"dayPeriods":b[0][582]},{"nu":b[0][37],"patterns":b[1][283],"symbols":b[1][22],"currencies":b[0][685]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][95],"currencies":b[0][686]},{"nu":b[0][37],"patterns":b[1][283],"symbols":b[1][22],"currencies":b[0][668]},{"months":b[1][301],"days":b[1][282],"eras":b[1][3],"dayPeriods":b[0][582]},{"months":b[1][301],"days":b[1][282],"eras":b[1][278],"dayPeriods":b[0][582]},{"months":b[1][301],"days":b[1][282],"eras":b[1][17],"dayPeriods":b[0][582]},{"months":b[1][301],"days":b[1][282],"eras":b[1][279],"dayPeriods":b[0][582]},{"nu":b[0][37],"patterns":b[1][302],"symbols":b[1][95],"currencies":b[0][688]},{"months":b[1][281],"days":b[1][282],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][282],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][282],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][282],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][282],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][282],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][281],"days":b[1][282],"eras":b[1][278],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][282],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][282],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][282],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][281],"days":b[1][282],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][282],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][281],"days":b[1][282],"eras":b[1][279],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][283],"symbols":b[1][22],"currencies":b[0][689]},{"nu":b[0][37],"patterns":b[1][211],"symbols":b[1][95],"currencies":b[0][690]},{"months":b[1][276],"days":b[1][282],"eras":b[1][3],"dayPeriods":b[0][361]},{"months":b[1][9],"days":b[1][282],"dayPeriods":b[0][361]},{"months":b[1][5],"days":b[1][282],"eras":b[1][6],"dayPeriods":b[0][361]},{"months":b[1][7],"days":b[1][282],"eras":b[1][6],"dayPeriods":b[0][361]},{"months":b[1][7],"days":b[1][282],"eras":b[1][8],"dayPeriods":b[0][361]},{"months":b[1][9],"days":b[1][282],"eras":b[1][6],"dayPeriods":b[0][361]},{"months":b[1][276],"days":b[1][282],"eras":b[1][278],"dayPeriods":b[0][361]},{"months":b[1][11],"days":b[1][282],"eras":b[1][12],"dayPeriods":b[0][361]},{"months":b[1][13],"days":b[1][282],"eras":b[1][14],"dayPeriods":b[0][361]},{"months":b[1][15],"days":b[1][282],"eras":b[1][16],"dayPeriods":b[0][361]},{"months":b[1][276],"days":b[1][282],"eras":b[1][17],"dayPeriods":b[0][361]},{"months":b[1][18],"days":b[1][282],"eras":b[1][19],"dayPeriods":b[0][361]},{"months":b[1][276],"days":b[1][282],"eras":b[1][279],"dayPeriods":b[0][361]},{"nu":b[0][37],"patterns":b[1][286],"symbols":b[1][95],"currencies":b[0][692]},{"months":b[1][306],"days":b[1][307],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][307],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][307],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][307],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][307],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][307],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][306],"days":b[1][307],"eras":b[1][308],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][307],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][307],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][307],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][306],"days":b[1][307],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][307],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][306],"days":b[1][307],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][309],"currencies":b[0][704]},{"months":b[1][311],"days":b[1][312],"eras":b[1][313],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][312],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][312],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][312],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][312],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][312],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][311],"days":b[1][312],"eras":b[1][314],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][312],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][312],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][312],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][311],"days":b[1][312],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][312],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][311],"days":b[1][312],"eras":b[1][315],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][316],"symbols":b[1][95],"currencies":b[0][718]},{"months":b[1][318],"days":b[1][319],"eras":b[1][3],"dayPeriods":b[0][725]},{"months":b[1][9],"days":b[1][319],"dayPeriods":b[0][725]},{"months":b[1][5],"days":b[1][319],"eras":b[1][6],"dayPeriods":b[0][725]},{"months":b[1][7],"days":b[1][319],"eras":b[1][6],"dayPeriods":b[0][725]},{"months":b[1][7],"days":b[1][319],"eras":b[1][8],"dayPeriods":b[0][725]},{"months":b[1][9],"days":b[1][319],"eras":b[1][6],"dayPeriods":b[0][725]},{"months":b[1][318],"days":b[1][319],"eras":b[1][320],"dayPeriods":b[0][725]},{"months":b[1][11],"days":b[1][319],"eras":b[1][12],"dayPeriods":b[0][725]},{"months":b[1][13],"days":b[1][319],"eras":b[1][14],"dayPeriods":b[0][725]},{"months":b[1][15],"days":b[1][319],"eras":b[1][16],"dayPeriods":b[0][725]},{"months":b[1][318],"days":b[1][319],"eras":b[1][17],"dayPeriods":b[0][725]},{"months":b[1][18],"days":b[1][319],"eras":b[1][19],"dayPeriods":b[0][725]},{"months":b[1][318],"days":b[1][319],"eras":b[1][27],"dayPeriods":b[0][725]},{"months":b[1][322],"days":b[1][323],"eras":b[1][3],"dayPeriods":b[0][735]},{"months":b[1][9],"days":b[1][323],"dayPeriods":b[0][735]},{"months":b[1][5],"days":b[1][323],"eras":b[1][6],"dayPeriods":b[0][735]},{"months":b[1][7],"days":b[1][323],"eras":b[1][6],"dayPeriods":b[0][735]},{"months":b[1][7],"days":b[1][323],"eras":b[1][8],"dayPeriods":b[0][735]},{"months":b[1][9],"days":b[1][323],"eras":b[1][6],"dayPeriods":b[0][735]},{"months":b[1][322],"days":b[1][323],"eras":b[1][324],"dayPeriods":b[0][735]},{"months":b[1][325],"days":b[1][323],"eras":b[1][12],"dayPeriods":b[0][735]},{"months":b[1][13],"days":b[1][323],"eras":b[1][14],"dayPeriods":b[0][735]},{"months":b[1][326],"days":b[1][323],"eras":b[1][327],"dayPeriods":b[0][735]},{"months":b[1][322],"days":b[1][323],"eras":b[1][17],"dayPeriods":b[0][735]},{"months":b[1][328],"days":b[1][323],"eras":b[1][329],"dayPeriods":b[0][735]},{"months":b[1][322],"days":b[1][323],"eras":b[1][27],"dayPeriods":b[0][735]},{"nu":b[0][748],"patterns":b[1][330],"symbols":b[1][331],"currencies":b[0][752]},{"months":b[1][332],"days":b[1][323],"eras":b[1][3],"dayPeriods":b[0][735]},{"months":b[1][332],"days":b[1][323],"eras":b[1][324],"dayPeriods":b[0][735]},{"months":b[1][332],"days":b[1][323],"eras":b[1][17],"dayPeriods":b[0][735]},{"months":b[1][333],"days":b[1][323],"eras":b[1][329],"dayPeriods":b[0][735]},{"months":b[1][332],"days":b[1][323],"eras":b[1][27],"dayPeriods":b[0][735]},{"months":b[1][335],"days":b[1][336],"eras":b[1][3],"dayPeriods":b[0][763]},{"months":b[1][9],"days":b[1][336],"dayPeriods":b[0][763]},{"months":b[1][5],"days":b[1][336],"eras":b[1][6],"dayPeriods":b[0][763]},{"months":b[1][7],"days":b[1][336],"eras":b[1][6],"dayPeriods":b[0][763]},{"months":b[1][7],"days":b[1][336],"eras":b[1][8],"dayPeriods":b[0][763]},{"months":b[1][9],"days":b[1][336],"eras":b[1][6],"dayPeriods":b[0][763]},{"months":b[1][335],"days":b[1][336],"eras":b[1][337],"dayPeriods":b[0][763]},{"months":b[1][11],"days":b[1][336],"eras":b[1][12],"dayPeriods":b[0][763]},{"months":b[1][13],"days":b[1][336],"eras":b[1][14],"dayPeriods":b[0][763]},{"months":b[1][15],"days":b[1][336],"eras":b[1][16],"dayPeriods":b[0][763]},{"months":b[1][335],"days":b[1][336],"eras":b[1][17],"dayPeriods":b[0][763]},{"months":b[1][18],"days":b[1][336],"eras":b[1][19],"dayPeriods":b[0][763]},{"months":b[1][335],"days":b[1][336],"eras":b[1][27],"dayPeriods":b[0][763]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][28],"currencies":b[0][766]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][28],"currencies":b[0][767]},{"months":b[1][340],"days":b[1][341],"eras":b[1][3],"dayPeriods":b[0][775]},{"months":b[1][9],"days":b[1][341],"dayPeriods":b[0][775]},{"months":b[1][5],"days":b[1][341],"eras":b[1][6],"dayPeriods":b[0][775]},{"months":b[1][7],"days":b[1][341],"eras":b[1][6],"dayPeriods":b[0][775]},{"months":b[1][7],"days":b[1][341],"eras":b[1][8],"dayPeriods":b[0][775]},{"months":b[1][9],"days":b[1][341],"eras":b[1][6],"dayPeriods":b[0][775]},{"months":b[1][340],"days":b[1][341],"eras":b[1][342],"dayPeriods":b[0][775]},{"months":b[1][343],"days":b[1][341],"eras":b[1][12],"dayPeriods":b[0][775]},{"months":b[1][13],"days":b[1][341],"eras":b[1][14],"dayPeriods":b[0][775]},{"months":b[1][344],"days":b[1][341],"eras":b[1][16],"dayPeriods":b[0][775]},{"months":b[1][340],"days":b[1][341],"eras":b[1][17],"dayPeriods":b[0][775]},{"months":b[1][18],"days":b[1][341],"eras":b[1][19],"dayPeriods":b[0][775]},{"months":b[1][340],"days":b[1][341],"eras":b[1][20],"dayPeriods":b[0][775]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][345],"currencies":b[0][783]},{"months":b[1][347],"days":b[1][348],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][348],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][348],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][348],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][348],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][348],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][347],"days":b[1][348],"eras":b[1][349],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][348],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][348],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][348],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][347],"days":b[1][348],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][348],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][347],"days":b[1][348],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][789]},{"months":b[1][351],"days":b[1][352],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][352],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][352],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][352],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][352],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][352],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][351],"days":b[1][352],"eras":b[1][353],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][352],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][352],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][352],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][351],"days":b[1][352],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][352],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][351],"days":b[1][352],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][354],"currencies":b[0][800]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][354],"currencies":b[0][569]},{"months":b[1][356],"days":b[1][357],"eras":b[1][358],"dayPeriods":b[0][11]},{"months":b[1][359],"days":b[1][357],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][357],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][357],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][357],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][357],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][356],"days":b[1][357],"eras":b[1][360],"dayPeriods":b[0][11]},{"months":b[1][361],"days":b[1][357],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][357],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][362],"days":b[1][357],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][356],"days":b[1][357],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][357],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][356],"days":b[1][357],"eras":b[1][363],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][817]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][95],"currencies":b[0][817]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][820]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][823]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][824]},{"nu":b[0][37],"patterns":b[1][212],"symbols":b[1][217],"currencies":b[0][817]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][827]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][828]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][829]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][830]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][831]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][95],"currencies":b[0][832]},{"months":b[1][368],"days":b[1][357],"eras":b[1][358],"dayPeriods":b[0][582]},{"months":b[1][359],"days":b[1][357],"dayPeriods":b[0][582]},{"months":b[1][5],"days":b[1][357],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][357],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][357],"eras":b[1][8],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][357],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][368],"days":b[1][357],"eras":b[1][360],"dayPeriods":b[0][582]},{"months":b[1][361],"days":b[1][357],"eras":b[1][12],"dayPeriods":b[0][582]},{"months":b[1][13],"days":b[1][357],"eras":b[1][14],"dayPeriods":b[0][582]},{"months":b[1][362],"days":b[1][357],"eras":b[1][16],"dayPeriods":b[0][582]},{"months":b[1][368],"days":b[1][357],"eras":b[1][17],"dayPeriods":b[0][582]},{"months":b[1][18],"days":b[1][357],"eras":b[1][19],"dayPeriods":b[0][582]},{"months":b[1][368],"days":b[1][357],"eras":b[1][363],"dayPeriods":b[0][582]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][834]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][835]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][836]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][837]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][838]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][839]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][840]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][841]},{"months":b[1][370],"days":b[1][371],"eras":b[1][3],"dayPeriods":b[0][849]},{"months":b[1][9],"days":b[1][371],"dayPeriods":b[0][849]},{"months":b[1][5],"days":b[1][371],"eras":b[1][6],"dayPeriods":b[0][849]},{"months":b[1][7],"days":b[1][371],"eras":b[1][6],"dayPeriods":b[0][849]},{"months":b[1][7],"days":b[1][371],"eras":b[1][8],"dayPeriods":b[0][849]},{"months":b[1][9],"days":b[1][371],"eras":b[1][6],"dayPeriods":b[0][849]},{"months":b[1][370],"days":b[1][371],"eras":b[1][372],"dayPeriods":b[0][849]},{"months":b[1][11],"days":b[1][371],"eras":b[1][12],"dayPeriods":b[0][849]},{"months":b[1][13],"days":b[1][371],"eras":b[1][14],"dayPeriods":b[0][849]},{"months":b[1][15],"days":b[1][371],"eras":b[1][16],"dayPeriods":b[0][849]},{"months":b[1][370],"days":b[1][371],"eras":b[1][17],"dayPeriods":b[0][849]},{"months":b[1][18],"days":b[1][371],"eras":b[1][19],"dayPeriods":b[0][849]},{"months":b[1][370],"days":b[1][371],"eras":b[1][27],"dayPeriods":b[0][849]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][95],"currencies":b[0][70]},{"months":b[1][374],"days":b[1][375],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][375],"dayPeriods":b[0][11]},{"months":b[1][376],"days":b[1][375],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][377],"days":b[1][375],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][377],"days":b[1][375],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][375],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][374],"days":b[1][375],"eras":b[1][378],"dayPeriods":b[0][11]},{"months":b[1][379],"days":b[1][375],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][380],"days":b[1][375],"eras":b[1][381],"dayPeriods":b[0][11]},{"months":b[1][382],"days":b[1][375],"eras":b[1][383],"dayPeriods":b[0][11]},{"months":b[1][374],"days":b[1][375],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][375],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][374],"days":b[1][375],"eras":b[1][20],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][384],"symbols":b[1][95],"currencies":b[0][870]},{"months":b[1][386],"days":b[1][387],"eras":b[1][3],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][387],"dayPeriods":b[0][582]},{"months":b[1][5],"days":b[1][387],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][387],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][387],"eras":b[1][8],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][387],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][386],"days":b[1][387],"eras":b[1][388],"dayPeriods":b[0][582]},{"months":b[1][11],"days":b[1][387],"eras":b[1][12],"dayPeriods":b[0][582]},{"months":b[1][13],"days":b[1][387],"eras":b[1][14],"dayPeriods":b[0][582]},{"months":b[1][15],"days":b[1][387],"eras":b[1][16],"dayPeriods":b[0][582]},{"months":b[1][386],"days":b[1][387],"eras":b[1][17],"dayPeriods":b[0][582]},{"months":b[1][18],"days":b[1][387],"eras":b[1][19],"dayPeriods":b[0][582]},{"months":b[1][386],"days":b[1][387],"eras":b[1][27],"dayPeriods":b[0][582]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][188]},{"months":b[1][390],"days":b[1][391],"eras":b[1][3],"dayPeriods":b[0][888]},{"months":b[1][9],"days":b[1][391],"dayPeriods":b[0][888]},{"months":b[1][5],"days":b[1][391],"eras":b[1][6],"dayPeriods":b[0][888]},{"months":b[1][7],"days":b[1][391],"eras":b[1][6],"dayPeriods":b[0][888]},{"months":b[1][7],"days":b[1][391],"eras":b[1][8],"dayPeriods":b[0][888]},{"months":b[1][9],"days":b[1][391],"eras":b[1][6],"dayPeriods":b[0][888]},{"months":b[1][390],"days":b[1][391],"eras":b[1][392],"dayPeriods":b[0][888]},{"months":b[1][11],"days":b[1][391],"eras":b[1][12],"dayPeriods":b[0][888]},{"months":b[1][13],"days":b[1][391],"eras":b[1][14],"dayPeriods":b[0][888]},{"months":b[1][15],"days":b[1][391],"eras":b[1][16],"dayPeriods":b[0][888]},{"months":b[1][390],"days":b[1][391],"eras":b[1][17],"dayPeriods":b[0][888]},{"months":b[1][18],"days":b[1][391],"eras":b[1][19],"dayPeriods":b[0][888]},{"months":b[1][390],"days":b[1][391],"eras":b[1][393],"dayPeriods":b[0][888]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][894]},{"months":b[1][395],"days":b[1][396],"eras":b[1][3],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][396],"dayPeriods":b[0][582]},{"months":b[1][5],"days":b[1][396],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][396],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][396],"eras":b[1][8],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][396],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][395],"days":b[1][396],"eras":b[1][397],"dayPeriods":b[0][582]},{"months":b[1][11],"days":b[1][396],"eras":b[1][12],"dayPeriods":b[0][582]},{"months":b[1][13],"days":b[1][396],"eras":b[1][14],"dayPeriods":b[0][582]},{"months":b[1][15],"days":b[1][396],"eras":b[1][16],"dayPeriods":b[0][582]},{"months":b[1][395],"days":b[1][396],"eras":b[1][17],"dayPeriods":b[0][582]},{"months":b[1][18],"days":b[1][396],"eras":b[1][19],"dayPeriods":b[0][582]},{"months":b[1][395],"days":b[1][396],"eras":b[1][27],"dayPeriods":b[0][582]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][95],"currencies":b[0][904]},{"months":b[1][399],"days":b[1][400],"eras":b[1][3],"dayPeriods":b[0][910]},{"months":b[1][9],"days":b[1][400],"dayPeriods":b[0][910]},{"months":b[1][5],"days":b[1][400],"eras":b[1][6],"dayPeriods":b[0][910]},{"months":b[1][7],"days":b[1][400],"eras":b[1][6],"dayPeriods":b[0][910]},{"months":b[1][7],"days":b[1][400],"eras":b[1][8],"dayPeriods":b[0][910]},{"months":b[1][9],"days":b[1][400],"eras":b[1][6],"dayPeriods":b[0][910]},{"months":b[1][399],"days":b[1][400],"eras":b[1][401],"dayPeriods":b[0][910]},{"months":b[1][11],"days":b[1][400],"eras":b[1][12],"dayPeriods":b[0][910]},{"months":b[1][13],"days":b[1][400],"eras":b[1][14],"dayPeriods":b[0][910]},{"months":b[1][15],"days":b[1][400],"eras":b[1][16],"dayPeriods":b[0][910]},{"months":b[1][399],"days":b[1][400],"eras":b[1][17],"dayPeriods":b[0][910]},{"months":b[1][18],"days":b[1][400],"eras":b[1][19],"dayPeriods":b[0][910]},{"months":b[1][399],"days":b[1][400],"eras":b[1][27],"dayPeriods":b[0][910]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][402],"currencies":b[0][913]},{"months":b[1][404],"days":b[1][405],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][405],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][405],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][405],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][405],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][405],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][404],"days":b[1][405],"eras":b[1][406],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][405],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][405],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][405],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][404],"days":b[1][405],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][405],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][404],"days":b[1][405],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][407],"symbols":b[1][408],"currencies":b[0][925]},{"months":b[1][410],"days":b[1][411],"eras":b[1][3],"dayPeriods":b[0][933]},{"months":b[1][9],"days":b[1][411],"dayPeriods":b[0][933]},{"months":b[1][5],"days":b[1][411],"eras":b[1][6],"dayPeriods":b[0][933]},{"months":b[1][7],"days":b[1][411],"eras":b[1][6],"dayPeriods":b[0][933]},{"months":b[1][7],"days":b[1][411],"eras":b[1][8],"dayPeriods":b[0][933]},{"months":b[1][9],"days":b[1][411],"eras":b[1][6],"dayPeriods":b[0][933]},{"months":b[1][410],"days":b[1][411],"eras":b[1][412],"dayPeriods":b[0][933]},{"months":b[1][11],"days":b[1][411],"eras":b[1][12],"dayPeriods":b[0][933]},{"months":b[1][13],"days":b[1][411],"eras":b[1][14],"dayPeriods":b[0][933]},{"months":b[1][15],"days":b[1][411],"eras":b[1][16],"dayPeriods":b[0][933]},{"months":b[1][410],"days":b[1][411],"eras":b[1][17],"dayPeriods":b[0][933]},{"months":b[1][18],"days":b[1][411],"eras":b[1][19],"dayPeriods":b[0][933]},{"months":b[1][410],"days":b[1][411],"eras":b[1][27],"dayPeriods":b[0][933]},{"months":b[1][413],"days":b[1][414],"eras":b[1][3],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][414],"dayPeriods":b[0][582]},{"months":b[1][5],"days":b[1][414],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][414],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][414],"eras":b[1][8],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][414],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][413],"days":b[1][414],"eras":b[1][415],"dayPeriods":b[0][582]},{"months":b[1][11],"days":b[1][414],"eras":b[1][12],"dayPeriods":b[0][582]},{"months":b[1][13],"days":b[1][414],"eras":b[1][14],"dayPeriods":b[0][582]},{"months":b[1][15],"days":b[1][414],"eras":b[1][16],"dayPeriods":b[0][582]},{"months":b[1][413],"days":b[1][414],"eras":b[1][17],"dayPeriods":b[0][582]},{"months":b[1][18],"days":b[1][414],"eras":b[1][19],"dayPeriods":b[0][582]},{"months":b[1][413],"days":b[1][414],"eras":b[1][27],"dayPeriods":b[0][582]},{"months":b[1][417],"days":b[1][418],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][418],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][418],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][418],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][418],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][418],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][417],"days":b[1][418],"eras":b[1][419],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][418],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][418],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][418],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][417],"days":b[1][418],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][418],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][417],"days":b[1][418],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][22],"currencies":b[0][599]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][22],"currencies":b[0][948]},{"short":a[535],"medium":a[535],"full":a[535],"long":a[535],"availableFormats":b[0][949],"dateFormats":b[1][421],"timeFormats":b[0][3]},{"months":b[1][422],"days":b[1][423],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][423],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][423],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][423],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][423],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][423],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][422],"days":b[1][423],"eras":b[1][72],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][423],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][423],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][423],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][422],"days":b[1][423],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][423],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][422],"days":b[1][423],"eras":b[1][27],"dayPeriods":b[0][11]},{"months":b[1][425],"days":b[1][426],"eras":b[1][3],"dayPeriods":b[0][962]},{"months":b[1][9],"days":b[1][426],"dayPeriods":b[0][962]},{"months":b[1][5],"days":b[1][426],"eras":b[1][6],"dayPeriods":b[0][962]},{"months":b[1][7],"days":b[1][426],"eras":b[1][6],"dayPeriods":b[0][962]},{"months":b[1][7],"days":b[1][426],"eras":b[1][8],"dayPeriods":b[0][962]},{"months":b[1][9],"days":b[1][426],"eras":b[1][6],"dayPeriods":b[0][962]},{"months":b[1][425],"days":b[1][426],"eras":b[1][427],"dayPeriods":b[0][962]},{"months":b[1][428],"days":b[1][426],"eras":b[1][429],"dayPeriods":b[0][962]},{"months":b[1][13],"days":b[1][426],"eras":b[1][14],"dayPeriods":b[0][962]},{"months":b[1][430],"days":b[1][426],"eras":b[1][431],"dayPeriods":b[0][962]},{"months":b[1][425],"days":b[1][426],"eras":b[1][432],"dayPeriods":b[0][962]},{"months":b[1][18],"days":b[1][426],"eras":b[1][19],"dayPeriods":b[0][962]},{"months":b[1][425],"days":b[1][426],"eras":b[1][27],"dayPeriods":b[0][962]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][433],"currencies":b[0][972]},{"months":b[1][435],"days":b[1][436],"eras":b[1][3],"dayPeriods":b[0][981]},{"months":b[1][9],"days":b[1][436],"dayPeriods":b[0][981]},{"months":b[1][5],"days":b[1][436],"eras":b[1][6],"dayPeriods":b[0][981]},{"months":b[1][437],"days":b[1][436],"eras":b[1][6],"dayPeriods":b[0][981]},{"months":b[1][437],"days":b[1][436],"eras":b[1][8],"dayPeriods":b[0][981]},{"months":b[1][9],"days":b[1][436],"eras":b[1][6],"dayPeriods":b[0][981]},{"months":b[1][435],"days":b[1][436],"eras":b[1][438],"dayPeriods":b[0][981]},{"months":b[1][11],"days":b[1][436],"eras":b[1][12],"dayPeriods":b[0][981]},{"months":b[1][439],"days":b[1][436],"eras":b[1][440],"dayPeriods":b[0][981]},{"months":b[1][441],"days":b[1][436],"eras":b[1][16],"dayPeriods":b[0][981]},{"months":b[1][435],"days":b[1][436],"eras":b[1][442],"dayPeriods":b[0][981]},{"months":b[1][443],"days":b[1][436],"eras":b[1][19],"dayPeriods":b[0][981]},{"months":b[1][435],"days":b[1][436],"eras":b[1][27],"dayPeriods":b[0][981]},{"nu":b[0][37],"patterns":b[1][407],"symbols":b[1][152],"currencies":b[0][894]},{"months":b[1][445],"days":b[1][155],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][155],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][155],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][155],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][155],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][155],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][445],"days":b[1][155],"eras":b[1][446],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][155],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][155],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][155],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][445],"days":b[1][155],"eras":b[1][447],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][155],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][445],"days":b[1][155],"eras":b[1][448],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][95],"currencies":b[0][1000]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][95],"currencies":b[0][1001]},{"months":b[1][450],"days":b[1][451],"eras":b[1][3],"dayPeriods":b[0][1009]},{"months":b[1][9],"days":b[1][451],"dayPeriods":b[0][1009]},{"months":b[1][5],"days":b[1][451],"eras":b[1][6],"dayPeriods":b[0][1009]},{"months":b[1][7],"days":b[1][451],"eras":b[1][6],"dayPeriods":b[0][1009]},{"months":b[1][7],"days":b[1][451],"eras":b[1][8],"dayPeriods":b[0][1009]},{"months":b[1][9],"days":b[1][451],"eras":b[1][6],"dayPeriods":b[0][1009]},{"months":b[1][450],"days":b[1][451],"eras":b[1][452],"dayPeriods":b[0][1009]},{"months":b[1][11],"days":b[1][451],"eras":b[1][12],"dayPeriods":b[0][1009]},{"months":b[1][13],"days":b[1][451],"eras":b[1][14],"dayPeriods":b[0][1009]},{"months":b[1][15],"days":b[1][451],"eras":b[1][16],"dayPeriods":b[0][1009]},{"months":b[1][450],"days":b[1][451],"eras":b[1][17],"dayPeriods":b[0][1009]},{"months":b[1][18],"days":b[1][451],"eras":b[1][19],"dayPeriods":b[0][1009]},{"months":b[1][450],"days":b[1][451],"eras":b[1][27],"dayPeriods":b[0][1009]},{"months":b[1][454],"days":b[1][455],"eras":b[1][456],"dayPeriods":b[0][1021]},{"months":b[1][457],"days":b[1][455],"dayPeriods":b[0][1021]},{"months":b[1][5],"days":b[1][455],"eras":b[1][6],"dayPeriods":b[0][1021]},{"months":b[1][7],"days":b[1][455],"eras":b[1][6],"dayPeriods":b[0][1021]},{"months":b[1][7],"days":b[1][455],"eras":b[1][8],"dayPeriods":b[0][1021]},{"months":b[1][9],"days":b[1][455],"eras":b[1][6],"dayPeriods":b[0][1021]},{"months":b[1][454],"days":b[1][455],"eras":b[1][458],"dayPeriods":b[0][1021]},{"months":b[1][459],"days":b[1][455],"eras":b[1][460],"dayPeriods":b[0][1021]},{"months":b[1][13],"days":b[1][455],"eras":b[1][14],"dayPeriods":b[0][1021]},{"months":b[1][461],"days":b[1][455],"eras":b[1][462],"dayPeriods":b[0][1021]},{"months":b[1][454],"days":b[1][455],"eras":b[1][17],"dayPeriods":b[0][1021]},{"months":b[1][18],"days":b[1][455],"eras":b[1][19],"dayPeriods":b[0][1021]},{"months":b[1][454],"days":b[1][455],"eras":b[1][463],"dayPeriods":b[0][1021]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][28],"currencies":b[0][1031]},{"months":b[1][465],"days":b[1][466],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][466],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][466],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][466],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][466],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][466],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][465],"days":b[1][466],"eras":b[1][467],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][466],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][466],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][466],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][465],"days":b[1][466],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][466],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][465],"days":b[1][466],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][95],"currencies":b[0][1043]},{"months":b[1][469],"days":b[1][470],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][176],"days":b[1][470],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][470],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][470],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][470],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][470],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][469],"days":b[1][470],"eras":b[1][471],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][470],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][470],"eras":b[1][381],"dayPeriods":b[0][11]},{"months":b[1][472],"days":b[1][470],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][469],"days":b[1][470],"eras":b[1][473],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][470],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][469],"days":b[1][470],"eras":b[1][474],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][95],"currencies":b[0][1057]},{"months":b[1][476],"days":b[1][477],"eras":b[1][3],"dayPeriods":b[0][1062]},{"months":b[1][9],"days":b[1][477],"dayPeriods":b[0][1062]},{"months":b[1][5],"days":b[1][477],"eras":b[1][6],"dayPeriods":b[0][1062]},{"months":b[1][7],"days":b[1][477],"eras":b[1][6],"dayPeriods":b[0][1062]},{"months":b[1][7],"days":b[1][477],"eras":b[1][8],"dayPeriods":b[0][1062]},{"months":b[1][9],"days":b[1][477],"eras":b[1][6],"dayPeriods":b[0][1062]},{"months":b[1][476],"days":b[1][477],"eras":b[1][478],"dayPeriods":b[0][1062]},{"months":b[1][11],"days":b[1][477],"eras":b[1][12],"dayPeriods":b[0][1062]},{"months":b[1][13],"days":b[1][477],"eras":b[1][14],"dayPeriods":b[0][1062]},{"months":b[1][15],"days":b[1][477],"eras":b[1][16],"dayPeriods":b[0][1062]},{"months":b[1][476],"days":b[1][477],"eras":b[1][17],"dayPeriods":b[0][1062]},{"months":b[1][18],"days":b[1][477],"eras":b[1][19],"dayPeriods":b[0][1062]},{"months":b[1][476],"days":b[1][477],"eras":b[1][27],"dayPeriods":b[0][1062]},{"months":b[1][480],"days":b[1][481],"eras":b[1][3],"dayPeriods":b[0][1069]},{"months":b[1][9],"days":b[1][481],"dayPeriods":b[0][1069]},{"months":b[1][5],"days":b[1][481],"eras":b[1][6],"dayPeriods":b[0][1069]},{"months":b[1][7],"days":b[1][481],"eras":b[1][6],"dayPeriods":b[0][1069]},{"months":b[1][7],"days":b[1][481],"eras":b[1][8],"dayPeriods":b[0][1069]},{"months":b[1][9],"days":b[1][481],"eras":b[1][6],"dayPeriods":b[0][1069]},{"months":b[1][480],"days":b[1][481],"eras":b[1][482],"dayPeriods":b[0][1069]},{"months":b[1][11],"days":b[1][481],"eras":b[1][12],"dayPeriods":b[0][1069]},{"months":b[1][13],"days":b[1][481],"eras":b[1][14],"dayPeriods":b[0][1069]},{"months":b[1][15],"days":b[1][481],"eras":b[1][16],"dayPeriods":b[0][1069]},{"months":b[1][480],"days":b[1][481],"eras":b[1][17],"dayPeriods":b[0][1069]},{"months":b[1][18],"days":b[1][481],"eras":b[1][19],"dayPeriods":b[0][1069]},{"months":b[1][480],"days":b[1][481],"eras":b[1][27],"dayPeriods":b[0][1069]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][22],"currencies":b[0][294]},{"months":b[1][484],"days":b[1][485],"eras":b[1][3],"dayPeriods":b[0][1079]},{"months":b[1][9],"days":b[1][485],"dayPeriods":b[0][1079]},{"months":b[1][5],"days":b[1][485],"eras":b[1][6],"dayPeriods":b[0][1079]},{"months":b[1][7],"days":b[1][485],"eras":b[1][6],"dayPeriods":b[0][1079]},{"months":b[1][7],"days":b[1][485],"eras":b[1][8],"dayPeriods":b[0][1079]},{"months":b[1][9],"days":b[1][485],"eras":b[1][6],"dayPeriods":b[0][1079]},{"months":b[1][484],"days":b[1][485],"eras":b[1][486],"dayPeriods":b[0][1079]},{"months":b[1][11],"days":b[1][485],"eras":b[1][12],"dayPeriods":b[0][1079]},{"months":b[1][13],"days":b[1][485],"eras":b[1][14],"dayPeriods":b[0][1079]},{"months":b[1][15],"days":b[1][485],"eras":b[1][16],"dayPeriods":b[0][1079]},{"months":b[1][484],"days":b[1][485],"eras":b[1][17],"dayPeriods":b[0][1079]},{"months":b[1][18],"days":b[1][485],"eras":b[1][19],"dayPeriods":b[0][1079]},{"months":b[1][484],"days":b[1][485],"eras":b[1][27],"dayPeriods":b[0][1079]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][95],"currencies":b[0][1083]},{"months":b[1][488],"days":b[1][489],"eras":b[1][490],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][489],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][489],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][489],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][489],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][489],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][488],"days":b[1][489],"eras":b[1][491],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][489],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][489],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][489],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][488],"days":b[1][489],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][489],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][488],"days":b[1][489],"eras":b[1][492],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][95],"currencies":b[0][1096]},{"nu":b[0][37],"patterns":b[1][212],"symbols":b[1][213],"currencies":b[0][1096]},{"months":b[1][495],"days":b[1][496],"eras":b[1][497],"dayPeriods":b[0][1105]},{"months":b[1][498],"days":b[1][496],"dayPeriods":b[0][1105]},{"months":b[1][499],"days":b[1][496],"eras":b[1][6],"dayPeriods":b[0][1105]},{"months":b[1][500],"days":b[1][496],"eras":b[1][6],"dayPeriods":b[0][1105]},{"months":b[1][500],"days":b[1][496],"eras":b[1][8],"dayPeriods":b[0][1105]},{"months":b[1][9],"days":b[1][496],"eras":b[1][6],"dayPeriods":b[0][1105]},{"months":b[1][495],"days":b[1][496],"eras":b[1][501],"dayPeriods":b[0][1105]},{"months":b[1][502],"days":b[1][496],"eras":b[1][12],"dayPeriods":b[0][1105]},{"months":b[1][503],"days":b[1][496],"eras":b[1][504],"dayPeriods":b[0][1105]},{"months":b[1][505],"days":b[1][496],"eras":b[1][16],"dayPeriods":b[0][1105]},{"months":b[1][495],"days":b[1][496],"eras":b[1][506],"dayPeriods":b[0][1105]},{"months":b[1][507],"days":b[1][496],"eras":b[1][19],"dayPeriods":b[0][1105]},{"months":b[1][495],"days":b[1][496],"eras":b[1][508],"dayPeriods":b[0][1105]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][1119]},{"months":b[1][510],"days":b[1][511],"eras":b[1][3],"dayPeriods":b[0][1125]},{"months":b[1][9],"days":b[1][511],"dayPeriods":b[0][1125]},{"months":b[1][5],"days":b[1][511],"eras":b[1][6],"dayPeriods":b[0][1125]},{"months":b[1][7],"days":b[1][511],"eras":b[1][6],"dayPeriods":b[0][1125]},{"months":b[1][7],"days":b[1][511],"eras":b[1][8],"dayPeriods":b[0][1125]},{"months":b[1][9],"days":b[1][511],"eras":b[1][6],"dayPeriods":b[0][1125]},{"months":b[1][510],"days":b[1][511],"eras":b[1][512],"dayPeriods":b[0][1125]},{"months":b[1][11],"days":b[1][511],"eras":b[1][12],"dayPeriods":b[0][1125]},{"months":b[1][13],"days":b[1][511],"eras":b[1][14],"dayPeriods":b[0][1125]},{"months":b[1][15],"days":b[1][511],"eras":b[1][16],"dayPeriods":b[0][1125]},{"months":b[1][510],"days":b[1][511],"eras":b[1][17],"dayPeriods":b[0][1125]},{"months":b[1][18],"days":b[1][511],"eras":b[1][19],"dayPeriods":b[0][1125]},{"months":b[1][510],"days":b[1][511],"eras":b[1][27],"dayPeriods":b[0][1125]},{"months":b[1][513],"days":b[1][514],"eras":b[1][3],"dayPeriods":b[0][1131]},{"months":b[1][9],"days":b[1][514],"dayPeriods":b[0][1131]},{"months":b[1][5],"days":b[1][514],"eras":b[1][6],"dayPeriods":b[0][1131]},{"months":b[1][7],"days":b[1][514],"eras":b[1][6],"dayPeriods":b[0][1131]},{"months":b[1][7],"days":b[1][514],"eras":b[1][8],"dayPeriods":b[0][1131]},{"months":b[1][9],"days":b[1][514],"eras":b[1][6],"dayPeriods":b[0][1131]},{"months":b[1][513],"days":b[1][514],"eras":b[1][515],"dayPeriods":b[0][1131]},{"months":b[1][11],"days":b[1][514],"eras":b[1][12],"dayPeriods":b[0][1131]},{"months":b[1][13],"days":b[1][514],"eras":b[1][14],"dayPeriods":b[0][1131]},{"months":b[1][15],"days":b[1][514],"eras":b[1][16],"dayPeriods":b[0][1131]},{"months":b[1][513],"days":b[1][514],"eras":b[1][17],"dayPeriods":b[0][1131]},{"months":b[1][18],"days":b[1][514],"eras":b[1][19],"dayPeriods":b[0][1131]},{"months":b[1][513],"days":b[1][514],"eras":b[1][27],"dayPeriods":b[0][1131]},{"months":b[1][517],"days":b[1][518],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][518],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][518],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][518],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][518],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][518],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][517],"days":b[1][518],"eras":b[1][519],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][518],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][518],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][518],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][517],"days":b[1][518],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][518],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][517],"days":b[1][518],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][520],"currencies":b[0][1144]},{"months":b[1][521],"days":b[1][522],"eras":b[1][3],"dayPeriods":b[0][1151]},{"months":b[1][9],"days":b[1][522],"dayPeriods":b[0][1151]},{"months":b[1][5],"days":b[1][522],"eras":b[1][6],"dayPeriods":b[0][1151]},{"months":b[1][7],"days":b[1][522],"eras":b[1][6],"dayPeriods":b[0][1151]},{"months":b[1][7],"days":b[1][522],"eras":b[1][8],"dayPeriods":b[0][1151]},{"months":b[1][9],"days":b[1][522],"eras":b[1][6],"dayPeriods":b[0][1151]},{"months":b[1][521],"days":b[1][522],"eras":b[1][523],"dayPeriods":b[0][1151]},{"months":b[1][11],"days":b[1][522],"eras":b[1][12],"dayPeriods":b[0][1151]},{"months":b[1][13],"days":b[1][522],"eras":b[1][14],"dayPeriods":b[0][1151]},{"months":b[1][15],"days":b[1][522],"eras":b[1][16],"dayPeriods":b[0][1151]},{"months":b[1][521],"days":b[1][522],"eras":b[1][17],"dayPeriods":b[0][1151]},{"months":b[1][18],"days":b[1][522],"eras":b[1][19],"dayPeriods":b[0][1151]},{"months":b[1][521],"days":b[1][522],"eras":b[1][27],"dayPeriods":b[0][1151]},{"nu":b[0][37],"patterns":b[1][33],"symbols":b[1][28],"currencies":b[0][1154]},{"months":b[1][524],"days":b[1][525],"eras":b[1][3],"dayPeriods":b[0][1161]},{"months":b[1][9],"days":b[1][525],"dayPeriods":b[0][1161]},{"months":b[1][5],"days":b[1][525],"eras":b[1][6],"dayPeriods":b[0][1161]},{"months":b[1][7],"days":b[1][525],"eras":b[1][6],"dayPeriods":b[0][1161]},{"months":b[1][7],"days":b[1][525],"eras":b[1][8],"dayPeriods":b[0][1161]},{"months":b[1][9],"days":b[1][525],"eras":b[1][6],"dayPeriods":b[0][1161]},{"months":b[1][524],"days":b[1][525],"eras":b[1][526],"dayPeriods":b[0][1161]},{"months":b[1][11],"days":b[1][525],"eras":b[1][12],"dayPeriods":b[0][1161]},{"months":b[1][13],"days":b[1][525],"eras":b[1][14],"dayPeriods":b[0][1161]},{"months":b[1][15],"days":b[1][525],"eras":b[1][16],"dayPeriods":b[0][1161]},{"months":b[1][524],"days":b[1][525],"eras":b[1][17],"dayPeriods":b[0][1161]},{"months":b[1][18],"days":b[1][525],"eras":b[1][19],"dayPeriods":b[0][1161]},{"months":b[1][524],"days":b[1][525],"eras":b[1][27],"dayPeriods":b[0][1161]},{"months":b[1][527],"days":b[1][528],"eras":b[1][3],"dayPeriods":b[0][1168]},{"months":b[1][9],"days":b[1][528],"dayPeriods":b[0][1168]},{"months":b[1][5],"days":b[1][528],"eras":b[1][6],"dayPeriods":b[0][1168]},{"months":b[1][7],"days":b[1][528],"eras":b[1][6],"dayPeriods":b[0][1168]},{"months":b[1][7],"days":b[1][528],"eras":b[1][8],"dayPeriods":b[0][1168]},{"months":b[1][9],"days":b[1][528],"eras":b[1][6],"dayPeriods":b[0][1168]},{"months":b[1][527],"days":b[1][528],"eras":b[1][529],"dayPeriods":b[0][1168]},{"months":b[1][11],"days":b[1][528],"eras":b[1][12],"dayPeriods":b[0][1168]},{"months":b[1][13],"days":b[1][528],"eras":b[1][14],"dayPeriods":b[0][1168]},{"months":b[1][15],"days":b[1][528],"eras":b[1][16],"dayPeriods":b[0][1168]},{"months":b[1][527],"days":b[1][528],"eras":b[1][17],"dayPeriods":b[0][1168]},{"months":b[1][18],"days":b[1][528],"eras":b[1][19],"dayPeriods":b[0][1168]},{"months":b[1][527],"days":b[1][528],"eras":b[1][27],"dayPeriods":b[0][1168]},{"months":b[1][531],"days":b[1][532],"eras":b[1][3],"dayPeriods":b[0][549]},{"months":b[1][9],"days":b[1][532],"dayPeriods":b[0][549]},{"months":b[1][5],"days":b[1][532],"eras":b[1][6],"dayPeriods":b[0][549]},{"months":b[1][7],"days":b[1][532],"eras":b[1][6],"dayPeriods":b[0][549]},{"months":b[1][7],"days":b[1][532],"eras":b[1][8],"dayPeriods":b[0][549]},{"months":b[1][9],"days":b[1][532],"eras":b[1][6],"dayPeriods":b[0][549]},{"months":b[1][531],"days":b[1][532],"eras":b[1][533],"dayPeriods":b[0][549]},{"months":b[1][11],"days":b[1][532],"eras":b[1][12],"dayPeriods":b[0][549]},{"months":b[1][13],"days":b[1][532],"eras":b[1][14],"dayPeriods":b[0][549]},{"months":b[1][15],"days":b[1][532],"eras":b[1][16],"dayPeriods":b[0][549]},{"months":b[1][531],"days":b[1][532],"eras":b[1][17],"dayPeriods":b[0][549]},{"months":b[1][18],"days":b[1][532],"eras":b[1][19],"dayPeriods":b[0][549]},{"months":b[1][531],"days":b[1][532],"eras":b[1][27],"dayPeriods":b[0][549]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][28],"currencies":b[0][1180]},{"months":b[1][214],"days":b[1][534],"eras":b[1][3],"dayPeriods":b[0][1184]},{"months":b[1][9],"days":b[1][534],"dayPeriods":b[0][1184]},{"months":b[1][5],"days":b[1][534],"eras":b[1][6],"dayPeriods":b[0][1184]},{"months":b[1][7],"days":b[1][534],"eras":b[1][6],"dayPeriods":b[0][1184]},{"months":b[1][7],"days":b[1][534],"eras":b[1][8],"dayPeriods":b[0][1184]},{"months":b[1][9],"days":b[1][534],"eras":b[1][6],"dayPeriods":b[0][1184]},{"months":b[1][214],"days":b[1][534],"eras":b[1][535],"dayPeriods":b[0][1184]},{"months":b[1][11],"days":b[1][534],"eras":b[1][12],"dayPeriods":b[0][1184]},{"months":b[1][13],"days":b[1][534],"eras":b[1][14],"dayPeriods":b[0][1184]},{"months":b[1][15],"days":b[1][534],"eras":b[1][16],"dayPeriods":b[0][1184]},{"months":b[1][214],"days":b[1][534],"eras":b[1][17],"dayPeriods":b[0][1184]},{"months":b[1][18],"days":b[1][534],"eras":b[1][19],"dayPeriods":b[0][1184]},{"months":b[1][214],"days":b[1][534],"eras":b[1][27],"dayPeriods":b[0][1184]},{"months":b[1][536],"days":b[1][537],"eras":b[1][3],"dayPeriods":b[0][1192]},{"months":b[1][9],"days":b[1][537],"dayPeriods":b[0][1192]},{"months":b[1][5],"days":b[1][537],"eras":b[1][6],"dayPeriods":b[0][1192]},{"months":b[1][7],"days":b[1][537],"eras":b[1][6],"dayPeriods":b[0][1192]},{"months":b[1][7],"days":b[1][537],"eras":b[1][8],"dayPeriods":b[0][1192]},{"months":b[1][9],"days":b[1][537],"eras":b[1][6],"dayPeriods":b[0][1192]},{"months":b[1][536],"days":b[1][537],"eras":b[1][236],"dayPeriods":b[0][1192]},{"months":b[1][11],"days":b[1][537],"eras":b[1][12],"dayPeriods":b[0][1192]},{"months":b[1][13],"days":b[1][537],"eras":b[1][14],"dayPeriods":b[0][1192]},{"months":b[1][15],"days":b[1][537],"eras":b[1][16],"dayPeriods":b[0][1192]},{"months":b[1][536],"days":b[1][537],"eras":b[1][17],"dayPeriods":b[0][1192]},{"months":b[1][18],"days":b[1][537],"eras":b[1][19],"dayPeriods":b[0][1192]},{"months":b[1][536],"days":b[1][537],"eras":b[1][27],"dayPeriods":b[0][1192]},{"months":b[1][539],"days":b[1][540],"eras":b[1][3],"dayPeriods":b[0][1201]},{"months":b[1][9],"days":b[1][540],"dayPeriods":b[0][1201]},{"months":b[1][5],"days":b[1][540],"eras":b[1][6],"dayPeriods":b[0][1201]},{"months":b[1][7],"days":b[1][540],"eras":b[1][6],"dayPeriods":b[0][1201]},{"months":b[1][7],"days":b[1][540],"eras":b[1][8],"dayPeriods":b[0][1201]},{"months":b[1][9],"days":b[1][540],"eras":b[1][6],"dayPeriods":b[0][1201]},{"months":b[1][539],"days":b[1][540],"eras":b[1][541],"dayPeriods":b[0][1201]},{"months":b[1][11],"days":b[1][540],"eras":b[1][12],"dayPeriods":b[0][1201]},{"months":b[1][13],"days":b[1][540],"eras":b[1][14],"dayPeriods":b[0][1201]},{"months":b[1][15],"days":b[1][540],"eras":b[1][16],"dayPeriods":b[0][1201]},{"months":b[1][539],"days":b[1][540],"eras":b[1][17],"dayPeriods":b[0][1201]},{"months":b[1][18],"days":b[1][540],"eras":b[1][19],"dayPeriods":b[0][1201]},{"months":b[1][539],"days":b[1][540],"eras":b[1][27],"dayPeriods":b[0][1201]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][28],"currencies":b[0][1204]},{"months":b[1][543],"days":b[1][544],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][544],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][544],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][544],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][544],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][544],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][543],"days":b[1][544],"eras":b[1][72],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][544],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][544],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][544],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][543],"days":b[1][544],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][544],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][543],"days":b[1][544],"eras":b[1][27],"dayPeriods":b[0][11]},{"months":b[1][545],"days":b[1][546],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][546],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][546],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][546],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][546],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][546],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][545],"days":b[1][546],"eras":b[1][72],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][546],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][546],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][546],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][545],"days":b[1][546],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][546],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][545],"days":b[1][546],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][286],"symbols":b[1][95],"currencies":b[0][569]},{"months":b[1][547],"days":b[1][548],"eras":b[1][3],"dayPeriods":b[0][1219]},{"months":b[1][9],"days":b[1][548],"dayPeriods":b[0][1219]},{"months":b[1][5],"days":b[1][548],"eras":b[1][6],"dayPeriods":b[0][1219]},{"months":b[1][7],"days":b[1][548],"eras":b[1][6],"dayPeriods":b[0][1219]},{"months":b[1][7],"days":b[1][548],"eras":b[1][8],"dayPeriods":b[0][1219]},{"months":b[1][9],"days":b[1][548],"eras":b[1][6],"dayPeriods":b[0][1219]},{"months":b[1][547],"days":b[1][548],"eras":b[1][549],"dayPeriods":b[0][1219]},{"months":b[1][11],"days":b[1][548],"eras":b[1][12],"dayPeriods":b[0][1219]},{"months":b[1][13],"days":b[1][548],"eras":b[1][14],"dayPeriods":b[0][1219]},{"months":b[1][15],"days":b[1][548],"eras":b[1][16],"dayPeriods":b[0][1219]},{"months":b[1][547],"days":b[1][548],"eras":b[1][17],"dayPeriods":b[0][1219]},{"months":b[1][18],"days":b[1][548],"eras":b[1][19],"dayPeriods":b[0][1219]},{"months":b[1][547],"days":b[1][548],"eras":b[1][27],"dayPeriods":b[0][1219]},{"months":b[1][551],"days":b[1][552],"eras":b[1][3],"dayPeriods":b[0][1227]},{"months":b[1][9],"days":b[1][552],"dayPeriods":b[0][1227]},{"months":b[1][5],"days":b[1][552],"eras":b[1][6],"dayPeriods":b[0][1227]},{"months":b[1][7],"days":b[1][552],"eras":b[1][6],"dayPeriods":b[0][1227]},{"months":b[1][7],"days":b[1][552],"eras":b[1][8],"dayPeriods":b[0][1227]},{"months":b[1][9],"days":b[1][552],"eras":b[1][6],"dayPeriods":b[0][1227]},{"months":b[1][551],"days":b[1][552],"eras":b[1][553],"dayPeriods":b[0][1227]},{"months":b[1][11],"days":b[1][552],"eras":b[1][12],"dayPeriods":b[0][1227]},{"months":b[1][13],"days":b[1][552],"eras":b[1][14],"dayPeriods":b[0][1227]},{"months":b[1][15],"days":b[1][552],"eras":b[1][16],"dayPeriods":b[0][1227]},{"months":b[1][551],"days":b[1][552],"eras":b[1][17],"dayPeriods":b[0][1227]},{"months":b[1][18],"days":b[1][552],"eras":b[1][19],"dayPeriods":b[0][1227]},{"months":b[1][551],"days":b[1][552],"eras":b[1][27],"dayPeriods":b[0][1227]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][554],"currencies":b[0][1230]},{"months":b[1][556],"days":b[1][557],"eras":b[1][3],"dayPeriods":b[0][1239]},{"months":b[1][9],"days":b[1][557],"dayPeriods":b[0][1239]},{"months":b[1][5],"days":b[1][557],"eras":b[1][6],"dayPeriods":b[0][1239]},{"months":b[1][7],"days":b[1][557],"eras":b[1][6],"dayPeriods":b[0][1239]},{"months":b[1][7],"days":b[1][557],"eras":b[1][8],"dayPeriods":b[0][1239]},{"months":b[1][9],"days":b[1][557],"eras":b[1][6],"dayPeriods":b[0][1239]},{"months":b[1][556],"days":b[1][557],"eras":b[1][558],"dayPeriods":b[0][1239]},{"months":b[1][11],"days":b[1][557],"eras":b[1][12],"dayPeriods":b[0][1239]},{"months":b[1][13],"days":b[1][557],"eras":b[1][14],"dayPeriods":b[0][1239]},{"months":b[1][15],"days":b[1][557],"eras":b[1][16],"dayPeriods":b[0][1239]},{"months":b[1][556],"days":b[1][557],"eras":b[1][17],"dayPeriods":b[0][1239]},{"months":b[1][18],"days":b[1][557],"eras":b[1][19],"dayPeriods":b[0][1239]},{"months":b[1][556],"days":b[1][557],"eras":b[1][27],"dayPeriods":b[0][1239]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][559],"currencies":b[0][894]},{"months":b[1][561],"days":b[1][562],"eras":b[1][563],"dayPeriods":b[0][1249]},{"months":b[1][564],"days":b[1][562],"dayPeriods":b[0][1249]},{"months":b[1][565],"days":b[1][562],"eras":b[1][6],"dayPeriods":b[0][1249]},{"months":b[1][566],"days":b[1][562],"eras":b[1][6],"dayPeriods":b[0][1249]},{"months":b[1][566],"days":b[1][562],"eras":b[1][8],"dayPeriods":b[0][1249]},{"months":b[1][9],"days":b[1][562],"eras":b[1][6],"dayPeriods":b[0][1249]},{"months":b[1][561],"days":b[1][562],"eras":b[1][567],"dayPeriods":b[0][1249]},{"months":b[1][568],"days":b[1][562],"eras":b[1][12],"dayPeriods":b[0][1249]},{"months":b[1][13],"days":b[1][562],"eras":b[1][14],"dayPeriods":b[0][1249]},{"months":b[1][569],"days":b[1][562],"eras":b[1][16],"dayPeriods":b[0][1249]},{"months":b[1][561],"days":b[1][562],"eras":b[1][570],"dayPeriods":b[0][1249]},{"months":b[1][571],"days":b[1][562],"eras":b[1][19],"dayPeriods":b[0][1249]},{"months":b[1][561],"days":b[1][562],"eras":b[1][572],"dayPeriods":b[0][1249]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][1258]},{"months":b[1][573],"days":b[1][574],"eras":b[1][3],"dayPeriods":b[0][1262]},{"months":b[1][9],"days":b[1][574],"dayPeriods":b[0][1262]},{"months":b[1][5],"days":b[1][574],"eras":b[1][6],"dayPeriods":b[0][1262]},{"months":b[1][7],"days":b[1][574],"eras":b[1][6],"dayPeriods":b[0][1262]},{"months":b[1][7],"days":b[1][574],"eras":b[1][8],"dayPeriods":b[0][1262]},{"months":b[1][9],"days":b[1][574],"eras":b[1][6],"dayPeriods":b[0][1262]},{"months":b[1][573],"days":b[1][574],"eras":b[1][575],"dayPeriods":b[0][1262]},{"months":b[1][11],"days":b[1][574],"eras":b[1][12],"dayPeriods":b[0][1262]},{"months":b[1][13],"days":b[1][574],"eras":b[1][14],"dayPeriods":b[0][1262]},{"months":b[1][15],"days":b[1][574],"eras":b[1][16],"dayPeriods":b[0][1262]},{"months":b[1][573],"days":b[1][574],"eras":b[1][17],"dayPeriods":b[0][1262]},{"months":b[1][18],"days":b[1][574],"eras":b[1][19],"dayPeriods":b[0][1262]},{"months":b[1][573],"days":b[1][574],"eras":b[1][27],"dayPeriods":b[0][1262]},{"months":b[1][577],"days":b[1][578],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][578],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][578],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][578],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][578],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][578],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][577],"days":b[1][578],"eras":b[1][579],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][578],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][580],"days":b[1][578],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][578],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][577],"days":b[1][578],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][578],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][577],"days":b[1][578],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][748],"patterns":b[1][73],"symbols":b[1][581],"currencies":b[0][70]},{"months":b[1][582],"days":b[1][583],"eras":b[1][3],"dayPeriods":b[0][1279]},{"months":b[1][9],"days":b[1][583],"dayPeriods":b[0][1279]},{"months":b[1][5],"days":b[1][583],"eras":b[1][6],"dayPeriods":b[0][1279]},{"months":b[1][7],"days":b[1][583],"eras":b[1][6],"dayPeriods":b[0][1279]},{"months":b[1][7],"days":b[1][583],"eras":b[1][8],"dayPeriods":b[0][1279]},{"months":b[1][9],"days":b[1][583],"eras":b[1][6],"dayPeriods":b[0][1279]},{"months":b[1][582],"days":b[1][583],"eras":b[1][584],"dayPeriods":b[0][1279]},{"months":b[1][11],"days":b[1][583],"eras":b[1][12],"dayPeriods":b[0][1279]},{"months":b[1][13],"days":b[1][583],"eras":b[1][14],"dayPeriods":b[0][1279]},{"months":b[1][15],"days":b[1][583],"eras":b[1][16],"dayPeriods":b[0][1279]},{"months":b[1][582],"days":b[1][583],"eras":b[1][17],"dayPeriods":b[0][1279]},{"months":b[1][18],"days":b[1][583],"eras":b[1][19],"dayPeriods":b[0][1279]},{"months":b[1][582],"days":b[1][583],"eras":b[1][27],"dayPeriods":b[0][1279]},{"months":b[1][585],"days":b[1][586],"eras":b[1][3],"dayPeriods":b[0][1286]},{"months":b[1][9],"days":b[1][586],"dayPeriods":b[0][1286]},{"months":b[1][5],"days":b[1][586],"eras":b[1][6],"dayPeriods":b[0][1286]},{"months":b[1][7],"days":b[1][586],"eras":b[1][6],"dayPeriods":b[0][1286]},{"months":b[1][7],"days":b[1][586],"eras":b[1][8],"dayPeriods":b[0][1286]},{"months":b[1][9],"days":b[1][586],"eras":b[1][6],"dayPeriods":b[0][1286]},{"months":b[1][585],"days":b[1][586],"eras":b[1][587],"dayPeriods":b[0][1286]},{"months":b[1][11],"days":b[1][586],"eras":b[1][12],"dayPeriods":b[0][1286]},{"months":b[1][13],"days":b[1][586],"eras":b[1][14],"dayPeriods":b[0][1286]},{"months":b[1][15],"days":b[1][586],"eras":b[1][16],"dayPeriods":b[0][1286]},{"months":b[1][585],"days":b[1][586],"eras":b[1][17],"dayPeriods":b[0][1286]},{"months":b[1][18],"days":b[1][586],"eras":b[1][19],"dayPeriods":b[0][1286]},{"months":b[1][585],"days":b[1][586],"eras":b[1][27],"dayPeriods":b[0][1286]},{"months":b[1][589],"days":b[1][590],"eras":b[1][3],"dayPeriods":b[0][1295]},{"months":b[1][9],"days":b[1][590],"dayPeriods":b[0][1295]},{"months":b[1][5],"days":b[1][590],"eras":b[1][6],"dayPeriods":b[0][1295]},{"months":b[1][7],"days":b[1][590],"eras":b[1][6],"dayPeriods":b[0][1295]},{"months":b[1][7],"days":b[1][590],"eras":b[1][8],"dayPeriods":b[0][1295]},{"months":b[1][9],"days":b[1][590],"eras":b[1][6],"dayPeriods":b[0][1295]},{"months":b[1][589],"days":b[1][590],"eras":b[1][591],"dayPeriods":b[0][1295]},{"months":b[1][11],"days":b[1][590],"eras":b[1][12],"dayPeriods":b[0][1295]},{"months":b[1][13],"days":b[1][590],"eras":b[1][14],"dayPeriods":b[0][1295]},{"months":b[1][15],"days":b[1][590],"eras":b[1][16],"dayPeriods":b[0][1295]},{"months":b[1][589],"days":b[1][590],"eras":b[1][17],"dayPeriods":b[0][1295]},{"months":b[1][18],"days":b[1][590],"eras":b[1][19],"dayPeriods":b[0][1295]},{"months":b[1][589],"days":b[1][590],"eras":b[1][27],"dayPeriods":b[0][1295]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][592],"currencies":b[0][70]},{"months":b[1][593],"days":b[1][594],"eras":b[1][3],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][594],"dayPeriods":b[0][582]},{"months":b[1][5],"days":b[1][594],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][594],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][594],"eras":b[1][8],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][594],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][593],"days":b[1][594],"eras":b[1][415],"dayPeriods":b[0][582]},{"months":b[1][11],"days":b[1][594],"eras":b[1][12],"dayPeriods":b[0][582]},{"months":b[1][13],"days":b[1][594],"eras":b[1][14],"dayPeriods":b[0][582]},{"months":b[1][15],"days":b[1][594],"eras":b[1][16],"dayPeriods":b[0][582]},{"months":b[1][593],"days":b[1][594],"eras":b[1][17],"dayPeriods":b[0][582]},{"months":b[1][18],"days":b[1][594],"eras":b[1][19],"dayPeriods":b[0][582]},{"months":b[1][593],"days":b[1][594],"eras":b[1][27],"dayPeriods":b[0][582]},{"months":b[1][596],"days":b[1][597],"eras":b[1][3],"dayPeriods":b[0][1311]},{"months":b[1][9],"days":b[1][597],"dayPeriods":b[0][1311]},{"months":b[1][5],"days":b[1][597],"eras":b[1][6],"dayPeriods":b[0][1311]},{"months":b[1][7],"days":b[1][597],"eras":b[1][6],"dayPeriods":b[0][1311]},{"months":b[1][7],"days":b[1][597],"eras":b[1][8],"dayPeriods":b[0][1311]},{"months":b[1][9],"days":b[1][597],"eras":b[1][6],"dayPeriods":b[0][1311]},{"months":b[1][596],"days":b[1][597],"eras":b[1][598],"dayPeriods":b[0][1311]},{"months":b[1][11],"days":b[1][597],"eras":b[1][12],"dayPeriods":b[0][1311]},{"months":b[1][13],"days":b[1][597],"eras":b[1][14],"dayPeriods":b[0][1311]},{"months":b[1][15],"days":b[1][597],"eras":b[1][16],"dayPeriods":b[0][1311]},{"months":b[1][596],"days":b[1][597],"eras":b[1][17],"dayPeriods":b[0][1311]},{"months":b[1][18],"days":b[1][597],"eras":b[1][19],"dayPeriods":b[0][1311]},{"months":b[1][596],"days":b[1][597],"eras":b[1][27],"dayPeriods":b[0][1311]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][599],"currencies":b[0][1315]},{"months":b[1][600],"days":b[1][601],"eras":b[1][3],"dayPeriods":b[0][1322]},{"months":b[1][9],"days":b[1][601],"dayPeriods":b[0][1322]},{"months":b[1][5],"days":b[1][601],"eras":b[1][6],"dayPeriods":b[0][1322]},{"months":b[1][7],"days":b[1][601],"eras":b[1][6],"dayPeriods":b[0][1322]},{"months":b[1][7],"days":b[1][601],"eras":b[1][8],"dayPeriods":b[0][1322]},{"months":b[1][9],"days":b[1][601],"eras":b[1][6],"dayPeriods":b[0][1322]},{"months":b[1][600],"days":b[1][601],"eras":b[1][602],"dayPeriods":b[0][1322]},{"months":b[1][11],"days":b[1][601],"eras":b[1][12],"dayPeriods":b[0][1322]},{"months":b[1][13],"days":b[1][601],"eras":b[1][14],"dayPeriods":b[0][1322]},{"months":b[1][15],"days":b[1][601],"eras":b[1][16],"dayPeriods":b[0][1322]},{"months":b[1][600],"days":b[1][601],"eras":b[1][17],"dayPeriods":b[0][1322]},{"months":b[1][18],"days":b[1][601],"eras":b[1][19],"dayPeriods":b[0][1322]},{"months":b[1][600],"days":b[1][601],"eras":b[1][27],"dayPeriods":b[0][1322]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][22],"currencies":b[0][160]},{"months":b[1][604],"days":b[1][605],"eras":b[1][3],"dayPeriods":b[0][1330]},{"months":b[1][9],"days":b[1][605],"dayPeriods":b[0][1330]},{"months":b[1][5],"days":b[1][605],"eras":b[1][6],"dayPeriods":b[0][1330]},{"months":b[1][7],"days":b[1][605],"eras":b[1][6],"dayPeriods":b[0][1330]},{"months":b[1][7],"days":b[1][605],"eras":b[1][8],"dayPeriods":b[0][1330]},{"months":b[1][9],"days":b[1][605],"eras":b[1][6],"dayPeriods":b[0][1330]},{"months":b[1][604],"days":b[1][605],"eras":b[1][606],"dayPeriods":b[0][1330]},{"months":b[1][11],"days":b[1][605],"eras":b[1][12],"dayPeriods":b[0][1330]},{"months":b[1][13],"days":b[1][605],"eras":b[1][14],"dayPeriods":b[0][1330]},{"months":b[1][15],"days":b[1][605],"eras":b[1][16],"dayPeriods":b[0][1330]},{"months":b[1][604],"days":b[1][605],"eras":b[1][17],"dayPeriods":b[0][1330]},{"months":b[1][18],"days":b[1][605],"eras":b[1][19],"dayPeriods":b[0][1330]},{"months":b[1][604],"days":b[1][605],"eras":b[1][20],"dayPeriods":b[0][1330]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][95],"currencies":b[0][1332]},{"months":b[1][607],"days":b[1][608],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][608],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][608],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][608],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][608],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][608],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][607],"days":b[1][608],"eras":b[1][609],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][608],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][608],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][608],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][607],"days":b[1][608],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][608],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][607],"days":b[1][608],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][33],"symbols":b[1][22],"currencies":b[0][377]},{"months":b[1][610],"days":b[1][611],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][611],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][611],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][611],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][611],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][611],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][610],"days":b[1][611],"eras":b[1][72],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][611],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][611],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][611],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][610],"days":b[1][611],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][611],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][610],"days":b[1][611],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][22],"currencies":b[0][388]},{"months":b[1][612],"days":b[1][613],"eras":b[1][3],"dayPeriods":b[0][1348]},{"months":b[1][9],"days":b[1][613],"dayPeriods":b[0][1348]},{"months":b[1][5],"days":b[1][613],"eras":b[1][6],"dayPeriods":b[0][1348]},{"months":b[1][7],"days":b[1][613],"eras":b[1][6],"dayPeriods":b[0][1348]},{"months":b[1][7],"days":b[1][613],"eras":b[1][8],"dayPeriods":b[0][1348]},{"months":b[1][9],"days":b[1][613],"eras":b[1][6],"dayPeriods":b[0][1348]},{"months":b[1][612],"days":b[1][613],"eras":b[1][614],"dayPeriods":b[0][1348]},{"months":b[1][11],"days":b[1][613],"eras":b[1][12],"dayPeriods":b[0][1348]},{"months":b[1][13],"days":b[1][613],"eras":b[1][14],"dayPeriods":b[0][1348]},{"months":b[1][15],"days":b[1][613],"eras":b[1][16],"dayPeriods":b[0][1348]},{"months":b[1][612],"days":b[1][613],"eras":b[1][17],"dayPeriods":b[0][1348]},{"months":b[1][18],"days":b[1][613],"eras":b[1][19],"dayPeriods":b[0][1348]},{"months":b[1][612],"days":b[1][613],"eras":b[1][27],"dayPeriods":b[0][1348]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][95],"currencies":b[0][1351]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][95],"currencies":b[0][1352]},{"months":b[1][616],"days":b[1][617],"eras":b[1][3],"dayPeriods":b[0][1360]},{"months":b[1][176],"days":b[1][617],"dayPeriods":b[0][1360]},{"months":b[1][618],"days":b[1][617],"eras":b[1][6],"dayPeriods":b[0][1360]},{"months":b[1][619],"days":b[1][617],"eras":b[1][6],"dayPeriods":b[0][1360]},{"months":b[1][619],"days":b[1][617],"eras":b[1][8],"dayPeriods":b[0][1360]},{"months":b[1][9],"days":b[1][617],"eras":b[1][6],"dayPeriods":b[0][1360]},{"months":b[1][616],"days":b[1][617],"eras":b[1][620],"dayPeriods":b[0][1360]},{"months":b[1][621],"days":b[1][617],"eras":b[1][12],"dayPeriods":b[0][1360]},{"months":b[1][622],"days":b[1][617],"eras":b[1][623],"dayPeriods":b[0][1360]},{"months":b[1][624],"days":b[1][617],"eras":b[1][16],"dayPeriods":b[0][1360]},{"months":b[1][616],"days":b[1][617],"eras":b[1][625],"dayPeriods":b[0][1360]},{"months":b[1][626],"days":b[1][617],"eras":b[1][627],"dayPeriods":b[0][1360]},{"months":b[1][616],"days":b[1][617],"eras":b[1][628],"dayPeriods":b[0][1360]},{"nu":b[0][37],"patterns":b[1][629],"symbols":b[1][630],"currencies":b[0][1378]},{"months":b[1][631],"days":b[1][96],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][631],"days":b[1][96],"eras":b[1][72],"dayPeriods":b[0][11]},{"months":b[1][631],"days":b[1][96],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][631],"days":b[1][96],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][748],"patterns":b[1][58],"symbols":b[1][632],"currencies":b[0][70]},{"months":b[1][634],"days":b[1][635],"eras":b[1][3],"dayPeriods":b[0][1388]},{"months":b[1][176],"days":b[1][635],"dayPeriods":b[0][1388]},{"months":b[1][5],"days":b[1][635],"eras":b[1][6],"dayPeriods":b[0][1388]},{"months":b[1][7],"days":b[1][635],"eras":b[1][6],"dayPeriods":b[0][1388]},{"months":b[1][7],"days":b[1][635],"eras":b[1][8],"dayPeriods":b[0][1388]},{"months":b[1][9],"days":b[1][635],"eras":b[1][6],"dayPeriods":b[0][1388]},{"months":b[1][634],"days":b[1][635],"eras":b[1][636],"dayPeriods":b[0][1388]},{"months":b[1][11],"days":b[1][635],"eras":b[1][12],"dayPeriods":b[0][1388]},{"months":b[1][13],"days":b[1][635],"eras":b[1][14],"dayPeriods":b[0][1388]},{"months":b[1][15],"days":b[1][635],"eras":b[1][16],"dayPeriods":b[0][1388]},{"months":b[1][634],"days":b[1][635],"eras":b[1][637],"dayPeriods":b[0][1388]},{"months":b[1][18],"days":b[1][635],"eras":b[1][19],"dayPeriods":b[0][1388]},{"months":b[1][634],"days":b[1][635],"eras":b[1][638],"dayPeriods":b[0][1388]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][309],"currencies":b[0][1393]},{"months":b[1][639],"days":b[1][640],"eras":b[1][3],"dayPeriods":b[0][1400]},{"months":b[1][9],"days":b[1][640],"dayPeriods":b[0][1400]},{"months":b[1][5],"days":b[1][640],"eras":b[1][6],"dayPeriods":b[0][1400]},{"months":b[1][7],"days":b[1][640],"eras":b[1][6],"dayPeriods":b[0][1400]},{"months":b[1][7],"days":b[1][640],"eras":b[1][8],"dayPeriods":b[0][1400]},{"months":b[1][9],"days":b[1][640],"eras":b[1][6],"dayPeriods":b[0][1400]},{"months":b[1][639],"days":b[1][640],"eras":b[1][641],"dayPeriods":b[0][1400]},{"months":b[1][11],"days":b[1][640],"eras":b[1][12],"dayPeriods":b[0][1400]},{"months":b[1][13],"days":b[1][640],"eras":b[1][14],"dayPeriods":b[0][1400]},{"months":b[1][15],"days":b[1][640],"eras":b[1][16],"dayPeriods":b[0][1400]},{"months":b[1][639],"days":b[1][640],"eras":b[1][17],"dayPeriods":b[0][1400]},{"months":b[1][18],"days":b[1][640],"eras":b[1][19],"dayPeriods":b[0][1400]},{"months":b[1][639],"days":b[1][640],"eras":b[1][27],"dayPeriods":b[0][1400]},{"nu":b[0][37],"patterns":b[1][33],"symbols":b[1][95],"currencies":b[0][1351]},{"months":b[1][642],"days":b[1][643],"eras":b[1][3],"dayPeriods":b[0][1409]},{"months":b[1][9],"days":b[1][643],"dayPeriods":b[0][1409]},{"months":b[1][5],"days":b[1][643],"eras":b[1][6],"dayPeriods":b[0][1409]},{"months":b[1][7],"days":b[1][643],"eras":b[1][6],"dayPeriods":b[0][1409]},{"months":b[1][7],"days":b[1][643],"eras":b[1][8],"dayPeriods":b[0][1409]},{"months":b[1][9],"days":b[1][643],"eras":b[1][6],"dayPeriods":b[0][1409]},{"months":b[1][642],"days":b[1][643],"eras":b[1][644],"dayPeriods":b[0][1409]},{"months":b[1][11],"days":b[1][643],"eras":b[1][12],"dayPeriods":b[0][1409]},{"months":b[1][13],"days":b[1][643],"eras":b[1][14],"dayPeriods":b[0][1409]},{"months":b[1][15],"days":b[1][643],"eras":b[1][16],"dayPeriods":b[0][1409]},{"months":b[1][642],"days":b[1][643],"eras":b[1][17],"dayPeriods":b[0][1409]},{"months":b[1][18],"days":b[1][643],"eras":b[1][19],"dayPeriods":b[0][1409]},{"months":b[1][642],"days":b[1][643],"eras":b[1][27],"dayPeriods":b[0][1409]},{"nu":b[0][37],"patterns":b[1][33],"symbols":b[1][22],"currencies":b[0][436]},{"months":b[1][645],"days":b[1][646],"eras":b[1][3],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][646],"dayPeriods":b[0][582]},{"months":b[1][5],"days":b[1][646],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][646],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][646],"eras":b[1][8],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][646],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][645],"days":b[1][646],"eras":b[1][647],"dayPeriods":b[0][582]},{"months":b[1][11],"days":b[1][646],"eras":b[1][12],"dayPeriods":b[0][582]},{"months":b[1][13],"days":b[1][646],"eras":b[1][14],"dayPeriods":b[0][582]},{"months":b[1][15],"days":b[1][646],"eras":b[1][16],"dayPeriods":b[0][582]},{"months":b[1][645],"days":b[1][646],"eras":b[1][17],"dayPeriods":b[0][582]},{"months":b[1][18],"days":b[1][646],"eras":b[1][19],"dayPeriods":b[0][582]},{"months":b[1][645],"days":b[1][646],"eras":b[1][27],"dayPeriods":b[0][582]},{"nu":b[0][37],"patterns":b[1][648],"symbols":b[1][22],"currencies":b[0][436]},{"months":b[1][650],"days":b[1][651],"eras":b[1][3],"dayPeriods":b[0][1423]},{"months":b[1][9],"days":b[1][651],"dayPeriods":b[0][1423]},{"months":b[1][5],"days":b[1][651],"eras":b[1][6],"dayPeriods":b[0][1423]},{"months":b[1][7],"days":b[1][651],"eras":b[1][6],"dayPeriods":b[0][1423]},{"months":b[1][7],"days":b[1][651],"eras":b[1][8],"dayPeriods":b[0][1423]},{"months":b[1][9],"days":b[1][651],"eras":b[1][6],"dayPeriods":b[0][1423]},{"months":b[1][650],"days":b[1][651],"eras":b[1][652],"dayPeriods":b[0][1423]},{"months":b[1][653],"days":b[1][651],"eras":b[1][12],"dayPeriods":b[0][1423]},{"months":b[1][13],"days":b[1][651],"eras":b[1][14],"dayPeriods":b[0][1423]},{"months":b[1][654],"days":b[1][651],"eras":b[1][16],"dayPeriods":b[0][1423]},{"months":b[1][650],"days":b[1][651],"eras":b[1][17],"dayPeriods":b[0][1423]},{"months":b[1][18],"days":b[1][651],"eras":b[1][19],"dayPeriods":b[0][1423]},{"months":b[1][650],"days":b[1][651],"eras":b[1][27],"dayPeriods":b[0][1423]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][655],"currencies":b[0][1429]},{"months":b[1][656],"days":b[1][657],"eras":b[1][3],"dayPeriods":b[0][1433]},{"months":b[1][9],"days":b[1][657],"dayPeriods":b[0][1433]},{"months":b[1][5],"days":b[1][657],"eras":b[1][6],"dayPeriods":b[0][1433]},{"months":b[1][7],"days":b[1][657],"eras":b[1][6],"dayPeriods":b[0][1433]},{"months":b[1][7],"days":b[1][657],"eras":b[1][8],"dayPeriods":b[0][1433]},{"months":b[1][9],"days":b[1][657],"eras":b[1][6],"dayPeriods":b[0][1433]},{"months":b[1][656],"days":b[1][657],"eras":b[1][658],"dayPeriods":b[0][1433]},{"months":b[1][11],"days":b[1][657],"eras":b[1][12],"dayPeriods":b[0][1433]},{"months":b[1][13],"days":b[1][657],"eras":b[1][14],"dayPeriods":b[0][1433]},{"months":b[1][15],"days":b[1][657],"eras":b[1][16],"dayPeriods":b[0][1433]},{"months":b[1][656],"days":b[1][657],"eras":b[1][17],"dayPeriods":b[0][1433]},{"months":b[1][18],"days":b[1][657],"eras":b[1][19],"dayPeriods":b[0][1433]},{"months":b[1][656],"days":b[1][657],"eras":b[1][27],"dayPeriods":b[0][1433]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][1436]},{"months":b[1][659],"days":b[1][660],"eras":b[1][3],"dayPeriods":b[0][1443]},{"months":b[1][9],"days":b[1][660],"dayPeriods":b[0][1443]},{"months":b[1][5],"days":b[1][660],"eras":b[1][6],"dayPeriods":b[0][1443]},{"months":b[1][7],"days":b[1][660],"eras":b[1][6],"dayPeriods":b[0][1443]},{"months":b[1][7],"days":b[1][660],"eras":b[1][8],"dayPeriods":b[0][1443]},{"months":b[1][9],"days":b[1][660],"eras":b[1][6],"dayPeriods":b[0][1443]},{"months":b[1][659],"days":b[1][660],"eras":b[1][661],"dayPeriods":b[0][1443]},{"months":b[1][11],"days":b[1][660],"eras":b[1][12],"dayPeriods":b[0][1443]},{"months":b[1][13],"days":b[1][660],"eras":b[1][14],"dayPeriods":b[0][1443]},{"months":b[1][15],"days":b[1][660],"eras":b[1][16],"dayPeriods":b[0][1443]},{"months":b[1][659],"days":b[1][660],"eras":b[1][17],"dayPeriods":b[0][1443]},{"months":b[1][18],"days":b[1][660],"eras":b[1][19],"dayPeriods":b[0][1443]},{"months":b[1][659],"days":b[1][660],"eras":b[1][27],"dayPeriods":b[0][1443]},{"months":b[1][662],"days":b[1][663],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][663],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][663],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][663],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][663],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][663],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][662],"days":b[1][663],"eras":b[1][664],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][663],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][663],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][663],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][662],"days":b[1][663],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][663],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][662],"days":b[1][663],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][217],"currencies":b[0][595]},{"months":b[1][666],"days":b[1][667],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][667],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][667],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][667],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][667],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][667],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][666],"days":b[1][667],"eras":b[1][668],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][667],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][667],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][667],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][666],"days":b[1][667],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][667],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][666],"days":b[1][667],"eras":b[1][27],"dayPeriods":b[0][11]},{"months":b[1][670],"days":b[1][671],"eras":b[1][3],"dayPeriods":b[0][1468]},{"months":b[1][9],"days":b[1][671],"dayPeriods":b[0][1468]},{"months":b[1][5],"days":b[1][671],"eras":b[1][6],"dayPeriods":b[0][1468]},{"months":b[1][7],"days":b[1][671],"eras":b[1][6],"dayPeriods":b[0][1468]},{"months":b[1][7],"days":b[1][671],"eras":b[1][8],"dayPeriods":b[0][1468]},{"months":b[1][9],"days":b[1][671],"eras":b[1][6],"dayPeriods":b[0][1468]},{"months":b[1][670],"days":b[1][671],"eras":b[1][672],"dayPeriods":b[0][1468]},{"months":b[1][11],"days":b[1][671],"eras":b[1][12],"dayPeriods":b[0][1468]},{"months":b[1][13],"days":b[1][671],"eras":b[1][14],"dayPeriods":b[0][1468]},{"months":b[1][15],"days":b[1][671],"eras":b[1][16],"dayPeriods":b[0][1468]},{"months":b[1][670],"days":b[1][671],"eras":b[1][17],"dayPeriods":b[0][1468]},{"months":b[1][18],"days":b[1][671],"eras":b[1][19],"dayPeriods":b[0][1468]},{"months":b[1][670],"days":b[1][671],"eras":b[1][27],"dayPeriods":b[0][1468]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][95],"currencies":b[0][1471]},{"months":b[1][674],"days":b[1][675],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][675],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][675],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][675],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][675],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][675],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][674],"days":b[1][675],"eras":b[1][72],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][675],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][675],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][675],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][674],"days":b[1][675],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][675],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][674],"days":b[1][675],"eras":b[1][27],"dayPeriods":b[0][11]},{"months":b[1][677],"days":b[1][678],"eras":b[1][3],"dayPeriods":b[0][1483]},{"months":b[1][9],"days":b[1][678],"dayPeriods":b[0][1483]},{"months":b[1][5],"days":b[1][678],"eras":b[1][6],"dayPeriods":b[0][1483]},{"months":b[1][7],"days":b[1][678],"eras":b[1][6],"dayPeriods":b[0][1483]},{"months":b[1][7],"days":b[1][678],"eras":b[1][8],"dayPeriods":b[0][1483]},{"months":b[1][9],"days":b[1][678],"eras":b[1][6],"dayPeriods":b[0][1483]},{"months":b[1][677],"days":b[1][678],"eras":b[1][679],"dayPeriods":b[0][1483]},{"months":b[1][11],"days":b[1][678],"eras":b[1][12],"dayPeriods":b[0][1483]},{"months":b[1][13],"days":b[1][678],"eras":b[1][14],"dayPeriods":b[0][1483]},{"months":b[1][15],"days":b[1][678],"eras":b[1][16],"dayPeriods":b[0][1483]},{"months":b[1][677],"days":b[1][678],"eras":b[1][17],"dayPeriods":b[0][1483]},{"months":b[1][18],"days":b[1][678],"eras":b[1][19],"dayPeriods":b[0][1483]},{"months":b[1][677],"days":b[1][678],"eras":b[1][27],"dayPeriods":b[0][1483]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][95],"currencies":b[0][1486]},{"months":b[1][681],"days":b[1][682],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][682],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][682],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][682],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][682],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][682],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][681],"days":b[1][682],"eras":b[1][683],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][682],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][684],"days":b[1][682],"eras":b[1][685],"dayPeriods":b[0][11]},{"months":b[1][686],"days":b[1][682],"eras":b[1][687],"dayPeriods":b[0][11]},{"months":b[1][681],"days":b[1][682],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][682],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][681],"days":b[1][682],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][688],"currencies":b[0][188]},{"months":b[1][690],"days":b[1][691],"eras":b[1][3],"dayPeriods":b[0][1510]},{"months":b[1][9],"days":b[1][691],"dayPeriods":b[0][1510]},{"months":b[1][5],"days":b[1][691],"eras":b[1][6],"dayPeriods":b[0][1510]},{"months":b[1][7],"days":b[1][691],"eras":b[1][6],"dayPeriods":b[0][1510]},{"months":b[1][7],"days":b[1][691],"eras":b[1][8],"dayPeriods":b[0][1510]},{"months":b[1][9],"days":b[1][691],"eras":b[1][6],"dayPeriods":b[0][1510]},{"months":b[1][690],"days":b[1][691],"eras":b[1][692],"dayPeriods":b[0][1510]},{"months":b[1][11],"days":b[1][691],"eras":b[1][12],"dayPeriods":b[0][1510]},{"months":b[1][13],"days":b[1][691],"eras":b[1][14],"dayPeriods":b[0][1510]},{"months":b[1][15],"days":b[1][691],"eras":b[1][16],"dayPeriods":b[0][1510]},{"months":b[1][690],"days":b[1][691],"eras":b[1][17],"dayPeriods":b[0][1510]},{"months":b[1][18],"days":b[1][691],"eras":b[1][19],"dayPeriods":b[0][1510]},{"months":b[1][690],"days":b[1][691],"eras":b[1][27],"dayPeriods":b[0][1510]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][22],"currencies":b[0][1514]},{"months":b[1][694],"days":b[1][695],"eras":b[1][3],"dayPeriods":b[0][1520]},{"months":b[1][9],"days":b[1][695],"dayPeriods":b[0][1520]},{"months":b[1][5],"days":b[1][695],"eras":b[1][6],"dayPeriods":b[0][1520]},{"months":b[1][7],"days":b[1][695],"eras":b[1][6],"dayPeriods":b[0][1520]},{"months":b[1][7],"days":b[1][695],"eras":b[1][8],"dayPeriods":b[0][1520]},{"months":b[1][9],"days":b[1][695],"eras":b[1][6],"dayPeriods":b[0][1520]},{"months":b[1][694],"days":b[1][695],"eras":b[1][696],"dayPeriods":b[0][1520]},{"months":b[1][11],"days":b[1][695],"eras":b[1][12],"dayPeriods":b[0][1520]},{"months":b[1][13],"days":b[1][695],"eras":b[1][14],"dayPeriods":b[0][1520]},{"months":b[1][15],"days":b[1][695],"eras":b[1][16],"dayPeriods":b[0][1520]},{"months":b[1][694],"days":b[1][695],"eras":b[1][17],"dayPeriods":b[0][1520]},{"months":b[1][18],"days":b[1][695],"eras":b[1][19],"dayPeriods":b[0][1520]},{"months":b[1][694],"days":b[1][695],"eras":b[1][27],"dayPeriods":b[0][1520]},{"nu":b[0][1523],"patterns":b[1][21],"symbols":b[1][152],"currencies":b[0][894]},{"months":b[1][698],"days":b[1][699],"eras":b[1][3],"dayPeriods":b[0][1532]},{"months":b[1][700],"days":b[1][699],"dayPeriods":b[0][1532]},{"months":b[1][5],"days":b[1][699],"eras":b[1][6],"dayPeriods":b[0][1532]},{"months":b[1][7],"days":b[1][699],"eras":b[1][6],"dayPeriods":b[0][1532]},{"months":b[1][7],"days":b[1][699],"eras":b[1][8],"dayPeriods":b[0][1532]},{"months":b[1][9],"days":b[1][699],"eras":b[1][6],"dayPeriods":b[0][1532]},{"months":b[1][698],"days":b[1][699],"eras":b[1][701],"dayPeriods":b[0][1532]},{"months":b[1][11],"days":b[1][699],"eras":b[1][12],"dayPeriods":b[0][1532]},{"months":b[1][13],"days":b[1][699],"eras":b[1][14],"dayPeriods":b[0][1532]},{"months":b[1][15],"days":b[1][699],"eras":b[1][16],"dayPeriods":b[0][1532]},{"months":b[1][698],"days":b[1][699],"eras":b[1][17],"dayPeriods":b[0][1532]},{"months":b[1][18],"days":b[1][699],"eras":b[1][19],"dayPeriods":b[0][1532]},{"months":b[1][698],"days":b[1][699],"eras":b[1][27],"dayPeriods":b[0][1532]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][1535]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][95],"currencies":b[0][1537]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][1538]},{"months":b[1][704],"days":b[1][705],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][705],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][705],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][705],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][705],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][705],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][704],"days":b[1][705],"eras":b[1][706],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][705],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][705],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][705],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][704],"days":b[1][705],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][705],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][704],"days":b[1][705],"eras":b[1][27],"dayPeriods":b[0][11]},{"months":b[1][707],"days":b[1][708],"eras":b[1][3],"dayPeriods":b[0][1554]},{"months":b[1][9],"days":b[1][708],"dayPeriods":b[0][1554]},{"months":b[1][5],"days":b[1][708],"eras":b[1][6],"dayPeriods":b[0][1554]},{"months":b[1][7],"days":b[1][708],"eras":b[1][6],"dayPeriods":b[0][1554]},{"months":b[1][7],"days":b[1][708],"eras":b[1][8],"dayPeriods":b[0][1554]},{"months":b[1][9],"days":b[1][708],"eras":b[1][6],"dayPeriods":b[0][1554]},{"months":b[1][707],"days":b[1][708],"eras":b[1][709],"dayPeriods":b[0][1554]},{"months":b[1][11],"days":b[1][708],"eras":b[1][12],"dayPeriods":b[0][1554]},{"months":b[1][13],"days":b[1][708],"eras":b[1][14],"dayPeriods":b[0][1554]},{"months":b[1][15],"days":b[1][708],"eras":b[1][16],"dayPeriods":b[0][1554]},{"months":b[1][707],"days":b[1][708],"eras":b[1][17],"dayPeriods":b[0][1554]},{"months":b[1][18],"days":b[1][708],"eras":b[1][19],"dayPeriods":b[0][1554]},{"months":b[1][707],"days":b[1][708],"eras":b[1][27],"dayPeriods":b[0][1554]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][95],"currencies":b[0][70]},{"months":b[1][711],"days":b[1][712],"eras":b[1][3],"dayPeriods":b[0][1564]},{"months":b[1][9],"days":b[1][712],"dayPeriods":b[0][1564]},{"months":b[1][5],"days":b[1][712],"eras":b[1][6],"dayPeriods":b[0][1564]},{"months":b[1][7],"days":b[1][712],"eras":b[1][6],"dayPeriods":b[0][1564]},{"months":b[1][7],"days":b[1][712],"eras":b[1][8],"dayPeriods":b[0][1564]},{"months":b[1][9],"days":b[1][712],"eras":b[1][6],"dayPeriods":b[0][1564]},{"months":b[1][711],"days":b[1][712],"eras":b[1][713],"dayPeriods":b[0][1564]},{"months":b[1][11],"days":b[1][712],"eras":b[1][12],"dayPeriods":b[0][1564]},{"months":b[1][13],"days":b[1][712],"eras":b[1][14],"dayPeriods":b[0][1564]},{"months":b[1][15],"days":b[1][712],"eras":b[1][16],"dayPeriods":b[0][1564]},{"months":b[1][711],"days":b[1][712],"eras":b[1][17],"dayPeriods":b[0][1564]},{"months":b[1][18],"days":b[1][712],"eras":b[1][19],"dayPeriods":b[0][1564]},{"months":b[1][711],"days":b[1][712],"eras":b[1][27],"dayPeriods":b[0][1564]},{"nu":b[0][1567],"patterns":b[1][58],"symbols":b[1][714],"currencies":b[0][1569]},{"months":b[1][715],"days":b[1][96],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][715],"days":b[1][96],"eras":b[1][716],"dayPeriods":b[0][11]},{"months":b[1][715],"days":b[1][96],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][715],"days":b[1][96],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][748],"patterns":b[1][58],"symbols":b[1][632],"currencies":b[0][388]},{"months":b[1][717],"days":b[1][718],"eras":b[1][3],"dayPeriods":b[0][1577]},{"months":b[1][9],"days":b[1][718],"dayPeriods":b[0][1577]},{"months":b[1][5],"days":b[1][718],"eras":b[1][6],"dayPeriods":b[0][1577]},{"months":b[1][7],"days":b[1][718],"eras":b[1][6],"dayPeriods":b[0][1577]},{"months":b[1][7],"days":b[1][718],"eras":b[1][8],"dayPeriods":b[0][1577]},{"months":b[1][9],"days":b[1][718],"eras":b[1][6],"dayPeriods":b[0][1577]},{"months":b[1][717],"days":b[1][718],"eras":b[1][719],"dayPeriods":b[0][1577]},{"months":b[1][11],"days":b[1][718],"eras":b[1][12],"dayPeriods":b[0][1577]},{"months":b[1][13],"days":b[1][718],"eras":b[1][14],"dayPeriods":b[0][1577]},{"months":b[1][15],"days":b[1][718],"eras":b[1][16],"dayPeriods":b[0][1577]},{"months":b[1][717],"days":b[1][718],"eras":b[1][17],"dayPeriods":b[0][1577]},{"months":b[1][18],"days":b[1][718],"eras":b[1][19],"dayPeriods":b[0][1577]},{"months":b[1][717],"days":b[1][718],"eras":b[1][27],"dayPeriods":b[0][1577]},{"months":b[1][721],"days":b[1][200],"eras":b[1][3],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][200],"dayPeriods":b[0][582]},{"months":b[1][722],"days":b[1][200],"eras":b[1][723],"dayPeriods":b[0][582]},{"months":b[1][724],"days":b[1][200],"eras":b[1][723],"dayPeriods":b[0][582]},{"months":b[1][724],"days":b[1][200],"eras":b[1][8],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][200],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][721],"days":b[1][200],"eras":b[1][725],"dayPeriods":b[0][582]},{"months":b[1][726],"days":b[1][200],"eras":b[1][12],"dayPeriods":b[0][582]},{"months":b[1][727],"days":b[1][200],"eras":b[1][728],"dayPeriods":b[0][582]},{"months":b[1][729],"days":b[1][200],"eras":b[1][16],"dayPeriods":b[0][582]},{"months":b[1][721],"days":b[1][200],"eras":b[1][17],"dayPeriods":b[0][582]},{"months":b[1][730],"days":b[1][200],"eras":b[1][19],"dayPeriods":b[0][582]},{"months":b[1][721],"days":b[1][200],"eras":b[1][20],"dayPeriods":b[0][582]},{"nu":b[0][37],"patterns":b[1][211],"symbols":b[1][309],"currencies":b[0][1596]},{"months":b[1][731],"days":b[1][732],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][732],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][732],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][732],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][732],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][732],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][731],"days":b[1][732],"eras":b[1][733],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][732],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][732],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][732],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][731],"days":b[1][732],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][732],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][731],"days":b[1][732],"eras":b[1][27],"dayPeriods":b[0][11]},{"months":b[1][735],"days":b[1][736],"eras":b[1][3],"dayPeriods":b[0][981]},{"months":b[1][9],"days":b[1][736],"dayPeriods":b[0][981]},{"months":b[1][5],"days":b[1][736],"eras":b[1][6],"dayPeriods":b[0][981]},{"months":b[1][7],"days":b[1][736],"eras":b[1][6],"dayPeriods":b[0][981]},{"months":b[1][7],"days":b[1][736],"eras":b[1][8],"dayPeriods":b[0][981]},{"months":b[1][9],"days":b[1][736],"eras":b[1][6],"dayPeriods":b[0][981]},{"months":b[1][735],"days":b[1][736],"eras":b[1][737],"dayPeriods":b[0][981]},{"months":b[1][11],"days":b[1][736],"eras":b[1][12],"dayPeriods":b[0][981]},{"months":b[1][738],"days":b[1][736],"eras":b[1][14],"dayPeriods":b[0][981]},{"months":b[1][15],"days":b[1][736],"eras":b[1][16],"dayPeriods":b[0][981]},{"months":b[1][735],"days":b[1][736],"eras":b[1][17],"dayPeriods":b[0][981]},{"months":b[1][18],"days":b[1][736],"eras":b[1][19],"dayPeriods":b[0][981]},{"months":b[1][735],"days":b[1][736],"eras":b[1][27],"dayPeriods":b[0][981]},{"nu":b[0][1523],"patterns":b[1][58],"symbols":b[1][152],"currencies":b[0][1613]},{"months":b[1][740],"days":b[1][741],"eras":b[1][3],"dayPeriods":b[0][582]},{"months":b[1][742],"days":b[1][741],"dayPeriods":b[0][582]},{"months":b[1][376],"days":b[1][741],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][377],"days":b[1][741],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][377],"days":b[1][741],"eras":b[1][8],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][741],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][740],"days":b[1][741],"eras":b[1][743],"dayPeriods":b[0][582]},{"months":b[1][379],"days":b[1][741],"eras":b[1][12],"dayPeriods":b[0][582]},{"months":b[1][380],"days":b[1][741],"eras":b[1][381],"dayPeriods":b[0][582]},{"months":b[1][382],"days":b[1][741],"eras":b[1][383],"dayPeriods":b[0][582]},{"months":b[1][740],"days":b[1][741],"eras":b[1][744],"dayPeriods":b[0][582]},{"months":b[1][18],"days":b[1][741],"eras":b[1][19],"dayPeriods":b[0][582]},{"months":b[1][740],"days":b[1][741],"eras":b[1][745],"dayPeriods":b[0][582]},{"nu":b[0][37],"patterns":b[1][264],"symbols":b[1][95],"currencies":b[0][870]},{"nu":b[0][37],"patterns":b[1][264],"symbols":b[1][95],"currencies":b[0][1625]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][95],"currencies":b[0][870]},{"nu":b[0][37],"patterns":b[1][264],"symbols":b[1][95],"currencies":b[0][1626]},{"nu":b[0][37],"patterns":b[1][264],"symbols":b[1][95],"currencies":b[0][1627]},{"nu":b[0][37],"patterns":b[1][264],"symbols":b[1][95],"currencies":b[0][1628]},{"months":b[1][747],"days":b[1][748],"eras":b[1][3],"dayPeriods":b[0][1634]},{"months":b[1][9],"days":b[1][748],"dayPeriods":b[0][1634]},{"months":b[1][5],"days":b[1][748],"eras":b[1][6],"dayPeriods":b[0][1634]},{"months":b[1][7],"days":b[1][748],"eras":b[1][6],"dayPeriods":b[0][1634]},{"months":b[1][7],"days":b[1][748],"eras":b[1][8],"dayPeriods":b[0][1634]},{"months":b[1][9],"days":b[1][748],"eras":b[1][6],"dayPeriods":b[0][1634]},{"months":b[1][747],"days":b[1][748],"eras":b[1][749],"dayPeriods":b[0][1634]},{"months":b[1][11],"days":b[1][748],"eras":b[1][12],"dayPeriods":b[0][1634]},{"months":b[1][13],"days":b[1][748],"eras":b[1][14],"dayPeriods":b[0][1634]},{"months":b[1][15],"days":b[1][748],"eras":b[1][16],"dayPeriods":b[0][1634]},{"months":b[1][747],"days":b[1][748],"eras":b[1][17],"dayPeriods":b[0][1634]},{"months":b[1][18],"days":b[1][748],"eras":b[1][19],"dayPeriods":b[0][1634]},{"months":b[1][747],"days":b[1][748],"eras":b[1][27],"dayPeriods":b[0][1634]},{"months":b[1][751],"days":b[1][752],"eras":b[1][3],"dayPeriods":b[0][1642]},{"months":b[1][9],"days":b[1][752],"dayPeriods":b[0][1642]},{"months":b[1][5],"days":b[1][752],"eras":b[1][6],"dayPeriods":b[0][1642]},{"months":b[1][7],"days":b[1][752],"eras":b[1][6],"dayPeriods":b[0][1642]},{"months":b[1][7],"days":b[1][752],"eras":b[1][8],"dayPeriods":b[0][1642]},{"months":b[1][9],"days":b[1][752],"eras":b[1][6],"dayPeriods":b[0][1642]},{"months":b[1][751],"days":b[1][752],"eras":b[1][753],"dayPeriods":b[0][1642]},{"months":b[1][11],"days":b[1][752],"eras":b[1][12],"dayPeriods":b[0][1642]},{"months":b[1][13],"days":b[1][752],"eras":b[1][14],"dayPeriods":b[0][1642]},{"months":b[1][15],"days":b[1][752],"eras":b[1][16],"dayPeriods":b[0][1642]},{"months":b[1][751],"days":b[1][752],"eras":b[1][17],"dayPeriods":b[0][1642]},{"months":b[1][18],"days":b[1][752],"eras":b[1][19],"dayPeriods":b[0][1642]},{"months":b[1][751],"days":b[1][752],"eras":b[1][27],"dayPeriods":b[0][1642]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][309],"currencies":b[0][1644]},{"months":b[1][755],"days":b[1][756],"eras":b[1][3],"dayPeriods":b[0][1649]},{"months":b[1][9],"days":b[1][756],"dayPeriods":b[0][1649]},{"months":b[1][5],"days":b[1][756],"eras":b[1][6],"dayPeriods":b[0][1649]},{"months":b[1][7],"days":b[1][756],"eras":b[1][6],"dayPeriods":b[0][1649]},{"months":b[1][7],"days":b[1][756],"eras":b[1][8],"dayPeriods":b[0][1649]},{"months":b[1][9],"days":b[1][756],"eras":b[1][6],"dayPeriods":b[0][1649]},{"months":b[1][755],"days":b[1][756],"eras":b[1][757],"dayPeriods":b[0][1649]},{"months":b[1][11],"days":b[1][756],"eras":b[1][12],"dayPeriods":b[0][1649]},{"months":b[1][13],"days":b[1][756],"eras":b[1][14],"dayPeriods":b[0][1649]},{"months":b[1][15],"days":b[1][756],"eras":b[1][16],"dayPeriods":b[0][1649]},{"months":b[1][755],"days":b[1][756],"eras":b[1][17],"dayPeriods":b[0][1649]},{"months":b[1][18],"days":b[1][756],"eras":b[1][19],"dayPeriods":b[0][1649]},{"months":b[1][755],"days":b[1][756],"eras":b[1][27],"dayPeriods":b[0][1649]},{"months":b[1][759],"days":b[1][760],"eras":b[1][3],"dayPeriods":b[0][1661]},{"months":b[1][9],"days":b[1][760],"dayPeriods":b[0][1661]},{"months":b[1][5],"days":b[1][760],"eras":b[1][6],"dayPeriods":b[0][1661]},{"months":b[1][7],"days":b[1][760],"eras":b[1][6],"dayPeriods":b[0][1661]},{"months":b[1][7],"days":b[1][760],"eras":b[1][8],"dayPeriods":b[0][1661]},{"months":b[1][9],"days":b[1][760],"eras":b[1][6],"dayPeriods":b[0][1661]},{"months":b[1][759],"days":b[1][760],"eras":b[1][761],"dayPeriods":b[0][1661]},{"months":b[1][11],"days":b[1][760],"eras":b[1][12],"dayPeriods":b[0][1661]},{"months":b[1][13],"days":b[1][760],"eras":b[1][14],"dayPeriods":b[0][1661]},{"months":b[1][15],"days":b[1][760],"eras":b[1][16],"dayPeriods":b[0][1661]},{"months":b[1][759],"days":b[1][760],"eras":b[1][17],"dayPeriods":b[0][1661]},{"months":b[1][18],"days":b[1][760],"eras":b[1][19],"dayPeriods":b[0][1661]},{"months":b[1][759],"days":b[1][760],"eras":b[1][27],"dayPeriods":b[0][1661]},{"months":b[1][763],"days":b[1][764],"eras":b[1][3],"dayPeriods":b[0][1670]},{"months":b[1][9],"days":b[1][764],"dayPeriods":b[0][1670]},{"months":b[1][5],"days":b[1][764],"eras":b[1][6],"dayPeriods":b[0][1670]},{"months":b[1][7],"days":b[1][764],"eras":b[1][6],"dayPeriods":b[0][1670]},{"months":b[1][7],"days":b[1][764],"eras":b[1][8],"dayPeriods":b[0][1670]},{"months":b[1][9],"days":b[1][764],"eras":b[1][6],"dayPeriods":b[0][1670]},{"months":b[1][763],"days":b[1][764],"eras":b[1][765],"dayPeriods":b[0][1670]},{"months":b[1][11],"days":b[1][764],"eras":b[1][12],"dayPeriods":b[0][1670]},{"months":b[1][13],"days":b[1][764],"eras":b[1][14],"dayPeriods":b[0][1670]},{"months":b[1][15],"days":b[1][764],"eras":b[1][16],"dayPeriods":b[0][1670]},{"months":b[1][763],"days":b[1][764],"eras":b[1][17],"dayPeriods":b[0][1670]},{"months":b[1][18],"days":b[1][764],"eras":b[1][19],"dayPeriods":b[0][1670]},{"months":b[1][763],"days":b[1][764],"eras":b[1][27],"dayPeriods":b[0][1670]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][1672]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][1673]},{"months":b[1][768],"days":b[1][769],"eras":b[1][3],"dayPeriods":b[0][549]},{"months":b[1][9],"days":b[1][769],"dayPeriods":b[0][549]},{"months":b[1][5],"days":b[1][769],"eras":b[1][6],"dayPeriods":b[0][549]},{"months":b[1][7],"days":b[1][769],"eras":b[1][6],"dayPeriods":b[0][549]},{"months":b[1][7],"days":b[1][769],"eras":b[1][8],"dayPeriods":b[0][549]},{"months":b[1][9],"days":b[1][769],"eras":b[1][6],"dayPeriods":b[0][549]},{"months":b[1][768],"days":b[1][769],"eras":b[1][72],"dayPeriods":b[0][549]},{"months":b[1][11],"days":b[1][769],"eras":b[1][12],"dayPeriods":b[0][549]},{"months":b[1][13],"days":b[1][769],"eras":b[1][14],"dayPeriods":b[0][549]},{"months":b[1][15],"days":b[1][769],"eras":b[1][16],"dayPeriods":b[0][549]},{"months":b[1][768],"days":b[1][769],"eras":b[1][17],"dayPeriods":b[0][549]},{"months":b[1][18],"days":b[1][769],"eras":b[1][19],"dayPeriods":b[0][549]},{"months":b[1][768],"days":b[1][769],"eras":b[1][27],"dayPeriods":b[0][549]},{"nu":b[0][37],"patterns":b[1][73],"symbols":b[1][770],"currencies":b[0][70]},{"months":b[1][772],"days":b[1][773],"eras":b[1][3],"dayPeriods":b[0][1688]},{"months":b[1][9],"days":b[1][773],"dayPeriods":b[0][1688]},{"months":b[1][5],"days":b[1][773],"eras":b[1][6],"dayPeriods":b[0][1688]},{"months":b[1][7],"days":b[1][773],"eras":b[1][6],"dayPeriods":b[0][1688]},{"months":b[1][7],"days":b[1][773],"eras":b[1][8],"dayPeriods":b[0][1688]},{"months":b[1][9],"days":b[1][773],"eras":b[1][6],"dayPeriods":b[0][1688]},{"months":b[1][772],"days":b[1][773],"eras":b[1][774],"dayPeriods":b[0][1688]},{"months":b[1][11],"days":b[1][773],"eras":b[1][12],"dayPeriods":b[0][1688]},{"months":b[1][13],"days":b[1][773],"eras":b[1][14],"dayPeriods":b[0][1688]},{"months":b[1][15],"days":b[1][773],"eras":b[1][16],"dayPeriods":b[0][1688]},{"months":b[1][772],"days":b[1][773],"eras":b[1][17],"dayPeriods":b[0][1688]},{"months":b[1][18],"days":b[1][773],"eras":b[1][19],"dayPeriods":b[0][1688]},{"months":b[1][772],"days":b[1][773],"eras":b[1][27],"dayPeriods":b[0][1688]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][775],"currencies":b[0][388]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][775],"currencies":b[0][1691]},{"months":b[1][777],"days":b[1][778],"eras":b[1][3],"dayPeriods":b[0][1699]},{"months":b[1][9],"days":b[1][778],"dayPeriods":b[0][1699]},{"months":b[1][5],"days":b[1][778],"eras":b[1][6],"dayPeriods":b[0][1699]},{"months":b[1][7],"days":b[1][778],"eras":b[1][6],"dayPeriods":b[0][1699]},{"months":b[1][7],"days":b[1][778],"eras":b[1][8],"dayPeriods":b[0][1699]},{"months":b[1][9],"days":b[1][778],"eras":b[1][6],"dayPeriods":b[0][1699]},{"months":b[1][777],"days":b[1][778],"eras":b[1][779],"dayPeriods":b[0][1699]},{"months":b[1][11],"days":b[1][778],"eras":b[1][12],"dayPeriods":b[0][1699]},{"months":b[1][780],"days":b[1][778],"eras":b[1][781],"dayPeriods":b[0][1699]},{"months":b[1][15],"days":b[1][778],"eras":b[1][16],"dayPeriods":b[0][1699]},{"months":b[1][777],"days":b[1][778],"eras":b[1][17],"dayPeriods":b[0][1699]},{"months":b[1][18],"days":b[1][778],"eras":b[1][19],"dayPeriods":b[0][1699]},{"months":b[1][777],"days":b[1][778],"eras":b[1][27],"dayPeriods":b[0][1699]},{"nu":b[0][37],"patterns":b[1][73],"symbols":b[1][782],"currencies":b[0][925]},{"months":b[1][784],"days":b[1][785],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][785],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][785],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][785],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][785],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][785],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][784],"days":b[1][785],"eras":b[1][786],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][785],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][785],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][785],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][784],"days":b[1][785],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][785],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][784],"days":b[1][785],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][748],"patterns":b[1][58],"symbols":b[1][787],"currencies":b[0][1710]},{"months":b[1][789],"days":b[1][790],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][457],"days":b[1][790],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][790],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][790],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][790],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][790],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][789],"days":b[1][790],"eras":b[1][791],"dayPeriods":b[0][11]},{"months":b[1][792],"days":b[1][790],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][790],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][793],"days":b[1][790],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][789],"days":b[1][790],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][794],"days":b[1][790],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][789],"days":b[1][790],"eras":b[1][795],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][28],"currencies":b[0][1725]},{"months":b[1][797],"days":b[1][798],"eras":b[1][3],"dayPeriods":b[0][1729]},{"months":b[1][9],"days":b[1][798],"dayPeriods":b[0][1729]},{"months":b[1][5],"days":b[1][798],"eras":b[1][6],"dayPeriods":b[0][1729]},{"months":b[1][7],"days":b[1][798],"eras":b[1][6],"dayPeriods":b[0][1729]},{"months":b[1][7],"days":b[1][798],"eras":b[1][8],"dayPeriods":b[0][1729]},{"months":b[1][9],"days":b[1][798],"eras":b[1][6],"dayPeriods":b[0][1729]},{"months":b[1][797],"days":b[1][798],"eras":b[1][799],"dayPeriods":b[0][1729]},{"months":b[1][11],"days":b[1][798],"eras":b[1][12],"dayPeriods":b[0][1729]},{"months":b[1][13],"days":b[1][798],"eras":b[1][14],"dayPeriods":b[0][1729]},{"months":b[1][15],"days":b[1][798],"eras":b[1][16],"dayPeriods":b[0][1729]},{"months":b[1][797],"days":b[1][798],"eras":b[1][17],"dayPeriods":b[0][1729]},{"months":b[1][800],"days":b[1][798],"eras":b[1][19],"dayPeriods":b[0][1729]},{"months":b[1][797],"days":b[1][798],"eras":b[1][27],"dayPeriods":b[0][1729]},{"nu":b[0][748],"patterns":b[1][79],"symbols":b[1][801],"currencies":b[0][1733]},{"months":b[1][803],"days":b[1][804],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][805],"days":b[1][804],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][804],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][804],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][804],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][804],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][803],"days":b[1][804],"eras":b[1][806],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][804],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][804],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][804],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][803],"days":b[1][804],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][804],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][803],"days":b[1][804],"eras":b[1][807],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][95],"currencies":b[0][1745]},{"months":b[1][803],"days":b[1][809],"eras":b[1][3],"dayPeriods":b[0][1748]},{"months":b[1][810],"days":b[1][809],"dayPeriods":b[0][1748]},{"months":b[1][5],"days":b[1][809],"eras":b[1][6],"dayPeriods":b[0][1748]},{"months":b[1][7],"days":b[1][809],"eras":b[1][6],"dayPeriods":b[0][1748]},{"months":b[1][7],"days":b[1][809],"eras":b[1][8],"dayPeriods":b[0][1748]},{"months":b[1][9],"days":b[1][809],"eras":b[1][6],"dayPeriods":b[0][1748]},{"months":b[1][803],"days":b[1][809],"eras":b[1][811],"dayPeriods":b[0][1748]},{"months":b[1][11],"days":b[1][809],"eras":b[1][12],"dayPeriods":b[0][1748]},{"months":b[1][13],"days":b[1][809],"eras":b[1][14],"dayPeriods":b[0][1748]},{"months":b[1][15],"days":b[1][809],"eras":b[1][16],"dayPeriods":b[0][1748]},{"months":b[1][803],"days":b[1][809],"eras":b[1][17],"dayPeriods":b[0][1748]},{"months":b[1][18],"days":b[1][809],"eras":b[1][19],"dayPeriods":b[0][1748]},{"months":b[1][803],"days":b[1][809],"eras":b[1][807],"dayPeriods":b[0][1748]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][28],"currencies":b[0][1751]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][28],"currencies":b[0][1752]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][28],"currencies":b[0][1753]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][28],"currencies":b[0][1754]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][28],"currencies":b[0][1755]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][28],"currencies":b[0][1756]},{"months":b[1][814],"days":b[1][815],"eras":b[1][3],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][815],"dayPeriods":b[0][582]},{"months":b[1][5],"days":b[1][815],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][815],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][815],"eras":b[1][8],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][815],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][814],"days":b[1][815],"eras":b[1][816],"dayPeriods":b[0][582]},{"months":b[1][11],"days":b[1][815],"eras":b[1][12],"dayPeriods":b[0][582]},{"months":b[1][13],"days":b[1][815],"eras":b[1][14],"dayPeriods":b[0][582]},{"months":b[1][15],"days":b[1][815],"eras":b[1][16],"dayPeriods":b[0][582]},{"months":b[1][814],"days":b[1][815],"eras":b[1][17],"dayPeriods":b[0][582]},{"months":b[1][18],"days":b[1][815],"eras":b[1][19],"dayPeriods":b[0][582]},{"months":b[1][814],"days":b[1][815],"eras":b[1][27],"dayPeriods":b[0][582]},{"nu":b[0][37],"patterns":b[1][211],"symbols":b[1][22],"currencies":b[0][1765]},{"nu":b[0][37],"patterns":b[1][211],"symbols":b[1][95],"currencies":b[0][1766]},{"nu":b[0][37],"patterns":b[1][211],"symbols":b[1][22],"currencies":b[0][388]},{"months":b[1][818],"days":b[1][819],"eras":b[1][3],"dayPeriods":b[0][1775]},{"months":b[1][9],"days":b[1][819],"dayPeriods":b[0][1775]},{"months":b[1][5],"days":b[1][819],"eras":b[1][6],"dayPeriods":b[0][1775]},{"months":b[1][7],"days":b[1][819],"eras":b[1][6],"dayPeriods":b[0][1775]},{"months":b[1][7],"days":b[1][819],"eras":b[1][8],"dayPeriods":b[0][1775]},{"months":b[1][9],"days":b[1][819],"eras":b[1][6],"dayPeriods":b[0][1775]},{"months":b[1][818],"days":b[1][819],"eras":b[1][820],"dayPeriods":b[0][1775]},{"months":b[1][11],"days":b[1][819],"eras":b[1][12],"dayPeriods":b[0][1775]},{"months":b[1][13],"days":b[1][819],"eras":b[1][14],"dayPeriods":b[0][1775]},{"months":b[1][15],"days":b[1][819],"eras":b[1][16],"dayPeriods":b[0][1775]},{"months":b[1][818],"days":b[1][819],"eras":b[1][17],"dayPeriods":b[0][1775]},{"months":b[1][18],"days":b[1][819],"eras":b[1][19],"dayPeriods":b[0][1775]},{"months":b[1][818],"days":b[1][819],"eras":b[1][27],"dayPeriods":b[0][1775]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][402],"currencies":b[0][70]},{"months":b[1][821],"days":b[1][822],"eras":b[1][3],"dayPeriods":b[0][1782]},{"months":b[1][9],"days":b[1][822],"dayPeriods":b[0][1782]},{"months":b[1][5],"days":b[1][822],"eras":b[1][6],"dayPeriods":b[0][1782]},{"months":b[1][7],"days":b[1][822],"eras":b[1][6],"dayPeriods":b[0][1782]},{"months":b[1][7],"days":b[1][822],"eras":b[1][8],"dayPeriods":b[0][1782]},{"months":b[1][9],"days":b[1][822],"eras":b[1][6],"dayPeriods":b[0][1782]},{"months":b[1][821],"days":b[1][822],"eras":b[1][823],"dayPeriods":b[0][1782]},{"months":b[1][11],"days":b[1][822],"eras":b[1][12],"dayPeriods":b[0][1782]},{"months":b[1][13],"days":b[1][822],"eras":b[1][14],"dayPeriods":b[0][1782]},{"months":b[1][15],"days":b[1][822],"eras":b[1][16],"dayPeriods":b[0][1782]},{"months":b[1][821],"days":b[1][822],"eras":b[1][17],"dayPeriods":b[0][1782]},{"months":b[1][18],"days":b[1][822],"eras":b[1][19],"dayPeriods":b[0][1782]},{"months":b[1][821],"days":b[1][822],"eras":b[1][27],"dayPeriods":b[0][1782]},{"nu":b[0][37],"patterns":b[1][824],"symbols":b[1][95],"currencies":b[0][1785]},{"months":b[1][826],"days":b[1][827],"eras":b[1][828],"dayPeriods":b[0][582]},{"months":b[1][457],"days":b[1][827],"dayPeriods":b[0][582]},{"months":b[1][5],"days":b[1][827],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][827],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][827],"eras":b[1][8],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][827],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][826],"days":b[1][827],"eras":b[1][829],"dayPeriods":b[0][582]},{"months":b[1][830],"days":b[1][827],"eras":b[1][12],"dayPeriods":b[0][582]},{"months":b[1][13],"days":b[1][827],"eras":b[1][14],"dayPeriods":b[0][582]},{"months":b[1][15],"days":b[1][827],"eras":b[1][16],"dayPeriods":b[0][582]},{"months":b[1][826],"days":b[1][827],"eras":b[1][17],"dayPeriods":b[0][582]},{"months":b[1][18],"days":b[1][827],"eras":b[1][19],"dayPeriods":b[0][582]},{"months":b[1][826],"days":b[1][827],"eras":b[1][27],"dayPeriods":b[0][582]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][95],"currencies":b[0][1798]},{"months":b[1][826],"days":b[1][831],"eras":b[1][828],"dayPeriods":b[0][582]},{"months":b[1][457],"days":b[1][831],"dayPeriods":b[0][582]},{"months":b[1][5],"days":b[1][831],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][831],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][7],"days":b[1][831],"eras":b[1][8],"dayPeriods":b[0][582]},{"months":b[1][9],"days":b[1][831],"eras":b[1][6],"dayPeriods":b[0][582]},{"months":b[1][826],"days":b[1][831],"eras":b[1][832],"dayPeriods":b[0][582]},{"months":b[1][830],"days":b[1][831],"eras":b[1][12],"dayPeriods":b[0][582]},{"months":b[1][13],"days":b[1][831],"eras":b[1][14],"dayPeriods":b[0][582]},{"months":b[1][15],"days":b[1][831],"eras":b[1][16],"dayPeriods":b[0][582]},{"months":b[1][826],"days":b[1][831],"eras":b[1][17],"dayPeriods":b[0][582]},{"months":b[1][18],"days":b[1][831],"eras":b[1][19],"dayPeriods":b[0][582]},{"months":b[1][826],"days":b[1][831],"eras":b[1][27],"dayPeriods":b[0][582]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][95],"currencies":b[0][1802]},{"months":b[1][833],"days":b[1][834],"eras":b[1][3],"dayPeriods":b[0][1807]},{"months":b[1][9],"days":b[1][834],"dayPeriods":b[0][1807]},{"months":b[1][5],"days":b[1][834],"eras":b[1][6],"dayPeriods":b[0][1807]},{"months":b[1][7],"days":b[1][834],"eras":b[1][6],"dayPeriods":b[0][1807]},{"months":b[1][7],"days":b[1][834],"eras":b[1][8],"dayPeriods":b[0][1807]},{"months":b[1][9],"days":b[1][834],"eras":b[1][6],"dayPeriods":b[0][1807]},{"months":b[1][833],"days":b[1][834],"eras":b[1][835],"dayPeriods":b[0][1807]},{"months":b[1][11],"days":b[1][834],"eras":b[1][12],"dayPeriods":b[0][1807]},{"months":b[1][13],"days":b[1][834],"eras":b[1][14],"dayPeriods":b[0][1807]},{"months":b[1][15],"days":b[1][834],"eras":b[1][16],"dayPeriods":b[0][1807]},{"months":b[1][833],"days":b[1][834],"eras":b[1][17],"dayPeriods":b[0][1807]},{"months":b[1][18],"days":b[1][834],"eras":b[1][19],"dayPeriods":b[0][1807]},{"months":b[1][833],"days":b[1][834],"eras":b[1][27],"dayPeriods":b[0][1807]},{"months":b[1][837],"days":b[1][838],"eras":b[1][3],"dayPeriods":b[0][1815]},{"months":b[1][457],"days":b[1][838],"dayPeriods":b[0][1815]},{"months":b[1][839],"days":b[1][838],"eras":b[1][6],"dayPeriods":b[0][1815]},{"months":b[1][840],"days":b[1][838],"eras":b[1][6],"dayPeriods":b[0][1815]},{"months":b[1][840],"days":b[1][838],"eras":b[1][8],"dayPeriods":b[0][1815]},{"months":b[1][9],"days":b[1][838],"eras":b[1][6],"dayPeriods":b[0][1815]},{"months":b[1][837],"days":b[1][838],"eras":b[1][841],"dayPeriods":b[0][1815]},{"months":b[1][842],"days":b[1][838],"eras":b[1][12],"dayPeriods":b[0][1815]},{"months":b[1][843],"days":b[1][838],"eras":b[1][14],"dayPeriods":b[0][1815]},{"months":b[1][844],"days":b[1][838],"eras":b[1][16],"dayPeriods":b[0][1815]},{"months":b[1][837],"days":b[1][838],"eras":b[1][845],"dayPeriods":b[0][1815]},{"months":b[1][846],"days":b[1][838],"eras":b[1][19],"dayPeriods":b[0][1815]},{"months":b[1][837],"days":b[1][838],"eras":b[1][20],"dayPeriods":b[0][1815]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][847],"currencies":b[0][1827]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][847],"currencies":b[0][1828]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][847],"currencies":b[0][1829]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][847],"currencies":b[0][1830]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][847],"currencies":b[0][1831]},{"months":b[1][850],"days":b[1][851],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][851],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][851],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][851],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][851],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][851],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][850],"days":b[1][851],"eras":b[1][72],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][851],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][851],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][851],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][850],"days":b[1][851],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][851],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][850],"days":b[1][851],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][95],"currencies":b[0][607]},{"months":b[1][853],"days":b[1][854],"eras":b[1][3],"dayPeriods":b[0][1843]},{"months":b[1][9],"days":b[1][854],"dayPeriods":b[0][1843]},{"months":b[1][5],"days":b[1][854],"eras":b[1][6],"dayPeriods":b[0][1843]},{"months":b[1][7],"days":b[1][854],"eras":b[1][6],"dayPeriods":b[0][1843]},{"months":b[1][7],"days":b[1][854],"eras":b[1][8],"dayPeriods":b[0][1843]},{"months":b[1][9],"days":b[1][854],"eras":b[1][6],"dayPeriods":b[0][1843]},{"months":b[1][853],"days":b[1][854],"eras":b[1][855],"dayPeriods":b[0][1843]},{"months":b[1][11],"days":b[1][854],"eras":b[1][12],"dayPeriods":b[0][1843]},{"months":b[1][13],"days":b[1][854],"eras":b[1][14],"dayPeriods":b[0][1843]},{"months":b[1][15],"days":b[1][854],"eras":b[1][16],"dayPeriods":b[0][1843]},{"months":b[1][853],"days":b[1][854],"eras":b[1][17],"dayPeriods":b[0][1843]},{"months":b[1][18],"days":b[1][854],"eras":b[1][19],"dayPeriods":b[0][1843]},{"months":b[1][853],"days":b[1][854],"eras":b[1][27],"dayPeriods":b[0][1843]},{"months":b[1][856],"days":b[1][857],"eras":b[1][3],"dayPeriods":b[0][1851]},{"months":b[1][9],"days":b[1][857],"dayPeriods":b[0][1851]},{"months":b[1][5],"days":b[1][857],"eras":b[1][6],"dayPeriods":b[0][1851]},{"months":b[1][7],"days":b[1][857],"eras":b[1][6],"dayPeriods":b[0][1851]},{"months":b[1][7],"days":b[1][857],"eras":b[1][8],"dayPeriods":b[0][1851]},{"months":b[1][9],"days":b[1][857],"eras":b[1][6],"dayPeriods":b[0][1851]},{"months":b[1][856],"days":b[1][857],"eras":b[1][858],"dayPeriods":b[0][1851]},{"months":b[1][11],"days":b[1][857],"eras":b[1][12],"dayPeriods":b[0][1851]},{"months":b[1][13],"days":b[1][857],"eras":b[1][14],"dayPeriods":b[0][1851]},{"months":b[1][15],"days":b[1][857],"eras":b[1][16],"dayPeriods":b[0][1851]},{"months":b[1][856],"days":b[1][857],"eras":b[1][17],"dayPeriods":b[0][1851]},{"months":b[1][18],"days":b[1][857],"eras":b[1][19],"dayPeriods":b[0][1851]},{"months":b[1][856],"days":b[1][857],"eras":b[1][27],"dayPeriods":b[0][1851]},{"months":b[1][860],"days":b[1][861],"eras":b[1][3],"dayPeriods":b[0][1859]},{"months":b[1][9],"days":b[1][861],"dayPeriods":b[0][1859]},{"months":b[1][5],"days":b[1][861],"eras":b[1][6],"dayPeriods":b[0][1859]},{"months":b[1][7],"days":b[1][861],"eras":b[1][6],"dayPeriods":b[0][1859]},{"months":b[1][7],"days":b[1][861],"eras":b[1][8],"dayPeriods":b[0][1859]},{"months":b[1][9],"days":b[1][861],"eras":b[1][6],"dayPeriods":b[0][1859]},{"months":b[1][860],"days":b[1][861],"eras":b[1][862],"dayPeriods":b[0][1859]},{"months":b[1][11],"days":b[1][861],"eras":b[1][12],"dayPeriods":b[0][1859]},{"months":b[1][13],"days":b[1][861],"eras":b[1][14],"dayPeriods":b[0][1859]},{"months":b[1][15],"days":b[1][861],"eras":b[1][16],"dayPeriods":b[0][1859]},{"months":b[1][860],"days":b[1][861],"eras":b[1][17],"dayPeriods":b[0][1859]},{"months":b[1][18],"days":b[1][861],"eras":b[1][19],"dayPeriods":b[0][1859]},{"months":b[1][860],"days":b[1][861],"eras":b[1][27],"dayPeriods":b[0][1859]},{"months":b[1][863],"days":b[1][864],"eras":b[1][3],"dayPeriods":b[0][1868]},{"months":b[1][9],"days":b[1][864],"dayPeriods":b[0][1868]},{"months":b[1][5],"days":b[1][864],"eras":b[1][6],"dayPeriods":b[0][1868]},{"months":b[1][7],"days":b[1][864],"eras":b[1][6],"dayPeriods":b[0][1868]},{"months":b[1][7],"days":b[1][864],"eras":b[1][8],"dayPeriods":b[0][1868]},{"months":b[1][9],"days":b[1][864],"eras":b[1][6],"dayPeriods":b[0][1868]},{"months":b[1][863],"days":b[1][864],"eras":b[1][865],"dayPeriods":b[0][1868]},{"months":b[1][11],"days":b[1][864],"eras":b[1][12],"dayPeriods":b[0][1868]},{"months":b[1][13],"days":b[1][864],"eras":b[1][14],"dayPeriods":b[0][1868]},{"months":b[1][15],"days":b[1][864],"eras":b[1][16],"dayPeriods":b[0][1868]},{"months":b[1][863],"days":b[1][864],"eras":b[1][17],"dayPeriods":b[0][1868]},{"months":b[1][18],"days":b[1][864],"eras":b[1][19],"dayPeriods":b[0][1868]},{"months":b[1][863],"days":b[1][864],"eras":b[1][27],"dayPeriods":b[0][1868]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][592],"currencies":b[0][1871]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][592],"currencies":b[0][1872]},{"months":b[1][867],"days":b[1][868],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][868],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][868],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][868],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][868],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][868],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][867],"days":b[1][868],"eras":b[1][869],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][868],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][868],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][868],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][867],"days":b[1][868],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][868],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][867],"days":b[1][868],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][33],"symbols":b[1][95],"currencies":b[0][1471]},{"months":b[1][214],"days":b[1][870],"eras":b[1][3],"dayPeriods":b[0][1184]},{"months":b[1][9],"days":b[1][870],"dayPeriods":b[0][1184]},{"months":b[1][5],"days":b[1][870],"eras":b[1][6],"dayPeriods":b[0][1184]},{"months":b[1][7],"days":b[1][870],"eras":b[1][6],"dayPeriods":b[0][1184]},{"months":b[1][7],"days":b[1][870],"eras":b[1][8],"dayPeriods":b[0][1184]},{"months":b[1][9],"days":b[1][870],"eras":b[1][6],"dayPeriods":b[0][1184]},{"months":b[1][214],"days":b[1][870],"eras":b[1][216],"dayPeriods":b[0][1184]},{"months":b[1][11],"days":b[1][870],"eras":b[1][12],"dayPeriods":b[0][1184]},{"months":b[1][13],"days":b[1][870],"eras":b[1][14],"dayPeriods":b[0][1184]},{"months":b[1][15],"days":b[1][870],"eras":b[1][16],"dayPeriods":b[0][1184]},{"months":b[1][214],"days":b[1][870],"eras":b[1][17],"dayPeriods":b[0][1184]},{"months":b[1][18],"days":b[1][870],"eras":b[1][19],"dayPeriods":b[0][1184]},{"months":b[1][214],"days":b[1][870],"eras":b[1][27],"dayPeriods":b[0][1184]},{"months":b[1][872],"days":b[1][873],"eras":b[1][3],"dayPeriods":b[0][1890]},{"months":b[1][9],"days":b[1][873],"dayPeriods":b[0][1890]},{"months":b[1][5],"days":b[1][873],"eras":b[1][6],"dayPeriods":b[0][1890]},{"months":b[1][7],"days":b[1][873],"eras":b[1][6],"dayPeriods":b[0][1890]},{"months":b[1][7],"days":b[1][873],"eras":b[1][8],"dayPeriods":b[0][1890]},{"months":b[1][9],"days":b[1][873],"eras":b[1][6],"dayPeriods":b[0][1890]},{"months":b[1][872],"days":b[1][873],"eras":b[1][874],"dayPeriods":b[0][1890]},{"months":b[1][11],"days":b[1][873],"eras":b[1][12],"dayPeriods":b[0][1890]},{"months":b[1][13],"days":b[1][873],"eras":b[1][14],"dayPeriods":b[0][1890]},{"months":b[1][15],"days":b[1][873],"eras":b[1][16],"dayPeriods":b[0][1890]},{"months":b[1][872],"days":b[1][873],"eras":b[1][17],"dayPeriods":b[0][1890]},{"months":b[1][18],"days":b[1][873],"eras":b[1][19],"dayPeriods":b[0][1890]},{"months":b[1][872],"days":b[1][873],"eras":b[1][27],"dayPeriods":b[0][1890]},{"nu":b[0][37],"patterns":b[1][629],"symbols":b[1][95],"currencies":b[0][70]},{"months":b[1][875],"days":b[1][876],"eras":b[1][3],"dayPeriods":b[0][1898]},{"months":b[1][9],"days":b[1][876],"dayPeriods":b[0][1898]},{"months":b[1][5],"days":b[1][876],"eras":b[1][6],"dayPeriods":b[0][1898]},{"months":b[1][7],"days":b[1][876],"eras":b[1][6],"dayPeriods":b[0][1898]},{"months":b[1][7],"days":b[1][876],"eras":b[1][8],"dayPeriods":b[0][1898]},{"months":b[1][9],"days":b[1][876],"eras":b[1][6],"dayPeriods":b[0][1898]},{"months":b[1][875],"days":b[1][876],"eras":b[1][877],"dayPeriods":b[0][1898]},{"months":b[1][11],"days":b[1][876],"eras":b[1][12],"dayPeriods":b[0][1898]},{"months":b[1][13],"days":b[1][876],"eras":b[1][14],"dayPeriods":b[0][1898]},{"months":b[1][15],"days":b[1][876],"eras":b[1][16],"dayPeriods":b[0][1898]},{"months":b[1][875],"days":b[1][876],"eras":b[1][17],"dayPeriods":b[0][1898]},{"months":b[1][18],"days":b[1][876],"eras":b[1][19],"dayPeriods":b[0][1898]},{"months":b[1][875],"days":b[1][876],"eras":b[1][27],"dayPeriods":b[0][1898]},{"months":b[1][878],"days":b[1][879],"eras":b[1][3],"dayPeriods":b[0][1906]},{"months":b[1][9],"days":b[1][879],"dayPeriods":b[0][1906]},{"months":b[1][5],"days":b[1][879],"eras":b[1][6],"dayPeriods":b[0][1906]},{"months":b[1][7],"days":b[1][879],"eras":b[1][6],"dayPeriods":b[0][1906]},{"months":b[1][7],"days":b[1][879],"eras":b[1][8],"dayPeriods":b[0][1906]},{"months":b[1][9],"days":b[1][879],"eras":b[1][6],"dayPeriods":b[0][1906]},{"months":b[1][878],"days":b[1][879],"eras":b[1][880],"dayPeriods":b[0][1906]},{"months":b[1][11],"days":b[1][879],"eras":b[1][12],"dayPeriods":b[0][1906]},{"months":b[1][13],"days":b[1][879],"eras":b[1][14],"dayPeriods":b[0][1906]},{"months":b[1][15],"days":b[1][879],"eras":b[1][16],"dayPeriods":b[0][1906]},{"months":b[1][878],"days":b[1][879],"eras":b[1][17],"dayPeriods":b[0][1906]},{"months":b[1][18],"days":b[1][879],"eras":b[1][19],"dayPeriods":b[0][1906]},{"months":b[1][878],"days":b[1][879],"eras":b[1][27],"dayPeriods":b[0][1906]},{"months":b[1][882],"days":b[1][883],"eras":b[1][3],"dayPeriods":b[0][1916]},{"months":b[1][9],"days":b[1][883],"dayPeriods":b[0][1916]},{"months":b[1][5],"days":b[1][883],"eras":b[1][6],"dayPeriods":b[0][1916]},{"months":b[1][7],"days":b[1][883],"eras":b[1][6],"dayPeriods":b[0][1916]},{"months":b[1][7],"days":b[1][883],"eras":b[1][8],"dayPeriods":b[0][1916]},{"months":b[1][9],"days":b[1][883],"eras":b[1][6],"dayPeriods":b[0][1916]},{"months":b[1][882],"days":b[1][883],"eras":b[1][884],"dayPeriods":b[0][1916]},{"months":b[1][11],"days":b[1][883],"eras":b[1][12],"dayPeriods":b[0][1916]},{"months":b[1][13],"days":b[1][883],"eras":b[1][14],"dayPeriods":b[0][1916]},{"months":b[1][15],"days":b[1][883],"eras":b[1][16],"dayPeriods":b[0][1916]},{"months":b[1][882],"days":b[1][883],"eras":b[1][17],"dayPeriods":b[0][1916]},{"months":b[1][18],"days":b[1][883],"eras":b[1][19],"dayPeriods":b[0][1916]},{"months":b[1][882],"days":b[1][883],"eras":b[1][27],"dayPeriods":b[0][1916]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][1919]},{"months":b[1][886],"days":b[1][887],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][887],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][887],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][887],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][887],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][887],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][886],"days":b[1][887],"eras":b[1][888],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][887],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][887],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][887],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][886],"days":b[1][887],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][887],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][886],"days":b[1][887],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][28],"currencies":b[0][1929]},{"months":b[1][890],"days":b[1][891],"eras":b[1][3],"dayPeriods":b[0][1937]},{"months":b[1][9],"days":b[1][891],"dayPeriods":b[0][1937]},{"months":b[1][5],"days":b[1][891],"eras":b[1][6],"dayPeriods":b[0][1937]},{"months":b[1][7],"days":b[1][891],"eras":b[1][6],"dayPeriods":b[0][1937]},{"months":b[1][7],"days":b[1][891],"eras":b[1][8],"dayPeriods":b[0][1937]},{"months":b[1][9],"days":b[1][891],"eras":b[1][6],"dayPeriods":b[0][1937]},{"months":b[1][890],"days":b[1][891],"eras":b[1][892],"dayPeriods":b[0][1937]},{"months":b[1][11],"days":b[1][891],"eras":b[1][12],"dayPeriods":b[0][1937]},{"months":b[1][13],"days":b[1][891],"eras":b[1][14],"dayPeriods":b[0][1937]},{"months":b[1][15],"days":b[1][891],"eras":b[1][16],"dayPeriods":b[0][1937]},{"months":b[1][890],"days":b[1][891],"eras":b[1][17],"dayPeriods":b[0][1937]},{"months":b[1][18],"days":b[1][891],"eras":b[1][19],"dayPeriods":b[0][1937]},{"months":b[1][890],"days":b[1][891],"eras":b[1][27],"dayPeriods":b[0][1937]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][95],"currencies":b[0][1940]},{"months":b[1][9],"days":b[1][893],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][893],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][893],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][893],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][893],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][893],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][893],"eras":b[1][72],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][893],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][893],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][893],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][893],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][893],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][893],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][894],"currencies":b[0][70]},{"months":b[1][895],"days":b[1][896],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][896],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][896],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][896],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][896],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][896],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][895],"days":b[1][896],"eras":b[1][897],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][896],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][896],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][896],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][895],"days":b[1][896],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][896],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][895],"days":b[1][896],"eras":b[1][27],"dayPeriods":b[0][11]},{"months":b[1][899],"days":b[1][900],"eras":b[1][3],"dayPeriods":b[0][1958]},{"months":b[1][9],"days":b[1][900],"dayPeriods":b[0][1958]},{"months":b[1][5],"days":b[1][900],"eras":b[1][6],"dayPeriods":b[0][1958]},{"months":b[1][7],"days":b[1][900],"eras":b[1][6],"dayPeriods":b[0][1958]},{"months":b[1][7],"days":b[1][900],"eras":b[1][8],"dayPeriods":b[0][1958]},{"months":b[1][9],"days":b[1][900],"eras":b[1][6],"dayPeriods":b[0][1958]},{"months":b[1][899],"days":b[1][900],"eras":b[1][901],"dayPeriods":b[0][1958]},{"months":b[1][11],"days":b[1][900],"eras":b[1][12],"dayPeriods":b[0][1958]},{"months":b[1][13],"days":b[1][900],"eras":b[1][14],"dayPeriods":b[0][1958]},{"months":b[1][15],"days":b[1][900],"eras":b[1][16],"dayPeriods":b[0][1958]},{"months":b[1][899],"days":b[1][900],"eras":b[1][17],"dayPeriods":b[0][1958]},{"months":b[1][18],"days":b[1][900],"eras":b[1][19],"dayPeriods":b[0][1958]},{"months":b[1][899],"days":b[1][900],"eras":b[1][27],"dayPeriods":b[0][1958]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][1961]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][1962]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][1963]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][1964]},{"months":b[1][904],"days":b[1][905],"eras":b[1][3],"dayPeriods":b[0][1974]},{"months":b[1][9],"days":b[1][905],"dayPeriods":b[0][1974]},{"months":b[1][5],"days":b[1][905],"eras":b[1][6],"dayPeriods":b[0][1974]},{"months":b[1][7],"days":b[1][905],"eras":b[1][6],"dayPeriods":b[0][1974]},{"months":b[1][7],"days":b[1][905],"eras":b[1][8],"dayPeriods":b[0][1974]},{"months":b[1][9],"days":b[1][905],"eras":b[1][6],"dayPeriods":b[0][1974]},{"months":b[1][904],"days":b[1][905],"eras":b[1][906],"dayPeriods":b[0][1974]},{"months":b[1][11],"days":b[1][905],"eras":b[1][12],"dayPeriods":b[0][1974]},{"months":b[1][13],"days":b[1][905],"eras":b[1][14],"dayPeriods":b[0][1974]},{"months":b[1][15],"days":b[1][905],"eras":b[1][16],"dayPeriods":b[0][1974]},{"months":b[1][904],"days":b[1][905],"eras":b[1][17],"dayPeriods":b[0][1974]},{"months":b[1][18],"days":b[1][905],"eras":b[1][19],"dayPeriods":b[0][1974]},{"months":b[1][904],"days":b[1][905],"eras":b[1][27],"dayPeriods":b[0][1974]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][28],"currencies":b[0][1977]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][28],"currencies":b[0][1978]},{"months":b[1][909],"days":b[1][910],"eras":b[1][160],"dayPeriods":b[0][1983]},{"months":b[1][9],"days":b[1][910],"dayPeriods":b[0][1983]},{"months":b[1][161],"days":b[1][910],"eras":b[1][6],"dayPeriods":b[0][1983]},{"months":b[1][162],"days":b[1][910],"eras":b[1][6],"dayPeriods":b[0][1983]},{"months":b[1][162],"days":b[1][910],"eras":b[1][8],"dayPeriods":b[0][1983]},{"months":b[1][9],"days":b[1][910],"eras":b[1][6],"dayPeriods":b[0][1983]},{"months":b[1][909],"days":b[1][910],"eras":b[1][911],"dayPeriods":b[0][1983]},{"months":b[1][164],"days":b[1][910],"eras":b[1][12],"dayPeriods":b[0][1983]},{"months":b[1][165],"days":b[1][910],"eras":b[1][166],"dayPeriods":b[0][1983]},{"months":b[1][167],"days":b[1][910],"eras":b[1][168],"dayPeriods":b[0][1983]},{"months":b[1][909],"days":b[1][910],"eras":b[1][169],"dayPeriods":b[0][1983]},{"months":b[1][170],"days":b[1][910],"eras":b[1][19],"dayPeriods":b[0][1983]},{"months":b[1][909],"days":b[1][910],"eras":b[1][171],"dayPeriods":b[0][1983]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][95],"currencies":b[0][1985]},{"months":b[1][913],"days":b[1][914],"eras":b[1][3],"dayPeriods":b[0][1991]},{"months":b[1][9],"days":b[1][914],"dayPeriods":b[0][1991]},{"months":b[1][915],"days":b[1][914],"eras":b[1][6],"dayPeriods":b[0][1991]},{"months":b[1][916],"days":b[1][914],"eras":b[1][6],"dayPeriods":b[0][1991]},{"months":b[1][916],"days":b[1][914],"eras":b[1][8],"dayPeriods":b[0][1991]},{"months":b[1][9],"days":b[1][914],"eras":b[1][6],"dayPeriods":b[0][1991]},{"months":b[1][913],"days":b[1][914],"eras":b[1][917],"dayPeriods":b[0][1991]},{"months":b[1][918],"days":b[1][914],"eras":b[1][12],"dayPeriods":b[0][1991]},{"months":b[1][919],"days":b[1][914],"eras":b[1][381],"dayPeriods":b[0][1991]},{"months":b[1][920],"days":b[1][914],"eras":b[1][16],"dayPeriods":b[0][1991]},{"months":b[1][913],"days":b[1][914],"eras":b[1][921],"dayPeriods":b[0][1991]},{"months":b[1][922],"days":b[1][914],"eras":b[1][19],"dayPeriods":b[0][1991]},{"months":b[1][913],"days":b[1][914],"eras":b[1][923],"dayPeriods":b[0][1991]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][95],"currencies":b[0][2002]},{"months":b[1][925],"days":b[1][926],"eras":b[1][3],"dayPeriods":b[0][2009]},{"months":b[1][9],"days":b[1][926],"dayPeriods":b[0][2009]},{"months":b[1][927],"days":b[1][926],"eras":b[1][6],"dayPeriods":b[0][2009]},{"months":b[1][928],"days":b[1][926],"eras":b[1][6],"dayPeriods":b[0][2009]},{"months":b[1][928],"days":b[1][926],"eras":b[1][8],"dayPeriods":b[0][2009]},{"months":b[1][9],"days":b[1][926],"eras":b[1][6],"dayPeriods":b[0][2009]},{"months":b[1][925],"days":b[1][926],"eras":b[1][929],"dayPeriods":b[0][2009]},{"months":b[1][930],"days":b[1][926],"eras":b[1][12],"dayPeriods":b[0][2009]},{"months":b[1][931],"days":b[1][926],"eras":b[1][932],"dayPeriods":b[0][2009]},{"months":b[1][933],"days":b[1][926],"eras":b[1][16],"dayPeriods":b[0][2009]},{"months":b[1][925],"days":b[1][926],"eras":b[1][934],"dayPeriods":b[0][2009]},{"months":b[1][935],"days":b[1][926],"eras":b[1][19],"dayPeriods":b[0][2009]},{"months":b[1][925],"days":b[1][926],"eras":b[1][936],"dayPeriods":b[0][2009]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][592],"currencies":b[0][2021]},{"months":b[1][939],"days":b[1][940],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][940],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][940],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][940],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][940],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][940],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][939],"days":b[1][940],"eras":b[1][941],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][940],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][940],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][940],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][939],"days":b[1][940],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][940],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][939],"days":b[1][940],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][2024]},{"months":b[1][943],"days":b[1][944],"eras":b[1][3],"dayPeriods":b[0][2030]},{"months":b[1][9],"days":b[1][944],"dayPeriods":b[0][2030]},{"months":b[1][5],"days":b[1][944],"eras":b[1][6],"dayPeriods":b[0][2030]},{"months":b[1][7],"days":b[1][944],"eras":b[1][6],"dayPeriods":b[0][2030]},{"months":b[1][7],"days":b[1][944],"eras":b[1][8],"dayPeriods":b[0][2030]},{"months":b[1][9],"days":b[1][944],"eras":b[1][6],"dayPeriods":b[0][2030]},{"months":b[1][943],"days":b[1][944],"eras":b[1][941],"dayPeriods":b[0][2030]},{"months":b[1][11],"days":b[1][944],"eras":b[1][12],"dayPeriods":b[0][2030]},{"months":b[1][13],"days":b[1][944],"eras":b[1][14],"dayPeriods":b[0][2030]},{"months":b[1][15],"days":b[1][944],"eras":b[1][16],"dayPeriods":b[0][2030]},{"months":b[1][943],"days":b[1][944],"eras":b[1][17],"dayPeriods":b[0][2030]},{"months":b[1][18],"days":b[1][944],"eras":b[1][19],"dayPeriods":b[0][2030]},{"months":b[1][943],"days":b[1][944],"eras":b[1][27],"dayPeriods":b[0][2030]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][95],"currencies":b[0][2031]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][2032]},{"months":b[1][946],"days":b[1][947],"eras":b[1][3],"dayPeriods":b[0][2041]},{"months":b[1][948],"days":b[1][947],"dayPeriods":b[0][2041]},{"months":b[1][5],"days":b[1][947],"eras":b[1][6],"dayPeriods":b[0][2041]},{"months":b[1][7],"days":b[1][947],"eras":b[1][6],"dayPeriods":b[0][2041]},{"months":b[1][7],"days":b[1][947],"eras":b[1][8],"dayPeriods":b[0][2041]},{"months":b[1][9],"days":b[1][947],"eras":b[1][6],"dayPeriods":b[0][2041]},{"months":b[1][946],"days":b[1][947],"eras":b[1][949],"dayPeriods":b[0][2041]},{"months":b[1][11],"days":b[1][947],"eras":b[1][12],"dayPeriods":b[0][2041]},{"months":b[1][13],"days":b[1][947],"eras":b[1][14],"dayPeriods":b[0][2041]},{"months":b[1][15],"days":b[1][947],"eras":b[1][16],"dayPeriods":b[0][2041]},{"months":b[1][946],"days":b[1][947],"eras":b[1][17],"dayPeriods":b[0][2041]},{"months":b[1][18],"days":b[1][947],"eras":b[1][19],"dayPeriods":b[0][2041]},{"months":b[1][946],"days":b[1][947],"eras":b[1][27],"dayPeriods":b[0][2041]},{"nu":b[0][37],"patterns":b[1][73],"symbols":b[1][950],"currencies":b[0][188]},{"nu":b[0][37],"patterns":b[1][73],"symbols":b[1][950],"currencies":b[0][2046]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][950],"currencies":b[0][2047]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][950],"currencies":b[0][2048]},{"months":b[1][953],"days":b[1][954],"eras":b[1][3],"dayPeriods":b[0][2057]},{"months":b[1][9],"days":b[1][954],"dayPeriods":b[0][2057]},{"months":b[1][5],"days":b[1][954],"eras":b[1][6],"dayPeriods":b[0][2057]},{"months":b[1][7],"days":b[1][954],"eras":b[1][6],"dayPeriods":b[0][2057]},{"months":b[1][7],"days":b[1][954],"eras":b[1][8],"dayPeriods":b[0][2057]},{"months":b[1][9],"days":b[1][954],"eras":b[1][6],"dayPeriods":b[0][2057]},{"months":b[1][953],"days":b[1][954],"eras":b[1][955],"dayPeriods":b[0][2057]},{"months":b[1][11],"days":b[1][954],"eras":b[1][12],"dayPeriods":b[0][2057]},{"months":b[1][13],"days":b[1][954],"eras":b[1][14],"dayPeriods":b[0][2057]},{"months":b[1][15],"days":b[1][954],"eras":b[1][16],"dayPeriods":b[0][2057]},{"months":b[1][953],"days":b[1][954],"eras":b[1][17],"dayPeriods":b[0][2057]},{"months":b[1][18],"days":b[1][954],"eras":b[1][19],"dayPeriods":b[0][2057]},{"months":b[1][953],"days":b[1][954],"eras":b[1][27],"dayPeriods":b[0][2057]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][956],"currencies":b[0][894]},{"months":b[1][957],"days":b[1][958],"eras":b[1][3],"dayPeriods":b[0][2066]},{"months":b[1][9],"days":b[1][958],"dayPeriods":b[0][2066]},{"months":b[1][5],"days":b[1][958],"eras":b[1][6],"dayPeriods":b[0][2066]},{"months":b[1][7],"days":b[1][958],"eras":b[1][6],"dayPeriods":b[0][2066]},{"months":b[1][7],"days":b[1][958],"eras":b[1][8],"dayPeriods":b[0][2066]},{"months":b[1][9],"days":b[1][958],"eras":b[1][6],"dayPeriods":b[0][2066]},{"months":b[1][957],"days":b[1][958],"eras":b[1][858],"dayPeriods":b[0][2066]},{"months":b[1][11],"days":b[1][958],"eras":b[1][12],"dayPeriods":b[0][2066]},{"months":b[1][13],"days":b[1][958],"eras":b[1][14],"dayPeriods":b[0][2066]},{"months":b[1][15],"days":b[1][958],"eras":b[1][16],"dayPeriods":b[0][2066]},{"months":b[1][957],"days":b[1][958],"eras":b[1][17],"dayPeriods":b[0][2066]},{"months":b[1][18],"days":b[1][958],"eras":b[1][19],"dayPeriods":b[0][2066]},{"months":b[1][957],"days":b[1][958],"eras":b[1][27],"dayPeriods":b[0][2066]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][2067]},{"months":b[1][960],"days":b[1][961],"eras":b[1][962],"dayPeriods":b[0][2078]},{"months":b[1][176],"days":b[1][961],"dayPeriods":b[0][2078]},{"months":b[1][963],"days":b[1][961],"eras":b[1][6],"dayPeriods":b[0][2078]},{"months":b[1][964],"days":b[1][961],"eras":b[1][6],"dayPeriods":b[0][2078]},{"months":b[1][964],"days":b[1][961],"eras":b[1][8],"dayPeriods":b[0][2078]},{"months":b[1][9],"days":b[1][961],"eras":b[1][6],"dayPeriods":b[0][2078]},{"months":b[1][960],"days":b[1][961],"eras":b[1][965],"dayPeriods":b[0][2078]},{"months":b[1][966],"days":b[1][961],"eras":b[1][967],"dayPeriods":b[0][2078]},{"months":b[1][968],"days":b[1][961],"eras":b[1][969],"dayPeriods":b[0][2078]},{"months":b[1][970],"days":b[1][961],"eras":b[1][971],"dayPeriods":b[0][2078]},{"months":b[1][960],"days":b[1][961],"eras":b[1][972],"dayPeriods":b[0][2078]},{"months":b[1][973],"days":b[1][961],"eras":b[1][974],"dayPeriods":b[0][2078]},{"months":b[1][960],"days":b[1][961],"eras":b[1][975],"dayPeriods":b[0][2078]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][976],"currencies":b[0][2096]},{"months":b[1][978],"days":b[1][979],"eras":b[1][3],"dayPeriods":b[0][2102]},{"months":b[1][9],"days":b[1][979],"dayPeriods":b[0][2102]},{"months":b[1][5],"days":b[1][979],"eras":b[1][6],"dayPeriods":b[0][2102]},{"months":b[1][7],"days":b[1][979],"eras":b[1][6],"dayPeriods":b[0][2102]},{"months":b[1][7],"days":b[1][979],"eras":b[1][8],"dayPeriods":b[0][2102]},{"months":b[1][9],"days":b[1][979],"eras":b[1][6],"dayPeriods":b[0][2102]},{"months":b[1][978],"days":b[1][979],"eras":b[1][980],"dayPeriods":b[0][2102]},{"months":b[1][11],"days":b[1][979],"eras":b[1][12],"dayPeriods":b[0][2102]},{"months":b[1][13],"days":b[1][979],"eras":b[1][14],"dayPeriods":b[0][2102]},{"months":b[1][15],"days":b[1][979],"eras":b[1][16],"dayPeriods":b[0][2102]},{"months":b[1][978],"days":b[1][979],"eras":b[1][17],"dayPeriods":b[0][2102]},{"months":b[1][18],"days":b[1][979],"eras":b[1][19],"dayPeriods":b[0][2102]},{"months":b[1][978],"days":b[1][979],"eras":b[1][27],"dayPeriods":b[0][2102]},{"months":b[1][982],"days":b[1][983],"eras":b[1][3],"dayPeriods":b[0][2102]},{"months":b[1][9],"days":b[1][983],"dayPeriods":b[0][2102]},{"months":b[1][5],"days":b[1][983],"eras":b[1][6],"dayPeriods":b[0][2102]},{"months":b[1][7],"days":b[1][983],"eras":b[1][6],"dayPeriods":b[0][2102]},{"months":b[1][7],"days":b[1][983],"eras":b[1][8],"dayPeriods":b[0][2102]},{"months":b[1][9],"days":b[1][983],"eras":b[1][6],"dayPeriods":b[0][2102]},{"months":b[1][982],"days":b[1][983],"eras":b[1][980],"dayPeriods":b[0][2102]},{"months":b[1][11],"days":b[1][983],"eras":b[1][12],"dayPeriods":b[0][2102]},{"months":b[1][13],"days":b[1][983],"eras":b[1][14],"dayPeriods":b[0][2102]},{"months":b[1][15],"days":b[1][983],"eras":b[1][16],"dayPeriods":b[0][2102]},{"months":b[1][982],"days":b[1][983],"eras":b[1][17],"dayPeriods":b[0][2102]},{"months":b[1][18],"days":b[1][983],"eras":b[1][19],"dayPeriods":b[0][2102]},{"months":b[1][982],"days":b[1][983],"eras":b[1][27],"dayPeriods":b[0][2102]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][2107]},{"months":b[1][9],"days":b[1][985],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][985],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][985],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][985],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][985],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][985],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][985],"eras":b[1][72],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][985],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][985],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][985],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][985],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][985],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][985],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][104],"symbols":b[1][986],"currencies":b[0][2111]},{"months":b[1][988],"days":b[1][989],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][989],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][989],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][989],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][989],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][989],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][988],"days":b[1][989],"eras":b[1][990],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][989],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][989],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][989],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][988],"days":b[1][989],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][989],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][988],"days":b[1][989],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][991],"currencies":b[0][2122]},{"months":b[1][993],"days":b[1][994],"eras":b[1][3],"dayPeriods":b[0][2131]},{"months":b[1][9],"days":b[1][994],"dayPeriods":b[0][2131]},{"months":b[1][995],"days":b[1][994],"eras":b[1][6],"dayPeriods":b[0][2131]},{"months":b[1][996],"days":b[1][994],"eras":b[1][6],"dayPeriods":b[0][2131]},{"months":b[1][996],"days":b[1][994],"eras":b[1][8],"dayPeriods":b[0][2131]},{"months":b[1][9],"days":b[1][994],"eras":b[1][6],"dayPeriods":b[0][2131]},{"months":b[1][993],"days":b[1][994],"eras":b[1][997],"dayPeriods":b[0][2131]},{"months":b[1][998],"days":b[1][994],"eras":b[1][12],"dayPeriods":b[0][2131]},{"months":b[1][13],"days":b[1][994],"eras":b[1][14],"dayPeriods":b[0][2131]},{"months":b[1][999],"days":b[1][994],"eras":b[1][1000],"dayPeriods":b[0][2131]},{"months":b[1][993],"days":b[1][994],"eras":b[1][17],"dayPeriods":b[0][2131]},{"months":b[1][1001],"days":b[1][994],"eras":b[1][19],"dayPeriods":b[0][2131]},{"months":b[1][993],"days":b[1][994],"eras":b[1][20],"dayPeriods":b[0][2131]},{"nu":b[0][37],"patterns":b[1][1002],"symbols":b[1][95],"currencies":b[0][2141]},{"months":b[1][214],"days":b[1][870],"eras":b[1][3],"dayPeriods":b[0][460]},{"months":b[1][9],"days":b[1][870],"dayPeriods":b[0][460]},{"months":b[1][5],"days":b[1][870],"eras":b[1][6],"dayPeriods":b[0][460]},{"months":b[1][7],"days":b[1][870],"eras":b[1][6],"dayPeriods":b[0][460]},{"months":b[1][7],"days":b[1][870],"eras":b[1][8],"dayPeriods":b[0][460]},{"months":b[1][9],"days":b[1][870],"eras":b[1][6],"dayPeriods":b[0][460]},{"months":b[1][214],"days":b[1][870],"eras":b[1][216],"dayPeriods":b[0][460]},{"months":b[1][11],"days":b[1][870],"eras":b[1][12],"dayPeriods":b[0][460]},{"months":b[1][13],"days":b[1][870],"eras":b[1][14],"dayPeriods":b[0][460]},{"months":b[1][15],"days":b[1][870],"eras":b[1][16],"dayPeriods":b[0][460]},{"months":b[1][214],"days":b[1][870],"eras":b[1][17],"dayPeriods":b[0][460]},{"months":b[1][18],"days":b[1][870],"eras":b[1][19],"dayPeriods":b[0][460]},{"months":b[1][214],"days":b[1][870],"eras":b[1][27],"dayPeriods":b[0][460]},{"months":b[1][1004],"days":b[1][1005],"eras":b[1][3],"dayPeriods":b[0][2148]},{"months":b[1][9],"days":b[1][1005],"dayPeriods":b[0][2148]},{"months":b[1][5],"days":b[1][1005],"eras":b[1][6],"dayPeriods":b[0][2148]},{"months":b[1][7],"days":b[1][1005],"eras":b[1][6],"dayPeriods":b[0][2148]},{"months":b[1][7],"days":b[1][1005],"eras":b[1][8],"dayPeriods":b[0][2148]},{"months":b[1][9],"days":b[1][1005],"eras":b[1][6],"dayPeriods":b[0][2148]},{"months":b[1][1004],"days":b[1][1005],"eras":b[1][1006],"dayPeriods":b[0][2148]},{"months":b[1][11],"days":b[1][1005],"eras":b[1][12],"dayPeriods":b[0][2148]},{"months":b[1][13],"days":b[1][1005],"eras":b[1][14],"dayPeriods":b[0][2148]},{"months":b[1][15],"days":b[1][1005],"eras":b[1][16],"dayPeriods":b[0][2148]},{"months":b[1][1004],"days":b[1][1005],"eras":b[1][17],"dayPeriods":b[0][2148]},{"months":b[1][18],"days":b[1][1005],"eras":b[1][19],"dayPeriods":b[0][2148]},{"months":b[1][1004],"days":b[1][1005],"eras":b[1][27],"dayPeriods":b[0][2148]},{"months":b[1][1008],"days":b[1][1009],"eras":b[1][1010],"dayPeriods":b[0][2159]},{"months":b[1][4],"days":b[1][1009],"dayPeriods":b[0][2159]},{"months":b[1][5],"days":b[1][1009],"eras":b[1][6],"dayPeriods":b[0][2159]},{"months":b[1][7],"days":b[1][1009],"eras":b[1][6],"dayPeriods":b[0][2159]},{"months":b[1][7],"days":b[1][1009],"eras":b[1][8],"dayPeriods":b[0][2159]},{"months":b[1][9],"days":b[1][1009],"eras":b[1][6],"dayPeriods":b[0][2159]},{"months":b[1][1008],"days":b[1][1009],"eras":b[1][1011],"dayPeriods":b[0][2159]},{"months":b[1][11],"days":b[1][1009],"eras":b[1][12],"dayPeriods":b[0][2159]},{"months":b[1][13],"days":b[1][1009],"eras":b[1][14],"dayPeriods":b[0][2159]},{"months":b[1][1012],"days":b[1][1009],"eras":b[1][1013],"dayPeriods":b[0][2159]},{"months":b[1][1008],"days":b[1][1009],"eras":b[1][17],"dayPeriods":b[0][2159]},{"months":b[1][18],"days":b[1][1009],"eras":b[1][19],"dayPeriods":b[0][2159]},{"months":b[1][1008],"days":b[1][1009],"eras":b[1][1014],"dayPeriods":b[0][2159]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][632],"currencies":b[0][2166]},{"months":b[1][1016],"days":b[1][1017],"eras":b[1][3],"dayPeriods":b[0][2175]},{"months":b[1][9],"days":b[1][1017],"dayPeriods":b[0][2175]},{"months":b[1][1018],"days":b[1][1017],"eras":b[1][6],"dayPeriods":b[0][2175]},{"months":b[1][1019],"days":b[1][1017],"eras":b[1][6],"dayPeriods":b[0][2175]},{"months":b[1][1019],"days":b[1][1017],"eras":b[1][8],"dayPeriods":b[0][2175]},{"months":b[1][9],"days":b[1][1017],"eras":b[1][6],"dayPeriods":b[0][2175]},{"months":b[1][1016],"days":b[1][1017],"eras":b[1][1020],"dayPeriods":b[0][2175]},{"months":b[1][1021],"days":b[1][1017],"eras":b[1][12],"dayPeriods":b[0][2175]},{"months":b[1][1022],"days":b[1][1017],"eras":b[1][14],"dayPeriods":b[0][2175]},{"months":b[1][1023],"days":b[1][1017],"eras":b[1][16],"dayPeriods":b[0][2175]},{"months":b[1][1016],"days":b[1][1017],"eras":b[1][17],"dayPeriods":b[0][2175]},{"months":b[1][1024],"days":b[1][1017],"eras":b[1][19],"dayPeriods":b[0][2175]},{"months":b[1][1016],"days":b[1][1017],"eras":b[1][27],"dayPeriods":b[0][2175]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][28],"currencies":b[0][2188]},{"months":b[1][1026],"days":b[1][1027],"eras":b[1][3],"dayPeriods":b[0][2193]},{"months":b[1][9],"days":b[1][1027],"dayPeriods":b[0][2193]},{"months":b[1][5],"days":b[1][1027],"eras":b[1][6],"dayPeriods":b[0][2193]},{"months":b[1][7],"days":b[1][1027],"eras":b[1][6],"dayPeriods":b[0][2193]},{"months":b[1][7],"days":b[1][1027],"eras":b[1][8],"dayPeriods":b[0][2193]},{"months":b[1][9],"days":b[1][1027],"eras":b[1][6],"dayPeriods":b[0][2193]},{"months":b[1][1026],"days":b[1][1027],"eras":b[1][1028],"dayPeriods":b[0][2193]},{"months":b[1][11],"days":b[1][1027],"eras":b[1][12],"dayPeriods":b[0][2193]},{"months":b[1][13],"days":b[1][1027],"eras":b[1][14],"dayPeriods":b[0][2193]},{"months":b[1][1029],"days":b[1][1027],"eras":b[1][16],"dayPeriods":b[0][2193]},{"months":b[1][1026],"days":b[1][1027],"eras":b[1][17],"dayPeriods":b[0][2193]},{"months":b[1][18],"days":b[1][1027],"eras":b[1][19],"dayPeriods":b[0][2193]},{"months":b[1][1026],"days":b[1][1027],"eras":b[1][27],"dayPeriods":b[0][2193]},{"nu":b[0][37],"patterns":b[1][73],"symbols":b[1][1030],"currencies":b[0][2197]},{"nu":b[0][748],"patterns":b[1][73],"symbols":b[1][1030],"currencies":b[0][894]},{"months":b[1][1032],"days":b[1][1033],"eras":b[1][3],"dayPeriods":b[0][2207]},{"months":b[1][9],"days":b[1][1033],"dayPeriods":b[0][2207]},{"months":b[1][5],"days":b[1][1033],"eras":b[1][6],"dayPeriods":b[0][2207]},{"months":b[1][7],"days":b[1][1033],"eras":b[1][6],"dayPeriods":b[0][2207]},{"months":b[1][7],"days":b[1][1033],"eras":b[1][8],"dayPeriods":b[0][2207]},{"months":b[1][9],"days":b[1][1033],"eras":b[1][6],"dayPeriods":b[0][2207]},{"months":b[1][1032],"days":b[1][1033],"eras":b[1][1034],"dayPeriods":b[0][2207]},{"months":b[1][11],"days":b[1][1033],"eras":b[1][12],"dayPeriods":b[0][2207]},{"months":b[1][13],"days":b[1][1033],"eras":b[1][14],"dayPeriods":b[0][2207]},{"months":b[1][1035],"days":b[1][1033],"eras":b[1][16],"dayPeriods":b[0][2207]},{"months":b[1][1032],"days":b[1][1033],"eras":b[1][17],"dayPeriods":b[0][2207]},{"months":b[1][18],"days":b[1][1033],"eras":b[1][19],"dayPeriods":b[0][2207]},{"months":b[1][1032],"days":b[1][1033],"eras":b[1][27],"dayPeriods":b[0][2207]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][1036],"currencies":b[0][2212]},{"months":b[1][1037],"days":b[1][1038],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][1038],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][1038],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][1038],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][1038],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][1038],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][1037],"days":b[1][1038],"eras":b[1][72],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][1038],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][1038],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][1038],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][1037],"days":b[1][1038],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][1038],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][1037],"days":b[1][1038],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][748],"patterns":b[1][58],"symbols":b[1][801],"currencies":b[0][1733]},{"months":b[1][1040],"days":b[1][1041],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][1041],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][1041],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][1041],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][1041],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][1041],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][1040],"days":b[1][1041],"eras":b[1][1042],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][1041],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][1041],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][1041],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][1040],"days":b[1][1041],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][1041],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][1040],"days":b[1][1041],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][28],"currencies":b[0][2222]},{"months":b[1][1043],"days":b[1][1044],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][1044],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][1044],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][1044],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][1044],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][1044],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][1043],"days":b[1][1044],"eras":b[1][72],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][1044],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][1044],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][1044],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][1043],"days":b[1][1044],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][1044],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][1043],"days":b[1][1044],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][1045],"currencies":b[0][588]},{"months":b[1][1047],"days":b[1][1048],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][1048],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][1048],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][1048],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][1048],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][1048],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][1047],"days":b[1][1048],"eras":b[1][72],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][1048],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][1048],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][1048],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][1047],"days":b[1][1048],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][1048],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][1047],"days":b[1][1048],"eras":b[1][27],"dayPeriods":b[0][11]},{"months":b[1][1050],"days":b[1][1051],"eras":b[1][3],"dayPeriods":b[0][2234]},{"months":b[1][176],"days":b[1][1051],"dayPeriods":b[0][2234]},{"months":b[1][5],"days":b[1][1051],"eras":b[1][6],"dayPeriods":b[0][2234]},{"months":b[1][7],"days":b[1][1051],"eras":b[1][6],"dayPeriods":b[0][2234]},{"months":b[1][7],"days":b[1][1051],"eras":b[1][8],"dayPeriods":b[0][2234]},{"months":b[1][9],"days":b[1][1051],"eras":b[1][6],"dayPeriods":b[0][2234]},{"months":b[1][1050],"days":b[1][1051],"eras":b[1][1052],"dayPeriods":b[0][2234]},{"months":b[1][11],"days":b[1][1051],"eras":b[1][12],"dayPeriods":b[0][2234]},{"months":b[1][13],"days":b[1][1051],"eras":b[1][14],"dayPeriods":b[0][2234]},{"months":b[1][15],"days":b[1][1051],"eras":b[1][16],"dayPeriods":b[0][2234]},{"months":b[1][1050],"days":b[1][1051],"eras":b[1][17],"dayPeriods":b[0][2234]},{"months":b[1][18],"days":b[1][1051],"eras":b[1][19],"dayPeriods":b[0][2234]},{"months":b[1][1050],"days":b[1][1051],"eras":b[1][1053],"dayPeriods":b[0][2234]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][95],"currencies":b[0][1258]},{"months":b[1][1055],"days":b[1][1056],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][1056],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][1056],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][1056],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][1056],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][1056],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][1055],"days":b[1][1056],"eras":b[1][1057],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][1056],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][1056],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][1056],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][1055],"days":b[1][1056],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][1056],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][1055],"days":b[1][1056],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][58],"symbols":b[1][1058],"currencies":b[0][42]},{"months":b[1][607],"days":b[1][1059],"eras":b[1][3],"dayPeriods":b[0][2250]},{"months":b[1][9],"days":b[1][1059],"dayPeriods":b[0][2250]},{"months":b[1][5],"days":b[1][1059],"eras":b[1][6],"dayPeriods":b[0][2250]},{"months":b[1][7],"days":b[1][1059],"eras":b[1][6],"dayPeriods":b[0][2250]},{"months":b[1][7],"days":b[1][1059],"eras":b[1][8],"dayPeriods":b[0][2250]},{"months":b[1][9],"days":b[1][1059],"eras":b[1][6],"dayPeriods":b[0][2250]},{"months":b[1][607],"days":b[1][1059],"eras":b[1][1060],"dayPeriods":b[0][2250]},{"months":b[1][11],"days":b[1][1059],"eras":b[1][12],"dayPeriods":b[0][2250]},{"months":b[1][13],"days":b[1][1059],"eras":b[1][14],"dayPeriods":b[0][2250]},{"months":b[1][15],"days":b[1][1059],"eras":b[1][16],"dayPeriods":b[0][2250]},{"months":b[1][607],"days":b[1][1059],"eras":b[1][17],"dayPeriods":b[0][2250]},{"months":b[1][18],"days":b[1][1059],"eras":b[1][19],"dayPeriods":b[0][2250]},{"months":b[1][607],"days":b[1][1059],"eras":b[1][27],"dayPeriods":b[0][2250]},{"nu":b[0][37],"patterns":b[1][79],"symbols":b[1][22],"currencies":b[0][377]},{"months":b[1][1061],"days":b[1][1062],"eras":b[1][3],"dayPeriods":b[0][2258]},{"months":b[1][9],"days":b[1][1062],"dayPeriods":b[0][2258]},{"months":b[1][5],"days":b[1][1062],"eras":b[1][6],"dayPeriods":b[0][2258]},{"months":b[1][7],"days":b[1][1062],"eras":b[1][6],"dayPeriods":b[0][2258]},{"months":b[1][7],"days":b[1][1062],"eras":b[1][8],"dayPeriods":b[0][2258]},{"months":b[1][9],"days":b[1][1062],"eras":b[1][6],"dayPeriods":b[0][2258]},{"months":b[1][1061],"days":b[1][1062],"eras":b[1][1063],"dayPeriods":b[0][2258]},{"months":b[1][11],"days":b[1][1062],"eras":b[1][12],"dayPeriods":b[0][2258]},{"months":b[1][13],"days":b[1][1062],"eras":b[1][14],"dayPeriods":b[0][2258]},{"months":b[1][15],"days":b[1][1062],"eras":b[1][16],"dayPeriods":b[0][2258]},{"months":b[1][1061],"days":b[1][1062],"eras":b[1][17],"dayPeriods":b[0][2258]},{"months":b[1][18],"days":b[1][1062],"eras":b[1][19],"dayPeriods":b[0][2258]},{"months":b[1][1061],"days":b[1][1062],"eras":b[1][27],"dayPeriods":b[0][2258]},{"months":b[1][1065],"days":b[1][1066],"eras":b[1][3],"dayPeriods":b[0][2265]},{"months":b[1][9],"days":b[1][1066],"dayPeriods":b[0][2265]},{"months":b[1][5],"days":b[1][1066],"eras":b[1][6],"dayPeriods":b[0][2265]},{"months":b[1][7],"days":b[1][1066],"eras":b[1][6],"dayPeriods":b[0][2265]},{"months":b[1][7],"days":b[1][1066],"eras":b[1][8],"dayPeriods":b[0][2265]},{"months":b[1][9],"days":b[1][1066],"eras":b[1][6],"dayPeriods":b[0][2265]},{"months":b[1][1065],"days":b[1][1066],"eras":b[1][72],"dayPeriods":b[0][2265]},{"months":b[1][1067],"days":b[1][1066],"eras":b[1][429],"dayPeriods":b[0][2265]},{"months":b[1][13],"days":b[1][1066],"eras":b[1][14],"dayPeriods":b[0][2265]},{"months":b[1][15],"days":b[1][1066],"eras":b[1][16],"dayPeriods":b[0][2265]},{"months":b[1][1065],"days":b[1][1066],"eras":b[1][17],"dayPeriods":b[0][2265]},{"months":b[1][18],"days":b[1][1066],"eras":b[1][19],"dayPeriods":b[0][2265]},{"months":b[1][1065],"days":b[1][1066],"eras":b[1][27],"dayPeriods":b[0][2265]},{"months":b[1][1068],"days":b[1][1069],"eras":b[1][3],"dayPeriods":b[0][2272]},{"months":b[1][9],"days":b[1][1069],"dayPeriods":b[0][2272]},{"months":b[1][5],"days":b[1][1069],"eras":b[1][6],"dayPeriods":b[0][2272]},{"months":b[1][7],"days":b[1][1069],"eras":b[1][6],"dayPeriods":b[0][2272]},{"months":b[1][7],"days":b[1][1069],"eras":b[1][8],"dayPeriods":b[0][2272]},{"months":b[1][9],"days":b[1][1069],"eras":b[1][6],"dayPeriods":b[0][2272]},{"months":b[1][1068],"days":b[1][1069],"eras":b[1][1070],"dayPeriods":b[0][2272]},{"months":b[1][11],"days":b[1][1069],"eras":b[1][12],"dayPeriods":b[0][2272]},{"months":b[1][13],"days":b[1][1069],"eras":b[1][14],"dayPeriods":b[0][2272]},{"months":b[1][15],"days":b[1][1069],"eras":b[1][16],"dayPeriods":b[0][2272]},{"months":b[1][1068],"days":b[1][1069],"eras":b[1][17],"dayPeriods":b[0][2272]},{"months":b[1][18],"days":b[1][1069],"eras":b[1][19],"dayPeriods":b[0][2272]},{"months":b[1][1068],"days":b[1][1069],"eras":b[1][27],"dayPeriods":b[0][2272]},{"months":b[1][1071],"days":b[1][1072],"eras":b[1][3],"dayPeriods":b[0][2279]},{"months":b[1][9],"days":b[1][1072],"dayPeriods":b[0][2279]},{"months":b[1][5],"days":b[1][1072],"eras":b[1][6],"dayPeriods":b[0][2279]},{"months":b[1][7],"days":b[1][1072],"eras":b[1][6],"dayPeriods":b[0][2279]},{"months":b[1][7],"days":b[1][1072],"eras":b[1][8],"dayPeriods":b[0][2279]},{"months":b[1][9],"days":b[1][1072],"eras":b[1][6],"dayPeriods":b[0][2279]},{"months":b[1][1071],"days":b[1][1072],"eras":b[1][1070],"dayPeriods":b[0][2279]},{"months":b[1][11],"days":b[1][1072],"eras":b[1][12],"dayPeriods":b[0][2279]},{"months":b[1][13],"days":b[1][1072],"eras":b[1][14],"dayPeriods":b[0][2279]},{"months":b[1][15],"days":b[1][1072],"eras":b[1][16],"dayPeriods":b[0][2279]},{"months":b[1][1071],"days":b[1][1072],"eras":b[1][17],"dayPeriods":b[0][2279]},{"months":b[1][18],"days":b[1][1072],"eras":b[1][19],"dayPeriods":b[0][2279]},{"months":b[1][1071],"days":b[1][1072],"eras":b[1][27],"dayPeriods":b[0][2279]},{"months":b[1][875],"days":b[1][1074],"eras":b[1][3],"dayPeriods":b[0][1898]},{"months":b[1][9],"days":b[1][1074],"dayPeriods":b[0][1898]},{"months":b[1][5],"days":b[1][1074],"eras":b[1][6],"dayPeriods":b[0][1898]},{"months":b[1][7],"days":b[1][1074],"eras":b[1][6],"dayPeriods":b[0][1898]},{"months":b[1][7],"days":b[1][1074],"eras":b[1][8],"dayPeriods":b[0][1898]},{"months":b[1][9],"days":b[1][1074],"eras":b[1][6],"dayPeriods":b[0][1898]},{"months":b[1][875],"days":b[1][1074],"eras":b[1][877],"dayPeriods":b[0][1898]},{"months":b[1][11],"days":b[1][1074],"eras":b[1][12],"dayPeriods":b[0][1898]},{"months":b[1][13],"days":b[1][1074],"eras":b[1][14],"dayPeriods":b[0][1898]},{"months":b[1][15],"days":b[1][1074],"eras":b[1][16],"dayPeriods":b[0][1898]},{"months":b[1][875],"days":b[1][1074],"eras":b[1][17],"dayPeriods":b[0][1898]},{"months":b[1][18],"days":b[1][1074],"eras":b[1][19],"dayPeriods":b[0][1898]},{"months":b[1][875],"days":b[1][1074],"eras":b[1][27],"dayPeriods":b[0][1898]},{"nu":b[0][37],"patterns":b[1][824],"symbols":b[1][28],"currencies":b[0][70]},{"months":b[1][1076],"days":b[1][1077],"eras":b[1][1078],"dayPeriods":b[0][2290]},{"months":b[1][1079],"days":b[1][1077],"dayPeriods":b[0][2290]},{"months":b[1][1080],"days":b[1][1077],"eras":b[1][6],"dayPeriods":b[0][2290]},{"months":b[1][1080],"days":b[1][1077],"eras":b[1][8],"dayPeriods":b[0][2290]},{"months":b[1][9],"days":b[1][1077],"eras":b[1][6],"dayPeriods":b[0][2290]},{"months":b[1][1076],"days":b[1][1077],"eras":b[1][1081],"dayPeriods":b[0][2290]},{"months":b[1][1082],"days":b[1][1077],"eras":b[1][1083],"dayPeriods":b[0][2290]},{"months":b[1][1076],"days":b[1][1077],"eras":b[1][1084],"dayPeriods":b[0][2290]},{"months":b[1][1076],"days":b[1][1077],"eras":b[1][1085],"dayPeriods":b[0][2290]},{"months":b[1][1076],"days":b[1][1077],"eras":b[1][1086],"dayPeriods":b[0][2290]},{"months":b[1][1076],"days":b[1][1077],"eras":b[1][1087],"dayPeriods":b[0][2290]},{"months":b[1][1076],"days":b[1][1077],"eras":b[1][508],"dayPeriods":b[0][2290]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][1088],"currencies":b[0][2303]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][1088],"currencies":b[0][2306]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][1088],"currencies":b[0][2308]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][1088],"currencies":b[0][2311]},{"months":b[1][495],"days":b[1][1093],"eras":b[1][1094],"dayPeriods":b[0][2290]},{"months":b[1][1095],"days":b[1][1093],"dayPeriods":b[0][2290]},{"months":b[1][1096],"days":b[1][1093],"eras":b[1][6],"dayPeriods":b[0][2290]},{"months":b[1][498],"days":b[1][1093],"dayPeriods":b[0][2290]},{"months":b[1][1096],"days":b[1][1093],"eras":b[1][8],"dayPeriods":b[0][2290]},{"months":b[1][9],"days":b[1][1093],"eras":b[1][6],"dayPeriods":b[0][2290]},{"months":b[1][495],"days":b[1][1093],"eras":b[1][1097],"dayPeriods":b[0][2290]},{"months":b[1][1098],"days":b[1][1093],"eras":b[1][1099],"dayPeriods":b[0][2290]},{"months":b[1][1100],"days":b[1][1093],"eras":b[1][1101],"dayPeriods":b[0][2290]},{"months":b[1][1102],"days":b[1][1093],"eras":b[1][1103],"dayPeriods":b[0][2290]},{"months":b[1][495],"days":b[1][1093],"eras":b[1][1104],"dayPeriods":b[0][2290]},{"months":b[1][495],"days":b[1][1093],"eras":b[1][1105],"dayPeriods":b[0][2290]},{"months":b[1][495],"days":b[1][1093],"eras":b[1][1106],"dayPeriods":b[0][2290]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][1107],"currencies":b[0][2330]},{"months":b[1][495],"days":b[1][1093],"eras":b[1][1109],"dayPeriods":b[0][2290]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][1107],"currencies":b[0][2096]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][1107],"currencies":b[0][2334]},{"months":b[1][1111],"days":b[1][1112],"eras":b[1][3],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][1112],"dayPeriods":b[0][11]},{"months":b[1][5],"days":b[1][1112],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][1112],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][7],"days":b[1][1112],"eras":b[1][8],"dayPeriods":b[0][11]},{"months":b[1][9],"days":b[1][1112],"eras":b[1][6],"dayPeriods":b[0][11]},{"months":b[1][1111],"days":b[1][1112],"eras":b[1][349],"dayPeriods":b[0][11]},{"months":b[1][11],"days":b[1][1112],"eras":b[1][12],"dayPeriods":b[0][11]},{"months":b[1][13],"days":b[1][1112],"eras":b[1][14],"dayPeriods":b[0][11]},{"months":b[1][15],"days":b[1][1112],"eras":b[1][16],"dayPeriods":b[0][11]},{"months":b[1][1111],"days":b[1][1112],"eras":b[1][17],"dayPeriods":b[0][11]},{"months":b[1][18],"days":b[1][1112],"eras":b[1][19],"dayPeriods":b[0][11]},{"months":b[1][1111],"days":b[1][1112],"eras":b[1][27],"dayPeriods":b[0][11]},{"nu":b[0][37],"patterns":b[1][21],"symbols":b[1][22],"currencies":b[0][2342]}];b[3]=[{"buddhist":b[2][0],"chinese":b[2][1],"coptic":b[2][2],"dangi":b[2][1],"ethiopic":b[2][3],"ethioaa":b[2][4],"generic":b[2][5],"gregory":b[2][6],"hebrew":b[2][7],"indian":b[2][8],"islamic":b[2][9],"islamicc":b[2][9],"japanese":b[2][10],"persian":b[2][11],"roc":b[2][12]},{"buddhist":b[2][14],"chinese":b[2][15],"coptic":b[2][16],"dangi":b[2][15],"ethiopic":b[2][17],"ethioaa":b[2][18],"generic":b[2][19],"gregory":b[2][20],"hebrew":b[2][21],"indian":b[2][22],"islamic":b[2][23],"islamicc":b[2][23],"japanese":b[2][24],"persian":b[2][25],"roc":b[2][26]},{"buddhist":b[2][29],"chinese":b[2][30],"coptic":b[2][31],"dangi":b[2][30],"ethiopic":b[2][32],"ethioaa":b[2][33],"generic":b[2][34],"gregory":b[2][35],"hebrew":b[2][36],"indian":b[2][37],"islamic":b[2][38],"islamicc":b[2][38],"japanese":b[2][39],"persian":b[2][40],"roc":b[2][41]},{"buddhist":b[2][43],"chinese":b[2][44],"coptic":b[2][45],"dangi":b[2][44],"ethiopic":b[2][46],"ethioaa":b[2][47],"generic":b[2][48],"gregory":b[2][49],"hebrew":b[2][50],"indian":b[2][51],"islamic":b[2][52],"islamicc":b[2][52],"japanese":b[2][53],"persian":b[2][54],"roc":b[2][55]},{"buddhist":b[2][57],"chinese":b[2][58],"coptic":b[2][59],"dangi":b[2][58],"ethiopic":b[2][60],"ethioaa":b[2][61],"generic":b[2][62],"gregory":b[2][63],"hebrew":b[2][64],"indian":b[2][65],"islamic":b[2][66],"islamicc":b[2][66],"japanese":b[2][67],"persian":b[2][68],"roc":b[2][69]},{"buddhist":b[2][71],"chinese":b[2][72],"coptic":b[2][73],"dangi":b[2][72],"ethiopic":b[2][74],"ethioaa":b[2][75],"generic":b[2][76],"gregory":b[2][77],"hebrew":b[2][78],"indian":b[2][79],"islamic":b[2][80],"islamicc":b[2][80],"japanese":b[2][81],"persian":b[2][82],"roc":b[2][83]},{"buddhist":b[2][71],"chinese":b[2][72],"coptic":b[2][73],"dangi":b[2][72],"ethiopic":b[2][74],"ethioaa":b[2][75],"generic":b[2][76],"gregory":b[2][85],"hebrew":b[2][78],"indian":b[2][79],"islamic":b[2][80],"islamicc":b[2][80],"japanese":b[2][81],"persian":b[2][82],"roc":b[2][83]},{"buddhist":b[2][87],"chinese":b[2][72],"coptic":b[2][73],"dangi":b[2][72],"ethiopic":b[2][74],"ethioaa":b[2][75],"generic":b[2][76],"gregory":b[2][88],"hebrew":b[2][78],"indian":b[2][79],"islamic":b[2][80],"islamicc":b[2][80],"japanese":b[2][89],"persian":b[2][82],"roc":b[2][90]},{"buddhist":b[2][94],"chinese":b[2][72],"coptic":b[2][73],"dangi":b[2][72],"ethiopic":b[2][74],"ethioaa":b[2][75],"generic":b[2][76],"gregory":b[2][95],"hebrew":b[2][78],"indian":b[2][79],"islamic":b[2][80],"islamicc":b[2][80],"japanese":b[2][96],"persian":b[2][82],"roc":b[2][97]},{"buddhist":b[2][98],"chinese":b[2][72],"coptic":b[2][73],"dangi":b[2][72],"ethiopic":b[2][74],"ethioaa":b[2][75],"generic":b[2][76],"gregory":b[2][99],"hebrew":b[2][78],"indian":b[2][79],"islamic":b[2][80],"islamicc":b[2][80],"japanese":b[2][100],"persian":b[2][82],"roc":b[2][101]},{"buddhist":b[2][103],"chinese":b[2][72],"coptic":b[2][73],"dangi":b[2][72],"ethiopic":b[2][74],"ethioaa":b[2][75],"generic":b[2][76],"gregory":b[2][104],"hebrew":b[2][78],"indian":b[2][79],"islamic":b[2][80],"islamicc":b[2][80],"japanese":b[2][105],"persian":b[2][82],"roc":b[2][106]},{"buddhist":b[2][107],"chinese":b[2][72],"coptic":b[2][73],"dangi":b[2][72],"ethiopic":b[2][74],"ethioaa":b[2][75],"generic":b[2][76],"gregory":b[2][108],"hebrew":b[2][78],"indian":b[2][79],"islamic":b[2][80],"islamicc":b[2][80],"japanese":b[2][109],"persian":b[2][82],"roc":b[2][110]},{"buddhist":b[2][114],"chinese":b[2][115],"coptic":b[2][116],"dangi":b[2][115],"ethiopic":b[2][117],"ethioaa":b[2][118],"generic":b[2][119],"gregory":b[2][120],"hebrew":b[2][121],"indian":b[2][122],"islamic":b[2][123],"islamicc":b[2][123],"japanese":b[2][124],"persian":b[2][125],"roc":b[2][126]},{"buddhist":b[2][128],"chinese":b[2][129],"coptic":b[2][130],"dangi":b[2][129],"ethiopic":b[2][131],"ethioaa":b[2][132],"generic":b[2][133],"gregory":b[2][134],"hebrew":b[2][135],"indian":b[2][136],"islamic":b[2][137],"islamicc":b[2][137],"japanese":b[2][138],"persian":b[2][139],"roc":b[2][140]},{"buddhist":b[2][142],"chinese":b[2][143],"coptic":b[2][144],"dangi":b[2][143],"ethiopic":b[2][145],"ethioaa":b[2][146],"generic":b[2][147],"gregory":b[2][148],"hebrew":b[2][149],"indian":b[2][150],"islamic":b[2][151],"islamicc":b[2][151],"japanese":b[2][152],"persian":b[2][153],"roc":b[2][154]},{"buddhist":b[2][156],"chinese":b[2][157],"coptic":b[2][158],"dangi":b[2][157],"ethiopic":b[2][159],"ethioaa":b[2][160],"generic":b[2][161],"gregory":b[2][162],"hebrew":b[2][163],"indian":b[2][164],"islamic":b[2][165],"islamicc":b[2][165],"japanese":b[2][166],"persian":b[2][167],"roc":b[2][168]},{"buddhist":b[2][170],"chinese":b[2][171],"coptic":b[2][172],"dangi":b[2][171],"ethiopic":b[2][173],"ethioaa":b[2][174],"generic":b[2][175],"gregory":b[2][176],"hebrew":b[2][177],"indian":b[2][178],"islamic":b[2][179],"islamicc":b[2][179],"japanese":b[2][180],"persian":b[2][181],"roc":b[2][182]},{"buddhist":b[2][184],"chinese":b[2][185],"coptic":b[2][186],"dangi":b[2][185],"ethiopic":b[2][187],"ethioaa":b[2][188],"generic":b[2][189],"gregory":b[2][190],"hebrew":b[2][191],"indian":b[2][192],"islamic":b[2][193],"islamicc":b[2][193],"japanese":b[2][194],"persian":b[2][195],"roc":b[2][196]},{"buddhist":b[2][198],"chinese":b[2][199],"coptic":b[2][200],"dangi":b[2][199],"ethiopic":b[2][201],"ethioaa":b[2][202],"generic":b[2][203],"gregory":b[2][204],"hebrew":b[2][205],"indian":b[2][206],"islamic":b[2][207],"islamicc":b[2][207],"japanese":b[2][208],"persian":b[2][209],"roc":b[2][210]},{"buddhist":b[2][212],"chinese":b[2][213],"coptic":b[2][214],"dangi":b[2][213],"ethiopic":b[2][215],"ethioaa":b[2][216],"generic":b[2][217],"gregory":b[2][218],"hebrew":b[2][219],"indian":b[2][220],"islamic":b[2][221],"islamicc":b[2][221],"japanese":b[2][222],"persian":b[2][223],"roc":b[2][224]},{"buddhist":b[2][226],"chinese":b[2][227],"coptic":b[2][228],"dangi":b[2][227],"ethiopic":b[2][229],"ethioaa":b[2][230],"generic":b[2][231],"gregory":b[2][232],"hebrew":b[2][233],"indian":b[2][234],"islamic":b[2][235],"islamicc":b[2][235],"japanese":b[2][236],"persian":b[2][237],"roc":b[2][238]},{"buddhist":b[2][240],"chinese":b[2][241],"coptic":b[2][242],"dangi":b[2][241],"ethiopic":b[2][243],"ethioaa":b[2][244],"generic":b[2][245],"gregory":b[2][246],"hebrew":b[2][247],"indian":b[2][248],"islamic":b[2][249],"islamicc":b[2][249],"japanese":b[2][250],"persian":b[2][251],"roc":b[2][252]},{"buddhist":b[2][254],"chinese":b[2][255],"coptic":b[2][256],"dangi":b[2][255],"ethiopic":b[2][257],"ethioaa":b[2][258],"generic":b[2][259],"gregory":b[2][260],"hebrew":b[2][261],"indian":b[2][262],"islamic":b[2][263],"islamicc":b[2][263],"japanese":b[2][264],"persian":b[2][265],"roc":b[2][266]},{"buddhist":b[2][268],"chinese":b[2][269],"coptic":b[2][270],"dangi":b[2][269],"ethiopic":b[2][271],"ethioaa":b[2][272],"generic":b[2][273],"gregory":b[2][274],"hebrew":b[2][275],"indian":b[2][276],"islamic":b[2][277],"islamicc":b[2][277],"japanese":b[2][278],"persian":b[2][279],"roc":b[2][280]},{"buddhist":b[2][282],"chinese":b[2][283],"coptic":b[2][284],"dangi":b[2][283],"ethiopic":b[2][285],"ethioaa":b[2][286],"generic":b[2][287],"gregory":b[2][288],"hebrew":b[2][289],"indian":b[2][290],"islamic":b[2][291],"islamicc":b[2][291],"japanese":b[2][292],"persian":b[2][293],"roc":b[2][294]},{"buddhist":b[2][296],"chinese":b[2][297],"coptic":b[2][298],"dangi":b[2][297],"ethiopic":b[2][299],"ethioaa":b[2][300],"generic":b[2][301],"gregory":b[2][302],"hebrew":b[2][303],"indian":b[2][304],"islamic":b[2][305],"islamicc":b[2][305],"japanese":b[2][306],"persian":b[2][307],"roc":b[2][308]},{"buddhist":b[2][311],"chinese":b[2][312],"coptic":b[2][313],"dangi":b[2][312],"ethiopic":b[2][314],"ethioaa":b[2][315],"generic":b[2][316],"gregory":b[2][317],"hebrew":b[2][318],"indian":b[2][319],"islamic":b[2][320],"islamicc":b[2][320],"japanese":b[2][321],"persian":b[2][322],"roc":b[2][323]},{"buddhist":b[2][325],"chinese":b[2][326],"coptic":b[2][327],"dangi":b[2][326],"ethiopic":b[2][328],"ethioaa":b[2][329],"generic":b[2][330],"gregory":b[2][331],"hebrew":b[2][332],"indian":b[2][333],"islamic":b[2][334],"islamicc":b[2][334],"japanese":b[2][335],"persian":b[2][336],"roc":b[2][337]},{"buddhist":b[2][339],"chinese":b[2][340],"coptic":b[2][341],"dangi":b[2][340],"ethiopic":b[2][342],"ethioaa":b[2][343],"generic":b[2][344],"gregory":b[2][345],"hebrew":b[2][346],"indian":b[2][347],"islamic":b[2][348],"islamicc":b[2][348],"japanese":b[2][349],"persian":b[2][350],"roc":b[2][351]},{"buddhist":b[2][353],"chinese":b[2][354],"coptic":b[2][355],"dangi":b[2][354],"ethiopic":b[2][356],"ethioaa":b[2][357],"generic":b[2][358],"gregory":b[2][359],"hebrew":b[2][360],"indian":b[2][361],"islamic":b[2][362],"islamicc":b[2][362],"japanese":b[2][363],"persian":b[2][364],"roc":b[2][365]},{"buddhist":b[2][367],"chinese":b[2][368],"coptic":b[2][369],"dangi":b[2][368],"ethiopic":b[2][370],"ethioaa":b[2][371],"generic":b[2][372],"gregory":b[2][373],"hebrew":b[2][374],"indian":b[2][375],"islamic":b[2][376],"islamicc":b[2][376],"japanese":b[2][377],"persian":b[2][378],"roc":b[2][379]},{"buddhist":b[2][382],"chinese":b[2][383],"coptic":b[2][384],"dangi":b[2][383],"ethiopic":b[2][385],"ethioaa":b[2][386],"generic":b[2][387],"gregory":b[2][388],"hebrew":b[2][389],"indian":b[2][390],"islamic":b[2][391],"islamicc":b[2][391],"japanese":b[2][392],"persian":b[2][393],"roc":b[2][394]},{"buddhist":b[2][396],"chinese":b[2][397],"coptic":b[2][398],"dangi":b[2][397],"ethiopic":b[2][399],"ethioaa":b[2][400],"generic":b[2][401],"gregory":b[2][402],"hebrew":b[2][403],"indian":b[2][404],"islamic":b[2][405],"islamicc":b[2][405],"japanese":b[2][406],"persian":b[2][407],"roc":b[2][408]},{"buddhist":b[2][410],"chinese":b[2][411],"coptic":b[2][412],"dangi":b[2][411],"ethiopic":b[2][413],"ethioaa":b[2][414],"generic":b[2][415],"gregory":b[2][416],"hebrew":b[2][417],"indian":b[2][418],"islamic":b[2][419],"islamicc":b[2][419],"japanese":b[2][420],"persian":b[2][421],"roc":b[2][422]},{"buddhist":b[2][425],"chinese":b[2][426],"coptic":b[2][427],"dangi":b[2][426],"ethiopic":b[2][428],"ethioaa":b[2][429],"generic":b[2][430],"gregory":b[2][431],"hebrew":b[2][432],"indian":b[2][433],"islamic":b[2][434],"islamicc":b[2][434],"japanese":b[2][435],"persian":b[2][436],"roc":b[2][437]},{"buddhist":b[2][440],"chinese":b[2][441],"coptic":b[2][442],"dangi":b[2][441],"ethiopic":b[2][443],"ethioaa":b[2][444],"generic":b[2][445],"gregory":b[2][446],"hebrew":b[2][447],"indian":b[2][448],"islamic":b[2][449],"islamicc":b[2][449],"japanese":b[2][450],"persian":b[2][451],"roc":b[2][452]},{"buddhist":b[2][454],"chinese":b[2][455],"coptic":b[2][456],"dangi":b[2][455],"ethiopic":b[2][457],"ethioaa":b[2][458],"generic":b[2][459],"gregory":b[2][460],"hebrew":b[2][461],"indian":b[2][462],"islamic":b[2][463],"islamicc":b[2][463],"japanese":b[2][464],"persian":b[2][465],"roc":b[2][466]},{"buddhist":b[2][468],"chinese":b[2][469],"coptic":b[2][470],"dangi":b[2][469],"ethiopic":b[2][471],"ethioaa":b[2][472],"generic":b[2][473],"gregory":b[2][474],"hebrew":b[2][475],"indian":b[2][476],"islamic":b[2][477],"islamicc":b[2][477],"japanese":b[2][478],"persian":b[2][479],"roc":b[2][480]},{"buddhist":b[2][482],"chinese":b[2][483],"coptic":b[2][484],"dangi":b[2][483],"ethiopic":b[2][485],"ethioaa":b[2][486],"generic":b[2][487],"gregory":b[2][488],"hebrew":b[2][489],"indian":b[2][490],"islamic":b[2][491],"islamicc":b[2][491],"japanese":b[2][492],"persian":b[2][493],"roc":b[2][494]},{"buddhist":b[2][496],"chinese":b[2][483],"coptic":b[2][484],"dangi":b[2][483],"ethiopic":b[2][485],"ethioaa":b[2][486],"generic":b[2][487],"gregory":b[2][497],"hebrew":b[2][489],"indian":b[2][490],"islamic":b[2][491],"islamicc":b[2][491],"japanese":b[2][498],"persian":b[2][493],"roc":b[2][499]},{"buddhist":b[2][504],"chinese":b[2][505],"coptic":b[2][506],"dangi":b[2][505],"ethiopic":b[2][507],"ethioaa":b[2][508],"generic":b[2][509],"gregory":b[2][510],"hebrew":b[2][511],"indian":b[2][512],"islamic":b[2][513],"islamicc":b[2][513],"japanese":b[2][514],"persian":b[2][515],"roc":b[2][516]},{"buddhist":b[2][518],"chinese":b[2][519],"coptic":b[2][520],"dangi":b[2][519],"ethiopic":b[2][521],"ethioaa":b[2][522],"generic":b[2][523],"gregory":b[2][524],"hebrew":b[2][525],"indian":b[2][526],"islamic":b[2][527],"islamicc":b[2][527],"japanese":b[2][528],"persian":b[2][529],"roc":b[2][530]},{"buddhist":b[2][532],"chinese":b[2][533],"coptic":b[2][534],"dangi":b[2][533],"ethiopic":b[2][535],"ethioaa":b[2][536],"generic":b[2][537],"gregory":b[2][538],"hebrew":b[2][539],"indian":b[2][540],"islamic":b[2][541],"islamicc":b[2][541],"japanese":b[2][542],"persian":b[2][543],"roc":b[2][544]},{"buddhist":b[2][545],"chinese":b[2][546],"coptic":b[2][547],"dangi":b[2][546],"ethiopic":b[2][548],"ethioaa":b[2][549],"generic":b[2][550],"gregory":b[2][551],"hebrew":b[2][552],"indian":b[2][553],"islamic":b[2][554],"islamicc":b[2][554],"japanese":b[2][555],"persian":b[2][556],"roc":b[2][557]},{"buddhist":b[2][559],"chinese":b[2][560],"coptic":b[2][561],"dangi":b[2][560],"ethiopic":b[2][562],"ethioaa":b[2][563],"generic":b[2][564],"gregory":b[2][565],"hebrew":b[2][566],"indian":b[2][567],"islamic":b[2][568],"islamicc":b[2][568],"japanese":b[2][569],"persian":b[2][570],"roc":b[2][571]},{"buddhist":b[2][573],"chinese":b[2][574],"coptic":b[2][575],"dangi":b[2][574],"ethiopic":b[2][576],"ethioaa":b[2][577],"generic":b[2][578],"gregory":b[2][579],"hebrew":b[2][580],"indian":b[2][581],"islamic":b[2][582],"islamicc":b[2][582],"japanese":b[2][583],"persian":b[2][584],"roc":b[2][585]},{"buddhist":b[2][586],"chinese":b[2][587],"coptic":b[2][588],"dangi":b[2][587],"ethiopic":b[2][589],"ethioaa":b[2][590],"generic":b[2][591],"gregory":b[2][592],"hebrew":b[2][593],"indian":b[2][594],"islamic":b[2][595],"islamicc":b[2][595],"japanese":b[2][596],"persian":b[2][597],"roc":b[2][598]},{"buddhist":b[2][600],"chinese":b[2][601],"coptic":b[2][602],"dangi":b[2][601],"ethiopic":b[2][603],"ethioaa":b[2][604],"generic":b[2][605],"gregory":b[2][606],"hebrew":b[2][607],"indian":b[2][608],"islamic":b[2][609],"islamicc":b[2][609],"japanese":b[2][610],"persian":b[2][611],"roc":b[2][612]},{"buddhist":b[2][617],"chinese":b[2][618],"coptic":b[2][619],"dangi":b[2][618],"ethiopic":b[2][620],"ethioaa":b[2][621],"generic":b[2][622],"gregory":b[2][623],"hebrew":b[2][624],"indian":b[2][625],"islamic":b[2][626],"islamicc":b[2][626],"japanese":b[2][627],"persian":b[2][628],"roc":b[2][629]},{"buddhist":b[2][646],"chinese":b[2][647],"coptic":b[2][648],"dangi":b[2][647],"ethiopic":b[2][649],"ethioaa":b[2][650],"generic":b[2][651],"gregory":b[2][652],"hebrew":b[2][653],"indian":b[2][654],"islamic":b[2][655],"islamicc":b[2][655],"japanese":b[2][656],"persian":b[2][657],"roc":b[2][658]},{"buddhist":b[2][662],"chinese":b[2][663],"coptic":b[2][664],"dangi":b[2][663],"ethiopic":b[2][665],"ethioaa":b[2][666],"generic":b[2][667],"gregory":b[2][668],"hebrew":b[2][669],"indian":b[2][670],"islamic":b[2][671],"islamicc":b[2][671],"japanese":b[2][672],"persian":b[2][673],"roc":b[2][674]},{"buddhist":b[2][708],"chinese":b[2][709],"coptic":b[2][710],"dangi":b[2][709],"ethiopic":b[2][711],"ethioaa":b[2][712],"generic":b[2][713],"gregory":b[2][714],"hebrew":b[2][715],"indian":b[2][716],"islamic":b[2][717],"islamicc":b[2][717],"japanese":b[2][718],"persian":b[2][719],"roc":b[2][720]},{"buddhist":b[2][722],"chinese":b[2][723],"coptic":b[2][724],"dangi":b[2][723],"ethiopic":b[2][725],"ethioaa":b[2][726],"generic":b[2][727],"gregory":b[2][728],"hebrew":b[2][729],"indian":b[2][730],"islamic":b[2][731],"islamicc":b[2][731],"japanese":b[2][732],"persian":b[2][733],"roc":b[2][734]},{"buddhist":b[2][736],"chinese":b[2][737],"coptic":b[2][738],"dangi":b[2][737],"ethiopic":b[2][739],"ethioaa":b[2][740],"generic":b[2][741],"gregory":b[2][742],"hebrew":b[2][743],"indian":b[2][744],"islamic":b[2][745],"islamicc":b[2][745],"japanese":b[2][746],"persian":b[2][747],"roc":b[2][748]},{"buddhist":b[2][736],"chinese":b[2][737],"coptic":b[2][738],"dangi":b[2][737],"ethiopic":b[2][739],"ethioaa":b[2][740],"generic":b[2][741],"gregory":b[2][756],"hebrew":b[2][743],"indian":b[2][744],"islamic":b[2][745],"islamicc":b[2][745],"japanese":b[2][746],"persian":b[2][747],"roc":b[2][748]},{"buddhist":b[2][762],"chinese":b[2][763],"coptic":b[2][764],"dangi":b[2][763],"ethiopic":b[2][765],"ethioaa":b[2][766],"generic":b[2][767],"gregory":b[2][768],"hebrew":b[2][769],"indian":b[2][770],"islamic":b[2][771],"islamicc":b[2][771],"japanese":b[2][772],"persian":b[2][773],"roc":b[2][774]},{"buddhist":b[2][777],"chinese":b[2][737],"coptic":b[2][738],"dangi":b[2][737],"ethiopic":b[2][739],"ethioaa":b[2][740],"generic":b[2][741],"gregory":b[2][778],"hebrew":b[2][743],"indian":b[2][744],"islamic":b[2][745],"islamicc":b[2][745],"japanese":b[2][779],"persian":b[2][747],"roc":b[2][780]},{"buddhist":b[2][782],"chinese":b[2][737],"coptic":b[2][738],"dangi":b[2][737],"ethiopic":b[2][739],"ethioaa":b[2][740],"generic":b[2][741],"gregory":b[2][783],"hebrew":b[2][743],"indian":b[2][744],"islamic":b[2][745],"islamicc":b[2][745],"japanese":b[2][784],"persian":b[2][747],"roc":b[2][785]},{"buddhist":b[2][789],"chinese":b[2][737],"coptic":b[2][738],"dangi":b[2][737],"ethiopic":b[2][739],"ethioaa":b[2][740],"generic":b[2][741],"gregory":b[2][790],"hebrew":b[2][743],"indian":b[2][744],"islamic":b[2][745],"islamicc":b[2][745],"japanese":b[2][791],"persian":b[2][747],"roc":b[2][792]},{"buddhist":b[2][794],"chinese":b[2][795],"coptic":b[2][796],"dangi":b[2][795],"ethiopic":b[2][797],"ethioaa":b[2][798],"generic":b[2][799],"gregory":b[2][800],"hebrew":b[2][801],"indian":b[2][802],"islamic":b[2][803],"islamicc":b[2][803],"japanese":b[2][804],"persian":b[2][805],"roc":b[2][806]},{"buddhist":b[2][809],"chinese":b[2][810],"coptic":b[2][811],"dangi":b[2][810],"ethiopic":b[2][812],"ethioaa":b[2][813],"generic":b[2][814],"gregory":b[2][815],"hebrew":b[2][816],"indian":b[2][817],"islamic":b[2][818],"islamicc":b[2][818],"japanese":b[2][819],"persian":b[2][820],"roc":b[2][821]},{"buddhist":b[2][823],"chinese":b[2][824],"coptic":b[2][825],"dangi":b[2][824],"ethiopic":b[2][826],"ethioaa":b[2][827],"generic":b[2][828],"gregory":b[2][829],"hebrew":b[2][830],"indian":b[2][831],"islamic":b[2][832],"islamicc":b[2][832],"japanese":b[2][833],"persian":b[2][834],"roc":b[2][835]},{"buddhist":b[2][837],"chinese":b[2][838],"coptic":b[2][839],"dangi":b[2][838],"ethiopic":b[2][840],"ethioaa":b[2][841],"generic":b[2][842],"gregory":b[2][843],"hebrew":b[2][844],"indian":b[2][845],"islamic":b[2][846],"islamicc":b[2][846],"japanese":b[2][847],"persian":b[2][848],"roc":b[2][849]},{"buddhist":b[2][851],"chinese":b[2][852],"coptic":b[2][853],"dangi":b[2][852],"ethiopic":b[2][854],"ethioaa":b[2][855],"generic":b[2][856],"gregory":b[2][857],"hebrew":b[2][858],"indian":b[2][859],"islamic":b[2][860],"islamicc":b[2][860],"japanese":b[2][861],"persian":b[2][862],"roc":b[2][863]},{"buddhist":b[2][864],"chinese":b[2][865],"coptic":b[2][866],"dangi":b[2][865],"ethiopic":b[2][867],"ethioaa":b[2][868],"generic":b[2][869],"gregory":b[2][870],"hebrew":b[2][871],"indian":b[2][872],"islamic":b[2][873],"islamicc":b[2][873],"japanese":b[2][874],"persian":b[2][875],"roc":b[2][876]},{"buddhist":b[2][878],"chinese":b[2][865],"coptic":b[2][866],"dangi":b[2][865],"ethiopic":b[2][867],"ethioaa":b[2][868],"generic":b[2][869],"gregory":b[2][879],"hebrew":b[2][871],"indian":b[2][872],"islamic":b[2][873],"islamicc":b[2][873],"japanese":b[2][880],"persian":b[2][881],"roc":b[2][882]},{"buddhist":b[2][883],"chinese":b[2][884],"coptic":b[2][885],"dangi":b[2][884],"ethiopic":b[2][886],"ethioaa":b[2][887],"generic":b[2][888],"gregory":b[2][889],"hebrew":b[2][890],"indian":b[2][891],"islamic":b[2][892],"islamicc":b[2][892],"japanese":b[2][893],"persian":b[2][894],"roc":b[2][895]},{"buddhist":b[2][898],"chinese":b[2][899],"coptic":b[2][900],"dangi":b[2][899],"ethiopic":b[2][901],"ethioaa":b[2][902],"generic":b[2][903],"gregory":b[2][904],"hebrew":b[2][905],"indian":b[2][906],"islamic":b[2][907],"islamicc":b[2][907],"japanese":b[2][908],"persian":b[2][909],"roc":b[2][910]},{"buddhist":b[2][912],"chinese":b[2][913],"coptic":b[2][914],"dangi":b[2][913],"ethiopic":b[2][915],"ethioaa":b[2][916],"generic":b[2][917],"gregory":b[2][918],"hebrew":b[2][919],"indian":b[2][920],"islamic":b[2][921],"islamicc":b[2][921],"japanese":b[2][922],"persian":b[2][923],"roc":b[2][924]},{"buddhist":b[2][926],"chinese":b[2][927],"coptic":b[2][928],"dangi":b[2][927],"ethiopic":b[2][929],"ethioaa":b[2][930],"generic":b[2][931],"gregory":b[2][932],"hebrew":b[2][933],"indian":b[2][934],"islamic":b[2][935],"islamicc":b[2][935],"japanese":b[2][936],"persian":b[2][937],"roc":b[2][938]},{"buddhist":b[2][941],"chinese":b[2][942],"coptic":b[2][943],"dangi":b[2][942],"ethiopic":b[2][944],"ethioaa":b[2][945],"generic":b[2][946],"gregory":b[2][947],"hebrew":b[2][948],"indian":b[2][949],"islamic":b[2][950],"islamicc":b[2][950],"japanese":b[2][951],"persian":b[2][952],"roc":b[2][953]},{"buddhist":b[2][966],"chinese":b[2][967],"coptic":b[2][968],"dangi":b[2][967],"ethiopic":b[2][969],"ethioaa":b[2][970],"generic":b[2][971],"gregory":b[2][972],"hebrew":b[2][973],"indian":b[2][974],"islamic":b[2][975],"islamicc":b[2][975],"japanese":b[2][976],"persian":b[2][977],"roc":b[2][978]},{"buddhist":b[2][987],"chinese":b[2][988],"coptic":b[2][989],"dangi":b[2][988],"ethiopic":b[2][990],"ethioaa":b[2][991],"generic":b[2][992],"gregory":b[2][993],"hebrew":b[2][994],"indian":b[2][995],"islamic":b[2][996],"islamicc":b[2][996],"japanese":b[2][997],"persian":b[2][998],"roc":b[2][999]},{"buddhist":b[2][1001],"chinese":b[2][1002],"coptic":b[2][1003],"dangi":b[2][1002],"ethiopic":b[2][1004],"ethioaa":b[2][1005],"generic":b[2][1006],"gregory":b[2][1007],"hebrew":b[2][1008],"indian":b[2][1009],"islamic":b[2][1010],"islamicc":b[2][1010],"japanese":b[2][1011],"persian":b[2][1012],"roc":b[2][1013]},{"buddhist":b[2][1015],"chinese":b[2][1016],"coptic":b[2][1017],"dangi":b[2][1016],"ethiopic":b[2][1018],"ethioaa":b[2][1019],"generic":b[2][1020],"gregory":b[2][1021],"hebrew":b[2][1022],"indian":b[2][1023],"islamic":b[2][1024],"islamicc":b[2][1024],"japanese":b[2][1025],"persian":b[2][1026],"roc":b[2][1027]},{"buddhist":b[2][1029],"chinese":b[2][1030],"coptic":b[2][1031],"dangi":b[2][1030],"ethiopic":b[2][1032],"ethioaa":b[2][1033],"generic":b[2][1034],"gregory":b[2][1035],"hebrew":b[2][1036],"indian":b[2][1037],"islamic":b[2][1038],"islamicc":b[2][1038],"japanese":b[2][1039],"persian":b[2][1040],"roc":b[2][1041]},{"buddhist":b[2][1043],"chinese":b[2][1044],"coptic":b[2][1045],"dangi":b[2][1044],"ethiopic":b[2][1046],"ethioaa":b[2][1047],"generic":b[2][1048],"gregory":b[2][1049],"hebrew":b[2][1050],"indian":b[2][1051],"islamic":b[2][1052],"islamicc":b[2][1052],"japanese":b[2][1053],"persian":b[2][1054],"roc":b[2][1055]},{"buddhist":b[2][1057],"chinese":b[2][1058],"coptic":b[2][1059],"dangi":b[2][1058],"ethiopic":b[2][1060],"ethioaa":b[2][1061],"generic":b[2][1062],"gregory":b[2][1063],"hebrew":b[2][1064],"indian":b[2][1065],"islamic":b[2][1066],"islamicc":b[2][1066],"japanese":b[2][1067],"persian":b[2][1068],"roc":b[2][1069]},{"buddhist":b[2][1071],"chinese":b[2][1072],"coptic":b[2][1073],"dangi":b[2][1072],"ethiopic":b[2][1074],"ethioaa":b[2][1075],"generic":b[2][1076],"gregory":b[2][1077],"hebrew":b[2][1078],"indian":b[2][1079],"islamic":b[2][1080],"islamicc":b[2][1080],"japanese":b[2][1081],"persian":b[2][1082],"roc":b[2][1083]},{"buddhist":b[2][1085],"chinese":b[2][1086],"coptic":b[2][1087],"dangi":b[2][1086],"ethiopic":b[2][1088],"ethioaa":b[2][1089],"generic":b[2][1090],"gregory":b[2][1091],"hebrew":b[2][1092],"indian":b[2][1093],"islamic":b[2][1094],"islamicc":b[2][1094],"japanese":b[2][1095],"persian":b[2][1096],"roc":b[2][1097]},{"buddhist":b[2][1098],"chinese":b[2][1099],"coptic":b[2][1100],"dangi":b[2][1099],"ethiopic":b[2][1101],"ethioaa":b[2][1102],"generic":b[2][1103],"gregory":b[2][1104],"hebrew":b[2][1105],"indian":b[2][1106],"islamic":b[2][1107],"islamicc":b[2][1107],"japanese":b[2][1108],"persian":b[2][1109],"roc":b[2][1110]},{"buddhist":b[2][1111],"chinese":b[2][1112],"coptic":b[2][1113],"dangi":b[2][1112],"ethiopic":b[2][1114],"ethioaa":b[2][1115],"generic":b[2][1116],"gregory":b[2][1117],"hebrew":b[2][1118],"indian":b[2][1119],"islamic":b[2][1120],"islamicc":b[2][1120],"japanese":b[2][1121],"persian":b[2][1122],"roc":b[2][1123]},{"buddhist":b[2][1127],"chinese":b[2][1128],"coptic":b[2][1129],"dangi":b[2][1128],"ethiopic":b[2][1130],"ethioaa":b[2][1131],"generic":b[2][1132],"gregory":b[2][1133],"hebrew":b[2][1134],"indian":b[2][1135],"islamic":b[2][1136],"islamicc":b[2][1136],"japanese":b[2][1137],"persian":b[2][1138],"roc":b[2][1139]},{"buddhist":b[2][1140],"chinese":b[2][1141],"coptic":b[2][1142],"dangi":b[2][1141],"ethiopic":b[2][1143],"ethioaa":b[2][1144],"generic":b[2][1145],"gregory":b[2][1146],"hebrew":b[2][1147],"indian":b[2][1148],"islamic":b[2][1149],"islamicc":b[2][1149],"japanese":b[2][1150],"persian":b[2][1151],"roc":b[2][1152]},{"buddhist":b[2][1154],"chinese":b[2][1155],"coptic":b[2][1156],"dangi":b[2][1155],"ethiopic":b[2][1157],"ethioaa":b[2][1158],"generic":b[2][1159],"gregory":b[2][1160],"hebrew":b[2][1161],"indian":b[2][1162],"islamic":b[2][1163],"islamicc":b[2][1163],"japanese":b[2][1164],"persian":b[2][1165],"roc":b[2][1166]},{"buddhist":b[2][1168],"chinese":b[2][1169],"coptic":b[2][1170],"dangi":b[2][1169],"ethiopic":b[2][1171],"ethioaa":b[2][1172],"generic":b[2][1173],"gregory":b[2][1174],"hebrew":b[2][1175],"indian":b[2][1176],"islamic":b[2][1177],"islamicc":b[2][1177],"japanese":b[2][1178],"persian":b[2][1179],"roc":b[2][1180]},{"buddhist":b[2][1183],"chinese":b[2][1184],"coptic":b[2][1185],"dangi":b[2][1184],"ethiopic":b[2][1186],"ethioaa":b[2][1187],"generic":b[2][1188],"gregory":b[2][1189],"hebrew":b[2][1190],"indian":b[2][1191],"islamic":b[2][1192],"islamicc":b[2][1192],"japanese":b[2][1193],"persian":b[2][1194],"roc":b[2][1195]},{"buddhist":b[2][1196],"chinese":b[2][1197],"coptic":b[2][1198],"dangi":b[2][1197],"ethiopic":b[2][1199],"ethioaa":b[2][1200],"generic":b[2][1201],"gregory":b[2][1202],"hebrew":b[2][1203],"indian":b[2][1204],"islamic":b[2][1205],"islamicc":b[2][1205],"japanese":b[2][1206],"persian":b[2][1207],"roc":b[2][1208]},{"buddhist":b[2][1210],"chinese":b[2][1211],"coptic":b[2][1212],"dangi":b[2][1211],"ethiopic":b[2][1213],"ethioaa":b[2][1214],"generic":b[2][1215],"gregory":b[2][1216],"hebrew":b[2][1217],"indian":b[2][1218],"islamic":b[2][1219],"islamicc":b[2][1219],"japanese":b[2][1220],"persian":b[2][1221],"roc":b[2][1222]},{"buddhist":b[2][1224],"chinese":b[2][1225],"coptic":b[2][1226],"dangi":b[2][1225],"ethiopic":b[2][1227],"ethioaa":b[2][1228],"generic":b[2][1229],"gregory":b[2][1230],"hebrew":b[2][1231],"indian":b[2][1232],"islamic":b[2][1233],"islamicc":b[2][1233],"japanese":b[2][1234],"persian":b[2][1235],"roc":b[2][1236]},{"buddhist":b[2][1238],"chinese":b[2][1239],"coptic":b[2][1240],"dangi":b[2][1239],"ethiopic":b[2][1241],"ethioaa":b[2][1242],"generic":b[2][1243],"gregory":b[2][1244],"hebrew":b[2][1245],"indian":b[2][1246],"islamic":b[2][1247],"islamicc":b[2][1247],"japanese":b[2][1248],"persian":b[2][1249],"roc":b[2][1250]},{"buddhist":b[2][1251],"chinese":b[2][1252],"coptic":b[2][1253],"dangi":b[2][1252],"ethiopic":b[2][1254],"ethioaa":b[2][1255],"generic":b[2][1256],"gregory":b[2][1257],"hebrew":b[2][1258],"indian":b[2][1259],"islamic":b[2][1260],"islamicc":b[2][1260],"japanese":b[2][1261],"persian":b[2][1262],"roc":b[2][1263]},{"buddhist":b[2][1265],"chinese":b[2][1266],"coptic":b[2][1267],"dangi":b[2][1266],"ethiopic":b[2][1268],"ethioaa":b[2][1269],"generic":b[2][1270],"gregory":b[2][1271],"hebrew":b[2][1272],"indian":b[2][1273],"islamic":b[2][1274],"islamicc":b[2][1274],"japanese":b[2][1275],"persian":b[2][1276],"roc":b[2][1277]},{"buddhist":b[2][1279],"chinese":b[2][1280],"coptic":b[2][1281],"dangi":b[2][1280],"ethiopic":b[2][1282],"ethioaa":b[2][1283],"generic":b[2][1284],"gregory":b[2][1285],"hebrew":b[2][1286],"indian":b[2][1287],"islamic":b[2][1288],"islamicc":b[2][1288],"japanese":b[2][1289],"persian":b[2][1290],"roc":b[2][1291]},{"buddhist":b[2][1294],"chinese":b[2][1295],"coptic":b[2][1296],"dangi":b[2][1295],"ethiopic":b[2][1297],"ethioaa":b[2][1298],"generic":b[2][1299],"gregory":b[2][1300],"hebrew":b[2][1301],"indian":b[2][1302],"islamic":b[2][1303],"islamicc":b[2][1303],"japanese":b[2][1304],"persian":b[2][1305],"roc":b[2][1306]},{"buddhist":b[2][1308],"chinese":b[2][1309],"coptic":b[2][1310],"dangi":b[2][1309],"ethiopic":b[2][1311],"ethioaa":b[2][1312],"generic":b[2][1313],"gregory":b[2][1314],"hebrew":b[2][1315],"indian":b[2][1316],"islamic":b[2][1317],"islamicc":b[2][1317],"japanese":b[2][1318],"persian":b[2][1319],"roc":b[2][1320]},{"buddhist":b[2][1321],"chinese":b[2][1322],"coptic":b[2][1323],"dangi":b[2][1322],"ethiopic":b[2][1324],"ethioaa":b[2][1325],"generic":b[2][1326],"gregory":b[2][1327],"hebrew":b[2][1328],"indian":b[2][1329],"islamic":b[2][1330],"islamicc":b[2][1330],"japanese":b[2][1331],"persian":b[2][1332],"roc":b[2][1333]},{"buddhist":b[2][1334],"chinese":b[2][1335],"coptic":b[2][1336],"dangi":b[2][1335],"ethiopic":b[2][1337],"ethioaa":b[2][1338],"generic":b[2][1339],"gregory":b[2][1340],"hebrew":b[2][1341],"indian":b[2][1342],"islamic":b[2][1343],"islamicc":b[2][1343],"japanese":b[2][1344],"persian":b[2][1345],"roc":b[2][1346]},{"buddhist":b[2][1348],"chinese":b[2][1349],"coptic":b[2][1350],"dangi":b[2][1349],"ethiopic":b[2][1351],"ethioaa":b[2][1352],"generic":b[2][1353],"gregory":b[2][1354],"hebrew":b[2][1355],"indian":b[2][1356],"islamic":b[2][1357],"islamicc":b[2][1357],"japanese":b[2][1358],"persian":b[2][1359],"roc":b[2][1360]},{"buddhist":b[2][1362],"chinese":b[2][1363],"coptic":b[2][1364],"dangi":b[2][1363],"ethiopic":b[2][1365],"ethioaa":b[2][1366],"generic":b[2][1367],"gregory":b[2][1368],"hebrew":b[2][1369],"indian":b[2][1370],"islamic":b[2][1371],"islamicc":b[2][1371],"japanese":b[2][1372],"persian":b[2][1373],"roc":b[2][1374]},{"buddhist":b[2][1375],"chinese":b[2][1376],"coptic":b[2][1377],"dangi":b[2][1376],"ethiopic":b[2][1378],"ethioaa":b[2][1379],"generic":b[2][1380],"gregory":b[2][1381],"hebrew":b[2][1382],"indian":b[2][1383],"islamic":b[2][1384],"islamicc":b[2][1384],"japanese":b[2][1385],"persian":b[2][1386],"roc":b[2][1387]},{"buddhist":b[2][1388],"chinese":b[2][1389],"coptic":b[2][1390],"dangi":b[2][1389],"ethiopic":b[2][1391],"ethioaa":b[2][1392],"generic":b[2][1393],"gregory":b[2][1394],"hebrew":b[2][1395],"indian":b[2][1396],"islamic":b[2][1397],"islamicc":b[2][1397],"japanese":b[2][1398],"persian":b[2][1399],"roc":b[2][1400]},{"buddhist":b[2][1402],"chinese":b[2][1403],"coptic":b[2][1404],"dangi":b[2][1403],"ethiopic":b[2][1405],"ethioaa":b[2][1406],"generic":b[2][1407],"gregory":b[2][1408],"hebrew":b[2][1409],"indian":b[2][1410],"islamic":b[2][1411],"islamicc":b[2][1411],"japanese":b[2][1412],"persian":b[2][1413],"roc":b[2][1414]},{"buddhist":b[2][1415],"chinese":b[2][1416],"coptic":b[2][1417],"dangi":b[2][1416],"ethiopic":b[2][1418],"ethioaa":b[2][1419],"generic":b[2][1420],"gregory":b[2][1421],"hebrew":b[2][1422],"indian":b[2][1423],"islamic":b[2][1424],"islamicc":b[2][1424],"japanese":b[2][1425],"persian":b[2][1426],"roc":b[2][1427]},{"buddhist":b[2][1428],"chinese":b[2][1429],"coptic":b[2][1430],"dangi":b[2][1429],"ethiopic":b[2][1431],"ethioaa":b[2][1432],"generic":b[2][1433],"gregory":b[2][1434],"hebrew":b[2][1435],"indian":b[2][1436],"islamic":b[2][1437],"islamicc":b[2][1437],"japanese":b[2][1438],"persian":b[2][1439],"roc":b[2][1440]},{"buddhist":b[2][1442],"chinese":b[2][1443],"coptic":b[2][1444],"dangi":b[2][1443],"ethiopic":b[2][1445],"ethioaa":b[2][1446],"generic":b[2][1447],"gregory":b[2][1448],"hebrew":b[2][1449],"indian":b[2][1450],"islamic":b[2][1451],"islamicc":b[2][1451],"japanese":b[2][1452],"persian":b[2][1453],"roc":b[2][1454]},{"buddhist":b[2][1455],"chinese":b[2][1456],"coptic":b[2][1457],"dangi":b[2][1456],"ethiopic":b[2][1458],"ethioaa":b[2][1459],"generic":b[2][1460],"gregory":b[2][1461],"hebrew":b[2][1462],"indian":b[2][1463],"islamic":b[2][1464],"islamicc":b[2][1464],"japanese":b[2][1465],"persian":b[2][1466],"roc":b[2][1467]},{"buddhist":b[2][1469],"chinese":b[2][1470],"coptic":b[2][1471],"dangi":b[2][1470],"ethiopic":b[2][1472],"ethioaa":b[2][1473],"generic":b[2][1474],"gregory":b[2][1475],"hebrew":b[2][1476],"indian":b[2][1477],"islamic":b[2][1478],"islamicc":b[2][1478],"japanese":b[2][1479],"persian":b[2][1480],"roc":b[2][1481]},{"buddhist":b[2][1482],"chinese":b[2][1483],"coptic":b[2][1484],"dangi":b[2][1483],"ethiopic":b[2][1485],"ethioaa":b[2][1486],"generic":b[2][1487],"gregory":b[2][1488],"hebrew":b[2][1489],"indian":b[2][1490],"islamic":b[2][1491],"islamicc":b[2][1491],"japanese":b[2][1492],"persian":b[2][1493],"roc":b[2][1494]},{"buddhist":b[2][1496],"chinese":b[2][1497],"coptic":b[2][1498],"dangi":b[2][1497],"ethiopic":b[2][1499],"ethioaa":b[2][1500],"generic":b[2][1501],"gregory":b[2][1502],"hebrew":b[2][1503],"indian":b[2][1504],"islamic":b[2][1505],"islamicc":b[2][1505],"japanese":b[2][1506],"persian":b[2][1507],"roc":b[2][1508]},{"buddhist":b[2][1510],"chinese":b[2][1511],"coptic":b[2][1512],"dangi":b[2][1511],"ethiopic":b[2][1513],"ethioaa":b[2][1514],"generic":b[2][1515],"gregory":b[2][1516],"hebrew":b[2][1517],"indian":b[2][1518],"islamic":b[2][1519],"islamicc":b[2][1519],"japanese":b[2][1520],"persian":b[2][1521],"roc":b[2][1522]},{"buddhist":b[2][1524],"chinese":b[2][1525],"coptic":b[2][1526],"dangi":b[2][1525],"ethiopic":b[2][1527],"ethioaa":b[2][1528],"generic":b[2][1529],"gregory":b[2][1530],"hebrew":b[2][1531],"indian":b[2][1532],"islamic":b[2][1533],"islamicc":b[2][1533],"japanese":b[2][1534],"persian":b[2][1535],"roc":b[2][1536]},{"buddhist":b[2][1537],"chinese":b[2][1538],"coptic":b[2][1539],"dangi":b[2][1538],"ethiopic":b[2][1540],"ethioaa":b[2][1541],"generic":b[2][1542],"gregory":b[2][1543],"hebrew":b[2][1544],"indian":b[2][1545],"islamic":b[2][1546],"islamicc":b[2][1546],"japanese":b[2][1547],"persian":b[2][1548],"roc":b[2][1549]},{"buddhist":b[2][1551],"chinese":b[2][1552],"coptic":b[2][1553],"dangi":b[2][1552],"ethiopic":b[2][1554],"ethioaa":b[2][1555],"generic":b[2][1556],"gregory":b[2][1557],"hebrew":b[2][1558],"indian":b[2][1559],"islamic":b[2][1560],"islamicc":b[2][1560],"japanese":b[2][1561],"persian":b[2][1562],"roc":b[2][1563]},{"buddhist":b[2][1564],"chinese":b[2][1565],"coptic":b[2][1566],"dangi":b[2][1565],"ethiopic":b[2][1567],"ethioaa":b[2][1568],"generic":b[2][1569],"gregory":b[2][1570],"hebrew":b[2][1571],"indian":b[2][1572],"islamic":b[2][1573],"islamicc":b[2][1573],"japanese":b[2][1574],"persian":b[2][1575],"roc":b[2][1576]},{"buddhist":b[2][1577],"chinese":b[2][1578],"coptic":b[2][1579],"dangi":b[2][1578],"ethiopic":b[2][1580],"ethioaa":b[2][1581],"generic":b[2][1582],"gregory":b[2][1583],"hebrew":b[2][1584],"indian":b[2][1585],"islamic":b[2][1586],"islamicc":b[2][1586],"japanese":b[2][1587],"persian":b[2][1588],"roc":b[2][1589]},{"buddhist":b[2][1591],"chinese":b[2][1592],"coptic":b[2][1593],"dangi":b[2][1592],"ethiopic":b[2][1594],"ethioaa":b[2][1595],"generic":b[2][1596],"gregory":b[2][1597],"hebrew":b[2][1598],"indian":b[2][1599],"islamic":b[2][1600],"islamicc":b[2][1600],"japanese":b[2][1601],"persian":b[2][1602],"roc":b[2][1603]},{"buddhist":b[2][1604],"chinese":b[2][1605],"coptic":b[2][1606],"dangi":b[2][1605],"ethiopic":b[2][1607],"ethioaa":b[2][1608],"generic":b[2][1609],"gregory":b[2][1610],"hebrew":b[2][1611],"indian":b[2][1612],"islamic":b[2][1613],"islamicc":b[2][1613],"japanese":b[2][1614],"persian":b[2][1615],"roc":b[2][1616]},{"buddhist":b[2][1618],"chinese":b[2][1619],"coptic":b[2][1620],"dangi":b[2][1619],"ethiopic":b[2][1621],"ethioaa":b[2][1622],"generic":b[2][1623],"gregory":b[2][1624],"hebrew":b[2][1625],"indian":b[2][1626],"islamic":b[2][1627],"islamicc":b[2][1627],"japanese":b[2][1628],"persian":b[2][1629],"roc":b[2][1630]},{"buddhist":b[2][1632],"chinese":b[2][1633],"coptic":b[2][1634],"dangi":b[2][1633],"ethiopic":b[2][1635],"ethioaa":b[2][1636],"generic":b[2][1637],"gregory":b[2][1638],"hebrew":b[2][1639],"indian":b[2][1640],"islamic":b[2][1641],"islamicc":b[2][1641],"japanese":b[2][1642],"persian":b[2][1643],"roc":b[2][1644]},{"buddhist":b[2][1646],"chinese":b[2][1647],"coptic":b[2][1648],"dangi":b[2][1647],"ethiopic":b[2][1649],"ethioaa":b[2][1650],"generic":b[2][1651],"gregory":b[2][1652],"hebrew":b[2][1653],"indian":b[2][1654],"islamic":b[2][1655],"islamicc":b[2][1655],"japanese":b[2][1656],"persian":b[2][1657],"roc":b[2][1658]},{"buddhist":b[2][1660],"chinese":b[2][1661],"coptic":b[2][1662],"dangi":b[2][1661],"ethiopic":b[2][1663],"ethioaa":b[2][1664],"generic":b[2][1665],"gregory":b[2][1666],"hebrew":b[2][1667],"indian":b[2][1668],"islamic":b[2][1669],"islamicc":b[2][1669],"japanese":b[2][1670],"persian":b[2][1671],"roc":b[2][1672]},{"buddhist":b[2][1674],"chinese":b[2][1675],"coptic":b[2][1676],"dangi":b[2][1675],"ethiopic":b[2][1677],"ethioaa":b[2][1678],"generic":b[2][1679],"gregory":b[2][1680],"hebrew":b[2][1681],"indian":b[2][1682],"islamic":b[2][1683],"islamicc":b[2][1683],"japanese":b[2][1684],"persian":b[2][1685],"roc":b[2][1686]},{"buddhist":b[2][1689],"chinese":b[2][1690],"coptic":b[2][1691],"dangi":b[2][1690],"ethiopic":b[2][1692],"ethioaa":b[2][1693],"generic":b[2][1694],"gregory":b[2][1695],"hebrew":b[2][1696],"indian":b[2][1697],"islamic":b[2][1698],"islamicc":b[2][1698],"japanese":b[2][1699],"persian":b[2][1700],"roc":b[2][1701]},{"buddhist":b[2][1703],"chinese":b[2][171],"coptic":b[2][172],"dangi":b[2][171],"ethiopic":b[2][173],"ethioaa":b[2][174],"generic":b[2][175],"gregory":b[2][1704],"hebrew":b[2][177],"indian":b[2][178],"islamic":b[2][179],"islamicc":b[2][179],"japanese":b[2][1705],"persian":b[2][181],"roc":b[2][1706]},{"buddhist":b[2][1708],"chinese":b[2][1709],"coptic":b[2][1710],"dangi":b[2][1709],"ethiopic":b[2][1711],"ethioaa":b[2][1712],"generic":b[2][1713],"gregory":b[2][1714],"hebrew":b[2][1715],"indian":b[2][1716],"islamic":b[2][1717],"islamicc":b[2][1717],"japanese":b[2][1718],"persian":b[2][1719],"roc":b[2][1720]},{"buddhist":b[2][1722],"chinese":b[2][1723],"coptic":b[2][1724],"dangi":b[2][1723],"ethiopic":b[2][1725],"ethioaa":b[2][1726],"generic":b[2][1727],"gregory":b[2][1728],"hebrew":b[2][1729],"indian":b[2][1730],"islamic":b[2][1731],"islamicc":b[2][1731],"japanese":b[2][1732],"persian":b[2][1733],"roc":b[2][1734]},{"buddhist":b[2][1736],"chinese":b[2][1737],"coptic":b[2][1738],"dangi":b[2][1737],"ethiopic":b[2][1739],"ethioaa":b[2][1740],"generic":b[2][1741],"gregory":b[2][1742],"hebrew":b[2][1743],"indian":b[2][1744],"islamic":b[2][1745],"islamicc":b[2][1745],"japanese":b[2][1746],"persian":b[2][1747],"roc":b[2][1748]},{"buddhist":b[2][1750],"chinese":b[2][1751],"coptic":b[2][1752],"dangi":b[2][1751],"ethiopic":b[2][1753],"ethioaa":b[2][1754],"generic":b[2][1755],"gregory":b[2][1756],"hebrew":b[2][1757],"indian":b[2][1758],"islamic":b[2][1759],"islamicc":b[2][1759],"japanese":b[2][1760],"persian":b[2][1761],"roc":b[2][1762]},{"buddhist":b[2][1764],"chinese":b[2][1765],"coptic":b[2][1766],"dangi":b[2][1765],"ethiopic":b[2][1767],"ethioaa":b[2][1768],"generic":b[2][1769],"gregory":b[2][1770],"hebrew":b[2][1771],"indian":b[2][1772],"islamic":b[2][1773],"islamicc":b[2][1773],"japanese":b[2][1774],"persian":b[2][1775],"roc":b[2][1776]},{"buddhist":b[2][1778],"chinese":b[2][1779],"coptic":b[2][1780],"dangi":b[2][1779],"ethiopic":b[2][1781],"ethioaa":b[2][1782],"generic":b[2][1783],"gregory":b[2][1784],"hebrew":b[2][1785],"indian":b[2][1786],"islamic":b[2][1787],"islamicc":b[2][1787],"japanese":b[2][1788],"persian":b[2][1789],"roc":b[2][1790]},{"buddhist":b[2][1792],"chinese":b[2][1793],"coptic":b[2][1794],"dangi":b[2][1793],"ethiopic":b[2][1795],"ethioaa":b[2][1796],"generic":b[2][1797],"gregory":b[2][1798],"hebrew":b[2][1799],"indian":b[2][1800],"islamic":b[2][1801],"islamicc":b[2][1801],"japanese":b[2][1802],"persian":b[2][1803],"roc":b[2][1804]},{"buddhist":b[2][1805],"chinese":b[2][1806],"coptic":b[2][1807],"dangi":b[2][1806],"ethiopic":b[2][1808],"ethioaa":b[2][1809],"generic":b[2][1810],"gregory":b[2][1811],"hebrew":b[2][1812],"indian":b[2][1813],"islamic":b[2][1814],"islamicc":b[2][1814],"japanese":b[2][1815],"persian":b[2][1816],"roc":b[2][1817]},{"buddhist":b[2][1819],"chinese":b[2][1820],"coptic":b[2][1821],"dangi":b[2][1820],"ethiopic":b[2][1822],"ethioaa":b[2][1823],"generic":b[2][1824],"gregory":b[2][1825],"hebrew":b[2][1826],"indian":b[2][1827],"islamic":b[2][1828],"islamicc":b[2][1828],"japanese":b[2][1829],"persian":b[2][1830],"roc":b[2][1831]},{"buddhist":b[2][1832],"chinese":b[2][1833],"coptic":b[2][1834],"dangi":b[2][1833],"ethiopic":b[2][1835],"ethioaa":b[2][1836],"generic":b[2][1837],"gregory":b[2][1838],"hebrew":b[2][1839],"indian":b[2][1840],"islamic":b[2][1841],"islamicc":b[2][1841],"japanese":b[2][1842],"persian":b[2][1843],"roc":b[2][1844]},{"buddhist":b[2][1846],"chinese":b[2][1847],"coptic":b[2][1848],"dangi":b[2][1847],"ethiopic":b[2][1849],"ethioaa":b[2][1850],"generic":b[2][1851],"gregory":b[2][1852],"hebrew":b[2][1853],"indian":b[2][1854],"islamic":b[2][1855],"islamicc":b[2][1855],"japanese":b[2][1856],"persian":b[2][1857],"roc":b[2][1858]},{"buddhist":b[2][1859],"chinese":b[2][1860],"coptic":b[2][1861],"dangi":b[2][1860],"ethiopic":b[2][1862],"ethioaa":b[2][1863],"generic":b[2][1864],"gregory":b[2][1865],"hebrew":b[2][1866],"indian":b[2][1867],"islamic":b[2][1868],"islamicc":b[2][1868],"japanese":b[2][1869],"persian":b[2][1870],"roc":b[2][1871]},{"buddhist":b[2][1873],"chinese":b[2][1874],"coptic":b[2][1875],"dangi":b[2][1874],"ethiopic":b[2][1876],"ethioaa":b[2][1877],"generic":b[2][1878],"gregory":b[2][1879],"hebrew":b[2][1880],"indian":b[2][1881],"islamic":b[2][1882],"islamicc":b[2][1882],"japanese":b[2][1883],"persian":b[2][1884],"roc":b[2][1885]},{"buddhist":b[2][1887],"chinese":b[2][1888],"coptic":b[2][1889],"dangi":b[2][1888],"ethiopic":b[2][1890],"ethioaa":b[2][1891],"generic":b[2][1892],"gregory":b[2][1893],"hebrew":b[2][1894],"indian":b[2][1895],"islamic":b[2][1896],"islamicc":b[2][1896],"japanese":b[2][1897],"persian":b[2][1898],"roc":b[2][1899]},{"buddhist":b[2][1901],"chinese":b[2][1902],"coptic":b[2][1903],"dangi":b[2][1902],"ethiopic":b[2][1904],"ethioaa":b[2][1905],"generic":b[2][1906],"gregory":b[2][1907],"hebrew":b[2][1908],"indian":b[2][1909],"islamic":b[2][1910],"islamicc":b[2][1910],"japanese":b[2][1911],"persian":b[2][1912],"roc":b[2][1913]},{"buddhist":b[2][1915],"chinese":b[2][1916],"coptic":b[2][1917],"dangi":b[2][1916],"ethiopic":b[2][1918],"ethioaa":b[2][1919],"generic":b[2][1920],"gregory":b[2][1921],"hebrew":b[2][1922],"indian":b[2][1923],"islamic":b[2][1924],"islamicc":b[2][1924],"japanese":b[2][1925],"persian":b[2][1926],"roc":b[2][1927]},{"buddhist":b[2][1931],"chinese":b[2][1932],"coptic":b[2][1933],"dangi":b[2][1932],"ethiopic":b[2][1934],"ethioaa":b[2][1935],"generic":b[2][1936],"gregory":b[2][1937],"hebrew":b[2][1938],"indian":b[2][1939],"islamic":b[2][1940],"islamicc":b[2][1940],"japanese":b[2][1941],"persian":b[2][1942],"roc":b[2][1943]},{"buddhist":b[2][1944],"chinese":b[2][1945],"coptic":b[2][1946],"dangi":b[2][1945],"ethiopic":b[2][1947],"ethioaa":b[2][1948],"generic":b[2][1949],"gregory":b[2][1950],"hebrew":b[2][1951],"indian":b[2][1952],"islamic":b[2][1953],"islamicc":b[2][1953],"japanese":b[2][1954],"persian":b[2][1955],"roc":b[2][1956]},{"buddhist":b[2][1958],"chinese":b[2][1959],"coptic":b[2][1960],"dangi":b[2][1959],"ethiopic":b[2][1961],"ethioaa":b[2][1962],"generic":b[2][1963],"gregory":b[2][1964],"hebrew":b[2][1965],"indian":b[2][1966],"islamic":b[2][1967],"islamicc":b[2][1967],"japanese":b[2][1968],"persian":b[2][1969],"roc":b[2][1970]},{"buddhist":b[2][1972],"chinese":b[2][171],"coptic":b[2][172],"dangi":b[2][171],"ethiopic":b[2][173],"ethioaa":b[2][174],"generic":b[2][175],"gregory":b[2][1973],"hebrew":b[2][177],"indian":b[2][178],"islamic":b[2][179],"islamicc":b[2][179],"japanese":b[2][1974],"persian":b[2][181],"roc":b[2][1975]},{"buddhist":b[2][1977],"chinese":b[2][1978],"coptic":b[2][1979],"dangi":b[2][1978],"ethiopic":b[2][1980],"ethioaa":b[2][1981],"generic":b[2][1982],"gregory":b[2][1983],"hebrew":b[2][1984],"indian":b[2][1985],"islamic":b[2][1986],"islamicc":b[2][1986],"japanese":b[2][1987],"persian":b[2][1988],"roc":b[2][1989]},{"buddhist":b[2][1990],"chinese":b[2][1991],"coptic":b[2][1992],"dangi":b[2][1991],"ethiopic":b[2][1993],"ethioaa":b[2][1994],"generic":b[2][1995],"gregory":b[2][1996],"hebrew":b[2][1997],"indian":b[2][1998],"islamic":b[2][1999],"islamicc":b[2][1999],"japanese":b[2][2000],"persian":b[2][2001],"roc":b[2][2002]},{"buddhist":b[2][2004],"chinese":b[2][2005],"coptic":b[2][2006],"dangi":b[2][2005],"ethiopic":b[2][2007],"ethioaa":b[2][2008],"generic":b[2][2009],"gregory":b[2][2010],"hebrew":b[2][2011],"indian":b[2][2012],"islamic":b[2][2013],"islamicc":b[2][2013],"japanese":b[2][2014],"persian":b[2][2015],"roc":b[2][2016]},{"buddhist":b[2][2017],"chinese":b[2][2018],"coptic":b[2][2019],"dangi":b[2][2018],"ethiopic":b[2][2020],"ethioaa":b[2][2021],"generic":b[2][2022],"gregory":b[2][2023],"hebrew":b[2][2024],"indian":b[2][2025],"islamic":b[2][2026],"islamicc":b[2][2026],"japanese":b[2][2027],"persian":b[2][2028],"roc":b[2][2029]},{"buddhist":b[2][2031],"chinese":b[2][2032],"coptic":b[2][2033],"dangi":b[2][2032],"ethiopic":b[2][2034],"ethioaa":b[2][2035],"generic":b[2][2036],"gregory":b[2][2037],"hebrew":b[2][2038],"indian":b[2][2039],"islamic":b[2][2040],"islamicc":b[2][2040],"japanese":b[2][2041],"persian":b[2][2042],"roc":b[2][2043]},{"buddhist":b[2][2050],"chinese":b[2][2051],"coptic":b[2][2052],"dangi":b[2][2051],"ethiopic":b[2][2053],"ethioaa":b[2][2054],"generic":b[2][2055],"gregory":b[2][2056],"hebrew":b[2][2057],"indian":b[2][2058],"islamic":b[2][2059],"islamicc":b[2][2059],"japanese":b[2][2060],"persian":b[2][2061],"roc":b[2][2062]},{"buddhist":b[2][2063],"chinese":b[2][2064],"coptic":b[2][2065],"dangi":b[2][2064],"ethiopic":b[2][2066],"ethioaa":b[2][2067],"generic":b[2][2068],"gregory":b[2][2069],"hebrew":b[2][2070],"indian":b[2][2071],"islamic":b[2][2072],"islamicc":b[2][2072],"japanese":b[2][2073],"persian":b[2][2074],"roc":b[2][2075]},{"buddhist":b[2][2077],"chinese":b[2][2078],"coptic":b[2][2079],"dangi":b[2][2078],"ethiopic":b[2][2080],"ethioaa":b[2][2081],"generic":b[2][2082],"gregory":b[2][2083],"hebrew":b[2][2084],"indian":b[2][2085],"islamic":b[2][2086],"islamicc":b[2][2086],"japanese":b[2][2087],"persian":b[2][2088],"roc":b[2][2089]},{"buddhist":b[2][2090],"chinese":b[2][2091],"coptic":b[2][2092],"dangi":b[2][2091],"ethiopic":b[2][2093],"ethioaa":b[2][2094],"generic":b[2][2095],"gregory":b[2][2096],"hebrew":b[2][2097],"indian":b[2][2098],"islamic":b[2][2099],"islamicc":b[2][2099],"japanese":b[2][2100],"persian":b[2][2101],"roc":b[2][2102]},{"buddhist":b[2][2103],"chinese":b[2][2104],"coptic":b[2][2105],"dangi":b[2][2104],"ethiopic":b[2][2106],"ethioaa":b[2][2107],"generic":b[2][2108],"gregory":b[2][2109],"hebrew":b[2][2110],"indian":b[2][2111],"islamic":b[2][2112],"islamicc":b[2][2112],"japanese":b[2][2113],"persian":b[2][2114],"roc":b[2][2115]},{"buddhist":b[2][2118],"chinese":b[2][2119],"coptic":b[2][2120],"dangi":b[2][2119],"ethiopic":b[2][2121],"ethioaa":b[2][2122],"generic":b[2][2123],"gregory":b[2][2124],"hebrew":b[2][2125],"indian":b[2][2126],"islamic":b[2][2127],"islamicc":b[2][2127],"japanese":b[2][2128],"persian":b[2][2129],"roc":b[2][2130]},{"buddhist":b[2][2132],"chinese":b[2][2133],"coptic":b[2][2134],"dangi":b[2][2133],"ethiopic":b[2][2135],"ethioaa":b[2][2136],"generic":b[2][2137],"gregory":b[2][2138],"hebrew":b[2][2139],"indian":b[2][2140],"islamic":b[2][2141],"islamicc":b[2][2141],"japanese":b[2][2142],"persian":b[2][2143],"roc":b[2][2144]},{"buddhist":b[2][2147],"chinese":b[2][2148],"coptic":b[2][2149],"dangi":b[2][2148],"ethiopic":b[2][2150],"ethioaa":b[2][2151],"generic":b[2][2152],"gregory":b[2][2153],"hebrew":b[2][2154],"indian":b[2][2155],"islamic":b[2][2156],"islamicc":b[2][2156],"japanese":b[2][2157],"persian":b[2][2158],"roc":b[2][2159]},{"buddhist":b[2][2161],"chinese":b[2][2162],"coptic":b[2][2163],"dangi":b[2][2162],"ethiopic":b[2][2164],"ethioaa":b[2][2165],"generic":b[2][2166],"gregory":b[2][2167],"hebrew":b[2][2168],"indian":b[2][2169],"islamic":b[2][2170],"islamicc":b[2][2170],"japanese":b[2][2171],"persian":b[2][2172],"roc":b[2][2173]},{"buddhist":b[2][2175],"chinese":b[2][2176],"coptic":b[2][2177],"dangi":b[2][2176],"ethiopic":b[2][2178],"ethioaa":b[2][2179],"generic":b[2][2180],"gregory":b[2][2181],"hebrew":b[2][2182],"indian":b[2][2183],"islamic":b[2][2184],"islamicc":b[2][2184],"japanese":b[2][2185],"persian":b[2][2186],"roc":b[2][2187]},{"buddhist":b[2][2189],"chinese":b[2][2190],"coptic":b[2][2191],"dangi":b[2][2190],"ethiopic":b[2][2192],"ethioaa":b[2][2193],"generic":b[2][2194],"gregory":b[2][2195],"hebrew":b[2][2196],"indian":b[2][2197],"islamic":b[2][2198],"islamicc":b[2][2198],"japanese":b[2][2199],"persian":b[2][2200],"roc":b[2][2201]},{"buddhist":b[2][2203],"chinese":b[2][2204],"coptic":b[2][2205],"dangi":b[2][2204],"ethiopic":b[2][2206],"ethioaa":b[2][2207],"generic":b[2][2208],"gregory":b[2][2209],"hebrew":b[2][2210],"indian":b[2][2211],"islamic":b[2][2212],"islamicc":b[2][2212],"japanese":b[2][2213],"persian":b[2][2214],"roc":b[2][2215]},{"buddhist":b[2][2217],"chinese":b[2][2218],"coptic":b[2][2219],"dangi":b[2][2218],"ethiopic":b[2][2220],"ethioaa":b[2][2221],"generic":b[2][2222],"gregory":b[2][2223],"hebrew":b[2][2224],"indian":b[2][2225],"islamic":b[2][2226],"islamicc":b[2][2226],"japanese":b[2][2227],"persian":b[2][2228],"roc":b[2][2229]},{"buddhist":b[2][2236],"chinese":b[2][2237],"coptic":b[2][2238],"dangi":b[2][2237],"ethiopic":b[2][2239],"ethioaa":b[2][2240],"generic":b[2][2241],"gregory":b[2][2242],"hebrew":b[2][2243],"indian":b[2][2244],"islamic":b[2][2245],"islamicc":b[2][2245],"japanese":b[2][2246],"persian":b[2][2247],"roc":b[2][2248]},{"buddhist":b[2][2252],"chinese":b[2][2253],"coptic":b[2][2254],"dangi":b[2][2253],"ethiopic":b[2][2255],"ethioaa":b[2][2256],"generic":b[2][2257],"gregory":b[2][2258],"hebrew":b[2][2259],"indian":b[2][2260],"islamic":b[2][2261],"islamicc":b[2][2261],"japanese":b[2][2262],"persian":b[2][2263],"roc":b[2][2264]},{"buddhist":b[2][2266],"chinese":b[2][2267],"coptic":b[2][2268],"dangi":b[2][2267],"ethiopic":b[2][2269],"ethioaa":b[2][2270],"generic":b[2][2271],"gregory":b[2][2272],"hebrew":b[2][2273],"indian":b[2][2274],"islamic":b[2][2275],"islamicc":b[2][2275],"japanese":b[2][2276],"persian":b[2][2277],"roc":b[2][2278]},{"buddhist":b[2][2280],"chinese":b[2][2281],"coptic":b[2][2282],"dangi":b[2][2281],"ethiopic":b[2][2283],"ethioaa":b[2][2284],"generic":b[2][2285],"gregory":b[2][2286],"hebrew":b[2][2287],"indian":b[2][2288],"islamic":b[2][2289],"islamicc":b[2][2289],"japanese":b[2][2290],"persian":b[2][2291],"roc":b[2][2292]},{"buddhist":b[2][2294],"chinese":b[2][2295],"coptic":b[2][2296],"dangi":b[2][2295],"ethiopic":b[2][2297],"ethioaa":b[2][2298],"generic":b[2][2299],"gregory":b[2][2300],"hebrew":b[2][2301],"indian":b[2][2302],"islamic":b[2][2303],"islamicc":b[2][2303],"japanese":b[2][2304],"persian":b[2][2305],"roc":b[2][2306]},{"buddhist":b[2][2308],"chinese":b[2][2309],"coptic":b[2][2310],"dangi":b[2][2309],"ethiopic":b[2][2311],"ethioaa":b[2][2312],"generic":b[2][2313],"gregory":b[2][2314],"hebrew":b[2][2315],"indian":b[2][2316],"islamic":b[2][2317],"islamicc":b[2][2317],"japanese":b[2][2318],"persian":b[2][2319],"roc":b[2][2320]},{"buddhist":b[2][2321],"chinese":b[2][2322],"coptic":b[2][2323],"dangi":b[2][2322],"ethiopic":b[2][2324],"ethioaa":b[2][2325],"generic":b[2][2326],"gregory":b[2][2327],"hebrew":b[2][2328],"indian":b[2][2329],"islamic":b[2][2330],"islamicc":b[2][2330],"japanese":b[2][2331],"persian":b[2][2332],"roc":b[2][2333]},{"buddhist":b[2][2339],"chinese":b[2][2340],"coptic":b[2][2341],"dangi":b[2][2340],"ethiopic":b[2][2342],"ethioaa":b[2][2343],"generic":b[2][2344],"gregory":b[2][2345],"hebrew":b[2][2346],"indian":b[2][2347],"islamic":b[2][2348],"islamicc":b[2][2348],"japanese":b[2][2349],"persian":b[2][2350],"roc":b[2][2351]},{"buddhist":b[2][2353],"chinese":b[2][2354],"coptic":b[2][2355],"dangi":b[2][2354],"ethiopic":b[2][2356],"ethioaa":b[2][2357],"generic":b[2][2358],"gregory":b[2][2359],"hebrew":b[2][2360],"indian":b[2][2361],"islamic":b[2][2362],"islamicc":b[2][2362],"japanese":b[2][2363],"persian":b[2][2364],"roc":b[2][2365]},{"buddhist":b[2][2366],"chinese":b[2][2367],"coptic":b[2][2368],"dangi":b[2][2367],"ethiopic":b[2][2369],"ethioaa":b[2][2370],"generic":b[2][2371],"gregory":b[2][2372],"hebrew":b[2][2373],"indian":b[2][2374],"islamic":b[2][2375],"islamicc":b[2][2375],"japanese":b[2][2376],"persian":b[2][2377],"roc":b[2][2378]},{"buddhist":b[2][2379],"chinese":b[2][2380],"coptic":b[2][2381],"dangi":b[2][2380],"ethiopic":b[2][2382],"ethioaa":b[2][2383],"generic":b[2][2384],"gregory":b[2][2385],"hebrew":b[2][2386],"indian":b[2][2387],"islamic":b[2][2388],"islamicc":b[2][2388],"japanese":b[2][2389],"persian":b[2][2390],"roc":b[2][2391]},{"buddhist":b[2][2392],"chinese":b[2][2393],"coptic":b[2][2394],"dangi":b[2][2393],"ethiopic":b[2][2395],"ethioaa":b[2][2396],"generic":b[2][2397],"gregory":b[2][2398],"hebrew":b[2][2399],"indian":b[2][2400],"islamic":b[2][2401],"islamicc":b[2][2401],"japanese":b[2][2402],"persian":b[2][2403],"roc":b[2][2404]},{"buddhist":b[2][2407],"chinese":b[2][2408],"coptic":b[2][2409],"dangi":b[2][2408],"ethiopic":b[2][2410],"ethioaa":b[2][2411],"generic":b[2][2412],"gregory":b[2][2413],"hebrew":b[2][2414],"indian":b[2][2415],"islamic":b[2][2416],"islamicc":b[2][2416],"japanese":b[2][2417],"persian":b[2][2418],"roc":b[2][2419]},{"buddhist":b[2][2421],"chinese":b[2][2422],"coptic":b[2][2423],"dangi":b[2][2422],"ethiopic":b[2][2424],"ethioaa":b[2][2425],"generic":b[2][2426],"gregory":b[2][2427],"hebrew":b[2][2428],"indian":b[2][2429],"islamic":b[2][2430],"islamicc":b[2][2430],"japanese":b[2][2431],"persian":b[2][2432],"roc":b[2][2433]},{"buddhist":b[2][2434],"chinese":b[2][2435],"coptic":b[2][2436],"dangi":b[2][2435],"ethiopic":b[2][2437],"ethioaa":b[2][2438],"generic":b[2][2439],"gregory":b[2][2440],"hebrew":b[2][2441],"indian":b[2][2442],"islamic":b[2][2443],"islamicc":b[2][2443],"japanese":b[2][2444],"persian":b[2][2445],"roc":b[2][2446]},{"buddhist":b[2][2448],"chinese":b[2][2449],"coptic":b[2][2450],"dangi":b[2][2449],"ethiopic":b[2][2451],"ethioaa":b[2][2452],"generic":b[2][2453],"gregory":b[2][2454],"hebrew":b[2][2455],"indian":b[2][2456],"islamic":b[2][2457],"islamicc":b[2][2457],"japanese":b[2][2458],"persian":b[2][2459],"roc":b[2][2460]},{"buddhist":b[2][2461],"chinese":b[2][2462],"coptic":b[2][2463],"dangi":b[2][2462],"ethiopic":b[2][2464],"ethioaa":b[2][2465],"generic":b[2][2466],"gregory":b[2][2467],"hebrew":b[2][2468],"indian":b[2][2469],"islamic":b[2][2470],"islamicc":b[2][2470],"japanese":b[2][2471],"persian":b[2][2472],"roc":b[2][2473]},{"buddhist":b[2][2474],"chinese":b[2][2475],"coptic":b[2][2476],"dangi":b[2][2475],"ethiopic":b[2][2477],"ethioaa":b[2][2478],"generic":b[2][2479],"gregory":b[2][2480],"hebrew":b[2][2481],"indian":b[2][2482],"islamic":b[2][2483],"islamicc":b[2][2483],"japanese":b[2][2484],"persian":b[2][2485],"roc":b[2][2486]},{"buddhist":b[2][2488],"chinese":b[2][2489],"coptic":b[2][2490],"dangi":b[2][2489],"ethiopic":b[2][2491],"ethioaa":b[2][2492],"generic":b[2][2493],"gregory":b[2][2494],"hebrew":b[2][2495],"indian":b[2][2496],"islamic":b[2][2497],"islamicc":b[2][2497],"japanese":b[2][2498],"persian":b[2][2499],"roc":b[2][2500]},{"buddhist":b[2][2502],"chinese":b[2][2503],"coptic":b[2][2504],"dangi":b[2][2503],"ethiopic":b[2][2505],"ethioaa":b[2][2506],"generic":b[2][2507],"gregory":b[2][2508],"hebrew":b[2][2509],"indian":b[2][2510],"islamic":b[2][2511],"islamicc":b[2][2511],"japanese":b[2][2512],"persian":b[2][2513],"roc":b[2][2514]},{"buddhist":b[2][2516],"chinese":b[2][2517],"coptic":b[2][2518],"dangi":b[2][2517],"ethiopic":b[2][2519],"ethioaa":b[2][2520],"generic":b[2][2521],"gregory":b[2][2522],"hebrew":b[2][2523],"indian":b[2][2524],"islamic":b[2][2525],"islamicc":b[2][2525],"japanese":b[2][2526],"persian":b[2][2527],"roc":b[2][2528]},{"buddhist":b[2][2530],"chinese":b[2][2531],"coptic":b[2][2532],"dangi":b[2][2531],"ethiopic":b[2][2533],"ethioaa":b[2][2534],"generic":b[2][2535],"gregory":b[2][2536],"hebrew":b[2][2537],"indian":b[2][2538],"islamic":b[2][2539],"islamicc":b[2][2539],"japanese":b[2][2540],"persian":b[2][2541],"roc":b[2][2542]},{"buddhist":b[2][2543],"chinese":b[2][2544],"coptic":b[2][2545],"dangi":b[2][2544],"ethiopic":b[2][2546],"ethioaa":b[2][2547],"generic":b[2][2548],"gregory":b[2][2549],"hebrew":b[2][2550],"indian":b[2][2551],"islamic":b[2][2552],"islamicc":b[2][2552],"japanese":b[2][2553],"persian":b[2][2554],"roc":b[2][2555]},{"buddhist":b[2][2560],"chinese":b[2][2561],"coptic":b[2][2562],"dangi":b[2][2561],"ethiopic":b[2][2563],"ethioaa":b[2][2564],"generic":b[2][2565],"gregory":b[2][2566],"hebrew":b[2][2567],"indian":b[2][2568],"islamic":b[2][2569],"islamicc":b[2][2569],"japanese":b[2][2570],"persian":b[2][2571],"roc":b[2][2572]},{"buddhist":b[2][2575],"chinese":b[2][2576],"coptic":b[2][2577],"dangi":b[2][2576],"ethiopic":b[2][2578],"ethioaa":b[2][2579],"generic":b[2][2580],"gregory":b[2][2581],"hebrew":b[2][2582],"indian":b[2][2583],"islamic":b[2][2584],"islamicc":b[2][2584],"japanese":b[2][2585],"persian":b[2][2586],"roc":b[2][2587]},{"buddhist":b[2][2589],"chinese":b[2][2590],"coptic":b[2][2591],"dangi":b[2][2590],"ethiopic":b[2][2592],"ethioaa":b[2][2593],"generic":b[2][2594],"gregory":b[2][2595],"hebrew":b[2][2596],"indian":b[2][2597],"islamic":b[2][2598],"islamicc":b[2][2598],"japanese":b[2][2599],"persian":b[2][2600],"roc":b[2][2601]},{"buddhist":b[2][2603],"chinese":b[2][2604],"coptic":b[2][2605],"dangi":b[2][2604],"ethiopic":b[2][2606],"ethioaa":b[2][2607],"generic":b[2][2608],"gregory":b[2][2609],"hebrew":b[2][2610],"indian":b[2][2611],"islamic":b[2][2612],"islamicc":b[2][2612],"japanese":b[2][2613],"persian":b[2][2614],"roc":b[2][2615]},{"buddhist":b[2][2617],"chinese":b[2][2618],"coptic":b[2][2619],"dangi":b[2][2618],"ethiopic":b[2][2620],"ethioaa":b[2][2621],"generic":b[2][2622],"gregory":b[2][2623],"hebrew":b[2][2624],"indian":b[2][2625],"islamic":b[2][2626],"islamicc":b[2][2626],"japanese":b[2][2627],"persian":b[2][2628],"roc":b[2][2629]},{"buddhist":b[2][2631],"chinese":b[2][2632],"coptic":b[2][2633],"dangi":b[2][2632],"ethiopic":b[2][2634],"ethioaa":b[2][2635],"generic":b[2][2636],"gregory":b[2][2637],"hebrew":b[2][2638],"indian":b[2][2639],"islamic":b[2][2640],"islamicc":b[2][2640],"japanese":b[2][2641],"persian":b[2][2642],"roc":b[2][2643]},{"buddhist":b[2][2646],"chinese":b[2][2647],"coptic":b[2][2648],"dangi":b[2][2647],"ethiopic":b[2][2649],"ethioaa":b[2][2650],"generic":b[2][2651],"gregory":b[2][2652],"hebrew":b[2][2653],"indian":b[2][2654],"islamic":b[2][2655],"islamicc":b[2][2655],"japanese":b[2][2656],"persian":b[2][2657],"roc":b[2][2658]},{"buddhist":b[2][2663],"chinese":b[2][2664],"coptic":b[2][2665],"dangi":b[2][2664],"ethiopic":b[2][2666],"ethioaa":b[2][2667],"generic":b[2][2668],"gregory":b[2][2669],"hebrew":b[2][2670],"indian":b[2][2671],"islamic":b[2][2672],"islamicc":b[2][2672],"japanese":b[2][2673],"persian":b[2][2674],"roc":b[2][2675]},{"buddhist":b[2][2677],"chinese":b[2][2678],"coptic":b[2][2679],"dangi":b[2][2678],"ethiopic":b[2][2680],"ethioaa":b[2][2681],"generic":b[2][2682],"gregory":b[2][2683],"hebrew":b[2][2684],"indian":b[2][2685],"islamic":b[2][2686],"islamicc":b[2][2686],"japanese":b[2][2687],"persian":b[2][2688],"roc":b[2][2689]},{"buddhist":b[2][2691],"chinese":b[2][2692],"coptic":b[2][2693],"dangi":b[2][2692],"ethiopic":b[2][2694],"ethioaa":b[2][2695],"generic":b[2][2696],"gregory":b[2][2697],"hebrew":b[2][2698],"indian":b[2][2699],"islamic":b[2][2700],"islamicc":b[2][2700],"japanese":b[2][2701],"persian":b[2][2702],"roc":b[2][2703]},{"buddhist":b[2][2705],"chinese":b[2][2706],"coptic":b[2][2707],"dangi":b[2][2706],"ethiopic":b[2][2708],"ethioaa":b[2][2709],"generic":b[2][2710],"gregory":b[2][2711],"hebrew":b[2][2712],"indian":b[2][2713],"islamic":b[2][2714],"islamicc":b[2][2714],"japanese":b[2][2715],"persian":b[2][2716],"roc":b[2][2717]},{"buddhist":b[2][2718],"chinese":b[2][2719],"coptic":b[2][2720],"dangi":b[2][2719],"ethiopic":b[2][2721],"ethioaa":b[2][2722],"generic":b[2][2723],"gregory":b[2][2724],"hebrew":b[2][2725],"indian":b[2][2726],"islamic":b[2][2727],"islamicc":b[2][2727],"japanese":b[2][2728],"persian":b[2][2729],"roc":b[2][2730]},{"buddhist":b[2][2732],"chinese":b[2][2733],"coptic":b[2][2734],"dangi":b[2][2733],"ethiopic":b[2][2735],"ethioaa":b[2][2736],"generic":b[2][2737],"gregory":b[2][2738],"hebrew":b[2][2739],"indian":b[2][2740],"islamic":b[2][2741],"islamicc":b[2][2741],"japanese":b[2][2742],"persian":b[2][2743],"roc":b[2][2744]},{"buddhist":b[2][2746],"chinese":b[2][2747],"coptic":b[2][2748],"dangi":b[2][2747],"ethiopic":b[2][2749],"ethioaa":b[2][2750],"generic":b[2][2751],"gregory":b[2][2752],"hebrew":b[2][2753],"indian":b[2][2754],"islamic":b[2][2755],"islamicc":b[2][2755],"japanese":b[2][2756],"persian":b[2][2757],"roc":b[2][2758]},{"buddhist":b[2][2760],"chinese":b[2][2761],"coptic":b[2][2762],"dangi":b[2][2761],"ethiopic":b[2][2763],"ethioaa":b[2][2764],"generic":b[2][2765],"gregory":b[2][2766],"hebrew":b[2][2767],"indian":b[2][2768],"islamic":b[2][2769],"islamicc":b[2][2769],"japanese":b[2][2770],"persian":b[2][2771],"roc":b[2][2772]},{"buddhist":b[2][2774],"chinese":b[2][2775],"coptic":b[2][2776],"dangi":b[2][2775],"ethiopic":b[2][2777],"ethioaa":b[2][2778],"generic":b[2][2779],"gregory":b[2][2780],"hebrew":b[2][2781],"indian":b[2][2782],"islamic":b[2][2783],"islamicc":b[2][2783],"japanese":b[2][2784],"persian":b[2][2785],"roc":b[2][2786]},{"buddhist":b[2][2787],"chinese":b[2][2788],"coptic":b[2][2789],"dangi":b[2][2788],"ethiopic":b[2][2790],"ethioaa":b[2][2791],"generic":b[2][2792],"gregory":b[2][2793],"hebrew":b[2][2794],"indian":b[2][2795],"islamic":b[2][2796],"islamicc":b[2][2796],"japanese":b[2][2797],"persian":b[2][2798],"roc":b[2][2799]},{"buddhist":b[2][2800],"chinese":b[2][2801],"coptic":b[2][2802],"dangi":b[2][2801],"ethiopic":b[2][2803],"ethioaa":b[2][2804],"generic":b[2][2805],"gregory":b[2][2806],"hebrew":b[2][2807],"indian":b[2][2808],"islamic":b[2][2809],"islamicc":b[2][2809],"japanese":b[2][2810],"persian":b[2][2811],"roc":b[2][2812]},{"buddhist":b[2][2814],"chinese":b[2][2815],"coptic":b[2][2816],"dangi":b[2][2815],"ethiopic":b[2][2817],"ethioaa":b[2][2818],"generic":b[2][2819],"gregory":b[2][2820],"hebrew":b[2][2821],"indian":b[2][2822],"islamic":b[2][2823],"islamicc":b[2][2823],"japanese":b[2][2824],"persian":b[2][2825],"roc":b[2][2826]},{"buddhist":b[2][2828],"chinese":b[2][2829],"coptic":b[2][2830],"dangi":b[2][2829],"ethiopic":b[2][2831],"ethioaa":b[2][2832],"generic":b[2][2833],"gregory":b[2][2834],"hebrew":b[2][2835],"indian":b[2][2836],"islamic":b[2][2837],"islamicc":b[2][2837],"japanese":b[2][2838],"persian":b[2][2839],"roc":b[2][2840]},{"buddhist":b[2][2843],"chinese":b[2][2844],"coptic":b[2][2845],"dangi":b[2][2844],"ethiopic":b[2][2846],"ethioaa":b[2][2847],"generic":b[2][2848],"gregory":b[2][2849],"hebrew":b[2][2850],"indian":b[2][2851],"islamic":b[2][2852],"islamicc":b[2][2852],"japanese":b[2][2853],"persian":b[2][2854],"roc":b[2][2855]},{"buddhist":b[2][2857],"chinese":b[2][2858],"coptic":b[2][2859],"dangi":b[2][2858],"ethiopic":b[2][2860],"ethioaa":b[2][2861],"generic":b[2][2862],"gregory":b[2][2863],"hebrew":b[2][2864],"indian":b[2][2865],"islamic":b[2][2866],"islamicc":b[2][2866],"japanese":b[2][2867],"persian":b[2][2868],"roc":b[2][2869]},{"buddhist":b[2][2871],"chinese":b[2][2872],"coptic":b[2][2873],"dangi":b[2][2872],"ethiopic":b[2][2874],"ethioaa":b[2][2875],"generic":b[2][2876],"gregory":b[2][2877],"hebrew":b[2][2878],"indian":b[2][2879],"islamic":b[2][2880],"islamicc":b[2][2880],"japanese":b[2][2881],"persian":b[2][2882],"roc":b[2][2883]},{"buddhist":b[2][2885],"chinese":b[2][2886],"coptic":b[2][2887],"dangi":b[2][2886],"ethiopic":b[2][2888],"ethioaa":b[2][2889],"generic":b[2][2890],"gregory":b[2][2891],"hebrew":b[2][2892],"indian":b[2][2893],"islamic":b[2][2894],"islamicc":b[2][2894],"japanese":b[2][2895],"persian":b[2][2896],"roc":b[2][2897]},{"buddhist":b[2][2899],"chinese":b[2][2900],"coptic":b[2][2901],"dangi":b[2][2900],"ethiopic":b[2][2902],"ethioaa":b[2][2903],"generic":b[2][2904],"gregory":b[2][2905],"hebrew":b[2][2906],"indian":b[2][2907],"islamic":b[2][2908],"islamicc":b[2][2908],"japanese":b[2][2909],"persian":b[2][2910],"roc":b[2][2911]},{"buddhist":b[2][2912],"chinese":b[2][2913],"coptic":b[2][2914],"dangi":b[2][2913],"ethiopic":b[2][2915],"ethioaa":b[2][2916],"generic":b[2][2917],"gregory":b[2][2918],"hebrew":b[2][2919],"indian":b[2][2920],"islamic":b[2][2921],"islamicc":b[2][2921],"japanese":b[2][2922],"persian":b[2][2923],"roc":b[2][2924]},{"buddhist":b[2][2926],"chinese":b[2][2927],"coptic":b[2][2928],"dangi":b[2][2927],"ethiopic":b[2][2929],"ethioaa":b[2][2930],"generic":b[2][2931],"gregory":b[2][2932],"hebrew":b[2][2933],"indian":b[2][2934],"islamic":b[2][2935],"islamicc":b[2][2935],"japanese":b[2][2936],"persian":b[2][2937],"roc":b[2][2938]},{"buddhist":b[2][2940],"chinese":b[2][2941],"coptic":b[2][2942],"dangi":b[2][2941],"ethiopic":b[2][2943],"ethioaa":b[2][2944],"generic":b[2][2945],"gregory":b[2][2946],"hebrew":b[2][2947],"indian":b[2][2948],"islamic":b[2][2949],"islamicc":b[2][2949],"japanese":b[2][2950],"persian":b[2][2951],"roc":b[2][2952]},{"buddhist":b[2][2954],"chinese":b[2][2955],"coptic":b[2][2956],"dangi":b[2][2955],"ethiopic":b[2][2957],"ethioaa":b[2][2958],"generic":b[2][2959],"gregory":b[2][2960],"hebrew":b[2][2961],"indian":b[2][2962],"islamic":b[2][2963],"islamicc":b[2][2963],"japanese":b[2][2964],"persian":b[2][2965],"roc":b[2][2966]},{"buddhist":b[2][2967],"chinese":b[2][2968],"coptic":b[2][2969],"dangi":b[2][2968],"ethiopic":b[2][2970],"ethioaa":b[2][2971],"generic":b[2][2972],"gregory":b[2][2973],"hebrew":b[2][2974],"indian":b[2][2975],"islamic":b[2][2976],"islamicc":b[2][2976],"japanese":b[2][2977],"persian":b[2][2978],"roc":b[2][2979]},{"buddhist":b[2][2980],"chinese":b[2][2981],"coptic":b[2][2982],"dangi":b[2][2981],"ethiopic":b[2][2983],"ethioaa":b[2][2984],"generic":b[2][2985],"gregory":b[2][2986],"hebrew":b[2][2987],"indian":b[2][2988],"islamic":b[2][2989],"islamicc":b[2][2989],"japanese":b[2][2990],"persian":b[2][2991],"roc":b[2][2992]},{"buddhist":b[2][2993],"chinese":b[2][2994],"coptic":b[2][2995],"dangi":b[2][2994],"ethiopic":b[2][2996],"ethioaa":b[2][2997],"generic":b[2][2998],"gregory":b[2][2999],"hebrew":b[2][3000],"indian":b[2][3001],"islamic":b[2][3002],"islamicc":b[2][3002],"japanese":b[2][3003],"persian":b[2][3004],"roc":b[2][3005]},{"buddhist":b[2][3006],"chinese":b[2][3007],"coptic":b[2][3008],"dangi":b[2][3007],"ethiopic":b[2][3009],"ethioaa":b[2][3010],"generic":b[2][3011],"gregory":b[2][3012],"hebrew":b[2][3013],"indian":b[2][3014],"islamic":b[2][3015],"islamicc":b[2][3015],"japanese":b[2][3016],"persian":b[2][3017],"roc":b[2][3018]},{"buddhist":b[2][3020],"chinese":b[2][3021],"coptic":b[2][3022],"dangi":b[2][3021],"ethiopic":b[2][3022],"ethioaa":b[2][3023],"generic":b[2][3024],"gregory":b[2][3025],"hebrew":b[2][3026],"indian":b[2][3027],"islamic":b[2][3028],"islamicc":b[2][3028],"japanese":b[2][3029],"persian":b[2][3030],"roc":b[2][3031]},{"buddhist":b[2][3036],"chinese":b[2][3037],"coptic":b[2][3038],"dangi":b[2][3039],"ethiopic":b[2][3038],"ethioaa":b[2][3040],"generic":b[2][3041],"gregory":b[2][3042],"hebrew":b[2][3043],"indian":b[2][3044],"islamic":b[2][3045],"islamicc":b[2][3045],"japanese":b[2][3046],"persian":b[2][3047],"roc":b[2][3048]},{"buddhist":b[2][3036],"chinese":b[2][3039],"coptic":b[2][3038],"dangi":b[2][3039],"ethiopic":b[2][3038],"ethioaa":b[2][3040],"generic":b[2][3041],"gregory":b[2][3050],"hebrew":b[2][3043],"indian":b[2][3044],"islamic":b[2][3045],"islamicc":b[2][3045],"japanese":b[2][3046],"persian":b[2][3047],"roc":b[2][3048]},{"buddhist":b[2][3053],"chinese":b[2][3054],"coptic":b[2][3055],"dangi":b[2][3054],"ethiopic":b[2][3056],"ethioaa":b[2][3057],"generic":b[2][3058],"gregory":b[2][3059],"hebrew":b[2][3060],"indian":b[2][3061],"islamic":b[2][3062],"islamicc":b[2][3062],"japanese":b[2][3063],"persian":b[2][3064],"roc":b[2][3065]}];b[4]=[{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][0],"calendars":b[3][0]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][23],"calendars":b[3][1]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][29],"calendars":b[3][2]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][34],"calendars":b[3][3]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][38],"calendars":b[3][4]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][43],"calendars":b[3][5]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][43],"calendars":b[3][6]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][43],"calendars":b[3][7]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][63],"calendars":b[3][5]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][43],"calendars":b[3][8]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][43],"calendars":b[3][9]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][66],"calendars":b[3][5]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][66],"calendars":b[3][10]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][43],"calendars":b[3][11]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][69],"calendars":b[3][12]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][75],"calendars":b[3][13]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][80],"calendars":b[3][14]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][91],"calendars":b[3][15]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][69],"calendars":b[3][16]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][97],"calendars":b[3][17]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][100],"calendars":b[3][18]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][105],"calendars":b[3][19]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][109],"calendars":b[3][20]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][75],"calendars":b[3][21]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][116],"calendars":b[3][22]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][123],"calendars":b[3][23]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][127],"calendars":b[3][24]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][137],"calendars":b[3][25]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][142],"calendars":b[3][26]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][147],"calendars":b[3][27]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][153],"calendars":b[3][28]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][157],"calendars":b[3][29]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][172],"calendars":b[3][30]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][69],"calendars":b[3][31]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][75],"calendars":b[3][32]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][184],"calendars":b[3][33]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][189],"calendars":b[3][34]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][194],"calendars":b[3][35]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][198],"calendars":b[3][36]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][202],"calendars":b[3][36]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][75],"calendars":b[3][37]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][206],"calendars":b[3][38]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][206],"calendars":b[3][39]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][100],"calendars":b[3][40]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][218],"calendars":b[3][41]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][222],"calendars":b[3][42]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][222],"calendars":b[3][43]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][229],"calendars":b[3][44]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][75],"calendars":b[3][45]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][237],"calendars":b[3][46]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][242],"calendars":b[3][46]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][243],"calendars":b[3][47]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][248],"calendars":b[3][0]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][249],"calendars":b[3][0]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][250],"calendars":b[3][48]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][253],"calendars":b[3][0]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][254],"calendars":b[3][0]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][255],"calendars":b[3][0]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][256],"calendars":b[3][0]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][257],"calendars":b[3][0]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][258],"calendars":b[3][0]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][249],"calendars":b[3][49]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][259],"calendars":b[3][0]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][260],"calendars":b[3][50]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][261],"calendars":b[3][0]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][262],"calendars":b[3][0]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][263],"calendars":b[3][0]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][265],"calendars":b[3][0]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][266],"calendars":b[3][0]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][267],"calendars":b[3][0]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][268],"calendars":b[3][0]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][269],"calendars":b[3][0]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][270],"calendars":b[3][0]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][271],"calendars":b[3][51]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][275],"calendars":b[3][52]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][280],"calendars":b[3][53]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][284],"calendars":b[3][53]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][285],"calendars":b[3][53]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][287],"calendars":b[3][53]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][288],"calendars":b[3][54]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][290],"calendars":b[3][53]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][291],"calendars":b[3][53]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][292],"calendars":b[3][55]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][295],"calendars":b[3][56]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][297],"calendars":b[3][57]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][299],"calendars":b[3][52]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][300],"calendars":b[3][53]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][280],"calendars":b[3][58]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][303],"calendars":b[3][59]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][280],"calendars":b[3][57]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][304],"calendars":b[3][60]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][305],"calendars":b[3][61]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][310],"calendars":b[3][62]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][317],"calendars":b[3][63]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][321],"calendars":b[3][64]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][321],"calendars":b[3][65]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][334],"calendars":b[3][66]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][338],"calendars":b[3][66]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][339],"calendars":b[3][67]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][346],"calendars":b[3][68]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][350],"calendars":b[3][69]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][355],"calendars":b[3][70]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][364],"calendars":b[3][70]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][365],"calendars":b[3][70]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][366],"calendars":b[3][70]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][367],"calendars":b[3][70]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][355],"calendars":b[3][71]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][369],"calendars":b[3][72]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][373],"calendars":b[3][73]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][385],"calendars":b[3][74]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][389],"calendars":b[3][75]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][394],"calendars":b[3][76]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][398],"calendars":b[3][77]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][403],"calendars":b[3][78]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][409],"calendars":b[3][79]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][69],"calendars":b[3][80]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][416],"calendars":b[3][81]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][420],"calendars":b[3][81]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[2][1126],"calendars":b[3][82]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][424],"calendars":b[3][83]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][434],"calendars":b[3][84]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][444],"calendars":b[3][85]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][449],"calendars":b[3][86]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][453],"calendars":b[3][87]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][464],"calendars":b[3][88]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][468],"calendars":b[3][89]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][475],"calendars":b[3][90]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][479],"calendars":b[3][91]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][483],"calendars":b[3][92]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][487],"calendars":b[3][93]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][493],"calendars":b[3][93]},{"ca":b[0][0],"hourNo0":false,"hour12":false,"formats":b[1][494],"calendars":b[3][94]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][509],"calendars":b[3][95]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][409],"calendars":b[3][96]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][516],"calendars":b[3][97]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][338],"calendars":b[3][98]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][409],"calendars":b[3][99]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][409],"calendars":b[3][100]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][530],"calendars":b[3][101]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][334],"calendars":b[3][102]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][409],"calendars":b[3][103]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][538],"calendars":b[3][104]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][542],"calendars":b[3][105]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][69],"calendars":b[3][106]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][409],"calendars":b[3][107]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][550],"calendars":b[3][108]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][555],"calendars":b[3][109]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][560],"calendars":b[3][110]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][69],"calendars":b[3][111]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][576],"calendars":b[3][112]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][409],"calendars":b[3][113]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][222],"calendars":b[3][114]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][588],"calendars":b[3][115]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][69],"calendars":b[3][116]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][595],"calendars":b[3][117]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][409],"calendars":b[3][118]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][603],"calendars":b[3][119]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][409],"calendars":b[3][120]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][69],"calendars":b[3][121]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][222],"calendars":b[3][122]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][615],"calendars":b[3][123]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][69],"calendars":b[3][124]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][479],"calendars":b[3][124]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][633],"calendars":b[3][125]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][222],"calendars":b[3][126]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][409],"calendars":b[3][127]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][409],"calendars":b[3][128]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][649],"calendars":b[3][129]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][409],"calendars":b[3][130]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][409],"calendars":b[3][131]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][334],"calendars":b[3][132]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][665],"calendars":b[3][133]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][669],"calendars":b[3][134]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][673],"calendars":b[3][135]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][676],"calendars":b[3][136]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][680],"calendars":b[3][137]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][689],"calendars":b[3][138]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][693],"calendars":b[3][139]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][697],"calendars":b[3][140]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][702],"calendars":b[3][140]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][703],"calendars":b[3][141]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][222],"calendars":b[3][142]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][710],"calendars":b[3][143]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][69],"calendars":b[3][144]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][475],"calendars":b[3][145]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][720],"calendars":b[3][146]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][475],"calendars":b[3][147]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][734],"calendars":b[3][148]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][739],"calendars":b[3][148]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][373],"calendars":b[3][149]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][746],"calendars":b[3][149]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][222],"calendars":b[3][150]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][750],"calendars":b[3][151]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][754],"calendars":b[3][152]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][758],"calendars":b[3][153]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][409],"calendars":b[3][32]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][762],"calendars":b[3][154]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][766],"calendars":b[3][154]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][767],"calendars":b[3][155]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][771],"calendars":b[3][156]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][776],"calendars":b[3][157]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][783],"calendars":b[3][158]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][788],"calendars":b[3][159]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][796],"calendars":b[3][160]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][802],"calendars":b[3][161]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][808],"calendars":b[3][162]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][812],"calendars":b[3][162]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][813],"calendars":b[3][163]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][817],"calendars":b[3][164]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][222],"calendars":b[3][165]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][825],"calendars":b[3][166]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][825],"calendars":b[3][167]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][409],"calendars":b[3][168]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][836],"calendars":b[3][169]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][848],"calendars":b[3][169]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][849],"calendars":b[3][170]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][852],"calendars":b[3][171]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][409],"calendars":b[3][172]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][859],"calendars":b[3][173]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][69],"calendars":b[3][174]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][866],"calendars":b[3][175]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][334],"calendars":b[3][176]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][871],"calendars":b[3][177]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][871],"calendars":b[3][178]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][871],"calendars":b[3][179]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][881],"calendars":b[3][180]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][885],"calendars":b[3][181]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][889],"calendars":b[3][182]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][69],"calendars":b[3][183]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][475],"calendars":b[3][184]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][898],"calendars":b[3][185]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][902],"calendars":b[3][185]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][903],"calendars":b[3][186]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][907],"calendars":b[3][186]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][908],"calendars":b[3][187]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][912],"calendars":b[3][187]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][908],"calendars":b[3][188]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][912],"calendars":b[3][188]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][924],"calendars":b[3][189]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][937],"calendars":b[3][189]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][938],"calendars":b[3][190]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][942],"calendars":b[3][191]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][945],"calendars":b[3][192]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][951],"calendars":b[3][192]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][952],"calendars":b[3][193]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][409],"calendars":b[3][194]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][959],"calendars":b[3][195]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][977],"calendars":b[3][196]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][981],"calendars":b[3][197]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][984],"calendars":b[3][198]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][987],"calendars":b[3][199]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][992],"calendars":b[3][200]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][1003],"calendars":b[3][200]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][222],"calendars":b[3][201]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][409],"calendars":b[3][202]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][1007],"calendars":b[3][203]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][1015],"calendars":b[3][204]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][1025],"calendars":b[3][205]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][1031],"calendars":b[3][206]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][69],"calendars":b[3][207]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][1039],"calendars":b[3][208]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][475],"calendars":b[3][209]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][1046],"calendars":b[3][210]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][1049],"calendars":b[3][211]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][1054],"calendars":b[3][212]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][409],"calendars":b[3][213]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][222],"calendars":b[3][214]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][1064],"calendars":b[3][215]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][475],"calendars":b[3][216]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][409],"calendars":b[3][217]},{"ca":b[0][0],"hourNo0":true,"hour12":false,"formats":b[1][1073],"calendars":b[3][218]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][1075],"calendars":b[3][219]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][1089],"calendars":b[3][219]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][1090],"calendars":b[3][219]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][1091],"calendars":b[3][219]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][1092],"calendars":b[3][220]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][1108],"calendars":b[3][221]},{"ca":b[0][0],"hourNo0":true,"hour12":true,"formats":b[1][1110],"calendars":b[3][222]}];b[5]=[{"locale":"en","date":b[4][0],"number":b[2][13]},{"locale":"af","date":b[4][1],"number":b[2][27]},{"locale":"af-NA","date":b[4][1],"number":b[2][28]},{"locale":"af-ZA","date":b[4][1],"number":b[2][27]},{"locale":"agq","date":b[4][2],"number":b[2][42]},{"locale":"agq-CM","date":b[4][2],"number":b[2][42]},{"locale":"ak","date":b[4][3],"number":b[2][56]},{"locale":"ak-GH","date":b[4][3],"number":b[2][56]},{"locale":"am","date":b[4][4],"number":b[2][70]},{"locale":"am-ET","date":b[4][4],"number":b[2][70]},{"locale":"ar","date":b[4][5],"number":b[2][84]},{"locale":"ar-001","date":b[4][5],"number":b[2][84]},{"locale":"ar-AE","date":b[4][6],"number":b[2][84]},{"locale":"ar-BH","date":b[4][5],"number":b[2][84]},{"locale":"ar-DJ","date":b[4][5],"number":b[2][86]},{"locale":"ar-DZ","date":b[4][7],"number":b[2][91]},{"locale":"ar-EG","date":b[4][5],"number":b[2][84]},{"locale":"ar-EH","date":b[4][5],"number":b[2][92]},{"locale":"ar-ER","date":b[4][5],"number":b[2][93]},{"locale":"ar-IL","date":b[4][8],"number":b[2][84]},{"locale":"ar-IQ","date":b[4][9],"number":b[2][84]},{"locale":"ar-JO","date":b[4][10],"number":b[2][84]},{"locale":"ar-KM","date":b[4][11],"number":b[2][84]},{"locale":"ar-KW","date":b[4][5],"number":b[2][84]},{"locale":"ar-LB","date":b[4][10],"number":b[2][102]},{"locale":"ar-LY","date":b[4][5],"number":b[2][91]},{"locale":"ar-MA","date":b[4][12],"number":b[2][91]},{"locale":"ar-MR","date":b[4][13],"number":b[2][111]},{"locale":"ar-OM","date":b[4][5],"number":b[2][84]},{"locale":"ar-PS","date":b[4][10],"number":b[2][84]},{"locale":"ar-QA","date":b[4][5],"number":b[2][84]},{"locale":"ar-SA","date":b[4][5],"number":b[2][84]},{"locale":"ar-SD","date":b[4][5],"number":b[2][84]},{"locale":"ar-SO","date":b[4][5],"number":b[2][112]},{"locale":"ar-SS","date":b[4][5],"number":b[2][113]},{"locale":"ar-SY","date":b[4][10],"number":b[2][84]},{"locale":"ar-TD","date":b[4][5],"number":b[2][84]},{"locale":"ar-TN","date":b[4][7],"number":b[2][91]},{"locale":"ar-YE","date":b[4][5],"number":b[2][84]},{"locale":"as","date":b[4][14],"number":b[2][127]},{"locale":"as-IN","date":b[4][14],"number":b[2][127]},{"locale":"asa","date":b[4][15],"number":b[2][141]},{"locale":"asa-TZ","date":b[4][15],"number":b[2][141]},{"locale":"ast","date":b[4][16],"number":b[2][155]},{"locale":"ast-ES","date":b[4][16],"number":b[2][155]},{"locale":"az","date":b[4][17],"number":b[2][169]},{"locale":"az-Arab","date":b[4][18],"number":b[2][183]},{"locale":"az-Cyrl","date":b[4][19],"number":b[2][197]},{"locale":"az-Cyrl-AZ","date":b[4][19],"number":b[2][197]},{"locale":"az-Latn","date":b[4][17],"number":b[2][169]},{"locale":"az-Latn-AZ","date":b[4][17],"number":b[2][169]},{"locale":"bas","date":b[4][20],"number":b[2][211]},{"locale":"bas-CM","date":b[4][20],"number":b[2][211]},{"locale":"be","date":b[4][21],"number":b[2][225]},{"locale":"be-BY","date":b[4][21],"number":b[2][225]},{"locale":"bem","date":b[4][22],"number":b[2][239]},{"locale":"bem-ZM","date":b[4][22],"number":b[2][239]},{"locale":"bez","date":b[4][23],"number":b[2][253]},{"locale":"bez-TZ","date":b[4][23],"number":b[2][253]},{"locale":"bg","date":b[4][24],"number":b[2][267]},{"locale":"bg-BG","date":b[4][24],"number":b[2][267]},{"locale":"bm","date":b[4][25],"number":b[2][281]},{"locale":"bm-ML","date":b[4][25],"number":b[2][281]},{"locale":"bm-Nkoo","date":b[4][18],"number":b[2][183]},{"locale":"bn","date":b[4][26],"number":b[2][295]},{"locale":"bn-BD","date":b[4][26],"number":b[2][295]},{"locale":"bn-IN","date":b[4][26],"number":b[2][295]},{"locale":"bo","date":b[4][27],"number":b[2][309]},{"locale":"bo-CN","date":b[4][27],"number":b[2][309]},{"locale":"bo-IN","date":b[4][27],"number":b[2][310]},{"locale":"br","date":b[4][28],"number":b[2][324]},{"locale":"br-FR","date":b[4][28],"number":b[2][324]},{"locale":"brx","date":b[4][29],"number":b[2][338]},{"locale":"brx-IN","date":b[4][29],"number":b[2][338]},{"locale":"bs","date":b[4][30],"number":b[2][352]},{"locale":"bs-Cyrl","date":b[4][31],"number":b[2][366]},{"locale":"bs-Cyrl-BA","date":b[4][31],"number":b[2][366]},{"locale":"bs-Latn","date":b[4][30],"number":b[2][352]},{"locale":"bs-Latn-BA","date":b[4][30],"number":b[2][352]},{"locale":"ca","date":b[4][32],"number":b[2][380]},{"locale":"ca-AD","date":b[4][32],"number":b[2][380]},{"locale":"ca-ES","date":b[4][32],"number":b[2][380]},{"locale":"ca-ES-VALENCIA","date":b[4][32],"number":b[2][380]},{"locale":"ca-FR","date":b[4][32],"number":b[2][381]},{"locale":"ca-IT","date":b[4][32],"number":b[2][380]},{"locale":"ce","date":b[4][33],"number":b[2][395]},{"locale":"ce-RU","date":b[4][33],"number":b[2][395]},{"locale":"cgg","date":b[4][34],"number":b[2][409]},{"locale":"cgg-UG","date":b[4][34],"number":b[2][409]},{"locale":"chr","date":b[4][35],"number":b[2][423]},{"locale":"chr-US","date":b[4][35],"number":b[2][423]},{"locale":"ckb","date":b[4][18],"number":b[2][424]},{"locale":"ckb-IQ","date":b[4][18],"number":b[2][424]},{"locale":"ckb-IR","date":b[4][18],"number":b[2][424]},{"locale":"cs","date":b[4][36],"number":b[2][438]},{"locale":"cs-CZ","date":b[4][36],"number":b[2][438]},{"locale":"cu","date":b[4][18],"number":b[2][439]},{"locale":"cu-RU","date":b[4][18],"number":b[2][439]},{"locale":"cy","date":b[4][37],"number":b[2][453]},{"locale":"cy-GB","date":b[4][37],"number":b[2][453]},{"locale":"da","date":b[4][38],"number":b[2][467]},{"locale":"da-DK","date":b[4][38],"number":b[2][467]},{"locale":"da-GL","date":b[4][39],"number":b[2][467]},{"locale":"dav","date":b[4][40],"number":b[2][481]},{"locale":"dav-KE","date":b[4][40],"number":b[2][481]},{"locale":"de","date":b[4][41],"number":b[2][495]},{"locale":"de-AT","date":b[4][42],"number":b[2][500]},{"locale":"de-BE","date":b[4][41],"number":b[2][495]},{"locale":"de-CH","date":b[4][41],"number":b[2][501]},{"locale":"de-DE","date":b[4][41],"number":b[2][495]},{"locale":"de-LI","date":b[4][41],"number":b[2][502]},{"locale":"de-LU","date":b[4][41],"number":b[2][503]},{"locale":"dje","date":b[4][43],"number":b[2][517]},{"locale":"dje-NE","date":b[4][43],"number":b[2][517]},{"locale":"dsb","date":b[4][44],"number":b[2][531]},{"locale":"dsb-DE","date":b[4][44],"number":b[2][531]},{"locale":"dua","date":b[4][45],"number":b[2][211]},{"locale":"dua-CM","date":b[4][45],"number":b[2][211]},{"locale":"dyo","date":b[4][46],"number":b[2][558]},{"locale":"dyo-SN","date":b[4][46],"number":b[2][558]},{"locale":"dz","date":b[4][47],"number":b[2][572]},{"locale":"dz-BT","date":b[4][47],"number":b[2][572]},{"locale":"ebu","date":b[4][48],"number":b[2][481]},{"locale":"ebu-KE","date":b[4][48],"number":b[2][481]},{"locale":"ee","date":b[4][49],"number":b[2][599]},{"locale":"ee-GH","date":b[4][49],"number":b[2][599]},{"locale":"ee-TG","date":b[4][50],"number":b[2][599]},{"locale":"el","date":b[4][51],"number":b[2][613]},{"locale":"el-CY","date":b[4][51],"number":b[2][613]},{"locale":"el-GR","date":b[4][51],"number":b[2][613]},{"locale":"en-001","date":b[4][52],"number":b[2][281]},{"locale":"en-150","date":b[4][53],"number":b[2][614]},{"locale":"en-AG","date":b[4][52],"number":b[2][615]},{"locale":"en-AI","date":b[4][53],"number":b[2][615]},{"locale":"en-AS","date":b[4][0],"number":b[2][13]},{"locale":"en-AT","date":b[4][53],"number":b[2][616]},{"locale":"en-AU","date":b[4][54],"number":b[2][630]},{"locale":"en-BB","date":b[4][52],"number":b[2][631]},{"locale":"en-BE","date":b[4][55],"number":b[2][614]},{"locale":"en-BI","date":b[4][0],"number":b[2][632]},{"locale":"en-BM","date":b[4][52],"number":b[2][633]},{"locale":"en-BS","date":b[4][52],"number":b[2][634]},{"locale":"en-BW","date":b[4][56],"number":b[2][635]},{"locale":"en-BZ","date":b[4][57],"number":b[2][636]},{"locale":"en-CA","date":b[4][58],"number":b[2][637]},{"locale":"en-CC","date":b[4][53],"number":b[2][638]},{"locale":"en-CH","date":b[4][53],"number":b[2][639]},{"locale":"en-CK","date":b[4][53],"number":b[2][640]},{"locale":"en-CM","date":b[4][53],"number":b[2][281]},{"locale":"en-CX","date":b[4][53],"number":b[2][638]},{"locale":"en-CY","date":b[4][52],"number":b[2][281]},{"locale":"en-DE","date":b[4][53],"number":b[2][641]},{"locale":"en-DG","date":b[4][53],"number":b[2][281]},{"locale":"en-DK","date":b[4][59],"number":b[2][642]},{"locale":"en-DM","date":b[4][52],"number":b[2][615]},{"locale":"en-Dsrt","date":b[4][18],"number":b[2][183]},{"locale":"en-ER","date":b[4][52],"number":b[2][643]},{"locale":"en-FI","date":b[4][60],"number":b[2][211]},{"locale":"en-FJ","date":b[4][52],"number":b[2][644]},{"locale":"en-FK","date":b[4][53],"number":b[2][645]},{"locale":"en-FM","date":b[4][52],"number":b[2][281]},{"locale":"en-GB","date":b[4][61],"number":b[2][281]},{"locale":"en-GD","date":b[4][52],"number":b[2][615]},{"locale":"en-GG","date":b[4][53],"number":b[2][281]},{"locale":"en-GH","date":b[4][52],"number":b[2][56]},{"locale":"en-GI","date":b[4][53],"number":b[2][659]},{"locale":"en-GM","date":b[4][52],"number":b[2][660]},{"locale":"en-GU","date":b[4][0],"number":b[2][13]},{"locale":"en-GY","date":b[4][52],"number":b[2][661]},{"locale":"en-HK","date":b[4][62],"number":b[2][281]},{"locale":"en-IE","date":b[4][63],"number":b[2][281]},{"locale":"en-IL","date":b[4][64],"number":b[2][281]},{"locale":"en-IM","date":b[4][53],"number":b[2][281]},{"locale":"en-IN","date":b[4][65],"number":b[2][675]},{"locale":"en-IO","date":b[4][53],"number":b[2][281]},{"locale":"en-JE","date":b[4][53],"number":b[2][281]},{"locale":"en-JM","date":b[4][52],"number":b[2][676]},{"locale":"en-KE","date":b[4][53],"number":b[2][481]},{"locale":"en-KI","date":b[4][52],"number":b[2][638]},{"locale":"en-KN","date":b[4][52],"number":b[2][615]},{"locale":"en-KY","date":b[4][52],"number":b[2][677]},{"locale":"en-LC","date":b[4][52],"number":b[2][615]},{"locale":"en-LR","date":b[4][52],"number":b[2][678]},{"locale":"en-LS","date":b[4][52],"number":b[2][679]},{"locale":"en-MG","date":b[4][53],"number":b[2][680]},{"locale":"en-MH","date":b[4][0],"number":b[2][13]},{"locale":"en-MO","date":b[4][52],"number":b[2][681]},{"locale":"en-MP","date":b[4][0],"number":b[2][13]},{"locale":"en-MS","date":b[4][53],"number":b[2][615]},{"locale":"en-MT","date":b[4][66],"number":b[2][682]},{"locale":"en-MU","date":b[4][53],"number":b[2][683]},{"locale":"en-MW","date":b[4][52],"number":b[2][684]},{"locale":"en-MY","date":b[4][52],"number":b[2][685]},{"locale":"en-NA","date":b[4][52],"number":b[2][686]},{"locale":"en-NF","date":b[4][53],"number":b[2][638]},{"locale":"en-NG","date":b[4][52],"number":b[2][687]},{"locale":"en-NL","date":b[4][53],"number":b[2][688]},{"locale":"en-NR","date":b[4][53],"number":b[2][638]},{"locale":"en-NU","date":b[4][53],"number":b[2][640]},{"locale":"en-NZ","date":b[4][67],"number":b[2][640]},{"locale":"en-PG","date":b[4][52],"number":b[2][689]},{"locale":"en-PH","date":b[4][52],"number":b[2][690]},{"locale":"en-PK","date":b[4][68],"number":b[2][691]},{"locale":"en-PN","date":b[4][53],"number":b[2][640]},{"locale":"en-PR","date":b[4][0],"number":b[2][13]},{"locale":"en-PW","date":b[4][52],"number":b[2][281]},{"locale":"en-RW","date":b[4][53],"number":b[2][692]},{"locale":"en-SB","date":b[4][52],"number":b[2][693]},{"locale":"en-SC","date":b[4][53],"number":b[2][694]},{"locale":"en-SD","date":b[4][52],"number":b[2][281]},{"locale":"en-SE","date":b[4][69],"number":b[2][695]},{"locale":"en-SG","date":b[4][70],"number":b[2][696]},{"locale":"en-SH","date":b[4][53],"number":b[2][697]},{"locale":"en-SI","date":b[4][53],"number":b[2][614]},{"locale":"en-SL","date":b[4][52],"number":b[2][698]},{"locale":"en-SS","date":b[4][52],"number":b[2][699]},{"locale":"en-SX","date":b[4][53],"number":b[2][700]},{"locale":"en-SZ","date":b[4][52],"number":b[2][701]},{"locale":"en-Shaw","date":b[4][18],"number":b[2][183]},{"locale":"en-TC","date":b[4][52],"number":b[2][281]},{"locale":"en-TK","date":b[4][53],"number":b[2][640]},{"locale":"en-TO","date":b[4][52],"number":b[2][702]},{"locale":"en-TT","date":b[4][52],"number":b[2][703]},{"locale":"en-TV","date":b[4][53],"number":b[2][638]},{"locale":"en-TZ","date":b[4][53],"number":b[2][704]},{"locale":"en-UG","date":b[4][53],"number":b[2][409]},{"locale":"en-UM","date":b[4][0],"number":b[2][13]},{"locale":"en-US","date":b[4][0],"number":b[2][13]},{"locale":"en-VC","date":b[4][52],"number":b[2][615]},{"locale":"en-VG","date":b[4][52],"number":b[2][281]},{"locale":"en-VI","date":b[4][0],"number":b[2][13]},{"locale":"en-VU","date":b[4][52],"number":b[2][705]},{"locale":"en-WS","date":b[4][52],"number":b[2][706]},{"locale":"en-ZA","date":b[4][71],"number":b[2][707]},{"locale":"en-ZM","date":b[4][52],"number":b[2][239]},{"locale":"en-ZW","date":b[4][72],"number":b[2][281]},{"locale":"eo","date":b[4][73],"number":b[2][721]},{"locale":"eo-001","date":b[4][73],"number":b[2][721]},{"locale":"es","date":b[4][74],"number":b[2][735]},{"locale":"es-419","date":b[4][75],"number":b[2][749]},{"locale":"es-AR","date":b[4][76],"number":b[2][750]},{"locale":"es-BO","date":b[4][75],"number":b[2][751]},{"locale":"es-CL","date":b[4][77],"number":b[2][752]},{"locale":"es-CO","date":b[4][78],"number":b[2][753]},{"locale":"es-CR","date":b[4][75],"number":b[2][754]},{"locale":"es-CU","date":b[4][75],"number":b[2][755]},{"locale":"es-DO","date":b[4][79],"number":b[2][757]},{"locale":"es-EA","date":b[4][74],"number":b[2][735]},{"locale":"es-EC","date":b[4][75],"number":b[2][758]},{"locale":"es-ES","date":b[4][74],"number":b[2][735]},{"locale":"es-GQ","date":b[4][74],"number":b[2][759]},{"locale":"es-GT","date":b[4][80],"number":b[2][760]},{"locale":"es-HN","date":b[4][81],"number":b[2][761]},{"locale":"es-IC","date":b[4][74],"number":b[2][735]},{"locale":"es-MX","date":b[4][82],"number":b[2][775]},{"locale":"es-NI","date":b[4][75],"number":b[2][776]},{"locale":"es-PA","date":b[4][83],"number":b[2][781]},{"locale":"es-PE","date":b[4][84],"number":b[2][786]},{"locale":"es-PH","date":b[4][85],"number":b[2][787]},{"locale":"es-PR","date":b[4][86],"number":b[2][788]},{"locale":"es-PY","date":b[4][87],"number":b[2][793]},{"locale":"es-SV","date":b[4][75],"number":b[2][788]},{"locale":"es-US","date":b[4][88],"number":b[2][807]},{"locale":"es-UY","date":b[4][89],"number":b[2][808]},{"locale":"es-VE","date":b[4][90],"number":b[2][822]},{"locale":"et","date":b[4][91],"number":b[2][836]},{"locale":"et-EE","date":b[4][91],"number":b[2][836]},{"locale":"eu","date":b[4][92],"number":b[2][850]},{"locale":"eu-ES","date":b[4][92],"number":b[2][850]},{"locale":"ewo","date":b[4][93],"number":b[2][558]},{"locale":"ewo-CM","date":b[4][93],"number":b[2][558]},{"locale":"fa","date":b[4][94],"number":b[2][877]},{"locale":"fa-AF","date":b[4][95],"number":b[2][877]},{"locale":"fa-IR","date":b[4][94],"number":b[2][877]},{"locale":"ff","date":b[4][96],"number":b[2][558]},{"locale":"ff-CM","date":b[4][96],"number":b[2][558]},{"locale":"ff-GN","date":b[4][96],"number":b[2][896]},{"locale":"ff-MR","date":b[4][97],"number":b[2][897]},{"locale":"ff-SN","date":b[4][96],"number":b[2][558]},{"locale":"fi","date":b[4][98],"number":b[2][911]},{"locale":"fi-FI","date":b[4][98],"number":b[2][911]},{"locale":"fil","date":b[4][99],"number":b[2][925]},{"locale":"fil-PH","date":b[4][99],"number":b[2][925]},{"locale":"fo","date":b[4][100],"number":b[2][939]},{"locale":"fo-DK","date":b[4][100],"number":b[2][940]},{"locale":"fo-FO","date":b[4][100],"number":b[2][939]},{"locale":"fr","date":b[4][101],"number":b[2][954]},{"locale":"fr-BE","date":b[4][102],"number":b[2][955]},{"locale":"fr-BF","date":b[4][101],"number":b[2][954]},{"locale":"fr-BI","date":b[4][101],"number":b[2][956]},{"locale":"fr-BJ","date":b[4][101],"number":b[2][954]},{"locale":"fr-BL","date":b[4][101],"number":b[2][954]},{"locale":"fr-CA","date":b[4][103],"number":b[2][957]},{"locale":"fr-CD","date":b[4][101],"number":b[2][958]},{"locale":"fr-CF","date":b[4][101],"number":b[2][954]},{"locale":"fr-CG","date":b[4][101],"number":b[2][954]},{"locale":"fr-CH","date":b[4][104],"number":b[2][959]},{"locale":"fr-CI","date":b[4][101],"number":b[2][954]},{"locale":"fr-CM","date":b[4][101],"number":b[2][954]},{"locale":"fr-DJ","date":b[4][105],"number":b[2][960]},{"locale":"fr-DZ","date":b[4][105],"number":b[2][961]},{"locale":"fr-FR","date":b[4][101],"number":b[2][954]},{"locale":"fr-GA","date":b[4][101],"number":b[2][954]},{"locale":"fr-GF","date":b[4][101],"number":b[2][954]},{"locale":"fr-GN","date":b[4][101],"number":b[2][962]},{"locale":"fr-GP","date":b[4][101],"number":b[2][954]},{"locale":"fr-GQ","date":b[4][101],"number":b[2][954]},{"locale":"fr-HT","date":b[4][101],"number":b[2][963]},{"locale":"fr-KM","date":b[4][101],"number":b[2][964]},{"locale":"fr-LU","date":b[4][101],"number":b[2][965]},{"locale":"fr-MA","date":b[4][106],"number":b[2][955]},{"locale":"fr-MC","date":b[4][101],"number":b[2][954]},{"locale":"fr-MF","date":b[4][101],"number":b[2][954]},{"locale":"fr-MG","date":b[4][101],"number":b[2][979]},{"locale":"fr-ML","date":b[4][101],"number":b[2][954]},{"locale":"fr-MQ","date":b[4][101],"number":b[2][954]},{"locale":"fr-MR","date":b[4][105],"number":b[2][980]},{"locale":"fr-MU","date":b[4][101],"number":b[2][981]},{"locale":"fr-NC","date":b[4][101],"number":b[2][954]},{"locale":"fr-NE","date":b[4][101],"number":b[2][954]},{"locale":"fr-PF","date":b[4][101],"number":b[2][954]},{"locale":"fr-PM","date":b[4][101],"number":b[2][954]},{"locale":"fr-RE","date":b[4][101],"number":b[2][954]},{"locale":"fr-RW","date":b[4][101],"number":b[2][982]},{"locale":"fr-SC","date":b[4][101],"number":b[2][983]},{"locale":"fr-SN","date":b[4][101],"number":b[2][954]},{"locale":"fr-SY","date":b[4][105],"number":b[2][984]},{"locale":"fr-TD","date":b[4][105],"number":b[2][954]},{"locale":"fr-TG","date":b[4][101],"number":b[2][954]},{"locale":"fr-TN","date":b[4][105],"number":b[2][985]},{"locale":"fr-VU","date":b[4][105],"number":b[2][986]},{"locale":"fr-WF","date":b[4][101],"number":b[2][954]},{"locale":"fr-YT","date":b[4][101],"number":b[2][954]},{"locale":"fur","date":b[4][107],"number":b[2][1000]},{"locale":"fur-IT","date":b[4][107],"number":b[2][1000]},{"locale":"fy","date":b[4][108],"number":b[2][1014]},{"locale":"fy-NL","date":b[4][108],"number":b[2][1014]},{"locale":"ga","date":b[4][109],"number":b[2][1028]},{"locale":"ga-IE","date":b[4][109],"number":b[2][1028]},{"locale":"gd","date":b[4][110],"number":b[2][1042]},{"locale":"gd-GB","date":b[4][110],"number":b[2][1042]},{"locale":"gl","date":b[4][111],"number":b[2][1056]},{"locale":"gl-ES","date":b[4][111],"number":b[2][1056]},{"locale":"gsw","date":b[4][112],"number":b[2][1070]},{"locale":"gsw-CH","date":b[4][112],"number":b[2][1070]},{"locale":"gsw-FR","date":b[4][112],"number":b[2][1070]},{"locale":"gsw-LI","date":b[4][112],"number":b[2][1070]},{"locale":"gu","date":b[4][113],"number":b[2][1084]},{"locale":"gu-IN","date":b[4][113],"number":b[2][1084]},{"locale":"guz","date":b[4][114],"number":b[2][481]},{"locale":"guz-KE","date":b[4][114],"number":b[2][481]},{"locale":"gv","date":b[4][115],"number":b[2][281]},{"locale":"gv-IM","date":b[4][115],"number":b[2][281]},{"locale":"ha","date":b[4][116],"number":b[2][1124]},{"locale":"ha-Arab","date":b[4][18],"number":b[2][183]},{"locale":"ha-GH","date":b[4][116],"number":b[2][1125]},{"locale":"ha-NE","date":b[4][117],"number":b[2][1124]},{"locale":"ha-NG","date":b[4][116],"number":b[2][1124]},{"locale":"haw","date":b[4][118],"number":b[2][423]},{"locale":"haw-US","date":b[4][118],"number":b[2][423]},{"locale":"he","date":b[4][119],"number":b[2][1153]},{"locale":"he-IL","date":b[4][119],"number":b[2][1153]},{"locale":"hi","date":b[4][120],"number":b[2][1167]},{"locale":"hi-IN","date":b[4][120],"number":b[2][1167]},{"locale":"hr","date":b[4][121],"number":b[2][1181]},{"locale":"hr-BA","date":b[4][121],"number":b[2][1182]},{"locale":"hr-HR","date":b[4][121],"number":b[2][1181]},{"locale":"hsb","date":b[4][122],"number":b[2][531]},{"locale":"hsb-DE","date":b[4][122],"number":b[2][531]},{"locale":"hu","date":b[4][123],"number":b[2][1209]},{"locale":"hu-HU","date":b[4][123],"number":b[2][1209]},{"locale":"hy","date":b[4][124],"number":b[2][1223]},{"locale":"hy-AM","date":b[4][124],"number":b[2][1223]},{"locale":"id","date":b[4][125],"number":b[2][1237]},{"locale":"id-ID","date":b[4][125],"number":b[2][1237]},{"locale":"ig","date":b[4][126],"number":b[2][687]},{"locale":"ig-NG","date":b[4][126],"number":b[2][687]},{"locale":"ii","date":b[4][127],"number":b[2][1264]},{"locale":"ii-CN","date":b[4][127],"number":b[2][1264]},{"locale":"is","date":b[4][128],"number":b[2][1278]},{"locale":"is-IS","date":b[4][128],"number":b[2][1278]},{"locale":"it","date":b[4][129],"number":b[2][1292]},{"locale":"it-CH","date":b[4][130],"number":b[2][1293]},{"locale":"it-IT","date":b[4][129],"number":b[2][1292]},{"locale":"it-SM","date":b[4][129],"number":b[2][1292]},{"locale":"iu-Latn","date":b[4][18],"number":b[2][183]},{"locale":"ja","date":b[4][131],"number":b[2][1307]},{"locale":"ja-JP","date":b[4][131],"number":b[2][1307]},{"locale":"jgo","date":b[4][132],"number":b[2][1000]},{"locale":"jgo-CM","date":b[4][132],"number":b[2][1000]},{"locale":"jmc","date":b[4][133],"number":b[2][704]},{"locale":"jmc-TZ","date":b[4][133],"number":b[2][704]},{"locale":"ka","date":b[4][134],"number":b[2][1347]},{"locale":"ka-GE","date":b[4][134],"number":b[2][1347]},{"locale":"kab","date":b[4][135],"number":b[2][1361]},{"locale":"kab-DZ","date":b[4][135],"number":b[2][1361]},{"locale":"kam","date":b[4][136],"number":b[2][481]},{"locale":"kam-KE","date":b[4][136],"number":b[2][481]},{"locale":"kde","date":b[4][137],"number":b[2][704]},{"locale":"kde-TZ","date":b[4][137],"number":b[2][704]},{"locale":"kea","date":b[4][138],"number":b[2][1401]},{"locale":"kea-CV","date":b[4][138],"number":b[2][1401]},{"locale":"khq","date":b[4][139],"number":b[2][517]},{"locale":"khq-ML","date":b[4][139],"number":b[2][517]},{"locale":"ki","date":b[4][140],"number":b[2][481]},{"locale":"ki-KE","date":b[4][140],"number":b[2][481]},{"locale":"kk","date":b[4][141],"number":b[2][1441]},{"locale":"kk-KZ","date":b[4][141],"number":b[2][1441]},{"locale":"kkj","date":b[4][142],"number":b[2][1000]},{"locale":"kkj-CM","date":b[4][142],"number":b[2][1000]},{"locale":"kl","date":b[4][143],"number":b[2][1468]},{"locale":"kl-GL","date":b[4][143],"number":b[2][1468]},{"locale":"kln","date":b[4][144],"number":b[2][481]},{"locale":"kln-KE","date":b[4][144],"number":b[2][481]},{"locale":"km","date":b[4][145],"number":b[2][1495]},{"locale":"km-KH","date":b[4][145],"number":b[2][1495]},{"locale":"kn","date":b[4][146],"number":b[2][1509]},{"locale":"kn-IN","date":b[4][146],"number":b[2][1509]},{"locale":"ko","date":b[4][147],"number":b[2][1523]},{"locale":"ko-KP","date":b[4][147],"number":b[2][1523]},{"locale":"ko-KR","date":b[4][147],"number":b[2][1523]},{"locale":"kok","date":b[4][148],"number":b[2][338]},{"locale":"kok-IN","date":b[4][148],"number":b[2][338]},{"locale":"ks","date":b[4][149],"number":b[2][1550]},{"locale":"ks-IN","date":b[4][149],"number":b[2][1550]},{"locale":"ksb","date":b[4][150],"number":b[2][253]},{"locale":"ksb-TZ","date":b[4][150],"number":b[2][253]},{"locale":"ksf","date":b[4][151],"number":b[2][558]},{"locale":"ksf-CM","date":b[4][151],"number":b[2][558]},{"locale":"ksh","date":b[4][152],"number":b[2][1590]},{"locale":"ksh-DE","date":b[4][152],"number":b[2][1590]},{"locale":"kw","date":b[4][153],"number":b[2][281]},{"locale":"kw-GB","date":b[4][153],"number":b[2][281]},{"locale":"ky","date":b[4][154],"number":b[2][1617]},{"locale":"ky-KG","date":b[4][154],"number":b[2][1617]},{"locale":"lag","date":b[4][155],"number":b[2][1631]},{"locale":"lag-TZ","date":b[4][155],"number":b[2][1631]},{"locale":"lb","date":b[4][156],"number":b[2][1645]},{"locale":"lb-LU","date":b[4][156],"number":b[2][1645]},{"locale":"lg","date":b[4][157],"number":b[2][1659]},{"locale":"lg-UG","date":b[4][157],"number":b[2][1659]},{"locale":"lkt","date":b[4][158],"number":b[2][1673]},{"locale":"lkt-US","date":b[4][158],"number":b[2][1673]},{"locale":"ln","date":b[4][159],"number":b[2][1687]},{"locale":"ln-AO","date":b[4][159],"number":b[2][1688]},{"locale":"ln-CD","date":b[4][159],"number":b[2][1687]},{"locale":"ln-CF","date":b[4][159],"number":b[2][1687]},{"locale":"ln-CG","date":b[4][159],"number":b[2][1687]},{"locale":"lo","date":b[4][160],"number":b[2][1702]},{"locale":"lo-LA","date":b[4][160],"number":b[2][1702]},{"locale":"lrc","date":b[4][161],"number":b[2][1707]},{"locale":"lrc-IQ","date":b[4][162],"number":b[2][1707]},{"locale":"lrc-IR","date":b[4][161],"number":b[2][1707]},{"locale":"lt","date":b[4][163],"number":b[2][1721]},{"locale":"lt-LT","date":b[4][163],"number":b[2][1721]},{"locale":"lu","date":b[4][164],"number":b[2][1735]},{"locale":"lu-CD","date":b[4][164],"number":b[2][1735]},{"locale":"luo","date":b[4][165],"number":b[2][1749]},{"locale":"luo-KE","date":b[4][165],"number":b[2][1749]},{"locale":"luy","date":b[4][166],"number":b[2][1763]},{"locale":"luy-KE","date":b[4][166],"number":b[2][1763]},{"locale":"lv","date":b[4][167],"number":b[2][1777]},{"locale":"lv-LV","date":b[4][167],"number":b[2][1777]},{"locale":"mas","date":b[4][168],"number":b[2][481]},{"locale":"mas-KE","date":b[4][168],"number":b[2][481]},{"locale":"mas-TZ","date":b[4][168],"number":b[2][1791]},{"locale":"mer","date":b[4][169],"number":b[2][481]},{"locale":"mer-KE","date":b[4][169],"number":b[2][481]},{"locale":"mfe","date":b[4][170],"number":b[2][1818]},{"locale":"mfe-MU","date":b[4][170],"number":b[2][1818]},{"locale":"mg","date":b[4][171],"number":b[2][680]},{"locale":"mg-MG","date":b[4][171],"number":b[2][680]},{"locale":"mgh","date":b[4][172],"number":b[2][1845]},{"locale":"mgh-MZ","date":b[4][172],"number":b[2][1845]},{"locale":"mgo","date":b[4][173],"number":b[2][183]},{"locale":"mgo-CM","date":b[4][173],"number":b[2][183]},{"locale":"mk","date":b[4][174],"number":b[2][1872]},{"locale":"mk-MK","date":b[4][174],"number":b[2][1872]},{"locale":"ml","date":b[4][175],"number":b[2][1886]},{"locale":"ml-IN","date":b[4][175],"number":b[2][1886]},{"locale":"mn","date":b[4][176],"number":b[2][1900]},{"locale":"mn-MN","date":b[4][176],"number":b[2][1900]},{"locale":"mn-Mong","date":b[4][18],"number":b[2][183]},{"locale":"mr","date":b[4][177],"number":b[2][1914]},{"locale":"mr-IN","date":b[4][177],"number":b[2][1914]},{"locale":"ms","date":b[4][178],"number":b[2][1928]},{"locale":"ms-Arab","date":b[4][18],"number":b[2][183]},{"locale":"ms-BN","date":b[4][179],"number":b[2][1929]},{"locale":"ms-MY","date":b[4][178],"number":b[2][1928]},{"locale":"ms-SG","date":b[4][178],"number":b[2][1930]},{"locale":"mt","date":b[4][180],"number":b[2][281]},{"locale":"mt-MT","date":b[4][180],"number":b[2][281]},{"locale":"mua","date":b[4][181],"number":b[2][1957]},{"locale":"mua-CM","date":b[4][181],"number":b[2][1957]},{"locale":"my","date":b[4][182],"number":b[2][1971]},{"locale":"my-MM","date":b[4][182],"number":b[2][1971]},{"locale":"mzn","date":b[4][183],"number":b[2][1976]},{"locale":"mzn-IR","date":b[4][183],"number":b[2][1976]},{"locale":"naq","date":b[4][184],"number":b[2][686]},{"locale":"naq-NA","date":b[4][184],"number":b[2][686]},{"locale":"nb","date":b[4][185],"number":b[2][2003]},{"locale":"nb-NO","date":b[4][185],"number":b[2][2003]},{"locale":"nb-SJ","date":b[4][185],"number":b[2][2003]},{"locale":"nd","date":b[4][186],"number":b[2][281]},{"locale":"nd-ZW","date":b[4][186],"number":b[2][281]},{"locale":"ne","date":b[4][187],"number":b[2][2030]},{"locale":"ne-IN","date":b[4][188],"number":b[2][2030]},{"locale":"ne-NP","date":b[4][187],"number":b[2][2030]},{"locale":"nl","date":b[4][189],"number":b[2][2044]},{"locale":"nl-AW","date":b[4][189],"number":b[2][2045]},{"locale":"nl-BE","date":b[4][190],"number":b[2][2046]},{"locale":"nl-BQ","date":b[4][189],"number":b[2][2047]},{"locale":"nl-CW","date":b[4][189],"number":b[2][2048]},{"locale":"nl-NL","date":b[4][189],"number":b[2][2044]},{"locale":"nl-SR","date":b[4][189],"number":b[2][2049]},{"locale":"nl-SX","date":b[4][189],"number":b[2][2048]},{"locale":"nmg","date":b[4][191],"number":b[2][558]},{"locale":"nmg-CM","date":b[4][191],"number":b[2][558]},{"locale":"nn","date":b[4][192],"number":b[2][2076]},{"locale":"nn-NO","date":b[4][192],"number":b[2][2076]},{"locale":"nnh","date":b[4][193],"number":b[2][1000]},{"locale":"nnh-CM","date":b[4][193],"number":b[2][1000]},{"locale":"nus","date":b[4][194],"number":b[2][699]},{"locale":"nus-SS","date":b[4][194],"number":b[2][699]},{"locale":"nyn","date":b[4][195],"number":b[2][409]},{"locale":"nyn-UG","date":b[4][195],"number":b[2][409]},{"locale":"om","date":b[4][196],"number":b[2][2116]},{"locale":"om-ET","date":b[4][196],"number":b[2][2116]},{"locale":"om-KE","date":b[4][197],"number":b[2][2117]},{"locale":"or","date":b[4][198],"number":b[2][2131]},{"locale":"or-IN","date":b[4][198],"number":b[2][2131]},{"locale":"os","date":b[4][199],"number":b[2][2145]},{"locale":"os-GE","date":b[4][199],"number":b[2][2145]},{"locale":"os-RU","date":b[4][199],"number":b[2][2146]},{"locale":"pa","date":b[4][200],"number":b[2][2160]},{"locale":"pa-Arab","date":b[4][201],"number":b[2][2174]},{"locale":"pa-Arab-PK","date":b[4][201],"number":b[2][2174]},{"locale":"pa-Guru","date":b[4][200],"number":b[2][2160]},{"locale":"pa-Guru-IN","date":b[4][200],"number":b[2][2160]},{"locale":"pl","date":b[4][202],"number":b[2][2188]},{"locale":"pl-PL","date":b[4][202],"number":b[2][2188]},{"locale":"prg","date":b[4][18],"number":b[2][183]},{"locale":"prg-001","date":b[4][18],"number":b[2][183]},{"locale":"ps","date":b[4][203],"number":b[2][2202]},{"locale":"ps-AF","date":b[4][203],"number":b[2][2202]},{"locale":"pt","date":b[4][204],"number":b[2][2216]},{"locale":"pt-AO","date":b[4][205],"number":b[2][2230]},{"locale":"pt-BR","date":b[4][204],"number":b[2][2216]},{"locale":"pt-CV","date":b[4][205],"number":b[2][2231]},{"locale":"pt-GW","date":b[4][205],"number":b[2][2232]},{"locale":"pt-MO","date":b[4][206],"number":b[2][2233]},{"locale":"pt-MZ","date":b[4][205],"number":b[2][2234]},{"locale":"pt-PT","date":b[4][205],"number":b[2][2232]},{"locale":"pt-ST","date":b[4][205],"number":b[2][2235]},{"locale":"pt-TL","date":b[4][205],"number":b[2][2232]},{"locale":"qu","date":b[4][207],"number":b[2][2249]},{"locale":"qu-BO","date":b[4][207],"number":b[2][2250]},{"locale":"qu-EC","date":b[4][207],"number":b[2][2251]},{"locale":"qu-PE","date":b[4][207],"number":b[2][2249]},{"locale":"rm","date":b[4][208],"number":b[2][2265]},{"locale":"rm-CH","date":b[4][208],"number":b[2][2265]},{"locale":"rn","date":b[4][209],"number":b[2][2279]},{"locale":"rn-BI","date":b[4][209],"number":b[2][2279]},{"locale":"ro","date":b[4][210],"number":b[2][2293]},{"locale":"ro-MD","date":b[4][211],"number":b[2][2307]},{"locale":"ro-RO","date":b[4][210],"number":b[2][2293]},{"locale":"rof","date":b[4][212],"number":b[2][704]},{"locale":"rof-TZ","date":b[4][212],"number":b[2][704]},{"locale":"root","date":b[4][18],"number":b[2][183]},{"locale":"ru","date":b[4][213],"number":b[2][2334]},{"locale":"ru-BY","date":b[4][213],"number":b[2][2335]},{"locale":"ru-KG","date":b[4][213],"number":b[2][2336]},{"locale":"ru-KZ","date":b[4][213],"number":b[2][2337]},{"locale":"ru-MD","date":b[4][213],"number":b[2][2338]},{"locale":"ru-RU","date":b[4][213],"number":b[2][2334]},{"locale":"ru-UA","date":b[4][214],"number":b[2][2334]},{"locale":"rw","date":b[4][215],"number":b[2][2352]},{"locale":"rw-RW","date":b[4][215],"number":b[2][2352]},{"locale":"rwk","date":b[4][133],"number":b[2][253]},{"locale":"rwk-TZ","date":b[4][133],"number":b[2][253]},{"locale":"sah","date":b[4][216],"number":b[2][439]},{"locale":"sah-RU","date":b[4][216],"number":b[2][439]},{"locale":"saq","date":b[4][217],"number":b[2][481]},{"locale":"saq-KE","date":b[4][217],"number":b[2][481]},{"locale":"sbp","date":b[4][218],"number":b[2][253]},{"locale":"sbp-TZ","date":b[4][218],"number":b[2][253]},{"locale":"se","date":b[4][219],"number":b[2][2405]},{"locale":"se-FI","date":b[4][219],"number":b[2][2405]},{"locale":"se-NO","date":b[4][219],"number":b[2][2405]},{"locale":"se-SE","date":b[4][219],"number":b[2][2406]},{"locale":"seh","date":b[4][220],"number":b[2][2420]},{"locale":"seh-MZ","date":b[4][220],"number":b[2][2420]},{"locale":"ses","date":b[4][221],"number":b[2][517]},{"locale":"ses-ML","date":b[4][221],"number":b[2][517]},{"locale":"sg","date":b[4][222],"number":b[2][2447]},{"locale":"sg-CF","date":b[4][222],"number":b[2][2447]},{"locale":"shi","date":b[4][223],"number":b[2][42]},{"locale":"shi-Latn","date":b[4][224],"number":b[2][42]},{"locale":"shi-Latn-MA","date":b[4][224],"number":b[2][42]},{"locale":"shi-Tfng","date":b[4][223],"number":b[2][42]},{"locale":"shi-Tfng-MA","date":b[4][223],"number":b[2][42]},{"locale":"si","date":b[4][225],"number":b[2][2487]},{"locale":"si-LK","date":b[4][225],"number":b[2][2487]},{"locale":"sk","date":b[4][226],"number":b[2][2501]},{"locale":"sk-SK","date":b[4][226],"number":b[2][2501]},{"locale":"sl","date":b[4][227],"number":b[2][2515]},{"locale":"sl-SI","date":b[4][227],"number":b[2][2515]},{"locale":"smn","date":b[4][228],"number":b[2][2529]},{"locale":"smn-FI","date":b[4][228],"number":b[2][2529]},{"locale":"sn","date":b[4][229],"number":b[2][281]},{"locale":"sn-ZW","date":b[4][229],"number":b[2][281]},{"locale":"so","date":b[4][230],"number":b[2][2556]},{"locale":"so-DJ","date":b[4][230],"number":b[2][2557]},{"locale":"so-ET","date":b[4][230],"number":b[2][2558]},{"locale":"so-KE","date":b[4][231],"number":b[2][2559]},{"locale":"so-SO","date":b[4][230],"number":b[2][2556]},{"locale":"sq","date":b[4][232],"number":b[2][2573]},{"locale":"sq-AL","date":b[4][232],"number":b[2][2573]},{"locale":"sq-MK","date":b[4][233],"number":b[2][2574]},{"locale":"sq-XK","date":b[4][233],"number":b[2][2573]},{"locale":"sr","date":b[4][234],"number":b[2][2588]},{"locale":"sr-Cyrl","date":b[4][234],"number":b[2][2588]},{"locale":"sr-Cyrl-BA","date":b[4][235],"number":b[2][2588]},{"locale":"sr-Cyrl-ME","date":b[4][234],"number":b[2][2588]},{"locale":"sr-Cyrl-RS","date":b[4][234],"number":b[2][2588]},{"locale":"sr-Cyrl-XK","date":b[4][234],"number":b[2][2588]},{"locale":"sr-Latn","date":b[4][236],"number":b[2][2602]},{"locale":"sr-Latn-BA","date":b[4][237],"number":b[2][2602]},{"locale":"sr-Latn-ME","date":b[4][236],"number":b[2][2602]},{"locale":"sr-Latn-RS","date":b[4][236],"number":b[2][2602]},{"locale":"sr-Latn-XK","date":b[4][236],"number":b[2][2602]},{"locale":"sv","date":b[4][238],"number":b[2][2616]},{"locale":"sv-AX","date":b[4][238],"number":b[2][2616]},{"locale":"sv-FI","date":b[4][239],"number":b[2][2616]},{"locale":"sv-SE","date":b[4][238],"number":b[2][2616]},{"locale":"sw","date":b[4][240],"number":b[2][2630]},{"locale":"sw-CD","date":b[4][241],"number":b[2][2644]},{"locale":"sw-KE","date":b[4][240],"number":b[2][2630]},{"locale":"sw-TZ","date":b[4][240],"number":b[2][2630]},{"locale":"sw-UG","date":b[4][240],"number":b[2][2645]},{"locale":"ta","date":b[4][242],"number":b[2][2659]},{"locale":"ta-IN","date":b[4][242],"number":b[2][2659]},{"locale":"ta-LK","date":b[4][243],"number":b[2][2660]},{"locale":"ta-MY","date":b[4][242],"number":b[2][2661]},{"locale":"ta-SG","date":b[4][242],"number":b[2][2662]},{"locale":"te","date":b[4][244],"number":b[2][2676]},{"locale":"te-IN","date":b[4][244],"number":b[2][2676]},{"locale":"teo","date":b[4][245],"number":b[2][409]},{"locale":"teo-KE","date":b[4][245],"number":b[2][2690]},{"locale":"teo-UG","date":b[4][245],"number":b[2][409]},{"locale":"th","date":b[4][246],"number":b[2][2704]},{"locale":"th-TH","date":b[4][246],"number":b[2][2704]},{"locale":"ti","date":b[4][247],"number":b[2][2116]},{"locale":"ti-ER","date":b[4][248],"number":b[2][2731]},{"locale":"ti-ET","date":b[4][247],"number":b[2][2116]},{"locale":"tk","date":b[4][249],"number":b[2][2745]},{"locale":"tk-TM","date":b[4][249],"number":b[2][2745]},{"locale":"to","date":b[4][250],"number":b[2][2759]},{"locale":"to-TO","date":b[4][250],"number":b[2][2759]},{"locale":"tr","date":b[4][251],"number":b[2][2773]},{"locale":"tr-CY","date":b[4][252],"number":b[2][2773]},{"locale":"tr-TR","date":b[4][251],"number":b[2][2773]},{"locale":"twq","date":b[4][253],"number":b[2][517]},{"locale":"twq-NE","date":b[4][253],"number":b[2][517]},{"locale":"tzm","date":b[4][254],"number":b[2][558]},{"locale":"tzm-MA","date":b[4][254],"number":b[2][558]},{"locale":"ug","date":b[4][255],"number":b[2][2813]},{"locale":"ug-CN","date":b[4][255],"number":b[2][2813]},{"locale":"uk","date":b[4][256],"number":b[2][2827]},{"locale":"uk-UA","date":b[4][256],"number":b[2][2827]},{"locale":"ur","date":b[4][257],"number":b[2][2841]},{"locale":"ur-IN","date":b[4][257],"number":b[2][2842]},{"locale":"ur-PK","date":b[4][257],"number":b[2][2841]},{"locale":"uz","date":b[4][258],"number":b[2][2856]},{"locale":"uz-Arab","date":b[4][259],"number":b[2][2870]},{"locale":"uz-Arab-AF","date":b[4][259],"number":b[2][2870]},{"locale":"uz-Cyrl","date":b[4][260],"number":b[2][2884]},{"locale":"uz-Cyrl-UZ","date":b[4][260],"number":b[2][2884]},{"locale":"uz-Latn","date":b[4][258],"number":b[2][2856]},{"locale":"uz-Latn-UZ","date":b[4][258],"number":b[2][2856]},{"locale":"vai","date":b[4][261],"number":b[2][2898]},{"locale":"vai-Latn","date":b[4][262],"number":b[2][2898]},{"locale":"vai-Latn-LR","date":b[4][262],"number":b[2][2898]},{"locale":"vai-Vaii","date":b[4][261],"number":b[2][2898]},{"locale":"vai-Vaii-LR","date":b[4][261],"number":b[2][2898]},{"locale":"vi","date":b[4][263],"number":b[2][2925]},{"locale":"vi-VN","date":b[4][263],"number":b[2][2925]},{"locale":"vo","date":b[4][18],"number":b[2][183]},{"locale":"vo-001","date":b[4][18],"number":b[2][183]},{"locale":"vun","date":b[4][133],"number":b[2][704]},{"locale":"vun-TZ","date":b[4][133],"number":b[2][704]},{"locale":"wae","date":b[4][264],"number":b[2][2939]},{"locale":"wae-CH","date":b[4][264],"number":b[2][2939]},{"locale":"xog","date":b[4][265],"number":b[2][2953]},{"locale":"xog-UG","date":b[4][265],"number":b[2][2953]},{"locale":"yav","date":b[4][266],"number":b[2][558]},{"locale":"yav-CM","date":b[4][266],"number":b[2][558]},{"locale":"yi","date":b[4][267],"number":b[2][183]},{"locale":"yi-001","date":b[4][267],"number":b[2][183]},{"locale":"yo","date":b[4][268],"number":b[2][687]},{"locale":"yo-BJ","date":b[4][269],"number":b[2][687]},{"locale":"yo-NG","date":b[4][268],"number":b[2][687]},{"locale":"zgh","date":b[4][270],"number":b[2][3019]},{"locale":"zgh-MA","date":b[4][270],"number":b[2][3019]},{"locale":"zh","date":b[4][271],"number":b[2][3032]},{"locale":"zh-Hans","date":b[4][271],"number":b[2][3032]},{"locale":"zh-Hans-CN","date":b[4][271],"number":b[2][3032]},{"locale":"zh-Hans-HK","date":b[4][272],"number":b[2][3033]},{"locale":"zh-Hans-MO","date":b[4][273],"number":b[2][3034]},{"locale":"zh-Hans-SG","date":b[4][274],"number":b[2][3035]},{"locale":"zh-Hant","date":b[4][275],"number":b[2][3049]},{"locale":"zh-Hant-HK","date":b[4][276],"number":b[2][3051]},{"locale":"zh-Hant-MO","date":b[4][276],"number":b[2][3052]},{"locale":"zh-Hant-TW","date":b[4][275],"number":b[2][3049]},{"locale":"zu","date":b[4][277],"number":b[2][3066]},{"locale":"zu-ZA","date":b[4][277],"number":b[2][3066]}];addLocaleData(b[5][0]); addLocaleData(b[5][1]); addLocaleData(b[5][2]); addLocaleData(b[5][3]); addLocaleData(b[5][4]); addLocaleData(b[5][5]); addLocaleData(b[5][6]); addLocaleData(b[5][7]); addLocaleData(b[5][8]); addLocaleData(b[5][9]); addLocaleData(b[5][10]); addLocaleData(b[5][11]); addLocaleData(b[5][12]); addLocaleData(b[5][13]); addLocaleData(b[5][14]); addLocaleData(b[5][15]); addLocaleData(b[5][16]); addLocaleData(b[5][17]); addLocaleData(b[5][18]); addLocaleData(b[5][19]); addLocaleData(b[5][20]); addLocaleData(b[5][21]); addLocaleData(b[5][22]); addLocaleData(b[5][23]); addLocaleData(b[5][24]); addLocaleData(b[5][25]); addLocaleData(b[5][26]); addLocaleData(b[5][27]); addLocaleData(b[5][28]); addLocaleData(b[5][29]); addLocaleData(b[5][30]); addLocaleData(b[5][31]); addLocaleData(b[5][32]); addLocaleData(b[5][33]); addLocaleData(b[5][34]); addLocaleData(b[5][35]); addLocaleData(b[5][36]); addLocaleData(b[5][37]); addLocaleData(b[5][38]); addLocaleData(b[5][39]); addLocaleData(b[5][40]); addLocaleData(b[5][41]); addLocaleData(b[5][42]); addLocaleData(b[5][43]); addLocaleData(b[5][44]); addLocaleData(b[5][45]); addLocaleData(b[5][46]); addLocaleData(b[5][47]); addLocaleData(b[5][48]); addLocaleData(b[5][49]); addLocaleData(b[5][50]); addLocaleData(b[5][51]); addLocaleData(b[5][52]); addLocaleData(b[5][53]); addLocaleData(b[5][54]); addLocaleData(b[5][55]); addLocaleData(b[5][56]); addLocaleData(b[5][57]); addLocaleData(b[5][58]); addLocaleData(b[5][59]); addLocaleData(b[5][60]); addLocaleData(b[5][61]); addLocaleData(b[5][62]); addLocaleData(b[5][63]); addLocaleData(b[5][64]); addLocaleData(b[5][65]); addLocaleData(b[5][66]); addLocaleData(b[5][67]); addLocaleData(b[5][68]); addLocaleData(b[5][69]); addLocaleData(b[5][70]); addLocaleData(b[5][71]); addLocaleData(b[5][72]); addLocaleData(b[5][73]); addLocaleData(b[5][74]); addLocaleData(b[5][75]); addLocaleData(b[5][76]); addLocaleData(b[5][77]); addLocaleData(b[5][78]); addLocaleData(b[5][79]); addLocaleData(b[5][80]); addLocaleData(b[5][81]); addLocaleData(b[5][82]); addLocaleData(b[5][83]); addLocaleData(b[5][84]); addLocaleData(b[5][85]); addLocaleData(b[5][86]); addLocaleData(b[5][87]); addLocaleData(b[5][88]); addLocaleData(b[5][89]); addLocaleData(b[5][90]); addLocaleData(b[5][91]); addLocaleData(b[5][92]); addLocaleData(b[5][93]); addLocaleData(b[5][94]); addLocaleData(b[5][95]); addLocaleData(b[5][96]); addLocaleData(b[5][97]); addLocaleData(b[5][98]); addLocaleData(b[5][99]); addLocaleData(b[5][100]); addLocaleData(b[5][101]); addLocaleData(b[5][102]); addLocaleData(b[5][103]); addLocaleData(b[5][104]); addLocaleData(b[5][105]); addLocaleData(b[5][106]); addLocaleData(b[5][107]); addLocaleData(b[5][108]); addLocaleData(b[5][109]); addLocaleData(b[5][110]); addLocaleData(b[5][111]); addLocaleData(b[5][112]); addLocaleData(b[5][113]); addLocaleData(b[5][114]); addLocaleData(b[5][115]); addLocaleData(b[5][116]); addLocaleData(b[5][117]); addLocaleData(b[5][118]); addLocaleData(b[5][119]); addLocaleData(b[5][120]); addLocaleData(b[5][121]); addLocaleData(b[5][122]); addLocaleData(b[5][123]); addLocaleData(b[5][124]); addLocaleData(b[5][125]); addLocaleData(b[5][126]); addLocaleData(b[5][127]); addLocaleData(b[5][128]); addLocaleData(b[5][129]); addLocaleData(b[5][130]); addLocaleData(b[5][131]); addLocaleData(b[5][132]); addLocaleData(b[5][133]); addLocaleData(b[5][134]); addLocaleData(b[5][135]); addLocaleData(b[5][136]); addLocaleData(b[5][137]); addLocaleData(b[5][138]); addLocaleData(b[5][139]); addLocaleData(b[5][140]); addLocaleData(b[5][141]); addLocaleData(b[5][142]); addLocaleData(b[5][143]); addLocaleData(b[5][144]); addLocaleData(b[5][145]); addLocaleData(b[5][146]); addLocaleData(b[5][147]); addLocaleData(b[5][148]); addLocaleData(b[5][149]); addLocaleData(b[5][150]); addLocaleData(b[5][151]); addLocaleData(b[5][152]); addLocaleData(b[5][153]); addLocaleData(b[5][154]); addLocaleData(b[5][155]); addLocaleData(b[5][156]); addLocaleData(b[5][157]); addLocaleData(b[5][158]); addLocaleData(b[5][159]); addLocaleData(b[5][160]); addLocaleData(b[5][161]); addLocaleData(b[5][162]); addLocaleData(b[5][163]); addLocaleData(b[5][164]); addLocaleData(b[5][165]); addLocaleData(b[5][166]); addLocaleData(b[5][167]); addLocaleData(b[5][168]); addLocaleData(b[5][169]); addLocaleData(b[5][170]); addLocaleData(b[5][171]); addLocaleData(b[5][172]); addLocaleData(b[5][173]); addLocaleData(b[5][174]); addLocaleData(b[5][175]); addLocaleData(b[5][176]); addLocaleData(b[5][177]); addLocaleData(b[5][178]); addLocaleData(b[5][179]); addLocaleData(b[5][180]); addLocaleData(b[5][181]); addLocaleData(b[5][182]); addLocaleData(b[5][183]); addLocaleData(b[5][184]); addLocaleData(b[5][185]); addLocaleData(b[5][186]); addLocaleData(b[5][187]); addLocaleData(b[5][188]); addLocaleData(b[5][189]); addLocaleData(b[5][190]); addLocaleData(b[5][191]); addLocaleData(b[5][192]); addLocaleData(b[5][193]); addLocaleData(b[5][194]); addLocaleData(b[5][195]); addLocaleData(b[5][196]); addLocaleData(b[5][197]); addLocaleData(b[5][198]); addLocaleData(b[5][199]); addLocaleData(b[5][200]); addLocaleData(b[5][201]); addLocaleData(b[5][202]); addLocaleData(b[5][203]); addLocaleData(b[5][204]); addLocaleData(b[5][205]); addLocaleData(b[5][206]); addLocaleData(b[5][207]); addLocaleData(b[5][208]); addLocaleData(b[5][209]); addLocaleData(b[5][210]); addLocaleData(b[5][211]); addLocaleData(b[5][212]); addLocaleData(b[5][213]); addLocaleData(b[5][214]); addLocaleData(b[5][215]); addLocaleData(b[5][216]); addLocaleData(b[5][217]); addLocaleData(b[5][218]); addLocaleData(b[5][219]); addLocaleData(b[5][220]); addLocaleData(b[5][221]); addLocaleData(b[5][222]); addLocaleData(b[5][223]); addLocaleData(b[5][224]); addLocaleData(b[5][225]); addLocaleData(b[5][226]); addLocaleData(b[5][227]); addLocaleData(b[5][228]); addLocaleData(b[5][229]); addLocaleData(b[5][230]); addLocaleData(b[5][231]); addLocaleData(b[5][232]); addLocaleData(b[5][233]); addLocaleData(b[5][234]); addLocaleData(b[5][235]); addLocaleData(b[5][236]); addLocaleData(b[5][237]); addLocaleData(b[5][238]); addLocaleData(b[5][239]); addLocaleData(b[5][240]); addLocaleData(b[5][241]); addLocaleData(b[5][242]); addLocaleData(b[5][243]); addLocaleData(b[5][244]); addLocaleData(b[5][245]); addLocaleData(b[5][246]); addLocaleData(b[5][247]); addLocaleData(b[5][248]); addLocaleData(b[5][249]); addLocaleData(b[5][250]); addLocaleData(b[5][251]); addLocaleData(b[5][252]); addLocaleData(b[5][253]); addLocaleData(b[5][254]); addLocaleData(b[5][255]); addLocaleData(b[5][256]); addLocaleData(b[5][257]); addLocaleData(b[5][258]); addLocaleData(b[5][259]); addLocaleData(b[5][260]); addLocaleData(b[5][261]); addLocaleData(b[5][262]); addLocaleData(b[5][263]); addLocaleData(b[5][264]); addLocaleData(b[5][265]); addLocaleData(b[5][266]); addLocaleData(b[5][267]); addLocaleData(b[5][268]); addLocaleData(b[5][269]); addLocaleData(b[5][270]); addLocaleData(b[5][271]); addLocaleData(b[5][272]); addLocaleData(b[5][273]); addLocaleData(b[5][274]); addLocaleData(b[5][275]); addLocaleData(b[5][276]); addLocaleData(b[5][277]); addLocaleData(b[5][278]); addLocaleData(b[5][279]); addLocaleData(b[5][280]); addLocaleData(b[5][281]); addLocaleData(b[5][282]); addLocaleData(b[5][283]); addLocaleData(b[5][284]); addLocaleData(b[5][285]); addLocaleData(b[5][286]); addLocaleData(b[5][287]); addLocaleData(b[5][288]); addLocaleData(b[5][289]); addLocaleData(b[5][290]); addLocaleData(b[5][291]); addLocaleData(b[5][292]); addLocaleData(b[5][293]); addLocaleData(b[5][294]); addLocaleData(b[5][295]); addLocaleData(b[5][296]); addLocaleData(b[5][297]); addLocaleData(b[5][298]); addLocaleData(b[5][299]); addLocaleData(b[5][300]); addLocaleData(b[5][301]); addLocaleData(b[5][302]); addLocaleData(b[5][303]); addLocaleData(b[5][304]); addLocaleData(b[5][305]); addLocaleData(b[5][306]); addLocaleData(b[5][307]); addLocaleData(b[5][308]); addLocaleData(b[5][309]); addLocaleData(b[5][310]); addLocaleData(b[5][311]); addLocaleData(b[5][312]); addLocaleData(b[5][313]); addLocaleData(b[5][314]); addLocaleData(b[5][315]); addLocaleData(b[5][316]); addLocaleData(b[5][317]); addLocaleData(b[5][318]); addLocaleData(b[5][319]); addLocaleData(b[5][320]); addLocaleData(b[5][321]); addLocaleData(b[5][322]); addLocaleData(b[5][323]); addLocaleData(b[5][324]); addLocaleData(b[5][325]); addLocaleData(b[5][326]); addLocaleData(b[5][327]); addLocaleData(b[5][328]); addLocaleData(b[5][329]); addLocaleData(b[5][330]); addLocaleData(b[5][331]); addLocaleData(b[5][332]); addLocaleData(b[5][333]); addLocaleData(b[5][334]); addLocaleData(b[5][335]); addLocaleData(b[5][336]); addLocaleData(b[5][337]); addLocaleData(b[5][338]); addLocaleData(b[5][339]); addLocaleData(b[5][340]); addLocaleData(b[5][341]); addLocaleData(b[5][342]); addLocaleData(b[5][343]); addLocaleData(b[5][344]); addLocaleData(b[5][345]); addLocaleData(b[5][346]); addLocaleData(b[5][347]); addLocaleData(b[5][348]); addLocaleData(b[5][349]); addLocaleData(b[5][350]); addLocaleData(b[5][351]); addLocaleData(b[5][352]); addLocaleData(b[5][353]); addLocaleData(b[5][354]); addLocaleData(b[5][355]); addLocaleData(b[5][356]); addLocaleData(b[5][357]); addLocaleData(b[5][358]); addLocaleData(b[5][359]); addLocaleData(b[5][360]); addLocaleData(b[5][361]); addLocaleData(b[5][362]); addLocaleData(b[5][363]); addLocaleData(b[5][364]); addLocaleData(b[5][365]); addLocaleData(b[5][366]); addLocaleData(b[5][367]); addLocaleData(b[5][368]); addLocaleData(b[5][369]); addLocaleData(b[5][370]); addLocaleData(b[5][371]); addLocaleData(b[5][372]); addLocaleData(b[5][373]); addLocaleData(b[5][374]); addLocaleData(b[5][375]); addLocaleData(b[5][376]); addLocaleData(b[5][377]); addLocaleData(b[5][378]); addLocaleData(b[5][379]); addLocaleData(b[5][380]); addLocaleData(b[5][381]); addLocaleData(b[5][382]); addLocaleData(b[5][383]); addLocaleData(b[5][384]); addLocaleData(b[5][385]); addLocaleData(b[5][386]); addLocaleData(b[5][387]); addLocaleData(b[5][388]); addLocaleData(b[5][389]); addLocaleData(b[5][390]); addLocaleData(b[5][391]); addLocaleData(b[5][392]); addLocaleData(b[5][393]); addLocaleData(b[5][394]); addLocaleData(b[5][395]); addLocaleData(b[5][396]); addLocaleData(b[5][397]); addLocaleData(b[5][398]); addLocaleData(b[5][399]); addLocaleData(b[5][400]); addLocaleData(b[5][401]); addLocaleData(b[5][402]); addLocaleData(b[5][403]); addLocaleData(b[5][404]); addLocaleData(b[5][405]); addLocaleData(b[5][406]); addLocaleData(b[5][407]); addLocaleData(b[5][408]); addLocaleData(b[5][409]); addLocaleData(b[5][410]); addLocaleData(b[5][411]); addLocaleData(b[5][412]); addLocaleData(b[5][413]); addLocaleData(b[5][414]); addLocaleData(b[5][415]); addLocaleData(b[5][416]); addLocaleData(b[5][417]); addLocaleData(b[5][418]); addLocaleData(b[5][419]); addLocaleData(b[5][420]); addLocaleData(b[5][421]); addLocaleData(b[5][422]); addLocaleData(b[5][423]); addLocaleData(b[5][424]); addLocaleData(b[5][425]); addLocaleData(b[5][426]); addLocaleData(b[5][427]); addLocaleData(b[5][428]); addLocaleData(b[5][429]); addLocaleData(b[5][430]); addLocaleData(b[5][431]); addLocaleData(b[5][432]); addLocaleData(b[5][433]); addLocaleData(b[5][434]); addLocaleData(b[5][435]); addLocaleData(b[5][436]); addLocaleData(b[5][437]); addLocaleData(b[5][438]); addLocaleData(b[5][439]); addLocaleData(b[5][440]); addLocaleData(b[5][441]); addLocaleData(b[5][442]); addLocaleData(b[5][443]); addLocaleData(b[5][444]); addLocaleData(b[5][445]); addLocaleData(b[5][446]); addLocaleData(b[5][447]); addLocaleData(b[5][448]); addLocaleData(b[5][449]); addLocaleData(b[5][450]); addLocaleData(b[5][451]); addLocaleData(b[5][452]); addLocaleData(b[5][453]); addLocaleData(b[5][454]); addLocaleData(b[5][455]); addLocaleData(b[5][456]); addLocaleData(b[5][457]); addLocaleData(b[5][458]); addLocaleData(b[5][459]); addLocaleData(b[5][460]); addLocaleData(b[5][461]); addLocaleData(b[5][462]); addLocaleData(b[5][463]); addLocaleData(b[5][464]); addLocaleData(b[5][465]); addLocaleData(b[5][466]); addLocaleData(b[5][467]); addLocaleData(b[5][468]); addLocaleData(b[5][469]); addLocaleData(b[5][470]); addLocaleData(b[5][471]); addLocaleData(b[5][472]); addLocaleData(b[5][473]); addLocaleData(b[5][474]); addLocaleData(b[5][475]); addLocaleData(b[5][476]); addLocaleData(b[5][477]); addLocaleData(b[5][478]); addLocaleData(b[5][479]); addLocaleData(b[5][480]); addLocaleData(b[5][481]); addLocaleData(b[5][482]); addLocaleData(b[5][483]); addLocaleData(b[5][484]); addLocaleData(b[5][485]); addLocaleData(b[5][486]); addLocaleData(b[5][487]); addLocaleData(b[5][488]); addLocaleData(b[5][489]); addLocaleData(b[5][490]); addLocaleData(b[5][491]); addLocaleData(b[5][492]); addLocaleData(b[5][493]); addLocaleData(b[5][494]); addLocaleData(b[5][495]); addLocaleData(b[5][496]); addLocaleData(b[5][497]); addLocaleData(b[5][498]); addLocaleData(b[5][499]); addLocaleData(b[5][500]); addLocaleData(b[5][501]); addLocaleData(b[5][502]); addLocaleData(b[5][503]); addLocaleData(b[5][504]); addLocaleData(b[5][505]); addLocaleData(b[5][506]); addLocaleData(b[5][507]); addLocaleData(b[5][508]); addLocaleData(b[5][509]); addLocaleData(b[5][510]); addLocaleData(b[5][511]); addLocaleData(b[5][512]); addLocaleData(b[5][513]); addLocaleData(b[5][514]); addLocaleData(b[5][515]); addLocaleData(b[5][516]); addLocaleData(b[5][517]); addLocaleData(b[5][518]); addLocaleData(b[5][519]); addLocaleData(b[5][520]); addLocaleData(b[5][521]); addLocaleData(b[5][522]); addLocaleData(b[5][523]); addLocaleData(b[5][524]); addLocaleData(b[5][525]); addLocaleData(b[5][526]); addLocaleData(b[5][527]); addLocaleData(b[5][528]); addLocaleData(b[5][529]); addLocaleData(b[5][530]); addLocaleData(b[5][531]); addLocaleData(b[5][532]); addLocaleData(b[5][533]); addLocaleData(b[5][534]); addLocaleData(b[5][535]); addLocaleData(b[5][536]); addLocaleData(b[5][537]); addLocaleData(b[5][538]); addLocaleData(b[5][539]); addLocaleData(b[5][540]); addLocaleData(b[5][541]); addLocaleData(b[5][542]); addLocaleData(b[5][543]); addLocaleData(b[5][544]); addLocaleData(b[5][545]); addLocaleData(b[5][546]); addLocaleData(b[5][547]); addLocaleData(b[5][548]); addLocaleData(b[5][549]); addLocaleData(b[5][550]); addLocaleData(b[5][551]); addLocaleData(b[5][552]); addLocaleData(b[5][553]); addLocaleData(b[5][554]); addLocaleData(b[5][555]); addLocaleData(b[5][556]); addLocaleData(b[5][557]); addLocaleData(b[5][558]); addLocaleData(b[5][559]); addLocaleData(b[5][560]); addLocaleData(b[5][561]); addLocaleData(b[5][562]); addLocaleData(b[5][563]); addLocaleData(b[5][564]); addLocaleData(b[5][565]); addLocaleData(b[5][566]); addLocaleData(b[5][567]); addLocaleData(b[5][568]); addLocaleData(b[5][569]); addLocaleData(b[5][570]); addLocaleData(b[5][571]); addLocaleData(b[5][572]); addLocaleData(b[5][573]); addLocaleData(b[5][574]); addLocaleData(b[5][575]); addLocaleData(b[5][576]); addLocaleData(b[5][577]); addLocaleData(b[5][578]); addLocaleData(b[5][579]); addLocaleData(b[5][580]); addLocaleData(b[5][581]); addLocaleData(b[5][582]); addLocaleData(b[5][583]); addLocaleData(b[5][584]); addLocaleData(b[5][585]); addLocaleData(b[5][586]); addLocaleData(b[5][587]); addLocaleData(b[5][588]); addLocaleData(b[5][589]); addLocaleData(b[5][590]); addLocaleData(b[5][591]); addLocaleData(b[5][592]); addLocaleData(b[5][593]); addLocaleData(b[5][594]); addLocaleData(b[5][595]); addLocaleData(b[5][596]); addLocaleData(b[5][597]); addLocaleData(b[5][598]); addLocaleData(b[5][599]); addLocaleData(b[5][600]); addLocaleData(b[5][601]); addLocaleData(b[5][602]); addLocaleData(b[5][603]); addLocaleData(b[5][604]); addLocaleData(b[5][605]); addLocaleData(b[5][606]); addLocaleData(b[5][607]); addLocaleData(b[5][608]); addLocaleData(b[5][609]); addLocaleData(b[5][610]); addLocaleData(b[5][611]); addLocaleData(b[5][612]); addLocaleData(b[5][613]); addLocaleData(b[5][614]); addLocaleData(b[5][615]); addLocaleData(b[5][616]); addLocaleData(b[5][617]); addLocaleData(b[5][618]); addLocaleData(b[5][619]); addLocaleData(b[5][620]); addLocaleData(b[5][621]); addLocaleData(b[5][622]); addLocaleData(b[5][623]); addLocaleData(b[5][624]); addLocaleData(b[5][625]); addLocaleData(b[5][626]); addLocaleData(b[5][627]); addLocaleData(b[5][628]); addLocaleData(b[5][629]); addLocaleData(b[5][630]); addLocaleData(b[5][631]); addLocaleData(b[5][632]); addLocaleData(b[5][633]); addLocaleData(b[5][634]); addLocaleData(b[5][635]); addLocaleData(b[5][636]); addLocaleData(b[5][637]); addLocaleData(b[5][638]); addLocaleData(b[5][639]); addLocaleData(b[5][640]); addLocaleData(b[5][641]); addLocaleData(b[5][642]); addLocaleData(b[5][643]); addLocaleData(b[5][644]); addLocaleData(b[5][645]); addLocaleData(b[5][646]); addLocaleData(b[5][647]); addLocaleData(b[5][648]); addLocaleData(b[5][649]); addLocaleData(b[5][650]); addLocaleData(b[5][651]); addLocaleData(b[5][652]); addLocaleData(b[5][653]); addLocaleData(b[5][654]); addLocaleData(b[5][655]); addLocaleData(b[5][656]); addLocaleData(b[5][657]); addLocaleData(b[5][658]); addLocaleData(b[5][659]); addLocaleData(b[5][660]); addLocaleData(b[5][661]); addLocaleData(b[5][662]); addLocaleData(b[5][663]); addLocaleData(b[5][664]); addLocaleData(b[5][665]); addLocaleData(b[5][666]); addLocaleData(b[5][667]); addLocaleData(b[5][668]); addLocaleData(b[5][669]); addLocaleData(b[5][670]); addLocaleData(b[5][671]); addLocaleData(b[5][672]); addLocaleData(b[5][673]); addLocaleData(b[5][674]); addLocaleData(b[5][675]); addLocaleData(b[5][676]); addLocaleData(b[5][677]); addLocaleData(b[5][678]); addLocaleData(b[5][679]); addLocaleData(b[5][680]); addLocaleData(b[5][681]); addLocaleData(b[5][682]); addLocaleData(b[5][683]); addLocaleData(b[5][684]); addLocaleData(b[5][685]); addLocaleData(b[5][686]); addLocaleData(b[5][687]); addLocaleData(b[5][688]); addLocaleData(b[5][689]); addLocaleData(b[5][690]); addLocaleData(b[5][691]); addLocaleData(b[5][692]); addLocaleData(b[5][693]); addLocaleData(b[5][694]); addLocaleData(b[5][695]); addLocaleData(b[5][696]); addLocaleData(b[5][697]); addLocaleData(b[5][698]); addLocaleData(b[5][699]); addLocaleData(b[5][700]); addLocaleData(b[5][701]); addLocaleData(b[5][702]); addLocaleData(b[5][703]); addLocaleData(b[5][704]); addLocaleData(b[5][705]); addLocaleData(b[5][706]); addLocaleData(b[5][707]); addLocaleData(b[5][708]); addLocaleData(b[5][709]); addLocaleData(b[5][710]); addLocaleData(b[5][711]); addLocaleData(b[5][712]); addLocaleData(b[5][713]); addLocaleData(b[5][714]); addLocaleData(b[5][715]); })(IntlPolyfill.__addLocaleData);
index.js
tanepiper/hapi-react-views
var Hoek = require('hoek'); var React = require('react'); var ReactDOMServer = require('react-dom/server'); var EXT_REGEX = new RegExp('\\.jsx$'); var DEFAULTS = { doctype: '<!DOCTYPE html>', renderMethod: 'renderToStaticMarkup', removeCache: process.env.NODE_ENV !== 'production' }; var compile = function compile (template, compileOpts) { compileOpts = Hoek.applyToDefaults(DEFAULTS, compileOpts); return function runtime (context, renderOpts) { renderOpts = Hoek.applyToDefaults(compileOpts, renderOpts); var Component = require(compileOpts.filename); // support es6 default export semantics Component = Component.default || Component; var Element = React.createFactory(Component); var output = renderOpts.doctype; output += ReactDOMServer[renderOpts.renderMethod](Element(context)); // transpilers tend to take a long time to start up, so we delete react // modules from the cache so we don't need to restart to see view // changes (unless we're in production silly) if (renderOpts.removeCache) { Component = undefined; Element = undefined; Object.keys(require.cache).forEach(function (module) { if (EXT_REGEX.test(module)) { delete require.cache[module]; } }); } return output; }; }; module.exports = { compile: compile };
src/index.js
JithuTholoor/RubixCube
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; import './index.css'; ReactDOM.render( <div> <App /> <a className="github-fork-ribbon" href="https://github.com/JithuTholoor/RubixCube" data-ribbon="Fork me on GitHub" title="Fork me on GitHub">Fork me on GitHub</a> </div>, document.getElementById('root') );
src/docs/components/animate/AnimateSlideExample.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Animate from 'grommet/components/Animate'; import Box from 'grommet/components/Box'; import Button from 'grommet/components/Button'; import Paragraph from 'grommet/components/Paragraph'; import Example from '../../Example'; export default class AnimateSlideExample extends Component { constructor () { super(); this.state = { active: true }; } render () { const { active } = this.state; return ( <Example code={ <Box pad={{between: 'small'}}> <Button label="Slide" primary={true} onClick={() => this.setState({active: !active})} /> <Animate enter={{ animation: 'slide-up', duration: 1000 }} leave={{ animation: 'slide-down', duration: 1000 }} visible={active}> <Paragraph> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </Paragraph> </Animate> </Box> } /> ); } };
components/widgets/charts/TextChart.js
resource-watch/resource-watch
import React from 'react'; import PropTypes from 'prop-types'; import 'isomorphic-fetch'; import { format } from 'd3-format'; class TextChart extends React.Component { static propTypes = { widgetConfig: PropTypes.object.isRequired, toggleLoading: PropTypes.func, // Will be called with the loading state }; static defaultProps = { toggleLoading: () => { }, }; constructor(props) { super(props); this.state = { loading: false, error: null, data: null, }; } componentDidMount() { this.getData(); } /** * Fetch the data of the widget */ getData() { const { url } = this.props.widgetConfig.data; // We let the parent component we're loading this.props.toggleLoading(true); this.setState({ loading: true }); fetch(url) .then((res) => { if (res.ok) return res.json(); throw new Error(res.statusText); }) .then((res) => { // RW's API uses res.data, Carto, res.rows const data = null || (res.data && res.data.length && res.data[0]) || (res.rows && res.rows.length && res.rows[0]); // If the data is not set at this point, then the render function // will display "no data" if (!data) return; this.setState({ data, error: null }); }) .catch((err) => this.setState({ error: err.message })) .then(() => { this.props.toggleLoading(false); this.setState({ loading: false }); }); } /** * Return the actual content of the widget */ getContent() { const { template_config, template } = this.props.widgetConfig; // List the keys that can't be found in the data const missingKeys = []; const content = template_config.reduce((res, config) => { const { key } = config; const value = this.state.data[key]; // If the value can't be found, we just skip the substitution if (!value) { missingKeys.push(key); return res; } const suffix = config.suffix || ''; const formatter = config.format && !isNaN(parseInt(value, 10)) ? (val) => format(config.format)(parseInt(val, 10)) : (val) => val; const substitution = (!isNaN(parseInt(value, 10)) || formatter(value).length) ? `<span class="token">${formatter(value)}${suffix}</span>` : ''; return res.replace(new RegExp(`{{${key}}}`, 'g'), substitution); }, template); // If there's at least one key that couldn't be found, we display // an error message if (missingKeys.length) { this.setState({ error: `The widget is malformed: the key${missingKeys.length > 1 ? 's' : ''} ${missingKeys.join(', ')} can't be found in the data`, }); } return content; } render() { return ( <div className="c-text-chart"> { this.state.error && ( <div className="error"> Unable to load the widget <span>{this.state.error}</span> </div> ) } { !this.state.error && this.state.data && <div className="content" dangerouslySetInnerHTML={{ __html: this.getContent() }} /> // eslint-disable-line react/no-danger } { !this.state.error && !this.state.loading && !this.state.data && <div className="no-data">No data</div>} </div> ); } } export default TextChart;
fields/types/number/NumberField.js
wustxing/keystone
import React from 'react'; import Field from '../Field'; import { FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'NumberField', valueChanged (event) { var newValue = event.target.value.replace(/[^\d\.]/g, ''); if (newValue === this.props.value) return; this.props.onChange({ path: this.props.path, value: newValue }); }, renderField () { return <FormInput name={this.props.path} ref="focusTarget" value={this.props.value} onChange={this.valueChanged} autoComplete="off" />; } });
ajax/libs/mobx-react/3.2.0/index.min.js
dada0423/cdnjs
!function(){function e(e,t,n){function o(e){return n?n.findDOMNode(e):null}function r(e){var t=o(e);t&&p.set(t,e),d.emit({event:"render",renderTime:e.__$mobRenderEnd-e.__$mobRenderStart,totalTime:Date.now()-e.__$mobRenderStart,component:e,node:t})}function i(e,t){var n=e[t],o=u[t];n?e[t]=function(){n.apply(this,arguments),o.apply(this,arguments)}:e[t]=o}function a(e){if("function"==typeof e&&!e.prototype.render&&!e.isReactClass&&!t.Component.isPrototypeOf(e))return a(t.createClass({displayName:e.displayName||e.name,propTypes:e.propTypes,contextTypes:e.contextTypes,getDefaultProps:function(){return e.defaultProps},render:function(){return e.call(this,this.props,this.context)}}));if(!e)throw new Error("Please pass a valid component to 'observer'");var n=e.prototype||e;return["componentWillMount","componentWillUnmount","componentDidMount","componentDidUpdate"].forEach(function(e){i(n,e)}),n.shouldComponentUpdate||(n.shouldComponentUpdate=u.shouldComponentUpdate),e.isMobXReactObserver=!0,e}function s(){if("undefined"==typeof WeakMap)throw new Error("[mobx-react] tracking components is not supported in this browser.");c||(c=!0)}if(!e)throw new Error("mobx-react requires the MobX package");if(!t)throw new Error("mobx-react requires React to be available");var c=!1,p="undefined"!=typeof WeakMap?new WeakMap:void 0,d=new e.SimpleEventEmitter,u={componentWillMount:function(){function n(){return s=new e.Reaction(r,function(){p||(p=!0,"function"==typeof a.componentWillReact&&a.componentWillReact(),t.Component.prototype.forceUpdate.call(a))}),o.$mobx=s,a.render=o,o()}function o(){p=!1;var t;return s.track(function(){c&&(a.__$mobRenderStart=Date.now()),t=e.extras.allowStateChanges(!1,i),c&&(a.__$mobRenderEnd=Date.now())}),t}var r=[this.displayName||this.name||this.constructor&&(this.constructor.displayName||this.constructor.name)||"<component>","#",this._reactInternalInstance&&this._reactInternalInstance._rootNodeID,".render()"].join(""),i=this.render.bind(this),a=this,s=null,p=!1;this.render=n},componentWillUnmount:function(){if(this.render.$mobx&&this.render.$mobx.dispose(),c){var e=o(this);e&&p.delete(e),d.emit({event:"destroy",component:this,node:e})}},componentDidMount:function(){c&&r(this)},componentDidUpdate:function(){c&&r(this)},shouldComponentUpdate:function(t,n){if(this.render.$mobx&&this.render.$mobx.isScheduled()===!0)return!1;if(this.state!==n)return!0;var o,r=Object.keys(this.props);if(r.length!==Object.keys(t).length)return!0;for(var i=r.length-1;o=r[i];i--){var a=t[o];if(a!==this.props[o])return!0;if(a&&"object"==typeof a&&!e.isObservable(a))return!0}return!1}};return{observer:a,reactiveComponent:function(){return console.warn("[mobx-react] `reactiveComponent` has been renamed to `observer` and will be removed in 1.1."),a.apply(null,arguments)},renderReporter:d,componentByNodeRegistery:p,trackComponents:s}}"object"==typeof exports?module.exports=e(require("mobx"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("mobx-react",["mobx","react","react-dom"],e):this.mobxReact=e(this.mobx,this.React,this.ReactDOM)}(); //# sourceMappingURL=index.min.js.map
src/SettingsSectionPrivacy/index.js
DuckyTeam/ducky-components
import SectionHeaderGeneral from '../SectionHeaderGeneral'; import SettingsPrivacyGeneral from '../SettingsPrivacyGeneral'; import Spacer from '../Spacer'; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; function SettingsSectionPrivacy(props) { return ( <div className={classNames(styles.wrapper, {[props.className]: props.className})}> <SectionHeaderGeneral onClick={props.handleButtonClick} title={'Personvern'} /> <div> <SettingsPrivacyGeneral className={styles.content} /> <Spacer size={'double'} /> </div> </div> ); } SettingsSectionPrivacy.propTypes = { className: PropTypes.string, handleButtonClick: PropTypes.func }; export default SettingsSectionPrivacy;
collect-webapp/frontend/src/common/components/TableResizeOnWindowResizeComponent.js
openforis/collect
import { useWindowResize } from 'common/hooks' import { useCallback } from 'react' import { useEffect } from 'react' import Containers from './Containers' const TableResizeOnWindowResizeComponent = (props) => { const { wrapperRef, margin } = props const resizeTable = useCallback(() => { const wrapper = wrapperRef.current if (wrapper) { Containers.extendTableHeightToMaxAvailable(wrapper, margin) } }, [wrapperRef, margin]) useWindowResize(resizeTable) useEffect(() => { resizeTable() }, [wrapperRef, resizeTable]) return null } TableResizeOnWindowResizeComponent.defaultProps = { margin: 122, } export default TableResizeOnWindowResizeComponent
src/feedbackFormSubmit.js
theadam/react-inform
import PropTypes from 'prop-types'; import React, { Component } from 'react'; export default class FeedbackFormSubmit extends Component { static propTypes = { onInvalid: PropTypes.func, onClick: PropTypes.func, } static contextTypes = { form: PropTypes.object.isRequired, } handleClick(e) { if (!this.context.form.isValid()) { e.preventDefault(); this.context.form.forceValidate(); if (this.props.onInvalid) this.props.onInvalid(e); } if (this.props.onClick) this.props.onClick(e); } render() { return ( <input type="submit" {...this.props} onClick={e => this.handleClick(e)} /> ); } }
web/src/server/components/charts/projects-vs-organizations-chart.js
opendaylight/spectrometer
/** # @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0> ############################################################################## # Copyright (c) 2016 The Linux Foundation and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Eclipse Public License v1.0 # which accompanies this distribution, and is available at # http://www.eclipse.org/legal/epl-v10.html ############################################################################## */ /** * React component to display Projects vs Organizations Charts * Used in ContributorsCard * Uses ChartLayout * * @author: Vasu Srinivasan * @since: 0.0.1 */ import React, { Component } from 'react'; import Griddle from 'griddle-react' import ReactHighcharts from 'react-highcharts' import * as DataReducers from '../../api/data-reducers' import ChartLayout from '../chart-layout' const ChartConfig = require('../../../../config/spectrometer-web.json').chart const buttonActions = [ {type: 'chartType', option: 'pie', icon: 'pie_chart_outlined', tooltip: 'Show as Pie Chart'}, {type: 'chartType', option: 'table', icon: 'format_list_numbered', tooltip: 'Show as Table'} ] const columnChart = (dataSeries) => { const config = { chart: { type: 'column' }, title: { text: ''}, xAxis: { title: { text: 'Projects' }, categories: _.map(dataSeries, "name") }, yAxis: { title: { text: 'Organizations' } }, series: [{ name: "Organizations", colorByPoint: true, data: _.map(dataSeries, "contributorCount") }], plotOptions: { column: { showInLegend: true } } } return (<ReactHighcharts config={config} />) } const pieChart = (dataSeries, takeRight) => { const ds = DataReducers.sliceAndGroupOthers(dataSeries, takeRight, 'contributorCount') const config = { chart: { type: 'pie' }, title: { text: '' }, tooltip: { pointFormat: '{series.name}: {point.y}' }, legend: { align: 'right', layout: 'vertical', verticalAlign: 'top' }, colors: ChartConfig.pieChartColors, plotOptions: { pie: { allowPointSelect: true, cursor: 'pointer', dataLabels: { enabled: true, color: 'black', formatter: function() { return this.point.name + ' ' + this.point.y + ' (' + (Math.round(this.percentage*100)/100 + ' %)') } }, showInLegend: true } }, series: [{ name: 'Organizations', colorByPoint: true, data: _.map(ds, (x) => { return {name: x.name, y: x.contributorCount} }) }] } return (<ReactHighcharts config={config} />) } const COLUMN_METADATA = [ { columnName: "name", displayName: "Name" }, { columnName: "contributorCount", displayName: "No. of Organizations", cssClassName: 'td-values' } ] const tableChart = (dataSeries, height) => { return ( <Griddle id="projects-vs-organizations-table" tableClassName="table-chart" bodyHeight={height} results={_.orderBy(dataSeries, ['contributorCount'], ['desc'])} showFilter={true} showSettings={false} columnMetadata={COLUMN_METADATA} filterPlaceholderText="Find..." useFixedHeader={true} enableInfiniteScroll={true} /> ) } export default class ProjectsVsOrganizationsChart extends Component { constructor(props) { super(props) this.state = { view: _.assign({}, DEFAULT_VIEW, props.view) } this.handleButtonActions = this.handleButtonActions.bind(this) } handleButtonActions = (type, value) => { const newView = _.merge(this.state.view, {[type]: value}) this.setState({ view: newView }) } render() { if (_.isEmpty(this.props.projects)) return null const { takeRight, tableHeight, sortBy } = this.state.view const dataSeries = DataReducers.projectsVsContributorCount(this.props.projects, {contributor: 'organization', sortBy}) // logger.info("projects-vs-organizations", dataSeries) return ( <ChartLayout id="projects-vs-orgs" title="No. of orgs per project" buttonActions={buttonActions} currentView={this.state.view} handleButtonActions={this.handleButtonActions}> {this.state.view.chartType === 'column' && columnChart(dataSeries, takeRight)} {this.state.view.chartType === 'pie' && pieChart(dataSeries, takeRight)} {this.state.view.chartType === 'table' && tableChart(dataSeries, tableHeight)} </ChartLayout> ) } } const DEFAULT_VIEW = { chartType: 'pie', sortBy: 'contributorCount', tableHeight: 350 } ProjectsVsOrganizationsChart.propTypes = { projects: React.PropTypes.array.isRequired, view: React.PropTypes.object }
node_modules/react-icons/md/border-outer.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdBorderOuter = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m15 18.4v3.2h-3.4v-3.2h3.4z m6.6 6.6v3.4h-3.2v-3.4h3.2z m10 6.6v-23.2h-23.2v23.2h23.2z m-26.6-26.6h30v30h-30v-30z m23.4 13.4v3.2h-3.4v-3.2h3.4z m-6.8 0v3.2h-3.2v-3.2h3.2z m0-6.8v3.4h-3.2v-3.4h3.2z"/></g> </Icon> ) export default MdBorderOuter
Study/Udemy Docker and Kubernetes/Section09/deployment-08-deployed-to-multiple-tasks/frontend/src/components/UI/Card.js
tarsoqueiroz/Docker
import React from 'react'; import './Card.css'; function Card(props) { return <div className='card'>{props.children}</div>; } export default Card;
src/drawer/IconLink.js
kesjien/member-cards
import React, { Component } from 'react'; import { View, TouchableOpacity, Image, PixelRatio, Text } from 'react-native'; import {Actions} from 'react-native-router-flux'; import normalize from '../utils/normalizeFont'; import { vw, vh } from '../utils/vDimensions'; export default class extends Component { constructor(props) { super(props); this.width = vw(18 * (this.props.imageScale || 1)); this.height = vh(14); } render() { return ( <TouchableOpacity style={styles.container} onPress={this.props.onPress} activeOpacity={0.8}> {this.props.children} </TouchableOpacity> ); } } const styles = { container : { borderWidth: 0.5, borderColor: 'rgba(240,220,152, 0.1)', flex: 1, justifyContent: 'center', alignItems: 'center' }, }
src/controls/numberfield/index.js
thinktopography/reframe
import PropTypes from 'prop-types' import React from 'react' import _ from 'lodash' const SPECIAL_KEYS = ['ArrowLeft','ArrowRight','ArrowUp','ArrowDown','Backspace'] const REGEX = /^-?[0-9]*\.?[0-9]*$/ class NumberField extends React.Component { static propTypes = { defaultValue: PropTypes.object, onChange: PropTypes.func, onReady: PropTypes.func } number = null state = { value: '' } _handleChange = this._handleChange.bind(this) _handleKeyDown = this._handleKeyDown.bind(this) render() { return ( <div className="ui field"> <input { ...this._getInput() }/> </div> ) } componentDidMount() { const { defaultValue, onReady } = this.props if(defaultValue) this.setState(defaultValue) onReady() } componentDidUpdate(prevProps, prevState) { if(this.state.value !== prevState.value) { this.props.onChange(this.state.value) } } _getInput() { const { value } = this.state return { className: 'ui input', type: 'text', placeholder: 'Number', value, ref: node => this.number = node, onChange: this._handleChange, onKeyDown: this._handleKeyDown } } _handleChange() { this.setState({ value: this.number.value }) } _handleKeyDown(e) { if(_.includes(SPECIAL_KEYS, e.key)) return if(e.ctrlKey || e.metaKey) return const value = this.number.value || '' const newvalue = value + e.key if(newvalue.match(REGEX)) return e.preventDefault() } } export default NumberField
node_modules/react-bootstrap/lib/ListGroup.js
FoxMessenger/nyt-react
'use strict'; exports.__esModule = true; var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties'); var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn'); var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); var _inherits2 = require('babel-runtime/helpers/inherits'); var _inherits3 = _interopRequireDefault(_inherits2); var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _elementType = require('react-prop-types/lib/elementType'); var _elementType2 = _interopRequireDefault(_elementType); var _ListGroupItem = require('./ListGroupItem'); var _ListGroupItem2 = _interopRequireDefault(_ListGroupItem); var _bootstrapUtils = require('./utils/bootstrapUtils'); var _ValidComponentChildren = require('./utils/ValidComponentChildren'); var _ValidComponentChildren2 = _interopRequireDefault(_ValidComponentChildren); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var propTypes = { /** * You can use a custom element type for this component. * * If not specified, it will be treated as `'li'` if every child is a * non-actionable `<ListGroupItem>`, and `'div'` otherwise. */ componentClass: _elementType2['default'] }; function getDefaultComponent(children) { if (!children) { // FIXME: This is the old behavior. Is this right? return 'div'; } if (_ValidComponentChildren2['default'].some(children, function (child) { return child.type !== _ListGroupItem2['default'] || child.props.href || child.props.onClick; })) { return 'div'; } return 'ul'; } var ListGroup = function (_React$Component) { (0, _inherits3['default'])(ListGroup, _React$Component); function ListGroup() { (0, _classCallCheck3['default'])(this, ListGroup); return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); } ListGroup.prototype.render = function render() { var _props = this.props, children = _props.children, _props$componentClass = _props.componentClass, Component = _props$componentClass === undefined ? getDefaultComponent(children) : _props$componentClass, className = _props.className, props = (0, _objectWithoutProperties3['default'])(_props, ['children', 'componentClass', 'className']); var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = (0, _bootstrapUtils.getClassSet)(bsProps); var useListItem = Component === 'ul' && _ValidComponentChildren2['default'].every(children, function (child) { return child.type === _ListGroupItem2['default']; }); return _react2['default'].createElement( Component, (0, _extends3['default'])({}, elementProps, { className: (0, _classnames2['default'])(className, classes) }), useListItem ? _ValidComponentChildren2['default'].map(children, function (child) { return (0, _react.cloneElement)(child, { listItem: true }); }) : children ); }; return ListGroup; }(_react2['default'].Component); ListGroup.propTypes = propTypes; exports['default'] = (0, _bootstrapUtils.bsClass)('list-group', ListGroup); module.exports = exports['default'];
src/svg-icons/social/sentiment-satisfied.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentSatisfied = (props) => ( <SvgIcon {...props}> <circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm0-4c-1.48 0-2.75-.81-3.45-2H6.88c.8 2.05 2.79 3.5 5.12 3.5s4.32-1.45 5.12-3.5h-1.67c-.7 1.19-1.97 2-3.45 2z"/> </SvgIcon> ); SocialSentimentSatisfied = pure(SocialSentimentSatisfied); SocialSentimentSatisfied.displayName = 'SocialSentimentSatisfied'; SocialSentimentSatisfied.muiName = 'SvgIcon'; export default SocialSentimentSatisfied;
app/views/character-sheet/sheet3.js
Hartorn/character-builder-dd5
import React from 'react' const Sheet3 = (props) => { return ( <div className='sheet'> <div data-dd='character-sheet header-3'> <div className='spellcaster-name absolute'>Magicien (INT)</div> <div className='spellcaster-label label absolute'><div>CLASSE DE LANCEUR DE SORTS </div><div>(CARACTÉRISTIQUE POUR LANCER DES SORTS)</div></div> <div className='spell-memorisation-name absolute'>10</div> <div className='spell-memorisation-label label absolute'>SORTS À MÉMORISER</div> <div className='saving-throw-name absolute'>15</div> <div className='saving-throw-label label absolute'>DD DE SAUVEGARDE DES SORTS</div> <div className='spell-attack-name absolute'>5</div> <div className='spell-attack-label label absolute'>BONUS D'ATTAQUE</div> </div> <div data-dd='column column-11' className='absolute'> </div> <div data-dd='column column-3' className='absolute'> </div> <div data-dd='column column-4' className='absolute'> </div> </div> ); } export default Sheet3;
app/boards/mercedes-amg-gt3/components/pit-limiter.js
fermio/motorsport-display
import React from 'react'; import _ from 'lodash'; import { EngineWarnings } from '../../constants'; const PitLimiter = React.createClass({ propTypes: { warnings: React.PropTypes.array, speed: React.PropTypes.number }, getDefaultProps: function() { return { warnings: [] } }, shouldComponentUpdate: function(nextProps, nextState) { if (this.props.warnings != nextProps.warnings) { return true; } return this.normalizeSpeed(this.props.speed) !== this.normalizeSpeed(nextProps.speed); }, normalizeSpeed: function(speed) { if (null === speed || 'undefined' === typeof speed) { return '-'; } return Math.floor(speed * 3.6).toFixed(0); }, render: function() { if (_.indexOf(this.props.warnings, EngineWarnings.PIT_SPEED_LIMITER) == -1) { return (<div />); } const speed = this.normalizeSpeed(this.props.speed); return ( <div className="pit"> <div className="speed"> {speed} </div> </div> ); } }); export default PitLimiter;
ajax/libs/material-ui/5.0.0-alpha.27/legacy/ToggleButtonGroup/ToggleButtonGroup.min.js
cdnjs/cdnjs
import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import _defineProperty from"@babel/runtime/helpers/esm/defineProperty";import _extends from"@babel/runtime/helpers/esm/extends";import*as React from"react";import{isFragment}from"react-is";import PropTypes from"prop-types";import clsx from"clsx";import{deepmerge}from"@material-ui/utils";import{unstable_composeClasses as composeClasses}from"@material-ui/unstyled";import experimentalStyled from"../styles/experimentalStyled";import useThemeProps from"../styles/useThemeProps";import capitalize from"../utils/capitalize";import isValueSelected from"./isValueSelected";import toggleButtonGroupClasses,{getToggleButtonGroupUtilityClass}from"./toggleButtonGroupClasses";var overridesResolver=function(e,o){var t=e.styleProps;return deepmerge(_extends({},"vertical"===t.orientation&&o.vertical,_defineProperty({},"& .".concat(toggleButtonGroupClasses.grouped),_extends({},o.grouped,o["grouped".concat(capitalize(t.orientation))]))),o.root||{})},useUtilityClasses=function(e){var o=e.classes,t=e.orientation,r={root:["root","vertical"===t&&"vertical"],grouped:["grouped","grouped".concat(capitalize(t))]};return composeClasses(r,getToggleButtonGroupUtilityClass,o)},ToggleButtonGroupRoot=experimentalStyled("div",{},{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:overridesResolver})(function(e){var o=e.styleProps,t=e.theme;return _extends({display:"inline-flex",borderRadius:t.shape.borderRadius},"vertical"===o.orientation&&{flexDirection:"column"},_defineProperty({},"& .".concat(toggleButtonGroupClasses.grouped),_extends({},"horizontal"===o.orientation?_defineProperty({"&:not(:first-of-type)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0}},"&.Mui-selected + .".concat(toggleButtonGroupClasses.grouped,".Mui-selected"),{borderLeft:0,marginLeft:0}):_defineProperty({"&:not(:first-of-type)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}},"&.Mui-selected + .".concat(toggleButtonGroupClasses.grouped,".Mui-selected"),{borderTop:0,marginTop:0}))))}),ToggleButtonGroup=React.forwardRef(function(e,o){var t=useThemeProps({props:e,name:"MuiToggleButtonGroup"}),r=t.children,s=t.className,i=t.exclusive,n=void 0!==i&&i,a=t.onChange,l=t.orientation,p=void 0===l?"horizontal":l,u=t.size,d=void 0===u?"medium":u,c=t.value,m=_objectWithoutProperties(t,["children","className","exclusive","onChange","orientation","size","value"]),g=_extends({},t,{orientation:p,size:d}),f=useUtilityClasses(g),y=function(e,o){if(a){var t,r=c&&c.indexOf(o);c&&r>=0?(t=c.slice()).splice(r,1):t=c?c.concat(o):[o],a(e,t)}},v=function(e,o){a&&a(e,c===o?null:o)};return React.createElement(ToggleButtonGroupRoot,_extends({role:"group",className:clsx(f.root,s),ref:o,styleProps:g},m),React.Children.map(r,function(e){return React.isValidElement(e)?("production"!==process.env.NODE_ENV&&isFragment(e)&&console.error(["Material-UI: The ToggleButtonGroup component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),React.cloneElement(e,{className:clsx(f.grouped,e.props.className),onChange:n?v:y,selected:void 0===e.props.selected?isValueSelected(e.props.value,c):e.props.selected,size:e.props.size||d})):null}))});"production"!==process.env.NODE_ENV&&(ToggleButtonGroup.propTypes={children:PropTypes.node,classes:PropTypes.object,className:PropTypes.string,exclusive:PropTypes.bool,onChange:PropTypes.func,orientation:PropTypes.oneOf(["horizontal","vertical"]),size:PropTypes.oneOf(["large","medium","small"]),sx:PropTypes.object,value:PropTypes.any});export default ToggleButtonGroup;
ajax/libs/yui/3.8.0/event-custom-base/event-custom-base-coverage.js
watsoncj/cdnjs
if (typeof _yuitest_coverage == "undefined"){ _yuitest_coverage = {}; _yuitest_coverline = function(src, line){ var coverage = _yuitest_coverage[src]; if (!coverage.lines[line]){ coverage.calledLines++; } coverage.lines[line]++; }; _yuitest_coverfunc = function(src, name, line){ var coverage = _yuitest_coverage[src], funcId = name + ":" + line; if (!coverage.functions[funcId]){ coverage.calledFunctions++; } coverage.functions[funcId]++; }; } _yuitest_coverage["build/event-custom-base/event-custom-base.js"] = { lines: {}, functions: {}, coveredLines: 0, calledLines: 0, coveredFunctions: 0, calledFunctions: 0, path: "build/event-custom-base/event-custom-base.js", code: [] }; _yuitest_coverage["build/event-custom-base/event-custom-base.js"].code=["YUI.add('event-custom-base', function (Y, NAME) {","","/**"," * Custom event engine, DOM event listener abstraction layer, synthetic DOM"," * events."," * @module event-custom"," */","","Y.Env.evt = {"," handles: {},"," plugins: {}","};","","","/**"," * Custom event engine, DOM event listener abstraction layer, synthetic DOM"," * events."," * @module event-custom"," * @submodule event-custom-base"," */","","/**"," * Allows for the insertion of methods that are executed before or after"," * a specified method"," * @class Do"," * @static"," */","","var DO_BEFORE = 0,"," DO_AFTER = 1,","","DO = {",""," /**"," * Cache of objects touched by the utility"," * @property objs"," * @static"," * @deprecated Since 3.6.0. The `_yuiaop` property on the AOP'd object "," * replaces the role of this property, but is considered to be private, and "," * is only mentioned to provide a migration path."," * "," * If you have a use case which warrants migration to the _yuiaop property, "," * please file a ticket to let us know what it's used for and we can see if "," * we need to expose hooks for that functionality more formally."," */"," objs: null,",""," /**"," * <p>Execute the supplied method before the specified function. Wrapping"," * function may optionally return an instance of the following classes to"," * further alter runtime behavior:</p>"," * <dl>"," * <dt></code>Y.Do.Halt(message, returnValue)</code></dt>"," * <dd>Immediatly stop execution and return"," * <code>returnValue</code>. No other wrapping functions will be"," * executed.</dd>"," * <dt></code>Y.Do.AlterArgs(message, newArgArray)</code></dt>"," * <dd>Replace the arguments that the original function will be"," * called with.</dd>"," * <dt></code>Y.Do.Prevent(message)</code></dt>"," * <dd>Don't execute the wrapped function. Other before phase"," * wrappers will be executed.</dd>"," * </dl>"," *"," * @method before"," * @param fn {Function} the function to execute"," * @param obj the object hosting the method to displace"," * @param sFn {string} the name of the method to displace"," * @param c The execution context for fn"," * @param arg* {mixed} 0..n additional arguments to supply to the subscriber"," * when the event fires."," * @return {string} handle for the subscription"," * @static"," */"," before: function(fn, obj, sFn, c) {"," var f = fn, a;"," if (c) {"," a = [fn, c].concat(Y.Array(arguments, 4, true));"," f = Y.rbind.apply(Y, a);"," }",""," return this._inject(DO_BEFORE, f, obj, sFn);"," },",""," /**"," * <p>Execute the supplied method after the specified function. Wrapping"," * function may optionally return an instance of the following classes to"," * further alter runtime behavior:</p>"," * <dl>"," * <dt></code>Y.Do.Halt(message, returnValue)</code></dt>"," * <dd>Immediatly stop execution and return"," * <code>returnValue</code>. No other wrapping functions will be"," * executed.</dd>"," * <dt></code>Y.Do.AlterReturn(message, returnValue)</code></dt>"," * <dd>Return <code>returnValue</code> instead of the wrapped"," * method's original return value. This can be further altered by"," * other after phase wrappers.</dd>"," * </dl>"," *"," * <p>The static properties <code>Y.Do.originalRetVal</code> and"," * <code>Y.Do.currentRetVal</code> will be populated for reference.</p>"," *"," * @method after"," * @param fn {Function} the function to execute"," * @param obj the object hosting the method to displace"," * @param sFn {string} the name of the method to displace"," * @param c The execution context for fn"," * @param arg* {mixed} 0..n additional arguments to supply to the subscriber"," * @return {string} handle for the subscription"," * @static"," */"," after: function(fn, obj, sFn, c) {"," var f = fn, a;"," if (c) {"," a = [fn, c].concat(Y.Array(arguments, 4, true));"," f = Y.rbind.apply(Y, a);"," }",""," return this._inject(DO_AFTER, f, obj, sFn);"," },",""," /**"," * Execute the supplied method before or after the specified function."," * Used by <code>before</code> and <code>after</code>."," *"," * @method _inject"," * @param when {string} before or after"," * @param fn {Function} the function to execute"," * @param obj the object hosting the method to displace"," * @param sFn {string} the name of the method to displace"," * @param c The execution context for fn"," * @return {string} handle for the subscription"," * @private"," * @static"," */"," _inject: function(when, fn, obj, sFn) {"," // object id"," var id = Y.stamp(obj), o, sid;",""," if (!obj._yuiaop) {"," // create a map entry for the obj if it doesn't exist, to hold overridden methods"," obj._yuiaop = {};"," }",""," o = obj._yuiaop;",""," if (!o[sFn]) {"," // create a map entry for the method if it doesn't exist"," o[sFn] = new Y.Do.Method(obj, sFn);",""," // re-route the method to our wrapper"," obj[sFn] = function() {"," return o[sFn].exec.apply(o[sFn], arguments);"," };"," }",""," // subscriber id"," sid = id + Y.stamp(fn) + sFn;",""," // register the callback"," o[sFn].register(sid, fn, when);",""," return new Y.EventHandle(o[sFn], sid);"," },",""," /**"," * Detach a before or after subscription."," *"," * @method detach"," * @param handle {string} the subscription handle"," * @static"," */"," detach: function(handle) {"," if (handle.detach) {"," handle.detach();"," }"," },",""," _unload: function(e, me) {"," }","};","","Y.Do = DO;","","//////////////////////////////////////////////////////////////////////////","","/**"," * Contains the return value from the wrapped method, accessible"," * by 'after' event listeners."," *"," * @property originalRetVal"," * @static"," * @since 3.2.0"," */","","/**"," * Contains the current state of the return value, consumable by"," * 'after' event listeners, and updated if an after subscriber"," * changes the return value generated by the wrapped function."," *"," * @property currentRetVal"," * @static"," * @since 3.2.0"," */","","//////////////////////////////////////////////////////////////////////////","","/**"," * Wrapper for a displaced method with aop enabled"," * @class Do.Method"," * @constructor"," * @param obj The object to operate on"," * @param sFn The name of the method to displace"," */","DO.Method = function(obj, sFn) {"," this.obj = obj;"," this.methodName = sFn;"," this.method = obj[sFn];"," this.before = {};"," this.after = {};","};","","/**"," * Register a aop subscriber"," * @method register"," * @param sid {string} the subscriber id"," * @param fn {Function} the function to execute"," * @param when {string} when to execute the function"," */","DO.Method.prototype.register = function (sid, fn, when) {"," if (when) {"," this.after[sid] = fn;"," } else {"," this.before[sid] = fn;"," }","};","","/**"," * Unregister a aop subscriber"," * @method delete"," * @param sid {string} the subscriber id"," * @param fn {Function} the function to execute"," * @param when {string} when to execute the function"," */","DO.Method.prototype._delete = function (sid) {"," delete this.before[sid];"," delete this.after[sid];","};","","/**"," * <p>Execute the wrapped method. All arguments are passed into the wrapping"," * functions. If any of the before wrappers return an instance of"," * <code>Y.Do.Halt</code> or <code>Y.Do.Prevent</code>, neither the wrapped"," * function nor any after phase subscribers will be executed.</p>"," *"," * <p>The return value will be the return value of the wrapped function or one"," * provided by a wrapper function via an instance of <code>Y.Do.Halt</code> or"," * <code>Y.Do.AlterReturn</code>."," *"," * @method exec"," * @param arg* {any} Arguments are passed to the wrapping and wrapped functions"," * @return {any} Return value of wrapped function unless overwritten (see above)"," */","DO.Method.prototype.exec = function () {",""," var args = Y.Array(arguments, 0, true),"," i, ret, newRet,"," bf = this.before,"," af = this.after,"," prevented = false;",""," // execute before"," for (i in bf) {"," if (bf.hasOwnProperty(i)) {"," ret = bf[i].apply(this.obj, args);"," if (ret) {"," switch (ret.constructor) {"," case DO.Halt:"," return ret.retVal;"," case DO.AlterArgs:"," args = ret.newArgs;"," break;"," case DO.Prevent:"," prevented = true;"," break;"," default:"," }"," }"," }"," }",""," // execute method"," if (!prevented) {"," ret = this.method.apply(this.obj, args);"," }",""," DO.originalRetVal = ret;"," DO.currentRetVal = ret;",""," // execute after methods."," for (i in af) {"," if (af.hasOwnProperty(i)) {"," newRet = af[i].apply(this.obj, args);"," // Stop processing if a Halt object is returned"," if (newRet && newRet.constructor == DO.Halt) {"," return newRet.retVal;"," // Check for a new return value"," } else if (newRet && newRet.constructor == DO.AlterReturn) {"," ret = newRet.newRetVal;"," // Update the static retval state"," DO.currentRetVal = ret;"," }"," }"," }",""," return ret;","};","","//////////////////////////////////////////////////////////////////////////","","/**"," * Return an AlterArgs object when you want to change the arguments that"," * were passed into the function. Useful for Do.before subscribers. An"," * example would be a service that scrubs out illegal characters prior to"," * executing the core business logic."," * @class Do.AlterArgs"," * @constructor"," * @param msg {String} (optional) Explanation of the altered return value"," * @param newArgs {Array} Call parameters to be used for the original method"," * instead of the arguments originally passed in."," */","DO.AlterArgs = function(msg, newArgs) {"," this.msg = msg;"," this.newArgs = newArgs;","};","","/**"," * Return an AlterReturn object when you want to change the result returned"," * from the core method to the caller. Useful for Do.after subscribers."," * @class Do.AlterReturn"," * @constructor"," * @param msg {String} (optional) Explanation of the altered return value"," * @param newRetVal {any} Return value passed to code that invoked the wrapped"," * function."," */","DO.AlterReturn = function(msg, newRetVal) {"," this.msg = msg;"," this.newRetVal = newRetVal;","};","","/**"," * Return a Halt object when you want to terminate the execution"," * of all subsequent subscribers as well as the wrapped method"," * if it has not exectued yet. Useful for Do.before subscribers."," * @class Do.Halt"," * @constructor"," * @param msg {String} (optional) Explanation of why the termination was done"," * @param retVal {any} Return value passed to code that invoked the wrapped"," * function."," */","DO.Halt = function(msg, retVal) {"," this.msg = msg;"," this.retVal = retVal;","};","","/**"," * Return a Prevent object when you want to prevent the wrapped function"," * from executing, but want the remaining listeners to execute. Useful"," * for Do.before subscribers."," * @class Do.Prevent"," * @constructor"," * @param msg {String} (optional) Explanation of why the termination was done"," */","DO.Prevent = function(msg) {"," this.msg = msg;","};","","/**"," * Return an Error object when you want to terminate the execution"," * of all subsequent method calls."," * @class Do.Error"," * @constructor"," * @param msg {String} (optional) Explanation of the altered return value"," * @param retVal {any} Return value passed to code that invoked the wrapped"," * function."," * @deprecated use Y.Do.Halt or Y.Do.Prevent"," */","DO.Error = DO.Halt;","","","//////////////////////////////////////////////////////////////////////////","","// Y[\"Event\"] && Y.Event.addListener(window, \"unload\", Y.Do._unload, Y.Do);","","","/**"," * Custom event engine, DOM event listener abstraction layer, synthetic DOM"," * events."," * @module event-custom"," * @submodule event-custom-base"," */","","","// var onsubscribeType = \"_event:onsub\",","var YArray = Y.Array,",""," AFTER = 'after',"," CONFIGS = ["," 'broadcast',"," 'monitored',"," 'bubbles',"," 'context',"," 'contextFn',"," 'currentTarget',"," 'defaultFn',"," 'defaultTargetOnly',"," 'details',"," 'emitFacade',"," 'fireOnce',"," 'async',"," 'host',"," 'preventable',"," 'preventedFn',"," 'queuable',"," 'silent',"," 'stoppedFn',"," 'target',"," 'type'"," ],",""," CONFIGS_HASH = YArray.hash(CONFIGS),",""," nativeSlice = Array.prototype.slice, ",""," YUI3_SIGNATURE = 9,"," YUI_LOG = 'yui:log',",""," mixConfigs = function(r, s, ov) {"," var p;",""," for (p in s) {"," if (CONFIGS_HASH[p] && (ov || !(p in r))) { "," r[p] = s[p];"," }"," }",""," return r;"," };","","/**"," * The CustomEvent class lets you define events for your application"," * that can be subscribed to by one or more independent component."," *"," * @param {String} type The type of event, which is passed to the callback"," * when the event fires."," * @param {object} o configuration object."," * @class CustomEvent"," * @constructor"," */","Y.CustomEvent = function(type, o) {",""," this._kds = Y.CustomEvent.keepDeprecatedSubs;",""," o = o || {};",""," this.id = Y.stamp(this);",""," /**"," * The type of event, returned to subscribers when the event fires"," * @property type"," * @type string"," */"," this.type = type;",""," /**"," * The context the the event will fire from by default. Defaults to the YUI"," * instance."," * @property context"," * @type object"," */"," this.context = Y;",""," /**"," * Monitor when an event is attached or detached."," *"," * @property monitored"," * @type boolean"," */"," // this.monitored = false;",""," this.logSystem = (type == YUI_LOG);",""," /**"," * If 0, this event does not broadcast. If 1, the YUI instance is notified"," * every time this event fires. If 2, the YUI instance and the YUI global"," * (if event is enabled on the global) are notified every time this event"," * fires."," * @property broadcast"," * @type int"," */"," // this.broadcast = 0;",""," /**"," * By default all custom events are logged in the debug build, set silent"," * to true to disable debug outpu for this event."," * @property silent"," * @type boolean"," */"," this.silent = this.logSystem;",""," /**"," * Specifies whether this event should be queued when the host is actively"," * processing an event. This will effect exectution order of the callbacks"," * for the various events."," * @property queuable"," * @type boolean"," * @default false"," */"," // this.queuable = false;",""," /**"," * The subscribers to this event"," * @property subscribers"," * @type Subscriber {}"," * @deprecated"," */"," if (this._kds) {"," this.subscribers = {};"," }",""," /**"," * The subscribers to this event"," * @property _subscribers"," * @type Subscriber []"," * @private"," */"," this._subscribers = [];",""," /**"," * 'After' subscribers"," * @property afters"," * @type Subscriber {}"," */"," if (this._kds) {"," this.afters = {};"," }",""," /**"," * 'After' subscribers"," * @property _afters"," * @type Subscriber []"," * @private"," */"," this._afters = [];",""," /**"," * This event has fired if true"," *"," * @property fired"," * @type boolean"," * @default false;"," */"," // this.fired = false;",""," /**"," * An array containing the arguments the custom event"," * was last fired with."," * @property firedWith"," * @type Array"," */"," // this.firedWith;",""," /**"," * This event should only fire one time if true, and if"," * it has fired, any new subscribers should be notified"," * immediately."," *"," * @property fireOnce"," * @type boolean"," * @default false;"," */"," // this.fireOnce = false;",""," /**"," * fireOnce listeners will fire syncronously unless async"," * is set to true"," * @property async"," * @type boolean"," * @default false"," */"," //this.async = false;",""," /**"," * Flag for stopPropagation that is modified during fire()"," * 1 means to stop propagation to bubble targets. 2 means"," * to also stop additional subscribers on this target."," * @property stopped"," * @type int"," */"," // this.stopped = 0;",""," /**"," * Flag for preventDefault that is modified during fire()."," * if it is not 0, the default behavior for this event"," * @property prevented"," * @type int"," */"," // this.prevented = 0;",""," /**"," * Specifies the host for this custom event. This is used"," * to enable event bubbling"," * @property host"," * @type EventTarget"," */"," // this.host = null;",""," /**"," * The default function to execute after event listeners"," * have fire, but only if the default action was not"," * prevented."," * @property defaultFn"," * @type Function"," */"," // this.defaultFn = null;",""," /**"," * The function to execute if a subscriber calls"," * stopPropagation or stopImmediatePropagation"," * @property stoppedFn"," * @type Function"," */"," // this.stoppedFn = null;",""," /**"," * The function to execute if a subscriber calls"," * preventDefault"," * @property preventedFn"," * @type Function"," */"," // this.preventedFn = null;",""," /**"," * Specifies whether or not this event's default function"," * can be cancelled by a subscriber by executing preventDefault()"," * on the event facade"," * @property preventable"," * @type boolean"," * @default true"," */"," this.preventable = true;",""," /**"," * Specifies whether or not a subscriber can stop the event propagation"," * via stopPropagation(), stopImmediatePropagation(), or halt()"," *"," * Events can only bubble if emitFacade is true."," *"," * @property bubbles"," * @type boolean"," * @default true"," */"," this.bubbles = true;",""," /**"," * Supports multiple options for listener signatures in order to"," * port YUI 2 apps."," * @property signature"," * @type int"," * @default 9"," */"," this.signature = YUI3_SIGNATURE;",""," // this.subCount = 0;"," // this.afterCount = 0;",""," // this.hasSubscribers = false;"," // this.hasAfters = false;",""," /**"," * If set to true, the custom event will deliver an EventFacade object"," * that is similar to a DOM event object."," * @property emitFacade"," * @type boolean"," * @default false"," */"," // this.emitFacade = false;",""," this.applyConfig(o, true);","","","};","","/**"," * Static flag to enable population of the <a href=\"#property_subscribers\">`subscribers`</a>"," * and <a href=\"#property_subscribers\">`afters`</a> properties held on a `CustomEvent` instance."," * "," * These properties were changed to private properties (`_subscribers` and `_afters`), and "," * converted from objects to arrays for performance reasons. "," *"," * Setting this property to true will populate the deprecated `subscribers` and `afters` "," * properties for people who may be using them (which is expected to be rare). There will"," * be a performance hit, compared to the new array based implementation."," *"," * If you are using these deprecated properties for a use case which the public API"," * does not support, please file an enhancement request, and we can provide an alternate "," * public implementation which doesn't have the performance cost required to maintiain the"," * properties as objects."," *"," * @property keepDeprecatedSubs"," * @static"," * @for CustomEvent"," * @type boolean"," * @default false"," * @deprecated"," */","Y.CustomEvent.keepDeprecatedSubs = false;","","Y.CustomEvent.mixConfigs = mixConfigs;","","Y.CustomEvent.prototype = {",""," constructor: Y.CustomEvent,",""," /**"," * Returns the number of subscribers for this event as the sum of the on()"," * subscribers and after() subscribers."," *"," * @method hasSubs"," * @return Number"," */"," hasSubs: function(when) {"," var s = this._subscribers.length, a = this._afters.length, sib = this.sibling;",""," if (sib) {"," s += sib._subscribers.length;"," a += sib._afters.length;"," }",""," if (when) {"," return (when == 'after') ? a : s;"," }",""," return (s + a);"," },",""," /**"," * Monitor the event state for the subscribed event. The first parameter"," * is what should be monitored, the rest are the normal parameters when"," * subscribing to an event."," * @method monitor"," * @param what {string} what to monitor ('detach', 'attach', 'publish')."," * @return {EventHandle} return value from the monitor event subscription."," */"," monitor: function(what) {"," this.monitored = true;"," var type = this.id + '|' + this.type + '_' + what,"," args = nativeSlice.call(arguments, 0);"," args[0] = type;"," return this.host.on.apply(this.host, args);"," },",""," /**"," * Get all of the subscribers to this event and any sibling event"," * @method getSubs"," * @return {Array} first item is the on subscribers, second the after."," */"," getSubs: function() {"," var s = this._subscribers, a = this._afters, sib = this.sibling;",""," s = (sib) ? s.concat(sib._subscribers) : s.concat();"," a = (sib) ? a.concat(sib._afters) : a.concat();",""," return [s, a];"," },",""," /**"," * Apply configuration properties. Only applies the CONFIG whitelist"," * @method applyConfig"," * @param o hash of properties to apply."," * @param force {boolean} if true, properties that exist on the event"," * will be overwritten."," */"," applyConfig: function(o, force) {"," mixConfigs(this, o, force);"," },",""," /**"," * Create the Subscription for subscribing function, context, and bound"," * arguments. If this is a fireOnce event, the subscriber is immediately "," * notified."," *"," * @method _on"," * @param fn {Function} Subscription callback"," * @param [context] {Object} Override `this` in the callback"," * @param [args] {Array} bound arguments that will be passed to the callback after the arguments generated by fire()"," * @param [when] {String} \"after\" to slot into after subscribers"," * @return {EventHandle}"," * @protected"," */"," _on: function(fn, context, args, when) {","",""," var s = new Y.Subscriber(fn, context, args, when);",""," if (this.fireOnce && this.fired) {"," if (this.async) {"," setTimeout(Y.bind(this._notify, this, s, this.firedWith), 0);"," } else {"," this._notify(s, this.firedWith);"," }"," }",""," if (when == AFTER) {"," this._afters.push(s);"," } else {"," this._subscribers.push(s);"," }",""," if (this._kds) {"," if (when == AFTER) {"," this.afters[s.id] = s;"," } else {"," this.subscribers[s.id] = s;"," }"," }",""," return new Y.EventHandle(this, s);"," },",""," /**"," * Listen for this event"," * @method subscribe"," * @param {Function} fn The function to execute."," * @return {EventHandle} Unsubscribe handle."," * @deprecated use on."," */"," subscribe: function(fn, context) {"," var a = (arguments.length > 2) ? nativeSlice.call(arguments, 2) : null;"," return this._on(fn, context, a, true);"," },"," "," /**"," * Listen for this event"," * @method on"," * @param {Function} fn The function to execute."," * @param {object} context optional execution context."," * @param {mixed} arg* 0..n additional arguments to supply to the subscriber"," * when the event fires."," * @return {EventHandle} An object with a detach method to detch the handler(s)."," */"," on: function(fn, context) {"," var a = (arguments.length > 2) ? nativeSlice.call(arguments, 2) : null;",""," if (this.monitored && this.host) {"," this.host._monitor('attach', this, {"," args: arguments"," });"," }"," return this._on(fn, context, a, true);"," },",""," /**"," * Listen for this event after the normal subscribers have been notified and"," * the default behavior has been applied. If a normal subscriber prevents the"," * default behavior, it also prevents after listeners from firing."," * @method after"," * @param {Function} fn The function to execute."," * @param {object} context optional execution context."," * @param {mixed} arg* 0..n additional arguments to supply to the subscriber"," * when the event fires."," * @return {EventHandle} handle Unsubscribe handle."," */"," after: function(fn, context) {"," var a = (arguments.length > 2) ? nativeSlice.call(arguments, 2) : null;"," return this._on(fn, context, a, AFTER);"," },",""," /**"," * Detach listeners."," * @method detach"," * @param {Function} fn The subscribed function to remove, if not supplied"," * all will be removed."," * @param {Object} context The context object passed to subscribe."," * @return {int} returns the number of subscribers unsubscribed."," */"," detach: function(fn, context) {"," // unsubscribe handle"," if (fn && fn.detach) {"," return fn.detach();"," }"," "," var i, s,"," found = 0,"," subs = this._subscribers,"," afters = this._afters;",""," for (i = subs.length; i >= 0; i--) {"," s = subs[i];"," if (s && (!fn || fn === s.fn)) {"," this._delete(s, subs, i);"," found++;"," }"," }",""," for (i = afters.length; i >= 0; i--) {"," s = afters[i];"," if (s && (!fn || fn === s.fn)) {"," this._delete(s, afters, i);"," found++;"," }"," }",""," return found;"," },",""," /**"," * Detach listeners."," * @method unsubscribe"," * @param {Function} fn The subscribed function to remove, if not supplied"," * all will be removed."," * @param {Object} context The context object passed to subscribe."," * @return {int|undefined} returns the number of subscribers unsubscribed."," * @deprecated use detach."," */"," unsubscribe: function() {"," return this.detach.apply(this, arguments);"," },",""," /**"," * Notify a single subscriber"," * @method _notify"," * @param {Subscriber} s the subscriber."," * @param {Array} args the arguments array to apply to the listener."," * @protected"," */"," _notify: function(s, args, ef) {","",""," var ret;",""," ret = s.notify(args, this);",""," if (false === ret || this.stopped > 1) {"," return false;"," }",""," return true;"," },",""," /**"," * Logger abstraction to centralize the application of the silent flag"," * @method log"," * @param {string} msg message to log."," * @param {string} cat log category."," */"," log: function(msg, cat) {"," },",""," /**"," * Notifies the subscribers. The callback functions will be executed"," * from the context specified when the event was created, and with the"," * following parameters:"," * <ul>"," * <li>The type of event</li>"," * <li>All of the arguments fire() was executed with as an array</li>"," * <li>The custom object (if any) that was passed into the subscribe()"," * method</li>"," * </ul>"," * @method fire"," * @param {Object*} arguments an arbitrary set of parameters to pass to"," * the handler."," * @return {boolean} false if one of the subscribers returned false,"," * true otherwise."," *"," */"," fire: function() {"," if (this.fireOnce && this.fired) {"," return true;"," } else {",""," var args = nativeSlice.call(arguments, 0);",""," // this doesn't happen if the event isn't published"," // this.host._monitor('fire', this.type, args);",""," this.fired = true;",""," if (this.fireOnce) {"," this.firedWith = args;"," }",""," if (this.emitFacade) {"," return this.fireComplex(args);"," } else {"," return this.fireSimple(args);"," }"," }"," },",""," /**"," * Set up for notifying subscribers of non-emitFacade events."," *"," * @method fireSimple"," * @param args {Array} Arguments passed to fire()"," * @return Boolean false if a subscriber returned false"," * @protected"," */"," fireSimple: function(args) {"," this.stopped = 0;"," this.prevented = 0;"," if (this.hasSubs()) {"," var subs = this.getSubs();"," this._procSubs(subs[0], args);"," this._procSubs(subs[1], args);"," }"," this._broadcast(args);"," return this.stopped ? false : true;"," },",""," // Requires the event-custom-complex module for full funcitonality."," fireComplex: function(args) {"," args[0] = args[0] || {};"," return this.fireSimple(args);"," },",""," /**"," * Notifies a list of subscribers."," *"," * @method _procSubs"," * @param subs {Array} List of subscribers"," * @param args {Array} Arguments passed to fire()"," * @param ef {}"," * @return Boolean false if a subscriber returns false or stops the event"," * propagation via e.stopPropagation(),"," * e.stopImmediatePropagation(), or e.halt()"," * @private"," */"," _procSubs: function(subs, args, ef) {"," var s, i, l;",""," for (i = 0, l = subs.length; i < l; i++) {"," s = subs[i];"," if (s && s.fn) {"," if (false === this._notify(s, args, ef)) {"," this.stopped = 2;"," }"," if (this.stopped == 2) {"," return false;"," }"," }"," }",""," return true;"," },",""," /**"," * Notifies the YUI instance if the event is configured with broadcast = 1,"," * and both the YUI instance and Y.Global if configured with broadcast = 2."," *"," * @method _broadcast"," * @param args {Array} Arguments sent to fire()"," * @private"," */"," _broadcast: function(args) {"," if (!this.stopped && this.broadcast) {",""," var a = args.concat();"," a.unshift(this.type);",""," if (this.host !== Y) {"," Y.fire.apply(Y, a);"," }",""," if (this.broadcast == 2) {"," Y.Global.fire.apply(Y.Global, a);"," }"," }"," },",""," /**"," * Removes all listeners"," * @method unsubscribeAll"," * @return {int} The number of listeners unsubscribed."," * @deprecated use detachAll."," */"," unsubscribeAll: function() {"," return this.detachAll.apply(this, arguments);"," },",""," /**"," * Removes all listeners"," * @method detachAll"," * @return {int} The number of listeners unsubscribed."," */"," detachAll: function() {"," return this.detach();"," },",""," /**"," * Deletes the subscriber from the internal store of on() and after()"," * subscribers."," *"," * @method _delete"," * @param s subscriber object."," * @param subs (optional) on or after subscriber array"," * @param index (optional) The index found."," * @private"," */"," _delete: function(s, subs, i) {"," var when = s._when;",""," if (!subs) {"," subs = (when === AFTER) ? this._afters : this._subscribers; "," i = YArray.indexOf(subs, s, 0);"," }",""," if (s && subs[i] === s) {"," subs.splice(i, 1);"," }",""," if (this._kds) {"," if (when === AFTER) {"," delete this.afters[s.id];"," } else {"," delete this.subscribers[s.id];"," }"," }",""," if (this.monitored && this.host) {"," this.host._monitor('detach', this, {"," ce: this,"," sub: s"," });"," }",""," if (s) {"," s.deleted = true;"," }"," }","};","/**"," * Stores the subscriber information to be used when the event fires."," * @param {Function} fn The wrapped function to execute."," * @param {Object} context The value of the keyword 'this' in the listener."," * @param {Array} args* 0..n additional arguments to supply the listener."," *"," * @class Subscriber"," * @constructor"," */","Y.Subscriber = function(fn, context, args, when) {",""," /**"," * The callback that will be execute when the event fires"," * This is wrapped by Y.rbind if obj was supplied."," * @property fn"," * @type Function"," */"," this.fn = fn;",""," /**"," * Optional 'this' keyword for the listener"," * @property context"," * @type Object"," */"," this.context = context;",""," /**"," * Unique subscriber id"," * @property id"," * @type String"," */"," this.id = Y.stamp(this);",""," /**"," * Additional arguments to propagate to the subscriber"," * @property args"," * @type Array"," */"," this.args = args;",""," this._when = when;",""," /**"," * Custom events for a given fire transaction."," * @property events"," * @type {EventTarget}"," */"," // this.events = null;",""," /**"," * This listener only reacts to the event once"," * @property once"," */"," // this.once = false;","","};","","Y.Subscriber.prototype = {"," constructor: Y.Subscriber,",""," _notify: function(c, args, ce) {"," if (this.deleted && !this.postponed) {"," if (this.postponed) {"," delete this.fn;"," delete this.context;"," } else {"," delete this.postponed;"," return null;"," }"," }"," var a = this.args, ret;"," switch (ce.signature) {"," case 0:"," ret = this.fn.call(c, ce.type, args, c);"," break;"," case 1:"," ret = this.fn.call(c, args[0] || null, c);"," break;"," default:"," if (a || args) {"," args = args || [];"," a = (a) ? args.concat(a) : args;"," ret = this.fn.apply(c, a);"," } else {"," ret = this.fn.call(c);"," }"," }",""," if (this.once) {"," ce._delete(this);"," }",""," return ret;"," },",""," /**"," * Executes the subscriber."," * @method notify"," * @param args {Array} Arguments array for the subscriber."," * @param ce {CustomEvent} The custom event that sent the notification."," */"," notify: function(args, ce) {"," var c = this.context,"," ret = true;",""," if (!c) {"," c = (ce.contextFn) ? ce.contextFn() : ce.context;"," }",""," // only catch errors if we will not re-throw them."," if (Y.config && Y.config.throwFail) {"," ret = this._notify(c, args, ce);"," } else {"," try {"," ret = this._notify(c, args, ce);"," } catch (e) {"," Y.error(this + ' failed: ' + e.message, e);"," }"," }",""," return ret;"," },",""," /**"," * Returns true if the fn and obj match this objects properties."," * Used by the unsubscribe method to match the right subscriber."," *"," * @method contains"," * @param {Function} fn the function to execute."," * @param {Object} context optional 'this' keyword for the listener."," * @return {boolean} true if the supplied arguments match this"," * subscriber's signature."," */"," contains: function(fn, context) {"," if (context) {"," return ((this.fn == fn) && this.context == context);"," } else {"," return (this.fn == fn);"," }"," },"," "," valueOf : function() {"," return this.id;"," }","","};","/**"," * Return value from all subscribe operations"," * @class EventHandle"," * @constructor"," * @param {CustomEvent} evt the custom event."," * @param {Subscriber} sub the subscriber."," */","Y.EventHandle = function(evt, sub) {",""," /**"," * The custom event"," *"," * @property evt"," * @type CustomEvent"," */"," this.evt = evt;",""," /**"," * The subscriber object"," *"," * @property sub"," * @type Subscriber"," */"," this.sub = sub;","};","","Y.EventHandle.prototype = {"," batch: function(f, c) {"," f.call(c || this, this);"," if (Y.Lang.isArray(this.evt)) {"," Y.Array.each(this.evt, function(h) {"," h.batch.call(c || h, f);"," });"," }"," },",""," /**"," * Detaches this subscriber"," * @method detach"," * @return {int} the number of detached listeners"," */"," detach: function() {"," var evt = this.evt, detached = 0, i;"," if (evt) {"," if (Y.Lang.isArray(evt)) {"," for (i = 0; i < evt.length; i++) {"," detached += evt[i].detach();"," }"," } else {"," evt._delete(this.sub);"," detached = 1;"," }",""," }",""," return detached;"," },",""," /**"," * Monitor the event state for the subscribed event. The first parameter"," * is what should be monitored, the rest are the normal parameters when"," * subscribing to an event."," * @method monitor"," * @param what {string} what to monitor ('attach', 'detach', 'publish')."," * @return {EventHandle} return value from the monitor event subscription."," */"," monitor: function(what) {"," return this.evt.monitor.apply(this.evt, arguments);"," }","};","","/**"," * Custom event engine, DOM event listener abstraction layer, synthetic DOM"," * events."," * @module event-custom"," * @submodule event-custom-base"," */","","/**"," * EventTarget provides the implementation for any object to"," * publish, subscribe and fire to custom events, and also"," * alows other EventTargets to target the object with events"," * sourced from the other object."," * EventTarget is designed to be used with Y.augment to wrap"," * EventCustom in an interface that allows events to be listened to"," * and fired by name. This makes it possible for implementing code to"," * subscribe to an event that either has not been created yet, or will"," * not be created at all."," * @class EventTarget"," * @param opts a configuration object"," * @config emitFacade {boolean} if true, all events will emit event"," * facade payloads by default (default false)"," * @config prefix {String} the prefix to apply to non-prefixed event names"," */","","var L = Y.Lang,"," PREFIX_DELIMITER = ':',"," CATEGORY_DELIMITER = '|',"," AFTER_PREFIX = '~AFTER~',"," WILD_TYPE_RE = /(.*?)(:)(.*?)/,",""," _wildType = Y.cached(function(type) {"," return type.replace(WILD_TYPE_RE, \"*$2$3\");"," }),",""," /**"," * If the instance has a prefix attribute and the"," * event type is not prefixed, the instance prefix is"," * applied to the supplied type."," * @method _getType"," * @private"," */"," _getType = Y.cached(function(type, pre) {",""," if (!pre || (typeof type !== \"string\") || type.indexOf(PREFIX_DELIMITER) > -1) {"," return type;"," }",""," return pre + PREFIX_DELIMITER + type;"," }),",""," /**"," * Returns an array with the detach key (if provided),"," * and the prefixed event name from _getType"," * Y.on('detachcategory| menu:click', fn)"," * @method _parseType"," * @private"," */"," _parseType = Y.cached(function(type, pre) {",""," var t = type, detachcategory, after, i;",""," if (!L.isString(t)) {"," return t;"," }",""," i = t.indexOf(AFTER_PREFIX);",""," if (i > -1) {"," after = true;"," t = t.substr(AFTER_PREFIX.length);"," }",""," i = t.indexOf(CATEGORY_DELIMITER);",""," if (i > -1) {"," detachcategory = t.substr(0, (i));"," t = t.substr(i+1);"," if (t == '*') {"," t = null;"," }"," }",""," // detach category, full type with instance prefix, is this an after listener, short type"," return [detachcategory, (pre) ? _getType(t, pre) : t, after, t];"," }),",""," ET = function(opts) {","",""," var o = (L.isObject(opts)) ? opts : {};",""," this._yuievt = this._yuievt || {",""," id: Y.guid(),",""," events: {},",""," targets: {},",""," config: o,",""," chain: ('chain' in o) ? o.chain : Y.config.chain,",""," bubbling: false,",""," defaults: {"," context: o.context || this,"," host: this,"," emitFacade: o.emitFacade,"," fireOnce: o.fireOnce,"," queuable: o.queuable,"," monitored: o.monitored,"," broadcast: o.broadcast,"," defaultTargetOnly: o.defaultTargetOnly,"," bubbles: ('bubbles' in o) ? o.bubbles : true"," }"," };"," };","","","ET.prototype = {"," constructor: ET,",""," /**"," * Listen to a custom event hosted by this object one time."," * This is the equivalent to <code>on</code> except the"," * listener is immediatelly detached when it is executed."," * @method once"," * @param {String} type The name of the event"," * @param {Function} fn The callback to execute in response to the event"," * @param {Object} [context] Override `this` object in callback"," * @param {Any} [arg*] 0..n additional arguments to supply to the subscriber"," * @return {EventHandle} A subscription handle capable of detaching the"," * subscription"," */"," once: function() {"," var handle = this.on.apply(this, arguments);"," handle.batch(function(hand) {"," if (hand.sub) {"," hand.sub.once = true;"," }"," });"," return handle;"," },",""," /**"," * Listen to a custom event hosted by this object one time."," * This is the equivalent to <code>after</code> except the"," * listener is immediatelly detached when it is executed."," * @method onceAfter"," * @param {String} type The name of the event"," * @param {Function} fn The callback to execute in response to the event"," * @param {Object} [context] Override `this` object in callback"," * @param {Any} [arg*] 0..n additional arguments to supply to the subscriber"," * @return {EventHandle} A subscription handle capable of detaching that"," * subscription"," */"," onceAfter: function() {"," var handle = this.after.apply(this, arguments);"," handle.batch(function(hand) {"," if (hand.sub) {"," hand.sub.once = true;"," }"," });"," return handle;"," },",""," /**"," * Takes the type parameter passed to 'on' and parses out the"," * various pieces that could be included in the type. If the"," * event type is passed without a prefix, it will be expanded"," * to include the prefix one is supplied or the event target"," * is configured with a default prefix."," * @method parseType"," * @param {String} type the type"," * @param {String} [pre=this._yuievt.config.prefix] the prefix"," * @since 3.3.0"," * @return {Array} an array containing:"," * * the detach category, if supplied,"," * * the prefixed event type,"," * * whether or not this is an after listener,"," * * the supplied event type"," */"," parseType: function(type, pre) {"," return _parseType(type, pre || this._yuievt.config.prefix);"," },",""," /**"," * Subscribe a callback function to a custom event fired by this object or"," * from an object that bubbles its events to this object."," *"," * Callback functions for events published with `emitFacade = true` will"," * receive an `EventFacade` as the first argument (typically named \"e\")."," * These callbacks can then call `e.preventDefault()` to disable the"," * behavior published to that event's `defaultFn`. See the `EventFacade`"," * API for all available properties and methods. Subscribers to"," * non-`emitFacade` events will receive the arguments passed to `fire()`"," * after the event name."," *"," * To subscribe to multiple events at once, pass an object as the first"," * argument, where the key:value pairs correspond to the eventName:callback,"," * or pass an array of event names as the first argument to subscribe to"," * all listed events with the same callback."," *"," * Returning `false` from a callback is supported as an alternative to"," * calling `e.preventDefault(); e.stopPropagation();`. However, it is"," * recommended to use the event methods whenever possible."," *"," * @method on"," * @param {String} type The name of the event"," * @param {Function} fn The callback to execute in response to the event"," * @param {Object} [context] Override `this` object in callback"," * @param {Any} [arg*] 0..n additional arguments to supply to the subscriber"," * @return {EventHandle} A subscription handle capable of detaching that"," * subscription"," */"," on: function(type, fn, context) {",""," var yuievt = this._yuievt,"," parts = _parseType(type, yuievt.config.prefix), f, c, args, ret, ce,"," detachcategory, handle, store = Y.Env.evt.handles, after, adapt, shorttype,"," Node = Y.Node, n, domevent, isArr;",""," // full name, args, detachcategory, after"," this._monitor('attach', parts[1], {"," args: arguments,"," category: parts[0],"," after: parts[2]"," });",""," if (L.isObject(type)) {",""," if (L.isFunction(type)) {"," return Y.Do.before.apply(Y.Do, arguments);"," }",""," f = fn;"," c = context;"," args = nativeSlice.call(arguments, 0);"," ret = [];",""," if (L.isArray(type)) {"," isArr = true;"," }",""," after = type._after;"," delete type._after;",""," Y.each(type, function(v, k) {",""," if (L.isObject(v)) {"," f = v.fn || ((L.isFunction(v)) ? v : f);"," c = v.context || c;"," }",""," var nv = (after) ? AFTER_PREFIX : '';",""," args[0] = nv + ((isArr) ? v : k);"," args[1] = f;"," args[2] = c;",""," ret.push(this.on.apply(this, args));",""," }, this);",""," return (yuievt.chain) ? this : new Y.EventHandle(ret);"," }",""," detachcategory = parts[0];"," after = parts[2];"," shorttype = parts[3];",""," // extra redirection so we catch adaptor events too. take a look at this."," if (Node && Y.instanceOf(this, Node) && (shorttype in Node.DOM_EVENTS)) {"," args = nativeSlice.call(arguments, 0);"," args.splice(2, 0, Node.getDOMNode(this));"," return Y.on.apply(Y, args);"," }",""," type = parts[1];",""," if (Y.instanceOf(this, YUI)) {",""," adapt = Y.Env.evt.plugins[type];"," args = nativeSlice.call(arguments, 0);"," args[0] = shorttype;",""," if (Node) {"," n = args[2];",""," if (Y.instanceOf(n, Y.NodeList)) {"," n = Y.NodeList.getDOMNodes(n);"," } else if (Y.instanceOf(n, Node)) {"," n = Node.getDOMNode(n);"," }",""," domevent = (shorttype in Node.DOM_EVENTS);",""," // Captures both DOM events and event plugins."," if (domevent) {"," args[2] = n;"," }"," }",""," // check for the existance of an event adaptor"," if (adapt) {"," handle = adapt.on.apply(Y, args);"," } else if ((!type) || domevent) {"," handle = Y.Event._attach(args);"," }",""," }",""," if (!handle) {"," ce = yuievt.events[type] || this.publish(type);"," handle = ce._on(fn, context, (arguments.length > 3) ? nativeSlice.call(arguments, 3) : null, (after) ? 'after' : true);"," }",""," if (detachcategory) {"," store[detachcategory] = store[detachcategory] || {};"," store[detachcategory][type] = store[detachcategory][type] || [];"," store[detachcategory][type].push(handle);"," }",""," return (yuievt.chain) ? this : handle;",""," },",""," /**"," * subscribe to an event"," * @method subscribe"," * @deprecated use on"," */"," subscribe: function() {"," return this.on.apply(this, arguments);"," },",""," /**"," * Detach one or more listeners the from the specified event"," * @method detach"," * @param type {string|Object} Either the handle to the subscriber or the"," * type of event. If the type"," * is not specified, it will attempt to remove"," * the listener from all hosted events."," * @param fn {Function} The subscribed function to unsubscribe, if not"," * supplied, all subscribers will be removed."," * @param context {Object} The custom object passed to subscribe. This is"," * optional, but if supplied will be used to"," * disambiguate multiple listeners that are the same"," * (e.g., you subscribe many object using a function"," * that lives on the prototype)"," * @return {EventTarget} the host"," */"," detach: function(type, fn, context) {"," var evts = this._yuievt.events, i,"," Node = Y.Node, isNode = Node && (Y.instanceOf(this, Node));",""," // detachAll disabled on the Y instance."," if (!type && (this !== Y)) {"," for (i in evts) {"," if (evts.hasOwnProperty(i)) {"," evts[i].detach(fn, context);"," }"," }"," if (isNode) {"," Y.Event.purgeElement(Node.getDOMNode(this));"," }",""," return this;"," }",""," var parts = _parseType(type, this._yuievt.config.prefix),"," detachcategory = L.isArray(parts) ? parts[0] : null,"," shorttype = (parts) ? parts[3] : null,"," adapt, store = Y.Env.evt.handles, detachhost, cat, args,"," ce,",""," keyDetacher = function(lcat, ltype, host) {"," var handles = lcat[ltype], ce, i;"," if (handles) {"," for (i = handles.length - 1; i >= 0; --i) {"," ce = handles[i].evt;"," if (ce.host === host || ce.el === host) {"," handles[i].detach();"," }"," }"," }"," };",""," if (detachcategory) {",""," cat = store[detachcategory];"," type = parts[1];"," detachhost = (isNode) ? Y.Node.getDOMNode(this) : this;",""," if (cat) {"," if (type) {"," keyDetacher(cat, type, detachhost);"," } else {"," for (i in cat) {"," if (cat.hasOwnProperty(i)) {"," keyDetacher(cat, i, detachhost);"," }"," }"," }",""," return this;"," }",""," // If this is an event handle, use it to detach"," } else if (L.isObject(type) && type.detach) {"," type.detach();"," return this;"," // extra redirection so we catch adaptor events too. take a look at this."," } else if (isNode && ((!shorttype) || (shorttype in Node.DOM_EVENTS))) {"," args = nativeSlice.call(arguments, 0);"," args[2] = Node.getDOMNode(this);"," Y.detach.apply(Y, args);"," return this;"," }",""," adapt = Y.Env.evt.plugins[shorttype];",""," // The YUI instance handles DOM events and adaptors"," if (Y.instanceOf(this, YUI)) {"," args = nativeSlice.call(arguments, 0);"," // use the adaptor specific detach code if"," if (adapt && adapt.detach) {"," adapt.detach.apply(Y, args);"," return this;"," // DOM event fork"," } else if (!type || (!adapt && Node && (type in Node.DOM_EVENTS))) {"," args[0] = type;"," Y.Event.detach.apply(Y.Event, args);"," return this;"," }"," }",""," // ce = evts[type];"," ce = evts[parts[1]];"," if (ce) {"," ce.detach(fn, context);"," }",""," return this;"," },",""," /**"," * detach a listener"," * @method unsubscribe"," * @deprecated use detach"," */"," unsubscribe: function() {"," return this.detach.apply(this, arguments);"," },",""," /**"," * Removes all listeners from the specified event. If the event type"," * is not specified, all listeners from all hosted custom events will"," * be removed."," * @method detachAll"," * @param type {String} The type, or name of the event"," */"," detachAll: function(type) {"," return this.detach(type);"," },",""," /**"," * Removes all listeners from the specified event. If the event type"," * is not specified, all listeners from all hosted custom events will"," * be removed."," * @method unsubscribeAll"," * @param type {String} The type, or name of the event"," * @deprecated use detachAll"," */"," unsubscribeAll: function() {"," return this.detachAll.apply(this, arguments);"," },",""," /**"," * Creates a new custom event of the specified type. If a custom event"," * by that name already exists, it will not be re-created. In either"," * case the custom event is returned."," *"," * @method publish"," *"," * @param type {String} the type, or name of the event"," * @param opts {object} optional config params. Valid properties are:"," *"," * <ul>"," * <li>"," * 'broadcast': whether or not the YUI instance and YUI global are notified when the event is fired (false)"," * </li>"," * <li>"," * 'bubbles': whether or not this event bubbles (true)"," * Events can only bubble if emitFacade is true."," * </li>"," * <li>"," * 'context': the default execution context for the listeners (this)"," * </li>"," * <li>"," * 'defaultFn': the default function to execute when this event fires if preventDefault was not called"," * </li>"," * <li>"," * 'emitFacade': whether or not this event emits a facade (false)"," * </li>"," * <li>"," * 'prefix': the prefix for this targets events, e.g., 'menu' in 'menu:click'"," * </li>"," * <li>"," * 'fireOnce': if an event is configured to fire once, new subscribers after"," * the fire will be notified immediately."," * </li>"," * <li>"," * 'async': fireOnce event listeners will fire synchronously if the event has already"," * fired unless async is true."," * </li>"," * <li>"," * 'preventable': whether or not preventDefault() has an effect (true)"," * </li>"," * <li>"," * 'preventedFn': a function that is executed when preventDefault is called"," * </li>"," * <li>"," * 'queuable': whether or not this event can be queued during bubbling (false)"," * </li>"," * <li>"," * 'silent': if silent is true, debug messages are not provided for this event."," * </li>"," * <li>"," * 'stoppedFn': a function that is executed when stopPropagation is called"," * </li>"," *"," * <li>"," * 'monitored': specifies whether or not this event should send notifications about"," * when the event has been attached, detached, or published."," * </li>"," * <li>"," * 'type': the event type (valid option if not provided as the first parameter to publish)"," * </li>"," * </ul>"," *"," * @return {CustomEvent} the custom event"," *"," */"," publish: function(type, opts) {"," var events, ce, ret, defaults,"," edata = this._yuievt,"," pre = edata.config.prefix;",""," if (L.isObject(type)) {"," ret = {};"," Y.each(type, function(v, k) {"," ret[k] = this.publish(k, v || opts);"," }, this);",""," return ret;"," }",""," type = (pre) ? _getType(type, pre) : type;",""," events = edata.events;"," ce = events[type];",""," this._monitor('publish', type, {"," args: arguments"," });",""," if (ce) {"," // ce.log(\"publish applying new config to published event: '\"+type+\"' exists\", 'info', 'event');"," if (opts) {"," ce.applyConfig(opts, true);"," }"," } else {"," // TODO: Lazy publish goes here."," defaults = edata.defaults;",""," // apply defaults"," ce = new Y.CustomEvent(type, defaults);"," if (opts) {"," ce.applyConfig(opts, true);"," }",""," events[type] = ce;"," }",""," // make sure we turn the broadcast flag off if this"," // event was published as a result of bubbling"," // if (opts instanceof Y.CustomEvent) {"," // events[type].broadcast = false;"," // }",""," return events[type];"," },",""," /**"," * This is the entry point for the event monitoring system."," * You can monitor 'attach', 'detach', 'fire', and 'publish'."," * When configured, these events generate an event. click ->"," * click_attach, click_detach, click_publish -- these can"," * be subscribed to like other events to monitor the event"," * system. Inividual published events can have monitoring"," * turned on or off (publish can't be turned off before it"," * it published) by setting the events 'monitor' config."," *"," * @method _monitor"," * @param what {String} 'attach', 'detach', 'fire', or 'publish'"," * @param eventType {String|CustomEvent} The prefixed name of the event being monitored, or the CustomEvent object."," * @param o {Object} Information about the event interaction, such as"," * fire() args, subscription category, publish config"," * @private"," */"," _monitor: function(what, eventType, o) {"," var monitorevt, ce, type;",""," if (eventType) {"," if (typeof eventType === \"string\") {"," type = eventType;"," ce = this.getEvent(eventType, true);"," } else {"," ce = eventType;"," type = eventType.type;"," }",""," if ((this._yuievt.config.monitored && (!ce || ce.monitored)) || (ce && ce.monitored)) {"," monitorevt = type + '_' + what;"," o.monitored = what;"," this.fire.call(this, monitorevt, o);"," }"," }"," },",""," /**"," * Fire a custom event by name. The callback functions will be executed"," * from the context specified when the event was created, and with the"," * following parameters."," *"," * If the custom event object hasn't been created, then the event hasn't"," * been published and it has no subscribers. For performance sake, we"," * immediate exit in this case. This means the event won't bubble, so"," * if the intention is that a bubble target be notified, the event must"," * be published on this object first."," *"," * The first argument is the event type, and any additional arguments are"," * passed to the listeners as parameters. If the first of these is an"," * object literal, and the event is configured to emit an event facade,"," * that object is mixed into the event facade and the facade is provided"," * in place of the original object."," *"," * @method fire"," * @param type {String|Object} The type of the event, or an object that contains"," * a 'type' property."," * @param arguments {Object*} an arbitrary set of parameters to pass to"," * the handler. If the first of these is an object literal and the event is"," * configured to emit an event facade, the event facade will replace that"," * parameter after the properties the object literal contains are copied to"," * the event facade."," * @return {EventTarget} the event host"," */"," fire: function(type) {",""," var typeIncluded = L.isString(type),"," t = (typeIncluded) ? type : (type && type.type),"," yuievt = this._yuievt,"," pre = yuievt.config.prefix, "," ce, ret, "," ce2,"," args = (typeIncluded) ? nativeSlice.call(arguments, 1) : arguments;",""," t = (pre) ? _getType(t, pre) : t;",""," ce = this.getEvent(t, true);"," ce2 = this.getSibling(t, ce);",""," if (ce2 && !ce) {"," ce = this.publish(t);"," }",""," this._monitor('fire', (ce || t), {"," args: args"," });",""," // this event has not been published or subscribed to"," if (!ce) {"," if (yuievt.hasTargets) {"," return this.bubble({ type: t }, args, this);"," }",""," // otherwise there is nothing to be done"," ret = true;"," } else {"," ce.sibling = ce2;"," ret = ce.fire.apply(ce, args);"," }",""," return (yuievt.chain) ? this : ret;"," },",""," getSibling: function(type, ce) {"," var ce2;"," // delegate to *:type events if there are subscribers"," if (type.indexOf(PREFIX_DELIMITER) > -1) {"," type = _wildType(type);"," // console.log(type);"," ce2 = this.getEvent(type, true);"," if (ce2) {"," // console.log(\"GOT ONE: \" + type);"," ce2.applyConfig(ce);"," ce2.bubbles = false;"," ce2.broadcast = 0;"," // ret = ce2.fire.apply(ce2, a);"," }"," }",""," return ce2;"," },",""," /**"," * Returns the custom event of the provided type has been created, a"," * falsy value otherwise"," * @method getEvent"," * @param type {String} the type, or name of the event"," * @param prefixed {String} if true, the type is prefixed already"," * @return {CustomEvent} the custom event or null"," */"," getEvent: function(type, prefixed) {"," var pre, e;"," if (!prefixed) {"," pre = this._yuievt.config.prefix;"," type = (pre) ? _getType(type, pre) : type;"," }"," e = this._yuievt.events;"," return e[type] || null;"," },",""," /**"," * Subscribe to a custom event hosted by this object. The"," * supplied callback will execute after any listeners add"," * via the subscribe method, and after the default function,"," * if configured for the event, has executed."," *"," * @method after"," * @param {String} type The name of the event"," * @param {Function} fn The callback to execute in response to the event"," * @param {Object} [context] Override `this` object in callback"," * @param {Any} [arg*] 0..n additional arguments to supply to the subscriber"," * @return {EventHandle} A subscription handle capable of detaching the"," * subscription"," */"," after: function(type, fn) {",""," var a = nativeSlice.call(arguments, 0);",""," switch (L.type(type)) {"," case 'function':"," return Y.Do.after.apply(Y.Do, arguments);"," case 'array':"," // YArray.each(a[0], function(v) {"," // v = AFTER_PREFIX + v;"," // });"," // break;"," case 'object':"," a[0]._after = true;"," break;"," default:"," a[0] = AFTER_PREFIX + type;"," }",""," return this.on.apply(this, a);",""," },",""," /**"," * Executes the callback before a DOM event, custom event"," * or method. If the first argument is a function, it"," * is assumed the target is a method. For DOM and custom"," * events, this is an alias for Y.on."," *"," * For DOM and custom events:"," * type, callback, context, 0-n arguments"," *"," * For methods:"," * callback, object (method host), methodName, context, 0-n arguments"," *"," * @method before"," * @return detach handle"," */"," before: function() {"," return this.on.apply(this, arguments);"," }","","};","","Y.EventTarget = ET;","","// make Y an event target","Y.mix(Y, ET.prototype);","ET.call(Y, { bubbles: false });","","YUI.Env.globalEvents = YUI.Env.globalEvents || new ET();","","/**"," * Hosts YUI page level events. This is where events bubble to"," * when the broadcast config is set to 2. This property is"," * only available if the custom event module is loaded."," * @property Global"," * @type EventTarget"," * @for YUI"," */","Y.Global = YUI.Env.globalEvents;","","// @TODO implement a global namespace function on Y.Global?","","/**","`Y.on()` can do many things:","","<ul>"," <li>Subscribe to custom events `publish`ed and `fire`d from Y</li>"," <li>Subscribe to custom events `publish`ed with `broadcast` 1 or 2 and"," `fire`d from any object in the YUI instance sandbox</li>"," <li>Subscribe to DOM events</li>"," <li>Subscribe to the execution of a method on any object, effectively"," treating that method as an event</li>","</ul>","","For custom event subscriptions, pass the custom event name as the first argument and callback as the second. The `this` object in the callback will be `Y` unless an override is passed as the third argument.",""," Y.on('io:complete', function () {"," Y.MyApp.updateStatus('Transaction complete');"," });","","To subscribe to DOM events, pass the name of a DOM event as the first argument","and a CSS selector string as the third argument after the callback function.","Alternately, the third argument can be a `Node`, `NodeList`, `HTMLElement`,","array, or simply omitted (the default is the `window` object).",""," Y.on('click', function (e) {"," e.preventDefault();",""," // proceed with ajax form submission"," var url = this.get('action');"," ..."," }, '#my-form');","","The `this` object in DOM event callbacks will be the `Node` targeted by the CSS","selector or other identifier.","","`on()` subscribers for DOM events or custom events `publish`ed with a","`defaultFn` can prevent the default behavior with `e.preventDefault()` from the","event object passed as the first parameter to the subscription callback.","","To subscribe to the execution of an object method, pass arguments corresponding to the call signature for ","<a href=\"../classes/Do.html#methods_before\">`Y.Do.before(...)`</a>.","","NOTE: The formal parameter list below is for events, not for function","injection. See `Y.Do.before` for that signature.","","@method on","@param {String} type DOM or custom event name","@param {Function} fn The callback to execute in response to the event","@param {Object} [context] Override `this` object in callback","@param {Any} [arg*] 0..n additional arguments to supply to the subscriber","@return {EventHandle} A subscription handle capable of detaching the"," subscription","@see Do.before","@for YUI","**/","","/**","Listen for an event one time. Equivalent to `on()`, except that","the listener is immediately detached when executed.","","See the <a href=\"#methods_on\">`on()` method</a> for additional subscription","options.","","@see on","@method once","@param {String} type DOM or custom event name","@param {Function} fn The callback to execute in response to the event","@param {Object} [context] Override `this` object in callback","@param {Any} [arg*] 0..n additional arguments to supply to the subscriber","@return {EventHandle} A subscription handle capable of detaching the"," subscription","@for YUI","**/","","/**","Listen for an event one time. Equivalent to `once()`, except, like `after()`,","the subscription callback executes after all `on()` subscribers and the event's","`defaultFn` (if configured) have executed. Like `after()` if any `on()` phase","subscriber calls `e.preventDefault()`, neither the `defaultFn` nor the `after()`","subscribers will execute.","","The listener is immediately detached when executed.","","See the <a href=\"#methods_on\">`on()` method</a> for additional subscription","options.","","@see once","@method onceAfter","@param {String} type The custom event name","@param {Function} fn The callback to execute in response to the event","@param {Object} [context] Override `this` object in callback","@param {Any} [arg*] 0..n additional arguments to supply to the subscriber","@return {EventHandle} A subscription handle capable of detaching the"," subscription","@for YUI","**/","","/**","Like `on()`, this method creates a subscription to a custom event or to the","execution of a method on an object.","","For events, `after()` subscribers are executed after the event's","`defaultFn` unless `e.preventDefault()` was called from an `on()` subscriber.","","See the <a href=\"#methods_on\">`on()` method</a> for additional subscription","options.","","NOTE: The subscription signature shown is for events, not for function","injection. See <a href=\"../classes/Do.html#methods_after\">`Y.Do.after`</a>","for that signature.","","@see on","@see Do.after","@method after","@param {String} type The custom event name","@param {Function} fn The callback to execute in response to the event","@param {Object} [context] Override `this` object in callback","@param {Any} [args*] 0..n additional arguments to supply to the subscriber","@return {EventHandle} A subscription handle capable of detaching the"," subscription","@for YUI","**/","","","}, '@VERSION@', {\"requires\": [\"oop\"]});"]; _yuitest_coverage["build/event-custom-base/event-custom-base.js"].lines = {"1":0,"9":0,"29":0,"76":0,"77":0,"78":0,"79":0,"82":0,"113":0,"114":0,"115":0,"116":0,"119":0,"138":0,"140":0,"142":0,"145":0,"147":0,"149":0,"152":0,"153":0,"158":0,"161":0,"163":0,"174":0,"175":0,"183":0,"215":0,"216":0,"217":0,"218":0,"219":0,"220":0,"230":0,"231":0,"232":0,"234":0,"245":0,"246":0,"247":0,"264":0,"266":0,"273":0,"274":0,"275":0,"276":0,"277":0,"279":0,"281":0,"282":0,"284":0,"285":0,"293":0,"294":0,"297":0,"298":0,"301":0,"302":0,"303":0,"305":0,"306":0,"308":0,"309":0,"311":0,"316":0,"332":0,"333":0,"334":0,"346":0,"347":0,"348":0,"361":0,"362":0,"363":0,"374":0,"375":0,"388":0,"405":0,"439":0,"441":0,"442":0,"443":0,"447":0,"460":0,"462":0,"464":0,"466":0,"473":0,"481":0,"491":0,"509":0,"527":0,"528":0,"537":0,"544":0,"545":0,"554":0,"651":0,"663":0,"672":0,"689":0,"717":0,"719":0,"721":0,"733":0,"735":0,"736":0,"737":0,"740":0,"741":0,"744":0,"756":0,"757":0,"759":0,"760":0,"769":0,"771":0,"772":0,"774":0,"785":0,"804":0,"806":0,"807":0,"808":0,"810":0,"814":0,"815":0,"817":0,"820":0,"821":0,"822":0,"824":0,"828":0,"839":0,"840":0,"853":0,"855":0,"856":0,"860":0,"875":0,"876":0,"889":0,"890":0,"893":0,"898":0,"899":0,"900":0,"901":0,"902":0,"906":0,"907":0,"908":0,"909":0,"910":0,"914":0,"927":0,"940":0,"942":0,"944":0,"945":0,"948":0,"978":0,"979":0,"982":0,"987":0,"989":0,"990":0,"993":0,"994":0,"996":0,"1010":0,"1011":0,"1012":0,"1013":0,"1014":0,"1015":0,"1017":0,"1018":0,"1023":0,"1024":0,"1040":0,"1042":0,"1043":0,"1044":0,"1045":0,"1046":0,"1048":0,"1049":0,"1054":0,"1066":0,"1068":0,"1069":0,"1071":0,"1072":0,"1075":0,"1076":0,"1088":0,"1097":0,"1111":0,"1113":0,"1114":0,"1115":0,"1118":0,"1119":0,"1122":0,"1123":0,"1124":0,"1126":0,"1130":0,"1131":0,"1137":0,"1138":0,"1151":0,"1159":0,"1166":0,"1173":0,"1180":0,"1182":0,"1199":0,"1203":0,"1204":0,"1205":0,"1206":0,"1208":0,"1209":0,"1212":0,"1213":0,"1215":0,"1216":0,"1218":0,"1219":0,"1221":0,"1222":0,"1223":0,"1224":0,"1226":0,"1230":0,"1231":0,"1234":0,"1244":0,"1247":0,"1248":0,"1252":0,"1253":0,"1255":0,"1256":0,"1258":0,"1262":0,"1276":0,"1277":0,"1279":0,"1284":0,"1295":0,"1303":0,"1311":0,"1314":0,"1316":0,"1317":0,"1318":0,"1319":0,"1330":0,"1331":0,"1332":0,"1333":0,"1334":0,"1337":0,"1338":0,"1343":0,"1355":0,"1383":0,"1390":0,"1402":0,"1403":0,"1406":0,"1418":0,"1420":0,"1421":0,"1424":0,"1426":0,"1427":0,"1428":0,"1431":0,"1433":0,"1434":0,"1435":0,"1436":0,"1437":0,"1442":0,"1448":0,"1450":0,"1479":0,"1495":0,"1496":0,"1497":0,"1498":0,"1501":0,"1517":0,"1518":0,"1519":0,"1520":0,"1523":0,"1543":0,"1577":0,"1583":0,"1589":0,"1591":0,"1592":0,"1595":0,"1596":0,"1597":0,"1598":0,"1600":0,"1601":0,"1604":0,"1605":0,"1607":0,"1609":0,"1610":0,"1611":0,"1614":0,"1616":0,"1617":0,"1618":0,"1620":0,"1624":0,"1627":0,"1628":0,"1629":0,"1632":0,"1633":0,"1634":0,"1635":0,"1638":0,"1640":0,"1642":0,"1643":0,"1644":0,"1646":0,"1647":0,"1649":0,"1650":0,"1651":0,"1652":0,"1655":0,"1658":0,"1659":0,"1664":0,"1665":0,"1666":0,"1667":0,"1672":0,"1673":0,"1674":0,"1677":0,"1678":0,"1679":0,"1680":0,"1683":0,"1693":0,"1713":0,"1717":0,"1718":0,"1719":0,"1720":0,"1723":0,"1724":0,"1727":0,"1730":0,"1737":0,"1738":0,"1739":0,"1740":0,"1741":0,"1742":0,"1748":0,"1750":0,"1751":0,"1752":0,"1754":0,"1755":0,"1756":0,"1758":0,"1759":0,"1760":0,"1765":0,"1769":0,"1770":0,"1771":0,"1773":0,"1774":0,"1775":0,"1776":0,"1777":0,"1780":0,"1783":0,"1784":0,"1786":0,"1787":0,"1788":0,"1790":0,"1791":0,"1792":0,"1793":0,"1798":0,"1799":0,"1800":0,"1803":0,"1812":0,"1823":0,"1835":0,"1905":0,"1909":0,"1910":0,"1911":0,"1912":0,"1915":0,"1918":0,"1920":0,"1921":0,"1923":0,"1927":0,"1929":0,"1930":0,"1934":0,"1937":0,"1938":0,"1939":0,"1942":0,"1951":0,"1972":0,"1974":0,"1975":0,"1976":0,"1977":0,"1979":0,"1980":0,"1983":0,"1984":0,"1985":0,"1986":0,"2020":0,"2028":0,"2030":0,"2031":0,"2033":0,"2034":0,"2037":0,"2042":0,"2043":0,"2044":0,"2048":0,"2050":0,"2051":0,"2054":0,"2058":0,"2060":0,"2061":0,"2063":0,"2064":0,"2066":0,"2067":0,"2068":0,"2073":0,"2085":0,"2086":0,"2087":0,"2088":0,"2090":0,"2091":0,"2110":0,"2112":0,"2114":0,"2121":0,"2122":0,"2124":0,"2127":0,"2147":0,"2152":0,"2155":0,"2156":0,"2158":0,"2168":0}; _yuitest_coverage["build/event-custom-base/event-custom-base.js"].functions = {"before:75":0,"after:112":0,"]:152":0,"_inject:136":0,"detach:173":0,"Method:215":0,"register:230":0,"_delete:245":0,"exec:264":0,"AlterArgs:332":0,"AlterReturn:346":0,"Halt:361":0,"Prevent:374":0,"mixConfigs:438":0,"CustomEvent:460":0,"hasSubs:732":0,"monitor:755":0,"getSubs:768":0,"applyConfig:784":0,"_on:801":0,"subscribe:838":0,"on:852":0,"after:874":0,"detach:887":0,"unsubscribe:926":0,"_notify:937":0,"fire:977":0,"fireSimple:1009":0,"fireComplex:1022":0,"_procSubs:1039":0,"_broadcast:1065":0,"unsubscribeAll:1087":0,"detachAll:1096":0,"_delete:1110":0,"Subscriber:1151":0,"_notify:1202":0,"notify:1243":0,"contains:1275":0,"valueOf:1283":0,"EventHandle:1295":0,"(anonymous 2):1318":0,"batch:1315":0,"detach:1329":0,"monitor:1354":0,"(anonymous 3):1389":0,"(anonymous 4):1400":0,"(anonymous 5):1416":0,"ET:1445":0,"(anonymous 6):1496":0,"once:1494":0,"(anonymous 7):1518":0,"onceAfter:1516":0,"parseType:1542":0,"(anonymous 8):1607":0,"on:1575":0,"subscribe:1692":0,"keyDetacher:1736":0,"detach:1712":0,"unsubscribe:1811":0,"detachAll:1822":0,"unsubscribeAll:1834":0,"(anonymous 9):1911":0,"publish:1904":0,"_monitor:1971":0,"fire:2018":0,"getSibling:2057":0,"getEvent:2084":0,"after:2108":0,"before:2146":0,"(anonymous 1):1":0}; _yuitest_coverage["build/event-custom-base/event-custom-base.js"].coveredLines = 482; _yuitest_coverage["build/event-custom-base/event-custom-base.js"].coveredFunctions = 70; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1); YUI.add('event-custom-base', function (Y, NAME) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "(anonymous 1)", 1); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 9); Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom * @submodule event-custom-base */ /** * Allows for the insertion of methods that are executed before or after * a specified method * @class Do * @static */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 29); var DO_BEFORE = 0, DO_AFTER = 1, DO = { /** * Cache of objects touched by the utility * @property objs * @static * @deprecated Since 3.6.0. The `_yuiaop` property on the AOP'd object * replaces the role of this property, but is considered to be private, and * is only mentioned to provide a migration path. * * If you have a use case which warrants migration to the _yuiaop property, * please file a ticket to let us know what it's used for and we can see if * we need to expose hooks for that functionality more formally. */ objs: null, /** * <p>Execute the supplied method before the specified function. Wrapping * function may optionally return an instance of the following classes to * further alter runtime behavior:</p> * <dl> * <dt></code>Y.Do.Halt(message, returnValue)</code></dt> * <dd>Immediatly stop execution and return * <code>returnValue</code>. No other wrapping functions will be * executed.</dd> * <dt></code>Y.Do.AlterArgs(message, newArgArray)</code></dt> * <dd>Replace the arguments that the original function will be * called with.</dd> * <dt></code>Y.Do.Prevent(message)</code></dt> * <dd>Don't execute the wrapped function. Other before phase * wrappers will be executed.</dd> * </dl> * * @method before * @param fn {Function} the function to execute * @param obj the object hosting the method to displace * @param sFn {string} the name of the method to displace * @param c The execution context for fn * @param arg* {mixed} 0..n additional arguments to supply to the subscriber * when the event fires. * @return {string} handle for the subscription * @static */ before: function(fn, obj, sFn, c) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "before", 75); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 76); var f = fn, a; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 77); if (c) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 78); a = [fn, c].concat(Y.Array(arguments, 4, true)); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 79); f = Y.rbind.apply(Y, a); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 82); return this._inject(DO_BEFORE, f, obj, sFn); }, /** * <p>Execute the supplied method after the specified function. Wrapping * function may optionally return an instance of the following classes to * further alter runtime behavior:</p> * <dl> * <dt></code>Y.Do.Halt(message, returnValue)</code></dt> * <dd>Immediatly stop execution and return * <code>returnValue</code>. No other wrapping functions will be * executed.</dd> * <dt></code>Y.Do.AlterReturn(message, returnValue)</code></dt> * <dd>Return <code>returnValue</code> instead of the wrapped * method's original return value. This can be further altered by * other after phase wrappers.</dd> * </dl> * * <p>The static properties <code>Y.Do.originalRetVal</code> and * <code>Y.Do.currentRetVal</code> will be populated for reference.</p> * * @method after * @param fn {Function} the function to execute * @param obj the object hosting the method to displace * @param sFn {string} the name of the method to displace * @param c The execution context for fn * @param arg* {mixed} 0..n additional arguments to supply to the subscriber * @return {string} handle for the subscription * @static */ after: function(fn, obj, sFn, c) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "after", 112); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 113); var f = fn, a; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 114); if (c) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 115); a = [fn, c].concat(Y.Array(arguments, 4, true)); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 116); f = Y.rbind.apply(Y, a); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 119); return this._inject(DO_AFTER, f, obj, sFn); }, /** * Execute the supplied method before or after the specified function. * Used by <code>before</code> and <code>after</code>. * * @method _inject * @param when {string} before or after * @param fn {Function} the function to execute * @param obj the object hosting the method to displace * @param sFn {string} the name of the method to displace * @param c The execution context for fn * @return {string} handle for the subscription * @private * @static */ _inject: function(when, fn, obj, sFn) { // object id _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "_inject", 136); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 138); var id = Y.stamp(obj), o, sid; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 140); if (!obj._yuiaop) { // create a map entry for the obj if it doesn't exist, to hold overridden methods _yuitest_coverline("build/event-custom-base/event-custom-base.js", 142); obj._yuiaop = {}; } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 145); o = obj._yuiaop; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 147); if (!o[sFn]) { // create a map entry for the method if it doesn't exist _yuitest_coverline("build/event-custom-base/event-custom-base.js", 149); o[sFn] = new Y.Do.Method(obj, sFn); // re-route the method to our wrapper _yuitest_coverline("build/event-custom-base/event-custom-base.js", 152); obj[sFn] = function() { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "]", 152); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 153); return o[sFn].exec.apply(o[sFn], arguments); }; } // subscriber id _yuitest_coverline("build/event-custom-base/event-custom-base.js", 158); sid = id + Y.stamp(fn) + sFn; // register the callback _yuitest_coverline("build/event-custom-base/event-custom-base.js", 161); o[sFn].register(sid, fn, when); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 163); return new Y.EventHandle(o[sFn], sid); }, /** * Detach a before or after subscription. * * @method detach * @param handle {string} the subscription handle * @static */ detach: function(handle) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "detach", 173); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 174); if (handle.detach) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 175); handle.detach(); } }, _unload: function(e, me) { } }; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 183); Y.Do = DO; ////////////////////////////////////////////////////////////////////////// /** * Contains the return value from the wrapped method, accessible * by 'after' event listeners. * * @property originalRetVal * @static * @since 3.2.0 */ /** * Contains the current state of the return value, consumable by * 'after' event listeners, and updated if an after subscriber * changes the return value generated by the wrapped function. * * @property currentRetVal * @static * @since 3.2.0 */ ////////////////////////////////////////////////////////////////////////// /** * Wrapper for a displaced method with aop enabled * @class Do.Method * @constructor * @param obj The object to operate on * @param sFn The name of the method to displace */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 215); DO.Method = function(obj, sFn) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "Method", 215); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 216); this.obj = obj; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 217); this.methodName = sFn; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 218); this.method = obj[sFn]; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 219); this.before = {}; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 220); this.after = {}; }; /** * Register a aop subscriber * @method register * @param sid {string} the subscriber id * @param fn {Function} the function to execute * @param when {string} when to execute the function */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 230); DO.Method.prototype.register = function (sid, fn, when) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "register", 230); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 231); if (when) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 232); this.after[sid] = fn; } else { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 234); this.before[sid] = fn; } }; /** * Unregister a aop subscriber * @method delete * @param sid {string} the subscriber id * @param fn {Function} the function to execute * @param when {string} when to execute the function */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 245); DO.Method.prototype._delete = function (sid) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "_delete", 245); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 246); delete this.before[sid]; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 247); delete this.after[sid]; }; /** * <p>Execute the wrapped method. All arguments are passed into the wrapping * functions. If any of the before wrappers return an instance of * <code>Y.Do.Halt</code> or <code>Y.Do.Prevent</code>, neither the wrapped * function nor any after phase subscribers will be executed.</p> * * <p>The return value will be the return value of the wrapped function or one * provided by a wrapper function via an instance of <code>Y.Do.Halt</code> or * <code>Y.Do.AlterReturn</code>. * * @method exec * @param arg* {any} Arguments are passed to the wrapping and wrapped functions * @return {any} Return value of wrapped function unless overwritten (see above) */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 264); DO.Method.prototype.exec = function () { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "exec", 264); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 266); var args = Y.Array(arguments, 0, true), i, ret, newRet, bf = this.before, af = this.after, prevented = false; // execute before _yuitest_coverline("build/event-custom-base/event-custom-base.js", 273); for (i in bf) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 274); if (bf.hasOwnProperty(i)) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 275); ret = bf[i].apply(this.obj, args); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 276); if (ret) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 277); switch (ret.constructor) { case DO.Halt: _yuitest_coverline("build/event-custom-base/event-custom-base.js", 279); return ret.retVal; case DO.AlterArgs: _yuitest_coverline("build/event-custom-base/event-custom-base.js", 281); args = ret.newArgs; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 282); break; case DO.Prevent: _yuitest_coverline("build/event-custom-base/event-custom-base.js", 284); prevented = true; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 285); break; default: } } } } // execute method _yuitest_coverline("build/event-custom-base/event-custom-base.js", 293); if (!prevented) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 294); ret = this.method.apply(this.obj, args); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 297); DO.originalRetVal = ret; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 298); DO.currentRetVal = ret; // execute after methods. _yuitest_coverline("build/event-custom-base/event-custom-base.js", 301); for (i in af) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 302); if (af.hasOwnProperty(i)) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 303); newRet = af[i].apply(this.obj, args); // Stop processing if a Halt object is returned _yuitest_coverline("build/event-custom-base/event-custom-base.js", 305); if (newRet && newRet.constructor == DO.Halt) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 306); return newRet.retVal; // Check for a new return value } else {_yuitest_coverline("build/event-custom-base/event-custom-base.js", 308); if (newRet && newRet.constructor == DO.AlterReturn) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 309); ret = newRet.newRetVal; // Update the static retval state _yuitest_coverline("build/event-custom-base/event-custom-base.js", 311); DO.currentRetVal = ret; }} } } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 316); return ret; }; ////////////////////////////////////////////////////////////////////////// /** * Return an AlterArgs object when you want to change the arguments that * were passed into the function. Useful for Do.before subscribers. An * example would be a service that scrubs out illegal characters prior to * executing the core business logic. * @class Do.AlterArgs * @constructor * @param msg {String} (optional) Explanation of the altered return value * @param newArgs {Array} Call parameters to be used for the original method * instead of the arguments originally passed in. */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 332); DO.AlterArgs = function(msg, newArgs) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "AlterArgs", 332); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 333); this.msg = msg; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 334); this.newArgs = newArgs; }; /** * Return an AlterReturn object when you want to change the result returned * from the core method to the caller. Useful for Do.after subscribers. * @class Do.AlterReturn * @constructor * @param msg {String} (optional) Explanation of the altered return value * @param newRetVal {any} Return value passed to code that invoked the wrapped * function. */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 346); DO.AlterReturn = function(msg, newRetVal) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "AlterReturn", 346); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 347); this.msg = msg; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 348); this.newRetVal = newRetVal; }; /** * Return a Halt object when you want to terminate the execution * of all subsequent subscribers as well as the wrapped method * if it has not exectued yet. Useful for Do.before subscribers. * @class Do.Halt * @constructor * @param msg {String} (optional) Explanation of why the termination was done * @param retVal {any} Return value passed to code that invoked the wrapped * function. */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 361); DO.Halt = function(msg, retVal) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "Halt", 361); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 362); this.msg = msg; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 363); this.retVal = retVal; }; /** * Return a Prevent object when you want to prevent the wrapped function * from executing, but want the remaining listeners to execute. Useful * for Do.before subscribers. * @class Do.Prevent * @constructor * @param msg {String} (optional) Explanation of why the termination was done */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 374); DO.Prevent = function(msg) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "Prevent", 374); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 375); this.msg = msg; }; /** * Return an Error object when you want to terminate the execution * of all subsequent method calls. * @class Do.Error * @constructor * @param msg {String} (optional) Explanation of the altered return value * @param retVal {any} Return value passed to code that invoked the wrapped * function. * @deprecated use Y.Do.Halt or Y.Do.Prevent */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 388); DO.Error = DO.Halt; ////////////////////////////////////////////////////////////////////////// // Y["Event"] && Y.Event.addListener(window, "unload", Y.Do._unload, Y.Do); /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom * @submodule event-custom-base */ // var onsubscribeType = "_event:onsub", _yuitest_coverline("build/event-custom-base/event-custom-base.js", 405); var YArray = Y.Array, AFTER = 'after', CONFIGS = [ 'broadcast', 'monitored', 'bubbles', 'context', 'contextFn', 'currentTarget', 'defaultFn', 'defaultTargetOnly', 'details', 'emitFacade', 'fireOnce', 'async', 'host', 'preventable', 'preventedFn', 'queuable', 'silent', 'stoppedFn', 'target', 'type' ], CONFIGS_HASH = YArray.hash(CONFIGS), nativeSlice = Array.prototype.slice, YUI3_SIGNATURE = 9, YUI_LOG = 'yui:log', mixConfigs = function(r, s, ov) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "mixConfigs", 438); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 439); var p; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 441); for (p in s) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 442); if (CONFIGS_HASH[p] && (ov || !(p in r))) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 443); r[p] = s[p]; } } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 447); return r; }; /** * The CustomEvent class lets you define events for your application * that can be subscribed to by one or more independent component. * * @param {String} type The type of event, which is passed to the callback * when the event fires. * @param {object} o configuration object. * @class CustomEvent * @constructor */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 460); Y.CustomEvent = function(type, o) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "CustomEvent", 460); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 462); this._kds = Y.CustomEvent.keepDeprecatedSubs; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 464); o = o || {}; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 466); this.id = Y.stamp(this); /** * The type of event, returned to subscribers when the event fires * @property type * @type string */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 473); this.type = type; /** * The context the the event will fire from by default. Defaults to the YUI * instance. * @property context * @type object */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 481); this.context = Y; /** * Monitor when an event is attached or detached. * * @property monitored * @type boolean */ // this.monitored = false; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 491); this.logSystem = (type == YUI_LOG); /** * If 0, this event does not broadcast. If 1, the YUI instance is notified * every time this event fires. If 2, the YUI instance and the YUI global * (if event is enabled on the global) are notified every time this event * fires. * @property broadcast * @type int */ // this.broadcast = 0; /** * By default all custom events are logged in the debug build, set silent * to true to disable debug outpu for this event. * @property silent * @type boolean */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 509); this.silent = this.logSystem; /** * Specifies whether this event should be queued when the host is actively * processing an event. This will effect exectution order of the callbacks * for the various events. * @property queuable * @type boolean * @default false */ // this.queuable = false; /** * The subscribers to this event * @property subscribers * @type Subscriber {} * @deprecated */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 527); if (this._kds) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 528); this.subscribers = {}; } /** * The subscribers to this event * @property _subscribers * @type Subscriber [] * @private */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 537); this._subscribers = []; /** * 'After' subscribers * @property afters * @type Subscriber {} */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 544); if (this._kds) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 545); this.afters = {}; } /** * 'After' subscribers * @property _afters * @type Subscriber [] * @private */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 554); this._afters = []; /** * This event has fired if true * * @property fired * @type boolean * @default false; */ // this.fired = false; /** * An array containing the arguments the custom event * was last fired with. * @property firedWith * @type Array */ // this.firedWith; /** * This event should only fire one time if true, and if * it has fired, any new subscribers should be notified * immediately. * * @property fireOnce * @type boolean * @default false; */ // this.fireOnce = false; /** * fireOnce listeners will fire syncronously unless async * is set to true * @property async * @type boolean * @default false */ //this.async = false; /** * Flag for stopPropagation that is modified during fire() * 1 means to stop propagation to bubble targets. 2 means * to also stop additional subscribers on this target. * @property stopped * @type int */ // this.stopped = 0; /** * Flag for preventDefault that is modified during fire(). * if it is not 0, the default behavior for this event * @property prevented * @type int */ // this.prevented = 0; /** * Specifies the host for this custom event. This is used * to enable event bubbling * @property host * @type EventTarget */ // this.host = null; /** * The default function to execute after event listeners * have fire, but only if the default action was not * prevented. * @property defaultFn * @type Function */ // this.defaultFn = null; /** * The function to execute if a subscriber calls * stopPropagation or stopImmediatePropagation * @property stoppedFn * @type Function */ // this.stoppedFn = null; /** * The function to execute if a subscriber calls * preventDefault * @property preventedFn * @type Function */ // this.preventedFn = null; /** * Specifies whether or not this event's default function * can be cancelled by a subscriber by executing preventDefault() * on the event facade * @property preventable * @type boolean * @default true */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 651); this.preventable = true; /** * Specifies whether or not a subscriber can stop the event propagation * via stopPropagation(), stopImmediatePropagation(), or halt() * * Events can only bubble if emitFacade is true. * * @property bubbles * @type boolean * @default true */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 663); this.bubbles = true; /** * Supports multiple options for listener signatures in order to * port YUI 2 apps. * @property signature * @type int * @default 9 */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 672); this.signature = YUI3_SIGNATURE; // this.subCount = 0; // this.afterCount = 0; // this.hasSubscribers = false; // this.hasAfters = false; /** * If set to true, the custom event will deliver an EventFacade object * that is similar to a DOM event object. * @property emitFacade * @type boolean * @default false */ // this.emitFacade = false; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 689); this.applyConfig(o, true); }; /** * Static flag to enable population of the <a href="#property_subscribers">`subscribers`</a> * and <a href="#property_subscribers">`afters`</a> properties held on a `CustomEvent` instance. * * These properties were changed to private properties (`_subscribers` and `_afters`), and * converted from objects to arrays for performance reasons. * * Setting this property to true will populate the deprecated `subscribers` and `afters` * properties for people who may be using them (which is expected to be rare). There will * be a performance hit, compared to the new array based implementation. * * If you are using these deprecated properties for a use case which the public API * does not support, please file an enhancement request, and we can provide an alternate * public implementation which doesn't have the performance cost required to maintiain the * properties as objects. * * @property keepDeprecatedSubs * @static * @for CustomEvent * @type boolean * @default false * @deprecated */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 717); Y.CustomEvent.keepDeprecatedSubs = false; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 719); Y.CustomEvent.mixConfigs = mixConfigs; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 721); Y.CustomEvent.prototype = { constructor: Y.CustomEvent, /** * Returns the number of subscribers for this event as the sum of the on() * subscribers and after() subscribers. * * @method hasSubs * @return Number */ hasSubs: function(when) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "hasSubs", 732); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 733); var s = this._subscribers.length, a = this._afters.length, sib = this.sibling; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 735); if (sib) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 736); s += sib._subscribers.length; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 737); a += sib._afters.length; } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 740); if (when) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 741); return (when == 'after') ? a : s; } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 744); return (s + a); }, /** * Monitor the event state for the subscribed event. The first parameter * is what should be monitored, the rest are the normal parameters when * subscribing to an event. * @method monitor * @param what {string} what to monitor ('detach', 'attach', 'publish'). * @return {EventHandle} return value from the monitor event subscription. */ monitor: function(what) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "monitor", 755); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 756); this.monitored = true; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 757); var type = this.id + '|' + this.type + '_' + what, args = nativeSlice.call(arguments, 0); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 759); args[0] = type; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 760); return this.host.on.apply(this.host, args); }, /** * Get all of the subscribers to this event and any sibling event * @method getSubs * @return {Array} first item is the on subscribers, second the after. */ getSubs: function() { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "getSubs", 768); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 769); var s = this._subscribers, a = this._afters, sib = this.sibling; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 771); s = (sib) ? s.concat(sib._subscribers) : s.concat(); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 772); a = (sib) ? a.concat(sib._afters) : a.concat(); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 774); return [s, a]; }, /** * Apply configuration properties. Only applies the CONFIG whitelist * @method applyConfig * @param o hash of properties to apply. * @param force {boolean} if true, properties that exist on the event * will be overwritten. */ applyConfig: function(o, force) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "applyConfig", 784); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 785); mixConfigs(this, o, force); }, /** * Create the Subscription for subscribing function, context, and bound * arguments. If this is a fireOnce event, the subscriber is immediately * notified. * * @method _on * @param fn {Function} Subscription callback * @param [context] {Object} Override `this` in the callback * @param [args] {Array} bound arguments that will be passed to the callback after the arguments generated by fire() * @param [when] {String} "after" to slot into after subscribers * @return {EventHandle} * @protected */ _on: function(fn, context, args, when) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "_on", 801); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 804); var s = new Y.Subscriber(fn, context, args, when); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 806); if (this.fireOnce && this.fired) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 807); if (this.async) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 808); setTimeout(Y.bind(this._notify, this, s, this.firedWith), 0); } else { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 810); this._notify(s, this.firedWith); } } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 814); if (when == AFTER) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 815); this._afters.push(s); } else { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 817); this._subscribers.push(s); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 820); if (this._kds) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 821); if (when == AFTER) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 822); this.afters[s.id] = s; } else { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 824); this.subscribers[s.id] = s; } } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 828); return new Y.EventHandle(this, s); }, /** * Listen for this event * @method subscribe * @param {Function} fn The function to execute. * @return {EventHandle} Unsubscribe handle. * @deprecated use on. */ subscribe: function(fn, context) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "subscribe", 838); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 839); var a = (arguments.length > 2) ? nativeSlice.call(arguments, 2) : null; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 840); return this._on(fn, context, a, true); }, /** * Listen for this event * @method on * @param {Function} fn The function to execute. * @param {object} context optional execution context. * @param {mixed} arg* 0..n additional arguments to supply to the subscriber * when the event fires. * @return {EventHandle} An object with a detach method to detch the handler(s). */ on: function(fn, context) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "on", 852); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 853); var a = (arguments.length > 2) ? nativeSlice.call(arguments, 2) : null; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 855); if (this.monitored && this.host) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 856); this.host._monitor('attach', this, { args: arguments }); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 860); return this._on(fn, context, a, true); }, /** * Listen for this event after the normal subscribers have been notified and * the default behavior has been applied. If a normal subscriber prevents the * default behavior, it also prevents after listeners from firing. * @method after * @param {Function} fn The function to execute. * @param {object} context optional execution context. * @param {mixed} arg* 0..n additional arguments to supply to the subscriber * when the event fires. * @return {EventHandle} handle Unsubscribe handle. */ after: function(fn, context) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "after", 874); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 875); var a = (arguments.length > 2) ? nativeSlice.call(arguments, 2) : null; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 876); return this._on(fn, context, a, AFTER); }, /** * Detach listeners. * @method detach * @param {Function} fn The subscribed function to remove, if not supplied * all will be removed. * @param {Object} context The context object passed to subscribe. * @return {int} returns the number of subscribers unsubscribed. */ detach: function(fn, context) { // unsubscribe handle _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "detach", 887); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 889); if (fn && fn.detach) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 890); return fn.detach(); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 893); var i, s, found = 0, subs = this._subscribers, afters = this._afters; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 898); for (i = subs.length; i >= 0; i--) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 899); s = subs[i]; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 900); if (s && (!fn || fn === s.fn)) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 901); this._delete(s, subs, i); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 902); found++; } } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 906); for (i = afters.length; i >= 0; i--) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 907); s = afters[i]; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 908); if (s && (!fn || fn === s.fn)) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 909); this._delete(s, afters, i); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 910); found++; } } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 914); return found; }, /** * Detach listeners. * @method unsubscribe * @param {Function} fn The subscribed function to remove, if not supplied * all will be removed. * @param {Object} context The context object passed to subscribe. * @return {int|undefined} returns the number of subscribers unsubscribed. * @deprecated use detach. */ unsubscribe: function() { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "unsubscribe", 926); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 927); return this.detach.apply(this, arguments); }, /** * Notify a single subscriber * @method _notify * @param {Subscriber} s the subscriber. * @param {Array} args the arguments array to apply to the listener. * @protected */ _notify: function(s, args, ef) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "_notify", 937); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 940); var ret; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 942); ret = s.notify(args, this); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 944); if (false === ret || this.stopped > 1) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 945); return false; } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 948); return true; }, /** * Logger abstraction to centralize the application of the silent flag * @method log * @param {string} msg message to log. * @param {string} cat log category. */ log: function(msg, cat) { }, /** * Notifies the subscribers. The callback functions will be executed * from the context specified when the event was created, and with the * following parameters: * <ul> * <li>The type of event</li> * <li>All of the arguments fire() was executed with as an array</li> * <li>The custom object (if any) that was passed into the subscribe() * method</li> * </ul> * @method fire * @param {Object*} arguments an arbitrary set of parameters to pass to * the handler. * @return {boolean} false if one of the subscribers returned false, * true otherwise. * */ fire: function() { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "fire", 977); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 978); if (this.fireOnce && this.fired) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 979); return true; } else { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 982); var args = nativeSlice.call(arguments, 0); // this doesn't happen if the event isn't published // this.host._monitor('fire', this.type, args); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 987); this.fired = true; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 989); if (this.fireOnce) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 990); this.firedWith = args; } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 993); if (this.emitFacade) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 994); return this.fireComplex(args); } else { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 996); return this.fireSimple(args); } } }, /** * Set up for notifying subscribers of non-emitFacade events. * * @method fireSimple * @param args {Array} Arguments passed to fire() * @return Boolean false if a subscriber returned false * @protected */ fireSimple: function(args) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "fireSimple", 1009); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1010); this.stopped = 0; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1011); this.prevented = 0; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1012); if (this.hasSubs()) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1013); var subs = this.getSubs(); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1014); this._procSubs(subs[0], args); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1015); this._procSubs(subs[1], args); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1017); this._broadcast(args); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1018); return this.stopped ? false : true; }, // Requires the event-custom-complex module for full funcitonality. fireComplex: function(args) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "fireComplex", 1022); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1023); args[0] = args[0] || {}; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1024); return this.fireSimple(args); }, /** * Notifies a list of subscribers. * * @method _procSubs * @param subs {Array} List of subscribers * @param args {Array} Arguments passed to fire() * @param ef {} * @return Boolean false if a subscriber returns false or stops the event * propagation via e.stopPropagation(), * e.stopImmediatePropagation(), or e.halt() * @private */ _procSubs: function(subs, args, ef) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "_procSubs", 1039); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1040); var s, i, l; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1042); for (i = 0, l = subs.length; i < l; i++) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1043); s = subs[i]; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1044); if (s && s.fn) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1045); if (false === this._notify(s, args, ef)) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1046); this.stopped = 2; } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1048); if (this.stopped == 2) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1049); return false; } } } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1054); return true; }, /** * Notifies the YUI instance if the event is configured with broadcast = 1, * and both the YUI instance and Y.Global if configured with broadcast = 2. * * @method _broadcast * @param args {Array} Arguments sent to fire() * @private */ _broadcast: function(args) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "_broadcast", 1065); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1066); if (!this.stopped && this.broadcast) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1068); var a = args.concat(); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1069); a.unshift(this.type); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1071); if (this.host !== Y) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1072); Y.fire.apply(Y, a); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1075); if (this.broadcast == 2) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1076); Y.Global.fire.apply(Y.Global, a); } } }, /** * Removes all listeners * @method unsubscribeAll * @return {int} The number of listeners unsubscribed. * @deprecated use detachAll. */ unsubscribeAll: function() { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "unsubscribeAll", 1087); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1088); return this.detachAll.apply(this, arguments); }, /** * Removes all listeners * @method detachAll * @return {int} The number of listeners unsubscribed. */ detachAll: function() { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "detachAll", 1096); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1097); return this.detach(); }, /** * Deletes the subscriber from the internal store of on() and after() * subscribers. * * @method _delete * @param s subscriber object. * @param subs (optional) on or after subscriber array * @param index (optional) The index found. * @private */ _delete: function(s, subs, i) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "_delete", 1110); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1111); var when = s._when; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1113); if (!subs) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1114); subs = (when === AFTER) ? this._afters : this._subscribers; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1115); i = YArray.indexOf(subs, s, 0); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1118); if (s && subs[i] === s) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1119); subs.splice(i, 1); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1122); if (this._kds) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1123); if (when === AFTER) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1124); delete this.afters[s.id]; } else { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1126); delete this.subscribers[s.id]; } } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1130); if (this.monitored && this.host) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1131); this.host._monitor('detach', this, { ce: this, sub: s }); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1137); if (s) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1138); s.deleted = true; } } }; /** * Stores the subscriber information to be used when the event fires. * @param {Function} fn The wrapped function to execute. * @param {Object} context The value of the keyword 'this' in the listener. * @param {Array} args* 0..n additional arguments to supply the listener. * * @class Subscriber * @constructor */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1151); Y.Subscriber = function(fn, context, args, when) { /** * The callback that will be execute when the event fires * This is wrapped by Y.rbind if obj was supplied. * @property fn * @type Function */ _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "Subscriber", 1151); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1159); this.fn = fn; /** * Optional 'this' keyword for the listener * @property context * @type Object */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1166); this.context = context; /** * Unique subscriber id * @property id * @type String */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1173); this.id = Y.stamp(this); /** * Additional arguments to propagate to the subscriber * @property args * @type Array */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1180); this.args = args; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1182); this._when = when; /** * Custom events for a given fire transaction. * @property events * @type {EventTarget} */ // this.events = null; /** * This listener only reacts to the event once * @property once */ // this.once = false; }; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1199); Y.Subscriber.prototype = { constructor: Y.Subscriber, _notify: function(c, args, ce) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "_notify", 1202); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1203); if (this.deleted && !this.postponed) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1204); if (this.postponed) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1205); delete this.fn; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1206); delete this.context; } else { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1208); delete this.postponed; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1209); return null; } } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1212); var a = this.args, ret; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1213); switch (ce.signature) { case 0: _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1215); ret = this.fn.call(c, ce.type, args, c); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1216); break; case 1: _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1218); ret = this.fn.call(c, args[0] || null, c); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1219); break; default: _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1221); if (a || args) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1222); args = args || []; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1223); a = (a) ? args.concat(a) : args; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1224); ret = this.fn.apply(c, a); } else { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1226); ret = this.fn.call(c); } } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1230); if (this.once) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1231); ce._delete(this); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1234); return ret; }, /** * Executes the subscriber. * @method notify * @param args {Array} Arguments array for the subscriber. * @param ce {CustomEvent} The custom event that sent the notification. */ notify: function(args, ce) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "notify", 1243); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1244); var c = this.context, ret = true; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1247); if (!c) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1248); c = (ce.contextFn) ? ce.contextFn() : ce.context; } // only catch errors if we will not re-throw them. _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1252); if (Y.config && Y.config.throwFail) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1253); ret = this._notify(c, args, ce); } else { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1255); try { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1256); ret = this._notify(c, args, ce); } catch (e) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1258); Y.error(this + ' failed: ' + e.message, e); } } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1262); return ret; }, /** * Returns true if the fn and obj match this objects properties. * Used by the unsubscribe method to match the right subscriber. * * @method contains * @param {Function} fn the function to execute. * @param {Object} context optional 'this' keyword for the listener. * @return {boolean} true if the supplied arguments match this * subscriber's signature. */ contains: function(fn, context) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "contains", 1275); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1276); if (context) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1277); return ((this.fn == fn) && this.context == context); } else { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1279); return (this.fn == fn); } }, valueOf : function() { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "valueOf", 1283); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1284); return this.id; } }; /** * Return value from all subscribe operations * @class EventHandle * @constructor * @param {CustomEvent} evt the custom event. * @param {Subscriber} sub the subscriber. */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1295); Y.EventHandle = function(evt, sub) { /** * The custom event * * @property evt * @type CustomEvent */ _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "EventHandle", 1295); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1303); this.evt = evt; /** * The subscriber object * * @property sub * @type Subscriber */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1311); this.sub = sub; }; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1314); Y.EventHandle.prototype = { batch: function(f, c) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "batch", 1315); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1316); f.call(c || this, this); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1317); if (Y.Lang.isArray(this.evt)) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1318); Y.Array.each(this.evt, function(h) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "(anonymous 2)", 1318); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1319); h.batch.call(c || h, f); }); } }, /** * Detaches this subscriber * @method detach * @return {int} the number of detached listeners */ detach: function() { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "detach", 1329); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1330); var evt = this.evt, detached = 0, i; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1331); if (evt) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1332); if (Y.Lang.isArray(evt)) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1333); for (i = 0; i < evt.length; i++) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1334); detached += evt[i].detach(); } } else { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1337); evt._delete(this.sub); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1338); detached = 1; } } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1343); return detached; }, /** * Monitor the event state for the subscribed event. The first parameter * is what should be monitored, the rest are the normal parameters when * subscribing to an event. * @method monitor * @param what {string} what to monitor ('attach', 'detach', 'publish'). * @return {EventHandle} return value from the monitor event subscription. */ monitor: function(what) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "monitor", 1354); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1355); return this.evt.monitor.apply(this.evt, arguments); } }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom * @submodule event-custom-base */ /** * EventTarget provides the implementation for any object to * publish, subscribe and fire to custom events, and also * alows other EventTargets to target the object with events * sourced from the other object. * EventTarget is designed to be used with Y.augment to wrap * EventCustom in an interface that allows events to be listened to * and fired by name. This makes it possible for implementing code to * subscribe to an event that either has not been created yet, or will * not be created at all. * @class EventTarget * @param opts a configuration object * @config emitFacade {boolean} if true, all events will emit event * facade payloads by default (default false) * @config prefix {String} the prefix to apply to non-prefixed event names */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1383); var L = Y.Lang, PREFIX_DELIMITER = ':', CATEGORY_DELIMITER = '|', AFTER_PREFIX = '~AFTER~', WILD_TYPE_RE = /(.*?)(:)(.*?)/, _wildType = Y.cached(function(type) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "(anonymous 3)", 1389); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1390); return type.replace(WILD_TYPE_RE, "*$2$3"); }), /** * If the instance has a prefix attribute and the * event type is not prefixed, the instance prefix is * applied to the supplied type. * @method _getType * @private */ _getType = Y.cached(function(type, pre) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "(anonymous 4)", 1400); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1402); if (!pre || (typeof type !== "string") || type.indexOf(PREFIX_DELIMITER) > -1) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1403); return type; } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1406); return pre + PREFIX_DELIMITER + type; }), /** * Returns an array with the detach key (if provided), * and the prefixed event name from _getType * Y.on('detachcategory| menu:click', fn) * @method _parseType * @private */ _parseType = Y.cached(function(type, pre) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "(anonymous 5)", 1416); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1418); var t = type, detachcategory, after, i; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1420); if (!L.isString(t)) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1421); return t; } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1424); i = t.indexOf(AFTER_PREFIX); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1426); if (i > -1) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1427); after = true; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1428); t = t.substr(AFTER_PREFIX.length); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1431); i = t.indexOf(CATEGORY_DELIMITER); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1433); if (i > -1) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1434); detachcategory = t.substr(0, (i)); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1435); t = t.substr(i+1); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1436); if (t == '*') { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1437); t = null; } } // detach category, full type with instance prefix, is this an after listener, short type _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1442); return [detachcategory, (pre) ? _getType(t, pre) : t, after, t]; }), ET = function(opts) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "ET", 1445); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1448); var o = (L.isObject(opts)) ? opts : {}; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1450); this._yuievt = this._yuievt || { id: Y.guid(), events: {}, targets: {}, config: o, chain: ('chain' in o) ? o.chain : Y.config.chain, bubbling: false, defaults: { context: o.context || this, host: this, emitFacade: o.emitFacade, fireOnce: o.fireOnce, queuable: o.queuable, monitored: o.monitored, broadcast: o.broadcast, defaultTargetOnly: o.defaultTargetOnly, bubbles: ('bubbles' in o) ? o.bubbles : true } }; }; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1479); ET.prototype = { constructor: ET, /** * Listen to a custom event hosted by this object one time. * This is the equivalent to <code>on</code> except the * listener is immediatelly detached when it is executed. * @method once * @param {String} type The name of the event * @param {Function} fn The callback to execute in response to the event * @param {Object} [context] Override `this` object in callback * @param {Any} [arg*] 0..n additional arguments to supply to the subscriber * @return {EventHandle} A subscription handle capable of detaching the * subscription */ once: function() { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "once", 1494); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1495); var handle = this.on.apply(this, arguments); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1496); handle.batch(function(hand) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "(anonymous 6)", 1496); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1497); if (hand.sub) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1498); hand.sub.once = true; } }); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1501); return handle; }, /** * Listen to a custom event hosted by this object one time. * This is the equivalent to <code>after</code> except the * listener is immediatelly detached when it is executed. * @method onceAfter * @param {String} type The name of the event * @param {Function} fn The callback to execute in response to the event * @param {Object} [context] Override `this` object in callback * @param {Any} [arg*] 0..n additional arguments to supply to the subscriber * @return {EventHandle} A subscription handle capable of detaching that * subscription */ onceAfter: function() { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "onceAfter", 1516); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1517); var handle = this.after.apply(this, arguments); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1518); handle.batch(function(hand) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "(anonymous 7)", 1518); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1519); if (hand.sub) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1520); hand.sub.once = true; } }); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1523); return handle; }, /** * Takes the type parameter passed to 'on' and parses out the * various pieces that could be included in the type. If the * event type is passed without a prefix, it will be expanded * to include the prefix one is supplied or the event target * is configured with a default prefix. * @method parseType * @param {String} type the type * @param {String} [pre=this._yuievt.config.prefix] the prefix * @since 3.3.0 * @return {Array} an array containing: * * the detach category, if supplied, * * the prefixed event type, * * whether or not this is an after listener, * * the supplied event type */ parseType: function(type, pre) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "parseType", 1542); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1543); return _parseType(type, pre || this._yuievt.config.prefix); }, /** * Subscribe a callback function to a custom event fired by this object or * from an object that bubbles its events to this object. * * Callback functions for events published with `emitFacade = true` will * receive an `EventFacade` as the first argument (typically named "e"). * These callbacks can then call `e.preventDefault()` to disable the * behavior published to that event's `defaultFn`. See the `EventFacade` * API for all available properties and methods. Subscribers to * non-`emitFacade` events will receive the arguments passed to `fire()` * after the event name. * * To subscribe to multiple events at once, pass an object as the first * argument, where the key:value pairs correspond to the eventName:callback, * or pass an array of event names as the first argument to subscribe to * all listed events with the same callback. * * Returning `false` from a callback is supported as an alternative to * calling `e.preventDefault(); e.stopPropagation();`. However, it is * recommended to use the event methods whenever possible. * * @method on * @param {String} type The name of the event * @param {Function} fn The callback to execute in response to the event * @param {Object} [context] Override `this` object in callback * @param {Any} [arg*] 0..n additional arguments to supply to the subscriber * @return {EventHandle} A subscription handle capable of detaching that * subscription */ on: function(type, fn, context) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "on", 1575); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1577); var yuievt = this._yuievt, parts = _parseType(type, yuievt.config.prefix), f, c, args, ret, ce, detachcategory, handle, store = Y.Env.evt.handles, after, adapt, shorttype, Node = Y.Node, n, domevent, isArr; // full name, args, detachcategory, after _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1583); this._monitor('attach', parts[1], { args: arguments, category: parts[0], after: parts[2] }); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1589); if (L.isObject(type)) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1591); if (L.isFunction(type)) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1592); return Y.Do.before.apply(Y.Do, arguments); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1595); f = fn; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1596); c = context; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1597); args = nativeSlice.call(arguments, 0); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1598); ret = []; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1600); if (L.isArray(type)) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1601); isArr = true; } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1604); after = type._after; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1605); delete type._after; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1607); Y.each(type, function(v, k) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "(anonymous 8)", 1607); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1609); if (L.isObject(v)) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1610); f = v.fn || ((L.isFunction(v)) ? v : f); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1611); c = v.context || c; } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1614); var nv = (after) ? AFTER_PREFIX : ''; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1616); args[0] = nv + ((isArr) ? v : k); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1617); args[1] = f; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1618); args[2] = c; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1620); ret.push(this.on.apply(this, args)); }, this); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1624); return (yuievt.chain) ? this : new Y.EventHandle(ret); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1627); detachcategory = parts[0]; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1628); after = parts[2]; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1629); shorttype = parts[3]; // extra redirection so we catch adaptor events too. take a look at this. _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1632); if (Node && Y.instanceOf(this, Node) && (shorttype in Node.DOM_EVENTS)) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1633); args = nativeSlice.call(arguments, 0); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1634); args.splice(2, 0, Node.getDOMNode(this)); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1635); return Y.on.apply(Y, args); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1638); type = parts[1]; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1640); if (Y.instanceOf(this, YUI)) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1642); adapt = Y.Env.evt.plugins[type]; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1643); args = nativeSlice.call(arguments, 0); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1644); args[0] = shorttype; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1646); if (Node) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1647); n = args[2]; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1649); if (Y.instanceOf(n, Y.NodeList)) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1650); n = Y.NodeList.getDOMNodes(n); } else {_yuitest_coverline("build/event-custom-base/event-custom-base.js", 1651); if (Y.instanceOf(n, Node)) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1652); n = Node.getDOMNode(n); }} _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1655); domevent = (shorttype in Node.DOM_EVENTS); // Captures both DOM events and event plugins. _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1658); if (domevent) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1659); args[2] = n; } } // check for the existance of an event adaptor _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1664); if (adapt) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1665); handle = adapt.on.apply(Y, args); } else {_yuitest_coverline("build/event-custom-base/event-custom-base.js", 1666); if ((!type) || domevent) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1667); handle = Y.Event._attach(args); }} } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1672); if (!handle) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1673); ce = yuievt.events[type] || this.publish(type); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1674); handle = ce._on(fn, context, (arguments.length > 3) ? nativeSlice.call(arguments, 3) : null, (after) ? 'after' : true); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1677); if (detachcategory) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1678); store[detachcategory] = store[detachcategory] || {}; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1679); store[detachcategory][type] = store[detachcategory][type] || []; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1680); store[detachcategory][type].push(handle); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1683); return (yuievt.chain) ? this : handle; }, /** * subscribe to an event * @method subscribe * @deprecated use on */ subscribe: function() { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "subscribe", 1692); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1693); return this.on.apply(this, arguments); }, /** * Detach one or more listeners the from the specified event * @method detach * @param type {string|Object} Either the handle to the subscriber or the * type of event. If the type * is not specified, it will attempt to remove * the listener from all hosted events. * @param fn {Function} The subscribed function to unsubscribe, if not * supplied, all subscribers will be removed. * @param context {Object} The custom object passed to subscribe. This is * optional, but if supplied will be used to * disambiguate multiple listeners that are the same * (e.g., you subscribe many object using a function * that lives on the prototype) * @return {EventTarget} the host */ detach: function(type, fn, context) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "detach", 1712); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1713); var evts = this._yuievt.events, i, Node = Y.Node, isNode = Node && (Y.instanceOf(this, Node)); // detachAll disabled on the Y instance. _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1717); if (!type && (this !== Y)) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1718); for (i in evts) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1719); if (evts.hasOwnProperty(i)) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1720); evts[i].detach(fn, context); } } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1723); if (isNode) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1724); Y.Event.purgeElement(Node.getDOMNode(this)); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1727); return this; } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1730); var parts = _parseType(type, this._yuievt.config.prefix), detachcategory = L.isArray(parts) ? parts[0] : null, shorttype = (parts) ? parts[3] : null, adapt, store = Y.Env.evt.handles, detachhost, cat, args, ce, keyDetacher = function(lcat, ltype, host) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "keyDetacher", 1736); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1737); var handles = lcat[ltype], ce, i; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1738); if (handles) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1739); for (i = handles.length - 1; i >= 0; --i) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1740); ce = handles[i].evt; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1741); if (ce.host === host || ce.el === host) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1742); handles[i].detach(); } } } }; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1748); if (detachcategory) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1750); cat = store[detachcategory]; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1751); type = parts[1]; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1752); detachhost = (isNode) ? Y.Node.getDOMNode(this) : this; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1754); if (cat) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1755); if (type) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1756); keyDetacher(cat, type, detachhost); } else { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1758); for (i in cat) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1759); if (cat.hasOwnProperty(i)) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1760); keyDetacher(cat, i, detachhost); } } } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1765); return this; } // If this is an event handle, use it to detach } else {_yuitest_coverline("build/event-custom-base/event-custom-base.js", 1769); if (L.isObject(type) && type.detach) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1770); type.detach(); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1771); return this; // extra redirection so we catch adaptor events too. take a look at this. } else {_yuitest_coverline("build/event-custom-base/event-custom-base.js", 1773); if (isNode && ((!shorttype) || (shorttype in Node.DOM_EVENTS))) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1774); args = nativeSlice.call(arguments, 0); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1775); args[2] = Node.getDOMNode(this); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1776); Y.detach.apply(Y, args); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1777); return this; }}} _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1780); adapt = Y.Env.evt.plugins[shorttype]; // The YUI instance handles DOM events and adaptors _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1783); if (Y.instanceOf(this, YUI)) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1784); args = nativeSlice.call(arguments, 0); // use the adaptor specific detach code if _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1786); if (adapt && adapt.detach) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1787); adapt.detach.apply(Y, args); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1788); return this; // DOM event fork } else {_yuitest_coverline("build/event-custom-base/event-custom-base.js", 1790); if (!type || (!adapt && Node && (type in Node.DOM_EVENTS))) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1791); args[0] = type; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1792); Y.Event.detach.apply(Y.Event, args); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1793); return this; }} } // ce = evts[type]; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1798); ce = evts[parts[1]]; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1799); if (ce) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1800); ce.detach(fn, context); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1803); return this; }, /** * detach a listener * @method unsubscribe * @deprecated use detach */ unsubscribe: function() { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "unsubscribe", 1811); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1812); return this.detach.apply(this, arguments); }, /** * Removes all listeners from the specified event. If the event type * is not specified, all listeners from all hosted custom events will * be removed. * @method detachAll * @param type {String} The type, or name of the event */ detachAll: function(type) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "detachAll", 1822); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1823); return this.detach(type); }, /** * Removes all listeners from the specified event. If the event type * is not specified, all listeners from all hosted custom events will * be removed. * @method unsubscribeAll * @param type {String} The type, or name of the event * @deprecated use detachAll */ unsubscribeAll: function() { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "unsubscribeAll", 1834); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1835); return this.detachAll.apply(this, arguments); }, /** * Creates a new custom event of the specified type. If a custom event * by that name already exists, it will not be re-created. In either * case the custom event is returned. * * @method publish * * @param type {String} the type, or name of the event * @param opts {object} optional config params. Valid properties are: * * <ul> * <li> * 'broadcast': whether or not the YUI instance and YUI global are notified when the event is fired (false) * </li> * <li> * 'bubbles': whether or not this event bubbles (true) * Events can only bubble if emitFacade is true. * </li> * <li> * 'context': the default execution context for the listeners (this) * </li> * <li> * 'defaultFn': the default function to execute when this event fires if preventDefault was not called * </li> * <li> * 'emitFacade': whether or not this event emits a facade (false) * </li> * <li> * 'prefix': the prefix for this targets events, e.g., 'menu' in 'menu:click' * </li> * <li> * 'fireOnce': if an event is configured to fire once, new subscribers after * the fire will be notified immediately. * </li> * <li> * 'async': fireOnce event listeners will fire synchronously if the event has already * fired unless async is true. * </li> * <li> * 'preventable': whether or not preventDefault() has an effect (true) * </li> * <li> * 'preventedFn': a function that is executed when preventDefault is called * </li> * <li> * 'queuable': whether or not this event can be queued during bubbling (false) * </li> * <li> * 'silent': if silent is true, debug messages are not provided for this event. * </li> * <li> * 'stoppedFn': a function that is executed when stopPropagation is called * </li> * * <li> * 'monitored': specifies whether or not this event should send notifications about * when the event has been attached, detached, or published. * </li> * <li> * 'type': the event type (valid option if not provided as the first parameter to publish) * </li> * </ul> * * @return {CustomEvent} the custom event * */ publish: function(type, opts) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "publish", 1904); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1905); var events, ce, ret, defaults, edata = this._yuievt, pre = edata.config.prefix; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1909); if (L.isObject(type)) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1910); ret = {}; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1911); Y.each(type, function(v, k) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "(anonymous 9)", 1911); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1912); ret[k] = this.publish(k, v || opts); }, this); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1915); return ret; } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1918); type = (pre) ? _getType(type, pre) : type; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1920); events = edata.events; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1921); ce = events[type]; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1923); this._monitor('publish', type, { args: arguments }); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1927); if (ce) { // ce.log("publish applying new config to published event: '"+type+"' exists", 'info', 'event'); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1929); if (opts) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1930); ce.applyConfig(opts, true); } } else { // TODO: Lazy publish goes here. _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1934); defaults = edata.defaults; // apply defaults _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1937); ce = new Y.CustomEvent(type, defaults); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1938); if (opts) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1939); ce.applyConfig(opts, true); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1942); events[type] = ce; } // make sure we turn the broadcast flag off if this // event was published as a result of bubbling // if (opts instanceof Y.CustomEvent) { // events[type].broadcast = false; // } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1951); return events[type]; }, /** * This is the entry point for the event monitoring system. * You can monitor 'attach', 'detach', 'fire', and 'publish'. * When configured, these events generate an event. click -> * click_attach, click_detach, click_publish -- these can * be subscribed to like other events to monitor the event * system. Inividual published events can have monitoring * turned on or off (publish can't be turned off before it * it published) by setting the events 'monitor' config. * * @method _monitor * @param what {String} 'attach', 'detach', 'fire', or 'publish' * @param eventType {String|CustomEvent} The prefixed name of the event being monitored, or the CustomEvent object. * @param o {Object} Information about the event interaction, such as * fire() args, subscription category, publish config * @private */ _monitor: function(what, eventType, o) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "_monitor", 1971); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1972); var monitorevt, ce, type; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1974); if (eventType) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1975); if (typeof eventType === "string") { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1976); type = eventType; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1977); ce = this.getEvent(eventType, true); } else { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1979); ce = eventType; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1980); type = eventType.type; } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1983); if ((this._yuievt.config.monitored && (!ce || ce.monitored)) || (ce && ce.monitored)) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1984); monitorevt = type + '_' + what; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1985); o.monitored = what; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 1986); this.fire.call(this, monitorevt, o); } } }, /** * Fire a custom event by name. The callback functions will be executed * from the context specified when the event was created, and with the * following parameters. * * If the custom event object hasn't been created, then the event hasn't * been published and it has no subscribers. For performance sake, we * immediate exit in this case. This means the event won't bubble, so * if the intention is that a bubble target be notified, the event must * be published on this object first. * * The first argument is the event type, and any additional arguments are * passed to the listeners as parameters. If the first of these is an * object literal, and the event is configured to emit an event facade, * that object is mixed into the event facade and the facade is provided * in place of the original object. * * @method fire * @param type {String|Object} The type of the event, or an object that contains * a 'type' property. * @param arguments {Object*} an arbitrary set of parameters to pass to * the handler. If the first of these is an object literal and the event is * configured to emit an event facade, the event facade will replace that * parameter after the properties the object literal contains are copied to * the event facade. * @return {EventTarget} the event host */ fire: function(type) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "fire", 2018); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2020); var typeIncluded = L.isString(type), t = (typeIncluded) ? type : (type && type.type), yuievt = this._yuievt, pre = yuievt.config.prefix, ce, ret, ce2, args = (typeIncluded) ? nativeSlice.call(arguments, 1) : arguments; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2028); t = (pre) ? _getType(t, pre) : t; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2030); ce = this.getEvent(t, true); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2031); ce2 = this.getSibling(t, ce); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2033); if (ce2 && !ce) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2034); ce = this.publish(t); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2037); this._monitor('fire', (ce || t), { args: args }); // this event has not been published or subscribed to _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2042); if (!ce) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2043); if (yuievt.hasTargets) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2044); return this.bubble({ type: t }, args, this); } // otherwise there is nothing to be done _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2048); ret = true; } else { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2050); ce.sibling = ce2; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2051); ret = ce.fire.apply(ce, args); } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2054); return (yuievt.chain) ? this : ret; }, getSibling: function(type, ce) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "getSibling", 2057); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2058); var ce2; // delegate to *:type events if there are subscribers _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2060); if (type.indexOf(PREFIX_DELIMITER) > -1) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2061); type = _wildType(type); // console.log(type); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2063); ce2 = this.getEvent(type, true); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2064); if (ce2) { // console.log("GOT ONE: " + type); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2066); ce2.applyConfig(ce); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2067); ce2.bubbles = false; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2068); ce2.broadcast = 0; // ret = ce2.fire.apply(ce2, a); } } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2073); return ce2; }, /** * Returns the custom event of the provided type has been created, a * falsy value otherwise * @method getEvent * @param type {String} the type, or name of the event * @param prefixed {String} if true, the type is prefixed already * @return {CustomEvent} the custom event or null */ getEvent: function(type, prefixed) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "getEvent", 2084); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2085); var pre, e; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2086); if (!prefixed) { _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2087); pre = this._yuievt.config.prefix; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2088); type = (pre) ? _getType(type, pre) : type; } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2090); e = this._yuievt.events; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2091); return e[type] || null; }, /** * Subscribe to a custom event hosted by this object. The * supplied callback will execute after any listeners add * via the subscribe method, and after the default function, * if configured for the event, has executed. * * @method after * @param {String} type The name of the event * @param {Function} fn The callback to execute in response to the event * @param {Object} [context] Override `this` object in callback * @param {Any} [arg*] 0..n additional arguments to supply to the subscriber * @return {EventHandle} A subscription handle capable of detaching the * subscription */ after: function(type, fn) { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "after", 2108); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2110); var a = nativeSlice.call(arguments, 0); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2112); switch (L.type(type)) { case 'function': _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2114); return Y.Do.after.apply(Y.Do, arguments); case 'array': // YArray.each(a[0], function(v) { // v = AFTER_PREFIX + v; // }); // break; case 'object': _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2121); a[0]._after = true; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2122); break; default: _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2124); a[0] = AFTER_PREFIX + type; } _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2127); return this.on.apply(this, a); }, /** * Executes the callback before a DOM event, custom event * or method. If the first argument is a function, it * is assumed the target is a method. For DOM and custom * events, this is an alias for Y.on. * * For DOM and custom events: * type, callback, context, 0-n arguments * * For methods: * callback, object (method host), methodName, context, 0-n arguments * * @method before * @return detach handle */ before: function() { _yuitest_coverfunc("build/event-custom-base/event-custom-base.js", "before", 2146); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2147); return this.on.apply(this, arguments); } }; _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2152); Y.EventTarget = ET; // make Y an event target _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2155); Y.mix(Y, ET.prototype); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2156); ET.call(Y, { bubbles: false }); _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2158); YUI.Env.globalEvents = YUI.Env.globalEvents || new ET(); /** * Hosts YUI page level events. This is where events bubble to * when the broadcast config is set to 2. This property is * only available if the custom event module is loaded. * @property Global * @type EventTarget * @for YUI */ _yuitest_coverline("build/event-custom-base/event-custom-base.js", 2168); Y.Global = YUI.Env.globalEvents; // @TODO implement a global namespace function on Y.Global? /** `Y.on()` can do many things: <ul> <li>Subscribe to custom events `publish`ed and `fire`d from Y</li> <li>Subscribe to custom events `publish`ed with `broadcast` 1 or 2 and `fire`d from any object in the YUI instance sandbox</li> <li>Subscribe to DOM events</li> <li>Subscribe to the execution of a method on any object, effectively treating that method as an event</li> </ul> For custom event subscriptions, pass the custom event name as the first argument and callback as the second. The `this` object in the callback will be `Y` unless an override is passed as the third argument. Y.on('io:complete', function () { Y.MyApp.updateStatus('Transaction complete'); }); To subscribe to DOM events, pass the name of a DOM event as the first argument and a CSS selector string as the third argument after the callback function. Alternately, the third argument can be a `Node`, `NodeList`, `HTMLElement`, array, or simply omitted (the default is the `window` object). Y.on('click', function (e) { e.preventDefault(); // proceed with ajax form submission var url = this.get('action'); ... }, '#my-form'); The `this` object in DOM event callbacks will be the `Node` targeted by the CSS selector or other identifier. `on()` subscribers for DOM events or custom events `publish`ed with a `defaultFn` can prevent the default behavior with `e.preventDefault()` from the event object passed as the first parameter to the subscription callback. To subscribe to the execution of an object method, pass arguments corresponding to the call signature for <a href="../classes/Do.html#methods_before">`Y.Do.before(...)`</a>. NOTE: The formal parameter list below is for events, not for function injection. See `Y.Do.before` for that signature. @method on @param {String} type DOM or custom event name @param {Function} fn The callback to execute in response to the event @param {Object} [context] Override `this` object in callback @param {Any} [arg*] 0..n additional arguments to supply to the subscriber @return {EventHandle} A subscription handle capable of detaching the subscription @see Do.before @for YUI **/ /** Listen for an event one time. Equivalent to `on()`, except that the listener is immediately detached when executed. See the <a href="#methods_on">`on()` method</a> for additional subscription options. @see on @method once @param {String} type DOM or custom event name @param {Function} fn The callback to execute in response to the event @param {Object} [context] Override `this` object in callback @param {Any} [arg*] 0..n additional arguments to supply to the subscriber @return {EventHandle} A subscription handle capable of detaching the subscription @for YUI **/ /** Listen for an event one time. Equivalent to `once()`, except, like `after()`, the subscription callback executes after all `on()` subscribers and the event's `defaultFn` (if configured) have executed. Like `after()` if any `on()` phase subscriber calls `e.preventDefault()`, neither the `defaultFn` nor the `after()` subscribers will execute. The listener is immediately detached when executed. See the <a href="#methods_on">`on()` method</a> for additional subscription options. @see once @method onceAfter @param {String} type The custom event name @param {Function} fn The callback to execute in response to the event @param {Object} [context] Override `this` object in callback @param {Any} [arg*] 0..n additional arguments to supply to the subscriber @return {EventHandle} A subscription handle capable of detaching the subscription @for YUI **/ /** Like `on()`, this method creates a subscription to a custom event or to the execution of a method on an object. For events, `after()` subscribers are executed after the event's `defaultFn` unless `e.preventDefault()` was called from an `on()` subscriber. See the <a href="#methods_on">`on()` method</a> for additional subscription options. NOTE: The subscription signature shown is for events, not for function injection. See <a href="../classes/Do.html#methods_after">`Y.Do.after`</a> for that signature. @see on @see Do.after @method after @param {String} type The custom event name @param {Function} fn The callback to execute in response to the event @param {Object} [context] Override `this` object in callback @param {Any} [args*] 0..n additional arguments to supply to the subscriber @return {EventHandle} A subscription handle capable of detaching the subscription @for YUI **/ }, '@VERSION@', {"requires": ["oop"]});
ajax/libs/antd/1.0.0-beta.7/antd.min.js
keicheng/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.antd=t(require("react"),require("react-dom")):e.antd=t(e.React,e.ReactDOM)}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;case"object":e[t]=function(t){var n=t.slice(1),r=e[t[0]];return function(e,t,o){r.apply(this,[e,t,o].concat(n))}}(e[t]);break;default:e[t]=e[e[t]]}return e}([function(e,t,n){e.exports=n(242)},function(t,n){t.exports=e},function(e,t,n){var r,o;/*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ !function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r))e.push(n.apply(null,r));else if("object"===o)for(var i in r)a.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}var a={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=n:(r=[],o=function(){return n}.apply(t,r),!(void 0!==o&&(e.exports=o)))}()},function(e,t){},function(e,n){e.exports=t},function(e,t,n){"use strict";function r(e,t){t.every(function(e){return"string"==typeof e})&&h(e,t)}function o(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=1,o=t[0],a=t.length;if("function"==typeof o)return o.apply(null,t.slice(1));if("string"==typeof o){for(var i=String(o).replace(d,function(e){if("%%"===e)return"%";if(r>=a)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}break;default:return e}}),s=t[r];a>r;s=t[++r])i+=" "+s;return i}return o}function a(e){return"string"===e||"url"===e||"hex"===e||"email"===e}function i(e,t){return void 0===e||null===e?!0:"array"===t&&Array.isArray(e)&&!e.length?!0:!(!a(t)||"string"!=typeof e||e)}function s(e){return 0===Object.keys(e).length}function l(e,t,n){function r(e){o.push.apply(o,e),a++,a===i&&n(o)}var o=[],a=0,i=e.length;e.forEach(function(e){t(e,r)})}function u(e,t,n){function r(i){if(i.length)return void n(i);var s=o;o+=1,a>s?t(e[s],r):n([])}var o=0,a=e.length;r([])}function c(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}function p(e,t,n,r){if(t.first){var o=c(e);return u(o,n,r)}var a=t.firstFields||[];a===!0&&(a=Object.keys(e));var i=Object.keys(e),s=i.length,p=0,f=[],d=function(e){f.push.apply(f,e),p++,p===s&&r(f)};i.forEach(function(t){var r=e[t];-1!==a.indexOf(t)?u(r,n,d):l(r,n,d)})}function f(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:t,field:t.field||e.fullField}}}Object.defineProperty(t,"__esModule",{value:!0}),t.warning=r,t.format=o,t.isEmptyValue=i,t.isEmptyObject=s,t.asyncMap=p,t.complementError=f;var d=/%[sdj%]/g,h=function(){}},function(e,t,n){"use strict";e.exports={guid:n(426),classSet:n(424),joinClasses:n(427),KeyCode:n(111),PureRenderMixin:n(423),shallowEqual:n(116),createChainedFunction:n(425),Dom:{addEventListener:n(421),contains:n(422)},Children:{toArray:n(420),mapSelf:n(419)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),s=r(i);t["default"]=function(e){var t=e.type,n=e.className,r=void 0===n?"":n,i=o(e,["type","className"]);return r+=" anticon anticon-"+t,s["default"].createElement("i",a({className:r},i))},e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={required:n(45),whitespace:n(127),type:n(126),range:n(125),"enum":n(123),pattern:n(124)},e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(309)},function(e,t){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=Object.assign||function(e,t){for(var a,i,s=n(e),l=1;l<arguments.length;l++){a=Object(arguments[l]);for(var u in a)r.call(a,u)&&(s[u]=a[u]);if(Object.getOwnPropertySymbols){i=Object.getOwnPropertySymbols(a);for(var c=0;c<i.length;c++)o.call(a,i[c])&&(s[i[c]]=a[i[c]])}}return s}},function(e,t,n){"use strict";function r(e){var t=e||p;this.locale=t,this.fields=[],this.time=void 0,this.timezoneOffset=t.timezoneOffset,this.firstDayOfWeek=t.firstDayOfWeek,this.minimalDaysInFirstWeek=t.minimalDaysInFirstWeek,this.fieldsComputed=!1}function o(e,t){return L(e)?S[t]:E[t]}function a(e){return L(e)?366:365}function i(e){var t=e.fields,n=t[h],r=t[y],a=o(n,r),i=t[v];i>a&&e.set(v,a)}function s(e,t){return e-A(e-t,7)}function l(e,t,n){var r=s(t+6,e.firstDayOfWeek),o=r-t;o>=e.minimalDaysInFirstWeek&&(r-=7);var a=n-r;return V(a/7)+1}var u=parseInt,c=n(293),p=n(76),f=n(75);c.mix(r,f),c.mix(r,{Utils:c,defaultLocale:p,isLeapYear:c.isLeapYear,YEAR:1,MONTH:2,DAY_OF_MONTH:3,HOUR_OF_DAY:4,MINUTES:5,SECONDS:6,MILLISECONDS:7,WEEK_OF_YEAR:8,WEEK_OF_MONTH:9,DAY_OF_YEAR:10,DAY_OF_WEEK:11,DAY_OF_WEEK_IN_MONTH:12,AM:0,PM:1});var d=["","Year","Month","DayOfMonth","HourOfDay","Minutes","Seconds","Milliseconds","WeekOfYear","WeekOfMonth","DayOfYear","DayOfWeek","DayOfWeekInMonth"],h=r.YEAR,y=r.MONTH,v=r.DAY_OF_MONTH,m=r.HOUR_OF_DAY,g=r.MINUTES,b=r.SECONDS,P=r.MILLISECONDS,O=r.DAY_OF_WEEK_IN_MONTH,C=r.DAY_OF_YEAR,T=r.DAY_OF_WEEK,w=r.WEEK_OF_MONTH,x=r.WEEK_OF_YEAR,E=[31,28,31,30,31,30,31,31,30,31,30,31],S=[31,29,31,30,31,30,31,31,30,31,30,31],k=1e3,N=60*k,_=60*N,j=24*_,M=7*j,D=719163,A=c.mod,L=c.isLeapYear,V=Math.floor,F=[void 0,1,r.JANUARY,1,0,0,0,0,1,void 0,1,r.SUNDAY,1],I=[void 0,292278994,r.DECEMBER,void 0,23,59,59,999,void 0,void 0,void 0,r.SATURDAY,void 0];r.prototype={constructor:r,isGregorianCalendar:1,isLeapYear:function(){return L(this.getYear())},getLocale:function(){return this.locale},getActualMinimum:function(e){if(void 0!==F[e])return F[e];if(e===w){var t=this.clone();return t.clear(),t.set(this.fields[h],this.fields[y],1),t.get(w)}throw new Error("minimum value not defined!")},getActualMaximum:function(e){if(void 0!==I[e])return I[e];var t=void 0,n=this.fields;switch(e){case v:t=o(n[h],n[y]);break;case x:var i=this.clone();i.clear(),i.set(n[h],r.DECEMBER,31),t=i.get(x),1===t&&(t=52);break;case w:var s=this.clone();s.clear(),s.set(n[h],n[y],o(n[h],n[y])),t=s.get(w);break;case C:t=a(n[h]);break;case O:t=u((o(n[h],n[y])-1)/7)+1}if(void 0===t)throw new Error("maximum value not defined!");return t},isSet:function(e){return void 0!==this.fields[e]},computeFields:function(){var e=this.time,t=this.timezoneOffset*N,n=u(t/j),o=t%j;if(n+=u(e/j),o+=e%j,o>=j)o-=j,n++;else for(;0>o;)o+=j,n--;n+=D;var i=c.getGregorianDateFromFixedDate(n),p=i.year,f=this.fields;if(f[h]=p,f[y]=i.month,f[v]=i.dayOfMonth,f[T]=i.dayOfWeek,0!==o){f[m]=u(o/_);var d=o%_;f[g]=u(d/N),d%=N,f[b]=u(d/k),f[P]=d%k}else f[m]=f[g]=f[b]=f[P]=0;var E=c.getFixedDate(p,r.JANUARY,1),S=n-E+1,M=n-i.dayOfMonth+1;f[C]=S,f[O]=u((i.dayOfMonth-1)/7)+1;var A=l(this,E,n);if(0===A){var L=E-1,V=E-a(p-1);A=l(this,V,L)}else if(A>=52){var F=E+a(p),I=s(F+6,this.firstDayOfWeek),R=I-F;R>=this.minimalDaysInFirstWeek&&n>=I-7&&(A=1)}f[x]=A,f[w]=l(this,M,n),this.fieldsComputed=!0},computeTime:function(){var e=void 0,t=this.fields;e=this.isSet(h)?t[h]:(new Date).getFullYear();var n=0;this.isSet(m)&&(n+=t[m]),n*=60,n+=t[g]||0,n*=60,n+=t[b]||0,n*=1e3,n+=t[P]||0;var r=0;t[h]=e,r+=this.getFixedDate();var o=(r-D)*j+n;o-=this.timezoneOffset*N,this.time=o,this.computeFields()},complete:function(){void 0===this.time&&this.computeTime(),this.fieldsComputed||this.computeFields()},getFixedDate:function(){var e=this,t=e.fields,n=e.firstDayOfWeek,a=t[h],i=r.JANUARY;e.isSet(y)&&(i=t[y],i>r.DECEMBER?(a+=u(i/12),i%=12):i<r.JANUARY&&(a+=V(i/12),i=A(i,12)));var l=c.getFixedDate(a,i,1),p=void 0,f=e.firstDayOfWeek;if(e.isSet(T)&&(f=t[T]),e.isSet(y))if(e.isSet(v))l+=t[v]-1;else if(e.isSet(w))p=s(l+6,n),p-l>=e.minimalDaysInFirstWeek&&(p-=7),f!==n&&(p=s(p+6,f)),l=p+7*(t[w]-1);else{var d=void 0;d=e.isSet(O)?t[O]:1;var m=7*d;0>d&&(m=o(a,i)+7*(d+1)),l=s(l+m-1,f)}else e.isSet(C)?l+=t[C]-1:e.isSet(x)&&(p=s(l+6,n),p-l>=e.minimalDaysInFirstWeek&&(p-=7),f!==n&&(p=s(p+6,f)),l=p+7*(t[x]-1));return l},getTime:function(){return void 0===this.time&&this.computeTime(),this.time},setTime:function(e){this.time=e,this.fieldsComputed=!1,this.complete()},get:function(e){return this.complete(),this.fields[e]},set:function(e,t){var n=arguments.length;if(2===n)this.fields[e]=t;else{if(!(P+1>n))throw new Error("illegal arguments for GregorianCalendar set");for(var r=0;n>r;r++)this.fields[h+r]=arguments[r]}this.time=void 0},add:function(e,t){if(t){var n=t,r=this,o=r.fields,a=r.get(e);if(e===h)a+=n,r.set(h,a),i(r);else if(e===y){a+=n;var s=V(a/12);a=A(a,12),s&&r.set(h,o[h]+s),r.set(y,a),i(r)}else{switch(e){case m:n*=_;break;case g:n*=N;break;case b:n*=k;break;case P:break;case w:case x:case O:n*=M;break;case T:case C:case v:n*=j;break;default:throw new Error("illegal field for add")}r.setTime(r.time+n)}}},getRolledValue:function(e,t,n,r){var o=t,a=e-n,i=r-n+1;return o%=i,n+(a+o+i)%i},roll:function(e,t){if(t){var n=this,r=n.get(e),o=n.getActualMinimum(e),a=n.getActualMaximum(e);switch(r=n.getRolledValue(r,t,o,a),n.set(e,r),e){case y:i(n);break;default:n.updateFieldsBySet(e)}}},rollSet:function(e,t){switch(this.set(e,t),e){case y:i(this);break;default:this.updateFieldsBySet(e)}},updateFieldsBySet:function(e){var t=this.fields;switch(e){case w:t[v]=void 0;break;case C:t[y]=void 0;break;case T:t[v]=void 0;break;case x:t[C]=void 0,t[y]=void 0}},getTimezoneOffset:function(){return this.timezoneOffset},setTimezoneOffset:function(e){this.timezoneOffset!==e&&(this.fieldsComputed=void 0,this.timezoneOffset=e)},setFirstDayOfWeek:function(e){this.firstDayOfWeek!==e&&(this.firstDayOfWeek=e,this.fieldsComputed=!1)},getFirstDayOfWeek:function(){return this.firstDayOfWeek},setMinimalDaysInFirstWeek:function(e){this.minimalDaysInFirstWeek!==e&&(this.minimalDaysInFirstWeek=e,this.fieldsComputed=!1)},getMinimalDaysInFirstWeek:function(){return this.minimalDaysInFirstWeek},getWeeksInWeekYear:function(){var e=this.getWeekYear();if(e===this.get(h))return this.getActualMaximum(x);var t=this.clone();return t.clear(),t.setWeekDate(e,2,this.get(T)),t.getActualMaximum(x)},getWeekYear:function(){var e=this.get(h),t=this.get(x),n=this.get(y);return n===r.JANUARY?t>=52&&--e:n===r.DECEMBER&&1===t&&++e,e},setWeekDate:function(e,t,n){if(n<r.SUNDAY||n>r.SATURDAY)throw new Error("invalid dayOfWeek: "+n);var o=this.fields,a=this.clone();a.clear(),a.setTimezoneOffset(0),a.set(h,e),a.set(x,1),a.set(T,this.getFirstDayOfWeek());var i=n-this.getFirstDayOfWeek();0>i&&(i+=7),i+=7*(t-1),0!==i?a.add(C,i):a.complete(),o[h]=a.get(h),o[y]=a.get(y),o[v]=a.get(v),this.complete()},clone:function(){void 0===this.time&&this.computeTime();var e=new r(this.locale);return e.setTimezoneOffset(e.getTimezoneOffset()),e.setFirstDayOfWeek(e.getFirstDayOfWeek()),e.setMinimalDaysInFirstWeek(e.getMinimalDaysInFirstWeek()),e.setTime(this.time),e},equals:function(e){return this.getTime()===e.getTime()&&this.firstDayOfWeek===e.firstDayOfWeek&&this.timezoneOffset===e.timezoneOffset&&this.minimalDaysInFirstWeek===e.minimalDaysInFirstWeek},compareToDay:function(e){var t=this.getYear(),n=e.getYear(),r=this.getMonth(),o=e.getMonth(),a=this.getDayOfMonth(),i=e.getDayOfMonth();return t!==n?t-n:r!==o?r-o:a-i},clear:function(e){void 0===e?this.field=[]:this.fields[e]=void 0,this.time=void 0,this.fieldsComputed=!1},toString:function(){var e=this;return"[GregorianCalendar]: "+e.getYear()+"/"+e.getMonth()+"/"+e.getDayOfMonth()+" "+e.getHourOfDay()+":"+e.getMinutes()+":"+e.getSeconds()}};var R=r.prototype;c.each(d,function(e,t){e&&(R["get"+e]=function(){return this.get(t)},R["isSet"+e]=function(){return this.isSet(t)},R["set"+e]=function(e){return this.set(t,e)},R["add"+e]=function(e){return this.add(t,e)},R["roll"+e]=function(e){return this.roll(t,e)},R["rollSet"+e]=function(e){return this.rollSet(t,e)})}),e.exports=r},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.clone();return t.setTime(Date.now()),t}function a(e){return e.getYear()+"-"+(e.getMonth()+1)+"-"+e.getDayOfMonth()}function i(e){var t=o(e);return a(t)}function s(e,t){return"string"==typeof e?new y["default"](e,t.format):e}function l(e,t){t.setHourOfDay(e.getHourOfDay()),t.setMinutes(e.getMinutes()),t.setSeconds(e.getSeconds())}function u(e,t){var n=t?t(e):{};return n=d({},v,n)}function c(e,t){var n=!1;if(e){var r=e.getHourOfDay(),o=e.getMinutes(),a=e.getSeconds(),i=t.disabledHours();if(-1===i.indexOf(r)){var s=t.disabledMinutes(r);if(-1===s.indexOf(o)){var l=t.disabledSeconds(r,o);n=-1!==l.indexOf(a)}else n=!0}else n=!0}return!n}function p(e,t){var n=u(e,t);return c(e,n)}function f(e,t,n){return t&&t(e)?!1:!n||p(e,n)}Object.defineProperty(t,"__esModule",{value:!0});var d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.getTodayTime=o,t.getTitleString=a,t.getTodayTimeStr=i,t.getFormatter=s,t.syncTime=l,t.getTimeConfig=u,t.isTimeValidByConfig=c,t.isTimeValid=p,t.isAllowedDate=f;var h=n(26),y=r(h),v={disabledHours:function(){return[]},disabledMinutes:function(){return[]},disabledSeconds:function(){return[]}}},function(e,t,n){"use strict";e.exports=n(412)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(152),a=r(o),i=n(151),s=r(i);a["default"].Group=s["default"],t["default"]=a["default"],e.exports=t["default"]},[441,269],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var c,p,f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=n(93),h=r(d),y=n(1),v=r(y),m=n(163),g=r(m),b=n(2),P=r(b),O=(p=c=function(e){function t(){return s(this,t),l(this,e.apply(this,arguments))}return u(t,e),t.prototype.render=function(){var e,t=this.props,n=t.prefixCls,r=t.style,o=t.children,s=t.className,l=i(t,["prefixCls","style","children","className"]),u=(0,P["default"])((e={},a(e,s,!!s),a(e,n+"-wrapper",!0),e));return v["default"].createElement("label",{className:u,style:r},v["default"].createElement(h["default"],f({},l,{prefixCls:n,children:null})),o?v["default"].createElement("span",null,o):null)},t}(v["default"].Component),c.Group=g["default"],c.defaultProps={prefixCls:"ant-checkbox"},p);t["default"]=O,e.exports=t["default"]},[441,263],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=window.getComputedStyle(e),r="",o=0;o<d.length&&!(r=n.getPropertyValue(d[o]+t));o++);return r}function a(e){if(p){var t=parseFloat(o(e,"transition-duration"))||0,n=parseFloat(o(e,"animation-duration"))||0,r=Math.max(t,n);e.rcEndAnimTimeout=setTimeout(function(){e.rcEndAnimTimeout=null,e.rcEndListener&&e.rcEndListener()},1e3*r+200)}}function i(e){e.rcEndAnimTimeout&&(clearTimeout(e.rcEndAnimTimeout),e.rcEndAnimTimeout=null)}Object.defineProperty(t,"__esModule",{value:!0});var s=n(244),l=r(s),u=n(70),c=r(u),p=0!==l["default"].endEvents.length,f=["Webkit","Moz","O","ms"],d=["-webkit-","-moz-","-o-","ms-",""],h=function(e,t,n){var r=t,o=r+"-active",s=n,u=void 0,p=void 0,f=(0,c["default"])(e);return n&&"[object Object]"===Object.prototype.toString.call(n)&&(s=n.end,u=n.start,p=n.active),e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(clearTimeout(e.rcAnimTimeout),e.rcAnimTimeout=null),i(e),f.remove(r),f.remove(o),l["default"].removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,s&&s())},l["default"].addEndEventListener(e,e.rcEndListener),f.add(r),u&&u(),e.rcAnimTimeout=setTimeout(function(){e.rcAnimTimeout=null,f.add(o),p&&p(),a(e)},0),{stop:function(){e.rcEndListener&&e.rcEndListener()}}};h.style=function(e,t,n){e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(clearTimeout(e.rcAnimTimeout),e.rcAnimTimeout=null),i(e),l["default"].removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,n&&n())},l["default"].addEndEventListener(e,e.rcEndListener),e.rcAnimTimeout=setTimeout(function(){for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);e.rcAnimTimeout=null,a(e)},0)},h.setTransition=function(e,t,n){var r=t,o=n;void 0===n&&(o=r,r=""),r=r||"",f.forEach(function(t){e.style[t+"Transition"+r]=o})},h.isCssAnimationSupported=p,t["default"]=h,e.exports=t["default"]},function(e,t){"use strict";function n(e,t,r){var o=r;{if("object"!=typeof t)return"undefined"!=typeof o?("number"==typeof o&&(o+="px"),void(e.style[t]=o)):C(e,t);for(var a in t)t.hasOwnProperty(a)&&n(e,a,t[a])}}function r(e){var t=void 0,n=void 0,r=void 0,o=e.ownerDocument,a=o.body,i=o&&o.documentElement;return t=e.getBoundingClientRect(),n=t.left,r=t.top,n-=i.clientLeft||a.clientLeft||0,r-=i.clientTop||a.clientTop||0,{left:n,top:r}}function o(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;n=o.documentElement[r],"number"!=typeof n&&(n=o.body[r])}return n}function a(e){return o(e)}function i(e){return o(e,!0)}function s(e){var t=r(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=a(o),t.top+=i(o),t}function l(e,t,n){var r=n,o="",a=e.ownerDocument;return r=r||a.defaultView.getComputedStyle(e,null),r&&(o=r.getPropertyValue(t)||r[t]),o}function u(e,t){var n=e[x]&&e[x][t];if(T.test(n)&&!w.test(t)){var r=e.style,o=r[S],a=e[E][S];e[E][S]=e[x][S],r[S]="fontSize"===t?"1em":n||0,n=r.pixelLeft+k,r[S]=o,e[E][S]=a}return""===n?"auto":n}function c(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function p(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function f(e,t,r){"static"===n(e,"position")&&(e.style.position="relative");var o=-999,a=-999,i=c("left",r),l=c("top",r),u=p(i),f=p(l);"left"!==i&&(o=999),"top"!==l&&(a=999),"left"in t&&(e.style[u]="",e.style[i]=o+"px"),"top"in t&&(e.style[f]="",e.style[l]=a+"px");var d=s(e),h={},y=void 0;for(y in t)if(t.hasOwnProperty(y)){var v=c(y,r),m="left"===y?o:a;v===y?h[v]=m+t[y]-d[y]:h[v]=m+d[y]-t[y]}n(e,h)}function d(e,t){for(var n=0;n<e.length;n++)t(e[n])}function h(e){return"border-box"===C(e,"boxSizing")}function y(e,t,n){var r={},o=e.style,a=void 0;for(a in t)t.hasOwnProperty(a)&&(r[a]=o[a],o[a]=t[a]);n.call(e);for(a in t)t.hasOwnProperty(a)&&(o[a]=r[a])}function v(e,t,n){var r=0,o=void 0,a=void 0,i=void 0;for(a=0;a<t.length;a++)if(o=t[a])for(i=0;i<n.length;i++){var s=void 0;s="border"===o?o+n[i]+"Width":o+n[i],r+=parseFloat(C(e,s))||0}return r}function m(e){return null!==e&&void 0!==e&&e==e.window}function g(e,t,n){var r=n;if(m(e))return"width"===t?A.viewportWidth(e):A.viewportHeight(e);if(9===e.nodeType)return"width"===t?A.docWidth(e):A.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],a="width"===t?e.offsetWidth:e.offsetHeight,i=C(e),s=h(e,i),l=0;(null===a||void 0===a||0>=a)&&(a=void 0,l=C(e,t),(null===l||void 0===l||Number(l)<0)&&(l=e.style[t]||0),l=parseFloat(l)||0),void 0===r&&(r=s?M:_);var u=void 0!==a||s,c=a||l;return r===_?u?c-v(e,["border","padding"],o,i):l:u?r===M?c:c+(r===j?-v(e,["border"],o,i):v(e,["margin"],o,i)):l+v(e,N.slice(r),o,i)}function b(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=void 0,o=t[0];return 0!==o.offsetWidth?r=g.apply(void 0,t):y(o,L,function(){r=g.apply(void 0,t)}),r}function P(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}Object.defineProperty(t,"__esModule",{value:!0});var O=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,C=void 0,T=new RegExp("^("+O+")(?!px)[a-z%]+$","i"),w=/^(top|right|bottom|left)$/,x="currentStyle",E="runtimeStyle",S="left",k="px";"undefined"!=typeof window&&(C=window.getComputedStyle?l:u);var N=["margin","border","padding"],_=-1,j=2,M=1,D=0,A={};d(["Width","Height"],function(e){A["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],A["viewport"+e](n))},A["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,a=r.documentElement,i=a[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}});var L={position:"absolute",visibility:"hidden",display:"block"};d(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);A["outer"+t]=function(t,n){return t&&b(t,e,n?D:M)};var r="width"===e?["Left","Right"]:["Top","Bottom"];A[e]=function(t,o){var a=o;{if(void 0===a)return t&&b(t,e,_);if(t){var i=C(t),s=h(t);return s&&(a+=v(t,["padding","border"],r,i)),n(t,e,a)}}}});var V={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t,n){return"undefined"==typeof t?s(e):void f(e,t,n||{})},isWindow:m,each:d,css:n,clone:function(e){var t=void 0,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);var r=e.overflow;if(r)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:P,getWindowScrollLeft:function(e){return a(e)},getWindowScrollTop:function(e){return i(e)},merge:function(){for(var e={},t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];for(var o=0;o<n.length;o++)V.mix(e,n[o]);return e},viewportWidth:0,viewportHeight:0};P(V,A),t["default"]=V,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(344),a=r(o),i=n(347),s=r(i),l=n(345),u=r(l),c=n(346),p=r(c),f=n(343),d=r(f);t.SubMenu=s["default"],t.Item=u["default"],t.MenuItem=u["default"],t.MenuItemGroup=p["default"],t.ItemGroup=p["default"],t.Divider=d["default"],t["default"]=a["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){}function a(e,t,n){var r=t||"";return e.key||r+"item_"+u+"_"+n}function i(e,t){var n=-1;l["default"].Children.forEach(e,function(e){n++,e&&e.type.isMenuItemGroup?l["default"].Children.forEach(e.props.children,function(e){n++,t(e,n)}):t(e,n)})}Object.defineProperty(t,"__esModule",{value:!0}),t.noop=o,t.getKeyFromChildrenIndex=a,t.loopMenuItem=i;var s=n(1),l=r(s),u=Date.now()},[441,258],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=n(1),d=r(f),h=n(373),y=r(h),v=n(2),m=r(v),g=(c=u=function(e){function t(){return i(this,t),s(this,e.apply(this,arguments))}return l(t,e),t.prototype.render=function(){var e,t=this.props,n=t.size,r=t.className,o=t.combobox,i=t.notFoundContent,s=t.prefixCls,l=t.showSearch,u=(0,m["default"])((e={},a(e,s+"-lg","large"===n),a(e,s+"-sm","small"===n),a(e,r,!!r),a(e,s+"-show-search",l),e));return o&&(i=null),d["default"].createElement(y["default"],p({},this.props,{className:u,notFoundContent:i}))},t}(d["default"].Component),u.Option=h.Option,u.OptGroup=h.OptGroup,u.defaultProps={prefixCls:"ant-select",transitionName:"slide-up",optionLabelProp:"children",choiceTransitionName:"zoom",showSearch:!1},c);t["default"]=g,e.exports=t["default"]},[441,279],function(e,t,n){"use strict";function r(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}function o(e,t,n){return"string"==typeof e&&t?e.replace(n||T,function(e,n){return"\\"===e.charAt(0)?e.slice(1):void 0===t[n]?w:t[n]}):e}function a(e,t,n){n.push({field:e,count:t})}function i(e){for(var t=e.length,n=!1,r=[],o=null,i=0,s=-1,l=0;t>l;l++){var u=e.charAt(l);if("'"!==u)if(n)o+=u;else if(u>="a"&&"z">=u||u>="A"&&"Z">=u){if(-1===P.indexOf(u))throw new Error('Illegal pattern character "'+u+'"');-1!==s&&s!==u?(a(s,i,r),s=u,i=1):(s=u,i++)}else 0!==i&&(a(s,i,r),s=-1,i=0),r.push({text:u});else{if(t>l+1&&(u=e.charAt(l+1),"'"===u)){l++,0!==i&&(a(s,i,r),s=-1,i=0),n&&(o+=u);continue}n?(r.push({text:o}),n=!1):(0!==i&&(a(s,i,r),s=-1,i=0),o="",n=!0)}}if(n)throw new Error("Unterminated quote");return 0!==i&&a(s,i,r),r}function s(e,t,n,r){var o=!0;e:for(;o;){var a=e,i=t,s=n,l=r;o=!1;var u=l||[],c=s||m;if(a>=0){if(100>a&&i>=1&&2>=i)return 10>a&&2===i&&u.push(x),u.push(a),u.join("");if(a>=1e3&&1e4>a){if(4===i)return u.push(a),u.join("");if(2===i&&2===c){e=a%100,t=2,n=2,r=u,o=!0,u=c=void 0;continue e}}}return u.push(a+""),u.join("")}}function l(e,t){this.locale=t||v,this.originalPattern=e,this.pattern=i(e)}function u(e,t,n,r){var o=void 0,a=void 0;switch(e){case"G":a=r.getYear()>0?1:0,o=n.eras[a];break;case"Y":a=r.getWeekYear(),0>=a&&(a=1-a),o=s(a,2,2!==t?m:2);break;case"y":a=r.getYear(),0>=a&&(a=1-a),o=s(a,2,2!==t?m:2);break;case"M":a=r.getMonth(),o=t>=4?n.months[a]:3===t?n.shortMonths[a]:s(a+1,t);break;case"k":o=s(r.getHourOfDay()||24,t);break;case"E":a=r.getDayOfWeek(),o=t>=4?n.weekdays[a]:n.shortWeekdays[a];break;case"a":o=n.ampms[r.getHourOfDay()>=12?1:0];break;case"h":o=s(r.getHourOfDay()%12||12,t);break;case"K":o=s(r.getHourOfDay()%12,t);break;case"Z":var i=r.getTimezoneOffset(),l=[0>i?"-":"+"];i=Math.abs(i),l.push(s(Math.floor(i/60)%100,2),s(i%60,2)),o=l.join("");break;default:var u=C[e];a=r.get(u),o=s(a,t)}return o}function c(e,t,n,r){for(var o=0;r>o;o++)if(e.charAt(t+o)!==n.charAt(o))return!1;return!0}function p(e,t,n){var r=-1,o=-1,a=void 0,i=n.length;for(a=0;i>a;a++){var s=n[a],l=s.length;l>r&&c(e,t,s,l)&&(r=l,o=a)}return o>=0?{value:o,startIndex:t+r}:null}function f(e){var t=void 0,n=void 0,r=e.length;for(t=0;r>t&&(n=e.charAt(t),!("0">n||n>"9"));t++);return t}function d(e,t,n,r){var o=e,a=void 0;if(r){if(e.length<t+n)return null;if(o=e.slice(t,t+n),!o.match(/^\d+$/))throw new Error("GregorianCalendarFormat parse error, dateStr: "+e+", patter: "+this.originalPattern)}else o=o.slice(t);if(a=parseInt(o,10),isNaN(a))throw new Error("GregorianCalendarFormat parse error, dateStr: "+e+", patter: "+this.originalPattern);return{value:a,startIndex:t+f(o)}}function h(e,t,n,r,o,a,i){var s=void 0,l=void 0,u=void 0,c=n;if(t.length<=c)return c;var f=this.locale;switch(r){case"G":s=p(t,c,f.eras),s&&(e.isSetYear()?0===s.value&&(l=e.getYear(),e.setYear(1-l)):i.era=s.value);break;case"y":s=d.call(this,t,c,o,a),s&&(l=s.value,"era"in i&&0===i.era&&(l=1-l),e.setYear(l));break;case"M":var h=void 0;o>=3?(s=p(t,c,f[3===o?"shortMonths":"months"]),s&&(h=s.value)):(s=d.call(this,t,c,o,a),s&&(h=s.value-1)),s&&e.setMonth(h);break;case"k":s=d.call(this,t,c,o,a),s&&e.setHourOfDay(s.value%24);break;case"E":s=p(t,c,f[o>3?"weekdays":"shortWeekdays"]),s&&e.setDayOfWeek(s.value);break;case"a":s=p(t,c,f.ampms),s&&(e.isSetHourOfDay()?s.value&&(u=e.getHourOfDay(),12>u&&e.setHourOfDay((u+12)%24)):i.ampm=s.value);break;case"h":s=d.call(this,t,c,o,a),s&&(u=s.value%=12,i.ampm&&(u+=12),e.setHourOfDay(u));break;case"K":s=d.call(this,t,c,o,a),s&&(u=s.value,i.ampm&&(u+=12),e.setHourOfDay(u));break;case"Z":var y=t.charAt(c);if("-"===y)c++;else{if("+"!==y)break;c++}if(s=d.call(this,t,c,2,!0)){var v=60*s.value;c=s.startIndex,s=d.call(this,t,c,2,!0),s&&(v+=s.value),e.setTimezoneOffset(v)}break;default:if(s=d.call(this,t,c,o,a)){var m=C[r];e.set(m,s.value)}}return s&&(c=s.startIndex),c}var y=n(11),v=n(37),m=Number.MAX_VALUE,g=n(12),b={FULL:0,LONG:1,MEDIUM:2,SHORT:3},P=new Array(y.DAY_OF_WEEK_IN_MONTH+2).join("1"),O=0,C={};P=P.split(""),P[O]="G",P[y.YEAR]="y",P[y.MONTH]="M",P[y.DAY_OF_MONTH]="d",P[y.HOUR_OF_DAY]="H",P[y.MINUTES]="m",P[y.SECONDS]="s",P[y.MILLISECONDS]="S",P[y.WEEK_OF_YEAR]="w",P[y.WEEK_OF_MONTH]="W",P[y.DAY_OF_YEAR]="D",P[y.DAY_OF_WEEK_IN_MONTH]="F",P.push("Y"),P.forEach(function(e,t){var n=t;"Y"===e&&(n=y.YEAR),e&&(C[e]=n)});var T=/\\?\{([^{}]+)\}/g,w="";P=P.join("")+"ahkKZE";var x="0";r(l.prototype,{format:function(e){if(!e.isGregorianCalendar)throw new Error("calendar must be type of GregorianCalendar");var t=void 0,n=[],r=this.pattern,o=r.length;for(t=0;o>t;t++){var a=r[t];a.text?n.push(a.text):"field"in a&&n.push(u(a.field,a.count,this.locale,e))}return n.join("")},parse:function(e,t){var n=t||{},r=n.locale,o=new y(r),a=void 0,i=void 0,s={},l=n.obeyCount||!1,u=e.length,c=-1,p=0,f=0,d=this.pattern,v=d.length;e:for(a=0;0>c&&v>a;a++){var m=d[a],b=void 0,P=void 0;if(f=p,b=m.text)if(P=b.length,P+p>u)c=p;else{for(i=0;P>i;i++)if(b.charAt(i)!==e.charAt(i+p)){c=p;break e}p+=P}else if("field"in m){if(!n.obeyCount){var O=d[a+1];if(l=!1,O)if("field"in O)l=!0;else{var C=O.text.charAt(0);C>="0"&&"9">=C&&(l=!0)}}p=h.call(this,o,e,p,m.field,m.count,l,s),p===f&&(c=p)}}return c>=0?void g(!1,"error when parsing date: "+e+", position: "+e.slice(0,c)+"^"):o}}),r(l,{Style:b,getInstance:function(e){return this.getDateTimeInstance(b.SHORT,b.SHORT,e)},getDateInstance:function(e,t){return this.getDateTimeInstance(e,void 0,t)},getDateTimeInstance:function(e,t,n){var r=n||v,a="";void 0!==e&&(a=r.datePatterns[e]);var i="";void 0!==t&&(i=r.timePatterns[t]);var s=a;return i&&(s=a?o(r.dateTimePattern,{date:a,time:i}):i),new l(s,r)},getTimeInstance:function(e,t){return this.getDateTimeInstance(void 0,e,t)}}),e.exports=l,l.version="@VERSION@"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=n(319),s=r(i),l=n(13);t["default"]={propTypes:{className:a.PropTypes.string,locale:a.PropTypes.object,style:a.PropTypes.object,visible:a.PropTypes.bool,onSelect:a.PropTypes.func,prefixCls:a.PropTypes.string,onChange:a.PropTypes.func,onOk:a.PropTypes.func},getDefaultProps:function(){return{locale:s["default"],style:{},visible:!0,prefixCls:"rc-calendar",formatter:"yyyy-MM-dd",className:"",onSelect:o,onChange:o,onClear:o}},shouldComponentUpdate:function(e){return this.props.visible||e.visible},getFormatter:function(){var e=this.props.formatter,t=this.props.locale;return this.normalFormatter&&e===this.lastFormatter?this.normalFormatter:(this.normalFormatter=(0,l.getFormatter)(e,t),this.lastFormatter=e,this.normalFormatter)}},e.exports=t["default"]},function(e,t){"use strict";function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=Object.assign||function(e,t){for(var r,o,a=n(e),i=1;i<arguments.length;i++){r=arguments[i],o=Object.keys(Object(r)); for(var s=0;s<o.length;s++)a[o[s]]=r[o[s]]}return a}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r,o){var a=e.type,l=[],u=e.required||!e.required&&r.hasOwnProperty(e.field);if(u){if((0,s.isEmptyValue)(t,a)&&!e.required)return n();i["default"].required(e,t,r,l,o,a),(0,s.isEmptyValue)(t,a)||i["default"].type(e,t,r,l,o)}n(l)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(8),i=r(a),s=n(5);t["default"]=o,e.exports=t["default"]},function(e,t){"use strict";function n(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=e.arrowWidth,n=void 0===t?5:t,a=e.horizontalArrowShift,i=void 0===a?16:a,s=e.verticalArrowShift,l=void 0===s?12:s;return{left:{points:["cr","cl"],overflow:r,offset:[-4,0],targetOffset:o},right:{points:["cl","cr"],overflow:r,offset:[4,0],targetOffset:o},top:{points:["bc","tc"],overflow:r,offset:[0,-4],targetOffset:o},bottom:{points:["tc","bc"],overflow:r,offset:[0,4],targetOffset:o},topLeft:{points:["bl","tc"],overflow:r,offset:[-(i+n),-4],targetOffset:o},leftTop:{points:["tr","cl"],overflow:r,offset:[-4,-(l+n)],targetOffset:o},topRight:{points:["br","tc"],overflow:r,offset:[i+n,-4],targetOffset:o},rightTop:{points:["tl","cr"],overflow:r,offset:[4,-(l+n)],targetOffset:o},bottomRight:{points:["tr","bc"],overflow:r,offset:[i+n,4],targetOffset:o},rightBottom:{points:["bl","cr"],overflow:r,offset:[4,l+n],targetOffset:o},bottomLeft:{points:["tl","bc"],overflow:r,offset:[-(i+n),4],targetOffset:o},leftBottom:{points:["br","cl"],overflow:r,offset:[-4,l+n],targetOffset:o}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n;var r={adjustX:1,adjustY:1},o=[0,0];e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(32),a=r(o),i=n(207),s=r(i),l=n(62),u=r(l);a["default"].Button=u["default"],a["default"].Group=s["default"],t["default"]=a["default"],e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=n(363),d=r(f),h=n(1),y=r(h),v=n(2),m=r(v),g=(c=u=function(e){function t(){return i(this,t),s(this,e.apply(this,arguments))}return l(t,e),t.prototype.render=function(){var e,t=this.props,n=t.prefixCls,r=t.children,o=t.checked,i=t.disabled,s=t.className,l=t.style,u=(0,m["default"])((e={},a(e,""+n,!0),a(e,n+"-checked",o),a(e,n+"-disabled",i),a(e,s,!!s),e));return y["default"].createElement("label",{className:u,style:l},y["default"].createElement(d["default"],p({},this.props,{style:null,children:null})),r?y["default"].createElement("span",null,r):null)},t}(y["default"].Component),u.defaultProps={prefixCls:"ant-radio"},c);t["default"]=g,e.exports=t["default"]},[441,277],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var l,u,c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=n(1),f=r(p),d=n(104),h=r(d),y=n(30),v=r(y),m=(0,v["default"])({verticalArrowShift:8}),g=(u=l=function(e){function t(n){a(this,t);var r=i(this,e.call(this,n));return r.onVisibleChange=function(e){r.setState({visible:e})},r.onPopupAlign=function(e,t){var n=Object.keys(m).filter(function(e){return m[e].points[0]===t.points[0]&&m[e].points[1]===t.points[1]})[0];if(n){var r=e.getBoundingClientRect(),o={top:"50%",left:"50%"};n.indexOf("top")>=0||n.indexOf("Bottom")>=0?o.top=r.height-t.offset[1]+"px":(n.indexOf("Top")>=0||n.indexOf("bottom")>=0)&&(o.top=-t.offset[1]+"px"),n.indexOf("left")>=0||n.indexOf("Right")>=0?o.left=r.width-t.offset[0]+"px":(n.indexOf("right")>=0||n.indexOf("Left")>=0)&&(o.left=-t.offset[0]+"px"),e.style.transformOrigin=o.left+" "+o.top}},r.state={visible:!1},r}return s(t,e),t.prototype.getPopupDomNode=function(){return this.refs.tooltip.getPopupDomNode()},t.prototype.render=function(){var e=this.state.visible;return this.props.title||this.props.overlay||(e=!1),f["default"].createElement(h["default"],c({transitionName:this.props.transitionName,builtinPlacements:m,overlay:this.props.title,visible:e,onVisibleChange:this.onVisibleChange,onPopupAlign:this.onPopupAlign,ref:"tooltip"},this.props),this.props.children)},t}(f["default"].Component),l.defaultProps={prefixCls:"ant-tooltip",placement:"top",transitionName:"zoom-big",mouseEnterDelay:.1,mouseLeaveDelay:.1},u);t["default"]=g,e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(251)},3,function(e,t){"use strict";e.exports={eras:["BC","AD"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortWeekdays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],veryShortWeekdays:["Su","Mo","Tu","We","Th","Fr","Sa"],ampms:["AM","PM"],datePatterns:["EEEE, MMMM d, yyyy","MMMM d, yyyy","MMM d, yyyy","M/d/yy"],timePatterns:["h:mm:ss a 'GMT'Z","h:mm:ss a","h:mm:ss a","h:mm a"],dateTimePattern:"{date} {time}"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(1),u=r(l),c=n(316),p=r(c),f=n(315),d=r(f),h=function(e){function t(){return o(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return i(t,e),s(t,[{key:"render",value:function(){var e=this.props,t=e.prefixCls;return u["default"].createElement("table",{className:t+"-table",cellSpacing:"0",role:"grid"},u["default"].createElement(p["default"],e),u["default"].createElement(d["default"],e))}}]),t}(u["default"].Component);t["default"]=h,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){}function i(){var e=new d["default"];return e.setTime(Date.now()),e}function s(e){var t=void 0;return e?(t=e.clone(),t.setTime(Date.now())):t=i(),t}Object.defineProperty(t,"__esModule",{value:!0});var l=n(1),u=r(l),c=n(2),p=r(c),f=n(11),d=r(f),h=n(13),y={propTypes:{value:l.PropTypes.object,defaultValue:l.PropTypes.object,onKeyDown:l.PropTypes.func},getDefaultProps:function(){return{onKeyDown:a}},getInitialState:function(){var e=this.props,t=e.value||e.defaultValue||i();return{value:t,selectedValue:e.selectedValue||e.defaultSelectedValue}},componentWillReceiveProps:function(e){var t=e.value,n=e.selectedValue;"value"in e&&(t=t||e.defaultValue||s(this.state.value),this.setState({value:t})),"selectedValue"in e&&this.setState({selectedValue:n})},onSelect:function(e,t){e&&this.setValue(e),this.setSelectedValue(e,t)},renderRoot:function(e){var t,n=this.props,r=n.prefixCls,a=(t={},o(t,r,1),o(t,r+"-hidden",!n.visible),o(t,n.className,!!n.className),o(t,e.className,!!e.className),t);return u["default"].createElement("div",{className:""+(0,p["default"])(a),style:this.props.style,tabIndex:"0",onKeyDown:this.onKeyDown},e.children)},setSelectedValue:function(e,t){this.isAllowedDate(e)&&("selectedValue"in this.props||this.setState({selectedValue:e}),this.props.onSelect(e,t))},setValue:function(e){var t=this.state.value;"value"in this.props||this.setState({value:e}),(t&&e&&t.getTime()!==e.getTime()||!t&&e||t&&!e)&&this.props.onChange(e)},isAllowedDate:function(e){var t=this.props.disabledDate,n=this.props.disabledTime;return(0,h.isAllowedDate)(e,t,n)}};t["default"]=y,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),l=r(s),u=function(e){function t(){return o(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return i(t,e),t}(l["default"].Component);t["default"]=u,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.props;if("value"in t)return t.value;if(e.key)return e.key;throw new Error("no key or value for "+e)}function a(e,t){return"value"===t?o(e):e.props[t]}function i(e){return e.combobox}function s(e){return e.multiple||e.tags}function l(e){return s(e)||i(e)}function u(e){return!l(e)}function c(e){var t=e;return void 0===e?t=[]:Array.isArray(e)||(t=[e]),t}function p(e){e.preventDefault()}function f(e,t){for(var n=-1,r=0;r<e.length;r++)if(e[r].key===t){n=r;break}return n}function d(e,t){if(null===t||void 0===t)return[];var n=[];return m["default"].Children.forEach(e,function(e){if(e.type===y.ItemGroup)n=n.concat(d(e.props.children,t));else{var r=o(e),a=e.key;-1!==f(t,r)&&a&&n.push(a)}}),n}function h(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.type===y.ItemGroup){var r=h(n.props.children);if(r)return r}else if(!n.props.disabled)return n}return null}Object.defineProperty(t,"__esModule",{value:!0}),t.UNSELECTABLE_ATTRIBUTE=t.UNSELECTABLE_STYLE=void 0,t.getValuePropValue=o,t.getPropValue=a,t.isCombobox=i,t.isMultipleOrTags=s,t.isMultipleOrTagsOrCombobox=l,t.isSingleMode=u,t.toArray=c,t.preventDefaultEvent=p,t.findIndexInValueByKey=f,t.getSelectKeys=d,t.findFirstMenuItem=h;var y=n(21),v=n(1),m=r(v);t.UNSELECTABLE_STYLE={userSelect:"none",WebkitUserSelect:"none"},t.UNSELECTABLE_ATTRIBUTE={unselectable:"unselectable"}},function(e,t,n){(function(e,r){function o(e,t){this._id=e,this._clearFn=t}var a=n(305).nextTick,i=Function.prototype.apply,s=Array.prototype.slice,l={},u=0;t.setTimeout=function(){return new o(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},t.setImmediate="function"==typeof e?e:function(e){var n=u++,r=arguments.length<2?!1:s.call(arguments,1);return l[n]=!0,a(function(){l[n]&&(r?e.apply(null,r):e.call(null),t.clearImmediate(n))}),n},t.clearImmediate="function"==typeof r?r:function(e){delete l[e]}}).call(t,n(42).setImmediate,n(42).clearImmediate)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t){function n(e,t,n){n=n||{},n.childrenKeyName=n.childrenKeyName||"children";var r,o=e||[],a=[],i=0;do{var r=o.filter(function(e){return t(e,i)})[0];if(!r)break;a.push(r),o=r[n.childrenKeyName]||[],i+=1}while(o.length>0);return a}e.exports=n},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e,t,n,r,o,a){!e.required||n.hasOwnProperty(e.field)&&!i.isEmptyValue(t,a)||r.push(i.format(o.messages.required,e.fullField))}Object.defineProperty(t,"__esModule",{value:!0});var a=n(5),i=r(a);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=n(1),d=r(f),h=(c=u=function(e){function t(){return i(this,t),s(this,e.apply(this,arguments))}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.prefixCls,n=e.separator,r=e.children,o=a(e,["prefixCls","separator","children"]),i=void 0;return i="href"in this.props?d["default"].createElement("a",p({className:t+"-link"},o),r):d["default"].createElement("span",p({className:t+"-link"},o),r),d["default"].createElement("span",null,i,d["default"].createElement("span",{className:t+"-separator"},n))},t}(d["default"].Component),u.defaultProps={prefixCls:"ant-breadcrumb",separator:"/"},u.propTypes={prefixCls:d["default"].PropTypes.string,separator:d["default"].PropTypes.oneOfType([d["default"].PropTypes.string,d["default"].PropTypes.element]),href:d["default"].PropTypes.string},c);t["default"]=h,e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.PREFIX_CLS="ant-fullcalendar"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){var r=void 0;return(0,i["default"])(e,"ant-motion-collapse",{start:function(){t?(r=e.offsetHeight,e.style.height=0):e.style.height=e.offsetHeight+"px"},active:function(){e.style.height=(t?r:0)+"px"},end:function(){e.style.height="",n()}})}Object.defineProperty(t,"__esModule",{value:!0});var a=n(19),i=r(a),s={enter:function(e,t){return o(e,!0,t)},leave:function(e,t){return o(e,!1,t)},appear:function(e,t){return o(e,!0,t)}};t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(77),i=r(a),s=n(89),l=r(s),u=n(65),c=r(u),p=o({},i["default"]);p.lang=o({placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"]},l["default"]),p.timePickerLocale=o({},c["default"]),p.lang.ok="\u786e \u5b9a",t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=n(1),d=r(f),h=n(336),y=r(h),v=(c=u=function(e){function t(){return i(this,t),s(this,e.apply(this,arguments))}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.overlay,n=a(e,["overlay"]),r=d["default"].cloneElement(t,{openTransitionName:"zoom-big"});return d["default"].createElement(y["default"],p({},n,{overlay:r}))},t}(d["default"].Component),u.defaultProps={transitionName:"slide-up",prefixCls:"ant-dropdown",mouseEnterDelay:.15,mouseLeaveDelay:.1},c);t["default"]=v,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(50),a=r(o),i=n(174),s=r(i);a["default"].Button=s["default"],t["default"]=a["default"],e.exports=t["default"]},[443,266],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(184),a=r(o),i=n(183),s=r(i);a["default"].Group=s["default"],t["default"]=a["default"],e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Col=t.Row=void 0;var o=n(186),a=r(o),i=n(185),s=r(i);t.Row=a["default"],t.Col=s["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}function l(){}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=n(1),d=r(f),h=n(334),y=r(h),v=n(6),m=n(15),g=r(m),b=void 0,P=void 0,O=(c=u=function(e){function t(){var n,r,o;a(this,t);for(var s=arguments.length,l=Array(s),u=0;s>u;u++)l[u]=arguments[u];return n=r=i(this,e.call.apply(e,[this].concat(l))),r.handleCancel=function(e){r.props.onCancel(e)},r.handleOk=function(){r.props.onOk()},o=n,i(r,o)}return s(t,e),t.prototype.componentDidMount=function(){P||(v.Dom.addEventListener(document.documentElement,"click",function(e){b={x:e.pageX,y:e.pageY},setTimeout(function(){return b=null},20)}),P=!0)},t.prototype.render=function(){var e=this.props,t=e.okText,n=e.cancelText;this.context.antLocale&&this.context.antLocale.Modal&&(t=t||this.context.antLocale.Modal.okText,n=n||this.context.antLocale.Modal.cancelText);var r=[d["default"].createElement(g["default"],{key:"cancel",type:"ghost",size:"large",onClick:this.handleCancel},n||"\u53d6\u6d88"),d["default"].createElement(g["default"],{key:"confirm",type:"primary",size:"large",loading:e.confirmLoading,onClick:this.handleOk},t||"\u786e\u5b9a")],o=e.footer||r;return d["default"].createElement(y["default"],p({onClose:this.handleCancel,footer:o},e,{visible:e.visible,mousePosition:b}))},t}(d["default"].Component),u.defaultProps={prefixCls:"ant-modal",onOk:l,onCancel:l,width:520,transitionName:"zoom",maskTransitionName:"fade",confirmLoading:!1,visible:!1},u.propTypes={prefixCls:f.PropTypes.string,onOk:f.PropTypes.func,onCancel:f.PropTypes.func,okText:f.PropTypes.node,cancelText:f.PropTypes.node,width:f.PropTypes.oneOfType([f.PropTypes.number,f.PropTypes.string]),confirmLoading:f.PropTypes.bool,visible:f.PropTypes.bool,align:f.PropTypes.object,footer:f.PropTypes.node,title:f.PropTypes.node,closable:f.PropTypes.bool},u.contextTypes={antLocale:d["default"].PropTypes.object},c);t["default"]=O,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){O=e?s({},O,e):s({},P)}function i(e){function t(){c.setState({visible:!1}),p["default"].unmountComponentAtNode(l),l.parentNode.removeChild(l)}function n(){var e=i.onCancel;if(e){var n=void 0;e.length?n=e(t):(n=e(),n||t()),n&&n.then&&n.then(t)}else t()}function r(){var e=i.onOk;if(e){var n=void 0;e.length?n=e(t):(n=e(),n||t()),n&&n.then&&n.then(t)}else t()}var a,i=s({},e),l=document.createElement("div");document.body.appendChild(l);var c=void 0;i.iconType=i.iconType||"question-circle";var f=i.width||416;"okCancel"in i||(i.okCancel=!0),i.okText=i.okText||(i.okCancel?O.okText:O.justOkText),i.cancelText=i.cancelText||O.cancelText;var h=u["default"].createElement("div",{className:"ant-confirm-body"},u["default"].createElement(y["default"],{type:i.iconType}),u["default"].createElement("span",{className:"ant-confirm-title"},i.title),u["default"].createElement("div",{className:"ant-confirm-content"},i.content)),v=null;v=i.okCancel?u["default"].createElement("div",{className:"ant-confirm-btns"},u["default"].createElement(m["default"],{type:"ghost",size:"large",onClick:n},i.cancelText),u["default"].createElement(m["default"],{type:"primary",size:"large",onClick:r},i.okText)):u["default"].createElement("div",{className:"ant-confirm-btns"},u["default"].createElement(m["default"],{type:"primary",size:"large",onClick:r},i.okText));var g=(0,b["default"])((a={"ant-confirm":!0},o(a,"ant-confirm-"+i.type,!0),o(a,i.className,!!i.className),a));p["default"].render(u["default"].createElement(d["default"],{className:g,visible:!0,closable:!1,title:"",transitionName:"zoom",footer:"",maskTransitionName:"fade",width:f},u["default"].createElement("div",{style:{zoom:1,overflow:"hidden"}},h," ",v)),l,function(){c=this})}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.changeConfirmLocale=a,t["default"]=i;var l=n(1),u=r(l),c=n(4),p=r(c),f=n(55),d=r(f),h=n(7),y=r(h),v=n(15),m=r(v),g=n(2),b=r(g),P={okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",justOkText:"\u77e5\u9053\u4e86"},O=s({},P)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(199),a=r(o);t["default"]=a["default"],e.exports=t["default"]},function(e,t,n){"use strict";n(3),n(274),n(25),n(16)},[441,275],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(1),i=r(a),s=n(204),l=r(s),u=n(12),c=r(u),p=l["default"];p.Line=function(e){return(0,c["default"])(!1,'<Progress.Line /> is deprecated, use <Progress type="line" /> instead.'),i["default"].createElement(l["default"],o({},e,{type:"line"}))},p.Circle=function(e){return(0,c["default"])(!1,'<Progress.Circle /> is deprecated, use <Progress type="circle" /> instead.'),i["default"].createElement(l["default"],o({},e,{type:"circle"}))},t["default"]=p,e.exports=t["default"]},[441,276],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var l,u,c=n(1),p=r(c),f=n(32),d=r(f),h=(u=l=function(e){function t(){return a(this,t),i(this,e.apply(this,arguments))}return s(t,e),t.prototype.render=function(){return p["default"].createElement(d["default"],this.props)},t}(p["default"].Component),l.defaultProps={prefixCls:"ant-radio-button"},u);t["default"]=h,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p=n(1),f=r(p),d=n(4),h=n(2),y=r(h),v=n(19),m=n(12),g=r(m),b=(c=u=function(e){function t(){return i(this,t),s(this,e.apply(this,arguments))}return l(t,e),t.prototype.isNestedPattern=function(){return!(!this.props||!this.props.children)},t.prototype.componentDidMount=function(){(0,g["default"])(!("spining"in this.props),"`spining` property of Popover is a spell mistake, use `spinning` instead."),v.isCssAnimationSupported||((0,d.findDOMNode)(this).className+=" "+this.props.prefixCls+"-show-text")},t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.size,o=t.prefixCls,i=t.tip,s=t.spining,l=void 0===s?!0:s,u=this.props.spinning&&l,c=(0,y["default"])((e={},a(e,o,!0),a(e,o+"-sm","small"===r),a(e,o+"-lg","large"===r),a(e,n,!!n),a(e,o+"-spinning",u),a(e,o+"-show-text",!!this.props.tip),e)),p=f["default"].createElement("div",{className:c},f["default"].createElement("span",{className:o+"-dot "+o+"-dot-first"}),f["default"].createElement("span",{className:o+"-dot "+o+"-dot-second"}),f["default"].createElement("span",{className:o+"-dot "+o+"-dot-third"}),f["default"].createElement("div",{className:o+"-text"},i||"\u52a0\u8f7d\u4e2d..."));return this.isNestedPattern()?f["default"].createElement("div",{className:u?o+"-nested-loading":""},p,f["default"].createElement("div",{className:o+"-container"},this.props.children)):p},t}(f["default"].Component),u.defaultProps={prefixCls:"ant-spin",spinning:!0},u.propTypes={className:f["default"].PropTypes.string,size:f["default"].PropTypes.oneOf(["small","default","large"])},c);t["default"]=b,e.exports=t["default"]},[441,281],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(395),i=r(a),s=o({placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4"},i["default"]);t["default"]=s,e.exports=t["default"]},[442,286],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{ constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var c,p,f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=n(1),h=r(d),y=n(2),v=r(y),m=(p=c=function(e){function t(){return s(this,t),l(this,e.apply(this,arguments))}return u(t,e),t.prototype.render=function(){var e,t=this.props,n=t.prefixCls,r=t.color,o=t.last,s=t.children,l=t.pending,u=t.className,c=i(t,["prefixCls","color","last","children","pending","className"]),p=(0,v["default"])((e={},a(e,n+"-item",!0),a(e,n+"-item-last",o),a(e,n+"-item-pending",l),a(e,u,u),e));return h["default"].createElement("li",f({},c,{className:p}),h["default"].createElement("div",{className:n+"-item-tail"}),h["default"].createElement("div",{className:n+"-item-head "+n+"-item-head-"+r}),h["default"].createElement("div",{className:n+"-item-content"},s))},t}(h["default"].Component),c.defaultProps={prefixCls:"ant-timeline",color:"blue",last:!1,pending:!1},p);t["default"]=m,e.exports=t["default"]},[441,288],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}function l(){}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p=n(1),f=r(p),d=n(7),h=r(d),y=(c=u=function(e){function t(){var n,r,o;a(this,t);for(var s=arguments.length,l=Array(s),u=0;s>u;u++)l[u]=arguments[u];return n=r=i(this,e.call.apply(e,[this].concat(l))),r.handleChange=function(e){r.props.onChange(e)},r.handleClear=function(e){e.preventDefault(),r.props.handleClear(e)},o=n,i(r,o)}return s(t,e),t.prototype.render=function(){var e=this.props,t=e.placeholder,n=e.value,r=e.prefixCls;return f["default"].createElement("div",null,f["default"].createElement("input",{placeholder:t,className:r+" ant-input",value:n,ref:"input",onChange:this.handleChange}),n&&n.length>0?f["default"].createElement("a",{href:"#",className:r+"-action",onClick:this.handleClear},f["default"].createElement(h["default"],{type:"cross-circle"})):f["default"].createElement("span",{className:r+"-action"},f["default"].createElement(h["default"],{type:"search"})))},t}(f["default"].Component),u.defaultProps={placeholder:"",onChange:l,handleClear:l},u.propTypes={prefixCls:p.PropTypes.string,placeholder:p.PropTypes.string,onChange:p.PropTypes.func,handleClear:p.PropTypes.func},c);t["default"]=y,e.exports=t["default"]},function(e,t,n){function r(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}try{var o=n(71)}catch(a){var o=n(71)}var i=/\s+/,s=Object.prototype.toString;e.exports=function(e){return new r(e)},r.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array(),n=o(t,e);return~n||t.push(e),this.el.className=t.join(" "),this},r.prototype.remove=function(e){if("[object RegExp]"==s.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=o(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},r.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},r.prototype.toggle=function(e,t){return this.list?("undefined"!=typeof t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this):("undefined"!=typeof t?t?this.add(e):this.remove(e):this.has(e)?this.remove(e):this.add(e),this)},r.prototype.array=function(){var e=this.el.getAttribute("class")||"",t=e.replace(/^\s+|\s+$/g,""),n=t.split(i);return""===n[0]&&n.shift(),n},r.prototype.has=r.prototype.contains=function(e){return this.list?this.list.contains(e):!!~o(this.array(),e)}},function(e,t){e.exports=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.ownerDocument,n=t.body,r=void 0,o=i["default"].css(e,"position"),a="fixed"===o||"absolute"===o;if(!a)return"html"===e.nodeName.toLowerCase()?null:e.parentNode;for(r=e.parentNode;r&&r!==n;r=r.parentNode)if(o=i["default"].css(r,"position"),"static"!==o)return r;return null}Object.defineProperty(t,"__esModule",{value:!0});var a=n(20),i=r(a);t["default"]=o,e.exports=t["default"]},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},function(e,t){"use strict";e.exports={eras:["\u516c\u5143\u524d","\u516c\u5143"],months:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],shortMonths:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],weekdays:["\u661f\u671f\u5929","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],shortWeekdays:["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],veryShortWeekdays:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],ampms:["\u4e0a\u5348","\u4e0b\u5348"],datePatterns:["yyyy'\u5e74'M'\u6708'd'\u65e5' EEEE","yyyy'\u5e74'M'\u6708'd'\u65e5'","yyyy-M-d","yy-M-d"],timePatterns:["ahh'\u65f6'mm'\u5206'ss'\u79d2' 'GMT'Z","ahh'\u65f6'mm'\u5206'ss'\u79d2'","H:mm:ss","ah:mm"],dateTimePattern:"{date} {time}"}},function(e,t){"use strict";e.exports={SUNDAY:0,MONDAY:1,TUESDAY:2,WEDNESDAY:3,THURSDAY:4,FRIDAY:5,SATURDAY:6,JANUARY:0,FEBRUARY:1,MARCH:2,APRIL:3,MAY:4,JUNE:5,JULY:6,AUGUST:7,SEPTEMBER:8,OCTOBER:9,NOVEMBER:10,DECEMBER:11}},function(e,t){"use strict";e.exports={timezoneOffset:-480,firstDayOfWeek:0,minimalDaysInFirstWeek:1}},function(e,t){"use strict";e.exports={timezoneOffset:480,firstDayOfWeek:1,minimalDaysInFirstWeek:1}},function(e,t,n){var r=n(439),o=function(e){var t=/[height|width]$/;return t.test(e)},a=function(e){var t="",n=Object.keys(e);return n.forEach(function(a,i){var s=e[a];a=r(a),o(a)&&"number"==typeof s&&(s+="px"),t+=s===!0?a:s===!1?"not "+a:"("+a+": "+s+")",i<n.length-1&&(t+=" and ")}),t},i=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(n,r){t+=a(n),r<e.length-1&&(t+=", ")}),t):a(e)};e.exports=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={isAppearSupported:function(e){return e.transitionName&&e.transitionAppear||e.animation.appear},isEnterSupported:function(e){return e.transitionName&&e.transitionEnter||e.animation.enter},isLeaveSupported:function(e){return e.transitionName&&e.transitionLeave||e.animation.leave},allowAppearCallback:function(e){return e.transitionAppear||e.animation.appear},allowEnterCallback:function(e){return e.transitionEnter||e.animation.enter},allowLeaveCallback:function(e){return e.transitionLeave||e.animation.leave}};t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=n(90),s=r(i),l=n(39),u=r(l),c=n(27),p=r(c),f=n(6),d=a["default"].createClass({displayName:"MonthCalendar",mixins:[p["default"],u["default"]],onKeyDown:function(e){var t=e.keyCode,n=e.ctrlKey||e.metaKey,r=this.state.value,o=r;switch(t){case f.KeyCode.DOWN:o=r.clone(),o.addMonth(3);break;case f.KeyCode.UP:o=r.clone(),o.addMonth(-3);break;case f.KeyCode.LEFT:o=r.clone(),n?o.addYear(-1):o.addMonth(-1);break;case f.KeyCode.RIGHT:o=r.clone(),n?o.addYear(1):o.addMonth(1);break;case f.KeyCode.ENTER:return this.onSelect(r),e.preventDefault(),1;default:return}return o!==r?(this.setValue(o),e.preventDefault(),1):void 0},render:function(){var e=this.props,t=a["default"].createElement(s["default"],{locale:e.locale,disabledDate:e.disabledDate,style:{position:"relative"},value:this.state.value,rootPrefixCls:e.prefixCls,onChange:this.setValue,onSelect:this.onSelect});return this.renderRoot({children:t})}});t["default"]=d,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){}function a(e,t){this[e]=t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),l=n(4),u=r(l),c=n(6),p=n(320),f=r(p),d=n(14),h=r(d),y=s["default"].createClass({displayName:"Picker",propTypes:{animation:i.PropTypes.oneOfType([i.PropTypes.func,i.PropTypes.string]),disabled:i.PropTypes.bool,transitionName:i.PropTypes.string,onChange:i.PropTypes.func,onOpen:i.PropTypes.func,onClose:i.PropTypes.func,children:i.PropTypes.func,getCalendarContainer:i.PropTypes.func,calendar:i.PropTypes.element,style:i.PropTypes.object,open:i.PropTypes.bool,defaultOpen:i.PropTypes.bool,prefixCls:i.PropTypes.string,placement:i.PropTypes.any,value:i.PropTypes.oneOfType([i.PropTypes.object,i.PropTypes.array]),defaultValue:i.PropTypes.oneOfType([i.PropTypes.object,i.PropTypes.array]),align:i.PropTypes.object},getDefaultProps:function(){return{prefixCls:"rc-calendar-picker",style:{},align:{},placement:"bottomLeft",defaultOpen:!1,onChange:o,onOpen:o,onClose:o}},getInitialState:function(){var e=this.props,t=void 0;t="open"in e?e.open:e.defaultOpen;var n=e.value||e.defaultValue;return this.saveCalendarRef=a.bind(this,"calendarInstance"),{open:t,value:n}},componentWillReceiveProps:function(e){var t=e.value,n=e.open;"value"in e&&this.setState({value:t}),void 0!==n&&this.setState({open:n})},onCalendarKeyDown:function(e){e.keyCode===c.KeyCode.ESC&&(e.stopPropagation(),this.close(this.focus))},onCalendarSelect:function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=this.props;"value"in n||this.setState({value:e}),n.calendar.props.timePicker||"dateInput"===t.source||this.close(this.focus),n.onChange(e)},onCalendarOk:function(){this.close(this.focus)},onCalendarClear:function(){this.close(this.focus)},onVisibleChange:function(e){var t=this;this.setOpen(e,function(){e&&u["default"].findDOMNode(t.calendarInstance).focus()})},getCalendarElement:function(){var e=this.props,t=this.state,n=e.calendar,r=t.value,o=void 0;o=Array.isArray(r)?r[0]:r;var a={ref:this.saveCalendarRef,defaultValue:o||n.props.defaultValue,defaultSelectedValue:r,onKeyDown:this.onCalendarKeyDown,onOk:(0,c.createChainedFunction)(n.props.onOk,this.onCalendarOk),onSelect:(0,c.createChainedFunction)(n.props.onSelect,this.onCalendarSelect),onClear:(0,c.createChainedFunction)(n.props.onClear,this.onCalendarClear)};return s["default"].cloneElement(n,a)},setOpen:function(e,t){var n=this.props,r=n.onOpen,o=n.onClose;if(this.state.open!==e){this.setState({open:e},t);var a={open:e};e?r(a):o(a)}},open:function(e){this.setOpen(!0,e)},close:function(e){this.setOpen(!1,e)},focus:function(){this.state.open||u["default"].findDOMNode(this).focus()},render:function(){var e=this.props,t=e.prefixCls,n=e.placement,r=e.style,o=e.getCalendarContainer,a=e.align,i=e.animation,l=e.disabled,u=e.transitionName,c=e.children,p=this.state;return s["default"].createElement(h["default"],{popup:this.getCalendarElement(),popupAlign:a,builtinPlacements:f["default"],popupPlacement:n,action:l?[]:["click"],destroyPopupOnHide:!0,getPopupContainer:o,popupStyle:r,popupAnimation:i,popupTransitionName:u,popupVisible:p.open,onPopupVisibleChange:this.onVisibleChange,prefixCls:t},c(p,e))}});t["default"]=y,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(1),i=r(a),s=n(4),l=r(s),u=n(6),c=r(u),p=n(85),f=r(p),d=n(84),h=r(d),y=n(13),v=c["default"].Children.mapSelf,m=i["default"].createClass({displayName:"CalendarFooter",propTypes:{prefixCls:a.PropTypes.string,showDateInput:a.PropTypes.bool,disabledTime:a.PropTypes.any,gregorianCalendarLocale:a.PropTypes.object,selectedValue:a.PropTypes.any,showOk:a.PropTypes.bool,onSelect:a.PropTypes.func,value:a.PropTypes.object,defaultValue:a.PropTypes.object},onSelect:function(e){this.props.onSelect(e)},getRootDOMNode:function(){return l["default"].findDOMNode(this)},render:function(){var e=this.props,t=e.value,n=e.prefixCls,r=e.showDateInput,a=e.disabledTime,s=e.gregorianCalendarLocale,l=e.selectedValue,u=e.showOk,c=!r&&e.timePicker||null,p=a&&c?(0,y.getTimeConfig)(l,a):null,d=null;if(e.showToday||c){var m=void 0;e.showToday&&(m=i["default"].createElement(f["default"],o({},e,{value:t})));var g=void 0;(u===!0||u!==!1&&e.timePicker)&&(g=i["default"].createElement(h["default"],e));var b=void 0;(m||g)&&(b=i["default"].createElement("span",{className:n+"-footer-btn"},v([m,g]))),c&&(c=i["default"].cloneElement(c,o({onChange:this.onSelect,allowEmpty:!1,gregorianCalendarLocale:s},p,{getPopupContainer:this.getRootDOMNode,value:l}))),d=i["default"].createElement("div",{className:n+"-footer"},c,b)}return d}});t["default"]=m,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=this.props.value.clone();t.addMonth(e),this.props.onValueChange(t)}function a(e){var t=this.props.value.clone();t.addYear(e),this.props.onValueChange(t)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),l=n(90),u=r(l),c=n(13),p=n(92),f=r(p),d=n(6),h=r(d),y=h["default"].Children.mapSelf,v=s["default"].createClass({displayName:"CalendarHeader",propTypes:{enablePrev:i.PropTypes.any,enableNext:i.PropTypes.any,prefixCls:i.PropTypes.string,locale:i.PropTypes.object,value:i.PropTypes.object,onValueChange:i.PropTypes.func},getDefaultProps:function(){return{enableNext:1,enablePrev:1}},getInitialState:function(){var e=this.props;return this.yearFormatter=(0,c.getFormatter)(e.locale.yearFormat,e.locale),this.monthFormatter=(0,c.getFormatter)(e.locale.monthFormat,e.locale),this.nextMonth=o.bind(this,1),this.previousMonth=o.bind(this,-1),this.nextYear=a.bind(this,1),this.previousYear=a.bind(this,-1),{}},componentWillReceiveProps:function(e){var t=this.props.locale,n=e.locale;n!==t&&(this.yearFormatter=(0,c.getFormatter)(n.yearFormat,n),this.monthFormatter=(0,c.getFormatter)(n.monthFormat,n))},onSelect:function(e){this.setState({showMonthPanel:0,showYearPanel:0}),this.props.onValueChange(e)},getMonthYearElement:function(){var e=this.props,t=e.prefixCls,n=e.locale,r=this.props.value,o=n.monthBeforeYear,a=t+"-"+(o?"my-select":"ym-select"),i=s["default"].createElement("a",{className:t+"-year-select",role:"button",onClick:this.showYearPanel,title:n.monthSelect},this.yearFormatter.format(r)),l=s["default"].createElement("a",{className:t+"-month-select",role:"button",onClick:this.showMonthPanel,title:n.monthSelect},this.monthFormatter.format(r)),u=[];return u=o?[l,i]:[i,l],s["default"].createElement("span",{className:a},y(u))},showIf:function(e,t){return e?t:null},showMonthPanel:function(){this.setState({showMonthPanel:1,showYearPanel:0})},showYearPanel:function(){this.setState({showMonthPanel:0,showYearPanel:1})},render:function(){var e=this.props,t=e.enableNext,n=e.enablePrev,r=e.prefixCls,o=e.locale,a=e.value,i=this.state,l=null;i.showMonthPanel?l=u["default"]:i.showYearPanel&&(l=f["default"]);var c=void 0;return l&&(c=s["default"].createElement(l,{locale:o,defaultValue:a,rootPrefixCls:r,onSelect:this.onSelect})),s["default"].createElement("div",{className:r+"-header"},s["default"].createElement("div",{style:{position:"relative"}},this.showIf(n,s["default"].createElement("a",{className:r+"-prev-year-btn",role:"button",onClick:this.previousYear,title:o.previousYear},"\xab")),this.showIf(n,s["default"].createElement("a",{className:r+"-prev-month-btn",role:"button",onClick:this.previousMonth,title:o.previousMonth},"\u2039")),this.getMonthYearElement(),this.showIf(t,s["default"].createElement("a",{className:r+"-next-month-btn",onClick:this.nextMonth,title:o.nextMonth},"\u203a")),this.showIf(t,s["default"].createElement("a",{className:r+"-next-year-btn",onClick:this.nextYear,title:o.nextYear},"\xbb"))),c)}});t["default"]=v,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.prefixCls,n=e.locale,r=e.okDisabled,o=e.onOk,a=t+"-ok-btn";return r&&(a+=" "+t+"-ok-btn-disabled"),i["default"].createElement("a",{className:a,role:"button",onClick:r?null:o},n.ok)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var a=n(1),i=r(a);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.prefixCls,n=e.locale,r=e.value,o=e.timePicker,a=e.disabledDate,l=e.disabledTime,u=e.onToday,c=!1,p=n.today;o&&(p=n.now||n.today);var f="";return a&&(c=!(0,s.isAllowedDate)((0,s.getTodayTime)(r),a,l),c&&(f=t+"-today-btn-disabled")),i["default"].createElement("a",{className:t+"-today-btn "+f,role:"button",onClick:c?null:u,title:(0,s.getTodayTimeStr)(r)},p)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var a=n(1),i=r(a),s=n(13);e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={DATE_ROW_COUNT:6,DATE_COL_COUNT:7},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return t&&(e.setHourOfDay(t.getHourOfDay()),e.setMinutes(t.getMinutes()),e.setSeconds(t.getSeconds())),e}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),s=r(i),l=n(4),u=r(l),c=n(13),p=s["default"].createClass({displayName:"DateInput",propTypes:{prefixCls:i.PropTypes.string,timePicker:i.PropTypes.object,disabledTime:i.PropTypes.any,formatter:i.PropTypes.object,locale:i.PropTypes.object,gregorianCalendarLocale:i.PropTypes.object,disabledDate:i.PropTypes.func,onChange:i.PropTypes.func,onClear:i.PropTypes.func,placeholder:i.PropTypes.string,onSelect:i.PropTypes.func,selectedValue:i.PropTypes.object},getInitialState:function(){var e=this.props.selectedValue;return{str:e&&this.props.formatter.format(e)||"",invalid:!1}},componentWillReceiveProps:function(e){var t=e.selectedValue;this.setState({str:t&&e.formatter.format(t)||"",invalid:!1})},onInputChange:function(e){var t=e.target.value;this.setState({str:t});var n=void 0,r=this.props,a=r.disabledDate,i=r.formatter,s=r.gregorianCalendarLocale,l=r.onChange;if(t){try{n=o(i.parse(t,{locale:s,obeyCount:!0}),this.props.selectedValue)}catch(u){return void this.setState({invalid:!0})}if(!n||a&&a(n))return void this.setState({invalid:!0});var c=this.props.selectedValue;c&&n?c.getTime()!==n.getTime()&&l(n):c!==n&&l(n)}else l(null);this.setState({invalid:!1})},onClear:function(){this.setState({str:""}),this.props.onClear(null)},getRootDOMNode:function(){return u["default"].findDOMNode(this)},render:function(){var e=this.props,t=this.state,n=t.invalid,r=t.str,o=e.selectedValue,i=e.locale,l=e.prefixCls,u=e.placeholder,p=e.onChange,f=e.timePicker,d=e.disabledTime,h=e.gregorianCalendarLocale,y=n?l+"-input-invalid":"",v=d&&f?(0,c.getTimeConfig)(o,d):null;return s["default"].createElement("div",{className:l+"-input-wrap"},s["default"].createElement("div",{className:l+"-time-picker-wrap"},f?s["default"].cloneElement(f,a({showClear:!1,allowEmpty:!1,getPopupContainer:this.getRootDOMNode,gregorianCalendarLocale:h,value:o,onChange:p},v)):null),s["default"].createElement("div",{className:l+"-date-input-wrap"},s["default"].createElement("input",{className:l+"-input "+y,value:r,placeholder:u,onChange:this.onInputChange})),e.showClear?s["default"].createElement("a",{className:l+"-clear-btn",role:"button",title:i.clear,onClick:this.onClear}):null)}});t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(312),a=r(o);t["default"]=a["default"],e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(74),a=r(o);t["default"]={today:"\u4eca\u5929",now:"\u6b64\u523b",ok:"\u786e\u5b9a",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"yyyy'\u5e74'",monthFormat:"M'\u6708'",dateFormat:"yyyy'\u5e74'M'\u6708'd'\u65e5'",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa",format:a["default"]},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=this.state.value.clone();t.addYear(e),this.setAndChangeValue(t)}function a(){}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),l=n(92),u=r(l),c=n(91),p=r(c),f=s["default"].createClass({displayName:"MonthPanel",propTypes:{onChange:i.PropTypes.func,disabledDate:i.PropTypes.func,onSelect:i.PropTypes.func},getDefaultProps:function(){return{onChange:a,onSelect:a}},getInitialState:function(){var e=this.props;return this.nextYear=o.bind(this,1),this.previousYear=o.bind(this,-1),this.prefixCls=e.rootPrefixCls+"-month-panel",{value:e.value||e.defaultValue}},componentWillReceiveProps:function(e){"value"in e&&this.setState({value:e.value})},onYearPanelSelect:function(e){this.setState({showYearPanel:0}),this.setAndChangeValue(e)},setAndChangeValue:function(e){this.setValue(e),this.props.onChange(e)},setAndSelectValue:function(e){this.setValue(e),this.props.onSelect(e)},setValue:function(e){"value"in this.props||this.setState({value:e})},showYearPanel:function(){this.setState({showYearPanel:1})},render:function(){var e=this.props,t=this.state.value,n=e.locale,r=t.getYear(),o=this.prefixCls,a=void 0;return this.state.showYearPanel&&(a=s["default"].createElement(u["default"],{locale:n,value:t,rootPrefixCls:e.rootPrefixCls,onSelect:this.onYearPanelSelect})),s["default"].createElement("div",{className:o,style:e.style},s["default"].createElement("div",null,s["default"].createElement("div",{className:o+"-header"},s["default"].createElement("a",{className:o+"-prev-year-btn",role:"button",onClick:this.previousYear,title:n.previousYear},"\xab"),s["default"].createElement("a",{className:o+"-year-select",role:"button",onClick:this.showYearPanel,title:n.yearSelect},s["default"].createElement("span",{className:o+"-year-select-content"},r),s["default"].createElement("span",{className:o+"-year-select-arrow"},"x")),s["default"].createElement("a",{className:o+"-next-year-btn",role:"button",onClick:this.nextYear,title:n.nextYear},"\xbb")),s["default"].createElement("div",{className:o+"-body"},s["default"].createElement(p["default"],{disabledDate:e.disabledDate,onSelect:this.setAndSelectValue,locale:n,value:t,prefixCls:o}))),a)}});t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){var t=this.state.value.clone();t.rollSetMonth(e),this.setAndSelectValue(t)}function u(){}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=n(1),f=r(p),d=n(2),h=r(d),y=4,v=3,m=function(e){function t(e){a(this,t);var n=i(this,Object.getPrototypeOf(t).call(this,e));return n.state={value:e.value},n}return s(t,e),c(t,[{key:"componentWillReceiveProps",value:function(e){"value"in e&&this.setState({value:e.value})}},{key:"getMonths",value:function(){for(var e=this.props,t=this.state.value,n=t.clone(),r=e.locale,o=[],a=r.format.shortMonths,i=0,s=0;y>s;s++){o[s]=[];for(var l=0;v>l;l++)n.rollSetMonth(i),o[s][l]={value:i,content:a[i],title:a[i]},i++}return o}},{key:"setAndSelectValue",value:function(e){this.setState({value:e}),this.props.onSelect(e)}},{key:"render",value:function(){var e=this,t=this.props,n=this.state.value,r=n.clone();r.setTime(Date.now());var a=this.getMonths(),i=n.getMonth(),s=t.prefixCls,u=t.locale,c=t.contentRender,p=t.cellRender,d=a.map(function(a,d){var y=a.map(function(a){var d,y=!1;if(t.disabledDate){var v=n.clone();v.rollSetMonth(a.value),y=t.disabledDate(v)}var m=(d={},o(d,s+"-cell",1),o(d,s+"-cell-disabled",y),o(d,s+"-selected-cell",a.value===i),o(d,s+"-current-cell",r.getYear()===n.getYear()&&a.value===r.getMonth()),d),g=void 0;if(p){var b=n.clone();b.rollSetMonth(a.value),g=p(b,u)}else{var P=void 0;if(c){var O=n.clone();O.rollSetMonth(a.value),P=c(O,u)}else P=a.content;g=f["default"].createElement("div",{className:s+"-month"},P)}return f["default"].createElement("td",{role:"gridcell",key:a.value,onClick:y?null:l.bind(e,a.value),title:a.title,className:(0,h["default"])(m)},g)});return f["default"].createElement("tr",{key:d,role:"row"},y)});return f["default"].createElement("table",{className:s+"-table",cellSpacing:"0",role:"grid"},f["default"].createElement("tbody",{className:s+"-tbody"},d))}}]),t}(p.Component);m.defaultProps={onSelect:u},m.propTypes={onSelect:p.PropTypes.func,cellRender:p.PropTypes.func,prefixCls:p.PropTypes.string,value:p.PropTypes.object},t["default"]=m,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){var t=this.state.value.clone();t.addYear(e),this.setState({value:t})}function u(e){var t=this.state.value.clone();t.setYear(e),t.rollSetMonth(this.state.value.getMonth()),this.props.onSelect(t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=n(1),f=r(p),d=n(2),h=r(d),y=n(317),v=r(y),m=4,g=3,b=function(e){function t(e){a(this,t);var n=i(this,Object.getPrototypeOf(t).call(this,e));return n.prefixCls=e.rootPrefixCls+"-year-panel",n.state={value:e.value||e.defaultValue},n.nextDecade=l.bind(n,10),n.previousDecade=l.bind(n,-10),["showDecadePanel","onDecadePanelSelect"].forEach(function(e){n[e]=n[e].bind(n)}),n}return s(t,e),c(t,[{key:"onDecadePanelSelect",value:function(e){this.setState({value:e,showDecadePanel:0})}},{key:"getYears",value:function(){for(var e=this.state.value,t=e.getYear(),n=10*parseInt(t/10,10),r=n-1,o=n+9,a=[],i=0,s=0;m>s;s++){a[s]=[];for(var l=0;g>l;l++){var u=r+i,c=void 0;c=n>u?"":u>o?"":String(u),a[s][l]={content:c,year:u,title:c},i++}}return a}},{key:"showDecadePanel",value:function(){this.setState({showDecadePanel:1})}},{key:"render",value:function(){var e=this,t=this.props,n=this.state.value,r=t.locale,a=this.getYears(),i=n.getYear(),s=10*parseInt(i/10,10),l=s+9,c=this.prefixCls,p=a.map(function(t,n){var r=t.map(function(t){var n,r=(n={},o(n,c+"-cell",1),o(n,c+"-selected-cell",t.year===i),o(n,c+"-last-decade-cell",t.year<s),o(n,c+"-next-decade-cell",t.year>l),n),a=void 0;return a=t.year<s?e.previousDecade:t.year>l?e.nextDecade:u.bind(e,t.year),f["default"].createElement("td",{role:"gridcell",title:t.title,key:t.content,onClick:a,className:(0,h["default"])(r)},f["default"].createElement("a",{className:c+"-year"},t.content))});return f["default"].createElement("tr",{key:n,role:"row"},r)}),d=void 0;return this.state.showDecadePanel&&(d=f["default"].createElement(v["default"],{locale:r,value:n,rootPrefixCls:t.rootPrefixCls,onSelect:this.onDecadePanelSelect})),f["default"].createElement("div",{className:this.prefixCls},f["default"].createElement("div",null,f["default"].createElement("div",{className:c+"-header"},f["default"].createElement("a",{className:c+"-prev-decade-btn",role:"button",onClick:this.previousDecade,title:r.previousDecade},"\xab"),f["default"].createElement("a",{className:c+"-decade-select",role:"button",onClick:this.showDecadePanel,title:r.decadeSelect},f["default"].createElement("span",{className:c+"-decade-select-content"},s,"-",l),f["default"].createElement("span",{className:c+"-decade-select-arrow"},"x")),f["default"].createElement("a",{className:c+"-next-decade-btn",role:"button",onClick:this.nextDecade,title:r.nextDecade},"\xbb")),f["default"].createElement("div",{className:c+"-body"},f["default"].createElement("table",{className:c+"-table",cellSpacing:"0",role:"grid"},f["default"].createElement("tbody",{className:c+"-tbody"},p)))),d)}}]),t}(f["default"].Component);t["default"]=b,b.propTypes={rootPrefixCls:p.PropTypes.string,value:p.PropTypes.object,defaultValue:p.PropTypes.object},b.defaultProps={onSelect:function(){}},e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(325)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){function e(e){var t=l["default"].createClass({displayName:"Form",mixins:n,getInitialState:function(){var e=void 0;return r&&(e=r(this.props)),this.fields=e||{}, this.fieldsMeta={},this.cachedBind={},{submitting:!1}},componentWillReceiveProps:function(e){if(r){var t=r(e);if(t){var n=this.fields=i({},this.fields);for(var o in t)t.hasOwnProperty(o)&&(n[o]=i({},t[o],{instance:n[o]&&n[o].instance}))}}},onChange:function(e,t){for(var n=this.getFieldMeta(e),r=n.validate,a=arguments.length,s=Array(a>2?a-2:0),l=2;a>l;l++)s[l-2]=arguments[l];n[t]&&n[t].apply(n,s);var c=n.getValueFromEvent?n.getValueFromEvent.apply(n,s):u.getValueFromEvent.apply(void 0,s),p=this.getField(e,!0);this.setFields(o({},e,i({},p,{value:c,dirty:(0,u.hasRules)(r)})))},onChangeValidate:function(e,t){for(var n=this.getFieldMeta(e),r=arguments.length,o=Array(r>2?r-2:0),a=2;r>a;a++)o[a-2]=arguments[a];n[t]&&n[t].apply(n,o);var i=n.getValueFromEvent?n.getValueFromEvent.apply(n,o):u.getValueFromEvent.apply(void 0,o),s=this.getField(e,!0);s.value=i,s.dirty=!0,this.validateFieldsInternal([s],{action:t,options:{firstFields:!!n.validateFirst}})},getCacheBind:function(e,t,n){var r=this.cachedBind[e]=this.cachedBind[e]||{};return r[t]||(r[t]=n.bind(this,e,t)),r[t]},getFieldMeta:function(e){return this.fieldsMeta[e]},getField:function(e,t){var n=this.fields[e];return n&&(n.name=e),t?n?i({},n):{name:e}:n},getFieldProps:function(e){function t(e){return-1===e.trigger.indexOf(l)||!e.rules||!e.rules.length}var n=this,r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(!e)throw new Error("must call getFieldProps with valid name string!");var o=r.rules,a=r.trigger,l=void 0===a?d:a,u=r.valuePropName,p=void 0===u?"value":u,h=r.getValueProps,y=r.validateTrigger,v=void 0===y?f:y,m=r.validate,g=void 0===m?[]:m,b=this.fieldsMeta[e]||{};"initialValue"in r&&(b.initialValue=r.initialValue);var P={};s&&(P[s]=e);var O=g.map(function(e){var t=i({},e,{trigger:e.trigger||[]});return"string"==typeof t.trigger&&(t.trigger=[t.trigger]),t});o&&O.push({trigger:v?[].concat(v):[],rules:o}),O.filter(function(e){return!!e.rules&&e.rules.length}).map(function(e){return e.trigger}).reduce(function(e,t){return e.concat(t)},[]).forEach(function(t){P[t]=n.getCacheBind(e,t,n.onChangeValidate)}),l&&O.every(t)&&(P[l]=this.getCacheBind(e,l,this.onChange));var C=this.getField(e),T=b.initialValue;C&&"value"in C&&(T=C.value),h?P=i({},P,h(T)):P[p]=T,P.ref=this.getCacheBind(e,e+"__ref",this.saveRef);var w=i({},b,r,{validate:O});return this.fieldsMeta[e]=w,c&&(P[c]=w),P},getFieldMember:function(e,t){var n=this.getField(e);return n&&n[t]},getFieldError:function(e){return(0,u.getErrorStrs)(this.getFieldMember(e,"errors"))},getValidFieldsName:function(){var e=this.fieldsMeta;return e?Object.keys(e).filter(function(t){return!e[t].hidden}):[]},getFieldsValue:function(e){var t=this,n=e||this.getValidFieldsName(),r={};return n.forEach(function(e){r[e]=t.getFieldValue(e)}),r},getFieldValue:function(e){var t=this.fields;return this.getValueFromFields(e,t)},getFieldInstance:function(e){var t=this.fields;return t[e]&&t[e].instance},getValueFromFields:function(e,t){var n=this.fieldsMeta,r=t[e];if(r&&"value"in r)return r.value;var o=n[e];return o&&o.initialValue},getRules:function(e,t){var n=e.validate.filter(function(e){return!t||e.trigger.indexOf(t)>=0}).map(function(e){return e.rules});return(0,u.flattenArray)(n)},setFields:function(e){var t=this,n=this.fields;Object.keys(e).forEach(function(t){e[t].instance=n[t].instance});var r=i({},n,e),o=this.fieldsMeta,s={};Object.keys(o).forEach(function(e){s[e]=t.getValueFromFields(e,r)});var l=Object.keys(e);Object.keys(s).forEach(function(e){var a=s[e],u=o[e];if(u&&u.normalize){var c=u.normalize(a,t.getValueFromFields(e,n),s);c!==a&&(r[e]=i({},r[e],{value:c}),-1===l.indexOf(e)&&l.push(e))}}),this.fields=r,a&&!function(){var e={};l.forEach(function(t){e[t]=r[t]}),a(t.props,e)}(),this.forceUpdate()},setFieldsValue:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]={name:n,value:e[n]});this.setFields(t)},setFieldsInitialValue:function(e){var t=this.fieldsMeta;for(var n in e)if(e.hasOwnProperty(n)){var r=t[n];t[n]=i({},r,{initialValue:e[n]})}},saveRef:function(e,t,n){if(!n)return delete this.fieldsMeta[e],void delete this.fields[e];var r=this.getFieldMeta(e);if(r&&r.ref){if("string"==typeof r.ref)throw new Error("can not set ref string for "+e);r.ref(n)}this.fields[e]=this.fields[e]||{},this.fields[e].instance=n},validateFieldsInternal:function(e,t,n){var r=this,o=t.fieldNames,a=t.action,s=t.options,l=void 0===s?{}:s,c={},f={},d={},y={};e.forEach(function(e){var t=e.name;if(l.force!==!0&&e.dirty===!1)return void(e.errors&&(y[t]={errors:e.errors,instance:e.instance}));var n=r.getFieldMeta(t),o=i({},e);o.errors=void 0,o.validating=!0,o.dirty=!0,c[t]=r.getRules(n,a),f[t]=o.value,d[t]=o}),this.setFields(d);var v=this.fields;if(Object.keys(f).forEach(function(e){f[e]=v[e].value}),n&&(0,u.isEmptyObject)(d))return void n((0,u.isEmptyObject)(y)?null:y,this.getFieldsValue(o));var m=new p["default"](c);h&&m.messages(h),m.validate(f,l,function(e){var t=i({},y);e&&e.length&&e.forEach(function(e){var n=e.field;t[n]||(t[n]={errors:[]});var r=t[n].errors;r.push(e)});var a=[],s={};Object.keys(c).forEach(function(e){var n=t[e],o=r.getField(e,!0);o.value!==f[e]?a.push({name:e,instance:o.instance}):(o.errors=n&&n.errors,o.value=f[e],o.validating=!1,o.dirty=!1,s[e]=o),n&&(n.instance=o.instance)}),r.setFields(s),n&&(a.length&&a.forEach(function(e){var n=e.name,r=e.instance,o=[{message:n+" need to revalidate",field:n}];t[n]={expired:!0,instance:r,errors:o}}),n((0,u.isEmptyObject)(t)?null:t,r.getFieldsValue(o)))})},validateFields:function(e,t,n){var r=this,o=(0,u.getParams)(e,t,n),a=o.names,i=o.callback,s=o.options,l=a||this.getValidFieldsName(),c=l.map(function(e){var t=r.getFieldMeta(e);if(!(0,u.hasRules)(t.validate))return null;var n=r.getField(e,!0);return n.value=r.getFieldValue(e),n}).filter(function(e){return!!e});return c.length?("firstFields"in s||(s.firstFields=l.filter(function(e){var t=r.getFieldMeta(e);return!!t.validateFirst})),void this.validateFieldsInternal(c,{fieldNames:l,options:s},i)):void(i&&i(null,this.getFieldsValue(l)))},isFieldValidating:function(e){return this.getFieldMember(e,"validating")},isFieldsValidating:function(e){var t=e||this.getValidFieldsName();return t.some(this.isFieldValidating)},isSubmitting:function(){return this.state.submitting},submit:function(e){var t=this,n=function(){t.setState({submitting:!1})};this.setState({submitting:!0}),e(n)},resetFields:function(e){var t={},n=this.fields,r=!1,o=e||Object.keys(n);o.forEach(function(e){var o=n[e];o&&"value"in o&&(r=!0,t[e]={})}),r&&this.setFields(t)},render:function(){var t=o({},g,this.getForm());b&&(t.ref="wrappedComponent");var n=v.call(this,i({},t,this.props));return l["default"].createElement(e,n)}});return(0,u.argumentContainer)(t,e)}var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],r=t.mapPropsToFields,a=t.onFieldsChange,s=t.fieldNameProp,c=t.fieldMetaProp,h=t.validateMessages,y=t.mapProps,v=void 0===y?u.mirror:y,m=t.formPropName,g=void 0===m?"form":m,b=t.withRef;return e}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(1),l=r(s),u=n(95),c=n(121),p=r(c),f="onChange",d=f;t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e.displayName||e.name||"WrappedComponent"}function a(e,t){return e.displayName="Form("+o(t)+")",e.WrappedComponent=t,(0,h["default"])(e,t)}function i(e){if(!e||!e.target)return e;var t=e.target;return"checkbox"===t.type?t.checked:t.value}function s(e){return e?e.map(function(e){return e&&e.message?e.message:e}):e}function l(e){return 0===Object.keys(e).length}function u(e){return Array.prototype.concat.apply([],e)}function c(e){return e}function p(e){return e?e.some(function(e){return!!e.rules&&e.rules.length}):!1}function f(e,t,n){var r=e,o=n,a=t;return void 0===n&&("function"==typeof r?(o=r,a={},r=void 0):Array.isArray(e)?"function"==typeof a?(o=a,a={}):a=a||{}:(o=a,a=r||{},r=void 0)),{names:r,callback:o,options:a}}Object.defineProperty(t,"__esModule",{value:!0}),t.argumentContainer=a,t.getValueFromEvent=i,t.getErrorStrs=s,t.isEmptyObject=l,t.flattenArray=u,t.mirror=c,t.hasRules=p,t.getParams=f;var d=n(294),h=r(d)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return e.length?e.every(function(e){return!!e.props.disabled}):!0}function i(e,t){var n=t,r=e.children,o=e.eventKey;if(n){var a=void 0;if((0,P.loopMenuItem)(r,function(e,t){e.props.disabled||n!==(0,P.getKeyFromChildrenIndex)(e,o,t)||(a=!0)}),a)return n}return n=null,e.defaultActiveFirst?((0,P.loopMenuItem)(r,function(e,t){n||e.props.disabled||(n=(0,P.getKeyFromChildrenIndex)(e,o,t))}),n):n}function s(e,t,n){n&&(void 0!==t?(this.instanceArray[e]=this.instanceArray[e]||[],this.instanceArray[e][t]=n):this.instanceArray[e]=n)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(1),c=r(u),p=n(4),f=r(p),d=n(6),h=n(2),y=r(h),v=n(35),m=r(v),g=n(10),b=r(g),P=n(22),O=n(342),C=r(O),T={propTypes:{focusable:u.PropTypes.bool,multiple:u.PropTypes.bool,style:u.PropTypes.object,defaultActiveFirst:u.PropTypes.bool,visible:u.PropTypes.bool,activeKey:u.PropTypes.string,selectedKeys:u.PropTypes.arrayOf(u.PropTypes.string),defaultSelectedKeys:u.PropTypes.arrayOf(u.PropTypes.string),defaultOpenKeys:u.PropTypes.arrayOf(u.PropTypes.string),openKeys:u.PropTypes.arrayOf(u.PropTypes.string),children:u.PropTypes.any},getDefaultProps:function(){return{prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{}}},getInitialState:function(){var e=this.props;return{activeKey:i(e,e.activeKey)}},componentWillReceiveProps:function(e){var t=void 0;if("activeKey"in e)t={activeKey:i(e,e.activeKey)};else{var n=this.state.activeKey,r=i(e,n);r!==n&&(t={activeKey:r})}t&&this.setState(t)},shouldComponentUpdate:function(e){return this.props.visible||e.visible},componentWillMount:function(){this.instanceArray=[]},onKeyDown:function(e){var t=this,n=e.keyCode,r=void 0;if(this.getFlatInstanceArray().forEach(function(t){t&&t.props.active&&(r=t.onKeyDown(e))}),r)return 1;var o=null;return n!==d.KeyCode.UP&&n!==d.KeyCode.DOWN||(o=this.step(n===d.KeyCode.UP?-1:1)),o?(e.preventDefault(),this.setState({activeKey:o.props.eventKey},function(){(0,m["default"])(f["default"].findDOMNode(o),f["default"].findDOMNode(t),{onlyScrollIfNeeded:!0})}),1):void 0===o?(e.preventDefault(),this.setState({activeKey:null}),1):void 0},onCommonItemHover:function(e){var t=this.props.mode,n=e.key,r=e.hover,o=e.trigger,a=this.state.activeKey;if(o&&!r&&!this.props.closeSubMenuOnMouseLeave&&e.item.isSubMenu&&"inline"!==t||this.setState({activeKey:r?n:null}),r&&"inline"!==t){var i=this.getFlatInstanceArray().filter(function(e){return e&&e.props.eventKey===a})[0];i&&i.isSubMenu&&i.props.eventKey!==n&&this.onOpenChange({item:i,key:i.props.eventKey,open:!1})}},getFlatInstanceArray:function(){var e=this.instanceArray,t=e.some(function(e){return Array.isArray(e)});return t&&(e=[],this.instanceArray.forEach(function(t){Array.isArray(t)?e.push.apply(e,t):e.push(t)}),this.instanceArray=e),e},renderCommonMenuItem:function(e,t,n,r){var o=this.state,a=this.props,i=(0,P.getKeyFromChildrenIndex)(e,a.eventKey,t),l=e.props,u=(0,b["default"])({mode:a.mode,level:a.level,inlineIndent:a.inlineIndent,renderMenuItem:this.renderMenuItem,rootPrefixCls:a.prefixCls,index:t,parentMenu:this,ref:l.disabled?void 0:(0,d.createChainedFunction)(e.ref,s.bind(this,t,n)),eventKey:i,closeSubMenuOnMouseLeave:a.closeSubMenuOnMouseLeave,onItemHover:this.onItemHover,active:!l.disabled&&i===o.activeKey,multiple:a.multiple,onClick:this.onClick,openTransitionName:this.getOpenTransitionName(),openAnimation:a.openAnimation,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onDestroy:this.onDestroy,onSelect:this.onSelect},r);return"inline"===a.mode&&(u.closeSubMenuOnMouseLeave=u.openSubMenuOnMouseEnter=!1),c["default"].cloneElement(e,u)},renderRoot:function(e){var t;this.instanceArray=[];var n=(t={},o(t,e.prefixCls,1),o(t,e.prefixCls+"-"+e.mode,1),o(t,e.className,!!e.className),t),r={className:(0,y["default"])(n),role:"menu","aria-activedescendant":""};return e.id&&(r.id=e.id),e.focusable&&(r.tabIndex="0",r.onKeyDown=this.onKeyDown),c["default"].createElement(C["default"],l({style:e.style,tag:"ul",hiddenClassName:e.prefixCls+"-hidden",visible:e.visible},r),c["default"].Children.map(e.children,this.renderMenuItem))},step:function(e){var t=this.getFlatInstanceArray(),n=this.state.activeKey,r=t.length;if(!r)return null;0>e&&(t=t.concat().reverse());var o=-1;if(t.every(function(e,t){return e&&e.props.eventKey===n?(o=t,!1):!0}),this.props.defaultActiveFirst||-1===o||!a(t.slice(o,r-1)))for(var i=(o+1)%r,s=i;;){var l=t[s];if(l&&!l.props.disabled)return l;if(s=(s+1+r)%r,s===i)return null}}};t["default"]=T,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(351),a=r(o);t["default"]=a["default"],e.exports=t["default"]},function(e,t){"use strict";e.exports={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",page:"\u9875",first_page:"\u7b2c\u4e00\u9875",last_page:"\u6700\u540e\u4e00\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875"},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),s=n(2),l=r(s),u=i["default"].createClass({displayName:"TabPane",propTypes:{active:a.PropTypes.bool},render:function(){var e,t=this.props;if(this._isActived=this._isActived||t.active,!this._isActived)return null;var n=t.rootPrefixCls+"-tabpane",r=(0,l["default"])((e={},o(e,n+"-hidden",!t.active),o(e,n,1),e));return i["default"].createElement("div",{className:r},t.children)}});t["default"]=u,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;n=o.documentElement[r],"number"!=typeof n&&(n=o.body[r])}return n}function r(e){var t=void 0,r=void 0,o=void 0,a=e.ownerDocument,i=a.body,s=a&&a.documentElement;t=e.getBoundingClientRect(),r=t.left,o=t.top,r-=s.clientLeft||i.clientLeft||0,o-=s.clientTop||i.clientTop||0;var l=a.defaultView||a.parentWindow;return r+=n(l),o+=n(l,!0),{left:r,top:o}}function o(){if(!window.getComputedStyle)return!1;if(void 0!==a)return a;var e=document.createElement("p"),t=void 0,n={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.insertBefore(e,null);for(var r in n)void 0!==e.style[r]&&(e.style[r]="translate3d(1px,1px,1px)",t=window.getComputedStyle(e).getPropertyValue(n[r]),void 0!==t&&t.length>0&&"none"!==t&&(a=r));return document.body.removeChild(e),a}Object.defineProperty(t,"__esModule",{value:!0}),t.getScroll=n,t.offset=r,t.getTransformPropertyName=o;var a=void 0},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){}function a(e,t){this[e]=t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),l=n(14),u=r(l),c=n(398),p=r(c),f=n(401),d=r(f),h=n(103),y=r(h),v=n(400),m=s["default"].createClass({displayName:"Picker",propTypes:{prefixCls:i.PropTypes.string,locale:i.PropTypes.object,value:i.PropTypes.object,disabled:i.PropTypes.bool,allowEmpty:i.PropTypes.bool,defaultValue:i.PropTypes.object,open:i.PropTypes.bool,defaultOpen:i.PropTypes.bool,align:i.PropTypes.object,placement:i.PropTypes.any,transitionName:i.PropTypes.string,getPopupContainer:i.PropTypes.func,placeholder:i.PropTypes.string,formatter:i.PropTypes.any,showHour:i.PropTypes.bool,style:i.PropTypes.object,className:i.PropTypes.string,showSecond:i.PropTypes.bool,disabledHours:i.PropTypes.func,disabledMinutes:i.PropTypes.func,disabledSeconds:i.PropTypes.func,hideDisabledOptions:i.PropTypes.bool,onChange:i.PropTypes.func,onOpen:i.PropTypes.func,onClose:i.PropTypes.func},mixins:[y["default"]],getDefaultProps:function(){return{defaultOpen:!1,style:{},className:"",align:{},allowEmpty:!0,showHour:!0,showSecond:!0,disabledHours:o,disabledMinutes:o,disabledSeconds:o,hideDisabledOptions:!1,placement:"bottomLeft",onChange:o,onOpen:o,onClose:o}},getInitialState:function(){this.savePanelRef=a.bind(this,"panelInstance");var e=this.props,t=e.defaultOpen,n=e.defaultValue,r=e.open,o=void 0===r?t:r,i=e.value,s=void 0===i?n:i;return{open:o,value:s}},componentWillReceiveProps:function(e){var t=e.value,n=e.open;"value"in e&&this.setState({value:t}),void 0!==n&&this.setState({open:n})},onPanelChange:function(e){this.setValue(e)},onPanelClear:function(){this.setValue(null),this.setOpen(!1)},onVisibleChange:function(e){this.setOpen(e)},onEsc:function(){this.setOpen(!1),this.refs.picker.focus()},onKeyDown:function(e){40===e.keyCode&&this.setOpen(!0)},setValue:function(e){"value"in this.props||this.setState({value:e}),this.props.onChange(e)},getFormatter:function(){var e=this.props.formatter,t=this.props.locale;return e?e===this.lastFormatter?this.normalFormatter:(this.normalFormatter=(0,v.getFormatter)(e,t),this.lastFormatter=e,this.normalFormatter):this.props.showSecond?this.props.showHour?(this.normalFormatter||(this.normalFormatter=(0,v.getFormatter)("HH:mm:ss",t)),this.normalFormatter):(this.notShowHourFormatter||(this.notShowHourFormatter=(0,v.getFormatter)("mm:ss",t)),this.notShowHourFormatter):(this.notShowSecondFormatter||(this.notShowSecondFormatter=(0,v.getFormatter)("HH:mm",t)),this.notShowSecondFormatter)},getPanelElement:function(){var e=this.props,t=e.prefixCls,n=e.defaultValue,r=e.locale,o=e.placeholder,a=e.disabledHours,i=e.disabledMinutes,l=e.disabledSeconds,u=e.hideDisabledOptions,c=e.allowEmpty,f=e.showHour,d=e.showSecond;return s["default"].createElement(p["default"],{prefixCls:t+"-panel",ref:this.savePanelRef,value:this.state.value,onChange:this.onPanelChange,gregorianCalendarLocale:r.calendar,onClear:this.onPanelClear,defaultValue:n,showHour:f,onEsc:this.onEsc,showSecond:d,locale:r,allowEmpty:c,formatter:this.getFormatter(),placeholder:o,disabledHours:a,disabledMinutes:i,disabledSeconds:l,hideDisabledOptions:u})},setOpen:function(e,t){var n=this.props,r=n.onOpen,o=n.onClose;if(this.state.open!==e){this.setState({open:e},t);var a={open:e};e?r(a):o(a)}},render:function(){var e=this.props,t=e.prefixCls,n=e.placeholder,r=e.placement,o=e.align,a=e.disabled,i=e.transitionName,l=e.style,c=e.className,p=e.showHour,f=e.showSecond,h=e.getPopupContainer,y=this.state,v=y.open,m=y.value,g=void 0;return p&&f||(g=t+"-panel-narrow"),s["default"].createElement(u["default"],{prefixCls:t+"-panel",popupClassName:g,popup:this.getPanelElement(),popupAlign:o,builtinPlacements:d["default"],popupPlacement:r,action:a?[]:["click"],destroyPopupOnHide:!0,getPopupContainer:h,popupTransitionName:i,popupVisible:v,onPopupVisibleChange:this.onVisibleChange},s["default"].createElement("span",{className:t+" "+c,style:l},s["default"].createElement("input",{className:t+"-input",ref:"picker",type:"text",placeholder:n,readOnly:!0,onKeyDown:this.onKeyDown,disabled:a,value:m&&this.getFormatter().format(m)||""}),s["default"].createElement("span",{className:t+"-icon"})))}});t["default"]=m,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(394),i=r(a);t["default"]={propTypes:{prefixCls:o.PropTypes.string,locale:o.PropTypes.object},getDefaultProps:function(){return{prefixCls:"rc-time-picker",locale:i["default"]}}},e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(403)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(i)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=a,n=i,r=!0,s=u=void 0}},s=n(1),l=r(s),u=function(e){function t(){o(this,t),i(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return a(t,e),t}(l["default"].Component);t["default"]=u,u.propTypes={value:l["default"].PropTypes.string},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e){var t=e.props;if("value"in t)return t.value;if(e.key)return e.key;throw new Error("no key or value for "+e)}function i(e,t){return"value"===t?a(e):e.props[t]}function s(e){return e.combobox}function l(e){return e.multiple||e.tags||e.treeCheckable}function u(e){return l(e)||s(e)}function c(e){return!u(e)}function p(e){var t=e;return void 0===e?t=[]:Array.isArray(e)||(t=[e]),t}function f(e){var t=e;return"label"===t&&(t="title"),t}function d(e,t){return e.every(function(e,n){return e===t[n]})}function h(e,t,n){var r=e.props.eventKey,a=[].concat(o(t)),i=void 0,s=n.some(function(e){return e.key===r?(i=e.pos,!0):void 0});return s?!function(){var e=i.split("-");a=[],n.forEach(function(t){var n=t.pos.split("-");t.pos===i||e.length>n.length&&d(n,e)||e.length<n.length&&d(e,n)||a.push(t.key)})}():a.push(r),a}function y(e,t){var n=function r(e,n){S["default"].Children.forEach(e,function(e,o){var i=n+"-"+o;e.props.children&&r(e.props.children,i),t(e,o,i,a(e))})};n(e,0)}function v(e){if(!e.length)return e;var t=[],n={};e.forEach(function(e){var t=e.pos.split("-").length;n[t]||(n[t]=[]),n[t].push(e)});var r=Object.keys(n).sort(function(e,t){return t-e});return r.reduce(function(e,r){return r&&r!==e&&n[e].forEach(function(e){var o=!1;n[r].forEach(function(t){d(t.pos.split("-"),e.pos.split("-"))&&(o=!0,t.children||(t.children=[]),t.children.push(e))}),o||t.push(e)}),r}),n[r[r.length-1]].concat(t)}function m(e){var t={};return e.forEach(function(e){t[e]||(t[e]=!0)}),Object.keys(t)}function g(e){var t=[].concat(e);return e.forEach(function(e){var n=e.split("-");t.forEach(function(r,o){var a=r.split("-");n.length<=a.length&&d(n,a)&&(t[o]=e),n.length>a.length&&d(a,n)&&(t[o]=r)})}),m(t)}function b(e,t,n){var r=function(e){return e.split("-")};t.forEach(function(t){var o=r(t);Object.keys(e).forEach(function(t){var a=r(t);a.length>o.length&&d(o,a)&&(e[t].checkPart=!1,e[t].checked=n)});var a=function i(t){var n=r(t).length;if(!(2>=n)){var o=0,a=0,s=k(t),l=r(s);Object.keys(e).forEach(function(t){var i=r(t);i.length===n&&d(l,i)&&(o++,e[t].checked?a++:e[t].checkPart&&(a+=.5))});var u=e[s];0===a?(u.checked=!1,u.checkPart=!1):a===o?(u.checked=!0,u.checkPart=!1):(u.checkPart=!0,u.checked=!1),i(s)}};a(t)})}function P(e){var t=[];return Object.keys(e).forEach(function(n){var r=e[n];r.checked&&t.push(x({},r,{pos:n}))}),{checkedTreeNodes:t}}function O(e,t){var n=[],r={};return y(e,function(e,o,a,i){var s=!1;-1!==t.indexOf(i)&&(s=!0,n.push(a)),r[a]={node:e,checked:s,checkPart:!1}}),b(r,g(n.sort()),!0),P(r)}function C(e){var t=arguments.length<=1||void 0===arguments[1]?0:arguments[1];return S["default"].Children.map(e,function(e,n){var r=t+"-"+n,o={title:e.props.title,label:e.props.label||e.props.title,value:e.props.value,key:e.key,_pos:r};return e.props.children&&(o.children=C(e.props.children,r)),o})}function T(e,t){e.forEach(function(e){t(e),e.children&&T(e.children,t)})}function w(e,t){function n(e){e.forEach(function(e){if(!e.__checked){var t=a.indexOf(e.value),r=e.children;t>-1?(e.__checked=!0,s.push({node:e,pos:e._pos}),a.splice(t,1),r&&T(r,function(e){e.__checked=!0,s.push({node:e,pos:e._pos})})):r&&n(r)}})}function r(e){var t=arguments.length<=1||void 0===arguments[1]?{root:!0}:arguments[1],n=0;e.forEach(function(e){var t=e.children;if(!t||e.__checked||e.__halfChecked)e.__checked?n++:e.__halfChecked&&(n+=.5);else{var o=r(t,e);o.__checked?n++:o.__halfChecked&&(n+=.5)}});var o=e.length;return n===o?(t.__checked=!0,s.push({node:t,pos:t._pos})):o>n&&n>0&&(t.__halfChecked=!0),t.root?e:t}var a=[].concat(o(e));if(!a.length)return a;var i=C(t),s=[];return n(i),r(i),s.forEach(function(e,t){delete s[t].node.__checked,delete s[t].node._pos,s[t].node.props={title:s[t].node.title,label:s[t].node.label||s[t].node.title,value:s[t].node.value},s[t].node.children&&(s[t].node.props.children=s[t].node.children),delete s[t].node.title,delete s[t].node.label,delete s[t].node.value,delete s[t].node.children}),s}Object.defineProperty(t,"__esModule",{value:!0});var x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.getValuePropValue=a,t.getPropValue=i,t.isCombobox=s,t.isMultipleOrTags=l,t.isMultipleOrTagsOrCombobox=u,t.isSingleMode=c,t.toArray=p,t.labelCompatible=f,t.isInclude=d,t.getCheckedKeys=h,t.loopAllChildren=y,t.flatToHierarchy=v,t.filterParentPosition=g,t.getTreeNodesStates=O,t.filterAllCheckedData=w;var E=n(1),S=r(E),k=function(e){var t=e.match(/(.+)(-[^-]+)$/),n="";return t&&3===t.length&&(n=t[1]),n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(408),a=r(o),i=n(409),s=r(i);a["default"].TreeNode=s["default"],t["default"]=a["default"],e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=void 0,n=e.userAgent,r=n.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(r[1])?(t=/\brv[ :]+(\d+)/g.exec(n)||[],"IE "+(t[1]||"")):"Chrome"===r[1]&&(t=n.match(/\b(OPR|Edge)\/(\d+)/))?t.slice(1).join(" ").replace("OPR","Opera"):(r=r[2]?[r[1],r[2]]:[e.appName,e.appVersion,"-?"],t=n.match(/version\/(\d+)/i),t&&r.splice(1,1,t[1]),r.join(" "))}function a(e){for(var t=e,n=0,r=0;t&&!isNaN(t.offsetLeft)&&!isNaN(t.offsetTop);)n+=t.offsetLeft-t.scrollLeft,r+=t.offsetTop-t.scrollTop,t=t.offsetParent;return{top:r,left:n}}function i(e){var t=1;return Array.isArray(e)&&(t=e.length),t}function s(e,t,n){return 1===t?(n.first=!0,n.last=!0):(n.first=0===e,n.last=e===t-1),n}function l(e,t,n){var r=function o(e,n,r){var a=i(e);m["default"].Children.forEach(e,function(e,i){var l=n+"-"+i;e.props.children&&e.type&&e.type.isTreeNode&&o(e.props.children,l,{node:e,pos:l}),t(e,i,l,e.key||l,s(i,a,{}),r)})};r(e,0,n)}function u(e,t){return e.every(function(e,n){return e===t[n]})}function c(e){var t={};e.forEach(function(e){var n=e.split("-").length;t[n]||(t[n]=[]),t[n].push(e)});for(var n=Object.keys(t).sort(),r=function(e){n[e+1]&&t[n[e]].forEach(function(r){for(var o=function(e){t[n[e]].forEach(function(o,a){u(r.split("-"),o.split("-"))&&(t[n[e]][a]=null)}),t[n[e]]=t[n[e]].filter(function(e){return e})},a=e+1;a<n.length;a++)o(a)})},o=0;o<n.length;o++)r(o);var a=[];return n.forEach(function(e){a=a.concat(t[e])}),a}function p(e){var t=e.match(/(.+)(-[^-]+)$/),n="";return t&&3===t.length&&(n=t[1]),n}function f(e){return e.split("-")}function d(e,t,n){var r=Object.keys(e);r.forEach(function(o,a){var i=f(o),s=!1;t.forEach(function(t){var l=f(t);i.length>l.length&&u(l,i)&&(e[o].halfChecked=!1,e[o].checked=n,r[a]=null),i[0]===l[0]&&i[1]===l[1]&&(s=!0)}),s||(r[a]=null)}),r=r.filter(function(e){return e});for(var o=function(n){var o=function i(o){var a=f(o).length;if(!(2>=a)){var s=0,l=0,c=p(o);r.forEach(function(r){var o=f(r);if(o.length===a&&u(f(c),o))if(s++,e[r].checked){l++;var i=t.indexOf(r);i>-1&&(t.splice(i,1),n>=i&&n--)}else e[r].halfChecked&&(l+=.5)});var d=e[c];0===l?(d.checked=!1,d.halfChecked=!1):l===s?(d.checked=!0,d.halfChecked=!1):(d.halfChecked=!0,d.checked=!1),i(c)}};o(t[n],n),a=n},a=0;a<t.length;a++)o(a)}function h(e){var t=[],n=[],r=[],o=[];return Object.keys(e).forEach(function(a){var i=e[a];i.checked?(n.push(i.key),r.push(i.node),o.push({node:i.node,pos:a})):i.halfChecked&&t.push(i.key)}),{halfCheckedKeys:t,checkedKeys:n,checkedNodes:r,checkedNodesPositions:o,treeNodesStates:e}}function y(e,t){return t?{checked:e,halfChecked:t}:e}Object.defineProperty(t,"__esModule",{value:!0}),t.browser=o,t.getOffset=a,t.loopAllChildren=l,t.isInclude=u,t.filterParentPosition=c,t.handleCheckState=d,t.getCheck=h,t.getStrictlyValue=y;var v=n(1),m=r(v)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(1),i=r(a),s=i["default"].createClass({displayName:"LazyRenderBox",propTypes:{children:a.PropTypes.any,className:a.PropTypes.string,visible:a.PropTypes.bool,hiddenClassName:a.PropTypes.string},shouldComponentUpdate:function(e){return e.hiddenClassName||e.visible},render:function(){if(this.props.hiddenClassName){var e=this.props.className;return this.props.visible||(e+=" "+this.props.hiddenClassName),i["default"].createElement("div",o({},this.props,{className:e}))}return i["default"].Children.count(this.props.children)>1?i["default"].createElement("div",this.props):i["default"].Children.only(this.props.children)}});t["default"]=s,e.exports=t["default"]},function(e,t){"use strict";function n(){return"rc-upload-"+r+"-"+ ++o}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n;var r=+new Date,o=0;e.exports=t["default"]},function(e,t){"use strict";var n={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229};n.isTextModifyingKeyEvent=function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT: case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},n.isCharacterKey=function(e){if(e>=n.ZERO&&e<=n.NINE)return!0;if(e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY)return!0;if(e>=n.A&&e<=n.Z)return!0;if(-1!==window.navigation.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},e.exports=n},function(e,t){"use strict";var n={className:"",adaptiveHeight:!1,arrows:!0,autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:!1,pauseOnHover:!1,responsive:null,rtl:!1,slide:"div",slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,afterChange:null,beforeChange:null,edgeEvent:null,init:null,swipeEvent:null,nextArrow:null,prevArrow:null};e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=n(4),s=r(i),l=a["default"].version>="0.14.0"?s["default"]:a["default"];t["default"]=l,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=n(113),s=r(i),l=n(437),u=r(l),c=n(115),p=n(28),f=r(p),d={initialize:function(e){var t=a["default"].Children.count(e.children),n=this.getWidth(s["default"].findDOMNode(this.refs.list)),r=this.getWidth(s["default"].findDOMNode(this.refs.track)),o=this.getWidth(s["default"].findDOMNode(this))/e.slidesToShow,i=e.rtl?t-1-e.initialSlide:e.initialSlide;this.setState({slideCount:t,slideWidth:o,listWidth:n,trackWidth:r,currentSlide:i},function(){var t=(0,c.getTrackLeft)((0,f["default"])({slideIndex:this.state.currentSlide,trackRef:this.refs.track},e,this.state)),n=(0,c.getTrackCSS)((0,f["default"])({left:t},e,this.state));this.setState({trackStyle:n}),this.autoPlay()})},update:function(e){var t=a["default"].Children.count(e.children),n=this.getWidth(s["default"].findDOMNode(this.refs.list)),r=this.getWidth(s["default"].findDOMNode(this.refs.track)),o=this.getWidth(s["default"].findDOMNode(this))/e.slidesToShow;this.setState({slideCount:t,slideWidth:o,listWidth:n,trackWidth:r},function(){var t=(0,c.getTrackLeft)((0,f["default"])({slideIndex:this.state.currentSlide,trackRef:this.refs.track},e,this.state)),n=(0,c.getTrackCSS)((0,f["default"])({left:t},e,this.state));this.setState({trackStyle:n})})},getWidth:function(e){return e.getBoundingClientRect().width||e.offsetWidth},adaptHeight:function(){if(this.props.adaptiveHeight){var e='[data-index="'+this.state.currentSlide+'"]';if(this.refs.list){var t=s["default"].findDOMNode(this.refs.list);t.style.height=t.querySelector(e).offsetHeight+"px"}}},slideHandler:function(e){var t,n,r,o,a,i=this;if(!this.props.waitForAnimate||!this.state.animating){if(this.props.fade)return n=this.state.currentSlide,t=0>e?e+this.state.slideCount:e>=this.state.slideCount?e-this.state.slideCount:e,this.props.lazyLoad&&this.state.lazyLoadedList.indexOf(t)<0&&this.setState({lazyLoadedList:this.state.lazyLoadedList.concat(t)}),a=function(){i.setState({animating:!1}),i.props.afterChange&&i.props.afterChange(n),u["default"].removeEndEventListener(s["default"].findDOMNode(i.refs.track).children[n],a)},this.setState({animating:!0,currentSlide:t},function(){u["default"].addEndEventListener(s["default"].findDOMNode(this.refs.track).children[n],a)}),this.props.beforeChange&&this.props.beforeChange(this.state.currentSlide,n),void this.autoPlay();if(t=e,n=0>t?this.props.infinite===!1?0:this.state.slideCount%this.props.slidesToScroll!==0?this.state.slideCount-this.state.slideCount%this.props.slidesToScroll:this.state.slideCount+t:t>=this.state.slideCount?this.props.infinite===!1?this.state.slideCount-this.props.slidesToShow:this.state.slideCount%this.props.slidesToScroll!==0?0:t-this.state.slideCount:t,r=(0,c.getTrackLeft)((0,f["default"])({slideIndex:t,trackRef:this.refs.track},this.props,this.state)),o=(0,c.getTrackLeft)((0,f["default"])({slideIndex:n,trackRef:this.refs.track},this.props,this.state)),this.props.infinite===!1&&(r=o),this.props.beforeChange&&this.props.beforeChange(this.state.currentSlide,n),this.props.lazyLoad){for(var l=!0,p=[],d=t;d<t+this.props.slidesToShow;d++)l=l&&this.state.lazyLoadedList.indexOf(d)>=0,l||p.push(d);l||this.setState({lazyLoadedList:this.state.lazyLoadedList.concat(p)})}if(this.props.useCSS===!1)this.setState({currentSlide:n,trackStyle:(0,c.getTrackCSS)((0,f["default"])({left:o},this.props,this.state))},function(){this.props.afterChange&&this.props.afterChange(n)});else{var h={animating:!1,currentSlide:n,trackStyle:(0,c.getTrackCSS)((0,f["default"])({left:o},this.props,this.state)),swipeLeft:null};a=function(){i.setState(h),i.props.afterChange&&i.props.afterChange(n),u["default"].removeEndEventListener(s["default"].findDOMNode(i.refs.track),a)},this.setState({animating:!0,currentSlide:n,trackStyle:(0,c.getTrackAnimateCSS)((0,f["default"])({left:r},this.props,this.state))},function(){u["default"].addEndEventListener(s["default"].findDOMNode(this.refs.track),a)})}this.state.autoPlayTimer||this.autoPlay()}},swipeDirection:function(e){var t,n,r,o;return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),o=Math.round(180*r/Math.PI),0>o&&(o=360-Math.abs(o)),45>=o&&o>=0||360>=o&&o>=315?this.props.rtl===!1?"left":"right":o>=135&&225>=o?this.props.rtl===!1?"right":"left":"vertical"},autoPlay:function(){var e=this,t=function(){if(e.state.mounted){var t=e.props.rtl?e.state.currentSlide-e.props.slidesToScroll:e.state.currentSlide+e.props.slidesToScroll;e.slideHandler(t)}};this.props.autoplay&&this.setState({autoPlayTimer:window.setInterval(t,this.props.autoplaySpeed)})},pause:function(){this.state.autoPlayTimer&&window.clearInterval(this.state.autoPlayTimer)}};t["default"]=d,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(113),a=r(o),i=function(e,t){return t.reduce(function(t,n){return t&&e.hasOwnProperty(n)},!0)?null:console.error("Keys Missing",e)},s=function(e){i(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var t;t=e.variableWidth?(e.slideCount+2*e.slidesToShow)*e.slideWidth:e.centerMode?(e.slideCount+2*(e.slidesToShow+1))*e.slideWidth:(e.slideCount+2*e.slidesToShow)*e.slideWidth;var n={opacity:1,width:t,WebkitTransform:"translate3d("+e.left+"px, 0px, 0px)",transform:"translate3d("+e.left+"px, 0px, 0px)",transition:"",WebkitTransition:"",msTransform:"translateX("+e.left+"px)"};return!window.addEventListener&&window.attachEvent&&(n.marginLeft=e.left+"px"),n};t.getTrackCSS=s;var l=function(e){i(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=s(e);return t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase,t};t.getTrackAnimateCSS=l;var u=function(e){i(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth"]);var t,n,r=0;if(e.fade)return 0;if(e.infinite&&(e.slideCount>e.slidesToShow&&(r=e.slideWidth*e.slidesToShow*-1),e.slideCount%e.slidesToScroll!==0&&e.slideIndex+e.slidesToScroll>e.slideCount&&e.slideCount>e.slidesToShow&&(r=e.slideIndex>e.slideCount?(e.slidesToShow-(e.slideIndex-e.slideCount))*e.slideWidth*-1:e.slideCount%e.slidesToScroll*e.slideWidth*-1)),e.centerMode&&(e.infinite?r+=e.slideWidth*Math.floor(e.slidesToShow/2):r=e.slideWidth*Math.floor(e.slidesToShow/2)),t=e.slideIndex*e.slideWidth*-1+r,e.variableWidth===!0){var o;e.slideCount<=e.slidesToShow||e.infinite===!1?n=a["default"].findDOMNode(e.trackRef).childNodes[e.slideIndex]:(o=e.slideIndex+e.slidesToShow,n=a["default"].findDOMNode(e.trackRef).childNodes[o]),t=n?-1*n.offsetLeft:0,e.centerMode===!0&&(n=e.infinite===!1?a["default"].findDOMNode(e.trackRef).children[e.slideIndex]:a["default"].findDOMNode(e.trackRef).children[e.slideIndex+e.slidesToShow+1],t=n?-1*n.offsetLeft:0,t+=(e.listWidth-n.offsetWidth)/2)}return t};t.getTrackLeft=u},function(e,t,n){"use strict";var r=n(301);e.exports=function(e,t,n,o){var a=n?n.call(o,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var i=r(e),s=r(t),l=i.length;if(l!==s.length)return!1;o=o||null;for(var u=Object.prototype.hasOwnProperty.bind(t),c=0;l>c;c++){var p=i[c];if(!u(p))return!1;var f=e[p],d=t[p],h=n?n.call(o,f,d,p):void 0;if(h===!1||void 0===h&&f!==d)return!1}return!0}},function(e,t){(function(t){function n(e,t){function n(){if(!o){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),o=!0}return e.apply(this,arguments)}if(r("noDeprecation"))return e;var o=!1;return n}function r(e){try{if(!t.localStorage)return!1}catch(n){return!1}var r=t.localStorage[e];return null==r?!1:"true"===String(r).toLowerCase()}e.exports=n}).call(t,function(){return this}())},function(e,t){"use strict";function n(){return!1}function r(){return!0}function o(){this.timeStamp=Date.now(),this.target=void 0,this.currentTarget=void 0}Object.defineProperty(t,"__esModule",{value:!0}),o.prototype={isEventObject:1,constructor:o,isDefaultPrevented:n,isPropagationStopped:n,isImmediatePropagationStopped:n,preventDefault:function(){this.isDefaultPrevented=r},stopPropagation:function(){this.isPropagationStopped=r},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=r,this.stopPropagation()},halt:function(e){e?this.stopImmediatePropagation():this.stopPropagation(),this.preventDefault()}},t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return null===e||void 0===e}function a(){return f}function i(){return d}function s(e){var t=e.type,n="function"==typeof e.stopPropagation||"boolean"==typeof e.cancelBubble;u["default"].call(this),this.nativeEvent=e;var r=i;"defaultPrevented"in e?r=e.defaultPrevented?a:i:"getPreventDefault"in e?r=e.getPreventDefault()?a:i:"returnValue"in e&&(r=e.returnValue===d?a:i),this.isDefaultPrevented=r;var o=[],s=void 0,l=void 0,c=void 0,p=h.concat();for(y.forEach(function(e){t.match(e.reg)&&(p=p.concat(e.props),e.fix&&o.push(e.fix))}),l=p.length;l;)c=p[--l],this[c]=e[c];for(!this.target&&n&&(this.target=e.srcElement||document),this.target&&3===this.target.nodeType&&(this.target=this.target.parentNode),l=o.length;l;)(s=o[--l])(this,e);this.timeStamp=e.timeStamp||Date.now()}Object.defineProperty(t,"__esModule",{value:!0});var l=n(118),u=r(l),c=n(10),p=r(c),f=!0,d=!1,h=["altKey","bubbles","cancelable","ctrlKey","currentTarget","eventPhase","metaKey","shiftKey","target","timeStamp","view","type"],y=[{reg:/^key/,props:["char","charCode","key","keyCode","which"],fix:function(e,t){o(e.which)&&(e.which=o(t.charCode)?t.keyCode:t.charCode),void 0===e.metaKey&&(e.metaKey=e.ctrlKey)}},{reg:/^touch/,props:["touches","changedTouches","targetTouches"]},{reg:/^hashchange$/,props:["newURL","oldURL"]},{reg:/^gesturechange$/i,props:["rotation","scale"]},{reg:/^(mousewheel|DOMMouseScroll)$/,props:[],fix:function(e,t){var n=void 0,r=void 0,o=void 0,a=t.wheelDelta,i=t.axis,s=t.wheelDeltaY,l=t.wheelDeltaX,u=t.detail;a&&(o=a/120),u&&(o=0-(u%3===0?u/3:u)),void 0!==i&&(i===e.HORIZONTAL_AXIS?(r=0,n=0-o):i===e.VERTICAL_AXIS&&(n=0,r=o)),void 0!==s&&(r=s/120),void 0!==l&&(n=-1*l/120),n||r||(r=o),void 0!==n&&(e.deltaX=n),void 0!==r&&(e.deltaY=r),void 0!==o&&(e.delta=o)}},{reg:/^mouse|contextmenu|click|mspointer|(^DOMMouseScroll$)/i,props:["buttons","clientX","clientY","button","offsetX","relatedTarget","which","fromElement","toElement","offsetY","pageX","pageY","screenX","screenY"],fix:function(e,t){var n=void 0,r=void 0,a=void 0,i=e.target,s=t.button;return i&&o(e.pageX)&&!o(t.clientX)&&(n=i.ownerDocument||document,r=n.documentElement,a=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||a&&a.scrollLeft||0)-(r&&r.clientLeft||a&&a.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||a&&a.scrollTop||0)-(r&&r.clientTop||a&&a.clientTop||0)),e.which||void 0===s||(1&s?e.which=1:2&s?e.which=3:4&s?e.which=2:e.which=0),!e.relatedTarget&&e.fromElement&&(e.relatedTarget=e.fromElement===i?e.toElement:e.fromElement),e}}],v=u["default"].prototype;(0,p["default"])(s.prototype,v,{constructor:s,preventDefault:function(){var e=this.nativeEvent;e.preventDefault?e.preventDefault():e.returnValue=d,v.preventDefault.call(this)},stopPropagation:function(){var e=this.nativeEvent;e.stopPropagation?e.stopPropagation():e.cancelBubble=f,v.stopPropagation.call(this)}}),t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){function r(t){var r=new i["default"](t);n.call(e,r)}return e.addEventListener?(e.addEventListener(t,r,!1),{remove:function(){e.removeEventListener(t,r,!1)}}):e.attachEvent?(e.attachEvent("on"+t,r),{remove:function(){e.detachEvent("on"+t,r)}}):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var a=n(119),i=r(a);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return"object"!==("undefined"==typeof e?"undefined":s(e))?t:void 0}function a(e){this.rules=null,this._messages=p.messages,this.define(e)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},l=n(5),u=n(133),c=r(u),p=n(122),f=n(8),d=n(303),h=r(d);a.prototype={messages:function(e){return e&&(this._messages=(0,h["default"])((0,p.newMessages)(),e,o)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"==typeof e?"undefined":s(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e){function t(e){function t(e){Array.isArray(e)?o=o.concat.apply(o,e):o.push(e)}var n=void 0,r=void 0,o=[],a={};for(n=0;n<e.length;n++)t(e[n]);if(o.length)for(n=0;n<o.length;n++)r=o[n].field,a[r]=a[r]||[],a[r].push(o[n]);else o=null,a=null;y(o,a)}var n=this,r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],u=arguments[2],c=e,d=r;if(!this.rules)throw new Error("Cannot validate with no rules.");var y=u;if("function"==typeof d&&(y=d,d={}),d.messages){var v=this.messages();v===p.messages&&(v=(0,p.newMessages)()),(0,h["default"])(v,d.messages,o),d.messages=v}else d.messages=this.messages();d.error=f.error;var m=void 0,g=void 0,b={},P=d.keys||Object.keys(this.rules);P.forEach(function(t){m=n.rules[t],g=c[t],m.forEach(function(r){var o=r;"function"==typeof o.transform&&(c===e&&(c=i({},c)),g=c[t]=o.transform(g)),o="function"==typeof o?{validator:o}:i({},o),o.field=t,o.fullField=o.fullField||t,o.type=n.getType(o),o.validator=n.getValidationMethod(o),o.validator&&(b[t]=b[t]||[],b[t].push({rule:o,value:g,source:c,field:t}))})});var O={};(0,l.asyncMap)(b,d,function(e,t){function n(e,t){return i({},t,{fullField:o.fullField+"."+e})}function r(){var r=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],s=r;if(Array.isArray(s)||(s=[s]),s.length&&(0,l.warning)("async-validator:",s),s.length&&o.message&&(s=[].concat(o.message)),s=s.map((0,l.complementError)(o)),(d.first||d.fieldFirst)&&s.length)return O[o.field]=1,t(s);if(u){if(o.required&&!e.value)return s=o.message?[].concat(o.message).map((0,l.complementError)(o)):[d.error(o,(0,l.format)(d.messages.required,o.field))],t(s);var c={};if(o.defaultField)for(var p in e.value)e.value.hasOwnProperty(p)&&(c[p]=o.defaultField);c=i({},c,e.rule.fields);for(var f in c)if(c.hasOwnProperty(f)){var h=Array.isArray(c[f])?c[f]:[c[f]];c[f]=h.map(n.bind(null,f))}var y=new a(c);y.messages(d.messages),e.rule.options&&(e.rule.options.messages=d.messages,e.rule.options.error=d.error),y.validate(e.value,e.rule.options||d,function(e){t(e&&e.length?s.concat(e):e)})}else t(s)}var o=e.rule,u=!("object"!==o.type&&"array"!==o.type||"object"!==s(o.fields)&&"object"!==s(o.defaultField));u=u&&(o.required||!o.required&&e.value),o.field=e.field,o.validator(o,e.value,r,e.source,d)},function(e){t(e)})},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!c["default"].hasOwnProperty(e.type))throw new Error((0,l.format)("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){return"function"==typeof e.validator?e.validator:c["default"][e.type]||!1}},a.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");c["default"][e]=t},a.messages=p.messages,t["default"]=a,e.exports=t["default"]},function(e,t){"use strict";function n(){return{"default":"Validation error on field %s",required:"%s is required","enum":"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s","boolean":"%s is not a %s",integer:"%s is not an %s","float":"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.newMessages=n;t.messages=n()},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e,t,n,r,o){e[s]=Array.isArray(e[s])?e[s]:[],-1===e[s].indexOf(t)&&r.push(i.format(o.messages[s],e.fullField,e[s].join(", ")))}Object.defineProperty(t,"__esModule",{value:!0});var a=n(5),i=r(a),s="enum";t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e,t,n,r,o){e.pattern instanceof RegExp&&(e.pattern.test(t)||r.push(i.format(o.messages.pattern.mismatch,e.fullField,t,e.pattern)))}Object.defineProperty(t,"__esModule",{value:!0});var a=n(5),i=r(a);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e,t,n,r,o){var a="number"==typeof e.len,s="number"==typeof e.min,l="number"==typeof e.max,u=t,c=null,p="number"==typeof t,f="string"==typeof t,d=Array.isArray(t);return p?c="number":f?c="string":d&&(c="array"),c?((f||d)&&(u=t.length),void(a?u!==e.len&&r.push(i.format(o.messages[c].len,e.fullField,e.len)):s&&!l&&u<e.min?r.push(i.format(o.messages[c].min,e.fullField,e.min)):l&&!s&&u>e.max?r.push(i.format(o.messages[c].max,e.fullField,e.max)):s&&l&&(u<e.min||u>e.max)&&r.push(i.format(o.messages[c].range,e.fullField,e.min,e.max)))):!1}Object.defineProperty(t,"__esModule",{value:!0});var a=n(5),i=r(a);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function a(e,t,n,r,o){if(e.required&&void 0===t)return void(0,c["default"])(e,t,n,r,o);var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;a.indexOf(s)>-1?f[s](t)||r.push(l.format(o.messages.types[s],e.fullField,e.type)):s&&("undefined"==typeof t?"undefined":i(t))!==e.type&&r.push(l.format(o.messages.types[s],e.fullField,e.type))}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},s=n(5),l=o(s),u=n(45),c=r(u),p={email:/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},f={integer:function(e){return f.number(e)&&parseInt(e,10)===e},"float":function(e){return f.number(e)&&!f.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear},number:function(e){return isNaN(e)?!1:"number"==typeof e},object:function(e){return"object"===("undefined"==typeof e?"undefined":i(e))&&!f.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(p.email)},url:function(e){return"string"==typeof e&&!!e.match(p.url)},hex:function(e){return"string"==typeof e&&!!e.match(p.hex)}};t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(i.format(o.messages.whitespace,e.fullField))}Object.defineProperty(t,"__esModule",{value:!0});var a=n(5),i=r(a);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r,o){var a=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if((0,s.isEmptyValue)(t,"array")&&!e.required)return n();i["default"].required(e,t,r,a,o,"array"),(0,s.isEmptyValue)(t,"array")||(i["default"].type(e,t,r,a,o),i["default"].range(e,t,r,a,o))}n(a)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(8),i=r(a),s=n(5);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r,o){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if((0,a.isEmptyValue)(t)&&!e.required)return n();s["default"].required(e,t,r,i,o),void 0!==t&&s["default"].type(e,t,r,i,o)}n(i)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(5),i=n(8),s=r(i);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r,o){var a=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if((0,s.isEmptyValue)(t)&&!e.required)return n();i["default"].required(e,t,r,a,o),(0,s.isEmptyValue)(t)||(i["default"].type(e,t,r,a,o),t&&i["default"].range(e,t.getTime(),r,a,o))}n(a)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(8),i=r(a),s=n(5);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r,o){var a=[],u=e.required||!e.required&&r.hasOwnProperty(e.field);if(u){if((0,s.isEmptyValue)(t)&&!e.required)return n();i["default"].required(e,t,r,a,o),t&&i["default"][l](e,t,r,a,o)}n(a)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(8),i=r(a),s=n(5),l="enum";t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r,o){var a=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if((0,s.isEmptyValue)(t)&&!e.required)return n();i["default"].required(e,t,r,a,o),void 0!==t&&(i["default"].type(e,t,r,a,o),i["default"].range(e,t,r,a,o))}n(a)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(8),i=r(a),s=n(5);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={string:n(140),method:n(135),number:n(136),"boolean":n(129),regexp:n(139),integer:n(134),"float":n(132),array:n(128),object:n(137),"enum":n(131),pattern:n(138),email:n(29),url:n(29),date:n(130),hex:n(29)},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r,o){var a=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if((0,s.isEmptyValue)(t)&&!e.required)return n();i["default"].required(e,t,r,a,o),void 0!==t&&(i["default"].type(e,t,r,a,o),i["default"].range(e,t,r,a,o))}n(a)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(8),i=r(a),s=n(5);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r,o){var a=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if((0,s.isEmptyValue)(t)&&!e.required)return n();i["default"].required(e,t,r,a,o),void 0!==t&&i["default"].type(e,t,r,a,o)}n(a)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(8),i=r(a),s=n(5);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r,o){var a=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if((0,s.isEmptyValue)(t)&&!e.required)return n();i["default"].required(e,t,r,a,o),void 0!==t&&(i["default"].type(e,t,r,a,o),i["default"].range(e,t,r,a,o))}n(a)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(8),i=r(a),s=n(5);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r,o){var a=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if((0,s.isEmptyValue)(t)&&!e.required)return n();i["default"].required(e,t,r,a,o),void 0!==t&&i["default"].type(e,t,r,a,o)}n(a)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(8),i=r(a),s=n(5);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r,o){var a=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if((0,s.isEmptyValue)(t,"string")&&!e.required)return n();i["default"].required(e,t,r,a,o),(0,s.isEmptyValue)(t,"string")||i["default"].pattern(e,t,r,a,o)}n(a)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(8),i=r(a),s=n(5);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r,o){var a=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if((0,s.isEmptyValue)(t)&&!e.required)return n();i["default"].required(e,t,r,a,o),(0,s.isEmptyValue)(t)||i["default"].type(e,t,r,a,o)}n(a)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(8),i=r(a),s=n(5);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r,o){var a=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if((0,s.isEmptyValue)(t,"string")&&!e.required)return n();i["default"].required(e,t,r,a,o,"string"),(0,s.isEmptyValue)(t,"string")||(i["default"].type(e,t,r,a,o),i["default"].range(e,t,r,a,o),i["default"].pattern(e,t,r,a,o),e.whitespace===!0&&i["default"].whitespace(e,t,r,a,o))}n(a)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(8),i=r(a),s=n(5);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}function l(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;n=o.documentElement[r],"number"!=typeof n&&(n=o.body[r])}return n}function u(e){var t=e.getBoundingClientRect(),n=document.body,r=e.clientTop||n.clientTop||0,o=e.clientLeft||n.clientLeft||0,a=l(window,!0),i=l(window);return{top:t.top+a-r,left:t.left+i-o}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var c,p,f=n(1),d=r(f),h=n(4),y=r(h),v=n(6),m=n(2),g=r(m),b=(p=c=function(e){function t(n){a(this,t);var r=i(this,e.call(this,n));return r.handleScroll=function(){var e=r.props,t=e.offsetTop,n=e.offsetBottom,o=l(window,!0),a=u(y["default"].findDOMNode(r)),i={width:y["default"].findDOMNode(r.refs.fixedNode).offsetWidth,height:y["default"].findDOMNode(r.refs.fixedNode).offsetHeight},s={};"number"!=typeof t&&"number"!=typeof n?(s.top=!0,t=0):(s.top="number"==typeof t,s.bottom="number"==typeof n),o>a.top-t&&s.top?r.state.affixStyle||r.setState({affixStyle:{position:"fixed",top:t,left:a.left}}):o<a.top+i.height+n-window.innerHeight&&s.bottom?r.state.affixStyle||r.setState({affixStyle:{position:"fixed",bottom:n,left:a.left}}):r.state.affixStyle&&r.setState({affixStyle:null})},r.state={affixStyle:null},r}return s(t,e),t.prototype.componentDidMount=function(){this.scrollEvent=v.Dom.addEventListener(window,"scroll",this.handleScroll),this.resizeEvent=v.Dom.addEventListener(window,"resize",this.handleScroll)},t.prototype.componentWillUnmount=function(){this.scrollEvent&&this.scrollEvent.remove(),this.resizeEvent&&this.resizeEvent.remove()},t.prototype.render=function(){var e=(0,g["default"])({"ant-affix":this.state.affixStyle});return d["default"].createElement("div",this.props,d["default"].createElement("div",{className:e,ref:"fixedNode",style:this.state.affixStyle},this.props.children))},t}(d["default"].Component),c.propTypes={offsetTop:d["default"].PropTypes.number,offsetBottom:d["default"].PropTypes.number},p);t["default"]=b,e.exports=t["default"]},[441,254],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){ for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p=n(1),f=r(p),d=n(4),h=r(d),y=n(9),v=r(y),m=n(7),g=r(m),b=n(2),P=r(b),O=(c=u=function(e){function t(n){i(this,t);var r=s(this,e.call(this,n));return r.handleClose=function(e){e.preventDefault();var t=h["default"].findDOMNode(r);t.style.height=t.offsetHeight+"px",t.style.height=t.offsetHeight+"px",r.setState({closing:!1}),r.props.onClose.call(r,e)},r.animationEnd=function(){r.setState({closed:!0,closing:!0})},r.state={closing:!0,closed:!1},r}return l(t,e),t.prototype.render=function(){var e,t=this.props,n=t.closable,r=t.description,o=t.type,i=t.prefixCls,s=t.message,l=t.closeText,u=t.showIcon,c="";switch(o){case"success":c="check-circle";break;case"info":c="info-circle";break;case"error":c="cross-circle";break;case"warning":c="exclamation-circle";break;default:c="default"}r&&(c+="-o");var p=(0,P["default"])((e={},a(e,i,!0),a(e,i+"-"+o,!0),a(e,i+"-close",!this.state.closing),a(e,i+"-with-description",!!r),a(e,i+"-no-icon",!u),e));return l&&(n=!0),this.state.closed?null:f["default"].createElement(v["default"],{component:"",showProp:"data-show",transitionName:"slide-up",onEnd:this.animationEnd},f["default"].createElement("div",{"data-show":this.state.closing,className:p},u?f["default"].createElement(g["default"],{className:"ant-alert-icon",type:c}):null,f["default"].createElement("span",{className:i+"-message"},s),f["default"].createElement("span",{className:i+"-description"},r),n?f["default"].createElement("a",{onClick:this.handleClose,className:i+"-close-icon"},l||f["default"].createElement(g["default"],{type:"cross"})):null))},t}(f["default"].Component),u.defaultProps={prefixCls:"ant-alert",showIcon:!1,onClose:function(){},type:"info"},c);t["default"]=O,e.exports=t["default"]},[441,255],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}function l(e){return e?e.toString().split("").reverse().map(function(e){return Number(e)}):[]}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=n(1),d=r(f),h=n(4),y=n(19),v=(c=u=function(e){function t(n){a(this,t);var r=i(this,e.call(this,n));return r.state={animateStarted:!0,count:n.count},r}return s(t,e),t.prototype.componentDidMount=function(){y.isCssAnimationSupported||((0,h.findDOMNode)(this).className+=" not-support-css-animation")},t.prototype.getPositionByNum=function(e,t){if(this.state.animateStarted)return 10+e;var n=l(this.state.count)[t],r=l(this.lastCount)[t];return this.state.count>this.lastCount?n>=r?10+e:20+e:r>=n?10+e:e},t.prototype.componentWillReceiveProps=function(e){var t=this;if("count"in e){if(this.state.count===e.count)return;this.lastCount=this.state.count,this.setState({animateStarted:!0},function(){setTimeout(function(){t.setState({animateStarted:!1,count:e.count},function(){t.props.onAnimated()})},5)})}},t.prototype.renderNumberList=function(e){for(var t=[],n=0;30>n;n++){var r=e===n?"current":null;t.push(d["default"].createElement("p",{key:n,className:r},n%10))}return t},t.prototype.renderCurrentNumber=function(e,t){var n=this.getPositionByNum(e,t),r=this.props.height,o=this.state.animateStarted||void 0===l(this.lastCount)[t];return(0,f.createElement)("span",{className:this.props.prefixCls+"-only",style:{transition:o&&"none",WebkitTransform:"translate3d(0, "+-n*r+"px, 0)",transform:"translate3d(0, "+-n*r+"px, 0)",height:r},key:t},this.renderNumberList(n))},t.prototype.renderNumberElement=function(){var e=this,t=this.state;return!t.count||isNaN(t.count)?t.count:l(t.count).map(function(t,n){return e.renderCurrentNumber(t,n)}).reverse()},t.prototype.render=function(){var e=p({},this.props,{className:this.props.prefixCls+" "+this.props.className});return(0,f.createElement)(this.props.component,e,this.renderNumberElement())},t}(d["default"].Component),u.defaultProps={prefixCls:"ant-scroll-number",count:null,component:"sup",onAnimated:function(){},height:18},u.propTypes={count:d["default"].PropTypes.oneOfType([d["default"].PropTypes.string,d["default"].PropTypes.number]),component:d["default"].PropTypes.string,onAnimated:d["default"].PropTypes.func,height:d["default"].PropTypes.number},c);t["default"]=v,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=n(1),d=r(f),h=n(9),y=r(h),v=n(145),m=r(v),g=n(2),b=r(g),P=(c=u=function(e){function t(){return i(this,t),s(this,e.apply(this,arguments))}return l(t,e),t.prototype.render=function(){var e,t=this.props,n=t.count,r=t.prefixCls,o=t.overflowCount,i=t.className,s=t.style,l=t.children,u=this.props.dot;n=n>o?o+"+":n,u&&(n="");var c=!(n&&"0"!==n||u),f=r+(u?"-dot":"-count"),h=(0,b["default"])((e={},a(e,i,!!i),a(e,r,!0),a(e,r+"-not-a-wrapper",!l),e));return d["default"].createElement("span",p({className:h,title:n},this.props,{style:null}),l,d["default"].createElement(y["default"],{component:"",showProp:"data-show",transitionName:r+"-zoom",transitionAppear:!0},c?null:d["default"].createElement(m["default"],{"data-show":!c,className:f,count:n,style:s})))},t}(d["default"].Component),u.defaultProps={prefixCls:"ant-badge",count:null,dot:!1,overflowCount:99},u.propTypes={count:d["default"].PropTypes.oneOfType([d["default"].PropTypes.string,d["default"].PropTypes.number]),dot:d["default"].PropTypes.bool,overflowCount:d["default"].PropTypes.number},c);t["default"]=P,e.exports=t["default"]},[441,256],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var l,u,c=n(1),p=r(c),f=n(46),d=r(f),h=(u=l=function(e){function t(){return a(this,t),i(this,e.apply(this,arguments))}return s(t,e),t.prototype.render=function(){var e=void 0,t=this.props,n=t.separator,r=t.prefixCls,o=t.routes,a=t.params,i=t.children,s=t.linkRender,l=t.nameRender;return o&&o.length>0?!function(){var t=[];e=o.map(function(e,r){e.path=e.path||"";var i=e.path.replace(/^\//,"");if(Object.keys(a).forEach(function(e){i=i.replace(":"+e,a[e])}),i&&t.push(i),!e.breadcrumbName)return null;var u=e.breadcrumbName.replace(/:(.*)/g,function(e,t){return a[t]||e}),c=void 0;return c=r===o.length-1?l(u):s("/"+t.join("/"),u),p["default"].createElement(d["default"],{separator:n,key:u},c)})}():e=p["default"].Children.map(i,function(e,t){return(0,c.cloneElement)(e,{separator:n,key:t})}),p["default"].createElement("div",{className:r},e)},t}(p["default"].Component),l.defaultProps={prefixCls:"ant-breadcrumb",separator:"/",linkRender:function(e,t){return p["default"].createElement("a",{href:"#"+e},t)},nameRender:function(e){return p["default"].createElement("span",null,e)}},l.propTypes={prefixCls:p["default"].PropTypes.string,separator:p["default"].PropTypes.oneOfType([p["default"].PropTypes.string,p["default"].PropTypes.element]),routes:p["default"].PropTypes.array,params:p["default"].PropTypes.object,linkRender:p["default"].PropTypes.func,nameRender:p["default"].PropTypes.func},u);t["default"]=h,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(148),a=r(o),i=n(46),s=r(i);a["default"].Item=s["default"],t["default"]=a["default"],e.exports=t["default"]},[441,257],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){var t,n=e.size,r=e.className,i=a(e,["size","className"]),l={large:"lg",small:"sm"}[n]||"",c=(0,p["default"])((t={"ant-btn-group":!0},o(t,f+l,l),o(t,r,r),t));return u["default"].createElement("div",s({},i,{className:c}))}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t["default"]=i;var l=n(1),u=r(l),c=n(2),p=r(c),f="ant-btn-group-";i.propTypes={size:u["default"].PropTypes.oneOf(["large","small"])},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}function c(e){return"string"==typeof e}function p(e){return c(e.type)&&w(e.props.children)?m["default"].cloneElement(e,{},e.props.children.split("").join(" ")):c(e)?(w(e)&&(e=e.split("").join(" ")),m["default"].createElement("span",null,e)):e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var f,d,h,y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=n(1),m=r(v),g=n(2),b=r(g),P=n(4),O=n(7),C=r(O),T=/^[\u4e00-\u9fa5]{2}$/,w=T.test.bind(T),x=(d=f=function(e){function t(){var n,r,o;s(this,t);for(var a=arguments.length,i=Array(a),u=0;a>u;u++)i[u]=arguments[u];return n=r=l(this,e.call.apply(e,[this].concat(i))),h.call(r),o=n,l(r,o)}return u(t,e),t.prototype.render=function(){var e,t=this.props,n=t.type,r=t.shape,o=t.size,s=t.className,l=t.htmlType,u=t.children,c=t.icon,f=t.loading,d=t.prefixCls,h=i(t,["type","shape","size","className","htmlType","children","icon","loading","prefixCls"]),v={large:"lg",small:"sm"}[o]||"",g=(0,b["default"])((e={},a(e,d,!0),a(e,d+"-"+n,n),a(e,d+"-"+r,r),a(e,d+"-"+v,v),a(e,d+"-icon-only",!u&&c),a(e,d+"-loading",f),a(e,s,s),e)),P=f?"loading":c,O=m["default"].Children.map(u,p);return m["default"].createElement("button",y({},h,{type:l||"button",className:g,onMouseUp:this.handleMouseUp,onClick:this.handleClick}),P?m["default"].createElement(C["default"],{type:P}):null,O)},t}(m["default"].Component),f.defaultProps={prefixCls:"ant-btn",onClick:function(){},loading:!1},f.propTypes={type:m["default"].PropTypes.string,shape:m["default"].PropTypes.oneOf(["circle","circle-outline"]),size:m["default"].PropTypes.oneOf(["large","default","small"]),htmlType:m["default"].PropTypes.oneOf(["submit","button","reset"]),onClick:m["default"].PropTypes.func,loading:m["default"].PropTypes.bool,className:m["default"].PropTypes.string,icon:m["default"].PropTypes.string},h=function(){var e=this;this.clearButton=function(t){t.className=t.className.replace(" "+e.props.prefixCls+"-clicked","")},this.handleClick=function(){var t,n=(0,P.findDOMNode)(e);e.clearButton(n),setTimeout(function(){return n.className+=" "+e.props.prefixCls+"-clicked"},10),clearTimeout(e.timeout),e.timeout=setTimeout(function(){return e.clearButton(n)},500),(t=e.props).onClick.apply(t,arguments)},this.handleMouseUp=function(t){(0,P.findDOMNode)(e).blur(),e.props.onMouseUp&&e.props.onMouseUp(t)}},d);t["default"]=x,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}function l(){}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p=n(1),f=r(p),d=n(47),h=n(24),y=r(h),v=n(31),m=y["default"].Option,g=(c=u=function(e){function t(){var n,r,o;a(this,t);for(var s=arguments.length,l=Array(s),u=0;s>u;u++)l[u]=arguments[u];return n=r=i(this,e.call.apply(e,[this].concat(l))),r.onYearChange=function(e){var t=r.props.value.clone();t.setYear(parseInt(e,10)),r.props.onValueChange(t)},r.onMonthChange=function(e){var t=r.props.value.clone();t.setMonth(parseInt(e,10)),r.props.onValueChange(t)},r.onTypeChange=function(e){r.props.onTypeChange(e.target.value)},o=n,i(r,o)}return s(t,e),t.prototype.getYearSelectElement=function(e){for(var t=this.props,n=t.yearSelectOffset,r=t.yearSelectTotal,o=t.locale,a=t.prefixCls,i=t.fullscreen,s=e-n,l=s+r,u="\u5e74"===o.year?"\u5e74":"",c=[],p=s;l>p;p++)c.push(f["default"].createElement(m,{key:""+p},p+u));return f["default"].createElement(y["default"],{style:{width:75},size:i?null:"small",dropdownMatchSelectWidth:!1,dropdownMenuStyle:{minWidth:103},className:a+"-year-select",onChange:this.onYearChange,value:String(e)},c)},t.prototype.getMonthSelectElement=function(e){for(var t=this.props,n=t.locale.format.months,r=t.prefixCls,o=t.fullscreen,a=[],i=0;12>i;i++)a.push(f["default"].createElement(m,{key:""+i},n[i]));return f["default"].createElement(y["default"],{style:{minWidth:70},dropdownMenuStyle:{minWidth:125},size:o?null:"small",dropdownMatchSelectWidth:!1,className:r+"-month-select",value:String(e),onChange:this.onMonthChange},a)},t.prototype.render=function(){var e=this.props,t=e.type,n=e.value,r=e.prefixCls,o=e.locale,a=this.getYearSelectElement(n.getYear()),i="date"===t?this.getMonthSelectElement(n.getMonth()):null,s=f["default"].createElement(v.Group,{onChange:this.onTypeChange,value:t},f["default"].createElement(v.Button,{value:"date"},o.month),f["default"].createElement(v.Button,{value:"month"},o.year));return f["default"].createElement("div",{className:r+"-header"},a,i,s)},t}(f["default"].Component),u.defaultProps={prefixCls:d.PREFIX_CLS+"-header",yearSelectOffset:10,yearSelectTotal:20,onValueChange:l,onTypeChange:l},u.propTypes={value:p.PropTypes.object,locale:p.PropTypes.object,yearSelectOffset:p.PropTypes.number,yearSelectTotal:p.PropTypes.number,onValueChange:p.PropTypes.func,onTypeChange:p.PropTypes.func,prefixCls:p.PropTypes.string,selectPrefixCls:p.PropTypes.string,type:p.PropTypes.string},c);t["default"]=g,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}function l(){return null}function u(e){return 10>e?"0"+e:""+e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var c,p,f,d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=n(1),y=r(h),v=n(11),m=r(v),g=n(155),b=r(g),P=n(313),O=r(P),C=n(47),T=n(153),w=r(T),x=(p=c=function(e){function t(n){a(this,t);var r=i(this,e.call(this,n));return f.call(r),r.state={value:r.parseDateFromValue(n.value||new Date),mode:n.mode},r}return s(t,e),t.prototype.parseDateFromValue=function(e){var t=new m["default"](this.getLocale());return t.setTime(+e),t},t.prototype.componentWillReceiveProps=function(e){"value"in e&&this.setState({value:this.parseDateFromValue(e.value)})},t.prototype.render=function(){var e=this.props,t=this.state,n=t.value,r=t.mode,o=e.prefixCls,a=e.style,i=e.className,s=e.fullscreen,u="year"===r?"month":"date",c=this.getLocale(),p=i||"";return s&&(p+=" "+o+"-fullscreen"),y["default"].createElement("div",{className:p,style:a},y["default"].createElement(w["default"],{fullscreen:s,type:u,value:n,locale:c.lang,prefixCls:o,onTypeChange:this.setType,onValueChange:this.setValue}),y["default"].createElement(O["default"],d({},e,{Select:l,locale:c.lang,type:u,prefixCls:o,showHeader:!1,value:n,monthCellRender:this.monthCellRender,dateCellRender:this.dateCellRender})))},t}(y["default"].Component),c.defaultProps={monthCellRender:l,dateCellRender:l,locale:{},fullscreen:!0,prefixCls:C.PREFIX_CLS,onPanelChange:l,mode:"month"},c.propTypes={monthCellRender:h.PropTypes.func,dateCellRender:h.PropTypes.func,fullscreen:h.PropTypes.bool,locale:h.PropTypes.object,prefixCls:h.PropTypes.string,className:h.PropTypes.string,style:h.PropTypes.object,onPanelChange:h.PropTypes.func,value:h.PropTypes.instanceOf(Date)},c.contextTypes={antLocale:h.PropTypes.object},f=function(){var e=this;this.getLocale=function(){var t=e.props,n=b["default"],r=e.context;r&&r.antLocale&&r.antLocale.Calendar&&(n=r.antLocale.Calendar);var o=d({},n,t.locale);return o.lang=d({},n.lang,t.locale.lang),o},this.monthCellRender=function(t,n){var r=e.props.prefixCls,o=t.getMonth();return y["default"].createElement("div",{className:r+"-month"},y["default"].createElement("div",{className:r+"-value"},n.format.shortMonths[o]),y["default"].createElement("div",{className:r+"-content"},e.props.monthCellRender(t)))},this.dateCellRender=function(t){var n=e.props.prefixCls;return y["default"].createElement("div",{className:n+"-date"},y["default"].createElement("div",{className:n+"-value"},u(t.getDayOfMonth())),y["default"].createElement("div",{className:n+"-content"},e.props.dateCellRender(t)))},this.setValue=function(t){"value"in e.props||e.state.value===t||e.setState({value:t}),e.props.onPanelChange(t,e.state.mode)},this.setType=function(t){var n="date"===t?"month":"year";e.state.mode!==n&&(e.setState({mode:n}),e.props.onPanelChange(e.state.value,n))}},p);t["default"]=x,e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(49)},function(e,t,n){"use strict";n(3),n(259),n(25),n(33)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(1),l=r(s),u=n(2),c=r(u);t["default"]=function(e){var t,n=e.prefixCls,r=void 0===n?"ant-card":n,s=e.className,u=e.children,p=e.extra,f=e.bodyStyle,d=e.title,h=e.loading,y=e.bordered,v=void 0===y?!0:y,m=a(e,["prefixCls","className","children","extra","bodyStyle","title","loading","bordered"]),g=(0,c["default"])((t={},o(t,r,!0),o(t,s,!!s),o(t,r+"-loading",h),o(t,r+"-bordered",v),t));h&&(u=l["default"].createElement("div",null,l["default"].createElement("p",null,"\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588"),l["default"].createElement("p",null,"\u2588\u2588\u2588\u2588\u2588\u2588\u3000\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588"),l["default"].createElement("p",null,"\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u3000\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588"),l["default"].createElement("p",null,"\u2588\u2588\u2588\u2588\u2588\u3000\u2588\u2588\u2588\u2588\u2588\u2588\u3000\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588"),l["default"].createElement("p",null,"\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u3000\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u3000\u2588\u2588\u2588")));var b=d?l["default"].createElement("div",{className:r+"-head"},l["default"].createElement("h3",{className:r+"-head-title"},d)):null;return l["default"].createElement("div",i({},m,{className:g}),b,p?l["default"].createElement("div",{className:r+"-extra"},p):null,l["default"].createElement("div",{className:r+"-body",style:f},u))},e.exports=t["default"]},[441,260],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var l,u,c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=n(431),f=r(p),d=n(1),h=r(d);if("undefined"!=typeof window){var y=function(){return{matches:!1,addListener:function(){},removeListener:function(){}}};window.matchMedia=window.matchMedia||y}var v=(u=l=function(e){function t(){return a(this,t),i(this,e.apply(this,arguments))}return s(t,e),t.prototype.render=function(){var e=c({},this.props);"fade"===e.effect&&(e.fade=!0,e.draggable=!1);var t="ant-carousel";return e.vertical&&(t+=" ant-carousel-vertical"),h["default"].createElement("div",{className:t},h["default"].createElement(f["default"],e))},t}(h["default"].Component),l.defaultProps={dots:!0,arrows:!1},u);t["default"]=v,e.exports=t["default"]},[441,261],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var c,p,f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=n(1),h=r(d),y=n(324),v=r(y),m=n(53),g=r(m),b=n(7),P=r(b),O=n(44),C=r(O),T=n(2),w=r(T),x=(p=c=function(e){function t(n){s(this,t);var r=l(this,e.call(this,n));return r.handleChange=function(e,t){r.setValue(e,t)},r.handlePopupVisibleChange=function(e){r.setState({popupVisible:e}),r.props.onPopupVisibleChange(e)},r.setValue=function(e){var t=arguments.length<=1||void 0===arguments[1]?[]:arguments[1];"value"in r.props||r.setState({value:e}),r.props.onChange(e,t)},r.clearSelection=function(e){e.preventDefault(),e.stopPropagation(),r.setValue([]),r.setState({popupVisible:!1})},r.state={value:n.value||n.defaultValue||[],popupVisible:!1},r}return u(t,e),t.prototype.componentWillReceiveProps=function(e){"value"in e&&this.setState({value:e.value||[]})},t.prototype.getLabel=function(){var e=this,t=this.props,n=t.options,r=t.displayRender,o=(0,C["default"])(n,function(t,n){return t.value===e.state.value[n]}).map(function(e){return e.label});return r(o)},t.prototype.render=function(){var e,t,n=this.props,r=n.prefixCls,o=n.children,s=n.placeholder,l=n.size,u=n.disabled,c=n.className,p=n.style,d=n.allowClear,y=i(n,["prefixCls","children","placeholder","size","disabled","className","style","allowClear"]),m=(0,w["default"])({"ant-input-lg":"large"===l,"ant-input-sm":"small"===l}),b=d&&!u&&this.state.value.length>0?h["default"].createElement(P["default"],{type:"cross-circle",className:r+"-picker-clear",onClick:this.clearSelection}):null,O=(0,w["default"])((e={},a(e,r+"-picker-arrow",!0),a(e,r+"-picker-arrow-expand",this.state.popupVisible),e)),C=(0,w["default"])((t={},a(t,c,!!c),a(t,r+"-picker",!0),a(t,r+"-picker-disabled",u),t));return delete y.onChange,h["default"].createElement(v["default"],f({},n,{value:this.state.value,popupVisible:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,onChange:this.handleChange}),o||h["default"].createElement("span",{style:p,className:C},h["default"].createElement(g["default"],f({},y,{placeholder:s,className:r+"-input ant-input "+m,style:{width:"100%"},value:this.getLabel(),disabled:u,readOnly:!0})),b,h["default"].createElement(P["default"],{type:"down",className:O})))},t}(h["default"].Component),c.defaultProps={prefixCls:"ant-cascader",placeholder:"Please select",transitionName:"slide-up",popupPlacement:"bottomLeft",onChange:function(){},options:[],displayRender:function(e){return e.join(" / ")},disabled:!1,allowClear:!0,onPopupVisibleChange:function(){}},p);t["default"]=x,e.exports=t["default"]},[442,262],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p,f=n(1),d=r(f),h=n(17),y=r(h),v=(c=u=function(e){function t(n){i(this,t);var r=s(this,e.call(this,n));p.call(r);var o=void 0;return"value"in n?o=n.value:"defaultValue"in n&&(o=n.defaultValue),r.state={value:o},r}return l(t,e),t.prototype.componentWillReceiveProps=function(e){"value"in e&&this.setState({value:e.value||[]})},t.prototype.getOptions=function(){var e=this.props.options;return e.map(function(e){return"string"==typeof e?{ label:e,value:e}:e})},t.prototype.render=function(){var e=this,t=this.getOptions();return d["default"].createElement("div",{className:"ant-checkbox-group"},t.map(function(t){return d["default"].createElement(y["default"],{disabled:"disabled"in t?t.disabled:e.props.disabled,checked:-1!==e.state.value.indexOf(t.value),onChange:function(){return e.toggleOption(t)},className:"ant-checkbox-group-item",key:t.value},t.label)}))},t}(d["default"].Component),u.defaultProps={options:[],defaultValue:[],onChange:function(){}},u.propTypes={defaultValue:d["default"].PropTypes.array,value:d["default"].PropTypes.array,options:d["default"].PropTypes.array.isRequired,onChange:d["default"].PropTypes.func},p=function(){var e=this;this.toggleOption=function(t){var n=e.state.value.indexOf(t.value),r=[].concat(a(e.state.value));-1===n?r.push(t.value):r.splice(n,1),"value"in e.props||e.setState({value:r}),e.props.onChange(r)}},c);t["default"]=v,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(54);t["default"]=r.Col,e.exports=t["default"]},function(e,t,n){"use strict";n(3),n(36)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var l,u,c=n(329),p=r(c),f=n(1),d=r(f),h=(u=l=function(e){function t(){return a(this,t),i(this,e.apply(this,arguments))}return s(t,e),t.prototype.render=function(){return d["default"].createElement(p["default"],this.props)},t}(d["default"].Component),l.Panel=p["default"].Panel,l.defaultProps={prefixCls:"ant-collapse"},u);t["default"]=h,e.exports=t["default"]},[441,264],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var l,u,c=n(1),p=r(c),f=n(89),d=r(f),h=n(88),y=r(h),v=(u=l=function(e){function t(){return a(this,t),i(this,e.apply(this,arguments))}return s(t,e),t.prototype.render=function(){return p["default"].createElement(y["default"],this.props)},t}(p["default"].Component),l.defaultProps={locale:d["default"],prefixCls:"ant-calendar"},u);t["default"]=v,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p,f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=n(1),h=r(d),y=n(11),v=r(y),m=n(314),g=r(m),b=n(81),P=r(b),O=n(2),C=r(O),T=(c=u=function(e){function t(n){i(this,t);var r=s(this,e.call(this,n));p.call(r);var o=r.props,a=o.value,l=o.defaultValue,u=o.parseDateFromValue,c=a&&a[0]||l[0],f=a&&a[1]||l[1];return r.state={value:[u(c),u(f)]},r}return l(t,e),t.prototype.componentWillReceiveProps=function(e){if("value"in e){var t=e.value||[],n=e.parseDateFromValue(t[0]),r=e.parseDateFromValue(t[1]);this.setState({value:[n,r]})}},t.prototype.render=function(){var e=this,t=this.props,n=t.locale,r=new v["default"](n);r.setTime(Date.now());var o=this.props,i=o.disabledDate,s=o.showTime,l=o.getCalendarContainer,u=o.transitionName,c=o.disabled,p=o.popupStyle,d=o.align,y=o.style,m=o.onOk,b=this.state,O=(0,C["default"])(a({},"ant-calendar-time",s)),T={onChange:this.handleChange},w={onOk:this.handleChange};t.timePicker?T.onChange=function(t){null!==t&&0!==t.length||e.handleChange(t)}:w={};var x="startPlaceholder"in this.props?t.startPlaceholder:n.lang.rangePlaceholder[0],E="endPlaceholder"in t?t.endPlaceholder:n.lang.rangePlaceholder[1],S=h["default"].createElement(g["default"],f({prefixCls:"ant-calendar",className:O,timePicker:t.timePicker,disabledDate:i,dateInputPlaceholder:[x,E],locale:n.lang,onOk:m,defaultValue:[r,r]},w));return h["default"].createElement("span",{className:t.pickerClass,style:y},h["default"].createElement(P["default"],f({formatter:t.getFormatter(),transitionName:u,disabled:c,calendar:S,value:b.value,prefixCls:"ant-calendar-picker-container",style:p,align:d,getCalendarContainer:l,onOpen:t.toggleOpen,onClose:t.toggleOpen},T),function(e){var n=e.value,r=n[0],o=n[1];return h["default"].createElement("span",{className:t.pickerInputClass,disabled:c},h["default"].createElement("input",{disabled:c,onChange:t.handleInputChange,value:r?t.getFormatter().format(r):"",placeholder:x,className:"ant-calendar-range-picker-input"}),h["default"].createElement("span",{className:"ant-calendar-range-picker-separator"}," ~ "),h["default"].createElement("input",{disabled:c,onChange:t.handleInputChange,value:o?t.getFormatter().format(o):"",placeholder:E,className:"ant-calendar-range-picker-input"}),h["default"].createElement("span",{className:"ant-calendar-picker-icon"}))}))},t}(h["default"].Component),u.defaultProps={defaultValue:[]},p=function(){var e=this;this.handleChange=function(t){var n=e.props;"value"in n||e.setState({value:t});var r=t[0]?new Date(t[0].getTime()):null,o=t[1]?new Date(t[1].getTime()):null,a=t[0]?n.getFormatter().format(t[0]):"",i=t[1]?n.getFormatter().format(t[1]):"";n.onChange([r,o],[a,i])}},c);t["default"]=T,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}function u(e){var t,n,r;return n=t=function(t){function n(e){i(this,n);var o=s(this,t.call(this,e));return r.call(o),o.state={value:o.props.parseDateFromValue(o.props.value||o.props.defaultValue)},o}return l(n,t),n.prototype.componentWillReceiveProps=function(e){"value"in e&&this.setState({value:e.parseDateFromValue(e.value)})},n.prototype.render=function(){var t,n=this,r=this.props,o=r.locale,i=new g["default"](o);i.setTime(Date.now());var s="placeholder"in r?r.placeholder:o.lang.placeholder,l=r.showTime?r.disabledTime:null,u=(0,P["default"])((t={},a(t,"ant-calendar-time",r.showTime),a(t,"ant-calendar-month",h["default"]===e),t)),p={onChange:this.handleChange},d={onOk:this.handleChange};r.showTime?p.onChange=function(e){null===e&&n.handleChange(e)}:d={};var y=f["default"].createElement(e,c({formatter:r.getFormatter(),disabledDate:r.disabledDate,disabledTime:l,locale:o.lang,timePicker:r.timePicker,defaultValue:i,dateInputPlaceholder:s,prefixCls:"ant-calendar",className:u},d)),m={};return r.showTime&&(m.width=180),f["default"].createElement("span",{className:r.pickerClass,style:c({},m,r.style)},f["default"].createElement(v["default"],c({transitionName:r.transitionName,disabled:r.disabled,calendar:y,value:this.state.value,prefixCls:"ant-calendar-picker-container",style:r.popupStyle,align:r.align,getCalendarContainer:r.getCalendarContainer,onOpen:r.toggleOpen,onClose:r.toggleOpen},p),function(e){var t=e.value;return f["default"].createElement("span",null,f["default"].createElement("input",{disabled:r.disabled,onChange:r.handleInputChange,value:t?r.getFormatter().format(t):"",placeholder:s,className:r.pickerInputClass}),f["default"].createElement("span",{className:"ant-calendar-picker-icon"}))}))},n}(f["default"].Component),r=function(){var e=this;this.handleChange=function(t){var n=e.props;"value"in n||e.setState({value:t});var r=t?new Date(t.getTime()):null;n.onChange(r,t?n.getFormatter().format(t):"")}},n}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t["default"]=u;var p=n(1),f=r(p),d=n(80),h=r(d),y=n(81),v=r(y),m=n(11),g=r(m),b=n(2),P=r(b);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(88),a=r(o),i=n(80),s=r(i),l=n(170),u=r(l),c=n(173),p=r(c),f=n(169),d=r(f),h=n(168),y=r(h),v=(0,p["default"])((0,u["default"])(a["default"])),m=(0,p["default"])((0,u["default"])(s["default"]),"yyyy-MM");v.Calendar=y["default"],v.RangePicker=(0,p["default"])(d["default"],"yyyy-MM-dd"),v.MonthPicker=m,t["default"]=v,e.exports=t["default"]},function(e,t,n){"use strict";n(3),n(265),n(16),n(66)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}function l(e,t){var n,r;return r=n=function(t){function n(e){a(this,n);var r=i(this,t.call(this,e));return r.getFormatter=function(){var e=r.props.format,t=new y["default"](e,r.getLocale().lang.format);return t},r.parseDateFromValue=function(e){if(e){if("string"==typeof e)return r.getFormatter().parse(e,{locale:r.getLocale()});if(e instanceof Date){var t=new m["default"](r.getLocale());return t.setTime(+e),t}}return e},r.toggleOpen=function(e){r.setState({open:e.open})},r.state={},r}return s(n,t),n.prototype.handleInputChange=function(){},n.prototype.getLocale=function(){var e=this.props,t=O["default"],n=this.context;n.antLocale&&n.antLocale.DatePicker&&(t=n.antLocale.DatePicker);var r=u({},t,e.locale);return r.lang=u({},t.lang,e.locale.lang),r},n.prototype.render=function(){var t=this.props,n=this.state,r=(0,b["default"])({"ant-calendar-picker":!0,"ant-calendar-picker-open":n.open}),o=(0,b["default"])({"ant-calendar-range-picker":!0,"ant-input":!0,"ant-input-lg":"large"===t.size,"ant-input-sm":"small"===t.size}),a=this.getLocale(),i=t.showTime&&t.showTime.format,s={formatter:new y["default"](i||"HH:mm:ss"),showSecond:i&&i.indexOf("ss")>=0,showHour:i&&i.indexOf("HH")>=0},l=t.showTime?p["default"].createElement(d["default"],u({},s,t.showTime,{prefixCls:"ant-time-picker",placeholder:a.timePickerLocale.placeholder,locale:a.timePickerLocale,transitionName:"slide-up"})):null;return p["default"].createElement(e,u({},this.props,{pickerClass:r,pickerInputClass:o,locale:a,timePicker:l,toggleOpen:this.toggleOpen,handleInputChange:this.handleInputChange,getFormatter:this.getFormatter,parseDateFromValue:this.parseDateFromValue}))},n}(p["default"].Component),n.defaultProps={format:t||"yyyy-MM-dd",transitionName:"slide-up",popupStyle:{},onChange:function(){},onOk:function(){},locale:{},align:{offset:[0,-9]},open:!1},n.contextTypes={antLocale:c.PropTypes.object},r}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t["default"]=l;var c=n(1),p=r(c),f=n(393),d=r(f),h=n(26),y=r(h),v=n(11),m=r(v),g=n(2),b=r(g),P=n(49),O=r(P);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=n(1),d=r(f),h=n(15),y=r(h),v=n(7),m=r(v),g=n(50),b=r(g),P=n(2),O=r(P),C=y["default"].Group,T=(c=u=function(e){function t(){return i(this,t),s(this,e.apply(this,arguments))}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.type,n=e.overlay,r=e.trigger,o=e.align,i=e.children,s=e.className,l=e.onClick,u=a(e,["type","overlay","trigger","align","children","className","onClick"]),c=(0,O["default"])({"ant-dropdown-button":!0,className:!!s});return d["default"].createElement(C,p({},u,{className:c}),d["default"].createElement(y["default"],{type:t,onClick:l},i),d["default"].createElement(b["default"],{align:o,overlay:n,trigger:r},d["default"].createElement(y["default"],{type:t},d["default"].createElement(m["default"],{type:"down"}))))},t}(d["default"].Component),u.defaultProps={align:{points:["tr","br"],overlay:{adjustX:1,adjustY:1},offset:[0,4],targetOffset:[0,0]},type:"default"},c);t["default"]=T,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=n(1),d=r(f),h=n(2),y=r(h),v=(c=u=function(e){function t(){return i(this,t),s(this,e.apply(this,arguments))}return l(t,e),t.prototype.getChildContext=function(){return{form:this.props.form}},t.prototype.render=function(){var e,t=this.props,n=t.prefixCls,r=t.className,o=t.style,i=(0,y["default"])((e={},a(e,n+"-horizontal",this.props.horizontal),a(e,n+"-inline",this.props.inline),a(e,r,!!r),e));return d["default"].createElement("form",p({},this.props,{className:i,style:o}),this.props.children)},t}(d["default"].Component),u.defaultProps={prefixCls:"ant-form",onSubmit:function(e){e.preventDefault()}},u.propTypes={prefixCls:d["default"].PropTypes.string,horizontal:d["default"].PropTypes.bool,inline:d["default"].PropTypes.bool,form:d["default"].PropTypes.object,children:d["default"].PropTypes.any,onSubmit:d["default"].PropTypes.func},u.childContextTypes={form:d["default"].PropTypes.object},c);t["default"]=v,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}function u(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];return n.map(function(t){return e+"-"+t}).join(" ")}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var c,p,f=n(1),d=r(f),h=n(2),y=r(h),v=(p=c=function(e){function t(){return i(this,t),s(this,e.apply(this,arguments))}return l(t,e),t.prototype.getLayoutClass=function(e){if(!e)return"";var t=e.span,n=e.offset,r=t?"col-"+t:"",o=n?" col-offset-"+n:"";return r+o},t.prototype.getHelpMsg=function(){var e=this.context,t=this.props;return void 0===t.help&&e.form?this.getId()?(e.form.getFieldError(this.getId())||[]).join(", "):"":t.help},t.prototype.getOnlyControl=function(){var e=d["default"].Children.toArray(this.props.children),t=e.filter(function(e){return e.props&&"__meta"in e.props})[0];return void 0!==t?t:null},t.prototype.getChildProp=function(e){var t=this.getOnlyControl();return t&&t.props&&t.props[e]},t.prototype.getId=function(){return this.getChildProp("id")},t.prototype.getMeta=function(){return this.getChildProp("__meta")},t.prototype.renderHelp=function(){var e=this.props,t=e.prefixCls,n=this.getHelpMsg();return n?d["default"].createElement("div",{className:u(t,"explain"),key:"help"},n):null},t.prototype.renderExtra=function(){var e=this.props,t=e.prefixCls,n=e.extra;return n?d["default"].createElement("span",{className:u(t,"extra")},n):null},t.prototype.getValidateStatus=function(){var e=this.context.form,t=e.isFieldValidating,n=e.getFieldError,r=e.getFieldValue,o=this.getId();return o?t(o)?"validating":n(o)?"error":void 0!==r(o)?"success":"":""},t.prototype.renderValidateWrapper=function(e,t,n){var r="",o=this.context.form,a=this.props,i=void 0===a.validateStatus&&o?this.getValidateStatus():a.validateStatus;return i&&(r=(0,y["default"])({"has-feedback":a.hasFeedback,"has-success":"success"===i,"has-warning":"warning"===i,"has-error":"error"===i,"is-validating":"validating"===i})),d["default"].createElement("div",{className:this.props.prefixCls+"-item-control "+r},e,t,n)},t.prototype.renderWrapper=function(e){var t=this.props.wrapperCol;return d["default"].createElement("div",{className:this.getLayoutClass(t),key:"wrapper"},e)},t.prototype.isRequired=function(){if(this.context.form){var e=this.getMeta()||{},t=e.validate||[];return t.filter(function(e){return!!e.rules}).some(function(e){return e.rules.some(function(e){return e.required})})}return!1},t.prototype.renderLabel=function(){var e,t=this.props,n=t.labelCol,r=void 0===t.required?this.isRequired():t.required,o=(0,y["default"])((e={},a(e,this.getLayoutClass(n),!0),a(e,t.prefixCls+"-item-required",r),e));return t.label?d["default"].createElement("label",{htmlFor:t.id||this.getId(),className:o,key:"label"},t.label):null},t.prototype.renderChildren=function(){var e=this.props,t=d["default"].Children.map(e.children,function(e){return e&&"function"==typeof e.type&&!e.props.size?d["default"].cloneElement(e,{size:"large"}):e});return[this.renderLabel(),this.renderWrapper(this.renderValidateWrapper(t,this.renderHelp(),this.renderExtra()))]},t.prototype.renderFormItem=function(e){var t,n=this.props,r=n.prefixCls,o=n.style,i=(t={},a(t,r+"-item",!0),a(t,r+"-item-with-help",!!this.getHelpMsg()),a(t,""+n.className,!!n.className),t);return d["default"].createElement("div",{className:(0,y["default"])(i),style:o},e)},t.prototype.render=function(){var e=this.renderChildren();return this.renderFormItem(e)},t}(d["default"].Component),c.defaultProps={hasFeedback:!1,prefixCls:"ant-form"},c.propTypes={prefixCls:d["default"].PropTypes.string,label:d["default"].PropTypes.node,labelCol:d["default"].PropTypes.object,help:d["default"].PropTypes.oneOfType([d["default"].PropTypes.node,d["default"].PropTypes.bool]),validateStatus:d["default"].PropTypes.oneOf(["","success","warning","error","validating"]),hasFeedback:d["default"].PropTypes.bool,wrapperCol:d["default"].PropTypes.object,className:d["default"].PropTypes.string,id:d["default"].PropTypes.string,children:d["default"].PropTypes.node},c.contextTypes={form:d["default"].PropTypes.object},p);t["default"]=v,e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r={setValue:function(e,t){var r=t,o=t&&t.target;o&&(r="input"===(""+o.nodeName).toLowerCase()&&"checkbox"===o.type?o.checked:t.target.value);var a={};a[e]=r,this.setState({formData:n({},this.state.formData,a)})}};t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(175),i=r(a),s=n(176),l=r(s),u=n(177),c=r(u),p=n(338),f=r(p);i["default"].create=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=o({},e,{fieldNameProp:"id",fieldMetaProp:"__meta"});return(0,f["default"])(t)},i["default"].Item=l["default"],i["default"].ValueMixin=c["default"],t["default"]=i["default"],e.exports=t["default"]},function(e,t,n){"use strict";n(3),n(267),n(187)},function(e,t,n){"use strict";n(3)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var c,p,f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=n(1),h=r(d),y=n(2),v=r(y),m=n(341),g=r(m),b=(p=c=function(e){function t(){return s(this,t),l(this,e.apply(this,arguments))}return u(t,e),t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.size,o=i(t,["className","size"]),s=(0,v["default"])((e={},a(e,this.props.prefixCls+"-lg","large"===r),a(e,this.props.prefixCls+"-sm","small"===r),a(e,n,!!n),e));return h["default"].createElement(g["default"],f({className:s},o))},t}(h["default"].Component),c.defaultProps={prefixCls:"ant-input-number",step:1},p);t["default"]=b,e.exports=t["default"]},[441,268],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=(0,u["default"])(o({"ant-input-group":!0},e.className,!!e.className));return s["default"].createElement("span",{className:t,style:e.style},e.children)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=a;var i=n(1),s=r(i),l=n(2),u=r(l);a.propTypes={children:s["default"].PropTypes.any},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}function u(e){return"undefined"==typeof e||null===e?"":e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var c,p,f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=n(1),h=r(d),y=n(2),v=r(y),m=(p=c=function(e){function t(){var n,r,o;i(this,t);for(var a=arguments.length,l=Array(a),u=0;a>u;u++)l[u]=arguments[u];return n=r=s(this,e.call.apply(e,[this].concat(l))),r.handleKeyDown=function(e){13===e.keyCode&&r.props.onPressEnter(e),r.props.onKeyDown(e)},o=n,s(r,o)}return l(t,e),t.prototype.renderLabledInput=function(e){var t,n=this.props,r=n.prefixCls+"-group",o=r+"-addon",i=n.addonBefore?h["default"].createElement("span",{className:o},n.addonBefore):null,s=n.addonAfter?h["default"].createElement("span",{className:o},n.addonAfter):null,l=(0,v["default"])((t={},a(t,n.prefixCls+"-wrapper",!0),a(t,r,i||s),t));return h["default"].createElement("span",{className:l},i,e,s)},t.prototype.renderInput=function(){var e,t=f({},this.props),n=t.prefixCls;if(!t.type)return t.children;var r=(0,v["default"])((e={},a(e,n,!0),a(e,n+"-sm","small"===t.size),a(e,n+"-lg","large"===t.size),a(e,t.className,!!t.className),e)),o=t.placeholder;switch("value"in t&&(t.value=u(t.value),delete t.defaultValue),t.type){case"textarea":return h["default"].createElement("textarea",f({},t,{placeholder:o,className:r,onKeyDown:this.handleKeyDown,ref:"input"}));default:return h["default"].createElement("input",f({},t,{placeholder:o,className:r,onKeyDown:this.handleKeyDown,ref:"input"}))}},t.prototype.render=function(){return this.renderLabledInput(this.renderInput())},t}(h["default"].Component),c.defaultProps={defaultValue:"",disabled:!1,prefixCls:"ant-input",type:"text",onPressEnter:function(){},onKeyDown:function(){}},c.propTypes={type:h["default"].PropTypes.string,id:h["default"].PropTypes.oneOfType([h["default"].PropTypes.string,h["default"].PropTypes.number]),size:h["default"].PropTypes.oneOf(["small","default","large"]),disabled:h["default"].PropTypes.bool,value:h["default"].PropTypes.any,defaultValue:h["default"].PropTypes.any,className:h["default"].PropTypes.string,addonBefore:h["default"].PropTypes.node,addonAfter:h["default"].PropTypes.node,prefixCls:h["default"].PropTypes.string,onPressEnter:h["default"].PropTypes.func,onKeyDown:h["default"].PropTypes.func},p);t["default"]=m,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){var t,n=e.span,r=e.order,i=e.offset,u=e.push,p=e.pull,d=e.className,h=e.children,y=a(e,["span","order","offset","push","pull","className","children"]),v={};["xs","sm","md","lg"].forEach(function(t){var n,r={};"number"==typeof e[t]?r.span=e[t]:"object"===l(e[t])&&(r=e[t]||{}),v=s({},v,(n={},o(n,"col-"+t+"-"+r.span,void 0!==r.span),o(n,"col-"+t+"-order-"+r.order,r.order),o(n,"col-"+t+"-offset-"+r.offset,r.offset),o(n,"col-"+t+"-push-"+r.push,r.push),o(n,"col-"+t+"-pull-"+r.pull,r.pull),n))});var m=(0,f["default"])(s((t={},o(t,"col-"+n,void 0!==n),o(t,"col-order-"+r,r),o(t,"col-offset-"+i,i),o(t,"col-push-"+u,u),o(t,"col-pull-"+p,p),o(t,d,!!d),t),v));return c["default"].createElement("div",s({},y,{className:m}),h)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){ var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t["default"]=i;var u=n(1),c=r(u),p=n(2),f=r(p),d=u.PropTypes.oneOfType([u.PropTypes.string,u.PropTypes.number]),h=u.PropTypes.oneOfType([u.PropTypes.object,u.PropTypes.number]);i.propTypes={span:d,order:d,offset:d,push:d,pull:d,className:u.PropTypes.string,children:u.PropTypes.node,xs:h,sm:h,md:h,lg:h},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var c,p,f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=n(1),h=r(d),y=n(2),v=r(y),m=(p=c=function(e){function t(){return s(this,t),l(this,e.apply(this,arguments))}return u(t,e),t.prototype.render=function(){var e,t=this.props,n=t.type,r=t.justify,o=t.align,s=t.className,l=t.gutter,u=t.style,c=t.children,p=i(t,["type","justify","align","className","gutter","style","children"]),y=(0,v["default"])((e={row:!0},a(e,"row-"+n,n),a(e,"row-"+n+"-"+r,r),a(e,"row-"+n+"-"+o,o),a(e,s,s),e)),m=l>0?f({marginLeft:l/-2,marginRight:l/-2},u):u,g=d.Children.map(c,function(e){return null===e?null:(0,d.cloneElement)(e,{style:l>0?f({paddingLeft:l/2,paddingRight:l/2},e.props.style):e.props.style})});return h["default"].createElement("div",f({},p,{className:y,style:m}),g)},t}(h["default"].Component),c.defaultProps={gutter:0},c.propTypes={type:h["default"].PropTypes.string,align:h["default"].PropTypes.string,justify:h["default"].PropTypes.string,className:h["default"].PropTypes.string,children:h["default"].PropTypes.node,gutter:h["default"].PropTypes.number},p);t["default"]=m,e.exports=t["default"]},[441,36],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var l,u,c=n(1),p=r(c),f=n(56),d=(u=l=function(e){function t(){return a(this,t),i(this,e.apply(this,arguments))}return s(t,e),t.prototype.getChildContext=function(){return{antLocale:this.props.locale}},t.prototype.componentDidMount=function(){this.componentDidUpdate()},t.prototype.componentDidUpdate=function(){var e=this.props.locale;(0,f.changeConfirmLocale)(e&&e.Modal)},t.prototype.componentWillUnMount=function(){(0,f.changeConfirmLocale)()},t.prototype.render=function(){return p["default"].Children.only(this.props.children)},t}(p["default"].Component),l.propTypes={locale:p["default"].PropTypes.object},l.childContextTypes={antLocale:p["default"].PropTypes.object},u);t["default"]=d,e.exports=t["default"]},function(e,t){"use strict"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}function l(){}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=n(1),d=r(f),h=n(21),y=r(h),v=n(48),m=r(v),g=(c=u=function(e){function t(n){a(this,t);var r=i(this,e.call(this,n));return r.handleClick=function(e){r.setState({openKeys:[]}),r.props.onClick(e)},r.handleOpenKeys=function(e){r.setState({openKeys:e.openKeys}),r.props.onOpen(e)},r.handleCloseKeys=function(e){r.setState({openKeys:e.openKeys}),r.props.onClose(e)},r.state={openKeys:[]},r}return s(t,e),t.prototype.componentWillReceiveProps=function(e){"inline"===this.props.mode&&"inline"!==e.mode&&(this.switchModeFromInline=!0)},t.prototype.render=function(){var e=this.props.openAnimation||this.props.openTransitionName;if(!e)switch(this.props.mode){case"horizontal":e="slide-up";break;case"vertical":this.switchModeFromInline?(e="",this.switchModeFromInline=!1):e="zoom-big";break;case"inline":e=m["default"]}var t={},n=this.props.className+" "+this.props.prefixCls+"-"+this.props.theme;return t="inline"!==this.props.mode?{openKeys:this.state.openKeys,onClick:this.handleClick,onOpen:this.handleOpenKeys,onClose:this.handleCloseKeys,openTransitionName:e,className:n}:{openAnimation:e,className:n},d["default"].createElement(y["default"],p({},this.props,t))},t}(d["default"].Component),u.Divider=h.Divider,u.Item=h.Item,u.SubMenu=h.SubMenu,u.ItemGroup=h.ItemGroup,u.defaultProps={prefixCls:"ant-menu",onClick:l,onOpen:l,onClose:l,className:"",theme:"light"},c);t["default"]=g,e.exports=t["default"]},[441,270],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){return v=v||u["default"].newInstance({prefixCls:g,transitionName:"move-up",style:{defaultTop:y}})}function a(e){var t=arguments.length<=1||void 0===arguments[1]?h:arguments[1],n=arguments[2],r=arguments[3],a={info:"info-circle",success:"check-circle",error:"cross-circle",warning:"exclamation-circle",loading:"loading"}[n],i=o();return i.notice({key:m,duration:t,style:{},content:s["default"].createElement("div",{className:g+"-custom-content "+g+"-"+n},s["default"].createElement(p["default"],{type:a}),s["default"].createElement("span",null,e)),onClose:r}),function(){var e=m++;return function(){i.removeNotice(e)}}()}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),l=n(97),u=r(l),c=n(7),p=r(c),f=n(12),d=r(f),h=1.5,y=void 0,v=void 0,m=1,g="ant-message";t["default"]={info:function(e,t,n){return a(e,t,"info",n)},success:function(e,t,n){return a(e,t,"success",n)},error:function(e,t,n){return a(e,t,"error",n)},warn:function(e,t,n){return(0,d["default"])(!1,"message.warn() is departed, please use message.warning()"),a(e,t,"warning",n)},warning:function(e,t,n){return a(e,t,"warning",n)},loading:function(e,t,n){return a(e,t,"loading",n)},config:function(e){"top"in e&&(y=e.top),"duration"in e&&(h=e.duration),"prefixCls"in e&&(g=e.prefixCls)},destroy:function(){v&&(v.destroy(),v=null)}},e.exports=t["default"]},[441,271],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(55),i=r(a),s=n(56),l=r(s);i["default"].info=function(e){var t=o({type:"info",iconType:"info-circle",okCancel:!1},e);return(0,l["default"])(t)},i["default"].success=function(e){var t=o({type:"success",iconType:"check-circle",okCancel:!1},e);return(0,l["default"])(t)},i["default"].error=function(e){var t=o({type:"error",iconType:"cross-circle",okCancel:!1},e);return(0,l["default"])(t)},i["default"].warning=function(e){var t=o({type:"warning",iconType:"exclamation-circle",okCancel:!1},e);return(0,l["default"])(t)},i["default"].confirm=function(e){var t=o({type:"confirm",okCancel:!0},e);return(0,l["default"])(t)},t["default"]=i["default"],e.exports=t["default"]},[443,272],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){return v?v:v=c["default"].newInstance({prefixCls:"ant-notification",style:{top:y,right:0}})}function a(e){var t=e.prefixCls||"ant-notification-notice",n=void 0;n=void 0===e.duration?m:e.duration;var r="";switch(e.icon){case"success":r="check-circle-o";break;case"info":r="info-circle-o";break;case"error":r="cross-circle-o";break;case"warning":r="exclamation-circle-o";break;default:r="info-circle"}o().notice({content:l["default"].createElement("div",{className:t+"-content "+(e.icon?t+"-with-icon":"")},e.icon?l["default"].createElement(f["default"],{className:t+"-icon "+t+"-icon-"+e.icon,type:r}):null,l["default"].createElement("div",{className:t+"-message"},e.message),l["default"].createElement("div",{className:t+"-description"},e.description),e.btn?l["default"].createElement("span",{className:t+"-btn"},e.btn):null),duration:n,closable:!0,onClose:e.onClose,key:e.key,style:{}})}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(1),l=r(s),u=n(97),c=r(u),p=n(7),f=r(p),d=n(12),h=r(d),y=24,v=void 0,m=45,g={open:function(e){a(e)},close:function(e){v&&v.removeNotice(e)},config:function(e){"top"in e&&(y=e.top),"duration"in e&&(m=e.duration)},destroy:function(){v&&(v.destroy(),v=null)}};["success","info","warning","error"].forEach(function(e){g[e]=function(t){return g.open(i({},t,{icon:e}))}}),g.warn=function(){(0,h["default"])(!1,"notification.warn() is departed, please use notification.warning()"),g.warning.apply(g,arguments)},t["default"]=g,e.exports=t["default"]},[441,273],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var l,u,c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=n(1),f=r(p),d=n(24),h=r(d),y=(u=l=function(e){function t(){return a(this,t),i(this,e.apply(this,arguments))}return s(t,e),t.prototype.render=function(){return f["default"].createElement(h["default"],c({size:"small"},this.props))},t}(f["default"].Component),l.Option=h["default"].Option,u);t["default"]=y,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var l,u,c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=n(1),f=r(p),d=n(355),h=r(d),y=n(24),v=r(y),m=n(198),g=r(m),b=n(200),P=r(b),O=(u=l=function(e){function t(){return a(this,t),i(this,e.apply(this,arguments))}return s(t,e),t.prototype.render=function(){var e=this.props.className,t=v["default"],n=void 0;return n=this.context.antLocale&&this.context.antLocale.Pagination?this.context.antLocale.Pagination:this.props.locale,"small"===this.props.size&&(e+=" mini",t=g["default"]),f["default"].createElement(h["default"],c({selectComponentClass:t,selectPrefixCls:"ant-select"},this.props,{locale:n,className:e}))},t}(f["default"].Component),l.defaultProps={locale:P["default"],className:"",prefixCls:"ant-pagination"},l.contextTypes={antLocale:f["default"].PropTypes.object},u);t["default"]=O,e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(99)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=n(1),d=r(f),h=n(34),y=r(h),v=n(7),m=r(v),g=n(15),b=r(g),P=n(30),O=r(P),C=(0,O["default"])(),T="ant-popover",w=function(){},x=(c=u=function(e){function t(n){i(this,t);var r=s(this,e.call(this,n));return r.confirm=function(){r.setVisible(!1),r.props.onConfirm.call(r)},r.cancel=function(){r.setVisible(!1),r.props.onCancel.call(r)},r.onVisibleChange=function(e){r.setVisible(e)},r.state={visible:!1},r}return l(t,e),t.prototype.componentWillReceiveProps=function(e){"visible"in e&&this.setState({visible:e.visible})},t.prototype.setVisible=function(e){"visible"in this.props||this.setState({visible:e}),this.props.onVisibleChange(e)},t.prototype.render=function(){var e=this.props,t=e.title,n=e.placement,r=e.overlayStyle,o=e.trigger,i=a(e,["title","placement","overlayStyle","trigger"]),s=this.props,l=s.okText,u=s.cancelText;this.context.antLocale&&this.context.antLocale.Popconfirm&&(l=l||this.context.antLocale.Popconfirm.okText,u=u||this.context.antLocale.Popconfirm.cancelText);var c=d["default"].createElement("div",null,d["default"].createElement("div",{className:T+"-inner-content"},d["default"].createElement("div",{className:T+"-message"},d["default"].createElement(m["default"],{type:"exclamation-circle"}),d["default"].createElement("div",{className:T+"-message-title"},t)),d["default"].createElement("div",{className:T+"-buttons"},d["default"].createElement(b["default"],{onClick:this.cancel,type:"ghost",size:"small"},u||"\u53d6\u6d88"),d["default"].createElement(b["default"],{onClick:this.confirm,type:"primary",size:"small"},l||"\u786e\u5b9a"))));return d["default"].createElement(y["default"],p({},i,{placement:n,builtinPlacements:C,overlayStyle:r,prefixCls:T,onVisibleChange:this.onVisibleChange,transitionName:this.props.transitionName,visible:this.state.visible,trigger:o,overlay:c}),this.props.children)},t}(d["default"].Component),u.defaultProps={transitionName:"zoom-big",placement:"top",trigger:"click",overlayStyle:{},onConfirm:w,onCancel:w,onVisibleChange:w},u.contextTypes={antLocale:d["default"].PropTypes.object},c);t["default"]=x,e.exports=t["default"]},function(e,t,n){"use strict";n(3),n(59)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var l,u,c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=n(1),f=r(p),d=n(34),h=r(d),y=n(30),v=r(y),m=n(12),g=r(m),b=(0,v["default"])(),P=(u=l=function(e){function t(){return a(this,t),i(this,e.apply(this,arguments))}return s(t,e),t.prototype.render=function(){return f["default"].createElement(h["default"],c({transitionName:this.props.transitionName,builtinPlacements:b,ref:"tooltip"},this.props,{overlay:this.getOverlay()}),this.props.children)},t.prototype.getPopupDomNode=function(){return this.refs.tooltip.getPopupDomNode()},t.prototype.componentDidMount=function(){"overlay"in this.props&&(0,g["default"])(!1,"`overlay` prop of Popover is deprecated, use `content` instead.")},t.prototype.getOverlay=function(){var e=this.props,t=e.title,n=e.prefixCls,r=e.overlay,o=e.content;return f["default"].createElement("div",null,t&&f["default"].createElement("div",{className:n+"-title"},t),f["default"].createElement("div",{className:n+"-inner-content"},o||r))},t}(f["default"].Component),l.defaultProps={prefixCls:"ant-popover",placement:"top",transitionName:"zoom-big",trigger:"hover",mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayStyle:{}},u);t["default"]=P,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var c,p,f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=n(1),h=r(d),y=n(7),v=r(y),m=n(357),g=n(2),b=r(g),P={normal:"#2db7f5",exception:"#ff5500",success:"#87d068"},O=(p=c=function(e){function t(){return s(this,t),l(this,e.apply(this,arguments))}return u(t,e),t.prototype.render=function(){var e,t=this.props,n=t.prefixCls,r=t.status,o=t.format,s=t.percent,l=t.trailColor,u=t.type,c=t.strokeWidth,p=t.width,d=t.className,y=t.showInfo,g=i(t,["prefixCls","status","format","percent","trailColor","type","strokeWidth","width","className","showInfo"]),O=parseInt(s,10)>=100&&!("status"in this.props)?"success":r||"normal",C=void 0,T=void 0,w=o||function(e){return e+"%"};if(y){var x=void 0,E="circle"===u?"":"-circle";x="exception"===O?o?w(s):h["default"].createElement(v["default"],{type:"cross"+E}):"success"===O?o?w(s):h["default"].createElement(v["default"],{type:"check"+E}):w(s),C=h["default"].createElement("span",{className:n+"-text"},x)}if("line"===u){var S={width:s+"%",height:c||10};T=h["default"].createElement("div",null,h["default"].createElement("div",{className:n+"-outer"},h["default"].createElement("div",{className:n+"-inner"},h["default"].createElement("div",{className:n+"-bg",style:S}))),C)}else if("circle"===u){var k=p||132,N={width:k,height:k,fontSize:.16*k+6};T=h["default"].createElement("div",{className:n+"-inner",style:N},h["default"].createElement(m.Circle,{percent:s,strokeWidth:c||6,strokeColor:P[O],trailColor:l}),C)}var _=(0,b["default"])((e={},a(e,""+n,!0),a(e,n+"-"+u,!0),a(e,n+"-status-"+O,!0),a(e,n+"-show-info",y),a(e,d,!!d),e));return h["default"].createElement("div",f({},g,{className:_}),T)},t}(h["default"].Component),c.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:"#f3f3f3",prefixCls:"ant-progress"},c.propTypes={status:d.PropTypes.oneOf(["normal","exception","active","success"]),type:d.PropTypes.oneOf(["line","circle"]),showInfo:d.PropTypes.bool,percent:d.PropTypes.number,width:d.PropTypes.number,strokeWidth:d.PropTypes.number,trailColor:d.PropTypes.string,format:d.PropTypes.func},p);t["default"]=O,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var l=n(1),u=r(l),c=n(360),p=r(c),f=n(12),d=r(f),h=function(e){function t(){return a(this,t),i(this,e.apply(this,arguments))}return s(t,e),t.prototype.componentDidMount=function(){(0,d["default"])(!1,"`QueueAnim` is deprecated, you can import QueueAnim from 'rc-queue-anim' directly.The Demo will be moved to http://motion.ant.design/#/component/queue-anim")},t.prototype.render=function(){return u["default"].createElement(p["default"],this.props)},t}(u["default"].Component);t["default"]=h,e.exports=t["default"]},189,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}function u(e){var t=null,n=!1;return h["default"].Children.forEach(e,function(e){e&&e.props&&e.props.checked&&(t=e.props.value,n=!0)}),n?{value:t}:void 0}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var c,p,f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=n(1),h=r(d),y=n(2),v=r(y),m=n(32),g=r(m),b=n(62),P=r(b),O=(p=c=function(e){function t(n){i(this,t);var r=s(this,e.call(this,n));r.onRadioChange=function(e){"value"in r.props||r.setState({value:e.target.value}),r.props.onChange(e)};var o=void 0;if("value"in n)o=n.value;else if("defaultValue"in n)o=n.defaultValue;else{var a=u(n.children);o=a&&a.value}return r.state={value:o},r}return l(t,e),t.prototype.componentWillReceiveProps=function(e){if("value"in e)this.setState({value:e.value});else{var t=u(e.children);t&&this.setState({value:t.value})}},t.prototype.render=function(){var e,t=this,n=this.props,r=h["default"].Children.map(n.children,function(e){if(e&&(e.type===g["default"]||e.type===P["default"])&&e.props){var n={};return"key"in e||"string"!=typeof e.props.value||(n.key=e.props.value),h["default"].cloneElement(e,f({},n,e.props,{onChange:t.onRadioChange,checked:t.state.value===e.props.value,disabled:e.props.disabled||t.props.disabled}))}return e}),o=(0,v["default"])((e={},a(e,n.prefixCls,!0),a(e,n.prefixCls+"-"+n.size,n.size),e));return h["default"].createElement("div",{className:o,style:n.style},r)},t}(h["default"].Component),c.defaultProps={prefixCls:"ant-radio-group",disabled:!1,onChange:function(){}},p);t["default"]=O,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var l,u,c=n(1),p=r(c),f=n(366),d=r(f),h=(u=l=function(e){function t(){return a(this,t),i(this,e.apply(this,arguments))}return s(t,e),t.prototype.render=function(){return p["default"].createElement(d["default"],this.props)},t}(p["default"].Component),l.propTypes={prefixCls:c.PropTypes.string},l.defaultProps={prefixCls:"ant-rate"},u);t["default"]=h,e.exports=t["default"]},[441,278],function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(54);t["default"]=r.Row,e.exports=t["default"]},165,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p=n(1),f=r(p),d=n(379),h=r(d),y=(c=u=function(e){function t(){return i(this,t),s(this,e.apply(this,arguments))}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.isIncluded,n=e.marks,r=e.index,o=e.defaultIndex,i=a(e,["isIncluded","marks","index","defaultIndex"]);return void 0!==t&&(i.included=t),Array.isArray(n)?(i.min=0,i.max=n.length-1,i.step=1,void 0!==r&&(i.value=r),void 0!==o&&(i.defaultValue=o),i.marks={},n.forEach(function(e,t){i.marks[t]=e})):i.marks=n,f["default"].createElement(h["default"],i)},t}(f["default"].Component),u.defaultProps={prefixCls:"ant-slider",tipTransitionName:"zoom-down"},c);t["default"]=y,e.exports=t["default"]},function(e,t,n){"use strict";n(3),n(280),n(68)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var l,u,c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=n(1),f=r(p),d=n(382),h=r(d),y=(u=l=function(e){function t(){return a(this,t),i(this,e.apply(this,arguments))}return s(t,e), t.prototype.render=function(){var e=this.props.maxDescriptionWidth;return"vertical"===this.props.direction&&(e="auto"),f["default"].createElement(h["default"],c({},this.props,{maxDescriptionWidth:e}))},t}(f["default"].Component),l.Step=h["default"].Step,l.defaultProps={prefixCls:"ant-steps",iconPrefix:"ant",maxDescriptionWidth:100,current:0},u);t["default"]=y,e.exports=t["default"]},[441,282],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=n(384),d=r(f),h=n(1),y=r(h),v=n(2),m=r(v),g=(c=u=function(e){function t(){return i(this,t),s(this,e.apply(this,arguments))}return l(t,e),t.prototype.render=function(){var e,t=this.props,n=t.prefixCls,r=t.size,o=t.className,i=(0,m["default"])((e={},a(e,o,!!o),a(e,n+"-small","small"===r),e));return y["default"].createElement(d["default"],p({className:i},this.props))},t}(y["default"].Component),u.defaultProps={prefixCls:"ant-switch"},c);t["default"]=g,e.exports=t["default"]},[441,283],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var l,u,c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},p=n(1),f=r(p),d=n(21),h=r(d),y=n(51),v=r(y),m=n(7),g=r(m),b=n(17),P=r(b),O=(u=l=function(e){function t(n){a(this,t);var r=i(this,e.call(this,n));return r.setSelectedKeys=function(e){var t=e.selectedKeys;r.setState({selectedKeys:t})},r.handleClearFilters=function(){r.setState({selectedKeys:[]},r.handleConfirm)},r.handleConfirm=function(){r.setState({visible:!1}),r.props.confirmFilter(r.props.column,r.state.selectedKeys)},r.onVisibleChange=function(e){r.setState({visible:e}),e||r.props.confirmFilter(r.props.column,r.state.selectedKeys)},r.handleMenuItemClick=function(e){if(!(e.keyPath.length<=1)){var t=r.state.keyPathOfSelectedItem;r.state.selectedKeys.indexOf(e.key)>=0?delete t[e.key]:t[e.key]=e.keyPath,r.setState({keyPathOfSelectedItem:t})}},r.state={selectedKeys:r.props.selectedKeys,keyPathOfSelectedItem:{},visible:!1},r}return s(t,e),t.prototype.componentWillReceiveProps=function(e){this.setState({selectedKeys:e.selectedKeys})},t.prototype.renderMenuItem=function(e){return f["default"].createElement(d.Item,{key:e.value},f["default"].createElement(P["default"],{checked:this.state.selectedKeys.indexOf(e.value.toString())>=0}),f["default"].createElement("span",null,e.text))},t.prototype.renderMenus=function(e){var t=this,n=e.map(function(e){if(e.children&&e.children.length>0){var n=function(){var n=t.state.keyPathOfSelectedItem,r=Object.keys(n).some(function(t){var r=n[t];return r.indexOf(e.value)>=0}),o=r?"ant-dropdown-submenu-contain-selected":"";return{v:f["default"].createElement(d.SubMenu,{title:e.text,className:o,key:e.value.toString()},e.children.map(function(e){return t.renderMenuItem(e)}))}}();if("object"===("undefined"==typeof n?"undefined":c(n)))return n.v}return t.renderMenuItem(e)});return n},t.prototype.render=function(){var e=this.props,t=e.column,n=e.locale,r=!0;"filterMultiple"in t&&(r=t.filterMultiple);var o=f["default"].createElement("div",{className:"ant-table-filter-dropdown"},f["default"].createElement(h["default"],{multiple:r,onClick:this.handleMenuItemClick,prefixCls:"ant-dropdown-menu",onSelect:this.setSelectedKeys,onDeselect:this.setSelectedKeys,selectedKeys:this.state.selectedKeys},this.renderMenus(t.filters)),f["default"].createElement("div",{className:"ant-table-filter-dropdown-btns"},f["default"].createElement("a",{className:"ant-table-filter-dropdown-link confirm",onClick:this.handleConfirm},n.filterConfirm),f["default"].createElement("a",{className:"ant-table-filter-dropdown-link clear",onClick:this.handleClearFilters},n.filterReset))),a="";return this.props.selectedKeys.length>0&&(a="ant-table-filter-selected"),f["default"].createElement(v["default"],{trigger:["click"],overlay:o,visible:this.state.visible,onVisibleChange:this.onVisibleChange,closeOnSelect:!1},f["default"].createElement(g["default"],{title:n.filterTitle,type:"filter",className:a}))},t}(f["default"].Component),l.defaultProps={handleFilter:function(){},column:null},u);t["default"]=O,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}function c(){}function p(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var f,d,h,y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=n(1),m=r(v),g=n(387),b=r(g),P=n(17),O=r(P),C=n(31),T=r(C),w=n(218),x=r(w),E=n(57),S=r(E),k=n(7),N=r(k),_=n(63),j=r(_),M=n(2),D=r(M),A=n(221),L={filterTitle:"\u7b5b\u9009",filterConfirm:"\u786e\u5b9a",filterReset:"\u91cd\u7f6e",emptyText:"\u6682\u65e0\u6570\u636e"},V={pageSize:10,onChange:c,onShowSizeChange:c},F=(d=f=function(e){function t(n){s(this,t);var r=l(this,e.call(this,n));h.call(r);var o=n.pagination||{};return r.state=y({selectedRowKeys:(n.rowSelection||{}).selectedRowKeys||[],filters:r.getFiltersFromColumns(),selectionDirty:!1},r.getSortStateFromColumns(),{pagination:r.hasPagination()?y({},V,o,{current:o.defaultCurrent||o.current||1}):{}}),r}return u(t,e),t.prototype.getDefaultSelection=function(){var e=this;return this.props.rowSelection&&this.props.rowSelection.getCheckboxProps?this.getFlatCurrentPageData().filter(function(t){return e.props.rowSelection.getCheckboxProps(t).defaultChecked}).map(function(t,n){return e.getRecordKey(t,n)}):[]},t.prototype.getLocale=function(){var e={};return this.context.antLocale&&this.context.antLocale.Table&&(e=this.context.antLocale.Table),y({},L,e,this.props.locale)},t.prototype.componentWillReceiveProps=function(e){var t=this;if("pagination"in e&&e.pagination!==!1&&this.setState(function(t){return{pagination:y({},V,t.pagination,e.pagination)}}),"dataSource"in e&&e.dataSource!==this.props.dataSource&&this.setState({selectionDirty:!1}),e.rowSelection&&"selectedRowKeys"in e.rowSelection&&this.setState({selectedRowKeys:e.rowSelection.selectedRowKeys||[]}),this.getSortOrderColumns(e.columns).length>0){var n=this.getSortStateFromColumns(e.columns);n.sortColumn===this.state.sortColumn&&n.sortOrder===this.state.sortOrder||this.setState(n)}var r=this.getFilteredValueColumns(e.columns);r.length>0&&!function(){var n=t.getFiltersFromColumns(e.columns),r=y({},t.state.filters);Object.keys(n).forEach(function(e){r[e]=n[e]}),t.isFiltersChanged(r)&&t.setState({filters:r})}()},t.prototype.setSelectedRowKeys=function(e){var t=this;if(!this.props.rowSelection||"selectedRowKeys"in this.props.rowSelection||this.setState({selectedRowKeys:e}),this.props.rowSelection&&this.props.rowSelection.onChange){var n=this.getFlatCurrentPageData(),r=n.filter(function(n,r){return e.indexOf(t.getRecordKey(n,r))>=0});this.props.rowSelection.onChange(e,r)}},t.prototype.hasPagination=function(){return this.props.pagination!==!1},t.prototype.isFiltersChanged=function(e){var t=this,n=!1;return Object.keys(e).length!==Object.keys(this.state.filters).length?n=!0:Object.keys(e).forEach(function(r){e[r]!==t.state.filters[r]&&(n=!0)}),n},t.prototype.getSortOrderColumns=function(e){return(e||this.props.columns||[]).filter(function(e){return"sortOrder"in e})},t.prototype.getFilteredValueColumns=function(e){return(e||this.props.columns||[]).filter(function(e){return"filteredValue"in e})},t.prototype.getFiltersFromColumns=function(e){var t=this,n={};return this.getFilteredValueColumns(e).forEach(function(e){n[t.getColumnKey(e)]=e.filteredValue}),n},t.prototype.getSortStateFromColumns=function(e){var t=this.getSortOrderColumns(e).filter(function(e){return e.sortOrder})[0];return t?{sortColumn:t,sortOrder:t.sortOrder}:{sortColumn:null,sortOrder:null}},t.prototype.getSorterFn=function(){var e=this.state,t=e.sortOrder,n=e.sortColumn;return t&&n&&"function"==typeof n.sorter?function(e,r){var o=n.sorter(e,r);return 0!==o?"descend"===t?-o:o:e.indexForSort-r.indexForSort}:void 0},t.prototype.toggleSortOrder=function(e,t){var n,r=this.state,o=r.sortColumn,a=r.sortOrder,s=this.isSortColumn(t);s?a===e?(a="",o=null):a=e:(a=e,o=t);var l={sortOrder:a,sortColumn:o};0===this.getSortOrderColumns().length&&this.setState(l),(n=this.props).onChange.apply(n,i(this.prepareParamsArguments(y({},this.state,l))))},t.prototype.renderSelectionRadio=function(e,t,n){var r=this,o=this.getRecordKey(t,n),a={};this.props.rowSelection.getCheckboxProps&&(a=this.props.rowSelection.getCheckboxProps.call(this,t));var i=void 0;return i=this.state.selectionDirty?this.state.selectedRowKeys.indexOf(o)>=0:this.state.selectedRowKeys.indexOf(o)>=0||this.getDefaultSelection().indexOf(o)>=0,m["default"].createElement(T["default"],{disabled:a.disabled,onClick:p,onChange:function(e){return r.handleRadioSelect(t,o,e)},value:o,checked:i})},t.prototype.getRecordKey=function(e,t){return this.props.rowKey?this.props.rowKey(e,t):e.key||t},t.prototype.renderRowSelection=function(){var e=this,t=this.props.columns.concat();if(this.props.rowSelection){var n=this.getFlatCurrentPageData().filter(function(t){return e.props.rowSelection.getCheckboxProps?!e.props.rowSelection.getCheckboxProps(t).disabled:!0}),r=void 0;r=n.length?this.state.selectionDirty?n.every(function(t,n){return e.state.selectedRowKeys.indexOf(e.getRecordKey(t,n))>=0}):n.every(function(t,n){return e.state.selectedRowKeys.indexOf(e.getRecordKey(t,n))>=0})||n.every(function(t){return e.props.rowSelection.getCheckboxProps&&e.props.rowSelection.getCheckboxProps(t).defaultChecked}):!1;var o=void 0;if("radio"===this.props.rowSelection.type)o={key:"selection-column",render:this.renderSelectionRadio,className:"ant-table-selection-column"};else{var a=n.every(function(t){return e.props.rowSelection.getCheckboxProps&&e.props.rowSelection.getCheckboxProps(t).disabled}),i=m["default"].createElement(O["default"],{checked:r,disabled:a,onChange:this.handleSelectAllRow});o={key:"selection-column",title:i,render:this.renderSelectionCheckBox,className:"ant-table-selection-column"}}t[0]&&"selection-column"===t[0].key?t[0]=o:t.unshift(o)}return t},t.prototype.getColumnKey=function(e,t){return e.key||e.dataIndex||t},t.prototype.isSortColumn=function(e){var t=this.state.sortColumn;return e&&t?this.getColumnKey(t)===this.getColumnKey(e):!1},t.prototype.renderColumnsDropdown=function(e){var t=this,n=this.state.sortOrder,r=this.getLocale();return e.map(function(e,o){var a=y({},e),i=t.getColumnKey(a,o),s=void 0,l=void 0;if(a.filters&&a.filters.length>0){var u=t.state.filters[i]||[];s=m["default"].createElement(x["default"],{locale:r,column:a,selectedKeys:u,confirmFilter:t.handleFilter})}if(a.sorter){var c=t.isSortColumn(a);c&&(a.className=a.className||"",n&&(a.className+=" ant-table-column-sort"));var p=c&&"ascend"===n,f=c&&"descend"===n;l=m["default"].createElement("div",{className:"ant-table-column-sorter"},m["default"].createElement("span",{className:"ant-table-column-sorter-up "+(p?"on":"off"),title:"\u2191",onClick:function(){return t.toggleSortOrder("ascend",a)}},m["default"].createElement(N["default"],{type:"caret-up"})),m["default"].createElement("span",{className:"ant-table-column-sorter-down "+(f?"on":"off"),title:"\u2193",onClick:function(){return t.toggleSortOrder("descend",a)}},m["default"].createElement(N["default"],{type:"caret-down"})))}return a.title=m["default"].createElement("span",null,a.title,l,s),a})},t.prototype.renderPagination=function(e){if(!this.hasPagination())return null;var t="default";this.state.pagination.size?t=this.state.pagination.size:"middle"!==this.props.size&&"small"!==this.props.size||(t="small");var n=this.state.pagination.total||(e||this.getLocalData()).length;return n>0?m["default"].createElement(S["default"],y({},this.state.pagination,{className:this.props.prefixCls+"-pagination",onChange:this.handlePageChange,total:n,size:t,onShowSizeChange:this.handleShowSizeChange})):null},t.prototype.prepareParamsArguments=function(e){var t=e.pagination,n=e.filters,r={};return e.sortColumn&&e.sortOrder&&(r.column=e.sortColumn,r.order=e.sortOrder,r.field=e.sortColumn.dataIndex,r.columnKey=this.getColumnKey(e.sortColumn)),[t,n,r]},t.prototype.findColumn=function(e){var t=this;return this.props.columns.filter(function(n){return t.getColumnKey(n)===e})[0]},t.prototype.getCurrentPageData=function(){var e=this.getLocalData(),t=void 0,n=void 0,r=this.state;return this.hasPagination()?(n=r.pagination.pageSize,t=r.pagination.current):(n=Number.MAX_VALUE,t=1),(e.length>n||n===Number.MAX_VALUE)&&(e=e.filter(function(e,r){return r>=(t-1)*n&&t*n>r})),e},t.prototype.getFlatCurrentPageData=function(){return(0,A.flatArray)(this.getCurrentPageData())},t.prototype.getLocalData=function(){var e=this,t=this.state,n=this.props.dataSource||[];n=n.slice(0);for(var r=0;r<n.length;r++)n[r].indexForSort=r;var o=this.getSorterFn();return o&&(n=n.sort(o)),t.filters&&Object.keys(t.filters).forEach(function(r){var o=e.findColumn(r);if(o){var a=t.filters[r]||[];0!==a.length&&(n=o.onFilter?n.filter(function(e){return a.some(function(t){return o.onFilter(t,e)})}):n)}}),n},t.prototype.render=function(){var e,t=this,n=this.getCurrentPageData(),r=this.renderRowSelection(),o=this.props.expandedRowRender&&this.props.expandIconAsCell!==!1,i=this.getLocale(),s=(0,D["default"])((e={},a(e,"ant-table-"+this.props.size,!0),a(e,"ant-table-bordered",this.props.bordered),a(e,this.props.className,!!this.props.className),e));r=this.renderColumnsDropdown(r),r=r.map(function(e,n){var r=y({},e);return r.key=t.getColumnKey(r,n),r});var l=void 0,u="";n&&0!==n.length||(l=m["default"].createElement("div",{className:"ant-table-placeholder"},m["default"].createElement(N["default"],{type:"frown"}),i.emptyText),u=" ant-table-empty");var c=m["default"].createElement("div",null,m["default"].createElement(b["default"],y({},this.props,{data:n,columns:r,className:s,expandIconColumnIndex:r[0]&&"selection-column"===r[0].key?1:0,expandIconAsCell:o})),l);if(this.props.loading){var p=this.hasPagination()&&n&&0!==n.length?"ant-table-with-pagination":"ant-table-without-pagination",f=p+" ant-table-spin-holder";c=m["default"].createElement(j["default"],{className:f},c)}return m["default"].createElement("div",{className:"clearfix"+u},c,this.renderPagination(n))},t}(m["default"].Component),f.propTypes={dataSource:m["default"].PropTypes.array,prefixCls:m["default"].PropTypes.string,useFixedHeader:m["default"].PropTypes.bool,rowSelection:m["default"].PropTypes.object,className:m["default"].PropTypes.string,size:m["default"].PropTypes.string,loading:m["default"].PropTypes.bool,bordered:m["default"].PropTypes.bool,onChange:m["default"].PropTypes.func,locale:m["default"].PropTypes.object},f.defaultProps={dataSource:[],prefixCls:"ant-table",useFixedHeader:!1,rowSelection:null,className:"",size:"large",loading:!1,bordered:!1,indentSize:20,onChange:c,locale:{}},f.contextTypes={antLocale:m["default"].PropTypes.object},h=function(){var e=this;this.handleFilter=function(t,n){var r=y({},e.state.filters,a({},e.getColumnKey(t),n)),o=e.props.columns.map(function(t){return e.getColumnKey(t)});Object.keys(r).forEach(function(e){o.indexOf(e)<0&&delete r[e]});var s={selectionDirty:!1},l=y({},r);e.getFilteredValueColumns().forEach(function(t){var n=e.getColumnKey(t);n&&delete l[n]}),Object.keys(l).length>0&&(s.filters=l),e.setState(s,function(){var t;(t=e.props).onChange.apply(t,i(e.prepareParamsArguments(y({},e.state,{selectionDirty:!1,filters:r}))))})},this.handleSelect=function(t,n,r){var o=r.target.checked,a=e.state.selectionDirty?[]:e.getDefaultSelection(),i=e.state.selectedRowKeys.concat(a),s=e.getRecordKey(t,n);if(o?i.push(e.getRecordKey(t,n)):i=i.filter(function(e){return s!==e}),e.setState({selectionDirty:!0}),e.setSelectedRowKeys(i),e.props.rowSelection.onSelect){var l=e.getFlatCurrentPageData(),u=l.filter(function(t,n){return i.indexOf(e.getRecordKey(t,n))>=0});e.props.rowSelection.onSelect(t,o,u)}},this.handleRadioSelect=function(t,n,r){var o=r.target.checked,a=e.state.selectionDirty?[]:e.getDefaultSelection(),i=e.state.selectedRowKeys.concat(a),s=e.getRecordKey(t,n);if(i=[s],e.setState({selectionDirty:!0}),e.setSelectedRowKeys(i),e.props.rowSelection.onSelect){var l=e.getFlatCurrentPageData(),u=l.filter(function(t,n){return i.indexOf(e.getRecordKey(t,n))>=0});e.props.rowSelection.onSelect(t,o,u)}},this.handleSelectAllRow=function(t){var n=t.target.checked,r=e.getFlatCurrentPageData(),o=e.state.selectionDirty?[]:e.getDefaultSelection(),a=e.state.selectedRowKeys.concat(o),i=r.filter(function(t){return!e.props.rowSelection.getCheckboxProps||!e.props.rowSelection.getCheckboxProps(t).disabled}).map(function(t,n){return e.getRecordKey(t,n)}),s=[];if(n?i.forEach(function(e){a.indexOf(e)<0&&(a.push(e),s.push(e))}):i.forEach(function(e){a.indexOf(e)>=0&&(a.splice(a.indexOf(e),1),s.push(e))}),e.setState({selectionDirty:!0}),e.setSelectedRowKeys(a),e.props.rowSelection.onSelectAll){var l=r.filter(function(t,n){return a.indexOf(e.getRecordKey(t,n))>=0}),u=r.filter(function(t,n){return s.indexOf(e.getRecordKey(t,n))>=0});e.props.rowSelection.onSelectAll(n,l,u)}},this.handlePageChange=function(t){var n,r=e.props,o=y({},e.state.pagination);t?o.current=t:o.current=o.current||1,o.onChange(o.current);var a={selectionDirty:!1,pagination:o};r.pagination&&"current"in r.pagination&&(a.pagination=y({},o,{current:e.state.pagination.current})),e.setState(a),(n=e.props).onChange.apply(n,i(e.prepareParamsArguments(y({},e.state,{selectionDirty:!1,pagination:o}))))},this.renderSelectionCheckBox=function(t,n,r){var o=e.getRecordKey(n,r),a=void 0;a=e.state.selectionDirty?e.state.selectedRowKeys.indexOf(o)>=0:e.state.selectedRowKeys.indexOf(o)>=0||e.getDefaultSelection().indexOf(o)>=0;var i={};return e.props.rowSelection.getCheckboxProps&&(i=e.props.rowSelection.getCheckboxProps.call(e,n)),m["default"].createElement(O["default"],{checked:a,disabled:i.disabled,onClick:p,onChange:function(t){return e.handleSelect(n,o,t)}})},this.handleShowSizeChange=function(t,n){var r,o=e.state.pagination;o.onShowSizeChange(t,n);var a=y({},o,{pageSize:n,current:t});e.setState({pagination:a}),(r=e.props).onChange.apply(r,i(e.prepareParamsArguments(y({},e.state,{pagination:a}))))}},d);t["default"]=F,e.exports=t["default"]},function(e,t,n){"use strict";n(3),n(284),n(33),n(18),n(52),n(64),n(58)},function(e,t){"use strict";function n(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments.length<=1||void 0===arguments[1]?"children":arguments[1],n=[],o=function a(e){e.forEach(function(e){var o=r({},e);delete o[t],n.push(o),e[t]&&e[t].length>0&&a(e[t])})};return o(e),n}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.flatArray=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=n(392),d=r(f),h=n(1),y=r(h),v=n(2),m=r(v),g=n(7),b=r(g),P=(c=u=function(e){function t(){var n,r,o;i(this,t);for(var a=arguments.length,l=Array(a),u=0;a>u;u++)l[u]=arguments[u];return n=r=s(this,e.call.apply(e,[this].concat(l))),r.createNewTab=function(e){r.props.onEdit(e,"add")},r.removeTab=function(e,t){t.stopPropagation(),e&&r.props.onEdit(e,"remove")},r.handleChange=function(e){r.props.onChange(e)},o=n,s(r,o)}return l(t,e),t.prototype.render=function(){var e,t=this,n=this.props,r=n.prefixCls,o=n.size,i=n.tabPosition,s=n.animation,l=n.type,u=n.children,c=n.tabBarExtraContent,f=(0,m["default"])((e={},a(e,this.props.className,!!this.props.className),a(e,r+"-mini","small"===o||"mini"===o),a(e,r+"-vertical","left"===i||"right"===i),a(e,r+"-card",l.indexOf("card")>=0),a(e,r+"-"+l,!0),e));return("left"===i||"right"===i||l.indexOf("card")>=0)&&(s=null),"editable-card"===l&&(u=u.map(function(e,n){return(0,h.cloneElement)(e,{tab:y["default"].createElement("div",null,e.props.tab,y["default"].createElement(b["default"],{type:"cross",onClick:function(n){return t.removeTab(e.key,n)}})),key:e.key||n})}),c=y["default"].createElement("span",null,y["default"].createElement(b["default"],{type:"plus",className:r+"-new-tab",onClick:this.createNewTab}),c)),c=c?y["default"].createElement("div",{className:r+"-extra-content"},c):null,y["default"].createElement(d["default"],p({},this.props,{className:f,tabBarExtraContent:c,onChange:this.handleChange,animation:s}),u)},t}(y["default"].Component),u.TabPane=d["default"].TabPane,u.defaultProps={prefixCls:"ant-tabs",animation:"slide-horizontal",type:"line",onChange:function(){},onEdit:function(){}},c);t["default"]=P,e.exports=t["default"]},[441,285],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=n(1),d=r(f),h=n(26),y=r(h),v=n(102),m=r(v),g=n(65),b=r(g),P=n(2),O=r(P),C=n(11),T=r(C),w=(c=u=function(e){function t(){var n,r,o;i(this,t);for(var a=arguments.length,l=Array(a),u=0;a>u;u++)l[u]=arguments[u];return n=r=s(this,e.call.apply(e,[this].concat(l))),r.handleChange=function(e){r.props.onChange(e?new Date(e.getTime()):null,e?r.getFormatter().format(e):"")},o=n,s(r,o)}return l(t,e),t.prototype.getFormatter=function(){return new y["default"](this.props.format,this.getLocale().format)},t.prototype.getSizeClass=function(){var e="";return"large"===this.props.size?e=" ant-input-lg":"small"===this.props.size&&(e=" ant-input-sm"),e},t.prototype.parseTimeFromValue=function(e){if(e){if("string"==typeof e)return this.getFormatter().parse(e,{locale:this.getLocale().calendar,obeyCount:!0});if(e instanceof Date){var t=new T["default"](this.getLocale().calendar);return t.setTime(+e),t}}return e},t.prototype.getLocale=function(){var e=b["default"];return this.context.antLocale&&this.context.antLocale.TimePicker&&(e=this.context.antLocale.TimePicker),p({},e,this.props.locale)},t.prototype.render=function(){var e,t=this.getLocale(),n=p({},this.props);n.placeholder="placeholder"in this.props?n.placeholder:t.placeholder,n.defaultValue?n.defaultValue=this.parseTimeFromValue(n.defaultValue):delete n.defaultValue,n.value&&(n.value=this.parseTimeFromValue(n.value));var r=(0,O["default"])((e={},a(e,n.className,!!n.className),a(e,n.prefixCls+"-"+n.size,!!n.size),e));return n.format.indexOf("ss")<0&&(n.showSecond=!1),n.format.indexOf("HH")<0&&(n.showHour=!1),d["default"].createElement(m["default"],p({},n,{className:r,locale:t,formatter:this.getFormatter(),onChange:this.handleChange}))},t}(d["default"].Component),u.defaultProps={format:"HH:mm:ss",prefixCls:"ant-time-picker",onChange:function(){},locale:{},align:{offset:[0,-2]},disabled:!1,disabledHours:void 0,disabledMinutes:void 0,disabledSeconds:void 0,hideDisabledOptions:!1,placement:"bottomLeft",transitionName:"slide-up"},u.contextTypes={antLocale:d["default"].PropTypes.object},c);t["default"]=w,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var c,p,f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=n(1),h=r(d),y=n(2),v=r(y),m=n(67),g=r(m),b=(p=c=function(e){function t(){return s(this,t),l(this,e.apply(this,arguments))}return u(t,e),t.prototype.render=function(){var e,t=this.props,n=t.prefixCls,r=t.children,o=t.pending,s=t.className,l=i(t,["prefixCls","children","pending","className"]),u="boolean"==typeof o?null:o,c=(0,v["default"])((e={},a(e,n,!0),a(e,n+"-pending",!!o),a(e,s,s),e));return h["default"].createElement("ul",f({},l,{className:c}),h["default"].Children.map(r,function(e,t){return h["default"].cloneElement(e,{last:t===r.length-1})}),o?h["default"].createElement(g["default"],{pending:!!o},u):null)},t}(h["default"].Component),c.defaultProps={prefixCls:"ant-timeline"},p);t["default"]=b,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(225),a=r(o),i=n(67),s=r(i);a["default"].Item=s["default"],t["default"]=a["default"],e.exports=t["default"]},[441,287],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}function c(){}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var p,f,d=n(1),h=r(d),y=n(229),v=r(y),m=n(230),g=r(m),b=n(69),P=r(b),O=n(2),C=r(O),T=(f=p=function(e){function t(n){s(this,t);var r=l(this,e.call(this,n));return r.moveTo=function(e){var t=r.props.targetKeys,n=r.state,o=n.leftCheckedKeys,a=n.rightCheckedKeys,s="right"===e?o:a,l="right"===e?s.concat(t):t.filter(function(e){return!s.some(function(t){return e===t})});r.setState(i({},"right"===e?"leftCheckedKeys":"rightCheckedKeys",[])),r.props.onChange(l,e,s)},r.moveToLeft=function(){ return r.moveTo("left")},r.moveToRight=function(){return r.moveTo("right")},r.handleSelectAll=function(e){var t=r.splitDataSource(),n=t.leftDataSource,o=t.rightDataSource,a=r.state,s=a.leftFilter,l=a.rightFilter,u="left"===e?n:o,c="left"===e?s:l,p=r.getGlobalCheckStatus(e),f="all"===p?[]:r.filterDataSource(u,c).map(function(e){return e.key});r.setState(i({},e+"CheckedKeys",f))},r.handleLeftSelectAll=function(){return r.handleSelectAll("left")},r.handleRightSelectAll=function(){return r.handleSelectAll("right")},r.handleFilter=function(e,t){var n;r.setState((n={},i(n,e+"CheckedKeys",[]),i(n,e+"Filter",t.target.value),n))},r.handleLeftFilter=function(e){return r.handleFilter("left",e)},r.handleRightFilter=function(e){return r.handleFilter("right",e)},r.handleClear=function(e){r.setState(i({},e+"Filter",""))},r.handleLeftClear=function(){return r.handleClear("left")},r.handleRightClear=function(){return r.handleClear("right")},r.handleSelect=function(e,t,n){var o=r.state,a=o.leftCheckedKeys,s=o.rightCheckedKeys,l="left"===e?a:s,u=void 0;l.forEach(function(e,n){e===t.key&&(u=n)}),u>-1&&l.splice(u,1),n&&l.push(t.key),r.setState(i({},e+"CheckedKeys",l))},r.handleLeftSelect=function(e,t){return r.handleSelect("left",e,t)},r.handleRightSelect=function(e,t){return r.handleSelect("right",e,t)},r.state={leftFilter:"",rightFilter:"",leftCheckedKeys:[],rightCheckedKeys:[]},r}return u(t,e),t.prototype.splitDataSource=function(){var e=this.props,t=e.targetKeys,n=e.dataSource,r=[].concat(a(n)),o=[];return t.length>0&&t.forEach(function(e){o.push(r.filter(function(t,n){return t.key===e?(r.splice(n,1),!0):!1})[0])}),{leftDataSource:r,rightDataSource:o}},t.prototype.getGlobalCheckStatus=function(e){var t=this.splitDataSource(),n=t.leftDataSource,r=t.rightDataSource,o=this.state,a=o.leftFilter,i=o.rightFilter,s=o.leftCheckedKeys,l=o.rightCheckedKeys,u="left"===e?n:r,c="left"===e?a:i,p="left"===e?s:l,f=this.filterDataSource(u,c),d=void 0;return d=p.length>0?p.length<f.length?"part":"all":"none"},t.prototype.filterDataSource=function(e,t){var n=this;return e.filter(function(e){var r=n.props.render(e);return n.matchFilter(r,t)})},t.prototype.matchFilter=function(e,t){var n=new RegExp(t);return e.match(n)},t.prototype.render=function(){var e,t=this.props,n=t.prefixCls,r=t.titles,o=t.operations,a=t.showSearch,s=t.notFoundContent,l=t.searchPlaceholder,u=t.body,c=t.footer,p=t.listStyle,f=t.className,d=this.state,y=d.leftFilter,m=d.rightFilter,b=d.leftCheckedKeys,P=d.rightCheckedKeys,O=this.splitDataSource(),T=O.leftDataSource,w=O.rightDataSource,x=P.length>0,E=b.length>0,S=this.getGlobalCheckStatus("left"),k=this.getGlobalCheckStatus("right"),N=(0,C["default"])((e={},i(e,f,!!f),i(e,n,!0),e));return h["default"].createElement("div",{className:N},h["default"].createElement(v["default"],{titleText:r[0],dataSource:T,filter:y,style:p,checkedKeys:b,checkStatus:S,handleFilter:this.handleLeftFilter,handleClear:this.handleLeftClear,handleSelect:this.handleLeftSelect,handleSelectAll:this.handleLeftSelectAll,position:"left",render:this.props.render,showSearch:a,searchPlaceholder:l,notFoundContent:s,body:u,footer:c,prefixCls:n+"-list"}),h["default"].createElement(g["default"],{rightActive:E,rightArrowText:o[0],moveToRight:this.moveToRight,leftActive:x,leftArrowText:o[1],moveToLeft:this.moveToLeft,className:n+"-operation"}),h["default"].createElement(v["default"],{titleText:r[1],dataSource:w,filter:m,style:p,checkedKeys:P,checkStatus:k,handleFilter:this.handleRightFilter,handleClear:this.handleRightClear,handleSelect:this.handleRightSelect,handleSelectAll:this.handleRightSelectAll,position:"right",render:this.props.render,showSearch:a,searchPlaceholder:l,notFoundContent:s,body:u,footer:c,prefixCls:n+"-list"}))},t}(h["default"].Component),p.List=v["default"],p.Operation=g["default"],p.Search=P["default"],p.defaultProps={prefixCls:"ant-transfer",dataSource:[],render:c,targetKeys:[],onChange:c,titles:["\u6e90\u5217\u8868","\u76ee\u7684\u5217\u8868"],operations:[],showSearch:!1,body:c,footer:c},p.propTypes={prefixCls:d.PropTypes.string,dataSource:d.PropTypes.array,render:d.PropTypes.func,targetKeys:d.PropTypes.array,onChange:d.PropTypes.func,height:d.PropTypes.number,listStyle:d.PropTypes.object,className:d.PropTypes.string,titles:d.PropTypes.array,operations:d.PropTypes.array,showSearch:d.PropTypes.bool,searchPlaceholder:d.PropTypes.string,notFoundContent:d.PropTypes.node,body:d.PropTypes.func,footer:d.PropTypes.func},f);t["default"]=T,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}function u(){}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var c,p,f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=n(1),h=r(d),y=n(17),v=r(y),m=n(69),g=r(m),b=n(2),P=r(b),O=n(9),C=r(O),T=(p=c=function(e){function t(n){i(this,t);var r=s(this,e.call(this,n));return r.handleSelectAll=function(){r.props.handleSelectAll()},r.handleSelect=function(e){var t=r.props.checkedKeys,n=t.some(function(t){return t===e.key});r.props.handleSelect(e,!n)},r.handleFilter=function(e){r.props.handleFilter(e)},r.handleClear=function(){r.props.handleClear()},r.state={mounted:!1},r}return l(t,e),t.prototype.componentDidMount=function(){var e=this;setTimeout(function(){e.setState({mounted:!0})},0)},t.prototype.renderCheckbox=function(e){var t,n=e.prefixCls,r=(0,P["default"])((t={},a(t,n+"-checkbox",!0),a(t,n+"-checkbox-indeterminate",e.checkPart),a(t,n+"-checkbox-checked",!e.checkPart&&e.checked),a(t,n+"-checkbox-disabled",!!e.disabled),t)),o=null;return"boolean"!=typeof e.checkable&&(o=e.checkable),h["default"].createElement("span",{ref:"checkbox",className:r,onClick:!e.disabled&&this.handleSelectAll},o)},t.prototype.matchFilter=function(e,t){var n=new RegExp(t);return e.match(n)},t.prototype.render=function(){var e,t=this,n=this.props,r=n.prefixCls,o=n.dataSource,i=n.titleText,s=n.filter,l=n.checkedKeys,u=n.checkStatus,c=n.body,p=n.footer,d=n.showSearch,y=this.props,m=y.searchPlaceholder,b=y.notFoundContent,O=p(f({},this.props)),T=c(f({},this.props)),w=(0,P["default"])((e={},a(e,r,!0),a(e,r+"-with-footer",!!O),e)),x=o.filter(function(e){var n=t.props.render(e),r=t.matchFilter(n,s);return!!r}).map(function(e){var n=t.props.render(e);return h["default"].createElement("li",{onClick:function(){t.handleSelect(e)},key:e.key,title:n},h["default"].createElement(v["default"],{checked:l.some(function(t){return t===e.key})}),h["default"].createElement("span",null,n))}),E="\u6761";return this.context.antLocale&&this.context.antLocale.Transfer&&(E=o.length>1?this.context.antLocale.Transfer.itemsUnit:this.context.antLocale.Transfer.itemUnit,m=m||this.context.antLocale.Transfer.searchPlaceholder,b=b||this.context.antLocale.Transfer.notFoundContent),h["default"].createElement("div",f({className:w},this.props),h["default"].createElement("div",{className:r+"-header"},this.renderCheckbox({prefixCls:"ant-transfer",checked:"all"===u,checkPart:"part"===u,checkable:h["default"].createElement("span",{className:"ant-transfer-checkbox-inner"})}),h["default"].createElement("span",{className:r+"-header-selected"},h["default"].createElement("span",null,(l.length>0?l.length+"/":"")+o.length," ",E),h["default"].createElement("span",{className:r+"-header-title"},i))),T||h["default"].createElement("div",{className:d?r+"-body "+r+"-body-with-search":r+"-body"},d?h["default"].createElement("div",{className:r+"-body-search-wrapper"},h["default"].createElement(g["default"],{prefixCls:r+"-search",onChange:this.handleFilter,handleClear:this.handleClear,placeholder:m||"\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9",value:s})):null,h["default"].createElement(C["default"],{component:"ul",transitionName:this.state.mounted?r+"-highlight":"",transitionLeave:!1},x.length>0?x:h["default"].createElement("div",{className:r+"-body-not-found"},b||"\u5217\u8868\u4e3a\u7a7a"))),O?h["default"].createElement("div",{className:r+"-footer"},O):null)},t}(h["default"].Component),c.defaultProps={dataSource:[],titleText:"",showSearch:!1,handleFilter:u,handleSelect:u,handleSelectAll:u,render:u,body:u,footer:u},c.propTypes={prefixCls:d.PropTypes.string,dataSource:d.PropTypes.array,showSearch:d.PropTypes.bool,searchPlaceholder:d.PropTypes.string,titleText:d.PropTypes.string,style:d.PropTypes.object,handleFilter:d.PropTypes.func,handleSelect:d.PropTypes.func,handleSelectAll:d.PropTypes.func,render:d.PropTypes.func,body:d.PropTypes.func,footer:d.PropTypes.func},c.contextTypes={antLocale:h["default"].PropTypes.object},p);t["default"]=T,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}function l(){}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p=n(1),f=r(p),d=n(15),h=r(d),y=n(7),v=r(y),m=(c=u=function(e){function t(){return a(this,t),i(this,e.apply(this,arguments))}return s(t,e),t.prototype.render=function(){var e=this.props,t=e.moveToLeft,n=e.moveToRight,r=e.leftArrowText,o=e.rightArrowText,a=e.leftActive,i=e.rightActive,s=e.className,l=f["default"].createElement(h["default"],{type:"primary",size:"small",disabled:!a,onClick:t},f["default"].createElement("span",null,f["default"].createElement(v["default"],{type:"left"}),r)),u=f["default"].createElement(h["default"],{type:"primary",size:"small",disabled:!i,onClick:n},f["default"].createElement("span",null,o,f["default"].createElement(v["default"],{type:"right"})));return f["default"].createElement("div",{className:s},l,u)},t}(f["default"].Component),u.defaultProps={leftArrowText:"",rightArrowText:"",moveToLeft:l,moveToRight:l},u.propTypes={className:p.PropTypes.string,leftArrowText:p.PropTypes.string,rightArrowText:p.PropTypes.string,moveToLeft:p.PropTypes.func,moveToRight:p.PropTypes.func},c);t["default"]=m,e.exports=t["default"]},function(e,t,n){"use strict";n(3),n(289),n(18),n(23),n(16)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=n(1),d=r(f),h=n(407),y=r(h),v=n(2),m=r(v),g=(c=u=function(e){function t(){return i(this,t),s(this,e.apply(this,arguments))}return l(t,e),t.prototype.render=function(){var e,t=this.props,n=this.props,r=n.size,o=n.className,i=n.combobox,s=n.notFoundContent,l=n.prefixCls,u=(0,m["default"])((e={},a(e,l+"-lg","large"===r),a(e,l+"-sm","small"===r),a(e,o,!!o),e));i&&(s=null);var c=t.treeCheckable;return c&&(c=d["default"].createElement("span",{className:l+"-tree-checkbox-inner"})),d["default"].createElement(y["default"],p({},this.props,{treeCheckable:c,className:u,notFoundContent:s}))},t}(d["default"].Component),u.TreeNode=h.TreeNode,u.SHOW_ALL=h.SHOW_ALL,u.SHOW_PARENT=h.SHOW_PARENT,u.SHOW_CHILD=h.SHOW_CHILD,u.defaultProps={prefixCls:"ant-select",transitionName:"slide-up",choiceTransitionName:"zoom",showSearch:!1},c);t["default"]=g,e.exports=t["default"]},function(e,t,n){"use strict";n(3),n(290),n(25),n(18)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var l,u,c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=n(1),f=r(p),d=n(107),h=r(d),y=n(48),v=r(y),m=(u=l=function(e){function t(){return a(this,t),i(this,e.apply(this,arguments))}return s(t,e),t.prototype.render=function(){var e=this.props,t=e.checkable;return t&&(t=f["default"].createElement("span",{className:e.prefixCls+"-checkbox-inner"})),f["default"].createElement(h["default"],c({},e,{checkable:t}),this.props.children)},t}(f["default"].Component),l.TreeNode=h["default"].TreeNode,l.defaultProps={prefixCls:"ant-tree",checkable:!1,showIcon:!1,openAnimation:v["default"]},u);t["default"]=m,e.exports=t["default"]},function(e,t,n){"use strict";n(3),n(291),n(18)},function(e,t){"use strict";function n(e,t){var n=e.uid?"byUid":"byName",r=t.filter(function(t){return"byName"===n?t.name===e.name:t.uid===e.uid})[0];return r}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}function u(){}function c(){return!0}function p(e){return{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.filename||e.name,size:e.size,type:e.type,uid:e.uid,response:e.response,error:e.error,percent:0,originFileObj:e}}function f(){var e=.1,t=.01,n=.98;return function(r){var o=r;return o>=n?o:(o+=e,e-=t,.001>e&&(e=.001),100*o)}}function d(e){return g["default"].createElement(k,v({},e,{type:"drag",style:{height:e.height}}))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var h,y,v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=n(1),g=r(m),b=n(417),P=r(b),O=n(239),C=r(O),T=n(236),w=r(T),x=n(2),E=r(x),S="ant-upload",k=(y=h=function(e){function t(n){i(this,t);var r=s(this,e.call(this,n));return r.onStart=function(e){if(r.recentUploadStatus!==!1){var t=void 0,n=r.state.fileList.concat();e.length>0?(t=e.map(function(e){var t=p(e);return t.status="uploading",t}),n=n.concat(t)):(t=p(e),t.status="uploading",n.push(t)),r.onChange({file:t,fileList:n}),window.FormData||r.autoUpdateProgress(0,t)}},r.onSuccess=function(e,t){r.clearProgressTimer();try{"string"==typeof e&&(e=JSON.parse(e))}catch(n){}var o=r.state.fileList,a=(0,w["default"])(t,o);a&&(a.status="done",a.response=e,r.onChange({file:a,fileList:o}))},r.onProgress=function(e,t){var n=r.state.fileList,o=(0,w["default"])(t,n);o&&(o.percent=e.percent,r.onChange({event:e,file:o,fileList:r.state.fileList}))},r.onError=function(e,t,n){r.clearProgressTimer();var o=r.state.fileList,a=(0,w["default"])(n,o);a.error=e,a.response=t,a.status="error",r.handleRemove(a)},r.beforeUpload=function(e){return r.recentUploadStatus=r.props.beforeUpload(e),r.recentUploadStatus},r.handlePreview=function(e){"onPreview"in r.props&&r.props.onPreview(e)},r.handleManualRemove=function(e){e.status="removed","onRemove"in r.props?r.props.onRemove(e):r.handleRemove(e)},r.onChange=function(e){r.setState({fileList:e.fileList}),r.props.onChange(e)},r.onFileDrop=function(e){r.setState({dragState:e.type})},r.state={fileList:r.props.fileList||r.props.defaultFileList||[],dragState:"drop"},r}return l(t,e),t.prototype.autoUpdateProgress=function(e,t){var n=this,r=f(),o=0;this.progressTimer=setInterval(function(){o=r(o),n.onProgress({percent:o},t)},200)},t.prototype.removeFile=function(e){var t=this.state.fileList,n=(0,w["default"])(e,t),r=t.indexOf(n);return-1!==r?(t.splice(r,1),t):null},t.prototype.handleRemove=function(e){var t=this.removeFile(e);t&&this.onChange({file:e,fileList:t})},t.prototype.componentWillReceiveProps=function(e){"fileList"in e&&this.setState({fileList:e.fileList||[]})},t.prototype.clearProgressTimer=function(){clearInterval(this.progressTimer)},t.prototype.render=function(){var e,t=this.props.type||"select",n=v({},this.props,{onStart:this.onStart,onError:this.onError,onProgress:this.onProgress,onSuccess:this.onSuccess,beforeUpload:this.beforeUpload}),r=void 0;if(this.props.showUploadList&&(r=g["default"].createElement(C["default"],{listType:this.props.listType,items:this.state.fileList,onPreview:this.handlePreview,onRemove:this.handleManualRemove})),"drag"===t){var o=this.state.fileList.some(function(e){return"uploading"===e.status})?S+"-drag-uploading":"",i="dragover"===this.state.dragState?S+"-drag-hover":"";return g["default"].createElement("span",{className:this.props.className},g["default"].createElement("div",{className:S+" "+S+"-drag "+o+" "+i,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,onDragLeave:this.onFileDrop},g["default"].createElement(P["default"],n,g["default"].createElement("div",{className:S+"-drag-container"},this.props.children))),r)}var s=(0,E["default"])((e={},a(e,S,!0),a(e,S+"-select",!0),a(e,S+"-select-"+this.props.listType,!0),e));return"picture-card"===this.props.listType?g["default"].createElement("span",{className:this.props.className},r,g["default"].createElement("div",{className:s},g["default"].createElement(P["default"],n,this.props.children))):g["default"].createElement("span",{className:this.props.className},g["default"].createElement("div",{className:s},g["default"].createElement(P["default"],n,this.props.children)),r)},t}(g["default"].Component),h.Dragger=d,h.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",onChange:u,beforeUpload:c,showUploadList:!0,listType:"text",className:""},y);t["default"]=k,e.exports=t["default"]},function(e,t,n){"use strict";n(3),n(292),n(61)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=n(1),d=r(f),h=n(9),y=r(h),v=n(7),m=r(v),g=n(60),b=r(g),P=n(2),O=r(P),C="ant-upload",T=function(e,t){var n=new FileReader;n.onloadend=function(){t(n.result)},n.readAsDataURL(e)},w=(c=u=function(e){function t(){var n,r,o;i(this,t);for(var a=arguments.length,l=Array(a),u=0;a>u;u++)l[u]=arguments[u];return n=r=s(this,e.call.apply(e,[this].concat(l))),r.handleClose=function(e){r.props.onRemove(e)},r.handlePreview=function(e,t){return t.preventDefault(),r.props.onPreview(e)},o=n,s(r,o)}return l(t,e),t.prototype.componentDidUpdate=function(){var e=this;"picture"!==this.props.listType&&"picture-card"!==this.props.listType||this.props.items.forEach(function(t){"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&t.originFileObj instanceof File&&void 0===t.thumbUrl&&(t.thumbUrl="",T(t.originFileObj,function(n){t.thumbUrl=n,e.forceUpdate()}))})},t.prototype.render=function(){var e,t=this,n=this.props.items.map(function(e){var n,r=void 0,o=d["default"].createElement(m["default"],{type:"paper-clip"});"picture"!==t.props.listType&&"picture-card"!==t.props.listType||(o="uploading"===e.status||!e.thumbUrl&&!e.url?"picture-card"===t.props.listType?d["default"].createElement("div",{className:C+"-list-item-uploading-text"},"\u6587\u4ef6\u4e0a\u4f20\u4e2d"):d["default"].createElement(m["default"],{className:C+"-list-item-thumbnail",type:"picture"}):d["default"].createElement("a",{className:C+"-list-item-thumbnail",onClick:function(n){return t.handlePreview(e,n)},href:e.url,target:"_blank"},d["default"].createElement("img",{src:e.thumbUrl||e.url,alt:e.name}))),"uploading"===e.status&&(r=d["default"].createElement("div",{className:C+"-list-item-progress"},d["default"].createElement(b["default"],p({type:"line"},t.props.progressAttr,{percent:e.percent}))));var i=(0,O["default"])((n={},a(n,C+"-list-item",!0),a(n,C+"-list-item-"+e.status,!0),n));return d["default"].createElement("div",{className:i,key:e.uid},d["default"].createElement("div",{className:C+"-list-item-info"},o,e.url?d["default"].createElement("a",{onClick:function(n){return t.handlePreview(e,n)},href:e.url,target:"_blank",className:C+"-list-item-name"},e.name):d["default"].createElement("span",{className:C+"-list-item-name"},e.name),"picture-card"===t.props.listType&&"uploading"!==e.status?d["default"].createElement("span",null,d["default"].createElement("a",{onClick:function(n){return t.handlePreview(e,n)},href:e.url,target:"_blank",style:{pointerEvents:e.url?"":"none"}},d["default"].createElement(m["default"],{type:"eye-o"})),d["default"].createElement(m["default"],{type:"delete",onClick:function(){return t.handleClose(e)}})):d["default"].createElement(m["default"],{type:"cross",onClick:function(){return t.handleClose(e)}})),r)}),r=(0,O["default"])((e={},a(e,C+"-list",!0),a(e,C+"-list-"+this.props.listType,!0),e));return d["default"].createElement("div",{className:r},d["default"].createElement(y["default"],{transitionName:C+"-margin-top"},n))},t}(d["default"].Component),u.defaultProps={listType:"text",items:[],progressAttr:{strokeWidth:3,showInfo:!1}},c);t["default"]=w,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var l=n(1),u=r(l),c=n(12),p=r(c),f=function(e){function t(){return a(this,t),i(this,e.apply(this,arguments))}return s(t,e),t.prototype.componentDidMount=function(){(0,p["default"])(!1,"`Validation` is removed, please use `Form` which has supported validation after antd@0.12.0, or you can just import Validation from 'rc-form-validation' for compatibility")},t.prototype.render=function(){return null},t}(u["default"].Component);t["default"]=f,f.Validator=function(){},f.FieldMixin={setField:function(){}},e.exports=t["default"]},189,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=(n(162),n(161)),a=r(o),i=(n(231),n(228)),s=r(i),l=(n(189),n(188)),u=r(l),c=(n(158),n(157)),p=r(c),f=(n(66),n(224)),d=r(f),h=(n(156),n(154)),y=r(h),v=(n(16),n(53)),m=r(v),g=(n(179),n(178)),b=r(g),P=(n(64),n(63)),O=r(P),C=(n(165),n(164)),T=r(C),w=(n(211),n(210)),x=r(w),E=(n(180),n(7)),S=r(E),k=(n(23),n(15)),N=r(k),_=(n(227),n(226)),j=r(_),M=(n(191),n(190)),D=r(M),A=(n(147),n(146)),L=r(A),V=(n(238),n(237)),F=r(V),I=(n(233),n(232)),R=r(I),K=(n(235),n(234)),W=r(K),H=(n(241),n(240)),z=r(H),B=(n(144),n(143)),U=r(B),Y=(n(197),n(196)),q=r(Y),G=(n(33),n(31)),X=r(G),$=(n(206),n(205)),Q=r($),Z=(n(213),n(212)),J=r(Z),ee=(n(193),n(192)),te=r(ee),ne=(n(167),n(166)),re=r(ne),oe=(n(220),n(219)),ae=r(oe),ie=(n(18),n(17)),se=r(ie),le=(n(217),n(216)),ue=r(le),ce=(n(182),n(181)),pe=r(ce),fe=(n(215),n(214)),de=r(fe),he=(n(58),n(57)),ye=r(he),ve=(n(202),n(201)),me=r(ve),ge=(n(150),n(149)),be=r(ge),Pe=(n(25),n(24)),Oe=r(Pe),Ce=(n(59),n(203)),Te=r(Ce),we=(n(61),n(60)),xe=r(we),Ee=(n(52),n(51)),Se=r(Ee),ke=(n(195),n(194)),Ne=r(ke),_e=(n(223),n(222)),je=r(_e),Me=(n(160),n(159)),De=r(Me),Ae=(n(68),n(34)),Le=r(Ae),Ve=(n(172),n(171)),Fe=r(Ve),Ie=(n(142),n(141)),Re=r(Ie),Ke=(n(209),n(208)),We=r(Ke),He={Rate:We["default"],Affix:Re["default"],DatePicker:Fe["default"],Tooltip:Le["default"],Carousel:De["default"],Tabs:je["default"],Modal:Ne["default"],Dropdown:Se["default"],Progress:xe["default"],Popover:Te["default"],Select:Oe["default"],Breadcrumb:be["default"],Popconfirm:me["default"],Pagination:ye["default"],Steps:de["default"],InputNumber:pe["default"],Switch:ue["default"],Checkbox:se["default"],Table:ae["default"],Collapse:re["default"],message:te["default"],Slider:J["default"],QueueAnim:Q["default"],Radio:X["default"],notification:q["default"],Alert:U["default"],Validation:z["default"],Tree:W["default"],TreeSelect:R["default"],Upload:F["default"],Badge:L["default"],Menu:D["default"],Timeline:j["default"],Button:N["default"],Icon:S["default"],Row:x["default"],Col:T["default"],Spin:O["default"],Form:b["default"],Input:m["default"],Calendar:y["default"],TimePicker:d["default"],Card:p["default"],LocaleProvider:u["default"],Transfer:s["default"],Cascader:a["default"]};"undefined"!=typeof console&&console.warn&&console.warn("you are using prebuild antd,\nplease use https://github.com/ant-design/babel-plugin-antd to reduce app bundle size."),t["default"]=He,e.exports=t["default"]},function(e,t){var n=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=n},function(e,t){"use strict";function n(){var e=document.createElement("div"),t=e.style;"AnimationEvent"in window||delete a.animationend.animation,"TransitionEvent"in window||delete a.transitionend.transition;for(var n in a)if(a.hasOwnProperty(n)){var r=a[n];for(var o in r)if(o in t){i.push(r[o]);break}}}function r(e,t,n){e.addEventListener(t,n,!1)}function o(e,t,n){e.removeEventListener(t,n,!1)}Object.defineProperty(t,"__esModule",{value:!0});var a={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},i=[];"undefined"!=typeof window&&"undefined"!=typeof document&&n();var s={addEndEventListener:function(e,t){return 0===i.length?void window.setTimeout(t,0):void i.forEach(function(n){r(e,n,t)})},endEvents:i,removeEndEventListener:function(e,t){0!==i.length&&i.forEach(function(n){o(e,n,t)})}};t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r){var o=i["default"].clone(e),a={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+a.width>n.right&&(a.width-=o.left+a.width-n.right),r.adjustX&&o.left+a.width>n.right&&(o.left=Math.max(n.right-a.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+a.height>n.bottom&&(a.height-=o.top+a.height-n.bottom),r.adjustY&&o.top+a.height>n.bottom&&(o.top=Math.max(n.bottom-a.height,n.top)),i["default"].mix(o,a)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(20),i=r(a);t["default"]=o,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,a=e.height,i=void 0,s=void 0;return i=e.left,s=e.top,"c"===n?s+=a/2:"b"===n&&(s+=a),"c"===r?i+=o/2:"r"===r&&(i+=o),{left:i,top:s}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r,o){var a=void 0,s=void 0,l=void 0,u=void 0;return a={left:e.left,top:e.top},l=(0,i["default"])(t,n[1]),u=(0,i["default"])(e,n[0]),s=[u.left-l.left,u.top-l.top],{left:a.left-s[0]+r[0]-o[0],top:a.top-s[1]+r[1]-o[1] }}Object.defineProperty(t,"__esModule",{value:!0});var a=n(246),i=r(a);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=void 0,n=void 0,r=void 0;if(i["default"].isWindow(e)||9===e.nodeType){var o=i["default"].getWindow(e);t={left:i["default"].getWindowScrollLeft(o),top:i["default"].getWindowScrollTop(o)},n=i["default"].viewportWidth(o),r=i["default"].viewportHeight(o)}else t=i["default"].offset(e),n=i["default"].outerWidth(e),r=i["default"].outerHeight(e);return t.width=n,t.height=r,t}Object.defineProperty(t,"__esModule",{value:!0});var a=n(20),i=r(a);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){for(var t={left:0,right:1/0,top:0,bottom:1/0},n=(0,l["default"])(e),r=void 0,o=void 0,a=void 0,s=e.ownerDocument,u=s.defaultView||s.parentWindow,c=s.body,p=s.documentElement;n;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===n.clientWidth||n===c||n===p||"visible"===i["default"].css(n,"overflow")){if(n===c||n===p)break}else{var f=i["default"].offset(n);f.left+=n.clientLeft,f.top+=n.clientTop,t.top=Math.max(t.top,f.top),t.right=Math.min(t.right,f.left+n.clientWidth),t.bottom=Math.min(t.bottom,f.top+n.clientHeight),t.left=Math.max(t.left,f.left)}n=(0,l["default"])(n)}return r=i["default"].getWindowScrollLeft(u),o=i["default"].getWindowScrollTop(u),t.left=Math.max(t.left,r),t.top=Math.max(t.top,o),a={width:i["default"].viewportWidth(u),height:i["default"].viewportHeight(u)},t.right=Math.min(t.right,r+a.width),t.bottom=Math.min(t.bottom,o+a.height),t.top>=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null}Object.defineProperty(t,"__esModule",{value:!0});var a=n(20),i=r(a),s=n(72),l=r(s);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return e.left<n.left||e.left+t.width>n.right}function a(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function i(e,t,n){return e.left>n.right||e.left+t.width<n.left}function s(e,t,n){return e.top>n.bottom||e.top+t.height<n.top}function l(e,t,n){var r=[];return h["default"].each(e,function(e){r.push(e.replace(t,function(e){return n[e]}))}),r}function u(e,t){return e[t]=-e[t],e}function c(e,t){var n=void 0;return n=/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10),n||0}function p(e,t){e[0]=c(e[0],t.width),e[1]=c(e[1],t.height)}function f(e,t,n){var r=n.points,c=n.offset||[0,0],f=n.targetOffset||[0,0],d=n.overflow,y=n.target||t,v=n.source||e;c=[].concat(c),f=[].concat(f),d=d||{};var m={},b=0,O=(0,g["default"])(v),T=(0,C["default"])(v),x=(0,C["default"])(y);p(c,T),p(f,x);var E=(0,w["default"])(T,x,r,c,f),S=h["default"].merge(T,E);if(O&&(d.adjustX||d.adjustY)){if(d.adjustX&&o(E,T,O)){var k=l(r,/[lr]/gi,{l:"r",r:"l"}),N=u(c,0),_=u(f,0),j=(0,w["default"])(T,x,k,N,_);i(j,T,O)||(b=1,r=k,c=N,f=_)}if(d.adjustY&&a(E,T,O)){var k=l(r,/[tb]/gi,{t:"b",b:"t"}),N=u(c,1),_=u(f,1),j=(0,w["default"])(T,x,k,N,_);s(j,T,O)||(b=1,r=k,c=N,f=_)}b&&(E=(0,w["default"])(T,x,r,c,f),h["default"].mix(S,E)),m.adjustX=d.adjustX&&o(E,T,O),m.adjustY=d.adjustY&&a(E,T,O),(m.adjustX||m.adjustY)&&(S=(0,P["default"])(E,T,O,m))}return S.width!==T.width&&h["default"].css(v,"width",v.width()+S.width-T.width),S.height!==T.height&&h["default"].css(v,"height",v.height()+S.height-T.height),h["default"].offset(v,{left:S.left,top:S.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom}),{points:r,offset:c,targetOffset:f,overflow:m}}Object.defineProperty(t,"__esModule",{value:!0});var d=n(20),h=r(d),y=n(72),v=r(y),m=n(249),g=r(m),b=n(245),P=r(b),O=n(248),C=r(O),T=n(247),w=r(T);f.__getOffsetParent=v["default"],f.__getVisibleRectForElement=g["default"],t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t,n){n=n||{},9===t.nodeType&&(t=o.getWindow(t));var r=n.allowHorizontalScroll,a=n.onlyScrollIfNeeded,i=n.alignWithTop,s=n.alignWithLeft,l=n.offsetTop||0,u=n.offsetLeft||0,c=n.offsetBottom||0,p=n.offsetRight||0;r=void 0===r?!0:r;var f=o.isWindow(t),d=o.offset(e),h=o.outerHeight(e),y=o.outerWidth(e),v=void 0,m=void 0,g=void 0,b=void 0,P=void 0,O=void 0,C=void 0,T=void 0,w=void 0,x=void 0;f?(C=t,x=o.height(C),w=o.width(C),T={left:o.scrollLeft(C),top:o.scrollTop(C)},P={left:d.left-T.left-u,top:d.top-T.top-l},O={left:d.left+y-(T.left+w)+p,top:d.top+h-(T.top+x)+c},b=T):(v=o.offset(t),m=t.clientHeight,g=t.clientWidth,b={left:t.scrollLeft,top:t.scrollTop},P={left:d.left-(v.left+(parseFloat(o.css(t,"borderLeftWidth"))||0))-u,top:d.top-(v.top+(parseFloat(o.css(t,"borderTopWidth"))||0))-l},O={left:d.left+y-(v.left+g+(parseFloat(o.css(t,"borderRightWidth"))||0))+p,top:d.top+h-(v.top+m+(parseFloat(o.css(t,"borderBottomWidth"))||0))+c}),P.top<0||O.top>0?i===!0?o.scrollTop(t,b.top+P.top):i===!1?o.scrollTop(t,b.top+O.top):P.top<0?o.scrollTop(t,b.top+P.top):o.scrollTop(t,b.top+O.top):a||(i=void 0===i?!0:!!i,i?o.scrollTop(t,b.top+P.top):o.scrollTop(t,b.top+O.top)),r&&(P.left<0||O.left>0?s===!0?o.scrollLeft(t,b.left+P.left):s===!1?o.scrollLeft(t,b.left+O.left):P.left<0?o.scrollLeft(t,b.left+P.left):o.scrollLeft(t,b.left+O.left):a||(s=void 0===s?!0:!!s,s?o.scrollLeft(t,b.left+P.left):o.scrollLeft(t,b.left+O.left)))}var o=n(252);e.exports=r},function(e,t){"use strict";function n(e){var t=void 0,n=void 0,r=void 0,o=e.ownerDocument,a=o.body,i=o&&o.documentElement;return t=e.getBoundingClientRect(),n=t.left,r=t.top,n-=i.clientLeft||a.clientLeft||0,r-=i.clientTop||a.clientTop||0,{left:n,top:r}}function r(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;n=o.documentElement[r],"number"!=typeof n&&(n=o.body[r])}return n}function o(e){return r(e)}function a(e){return r(e,!0)}function i(e){var t=n(e),r=e.ownerDocument,i=r.defaultView||r.parentWindow;return t.left+=o(i),t.top+=a(i),t}function s(e,t,n){var r="",o=e.ownerDocument,a=n||o.defaultView.getComputedStyle(e,null);return a&&(r=a.getPropertyValue(t)||a[t]),r}function l(e,t){var n=e[T]&&e[T][t];if(O.test(n)&&!C.test(t)){var r=e.style,o=r[x],a=e[w][x];e[w][x]=e[T][x],r[x]="fontSize"===t?"1em":n||0,n=r.pixelLeft+E,r[x]=o,e[w][x]=a}return""===n?"auto":n}function u(e,t){for(var n=0;n<e.length;n++)t(e[n])}function c(e){return"border-box"===S(e,"boxSizing")}function p(e,t,n){var r={},o=e.style,a=void 0;for(a in t)t.hasOwnProperty(a)&&(r[a]=o[a],o[a]=t[a]);n.call(e);for(a in t)t.hasOwnProperty(a)&&(o[a]=r[a])}function f(e,t,n){var r=0,o=void 0,a=void 0,i=void 0;for(a=0;a<t.length;a++)if(o=t[a])for(i=0;i<n.length;i++){var s=void 0;s="border"===o?o+n[i]+"Width":o+n[i],r+=parseFloat(S(e,s))||0}return r}function d(e){return null!=e&&e==e.window}function h(e,t,n){if(d(e))return"width"===t?D.viewportWidth(e):D.viewportHeight(e);if(9===e.nodeType)return"width"===t?D.docWidth(e):D.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,a=S(e),i=c(e,a),s=0;(null==o||0>=o)&&(o=void 0,s=S(e,t),(null==s||Number(s)<0)&&(s=e.style[t]||0),s=parseFloat(s)||0),void 0===n&&(n=i?j:N);var l=void 0!==o||i,u=o||s;if(n===N)return l?u-f(e,["border","padding"],r,a):s;if(l){var p=n===_?-f(e,["border"],r,a):f(e,["margin"],r,a);return u+(n===j?0:p)}return s+f(e,k.slice(n),r,a)}function y(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=h.apply(void 0,n):p(e,A,function(){t=h.apply(void 0,n)}),t}function v(e,t,n){var r=n;{if("object"!==("undefined"==typeof t?"undefined":b(t)))return"undefined"!=typeof r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):S(e,t);for(var o in t)t.hasOwnProperty(o)&&v(e,o,t[o])}}function m(e,t){"static"===v(e,"position")&&(e.style.position="relative");var n=i(e),r={},o=void 0,a=void 0;for(a in t)t.hasOwnProperty(a)&&(o=parseFloat(v(e,a))||0,r[a]=o+t[a]-n[a]);v(e,r)}var g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},P=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,O=new RegExp("^("+P+")(?!px)[a-z%]+$","i"),C=/^(top|right|bottom|left)$/,T="currentStyle",w="runtimeStyle",x="left",E="px",S=void 0;"undefined"!=typeof window&&(S=window.getComputedStyle?s:l);var k=["margin","border","padding"],N=-1,_=2,j=1,M=0,D={};u(["Width","Height"],function(e){D["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],D["viewport"+e](n))},D["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,a=r.documentElement,i=a[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}});var A={position:"absolute",visibility:"hidden",display:"block"};u(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);D["outer"+t]=function(t,n){return t&&y(t,e,n?M:j)};var n="width"===e?["Left","Right"]:["Top","Bottom"];D[e]=function(t,r){if(void 0===r)return t&&y(t,e,N);if(t){var o=S(t),a=c(t);return a&&(r+=f(t,["padding","border"],n,o)),v(t,e,r)}}}),e.exports=g({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){return"undefined"==typeof t?i(e):void m(e,t)},isWindow:d,each:u,css:v,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);var r=e.overflow;if(r)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(d(e)){if(void 0===t)return o(e);window.scrollTo(t,a(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(d(e)){if(void 0===t)return a(e);window.scrollTo(o(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},D)},function(e,t,n){var r;!function(o,a,i){var s=window.matchMedia;"undefined"!=typeof e&&e.exports?e.exports=i(s):(r=function(){return a[o]=i(s)}.call(t,n,t,e),!(void 0!==r&&(e.exports=r)))}("enquire",this,function(e){"use strict";function t(e,t){var n,r=0,o=e.length;for(r;o>r&&(n=t(e[r],r),n!==!1);r++);}function n(e){return"[object Array]"===Object.prototype.toString.apply(e)}function r(e){return"function"==typeof e}function o(e){this.options=e,!e.deferSetup&&this.setup()}function a(t,n){this.query=t,this.isUnconditional=n,this.handlers=[],this.mql=e(t);var r=this;this.listener=function(e){r.mql=e,r.assess()},this.mql.addListener(this.listener)}function i(){if(!e)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!e("only all").matches}return o.prototype={setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},a.prototype={addHandler:function(e){var t=new o(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var n=this.handlers;t(n,function(t,r){return t.equals(e)?(t.destroy(),!n.splice(r,1)):void 0})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){t(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";t(this.handlers,function(t){t[e]()})}},i.prototype={register:function(e,o,i){var s=this.queries,l=i&&this.browserIsIncapable;return s[e]||(s[e]=new a(e,l)),r(o)&&(o={match:o}),n(o)||(o=[o]),t(o,function(t){s[e].addHandler(t)}),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},new i})},3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,function(e,t,n){"use strict";function r(e,t,n){return n+(h.isLeapYear(e)?u[t]:l[t])}function o(e){return e>=0?e%7:h.mod(e,7)}function a(e){var t=void 0,n=void 0,r=void 0,o=void 0,a=void 0,i=void 0,l=void 0,u=void 0,y=void 0;return t=e-1,a=s(t/d),n=h.mod(t,d),i=s(n/f),r=h.mod(n,f),l=s(r/p),o=h.mod(r,p),u=s(o/c),y=400*a+100*i+4*l+u,4!==i&&4!==u&&++y,y}var i=n(75),s=Math.floor,l=[0,31,59,90,120,151,181,212,243,273,304,334],u=[0,31,60,91,121,152,182,213,244,274,305,335],c=365,p=1461,f=25*p-1,d=4*f+1,h={};h=e.exports={each:function(e,t){for(var n=0,r=e.length;r>n&&t(e[n],n,e)!==!1;n++);},mix:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},isLeapYear:function(e){return 0!==(3&e)?!1:e%100!==0||e%400===0},mod:function(e,t){return e-t*s(e/t)},getFixedDate:function(e,t,n){var o=e-1;return c*o+s(o/4)-s(o/100)+s(o/400)+r(e,t,n)},getGregorianDateFromFixedDate:function(e){for(var t=a(e),n=h.getFixedDate(t,i.JANUARY,1),r=h.isLeapYear(t),s=r?u:l,c=e-n,p=void 0,f=0;f<s.length&&s[f]<=c;f++)p=f;var d=e-n-s[p]+1,y=o(e);return{year:t,month:p,dayOfMonth:d,dayOfWeek:y,isLeap:r}}}},function(e,t){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0};e.exports=function(e,t){for(var o=Object.getOwnPropertyNames(t),a=0;a<o.length;++a)if(!n[o[a]]&&!r[o[a]])try{e[o[a]]=t[o[a]]}catch(i){}return e}},function(e,t,n){(function(e,n){function r(e,t){return e.set(t[0],t[1]),e}function o(e,t){return e.add(t),e}function a(e,t){for(var n=-1,r=e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function i(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function s(e,t,n,r){var o=-1,a=e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}function l(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function u(e){return e&&e.Object===Object?e:null}function c(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function p(e,t){return e="number"==typeof e||ot.test(e)?+e:-1,t=null==t?Se:t,e>-1&&e%1==0&&t>e}function f(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function d(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function h(){}function y(e,t){return m(e,t)&&delete e[t]}function v(e,t){if(Lt){var n=e[t];return n===Ee?void 0:n}return gt.call(e,t)?e[t]:void 0}function m(e,t){return Lt?void 0!==e[t]:gt.call(e,t)}function g(e,t,n){e[t]=Lt&&void 0===n?Ee:n}function b(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function P(){this.__data__={hash:new h,map:jt?new jt:[],string:new h}}function O(e){var t=this.__data__;return ce(e)?y("string"==typeof e?t.string:t.hash,e):jt?t.map["delete"](e):j(t.map,e)}function C(e){var t=this.__data__;return ce(e)?v("string"==typeof e?t.string:t.hash,e):jt?t.map.get(e):M(t.map,e)}function T(e){var t=this.__data__;return ce(e)?m("string"==typeof e?t.string:t.hash,e):jt?t.map.has(e):D(t.map,e)}function w(e,t){var n=this.__data__;return ce(e)?g("string"==typeof e?n.string:n.hash,e,t):jt?n.map.set(e,t):L(n.map,e,t),this}function x(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function E(){this.__data__={array:[],map:null}}function S(e){var t=this.__data__,n=t.array;return n?j(n,e):t.map["delete"](e)}function k(e){var t=this.__data__,n=t.array;return n?M(n,e):t.map.get(e)}function N(e){var t=this.__data__,n=t.array;return n?D(n,e):t.map.has(e)}function _(e,t){var n=this.__data__,r=n.array;r&&(r.length<xe-1?L(r,e,t):(n.array=null,n.map=new b(r)));var o=n.map;return o&&o.set(e,t),this}function j(e,t){var n=A(e,t);if(0>n)return!1;var r=e.length-1;return n==r?e.pop():St.call(e,n,1),!0}function M(e,t){var n=A(e,t);return 0>n?void 0:e[n][1]}function D(e,t){return A(e,t)>-1}function A(e,t){for(var n=e.length;n--;)if(de(e[n][0],t))return n;return-1}function L(e,t,n){var r=A(e,t);0>r?e.push([t,n]):e[r][1]=n}function V(e,t,n){var r=e[t];gt.call(e,t)&&de(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function F(e,t){return e&&J(t,Te(t),e)}function I(e,t,n,r,o,i,s){var l;if(r&&(l=i?r(e,o,i,s):r(e)),void 0!==l)return l;if(!be(e))return e;var u=Bt(e);if(u){if(l=ie(e),!t)return Z(e,l)}else{var p=ae(e),f=p==De||p==Ae;if(Ut(e))return B(e,t);if(p==Fe||p==ke||f&&!i){if(c(e))return i?e:{};if(l=se(f?{}:e),!t)return ee(e,F(l,e))}else{if(!at[p])return i?e:{};l=le(e,p,I,t)}}s||(s=new x);var d=s.get(e);if(d)return d;if(s.set(e,l),!u)var h=n?te(e):Te(e);return a(h||e,function(o,a){h&&(a=o,o=e[a]),V(l,a,I(o,t,n,r,a,e,s))}),l}function R(e){return be(e)?xt(e):{}}function K(e,t,n){var r=t(e);return Bt(e)?r:i(r,n(e))}function W(e,t){return gt.call(e,t)||"object"==typeof e&&t in e&&null===re(e)}function H(e){return Nt(Object(e))}function z(e){return function(t){return null==t?void 0:t[e]}}function B(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function U(e){var t=new e.constructor(e.byteLength);return new Tt(t).set(new Tt(e)),t}function Y(e,t){var n=t?U(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function q(e,t,n){var o=t?n(f(e),!0):f(e);return s(o,r,new e.constructor)}function G(e){var t=new e.constructor(e.source,nt.exec(e));return t.lastIndex=e.lastIndex,t}function X(e,t,n){var r=t?n(d(e),!0):d(e);return s(r,o,new e.constructor)}function $(e){return Ht?Object(Ht.call(e)):{}}function Q(e,t){var n=t?U(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Z(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function J(e,t,n,r){n||(n={});for(var o=-1,a=t.length;++o<a;){var i=t[o],s=r?r(n[i],e[i],i,n,e):e[i];V(n,i,s)}return n}function ee(e,t){return J(e,oe(e),t)}function te(e){return K(e,Te,oe)}function ne(e,t){var n=e[t];return Oe(n)?n:void 0}function re(e){return kt(Object(e))}function oe(e){return wt(Object(e))}function ae(e){return bt.call(e)}function ie(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&gt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function se(e){return"function"!=typeof e.constructor||pe(e)?{}:R(re(e))}function le(e,t,n,r){var o=e.constructor;switch(t){case Be:return U(e);case _e:case je:return new o(+e);case Ue:return Y(e,r);case Ye:case qe:case Ge:case Xe:case $e:case Qe:case Ze:case Je:case et:return Q(e,r);case Le:return q(e,r,n);case Ve:case We:return new o(e);case Re:return G(e);case Ke:return X(e,r,n);case He:return $(e)}}function ue(e){var t=e?e.length:void 0;return ge(t)&&(Bt(e)||Ce(e)||he(e))?l(t,String):null}function ce(e){var t=typeof e;return"number"==t||"boolean"==t||"string"==t&&"__proto__"!=e||null==e}function pe(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||vt;return e===n}function fe(e){if(null!=e){try{return mt.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function de(e,t){return e===t||e!==e&&t!==t}function he(e){return ve(e)&&gt.call(e,"callee")&&(!Et.call(e,"callee")||bt.call(e)==ke)}function ye(e){return null!=e&&ge(zt(e))&&!me(e)}function ve(e){return Pe(e)&&ye(e)}function me(e){var t=be(e)?bt.call(e):"";return t==De||t==Ae}function ge(e){return"number"==typeof e&&e>-1&&e%1==0&&Se>=e}function be(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Pe(e){return!!e&&"object"==typeof e}function Oe(e){if(!be(e))return!1;var t=me(e)||c(e)?Pt:rt;return t.test(fe(e))}function Ce(e){return"string"==typeof e||!Bt(e)&&Pe(e)&&bt.call(e)==We}function Te(e){var t=pe(e);if(!t&&!ye(e))return H(e);var n=ue(e),r=!!n,o=n||[],a=o.length;for(var i in e)!W(e,i)||r&&("length"==i||p(i,a))||t&&"constructor"==i||o.push(i);return o}function we(e){return function(){return e}}var xe=200,Ee="__lodash_hash_undefined__",Se=9007199254740991,ke="[object Arguments]",Ne="[object Array]",_e="[object Boolean]",je="[object Date]",Me="[object Error]",De="[object Function]",Ae="[object GeneratorFunction]",Le="[object Map]",Ve="[object Number]",Fe="[object Object]",Ie="[object Promise]",Re="[object RegExp]",Ke="[object Set]",We="[object String]",He="[object Symbol]",ze="[object WeakMap]",Be="[object ArrayBuffer]",Ue="[object DataView]",Ye="[object Float32Array]",qe="[object Float64Array]",Ge="[object Int8Array]",Xe="[object Int16Array]",$e="[object Int32Array]",Qe="[object Uint8Array]",Ze="[object Uint8ClampedArray]",Je="[object Uint16Array]",et="[object Uint32Array]",tt=/[\\^$.*+?()[\]{}|]/g,nt=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[ke]=at[Ne]=at[Be]=at[Ue]=at[_e]=at[je]=at[Ye]=at[qe]=at[Ge]=at[Xe]=at[$e]=at[Le]=at[Ve]=at[Fe]=at[Re]=at[Ke]=at[We]=at[He]=at[Qe]=at[Ze]=at[Je]=at[et]=!0,at[Me]=at[De]=at[ze]=!1;var it={"function":!0,object:!0},st=it[typeof t]&&t&&!t.nodeType?t:void 0,lt=it[typeof e]&&e&&!e.nodeType?e:void 0,ut=lt&&lt.exports===st?st:void 0,ct=u(st&&lt&&"object"==typeof n&&n),pt=u(it[typeof self]&&self),ft=u(it[typeof window]&&window),dt=u(it[typeof this]&&this),ht=ct||ft!==(dt&&dt.window)&&ft||pt||dt||Function("return this")(),yt=Array.prototype,vt=Object.prototype,mt=Function.prototype.toString,gt=vt.hasOwnProperty,bt=vt.toString,Pt=RegExp("^"+mt.call(gt).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ot=ut?ht.Buffer:void 0,Ct=ht.Symbol,Tt=ht.Uint8Array,wt=Object.getOwnPropertySymbols,xt=Object.create,Et=vt.propertyIsEnumerable,St=yt.splice,kt=Object.getPrototypeOf,Nt=Object.keys,_t=ne(ht,"DataView"),jt=ne(ht,"Map"),Mt=ne(ht,"Promise"),Dt=ne(ht,"Set"),At=ne(ht,"WeakMap"),Lt=ne(Object,"create"),Vt=fe(_t),Ft=fe(jt),It=fe(Mt),Rt=fe(Dt),Kt=fe(At),Wt=Ct?Ct.prototype:void 0,Ht=Wt?Wt.valueOf:void 0;h.prototype=Lt?Lt(null):vt,b.prototype.clear=P,b.prototype["delete"]=O,b.prototype.get=C,b.prototype.has=T,b.prototype.set=w,x.prototype.clear=E,x.prototype["delete"]=S,x.prototype.get=k,x.prototype.has=N,x.prototype.set=_;var zt=z("length");wt||(oe=function(){return[]}),(_t&&ae(new _t(new ArrayBuffer(1)))!=Ue||jt&&ae(new jt)!=Le||Mt&&ae(Mt.resolve())!=Ie||Dt&&ae(new Dt)!=Ke||At&&ae(new At)!=ze)&&(ae=function(e){var t=bt.call(e),n=t==Fe?e.constructor:void 0,r=n?fe(n):void 0;if(r)switch(r){case Vt:return Ue;case Ft:return Le;case It:return Ie;case Rt:return Ke;case Kt:return ze}return t});var Bt=Array.isArray,Ut=Ot?function(e){return e instanceof Ot}:we(!1);e.exports=I}).call(t,n(43)(e),function(){return this}())},function(e,t){function n(e){return!!e&&"object"==typeof e}function r(e,t){var n=null==e?void 0:e[t];return i(n)?n:void 0}function o(e){return a(e)&&f.call(e)==s}function a(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function i(e){return null==e?!1:o(e)?d.test(c.call(e)):n(e)&&l.test(e)}var s="[object Function]",l=/^\[object .+?Constructor\]$/,u=Object.prototype,c=Function.prototype.toString,p=u.hasOwnProperty,f=u.toString,d=RegExp("^"+c.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r},function(e,t,n){(function(e,n){function r(e){return e&&e.Object===Object?e:null}function o(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function a(){}function i(e,t){return l(e,t)&&delete e[t]}function s(e,t){if(ne){var n=e[t];return n===L?void 0:n}return Q.call(e,t)?e[t]:void 0}function l(e,t){return ne?void 0!==e[t]:Q.call(e,t)}function u(e,t,n){e[t]=ne&&void 0===n?L:n}function c(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function p(){this.__data__={hash:new a,map:te?new te:[],string:new a}}function f(e){var t=this.__data__;return k(e)?i("string"==typeof e?t.string:t.hash,e):te?t.map["delete"](e):C(t.map,e)}function d(e){var t=this.__data__;return k(e)?s("string"==typeof e?t.string:t.hash,e):te?t.map.get(e):T(t.map,e)}function h(e){var t=this.__data__;return k(e)?l("string"==typeof e?t.string:t.hash,e):te?t.map.has(e):w(t.map,e)}function y(e,t){var n=this.__data__;return k(e)?u("string"==typeof e?n.string:n.hash,e,t):te?n.map.set(e,t):E(n.map,e,t),this}function v(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function m(){this.__data__={array:[],map:null}}function g(e){var t=this.__data__,n=t.array;return n?C(n,e):t.map["delete"](e)}function b(e){var t=this.__data__,n=t.array;return n?T(n,e):t.map.get(e)}function P(e){var t=this.__data__,n=t.array;return n?w(n,e):t.map.has(e)}function O(e,t){var n=this.__data__,r=n.array;r&&(r.length<A-1?E(r,e,t):(n.array=null,n.map=new c(r)));var o=n.map;return o&&o.set(e,t),this}function C(e,t){var n=x(e,t);if(0>n)return!1;var r=e.length-1;return n==r?e.pop():ee.call(e,n,1),!0}function T(e,t){var n=x(e,t);return 0>n?void 0:e[n][1]}function w(e,t){return x(e,t)>-1}function x(e,t){for(var n=e.length;n--;)if(_(e[n][0],t))return n;return-1}function E(e,t,n){var r=x(e,t);0>r?e.push([t,n]):e[r][1]=n}function S(e,t){var n=e[t];return D(n)?n:void 0}function k(e){var t=typeof e;return"number"==t||"boolean"==t||"string"==t&&"__proto__"!=e||null==e}function N(e){if(null!=e){try{return $.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function _(e,t){return e===t||e!==e&&t!==t}function j(e){var t=M(e)?Z.call(e):"";return t==V||t==F}function M(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function D(e){if(!M(e))return!1;var t=j(e)||o(e)?J:R;return t.test(N(e))}var A=200,L="__lodash_hash_undefined__",V="[object Function]",F="[object GeneratorFunction]",I=/[\\^$.*+?()[\]{}|]/g,R=/^\[object .+?Constructor\]$/,K={"function":!0,object:!0},W=K[typeof t]&&t&&!t.nodeType?t:void 0,H=K[typeof e]&&e&&!e.nodeType?e:void 0,z=r(W&&H&&"object"==typeof n&&n),B=r(K[typeof self]&&self),U=r(K[typeof window]&&window),Y=r(K[typeof this]&&this),q=z||U!==(Y&&Y.window)&&U||B||Y||Function("return this")(),G=Array.prototype,X=Object.prototype,$=Function.prototype.toString,Q=X.hasOwnProperty,Z=X.toString,J=RegExp("^"+$.call(Q).replace(I,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ee=G.splice,te=S(q,"Map"),ne=S(Object,"create");a.prototype=ne?ne(null):X,c.prototype.clear=p,c.prototype["delete"]=f,c.prototype.get=d,c.prototype.has=h,c.prototype.set=y,v.prototype.clear=m,v.prototype["delete"]=g,v.prototype.get=b,v.prototype.has=P,v.prototype.set=O,e.exports=v}).call(t,n(43)(e),function(){return this}())},function(e,t){function n(e){return function(t){return null==t?void 0:t[e]}}function r(e){return a(e)&&y.call(e,"callee")&&(!m.call(e,"callee")||v.call(e)==p)}function o(e){return null!=e&&s(g(e))&&!i(e)}function a(e){return u(e)&&o(e)}function i(e){var t=l(e)?v.call(e):"";return t==f||t==d}function s(e){return"number"==typeof e&&e>-1&&e%1==0&&c>=e}function l(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function u(e){return!!e&&"object"==typeof e}var c=9007199254740991,p="[object Arguments]",f="[object Function]",d="[object GeneratorFunction]",h=Object.prototype,y=h.hasOwnProperty,v=h.toString,m=h.propertyIsEnumerable,g=n("length");e.exports=r},function(e,t){function n(e){return!!e&&"object"==typeof e}function r(e,t){var n=null==e?void 0:e[t];return s(n)?n:void 0}function o(e){return"number"==typeof e&&e>-1&&e%1==0&&m>=e}function a(e){return i(e)&&h.call(e)==u}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function s(e){return null==e?!1:a(e)?y.test(f.call(e)):n(e)&&c.test(e)}var l="[object Array]",u="[object Function]",c=/^\[object .+?Constructor\]$/,p=Object.prototype,f=Function.prototype.toString,d=p.hasOwnProperty,h=p.toString,y=RegExp("^"+f.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),v=r(Array,"isArray"),m=9007199254740991,g=v||function(e){return n(e)&&o(e.length)&&h.call(e)==l};e.exports=g},function(e,t){function n(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function r(e){return f(Object(e))}function o(e){return!!e&&"object"==typeof e}function a(e){if(!o(e)||p.call(e)!=i||n(e))return!1;var t=r(e);if(null===t)return!0;var a=u.call(t,"constructor")&&t.constructor;return"function"==typeof a&&a instanceof a&&l.call(a)==c}var i="[object Object]",s=Object.prototype,l=Function.prototype.toString,u=s.hasOwnProperty,c=l.call(Object),p=s.toString,f=Object.getPrototypeOf;e.exports=a},function(e,t,n){function r(e){return function(t){return null==t?void 0:t[e]}}function o(e){return null!=e&&i(g(e))}function a(e,t){return e="number"==typeof e||d.test(e)?+e:-1,t=null==t?m:t,e>-1&&e%1==0&&t>e}function i(e){return"number"==typeof e&&e>-1&&e%1==0&&m>=e}function s(e){for(var t=u(e),n=t.length,r=n&&e.length,o=!!r&&i(r)&&(f(e)||p(e)),s=-1,l=[];++s<n;){var c=t[s];(o&&a(c,r)||y.call(e,c))&&l.push(c)}return l}function l(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function u(e){if(null==e)return[];l(e)||(e=Object(e));var t=e.length;t=t&&i(t)&&(f(e)||p(e))&&t||0;for(var n=e.constructor,r=-1,o="function"==typeof n&&n.prototype===e,s=Array(t),u=t>0;++r<t;)s[r]=r+"";for(var c in e)u&&a(c,t)||"constructor"==c&&(o||!y.call(e,c))||s.push(c);return s}var c=n(296),p=n(298),f=n(299),d=/^\d+$/,h=Object.prototype,y=h.hasOwnProperty,v=c(Object,"keys"),m=9007199254740991,g=r("length"),b=v?function(e){var t=null==e?void 0:e.constructor;return"function"==typeof t&&t.prototype===e||"function"!=typeof e&&o(e)?s(e):l(e)?v(e):[]}:s;e.exports=b},function(e,t,n){(function(e,n){function r(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function o(e){return e&&e.Object===Object?e:null}function a(e,t){return e="number"==typeof e||x.test(e)?+e:-1,t=null==t?P:t,e>-1&&e%1==0&&t>e}function i(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function s(e){e=null==e?e:Object(e);var t=[];for(var n in e)t.push(n);return t}function l(e){return function(t){return null==t?void 0:t[e]}}function u(e){var t=e?e.length:void 0;return y(t)&&(W(e)||g(e)||p(e))?r(t,String):null}function c(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||A;return e===n}function p(e){return d(e)&&L.call(e,"callee")&&(!R.call(e,"callee")||V.call(e)==O)}function f(e){return null!=e&&y(K(e))&&!h(e)}function d(e){return m(e)&&f(e)}function h(e){var t=v(e)?V.call(e):"";return t==C||t==T}function y(e){return"number"==typeof e&&e>-1&&e%1==0&&P>=e}function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){return!!e&&"object"==typeof e}function g(e){return"string"==typeof e||!W(e)&&m(e)&&V.call(e)==w}function b(e){for(var t=-1,n=c(e),r=s(e),o=r.length,i=u(e),l=!!i,p=i||[],f=p.length;++t<o;){var d=r[t];l&&("length"==d||a(d,f))||"constructor"==d&&(n||!L.call(e,d))||p.push(d)}return p}var P=9007199254740991,O="[object Arguments]",C="[object Function]",T="[object GeneratorFunction]",w="[object String]",x=/^(?:0|[1-9]\d*)$/,E={"function":!0,object:!0},S=E[typeof t]&&t&&!t.nodeType?t:void 0,k=E[typeof e]&&e&&!e.nodeType?e:void 0,N=o(S&&k&&"object"==typeof n&&n),_=o(E[typeof self]&&self),j=o(E[typeof window]&&window),M=o(E[typeof this]&&this),D=N||j!==(M&&M.window)&&j||_||M||Function("return this")(),A=Object.prototype,L=A.hasOwnProperty,V=A.toString,F=D.Reflect,I=F?F.enumerate:void 0,R=A.propertyIsEnumerable;I&&!R.call({valueOf:1},"valueOf")&&(s=function(e){return i(I(e))});var K=l("length"),W=Array.isArray;e.exports=b}).call(t,n(43)(e),function(){return this}())},function(e,t,n){function r(e,t){for(var n=-1,r=e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function o(e,t){return e="number"==typeof e||te.test(e)?+e:-1,t=null==t?N:t,e>-1&&e%1==0&&t>e}function a(e,t,n){(void 0===n||h(e[t],n))&&("number"!=typeof t||void 0!==n||t in e)||(e[t]=n)}function i(e,t,n){var r=e[t];oe.call(e,t)&&h(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function s(e,t,n,o,i){if(e!==t){if(!le(t)&&!C(t))var u=S(t);r(u||t,function(r,c){if(u&&(c=r,r=t[c]),P(r))i||(i=new w),l(e,t,c,n,s,o,i);else{var p=o?o(e[c],r,c+"",e,t,i):void 0;void 0===p&&(p=r),a(e,c,p)}})}}function l(e,t,n,r,o,i,s){var l=e[n],u=t[n],p=s.get(u);if(p)return void a(e,n,p);var f=i?i(l,u,n+"",e,t,s):void 0,d=void 0===f;d&&(f=u,le(u)||C(u)?le(l)?f=l:m(l)?f=c(l):(d=!1,f=x(u,!0)):E(u)||y(u)?y(l)?f=T(l):!P(l)||r&&g(l)?(d=!1, f=x(u,!0)):f=l:d=!1),s.set(u,f),d&&o(f,u,r,i,s),s["delete"](u),a(e,n,f)}function u(e){return function(t){return null==t?void 0:t[e]}}function c(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function p(e,t,n,r){n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):e[s];i(n,s,l)}return n}function f(e){return k(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a="function"==typeof a?(o--,a):void 0,i&&d(n[0],n[1],i)&&(a=3>o?void 0:a,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,a)}return t})}function d(e,t,n){if(!P(n))return!1;var r=typeof t;return("number"==r?v(n)&&o(t,n.length):"string"==r&&t in n)?h(n[t],e):!1}function h(e,t){return e===t||e!==e&&t!==t}function y(e){return m(e)&&oe.call(e,"callee")&&(!ie.call(e,"callee")||ae.call(e)==_)}function v(e){return null!=e&&b(se(e))&&!g(e)}function m(e){return O(e)&&v(e)}function g(e){var t=P(e)?ae.call(e):"";return t==L||t==V}function b(e){return"number"==typeof e&&e>-1&&e%1==0&&N>=e}function P(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function O(e){return!!e&&"object"==typeof e}function C(e){return O(e)&&b(e.length)&&!!ne[ae.call(e)]}function T(e){return p(e,S(e))}var w=n(297),x=n(295),E=n(300),S=n(302),k=n(304),N=9007199254740991,_="[object Arguments]",j="[object Array]",M="[object Boolean]",D="[object Date]",A="[object Error]",L="[object Function]",V="[object GeneratorFunction]",F="[object Map]",I="[object Number]",R="[object Object]",K="[object RegExp]",W="[object Set]",H="[object String]",z="[object WeakMap]",B="[object ArrayBuffer]",U="[object DataView]",Y="[object Float32Array]",q="[object Float64Array]",G="[object Int8Array]",X="[object Int16Array]",$="[object Int32Array]",Q="[object Uint8Array]",Z="[object Uint8ClampedArray]",J="[object Uint16Array]",ee="[object Uint32Array]",te=/^(?:0|[1-9]\d*)$/,ne={};ne[Y]=ne[q]=ne[G]=ne[X]=ne[$]=ne[Q]=ne[Z]=ne[J]=ne[ee]=!0,ne[_]=ne[j]=ne[B]=ne[M]=ne[U]=ne[D]=ne[A]=ne[L]=ne[F]=ne[I]=ne[R]=ne[K]=ne[W]=ne[H]=ne[z]=!1;var re=Object.prototype,oe=re.hasOwnProperty,ae=re.toString,ie=re.propertyIsEnumerable,se=u("length"),le=Array.isArray,ue=f(function(e,t,n,r){s(e,t,n,r)});e.exports=ue},function(e,t){function n(e,t,n){var r=n.length;switch(r){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t){if("function"!=typeof e)throw new TypeError(c);return t=w(void 0===t?e.length-1:l(t),0),function(){for(var r=arguments,o=-1,a=w(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];switch(t){case 0:return e.call(this,i);case 1:return e.call(this,r[0],i);case 2:return e.call(this,r[0],r[1],i)}var s=Array(t+1);for(o=-1;++o<t;)s[o]=r[o];return s[t]=i,n(e,this,s)}}function o(e){var t=a(e)?T.call(e):"";return t==h||t==y}function a(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function i(e){return!!e&&"object"==typeof e}function s(e){return"symbol"==typeof e||i(e)&&T.call(e)==v}function l(e){if(!e)return 0===e?e:0;if(e=u(e),e===p||e===-p){var t=0>e?-1:1;return t*f}var n=e%1;return e===e?n?e-n:e:0}function u(e){if("number"==typeof e)return e;if(s(e))return d;if(a(e)){var t=o(e.valueOf)?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(m,"");var n=b.test(e);return n||P.test(e)?O(e.slice(2),n?2:8):g.test(e)?d:+e}var c="Expected a function",p=1/0,f=1.7976931348623157e308,d=NaN,h="[object Function]",y="[object GeneratorFunction]",v="[object Symbol]",m=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,P=/^0o[0-7]+$/i,O=parseInt,C=Object.prototype,T=C.toString,w=Math.max;e.exports=r},function(e,t){function n(){u=!1,i.length?l=i.concat(l):c=-1,l.length&&r()}function r(){if(!u){var e=setTimeout(n);u=!0;for(var t=l.length;t;){for(i=l,l=[];++c<t;)i&&i[c].run();c=-1,t=l.length}i=null,u=!1,clearTimeout(e)}}function o(e,t){this.fun=e,this.array=t}function a(){}var i,s=e.exports={},l=[],u=!1,c=-1;s.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new o(e,t)),1!==l.length||u||setTimeout(r,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=a,s.addListener=a,s.once=a,s.off=a,s.removeListener=a,s.removeAllListeners=a,s.emit=a,s.binding=function(e){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=void 0;return function(){n&&clearTimeout(n),n=setTimeout(e,t)}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),s=n(4),l=r(s),u=n(250),c=r(u),p=n(6),f=n(308),d=r(f),h=i["default"].createClass({displayName:"Align",propTypes:{childrenProps:a.PropTypes.object,align:a.PropTypes.object.isRequired,target:a.PropTypes.func,onAlign:a.PropTypes.func,monitorBufferTime:a.PropTypes.number,monitorWindowResize:a.PropTypes.bool,disabled:a.PropTypes.bool,children:a.PropTypes.any},getDefaultProps:function(){return{target:function(){return window},onAlign:function(){},monitorBufferTime:50,monitorWindowResize:!1,disabled:!1}},componentDidMount:function(){var e=this.props;if(!e.disabled){var t=l["default"].findDOMNode(this);e.onAlign(t,(0,c["default"])(t,e.target(),e.align)),e.monitorWindowResize&&this.startMonitorWindowResize()}},componentDidUpdate:function(e){var t=!1,n=this.props,r=void 0;if(!n.disabled)if(e.disabled||e.align!==n.align)t=!0,r=n.target();else{var o=e.target();r=n.target(),(0,d["default"])(o)&&(0,d["default"])(r)?t=!1:o!==r&&(t=!0)}if(t){var a=l["default"].findDOMNode(this);n.onAlign(a,(0,c["default"])(a,r,n.align))}n.monitorWindowResize&&!n.disabled?this.startMonitorWindowResize():this.stopMonitorWindowResize()},componentWillUnmount:function(){this.stopMonitorWindowResize()},onWindowResize:function(){var e=this.props;if(!e.disabled){var t=l["default"].findDOMNode(this);e.onAlign(t,(0,c["default"])(t,e.target(),e.align))}},startMonitorWindowResize:function(){this.resizeHandler||(this.resizeHandler=p.Dom.addEventListener(window,"resize",o(this.onWindowResize,this.props.monitorBufferTime)))},stopMonitorWindowResize:function(){this.resizeHandler&&(this.resizeHandler.remove(),this.resizeHandler=null)},render:function(){var e=this.props,t=e.childrenProps,n=e.children,r=i["default"].Children.only(n);if(t){var o={};for(var a in t)t.hasOwnProperty(a)&&(o[a]=this.props[t[a]]);return i["default"].cloneElement(r,o)}return r}});t["default"]=h,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(306),a=r(o);t["default"]=a["default"],e.exports=t["default"]},function(e,t){"use strict";function n(e){return null!=e&&e==e.window}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=e.children;return l["default"].isValidElement(t)&&!t.key?l["default"].cloneElement(t,{key:h}):t}function i(){}Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),l=r(s),u=n(311),c=n(310),p=r(c),f=n(79),d=r(f),h="rc_animate_"+Date.now(),y=l["default"].createClass({displayName:"Animate",propTypes:{component:l["default"].PropTypes.any,animation:l["default"].PropTypes.object,transitionName:l["default"].PropTypes.string,transitionEnter:l["default"].PropTypes.bool,transitionAppear:l["default"].PropTypes.bool,exclusive:l["default"].PropTypes.bool,transitionLeave:l["default"].PropTypes.bool,onEnd:l["default"].PropTypes.func,onEnter:l["default"].PropTypes.func,onLeave:l["default"].PropTypes.func,onAppear:l["default"].PropTypes.func,showProp:l["default"].PropTypes.string},getDefaultProps:function(){return{animation:{},component:"span",transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:i,onEnter:i,onLeave:i,onAppear:i}},getInitialState:function(){return this.currentlyAnimatingKeys={},this.keysToEnter=[],this.keysToLeave=[],{children:(0,u.toArrayChildren)(a(this.props))}},componentDidMount:function(){var e=this,t=this.props.showProp,n=this.state.children;t&&(n=n.filter(function(e){return!!e.props[t]})),n.forEach(function(t){e.performAppear(t.key)})},componentWillReceiveProps:function(e){var t=this;this.nextProps=e;var n=(0,u.toArrayChildren)(a(e)),r=this.props;r.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach(function(e){t.stop(e)});var i=r.showProp,s=this.currentlyAnimatingKeys,c=r.exclusive?(0,u.toArrayChildren)(a(r)):this.state.children,p=[];i?(c.forEach(function(e){var t=(0,u.findChildInChildrenByKey)(n,e.key),r=void 0;r=t&&t.props[i]||!e.props[i]?t:l["default"].cloneElement(t||e,o({},i,!0)),r&&p.push(r)}),n.forEach(function(e){(0,u.findChildInChildrenByKey)(c,e.key)||p.push(e)})):p=(0,u.mergeChildren)(c,n),this.setState({children:p}),n.forEach(function(e){var n=e.key;if(!s[n]){var r=(0,u.findChildInChildrenByKey)(c,n);if(i){var o=e.props[i];if(r){var a=(0,u.findShownChildInChildrenByKey)(c,n,i);!a&&o&&t.keysToEnter.push(n)}else o&&t.keysToEnter.push(n)}else r||t.keysToEnter.push(n)}}),c.forEach(function(e){var r=e.key;if(!s[r]){var o=(0,u.findChildInChildrenByKey)(n,r);if(i){var a=e.props[i];if(o){var l=(0,u.findShownChildInChildrenByKey)(n,r,i);!l&&a&&t.keysToLeave.push(r)}else a&&t.keysToLeave.push(r)}else o||t.keysToLeave.push(r)}})},componentDidUpdate:function(){if(this.isMounted()){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)}},performEnter:function(e){this.refs[e]&&(this.currentlyAnimatingKeys[e]=!0,this.refs[e].componentWillEnter(this.handleDoneAdding.bind(this,e,"enter")))},performAppear:function(e){this.refs[e]&&(this.currentlyAnimatingKeys[e]=!0,this.refs[e].componentWillAppear(this.handleDoneAdding.bind(this,e,"appear")))},handleDoneAdding:function(e,t){var n=this.props;if(delete this.currentlyAnimatingKeys[e],!n.exclusive||n===this.nextProps){var r=(0,u.toArrayChildren)(a(n));this.isValidChildByKey(r,e)?"appear"===t?d["default"].allowAppearCallback(n)&&(n.onAppear(e),n.onEnd(e,!0)):d["default"].allowEnterCallback(n)&&(n.onEnter(e),n.onEnd(e,!0)):this.performLeave(e)}},performLeave:function(e){this.refs[e]&&(this.currentlyAnimatingKeys[e]=!0,this.refs[e].componentWillLeave(this.handleDoneLeaving.bind(this,e)))},handleDoneLeaving:function(e){var t=this.props;if(delete this.currentlyAnimatingKeys[e],!t.exclusive||t===this.nextProps){var n=(0,u.toArrayChildren)(a(t));this.isValidChildByKey(n,e)?this.performEnter(e):(d["default"].allowLeaveCallback(t)&&(t.onLeave(e),t.onEnd(e,!1)),this.isMounted()&&!(0,u.isSameChildren)(this.state.children,n,t.showProp)&&this.setState({children:n}))}},isValidChildByKey:function(e,t){var n=this.props.showProp;return n?(0,u.findShownChildInChildrenByKey)(e,t,n):(0,u.findChildInChildrenByKey)(e,t)},stop:function(e){delete this.currentlyAnimatingKeys[e];var t=this.refs[e];t&&t.stop()},render:function(){var e=this.props;this.nextProps=e;var t=this.state.children,n=null;t&&(n=t.map(function(t){if(null===t)return t;if(!t.key)throw new Error("must set key for <rc-animate> children");return l["default"].createElement(p["default"],{key:t.key,ref:t.key,animation:e.animation,transitionName:e.transitionName,transitionEnter:e.transitionEnter,transitionAppear:e.transitionAppear,transitionLeave:e.transitionLeave},t)}));var r=e.component;return r?l["default"].createElement(r,this.props,n):n[0]||null}});t["default"]=y,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=n(4),s=r(i),l=n(19),u=r(l),c=n(79),p=r(c),f={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},d=a["default"].createClass({displayName:"AnimateChild",propTypes:{children:a["default"].PropTypes.any},componentWillUnmount:function(){this.stop()},componentWillEnter:function(e){p["default"].isEnterSupported(this.props)?this.transition("enter",e):e()},componentWillAppear:function(e){p["default"].isAppearSupported(this.props)?this.transition("appear",e):e()},componentWillLeave:function(e){p["default"].isLeaveSupported(this.props)?this.transition("leave",e):e()},transition:function(e,t){var n=this,r=s["default"].findDOMNode(this),o=this.props,a=o.transitionName;this.stop();var i=function(){n.stopper=null,t()};(l.isCssAnimationSupported||!o.animation[e])&&a&&o[f[e]]?this.stopper=(0,u["default"])(r,a+"-"+e,i):this.stopper=o.animation[e](r,i)},stop:function(){var e=this.stopper;e&&(this.stopper=null,e.stop())},render:function(){return this.props.children}});t["default"]=d,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=[];return p["default"].Children.forEach(e,function(e){t.push(e)}),t}function a(e,t){var n=null;return e&&e.forEach(function(e){n||e.key===t&&(n=e)}),n}function i(e,t,n){var r=null;return e&&e.forEach(function(e){if(e.key===t&&e.props[n]){if(r)throw new Error("two child with same key for <rc-animate> children");r=e}}),r}function s(e,t,n){var r=0;return e&&e.forEach(function(e){r||(r=e.key===t&&!e.props[n])}),r}function l(e,t,n){var r=e.length===t.length;return r&&e.forEach(function(e,o){var a=t[o];e.key!==a.key?r=!1:n&&e.props[n]!==a.props[n]&&(r=!1)}),r}function u(e,t){var n=[],r={},o=[];return e.forEach(function(e){a(t,e.key)?o.length&&(r[e.key]=o,o=[]):o.push(e)}),t.forEach(function(e){r.hasOwnProperty(e.key)&&(n=n.concat(r[e.key])),n.push(e)}),n=n.concat(o)}Object.defineProperty(t,"__esModule",{value:!0}),t.toArrayChildren=o,t.findChildInChildrenByKey=a,t.findShownChildInChildrenByKey=i,t.findHiddenChildInChildrenByKey=s,t.isSameChildren=l,t.mergeChildren=u;var c=n(1),p=r(c)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){}function a(){var e=this.state.value.clone();e.setDayOfMonth(1),this.setValue(e)}function i(){var e=this.state.value.clone();e.setDayOfMonth(e.getActualMaximum(h["default"].MONTH)),this.setValue(e)}function s(e){var t=this.state.value.clone();t.addMonth(e),this.setValue(t)}function l(e){var t=this.state.value.clone();t.addYear(e),this.setValue(t)}function u(e){var t=this.state.value.clone();t.addWeekOfYear(e),this.setValue(t)}function c(e){var t=this.state.value.clone();t.addDayOfMonth(e),this.setValue(t)}Object.defineProperty(t,"__esModule",{value:!0});var p=n(1),f=r(p),d=n(11),h=r(d),y=n(6),v=n(38),m=r(v),g=n(83),b=r(g),P=n(82),O=r(P),C=n(39),T=r(C),w=n(27),x=r(w),E=n(87),S=r(E),k=f["default"].createClass({displayName:"Calendar",propTypes:{disabledDate:p.PropTypes.func,disabledTime:p.PropTypes.any,value:p.PropTypes.object,selectedValue:p.PropTypes.object,defaultValue:p.PropTypes.object,className:p.PropTypes.string,locale:p.PropTypes.object,showWeekNumber:p.PropTypes.bool,style:p.PropTypes.object,showToday:p.PropTypes.bool,showDateInput:p.PropTypes.bool,visible:p.PropTypes.bool,onSelect:p.PropTypes.func,onOk:p.PropTypes.func,showOk:p.PropTypes.bool,prefixCls:p.PropTypes.string,onKeyDown:p.PropTypes.func,timePicker:p.PropTypes.element,dateInputPlaceholder:p.PropTypes.any,onClear:p.PropTypes.func,onChange:p.PropTypes.func},mixins:[x["default"],T["default"]],getDefaultProps:function(){return{showToday:!0,showDateInput:!0,timePicker:null,onOk:o}},getInitialState:function(){return this.nextMonth=s.bind(this,1),this.previousMonth=s.bind(this,-1),this.nextYear=l.bind(this,1),this.previousYear=l.bind(this,-1),{}},onKeyDown:function(e){if("input"!==e.target.nodeName.toLowerCase()){var t=e.keyCode,n=e.ctrlKey||e.metaKey;switch(t){case y.KeyCode.DOWN:return u.call(this,1),e.preventDefault(),1;case y.KeyCode.UP:return u.call(this,-1),e.preventDefault(),1;case y.KeyCode.LEFT:return n?this.previousYear():c.call(this,-1),e.preventDefault(),1;case y.KeyCode.RIGHT:return n?this.nextYear():c.call(this,1),e.preventDefault(),1;case y.KeyCode.HOME:return a.call(this),e.preventDefault(),1;case y.KeyCode.END:return i.call(this),e.preventDefault(),1;case y.KeyCode.PAGE_DOWN:return this.nextMonth(),e.preventDefault(),1;case y.KeyCode.PAGE_UP:return this.previousMonth(),e.preventDefault(),1;case y.KeyCode.ENTER:return this.onSelect(this.state.value),e.preventDefault(),1;default:return this.props.onKeyDown(e),1}}},onClear:function(){this.onSelect(null),this.props.onClear()},onOk:function(){var e=this.state.selectedValue;this.isAllowedDate(e)&&this.props.onOk(e)},onDateInputChange:function(e){this.onSelect(e,{source:"dateInput"})},onDateTableSelect:function(e){this.onSelect(e)},chooseToday:function(){var e=this.state.value.clone();e.setTime(Date.now()),this.onSelect(e)},render:function(){var e=this.props,t=e.locale,n=e.prefixCls,r=e.disabledDate,o=e.dateInputPlaceholder,a=e.timePicker,i=e.disabledTime,s=this.state,l=s.value,u=s.selectedValue,c=e.showDateInput?f["default"].createElement(S["default"],{formatter:this.getFormatter(),key:"date-input",timePicker:a,gregorianCalendarLocale:l.locale,locale:t,placeholder:o,showClear:!0,disabledTime:i,disabledDate:r,onClear:this.onClear,prefixCls:n,selectedValue:u,onChange:this.onDateInputChange}):null,p=[c,f["default"].createElement("div",{key:"date-panel",className:n+"-date-panel"},f["default"].createElement(b["default"],{locale:t,onValueChange:this.setValue,value:l,prefixCls:n}),f["default"].createElement("div",{className:n+"-calendar-body"},f["default"].createElement(m["default"],{locale:t,value:l,selectedValue:u,prefixCls:n,dateRender:e.dateRender,onSelect:this.onDateTableSelect,disabledDate:r,showWeekNumber:e.showWeekNumber})),f["default"].createElement(O["default"],{showOk:e.showOk,locale:t,prefixCls:n,showToday:e.showToday,disabledTime:i,gregorianCalendarLocale:l.locale,showDateInput:e.showDateInput,timePicker:a,selectedValue:u,value:l,disabledDate:r,onOk:this.onOk,onSelect:this.onSelect,onToday:this.chooseToday}))];return this.renderRoot({children:p,className:e.showWeekNumber?n+"-week-number":""})}});t["default"]=k,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(1),i=r(a),s=n(38),l=r(s),u=n(91),c=r(u),p=n(39),f=r(p),d=n(27),h=r(d),y=n(318),v=r(y),m=i["default"].createClass({displayName:"FullCalendar",propTypes:{defaultType:a.PropTypes.string,type:a.PropTypes.string,prefixCls:a.PropTypes.string,locale:a.PropTypes.object,onTypeChange:a.PropTypes.func,fullscreen:a.PropTypes.bool,monthCellRender:a.PropTypes.func,dateCellRender:a.PropTypes.func,showTypeSwitch:a.PropTypes.bool,Select:a.PropTypes.func.isRequired,headerComponents:a.PropTypes.array,headerComponent:a.PropTypes.object,headerRender:a.PropTypes.func,showHeader:a.PropTypes.bool},mixins:[h["default"],f["default"]],getDefaultProps:function(){return{defaultType:"date",fullscreen:!1,showTypeSwitch:!0,showHeader:!0,onTypeChange:function(){}}},getInitialState:function(){var e=void 0;return e="type"in this.props?this.props.type:this.props.defaultType,{type:e}},componentWillReceiveProps:function(e){"type"in e&&this.setState({type:e.type})},onMonthSelect:function(e){this.onSelect(e,{target:"month"})},setType:function(e){"type"in this.props||this.setState({type:e}),this.props.onTypeChange(e)},render:function(){var e=this.props,t=e.locale,n=e.prefixCls,r=e.fullscreen,a=e.showHeader,s=e.headerComponent,u=e.headerRender,p=this.state,f=p.value,d=p.type,h=null;if(a)if(u)h=u(f,d,t);else{var y=s||v["default"];h=i["default"].createElement(y,o({key:"calendar-header"},e,{prefixCls:n+"-full",type:d,value:f,onTypeChange:this.setType,onValueChange:this.setValue}))}var m="date"===d?i["default"].createElement(l["default"],{dateRender:e.dateCellRender,contentRender:e.dateCellContentRender,locale:t,prefixCls:n,onSelect:this.onSelect,value:f}):i["default"].createElement(c["default"],{cellRender:e.monthCellRender,contentRender:e.monthCellContentRender,locale:t,onSelect:this.onMonthSelect,prefixCls:n+"-month-panel",value:f}),g=[h,i["default"].createElement("div",{key:"calendar-body",className:n+"-calendar-body"},m)],b=[n+"-full"];return r&&b.push(n+"-fullscreen"),this.renderRoot({children:g,className:b.join(" ")})}});t["default"]=m,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){}function i(){var e=new y["default"];return e.setTime(Date.now()),e}function s(e,t){var n=void 0;n=t,"right"===e&&n.addMonth(-1),this.fireValueChange(n)}function l(e,t){var n=e.selectedValue||t&&e.defaultSelectedValue||[],r=e.value;Array.isArray(r)&&(r=r[0]);var o=e.defaultValue;return Array.isArray(o)&&(o=o[0]),r||t&&o||n[0]||t&&i()}function u(e,t){if(t){var n=this.state.selectedValue,r=n.concat(),o="left"===e?0:1;r[o]=t,r[0]&&r[1]&&this.compare(r[0],r[1])>0&&(r[1-o]=void 0),this.fireSelectValueChange(r)}}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(l){o=!0,a=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=n(1),d=r(f),h=n(11),y=r(h),v=n(2),m=r(v),g=n(321),b=r(g),P=n(13),O=n(85),C=r(O),T=n(84),w=r(T),x=n(27),E=r(x),S=d["default"].createClass({displayName:"RangeCalendar",propTypes:{prefixCls:f.PropTypes.string,dateInputPlaceholder:f.PropTypes.any,defaultValue:f.PropTypes.any,timePicker:f.PropTypes.any,value:f.PropTypes.any,showOk:f.PropTypes.bool,selectedValue:f.PropTypes.array,defaultSelectedValue:f.PropTypes.array,onOk:f.PropTypes.func,onChange:f.PropTypes.func,onSelect:f.PropTypes.func,onValueChange:f.PropTypes.func,formatter:f.PropTypes.oneOfType([f.PropTypes.object,f.PropTypes.string]),onClear:f.PropTypes.func},mixins:[E["default"]],getDefaultProps:function(){return{defaultSelectedValue:[],onValueChange:a}},getInitialState:function(){var e=this.props,t=e.selectedValue||e.defaultSelectedValue,n=l(e,1);return{selectedValue:t,value:n}},componentWillReceiveProps:function(e){var t={};"value"in e&&(e.value?t.value=e.value:t.value=l(e,0),this.setState(t)),"selectedValue"in e&&(t.selectedValue=e.selectedValue,this.setState(t))},onSelect:function(e){var t=this.state.selectedValue,n=t.concat(),r=!1;!n.length||2===n.length&&!t.hovering?(n.length=1,n[0]=e,r=!0):this.compare(n[0],e)<=0?(n[1]=e,r=!0):this.compare(n[0],e)>0&&(n.length=1,n[0]=e,r=!0),r&&this.fireSelectValueChange(n)},onDayHover:function(e){var t=this.state.selectedValue;t.length&&(2!==t.length||t.hovering)&&(this.compare(e,t[0])<0||(t=t.concat(),t[1]=e,t.hovering=1,this.fireSelectValueChange(t)))},onToday:function(){this.setState({value:(0,P.getTodayTime)(this.state.value)})},onOk:function(){this.props.onOk(this.state.selectedValue)},getStartValue:function(){var e=this.state.value,t=this.state.selectedValue;return t[0]&&this.props.timePicker&&(e=e.clone(),(0,P.syncTime)(t[0],e)),e},getEndValue:function(){var e=this.state.value.clone();e.addMonth(1);var t=this.state.selectedValue;return t[1]&&this.props.timePicker&&(0,P.syncTime)(t[1],e),e},compare:function(e,t){return this.props.timePicker?e.getTime()-t.getTime():e.compareToDay(t)},fireSelectValueChange:function(e,t){"selectedValue"in this.props||this.setState({selectedValue:e}),this.props.onChange(e),(t||e[0]&&e[1]&&!e.hovering)&&this.props.onSelect(e)},fireValueChange:function(e){var t=this.props;"value"in t||this.setState({value:e}),t.onValueChange(e)},clear:function(){this.fireSelectValueChange([],!0),this.props.onClear()},render:function(){var e,t=this.props,n=this.state,r=t.prefixCls,a=t.dateInputPlaceholder,i=t.timePicker,l=t.showOk,f=(e={},o(e,t.className,!!t.className),o(e,r,1),o(e,r+"-hidden",!t.visible),o(e,r+"-range",1),o(e,r+"-week-number",t.showWeekNumber),e),h=(0,m["default"])(f),y={selectedValue:n.selectedValue,onSelect:this.onSelect,onDayHover:this.onDayHover},v=void 0,g=void 0;if(a)if(Array.isArray(a)){var P=p(a,2);v=P[0],g=P[1]}else v=g=a;return d["default"].createElement("div",{className:h,style:t.style,tabIndex:"0"},d["default"].createElement("a",{className:r+"-clear-btn",role:"button",title:"\u6e05\u9664",onClick:this.clear}),d["default"].createElement(b["default"],c({},t,y,{direction:"left",formatter:this.getFormatter(),value:this.getStartValue(),placeholder:v,onInputSelect:u.bind(this,"left"),onValueChange:s.bind(this,"left")})),d["default"].createElement("span",{className:r+"-range-middle"},"~"),d["default"].createElement(b["default"],c({},t,y,{direction:"right",formatter:this.getFormatter(),placeholder:g,value:this.getEndValue(),onInputSelect:u.bind(this,"right"),onValueChange:s.bind(this,"right")})),d["default"].createElement("div",{className:r+"-range-bottom"},d["default"].createElement(C["default"],c({},t,{value:n.value,onToday:this.onToday})),l===!0||l!==!1&&i?d["default"].createElement(w["default"],c({},t,{value:n.value,onOk:this.onOk,okDisabled:2!==n.selectedValue.length||n.selectedValue.hovering})):null))}});t["default"]=S,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return e&&t&&0===e.compareToDay(t)}function a(e,t){return e.getYear()<t.getYear()?1:e.getYear()===t.getYear()&&e.getMonth()<t.getMonth()}function i(e,t){return e.getYear()>t.getYear()?1:e.getYear()===t.getYear()&&e.getMonth()>t.getMonth()}function s(e){return"rc-calendar-"+e.getYear()+"-"+e.getMonth()+"-"+e.getDayOfMonth()}function l(){}function u(e){this.props.onSelect(e)}function c(e){this.props.onDayHover(e)}Object.defineProperty(t,"__esModule",{value:!0});var p=n(1),f=r(p),d=n(86),h=r(d),y=n(13),v=f["default"].createClass({displayName:"DateTBody",propTypes:{contentRender:p.PropTypes.func,dateRender:p.PropTypes.func,disabledDate:p.PropTypes.func,prefixCls:p.PropTypes.string,selectedValue:p.PropTypes.object,value:p.PropTypes.object,showWeekNumber:p.PropTypes.bool},getDefaultProps:function(){return{onDayHover:l}},render:function(){var e=this.props,t=e.contentRender,n=e.prefixCls,r=e.selectedValue,p=e.value,d=e.showWeekNumber,v=e.dateRender,m=e.disabledDate,g=void 0,b=void 0,P=void 0,O=[],C=p.clone(),T=n+"-cell",w=n+"-week-number-cell",x=n+"-date",E=n+"-today",S=n+"-selected-day",k=n+"-in-range-cell",N=n+"-last-month-cell",_=n+"-next-month-btn-day",j=n+"-disabled-cell",M=n+"-disabled-cell-first-of-row",D=n+"-disabled-cell-last-of-row";C.setTime(Date.now());var A=p.clone();A.set(p.getYear(),p.getMonth(),1);var L=A.getDayOfWeek(),V=(L+7-p.getFirstDayOfWeek())%7,F=A.clone();F.addDayOfMonth(0-V);var I=0;for(g=0;g<h["default"].DATE_ROW_COUNT;g++)for(b=0;b<h["default"].DATE_COL_COUNT;b++)P=F,I&&(P=P.clone(),P.addDayOfMonth(I)),O.push(P),I++;var R=[];for(I=0,g=0;g<h["default"].DATE_ROW_COUNT;g++){var K=void 0,W=[];for(d&&(K=f["default"].createElement("td",{key:O[I].getWeekOfYear(),role:"gridcell",className:w},O[I].getWeekOfYear())),b=0;b<h["default"].DATE_COL_COUNT;b++){var H=null,z=null;P=O[I],b<h["default"].DATE_COL_COUNT-1&&(H=O[I+1]),b>0&&(z=O[I-1]);var B=T,U=!1,Y=!1;o(P,C)&&(B+=" "+E);var q=a(P,p),G=i(P,p);if(r&&Array.isArray(r)){if(!q&&!G){var X=r[0],$=r[1];X&&o(P,X)&&(Y=!0),X&&$&&(o(P,$)&&!r.hovering?Y=!0:P.compareToDay(X)>0&&P.compareToDay($)<0&&(B+=" "+k))}}else o(P,r)&&(Y=!0);q&&(B+=" "+N),G&&(B+=" "+_),m&&m(P,p)&&(U=!0,z&&m(z,p)||(B+=" "+M),H&&m(H,p)||(B+=" "+D)),Y&&(B+=" "+S),U&&(B+=" "+j);var Q=void 0;if(v)Q=v(P,p);else{var Z=t?t(P,p):P.getDayOfMonth();Q=f["default"].createElement("div",{key:s(P),className:x,"aria-selected":Y,"aria-disabled":U},Z)}W.push(f["default"].createElement("td",{key:I,onClick:U?l:u.bind(this,P),onMouseEnter:U?l:c.bind(this,P),role:"gridcell",title:(0,y.getTitleString)(P),className:B},Q)),I++}R.push(f["default"].createElement("tr",{key:g,role:"row"},K,W))}return f["default"].createElement("tbody",{className:n+"tbody"},R)}});t["default"]=v,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(1),u=r(l),c=n(86),p=r(c),f=function(e){function t(){return o(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return i(t,e),s(t,[{key:"render",value:function(){for(var e=this.props,t=e.value,n=e.locale,r=e.prefixCls,o=[],a=[],i=t.getFirstDayOfWeek(),s=void 0,l=0;l<p["default"].DATE_COL_COUNT;l++){var c=(i+l)%p["default"].DATE_COL_COUNT;o[l]=n.format.veryShortWeekdays[c],a[l]=n.format.weekdays[c]}e.showWeekNumber&&(s=u["default"].createElement("th",{role:"columnheader",className:r+"-column-header "+r+"-week-number-header"},u["default"].createElement("span",{className:r+"-column-header-inner"},"x")));var f=a.map(function(e,t){return u["default"].createElement("th",{key:t,role:"columnheader",title:e,className:r+"-column-header"},u["default"].createElement("span",{className:r+"-column-header-inner"},o[t]))});return u["default"].createElement("thead",null,u["default"].createElement("tr",{role:"row"},s,f))}}]),t}(u["default"].Component);t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){var t=this.state.value.clone();t.addYear(e),this.setState({value:t})}function u(e,t){var n=this.state.value.clone();n.setYear(e),n.rollSetMonth(this.state.value.getMonth()),this.props.onSelect(n),t.preventDefault()}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r), t}}(),p=n(1),f=r(p),d=n(2),h=r(d),y=4,v=3,m=function(e){function t(e){a(this,t);var n=i(this,Object.getPrototypeOf(t).call(this,e));return n.state={value:e.value||e.defaultValue},n.prefixCls=e.rootPrefixCls+"-decade-panel",n.nextCentury=l.bind(n,100),n.previousCentury=l.bind(n,-100),n}return s(t,e),c(t,[{key:"render",value:function(){for(var e=this,t=this.state.value,n=this.props.locale,r=t.getYear(),a=100*parseInt(r/100,10),i=a-10,s=a+99,l=[],c=0,p=this.prefixCls,d=0;y>d;d++){l[d]=[];for(var m=0;v>m;m++){var g=i+10*c,b=i+10*c+9;l[d][m]={startDecade:g,endDecade:b},c++}}var P=l.map(function(t,n){var i=t.map(function(t){var n,i=t.startDecade,l=t.endDecade,c=a>i,d=l>s,y=(n={},o(n,p+"-cell",1),o(n,p+"-selected-cell",r>=i&&l>=r),o(n,p+"-last-century-cell",c),o(n,p+"-next-century-cell",d),n),v=void 0,m=void 0;return c?m=e.previousCentury:d?m=e.nextCentury:(v=i+"-"+l,m=u.bind(e,i)),f["default"].createElement("td",{key:i,onClick:m,role:"gridcell",className:(0,h["default"])(y)},f["default"].createElement("a",{className:p+"-decade"},v))});return f["default"].createElement("tr",{key:n,role:"row"},i)});return f["default"].createElement("div",{className:this.prefixCls},f["default"].createElement("div",{className:p+"-header"},f["default"].createElement("a",{className:p+"-prev-century-btn",role:"button",onClick:this.previousCentury,title:n.previousCentury},"\xab"),f["default"].createElement("div",{className:p+"-century"},a,"-",s),f["default"].createElement("a",{className:p+"-next-century-btn",role:"button",onClick:this.nextCentury,title:n.nextCentury},"\xbb")),f["default"].createElement("div",{className:p+"-body"},f["default"].createElement("table",{className:p+"-table",cellSpacing:"0",role:"grid"},f["default"].createElement("tbody",{className:p+"-tbody"},P))))}}]),t}(f["default"].Component);t["default"]=m,m.propTypes={locale:p.PropTypes.object,value:p.PropTypes.object,defaultValue:p.PropTypes.object,rootPrefixCls:p.PropTypes.string},m.defaultProps={onSelect:function(){}},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(){}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(1),c=r(u),p=function(e){function t(){return o(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return i(t,e),l(t,[{key:"onYearChange",value:function(e){var t=this.props.value.clone();t.setYear(parseInt(e,10)),this.props.onValueChange(t)}},{key:"onMonthChange",value:function(e){var t=this.props.value.clone();t.setMonth(parseInt(e,10)),this.props.onValueChange(t)}},{key:"getYearSelectElement",value:function(e){for(var t=this.props,n=t.yearSelectOffset,r=t.yearSelectTotal,o=t.locale,a=t.prefixCls,i=t.Select,s=e-n,l=s+r,u="\u5e74"===o.year?"\u5e74":"",p=[],f=s;l>f;f++)p.push(c["default"].createElement(i.Option,{key:""+f},f+u));return c["default"].createElement(i,{className:a+"-header-year-select",onChange:this.onYearChange.bind(this),dropdownStyle:{zIndex:2e3},dropdownMenuStyle:{maxHeight:250,overflow:"auto",fontSize:12},optionLabelProp:"children",value:String(e),showSearch:!1},p)}},{key:"getMonthSelectElement",value:function(e){for(var t=this.props,n=t.locale.format.months,r=t.prefixCls,o=[],a=t.Select,i=0;12>i;i++)o.push(c["default"].createElement(a.Option,{key:""+i},n[i]));return c["default"].createElement(a,{className:r+"-header-month-select",dropdownStyle:{zIndex:2e3},dropdownMenuStyle:{maxHeight:250,overflow:"auto",overflowX:"hidden",fontSize:12},optionLabelProp:"children",value:String(e),showSearch:!1,onChange:this.onMonthChange.bind(this)},o)}},{key:"changeTypeToDate",value:function(){this.props.onTypeChange("date")}},{key:"changeTypeToMonth",value:function(){this.props.onTypeChange("month")}},{key:"render",value:function(){var e=this.props,t=e.value,n=e.locale,r=e.prefixCls,o=e.type,a=e.showTypeSwitch,i=e.headerComponents,s=t.getYear(),l=t.getMonth(),u=this.getYearSelectElement(s),p="month"===o?null:this.getMonthSelectElement(l),f=r+"-header-switcher",d=a?c["default"].createElement("span",{className:f},"date"===o?c["default"].createElement("span",{className:f+"-focus"},n.month):c["default"].createElement("span",{onClick:this.changeTypeToDate.bind(this),className:f+"-normal"},n.month),"month"===o?c["default"].createElement("span",{className:f+"-focus"},n.year):c["default"].createElement("span",{onClick:this.changeTypeToMonth.bind(this),className:f+"-normal"},n.year)):null;return c["default"].createElement("div",{className:r+"-header"},d,p,u,i)}}]),t}(u.Component);p.propTypes={value:u.PropTypes.object,locale:u.PropTypes.object,yearSelectOffset:u.PropTypes.number,yearSelectTotal:u.PropTypes.number,onValueChange:u.PropTypes.func,onTypeChange:u.PropTypes.func,Select:u.PropTypes.func,prefixCls:u.PropTypes.string,type:u.PropTypes.string,showTypeSwitch:u.PropTypes.bool,headerComponents:u.PropTypes.array},p.defaultProps={yearSelectOffset:10,yearSelectTotal:20,onValueChange:s,onTypeChange:s},t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(37),a=r(o);t["default"]={today:"Today",now:"Now",ok:"Ok",clear:"Clear",month:"Month",year:"Year",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"yyyy",dateFormat:"M/d/yyyy",monthFormat:"MMMM",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century",format:a["default"]},e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={adjustX:1,adjustY:1},r=[0,0],o={bottomLeft:{points:["tl","tl"],overflow:n,offset:[0,-3],targetOffset:r},bottomRight:{points:["tr","tr"],overflow:n,offset:[0,-3],targetOffset:r},topRight:{points:["br","br"],overflow:n,offset:[0,3],targetOffset:r},topLeft:{points:["bl","bl"],overflow:n,offset:[0,3],targetOffset:r}};t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(1),i=r(a),s=n(83),l=r(s),u=n(38),c=r(u),p=n(82),f=r(p),d=n(87),h=r(d),y=i["default"].createClass({displayName:"Calendar",propTypes:{value:a.PropTypes.any,direction:a.PropTypes.any,prefixCls:a.PropTypes.any,locale:a.PropTypes.any,selectedValue:a.PropTypes.any,formatter:a.PropTypes.any,placeholder:a.PropTypes.any,disabledDate:a.PropTypes.any,timePicker:a.PropTypes.any,disabledTime:a.PropTypes.any},render:function(){var e=this.props,t=e.value,n=e.direction,r=e.prefixCls,a=e.locale,s=e.selectedValue,u=e.formatter,p=e.placeholder,d=e.disabledDate,y=e.timePicker,v=e.disabledTime,m=r+"-range",g={locale:a,value:t,prefixCls:r},b="left"===n?0:1;return i["default"].createElement("div",{className:m+"-part "+m+"-"+n},i["default"].createElement(h["default"],{formatter:u,locale:a,prefixCls:r,timePicker:y,disabledDate:d,placeholder:p,disabledTime:v,gregorianCalendarLocale:t.locale,showClear:!1,selectedValue:s[b],onChange:e.onInputSelect}),i["default"].createElement("div",{style:{outline:"none"}},i["default"].createElement(l["default"],o({},g,{enableNext:"right"===n,enablePrev:"left"===n,onValueChange:e.onValueChange})),i["default"].createElement("div",{className:r+"-calendar-body"},i["default"].createElement(c["default"],o({},g,{selectedValue:s,dateRender:e.dateRender,onSelect:e.onSelect,onDayHover:e.onDayHover,disabledDate:d,showWeekNumber:e.showWeekNumber}))),i["default"].createElement(f["default"],o({},g,{disabledDate:e.disabledDate,timeDisabled:!s[b]||!!s.hovering,onToday:this.chooseToday}))))}});t["default"]=y,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(i)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=a,n=i,r=!0,s=u=void 0}},c=n(1),p=r(c),f=n(14),d=r(f),h=n(323),y=r(h),v={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},m=function(e){function t(e){var n=this;a(this,t),u(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e);var r=[];"value"in e?r=e.value||[]:"defaultValue"in e&&(r=e.defaultValue||[]),this.state={popupVisible:e.popupVisible,activeValue:r,value:r},["handleChange","handleSelect","handlePopupVisibleChange","setPopupVisible","getPopupDOMNode"].forEach(function(e){return n[e]=n[e].bind(n)})}return i(t,e),l(t,[{key:"componentWillReceiveProps",value:function(e){"value"in e&&this.setState({value:e.value||[]}),"popupVisible"in e&&this.setState({popupVisible:e.popupVisible})}},{key:"getPopupDOMNode",value:function(){return this.refs.trigger.getPopupDomNode()}},{key:"setPopupVisible",value:function(e){if("popupVisible"in this.props)return void this.props.onPopupVisibleChange(e);var t={popupVisible:e};e&&!this.state.visible&&(t.activeValue=this.state.value),this.setState(t)}},{key:"handleChange",value:function(e,t){this.props.onChange(e.map(function(e){return e.value}),e),this.setPopupVisible(t.visible)}},{key:"handlePopupVisibleChange",value:function(e){this.setPopupVisible(e)}},{key:"handleSelect",value:function(e){var t=o(e,[]);"value"in this.props&&delete t.value,this.setState(t)}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.transitionName,r=e.popupClassName,a=e.popupPlacement,i=o(e,["prefixCls","transitionName","popupClassName","popupPlacement"]),l=p["default"].createElement("div",null),u="";return e.options&&e.options.length>0?l=p["default"].createElement(y["default"],s({},e,{value:this.state.value,activeValue:this.state.activeValue,onSelect:this.handleSelect,onChange:this.handleChange,visible:this.state.popupVisible})):u=" "+t+"-menus-empty",p["default"].createElement(d["default"],s({ref:"trigger"},i,{popupPlacement:a,builtinPlacements:v,popupTransitionName:n,action:e.disabled?[]:["click"],popupVisible:e.disabled?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:t+"-menus",popupClassName:r+u,popup:l}),e.children)}}]),t}(p["default"].Component);m.defaultProps={options:[],onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft"},m.propTypes={value:p["default"].PropTypes.array,defaultValue:p["default"].PropTypes.array,options:p["default"].PropTypes.array.isRequired,onChange:p["default"].PropTypes.func,onPopupVisibleChange:p["default"].PropTypes.func,popupVisible:p["default"].PropTypes.bool,disabled:p["default"].PropTypes.bool,transitionName:p["default"].PropTypes.string,popupClassName:p["default"].PropTypes.string,popupPlacement:p["default"].PropTypes.string,prefixCls:p["default"].PropTypes.string},t["default"]=m,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(i)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=a,n=i,r=!0,s=u=void 0}},u=n(1),c=r(u),p=n(44),f=r(p),d=n(4),h=function(e){function t(){o(this,t),l(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return a(t,e),s(t,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(e){!e.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"onSelect",value:function(e,t){if(e&&!e.disabled){var n=this.props.activeValue;n=n.slice(0,t+1),n[t]=e.value;var r=this.getActiveOptions(n);if(e.isLeaf===!1&&!e.children&&this.props.loadData)return this.props.onSelect({activeValue:n}),void this.props.loadData(r);var o={};e.children&&e.children.length?this.props.changeOnSelect&&(this.props.onChange(r,{visible:!0}),o.value=n):(this.props.onChange(r,{visible:!1}),o.value=n),o.activeValue=n,this.props.onSelect(o)}}},{key:"getOption",value:function(e,t){var n=this.props,r=n.prefixCls,o=n.expandTrigger,a=this.onSelect.bind(this,e,t),s={onClick:a},l=r+"-menu-item";"hover"===o&&e.children&&e.children.length>0&&(s={onMouseEnter:this.delayOnSelect.bind(this,a),onMouseLeave:this.delayOnSelect.bind(this)},l+=" "+r+"-menu-item-expand"),this.isActiveOption(e)&&(l+=" "+r+"-menu-item-active",s.ref="activeItem"+t),e.disabled&&(l+=" "+r+"-menu-item-disabled");var u="";return e.title?u=e.title:"string"==typeof e.label&&(u=e.label),c["default"].createElement("li",i({key:e.value,className:l,title:u},s),e.label)}},{key:"getActiveOptions",value:function(e){var t=e||this.props.activeValue,n=this.props.options;return(0,f["default"])(n,function(e,n){return e.value===t[n]})}},{key:"getShowOptions",value:function(){var e=this.props.options,t=this.getActiveOptions().map(function(e){return e.children}).filter(function(e){return!!e});return t.unshift(e),t}},{key:"delayOnSelect",value:function(e){var t=this;this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),"function"==typeof e&&(this.delayTimer=setTimeout(function(){e(),t.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var e=this.getShowOptions().length,t=0;e>t;t++){var n=this.refs["activeItem"+t];if(n){var r=(0,d.findDOMNode)(n);r.parentNode.scrollTop=r.offsetTop}}}},{key:"isActiveOption",value:function(e){return this.props.activeValue.some(function(t){return t===e.value})}},{key:"render",value:function(){var e=this,t=this.props.prefixCls;return c["default"].createElement("div",null,this.getShowOptions().map(function(n,r){return c["default"].createElement("ul",{className:t+"-menu",key:r},n.map(function(t){return e.getOption(t,r)}))}))}}]),t}(c["default"].Component);h.defaultProps={options:[],value:[],activeValue:[],onChange:function(){},onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click",changeOnSelect:!1},h.propTypes={value:c["default"].PropTypes.array,activeValue:c["default"].PropTypes.array,options:c["default"].PropTypes.array.isRequired,prefixCls:c["default"].PropTypes.string,expandTrigger:c["default"].PropTypes.string,onChange:c["default"].PropTypes.func,onSelect:c["default"].PropTypes.func,loadData:c["default"].PropTypes.func,visible:c["default"].PropTypes.bool,changeOnSelect:c["default"].PropTypes.bool},t["default"]=h,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(322),a=r(o);t["default"]=a["default"],e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(1),p=r(c),f=n(2),d=r(f),h=function(e){function t(e){a(this,t);var n=i(this,Object.getPrototypeOf(t).call(this,e));y.call(n);var r=!1;return r="checked"in e?e.checked:e.defaultChecked,n.state={checked:r,focus:!1},n}return s(t,e),u(t,[{key:"componentWillReceiveProps",value:function(e){"checked"in e&&this.setState({checked:e.checked})}},{key:"render",value:function(){var e,t=l({},this.props);delete t.defaultChecked;var n=this.state,r=t.prefixCls,a=n.checked;"boolean"==typeof a&&(a=a?1:0);var i=(0,d["default"])((e={},o(e,t.className,!!t.className),o(e,r,1),o(e,r+"-checked",a),o(e,r+"-checked-"+a,!!a),o(e,r+"-focused",n.focus),o(e,r+"-disabled",t.disabled),e));return p["default"].createElement("span",{className:i,style:t.style},p["default"].createElement("span",{className:r+"-inner"}),p["default"].createElement("input",l({},t,{className:r+"-input",checked:!!a,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange})))}}]),t}(p["default"].Component),y=function(){var e=this;this.handleFocus=function(t){e.setState({focus:!0}),e.props.onFocus(t)},this.handleBlur=function(t){e.setState({focus:!1}),e.props.onBlur(t)},this.handleChange=function(t){var n=t.target.checked;"checked"in e.props||e.setState({checked:n?1:0}),e.props.onChange({target:l({},e.props,{checked:n}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()}})}};t["default"]=h,h.propTypes={prefixCls:p["default"].PropTypes.string,style:p["default"].PropTypes.object,type:p["default"].PropTypes.string,className:p["default"].PropTypes.string,defaultChecked:p["default"].PropTypes.oneOfType([p["default"].PropTypes.number,p["default"].PropTypes.bool]),checked:p["default"].PropTypes.oneOfType([p["default"].PropTypes.number,p["default"].PropTypes.bool]),onFocus:p["default"].PropTypes.func,onBlur:p["default"].PropTypes.func,onChange:p["default"].PropTypes.func},h.defaultProps={prefixCls:"rc-checkbox",style:{},type:"checkbox",className:"",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){}},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e){var t=e;return Array.isArray(t)||(t=t?[t]:[]),t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),l=n(327),u=r(l),c=n(330),p=r(c),f=s["default"].createClass({displayName:"Collapse",propTypes:{children:i.PropTypes.any,prefixCls:i.PropTypes.string,activeKey:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.arrayOf(i.PropTypes.string)]),defaultActiveKey:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.arrayOf(i.PropTypes.string)]),openAnimation:i.PropTypes.object,onChange:i.PropTypes.func,accordion:i.PropTypes.bool},statics:{Panel:u["default"]},getDefaultProps:function(){return{prefixCls:"rc-collapse",onChange:function(){},accordion:!1}},getInitialState:function(){var e=this.props,t=e.activeKey,n=e.defaultActiveKey,r=n;return"activeKey"in this.props&&(r=t),{openAnimation:this.props.openAnimation||(0,p["default"])(this.props.prefixCls),activeKey:a(r)}},componentWillReceiveProps:function(e){"activeKey"in e&&this.setState({activeKey:a(e.activeKey)}),"openAnimation"in e&&this.setState({openAnimation:e.openAnimation})},onClickItem:function(e){var t=this;return function(){var n=t.state.activeKey;if(t.props.accordion)n=n[0]===e?[]:[e];else{n=[].concat(o(n));var r=n.indexOf(e),a=r>-1;a?n.splice(r,1):n.push(e)}t.setActiveKey(n)}},getItems:function(){var e=this,t=this.state.activeKey,n=this.props,r=n.prefixCls,o=n.accordion;return i.Children.map(this.props.children,function(n,a){var i=n.key||String(a),l=n.props.header,c=!1;c=o?t[0]===i:t.indexOf(i)>-1;var p={key:i,header:l,isActive:c,prefixCls:r,openAnimation:e.state.openAnimation,children:n.props.children,onItemClick:e.onClickItem(i).bind(e)};return s["default"].createElement(u["default"],p)})},setActiveKey:function(e){"activeKey"in this.props||this.setState({activeKey:e}),this.props.onChange(this.props.accordion?e[0]:e)},render:function(){var e=this.props.prefixCls;return s["default"].createElement("div",{className:e},this.getItems())}});t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=n(328),s=r(i),l=n(9),u=r(l),c=a["default"].createClass({displayName:"CollapsePanel",propTypes:{children:o.PropTypes.any,openAnimation:o.PropTypes.object,prefixCls:o.PropTypes.string,header:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number,o.PropTypes.node]),isActive:o.PropTypes.bool,onItemClick:o.PropTypes.func},getDefaultProps:function(){return{isActive:!1,onItemClick:function(){}}},handleItemClick:function(){this.props.onItemClick()},render:function(){var e=this.props,t=e.prefixCls,n=e.header,r=e.children,o=e.isActive,i=t+"-header";return a["default"].createElement("div",{className:t+"-item"},a["default"].createElement("div",{className:i,onClick:this.handleItemClick,role:"tab","aria-expanded":o},a["default"].createElement("i",{className:"arrow"}),n),a["default"].createElement(u["default"],{showProp:"isActive",exclusive:!0,component:"",animation:this.props.openAnimation},a["default"].createElement(s["default"],{prefixCls:t,isActive:o},r)))}});t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),s=n(2),l=r(s),u=i["default"].createClass({displayName:"PanelContent",propTypes:{prefixCls:a.PropTypes.string,isActive:a.PropTypes.bool,children:a.PropTypes.any},shouldComponentUpdate:function(e){return this.props.isActive||e.isActive},render:function(){var e;if(this._isActived=this._isActived||this.props.isActive,!this._isActived)return null;var t=this.props,n=t.prefixCls,r=t.isActive,a=t.children,s=(0,l["default"])((e={},o(e,n+"-content",!0),o(e,n+"-content-active",r),o(e,n+"-content-inactive",!r),e));return i["default"].createElement("div",{className:s,role:"tabpanel"},i["default"].createElement("div",{className:n+"-content-box"},a))}});t["default"]=u,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(326),a=r(o);t["default"]=a["default"],e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r){var o=void 0;return(0,s["default"])(e,n,{start:function(){t?(o=e.offsetHeight,e.style.height=0):e.style.height=e.offsetHeight+"px"},active:function(){setTimeout(function(){e.style.height=(t?o:0)+"px"})},end:function(){e.style.height="",r()}})}function a(e){return{enter:function(t,n){return o(t,!0,e+"-anim",n)},leave:function(t,n){return o(t,!1,e+"-anim",n)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),s=r(i);t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){}function a(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;n=o.documentElement[r],"number"!=typeof n&&(n=o.body[r])}return n}function i(e,t){var n=e.style;["Webkit","Moz","Ms","ms"].forEach(function(e){n[e+"TransformOrigin"]=t}),n.transformOrigin=t}function s(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=a(o),n.top+=a(o,1),n}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(1),c=r(u),p=n(4),f=r(p),d=n(111),h=r(d),y=n(9),v=r(y),m=n(333),g=r(m),b=0,P=0,O=c["default"].createClass({displayName:"Dialog",propTypes:{onAfterClose:u.PropTypes.func,onClose:u.PropTypes.func,closable:u.PropTypes.bool,maskClosable:u.PropTypes.bool,visible:u.PropTypes.bool,mousePosition:u.PropTypes.object},getDefaultProps:function(){return{onAfterClose:o,onClose:o}},componentWillMount:function(){this.titleId="rcDialogTitle"+b++},componentDidMount:function(){this.componentDidUpdate({})},componentDidUpdate:function(e){var t=this.props,n=this.props.mousePosition;if(t.visible){if(!e.visible){this.lastOutSideFocusNode=document.activeElement,this.addScrollingClass(),this.refs.wrap.focus();var r=f["default"].findDOMNode(this.refs.dialog);if(n){var o=s(r);i(r,n.x-o.left+"px "+(n.y-o.top)+"px")}else i(r,"")}}else if(e.visible&&t.mask&&this.lastOutSideFocusNode){try{this.lastOutSideFocusNode.focus()}catch(a){this.lastOutSideFocusNode=null}this.lastOutSideFocusNode=null,this.removeScrollingClass()}},onAnimateLeave:function(){this.refs.wrap.style.display="none",this.props.onAfterClose()},onMaskClick:function(e){e.target===e.currentTarget&&this.props.closable&&this.props.maskClosable&&this.close(e)},onKeyDown:function(e){var t=this.props;if(t.closable&&t.keyboard&&e.keyCode===h["default"].ESC&&this.close(e),t.visible&&e.keyCode===h["default"].TAB){var n=document.activeElement,r=this.refs.wrap,o=this.refs.sentinel;e.shiftKey?n===r&&o.focus():n===this.refs.sentinel&&r.focus()}},getDialogElement:function(){var e=this.props,t=e.closable,n=e.prefixCls,r={};void 0!==e.width&&(r.width=e.width),void 0!==e.height&&(r.height=e.height);var o=void 0;e.footer&&(o=c["default"].createElement("div",{className:n+"-footer",ref:"footer"},e.footer));var a=void 0;e.title&&(a=c["default"].createElement("div",{className:n+"-header",ref:"header"},c["default"].createElement("div",{className:n+"-title",id:this.titleId},e.title)));var i=void 0;t&&(i=c["default"].createElement("button",{onClick:this.close,"aria-label":"Close",className:n+"-close"},c["default"].createElement("span",{className:n+"-close-x"})));var s=l({},e.style,r),u=this.getTransitionName(),p=c["default"].createElement(g["default"],{role:"document",ref:"dialog",style:s,className:n+" "+(e.className||""),visible:e.visible},c["default"].createElement("div",{className:n+"-content"},i,a,c["default"].createElement("div",{className:n+"-body",style:e.bodyStyle,ref:"body"},e.children),o),c["default"].createElement("div",{tabIndex:"0",ref:"sentinel",style:{width:0,height:0,overflow:"hidden"}},"sentinel"));return c["default"].createElement(v["default"],{key:"dialog",showProp:"visible",onLeave:this.onAnimateLeave,transitionName:u,component:"",transitionAppear:!0},p)},getZIndexStyle:function(){var e={},t=this.props;return void 0!==t.zIndex&&(e.zIndex=t.zIndex),e},getMaskElement:function(){var e=this.props,t=void 0;if(e.mask){var n=this.getMaskTransitionName();t=c["default"].createElement(g["default"],{style:this.getZIndexStyle(),key:"mask",className:e.prefixCls+"-mask",hiddenClassName:e.prefixCls+"-mask-hidden",visible:e.visible}),n&&(t=c["default"].createElement(v["default"],{key:"mask",showProp:"visible",transitionAppear:!0,component:"",transitionName:n},t))}return t},getMaskTransitionName:function(){var e=this.props,t=e.maskTransitionName,n=e.maskAnimation;return!t&&n&&(t=e.prefixCls+"-"+n),t},getTransitionName:function(){var e=this.props,t=e.transitionName,n=e.animation;return!t&&n&&(t=e.prefixCls+"-"+n),t},getElement:function(e){return this.refs[e]},addScrollingClass:function(){if(P++,1===P){var e=this.props,t=e.prefixCls+"-open";document.body.className+=" "+t}},removeScrollingClass:function(){if(P--,0===P){var e=this.props,t=e.prefixCls+"-open",n=document.body;n.className=n.className.replace(t,"")}},close:function(e){this.props.onClose(e)},render:function(){var e=this.props,t=e.prefixCls,n=this.getZIndexStyle();return e.visible&&(n.display=null),c["default"].createElement("div",null,this.getMaskElement(),c["default"].createElement("div",{tabIndex:"-1",onKeyDown:this.onKeyDown,className:t+"-wrap",ref:"wrap",onClick:this.onMaskClick,role:"dialog","aria-labelledby":e.title?this.titleId:null,style:n},this.getDialogElement()))}});t["default"]=O,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t); }function s(){}function l(e,t){var n={};return t.forEach(function(t){void 0!==e[t]&&(n[t]=e[t])}),n}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=n(1),f=r(p),d=n(4),h=r(d),y=n(331),v=r(y),m=function(e){function t(e){o(this,t);var n=a(this,Object.getPrototypeOf(t).call(this,e));return n.state={visible:e.visible},["onClose","cleanDialogContainer"].forEach(function(e){n[e]=n[e].bind(n)}),n}return i(t,e),c(t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentWillReceiveProps",value:function(e){"visible"in e&&this.setState({visible:e.visible})}},{key:"shouldComponentUpdate",value:function(e,t){return!(!this.state.visible&&!t.visible)}},{key:"componentDidUpdate",value:function(){this.dialogRendered&&(this.dialogInstance=h["default"].unstable_renderSubtreeIntoContainer(this,this.getDialogElement(),this.getDialogContainer()))}},{key:"componentWillUnmount",value:function(){this.dialogContainer&&(this.state.visible?h["default"].unstable_renderSubtreeIntoContainer(this,this.getDialogElement({onAfterClose:this.cleanDialogContainer,onClose:s,visible:!1}),this.dialogContainer):this.cleanDialogContainer())}},{key:"onClose",value:function(e){this.props.onClose(e)}},{key:"getDialogContainer",value:function(){return this.dialogContainer||(this.dialogContainer=document.createElement("div"),document.body.appendChild(this.dialogContainer)),this.dialogContainer}},{key:"getDialogElement",value:function(e){var t=this.props,n=l(t,["className","closable","maskClosable","title","footer","mask","keyboard","animation","transitionName","maskAnimation","maskTransitionName","mousePosition","prefixCls","style","width","height","zIndex","bodyStyle"]);return n=u({},n,{onClose:this.onClose,visible:this.state.visible},e),f["default"].createElement(v["default"],u({},n,{key:"dialog"}),t.children)}},{key:"getElement",value:function(e){return this.dialogInstance.getElement(e)}},{key:"cleanDialogContainer",value:function(){h["default"].unmountComponentAtNode(this.getDialogContainer()),document.body.removeChild(this.dialogContainer),this.dialogContainer=null}},{key:"render",value:function(){return this.dialogRendered=this.dialogRendered||this.state.visible,null}}]),t}(f["default"].Component);m.defaultProps={className:"",mask:!0,keyboard:!0,closable:!0,maskClosable:!0,prefixCls:"rc-dialog",onClose:s},m.propTypes={className:p.PropTypes.string,keyboard:p.PropTypes.bool,mask:p.PropTypes.bool,closable:p.PropTypes.bool,maskClosable:p.PropTypes.bool,prefixCls:p.PropTypes.string,visible:p.PropTypes.bool,onClose:p.PropTypes.func},t["default"]=m,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(1),i=r(a),s=i["default"].createClass({displayName:"LazyRenderBox",propTypes:{className:a.PropTypes.string,visible:a.PropTypes.bool,hiddenClassName:a.PropTypes.string},shouldComponentUpdate:function(e){return e.hiddenClassName||e.visible},render:function(){var e=this.props.className;return this.props.hiddenClassName&&!this.props.visible&&(e+=" "+this.props.hiddenClassName),i["default"].createElement("div",o({},this.props,{className:e}))}});t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(332)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(1),l=r(s),u=n(4),c=r(u),p=n(14),f=r(p),d=n(337),h=r(d),y=l["default"].createClass({displayName:"Dropdown",propTypes:{minOverlayWidthMatchTrigger:s.PropTypes.bool,onVisibleChange:s.PropTypes.func,prefixCls:s.PropTypes.string,children:s.PropTypes.any,transitionName:s.PropTypes.string,overlayClassName:s.PropTypes.string,animation:s.PropTypes.any,align:s.PropTypes.object,overlayStyle:s.PropTypes.object,placement:s.PropTypes.string,trigger:s.PropTypes.array,showAction:s.PropTypes.array,hideAction:s.PropTypes.array,getPopupContainer:s.PropTypes.func},getDefaultProps:function(){return{minOverlayWidthMatchTrigger:!0,prefixCls:"rc-dropdown",trigger:["hover"],showAction:[],hideAction:[],overlayClassName:"",overlayStyle:{},defaultVisible:!1,onVisibleChange:function(){},placement:"bottomLeft"}},getInitialState:function(){var e=this.props;return"visible"in e?{visible:e.visible}:{visible:e.defaultVisible}},componentWillReceiveProps:function(e){"visible"in e&&this.setState({visible:e.visible})},onClick:function(e){var t=this.props,n=t.overlay.props;"visible"in t||this.setState({visible:!1}),n.onClick&&n.onClick(e)},onVisibleChange:function(e){var t=this.props;"visible"in t||this.setState({visible:e}),t.onVisibleChange(e)},getMenuElement:function(){var e=this.props;return l["default"].cloneElement(e.overlay,{prefixCls:e.prefixCls+"-menu",onClick:this.onClick})},getPopupDomNode:function(){return this.refs.trigger.getPopupDomNode()},afterVisibleChange:function(e){if(e&&this.props.minOverlayWidthMatchTrigger){var t=this.getPopupDomNode(),n=c["default"].findDOMNode(this);n.offsetWidth>t.offsetWidth&&(t.style.width=n.offsetWidth+"px")}},render:function(){var e,t=this.props,n=t.prefixCls,r=t.children,s=t.transitionName,u=t.animation,c=t.align,p=t.placement,d=t.getPopupContainer,y=t.showAction,v=t.hideAction,m=t.overlayClassName,g=t.overlayStyle,b=t.trigger,P=a(t,["prefixCls","children","transitionName","animation","align","placement","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","trigger"]);return l["default"].createElement(f["default"],i({},P,(e={prefixCls:n,ref:"trigger",popupClassName:m,popupStyle:g,builtinPlacements:h["default"],action:b,showAction:y},o(e,"showAction",y),o(e,"hideAction",v),o(e,"popupPlacement",p),o(e,"popupAlign",c),o(e,"popupTransitionName",s),o(e,"popupAnimation",u),o(e,"popupVisible",this.state.visible),o(e,"afterPopupVisibleChange",this.afterVisibleChange),o(e,"popup",this.getMenuElement()),o(e,"onPopupVisibleChange",this.onVisibleChange),o(e,"getPopupContainer",d),e)),r)}});t["default"]=y,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(335),a=r(o);t["default"]=a["default"],e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={adjustX:1,adjustY:1},r=[0,0],o=t.placements={topLeft:{points:["bl","tl"],overflow:n,offset:[0,-4],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:n,offset:[0,4],targetOffset:r}};t["default"]=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=window.getComputedStyle,r=n?n(e):e.currentStyle;return r?r[t.replace(/-(\w)/gi,function(e,t){return t.toUpperCase()})]:void 0}function a(e){for(var t=e,n=void 0;"body"!==(n=t.nodeName.toLowerCase());){var r=o(t,"overflowY");if("auto"===r||"scroll"===r)return t;t=t.parentNode}return"body"===n?t.ownerDocument:t}function i(e){return(0,u["default"])(s({},e),[v])}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n(94),u=r(l),c=n(339),p=n(95),f=n(4),d=r(f),h=n(35),y=r(h),v={getForm:function(){return s({},c.mixin.getForm.call(this),{validateFieldsAndScroll:this.validateFieldsAndScroll})},validateFieldsAndScroll:function(e,t,n){function r(e,t){if(e){var n=void 0,r=void 0;for(var o in e)if(e.hasOwnProperty(o)&&e[o].instance){var i=d["default"].findDOMNode(e[o].instance),u=i.getBoundingClientRect().top;(void 0===r||r>u)&&(r=u,n=i)}if(n){var c=l.container||a(n);(0,y["default"])(n,c,{onlyScrollIfNeeded:!0})}}"function"==typeof s&&s(e,t)}var o=(0,p.getParams)(e,t,n),i=o.names,s=o.callback,l=o.options;return this.validateFields(i,l,r)}};t["default"]=i,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return(0,i["default"])(e,[s])}Object.defineProperty(t,"__esModule",{value:!0}),t.mixin=void 0;var a=n(94),i=r(a),s=t.mixin={getForm:function(){return{getFieldsValue:this.getFieldsValue,getFieldValue:this.getFieldValue,getFieldInstance:this.getFieldInstance,setFieldsValue:this.setFieldsValue,setFields:this.setFields,setFieldsInitialValue:this.setFieldsInitialValue,getFieldProps:this.getFieldProps,getFieldError:this.getFieldError,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,isSubmitting:this.isSubmitting,submit:this.submit,validateFields:this.validateFields,resetFields:this.resetFields}}};t["default"]=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){}function i(e){e.preventDefault()}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n(1),u=r(l),c=n(2),p=r(c),f=u["default"].createClass({displayName:"InputNumber",propTypes:{onChange:u["default"].PropTypes.func,onKeyDown:u["default"].PropTypes.func,onFocus:u["default"].PropTypes.func,onBlur:u["default"].PropTypes.func,max:u["default"].PropTypes.number,min:u["default"].PropTypes.number,step:u["default"].PropTypes.oneOfType([u["default"].PropTypes.number,u["default"].PropTypes.string])},getDefaultProps:function(){return{prefixCls:"rc-input-number",max:1/0,min:-(1/0),step:1,style:{},defaultValue:"",onChange:a,onKeyDown:a,onFocus:a,onBlur:a}},getInitialState:function(){var e=void 0,t=this.props;return e="value"in t?t.value:t.defaultValue,e=this.toPrecisionAsStep(e),{inputValue:e,value:e,focused:t.autoFocus}},componentDidMount:function(){this.componentDidUpdate()},componentWillReceiveProps:function(e){if("value"in e){var t=this.toPrecisionAsStep(e.value);this.setState({inputValue:t,value:t})}},componentDidUpdate:function(){this.state.focused&&document.activeElement!==this.refs.input&&this.refs.input.focus()},onChange:function(e){this.setInputValue(e.target.value.trim())},onKeyDown:function(e){var t;38===e.keyCode?this.up(e):40===e.keyCode&&this.down(e);for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;n>o;o++)r[o-1]=arguments[o];(t=this.props).onKeyDown.apply(t,[e].concat(r))},onFocus:function(){var e;this.setState({focused:!0}),(e=this.props).onFocus.apply(e,arguments)},onBlur:function(e){var t;this.setState({focused:!1});var n=this.getCurrentValidValue(e.target.value.trim());this.setValue(n);for(var r=arguments.length,o=Array(r>1?r-1:0),a=1;r>a;a++)o[a-1]=arguments[a];(t=this.props).onBlur.apply(t,[e].concat(o))},onStepMouseDown:function(e){e.preventDefault();var t=this.getCurrentValidValue(this.state.inputValue);this.setState({value:t})},getCurrentValidValue:function(e){var t=e,n=this.props;return""===t?t="":isNaN(t)?t=this.state.value:(t=Number(t),t<n.min&&(t=n.min),t>n.max&&(t=n.max)),this.toPrecisionAsStep(t)},setValue:function(e){"value"in this.props||this.setState({value:e,inputValue:e}),this.props.onChange(isNaN(e)||""===e?void 0:e)},setInputValue:function(e){this.setState({inputValue:e})},getPrecision:function(){var e=this.props,t=e.step.toString();if(t.indexOf("e-")>=0)return parseInt(t.slice(t.indexOf("-e")),10);var n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n},getPrecisionFactor:function(){var e=this.getPrecision();return Math.pow(10,e)},toPrecisionAsStep:function(e){if(isNaN(e)||""===e)return e;var t=this.getPrecision();return Number(Number(e).toFixed(t))},upStep:function(e){var t=this.props,n=t.step,r=t.min,o=this.getPrecisionFactor(),a=void 0;return a="number"==typeof e?(o*e+o*n)/o:r===-(1/0)?n:r,this.toPrecisionAsStep(a)},downStep:function(e){var t=this.props,n=t.step,r=t.min,o=this.getPrecisionFactor(),a=void 0;return a="number"==typeof e?(o*e-o*n)/o:r===-(1/0)?-n:r,this.toPrecisionAsStep(a)},step:function(e,t){t&&t.preventDefault();var n=this.props;if(!n.disabled){var r=this.state.value;if(!isNaN(r)){var o=this[e+"Step"](r);o>n.max||o<n.min||(this.setValue(o),this.setState({focused:!0}))}}},down:function(e){this.step("down",e)},up:function(e){this.step("up",e)},focus:function(){this.refs.input.focus()},render:function(){var e,t=s({},this.props);delete t.defaultValue;var n=t.prefixCls,r=(0,p["default"])((e={},o(e,n,!0),o(e,t.className,!!t.className),o(e,n+"-disabled",t.disabled),o(e,n+"-focused",this.state.focused),e)),l="",c="",f=this.state.value;if(isNaN(f))l=n+"-handler-up-disabled",c=n+"-handler-up-disabled";else{var d=Number(f);d>=t.max&&(l=n+"-handler-up-disabled"),d<=t.min&&(c=n+"-handler-up-disabled")}var h=void 0;return h=this.state.focused?this.state.inputValue:this.state.value,u["default"].createElement("div",{className:r,style:t.style},u["default"].createElement("div",{className:n+"-handler-wrap"},u["default"].createElement("a",{unselectable:"unselectable",ref:"up",onClick:l?a:this.up,onMouseDown:this.onStepMouseDown,className:n+"-handler "+n+"-handler-up "+l},u["default"].createElement("span",{unselectable:"unselectable",className:n+"-handler-up-inner",onClick:i})),u["default"].createElement("a",{unselectable:"unselectable",ref:"down",onMouseDown:this.onStepMouseDown,onClick:c?a:this.down,className:n+"-handler "+n+"-handler-down "+c},u["default"].createElement("span",{unselectable:"unselectable",className:n+"-handler-down-inner",onClick:i}))),u["default"].createElement("div",{className:n+"-input-wrap"},u["default"].createElement("input",s({},t,{style:null,className:n+"-input",autoComplete:"off",onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,autoFocus:t.autoFocus,readOnly:t.readOnly,disabled:t.disabled,max:t.max,min:t.min,name:t.name,onChange:this.onChange,ref:"input",value:h}))))}});e.exports=f},function(e,t,n){"use strict";e.exports=n(340)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=n(10),s=r(i),l=a["default"].createClass({displayName:"DOMWrap",propTypes:{tag:o.PropTypes.string},getDefaultProps:function(){return{tag:"div"}},render:function(){var e=(0,s["default"])({},this.props);e.visible||(e.className=e.className||"",e.className+=" "+e.hiddenClassName);var t=e.tag;return a["default"].createElement(t,e)}});t["default"]=l,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(1),i=r(a),s=i["default"].createClass({displayName:"Divider",getDefaultProps:function(){return{disabled:!0}},render:function(){var e=this.props,t=e.className||"",n=e.rootPrefixCls;return t+=" "+(n+"-item-divider"),i["default"].createElement("li",o({},e,{className:t}))}});t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=n(96),s=r(i),l=n(10),u=r(l),c=n(22),p=a["default"].createClass({displayName:"Menu",propTypes:{openSubMenuOnMouseEnter:o.PropTypes.bool,closeSubMenuOnMouseLeave:o.PropTypes.bool,selectedKeys:o.PropTypes.arrayOf(o.PropTypes.string),defaultSelectedKeys:o.PropTypes.arrayOf(o.PropTypes.string),defaultOpenKeys:o.PropTypes.arrayOf(o.PropTypes.string),openKeys:o.PropTypes.arrayOf(o.PropTypes.string),mode:o.PropTypes.string,onClick:o.PropTypes.func,onSelect:o.PropTypes.func,onDeselect:o.PropTypes.func,onDestroy:o.PropTypes.func,openTransitionName:o.PropTypes.string,openAnimation:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.object]),level:o.PropTypes.number,eventKey:o.PropTypes.string,selectable:o.PropTypes.bool,children:o.PropTypes.any},mixins:[s["default"]],getDefaultProps:function(){return{openSubMenuOnMouseEnter:!0,closeSubMenuOnMouseLeave:!0,selectable:!0,onClick:c.noop,onSelect:c.noop,onOpen:c.noop,onClose:c.noop,onDeselect:c.noop,defaultSelectedKeys:[],defaultOpenKeys:[]}},getInitialState:function(){var e=this.props,t=e.defaultSelectedKeys,n=e.defaultOpenKeys;return"selectedKeys"in e&&(t=e.selectedKeys||[]),"openKeys"in e&&(n=e.openKeys||[]),{selectedKeys:t,openKeys:n}},componentWillReceiveProps:function(e){var t={};"selectedKeys"in e&&(t.selectedKeys=e.selectedKeys),"openKeys"in e&&(t.openKeys=e.openKeys),this.setState(t)},onDestroy:function(e){var t=this.state,n=this.props,r=t.selectedKeys,o=t.openKeys,a=r.indexOf(e);"selectedKeys"in n||-1===a||r.splice(a,1),a=o.indexOf(e),"openKeys"in n||-1===a||o.splice(a,1)},onItemHover:function(e){var t=this,n=e.item;"inline"!==this.props.mode&&!this.props.closeSubMenuOnMouseLeave&&n.isSubMenu&&!function(){var r=t.state.activeKey,o=t.getFlatInstanceArray().filter(function(e){return e&&e.props.eventKey===r})[0];o&&o.props.open&&t.onOpenChange({key:n.props.eventKey,item:e.item,open:!0})}(),this.onCommonItemHover(e)},onSelect:function(e){var t=this.props;if(t.selectable){var n=this.state.selectedKeys,r=e.key;n=t.multiple?n.concat([r]):[r],"selectedKeys"in t||this.setState({selectedKeys:n}),t.onSelect((0,u["default"])({},e,{selectedKeys:n}))}},onClick:function(e){var t=this.props;t.onClick(e)},onOpenChange:function(e){var t=this.state.openKeys,n=this.props,r=!0;if(e.open)r=-1===t.indexOf(e.key),r&&(t=t.concat(e.key));else{var o=t.indexOf(e.key);r=-1!==o,r&&(t=t.concat(),t.splice(o,1))}if(r){"openKeys"in this.props||(this.state.openKeys=t,this.setState({openKeys:t}));var a=(0,u["default"])({openKeys:t},e);e.open?n.onOpen(a):n.onClose(a)}},onDeselect:function(e){var t=this.props;if(t.selectable){var n=this.state.selectedKeys.concat(),r=e.key,o=n.indexOf(r);-1!==o&&n.splice(o,1),"selectedKeys"in t||this.setState({selectedKeys:n}),t.onDeselect((0,u["default"])({},e,{selectedKeys:n}))}},getOpenTransitionName:function(){var e=this.props,t=e.openTransitionName,n=e.openAnimation;return t||"string"!=typeof n||(t=e.prefixCls+"-open-"+n),t},isInlineMode:function(){return"inline"===this.props.mode},lastOpenSubMenu:function(){var e=this,t=[];return this.state.openKeys.length&&(t=this.getFlatInstanceArray().filter(function(t){return t&&-1!==e.state.openKeys.indexOf(t.props.eventKey)})),t[0]},renderMenuItem:function(e,t,n){var r=(0,c.getKeyFromChildrenIndex)(e,this.props.eventKey,t),o=this.state,a={openKeys:o.openKeys,open:-1!==o.openKeys.indexOf(r),selectedKeys:o.selectedKeys,selected:-1!==o.selectedKeys.indexOf(r),openSubMenuOnMouseEnter:this.props.openSubMenuOnMouseEnter};return this.renderCommonMenuItem(e,t,n,a)},render:function(){var e=(0,u["default"])({},this.props);return e.className+=" "+e.prefixCls+"-root",this.renderRoot(e)}});t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(1),i=r(a),s=n(6),l=n(2),u=r(l),c=n(22),p=i["default"].createClass({displayName:"MenuItem",propTypes:{rootPrefixCls:a.PropTypes.string,eventKey:a.PropTypes.string,active:a.PropTypes.bool,selected:a.PropTypes.bool,disabled:a.PropTypes.bool,title:a.PropTypes.string,onSelect:a.PropTypes.func,onClick:a.PropTypes.func,onDeselect:a.PropTypes.func,parentMenu:a.PropTypes.object,onItemHover:a.PropTypes.func,onDestroy:a.PropTypes.func,onMouseEnter:a.PropTypes.func,onMouseLeave:a.PropTypes.func},getDefaultProps:function(){return{onSelect:c.noop,onMouseEnter:c.noop,onMouseLeave:c.noop}},componentWillUnmount:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)},onKeyDown:function(e){var t=e.keyCode;return t===s.KeyCode.ENTER?(this.onClick(e),!0):void 0},onMouseLeave:function(e){var t=this,n=this.props,r=n.eventKey,o=n.parentMenu;o.menuItemMouseLeaveTimer=setTimeout(function(){t.isMounted()&&n.active&&n.onItemHover({key:r,item:t,hover:!1,trigger:"mouseleave"})},30),n.onMouseLeave({key:r,domEvent:e})},onMouseEnter:function(e){var t=this.props,n=t.parentMenu;n.menuItemMouseLeaveTimer&&(clearTimeout(n.menuItemMouseLeaveTimer),n.menuItemMouseLeaveTimer=null);var r=t.eventKey;t.onItemHover({key:r,item:this,hover:!0,trigger:"mouseenter"}),t.onMouseEnter({key:r,domEvent:e})},onClick:function(e){var t=this.props,n=t.eventKey,r={key:n,keyPath:[n],item:this,domEvent:e};t.onClick(r),t.multiple?t.selected?t.onDeselect(r):t.onSelect(r):t.selected||t.onSelect(r)},getPrefixCls:function(){return this.props.rootPrefixCls+"-item"},getActiveClassName:function(){return this.getPrefixCls()+"-active"},getSelectedClassName:function(){return this.getPrefixCls()+"-selected"},getDisabledClassName:function(){return this.getPrefixCls()+"-disabled"},render:function(){var e=this.props,t={};t[this.getActiveClassName()]=!e.disabled&&e.active,t[this.getSelectedClassName()]=e.selected,t[this.getDisabledClassName()]=e.disabled,t[this.getPrefixCls()]=!0,t[e.className]=!!e.className;var n=o({},e.attribute,{title:e.title,className:(0,u["default"])(t),role:"menuitem","aria-selected":e.selected,"aria-disabled":e.disabled}),r={};e.disabled||(r={onClick:this.onClick,onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter});var a=o({},e.style);return"inline"===e.mode&&(a.paddingLeft=e.inlineIndent*e.level),i["default"].createElement("li",o({style:a},n,r),e.children)}});t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=a["default"].createClass({displayName:"MenuItemGroup",propTypes:{renderMenuItem:o.PropTypes.func,index:o.PropTypes.number},getDefaultProps:function(){return{disabled:!0}},renderInnerMenuItem:function(e,t){var n=this.props.renderMenuItem;return n(e,this.props.index,t)},render:function(){var e=this.props,t=e.className||"",n=e.rootPrefixCls;t+=" "+n+"-item-group";var r=n+"-item-group-title",o=n+"-item-group-list";return a["default"].createElement("li",{className:t},a["default"].createElement("div",{className:r},e.title),a["default"].createElement("ul",{className:o},a["default"].Children.map(e.children,this.renderInnerMenuItem)))}});i.isMenuItemGroup=!0,t["default"]=i,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(349),s=r(i),l=n(1),u=r(l),c=n(6),p=n(2),f=r(p),d=n(10),h=r(d),y=n(22),v=u["default"].createClass({displayName:"SubMenu",propTypes:{parentMenu:l.PropTypes.object,title:l.PropTypes.node,onClick:l.PropTypes.func,onOpenChange:l.PropTypes.func,rootPrefixCls:l.PropTypes.string,eventKey:l.PropTypes.string,multiple:l.PropTypes.bool,active:l.PropTypes.bool,open:l.PropTypes.bool,onSelect:l.PropTypes.func,closeSubMenuOnMouseLeave:l.PropTypes.bool,openSubMenuOnMouseEnter:l.PropTypes.bool,onDeselect:l.PropTypes.func,onDestroy:l.PropTypes.func,onItemHover:l.PropTypes.func,onMouseEnter:l.PropTypes.func,onMouseLeave:l.PropTypes.func,onTitleMouseEnter:l.PropTypes.func,onTitleMouseLeave:l.PropTypes.func,onTitleClick:l.PropTypes.func},mixins:[n(348)],getDefaultProps:function(){return{onMouseEnter:y.noop,onMouseLeave:y.noop,onTitleMouseEnter:y.noop,onTitleMouseLeave:y.noop,onTitleClick:y.noop,title:""}},getInitialState:function(){return this.isSubMenu=1,{defaultActiveFirst:!1}},componentWillUnmount:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)},onDestroy:function(e){this.props.onDestroy(e)},onKeyDown:function(e){var t=e.keyCode,n=this.menuInstance;if(t===c.KeyCode.ENTER)return this.onClick(e),this.setState({defaultActiveFirst:!0}),!0;if(t===c.KeyCode.RIGHT)return this.props.open?n.onKeyDown(e):(this.triggerOpenChange(!0),this.setState({defaultActiveFirst:!0})),!0;if(t===c.KeyCode.LEFT){var r=void 0;if(!this.props.open)return;return r=n.onKeyDown(e),r||(this.triggerOpenChange(!1),r=!0),r}return!this.props.open||t!==c.KeyCode.UP&&t!==c.KeyCode.DOWN?void 0:n.onKeyDown(e)},onOpenChange:function(e){this.props.onOpenChange(this.addKeyPath(e))},onMouseEnter:function(e){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null);var t=this.props,n=t.eventKey;t.onMouseEnter({key:n,domEvent:e})},onTitleMouseEnter:function(e){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null);var t=this.props,n=t.parentMenu;n.menuItemMouseLeaveTimer&&(clearTimeout(n.menuItemMouseLeaveTimer),n.menuItemMouseLeaveTimer=null),t.onItemHover({key:t.eventKey,item:this,hover:!0,trigger:"mouseenter"}),t.openSubMenuOnMouseEnter&&this.triggerOpenChange(!0),this.setState({defaultActiveFirst:!1}),t.onTitleMouseEnter({key:t.eventKey,domEvent:e})},onTitleClick:function(e){var t=this.props;t.onTitleClick({key:t.eventKey,domEvent:e})},onTitleMouseLeave:function(e){var t=this.props;t.onTitleMouseLeave({key:t.eventKey,domEvent:e})},onMouseLeave:function(e){var t=this;this.leaveTimer=setTimeout(function(){var n=t.props,r=n.eventKey;t.isMounted()&&(n.active&&n.onItemHover({key:r,item:t,hover:!1,trigger:"mouseleave"}),n.open&&n.closeSubMenuOnMouseLeave&&t.triggerOpenChange(!1),n.onMouseLeave({key:r,domEvent:e}))},100)},onClick:function(){this.props.openSubMenuOnMouseEnter||(this.triggerOpenChange(!this.props.open,"click"),this.setState({defaultActiveFirst:!1}))},onSubMenuClick:function(e){this.props.onClick(this.addKeyPath(e))},onSelect:function(e){this.props.onSelect(e)},onDeselect:function(e){this.props.onDeselect(e)},getPrefixCls:function(){return this.props.rootPrefixCls+"-submenu"},getActiveClassName:function(){return this.getPrefixCls()+"-active"},getDisabledClassName:function(){return this.getPrefixCls()+"-disabled"},getOpenClassName:function(){return this.props.rootPrefixCls+"-submenu-open"},saveMenuInstance:function(e){this.menuInstance=e},addKeyPath:function(e){return(0,h["default"])({},e,{keyPath:(e.keyPath||[]).concat(this.props.eventKey)})},triggerOpenChange:function(e,t){var n=this.props.eventKey;this.onOpenChange({key:n,item:this,trigger:t,open:e})},renderChildren:function(e){var t=this.props,n={mode:"horizontal"===t.mode?"vertical":t.mode,visible:t.open,level:t.level+1,inlineIndent:t.inlineIndent,focusable:!1,onClick:this.onSubMenuClick,onSelect:this.onSelect,onDeselect:this.onDeselect,onDestroy:this.onDestroy,selectedKeys:t.selectedKeys,eventKey:t.eventKey+"-menu-",openKeys:t.openKeys,openTransitionName:t.openTransitionName,openAnimation:t.openAnimation,onOpenChange:this.onOpenChange,closeSubMenuOnMouseLeave:t.closeSubMenuOnMouseLeave,defaultActiveFirst:this.state.defaultActiveFirst,multiple:t.multiple,prefixCls:t.rootPrefixCls,id:this._menuId,ref:this.saveMenuInstance};return u["default"].createElement(s["default"],n,e)},render:function(){var e;this.haveOpen=this.haveOpen||this.props.open;var t=this.props,n=this.getPrefixCls(),r=(e={},o(e,t.className,!!t.className),o(e,n+"-"+t.mode,1),e);r[this.getOpenClassName()]=this.props.open,r[this.getActiveClassName()]=t.active,r[this.getDisabledClassName()]=t.disabled,this._menuId=this._menuId||(0,c.guid)(),r[n]=!0,r[n+"-"+t.mode]=1;var i={},s={},l={};t.disabled||(i={onClick:this.onClick},s={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},l={onMouseEnter:this.onTitleMouseEnter,onClick:this.onTitleClick,onMouseLeave:this.onTitleMouseLeave});var p={};return"inline"===t.mode&&(p.paddingLeft=t.inlineIndent*t.level),u["default"].createElement("li",a({className:(0,f["default"])(r)},s),u["default"].createElement("div",a({style:p,className:n+"-title"},l,i,{"aria-open":t.open,"aria-owns":this._menuId,"aria-haspopup":"true"}),t.title),this.renderChildren(t.children))}});t["default"]=v,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(6),a=r(o),i=n(4),s=r(i);t["default"]={componentDidMount:function(){this.componentDidUpdate()},componentDidUpdate:function(){"inline"!==this.props.mode&&(this.props.open?this.bindRootCloseHandlers():this.unbindRootCloseHandlers())},handleDocumentKeyUp:function(e){e.keyCode===o.KeyCode.ESC&&this.props.onItemHover({key:this.props.eventKey,item:this,hover:!1})},handleDocumentClick:function(e){if(!a["default"].Dom.contains(s["default"].findDOMNode(this),e.target)){var t=this.props;t.onItemHover({hover:!1,item:this,key:this.props.eventKey}),this.triggerOpenChange(!1)}},bindRootCloseHandlers:function(){this._onDocumentClickListener||(this._onDocumentClickListener=a["default"].Dom.addEventListener(document,"click",this.handleDocumentClick),this._onDocumentKeyupListener=a["default"].Dom.addEventListener(document,"keyup",this.handleDocumentKeyUp))},unbindRootCloseHandlers:function(){this._onDocumentClickListener&&(this._onDocumentClickListener.remove(),this._onDocumentClickListener=null),this._onDocumentKeyupListener&&(this._onDocumentKeyupListener.remove(),this._onDocumentKeyupListener=null)},componentWillUnmount:function(){this.unbindRootCloseHandlers()}},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(1),i=r(a),s=n(96),l=r(s),u=n(10),c=r(u),p=n(22),f=n(9),d=r(f),h=i["default"].createClass({displayName:"SubPopupMenu",propTypes:{onSelect:a.PropTypes.func,onClick:a.PropTypes.func,onDeselect:a.PropTypes.func,onOpenChange:a.PropTypes.func,onDestroy:a.PropTypes.func,openTransitionName:a.PropTypes.string,openAnimation:a.PropTypes.oneOfType([a.PropTypes.string,a.PropTypes.object]),openKeys:a.PropTypes.arrayOf(a.PropTypes.string),closeSubMenuOnMouseLeave:a.PropTypes.bool,visible:a.PropTypes.bool,children:a.PropTypes.any},mixins:[l["default"]],onDeselect:function(e){this.props.onDeselect(e)},onSelect:function(e){this.props.onSelect(e)},onClick:function(e){this.props.onClick(e)},onOpenChange:function(e){this.props.onOpenChange(e)},onDestroy:function(e){this.props.onDestroy(e)},onItemHover:function(e){this.onCommonItemHover(e)},getOpenTransitionName:function(){return this.props.openTransitionName},renderMenuItem:function(e,t,n){var r=this.props,o=(0,p.getKeyFromChildrenIndex)(e,r.eventKey,t),a={openKeys:r.openKeys,selectedKeys:r.selectedKeys,open:-1!==r.openKeys.indexOf(o),selected:-1!==r.selectedKeys.indexOf(o),openSubMenuOnMouseEnter:!0};return this.renderCommonMenuItem(e,t,n,a)},render:function(){var e=this.renderFirst;if(this.renderFirst=1,this.haveOpened=this.haveOpened||this.props.visible,!this.haveOpened)return null;var t=!0;!e&&this.props.visible&&(t=!1);var n=(0, c["default"])({},this.props);n.className+=" "+n.prefixCls+"-sub";var r={};return n.openTransitionName?r.transitionName=n.openTransitionName:"object"==typeof n.openAnimation&&(r.animation=(0,c["default"])({},n.openAnimation),t||delete r.animation.appear),i["default"].createElement(d["default"],o({},r,{showProp:"visible",component:"",transitionAppear:t}),this.renderRoot(n))}});t["default"]=h,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),s=n(2),l=r(s),u=i["default"].createClass({displayName:"Notice",propTypes:{duration:a.PropTypes.number,onClose:a.PropTypes.func,children:a.PropTypes.any},getDefaultProps:function(){return{onEnd:function(){},onClose:function(){},duration:1.5,style:{right:"50%"}}},componentDidMount:function(){var e=this;this.props.duration&&(this.closeTimer=setTimeout(function(){e.close()},1e3*this.props.duration))},componentWillUnmount:function(){this.clearCloseTimer()},clearCloseTimer:function(){this.closeTimer&&(clearTimeout(this.closeTimer),this.closeTimer=null)},close:function(){this.clearCloseTimer(),this.props.onClose()},render:function(){var e,t=this.props,n=t.prefixCls+"-notice",r=(e={},o(e,""+n,1),o(e,n+"-closable",t.closable),o(e,t.className,!!t.className),e);return i["default"].createElement("div",{className:(0,l["default"])(r),style:t.style},i["default"].createElement("div",{className:n+"-content"},t.children),t.closable?i["default"].createElement("a",{tabIndex:"0",onClick:this.close,className:n+"-close"},i["default"].createElement("span",{className:n+"-close-x"})):null)}});t["default"]=u,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return"rcNotification_"+b+"_"+g++}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(1),l=r(s),u=n(4),c=r(u),p=n(9),f=r(p),d=n(6),h=n(2),y=r(h),v=n(350),m=r(v),g=0,b=Date.now(),P=l["default"].createClass({displayName:"Notification",propTypes:{prefixCls:s.PropTypes.string,transitionName:s.PropTypes.string,animation:s.PropTypes.oneOfType([s.PropTypes.string,s.PropTypes.object]),style:s.PropTypes.object},getDefaultProps:function(){return{prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}}},getInitialState:function(){return{notices:[]}},getTransitionName:function(){var e=this.props,t=e.transitionName;return!t&&e.animation&&(t=e.prefixCls+"-"+e.animation),t},add:function(e){var t=e.key=e.key||a();this.setState(function(n){var r=n.notices;return r.filter(function(e){return e.key===t}).length?void 0:{notices:r.concat(e)}})},remove:function(e){this.setState(function(t){return{notices:t.notices.filter(function(t){return t.key!==e})}})},render:function(){var e,t=this,n=this.props,r=this.state.notices.map(function(e){var r=(0,d.createChainedFunction)(t.remove.bind(t,e.key),e.onClose);return l["default"].createElement(m["default"],i({prefixCls:n.prefixCls},e,{onClose:r}),e.content)}),a=(e={},o(e,n.prefixCls,1),o(e,n.className,!!n.className),e);return l["default"].createElement("div",{className:(0,y["default"])(a),style:n.style},l["default"].createElement(f["default"],{transitionName:this.getTransitionName()},r))}});P.newInstance=function(e){var t=e||{},n=document.createElement("div");document.body.appendChild(n);var r=c["default"].render(l["default"].createElement(P,t),n);return{notice:function(e){r.add(e)},removeNotice:function(e){r.remove(e)},component:r,destroy:function(){c["default"].unmountComponentAtNode(n),document.body.removeChild(n)}}},t["default"]=P,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(i)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=a,n=i,r=!0,s=u=void 0}},s=n(1),l=n(98),u=function(e){function t(e){var n=this;r(this,t),i(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={current:e.current,_current:e.current},["_handleChange","_changeSize","_go","_buildOptionText"].forEach(function(e){return n[e]=n[e].bind(n)})}return o(t,e),a(t,[{key:"_buildOptionText",value:function(e){return e+" "+this.props.locale.items_per_page}},{key:"_changeSize",value:function(e){this.props.changeSize(Number(e))}},{key:"_handleChange",value:function(e){var t=e.target.value;this.setState({_current:t})}},{key:"_go",value:function(e){var t=e.target.value;if(""!==t){var n=Number(this.state._current);if(isNaN(n)&&(n=this.state.current),e.keyCode===l.ENTER){var r=this.props.quickGo(n);this.setState({_current:r,current:r})}}}},{key:"render",value:function(){var e=this,t=this.props,n=this.state,r=t.locale,o=t.rootPrefixCls+"-options",a=t.changeSize,i=t.quickGo,l=t.buildOptionText||this._buildOptionText,u=t.selectComponentClass,c=null,p=null;return a||i?(a&&u&&!function(){var n=u.Option,r=t.pageSize||t.pageSizeOptions[0],a=t.pageSizeOptions.map(function(e,t){return s.createElement(n,{key:t,value:e},l(e))});c=s.createElement(u,{prefixCls:t.selectPrefixCls,showSearch:!1,className:o+"-size-changer",optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:r+"",onChange:e._changeSize},a)}(),i&&(p=s.createElement("div",{className:o+"-quick-jumper"},r.jump_to,s.createElement("input",{type:"text",value:n._current,onChange:this._handleChange.bind(this),onKeyUp:this._go.bind(this)}),r.page)),s.createElement("div",{className:""+o},c,p)):null}}]),t}(s.Component);u.propTypes={changeSize:s.PropTypes.func,quickGo:s.PropTypes.func,selectComponentClass:s.PropTypes.func,current:s.PropTypes.number,pageSizeOptions:s.PropTypes.arrayOf(s.PropTypes.string),pageSize:s.PropTypes.number,buildOptionText:s.PropTypes.func,locale:s.PropTypes.object},u.defaultProps={pageSizeOptions:["10","20","30","40"]},e.exports=u},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(i)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=a,n=i,r=!0,s=u=void 0}},s=n(1),l=function(e){function t(){r(this,t),i(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return o(t,e),a(t,[{key:"render",value:function(){var e=this.props,t=e.locale,n=e.rootPrefixCls+"-item",r=n+" "+n+"-"+e.page;e.active&&(r=r+" "+n+"-active");var o=void 0;return o=1===e.page?t.first_page:e.last?t.last_page+": "+e.page:e.page,s.createElement("li",{title:o,className:r,onClick:e.onClick},s.createElement("a",null,e.page))}}]),t}(s.Component);l.propTypes={page:s.PropTypes.number,active:s.PropTypes.bool,last:s.PropTypes.bool,locale:s.PropTypes.object},e.exports=l},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(){}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(i)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=a,n=i,r=!0,s=u=void 0}},l=n(1),u=n(353),c=n(352),p=n(98),f=n(99),d=function(e){function t(e){var n=this;r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e);var o=e.onChange!==a,i="current"in e;i&&!o&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var l=e.defaultCurrent;"current"in e&&(l=e.current);var u=e.defaultPageSize;"pageSize"in e&&(u=e.pageSize),this.state={current:l,_current:l,pageSize:u},["render","_handleChange","_handleKeyUp","_handleKeyDown","_changePageSize","_isValid","_prev","_next","_hasPrev","_hasNext","_jumpPrev","_jumpNext"].forEach(function(e){return n[e]=n[e].bind(n)})}return o(t,e),i(t,[{key:"componentWillReceiveProps",value:function(e){if("current"in e&&this.setState({current:e.current,_current:e.current}),"pageSize"in e){var t={},n=this.state.current,r=this._calcPage(e.pageSize);n=n>r?r:n,"current"in e||(t.current=n,t._current=n),t.pageSize=e.pageSize,this.setState(t)}}},{key:"_calcPage",value:function(e){var t=e;return"undefined"==typeof t&&(t=this.state.pageSize),Math.floor((this.props.total-1)/t)+1}},{key:"_isValid",value:function(e){return"number"==typeof e&&e>=1&&e!==this.state.current}},{key:"_handleKeyDown",value:function(e){e.keyCode!==p.ARROW_UP&&e.keyCode!==p.ARROW_DOWN||e.preventDefault()}},{key:"_handleKeyUp",value:function(e){var t=e.target.value,n=void 0;n=""===t?t:isNaN(Number(t))?this.state._current:Number(t),this.setState({_current:n}),e.keyCode===p.ENTER?this._handleChange(n):e.keyCode===p.ARROW_UP?this._handleChange(n-1):e.keyCode===p.ARROW_DOWN&&this._handleChange(n+1)}},{key:"_changePageSize",value:function(e){var t=this.state.current,n=this._calcPage(e);t=t>n?n:t,"number"==typeof e&&("pageSize"in this.props||this.setState({pageSize:e}),"current"in this.props||this.setState({current:t,_current:t})),this.props.onShowSizeChange(t,e)}},{key:"_handleChange",value:function(e){var t=e;return this._isValid(t)?(t>this._calcPage()&&(t=this._calcPage()),"current"in this.props||this.setState({current:t,_current:t}),this.props.onChange(t),t):this.state.current}},{key:"_prev",value:function(){this._hasPrev()&&this._handleChange(this.state.current-1)}},{key:"_next",value:function(){this._hasNext()&&this._handleChange(this.state.current+1)}},{key:"_jumpPrev",value:function(){this._handleChange(Math.max(1,this.state.current-5))}},{key:"_jumpNext",value:function(){this._handleChange(Math.min(this._calcPage(),this.state.current+5))}},{key:"_hasPrev",value:function(){return this.state.current>1}},{key:"_hasNext",value:function(){return this.state.current<this._calcPage()}},{key:"render",value:function(){var e=this.props,t=e.locale,n=e.prefixCls,r=this._calcPage(),o=[],a=null,i=null,s=null,p=null;if(e.simple)return l.createElement("ul",{className:n+" "+n+"-simple "+e.className},l.createElement("li",{title:t.prev_page,onClick:this._prev,className:(this._hasPrev()?"":n+"-disabled ")+(n+"-prev")},l.createElement("a",null)),l.createElement("div",{title:this.state.current+"/"+r,className:n+"-simple-pager"},l.createElement("input",{type:"text",value:this.state._current,onKeyDown:this._handleKeyDown,onKeyUp:this._handleKeyUp,onChange:this._handleKeyUp}),l.createElement("span",{className:n+"-slash"},"\uff0f"),r),l.createElement("li",{title:t.next_page,onClick:this._next,className:(this._hasNext()?"":n+"-disabled ")+(n+"-next")},l.createElement("a",null)));if(9>=r)for(var f=1;r>=f;f++){var d=this.state.current===f;o.push(l.createElement(u,{locale:t,rootPrefixCls:n,onClick:this._handleChange.bind(this,f),key:f,page:f,active:d}))}else{a=l.createElement("li",{title:t.prev_5,key:"prev",onClick:this._jumpPrev,className:n+"-jump-prev"},l.createElement("a",null)),i=l.createElement("li",{title:t.next_5,key:"next",onClick:this._jumpNext,className:n+"-jump-next"},l.createElement("a",null)),p=l.createElement(u,{locale:e.locale,last:!0,rootPrefixCls:n,onClick:this._handleChange.bind(this,r),key:r,page:r,active:!1}),s=l.createElement(u,{locale:e.locale,rootPrefixCls:n,onClick:this._handleChange.bind(this,1),key:1,page:1,active:!1});var h=this.state.current,y=Math.max(1,h-2),v=Math.min(h+2,r);2>=h-1&&(v=5),2>=r-h&&(y=r-4);for(var f=y;v>=f;f++){var d=h===f;o.push(l.createElement(u,{locale:e.locale,rootPrefixCls:n,onClick:this._handleChange.bind(this,f),key:f,page:f,active:d}))}h-1>=4&&o.unshift(a),r-h>=4&&o.push(i),1!==y&&o.unshift(s),v!==r&&o.push(p)}var m=null;return e.showTotal&&(m=l.createElement("span",{className:n+"-total-text"},e.showTotal(e.total))),l.createElement("ul",{className:n+" "+e.className,unselectable:"unselectable"},m,l.createElement("li",{title:t.prev_page,onClick:this._prev,className:(this._hasPrev()?"":n+"-disabled ")+(n+"-prev")},l.createElement("a",null)),o,l.createElement("li",{title:t.next_page,onClick:this._next,className:(this._hasNext()?"":n+"-disabled ")+(n+"-next")},l.createElement("a",null)),l.createElement(c,{locale:e.locale,rootPrefixCls:n,selectComponentClass:e.selectComponentClass,selectPrefixCls:e.selectPrefixCls,changeSize:this.props.showSizeChanger?this._changePageSize.bind(this):null,current:this.state.current,pageSize:this.state.pageSize,pageSizeOptions:this.props.pageSizeOptions,quickGo:this.props.showQuickJumper?this._handleChange.bind(this):null}))}}]),t}(l.Component);d.propTypes={current:l.PropTypes.number,defaultCurrent:l.PropTypes.number,total:l.PropTypes.number,pageSize:l.PropTypes.number,defaultPageSize:l.PropTypes.number,onChange:l.PropTypes.func,showSizeChanger:l.PropTypes.bool,onShowSizeChange:l.PropTypes.func,selectComponentClass:l.PropTypes.func,showQuickJumper:l.PropTypes.bool,pageSizeOptions:l.PropTypes.arrayOf(l.PropTypes.string),showTotal:l.PropTypes.func,locale:l.PropTypes.object},d.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:a,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,showQuickJumper:!1,showSizeChanger:!1,onShowSizeChange:a,locale:f},e.exports=d},function(e,t,n){"use strict";e.exports=n(354)},function(e,t,n){"use strict";var r=n(10),o=n(1),a={strokeWidth:1,strokeColor:"#3FC7FA",trailWidth:1,trailColor:"#D9D9D9"},i=o.createClass({displayName:"Line",render:function(){var e=r({},this.props),t={strokeDasharray:"100px, 100px",strokeDashoffset:100-e.percent+"px",transition:"stroke-dashoffset 0.6s ease 0s, stroke 0.6s linear"};["strokeWidth","strokeColor","trailWidth","trailColor"].forEach(function(t){return"trailWidth"===t&&!e.trailWidth&&e.strokeWidth?void(e.trailWidth=e.strokeWidth):"strokeWidth"===t&&e.strokeWidth&&(!parseFloat(e.strokeWidth)||parseFloat(e.strokeWidth)>100||parseFloat(e.strokeWidth)<0)?void(e[t]=a[t]):void(e[t]||(e[t]=a[t]))});var n=e.strokeWidth,i=n/2,s=100-n/2,l="M "+i+","+i+" L "+s+","+i,u="0 0 100 "+n;return o.createElement("svg",{className:"rc-progress-line",viewBox:u,preserveAspectRatio:"none"},o.createElement("path",{className:"rc-progress-line-trail",d:l,strokeLinecap:"round",stroke:e.trailColor,strokeWidth:e.trailWidth,fillOpacity:"0"}),o.createElement("path",{className:"rc-progress-line-path",d:l,strokeLinecap:"round",stroke:e.strokeColor,strokeWidth:e.strokeWidth,fillOpacity:"0",style:t}))}}),s=o.createClass({displayName:"Circle",render:function(){var e=r({},this.props),t=e.strokeWidth,n=50-t/2,i="M 50,50 m 0,-"+n+"\n a "+n+","+n+" 0 1 1 0,"+2*n+"\n a "+n+","+n+" 0 1 1 0,-"+2*n,s=2*Math.PI*n,l={strokeDasharray:s+"px "+s+"px",strokeDashoffset:(100-e.percent)/100*s+"px",transition:"stroke-dashoffset 0.6s ease 0s, stroke 0.6s ease"};return["strokeWidth","strokeColor","trailWidth","trailColor"].forEach(function(t){return"trailWidth"===t&&!e.trailWidth&&e.strokeWidth?void(e.trailWidth=e.strokeWidth):void(e[t]||(e[t]=a[t]))}),o.createElement("svg",{className:"rc-progress-circle",viewBox:"0 0 100 100"},o.createElement("path",{className:"rc-progress-circle-trail",d:i,stroke:e.trailColor,strokeWidth:e.trailWidth,fillOpacity:"0"}),o.createElement("path",{className:"rc-progress-circle-path",d:i,strokeLinecap:"round",stroke:e.strokeColor,strokeWidth:e.strokeWidth,fillOpacity:"0",style:l}))}});e.exports={Line:i,Circle:s}},function(e,t,n){"use strict";e.exports=n(356)},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(i)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=a,n=i,r=!0,s=u=void 0}},u=n(1),c=o(u),p=n(4),f=n(361),d=n(359),h=o(d),y={easeInElastic:function(e,t,n){var r=e,o=t>=1?t:1,a=(n||1)/(1>t?t:1),i=a/Math.PI*2*(Math.asin(1/o)||0);return-(o*Math.pow(2,10*(r-=1))*Math.sin((r-i)*a))},easeOutElastic:function(e,t,n){var r=t>=1?t:1,o=(n||1)/(1>t?t:1),a=o/Math.PI*2*(Math.asin(1/r)||0);return r*Math.pow(2,-10*e)*Math.sin((e-a)*o)+1},easeInOutElastic:function(e,t,n){var r=e,o=t>=1?t:1,a=(n||1)/(1>t?t:1),i=a/Math.PI*2*(Math.asin(1/o)||0);return r*=2,1>r?-.5*(o*Math.pow(2,10*(r-=1))*Math.sin((r-i)*a)):o*Math.pow(2,-10*(r-=1))*Math.sin((r-i)*a)*.5+1},easeInBounce:function(e){var t=e,n=1-t;return 1/2.75>n?1-7.5625*t*t:2/2.75>t?1-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)},easeOutBounce:function(e){var t=e;return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(e){var t=e,n=.5>t;return t=n?1-2*t:2*t-1,t=1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,n?.5*(1-t):.5*t+.5}},v=void 0;"undefined"!=typeof document&&"undefined"!=typeof window?(v=n(440),Object.keys(y).forEach(function(e){v.Easings&&(v.Easings[e]=y[e])})):v=function(){var e=arguments[arguments.length-1];r(function(){e()})};var m={easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]},g="ant-queue-anim-placeholder-",b=function(e){function t(){var e=this;a(this,t),l(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments),this.keysToEnter=[],this.keysToLeave=[],this.keysAnimating=[],this.placeholderTimeoutIds={};var n=(0,f.toArrayChildren)((0,f.getChildrenFromProps)(this.props));n.forEach(function(t){t&&t.key&&e.keysToEnter.push(t.key)}),this.originalChildren=(0,f.toArrayChildren)((0,f.getChildrenFromProps)(this.props)),this.state={children:n,childrenShow:{}},["performEnter","performLeave","enterBegin","leaveComplete"].forEach(function(t){return e[t]=e[t].bind(e)})}return i(t,e),s(t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=(0,f.toArrayChildren)(e.children),r=this.originalChildren,o=(0,f.mergeChildren)(r,n);this.keysToEnter=[],this.keysToLeave=[],this.keysAnimating=[],this.setState({children:o}),n.forEach(function(e){if(e){var n=e.key,o=(0,f.findChildInChildrenByKey)(r,n);!o&&n&&t.keysToEnter.push(n)}}),r.forEach(function(e){if(e){var r=e.key,o=(0,f.findChildInChildrenByKey)(n,r);!o&&r&&t.keysToLeave.push(r)}})}},{key:"componentDidUpdate",value:function(){this.originalChildren=(0,f.toArrayChildren)((0,f.getChildrenFromProps)(this.props));var e=Array.prototype.slice.call(this.keysToEnter),t=Array.prototype.slice.call(this.keysToLeave);0===this.keysAnimating.length&&(this.keysAnimating=e.concat(t)),e.forEach(this.performEnter),t.forEach(this.performLeave)}},{key:"componentWillUnmount",value:function(){var e=this;this.originalChildren&&this.originalChildren.length>0&&(this.originalChildren.forEach(function(t){e.refs[t.key]&&v((0,p.findDOMNode)(e.refs[t.key]),"stop")}),Object.keys(this.placeholderTimeoutIds).forEach(function(t){clearTimeout(e.placeholderTimeoutIds[t])}))}},{key:"getVelocityConfig",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];return this.props.animConfig?f.transformArguments.apply(void 0,[this.props.animConfig].concat(n))[e]:h["default"][f.transformArguments.apply(void 0,[this.props.type].concat(n))[e]]}},{key:"getVelocityEnterConfig",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return this.getVelocityConfig.apply(this,[0].concat(t))}},{key:"getVelocityLeaveConfig",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=this.getVelocityConfig.apply(this,[1].concat(t)),o={};return Object.keys(r).forEach(function(e){Array.isArray(r[e])?o[e]=Array.prototype.slice.call(r[e]).reverse():o[e]=r[e]}),o}},{key:"getVelocityEasing",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return f.transformArguments.apply(void 0,[this.props.ease].concat(t)).map(function(e){return"string"==typeof e?m[e]||e:void 0})}},{key:"performEnter",value:function(e,t){var n=(0,f.transformArguments)(this.props.interval,e,t)[0],r=(0,f.transformArguments)(this.props.delay,e,t)[0];this.placeholderTimeoutIds[e]=setTimeout(this.performEnterBegin.bind(this,e,t),n*t+r),this.keysToEnter.indexOf(e)>=0&&this.keysToEnter.splice(this.keysToEnter.indexOf(e),1)}},{key:"performEnterBegin",value:function(e,t){var n=this.state.childrenShow;n[e]=!0,this.setState({childrenShow:n},this.realPerformEnter.bind(this,e,t))}},{key:"realPerformEnter",value:function(e,t){var n=(0,p.findDOMNode)(this.refs[e]);if(n){var r=(0,f.transformArguments)(this.props.duration,e,t)[0];n.style.visibility="hidden",v(n,"stop"),v(n,this.getVelocityEnterConfig(e,t),{duration:r,easing:this.getVelocityEasing(e,t)[0],visibility:"visible",begin:this.enterBegin.bind(this,e),complete:this.enterComplete.bind(this,e)})}}},{key:"performLeave",value:function(e,t){clearTimeout(this.placeholderTimeoutIds[e]),delete this.placeholderTimeoutIds[e];var n=(0,p.findDOMNode)(this.refs[e]);if(n){var r=(0,f.transformArguments)(this.props.interval,e,t)[1],o=(0,f.transformArguments)(this.props.delay,e,t)[1],a=(0,f.transformArguments)(this.props.duration,e,t)[1],i=this.props.leaveReverse?this.keysToLeave.length-t-1:t;v(n,"stop"),v(n,this.getVelocityLeaveConfig(e,t),{delay:r*i+o,duration:a,easing:this.getVelocityEasing(e,t)[1],begin:this.leaveBegin.bind(this),complete:this.leaveComplete.bind(this,e)})}}},{key:"enterBegin",value:function(e,t){var n=this;t.forEach(function(e){var t=n.props.animatingClassName;e.className=e.className.replace(t[1],""),-1===e.className.indexOf(t[0])&&(e.className+=" "+t[0])})}},{key:"enterComplete",value:function(e,t){var n=this;this.keysAnimating.indexOf(e)>=0&&this.keysAnimating.splice(this.keysAnimating.indexOf(e),1),t.forEach(function(e){e.className=e.className.replace(n.props.animatingClassName[0],"").trim()})}},{key:"leaveBegin",value:function(e){var t=this;e.forEach(function(e){var n=t.props.animatingClassName;e.className=e.className.replace(n[0],""),-1===e.className.indexOf(n[1])&&(e.className+=" "+n[1])})}},{key:"leaveComplete",value:function(e,t){var n=this;if(!(this.keysAnimating.indexOf(e)<0)){this.keysAnimating.splice(this.keysAnimating.indexOf(e),1);var r=this.state.childrenShow;r[e]=!1,this.keysToLeave.indexOf(e)>=0&&this.keysToLeave.splice(this.keysToLeave.indexOf(e),1);var o=this.keysToLeave.some(function(e){return r[e]});if(!o){var a=(0,f.toArrayChildren)((0,f.getChildrenFromProps)(this.props));this.setState({children:a,childrenShow:r})}t.forEach(function(e){e.className=e.className.replace(n.props.animatingClassName[1],"").trim()})}}},{key:"render",value:function(){var e=this,t=(0,f.toArrayChildren)(this.state.children).map(function(t){return t&&t.key?e.state.childrenShow[t.key]?(0,u.cloneElement)(t,{ref:t.key,key:t.key}):(0,u.createElement)("div",{ref:g+t.key,key:g+t.key}):t});return(0,u.createElement)(this.props.component,this.props,t)}}]),t}(c["default"].Component),P=c["default"].PropTypes.oneOfType([c["default"].PropTypes.number,c["default"].PropTypes.array]),O=c["default"].PropTypes.oneOfType([c["default"].PropTypes.string,c["default"].PropTypes.array]),C=c["default"].PropTypes.oneOfType([c["default"].PropTypes.object,c["default"].PropTypes.array]),T=c["default"].PropTypes.oneOfType([c["default"].PropTypes.func,c["default"].PropTypes.string]),w=c["default"].PropTypes.oneOfType([c["default"].PropTypes.func,O]),x=c["default"].PropTypes.oneOfType([c["default"].PropTypes.func,C]),E=c["default"].PropTypes.oneOfType([c["default"].PropTypes.func,P]);b.propTypes={component:T,interval:P,duration:E,delay:E,type:w,animConfig:x,ease:w,leaveReverse:c["default"].PropTypes.bool,animatingClassName:c["default"].PropTypes.array},b.defaultProps={component:"div",interval:100,duration:500,delay:0,type:"right",animConfig:null,ease:"easeOutQuart",leaveReverse:!1,animatingClassName:["queue-anim-entering","queue-anim-leaving"]},t["default"]=b,e.exports=t["default"]}).call(t,n(42).setImmediate)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={left:{opacity:[1,0],translateX:[0,-30]},top:{opacity:[1,0],translateY:[0,-30]},right:{opacity:[1,0],translateX:[0,30]},bottom:{opacity:[1,0],translateY:[0,30]},alpha:{opacity:[1,0]},scale:{opacity:[1,0],scale:[1,0]},scaleBig:{opacity:[1,0],scale:[1,2]},scaleX:{opacity:[1,0],scaleX:[1,0]},scaleY:{opacity:[1,0],scaleY:[1,0]}},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(358),a=r(o);t["default"]=a["default"],e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=[];return c["default"].Children.forEach(e,function(e){t.push(e)}),t}function a(e,t){var n=null;return e&&e.forEach(function(e){!n&&e&&e.key===t&&(n=e)}),n}function i(e,t){var n=[],r={},o=[];return e.forEach(function(e){e&&(a(t,e.key)?o.length&&(r[e.key]=o,o=[]):e.key&&o.push(e))}),t.forEach(function(e){e&&(r.hasOwnProperty(e.key)&&(n=n.concat(r[e.key])),n.push(e))}),o.forEach(function(t){var r=e.indexOf(t);r>=0&&n.splice(r,0,t)}),n}function s(e,t,n){var r=void 0;return r="function"==typeof e?e({key:t,index:n}):e,Array.isArray(r)&&2===r.length?r:[r,r]}function l(e){return e&&e.children}Object.defineProperty(t,"__esModule",{value:!0}),t.toArrayChildren=o,t.findChildInChildrenByKey=a,t.mergeChildren=i,t.transformArguments=s,t.getChildrenFromProps=l;var u=n(1),c=r(u)},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(1),a=n(93),i=o.createClass({displayName:"Radio",getDefaultProps:function(){return{prefixCls:"rc-radio",type:"radio"}},render:function(){return o.createElement(a,r({},this.props,{ref:"checkbox"}))}});e.exports=i},function(e,t,n){"use strict";e.exports=n(362)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){}Object.defineProperty(t,"__esModule",{value:!0});var a=n(4),i=r(a),s=n(1),l=r(s),u=n(367),c=n(365),p=r(c),f=l["default"].createClass({displayName:"Rate",propTypes:{disabled:s.PropTypes.bool,value:s.PropTypes.number,defaultValue:s.PropTypes.number,count:s.PropTypes.number,allowHalf:s.PropTypes.bool,style:s.PropTypes.object,prefixCls:s.PropTypes.string,onChange:s.PropTypes.func},getDefaultProps:function(){return{defaultValue:0,count:5,allowHalf:!1,style:{},prefixCls:"rc-rate",onChange:o}},getInitialState:function(){var e=this.props.value;return void 0===e&&(e=this.props.defaultValue),{value:e}},componentWillReceiveProps:function(e){if("value"in e){var t=e.value;void 0===t&&(t=e.defaultValue),this.setState({value:t})}},onHover:function(e,t){var n=this.getStarValue(t,e.pageX);this.setState({hoverValue:n})},onMouseLeave:function(){this.setState({hoverValue:void 0})},onClick:function(e,t){var n=this.getStarValue(t,e.pageX);"value"in this.props||this.setState({value:n}),this.onMouseLeave(),this.props.onChange(n)},getStarDOM:function(e){return i["default"].findDOMNode(this.refs["star_"+e])},getStarValue:function(e,t){var n=e+1;if(this.props.allowHalf){var r=(0,u.getOffsetLeft)(this.getStarDOM(0)),o=(0,u.getOffsetLeft)(this.getStarDOM(1))-r;o/2>t-r-o*e&&(n-=.5)}return n},render:function(){for(var e=this.props,t=e.count,n=e.allowHalf,r=e.style,o=e.prefixCls,a=e.disabled,i=this.state,s=i.value,u=i.hoverValue,c=[],f=a?o+"-disabled":"",d=0;t>d;d++)c.push(l["default"].createElement(p["default"],{ref:"star_"+d,index:d,disabled:a,prefixCls:o+"-star",allowHalf:n,value:void 0===u?s:u,onClick:this.onClick,onHover:this.onHover,key:d}));return l["default"].createElement("ul",{className:o+" "+f,style:r,onMouseLeave:a?null:this.onMouseLeave},c)}});t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=a["default"].createClass({displayName:"Star",propTypes:{value:o.PropTypes.number,index:o.PropTypes.number,prefixCls:o.PropTypes.string,allowHalf:o.PropTypes.bool,disabled:o.PropTypes.bool,onHover:o.PropTypes.func,onClick:o.PropTypes.func},onHover:function(e){this.props.onHover(e,this.props.index)},onClick:function(e){this.props.onClick(e,this.props.index)},getClassName:function(){var e=this.props,t=e.index,n=e.value,r=e.prefixCls,o=e.allowHalf,a=t+1;return o&&n+.5===a?r+" "+r+"-half "+r+"-active":n>=a?r+" "+r+"-full":r+" "+r+"-zero"},render:function(){var e=this.onHover,t=this.onClick,n=this.props,r=n.disabled,o=n.prefixCls;return a["default"].createElement("li",{className:this.getClassName(),onClick:r?null:t,onMouseMove:r?null:e},a["default"].createElement("div",{className:o+"-content" }))}});t["default"]=i,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(364),a=r(o);t["default"]=a["default"],e.exports=t["default"]},function(e,t){"use strict";function n(e,t){var n=t?e.pageYOffset:e.pageXOffset,r=t?"scrollTop":"scrollLeft";if("number"!=typeof n){var o=e.document;n=o.documentElement[r],"number"!=typeof n&&(n=o.body[r])}return n}function r(e){var t=void 0,n=void 0,r=void 0,o=e.ownerDocument,a=o.body,i=o&&o.documentElement;return t=e.getBoundingClientRect(),n=t.left,r=t.top,n-=i.clientLeft||a.clientLeft||0,r-=i.clientTop||a.clientTop||0,{left:n,top:r}}function o(e){var t=r(e),o=e.ownerDocument,a=o.defaultView||o.parentWindow;return t.left+=n(a),t.left}Object.defineProperty(t,"__esModule",{value:!0}),t.getOffsetLeft=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),s=r(i),l=n(4),u=n(41),c=n(21),p=r(c),f=n(35),d=r(f),h=s["default"].createClass({displayName:"DropdownMenu",propTypes:{defaultActiveFirstOption:i.PropTypes.bool,value:i.PropTypes.any,dropdownMenuStyle:i.PropTypes.object,multiple:i.PropTypes.bool,onPopupFocus:i.PropTypes.func,onMenuDeSelect:i.PropTypes.func,onMenuSelect:i.PropTypes.func,prefixCls:i.PropTypes.string,menuItems:i.PropTypes.any,inputValue:i.PropTypes.string,visible:i.PropTypes.bool},componentWillMount:function(){this.lastInputValue=this.props.inputValue},componentDidMount:function(){this.scrollActiveItemToView(),this.lastVisible=this.props.visible},shouldComponentUpdate:function(e){return e.visible||(this.lastVisible=!1),e.visible},componentDidUpdate:function(e){var t=this.props;!e.visible&&t.visible&&this.scrollActiveItemToView(),this.lastVisible=t.visible,this.lastInputValue=t.inputValue},scrollActiveItemToView:function(){var e=(0,l.findDOMNode)(this.firstActiveItem);e&&(0,d["default"])(e,(0,l.findDOMNode)(this.refs.menu),{onlyScrollIfNeeded:!0})},renderMenu:function(){var e=this,t=this.props,n=t.menuItems,r=t.defaultActiveFirstOption,l=t.value,f=t.prefixCls,d=t.multiple,h=t.onMenuSelect,y=t.inputValue;if(n&&n.length){var v=function(){var o={};d?(o.onDeselect=t.onMenuDeselect,o.onSelect=h):o.onClick=h;var v=(0,u.getSelectKeys)(n,l),m={},g=n;return v.length&&!function(){t.visible&&!e.lastVisible&&(m.activeKey=v[0]);var r=!1,o=function(t){return r||-1===v.indexOf(t.key)?t:(r=!0,(0,i.cloneElement)(t,{ref:function(t){e.firstActiveItem=t}}))};g=n.map(function(e){if(e.type===c.ItemGroup){var t=e.props.children.map(o);return(0,i.cloneElement)(e,{},t)}return o(e)})}(),y!==e.lastInputValue&&(m.activeKey=""),{v:s["default"].createElement(p["default"],a({ref:"menu",style:e.props.dropdownMenuStyle,defaultActiveFirst:r},m,{multiple:d,focusable:!1},o,{selectedKeys:v,prefixCls:f+"-menu"}),g)}}();if("object"===("undefined"==typeof v?"undefined":o(v)))return v.v}return null},render:function(){return s["default"].createElement("div",{style:{overflow:"auto"},onFocus:this.props.onPopupFocus,onMouseDown:u.preventDefaultEvent},this.renderMenu())}});t["default"]=h,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(1),i=r(a),s=n(40),l=r(s),u=n(41),c=n(21);t["default"]={filterOption:function p(e,t){if(!e)return!0;var p=this.props.filterOption;return p?t.props.disabled?!1:p.call(this,e,t):!0},renderFilterOptions:function(e){return this.renderFilterOptionsFromChildren(this.props.children,!0,e)},renderFilterOptionsFromChildren:function(e,t,n){var r=this,a=[],s=this.props,p=void 0===n?this.state.inputValue:n,f=[],d=s.tags;if(i["default"].Children.forEach(e,function(e){if(e.type!==l["default"]){var t=(0,u.getValuePropValue)(e);r.filterOption(p,e)&&a.push(i["default"].createElement(c.Item,o({style:u.UNSELECTABLE_STYLE,attribute:u.UNSELECTABLE_ATTRIBUTE,value:t,key:t},e.props))),d&&!e.props.disabled&&f.push(t)}else{var n=r.renderFilterOptionsFromChildren(e.props.children,!1);if(n.length){var s=e.props.label,h=e.key;h||"string"!=typeof s?!s&&h&&(s=h):h=s,a.push(i["default"].createElement(c.ItemGroup,{key:h,title:s},n))}}}),d){var h=this.state.value||[];if(h=h.filter(function(e){return-1===f.indexOf(e.key)&&(!p||String(e.key).indexOf(String(p))>-1)}),a=a.concat(h.map(function(e){var t=e.key;return i["default"].createElement(c.Item,{style:u.UNSELECTABLE_STYLE,attribute:u.UNSELECTABLE_ATTRIBUTE,value:t,key:t},t)})),p){var y=a.every(function(e){return(0,u.getValuePropValue)(e)!==p});y&&a.unshift(i["default"].createElement(c.Item,{style:u.UNSELECTABLE_STYLE,attribute:u.UNSELECTABLE_ATTRIBUTE,value:p,key:p},p))}}return!a.length&&t&&s.notFoundContent&&(a=[i["default"].createElement(c.Item,{style:u.UNSELECTABLE_STYLE,attribute:u.UNSELECTABLE_ATTRIBUTE,disabled:!0,value:"NOT_FOUND",key:"NOT_FOUND"},s.notFoundContent)]),a}},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),l=r(s),u=function(e){function t(){return o(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return i(t,e),t}(l["default"].Component);t["default"]=u,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){}function i(e,t){return String((0,C.getPropValue)(t,this.props.optionFilterProp)).indexOf(e)>-1}function s(e,t){this[e]=t}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(1),c=r(u),p=n(4),f=r(p),d=n(6),h=n(2),y=r(h),v=n(40),m=r(v),g=n(9),b=r(g),P=n(70),O=r(P),C=n(41),T=n(372),w=r(T),x=n(369),E=r(x),S=c["default"].createClass({displayName:"Select",propTypes:{defaultActiveFirstOption:u.PropTypes.bool,multiple:u.PropTypes.bool,filterOption:u.PropTypes.any,showSearch:u.PropTypes.bool,disabled:u.PropTypes.bool,allowClear:u.PropTypes.bool,showArrow:u.PropTypes.bool,tags:u.PropTypes.bool,prefixCls:u.PropTypes.string,className:u.PropTypes.string,transitionName:u.PropTypes.string,optionLabelProp:u.PropTypes.string,optionFilterProp:u.PropTypes.string,animation:u.PropTypes.string,choiceTransitionName:u.PropTypes.string,onChange:u.PropTypes.func,onBlur:u.PropTypes.func,onSelect:u.PropTypes.func,onSearch:u.PropTypes.func,placeholder:u.PropTypes.any,onDeselect:u.PropTypes.func,labelInValue:u.PropTypes.bool,value:u.PropTypes.any,defaultValue:u.PropTypes.any,dropdownStyle:u.PropTypes.object,maxTagTextLength:u.PropTypes.number},mixins:[E["default"]],getDefaultProps:function(){return{prefixCls:"rc-select",filterOption:i,defaultOpen:!1,labelInValue:!1,defaultActiveFirstOption:!0,showSearch:!0,allowClear:!1,placeholder:"",defaultValue:[],onChange:a,onBlur:a,onSelect:a,onSearch:a,onDeselect:a,showArrow:!0,dropdownMatchSelectWidth:!0,dropdownStyle:{},dropdownMenuStyle:{},optionFilterProp:"value",optionLabelProp:"value",notFoundContent:"Not Found"}},getInitialState:function(){var e=this.props,t=[];t="value"in e?(0,C.toArray)(e.value):(0,C.toArray)(e.defaultValue),t=this.addLabelToValue(e,t);var n="";e.combobox&&(n=t.length?String(t[0].key):""),this.saveInputRef=s.bind(this,"inputInstance");var r=e.open;return void 0===r&&(r=e.defaultOpen),{value:t,inputValue:n,open:r}},componentWillReceiveProps:function(e){if("value"in e){var t=(0,C.toArray)(e.value);t=this.addLabelToValue(e,t),this.setState({value:t}),e.combobox&&this.setState({inputValue:t.length?String(t[0].key):""})}},componentDidUpdate:function(){var e=this.state,t=this.props;if(e.open&&(0,C.isMultipleOrTags)(t)){var n=this.getInputDOMNode();n.value?(n.style.width="",n.style.width=n.scrollWidth+"px"):n.style.width=""}},componentWillUnmount:function(){this.clearBlurTime(),this.dropdownContainer&&(f["default"].unmountComponentAtNode(this.dropdownContainer),document.body.removeChild(this.dropdownContainer),this.dropdownContainer=null)},onInputChange:function(e){var t=e.target.value,n=this.props;this.setState({inputValue:t,open:!0}),(0,C.isCombobox)(n)&&this.fireChange([{key:t}]),n.onSearch(t)},onDropdownVisibleChange:function(e){this.setOpenState(e)},onKeyDown:function(e){var t=this.props;if(!t.disabled){var n=e.keyCode;this.state.open&&!this.getInputDOMNode()?this.onInputKeyDown(e):n!==d.KeyCode.ENTER&&n!==d.KeyCode.DOWN||(this.setOpenState(!0),e.preventDefault())}},onInputKeyDown:function(e){var t=this.props;if(!t.disabled){var n=this.state,r=e.keyCode;if(!(0,C.isMultipleOrTags)(t)||e.target.value||r!==d.KeyCode.BACKSPACE){if(r===d.KeyCode.DOWN){if(!n.open)return this.openIfHasChildren(),e.preventDefault(),void e.stopPropagation()}else if(r===d.KeyCode.ESC)return void(n.open&&(this.setOpenState(!1),e.preventDefault(),e.stopPropagation()));if(n.open){var o=this.refs.trigger.getInnerMenu();o&&o.onKeyDown(e)&&(e.preventDefault(),e.stopPropagation())}}else{var a=n.value.concat();if(a.length){var i=a.pop();t.onDeselect(t.labelInValue?i:i.key),this.fireChange(a)}}}},onMenuSelect:function(e){var t=e.item,n=this.state.value,r=this.props,o=(0,C.getValuePropValue)(t),a=this.getLabelFromOption(t),i=o;if(r.labelInValue&&(i={key:i,label:a}),r.onSelect(i,t),(0,C.isMultipleOrTags)(r)){if(-1!==(0,C.findIndexInValueByKey)(n,o))return;n=n.concat([{key:o,label:a}])}else{if(n.length&&n[0].key===o)return void this.setOpenState(!1,!0);n=[{key:o,label:a}],this.setOpenState(!1,!0)}this.fireChange(n),this.setState({inputValue:""}),(0,C.isCombobox)(r)&&this.setState({inputValue:(0,C.getPropValue)(t,r.optionLabelProp)})},onMenuDeselect:function(e){var t=e.item,n=e.domEvent;"click"===n.type&&this.removeSelected((0,C.getValuePropValue)(t)),this.setState({inputValue:""})},onArrowClick:function(e){e.stopPropagation(),this.setOpenState(!this.state.open,!0)},onPlaceholderClick:function(){this.getInputDOMNode()&&this.getInputDOMNode().focus()},onOuterFocus:function(){this.clearBlurTime(),this._focused=!0,this.updateFocusClassName()},onPopupFocus:function(){this.maybeFocus(!0,!0)},onOuterBlur:function(){var e=this;this.blurTimer=setTimeout(function(){e._focused=!1,e.updateFocusClassName();var t=e.props,n=e.state.value;if((0,C.isSingleMode)(t)&&t.showSearch&&e.state.inputValue&&t.defaultActiveFirstOption){var r=e._options||[];if(r.length){var o=(0,C.findFirstMenuItem)(r);o&&(n=[{key:o.key,label:e.getLabelFromOption(o)}],e.fireChange(n))}}t.onBlur(e.getVLForOnChange(n))},10)},onClearSelection:function(e){var t=this.props,n=this.state;t.disabled||(e.stopPropagation(),(n.inputValue||n.value.length)&&(this.state.value.length&&this.fireChange([]),this.setOpenState(!1,!0),this.state.inputValue&&this.setState({inputValue:""})))},getLabelBySingleValue:function(e,t){var n=this;if(void 0===t)return null;var r=null;return c["default"].Children.forEach(e,function(e){if(e.type===m["default"]){var o=n.getLabelBySingleValue(e.props.children,t);null!==o&&(r=o)}else(0,C.getValuePropValue)(e)===t&&(r=n.getLabelFromOption(e))}),r},getLabelFromOption:function(e){return(0,C.getPropValue)(e,this.props.optionLabelProp)},getLabelFromProps:function(e,t){return this.getLabelByValue(e.children,t)},getVLForOnChange:function(e){var t=e;return void 0!==t?(this.props.labelInValue||(t=t.map(function(e){return e.key})),(0,C.isMultipleOrTags)(this.props)?t:t[0]):t},getLabelByValue:function(e,t){var n=this.getLabelBySingleValue(e,t);return null===n?t:n},getDropdownContainer:function(){return this.dropdownContainer||(this.dropdownContainer=document.createElement("div"),document.body.appendChild(this.dropdownContainer)),this.dropdownContainer},getPlaceholderElement:function(){var e=this.props,t=this.state,n=!1;t.inputValue&&(n=!0),t.value.length&&(n=!0),(0,C.isCombobox)(e)&&1===t.value.length&&!t.value[0].key&&(n=!1);var r=e.placeholder;return r?c["default"].createElement("div",l({onMouseDown:C.preventDefaultEvent,style:l({display:n?"none":"block"},C.UNSELECTABLE_STYLE)},C.UNSELECTABLE_ATTRIBUTE,{onClick:this.onPlaceholderClick,className:e.prefixCls+"-selection__placeholder"}),r):null},getInputElement:function(){var e=this.props;return c["default"].createElement("div",{className:e.prefixCls+"-search__field__wrap"},c["default"].createElement("input",{ref:this.saveInputRef,onChange:this.onInputChange,onKeyDown:this.onInputKeyDown,value:this.state.inputValue,disabled:e.disabled,className:e.prefixCls+"-search__field"}))},getInputDOMNode:function(){return this.inputInstance},getPopupDOMNode:function(){return this.refs.trigger.getPopupDOMNode()},getPopupMenuComponent:function(){return this.refs.trigger.getInnerMenu()},setOpenState:function(e,t){var n=this,r=this.props,o=this.state;if(o.open===e)return void this.maybeFocus(e,t);var a={open:e};!e&&(0,C.isSingleMode)(r)&&r.showSearch&&(a.inputValue=""),e||this.maybeFocus(e,t),this.setState(a,function(){e&&n.maybeFocus(e,t)})},clearBlurTime:function(){this.blurTimer&&(clearTimeout(this.blurTimer),this.blurTimer=null)},updateFocusClassName:function(){var e=this.refs,t=this.props;this._focused?(0,O["default"])(e.root).add(t.prefixCls+"-focused"):(0,O["default"])(e.root).remove(t.prefixCls+"-focused")},maybeFocus:function(e,t){if(t||e){var n=this.getInputDOMNode(),r=document,o=r.activeElement;if(n&&(e||(0,C.isMultipleOrTagsOrCombobox)(this.props)))o!==n&&n.focus();else{var a=this.refs.selection;o!==a&&a.focus()}}},addLabelToValue:function(e,t){var n=this,r=t;return e.labelInValue?r.forEach(function(t){t.label=t.label||n.getLabelFromProps(e,t.key)}):r=r.map(function(t){return{key:t,label:n.getLabelFromProps(e,t)}}),r},removeSelected:function(e){var t=this.props;if(!t.disabled){var n=void 0,r=this.state.value.filter(function(t){return t.key===e&&(n=t.label),t.key!==e}),o=(0,C.isMultipleOrTags)(t);if(o){var a=e;t.labelInValue&&(a={key:e,label:n}),t.onDeselect(a)}this.fireChange(r)}},openIfHasChildren:function(){var e=this.props;(c["default"].Children.count(e.children)||(0,C.isSingleMode)(e))&&this.setOpenState(!0)},fireChange:function(e){var t=this.props;"value"in t||this.setState({value:e}),t.onChange(this.getVLForOnChange(e))},renderTopControlNode:function(){var e=this,t=this.state,n=t.value,r=t.open,o=t.inputValue,a=this.props,i=a.choiceTransitionName,s=a.prefixCls,u=a.maxTagTextLength,p=a.showSearch,f=s+"-selection__rendered",d=null;if((0,C.isSingleMode)(a)){var h=null;if(n.length){var y=!1,v=1;p&&r?(y=!o,y&&(v=.4)):y=!0,h=c["default"].createElement("div",{key:"value",className:s+"-selection-selected-value",style:{display:y?"block":"none",opacity:v}},n[0].label)}d=p?[h,c["default"].createElement("div",{className:s+"-search "+s+"-search--inline",key:"input",style:{display:r?"block":"none"}},this.getInputElement())]:[h]}else{var m=[];(0,C.isMultipleOrTags)(a)&&(m=n.map(function(t){var n=t.label,r=n;return u&&"string"==typeof n&&n.length>u&&(n=n.slice(0,u)+"..."),c["default"].createElement("li",l({style:C.UNSELECTABLE_STYLE},C.UNSELECTABLE_ATTRIBUTE,{onMouseDown:C.preventDefaultEvent,className:s+"-selection__choice",key:t.key,title:r}),c["default"].createElement("div",{className:s+"-selection__choice__content"},n),c["default"].createElement("span",{className:s+"-selection__choice__remove",onClick:e.removeSelected.bind(e,t.key)}))})),m.push(c["default"].createElement("li",{className:s+"-search "+s+"-search--inline",key:"__input"},this.getInputElement())),d=(0,C.isMultipleOrTags)(a)&&i?c["default"].createElement(b["default"],{component:"ul",transitionName:i},m):c["default"].createElement("ul",null,m)}return c["default"].createElement("div",{className:f},this.getPlaceholderElement(),d)},render:function(){var e,t=this.props,n=(0,C.isMultipleOrTags)(t),r=this.state,a=t.className,i=t.disabled,s=t.allowClear,u=t.prefixCls,p=this.renderTopControlNode(),f={},d=this.state.open,h=[];d&&(h=this.renderFilterOptions()),this._options=h,!d||!(0,C.isMultipleOrTagsOrCombobox)(t)&&t.showSearch||h.length||(d=!1),(0,C.isMultipleOrTagsOrCombobox)(t)||(f={onKeyDown:this.onKeyDown,tabIndex:0});var v=(e={},o(e,a,!!a),o(e,u,1),o(e,u+"-open",d),o(e,u+"-focused",d||!!this._focused),o(e,u+"-combobox",(0,C.isCombobox)(t)),o(e,u+"-disabled",i),o(e,u+"-enabled",!i),o(e,u+"-allow-clear",!!t.allowClear),e),m=l({},C.UNSELECTABLE_STYLE,{display:"none"});(this.state.inputValue||this.state.value.length)&&(m.display="block");var g=c["default"].createElement("span",l({key:"clear",onMouseDown:C.preventDefaultEvent,style:m},C.UNSELECTABLE_ATTRIBUTE,{className:u+"-selection__clear",onClick:this.onClearSelection}));return c["default"].createElement(w["default"],{onPopupFocus:this.onPopupFocus,dropdownAlign:t.dropdownAlign,dropdownClassName:t.dropdownClassName,dropdownMatchSelectWidth:t.dropdownMatchSelectWidth,defaultActiveFirstOption:t.defaultActiveFirstOption,dropdownMenuStyle:t.dropdownMenuStyle,transitionName:t.transitionName,animation:t.animation,prefixCls:t.prefixCls,dropdownStyle:t.dropdownStyle,combobox:t.combobox,showSearch:t.showSearch,options:h,multiple:n,disabled:i,visible:d,inputValue:r.inputValue,value:r.value,onDropdownVisibleChange:this.onDropdownVisibleChange,getPopupContainer:t.getPopupContainer,onMenuSelect:this.onMenuSelect,onMenuDeselect:this.onMenuDeselect,ref:"trigger"},c["default"].createElement("div",{style:t.style,ref:"root",onBlur:this.onOuterBlur,onFocus:this.onOuterFocus,className:(0,y["default"])(v)},c["default"].createElement("div",l({ref:"selection",key:"selection",className:u+"-selection\n "+u+"-selection--"+(n?"multiple":"single"),role:"combobox","aria-autocomplete":"list","aria-haspopup":"true","aria-expanded":d},f),p,s&&!n?g:null,n||!t.showArrow?null:c["default"].createElement("span",l({key:"arrow",className:u+"-arrow",style:C.UNSELECTABLE_STYLE},C.UNSELECTABLE_ATTRIBUTE,{onMouseDown:C.preventDefaultEvent,onClick:this.onArrowClick}),c["default"].createElement("b",null)))))}});t["default"]=S,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(14),l=r(s),u=n(1),c=r(u),p=n(2),f=r(p),d=n(368),h=r(d),y=n(4),v=r(y),m={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},g=c["default"].createClass({displayName:"SelectTrigger",propTypes:{onPopupFocus:u.PropTypes.func,dropdownMatchSelectWidth:u.PropTypes.bool,dropdownAlign:u.PropTypes.object,visible:u.PropTypes.bool,multiple:u.PropTypes.bool,inputValue:u.PropTypes.string,filterOption:u.PropTypes.any,options:u.PropTypes.any,prefixCls:u.PropTypes.string,popupClassName:u.PropTypes.string,children:u.PropTypes.any},componentDidUpdate:function(){var e=this.props,t=e.visible,n=e.dropdownMatchSelectWidth;if(t){var r=this.getPopupDOMNode();if(r){var o=n?"width":"minWidth";r.style[o]=v["default"].findDOMNode(this).offsetWidth+"px"}}},getInnerMenu:function(){return this.popupMenu&&this.popupMenu.refs.menu},getPopupDOMNode:function(){return this.refs.trigger.getPopupDomNode()},getDropdownElement:function(e){var t=this.props;return c["default"].createElement(h["default"],i({ref:this.saveMenu},e,{prefixCls:this.getDropdownPrefixCls(),onMenuSelect:t.onMenuSelect,onMenuDeselect:t.onMenuDeselect,value:t.value,defaultActiveFirstOption:t.defaultActiveFirstOption,dropdownMenuStyle:t.dropdownMenuStyle}))},getDropdownTransitionName:function(){var e=this.props,t=e.transitionName;return!t&&e.animation&&(t=this.getDropdownPrefixCls()+"-"+e.animation),t},getDropdownPrefixCls:function(){return this.props.prefixCls+"-dropdown"},saveMenu:function(e){this.popupMenu=e},render:function(){var e,t=this.props,n=t.onPopupFocus,r=a(t,["onPopupFocus"]),s=r.multiple,u=r.visible,p=r.inputValue,d=r.dropdownAlign,h=this.getDropdownPrefixCls(),y=(e={},o(e,r.dropdownClassName,!!r.dropdownClassName),o(e,h+"--"+(s?"multiple":"single"),1),e),v=this.getDropdownElement({menuItems:r.options,onPopupFocus:n,multiple:s,inputValue:p,visible:u});return c["default"].createElement(l["default"],i({},r,{showAction:r.disabled?[]:["click"],hideAction:r.disabled?[]:["blur"],ref:"trigger",popupPlacement:"bottomLeft",builtinPlacements:m,prefixCls:h,popupTransitionName:this.getDropdownTransitionName(),onPopupVisibleChange:r.onDropdownVisibleChange,popup:v,popupAlign:d,popupVisible:u,getPopupContainer:r.getPopupContainer,popupClassName:(0,f["default"])(y),popupStyle:r.dropdownStyle}),r.children)}});t["default"]=g,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.OptGroup=t.Option=void 0;var o=n(371),a=r(o),i=n(370),s=r(i),l=n(40),u=r(l);a["default"].Option=s["default"],a["default"].OptGroup=u["default"],t.Option=s["default"],t.OptGroup=u["default"],t["default"]=a["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(i)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=a,n=i,r=!0,s=u=void 0}},l=n(1),u=r(l),c=n(104),p=r(c),f=function(e){function t(e){o(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={isTooltipVisible:!1}}return a(t,e),i(t,[{key:"showTooltip",value:function(){this.setState({isTooltipVisible:!0})}},{key:"hideTooltip",value:function(){this.setState({isTooltipVisible:!1})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.tipTransitionName,r=e.tipFormatter,o=e.vertical,a=e.offset,i=e.value,s=e.dragging,l=e.noTip,c=o?{bottom:a+"%"}:{left:a+"%"},f=u["default"].createElement("div",{className:t,style:c,onMouseUp:this.showTooltip.bind(this),onMouseEnter:this.showTooltip.bind(this),onMouseLeave:this.hideTooltip.bind(this)});if(l)return f;var d=s||this.state.isTooltipVisible;return u["default"].createElement(p["default"],{prefixCls:t.replace("slider-handle","tooltip"),placement:"top",visible:d,overlay:u["default"].createElement("span",null,r(i)),delay:0,transitionName:n},f)}}]),t}(u["default"].Component);t["default"]=f,f.propTypes={className:u["default"].PropTypes.string,vertical:u["default"].PropTypes.bool,offset:u["default"].PropTypes.number,tipTransitionName:u["default"].PropTypes.string,tipFormatter:u["default"].PropTypes.func,value:u["default"].PropTypes.number,dragging:u["default"].PropTypes.bool,noTip:u["default"].PropTypes.bool},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),s=r(i),l=n(2),u=r(l),c=function(e){var t=e.className,n=e.vertical,r=e.marks,i=e.included,l=e.upperBound,c=e.lowerBound,p=e.max,f=e.min,d=Object.keys(r),h=d.length,y=100/(h-1),v=.9*y,m=p-f,g=d.map(parseFloat).sort(function(e,t){return e-t}).map(function(e){var p,d=!i&&e===l||i&&l>=e&&e>=c,h=(0,u["default"])((p={},o(p,t+"-text",!0),o(p,t+"-text-active",d),p)),y={marginBottom:"-200%",bottom:(e-f)/m*100+"%"},g={width:v+"%",marginLeft:-v/2+"%",left:(e-f)/m*100+"%"},b=n?y:g,P=r[e],O="object"==typeof P&&!s["default"].isValidElement(P),C=O?P.label:P,T=O?a({},b,P.style):b;return s["default"].createElement("span",{className:h,style:T,key:e},C)});return s["default"].createElement("div",{className:t},g)};t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(){}function l(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function u(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function c(e,t){return e?t.clientY:t.pageX}function p(e){e.stopPropagation(),e.preventDefault()}Object.defineProperty(t,"__esModule",{value:!0});var f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(i)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=a,n=i,r=!0,s=u=void 0}},y=n(1),v=r(y),m=n(6),g=n(2),b=r(g),P=n(378),O=r(P),C=n(374),T=r(C),w=n(377),x=r(w),E=n(375),S=r(E),k=function(e){function t(e){a(this,t),h(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e);var n=e.range,r=e.min,o=e.max,i=n?[r,r]:r,s="defaultValue"in e?e.defaultValue:i,l=void 0!==e.value?e.value:s,u=void 0,c=void 0;e.range?(c=this.trimAlignValue(l[0]),u=this.trimAlignValue(l[1])):u=this.trimAlignValue(l);var p=void 0;p=e.range&&u===c&&c===o?"lowerBound":"upperBound",this.state={handle:null,recent:p,upperBound:u,lowerBound:c||r}}return i(t,e),d(t,[{key:"componentWillReceiveProps",value:function(e){if("value"in e||"min"in e||"max"in e){var t=this.state,n=t.lowerBound,r=t.upperBound;if(e.range){var o=e.value||[n,r],a=this.trimAlignValue(o[1],e),i=this.trimAlignValue(o[0],e);if(i===n&&a===r)return;this.setState({upperBound:a,lowerBound:i}),(this.isValueOutOfBounds(r,e)||this.isValueOutOfBounds(n,e))&&this.props.onChange([i,a])}else{var o=void 0!==e.value?e.value:r,s=this.trimAlignValue(o,e);if(s===r&&n===e.min)return;this.setState({upperBound:s,lowerBound:e.min}),this.isValueOutOfBounds(r,e)&&this.props.onChange(s)}}}},{key:"onChange",value:function(e){var t=this.props,n=!("value"in t);n?this.setState(e):e.handle&&this.setState({handle:e.handle});var r=f({},this.state,e),o=t.range?[r.lowerBound,r.upperBound]:r.upperBound;t.onChange(o)}},{key:"onMouseMove",value:function(e){var t=c(this.props.vertical,e);this.onMove(e,t)}},{key:"onTouchMove",value:function(e){if(l(e))return void this.end("touch");var t=u(this.props.vertical,e);this.onMove(e,t)}},{key:"onMove",value:function(e,t){p(e);var n=this.props,r=this.state,a=t-this.startPosition;a=this.props.vertical?-a:a;var i=a/this.getSliderLength()*(n.max-n.min),s=this.trimAlignValue(this.startValue+i),l=r[r.handle];return s!==l?n.allowCross&&s<r.lowerBound&&"upperBound"===r.handle?void this.onChange({handle:"lowerBound",lowerBound:s,upperBound:this.state.lowerBound}):n.allowCross&&s>r.upperBound&&"lowerBound"===r.handle?void this.onChange({handle:"upperBound",upperBound:s,lowerBound:this.state.upperBound}):void this.onChange(o({},r.handle,s)):void 0}},{key:"onTouchStart",value:function(e){if(!l(e)){var t=u(this.props.vertical,e);this.onStart(t),this.addDocumentEvents("touch"),p(e)}}},{key:"onMouseDown",value:function(e){var t=c(this.props.vertical,e);this.onStart(t),this.addDocumentEvents("mouse"),p(e)}},{key:"onStart",value:function(e){var t=this.props;t.onBeforeChange(this.getValue());var n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e;var r=this.state,a=r.upperBound,i=r.lowerBound,s="upperBound";if(this.props.range){var l=Math.abs(a-n)>Math.abs(i-n);l&&(s="lowerBound");var u=a===i;u&&(s=r.recent),u&&n!==a&&(s=a>n?"lowerBound":"upperBound")}this.setState({handle:s,recent:s});var c=r[s];n!==c&&this.onChange(o({},s,n))}},{key:"getValue",value:function(){var e=this.state,t=e.lowerBound,n=e.upperBound;return this.props.range?[t,n]:n}},{key:"getSliderLength",value:function(){var e=this.refs.slider;return e?this.props.vertical?e.clientHeight:e.clientWidth:0}},{key:"getSliderStart",value:function(){var e=this.refs.slider,t=e.getBoundingClientRect();return this.props.vertical?t.top:t.left}},{key:"getPrecision",value:function(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}},{key:"isValueOutOfBounds",value:function(e,t){return e<t.min||e>t.max}},{key:"trimAlignValue",value:function(e,t){var n=this.state||{},r=n.handle,o=n.lowerBound,a=n.upperBound,i=f({},this.props,t||{}),s=i.marks,l=i.step,u=i.min,c=i.max,p=i.allowCross,d=e;u>=d&&(d=u),d>=c&&(d=c),!p&&"upperBound"===r&&o>=d&&(d=o),!p&&"lowerBound"===r&&d>=a&&(d=a);var h=Object.keys(s).map(parseFloat);if(null!==l){var y=Math.round(d/l)*l;h.push(y)}var v=h.map(function(e){return Math.abs(d-e)}),m=h[v.indexOf(Math.min.apply(Math,v))];return null!==l?parseFloat(m.toFixed(this.getPrecision(l))):m}},{key:"calcOffset",value:function(e){var t=this.props,n=t.min,r=t.max,o=(e-n)/(r-n);return 100*o}},{key:"calcValue",value:function(e){var t=this.props,n=t.vertical,r=t.min,o=t.max,a=Math.abs(e/this.getSliderLength()),i=n?(1-a)*(o-r)+r:a*(o-r)+r;return i}},{key:"calcValueByPos",value:function(e){var t=e-this.getSliderStart(),n=this.trimAlignValue(this.calcValue(t));return n}},{key:"addDocumentEvents",value:function(e){ "touch"===e?(this.onTouchMoveListener=m.Dom.addEventListener(document,"touchmove",this.onTouchMove.bind(this)),this.onTouchUpListener=m.Dom.addEventListener(document,"touchend",this.end.bind(this,"touch"))):"mouse"===e&&(this.onMouseMoveListener=m.Dom.addEventListener(document,"mousemove",this.onMouseMove.bind(this)),this.onMouseUpListener=m.Dom.addEventListener(document,"mouseup",this.end.bind(this,"mouse")))}},{key:"removeEvents",value:function(e){"touch"===e?(this.onTouchMoveListener.remove(),this.onTouchUpListener.remove()):"mouse"===e&&(this.onMouseMoveListener.remove(),this.onMouseUpListener.remove())}},{key:"end",value:function(e){this.removeEvents(e),this.props.onAfterChange(this.getValue()),this.setState({handle:null})}},{key:"render",value:function(){var e,t=this.state,n=t.handle,r=t.upperBound,a=t.lowerBound,i=this.props,l=i.className,u=i.prefixCls,c=i.disabled,p=i.vertical,f=i.dots,d=i.included,h=i.range,y=i.step,m=i.marks,g=i.max,P=i.min,C=i.tipTransitionName,w=i.tipFormatter,E=i.children,k=this.calcOffset(r),N=this.calcOffset(a),_=u+"-handle",j=null===y||null===w,M=v["default"].createElement(T["default"],{className:_,noTip:j,tipTransitionName:C,tipFormatter:w,vertical:p,offset:k,value:r,dragging:"upperBound"===n}),D=null;h&&(D=v["default"].createElement(T["default"],{className:_,noTip:j,tipTransitionName:C,tipFormatter:w,vertical:p,offset:N,value:a,dragging:"lowerBound"===n}));var A=(0,b["default"])((e={},o(e,u,!0),o(e,u+"-disabled",c),o(e,l,!!l),o(e,u+"-vertical",this.props.vertical),e)),L=d||h;return v["default"].createElement("div",{ref:"slider",className:A,onTouchStart:c?s:this.onTouchStart.bind(this),onMouseDown:c?s:this.onMouseDown.bind(this)},M,D,v["default"].createElement(O["default"],{className:u+"-track",vertical:p,included:L,offset:N,length:k-N}),v["default"].createElement(x["default"],{prefixCls:u,vertical:p,marks:m,dots:f,step:y,included:L,lowerBound:a,upperBound:r,max:g,min:P}),v["default"].createElement(S["default"],{className:u+"-mark",vertical:p,marks:m,included:L,lowerBound:a,upperBound:r,max:g,min:P}),E)}}]),t}(v["default"].Component);k.propTypes={min:v["default"].PropTypes.number,max:v["default"].PropTypes.number,step:v["default"].PropTypes.number,defaultValue:v["default"].PropTypes.oneOfType([v["default"].PropTypes.number,v["default"].PropTypes.arrayOf(v["default"].PropTypes.number)]),value:v["default"].PropTypes.oneOfType([v["default"].PropTypes.number,v["default"].PropTypes.arrayOf(v["default"].PropTypes.number)]),marks:v["default"].PropTypes.object,included:v["default"].PropTypes.bool,className:v["default"].PropTypes.string,prefixCls:v["default"].PropTypes.string,disabled:v["default"].PropTypes.bool,children:v["default"].PropTypes.any,onBeforeChange:v["default"].PropTypes.func,onChange:v["default"].PropTypes.func,onAfterChange:v["default"].PropTypes.func,tipTransitionName:v["default"].PropTypes.string,tipFormatter:v["default"].PropTypes.func,dots:v["default"].PropTypes.bool,range:v["default"].PropTypes.bool,vertical:v["default"].PropTypes.bool,allowCross:v["default"].PropTypes.bool},k.defaultProps={prefixCls:"rc-slider",className:"",tipTransitionName:"",min:0,max:100,step:1,marks:{},onBeforeChange:s,onChange:s,onAfterChange:s,tipFormatter:function(e){return e},included:!0,disabled:!1,dots:!1,range:!1,vertical:!1,allowCross:!0},t["default"]=k,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t,n,r,o,a){(0,p["default"])(n?r>0:!0,"`Slider[step]` should be a positive number in order to make Slider[dots] work.");var i=Object.keys(t).map(parseFloat);if(n)for(var s=o;a>=s;s+=r)i.indexOf(s)>=0||i.push(s);return i}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),l=n(2),u=r(l),c=n(12),p=r(c),f=function(e){var t=e.prefixCls,n=e.vertical,r=e.marks,i=e.dots,l=e.step,c=e.included,p=e.lowerBound,f=e.upperBound,d=e.max,h=e.min,y=d-h,v=a(n,r,i,l,h,d).map(function(e){var r,a=Math.abs(e-h)/y*100+"%",i=n?{bottom:a}:{left:a},l=!c&&e===f||c&&f>=e&&e>=p,d=(0,u["default"])((r={},o(r,t+"-dot",!0),o(r,t+"-dot-active",l),r));return s["default"].createElement("span",{className:d,style:i,key:e})});return s["default"].createElement("div",{className:t+"-step"},v)};t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=function(e){var t=e.className,n=e.included,r=e.vertical,o=e.offset,i=e.length,s={visibility:n?"visible":"hidden"};return r?(s.bottom=o+"%",s.height=i+"%"):(s.left=o+"%",s.width=i+"%"),a["default"].createElement("div",{className:t,style:s})};t["default"]=i,e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(376)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){var t,n,r=e.className,i=e.prefixCls,l=e.style,c=e.tailWidth,f=e.status,d=void 0===f?"wait":f,h=e.iconPrefix,y=e.icon,v=e.adjustMarginRight,m=e.stepLast,g=e.stepNumber,b=e.description,P=e.title,O=a(e,["className","prefixCls","style","tailWidth","status","iconPrefix","icon","adjustMarginRight","stepLast","stepNumber","description","title"]),C=(0,p["default"])((t={},o(t,i+"-icon",!0),o(t,h+"icon",!0),o(t,h+"icon-"+y,y),o(t,h+"icon-check",!y&&"finish"===d),o(t,h+"icon-cross",!y&&"error"===d),t)),T=y||"finish"===d||"error"===d?u["default"].createElement("span",{className:C}):u["default"].createElement("span",{className:i+"-icon"},g),w=(0,p["default"])((n={},o(n,i+"-item",!0),o(n,i+"-item-last",m),o(n,i+"-status-"+d,!0),o(n,i+"-custom",y),o(n,r,!!r),n));return u["default"].createElement("div",s({},O,{className:w,style:s({width:c,marginRight:v},l)}),m?"":u["default"].createElement("div",{className:i+"-tail"},u["default"].createElement("i",null)),u["default"].createElement("div",{className:i+"-step"},u["default"].createElement("div",{className:i+"-head"},u["default"].createElement("div",{className:i+"-head-inner"},T)),u["default"].createElement("div",{className:i+"-main"},u["default"].createElement("div",{className:i+"-title"},P),b?u["default"].createElement("div",{className:i+"-description"},b):"")))}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n(1),u=r(l),c=n(2),p=r(c);i.propTypes={className:l.PropTypes.string,prefixCls:l.PropTypes.string,style:l.PropTypes.object,tailWidth:l.PropTypes.oneOfType([l.PropTypes.number,l.PropTypes.string]),status:l.PropTypes.string,iconPrefix:l.PropTypes.string,icon:l.PropTypes.string,adjustMarginRight:l.PropTypes.oneOfType([l.PropTypes.number,l.PropTypes.string]),stepLast:l.PropTypes.bool,stepNumber:l.PropTypes.string,description:l.PropTypes.any,title:l.PropTypes.any},e.exports=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=n(1),f=r(p),d=n(4),h=r(d),y=n(2),v=r(y),m=function(e){function t(e){i(this,t);var n=s(this,Object.getPrototypeOf(t).call(this,e));return n.culcLastStepOffsetWidth=function(){var e=h["default"].findDOMNode(n);e.children.length>0&&setTimeout(function(){var t=e.lastChild.offsetWidth;n.state.lastStepOffsetWidth!==t&&n.setState({lastStepOffsetWidth:t})})},n.state={lastStepOffsetWidth:0},n}return l(t,e),c(t,[{key:"componentDidMount",value:function(){this.culcLastStepOffsetWidth()}},{key:"componentDidUpdate",value:function(){this.culcLastStepOffsetWidth()}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.prefixCls,i=n.className,s=n.children,l=n.direction,c=n.labelPlacement,p=n.iconPrefix,d=n.status,h=n.size,y=a(n,["prefixCls","className","children","direction","labelPlacement","iconPrefix","status","size"]),m=s.length-1,g=(0,v["default"])((e={},o(e,r,!0),o(e,r+"-"+h,h),o(e,r+"-"+l,!0),o(e,r+"-label-"+c,"horizontal"===l),o(e,r+"-hidden",0===this.state.lastStepOffsetWidth),o(e,i,i),e));return f["default"].createElement("div",u({className:g},y),f["default"].Children.map(s,function(e,o){var a="vertical"===l||o===m?null:100/m+"%",i="vertical"===l||o===m?null:-(t.state.lastStepOffsetWidth/m+1),s={stepNumber:(o+1).toString(),stepLast:o===m,tailWidth:a,adjustMarginRight:i,prefixCls:r,iconPrefix:p};return"error"===n.status&&o===n.current-1&&(s.className=n.prefixCls+"-next-error"),e.props.status||(o===n.current?s.status=d:o<n.current?s.status="finish":s.status="wait"),f["default"].cloneElement(e,s)},this))}}]),t}(f["default"].Component);t["default"]=m,m.propTypes={prefixCls:p.PropTypes.string,iconPrefix:p.PropTypes.string,direction:p.PropTypes.string,labelPlacement:p.PropTypes.string,children:p.PropTypes.any,status:p.PropTypes.string,size:p.PropTypes.string},m.defaultProps={prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",current:0,status:"process",size:""},e.exports=t["default"]},function(e,t,n){"use strict";var r=n(381);r.Step=n(380),e.exports=r},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(1),l=n(2),u=s.createClass({displayName:"Switch",propTypes:{className:s.PropTypes.string,prefixCls:s.PropTypes.string,disabled:s.PropTypes.bool,checkedChildren:s.PropTypes.any,unCheckedChildren:s.PropTypes.any,onChange:s.PropTypes.func,onMouseUp:s.PropTypes.func},getDefaultProps:function(){return{prefixCls:"rc-switch",checkedChildren:null,unCheckedChildren:null,className:"",defaultChecked:!1,onChange:a}},getInitialState:function(){var e=this.props,t=!1;return t="checked"in e?!!e.checked:!!e.defaultChecked,{checked:t}},componentWillReceiveProps:function(e){"checked"in e&&this.setState({checked:!!e.checked})},setChecked:function(e){"checked"in this.props||this.setState({checked:e}),this.props.onChange(e)},toggle:function(){var e=!this.state.checked;this.setChecked(e)},handleKeyDown:function(e){37===e.keyCode&&this.setChecked(!1),39===e.keyCode&&this.setChecked(!0)},handleMouseUp:function(e){this.refs.node&&this.refs.node.blur(),this.props.onMouseUp&&this.props.onMouseUp(e)},render:function(){var e,t=this.props,n=t.className,u=t.prefixCls,c=t.disabled,p=t.checkedChildren,f=t.unCheckedChildren,d=r(t,["className","prefixCls","disabled","checkedChildren","unCheckedChildren"]),h=this.state.checked,y=l((e={},o(e,n,!!n),o(e,u,!0),o(e,u+"-checked",h),o(e,u+"-disabled",c),e));return s.createElement("span",i({},d,{className:y,tabIndex:"0",ref:"node",onKeyDown:this.handleKeyDown,onClick:c?a:this.toggle,onMouseUp:this.handleMouseUp}),s.createElement("span",{className:u+"-inner"},h?p:f))}});e.exports=u},function(e,t,n){"use strict";e.exports=n(383)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),s=r(i),l=n(386),u=r(l),c=n(10),p=r(c),f=s["default"].createClass({displayName:"Table",propTypes:{data:s["default"].PropTypes.array,expandIconAsCell:s["default"].PropTypes.bool,defaultExpandAllRows:s["default"].PropTypes.bool,expandedRowKeys:s["default"].PropTypes.array,defaultExpandedRowKeys:s["default"].PropTypes.array,useFixedHeader:s["default"].PropTypes.bool,columns:s["default"].PropTypes.array,prefixCls:s["default"].PropTypes.string,bodyStyle:s["default"].PropTypes.object,style:s["default"].PropTypes.object,rowKey:s["default"].PropTypes.func,rowClassName:s["default"].PropTypes.func,expandedRowClassName:s["default"].PropTypes.func,childrenColumnName:s["default"].PropTypes.string,onExpand:s["default"].PropTypes.func,onExpandedRowsChange:s["default"].PropTypes.func,indentSize:s["default"].PropTypes.number,onRowClick:s["default"].PropTypes.func,columnsPageRange:s["default"].PropTypes.array,columnsPageSize:s["default"].PropTypes.number,expandIconColumnIndex:s["default"].PropTypes.number,showHeader:s["default"].PropTypes.bool,footer:s["default"].PropTypes.func,scroll:s["default"].PropTypes.object,rowRef:s["default"].PropTypes.func},getDefaultProps:function(){return{data:[],useFixedHeader:!1,expandIconAsCell:!1,columns:[],defaultExpandAllRows:!1,defaultExpandedRowKeys:[],rowKey:function(e){return e.key},rowClassName:function(){return""},expandedRowClassName:function(){return""},onExpand:function(){},onExpandedRowsChange:function(){},prefixCls:"rc-table",bodyStyle:{},style:{},childrenColumnName:"children",indentSize:15,columnsPageSize:5,expandIconColumnIndex:0,showHeader:!0,scroll:{},rowRef:function(){return null}}},getInitialState:function(){var e=this.props,t=[],n=[].concat(o(e.data));if(e.defaultExpandAllRows)for(var r=0;r<n.length;r++){var a=n[r];a[e.childrenColumnName]&&a[e.childrenColumnName].length>0&&(t.push(e.rowKey(a)),n=n.concat(a[e.childrenColumnName]))}else t=e.expandedRowKeys||e.defaultExpandedRowKeys;return{expandedRowKeys:t,data:e.data,currentColumnsPage:0,currentHoverIndex:null,scrollPosition:"left"}},componentDidMount:function(){this.refs.headTable&&(this.refs.headTable.scrollLeft=0),this.refs.bodyTable&&(this.refs.bodyTable.scrollLeft=0)},componentWillReceiveProps:function(e){"data"in e&&this.setState({data:e.data}),"expandedRowKeys"in e&&this.setState({expandedRowKeys:e.expandedRowKeys})},onExpandedRowsChange:function(e){this.props.expandedRowKeys||this.setState({expandedRowKeys:e}),this.props.onExpandedRowsChange(e)},onExpanded:function(e,t){var n=this.findExpandedRow(t);if("undefined"==typeof n||e){if(!n&&e){var r=this.getExpandedRows().concat();r.push(this.props.rowKey(t)),this.onExpandedRowsChange(r)}}else this.onRowDestroy(t);this.props.onExpand(e,t)},onRowDestroy:function(e){var t=this.getExpandedRows().concat(),n=this.props.rowKey(e),r=-1;t.forEach(function(e,t){e===n&&(r=t)}),-1!==r&&t.splice(r,1),this.onExpandedRowsChange(t)},getExpandedRows:function(){return this.props.expandedRowKeys||this.state.expandedRowKeys},getHeader:function(e){var t=this.props,n=t.showHeader,r=t.expandIconAsCell,o=t.prefixCls,a=[];return r&&a.push({key:"rc-table-expandIconAsCell",className:o+"-expand-icon-th",title:""}),a=a.concat(e||this.getCurrentColumns()).map(function(e){return 0!==e.colSpan?s["default"].createElement("th",{key:e.key,colSpan:e.colSpan,className:e.className||""},e.title):void 0}),n?s["default"].createElement("thead",{className:o+"-thead"},s["default"].createElement("tr",null,a)):null},getExpandedRow:function(e,t,n,r){var o=this.props.prefixCls;return s["default"].createElement("tr",{key:e+"-extra-row",style:{display:n?"":"none"},className:o+"-expanded-row "+r},this.props.expandIconAsCell?s["default"].createElement("td",{key:"rc-table-expand-icon-placeholder"}):"",s["default"].createElement("td",{colSpan:this.props.columns.length},t))},getRowsByData:function(e,t,n,r){for(var o=this.props,i=o.childrenColumnName,l=o.expandedRowRender,c=o.expandIconAsCell,p=[],f=o.rowKey,d=o.rowClassName,h=o.rowRef,y=o.expandedRowClassName,v=o.data.some(function(e){return e[i]}),m=o.onRowClick,g=o.expandIconColumnIndex,b=this.isAnyColumnsFixed(),P=0;P<e.length;P++){var O=e[P],C=f?f(O,P):void 0,T=O[i],w=this.isRowExpanded(O),x=void 0;l&&w&&(x=l(O,P));var E=d(O,P);this.state.currentHoverIndex===P&&(E+=" "+o.prefixCls+"-row-hover");var S={};b&&(S.onHover=this.handleRowHover),p.push(s["default"].createElement(u["default"],a({indent:n,indentSize:o.indentSize,needIndentSpaced:v,className:E,record:O,expandIconAsCell:c,onDestroy:this.onRowDestroy,index:P,visible:t,onExpand:this.onExpanded,expandable:T||l,expanded:w,prefixCls:o.prefixCls+"-row",childrenColumnName:i,columns:r||this.getCurrentColumns(),expandIconColumnIndex:g,onRowClick:m},S,{key:C,ref:h(O,P)})));var k=t&&w;x&&w&&p.push(this.getExpandedRow(C,x,k,y(O,P))),T&&(p=p.concat(this.getRowsByData(T,k,n+1)))}return p},getRows:function(e){return this.getRowsByData(this.state.data,!0,0,e)},getColGroup:function(e){var t=[];return this.props.expandIconAsCell&&t.push(s["default"].createElement("col",{className:this.props.prefixCls+"-expand-icon-col",key:"rc-table-expand-icon-col"})),t=t.concat((e||this.props.columns).map(function(e){return s["default"].createElement("col",{key:e.key,style:{width:e.width}})})),s["default"].createElement("colgroup",null,t)},getCurrentColumns:function(){var e=this,t=this.props,n=t.columns,r=t.columnsPageRange,o=t.columnsPageSize,a=t.prefixCls,i=this.state.currentColumnsPage;return!r||r[0]>r[1]?n:n.map(function(t,n){var s=(0,p["default"])({},t);if(n>=r[0]&&n<=r[1]){var l=r[0]+i*o,u=r[0]+(i+1)*o-1;u>r[1]&&(u=r[1]),(l>n||n>u)&&(s.className=s.className||"",s.className+=" "+a+"-column-hidden"),s=e.wrapPageColumn(s,n===l,n===u)}return s})},getLeftFixedTable:function(){var e=this.props.columns,t=e.filter(function(e){return"left"===e.fixed||e.fixed===!0});return this.getTable({columns:t})},getRightFixedTable:function(){var e=this.props.columns,t=e.filter(function(e){return"right"===e.fixed});return this.getTable({columns:t})},getTable:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=t.columns,r=this.props,o=r.prefixCls,i=r.scroll,l=void 0===i?{}:i,u=this.props.useFixedHeader,c=a({},this.props.bodyStyle),p="";(l.x||n)&&(p=o+"-fixed",c.overflowX=c.overflowX||"auto"),l.y&&(c.height=c.height||l.y,c.overflowY=c.overflowY||"auto",u=!0);var f=function(){var n=arguments.length<=0||void 0===arguments[0]?!0:arguments[0],r=arguments.length<=1||void 0===arguments[1]?!0:arguments[1],a={};return!t.columns&&l.x&&(a.width=l.x),s["default"].createElement("table",{className:p,style:a},e.getColGroup(t.columns),n?e.getHeader(t.columns):null,r?s["default"].createElement("tbody",{className:o+"-tbody"},e.getRows(t.columns)):null)},d=void 0;u&&(d=s["default"].createElement("div",{className:o+"-header",ref:n?null:"headTable"},f(!0,!1)));var h=s["default"].createElement("div",{className:o+"-body",style:c,ref:"bodyTable",onMouseEnter:this.detectScrollTarget,onScroll:this.handleBodyScroll},f(!u));if(n&&n.length){var y=void 0;"left"===n[0].fixed||n[0].fixed===!0?y="fixedColumnsBodyLeft":"right"===n[0].fixed&&(y="fixedColumnsBodyRight"),h=s["default"].createElement("div",{className:o+"-body-outer",style:a({},c,{overflow:"hidden"})},s["default"].createElement("div",{className:o+"-body-inner",ref:y,onMouseEnter:this.detectScrollTarget,onScroll:this.handleBodyScroll},f(!u)))}return s["default"].createElement("span",null,d,h)},getFooter:function(){var e=this.props,t=e.footer,n=e.prefixCls;return t?s["default"].createElement("div",{className:n+"-footer"},t(this.state.data)):null},getMaxColumnsPage:function(){var e=this.props,t=e.columnsPageRange,n=e.columnsPageSize;return Math.floor((t[1]-t[0]-1)/n)},goToColumnsPage:function(e){var t=this.getMaxColumnsPage(),n=e;0>n&&(n=0),n>t&&(n=t),this.setState({currentColumnsPage:n})},prevColumnsPage:function(){this.goToColumnsPage(this.state.currentColumnsPage-1)},nextColumnsPage:function(){this.goToColumnsPage(this.state.currentColumnsPage+1)},wrapPageColumn:function(e,t,n){var r=this.props.prefixCls,o=this.state.currentColumnsPage,a=this.getMaxColumnsPage(),i=r+"-prev-columns-page";0===o&&(i+=" "+r+"-prev-columns-page-disabled");var l=s["default"].createElement("span",{className:i,onClick:this.prevColumnsPage}),u=r+"-next-columns-page";o===a&&(u+=" "+r+"-next-columns-page-disabled");var c=s["default"].createElement("span",{className:u,onClick:this.nextColumnsPage});return t&&(e.title=s["default"].createElement("span",null,l,e.title),e.className=(e.className||"")+(" "+r+"-column-has-prev")),n&&(e.title=s["default"].createElement("span",null,e.title,c),e.className=(e.className||"")+(" "+r+"-column-has-next")),e},findExpandedRow:function(e){var t=this,n=this.getExpandedRows().filter(function(n){return n===t.props.rowKey(e)});return n[0]},isRowExpanded:function(e){return"undefined"!=typeof this.findExpandedRow(e)},detectScrollTarget:function(e){this.scrollTarget=e.currentTarget},isAnyColumnsFixed:function(){return this.getCurrentColumns().some(function(e){return!!e.fixed})},isAnyColumnsLeftFixed:function(){return this.getCurrentColumns().some(function(e){return"left"===e.fixed||e.fixed===!0})},isAnyColumnsRightFixed:function(){return this.getCurrentColumns().some(function(e){return"right"===e.fixed})},handleBodyScroll:function(e){if(e.target===this.scrollTarget){var t=this.props.scroll||{};t.x&&e.target===this.refs.bodyTable&&(this.refs.headTable&&(this.refs.headTable.scrollLeft=e.target.scrollLeft),0===e.target.scrollLeft?this.setState({scrollPosition:"left"}):e.target.scrollLeft>=e.target.children[0].offsetWidth-e.target.offsetWidth?this.setState({scrollPosition:"right"}):"middle"!==this.state.scrollPosition&&this.setState({scrollPosition:"middle"})),t.y&&(this.refs.fixedColumnsBodyLeft&&(this.refs.fixedColumnsBodyLeft.scrollTop=e.target.scrollTop),this.refs.fixedColumnsBodyRight&&(this.refs.fixedColumnsBodyRight.scrollTop=e.target.scrollTop),this.refs.bodyTable&&(this.refs.bodyTable.scrollTop=e.target.scrollTop))}},handleRowHover:function(e,t){e?this.setState({currentHoverIndex:t}):this.setState({currentHoverIndex:null})},render:function(){var e=this.props,t=e.prefixCls,n=e.prefixCls;return e.className&&(n+=" "+e.className),e.columnsPageRange&&(n+=" "+t+"-columns-paging"),(e.useFixedHeader||e.scroll&&e.scroll.y)&&(n+=" "+t+"-fixed-header"),n+=" "+t+"-scroll-position-"+this.state.scrollPosition,s["default"].createElement("div",{className:n,style:e.style},this.isAnyColumnsLeftFixed()&&s["default"].createElement("div",{className:t+"-fixed-left"},this.getLeftFixedTable()),s["default"].createElement("div",{className:t+"-scroll"},this.getTable(),this.getFooter()),this.isAnyColumnsRightFixed()&&s["default"].createElement("div",{className:t+"-fixed-right"},this.getRightFixedTable()))}});t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=a["default"].createClass({displayName:"TableRow",propTypes:{onDestroy:a["default"].PropTypes.func,onRowClick:a["default"].PropTypes.func,record:a["default"].PropTypes.object,prefixCls:a["default"].PropTypes.string,expandIconColumnIndex:a["default"].PropTypes.number,onHover:a["default"].PropTypes.func},getDefaultProps:function(){return{onRowClick:function(){},onDestroy:function(){},expandIconColumnIndex:0,onHover:function(){}}},componentWillUnmount:function(){this.props.onDestroy(this.props.record)},isInvalidRenderCellText:function(e){return e&&!a["default"].isValidElement(e)&&"[object Object]"===Object.prototype.toString.call(e)},render:function s(){for(var e=this.props,t=e.prefixCls,n=e.columns,r=e.record,o=e.index,i=[],l=e.expanded,u=e.expandable,c=e.expandIconAsCell,p=e.indent,f=e.indentSize,d=e.needIndentSpaced,h=e.onRowClick,y=e.expandIconColumnIndex,v=0;v<n.length;v++){var m=n[v],g=m.className||"",s=m.render,b=r[m.dataIndex],P=void 0,O=void 0,C=void 0,T=void 0,w=!1;u?P=a["default"].createElement("span",{className:t+"-expand-icon "+t+"-"+(l?"expanded":"collapsed"),onClick:e.onExpand.bind(null,!l,r)}):d&&(P=a["default"].createElement("span",{className:t+"-expand-icon "+t+"-spaced"}));var x=c?!1:v===y;c&&0===v&&i.push(a["default"].createElement("td",{className:t+"-expand-icon-cell",key:"rc-table-expand-icon-cell"},P)),s&&(b=s(b,r,o),this.isInvalidRenderCellText(b)&&(O=b.props||{},T=O.rowSpan,C=O.colSpan,b=b.children)),this.isInvalidRenderCellText(b)&&(b=null),0!==T&&0!==C||(w=!0);var E=a["default"].createElement("span",{style:{paddingLeft:f*p+"px"},className:t+"-indent indent-level-"+p});w||i.push(a["default"].createElement("td",{key:m.key,colSpan:C,rowSpan:T,className:g},x?E:null,x?P:null,b))}return a["default"].createElement("tr",{onClick:h.bind(null,r,o),onMouseEnter:e.onHover.bind(null,!0,o),onMouseLeave:e.onHover.bind(null,!1,o),className:t+" "+e.className+" "+t+"-level-"+p,style:e.visible?null:{display:"none"}},i)}});t["default"]=i,e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function r(e){var t=e.refs,n=t.nav,r=(0,o.offset)(n),a=t.inkBar,i=t.activeTab,s=e.props.tabPosition;if(i){var l=i,u=(0,o.offset)(l),c=(0,o.getTransformPropertyName)();if("top"===s||"bottom"===s){var p=u.left-r.left;c?(a.style[c]="translate3d("+p+"px,0,0)",a.style.width=l.offsetWidth+"px",a.style.height=""):(a.style.left=p+"px",a.style.top="",a.style.bottom="",a.style.right=n.offsetWidth-p-l.offsetWidth+"px")}else{var f=u.top-r.top;c?(a.style[c]="translate3d(0,"+f+"px,0)",a.style.height=l.offsetHeight+"px",a.style.width=""):(a.style.left="",a.style.right="",a.style.top=f+"px",a.style.bottom=n.offsetHeight-f-l.offsetHeight+"px")}}a.style.display=i?"block":"none"}Object.defineProperty(t,"__esModule",{value:!0});var o=n(101);t["default"]={componentDidUpdate:function(){r(this)},componentDidMount:function(){r(this)}},e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={LEFT:37,UP:38,RIGHT:39,DOWN:40},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(1),l=r(s),u=n(2),c=r(u),p=n(388),f=r(p),d=n(101),h={"float":"right"},y=l["default"].createClass({displayName:"Nav",propTypes:{tabPosition:s.PropTypes.string,tabBarExtraContent:s.PropTypes.any,onTabClick:s.PropTypes.func,onKeyDown:s.PropTypes.func},mixins:[f["default"]],getInitialState:function(){return{next:!1,offset:0,prev:!1}},componentDidMount:function(){this.componentDidUpdate()},componentDidUpdate:function(e){var t=this.props;if(e&&e.tabPosition!==t.tabPosition)return void this.setOffset(0);var n=this.refs.nav,r=this.getOffsetWH(n),o=this.refs.navWrap,a=this.getOffsetWH(o),i=this.state,s=i.offset,l=a-r,u=this.state,c=u.next,p=u.prev;l>=0?(c=!1,this.setOffset(0),s=0):s>l?c=!0:(c=!1,this.setOffset(l),s=l),p=0>s,this.setNext(c),this.setPrev(p);var f={next:c,prev:p};this.isNextPrevShown(i)!==this.isNextPrevShown(f)?this.setNextPrev({},this.scrollToActiveTab):e&&t.activeKey===e.activeKey||this.scrollToActiveTab()},onTabClick:function(e){this.props.onTabClick(e)},setNextPrev:function(e,t){this.setState(e,t)},getTabs:function(){var e=this,t=this.props,n=t.panels,r=t.activeKey,o=[],a=t.prefixCls;return l["default"].Children.forEach(n,function(t){var n=t.key,s=r===n?a+"-tab-active":"";s+=" "+a+"-tab";var u={};t.props.disabled?s+=" "+a+"-tab-disabled":u={onClick:e.onTabClick.bind(e,n)};var c={};r===n&&(c.ref="activeTab"),o.push(l["default"].createElement("div",i({},u,{className:s,key:n},c),l["default"].createElement("div",{className:a+"-tab-inner"},t.props.tab)))}),o},getOffsetWH:function(e){var t=this.props.tabPosition,n="offsetWidth";return"left"!==t&&"right"!==t||(n="offsetHeight"),e[n]},getOffsetLT:function(e){var t=this.props.tabPosition,n="left";return"left"!==t&&"right"!==t||(n="top"),e.getBoundingClientRect()[n]},setOffset:function(e){var t=Math.min(0,e);if(this.state.offset!==t){this.setState({offset:t});var n={},r=this.props.tabPosition,o=(0,d.getTransformPropertyName)();n="left"===r||"right"===r?o?{name:o,value:"translate3d(0,"+t+"px,0)"}:{name:"top",value:t+"px"}:o?{name:o,value:"translate3d("+t+"px,0,0)"}:{name:"left",value:t+"px"},this.refs.nav.style[n.name]=n.value}},setPrev:function(e){this.state.prev!==e&&this.setState({prev:e})},setNext:function(e){this.state.next!==e&&this.setState({next:e})},isNextPrevShown:function(e){return e.next||e.prev},scrollToActiveTab:function(){var e=this.refs,t=e.activeTab,n=e.navWrap;if(t){var r=this.getOffsetWH(t),o=this.getOffsetWH(n),a=this.state.offset,i=this.getOffsetLT(n),s=this.getOffsetLT(t);i>s?(a+=i-s,this.setState({offset:a})):s+r>i+o&&(a-=s+r-(i+o),this.setState({offset:a}))}},prev:function(){var e=this.refs.navWrap,t=this.getOffsetWH(e),n=this.state,r=n.offset;this.setOffset(r+t)},next:function(){var e=this.refs.navWrap,t=this.getOffsetWH(e),n=this.state,r=n.offset;this.setOffset(r-t)},render:function(){var e=this.props,t=this.state,n=e.prefixCls,r=this.getTabs(),i=e.tabMovingDirection,s=n+"-ink-bar";i&&(s+=" "+n+"-ink-bar-transition-"+i);var u=void 0,p=void 0,f=t.prev||t.next;if(f){var d,y;p=l["default"].createElement("span",{onClick:t.prev?this.prev:a,unselectable:"unselectable",className:(0,c["default"])((d={},o(d,n+"-tab-prev",1),o(d,n+"-tab-btn-disabled",!t.prev),d))},l["default"].createElement("span",{className:n+"-tab-prev-icon"})),u=l["default"].createElement("span",{onClick:t.next?this.next:a,unselectable:"unselectable",className:(0,c["default"])((y={},o(y,n+"-tab-next",1),o(y,n+"-tab-btn-disabled",!t.next),y))},l["default"].createElement("span",{className:n+"-tab-next-icon"}))}var v=this.props.tabBarExtraContent;return l["default"].createElement("div",{className:n+"-bar",tabIndex:"0",onKeyDown:this.props.onKeyDown},v?l["default"].createElement("div",{style:h},v):null,l["default"].createElement("div",{className:n+"-nav-container "+(f?n+"-nav-container-scrolling":""),style:e.style,ref:"container"},p,u,l["default"].createElement("div",{className:n+"-nav-wrap",ref:"navWrap"},l["default"].createElement("div",{className:n+"-nav-scroll"},l["default"].createElement("div",{className:n+"-nav",ref:"nav"},l["default"].createElement("div",{className:s,ref:"inkBar"}),r)))))}});t["default"]=y,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){}function i(e){var t=void 0;return l["default"].Children.forEach(e.children,function(e){t||e.props.disabled||(t=e.key)}),t}Object.defineProperty(t,"__esModule",{value:!0 });var s=n(1),l=r(s),u=n(389),c=r(u),p=n(100),f=r(p),d=n(390),h=r(d),y=n(9),v=r(y),m=n(2),g=r(m),b=l["default"].createClass({displayName:"Tabs",propTypes:{destroyInactiveTabPane:s.PropTypes.bool,onTabClick:s.PropTypes.func,onChange:s.PropTypes.func,children:s.PropTypes.any,tabBarExtraContent:s.PropTypes.any,animation:s.PropTypes.string,prefixCls:s.PropTypes.string,className:s.PropTypes.string,tabPosition:s.PropTypes.string},getDefaultProps:function(){return{prefixCls:"rc-tabs",destroyInactiveTabPane:!1,tabBarExtraContent:null,onChange:a,tabPosition:"top",style:{},contentStyle:{},navStyle:{},onTabClick:a}},getInitialState:function(){var e=this.props,t=void 0;return t="activeKey"in e?e.activeKey:"defaultActiveKey"in e?e.defaultActiveKey:i(e),{activeKey:t}},componentWillReceiveProps:function(e){var t=this.state.activeKey;if("activeKey"in e&&(t=e.activeKey,!t))return void this.setState({activeKey:t});var n=void 0;l["default"].Children.forEach(e.children,function(e){e.key===t&&(n=!0)}),n?this.setActiveKey(t,e):this.setActiveKey(i(e),e)},onTabClick:function(e){this.setActiveKey(e),this.props.onTabClick(e),this.state.activeKey!==e&&this.props.onChange(e)},onNavKeyDown:function(e){var t=e.keyCode;if(t===c["default"].RIGHT||t===c["default"].DOWN){e.preventDefault();var n=this.getNextActiveKey(!0);this.onTabClick(n)}else if(t===c["default"].LEFT||t===c["default"].UP){e.preventDefault();var r=this.getNextActiveKey(!1);this.onTabClick(r)}},getNextActiveKey:function(e){var t=this.state.activeKey,n=[];l["default"].Children.forEach(this.props.children,function(t){t.props.disabled||(e?n.push(t):n.unshift(t))});var r=n.length,o=r&&n[0].key;return n.forEach(function(e,a){e.key===t&&(o=a===r-1?n[0].key:n[a+1].key)}),o},getTabPanes:function(){var e=this.state,t=this.props,n=e.activeKey,r=t.children,o=[];return l["default"].Children.forEach(r,function(e){var r=e.key,a=n===r;o.push(l["default"].cloneElement(e,{active:a,rootPrefixCls:t.prefixCls}))}),o},getIndexPair:function(e,t,n){var r=[];l["default"].Children.forEach(e.children,function(e){r.push(e.key)});var o=r.indexOf(t),a=r.indexOf(n);return{currentIndex:o,nextIndex:a}},setActiveKey:function(e,t){var n=t||this.props,r=this.state.activeKey;if(!(r===e||"activeKey"in n&&n===this.props))if(r){var o=this.getIndexPair(n,r,e),a=o.currentIndex,i=o.nextIndex;if(-1===a){var s=this.getIndexPair(this.props,r,e);a=s.currentIndex,i=s.nextIndex}var l=a>i?"backward":"forward";this.setState({activeKey:e,tabMovingDirection:l})}else this.setState({activeKey:e})},render:function(){var e,t=this.props,n=t.destroyInactiveTabPane,r=t.prefixCls,a=t.tabPosition,i=t.className,s=t.animation,u=(0,g["default"])((e={},o(e,r,1),o(e,r+"-"+a,1),o(e,i,!!i),e)),c=this.state.tabMovingDirection,p=this.getTabPanes(),f=void 0;f=t.transitionName&&t.transitionName[c||"backward"],!f&&s&&(f=r+"-"+s+"-"+(c||"backward")),n&&(p=p.filter(function(e){return e.props.active})),f&&(p=n?l["default"].createElement(v["default"],{exclusive:!0,component:"div",transitionName:f},p):l["default"].createElement(v["default"],{showProp:"active",exclusive:!0,component:"div",transitionName:f},p));var d=[l["default"].createElement(h["default"],{prefixCls:r,key:"nav",onKeyDown:this.onNavKeyDown,tabBarExtraContent:this.props.tabBarExtraContent,tabPosition:a,style:t.navStyle,onTabClick:this.onTabClick,tabMovingDirection:c,panels:this.props.children,activeKey:this.state.activeKey}),l["default"].createElement("div",{className:r+"-content",style:t.contentStyle,key:"content"},p)];return"bottom"===a&&d.reverse(),l["default"].createElement("div",{className:u,style:t.style},d)}});b.TabPane=f["default"],t["default"]=b,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.TabPane=t["default"]=void 0;var o=n(391),a=r(o),i=n(100),s=r(i);t["default"]=a["default"],t.TabPane=s["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(102),a=r(o);t["default"]=a["default"],e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(37),a=r(o),i=n(76),s=r(i);t["default"]={clear:"Clear",format:a["default"],calendar:s["default"]},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(74),a=r(o),i=n(77),s=r(i);t["default"]={clear:"\u6e05\u9664",format:a["default"],calendar:s["default"]},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=n(399),s=r(i),l=n(11),u=r(l),c=function(e,t){var n=""+e;10>e&&(n="0"+e);var r=!1;return t&&t.indexOf(e)>=0&&(r=!0),{value:n,disabled:r}},p=a["default"].createClass({displayName:"Combobox",propTypes:{formatter:o.PropTypes.object,prefixCls:o.PropTypes.string,value:o.PropTypes.object,onChange:o.PropTypes.func,showHour:o.PropTypes.bool,gregorianCalendarLocale:o.PropTypes.object,showSecond:o.PropTypes.bool,hourOptions:o.PropTypes.array,minuteOptions:o.PropTypes.array,secondOptions:o.PropTypes.array,disabledHours:o.PropTypes.func,disabledMinutes:o.PropTypes.func,disabledSeconds:o.PropTypes.func,onCurrentSelectPanelChange:o.PropTypes.func},onItemChange:function(e,t){var n=this.props.onChange,r=this.props.value;r=r?r.clone():this.getNow().clone(),"hour"===e?r.setHourOfDay(t):"minute"===e?r.setMinutes(t):r.setSeconds(t),n(r)},onEnterSelectPanel:function(e){this.props.onCurrentSelectPanelChange(e)},getHourSelect:function(e){var t=this.props,n=t.prefixCls,r=t.hourOptions,o=t.disabledHours,i=t.showHour;if(!i)return null;var l=o();return a["default"].createElement(s["default"],{prefixCls:n,options:r.map(function(e){return c(e,l)}),selectedIndex:r.indexOf(e),type:"hour",onSelect:this.onItemChange,onMouseEnter:this.onEnterSelectPanel.bind(this,"hour")})},getMinuteSelect:function(e){var t=this.props,n=t.prefixCls,r=t.minuteOptions,o=t.disabledMinutes,i=this.props.value||this.getNow(),l=o(i.getHourOfDay());return a["default"].createElement(s["default"],{prefixCls:n,options:r.map(function(e){return c(e,l)}),selectedIndex:r.indexOf(e),type:"minute",onSelect:this.onItemChange,onMouseEnter:this.onEnterSelectPanel.bind(this,"minute")})},getSecondSelect:function(e){var t=this.props,n=t.prefixCls,r=t.secondOptions,o=t.disabledSeconds,i=t.showSecond;if(!i)return null;var l=this.props.value||this.getNow(),u=o(l.getHourOfDay(),l.getMinutes());return a["default"].createElement(s["default"],{prefixCls:n,options:r.map(function(e){return c(e,u)}),selectedIndex:r.indexOf(e),type:"second",onSelect:this.onItemChange,onMouseEnter:this.onEnterSelectPanel.bind(this,"second")})},getNow:function(){if(this.showNow)return this.showNow;var e=new u["default"](this.props.gregorianCalendarLocale);return e.setTime(Date.now()),this.showNow=e,e},render:function(){var e=this.props.prefixCls,t=this.props.value||this.getNow();return a["default"].createElement("div",{className:e+"-combobox"},this.getHourSelect(t.getHourOfDay()),this.getMinuteSelect(t.getMinutes()),this.getSecondSelect(t.getSeconds()))}});t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=n(402),s=r(i),l=a["default"].createClass({displayName:"Header",propTypes:{formatter:o.PropTypes.object,prefixCls:o.PropTypes.string,gregorianCalendarLocale:o.PropTypes.object,locale:o.PropTypes.object,disabledDate:o.PropTypes.func,placeholder:o.PropTypes.string,value:o.PropTypes.object,hourOptions:o.PropTypes.array,minuteOptions:o.PropTypes.array,secondOptions:o.PropTypes.array,disabledHours:o.PropTypes.func,disabledMinutes:o.PropTypes.func,disabledSeconds:o.PropTypes.func,onChange:o.PropTypes.func,onClear:o.PropTypes.func,onEsc:o.PropTypes.func,allowEmpty:o.PropTypes.bool,currentSelectPanel:o.PropTypes.string},getInitialState:function(){var e=this.props.value;return{str:e&&this.props.formatter.format(e)||"",invalid:!1}},componentDidMount:function(){this.timer=setTimeout(this.selectRange,0)},componentWillReceiveProps:function(e){var t=e.value;this.setState({str:t&&e.formatter.format(t)||"",invalid:!1})},componentDidUpdate:function(){this.timer=setTimeout(this.selectRange,0)},componentWillUnmount:function(){clearTimeout(this.timer)},onInputChange:function(e){var t=e.target.value;this.setState({str:t});var n=null,r=this.props,o=r.formatter,a=r.gregorianCalendarLocale,i=r.hourOptions,s=r.minuteOptions,l=r.secondOptions,u=r.disabledHours,c=r.disabledMinutes,p=r.disabledSeconds,f=r.onChange,d=r.allowEmpty;if(t){var h=this.props.value;try{n=o.parse(t,{locale:a,obeyCount:!0})}catch(y){return void this.setState({invalid:!0})}if(!n)return void this.setState({invalid:!0});if(i.indexOf(n.getHourOfDay())<0||s.indexOf(n.getMinutes())<0||l.indexOf(n.getSeconds())<0)return void this.setState({invalid:!0});var v=u(),m=c(n.getHourOfDay()),g=p(n.getHourOfDay(),n.getMinutes());if(v&&v.indexOf(n.getHourOfDay())>=0||m&&m.indexOf(n.getMinutes())>=0||g&&g.indexOf(n.getSeconds())>=0)return void this.setState({invalid:!0});if(h&&n){if(h.getHourOfDay()!==n.getHourOfDay()||h.getMinutes()!==n.getMinutes()||h.getSeconds()!==n.getSeconds()){var b=h.clone();b.setHourOfDay(n.getHourOfDay()),b.setMinutes(n.getMinutes()),b.setSeconds(n.getSeconds()),f(b)}}else h!==n&&f(n)}else{if(!d)return void this.setState({invalid:!0});f(null)}this.setState({invalid:!1})},onKeyDown:function(e){27===e.keyCode&&this.props.onEsc()},onClear:function(){this.setState({str:""}),this.props.onClear()},getClearButton:function(){var e=this.props,t=e.locale,n=e.prefixCls,r=e.allowEmpty;return r?a["default"].createElement("a",{className:n+"-clear-btn",role:"button",title:t.clear,onMouseDown:this.onClear}):null},getInput:function(){var e=this.props,t=e.prefixCls,n=e.placeholder,r=this.state,o=r.invalid,i=r.str,s=o?t+"-input-invalid":"";return a["default"].createElement("input",{className:t+"-input "+s,ref:"input",onKeyDown:this.onKeyDown,value:i,placeholder:n,onChange:this.onInputChange})},selectRange:function(){if(this.refs.input.focus(),this.props.currentSelectPanel&&this.refs.input.value){var e=0,t=0;"hour"===this.props.currentSelectPanel?(e=0,t=this.refs.input.value.indexOf(":")):"minute"===this.props.currentSelectPanel?(e=this.refs.input.value.indexOf(":")+1,t=this.refs.input.value.lastIndexOf(":")):"second"===this.props.currentSelectPanel&&(e=this.refs.input.value.lastIndexOf(":")+1,t=this.refs.input.value.length),t-e===2&&(0,s["default"])(this.refs.input,e,t)}},render:function(){var e=this.props.prefixCls;return a["default"].createElement("div",{className:e+"-input-wrap"},this.getInput(),this.getClearButton())}});t["default"]=l,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){}function a(e,t,n){for(var r=[],o=0;e>o;o++)(!t||t.indexOf(o)<0||!n)&&r.push(o);return r}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),l=n(103),u=r(l),c=n(397),p=r(c),f=n(396),d=r(f),h=s["default"].createClass({displayName:"Panel",propTypes:{prefixCls:i.PropTypes.string,value:i.PropTypes.object,locale:i.PropTypes.object,placeholder:i.PropTypes.string,gregorianCalendarLocale:i.PropTypes.object,formatter:i.PropTypes.object,disabledHours:i.PropTypes.func,disabledMinutes:i.PropTypes.func,disabledSeconds:i.PropTypes.func,hideDisabledOptions:i.PropTypes.bool,onChange:i.PropTypes.func,onEsc:i.PropTypes.func,allowEmpty:i.PropTypes.bool,showHour:i.PropTypes.bool,showSecond:i.PropTypes.bool,onClear:i.PropTypes.func},mixins:[u["default"]],getDefaultProps:function(){return{onChange:o,onClear:o}},getInitialState:function(){return{value:this.props.value,selectionRange:[]}},componentWillReceiveProps:function(e){var t=e.value;t&&this.setState({value:t})},onChange:function(e){this.setState({value:e}),this.props.onChange(e)},onClear:function(){this.props.onClear()},onCurrentSelectPanelChange:function(e){this.setState({currentSelectPanel:e})},render:function(){var e=this.props,t=e.locale,n=e.prefixCls,r=e.placeholder,o=e.disabledHours,i=e.disabledMinutes,l=e.disabledSeconds,u=e.hideDisabledOptions,c=e.allowEmpty,f=e.showHour,h=e.showSecond,y=e.formatter,v=e.gregorianCalendarLocale,m=this.state.value,g=o(),b=i(m?m.getHourOfDay():null),P=l(m?m.getHourOfDay():null,m?m.getMinutes():null),O=a(24,g,u),C=a(60,b,u),T=a(60,P,u);return s["default"].createElement("div",{className:n+"-inner"},s["default"].createElement(p["default"],{prefixCls:n,gregorianCalendarLocale:v,locale:t,value:m,currentSelectPanel:this.state.currentSelectPanel,onEsc:this.props.onEsc,formatter:y,placeholder:r,hourOptions:O,minuteOptions:C,secondOptions:T,disabledHours:o,disabledMinutes:i,disabledSeconds:l,onChange:this.onChange,onClear:this.onClear,allowEmpty:c}),s["default"].createElement(d["default"],{prefixCls:n,value:m,gregorianCalendarLocale:v,formatter:y,onChange:this.onChange,showHour:f,showSecond:h,hourOptions:O,minuteOptions:C,secondOptions:T,disabledHours:o,disabledMinutes:i,disabledSeconds:l,onCurrentSelectPanelChange:this.onCurrentSelectPanelChange}))}});t["default"]=h,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),s=n(4),l=r(s),u=n(2),c=r(u),p=function d(e,t,n){var r=window.requestAnimationFrame||function(){return setTimeout(arguments[0],10)};if(0>=n)return void(e.scrollTop=t);var o=t-e.scrollTop,a=o/n*10;r(function(){e.scrollTop=e.scrollTop+a,e.scrollTop!==t&&d(e,t,n-10)})},f=i["default"].createClass({displayName:"Select",propTypes:{prefixCls:a.PropTypes.string,options:a.PropTypes.array,gregorianCalendarLocale:a.PropTypes.object,selectedIndex:a.PropTypes.number,type:a.PropTypes.string,onSelect:a.PropTypes.func,onMouseEnter:a.PropTypes.func},componentDidMount:function(){this.scrollToSelected(0)},componentDidUpdate:function(e){e.selectedIndex!==this.props.selectedIndex&&this.scrollToSelected(120)},onSelect:function h(e){var t=this.props,h=t.onSelect,n=t.type;h(n,e)},getOptions:function(){var e=this,t=this.props,n=t.options,r=t.selectedIndex,a=t.prefixCls;return n.map(function(t,n){var s,l=(0,c["default"])((s={},o(s,a+"-select-option-selected",r===n),o(s,a+"-select-option-disabled",t.disabled),s)),u=null;return t.disabled||(u=e.onSelect.bind(e,+t.value)),i["default"].createElement("li",{className:l,key:n,onClick:u,disabled:t.disabled},t.value)})},scrollToSelected:function(e){var t=l["default"].findDOMNode(this),n=l["default"].findDOMNode(this.refs.list),r=this.props.selectedIndex;0>r&&(r=0);var o=n.children[r],a=o.offsetTop;p(t,a,e)},render:function(){if(0===this.props.options.length)return null;var e=this.props.prefixCls;return i["default"].createElement("div",{className:e+"-select",onMouseEnter:this.props.onMouseEnter},i["default"].createElement("ul",{ref:"list"},this.getOptions()))}});t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return"string"==typeof e?new i["default"](e,t.format):e}Object.defineProperty(t,"__esModule",{value:!0}),t.getFormatter=o;var a=n(26),i=r(a)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={adjustX:1,adjustY:1},r=[0,0],o={bottomLeft:{points:["tl","tl"],overflow:n,offset:[0,-3],targetOffset:r},bottomRight:{points:["tr","tr"],overflow:n,offset:[0,-3],targetOffset:r},topRight:{points:["br","br"],overflow:n,offset:[0,3],targetOffset:r},topLeft:{points:["bl","bl"],overflow:n,offset:[0,3],targetOffset:r}};t["default"]=o,e.exports=t["default"]},function(e,t){"use strict";function n(e,t,n){if(e.createTextRange){var r=e.createTextRange();r.collapse(!0),r.moveStart("character",t),r.moveEnd("character",n),r.select(),e.focus()}else e.setSelectionRange?(e.focus(),e.setSelectionRange(t,n)):"undefined"!=typeof e.selectionStart&&(e.selectionStart=t,e.selectionEnd=n,e.focus())}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),s=r(i),l=n(404),u=n(14),c=r(u),p=s["default"].createClass({displayName:"Tooltip",propTypes:{trigger:i.PropTypes.any,children:i.PropTypes.any,defaultVisible:i.PropTypes.bool,visible:i.PropTypes.bool,placement:i.PropTypes.string,transitionName:i.PropTypes.string,animation:i.PropTypes.any,onVisibleChange:i.PropTypes.func,afterVisibleChange:i.PropTypes.func,overlay:i.PropTypes.node.isRequired,overlayStyle:i.PropTypes.object,overlayClassName:i.PropTypes.string,prefixCls:i.PropTypes.string,mouseEnterDelay:i.PropTypes.number,mouseLeaveDelay:i.PropTypes.number,getTooltipContainer:i.PropTypes.func,destroyTooltipOnHide:i.PropTypes.bool,align:i.PropTypes.shape({offset:i.PropTypes.array,targetOffset:i.PropTypes.array}),arrowContent:i.PropTypes.any},getDefaultProps:function(){return{prefixCls:"rc-tooltip",mouseEnterDelay:0,destroyTooltipOnHide:!1,mouseLeaveDelay:.1,align:{},placement:"right",trigger:["hover"],arrowContent:null}},getPopupElement:function(){var e=this.props,t=e.arrowContent,n=e.overlay,r=e.prefixCls;return[s["default"].createElement("div",{className:r+"-arrow",key:"arrow"},t),s["default"].createElement("div",{className:r+"-inner",key:"content"},n)]},getPopupDomNode:function(){return this.refs.trigger.popupDomNode},render:function(){var e=this.props,t=e.overlayClassName,n=e.trigger,r=e.mouseEnterDelay,i=e.mouseLeaveDelay,u=e.overlayStyle,p=e.prefixCls,f=e.children,d=e.onVisibleChange,h=e.transitionName,y=e.animation,v=e.placement,m=e.align,g=e.destroyTooltipOnHide,b=e.defaultVisible,P=e.getTooltipContainer,O=o(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer"]),C=a({},O);return"visible"in this.props&&(C.popupVisible=this.props.visible),s["default"].createElement(c["default"],a({popupClassName:t,ref:"trigger",prefixCls:p,popup:this.getPopupElement(),action:n,builtinPlacements:l.placements,popupPlacement:v,popupAlign:m,getPopupContainer:P,onPopupVisibleChange:d,popupTransitionName:h,popupAnimation:y,defaultPopupVisible:b,destroyPopupOnHide:g,mouseLeaveDelay:i,popupStyle:u,mouseEnterDelay:r},C),f)}});t["default"]=p,e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={adjustX:1,adjustY:1},r=[0,0],o={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:r},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:r},top:{points:["bc","tc"],overflow:n,offset:[0,-4],targetOffset:r},bottom:{points:["tc","bc"],overflow:n,offset:[0,4],targetOffset:r},topLeft:{points:["bl","tl"],overflow:n,offset:[0,-4],targetOffset:r},leftTop:{points:["tr","tl"],overflow:n,offset:[-3,0],targetOffset:r},topRight:{points:["br","tr"],overflow:n,offset:[0,-4],targetOffset:r},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:r},bottomRight:{points:["tr","br"],overflow:n,offset:[0,4],targetOffset:r},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:n,offset:[0,4],targetOffset:r},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:r}};t.placements=o,t["default"]=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){}function s(e,t){return String((0,C.getPropValue)(t,(0,C.labelCompatible)(this.props.treeNodeFilterProp))).indexOf(e)>-1}function l(e,t){this[e]=t}function u(e){var t=arguments.length<=1||void 0===arguments[1]?0:arguments[1];return e.map(function(e,n){var r=t+"-"+n,o={title:e.label,value:e.value,key:e.key||e.value||r},a=void 0;return a=e.children&&e.children.length?f["default"].createElement(E["default"],o,u(e.children,r)):f["default"].createElement(E["default"],c({},o,{isLeaf:e.isLeaf}))})}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=n(1),f=r(p),d=n(4),h=r(d),y=n(6),v=n(2),m=r(v),g=n(10),b=r(g),P=n(9),O=r(P),C=n(106),T=n(406),w=r(T),x=n(105),E=r(x),S="SHOW_ALL",k="SHOW_PARENT",N="SHOW_CHILD",_=f["default"].createClass({displayName:"Select",propTypes:{children:p.PropTypes.any,multiple:p.PropTypes.bool,filterTreeNode:p.PropTypes.any,showSearch:p.PropTypes.bool,disabled:p.PropTypes.bool,showArrow:p.PropTypes.bool,tags:p.PropTypes.bool,transitionName:p.PropTypes.string,animation:p.PropTypes.string,choiceTransitionName:p.PropTypes.string,onClick:p.PropTypes.func,onChange:p.PropTypes.func,onSelect:p.PropTypes.func,onSearch:p.PropTypes.func,searchPlaceholder:p.PropTypes.string,placeholder:p.PropTypes.any,value:p.PropTypes.oneOfType([p.PropTypes.array,p.PropTypes.string]),defaultValue:p.PropTypes.oneOfType([p.PropTypes.array,p.PropTypes.string]),label:p.PropTypes.oneOfType([p.PropTypes.array,p.PropTypes.any]),defaultLabel:p.PropTypes.oneOfType([p.PropTypes.array,p.PropTypes.any]),dropdownStyle:p.PropTypes.object,drodownPopupAlign:p.PropTypes.object,maxTagTextLength:p.PropTypes.number,showCheckedStrategy:p.PropTypes.oneOf([S,k,N]),skipHandleInitValue:p.PropTypes.bool,treeIcon:p.PropTypes.bool,treeLine:p.PropTypes.bool,treeDefaultExpandAll:p.PropTypes.bool,treeCheckable:p.PropTypes.oneOfType([p.PropTypes.bool,p.PropTypes.node]),treeNodeLabelProp:p.PropTypes.string,treeNodeFilterProp:p.PropTypes.string,treeData:p.PropTypes.array,loadData:p.PropTypes.func},getDefaultProps:function(){return{prefixCls:"rc-tree-select",filterTreeNode:s,showSearch:!0,allowClear:!1,placeholder:"",searchPlaceholder:"",defaultValue:[],onClick:i,onChange:i,onSelect:i,onSearch:i,showArrow:!0,dropdownMatchSelectWidth:!0,dropdownStyle:{},notFoundContent:"Not Found",showCheckedStrategy:N,skipHandleInitValue:!1,treeIcon:!1,treeLine:!1,treeDefaultExpandAll:!1,treeCheckable:!1,treeNodeFilterProp:"value",treeNodeLabelProp:"title"}},getInitialState:function(){var e=this.props,t=[];t="value"in e?(0,C.toArray)(e.value):(0,C.toArray)(e.defaultValue),e.treeCheckable&&!e.skipHandleInitValue&&(t=this.getValue((0,C.getTreeNodesStates)(this.renderTreeData()||e.children,t).checkedTreeNodes));var n=this.getLabelFromProps(e,t,1),r="";return e.combobox&&(r=t[0]||""),this.saveInputRef=l.bind(this,"inputInstance"),{value:t,inputValue:r,label:n}},componentWillReceiveProps:function(e){if("value"in e){var t=(0,C.toArray)(e.value);e.treeCheckable&&!e.skipHandleInitValue&&(t=this.getValue((0,C.getTreeNodesStates)(this.renderTreeData(e)||e.children,t).checkedTreeNodes));var n=this.getLabelFromProps(e,t);this.setState({value:t,label:n}),e.combobox&&this.setState({inputValue:t[0]||""})}},componentDidUpdate:function(){var e=this.state,t=this.props;if(e.open&&(0,C.isMultipleOrTags)(t)){var n=this.getInputDOMNode();n.value?(n.style.width="",n.style.width=n.scrollWidth+"px"):n.style.width=""}},componentWillUnmount:function(){this.dropdownContainer&&(h["default"].unmountComponentAtNode(this.dropdownContainer),document.body.removeChild(this.dropdownContainer),this.dropdownContainer=null)},onInputChange:function(e){var t=e.target.value,n=this.props;this.setState({inputValue:t,open:!0}),(0,C.isCombobox)(n)&&this.fireChange([t],[t]),n.onSearch(t)},onDropdownVisibleChange:function(e){this.setOpenState(e)},onKeyDown:function(e){var t=this.props;if(!t.disabled){var n=e.keyCode;this.state.open&&!this.getInputDOMNode()?this.onInputKeyDown(e):n!==y.KeyCode.ENTER&&n!==y.KeyCode.DOWN||(this.setOpenState(!0),e.preventDefault())}},onInputKeyDown:function(e){var t=this.props,n=this.state,r=e.keyCode;if(!(0,C.isMultipleOrTags)(t)||e.target.value||r!==y.KeyCode.BACKSPACE){if(r===y.KeyCode.DOWN){if(!n.open)return this.openIfHasChildren(),e.preventDefault(),void e.stopPropagation()}else if(r===y.KeyCode.ESC)return void(n.open&&(this.setOpenState(!1),e.preventDefault(),e.stopPropagation()));n.open}else{var o=n.value.concat();if(o.length){var a=n.label.concat();o.pop(),a.pop(),this.fireChange(o,a)}}},onSelect:function(e,t){var n=this,r="check"===t.event;if(t.selected===!1)return void this.onDeselect(t);var o=t.node,a=this.state.value,i=this.state.label,s=this.props,l=(0,C.getValuePropValue)(o),u=this.getLabelFromNode(o);if(s.onSelect(l,o),(0,C.isMultipleOrTags)(s)){if(r){var c=t.checkedNodes,p=t.checkedNodesPositions;s.showCheckedStrategy===S?c=c:s.showCheckedStrategy===k?!function(){var e=(0,C.filterParentPosition)(p.map(function(e){return e.pos}));c=p.filter(function(t){return-1!==e.indexOf(t.pos)}).map(function(e){return e.node})}():c=c.filter(function(e){return!e.props.children}),a=c.map(function(e){return(0,C.getValuePropValue)(e)}),i=c.map(function(e){return n.getLabelFromNode(e)})}else{if(-1!==a.indexOf(l))return;a=a.concat([l]),i=i.concat([u])}!r&&-1!==a.indexOf(l)}else{if(a[0]===l)return void this.setOpenState(!1);a=[l],i=[u],this.setOpenState(!1)}var f={triggerValue:l,triggerNode:o};r?(f.checked=t.checked,f.allCheckedNodes=(0,C.flatToHierarchy)(t.checkedNodesPositions)):f.selected=t.selected,this.fireChange(a,i,f),this.setState({inputValue:""}),(0,C.isCombobox)(s)&&this.setState({inputValue:(0,C.getPropValue)(o,s.treeNodeLabelProp)})},onDeselect:function(e){this.removeSelected((0,C.getValuePropValue)(e.node)),(0,C.isMultipleOrTags)(this.props)||this.setOpenState(!1),this.setState({inputValue:""})},onPlaceholderClick:function(){this.getInputDOMNode().focus()},onClearSelection:function(e){var t=this.props,n=this.state;t.disabled||(e.stopPropagation(),(n.inputValue||n.value.length)&&(this.fireChange([],[]),this.setOpenState(!1),this.setState({inputValue:""})))},getLabelBySingleValue:function(e,t){var n=this;if(void 0===t)return null;var r=null,o=function a(e){f["default"].Children.forEach(e,function(e){e.props.children&&a(e.props.children),(0,C.getValuePropValue)(e)===t&&(r=n.getLabelFromNode(e))})};return o(e,0),r},getLabelFromNode:function(e){return(0,C.getPropValue)(e,this.props.treeNodeLabelProp)},getLabelFromProps:function(e,t,n){var r=[];return r="label"in e?(0,C.toArray)(e.label):n&&"defaultLabel"in e?(0,C.toArray)(e.defaultLabel):this.getLabelByValue(this.renderTreeData(e)||e.children,t)},getVLForOnChange:function(e){return void 0!==e?(0,C.isMultipleOrTags)(this.props)?e:e[0]:e},getLabelByValue:function(e,t){var n=this;return t.map(function(t){var r=n.getLabelBySingleValue(e,t);return null===r?t:r})},getDropdownContainer:function(){return this.dropdownContainer||(this.dropdownContainer=document.createElement("div"),document.body.appendChild(this.dropdownContainer)),this.dropdownContainer},getSearchPlaceholderElement:function(e){var t=this.props;return t.searchPlaceholder?f["default"].createElement("span",{style:{display:e?"none":"block"},onClick:this.onPlaceholderClick,className:t.prefixCls+"-search__field__placeholder"},t.searchPlaceholder):null},getInputElement:function(){var e=this.props;return f["default"].createElement("span",{className:e.prefixCls+"-search__field__wrap"},f["default"].createElement("input",{ref:this.saveInputRef,onChange:this.onInputChange,onKeyDown:this.onInputKeyDown,value:this.state.inputValue,disabled:e.disabled,className:e.prefixCls+"-search__field",role:"textbox"}),(0,C.isMultipleOrTags)(e)?null:this.getSearchPlaceholderElement(!!this.state.inputValue))},getInputDOMNode:function(){return this.inputInstance},getPopupDOMNode:function(){return this.refs.trigger.getPopupDOMNode()},getPopupComponentRefs:function(){return this.refs.trigger.getPopupEleRefs()},getValue:function(e){this.checkedTreeNodes=e;var t=function(e){return e.map(function(e){return(0,C.getValuePropValue)(e.node)})},n=this.props,r=[];return n.showCheckedStrategy===S?r=t(e):n.showCheckedStrategy===k?!function(){var n=(0,C.filterParentPosition)(e.map(function(e){return e.pos}));r=t(e.filter(function(e){return-1!==n.indexOf(e.pos)}))}():r=t(e.filter(function(e){return!e.node.props.children})),r},getDeselectedValue:function(e){var t=this.checkedTreeNodes,n=void 0;t.forEach(function(t){t.node.props.value===e&&(n=t.pos)});var r=n.split("-"),o=[];t.forEach(function(e){var t=e.pos.split("-");e.pos===n||r.length>t.length&&(0,C.isInclude)(t,r)||r.length<t.length&&(0,C.isInclude)(r,t)||o.push(e.node.props.value)});var a=this.state.label.concat();this.state.value.forEach(function(e,t){-1===o.indexOf(e)&&a.splice(t,1)}),this.fireChange(o,a,{triggerValue:e,clear:!0})},setOpenState:function(e){var t=this,n=this.refs;this.setState({open:e},function(){e||(0,C.isMultipleOrTagsOrCombobox)(t.props)?t.getInputDOMNode()&&t.getInputDOMNode().focus():n.selection&&n.selection.focus()})},removeSelected:function(e,t){var n=this.props;if(!n.disabled){if(t&&t.stopPropagation(),(n.showCheckedStrategy===S||n.showCheckedStrategy===k)&&!n.skipHandleInitValue)return void this.getDeselectedValue(e);var r=this.state.label.concat(),o=this.state.value.indexOf(e),a=this.state.value.filter(function(t){return t!==e});-1!==o&&r.splice(o,1),this.fireChange(a,r,{triggerValue:e,clear:!0})}},openIfHasChildren:function(){var e=this.props;(f["default"].Children.count(e.children)||(0,C.isSingleMode)(e))&&this.setOpenState(!0)},isValueChange:function(e){var t=this.state.value;return"string"==typeof t&&(t=[t]),e.length===t.length&&e.every(function(e,n){return t[n]===e})?void 0:!0},fireChange:function(e,t,n){var r=this.props;if("value"in r||this.setState({value:e,label:t}),this.isValueChange(e)){var a={preValue:[].concat(o(this.state.value))};if(n&&(0,b["default"])(a,n),a.clear){var i=this.renderTreeData()||r.children;a.allCheckedNodes=(0,C.flatToHierarchy)((0,C.filterAllCheckedData)(e,i))}r.onChange(this.getVLForOnChange(e),this.getVLForOnChange(t),a)}},renderTopControlNode:function(){var e=this,t=this.state.value,n=this.state.label,r=this.props,o=r.choiceTransitionName,a=r.prefixCls,i=r.maxTagTextLength;if((0,C.isSingleMode)(r)){var s=f["default"].createElement("span",{key:"placeholder",className:a+"-selection__placeholder"},r.placeholder),l=s;return this.state.label[0]&&(l=f["default"].createElement("span",{key:"value"},this.state.label[0])),f["default"].createElement("span",{className:a+"-selection__rendered"},l)}var u=[];(0,C.isMultipleOrTags)(r)&&(u=t.map(function(t,r){var o=n[r],s=o;return i&&"string"==typeof o&&o.length>i&&(o=o.slice(0,i)+"..."),f["default"].createElement("li",{className:a+"-selection__choice",key:t,title:s},f["default"].createElement("span",{className:a+"-selection__choice__content"},o),f["default"].createElement("span",{className:a+"-selection__choice__remove",onClick:e.removeSelected.bind(e,t)}))})),u.push(f["default"].createElement("li",{className:a+"-search "+a+"-search--inline",key:"__input"},this.getInputElement()));var c=a+"-selection__rendered";return(0,C.isMultipleOrTags)(r)&&o?f["default"].createElement(O["default"],{className:c,component:"ul",transitionName:o},u):f["default"].createElement("ul",{className:c},u)},renderTreeData:function(e){var t=e||this.props;return t.treeData?u(t.treeData):void 0},render:function(){var e,t=this.props,n=(0,C.isMultipleOrTags)(t),r=this.state,o=t.className,i=t.disabled,s=t.allowClear,l=t.prefixCls,u=this.renderTopControlNode(),p={}; (0,C.isCombobox)(t)||(p={onKeyDown:this.onKeyDown,tabIndex:0});var d=(e={},a(e,o,!!o),a(e,l,1),a(e,l+"-open",r.open),a(e,l+"-combobox",(0,C.isCombobox)(t)),a(e,l+"-disabled",i),a(e,l+"-enabled",!i),e),h=f["default"].createElement("span",{key:"clear",className:l+"-selection__clear",onClick:this.onClearSelection});return f["default"].createElement(w["default"],c({},t,{treeNodes:t.children,treeData:this.renderTreeData(),multiple:n,disabled:i,visible:r.open,inputValue:r.inputValue,inputElement:this.getInputElement(),value:r.value,onDropdownVisibleChange:this.onDropdownVisibleChange,onSelect:this.onSelect,ref:"trigger"}),f["default"].createElement("span",{style:t.style,onClick:t.onClick,className:(0,m["default"])(d)},f["default"].createElement("span",c({ref:"selection",key:"selection",className:l+"-selection "+l+"-selection--"+(n?"multiple":"single"),role:"combobox","aria-autocomplete":"list","aria-haspopup":"true","aria-expanded":r.open},p),u,s&&!(0,C.isMultipleOrTags)(t)?h:null,n||!t.showArrow?null:f["default"].createElement("span",{key:"arrow",className:l+"-arrow",tabIndex:"-1",style:{outline:"none"}},f["default"].createElement("b",null)),n?this.getSearchPlaceholderElement(!!this.state.inputValue||this.state.value.length):null)))}});_.SHOW_ALL=S,_.SHOW_PARENT=k,_.SHOW_CHILD=N,t["default"]=_,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),s=r(i),l=n(4),u=r(l),c=n(2),p=r(c),f=n(10),d=r(f),h=n(14),y=r(h),v=n(107),m=r(v),g=n(106),b={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},P=s["default"].createClass({displayName:"SelectTrigger",propTypes:{dropdownMatchSelectWidth:i.PropTypes.bool,dropdownPopupAlign:i.PropTypes.object,visible:i.PropTypes.bool,filterTreeNode:i.PropTypes.any,treeNodes:i.PropTypes.any,prefixCls:i.PropTypes.string,popupClassName:i.PropTypes.string,children:i.PropTypes.any},componentDidUpdate:function(){if(this.props.dropdownMatchSelectWidth&&this.props.visible){var e=this.getPopupDOMNode();e&&(e.style.width=u["default"].findDOMNode(this).offsetWidth+"px")}},getPopupEleRefs:function(){return this.popupEle&&this.popupEle.refs},getPopupDOMNode:function(){return this.refs.trigger.getPopupDomNode()},getDropdownTransitionName:function(){var e=this.props,t=e.transitionName;return!t&&e.animation&&(t=this.getDropdownPrefixCls()+"-"+e.animation),t},getDropdownPrefixCls:function(){return this.props.prefixCls+"-dropdown"},filterTree:function(e){var t=this.props;return t.inputValue&&e.props[(0,g.labelCompatible)(t.treeNodeFilterProp)].indexOf(t.inputValue)>-1},filterTreeNode:function O(e,t){if(!e)return!0;var O=this.props.filterTreeNode;return O?t.props.disabled?!1:O.call(this,e,t):!0},savePopupElement:function(e){this.popupEle=e},renderFilterTreeNodes:function(e){var t=this,n=this.props,r=n.inputValue,o=[];return(0,g.loopAllChildren)(e,function(e,n,a){t.filterTreeNode(r,e)&&o.push({node:e,pos:a})}),(0,g.flatToHierarchy)(o)},renderTree:function(e,t,n){var r=this.props,o=function c(e){return e.map(function(e){var t={key:e.node.key};return(0,d["default"])(t,e.node.props),t.children&&delete t.children,e.children?s["default"].createElement(v.TreeNode,t,c(e.children)):s["default"].createElement(v.TreeNode,t)})},i={multiple:n,prefixCls:r.prefixCls+"-tree",showIcon:r.treeIcon,showLine:r.treeLine,defaultExpandAll:r.treeDefaultExpandAll,checkable:r.treeCheckable,filterTreeNode:this.filterTree},l=r.value||r.defaultValue,u=[];return(0,g.loopAllChildren)(e,function(e){l.indexOf((0,g.getValuePropValue)(e))>-1&&u.push(e.key)}),i.checkable?(i.selectable=!1,i.checkedKeys=u,i.onCheck=r.onSelect):(i.selectedKeys=u,i.onSelect=r.onSelect),i.defaultExpandedKeys=u,r.loadData&&(i.loadData=r.loadData),s["default"].createElement(m["default"],a({ref:this.savePopupElement},i),o(t))},render:function(){var e,t=this.props,n=t.multiple,r=this.getDropdownPrefixCls(),a=(e={},o(e,t.dropdownClassName,!!t.dropdownClassName),o(e,r+"--"+(n?"multiple":"single"),1),e),i=t.visible,l=n||t.combobox||!t.showSearch?null:s["default"].createElement("span",{className:r+"-search"},t.inputElement),u=this.renderFilterTreeNodes(t.treeData||t.treeNodes),c=void 0;u.length||(t.notFoundContent&&(c=s["default"].createElement("span",null,t.notFoundContent)),l||(i=!1));var f=s["default"].createElement("div",null,l,c?c:this.renderTree(t.treeData||t.treeNodes,u,n));return s["default"].createElement(y["default"],{action:t.disabled?[]:["click"],ref:"trigger",popupPlacement:"bottomLeft",builtinPlacements:b,popupAlign:this.props.dropdownPopupAlign,prefixCls:r,popupTransitionName:this.getDropdownTransitionName(),onPopupVisibleChange:t.onDropdownVisibleChange,popup:f,popupVisible:i,popupClassName:(0,p["default"])(a),popupStyle:t.dropdownStyle},this.props.children)}});t["default"]=P,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(405),a=r(o),i=n(105),s=r(i);a["default"].TreeNode=s["default"],t["default"]=a["default"],e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(){}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(i)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=a,n=i,r=!0,s=u=void 0}},p=n(1),f=r(p),d=n(10),h=r(d),y=n(2),v=r(y),m=n(108),g=function(e){function t(e){var n=this;a(this,t),c(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),["onKeyDown","onCheck"].forEach(function(e){n[e]=n[e].bind(n)}),this.contextmenuKeys=[],this.checkedKeysChange=!0,this.state={expandedKeys:this.getDefaultExpandedKeys(e),checkedKeys:this.getDefaultCheckedKeys(e),selectedKeys:this.getDefaultSelectedKeys(e),dragNodesKeys:"",dragOverNodeKey:"",dropNodeKey:""}}return i(t,e),u(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.getDefaultExpandedKeys(e,!0),n=this.getDefaultCheckedKeys(e,!0),r=this.getDefaultSelectedKeys(e,!0),o={};t&&(o.expandedKeys=t),n&&(e.checkedKeys===this.props.checkedKeys?this.checkedKeysChange=!1:this.checkedKeysChange=!0,o.checkedKeys=n),r&&(o.selectedKeys=r),this.setState(o)}},{key:"onDragStart",value:function(e,t){this.dragNode=t,this.dragNodesKeys=this.getDragNodes(t);var n={dragNodesKeys:this.dragNodesKeys},r=this.getExpandedKeys(t,!1);r&&(this.getRawExpandedKeys(),n.expandedKeys=r),this.setState(n),this.props.onDragStart({event:e,node:t})}},{key:"onDragEnterGap",value:function(e,t){var n=(0,m.getOffset)(t.refs.selectHandle).top,r=t.refs.selectHandle.offsetHeight,o=e.pageY,a=2;return o>n+r-a?(this.dropPosition=1,1):n+a>o?(this.dropPosition=-1,-1):(this.dropPosition=0,0)}},{key:"onDragEnter",value:function(e,t){var n=this.onDragEnterGap(e,t);if(this.dragNode.props.eventKey===t.props.eventKey&&0===n)return void this.setState({dragOverNodeKey:""});var r={dragOverNodeKey:t.props.eventKey},a=this.getExpandedKeys(t,!0);a&&(this.getRawExpandedKeys(),r.expandedKeys=a),this.setState(r),this.props.onDragEnter({event:e,node:t,expandedKeys:a&&[].concat(o(a))||[].concat(o(this.state.expandedKeys))})}},{key:"onDragOver",value:function(e,t){this.props.onDragOver({event:e,node:t})}},{key:"onDragLeave",value:function(e,t){this.props.onDragLeave({event:e,node:t})}},{key:"onDrop",value:function(e,t){var n=t.props.eventKey;if(this.setState({dragOverNodeKey:"",dropNodeKey:n}),this.dragNodesKeys.indexOf(n)>-1)return console.warn&&console.warn("can not drop to dragNode(include it's children node)"),!1;var r=t.props.pos.split("-"),a={event:e,node:t,dragNode:this.dragNode,dragNodesKeys:[].concat(o(this.dragNodesKeys)),dropPosition:this.dropPosition+Number(r[r.length-1])};0!==this.dropPosition&&(a.dropToGap=!0),"expandedKeys"in this.props&&(a.rawExpandedKeys=[].concat(o(this._rawExpandedKeys))||[].concat(o(this.state.expandedKeys))),this.props.onDrop(a)}},{key:"onExpand",value:function(e){var t=this,n=!e.props.expanded,r="expandedKeys"in this.props,a=[].concat(o(this.state.expandedKeys)),i=a.indexOf(e.props.eventKey);return n&&-1===i?a.push(e.props.eventKey):!n&&i>-1&&a.splice(i,1),r||this.setState({expandedKeys:a}),this.props.onExpand(a,{node:e,expanded:n}),n&&this.props.loadData?this.props.loadData(e).then(function(){r||t.setState({expandedKeys:a})}):void 0}},{key:"onCheck",value:function(e){var t=this,n=!e.props.checked;e.props.halfChecked&&(n=!0);var r=e.props.eventKey,a=[].concat(o(this.state.checkedKeys)),i=a.indexOf(r),s={event:"check",node:e,checked:n};if(this.props.checkStrictly&&"checkedKeys"in this.props)n&&-1===i&&a.push(r),!n&&i>-1&&a.splice(i,1),s.checkedNodes=[],(0,m.loopAllChildren)(this.props.children,function(e,t,n,r){-1!==a.indexOf(r)&&s.checkedNodes.push(e)}),this.props.onCheck((0,m.getStrictlyValue)(a,this.props.checkedKeys.halfChecked),s);else{n&&-1===i&&!function(){t.treeNodesStates[e.props.pos].checked=!0;var n=[];Object.keys(t.treeNodesStates).forEach(function(e){t.treeNodesStates[e].checked&&n.push(e)}),(0,m.handleCheckState)(t.treeNodesStates,(0,m.filterParentPosition)(n),!0)}(),n||(this.treeNodesStates[e.props.pos].checked=!1,this.treeNodesStates[e.props.pos].halfChecked=!1,(0,m.handleCheckState)(this.treeNodesStates,[e.props.pos],!1));var l=(0,m.getCheck)(this.treeNodesStates);s.checkedNodes=l.checkedNodes,s.checkedNodesPositions=l.checkedNodesPositions,this.checkKeys=l,this._checkedKeys=a=l.checkedKeys,"checkedKeys"in this.props||this.setState({checkedKeys:a}),this.props.onCheck(a,s)}}},{key:"onSelect",value:function(e){var t=this.props,n=[].concat(o(this.state.selectedKeys)),r=e.props.eventKey,a=n.indexOf(r),i=void 0;-1!==a?(i=!1,n.splice(a,1)):(i=!0,t.multiple||(n.length=0),n.push(r));var s=[];n.length&&(0,m.loopAllChildren)(this.props.children,function(e){-1!==n.indexOf(e.key)&&s.push(e)});var l={event:"select",node:e,selected:i,selectedNodes:s};"selectedKeys"in this.props||this.setState({selectedKeys:n}),t.onSelect(n,l)}},{key:"onMouseEnter",value:function(e,t){this.props.onMouseEnter({event:e,node:t})}},{key:"onMouseLeave",value:function(e,t){this.props.onMouseLeave({event:e,node:t})}},{key:"onContextMenu",value:function(e,t){var n=[].concat(o(this.state.selectedKeys)),r=t.props.eventKey;-1===this.contextmenuKeys.indexOf(r)&&this.contextmenuKeys.push(r),this.contextmenuKeys.forEach(function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}),-1===n.indexOf(r)&&n.push(r),this.setState({selectedKeys:n}),this.props.onRightClick({event:e,node:t})}},{key:"onKeyDown",value:function(e){e.preventDefault()}},{key:"getFilterExpandedKeys",value:function(e,t,n){var r=e[t],o=[];e.autoExpandParent&&(0,m.loopAllChildren)(e.children,function(e,t,n,a){r.indexOf(a)>-1&&o.push(n)});var a=[];return(0,m.loopAllChildren)(e.children,function(t,r,i,s){n?a.push(s):e.autoExpandParent&&o.forEach(function(e){(e.split("-").length>i.split("-").length&&(0,m.isInclude)(i.split("-"),e.split("-"))||i===e)&&-1===a.indexOf(s)&&a.push(s)})}),a.length?a:r}},{key:"getDefaultExpandedKeys",value:function(e,t){var n=t?void 0:this.getFilterExpandedKeys(e,"defaultExpandedKeys",e.defaultExpandAll);return"expandedKeys"in e&&(n=(e.autoExpandParent?this.getFilterExpandedKeys(e,"expandedKeys",!1):e.expandedKeys)||[]),n}},{key:"getDefaultCheckedKeys",value:function(e,t){var n=t?void 0:e.defaultCheckedKeys;return"checkedKeys"in e&&(n=e.checkedKeys||[],e.checkStrictly&&(e.checkedKeys.checked?n=e.checkedKeys.checked:Array.isArray(e.checkedKeys)||(n=[]))),n}},{key:"getDefaultSelectedKeys",value:function(e,t){var n=function(t){return e.multiple?[].concat(o(t)):t.length?[t[0]]:t},r=t?void 0:n(e.defaultSelectedKeys);return"selectedKeys"in e&&(r=n(e.selectedKeys)),r}},{key:"getRawExpandedKeys",value:function(){!this._rawExpandedKeys&&"expandedKeys"in this.props&&(this._rawExpandedKeys=[].concat(o(this.state.expandedKeys)))}},{key:"getOpenTransitionName",value:function(){var e=this.props,t=e.openTransitionName,n=e.openAnimation;return t||"string"!=typeof n||(t=e.prefixCls+"-open-"+n),t}},{key:"getDragNodes",value:function(e){var t=[],n=e.props.pos.split("-");return(0,m.loopAllChildren)(this.props.children,function(r,o,a,i){var s=a.split("-");(e.props.pos===a||n.length<s.length&&(0,m.isInclude)(n,s))&&t.push(i)}),t}},{key:"getExpandedKeys",value:function(e,t){var n=e.props.eventKey,r=this.state.expandedKeys,a=r.indexOf(n),i=void 0;return a>-1&&!t?(i=[].concat(o(r)),i.splice(a,1),i):t&&-1===r.indexOf(n)?r.concat([n]):void 0}},{key:"filterTreeNode",value:function n(e){var n=this.props.filterTreeNode;return"function"!=typeof n||e.props.disabled?!1:n.call(this,e)}},{key:"renderTreeNode",value:function(e,t){var n=arguments.length<=2||void 0===arguments[2]?0:arguments[2],r=n+"-"+t,o=e.key||r,a=this.state,i=this.props,s={ref:"treeNode-"+o,root:this,eventKey:o,pos:r,selectable:i.selectable,loadData:i.loadData,onMouseEnter:i.onMouseEnter,onMouseLeave:i.onMouseLeave,onRightClick:i.onRightClick,prefixCls:i.prefixCls,showLine:i.showLine,showIcon:i.showIcon,draggable:i.draggable,dragOver:a.dragOverNodeKey===o&&0===this.dropPosition,dragOverGapTop:a.dragOverNodeKey===o&&-1===this.dropPosition,dragOverGapBottom:a.dragOverNodeKey===o&&1===this.dropPosition,expanded:-1!==a.expandedKeys.indexOf(o),selected:-1!==a.selectedKeys.indexOf(o),openTransitionName:this.getOpenTransitionName(),openAnimation:i.openAnimation,filterTreeNode:this.filterTreeNode.bind(this)};return i.checkable&&(s.checkable=i.checkable,i.checkStrictly?(a.checkedKeys&&(s.checked=-1!==a.checkedKeys.indexOf(o)||!1),i.checkedKeys.halfChecked?s.halfChecked=-1!==i.checkedKeys.halfChecked.indexOf(o)||!1:s.halfChecked=!1):(this.checkedKeys&&(s.checked=-1!==this.checkedKeys.indexOf(o)||!1),s.halfChecked=-1!==this.halfCheckedKeys.indexOf(o)),this.treeNodesStates[r]&&(0,h["default"])(s,this.treeNodesStates[r].siblingPosition)),f["default"].cloneElement(e,s)}},{key:"render",value:function(){var e=this,t=this.props,n={className:(0,v["default"])(t.className,t.prefixCls),role:"tree-node"};return t.focusable&&(n.tabIndex="0",n.onKeyDown=this.onKeyDown),t.checkable&&this.checkedKeysChange&&(t.checkStrictly?(this.treeNodesStates={},(0,m.loopAllChildren)(t.children,function(t,n,r,o,a){e.treeNodesStates[r]={siblingPosition:a}})):t._treeNodesStates?(this.treeNodesStates=t._treeNodesStates.treeNodesStates,this.halfCheckedKeys=t._treeNodesStates.halfCheckedKeys,this.checkedKeys=t._treeNodesStates.checkedKeys):!function(){var n=e.state.checkedKeys,r=void 0;e.checkKeys&&e._checkedKeys&&e._checkedKeys.every(function(e,t){return n[t]===e})?r=e.checkKeys:!function(){var o=[];e.treeNodesStates={},(0,m.loopAllChildren)(t.children,function(t,r,a,i,s){e.treeNodesStates[a]={node:t,key:i,checked:!1,halfChecked:!1,siblingPosition:s},-1!==n.indexOf(i)&&(e.treeNodesStates[a].checked=!0,o.push(a))}),(0,m.handleCheckState)(e.treeNodesStates,(0,m.filterParentPosition)(o),!0),r=(0,m.getCheck)(e.treeNodesStates)}(),e.halfCheckedKeys=r.halfCheckedKeys,e.checkedKeys=r.checkedKeys}()),f["default"].createElement("ul",l({},n,{unselectable:!0,ref:"tree"}),f["default"].Children.map(t.children,this.renderTreeNode,this))}}]),t}(f["default"].Component);g.propTypes={prefixCls:p.PropTypes.string,children:p.PropTypes.any,showLine:p.PropTypes.bool,showIcon:p.PropTypes.bool,selectable:p.PropTypes.bool,multiple:p.PropTypes.bool,checkable:p.PropTypes.oneOfType([p.PropTypes.bool,p.PropTypes.node]),_treeNodesStates:p.PropTypes.object,checkStrictly:p.PropTypes.bool,draggable:p.PropTypes.bool,autoExpandParent:p.PropTypes.bool,defaultExpandAll:p.PropTypes.bool,defaultExpandedKeys:p.PropTypes.arrayOf(p.PropTypes.string),expandedKeys:p.PropTypes.arrayOf(p.PropTypes.string),defaultCheckedKeys:p.PropTypes.arrayOf(p.PropTypes.string),checkedKeys:p.PropTypes.oneOfType([p.PropTypes.arrayOf(p.PropTypes.string),p.PropTypes.object]),defaultSelectedKeys:p.PropTypes.arrayOf(p.PropTypes.string),selectedKeys:p.PropTypes.arrayOf(p.PropTypes.string),onExpand:p.PropTypes.func,onCheck:p.PropTypes.func,onSelect:p.PropTypes.func,loadData:p.PropTypes.func,onMouseEnter:p.PropTypes.func,onMouseLeave:p.PropTypes.func,onRightClick:p.PropTypes.func,onDragStart:p.PropTypes.func,onDragEnter:p.PropTypes.func,onDragOver:p.PropTypes.func,onDragLeave:p.PropTypes.func,onDrop:p.PropTypes.func,filterTreeNode:p.PropTypes.func,openTransitionName:p.PropTypes.string,openAnimation:p.PropTypes.oneOfType([p.PropTypes.string,p.PropTypes.object])},g.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,checkStrictly:!1,draggable:!1,autoExpandParent:!0,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],onExpand:s,onCheck:s,onSelect:s,onDragStart:s,onDragEnter:s,onDragOver:s,onDragLeave:s,onDrop:s},t["default"]=g,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(i)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=a,n=i,r=!0,s=u=void 0}},c=n(1),p=r(c),f=n(10),d=r(f),h=n(2),y=r(h),v=n(9),m=r(v),g=n(108),b="undefined"!=typeof window?(0,g.browser)(window.navigator):"",P=/.*(IE|Edge).+/.test(b),O="---",C=function(e){function t(e){var n=this;a(this,t),u(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),["onExpand","onCheck","onContextMenu","onMouseEnter","onMouseLeave","onDragStart","onDragEnter","onDragOver","onDragLeave","onDrop"].forEach(function(e){n[e]=n[e].bind(n)}),this.state={dataLoading:!1,dragNodeHighlight:!1}}return i(t,e),l(t,[{key:"componentDidMount",value:function(){this.props.root._treeNodeInstances||(this.props.root._treeNodeInstances=[]),this.props.root._treeNodeInstances.push(this)}},{key:"onCheck",value:function(){this.props.root.onCheck(this)}},{key:"onSelect",value:function(){this.props.root.onSelect(this)}},{key:"onMouseEnter",value:function(e){e.preventDefault(),this.props.root.onMouseEnter(e,this)}},{key:"onMouseLeave",value:function(e){e.preventDefault(),this.props.root.onMouseLeave(e,this)}},{key:"onContextMenu",value:function(e){e.preventDefault(),this.props.root.onContextMenu(e,this)}},{key:"onDragStart",value:function(e){e.stopPropagation(),this.setState({dragNodeHighlight:!0}),this.props.root.onDragStart(e,this);try{e.dataTransfer.setData("text/plain","firefox-need-it")}finally{}}},{key:"onDragEnter",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.root.onDragEnter(e,this)}},{key:"onDragOver",value:function(e){return e.preventDefault(),e.stopPropagation(),this.props.root.onDragOver(e,this),!1}},{key:"onDragLeave",value:function(e){e.stopPropagation(),this.props.root.onDragLeave(e,this)}},{key:"onDrop",value:function(e){e.preventDefault(),e.stopPropagation(),this.setState({dragNodeHighlight:!1}),this.props.root.onDrop(e,this)}},{key:"onExpand",value:function(){var e=this,t=this.props.root.onExpand(this);t&&"object"==typeof t&&!function(){var n=function(t){e.setState({dataLoading:t})};n(!0),t.then(function(){n(!1)},function(){n(!1)})}()}},{key:"onKeyDown",value:function(e){e.preventDefault()}},{key:"renderSwitcher",value:function(e,t){var n=e.prefixCls,r=o({},n+"-switcher",!0);return e.showLine?"0-0"===e.pos?r[n+"-roots_"+t]=!0:(r[n+"-center_"+t]=!e.last,r[n+"-bottom_"+t]=e.last):r[n+"-noline_"+t]=!0,e.disabled?(r[n+"-switcher-disabled"]=!0,p["default"].createElement("span",{className:(0,y["default"])(r)})):p["default"].createElement("span",{className:(0,y["default"])(r),onClick:this.onExpand})}},{key:"renderCheckbox",value:function(e){var t=e.prefixCls,n=o({},t+"-checkbox",!0);e.checked?n[t+"-checkbox-checked"]=!0:e.halfChecked&&(n[t+"-checkbox-indeterminate"]=!0);var r=null;return"boolean"!=typeof e.checkable&&(r=e.checkable),e.disabled||e.disableCheckbox?(n[t+"-checkbox-disabled"]=!0,p["default"].createElement("span",{ref:"checkbox",className:(0,y["default"])(n)},r)):p["default"].createElement("span",{ref:"checkbox",className:(0,y["default"])(n),onClick:this.onCheck},r)}},{key:"renderChildren",value:function(e){var n=this.renderFirst;this.renderFirst=1;var r=!0;!n&&e.expanded&&(r=!1);var a=e.children,i=a,l=void 0;if(Array.isArray(a)&&(l=a.every(function(e){return e.type===t})),a&&(a.type===t||l)){var u,c=(u={},o(u,e.prefixCls+"-child-tree",!0),o(u,e.prefixCls+"-child-tree-open",e.expanded),u);e.showLine&&(c[e.prefixCls+"-line"]=!e.last);var f={};e.openTransitionName?f.transitionName=e.openTransitionName:"object"==typeof e.openAnimation&&(f.animation=(0,d["default"])({},e.openAnimation),r||delete f.animation.appear),i=p["default"].createElement(m["default"],s({},f,{showProp:"expanded",transitionAppear:r,component:""}),p["default"].createElement("ul",{className:(0,y["default"])(c),expanded:e.expanded},p["default"].Children.map(a,function(t,n){return e.root.renderTreeNode(t,n,e.pos)},e.root)))}return i}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.prefixCls,a=n.expanded?"open":"close",i=(e={},o(e,r+"-iconEle",!0),o(e,r+"-icon_loading",this.state.dataLoading),o(e,r+"-icon__"+a,!0),e),l=!0,u=n.title,c=this.renderChildren(n);c&&c!==n.children||(c=null,n.loadData&&!n.isLeaf||(l=!1)),n.expanded||(c=null);var f=function(){var e=n.showIcon||n.loadData&&t.state.dataLoading?p["default"].createElement("span",{className:(0,y["default"])(i)}):null,o=p["default"].createElement("span",{className:r+"-title"},u),a={};return n.disabled||((n.selected||t.state.dragNodeHighlight)&&(a.className=r+"-node-selected"),a.onClick=function(e){e.preventDefault(),n.selectable&&t.onSelect()},n.onRightClick&&(a.onContextMenu=t.onContextMenu),n.onMouseEnter&&(a.onMouseEnter=t.onMouseEnter),n.onMouseLeave&&(a.onMouseLeave=t.onMouseLeave),n.draggable&&(P&&(a.href="#"),a.draggable=!0,a["aria-grabbed"]=!0,a.onDragStart=t.onDragStart)),p["default"].createElement("a",s({ref:"selectHandle",title:"string"==typeof u?u:""},a),e,o)},d={};n.draggable&&(d.onDragEnter=this.onDragEnter,d.onDragOver=this.onDragOver,d.onDragLeave=this.onDragLeave,d.onDrop=this.onDrop);var h="",v="";n.disabled?h=r+"-treenode-disabled":n.dragOver?v="drag-over":n.dragOverGapTop?v="drag-over-gap-top":n.dragOverGapBottom&&(v="drag-over-gap-bottom");var m=n.filterTreeNode(this)?"filter-node":"",g=function(){var e,t=(e={},o(e,r+"-switcher",!0),o(e,r+"-switcher-noop",!0),e);return n.showLine?(t[r+"-center_docu"]=!n.last,t[r+"-bottom_docu"]=n.last):t[r+"-noline_docu"]=!0,p["default"].createElement("span",{className:(0,y["default"])(t)})};return p["default"].createElement("li",s({},d,{ref:"li",className:(0,y["default"])(n.className,h,v,m)}),l?this.renderSwitcher(n,a):g(),n.checkable?this.renderCheckbox(n):null,f(),c)}}]),t}(p["default"].Component);C.isTreeNode=1,C.propTypes={prefixCls:c.PropTypes.string,disabled:c.PropTypes.bool,disableCheckbox:c.PropTypes.bool,expanded:c.PropTypes.bool,isLeaf:c.PropTypes.bool,root:c.PropTypes.object,onSelect:c.PropTypes.func},C.defaultProps={title:O},t["default"]=C,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(1),i=r(a),s=n(4),l=r(s),u=n(307),c=r(u),p=n(9),f=r(p),d=n(411),h=r(d),y=n(109),v=r(y),m=i["default"].createClass({displayName:"Popup",propTypes:{visible:a.PropTypes.bool,style:a.PropTypes.object,getClassNameFromAlign:a.PropTypes.func,onAlign:a.PropTypes.func,getRootDomNode:a.PropTypes.func,onMouseEnter:a.PropTypes.func,align:a.PropTypes.any,destroyPopupOnHide:a.PropTypes.bool,className:a.PropTypes.string,prefixCls:a.PropTypes.string,onMouseLeave:a.PropTypes.func},componentDidMount:function(){this.rootNode=this.getPopupDomNode()},onAlign:function(e,t){var n=this.props,r=n.getClassNameFromAlign(n.align),o=n.getClassNameFromAlign(t);r!==o&&(this.currentAlignClassName=o,e.className=this.getClassName(o)),n.onAlign(e,t)},getPopupDomNode:function(){return l["default"].findDOMNode(this.refs.popup)},getTarget:function(){return this.props.getRootDomNode()},getMaskTransitionName:function(){var e=this.props,t=e.maskTransitionName,n=e.maskAnimation;return!t&&n&&(t=e.prefixCls+"-"+n),t},getTransitionName:function(){var e=this.props,t=e.transitionName;return!t&&e.animation&&(t=e.prefixCls+"-"+e.animation),t},getClassName:function(e){return this.props.prefixCls+" "+this.props.className+" "+e},getPopupElement:function(){var e=this.props,t=e.align,n=e.style,r=e.visible,a=e.prefixCls,s=e.destroyPopupOnHide,l=this.getClassName(this.currentAlignClassName||e.getClassNameFromAlign(t)),u=a+"-hidden";r||(this.currentAlignClassName=null);var p=o({},n,this.getZIndexStyle()),d={className:l,prefixCls:a,ref:"popup",onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,style:p};return s?i["default"].createElement(f["default"],{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName()},r?i["default"].createElement(c["default"],{target:this.getTarget,key:"popup",monitorWindowResize:!0,align:t,onAlign:this.onAlign},i["default"].createElement(h["default"],o({visible:!0},d),e.children)):null):i["default"].createElement(f["default"],{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName(),showProp:"xVisible"},i["default"].createElement(c["default"],{target:this.getTarget,key:"popup",monitorWindowResize:!0,xVisible:r,childrenProps:{visible:"xVisible"},disabled:!r,align:t,onAlign:this.onAlign},i["default"].createElement(h["default"],o({hiddenClassName:u},d),e.children)))},getZIndexStyle:function(){var e={},t=this.props;return void 0!==t.zIndex&&(e.zIndex=t.zIndex),e},getMaskElement:function(){var e=this.props,t=void 0;if(e.mask){var n=this.getMaskTransitionName();t=i["default"].createElement(v["default"],{style:this.getZIndexStyle(),key:"mask",className:e.prefixCls+"-mask",hiddenClassName:e.prefixCls+"-mask-hidden",visible:e.visible}),n&&(t=i["default"].createElement(f["default"],{key:"mask",showProp:"visible",transitionAppear:!0,component:"",transitionName:n},t))}return t},render:function(){return i["default"].createElement("div",null,this.getMaskElement(),this.getPopupElement())}});t["default"]=m,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=n(109),s=r(i),l=a["default"].createClass({displayName:"PopupInner",propTypes:{hiddenClassName:o.PropTypes.string,className:o.PropTypes.string,prefixCls:o.PropTypes.string,onMouseEnter:o.PropTypes.func,onMouseLeave:o.PropTypes.func,children:o.PropTypes.any},render:function(){var e=this.props,t=e.className;return e.visible||(t+=" "+e.hiddenClassName),a["default"].createElement("div",{className:t,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,style:e.style},a["default"].createElement(s["default"],{className:e.prefixCls+"-content",visible:e.visible},e.children))}});t["default"]=l,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){}function a(){return""}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},l=n(1),u=r(l),c=n(4),p=r(c),f=n(6),d=n(410),h=r(d),y=n(413),v=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"],m=u["default"].createClass({displayName:"Trigger",propTypes:{action:l.PropTypes.any,showAction:l.PropTypes.any,hideAction:l.PropTypes.any,getPopupClassNameFromAlign:l.PropTypes.any,onPopupVisibleChange:l.PropTypes.func,afterPopupVisibleChange:l.PropTypes.func,popup:l.PropTypes.node.isRequired,popupStyle:l.PropTypes.object,prefixCls:l.PropTypes.string,popupClassName:l.PropTypes.string,popupPlacement:l.PropTypes.string,builtinPlacements:l.PropTypes.object,popupTransitionName:l.PropTypes.string,popupAnimation:l.PropTypes.any,mouseEnterDelay:l.PropTypes.number,mouseLeaveDelay:l.PropTypes.number,zIndex:l.PropTypes.number,focusDelay:l.PropTypes.number,blurDelay:l.PropTypes.number,getPopupContainer:l.PropTypes.func,destroyPopupOnHide:l.PropTypes.bool,mask:l.PropTypes.bool,onPopupAlign:l.PropTypes.func,popupAlign:l.PropTypes.object,popupVisible:l.PropTypes.bool,maskTransitionName:l.PropTypes.string,maskAnimation:l.PropTypes.string},getDefaultProps:function(){return{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:a,onPopupVisibleChange:o,afterPopupVisibleChange:o,onPopupAlign:o,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,action:[],showAction:[],hideAction:[]}},getInitialState:function(){var e=this.props,t=void 0;return t="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,{popupVisible:t}},componentDidMount:function(){this.componentDidUpdate({},{popupVisible:this.state.popupVisible})},componentWillReceiveProps:function(e){"popupVisible"in e&&this.setState({popupVisible:!!e.popupVisible})},componentDidUpdate:function(e,t){var n=this,r=this.props,o=this.state;if(this.popupRendered){ var a=function(){var e=n;return p["default"].unstable_renderSubtreeIntoContainer(n,n.getPopupElement(),n.getPopupContainer(),function(){this.isMounted()?e.popupDomNode=this.getPopupDomNode():e.popupDomNode=null,t.popupVisible!==o.popupVisible&&r.afterPopupVisibleChange(o.popupVisible)}),n.isClickToHide()&&o.popupVisible?(n.clickOutsideHandler||(n.clickOutsideHandler=f.Dom.addEventListener(document,"mousedown",n.onDocumentClick),n.touchOutsideHandler=f.Dom.addEventListener(document,"touchstart",n.onDocumentClick)),{v:void 0}):void(n.clickOutsideHandler&&(n.clickOutsideHandler.remove(),n.touchOutsideHandler.remove(),n.clickOutsideHandler=null,n.touchOutsideHandler=null))}();if("object"===("undefined"==typeof a?"undefined":s(a)))return a.v}},componentWillUnmount:function(){var e=this.popupContainer;e&&(p["default"].unmountComponentAtNode(e),e.parentNode.removeChild(e),this.popupContainer=null),this.clearDelayTimer(),this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.touchOutsideHandler.remove(),this.clickOutsideHandler=null,this.touchOutsideHandler=null)},onMouseEnter:function(){this.delaySetPopupVisible(!0,this.props.mouseEnterDelay)},onMouseLeave:function(){this.delaySetPopupVisible(!1,this.props.mouseLeaveDelay)},onFocus:function(){this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.props.focusDelay))},onMouseDown:function(){this.preClickTime=Date.now()},onTouchStart:function(){this.preTouchTime=Date.now()},onBlur:function(){this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.props.blurDelay)},onClick:function(e){if(this.focusTime){var t=void 0;if(this.preClickTime&&this.preTouchTime?t=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?t=this.preClickTime:this.preTouchTime&&(t=this.preTouchTime),Math.abs(t-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,e.preventDefault();var n=!this.state.popupVisible;(this.isClickToHide()&&!n||n&&this.isClickToShow())&&this.setPopupVisible(!this.state.popupVisible)},onDocumentClick:function(e){var t=e.target,n=(0,c.findDOMNode)(this),r=this.getPopupDomNode();f.Dom.contains(n,t)||f.Dom.contains(r,t)||this.setPopupVisible(!1)},getPopupDomNode:function(){return this.popupDomNode},getRootDomNode:function(){return p["default"].findDOMNode(this)},getPopupContainer:function(){if(!this.popupContainer){this.popupContainer=document.createElement("div");var e=this.props.getPopupContainer?this.props.getPopupContainer((0,c.findDOMNode)(this)):document.body;e.appendChild(this.popupContainer)}return this.popupContainer},getPopupClassNameFromAlign:function(e){var t=[],n=this.props,r=n.popupPlacement,o=n.builtinPlacements,a=n.prefixCls;return r&&o&&t.push((0,y.getPopupClassNameFromAlign)(o,a,e)),n.getPopupClassNameFromAlign&&t.push(n.getPopupClassNameFromAlign(e)),t.join(" ")},getPopupAlign:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?(0,y.getAlignFromPlacement)(r,t,n):n},getPopupElement:function(){var e=this.props,t=this.state,n={};return-1!==e.action.indexOf("hover")&&(n.onMouseEnter=this.onMouseEnter,n.onMouseLeave=this.onMouseLeave),u["default"].createElement(h["default"],i({prefixCls:e.prefixCls,destroyPopupOnHide:e.destroyPopupOnHide,visible:t.popupVisible,className:e.popupClassName,action:e.action,align:this.getPopupAlign(),onAlign:e.onPopupAlign,animation:e.popupAnimation,getClassNameFromAlign:this.getPopupClassNameFromAlign},n,{getRootDomNode:this.getRootDomNode,style:e.popupStyle,mask:e.mask,zIndex:e.zIndex,transitionName:e.popupTransitionName,maskAnimation:e.maskAnimation,maskTransitionName:e.maskTransitionName}),e.popup)},setPopupVisible:function(e){this.clearDelayTimer(),this.state.popupVisible!==e&&("popupVisible"in this.props||this.setState({popupVisible:e}),this.props.onPopupVisibleChange(e))},delaySetPopupVisible:function(e,t){var n=this,r=1e3*t;this.clearDelayTimer(),r?this.delayTimer=setTimeout(function(){n.setPopupVisible(e),n.clearDelayTimer()},r):this.setPopupVisible(e)},clearDelayTimer:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},isClickToShow:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")},isClickToHide:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")},isMouseEnterToShow:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")},isMouseLeaveToHide:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")},isFocusToShow:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")},isBlurToHide:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")},render:function(){this.popupRendered=this.popupRendered||this.state.popupVisible;var e=this.props,t=e.children,n=u["default"].Children.only(t),r=n.props||{},o={};return(this.isClickToHide()||this.isClickToShow())&&(o.onClick=(0,f.createChainedFunction)(this.onClick,r.onClick),o.onMouseDown=(0,f.createChainedFunction)(this.onMouseDown,r.onMouseDown),o.onTouchStart=(0,f.createChainedFunction)(this.onTouchStart,r.onTouchStart)),this.isMouseEnterToShow()&&(o.onMouseEnter=(0,f.createChainedFunction)(this.onMouseEnter,r.onMouseEnter)),this.isMouseLeaveToHide()&&(o.onMouseLeave=(0,f.createChainedFunction)(this.onMouseLeave,r.onMouseLeave)),(this.isFocusToShow()||this.isBlurToHide())&&(o.onFocus=(0,f.createChainedFunction)(this.onFocus,r.onFocus),o.onBlur=(0,f.createChainedFunction)(this.onBlur,r.onBlur)),v.forEach(function(t){var n=void 0;n=e[t]&&o[t]?(0,f.createChainedFunction)(e[t],o[t]):e[t]||o[t],n&&(o[t]=n)}),u["default"].cloneElement(n,o)}});t["default"]=m,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){return e[0]===t[0]&&e[1]===t[1]}function r(e,t,n){var r=e[t]||{};return a({},r,n)}function o(e,t,r){var o=r.points;for(var a in e)if(e.hasOwnProperty(a)&&n(e[a].points,o))return t+"-placement-"+a;return""}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.getAlignFromPlacement=r,t.getPopupClassNameFromAlign=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(418),a=r(o),i=n(1),s=r(i),l=n(110),u=r(l),c=s["default"].createClass({displayName:"AjaxUploader",propTypes:{multiple:i.PropTypes.bool,onStart:i.PropTypes.func,data:i.PropTypes.oneOfType([i.PropTypes.object,i.PropTypes.func]),headers:i.PropTypes.object,beforeUpload:i.PropTypes.func,withCredentials:i.PropTypes.bool},onChange:function(e){var t=e.target.files;this.uploadFiles(t)},onClick:function(){var e=this.refs.file;e&&(e.click(),e.value="")},onKeyDown:function(e){"Enter"===e.key&&this.onClick()},onFileDrop:function(e){if("dragover"===e.type)return e.preventDefault();var t=e.dataTransfer.files;this.uploadFiles(t),e.preventDefault()},uploadFiles:function(e){var t=e.length;if(t>0){for(var n=0;t>n;n++){var r=e.item(n);r.uid=(0,u["default"])(),this.upload(r)}this.props.multiple?this.props.onStart(Array.prototype.slice.call(e)):this.props.onStart(Array.prototype.slice.call(e)[0])}},upload:function(e){var t=this,n=this.props;if(!n.beforeUpload)return this.post(e);var r=n.beforeUpload(e);r&&r.then?r.then(function(){t.post(e)}):r!==!1&&this.post(e)},post:function(e){var t=this.props,n=t.data;"function"==typeof n&&(n=n(e)),(0,a["default"])({action:t.action,filename:t.name,file:e,data:n,headers:t.headers,withCredentials:t.withCredentials,onProgress:function(n){t.onProgress(n,e)},onSuccess:function(n){t.onSuccess(n,e)},onError:function(n,r){t.onError(n,r,e)}})},render:function(){var e={display:"none"},t=this.props;return s["default"].createElement("span",{onClick:this.onClick,onKeyDown:this.onKeyDown,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,role:"button",tabIndex:"0"},s["default"].createElement("input",{type:"file",ref:"file",style:e,accept:t.accept,multiple:this.props.multiple,onChange:this.onChange}),t.children)}});t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=n(4),s=r(i),l=n(110),u=r(l),c=n(12),p=r(c),f={position:"absolute",top:0,opacity:0,filter:"alpha(opacity=0)",left:0,zIndex:9999},d=a["default"].createClass({displayName:"IframeUploader",propTypes:{onStart:o.PropTypes.func,multiple:o.PropTypes.bool,children:o.PropTypes.any,data:o.PropTypes.oneOfType([o.PropTypes.object,o.PropTypes.func]),action:o.PropTypes.string,name:o.PropTypes.string},componentDidMount:function(){this.updateIframeWH(),this.initIframe()},componentDidUpdate:function(){this.updateIframeWH()},onLoad:function(){if(this.loading){var e=this.props,t=void 0,n=this.file;try{var r=this.getIframeDocument(),o=r.getElementsByTagName("script")[0];o&&o.parentNode===r.body&&r.body.removeChild(o),t=r.body.innerHTML,e.onSuccess(t,n)}catch(a){(0,p["default"])(!1,"cross domain error for Upload. Maybe server should return document.domain script. see Note from https://github.com/react-component/upload"),t="cross-domain",e.onError(a,null,n)}this.enableIframe(),this.initIframe()}},onChange:function(){var e=this.getFormInputNode(),t=this.file={uid:(0,u["default"])(),name:e.value};this.props.onStart(this.getFileForMultiple(t));var n=this.getFormNode(),r=this.getFormDataNode(),o=this.props.data;"function"==typeof o&&(o=o(t));var a=[];for(var i in o)o.hasOwnProperty(i)&&a.push('<input name="'+i+'" value="'+o[i]+'"/>');r.innerHTML=a.join(""),n.submit(),r.innerHTML="",this.disabledIframe()},getIframeNode:function(){return this.refs.iframe},getIframeDocument:function(){return this.getIframeNode().contentDocument},getFormNode:function(){return this.getIframeDocument().getElementById("form")},getFormInputNode:function(){return this.getIframeDocument().getElementById("input")},getFormDataNode:function(){return this.getIframeDocument().getElementById("data")},getFileForMultiple:function(e){return this.props.multiple?[e]:e},getIframeHTML:function(e){var t="",n="";return e&&(t='<script>document.domain="'+e+'";</script>',n='<input name="_documentDomain" value="'+e+'" />'),'\n <!DOCTYPE html>\n <html>\n <head>\n <meta http-equiv="X-UA-Compatible" content="IE=edge" />\n <style>\n body,html {padding:0;margin:0;border:0;overflow:hidden;}\n </style>\n '+t+'\n </head>\n <body>\n <form method="post"\n encType="multipart/form-data"\n action="'+this.props.action+'" id="form" style="display:block;height:9999px;position:relative;overflow:hidden;">\n <input id="input" type="file"\n name="'+this.props.name+'"\n style="position:absolute;top:0;right:0;height:9999px;font-size:9999px;cursor:pointer;"/>\n '+n+'\n <span id="data"></span>\n </form>\n </body>\n </html>\n '},initIframeSrc:function(){this.domain&&(this.getIframeNode().src="javascript:void((function(){\n var d = document;\n d.open();\n d.domain='"+this.domain+"';\n d.write('');\n d.close();\n })())")},initIframe:function(){var e=this.getIframeNode(),t=e.contentWindow,n=void 0;this.domain=this.domain||"",this.initIframeSrc();try{n=t.document}catch(r){this.domain=document.domain,this.initIframeSrc(),t=e.contentWindow,n=t.document}n.open("text/html","replace"),n.write(this.getIframeHTML(this.domain)),n.close(),this.getFormInputNode().onchange=this.onChange},enableIframe:function(){this.loading=!1,this.getIframeNode().style.display=""},disabledIframe:function(){this.loading=!0,this.getIframeNode().style.display="none"},updateIframeWH:function(){var e=s["default"].findDOMNode(this),t=this.getIframeNode();t.style.height=e.offsetHeight+"px",t.style.width=e.offsetWidth+"px"},render:function(){return a["default"].createElement("span",{style:{position:"relative",zIndex:0}},a["default"].createElement("iframe",{ref:"iframe",onLoad:this.onLoad,style:f}),this.props.children)}});t["default"]=d,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),s=n(414),l=r(s),u=n(415),c=r(u),p=i["default"].createClass({displayName:"Upload",propTypes:{forceAjax:a.PropTypes.bool,action:a.PropTypes.string,name:a.PropTypes.string,multipart:a.PropTypes.bool,onError:a.PropTypes.func,onSuccess:a.PropTypes.func,onProgress:a.PropTypes.func,onStart:a.PropTypes.func,data:a.PropTypes.oneOfType([a.PropTypes.object,a.PropTypes.func]),headers:a.PropTypes.object,accept:a.PropTypes.string,multiple:a.PropTypes.bool,beforeUpload:a.PropTypes.func,withCredentials:a.PropTypes.bool},getDefaultProps:function(){return{data:{},headers:{},name:"file",forceAjax:!1,multipart:!1,onProgress:o,onStart:o,onError:o,onSuccess:o,multiple:!1,beforeUpload:null,withCredentials:!1}},getInitialState:function(){return{Component:null}},componentDidMount:function(){this.setState({Component:"undefined"!=typeof FormData?l["default"]:c["default"]})},render:function(){var e=this.state.Component;return e?i["default"].createElement(e,this.props):null}});t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(416)},function(e,t){"use strict";function n(e,t){var n="cannot post "+e.action+" "+t.status+"'",r=new Error(n);return r.status=t.status,r.method="post",r.url=e.action,r}function r(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}function o(e){if("undefined"!=typeof XMLHttpRequest){var t=new XMLHttpRequest;t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var o=new FormData;e.data&&Object.keys(e.data).map(function(t){o.append(t,e.data[t])}),o.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return 200!==t.status?e.onError(n(e,t),r(t)):void e.onSuccess(r(t))},t.open("post",e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0),t.setRequestHeader("X-Requested-With","XMLHttpRequest");var a=e.headers||{};for(var i in a)a.hasOwnProperty(i)&&t.setRequestHeader(i,a[i]);t.send(o)}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e}var o=n(1);e.exports=function(e){return o.Children.map(e,r)}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e){var t=[];return r.Children.forEach(e,function(e){t.push(e)}),t}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){var r=l["default"].unstable_batchedUpdates?function(e){l["default"].unstable_batchedUpdates(n,e)}:n;return(0,i["default"])(e,t,r)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var a=n(120),i=r(a),s=n(4),l=r(s);e.exports=t["default"]},function(e,t){"use strict";e.exports=function(e,t){for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}},function(e,t,n){"use strict";var r=n(116),o={shouldComponentUpdate:function(e,t){return!r(this.props,e)||!r(this.state,t)}};e.exports=o},function(e,t,n){"use strict";var r=n(117),o=n(2);e.exports=r(o,"`rcUtil.classSet()` is deprecated, use `classNames()` by `require('classnames')` instead")},function(e,t){"use strict";function n(){var e=arguments;return function(){for(var t=0;t<e.length;t++)e[t]&&e[t].apply&&e[t].apply(this,arguments)}}e.exports=n},function(e,t){"use strict";var n=0;e.exports=function(){return Date.now()+"_"+n++}},function(e,t,n){"use strict";var r=n(117),o=n(2);e.exports=r(o,"`rcUtil.joinClasses()` is deprecated, use `classNames()` by `require('classnames')` instead")},function(e,t,n){var r=n(243),o=r&&n(253),a=n(78),i={media:function(e,t){e=a(e),"function"==typeof t&&(t={match:t}),o.register(e,t),this._responsiveMediaHandlers||(this._responsiveMediaHandlers=[]),this._responsiveMediaHandlers.push({query:e,handler:t})},componentWillUnmount:function(){this._responsiveMediaHandlers&&this._responsiveMediaHandlers.forEach(function(e){o.unregister(e.query,e.handler)})}};e.exports=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(1),i=r(a),s=n(2),l=r(s),u=i["default"].createClass({displayName:"PrevArrow",clickHandler:function(e,t){t.preventDefault(),this.props.clickHandler(e,t)},render:function(){var e={"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n,r={key:"0",ref:"previous","data-role":"none",className:(0,l["default"])(e),style:{display:"block"},onClick:t};return n=this.props.prevArrow?i["default"].createElement(this.props.prevArrow,r):i["default"].createElement("button",o({key:"0",type:"button"},r)," Previous")}});t.PrevArrow=u;var c=i["default"].createClass({displayName:"NextArrow",clickHandler:function(e,t){t.preventDefault(),this.props.clickHandler(e,t)},render:function(){var e={"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});this.props.infinite||(this.props.centerMode&&this.props.currentSlide>=this.props.slideCount-1?(e["slick-disabled"]=!0,t=null):this.props.currentSlide>=this.props.slideCount-this.props.slidesToShow&&(e["slick-disabled"]=!0,t=null),this.props.slideCount<=this.props.slidesToShow&&(e["slick-disabled"]=!0,t=null));var n,r={key:"1",ref:"next","data-role":"none",className:(0,l["default"])(e),style:{display:"block"},onClick:t};return n=this.props.nextArrow?i["default"].createElement(this.props.nextArrow,r):i["default"].createElement("button",o({key:"1",type:"button"},r)," Next")}});t.NextArrow=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=n(2),s=r(i),l=function(e){var t;return t=Math.ceil(e.slideCount/e.slidesToScroll)},u=a["default"].createClass({displayName:"Dots",clickHandler:function(e,t){t.preventDefault(),this.props.clickHandler(e)},render:function(){var e=this,t=l({slideCount:this.props.slideCount,slidesToScroll:this.props.slidesToScroll}),n=Array.apply(null,Array(t+1).join("0").split("")).map(function(t,n){var r=(0,s["default"])({"slick-active":e.props.currentSlide===n*e.props.slidesToScroll}),o={message:"dots",index:n,slidesToScroll:e.props.slidesToScroll,currentSlide:e.props.currentSlide};return a["default"].createElement("li",{key:n,className:r},a["default"].createElement("button",{onClick:e.clickHandler.bind(e,o)},n+1))});return a["default"].createElement("ul",{className:this.props.dotsClass,style:{display:"block"}},n)}});t.Dots=u},function(e,t,n){"use strict";e.exports=n(435)},function(e,t){"use strict";var n={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,slideCount:null,slideWidth:null,swipeLeft:null,touchObject:{startX:0,startY:0,curX:0,curY:0},lazyLoadedList:[],initialized:!1,edgeDragged:!1,swiped:!1,trackStyle:{},trackWidth:0};e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(1),i=r(a),s=n(434),l=r(s),u=n(114),c=r(u),p=n(432),f=r(p),d=n(112),h=r(d),y=n(2),v=r(y),m=n(436),g=n(430),b=n(429),P=i["default"].createClass({displayName:"InnerSlider",mixins:[c["default"],l["default"]],getInitialState:function(){return f["default"]},getDefaultProps:function(){return h["default"]},componentWillMount:function(){this.props.init&&this.props.init(),this.setState({mounted:!0});for(var e=[],t=0;t<i["default"].Children.count(this.props.children);t++)t>=this.state.currentSlide&&t<this.state.currentSlide+this.props.slidesToShow&&e.push(t);this.props.lazyLoad&&0===this.state.lazyLoadedList.length&&this.setState({lazyLoadedList:e})},componentDidMount:function(){this.initialize(this.props),this.adaptHeight(),window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)},componentWillUnmount:function(){window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.state.autoPlayTimer&&window.clearInterval(this.state.autoPlayTimer)},componentWillReceiveProps:function(e){this.props.slickGoTo!=e.slickGoTo?this.changeSlide({message:"index",index:e.slickGoTo,currentSlide:this.state.currentSlide}):this.update(e)},componentDidUpdate:function(){this.adaptHeight()},onWindowResized:function(){this.update(this.props)},render:function(){var e,t=(0,v["default"])("slick-initialized","slick-slider",this.props.className),n={fade:this.props.fade,cssEase:this.props.cssEase,speed:this.props.speed,infinite:this.props.infinite,centerMode:this.props.centerMode,currentSlide:this.state.currentSlide,lazyLoad:this.props.lazyLoad,lazyLoadedList:this.state.lazyLoadedList,rtl:this.props.rtl,slideWidth:this.state.slideWidth,slidesToShow:this.props.slidesToShow,slideCount:this.state.slideCount,trackStyle:this.state.trackStyle,variableWidth:this.props.variableWidth};if(this.props.dots===!0&&this.state.slideCount>this.props.slidesToShow){var r={dotsClass:this.props.dotsClass,slideCount:this.state.slideCount,slidesToShow:this.props.slidesToShow,currentSlide:this.state.currentSlide,slidesToScroll:this.props.slidesToScroll,clickHandler:this.changeSlide};e=i["default"].createElement(g.Dots,r)}var a,s,l={infinite:this.props.infinite,centerMode:this.props.centerMode,currentSlide:this.state.currentSlide,slideCount:this.state.slideCount,slidesToShow:this.props.slidesToShow,prevArrow:this.props.prevArrow,nextArrow:this.props.nextArrow,clickHandler:this.changeSlide};return this.props.arrows&&(a=i["default"].createElement(b.PrevArrow,l),s=i["default"].createElement(b.NextArrow,l)),i["default"].createElement("div",{className:t,onMouseEnter:this.onInnerSliderEnter,onMouseLeave:this.onInnerSliderLeave},i["default"].createElement("div",{ref:"list",className:"slick-list",onMouseDown:this.swipeStart,onMouseMove:this.state.dragging?this.swipeMove:null,onMouseUp:this.swipeEnd,onMouseLeave:this.state.dragging?this.swipeEnd:null,onTouchStart:this.swipeStart,onTouchMove:this.state.dragging?this.swipeMove:null,onTouchEnd:this.swipeEnd,onTouchCancel:this.state.dragging?this.swipeEnd:null},i["default"].createElement(m.Track,o({ref:"track"},n),this.props.children)),a,s,e)}});t.InnerSlider=P},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(115),a=n(114),i=(r(a),n(28)),s=r(i),l={changeSlide:function(e){var t,n,r,o,a;if(o=this.state.slideCount%this.props.slidesToScroll!==0,t=o?0:(this.state.slideCount-this.state.currentSlide)%this.props.slidesToScroll,"previous"===e.message)r=0===t?this.props.slidesToScroll:this.props.slidesToShow-t,a=this.state.currentSlide-r,this.props.lazyLoad&&(n=this.state.currentSlide-r,a=-1===n?this.state.slideCount-1:n);else if("next"===e.message)r=0===t?this.props.slidesToScroll:t,a=this.state.currentSlide+r;else if("dots"===e.message){if(a=e.index*e.slidesToScroll,a===e.currentSlide)return}else if("index"===e.message&&(a=e.index,a===e.currentSlide))return;this.slideHandler(a)},keyHandler:function(e){},selectHandler:function(e){},swipeStart:function(e){var t,n;this.props.swipe===!1||"ontouchend"in document&&this.props.swipe===!1||this.props.draggable===!1&&-1!==e.type.indexOf("mouse")||(t=void 0!==e.touches?e.touches[0].pageX:e.clientX,n=void 0!==e.touches?e.touches[0].pageY:e.clientY,this.setState({dragging:!0,touchObject:{startX:t,startY:n,curX:t,curY:n}}))},swipeMove:function(e){if(this.state.dragging&&!this.state.animating){var t,n,r,a=this.state.touchObject;n=(0,o.getTrackLeft)((0,s["default"])({slideIndex:this.state.currentSlide,trackRef:this.refs.track},this.props,this.state)),a.curX=e.touches?e.touches[0].pageX:e.clientX,a.curY=e.touches?e.touches[0].pageY:e.clientY,a.swipeLength=Math.round(Math.sqrt(Math.pow(a.curX-a.startX,2))),r=(this.props.rtl===!1?1:-1)*(a.curX>a.startX?1:-1);var i=this.state.currentSlide,l=Math.ceil(this.state.slideCount/this.props.slidesToScroll),u=this.swipeDirection(this.state.touchObject),c=a.swipeLength;this.props.infinite===!1&&(0===i&&"right"===u||i+1>=l&&"left"===u)&&(c=a.swipeLength*this.props.edgeFriction,this.state.edgeDragged===!1&&this.props.edgeEvent&&(this.props.edgeEvent(u),this.setState({edgeDragged:!0}))),this.state.swiped===!1&&this.props.swipeEvent&&(this.props.swipeEvent(u),this.setState({swiped:!0})),t=n+c*r,this.setState({touchObject:a,swipeLeft:t,trackStyle:(0,o.getTrackCSS)((0,s["default"])({left:t},this.props,this.state))}),Math.abs(a.curX-a.startX)<.8*Math.abs(a.curY-a.startY)||a.swipeLength>4&&e.preventDefault()}},swipeEnd:function(e){if(this.state.dragging){var t=this.state.touchObject,n=this.state.listWidth/this.props.touchThreshold,r=this.swipeDirection(t);if(this.setState({dragging:!1,edgeDragged:!1,swiped:!1,swipeLeft:null,touchObject:{}}),t.swipeLength)if(t.swipeLength>n)e.preventDefault(),"left"===r?this.slideHandler(this.state.currentSlide+this.props.slidesToScroll):"right"===r?this.slideHandler(this.state.currentSlide-this.props.slidesToScroll):this.slideHandler(this.state.currentSlide);else{var a=(0,o.getTrackLeft)((0,s["default"])({slideIndex:this.state.currentSlide,trackRef:this.refs.track},this.props,this.state));this.setState({trackStyle:(0,o.getTrackAnimateCSS)((0,s["default"])({left:a},this.props,this.state))})}}},onInnerSliderEnter:function(e){this.props.autoplay&&this.props.pauseOnHover&&this.pause()},onInnerSliderLeave:function(e){this.props.autoplay&&this.props.pauseOnHover&&this.autoPlay()}};t["default"]=l,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(1),a=r(o),i=n(433),s=n(28),l=r(s),u=n(78),c=r(u),p=n(428),f=r(p),d=n(112),h=r(d),y=a["default"].createClass({displayName:"Slider",mixins:[f["default"]],getInitialState:function(){return{breakpoint:null}},componentDidMount:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map(function(e){return e.breakpoint});t.sort(function(e,t){return e-t}),t.forEach(function(n,r){var o;o=0===r?(0,c["default"])({minWidth:0,maxWidth:n}):(0,c["default"])({minWidth:t[r-1],maxWidth:n}),e.media(o,function(){e.setState({breakpoint:n})})});var n=(0,c["default"])({minWidth:t.slice(-1)[0]});this.media(n,function(){e.setState({breakpoint:null})})}},render:function(){var e,t,n=this;return this.state.breakpoint?(t=this.props.responsive.filter(function(e){return e.breakpoint===n.state.breakpoint}),e="unslick"===t[0].settings?"unslick":(0,l["default"])({},this.props,t[0].settings)):e=(0,l["default"])({},h["default"],this.props),"unslick"===e?a["default"].createElement("div",null,this.props.children):a["default"].createElement(i.InnerSlider,e,this.props.children)}});e.exports=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=r(o),i=n(28),s=r(i),l=n(2),u=r(l),c=function(e){var t,n,r,o,a;return a=e.rtl?e.slideCount-1-e.index:e.index,r=0>a||a>=e.slideCount,e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(a-e.currentSlide)%e.slideCount===0,a>e.currentSlide-o-1&&a<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=a&&a<e.currentSlide+e.slidesToShow,(0,u["default"])({"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":r})},p=function(e){var t={};return void 0!==e.variableWidth&&e.variableWidth!==!1||(t.width=e.slideWidth),e.fade&&(t.position="relative",t.left=-e.index*e.slideWidth,t.opacity=e.currentSlide===e.index?1:0,t.transition="opacity "+e.speed+"ms "+e.cssEase,t.WebkitTransition="opacity "+e.speed+"ms "+e.cssEase),t},f=function(e){var t,n,r=[],o=[],i=[],l=a["default"].Children.count(e.children);return a["default"].Children.forEach(e.children,function(f,d){n=!e.lazyLoad|(e.lazyLoad&&e.lazyLoadedList.indexOf(d)>=0)?f:a["default"].createElement("div",null);var h,y=p((0,s["default"])({},e,{index:d})),v=c((0,s["default"])({index:d},e));if(h=n.props.className?(0,u["default"])(v,n.props.className):v,r.push(a["default"].cloneElement(n,{key:d,"data-index":d,className:h,style:(0,s["default"])({},n.props.style||{},y)})),e.infinite&&e.fade===!1){var m=e.variableWidth?e.slidesToShow+1:e.slidesToShow;d>=l-m&&(t=-(l-d),o.push(a["default"].cloneElement(n,{key:t,"data-index":t,className:h,style:(0,s["default"])({},n.props.style||{},y)}))),m>d&&(t=l+d,i.push(a["default"].cloneElement(n,{key:t,"data-index":t,className:h,style:(0,s["default"])({},n.props.style||{},y)})))}}),e.rtl?o.concat(r,i).reverse():o.concat(r,i)},d=a["default"].createClass({displayName:"Track",render:function(){var e=f(this.props);return a["default"].createElement("div",{className:"slick-track",style:this.props.trackStyle},e)}});t.Track=d},function(e,t,n){"use strict";function r(){var e=s("animationend"),t=s("transitionend");e&&l.push(e),t&&l.push(t)}function o(e,t,n){e.addEventListener(t,n,!1)}function a(e,t,n){e.removeEventListener(t,n,!1)}var i=n(73),s=n(438),l=[];i.canUseDOM&&r();var u={addEndEventListener:function(e,t){return 0===l.length?void window.setTimeout(t,0):void l.forEach(function(n){o(e,n,t)})},removeEndEventListener:function(e,t){0!==l.length&&l.forEach(function(n){a(e,n,t)})}};e.exports=u},function(e,t,n){"use strict";function r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function o(e){if(s[e])return s[e];if(!i[e])return e;var t=i[e];for(var n in t)if(t.hasOwnProperty(n)&&n in l)return s[e]=t[n];return""}var a=n(73),i={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},s={},l={};a.canUseDOM&&(l=document.createElement("div").style,"AnimationEvent"in window||(delete i.animationend.animation,delete i.animationiteration.animation,delete i.animationstart.animation),"TransitionEvent"in window||delete i.transitionend.transition),e.exports=o},function(e,t){var n=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()};e.exports=n},function(e,t,n){var r,o;!function(e){function t(e){var t=e.length,r=n.type(e);return"function"===r||n.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in e}if(!e.jQuery){var n=function(e,t){return new n.fn.init(e,t)};n.isWindow=function(e){return null!=e&&e==e.window},n.type=function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?o[i.call(e)]||"object":typeof e},n.isArray=Array.isArray||function(e){return"array"===n.type(e)},n.isPlainObject=function(e){var t;if(!e||"object"!==n.type(e)||e.nodeType||n.isWindow(e))return!1;try{if(e.constructor&&!a.call(e,"constructor")&&!a.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}for(t in e);return void 0===t||a.call(e,t)},n.each=function(e,n,r){var o,a=0,i=e.length,s=t(e);if(r){if(s)for(;i>a&&(o=n.apply(e[a],r),o!==!1);a++);else for(a in e)if(o=n.apply(e[a],r),o===!1)break}else if(s)for(;i>a&&(o=n.call(e[a],a,e[a]),o!==!1);a++);else for(a in e)if(o=n.call(e[a],a,e[a]),o===!1)break;return e},n.data=function(e,t,o){if(void 0===o){var a=e[n.expando],i=a&&r[a];if(void 0===t)return i; if(i&&t in i)return i[t]}else if(void 0!==t){var a=e[n.expando]||(e[n.expando]=++n.uuid);return r[a]=r[a]||{},r[a][t]=o,o}},n.removeData=function(e,t){var o=e[n.expando],a=o&&r[o];a&&n.each(t,function(e,t){delete a[t]})},n.extend=function(){var e,t,r,o,a,i,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[l]||{},l++),"object"!=typeof s&&"function"!==n.type(s)&&(s={}),l===u&&(s=this,l--);u>l;l++)if(null!=(a=arguments[l]))for(o in a)e=s[o],r=a[o],s!==r&&(c&&r&&(n.isPlainObject(r)||(t=n.isArray(r)))?(t?(t=!1,i=e&&n.isArray(e)?e:[]):i=e&&n.isPlainObject(e)?e:{},s[o]=n.extend(c,i,r)):void 0!==r&&(s[o]=r));return s},n.queue=function(e,r,o){function a(e,n){var r=n||[];return null!=e&&(t(Object(e))?!function(e,t){for(var n=+t.length,r=0,o=e.length;n>r;)e[o++]=t[r++];if(n!==n)for(;void 0!==t[r];)e[o++]=t[r++];return e.length=o,e}(r,"string"==typeof e?[e]:e):[].push.call(r,e)),r}if(e){r=(r||"fx")+"queue";var i=n.data(e,r);return o?(!i||n.isArray(o)?i=n.data(e,r,a(o)):i.push(o),i):i||[]}},n.dequeue=function(e,t){n.each(e.nodeType?[e]:e,function(e,r){t=t||"fx";var o=n.queue(r,t),a=o.shift();"inprogress"===a&&(a=o.shift()),a&&("fx"===t&&o.unshift("inprogress"),a.call(r,function(){n.dequeue(r,t)}))})},n.fn=n.prototype={init:function(e){if(e.nodeType)return this[0]=e,this;throw new Error("Not a DOM node.")},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(e.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(e.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function e(){for(var e=this.offsetParent||document;e&&"html"===!e.nodeType.toLowerCase&&"static"===e.style.position;)e=e.offsetParent;return e||document}var t=this[0],e=e.apply(t),r=this.offset(),o=/^(?:body|html)$/i.test(e.nodeName)?{top:0,left:0}:n(e).offset();return r.top-=parseFloat(t.style.marginTop)||0,r.left-=parseFloat(t.style.marginLeft)||0,e.style&&(o.top+=parseFloat(e.style.borderTopWidth)||0,o.left+=parseFloat(e.style.borderLeftWidth)||0),{top:r.top-o.top,left:r.left-o.left}}};var r={};n.expando="velocity"+(new Date).getTime(),n.uuid=0;for(var o={},a=o.hasOwnProperty,i=o.toString,s="Boolean Number String Function Array Date RegExp Object Error".split(" "),l=0;l<s.length;l++)o["[object "+s[l]+"]"]=s[l].toLowerCase();n.fn.init.prototype=n.fn,e.Velocity={Utilities:n}}}(window),function(a){"object"==typeof e&&"object"==typeof e.exports?e.exports=a():(r=a,o="function"==typeof r?r.call(t,n,t,e):r,!(void 0!==o&&(e.exports=o)))}(function(){return function(e,t,n,r){function o(e){for(var t=-1,n=e?e.length:0,r=[];++t<n;){var o=e[t];o&&r.push(o)}return r}function a(e){return y.isWrapped(e)?e=[].slice.call(e):y.isNode(e)&&(e=[e]),e}function i(e){var t=f.data(e,"velocity");return null===t?r:t}function s(e){return function(t){return Math.round(t*e)*(1/e)}}function l(e,n,r,o){function a(e,t){return 1-3*t+3*e}function i(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,n){return((a(t,n)*e+i(t,n))*e+s(t))*e}function u(e,t,n){return 3*a(t,n)*e*e+2*i(t,n)*e+s(t)}function c(t,n){for(var o=0;y>o;++o){var a=u(n,e,r);if(0===a)return n;var i=l(n,e,r)-t;n-=i/a}return n}function p(){for(var t=0;b>t;++t)T[t]=l(t*P,e,r)}function f(t,n,o){var a,i,s=0;do i=n+(o-n)/2,a=l(i,e,r)-t,a>0?o=i:n=i;while(Math.abs(a)>m&&++s<g);return i}function d(t){for(var n=0,o=1,a=b-1;o!=a&&T[o]<=t;++o)n+=P;--o;var i=(t-T[o])/(T[o+1]-T[o]),s=n+i*P,l=u(s,e,r);return l>=v?c(t,s):0==l?s:f(t,n,n+P)}function h(){w=!0,e==n&&r==o||p()}var y=4,v=.001,m=1e-7,g=10,b=11,P=1/(b-1),O="Float32Array"in t;if(4!==arguments.length)return!1;for(var C=0;4>C;++C)if("number"!=typeof arguments[C]||isNaN(arguments[C])||!isFinite(arguments[C]))return!1;e=Math.min(e,1),r=Math.min(r,1),e=Math.max(e,0),r=Math.max(r,0);var T=O?new Float32Array(b):new Array(b),w=!1,x=function(t){return w||h(),e===n&&r===o?t:0===t?0:1===t?1:l(d(t),n,o)};x.getControlPoints=function(){return[{x:e,y:n},{x:r,y:o}]};var E="generateBezier("+[e,n,r,o]+")";return x.toString=function(){return E},x}function u(e,t){var n=e;return y.isString(e)?b.Easings[e]||(n=!1):n=y.isArray(e)&&1===e.length?s.apply(null,e):y.isArray(e)&&2===e.length?P.apply(null,e.concat([t])):y.isArray(e)&&4===e.length?l.apply(null,e):!1,n===!1&&(n=b.Easings[b.defaults.easing]?b.defaults.easing:g),n}function c(e){if(e){var t=(new Date).getTime(),n=b.State.calls.length;n>1e4&&(b.State.calls=o(b.State.calls));for(var a=0;n>a;a++)if(b.State.calls[a]){var s=b.State.calls[a],l=s[0],u=s[2],d=s[3],h=!!d,v=null;d||(d=b.State.calls[a][3]=t-16);for(var m=Math.min((t-d)/u.duration,1),g=0,P=l.length;P>g;g++){var C=l[g],w=C.element;if(i(w)){var x=!1;if(u.display!==r&&null!==u.display&&"none"!==u.display){if("flex"===u.display){var E=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];f.each(E,function(e,t){O.setPropertyValue(w,"display",t)})}O.setPropertyValue(w,"display",u.display)}u.visibility!==r&&"hidden"!==u.visibility&&O.setPropertyValue(w,"visibility",u.visibility);for(var S in C)if("element"!==S){var k,N=C[S],_=y.isString(N.easing)?b.Easings[N.easing]:N.easing;if(1===m)k=N.endValue;else{var j=N.endValue-N.startValue;if(k=N.startValue+j*_(m,u,j),!h&&k===N.currentValue)continue}if(N.currentValue=k,"tween"===S)v=k;else{if(O.Hooks.registered[S]){var M=O.Hooks.getRoot(S),D=i(w).rootPropertyValueCache[M];D&&(N.rootPropertyValue=D)}var A=O.setPropertyValue(w,S,N.currentValue+(0===parseFloat(k)?"":N.unitType),N.rootPropertyValue,N.scrollData);O.Hooks.registered[S]&&(O.Normalizations.registered[M]?i(w).rootPropertyValueCache[M]=O.Normalizations.registered[M]("extract",null,A[1]):i(w).rootPropertyValueCache[M]=A[1]),"transform"===A[0]&&(x=!0)}}u.mobileHA&&i(w).transformCache.translate3d===r&&(i(w).transformCache.translate3d="(0px, 0px, 0px)",x=!0),x&&O.flushTransformCache(w)}}u.display!==r&&"none"!==u.display&&(b.State.calls[a][2].display=!1),u.visibility!==r&&"hidden"!==u.visibility&&(b.State.calls[a][2].visibility=!1),u.progress&&u.progress.call(s[1],s[1],m,Math.max(0,d+u.duration-t),d,v),1===m&&p(a)}}b.State.isTicking&&T(c)}function p(e,t){if(!b.State.calls[e])return!1;for(var n=b.State.calls[e][0],o=b.State.calls[e][1],a=b.State.calls[e][2],s=b.State.calls[e][4],l=!1,u=0,c=n.length;c>u;u++){var p=n[u].element;if(t||a.loop||("none"===a.display&&O.setPropertyValue(p,"display",a.display),"hidden"===a.visibility&&O.setPropertyValue(p,"visibility",a.visibility)),a.loop!==!0&&(f.queue(p)[1]===r||!/\.velocityQueueEntryFlag/i.test(f.queue(p)[1]))&&i(p)){i(p).isAnimating=!1,i(p).rootPropertyValueCache={};var d=!1;f.each(O.Lists.transforms3D,function(e,t){var n=/^scale/.test(t)?1:0,o=i(p).transformCache[t];i(p).transformCache[t]!==r&&new RegExp("^\\("+n+"[^.]").test(o)&&(d=!0,delete i(p).transformCache[t])}),a.mobileHA&&(d=!0,delete i(p).transformCache.translate3d),d&&O.flushTransformCache(p),O.Values.removeClass(p,"velocity-animating")}if(!t&&a.complete&&!a.loop&&u===c-1)try{a.complete.call(o,o)}catch(h){setTimeout(function(){throw h},1)}s&&a.loop!==!0&&s(o),i(p)&&a.loop===!0&&!t&&(f.each(i(p).tweensContainer,function(e,t){/^rotate/.test(e)&&360===parseFloat(t.endValue)&&(t.endValue=0,t.startValue=360),/^backgroundPosition/.test(e)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)}),b(p,"reverse",{loop:!0,delay:a.delay})),a.queue!==!1&&f.dequeue(p,a.queue)}b.State.calls[e]=!1;for(var y=0,v=b.State.calls.length;v>y;y++)if(b.State.calls[y]!==!1){l=!0;break}l===!1&&(b.State.isTicking=!1,delete b.State.calls,b.State.calls=[])}var f,d=function(){if(n.documentMode)return n.documentMode;for(var e=7;e>4;e--){var t=n.createElement("div");if(t.innerHTML="<!--[if IE "+e+"]><span></span><![endif]-->",t.getElementsByTagName("span").length)return t=null,e}return r}(),h=function(){var e=0;return t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(t){var n,r=(new Date).getTime();return n=Math.max(0,16-(r-e)),e=r+n,setTimeout(function(){t(r+n)},n)}}(),y={isString:function(e){return"string"==typeof e},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},isNode:function(e){return e&&e.nodeType},isNodeList:function(e){return"object"==typeof e&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(e))&&e.length!==r&&(0===e.length||"object"==typeof e[0]&&e[0].nodeType>0)},isWrapped:function(e){return e&&(e.jquery||t.Zepto&&t.Zepto.zepto.isZ(e))},isSVG:function(e){return t.SVGElement&&e instanceof t.SVGElement},isEmptyObject:function(e){for(var t in e)return!1;return!0}},v=!1;if(e.fn&&e.fn.jquery?(f=e,v=!0):f=t.Velocity.Utilities,8>=d&&!v)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=d)return void(jQuery.fn.velocity=jQuery.fn.animate);var m=400,g="swing",b={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:n.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:f,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:m,easing:g,begin:r,complete:r,progress:r,display:r,visibility:r,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(e){f.data(e,"velocity",{isSVG:y.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};t.pageYOffset!==r?(b.State.scrollAnchor=t,b.State.scrollPropertyLeft="pageXOffset",b.State.scrollPropertyTop="pageYOffset"):(b.State.scrollAnchor=n.documentElement||n.body.parentNode||n.body,b.State.scrollPropertyLeft="scrollLeft",b.State.scrollPropertyTop="scrollTop");var P=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,n,r){var o={x:t.x+r.dx*n,v:t.v+r.dv*n,tension:t.tension,friction:t.friction};return{dx:o.v,dv:e(o)}}function n(n,r){var o={dx:n.v,dv:e(n)},a=t(n,.5*r,o),i=t(n,.5*r,a),s=t(n,r,i),l=1/6*(o.dx+2*(a.dx+i.dx)+s.dx),u=1/6*(o.dv+2*(a.dv+i.dv)+s.dv);return n.x=n.x+l*r,n.v=n.v+u*r,n}return function r(e,t,o){var a,i,s,l={x:-1,v:0,tension:null,friction:null},u=[0],c=0,p=1e-4,f=.016;for(e=parseFloat(e)||500,t=parseFloat(t)||20,o=o||null,l.tension=e,l.friction=t,a=null!==o,a?(c=r(e,t),i=c/o*f):i=f;;)if(s=n(s||l,i),u.push(1+s.x),c+=16,!(Math.abs(s.x)>p&&Math.abs(s.v)>p))break;return a?function(e){return u[e*(u.length-1)|0]}:c}}();b.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},f.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(e,t){b.Easings[t[0]]=l.apply(null,t[1])});var O=b.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e=0;e<O.Lists.colors.length;e++){var t="color"===O.Lists.colors[e]?"0 0 0 1":"255 255 255 1";O.Hooks.templates[O.Lists.colors[e]]=["Red Green Blue Alpha",t]}var n,r,o;if(d)for(n in O.Hooks.templates){r=O.Hooks.templates[n],o=r[0].split(" ");var a=r[1].match(O.RegEx.valueSplit);"Color"===o[0]&&(o.push(o.shift()),a.push(a.shift()),O.Hooks.templates[n]=[o.join(" "),a.join(" ")])}for(n in O.Hooks.templates){r=O.Hooks.templates[n],o=r[0].split(" ");for(var e in o){var i=n+o[e],s=e;O.Hooks.registered[i]=[n,s]}}},getRoot:function(e){var t=O.Hooks.registered[e];return t?t[0]:e},cleanRootPropertyValue:function(e,t){return O.RegEx.valueUnwrap.test(t)&&(t=t.match(O.RegEx.valueUnwrap)[1]),O.Values.isCSSNullValue(t)&&(t=O.Hooks.templates[e][1]),t},extractValue:function(e,t){var n=O.Hooks.registered[e];if(n){var r=n[0],o=n[1];return t=O.Hooks.cleanRootPropertyValue(r,t),t.toString().match(O.RegEx.valueSplit)[o]}return t},injectValue:function(e,t,n){var r=O.Hooks.registered[e];if(r){var o,a,i=r[0],s=r[1];return n=O.Hooks.cleanRootPropertyValue(i,n),o=n.toString().match(O.RegEx.valueSplit),o[s]=t,a=o.join(" ")}return n}},Normalizations:{registered:{clip:function(e,t,n){switch(e){case"name":return"clip";case"extract":var r;return O.RegEx.wrappedValueAlreadyExtracted.test(n)?r=n:(r=n.toString().match(O.RegEx.valueUnwrap),r=r?r[1].replace(/,(\s+)?/g," "):n),r;case"inject":return"rect("+n+")"}},blur:function(e,t,n){switch(e){case"name":return b.State.isFirefox?"filter":"-webkit-filter";case"extract":var r=parseFloat(n);if(!r&&0!==r){var o=n.toString().match(/blur\(([0-9]+[A-z]+)\)/i);r=o?o[1]:0}return r;case"inject":return parseFloat(n)?"blur("+n+")":"none"}},opacity:function(e,t,n){if(8>=d)switch(e){case"name":return"filter";case"extract":var r=n.toString().match(/alpha\(opacity=(.*)\)/i);return n=r?r[1]/100:1;case"inject":return t.style.zoom=1,parseFloat(n)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(n),10)+")"}else switch(e){case"name":return"opacity";case"extract":return n;case"inject":return n}}},register:function(){9>=d||b.State.isGingerbread||(O.Lists.transformsBase=O.Lists.transformsBase.concat(O.Lists.transforms3D));for(var e=0;e<O.Lists.transformsBase.length;e++)!function(){var t=O.Lists.transformsBase[e];O.Normalizations.registered[t]=function(e,n,o){switch(e){case"name":return"transform";case"extract":return i(n)===r||i(n).transformCache[t]===r?/^scale/i.test(t)?1:0:i(n).transformCache[t].replace(/[()]/g,"");case"inject":var a=!1;switch(t.substr(0,t.length-1)){case"translate":a=!/(%|px|em|rem|vw|vh|\d)$/i.test(o);break;case"scal":case"scale":b.State.isAndroid&&i(n).transformCache[t]===r&&1>o&&(o=1),a=!/(\d)$/i.test(o);break;case"skew":a=!/(deg|\d)$/i.test(o);break;case"rotate":a=!/(deg|\d)$/i.test(o)}return a||(i(n).transformCache[t]="("+o+")"),i(n).transformCache[t]}}}();for(var e=0;e<O.Lists.colors.length;e++)!function(){var t=O.Lists.colors[e];O.Normalizations.registered[t]=function(e,n,o){switch(e){case"name":return t;case"extract":var a;if(O.RegEx.wrappedValueAlreadyExtracted.test(o))a=o;else{var i,s={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(o)?i=s[o]!==r?s[o]:s.black:O.RegEx.isHex.test(o)?i="rgb("+O.Values.hexToRgb(o).join(" ")+")":/^rgba?\(/i.test(o)||(i=s.black),a=(i||o).toString().match(O.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return 8>=d||3!==a.split(" ").length||(a+=" 1"),a;case"inject":return 8>=d?4===o.split(" ").length&&(o=o.split(/\s+/).slice(0,3).join(" ")):3===o.split(" ").length&&(o+=" 1"),(8>=d?"rgb":"rgba")+"("+o.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})},SVGAttribute:function(e){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(d||b.State.isAndroid&&!b.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(e)},prefixCheck:function(e){if(b.State.prefixMatches[e])return[b.State.prefixMatches[e],!0];for(var t=["","Webkit","Moz","ms","O"],n=0,r=t.length;r>n;n++){var o;if(o=0===n?e:t[n]+e.replace(/^\w/,function(e){return e.toUpperCase()}),y.isString(b.State.prefixElement.style[o]))return b.State.prefixMatches[e]=o,[o,!0]}return[e,!1]}},Values:{hexToRgb:function(e){var t,n=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return e=e.replace(n,function(e,t,n,r){return t+t+n+n+r+r}),t=r.exec(e),t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(e){return 0==e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){var t=e&&e.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(e,t){e.classList?e.classList.add(t):e.className+=(e.className.length?" ":"")+t},removeClass:function(e,t){e.classList?e.classList.remove(t):e.className=e.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(e,n,o,a){function s(e,n){function o(){u&&O.setPropertyValue(e,"display","none")}var l=0;if(8>=d)l=f.css(e,n);else{var u=!1;if(/^(width|height)$/.test(n)&&0===O.getPropertyValue(e,"display")&&(u=!0,O.setPropertyValue(e,"display",O.Values.getDisplayType(e))),!a){if("height"===n&&"border-box"!==O.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var c=e.offsetHeight-(parseFloat(O.getPropertyValue(e,"borderTopWidth"))||0)-(parseFloat(O.getPropertyValue(e,"borderBottomWidth"))||0)-(parseFloat(O.getPropertyValue(e,"paddingTop"))||0)-(parseFloat(O.getPropertyValue(e,"paddingBottom"))||0);return o(),c}if("width"===n&&"border-box"!==O.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var p=e.offsetWidth-(parseFloat(O.getPropertyValue(e,"borderLeftWidth"))||0)-(parseFloat(O.getPropertyValue(e,"borderRightWidth"))||0)-(parseFloat(O.getPropertyValue(e,"paddingLeft"))||0)-(parseFloat(O.getPropertyValue(e,"paddingRight"))||0);return o(),p}}var h;h=i(e)===r?t.getComputedStyle(e,null):i(e).computedStyle?i(e).computedStyle:i(e).computedStyle=t.getComputedStyle(e,null),"borderColor"===n&&(n="borderTopColor"),l=9===d&&"filter"===n?h.getPropertyValue(n):h[n],""!==l&&null!==l||(l=e.style[n]),o()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(n)){var y=s(e,"position");("fixed"===y||"absolute"===y&&/top|left/i.test(n))&&(l=f(e).position()[n]+"px")}return l}var l;if(O.Hooks.registered[n]){var u=n,c=O.Hooks.getRoot(u);o===r&&(o=O.getPropertyValue(e,O.Names.prefixCheck(c)[0])),O.Normalizations.registered[c]&&(o=O.Normalizations.registered[c]("extract",e,o)),l=O.Hooks.extractValue(u,o)}else if(O.Normalizations.registered[n]){var p,h;p=O.Normalizations.registered[n]("name",e),"transform"!==p&&(h=s(e,O.Names.prefixCheck(p)[0]),O.Values.isCSSNullValue(h)&&O.Hooks.templates[n]&&(h=O.Hooks.templates[n][1])),l=O.Normalizations.registered[n]("extract",e,h)}if(!/^[\d-]/.test(l))if(i(e)&&i(e).isSVG&&O.Names.SVGAttribute(n))if(/^(height|width)$/i.test(n))try{l=e.getBBox()[n]}catch(y){l=0}else l=e.getAttribute(n);else l=s(e,O.Names.prefixCheck(n)[0]);return O.Values.isCSSNullValue(l)&&(l=0),b.debug>=2&&console.log("Get "+n+": "+l),l},setPropertyValue:function(e,n,r,o,a){var s=n;if("scroll"===n)a.container?a.container["scroll"+a.direction]=r:"Left"===a.direction?t.scrollTo(r,a.alternateValue):t.scrollTo(a.alternateValue,r);else if(O.Normalizations.registered[n]&&"transform"===O.Normalizations.registered[n]("name",e))O.Normalizations.registered[n]("inject",e,r),s="transform",r=i(e).transformCache[n];else{if(O.Hooks.registered[n]){var l=n,u=O.Hooks.getRoot(n);o=o||O.getPropertyValue(e,u),r=O.Hooks.injectValue(l,r,o),n=u}if(O.Normalizations.registered[n]&&(r=O.Normalizations.registered[n]("inject",e,r),n=O.Normalizations.registered[n]("name",e)),s=O.Names.prefixCheck(n)[0],8>=d)try{e.style[s]=r}catch(c){b.debug&&console.log("Browser does not support ["+r+"] for ["+s+"]")}else i(e)&&i(e).isSVG&&O.Names.SVGAttribute(n)?e.setAttribute(n,r):e.style[s]=r;b.debug>=2&&console.log("Set "+n+" ("+s+"): "+r)}return[s,r]},flushTransformCache:function(e){function t(t){return parseFloat(O.getPropertyValue(e,t))}var n="";if((d||b.State.isAndroid&&!b.State.isChrome)&&i(e).isSVG){var r={translate:[t("translateX"),t("translateY")],skewX:[t("skewX")],skewY:[t("skewY")],scale:1!==t("scale")?[t("scale"),t("scale")]:[t("scaleX"),t("scaleY")],rotate:[t("rotateZ"),0,0]};f.each(i(e).transformCache,function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),r[e]&&(n+=e+"("+r[e].join(" ")+") ",delete r[e])})}else{var o,a;f.each(i(e).transformCache,function(t){return o=i(e).transformCache[t],"transformPerspective"===t?(a=o,!0):(9===d&&"rotateZ"===t&&(t="rotate"),void(n+=t+o+" "))}),a&&(n="perspective"+a+" "+n)}O.setPropertyValue(e,"transform",n)}};O.Hooks.register(),O.Normalizations.register(),b.hook=function(e,t,n){var o=r;return e=a(e),f.each(e,function(e,a){if(i(a)===r&&b.init(a),n===r)o===r&&(o=b.CSS.getPropertyValue(a,t));else{var s=b.CSS.setPropertyValue(a,t,n);"transform"===s[0]&&b.CSS.flushTransformCache(a),o=s}}),o};var C=function(){function e(){return s?S.promise||null:l}function o(){function e(e){function p(e,t){var n=r,o=r,i=r;return y.isArray(e)?(n=e[0],!y.isArray(e[1])&&/^[\d-]/.test(e[1])||y.isFunction(e[1])||O.RegEx.isHex.test(e[1])?i=e[1]:(y.isString(e[1])&&!O.RegEx.isHex.test(e[1])||y.isArray(e[1]))&&(o=t?e[1]:u(e[1],s.duration),e[2]!==r&&(i=e[2]))):n=e,t||(o=o||s.easing),y.isFunction(n)&&(n=n.call(a,w,T)),y.isFunction(i)&&(i=i.call(a,w,T)),[n||0,o,i]}function d(e,t){var n,r;return r=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(e){return n=e,""}),n||(n=O.Values.getUnitType(e)),[r,n]}function m(){var e={myParent:a.parentNode||n.body,position:O.getPropertyValue(a,"position"),fontSize:O.getPropertyValue(a,"fontSize")},r=e.position===A.lastPosition&&e.myParent===A.lastParent,o=e.fontSize===A.lastFontSize;A.lastParent=e.myParent,A.lastPosition=e.position,A.lastFontSize=e.fontSize;var s=100,l={};if(o&&r)l.emToPx=A.lastEmToPx,l.percentToPxWidth=A.lastPercentToPxWidth,l.percentToPxHeight=A.lastPercentToPxHeight;else{var u=i(a).isSVG?n.createElementNS("http://www.w3.org/2000/svg","rect"):n.createElement("div");b.init(u),e.myParent.appendChild(u),f.each(["overflow","overflowX","overflowY"],function(e,t){b.CSS.setPropertyValue(u,t,"hidden")}),b.CSS.setPropertyValue(u,"position",e.position),b.CSS.setPropertyValue(u,"fontSize",e.fontSize),b.CSS.setPropertyValue(u,"boxSizing","content-box"),f.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(e,t){b.CSS.setPropertyValue(u,t,s+"%")}),b.CSS.setPropertyValue(u,"paddingLeft",s+"em"),l.percentToPxWidth=A.lastPercentToPxWidth=(parseFloat(O.getPropertyValue(u,"width",null,!0))||1)/s,l.percentToPxHeight=A.lastPercentToPxHeight=(parseFloat(O.getPropertyValue(u,"height",null,!0))||1)/s,l.emToPx=A.lastEmToPx=(parseFloat(O.getPropertyValue(u,"paddingLeft"))||1)/s,e.myParent.removeChild(u)}return null===A.remToPx&&(A.remToPx=parseFloat(O.getPropertyValue(n.body,"fontSize"))||16),null===A.vwToPx&&(A.vwToPx=parseFloat(t.innerWidth)/100,A.vhToPx=parseFloat(t.innerHeight)/100),l.remToPx=A.remToPx,l.vwToPx=A.vwToPx,l.vhToPx=A.vhToPx,b.debug>=1&&console.log("Unit ratios: "+JSON.stringify(l),a),l}if(s.begin&&0===w)try{s.begin.call(h,h)}catch(P){setTimeout(function(){throw P},1)}if("scroll"===k){var C,x,E,N=/^x$/i.test(s.axis)?"Left":"Top",_=parseFloat(s.offset)||0;s.container?y.isWrapped(s.container)||y.isNode(s.container)?(s.container=s.container[0]||s.container,C=s.container["scroll"+N],E=C+f(a).position()[N.toLowerCase()]+_):s.container=null:(C=b.State.scrollAnchor[b.State["scrollProperty"+N]],x=b.State.scrollAnchor[b.State["scrollProperty"+("Left"===N?"Top":"Left")]],E=f(a).offset()[N.toLowerCase()]+_),l={scroll:{rootPropertyValue:!1,startValue:C,currentValue:C,endValue:E,unitType:"",easing:s.easing,scrollData:{container:s.container,direction:N,alternateValue:x}},element:a},b.debug&&console.log("tweensContainer (scroll): ",l.scroll,a)}else if("reverse"===k){if(!i(a).tweensContainer)return void f.dequeue(a,s.queue);"none"===i(a).opts.display&&(i(a).opts.display="auto"),"hidden"===i(a).opts.visibility&&(i(a).opts.visibility="visible"),i(a).opts.loop=!1,i(a).opts.begin=null,i(a).opts.complete=null,g.easing||delete s.easing,g.duration||delete s.duration,s=f.extend({},i(a).opts,s);var j=f.extend(!0,{},i(a).tweensContainer);for(var M in j)if("element"!==M){var D=j[M].startValue;j[M].startValue=j[M].currentValue=j[M].endValue,j[M].endValue=D,y.isEmptyObject(g)||(j[M].easing=s.easing),b.debug&&console.log("reverse tweensContainer ("+M+"): "+JSON.stringify(j[M]),a)}l=j}else if("start"===k){var j;i(a).tweensContainer&&i(a).isAnimating===!0&&(j=i(a).tweensContainer),f.each(v,function(e,t){if(RegExp("^"+O.Lists.colors.join("$|^")+"$").test(e)){var n=p(t,!0),o=n[0],a=n[1],i=n[2];if(O.RegEx.isHex.test(o)){for(var s=["Red","Green","Blue"],l=O.Values.hexToRgb(o),u=i?O.Values.hexToRgb(i):r,c=0;c<s.length;c++){var f=[l[c]];a&&f.push(a),u!==r&&f.push(u[c]),v[e+s[c]]=f}delete v[e]}}});for(var V in v){var F=p(v[V]),I=F[0],R=F[1],K=F[2];V=O.Names.camelCase(V);var W=O.Hooks.getRoot(V),H=!1;if(i(a).isSVG||"tween"===W||O.Names.prefixCheck(W)[1]!==!1||O.Normalizations.registered[W]!==r){(s.display!==r&&null!==s.display&&"none"!==s.display||s.visibility!==r&&"hidden"!==s.visibility)&&/opacity|filter/.test(V)&&!K&&0!==I&&(K=0),s._cacheValues&&j&&j[V]?(K===r&&(K=j[V].endValue+j[V].unitType),H=i(a).rootPropertyValueCache[W]):O.Hooks.registered[V]?K===r?(H=O.getPropertyValue(a,W),K=O.getPropertyValue(a,V,H)):H=O.Hooks.templates[W][1]:K===r&&(K=O.getPropertyValue(a,V));var z,B,U,Y=!1;if(z=d(V,K),K=z[0],U=z[1],z=d(V,I),I=z[0].replace(/^([+-\/*])=/,function(e,t){return Y=t,""}),B=z[1],K=parseFloat(K)||0,I=parseFloat(I)||0,"%"===B&&(/^(fontSize|lineHeight)$/.test(V)?(I/=100,B="em"):/^scale/.test(V)?(I/=100,B=""):/(Red|Green|Blue)$/i.test(V)&&(I=I/100*255,B="")),/[\/*]/.test(Y))B=U;else if(U!==B&&0!==K)if(0===I)B=U;else{o=o||m();var q=/margin|padding|left|right|width|text|word|letter/i.test(V)||/X$/.test(V)||"x"===V?"x":"y";switch(U){case"%":K*="x"===q?o.percentToPxWidth:o.percentToPxHeight;break;case"px":break;default:K*=o[U+"ToPx"]}switch(B){case"%":K*=1/("x"===q?o.percentToPxWidth:o.percentToPxHeight);break;case"px":break;default:K*=1/o[B+"ToPx"]}}switch(Y){case"+":I=K+I;break;case"-":I=K-I;break;case"*":I=K*I;break;case"/":I=K/I}l[V]={rootPropertyValue:H,startValue:K,currentValue:K,endValue:I,unitType:B,easing:R},b.debug&&console.log("tweensContainer ("+V+"): "+JSON.stringify(l[V]),a)}else b.debug&&console.log("Skipping ["+W+"] due to a lack of browser support.")}l.element=a}l.element&&(O.Values.addClass(a,"velocity-animating"),L.push(l),""===s.queue&&(i(a).tweensContainer=l,i(a).opts=s),i(a).isAnimating=!0,w===T-1?(b.State.calls.push([L,h,s,null,S.resolver]),b.State.isTicking===!1&&(b.State.isTicking=!0,c())):w++)}var o,a=this,s=f.extend({},b.defaults,g),l={};switch(i(a)===r&&b.init(a),parseFloat(s.delay)&&s.queue!==!1&&f.queue(a,s.queue,function(e){b.velocityQueueEntryFlag=!0,i(a).delayTimer={setTimeout:setTimeout(e,parseFloat(s.delay)),next:e}}),s.duration.toString().toLowerCase()){case"fast":s.duration=200;break;case"normal":s.duration=m;break;case"slow":s.duration=600;break;default:s.duration=parseFloat(s.duration)||1}b.mock!==!1&&(b.mock===!0?s.duration=s.delay=1:(s.duration*=parseFloat(b.mock)||1,s.delay*=parseFloat(b.mock)||1)),s.easing=u(s.easing,s.duration),s.begin&&!y.isFunction(s.begin)&&(s.begin=null),s.progress&&!y.isFunction(s.progress)&&(s.progress=null),s.complete&&!y.isFunction(s.complete)&&(s.complete=null),s.display!==r&&null!==s.display&&(s.display=s.display.toString().toLowerCase(),"auto"===s.display&&(s.display=b.CSS.Values.getDisplayType(a))),s.visibility!==r&&null!==s.visibility&&(s.visibility=s.visibility.toString().toLowerCase()),s.mobileHA=s.mobileHA&&b.State.isMobile&&!b.State.isGingerbread,s.queue===!1?s.delay?setTimeout(e,s.delay):e():f.queue(a,s.queue,function(t,n){return n===!0?(S.promise&&S.resolver(h),!0):(b.velocityQueueEntryFlag=!0,void e(t))}),""!==s.queue&&"fx"!==s.queue||"inprogress"===f.queue(a)[0]||f.dequeue(a)}var s,l,d,h,v,g,P=arguments[0]&&(arguments[0].p||f.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||y.isString(arguments[0].properties));if(y.isWrapped(this)?(s=!1,d=0,h=this,l=this):(s=!0,d=1,h=P?arguments[0].elements||arguments[0].e:arguments[0]),h=a(h)){P?(v=arguments[0].properties||arguments[0].p,g=arguments[0].options||arguments[0].o):(v=arguments[d],g=arguments[d+1]);var T=h.length,w=0;if(!/^(stop|finish|finishAll)$/i.test(v)&&!f.isPlainObject(g)){var x=d+1;g={};for(var E=x;E<arguments.length;E++)y.isArray(arguments[E])||!/^(fast|normal|slow)$/i.test(arguments[E])&&!/^\d/.test(arguments[E])?y.isString(arguments[E])||y.isArray(arguments[E])?g.easing=arguments[E]:y.isFunction(arguments[E])&&(g.complete=arguments[E]):g.duration=arguments[E]}var S={promise:null,resolver:null,rejecter:null};s&&b.Promise&&(S.promise=new b.Promise(function(e,t){S.resolver=e,S.rejecter=t}));var k;switch(v){case"scroll":k="scroll";break;case"reverse":k="reverse";break;case"finish":case"finishAll":case"stop":f.each(h,function(e,t){i(t)&&i(t).delayTimer&&(clearTimeout(i(t).delayTimer.setTimeout),i(t).delayTimer.next&&i(t).delayTimer.next(),delete i(t).delayTimer),"finishAll"!==v||g!==!0&&!y.isString(g)||(f.each(f.queue(t,y.isString(g)?g:""),function(e,t){y.isFunction(t)&&t()}),f.queue(t,y.isString(g)?g:"",[]))});var N=[];return f.each(b.State.calls,function(e,t){t&&f.each(t[1],function(n,o){var a=g===r?"":g;return a===!0||t[2].queue===a||g===r&&t[2].queue===!1?void f.each(h,function(n,r){r===o&&((g===!0||y.isString(g))&&(f.each(f.queue(r,y.isString(g)?g:""),function(e,t){y.isFunction(t)&&t(null,!0)}),f.queue(r,y.isString(g)?g:"",[])),"stop"===v?(i(r)&&i(r).tweensContainer&&a!==!1&&f.each(i(r).tweensContainer,function(e,t){t.endValue=t.currentValue}),N.push(e)):"finish"!==v&&"finishAll"!==v||(t[2].duration=1))}):!0})}),"stop"===v&&(f.each(N,function(e,t){p(t,!0)}),S.promise&&S.resolver(h)),e();default:if(!f.isPlainObject(v)||y.isEmptyObject(v)){if(y.isString(v)&&b.Redirects[v]){var _=f.extend({},g),j=_.duration,M=_.delay||0;return _.backwards===!0&&(h=f.extend(!0,[],h).reverse()),f.each(h,function(e,t){parseFloat(_.stagger)?_.delay=M+parseFloat(_.stagger)*e:y.isFunction(_.stagger)&&(_.delay=M+_.stagger.call(t,e,T)),_.drag&&(_.duration=parseFloat(j)||(/^(callout|transition)/.test(v)?1e3:m),_.duration=Math.max(_.duration*(_.backwards?1-e/T:(e+1)/T),.75*_.duration,200)),b.Redirects[v].call(t,t,_||{},e,T,h,S.promise?S:r)}),e()}var D="Velocity: First argument ("+v+") was not a property map, a known action, or a registered redirect. Aborting.";return S.promise?S.rejecter(new Error(D)):console.log(D), e()}k="start"}var A={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},L=[];f.each(h,function(e,t){y.isNode(t)&&o.call(t)});var V,_=f.extend({},b.defaults,g);if(_.loop=parseInt(_.loop),V=2*_.loop-1,_.loop)for(var F=0;V>F;F++){var I={delay:_.delay,progress:_.progress};F===V-1&&(I.display=_.display,I.visibility=_.visibility,I.complete=_.complete),C(h,"reverse",I)}return e()}};b=f.extend(C,b),b.animate=C;var T=t.requestAnimationFrame||h;return b.State.isMobile||n.hidden===r||n.addEventListener("visibilitychange",function(){n.hidden?(T=function(e){return setTimeout(function(){e(!0)},16)},c()):T=t.requestAnimationFrame||h}),e.Velocity=b,e!==t&&(e.fn.velocity=C,e.fn.velocity.defaults=b.defaults),f.each(["Down","Up"],function(e,t){b.Redirects["slide"+t]=function(e,n,o,a,i,s){var l=f.extend({},n),u=l.begin,c=l.complete,p={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},d={};l.display===r&&(l.display="Down"===t?"inline"===b.CSS.Values.getDisplayType(e)?"inline-block":"block":"none"),l.begin=function(){u&&u.call(i,i);for(var n in p){d[n]=e.style[n];var r=b.CSS.getPropertyValue(e,n);p[n]="Down"===t?[r,0]:[0,r]}d.overflow=e.style.overflow,e.style.overflow="hidden"},l.complete=function(){for(var t in d)e.style[t]=d[t];c&&c.call(i,i),s&&s.resolver(i)},b(e,p,l)}}),f.each(["In","Out"],function(e,t){b.Redirects["fade"+t]=function(e,n,o,a,i,s){var l=f.extend({},n),u={opacity:"In"===t?1:0},c=l.complete;o!==a-1?l.complete=l.begin=null:l.complete=function(){c&&c.call(i,i),s&&s.resolver(i)},l.display===r&&(l.display="In"===t?"auto":"none"),b(this,u,l)}}),b}(window.jQuery||window.Zepto||window,window,document)})},function(e,t,n,r){"use strict";n(3),n(r)},function(e,t,n,r){"use strict";n(3),n(r),n(16)},function(e,t,n,r){"use strict";n(3),n(r),n(23)}]))});
packages/material-ui-icons/src/FormatQuoteSharp.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M5 17h3l2-4V7H4v6h3l-2 4zm10 0h3l2-4V7h-6v6h3l-2 4z" /> , 'FormatQuoteSharp');
src/components/NewPlayerComponent.js
sam365/react-hangman
import React from 'react'; class NewPlayerComponent extends React.Component { createPlayer(event) { event.preventDefault(); let newPlayer = this.refs.playerName.value; this.props.onCreate(newPlayer); this.refs.playerName.value = ""; console.log("Create Player Called!"); } render() { return( <div> <form onSubmit={this.createPlayer.bind(this)}> <div> <label>Player Name</label> <input type="text" ref="playerName" placeholder="What's your name?" /> </div> <div> <input type="submit" value="Enter" /> </div> </form> </div> ) } } export default NewPlayerComponent;
src/pages/uncategorized/Stablematching/Stablematching.js
hyy1115/react-redux-webpack2
import React from 'react' class Stablematching extends React.Component { render() { return ( <div>Stablematching</div> ) } } export default Stablematching
index.android.js
buildreactnative/assemblies
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class assembliesTutorial extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> Welcome to React Native! </Text> <Text style={styles.instructions}> To get started, edit index.android.js </Text> <Text style={styles.instructions}> Double tap R on your keyboard to reload,{'\n'} Shake or press menu button for dev menu </Text> </View> ); } } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, welcome: { fontSize: 20, textAlign: 'center', margin: 10, }, instructions: { textAlign: 'center', color: '#333333', marginBottom: 5, }, }); AppRegistry.registerComponent('assembliesTutorial', () => assembliesTutorial);
ajax/libs/react-native-web/0.15.0/cjs/modules/useStable/index.min.js
cdnjs/cdnjs
"use strict";exports.__esModule=!0,exports.default=useStable;var React=_interopRequireWildcard(require("react"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache();if(r&&r.has(e))return r.get(e);var t,u,n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&((u=o?Object.getOwnPropertyDescriptor(e,t):null)&&(u.get||u.set)?Object.defineProperty(n,t,u):n[t]=e[t]);return n.default=e,r&&r.set(e,n),n}var UNINITIALIZED="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():Object.freeze({});function useStable(e){var r=React.useRef(UNINITIALIZED);return r.current===UNINITIALIZED&&(r.current=e()),r.current}module.exports=exports.default;
packages/mineral-ui-icons/src/IconSentimentNeutral.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconSentimentNeutral(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}> <g> <path d="M9 14h6v1.5H9z"/><circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/> </g> </Icon> ); } IconSentimentNeutral.displayName = 'IconSentimentNeutral'; IconSentimentNeutral.category = 'social';
src/components/UserList.js
AliaksandrZahorski/contacts
import React from 'react' import User from './User' const UserList = ({ users }) => ( <div className="userlist"> <ul> {users.data.map(user => <User key={user.id} {...user} /> )} </ul> </div> ) export default UserList
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js
bunnyblue/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; import ActorClient from 'utils/ActorClient'; import { Styles, FlatButton } from 'material-ui'; import { KeyCodes } from 'constants/ActorAppConstants'; import ActorTheme from 'constants/ActorTheme'; import MessageActionCreators from 'actions/MessageActionCreators'; import TypingActionCreators from 'actions/TypingActionCreators'; import DraftActionCreators from 'actions/DraftActionCreators'; import DraftStore from 'stores/DraftStore'; import AvatarItem from 'components/common/AvatarItem.react'; const ThemeManager = new Styles.ThemeManager(); const getStateFromStores = () => { return { text: DraftStore.getDraft(), profile: ActorClient.getUser(ActorClient.getUid()) }; }; @ReactMixin.decorate(PureRenderMixin) class ComposeSection extends React.Component { static propTypes = { peer: React.PropTypes.object.isRequired }; static childContextTypes = { muiTheme: React.PropTypes.object }; constructor(props) { super(props); this.state = getStateFromStores(); ThemeManager.setTheme(ActorTheme); DraftStore.addLoadDraftListener(this.onDraftLoad); } componentWillUnmount() { DraftStore.removeLoadDraftListener(this.onDraftLoad); } getChildContext() { return { muiTheme: ThemeManager.getCurrentTheme() }; } onDraftLoad = () => { this.setState(getStateFromStores()); } onChange = event => { TypingActionCreators.onTyping(this.props.peer); this.setState({text: event.target.value}); } onKeyDown = event => { if (event.keyCode === KeyCodes.ENTER && !event.shiftKey) { event.preventDefault(); this.sendTextMessage(); } else if (event.keyCode === 50 && event.shiftKey) { console.warn('Mention should show now.'); } } onKeyUp = () => { DraftActionCreators.saveDraft(this.state.text); } sendTextMessage = () => { const text = this.state.text; if (text) { MessageActionCreators.sendTextMessage(this.props.peer, text); } this.setState({text: ''}); DraftActionCreators.saveDraft('', true); } onSendFileClick = () => { const fileInput = document.getElementById('composeFileInput'); fileInput.click(); } onSendPhotoClick = () => { const photoInput = document.getElementById('composePhotoInput'); photoInput.accept = 'image/*'; photoInput.click(); } onFileInputChange = () => { const files = document.getElementById('composeFileInput').files; MessageActionCreators.sendFileMessage(this.props.peer, files[0]); } onPhotoInputChange = () => { const photos = document.getElementById('composePhotoInput').files; MessageActionCreators.sendPhotoMessage(this.props.peer, photos[0]); } onPaste = event => { let preventDefault = false; _.forEach(event.clipboardData.items, (item) => { if (item.type.indexOf('image') !== -1) { preventDefault = true; MessageActionCreators.sendClipboardPhotoMessage(this.props.peer, item.getAsFile()); } }, this); if (preventDefault) { event.preventDefault(); } } render() { const text = this.state.text; const profile = this.state.profile; return ( <section className="compose" onPaste={this.onPaste}> <AvatarItem image={profile.avatar} placeholder={profile.placeholder} title={profile.name}/> <textarea className="compose__message" onChange={this.onChange} onKeyDown={this.onKeyDown} onKeyUp={this.onKeyUp} value={text}> </textarea> <footer className="compose__footer row"> <button className="button" onClick={this.onSendFileClick}> <i className="material-icons">attachment</i> Send file </button> <button className="button" onClick={this.onSendPhotoClick}> <i className="material-icons">photo_camera</i> Send photo </button> <span className="col-xs"></span> <FlatButton label="Send" onClick={this.sendTextMessage} secondary={true}/> </footer> <div className="compose__hidden"> <input id="composeFileInput" onChange={this.onFileInputChange} type="file"/> <input id="composePhotoInput" onChange={this.onPhotoInputChange} type="file"/> </div> </section> ); } } export default ComposeSection;
src/index.js
dpastoor/n-queens
import React from 'react'; import { render } from 'react-dom'; import { App } from './App'; render(<App />, document.getElementById('root'));
src/pages/index.js
InvertedX/sarath.me
import React from 'react'; import Img from "gatsby-image"; import Link from 'gatsby-link' import {Helmet} from 'react-helmet' import './index.scss' class Home extends React.Component { state = { mobileOpen: false, }; render () { const {data} = this.props; const {allMarkdownRemark} = data const {transition} = this.props return ( <div className="app-root" style={transition && transition.style}> <Helmet title="Sarath Kumar | my useless blog" meta={[ {name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no'}, {'http-equiv': 'Content-Type', content: 'text/html; charset=utf-8'}, {'http-equiv': 'Content-Type', content: 'text/html; charset=ISO-8859-1'}, {name: 'geo.region', content: 'India Kerala'}, {name: 'description', content: 'you can...'}, { name: 'keywords', content: 'sarath kumar,sarathkumars677@gmail.com,sarath@zealmotion.com,developer ,android developer, react ,vue ,node js,coder,blog,php ,laravel,freelancer,kerala,cochin' }, ]} /> <div className="columns"> <div className="column is-one-third-desktop is-full-mobile is-full-tablet top-hero is-paddingless"> <section className="hero is-fullheight "> <div className="hero-body" style={{'align-items': 'center'}}> <div className="container" style={{marginLeft: '8%', marginRight: '8%'}}> <p className="is-size-5 has-text-grey-dark"> Hello <span className="glitch " data-text="Internet">Internet</span>, my name is </p> <h5 style={{marginTop: 18}} className="title glitch" data-text="Sarath Kumar"> Sarath Kumar </h5> <p style={{marginTop: 15}} className="subtitle is-size-6" > i'm a software engineer . this is where i live on the internet </p> <div className="content has-text-centered"> <p> <a href="https://twitter.com/_sarath_kumar" className="icon is-medium"><i className="fa fa-twitter is-medium fa-lg"/> </a> <a href="https://github.com/InvertedX" className="icon is-medium"> <i className="fa fa-github is-medium fa-lg"/> </a> </p> </div> </div> </div> </section> </div> <div className="column container is-gapless is-multiline is-mobile blog_container "> {allMarkdownRemark.edges.map(({node}) => { const {frontmatter} = node const {tags, featuredImage, featuredImageUrl} = frontmatter return ( <div className="column " > <article className="media" style={{marginBottom: 25, marginTop: 25}}> <div className="columns container"> <div className="column item is-two-fifths is-centered "> <figure className="image"> {featuredImage.childImageSharp.responsiveResolution.originalName !== 'noimage.png' && <Img style={{width: '100%'}} resolutions={featuredImage.childImageSharp.responsiveResolution} /> } {featuredImage.childImageSharp.responsiveResolution.originalName === 'noimage.png' && <img src={featuredImageUrl}/> } </figure> </div> <div className="column item " style={{padding:'14px'}}> <h3 className="title-blog-card">{node.frontmatter.title} </h3> <date className="subtitle is-6">{node.frontmatter.date}</date> <div className="tags" style={{marginTop: 6}}> {tags.map(tag => <span className="tag is-dark is-rounded">{tag}</span>)} </div> <p className="content has-text-dark"> {node.excerpt} </p> <Link to={node.frontmatter.path} className="button is-light">Read</Link> </div> </div> </article> </div> ) })} </div> </div> </div> ); } } export const pageQuery = graphql` query IndexQuery{ allMarkdownRemark(sort: {order: DESC, fields: [frontmatter___date]}, limit: 1000) { edges { node { excerpt id frontmatter { path title date(formatString :"DD MMM YYYY") tags featuredImageUrl featuredImage { childImageSharp { responsiveResolution(width: 340) { base64 originalName width height src srcSet } } } } } } } }` export default Home;
node_modules/react-bootstrap/es/ButtonGroup.js
cmccandless/SolRFrontEnd
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import classNames from 'classnames'; import React from 'react'; import all from 'react-prop-types/lib/all'; import Button from './Button'; import { bsClass, getClassSet, prefix, splitBsProps } from './utils/bootstrapUtils'; var propTypes = { vertical: React.PropTypes.bool, justified: React.PropTypes.bool, /** * Display block buttons; only useful when used with the "vertical" prop. * @type {bool} */ block: all(React.PropTypes.bool, function (_ref) { var block = _ref.block, vertical = _ref.vertical; return block && !vertical ? new Error('`block` requires `vertical` to be set to have any effect') : null; }) }; var defaultProps = { block: false, justified: false, vertical: false }; var ButtonGroup = function (_React$Component) { _inherits(ButtonGroup, _React$Component); function ButtonGroup() { _classCallCheck(this, ButtonGroup); return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); } ButtonGroup.prototype.render = function render() { var _extends2; var _props = this.props, block = _props.block, justified = _props.justified, vertical = _props.vertical, className = _props.className, props = _objectWithoutProperties(_props, ['block', 'justified', 'vertical', 'className']); var _splitBsProps = splitBsProps(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps)] = !vertical, _extends2[prefix(bsProps, 'vertical')] = vertical, _extends2[prefix(bsProps, 'justified')] = justified, _extends2[prefix(Button.defaultProps, 'block')] = block, _extends2)); return React.createElement('div', _extends({}, elementProps, { className: classNames(className, classes) })); }; return ButtonGroup; }(React.Component); ButtonGroup.propTypes = propTypes; ButtonGroup.defaultProps = defaultProps; export default bsClass('btn-group', ButtonGroup);
ajax/libs/jqwidgets/13.0.0/jqwidgets-react-tsx/jqxtextarea/react_jqxtextarea.umd.js
cdnjs/cdnjs
require('../../jqwidgets/jqxcore'); require('../../jqwidgets/jqxdata'); require('../../jqwidgets/jqxbuttons'); require('../../jqwidgets/jqxscrollbar'); require('../../jqwidgets/jqxtextarea'); (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : (factory((global.react_jqxtextarea = {}),global.React)); }(this, (function (exports,React) { 'use strict'; /*! ***************************************************************************** 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 Reflect, Promise */ var extendStatics = function(d, b) { 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]; }; return extendStatics(d, b); }; function __extends(d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); } var JqxTextArea = /** @class */ (function (_super) { __extends(JqxTextArea, _super); function JqxTextArea(props) { var _this = _super.call(this, props) || this; /* tslint:disable:variable-name */ _this._jqx = JQXLite; _this._id = 'JqxTextArea' + _this._jqx.generateID(); _this._componentSelector = '#' + _this._id; _this.state = { lastProps: props }; return _this; } JqxTextArea.getDerivedStateFromProps = function (props, state) { if (!Object.is) { Object.is = function (x, y) { if (x === y) { return x !== 0 || 1 / x === 1 / y; } else { return x !== x && y !== y; } }; } var areEqual = Object.is(props, state.lastProps); if (!areEqual) { var newState = { lastProps: props }; return newState; } return null; }; JqxTextArea.prototype.componentDidMount = function () { var widgetOptions = this._manageProps(); this._jqx(this._componentSelector).jqxTextArea(widgetOptions); this._wireEvents(); }; JqxTextArea.prototype.componentDidUpdate = function () { var widgetOptions = this._manageProps(); this.setOptions(widgetOptions); this._wireEvents(); }; JqxTextArea.prototype.render = function () { return (React.createElement("textarea", { id: this._id }, this.props.children)); }; JqxTextArea.prototype.setOptions = function (options) { this._jqx(this._componentSelector).jqxTextArea(options); }; JqxTextArea.prototype.getOptions = function (option) { return this._jqx(this._componentSelector).jqxTextArea(option); }; JqxTextArea.prototype.destroy = function () { this._jqx(this._componentSelector).jqxTextArea('destroy'); }; JqxTextArea.prototype.focus = function () { this._jqx(this._componentSelector).jqxTextArea('focus'); }; JqxTextArea.prototype.refresh = function () { this._jqx(this._componentSelector).jqxTextArea('refresh'); }; JqxTextArea.prototype.renderWidget = function () { this._jqx(this._componentSelector).jqxTextArea('render'); }; JqxTextArea.prototype.selectAll = function () { this._jqx(this._componentSelector).jqxTextArea('selectAll'); }; JqxTextArea.prototype.val = function (value) { if (value) { this._jqx(this._componentSelector).jqxTextArea('val', value); } else { return this._jqx(this._componentSelector).jqxTextArea('val'); } }; JqxTextArea.prototype._manageProps = function () { var widgetProps = ['disabled', 'displayMember', 'dropDownWidth', 'height', 'items', 'maxLength', 'minLength', 'opened', 'placeHolder', 'popupZIndex', 'query', 'renderer', 'roundedCorners', 'rtl', 'scrollBarSize', 'searchMode', 'source', 'theme', 'valueMember', 'width']; var options = {}; for (var prop in this.props) { if (widgetProps.indexOf(prop) !== -1) { options[prop] = this.props[prop]; } } return options; }; JqxTextArea.prototype._wireEvents = function () { for (var prop in this.props) { if (prop.indexOf('on') === 0) { var originalEventName = prop.slice(2); originalEventName = originalEventName.charAt(0).toLowerCase() + originalEventName.slice(1); this._jqx(this._componentSelector).off(originalEventName); this._jqx(this._componentSelector).on(originalEventName, this.props[prop]); } } }; return JqxTextArea; }(React.PureComponent)); var jqx = window.jqx; var JQXLite = window.JQXLite; exports.default = JqxTextArea; exports.jqx = jqx; exports.JQXLite = JQXLite; Object.defineProperty(exports, '__esModule', { value: true }); })));