path
stringlengths 5
304
| repo_name
stringlengths 6
79
| content
stringlengths 27
1.05M
|
|---|---|---|
ajax/libs/material-ui/5.0.0-alpha.15/legacy/FormHelperText/FormHelperText.min.js
|
cdnjs/cdnjs
|
import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import _extends from"@babel/runtime/helpers/esm/extends";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import formControlState from"../FormControl/formControlState";import useFormControl from"../FormControl/useFormControl";import withStyles from"../styles/withStyles";export var styles=function(e){return{root:_extends({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}};var FormHelperText=React.forwardRef(function(e,r){var o=e.children,t=e.classes,s=e.className,l=e.component,i=void 0===l?"p":l,a=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,_objectWithoutProperties(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),n=useFormControl(),p=formControlState({props:e,muiFormControl:n,states:["variant","margin","disabled","error","filled","focused","required"]});return React.createElement(i,_extends({className:clsx(t.root,("filled"===p.variant||"outlined"===p.variant)&&t.contained,s,p.disabled&&t.disabled,p.error&&t.error,p.filled&&t.filled,p.focused&&t.focused,p.required&&t.required,"dense"===p.margin&&t.marginDense),ref:r},a)," "===o?React.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):o)});"production"!==process.env.NODE_ENV&&(FormHelperText.propTypes={children:PropTypes.node,classes:PropTypes.object,className:PropTypes.string,component:PropTypes.elementType,disabled:PropTypes.bool,error:PropTypes.bool,filled:PropTypes.bool,focused:PropTypes.bool,margin:PropTypes.oneOf(["dense"]),required:PropTypes.bool,variant:PropTypes.oneOf(["filled","outlined","standard"])});export default withStyles(styles,{name:"MuiFormHelperText"})(FormHelperText);
|
react-flux-mui/js/material-ui/src/svg-icons/action/assignment-late.js
|
pbogdan/react-flux-mui
|
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentLate = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-6 15h-2v-2h2v2zm0-4h-2V8h2v6zm-1-9c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"/>
</SvgIcon>
);
ActionAssignmentLate = pure(ActionAssignmentLate);
ActionAssignmentLate.displayName = 'ActionAssignmentLate';
ActionAssignmentLate.muiName = 'SvgIcon';
export default ActionAssignmentLate;
|
source/patterns/01-molecules/popover/docs/popover.example.js
|
apparena/patterns
|
import React from 'react';
import {Button, Popover} from 'apparena-patterns-react';
export default function PopoverExample() {
return (
<Popover
title="OverPop"
content={<p>Suprise, you opened the Popover, to close it just press the button again</p>}
positioning="top"
>
<Button>Just Push Me</Button>
</Popover>
);
}
/*;;usage
<PopOverExample />
;;*/
|
web/src/components/NavMenu.js
|
blinard/better-bookmarks
|
import './NavMenu.css';
import React from 'react';
import { Collapse, Container, Navbar, NavbarBrand, NavbarToggler, NavItem, NavLink } from 'reactstrap';
import { Link } from 'react-router-dom';
export default class NavMenu extends React.Component {
constructor (props) {
super(props);
this.toggle = this.toggle.bind(this);
this.state = {
isOpen: false,
};
}
toggle () {
this.setState(Object.assign(this.state, {
isOpen: !this.state.isOpen
}));
}
componentDidMount() {
}
render () {
return (
<header>
<Navbar className="navbar-expand-sm navbar-toggleable-sm border-bottom box-shadow mb-3" light >
<Container fluid={true}>
<NavbarBrand tag={Link} to="/">BetterBookmarks.Web</NavbarBrand>
<NavbarToggler onClick={this.toggle} className="mr-2" />
<Collapse className="d-sm-inline-flex flex-sm-row-reverse" isOpen={this.state.isOpen} navbar>
<ul className="navbar-nav flex-grow">
<NavItem>
<NavLink tag={Link} className="text-dark" to="/">Home</NavLink>
</NavItem>
<NavItem>
<NavLink tag={Link} className="text-dark" to="/about">About</NavLink>
</NavItem>
</ul>
</Collapse>
</Container>
</Navbar>
</header>
);
}
}
|
src/frame/rePCUI/tabs/base-tabs/SwipeableTabContent.js
|
gejialun8888/shop-react
|
import TabContent from './TabContent';
import React from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import Hammer from 'rc-hammerjs';
import ReactDOM from 'react-dom';
import {
isVertical,
getActiveIndex,
getTransformByIndex,
setTransform,
getActiveKey,
toArray,
setTransition,
} from './utils';
const RESISTANCE_COEF = 0.6;
function computeIndex({
maxIndex,
startIndex,
delta,
viewSize,
}) {
let index = startIndex + -delta / viewSize;
if (index < 0) {
index = Math.exp(index * RESISTANCE_COEF) - 1;
} else if (index > maxIndex) {
index = maxIndex + 1 - Math.exp((maxIndex - index) * RESISTANCE_COEF);
}
return index;
}
function getIndexByDelta(e) {
const delta = isVertical(this.props.tabBarPosition) ? e.deltaY : e.deltaX;
const otherDelta = isVertical(this.props.tabBarPosition) ? e.deltaX : e.deltaY;
if (Math.abs(delta) < Math.abs(otherDelta)) {
return undefined;
}
const currentIndex = computeIndex({
maxIndex: this.maxIndex,
viewSize: this.viewSize,
startIndex: this.startIndex,
delta,
});
let showIndex = delta < 0 ? Math.floor(currentIndex + 1) : Math.floor(currentIndex);
if (showIndex < 0) {
showIndex = 0;
} else if (showIndex > this.maxIndex) {
showIndex = this.maxIndex;
}
if (this.children[showIndex].props.disabled) {
return undefined;
}
return currentIndex;
}
const SwipeableTabContent = createReactClass({
displayName: 'SwipeableTabContent',
propTypes: {
tabBarPosition: PropTypes.string,
onChange: PropTypes.func,
children: PropTypes.any,
hammerOptions: PropTypes.any,
animated: PropTypes.bool,
activeKey: PropTypes.string,
},
getDefaultProps() {
return {
animated: true,
};
},
componentDidMount() {
this.rootNode = ReactDOM.findDOMNode(this);
},
onPanStart() {
const { tabBarPosition, children, activeKey, animated } = this.props;
const startIndex = this.startIndex = getActiveIndex(children, activeKey);
if (startIndex === -1) {
return;
}
if (animated) {
setTransition(this.rootNode.style, 'none');
}
this.startDrag = true;
this.children = toArray(children);
this.maxIndex = this.children.length - 1;
this.viewSize = isVertical(tabBarPosition) ?
this.rootNode.offsetHeight :
this.rootNode.offsetWidth;
},
onPan(e) {
if (!this.startDrag) {
return;
}
const { tabBarPosition } = this.props;
const currentIndex = getIndexByDelta.call(this, e);
if (currentIndex !== undefined) {
setTransform(this.rootNode.style, getTransformByIndex(currentIndex, tabBarPosition));
}
},
onPanEnd(e) {
if (!this.startDrag) {
return;
}
this.end(e);
},
onSwipe(e) {
this.end(e, true);
},
end(e, swipe) {
const { tabBarPosition, animated } = this.props;
this.startDrag = false;
if (animated) {
setTransition(this.rootNode.style, '');
}
const currentIndex = getIndexByDelta.call(this, e);
let finalIndex = this.startIndex;
if (currentIndex !== undefined) {
if (currentIndex < 0) {
finalIndex = 0;
} else if (currentIndex > this.maxIndex) {
finalIndex = this.maxIndex;
} else if (swipe) {
const delta = isVertical(tabBarPosition) ? e.deltaY : e.deltaX;
finalIndex = delta < 0 ? Math.ceil(currentIndex) : Math.floor(currentIndex);
} else {
const floorIndex = Math.floor(currentIndex);
if (currentIndex - floorIndex > 0.6) {
finalIndex = floorIndex + 1;
} else {
finalIndex = floorIndex;
}
}
}
if (this.children[finalIndex].props.disabled) {
return;
}
if (this.startIndex === finalIndex) {
if (animated) {
setTransform(this.rootNode.style,
getTransformByIndex(finalIndex, this.props.tabBarPosition));
}
} else {
this.props.onChange(getActiveKey(this.props.children, finalIndex));
}
},
render() {
const { tabBarPosition, hammerOptions, animated } = this.props;
let events = {
onSwipe: this.onSwipe,
onPanStart: this.onPanStart,
};
if (animated !== false) {
events = {
...events,
onPan: this.onPan,
onPanEnd: this.onPanEnd,
};
}
return (
<Hammer
{...events}
direction={isVertical(tabBarPosition) ? 'DIRECTION_ALL' : 'DIRECTION_HORIZONTAL'}
options={hammerOptions}
>
<TabContent {...this.props}/>
</Hammer>
);
},
});
export default SwipeableTabContent;
|
src/js/Containers/AppContainer.js
|
RoyalSix/myBiolaApp
|
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
TextInput,
StatusBar
} from 'react-native';
import * as reducers from '../Reducers';
import thunk from 'redux-thunk';
import { createStore, applyMiddleware, combineReducers } from 'redux';
import { Provider } from 'react-redux';
import NavigationContainer from './NavigationContainer';
/**We need these in order to create a store and use async actions */
const createStoreWithMiddleware = applyMiddleware(thunk)(createStore);
const reducer = combineReducers(reducers);
const store = createStoreWithMiddleware(reducer);
import * as chapelActions from '../Actions/chapelActions';
import * as eventsActions from '../Actions/eventsActions';
import * as dinigActions from '../Actions/diningActions';
import * as newsActions from '../Actions/newsActions';
import * as boardActions from '../Actions/boardActions';
import firebase from '../modules/firebase';
export default class App extends Component {
componentWillMount() {
store.dispatch(chapelActions.startChapelLoad());
store.dispatch(eventsActions.startEventsLoad());
store.dispatch(dinigActions.startDiningLoad());
store.dispatch(newsActions.startNewsLoad());
store.dispatch(boardActions.getBoardMessages());
store.dispatch(boardActions.getMessageBoardVisibility());
StatusBar.setHidden(true, 'none');
}
render() {
return (
<Provider store={store}>
<NavigationContainer dispatch={store.dispatch} />
</Provider>
)
}
}
|
src/entypo/GooglePlay.js
|
cox-auto-kc/react-entypo
|
import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--GooglePlay';
let EntypoGooglePlay = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M4.942627,18.0508423l7.6660156-4.3273926l-1.6452026-1.8234253L4.942627,18.0508423z M2.1422119,2.1231079C2.0543823,2.281311,2,2.4631958,2,2.664917v15.1259766c0,0.2799683,0.1046143,0.5202026,0.2631226,0.710144l7.6265259-7.7912598L2.1422119,2.1231079z M17.4795532,9.4819336l-2.6724854-1.508606l-2.72229,2.7811279l1.9516602,2.1630249l3.4431152-1.9436035C17.7927856,10.8155518,17.9656372,10.5287476,18,10.2279053C17.9656372,9.927063,17.7927856,9.6402588,17.4795532,9.4819336z M13.3649292,7.1592407L4.1452026,1.954834l6.8656616,7.609314L13.3649292,7.1592407z"/>
</EntypoIcon>
);
export default EntypoGooglePlay;
|
ajax/libs/forerunnerdb/1.3.62/fdb-core+persist.min.js
|
CyrusSUEN/cdnjs
|
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,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,c){{var d=a("../lib/Core");a("../lib/Shim.IE8")}"undefined"!=typeof window&&(window.ForerunnerDB=d),b.exports=d},{"../lib/Core":5,"../lib/Shim.IE8":27}],2:[function(a,b,c){{var d=a("./Core");a("../lib/Persist")}"undefined"!=typeof window&&(window.ForerunnerDB=d),b.exports=d},{"../lib/Persist":24,"./Core":1}],3:[function(a,b,c){"use strict";var d,e,f,g,h,i,j,k,l,m;d=a("./Shared");var n=function(a){this.init.apply(this,arguments)};n.prototype.init=function(a,b){this._primaryKey="_id",this._primaryIndex=new g("primary"),this._primaryCrc=new g("primaryCrc"),this._crcLookup=new g("crcLookup"),this._name=a,this._data=[],this._metrics=new f,this._options=b||{changeTimestamp:!1},this._internalData={},this._deferQueue={insert:[],update:[],remove:[],upsert:[]},this._deferThreshold={insert:100,update:100,remove:100,upsert:100},this._deferTime={insert:1,update:1,remove:1,upsert:1},this.subsetOf(this)},d.addModule("Collection",n),d.mixin(n.prototype,"Mixin.Common"),d.mixin(n.prototype,"Mixin.Events"),d.mixin(n.prototype,"Mixin.ChainReactor"),d.mixin(n.prototype,"Mixin.CRUD"),d.mixin(n.prototype,"Mixin.Constants"),d.mixin(n.prototype,"Mixin.Triggers"),d.mixin(n.prototype,"Mixin.Sorting"),d.mixin(n.prototype,"Mixin.Matching"),d.mixin(n.prototype,"Mixin.Updating"),f=a("./Metrics"),g=a("./KeyValueStore"),h=a("./Path"),i=a("./IndexHashMap"),j=a("./IndexBinaryTree"),k=a("./Crc"),e=d.modules.Db,l=a("./Overload"),m=a("./ReactorIO"),n.prototype.crc=k,d.synthesize(n.prototype,"state"),d.synthesize(n.prototype,"name"),n.prototype.data=function(){return this._data},n.prototype.drop=function(a){var b;if("dropped"===this._state)return a&&a(!1,!0),!0;if(this._db&&this._db._collection&&this._name){if(this.debug()&&console.log("Dropping collection "+this._name),this._state="dropped",this.emit("drop",this),delete this._db._collection[this._name],this._collate)for(b in this._collate)this._collate.hasOwnProperty(b)&&this.collateRemove(b);return delete this._primaryKey,delete this._primaryIndex,delete this._primaryCrc,delete this._crcLookup,delete this._name,delete this._data,delete this._metrics,a&&a(!1,!0),!0}return a&&a(!1,!0),!1},n.prototype.primaryKey=function(a){return void 0!==a?(this._primaryKey!==a&&(this._primaryKey=a,this._primaryIndex.primaryKey(a),this.rebuildPrimaryKeyIndex()),this):this._primaryKey},n.prototype._onInsert=function(a,b){this.emit("insert",a,b)},n.prototype._onUpdate=function(a){this.emit("update",a)},n.prototype._onRemove=function(a){this.emit("remove",a)},n.prototype._onChange=function(){this._options.changeTimestamp&&(this._internalData.lastChange=new Date)},d.synthesize(n.prototype,"db",function(a){return a&&"_id"===this.primaryKey()&&this.primaryKey(a.primaryKey()),this.$super.apply(this,arguments)}),n.prototype.setData=function(a,b,c){if("dropped"===this._state)throw'ForerunnerDB.Collection "'+this.name()+'": Cannot operate in a dropped state!';if(a){var d=this._metrics.create("setData");d.start(),b=this.options(b),this.preSetData(a,b,c),b.$decouple&&(a=this.decouple(a)),a instanceof Array||(a=[a]),d.time("transformIn"),a=this.transformIn(a),d.time("transformIn");var e=[].concat(this._data);this._dataReplace(a),d.time("Rebuild Primary Key Index"),this.rebuildPrimaryKeyIndex(b),d.time("Rebuild Primary Key Index"),d.time("Rebuild All Other Indexes"),this._rebuildIndexes(),d.time("Rebuild All Other Indexes"),d.time("Resolve chains"),this.chainSend("setData",a,{oldData:e}),d.time("Resolve chains"),d.stop(),this.emit("setData",this._data,e)}return c&&c(!1),this},n.prototype.rebuildPrimaryKeyIndex=function(a){a=a||{$ensureKeys:void 0,$violationCheck:void 0};var b,c,d,e,f=a&&void 0!==a.$ensureKeys?a.$ensureKeys:!0,g=a&&void 0!==a.$violationCheck?a.$violationCheck:!0,h=this._primaryIndex,i=this._primaryCrc,j=this._crcLookup,k=this._primaryKey;for(h.truncate(),i.truncate(),j.truncate(),b=this._data,c=b.length;c--;){if(d=b[c],f&&this.ensurePrimaryKey(d),g){if(!h.uniqueSet(d[k],d))throw'ForerunnerDB.Collection "'+this.name()+'": Call to setData on collection failed because your data violates the primary key unique constraint. One or more documents are using the same primary key: '+d[this._primaryKey]}else h.set(d[k],d);e=JSON.stringify(d),i.set(d[k],e),j.set(e,d)}},n.prototype.ensurePrimaryKey=function(a){void 0===a[this._primaryKey]&&(a[this._primaryKey]=this.objectId())},n.prototype.truncate=function(){if("dropped"===this._state)throw'ForerunnerDB.Collection "'+this.name()+'": Cannot operate in a dropped state!';return this.emit("truncate",this._data),this._data.length=0,this._primaryIndex=new g("primary"),this._primaryCrc=new g("primaryCrc"),this._crcLookup=new g("crcLookup"),this._onChange(),this.deferEmit("change",{type:"truncate"}),this},n.prototype.upsert=function(a,b){if("dropped"===this._state)throw'ForerunnerDB.Collection "'+this.name()+'": Cannot operate in a dropped state!';if(a){var c,d,e=this._deferQueue.upsert,f=this._deferThreshold.upsert,g={};if(a instanceof Array){if(a.length>f)return this._deferQueue.upsert=e.concat(a),this.processQueue("upsert",b),{};for(g=[],d=0;d<a.length;d++)g.push(this.upsert(a[d]));return b&&b(),g}switch(a[this._primaryKey]?(c={},c[this._primaryKey]=a[this._primaryKey],this._primaryIndex.lookup(c)[0]?g.op="update":g.op="insert"):g.op="insert",g.op){case"insert":g.result=this.insert(a);break;case"update":g.result=this.update(c,a)}return g}return b&&b(),{}},n.prototype.filter=function(a,b,c){return this.find(a,c).filter(b)},n.prototype.filterUpdate=function(a,b,c){var d,e,f,g,h=this.find(a,c),i=[],j=this.primaryKey();for(g=0;g<h.length;g++)d=h[g],f=b(d),f&&(e={},e[j]=d[j],i.push(this.update(e,f)));return i},n.prototype.update=function(a,b,c){if("dropped"===this._state)throw'ForerunnerDB.Collection "'+this.name()+'": Cannot operate in a dropped state!';b=this.decouple(b),b=this.transformIn(b),this.debug()&&console.log('Updating some collection data for collection "'+this.name()+'"');var d,e,f=this,g=this._metrics.create("update"),h=function(d){var e,h,i,j=f.decouple(d);return f.willTrigger(f.TYPE_UPDATE,f.PHASE_BEFORE)||f.willTrigger(f.TYPE_UPDATE,f.PHASE_AFTER)?(e=f.decouple(d),h={type:"update",query:f.decouple(a),update:f.decouple(b),options:f.decouple(c),op:g},i=f.updateObject(e,h.update,h.query,h.options,""),f.processTrigger(h,f.TYPE_UPDATE,f.PHASE_BEFORE,d,e)!==!1?(i=f.updateObject(d,e,h.query,h.options,""),f.processTrigger(h,f.TYPE_UPDATE,f.PHASE_AFTER,d,e)):i=!1):i=f.updateObject(d,b,a,c,""),f._updateIndexes(j,d),i};return g.start(),g.time("Retrieve documents to update"),d=this.find(a,{$decouple:!1}),g.time("Retrieve documents to update"),d.length&&(g.time("Update documents"),e=d.filter(h),g.time("Update documents"),e.length&&(g.time("Resolve chains"),this.chainSend("update",{query:a,update:b,dataSet:d},c),g.time("Resolve chains"),this._onUpdate(e),this._onChange(),this.deferEmit("change",{type:"update",data:e}))),g.stop(),e||[]},n.prototype._replaceObj=function(a,b){var c;this._removeFromIndexes(a);for(c in a)a.hasOwnProperty(c)&&delete a[c];for(c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);if(!this._insertIntoIndexes(a))throw'ForerunnerDB.Collection "'+this.name()+'": Primary key violation in update! Key violated: '+a[this._primaryKey];return this},n.prototype.updateById=function(a,b){var c={};return c[this._primaryKey]=a,this.update(c,b)},n.prototype.updateObject=function(a,b,c,d,e,f){b=this.decouple(b),e=e||"","."===e.substr(0,1)&&(e=e.substr(1,e.length-1));var g,i,j,k,l,m,n,o,p,q=!1,r=!1;for(p in b)if(b.hasOwnProperty(p)){if(g=!1,"$"===p.substr(0,1))switch(p){case"$key":case"$index":case"$data":g=!0;break;case"$each":for(g=!0,k=b.$each.length,j=0;k>j;j++)r=this.updateObject(a,b.$each[j],c,d,e),r&&(q=!0);q=q||r;break;default:g=!0,r=this.updateObject(a,b[p],c,d,e,p),q=q||r}if(this._isPositionalKey(p)&&(g=!0,p=p.substr(0,p.length-2),m=new h(e+"."+p),a[p]&&a[p]instanceof Array&&a[p].length)){for(i=[],j=0;j<a[p].length;j++)this._match(a[p][j],m.value(c)[0],"",{})&&i.push(j);for(j=0;j<i.length;j++)r=this.updateObject(a[p][i[j]],b[p+".$"],c,d,e+"."+p,f),q=q||r}if(!g)if(f||"object"!=typeof b[p])switch(f){case"$inc":this._updateIncrement(a,p,b[p]),q=!0;break;case"$cast":switch(b[p]){case"array":a[p]instanceof Array||(this._updateProperty(a,p,b.$data||[]),q=!0);break;case"object":(!(a[p]instanceof Object)||a[p]instanceof Array)&&(this._updateProperty(a,p,b.$data||{}),q=!0);break;case"number":"number"!=typeof a[p]&&(this._updateProperty(a,p,Number(a[p])),q=!0);break;case"string":"string"!=typeof a[p]&&(this._updateProperty(a,p,String(a[p])),q=!0);break;default:throw'ForerunnerDB.Collection "'+this.name()+'": Cannot update cast to unknown type: '+b[p]}break;case"$push":if(void 0===a[p]&&this._updateProperty(a,p,[]),!(a[p]instanceof Array))throw'ForerunnerDB.Collection "'+this.name()+'": Cannot push to a key that is not an array! ('+p+")";if(void 0!==b[p].$position&&b[p].$each instanceof Array)for(l=b[p].$position,k=b[p].$each.length,j=0;k>j;j++)this._updateSplicePush(a[p],l+j,b[p].$each[j]);else if(b[p].$each instanceof Array)for(k=b[p].$each.length,j=0;k>j;j++)this._updatePush(a[p],b[p].$each[j]);else this._updatePush(a[p],b[p]);q=!0;break;case"$pull":if(a[p]instanceof Array){for(i=[],j=0;j<a[p].length;j++)this._match(a[p][j],b[p],"",{})&&i.push(j);for(k=i.length;k--;)this._updatePull(a[p],i[k]),q=!0}break;case"$pullAll":if(a[p]instanceof Array){if(!(b[p]instanceof Array))throw'ForerunnerDB.Collection "'+this.name()+'": Cannot pullAll without being given an array of values to pull! ('+p+")";if(i=a[p],k=i.length,k>0)for(;k--;){for(l=0;l<b[p].length;l++)i[k]===b[p][l]&&(this._updatePull(a[p],k),k--,q=!0);if(0>k)break}}break;case"$addToSet":if(void 0===a[p]&&this._updateProperty(a,p,[]),!(a[p]instanceof Array))throw'ForerunnerDB.Collection "'+this.name()+'": Cannot addToSet on a key that is not an array! ('+p+")";var s,t,u,v,w=a[p],x=w.length,y=!0,z=d&&d.$addToSet;for(b[p].$key?(u=!1,v=new h(b[p].$key),t=v.value(b[p])[0],delete b[p].$key):z&&z.key?(u=!1,v=new h(z.key),t=v.value(b[p])[0]):(t=JSON.stringify(b[p]),u=!0),s=0;x>s;s++)if(u){if(JSON.stringify(w[s])===t){y=!1;break}}else if(t===v.value(w[s])[0]){y=!1;break}y&&(this._updatePush(a[p],b[p]),q=!0);break;case"$splicePush":if(void 0===a[p]&&this._updateProperty(a,p,[]),!(a[p]instanceof Array))throw'ForerunnerDB.Collection "'+this.name()+'": Cannot splicePush with a key that is not an array! ('+p+")";if(l=b.$index,void 0===l)throw'ForerunnerDB.Collection "'+this.name()+'": Cannot splicePush without a $index integer value!';delete b.$index,l>a[p].length&&(l=a[p].length),this._updateSplicePush(a[p],l,b[p]),q=!0;break;case"$move":if(!(a[p]instanceof Array))throw'ForerunnerDB.Collection "'+this.name()+'": Cannot move on a key that is not an array! ('+p+")";for(j=0;j<a[p].length;j++)if(this._match(a[p][j],b[p],"",{})){var A=b.$index;if(void 0===A)throw'ForerunnerDB.Collection "'+this.name()+'": Cannot move without a $index integer value!';delete b.$index,this._updateSpliceMove(a[p],j,A),q=!0;break}break;case"$mul":this._updateMultiply(a,p,b[p]),q=!0;break;case"$rename":this._updateRename(a,p,b[p]),q=!0;break;case"$overwrite":this._updateOverwrite(a,p,b[p]),q=!0;break;case"$unset":this._updateUnset(a,p),q=!0;break;case"$clear":this._updateClear(a,p),q=!0;break;case"$pop":if(!(a[p]instanceof Array))throw'ForerunnerDB.Collection "'+this.name()+'": Cannot pop from a key that is not an array! ('+p+")";this._updatePop(a[p],b[p])&&(q=!0);break;default:a[p]!==b[p]&&(this._updateProperty(a,p,b[p]),q=!0)}else if(null!==a[p]&&"object"==typeof a[p])if(n=a[p]instanceof Array,o=b[p]instanceof Array,n||o)if(!o&&n)for(j=0;j<a[p].length;j++)r=this.updateObject(a[p][j],b[p],c,d,e+"."+p,f),q=q||r;else a[p]!==b[p]&&(this._updateProperty(a,p,b[p]),q=!0);else r=this.updateObject(a[p],b[p],c,d,e+"."+p,f),q=q||r;else a[p]!==b[p]&&(this._updateProperty(a,p,b[p]),q=!0)}return q},n.prototype._isPositionalKey=function(a){return".$"===a.substr(a.length-2,2)},n.prototype.remove=function(a,b,c){if("dropped"===this._state)throw'ForerunnerDB.Collection "'+this.name()+'": Cannot operate in a dropped state!';var d,e,f,g,h,i,j,k,l=this;if("function"==typeof b&&(c=b,b=void 0),a instanceof Array){for(g=[],f=0;f<a.length;f++)g.push(this.remove(a[f],{noEmit:!0}));return(!b||b&&!b.noEmit)&&this._onRemove(g),c&&c(!1,g),g}if(d=this.find(a,{$decouple:!1}),d.length){h=function(a){l._removeFromIndexes(a),e=l._data.indexOf(a),l._dataRemoveAtIndex(e)};for(var m=0;m<d.length;m++)j=d[m],l.willTrigger(l.TYPE_REMOVE,l.PHASE_BEFORE)||l.willTrigger(l.TYPE_REMOVE,l.PHASE_AFTER)?(i={type:"remove"},k=l.decouple(j),l.processTrigger(i,l.TYPE_REMOVE,l.PHASE_BEFORE,k,k)!==!1&&(h(j),l.processTrigger(i,l.TYPE_REMOVE,l.PHASE_AFTER,k,k))):h(j);this.chainSend("remove",{query:a,dataSet:d},b),(!b||b&&!b.noEmit)&&this._onRemove(d),this._onChange(),this.deferEmit("change",{type:"remove",data:d})}return c&&c(!1,d),d},n.prototype.removeById=function(a){var b={};return b[this._primaryKey]=a,this.remove(b)},n.prototype.deferEmit=function(a,b){var c,d=this;this._noEmitDefer||this._db&&(!this._db||this._db._noEmitDefer)?this.emit.apply(this,arguments):(c=arguments,this._deferTimeout=this._deferTimeout||{},this._deferTimeout[a]&&clearTimeout(this._deferTimeout[a]),this._deferTimeout[a]=setTimeout(function(){d.debug()&&console.log("ForerunnerDB.Collection: Emitting "+c[0]),d.emit.apply(d,c)},1))},n.prototype.processQueue=function(a,b,c){var d,e,f=this,g=this._deferQueue[a],h=this._deferThreshold[a],i=this._deferTime[a];if(c=c||{deferred:!0},g.length){if(g.length)switch(d=g.length>h?g.splice(0,h):g.splice(0,g.length),e=f[a](d),a){case"insert":c.inserted=c.inserted||[],c.failed=c.failed||[],c.inserted=c.inserted.concat(e.inserted),c.failed=c.failed.concat(e.failed)}setTimeout(function(){f.processQueue.call(f,a,b,c)},i)}else b&&b(c)},n.prototype.insert=function(a,b,c){if("dropped"===this._state)throw'ForerunnerDB.Collection "'+this.name()+'": Cannot operate in a dropped state!';return"function"==typeof b?(c=b,b=this._data.length):void 0===b&&(b=this._data.length),a=this.transformIn(a),this._insertHandle(a,b,c)},n.prototype._insertHandle=function(a,b,c){var d,e,f,g=this._deferQueue.insert,h=this._deferThreshold.insert,i=[],j=[];if(a instanceof Array){if(a.length>h)return this._deferQueue.insert=g.concat(a),void this.processQueue("insert",c);for(f=0;f<a.length;f++)d=this._insert(a[f],b+f),d===!0?i.push(a[f]):j.push({doc:a[f],reason:d})}else d=this._insert(a,b),d===!0?i.push(a):j.push({doc:a,reason:d});return this.chainSend("insert",a,{index:b}),e={deferred:!1,inserted:i,failed:j},this._onInsert(i,j),c&&c(e),this._onChange(),this.deferEmit("change",{type:"insert",data:i}),e},n.prototype._insert=function(a,b){if(a){var c,d,e,f,g=this;if(this.ensurePrimaryKey(a),c=this.insertIndexViolation(a),e=function(a){g._insertIntoIndexes(a),b>g._data.length&&(b=g._data.length),g._dataInsertAtIndex(b,a)},c)return"Index violation in index: "+c;if(g.willTrigger(g.TYPE_INSERT,g.PHASE_BEFORE)||g.willTrigger(g.TYPE_INSERT,g.PHASE_AFTER)){if(d={type:"insert"},g.processTrigger(d,g.TYPE_INSERT,g.PHASE_BEFORE,{},a)===!1)return!1;e(a),g.willTrigger(g.TYPE_INSERT,g.PHASE_AFTER)&&(f=g.decouple(a),g.processTrigger(d,g.TYPE_INSERT,g.PHASE_AFTER,{},f))}else e(a);return!0}return"No document passed to insert"},n.prototype._dataInsertAtIndex=function(a,b){this._data.splice(a,0,b)},n.prototype._dataRemoveAtIndex=function(a){this._data.splice(a,1)},n.prototype._dataReplace=function(a){for(;this._data.length;)this._data.pop();this._data=this._data.concat(a)},n.prototype._insertIntoIndexes=function(a){var b,c,d=this._indexByName,e=JSON.stringify(a);c=this._primaryIndex.uniqueSet(a[this._primaryKey],a),this._primaryCrc.uniqueSet(a[this._primaryKey],e),this._crcLookup.uniqueSet(e,a);for(b in d)d.hasOwnProperty(b)&&d[b].insert(a);return c},n.prototype._removeFromIndexes=function(a){var b,c=this._indexByName,d=JSON.stringify(a);this._primaryIndex.unSet(a[this._primaryKey]),this._primaryCrc.unSet(a[this._primaryKey]),this._crcLookup.unSet(d);for(b in c)c.hasOwnProperty(b)&&c[b].remove(a)},n.prototype._updateIndexes=function(a,b){this._removeFromIndexes(a),this._insertIntoIndexes(b)},n.prototype._rebuildIndexes=function(){var a,b=this._indexByName;for(a in b)b.hasOwnProperty(a)&&b[a].rebuild()},n.prototype.subset=function(a,b){var c=this.find(a,b);return(new n).subsetOf(this).primaryKey(this._primaryKey).setData(c)},d.synthesize(n.prototype,"subsetOf"),n.prototype.isSubsetOf=function(a){return!0},n.prototype.distinct=function(a,b,c){if("dropped"===this._state)throw'ForerunnerDB.Collection "'+this.name()+'": Cannot operate in a dropped state!';var d,e,f=this.find(b,c),g=new h(a),i={},j=[];for(e=0;e<f.length;e++)d=g.value(f[e])[0],d&&!i[d]&&(i[d]=!0,j.push(d));return j},n.prototype.findById=function(a,b){var c={};return c[this._primaryKey]=a,this.find(c,b)[0]},n.prototype.peek=function(a,b){var c,d,e=this._data,f=e.length,g=new n,h=typeof a;if("string"===h){for(c=0;f>c;c++)d=JSON.stringify(e[c]),d.indexOf(a)>-1&&g.insert(e[c]);return g.find({},b)}return this.find(a,b)},n.prototype.explain=function(a,b){var c=this.find(a,b);return c.__fdbOp._data},n.prototype.options=function(a){return a=a||{},a.$decouple=void 0!==a.$decouple?a.$decouple:!0,a.$explain=void 0!==a.$explain?a.$explain:!1,a},n.prototype.find=function(a,b,c){return c?(c("Callbacks for the find() operation are not yet implemented!",[]),[]):this._find.apply(this,arguments)},n.prototype._find=function(a,b){if("dropped"===this._state)throw'ForerunnerDB.Collection "'+this.name()+'": Cannot operate in a dropped state!';a=a||{},b=this.options(b);var c,d,e,f,g,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C=this._metrics.create("find"),D=this.primaryKey(),E=this,F=!0,G={},H=[],I=[],J=[],K={},L={},M=function(b){return E._match(b,a,"and",K)};if(C.start(),a){if(C.time("analyseQuery"),c=this._analyseQuery(E.decouple(a),b,C),C.time("analyseQuery"),C.data("analysis",c),c.hasJoin&&c.queriesJoin){for(C.time("joinReferences"),g=0;g<c.joinsOn.length;g++)k=c.joinsOn[g],j=new h(c.joinQueries[k]),i=j.value(a)[0],G[c.joinsOn[g]]=this._db.collection(c.joinsOn[g]).subset(i),delete a[c.joinQueries[k]];C.time("joinReferences")}if(c.indexMatch.length&&(!b||b&&!b.$skipIndex)?(C.data("index.potential",c.indexMatch),C.data("index.used",c.indexMatch[0].index),C.time("indexLookup"),e=c.indexMatch[0].lookup||[],C.time("indexLookup"),c.indexMatch[0].keyData.totalKeyCount===c.indexMatch[0].keyData.score&&(F=!1)):C.flag("usedIndex",!1),F&&(e&&e.length?(d=e.length,C.time("tableScan: "+d),e=e.filter(M)):(d=this._data.length,C.time("tableScan: "+d),e=this._data.filter(M)),b.$orderBy&&(C.time("sort"),e=this.sort(b.$orderBy,e),C.time("sort")),C.time("tableScan: "+d)),void 0!==b.$page&&void 0!==b.$limit&&(L.page=b.$page,L.pages=Math.ceil(e.length/b.$limit),L.records=e.length,b.$page&&b.$limit>0&&(C.data("cursor",L),e.splice(0,b.$page*b.$limit))),b.$skip&&(L.skip=b.$skip,e.splice(0,b.$skip),C.data("skip",b.$skip)),b.$limit&&e&&e.length>b.$limit&&(L.limit=b.$limit,e.length=b.$limit,C.data("limit",b.$limit)),b.$decouple&&(C.time("decouple"),e=this.decouple(e),C.time("decouple"),C.data("flag.decouple",!0)),b.$join){for(f=0;f<b.$join.length;f++)for(k in b.$join[f])if(b.$join[f].hasOwnProperty(k))for(s=k,l=G[k]?G[k]:this._db.collection(k),m=b.$join[f][k],t=0;t<e.length;t++){o={},p=!1,q=!1;for(n in m)if(m.hasOwnProperty(n))if("$"===n.substr(0,1))switch(n){case"$as":s=m[n];break;case"$multi":p=m[n];break;case"$require":q=m[n]}else o[n]=new h(m[n]).value(e[t])[0];r=l.find(o),!q||q&&r[0]?e[t][s]=p===!1?r[0]:r:H.push(e[t])}C.data("flag.join",!0)}if(H.length){for(C.time("removalQueue"),v=0;v<H.length;v++)u=e.indexOf(H[v]),u>-1&&e.splice(u,1);C.time("removalQueue")}if(b.$transform){for(C.time("transform"),v=0;v<e.length;v++)e.splice(v,1,b.$transform(e[v]));C.time("transform"),C.data("flag.transform",!0)}this._transformEnabled&&this._transformOut&&(C.time("transformOut"),e=this.transformOut(e),C.time("transformOut")),C.data("results",e.length)}else e=[];C.time("scanFields");for(v in b)b.hasOwnProperty(v)&&0!==v.indexOf("$")&&(1===b[v]?I.push(v):0===b[v]&&J.push(v));if(C.time("scanFields"),I.length||J.length){for(C.data("flag.limitFields",!0),C.data("limitFields.on",I),C.data("limitFields.off",J),C.time("limitFields"),v=0;v<e.length;v++){B=e[v];for(w in B)B.hasOwnProperty(w)&&(I.length&&w!==D&&-1===I.indexOf(w)&&delete B[w],J.length&&J.indexOf(w)>-1&&delete B[w])}C.time("limitFields")}if(b.$elemMatch){C.data("flag.elemMatch",!0),C.time("projection-elemMatch");for(v in b.$elemMatch)if(b.$elemMatch.hasOwnProperty(v))for(y=new h(v),w=0;w<e.length;w++)if(z=y.value(e[w])[0],z&&z.length)for(x=0;x<z.length;x++)if(E._match(z[x],b.$elemMatch[v],"",{})){y.set(e[w],v,[z[x]]);break}C.time("projection-elemMatch")}if(b.$elemsMatch){C.data("flag.elemsMatch",!0),C.time("projection-elemsMatch");for(v in b.$elemsMatch)if(b.$elemsMatch.hasOwnProperty(v))for(y=new h(v),w=0;w<e.length;w++)if(z=y.value(e[w])[0],z&&z.length){for(A=[],x=0;x<z.length;x++)E._match(z[x],b.$elemsMatch[v],"",{})&&A.push(z[x]);y.set(e[w],v,A)}C.time("projection-elemsMatch")}return C.stop(),e.__fdbOp=C,e.$cursor=L,e},n.prototype.findOne=function(){return this.find.apply(this,arguments)[0]},n.prototype.indexOf=function(a){var b=this.find(a,{$decouple:!1})[0];return b?this._data.indexOf(b):-1},n.prototype.indexOfDocById=function(a){return this._data.indexOf("object"!=typeof a?this._primaryIndex.get(a):this._primaryIndex.get(a[this._primaryKey]))},n.prototype.removeByIndex=function(a){var b,c;return b=this._data[a],void 0!==b?(b=this.decouple(b),c=b[this.primaryKey()],this.removeById(c)):!1},n.prototype.transform=function(a){return void 0!==a?("object"==typeof a?(void 0!==a.enabled&&(this._transformEnabled=a.enabled),void 0!==a.dataIn&&(this._transformIn=a.dataIn),void 0!==a.dataOut&&(this._transformOut=a.dataOut)):this._transformEnabled=a!==!1,this):{enabled:this._transformEnabled,dataIn:this._transformIn,dataOut:this._transformOut}},n.prototype.transformIn=function(a){if(this._transformEnabled&&this._transformIn){if(a instanceof Array){var b,c=[];for(b=0;b<a.length;b++)c[b]=this._transformIn(a[b]);return c}return this._transformIn(a)}return a},n.prototype.transformOut=function(a){if(this._transformEnabled&&this._transformOut){if(a instanceof Array){var b,c=[];for(b=0;b<a.length;b++)c[b]=this._transformOut(a[b]);return c}return this._transformOut(a)}return a},n.prototype.sort=function(a,b){b=b||[];var c,d,e=[];for(c in a)a.hasOwnProperty(c)&&(d={},d[c]=a[c],d.___fdbKey=c,e.push(d));return e.length<2?this._sort(a,b):this._bucketSort(e,b)},n.prototype._bucketSort=function(a,b){var c,d,e,f=a.shift(),g=[];if(a.length>0){b=this._sort(f,b),d=this.bucket(f.___fdbKey,b);for(e in d)d.hasOwnProperty(e)&&(c=[].concat(a),g=g.concat(this._bucketSort(c,d[e])));return g}return this._sort(f,b)},n.prototype._sort=function(a,b){var c,d=this,e=new h,f=e.parse(a,!0)[0];if(e.path(f.path),1===f.value)c=function(a,b){var c=e.value(a)[0],f=e.value(b)[0];return d.sortAsc(c,f)};else{if(-1!==f.value)throw'ForerunnerDB.Collection "'+this.name()+'": $orderBy clause has invalid direction: '+f.value+", accepted values are 1 or -1 for ascending or descending!";c=function(a,b){var c=e.value(a)[0],f=e.value(b)[0];return d.sortDesc(c,f)}}return b.sort(c)},n.prototype.bucket=function(a,b){var c,d={};for(c=0;c<b.length;c++)d[b[c][a]]=d[b[c][a]]||[],d[b[c][a]].push(b[c]);return d},n.prototype._analyseQuery=function(a,b,c){var d,e,f,g,i,j,k,l,m,n,o,p={queriesOn:[this._name],indexMatch:[],hasJoin:!1,queriesJoin:!1,joinQueries:{},query:a,options:b},q=[],r=[];if(c.time("checkIndexes"),m=new h,n=m.countKeys(a)){void 0!==a[this._primaryKey]&&(c.time("checkIndexMatch: Primary Key"),p.indexMatch.push({lookup:this._primaryIndex.lookup(a,b),keyData:{matchedKeys:[this._primaryKey],totalKeyCount:n,score:1},index:this._primaryIndex}),c.time("checkIndexMatch: Primary Key"));for(o in this._indexById)if(this._indexById.hasOwnProperty(o)&&(j=this._indexById[o],k=j.name(),c.time("checkIndexMatch: "+k),i=j.match(a,b),i.score>0&&(l=j.lookup(a,b),p.indexMatch.push({lookup:l,keyData:i,index:j})),c.time("checkIndexMatch: "+k),i.score===n))break;c.time("checkIndexes"),p.indexMatch.length>1&&(c.time("findOptimalIndex"),p.indexMatch.sort(function(a,b){return a.keyData.score>b.keyData.score?-1:a.keyData.score<b.keyData.score?1:a.keyData.score===b.keyData.score?a.lookup.length-b.lookup.length:void 0}),c.time("findOptimalIndex"))}if(b.$join){for(p.hasJoin=!0,d=0;d<b.$join.length;d++)for(e in b.$join[d])b.$join[d].hasOwnProperty(e)&&(q.push(e),r.push("$as"in b.$join[d][e]?b.$join[d][e].$as:e));for(g=0;g<r.length;g++)f=this._queryReferencesCollection(a,r[g],""),f&&(p.joinQueries[q[g]]=f,p.queriesJoin=!0);p.joinsOn=q,p.queriesOn=p.queriesOn.concat(q)}return p},n.prototype._queryReferencesCollection=function(a,b,c){var d;for(d in a)if(a.hasOwnProperty(d)){if(d===b)return c&&(c+="."),c+d;if("object"==typeof a[d])return c&&(c+="."),c+=d,this._queryReferencesCollection(a[d],b,c)}return!1},n.prototype.count=function(a,b){return a?this.find(a,b).length:this._data.length},n.prototype.findSub=function(a,b,c,d){var e,f,g,i=new h(b),j=this.find(a),k=j.length,l=this._db.collection("__FDB_temp_"+this.objectId()),m={parents:k,subDocTotal:0,subDocs:[],pathFound:!1,err:""};for(d=d||{},e=0;k>e;e++)if(f=i.value(j[e])[0]){if(l.setData(f),g=l.find(c,d),d.returnFirst&&g.length)return g[0];d.$split?m.subDocs.push(g):m.subDocs=m.subDocs.concat(g),m.subDocTotal+=g.length,m.pathFound=!0}return l.drop(),d.$stats?m:m.subDocs},n.prototype.insertIndexViolation=function(a){var b,c,d,e=this._indexByName;if(this._primaryIndex.get(a[this._primaryKey]))b=this._primaryIndex;else for(c in e)if(e.hasOwnProperty(c)&&(d=e[c],d.unique()&&d.violation(a))){b=d;break}return b?b.name():!1},n.prototype.ensureIndex=function(a,b){if("dropped"===this._state)throw'ForerunnerDB.Collection "'+this.name()+'": Cannot operate in a dropped state!';this._indexByName=this._indexByName||{},this._indexById=this._indexById||{};var c,d={start:(new Date).getTime()};if(b)switch(b.type){case"hashed":c=new i(a,b,this);break;case"btree":c=new j(a,b,this);break;default:c=new i(a,b,this)}else c=new i(a,b,this);return this._indexByName[c.name()]?{err:"Index with that name already exists"}:this._indexById[c.id()]?{err:"Index with those keys already exists"}:(c.rebuild(),this._indexByName[c.name()]=c,this._indexById[c.id()]=c,d.end=(new Date).getTime(),d.total=d.end-d.start,this._lastOp={type:"ensureIndex",stats:{time:d}},{index:c,id:c.id(),name:c.name(),state:c.state()})},n.prototype.index=function(a){return this._indexByName?this._indexByName[a]:void 0},n.prototype.lastOp=function(){return this._metrics.list()},n.prototype.diff=function(a){var b,c,d,e,f={insert:[],update:[],remove:[]},g=this.primaryKey();if(g!==a.primaryKey())throw'ForerunnerDB.Collection "'+this.name()+'": Collection diffing requires that both collections have the same primary key!';for(b=a._data;b&&!(b instanceof Array);)a=b,b=a._data;for(e=b.length,c=0;e>c;c++)d=b[c],this._primaryIndex.get(d[g])?this._primaryCrc.get(d[g])!==a._primaryCrc.get(d[g])&&f.update.push(d):f.insert.push(d);for(b=this._data,e=b.length,c=0;e>c;c++)d=b[c],a._primaryIndex.get(d[g])||f.remove.push(d);return f},n.prototype.collateAdd=new l({"object, string":function(a,b){var c=this;c.collateAdd(a,function(d){var e,f;switch(d.type){case"insert":b?(e={$push:{}},e.$push[b]=c.decouple(d.data),c.update({},e)):c.insert(d.data);break;case"update":b?(e={},f={},e[b]=d.data.query,f[b+".$"]=d.data.update,c.update(e,f)):c.update(d.data.query,d.data.update);break;case"remove":b?(e={$pull:{}},e.$pull[b]={},e.$pull[b][c.primaryKey()]=d.data.dataSet[0][a.primaryKey()],c.update({},e)):c.remove(d.data)}})},"object, function":function(a,b){if("string"==typeof a&&(a=this._db.collection(a,{autoCreate:!1,throwError:!1})),a)return this._collate=this._collate||{},this._collate[a.name()]=new m(a,this,b),this;throw"Cannot collate from a non-existent collection!"}}),n.prototype.collateRemove=function(a){if("object"==typeof a&&(a=a.name()),a)return this._collate[a].drop(),delete this._collate[a],this;throw"No collection name passed to collateRemove() or collection not found!"},e.prototype.collection=new l({object:function(a){return this.$main.call(this,a)},string:function(a){return this.$main.call(this,{name:a})},"string, string":function(a,b){return this.$main.call(this,{name:a,primaryKey:b})},"string, object":function(a,b){return b.name=a,this.$main.call(this,b)},"string, string, object":function(a,b,c){return c.name=a,c.primaryKey=b,this.$main.call(this,c)},$main:function(a){var b=a.name;if(b){if(!this._collection[b]){if(a&&a.autoCreate===!1&&a&&a.throwError!==!1)throw'ForerunnerDB.Db "'+this.name()+'": Cannot get collection '+b+" because it does not exist and auto-create has been disabled!";this.debug()&&console.log("Creating collection "+b)}return this._collection[b]=this._collection[b]||new n(b).db(this),void 0!==a.primaryKey&&this._collection[b].primaryKey(a.primaryKey),this._collection[b]}if(!a||a&&a.throwError!==!1)throw'ForerunnerDB.Db "'+this.name()+'": Cannot get collection with undefined name!'}}),e.prototype.collectionExists=function(a){return Boolean(this._collection[a])},e.prototype.collections=function(a){var b,c=[];a&&(a instanceof RegExp||(a=new RegExp(a)));for(b in this._collection)this._collection.hasOwnProperty(b)&&(a?a.exec(b)&&c.push({name:b,count:this._collection[b].count()}):c.push({name:b,count:this._collection[b].count()}));return c.sort(function(a,b){return a.name.localeCompare(b.name)}),c},d.finishModule("Collection"),b.exports=n},{"./Crc":6,"./IndexBinaryTree":8,"./IndexHashMap":9,"./KeyValueStore":10,"./Metrics":11,"./Overload":22,"./Path":23,"./ReactorIO":25,"./Shared":26}],4:[function(a,b,c){"use strict";var d,e,f,g;d=a("./Shared");var h=function(){this.init.apply(this,arguments)};h.prototype.init=function(a){var b=this;b._name=a,b._data=new g("__FDB__cg_data_"+b._name),b._collections=[],b._view=[]},d.addModule("CollectionGroup",h),d.mixin(h.prototype,"Mixin.Common"),d.mixin(h.prototype,"Mixin.ChainReactor"),d.mixin(h.prototype,"Mixin.Constants"),d.mixin(h.prototype,"Mixin.Triggers"),g=a("./Collection"),e=d.modules.Db,f=d.modules.Db.prototype.init,h.prototype.on=function(){this._data.on.apply(this._data,arguments)},h.prototype.off=function(){this._data.off.apply(this._data,arguments)},h.prototype.emit=function(){this._data.emit.apply(this._data,arguments)},h.prototype.primaryKey=function(a){return void 0!==a?(this._primaryKey=a,this):this._primaryKey},d.synthesize(h.prototype,"state"),d.synthesize(h.prototype,"db"),h.prototype.addCollection=function(a){if(a&&-1===this._collections.indexOf(a)){if(this._collections.length){if(this._primaryKey!==a.primaryKey())throw'ForerunnerDB.CollectionGroup "'+this.name()+'": All collections in a collection group must have the same primary key!'}else this.primaryKey(a.primaryKey());this._collections.push(a),a._groups=a._groups||[],a._groups.push(this),a.chain(this),a.on("drop",function(){if(a._groups&&a._groups.length){var b,c=[];for(b=0;b<a._groups.length;b++)c.push(a._groups[b]);for(b=0;b<c.length;b++)a._groups[b].removeCollection(a)}delete a._groups}),this._data.insert(a.find())}return this},h.prototype.removeCollection=function(a){if(a){var b,c=this._collections.indexOf(a);-1!==c&&(a.unChain(this),this._collections.splice(c,1),a._groups=a._groups||[],b=a._groups.indexOf(this),-1!==b&&a._groups.splice(b,1),a.off("drop")),0===this._collections.length&&delete this._primaryKey}return this},h.prototype._chainHandler=function(a){
switch(a.type){case"setData":a.data=this.decouple(a.data),this._data.remove(a.options.oldData),this._data.insert(a.data);break;case"insert":a.data=this.decouple(a.data),this._data.insert(a.data);break;case"update":this._data.update(a.data.query,a.data.update,a.options);break;case"remove":this._data.remove(a.data.query,a.options)}},h.prototype.insert=function(){this._collectionsRun("insert",arguments)},h.prototype.update=function(){this._collectionsRun("update",arguments)},h.prototype.updateById=function(){this._collectionsRun("updateById",arguments)},h.prototype.remove=function(){this._collectionsRun("remove",arguments)},h.prototype._collectionsRun=function(a,b){for(var c=0;c<this._collections.length;c++)this._collections[c][a].apply(this._collections[c],b)},h.prototype.find=function(a,b){return this._data.find(a,b)},h.prototype.removeById=function(a){for(var b=0;b<this._collections.length;b++)this._collections[b].removeById(a)},h.prototype.subset=function(a,b){var c=this.find(a,b);return(new g).subsetOf(this).primaryKey(this._primaryKey).setData(c)},h.prototype.drop=function(){if("dropped"!==this._state){var a,b,c;if(this._debug&&console.log("Dropping collection group "+this._name),this._state="dropped",this._collections&&this._collections.length)for(b=[].concat(this._collections),a=0;a<b.length;a++)this.removeCollection(b[a]);if(this._view&&this._view.length)for(c=[].concat(this._view),a=0;a<c.length;a++)this._removeView(c[a]);this.emit("drop",this)}return!0},e.prototype.init=function(){this._collectionGroup={},f.apply(this,arguments)},e.prototype.collectionGroup=function(a){return a?(this._collectionGroup[a]=this._collectionGroup[a]||new h(a).db(this),this._collectionGroup[a]):this._collectionGroup},e.prototype.collectionGroups=function(){var a,b=[];for(a in this._collectionGroup)this._collectionGroup.hasOwnProperty(a)&&b.push({name:a});return b},b.exports=h},{"./Collection":3,"./Shared":26}],5:[function(a,b,c){"use strict";var d,e,f,g,h=[];d=a("./Shared"),g=a("./Overload");var i=function(a){this.init.apply(this,arguments)};i.prototype.init=function(a){this._db={},this._debug={},this._name=a||"ForerunnerDB",h.push(this)},i.prototype.instantiatedCount=function(){return h.length},i.prototype.instances=function(a){return void 0!==a?h[a]:h},i.prototype.namedInstances=function(a){var b,c;if(void 0!==a){for(b=0;b<h.length;b++)if(h[b].name===a)return h[b];return void 0}for(c=[],b=0;b<h.length;b++)c.push(h[b].name);return c},i.prototype.moduleLoaded=new g({string:function(a){if(void 0!==a){a=a.replace(/ /g,"");var b,c=a.split(",");for(b=0;b<c.length;b++)if(!d.modules[c[b]])return!1;return!0}return!1},"string, function":function(a,b){if(void 0!==a){a=a.replace(/ /g,"");var c,e=a.split(",");for(c=0;c<e.length;c++)if(!d.modules[e[c]])return!1;b()}},"array, function":function(a,b){var c,e;for(e=0;e<a.length;e++)if(c=a[e],void 0!==c){c=c.replace(/ /g,"");var f,g=c.split(",");for(f=0;f<g.length;f++)if(!d.modules[g[f]])return!1}b()},"string, function, function":function(a,b,c){if(void 0!==a){a=a.replace(/ /g,"");var e,f=a.split(",");for(e=0;e<f.length;e++)if(!d.modules[f[e]])return c(),!1;b()}}}),i.prototype.version=function(a,b){return void 0!==a?0===d.version.indexOf(a)?(b&&b(),!0):!1:d.version},i.moduleLoaded=i.prototype.moduleLoaded,i.version=i.prototype.version,i.instances=i.prototype.instances,i.instantiatedCount=i.prototype.instantiatedCount,i.shared=d,i.prototype.shared=d,d.addModule("Core",i),d.mixin(i.prototype,"Mixin.Common"),d.mixin(i.prototype,"Mixin.Constants"),e=a("./Db.js"),f=a("./Metrics.js"),d.synthesize(i.prototype,"name"),i.prototype._isServer=!1,i.prototype.isClient=function(){return!this._isServer},i.prototype.isServer=function(){return this._isServer},i.prototype.isClient=function(){return!this._isServer},i.prototype.isServer=function(){return this._isServer},i.prototype.collection=function(){throw"ForerunnerDB's instantiation has changed since version 1.3.36 to support multiple database instances. Please see the readme.md file for the minor change you have to make to get your project back up and running, or see the issue related to this change at https://github.com/Irrelon/ForerunnerDB/issues/44"},b.exports=i},{"./Db.js":7,"./Metrics.js":11,"./Overload":22,"./Shared":26}],6:[function(a,b,c){"use strict";var d=function(){var a,b,c,d=[];for(b=0;256>b;b++){for(a=b,c=0;8>c;c++)a=1&a?3988292384^a>>>1:a>>>1;d[b]=a}return d}();b.exports=function(a){var b,c=-1;for(b=0;b<a.length;b++)c=c>>>8^d[255&(c^a.charCodeAt(b))];return(-1^c)>>>0}},{}],7:[function(a,b,c){"use strict";var d,e,f,g,h,i;d=a("./Shared"),i=a("./Overload");var j=function(a,b){this.init.apply(this,arguments)};j.prototype.init=function(a,b){this.core(b),this._primaryKey="_id",this._name=a,this._collection={},this._debug={}},j.prototype.moduleLoaded=new i({string:function(a){if(void 0!==a){a=a.replace(/ /g,"");var b,c=a.split(",");for(b=0;b<c.length;b++)if(!d.modules[c[b]])return!1;return!0}return!1},"string, function":function(a,b){if(void 0!==a){a=a.replace(/ /g,"");var c,e=a.split(",");for(c=0;c<e.length;c++)if(!d.modules[e[c]])return!1;b()}},"string, function, function":function(a,b,c){if(void 0!==a){a=a.replace(/ /g,"");var e,f=a.split(",");for(e=0;e<f.length;e++)if(!d.modules[f[e]])return c(),!1;b()}}}),j.prototype.version=function(a,b){return void 0!==a?0===d.version.indexOf(a)?(b&&b(),!0):!1:d.version},j.moduleLoaded=j.prototype.moduleLoaded,j.version=j.prototype.version,j.shared=d,j.prototype.shared=d,d.addModule("Db",j),d.mixin(j.prototype,"Mixin.Common"),d.mixin(j.prototype,"Mixin.ChainReactor"),d.mixin(j.prototype,"Mixin.Constants"),e=d.modules.Core,f=a("./Collection.js"),g=a("./Metrics.js"),h=a("./Crc.js"),j.prototype._isServer=!1,d.synthesize(j.prototype,"core"),d.synthesize(j.prototype,"primaryKey"),d.synthesize(j.prototype,"state"),d.synthesize(j.prototype,"name"),j.prototype.isClient=function(){return!this._isServer},j.prototype.isServer=function(){return this._isServer},j.prototype.crc=h,j.prototype.isClient=function(){return!this._isServer},j.prototype.isServer=function(){return this._isServer},j.prototype.arrayToCollection=function(a){return(new f).setData(a)},j.prototype.on=function(a,b){return this._listeners=this._listeners||{},this._listeners[a]=this._listeners[a]||[],this._listeners[a].push(b),this},j.prototype.off=function(a,b){if(a in this._listeners){var c=this._listeners[a],d=c.indexOf(b);d>-1&&c.splice(d,1)}return this},j.prototype.emit=function(a,b){if(this._listeners=this._listeners||{},a in this._listeners){var c,d=this._listeners[a],e=d.length;for(c=0;e>c;c++)d[c].apply(this,Array.prototype.slice.call(arguments,1))}return this},j.prototype.peek=function(a){var b,c,d=[],e=typeof a;for(b in this._collection)this._collection.hasOwnProperty(b)&&(c=this._collection[b],d=d.concat("string"===e?c.peek(a):c.find(a)));return d},j.prototype.peekCat=function(a){var b,c,d,e={},f=typeof a;for(b in this._collection)this._collection.hasOwnProperty(b)&&(c=this._collection[b],"string"===f?(d=c.peek(a),d&&d.length&&(e[c.name()]=d)):(d=c.find(a),d&&d.length&&(e[c.name()]=d)));return e},j.prototype.drop=new i({"":function(){if("dropped"!==this._state){var a,b=this.collections(),c=b.length;for(this._state="dropped",a=0;c>a;a++)this.collection(b[a].name).drop(),delete this._collection[b[a].name];this.emit("drop",this),delete this._core._db[this._name]}return!0},"function":function(a){if("dropped"!==this._state){var b,c=this.collections(),d=c.length,e=0,f=function(){e++,e===d&&a&&a()};for(this._state="dropped",b=0;d>b;b++)this.collection(c[b].name).drop(f),delete this._collection[c[b].name];this.emit("drop",this),delete this._core._db[this._name]}return!0},"boolean":function(a){if("dropped"!==this._state){var b,c=this.collections(),d=c.length;for(this._state="dropped",b=0;d>b;b++)this.collection(c[b].name).drop(a),delete this._collection[c[b].name];this.emit("drop",this),delete this._core._db[this._name]}return!0},"boolean, function":function(a,b){if("dropped"!==this._state){var c,d=this.collections(),e=d.length,f=0,g=function(){f++,f===e&&b&&b()};for(this._state="dropped",c=0;e>c;c++)this.collection(d[c].name).drop(a,g),delete this._collection[d[c].name];this.emit("drop",this),delete this._core._db[this._name]}return!0}}),e.prototype.db=function(a){return a||(a=this.objectId()),this._db[a]=this._db[a]||new j(a,this),this._db[a]},e.prototype.databases=function(a){var b,c,d,e=[];a&&(a instanceof RegExp||(a=new RegExp(a)));for(d in this._db)this._db.hasOwnProperty(d)&&(c=!0,a&&(a.exec(d)||(c=!1)),c&&(b={name:d,children:[]},this.shared.moduleExists("Collection")&&b.children.push({module:"collection",moduleName:"Collections",count:this._db[d].collections().length}),this.shared.moduleExists("CollectionGroup")&&b.children.push({module:"collectionGroup",moduleName:"Collection Groups",count:this._db[d].collectionGroups().length}),this.shared.moduleExists("Document")&&b.children.push({module:"document",moduleName:"Documents",count:this._db[d].documents().length}),this.shared.moduleExists("Grid")&&b.children.push({module:"grid",moduleName:"Grids",count:this._db[d].grids().length}),this.shared.moduleExists("Overview")&&b.children.push({module:"overview",moduleName:"Overviews",count:this._db[d].overviews().length}),this.shared.moduleExists("View")&&b.children.push({module:"view",moduleName:"Views",count:this._db[d].views().length}),e.push(b)));return e.sort(function(a,b){return a.name.localeCompare(b.name)}),e},b.exports=j},{"./Collection.js":3,"./Crc.js":6,"./Metrics.js":11,"./Overload":22,"./Shared":26}],8:[function(a,b,c){"use strict";var d=a("./Shared"),e=a("./Path"),f=function(){},g=function(){this.init.apply(this,arguments)};g.prototype.init=function(a,b,c){this._btree=new(f.create(2,this.sortAsc)),this._size=0,this._id=this._itemKeyHash(a,a),this.unique(b&&b.unique?b.unique:!1),void 0!==a&&this.keys(a),void 0!==c&&this.collection(c),this.name(b&&b.name?b.name:this._id)},d.addModule("IndexBinaryTree",g),d.mixin(g.prototype,"Mixin.ChainReactor"),d.mixin(g.prototype,"Mixin.Sorting"),g.prototype.id=function(){return this._id},g.prototype.state=function(){return this._state},g.prototype.size=function(){return this._size},d.synthesize(g.prototype,"data"),d.synthesize(g.prototype,"name"),d.synthesize(g.prototype,"collection"),d.synthesize(g.prototype,"type"),d.synthesize(g.prototype,"unique"),g.prototype.keys=function(a){return void 0!==a?(this._keys=a,this._keyCount=(new e).parse(this._keys).length,this):this._keys},g.prototype.rebuild=function(){if(this._collection){var a,b=this._collection.subset({},{$decouple:!1,$orderBy:this._keys}),c=b.find(),d=c.length;for(this._btree=new(f.create(2,this.sortAsc)),this._unique&&(this._uniqueLookup={}),a=0;d>a;a++)this.insert(c[a])}this._state={name:this._name,keys:this._keys,indexSize:this._size,built:new Date,updated:new Date,ok:!0}},g.prototype.insert=function(a,b){var c,d,e=this._unique,f=this._itemKeyHash(a,this._keys);e&&(c=this._itemHash(a,this._keys),this._uniqueLookup[c]=a),d=this._btree.get(f),void 0===d&&(d=[],this._btree.put(f,d)),d.push(a),this._size++},g.prototype.remove=function(a,b){var c,d,e,f=this._unique,g=this._itemKeyHash(a,this._keys);f&&(c=this._itemHash(a,this._keys),delete this._uniqueLookup[c]),d=this._btree.get(g),void 0!==d&&(e=d.indexOf(a),e>-1&&(1===d.length?this._btree.del(g):d.splice(e,1),this._size--))},g.prototype.violation=function(a){var b=this._itemHash(a,this._keys);return Boolean(this._uniqueLookup[b])},g.prototype.hashViolation=function(a){return Boolean(this._uniqueLookup[a])},g.prototype.lookup=function(a){return this._data[this._itemHash(a,this._keys)]||[]},g.prototype.match=function(a,b){var c,d=new e,f=d.parseArr(this._keys),g=d.parseArr(a),h=[],i=0;for(c=0;c<f.length;c++){if(g[c]!==f[c])return{matchedKeys:[],totalKeyCount:g.length,score:0};i++,h.push(g[c])}return{matchedKeys:h,totalKeyCount:g.length,score:i}},g.prototype._itemHash=function(a,b){var c,d,f=new e,g="";for(c=f.parse(b),d=0;d<c.length;d++)g&&(g+="_"),g+=f.value(a,c[d].path).join(":");return g},g.prototype._itemKeyHash=function(a,b){var c,d,f=new e,g="";for(c=f.parse(b),d=0;d<c.length;d++)g&&(g+="_"),g+=f.keyValue(a,c[d].path);return g},g.prototype._itemHashArr=function(a,b){var c,d,f,g,h,i=new e,j=[];for(c=i.parse(b),g=0;g<c.length;g++)for(d=i.value(a,c[g].path),f=0;f<d.length;f++)if(0===g)j.push(d[f]);else for(h=0;h<j.length;h++)j[h]=j[h]+"_"+d[f];return j},d.finishModule("IndexBinaryTree"),b.exports=g},{"./Path":23,"./Shared":26}],9:[function(a,b,c){"use strict";var d=a("./Shared"),e=a("./Path"),f=function(){this.init.apply(this,arguments)};f.prototype.init=function(a,b,c){this._crossRef={},this._size=0,this._id=this._itemKeyHash(a,a),this.data({}),this.unique(b&&b.unique?b.unique:!1),void 0!==a&&this.keys(a),void 0!==c&&this.collection(c),this.name(b&&b.name?b.name:this._id)},d.addModule("IndexHashMap",f),d.mixin(f.prototype,"Mixin.ChainReactor"),f.prototype.id=function(){return this._id},f.prototype.state=function(){return this._state},f.prototype.size=function(){return this._size},d.synthesize(f.prototype,"data"),d.synthesize(f.prototype,"name"),d.synthesize(f.prototype,"collection"),d.synthesize(f.prototype,"type"),d.synthesize(f.prototype,"unique"),f.prototype.keys=function(a){return void 0!==a?(this._keys=a,this._keyCount=(new e).parse(this._keys).length,this):this._keys},f.prototype.rebuild=function(){if(this._collection){var a,b=this._collection.subset({},{$decouple:!1,$orderBy:this._keys}),c=b.find(),d=c.length;for(this._data={},this._unique&&(this._uniqueLookup={}),a=0;d>a;a++)this.insert(c[a])}this._state={name:this._name,keys:this._keys,indexSize:this._size,built:new Date,updated:new Date,ok:!0}},f.prototype.insert=function(a,b){var c,d,e,f=this._unique;for(f&&(c=this._itemHash(a,this._keys),this._uniqueLookup[c]=a),d=this._itemHashArr(a,this._keys),e=0;e<d.length;e++)this.pushToPathValue(d[e],a)},f.prototype.update=function(a,b){},f.prototype.remove=function(a,b){var c,d,e,f=this._unique;for(f&&(c=this._itemHash(a,this._keys),delete this._uniqueLookup[c]),d=this._itemHashArr(a,this._keys),e=0;e<d.length;e++)this.pullFromPathValue(d[e],a)},f.prototype.violation=function(a){var b=this._itemHash(a,this._keys);return Boolean(this._uniqueLookup[b])},f.prototype.hashViolation=function(a){return Boolean(this._uniqueLookup[a])},f.prototype.pushToPathValue=function(a,b){var c=this._data[a]=this._data[a]||[];-1===c.indexOf(b)&&(c.push(b),this._size++,this.pushToCrossRef(b,c))},f.prototype.pullFromPathValue=function(a,b){var c,d=this._data[a];c=d.indexOf(b),c>-1&&(d.splice(c,1),this._size--,this.pullFromCrossRef(b,d)),d.length||delete this._data[a]},f.prototype.pull=function(a){var b,c,d=a[this._collection.primaryKey()],e=this._crossRef[d],f=e.length;for(b=0;f>b;b++)c=e[b],this._pullFromArray(c,a);this._size--,delete this._crossRef[d]},f.prototype._pullFromArray=function(a,b){for(var c=a.length;c--;)a[c]===b&&a.splice(c,1)},f.prototype.pushToCrossRef=function(a,b){var c,d=a[this._collection.primaryKey()];this._crossRef[d]=this._crossRef[d]||[],c=this._crossRef[d],-1===c.indexOf(b)&&c.push(b)},f.prototype.pullFromCrossRef=function(a,b){var c=a[this._collection.primaryKey()];delete this._crossRef[c]},f.prototype.lookup=function(a){return this._data[this._itemHash(a,this._keys)]||[]},f.prototype.match=function(a,b){var c,d=new e,f=d.parseArr(this._keys),g=d.parseArr(a),h=[],i=0;for(c=0;c<f.length;c++){if(g[c]!==f[c])return{matchedKeys:[],totalKeyCount:g.length,score:0};i++,h.push(g[c])}return{matchedKeys:h,totalKeyCount:g.length,score:i}},f.prototype._itemHash=function(a,b){var c,d,f=new e,g="";for(c=f.parse(b),d=0;d<c.length;d++)g&&(g+="_"),g+=f.value(a,c[d].path).join(":");return g},f.prototype._itemKeyHash=function(a,b){var c,d,f=new e,g="";for(c=f.parse(b),d=0;d<c.length;d++)g&&(g+="_"),g+=f.keyValue(a,c[d].path);return g},f.prototype._itemHashArr=function(a,b){var c,d,f,g,h,i=new e,j=[];for(c=i.parse(b),g=0;g<c.length;g++)for(d=i.value(a,c[g].path),f=0;f<d.length;f++)if(0===g)j.push(d[f]);else for(h=0;h<j.length;h++)j[h]=j[h]+"_"+d[f];return j},d.finishModule("IndexHashMap"),b.exports=f},{"./Path":23,"./Shared":26}],10:[function(a,b,c){"use strict";var d=a("./Shared"),e=function(a){this.init.apply(this,arguments)};e.prototype.init=function(a){this._name=a,this._data={},this._primaryKey="_id"},d.addModule("KeyValueStore",e),d.mixin(e.prototype,"Mixin.ChainReactor"),d.synthesize(e.prototype,"name"),e.prototype.primaryKey=function(a){return void 0!==a?(this._primaryKey=a,this):this._primaryKey},e.prototype.truncate=function(){return this._data={},this},e.prototype.set=function(a,b){return this._data[a]=b?b:!0,this},e.prototype.get=function(a){return this._data[a]},e.prototype.lookup=function(a){var b,c,d,e,f=a[this._primaryKey];if(f instanceof Array){for(c=f.length,e=[],b=0;c>b;b++)d=this._data[f[b]],d&&e.push(d);return e}if(f instanceof RegExp){e=[];for(b in this._data)this._data.hasOwnProperty(b)&&f.test(b)&&e.push(this._data[b]);return e}if("object"!=typeof f)return d=this._data[f],void 0!==d?[d]:[];if(f.$ne){e=[];for(b in this._data)this._data.hasOwnProperty(b)&&b!==f.$ne&&e.push(this._data[b]);return e}if(f.$in&&f.$in instanceof Array){e=[];for(b in this._data)this._data.hasOwnProperty(b)&&f.$in.indexOf(b)>-1&&e.push(this._data[b]);return e}if(f.$nin&&f.$nin instanceof Array){e=[];for(b in this._data)this._data.hasOwnProperty(b)&&-1===f.$nin.indexOf(b)&&e.push(this._data[b]);return e}if(f.$or&&f.$or instanceof Array){for(e=[],b=0;b<f.$or.length;b++)e=e.concat(this.lookup(f.$or[b]));return e}},e.prototype.unSet=function(a){return delete this._data[a],this},e.prototype.uniqueSet=function(a,b){return void 0===this._data[a]?(this._data[a]=b,!0):!1},d.finishModule("KeyValueStore"),b.exports=e},{"./Shared":26}],11:[function(a,b,c){"use strict";var d=a("./Shared"),e=a("./Operation"),f=function(){this.init.apply(this,arguments)};f.prototype.init=function(){this._data=[]},d.addModule("Metrics",f),d.mixin(f.prototype,"Mixin.ChainReactor"),f.prototype.create=function(a){var b=new e(a);return this._enabled&&this._data.push(b),b},f.prototype.start=function(){return this._enabled=!0,this},f.prototype.stop=function(){return this._enabled=!1,this},f.prototype.clear=function(){return this._data=[],this},f.prototype.list=function(){return this._data},d.finishModule("Metrics"),b.exports=f},{"./Operation":21,"./Shared":26}],12:[function(a,b,c){"use strict";var d={preSetData:function(){},postSetData:function(){}};b.exports=d},{}],13:[function(a,b,c){"use strict";var d={chain:function(a){this._chain=this._chain||[];var b=this._chain.indexOf(a);-1===b&&this._chain.push(a)},unChain:function(a){if(this._chain){var b=this._chain.indexOf(a);b>-1&&this._chain.splice(b,1)}},chainSend:function(a,b,c){if(this._chain){var d,e,f=this._chain,g=f.length;for(e=0;g>e;e++){if(d=f[e],d._state&&(!d._state||"dropped"===d._state))throw console.log("Reactor Data:",a,b,c),console.log("Reactor Node:",d),"Chain reactor attempting to send data to target reactor node that is in a dropped state!";d.chainReceive(this,a,b,c)}}},chainReceive:function(a,b,c,d){var e={sender:a,type:b,data:c,options:d};(!this._chainHandler||this._chainHandler&&!this._chainHandler(e))&&this.chainSend(e.type,e.data,e.options)}};b.exports=d},{}],14:[function(a,b,c){"use strict";var d,e=0,f=a("./Overload");d={store:function(a,b){if(void 0!==a){if(void 0!==b)return this._store=this._store||{},this._store[a]=b,this;if(this._store)return this._store[a]}return void 0},unStore:function(a){return void 0!==a&&delete this._store[a],this},decouple:function(a,b){if(void 0!==a){if(b){var c,d=JSON.stringify(a),e=[];for(c=0;b>c;c++)e.push(JSON.parse(d));return e}return JSON.parse(JSON.stringify(a))}return void 0},objectId:function(a){var b,c=Math.pow(10,17);if(a){var d,f=0,g=a.length;for(d=0;g>d;d++)f+=a.charCodeAt(d)*c;b=f.toString(16)}else e++,b=(e+(Math.random()*c+Math.random()*c+Math.random()*c+Math.random()*c)).toString(16);return b},debug:new f([function(){return this._debug&&this._debug.all},function(a){return void 0!==a?"boolean"==typeof a?(this._debug=this._debug||{},this._debug.all=a,this.chainSend("debug",this._debug),this):this._debug&&this._debug[a]||this._db&&this._db._debug&&this._db._debug[a]||this._debug&&this._debug.all:this._debug&&this._debug.all},function(a,b){return void 0!==a?void 0!==b?(this._debug=this._debug||{},this._debug[a]=b,this.chainSend("debug",this._debug),this):this._debug&&this._debug[b]||this._db&&this._db._debug&&this._db._debug[a]:this._debug&&this._debug.all}])},b.exports=d},{"./Overload":22}],15:[function(a,b,c){"use strict";var d={TYPE_INSERT:0,TYPE_UPDATE:1,TYPE_REMOVE:2,PHASE_BEFORE:0,PHASE_AFTER:1};b.exports=d},{}],16:[function(a,b,c){"use strict";var d=a("./Overload"),e={on:new d({"string, function":function(a,b){return this._listeners=this._listeners||{},this._listeners[a]=this._listeners[a]||{},this._listeners[a]["*"]=this._listeners[a]["*"]||[],this._listeners[a]["*"].push(b),this},"string, *, function":function(a,b,c){return this._listeners=this._listeners||{},this._listeners[a]=this._listeners[a]||{},this._listeners[a][b]=this._listeners[a][b]||[],this._listeners[a][b].push(c),this}}),off:new d({string:function(a){return this._listeners&&this._listeners[a]&&a in this._listeners&&delete this._listeners[a],this},"string, function":function(a,b){var c,d;return"string"==typeof b?this._listeners&&this._listeners[a]&&this._listeners[a][b]&&delete this._listeners[a][b]:this._listeners&&a in this._listeners&&(c=this._listeners[a]["*"],d=c.indexOf(b),d>-1&&c.splice(d,1)),this},"string, *, function":function(a,b,c){if(this._listeners&&a in this._listeners&&b in this.listeners[a]){var d=this._listeners[a][b],e=d.indexOf(c);e>-1&&d.splice(e,1)}},"string, *":function(a,b){this._listeners&&a in this._listeners&&b in this._listeners[a]&&delete this._listeners[a][b]}}),emit:function(a,b){if(this._listeners=this._listeners||{},a in this._listeners){var c,d;if(this._listeners[a]["*"]){var e=this._listeners[a]["*"];for(d=e.length,c=0;d>c;c++)e[c].apply(this,Array.prototype.slice.call(arguments,1))}if(b instanceof Array&&b[0]&&b[0][this._primaryKey]){var f,g,h=this._listeners[a];for(d=b.length,c=0;d>c;c++)if(h[b[c][this._primaryKey]])for(f=h[b[c][this._primaryKey]].length,g=0;f>g;g++)h[b[c][this._primaryKey]][g].apply(this,Array.prototype.slice.call(arguments,1))}}return this}};b.exports=e},{"./Overload":22}],17:[function(a,b,c){"use strict";var d={_match:function(a,b,c,d){var e,f,g,h,i,j,k,l=typeof a,m=typeof b,n=!0;if(d=d||{},d.$rootQuery||(d.$rootQuery=b),d.$rootData=d.$rootData||{},"string"!==l&&"number"!==l||"string"!==m&&"number"!==m){for(k in b)if(b.hasOwnProperty(k)){if(e=!1,j=k.substr(0,2),"//"===j)continue;if(0===j.indexOf("$")&&(i=this._matchOp(k,a,b[k],d),i>-1)){if(i){if("or"===c)return!0}else n=i;e=!0}if(!e&&b[k]instanceof RegExp)if(e=!0,"object"==typeof a&&void 0!==a[k]&&b[k].test(a[k])){if("or"===c)return!0}else n=!1;if(!e)if("object"==typeof b[k])if(void 0!==a[k])if(a[k]instanceof Array&&!(b[k]instanceof Array)){for(g=!1,h=0;h<a[k].length&&!(g=this._match(a[k][h],b[k],f,d));h++);if(g){if("or"===c)return!0}else n=!1}else if(!(a[k]instanceof Array)&&b[k]instanceof Array){for(g=!1,h=0;h<b[k].length&&!(g=this._match(a[k],b[k][h],f,d));h++);if(g){if("or"===c)return!0}else n=!1}else if("object"==typeof a)if(g=this._match(a[k],b[k],f,d)){if("or"===c)return!0}else n=!1;else if(g=this._match(void 0,b[k],f,d)){if("or"===c)return!0}else n=!1;else if(b[k]&&void 0!==b[k].$exists)if(g=this._match(void 0,b[k],f,d)){if("or"===c)return!0}else n=!1;else n=!1;else if(a&&a[k]===b[k]){if("or"===c)return!0}else if(a&&a[k]&&a[k]instanceof Array&&b[k]&&"object"!=typeof b[k]){for(g=!1,h=0;h<a[k].length&&!(g=this._match(a[k][h],b[k],f,d));h++);if(g){if("or"===c)return!0}else n=!1}else n=!1;if("and"===c&&!n)return!1}}else"number"===l?a!==b&&(n=!1):a.localeCompare(b)&&(n=!1);return n},_matchOp:function(a,b,c,d){switch(a){case"$gt":return b>c;case"$gte":return b>=c;case"$lt":return c>b;case"$lte":return c>=b;case"$exists":return void 0===b!==c;case"$ne":return b!=c;case"$or":for(var e=0;e<c.length;e++)if(this._match(b,c[e],"and",d))return!0;return!1;case"$and":for(var f=0;f<c.length;f++)if(!this._match(b,c[f],"and",d))return!1;return!0;case"$in":if(c instanceof Array){var g,h=c,i=h.length;for(g=0;i>g;g++)if(h[g]===b)return!0;return!1}throw'ForerunnerDB.Mixin.Matching "'+this.name()+'": Cannot use an $in operator on a non-array key: '+a;case"$nin":if(c instanceof Array){var j,k=c,l=k.length;for(j=0;l>j;j++)if(k[j]===b)return!1;return!0}throw'ForerunnerDB.Mixin.Matching "'+this.name()+'": Cannot use a $nin operator on a non-array key: '+a;case"$distinct":d.$rootData["//distinctLookup"]=d.$rootData["//distinctLookup"]||{};for(var m in c)if(c.hasOwnProperty(m))return d.$rootData["//distinctLookup"][m]=d.$rootData["//distinctLookup"][m]||{},d.$rootData["//distinctLookup"][m][b[m]]?!1:(d.$rootData["//distinctLookup"][m][b[m]]=!0,!0)}return-1}};b.exports=d},{}],18:[function(a,b,c){"use strict";var d={sortAsc:function(a,b){return"string"==typeof a&&"string"==typeof b?a.localeCompare(b):a>b?1:b>a?-1:0},sortDesc:function(a,b){return"string"==typeof a&&"string"==typeof b?b.localeCompare(a):a>b?-1:b>a?1:0}};b.exports=d},{}],19:[function(a,b,c){"use strict";var d=a("./Overload"),e={addTrigger:function(a,b,c,d){var e,f=this;return e=f._triggerIndexOf(a,b,c),-1===e?(f._trigger=f._trigger||{},f._trigger[b]=f._trigger[b]||{},f._trigger[b][c]=f._trigger[b][c]||[],f._trigger[b][c].push({id:a,method:d,enabled:!0}),!0):!1},removeTrigger:function(a,b,c){var d,e=this;return d=e._triggerIndexOf(a,b,c),d>-1&&e._trigger[b][c].splice(d,1),!1},enableTrigger:new d({string:function(a){var b,c,d,e,f,g=this,h=g._trigger,i=!1;if(h)for(f in h)if(h.hasOwnProperty(f)&&(b=h[f]))for(d in b)if(b.hasOwnProperty(d))for(c=b[d],e=0;e<c.length;e++)c[e].id===a&&(c[e].enabled=!0,i=!0);return i},number:function(a){var b,c,d,e=this,f=e._trigger[a],g=!1;if(f)for(c in f)if(f.hasOwnProperty(c))for(b=f[c],d=0;d<b.length;d++)b[d].enabled=!0,g=!0;return g},"number, number":function(a,b){var c,d,e=this,f=e._trigger[a],g=!1;if(f&&(c=f[b]))for(d=0;d<c.length;d++)c[d].enabled=!0,g=!0;return g},"string, number, number":function(a,b,c){var d=this,e=d._triggerIndexOf(a,b,c);return e>-1?(d._trigger[b][c][e].enabled=!0,!0):!1}}),disableTrigger:new d({string:function(a){var b,c,d,e,f,g=this,h=g._trigger,i=!1;if(h)for(f in h)if(h.hasOwnProperty(f)&&(b=h[f]))for(d in b)if(b.hasOwnProperty(d))for(c=b[d],e=0;e<c.length;e++)c[e].id===a&&(c[e].enabled=!1,i=!0);return i},number:function(a){var b,c,d,e=this,f=e._trigger[a],g=!1;if(f)for(c in f)if(f.hasOwnProperty(c))for(b=f[c],d=0;d<b.length;d++)b[d].enabled=!1,g=!0;return g},"number, number":function(a,b){var c,d,e=this,f=e._trigger[a],g=!1;if(f&&(c=f[b]))for(d=0;d<c.length;d++)c[d].enabled=!1,g=!0;return g},"string, number, number":function(a,b,c){var d=this,e=d._triggerIndexOf(a,b,c);return e>-1?(d._trigger[b][c][e].enabled=!1,!0):!1}}),willTrigger:function(a,b){if(this._trigger&&this._trigger[a]&&this._trigger[a][b]&&this._trigger[a][b].length){var c,d=this._trigger[a][b];for(c=0;c<d.length;c++)if(d[c].enabled)return!0}return!1},processTrigger:function(a,b,c,d,e){var f,g,h,i,j,k=this;if(k._trigger&&k._trigger[b]&&k._trigger[b][c]){for(f=k._trigger[b][c],h=f.length,g=0;h>g;g++)if(i=f[g],i.enabled){if(this.debug()){var l,m;switch(b){case this.TYPE_INSERT:l="insert";break;case this.TYPE_UPDATE:l="update";break;case this.TYPE_REMOVE:l="remove";break;default:l=""}switch(c){case this.PHASE_BEFORE:m="before";break;case this.PHASE_AFTER:m="after";break;default:m=""}}if(j=i.method.call(k,a,d,e),j===!1)return!1;if(void 0!==j&&j!==!0&&j!==!1)throw"ForerunnerDB.Mixin.Triggers: Trigger error: "+j}return!0}},_triggerIndexOf:function(a,b,c){var d,e,f,g=this;if(g._trigger&&g._trigger[b]&&g._trigger[b][c])for(d=g._trigger[b][c],e=d.length,f=0;e>f;f++)if(d[f].id===a)return f;return-1}};b.exports=e},{"./Overload":22}],20:[function(a,b,c){"use strict";var d={_updateProperty:function(a,b,c){a[b]=c,this.debug()&&console.log('ForerunnerDB.Mixin.Updating: Setting non-data-bound document property "'+b+'" for "'+this.name()+'"')},_updateIncrement:function(a,b,c){a[b]+=c},_updateSpliceMove:function(a,b,c){a.splice(c,0,a.splice(b,1)[0]),this.debug()&&console.log('ForerunnerDB.Mixin.Updating: Moving non-data-bound document array index from "'+b+'" to "'+c+'" for "'+this.name()+'"')},_updateSplicePush:function(a,b,c){a.length>b?a.splice(b,0,c):a.push(c)},_updatePush:function(a,b){a.push(b)},_updatePull:function(a,b){a.splice(b,1)},_updateMultiply:function(a,b,c){a[b]*=c},_updateRename:function(a,b,c){a[c]=a[b],delete a[b]},_updateOverwrite:function(a,b,c){a[b]=c},_updateUnset:function(a,b){delete a[b]},_updateClear:function(a,b){var c,d=a[b];if(d&&"object"==typeof d)for(c in d)d.hasOwnProperty(c)&&this._updateUnset(d,c)},_updatePop:function(a,b){var c=!1;return a.length>0&&(1===b?(a.pop(),c=!0):-1===b&&(a.shift(),c=!0)),c}};b.exports=d},{}],21:[function(a,b,c){"use strict";var d=a("./Shared"),e=a("./Path"),f=function(a){this.pathSolver=new e,this.counter=0,this.init.apply(this,arguments)};f.prototype.init=function(a){this._data={operation:a,index:{potential:[],used:!1},steps:[],time:{startMs:0,stopMs:0,totalMs:0,process:{}},flag:{},log:[]}},d.addModule("Operation",f),d.mixin(f.prototype,"Mixin.ChainReactor"),f.prototype.start=function(){this._data.time.startMs=(new Date).getTime()},f.prototype.log=function(a){if(a){var b=this._log.length>0?this._data.log[this._data.log.length-1].time:0,c={event:a,time:(new Date).getTime(),delta:0};return this._data.log.push(c),b&&(c.delta=c.time-b),this}return this._data.log},f.prototype.time=function(a){if(void 0!==a){var b=this._data.time.process,c=b[a]=b[a]||{};return c.startMs?(c.stopMs=(new Date).getTime(),c.totalMs=c.stopMs-c.startMs,c.stepObj.totalMs=c.totalMs,delete c.stepObj):(c.startMs=(new Date).getTime(),c.stepObj={name:a},this._data.steps.push(c.stepObj)),this}return this._data.time},f.prototype.flag=function(a,b){return void 0===a||void 0===b?void 0!==a?this._data.flag[a]:this._data.flag:void(this._data.flag[a]=b)},f.prototype.data=function(a,b,c){return void 0!==b?(this.pathSolver.set(this._data,a,b),this):this.pathSolver.get(this._data,a)},f.prototype.pushData=function(a,b,c){this.pathSolver.push(this._data,a,b)},f.prototype.stop=function(){this._data.time.stopMs=(new Date).getTime(),this._data.time.totalMs=this._data.time.stopMs-this._data.time.startMs},d.finishModule("Operation"),b.exports=f},{"./Path":23,"./Shared":26}],22:[function(a,b,c){"use strict";var d=function(a){if(a){var b,c,d,e,f,g,h=this;if(!(a instanceof Array)){d={};for(b in a)if(a.hasOwnProperty(b))if(e=b.replace(/ /g,""),-1===e.indexOf("*"))d[e]=a[b];else for(g=this.generateSignaturePermutations(e),f=0;f<g.length;f++)d[g[f]]||(d[g[f]]=a[b]);a=d}return function(){var d,e,f,g=[];if(a instanceof Array){for(c=a.length,b=0;c>b;b++)if(a[b].length===arguments.length)return h.callExtend(this,"$main",a,a[b],arguments)}else{for(b=0;b<arguments.length&&(e=typeof arguments[b],"object"===e&&arguments[b]instanceof Array&&(e="array"),1!==arguments.length||"undefined"!==e);b++)g.push(e);if(d=g.join(","),a[d])return h.callExtend(this,"$main",a,a[d],arguments);for(b=g.length;b>=0;b--)if(d=g.slice(0,b).join(","),a[d+",..."])return h.callExtend(this,"$main",a,a[d+",..."],arguments)}throw f="function"==typeof this.name?this.name():"Unknown",'ForerunnerDB.Overload "'+f+'": Overloaded method does not have a matching signature for the passed arguments: '+JSON.stringify(g)}}return function(){}};d.prototype.generateSignaturePermutations=function(a){var b,c,d=[],e=["string","object","number","function","undefined"];if(a.indexOf("*")>-1)for(c=0;c<e.length;c++)b=a.replace("*",e[c]),d=d.concat(this.generateSignaturePermutations(b));else d.push(a);return d},d.prototype.callExtend=function(a,b,c,d,e){var f,g;return a&&c[b]?(f=a[b],a[b]=c[b],g=d.apply(a,e),a[b]=f,g):d.apply(a,e)},b.exports=d},{}],
23:[function(a,b,c){"use strict";var d=a("./Shared"),e=function(a){this.init.apply(this,arguments)};e.prototype.init=function(a){a&&this.path(a)},d.addModule("Path",e),d.mixin(e.prototype,"Mixin.ChainReactor"),e.prototype.path=function(a){return void 0!==a?(this._path=this.clean(a),this._pathParts=this._path.split("."),this):this._path},e.prototype.hasObjectPaths=function(a,b){var c,d=!0;for(c in a)if(a.hasOwnProperty(c)){if(void 0===b[c])return!1;if("object"==typeof a[c]&&(d=this.hasObjectPaths(a[c],b[c]),!d))return!1}return d},e.prototype.countKeys=function(a){var b,c=0;for(b in a)a.hasOwnProperty(b)&&void 0!==a[b]&&("object"!=typeof a[b]?c++:c+=this.countKeys(a[b]));return c},e.prototype.countObjectPaths=function(a,b){var c,d,e={},f=0,g=0;for(d in b)b.hasOwnProperty(d)&&("object"==typeof b[d]?(c=this.countObjectPaths(a[d],b[d]),e[d]=c.matchedKeys,g+=c.totalKeyCount,f+=c.matchedKeyCount):(g++,a&&a[d]&&"object"!=typeof a[d]?(e[d]=!0,f++):e[d]=!1));return{matchedKeys:e,matchedKeyCount:f,totalKeyCount:g}},e.prototype.parse=function(a,b){var c,d,e,f=[],g="";for(d in a)if(a.hasOwnProperty(d))if(g=d,"object"==typeof a[d])if(b)for(c=this.parse(a[d],b),e=0;e<c.length;e++)f.push({path:g+"."+c[e].path,value:c[e].value});else for(c=this.parse(a[d]),e=0;e<c.length;e++)f.push({path:g+"."+c[e].path});else f.push(b?{path:g,value:a[d]}:{path:g});return f},e.prototype.parseArr=function(a,b){return b=b||{},this._parseArr(a,"",[],b)},e.prototype._parseArr=function(a,b,c,d){var e,f="";b=b||"",c=c||[];for(e in a)a.hasOwnProperty(e)&&(!d.ignore||d.ignore&&!d.ignore.test(e))&&(f=b?b+"."+e:e,"object"==typeof a[e]?this._parseArr(a[e],f,c,d):c.push(f));return c},e.prototype.value=function(a,b){if(void 0!==a&&"object"==typeof a){var c,d,e,f,g,h,i,j=[];for(void 0!==b&&(b=this.clean(b),c=b.split(".")),d=c||this._pathParts,e=d.length,f=a,h=0;e>h;h++){if(f=f[d[h]],g instanceof Array){for(i=0;i<g.length;i++)j=j.concat(this.value(g,i+"."+d[h]));return j}if(!f||"object"!=typeof f)break;g=f}return[f]}return[]},e.prototype.set=function(a,b,c){if(void 0!==a&&void 0!==b){var d,e;b=this.clean(b),d=b.split("."),e=d.shift(),d.length?(a[e]=a[e]||{},this.set(a[e],d.join("."),c)):a[e]=c}return a},e.prototype.get=function(a,b){return this.value(a,b)[0]},e.prototype.push=function(a,b,c){if(void 0!==a&&void 0!==b){var d,e;if(b=this.clean(b),d=b.split("."),e=d.shift(),d.length)a[e]=a[e]||{},this.set(a[e],d.join("."),c);else{if(a[e]=a[e]||[],!(a[e]instanceof Array))throw"ForerunnerDB.Path: Cannot push to a path whose endpoint is not an array!";a[e].push(c)}}return a},e.prototype.keyValue=function(a,b){var c,d,e,f,g,h,i;for(void 0!==b&&(b=this.clean(b),c=b.split(".")),d=c||this._pathParts,e=d.length,f=a,i=0;e>i;i++){if(f=f[d[i]],!f||"object"!=typeof f){h=d[i]+":"+f;break}g=f}return h},e.prototype.clean=function(a){return"."===a.substr(0,1)&&(a=a.substr(1,a.length-1)),a},d.finishModule("Path"),b.exports=e},{"./Shared":26}],24:[function(a,b,c){"use strict";var d,e,f,g,h,i,j,k,l,m=a("./Shared"),n=a("localforage");k=function(){this.init.apply(this,arguments)},k.prototype.init=function(a){a.isClient()&&void 0!==window.Storage&&(this.mode("localforage"),n.config({driver:[n.INDEXEDDB,n.WEBSQL,n.LOCALSTORAGE],name:String(a.core().name()),storeName:"FDB"}))},m.addModule("Persist",k),m.mixin(k.prototype,"Mixin.ChainReactor"),d=m.modules.Db,e=a("./Collection"),f=e.prototype.drop,g=a("./CollectionGroup"),h=e.prototype.init,i=d.prototype.init,j=d.prototype.drop,l=m.overload,k.prototype.mode=function(a){return void 0!==a?(this._mode=a,this):this._mode},k.prototype.driver=function(a){if(void 0!==a){switch(a.toUpperCase()){case"LOCALSTORAGE":n.setDriver(n.LOCALSTORAGE);break;case"WEBSQL":n.setDriver(n.WEBSQL);break;case"INDEXEDDB":n.setDriver(n.INDEXEDDB);break;default:throw"ForerunnerDB.Persist: The persistence driver you have specified is not found. Please use either IndexedDB, WebSQL or LocalStorage!"}return this}return n.driver()},k.prototype.save=function(a,b,c){var d;switch(d=function(a,b){a="object"==typeof a?"json::fdb::"+JSON.stringify(a):"raw::fdb::"+a,b&&b(!1,a)},this.mode()){case"localforage":d(b,function(b,d){n.setItem(a,d).then(function(a){c&&c(!1,a)},function(a){c&&c(a)})});break;default:c&&c("No data handler.")}},k.prototype.load=function(a,b){var c,d,e;switch(e=function(a,b){if(a){switch(c=a.split("::fdb::"),c[0]){case"json":d=JSON.parse(c[1]);break;case"raw":d=c[1]}b&&b(!1,d,{foundData:!0,rowCount:d.length})}else b&&b(!1,a,{foundData:!1,rowCount:0})},this.mode()){case"localforage":n.getItem(a).then(function(a){e(a,b)},function(a){b&&b(a)});break;default:b&&b("No data handler or unrecognised data type.")}},k.prototype.drop=function(a,b){switch(this.mode()){case"localforage":n.removeItem(a).then(function(){b&&b(!1)},function(a){b&&b(a)});break;default:b&&b("No data handler or unrecognised data type.")}},e.prototype.drop=new l({"":function(){"dropped"!==this._state&&this.drop(!0)},"function":function(a){"dropped"!==this._state&&this.drop(!0,a)},"boolean":function(a){if("dropped"!==this._state){if(a){if(!this._name)throw"ForerunnerDB.Persist: Cannot drop a collection's persistent storage when no name assigned to collection!";if(!this._db)throw"ForerunnerDB.Persist: Cannot drop a collection's persistent storage when the collection is not attached to a database!";this._db.persist.drop(this._db._name+"::"+this._name)}f.apply(this)}},"boolean, function":function(a,b){"dropped"!==this._state&&(a&&(this._name?this._db?this._db.persist.drop(this._db._name+"::"+this._name,b):b&&b("Cannot drop a collection's persistent storage when the collection is not attached to a database!"):b&&b("Cannot drop a collection's persistent storage when no name assigned to collection!")),f.apply(this,b))}}),e.prototype.save=function(a){this._name?this._db?this._db.persist.save(this._db._name+"::"+this._name,this._data,a):a&&a("Cannot save a collection that is not attached to a database!"):a&&a("Cannot save a collection with no assigned name!")},e.prototype.load=function(a){var b=this;this._name?this._db?this._db.persist.load(this._db._name+"::"+this._name,function(c,d){c?a&&a(c):(d&&b.setData(d),a&&a(!1))}):a&&a("Cannot load a collection that is not attached to a database!"):a&&a("Cannot load a collection with no assigned name!")},d.prototype.init=function(){i.apply(this,arguments),this.persist=new k(this)},d.prototype.load=function(a){var b,c,d=this._collection,e=d.keys(),f=e.length;b=function(b){b?a&&a(b):(f--,0===f&&a&&a(!1))};for(c in d)d.hasOwnProperty(c)&&d[c].load(b)},d.prototype.save=function(a){var b,c,d=this._collection,e=d.keys(),f=e.length;b=function(b){b?a&&a(b):(f--,0===f&&a&&a(!1))};for(c in d)d.hasOwnProperty(c)&&d[c].save(b)},m.finishModule("Persist"),b.exports=k},{"./Collection":3,"./CollectionGroup":4,"./Shared":26,localforage:35}],25:[function(a,b,c){"use strict";var d=a("./Shared"),e=function(a,b,c){if(!(a&&b&&c))throw"ForerunnerDB.ReactorIO: ReactorIO requires in, out and process arguments to instantiate!";if(this._reactorIn=a,this._reactorOut=b,this._chainHandler=c,!a.chain||!b.chainReceive)throw"ForerunnerDB.ReactorIO: ReactorIO requires passed in and out objects to implement the ChainReactor mixin!";a.chain(this),this.chain(b)};d.addModule("ReactorIO",e),e.prototype.drop=function(){return"dropped"!==this._state&&(this._state="dropped",this._reactorIn&&this._reactorIn.unChain(this),this._reactorOut&&this.unChain(this._reactorOut),delete this._reactorIn,delete this._reactorOut,delete this._chainHandler,this.emit("drop",this)),!0},d.synthesize(e.prototype,"state"),d.mixin(e.prototype,"Mixin.ChainReactor"),d.mixin(e.prototype,"Mixin.Events"),d.finishModule("ReactorIO"),b.exports=e},{"./Shared":26}],26:[function(a,b,c){"use strict";var d={version:"1.3.62",modules:{},_synth:{},addModule:function(a,b){this.modules[a]=b,this.emit("moduleLoad",[a,b])},finishModule:function(a){if(!this.modules[a])throw"ForerunnerDB.Shared: finishModule called on a module that has not been registered with addModule(): "+a;this.modules[a]._fdbFinished=!0,this.emit("moduleFinished",[a,this.modules[a]])},moduleFinished:function(a,b){this.modules[a]&&this.modules[a]._fdbFinished?b&&b(a,this.modules[a]):this.on("moduleFinished",b)},moduleExists:function(a){return Boolean(this.modules[a])},mixin:function(a,b){var c=this.mixins[b];if(!c)throw"ForerunnerDB.Shared: Cannot find mixin named: "+b;for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])},synthesize:function(a,b,c){if(this._synth[b]=this._synth[b]||function(a){return void 0!==a?(this["_"+b]=a,this):this["_"+b]},c){var d=this;a[b]=function(){var a,e=this.$super;return this.$super=d._synth[b],a=c.apply(this,arguments),this.$super=e,a}}else a[b]=this._synth[b]},overload:a("./Overload"),mixins:{"Mixin.Common":a("./Mixin.Common"),"Mixin.Events":a("./Mixin.Events"),"Mixin.ChainReactor":a("./Mixin.ChainReactor"),"Mixin.CRUD":a("./Mixin.CRUD"),"Mixin.Constants":a("./Mixin.Constants"),"Mixin.Triggers":a("./Mixin.Triggers"),"Mixin.Sorting":a("./Mixin.Sorting"),"Mixin.Matching":a("./Mixin.Matching"),"Mixin.Updating":a("./Mixin.Updating")}};d.mixin(d,"Mixin.Events"),b.exports=d},{"./Mixin.CRUD":12,"./Mixin.ChainReactor":13,"./Mixin.Common":14,"./Mixin.Constants":15,"./Mixin.Events":16,"./Mixin.Matching":17,"./Mixin.Sorting":18,"./Mixin.Triggers":19,"./Mixin.Updating":20,"./Overload":22}],27:[function(a,b,c){Array.prototype.filter||(Array.prototype.filter=function(a){if(void 0===this||null===this)throw new TypeError;var b=Object(this),c=b.length>>>0;if("function"!=typeof a)throw new TypeError;for(var d=[],e=arguments.length>=2?arguments[1]:void 0,f=0;c>f;f++)if(f in b){var g=b[f];a.call(e,g,f,b)&&d.push(g)}return d}),"function"!=typeof Object.create&&(Object.create=function(){var a=function(){};return function(b){if(arguments.length>1)throw Error("Second argument not supported");if("object"!=typeof b)throw TypeError("Argument must be an object");a.prototype=b;var c=new a;return a.prototype=null,c}}()),Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){var c;if(null===this)throw new TypeError('"this" is null or not defined');var d=Object(this),e=d.length>>>0;if(0===e)return-1;var f=+b||0;if(Math.abs(f)===1/0&&(f=0),f>=e)return-1;for(c=Math.max(f>=0?f:e-Math.abs(f),0);e>c;){if(c in d&&d[c]===a)return c;c++}return-1}),b.exports={}},{}],28:[function(a,b,c){function d(){if(!h){h=!0;for(var a,b=g.length;b;){a=g,g=[];for(var c=-1;++c<b;)a[c]();b=g.length}h=!1}}function e(){}var f=b.exports={},g=[],h=!1;f.nextTick=function(a){g.push(a),h||setTimeout(d,0)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=e,f.addListener=e,f.once=e,f.off=e,f.removeListener=e,f.removeAllListeners=e,f.emit=e,f.binding=function(a){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(a){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},{}],29:[function(a,b,c){"use strict";function d(a){function b(a){return null===j?void l.push(a):void g(function(){var b=j?a.onFulfilled:a.onRejected;if(null===b)return void(j?a.resolve:a.reject)(k);var c;try{c=b(k)}catch(d){return void a.reject(d)}a.resolve(c)})}function c(a){try{if(a===m)throw new TypeError("A promise cannot be resolved with itself.");if(a&&("object"==typeof a||"function"==typeof a)){var b=a.then;if("function"==typeof b)return void f(b.bind(a),c,h)}j=!0,k=a,i()}catch(d){h(d)}}function h(a){j=!1,k=a,i()}function i(){for(var a=0,c=l.length;c>a;a++)b(l[a]);l=null}if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof a)throw new TypeError("not a function");var j=null,k=null,l=[],m=this;this.then=function(a,c){return new d(function(d,f){b(new e(a,c,d,f))})},f(a,c,h)}function e(a,b,c,d){this.onFulfilled="function"==typeof a?a:null,this.onRejected="function"==typeof b?b:null,this.resolve=c,this.reject=d}function f(a,b,c){var d=!1;try{a(function(a){d||(d=!0,b(a))},function(a){d||(d=!0,c(a))})}catch(e){if(d)return;d=!0,c(e)}}var g=a("asap");b.exports=d},{asap:31}],30:[function(a,b,c){"use strict";function d(a){this.then=function(b){return"function"!=typeof b?this:new e(function(c,d){f(function(){try{c(b(a))}catch(e){d(e)}})})}}var e=a("./core.js"),f=a("asap");b.exports=e,d.prototype=Object.create(e.prototype);var g=new d(!0),h=new d(!1),i=new d(null),j=new d(void 0),k=new d(0),l=new d("");e.resolve=function(a){if(a instanceof e)return a;if(null===a)return i;if(void 0===a)return j;if(a===!0)return g;if(a===!1)return h;if(0===a)return k;if(""===a)return l;if("object"==typeof a||"function"==typeof a)try{var b=a.then;if("function"==typeof b)return new e(b.bind(a))}catch(c){return new e(function(a,b){b(c)})}return new d(a)},e.from=e.cast=function(a){var b=new Error("Promise.from and Promise.cast are deprecated, use Promise.resolve instead");return b.name="Warning",console.warn(b.stack),e.resolve(a)},e.denodeify=function(a,b){return b=b||1/0,function(){var c=this,d=Array.prototype.slice.call(arguments);return new e(function(e,f){for(;d.length&&d.length>b;)d.pop();d.push(function(a,b){a?f(a):e(b)}),a.apply(c,d)})}},e.nodeify=function(a){return function(){var b=Array.prototype.slice.call(arguments),c="function"==typeof b[b.length-1]?b.pop():null;try{return a.apply(this,arguments).nodeify(c)}catch(d){if(null===c||"undefined"==typeof c)return new e(function(a,b){b(d)});f(function(){c(d)})}}},e.all=function(){var a=1===arguments.length&&Array.isArray(arguments[0]),b=Array.prototype.slice.call(a?arguments[0]:arguments);if(!a){var c=new Error("Promise.all should be called with a single array, calling it with multiple arguments is deprecated");c.name="Warning",console.warn(c.stack)}return new e(function(a,c){function d(f,g){try{if(g&&("object"==typeof g||"function"==typeof g)){var h=g.then;if("function"==typeof h)return void h.call(g,function(a){d(f,a)},c)}b[f]=g,0===--e&&a(b)}catch(i){c(i)}}if(0===b.length)return a([]);for(var e=b.length,f=0;f<b.length;f++)d(f,b[f])})},e.reject=function(a){return new e(function(b,c){c(a)})},e.race=function(a){return new e(function(b,c){a.forEach(function(a){e.resolve(a).then(b,c)})})},e.prototype.done=function(a,b){var c=arguments.length?this.then.apply(this,arguments):this;c.then(null,function(a){f(function(){throw a})})},e.prototype.nodeify=function(a){return"function"!=typeof a?this:void this.then(function(b){f(function(){a(null,b)})},function(b){f(function(){a(b)})})},e.prototype["catch"]=function(a){return this.then(null,a)}},{"./core.js":29,asap:31}],31:[function(a,b,c){(function(a){function c(){for(;e.next;){e=e.next;var a=e.task;e.task=void 0;var b=e.domain;b&&(e.domain=void 0,b.enter());try{a()}catch(d){if(i)throw b&&b.exit(),setTimeout(c,0),b&&b.enter(),d;setTimeout(function(){throw d},0)}b&&b.exit()}g=!1}function d(b){f=f.next={task:b,domain:i&&a.domain,next:null},g||(g=!0,h())}var e={task:void 0,next:null},f=e,g=!1,h=void 0,i=!1;if("undefined"!=typeof a&&a.nextTick)i=!0,h=function(){a.nextTick(c)};else if("function"==typeof setImmediate)h="undefined"!=typeof window?setImmediate.bind(window,c):function(){setImmediate(c)};else if("undefined"!=typeof MessageChannel){var j=new MessageChannel;j.port1.onmessage=c,h=function(){j.port2.postMessage(0)}}else h=function(){setTimeout(c,0)};b.exports=d}).call(this,a("_process"))},{_process:28}],32:[function(a,b,c){(function(){"use strict";function c(a){var b=this,c={db:null};if(a)for(var d in a)c[d]=a[d];return new m(function(a,d){var e=n.open(c.name,c.version);e.onerror=function(){d(e.error)},e.onupgradeneeded=function(){e.result.createObjectStore(c.storeName)},e.onsuccess=function(){c.db=e.result,b._dbInfo=c,a()}})}function d(a,b){var c=this;"string"!=typeof a&&(window.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new m(function(b,d){c.ready().then(function(){var e=c._dbInfo,f=e.db.transaction(e.storeName,"readonly").objectStore(e.storeName),g=f.get(a);g.onsuccess=function(){var a=g.result;void 0===a&&(a=null),b(a)},g.onerror=function(){d(g.error)}})["catch"](d)});return l(d,b),d}function e(a,b){var c=this,d=new m(function(b,d){c.ready().then(function(){var e=c._dbInfo,f=e.db.transaction(e.storeName,"readonly").objectStore(e.storeName),g=f.openCursor(),h=1;g.onsuccess=function(){var c=g.result;if(c){var d=a(c.value,c.key,h++);void 0!==d?b(d):c["continue"]()}else b()},g.onerror=function(){d(g.error)}})["catch"](d)});return l(d,b),d}function f(a,b,c){var d=this;"string"!=typeof a&&(window.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new m(function(c,e){d.ready().then(function(){var f=d._dbInfo,g=f.db.transaction(f.storeName,"readwrite"),h=g.objectStore(f.storeName);null===b&&(b=void 0);var i=h.put(b,a);g.oncomplete=function(){void 0===b&&(b=null),c(b)},g.onabort=g.onerror=function(){var a=i.error?i.error:i.transaction.error;e(a)}})["catch"](e)});return l(e,c),e}function g(a,b){var c=this;"string"!=typeof a&&(window.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new m(function(b,d){c.ready().then(function(){var e=c._dbInfo,f=e.db.transaction(e.storeName,"readwrite"),g=f.objectStore(e.storeName),h=g["delete"](a);f.oncomplete=function(){b()},f.onerror=function(){d(h.error)},f.onabort=function(){var a=h.error?h.error:h.transaction.error;d(a)}})["catch"](d)});return l(d,b),d}function h(a){var b=this,c=new m(function(a,c){b.ready().then(function(){var d=b._dbInfo,e=d.db.transaction(d.storeName,"readwrite"),f=e.objectStore(d.storeName),g=f.clear();e.oncomplete=function(){a()},e.onabort=e.onerror=function(){var a=g.error?g.error:g.transaction.error;c(a)}})["catch"](c)});return l(c,a),c}function i(a){var b=this,c=new m(function(a,c){b.ready().then(function(){var d=b._dbInfo,e=d.db.transaction(d.storeName,"readonly").objectStore(d.storeName),f=e.count();f.onsuccess=function(){a(f.result)},f.onerror=function(){c(f.error)}})["catch"](c)});return l(c,a),c}function j(a,b){var c=this,d=new m(function(b,d){return 0>a?void b(null):void c.ready().then(function(){var e=c._dbInfo,f=e.db.transaction(e.storeName,"readonly").objectStore(e.storeName),g=!1,h=f.openCursor();h.onsuccess=function(){var c=h.result;return c?void(0===a?b(c.key):g?b(c.key):(g=!0,c.advance(a))):void b(null)},h.onerror=function(){d(h.error)}})["catch"](d)});return l(d,b),d}function k(a){var b=this,c=new m(function(a,c){b.ready().then(function(){var d=b._dbInfo,e=d.db.transaction(d.storeName,"readonly").objectStore(d.storeName),f=e.openCursor(),g=[];f.onsuccess=function(){var b=f.result;return b?(g.push(b.key),void b["continue"]()):void a(g)},f.onerror=function(){c(f.error)}})["catch"](c)});return l(c,a),c}function l(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var m="undefined"!=typeof b&&b.exports&&"undefined"!=typeof a?a("promise"):this.Promise,n=n||this.indexedDB||this.webkitIndexedDB||this.mozIndexedDB||this.OIndexedDB||this.msIndexedDB;if(n){var o={_driver:"asyncStorage",_initStorage:c,iterate:e,getItem:d,setItem:f,removeItem:g,clear:h,length:i,key:j,keys:k};"undefined"!=typeof b&&b.exports&&"undefined"!=typeof a?b.exports=o:"function"==typeof define&&define.amd?define("asyncStorage",function(){return o}):this.asyncStorage=o}}).call(window)},{promise:30}],33:[function(a,b,c){(function(){"use strict";function c(b){var c=this,d={};if(b)for(var e in b)d[e]=b[e];d.keyPrefix=d.name+"/",c._dbInfo=d;var f=new m(function(b){s===r.DEFINE?a(["localforageSerializer"],b):b(s===r.EXPORT?a("./../utils/serializer"):n.localforageSerializer)});return f.then(function(a){return o=a,m.resolve()})}function d(a){var b=this,c=b.ready().then(function(){for(var a=b._dbInfo.keyPrefix,c=p.length-1;c>=0;c--){var d=p.key(c);0===d.indexOf(a)&&p.removeItem(d)}});return l(c,a),c}function e(a,b){var c=this;"string"!=typeof a&&(window.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=c.ready().then(function(){var b=c._dbInfo,d=p.getItem(b.keyPrefix+a);return d&&(d=o.deserialize(d)),d});return l(d,b),d}function f(a,b){var c=this,d=c.ready().then(function(){for(var b=c._dbInfo.keyPrefix,d=b.length,e=p.length,f=0;e>f;f++){var g=p.key(f),h=p.getItem(g);if(h&&(h=o.deserialize(h)),h=a(h,g.substring(d),f+1),void 0!==h)return h}});return l(d,b),d}function g(a,b){var c=this,d=c.ready().then(function(){var b,d=c._dbInfo;try{b=p.key(a)}catch(e){b=null}return b&&(b=b.substring(d.keyPrefix.length)),b});return l(d,b),d}function h(a){var b=this,c=b.ready().then(function(){for(var a=b._dbInfo,c=p.length,d=[],e=0;c>e;e++)0===p.key(e).indexOf(a.keyPrefix)&&d.push(p.key(e).substring(a.keyPrefix.length));return d});return l(c,a),c}function i(a){var b=this,c=b.keys().then(function(a){return a.length});return l(c,a),c}function j(a,b){var c=this;"string"!=typeof a&&(window.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=c.ready().then(function(){var b=c._dbInfo;p.removeItem(b.keyPrefix+a)});return l(d,b),d}function k(a,b,c){var d=this;"string"!=typeof a&&(window.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=d.ready().then(function(){void 0===b&&(b=null);var c=b;return new m(function(e,f){o.serialize(b,function(b,g){if(g)f(g);else try{var h=d._dbInfo;p.setItem(h.keyPrefix+a,b),e(c)}catch(i){("QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&f(i),f(i)}})})});return l(e,c),e}function l(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var m="undefined"!=typeof b&&b.exports&&"undefined"!=typeof a?a("promise"):this.Promise,n=this,o=null,p=null;try{if(!(this.localStorage&&"setItem"in this.localStorage))return;p=this.localStorage}catch(q){return}var r={DEFINE:1,EXPORT:2,WINDOW:3},s=r.WINDOW;"undefined"!=typeof b&&b.exports&&"undefined"!=typeof a?s=r.EXPORT:"function"==typeof define&&define.amd&&(s=r.DEFINE);var t={_driver:"localStorageWrapper",_initStorage:c,iterate:f,getItem:e,setItem:k,removeItem:j,clear:d,length:i,key:g,keys:h};s===r.EXPORT?b.exports=t:s===r.DEFINE?define("localStorageWrapper",function(){return t}):this.localStorageWrapper=t}).call(window)},{"./../utils/serializer":36,promise:30}],34:[function(a,b,c){(function(){"use strict";function c(b){var c=this,d={db:null};if(b)for(var e in b)d[e]="string"!=typeof b[e]?b[e].toString():b[e];var f=new m(function(b){r===q.DEFINE?a(["localforageSerializer"],b):b(r===q.EXPORT?a("./../utils/serializer"):n.localforageSerializer)}),g=new m(function(a,e){try{d.db=p(d.name,String(d.version),d.description,d.size)}catch(f){return c.setDriver(c.LOCALSTORAGE).then(function(){return c._initStorage(b)}).then(a)["catch"](e)}d.db.transaction(function(b){b.executeSql("CREATE TABLE IF NOT EXISTS "+d.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){c._dbInfo=d,a()},function(a,b){e(b)})})});return f.then(function(a){return o=a,g})}function d(a,b){var c=this;"string"!=typeof a&&(window.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new m(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.storeName+" WHERE key = ? LIMIT 1",[a],function(a,c){var d=c.rows.length?c.rows.item(0).value:null;d&&(d=o.deserialize(d)),b(d)},function(a,b){d(b)})})})["catch"](d)});return l(d,b),d}function e(a,b){var c=this,d=new m(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.storeName,[],function(c,d){for(var e=d.rows,f=e.length,g=0;f>g;g++){var h=e.item(g),i=h.value;if(i&&(i=o.deserialize(i)),i=a(i,h.key,g+1),void 0!==i)return void b(i)}b()},function(a,b){d(b)})})})["catch"](d)});return l(d,b),d}function f(a,b,c){var d=this;"string"!=typeof a&&(window.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new m(function(c,e){d.ready().then(function(){void 0===b&&(b=null);var f=b;o.serialize(b,function(b,g){if(g)e(g);else{var h=d._dbInfo;h.db.transaction(function(d){d.executeSql("INSERT OR REPLACE INTO "+h.storeName+" (key, value) VALUES (?, ?)",[a,b],function(){c(f)},function(a,b){e(b)})},function(a){a.code===a.QUOTA_ERR&&e(a)})}})})["catch"](e)});return l(e,c),e}function g(a,b){var c=this;"string"!=typeof a&&(window.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new m(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){c.executeSql("DELETE FROM "+e.storeName+" WHERE key = ?",[a],function(){b()},function(a,b){d(b)})})})["catch"](d)});return l(d,b),d}function h(a){var b=this,c=new m(function(a,c){b.ready().then(function(){var d=b._dbInfo;d.db.transaction(function(b){b.executeSql("DELETE FROM "+d.storeName,[],function(){a()},function(a,b){c(b)})})})["catch"](c)});return l(c,a),c}function i(a){var b=this,c=new m(function(a,c){b.ready().then(function(){var d=b._dbInfo;d.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+d.storeName,[],function(b,c){var d=c.rows.item(0).c;a(d)},function(a,b){c(b)})})})["catch"](c)});return l(c,a),c}function j(a,b){var c=this,d=new m(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){c.executeSql("SELECT key FROM "+e.storeName+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var d=c.rows.length?c.rows.item(0).key:null;b(d)},function(a,b){d(b)})})})["catch"](d)});return l(d,b),d}function k(a){var b=this,c=new m(function(a,c){b.ready().then(function(){var d=b._dbInfo;d.db.transaction(function(b){b.executeSql("SELECT key FROM "+d.storeName,[],function(b,c){for(var d=[],e=0;e<c.rows.length;e++)d.push(c.rows.item(e).key);a(d)},function(a,b){c(b)})})})["catch"](c)});return l(c,a),c}function l(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var m="undefined"!=typeof b&&b.exports&&"undefined"!=typeof a?a("promise"):this.Promise,n=this,o=null,p=this.openDatabase;if(p){var q={DEFINE:1,EXPORT:2,WINDOW:3},r=q.WINDOW;"undefined"!=typeof b&&b.exports&&"undefined"!=typeof a?r=q.EXPORT:"function"==typeof define&&define.amd&&(r=q.DEFINE);var s={_driver:"webSQLStorage",_initStorage:c,iterate:e,getItem:d,setItem:f,removeItem:g,clear:h,length:i,key:j,keys:k};r===q.DEFINE?define("webSQLStorage",function(){return s}):r===q.EXPORT?b.exports=s:this.webSQLStorage=s}}).call(window)},{"./../utils/serializer":36,promise:30}],35:[function(a,b,c){(function(){"use strict";function c(a,b){a[b]=function(){var c=arguments;return a.ready().then(function(){return a[b].apply(a,c)})}}function d(){for(var a=1;a<arguments.length;a++){var b=arguments[a];if(b)for(var c in b)b.hasOwnProperty(c)&&(p(b[c])?arguments[0][c]=b[c].slice():arguments[0][c]=b[c])}return arguments[0]}function e(a){for(var b in i)if(i.hasOwnProperty(b)&&i[b]===a)return!0;return!1}function f(a){this._config=d({},m,a),this._driverSet=null,this._ready=!1,this._dbInfo=null;for(var b=0;b<k.length;b++)c(this,k[b]);this.setDriver(this._config.driver)}var g="undefined"!=typeof b&&b.exports&&"undefined"!=typeof a?a("promise"):this.Promise,h={},i={INDEXEDDB:"asyncStorage",LOCALSTORAGE:"localStorageWrapper",WEBSQL:"webSQLStorage"},j=[i.INDEXEDDB,i.WEBSQL,i.LOCALSTORAGE],k=["clear","getItem","iterate","key","keys","length","removeItem","setItem"],l={DEFINE:1,EXPORT:2,WINDOW:3},m={description:"",driver:j.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1},n=l.WINDOW;"undefined"!=typeof b&&b.exports&&"undefined"!=typeof a?n=l.EXPORT:"function"==typeof define&&define.amd&&(n=l.DEFINE);var o=function(a){var b=b||a.indexedDB||a.webkitIndexedDB||a.mozIndexedDB||a.OIndexedDB||a.msIndexedDB,c={};return c[i.WEBSQL]=!!a.openDatabase,c[i.INDEXEDDB]=!!function(){if("undefined"!=typeof a.openDatabase&&a.navigator&&a.navigator.userAgent&&/Safari/.test(a.navigator.userAgent)&&!/Chrome/.test(a.navigator.userAgent))return!1;try{return b&&"function"==typeof b.open&&"undefined"!=typeof a.IDBKeyRange}catch(c){return!1}}(),c[i.LOCALSTORAGE]=!!function(){try{return a.localStorage&&"setItem"in a.localStorage&&a.localStorage.setItem}catch(b){return!1}}(),c}(this),p=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)},q=this;f.prototype.INDEXEDDB=i.INDEXEDDB,f.prototype.LOCALSTORAGE=i.LOCALSTORAGE,f.prototype.WEBSQL=i.WEBSQL,f.prototype.config=function(a){if("object"==typeof a){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var b in a)"storeName"===b&&(a[b]=a[b].replace(/\W/g,"_")),this._config[b]=a[b];return"driver"in a&&a.driver&&this.setDriver(this._config.driver),!0}return"string"==typeof a?this._config[a]:this._config},f.prototype.defineDriver=function(a,b,c){var d=new g(function(b,c){try{var d=a._driver,f=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver"),i=new Error("Custom driver name already in use: "+a._driver);if(!a._driver)return void c(f);if(e(a._driver))return void c(i);for(var j=k.concat("_initStorage"),l=0;l<j.length;l++){var m=j[l];if(!m||!a[m]||"function"!=typeof a[m])return void c(f)}var n=g.resolve(!0);"_support"in a&&(n=a._support&&"function"==typeof a._support?a._support():g.resolve(!!a._support)),n.then(function(c){o[d]=c,h[d]=a,b()},c)}catch(p){c(p)}});return d.then(b,c),d},f.prototype.driver=function(){return this._driver||null},f.prototype.ready=function(a){var b=this,c=new g(function(a,c){b._driverSet.then(function(){null===b._ready&&(b._ready=b._initStorage(b._config)),b._ready.then(a,c)})["catch"](c)});return c.then(a,a),c},f.prototype.setDriver=function(b,c,d){function f(){i._config.driver=i.driver()}var i=this;return"string"==typeof b&&(b=[b]),this._driverSet=new g(function(c,d){var f=i._getFirstSupportedDriver(b),j=new Error("No available storage method found.");if(!f)return i._driverSet=g.reject(j),void d(j);if(i._dbInfo=null,i._ready=null,e(f)){var k=new g(function(b){if(n===l.DEFINE)a([f],b);else if(n===l.EXPORT)switch(f){case i.INDEXEDDB:b(a("./drivers/indexeddb"));break;case i.LOCALSTORAGE:b(a("./drivers/localstorage"));break;case i.WEBSQL:b(a("./drivers/websql"))}else b(q[f])});k.then(function(a){i._extend(a),c()})}else h[f]?(i._extend(h[f]),c()):(i._driverSet=g.reject(j),d(j))}),this._driverSet.then(f,f),this._driverSet.then(c,d),this._driverSet},f.prototype.supports=function(a){return!!o[a]},f.prototype._extend=function(a){d(this,a)},f.prototype._getFirstSupportedDriver=function(a){if(a&&p(a))for(var b=0;b<a.length;b++){var c=a[b];if(this.supports(c))return c}return null},f.prototype.createInstance=function(a){return new f(a)};var r=new f;n===l.DEFINE?define("localforage",function(){return r}):n===l.EXPORT?b.exports=r:this.localforage=r}).call(window)},{"./drivers/indexeddb":32,"./drivers/localstorage":33,"./drivers/websql":34,promise:30}],36:[function(a,b,c){(function(){"use strict";function c(a,b){var c="";if(a&&(c=a.toString()),a&&("[object ArrayBuffer]"===a.toString()||a.buffer&&"[object ArrayBuffer]"===a.buffer.toString())){var d,e=h;a instanceof ArrayBuffer?(d=a,e+=j):(d=a.buffer,"[object Int8Array]"===c?e+=l:"[object Uint8Array]"===c?e+=m:"[object Uint8ClampedArray]"===c?e+=n:"[object Int16Array]"===c?e+=o:"[object Uint16Array]"===c?e+=q:"[object Int32Array]"===c?e+=p:"[object Uint32Array]"===c?e+=r:"[object Float32Array]"===c?e+=s:"[object Float64Array]"===c?e+=t:b(new Error("Failed to get type for BinaryArray"))),b(e+f(d))}else if("[object Blob]"===c){var g=new FileReader;g.onload=function(){var a=f(this.result);b(h+k+a)},g.readAsArrayBuffer(a)}else try{b(JSON.stringify(a))}catch(i){window.console.error("Couldn't convert value into a JSON string: ",a),b(null,i)}}function d(a){if(a.substring(0,i)!==h)return JSON.parse(a);var b=a.substring(u),c=a.substring(i,u),d=e(b);switch(c){case j:return d;case k:return new Blob([d]);case l:return new Int8Array(d);case m:return new Uint8Array(d);case n:return new Uint8ClampedArray(d);case o:return new Int16Array(d);case q:return new Uint16Array(d);case p:return new Int32Array(d);case r:return new Uint32Array(d);case s:return new Float32Array(d);case t:return new Float64Array(d);default:throw new Error("Unkown type: "+c)}}function e(a){var b,c,d,e,f,h=.75*a.length,i=a.length,j=0;"="===a[a.length-1]&&(h--,
"="===a[a.length-2]&&h--);var k=new ArrayBuffer(h),l=new Uint8Array(k);for(b=0;i>b;b+=4)c=g.indexOf(a[b]),d=g.indexOf(a[b+1]),e=g.indexOf(a[b+2]),f=g.indexOf(a[b+3]),l[j++]=c<<2|d>>4,l[j++]=(15&d)<<4|e>>2,l[j++]=(3&e)<<6|63&f;return k}function f(a){var b,c=new Uint8Array(a),d="";for(b=0;b<c.length;b+=3)d+=g[c[b]>>2],d+=g[(3&c[b])<<4|c[b+1]>>4],d+=g[(15&c[b+1])<<2|c[b+2]>>6],d+=g[63&c[b+2]];return c.length%3===2?d=d.substring(0,d.length-1)+"=":c.length%3===1&&(d=d.substring(0,d.length-2)+"=="),d}var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="__lfsc__:",i=h.length,j="arbf",k="blob",l="si08",m="ui08",n="uic8",o="si16",p="si32",q="ur16",r="ui32",s="fl32",t="fl64",u=i+j.length,v={serialize:c,deserialize:d,stringToBuffer:e,bufferToString:f};"undefined"!=typeof b&&b.exports&&"undefined"!=typeof a?b.exports=v:"function"==typeof define&&define.amd?define("localforageSerializer",function(){return v}):this.localforageSerializer=v}).call(window)},{}]},{},[2]);
|
ajax/libs/recharts/1.0.0-alpha.4/Recharts.min.js
|
ahocevar/cdnjs
|
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("prop-types"),require("react"),require("react-transition-group")):"function"==typeof define&&define.amd?define(["prop-types","react","react-transition-group"],t):"object"==typeof exports?exports.Recharts=t(require("prop-types"),require("react"),require("react-transition-group")):e.Recharts=t(e.PropTypes,e.React,e.ReactTransitionGroup)}(this,function(e,t,n){return function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=415)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}n.d(t,"m",function(){return x}),n.d(t,"n",function(){return _}),n.d(t,"o",function(){return O}),n.d(t,"q",function(){return A}),n.d(t,"b",function(){return k}),n.d(t,"c",function(){return T}),n.d(t,"a",function(){return M}),n.d(t,"e",function(){return E}),n.d(t,"g",function(){return S}),n.d(t,"p",function(){return j}),n.d(t,"h",function(){return C}),n.d(t,"k",function(){return N}),n.d(t,"l",function(){return L}),n.d(t,"d",function(){return B}),n.d(t,"i",function(){return z}),n.d(t,"j",function(){return W}),n.d(t,"f",function(){return F});var a=n(12),i=n.n(a),o=n(98),u=n.n(o),s=n(25),c=n.n(s),l=n(5),f=n.n(l),h=n(11),p=n.n(h),d=n(1),y=n.n(d),v=n(0),m=n.n(v),b=n(6),g=n(3),x={alignmentBaseline:m.a.string,angle:m.a.number,baselineShift:m.a.string,clip:m.a.string,clipPath:m.a.string,clipRule:m.a.string,color:m.a.string,colorInterpolation:m.a.string,colorInterpolationFilters:m.a.string,colorProfile:m.a.string,colorRendering:m.a.string,cursor:m.a.string,direction:m.a.oneOf(["ltr","rtl","inherit"]),display:m.a.string,dominantBaseline:m.a.string,enableBackground:m.a.string,fill:m.a.string,fillOpacity:m.a.oneOfType([m.a.string,m.a.number]),fillRule:m.a.oneOf(["nonzero","evenodd","inherit"]),filter:m.a.string,floodColor:m.a.string,floodOpacity:m.a.oneOfType([m.a.string,m.a.number]),font:m.a.string,fontFamily:m.a.string,fontSize:m.a.oneOfType([m.a.number,m.a.string]),fontSizeAdjust:m.a.oneOfType([m.a.number,m.a.string]),fontStretch:m.a.oneOf(["normal","wider","narrower","ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded","inherit"]),fontStyle:m.a.oneOf(["normal","italic","oblique","inherit"]),fontVariant:m.a.oneOf(["normal","small-caps","inherit"]),fontWeight:m.a.oneOf(["normal","bold","bolder","lighter",100,200,300,400,500,600,700,800,900,"inherit"]),glyphOrientationHorizontal:m.a.string,glyphOrientationVertical:m.a.string,imageRendering:m.a.oneOf(["auto","optimizeSpeed","optimizeQuality","inherit"]),kerning:m.a.oneOfType([m.a.number,m.a.string]),letterSpacing:m.a.oneOfType([m.a.number,m.a.string]),lightingColor:m.a.string,markerEnd:m.a.string,markerMid:m.a.string,markerStart:m.a.string,mask:m.a.string,opacity:m.a.oneOfType([m.a.number,m.a.string]),overflow:m.a.oneOf(["visible","hidden","scroll","auto","inherit"]),pointerEvents:m.a.oneOf(["visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all","none","inherit"]),shapeRendering:m.a.oneOf(["auto","optimizeSpeed","crispEdges","geometricPrecision","inherit"]),stopColor:m.a.string,stopOpacity:m.a.oneOfType([m.a.number,m.a.string]),stroke:m.a.oneOfType([m.a.number,m.a.string]),strokeDasharray:m.a.string,strokeDashoffset:m.a.oneOfType([m.a.number,m.a.string]),strokeLinecap:m.a.oneOf(["butt","round","square","inherit"]),strokeLinejoin:m.a.oneOf(["miter","round","bevel","inherit"]),strokeMiterlimit:m.a.oneOfType([m.a.number,m.a.string]),strokeOpacity:m.a.oneOfType([m.a.number,m.a.string]),strokeWidth:m.a.oneOfType([m.a.number,m.a.string]),textAnchor:m.a.oneOf(["start","middle","end","inherit"]),textDecoration:m.a.oneOf(["none","underline","overline","line-through","blink","inherit"]),textRendering:m.a.oneOf(["auto","optimizeSpeed","optimizeLegibility","geometricPrecision","inherit"]),unicodeBidi:m.a.oneOf(["normal","embed","bidi-override","inherit"]),visibility:m.a.oneOf(["visible","hidden","collapse","inherit"]),wordSpacing:m.a.oneOfType([m.a.number,m.a.string]),writingMode:m.a.oneOf(["lr-tb","rl-tb","tb-rl","lr","rl","tb","inherit"]),transform:m.a.string,style:m.a.object,width:m.a.number,height:m.a.number,dx:m.a.number,dy:m.a.number,x:m.a.number,y:m.a.number,r:m.a.number},_={onClick:m.a.func,onMouseDown:m.a.func,onMouseUp:m.a.func,onMouseOver:m.a.func,onMouseMove:m.a.func,onMouseOut:m.a.func,onMouseEnter:m.a.func,onMouseLeave:m.a.func,onTouchEnd:m.a.func,onTouchMove:m.a.func,onTouchStart:m.a.func,onTouchCancel:m.a.func},w={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},O=["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utcTime","sequential","threshold"],A=["line","square","rect","circle","cross","diamond","star","triangle","wye","none"],k=function(e){return e?"string"==typeof e?e:e.displayName||e.name||"Component":""},T=function(e,t){var n=[],r=[];return r=p()(t)?t.map(function(e){return k(e)}):[k(t)],y.a.Children.forEach(e,function(e){-1!==r.indexOf(e&&e.type&&(e.type.displayName||e.type.name))&&n.push(e)}),n},M=function(e,t){var n=T(e,t);return n&&n[0]},E=function(e){if(!e||f()(e))return null;var t=y.a.isValidElement(e)?e.props:e;if(!c()(t))return null;var n=null;for(var r in t)({}).hasOwnProperty.call(t,r)&&x[r]&&(n||(n={}),n[r]=t[r]);return n},S=function(e,t){if(!e||f()(e))return null;var n=y.a.isValidElement(e)?e.props:e;if(!c()(n))return null;var r=null;for(var a in n)({}).hasOwnProperty.call(n,a)&&_[a]&&(r||(r={}),r[a]=t||n[a]);return r},P=function(e,t,n){return function(r){return e(t,n,r),null}},j=function(e,t,n){if(!c()(e))return null;var r=null;for(var a in e)({}).hasOwnProperty.call(e,a)&&_[a]&&f()(e[a])&&(r||(r={}),r[a]=P(e[a],t,n));return r},C=function(e){if(!e||!e.props)return!1;var t=e.props,r=t.width,a=t.height;return!!(n.i(b.b)(r)&&r>0&&n.i(b.b)(a)&&a>0)},N=function(){return!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout)},I=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],R=function(e){return e&&e.type&&u()(e.type)&&I.indexOf(e.type)>=0},L=function(e){var t=[];return y.a.Children.forEach(e,function(e){e&&e.type&&u()(e.type)&&I.indexOf(e.type)>=0&&t.push(e)}),t},D=function(e,t){return!(!i()(e)||!i()(t))||!i()(e)&&!i()(t)&&n.i(g.a)(e.props,t.props)},B=function e(t,n){if(t===n)return!0;if(d.Children.count(t)!==d.Children.count(n))return!1;var r=d.Children.count(t);if(0===r)return!0;if(1===r)return D(d.Children.only(t),d.Children.only(n));for(var a=0;r>a;a++){var i=t[a],o=n[a];if(p()(i)||p()(o)){if(!e(i,o))return!1}else if(!D(i,o))return!1}return!0},z=function(e,t){var n=[],a={};return d.Children.forEach(e,function(e,i){if(e&&R(e))n.push(e);else if(e&&t[k(e.type)]){var o=k(e.type),u=t[o],s=u.handler,c=u.once;if(c&&!a[o]||!c){var l=s(e,o,i);p()(l)?n=[n].concat(r(l)):n.push(l),a[o]=!0}}}),n},W=function(e){var t=e&&e.type;return t&&w[t]?w[t]:null},F=function(e,t){var n=-1;return d.Children.forEach(t,function(t,r){t===e&&(n=r)}),n}},function(e,t,n){"use strict";function r(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function a(e,t){return!r(e,this.props)||!r(t,this.state)}function i(e){e.prototype.shouldComponentUpdate=a}t.a=r,t.b=i},function(e,t,n){var r,a;!function(){"use strict";function n(){for(var e=[],t=0;arguments.length>t;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r))e.push(n.apply(null,r));else if("object"===a)for(var o in r)i.call(r,o)&&r[o]&&e.push(o)}}return e.join(" ")}var i={}.hasOwnProperty;void 0!==e&&e.exports?e.exports=n:(r=[],void 0!==(a=function(){return n}.apply(t,r))&&(e.exports=a))}()},function(e,t,n){function r(e){if(!i(e))return!1;var t=a(e);return t==u||t==s||t==o||t==c}var a=n(63),i=n(25),o="[object AsyncFunction]",u="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";e.exports=r},function(e,t,n){"use strict";n.d(t,"h",function(){return f}),n.d(t,"i",function(){return h}),n.d(t,"b",function(){return p}),n.d(t,"a",function(){return d}),n.d(t,"d",function(){return v}),n.d(t,"c",function(){return m}),n.d(t,"f",function(){return b}),n.d(t,"e",function(){return g}),n.d(t,"g",function(){return x});var r=n(11),a=n.n(r),i=n(382),o=n.n(i),u=n(172),s=n.n(u),c=n(98),l=n.n(c),f=function(e){return 0===e?0:e>0?1:-1},h=function(e){return l()(e)&&e.indexOf("%")===e.length-1},p=function(e){return s()(e)&&!o()(e)},d=function(e){return p(e)||l()(e)},y=0,v=function(e){var t=++y;return""+(e||"")+t},m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!p(e)&&!l()(e))return n;var a=void 0;if(h(e)){var i=e.indexOf("%");a=t*parseFloat(e.slice(0,i))/100}else a=+e;return isNaN(a)&&(a=n),r&&a>t&&(a=t),a},b=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},g=function(e){if(!a()(e))return!1;for(var t=e.length,n={},r=0;t>r;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1},x=function(e,t){return p(e)&&p(t)?function(n){return e+n*(t-e)}:function(){return t}}},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)0>t.indexOf(r)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){var t=e.children,n=e.className,a=r(e,["children","className"]),i=l()("recharts-layer",n);return o.a.createElement("g",f({className:i},a),t)}var i=n(1),o=n.n(i),u=n(0),s=n.n(u),c=n(4),l=n.n(c),f=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};a.propTypes={className:s.a.string,children:s.a.oneOfType([s.a.arrayOf(s.a.node),s.a.node])},t.a=a},function(e,t,n){"use strict";function r(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){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}n.d(t,"m",function(){return C}),n.d(t,"e",function(){return N}),n.d(t,"k",function(){return I}),n.d(t,"l",function(){return R}),n.d(t,"v",function(){return L}),n.d(t,"n",function(){return D}),n.d(t,"r",function(){return B}),n.d(t,"u",function(){return z}),n.d(t,"f",function(){return F}),n.d(t,"h",function(){return q}),n.d(t,"d",function(){return G}),n.d(t,"w",function(){return U}),n.d(t,"o",function(){return H}),n.d(t,"s",function(){return X}),n.d(t,"a",function(){return V}),n.d(t,"b",function(){return K}),n.d(t,"x",function(){return Y}),n.d(t,"z",function(){return Z}),n.d(t,"t",function(){return ee}),n.d(t,"c",function(){return ne}),n.d(t,"B",function(){return re}),n.d(t,"A",function(){return ae}),n.d(t,"y",function(){return ie}),n.d(t,"i",function(){return oe}),n.d(t,"p",function(){return ue}),n.d(t,"g",function(){return ce}),n.d(t,"j",function(){return he}),n.d(t,"C",function(){return pe}),n.d(t,"q",function(){return de});var i=n(179),o=n.n(i),u=n(98),s=n.n(u),c=n(385),l=n.n(c),f=n(177),h=n.n(f),p=n(11),d=n.n(p),y=n(5),v=n.n(y),m=n(171),b=n.n(m),g=n(12),x=n.n(g),_=n(410),w=(n.n(_),n(137)),O=n(88),A=n(6),k=n(102),T=n(103),M=n(101),E=n(32),S=n(70),P=n(2),j=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C=function(e,t,r){return x()(e)||x()(t)?r:n.i(A.a)(t)?b()(e,t,r):v()(t)?t(e):r},N=function(e,t,r,i){var o=e.reduce(function(e,n){var r=C(n,t);return d()(r)?[].concat(a(e),a(r)):[].concat(a(e),[r])},[]);if("number"===r){var u=o.filter(A.b);return[Math.min.apply(null,u),Math.max.apply(null,u)]}return(i?o.filter(function(e){return!x()(e)}):o).map(function(e){return n.i(A.a)(e)?e:""})},I=function(e,t){var n=-1,r=t.length;if(r>1){for(var a=0;r>a;a++)if(0===a&&(t[a].coordinate+t[a+1].coordinate)/2>=e||a>0&&r-1>a&&e>(t[a].coordinate+t[a-1].coordinate)/2&&(t[a].coordinate+t[a+1].coordinate)/2>=e||a===r-1&&e>(t[a].coordinate+t[a-1].coordinate)/2){n=t[a].index;break}}else n=0;return n},R=function(e){var t=e.type.displayName,n=void 0;switch(t){case"Line":case"Area":case"Radar":n=e.props.stroke;break;default:n=e.props.fill}return n},L=function(e){var t=e.children,r=e.formatedGraphicalItems,a=e.legendWidth,i=e.legendContent,o=n.i(P.a)(t,S.a);if(!o)return null;var u=void 0;return u=o.props&&o.props.payload?o.props&&o.props.payload:"children"===i?(r||[]).reduce(function(e,t,n){var r=t.item,a=t.props;return e.concat((a.sectors||a.data||[]).map(function(e){return{type:o.props.iconType||r.props.legendType,value:e.name,color:e.fill,payload:e}}))},[]):(r||[]).map(function(e){var t=e.item,n=t.props,r=n.dataKey,a=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:o.props.iconType||i||"square",color:R(t),value:a||r,payload:t.props}}),j({},o.props,S.a.getWithHeight(o,a),{payload:u})},D=function(e){var t=e.barSize,r=e.stackGroups,a=void 0===r?{}:r;if(!a)return{};for(var i={},o=Object.keys(a),u=0,s=o.length;s>u;u++)for(var c=a[o[u]].stackGroups,l=Object.keys(c),f=0,h=l.length;h>f;f++){var p=c[l[f]],d=p.items,y=p.cateAxisId,v=d.filter(function(e){return n.i(P.b)(e.type).indexOf("Bar")>=0});if(v&&v.length){var m=v[0].props.barSize,b=v[0].props[y];i[b]||(i[b]=[]),i[b].push({item:v[0],stackList:v.slice(1),barSize:x()(m)?t:m})}}return i},B=function(e){var t=e.barGap,r=e.barCategoryGap,i=e.bandSize,o=e.sizeList,u=void 0===o?[]:o,s=e.maxBarSize,c=u.length;if(1>c)return null;var l=n.i(A.c)(t,i,0,!0),f=void 0;if(u[0].barSize===+u[0].barSize){var h=!1,p=i/c,d=u.reduce(function(e,t){return e+t.barSize||0},0);d+=(c-1)*l,i>d||(d-=(c-1)*l,l=0),d>=i&&p>0&&(h=!0,p*=.9,d=c*p);var y=(i-d)/2>>0,v={offset:y-l,size:0};f=u.reduce(function(e,t){var n=[].concat(a(e),[{item:t.item,position:{offset:v.offset+v.size+l,size:h?p:t.barSize}}]);return v=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){n.push({item:e,position:v})}),n},[])}else{var m=n.i(A.c)(r,i,0,!0);i-2*m-(c-1)*l>0||(l=0);var b=(i-2*m-(c-1)*l)/c;b>1&&(b>>=0);var g=s===+s?Math.min(b,s):b;f=u.reduce(function(e,t,n){var r=[].concat(a(e),[{item:t.item,position:{offset:m+(b+l)*n+(b-g)/2,size:g}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},[])}return f},z=function(e,t,a,i){var o=a.children,u=a.width,s=a.height,c=a.margin,l=u-(c.left||0)-(c.right||0),f=s-(c.top||0)-(c.bottom||0),h=L({children:o,items:t,legendWidth:l,legendHeight:f}),p=e;if(h){var d=i||{},y=h.align,v=h.verticalAlign,m=h.layout;("vertical"===m||"horizontal"===m&&"center"===v)&&n.i(A.b)(e[y])&&(p=j({},e,r({},y,p[y]+(d.width||0)))),("horizontal"===m||"vertical"===m&&"center"===y)&&n.i(A.b)(e[v])&&(p=j({},e,r({},v,p[v]+(d.height||0))))}return p},W=function(e,t,r,a){var i=t.props.children,o=n.i(P.c)(i,E.a).filter(function(e){var t=e.props.direction;return!(!x()(t)&&!x()(a))||a.indexOf(t)>=0});if(o&&o.length){var u=o.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var n=C(t,r,0),a=d()(n)?[h()(n),l()(n)]:[n,n],i=u.reduce(function(e,n){var r=C(t,n,0),i=a[0]-Math.abs(d()(r)?r[0]:r),o=a[1]+Math.abs(d()(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(o,e[1])]},[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]},[1/0,-1/0])}return null},F=function(e,t,n,r){var a=t.map(function(t){return W(e,t,n,r)}).filter(function(e){return!x()(e)});return a&&a.length?a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null},q=function(e,t,n,r){var a=t.map(function(t){var a=t.props,i=a.dataKey;return"number"===n&&i?W(e,t,i)||N(e,i,n,r):N(e,i,n,r)});if("number"===n)return a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var i={};return a.reduce(function(e,t){for(var n=0,r=t.length;r>n;n++)i[t[n]]||(i[t[n]]=!0,e.push(t[n]));return e},[])},G=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},U=function(e,t,n){var r=void 0,a=void 0,i=e.map(function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(a=!0),e.coordinate});return r||i.push(t),a||i.push(n),i},H=function(e,t,n){if(!e)return null;var r=e.scale,a=e.duplicateDomain,i=e.type,o=(t||n)&&"category"===i&&r.bandwidth&&"angleAxis"!==e.axisType?r.bandwidth()/2:0;return t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map(function(e){var t=a?a.indexOf(e):e;return{coordinate:r(t)+o,value:e,offset:o}}):e.isCategorial&&e.categoricalDomain?e.categoricalDomain.map(function(e,t){return{coordinate:r(e),value:e,index:t,offset:o}}):r.ticks&&!n?r.ticks(e.tickCount).map(function(e){return{coordinate:r(e)+o,value:e,offset:o}}):r.domain().map(function(e,t){return{coordinate:r(e)+o,value:a?a[e]:e,index:t,offset:o}})},X=function(e,t,n){var r=void 0;return v()(n)?r=n:v()(t)&&(r=t),v()(e)||r?function(t,n,a,i){v()(e)&&e(t,n,a,i),v()(r)&&r(t,n,a,i)}:null},V=function(e,t){var n=e.scale,r=e.type,a=e.layout,i=e.axisType;if("auto"===n)return"radial"===a&&"radiusAxis"===i?{scale:w.scaleBand(),realScaleType:"band"}:"radial"===a&&"angleAxis"===i?{scale:w.scaleLinear(),realScaleType:"linear"}:"category"!==r||!t||0>t.indexOf("LineChart")&&0>t.indexOf("AreaChart")?"category"===r?{scale:w.scaleBand(),realScaleType:"band"}:{scale:w.scaleLinear(),realScaleType:"linear"}:{scale:w.scalePoint(),realScaleType:"point"};if(s()(n)){var o="scale"+n.slice(0,1).toUpperCase()+n.slice(1);return{scale:(w[o]||w.scalePoint)(),realScaleType:w[o]?o:"point"}}return v()(n)?{scale:n}:{scale:w.scalePoint(),realScaleType:"point"}},K=function(e){var t=e.domain();if(t&&t.length>2){var n=t.length,r=e.range(),a=Math.min(r[0],r[1])-1e-4,i=Math.max(r[0],r[1])+1e-4,o=e(t[0]),u=e(t[n-1]);(a>o||o>i||a>u||u>i)&&e.domain([t[0],t[n-1]])}},Y=function(e,t){if(!e)return null;for(var n=0,r=e.length;r>n;n++)if(e[n].item===t)return e[n].position;return null},Z=function(e,t){if(!t||2!==t.length||!n.i(A.b)(t[0])||!n.i(A.b)(t[1]))return e;var r=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]),i=[e[0],e[1]];return n.i(A.b)(e[0])&&e[0]>=r||(i[0]=r),n.i(A.b)(e[1])&&a>=e[1]||(i[1]=a),i[0]>a&&(i[0]=a),r>i[1]&&(i[1]=r),i},$=function(e){var t=e.length;if(t>0)for(var n=0,r=e[0].length;r>n;++n)for(var a=0,i=0,o=0;t>o;++o){var u=isNaN(e[o][n][1])?e[o][n][0]:e[o][n][1];0>u?(e[o][n][0]=i,e[o][n][1]=i+u,i=e[o][n][1]):(e[o][n][0]=a,e[o][n][1]=a+u,a=e[o][n][1])}},J={sign:$,expand:O.a,none:O.b,silhouette:O.c,wiggle:O.d},Q=function(e,t,r){var a=t.map(function(e){return e.props.dataKey});return n.i(O.e)().keys(a).value(function(e,t){return+C(e,t,0)}).order(O.f).offset(J[r])(e)},ee=function(e,t,a,i,o){if(!e)return null;var u=t.reduce(function(e,t){var o=t.props,u=o.stackId;if(o.hide)return e;var s=t.props[a],c=e[s]||{hasStack:!1,stackGroups:{}};if(n.i(A.a)(u)){var l=c.stackGroups[u]||{numericAxisId:a,cateAxisId:i,items:[]};l.items.push(t),c.hasStack=!0,c.stackGroups[u]=l}else c.stackGroups[n.i(A.d)("_stackId_")]={numericAxisId:a,cateAxisId:i,items:[t]};return j({},e,r({},s,c))},{});return Object.keys(u).reduce(function(t,n){var s=u[n];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce(function(t,n){var u=s.stackGroups[n];return j({},t,r({},n,{numericAxisId:a,cateAxisId:i,items:u.items,stackedData:Q(e,u.items,o)}))},{})),j({},t,r({},n,s))},{})},te=function(e,t){return"number"===t?[Math.min.apply(null,e),Math.max.apply(null,e)]:e},ne=function(e,t){var r=t.realScaleType,a=t.type,i=t.tickCount,o=t.originalDomain,u=t.allowDecimals,s=r||t.scale;if("auto"!==s&&"linear"!==s)return null;if(i&&"number"===a&&o&&("auto"===o[0]||"auto"===o[1])){var c=e.domain(),l=n.i(_.getNiceTickValues)(c,i,u);return e.domain(te(l,a)),{niceTicks:l}}if(i&&"number"===a){var f=e.domain();return{niceTicks:n.i(_.getTickValuesFixedDomain)(f,i,u)}}return null},re=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,a=e.entry,i=e.index;if("category"===t.type)return n[i]?n[i].coordinate+r/2:null;var o=C(a,t.dataKey);return x()(o)?null:t.scale(o)},ae=function(e){var t=e.axis,n=e.ticks,r=e.offset,a=e.bandSize,i=e.entry,o=e.index;if("category"===t.type)return n[o]?n[o].coordinate+r:null;var u=C(i,t.dataKey,t.domain[o]);return x()(u)?null:t.scale(u)-a/2+r},ie=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return r>0||0>a?0>a?a:r:0}return n[0]},oe=function(e,t,r,a){var i=n.i(P.c)(e,T.a),o=n.i(P.c)(e,k.a),u=i.concat(o),s=n.i(P.c)(e,M.a),c=a+"Id",l=a[0],f=t;if(u.length&&(f=u.reduce(function(e,t){if(t.props[c]===r&&t.props.alwaysShow&&n.i(A.b)(t.props[l])){var a=t.props[l];return[Math.min(e[0],a),Math.max(e[1],a)]}return e},f)),s.length){var h=l+"1",p=l+"2";f=s.reduce(function(e,t){if(t.props[c]===r&&t.props.alwaysShow&&n.i(A.b)(t.props[h])&&n.i(A.b)(t.props[p])){var a=t.props[h],i=t.props[p];return[Math.min(e[0],a,i),Math.max(e[1],a,i)]}return e},f)}return f},ue=function(e,t){var r=e.props.stackId;if(n.i(A.a)(r)){var a=t[r];if(a&&a.items.length){for(var i=-1,o=0,u=a.items.length;u>o;o++)if(a.items[o]===e){i=o;break}return 0>i?null:a.stackedData[i]}}return null},se=function(e){return e.reduce(function(e,t){return[Math.min.apply(null,t.concat([e[0]]).filter(A.b)),Math.max.apply(null,t.concat([e[1]]).filter(A.b))]},[1/0,-1/0])},ce=function(e,t,n){return Object.keys(e).reduce(function(r,a){var i=e[a],o=i.stackedData,u=o.reduce(function(e,r){var a=se(r.slice(t,n+1));return[Math.min(e[0],a[0]),Math.max(e[1],a[1])]},[1/0,-1/0]);return[Math.min(u[0],r[0]),Math.max(u[1],r[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},le=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,fe=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,he=function(e,t,r){if(!d()(e))return t;var a=[];if(n.i(A.b)(e[0]))a[0]=r?e[0]:Math.min(e[0],t[0]);else if(le.test(e[0])){var i=+le.exec(e[0])[1];a[0]=t[0]-i}else a[0]=t[0];if(n.i(A.b)(e[1]))a[1]=r?e[1]:Math.max(e[1],t[1]);else if(fe.test(e[1])){var o=+fe.exec(e[1])[1];a[1]=t[1]+o}else a[1]=t[1];return a},pe=function(e,t){if(!t)return!1;var n=t.range(),r=n[0],a=n[n.length-1];return r>a?e>=a&&r>=e:e>=r&&a>=e},de=function(e,t){if(e&&e.scale&&e.scale.bandwidth)return e.scale.bandwidth();if(e&&t&&t.length>=2){for(var n=o()(t,function(e){return e.coordinate}),r=1/0,a=1,i=n.length;i>a;a++){var u=n[a],s=n[a-1];r=Math.min((u.coordinate||0)-(s.coordinate||0),r)}return r===1/0?0:r}return 0}},function(e,t,n){var r=n(76),a=n(74),i=n(110),o=n(211),u=n(205),s=function(e,t,n){var c,l,f,h,p=e&s.F,d=e&s.G,y=e&s.S,v=e&s.P,m=e&s.B,b=d?r:y?r[t]||(r[t]={}):(r[t]||{}).prototype,g=d?a:a[t]||(a[t]={}),x=g.prototype||(g.prototype={});d&&(n=t);for(c in n)l=!p&&b&&void 0!==b[c],f=(l?b:n)[c],h=m&&l?u(f,r):v&&"function"==typeof f?u(Function.call,f):f,b&&o(b,c,f,e&s.U),g[c]!=f&&i(g,c,h),v&&x[c]!=f&&(x[c]=f)};r.core=a,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){"use strict";function r(e,t,n,o){function u(t){return e(t=new Date(+t)),t}return u.floor=u,u.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},u.round=function(e){var t=u(e),n=u.ceil(e);return n-e>e-t?t:n},u.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},u.range=function(n,r,a){var i=[];if(n=u.ceil(n),a=null==a?1:Math.floor(a),r<=n||a<=0)return i;do{i.push(new Date(+n))}while(t(n,a),e(n),r>n);return i},u.filter=function(n){return r(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(u.count=function(t,r){return a.setTime(+t),i.setTime(+r),e(a),e(i),Math.floor(n(a,i))},u.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?u.filter(o?function(t){return o(t)%e==0}:function(t){return u.count(0,t)%e==0}):u:null}),u}t.a=r;var a=new Date,i=new Date},function(e,t){e.exports=Array.isArray},function(e,t){function n(e){return null==e}e.exports=n},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"e",function(){return c}),n.d(t,"a",function(){return f}),n.d(t,"d",function(){return h}),n.d(t,"c",function(){return p}),n.d(t,"b",function(){return m});var a=n(12),i=n.n(a),o=n(6),u=n(8),s=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=Math.PI/180,l=function(e){return 180*e/Math.PI},f=function(e,t,n,r){return{x:e+Math.cos(-c*r)*n,y:t+Math.sin(-c*r)*n}},h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},p=function(e,t,a,c,l){var f=e.width,p=e.height,d=e.startAngle,y=e.endAngle,v=n.i(o.c)(e.cx,f,f/2),m=n.i(o.c)(e.cy,p,p/2),b=h(f,p,a),g=n.i(o.c)(e.innerRadius,b,0),x=n.i(o.c)(e.outerRadius,b,.8*b);return Object.keys(t).reduce(function(e,a){var o=t[a],f=o.domain,h=o.reversed,p=void 0;i()(p,o.range)?("angleAxis"===c?p=[d,y]:"radiusAxis"===c&&(p=[g,x]),h&&(p=[p[1],p[0]])):p=o.range;var b=n.i(u.a)(o,l),_=b.realScaleType,w=b.scale;w.domain(f).range(p),n.i(u.b)(w);var O=n.i(u.c)(w,s({},o,{realScaleType:_})),A=s({},o,O,{radius:x,realScaleType:_,scale:w,cx:v,cy:m,innerRadius:g,outerRadius:x,startAngle:d,endAngle:y});return s({},e,r({},a,A))},{})},d=function(e,t){var n=e.x,r=e.y,a=t.x,i=t.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(r-i,2))},y=function(e,t){var n=e.x,r=e.y,a=t.cx,i=t.cy,o=d({x:n,y:r},{x:a,y:i});if(0>=o)return{radius:o};var u=(n-a)/o,s=Math.acos(u);return r>i&&(s=2*Math.PI-s),{radius:o,angle:l(s),angleInRadian:s}},v=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),a=Math.floor(n/360),i=Math.min(r,a);return{startAngle:t-360*i,endAngle:n-360*i}},m=function(e,t){var n=e.x,r=e.y,a=y({x:n,y:r},t),i=a.radius,o=a.angle,u=t.innerRadius,c=t.outerRadius;if(u>i||i>c)return!1;if(0===i)return!0;for(var l=v(t),f=l.startAngle,h=l.endAngle,p=o;p>h;)p-=360;for(;f>p;)p+=360;return f>p||p>h?null:s({},t,{radius:i,angle:p})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.translateStyle=t.AnimateGroup=t.configBezier=t.configSpring=void 0;var a=n(181),i=r(a),o=n(182),u=n(64),s=n(403),c=r(s);t.configSpring=o.configSpring,t.configBezier=o.configBezier,t.AnimateGroup=c.default,t.translateStyle=u.translateStyle,t.default=i.default},function(e,t,n){"use strict";var r=n(113);n.d(t,"c",function(){return r.a});var a=n(30);n.d(t,"f",function(){return a.a});var i=n(114);n.d(t,"d",function(){return i.a});var o=(n(232),n(233),n(115),n(116),n(234),n(244),n(245),n(120),n(236),n(237),n(238),n(239),n(117),n(118),n(240),n(80));n.d(t,"e",function(){return o.a});var u=n(119);n.d(t,"g",function(){return u.a});var s=(n(241),n(242),n(243),n(121));n.d(t,"a",function(){return s.a}),n.d(t,"b",function(){return s.b});n(122),n(123),n(246)},function(e,t,n){"use strict";n.d(t,"e",function(){return r}),n.d(t,"d",function(){return a}),n.d(t,"c",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"a",function(){return u});var r=1e3,a=6e4,i=36e5,o=864e5,u=6048e5},function(e,t,n){function r(e,t){return a(e,t)}var a=n(95);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)0>t.indexOf(r)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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)}var c=n(179),l=n.n(c),f=n(5),h=n.n(f),p=n(178),d=n.n(p),y=n(12),v=n.n(y),m=n(390),b=n.n(m),g=n(1),x=n.n(g),_=n(0),w=n.n(_),O=n(4),A=n.n(O),k=n(14),T=(n.n(k),n(34)),M=n(7),E=n(48),S=n(70),P=n(28),j=n(107),C=n(51),N=n(23),I=n(29),R=n(2),L=n(100),D=n(99),B=n(73),z=n(6),W=n(8),F=n(13),q=n(3),G=n(201),U=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H=function(){function e(e,t){for(var n=0;t.length>n;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}}(),X={xAxis:["bottom","top"],yAxis:["left","right"]},V={x:0,y:0};t.a=function(e){var t,c,f,p=e.chartName,y=e.GraphicalChild,m=e.eventType,_=void 0===m?"axis":m,O=e.axisComponents,k=e.legendContent,K=e.formatAxisMap,Y=e.defaultProps,Z=e.propTypes;return c=t=function(e){function t(e){o(this,t);var r=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));f.call(r);var a=r.constructor.createDefaultState(e);return r.state=U({},a,{updateId:0},r.updateStateOfAxisMapsOffsetAndStackGroups(U({props:e},a,{updateId:0}))),r.uniqueChartId=n.i(z.d)("recharts"),e.throttleDelay&&(r.triggeredAfterMouseMove=b()(r.triggeredAfterMouseMove,e.throttleDelay)),r}return s(t,e),H(t,[{key:"componentDidMount",value:function(){v()(this.props.syncId)||this.addListener()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,r=t.data,a=t.children,i=t.width,o=t.height,u=t.layout,s=t.stackOffset,c=t.margin,l=this.state.updateId;if(e.data===r&&e.width===i&&e.height===o&&e.layout===u&&e.stackOffset===s&&n.i(q.a)(e.margin,c)){if(!n.i(R.d)(e.children,a)){var f=!v()(e.data),h=f?l:l+1,p=this.state,d=p.dataStartIndex,y=p.dataEndIndex,m=U({},this.constructor.createDefaultState(e),{dataEndIndex:y,dataStartIndex:d});this.setState(U({},m,{updateId:h},this.updateStateOfAxisMapsOffsetAndStackGroups(U({props:e},m,{updateId:h}))))}}else{var b=this.constructor.createDefaultState(e);this.setState(U({},b,{updateId:l+1},this.updateStateOfAxisMapsOffsetAndStackGroups(U({props:e},b,{updateId:l+1}))))}v()(this.props.syncId)&&!v()(e.syncId)&&this.addListener(),!v()(this.props.syncId)&&v()(e.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){v()(this.props.syncId)||this.removeListener(),"function"==typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getAxisMap",value:function(e,t){var r=t.axisType,a=void 0===r?"xAxis":r,i=t.AxisComp,o=t.graphicalItems,u=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.children,f=a+"Id",h=n.i(R.c)(l,i),p={};return h&&h.length?p=this.getAxisMapByAxes(e,{axes:h,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:u,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(p=this.getAxisMapByItems(e,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:u,dataStartIndex:s,dataEndIndex:c})),p}},{key:"getAxisMapByAxes",value:function(e,t){var r=this,a=t.axes,o=t.graphicalItems,u=t.axisType,s=t.axisIdKey,c=t.stackGroups,l=t.dataStartIndex,f=t.dataEndIndex,h=e.layout,p=e.children,y=e.stackOffset,m=n.i(W.d)(h,u);return a.reduce(function(t,a){var b=a.props,g=b.type,x=b.dataKey,_=b.allowDataOverflow,w=b.scale,O=a.props[s],A=r.constructor.getDisplayedData(e,{graphicalItems:o.filter(function(e){return e.props[s]===O}),dataStartIndex:l,dataEndIndex:f}),k=A.length;if(!t[O]){var T=void 0,M=void 0,E=void 0;if(x){if(T=n.i(W.e)(A,x,g),"category"===g&&m){var S=n.i(z.e)(T);M=S?T:null,T=S?d()(0,k):T}else if("category"===g)T=T.filter(function(e){return""!==e&&!v()(e)});else if("number"===g){var P=n.i(W.f)(A,o.filter(function(e){return e.props[s]===O&&!e.props.hide}),x,u);P&&(T=P)}!m||"number"!==g&&"auto"===w||(E=n.i(W.e)(A,x,"category"))}else T=m?d()(0,k):c&&c[O]&&c[O].hasStack&&"number"===g?"expand"===y?[0,1]:n.i(W.g)(c[O].stackGroups,l,f):n.i(W.h)(A,o.filter(function(e){return e.props[s]===O&&!e.props.hide}),g,!0);return"number"===g&&(T=n.i(W.i)(p,T,O,u),a.props.domain&&(T=n.i(W.j)(a.props.domain,T,_))),U({},t,i({},O,U({},a.props,{axisType:u,domain:T,categoricalDomain:E,duplicateDomain:M,originalDomain:a.props.domain,isCategorial:m,layout:h})))}return t},{})}},{key:"getAxisMapByItems",value:function(e,t){var r=t.graphicalItems,a=t.Axis,o=t.axisType,u=t.axisIdKey,s=t.stackGroups,c=t.dataStartIndex,l=t.dataEndIndex,f=e.layout,h=e.children,p=this.constructor.getDisplayedData(e,{graphicalItems:r,dataStartIndex:c,dataEndIndex:l}),y=p.length,v=n.i(W.d)(f,o),m=-1;return r.reduce(function(e,t){var b=t.props[u];if(!e[b]){m++;var g=void 0;return v?g=d()(0,y):s&&s[b]&&s[b].hasStack?(g=n.i(W.g)(s[b].stackGroups,c,l),g=n.i(W.i)(h,g,b,o)):(g=n.i(W.j)(a.defaultProps.domain,n.i(W.h)(p,r.filter(function(e){return e.props[u]===b&&!e.props.hide}),"number"),a.defaultProps.allowDataOverflow),g=n.i(W.i)(h,g,b,o)),U({},e,i({},b,U({axisType:o},a.defaultProps,{hide:!0,orientation:X[o]&&X[o][m%2],domain:g,originalDomain:a.defaultProps.domain,isCategorial:v,layout:f})))}return e},{})}},{key:"getActiveCoordinate",value:function(e,t,r){var a=this.props.layout,i=e[t];if(i){if("horizontal"===a)return{x:i.coordinate,y:r.y};if("vertical"===a)return{x:r.x,y:i.coordinate};if("centric"===a){var o=i.coordinate,u=r.radius;return U({},r,n.i(F.a)(r.cx,r.cy,u,o),{angle:o,radius:u})}var s=i.coordinate,c=r.angle;return U({},r,n.i(F.a)(r.cx,r.cy,s,c),{angle:c,radius:s})}return V}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=n.i(B.a)(this.container),r=n.i(B.b)(e,t),a=this.inRange(r.chartX,r.chartY);if(!a)return null;var i=this.state,o=i.xAxisMap,u=i.yAxisMap;if("axis"!==_&&o&&u){var s=n.i(z.f)(o).scale,c=n.i(z.f)(u).scale,l=s&&s.invert?s.invert(r.chartX):null,f=c&&c.invert?c.invert(r.chartY):null;return U({},r,{xValue:l,yValue:f})}var h=this.state,p=h.orderedTooltipTicks,d=h.tooltipAxis,y=h.tooltipTicks,v=this.calculateTooltipPos(a),m=n.i(W.k)(v,p,d);if(m>=0&&y){var b=y[m]&&y[m].value,g=this.getTooltipContent(m),x=this.getActiveCoordinate(p,m,a);return U({},r,{activeTooltipIndex:m,activeLabel:b,activePayload:g,activeCoordinate:x})}return null}},{key:"getTooltipContent",value:function(e){var t=this.state.graphicalItems,r=this.constructor.getDisplayedData(this.props,this.state);return e>=0&&t&&t.length&&r.length>e?t.reduce(function(t,i){if(i.props.hide)return t;var o=i.props,u=o.dataKey,s=o.name,c=o.unit,l=o.formatter;return[].concat(a(t),[U({},n.i(R.e)(i),{dataKey:u,unit:c,formatter:l,name:s||u,color:n.i(W.l)(i),value:n.i(W.m)(r[e],u),payload:r[e]})])},[]):null}},{key:"getFormatItems",value:function(e,t){var r=this,a=t.graphicalItems,o=t.stackGroups,u=t.offset,s=t.updateId,c=t.dataStartIndex,l=t.dataEndIndex,f=e.barSize,h=e.layout,p=e.barGap,d=e.barCategoryGap,y=e.maxBarSize,m=this.getAxisNameByLayout(h),b=m.numericAxisName,g=m.cateAxisName,x=this.constructor.hasBar(a),_=x&&n.i(W.n)({barSize:f,stackGroups:o}),w=[];return a.forEach(function(a,f){var m=r.constructor.getDisplayedData(e,{dataStartIndex:c,dataEndIndex:l},a),A=a.props,k=A.dataKey,T=A.maxBarSize,M=a.props[b+"Id"],E=a.props[g+"Id"],S=O.reduce(function(e,r){var o,u=t[r.axisType+"Map"],s=a.props[r.axisType+"Id"],c=u&&u[s];return U({},e,(o={},i(o,r.axisType,c),i(o,r.axisType+"Ticks",n.i(W.o)(c)),o))},{}),P=S[g],j=S[g+"Ticks"],C=o&&o[M]&&o[M].hasStack&&n.i(W.p)(a,o[M].stackGroups),N=n.i(W.q)(P,j),I=v()(T)?y:T,L=x&&n.i(W.r)({barGap:p,barCategoryGap:d,bandSize:N,sizeList:_[E],maxBarSize:I}),D=a&&a.type&&a.type.getComposedData;if(D){var B;w.push({props:U({},D(U({},S,{displayedData:m,props:e,dataKey:k,item:a,bandSize:N,barPosition:L,offset:u,stackedData:C,layout:h,dataStartIndex:c,dataEndIndex:l,onItemMouseLeave:n.i(W.s)(r.handleItemMouseLeave,null,a.props.onMouseLeave),onItemMouseEnter:n.i(W.s)(r.handleItemMouseEnter,null,a.props.onMouseEnter)})),(B={key:a.key||"item-"+f},i(B,b,S[b]),i(B,g,S[g]),i(B,"animationId",s),B)),childIndex:n.i(R.f)(a,e.children),item:a})}}),w}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,a=t.tooltipAxisBandSize,i=a/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-i,width:"horizontal"===e?a:r.width-1,height:"horizontal"===e?r.height-1:a}}},{key:"getCursorPoints",value:function(){var e=this.props.layout,t=this.state,r=t.activeCoordinate,a=t.offset,i=void 0,o=void 0,u=void 0,s=void 0;if("horizontal"===e)i=r.x,u=i,o=a.top,s=a.top+a.height;else if("vertical"===e)o=r.y,s=o,i=a.left,u=a.left+a.width;else if(!v()(r.cx)||!v()(r.cy)){if("centric"!==e){var c=r.cx,l=r.cy,f=r.radius,h=r.startAngle,p=r.endAngle,d=n.i(F.a)(c,l,f,h),y=n.i(F.a)(c,l,f,p);return{points:[d,y],cx:c,cy:l,radius:f,startAngle:h,endAngle:p}}var m=r.cx,b=r.cy,g=r.innerRadius,x=r.outerRadius,_=r.angle,w=n.i(F.a)(m,b,g,_),O=n.i(F.a)(m,b,x,_);i=w.x,o=w.y,u=O.x,s=O.y}return[{x:i,y:o},{x:u,y:s}]}},{key:"getAxisNameByLayout",value:function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}}},{key:"calculateTooltipPos",value:function(e){var t=this.props.layout;return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}},{key:"inRange",value:function(e,t){var r=this.props.layout;if("horizontal"===r||"vertical"===r){var a=this.state.offset;return!(a.left>e||e>a.left+a.width||a.top>t||t>a.top+a.height)?{x:e,y:t}:null}var i=this.state,o=i.angleAxisMap,u=i.radiusAxisMap;if(o&&u){var s=n.i(z.f)(o);return n.i(F.b)({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=n.i(R.a)(e,E.a),r=t&&"axis"===_?{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove}:{},a=n.i(R.g)(this.props,this.handleOuterEvent);return U({},a,r)}},{key:"updateStateOfAxisMapsOffsetAndStackGroups",value:function(e){var t=this,r=e.props,a=e.dataStartIndex,o=e.dataEndIndex,u=e.updateId;if(!n.i(R.h)({props:r}))return null;var s=r.children,c=r.layout,l=r.stackOffset,f=r.data,h=this.getAxisNameByLayout(c),d=h.numericAxisName,v=h.cateAxisName,m=n.i(R.c)(s,y),b=n.i(W.t)(f,m,d+"Id",v+"Id",l),g=O.reduce(function(e,n){return U({},e,i({},n.axisType+"Map",t.getAxisMap(r,U({},n,{graphicalItems:m,stackGroups:n.axisType===d&&b,dataStartIndex:a,dataEndIndex:o}))))},{}),x=this.calculateOffset(U({},g,{props:r,graphicalItems:m}));Object.keys(g).forEach(function(e){g[e]=K(r,g[e],x,e.replace("Map",""),p)});var _=g[v+"Map"],w=this.tooltipTicksGenerator(_),A=this.getFormatItems(r,U({},g,{dataStartIndex:a,dataEndIndex:o,updateId:u,graphicalItems:m,stackGroups:b,offset:x}));return U({formatedGraphicalItems:A,graphicalItems:m,offset:x,stackGroups:b},w,g)}},{key:"addListener",value:function(){G.a.on(G.b,this.handleReceiveSyncEvent),G.a.setMaxListeners&&G.a._maxListeners&&G.a.setMaxListeners(G.a._maxListeners+1)}},{key:"removeListener",value:function(){G.a.removeListener(G.b,this.handleReceiveSyncEvent),G.a.setMaxListeners&&G.a._maxListeners&&G.a.setMaxListeners(G.a._maxListeners-1)}},{key:"calculateOffset",value:function(e){var t=e.props,r=e.graphicalItems,a=e.xAxisMap,o=void 0===a?{}:a,u=e.yAxisMap,s=void 0===u?{}:u,c=t.width,l=t.height,f=t.children,h=t.margin||{},p=n.i(R.a)(f,D.a),d=n.i(R.a)(f,S.a),y=Object.keys(s).reduce(function(e,t){var n=s[t],r=n.orientation;return n.mirror||n.hide?e:U({},e,i({},r,e[r]+n.width))},{left:h.left||0,right:h.right||0}),v=Object.keys(o).reduce(function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:U({},e,i({},r,e[r]+n.height))},{top:h.top||0,bottom:h.bottom||0}),m=U({},v,y),b=m.bottom;if(p&&(m.bottom+=p.props.height||D.a.defaultProps.height),d&&this.legendInstance){var g=this.legendInstance.getBBox();m=n.i(W.u)(m,r,t,g)}return U({brushBottom:b},m,{width:c-m.left-m.right,height:l-m.top-m.bottom})}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;v()(t)||G.a.emit(G.b,t,this.uniqueChartId,e)}},{key:"filterFormatItem",value:function(e,t,r){for(var a=this.state.formatedGraphicalItems,i=0,o=a.length;o>i;i++){var u=a[i];if(u.item===e||u.props.key===e.key||t===n.i(R.b)(u.item.type)&&r===u.childIndex)return u}return null}},{key:"renderAxis",value:function(e,t,n,r){var a=this.props,i=a.width,o=a.height;return x.a.createElement(L.a,U({},e,{className:"recharts-"+e.axisType+" "+e.axisType,key:t.key||n+"-"+r,viewBox:{x:0,y:0,width:i,height:o},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderLegend",value:function(){var e=this,t=this.state.formatedGraphicalItems,r=this.props,a=r.children,i=r.width,o=r.height,u=this.props.margin||{},s=i-(u.left||0)-(u.right||0),c=o-(u.top||0)-(u.bottom||0),l=n.i(W.v)({children:a,formatedGraphicalItems:t,legendWidth:s,legendHeight:c,legendContent:k});return l?n.i(g.createElement)(S.a,U({},l,{chartWidth:i,chartHeight:o,margin:u,ref:function(t){e.legendInstance=t},onBBoxUpdate:this.handleLegendBBoxUpdate})):null}},{key:"renderTooltip",value:function(){var e=this.props.children,t=n.i(R.a)(e,E.a);if(!t)return null;var r=this.state,a=r.isTooltipActive,i=r.activeCoordinate,o=r.activePayload,u=r.activeLabel,s=r.offset;return n.i(g.cloneElement)(t,{viewBox:U({},s,{x:s.left,y:s.top}),active:a,label:u,payload:a?o:[],coordinate:i})}},{key:"renderActiveDot",value:function(e,t){var r=void 0;return r=n.i(g.isValidElement)(e)?n.i(g.cloneElement)(e,t):h()(e)?e(t):x.a.createElement(N.a,t),x.a.createElement(M.a,{className:"recharts-active-dot",key:t.key},r)}},{key:"renderActivePoints",value:function(e){var t=e.item,r=e.activePoint,a=e.basePoint,i=e.childIndex,o=e.isRange,u=[],s=t.props.key,c=t.item.props,l=c.activeDot,f=c.dataKey,h=U({index:i,dataKey:f,cx:r.x,cy:r.y,r:4,fill:n.i(W.l)(t.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value,key:s+"-activePoint-"+i},n.i(R.e)(l));return u.push(this.renderActiveDot(l,h,i)),a?u.push(this.renderActiveDot(l,U({},h,{cx:a.x,cy:a.y,key:s+"-basePoint-"+i}),i)):o&&u.push(null),u}},{key:"render",value:function(){var e=this;if(!n.i(R.h)(this))return null;var t=this.props,a=t.children,i=t.className,o=t.width,u=t.height,s=t.style,c=t.compact,l=r(t,["children","className","width","height","style","compact"]),f=n.i(R.e)(l),h={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis}};if(c)return x.a.createElement(T.a,U({},f,{width:o,height:u}),n.i(R.i)(a,h));var p=this.parseEventsOfWrapper();return x.a.createElement("div",U({className:A()("recharts-wrapper",i),style:U({},s,{position:"relative",cursor:"default",width:o,height:u})},p,{ref:function(t){e.container=t}}),x.a.createElement(T.a,U({},f,{width:o,height:u}),n.i(R.i)(a,h)),this.renderLegend(),this.renderTooltip())}}]),t}(g.Component),t.displayName=p,t.propTypes=U({syncId:w.a.oneOfType([w.a.string,w.a.number]),compact:w.a.bool,width:w.a.number,height:w.a.number,data:w.a.arrayOf(w.a.object),layout:w.a.oneOf(["horizontal","vertical"]),stackOffset:w.a.oneOf(["sign","expand","none","wiggle","silhouette"]),throttleDelay:w.a.number,margin:w.a.shape({top:w.a.number,right:w.a.number,bottom:w.a.number,left:w.a.number}),barCategoryGap:w.a.oneOfType([w.a.number,w.a.string]),barGap:w.a.oneOfType([w.a.number,w.a.string]),barSize:w.a.oneOfType([w.a.number,w.a.string]),maxBarSize:w.a.number,style:w.a.object,className:w.a.string,children:w.a.oneOfType([w.a.arrayOf(w.a.node),w.a.node]),onClick:w.a.func,onMouseLeave:w.a.func,onMouseEnter:w.a.func,onMouseMove:w.a.func,onMouseDown:w.a.func,onMouseUp:w.a.func},Z),t.defaultProps=U({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5}},Y),t.createDefaultState=function(e){var t=e.children,r=n.i(R.a)(t,D.a);return{chartX:0,chartY:0,dataStartIndex:r&&r.props&&r.props.startIndex||0,dataEndIndex:r&&r.props&&r.props.endIndex||e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!1}},t.hasBar=function(e){return!(!e||!e.length)&&e.some(function(e){var t=n.i(R.b)(e&&e.type);return t&&t.indexOf("Bar")>=0})},t.getDisplayedData=function(e,t,r){var i=t.graphicalItems,o=t.dataStartIndex,u=t.dataEndIndex,s=(i||[]).reduce(function(e,t){var n=t.props.data;return n&&n.length?[].concat(a(e),a(n)):e},[]);if(s&&s.length>0)return s;if(r&&r.props&&r.props.data&&r.props.data.length>0)return r.props.data;var c=e.data;return c&&c.length&&n.i(z.b)(o)&&n.i(z.b)(u)?c.slice(o,u+1):[]},f=function(){var e=this;this.handleLegendBBoxUpdate=function(t){if(t&&e.legendInstance){var n=e.state;e.setState(e.updateStateOfAxisMapsOffsetAndStackGroups({props:e.props,dataStartIndex:n.dataStartIndex,dataEndIndex:n.dataEndIndex,updateId:n.updateId}))}},this.handleReceiveSyncEvent=function(t,n,r){var a=e.props,i=a.syncId,o=a.layout,u=e.state.updateId;if(i===t&&n!==e.uniqueChartId){var s=r.dataStartIndex,c=r.dataEndIndex;if(v()(r.dataStartIndex)&&v()(r.dataEndIndex))if(v()(r.activeTooltipIndex))e.setState(r);else{var l=r.chartX,f=r.chartY,h=r.activeTooltipIndex,p=e.state,d=p.offset,y=p.tooltipTicks;if(!d)return;var m=U({},d,{x:d.left,y:d.top}),b=Math.min(l,m.x+m.width),g=Math.min(f,m.y+m.height),x=y[h]&&y[h].value,_=e.getTooltipContent(h),w=y[h]?{x:"horizontal"===o?y[h].coordinate:b,y:"horizontal"===o?g:y[h].coordinate}:V;e.setState(U({},r,{activeLabel:x,activeCoordinate:w,activePayload:_}))}else e.setState(U({dataStartIndex:s,dataEndIndex:c},e.updateStateOfAxisMapsOffsetAndStackGroups({props:e.props,dataStartIndex:s,dataEndIndex:c,updateId:u})))}},this.handleBrushChange=function(t){var n=t.startIndex,r=t.endIndex;if(n!==e.state.dataStartIndex||r!==e.state.dataEndIndex){e.setState(U({dataStartIndex:n,dataEndIndex:r},e.updateStateOfAxisMapsOffsetAndStackGroups({props:e.props,dataStartIndex:n,dataEndIndex:r,updateId:e.state.updateId}))),e.triggerSyncEvent({dataStartIndex:n,dataEndIndex:r})}},this.handleMouseEnter=function(t){var n=e.props.onMouseEnter,r=e.getMouseInfo(t);if(r){var a=U({},r,{isTooltipActive:!0});e.setState(a),e.triggerSyncEvent(a),h()(n)&&n(a,t)}},this.triggeredAfterMouseMove=function(t){var n=e.props.onMouseMove,r=e.getMouseInfo(t),a=r?U({},r,{isTooltipActive:!0}):{isTooltipActive:!1};e.setState(a),e.triggerSyncEvent(a),h()(n)&&n(a,t)},this.handleItemMouseEnter=function(t){e.setState({isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}})},this.handleItemMouseLeave=function(){e.setState({isTooltipActive:!1})},this.handleMouseMove=function(t){t&&h()(t.persist)&&t.persist(),e.triggeredAfterMouseMove(t)},this.handleMouseLeave=function(t){var n=e.props.onMouseLeave,r={isTooltipActive:!1};e.setState(r),e.triggerSyncEvent(r),h()(n)&&n(r,t)},this.handleOuterEvent=function(t){var r=n.i(R.j)(t);if(r&&h()(e.props[r])){var a=e.getMouseInfo(t);(0,e.props[r])(a,t)}},this.handleClick=function(t){var n=e.props.onClick;if(h()(n)){n(e.getMouseInfo(t),t)}},this.handleMouseDown=function(t){var n=e.props.onMouseDown;if(h()(n)){n(e.getMouseInfo(t),t)}},this.handleMouseUp=function(t){var n=e.props.onMouseUp;if(h()(n)){n(e.getMouseInfo(t),t)}},this.handleTouchMove=function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleMouseMove(t.changedTouches[0])},this.verticalCoordinatesGenerator=function(e){var t=e.xAxis,r=e.width,a=e.height,i=e.offset;return n.i(W.w)(L.a.getTicks(U({},L.a.defaultProps,t,{ticks:n.i(W.o)(t,!0),viewBox:{x:0,y:0,width:r,height:a}})),i.left,i.left+i.width)},this.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,r=e.width,a=e.height,i=e.offset;return n.i(W.w)(L.a.getTicks(U({},L.a.defaultProps,t,{ticks:n.i(W.o)(t,!0),viewBox:{x:0,y:0,width:r,height:a}})),i.top,i.top+i.height)},this.axesTicksGenerator=function(e){return n.i(W.o)(e,!0)},this.tooltipTicksGenerator=function(e){var t=n.i(z.f)(e),r=n.i(W.o)(t,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:l()(r,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:n.i(W.q)(t)}},this.renderCursor=function(t){var r=e.state,a=r.isTooltipActive,i=r.activeCoordinate,o=r.activePayload,u=r.offset;if(!(t&&t.props.cursor&&a&&i))return null;var s=e.props.layout,c=void 0,l=P.a;if("ScatterChart"===p)c=i,l=j.a;else if("BarChart"===p)c=e.getCursorRectangle(),l=I.a;else if("radial"===s){var f=e.getCursorPoints(),h=f.cx,d=f.cy,y=f.radius,v=f.startAngle,m=f.endAngle;c={cx:h,cy:d,startAngle:v,endAngle:m,innerRadius:y,outerRadius:y},l=C.a}else c={points:e.getCursorPoints()},l=P.a;var b=t.key||"_recharts-cursor",x=U({stroke:"#ccc"},u,c,n.i(R.e)(t.props.cursor),{payload:o,key:b,className:"recharts-tooltip-cursor"});return n.i(g.isValidElement)(t.props.cursor)?n.i(g.cloneElement)(t.props.cursor,x):n.i(g.createElement)(l,x)},this.renderPolarAxis=function(t,r,a){var i=t.type.axisType,o=e.state[i+"Map"],u=o[t.props[i+"Id"]];return n.i(g.cloneElement)(t,U({},u,{className:i,key:t.key||r+"-"+a,ticks:n.i(W.o)(u,!0).map(function(e){return U({},e,{coordinate:e.coordinate-e.offset})})}))},this.renderXAxis=function(t,n,r){return e.renderAxis(e.state.xAxisMap[t.props.xAxisId],t,n,r)},this.renderYAxis=function(t,n,r){return e.renderAxis(e.state.yAxisMap[t.props.yAxisId],t,n,r)},this.renderGrid=function(t){var r=e.state,a=r.xAxisMap,i=r.yAxisMap,o=r.offset,u=e.props,s=u.width,c=u.height,l=n.i(z.f)(a),f=n.i(z.f)(i);return n.i(g.cloneElement)(t,{key:t.key||"grid",x:o.left,y:o.top,width:o.width,height:o.height,xAxis:l,yAxis:f,offset:o,chartWidth:s,chartHeight:c,verticalCoordinatesGenerator:e.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:e.horizontalCoordinatesGenerator})},this.renderPolarGrid=function(t){var r=e.state,a=r.radiusAxisMap,i=r.angleAxisMap,o=n.i(z.f)(a),u=n.i(z.f)(i),s=u.cx,c=u.cy,l=u.innerRadius,f=u.outerRadius;return n.i(g.cloneElement)(t,{polarAngles:n.i(W.o)(u,!0).map(function(e){return e.coordinate}),polarRadius:n.i(W.o)(o,!0).map(function(e){return e.coordinate}),cx:s,cy:c,innerRadius:l,outerRadius:f,key:t.key||"polar-grid"})},this.renderBrush=function(t){var r=e.props,a=r.margin,i=r.data,o=e.state,u=o.offset,s=o.dataStartIndex,c=o.dataEndIndex,l=o.updateId;return n.i(g.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:n.i(W.s)(e.handleBrushChange,null,t.props.onChange),data:i,x:u.left,y:u.top+u.height+u.brushBottom-(a.bottom||0),width:n.i(z.b)(t.props.width)&&t.props.width?t.props.width:u.width,startIndex:s,endIndex:c,updateId:"brush-"+l})},this.renderReferenceElement=function(t,r,a){if(!t)return null;var i=e.state,o=i.xAxisMap,u=i.yAxisMap,s=i.offset,c=t.props,l=c.xAxisId,f=c.yAxisId;return n.i(g.cloneElement)(t,{key:t.key||r+"-"+a,xAxis:o[l],yAxis:u[f],viewBox:{x:s.left,y:s.top,width:s.width,height:s.height}})},this.renderGraphicChild=function(t,r,i){var o=e.filterFormatItem(t,r,i);if(!o)return null;var u=n.i(g.cloneElement)(t,o.props),s=e.state,c=s.isTooltipActive,l=s.activeTooltipIndex,f=e.props.children,h=n.i(R.a)(f,E.a),p=o.props,d=p.points,y=p.isRange,v=p.baseLine,m=o.item.props,b=m.activeDot;if(!m.hide&&c&&h&&b&&l>=0&&d[l])return[u].concat(a(e.renderActivePoints({item:o,activePoint:d[l],basePoint:y&&v&&v[l],childIndex:l,isRange:y})));return y?[u,null,null]:[u,null]}},c}},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function a(e){var t=e.viewBox,r=e.position,a=e.value,i=e.children,o=e.content;if(!t||l()(a)&&l()(i)&&!n.i(f.isValidElement)(o)&&!s()(o))return null;if(n.i(f.isValidElement)(o))return n.i(f.cloneElement)(o,e);if(s()(o))return o(e);var u=S(t),c=A(e),p=n.i(v.e)(e);if(u&&("insideStart"===r||"insideEnd"===r||"end"===r))return T(e,c,p);var d=u?M(e):E(e);return h.a.createElement(y.a,g({className:"recharts-label"},p,d),c)}var i=n(25),o=n.n(i),u=n(5),s=n.n(u),c=n(12),l=n.n(c),f=n(1),h=n.n(f),p=n(0),d=n.n(p),y=n(22),v=n(2),m=n(6),b=n(13),g=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x=d.a.shape({x:d.a.number,y:d.a.number,width:d.a.number,height:d.a.number}),_=d.a.shape({cx:d.a.number,cy:d.a.number,innerRadius:d.a.number,outerRadius:d.a.number,startAngle:d.a.number,endAngle:d.a.number}),w={viewBox:d.a.oneOfType([x,_]),formatter:d.a.func,value:d.a.oneOfType([d.a.number,d.a.string]),offset:d.a.number,position:d.a.oneOf(["top","left","right","bottom","inside","outside","insideLeft","insideRight","insideTop","insideBottom","insideTopLeft","insideBottomLeft","insideTopRight","insideBottomRight","insideStart","insideEnd","end","center"]),children:d.a.oneOfType([d.a.arrayOf(d.a.node),d.a.node]),content:d.a.oneOfType([d.a.element,d.a.func])},O={offset:5},A=function(e){var t=e.value,n=e.formatter,r=l()(e.children)?t:e.children;return s()(n)?n(r):r},k=function(e,t){return n.i(m.h)(t-e)*Math.min(Math.abs(t-e),360)},T=function(e,t,r){var a=e.position,i=e.viewBox,o=e.offset,u=i.cx,s=i.cy,c=i.innerRadius,l=i.outerRadius,f=i.startAngle,p=i.endAngle,d=i.clockWise,y=(c+l)/2,v=k(f,p),x=0>v?-1:1,_=void 0,w=void 0;"insideStart"===a?(_=f+x*o,w=d):"insideEnd"===a?(_=p-x*o,w=!d):"end"===a&&(_=p+x*o,w=d),w=v>0?!w:w;var O=n.i(b.a)(u,s,y,_),A=n.i(b.a)(u,s,y,_+359*(w?1:-1)),T="M"+O.x+","+O.y+"\n A"+y+","+y+",0,1,"+(w?0:1)+",\n "+A.x+","+A.y,M=n.i(m.d)("recharts-radial-line-");return h.a.createElement("text",g({},r,{dominantBaseline:"central",className:"recharts-radial-bar-label"}),h.a.createElement("defs",null,h.a.createElement("path",{id:M,d:T})),h.a.createElement("textPath",{xlinkHref:"#"+M},t))},M=function(e){var t=e.viewBox,r=e.offset,a=e.position,i=t.cx,o=t.cy,u=t.innerRadius,s=t.outerRadius,c=t.startAngle,l=t.endAngle,f=(c+l)/2;if("outside"===a){var h=n.i(b.a)(i,o,s+r,f),p=h.x;return{x:p,y:h.y,textAnchor:i>p?"end":"start",verticalAnchor:"middle"}}if("center"===a)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"middle"};var d=(u+s)/2,y=n.i(b.a)(i,o,d,f);return{x:y.x,y:y.y,textAnchor:"middle",verticalAnchor:"middle"}},E=function(e){var t=e.viewBox,r=e.offset,a=e.position,i=t.x,u=t.y,s=t.width,c=t.height,l=0>c?-1:1;return"top"===a?{x:i+s/2,y:u-l*r,textAnchor:"middle",verticalAnchor:"end"}:"bottom"===a?{x:i+s/2,y:u+c+l*r,textAnchor:"middle",verticalAnchor:"start"}:"left"===a?{x:i-r,y:u+c/2,textAnchor:"end",verticalAnchor:"middle"}:"right"===a?{x:i+s+r,y:u+c/2,textAnchor:"start",verticalAnchor:"middle"}:"insideLeft"===a?{x:i+r,y:u+c/2,textAnchor:"start",verticalAnchor:"middle"}:"insideRight"===a?{x:i+s-r,y:u+c/2,textAnchor:"end",verticalAnchor:"middle"}:"insideTop"===a?{x:i+s/2,y:u+l*r,textAnchor:"middle",verticalAnchor:"start"}:"insideBottom"===a?{x:i+s/2,y:u+c-l*r,textAnchor:"middle",verticalAnchor:"end"}:"insideTopLeft"===a?{x:i+r,y:u+l*r,textAnchor:"start",verticalAnchor:"start"}:"insideTopRight"===a?{x:i+s-r,y:u+l*r,textAnchor:"end",verticalAnchor:"start"}:"insideBottomLeft"===a?{x:i+r,y:u+c-l*r,textAnchor:"start",verticalAnchor:"end"}:"insideBottomRight"===a?{x:i+s-r,y:u+c-l*r,textAnchor:"end",verticalAnchor:"end"}:o()(a)&&(n.i(m.b)(a.x)||n.i(m.i)(a.x))&&(n.i(m.b)(a.y)||n.i(m.i)(a.y))?{x:i+n.i(m.c)(a.x,s),y:u+n.i(m.c)(a.y,c),textAnchor:"end",verticalAnchor:"end"}:{x:i+s/2,y:u+c/2,textAnchor:"middle",verticalAnchor:"middle"}},S=function(e){return n.i(m.b)(e.cx)};a.displayName="Label",a.defaultProps=O,a.propTypes=w;var P=function(e){var t=e.cx,r=e.cy,a=e.angle,i=e.startAngle,o=e.endAngle,u=e.r,s=e.radius,c=e.innerRadius,l=e.outerRadius,f=e.x,h=e.y,p=e.top,d=e.left,y=e.width,v=e.height,b=e.clockWise;if(n.i(m.b)(y)&&n.i(m.b)(v)){if(n.i(m.b)(f)&&n.i(m.b)(h))return{x:f,y:h,width:y,height:v};if(n.i(m.b)(p)&&n.i(m.b)(d))return{x:p,y:d,width:y,height:v}}return n.i(m.b)(f)&&n.i(m.b)(h)?{x:f,y:h,width:0,height:0}:n.i(m.b)(t)&&n.i(m.b)(r)?{cx:t,cy:r,startAngle:i||a||0,endAngle:o||a||0,innerRadius:c||0,outerRadius:l||s||u||0,clockWise:b}:e.viewBox?e.viewBox:{}},j=function(e,t){return e?!0===e?h.a.createElement(a,{key:"label-implicit",viewBox:t}):n.i(m.a)(e)?h.a.createElement(a,{key:"label-implicit",viewBox:t,value:e}):n.i(f.isValidElement)(e)||s()(e)?h.a.createElement(a,{key:"label-implicit",content:e,viewBox:t}):o()(e)?h.a.createElement(a,g({viewBox:t},e,{key:"label-implicit"})):null:null},C=function(e,t){var i=2>=arguments.length||void 0===arguments[2]||arguments[2];if(!e||!e.children&&i&&!e.label)return null;var o=e.children,u=P(e),s=n.i(v.c)(o,a).map(function(e,r){return n.i(f.cloneElement)(e,{viewBox:t||u,key:"label-"+r})});return i?[j(e.label,t||u)].concat(r(s)):s};a.parseViewBox=P,a.renderCallByParent=C,t.a=a},function(e,t,n){"use strict";var r=n(82);n.d(t,"f",function(){return r.h}),n.d(t,"e",function(){return r.g}),n.d(t,"d",function(){return r.f});var a=n(254);n.d(t,"c",function(){return a.b}),n.d(t,"b",function(){return a.a});var i=n(253);n.d(t,"a",function(){return i.a})},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){var n={};for(var r in e)0>t.indexOf(r)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){var t=e.data,r=e.valueAccessor,i=e.dataKey,o=e.clockWise,u=a(e,["data","valueAccessor","dataKey","clockWise"]);return t&&t.length?m.a.createElement(_.a,{className:"recharts-label-list"},t.map(function(e,t){var a=f()(i)?r(e,t):n.i(O.m)(e&&e.payload,i);return m.a.createElement(x.a,A({},n.i(w.e)(e),u,{index:t,value:a,viewBox:x.a.parseViewBox(f()(o)?e:A({},e,{clockWise:o})),key:"label-"+t}))})):null}var o=n(25),u=n.n(o),s=n(5),c=n.n(s),l=n(12),f=n.n(l),h=n(384),p=n.n(h),d=n(11),y=n.n(d),v=n(1),m=n.n(v),b=n(0),g=n.n(b),x=n(19),_=n(7),w=n(2),O=n(8),A=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k={data:g.a.arrayOf(g.a.object),valueAccessor:g.a.func,clockWise:g.a.bool,dataKey:g.a.oneOfType([g.a.string,g.a.number,g.a.func])},T={valueAccessor:function(e){return y()(e.value)?p()(e.value):e.value}};i.propTypes=k,i.displayName="LabelList";var M=function(e,t){return e?!0===e?m.a.createElement(i,{key:"labelList-implicit",data:t}):m.a.isValidElement(e)||c()(e)?m.a.createElement(i,{key:"labelList-implicit",data:t,content:e}):u()(e)?m.a.createElement(i,A({data:t},e,{key:"labelList-implicit"})):null:null};i.renderCallByParent=function(e,t){var a=2>=arguments.length||void 0===arguments[2]||arguments[2];if(!e||!e.children&&a&&!e.label)return null;var o=e.children,u=n.i(w.c)(o,i).map(function(e,r){return n.i(v.cloneElement)(e,{data:t,key:"labelList-"+r})});return a?[M(e.label,t)].concat(r(u)):u},i.defaultProps=T,t.a=i},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)0>t.indexOf(r)&&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(!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 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 u,s,c=n(12),l=n.n(c),f=n(1),h=n.n(f),p=n(0),d=n.n(p),y=n(412),v=n.n(y),m=n(4),b=n.n(m),g=n(6),x=n(2),_=n(73),w=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O=function(){function e(e,t){for(var n=0;t.length>n;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}}(),A=function(e){try{return{wordsWithComputedWidth:(l()(e.children)?[]:(""+e.children).split(/\s+/)).map(function(t){return{word:t,width:n.i(_.c)(t,e.style).width}}),spaceWidth:n.i(_.c)(" ",e.style).width}}catch(e){return null}};t.a=(s=u=function(e){function t(){var e,n,r,o;a(this,t);for(var u=arguments.length,s=Array(u),c=0;u>c;c++)s[c]=arguments[c];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r.state={wordsByLines:[]},o=n,i(r,o)}return o(t,e),O(t,[{key:"componentWillMount",value:function(){this.updateWordsByLines(this.props,!0)}},{key:"componentWillReceiveProps",value:function(e){this.updateWordsByLines(e,this.props.children!==e.children||this.props.style!==e.style)}},{key:"updateWordsByLines",value:function(e,t){if(!e.width&&!e.scaleToFit||n.i(x.k)())this.updateWordsWithoutCalculate(e);else{if(t){var r=A(e);if(!r)return void this.updateWordsWithoutCalculate(e);var a=r.wordsWithComputedWidth,i=r.spaceWidth;this.wordsWithComputedWidth=a,this.spaceWidth=i}this.setState({wordsByLines:this.calculateWordsByLines(this.wordsWithComputedWidth,this.spaceWidth,e.width)})}}},{key:"updateWordsWithoutCalculate",value:function(e){this.setState({wordsByLines:[{words:l()(e.children)?[]:(""+e.children).split(/\s+/)}]})}},{key:"calculateWordsByLines",value:function(e,t,n){var r=this.props.scaleToFit;return e.reduce(function(e,a){var i=a.word,o=a.width,u=e[e.length-1];if(u&&(null==n||r||n>u.width+o+t))u.words.push(i),u.width+=o+t;else{e.push({words:[i],width:o})}return e},[])}},{key:"render",value:function(){var e=this.props,t=e.dx,a=e.dy,i=e.textAnchor,o=e.verticalAnchor,u=e.scaleToFit,s=e.angle,c=e.lineHeight,l=e.capHeight,f=e.className,p=r(e,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className"]),d=this.state.wordsByLines;if(!n.i(g.a)(p.x)||!n.i(g.a)(p.y))return null;var y=p.x+(n.i(g.b)(t)?t:0),m=p.y+(n.i(g.b)(a)?a:0),_=void 0;switch(o){case"start":_=v()("calc("+l+")");break;case"middle":_=v()("calc("+(d.length-1)/2+" * -"+c+" + ("+l+" / 2))");break;default:_=v()("calc("+(d.length-1)+" * -"+c+")")}var O=[];if(u){O.push("scale("+this.props.width/d[0].width+")")}return s&&O.push("rotate("+s+", "+y+", "+m+")"),O.length&&(p.transform=O.join(" ")),h.a.createElement("text",w({},n.i(x.e)(p),{x:y,y:m,className:b()("recharts-text",f),textAnchor:i}),d.map(function(e,t){return h.a.createElement("tspan",{x:y,dy:0===t?_:c,key:t},e.words.join(" "))}))}}]),t}(f.Component),u.propTypes=w({},x.m,{scaleToFit:d.a.bool,angle:d.a.number,textAnchor:d.a.oneOf(["start","middle","end","inherit"]),verticalAnchor:d.a.oneOf(["start","middle","end"]),style:d.a.object}),u.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"},s)},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 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)}var o,u,s,c=n(1),l=n.n(c),f=n(0),h=n.n(f),p=n(4),d=n.n(p),y=n(3),v=n(2),m=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b=function(){function e(e,t){for(var n=0;t.length>n;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}}();t.a=n.i(y.b)((s=u=function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),b(t,[{key:"render",value:function(){var e=this.props,t=e.cx,r=e.cy,a=e.r,i=e.className,o=d()("recharts-dot",i);return t===+t&&r===+r&&a===+a?l.a.createElement("circle",m({},n.i(v.e)(this.props),n.i(v.g)(this.props),{className:o,cx:t,cy:r,r:a})):null}}]),t}(c.Component),u.displayName="Dot",u.propTypes={className:h.a.string,cx:h.a.number,cy:h.a.number,r:h.a.number},o=s))||o},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return i});var r=Array.prototype,a=r.map,i=r.slice},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},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 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)}var o,u,s,c=n(1),l=(n.n(c),n(0)),f=n.n(l),h=n(3),p=n(2),d=function(){function e(e,t){for(var n=0;t.length>n;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}}();t.a=n.i(h.b)((s=u=function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),d(t,[{key:"render",value:function(){return null}}]),t}(c.Component),u.displayName="XAxis",u.propTypes={allowDecimals:f.a.bool,hide:f.a.bool,name:f.a.oneOfType([f.a.string,f.a.number]),unit:f.a.oneOfType([f.a.string,f.a.number]),xAxisId:f.a.oneOfType([f.a.string,f.a.number]),domain:f.a.arrayOf(f.a.oneOfType([f.a.string,f.a.number,f.a.oneOf(["auto","dataMin","dataMax"])])),dataKey:f.a.oneOfType([f.a.string,f.a.number,f.a.func]),width:f.a.number,height:f.a.number,mirror:f.a.bool,orientation:f.a.oneOf(["top","bottom"]),type:f.a.oneOf(["number","category"]),ticks:f.a.array,tickCount:f.a.number,tickFormatter:f.a.func,padding:f.a.shape({left:f.a.number,right:f.a.number}),allowDataOverflow:f.a.bool,scale:f.a.oneOfType([f.a.oneOf(p.o),f.a.func]),tick:f.a.oneOfType([f.a.bool,f.a.func,f.a.object,f.a.element]),axisLine:f.a.oneOfType([f.a.bool,f.a.object]),tickLine:f.a.oneOfType([f.a.bool,f.a.object]),minTickGap:f.a.number,tickSize:f.a.number,interval:f.a.oneOfType([f.a.number,f.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])]),reversed:f.a.bool},u.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",domain:[0,"auto"],padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1},o=s))||o},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 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)}var o,u,s,c=n(1),l=(n.n(c),n(0)),f=n.n(l),h=n(3),p=function(){function e(e,t){for(var n=0;t.length>n;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}}();t.a=n.i(h.b)((s=u=function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),p(t,[{key:"render",value:function(){return null}}]),t}(c.Component),u.displayName="YAxis",u.propTypes={allowDecimals:f.a.bool,hide:f.a.bool,name:f.a.oneOfType([f.a.string,f.a.number]),unit:f.a.oneOfType([f.a.string,f.a.number]),yAxisId:f.a.oneOfType([f.a.string,f.a.number]),domain:f.a.arrayOf(f.a.oneOfType([f.a.string,f.a.number,f.a.oneOf(["auto","dataMin","dataMax"])])),dataKey:f.a.oneOfType([f.a.string,f.a.number,f.a.func]),ticks:f.a.array,tickCount:f.a.number,tickFormatter:f.a.func,width:f.a.number,height:f.a.number,mirror:f.a.bool,orientation:f.a.oneOf(["left","right"]),type:f.a.oneOf(["number","category"]),padding:f.a.shape({top:f.a.number,bottom:f.a.number}),allowDataOverflow:f.a.bool,scale:f.a.oneOfType([f.a.oneOf(["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utcTime","sequential","threshold"]),f.a.func]),tick:f.a.oneOfType([f.a.bool,f.a.func,f.a.object,f.a.element]),axisLine:f.a.oneOfType([f.a.bool,f.a.object]),tickLine:f.a.oneOfType([f.a.bool,f.a.object]),minTickGap:f.a.number,tickSize:f.a.number,interval:f.a.oneOfType([f.a.number,f.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])]),reversed:f.a.bool},u.defaultProps={allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",domain:[0,"auto"],padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1},o=s))||o},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 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)}var o,u,s,c=n(11),l=n.n(c),f=n(5),h=n.n(f),p=n(1),d=n.n(p),y=n(0),v=n.n(y),m=n(88),b=n(4),g=n.n(b),x=n(3),_=n(2),w=n(6),O=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A=function(){function e(e,t){for(var n=0;t.length>n;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}}(),k={curveBasisClosed:m.o,curveBasisOpen:m.p,curveBasis:m.q,curveLinearClosed:m.r,curveLinear:m.s,curveMonotoneX:m.t,curveMonotoneY:m.u,curveNatural:m.v,curveStep:m.w,curveStepAfter:m.x,curveStepBefore:m.y},T=function(e){return e.x===+e.x&&e.y===+e.y},M=function(e){return e.x},E=function(e){return e.y},S=function(e,t){if(h()(e))return e;var n="curve"+e.slice(0,1).toUpperCase()+e.slice(1);return"curveMonotone"===n&&t?k[n+("vertical"===t?"Y":"X")]:k[n]||m.s};t.a=n.i(x.b)((s=u=function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),A(t,[{key:"getPath",value:function(){var e=this.props,t=e.type,r=e.points,a=e.baseLine,i=e.layout,o=e.connectNulls,u=S(t,i),s=o?r.filter(function(e){return T(e)}):r,c=void 0;if(l()(a)){var f=s.map(function(e,t){return O({},e,{base:a[t]})});return c="vertical"===i?n.i(m.z)().y(E).x1(M).x0(function(e){return e.base.x}):n.i(m.z)().x(M).y1(E).y0(function(e){return e.base.y}),c.defined(T).curve(u),c(f)}return c="vertical"===i&&n.i(w.b)(a)?n.i(m.z)().y(E).x1(M).x0(a):n.i(w.b)(a)?n.i(m.z)().x(M).y1(E).y0(a):n.i(m.A)().x(M).y(E),c.defined(T).curve(u),c(s)}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.points,a=e.path,i=e.pathRef;if(!(r&&r.length||a))return null;var o=r&&r.length?this.getPath():a;return d.a.createElement("path",O({},n.i(_.e)(this.props),n.i(_.g)(this.props),{className:g()("recharts-curve",t),d:o,ref:i}))}}]),t}(p.Component),u.displayName="Curve",u.propTypes=O({},_.m,{className:v.a.string,type:v.a.oneOfType([v.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),v.a.func]),layout:v.a.oneOf(["horizontal","vertical"]),baseLine:v.a.oneOfType([v.a.number,v.a.array]),points:v.a.arrayOf(v.a.object),connectNulls:v.a.bool,path:v.a.string,pathRef:v.a.func}),u.defaultProps={type:"linear",points:[],connectNulls:!1},o=s))||o},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 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)}var o,u,s,c=n(1),l=n.n(c),f=n(0),h=n.n(f),p=n(4),d=n.n(p),y=n(14),v=n.n(y),m=n(3),b=n(2),g=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x=function(){function e(e,t){for(var n=0;t.length>n;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}}(),_=function(e,t,n,r,a){var i=Math.min(Math.abs(n)/2,Math.abs(r)/2),o=0>r?-1:1,u=0>r?0:1,s=void 0;if(i>0&&a instanceof Array){for(var c=[],l=0;4>l;l++)c[l]=a[l]>i?i:a[l];s="M"+e+","+(t+o*c[0]),c[0]>0&&(s+="A "+c[0]+","+c[0]+",0,0,"+u+","+(e+c[0])+","+t),s+="L "+(e+n-c[1])+","+t,c[1]>0&&(s+="A "+c[1]+","+c[1]+",0,0,"+u+",\n "+(e+n)+","+(t+o*c[1])),s+="L "+(e+n)+","+(t+r-o*c[2]),c[2]>0&&(s+="A "+c[2]+","+c[2]+",0,0,"+u+",\n "+(e+n-c[2])+","+(t+r)),s+="L "+(e+c[3])+","+(t+r),c[3]>0&&(s+="A "+c[3]+","+c[3]+",0,0,"+u+",\n "+e+","+(t+r-o*c[3])),s+="Z"}else if(i>0&&a===+a&&a>0){var f=Math.min(i,a);s="M "+e+","+(t+o*f)+"\n A "+f+","+f+",0,0,"+u+","+(e+f)+","+t+"\n L "+(e+n-f)+","+t+"\n A "+f+","+f+",0,0,"+u+","+(e+n)+","+(t+o*f)+"\n L "+(e+n)+","+(t+r-o*f)+"\n A "+f+","+f+",0,0,"+u+","+(e+n-f)+","+(t+r)+"\n L "+(e+f)+","+(t+r)+"\n A "+f+","+f+",0,0,"+u+","+e+","+(t+r-o*f)+" Z"}else s="M "+e+","+t+" h "+n+" v "+r+" h "+-n+" Z";return s};t.a=n.i(m.b)((s=u=function(e){function t(){var e,n,i,o;r(this,t);for(var u=arguments.length,s=Array(u),c=0;u>c;c++)s[c]=arguments[c];return n=i=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.state={totalLength:-1},o=n,a(i,o)}return i(t,e),x(t,[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength){var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}}},{key:"render",value:function(){var e=this,t=this.props,r=t.x,a=t.y,i=t.width,o=t.height,u=t.radius,s=t.className,c=this.state.totalLength,f=this.props,h=f.animationEasing,p=f.animationDuration,y=f.animationBegin,m=f.isAnimationActive,x=f.isUpdateAnimationActive;if(r!==+r||a!==+a||i!==+i||o!==+o||0===i||0===o)return null;var w=d()("recharts-rectangle",s);return x?l.a.createElement(v.a,{canBegin:c>0,from:{width:i,height:o,x:r,y:a},to:{width:i,height:o,x:r,y:a},duration:p,animationEasing:h,isActive:x},function(t){var r=t.width,a=t.height,i=t.x,o=t.y;return l.a.createElement(v.a,{canBegin:c>0,from:"0px "+(-1===c?1:c)+"px",to:c+"px 0px",attributeName:"strokeDasharray",begin:y,duration:p,isActive:m,easing:h},l.a.createElement("path",g({},n.i(b.e)(e.props),n.i(b.g)(e.props),{className:w,d:_(i,o,r,a,u),ref:function(t){e.node=t}})))}):l.a.createElement("path",g({},n.i(b.e)(this.props),n.i(b.g)(this.props),{className:w,d:_(r,a,i,o,u)}))}}]),t}(c.Component),u.displayName="Rectangle",u.propTypes=g({},b.m,b.n,{className:h.a.string,x:h.a.number,y:h.a.number,width:h.a.number,height:h.a.number,radius:h.a.oneOfType([h.a.number,h.a.array]),isAnimationActive:h.a.bool,isUpdateAnimationActive:h.a.bool,animationBegin:h.a.number,animationDuration:h.a.number,animationEasing:h.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),u.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},o=s))||o},function(e,t,n){"use strict";t.a=function(e,t){return t>e?-1:e>t?1:t>e?NaN:0}},function(e,t,n){"use strict";t.a=function(e){return function(){return e}}},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)0>t.indexOf(r)&&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(!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 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 u,s,c=n(1),l=n.n(c),f=n(0),h=n.n(f),p=n(7),d=n(2),y=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(){function e(e,t){for(var n=0;t.length>n;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}}();t.a=(s=u=function(e){function t(){return a(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),v(t,[{key:"renderErrorBars",value:function(){var e=this.props,t=e.offset,a=e.layout,i=e.width,o=e.dataKey,u=e.data,s=e.dataPointFormatter,c=e.xAxis,f=e.yAxis,h=r(e,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),v=n.i(d.e)(h);return u.map(function(e,n){var r=s(e,o),u=r.x,h=r.y,d=r.value,m=r.errorVal;if(!m)return null;var b=void 0,g=void 0,x=void 0,_=void 0,w=void 0,O=void 0,A=void 0,k=void 0,T=void 0,M=void 0,E=void 0,S=void 0;return Array.isArray(m)?(E=m[0],S=m[1]):(E=m,S=m),"vertical"===a?(A=c.scale,b=d,g=h+t,x=A(b-E),_=g+i,w=A(b+S),O=g-i,k={x1:w,y1:_,x2:w,y2:O},T={x1:x,y1:g,x2:w,y2:g},M={x1:x,y1:_,x2:x,y2:O}):"horizontal"===a&&(A=f.scale,b=u+t,g=d,x=b-i,w=b+i,_=A(g-E),O=A(g+S),k={x1:x,y1:O,x2:w,y2:O},T={x1:b,y1:_,x2:b,y2:O},M={x1:x,y1:_,x2:w,y2:_}),l.a.createElement(p.a,y({className:"recharts-errorBar",key:n},v),l.a.createElement("line",k),l.a.createElement("line",T),l.a.createElement("line",M))})}},{key:"render",value:function(){return l.a.createElement(p.a,{className:"recharts-errorBars"},this.renderErrorBars())}}]),t}(c.Component),u.propTypes={dataKey:h.a.oneOfType([h.a.string,h.a.number,h.a.func]).isRequired,data:h.a.array,xAxis:h.a.object,yAxis:h.a.object,layout:h.a.string,dataPointFormatter:h.a.func,stroke:h.a.string,strokeWidth:h.a.number,width:h.a.number,offset:h.a.number},u.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},s)},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 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)}var o,u,s=n(1),c=(n.n(s),n(2)),l=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;t.length>n;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}}();t.a=(u=o=function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),f(t,[{key:"render",value:function(){return null}}]),t}(s.Component),o.displayName="Cell",o.propTypes=l({},c.m),u)},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)0>t.indexOf(r)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){var t=e.children,a=e.width,i=e.height,u=e.viewBox,s=e.className,c=e.style,p=r(e,["children","width","height","viewBox","className","style"]),d=u||{width:a,height:i,x:0,y:0},y=l()("recharts-surface",s),v=n.i(f.e)(p);return o.a.createElement("svg",h({},v,{className:y,width:a,height:i,style:c,viewBox:d.x+" "+d.y+" "+d.width+" "+d.height,version:"1.1"}),t)}var i=n(1),o=n.n(i),u=n(0),s=n.n(u),c=n(4),l=n.n(c),f=n(2),h=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};a.propTypes={width:s.a.number.isRequired,height:s.a.number.isRequired,viewBox:s.a.shape({x:s.a.number,y:s.a.number,width:s.a.number,height:s.a.number}),className:s.a.string,style:s.a.object,children:s.a.oneOfType([s.a.arrayOf(s.a.node),s.a.node])},t.a=a},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){return o});var a=(n(6),n(8)),i=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(e,t,o,u,s){var c=e.width,l=e.height,f=e.layout,h=Object.keys(t),p={left:o.left,leftMirror:o.left,right:c-o.right,rightMirror:c-o.right,top:o.top,topMirror:o.top,bottom:l-o.bottom,bottomMirror:l-o.bottom};return h.reduce(function(e,c){var l=t[c],h=l.orientation,d=l.domain,y=l.padding,v=void 0===y?{}:y,m=l.mirror,b=l.reversed,g=h+(m?"Mirror":""),x=void 0,_=void 0,w=void 0,O=void 0;x="xAxis"===u?[o.left+(v.left||0),o.left+o.width-(v.right||0)]:"yAxis"===u?"horizontal"===f?[o.top+o.height-(v.bottom||0),o.top+(v.top||0)]:[o.top+(v.top||0),o.top+o.height-(v.bottom||0)]:l.range,b&&(x=[x[1],x[0]]);var A=n.i(a.a)(l,s),k=A.scale,T=A.realScaleType;k.domain(d).range(x),n.i(a.b)(k);var M=n.i(a.c)(k,i({},l,{realScaleType:T}));"xAxis"===u?(O="top"===h&&!m||"bottom"===h&&m,_=o.left,w=p[g]-O*l.height):"yAxis"===u&&(O="left"===h&&!m||"right"===h&&m,_=p[g]-O*l.width,w=o.top);var E=i({},l,M,{realScaleType:T,x:_,y:w,scale:k,width:"xAxis"===u?o.width:l.width,height:"yAxis"===u?o.height:l.height});return l.hide||"xAxis"!==u?l.hide||(p[g]+=(O?-1:1)*E.width):p[g]+=(O?-1:1)*E.height,i({},e,r({},c,E))},{})}},function(e,t,n){"use strict";t.a=function(e){return null===e?NaN:+e}},function(e,t,n){"use strict";var r=n(86);n.d(t,"b",function(){return r.a});var a=(n(130),n(85),n(131),n(133),n(54));n.d(t,"a",function(){return a.a});var i=(n(134),n(269));n.d(t,"c",function(){return i.a});var o=(n(136),n(271),n(273),n(135),n(266),n(267),n(265),n(264));n.d(t,"d",function(){return o.a});n(268)},function(e,t,n){"use strict";function r(e,t){return function(n){return e+n*t}}function a(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function i(e,t){var a=t-e;return a?r(e,a>180||-180>a?a-360*Math.round(a/360):a):n.i(s.a)(isNaN(e)?t:e)}function o(e){return 1==(e=+e)?u:function(t,r){return r-t?a(t,r,e):n.i(s.a)(isNaN(t)?r:t)}}function u(e,t){var a=t-e;return a?r(e,a):n.i(s.a)(isNaN(e)?t:e)}t.b=i,t.c=o,t.a=u;var s=n(132)},function(e,t,n){"use strict";t.a=function(e){return e.match(/.{6}/g).map(function(e){return"#"+e})}},function(e,t,n){"use strict";function r(e){var t=e.domain;return e.ticks=function(e){var r=t();return n.i(i.a)(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){return n.i(s.a)(t(),e,r)},e.nice=function(r){var a=t(),o=a.length-1,u=null==r?10:r,s=a[0],c=a[o],l=n.i(i.b)(s,c,u);return l&&(l=n.i(i.b)(Math.floor(s/l)*l,Math.ceil(c/l)*l,u),a[0]=Math.floor(s/l)*l,a[o]=Math.ceil(c/l)*l,t(a)),e},e}function a(){var e=n.i(u.a)(u.b,o.a);return e.copy=function(){return n.i(u.c)(e,a())},r(e)}t.b=r,t.a=a;var i=n(15),o=n(37),u=n(56),s=n(289)},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a}),n.d(t,"d",function(){return i}),n.d(t,"c",function(){return o});var r=1e-12,a=Math.PI,i=a/2,o=2*a},function(e,t,n){"use strict";t.a=function(e,t){if((r=e.length)>1)for(var n,r,a=1,i=e[t[0]],o=i.length;r>a;++a){n=i,i=e[t[a]];for(var u=0;o>u;++u)i[u][1]+=i[u][0]=isNaN(n[u][1])?n[u][0]:n[u][1]}}},function(e,t,n){"use strict";t.a=function(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}},function(e,t,n){function r(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?u(e)?i(e[0],e[1]):a(e):s(e)}var a=n(345),i=n(346),o=n(45),u=n(11),s=n(388);e.exports=r},function(e,t){function n(e){return e}e.exports=n},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},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 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)}var o,u,s,c=n(1),l=(n.n(c),n(0)),f=n.n(l),h=n(3),p=function(){function e(e,t){for(var n=0;t.length>n;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}}();t.a=n.i(h.b)((s=u=function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),p(t,[{key:"render",value:function(){return null}}]),t}(c.Component),u.displayName="ZAxis",u.propTypes={type:f.a.oneOf(["number","category"]),name:f.a.oneOfType([f.a.string,f.a.number]),unit:f.a.oneOfType([f.a.string,f.a.number]),zAxisId:f.a.oneOfType([f.a.string,f.a.number]),dataKey:f.a.oneOfType([f.a.string,f.a.number,f.a.func]),range:f.a.arrayOf(f.a.number),scale:f.a.oneOfType([f.a.oneOf(["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utcTime","sequential","threshold"]),f.a.func])},u.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"},o=s))||o},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 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)}var o,u,s,c=n(12),l=n.n(c),f=n(5),h=n.n(f),p=n(1),d=n.n(p),y=n(0),v=n.n(y),m=n(14),b=(n.n(m),n(197)),g=n(2),x=n(6),_=n(3),w=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O=function(){function e(e,t){for(var n=0;t.length>n;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}}(),A={content:v.a.oneOfType([v.a.element,v.a.func]),viewBox:v.a.shape({x:v.a.number,y:v.a.number,width:v.a.number,height:v.a.number}),active:v.a.bool,separator:v.a.string,formatter:v.a.func,offset:v.a.number,itemStyle:v.a.object,labelStyle:v.a.object,wrapperStyle:v.a.object,cursor:v.a.oneOfType([v.a.bool,v.a.element,v.a.object]),coordinate:v.a.shape({x:v.a.number,y:v.a.number}),position:v.a.shape({x:v.a.number,y:v.a.number}),label:v.a.any,payload:v.a.arrayOf(v.a.shape({name:v.a.any,value:v.a.oneOfType([v.a.number,v.a.string,v.a.array]),unit:v.a.any})),isAnimationActive:v.a.bool,animationDuration:v.a.number,animationEasing:v.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),itemSorter:v.a.func},k={active:!1,offset:10,viewBox:{x1:0,x2:0,y1:0,y2:0},coordinate:{x:0,y:0},cursorStyle:{},separator:" : ",wrapperStyle:{},itemStyle:{},labelStyle:{},cursor:!0,isAnimationActive:!n.i(g.k)(),animationEasing:"ease",animationDuration:400,itemSorter:function(){return-1}},T=function(e,t){return d.a.isValidElement(e)?d.a.cloneElement(e,t):h()(e)?e(t):d.a.createElement(b.a,t)};t.a=n.i(_.b)((s=u=function(e){function t(){var e,n,i,o;r(this,t);for(var u=arguments.length,s=Array(u),c=0;u>c;c++)s[c]=arguments[c];return n=i=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.state={boxWidth:-1,boxHeight:-1},o=n,a(i,o)}return i(t,e),O(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-t)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e=this,t=this.props,r=t.payload,a=t.isAnimationActive,i=t.animationDuration,o=t.animationEasing,u=r&&r.length&&r.filter(function(e){return!l()(e.value)}).length,s=this.props,c=s.content,f=s.viewBox,h=s.coordinate,p=s.position,y=s.active,v=s.offset,b=s.wrapperStyle,g=w({pointerEvents:"none",visibility:y&&u?"visible":"hidden",position:"absolute",top:0},b),_=void 0,O=void 0;if(p&&n.i(x.b)(p.x)&&n.i(x.b)(p.y))_=p.x,O=p.y;else{var A=this.state,k=A.boxWidth,M=A.boxHeight;k>0&&M>0&&h?(_=p&&n.i(x.b)(p.x)?p.x:Math.max(h.x+k+v>f.x+f.width?h.x-k-v:h.x+v,f.x),O=p&&n.i(x.b)(p.y)?p.y:Math.max(h.y+M+v>f.y+f.height?h.y-M-v:h.y+v,f.y)):g.visibility="hidden"}return g=w({},g,n.i(m.translateStyle)({transform:"translate("+_+"px, "+O+"px)"})),a&&y&&(g=w({},g,n.i(m.translateStyle)({transition:"transform "+i+"ms "+o}))),d.a.createElement("div",{className:"recharts-tooltip-wrapper",style:g,ref:function(t){e.wrapperNode=t}},T(c,this.props))}}]),t}(p.Component),u.displayName="Tooltip",u.propTypes=A,u.defaultProps=k,o=s))||o},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 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)}var o,u,s,c=n(5),l=n.n(c),f=n(1),h=n.n(f),p=n(0),d=n.n(p),y=n(3),v=n(7),m=n(2),b=n(23),g=n(71),x=n(22),_=n(13),w=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O=function(){function e(e,t){for(var n=0;t.length>n;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}}(),A=Math.PI/180;t.a=n.i(y.b)((s=u=function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),O(t,[{key:"getTickLineCoord",value:function(e){var t=this.props,r=t.cx,a=t.cy,i=t.radius,o=t.orientation,u=t.tickLine,s=u&&u.size||8,c=n.i(_.a)(r,a,i,e.coordinate),l=n.i(_.a)(r,a,i+("inner"===o?-1:1)*s,e.coordinate);return{x1:c.x,y1:c.y,x2:l.x,y2:l.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*A);return n>1e-5?"outer"===t?"start":"end":-1e-5>n?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,r=e.cy,a=e.radius,i=e.axisLine,o=e.axisLineType,u=w({},n.i(m.e)(this.props),{fill:"none"},n.i(m.e)(i));if("circle"===o)return h.a.createElement(b.a,w({className:"recharts-polar-angle-axis-line"},u,{cx:t,cy:r,r:a}));var s=this.props.ticks,c=s.map(function(e){return n.i(_.a)(t,r,a,e.coordinate)});return h.a.createElement(g.a,w({className:"recharts-polar-angle-axis-line"},u,{points:c}))}},{key:"renderTickItem",value:function(e,t,n){return h.a.isValidElement(e)?h.a.cloneElement(e,t):l()(e)?e(t):h.a.createElement(x.a,w({},t,{className:"recharts-polar-angle-axis-tick-value"}),n)}},{key:"renderTicks",value:function(){var e=this,t=this.props,r=t.ticks,a=t.tick,i=t.tickLine,o=t.tickFormatter,u=t.stroke,s=n.i(m.e)(this.props),c=n.i(m.e)(a),l=w({},s,{fill:"none"},n.i(m.e)(i)),f=r.map(function(t,r){var f=e.getTickLineCoord(t),p=e.getTickTextAnchor(t),d=w({textAnchor:p},s,{stroke:"none",fill:u},c,{index:r,payload:t,x:f.x2,y:f.y2});return h.a.createElement(v.a,w({className:"recharts-polar-angle-axis-tick",key:"tick-"+r},n.i(m.p)(e.props,t,r)),i&&h.a.createElement("line",w({className:"recharts-polar-angle-axis-tick-line"},l,f)),a&&e.renderTickItem(a,d,o?o(t.value):t.value))});return h.a.createElement(v.a,{className:"recharts-polar-angle-axis-ticks"},f)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n>0&&t&&t.length?h.a.createElement(v.a,{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks()):null}}]),t}(f.Component),u.displayName="PolarAngleAxis",u.axisType="angleAxis",u.propTypes=w({},m.m,m.n,{type:d.a.oneOf(["number","category"]),angleAxisId:d.a.oneOfType([d.a.string,d.a.number]),dataKey:d.a.oneOfType([d.a.number,d.a.string,d.a.func]),cx:d.a.number,cy:d.a.number,radius:d.a.oneOfType([d.a.number,d.a.string]),hide:d.a.bool,scale:d.a.oneOfType([d.a.oneOf(m.o),d.a.func]),axisLine:d.a.oneOfType([d.a.bool,d.a.object]),axisLineType:d.a.oneOf(["polygon","circle"]),tickLine:d.a.oneOfType([d.a.bool,d.a.object]),tick:d.a.oneOfType([d.a.bool,d.a.func,d.a.object,d.a.element]),ticks:d.a.arrayOf(d.a.shape({value:d.a.any,coordinate:d.a.number})),stroke:d.a.string,orientation:d.a.oneOf(["inner","outer"]),tickFormatter:d.a.func}),u.defaultProps={type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,domain:[0,"auto"],orientation:"outer",axisLine:!0,tickLine:!0,tick:!0,hide:!1},o=s))||o},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)0>t.indexOf(r)&&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(!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 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 u,s,c,l=n(5),f=n.n(l),h=n(386),p=n.n(h),d=n(176),y=n.n(d),v=n(1),m=n.n(v),b=n(0),g=n.n(b),x=n(3),_=n(22),w=n(19),O=n(7),A=n(2),k=n(13),T=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M=function(){function e(e,t){for(var n=0;t.length>n;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}}();t.a=n.i(x.b)((c=s=function(e){function t(){return a(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),M(t,[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,r=this.props,a=r.angle,i=r.cx,o=r.cy;return n.i(k.a)(i,o,t,a)}},{key:"getTickTextAnchor",value:function(){var e=this.props.orientation,t=void 0;switch(e){case"left":t="end";break;case"right":t="start";break;default:t="middle"}return t}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,a=e.ticks,i=y()(a,function(e){return e.coordinate||0});return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:p()(a,function(e){return e.coordinate||0}).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,a=e.cy,i=e.angle,o=e.ticks,u=e.axisLine,s=r(e,["cx","cy","angle","ticks","axisLine"]),c=o.reduce(function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]},[1/0,-1/0]),l=n.i(k.a)(t,a,c[0],i),f=n.i(k.a)(t,a,c[1],i),h=T({},n.i(A.e)(s),{fill:"none"},n.i(A.e)(u),{x1:l.x,y1:l.y,x2:f.x,y2:f.y});return m.a.createElement("line",T({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTickItem",value:function(e,t,n){return m.a.isValidElement(e)?m.a.cloneElement(e,t):f()(e)?e(t):m.a.createElement(_.a,T({},t,{className:"recharts-polar-radius-axis-tick-value"}),n)}},{key:"renderTicks",value:function(){var e=this,t=this.props,a=t.ticks,i=t.tick,o=t.angle,u=t.tickFormatter,s=t.stroke,c=r(t,["ticks","tick","angle","tickFormatter","stroke"]),l=this.getTickTextAnchor(),f=n.i(A.e)(c),h=n.i(A.e)(i),p=a.map(function(t,r){var a=e.getTickValueCoord(t),c=T({textAnchor:l,transform:"rotate("+(90-o)+", "+a.x+", "+a.y+")"},f,{stroke:"none",fill:s},h,{index:r},a,{payload:t});return m.a.createElement(O.a,T({className:"recharts-polar-radius-axis-tick",key:"tick-"+r},n.i(A.p)(e.props,t,r)),e.renderTickItem(i,c,u?u(t.value):t.value))});return m.a.createElement(O.a,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.axisLine,r=e.tick;return t&&t.length?m.a.createElement(O.a,{className:"recharts-polar-radius-axis"},n&&this.renderAxisLine(),r&&this.renderTicks(),w.a.renderCallByParent(this.props,this.getViewBox())):null}}]),t}(v.Component),s.displayName="PolarRadiusAxis",s.axisType="radiusAxis",s.propTypes=T({},A.m,A.n,{type:g.a.oneOf(["number","category"]),cx:g.a.number,cy:g.a.number,hide:g.a.bool,radiusAxisId:g.a.oneOfType([g.a.string,g.a.number]),angle:g.a.number,tickCount:g.a.number,ticks:g.a.arrayOf(g.a.shape({value:g.a.any,coordinate:g.a.number})),orientation:g.a.oneOf(["left","right","middle"]),axisLine:g.a.oneOfType([g.a.bool,g.a.object]),tick:g.a.oneOfType([g.a.bool,g.a.object,g.a.element,g.a.func]),stroke:g.a.string,tickFormatter:g.a.func,domain:g.a.arrayOf(g.a.oneOfType([g.a.number,g.a.oneOf(["auto","dataMin","dataMax"])])),scale:g.a.oneOfType([g.a.oneOf(["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utcTime","sequential","threshold"]),g.a.func]),allowDataOverflow:g.a.bool}),s.defaultProps={type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,domain:[0,"auto"],allowDataOverflow:!1,scale:"auto"},u=c))||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 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)}var o,u,s,c=n(1),l=n.n(c),f=n(0),h=n.n(f),p=n(4),d=n.n(p),y=n(3),v=n(2),m=n(13),b=n(6),g=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x=function(){function e(e,t){for(var n=0;t.length>n;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}}(),_=function(e,t){return n.i(b.h)(t-e)*Math.min(Math.abs(t-e),359.999)},w=function(e){var t=e.cx,r=e.cy,a=e.radius,i=e.angle,o=e.sign,u=e.isExternal,s=e.cornerRadius,c=s*(u?1:-1)+a,l=Math.asin(s/c)/m.e,f=i+o*l;return{center:n.i(m.a)(t,r,c,f),circleTangency:n.i(m.a)(t,r,a,f),lineTangency:n.i(m.a)(t,r,c*Math.cos(l*m.e),i),theta:l}},O=function(e){var t=e.cx,r=e.cy,a=e.innerRadius,i=e.outerRadius,o=e.startAngle,u=e.endAngle,s=_(o,u),c=o+s,l=n.i(m.a)(t,r,i,o),f=n.i(m.a)(t,r,i,c),h="M "+l.x+","+l.y+"\n A "+i+","+i+",0,\n "+ +(Math.abs(s)>180)+","+ +(o>c)+",\n "+f.x+","+f.y+"\n ";if(a>0){var p=n.i(m.a)(t,r,a,o),d=n.i(m.a)(t,r,a,c);h+="L "+d.x+","+d.y+"\n A "+a+","+a+",0,\n "+ +(Math.abs(s)>180)+","+ +(c>=o)+",\n "+p.x+","+p.y+" Z"}else h+="L "+t+","+r+" Z";return h},A=function(e){var t=e.cx,r=e.cy,a=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,u=e.startAngle,s=e.endAngle,c=n.i(b.h)(s-u),l=w({cx:t,cy:r,radius:i,angle:u,sign:c,cornerRadius:o}),f=l.circleTangency,h=l.lineTangency,p=l.theta,d=w({cx:t,cy:r,radius:i,angle:s,sign:-c,cornerRadius:o}),y=d.circleTangency,v=d.lineTangency,m=d.theta,g=Math.abs(u-s)-p-m;if(0>g)return O({cx:t,cy:r,innerRadius:a,outerRadius:i,startAngle:u,endAngle:s});var x="M "+h.x+","+h.y+"\n A"+o+","+o+",0,0,"+ +(0>c)+","+f.x+","+f.y+"\n A"+i+","+i+",0,"+ +(g>180)+","+ +(0>c)+","+y.x+","+y.y+"\n A"+o+","+o+",0,0,"+ +(0>c)+","+v.x+","+v.y+"\n ";if(a>0){var _=w({cx:t,cy:r,radius:a,angle:u,sign:c,isExternal:!0,cornerRadius:o}),A=_.circleTangency,k=_.lineTangency,T=_.theta,M=w({cx:t,cy:r,radius:a,angle:s,sign:-c,isExternal:!0,cornerRadius:o}),E=M.circleTangency,S=M.lineTangency,P=M.theta,j=Math.abs(u-s)-T-P;if(0>j)return x+"L"+t+","+r+"Z";x+="L"+S.x+","+S.y+"\n A"+o+","+o+",0,0,"+ +(0>c)+","+E.x+","+E.y+"\n A"+a+","+a+",0,"+ +(j>180)+","+ +(c>0)+","+A.x+","+A.y+"\n A"+o+","+o+",0,0,"+ +(0>c)+","+k.x+","+k.y+"Z"}else x+="L"+t+","+r+"Z";return x};t.a=n.i(y.b)((s=u=function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),x(t,[{key:"render",value:function(){var e=this.props,t=e.cx,r=e.cy,a=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,u=e.startAngle,s=e.endAngle,c=e.className;if(a>i||u===s)return null;var f=d()("recharts-sector",c),h=i-a,p=n.i(b.c)(o,h,0,!0),y=void 0;return y=p>0&&360>Math.abs(u-s)?A({cx:t,cy:r,innerRadius:a,outerRadius:i,cornerRadius:Math.min(p,h/2),startAngle:u,endAngle:s}):O({cx:t,cy:r,innerRadius:a,outerRadius:i,startAngle:u,endAngle:s}),l.a.createElement("path",g({},n.i(v.e)(this.props),n.i(v.g)(this.props),{className:f,d:y}))}}]),t}(c.Component),u.displayName="Sector",u.propTypes=g({},v.m,{className:h.a.string,cx:h.a.number,cy:h.a.number,innerRadius:h.a.number,outerRadius:h.a.number,startAngle:h.a.number,endAngle:h.a.number,cornerRadius:h.a.oneOfType([h.a.number,h.a.string])}),u.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0},o=s))||o},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";var r=n(84);t.a=function(e){return e=n.i(r.a)(Math.abs(e)),e?e[1]:NaN}},function(e,t,n){"use strict";t.a=function(e,t){return e=+e,t-=e,function(n){return e+t*n}}},function(e,t,n){"use strict";var r=n(274);n.d(t,"a",function(){return r.a})},function(e,t,n){"use strict";function r(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:n.i(p.a)(t)}function a(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e>t?n>e?r(e):1:0}}}function i(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e>0?1>e?r(e):n:t}}}function o(e,t,n,r){var a=e[0],i=e[1],o=t[0],u=t[1];return a>i?(a=n(i,a),o=r(u,o)):(a=n(a,i),o=r(o,u)),function(e){return o(a(e))}}function u(e,t,r,a){var i=Math.min(e.length,t.length)-1,o=Array(i),u=Array(i),s=-1;for(e[0]>e[i]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=r(e[s],e[s+1]),u[s]=a(t[s],t[s+1]);return function(t){var r=n.i(l.c)(e,t,1,i)-1;return u[r](o[r](t))}}function s(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function c(e,t){function n(){return c=Math.min(v.length,m.length)>2?u:o,l=p=null,s}function s(t){return(l||(l=c(v,m,g?a(e):e,b)))(+t)}var c,l,p,v=y,m=y,b=f.b,g=!1;return s.invert=function(e){return(p||(p=c(m,v,r,g?i(t):t)))(+e)},s.domain=function(e){return arguments.length?(v=h.a.call(e,d.a),n()):v.slice()},s.range=function(e){return arguments.length?(m=h.b.call(e),n()):m.slice()},s.rangeRound=function(e){return m=h.b.call(e),b=f.c,n()},s.clamp=function(e){return arguments.length?(g=!!e,n()):g},s.interpolate=function(e){return arguments.length?(b=e,n()):b},n()}t.b=r,t.c=s,t.a=c;var l=n(15),f=n(37),h=n(24),p=n(87),d=n(139),y=[0,1]},function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function a(e){this._context=e}t.b=r,t.a=a,a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:r(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:r(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},t.c=function(e){return new a(e)}},function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function a(e,t){this._context=e,this._k=(1-t)/6}t.b=r,t.a=a,a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:r(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};!function e(t){function n(e){return new a(e,t)}return n.tension=function(t){return e(+t)},n}(0)},function(e,t,n){"use strict";function r(e){this._context=e}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},t.a=function(e){return new r(e)}},function(e,t,n){"use strict";t.a=function(){}},function(e,t,n){function r(e,t){for(var n=e.length;n--;)if(a(e[n][0],t))return n;return-1}var a=n(375);e.exports=r},function(e,t,n){function r(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],u=t(o);if(null!=u&&(void 0===s?u===u&&!a(u):n(u,s)))var s=u,c=o}return c}var a=n(174);e.exports=r},function(e,t){function n(e){return a.call(e)}var r=Object.prototype,a=r.toString;e.exports=n},function(e,t,n){"use strict";function r(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}),t.warn=t.getTransitionVal=t.compose=t.translateStyle=t.mapObject=t.debugf=t.debug=t.log=t.generatePrefixStyle=t.getDashCase=t.identity=t.getIntersectionKeys=void 0;var a=n(378),i=function(e){return e&&e.__esModule?e:{default:e}}(a),o=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=["Webkit","Moz","O","ms"],s=["-webkit-","-moz-","-o-","-ms-"],c=["transform","transformOrigin","transition"],l=(t.getIntersectionKeys=function(e,t){return(0,i.default)(Object.keys(e),Object.keys(t))},t.identity=function(e){return e}),f=t.getDashCase=function(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})},h=t.generatePrefixStyle=function(e,t){if(-1===c.indexOf(e))return r({},e,t);var n="transition"===e,a=e.replace(/(\w)/,function(e){return e.toUpperCase()}),i=t;return u.reduce(function(e,u,c){return n&&(i=t.replace(/(transform|transform-origin)/gim,s[c]+"$1")),o({},e,r({},u+a,i))},{})},p=t.log=function(){var e;(e=console).log.apply(e,arguments)};t.debug=function(e){return function(t){return p(e,t),t}},t.debugf=function(e,t){return function(){for(var n=arguments.length,r=Array(n),a=0;n>a;a++)r[a]=arguments[a];var i=t.apply(void 0,r),o=e||t.name||"anonymous function",u="("+r.map(JSON.stringify).join(", ")+")";return p(o+": "+u+" => "+JSON.stringify(i)),i}},t.mapObject=function(e,t){return Object.keys(t).reduce(function(n,a){return o({},n,r({},a,e(a,t[a])))},{})},t.translateStyle=function(e){return Object.keys(e).reduce(function(e,t){return o({},e,h(t,e[t]))},e)},t.compose=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];if(!t.length)return l;var r=t.reverse(),a=r[0],i=r.slice(1);return function(){return i.reduce(function(e,t){return t(e)},a.apply(void 0,arguments))}},t.getTransitionVal=function(e,t,n){return e.map(function(e){return f(e)+" "+t+"ms "+n}).join(",")},t.warn=function(e,t,n,r,a,i,o,u){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n(200),n(34));n.d(t,"Surface",function(){return r.a});var a=n(7);n.d(t,"Layer",function(){return a.a});var i=n(70);n.d(t,"Legend",function(){return i.a});var o=n(48);n.d(t,"Tooltip",function(){return o.a});var u=n(198);n.d(t,"ResponsiveContainer",function(){return u.a});var s=n(33);n.d(t,"Cell",function(){return s.a});var c=n(22);n.d(t,"Text",function(){return c.a});var l=n(19);n.d(t,"Label",function(){return l.a});var f=n(21);n.d(t,"LabelList",function(){return f.a});var h=n(51);n.d(t,"Sector",function(){return h.a});var p=n(28);n.d(t,"Curve",function(){return p.a});var d=n(29);n.d(t,"Rectangle",function(){return d.a});var y=n(71);n.d(t,"Polygon",function(){return y.a});var v=n(23);n.d(t,"Dot",function(){return v.a});var m=n(107);n.d(t,"Cross",function(){return m.a});var b=n(72);n.d(t,"Symbols",function(){return b.a});var g=n(199);n.d(t,"PolarGrid",function(){return g.a});var x=n(50);n.d(t,"PolarRadiusAxis",function(){return x.a});var _=n(49);n.d(t,"PolarAngleAxis",function(){return _.a});var w=n(104);n.d(t,"Pie",function(){return w.a});var O=n(105);n.d(t,"Radar",function(){return O.a});var A=n(106);n.d(t,"RadialBar",function(){return A.a});var k=n(99);n.d(t,"Brush",function(){return k.a});var T=n(103);n.d(t,"ReferenceLine",function(){return T.a});var M=n(102);n.d(t,"ReferenceDot",function(){return M.a});var E=n(101);n.d(t,"ReferenceArea",function(){return E.a});var S=n(100);n.d(t,"CartesianAxis",function(){return S.a});var P=n(185);n.d(t,"CartesianGrid",function(){return P.a});var j=n(68);n.d(t,"Line",function(){return j.a});var C=n(66);n.d(t,"Area",function(){return C.a});var N=n(67);n.d(t,"Bar",function(){return N.a});var I=n(69);n.d(t,"Scatter",function(){return I.a});var R=n(26);n.d(t,"XAxis",function(){return R.a});var L=n(27);n.d(t,"YAxis",function(){return L.a});var D=n(47);n.d(t,"ZAxis",function(){return D.a});var B=n(32);n.d(t,"ErrorBar",function(){return B.a});var z=n(189);n.d(t,"LineChart",function(){return z.a});var W=n(187);n.d(t,"BarChart",function(){return W.a});var F=n(190);n.d(t,"PieChart",function(){return F.a});var q=n(195);n.d(t,"Treemap",function(){return q.a});var G=n(193);n.d(t,"Sankey",function(){return G.a});var U=n(191);n.d(t,"RadarChart",function(){return U.a});var H=n(194);n.d(t,"ScatterChart",function(){return H.a});var X=n(186);n.d(t,"AreaChart",function(){return X.a});var V=n(192);n.d(t,"RadialBarChart",function(){return V.a});var K=n(188);n.d(t,"ComposedChart",function(){return K.a})},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 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)}var o,u,s,c=n(17),l=n.n(c),f=n(5),h=n.n(f),p=n(12),d=n.n(p),y=n(11),v=n.n(y),m=n(1),b=n.n(m),g=n(0),x=n.n(g),_=n(4),w=n.n(_),O=n(14),A=n.n(O),k=n(28),T=n(23),M=n(7),E=n(21),S=n(3),P=n(2),j=n(6),C=n(8),N=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I=function(){function e(e,t){for(var n=0;t.length>n;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}}(),R=n.i(S.b)((s=u=function(e){function t(){var e,i,o,u;r(this,t);for(var s=arguments.length,c=Array(s),l=0;s>l;l++)c[l]=arguments[l];return i=o=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),o.state={isAnimationFinished:!0},o.id=n.i(j.d)("recharts-area-"),o.cachePrevData=function(e,t){o.setState({prevPoints:e,prevBaseLine:t})},o.handleAnimationEnd=function(){var e=o.props.onAnimationEnd;o.setState({isAnimationFinished:!0}),h()(e)&&e()},o.handleAnimationStart=function(){var e=o.props.onAnimationStart;o.setState({isAnimationFinished:!1}),h()(e)&&e()},u=i,a(o,u)}return i(t,e),I(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.animationId,r=t.points,a=t.baseLine;e.animationId!==n&&this.cachePrevData(r,a)}},{key:"renderDots",value:function(){var e=this;if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,r=t.dot,a=t.points,i=n.i(P.e)(this.props),o=n.i(P.e)(r),u=a.map(function(t,n){var a=N({key:"dot-"+n,r:3},i,o,{cx:t.x,cy:t.y,index:n,value:t.value,payload:t.payload});return e.constructor.renderDotItem(r,a)});return b.a.createElement(M.a,{className:"recharts-area-dots"},u)}},{key:"renderHorizontalRect",value:function(e){var t=this.props,r=t.baseLine,a=t.points,i=t.strokeWidth,o=a[0].x,u=a[a.length-1].x,s=e*Math.abs(o-u),c=Math.max.apply(null,a.map(function(e){return e.y||0}));return c=n.i(j.b)(r)?Math.max(r,c):Math.max(Math.max.apply(null,r.map(function(e){return e.y||0})),c),b.a.createElement("rect",{x:u>o?o:o-s,y:0,width:s,height:c+(i||1)})}},{key:"renderVerticalRect",value:function(e){var t=this.props,r=t.baseLine,a=t.points,i=t.strokeWidth,o=a[0].y,u=a[a.length-1].y,s=e*Math.abs(o-u),c=Math.max.apply(null,a.map(function(e){return e.x||0}));return c=n.i(j.b)(r)?Math.max(r,c):Math.max(Math.max.apply(null,r.map(function(e){return e.x||0})),c),b.a.createElement("rect",{x:0,y:u>o?o:o-s,width:c+(i||1),height:s})}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(e,t,r){var a=this.props,i=a.layout,o=a.type,u=a.stroke,s=a.connectNulls,c=a.isRange;return b.a.createElement(M.a,{clipPath:r?"url(#clipPath-"+this.id+")":null},"none"!==u&&b.a.createElement(k.a,N({},n.i(P.e)(this.props),{className:"recharts-area-curve",layout:i,type:o,connectNulls:s,fill:"none",points:e})),"none"!==u&&c&&b.a.createElement(k.a,N({},n.i(P.e)(this.props),{className:"recharts-area-curve",layout:i,type:o,connectNulls:s,fill:"none",points:t})),b.a.createElement(k.a,N({},this.props,{points:e,baseLine:t,stroke:"none",className:"recharts-area-area"})))}},{key:"renderAreaWithAnimation",value:function(e){var t=this,r=this.props,a=r.points,i=r.baseLine,o=r.isAnimationActive,u=r.animationBegin,s=r.animationDuration,c=r.animationEasing,l=r.animationId,f=this.state,h=f.prevPoints,p=f.prevBaseLine;return b.a.createElement(A.a,{begin:u,duration:s,isActive:o,easing:c,from:{t:0},to:{t:1},key:"area-"+l,onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var o=r.t;if(h){var u=a.map(function(e,t){if(h[t]){var r=h[t],a=n.i(j.g)(r.x,e.x),i=n.i(j.g)(r.y,e.y);return N({},e,{x:a(o),y:i(o)})}return e}),s=void 0;if(n.i(j.b)(i)){s=n.i(j.g)(p,i)(o)}else s=i.map(function(e,t){if(p[t]){var r=p[t],a=n.i(j.g)(r.x,e.x),i=n.i(j.g)(r.y,e.y);return N({},e,{x:a(o),y:i(o)})}return e});return t.renderAreaStatically(u,s,e)}return b.a.createElement(M.a,null,b.a.createElement("defs",null,b.a.createElement("clipPath",{id:"animationClipPath-"+t.id},t.renderClipRect(o))),b.a.createElement(M.a,{clipPath:"url(#animationClipPath-"+t.id+")"},t.renderAreaStatically(a,i,e)))})}},{key:"renderArea",value:function(e){var t=this.props,n=t.points,r=t.baseLine,a=t.isAnimationActive,i=this.state,o=i.prevPoints,u=i.prevBaseLine,s=i.totalLength;return a&&n&&n.length&&(!o&&s>0||!l()(o,n)||!l()(u,r))?this.renderAreaWithAnimation(e):this.renderAreaStatically(n,r,e)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,a=e.className,i=e.top,o=e.left,u=e.xAxis,s=e.yAxis,c=e.width,l=e.height,f=e.isAnimationActive;if(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,p=1===r.length,d=w()("recharts-area",a),y=u&&u.allowDataOverflow||s&&s.allowDataOverflow;return b.a.createElement(M.a,{className:d},y?b.a.createElement("defs",null,b.a.createElement("clipPath",{id:"clipPath-"+this.id},b.a.createElement("rect",{x:o,y:i,width:c,height:l}))):null,p?null:this.renderArea(y),(n||p)&&this.renderDots(),(!f||h)&&E.a.renderCallByParent(this.props,r))}}]),t}(m.Component),u.displayName="Area",u.propTypes=N({},P.m,P.n,{className:x.a.string,dataKey:x.a.oneOfType([x.a.string,x.a.number,x.a.func]).isRequired,type:x.a.oneOfType([x.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),x.a.func]),unit:x.a.oneOfType([x.a.string,x.a.number]),name:x.a.oneOfType([x.a.string,x.a.number]),yAxisId:x.a.oneOfType([x.a.string,x.a.number]),xAxisId:x.a.oneOfType([x.a.string,x.a.number]),yAxis:x.a.object,xAxis:x.a.object,stackId:x.a.oneOfType([x.a.number,x.a.string]),legendType:x.a.oneOf(P.q),connectNulls:x.a.bool,activeDot:x.a.oneOfType([x.a.object,x.a.element,x.a.func,x.a.bool]),dot:x.a.oneOfType([x.a.func,x.a.element,x.a.object,x.a.bool]),label:x.a.oneOfType([x.a.func,x.a.element,x.a.object,x.a.bool]),hide:x.a.bool,layout:x.a.oneOf(["horizontal","vertical"]),baseLine:x.a.oneOfType([x.a.number,x.a.array]),isRange:x.a.bool,points:x.a.arrayOf(x.a.shape({x:x.a.number,y:x.a.number,value:x.a.oneOfType([x.a.number,x.a.array])})),onAnimationStart:x.a.func,onAnimationEnd:x.a.func,animationId:x.a.number,isAnimationActive:x.a.bool,animationBegin:x.a.number,animationDuration:x.a.number,animationEasing:x.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),u.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!n.i(P.k)(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},u.getBaseValue=function(e,t,r){var a=e.layout,i=e.baseValue;if(n.i(j.b)(i))return i;var o="horizontal"===a?r:t,u=o.scale.domain();if("number"===o.type){var s=Math.max(u[0],u[1]),c=Math.min(u[0],u[1]);return"dataMin"===i?c:"dataMax"===i?s:0>s?s:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===i?u[0]:"dataMax"===i?u[1]:u[0]},u.getComposedData=function(e){var t=e.props,r=e.xAxis,a=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,u=e.bandSize,s=e.dataKey,c=e.stackedData,l=e.dataStartIndex,f=e.displayedData,h=e.offset,p=t.layout,y=c&&c.length,m=R.getBaseValue(t,r,a),b=!1,g=f.map(function(e,t){var f=void 0;return y?f=c[l+t]:(f=n.i(C.m)(e,s),v()(f)?b=!0:f=[m,f]),"horizontal"===p?{x:n.i(C.B)({axis:r,ticks:i,bandSize:u,entry:e,index:t}),y:d()(f[1])?null:a.scale(f[1]),value:f,payload:e}:{x:d()(f[1])?null:r.scale(f[1]),y:n.i(C.B)({axis:a,ticks:o,bandSize:u,entry:e,index:t}),value:f,payload:e}}),x=void 0;return x=y||b?g.map(function(e){return{x:"horizontal"===p?e.x:r.scale(e&&e.value[0]),y:"horizontal"===p?a.scale(e&&e.value[0]):e.y}}):"horizontal"===p?a.scale(m):r.scale(m),N({points:g,baseLine:x,layout:p,isRange:b},h)},u.renderDotItem=function(e,t){return b.a.isValidElement(e)?b.a.cloneElement(e,t):h()(e)?e(t):b.a.createElement(T.a,N({},t,{className:"recharts-area-dot"}))},o=s))||o;t.a=R},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 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)}var o,u,s,c=n(17),l=n.n(c),f=n(5),h=n.n(f),p=n(11),d=n.n(p),y=n(1),v=n.n(y),m=n(0),b=n.n(m),g=n(4),x=n.n(g),_=n(14),w=n.n(_),O=n(29),A=n(7),k=n(32),T=n(33),M=n(21),E=n(3),S=n(6),P=n(2),j=n(8),C=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N=function(){function e(e,t){for(var n=0;t.length>n;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}}();t.a=n.i(E.b)((s=u=function(e){function t(){var e,i,o,u;r(this,t);for(var s=arguments.length,c=Array(s),l=0;s>l;l++)c[l]=arguments[l];return i=o=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),o.state={isAnimationFinished:!1},o.id=n.i(S.d)("recharts-bar-"),o.cachePrevData=function(e){o.setState({prevData:e})},o.handleAnimationEnd=function(){o.setState({isAnimationFinished:!0}),o.props.onAnimationEnd()},o.handleAnimationStart=function(){o.setState({isAnimationFinished:!1}),o.props.onAnimationStart()},u=i,a(o,u)}return i(t,e),N(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.animationId,r=t.data;e.animationId!==n&&this.cachePrevData(r)}},{key:"renderRectangle",value:function(e,t){return v.a.isValidElement(e)?v.a.cloneElement(e,t):h()(e)?e(t):v.a.createElement(O.a,t)}},{key:"renderRectanglesStatically",value:function(e){var t=this,r=this.props.shape,a=n.i(P.e)(this.props);return e&&e.map(function(e,i){var o=C({},a,e,{index:i});return v.a.createElement(A.a,C({className:"recharts-bar-rectangle"},n.i(P.p)(t.props,e,i),{key:"rectangle-"+i}),t.renderRectangle(r,o))})}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,r=t.data,a=t.layout,i=t.isAnimationActive,o=t.animationBegin,u=t.animationDuration,s=t.animationEasing,c=t.animationId,l=this.state.prevData;return v.a.createElement(w.a,{begin:o,duration:u,isActive:i,easing:s,from:{t:0},to:{t:1},key:"bar-"+c,onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(t){var i=t.t,o=r.map(function(e,t){var r=l&&l[t];if(r){var o=n.i(S.g)(r.x,e.x),u=n.i(S.g)(r.y,e.y),s=n.i(S.g)(r.width,e.width),c=n.i(S.g)(r.height,e.height);return C({},e,{x:o(i),y:u(i),width:s(i),height:c(i)})}if("horizontal"===a){var f=n.i(S.g)(0,e.height),h=f(i);return C({},e,{y:e.y+e.height-h,height:h})}var p=n.i(S.g)(0,e.width),d=p(i);return C({},e,{width:d})});return v.a.createElement(A.a,null,e.renderRectanglesStatically(o))})}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&l()(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderErrorBar",value:function(){function e(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:n.i(j.m)(e,t)}}if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,r=t.data,a=t.xAxis,i=t.yAxis,o=t.layout,u=t.children,s=n.i(P.a)(u,k.a);return s?v.a.cloneElement(s,{data:r,xAxis:a,yAxis:i,layout:o,offset:"vertical"===o?r[0].height/2:r[0].width/2,dataPointFormatter:e}):null}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,a=e.xAxis,i=e.yAxis,o=e.left,u=e.top,s=e.width,c=e.height,l=e.isAnimationActive;if(t||!n||!n.length)return null;var f=this.state.isAnimationFinished,h=x()("recharts-bar",r),p=a&&a.allowDataOverflow||i&&i.allowDataOverflow;return v.a.createElement(A.a,{className:h},p?v.a.createElement("defs",null,v.a.createElement("clipPath",{id:"clipPath-"+this.id},v.a.createElement("rect",{x:o,y:u,width:s,height:c}))):null,v.a.createElement(A.a,{className:"recharts-bar-rectangles",clipPath:p?"url(#clipPath-"+this.id+")":null},this.renderRectangles()),this.renderErrorBar(),(!l||f)&&M.a.renderCallByParent(this.props,n))}}]),t}(y.Component),u.displayName="Bar",u.propTypes=C({},P.m,P.n,{className:b.a.string,layout:b.a.oneOf(["vertical","horizontal"]),xAxisId:b.a.oneOfType([b.a.number,b.a.string]),yAxisId:b.a.oneOfType([b.a.number,b.a.string]),yAxis:b.a.object,xAxis:b.a.object,stackId:b.a.oneOfType([b.a.number,b.a.string]),barSize:b.a.number,unit:b.a.oneOfType([b.a.string,b.a.number]),name:b.a.oneOfType([b.a.string,b.a.number]),dataKey:b.a.oneOfType([b.a.string,b.a.number,b.a.func]).isRequired,legendType:b.a.oneOf(P.q),minPointSize:b.a.number,maxBarSize:b.a.number,hide:b.a.bool,shape:b.a.oneOfType([b.a.func,b.a.element]),data:b.a.arrayOf(b.a.shape({x:b.a.number,y:b.a.number,width:b.a.number,height:b.a.number,radius:b.a.oneOfType([b.a.number,b.a.array]),value:b.a.oneOfType([b.a.number,b.a.string,b.a.array])})),onAnimationStart:b.a.func,onAnimationEnd:b.a.func,animationId:b.a.number,isAnimationActive:b.a.bool,animationBegin:b.a.number,animationDuration:b.a.number,animationEasing:b.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),u.defaultProps={xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!n.i(P.k)(),animationBegin:0,animationDuration:400,animationEasing:"ease",onAnimationStart:function(){},onAnimationEnd:function(){}},u.getComposedData=function(e){var t=e.props,r=e.item,a=e.barPosition,i=e.bandSize,o=e.xAxis,u=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,l=e.stackedData,f=e.dataStartIndex,h=e.displayedData,p=e.offset,y=n.i(j.x)(a,r);if(!y)return[];var v=t.layout,m=r.props,b=m.dataKey,g=m.children,x=m.minPointSize,_="horizontal"===v?u:o,w=l?_.scale.domain():null,O=n.i(j.y)({props:t,numericAxis:_}),A=n.i(P.c)(g,T.a),k=h.map(function(e,t){var r=void 0,a=void 0,h=void 0,p=void 0,m=void 0;if(l?r=n.i(j.z)(l[f+t],w):(r=n.i(j.m)(e,b),d()(r)||(r=[O,r])),"horizontal"===v){if(a=n.i(j.A)({axis:o,ticks:s,bandSize:i,offset:y.offset,entry:e,index:t}),h=u.scale(r[1]),p=y.size,m=u.scale(r[0])-u.scale(r[1]),Math.abs(x)>0&&Math.abs(m)<Math.abs(x)){var g=n.i(S.h)(m||x)*(Math.abs(x)-Math.abs(m));h-=g,m+=g}}else if(a=o.scale(r[0]),h=n.i(j.A)({axis:u,ticks:c,bandSize:i,offset:y.offset,entry:e,index:t}),p=o.scale(r[1])-o.scale(r[0]),m=y.size,Math.abs(x)>0&&Math.abs(p)<Math.abs(x)){var _=n.i(S.h)(p||x)*(Math.abs(x)-Math.abs(p));p+=_}return C({},e,{x:a,y:h,width:p,height:m,value:l?r:r[1],payload:e},A&&A[t]&&A[t].props)});return C({data:k,layout:v},p)},o=s))||o},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)0>t.indexOf(r)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;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 o(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):e.__proto__=t)}var s,c,l,f=n(17),h=n.n(f),p=n(5),d=n.n(p),y=n(12),v=n.n(y),m=n(1),b=n.n(m),g=n(0),x=n.n(g),_=n(14),w=n.n(_),O=n(4),A=n.n(O),k=n(3),T=n(28),M=n(23),E=n(7),S=n(21),P=n(32),j=n(6),C=n(2),N=n(8),I=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R=function(){function e(e,t){for(var n=0;t.length>n;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}}();t.a=n.i(k.b)((l=c=function(e){function t(){var e,r,a,u;i(this,t);for(var s=arguments.length,c=Array(s),l=0;s>l;l++)c[l]=arguments[l];return r=a=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),a.state={isAnimationFinished:!0,totalLength:0},a.id=n.i(j.d)("recharts-line-"),a.cachePrevData=function(e){a.setState({prevPoints:e})},a.pathRef=function(e){a.mainCurve=e},a.handleAnimationEnd=function(){a.setState({isAnimationFinished:!0}),a.props.onAnimationEnd()},a.handleAnimationStart=function(){a.setState({isAnimationFinished:!1}),a.props.onAnimationStart()},u=r,o(a,u)}return u(t,e),R(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){this.setState({totalLength:this.getTotalLength()})}}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.animationId,r=t.points;e.animationId!==n&&this.cachePrevData(r)}},{key:"getTotalLength",value:function(){var e=this.mainCurve;return e&&e.getTotalLength&&e.getTotalLength()||0}},{key:"getStrokeDasharray",value:function(e,t,n){for(var r=n.reduce(function(e,t){return e+t}),i=parseInt(e/r,10),o=e%r,u=t-e,s=[],c=0,l=0;;l+=n[c],++c)if(l+n[c]>o){s=[].concat(a(n.slice(0,c)),[o-l]);break}var f=s.length%2==0?[0,u]:[u];return[].concat(a(this.repeat(n,i)),a(s),f).map(function(e){return e+"px"}).join(", ")}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(a(e),[0]):e,r=[],i=0;t>i;++i)r=[].concat(a(r),a(n));return r}},{key:"renderErrorBar",value:function(){function e(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:n.i(N.m)(e.payload,t)}}if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,r=t.points,a=t.xAxis,i=t.yAxis,o=t.layout,u=t.children,s=n.i(C.a)(u,P.a);return s?b.a.cloneElement(s,{data:r,xAxis:a,yAxis:i,layout:o,dataPointFormatter:e}):null}},{key:"renderDotItem",value:function(e,t){var n=void 0;if(b.a.isValidElement(e))n=b.a.cloneElement(e,t);else if(d()(e))n=e(t);else{var r=A()("recharts-line-dot",e.className);n=b.a.createElement(M.a,I({},t,{className:r}))}return n}},{key:"renderDots",value:function(){var e=this;if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,r=t.dot,a=t.points,i=n.i(C.e)(this.props),o=n.i(C.e)(r),u=a.map(function(t,n){var a=I({key:"dot-"+n,r:3},i,o,{value:t.value,cx:t.x,cy:t.y,index:n,payload:t.payload});return e.renderDotItem(r,a)});return b.a.createElement(E.a,{className:"recharts-line-dots",key:"dots"},u)}},{key:"renderCurveStatically",value:function(e,t,r){var a=this.props,i=a.type,o=a.layout,u=a.connectNulls,s=I({},n.i(C.e)(this.props),n.i(C.g)(this.props),{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-"+this.id+")":null,points:e},r,{type:i,layout:o,connectNulls:u});return b.a.createElement(T.a,I({},s,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e){var t=this,a=this.props,i=a.points,o=a.strokeDasharray,u=a.isAnimationActive,s=a.animationBegin,c=a.animationDuration,l=a.animationEasing,f=a.animationId,h=(r(a,["points","strokeDasharray","isAnimationActive","animationBegin","animationDuration","animationEasing","animationId"]),this.state),p=h.prevPoints,d=h.totalLength;return b.a.createElement(w.a,{begin:s,duration:c,isActive:u,easing:l,from:{t:0},to:{t:1},key:"line-"+f,onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var a=r.t;if(p){var u=i.map(function(e,t){if(p[t]){var r=p[t],i=n.i(j.g)(r.x,e.x),o=n.i(j.g)(r.y,e.y);return I({},e,{x:i(a),y:o(a)})}return e});return t.renderCurveStatically(u,e)}var s=n.i(j.g)(0,d),c=s(a),l=void 0;if(o){var f=o.split(/[,\s]+/gim).map(function(e){return parseFloat(e)});l=t.getStrokeDasharray(c,d,f)}else l=c+"px "+(d-c)+"px";return t.renderCurveStatically(i,e,{strokeDasharray:l})})}},{key:"renderCurve",value:function(e){var t=this.props,n=t.points,r=t.isAnimationActive,a=this.state,i=a.prevPoints,o=a.totalLength;return r&&n&&n.length&&(!i&&o>0||!h()(i,n))?this.renderCurveWithAnimation(e):this.renderCurveStatically(n,e)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,a=e.className,i=e.xAxis,o=e.yAxis,u=e.top,s=e.left,c=e.width,l=e.height,f=e.isAnimationActive;if(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,p=1===r.length,d=A()("recharts-line",a),y=i&&i.allowDataOverflow||o&&o.allowDataOverflow;return b.a.createElement(E.a,{className:d},y?b.a.createElement("defs",null,b.a.createElement("clipPath",{id:"clipPath-"+this.id},b.a.createElement("rect",{x:s,y:u,width:c,height:l}))):null,!p&&this.renderCurve(y),this.renderErrorBar(),(p||n)&&this.renderDots(),(!f||h)&&S.a.renderCallByParent(this.props,r))}}]),t}(m.Component),c.displayName="Line",c.propTypes=I({},C.m,C.n,{className:x.a.string,type:x.a.oneOfType([x.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),x.a.func]),unit:x.a.oneOfType([x.a.string,x.a.number]),name:x.a.oneOfType([x.a.string,x.a.number]),yAxisId:x.a.oneOfType([x.a.string,x.a.number]),xAxisId:x.a.oneOfType([x.a.string,x.a.number]),yAxis:x.a.object,xAxis:x.a.object,legendType:x.a.oneOf(C.q),layout:x.a.oneOf(["horizontal","vertical"]),connectNulls:x.a.bool,hide:x.a.bool,activeDot:x.a.oneOfType([x.a.object,x.a.element,x.a.func,x.a.bool]),dot:x.a.oneOfType([x.a.object,x.a.element,x.a.func,x.a.bool]),top:x.a.number,left:x.a.number,width:x.a.number,height:x.a.number,points:x.a.arrayOf(x.a.shape({x:x.a.number,y:x.a.number,value:x.a.value})),onAnimationStart:x.a.func,onAnimationEnd:x.a.func,isAnimationActive:x.a.bool,animationBegin:x.a.number,animationDuration:x.a.number,animationEasing:x.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),animationId:x.a.number}),c.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!n.i(C.k)(),animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,onAnimationStart:function(){},onAnimationEnd:function(){}},c.getComposedData=function(e){var t=e.props,r=e.xAxis,a=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,u=e.dataKey,s=e.bandSize,c=e.displayedData,l=e.offset,f=t.layout,h=c.map(function(e,t){var c=n.i(N.m)(e,u);return"horizontal"===f?{x:n.i(N.B)({axis:r,ticks:i,bandSize:s,entry:e,index:t}),y:v()(c)?null:a.scale(c),value:c,payload:e}:{x:v()(c)?null:r.scale(c),y:n.i(N.B)({axis:a,ticks:o,bandSize:s,entry:e,index:t}),value:c,payload:e}});return I({points:h,layout:f},l)},s=l))||s},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 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)}var o,u,s,c=n(17),l=n.n(c),f=n(5),h=n.n(f),p=n(12),d=n.n(p),y=n(1),v=n.n(y),m=n(0),b=n.n(m),g=n(14),x=n.n(g),_=n(4),w=n.n(_),O=n(3),A=n(7),k=n(2),T=n(47),M=n(28),E=n(72),S=n(32),P=n(33),j=n(6),C=n(8),N=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I=function(){function e(e,t){for(var n=0;t.length>n;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}}();t.a=n.i(O.b)((s=u=function(e){function t(){var e,i,o,u;r(this,t);for(var s=arguments.length,c=Array(s),l=0;s>l;l++)c[l]=arguments[l];return i=o=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),o.state={activeIndex:-1,isAnimationFinished:!1},o.cachePrevPoints=function(e){o.setState({prevPoints:e})},o.handleAnimationEnd=function(){o.setState({isAnimationFinished:!0})},o.handleAnimationStart=function(){o.setState({isAnimationFinished:!1})},o.id=n.i(j.d)("recharts-scatter-"),u=i,a(o,u)}return i(t,e),I(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.animationId,r=t.points;e.animationId!==n&&this.cachePrevPoints(r)}},{key:"renderSymbolItem",value:function(e,t){return v.a.isValidElement(e)?v.a.cloneElement(e,t):h()(e)?e(t):v.a.createElement(E.a,N({},t,{type:e}))}},{key:"renderSymbolsStatically",value:function(e){var t=this,r=this.props,a=r.shape,i=r.activeShape,o=r.activeIndex,u=n.i(k.e)(this.props);return e.map(function(e,r){var s=N({key:"symbol-"+r},u,e);return v.a.createElement(A.a,N({className:"recharts-scatter-symbol"},n.i(k.p)(t.props,e,r),{key:"symbol-"+r}),t.renderSymbolItem(o===r?i:a,s))})}},{key:"renderSymbolsWithAnimation",value:function(){var e=this,t=this.props,r=t.points,a=t.isAnimationActive,i=t.animationBegin,o=t.animationDuration,u=t.animationEasing,s=t.animationId,c=this.state.prevPoints;return v.a.createElement(x.a,{begin:i,duration:o,isActive:a,easing:u,from:{t:0},to:{t:1},key:"pie-"+s,onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(t){var a=t.t,i=r.map(function(e,t){var r=c&&c[t];if(r){var i=n.i(j.g)(r.cx,e.cx),o=n.i(j.g)(r.cy,e.cy),u=n.i(j.g)(r.size,e.size);return N({},e,{cx:i(a),cy:o(a),size:u(a)})}var s=n.i(j.g)(0,e.size);return N({},e,{size:s(a)})});return v.a.createElement(A.a,null,e.renderSymbolsStatically(i))})}},{key:"renderSymbols",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=this.state.prevPoints;return!(n&&t&&t.length)||r&&l()(r,t)?this.renderSymbolsStatically(t):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){function e(e,t){return{x:e.cx,y:e.cy,value:e.y,errorVal:n.i(C.m)(e,t)}}function t(e,t){return{x:e.cx,y:e.cy,value:e.x,errorVal:n.i(C.m)(e,t)}}if(!this.state.isAnimationFinished)return null;var r=this.props,a=r.points,i=r.xAxis,o=r.yAxis,u=r.children,s=n.i(k.c)(u,S.a);return s?s.map(function(n,r){var u=n.props.direction;return v.a.cloneElement(n,{key:r,data:a,xAxis:i,yAxis:o,layout:"x"===u?"vertical":"horizontal",dataPointFormatter:"x"===u?t:e})}):null}},{key:"renderLine",value:function(){var e=this.props,t=e.points,r=e.line,a=e.lineType,i=e.lineJointType,o=n.i(k.e)(this.props),u=n.i(k.e)(r),s=void 0,c=void 0;"joint"===a&&(s=t.map(function(e){return{x:e.cx,y:e.cy}}));var l=N({},o,{fill:"none",stroke:o&&o.fill},u,{points:s});return c=v.a.isValidElement(r)?v.a.cloneElement(r,l):h()(r)?r(l):v.a.createElement(M.a,N({},l,{type:i})),v.a.createElement(A.a,{className:"recharts-scatter-line",key:"recharts-scatter-line"},c)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.points,r=e.line,a=e.className,i=e.xAxis,o=e.yAxis,u=e.left,s=e.top,c=e.width,l=e.height;if(t||!n||!n.length)return null;var f=w()("recharts-scatter",a),h=i&&i.allowDataOverflow||o&&o.allowDataOverflow;return v.a.createElement(A.a,{className:f,clipPath:h?"url(#clipPath-"+this.id+")":null},h?v.a.createElement("defs",null,v.a.createElement("clipPath",{id:"clipPath-"+this.id},v.a.createElement("rect",{x:u,y:s,width:c,height:l}))):null,r&&this.renderLine(),this.renderErrorBar(),v.a.createElement(A.a,{key:"recharts-scatter-symbols"},this.renderSymbols()))}}]),t}(y.Component),u.displayName="Scatter",u.propTypes=N({},k.n,k.m,{xAxisId:b.a.oneOfType([b.a.string,b.a.number]),yAxisId:b.a.oneOfType([b.a.string,b.a.number]),zAxisId:b.a.oneOfType([b.a.string,b.a.number]),line:b.a.oneOfType([b.a.bool,b.a.object,b.a.func,b.a.element]),lineType:b.a.oneOf(["fitting","joint"]),lineJointType:b.a.oneOfType([b.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),b.a.func]),legendType:b.a.oneOf(k.q),className:b.a.string,activeIndex:b.a.number,activeShape:b.a.oneOfType([b.a.object,b.a.func,b.a.element]),shape:b.a.oneOfType([b.a.oneOf(["circle","cross","diamond","square","star","triangle","wye"]),b.a.element,b.a.func]),points:b.a.arrayOf(b.a.shape({cx:b.a.number,cy:b.a.number,size:b.a.number,node:b.a.shape({x:b.a.oneOfType([b.a.number,b.a.string]),y:b.a.oneOfType([b.a.number,b.a.string]),z:b.a.oneOfType([b.a.number,b.a.string])}),payload:b.a.any})),hide:b.a.bool,isAnimationActive:b.a.bool,animationId:b.a.number,animationBegin:b.a.number,animationDuration:b.a.number,animationEasing:b.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),u.defaultProps={xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!n.i(k.k)(),animationBegin:0,animationDuration:400,animationEasing:"linear"},u.getComposedData=function(e){var t=e.xAxis,r=e.yAxis,a=e.zAxis,i=e.item,o=e.displayedData,u=e.onItemMouseLeave,s=e.onItemMouseEnter,c=e.offset,l=n.i(k.c)(i.props.children,P.a),f=d()(t.dataKey)?i.props.dataKey:t.dataKey,h=d()(r.dataKey)?i.props.dataKey:r.dataKey,p=a&&a.dataKey,y=a?a.range:T.a.defaultProps.range,v=y&&y[0],m=t.scale.bandwidth?t.scale.bandwidth()/2:0,b=r.scale.bandwidth?r.scale.bandwidth()/2:0,g=o.map(function(e,i){var o=e[f],u=e[h],s=!d()(p)&&e[p]||"-",c=[{name:t.name||t.dataKey,unit:t.unit||"",value:o,payload:e},{name:r.name||r.dataKey,unit:r.unit||"",value:u,payload:e}];"-"!==s&&c.push({name:a.name||a.dataKey,unit:a.unit||"",value:s,payload:e});var y=n.i(j.a)(o)?t.scale(o)+m:null,g=n.i(j.a)(u)?r.scale(u)+b:null;return N({},e,{cx:y,cy:g,size:"-"!==s?a.scale(s):v,node:{x:o,y:u,z:s},tooltipPayload:c,tooltipPosition:{x:y,y:g},payload:e},l&&l[i]&&l[i].props)});return N({onMouseLeave:u,onMouseEnter:s,points:g},c)},o=s))||o},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 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)}var o,u,s,c=n(5),l=n.n(c),f=n(1),h=n.n(f),p=n(0),d=n.n(p),y=n(3),v=n(196),m=n(6),b=n(2),g=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x=function(){function e(e,t){for(var n=0;t.length>n;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}}(),_=function(e,t){return h.a.isValidElement(e)?h.a.cloneElement(e,t):l()(e)?e(t):h.a.createElement(v.a,t)},w=b.q.filter(function(e){return"none"!==e});t.a=n.i(y.b)((s=u=function(e){function t(){var e,n,i,o;r(this,t);for(var u=arguments.length,s=Array(u),c=0;u>c;c++)s[c]=arguments[c];return n=i=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.state={boxWidth:-1,boxHeight:-1},o=n,a(i,o)}return i(t,e),x(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;return 0>t||0>n?null:{width:t,height:n}}},{key:"getDefaultPosition",value:function(e){var t=this.props,n=t.layout,r=t.align,a=t.verticalAlign,i=t.margin,o=t.chartWidth,u=t.chartHeight,s=void 0,c=void 0;if(!e||(void 0===e.left||null===e.left)&&(void 0===e.right||null===e.right))if("center"===r&&"vertical"===n){var l=this.getBBox()||{width:0};s={left:((o||0)-l.width)/2}}else s="right"===r?{right:i&&i.right||0}:{left:i&&i.left||0};if(!e||(void 0===e.top||null===e.top)&&(void 0===e.bottom||null===e.bottom))if("middle"===a){var f=this.getBBox()||{height:0};c={top:((u||0)-f.height)/2}}else c="bottom"===a?{bottom:i&&i.bottom||0}:{top:i&&i.top||0};return g({},s,c)}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var a=this.wrapperNode.getBoundingClientRect();(Math.abs(a.width-t)>1||Math.abs(a.height-n)>1)&&this.setState({boxWidth:a.width,boxHeight:a.height},function(){r&&r(a)})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},function(){r&&r(null)})}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,a=t.height,i=t.wrapperStyle,o=g({position:"absolute",width:r||"auto",height:a||"auto"},this.getDefaultPosition(i),i);return h.a.createElement("div",{className:"recharts-legend-wrapper",style:o,ref:function(t){e.wrapperNode=t}},_(n,this.props))}}],[{key:"getWithHeight",value:function(e,t){var r=e.props.layout;return"vertical"===r&&n.i(m.b)(e.props.height)?{height:e.props.height}:"horizontal"===r?{width:e.props.width||t}:null}}]),t}(f.Component),u.displayName="Legend",u.propTypes={content:d.a.oneOfType([d.a.element,d.a.func]),wrapperStyle:d.a.object,chartWidth:d.a.number,chartHeight:d.a.number,width:d.a.number,height:d.a.number,iconSize:d.a.number,iconType:d.a.oneOf(w),layout:d.a.oneOf(["horizontal","vertical"]),align:d.a.oneOf(["center","left","right"]),verticalAlign:d.a.oneOf(["top","bottom","middle"]),margin:d.a.shape({top:d.a.number,left:d.a.number,bottom:d.a.number,right:d.a.number}),payload:d.a.arrayOf(d.a.shape({value:d.a.any,id:d.a.any,type:d.a.oneOf(b.q)})),formatter:d.a.func,onMouseEnter:d.a.func,onMouseLeave:d.a.func,onClick:d.a.func,onBBoxUpdate:d.a.func},u.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"},o=s))||o},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 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)}var o,u,s,c=n(1),l=n.n(c),f=n(0),h=n.n(f),p=n(4),d=n.n(p),y=n(3),v=n(2),m=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b=function(){function e(e,t){for(var n=0;t.length>n;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}}(),g=function(e){return e.reduce(function(e,t){return t.x===+t.x&&t.y===+t.y&&e.push([t.x,t.y]),e},[]).join(" ")};t.a=n.i(y.b)((s=u=function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),b(t,[{key:"render",value:function(){var e=this.props,t=e.points,r=e.className;if(!t||!t.length)return null;var a=d()("recharts-polygon",r);return l.a.createElement("polygon",m({},n.i(v.e)(this.props),n.i(v.g)(this.props),{className:a,points:g(t)}))}}]),t}(c.Component),u.displayName="Polygon",u.propTypes=m({},v.m,{className:h.a.string,points:h.a.arrayOf(h.a.shape({x:h.a.number,y:h.a.number}))}),o=s))||o},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 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)}var o,u,s,c=n(1),l=n.n(c),f=n(0),h=n.n(f),p=n(88),d=n(4),y=n.n(d),v=n(3),m=n(2),b=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g=function(){function e(e,t){for(var n=0;t.length>n;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}}(),x={symbolCircle:p.g,symbolCross:p.h,symbolDiamond:p.i,symbolSquare:p.j,symbolStar:p.k,symbolTriangle:p.l,symbolWye:p.m},_=Math.PI/180,w=function(e){var t="symbol"+e.slice(0,1).toUpperCase()+e.slice(1);return x[t]||p.g},O=function(e,t,n){if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var r=18*_;return 1.25*e*e*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}};t.a=n.i(v.b)((s=u=function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),g(t,[{key:"getPath",value:function(){var e=this.props,t=e.size,r=e.sizeType,a=e.type,i=w(a);return n.i(p.n)().type(i).size(O(t,r,a))()}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.cx,a=e.cy,i=e.size;return r===+r&&a===+a&&i===+i?l.a.createElement("path",b({},n.i(m.e)(this.props),n.i(m.g)(this.props),{className:y()("recharts-symbols",t),transform:"translate("+r+", "+a+")",d:this.getPath()})):null}}]),t}(c.Component),u.displayName="Symbols",u.propTypes=b({},m.m,{className:h.a.string,type:h.a.oneOf(["circle","cross","diamond","square","star","triangle","wye"]),cx:h.a.number,cy:h.a.number,size:h.a.number,sizeType:h.a.oneOf(["area","diameter"])}),u.defaultProps={type:"circle",size:64,sizeType:"area"},o=s))||o},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){return 0>l.indexOf(e)||t!==+t?t:t+"px"}function i(e){return e.split("").reduce(function(e,t){return t===t.toUpperCase()?[].concat(r(e),["-",t.toLowerCase()]):[].concat(r(e),[t])},[]).join("")}n.d(t,"c",function(){return h}),n.d(t,"a",function(){return p}),n.d(t,"b",function(){return d});var o=n(2),u=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s={widthCache:{},cacheCount:0},c={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},l=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],f=function(e){return Object.keys(e).reduce(function(t,n){return""+t+i(n)+":"+a(n,e[n])+";"},"")},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||n.i(o.k)())return{width:0,height:0};var r=""+e,a=f(t),i=r+"-"+a;if(s.widthCache[i])return s.widthCache[i];try{var l=document.getElementById("recharts_measurement_span");l||(l=document.createElement("span"),l.setAttribute("id","recharts_measurement_span"),document.body.appendChild(l)),l.setAttribute("style",f(u({},c,t))),l.textContent=r;var h=l.getBoundingClientRect(),p={width:h.width,height:h.height};return s.widthCache[i]=p,++s.cacheCount>2e3&&(s.cacheCount=0,s.widthCache={}),p}catch(e){return{width:0,height:0}}},p=function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return void 0!==e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}},d=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){e.exports=!n(52)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||22025.465794806718>n(10)||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&1e-6>e?e+e*e/2:Math.exp(e)-1}:n},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:0>e?-1:1}},function(e,t,n){"use strict";var r=n(36);t.a=function(e,t,n){if(null==n&&(n=r.a),a=e.length){if(0>=(t=+t)||2>a)return+n(e[0],0,e);if(t>=1)return+n(e[a-1],a-1,e);var a,i=(a-1)*t,o=Math.floor(i),u=+n(e[o],o,e);return u+(+n(e[o+1],o+1,e)-u)*(i-o)}}},function(e,t,n){"use strict";function r(){}function a(e,t){var n=new r;if(e instanceof r)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var a,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(a=e[i],i,e),a)}else if(e)for(var u in e)n.set(u,e[u]);return n}n.d(t,"b",function(){return i});var i="$";r.prototype=a.prototype={constructor:r,has:function(e){return i+e in this},get:function(e){return this[i+e]},set:function(e,t){return this[i+e]=t,this},remove:function(e){var t=i+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===i&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===i&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===i&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===i&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===i&&++e;return e},empty:function(){for(var e in this)if(e[0]===i)return!1;return!0},each:function(e){for(var t in this)t[0]===i&&e(this[t],t.slice(1),this)}},t.a=a},function(e,t,n){"use strict";function r(){}function a(e){var t;return e=(e+"").trim().toLowerCase(),(t=_.exec(e))?(t=parseInt(t[1],16),new c(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1)):(t=w.exec(e))?i(parseInt(t[1],16)):(t=O.exec(e))?new c(t[1],t[2],t[3],1):(t=A.exec(e))?new c(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=k.exec(e))?o(t[1],t[2],t[3],t[4]):(t=T.exec(e))?o(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=M.exec(e))?l(t[1],t[2]/100,t[3]/100,1):(t=E.exec(e))?l(t[1],t[2]/100,t[3]/100,t[4]):S.hasOwnProperty(e)?i(S[e]):"transparent"===e?new c(NaN,NaN,NaN,0):null}function i(e){return new c(e>>16&255,e>>8&255,255&e,1)}function o(e,t,n,r){return r>0||(e=t=n=NaN),new c(e,t,n,r)}function u(e){return e instanceof r||(e=a(e)),e?(e=e.rgb(),new c(e.r,e.g,e.b,e.opacity)):new c}function s(e,t,n,r){return 1===arguments.length?u(e):new c(e,t,n,null==r?1:r)}function c(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function l(e,t,n,r){return r>0?n>0&&1>n?t>0||(e=NaN):e=t=NaN:e=t=n=NaN,new p(e,t,n,r)}function f(e){if(e instanceof p)return new p(e.h,e.s,e.l,e.opacity);if(e instanceof r||(e=a(e)),!e)return new p;if(e instanceof p)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),u=Math.max(t,n,i),s=NaN,c=u-o,l=(u+o)/2;return c?(s=t===u?(n-i)/c+6*(i>n):n===u?(i-t)/c+2:(t-n)/c+4,c/=.5>l?u+o:2-u-o,s*=60):c=l>0&&1>l?0:s,new p(s,c,l,e.opacity)}function h(e,t,n,r){return 1===arguments.length?f(e):new p(e,t,n,null==r?1:r)}function p(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function d(e,t,n){return 255*(60>e?t+(n-t)*e/60:180>e?n:240>e?t+(n-t)*(240-e)/60:t)}t.c=r,n.d(t,"e",function(){return v}),n.d(t,"d",function(){return m}),t.h=a,t.b=u,t.g=s,t.a=c,t.f=h;var y=n(83),v=.7,m=1/v,b="\\s*([+-]?\\d+)\\s*",g="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",x="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_=/^#([0-9a-f]{3})$/,w=/^#([0-9a-f]{6})$/,O=RegExp("^rgb\\("+[b,b,b]+"\\)$"),A=RegExp("^rgb\\("+[x,x,x]+"\\)$"),k=RegExp("^rgba\\("+[b,b,b,g]+"\\)$"),T=RegExp("^rgba\\("+[x,x,x,g]+"\\)$"),M=RegExp("^hsl\\("+[g,x,x]+"\\)$"),E=RegExp("^hsla\\("+[g,x,x,g]+"\\)$"),S={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};n.i(y.a)(r,a,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),n.i(y.a)(c,s,n.i(y.b)(r,{brighter:function(e){return e=null==e?m:Math.pow(m,e),new c(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?v:Math.pow(v,e),new c(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return!(0>this.r||this.r>255||0>this.g||this.g>255||0>this.b||this.b>255||0>this.opacity||this.opacity>1)},toString:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(1===e?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),n.i(y.a)(p,h,n.i(y.b)(r,{brighter:function(e){return e=null==e?m:Math.pow(m,e),new p(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?v:Math.pow(v,e),new p(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(0>this.h),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(.5>n?n:1-n)*t,a=2*n-r;return new c(d(240>e?e+120:e-240,a,r),d(e,a,r),d(120>e?e+240:e-120,a,r),this.opacity)},displayable:function(){return(this.s>=0&&1>=this.s||isNaN(this.s))&&this.l>=0&&1>=this.l&&this.opacity>=0&&1>=this.opacity}}))},function(e,t,n){"use strict";function r(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}t.b=r,t.a=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e}},function(e,t,n){"use strict";t.a=function(e,t){if(0>(n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e")))return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}},function(e,t,n){"use strict";function r(e,t,n,r,a){var i=e*e,o=i*e;return((1-3*e+3*i-o)*t+(4-6*i+3*o)*n+(1+3*e+3*i-3*o)*r+o*a)/6}t.b=r,t.a=function(e){var t=e.length-1;return function(n){var a=n>0?1>n?Math.floor(n*t):(n=1,t-1):n=0,i=e[a],o=e[a+1];return r((n-a/t)*t,a>0?e[a-1]:2*i-o,i,o,t-1>a?e[a+2]:2*o-i)}}},function(e,t,n){"use strict";var r=n(20),a=n(135),i=n(130),o=n(133),u=n(54),s=n(134),c=n(136),l=n(132);t.a=function(e,t){var f,h=typeof t;return null==t||"boolean"===h?n.i(l.a)(t):("number"===h?u.a:"string"===h?(f=n.i(r.f)(t))?(t=f,a.a):c.a:t instanceof r.f?a.a:t instanceof Date?o.a:Array.isArray(t)?i.a:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?s.a:u.a)(e,t)}},function(e,t,n){"use strict";t.a=function(e){return function(){return e}}},function(e,t,n){"use strict";var r=(n(292),n(142));n.d(t,"z",function(){return r.a});var a=n(90);n.d(t,"A",function(){return a.a});var i=(n(311),n(312),n(147),n(314));n.d(t,"n",function(){return i.a});var o=n(148);n.d(t,"g",function(){return o.a});var u=n(149);n.d(t,"h",function(){return u.a});var s=n(150);n.d(t,"i",function(){return s.a});var c=n(151);n.d(t,"j",function(){return c.a});var l=n(152);n.d(t,"k",function(){return l.a});var f=n(153);n.d(t,"l",function(){return f.a});var h=n(154);n.d(t,"m",function(){return h.a});var p=n(294);n.d(t,"o",function(){return p.a});var d=n(295);n.d(t,"p",function(){return d.a});var y=n(57);n.d(t,"q",function(){return y.c});var v=(n(296),n(143),n(144),n(58),n(297),n(298),n(89),n(299));n.d(t,"r",function(){return v.a});var m=n(59);n.d(t,"s",function(){return m.a});var b=n(300);n.d(t,"t",function(){return b.a}),n.d(t,"u",function(){return b.b});var g=n(301);n.d(t,"v",function(){return g.a});var x=n(302);n.d(t,"w",function(){return x.a}),n.d(t,"x",function(){return x.b}),n.d(t,"y",function(){return x.c});var _=n(313);n.d(t,"e",function(){return _.a});var w=n(305);n.d(t,"a",function(){return w.a});var O=n(42);n.d(t,"b",function(){return O.a});var A=n(306);n.d(t,"c",function(){return A.a});var k=n(307);n.d(t,"d",function(){return k.a});var T=(n(91),n(308),n(309),n(43));n.d(t,"f",function(){return T.a});n(310)},function(e,t,n){"use strict";function r(e,t,n){var r=e._x1,a=e._y1,o=e._x2,u=e._y2;if(e._l01_a>i.a){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,a=(a*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>i.a){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,f=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/f,u=(u*l+e._y1*e._l23_2a-n*e._l12_2a)/f}e._context.bezierCurveTo(r,a,o,u,e._x2,e._y2)}function a(e,t){this._context=e,this._alpha=t}t.a=r;var i=n(41),o=n(58);a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,a=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:r(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};!function e(t){function n(e){return t?new a(e,t):new o.a(e,0)}return n.alpha=function(t){return e(+t)},n}(.5)},function(e,t,n){"use strict";var r=n(55),a=n(31),i=n(59),o=n(146);t.a=function(){function e(e){var a,i,o,h=e.length,p=!1;for(null==c&&(f=l(o=n.i(r.a)())),a=0;h>=a;++a)!(h>a&&s(i=e[a],a,e))===p&&((p=!p)?f.lineStart():f.lineEnd()),p&&f.point(+t(i,a,e),+u(i,a,e));if(o)return f=null,o+""||null}var t=o.a,u=o.b,s=n.i(a.a)(!0),c=null,l=i.a,f=null;return e.x=function(r){return arguments.length?(t="function"==typeof r?r:n.i(a.a)(+r),e):t},e.y=function(t){return arguments.length?(u="function"==typeof t?t:n.i(a.a)(+t),e):u},e.defined=function(t){return arguments.length?(s="function"==typeof t?t:n.i(a.a)(!!t),e):s},e.curve=function(t){return arguments.length?(l=t,null!=c&&(f=l(c)),e):l},e.context=function(t){return arguments.length?(null==t?c=f=null:f=l(c=t),e):c},e}},function(e,t,n){"use strict";function r(e){for(var t,n=0,r=-1,a=e.length;++r<a;)(t=+e[r][1])&&(n+=t);return n}t.a=r;var a=n(43);t.b=function(e){var t=e.map(r);return n.i(a.a)(e).sort(function(e,n){return t[e]-t[n]})}},function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return u});var r,a,i,o,u,s=n(157);!function(e){r=n.i(s.a)(e),a=r.format,i=r.parse,o=r.utcFormat,u=r.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]})},function(e,t,n){"use strict";var r=(n(10),n(318));n.d(t,"t",function(){return r.a}),n.d(t,"h",function(){return r.a});var a=n(321);n.d(t,"s",function(){return a.a}),n.d(t,"g",function(){return a.a});var i=n(319);n.d(t,"r",function(){return i.a});var o=n(317);n.d(t,"q",function(){return o.a});var u=n(316);n.d(t,"i",function(){return u.a});var s=n(328);n.d(t,"p",function(){return s.a}),n.d(t,"k",function(){return s.a}),n.d(t,"l",function(){return s.b});var c=n(320);n.d(t,"o",function(){return c.a});var l=n(329);n.d(t,"j",function(){return l.a});var f=n(324);n.d(t,"f",function(){return f.a});var h=n(323);n.d(t,"e",function(){return h.a});var p=n(322);n.d(t,"d",function(){return p.a});var d=n(326);n.d(t,"c",function(){return d.a}),n.d(t,"m",function(){return d.a}),n.d(t,"n",function(){return d.b});var y=n(325);n.d(t,"b",function(){return y.a});var v=n(327);n.d(t,"a",function(){return v.a})},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}e.exports=n},function(e,t,n){function r(e,t,n,o,u){return e===t||(null==e||null==t||!i(e)&&!i(t)?e!==e&&t!==t:a(e,t,n,o,r,u))}var a=n(342),i=n(46);e.exports=r},function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},function(e,t,n){function r(e){return null!=e&&i(e.length)&&!a(e)}var a=n(5),i=n(381);e.exports=r},function(e,t,n){function r(e){return"string"==typeof e||!i(e)&&o(e)&&a(e)==u}var a=n(63),i=n(11),o=n(46),u="[object String]";e.exports=r},function(e,t,n){"use strict";function r(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 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 u,s,c,l=n(178),f=n.n(l),h=n(5),p=n.n(h),d=n(1),y=n.n(d),v=n(0),m=n.n(v),b=n(4),g=n.n(b),x=n(137),_=n(8),w=n(3),O=n(7),A=n(22),k=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T=function(){function e(e,t){for(var n=0;t.length>n;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}}();t.a=n.i(w.b)((c=s=function(e){function t(e){a(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleDrag=function(e){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(e):n.state.isSlideMoving&&n.handleSlideDrag(e)},n.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleDrag(e.changedTouches[0])},n.handleDragEnd=function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1})},n.handleLeaveWrapper=function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=setTimeout(n.handleDragEnd,1e3))},n.handleEnterSlideOrTraveller=function(){n.setState({isTextActive:!0})},n.handleLeaveSlideOrTraveller=function(){n.setState({isTextActive:!1})},n.handleSlideDragStart=function(e){n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:(e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e).pageX})},n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},e.data&&e.data.length?n.updateScale(e):n.state={},n}return o(t,e),T(t,[{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,a=n.width,i=n.x,o=n.travellerWidth,u=n.updateId;e.data!==r||e.updateId!==u?this.updateScale(e):e.width===a&&e.x===i&&e.travellerWidth===o||(this.scale.range([e.x,e.x+e.width-e.travellerWidth]),this.scaleValues=this.scale.domain().map(function(e){return t.scale(e)}),this.setState({startX:this.scale(e.startIndex),endX:this.scale(e.endIndex)}))}},{key:"componentWillUnmount",value:function(){this.scale=null,this.scaleValues=null,this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null)}},{key:"getIndexInRange",value:function(e,t){for(var n=e.length,r=0,a=n-1;a-r>1;){var i=Math.floor((r+a)/2);e[i]>t?a=i:r=i}return e[a]>t?r:a}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=Math.min(t,n),a=Math.max(t,n);return{startIndex:this.getIndexInRange(this.scaleValues,r),endIndex:this.getIndexInRange(this.scaleValues,a)}}},{key:"getTextOfTick",value:function(e){var t=this.props,r=t.data,a=t.tickFormatter,i=t.dataKey,o=n.i(_.m)(r[e],i,e);return p()(a)?a(o):o}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,a=t.endX,i=this.props,o=i.x,u=i.width,s=i.travellerWidth,c=i.startIndex,l=i.endIndex,f=i.onChange,h=e.pageX-n;h>0?h=Math.min(h,o+u-s-a,o+u-s-r):0>h&&(h=Math.max(h,o-r,o-a));var p=this.getIndex({startX:r+h,endX:a+h});p.startIndex===c&&p.endIndex===l||!f||f(p),this.setState({startX:r+h,endX:a+h,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:(t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX})}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,a=n.brushMoveStartX,i=n.movingTravellerId,o=this.state[i],u=this.props,s=u.x,c=u.width,l=u.travellerWidth,f=u.onChange,h={startX:this.state.startX,endX:this.state.endX},p=e.pageX-a;p>0?p=Math.min(p,s+c-l-o):0>p&&(p=Math.max(p,s-o)),h[i]=o+p;var d=this.getIndex(h);this.setState((t={},r(t,i,o+p),r(t,"brushMoveStartX",e.pageX),t),function(){f&&f(d)})}},{key:"updateScale",value:function(e){var t=this,r=e.data,a=e.startIndex,i=e.endIndex,o=e.x,u=e.width,s=e.travellerWidth;if(r&&r.length){var c=r.length;this.scale=n.i(x.scalePoint)().domain(f()(0,c)).range([o,o+u-s]),this.scaleValues=this.scale.domain().map(function(e){return t.scale(e)}),this.state={isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:this.scale(a),endX:this.scale(i)}}}},{key:"renderBackground",value:function(){var e=this.props;return y.a.createElement("rect",{stroke:e.stroke,fill:e.fill,x:e.x,y:e.y,width:e.width,height:e.height})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,a=e.height,i=e.data,o=e.children,u=e.padding,s=d.Children.only(o);return s?y.a.cloneElement(s,{x:t,y:n,width:r,height:a,margin:u,compact:!0,data:i}):null}},{key:"renderTraveller",value:function(e,t){var n=this.props,r=n.y,a=n.travellerWidth,i=n.height,o=n.stroke,u=Math.floor(r+i/2)-1,s=Math.max(e,this.props.x);return y.a.createElement(O.a,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},y.a.createElement("rect",{x:s,y:r,width:a,height:i,fill:o,stroke:"none"}),y.a.createElement("line",{x1:s+1,y1:u,x2:s+a-1,y2:u,fill:"none",stroke:"#fff"}),y.a.createElement("line",{x1:s+1,y1:u+2,x2:s+a-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,a=n.height;return y.a.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:n.stroke,fillOpacity:.2,x:Math.min(e,t),y:r,width:Math.abs(t-e),height:a})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,a=e.height,i=e.travellerWidth,o=e.stroke,u=this.state,s=u.startX,c=u.endX,l={pointerEvents:"none",fill:o};return y.a.createElement(O.a,{className:"recharts-brush-texts"},y.a.createElement(A.a,k({textAnchor:"end",verticalAnchor:"middle",x:Math.min(s,c)-5,y:r+a/2},l),this.getTextOfTick(t)),y.a.createElement(A.a,k({textAnchor:"start",verticalAnchor:"middle",x:Math.max(s,c)+i+5,y:r+a/2},l),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,a=this.state,i=a.startX,o=a.endX,u=a.isTextActive,s=a.isSlideMoving,c=a.isTravellerMoving;if(!t||!t.length)return null;var l=g()("recharts-brush",n),f=1===y.a.Children.count(r);return y.a.createElement(O.a,{className:l,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onMouseUp:this.handleDragEnd,onTouchEnd:this.handleDragEnd,onTouchMove:this.handleTouchMove},this.renderBackground(),f&&this.renderPanorama(),this.renderSlide(i,o),this.renderTraveller(i,"startX"),this.renderTraveller(o,"endX"),(u||s||c)&&this.renderText())}}]),t}(d.Component),s.displayName="Brush",s.propTypes={className:m.a.string,fill:m.a.string,stroke:m.a.string,x:m.a.number.isRequired,y:m.a.number.isRequired,width:m.a.number.isRequired,height:m.a.number.isRequired,travellerWidth:m.a.number,padding:m.a.shape({top:m.a.number,right:m.a.number,bottom:m.a.number,left:m.a.number}),dataKey:m.a.oneOfType([m.a.string,m.a.number,m.a.func]),data:m.a.array,startIndex:m.a.number,endIndex:m.a.number,tickFormatter:m.a.func,children:m.a.node,onChange:m.a.func,updateId:m.a.oneOfType([m.a.string,m.a.number])},s.defaultProps={x:0,y:0,width:0,height:40,travellerWidth:5,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1}},u=c))||u},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)0>t.indexOf(r)&&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(!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 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 u,s,c=n(5),l=n.n(c),f=n(1),h=n.n(f),p=n(0),d=n.n(p),y=n(4),v=n.n(y),m=n(3),b=n(73),g=n(7),x=n(22),_=n(19),w=n(2),O=n(6),A=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k=function(){function e(e,t){for(var n=0;t.length>n;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}}();t.a=(s=u=function(e){function t(){return a(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),k(t,[{key:"shouldComponentUpdate",value:function(e,t){var a=e.viewBox,i=r(e,["viewBox"]),o=this.props,u=o.viewBox,s=r(o,["viewBox"]);return!n.i(m.a)(a,u)||!n.i(m.a)(i,s)||!n.i(m.a)(t,this.state)}},{key:"getTickLineCoord",value:function(e){var t=this.props,r=t.x,a=t.y,i=t.width,o=t.height,u=t.orientation,s=t.tickSize,c=t.mirror,l=void 0,f=void 0,h=void 0,p=void 0,d=void 0,y=void 0,v=c?-1:1,m=e.tickSize||s,b=n.i(O.b)(e.tickCoord)?e.tickCoord:e.coordinate;switch(u){case"top":l=f=e.coordinate,p=a+!c*o,h=y=p-v*m,d=b;break;case"left":h=p=e.coordinate,f=r+!c*i,l=d=f-v*m,y=b;break;case"right":h=p=e.coordinate,f=r+c*i,l=d=f+v*m,y=b;break;default:l=f=e.coordinate,p=a+c*o,h=y=p+v*m,d=b}return{line:{x1:l,y1:h,x2:f,y2:p},tick:{x:d,y:y}}}},{key:"getTickTextAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r=void 0;switch(t){case"left":r=n?"start":"end";break;case"right":r=n?"end":"start";break;default:r="middle"}return r}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,r=e.y,a=e.width,i=e.height,o=e.orientation,u=e.axisLine,s=e.mirror,c=A({},n.i(w.e)(this.props),{fill:"none"},n.i(w.e)(u));if("top"===o||"bottom"===o){var l="top"===o&&!s||"bottom"===o&&s;c=A({},c,{x1:t,y1:r+l*i,x2:t+a,y2:r+l*i})}else{var f="left"===o&&!s||"right"===o&&s;c=A({},c,{x1:t+f*a,y1:r,x2:t+f*a,y2:r+i})}return h.a.createElement("line",A({className:"recharts-cartesian-axis-line"},c))}},{key:"renderTickItem",value:function(e,t,n){return h.a.isValidElement(e)?h.a.cloneElement(e,t):l()(e)?e(t):h.a.createElement(x.a,A({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}},{key:"renderTicks",value:function(e){var r=this,a=this.props,i=a.tickLine,o=a.stroke,u=a.tick,s=a.tickFormatter,c=a.unit,f=t.getTicks(A({},this.props,{ticks:e})),p=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),y=n.i(w.e)(this.props),v=n.i(w.e)(u),m=A({},y,{fill:"none"},n.i(w.e)(i)),b=f.map(function(e,t){var a=r.getTickLineCoord(e),f=a.line,b=a.tick,x=A({textAnchor:p,verticalAnchor:d},y,{stroke:"none",fill:o},v,b,{index:t,payload:e});return h.a.createElement(g.a,A({className:"recharts-cartesian-axis-tick",key:"tick-"+t},n.i(w.p)(r.props,e,t)),i&&h.a.createElement("line",A({className:"recharts-cartesian-axis-tick-line"},m,f)),u&&r.renderTickItem(u,x,""+(l()(s)?s(e.value):e.value)+(c||"")))});return h.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var e=this.props,t=e.axisLine,n=e.width,a=e.height,i=e.ticksGenerator,o=e.className;if(e.hide)return null;var u=this.props,s=u.ticks,c=r(u,["ticks"]),f=s;return l()(i)&&(f=i(s&&s.length>0?this.props:c)),n>0&&a>0&&f&&f.length?h.a.createElement(g.a,{className:v()("recharts-cartesian-axis",o)},t&&this.renderAxisLine(),this.renderTicks(f),_.a.renderCallByParent(this.props)):null}}],[{key:"getTicks",value:function(e){var r=e.tick,a=e.ticks,i=e.viewBox,o=e.minTickGap,u=e.orientation,s=e.interval,c=e.tickFormatter,l=e.unit;return a&&a.length&&r?n.i(O.b)(s)||n.i(w.k)()?t.getNumberIntervalTicks(a,n.i(O.b)(s)?s:0):"preserveStartEnd"===s?t.getTicksStart({ticks:a,tickFormatter:c,viewBox:i,orientation:u,minTickGap:o,unit:l},!0):"preserveStart"===s?t.getTicksStart({ticks:a,tickFormatter:c,viewBox:i,orientation:u,minTickGap:o,unit:l}):t.getTicksEnd({ticks:a,tickFormatter:c,viewBox:i,orientation:u,minTickGap:o,unit:l}):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter(function(e,n){return n%(t+1)==0})}},{key:"getTicksStart",value:function(e,t){var r=e.ticks,a=e.tickFormatter,i=e.viewBox,o=e.orientation,u=e.minTickGap,s=e.unit,c=i.x,f=i.y,h=i.width,p=i.height,d="top"===o||"bottom"===o?"width":"height",y=(r||[]).slice(),v=s?n.i(b.c)(s)[d]:0,m=y.length,g=2>m?1:n.i(O.h)(y[1].coordinate-y[0].coordinate),x=void 0,_=void 0;if(1===g?(x="width"===d?c:f,_="width"===d?c+h:f+p):(x="width"===d?c+h:f+p,_="width"===d?c:f),t){var w=r[m-1],k=l()(a)?a(w.value):w.value,T=n.i(b.c)(k)[d]+v,M=g*(w.coordinate+g*T/2-_);y[m-1]=w=A({},w,{tickCoord:M>0?w.coordinate-M*g:w.coordinate});g*(w.tickCoord-g*T/2-x)>=0&&0>=g*(w.tickCoord+g*T/2-_)&&(_=w.tickCoord-g*(T/2+u),y[m-1]=A({},w,{isShow:!0}))}for(var E=t?m-1:m,S=0;E>S;S++){var P=y[S],j=l()(a)?a(P.value):P.value,C=n.i(b.c)(j)[d]+v;if(0===S){var N=g*(P.coordinate-g*C/2-x);y[S]=P=A({},P,{tickCoord:0>N?P.coordinate-N*g:P.coordinate})}else y[S]=P=A({},P,{tickCoord:P.coordinate});g*(P.tickCoord-g*C/2-x)>=0&&0>=g*(P.tickCoord+g*C/2-_)&&(x=P.tickCoord+g*(C/2+u),y[S]=A({},P,{isShow:!0}))}return y.filter(function(e){return e.isShow})}},{key:"getTicksEnd",value:function(e){var t=e.ticks,r=e.tickFormatter,a=e.viewBox,i=e.orientation,o=e.minTickGap,u=e.unit,s=a.x,c=a.y,f=a.width,h=a.height,p="top"===i||"bottom"===i?"width":"height",d=u?n.i(b.c)(u)[p]:0,y=(t||[]).slice(),v=y.length,m=2>v?1:n.i(O.h)(y[1].coordinate-y[0].coordinate),g=void 0,x=void 0;1===m?(g="width"===p?s:c,x="width"===p?s+f:c+h):(g="width"===p?s+f:c+h,x="width"===p?s:c);for(var _=v-1;_>=0;_--){var w=y[_],k=l()(r)?r(w.value):w.value,T=n.i(b.c)(k)[p]+d;if(_===v-1){var M=m*(w.coordinate+m*T/2-x);y[_]=w=A({},w,{tickCoord:M>0?w.coordinate-M*m:w.coordinate})}else y[_]=w=A({},w,{tickCoord:w.coordinate});m*(w.tickCoord-m*T/2-g)>=0&&0>=m*(w.tickCoord+m*T/2-x)&&(x=w.tickCoord-m*(T/2+o),y[_]=A({},w,{isShow:!0}))}return y.filter(function(e){return e.isShow})}}]),t}(f.Component),u.displayName="CartesianAxis",u.propTypes=A({},w.m,w.n,{className:d.a.string,x:d.a.number,y:d.a.number,width:d.a.number,height:d.a.number,orientation:d.a.oneOf(["top","bottom","left","right"]),viewBox:d.a.shape({x:d.a.number,y:d.a.number,width:d.a.number,height:d.a.number}),tick:d.a.oneOfType([d.a.bool,d.a.func,d.a.object,d.a.element]),axisLine:d.a.oneOfType([d.a.bool,d.a.object]),tickLine:d.a.oneOfType([d.a.bool,d.a.object]),mirror:d.a.bool,minTickGap:d.a.number,ticks:d.a.array,tickSize:d.a.number,stroke:d.a.string,tickFormatter:d.a.func,ticksGenerator:d.a.func,interval:d.a.oneOfType([d.a.number,d.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])])}),u.defaultProps={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,interval:"preserveEnd"},s)},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 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)}var o,u,s,c=n(5),l=n.n(c),f=n(1),h=n.n(f),p=n(0),d=n.n(p),y=n(4),v=n.n(y),m=n(3),b=n(7),g=n(19),x=n(2),_=n(6),w=n(8),O=n(29),A=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k=function(){function e(e,t){for(var n=0;t.length>n;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}}();t.a=n.i(m.b)((s=u=function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),k(t,[{key:"getRect",value:function(e,t){var r=this.props,a=r.x1,i=r.x2,o=r.y1,u=r.y2,s=r.xAxis,c=r.yAxis,l=s.scale,f=c.scale,h=l.bandwidth?l.bandwidth()/2:0,p=f.bandwidth?f.bandwidth()/2:0,d=l.range(),y=f.range(),v=void 0,m=void 0,b=void 0,g=void 0;return e&&n.i(_.a)(a)?v=l(a)+h:t&&(v=d[0]),e&&n.i(_.a)(i)?m=l(i)+h:t&&(m=d[1]),t&&n.i(_.a)(o)?b=f(o)+p:e&&(b=y[0]),t&&n.i(_.a)(u)?g=f(u)+p:e&&(g=y[1]),n.i(w.C)(v,l)&&n.i(w.C)(m,l)&&n.i(w.C)(b,f)&&n.i(w.C)(g,f)?{x:Math.min(v,m),y:Math.min(b,g),width:Math.abs(m-v),height:Math.abs(g-b)}:null}},{key:"renderRect",value:function(e,t){return h.a.isValidElement(e)?h.a.cloneElement(e,t):l()(e)?e(t):h.a.createElement(O.a,A({},t,{className:"recharts-reference-area-rect"}))}},{key:"render",value:function(){var e=this.props,t=e.x1,r=e.x2,a=e.y1,i=e.y2,o=e.className,u=n.i(_.a)(t)&&n.i(_.a)(r),s=n.i(_.a)(a)&&n.i(_.a)(i);if(!u&&!s)return null;var c=this.getRect(u,s);if(!c)return null;var l=this.props.shape;return h.a.createElement(b.a,{className:v()("recharts-reference-area",o)},this.renderRect(l,A({},this.props,c)),g.a.renderCallByParent(this.props,c))}}]),t}(f.Component),u.displayName="ReferenceArea",u.propTypes=A({},x.m,{viewBox:d.a.shape({x:d.a.number,y:d.a.number,width:d.a.number,height:d.a.number}),xAxis:d.a.object,yAxis:d.a.object,isFront:d.a.bool,alwaysShow:d.a.bool,x1:d.a.oneOfType([d.a.number,d.a.string]),x2:d.a.oneOfType([d.a.number,d.a.string]),y1:d.a.oneOfType([d.a.number,d.a.string]),y2:d.a.oneOfType([d.a.number,d.a.string]),className:d.a.oneOfType([d.a.number,d.a.string]),yAxisId:d.a.oneOfType([d.a.string,d.a.number]),xAxisId:d.a.oneOfType([d.a.string,d.a.number]),shape:d.a.oneOfType([d.a.func,d.a.element])}),u.defaultProps={isFront:!1,alwaysShow:!1,xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},o=s))||o},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 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)}var o,u,s,c=n(5),l=n.n(c),f=n(1),h=n.n(f),p=n(0),d=n.n(p),y=n(4),v=n.n(y),m=n(3),b=n(7),g=n(23),x=n(2),_=n(19),w=n(6),O=n(8),A=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k=function(){function e(e,t){for(var n=0;t.length>n;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}}();t.a=n.i(m.b)((s=u=function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),k(t,[{key:"getCoordinate",value:function(){var e=this.props,t=e.x,r=e.y,a=e.xAxis,i=e.yAxis,o=a.scale,u=i.scale,s={cx:o(t)+(o.bandwidth?o.bandwidth()/2:0),cy:u(r)+(u.bandwidth?u.bandwidth()/2:0)};return n.i(O.C)(s.cx,o)&&n.i(O.C)(s.cy,u)?s:null}},{key:"renderDot",value:function(e,t){return h.a.isValidElement(e)?h.a.cloneElement(e,t):l()(e)?e(t):h.a.createElement(g.a,A({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))}},{key:"render",value:function(){var e=this.props,t=e.x,r=e.y,a=e.r,i=n.i(w.a)(t),o=n.i(w.a)(r);if(!i||!o)return null;var u=this.getCoordinate();if(!u)return null;var s=this.props,c=s.shape,l=s.className,f=A({},n.i(x.e)(this.props),n.i(x.g)(this.props),u);return h.a.createElement(b.a,{className:v()("recharts-reference-dot",l)},this.renderDot(c,f),_.a.renderCallByParent(this.props,{x:u.cx-a,y:u.cy-a,width:2*a,height:2*a}))}}]),t}(f.Component),u.displayName="ReferenceDot",u.propTypes=A({},x.m,x.n,{r:d.a.number,xAxis:d.a.shape({scale:d.a.func}),yAxis:d.a.shape({scale:d.a.func}),isFront:d.a.bool,alwaysShow:d.a.bool,x:d.a.oneOfType([d.a.number,d.a.string]),y:d.a.oneOfType([d.a.number,d.a.string]),className:d.a.oneOfType([d.a.number,d.a.string]),yAxisId:d.a.oneOfType([d.a.string,d.a.number]),xAxisId:d.a.oneOfType([d.a.string,d.a.number]),shape:d.a.oneOfType([d.a.func,d.a.element])}),u.defaultProps={isFront:!1,alwaysShow:!1,xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},o=s))||o},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 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)}var o,u,s,c=n(5),l=n.n(c),f=n(1),h=n.n(f),p=n(0),d=n.n(p),y=n(4),v=n.n(y),m=n(3),b=n(7),g=n(2),x=n(19),_=n(6),w=n(8),O=function(){function e(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,u=e[Symbol.iterator]();!(r=(o=u.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(a)throw i}}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")}}(),A=function(){function e(e,t){for(var n=0;t.length>n;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}}(),k=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T=function(e,t){return h.a.isValidElement(e)?h.a.cloneElement(e,t):l()(e)?e(t):h.a.createElement("line",k({},t,{className:"recharts-reference-line-line"}))};t.a=n.i(m.b)((s=u=function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),A(t,[{key:"getEndPoints",value:function(e,t){var r=this.props,a=r.xAxis,i=r.yAxis,o=r.viewBox,u=o.x,s=o.y,c=o.width,l=o.height;if(t){var f=this.props.y,h=i.scale,p=h.bandwidth?h.bandwidth()/2:0,d=h(f)+p;if(n.i(w.C)(d,h))return"left"===i.orientation?[{x:u,y:d},{x:u+c,y:d}]:[{x:u+c,y:d},{x:u,y:d}]}else if(e){var y=this.props.x,v=a.scale,m=v.bandwidth?v.bandwidth()/2:0,b=v(y)+m;if(n.i(w.C)(b,v))return"top"===a.orientation?[{x:b,y:s},{x:b,y:s+l}]:[{x:b,y:s+l},{x:b,y:s}]}return null}},{key:"render",value:function(){var e=this.props,t=e.x,r=e.y,a=e.shape,i=e.className,o=n.i(_.a)(t),u=n.i(_.a)(r);if(!o&&!u)return null;var s=this.getEndPoints(o,u);if(!s)return null;var c=O(s,2),l=c[0],f=c[1],p=k({},n.i(g.e)(this.props),n.i(g.g)(this.props),{x1:l.x,y1:l.y,x2:f.x,y2:f.y});return h.a.createElement(b.a,{className:v()("recharts-reference-line",i)},T(a,p),x.a.renderCallByParent(this.props,{x:Math.min(p.x1,p.x2),y:Math.min(p.y1,p.y2),width:Math.abs(p.x2-p.x1),height:Math.abs(p.y2-p.y1)}))}}]),t}(f.Component),u.displayName="ReferenceLine",u.propTypes=k({},g.m,{viewBox:d.a.shape({x:d.a.number,y:d.a.number,width:d.a.number,height:d.a.number}),xAxis:d.a.object,yAxis:d.a.object,isFront:d.a.bool,alwaysShow:d.a.bool,x:d.a.oneOfType([d.a.number,d.a.string]),y:d.a.oneOfType([d.a.number,d.a.string]),className:d.a.oneOfType([d.a.number,d.a.string]),yAxisId:d.a.oneOfType([d.a.string,d.a.number]),xAxisId:d.a.oneOfType([d.a.string,d.a.number]),shape:d.a.func}),u.defaultProps={isFront:!1,alwaysShow:!1,xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1},o=s))||o},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 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)}var o,u,s,c=n(17),l=n.n(c),f=n(173),h=n.n(f),p=n(5),d=n.n(p),y=n(12),v=n.n(y),m=n(1),b=n.n(m),g=n(0),x=n.n(g),_=n(14),w=n.n(_),O=n(4),A=n.n(O),k=n(3),T=n(7),M=n(51),E=n(28),S=n(22),P=n(19),j=n(21),C=n(33),N=n(2),I=n(13),R=n(6),L=n(8),D=n(108),B=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z=function(){function e(e,t){for(var n=0;t.length>n;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}}(),W=n.i(k.b)((s=u=function(e){function t(){var e,i,o,u;r(this,t);for(var s=arguments.length,c=Array(s),l=0;s>l;l++)c[l]=arguments[l];return i=o=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),o.state={isAnimationFinished:!1},o.cachePrevData=function(e){o.setState({prevSectors:e})},o.id=n.i(R.d)("recharts-pie-"),o.handleAnimationEnd=function(){o.setState({isAnimationFinished:!0})},u=i,a(o,u)}return i(t,e),z(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.animationId,r=t.sectors;e.animationId!==n&&this.cachePrevData(r)}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":t>e?"end":"middle"}},{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"renderClipPath",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.maxRadius,a=e.startAngle;return b.a.createElement("defs",null,b.a.createElement("clipPath",{id:this.id},b.a.createElement(w.a,{easing:e.animationEasing,isActive:e.isAnimationActive,duration:e.animationDuration,key:e.animationId,animationBegin:e.animationBegin,onAnimationEnd:this.handleAnimationEnd,from:{endAngle:a},to:{outerRadius:Math.max(this.props.outerRadius,r||0),innerRadius:0,endAngle:this.props.endAngle}},function(e){return b.a.createElement(M.a,{cx:t,cy:n,outerRadius:e.outerRadius,innerRadius:e.innerRadius,startAngle:a,endAngle:e.endAngle})})))}},{key:"renderLabelLineItem",value:function(e,t){return b.a.isValidElement(e)?b.a.cloneElement(e,t):d()(e)?e(t):b.a.createElement(E.a,B({},t,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,t,n){if(b.a.isValidElement(e))return b.a.cloneElement(e,t);var r=n;return d()(e)&&(r=e(t),b.a.isValidElement(r))?r:b.a.createElement(S.a,B({},t,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),r)}},{key:"renderLabels",value:function(e){var t=this;if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,a=r.label,i=r.labelLine,o=r.dataKey,u=r.valueKey,s=n.i(N.e)(this.props),c=n.i(N.e)(a),l=n.i(N.e)(i),f=a&&a.offsetRadius||20,h=e.map(function(e,r){var h=(e.startAngle+e.endAngle)/2,p=n.i(I.a)(e.cx,e.cy,e.outerRadius+f,h),d=B({},s,e,{stroke:"none"},c,{index:r,textAnchor:t.getTextAnchor(p.x,e.cx)},p),y=B({},s,e,{fill:"none",stroke:e.fill},l,{points:[n.i(I.a)(e.cx,e.cy,e.outerRadius,h),p]}),m=o;return v()(o)&&v()(u)?m="value":v()(o)&&(m=u),b.a.createElement(T.a,{key:"label-"+r},i&&t.renderLabelLineItem(i,y),t.renderLabelItem(a,d,n.i(L.m)(e,m)))});return b.a.createElement(T.a,{className:"recharts-pie-labels"},h)}},{key:"renderSectorItem",value:function(e,t){return b.a.isValidElement(e)?b.a.cloneElement(e,t):d()(e)?e(t):h()(e)?b.a.createElement(M.a,B({},t,e)):b.a.createElement(M.a,t)}},{key:"renderSectorsStatically",value:function(e){var t=this,r=this.props.activeShape;return e.map(function(e,a){return b.a.createElement(T.a,B({className:"recharts-pie-sector"},n.i(N.p)(t.props,e,a),{key:"sector-"+a}),t.renderSectorItem(t.isActiveIndex(a)?r:null,e))})}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,r=t.sectors,a=t.isAnimationActive,i=t.animationBegin,o=t.animationDuration,u=t.animationEasing,s=t.animationId,c=this.state.prevSectors;return b.a.createElement(w.a,{begin:i,duration:o,isActive:a,easing:u,from:{t:0},to:{t:1},key:"pie-"+s,onAnimationEnd:this.handleAnimationEnd},function(t){var a=t.t,i=[],o=r&&r[0],u=o.startAngle;return r.forEach(function(e,t){var r=c&&c[t];if(r){var o=n.i(R.g)(r.endAngle-r.startAngle,e.endAngle-e.startAngle),s=B({},e,{startAngle:u,endAngle:u+o(a)});i.push(s),u=s.endAngle}else{var l=e.endAngle,f=e.startAngle,h=n.i(R.g)(0,l-f),p=h(a),d=B({},e,{startAngle:u,endAngle:u+p});i.push(d),u=d.endAngle}}),b.a.createElement(T.a,null,e.renderSectorsStatically(i))})}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&l()(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.sectors,a=e.className,i=e.label,o=e.cx,u=e.cy,s=e.innerRadius,c=e.outerRadius,l=e.isAnimationActive;if(t||!r||!r.length||!n.i(R.b)(o)||!n.i(R.b)(u)||!n.i(R.b)(s)||!n.i(R.b)(c))return null;var f=this.state.isAnimationFinished,h=A()("recharts-pie",a);return b.a.createElement(T.a,{className:h},b.a.createElement("g",{clipPath:"url(#"+this.id+")"},this.renderSectors()),i&&this.renderLabels(r),P.a.renderCallByParent(this.props,null,!1),(!l||f)&&j.a.renderCallByParent(this.props,r,!1))}}]),t}(m.Component),u.displayName="Pie",u.propTypes=B({},N.m,N.n,{className:x.a.string,animationId:x.a.number,cx:x.a.oneOfType([x.a.number,x.a.string]),cy:x.a.oneOfType([x.a.number,x.a.string]),startAngle:x.a.number,endAngle:x.a.number,paddingAngle:x.a.number,innerRadius:x.a.oneOfType([x.a.number,x.a.string]),outerRadius:x.a.oneOfType([x.a.number,x.a.string]),cornerRadius:x.a.oneOfType([x.a.number,x.a.string]),dataKey:x.a.oneOfType([x.a.string,x.a.number,x.a.func]).isRequired,nameKey:x.a.oneOfType([x.a.string,x.a.number,x.a.func]),valueKey:x.a.oneOfType([x.a.string,x.a.number,x.a.func]),data:x.a.arrayOf(x.a.object),minAngle:x.a.number,legendType:x.a.oneOf(N.q),maxRadius:x.a.number,sectors:x.a.arrayOf(x.a.object),hide:x.a.bool,labelLine:x.a.oneOfType([x.a.object,x.a.func,x.a.element,x.a.bool]),label:x.a.oneOfType([x.a.shape({offsetRadius:x.a.number}),x.a.func,x.a.element,x.a.bool]),activeShape:x.a.oneOfType([x.a.object,x.a.func,x.a.element]),activeIndex:x.a.oneOfType([x.a.number,x.a.arrayOf(x.a.number)]),isAnimationActive:x.a.bool,animationBegin:x.a.number,animationDuration:x.a.number,animationEasing:x.a.oneOf(["ease","ease-in","ease-out","ease-in-out","spring","linear"])}),u.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!n.i(N.k)(),animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name"},u.parseDeltaAngle=function(e){var t=e.startAngle,r=e.endAngle;return n.i(R.h)(r-t)*Math.min(Math.abs(r-t),360)},u.getRealPieData=function(e){var t=e.props,r=t.data,a=t.children,i=n.i(N.e)(e.props),o=n.i(N.c)(a,C.a);return r&&r.length?r.map(function(e,t){return B({payload:e},i,e,o&&o[t]&&o[t].props)}):o&&o.length?o.map(function(e){return B({},i,e.props)}):[]},u.parseCoordinateOfPie=function(e,t){var r=t.top,a=t.left,i=t.width,o=t.height,u=n.i(I.d)(i,o);return{cx:a+n.i(R.c)(e.props.cx,i,i/2),cy:r+n.i(R.c)(e.props.cy,o,o/2),innerRadius:n.i(R.c)(e.props.innerRadius,u,0),outerRadius:n.i(R.c)(e.props.outerRadius,u,.8*u),maxRadius:e.props.maxRadius||Math.sqrt(i*i+o*o)/2}},u.getComposedData=function(e){var t=e.item,r=e.offset,a=e.onItemMouseLeave,i=e.onItemMouseEnter,o=W.getRealPieData(t);if(!o||!o.length)return[];var u=t.props,s=u.cornerRadius,c=u.startAngle,l=u.endAngle,f=u.paddingAngle,h=u.dataKey,p=u.nameKey,d=u.valueKey,y=Math.abs(t.props.minAngle),m=W.parseCoordinateOfPie(t,r),b=o.length,g=W.parseDeltaAngle({startAngle:c,endAngle:l}),x=Math.abs(g),_=(360>x?b-1:b)*f,w=x-b*y-_,O=h;v()(h)&&v()(d)?(n.i(D.a)(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),O="value"):v()(h)&&(n.i(D.a)(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),O=d);var A=o.reduce(function(e,t){var r=n.i(L.m)(t,O,0);return e+(n.i(R.b)(r)?r:0)},0),k=[],T=void 0;return A>0&&(k=o.map(function(e,t){var r=n.i(L.m)(e,O,0),a=n.i(L.m)(e,p,t),i=(n.i(R.b)(r)?r:0)/A,o=void 0;o=t?T.endAngle+n.i(R.h)(g)*f:c;var u=o+n.i(R.h)(g)*(y+i*w),l=(o+u)/2,h=(m.innerRadius+m.outerRadius)/2,d=[{name:a,value:r,payload:e}],v=n.i(I.a)(m.cx,m.cy,h,l);return T=B({percent:i,cornerRadius:s,name:a,tooltipPayload:d,midAngle:l,middleRadius:h,tooltipPosition:v},e,m,{value:n.i(L.m)(e,O),startAngle:o,endAngle:u,payload:e})})),B({},m,{sectors:k,onMouseLeave:a,onMouseEnter:i})},o=s))||o;t.a=W},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 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)}var o,u,s,c=n(17),l=n.n(c),f=n(5),h=n.n(f),p=n(1),d=n.n(p),y=n(0),v=n.n(y),m=n(14),b=n.n(m),g=n(4),x=n.n(g),_=n(6),w=n(3),O=n(2),A=n(13),k=n(8),T=n(71),M=n(23),E=n(7),S=n(21),P=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j=function(){function e(e,t){for(var n=0;t.length>n;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}}();t.a=n.i(w.b)((s=u=function(e){function t(){var e,n,i,o;r(this,t);for(var u=arguments.length,s=Array(u),c=0;u>c;c++)s[c]=arguments[c];return n=i=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.state={isAnimationFinished:!1},i.cachePrevData=function(e){i.setState({prevPoints:e})},i.handleAnimationEnd=function(){i.setState({isAnimationFinished:!0})},i.handleAnimationStart=function(){i.setState({isAnimationFinished:!1})},i.handleMouseEnter=function(e){var t=i.props.onMouseEnter;t&&t(i.props,e)},i.handleMouseLeave=function(e){var t=i.props.onMouseLeave;t&&t(i.props,e)},o=n,a(i,o)}return i(t,e),j(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.animationId,r=t.points;e.animationId!==n&&this.cachePrevData(r)}},{key:"renderDotItem",value:function(e,t){return d.a.isValidElement(e)?d.a.cloneElement(e,t):h()(e)?e(t):d.a.createElement(M.a,P({},t,{className:"recharts-radar-dot"}))}},{key:"renderDots",value:function(e){var t=this,r=this.props.dot,a=n.i(O.e)(this.props),i=n.i(O.e)(r),o=e.map(function(e,n){var o=P({key:"dot-"+n,r:3},a,i,{cx:e.x,cy:e.y,index:n,playload:e});return t.renderDotItem(r,o)});return d.a.createElement(E.a,{className:"recharts-radar-dots"},o)}},{key:"renderPolygonStatically",value:function(e){var t=this.props,r=t.shape,a=t.dot,i=void 0;return i=d.a.isValidElement(r)?d.a.cloneElement(r,P({},this.props,{points:e})):h()(r)?r(P({},this.props,{points:e})):d.a.createElement(T.a,P({},n.i(O.g)(this.props),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},n.i(O.e)(this.props),{points:e})),d.a.createElement(E.a,{className:"recharts-radar-polygon"},i,a?this.renderDots(e):null)}},{key:"renderPolygonWithAnimation",value:function(){var e=this,t=this.props,r=t.points,a=t.isAnimationActive,i=t.animationBegin,o=t.animationDuration,u=t.animationEasing,s=t.animationId,c=this.state.prevPoints;return d.a.createElement(b.a,{begin:i,duration:o,isActive:a,easing:u,from:{t:0},to:{t:1},key:"radar-"+s,onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(t){var a=t.t,i=r.map(function(e,t){var r=c&&c[t];if(r){var i=n.i(_.g)(r.x,e.x),o=n.i(_.g)(r.y,e.y);return P({},e,{x:i(a),y:o(a)})}var u=n.i(_.g)(e.cx,e.x),s=n.i(_.g)(e.cy,e.y);return P({},e,{x:u(a),y:s(a)})});return e.renderPolygonStatically(i)})}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=this.state.prevPoints;return!(n&&t&&t.length)||r&&l()(r,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.className,r=e.points,a=e.isAnimationActive;if(t||!r||!r.length)return null;var i=this.state.isAnimationFinished,o=x()("recharts-radar",n);return d.a.createElement(E.a,{className:o},this.renderPolygon(),(!a||i)&&S.a.renderCallByParent(this.props,r))}}]),t}(p.Component),u.displayName="Radar",u.propTypes=P({},O.m,{className:v.a.string,dataKey:v.a.oneOfType([v.a.number,v.a.string,v.a.func]).isRequired,angleAxisId:v.a.oneOfType([v.a.string,v.a.number]),radiusAxisId:v.a.oneOfType([v.a.string,v.a.number]),points:v.a.arrayOf(v.a.shape({x:v.a.number,y:v.a.number,cx:v.a.number,cy:v.a.number,angle:v.a.number,radius:v.a.number,value:v.a.number,payload:v.a.object})),shape:v.a.oneOfType([v.a.element,v.a.func]),activeDot:v.a.oneOfType([v.a.object,v.a.element,v.a.func,v.a.bool]),dot:v.a.oneOfType([v.a.object,v.a.element,v.a.func,v.a.bool]),label:v.a.oneOfType([v.a.element,v.a.func,v.a.object,v.a.bool]),legendType:v.a.oneOf(O.q),hide:v.a.bool,onMouseEnter:v.a.func,onMouseLeave:v.a.func,onClick:v.a.func,isAnimationActive:v.a.bool,animationId:v.a.number,animationBegin:v.a.number,animationDuration:v.a.number,animationEasing:v.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),u.defaultProps={angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!n.i(O.k)(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},u.getComposedData=function(e){var t=e.radiusAxis,r=e.angleAxis,a=e.displayedData,i=e.dataKey,o=r.cx,u=r.cy;return{points:a.map(function(e,a){var s=n.i(k.m)(e,r.dataKey,a),c=n.i(k.m)(e,i,0),l=r.scale(s),f=t.scale(c);return P({},n.i(A.a)(o,u,f,l),{name:s,value:c,cx:o,cy:u,radius:f,angle:l,payload:e})})}},o=s))||o},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)0>t.indexOf(r)&&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(!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 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 u,s,c,l=n(17),f=n.n(l),h=n(5),p=n.n(h),d=n(11),y=n.n(d),v=n(1),m=n.n(v),b=n(0),g=n.n(b),x=n(4),_=n.n(x),w=n(14),O=n.n(w),A=n(51),k=n(7),T=n(2),M=n(3),E=n(21),S=n(33),P=n(6),j=n(8),C=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N=function(){function e(e,t){for(var n=0;t.length>n;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}}();t.a=n.i(M.b)((c=s=function(e){function t(){var e,n,r,o;a(this,t);for(var u=arguments.length,s=Array(u),c=0;u>c;c++)s[c]=arguments[c];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r.state={isAnimationFinished:!1},r.cachePrevData=function(e){r.setState({prevData:e})},r.handleAnimationEnd=function(){r.setState({isAnimationFinished:!0})},r.handleAnimationStart=function(){r.setState({isAnimationFinished:!1})},o=n,i(r,o)}return o(t,e),N(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.animationId,r=t.data;e.animationId!==n&&this.cachePrevData(r)}},{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,r=e.endAngle;return n.i(P.h)(r-t)*Math.min(Math.abs(r-t),360)}},{key:"renderSectorShape",value:function(e,t){return m.a.isValidElement(e)?m.a.cloneElement(e,t):p()(e)?e(t):m.a.createElement(A.a,t)}},{key:"renderSectorsStatically",value:function(e){var t=this,a=this.props,i=a.shape,o=a.activeShape,u=a.activeIndex,s=a.cornerRadius,c=r(a,["shape","activeShape","activeIndex","cornerRadius"]),l=n.i(T.e)(c);return e.map(function(e,r){var a=C({},l,{cornerRadius:s},e,n.i(T.p)(t.props,e,r),{key:"sector-"+r,className:"recharts-radial-bar-sector"});return t.renderSectorShape(r===u?o:i,a)})}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,r=t.data,a=t.isAnimationActive,i=t.animationBegin,o=t.animationDuration,u=t.animationEasing,s=t.animationId,c=this.state.prevData;return m.a.createElement(O.a,{begin:i,duration:o,isActive:a,easing:u,from:{t:0},to:{t:1},key:"radialBar-"+s,onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(t){var a=t.t,i=r.map(function(e,t){var r=c&&c[t];if(r){var i=n.i(P.g)(r.startAngle,e.startAngle),o=n.i(P.g)(r.endAngle,e.endAngle);return C({},e,{startAngle:i(a),endAngle:o(a)})}var u=e.endAngle,s=e.startAngle,l=n.i(P.g)(s,u);return C({},e,{endAngle:l(a)})});return m.a.createElement(k.a,null,e.renderSectorsStatically(i))})}},{key:"renderSectors",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&f()(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,a=this.props.cornerRadius,i=n.i(T.e)(this.props.background);return e.map(function(e,o){var u=e.background,s=r(e,["value","background"]);if(!u)return null;var c=C({cornerRadius:a},s,{fill:"#eee"},u,i,n.i(T.p)(t.props,e,o),{index:o,key:"sector-"+o,className:"recharts-radial-bar-background-sector"});return t.renderSectorShape(u,c)})}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,a=e.background,i=e.isAnimationActive;if(t||!n||!n.length)return null;var o=this.state.isAnimationFinished,u=_()("recharts-area",r);return m.a.createElement(k.a,{className:u},a&&m.a.createElement(k.a,{className:"recharts-radial-bar-background"},this.renderBackground(n)),m.a.createElement(k.a,{className:"recharts-radial-bar-sectors"},this.renderSectors(n)),(!i||o)&&E.a.renderCallByParent(C({},this.props,{clockWise:0>this.getDeltaAngle()}),n))}}]),t}(v.Component),s.displayName="RadialBar",s.propTypes=C({},T.m,{className:g.a.string,angleAxisId:g.a.oneOfType([g.a.string,g.a.number]),radiusAxisId:g.a.oneOfType([g.a.string,g.a.number]),shape:g.a.oneOfType([g.a.func,g.a.element]),activeShape:g.a.oneOfType([g.a.object,g.a.func,g.a.element]),activeIndex:g.a.number,dataKey:g.a.oneOfType([g.a.string,g.a.number,g.a.func]).isRequired,cornerRadius:g.a.oneOfType([g.a.number,g.a.string]),minPointSize:g.a.number,maxBarSize:g.a.number,data:g.a.arrayOf(g.a.shape({cx:g.a.number,cy:g.a.number,innerRadius:g.a.number,outerRadius:g.a.number,value:g.a.value})),legendType:g.a.oneOf(T.q),label:g.a.oneOfType([g.a.bool,g.a.func,g.a.element,g.a.object]),background:g.a.oneOfType([g.a.bool,g.a.func,g.a.object,g.a.element]),hide:g.a.bool,onMouseEnter:g.a.func,onMouseLeave:g.a.func,onClick:g.a.func,isAnimationActive:g.a.bool,animationBegin:g.a.number,animationDuration:g.a.number,animationEasing:g.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear","spring"])}),s.defaultProps={angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!n.i(T.k)(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},s.getComposedData=function(e){var t=e.item,r=e.props,a=e.radiusAxis,i=e.radiusAxisTicks,o=e.angleAxis,u=e.angleAxisTicks,s=e.displayedData,c=e.dataKey,l=e.stackedData,f=e.barPosition,h=e.bandSize,p=e.dataStartIndex,d=n.i(j.x)(f,t);if(!d)return[];var v=o.cx,m=o.cy,b=r.layout,g=t.props,x=g.children,_=g.minPointSize,w="radial"===b?o:a,O=l?w.scale.domain():null,A=n.i(j.y)({props:r,numericAxis:w}),k=n.i(T.c)(x,S.a);return{data:s.map(function(e,t){var s=void 0,f=void 0,g=void 0,x=void 0,w=void 0,T=void 0;if(l?s=n.i(j.z)(l[p+t],O):(s=n.i(j.m)(e,c),y()(s)||(s=[A,s])),"radial"===b){f=n.i(j.A)({axis:a,ticks:i,bandSize:h,offset:d.offset,entry:e,index:t}),w=o.scale(s[1]),x=o.scale(s[0]),g=f+d.size;var M=w-x;if(Math.abs(_)>0&&Math.abs(M)<Math.abs(_)){w+=n.i(P.h)(M||_)*(Math.abs(_)-Math.abs(M))}T={background:{cx:v,cy:m,innerRadius:f,outerRadius:g,startAngle:r.startAngle,endAngle:r.endAngle}}}else{f=a.scale(s[0]),g=a.scale(s[1]),x=n.i(j.A)({axis:o,ticks:u,bandSize:h,offset:d.offset,entry:e,index:t}),w=x+d.size;var E=g-f;if(Math.abs(_)>0&&Math.abs(E)<Math.abs(_)){g+=n.i(P.h)(E||_)*(Math.abs(_)-Math.abs(E))}}return C({},e,T,{payload:e,value:l?s:s[1],cx:v,cy:m,innerRadius:f,outerRadius:g,startAngle:x,endAngle:w},k&&k[t]&&k[t].props)}),layout:b}},u=c))||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 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)}var o,u,s,c=n(1),l=n.n(c),f=n(0),h=n.n(f),p=n(4),d=n.n(p),y=n(3),v=n(6),m=n(2),b=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g=function(){function e(e,t){for(var n=0;t.length>n;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}}();t.a=n.i(y.b)((s=u=function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),g(t,[{key:"getPath",value:function(e,t,n,r,a,i){return"M"+e+","+a+"v"+r+"M"+i+","+t+"h"+n}},{key:"render",value:function(){var e=this.props,t=e.x,r=e.y,a=e.width,i=e.height,o=e.top,u=e.left,s=e.className;return n.i(v.b)(t)&&n.i(v.b)(r)&&n.i(v.b)(a)&&n.i(v.b)(i)&&n.i(v.b)(o)&&n.i(v.b)(u)?l.a.createElement("path",b({},n.i(m.e)(this.props),{className:d()("recharts-cross",s),d:this.getPath(t,r,a,i,o,u)})):null}}]),t}(c.Component),u.displayName="Cross",u.propTypes=b({},m.m,{x:h.a.number,y:h.a.number,width:h.a.number,height:h.a.number,top:h.a.number,left:h.a.number,className:h.a.string}),u.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0},o=s))||o},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e,t,n,r,a,i,o,u){}},function(e,t){function n(e,t,n){e instanceof RegExp&&(e=r(e,n)),t instanceof RegExp&&(t=r(t,n));var i=a(e,t,n);return i&&{start:i[0],end:i[1],pre:n.slice(0,i[0]),body:n.slice(i[0]+e.length,i[1]),post:n.slice(i[1]+t.length)}}function r(e,t){var n=t.match(e);return n?n[0]:null}function a(e,t,n){var r,a,i,o,u,s=n.indexOf(e),c=n.indexOf(t,s+1),l=s;if(s>=0&&c>0){for(r=[],i=n.length;l>=0&&!u;)l==s?(r.push(l),s=n.indexOf(e,l+1)):1==r.length?u=[r.pop(),c]:(a=r.pop(),i>a&&(i=a,o=c),c=n.indexOf(t,l+1)),l=c>s&&s>=0?s:c;r.length&&(u=[i,o])}return u}e.exports=n,n.range=a},function(e,t,n){var r=n(209),a=n(210);e.exports=n(75)?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&1e-8>e?e-e*e/2:Math.log(1+e)}},function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return i});var r=Array.prototype,a=r.slice,i=r.map},function(e,t,n){"use strict";var r=n(30),a=n(114),i=n.i(a.a)(r.a),o=i.right;t.a=o},function(e,t,n){"use strict";function r(e){return function(t,r){return n.i(a.a)(e(t),r)}}var a=n(30);t.a=function(e){return 1===e.length&&(e=r(e)),{left:function(t,n,r,a){for(null==r&&(r=0),null==a&&(a=t.length);a>r;){var i=r+a>>>1;0>e(t[i],n)?r=i+1:a=i}return r},right:function(t,n,r,a){for(null==r&&(r=0),null==a&&(a=t.length);a>r;){var i=r+a>>>1;e(t[i],n)>0?a=i:r=i+1}return r}}}},function(e,t,n){"use strict";var r=n(123);t.a=function(e,t){var a=n.i(r.a)(e,t);return a?Math.sqrt(a):a}},function(e,t,n){"use strict";t.a=function(e,t){var n,r,a,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=a=n;++o<i;)null!=(n=e[o])&&(r>n&&(r=n),n>a&&(a=n))}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=a=n;++o<i;)null!=(n=t(e[o],o,e))&&(r>n&&(r=n),n>a&&(a=n));return[r,a]}},function(e,t,n){"use strict";t.a=function(e,t){var n,r,a=e.length,i=-1;if(null==t){for(;++i<a;)if(null!=(n=e[i])&&n>=n)for(r=n;++i<a;)null!=(n=e[i])&&r>n&&(r=n)}else for(;++i<a;)if(null!=(n=t(e[i],i,e))&&n>=n)for(r=n;++i<a;)null!=(n=t(e[i],i,e))&&r>n&&(r=n);return r}},function(e,t,n){"use strict";function r(e,t){return[e,t]}t.a=r},function(e,t,n){"use strict";t.a=function(e,t,n){e=+e,t=+t,n=2>(a=arguments.length)?(t=e,e=0,1):3>a?1:+n;for(var r=-1,a=0|Math.max(0,Math.ceil((t-e)/n)),i=Array(a);++r<a;)i[r]=e+r*n;return i}},function(e,t,n){"use strict";t.a=function(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1}},function(e,t,n){"use strict";function r(e,t,n){var r=(t-e)/Math.max(0,n),a=Math.floor(Math.log(r)/Math.LN10),s=r/Math.pow(10,a);return 0>a?-Math.pow(10,-a)/(i>s?o>s?u>s?1:2:5:10):(i>s?o>s?u>s?1:2:5:10)*Math.pow(10,a)}function a(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),a=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),s=r/a;return i>s?o>s?u>s||(a*=2):a*=5:a*=10,e>t?-a:a}t.b=a;var i=Math.sqrt(50),o=Math.sqrt(10),u=Math.sqrt(2);t.a=function(e,t,n){var a,i,o,u=e>t,s=-1;if(u&&(a=e,e=t,t=a),0===(o=r(e,t,n))||!isFinite(o))return[];if(o>0)for(e=Math.ceil(e/o),t=Math.floor(t/o),i=Array(a=Math.ceil(t-e+1));++s<a;)i[s]=(e+s)*o;else for(e=Math.floor(e*o),t=Math.ceil(t*o),i=Array(a=Math.ceil(e-t+1));++s<a;)i[s]=(e-s)/o;return u&&i.reverse(),i}},function(e,t,n){"use strict";function r(e){return e.length}var a=n(117);t.a=function(e){if(!(u=e.length))return[];for(var t=-1,i=n.i(a.a)(e,r),o=Array(i);++t<i;)for(var u,s=-1,c=o[t]=Array(u);++s<u;)c[s]=e[s][t];return o}},function(e,t,n){"use strict";var r=n(36);t.a=function(e,t){var a,i,o=e.length,u=0,s=-1,c=0,l=0;if(null==t)for(;++s<o;)isNaN(a=n.i(r.a)(e[s]))||(i=a-c,c+=i/++u,l+=i*(a-c));else for(;++s<o;)isNaN(a=n.i(r.a)(t(e[s],s,e)))||(i=a-c,c+=i/++u,l+=i*(a-c));if(u>1)return l/(u-1)}},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return a});var r=Math.PI/180,a=180/Math.PI},function(e,t,n){"use strict";var r=n(255);n.d(t,"f",function(){return r.a}),n.d(t,"c",function(){return r.b});var a=(n(129),n(127));n.d(t,"a",function(){return a.a});var i=n(261);n.d(t,"e",function(){return i.a});var o=n(262);n.d(t,"b",function(){return o.a});var u=n(263);n.d(t,"d",function(){return u.a})},function(e,t,n){"use strict";n.d(t,"b",function(){return r});var r,a=n(84);t.a=function(e,t){var i=n.i(a.a)(e,t);if(!i)return e+"";var o=i[0],u=i[1],s=u-(r=3*Math.max(-8,Math.min(8,Math.floor(u/3))))+1,c=o.length;return s===c?o:s>c?o+Array(s-c+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+Array(1-s).join("0")+n.i(a.a)(e,Math.max(0,t+s-1))[0]}},function(e,t,n){"use strict";function r(e){return new a(e)}function a(e){if(!(t=o.exec(e)))throw Error("invalid format: "+e);var t,n=t[1]||" ",r=t[2]||">",a=t[3]||"-",u=t[4]||"",s=!!t[5],c=t[6]&&+t[6],l=!!t[7],f=t[8]&&+t[8].slice(1),h=t[9]||"";"n"===h?(l=!0,h="g"):i.a[h]||(h=""),(s||"0"===n&&"="===r)&&(s=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=a,this.symbol=u,this.zero=s,this.width=c,this.comma=l,this.precision=f,this.type=h}t.a=r;var i=n(128),o=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;r.prototype=a.prototype,a.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type}},function(e,t,n){"use strict";var r=n(256),a=n(126),i=n(259);t.a={"":r.a,"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return n.i(i.a)(100*e,t)},r:i.a,s:a.a,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}}},function(e,t,n){"use strict";var r=n(53),a=n(257),i=n(258),o=n(127),u=n(128),s=n(126),c=n(260),l=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];t.a=function(e){function t(e){function t(e){var t,n,o,u=_,c=w;if("c"===x)c=O(e)+c,e="";else{e=+e;var p=0>e;if(e=O(Math.abs(e),g),p&&0==+e&&(p=!1),u=(p?"("===i?i:"-":"-"===i||"("===i?"":i)+u,c=c+("s"===x?l[8+s.b/3]:"")+(p&&"("===i?")":""),A)for(t=-1,n=e.length;++t<n;)if(48>(o=e.charCodeAt(t))||o>57){c=(46===o?d+e.slice(t+1):e.slice(t))+c,e=e.slice(0,t);break}}b&&!f&&(e=h(e,1/0));var v=u.length+e.length+c.length,k=m>v?Array(m-v+1).join(r):"";switch(b&&f&&(e=h(k+e,k.length?m-c.length:1/0),k=""),a){case"<":e=u+e+c+k;break;case"=":e=u+k+e+c;break;case"^":e=k.slice(0,v=k.length>>1)+u+e+c+k.slice(v);break;default:e=k+u+e+c}return y(e)}e=n.i(o.a)(e);var r=e.fill,a=e.align,i=e.sign,c=e.symbol,f=e.zero,m=e.width,b=e.comma,g=e.precision,x=e.type,_="$"===c?p[0]:"#"===c&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",w="$"===c?p[1]:/[%p]/.test(x)?v:"",O=u.a[x],A=!x||/[defgprs%]/.test(x);return g=null==g?x?6:12:/[gprs]/.test(x)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),t.toString=function(){return e+""},t}function f(e,a){var i=t((e=n.i(o.a)(e),e.type="f",e)),u=3*Math.max(-8,Math.min(8,Math.floor(n.i(r.a)(a)/3))),s=Math.pow(10,-u),c=l[8+u/3];return function(e){return i(s*e)+c}}var h=e.grouping&&e.thousands?n.i(a.a)(e.grouping,e.thousands):c.a,p=e.currency,d=e.decimal,y=e.numerals?n.i(i.a)(e.numerals):c.a,v=e.percent||"%";return{format:t,formatPrefix:f}}},function(e,t,n){"use strict";var r=n(86);t.a=function(e,t){var a,i=t?t.length:0,o=e?Math.min(i,e.length):0,u=Array(i),s=Array(i);for(a=0;o>a;++a)u[a]=n.i(r.a)(e[a],t[a]);for(;i>a;++a)s[a]=t[a];return function(e){for(a=0;o>a;++a)s[a]=u[a](e);return s}}},function(e,t,n){"use strict";var r=n(85);t.a=function(e){var t=e.length;return function(a){var i=Math.floor((0>(a%=1)?++a:a)*t),o=e[(i+t-1)%t],u=e[i%t],s=e[(i+1)%t],c=e[(i+2)%t];return n.i(r.b)((a-i/t)*t,o,u,s,c)}}},function(e,t,n){"use strict";t.a=function(e){return function(){return e}}},function(e,t,n){"use strict";t.a=function(e,t){var n=new Date;return e=+e,t-=e,function(r){return n.setTime(e+t*r),n}}},function(e,t,n){"use strict";var r=n(86);t.a=function(e,t){var a,i={},o={};null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={});for(a in t)a in e?i[a]=n.i(r.a)(e[a],t[a]):o[a]=t[a];return function(e){for(a in i)o[a]=i[a](e);return o}}},function(e,t,n){"use strict";function r(e){return function(t){var r,i,o=t.length,u=Array(o),s=Array(o),c=Array(o);for(r=0;o>r;++r)i=n.i(a.e)(t[r]),u[r]=i.r||0,s[r]=i.g||0,c[r]=i.b||0;return u=e(u),s=e(s),c=e(c),i.opacity=1,function(e){return i.r=u(e),i.g=s(e),i.b=c(e),i+""}}}var a=n(20),i=n(85),o=n(131),u=n(38);t.a=function e(t){function r(e,t){var r=i((e=n.i(a.e)(e)).r,(t=n.i(a.e)(t)).r),o=i(e.g,t.g),s=i(e.b,t.b),c=n.i(u.a)(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=s(t),e.opacity=c(t),e+""}}var i=n.i(u.c)(t);return r.gamma=e,r}(1);r(i.a),r(o.a)},function(e,t,n){"use strict";function r(e){return function(){return e}}function a(e){return function(t){return e(t)+""}}var i=n(54),o=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,u=RegExp(o.source,"g");t.a=function(e,t){var s,c,l,f=o.lastIndex=u.lastIndex=0,h=-1,p=[],d=[];for(e+="",t+="";(s=o.exec(e))&&(c=u.exec(t));)(l=c.index)>f&&(l=t.slice(f,l),p[h]?p[h]+=l:p[++h]=l),(s=s[0])===(c=c[0])?p[h]?p[h]+=c:p[++h]=c:(p[++h]=null,d.push({i:h,x:n.i(i.a)(s,c)})),f=u.lastIndex;return t.length>f&&(l=t.slice(f),p[h]?p[h]+=l:p[++h]=l),2>p.length?d[0]?a(d[0].x):r(t):(t=d.length,function(e){for(var n,r=0;t>r;++r)p[(n=d[r]).i]=n.x(e);return p.join("")})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(275);n.d(t,"scaleBand",function(){return r.a}),n.d(t,"scalePoint",function(){return r.b});var a=n(281);n.d(t,"scaleIdentity",function(){return a.a});var i=n(40);n.d(t,"scaleLinear",function(){return i.a});var o=n(282);n.d(t,"scaleLog",function(){return o.a});var u=n(140);n.d(t,"scaleOrdinal",function(){return u.a}),n.d(t,"scaleImplicit",function(){return u.b});var s=n(283);n.d(t,"scalePow",function(){return s.a}),n.d(t,"scaleSqrt",function(){return s.b});var c=n(284);n.d(t,"scaleQuantile",function(){return c.a});var l=n(285);n.d(t,"scaleQuantize",function(){return l.a});var f=n(288);n.d(t,"scaleThreshold",function(){return f.a});var h=n(141);n.d(t,"scaleTime",function(){return h.a});var p=n(290);n.d(t,"scaleUtc",function(){return p.a});var d=n(276);n.d(t,"schemeCategory10",function(){return d.a});var y=n(278);n.d(t,"schemeCategory20b",function(){return y.a});var v=n(279);n.d(t,"schemeCategory20c",function(){return v.a});var m=n(277);n.d(t,"schemeCategory20",function(){return m.a});var b=n(280);n.d(t,"interpolateCubehelixDefault",function(){return b.a});var g=n(286);n.d(t,"interpolateRainbow",function(){return g.a}),n.d(t,"interpolateWarm",function(){return g.b}),n.d(t,"interpolateCool",function(){return g.c});var x=n(291);n.d(t,"interpolateViridis",function(){return x.a}),n.d(t,"interpolateMagma",function(){return x.b}),n.d(t,"interpolateInferno",function(){return x.c}),n.d(t,"interpolatePlasma",function(){return x.d});var _=n(287);n.d(t,"scaleSequential",function(){return _.a})},function(e,t,n){"use strict";t.a=function(e,t){e=e.slice();var n,r=0,a=e.length-1,i=e[r],o=e[a];return i>o&&(n=r,r=a,a=n,n=i,i=o,o=n),e[r]=t.floor(i),e[a]=t.ceil(o),e}},function(e,t,n){"use strict";t.a=function(e){return+e}},function(e,t,n){"use strict";function r(e){function t(t){var n=t+"",r=u.get(n);if(!r){if(c!==o)return c;u.set(n,r=s.push(t))}return e[(r-1)%e.length]}var u=n.i(a.a)(),s=[],c=o;return e=null==e?[]:i.b.call(e),t.domain=function(e){if(!arguments.length)return s.slice();s=[],u=n.i(a.a)();for(var r,i,o=-1,c=e.length;++o<c;)u.has(i=(r=e[o])+"")||u.set(i,s.push(r));return t},t.range=function(n){return arguments.length?(e=i.b.call(n),t):e.slice()},t.unknown=function(e){return arguments.length?(c=e,t):c},t.copy=function(){return r().domain(s).range(e).unknown(c)},t}n.d(t,"b",function(){return o}),t.a=r;var a=n(247),i=n(24),o={name:"implicit"}},function(e,t,n){"use strict";function r(e){return new Date(e)}function a(e){return e instanceof Date?+e:+new Date(+e)}function i(e,t,s,c,x,_,w,O,A){function k(n){return(w(n)<n?P:_(n)<n?j:x(n)<n?C:c(n)<n?N:t(n)<n?s(n)<n?I:R:e(n)<n?L:D)(n)}function T(t,r,a,i){if(null==t&&(t=10),"number"==typeof t){var u=Math.abs(a-r)/t,s=n.i(o.d)(function(e){return e[2]}).right(B,u);s===B.length?(i=n.i(o.b)(r/g,a/g,t),t=e):s?(s=B[B[s][2]/u>u/B[s-1][2]?s-1:s],i=s[1],t=s[0]):(i=n.i(o.b)(r,a,t),t=O)}return null==i?t:t.every(i)}var M=n.i(f.a)(f.b,u.a),E=M.invert,S=M.domain,P=A(".%L"),j=A(":%S"),C=A("%I:%M"),N=A("%I %p"),I=A("%a %d"),R=A("%b %d"),L=A("%B"),D=A("%Y"),B=[[w,1,p],[w,5,5*p],[w,15,15*p],[w,30,30*p],[_,1,d],[_,5,5*d],[_,15,15*d],[_,30,30*d],[x,1,y],[x,3,3*y],[x,6,6*y],[x,12,12*y],[c,1,v],[c,2,2*v],[s,1,m],[t,1,b],[t,3,3*b],[e,1,g]];return M.invert=function(e){return new Date(E(e))},M.domain=function(e){return arguments.length?S(l.a.call(e,a)):S().map(r)},M.ticks=function(e,t){var n,r=S(),a=r[0],i=r[r.length-1],o=a>i;return o&&(n=a,a=i,i=n),n=T(e,a,i,t),n=n?n.range(a,i+1):[],o?n.reverse():n},M.tickFormat=function(e,t){return null==t?k:A(t)},M.nice=function(e,t){var r=S();return(e=T(e,r[0],r[r.length-1],t))?S(n.i(h.a)(r,e)):M},M.copy=function(){return n.i(f.c)(M,i(e,t,s,c,x,_,w,O,A))},M}t.b=i;var o=n(15),u=n(37),s=n(93),c=n(155),l=n(24),f=n(56),h=n(138),p=1e3,d=60*p,y=60*d,v=24*y,m=7*v,b=30*v,g=365*v;t.a=function(){return i(s.j,s.o,s.p,s.i,s.q,s.r,s.s,s.t,c.b).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}},function(e,t,n){"use strict";var r=n(55),a=n(31),i=n(59),o=n(90),u=n(146);t.a=function(){function e(e){var t,a,i,o,u,v=e.length,m=!1,b=Array(v),g=Array(v);for(null==p&&(y=d(u=n.i(r.a)())),t=0;v>=t;++t){if(!(v>t&&h(o=e[t],t,e))===m)if(m=!m)a=t,y.areaStart(),y.lineStart();else{for(y.lineEnd(),y.lineStart(),i=t-1;i>=a;--i)y.point(b[i],g[i]);y.lineEnd(),y.areaEnd()}m&&(b[t]=+s(o,t,e),g[t]=+l(o,t,e),y.point(c?+c(o,t,e):b[t],f?+f(o,t,e):g[t]))}if(u)return y=null,u+""||null}function t(){return n.i(o.a)().defined(h).curve(d).context(p)}var s=u.a,c=null,l=n.i(a.a)(0),f=u.b,h=n.i(a.a)(!0),p=null,d=i.a,y=null;return e.x=function(t){return arguments.length?(s="function"==typeof t?t:n.i(a.a)(+t),c=null,e):s},e.x0=function(t){return arguments.length?(s="function"==typeof t?t:n.i(a.a)(+t),e):s},e.x1=function(t){return arguments.length?(c=null==t?null:"function"==typeof t?t:n.i(a.a)(+t),e):c},e.y=function(t){return arguments.length?(l="function"==typeof t?t:n.i(a.a)(+t),f=null,e):l},e.y0=function(t){return arguments.length?(l="function"==typeof t?t:n.i(a.a)(+t),e):l},e.y1=function(t){return arguments.length?(f=null==t?null:"function"==typeof t?t:n.i(a.a)(+t),e):f},e.lineX0=e.lineY0=function(){return t().x(s).y(l)},e.lineY1=function(){return t().x(s).y(f)},e.lineX1=function(){return t().x(c).y(l)},e.defined=function(t){return arguments.length?(h="function"==typeof t?t:n.i(a.a)(!!t),e):h},e.curve=function(t){return arguments.length?(d=t,null!=p&&(y=d(p)),e):d},e.context=function(t){return arguments.length?(null==t?p=y=null:y=d(p=t),e):p},e}},function(e,t,n){"use strict";function r(e,t){this._context=e,this._k=(1-t)/6}t.a=r;var a=n(60),i=n(58);r.prototype={areaStart:a.a,areaEnd:a.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:n.i(i.b)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};!function e(t){function n(e){return new r(e,t)}return n.tension=function(t){return e(+t)},n}(0)},function(e,t,n){"use strict";function r(e,t){this._context=e,this._k=(1-t)/6}t.a=r;var a=n(58);r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:n.i(a.b)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};!function e(t){function n(e){return new r(e,t)}return n.tension=function(t){return e(+t)},n}(0)},function(e,t,n){"use strict";function r(e){this._curve=e}function a(e){function t(t){return new r(e(t))}return t._curve=e,t}n.d(t,"b",function(){return o}),t.a=a;var i=n(59),o=a(i.a);r.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}}},function(e,t,n){"use strict";function r(e){return e[0]}function a(e){return e[1]}t.a=r,t.b=a},function(e,t,n){"use strict";function r(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(n.i(a.a)(e)):t()._curve},e}t.a=r;var a=n(145);n(90)},function(e,t,n){"use strict";var r=n(41);t.a={draw:function(e,t){var n=Math.sqrt(t/r.b);e.moveTo(n,0),e.arc(0,0,n,0,r.c)}}},function(e,t,n){"use strict";t.a={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}}},function(e,t,n){"use strict";var r=Math.sqrt(1/3),a=2*r;t.a={draw:function(e,t){var n=Math.sqrt(t/a),i=n*r;e.moveTo(0,-n),e.lineTo(i,0),e.lineTo(0,n),e.lineTo(-i,0),e.closePath()}}},function(e,t,n){"use strict";t.a={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}}},function(e,t,n){"use strict";var r=n(41),a=Math.sin(r.b/10)/Math.sin(7*r.b/10),i=Math.sin(r.c/10)*a,o=-Math.cos(r.c/10)*a;t.a={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),a=i*n,u=o*n;e.moveTo(0,-n),e.lineTo(a,u);for(var s=1;5>s;++s){var c=r.c*s/5,l=Math.cos(c),f=Math.sin(c);e.lineTo(f*n,-l*n),e.lineTo(l*a-f*u,f*a+l*u)}e.closePath()}}},function(e,t,n){"use strict";var r=Math.sqrt(3);t.a={draw:function(e,t){var n=-Math.sqrt(t/(3*r));e.moveTo(0,2*n),e.lineTo(-r*n,-n),e.lineTo(r*n,-n),e.closePath()}}},function(e,t,n){"use strict";var r=-.5,a=Math.sqrt(3)/2,i=1/Math.sqrt(12),o=3*(i/2+1);t.a={draw:function(e,t){var n=Math.sqrt(t/o),u=n/2,s=n*i,c=u,l=n*i+n,f=-c,h=l;e.moveTo(u,s),e.lineTo(c,l),e.lineTo(f,h),e.lineTo(r*u-a*s,a*u+r*s),e.lineTo(r*c-a*l,a*c+r*l),e.lineTo(r*f-a*h,a*f+r*h),e.lineTo(r*u+a*s,r*s-a*u),e.lineTo(r*c+a*l,r*l-a*c),e.lineTo(r*f+a*h,r*h-a*f),e.closePath()}}},function(e,t,n){"use strict";var r=n(92);n.d(t,"b",function(){return r.c}),n.d(t,"a",function(){return r.a});n(157),n(156),n(315)},function(e,t,n){"use strict";function r(e){return e.toISOString()}n.d(t,"a",function(){return i});var a=n(92),i="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||n.i(a.a)(i)},function(e,t,n){"use strict";function r(e){if(e.y>=0&&100>e.y){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function a(e){if(e.y>=0&&100>e.y){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function i(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function o(e){function t(e,t){return function(n){var r,a,i,o=[],u=-1,s=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++u<c;)37===e.charCodeAt(u)&&(o.push(e.slice(s,u)),null!=(a=te[r=e.charAt(++u)])?r=e.charAt(++u):a="e"===r?" ":"0",(i=t[r])&&(r=i(n,a)),o.push(r),s=u+1);return o.push(e.slice(s,u)),o.join("")}}function n(e,t){return function(n){var r=i(1900);if(o(r,e,n+="",0)!=n.length)return null;if("p"in r&&(r.H=r.H%12+12*r.p),"W"in r||"U"in r){"w"in r||(r.w="W"in r?1:0);var u="Z"in r?a(i(r.y)).getUTCDay():t(i(r.y)).getDay();r.m=0,r.d="W"in r?(r.w+6)%7+7*r.W-(u+5)%7:r.w+7*r.U-(u+6)%7}return"Z"in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,a(r)):t(r)}}function o(e,t,n,r){for(var a,i,o=0,u=t.length,s=n.length;u>o;){if(r>=s)return-1;if(37===(a=t.charCodeAt(o++))){if(a=t.charAt(o++),!(i=De[a in te?t.charAt(o++):a])||0>(r=i(e,n,r)))return-1}else if(a!=n.charCodeAt(r++))return-1}return r}function u(e,t,n){var r=ke.exec(t.slice(n));return r?(e.p=Te[r[0].toLowerCase()],n+r[0].length):-1}function s(e,t,n){var r=Se.exec(t.slice(n));return r?(e.w=Pe[r[0].toLowerCase()],n+r[0].length):-1}function ee(e,t,n){var r=Me.exec(t.slice(n));return r?(e.w=Ee[r[0].toLowerCase()],n+r[0].length):-1}function ne(e,t,n){var r=Ne.exec(t.slice(n));return r?(e.m=Ie[r[0].toLowerCase()],n+r[0].length):-1}function re(e,t,n){var r=je.exec(t.slice(n));return r?(e.m=Ce[r[0].toLowerCase()],n+r[0].length):-1}function ae(e,t,n){return o(e,me,t,n)}function ie(e,t,n){return o(e,be,t,n)}function oe(e,t,n){return o(e,ge,t,n)}function ue(e){return we[e.getDay()]}function se(e){return _e[e.getDay()]}function ce(e){return Ae[e.getMonth()]}function le(e){return Oe[e.getMonth()]}function fe(e){return xe[+(e.getHours()>=12)]}function he(e){return we[e.getUTCDay()]}function pe(e){return _e[e.getUTCDay()]}function de(e){return Ae[e.getUTCMonth()]}function ye(e){return Oe[e.getUTCMonth()]}function ve(e){return xe[+(e.getUTCHours()>=12)]}var me=e.dateTime,be=e.date,ge=e.time,xe=e.periods,_e=e.days,we=e.shortDays,Oe=e.months,Ae=e.shortMonths,ke=c(xe),Te=l(xe),Me=c(_e),Ee=l(_e),Se=c(we),Pe=l(we),je=c(Oe),Ce=l(Oe),Ne=c(Ae),Ie=l(Ae),Re={a:ue,A:se,b:ce,B:le,c:null,d:k,e:k,H:T,I:M,j:E,L:S,m:P,M:j,p:fe,S:C,U:N,w:I,W:R,x:null,X:null,y:L,Y:D,Z:B,"%":Q},Le={a:he,A:pe,b:de,B:ye,c:null,d:z,e:z,H:W,I:F,j:q,L:G,m:U,M:H,p:ve,S:X,U:V,w:K,W:Y,x:null,X:null,y:Z,Y:$,Z:J,"%":Q},De={a:s,A:ee,b:ne,B:re,c:ae,d:b,e:b,H:x,I:x,j:g,L:O,m:m,M:_,p:u,S:w,U:h,w:f,W:p,x:ie,X:oe,y:y,Y:d,Z:v,"%":A};return Re.x=t(be,Re),Re.X=t(ge,Re),Re.c=t(me,Re),Le.x=t(be,Le),Le.X=t(ge,Le),Le.c=t(me,Le),{format:function(e){var n=t(e+="",Re);return n.toString=function(){return e},n},parse:function(e){var t=n(e+="",r);return t.toString=function(){return e},t},utcFormat:function(e){var n=t(e+="",Le);return n.toString=function(){return e},n},utcParse:function(e){var t=n(e,a);return t.toString=function(){return e},t}}}function u(e,t,n){var r=0>e?"-":"",a=(r?-e:e)+"",i=a.length;return r+(n>i?Array(n-i+1).join(t)+a:a)}function s(e){return e.replace(ae,"\\$&")}function c(e){return RegExp("^(?:"+e.map(s).join("|")+")","i")}function l(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function f(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function h(e,t,n){var r=ne.exec(t.slice(n));return r?(e.U=+r[0],n+r[0].length):-1}function p(e,t,n){var r=ne.exec(t.slice(n));return r?(e.W=+r[0],n+r[0].length):-1}function d(e,t,n){var r=ne.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function y(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function v(e,t,n){var r=/^(Z)|([+-]\d\d)(?:\:?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function m(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function b(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function g(e,t,n){var r=ne.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function x(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function _(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function w(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function O(e,t,n){var r=ne.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function A(e,t,n){var r=re.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function k(e,t){return u(e.getDate(),t,2)}function T(e,t){return u(e.getHours(),t,2)}function M(e,t){return u(e.getHours()%12||12,t,2)}function E(e,t){return u(1+ee.i.count(n.i(ee.j)(e),e),t,3)}function S(e,t){return u(e.getMilliseconds(),t,3)}function P(e,t){return u(e.getMonth()+1,t,2)}function j(e,t){return u(e.getMinutes(),t,2)}function C(e,t){return u(e.getSeconds(),t,2)}function N(e,t){return u(ee.k.count(n.i(ee.j)(e),e),t,2)}function I(e){return e.getDay()}function R(e,t){return u(ee.l.count(n.i(ee.j)(e),e),t,2)}function L(e,t){return u(e.getFullYear()%100,t,2)}function D(e,t){return u(e.getFullYear()%1e4,t,4)}function B(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+u(t/60|0,"0",2)+u(t%60,"0",2)}function z(e,t){return u(e.getUTCDate(),t,2)}function W(e,t){return u(e.getUTCHours(),t,2)}function F(e,t){return u(e.getUTCHours()%12||12,t,2)}function q(e,t){return u(1+ee.d.count(n.i(ee.a)(e),e),t,3)}function G(e,t){return u(e.getUTCMilliseconds(),t,3)}function U(e,t){return u(e.getUTCMonth()+1,t,2)}function H(e,t){return u(e.getUTCMinutes(),t,2)}function X(e,t){return u(e.getUTCSeconds(),t,2)}function V(e,t){return u(ee.m.count(n.i(ee.a)(e),e),t,2)}function K(e){return e.getUTCDay()}function Y(e,t){return u(ee.n.count(n.i(ee.a)(e),e),t,2)}function Z(e,t){return u(e.getUTCFullYear()%100,t,2)}function $(e,t){return u(e.getUTCFullYear()%1e4,t,4)}function J(){return"+0000"}function Q(){return"%"}t.a=o;var ee=n(93),te={"-":"",_:" ",0:"0"},ne=/^\s*\d+/,re=/^%/,ae=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g},function(e,t,n){function r(){if(!arguments.length)return[];var e=arguments[0];return a(e)?e:[e]}var a=n(11);e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var a=n(366),i=n(367),o=n(368),u=n(369),s=n(370);r.prototype.clear=a,r.prototype.delete=i,r.prototype.get=o,r.prototype.has=u,r.prototype.set=s,e.exports=r},function(e,t,n){var r=n(339);e.exports=n(354)(r)},function(e,t){function n(e,t){return e>t}e.exports=n},function(e,t){function n(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}e.exports=n},function(e,t){function n(e,t){return t>e}e.exports=n},function(e,t,n){function r(e,t){return o(i(e,t,a),e+"")}var a=n(45),i=n(371),o=n(373);e.exports=r},function(e,t){function n(e){return function(t){return e(t)}}e.exports=n},function(e,t,n){function r(e,t){return!!(null==e?0:e.length)&&a(e,t,0)>-1}var a=n(162);e.exports=r},function(e,t){function n(){return!1}e.exports=n},function(e,t,n){function r(e){return e===e&&!a(e)}var a=n(25);e.exports=r},function(e,t){function n(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}e.exports=n},function(e,t,n){function r(e,t,n){function r(t){var n=b,r=g;return b=g=void 0,A=t,_=e.apply(r,n)}function l(e){return A=e,w=setTimeout(p,t),k?r(e):_}function f(e){var n=e-O,r=e-A,a=t-n;return T?c(a,x-r):a}function h(e){var n=e-O,r=e-A;return void 0===O||n>=t||0>n||T&&r>=x}function p(){var e=i();if(h(e))return d(e);w=setTimeout(p,f(e))}function d(e){return w=void 0,M&&b?r(e):(b=g=void 0,_)}function y(){void 0!==w&&clearTimeout(w),A=0,b=O=g=w=void 0}function v(){return void 0===w?_:d(i())}function m(){var e=i(),n=h(e);if(b=arguments,g=this,O=e,n){if(void 0===w)return l(O);if(T)return w=setTimeout(p,t),r(O)}return void 0===w&&(w=setTimeout(p,t)),_}var b,g,x,_,w,O,A=0,k=!1,T=!1,M=!0;if("function"!=typeof e)throw new TypeError(u);return t=o(t)||0,a(n)&&(k=!!n.leading,T="maxWait"in n,x=T?s(o(n.maxWait)||0,t):x,M="trailing"in n?!!n.trailing:M),m.cancel=y,m.flush=v,m}var a=n(25),i=n(387),o=n(392),u="Expected a function",s=Math.max,c=Math.min;e.exports=r},function(e,t,n){function r(e,t,n){var r=null==e?void 0:a(e,t);return void 0===r?n:r}var a=n(340);e.exports=r},function(e,t,n){function r(e){return"number"==typeof e||i(e)&&a(e)==o}var a=n(63),i=n(46),o="[object Number]";e.exports=r},function(e,t,n){function r(e){if(!o(e)||a(e)!=u)return!1;var t=i(e);if(null===t)return!0;var n=f.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==h}var a=n(63),i=n(363),o=n(46),u="[object Object]",s=Function.prototype,c=Object.prototype,l=s.toString,f=c.hasOwnProperty,h=l.call(Object);e.exports=r},function(e,t){function n(){return!1}e.exports=n},function(e,t,n){e.exports=n(96)(Object.keys,Object)},function(e,t,n){function r(e,t){return e&&e.length?a(e,o(t,2),i):void 0}var a=n(62),i=n(161),o=n(44);e.exports=r},function(e,t,n){function r(e){return e&&e.length?a(e,o,i):void 0}var a=n(62),i=n(163),o=n(45);e.exports=r},function(e,t,n){e.exports=n(356)()},function(e,t,n){var r=n(337),a=n(347),i=n(164),o=n(167);e.exports=i(function(e,t){if(null==e)return[];var n=t.length;return n>1&&o(e,t[0],t[1])?t=[]:n>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),a(e,r(t,1),[])})},function(e,t,n){(function(t){for(var r=n(398),a="undefined"==typeof window?t:window,i=["moz","webkit"],o="AnimationFrame",u=a["request"+o],s=a["cancel"+o]||a["cancelRequest"+o],c=0;!u&&2>c;c++)u=a[i[c]+"Request"+o],s=a[i[c]+"Cancel"+o]||a[i[c]+"CancelRequest"+o];if(!u||!s){var l=0,f=0,h=[];u=function(e){if(0===h.length){var t=r(),n=Math.max(0,1e3/60-(t-l));l=n+t,setTimeout(function(){var e=h.slice(0);h.length=0;for(var t=0;e.length>t;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return h.push({handle:++f,callback:e,cancelled:!1}),f},s=function(e){for(var t=0;h.length>t;t++)h[t].handle===e&&(h[t].cancelled=!0)}}e.exports=function(e){return u.call(a,e)},e.exports.cancel=function(){s.apply(a,arguments)},e.exports.polyfill=function(){a.requestAnimationFrame=u,a.cancelAnimationFrame=s}}).call(t,n(184))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)0>t.indexOf(r)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(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 u(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 c(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,f,h,p=n(17),d=r(p),y=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(){function e(e,t){for(var n=0;t.length>n;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}}(),m=n(1),b=r(m),g=n(0),x=r(g),_=n(405),w=r(_),O=n(406),A=r(O),k=n(182),T=n(407),M=r(T),E=n(64);t.default=(0,A.default)((h=f=function(e){function t(e,n){u(this,t);var r=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),a=r.props,i=a.isActive,c=a.attributeName,l=a.from,f=a.to,h=a.steps,p=a.children;if(r.handleStyleChange=r.handleStyleChange.bind(r),r.changeStyle=r.changeStyle.bind(r),!i)return r.state={style:{}},"function"==typeof p&&(r.state={style:f}),s(r);if(h&&h.length)r.state={style:h[0].style};else if(l){if("function"==typeof p)return r.state={style:l},s(r);r.state={style:c?o({},c,l):l}}else r.state={style:{}};return r}return c(t,e),v(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentWillReceiveProps",value:function(e){var t=e.isActive,n=e.canBegin,r=e.attributeName,a=e.shouldReAnimate;if(n){if(!t)return void this.setState({style:r?o({},r,e.to):e.to});if(!((0,d.default)(this.props.to,e.to)&&this.props.canBegin&&this.props.isActive)){var i=!this.props.canBegin||!this.props.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var u=i||a?e.from:this.props.to;this.setState({style:r?o({},r,u):u}),this.runAnimation(y({},e,{from:u,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation()}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,a=e.duration,i=e.easing,o=e.begin,u=e.onAnimationEnd,s=e.onAnimationStart,c=(0,M.default)(n,r,(0,k.configEasing)(i),a,this.changeStyle);this.manager.start([s,o,function(){t.stopJSAnimation=c()},a,u])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,a=e.onAnimationStart,o=n[0],u=o.style,s=o.duration,c=void 0===s?0:s;return this.manager.start([a].concat(i(n.reduce(function(e,r,a){if(0===a)return e;var o=r.duration,u=r.easing,s=void 0===u?"ease":u,c=r.style,l=r.properties,f=r.onAnimationEnd,h=a>0?n[a-1]:r,p=l||Object.keys(c);if("function"==typeof s||"spring"===s)return[].concat(i(e),[t.runJSAnimation.bind(t,{from:h.style,to:c,duration:o,easing:s}),o]);var d=(0,E.getTransitionVal)(p,o,s),v=y({},h.style,c,{transition:d});return[].concat(i(e),[v,o,f]).filter(E.identity)},[u,Math.max(c,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=(0,w.default)());var t=e.begin,n=e.duration,r=e.attributeName,a=e.to,i=e.easing,u=e.onAnimationStart,s=e.onAnimationEnd,c=e.steps,l=e.children,f=this.manager;if(this.unSubscribe=f.subscribe(this.handleStyleChange),"function"==typeof i||"function"==typeof l||"spring"===i)return void this.runJSAnimation(e);if(c.length>1)return void this.runStepAnimation(e);var h=r?o({},r,a):a,p=(0,E.getTransitionVal)(Object.keys(h),n,i);f.start([u,t,y({},h,{transition:p}),n,s])}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.isActive,r=a(e,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"]),i=m.Children.count(t),o=(0,E.translateStyle)(this.state.style);if("function"==typeof t)return t(o);if(!n||0===i)return t;var u=function(e){var t=e.props,n=t.style,a=void 0===n?{}:n,i=t.className;return(0,m.cloneElement)(e,y({},r,{style:y({},a,o),className:i}))};if(1===i){m.Children.only(t);return u(m.Children.only(t))}return b.default.createElement("div",null,m.Children.map(t,function(e){return u(e)}))}}]),t}(m.Component),f.displayName="Animate",f.propTypes={from:x.default.oneOfType([x.default.object,x.default.string]),to:x.default.oneOfType([x.default.object,x.default.string]),attributeName:x.default.string,duration:x.default.number,begin:x.default.number,easing:x.default.oneOfType([x.default.string,x.default.func]),steps:x.default.arrayOf(x.default.shape({duration:x.default.number.isRequired,style:x.default.object.isRequired,easing:x.default.oneOfType([x.default.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),x.default.func]),properties:x.default.arrayOf("string"),onAnimationEnd:x.default.func})),children:x.default.oneOfType([x.default.node,x.default.func]),isActive:x.default.bool,canBegin:x.default.bool,onAnimationEnd:x.default.func,shouldReAnimate:x.default.bool,onAnimationStart:x.default.func,onAnimationReStart:x.default.func},f.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},l=h))||l},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.configEasing=t.configSpring=t.configBezier=void 0;var a=n(64),i=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},o=function(e,t){return e.map(function(e,n){return e*Math.pow(t,n)}).reduce(function(e,t){return e+t})},u=function(e,t){return function(n){var r=i(e,t);return o(r,n)}},s=function(e,t){return function(n){var a=i(e,t),u=[].concat(r(a.map(function(e,t){return e*t}).slice(1)),[0]);return o(u,n)}},c=t.configBezier=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=t[2],c=t[3];if(1===t.length)switch(t[0]){case"linear":r=0,i=0,o=1,c=1;break;case"ease":r=.25,i=.1,o=.25,c=1;break;case"ease-in":r=.42,i=0,o=1,c=1;break;case"ease-out":r=.42,i=0,o=.58,c=1;break;case"ease-in-out":r=0,i=0,o=.58,c=1;break;default:(0,a.warn)(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out', instead received %s",t)}(0,a.warn)([r,o,i,c].every(function(e){return"number"==typeof e&&e>=0&&1>=e}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",t);var l=u(r,o),f=u(i,c),h=s(r,o),p=function(e){return e>1?1:0>e?0:e},d=function(e){for(var t=e>1?1:e,n=t,r=0;8>r;++r){var a=l(n)-t,i=h(n);if(1e-4>Math.abs(a-t)||1e-4>i)return f(n);n=p(n-a/i)}return f(n)};return d.isStepper=!1,d},l=t.configSpring=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,a=void 0===r?8:r,i=e.dt,o=void 0===i?17:i,u=function(e,t,r){var i=-(e-t)*n,u=r*a,s=r+(i-u)*o/1e3,c=r*o/1e3+e;return 1e-4>Math.abs(c-t)&&1e-4>Math.abs(s)?[t,0]:[c,s]};return u.isStepper=!0,u.dt=o,u};t.configEasing=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=t[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return c(r);case"spring":return l();default:(0,a.warn)(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out', 'linear' and 'spring', instead received %s",t)}return"function"==typeof r?r:((0,a.warn)(!1,"[configEasing]: first argument type should be function or string, instead received %s",t),null)}},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return e},i=t.PLACE_HOLDER={"@@functional/placeholder":!0},o=function(e){return e===i},u=function(e){return function t(){return 0===arguments.length||1===arguments.length&&o(arguments.length>0?arguments[0]:void 0)?t:e.apply(void 0,arguments)}},s=function e(t,n){return 1===t?n:u(function(){for(var a=arguments.length,s=Array(a),c=0;a>c;c++)s[c]=arguments[c];var l=s.filter(function(e){return e!==i}).length;return t>l?e(t-l,u(function(){for(var e=arguments.length,t=Array(e),a=0;e>a;a++)t[a]=arguments[a];var i=s.map(function(e){return o(e)?t.shift():e});return n.apply(void 0,r(i).concat(t))})):n.apply(void 0,s)})},c=t.curry=function(e){return s(e.length,e)};t.range=function(e,t){for(var n=[],r=e;t>r;++r)n[r-e]=r;return n},t.map=c(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(e){return t[e]}).map(e)}),t.compose=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];if(!t.length)return a;var r=t.reverse(),i=r[0],o=r.slice(1);return function(){return o.reduce(function(e,t){return t(e)},i.apply(void 0,arguments))}},t.reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},t.memoize=function(e){var t=null,n=null;return function(){for(var r=arguments.length,a=Array(r),i=0;r>i;i++)a[i]=arguments[i];return t&&a.every(function(e,n){return e===t[n]})?n:(t=a,n=e.apply(void 0,a))}}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)0>t.indexOf(r)&&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(!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 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 u,s,c,l=n(5),f=n.n(l),h=n(1),p=n.n(h),d=n(0),y=n.n(d),v=n(3),m=n(2),b=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g=function(){function e(e,t){for(var n=0;t.length>n;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}}();t.a=n.i(v.b)((c=s=function(e){function t(){return a(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),g(t,[{key:"renderLineItem",value:function(e,t){var a=void 0;if(p.a.isValidElement(e))a=p.a.cloneElement(e,t);else if(f()(e))a=e(t);else{var i=t.x1,o=t.y1,u=t.x2,s=t.y2,c=t.key,l=r(t,["x1","y1","x2","y2","key"]);a=p.a.createElement("line",b({},n.i(m.e)(l),{x1:i,y1:o,x2:u,y2:s,fill:"none",key:c}))}return a}},{key:"renderHorizontal",value:function(e){var t=this,n=this.props,r=n.x,a=n.width,i=n.horizontal;if(!e||!e.length)return null;var o=e.map(function(e,n){var o=b({},t.props,{x1:r,y1:e,x2:r+a,y2:e,key:"line-"+n,index:n});return t.renderLineItem(i,o)});return p.a.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}},{key:"renderVertical",value:function(e){var t=this,n=this.props,r=n.y,a=n.height,i=n.vertical;if(!e||!e.length)return null;var o=e.map(function(e,n){var o=b({},t.props,{x1:e,y1:r,x2:e,y2:r+a,key:"line-"+n,index:n});return t.renderLineItem(i,o)});return p.a.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var t=this.props;return p.a.createElement("rect",{x:t.x,y:t.y,width:t.width,height:t.height,stroke:"none",fill:e,fillOpacity:t.fillOpacity,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,a=e.height,i=e.horizontal,o=e.vertical,u=e.horizontalCoordinatesGenerator,s=e.verticalCoordinatesGenerator,c=e.xAxis,l=e.yAxis,h=e.offset,d=e.chartWidth,y=e.chartHeight;if(0>=r||0>=a||t!==+t||n!==+n)return null;var v=this.props,m=v.horizontalPoints,b=v.verticalPoints;return f()(u)&&(m=u({yAxis:l,width:d,height:y,offset:h})),f()(s)&&(b=s({xAxis:c,width:d,height:y,offset:h})),p.a.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),i&&this.renderHorizontal(m),o&&this.renderVertical(b))}}]),t}(h.Component),s.displayName="CartesianGrid",s.propTypes=b({},m.m,{x:y.a.number,y:y.a.number,width:y.a.number,height:y.a.number,horizontal:y.a.oneOfType([y.a.object,y.a.element,y.a.func,y.a.bool]),vertical:y.a.oneOfType([y.a.object,y.a.element,y.a.func,y.a.bool]),horizontalPoints:y.a.arrayOf(y.a.number),verticalPoints:y.a.arrayOf(y.a.number),horizontalCoordinatesGenerator:y.a.func,verticalCoordinatesGenerator:y.a.func,xAxis:y.a.object,yAxis:y.a.object,offset:y.a.object,chartWidth:y.a.number,chartHeight:y.a.number}),s.defaultProps={x:0,y:0,width:0,height:0,horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none"},u=c))||u},function(e,t,n){"use strict";var r=n(18),a=n(66),i=n(26),o=n(27),u=n(35);t.a=n.i(r.a)({chartName:"AreaChart",GraphicalChild:a.a,axisComponents:[{axisType:"xAxis",AxisComp:i.a},{axisType:"yAxis",AxisComp:o.a}],formatAxisMap:u.a})},function(e,t,n){"use strict";var r=n(18),a=n(67),i=n(26),o=n(27),u=n(35);t.a=n.i(r.a)({chartName:"BarChart",GraphicalChild:a.a,axisComponents:[{axisType:"xAxis",AxisComp:i.a},{axisType:"yAxis",AxisComp:o.a}],formatAxisMap:u.a})},function(e,t,n){"use strict";var r=n(18),a=n(66),i=n(67),o=n(68),u=n(69),s=n(26),c=n(27),l=n(47),f=n(35);t.a=n.i(r.a)({chartName:"ComposedChart",GraphicalChild:[o.a,a.a,i.a,u.a],axisComponents:[{axisType:"xAxis",AxisComp:s.a},{axisType:"yAxis",AxisComp:c.a},{axisType:"zAxis",AxisComp:l.a}],formatAxisMap:f.a})},function(e,t,n){"use strict";var r=n(18),a=n(68),i=n(26),o=n(27),u=n(35);t.a=n.i(r.a)({chartName:"LineChart",GraphicalChild:a.a,axisComponents:[{axisType:"xAxis",AxisComp:i.a},{axisType:"yAxis",AxisComp:o.a}],formatAxisMap:u.a})},function(e,t,n){"use strict";var r=n(0),a=n.n(r),i=n(18),o=n(49),u=n(50),s=n(13),c=n(104);t.a=n.i(i.a)({chartName:"PieChart",GraphicalChild:c.a,eventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:o.a},{axisType:"radiusAxis",AxisComp:u.a}],formatAxisMap:s.c,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},propTypes:{layout:a.a.oneOf(["centric"]),startAngle:a.a.number,endAngle:a.a.number,cx:a.a.oneOfType([a.a.number,a.a.string]),cy:a.a.oneOfType([a.a.number,a.a.string]),innerRadius:a.a.oneOfType([a.a.number,a.a.string]),outerRadius:a.a.oneOfType([a.a.number,a.a.string])}})},function(e,t,n){"use strict";var r=n(0),a=n.n(r),i=n(18),o=n(105),u=n(49),s=n(50),c=n(13);t.a=n.i(i.a)({chartName:"RadarChart",GraphicalChild:o.a,axisComponents:[{axisType:"angleAxis",AxisComp:u.a},{axisType:"radiusAxis",AxisComp:s.a}],formatAxisMap:c.c,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},propTypes:{layout:a.a.oneOf(["centric"]),startAngle:a.a.number,endAngle:a.a.number,cx:a.a.oneOfType([a.a.number,a.a.string]),cy:a.a.oneOfType([a.a.number,a.a.string]),innerRadius:a.a.oneOfType([a.a.number,a.a.string]),outerRadius:a.a.oneOfType([a.a.number,a.a.string])}})},function(e,t,n){"use strict";var r=n(0),a=n.n(r),i=n(18),o=n(49),u=n(50),s=n(13),c=n(106);t.a=n.i(i.a)({chartName:"RadialBarChart",GraphicalChild:c.a,legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:o.a},{axisType:"radiusAxis",AxisComp:u.a}],formatAxisMap:s.c,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},propTypes:{layout:a.a.oneOf(["radial"]),startAngle:a.a.number,endAngle:a.a.number,cx:a.a.oneOfType([a.a.number,a.a.string]),cy:a.a.oneOfType([a.a.number,a.a.string]),innerRadius:a.a.oneOfType([a.a.number,a.a.string]),outerRadius:a.a.oneOfType([a.a.number,a.a.string])}})},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)0>t.indexOf(r)&&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(!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 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 u,s,c,l=n(5),f=n.n(l),h=n(389),p=n.n(h),d=n(177),y=n.n(d),v=n(176),m=n.n(v),b=n(1),g=n.n(b),x=n(0),_=n.n(x),w=n(4),O=n.n(w),A=n(34),k=n(7),T=n(48),M=n(29),E=n(3),S=n(2),P=n(8),j=function(){function e(e,t){for(var n=0;t.length>n;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=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N={x:0,y:0},I=function(e,t){var n=+e,r=t-n;return function(e){return n+r*e}},R=function(e){return e.y+e.dy/2},L=function(e){return e&&e.value||0},D=function(e,t){return t.reduce(function(t,n){return t+L(e[n])},0)},B=function(e,t,n){return n.reduce(function(n,r){return n+R(e[t[r].source])*L(t[r])},0)},z=function(e,t,n){return n.reduce(function(n,r){return n+R(e[t[r].target])*L(t[r])},0)},W=function(e,t){return e.y-t.y},F=function(e,t){for(var n=[],r=[],a=[],i=[],o=0,u=e.length;u>o;o++){var s=e[o];s.source===t&&(a.push(s.target),i.push(o)),s.target===t&&(n.push(s.source),r.push(o))}return{sourceNodes:n,sourceLinks:r,targetLinks:i,targetNodes:a}},q=function e(t,n){for(var r=n.targetNodes,a=0,i=r.length;i>a;a++){var o=t[r[a]];o&&(o.depth=Math.max(n.depth+1,o.depth),e(t,o))}},G=function(e,t,n){for(var r=e.nodes,a=e.links,i=r.map(function(e,t){var n=F(a,t);return C({},e,n,{value:Math.max(D(a,n.sourceLinks),D(a,n.targetLinks)),depth:0})}),o=0,u=i.length;u>o;o++){var s=i[o];s.sourceNodes.length||q(i,s)}var c=m()(i,function(e){return e.depth}).depth;if(c>=1)for(var l=(t-n)/c,f=0,h=i.length;h>f;f++){var p=i[f];p.targetNodes.length||(p.depth=c),p.x=p.depth*l,p.dx=n}return{tree:i,maxDepth:c}},U=function(e){for(var t=[],n=0,r=e.length;r>n;n++){var a=e[n];t[a.depth]||(t[a.depth]=[]),t[a.depth].push(a)}return t},H=function(e,t,n,r){for(var a=y()(e.map(function(e){return(t-(e.length-1)*n)/p()(e,L)})),i=0,o=e.length;o>i;i++)for(var u=0,s=e[i].length;s>u;u++){var c=e[i][u];c.y=u,c.dy=c.value*a}return r.map(function(e){return C({},e,{dy:L(e)*a})})},X=function(e,t,n){for(var r=0,a=e.length;a>r;r++){var i=e[r],o=i.length;i.sort(W);for(var u=0,s=0;o>s;s++){var c=i[s],l=u-c.y;l>0&&(c.y+=l),u=c.y+c.dy+n}u=t+n;for(var f=o-1;f>=0;f--){var h=i[f],p=h.y+h.dy+n-u;if(0>=p)break;h.y-=p,u=h.y}}},V=function(e,t,n,r){for(var a=0,i=t.length;i>a;a++)for(var o=t[a],u=0,s=o.length;s>u;u++){var c=o[u];if(c.sourceLinks.length){var l=D(n,c.sourceLinks),f=B(e,n,c.sourceLinks),h=f/l;c.y+=(h-R(c))*r}}},K=function(e,t,n,r){for(var a=t.length-1;a>=0;a--)for(var i=t[a],o=0,u=i.length;u>o;o++){var s=i[o];if(s.targetLinks.length){var c=D(n,s.targetLinks),l=z(e,n,s.targetLinks),f=l/c;s.y+=(f-R(s))*r}}},Y=function(e,t){for(var n=0,r=e.length;r>n;n++){var a=e[n],i=0,o=0;a.targetLinks.sort(function(n,r){return e[t[n].target].y-e[t[r].target].y}),a.sourceLinks.sort(function(n,r){return e[t[n].source].y-e[t[r].source].y});for(var u=0,s=a.targetLinks.length;s>u;u++){var c=t[a.targetLinks[u]];c&&(c.sy=i,i+=c.dy)}for(var l=0,f=a.sourceLinks.length;f>l;l++){var h=t[a.sourceLinks[l]];h&&(h.ty=o,o+=h.dy)}}},Z=function(e){var t=e.data,n=e.width,r=e.height,a=e.iterations,i=e.nodeWidth,o=e.nodePadding,u=t.links,s=G(t,n,i),c=s.tree,l=U(c),f=H(l,r,o,u);X(l,r,o);for(var h=1,p=1;a>=p;p++)K(c,l,f,h*=.99),X(l,r,o),V(c,l,f,h),X(l,r,o);return Y(c,f),{nodes:c,links:f}},$=function(e,t){return"node"===t?{x:e.x+e.width/2,y:e.y+e.height/2}:{x:(e.sourceX+e.targetX)/2,y:(e.sourceY+e.targetY)/2}},J=function(e,t,r){var a=e.payload;if("node"===t)return[{payload:e,name:n.i(P.m)(a,r,""),value:n.i(P.m)(a,"value")}];if(a.source&&a.target){return[{payload:e,name:n.i(P.m)(a.source,r,"")+" - "+n.i(P.m)(a.target,r,""),value:n.i(P.m)(a,"value")}]}return[]};t.a=n.i(E.b)((c=s=function(e){function t(e){a(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state=n.createDefaultState(e),n}return o(t,e),j(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.props,r=t.data,a=t.width,i=t.height,o=t.margin,u=t.iterations,s=t.nodeWidth,c=t.nodePadding,l=t.nameKey;e.data===r&&e.width===a&&e.height===i&&n.i(E.a)(e.margin,o)&&e.iterations===u&&e.nodeWidth===s&&e.nodePadding===c&&e.nameKey===l||this.setState(this.createDefaultState(this.props))}},{key:"createDefaultState",value:function(e){var t=e.data,n=e.width,r=e.height,a=e.margin,i=e.iterations,o=e.nodeWidth,u=e.nodePadding,s=n-(a&&a.left||0)-(a&&a.right||0),c=r-(a&&a.top||0)-(a&&a.bottom||0),l=Z({data:t,width:s,height:c,iterations:i,nodeWidth:o,nodePadding:u});return{activeElement:null,activeElementType:null,isTooltipActive:!1,nodes:l.nodes,links:l.links}}},{key:"handleMouseEnter",value:function(e,t,r){var a=this.props,i=a.onMouseEnter,o=a.children;n.i(S.a)(o,T.a)?this.setState({activeElement:e,activeElementType:t,isTooltipActive:!0},function(){i&&i(e,t,r)}):i&&i(e,t,r)}},{key:"handleMouseLeave",value:function(e,t,r){var a=this.props,i=a.onMouseLeave,o=a.children;n.i(S.a)(o,T.a)?this.setState({isTooltipActive:!1},function(){i&&i(e,t,r)}):i&&i(e,t,r)}},{key:"renderLinkItem",value:function(e,t){if(g.a.isValidElement(e))return g.a.cloneElement(e,t);if(f()(e))return e(t);var a=t.sourceX,i=t.sourceY,o=t.sourceControlX,u=t.targetX,s=t.targetY,c=t.targetControlX,l=t.linkWidth,h=r(t,["sourceX","sourceY","sourceControlX","targetX","targetY","targetControlX","linkWidth"]);return g.a.createElement("path",C({className:"recharts-sankey-link",d:"\n M"+a+","+i+"\n C"+o+","+i+" "+c+","+s+" "+u+","+s+"\n ",fill:"none",stroke:"#333",strokeWidth:l,strokeOpacity:"0.2"},n.i(S.e)(h)))}},{key:"renderLinks",value:function(e,t){var r=this,a=this.props,i=a.linkCurvature,o=a.link,u=a.margin,s=u.top||0,c=u.left||0;return g.a.createElement(k.a,{className:"recharts-sankey-links",key:"recharts-sankey-links"},e.map(function(e,a){var u=e.sy,l=e.ty,f=e.dy,h=t[e.source],p=t[e.target],d=h.x+h.dx+c,y=p.x+c,v=I(d,y),m=v(i),b=v(1-i),x=h.y+u+f/2+s,_=p.y+l+f/2+s,w=C({sourceX:d,targetX:y,sourceY:x,targetY:_,sourceControlX:m,targetControlX:b,sourceRelativeY:u,targetRelativeY:l,linkWidth:f,index:a,payload:C({},e,{source:h,target:p})},n.i(S.e)(o)),O={onMouseEnter:r.handleMouseEnter.bind(r,w,"link"),onMouseLeave:r.handleMouseLeave.bind(r,w,"link")};return g.a.createElement(k.a,C({key:"link"+a},O),r.renderLinkItem(o,w))}))}},{key:"renderNodeItem",value:function(e,t){return g.a.isValidElement(e)?g.a.cloneElement(e,t):f()(e)?e(t):g.a.createElement(M.a,C({className:"recharts-sankey-node",fill:"#0088fe",fillOpacity:"0.8"},t))}},{key:"renderNodes",value:function(e){var t=this,r=this.props,a=r.node,i=r.margin,o=i.top||0,u=i.left||0;return g.a.createElement(k.a,{className:"recharts-sankey-nodes",key:"recharts-sankey-nodes"},e.map(function(e,r){var i=e.x,s=e.y,c=e.dx,l=e.dy,f=C({},n.i(S.e)(a),{x:i+u,y:s+o,width:c,height:l,index:r,payload:e}),h={onMouseEnter:t.handleMouseEnter.bind(t,f,"node"),onMouseLeave:t.handleMouseLeave.bind(t,f,"node")};return g.a.createElement(k.a,C({key:"node"+r},h),t.renderNodeItem(a,f))}))}},{key:"renderTooltip",value:function(){var e=this.props,t=e.children,r=e.width,a=e.height,i=e.nameKey,o=n.i(S.a)(t,T.a);if(!o)return null;var u=this.state,s=u.isTooltipActive,c=u.activeElement,l=u.activeElementType,f={x:0,y:0,width:r,height:a},h=c?$(c,l):N,p=c?J(c,l,i):[];return g.a.cloneElement(o,{viewBox:f,active:s,coordinate:h,label:"",payload:p})}},{key:"render",value:function(){if(!n.i(S.h)(this))return null;var e=this.props,t=e.width,a=e.height,i=e.className,o=e.style,u=e.children,s=r(e,["width","height","className","style","children"]),c=this.state,l=c.links,f=c.nodes,h=n.i(S.e)(s);return g.a.createElement("div",{className:O()("recharts-wrapper",i),style:C({},o,{position:"relative",cursor:"default",width:t,height:a})},g.a.createElement(A.a,C({},h,{width:t,height:a}),n.i(S.l)(u),this.renderLinks(l,f),this.renderNodes(f)),this.renderTooltip())}}]),t}(b.Component),s.displayName="Sankey",s.propTypes=C({},S.m,S.n,{nameKey:_.a.oneOfType([_.a.string,_.a.number,_.a.func]),dataKey:_.a.oneOfType([_.a.string,_.a.number,_.a.func]),width:_.a.number,height:_.a.number,data:_.a.shape({nodes:_.a.array,links:_.a.arrayOf(_.a.shape({target:_.a.number,source:_.a.number,value:_.a.number}))}),nodePadding:_.a.number,nodeWidth:_.a.number,linkCurvature:_.a.number,iterations:_.a.number,node:_.a.oneOfType([_.a.object,_.a.element,_.a.func]),link:_.a.oneOfType([_.a.object,_.a.element,_.a.func]),style:_.a.object,className:_.a.string,children:_.a.oneOfType([_.a.arrayOf(_.a.node),_.a.node]),margin:_.a.shape({top:_.a.number,right:_.a.number,bottom:_.a.number,left:_.a.number})}),s.defaultProps={nodePadding:10,nodeWidth:10,nameKey:"name",dataKey:"value",linkCurvature:.5,iterations:32,margin:{top:5,right:5,bottom:5,left:5}},u=c))||u},function(e,t,n){"use strict";var r=n(18),a=n(69),i=n(26),o=n(27),u=n(47),s=n(35);t.a=n.i(r.a)({chartName:"ScatterChart",GraphicalChild:a.a,eventType:"single",axisComponents:[{axisType:"xAxis",AxisComp:i.a},{axisType:"yAxis",AxisComp:o.a},{axisType:"zAxis",AxisComp:u.a}],formatAxisMap:s.a})},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)0>t.indexOf(r)&&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(!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 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 u,s,c,l=n(5),f=n.n(l),h=n(1),p=n.n(h),d=n(0),y=n.n(d),v=n(14),m=n.n(v),b=n(4),g=n.n(b),x=n(34),_=n(7),w=n(29),O=n(2),A=n(48),k=n(3),T=n(8),M=function(){function e(e,t){for(var n=0;t.length>n;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}}(),E=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S=function e(t){var n=t.depth,r=t.node,a=t.index,i=t.valueKey,o=r.children,u=n+1,s=o&&o.length?o.map(function(t,n){return e({depth:u,node:t,index:n,valueKey:i})}):null,c=void 0;return c=o&&o.length?s.reduce(function(e,t){return e+t.value},0):isNaN(r[i])||0>=r[i]?0:r[i],E({},r,{children:s,value:c,depth:n,index:a})},P=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height}},j=function(e,t){var n=0>t?0:t;return e.map(function(e){var t=e.value*n;return E({},e,{area:isNaN(t)||0>=t?0:t})})},C=function(e,t,n){var r=t*t,a=e.area*e.area,i=e.reduce(function(e,t){return{min:Math.min(e.min,t.area),max:Math.max(e.max,t.area)}},{min:1/0,max:0}),o=i.min,u=i.max;return a?Math.max(r*u*n/a,a/(r*o*n)):1/0},N=function(e,t,n,r){var a=t?Math.round(e.area/t):0;(r||a>n.height)&&(a=n.height);for(var i=n.x,o=void 0,u=0,s=e.length;s>u;u++)o=e[u],o.x=i,o.y=n.y,o.height=a,o.width=Math.min(a?Math.round(o.area/a):0,n.x+n.width-i),i+=o.width;return o.z=!0,o.width+=n.x+n.width-i,E({},n,{y:n.y+a,height:n.height-a})},I=function(e,t,n,r){var a=t?Math.round(e.area/t):0;(r||a>n.width)&&(a=n.width);for(var i=n.y,o=void 0,u=0,s=e.length;s>u;u++)o=e[u],o.x=n.x,o.y=i,o.width=a,o.height=Math.min(a?Math.round(o.area/a):0,n.y+n.height-i),i+=o.height;return o.z=!1,o.height+=n.y+n.height-i,E({},n,{x:n.x+a,width:n.width-a})},R=function(e,t,n,r){return t===n.width?N(e,t,n,r):I(e,t,n,r)},L=function e(t,n){var r=t.children;if(r&&r.length){var a=P(t),i=[],o=1/0,u=void 0,s=void 0,c=Math.min(a.width,a.height),l=j(r,a.width*a.height/t.value),f=l.slice();for(i.area=0;f.length>0;)i.push(u=f[0]),i.area+=u.area,s=C(i,c,n),s>o?(i.area-=i.pop().area,a=R(i,c,a,!1),c=Math.min(a.width,a.height),i.length=i.area=0,o=1/0):(f.shift(),o=s);return i.length&&(a=R(i,c,a,!0),i.length=i.area=0),E({},t,{children:l.map(function(t){return e(t,n)})})}return t};t.a=n.i(k.b)((c=s=function(e){function t(){var e,n,r,o;a(this,t);for(var u=arguments.length,s=Array(u),c=0;u>c;c++)s[c]=arguments[c];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r.state=r.createDefaultState(),o=n,i(r,o)}return o(t,e),M(t,[{key:"componentWillReceiveProps",value:function(e){e.data!==this.props.data&&this.setState(this.createDefaultState())}},{key:"createDefaultState",value:function(){return{isTooltipActive:!1,activeNode:null}}},{key:"handleMouseEnter",value:function(e,t){var r=this.props,a=r.onMouseEnter,i=r.children;n.i(O.a)(i,A.a)?this.setState({isTooltipActive:!0,activeNode:e},function(){a&&a(e,t)}):a&&a(e,t)}},{key:"handleMouseLeave",value:function(e,t){var r=this.props,a=r.onMouseLeave,i=r.children;n.i(O.a)(i,A.a)?this.setState({isTooltipActive:!1,activeNode:null},function(){a&&a(e,t)}):a&&a(e,t)}},{key:"handleClick",value:function(e){var t=this.props.onClick;t&&t(e)}},{key:"renderAnimatedItem",value:function(e,t,n){var r=this,a=this.props,i=a.isAnimationActive,o=a.animationBegin,u=a.animationDuration,s=a.animationEasing,c=a.isUpdateAnimationActive,l=t.width,f=t.height,h=t.x,d=t.y,y=parseInt((2*Math.random()-1)*l,10),v={};return n&&(v={onMouseEnter:this.handleMouseEnter.bind(this,t),onMouseLeave:this.handleMouseLeave.bind(this,t),onClick:this.handleClick.bind(this,t)}),p.a.createElement(m.a,{from:{x:h,y:d,width:l,height:f},to:{x:h,y:d,width:l,height:f},duration:u,easing:s,isActive:c},function(n){return p.a.createElement(m.a,{from:"translate("+y+"px, "+y+"px)",to:"translate(0, 0)",attributeName:"transform",begin:o,easing:s,isActive:i,duration:u},p.a.createElement(_.a,v,r.renderContentItem(e,E({},t,{isAnimationActive:i,isUpdateAnimationActive:!c,width:n.width,height:n.height,x:n.x,y:n.y}))))})}},{key:"renderContentItem",value:function(e,t){return p.a.isValidElement(e)?p.a.cloneElement(e,t):f()(e)?e(t):p.a.createElement(w.a,E({fill:"#fff",stroke:"#000"},t))}},{key:"renderNode",value:function(e,t,r){var a=this,i=this.props.content,o=E({},n.i(O.e)(this.props),t,{root:e});return p.a.createElement(_.a,{key:"recharts-treemap-node-"+r,className:"recharts-treemap-depth-"+t.depth},this.renderAnimatedItem(i,o,!t.children||!t.children.length),t.children&&t.children.length?t.children.map(function(e,n){return a.renderNode(t,e,n)}):null)}},{key:"renderAllNodes",value:function(){var e=this.props,t=e.width,n=e.height,r=e.data,a=e.dataKey,i=e.aspectRatio,o=S({depth:0,node:{children:r,x:0,y:0,width:t,height:n},index:0,valueKey:a}),u=L(o,i);return this.renderNode(u,u,0)}},{key:"renderTooltip",value:function(){var e=this.props,t=e.children,r=e.nameKey,a=n.i(O.a)(t,A.a);if(!a)return null;var i=this.props,o=i.width,u=i.height,s=i.dataKey,c=this.state,l=c.isTooltipActive,f=c.activeNode,h={x:0,y:0,width:o,height:u},d=f?{x:f.x+f.width/2,y:f.y+f.height/2}:null,y=l&&f?[{payload:f,name:n.i(T.m)(f,r,""),value:n.i(T.m)(f,s)}]:[];return p.a.cloneElement(a,{viewBox:h,active:l,coordinate:d,label:"",payload:y})}},{key:"render",value:function(){if(!n.i(O.h)(this))return null;var e=this.props,t=e.width,a=e.height,i=e.className,o=e.style,u=e.children,s=r(e,["width","height","className","style","children"]),c=n.i(O.e)(s);return p.a.createElement("div",{className:g()("recharts-wrapper",i),style:E({},o,{position:"relative",cursor:"default",width:t,height:a})},p.a.createElement(x.a,E({},c,{width:t,height:a}),this.renderAllNodes(),n.i(O.l)(u)),this.renderTooltip())}}]),t}(h.Component),s.displayName="Treemap",s.propTypes={width:y.a.number,height:y.a.number,data:y.a.array,style:y.a.object,aspectRatio:y.a.number,content:y.a.oneOfType([y.a.element,y.a.func]),fill:y.a.string,stroke:y.a.string,className:y.a.string,nameKey:y.a.oneOfType([y.a.string,y.a.number,y.a.func]),dataKey:y.a.oneOfType([y.a.string,y.a.number,y.a.func]),children:y.a.oneOfType([y.a.arrayOf(y.a.node),y.a.node]),onMouseEnter:y.a.func,onMouseLeave:y.a.func,onClick:y.a.func,isAnimationActive:y.a.bool,isUpdateAnimationActive:y.a.bool,animationBegin:y.a.number,animationDuration:y.a.number,animationEasing:y.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])},s.defaultProps={dataKey:"value",aspectRatio:.5*(1+Math.sqrt(5)),isAnimationActive:!n.i(O.k)(),isUpdateAnimationActive:!n.i(O.k)(),animationBegin:0,animationDuration:1500,animationEasing:"linear"},u=c))||u},function(e,t,n){"use strict";function r(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 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 u,s,c,l=n(1),f=n.n(l),h=n(0),p=n.n(h),d=n(4),y=n.n(d),v=n(3),m=n(34),b=n(72),g=n(2),x=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_=function(){function e(e,t){for(var n=0;t.length>n;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}}(),w=g.q.filter(function(e){return"none"!==e});t.a=n.i(v.b)((c=s=function(e){function t(){return a(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),_(t,[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,n=e.inactive?t:e.color;return"line"===e.type?f.a.createElement("path",{strokeWidth:4,fill:"none",stroke:n,d:"M0,16h"+32/3+"\n A"+32/6+","+32/6+",0,1,1,"+32/3*2+",16\n H32M"+32/3*2+",16\n A"+32/6+","+32/6+",0,1,1,"+32/3+",16",className:"recharts-legend-icon"}):"rect"===e.type?f.a.createElement("path",{stroke:"none",fill:n,d:"M0,4h32v24h-32z",className:"recharts-legend-icon"}):f.a.createElement(b.a,{fill:n,cx:16,cy:16,size:32,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,a=t.payload,i=t.iconSize,o=t.layout,u=t.formatter,s={x:0,y:0,width:32,height:32},c={display:"horizontal"===o?"inline-block":"block",marginRight:10},l={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(t,a){var o,h=t.formatter||u,p=y()((o={"recharts-legend-item":!0},r(o,"legend-item-"+a,!0),r(o,"inactive",t.inactive),o));return"none"===t.type?null:f.a.createElement("li",x({className:p,style:c,key:"legend-item-"+a},n.i(g.p)(e.props,t,a)),f.a.createElement(m.a,{width:i,height:i,viewBox:s,style:l},e.renderIcon(t)),f.a.createElement("span",{className:"recharts-legend-item-text"},h?h(t.value,t,a):t.value))})}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;return t&&t.length?f.a.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===n?r:"left"}},this.renderItems()):null}}]),t}(l.Component),s.displayName="Legend",s.propTypes={content:p.a.element,iconSize:p.a.number,iconType:p.a.oneOf(w),layout:p.a.oneOf(["horizontal","vertical"]),align:p.a.oneOf(["center","left","right"]),verticalAlign:p.a.oneOf(["top","bottom","middle"]),payload:p.a.arrayOf(p.a.shape({value:p.a.any,id:p.a.any,type:p.a.oneOf(g.q)})),inactiveColor:p.a.string,formatter:p.a.func,onMouseEnter:p.a.func,onMouseLeave:p.a.func,onClick:p.a.func},s.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"},u=c))||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 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)}var o,u,s,c=n(12),l=n.n(c),f=n(11),h=n.n(f),p=n(1),d=n.n(p),y=n(0),v=n.n(y),m=n(3),b=n(6),g=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x=function(){function e(e,t){for(var n=0;t.length>n;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}}(),_=function(e){return h()(e)&&n.i(b.a)(e[0])&&n.i(b.a)(e[1])?e.join(" ~ "):e};t.a=n.i(m.b)((s=u=function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),x(t,[{key:"renderContent",value:function(){var e=this.props,t=e.payload,r=e.separator,a=e.formatter,i=e.itemStyle,o=e.itemSorter;if(t&&t.length){var u={padding:0,margin:0},s=t.filter(function(e){return!l()(e.value)}).sort(o).map(function(e,t){var o=g({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},i),u=n.i(b.a)(e.name),s=e.formatter||a||_;return d.a.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-"+t,style:o},u?d.a.createElement("span",{className:"recharts-tooltip-item-name"},e.name):null,u?d.a.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,d.a.createElement("span",{className:"recharts-tooltip-item-value"},s?s(e.value,e.name,e,t):e.value),d.a.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return d.a.createElement("ul",{className:"recharts-tooltip-item-list",style:u},s)}return null}},{key:"render",value:function(){var e=this.props,t=e.labelStyle,r=e.label,a=e.labelFormatter,i=e.wrapperStyle,o=g({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),u=g({margin:0},t),s=n.i(b.a)(r),c=s?r:"";return s&&a&&(c=a(r)),d.a.createElement("div",{className:"recharts-default-tooltip",style:o},d.a.createElement("p",{className:"recharts-tooltip-label",style:u},c),this.renderContent())}}]),t}(p.Component),u.displayName="DefaultTooltipContent",u.propTypes={separator:v.a.string,formatter:v.a.func,wrapperStyle:v.a.object,itemStyle:v.a.object,labelStyle:v.a.object,labelFormatter:v.a.func,label:v.a.any,payload:v.a.arrayOf(v.a.shape({name:v.a.any,value:v.a.oneOfType([v.a.number,v.a.string,v.a.array]),unit:v.a.any})),itemSorter:v.a.func},u.defaultProps={separator:" : ",itemStyle:{},labelStyle:{}},o=s))||o},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 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)}var o,u,s=n(170),c=n.n(s),l=n(1),f=n.n(l),h=n(0),p=n.n(h),d=n(4),y=n.n(d),v=n(402),m=n.n(v),b=n(6),g=n(108),x=function(){function e(e,t){for(var n=0;t.length>n;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}}();t.a=(u=o=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateDimensionsImmediate=function(){if(n.mounted){var e=n.getContainerSize();if(e){var t=n.state,r=t.containerWidth,a=t.containerHeight,i=e.containerWidth,o=e.containerHeight;i===r&&o===a||n.setState({containerWidth:i,containerHeight:o})}}},n.state={containerWidth:-1,containerHeight:-1},n.handleResize=e.debounce>0?c()(n.updateDimensionsImmediate,e.debounce):n.updateDimensionsImmediate,n}return i(t,e),x(t,[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.getContainerSize();e&&this.setState(e)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"getContainerSize",value:function(){return this.container?{containerWidth:this.container.clientWidth,containerHeight:this.container.clientHeight}:null}},{key:"renderChart",value:function(){var e=this.state,t=e.containerWidth,r=e.containerHeight;if(0>t||0>r)return null;var a=this.props,i=a.aspect,o=a.width,u=a.height,s=a.minWidth,c=a.minHeight,l=a.maxHeight,h=a.children;n.i(g.a)(n.i(b.i)(o)||n.i(b.i)(u),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",o,u),n.i(g.a)(!i||i>0,"The aspect(%s) must be greater than zero.",i);var p=n.i(b.i)(o)?t:o,d=n.i(b.i)(u)?r:u;return i&&i>0&&(d=p/i,l&&d>l&&(d=l)),n.i(g.a)(p>0||d>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",p,d,o,u,s,c,i),f.a.cloneElement(h,{width:p,height:d})}},{key:"render",value:function(){var e=this,t=this.props,n=t.minWidth,r=t.minHeight,a=t.width,i=t.height,o=t.maxHeight,u=t.id,s=t.className,c={width:a,height:i,minWidth:n,minHeight:r,maxHeight:o};return f.a.createElement("div",{id:u,className:y()("recharts-responsive-container",s),style:c,ref:function(t){e.container=t}},this.renderChart(),f.a.createElement(m.a,{handleWidth:!0,handleHeight:!0,onResize:this.handleResize}))}}]),t}(l.Component),o.displayName="ResponsiveContainer",o.propTypes={aspect:p.a.number,width:p.a.oneOfType([p.a.string,p.a.number]),height:p.a.oneOfType([p.a.string,p.a.number]),minHeight:p.a.number,minWidth:p.a.number,maxHeight:p.a.number,children:p.a.node.isRequired,debounce:p.a.number,id:p.a.oneOfType([p.a.string,p.a.number]),className:p.a.oneOfType([p.a.string,p.a.number])},o.defaultProps={width:"100%",height:"100%",debounce:0},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 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)}var o,u,s,c=n(1),l=n.n(c),f=n(0),h=n.n(f),p=n(3),d=n(13),y=n(2),v=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=function(){function e(e,t){for(var n=0;t.length>n;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}}();t.a=n.i(p.b)((s=u=function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),m(t,[{key:"getPolygonPath",value:function(e){var t=this.props,r=t.cx,a=t.cy,i=t.polarAngles,o="";return i.forEach(function(t,i){var u=n.i(d.a)(r,a,e,t);o+=i?"L "+u.x+","+u.y:"M "+u.x+","+u.y}),o+="Z"}},{key:"renderPolarAngles",value:function(){var e=this.props,t=e.cx,r=e.cy,a=e.innerRadius,i=e.outerRadius,o=e.polarAngles;if(!o||!o.length)return null;var u=v({stroke:"#ccc"},n.i(y.e)(this.props));return l.a.createElement("g",{className:"recharts-polar-grid-angle"},o.map(function(e,o){var s=n.i(d.a)(t,r,a,e),c=n.i(d.a)(t,r,i,e);return l.a.createElement("line",v({},u,{key:"line-"+o,x1:s.x,y1:s.y,x2:c.x,y2:c.y}))}))}},{key:"renderConcentricCircle",value:function(e,t,r){var a=this.props,i=a.cx,o=a.cy,u=v({stroke:"#ccc"},n.i(y.e)(this.props),{fill:"none"},r);return l.a.createElement("circle",v({},u,{className:"recharts-polar-grid-concentric-circle",key:"circle-"+t,cx:i,cy:o,r:e}))}},{key:"renderConcentricPolygon",value:function(e,t,r){var a=v({stroke:"#ccc"},n.i(y.e)(this.props),{fill:"none"},r);return l.a.createElement("path",v({},a,{className:"recharts-polar-grid-concentric-polygon",key:"path-"+t,d:this.getPolygonPath(e)}))}},{key:"renderConcentricPath",value:function(){var e=this,t=this.props,n=t.polarRadius,r=t.gridType;return n&&n.length?l.a.createElement("g",{className:"recharts-polar-grid-concentric"},n.map(function(t,n){return"circle"===r?e.renderConcentricCircle(t,n):e.renderConcentricPolygon(t,n)})):null}},{key:"render",value:function(){return this.props.outerRadius>0?l.a.createElement("g",{className:"recharts-polar-grid"},this.renderPolarAngles(),this.renderConcentricPath()):null}}]),t}(c.Component),u.displayName="PolarGrid",u.propTypes=v({},y.m,{cx:h.a.number,cy:h.a.number,innerRadius:h.a.number,outerRadius:h.a.number,polarAngles:h.a.arrayOf(h.a.number),polarRadius:h.a.arrayOf(h.a.number),gridType:h.a.oneOf(["polygon","circle"])}),u.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,gridType:"polygon"},o=s))||o},function(e,t,n){"use strict";var r=n(202),a=(n.n(r),{});if(!Object.setPrototypeOf&&!a.__proto__){var i=Object.getPrototypeOf;Object.getPrototypeOf=function(e){return e.__proto__?e.__proto__:i.call(Object,e)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var r=n(330),a=n.n(r),i=new a.a;i.setMaxListeners&&i.setMaxListeners(10);var o="recharts.syncMouseEvents"},function(e,t,n){n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230),e.exports=n(74).Math},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(77);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(203);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(77),a=n(76).document,i=r(a)&&r(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports=!n(75)&&!n(52)(function(){return 7!=Object.defineProperty(n(206)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(204),a=n(208),i=n(212),o=Object.defineProperty;t.f=n(75)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),a)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(76),a=n(110),i=n(207),o=n(213)("src"),u=Function.toString,s=(""+u).split("toString");n(74).inspectSource=function(e){return u.call(e)},(e.exports=function(e,t,n,u){var c="function"==typeof n;c&&(i(n,"name")||a(n,"name",t)),e[t]!==n&&(c&&(i(n,o)||a(n,o,e[t]?""+e[t]:s.join(t+""))),e===r?e[t]=n:u?e[t]?e[t]=n:a(e,t,n):(delete e[t],a(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[o]||u.call(this)})},function(e,t,n){var r=n(77);e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(9),a=n(111),i=Math.sqrt,o=Math.acosh;r(r.S+r.F*!(o&&710==Math.floor(o(Number.MAX_VALUE))&&o(1/0)==1/0),"Math",{acosh:function(e){return 1>(e=+e)?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:a(e-1+i(e-1)*i(e+1))}})},function(e,t,n){function r(e){return isFinite(e=+e)&&0!=e?0>e?-r(-e):Math.log(e+Math.sqrt(e*e+1)):e}var a=n(9),i=Math.asinh;a(a.S+a.F*!(i&&1/i(0)>0),"Math",{asinh:r})},function(e,t,n){var r=n(9),a=Math.atanh;r(r.S+r.F*!(a&&0>1/a(-0)),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(9),a=n(79);r(r.S,"Math",{cbrt:function(e){return a(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var r=n(9);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(9),a=Math.exp;r(r.S,"Math",{cosh:function(e){return(a(e=+e)+a(-e))/2}})},function(e,t,n){var r=n(9),a=n(78);r(r.S+r.F*(a!=Math.expm1),"Math",{expm1:a})},function(e,t,n){var r=n(9),a=n(79),i=Math.pow,o=i(2,-52),u=i(2,-23),s=i(2,127)*(2-u),c=i(2,-126),l=function(e){return e+1/o-1/o};r(r.S,"Math",{fround:function(e){var t,n,r=Math.abs(e),i=a(e);return c>r?i*l(r/c/u)*c*u:(t=(1+u/o)*r,n=t-(t-r),n>s||n!=n?i*(1/0):i*n)}})},function(e,t,n){var r=n(9),a=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,i=0,o=0,u=arguments.length,s=0;u>o;)n=a(arguments[o++]),n>s?(r=s/n,i=i*r*r+1,s=n):n>0?(r=n/s,i+=r*r):i+=n;return s===1/0?1/0:s*Math.sqrt(i)}})},function(e,t,n){var r=n(9),a=Math.imul;r(r.S+r.F*n(52)(function(){return-5!=a(4294967295,5)||2!=a.length}),"Math",{imul:function(e,t){var n=+e,r=+t,a=65535&n,i=65535&r;return 0|a*i+((65535&n>>>16)*i+a*(65535&r>>>16)<<16>>>0)}})},function(e,t,n){var r=n(9);r(r.S,"Math",{log10:function(e){return Math.log(e)/Math.LN10}})},function(e,t,n){var r=n(9);r(r.S,"Math",{log1p:n(111)})},function(e,t,n){var r=n(9);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(9);r(r.S,"Math",{sign:n(79)})},function(e,t,n){var r=n(9),a=n(78),i=Math.exp;r(r.S+r.F*n(52)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return 1>Math.abs(e=+e)?(a(e)-a(-e))/2:(i(e-1)-i(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(9),a=n(78),i=Math.exp;r(r.S,"Math",{tanh:function(e){var t=a(e=+e),n=a(-e);return t==1/0?1:n==1/0?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){var r=n(9);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){"use strict";t.a=function(e){return function(){return e}}},function(e,t,n){"use strict";n(118)},function(e,t,n){"use strict"},function(e,t,n){"use strict";n(112),n(113),n(231),n(116),n(235),n(119),n(121),n(120)},function(e,t,n){"use strict";t.a=function(e){return e}},function(e,t,n){"use strict"},function(e,t,n){"use strict";n(36)},function(e,t,n){"use strict";n(30),n(36),n(80)},function(e,t,n){"use strict"},function(e,t,n){"use strict"},function(e,t,n){"use strict";n(30)},function(e,t,n){"use strict"},function(e,t,n){"use strict"},function(e,t,n){"use strict";n(112),n(30),n(36),n(80)},function(e,t,n){"use strict";n(115)},function(e,t,n){"use strict";n(122)},function(e,t,n){"use strict";var r=(n(250),n(251),n(81));n.d(t,"a",function(){return r.a});n(249),n(252),n(248)},function(e,t,n){"use strict"},function(e,t,n){"use strict"},function(e,t,n){"use strict";n(81)},function(e,t,n){"use strict";function r(){}function a(e,t){var n=new r;if(e instanceof r)e.each(function(e){n.add(e)});else if(e){var a=-1,i=e.length;if(null==t)for(;++a<i;)n.add(e[a]);else for(;++a<i;)n.add(t(e[a],a,e))}return n}var i=n(81),o=i.a.prototype;r.prototype=a.prototype={constructor:r,has:o.has,add:function(e){return e+="",this[i.b+e]=e,this},remove:o.remove,clear:o.clear,values:o.keys,size:o.size,empty:o.empty,each:o.each}},function(e,t,n){"use strict"},function(e,t,n){"use strict";function r(e){if(e instanceof i)return new i(e.h,e.s,e.l,e.opacity);e instanceof u.a||(e=n.i(u.b)(e));var t=e.r/255,r=e.g/255,a=e.b/255,o=(v*a+d*t-y*r)/(v+d-y),c=a-o,l=(p*(r-o)-f*c)/h,m=Math.sqrt(l*l+c*c)/(p*o*(1-o)),b=m?Math.atan2(l,c)*s.a-120:NaN;return new i(0>b?b+360:b,m,o,e.opacity)}function a(e,t,n,a){return 1===arguments.length?r(e):new i(e,t,n,null==a?1:a)}function i(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}t.a=a;var o=n(83),u=n(82),s=n(124),c=-.14861,l=1.78277,f=-.29227,h=-.90649,p=1.97294,d=p*h,y=p*l,v=l*f-h*c;n.i(o.a)(i,a,n.i(o.b)(u.c,{brighter:function(e){return e=null==e?u.d:Math.pow(u.d,e),new i(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?u.e:Math.pow(u.e,e),new i(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*s.b,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new u.a(255*(t+n*(c*r+l*a)),255*(t+n*(f*r+h*a)),255*(t+n*(p*r)),this.opacity)}}))},function(e,t,n){"use strict";function r(e){if(e instanceof i)return new i(e.l,e.a,e.b,e.opacity);if(e instanceof h){var t=e.h*y.b;return new i(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof d.a||(e=n.i(d.b)(e));var r=c(e.r),a=c(e.g),u=c(e.b),s=o((.4124564*r+.3575761*a+.1804375*u)/v),l=o((.2126729*r+.7151522*a+.072175*u)/m);return new i(116*l-16,500*(s-l),200*(l-o((.0193339*r+.119192*a+.9503041*u)/b)),e.opacity)}function a(e,t,n,a){return 1===arguments.length?r(e):new i(e,t,n,null==a?1:a)}function i(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function o(e){return e>w?Math.pow(e,1/3):e/_+g}function u(e){return e>x?e*e*e:_*(e-g)}function s(e){return 255*(e>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e)}function c(e){return(e/=255)>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92}function l(e){if(e instanceof h)return new h(e.h,e.c,e.l,e.opacity);e instanceof i||(e=r(e));var t=Math.atan2(e.b,e.a)*y.a;return new h(0>t?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function f(e,t,n,r){return 1===arguments.length?l(e):new h(e,t,n,null==r?1:r)}function h(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}t.b=a,t.a=f;var p=n(83),d=n(82),y=n(124),v=.95047,m=1,b=1.08883,g=4/29,x=6/29,_=3*x*x,w=x*x*x;n.i(p.a)(i,a,n.i(p.b)(d.c,{brighter:function(e){return new i(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new i(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return e=m*u(e),t=v*u(t),n=b*u(n),new d.a(s(3.2404542*t-1.5371385*e-.4985314*n),s(-.969266*t+1.8760108*e+.041556*n),s(.0556434*t-.2040259*e+1.0572252*n),this.opacity)}})),n.i(p.a)(h,f,n.i(p.b)(d.c,{brighter:function(e){return new h(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new h(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return r(this).rgb()}}))},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return i});var r,a,i,o=n(129);!function(e){r=n.i(o.a)(e),a=r.format,i=r.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]})},function(e,t,n){"use strict";t.a=function(e,t){e=e.toPrecision(t);e:for(var n,r=e.length,a=1,i=-1;r>a;++a)switch(e[a]){case".":i=n=a;break;case"0":0===i&&(i=a),n=a;break;case"e":break e;default:i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(n+1):e}},function(e,t,n){"use strict";t.a=function(e,t){return function(n,r){for(var a=n.length,i=[],o=0,u=e[0],s=0;a>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),i.push(n.substring(a-=u,a+u)),(s+=u+1)<=r);)u=e[o=(o+1)%e.length];return i.reverse().join(t)}}},function(e,t,n){"use strict";t.a=function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}},function(e,t,n){"use strict";var r=n(84);t.a=function(e,t){var a=n.i(r.a)(e,t);if(!a)return e+"";var i=a[0],o=a[1];return 0>o?"0."+Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+Array(o-i.length+2).join("0")}},function(e,t,n){"use strict";t.a=function(e){return e}},function(e,t,n){"use strict";var r=n(53);t.a=function(e){return Math.max(0,-n.i(r.a)(Math.abs(e)))}},function(e,t,n){"use strict";var r=n(53);t.a=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(n.i(r.a)(t)/3)))-n.i(r.a)(Math.abs(e)))}},function(e,t,n){"use strict";var r=n(53);t.a=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,n.i(r.a)(t)-n.i(r.a)(e))+1}},function(e,t,n){"use strict";function r(e){return function t(r){function o(t,o){var u=e((t=n.i(a.a)(t)).h,(o=n.i(a.a)(o)).h),s=n.i(i.a)(t.s,o.s),c=n.i(i.a)(t.l,o.l),l=n.i(i.a)(t.opacity,o.opacity);return function(e){return t.h=u(e),t.s=s(e),t.l=c(Math.pow(e,r)),t.opacity=l(e),t+""}}return r=+r,o.gamma=t,o}(1)}n.d(t,"a",function(){return o});var a=n(20),i=n(38),o=(r(i.b),r(i.a))},function(e,t,n){"use strict";function r(e){return function(t,r){var o=e((t=n.i(a.b)(t)).h,(r=n.i(a.b)(r)).h),u=n.i(i.a)(t.c,r.c),s=n.i(i.a)(t.l,r.l),c=n.i(i.a)(t.opacity,r.opacity);return function(e){return t.h=o(e),t.c=u(e),t.l=s(e),t.opacity=c(e),t+""}}}var a=n(20),i=n(38);r(i.b),r(i.a)},function(e,t,n){"use strict";function r(e){return function(t,r){var o=e((t=n.i(a.d)(t)).h,(r=n.i(a.d)(r)).h),u=n.i(i.a)(t.s,r.s),s=n.i(i.a)(t.l,r.l),c=n.i(i.a)(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=u(e),t.l=s(e),t.opacity=c(e),t+""}}}var a=n(20),i=n(38);r(i.b),r(i.a)},function(e,t,n){"use strict";n(20),n(38)},function(e,t,n){"use strict"},function(e,t,n){"use strict";t.a=function(e,t){return e=+e,t-=e,function(n){return Math.round(e+t*n)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=180/Math.PI,a={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};t.b=function(e,t,n,a,i,o){var u,s,c;return(u=Math.sqrt(e*e+t*t))&&(e/=u,t/=u),(c=e*n+t*a)&&(n-=e*c,a-=t*c),(s=Math.sqrt(n*n+a*a))&&(n/=s,a/=s,c/=s),t*n>e*a&&(e=-e,t=-t,c=-c,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*r,skewX:Math.atan(c)*r,scaleX:u,scaleY:s}}},function(e,t,n){"use strict";function r(e,t,r,i){function o(e){return e.length?e.pop()+" ":""}function u(e,i,o,u,s,c){if(e!==o||i!==u){var l=s.push("translate(",null,t,null,r);c.push({i:l-4,x:n.i(a.a)(e,o)},{i:l-2,x:n.i(a.a)(i,u)})}else(o||u)&&s.push("translate("+o+t+u+r)}function s(e,t,r,u){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),u.push({i:r.push(o(r)+"rotate(",null,i)-2,x:n.i(a.a)(e,t)})):t&&r.push(o(r)+"rotate("+t+i)}function c(e,t,r,u){e!==t?u.push({i:r.push(o(r)+"skewX(",null,i)-2,x:n.i(a.a)(e,t)}):t&&r.push(o(r)+"skewX("+t+i)}function l(e,t,r,i,u,s){if(e!==r||t!==i){var c=u.push(o(u)+"scale(",null,",",null,")");s.push({i:c-4,x:n.i(a.a)(e,r)},{i:c-2,x:n.i(a.a)(t,i)})}else 1===r&&1===i||u.push(o(u)+"scale("+r+","+i+")")}return function(t,n){var r=[],a=[];return t=e(t),n=e(n),u(t.translateX,t.translateY,n.translateX,n.translateY,r,a),s(t.rotate,n.rotate,r,a),c(t.skewX,n.skewX,r,a),l(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,a),t=n=null,function(e){for(var t,n=-1,i=a.length;++n<i;)r[(t=a[n]).i]=t.x(e);return r.join("")}}}var a=n(54),i=n(272);r(i.a,"px, ","px)","deg)"),r(i.b,", ",")",")")},function(e,t,n){"use strict";function r(e){return"none"===e?c.a:(i||(i=document.createElement("DIV"),o=document.documentElement,u=document.defaultView),i.style.transform=e,e=u.getComputedStyle(o.appendChild(i),null).getPropertyValue("transform"),o.removeChild(i),e=e.slice(7,-1).split(","),n.i(c.b)(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function a(e){return null==e?c.a:(s||(s=document.createElementNS("http://www.w3.org/2000/svg","g")),s.setAttribute("transform",e),(e=s.transform.baseVal.consolidate())?(e=e.matrix,n.i(c.b)(e.a,e.b,e.c,e.d,e.e,e.f)):c.a)}t.a=r,t.b=a;var i,o,u,s,c=n(270)},function(e,t,n){"use strict";Math},function(e,t,n){"use strict";function r(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function a(){return new r}var i=Math.PI,o=2*i,u=o-1e-6;r.prototype=a.prototype={constructor:r,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,a,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+a)+","+(this._y1=+i)},arcTo:function(e,t,n,r,a){e=+e,t=+t,n=+n,r=+r,a=+a;var o=this._x1,u=this._y1,s=n-e,c=r-t,l=o-e,f=u-t,h=l*l+f*f;if(0>a)throw Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(h>1e-6)if(Math.abs(f*s-c*l)>1e-6&&a){var p=n-o,d=r-u,y=s*s+c*c,v=p*p+d*d,m=Math.sqrt(y),b=Math.sqrt(h),g=a*Math.tan((i-Math.acos((y+h-v)/(2*m*b)))/2),x=g/b,_=g/m;Math.abs(x-1)>1e-6&&(this._+="L"+(e+x*l)+","+(t+x*f)),this._+="A"+a+","+a+",0,0,"+ +(f*p>l*d)+","+(this._x1=e+_*s)+","+(this._y1=t+_*c)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,a,s){e=+e,t=+t,n=+n;var c=n*Math.cos(r),l=n*Math.sin(r),f=e+c,h=t+l,p=1^s,d=s?r-a:a-r;if(0>n)throw Error("negative radius: "+n);null===this._x1?this._+="M"+f+","+h:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+f+","+h),n&&(0>d&&(d=d%o+o),d>u?this._+="A"+n+","+n+",0,1,"+p+","+(e-c)+","+(t-l)+"A"+n+","+n+",0,1,"+p+","+(this._x1=f)+","+(this._y1=h):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=i)+","+p+","+(this._x1=e+n*Math.cos(a))+","+(this._y1=t+n*Math.sin(a))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.a=a},function(e,t,n){"use strict";function r(){function e(){var e=s().length,r=l[0]>l[1],i=l[r-0],u=l[1-r];t=(u-i)/Math.max(1,e-h+2*p),f&&(t=Math.floor(t)),i+=(u-i-t*(e-h))*d,a=t*(1-h),f&&(i=Math.round(i),a=Math.round(a));var y=n.i(o.g)(e).map(function(e){return i+t*e});return c(r?y.reverse():y)}var t,a,i=n.i(u.a)().unknown(void 0),s=i.domain,c=i.range,l=[0,1],f=!1,h=0,p=0,d=.5;return delete i.unknown,i.domain=function(t){return arguments.length?(s(t),e()):s()},i.range=function(t){return arguments.length?(l=[+t[0],+t[1]],e()):l.slice()},i.rangeRound=function(t){return l=[+t[0],+t[1]],f=!0,e()},i.bandwidth=function(){return a},i.step=function(){return t},i.round=function(t){return arguments.length?(f=!!t,e()):f},i.padding=function(t){return arguments.length?(h=p=Math.max(0,Math.min(1,t)),e()):h},i.paddingInner=function(t){return arguments.length?(h=Math.max(0,Math.min(1,t)),e()):h},i.paddingOuter=function(t){return arguments.length?(p=Math.max(0,Math.min(1,t)),e()):p},i.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),e()):d},i.copy=function(){return r().domain(s()).range(l).round(f).paddingInner(h).paddingOuter(p).align(d)},e()}function a(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return a(t())},e}function i(){return a(r().paddingInner(1))}t.a=r,t.b=i;var o=n(15),u=n(140)},function(e,t,n){"use strict";t.a=n.i(n(39).a)("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf")},function(e,t,n){"use strict";t.a=n.i(n(39).a)("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5")},function(e,t,n){"use strict";t.a=n.i(n(39).a)("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6")},function(e,t,n){"use strict";t.a=n.i(n(39).a)("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9")},function(e,t,n){"use strict";var r=n(20);t.a=n.i(n(37).d)(n.i(r.a)(300,.5,0),n.i(r.a)(-240,.5,1))},function(e,t,n){"use strict";function r(){function e(e){return+e}var t=[0,1];return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=a.a.call(n,o.a),e):t.slice()},e.copy=function(){return r().domain(t)},n.i(i.b)(e)}t.a=r;var a=n(24),i=n(40),o=n(139)},function(e,t,n){"use strict";function r(e,t){return(t=Math.log(t/e))?function(n){return Math.log(n/e)/t}:n.i(h.a)(t)}function a(e,t){return 0>e?function(n){return-Math.pow(-t,n)*Math.pow(-e,1-n)}:function(n){return Math.pow(t,n)*Math.pow(e,1-n)}}function i(e){return isFinite(e)?+("1e"+e):0>e?0:e}function o(e){return 10===e?i:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function u(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function s(e){return function(t){return-e(-t)}}function c(){function e(){return y=u(h),v=o(h),0>i()[0]&&(y=s(y),v=s(v)),t}var t=n.i(d.a)(r,a).domain([1,10]),i=t.domain,h=10,y=u(10),v=o(10);return t.base=function(t){return arguments.length?(h=+t,e()):h},t.domain=function(t){return arguments.length?(i(t),e()):i()},t.ticks=function(e){var t,r=i(),a=r[0],o=r[r.length-1];(t=a>o)&&(f=a,a=o,o=f);var u,s,c,f=y(a),p=y(o),d=null==e?10:+e,m=[];if(h%1||d<=p-f)m=n.i(l.a)(f,p,Math.min(p-f,d)).map(v);else if(f=Math.round(f)-1,p=Math.round(p)+1,a>0){for(;p>f;++f)for(s=1,u=v(f);h>s;++s)if((c=u*s)>=a){if(c>o)break;m.push(c)}}else for(;p>f;++f)for(s=h-1,u=v(f);s>=1;--s)if((c=u*s)>=a){if(c>o)break;m.push(c)}return t?m.reverse():m},t.tickFormat=function(e,r){if(null==r&&(r=10===h?".0e":","),"function"!=typeof r&&(r=n.i(f.f)(r)),e===1/0)return r;null==e&&(e=10);var a=Math.max(1,h*e/t.ticks().length);return function(e){var t=e/v(Math.round(y(e)));return h-.5>t*h&&(t*=h),t>a?"":r(e)}},t.nice=function(){return i(n.i(p.a)(i(),{floor:function(e){return v(Math.floor(y(e)))},ceil:function(e){return v(Math.ceil(y(e)))}}))},t.copy=function(){return n.i(d.c)(t,c().base(h))},t}t.a=c;var l=n(15),f=n(125),h=n(87),p=n(138),d=n(56)},function(e,t,n){"use strict";function r(e,t){return 0>e?-Math.pow(-e,t):Math.pow(e,t)}function a(){function e(e,t){return(t=r(t,i)-(e=r(e,i)))?function(n){return(r(n,i)-e)/t}:n.i(o.a)(t)}function t(e,t){return t=r(t,i)-(e=r(e,i)),function(n){return r(e+t*n,1/i)}}var i=1,c=n.i(s.a)(e,t),l=c.domain;return c.exponent=function(e){return arguments.length?(i=+e,l(l())):i},c.copy=function(){return n.i(s.c)(c,a().exponent(i))},n.i(u.b)(c)}function i(){return a().exponent(.5)}t.a=a,t.b=i;var o=n(87),u=n(40),s=n(56)},function(e,t,n){"use strict";function r(){function e(){var e=0,r=Math.max(1,u.length);for(s=Array(r-1);++e<r;)s[e-1]=n.i(a.e)(o,e/r);return t}function t(e){if(!isNaN(e=+e))return u[n.i(a.c)(s,e)]}var o=[],u=[],s=[];return t.invertExtent=function(e){var t=u.indexOf(e);return 0>t?[NaN,NaN]:[t>0?s[t-1]:o[0],s.length>t?s[t]:o[o.length-1]]},t.domain=function(t){if(!arguments.length)return o.slice();o=[];for(var n,r=0,i=t.length;i>r;++r)null==(n=t[r])||isNaN(n=+n)||o.push(n);return o.sort(a.f),e()},t.range=function(t){return arguments.length?(u=i.b.call(t),e()):u.slice()},t.quantiles=function(){return s.slice()},t.copy=function(){return r().domain(o).range(u)},t}t.a=r;var a=n(15),i=n(24)},function(e,t,n){"use strict";function r(){function e(e){if(e>=e)return f[n.i(a.c)(l,e,0,c)]}function t(){var t=-1;for(l=Array(c);++t<c;)l[t]=((t+1)*s-(t-c)*u)/(c+1);return e}var u=0,s=1,c=1,l=[.5],f=[0,1];return e.domain=function(e){return arguments.length?(u=+e[0],s=+e[1],t()):[u,s]},e.range=function(e){return arguments.length?(c=(f=i.b.call(e)).length-1,t()):f.slice()},e.invertExtent=function(e){var t=f.indexOf(e);return 0>t?[NaN,NaN]:1>t?[u,l[0]]:c>t?[l[t-1],l[t]]:[l[c-1],s]},e.copy=function(){return r().domain([u,s]).range(f)},n.i(o.b)(e)}t.a=r;var a=n(15),i=n(24),o=n(40)},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"c",function(){return o});var r=n(20),a=n(37),i=n.i(a.d)(n.i(r.a)(-100,.75,.35),n.i(r.a)(80,1.5,.8)),o=n.i(a.d)(n.i(r.a)(260,.75,.35),n.i(r.a)(80,1.5,.8)),u=n.i(r.a)();t.a=function(e){(0>e||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return u.h=360*e-100,u.s=1.5-1.5*t,u.l=.8-.9*t,u+""}},function(e,t,n){"use strict";function r(e){function t(t){var n=(t-i)/(o-i);return e(u?Math.max(0,Math.min(1,n)):n)}var i=0,o=1,u=!1;return t.domain=function(e){return arguments.length?(i=+e[0],o=+e[1],t):[i,o]},t.clamp=function(e){return arguments.length?(u=!!e,t):u},t.interpolator=function(n){return arguments.length?(e=n,t):e},t.copy=function(){return r(e).domain([i,o]).clamp(u)},n.i(a.b)(t)}t.a=r;var a=n(40)},function(e,t,n){"use strict";function r(){function e(e){if(e>=e)return o[n.i(a.c)(t,e,0,u)]}var t=[.5],o=[0,1],u=1;return e.domain=function(n){return arguments.length?(t=i.b.call(n),u=Math.min(t.length,o.length-1),e):t.slice()},e.range=function(n){return arguments.length?(o=i.b.call(n),u=Math.min(t.length,o.length-1),e):o.slice()},e.invertExtent=function(e){var n=o.indexOf(e);return[t[n-1],t[n]]},e.copy=function(){return r().domain(t).range(o)},e}t.a=r;var a=n(15),i=n(24)},function(e,t,n){"use strict";var r=n(15),a=n(125);t.a=function(e,t,i){var o,u=e[0],s=e[e.length-1],c=n.i(r.b)(u,s,null==t?10:t);switch(i=n.i(a.a)(null==i?",f":i),i.type){case"s":var l=Math.max(Math.abs(u),Math.abs(s));return null!=i.precision||isNaN(o=n.i(a.b)(c,l))||(i.precision=o),n.i(a.c)(i,l);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=n.i(a.d)(c,Math.max(Math.abs(u),Math.abs(s))))||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=n.i(a.e)(c))||(i.precision=o-2*("%"===i.type))}return n.i(a.f)(i)}},function(e,t,n){"use strict";var r=n(141),a=n(155),i=n(93);t.a=function(){return n.i(r.b)(i.a,i.b,i.c,i.d,i.e,i.f,i.g,i.h,a.a).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}},function(e,t,n){"use strict";function r(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}n.d(t,"b",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"d",function(){return u});var a=n(39);t.a=r(n.i(a.a)("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var i=r(n.i(a.a)("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),o=r(n.i(a.a)("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),u=r(n.i(a.a)("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"))},function(e,t,n){"use strict";n(55),n(31),n(41)},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=Array.prototype.slice},function(e,t,n){"use strict";function r(e){this._context=e}var a=n(60),i=n(57);r.prototype={areaStart:a.a,areaEnd:a.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:n.i(i.b)(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},t.a=function(e){return new r(e)}},function(e,t,n){"use strict";function r(e){this._context=e}var a=n(57);r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:n.i(a.b)(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},t.a=function(e){return new r(e)}},function(e,t,n){"use strict";function r(e,t){this._basis=new a.a(e),this._beta=t}var a=n(57);r.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,a=e[0],i=t[0],o=e[n]-a,u=t[n]-i,s=-1;++s<=n;)r=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(a+r*o),this._beta*t[s]+(1-this._beta)*(i+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};!function e(t){function n(e){return 1===t?new a.a(e):new r(e,t)}return n.beta=function(t){return e(+t)},n}(.85)},function(e,t,n){"use strict";function r(e,t){this._context=e,this._alpha=t}var a=n(143),i=n(60),o=n(89);r.prototype={areaStart:i.a,areaEnd:i.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,a=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:n.i(o.a)(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};!function e(t){function n(e){return t?new r(e,t):new a.a(e,0)}return n.alpha=function(t){return e(+t)},n}(.5)},function(e,t,n){"use strict";function r(e,t){this._context=e,this._alpha=t}var a=n(144),i=n(89);r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,a=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+a*a,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:n.i(i.a)(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};!function e(t){function n(e){return t?new r(e,t):new a.a(e,0)}return n.alpha=function(t){return e(+t)},n}(.5)},function(e,t,n){"use strict";function r(e){this._context=e}var a=n(60);r.prototype={areaStart:a.a,areaEnd:a.a,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},t.a=function(e){return new r(e)}},function(e,t,n){"use strict";function r(e){return 0>e?-1:1}function a(e,t,n){var a=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(a||0>i&&-0),u=(n-e._y1)/(i||0>a&&-0),s=(o*i+u*a)/(a+i);return(r(o)+r(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(s))||0}function i(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function o(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,u=(i-r)/3;e._context.bezierCurveTo(r+u,a+u*t,i-u,o-u*n,i,o)}function u(e){this._context=e}function s(e){this._context=new c(e)}function c(e){this._context=e}function l(e){return new u(e)}function f(e){return new s(e)}t.a=l,t.b=f,u.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:o(this,this._t0,i(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,o(this,i(this,n=a(this,e,t)),n);break;default:o(this,this._t0,n=a(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(s.prototype=Object.create(u.prototype)).point=function(e,t){u.prototype.point.call(this,t,e)},c.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}}},function(e,t,n){"use strict";function r(e){this._context=e}function a(e){var t,n,r=e.length-1,a=Array(r),i=Array(r),o=Array(r);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;r-1>t;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[r-1]=2,i[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;r>t;++t)n=a[t]/i[t-1],i[t]-=n,o[t]-=n*o[t-1];for(a[r-1]=o[r-1]/i[r-1],t=r-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[r-1]=(e[r]+a[r-1])/2,t=0;r-1>t;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=a(e),i=a(t),o=0,u=1;n>u;++o,++u)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[u],t[u]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},t.a=function(e){return new r(e)}},function(e,t,n){"use strict";function r(e,t){this._context=e,this._t=t}function a(e){return new r(e,0)}function i(e){return new r(e,1)}t.c=a,t.b=i,r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){this._t>0&&1>this._t&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),0>this._line||(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(0<this._t){var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}else this._context.lineTo(this._x,t),this._context.lineTo(e,t)}this._x=e,this._y=t}},t.a=function(e){return new r(e,.5)}},function(e,t,n){"use strict";t.a=function(e,t){return e>t?-1:t>e?1:e>t?NaN:0}},function(e,t,n){"use strict";t.a=function(e){return e}},function(e,t,n){"use strict";var r=n(42);t.a=function(e,t){if((i=e.length)>0){for(var a,i,o,u=0,s=e[0].length;s>u;++u){for(o=a=0;i>a;++a)o+=e[a][u][1]||0;if(o)for(a=0;i>a;++a)e[a][u][1]/=o}n.i(r.a)(e,t)}}},function(e,t,n){"use strict";var r=n(42);t.a=function(e,t){if((a=e.length)>0){for(var a,i=0,o=e[t[0]],u=o.length;u>i;++i){for(var s=0,c=0;a>s;++s)c+=e[s][i][1]||0;o[i][1]+=o[i][0]=-c/2}n.i(r.a)(e,t)}}},function(e,t,n){"use strict";var r=n(42);t.a=function(e,t){if((o=e.length)>0&&(i=(a=e[t[0]]).length)>0){for(var a,i,o,u=0,s=1;i>s;++s){for(var c=0,l=0,f=0;o>c;++c){for(var h=e[t[c]],p=h[s][1]||0,d=h[s-1][1]||0,y=(p-d)/2,v=0;c>v;++v){var m=e[t[v]];y+=(m[s][1]||0)-(m[s-1][1]||0)}l+=p,f+=y*p}a[s-1][1]+=a[s-1][0]=u,l&&(u-=f/l)}a[s-1][1]+=a[s-1][0]=u,n.i(r.a)(e,t)}}},function(e,t,n){"use strict";n(91)},function(e,t,n){"use strict";n(43),n(91)},function(e,t,n){"use strict";n(43)},function(e,t,n){"use strict";n(31),n(303),n(304),n(41)},function(e,t,n){"use strict";n(145),n(142),n(147)},function(e,t,n){"use strict";function r(e,t){return e[t]}var a=n(293),i=n(31),o=n(42),u=n(43);t.a=function(){function e(e){var n,r,a=t.apply(this,arguments),i=e.length,o=a.length,u=Array(o);for(n=0;o>n;++n){for(var f,h=a[n],p=u[n]=Array(i),d=0;i>d;++d)p[d]=f=[0,+l(e[d],h,d,e)],f.data=e[d];p.key=h}for(n=0,r=s(u);o>n;++n)u[r[n]].index=n;return c(u,r),u}var t=n.i(i.a)([]),s=u.a,c=o.a,l=r;return e.keys=function(r){return arguments.length?(t="function"==typeof r?r:n.i(i.a)(a.a.call(r)),e):t},e.value=function(t){return arguments.length?(l="function"==typeof t?t:n.i(i.a)(+t),e):l},e.order=function(t){return arguments.length?(s=null==t?u.a:"function"==typeof t?t:n.i(i.a)(a.a.call(t)),e):s},e.offset=function(t){return arguments.length?(c=null==t?o.a:t,e):c},e}},function(e,t,n){"use strict";var r=n(55),a=n(148),i=(n(149),n(150),n(152),n(151),n(153),n(154),n(31));t.a=function(){function e(){var e;if(u||(u=e=n.i(r.a)()),t.apply(this,arguments).draw(u,+o.apply(this,arguments)),e)return u=null,e+""||null}var t=n.i(i.a)(a.a),o=n.i(i.a)(64),u=null;return e.type=function(r){return arguments.length?(t="function"==typeof r?r:n.i(i.a)(r),e):t},e.size=function(t){return arguments.length?(o="function"==typeof t?t:n.i(i.a)(+t),e):o},e.context=function(t){return arguments.length?(u=null==t?null:t,e):u},e}},function(e,t,n){"use strict";function r(e){var t=new Date(e);return isNaN(t)?null:t}var a=n(156),i=n(92);+new Date("2000-01-01T00:00:00.000Z")||n.i(i.b)(a.a)},function(e,t,n){"use strict";var r=n(10),a=n(16),i=n.i(r.a)(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*a.d)/a.b},function(e){return e.getDate()-1});t.a=i},function(e,t,n){"use strict";var r=n(10),a=n(16),i=n.i(r.a)(function(e){var t=e.getTimezoneOffset()*a.d%a.c;0>t&&(t+=a.c),e.setTime(Math.floor((+e-t)/a.c)*a.c+t)},function(e,t){e.setTime(+e+t*a.c)},function(e,t){return(t-e)/a.c},function(e){return e.getHours()});t.a=i},function(e,t,n){"use strict";var r=n(10),a=n.i(r.a)(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});a.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?n.i(r.a)(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):a:null},t.a=a},function(e,t,n){"use strict";var r=n(10),a=n(16),i=n.i(r.a)(function(e){e.setTime(Math.floor(e/a.d)*a.d)},function(e,t){e.setTime(+e+t*a.d)},function(e,t){return(t-e)/a.d},function(e){return e.getMinutes()});t.a=i},function(e,t,n){"use strict";var r=n(10),a=n.i(r.a)(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()});t.a=a},function(e,t,n){"use strict";var r=n(10),a=n(16),i=n.i(r.a)(function(e){e.setTime(Math.floor(e/a.e)*a.e)},function(e,t){e.setTime(+e+t*a.e)},function(e,t){return(t-e)/a.e},function(e){return e.getUTCSeconds()});t.a=i},function(e,t,n){"use strict";var r=n(10),a=n(16),i=n.i(r.a)(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/a.b},function(e){return e.getUTCDate()-1});t.a=i},function(e,t,n){"use strict";var r=n(10),a=n(16),i=n.i(r.a)(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*a.c)},function(e,t){return(t-e)/a.c},function(e){return e.getUTCHours()});t.a=i},function(e,t,n){"use strict";var r=n(10),a=n(16),i=n.i(r.a)(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*a.d)},function(e,t){return(t-e)/a.d},function(e){return e.getUTCMinutes()});t.a=i},function(e,t,n){"use strict";var r=n(10),a=n.i(r.a)(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()});t.a=a},function(e,t,n){"use strict";function r(e){return n.i(a.a)(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/i.a})}n.d(t,"a",function(){return o}),n.d(t,"b",function(){return u});var a=n(10),i=n(16),o=r(0),u=r(1);r(2),r(3),r(4),r(5),r(6)},function(e,t,n){"use strict";var r=n(10),a=n.i(r.a)(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});a.every=function(e){return isFinite(e=Math.floor(e))&&e>0?n.i(r.a)(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null},t.a=a},function(e,t,n){"use strict";function r(e){return n.i(a.a)(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.d)/i.a})}n.d(t,"a",function(){return o}),n.d(t,"b",function(){return u});var a=n(10),i=n(16),o=r(0),u=r(1);r(2),r(3),r(4),r(5),r(6)},function(e,t,n){"use strict";var r=n(10),a=n.i(r.a)(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});a.every=function(e){return isFinite(e=Math.floor(e))&&e>0?n.i(r.a)(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null},t.a=a},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function a(e){return"number"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!a(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,u,s,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(n=this._events[e],o(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:u=Array.prototype.slice.call(arguments,1),n.apply(this,u)}else if(i(n))for(u=Array.prototype.slice.call(arguments,1),c=n.slice(),a=c.length,s=0;a>s;s++)c[s].apply(this,u);return!0},n.prototype.addListener=function(e,t){var a;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(a=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),a||(a=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var a=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,a,o,u;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],o=n.length,a=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(u=o;u-- >0;)if(n[u]===t||n[u].listener&&n[u].listener===t){a=u;break}if(0>a)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t){function n(e,t,n){switch(n.length){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)}e.exports=n},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}e.exports=n},function(e,t,n){function r(e,t){return!!(null==e?0:e.length)&&a(e,t,0)>-1}var a=n(162);e.exports=r},function(e,t){function n(e,t,n){for(var r=-1,a=null==e?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}e.exports=n},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}e.exports=n},function(e,t,n){function r(e,t){var n=[];return a(e,function(e,r,a){t(e,r,a)&&n.push(e)}),n}var a=n(160);e.exports=r},function(e,t){function n(e){return e&&e.length?e[0]:void 0}e.exports=n},function(e,t,n){e.exports=n(355)()},function(e,t,n){function r(e,t){return e&&a(e,t,i)}var a=n(338),i=n(175);e.exports=r},function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},function(e,t,n){function r(e,t,n){for(var r=n?o:i,f=e[0].length,h=e.length,p=h,d=Array(h),y=1/0,v=[];p--;){var m=e[p];p&&t&&(m=u(m,s(t))),y=l(m.length,y),d[p]=n||!t&&(120>f||120>m.length)?void 0:new a(p&&m)}m=e[0];var b=-1,g=d[0];e:for(;++b<f&&y>v.length;){var x=m[b],_=t?t(x):x;if(x=n||0!==x?x:0,!(g?c(g,_):r(v,_,n))){for(p=h;--p;){var w=d[p];if(!(w?c(w,_):r(e[p],_,n)))continue e}g&&g.push(_),v.push(x)}}return v}var a=n(158),i=n(333),o=n(334),u=n(94),s=n(165),c=n(166),l=Math.min;e.exports=r},function(e,t,n){function r(e,t,n,r,v,b){var g=c(e),x=c(t),_=g?d:s(e),w=x?d:s(t);_=_==p?y:_,w=w==p?y:w;var O=_==y,A=w==y,k=_==w;if(k&&l(e)){if(!l(t))return!1;g=!0,O=!1}if(k&&!O)return b||(b=new a),g||f(e)?i(e,t,n,r,v,b):o(e,t,_,n,r,v,b);if(!(n&h)){var T=O&&m.call(e,"__wrapped__"),M=A&&m.call(t,"__wrapped__");if(T||M){var E=T?e.value():e,S=M?t.value():t;return b||(b=new a),v(E,S,n,r,b)}}return!!k&&(b||(b=new a),u(e,t,n,r,v,b))}var a=n(159),i=n(357),o=n(358),u=n(359),s=n(364),c=n(11),l=n(380),f=n(383),h=1,p="[object Arguments]",d="[object Array]",y="[object Object]",v=Object.prototype,m=v.hasOwnProperty;e.exports=r},function(e,t,n){function r(e,t,n,r){var s=n.length,c=s,l=!r;if(null==e)return!c;for(e=Object(e);s--;){var f=n[s];if(l&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++s<c;){f=n[s];var h=f[0],p=e[h],d=f[1];if(l&&f[2]){if(void 0===p&&!(h in e))return!1}else{var y=new a;if(r)var v=r(p,d,h,e,t,y);if(!(void 0===v?i(d,p,o|u,r,y):v))return!1}}return!0}var a=n(159),i=n(95),o=1,u=2;e.exports=r},function(e,t,n){function r(e,t){var n=-1,r=i(e)?Array(e.length):[];return a(e,function(e,a,i){r[++n]=t(e,a,i)}),r}var a=n(160),i=n(97);e.exports=r},function(e,t,n){function r(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||a(n,e,t)}}var a=n(343),i=n(362),o=n(169);e.exports=r},function(e,t,n){function r(e,t){return u(e)&&s(t)?c(l(e),t):function(n){var r=i(n,e);return void 0===r&&r===t?o(n,e):a(t,r,f|h)}}var a=n(95),i=n(171),o=n(377),u=n(365),s=n(168),c=n(169),l=n(374),f=1,h=2;e.exports=r},function(e,t,n){function r(e,t,n){var r=-1;t=a(t.length?t:[l],s(i));var f=o(e,function(e,n,i){return{criteria:a(t,function(t){return t(e)}),index:++r,value:e}});return u(f,function(e,t){return c(e,t,n)})}var a=n(94),i=n(44),o=n(344),u=n(349),s=n(165),c=n(353),l=n(45);e.exports=r},function(e,t){function n(e,t,n,i){for(var o=-1,u=a(r((t-e)/(n||1)),0),s=Array(u);u--;)s[i?u:++o]=e,e+=n;return s}var r=Math.ceil,a=Math.max;e.exports=n},function(e,t){function n(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}e.exports=n},function(e,t){function n(e,t){for(var n,r=-1,a=e.length;++r<a;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}e.exports=n},function(e,t,n){function r(e){return a(e)?e:[]}var a=n(379);e.exports=r},function(e,t,n){function r(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e===e,o=a(e),u=void 0!==t,s=null===t,c=t===t,l=a(t);if(!s&&!l&&!o&&e>t||o&&u&&c&&!s&&!l||r&&u&&c||!n&&c||!i)return 1;if(!r&&!o&&!l&&t>e||l&&n&&i&&!r&&!o||s&&n&&i||!u&&i||!c)return-1}return 0}var a=n(174);e.exports=r},function(e,t,n){function r(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,u=i.length,s=n.length;++r<u;){var c=a(i[r],o[r]);if(c){if(r>=s)return c;return c*("desc"==n[r]?-1:1)}}return e.index-t.index}var a=n(352);e.exports=r},function(e,t,n){function r(e,t){return function(n,r){if(null==n)return n;if(!a(n))return e(n,r);for(var i=n.length,o=t?i:-1,u=Object(n);(t?o--:++o<i)&&!1!==r(u[o],o,u););return n}}var a=n(97);e.exports=r},function(e,t){function n(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),u=o.length;u--;){var s=o[e?u:++a];if(!1===n(i[s],s,i))break}return t}}e.exports=n},function(e,t,n){function r(e){return function(t,n,r){return r&&"number"!=typeof r&&i(t,n,r)&&(n=r=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),r=void 0===r?n>t?1:-1:o(r),a(t,n,r,e)}}var a=n(348),i=n(167),o=n(391);e.exports=r},function(e,t,n){function r(e,t,n,r,c,l){var f=n&u,h=e.length,p=t.length;if(!(h==p||f&&p>h))return!1;var d=l.get(e);if(d&&l.get(t))return d==t;var y=-1,v=!0,m=n&s?new a:void 0;for(l.set(e,t),l.set(t,e);++y<h;){var b=e[y],g=t[y];if(r)var x=f?r(g,b,y,t,e,l):r(b,g,y,e,t,l);if(void 0!==x){if(x)continue;v=!1;break}if(m){if(!i(t,function(e,t){if(!o(m,t)&&(b===e||c(b,e,n,r,l)))return m.push(t)})){v=!1;break}}else if(b!==g&&!c(b,g,n,r,l)){v=!1;break}}return l.delete(e),l.delete(t),v}var a=n(158),i=n(335),o=n(166),u=1,s=2;e.exports=r},function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t,n){function r(e,t,n,r,o,s){var c=n&i,l=a(e),f=l.length;if(f!=a(t).length&&!c)return!1;for(var h=f;h--;){var p=l[h];if(!(c?p in t:u.call(t,p)))return!1}var d=s.get(e);if(d&&s.get(t))return d==t;var y=!0;s.set(e,t),s.set(t,e);for(var v=c;++h<f;){p=l[h];var m=e[p],b=t[p];if(r)var g=c?r(b,m,p,t,e,s):r(m,b,p,e,t,s);if(!(void 0===g?m===b||o(m,b,n,r,s):g)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var x=e.constructor,_=t.constructor;x!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _)&&(y=!1)}return s.delete(e),s.delete(t),y}var a=n(361),i=1,o=Object.prototype,u=o.hasOwnProperty;e.exports=r},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(184))},function(e,t,n){e.exports=n(96)(Object.keys,Object)},function(e,t,n){function r(e){for(var t=i(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,a(o)]}return t}var a=n(168),i=n(175);e.exports=r},function(e,t,n){e.exports=n(96)(Object.getPrototypeOf,Object)},function(e,t){function n(e){return a.call(e)}var r=Object.prototype,a=r.toString;e.exports=n},function(e,t){function n(e){return e}e.exports=n},function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},function(e,t,n){function r(e){var t=this.__data__,n=a(t,e);return n>=0&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}var a=n(61),i=Array.prototype,o=i.splice;e.exports=r},function(e,t,n){function r(e){var t=this.__data__,n=a(t,e);return 0>n?void 0:t[n][1]}var a=n(61);e.exports=r},function(e,t,n){function r(e){return a(this.__data__,e)>-1}var a=n(61);e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__,r=a(n,e);return 0>r?(++this.size,n.push([e,t])):n[r][1]=t,this}var a=n(61);e.exports=r},function(e,t,n){function r(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,u=i(r.length-t,0),s=Array(u);++o<u;)s[o]=r[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=r[o];return c[t]=n(s),a(e,this,c)}}var a=n(331),i=Math.max;e.exports=r},function(e,t,n){var r=n(360),a="object"==typeof self&&self&&self.Object===Object&&self;e.exports=r||a||Function("return this")()},function(e,t){function n(e){return e}e.exports=n},function(e,t){function n(e){return e}e.exports=n},function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t,n){function r(e,t){return(u(e)?a:i)(e,o(t,3))}var a=n(332),i=n(336),o=n(44),u=n(11);e.exports=r},function(e,t){function n(e,t){return null!=e&&t in Object(e)}e.exports=n},function(e,t,n){var r=n(94),a=n(341),i=n(164),o=n(351);e.exports=i(function(e){var t=r(e,o);return t.length&&t[0]===e[0]?a(t):[]})},function(e,t,n){function r(e){return i(e)&&a(e)}var a=n(97),i=n(46);e.exports=r},function(e,t){function n(){return!1}e.exports=n},function(e,t){function n(e){return"number"==typeof e&&e>-1&&e%1==0&&r>=e}var r=9007199254740991;e.exports=n},function(e,t,n){function r(e){return a(e)&&e!=+e}var a=n(172);e.exports=r},function(e,t){function n(){return!1}e.exports=n},function(e,t){function n(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}e.exports=n},function(e,t,n){function r(e){return e&&e.length?a(e,o,i):void 0}var a=n(62),i=n(161),o=n(45);e.exports=r},function(e,t,n){function r(e,t){return e&&e.length?a(e,i(t,2),o):void 0}var a=n(62),i=n(44),o=n(163);e.exports=r},function(e,t,n){var r=n(372);e.exports=function(){return r.Date.now()}},function(e,t){function n(e){return function(t){return null==t?void 0:t[e]}}e.exports=n},function(e,t,n){function r(e,t){return e&&e.length?i(e,a(t,2)):0}var a=n(44),i=n(350);e.exports=r},function(e,t,n){function r(e,t,n){var r=!0,u=!0;if("function"!=typeof e)throw new TypeError(o);return i(n)&&(r="leading"in n?!!n.leading:r,u="trailing"in n?!!n.trailing:u),a(e,t,{leading:r,maxWait:t,trailing:u})}var a=n(170),i=n(25),o="Expected a function";e.exports=r},function(e,t){function n(e){return e}e.exports=n},function(e,t){function n(e){return e}e.exports=n},function(e,t,n){var r=n(397);r.prototype.formulaEval=function(){"use strict";for(var e,t,n,r=[],a=this.value,i=0;a.length>i;i++)1===a[i].type||3===a[i].type?r.push({value:3===a[i].type?a[i].show:a[i].value,type:1}):13===a[i].type?r.push({value:a[i].show,type:1}):0===a[i].type?r[r.length-1]={value:a[i].show+("-"!=a[i].show?"(":"")+r[r.length-1].value+("-"!=a[i].show?")":""),type:0}:7===a[i].type?r[r.length-1]={value:(1!=r[r.length-1].type?"(":"")+r[r.length-1].value+(1!=r[r.length-1].type?")":"")+a[i].show,type:7}:10===a[i].type?(e=r.pop(),t=r.pop(),r.push("P"===a[i].show||"C"===a[i].show?{value:"<sup>"+t.value+"</sup>"+a[i].show+"<sub>"+e.value+"</sub>",type:10}:{value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+"<sup>"+e.value+"</sup>",type:1})):2===a[i].type||9===a[i].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+a[i].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:a[i].type})):12===a[i].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:a[i].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value},e.exports=r},function(e,t,n){function r(e,t){for(var n=0;e.length>n;n++)e[n]+=t;return e}function a(e,t,n,r){for(var a=0;r>a;a++)if(e[n+a]!==t[a])return!1;return!0}var o=n(395),u=["sin","cos","tan","pi","(",")","P","C","asin","acos","atan","7","8","9","int","cosh","acosh","ln","^","root","4","5","6","/","!","tanh","atanh","Mod","1","2","3","*","sinh","asinh","e","log","0",".","+","-",",","Sigma","n","Pi","pow"],s=["sin","cos","tan","π","(",")","P","C","asin","acos","atan","7","8","9","Int","cosh","acosh"," ln","^","root","4","5","6","÷","!","tanh","atanh"," Mod ","1","2","3","×","sinh","asinh","e"," log","0",".","+","-",",","Σ","n","Π","pow"],c=[o.math.sin,o.math.cos,o.math.tan,"PI","(",")",o.math.P,o.math.C,o.math.asin,o.math.acos,o.math.atan,"7","8","9",Math.floor,o.math.cosh,o.math.acosh,Math.log,Math.pow,Math.sqrt,"4","5","6",o.math.div,o.math.fact,o.math.tanh,o.math.atanh,o.math.mod,"1","2","3",o.math.mul,o.math.sinh,o.math.asinh,"E",o.math.log,"0",".",o.math.add,o.math.sub,",",o.math.sigma,"n",o.math.Pi,Math.pow],l={0:11,1:0,2:3,3:0,4:0,5:0,6:0,7:11,8:11,9:1,10:10,11:0,12:11,13:0},f=[0,0,0,3,4,5,10,10,0,0,0,1,1,1,0,0,0,0,10,0,1,1,1,2,7,0,0,2,1,1,1,2,0,0,3,0,1,6,9,9,11,12,13,12,8],h={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,9:!0,12:!0,13:!0},p={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0},d={0:!0,3:!0,4:!0,8:!0,12:!0,13:!0},v={},m={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,12:!0,13:!0},b={1:!0},g=[[],["1","2","3","7","8","9","4","5","6","+","-","*","/","(",")","^","!","P","C","e","0",".",",","n"],["pi","ln","Pi"],["sin","cos","tan","Del","int","Mod","log","pow"],["asin","acos","atan","cosh","root","tanh","sinh"],["acosh","atanh","asinh","Sigma"]];o.addToken=function(e){for(i=0;i<e.length;i++){x=e[i].token.length;var t=-1;if(x<g.length)for(y=0;y<g[x].length;y++)if(e[i].token===g[x][y]){t=u.indexOf(g[x][y]);break}-1===t?(u.push(e[i].token),f.push(e[i].type),g.length>e[i].token.length||(g[e[i].token.length]=[]),g[e[i].token.length].push(e[i].token),c.push(e[i].value),s.push(e[i].show)):(u[t]=e[i].token,f[t]=e[i].type,c[t]=e[i].value,s[t]=e[i].show)}},o.lex=function(e,t){"use strict";var n,i,y,x,_=[{type:4,value:"(",show:"(",pre:0}],w=[],O=e,A=0,k=h,T=0,M=v,E="";void 0!==t&&o.addToken(t);var S={};for(i=0;O.length>i;i++)if(" "!=O[i]){n="";e:for(y=O.length-i>g.length-2?g.length-1:O.length-i;y>0;y--)for(x=0;g[y].length>x;x++)if(a(O,g[y][x],i,y)){n=g[y][x];break e}if(i+=n.length-1,""===n)throw new o.exception("Can't understand after "+O.slice(i));var P=u.indexOf(n),j=n,C=f[P],N=c[P],I=l[C],R=s[P],L=_[_.length-1];for(D=w.length;D--;)if(0===w[D]&&-1!==[0,2,3,5,9,11,12,13].indexOf(C)){if(!0!==k[C])throw new o.exception(n+" is not allowed after "+E);_.push({value:")",type:5,pre:0,show:")"}),k=p,M=m,r(w,-1).pop()}if(!0!==k[C])throw new o.exception(n+" is not allowed after "+E);if(!0===M[C]&&(C=2,N=o.math.mul,R="×",I=3,i-=n.length),S={value:N,type:C,pre:I,show:R},0===C)k=h,M=v,r(w,2).push(2),_.push(S),_.push({value:"(",type:4,pre:0,show:"("});else if(1===C)1===L.type?(L.value+=N,r(w,1)):_.push(S),k=p,M=d;else if(2===C)k=h,M=v,r(w,2),_.push(S);else if(3===C)_.push(S),k=p,M=m;else if(4===C)A+=w.length,w=[],T++,k=h,M=v,_.push(S);else if(5===C){if(!T)throw new o.exception("Closing parenthesis are more than opening one, wait What!!!");for(;A--;)_.push({value:")",type:5,pre:0,show:")"});A=0,T--,k=p,M=m,_.push(S)}else if(6===C){if(L.hasDec)throw new o.exception("Two decimals are not allowed in one number");1!==L.type&&(L={value:0,type:1,pre:0},_.push(L),r(w,-1)),k=b,r(w,1),M=v,L.value+=N,L.hasDec=!0}else 7===C&&(k=p,M=m,r(w,1),_.push(S));8===C?(k=h,M=v,r(w,4).push(4),_.push(S),_.push({value:"(",type:4,pre:0,show:"("})):9===C?(9===L.type?L.value===o.math.add?(L.value=N,L.show=R,r(w,1)):L.value===o.math.sub&&"-"===R&&(L.value=o.math.add,L.show="+",r(w,1)):5!==L.type&&7!==L.type&&1!==L.type&&3!==L.type&&13!==L.type?"-"===j&&(k=h,M=v,r(w,2).push(2),_.push({value:o.math.changeSign,type:0,pre:21,show:"-"}),_.push({value:"(",type:4,pre:0,show:"("})):(_.push(S),r(w,2)),k=h,M=v):10===C?(k=h,M=v,r(w,2),_.push(S)):11===C?(k=h,M=v,_.push(S)):12===C?(k=h,M=v,r(w,6).push(6),_.push(S),_.push({value:"(",type:4,pre:0})):13===C&&(k=p,M=m,_.push(S)),r(w,-1),E=n}for(var D=w.length;D--;)0===w[D]&&(_.push({value:")",show:")",type:5,pre:3}),r(w,-1).pop());if(!0!==k[5])throw new o.exception("complete the expression");for(;T--;)_.push({value:")",show:")",type:5,pre:3});return _.push({type:5,value:")",show:")",pre:0}),new o(_)},e.exports=o},function(e,t){var n=function(e){this.value=e};n.math={isDegree:!0,acos:function(e){return n.math.isDegree?180/Math.PI*Math.acos(e):Math.acos(e)},add:function(e,t){return e+t},asin:function(e){return n.math.isDegree?180/Math.PI*Math.asin(e):Math.asin(e)},atan:function(e){return n.math.isDegree?180/Math.PI*Math.atan(e):Math.atan(e)},acosh:function(e){return Math.log(e+Math.sqrt(e*e-1))},asinh:function(e){return Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){return Math.log((1+e)/(1-e))},C:function(e,t){var r=1,a=e-t,i=t;a>i&&(i=a,a=t);for(var o=i+1;e>=o;o++)r*=o;return r/n.math.fact(a)},changeSign:function(e){return-e},cos:function(e){return n.math.isDegree&&(e=n.math.toRadian(e)),Math.cos(e)},cosh:function(e){return(Math.pow(Math.E,e)+Math.pow(Math.E,-1*e))/2},div:function(e,t){return e/t},fact:function(e){if(e%1!=0)return"NAN";for(var t=1,n=2;e>=n;n++)t*=n;return t},inverse:function(e){return 1/e},log:function(e){return Math.log(e)/Math.log(10)},mod:function(e,t){return e%t},mul:function(e,t){return e*t},P:function(e,t){for(var n=1,r=Math.floor(e)-Math.floor(t)+1;r<=Math.floor(e);r++)n*=r;return n},Pi:function(e,t,n){for(var r=1,a=e;t>=a;a++)r*=+n.postfixEval({n:a});return r},pow10x:function(e){for(var t=1;e--;)t*=10;return t},sigma:function(e,t,n){for(var r=0,a=e;t>=a;a++)r+=+n.postfixEval({n:a});return r},sin:function(e){return n.math.isDegree&&(e=n.math.toRadian(e)),Math.sin(e)},sinh:function(e){return(Math.pow(Math.E,e)-Math.pow(Math.E,-1*e))/2},sub:function(e,t){return e-t},tan:function(e){return n.math.isDegree&&(e=n.math.toRadian(e)),Math.tan(e)},tanh:function(e){return n.sinha(e)/n.cosha(e)},toRadian:function(e){return e*Math.PI/180}},n.exception=function(e){this.message=e},e.exports=n},function(e,t,n){var r=n(394);r.prototype.toPostfix=function(){"use strict";for(var e,t,n,a,i,o=[],u=[{value:"(",type:4,pre:0}],s=this.value,c=1;s.length>c;c++)if(1===s[c].type||3===s[c].type||13===s[c].type)1===s[c].type&&(s[c].value=+s[c].value),o.push(s[c]);else if(4===s[c].type)u.push(s[c]);else if(5===s[c].type)for(;4!==(t=u.pop()).type;)o.push(t);else if(11===s[c].type){for(;4!==(t=u.pop()).type;)o.push(t);u.push(t)}else{e=s[c],a=e.pre,i=u[u.length-1],n=i.pre;var l="Math.pow"==i.value&&"Math.pow"==e.value;if(a>n)u.push(e);else{for(;n>=a&&!l||l&&n>a;)t=u.pop(),i=u[u.length-1],o.push(t),n=i.pre,l="Math.pow"==e.value&&"Math.pow"==i.value;u.push(e)}}return new r(o)},e.exports=r},function(e,t,n){var r=n(396);r.prototype.postfixEval=function(e){"use strict";e=e||{},e.PI=Math.PI,e.E=Math.E;for(var t,n,a,i=[],o=this.value,u=void 0!==e.n,s=0;o.length>s;s++)1===o[s].type?i.push({value:o[s].value,type:1}):3===o[s].type?i.push({value:e[o[s].value],type:1}):0===o[s].type?void 0===i[i.length-1].type?i[i.length-1].value.push(o[s]):i[i.length-1].value=o[s].value(i[i.length-1].value):7===o[s].type?void 0===i[i.length-1].type?i[i.length-1].value.push(o[s]):i[i.length-1].value=o[s].value(i[i.length-1].value):8===o[s].type?(t=i.pop(),n=i.pop(),i.push({type:1,value:o[s].value(n.value,t.value)})):10===o[s].type?(t=i.pop(),n=i.pop(),void 0===n.type?(n.value=n.concat(t),n.value.push(o[s]),i.push(n)):void 0===t.type?(t.unshift(n),t.push(o[s]),i.push(t)):i.push({type:1,value:o[s].value(n.value,t.value)})):2===o[s].type||9===o[s].type?(t=i.pop(),n=i.pop(),void 0===n.type?(console.log(n),n=n.concat(t),n.push(o[s]),i.push(n)):void 0===t.type?(t.unshift(n),t.push(o[s]),i.push(t)):i.push({type:1,value:o[s].value(n.value,t.value)})):12===o[s].type?(t=i.pop(),void 0!==t.type&&(t=[t]),n=i.pop(),a=i.pop(),i.push({type:1,value:o[s].value(a.value,n.value,new r(t))})):13===o[s].type&&i.push(u?{value:e[o[s].value],type:3}:[o[s]]);if(i.length>1)throw new r.exception("Uncaught Syntax error");return i[0].value>1e15?"Infinity":parseFloat(i[0].value.toFixed(15))},r.eval=function(e,t,n){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0===n?void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t):this.lex(e,t).toPostfix().postfixEval(n)},e.exports=r},function(e,t,n){(function(t){(function(){var n,r,a,i,o,u;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:void 0!==t&&null!==t&&t.hrtime?(e.exports=function(){return(n()-o)/1e6},r=t.hrtime,n=function(){var e;return e=r(),1e9*e[0]+e[1]},i=n(),u=1e9*t.uptime(),o=i-u):Date.now?(e.exports=function(){return Date.now()-a},a=Date.now()):(e.exports=function(){return(new Date).getTime()-a},a=(new Date).getTime())}).call(this)}).call(t,n(399))},function(e,t){function n(){throw Error("setTimeout has not been defined")}function r(){throw Error("clearTimeout has not been defined")}function a(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function o(){y&&p&&(y=!1,p.length?d=p.concat(d):v=-1,d.length&&u())}function u(){if(!y){var e=a(o);y=!0;for(var t=d.length;t;){for(p=d,d=[];++v<t;)p&&p[v].run();v=-1,t=d.length}p=null,y=!1,i(e)}}function s(e,t){this.fun=e,this.array=t}function c(){}var l,f,h=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var p,d=[],y=!1,v=-1;h.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;arguments.length>n;n++)t[n-1]=arguments[n];d.push(new s(e,t)),1!==d.length||y||a(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=c,h.addListener=c,h.once=c,h.off=c,h.removeListener=c,h.removeAllListeners=c,h.emit=c,h.prependListener=c,h.prependOnceListener=c,h.listeners=function(e){return[]},h.binding=function(e){throw Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(e){throw Error("process.chdir is not supported")},h.umask=function(){return 0}},function(e,t,n){"use strict";function r(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(!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 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)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;arguments.length>t;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){var n=[],r=!0,a=!1,i=void 0;try{for(var o,u=e[Symbol.iterator]();!(r=(o=u.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(a)throw i}}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")}}(),c=function(){function e(e,t){for(var n=0;t.length>n;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),f=r(l),h=n(0),p=r(h),d=n(401),y=function(e){function t(){a(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.state={expandChildHeight:0,expandChildWidth:0,expandScrollLeft:0,expandScrollTop:0,shrinkScrollTop:0,shrinkScrollLeft:0,lastWidth:0,lastHeight:0},e.reset=e.reset.bind(e),e.handleScroll=e.handleScroll.bind(e),e}return o(t,e),c(t,[{key:"componentWillMount",value:function(){this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.containerSize(),t=s(e,2);this.reset(t[0],t[1])}},{key:"shouldComponentUpdate",value:function(e){return this.props!==e}},{key:"componentDidUpdate",value:function(){this.expand.scrollLeft=this.expand.scrollWidth,this.expand.scrollTop=this.expand.scrollHeight,this.shrink.scrollLeft=this.shrink.scrollWidth,this.shrink.scrollTop=this.shrink.scrollHeight}},{key:"containerSize",value:function(){return[this.props.handleWidth&&this.container.parentElement.offsetWidth,this.props.handleHeight&&this.container.parentElement.offsetHeight]}},{key:"reset",value:function(e,t){if("undefined"!=typeof window){var n=this.container.parentElement,r="static";n.currentStyle?r=n.currentStyle.position:window.getComputedStyle&&(r=window.getComputedStyle(n).position),"static"===r&&(n.style.position="relative"),this.setState({expandChildHeight:this.expand.offsetHeight+10,expandChildWidth:this.expand.offsetWidth+10,lastWidth:e,lastHeight:t})}}},{key:"handleScroll",value:function(){if("undefined"!=typeof window){var e=this.state,t=this.containerSize(),n=s(t,2),r=n[0],a=n[1];r===e.lastWidth&&a===e.lastHeight||this.props.onResize(r,a),this.reset(r,a)}}},{key:"render",value:function(){var e=this,t=this.state,n=u({},d.expandChildStyle,{width:t.expandChildWidth,height:t.expandChildHeight});return f.default.createElement("div",{style:d.parentStyle,ref:function(t){e.container=t}},f.default.createElement("div",{style:d.parentStyle,onScroll:this.handleScroll,ref:function(t){e.expand=t}},f.default.createElement("div",{style:n})),f.default.createElement("div",{style:d.parentStyle,onScroll:this.handleScroll,ref:function(t){e.shrink=t}},f.default.createElement("div",{style:d.shrinkChildStyle})))}}]),t}(l.Component);t.default=y,y.propTypes={handleWidth:p.default.bool,handleHeight:p.default.bool,onResize:p.default.func},y.defaultProps={handleWidth:!1,handleHeight:!1,onResize:function(e){return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.parentStyle={position:"absolute",left:0,top:0,right:0,bottom:0,overflow:"scroll",zIndex:-1,visibility:"hidden"},t.shrinkChildStyle={position:"absolute",left:0,top:0,width:"200%",height:"200%"},t.expandChildStyle={position:"absolute",left:0,top:0,width:"100%",height:"100%"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(400);t.default=function(e){return e&&e.__esModule?e:{default:e}}(r).default},function(e,t,n){"use strict";function r(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(!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 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)}Object.defineProperty(t,"__esModule",{value:!0});var u,s,c=function(){function e(e,t){for(var n=0;t.length>n;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),f=r(l),h=n(414),p=n(0),d=r(p),y=n(404),v=r(y);t.default=(s=u=function(e){function t(){return a(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),c(t,[{key:"wrapChild",value:function(e){var t=this.props;return f.default.createElement(v.default,{appear:t.appear,leave:t.leave,enter:t.enter},e)}},{key:"render",value:function(){var e=this.props,t=e.component,n=e.children;return f.default.createElement(h.TransitionGroup,{component:t,childFactory:this.wrapChild.bind(this)},n)}}]),t}(l.Component),u.propTypes={appear:d.default.object,leave:d.default.object,enter:d.default.object,children:d.default.oneOfType([d.default.array,d.default.element]),component:d.default.any},u.defaultProps={component:"span"},s)},function(e,t,n){"use strict";function r(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(!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 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)}Object.defineProperty(t,"__esModule",{value:!0});var u,s,c=Object.assign||function(e){for(var t=1;arguments.length>t;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;t.length>n;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}}(),f=n(1),h=r(f),p=n(0),d=r(p),y=n(181),v=r(y);t.default=(s=u=function(e){function t(){var e,n,r,o;a(this,t);for(var u=arguments.length,s=Array(u),c=0;u>c;c++)s[c]=arguments[c];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r.state={isActive:!1},o=n,i(r,o)}return o(t,e),l(t,[{key:"handleStyleActive",value:function(e,t){if(e){this.setState(c({},e,{onAnimationEnd:e.onAnimationEnd?function(){e.onAnimationEnd(),t()}:t,isActive:!0}))}else t()}},{key:"componentWillAppear",value:function(e){this.handleStyleActive(this.props.appear,e)}},{key:"componentWillEnter",value:function(e){this.handleStyleActive(this.props.enter,e)}},{key:"componentWillLeave",value:function(e){this.handleStyleActive(this.props.leave,e)}},{key:"render",value:function(){return h.default.createElement(v.default,this.state,f.Children.only(this.props.children))}}]),t}(f.Component),u.propTypes={appear:d.default.object,leave:d.default.object,enter:d.default.object,children:d.default.element},s)},function(e,t,n){"use strict";function r(e){return Array.isArray(e)?e:Array.from(e)}function a(){var e={},t=function(){return null},n=!1,a=function a(o){if(!n){if(Array.isArray(o)){if(!o.length)return;var s=o,c=r(s),l=c[0],f=c.slice(1);return"number"==typeof l?void(0,u.default)(a.bind(null,f),l):(a(l),void(0,u.default)(a.bind(null,f)))}"object"===(void 0===o?"undefined":i(o))&&(e=o,t(e)),"function"==typeof o&&o()}};return{stop:function(){n=!0},start:function(e){n=!1,a(e)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}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&&e!==Symbol.prototype?"symbol":typeof e};t.default=a;var o=n(408),u=function(e){return e&&e.__esModule?e:{default:e}}(o)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(e===t)return!0;if("object"!==(void 0===e?"undefined":d(e))||null===e||"object"!==(void 0===t?"undefined":d(t))||null===t)return!1;var n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(var r=hasOwnProperty.bind(t),a=0;n.length>a;a++){var i=n[a];if(e[i]!==t[i])if((0,p.default)(e[i])){if(!(0,p.default)(t[i])||e[i].length!==t[i].length)return!1;if(!(0,f.default)(e[i],t[i]))return!1}else if((0,c.default)(e[i])){if(!(0,c.default)(t[i])||!(0,f.default)(e[i],t[i]))return!1}else if(!r(n[a])||e[n[a]]!==t[n[a]])return!1}return!0}function i(e,t,n){return!a(e.props,t)||!a(e.state,n)}function o(e,t){return i(this,e,t)}function u(e){e.prototype.shouldComponentUpdate=o}Object.defineProperty(t,"__esModule",{value:!0}),t.shallowEqual=void 0;var s=n(173),c=r(s),l=n(17),f=r(l),h=n(11),p=r(h),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.shallowEqual=a,t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;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}Object.defineProperty(t,"__esModule",{value:!0});var o=n(376),u=r(o),s=Object.assign||function(e){for(var t=1;arguments.length>t;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){var n=[],r=!0,a=!1,i=void 0;try{for(var o,u=e[Symbol.iterator]();!(r=(o=u.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(a)throw i}}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")}}(),l=n(180),f=r(l),h=n(64),p=function(e,t,n){return e+(t-e)*n},d=function(e){return e.from!==e.to},y=function e(t,n,r){var a=(0,h.mapObject)(function(e,n){if(d(n)){var r=t(n.from,n.to,n.velocity),a=c(r,2);return s({},n,{from:a[0],velocity:a[1]})}return n},n);return 1>r?(0,h.mapObject)(function(e,t){return d(t)?s({},t,{velocity:p(t.velocity,a[e].velocity,r),from:p(t.from,a[e].from,r)}):t},n):e(t,a,r-1)};t.default=function(e,t,n,r,o){var c=(0,h.getIntersectionKeys)(e,t),v=c.reduce(function(n,r){return s({},n,i({},r,[e[r],t[r]]))},{}),m=c.reduce(function(n,r){return s({},n,i({},r,{from:e[r],velocity:0,to:t[r]}))},{}),b=-1,g=void 0,x=void 0,_=function(){return null},w=function(){return(0,h.mapObject)(function(e,t){return t.from},m)},O=function(){return!(0,u.default)(m,d).length},A=function(r){g||(g=r),m=y(n,m,(r-g)/n.dt),o(s({},e,t,w())),g=r,O()||(b=(0,f.default)(_))},k=function(i){x||(x=i);var u=(i-x)/r,c=(0,h.mapObject)(function(e,t){return p.apply(void 0,a(t).concat([n(u)]))},v);if(o(s({},e,t,c)),1>u)b=(0,f.default)(_);else{var l=(0,h.mapObject)(function(e,t){return p.apply(void 0,a(t).concat([n(1)]))},v);o(s({},e,t,l))}};return _=n.isStepper?A:k,function(){return(0,f.default)(_),function(){(0,l.cancel)(b)}}}},function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;(0,i.default)(function r(a){0>n&&(n=a),a-n>t?(e(a),n=-1):(0,i.default)(r)})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var a=n(180),i=function(e){return e&&e.__esModule?e:{default:e}}(a)},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function a(e){var t=f(e,2),n=t[0],r=t[1],a=n,i=r;return n>r&&(a=r,i=n),[a,i]}function i(e,t,n){if(0>=e)return 0;var r=d.default.getDigitCount(e),a=e/Math.pow(10,r),i=1!==r?d.default.multiply(Math.ceil(a/.05)+n,.05):d.default.multiply(Math.ceil(a/.1)+n,.1),o=d.default.multiply(i,Math.pow(10,r));return t?o:Math.ceil(o)}function o(e,t,n){var r=d.default.isFloat(e),a=1,i=e;if(r&&n){var o=Math.abs(e);1>o?(a=Math.pow(10,d.default.getDigitCount(e)-1),i=d.default.multiply(Math.floor(e/a),a)):o>1&&(i=Math.floor(e))}else 0===e?i=Math.floor((t-1)/2):n||(i=Math.floor(e));var u=Math.floor((t-1)/2);return(0,h.compose)((0,h.map)(function(e){return d.default.sum(i,d.default.multiply(e-u,a))}),h.range)(0,t)}function u(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=i((t-e)/(n-1),r,a),s=void 0;e>0||0>t?(s=d.default.divide(d.default.sum(e,t),2),s=d.default.minus(s,d.default.modulo(s,o))):s=0;var c=Math.ceil((s-e)/o),l=Math.ceil((t-s)/o),f=c+l+1;return f>n?u(e,t,n,r,a+1):(n>f&&(l=t>0?l+(n-f):l,c=t>0?c:c+(n-f)),{step:o,tickMin:d.default.minus(s,d.default.multiply(c,o)),tickMax:d.default.sum(s,d.default.multiply(l,o))})}function s(e){var t=f(e,2),n=t[0],r=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,s=2>=arguments.length||void 0===arguments[2]||arguments[2],c=Math.max(i,2),l=a([n,r]),p=f(l,2),y=p[0],v=p[1];if(y===v)return o(y,i,s);var m=u(y,v,c,s),b=m.step,g=m.tickMin,x=m.tickMax,_=d.default.rangeStep(g,x+.1*b,b);return n>r?(0,h.reverse)(_):_}function c(e){var t=f(e,2),n=t[0],r=t[1],u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,s=2>=arguments.length||void 0===arguments[2]||arguments[2],c=Math.max(u,2),l=a([n,r]),p=f(l,2),d=p[0],y=p[1];if(d===y)return o(d,u,s);var v=i((y-d)/(c-1),s,0),m=(0,h.compose)((0,h.map)(function(e){return d+e*v}),h.range),b=m(0,c).filter(function(e){return e>=d&&y>=e});return n>r?(0,h.reverse)(b):b}function l(e,t){var n=f(e,2),o=n[0],u=n[1],s=2>=arguments.length||void 0===arguments[2]||arguments[2],c=a([o,u]),l=f(c,2),p=l[0],y=l[1];if(p===y)return[p];var v=Math.max(t,2),m=i((y-p)/(v-1),s,0),b=[].concat(r(d.default.rangeStep(p,y-.99*m,m)),[y]);return o>u?(0,h.reverse)(b):b}Object.defineProperty(t,"__esModule",{value:!0}),t.getTickValuesFixedDomain=t.getTickValues=t.getNiceTickValues=void 0;var f=function(){function e(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,u=e[Symbol.iterator]();!(r=(o=u.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(a)throw i}}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")}}(),h=n(183),p=n(411),d=function(e){return e&&e.__esModule?e:{default:e}}(p);t.getNiceTickValues=(0,h.memoize)(s),t.getTickValues=(0,h.memoize)(c),t.getTickValuesFixedDomain=(0,h.memoize)(l)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(409);Object.defineProperty(t,"getTickValues",{enumerable:!0,get:function(){return r.getTickValues}}),Object.defineProperty(t,"getNiceTickValues",{enumerable:!0,get:function(){return r.getNiceTickValues}}),Object.defineProperty(t,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return r.getTickValuesFixedDomain}})},function(e,t,n){"use strict";function r(e){return/^([+-]?)\d*\.\d+$/.test(e)}function a(e){var t=Math.abs(e);return 0===e?1:Math.floor(Math.log(t)/Math.log(10))+1}function i(e){var t=e?""+e:"",n=t.split(".");return n.length>1?n[1].length:0}function o(e,t){var n=parseInt((""+e).replace(".",""),10),r=parseInt((""+t).replace(".",""),10),a=i(e)+i(t);return n*r/Math.pow(10,a)}function u(e,t){var n=Math.max(i(e),i(t));return n=Math.pow(10,n),(o(e,n)+o(t,n))/n}function s(e,t){return u(e,-t)}function c(e,t){var n=i(e),r=i(t);return parseInt((""+e).replace(".",""),10)/parseInt((""+t).replace(".",""),10)*Math.pow(10,r-n)}function l(e,t){var n=Math.abs(t);return t>0?s(e,o(n,Math.floor(e/n))):e}function f(e,t,n){for(var r=e,a=[];t>r;)a.push(r),r=u(r,n);return a}Object.defineProperty(t,"__esModule",{value:!0});var h=n(183);t.default={rangeStep:f,isFloat:r,getDigitCount:a,getDecimalDigitCount:i,sum:u,minus:s,multiply:o,divide:c,modulo:l,interpolateNumber:(0,h.curry)(function(e,t,n){var r=+e;return r+n*(+t-r)}),uninterpolateNumber:(0,h.curry)(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),uninterpolateTruncation:(0,h.curry)(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})}},function(e,t,n){function r(e,t){function n(e,n,o){if(i++>c)throw i=0,Error("Call stack overflow for "+o);if(""===e)throw Error(n+"(): '"+o+"' must contain a non-whitespace string");e=r(e,o);var u=a(e);if(u.length>1||e.indexOf("var(")>-1)return n+"("+e+")";var l=u[0]||"";"%"===l&&(e=e.replace(/\b[0-9\.]+%/g,function(e){return.01*parseFloat(e.slice(0,-1))}));var f,h=e.replace(RegExp(l,"gi"),"");try{f=s.eval(h)}catch(t){return n+"("+e+")"}return"%"===l&&(f*=100),(n.length||"%"===l)&&(f=Math.round(f*t)/t),f+=l}function r(e,t){e=e.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var r,a="",i=e;r=l.exec(i);){r[0].index>0&&(a+=i.substring(0,r[0].index));var u=o("(",")",i.substring([0].index));if(""===u.body)throw Error("'"+e+"' must contain a non-whitespace string");a+=u.pre+n(u.body,"",t),i=u.post}return a+i}return i=0,t=Math.pow(10,void 0===t?5:t),e=e.replace(/\n+/g," "),u(e,/((?:\-[a-z]+\-)?calc)\(/,n)}function a(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,a=r.exec(e);a;)a&&a[1]&&(-1===n.indexOf(a[1].toLowerCase())&&(t.push(a[1]),n.push(a[1].toLowerCase())),a=r.exec(e));return t}var i,o=n(109),u=n(413),s=n(393),c=100,l=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=r},function(e,t,n){function r(e,t,n){var r=e;return a(e,t).reduce(function(e,a){return e.replace(a.functionIdentifier+"("+a.matches.body+")",i(a.matches.body,a.functionIdentifier,n,r,t))},e)}function a(e,t){var n=[],r="string"==typeof t?RegExp("\\b("+t+")\\("):t;do{var a=r.exec(e);if(!a)return n;if(void 0===a[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+t);var i=a[1],u=a.index,s=o("(",")",e.substring(u));if(!s||s.start!==a[0].length-1)throw new SyntaxError(i+"(): missing closing ')' in the value '"+e+"'");n.push({matches:s,functionIdentifier:i}),e=s.post}while(r.test(e));return n}function i(e,t,n,a,i){return n(r(e,i,n),t,a)}var o=n(109);e.exports=r},function(e,t){e.exports=n},function(e,t,n){n(65),e.exports=n(65)}])});
|
ajax/libs/react-swipe/1.0.0/swipe.min.js
|
ahocevar/cdnjs
|
var React=require("react"),Swipe=require("./vendor/swipe"),styles={container:{overflow:"hidden",visibility:"hidden",position:"relative"},wrapper:{overflow:"hidden",position:"relative"},child:{"float":"left",width:"100%",position:"relative"}};module.exports=React.createClass({displayName:"Swipe",propTypes:{startSlide:React.PropTypes.number,speed:React.PropTypes.number,auto:React.PropTypes.number,continuous:React.PropTypes.bool,disableScroll:React.PropTypes.bool,stopPropagation:React.PropTypes.bool,callback:React.PropTypes.func,transitionEnd:React.PropTypes.func},componentDidMount:function(){this.swipe=Swipe(this.getDOMNode(),this.props)},componentWillUnmount:function(){this.swipe.kill(),delete this.swipe},render:function(){var e=React.DOM.div(this.props,React.DOM.div({style:styles.wrapper},React.Children.map(this.props.children,function(e){return React.addons.cloneWithProps(e,{style:styles.child})})));return React.addons.cloneWithProps(e,{style:styles.container})}});
|
ajax/libs/yui/3.2.0/event-custom/event-custom-base-debug.js
|
fredericksilva/cdnjs
|
YUI.add('event-custom-base', function(Y) {
/**
* 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
*/
(function() {
/**
* Allows for the insertion of methods that are executed before or after
* a specified method
* @class Do
* @static
*/
var BEFORE = 0,
AFTER = 1;
Y.Do = {
/**
* Cache of objects touched by the utility
* @property objs
* @static
*/
objs: {},
/**
* Execute the supplied method before the specified function
* @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) {
// Y.log('Do before: ' + sFn, 'info', 'event');
var f = fn, a;
if (c) {
a = [fn, c].concat(Y.Array(arguments, 4, true));
f = Y.rbind.apply(Y, a);
}
return this._inject(BEFORE, f, obj, sFn);
},
/**
* Execute the supplied method after the specified function
* @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(AFTER, f, obj, sFn);
},
/**
* Execute the supplied method after the specified function
* @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 (! this.objs[id]) {
// create a map entry for the obj if it doesn't exist
this.objs[id] = {};
}
o = this.objs[id];
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
*/
detach: function(handle) {
if (handle.detach) {
handle.detach();
}
},
_unload: function(e, me) {
}
};
//////////////////////////////////////////////////////////////////////////
/**
* 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
*/
Y.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
*/
Y.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
*/
Y.Do.Method.prototype._delete = function (sid) {
// Y.log('Y.Do._delete: ' + sid, 'info', 'Event');
delete this.before[sid];
delete this.after[sid];
};
/**
* Execute the wrapped method
* @method exec
*/
Y.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 Y.Do.Halt:
return ret.retVal;
case Y.Do.AlterArgs:
args = ret.newArgs;
break;
case Y.Do.Prevent:
prevented = true;
break;
default:
}
}
}
}
// execute method
if (!prevented) {
ret = this.method.apply(this.obj, args);
}
// 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 == Y.Do.Halt) {
return newRet.retVal;
// Check for a new return value
} else if (newRet && newRet.constructor == Y.Do.AlterReturn) {
ret = newRet.newRetVal;
}
}
}
return ret;
};
//////////////////////////////////////////////////////////////////////////
/**
* Return an AlterArgs object when you want to change the arguments that
* were passed into the function. An example would be a service that scrubs
* out illegal characters prior to executing the core business logic.
* @class Do.AlterArgs
*/
Y.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
* @class Do.AlterReturn
*/
Y.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.
* @class Do.Halt
*/
Y.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
* @class Do.Prevent
*/
Y.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
* @deprecated use Y.Do.Halt or Y.Do.Prevent
*/
Y.Do.Error = Y.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
*/
/**
* Return value from all subscribe operations
* @class EventHandle
* @constructor
* @param evt {CustomEvent} the custom event
* @param sub {Subscriber} the subscriber
*/
// var onsubscribeType = "_event:onsub",
var AFTER = 'after',
CONFIGS = [
'broadcast',
'monitored',
'bubbles',
'context',
'contextFn',
'currentTarget',
'defaultFn',
'defaultTargetOnly',
'details',
'emitFacade',
'fireOnce',
'async',
'host',
'preventable',
'preventedFn',
'queuable',
'silent',
'stoppedFn',
'target',
'type'
],
YUI3_SIGNATURE = 9,
YUI_LOG = 'yui:log';
Y.EventHandle = function(evt, sub) {
/**
* The custom event
* @type CustomEvent
*/
this.evt = evt;
/**
* The subscriber object
* @type Subscriber
*/
this.sub = sub;
};
Y.EventHandle.prototype = {
each: function(f) {
f(this);
if (Y.Lang.isArray(this.evt)) {
Y.Array.each(this.evt, function(h) {
h.each(f);
});
}
},
/**
* Detaches this subscriber
* @method detach
*/
detach: function() {
var evt = this.evt, detached = 0, i;
if (evt) {
// Y.log('EventHandle.detach: ' + this.sub, 'info', 'Event');
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);
}
};
/**
* 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 o configuration object
* @class CustomEvent
* @constructor
*/
Y.CustomEvent = function(type, o) {
// if (arguments.length > 2) {
// this.log('CustomEvent context and silent are now in the config', 'warn', 'Event');
// }
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{}
*/
this.subscribers = {};
/**
* 'After' subscribers
* @property afters
* @type Subscriber{}
*/
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);
// this.log("Creating " + this.type);
};
Y.CustomEvent.prototype = {
hasSubs: function(when) {
var s = this.subCount, a = this.afterCount, sib = this.sibling;
if (sib) {
s += sib.subCount;
a += sib.afterCount;
}
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 = Y.Array(arguments, 0, true);
args[0] = type;
return this.host.on.apply(this.host, args);
},
/**
* Get all of the subscribers to this event and any sibling event
* @return {Array} first item is the on subscribers, second the after
*/
getSubs: function() {
var s = Y.merge(this.subscribers), a = Y.merge(this.afters), sib = this.sibling;
if (sib) {
Y.mix(s, sib.subscribers);
Y.mix(a, sib.afters);
}
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) {
if (o) {
Y.mix(this, o, force, CONFIGS);
}
},
_on: function(fn, context, args, when) {
if (!fn) {
this.log("Invalid callback for CE: " + this.type);
}
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[s.id] = s;
this.afterCount++;
} else {
this.subscribers[s.id] = s;
this.subCount++;
}
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) {
Y.log('ce.subscribe deprecated, use "on"', 'warn', 'deprecated');
var a = (arguments.length > 2) ? Y.Array(arguments, 2, true): null;
return this._on(fn, context, a, true);
},
/**
* Listen for this event
* @method on
* @param {Function} fn The function to execute
* @param context {object} optional execution context.
* @param arg* {mixed} 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) ? Y.Array(arguments, 2, true): null;
if (this.host) {
this.host._monitor('attach', this.type, {
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 context {object} optional execution context.
* @param arg* {mixed} 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) ? Y.Array(arguments, 2, true): 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 = Y.merge(this.subscribers, this.afters);
for (i in subs) {
if (subs.hasOwnProperty(i)) {
s = subs[i];
if (s && (!fn || fn === s.fn)) {
this._delete(s);
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 s {Subscriber} the subscriber
* @param args {Array} the arguments array to apply to the listener
* @private
*/
_notify: function(s, args, ef) {
this.log(this.type + "->" + "sub: " + s.id);
var ret;
ret = s.notify(args, this);
if (false === ret || this.stopped > 1) {
this.log(this.type + " cancelled by subscriber");
return false;
}
return true;
},
/**
* Logger abstraction to centralize the application of the silent flag
* @method log
* @param msg {string} message to log
* @param cat {string} log category
*/
log: function(msg, cat) {
if (!this.silent) {
Y.log(this.id + ': ' + msg, cat || "info", "event");
}
},
/**
* 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) {
this.log('fireOnce event: ' + this.type + ' already fired');
return true;
} else {
var args = Y.Array(arguments, 0, true);
// this doesn't happen if the event isn't published
// this.host._monitor('fire', this.type, args);
this.fired = true;
this.firedWith = args;
if (this.emitFacade) {
return this.fireComplex(args);
} else {
return this.fireSimple(args);
}
}
},
fireSimple: function(args) {
this.stopped = 0;
this.prevented = 0;
if (this.hasSubs()) {
// this._procSubs(Y.merge(this.subscribers, this.afters), args);
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) {
Y.log('Missing event-custom-complex needed to emit a facade for: ' + this.type);
args[0] = args[0] || {};
return this.fireSimple(args);
},
_procSubs: function(subs, args, ef) {
var s, i;
for (i in subs) {
if (subs.hasOwnProperty(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;
},
_broadcast: function(args) {
if (!this.stopped && this.broadcast) {
var a = Y.Array(args);
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();
},
/**
* @method _delete
* @param subscriber object
* @private
*/
_delete: function(s) {
if (s) {
if (this.subscribers[s.id]) {
delete this.subscribers[s.id];
this.subCount--;
}
if (this.afters[s.id]) {
delete this.afters[s.id];
this.afterCount--;
}
}
if (this.host) {
this.host._monitor('detach', this.type, {
ce: this,
sub: s
});
}
if (s) {
delete s.fn;
delete s.context;
}
}
};
/////////////////////////////////////////////////////////////////////
/**
* 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) {
/**
* 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;
/**
* 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 = {
_notify: function(c, args, ce) {
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.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);
}
}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
* @submodule event-custom-base
*/
(function() {
/**
* 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
* @config chain {boolean} if true, on/after/detach return the host to allow
* chaining, otherwise they return an EventHandle (default false)
*/
var L = Y.Lang,
PREFIX_DELIMITER = ':',
CATEGORY_DELIMITER = '|',
AFTER_PREFIX = '~AFTER~',
YArray = Y.Array,
_wildType = Y.cached(function(type) {
return type.replace(/(.*)(:)(.*)/, "*$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 || !L.isString(type) || 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);
// Y.log(t);
}
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) {
// Y.log('EventTarget constructor executed: ' + this._yuid);
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 = {
/**
* 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 type {string} The type of the event
* @param fn {Function} The callback
* @param context {object} optional execution context.
* @param arg* {mixed} 0..n additional arguments to supply to the subscriber
* @return the event target or a detach handle per 'chain' config
*/
once: function() {
var handle = this.on.apply(this, arguments);
handle.each(function(hand) {
if (hand.sub) {
hand.sub.once = true;
}
});
return handle;
},
/**
* Subscribe to a custom event hosted by this object
* @method on
* @param type {string} The type of the event
* @param fn {Function} The callback
* @param context {object} optional execution context.
* @param arg* {mixed} 0..n additional arguments to supply to the subscriber
* @return the event target or a detach handle per 'chain' config
*/
on: function(type, fn, context) {
var parts = _parseType(type, this._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 = YArray(arguments, 0, true);
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 (this._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 && (this instanceof Node) && (shorttype in Node.DOM_EVENTS)) {
args = YArray(arguments, 0, true);
args.splice(2, 0, Node.getDOMNode(this));
// Y.log("Node detected, redirecting with these args: " + args);
return Y.on.apply(Y, args);
}
type = parts[1];
if (this instanceof YUI) {
adapt = Y.Env.evt.plugins[type];
args = YArray(arguments, 0, true);
args[0] = shorttype;
if (Node) {
n = args[2];
if (n instanceof Y.NodeList) {
n = Y.NodeList.getDOMNodes(n);
} else if (n instanceof 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) {
Y.log('Using adaptor for ' + shorttype + ', ' + n, 'info', 'event');
handle = adapt.on.apply(Y, args);
} else if ((!type) || domevent) {
handle = Y.Event._attach(args);
}
}
if (!handle) {
ce = this._yuievt.events[type] || this.publish(type);
handle = ce._on(fn, context, (arguments.length > 3) ? YArray(arguments, 3, true) : null, (after) ? 'after' : true);
}
if (detachcategory) {
store[detachcategory] = store[detachcategory] || {};
store[detachcategory][type] = store[detachcategory][type] || [];
store[detachcategory][type].push(handle);
}
return (this._yuievt.chain) ? this : handle;
},
/**
* subscribe to an event
* @method subscribe
* @deprecated use on
*/
subscribe: function() {
Y.log('EventTarget subscribe() is deprecated, use on()', 'warn', 'deprecated');
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 && (this instanceof 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 = YArray(arguments, 0, true);
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 (this instanceof YUI) {
args = YArray(arguments, 0, true);
// 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() {
Y.log('EventTarget unsubscribe() is deprecated, use detach()', 'warn', 'deprecated');
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() {
Y.log('EventTarget unsubscribeAll() is deprecated, use detachAll()', 'warn', 'deprecated');
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;
type = (pre) ? _getType(type, pre) : type;
this._monitor('publish', type, {
args: arguments
});
if (L.isObject(type)) {
ret = {};
Y.each(type, function(v, k) {
ret[k] = this.publish(k, v || opts);
}, this);
return ret;
}
events = edata.events;
ce = events[type];
if (ce) {
// ce.log("publish applying new config to published event: '"+type+"' exists", 'info', 'event');
if (opts) {
ce.applyConfig(opts, true);
}
} else {
defaults = edata.defaults;
// apply defaults
ce = new Y.CustomEvent(type,
(opts) ? Y.merge(defaults, opts) : defaults);
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.
*
* @private
*/
_monitor: function(what, type, o) {
var monitorevt, ce = this.getEvent(type);
if ((this._yuievt.config.monitored && (!ce || ce.monitored)) || (ce && ce.monitored)) {
monitorevt = type + '_' + what;
// Y.log('monitoring: ' + monitorevt);
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),
ce, ret, pre = this._yuievt.config.prefix, ce2,
args = (typeIncluded) ? YArray(arguments, 1, true) : arguments;
t = (pre) ? _getType(t, pre) : t;
this._monitor('fire', t, {
args: args
});
ce = this.getEvent(t, true);
ce2 = this.getSibling(t, ce);
if (ce2 && !ce) {
ce = this.publish(t);
}
// this event has not been published or subscribed to
if (!ce) {
if (this._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 (this._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 type {string} The type of the event
* @param fn {Function} The callback
* @param context {object} optional execution context.
* @param arg* {mixed} 0..n additional arguments to supply to the subscriber
* @return the event target or a detach handle per 'chain' config
*/
after: function(type, fn) {
var a = YArray(arguments, 0, true);
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, false, false, {
bubbles: false
});
ET.call(Y);
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?
})();
/**
* <code>YUI</code>'s <code>on</code> method is a unified interface for subscribing to
* most events exposed by YUI. This includes custom events, DOM events, and
* function events. <code>detach</code> is also provided to remove listeners
* serviced by this function.
*
* The signature that <code>on</code> accepts varies depending on the type
* of event being consumed. Refer to the specific methods that will
* service a specific request for additional information about subscribing
* to that type of event.
*
* <ul>
* <li>Custom events. These events are defined by various
* modules in the library. This type of event is delegated to
* <code>EventTarget</code>'s <code>on</code> method.
* <ul>
* <li>The type of the event</li>
* <li>The callback to execute</li>
* <li>An optional context object</li>
* <li>0..n additional arguments to supply the callback.</li>
* </ul>
* Example:
* <code>Y.on('drag:drophit', function() { // start work });</code>
* </li>
* <li>DOM events. These are moments reported by the browser related
* to browser functionality and user interaction.
* This type of event is delegated to <code>Event</code>'s
* <code>attach</code> method.
* <ul>
* <li>The type of the event</li>
* <li>The callback to execute</li>
* <li>The specification for the Node(s) to attach the listener
* to. This can be a selector, collections, or Node/Element
* refereces.</li>
* <li>An optional context object</li>
* <li>0..n additional arguments to supply the callback.</li>
* </ul>
* Example:
* <code>Y.on('click', function(e) { // something was clicked }, '#someelement');</code>
* </li>
* <li>Function events. These events can be used to react before or after a
* function is executed. This type of event is delegated to <code>Event.Do</code>'s
* <code>before</code> method.
* <ul>
* <li>The callback to execute</li>
* <li>The object that has the function that will be listened for.</li>
* <li>The name of the function to listen for.</li>
* <li>An optional context object</li>
* <li>0..n additional arguments to supply the callback.</li>
* </ul>
* Example <code>Y.on(function(arg1, arg2, etc) { // obj.methodname was executed }, obj 'methodname');</code>
* </li>
* </ul>
*
* <code>on</code> corresponds to the moment before any default behavior of
* the event. <code>after</code> works the same way, but these listeners
* execute after the event's default behavior. <code>before</code> is an
* alias for <code>on</code>.
*
* @method on
* @param type event type (this parameter does not apply for function events)
* @param fn the callback
* @param context optionally change the value of 'this' in the callback
* @param args* 0..n additional arguments to pass to the callback.
* @return the event target or a detach handle per 'chain' config
* @for YUI
*/
/**
* Listen for an event one time. Equivalent to <code>on</code>, except that
* the listener is immediately detached when executed.
* @see on
* @method once
* @param type event type (this parameter does not apply for function events)
* @param fn the callback
* @param context optionally change the value of 'this' in the callback
* @param args* 0..n additional arguments to pass to the callback.
* @return the event target or a detach handle per 'chain' config
* @for YUI
*/
/**
* after() is a unified interface for subscribing to
* most events exposed by YUI. This includes custom events,
* DOM events, and AOP events. This works the same way as
* the on() function, only it operates after any default
* behavior for the event has executed. @see <code>on</code> for more
* information.
* @method after
* @param type event type (this parameter does not apply for function events)
* @param fn the callback
* @param context optionally change the value of 'this' in the callback
* @param args* 0..n additional arguments to pass to the callback.
* @return the event target or a detach handle per 'chain' config
* @for YUI
*/
}, '@VERSION@' ,{requires:['oop']});
|
src/app/modules/Preferences/components/forms/NetworkForm.js
|
toxzilla/app
|
import React from 'react';
import {connect} from 'cerebral-view-react';
import isValidForm from 'cerebral-module-forms/helpers/isValidForm';
import {CHROMIUM_NACL_MIN_PORT, CHROMIUM_NACL_MAX_PORT} from './../../../../../shared/chrome';
import {Button, ButtonGroup, Checkbox, Fieldset, Form, Text, TextField} from './../../../../common/UserInterface';
export default connect({
isUpdatingPreferences: 'store.app.isUpdatingPreferences',
form: 'preferences.networkForm'
}, class NetworkForm extends React.Component {
static displayName = 'NetworkForm'
static defaultProps = {
signals: React.PropTypes.object.isRequired,
isUpdatingPreferences: React.PropTypes.bool.isRequired,
form: React.PropTypes.object.isRequired
}
render() {
const {
isUpdatingPreferences,
form
} = this.props;
const isValid = isValidForm(form);
const isRandomPortsEnabled = !!form.randomPort.value;
const havePortsChanged = (form.startPort.value !== form.startPort.defaultValue ||
form.endPort.value !== form.endPort.defaultValue);
const hasUpdateServerChanged = form.updateServer.value !== form.updateServer.defaultValue;
return (
<Form>
<Checkbox id='useUdp'
name='useUdp'
label={{id: 'useUdp', bundle: 'preferences'}}
hint={{id: 'useUdpHint', bundle: 'preferences'}}
value='1'
checked={!!form.useUdp.value}
onSwitch={this._handleChangeUdp}/>
<Checkbox id='randomPort'
name='randomPort'
label={{id: 'randomPort', bundle: 'preferences'}}
value='1'
checked={isRandomPortsEnabled}
onSwitch={this._handleChangeRandomPort}/>
<Fieldset legend={{id: 'portRange', bundle: 'preferences'}}>
<TextField id='startPort'
name='startPort'
type='number'
label={{id: 'startPort', bundle: 'preferences'}}
hint={{id: 'portRangeHint', bundle: 'preferences'}}
min={CHROMIUM_NACL_MIN_PORT}
max={CHROMIUM_NACL_MAX_PORT}
value={form.startPort.value}
disabled={isRandomPortsEnabled}
onChange={this._handleChangeStartPort}/>
<TextField id='endPort'
name='endPort'
type='number'
label={{id: 'endPort', bundle: 'preferences'}}
min={CHROMIUM_NACL_MIN_PORT}
max={CHROMIUM_NACL_MAX_PORT}
value={form.endPort.value}
disabled={isRandomPortsEnabled}
onChange={this._handleChangeEndPort}/>
<ButtonGroup>
<Button title={{id: 'save'}}
disabled={!isValid || isRandomPortsEnabled || !havePortsChanged || isUpdatingPreferences}
onMouseUp={this._handleSavePortRange}
onKeyboardEnter={this._handleSavePortRange}
onKeyboardPress={this._handleSavePortRange}>
<Text l10n={{id: 'save'}}/>
</Button>
<Button title={{id: 'reset'}}
disabled={isRandomPortsEnabled || !havePortsChanged || isUpdatingPreferences}
onMouseUp={this._handleResetPorts}
onKeyboardEnter={this._handleResetPorts}
onKeyboardPress={this._handleResetPorts}>
<Text l10n={{id: 'reset'}}/>
</Button>
</ButtonGroup>
</Fieldset>
<Fieldset legend={{id: 'bootstrapNodes', bundle: 'preferences'}}>
<TextField id='updateServer'
name='updateServer'
label={{id: 'updateServer', bundle: 'preferences'}}
hint={{id: 'updateServerHint', bundle: 'preferences'}}
value={form.updateServer.value}
onChange={this._handleChangeUpdateServer}/>
<ButtonGroup>
<Button title={{id: 'save'}}
disabled={!isValid || !hasUpdateServerChanged || isUpdatingPreferences}
onMouseUp={this._handleSaveUpdateServer}
onKeyboardEnter={this._handleSaveUpdateServer}
onKeyboardPress={this._handleSaveUpdateServer}>
<Text l10n={{id: 'save'}}/>
</Button>
<Button title={{id: 'reset'}}
disabled={!hasUpdateServerChanged || isUpdatingPreferences}
onMouseUp={this._handleResetUpdateServer}
onKeyboardEnter={this._handleResetUpdateServer}
onKeyboardPress={this._handleResetUpdateServer}>
<Text l10n={{id: 'reset'}}/>
</Button>
</ButtonGroup>
</Fieldset>
</Form>
);
}
_handleChangeUdp = (event, active) => {
this.props.signals.forms.fieldChanged({
field: 'preferences.networkForm.useUdp',
value: active
});
if (isValidForm(this.props.form)) {
this.props.onSubmit(event, {
useUdp: active
});
}
}
_handleChangeRandomPort = (event, active) => {
this.props.signals.forms.fieldChanged({
field: 'preferences.networkForm.randomPort',
value: active
});
if (isValidForm(this.props.form)) {
this.props.onSubmit(event, {
randomPort: active
});
}
}
_handleChangeStartPort = (event) => {
this.props.signals.forms.fieldChanged({
field: 'preferences.networkForm.startPort',
value: parseInt(event.target.value)
});
}
_handleChangeEndPort = (event) => {
this.props.signals.forms.fieldChanged({
field: 'preferences.networkForm.endPort',
value: parseInt(event.target.value)
});
}
_handleSavePortRange = (event) => {
event.preventDefault();
if (isValidForm(this.props.form)) {
this.props.onSubmit(event, {
portRange: {
startPort: this.props.form.startPort.value,
endPort: this.props.form.endPort.value
}
});
}
}
_handleResetPorts = (event) => {
event.preventDefault();
this.props.signals.forms.fieldChanged({
field: 'preferences.networkForm.updateServer',
value: this.props.form.startPort.defaultValue
});
this.props.signals.forms.fieldChanged({
field: 'preferences.networkForm.updateServer',
value: this.props.form.endPort.defaultValue
});
this.props.onSubmit(event, {
startPort: this.props.form.startPort.value,
endPort: this.props.form.endPort.value
});
}
_handleChangeUpdateServer = (event) => {
this.props.signals.forms.fieldChanged({
field: 'preferences.networkForm.updateServer',
value: event.target.value
});
}
_handleSaveUpdateServer = (event) => {
event.preventDefault();
if (isValidForm(this.props.form)) {
this.props.onSubmit(event, {
updateServer: this.props.form.updateServer.value
});
}
}
_handleResetUpdateServer = (event) => {
event.preventDefault();
this.props.signals.forms.fieldChanged({
field: 'preferences.networkForm.updateServer',
value: this.props.form.updateServer.defaultValue
});
this.props.onSubmit(event, {
updateServer: this.props.form.updateServer.defaultValue
});
}
});
|
ref_docs/Controller — Stem 1.4.1 documentation_files/jquery.js
|
du5t/puccinia
|
/*!
* 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(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o<i;o++)e(a[o],b,f?d.call(a[o],o,e(a[o],b)):d,j);return a}return i?
e(a[0],b):w}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveFired=this;var u=i.live.slice(0);for(k=0;k<u.length;k++){i=u[k];i.origType.replace(O,"")===a.type?f.push(i.selector):u.splice(k--,1)}j=c(a.target).closest(f,a.currentTarget);n=0;for(r=
j.length;n<r;n++)for(k=0;k<u.length;k++){i=u[k];if(j[n].selector===i.selector){o=j[n].elem;f=null;if(i.preType==="mouseenter"||i.preType==="mouseleave")f=c(a.relatedTarget).closest(i.selector)[0];if(!f||f!==o)d.push({elem:o,handleObj:i})}}n=0;for(r=d.length;n<r;n++){j=d[n];a.currentTarget=j.elem;a.data=j.handleObj.data;a.handleObj=j.handleObj;if(j.handleObj.origHandler.apply(j.elem,e)===false){b=false;break}}return b}}function pa(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,
"&")}function qa(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function ra(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var j in f)for(var i in f[j])c.event.add(this,j,f[j][i],f[j][i].data)}}})}function sa(a,b,d){var f,e,j;b=b&&b[0]?b[0].ownerDocument||b[0]:s;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===s&&!ta.test(a[0])&&(c.support.checkClone||!ua.test(a[0]))){e=
true;if(j=c.fragments[a[0]])if(j!==1)f=j}if(!f){f=b.createDocumentFragment();c.clean(a,b,f,d)}if(e)c.fragments[a[0]]=j?f:1;return{fragment:f,cacheable:e}}function K(a,b){var d={};c.each(va.concat.apply([],va.slice(0,b)),function(){d[this]=a});return d}function wa(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},Ra=A.jQuery,Sa=A.$,s=A.document,T,Ta=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/,
Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&&
(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this,
a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b===
"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,
function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||
c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded",
L,false);A.addEventListener("load",c.ready,false)}else if(s.attachEvent){s.attachEvent("onreadystatechange",L);A.attachEvent("onload",c.ready);var a=false;try{a=A.frameElement==null}catch(b){}s.documentElement.doScroll&&a&&ma()}}},isFunction:function(a){return $.call(a)==="[object Function]"},isArray:function(a){return $.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||$.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!aa.call(a,"constructor")&&!aa.call(a.constructor.prototype,
"isPrototypeOf"))return false;var b;for(b in a);return b===w||aa.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return A.JSON&&A.JSON.parse?A.JSON.parse(a):(new Function("return "+
a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],
d)===false)break}else for(;e<j;){if(b.apply(a[e++],d)===false)break}else if(i)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];e<j&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(Wa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?ba.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,f=b.length;d<f;d++)if(b[d]===
a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,i=a.length;j<i;j++){e=b(a[j],j,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=w}else if(b&&
!c.isFunction(b)){d=b;b=w}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});P=c.uaMatch(P);if(P.browser){c.browser[P.browser]=true;c.browser.version=P.version}if(c.browser.webkit)c.browser.safari=
true;if(ya)c.inArray=function(a,b){return ya.call(b,a)};T=c(s);if(s.addEventListener)L=function(){s.removeEventListener("DOMContentLoaded",L,false);c.ready()};else if(s.attachEvent)L=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",L);c.ready()}};(function(){c.support={};var a=s.documentElement,b=s.createElement("script"),d=s.createElement("div"),f="script"+J();d.style.display="none";d.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected,
parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent=
false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n=
s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true,
applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando];
else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,
a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===
w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i,
cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1)if(e.className){for(var j=" "+e.className+" ",
i=e.className,o=0,k=b.length;o<k;o++)if(j.indexOf(" "+b[o]+" ")<0)i+=" "+b[o];e.className=c.trim(i)}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(k){var n=c(this);n.removeClass(a.call(this,k,n.attr("class")))});if(a&&typeof a==="string"||a===w)for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(var j=(" "+e.className+" ").replace(Aa," "),i=0,o=b.length;i<o;i++)j=j.replace(" "+b[i]+" ",
" ");e.className=c.trim(j)}else e.className=""}return this},toggleClass:function(a,b){var d=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(e){var j=c(this);j.toggleClass(a.call(this,e,j.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var e,j=0,i=c(this),o=b,k=a.split(ca);e=k[j++];){o=f?o:!i.hasClass(e);i[o?"addClass":"removeClass"](e)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=
this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(Aa," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j<d;j++){var i=
e[j];if(i.selected){a=c(i).val();if(b)return a;f.push(a)}}return f}if(Ba.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Za,"")}return w}var o=c.isFunction(a);return this.each(function(k){var n=c(this),r=a;if(this.nodeType===1){if(o)r=a.call(this,k,n.val());if(typeof r==="number")r+="";if(c.isArray(r)&&Ba.test(this.type))this.checked=c.inArray(n.val(),r)>=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected=
c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");
a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g,
function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split(".");
k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a),
C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B<r.length;B++){u=r[B];if(d.guid===u.guid){if(i||k.test(u.namespace)){f==null&&r.splice(B--,1);n.remove&&n.remove.call(a,u)}if(f!=
null)break}}if(r.length===0||f!=null&&r.length===1){if(!n.teardown||n.teardown.call(a,o)===false)Ca(a,e,z.handle);delete C[e]}}else for(var B=0;B<r.length;B++){u=r[B];if(i||k.test(u.namespace)){c.event.remove(a,n,u.handler,B);r.splice(B--,1)}}}if(c.isEmptyObject(C)){if(b=z.handle)b.elem=null;delete z.events;delete z.handle;c.isEmptyObject(z)&&c.removeData(a)}}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[G]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=
e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&&
f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;
if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e<j;e++){var i=d[e];if(b||f.test(i.namespace)){a.handler=i.handler;a.data=i.data;a.handleObj=i;i=i.handler.apply(this,arguments);if(i!==w){a.result=i;if(i===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.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(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||s;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=s.documentElement;d=s.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==w)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,a.origType,c.extend({},a,{handler:oa}))},remove:function(a){var b=true,d=a.origType.replace(O,"");c.each(c.data(this,
"events").live||[],function(){if(d===this.origType.replace(O,""))return b=false});b&&c.event.remove(this,a.origType,oa)}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var Ca=s.removeEventListener?function(a,b,d){a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=
a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,
isImmediatePropagationStopped:Y};var Da=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},Ea=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ea:Da,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ea:Da)}}});if(!c.support.submitBubbles)c.event.special.submit=
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return na("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)return na("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};
if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Fa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",
e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,
"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a,
d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j<o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&
!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var f=this.length;d<f;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,f){return this.live(b,d,f,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},
toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ga={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,j){var i,o=0,k,n,r=j||this.selector,
u=j?this:c(this.context);if(c.isFunction(f)){e=f;f=w}for(d=(d||"").split(" ");(i=d[o++])!=null;){j=O.exec(i);k="";if(j){k=j[0];i=i.replace(O,"")}if(i==="hover")d.push("mouseenter"+k,"mouseleave"+k);else{n=i;if(i==="focus"||i==="blur"){d.push(Ga[i]+k);i+=k}else i=(Ga[i]||i)+k;b==="live"?u.each(function(){c.event.add(this,pa(i,r),{data:f,selector:r,handler:e,origType:i,origHandler:e,preType:n})}):u.unbind(pa(i,r),e)}}return this}});c.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(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});A.attachEvent&&!A.addEventListener&&A.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(g){for(var h="",l,m=0;g[m];m++){l=g[m];if(l.nodeType===3||l.nodeType===4)h+=l.nodeValue;else if(l.nodeType!==8)h+=a(l.childNodes)}return h}function b(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];
if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1&&!p){t.sizcache=l;t.sizset=q}if(t.nodeName.toLowerCase()===h){y=t;break}t=t[g]}m[q]=y}}}function d(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1){if(!p){t.sizcache=l;t.sizset=q}if(typeof h!=="string"){if(t===h){y=true;break}}else if(k.filter(h,[t]).length>0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift();
t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D||
g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h<g.length;h++)g[h]===g[h-1]&&g.splice(h--,1)}return g};k.matches=function(g,h){return k(g,null,null,h)};k.find=function(g,h,l){var m,q;if(!g)return[];
for(var p=0,v=n.order.length;p<v;p++){var t=n.order[p];if(q=n.leftMatch[t].exec(g)){var y=q[1];q.splice(1,1);if(y.substr(y.length-1)!=="\\"){q[1]=(q[1]||"").replace(/\\/g,"");m=n.find[t](q,h,l);if(m!=null){g=g.replace(n.match[t],"");break}}}}m||(m=h.getElementsByTagName("*"));return{set:m,expr:g}};k.filter=function(g,h,l,m){for(var q=g,p=[],v=h,t,y,S=h&&h[0]&&x(h[0]);g&&h.length;){for(var H in n.filter)if((t=n.leftMatch[H].exec(g))!=null&&t[2]){var M=n.filter[H],I,D;D=t[1];y=false;t.splice(1,1);if(D.substr(D.length-
1)!=="\\"){if(v===p)p=[];if(n.preFilter[H])if(t=n.preFilter[H](t,v,l,p,m,S)){if(t===true)continue}else y=I=true;if(t)for(var U=0;(D=v[U])!=null;U++)if(D){I=M(D,t,U,v);var Ha=m^!!I;if(l&&I!=null)if(Ha)y=true;else v[U]=false;else if(Ha){p.push(D);y=true}}if(I!==w){l||(v=p);g=g.replace(n.match[H],"");if(!y)return[];break}}}if(g===q)if(y==null)k.error(g);else break;q=g}return v};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var n=k.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(g){return g.getAttribute("href")}},
relative:{"+":function(g,h){var l=typeof h==="string",m=l&&!/\W/.test(h);l=l&&!m;if(m)h=h.toLowerCase();m=0;for(var q=g.length,p;m<q;m++)if(p=g[m]){for(;(p=p.previousSibling)&&p.nodeType!==1;);g[m]=l||p&&p.nodeName.toLowerCase()===h?p||false:p===h}l&&k.filter(h,g,true)},">":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m<q;m++){var p=g[m];if(p){l=p.parentNode;g[m]=l.nodeName.toLowerCase()===h?l:false}}}else{m=0;for(q=g.length;m<q;m++)if(p=g[m])g[m]=
l?p.parentNode:p.parentNode===h;l&&k.filter(h,g,true)}},"":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("parentNode",h,m,g,p,l)},"~":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("previousSibling",h,m,g,p,l)}},find:{ID:function(g,h,l){if(typeof h.getElementById!=="undefined"&&!l)return(g=h.getElementById(g[1]))?[g]:[]},NAME:function(g,h){if(typeof h.getElementsByName!=="undefined"){var l=[];
h=h.getElementsByName(g[1]);for(var m=0,q=h.length;m<q;m++)h[m].getAttribute("name")===g[1]&&l.push(h[m]);return l.length===0?null:l}},TAG:function(g,h){return h.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,h,l,m,q,p){g=" "+g[1].replace(/\\/g,"")+" ";if(p)return g;p=0;for(var v;(v=h[p])!=null;p++)if(v)if(q^(v.className&&(" "+v.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},
CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m,
g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},
text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},
setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return h<l[3]-0},gt:function(g,h,l){return h>l[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=
h[3];l=0;for(m=h.length;l<m;l++)if(h[l]===g)return false;return true}else k.error("Syntax error, unrecognized expression: "+q)},CHILD:function(g,h){var l=h[1],m=g;switch(l){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(l==="first")return true;m=g;case "last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case "nth":l=h[2];var q=h[3];if(l===1&&q===0)return true;h=h[0];var p=g.parentNode;if(p&&(p.sizcache!==h||!g.nodeIndex)){var v=0;for(m=p.firstChild;m;m=
m.nextSibling)if(m.nodeType===1)m.nodeIndex=++v;p.sizcache=h}g=g.nodeIndex-q;return l===0?g===0:g%l===0&&g/l>=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m===
"="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g,
h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l<m;l++)h.push(g[l]);else for(l=0;g[l];l++)h.push(g[l]);return h}}var B;if(s.documentElement.compareDocumentPosition)B=function(g,h){if(!g.compareDocumentPosition||
!h.compareDocumentPosition){if(g==h)i=true;return g.compareDocumentPosition?-1:1}g=g.compareDocumentPosition(h)&4?-1:g===h?0:1;if(g===0)i=true;return g};else if("sourceIndex"in s.documentElement)B=function(g,h){if(!g.sourceIndex||!h.sourceIndex){if(g==h)i=true;return g.sourceIndex?-1:1}g=g.sourceIndex-h.sourceIndex;if(g===0)i=true;return g};else if(s.createRange)B=function(g,h){if(!g.ownerDocument||!h.ownerDocument){if(g==h)i=true;return g.ownerDocument?-1:1}var l=g.ownerDocument.createRange(),m=
h.ownerDocument.createRange();l.setStart(g,0);l.setEnd(g,0);m.setStart(h,0);m.setEnd(h,0);g=l.compareBoundaryPoints(Range.START_TO_END,m);if(g===0)i=true;return g};(function(){var g=s.createElement("div"),h="script"+(new Date).getTime();g.innerHTML="<a name='"+h+"'/>";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&&
q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML="<a href='#'></a>";
if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="<p class='TEST'></p>";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}();
(function(){var g=s.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}:
function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q<p;q++)k(g,h[q],l);return k.filter(m,l)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=a;c.isXMLDoc=x;c.contains=E})();var eb=/Until$/,fb=/^(?:parents|prevUntil|prevAll)/,
gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length;
c.find(a,this[f],b);if(f>0)for(var j=d;j<b.length;j++)for(var i=0;i<d;i++)if(b[i]===b[j]){b.splice(j--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ia(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ia(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j=
{},i;if(f&&a.length){e=0;for(var o=a.length;e<o;e++){i=a[e];j[i]||(j[i]=c.expr.match.POS.test(i)?c(i,b||this.context):i)}for(;f&&f.ownerDocument&&f!==b;){for(i in j){e=j[i];if(e.jquery?e.index(f)>-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a===
"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",
d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?
a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType===
1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/<tbody/i,jb=/<|&#?\w+;/,ta=/<script|<object|<embed|<option|<style/i,ua=/checked\s*(?:[^=]|=\s*.checked.)/i,Ma=function(a,b,d){return hb.test(d)?
a:b+"></"+d+">"},F={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,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=
c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},
wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},
prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja,
""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(f){this.empty().append(a)}}else c.isFunction(a)?this.each(function(e){var j=c(this),i=j.html();j.empty().append(function(){return a.call(this,e,i)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&
this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),f=d.html();d.replaceWith(a.call(this,b,f))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){function f(u){return c.nodeName(u,"table")?u.getElementsByTagName("tbody")[0]||
u.appendChild(u.ownerDocument.createElement("tbody")):u}var e,j,i=a[0],o=[],k;if(!c.support.checkClone&&arguments.length===3&&typeof i==="string"&&ua.test(i))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(i))return this.each(function(u){var z=c(this);a[0]=i.call(this,u,b?z.html():w);z.domManip(a,b,d)});if(this[0]){e=i&&i.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:sa(a,this,o);k=e.fragment;if(j=k.childNodes.length===
1?(k=k.firstChild):k.firstChild){b=b&&c.nodeName(j,"tr");for(var n=0,r=this.length;n<r;n++)d.call(b?f(this[n],j):this[n],n>0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]);
return this}else{e=0;for(var j=d.length;e<j;e++){var i=(e>0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["",
""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]==="<table>"&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e=
c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]?
c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja=
function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter=
Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a,
"border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f=
a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=
a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=/<script(.|\s)*?\/script>/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!==
"string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("<div />").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this},
serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),
function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,
global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},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(a){function b(){e.success&&
e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)?
"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache===
false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B=
false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since",
c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E||
d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x);
g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===
1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b===
"json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional;
if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");
this[a].style.display=d||"";if(c.css(this[a],"display")==="none"){d=this[a].nodeName;var f;if(la[d])f=la[d];else{var e=c("<"+d+" />").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=c.data(this[a],"olddisplay")||"";return this}},hide:function(a,b){if(a||a===0)return this.animate(K("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");!d&&d!=="none"&&c.data(this[a],
"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(K("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},
animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var j=c.extend({},e),i,o=this.nodeType===1&&c(this).is(":hidden"),k=this;for(i in a){var n=i.replace(ia,ja);if(i!==n){a[n]=a[i];delete a[i];i=n}if(a[i]==="hide"&&o||a[i]==="show"&&!o)return j.complete.call(this);if((i==="height"||i==="width")&&this.style){j.display=c.css(this,"display");j.overflow=this.style.overflow}if(c.isArray(a[i])){(j.specialEasing=
j.specialEasing||{})[i]=a[i][1];a[i]=a[i][0]}}if(j.overflow!=null)this.style.overflow="hidden";j.curAnim=c.extend({},a);c.each(a,function(r,u){var z=new c.fx(k,j,r);if(Ab.test(u))z[u==="toggle"?o?"show":"hide":u](a);else{var C=Bb.exec(u),B=z.cur(true)||0;if(C){u=parseFloat(C[2]);var E=C[3]||"px";if(E!=="px"){k.style[r]=(u||1)+E;B=(u||1)/z.cur(true)*B;k.style[r]=B+E}if(C[1])u=(C[1]==="-="?-1:1)*u+B;z.custom(B,u,E)}else z.custom(B,u,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);
this.each(function(){for(var f=d.length-1;f>=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration===
"number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||
c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;
this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=
this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem,
e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||
c.fx.stop()},stop:function(){clearInterval(W);W=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset="getBoundingClientRect"in s.documentElement?
function(a){var b=this[0];if(a)return this.each(function(e){c.offset.setOffset(this,a,e)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d=b.getBoundingClientRect(),f=b.ownerDocument;b=f.body;f=f.documentElement;return{top:d.top+(self.pageYOffset||c.support.boxModel&&f.scrollTop||b.scrollTop)-(f.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||c.support.boxModel&&f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)}}:function(a){var b=
this[0];if(a)return this.each(function(r){c.offset.setOffset(this,a,r)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,f=b,e=b.ownerDocument,j,i=e.documentElement,o=e.body;f=(e=e.defaultView)?e.getComputedStyle(b,null):b.currentStyle;for(var k=b.offsetTop,n=b.offsetLeft;(b=b.parentNode)&&b!==o&&b!==i;){if(c.offset.supportsFixedPosition&&f.position==="fixed")break;j=e?e.getComputedStyle(b,null):b.currentStyle;
k-=b.scrollTop;n-=b.scrollLeft;if(b===d){k+=b.offsetTop;n+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=d;d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&j.overflow!=="visible"){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=j}if(f.position==="relative"||f.position==="static"){k+=o.offsetTop;n+=o.offsetLeft}if(c.offset.supportsFixedPosition&&
f.position==="fixed"){k+=Math.max(i.scrollTop,o.scrollTop);n+=Math.max(i.scrollLeft,o.scrollLeft)}return{top:k,left:n}};c.offset={initialize:function(){var a=s.body,b=s.createElement("div"),d,f,e,j=parseFloat(c.curCSS(a,"marginTop",true))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<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.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b);
c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,
d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-
f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset":
"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in
e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window);
|
src/components/Footer/Footer.js
|
devonzuegel/cosmocat
|
import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Footer.css';
import Link from '../Link';
function Footer() {
return (
<div className={s.root}>
<div className={s.container}>
<span className={s.text}>© Your Company</span>
<span className={s.spacer}>·</span>
<Link className={s.link} to="/">Home</Link>
<span className={s.spacer}>·</span>
<Link className={s.link} to="/about">About</Link>
</div>
</div>
);
}
export default withStyles(s)(Footer);
|
src/giraffe-ui/petition/share.js
|
MoveOnOrg/mop-frontend
|
import React from 'react'
import { Link } from 'react-router'
import PropTypes from 'prop-types'
import MailSvg from '../svgs/mail.svg'
import FacebookSvg from '../svgs/facebook.svg'
import TwitterSvg from '../svgs/twitter.svg'
import LinkSvg from '../svgs/link.svg'
import cx from 'classnames'
export const Share = ({ className, hasLabels, children }) => {
const el = hasLabels ? 'share__item' : 'share-icon'
const elementCn = `${className}__${el}`
return (
<div className={`${className}__share`}>
<strong className={`${className}__share-heading`}>Share</strong>
<div className={`${className}__share${hasLabels ? '__links' : '-icons'}`}>
{React.Children.map(children, child =>
// Cloning each child is the only way to apply props that were passed into the parent
React.cloneElement(child, { hasLabels, elementCn })
)}
</div>
</div>
)
}
Share.propTypes = {
hasLabels: PropTypes.bool,
className: PropTypes.string,
children: PropTypes.node
}
const childPropTypes = {
onClick: PropTypes.func,
hasLabels: PropTypes.bool,
elementCn: PropTypes.string
}
const Mail = ({ onClick, hasLabels, elementCn }) => (
<Link onClick={onClick} className={cx(elementCn, `${elementCn}--mail`)}>
<MailSvg />
{hasLabels && 'Email'}
</Link>
)
Mail.propTypes = childPropTypes
Share.Mail = Mail
const Facebook = ({ onClick, hasLabels, elementCn }) => (
<Link onClick={onClick} className={elementCn}>
<FacebookSvg />
{hasLabels && 'Facebook'}
</Link>
)
Facebook.propTypes = childPropTypes
Share.Facebook = Facebook
const Twitter = ({ onClick, hasLabels, elementCn }) => (
<Link onClick={onClick} className={elementCn}>
<TwitterSvg />
{hasLabels && 'Twitter'}
</Link>
)
Twitter.propTypes = childPropTypes
Share.Twitter = Twitter
const CopyLink = ({ onClick, hasLabels, elementCn, className, ...rest }) => (
<Link onClick={onClick} className={cx(elementCn, className)} {...rest}>
<LinkSvg />
{hasLabels && 'Copy Link'}
</Link>
)
CopyLink.propTypes = {
...childPropTypes,
className: PropTypes.string
}
Share.CopyLink = CopyLink
|
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
|
DSFaresConsultingTeam/JustLetip
|
import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
node_modules/react-bootstrap/es/SafeAnchor.js
|
NathanBWaters/jb_club
|
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 React from 'react';
import elementType from 'react-prop-types/lib/elementType';
var propTypes = {
href: React.PropTypes.string,
onClick: React.PropTypes.func,
disabled: React.PropTypes.bool,
role: React.PropTypes.string,
tabIndex: React.PropTypes.oneOfType([React.PropTypes.number, React.PropTypes.string]),
/**
* this is sort of silly but needed for Button
*/
componentClass: elementType
};
var defaultProps = {
componentClass: 'a'
};
function isTrivialHref(href) {
return !href || href.trim() === '#';
}
/**
* There are situations due to browser quirks or Bootstrap CSS where
* an anchor tag is needed, when semantically a button tag is the
* better choice. SafeAnchor ensures that when an anchor is used like a
* button its accessible. It also emulates input `disabled` behavior for
* links, which is usually desirable for Buttons, NavItems, MenuItems, etc.
*/
var SafeAnchor = function (_React$Component) {
_inherits(SafeAnchor, _React$Component);
function SafeAnchor(props, context) {
_classCallCheck(this, SafeAnchor);
var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));
_this.handleClick = _this.handleClick.bind(_this);
return _this;
}
SafeAnchor.prototype.handleClick = function handleClick(event) {
var _props = this.props,
disabled = _props.disabled,
href = _props.href,
onClick = _props.onClick;
if (disabled || isTrivialHref(href)) {
event.preventDefault();
}
if (disabled) {
event.stopPropagation();
return;
}
if (onClick) {
onClick(event);
}
};
SafeAnchor.prototype.render = function render() {
var _props2 = this.props,
Component = _props2.componentClass,
disabled = _props2.disabled,
props = _objectWithoutProperties(_props2, ['componentClass', 'disabled']);
if (isTrivialHref(props.href)) {
props.role = props.role || 'button';
// we want to make sure there is a href attribute on the node
// otherwise, the cursor incorrectly styled (except with role='button')
props.href = props.href || '#';
}
if (disabled) {
props.tabIndex = -1;
props.style = _extends({ pointerEvents: 'none' }, props.style);
}
return React.createElement(Component, _extends({}, props, {
onClick: this.handleClick
}));
};
return SafeAnchor;
}(React.Component);
SafeAnchor.propTypes = propTypes;
SafeAnchor.defaultProps = defaultProps;
export default SafeAnchor;
|
src/decorators/withViewport.js
|
grantgeorge/react-app
|
/*! 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/app/components/featured-image.js
|
mantagen/living-mathematics
|
import React from 'react'
const FeaturedImage = () => {
return (
<div className='featured-image'>
<img src='/assets/img/home.jpg' />
</div>
)
}
export default FeaturedImage
|
imports/plugins/core/ui/client/components/list/list.js
|
bradleywiebe2/somnium
|
import React, { Component, PropTypes } from "react";
import classnames from "classnames";
class List extends Component {
static propTypes = {
children: PropTypes.node,
isAdmin: PropTypes.bool
}
render() {
const listClassName = classnames({
"rui": true,
"admin": this.props.isAdmin,
"list-group": true
});
return (
<div className={listClassName}>
{this.props.children}
</div>
);
}
}
export default List;
|
node_modules/enzyme/src/Utils.js
|
Kgiberson/welp
|
/* eslint no-use-before-define:0 */
import isEqual from 'lodash/isEqual';
import React from 'react';
import is from 'object-is';
import {
isDOMComponent,
findDOMNode,
childrenToArray,
} from './react-compat';
import {
REACT013,
REACT15,
} from './version';
export const ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
function internalInstanceKey(node) {
return Object.keys(Object(node)).filter(key => key.match(/^__reactInternalInstance\$/))[0];
}
export function internalInstance(inst) {
return inst._reactInternalInstance ||
inst[internalInstanceKey(inst)];
}
export function isFunctionalComponent(inst) {
return !!inst && !!inst.constructor && inst.constructor.name === 'StatelessComponent';
}
export function isCustomComponentElement(inst) {
return !!inst && React.isValidElement(inst) && typeof inst.type === 'function';
}
export function propsOfNode(node) {
if (REACT013 && node && node._store) {
return (node._store.props) || {};
}
if (node && node._reactInternalComponent && node._reactInternalComponent._currentElement) {
return (node._reactInternalComponent._currentElement.props) || {};
}
if (node && node._currentElement) {
return (node._currentElement.props) || {};
}
if (REACT15 && node) {
if (internalInstance(node) && internalInstance(node)._currentElement) {
return (internalInstance(node)._currentElement.props) || {};
}
}
return (node && node.props) || {};
}
export function typeOfNode(node) {
return node ? node.type : null;
}
export function getNode(node) {
return isDOMComponent(node) ? findDOMNode(node) : node;
}
export function nodeHasType(node, type) {
if (!type || !node) return false;
if (!node.type) return false;
if (typeof node.type === 'string') return node.type === type;
return node.type.name === type || node.type.displayName === type;
}
export function childrenEqual(a, b, lenComp) {
if (a === b) return true;
if (!Array.isArray(a) && !Array.isArray(b)) {
return nodeEqual(a, b, lenComp);
}
if (!a && !b) return true;
if (a.length !== b.length) return false;
if (a.length === 0 && b.length === 0) return true;
for (let i = 0; i < a.length; i += 1) {
if (!nodeEqual(a[i], b[i], lenComp)) return false;
}
return true;
}
export function nodeEqual(a, b, lenComp = is) {
if (a === b) return true;
if (!a || !b) return false;
if (a.type !== b.type) return false;
const left = propsOfNode(a);
const leftKeys = Object.keys(left);
const right = propsOfNode(b);
for (let i = 0; i < leftKeys.length; i += 1) {
const prop = leftKeys[i];
// we will check children later
if (prop === 'children') {
// continue;
} else if (!(prop in right)) {
return false;
} else if (right[prop] === left[prop]) {
// continue;
} else if (typeof right[prop] === typeof left[prop] && typeof left[prop] === 'object') {
if (!isEqual(left[prop], right[prop])) return false;
} else {
return false;
}
}
const leftHasChildren = 'children' in left;
const rightHasChildren = 'children' in right;
if (leftHasChildren || rightHasChildren) {
if (!childrenEqual(
childrenToArray(left.children),
childrenToArray(right.children),
lenComp)) {
return false;
}
}
if (!isTextualNode(a)) {
const rightKeys = Object.keys(right);
return lenComp(leftKeys.length - leftHasChildren, rightKeys.length - rightHasChildren);
}
return false;
}
export function containsChildrenSubArray(match, node, subArray) {
const children = childrenOfNode(node);
const checker = (_, i) => arraysEqual(match, children.slice(i, i + subArray.length), subArray);
return children.some(checker);
}
function arraysEqual(match, left, right) {
return left.length === right.length && left.every((el, i) => match(el, right[i]));
}
function childrenOfNode(node) {
const props = propsOfNode(node);
const { children } = props;
return childrenToArray(children);
}
function isTextualNode(node) {
return typeof node === 'string' || typeof node === 'number';
}
export function isReactElementAlike(arg) {
return React.isValidElement(arg) || isTextualNode(arg) || Array.isArray(arg);
}
// 'click' => 'onClick'
// 'mouseEnter' => 'onMouseEnter'
export function propFromEvent(event) {
const nativeEvent = mapNativeEventNames(event);
return `on${nativeEvent[0].toUpperCase()}${nativeEvent.substring(1)}`;
}
export function withSetStateAllowed(fn) {
// NOTE(lmr):
// this is currently here to circumvent a React bug where `setState()` is
// not allowed without global being defined.
let cleanup = false;
if (typeof global.document === 'undefined') {
cleanup = true;
global.document = {};
}
fn();
if (cleanup) {
delete global.document;
}
}
export function splitSelector(selector) {
return selector.split(/(?=\.|\[.*\])|(?=#|\[#.*\])/);
}
const containsQuotes = /'|"/;
const containsColon = /:/;
export function isPseudoClassSelector(selector) {
if (containsColon.test(selector)) {
if (!containsQuotes.test(selector)) {
return true;
}
const tokens = selector.split(containsQuotes);
return tokens.some((token, i) =>
containsColon.test(token) && i % 2 === 0
);
}
return false;
}
export function selectorError(selector, type = '') {
return new TypeError(
`Enzyme received a ${type} CSS selector ('${selector}') that it does not currently support`
);
}
export const isCompoundSelector = /^[\.#]?-?[_a-z]+[_a-z0-9-]*[\.\[#]/i;
const isPropSelector = /^\[.*\]$/;
export const SELECTOR = {
CLASS_TYPE: 0,
ID_TYPE: 1,
PROP_TYPE: 2,
};
export function selectorType(selector) {
if (isPseudoClassSelector(selector)) {
throw selectorError(selector, 'pseudo-class');
}
if (selector[0] === '.') {
return SELECTOR.CLASS_TYPE;
} else if (selector[0] === '#') {
return SELECTOR.ID_TYPE;
} else if (isPropSelector.test(selector)) {
return SELECTOR.PROP_TYPE;
}
return undefined;
}
export function AND(fns) {
const fnsReversed = fns.slice().reverse();
return x => fnsReversed.every(fn => fn(x));
}
export function coercePropValue(propName, propValue) {
// can be undefined
if (propValue === undefined) {
return propValue;
}
// can be the empty string
if (propValue === '') {
return propValue;
}
if (propValue === 'NaN') {
return NaN;
}
if (propValue === 'null') {
return null;
}
const trimmedValue = propValue.trim();
// if propValue includes quotes, it should be
// treated as a string
if (/^(['"]).*\1$/.test(trimmedValue)) {
return trimmedValue.slice(1, -1);
}
const numericPropValue = +trimmedValue;
// if parseInt is not NaN, then we've wanted a number
if (!is(NaN, numericPropValue)) {
return numericPropValue;
}
// coerce to boolean
if (trimmedValue === 'true') return true;
if (trimmedValue === 'false') return false;
// user provided an unquoted string value
throw new TypeError(
`Enzyme::Unable to parse selector '[${propName}=${propValue}]'. ` +
`Perhaps you forgot to escape a string? Try '[${propName}="${trimmedValue}"]' instead.`
);
}
export function nodeHasProperty(node, propKey, stringifiedPropValue) {
const nodeProps = propsOfNode(node);
const descriptor = Object.getOwnPropertyDescriptor(nodeProps, propKey);
if (descriptor && descriptor.get) {
return false;
}
const nodePropValue = nodeProps[propKey];
const propValue = coercePropValue(propKey, stringifiedPropValue);
if (nodePropValue === undefined) {
return false;
}
if (propValue !== undefined) {
return is(nodePropValue, propValue);
}
return Object.prototype.hasOwnProperty.call(nodeProps, propKey);
}
export function mapNativeEventNames(event) {
const nativeToReactEventMap = {
compositionend: 'compositionEnd',
compositionstart: 'compositionStart',
compositionupdate: 'compositionUpdate',
keydown: 'keyDown',
keyup: 'keyUp',
keypress: 'keyPress',
contextmenu: 'contextMenu',
dblclick: 'doubleClick',
doubleclick: 'doubleClick', // kept for legacy. TODO: remove with next major.
dragend: 'dragEnd',
dragenter: 'dragEnter',
dragexist: 'dragExit',
dragleave: 'dragLeave',
dragover: 'dragOver',
dragstart: 'dragStart',
mousedown: 'mouseDown',
mousemove: 'mouseMove',
mouseout: 'mouseOut',
mouseover: 'mouseOver',
mouseup: 'mouseUp',
touchcancel: 'touchCancel',
touchend: 'touchEnd',
touchmove: 'touchMove',
touchstart: 'touchStart',
canplay: 'canPlay',
canplaythrough: 'canPlayThrough',
durationchange: 'durationChange',
loadeddata: 'loadedData',
loadedmetadata: 'loadedMetadata',
loadstart: 'loadStart',
ratechange: 'rateChange',
timeupdate: 'timeUpdate',
volumechange: 'volumeChange',
};
if (!REACT013) {
// these could not be simulated in React 0.13:
// https://github.com/facebook/react/issues/1297
nativeToReactEventMap.mouseenter = 'mouseEnter';
nativeToReactEventMap.mouseleave = 'mouseLeave';
}
return nativeToReactEventMap[event] || event;
}
export function displayNameOfNode(node) {
const { type } = node;
if (!type) return null;
return type.displayName || type.name || type;
}
|
app/src/index.js
|
oramics/synth-kit
|
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
ajax/libs/6to5/1.14.6/browser-polyfill.js
|
sashberd/cdnjs
|
(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){var ensureSymbol=function(key){Symbol[key]=Symbol[key]||Symbol()};var ensureProto=function(Constructor,key,val){var proto=Constructor.prototype;proto[key]=proto[key]||val};if(typeof Symbol==="undefined"){require("es6-symbol/implement")}require("es6-shim");require("./transformation/transformers/es6-generators/runtime");ensureSymbol("referenceGet");ensureSymbol("referenceSet");ensureSymbol("referenceDelete");ensureProto(Function,Symbol.referenceGet,function(){return this});ensureProto(Map,Symbol.referenceGet,Map.prototype.get);ensureProto(Map,Symbol.referenceSet,Map.prototype.set);ensureProto(Map,Symbol.referenceDelete,Map.prototype.delete);if(global.WeakMap){ensureProto(WeakMap,Symbol.referenceGet,WeakMap.prototype.get);ensureProto(WeakMap,Symbol.referenceSet,WeakMap.prototype.set);ensureProto(WeakMap,Symbol.referenceDelete,WeakMap.prototype.delete)}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./transformation/transformers/es6-generators/runtime":2,"es6-shim":4,"es6-symbol/implement":5}],2:[function(require,module,exports){(function(global){var iteratorSymbol=typeof Symbol==="function"&&Symbol.iterator||"@@iterator";var runtime=global.regeneratorRuntime=exports;var hasOwn=Object.prototype.hasOwnProperty;var wrap=runtime.wrap=function wrap(innerFn,outerFn,self,tryList){return new Generator(innerFn,outerFn,self||null,tryList||[])};var GenStateSuspendedStart="suspendedStart";var GenStateSuspendedYield="suspendedYield";var GenStateExecuting="executing";var GenStateCompleted="completed";var ContinueSentinel={};var GF=function GeneratorFunction(){};var GFp=function GeneratorFunctionPrototype(){};var Gp=GFp.prototype=Generator.prototype;(GFp.constructor=GF).prototype=Gp.constructor=GFp;var GFName="GeneratorFunction";if(GF.name!==GFName)GF.name=GFName;if(GF.name!==GFName)throw new Error(GFName+" renamed?");runtime.isGeneratorFunction=function(genFun){var ctor=genFun&&genFun.constructor;return ctor?GF.name===ctor.name:false};runtime.mark=function(genFun){genFun.__proto__=GFp;genFun.prototype=Object.create(Gp);return genFun};runtime.async=function(innerFn,outerFn,self,tryList){return new Promise(function(resolve,reject){var generator=wrap(innerFn,outerFn,self,tryList);var callNext=step.bind(generator.next);var callThrow=step.bind(generator["throw"]);function step(arg){var info;var value;try{info=this(arg);value=info.value}catch(error){return reject(error)}if(info.done){resolve(value)}else{Promise.resolve(value).then(callNext,callThrow)}}callNext()})};function Generator(innerFn,outerFn,self,tryList){var generator=outerFn?Object.create(outerFn.prototype):this;var context=new Context(tryList);var state=GenStateSuspendedStart;function invoke(method,arg){if(state===GenStateExecuting){throw new Error("Generator is already running")}if(state===GenStateCompleted){throw new Error("Generator has already finished")}while(true){var delegate=context.delegate;var info;if(delegate){try{info=delegate.iterator[method](arg);method="next";arg=undefined}catch(uncaught){context.delegate=null;method="throw";arg=uncaught;continue}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===GenStateSuspendedStart&&typeof arg!=="undefined"){throw new TypeError("attempt to send "+JSON.stringify(arg)+" to newborn generator")}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)){method="next";arg=undefined}}else if(method==="return"){context.abrupt("return",arg)}state=GenStateExecuting;try{var value=innerFn.call(self,context);state=context.done?GenStateCompleted:GenStateSuspendedYield;info={value:value,done:context.done};if(value===ContinueSentinel){if(context.delegate&&method==="next"){arg=undefined}}else{return info}}catch(thrown){state=GenStateCompleted;if(method==="next"){context.dispatchException(thrown)}else{arg=thrown}}}}generator.next=invoke.bind(generator,"next");generator["throw"]=invoke.bind(generator,"throw");generator["return"]=invoke.bind(generator,"return");return generator}Gp[iteratorSymbol]=function(){return this};Gp.toString=function(){return"[object Generator]"};function pushTryEntry(triple){var entry={tryLoc:triple[0]};if(1 in triple){entry.catchLoc=triple[1]}if(2 in triple){entry.finallyLoc=triple[2]}this.tryEntries.push(entry)}function resetTryEntry(entry,i){var record=entry.completion||{};record.type=i===0?"normal":"return";delete record.arg;entry.completion=record}function Context(tryList){this.tryEntries=[{tryLoc:"root"}];tryList.forEach(pushTryEntry,this);this.reset()}runtime.keys=function(object){var keys=[];for(var key in object){keys.push(key)}keys.reverse();return function next(){while(keys.length){var key=keys.pop();if(key in object){next.value=key;next.done=false;return next}}next.done=true;return next}};function values(iterable){var iterator=iterable;if(iteratorSymbol in iterable){iterator=iterable[iteratorSymbol]()}else if(!isNaN(iterable.length)){var i=-1;iterator=function next(){while(++i<iterable.length){if(i in iterable){next.value=iterable[i];next.done=false;return next}}next.done=true;return next};iterator.next=iterator}return iterator}runtime.values=values;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);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"){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")}}}},_findFinallyEntry:function(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&(entry.finallyLoc===finallyLoc||this.prev<entry.finallyLoc)){return entry}}},abrupt:function(type,arg){var entry=this._findFinallyEntry();var record=entry?entry.completion:{};record.type=type;record.arg=arg;if(entry){this.next=entry.finallyLoc}else{this.complete(record)}return ContinueSentinel},complete:function(record){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"}return ContinueSentinel},finish:function(finallyLoc){var entry=this._findFinallyEntry(finallyLoc);return this.complete(entry.completion)},"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;var thrown;if(record.type==="throw"){thrown=record.arg;resetTryEntry(entry,i)}return thrown}}throw new Error("illegal catch attempt")},delegateYield:function(iterable,resultName,nextLoc){this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc};return ContinueSentinel}}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],3:[function(require,module,exports){var process=module.exports={};process.nextTick=function(){var canSetImmediate=typeof window!=="undefined"&&window.setImmediate;var canMutationObserver=typeof window!=="undefined"&&window.MutationObserver;var canPost=typeof window!=="undefined"&&window.postMessage&&window.addEventListener;if(canSetImmediate){return function(f){return window.setImmediate(f)}}var queue=[];if(canMutationObserver){var hiddenDiv=document.createElement("div");var observer=new MutationObserver(function(){var queueList=queue.slice();queue.length=0;queueList.forEach(function(fn){fn()})});observer.observe(hiddenDiv,{attributes:true});return function nextTick(fn){if(!queue.length){hiddenDiv.setAttribute("yes","no")}queue.push(fn)}}if(canPost){window.addEventListener("message",function(ev){var source=ev.source;if((source===window||source===null)&&ev.data==="process-tick"){ev.stopPropagation();if(queue.length>0){var fn=queue.shift();fn()}}},true);return function nextTick(fn){queue.push(fn);window.postMessage("process-tick","*")}}return function nextTick(fn){setTimeout(fn,0)}}();process.title="browser";process.browser=true;process.env={};process.argv=[];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")};process.cwd=function(){return"/"};process.chdir=function(dir){throw new Error("process.chdir is not supported")}},{}],4:[function(require,module,exports){(function(process){(function(root,factory){if(typeof define==="function"&&define.amd){define(factory)}else if(typeof exports==="object"){module.exports=factory()}else{root.returnExports=factory()}})(this,function(){"use strict";var isCallableWithoutNew=function(func){try{func()}catch(e){return false}return true};var supportsSubclassing=function(C,f){try{var Sub=function(){C.apply(this,arguments)};if(!Sub.__proto__){return false}Object.setPrototypeOf(Sub,C);Sub.prototype=Object.create(C.prototype,{constructor:{value:C}});return f(Sub)}catch(e){return false}};var arePropertyDescriptorsSupported=function(){try{Object.defineProperty({},"x",{});return true}catch(e){return false}};var startsWithRejectsRegex=function(){var rejectsRegex=false;if(String.prototype.startsWith){try{"/a/".startsWith(/a/)}catch(e){rejectsRegex=true}}return rejectsRegex};var getGlobal=new Function("return this;");var globals=getGlobal();var global_isFinite=globals.isFinite;var supportsDescriptors=!!Object.defineProperty&&arePropertyDescriptorsSupported();var startsWithIsCompliant=startsWithRejectsRegex();var _slice=Array.prototype.slice;var _indexOf=String.prototype.indexOf;var _toString=Object.prototype.toString;var _hasOwnProperty=Object.prototype.hasOwnProperty;var ArrayIterator;var defineProperty=function(object,name,value,force){if(!force&&name in object){return}if(supportsDescriptors){Object.defineProperty(object,name,{configurable:true,enumerable:false,writable:true,value:value})}else{object[name]=value}};var defineProperties=function(object,map){Object.keys(map).forEach(function(name){var method=map[name];defineProperty(object,name,method,false)})};var create=Object.create||function(prototype,properties){function Type(){}Type.prototype=prototype;var object=new Type;if(typeof properties!=="undefined"){defineProperties(object,properties)}return object};var $iterator$=typeof Symbol==="function"&&Symbol.iterator||"_es6shim_iterator_";if(globals.Set&&typeof(new globals.Set)["@@iterator"]==="function"){$iterator$="@@iterator"}var addIterator=function(prototype,impl){if(!impl){impl=function iterator(){return this}}var o={};o[$iterator$]=impl;defineProperties(prototype,o);if(!prototype[$iterator$]&&typeof $iterator$==="symbol"){prototype[$iterator$]=impl}};var isArguments=function isArguments(value){var str=_toString.call(value);var result=str==="[object Arguments]";if(!result){result=str!=="[object Array]"&&value!==null&&typeof value==="object"&&typeof value.length==="number"&&value.length>=0&&_toString.call(value.callee)==="[object Function]"}return result};var emulateES6construct=function(o){if(!ES.TypeIsObject(o)){throw new TypeError("bad object")}if(!o._es6construct){if(o.constructor&&ES.IsCallable(o.constructor["@@create"])){o=o.constructor["@@create"](o)}defineProperties(o,{_es6construct:true})}return o};var ES={CheckObjectCoercible:function(x,optMessage){if(x==null){throw new TypeError(optMessage||"Cannot call method on "+x)}return x},TypeIsObject:function(x){return x!=null&&Object(x)===x},ToObject:function(o,optMessage){return Object(ES.CheckObjectCoercible(o,optMessage))},IsCallable:function(x){return typeof x==="function"&&_toString.call(x)==="[object Function]"},ToInt32:function(x){return x>>0},ToUint32:function(x){return x>>>0},ToInteger:function(value){var number=+value;if(Number.isNaN(number)){return 0}if(number===0||!Number.isFinite(number)){return number}return(number>0?1:-1)*Math.floor(Math.abs(number))},ToLength:function(value){var len=ES.ToInteger(value);if(len<=0){return 0}if(len>Number.MAX_SAFE_INTEGER){return Number.MAX_SAFE_INTEGER}return len},SameValue:function(a,b){if(a===b){if(a===0){return 1/a===1/b}return true}return Number.isNaN(a)&&Number.isNaN(b)},SameValueZero:function(a,b){return a===b||Number.isNaN(a)&&Number.isNaN(b)},IsIterable:function(o){return ES.TypeIsObject(o)&&(typeof o[$iterator$]!=="undefined"||isArguments(o))},GetIterator:function(o){if(isArguments(o)){return new ArrayIterator(o,"value")}var itFn=o[$iterator$];if(!ES.IsCallable(itFn)){throw new TypeError("value is not an iterable")}var it=itFn.call(o);if(!ES.TypeIsObject(it)){throw new TypeError("bad iterator")}return it},IteratorNext:function(it){var result=arguments.length>1?it.next(arguments[1]):it.next();if(!ES.TypeIsObject(result)){throw new TypeError("bad iterator")}return result},Construct:function(C,args){var obj;if(ES.IsCallable(C["@@create"])){obj=C["@@create"]()}else{obj=create(C.prototype||null)}defineProperties(obj,{_es6construct:true});var result=C.apply(obj,args);return ES.TypeIsObject(result)?result:obj}};var numberConversion=function(){function roundToEven(n){var w=Math.floor(n),f=n-w;if(f<.5){return w}if(f>.5){return w+1}return w%2?w+1:w}function packIEEE754(v,ebits,fbits){var bias=(1<<ebits-1)-1,s,e,f,i,bits,str,bytes;if(v!==v){e=(1<<ebits)-1;f=Math.pow(2,fbits-1);s=0}else if(v===Infinity||v===-Infinity){e=(1<<ebits)-1;f=0;s=v<0?1:0}else if(v===0){e=0;f=0;s=1/v===-Infinity?1:0}else{s=v<0;v=Math.abs(v);if(v>=Math.pow(2,1-bias)){e=Math.min(Math.floor(Math.log(v)/Math.LN2),1023);f=roundToEven(v/Math.pow(2,e)*Math.pow(2,fbits));if(f/Math.pow(2,fbits)>=2){e=e+1;f=1}if(e>bias){e=(1<<ebits)-1;f=0}else{e=e+bias;f=f-Math.pow(2,fbits)}}else{e=0;f=roundToEven(v/Math.pow(2,1-bias-fbits))}}bits=[];for(i=fbits;i;i-=1){bits.push(f%2?1:0);f=Math.floor(f/2)}for(i=ebits;i;i-=1){bits.push(e%2?1:0);e=Math.floor(e/2)}bits.push(s?1:0);bits.reverse();str=bits.join("");bytes=[];while(str.length){bytes.push(parseInt(str.slice(0,8),2));str=str.slice(8)}return bytes}function unpackIEEE754(bytes,ebits,fbits){var bits=[],i,j,b,str,bias,s,e,f;for(i=bytes.length;i;i-=1){b=bytes[i-1];for(j=8;j;j-=1){bits.push(b%2?1:0);b=b>>1}}bits.reverse();str=bits.join("");bias=(1<<ebits-1)-1;s=parseInt(str.slice(0,1),2)?-1:1;e=parseInt(str.slice(1,1+ebits),2);f=parseInt(str.slice(1+ebits),2);if(e===(1<<ebits)-1){return f!==0?NaN:s*Infinity}else if(e>0){return s*Math.pow(2,e-bias)*(1+f/Math.pow(2,fbits))}else if(f!==0){return s*Math.pow(2,-(bias-1))*(f/Math.pow(2,fbits))}else{return s<0?-0:0}}function unpackFloat64(b){return unpackIEEE754(b,11,52)}function packFloat64(v){return packIEEE754(v,11,52)}function unpackFloat32(b){return unpackIEEE754(b,8,23)}function packFloat32(v){return packIEEE754(v,8,23)}var conversions={toFloat32:function(num){return unpackFloat32(packFloat32(num))}};if(typeof Float32Array!=="undefined"){var float32array=new Float32Array(1);conversions.toFloat32=function(num){float32array[0]=num;return float32array[0]}}return conversions}();defineProperties(String,{fromCodePoint:function(_){var points=_slice.call(arguments,0,arguments.length);var result=[];var next;for(var i=0,length=points.length;i<length;i++){next=Number(points[i]);if(!ES.SameValue(next,ES.ToInteger(next))||next<0||next>1114111){throw new RangeError("Invalid code point "+next)}if(next<65536){result.push(String.fromCharCode(next))}else{next-=65536;result.push(String.fromCharCode((next>>10)+55296));result.push(String.fromCharCode(next%1024+56320))}}return result.join("")},raw:function(callSite){var substitutions=_slice.call(arguments,1,arguments.length);var cooked=ES.ToObject(callSite,"bad callSite");var rawValue=cooked.raw;var raw=ES.ToObject(rawValue,"bad raw value");var len=Object.keys(raw).length;var literalsegments=ES.ToLength(len);if(literalsegments===0){return""}var stringElements=[];var nextIndex=0;var nextKey,next,nextSeg,nextSub;while(nextIndex<literalsegments){nextKey=String(nextIndex);next=raw[nextKey];nextSeg=String(next);stringElements.push(nextSeg);if(nextIndex+1>=literalsegments){break}next=substitutions[nextKey];if(typeof next==="undefined"){break}nextSub=String(next);stringElements.push(nextSub);nextIndex++}return stringElements.join("")}});if(String.fromCodePoint.length!==1){var originalFromCodePoint=String.fromCodePoint;defineProperty(String,"fromCodePoint",function(_){return originalFromCodePoint.apply(this,arguments)},true)}var StringShims={repeat:function(){var repeat=function(s,times){if(times<1){return""}if(times%2){return repeat(s,times-1)+s}var half=repeat(s,times/2);return half+half};return function(times){var thisStr=String(ES.CheckObjectCoercible(this));times=ES.ToInteger(times);if(times<0||times===Infinity){throw new RangeError("Invalid String#repeat value")}return repeat(thisStr,times)}}(),startsWith:function(searchStr){var thisStr=String(ES.CheckObjectCoercible(this));if(_toString.call(searchStr)==="[object RegExp]"){throw new TypeError('Cannot call method "startsWith" with a regex')}searchStr=String(searchStr);var startArg=arguments.length>1?arguments[1]:void 0;var start=Math.max(ES.ToInteger(startArg),0);return thisStr.slice(start,start+searchStr.length)===searchStr},endsWith:function(searchStr){var thisStr=String(ES.CheckObjectCoercible(this));if(_toString.call(searchStr)==="[object RegExp]"){throw new TypeError('Cannot call method "endsWith" with a regex')}searchStr=String(searchStr);var thisLen=thisStr.length;var posArg=arguments.length>1?arguments[1]:void 0;var pos=typeof posArg==="undefined"?thisLen:ES.ToInteger(posArg);var end=Math.min(Math.max(pos,0),thisLen);return thisStr.slice(end-searchStr.length,end)===searchStr},contains:function(searchString){var position=arguments.length>1?arguments[1]:void 0;return _indexOf.call(this,searchString,position)!==-1},codePointAt:function(pos){var thisStr=String(ES.CheckObjectCoercible(this));var position=ES.ToInteger(pos);var length=thisStr.length;if(position<0||position>=length){return}var first=thisStr.charCodeAt(position);var isEnd=position+1===length;if(first<55296||first>56319||isEnd){return first}var second=thisStr.charCodeAt(position+1);if(second<56320||second>57343){return first}return(first-55296)*1024+(second-56320)+65536}};defineProperties(String.prototype,StringShims);var hasStringTrimBug="
".trim().length!==1;if(hasStringTrimBug){var originalStringTrim=String.prototype.trim;delete String.prototype.trim;var ws=[" \n\f\r "," \u2028","\u2029"].join("");var trimRegexp=new RegExp("(^["+ws+"]+)|(["+ws+"]+$)","g");defineProperties(String.prototype,{trim:function(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}return String(this).replace(trimRegexp,"")}})}var StringIterator=function(s){this._s=String(ES.CheckObjectCoercible(s));this._i=0};StringIterator.prototype.next=function(){var s=this._s,i=this._i;if(typeof s==="undefined"||i>=s.length){this._s=void 0;return{value:void 0,done:true}}var first=s.charCodeAt(i),second,len;if(first<55296||first>56319||i+1==s.length){len=1}else{second=s.charCodeAt(i+1);len=second<56320||second>57343?1:2}this._i=i+len;return{value:s.substr(i,len),done:false}};addIterator(StringIterator.prototype);addIterator(String.prototype,function(){return new StringIterator(this)});if(!startsWithIsCompliant){String.prototype.startsWith=StringShims.startsWith;String.prototype.endsWith=StringShims.endsWith}var ArrayShims={from:function(iterable){var mapFn=arguments.length>1?arguments[1]:void 0;var list=ES.ToObject(iterable,"bad iterable");if(typeof mapFn!=="undefined"&&!ES.IsCallable(mapFn)){throw new TypeError("Array.from: when provided, the second argument must be a function")}var hasThisArg=arguments.length>2;var thisArg=hasThisArg?arguments[2]:void 0;var usingIterator=ES.IsIterable(list);var length;var result,i,value;if(usingIterator){i=0;result=ES.IsCallable(this)?Object(new this):[];var it=usingIterator?ES.GetIterator(list):null;var iterationValue;do{iterationValue=ES.IteratorNext(it);if(!iterationValue.done){value=iterationValue.value;if(mapFn){result[i]=hasThisArg?mapFn.call(thisArg,value,i):mapFn(value,i)}else{result[i]=value}i+=1}}while(!iterationValue.done);length=i}else{length=ES.ToLength(list.length);result=ES.IsCallable(this)?Object(new this(length)):new Array(length);for(i=0;i<length;++i){value=list[i];if(mapFn){result[i]=hasThisArg?mapFn.call(thisArg,value,i):mapFn(value,i)}else{result[i]=value}}}result.length=length;return result},of:function(){return Array.from(arguments)}};defineProperties(Array,ArrayShims);var arrayFromSwallowsNegativeLengths=function(){try{return Array.from({length:-1}).length===0}catch(e){return false}};if(!arrayFromSwallowsNegativeLengths()){defineProperty(Array,"from",ArrayShims.from,true)}ArrayIterator=function(array,kind){this.i=0;this.array=array;this.kind=kind};defineProperties(ArrayIterator.prototype,{next:function(){var i=this.i,array=this.array;if(!(this instanceof ArrayIterator)){throw new TypeError("Not an ArrayIterator")}if(typeof array!=="undefined"){var len=ES.ToLength(array.length);for(;i<len;i++){var kind=this.kind;var retval;if(kind==="key"){retval=i}else if(kind==="value"){retval=array[i]}else if(kind==="entry"){retval=[i,array[i]]}this.i=i+1;return{value:retval,done:false}}}this.array=void 0;return{value:void 0,done:true}}});addIterator(ArrayIterator.prototype);var ArrayPrototypeShims={copyWithin:function(target,start){var end=arguments[2];var o=ES.ToObject(this);var len=ES.ToLength(o.length);target=ES.ToInteger(target);start=ES.ToInteger(start);var to=target<0?Math.max(len+target,0):Math.min(target,len);var from=start<0?Math.max(len+start,0):Math.min(start,len);end=typeof end==="undefined"?len:ES.ToInteger(end);var fin=end<0?Math.max(len+end,0):Math.min(end,len);var count=Math.min(fin-from,len-to);var direction=1;if(from<to&&to<from+count){direction=-1;from+=count-1;to+=count-1}while(count>0){if(_hasOwnProperty.call(o,from)){o[to]=o[from]}else{delete o[from]}from+=direction;to+=direction;count-=1}return o},fill:function(value){var start=arguments.length>1?arguments[1]:void 0;var end=arguments.length>2?arguments[2]:void 0;var O=ES.ToObject(this);var len=ES.ToLength(O.length);start=ES.ToInteger(typeof start==="undefined"?0:start);end=ES.ToInteger(typeof end==="undefined"?len:end);var relativeStart=start<0?Math.max(len+start,0):Math.min(start,len);var relativeEnd=end<0?len+end:end;for(var i=relativeStart;i<len&&i<relativeEnd;++i){O[i]=value}return O},find:function find(predicate){var list=ES.ToObject(this);var length=ES.ToLength(list.length);if(!ES.IsCallable(predicate)){throw new TypeError("Array#find: predicate must be a function")}var thisArg=arguments[1];for(var i=0,value;i<length;i++){value=list[i];if(predicate.call(thisArg,value,i,list)){return value}}return},findIndex:function findIndex(predicate){var list=ES.ToObject(this);var length=ES.ToLength(list.length);if(!ES.IsCallable(predicate)){throw new TypeError("Array#findIndex: predicate must be a function")}var thisArg=arguments[1];for(var i=0;i<length;i++){if(predicate.call(thisArg,list[i],i,list)){return i}}return-1},keys:function(){return new ArrayIterator(this,"key")},values:function(){return new ArrayIterator(this,"value")},entries:function(){return new ArrayIterator(this,"entry")}};if(Array.prototype.keys&&!ES.IsCallable([1].keys().next)){delete Array.prototype.keys}if(Array.prototype.entries&&!ES.IsCallable([1].entries().next)){delete Array.prototype.entries}if(Array.prototype.keys&&Array.prototype.entries&&!Array.prototype.values&&Array.prototype[$iterator$]){defineProperties(Array.prototype,{values:Array.prototype[$iterator$]})}defineProperties(Array.prototype,ArrayPrototypeShims);addIterator(Array.prototype,function(){return this.values()});if(Object.getPrototypeOf){addIterator(Object.getPrototypeOf([].values()))}var maxSafeInteger=Math.pow(2,53)-1;defineProperties(Number,{MAX_SAFE_INTEGER:maxSafeInteger,MIN_SAFE_INTEGER:-maxSafeInteger,EPSILON:2.220446049250313e-16,parseInt:globals.parseInt,parseFloat:globals.parseFloat,isFinite:function(value){return typeof value==="number"&&global_isFinite(value)},isInteger:function(value){return Number.isFinite(value)&&ES.ToInteger(value)===value},isSafeInteger:function(value){return Number.isInteger(value)&&Math.abs(value)<=Number.MAX_SAFE_INTEGER},isNaN:function(value){return value!==value}});if(![,1].find(function(item,idx){return idx===0})){defineProperty(Array.prototype,"find",ArrayPrototypeShims.find,true)}if([,1].findIndex(function(item,idx){return idx===0})!==0){defineProperty(Array.prototype,"findIndex",ArrayPrototypeShims.findIndex,true)}if(supportsDescriptors){defineProperties(Object,{getPropertyDescriptor:function(subject,name){var pd=Object.getOwnPropertyDescriptor(subject,name);var proto=Object.getPrototypeOf(subject);while(typeof pd==="undefined"&&proto!==null){pd=Object.getOwnPropertyDescriptor(proto,name);proto=Object.getPrototypeOf(proto)}return pd},getPropertyNames:function(subject){var result=Object.getOwnPropertyNames(subject);var proto=Object.getPrototypeOf(subject);var addProperty=function(property){if(result.indexOf(property)===-1){result.push(property)}};while(proto!==null){Object.getOwnPropertyNames(proto).forEach(addProperty);proto=Object.getPrototypeOf(proto)}return result}});defineProperties(Object,{assign:function(target,source){if(!ES.TypeIsObject(target)){throw new TypeError("target must be an object")}return Array.prototype.reduce.call(arguments,function(target,source){return Object.keys(Object(source)).reduce(function(target,key){target[key]=source[key];return target},target)})},is:function(a,b){return ES.SameValue(a,b)},setPrototypeOf:function(Object,magic){var set;var checkArgs=function(O,proto){if(!ES.TypeIsObject(O)){throw new TypeError("cannot set prototype on a non-object")}if(!(proto===null||ES.TypeIsObject(proto))){throw new TypeError("can only set prototype to an object or null"+proto)}};var setPrototypeOf=function(O,proto){checkArgs(O,proto);set.call(O,proto);return O};try{set=Object.getOwnPropertyDescriptor(Object.prototype,magic).set;set.call({},null)}catch(e){if(Object.prototype!=={}[magic]){return}set=function(proto){this[magic]=proto};setPrototypeOf.polyfill=setPrototypeOf(setPrototypeOf({},null),Object.prototype)instanceof Object}return setPrototypeOf}(Object,"__proto__")})}if(Object.setPrototypeOf&&Object.getPrototypeOf&&Object.getPrototypeOf(Object.setPrototypeOf({},null))!==null&&Object.getPrototypeOf(Object.create(null))===null){(function(){var FAKENULL=Object.create(null);var gpo=Object.getPrototypeOf,spo=Object.setPrototypeOf;Object.getPrototypeOf=function(o){var result=gpo(o);return result===FAKENULL?null:result};Object.setPrototypeOf=function(o,p){if(p===null){p=FAKENULL}return spo(o,p)};Object.setPrototypeOf.polyfill=false})()}try{Object.keys("foo")}catch(e){var originalObjectKeys=Object.keys;Object.keys=function(obj){return originalObjectKeys(ES.ToObject(obj))}}var MathShims={acosh:function(value){value=Number(value);if(Number.isNaN(value)||value<1){return NaN}if(value===1){return 0}if(value===Infinity){return value}return Math.log(value+Math.sqrt(value*value-1))},asinh:function(value){value=Number(value);if(value===0||!global_isFinite(value)){return value}return value<0?-Math.asinh(-value):Math.log(value+Math.sqrt(value*value+1))},atanh:function(value){value=Number(value);if(Number.isNaN(value)||value<-1||value>1){return NaN}if(value===-1){return-Infinity}if(value===1){return Infinity}if(value===0){return value}return.5*Math.log((1+value)/(1-value))},cbrt:function(value){value=Number(value);if(value===0){return value}var negate=value<0,result;if(negate){value=-value}result=Math.pow(value,1/3);return negate?-result:result},clz32:function(value){value=Number(value);var number=ES.ToUint32(value);if(number===0){return 32}return 32-number.toString(2).length},cosh:function(value){value=Number(value);if(value===0){return 1}if(Number.isNaN(value)){return NaN}if(!global_isFinite(value)){return Infinity}if(value<0){value=-value}if(value>21){return Math.exp(value)/2}return(Math.exp(value)+Math.exp(-value))/2},expm1:function(value){value=Number(value);if(value===-Infinity){return-1}if(!global_isFinite(value)||value===0){return value}return Math.exp(value)-1},hypot:function(x,y){var anyNaN=false;var allZero=true;var anyInfinity=false;var numbers=[];Array.prototype.every.call(arguments,function(arg){var num=Number(arg);if(Number.isNaN(num)){anyNaN=true}else if(num===Infinity||num===-Infinity){anyInfinity=true}else if(num!==0){allZero=false}if(anyInfinity){return false}else if(!anyNaN){numbers.push(Math.abs(num))}return true});if(anyInfinity){return Infinity}if(anyNaN){return NaN}if(allZero){return 0}numbers.sort(function(a,b){return b-a});var largest=numbers[0];var divided=numbers.map(function(number){return number/largest});var sum=divided.reduce(function(sum,number){return sum+=number*number},0);return largest*Math.sqrt(sum)},log2:function(value){return Math.log(value)*Math.LOG2E},log10:function(value){return Math.log(value)*Math.LOG10E},log1p:function(value){value=Number(value);if(value<-1||Number.isNaN(value)){return NaN}if(value===0||value===Infinity){return value}if(value===-1){return-Infinity}var result=0;var n=50;if(value<0||value>1){return Math.log(1+value)}for(var i=1;i<n;i++){if(i%2===0){result-=Math.pow(value,i)/i}else{result+=Math.pow(value,i)/i}}return result},sign:function(value){var number=+value;if(number===0){return number}if(Number.isNaN(number)){return number}return number<0?-1:1},sinh:function(value){value=Number(value);if(!global_isFinite(value)||value===0){return value}return(Math.exp(value)-Math.exp(-value))/2},tanh:function(value){value=Number(value);if(Number.isNaN(value)||value===0){return value}if(value===Infinity){return 1}if(value===-Infinity){return-1}return(Math.exp(value)-Math.exp(-value))/(Math.exp(value)+Math.exp(-value))},trunc:function(value){var number=Number(value);return number<0?-Math.floor(-number):Math.floor(number)},imul:function(x,y){x=ES.ToUint32(x);y=ES.ToUint32(y);var ah=x>>>16&65535;var al=x&65535;var bh=y>>>16&65535;var bl=y&65535;return al*bl+(ah*bl+al*bh<<16>>>0)|0},fround:function(x){if(x===0||x===Infinity||x===-Infinity||Number.isNaN(x)){return x}var num=Number(x);return numberConversion.toFloat32(num)}};defineProperties(Math,MathShims);if(Math.imul(4294967295,5)!==-5){Math.imul=MathShims.imul
}var PromiseShim=function(){var Promise,Promise$prototype;ES.IsPromise=function(promise){if(!ES.TypeIsObject(promise)){return false}if(!promise._promiseConstructor){return false}if(typeof promise._status==="undefined"){return false}return true};var PromiseCapability=function(C){if(!ES.IsCallable(C)){throw new TypeError("bad promise constructor")}var capability=this;var resolver=function(resolve,reject){capability.resolve=resolve;capability.reject=reject};capability.promise=ES.Construct(C,[resolver]);if(!capability.promise._es6construct){throw new TypeError("bad promise constructor")}if(!(ES.IsCallable(capability.resolve)&&ES.IsCallable(capability.reject))){throw new TypeError("bad promise constructor")}};var setTimeout=globals.setTimeout;var makeZeroTimeout;if(typeof window!=="undefined"&&ES.IsCallable(window.postMessage)){makeZeroTimeout=function(){var timeouts=[];var messageName="zero-timeout-message";var setZeroTimeout=function(fn){timeouts.push(fn);window.postMessage(messageName,"*")};var handleMessage=function(event){if(event.source==window&&event.data==messageName){event.stopPropagation();if(timeouts.length===0){return}var fn=timeouts.shift();fn()}};window.addEventListener("message",handleMessage,true);return setZeroTimeout}}var makePromiseAsap=function(){var P=globals.Promise;return P&&P.resolve&&function(task){return P.resolve().then(task)}};var enqueue=ES.IsCallable(globals.setImmediate)?globals.setImmediate.bind(globals):typeof process==="object"&&process.nextTick?process.nextTick:makePromiseAsap()||(ES.IsCallable(makeZeroTimeout)?makeZeroTimeout():function(task){setTimeout(task,0)});var triggerPromiseReactions=function(reactions,x){reactions.forEach(function(reaction){enqueue(function(){var handler=reaction.handler;var capability=reaction.capability;var resolve=capability.resolve;var reject=capability.reject;try{var result=handler(x);if(result===capability.promise){throw new TypeError("self resolution")}var updateResult=updatePromiseFromPotentialThenable(result,capability);if(!updateResult){resolve(result)}}catch(e){reject(e)}})})};var updatePromiseFromPotentialThenable=function(x,capability){if(!ES.TypeIsObject(x)){return false}var resolve=capability.resolve;var reject=capability.reject;try{var then=x.then;if(!ES.IsCallable(then)){return false}then.call(x,resolve,reject)}catch(e){reject(e)}return true};var promiseResolutionHandler=function(promise,onFulfilled,onRejected){return function(x){if(x===promise){return onRejected(new TypeError("self resolution"))}var C=promise._promiseConstructor;var capability=new PromiseCapability(C);var updateResult=updatePromiseFromPotentialThenable(x,capability);if(updateResult){return capability.promise.then(onFulfilled,onRejected)}else{return onFulfilled(x)}}};Promise=function(resolver){var promise=this;promise=emulateES6construct(promise);if(!promise._promiseConstructor){throw new TypeError("bad promise")}if(typeof promise._status!=="undefined"){throw new TypeError("promise already initialized")}if(!ES.IsCallable(resolver)){throw new TypeError("not a valid resolver")}promise._status="unresolved";promise._resolveReactions=[];promise._rejectReactions=[];var resolve=function(resolution){if(promise._status!=="unresolved"){return}var reactions=promise._resolveReactions;promise._result=resolution;promise._resolveReactions=void 0;promise._rejectReactions=void 0;promise._status="has-resolution";triggerPromiseReactions(reactions,resolution)};var reject=function(reason){if(promise._status!=="unresolved"){return}var reactions=promise._rejectReactions;promise._result=reason;promise._resolveReactions=void 0;promise._rejectReactions=void 0;promise._status="has-rejection";triggerPromiseReactions(reactions,reason)};try{resolver(resolve,reject)}catch(e){reject(e)}return promise};Promise$prototype=Promise.prototype;defineProperties(Promise,{"@@create":function(obj){var constructor=this;var prototype=constructor.prototype||Promise$prototype;obj=obj||create(prototype);defineProperties(obj,{_status:void 0,_result:void 0,_resolveReactions:void 0,_rejectReactions:void 0,_promiseConstructor:void 0});obj._promiseConstructor=constructor;return obj}});var _promiseAllResolver=function(index,values,capability,remaining){var done=false;return function(x){if(done){return}done=true;values[index]=x;if(--remaining.count===0){var resolve=capability.resolve;resolve(values)}}};Promise.all=function(iterable){var C=this;var capability=new PromiseCapability(C);var resolve=capability.resolve;var reject=capability.reject;try{if(!ES.IsIterable(iterable)){throw new TypeError("bad iterable")}var it=ES.GetIterator(iterable);var values=[],remaining={count:1};for(var index=0;;index++){var next=ES.IteratorNext(it);if(next.done){break}var nextPromise=C.resolve(next.value);var resolveElement=_promiseAllResolver(index,values,capability,remaining);remaining.count++;nextPromise.then(resolveElement,capability.reject)}if(--remaining.count===0){resolve(values)}}catch(e){reject(e)}return capability.promise};Promise.race=function(iterable){var C=this;var capability=new PromiseCapability(C);var resolve=capability.resolve;var reject=capability.reject;try{if(!ES.IsIterable(iterable)){throw new TypeError("bad iterable")}var it=ES.GetIterator(iterable);while(true){var next=ES.IteratorNext(it);if(next.done){break}var nextPromise=C.resolve(next.value);nextPromise.then(resolve,reject)}}catch(e){reject(e)}return capability.promise};Promise.reject=function(reason){var C=this;var capability=new PromiseCapability(C);var reject=capability.reject;reject(reason);return capability.promise};Promise.resolve=function(v){var C=this;if(ES.IsPromise(v)){var constructor=v._promiseConstructor;if(constructor===C){return v}}var capability=new PromiseCapability(C);var resolve=capability.resolve;resolve(v);return capability.promise};Promise.prototype["catch"]=function(onRejected){return this.then(void 0,onRejected)};Promise.prototype.then=function(onFulfilled,onRejected){var promise=this;if(!ES.IsPromise(promise)){throw new TypeError("not a promise")}var C=this.constructor;var capability=new PromiseCapability(C);if(!ES.IsCallable(onRejected)){onRejected=function(e){throw e}}if(!ES.IsCallable(onFulfilled)){onFulfilled=function(x){return x}}var resolutionHandler=promiseResolutionHandler(promise,onFulfilled,onRejected);var resolveReaction={capability:capability,handler:resolutionHandler};var rejectReaction={capability:capability,handler:onRejected};switch(promise._status){case"unresolved":promise._resolveReactions.push(resolveReaction);promise._rejectReactions.push(rejectReaction);break;case"has-resolution":triggerPromiseReactions([resolveReaction],promise._result);break;case"has-rejection":triggerPromiseReactions([rejectReaction],promise._result);break;default:throw new TypeError("unexpected")}return capability.promise};return Promise}();defineProperties(globals,{Promise:PromiseShim});var promiseSupportsSubclassing=supportsSubclassing(globals.Promise,function(S){return S.resolve(42)instanceof S});var promiseIgnoresNonFunctionThenCallbacks=function(){try{globals.Promise.reject(42).then(null,5).then(null,function(){});return true}catch(ex){return false}}();var promiseRequiresObjectContext=function(){try{Promise.call(3,function(){})}catch(e){return true}return false}();if(!promiseSupportsSubclassing||!promiseIgnoresNonFunctionThenCallbacks||!promiseRequiresObjectContext){globals.Promise=PromiseShim}var testOrder=function(a){var b=Object.keys(a.reduce(function(o,k){o[k]=true;return o},{}));return a.join(":")===b.join(":")};var preservesInsertionOrder=testOrder(["z","a","bb"]);var preservesNumericInsertionOrder=testOrder(["z",1,"a","3",2]);if(supportsDescriptors){var fastkey=function fastkey(key){if(!preservesInsertionOrder){return null}var type=typeof key;if(type==="string"){return"$"+key}else if(type==="number"){if(!preservesNumericInsertionOrder){return"n"+key}return key}return null};var emptyObject=function emptyObject(){return Object.create?Object.create(null):{}};var collectionShims={Map:function(){var empty={};function MapEntry(key,value){this.key=key;this.value=value;this.next=null;this.prev=null}MapEntry.prototype.isRemoved=function(){return this.key===empty};function MapIterator(map,kind){this.head=map._head;this.i=this.head;this.kind=kind}MapIterator.prototype={next:function(){var i=this.i,kind=this.kind,head=this.head,result;if(typeof this.i==="undefined"){return{value:void 0,done:true}}while(i.isRemoved()&&i!==head){i=i.prev}while(i.next!==head){i=i.next;if(!i.isRemoved()){if(kind==="key"){result=i.key}else if(kind==="value"){result=i.value}else{result=[i.key,i.value]}this.i=i;return{value:result,done:false}}}this.i=void 0;return{value:void 0,done:true}}};addIterator(MapIterator.prototype);function Map(iterable){var map=this;if(!ES.TypeIsObject(map)){throw new TypeError("Map does not accept arguments when called as a function")}map=emulateES6construct(map);if(!map._es6map){throw new TypeError("bad map")}var head=new MapEntry(null,null);head.next=head.prev=head;defineProperties(map,{_head:head,_storage:emptyObject(),_size:0});if(typeof iterable!=="undefined"&&iterable!==null){var it=ES.GetIterator(iterable);var adder=map.set;if(!ES.IsCallable(adder)){throw new TypeError("bad map")}while(true){var next=ES.IteratorNext(it);if(next.done){break}var nextItem=next.value;if(!ES.TypeIsObject(nextItem)){throw new TypeError("expected iterable of pairs")}adder.call(map,nextItem[0],nextItem[1])}}return map}var Map$prototype=Map.prototype;defineProperties(Map,{"@@create":function(obj){var constructor=this;var prototype=constructor.prototype||Map$prototype;obj=obj||create(prototype);defineProperties(obj,{_es6map:true});return obj}});Object.defineProperty(Map.prototype,"size",{configurable:true,enumerable:false,get:function(){if(typeof this._size==="undefined"){throw new TypeError("size method called on incompatible Map")}return this._size}});defineProperties(Map.prototype,{get:function(key){var fkey=fastkey(key);if(fkey!==null){var entry=this._storage[fkey];if(entry){return entry.value}else{return}}var head=this._head,i=head;while((i=i.next)!==head){if(ES.SameValueZero(i.key,key)){return i.value}}return},has:function(key){var fkey=fastkey(key);if(fkey!==null){return typeof this._storage[fkey]!=="undefined"}var head=this._head,i=head;while((i=i.next)!==head){if(ES.SameValueZero(i.key,key)){return true}}return false},set:function(key,value){var head=this._head,i=head,entry;var fkey=fastkey(key);if(fkey!==null){if(typeof this._storage[fkey]!=="undefined"){this._storage[fkey].value=value;return this}else{entry=this._storage[fkey]=new MapEntry(key,value);i=head.prev}}while((i=i.next)!==head){if(ES.SameValueZero(i.key,key)){i.value=value;return this}}entry=entry||new MapEntry(key,value);if(ES.SameValue(-0,key)){entry.key=+0}entry.next=this._head;entry.prev=this._head.prev;entry.prev.next=entry;entry.next.prev=entry;this._size+=1;return this},"delete":function(key){var head=this._head,i=head;var fkey=fastkey(key);if(fkey!==null){if(typeof this._storage[fkey]==="undefined"){return false}i=this._storage[fkey].prev;delete this._storage[fkey]}while((i=i.next)!==head){if(ES.SameValueZero(i.key,key)){i.key=i.value=empty;i.prev.next=i.next;i.next.prev=i.prev;this._size-=1;return true}}return false},clear:function(){this._size=0;this._storage=emptyObject();var head=this._head,i=head,p=i.next;while((i=p)!==head){i.key=i.value=empty;p=i.next;i.next=i.prev=head}head.next=head.prev=head},keys:function(){return new MapIterator(this,"key")},values:function(){return new MapIterator(this,"value")},entries:function(){return new MapIterator(this,"key+value")},forEach:function(callback){var context=arguments.length>1?arguments[1]:null;var it=this.entries();for(var entry=it.next();!entry.done;entry=it.next()){callback.call(context,entry.value[1],entry.value[0],this)}}});addIterator(Map.prototype,function(){return this.entries()});return Map}(),Set:function(){var SetShim=function Set(iterable){var set=this;if(!ES.TypeIsObject(set)){throw new TypeError("Set does not accept arguments when called as a function")}set=emulateES6construct(set);if(!set._es6set){throw new TypeError("bad set")}defineProperties(set,{"[[SetData]]":null,_storage:emptyObject()});if(typeof iterable!=="undefined"&&iterable!==null){var it=ES.GetIterator(iterable);var adder=set.add;if(!ES.IsCallable(adder)){throw new TypeError("bad set")}while(true){var next=ES.IteratorNext(it);if(next.done){break}var nextItem=next.value;adder.call(set,nextItem)}}return set};var Set$prototype=SetShim.prototype;defineProperties(SetShim,{"@@create":function(obj){var constructor=this;var prototype=constructor.prototype||Set$prototype;obj=obj||create(prototype);defineProperties(obj,{_es6set:true});return obj}});var ensureMap=function ensureMap(set){if(!set["[[SetData]]"]){var m=set["[[SetData]]"]=new collectionShims.Map;Object.keys(set._storage).forEach(function(k){if(k.charCodeAt(0)===36){k=k.slice(1)}else if(k.charAt(0)==="n"){k=+k.slice(1)}else{k=+k}m.set(k,k)});set._storage=null}};Object.defineProperty(SetShim.prototype,"size",{configurable:true,enumerable:false,get:function(){if(typeof this._storage==="undefined"){throw new TypeError("size method called on incompatible Set")}ensureMap(this);return this["[[SetData]]"].size}});defineProperties(SetShim.prototype,{has:function(key){var fkey;if(this._storage&&(fkey=fastkey(key))!==null){return!!this._storage[fkey]}ensureMap(this);return this["[[SetData]]"].has(key)},add:function(key){var fkey;if(this._storage&&(fkey=fastkey(key))!==null){this._storage[fkey]=true;return this}ensureMap(this);this["[[SetData]]"].set(key,key);return this},"delete":function(key){var fkey;if(this._storage&&(fkey=fastkey(key))!==null){var hasFKey=_hasOwnProperty.call(this._storage,fkey);return delete this._storage[fkey]&&hasFKey}ensureMap(this);return this["[[SetData]]"]["delete"](key)},clear:function(){if(this._storage){this._storage=emptyObject();return}return this["[[SetData]]"].clear()},keys:function(){ensureMap(this);return this["[[SetData]]"].keys()},values:function(){ensureMap(this);return this["[[SetData]]"].values()},entries:function(){ensureMap(this);return this["[[SetData]]"].entries()},forEach:function(callback){var context=arguments.length>1?arguments[1]:null;var entireSet=this;ensureMap(this);this["[[SetData]]"].forEach(function(value,key){callback.call(context,key,key,entireSet)})}});addIterator(SetShim.prototype,function(){return this.values()});return SetShim}()};defineProperties(globals,collectionShims);if(globals.Map||globals.Set){if(typeof globals.Map.prototype.clear!=="function"||(new globals.Set).size!==0||(new globals.Map).size!==0||typeof globals.Map.prototype.keys!=="function"||typeof globals.Set.prototype.keys!=="function"||typeof globals.Map.prototype.forEach!=="function"||typeof globals.Set.prototype.forEach!=="function"||isCallableWithoutNew(globals.Map)||isCallableWithoutNew(globals.Set)||!supportsSubclassing(globals.Map,function(M){var m=new M([]);m.set(42,42);return m instanceof M})){globals.Map=collectionShims.Map;globals.Set=collectionShims.Set}}addIterator(Object.getPrototypeOf((new globals.Map).keys()));addIterator(Object.getPrototypeOf((new globals.Set).keys()))}return globals})}).call(this,require("_process"))},{_process:3}],5:[function(require,module,exports){"use strict";if(!require("./is-implemented")()){Object.defineProperty(require("es5-ext/global"),"Symbol",{value:require("./polyfill"),configurable:true,enumerable:false,writable:true})}},{"./is-implemented":6,"./polyfill":21,"es5-ext/global":8}],6:[function(require,module,exports){"use strict";module.exports=function(){var symbol;if(typeof Symbol!=="function")return false;symbol=Symbol("test symbol");try{String(symbol)}catch(e){return false}if(typeof Symbol.iterator==="symbol")return true;if(typeof Symbol.isConcatSpreadable!=="object")return false;if(typeof Symbol.isRegExp!=="object")return false;if(typeof Symbol.iterator!=="object")return false;if(typeof Symbol.toPrimitive!=="object")return false;if(typeof Symbol.toStringTag!=="object")return false;if(typeof Symbol.unscopables!=="object")return false;return true}},{}],7:[function(require,module,exports){"use strict";var assign=require("es5-ext/object/assign"),normalizeOpts=require("es5-ext/object/normalize-options"),isCallable=require("es5-ext/object/is-callable"),contains=require("es5-ext/string/#/contains"),d;d=module.exports=function(dscr,value){var c,e,w,options,desc;if(arguments.length<2||typeof dscr!=="string"){options=value;value=dscr;dscr=null}else{options=arguments[2]}if(dscr==null){c=w=true;e=false}else{c=contains.call(dscr,"c");e=contains.call(dscr,"e");w=contains.call(dscr,"w")}desc={value:value,configurable:c,enumerable:e,writable:w};return!options?desc:assign(normalizeOpts(options),desc)};d.gs=function(dscr,get,set){var c,e,options,desc;if(typeof dscr!=="string"){options=set;set=get;get=dscr;dscr=null}else{options=arguments[3]}if(get==null){get=undefined}else if(!isCallable(get)){options=get;get=set=undefined}else if(set==null){set=undefined}else if(!isCallable(set)){options=set;set=undefined}if(dscr==null){c=true;e=false}else{c=contains.call(dscr,"c");e=contains.call(dscr,"e")}desc={get:get,set:set,configurable:c,enumerable:e};return!options?desc:assign(normalizeOpts(options),desc)}},{"es5-ext/object/assign":9,"es5-ext/object/is-callable":12,"es5-ext/object/normalize-options":16,"es5-ext/string/#/contains":18}],8:[function(require,module,exports){"use strict";module.exports=new Function("return this")()},{}],9:[function(require,module,exports){"use strict";module.exports=require("./is-implemented")()?Object.assign:require("./shim")},{"./is-implemented":10,"./shim":11}],10:[function(require,module,exports){"use strict";module.exports=function(){var assign=Object.assign,obj;if(typeof assign!=="function")return false;obj={foo:"raz"};assign(obj,{bar:"dwa"},{trzy:"trzy"});return obj.foo+obj.bar+obj.trzy==="razdwatrzy"}},{}],11:[function(require,module,exports){"use strict";var keys=require("../keys"),value=require("../valid-value"),max=Math.max;module.exports=function(dest,src){var error,i,l=max(arguments.length,2),assign;dest=Object(value(dest));assign=function(key){try{dest[key]=src[key]}catch(e){if(!error)error=e}};for(i=1;i<l;++i){src=arguments[i];keys(src).forEach(assign)}if(error!==undefined)throw error;return dest}},{"../keys":13,"../valid-value":17}],12:[function(require,module,exports){"use strict";module.exports=function(obj){return typeof obj==="function"}},{}],13:[function(require,module,exports){"use strict";module.exports=require("./is-implemented")()?Object.keys:require("./shim")},{"./is-implemented":14,"./shim":15}],14:[function(require,module,exports){"use strict";module.exports=function(){try{Object.keys("primitive");return true}catch(e){return false}}},{}],15:[function(require,module,exports){"use strict";var keys=Object.keys;module.exports=function(object){return keys(object==null?object:Object(object))}},{}],16:[function(require,module,exports){"use strict";var assign=require("./assign"),forEach=Array.prototype.forEach,create=Object.create,getPrototypeOf=Object.getPrototypeOf,process;process=function(src,obj){var proto=getPrototypeOf(src);return assign(proto?process(proto,obj):obj,src)};module.exports=function(options){var result=create(null);forEach.call(arguments,function(options){if(options==null)return;process(Object(options),result)});return result}},{"./assign":9}],17:[function(require,module,exports){"use strict";module.exports=function(value){if(value==null)throw new TypeError("Cannot use null or undefined");return value}},{}],18:[function(require,module,exports){"use strict";module.exports=require("./is-implemented")()?String.prototype.contains:require("./shim")},{"./is-implemented":19,"./shim":20}],19:[function(require,module,exports){"use strict";var str="razdwatrzy";module.exports=function(){if(typeof str.contains!=="function")return false;return str.contains("dwa")===true&&str.contains("foo")===false}},{}],20:[function(require,module,exports){"use strict";var indexOf=String.prototype.indexOf;module.exports=function(searchString){return indexOf.call(this,searchString,arguments[1])>-1}},{}],21:[function(require,module,exports){"use strict";var d=require("d"),create=Object.create,defineProperties=Object.defineProperties,generateName,Symbol;generateName=function(){var created=create(null);return function(desc){var postfix=0;while(created[desc+(postfix||"")])++postfix;desc+=postfix||"";created[desc]=true;return"@@"+desc}}();module.exports=Symbol=function(description){var symbol;if(this instanceof Symbol){throw new TypeError("TypeError: Symbol is not a constructor")}symbol=create(Symbol.prototype);description=description===undefined?"":String(description);return defineProperties(symbol,{__description__:d("",description),__name__:d("",generateName(description))})};Object.defineProperties(Symbol,{create:d("",Symbol("create")),hasInstance:d("",Symbol("hasInstance")),isConcatSpreadable:d("",Symbol("isConcatSpreadable")),isRegExp:d("",Symbol("isRegExp")),iterator:d("",Symbol("iterator")),toPrimitive:d("",Symbol("toPrimitive")),toStringTag:d("",Symbol("toStringTag")),unscopables:d("",Symbol("unscopables"))});defineProperties(Symbol.prototype,{properToString:d(function(){return"Symbol ("+this.__description__+")"}),toString:d("",function(){return this.__name__})});Object.defineProperty(Symbol.prototype,Symbol.toPrimitive,d("",function(hint){throw new TypeError("Conversion of symbol objects is not allowed")}));Object.defineProperty(Symbol.prototype,Symbol.toStringTag,d("c","Symbol"))},{d:7}]},{},[1]);
|
frontend/src/Factura/FacturaTable.js
|
GAumala/Facturacion
|
import React from 'react';
import {
Table,
TableBody,
TableHeader,
TableHeaderColumn,
TableRow,
TableRowColumn
} from 'material-ui/Table';
import TextField from 'material-ui/TextField';
import IconButton from 'material-ui/IconButton';
import Delete from 'material-ui/svg-icons/action/delete';
import Math from 'facturacion_common/src/Math.js';
const black54p = '#757575';
const noPaddingStyle = { padding: '0px' };
const RenderTableHeader = props => {
let regSanCol = (
<TableHeaderColumn width={80} style={noPaddingStyle}>
Reg. Santario
</TableHeaderColumn>
);
let loteCol = (
<TableHeaderColumn width={60} style={noPaddingStyle}>
Lote
</TableHeaderColumn>
);
let fechaExpCol = (
<TableHeaderColumn width={70} style={noPaddingStyle}>
Fecha Exp.
</TableHeaderColumn>
);
if (props.isExamen) {
//ocultar columnas que no se usan en examenes
regSanCol = null;
loteCol = null;
fechaExpCol = null;
}
return (
<TableHeader displaySelectAll={false} adjustForCheckbox={false}>
<TableRow>
<TableHeaderColumn width={40} style={noPaddingStyle}>
#
</TableHeaderColumn>
{regSanCol}
<TableHeaderColumn width={170} style={noPaddingStyle}>
Nombre
</TableHeaderColumn>
{loteCol}
<TableHeaderColumn width={40} style={noPaddingStyle}>
Cant.
</TableHeaderColumn>
{fechaExpCol}
<TableHeaderColumn width={60} style={noPaddingStyle}>
Precio
</TableHeaderColumn>
<TableHeaderColumn width={50} style={noPaddingStyle}>
Importe
</TableHeaderColumn>
<TableHeaderColumn width={30} style={noPaddingStyle} />
</TableRow>
</TableHeader>
);
};
export default class FacturaTable extends React.Component {
renderRow = (facturable, i) => {
const { isExamen, onFacturableChanged, onFacturableDeleted } = this.props;
let regSanCol = (
<TableRowColumn width={80} style={noPaddingStyle}>
{facturable.codigo}
</TableRowColumn>
);
let loteCol = (
<TableRowColumn width={60} style={noPaddingStyle}>
<TextField
value={facturable.lote}
style={{ width: '50px' }}
name={'lote'}
inputStyle={{ textAlign: 'right', fontSize: '13px' }}
onChange={event => {
onFacturableChanged(i, 'lote', event.target.value);
}}
/>
</TableRowColumn>
);
let fechaExpCol = (
<TableRowColumn width={70} style={noPaddingStyle}>
<TextField
value={facturable.fechaExp}
hintText={'expiración'}
style={{ width: '70px', fontSize: '13px' }}
onChange={(event, date) => {
onFacturableChanged(i, 'fechaExp', date);
}}
/>
</TableRowColumn>
);
if (isExamen) {
//ocultar columnas que no se usan en examenes
regSanCol = null;
loteCol = null;
fechaExpCol = null;
}
return (
<TableRow key={i}>
<TableRowColumn width={40} style={noPaddingStyle}>
{i + 1}
</TableRowColumn>
{regSanCol}
<TableRowColumn width={170} style={noPaddingStyle}>
{facturable.nombre}
</TableRowColumn>
{loteCol}
<TableRowColumn width={40} style={noPaddingStyle}>
<TextField
style={{ width: '28px' }}
value={facturable.countText}
name={'count'}
inputStyle={{ textAlign: 'right', fontSize: '13px' }}
onChange={event => {
onFacturableChanged(i, 'count', event.target.value);
}}
/>
</TableRowColumn>
{fechaExpCol}
<TableRowColumn width={60} style={noPaddingStyle}>
${' '}
<TextField
style={{ width: '50px' }}
name={'precio'}
value={facturable.precioVentaText}
onChange={event => {
onFacturableChanged(i, 'precioVenta', event.target.value);
}}
inputStyle={{ fontSize: '13px' }}
/>
</TableRowColumn>
<TableRowColumn
width={50}
style={{ padding: '0px', textOverflow: 'clip' }}
>
<span style={{ marginRight: '34px' }}>
$ {Math.calcularImporteFacturable(facturable)}
</span>
</TableRowColumn>
<TableRowColumn
width={30}
style={{ padding: '0px', textAlign: 'right' }}
>
<IconButton onTouchTap={() => onFacturableDeleted(i)}>
<Delete color={black54p} />
</IconButton>
</TableRowColumn>
</TableRow>
);
};
render() {
return (
<Table height={'200px'} selectable={false}>
{RenderTableHeader(this.props)}
<TableBody displayRowCheckbox={false}>
{this.props.items.map(this.renderRow)}
</TableBody>
</Table>
);
}
}
FacturaTable.propTypes = {
isExamen: React.PropTypes.bool,
items: React.PropTypes.array.isRequired,
onFacturableChanged: React.PropTypes.func.isRequired,
onFacturableDeleted: React.PropTypes.func.isRequired
};
FacturaTable.defaultProps = {
isExamen: false
};
|
client/modules/App/components/Buttons/LoginButton.js
|
caleb272/PollIt
|
import React from 'react'
import FlatButton from 'material-ui/FlatButton'
function LoginButton() {
function login() {
window.location.href = '/auth/github'
}
return (
<FlatButton label="Login with Github" onClick={login} />
)
}
export default LoginButton
|
src/Components/CharacterSeriesList.js
|
jefferydutra/TestableModularReactTalk
|
import React from 'react';
import LabelWithAdd from './LabelWithAdd';
require('./CharacterSeriesList.css');
function setFavoriteSeriesForCharacter(setAsFavoriteSeries, character, name) {
return () => setAsFavoriteSeries(character.id, name);
}
function renderSeries(series, character, setAsFavoriteSeries) {
return (
<LabelWithAdd
key={series.name}
add={setFavoriteSeriesForCharacter(setAsFavoriteSeries, character, series.name)}
>
{series.name}
</LabelWithAdd>
);
}
function CharacterSeries({ character, setAsFavoriteSeries }) {
return (
<div className="character-series-list">
<span className="character-series-list__title">Series</span>
{character.series.map((series) => renderSeries(series, character, setAsFavoriteSeries))}
</div>
);
}
CharacterSeries.propTypes = {
character: React.PropTypes.any.isRequired,
setAsFavoriteSeries: React.PropTypes.func.isRequired
};
export default CharacterSeries;
|
components/react-draft-wysiwyg/util/Html.js
|
andresin87/wysiwyg
|
/**
* Created by alucas on 6/12/16.
*/
import React, { Component } from 'react';
class Html extends Component {
constructor() {
super();
this.setValue = this.setValue.bind(this);
}
setValue(value) {
this.setState({ value });
}
componentWillmount() {
// this.state.value = this.props.value ? this.props.value : '';
}
render() {
const value = (this.state && this.state.value) ? this.state.value : '';
return (
<div
dangerouslySetInnerHTML={{ __html: value }}
/>
);
}
}
Html.propTypes = {
value: React.PropTypes.string,
};
export { Html };
|
app-course-sync/views/WellcomeView.js
|
globant-ui-rosario/progress-tracker
|
import React, { Component } from 'react';
class BootcampWellcomeView extends Component {
render () {
return <div>Wellcome view</div>;
}
};
export default BootcampWellcomeView;
|
frontWeb/main/react/react-router/basic/dev/app8.js
|
skycolor/study
|
import React from 'react';
import ReactDOM from 'react-dom';
import App from './paramsExample.js';
ReactDOM.render(<App /> , document.getElementById('app') );
|
saga/seata-saga-statemachine-designer/src/components/EditorContextMenu/MenuItem.js
|
seata/seata
|
import React from 'react';
import { Command } from 'gg-editor';
import upperFirst from 'lodash/upperFirst';
import IconFont from '../../common/IconFont';
import styles from './index.less';
const MenuItem = (props) => {
const { command, icon, text } = props;
return (
<Command name={command}>
<div className={styles.item}>
<IconFont type={`icon-${icon || command}`} />
<span>{text || upperFirst(command)}</span>
</div>
</Command>
);
};
export default MenuItem;
|
src/popup/components/FuzzFooter.js
|
herrfugbaum/FuzzTabs
|
import React from 'react'
import { Container, Icon } from 'semantic-ui-react'
const FuzzFooter = () => {
return (
<Container textAlign='right'>
<Icon name='heart' />
Slamcode
</Container>
)
}
export default FuzzFooter
|
pages/components/container.js
|
allanalexandre/material-ui
|
import 'docs/src/modules/components/bootstrap';
// --- Post bootstrap -----
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
const req = require.context('docs/src/pages/components/container', false, /\.(md|js|tsx)$/);
const reqSource = require.context(
'!raw-loader!../../docs/src/pages/components/container',
false,
/\.(js|tsx)$/,
);
const reqPrefix = 'pages/components/container';
function Page() {
return <MarkdownDocs req={req} reqSource={reqSource} reqPrefix={reqPrefix} />;
}
export default Page;
|
admin/client/App/screens/Item/components/EditForm.js
|
frontyard/keystone
|
import React from 'react';
import moment from 'moment';
import assign from 'object-assign';
import {
Form,
FormField,
FormInput,
Grid,
ResponsiveText,
} from '../../../elemental';
import { Fields } from 'FieldTypes';
import { fade } from '../../../../utils/color';
import theme from '../../../../theme';
import { Button, LoadingButton } from '../../../elemental';
import AlertMessages from '../../../shared/AlertMessages';
import ConfirmationDialog from '../../../shared/ConfirmationDialog';
import FormHeading from './FormHeading';
import AltText from './AltText';
import FooterBar from './FooterBar';
import InvalidFieldType from '../../../shared/InvalidFieldType';
import { deleteItem } from '../actions';
import { upcase } from '../../../../utils/string';
import { ASYNC_FIELD_LOADING, ASYNC_FIELD_LOADED } from '../constants';
function getNameFromData (data) {
if (typeof data === 'object') {
if (typeof data.first === 'string' && typeof data.last === 'string') {
return data.first + ' ' + data.last;
} else if (data.id) {
return data.id;
}
}
return data;
}
function smoothScrollTop () {
var position = window.scrollY || window.pageYOffset;
var speed = position / 10;
if (position > 1) {
var newPosition = position - speed;
window.scrollTo(0, newPosition);
window.requestAnimationFrame(smoothScrollTop);
} else {
window.scrollTo(0, 0);
}
}
var EditForm = React.createClass({
displayName: 'EditForm',
propTypes: {
data: React.PropTypes.object,
list: React.PropTypes.object,
},
getInitialState () {
var hasAsyncFields = !!this.props.list.columns.find(col => {
if (col.field && col.field.type === 'relationship') {
var fieldData = this.props.data.fields[col.field.path];
return col.field.many ? fieldData.length > 0 : fieldData;
} else {
return false;
}
});
return {
values: assign({}, this.props.data.fields),
confirmationDialog: null,
loading: hasAsyncFields,
hasLoaded: !hasAsyncFields,
lastValues: null, // used for resetting
focusFirstField: !this.props.list.nameField && !this.props.list.nameFieldIsFormHeader,
};
},
componentDidMount () {
this.__isMounted = true;
},
componentWillUnmount () {
this.__isMounted = false;
},
getFieldProps (field) {
const props = assign({}, field);
const alerts = this.state.alerts;
// Display validation errors inline
if (alerts && alerts.error && alerts.error.error === 'validation errors') {
if (alerts.error.detail[field.path]) {
// NOTE: This won't work yet, as ElementalUI doesn't allow
// passed in isValid, only invalidates via internal state.
// PR to fix that: https://github.com/elementalui/elemental/pull/149
props.isValid = false;
}
}
props.value = this.state.values[field.path] === undefined ? field.defaultValue : this.state.values[field.path];
props.values = this.state.values;
props.onChange = this.handleChange;
props.mode = 'edit';
// add a callback on RelationshipField element props to call when values are fully loaded
if (props.type === 'relationship' && !this.state.hasLoaded) {
if (props.many && props.value.length > 0 || !props.many && !!props.value) {
this.registerAsyncField(field.path);
props.onValuesLoaded = this.onAsyncFieldValuesLoaded;
}
}
return props;
},
registerAsyncField (fieldName) {
this.__asyncFields = this.__asyncFields || {};
this.__asyncFields[fieldName] = this.__asyncFields[fieldName] || ASYNC_FIELD_LOADING;
},
onAsyncFieldValuesLoaded (fieldName) {
this.__asyncFields[fieldName] = ASYNC_FIELD_LOADED;
var isLoadingComplete = Object.values(this.__asyncFields).filter(asyncStatus => asyncStatus !== ASYNC_FIELD_LOADED).length === 0;
this.setState({
loading: !isLoadingComplete,
hasLoaded: isLoadingComplete
});
},
handleChange (event) {
const values = assign({}, this.state.values);
values[event.path] = event.value;
this.setState({ values });
},
toggleDeleteDialog () {
this.setState({
deleteDialogIsOpen: !this.state.deleteDialogIsOpen,
});
},
toggleResetDialog () {
this.setState({
resetDialogIsOpen: !this.state.resetDialogIsOpen,
});
},
handleReset () {
this.setState({
values: assign({}, this.state.lastValues || this.props.data.fields),
resetDialogIsOpen: false,
});
},
handleDelete () {
const { data } = this.props;
this.props.dispatch(deleteItem(data.id, this.props.router));
},
handleKeyFocus () {
const input = this.refs.keyOrIdInput;
input.select();
},
removeConfirmationDialog () {
this.setState({
confirmationDialog: null,
});
},
updateItem () {
const { data, list } = this.props;
const editForm = this.refs.editForm;
// Fix for Safari where XHR form submission fails when input[type=file] is empty
// https://stackoverflow.com/questions/49614091/safari-11-1-ajax-xhr-form-submission-fails-when-inputtype-file-is-empty
$(editForm).find("input[type='file']").each(function () {
if ($(this).get(0).files.length === 0) { $(this).prop('disabled', true); }
});
const formData = new FormData(editForm);
$(editForm).find("input[type='file']").each(function () {
if ($(this).get(0).files.length === 0) { $(this).prop('disabled', false); }
});
// Show loading indicator
this.setState({
loading: true,
});
list.updateItem(data.id, formData, (err, data) => {
smoothScrollTop();
if (err) {
this.setState({
alerts: {
error: err,
},
loading: false,
});
} else {
// Success, display success flash messages, replace values
// TODO: Update key value
this.setState({
alerts: {
success: {
success: 'Your changes have been saved successfully',
},
},
lastValues: this.state.values,
values: data.fields,
loading: false,
});
}
});
},
renderKeyOrId () {
var className = 'EditForm__key-or-id';
var list = this.props.list;
if (list.nameField && list.autokey && this.props.data[list.autokey.path]) {
return (
<div className={className}>
<AltText
modified="ID:"
normal={`${upcase(list.autokey.path)}: `}
title="Press <alt> to reveal the ID"
className="EditForm__key-or-id__label" />
<AltText
modified={<input ref="keyOrIdInput" onFocus={this.handleKeyFocus} value={this.props.data.id} className="EditForm__key-or-id__input" readOnly />}
normal={<input ref="keyOrIdInput" onFocus={this.handleKeyFocus} value={this.props.data[list.autokey.path]} className="EditForm__key-or-id__input" readOnly />}
title="Press <alt> to reveal the ID"
className="EditForm__key-or-id__field" />
</div>
);
} else if (list.autokey && this.props.data[list.autokey.path]) {
return (
<div className={className}>
<span className="EditForm__key-or-id__label">{list.autokey.path}: </span>
<div className="EditForm__key-or-id__field">
<input ref="keyOrIdInput" onFocus={this.handleKeyFocus} value={this.props.data[list.autokey.path]} className="EditForm__key-or-id__input" readOnly />
</div>
</div>
);
} else if (list.nameField) {
return (
<div className={className}>
<span className="EditForm__key-or-id__label">ID: </span>
<div className="EditForm__key-or-id__field">
<input ref="keyOrIdInput" onFocus={this.handleKeyFocus} value={this.props.data.id} className="EditForm__key-or-id__input" readOnly />
</div>
</div>
);
}
},
renderNameField () {
var nameField = this.props.list.nameField;
var nameFieldIsFormHeader = this.props.list.nameFieldIsFormHeader;
var wrapNameField = field => (
<div className="EditForm__name-field">
{field}
</div>
);
if (nameFieldIsFormHeader) {
var nameFieldProps = this.getFieldProps(nameField);
nameFieldProps.label = null;
nameFieldProps.size = 'full';
nameFieldProps.autoFocus = true;
nameFieldProps.inputProps = {
className: 'item-name-field',
placeholder: nameField.label,
size: 'large',
};
return wrapNameField(
React.createElement(Fields[nameField.type], nameFieldProps)
);
} else {
return wrapNameField(
<h2>{this.props.data.name || '(no name)'}</h2>
);
}
},
renderFormElements () {
var headings = 0;
return this.props.list.uiElements.map((el, index) => {
// Don't render the name field if it is the header since it'll be rendered in BIG above
// the list. (see renderNameField method, this is the reverse check of the one it does)
if (
this.props.list.nameField
&& el.field === this.props.list.nameField.path
&& this.props.list.nameFieldIsFormHeader
) return;
if (el.type === 'heading') {
headings++;
el.options.values = this.state.values;
el.key = 'h-' + headings;
return React.createElement(FormHeading, el);
}
if (el.type === 'field') {
var field = this.props.list.fields[el.field];
var props = this.getFieldProps(field);
if (typeof Fields[field.type] !== 'function') {
return React.createElement(InvalidFieldType, { type: field.type, path: field.path, key: field.path });
}
props.key = field.path;
if (index === 0 && this.state.focusFirstField) {
props.autoFocus = true;
}
return React.createElement(Fields[field.type], props);
}
}, this);
},
renderFooterBar () {
if (this.props.list.noedit && this.props.list.nodelete) {
return null;
}
const { loading, hasLoaded } = this.state;
const loadingButtonText = loading
? hasLoaded
? 'Saving'
: 'Loading'
: 'Save';
// Padding must be applied inline so the FooterBar can determine its
// innerHeight at runtime. Aphrodite's styling comes later...
return (
<FooterBar style={styles.footerbar}>
<div style={styles.footerbarInner}>
{!this.props.list.noedit && (
<LoadingButton
color="primary"
disabled={loading}
loading={loading}
onClick={this.updateItem}
data-button="update"
>
{loadingButtonText}
</LoadingButton>
)}
{!this.props.list.noedit && (
<Button disabled={loading} onClick={this.toggleResetDialog} variant="link" color="cancel" data-button="reset">
<ResponsiveText
hiddenXS="reset changes"
visibleXS="reset"
/>
</Button>
)}
{!this.props.list.nodelete && (
<Button disabled={loading} onClick={this.toggleDeleteDialog} variant="link" color="delete" style={styles.deleteButton} data-button="delete">
<ResponsiveText
hiddenXS={`delete ${this.props.list.singular.toLowerCase()}`}
visibleXS="delete"
/>
</Button>
)}
</div>
</FooterBar>
);
},
renderTrackingMeta () {
// TODO: These fields are visible now, so we don't want this. We may revisit
// it when we have more granular control over hiding fields in certain
// contexts, so I'm leaving this code here as a reference for now - JW
if (true) return null; // if (true) prevents unreachable code linter errpr
if (!this.props.list.tracking) return null;
var elements = [];
var data = {};
if (this.props.list.tracking.createdAt) {
data.createdAt = this.props.data.fields[this.props.list.tracking.createdAt];
if (data.createdAt) {
elements.push(
<FormField key="createdAt" label="Created on">
<FormInput noedit title={moment(data.createdAt).format('DD/MM/YYYY h:mm:ssa')}>{moment(data.createdAt).format('Do MMM YYYY')}</FormInput>
</FormField>
);
}
}
if (this.props.list.tracking.createdBy) {
data.createdBy = this.props.data.fields[this.props.list.tracking.createdBy];
if (data.createdBy && data.createdBy.name) {
let createdByName = getNameFromData(data.createdBy.name);
if (createdByName) {
elements.push(
<FormField key="createdBy" label="Created by">
<FormInput noedit>{data.createdBy.name.first} {data.createdBy.name.last}</FormInput>
</FormField>
);
}
}
}
if (this.props.list.tracking.updatedAt) {
data.updatedAt = this.props.data.fields[this.props.list.tracking.updatedAt];
if (data.updatedAt && (!data.createdAt || data.createdAt !== data.updatedAt)) {
elements.push(
<FormField key="updatedAt" label="Updated on">
<FormInput noedit title={moment(data.updatedAt).format('DD/MM/YYYY h:mm:ssa')}>{moment(data.updatedAt).format('Do MMM YYYY')}</FormInput>
</FormField>
);
}
}
if (this.props.list.tracking.updatedBy) {
data.updatedBy = this.props.data.fields[this.props.list.tracking.updatedBy];
if (data.updatedBy && data.updatedBy.name) {
let updatedByName = getNameFromData(data.updatedBy.name);
if (updatedByName) {
elements.push(
<FormField key="updatedBy" label="Updated by">
<FormInput noedit>{data.updatedBy.name.first} {data.updatedBy.name.last}</FormInput>
</FormField>
);
}
}
}
return Object.keys(elements).length ? (
<div className="EditForm__meta">
<h3 className="form-heading">Meta</h3>
{elements}
</div>
) : null;
},
render () {
return (
<form ref="editForm" className="EditForm-container">
{(this.state.alerts) ? <AlertMessages alerts={this.state.alerts} /> : null}
<Grid.Row>
<Grid.Col large="three-quarters">
<Form layout="horizontal" component="div">
{this.renderNameField()}
{this.renderKeyOrId()}
{this.renderFormElements()}
{this.renderTrackingMeta()}
</Form>
</Grid.Col>
<Grid.Col large="one-quarter"><span /></Grid.Col>
</Grid.Row>
{this.renderFooterBar()}
<ConfirmationDialog
confirmationLabel="Reset"
isOpen={this.state.resetDialogIsOpen}
onCancel={this.toggleResetDialog}
onConfirmation={this.handleReset}
>
<p>Reset your changes to <strong>{this.props.data.name}</strong>?</p>
</ConfirmationDialog>
<ConfirmationDialog
confirmationLabel="Delete"
isOpen={this.state.deleteDialogIsOpen}
onCancel={this.toggleDeleteDialog}
onConfirmation={this.handleDelete}
>
Are you sure you want to delete <strong>{this.props.data.name}?</strong>
<br />
<br />
This cannot be undone.
</ConfirmationDialog>
</form>
);
},
});
const styles = {
footerbar: {
backgroundColor: fade(theme.color.body, 93),
boxShadow: '0 -2px 0 rgba(0, 0, 0, 0.1)',
paddingBottom: 20,
paddingTop: 20,
zIndex: 99,
},
footerbarInner: {
height: theme.component.height, // FIXME aphrodite bug
},
deleteButton: {
float: 'right',
},
};
module.exports = EditForm;
|
src/svg-icons/hardware/phone-iphone.js
|
mmrtnz/material-ui
|
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePhoneIphone = (props) => (
<SvgIcon {...props}>
<path d="M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v14z"/>
</SvgIcon>
);
HardwarePhoneIphone = pure(HardwarePhoneIphone);
HardwarePhoneIphone.displayName = 'HardwarePhoneIphone';
HardwarePhoneIphone.muiName = 'SvgIcon';
export default HardwarePhoneIphone;
|
Examples/UIExplorer/NetInfoExample.js
|
imWildCat/react-native
|
/**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* 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 NON INFRINGEMENT. IN NO EVENT SHALL
* FACEBOOK 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.
*
* @flow
*/
'use strict';
var React = require('react-native');
var {
NetInfo,
Text,
View
} = React;
var ReachabilitySubscription = React.createClass({
getInitialState() {
return {
reachabilityHistory: [],
};
},
componentDidMount: function() {
NetInfo.addEventListener(
'change',
this._handleReachabilityChange
);
},
componentWillUnmount: function() {
NetInfo.removeEventListener(
'change',
this._handleReachabilityChange
);
},
_handleReachabilityChange: function(reachability) {
var reachabilityHistory = this.state.reachabilityHistory.slice();
reachabilityHistory.push(reachability);
this.setState({
reachabilityHistory,
});
},
render() {
return (
<View>
<Text>{JSON.stringify(this.state.reachabilityHistory)}</Text>
</View>
);
}
});
var ReachabilityCurrent = React.createClass({
getInitialState() {
return {
reachability: null,
};
},
componentDidMount: function() {
NetInfo.addEventListener(
'change',
this._handleReachabilityChange
);
NetInfo.fetch().done(
(reachability) => { this.setState({reachability}); }
);
},
componentWillUnmount: function() {
NetInfo.removeEventListener(
'change',
this._handleReachabilityChange
);
},
_handleReachabilityChange: function(reachability) {
this.setState({
reachability,
});
},
render() {
return (
<View>
<Text>{this.state.reachability}</Text>
</View>
);
}
});
var IsConnected = React.createClass({
getInitialState() {
return {
isConnected: null,
};
},
componentDidMount: function() {
NetInfo.isConnected.addEventListener(
'change',
this._handleConnectivityChange
);
NetInfo.isConnected.fetch().done(
(isConnected) => { this.setState({isConnected}); }
);
},
componentWillUnmount: function() {
NetInfo.isConnected.removeEventListener(
'change',
this._handleConnectivityChange
);
},
_handleConnectivityChange: function(isConnected) {
this.setState({
isConnected,
});
},
render() {
return (
<View>
<Text>{this.state.isConnected ? 'Online' : 'Offline'}</Text>
</View>
);
}
});
exports.title = 'NetInfo';
exports.description = 'Monitor network status';
exports.examples = [
{
title: 'NetInfo.isConnected',
description: 'Asynchronously load and observe connectivity',
render(): ReactElement { return <IsConnected />; }
},
{
title: 'NetInfo.reachabilityIOS',
description: 'Asynchronously load and observe iOS reachability',
render(): ReactElement { return <ReachabilityCurrent />; }
},
{
title: 'NetInfo.reachabilityIOS',
description: 'Observed updates to iOS reachability',
render(): ReactElement { return <ReachabilitySubscription />; }
},
];
|
catalogsite/app/scripts/app.js
|
yofret/testrepo
|
//--------------------------------------------------------------
// Dependecies
//--------------------------------------------------------------
import React, { Component } from 'react';
//--------------------------------------------------------------
// Class definition
//--------------------------------------------------------------
class App extends Component {
render() {
return (
<div className='wrapper'>
<h1 className='title'>Ready for this stuff</h1>
<p className='desc'>
Gulp + Webpack + React Boilerplate <br/>
is up to you whats next....
</p>
<div className='image-wrapper'>
<img src='images/one.jpg' />
</div>
</div>
);
}
}
export default App;
|
packages/mineral-ui-icons/src/IconAddAlert.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 IconAddAlert(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>
<g>
<path d="M10.01 21.01c0 1.1.89 1.99 1.99 1.99s1.99-.89 1.99-1.99h-3.98zm8.87-4.19V11c0-3.25-2.25-5.97-5.29-6.69v-.72C13.59 2.71 12.88 2 12 2s-1.59.71-1.59 1.59v.72A6.873 6.873 0 0 0 5.12 11v5.82L3 18.94V20h18v-1.06l-2.12-2.12zM16 13.01h-3v3h-2v-3H8V11h3V8h2v3h3v2.01z"/>
</g>
</Icon>
);
}
IconAddAlert.displayName = 'IconAddAlert';
IconAddAlert.category = 'alert';
|
ajax/libs/ag-grid/12.0.2/lib/utils.js
|
ahocevar/cdnjs
|
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v12.0.2
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var FUNCTION_STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
var FUNCTION_ARGUMENT_NAMES = /([^\s,]+)/g;
// util class, only used when debugging, for printing time to console
var Timer = (function () {
function Timer() {
this.timestamp = new Date().getTime();
}
Timer.prototype.print = function (msg) {
var duration = (new Date().getTime()) - this.timestamp;
console.log(msg + " = " + duration);
this.timestamp = new Date().getTime();
};
return Timer;
}());
exports.Timer = Timer;
/** HTML Escapes. */
var HTML_ESCAPES = {
'&': '&',
'<': '<',
'>': '>',
'"': '"',
"'": '''
};
var reUnescapedHtml = /[&<>"']/g;
var Utils = (function () {
function Utils() {
}
// returns true if the event is close to the original event by X pixels either vertically or horizontally.
// we only start dragging after X pixels so this allows us to know if we should start dragging yet.
Utils.areEventsNear = function (e1, e2, pixelCount) {
// by default, we wait 4 pixels before starting the drag
if (pixelCount === 0) {
return false;
}
var diffX = Math.abs(e1.clientX - e2.clientX);
var diffY = Math.abs(e1.clientY - e2.clientY);
return Math.max(diffX, diffY) <= pixelCount;
};
Utils.shallowCompare = function (arr1, arr2) {
// if both are missing, then they are the same
if (this.missing(arr1) && this.missing(arr2)) {
return true;
}
// if one is present, but other is missing, then then are different
if (this.missing(arr1) || this.missing(arr2)) {
return false;
}
if (arr1.length !== arr2.length) {
return false;
}
for (var i = 0; i < arr1.length; i++) {
if (arr1[i] !== arr2[i]) {
return false;
}
}
return true;
};
Utils.getNameOfClass = function (TheClass) {
var funcNameRegex = /function (.{1,})\(/;
var funcAsString = TheClass.toString();
var results = (funcNameRegex).exec(funcAsString);
return (results && results.length > 1) ? results[1] : "";
};
Utils.values = function (object) {
var result = [];
this.iterateObject(object, function (key, value) {
result.push(value);
});
return result;
};
Utils.getValueUsingField = function (data, field, fieldContainsDots) {
if (!field || !data) {
return;
}
// if no '.', then it's not a deep value
if (!fieldContainsDots) {
return data[field];
}
else {
// otherwise it is a deep value, so need to dig for it
var fields = field.split('.');
var currentObject = data;
for (var i = 0; i < fields.length; i++) {
currentObject = currentObject[fields[i]];
if (this.missing(currentObject)) {
return null;
}
}
return currentObject;
}
};
Utils.getScrollLeft = function (element, rtl) {
var scrollLeft = element.scrollLeft;
if (rtl) {
// Absolute value - for FF that reports RTL scrolls in negative numbers
scrollLeft = Math.abs(scrollLeft);
// Get Chrome and Safari to return the same value as well
if (this.isBrowserSafari() || this.isBrowserChrome()) {
scrollLeft = element.scrollWidth - element.clientWidth - scrollLeft;
}
}
return scrollLeft;
};
Utils.cleanNumber = function (value) {
if (typeof value === 'string') {
value = parseInt(value);
}
if (typeof value === 'number') {
value = Math.floor(value);
}
else {
value = null;
}
return value;
};
Utils.setScrollLeft = function (element, value, rtl) {
if (rtl) {
// Chrome and Safari when doing RTL have the END position of the scroll as zero, not the start
if (this.isBrowserSafari() || this.isBrowserChrome()) {
value = element.scrollWidth - element.clientWidth - value;
}
// Firefox uses negative numbers when doing RTL scrolling
if (this.isBrowserFirefox()) {
value *= -1;
}
}
element.scrollLeft = value;
};
Utils.iterateObject = function (object, callback) {
if (this.missing(object)) {
return;
}
var keys = Object.keys(object);
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
var value = object[key];
callback(key, value);
}
};
Utils.cloneObject = function (object) {
var copy = {};
var keys = Object.keys(object);
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
var value = object[key];
copy[key] = value;
}
return copy;
};
Utils.map = function (array, callback) {
var result = [];
for (var i = 0; i < array.length; i++) {
var item = array[i];
var mappedItem = callback(item);
result.push(mappedItem);
}
return result;
};
Utils.mapObject = function (object, callback) {
var result = [];
Utils.iterateObject(object, function (key, value) {
result.push(callback(value));
});
return result;
};
Utils.forEach = function (array, callback) {
if (!array) {
return;
}
for (var i = 0; i < array.length; i++) {
var value = array[i];
callback(value, i);
}
};
Utils.filter = function (array, callback) {
var result = [];
array.forEach(function (item) {
if (callback(item)) {
result.push(item);
}
});
return result;
};
Utils.getAllKeysInObjects = function (objects) {
var allValues = {};
objects.forEach(function (obj) {
if (obj) {
Object.keys(obj).forEach(function (key) { return allValues[key] = null; });
}
});
return Object.keys(allValues);
};
Utils.mergeDeep = function (into, source) {
if (this.exists(source)) {
this.iterateObject(source, function (key, target) {
var currentValue = into[key];
if (currentValue == null) {
into[key] = target;
return;
}
if (typeof currentValue === 'object') {
if (target) {
Utils.mergeDeep(currentValue, target);
return;
}
}
if (target) {
into[key] = target;
}
});
}
};
Utils.assign = function (object, source) {
if (this.exists(source)) {
this.iterateObject(source, function (key, value) {
object[key] = value;
});
}
};
Utils.parseYyyyMmDdToDate = function (yyyyMmDd, separator) {
try {
if (!yyyyMmDd)
return null;
if (yyyyMmDd.indexOf(separator) === -1)
return null;
var fields = yyyyMmDd.split(separator);
if (fields.length != 3)
return null;
return new Date(Number(fields[0]), Number(fields[1]) - 1, Number(fields[2]));
}
catch (e) {
return null;
}
};
Utils.serializeDateToYyyyMmDd = function (date, separator) {
if (!date)
return null;
return date.getFullYear() + separator + Utils.pad(date.getMonth() + 1, 2) + separator + Utils.pad(date.getDate(), 2);
};
Utils.pad = function (num, totalStringSize) {
var asString = num + "";
while (asString.length < totalStringSize)
asString = "0" + asString;
return asString;
};
Utils.pushAll = function (target, source) {
if (this.missing(source) || this.missing(target)) {
return;
}
source.forEach(function (func) { return target.push(func); });
};
Utils.createArrayOfNumbers = function (first, last) {
var result = [];
for (var i = first; i <= last; i++) {
result.push(i);
}
return result;
};
Utils.getFunctionParameters = function (func) {
var fnStr = func.toString().replace(FUNCTION_STRIP_COMMENTS, '');
var result = fnStr.slice(fnStr.indexOf('(') + 1, fnStr.indexOf(')')).match(FUNCTION_ARGUMENT_NAMES);
if (result === null) {
return [];
}
else {
return result;
}
};
Utils.find = function (collection, predicate, value) {
if (collection === null || collection === undefined) {
return null;
}
if (!Array.isArray(collection)) {
var objToArray = this.values(collection);
return this.find(objToArray, predicate, value);
}
var collectionAsArray = collection;
var firstMatchingItem;
for (var i = 0; i < collectionAsArray.length; i++) {
var item = collectionAsArray[i];
if (typeof predicate === 'string') {
if (item[predicate] === value) {
firstMatchingItem = item;
break;
}
}
else {
var callback = predicate;
if (callback(item)) {
firstMatchingItem = item;
break;
}
}
}
return firstMatchingItem;
};
Utils.toStrings = function (array) {
return this.map(array, function (item) {
if (item === undefined || item === null || !item.toString) {
return null;
}
else {
return item.toString();
}
});
};
Utils.iterateArray = function (array, callback) {
for (var index = 0; index < array.length; index++) {
var value = array[index];
callback(value, index);
}
};
//Returns true if it is a DOM node
//taken from: http://stackoverflow.com/questions/384286/javascript-isdom-how-do-you-check-if-a-javascript-object-is-a-dom-object
Utils.isNode = function (o) {
return (typeof Node === "function" ? o instanceof Node :
o && typeof o === "object" && typeof o.nodeType === "number" && typeof o.nodeName === "string");
};
//Returns true if it is a DOM element
//taken from: http://stackoverflow.com/questions/384286/javascript-isdom-how-do-you-check-if-a-javascript-object-is-a-dom-object
Utils.isElement = function (o) {
return (typeof HTMLElement === "function" ? o instanceof HTMLElement :
o && typeof o === "object" && o !== null && o.nodeType === 1 && typeof o.nodeName === "string");
};
Utils.isNodeOrElement = function (o) {
return this.isNode(o) || this.isElement(o);
};
Utils.isEventFromPrintableCharacter = function (event) {
var pressedChar = String.fromCharCode(event.charCode);
if (exports._.exists(event.key)) {
// modern browser will implement key, so we return if key is length 1, eg if it is 'a' for the
// a key, or '2' for the '2' key. non-printable characters have names, eg 'Enter' or 'Backspace'.
return event.key.length === 1;
}
else {
// otherwise, for older browsers, we test against a list of characters, which doesn't include
// accents for non-English, but don't care much, as most users are on modern browsers
return Utils.PRINTABLE_CHARACTERS.indexOf(pressedChar) >= 0;
}
};
//adds all type of change listeners to an element, intended to be a text field
Utils.addChangeListener = function (element, listener) {
element.addEventListener("changed", listener);
element.addEventListener("paste", listener);
element.addEventListener("input", listener);
// IE doesn't fire changed for special keys (eg delete, backspace), so need to
// listen for this further ones
element.addEventListener("keydown", listener);
element.addEventListener("keyup", listener);
};
//if value is undefined, null or blank, returns null, otherwise returns the value
Utils.makeNull = function (value) {
if (value === null || value === undefined || value === "") {
return null;
}
else {
return value;
}
};
Utils.missing = function (value) {
return !this.exists(value);
};
Utils.missingOrEmpty = function (value) {
return this.missing(value) || value.length === 0;
};
Utils.missingOrEmptyObject = function (value) {
return this.missing(value) || Object.keys(value).length === 0;
};
Utils.exists = function (value) {
if (value === null || value === undefined || value === '') {
return false;
}
else {
return true;
}
};
Utils.anyExists = function (values) {
if (values) {
for (var i = 0; i < values.length; i++) {
if (this.exists(values[i])) {
return true;
}
}
}
return false;
};
Utils.existsAndNotEmpty = function (value) {
return this.exists(value) && value.length > 0;
};
Utils.removeAllChildren = function (node) {
if (node) {
while (node.hasChildNodes()) {
node.removeChild(node.lastChild);
}
}
};
Utils.removeElement = function (parent, cssSelector) {
this.removeFromParent(parent.querySelector(cssSelector));
};
Utils.removeFromParent = function (node) {
if (node && node.parentNode) {
node.parentNode.removeChild(node);
}
};
Utils.isVisible = function (element) {
return (element.offsetParent !== null);
};
/**
* loads the template and returns it as an element. makes up for no simple way in
* the dom api to load html directly, eg we cannot do this: document.createElement(template)
*/
Utils.loadTemplate = function (template) {
var tempDiv = document.createElement("div");
tempDiv.innerHTML = template;
return tempDiv.firstChild;
};
Utils.addOrRemoveCssClass = function (element, className, addOrRemove) {
if (addOrRemove) {
this.addCssClass(element, className);
}
else {
this.removeCssClass(element, className);
}
};
Utils.callIfPresent = function (func) {
if (func) {
func();
}
};
Utils.addCssClass = function (element, className) {
var _this = this;
if (!className || className.length === 0) {
return;
}
if (className.indexOf(' ') >= 0) {
className.split(' ').forEach(function (value) { return _this.addCssClass(element, value); });
return;
}
if (element.classList) {
element.classList.add(className);
}
else {
if (element.className && element.className.length > 0) {
var cssClasses = element.className.split(' ');
if (cssClasses.indexOf(className) < 0) {
cssClasses.push(className);
element.className = cssClasses.join(' ');
}
}
else {
element.className = className;
}
}
};
Utils.containsClass = function (element, className) {
if (element.classList) {
// for modern browsers
return element.classList.contains(className);
}
else if (element.className) {
// for older browsers, check against the string of class names
// if only one class, can check for exact match
var onlyClass = element.className === className;
// if many classes, check for class name, we have to pad with ' ' to stop other
// class names that are a substring of this class
var contains = element.className.indexOf(' ' + className + ' ') >= 0;
// the padding above then breaks when it's the first or last class names
var startsWithClass = element.className.indexOf(className + ' ') === 0;
var endsWithClass = element.className.lastIndexOf(' ' + className) === (element.className.length - className.length - 1);
return onlyClass || contains || startsWithClass || endsWithClass;
}
else {
// if item is not a node
return false;
}
};
Utils.getElementAttribute = function (element, attributeName) {
if (element.attributes) {
if (element.attributes[attributeName]) {
var attribute = element.attributes[attributeName];
return attribute.value;
}
else {
return null;
}
}
else {
return null;
}
};
Utils.offsetHeight = function (element) {
return element && element.clientHeight ? element.clientHeight : 0;
};
Utils.offsetWidth = function (element) {
return element && element.clientWidth ? element.clientWidth : 0;
};
Utils.removeCssClass = function (element, className) {
if (element.className && element.className.length > 0) {
var cssClasses = element.className.split(' ');
var index = cssClasses.indexOf(className);
if (index >= 0) {
cssClasses.splice(index, 1);
element.className = cssClasses.join(' ');
}
}
};
Utils.removeRepeatsFromArray = function (array, object) {
if (!array) {
return;
}
for (var index = array.length - 2; index >= 0; index--) {
var thisOneMatches = array[index] === object;
var nextOneMatches = array[index + 1] === object;
if (thisOneMatches && nextOneMatches) {
array.splice(index + 1, 1);
}
}
};
Utils.removeFromArray = function (array, object) {
if (array.indexOf(object) >= 0) {
array.splice(array.indexOf(object), 1);
}
};
Utils.removeAllFromArray = function (array, toRemove) {
toRemove.forEach(function (item) {
if (array.indexOf(item) >= 0) {
array.splice(array.indexOf(item), 1);
}
});
};
Utils.insertIntoArray = function (array, object, toIndex) {
array.splice(toIndex, 0, object);
};
Utils.insertArrayIntoArray = function (dest, src, toIndex) {
if (this.missing(dest) || this.missing(src)) {
return;
}
// put items in backwards, otherwise inserted items end up in reverse order
for (var i = src.length - 1; i >= 0; i--) {
var item = src[i];
this.insertIntoArray(dest, item, toIndex);
}
};
Utils.moveInArray = function (array, objectsToMove, toIndex) {
var _this = this;
// first take out it items from the array
objectsToMove.forEach(function (obj) {
_this.removeFromArray(array, obj);
});
// now add the objects, in same order as provided to us, that means we start at the end
// as the objects will be pushed to the right as they are inserted
objectsToMove.slice().reverse().forEach(function (obj) {
_this.insertIntoArray(array, obj, toIndex);
});
};
Utils.defaultComparator = function (valueA, valueB, accentedCompare) {
if (accentedCompare === void 0) { accentedCompare = false; }
var valueAMissing = valueA === null || valueA === undefined;
var valueBMissing = valueB === null || valueB === undefined;
if (valueAMissing && valueBMissing) {
return 0;
}
if (valueAMissing) {
return -1;
}
if (valueBMissing) {
return 1;
}
if (typeof valueA === "string") {
if (!accentedCompare) {
return doQuickCompare(valueA, valueB);
}
else {
try {
// using local compare also allows chinese comparisons
return valueA.localeCompare(valueB);
}
catch (e) {
// if something wrong with localeCompare, eg not supported
// by browser, then just continue with the quick one
return doQuickCompare(valueA, valueB);
}
}
}
if (valueA < valueB) {
return -1;
}
else if (valueA > valueB) {
return 1;
}
else {
return 0;
}
function doQuickCompare(a, b) {
return (a > b ? 1 : (a < b ? -1 : 0));
}
};
Utils.compareArrays = function (array1, array2) {
if (this.missing(array1) && this.missing(array2)) {
return true;
}
if (this.missing(array1) || this.missing(array2)) {
return false;
}
if (array1.length !== array2.length) {
return false;
}
for (var i = 0; i < array1.length; i++) {
if (array1[i] !== array2[i]) {
return false;
}
}
return true;
};
Utils.ensureDomOrder = function (eContainer, eChild, eChildBefore) {
// if already in right order, do nothing
if (eChildBefore && eChildBefore.nextSibling === eChild) {
return;
}
if (eChildBefore) {
if (eChildBefore.nextSibling) {
// insert between the eRowBefore and the row after it
eContainer.insertBefore(eChild, eChildBefore.nextSibling);
}
else {
// if nextSibling is missing, means other row is at end, so just append new row at the end
eContainer.appendChild(eChild);
}
}
else {
// otherwise put at start
if (eContainer.firstChild) {
// insert it at the first location
eContainer.insertBefore(eChild, eContainer.firstChild);
}
}
};
Utils.insertWithDomOrder = function (eContainer, eChild, eChildBefore) {
if (eChildBefore) {
if (eChildBefore.nextSibling) {
// insert between the eRowBefore and the row after it
eContainer.insertBefore(eChild, eChildBefore.nextSibling);
}
else {
// if nextSibling is missing, means other row is at end, so just append new row at the end
eContainer.appendChild(eChild);
}
}
else {
if (eContainer.firstChild) {
// insert it at the first location
eContainer.insertBefore(eChild, eContainer.firstChild);
}
else {
// otherwise eContainer is empty, so just append it
eContainer.appendChild(eChild);
}
}
};
Utils.toStringOrNull = function (value) {
if (this.exists(value) && value.toString) {
return value.toString();
}
else {
return null;
}
};
Utils.formatWidth = function (width) {
if (typeof width === "number") {
return width + "px";
}
else {
return width;
}
};
Utils.formatNumberTwoDecimalPlacesAndCommas = function (value) {
if (typeof value !== 'number') {
return '';
}
// took this from: http://blog.tompawlak.org/number-currency-formatting-javascript
return (Math.round(value * 100) / 100).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,");
};
// the native method number.toLocaleString(undefined, {minimumFractionDigits: 0}) puts in decimal places in IE,
// so we use this method instead
Utils.formatNumberCommas = function (value) {
if (typeof value !== 'number') {
return '';
}
// took this from: http://blog.tompawlak.org/number-currency-formatting-javascript
return value.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,");
};
Utils.prependDC = function (parent, documentFragment) {
if (this.exists(parent.firstChild)) {
parent.insertBefore(documentFragment, parent.firstChild);
}
else {
parent.appendChild(documentFragment);
}
};
// static prepend(parent: HTMLElement, child: HTMLElement): void {
// if (this.exists(parent.firstChild)) {
// parent.insertBefore(child, parent.firstChild);
// } else {
// parent.appendChild(child);
// }
// }
/**
* If icon provided, use this (either a string, or a function callback).
* if not, then use the second parameter, which is the svgFactory function
*/
Utils.createIcon = function (iconName, gridOptionsWrapper, column, svgFactoryFunc) {
var eResult = document.createElement('span');
eResult.appendChild(this.createIconNoSpan(iconName, gridOptionsWrapper, column, svgFactoryFunc));
return eResult;
};
Utils.createIconNoSpan = function (iconName, gridOptionsWrapper, column, svgFactoryFunc) {
var userProvidedIcon;
// check col for icon first
if (column && column.getColDef().icons) {
userProvidedIcon = column.getColDef().icons[iconName];
}
// it not in col, try grid options
if (!userProvidedIcon && gridOptionsWrapper.getIcons()) {
userProvidedIcon = gridOptionsWrapper.getIcons()[iconName];
}
// now if user provided, use it
if (userProvidedIcon) {
var rendererResult = void 0;
if (typeof userProvidedIcon === 'function') {
rendererResult = userProvidedIcon();
}
else if (typeof userProvidedIcon === 'string') {
rendererResult = userProvidedIcon;
}
else {
throw 'icon from grid options needs to be a string or a function';
}
if (typeof rendererResult === 'string') {
return this.loadTemplate(rendererResult);
}
else if (this.isNodeOrElement(rendererResult)) {
return rendererResult;
}
else {
throw 'iconRenderer should return back a string or a dom object';
}
}
else {
// otherwise we use the built in icon
if (svgFactoryFunc) {
return svgFactoryFunc();
}
else {
return null;
}
}
};
Utils.addStylesToElement = function (eElement, styles) {
if (!styles) {
return;
}
Object.keys(styles).forEach(function (key) {
eElement.style[key] = styles[key];
});
};
Utils.isHorizontalScrollShowing = function (element) {
return element.clientWidth < element.scrollWidth;
};
Utils.isVerticalScrollShowing = function (element) {
return element.clientHeight < element.scrollHeight;
};
Utils.getScrollbarWidth = function () {
var outer = document.createElement("div");
outer.style.visibility = "hidden";
outer.style.width = "100px";
outer.style.msOverflowStyle = "scrollbar"; // needed for WinJS apps
document.body.appendChild(outer);
var widthNoScroll = outer.offsetWidth;
// force scrollbars
outer.style.overflow = "scroll";
// add innerdiv
var inner = document.createElement("div");
inner.style.width = "100%";
outer.appendChild(inner);
var widthWithScroll = inner.offsetWidth;
// remove divs
outer.parentNode.removeChild(outer);
return widthNoScroll - widthWithScroll;
};
Utils.isKeyPressed = function (event, keyToCheck) {
var pressedKey = event.which || event.keyCode;
return pressedKey === keyToCheck;
};
Utils.setVisible = function (element, visible) {
this.addOrRemoveCssClass(element, 'ag-hidden', !visible);
};
Utils.setHidden = function (element, hidden) {
this.addOrRemoveCssClass(element, 'ag-visibility-hidden', hidden);
};
Utils.isBrowserIE = function () {
if (this.isIE === undefined) {
this.isIE = false || !!document.documentMode; // At least IE6
}
return this.isIE;
};
Utils.isBrowserEdge = function () {
if (this.isEdge === undefined) {
this.isEdge = !this.isBrowserIE() && !!window.StyleMedia;
}
return this.isEdge;
};
Utils.isBrowserSafari = function () {
if (this.isSafari === undefined) {
var anyWindow = window;
// taken from https://github.com/ceolter/ag-grid/issues/550
this.isSafari = Object.prototype.toString.call(anyWindow.HTMLElement).indexOf('Constructor') > 0
|| (function (p) {
return p.toString() === "[object SafariRemoteNotification]";
})(!anyWindow.safari || anyWindow.safari.pushNotification);
}
return this.isSafari;
};
Utils.isBrowserChrome = function () {
if (this.isChrome === undefined) {
var anyWindow = window;
this.isChrome = !!anyWindow.chrome && !!anyWindow.chrome.webstore;
}
return this.isChrome;
};
Utils.isBrowserFirefox = function () {
if (this.isFirefox === undefined) {
var anyWindow = window;
this.isFirefox = typeof anyWindow.InstallTrigger !== 'undefined';
;
}
return this.isFirefox;
};
// srcElement is only available in IE. In all other browsers it is target
// http://stackoverflow.com/questions/5301643/how-can-i-make-event-srcelement-work-in-firefox-and-what-does-it-mean
Utils.getTarget = function (event) {
var eventNoType = event;
return eventNoType.target || eventNoType.srcElement;
};
// taken from: http://stackoverflow.com/questions/1038727/how-to-get-browser-width-using-javascript-code
Utils.getBodyWidth = function () {
if (document.body) {
return document.body.clientWidth;
}
if (window.innerHeight) {
return window.innerWidth;
}
if (document.documentElement && document.documentElement.clientWidth) {
return document.documentElement.clientWidth;
}
return -1;
};
// taken from: http://stackoverflow.com/questions/1038727/how-to-get-browser-width-using-javascript-code
Utils.getBodyHeight = function () {
if (document.body) {
return document.body.clientHeight;
}
if (window.innerHeight) {
return window.innerHeight;
}
if (document.documentElement && document.documentElement.clientHeight) {
return document.documentElement.clientHeight;
}
return -1;
};
Utils.setCheckboxState = function (eCheckbox, state) {
if (typeof state === 'boolean') {
eCheckbox.checked = state;
eCheckbox.indeterminate = false;
}
else {
// isNodeSelected returns back undefined if it's a group and the children
// are a mix of selected and unselected
eCheckbox.indeterminate = true;
}
};
Utils.traverseNodesWithKey = function (nodes, callback) {
var keyParts = [];
recursiveSearchNodes(nodes);
function recursiveSearchNodes(nodes) {
nodes.forEach(function (node) {
if (node.group) {
keyParts.push(node.key);
var key = keyParts.join('|');
callback(node, key);
recursiveSearchNodes(node.childrenAfterGroup);
keyParts.pop();
}
});
}
};
/**
* From http://stackoverflow.com/questions/9716468/is-there-any-function-like-isnumeric-in-javascript-to-validate-numbers
*/
Utils.isNumeric = function (value) {
if (value === '')
return false;
return !isNaN(parseFloat(value)) && isFinite(value);
};
Utils.escape = function (toEscape) {
if (toEscape === null)
return null;
if (!toEscape.replace)
return toEscape;
return toEscape.replace(reUnescapedHtml, function (chr) { return HTML_ESCAPES[chr]; });
};
// Taken from here: https://github.com/facebook/fixed-data-table/blob/master/src/vendor_upstream/dom/normalizeWheel.js
/**
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
* complicated, thus this doc is long and (hopefully) detailed enough to answer
* your questions.
*
* If you need to react to the mouse wheel in a predictable way, this code is
* like your bestest friend. * hugs *
*
* As of today, there are 4 DOM event types you can listen to:
*
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
*
* So what to do? The is the best:
*
* normalizeWheel.getEventType();
*
* In your event callback, use this code to get sane interpretation of the
* deltas. This code will return an object with properties:
*
* spinX -- normalized spin speed (use for zoom) - x plane
* spinY -- " - y plane
* pixelX -- normalized distance (to pixels) - x plane
* pixelY -- " - y plane
*
* Wheel values are provided by the browser assuming you are using the wheel to
* scroll a web page by a number of lines or pixels (or pages). Values can vary
* significantly on different platforms and browsers, forgetting that you can
* scroll at different speeds. Some devices (like trackpads) emit more events
* at smaller increments with fine granularity, and some emit massive jumps with
* linear speed or acceleration.
*
* This code does its best to normalize the deltas for you:
*
* - spin is trying to normalize how far the wheel was spun (or trackpad
* dragged). This is super useful for zoom support where you want to
* throw away the chunky scroll steps on the PC and make those equal to
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
* resolve a single slow step on a wheel to 1.
*
* - pixel is normalizing the desired scroll delta in pixel units. You'll
* get the crazy differences between browsers, but at least it'll be in
* pixels!
*
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
* should translate to positive value zooming IN, negative zooming OUT.
* This matches the newer 'wheel' event.
*
* Why are there spinX, spinY (or pixels)?
*
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
* with a mouse. It results in side-scrolling in the browser by default.
*
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
*
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
* probably is by browsers in conjunction with fancy 3D controllers .. but
* you know.
*
* Implementation info:
*
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
* average mouse:
*
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
*
* On the trackpad:
*
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
*
* On other/older browsers.. it's more complicated as there can be multiple and
* also missing delta values.
*
* The 'wheel' event is more standard:
*
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
*
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
* backward compatibility with older events. Those other values help us
* better normalize spin speed. Example of what the browsers provide:
*
* | event.wheelDelta | event.detail
* ------------------+------------------+--------------
* Safari v5/OS X | -120 | 0
* Safari v5/Win7 | -120 | 0
* Chrome v17/OS X | -120 | 0
* Chrome v17/Win7 | -120 | 0
* IE9/Win7 | -120 | undefined
* Firefox v4/OS X | undefined | 1
* Firefox v4/Win7 | undefined | 3
*
*/
Utils.normalizeWheel = function (event) {
var PIXEL_STEP = 10;
var LINE_HEIGHT = 40;
var PAGE_HEIGHT = 800;
// spinX, spinY
var sX = 0;
var sY = 0;
// pixelX, pixelY
var pX = 0;
var pY = 0;
// Legacy
if ('detail' in event) {
sY = event.detail;
}
if ('wheelDelta' in event) {
sY = -event.wheelDelta / 120;
}
if ('wheelDeltaY' in event) {
sY = -event.wheelDeltaY / 120;
}
if ('wheelDeltaX' in event) {
sX = -event.wheelDeltaX / 120;
}
// side scrolling on FF with DOMMouseScroll
if ('axis' in event && event.axis === event.HORIZONTAL_AXIS) {
sX = sY;
sY = 0;
}
pX = sX * PIXEL_STEP;
pY = sY * PIXEL_STEP;
if ('deltaY' in event) {
pY = event.deltaY;
}
if ('deltaX' in event) {
pX = event.deltaX;
}
if ((pX || pY) && event.deltaMode) {
if (event.deltaMode == 1) {
pX *= LINE_HEIGHT;
pY *= LINE_HEIGHT;
}
else {
pX *= PAGE_HEIGHT;
pY *= PAGE_HEIGHT;
}
}
// Fall-back if spin cannot be determined
if (pX && !sX) {
sX = (pX < 1) ? -1 : 1;
}
if (pY && !sY) {
sY = (pY < 1) ? -1 : 1;
}
return {
spinX: sX,
spinY: sY,
pixelX: pX,
pixelY: pY
};
};
/**
* https://stackoverflow.com/questions/24004791/can-someone-explain-the-debounce-function-in-javascript
*/
Utils.debounce = function (func, wait, immediate) {
if (immediate === void 0) { immediate = false; }
// 'private' variable for instance
// The returned function will be able to reference this due to closure.
// Each call to the returned function will share this common timer.
var timeout;
// Calling debounce returns a new anonymous function
return function () {
// reference the context and args for the setTimeout function
var context = this, args = arguments;
// Should the function be called now? If immediate is true
// and not already in a timeout then the answer is: Yes
var callNow = immediate && !timeout;
// This is the basic debounce behaviour where you can call this
// function several times, but it will only execute once
// [before or after imposing a delay].
// Each time the returned function is called, the timer starts over.
clearTimeout(timeout);
// Set the new timeout
timeout = setTimeout(function () {
// Inside the timeout function, clear the timeout variable
// which will let the next execution run when in 'immediate' mode
timeout = null;
// Check if the function already ran with the immediate flag
if (!immediate) {
// Call the original function with apply
// apply lets you define the 'this' object as well as the arguments
// (both captured before setTimeout)
func.apply(context, args);
}
}, wait);
// Immediate mode and no wait timer? Execute the function..
if (callNow)
func.apply(context, args);
};
};
;
Utils.executeInAWhile = function (funcs) {
this.executeAfter(funcs, 400);
};
Utils.executeNextVMTurn = function (funcs) {
this.executeAfter(funcs, 0);
};
Utils.executeAfter = function (funcs, millis) {
if (funcs.length > 0) {
setTimeout(function () {
funcs.forEach(function (func) { return func(); });
}, millis);
}
};
Utils.referenceCompare = function (left, right) {
if (left == null && right == null)
return true;
if (left == null && right)
return false;
if (left && right == null)
return false;
return left === right;
};
Utils.get = function (source, expression, defaultValue) {
if (source == null)
return defaultValue;
if (expression.indexOf('.') > -1) {
var fields = expression.split('.');
var thisKey = fields[0];
var nextValue = source[thisKey];
if (nextValue != null) {
return Utils.get(nextValue, fields.slice(1, fields.length).join('.'), defaultValue);
}
else {
return defaultValue;
}
}
else {
var nextValue = source[expression];
return nextValue != null ? nextValue : defaultValue;
}
};
Utils.addSafePassiveEventListener = function (eElement, event, listener) {
eElement.addEventListener(event, listener, (Utils.passiveEvents.indexOf(event) > -1 ? { passive: true } : null));
};
Utils.PRINTABLE_CHARACTERS = 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890!"£$%^&*()_+-=[];\'#,./\|<>?:@~{}';
Utils.passiveEvents = ['touchstart', 'touchend', 'touchmove', 'touchcancel'];
return Utils;
}());
exports.Utils = Utils;
var NumberSequence = (function () {
function NumberSequence(initValue, step) {
if (initValue === void 0) { initValue = 0; }
if (step === void 0) { step = 1; }
this.nextValue = initValue;
this.step = step;
}
NumberSequence.prototype.next = function () {
var valToReturn = this.nextValue;
this.nextValue += this.step;
return valToReturn;
};
NumberSequence.prototype.peek = function () {
return this.nextValue;
};
NumberSequence.prototype.skip = function (count) {
this.nextValue += count;
};
return NumberSequence;
}());
exports.NumberSequence = NumberSequence;
exports._ = Utils;
|
files/rxjs/2.4.4/rx.lite.extras.compat.js
|
sancospi/jsdelivr
|
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
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;
}
// Because of build optimizers
if (typeof define === 'function' && define.amd) {
define(['rx-lite-compat'], function (Rx, exports) {
return factory(root, exports, Rx);
});
} else if (typeof module === 'object' && module && module.exports === freeExports) {
module.exports = factory(root, module.exports, require('./rx-lite-compat'));
} else {
root.Rx = factory(root, {}, root.Rx);
}
}.call(this, function (root, exp, Rx, undefined) {
// References
var Observable = Rx.Observable,
observableProto = Observable.prototype,
observableNever = Observable.never,
observableThrow = Observable.throwException,
AnonymousObservable = Rx.AnonymousObservable,
AnonymousObserver = Rx.AnonymousObserver,
notificationCreateOnNext = Rx.Notification.createOnNext,
notificationCreateOnError = Rx.Notification.createOnError,
notificationCreateOnCompleted = Rx.Notification.createOnCompleted,
Observer = Rx.Observer,
Subject = Rx.Subject,
internals = Rx.internals,
helpers = Rx.helpers,
ScheduledObserver = internals.ScheduledObserver,
SerialDisposable = Rx.SerialDisposable,
SingleAssignmentDisposable = Rx.SingleAssignmentDisposable,
CompositeDisposable = Rx.CompositeDisposable,
RefCountDisposable = Rx.RefCountDisposable,
disposableEmpty = Rx.Disposable.empty,
immediateScheduler = Rx.Scheduler.immediate,
defaultKeySerializer = helpers.defaultKeySerializer,
addRef = Rx.internals.addRef,
identity = helpers.identity,
isPromise = helpers.isPromise,
inherits = internals.inherits,
bindCallback = internals.bindCallback,
noop = helpers.noop,
isScheduler = helpers.isScheduler,
observableFromPromise = Observable.fromPromise,
ArgumentOutOfRangeError = Rx.ArgumentOutOfRangeError;
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 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();
var res = tryCatch(this._observer.onNext).call(this._observer, value);
this._state = 0;
res === errorObj && thrower(res.e);
};
CheckedObserverPrototype.onError = function (err) {
this.checkAccess();
var res = tryCatch(this._observer.onError).call(this._observer, err);
this._state = 2;
res === errorObj && thrower(res.e);
};
CheckedObserverPrototype.onCompleted = function () {
this.checkAccess();
var res = tryCatch(this._observer.onCompleted).call(this._observer);
this._state = 2;
res === errorObj && thrower(res.e);
};
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 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);
/**
* 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); };
/**
* 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);
};
/**
* Creates an observer from a notification callback.
* @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) {
var handlerFunc = bindCallback(handler, thisArg, 1);
return new AnonymousObserver(function (x) {
return handlerFunc(notificationCreateOnNext(x));
}, function (e) {
return handlerFunc(notificationCreateOnError(e));
}, function () {
return handlerFunc(notificationCreateOnCompleted());
});
};
/**
* 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 () {
var source = this;
return new AnonymousObserver(
function (x) { source.onNext(x); },
function (e) { source.onError(e); },
function () { source.onCompleted(); }
);
};
/**
* 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);
};
/**
* 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();
}
});
});
};
/**
* 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;
};
/**
* 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);
});
};
/**
* 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;
});
};
/**
* 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 ArgumentOutOfRangeError(); }
skip == null && (skip = count);
+skip || (skip = 0);
Math.abs(skip) === Infinity && (skip = 0);
if (skip <= 0) { throw new ArgumentOutOfRangeError(); }
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);
};
/**
* 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);
};
/**
* 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);
};
return Rx;
}));
|
ajax/libs/vkui/4.28.0/cssm/components/DateRangeInput/DateRangeInput.min.js
|
cdnjs/cdnjs
|
import _extends from"@babel/runtime/helpers/extends";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["shouldDisableDate","disableFuture","disablePast","value","onChange","calendarPlacement","style","className","closeOnChange","disablePickers","getRootRef","name","autoFocus","disabled","onClick","onFocus","prevMonthAriaLabel","nextMonthAriaLabel","changeDayAriaLabel","changeMonthAriaLabel","changeYearAriaLabel","changeStartDayAriaLabel","changeStartMonthAriaLabel","changeStartYearAriaLabel","changeEndDayAriaLabel","changeEndMonthAriaLabel","changeEndYearAriaLabel","clearFieldAriaLabel","showCalendarAriaLabel"];import{createScopedElement}from"../../lib/jsxRuntime";import*as React from"react";import{format,isMatch,parse,isAfter}from"date-fns";import{Icon16Clear,Icon20CalendarOutline}from"@vkontakte/icons";import{CalendarRange}from"../CalendarRange/CalendarRange";import{Popper}from"../Popper/Popper";import IconButton from"../IconButton/IconButton";import{useDateInput}from"../../hooks/useDateInput";import{useAdaptivity}from"../../hooks/useAdaptivity";import{classNames}from"../../lib/classNames";import{multiRef}from"../../lib/utils";import{FormField}from"../FormField/FormField";import{InputLike}from"../InputLike/InputLike";import{InputLikeDivider}from"../InputLike/InputLikeDivider";import{callMultiple}from"../../lib/callMultiple";import"./DateRangeInput.css";var elementsConfig=function(e){var a=2,t=1,n=0;switch(e){case 0:case 3:n=31;break;case 1:case 4:n=12;break;case 2:case 5:n=2100,t=1900,a=4}return{length:a,min:t,max:n}},getInternalValue=function(e){var a=["","","","","",""];return null!=e&&e[0]&&(a[0]=String(e[0].getDate()).padStart(2,"0"),a[1]=String(e[0].getMonth()+1).padStart(2,"0"),a[2]=String(e[0].getFullYear()).padStart(4,"0")),null!=e&&e[1]&&(a[3]=String(e[1].getDate()).padStart(2,"0"),a[4]=String(e[1].getMonth()+1).padStart(2,"0"),a[5]=String(e[1].getFullYear()).padStart(4,"0")),a},DateRangeInput=function(e){var a=e.shouldDisableDate,t=e.disableFuture,n=e.disablePast,d=e.value,s=e.onChange,l=e.calendarPlacement,o=void 0===l?"bottom-start":l,r=e.style,i=e.className,c=e.closeOnChange,u=void 0===c||c,p=e.disablePickers,m=e.getRootRef,g=e.name,h=e.autoFocus,b=e.disabled,f=e.onClick,v=e.onFocus,R=e.prevMonthAriaLabel,L=e.nextMonthAriaLabel,S=e.changeDayAriaLabel,I=e.changeMonthAriaLabel,A=e.changeYearAriaLabel,E=e.changeStartDayAriaLabel,k=void 0===E?"Изменить день начала":E,D=e.changeStartMonthAriaLabel,C=void 0===D?"Изменить месяц начала":D,y=e.changeStartYearAriaLabel,M=void 0===y?"Изменить год начала":y,F=e.changeEndDayAriaLabel,x=void 0===F?"Изменить день окончания":F,P=e.changeEndMonthAriaLabel,Y=void 0===P?"Изменить месяц окончания":P,_=e.changeEndYearAriaLabel,w=void 0===_?"Изменить год окончания":_,N=e.clearFieldAriaLabel,B=void 0===N?"Очистить поле":N,V=e.showCalendarAriaLabel,j=void 0===V?"Показать календарь":V,O=_objectWithoutProperties(e,_excluded),W=React.useRef(null),z=React.useRef(null),K=React.useRef(null),q=React.useRef(null),G=React.useRef(null),H=React.useRef(null),l=React.useCallback(function(e){for(var a=!0,t=!0,n=0;n<=2;n+=1)e[n].length<elementsConfig(n).length&&(a=!1);for(var l=3;l<=5;l+=1)e[l].length<elementsConfig(l).length&&(t=!1);var o,r,i="".concat(e[0],".").concat(e[1],".").concat(e[2]),c="".concat(e[3],".").concat(e[4],".").concat(e[5]),u="dd.MM.yyyy";isMatch(i,u)||(a=!1),isMatch(c,u)||(t=!1),(a||t)&&(o=Array.isArray(d),r=new Date,i=a?parse(i,u,o&&(null==d?void 0:d[0])||r):null,r=t?parse(c,u,o&&(null==d?void 0:d[1])||r):null,i&&r&&isAfter(r,i)&&null!=s&&s([i,r]))},[s,d]),c=React.useMemo(function(){return[W,z,K,q,G,H]},[W,z,K,q,G,H]),E=useDateInput({maxElement:5,refs:c,autoFocus:h,disabled:b,elementsConfig:elementsConfig,onChange:s,onInternalValueChange:l,getInternalValue:getInternalValue,value:d}),D=E.rootRef,y=E.calendarRef,F=E.open,P=E.openCalendar,_=E.closeCalendar,N=E.internalValue,V=E.handleKeyDown,e=E.setFocusedElement,c=E.handleFieldEnter,h=E.clear,J=E.removeFocusFromField,l=useAdaptivity().sizeY,E=React.useCallback(function(e){null!=s&&s(e),u&&null!=e&&e[1]&&e[1]!==(null==d?void 0:d[1])&&J()},[s,u,d,J]);return createScopedElement(FormField,_extends({vkuiClass:classNames("DateRangeInput","DateRangeInput--sizeY-".concat(l)),style:r,className:i,getRootRef:multiRef(D,m),after:d?createScopedElement(IconButton,{hoverMode:"opacity","aria-label":B,onClick:h},createScopedElement(Icon16Clear,null)):createScopedElement(IconButton,{hoverMode:"opacity","aria-label":j,onClick:P},createScopedElement(Icon20CalendarOutline,null)),disabled:b,onClick:callMultiple(c,f),onFocus:callMultiple(c,v)},O),createScopedElement("input",{type:"hidden",name:g,value:d?"".concat(d[0]?format(d[0],"dd.MM.yyyy"):""," - ").concat(d[1]?format(d[1],"dd.MM.yyyy"):""):""}),createScopedElement("span",{vkuiClass:"DateInput__input",onKeyDown:V},createScopedElement(InputLike,{length:2,getRootRef:W,index:0,onElementSelect:e,value:N[0],"aria-label":k}),createScopedElement(InputLikeDivider,null,"."),createScopedElement(InputLike,{length:2,getRootRef:z,index:1,onElementSelect:e,value:N[1],"aria-label":C}),createScopedElement(InputLikeDivider,null,"."),createScopedElement(InputLike,{length:4,getRootRef:K,index:2,onElementSelect:e,value:N[2],"aria-label":M}),createScopedElement(InputLikeDivider,null," — "),createScopedElement(InputLike,{length:2,getRootRef:q,index:3,onElementSelect:e,value:N[3],"aria-label":x}),createScopedElement(InputLikeDivider,null,"."),createScopedElement(InputLike,{length:2,getRootRef:G,index:4,onElementSelect:e,value:N[4],"aria-label":Y}),createScopedElement(InputLikeDivider,null,"."),createScopedElement(InputLike,{length:4,getRootRef:H,index:5,onElementSelect:e,value:N[5],"aria-label":w})),F&&createScopedElement(Popper,{targetRef:D,offsetDistance:8,placement:o},createScopedElement(CalendarRange,{value:d,onChange:E,disablePast:n,disableFuture:t,shouldDisableDate:a,onClose:_,getRootRef:y,disablePickers:p,prevMonthAriaLabel:R,nextMonthAriaLabel:L,changeMonthAriaLabel:I,changeYearAriaLabel:A,changeDayAriaLabel:S})))};export{DateRangeInput};
|
src/components/common/controlled-slider.js
|
mikechabot/game-of-life
|
import React from 'react';
import Slider from 'material-ui/lib/slider';
import Colors from 'material-ui/lib/styles/colors';
/** Author: Mike Chabot
* Description: Simple controlled slider
* Default Element: See render()
* Props: See PropTypes
*/
class ControlledSlider extends React.Component {
render() {
return (
<div>
<div style={style.header}>
<div style={style.title}>{this.props.title}</div>
<div style={style.subtitle}>{this.props.subtitle}</div>
</div>
<Slider
disabled={this.props.disabled}
style={style.slider}
ref="slider"
min={this.props.min}
max={this.props.max}
value={this.props.value}
onDragStop={() => this.props.onChange(
this.refs.slider.state.value
)}
/>
</div>
);
}
}
const style = {
slider: {
margin: 5
},
header: {
color: Colors.grey600,
display: 'flex',
justifyContent: 'space-between',
padding: '5px 5px 0 5px'
},
title: {
fontSize: '120%'
},
subtitle: {
fontSize: '85%'
}
}
ControlledSlider.propTypes = {
value: React.PropTypes.number.isRequired,
title: React.PropTypes.string,
subtite: React.PropTypes.string,
onChange: React.PropTypes.func
};
export default ControlledSlider;
|
packages/material-ui-icons/src/TransitEnterexitRounded.js
|
Kagami/material-ui
|
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M14.5 18H8c-1.1 0-2-.9-2-2V9.5C6 8.67 6.67 8 7.5 8S9 8.67 9 9.5v3.27L14.95 7c.57-.55 1.48-.54 2.04.02s.56 1.47.01 2.04L11.15 15h3.35c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z" /></React.Fragment>
, 'TransitEnterexitRounded');
|
node_modules/react-router/es/withRouter.js
|
ivanhristov92/bookingCalendar
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import invariant from 'invariant';
import React from 'react';
import hoistStatics from 'hoist-non-react-statics';
import { ContextSubscriber } from './ContextUtils';
import { routerShape } from './PropTypes';
function getDisplayName(WrappedComponent) {
return WrappedComponent.displayName || WrappedComponent.name || 'Component';
}
export default function withRouter(WrappedComponent, options) {
var withRef = options && options.withRef;
var WithRouter = React.createClass({
displayName: 'WithRouter',
mixins: [ContextSubscriber('router')],
contextTypes: { router: routerShape },
propTypes: { router: routerShape },
getWrappedInstance: function getWrappedInstance() {
!withRef ? process.env.NODE_ENV !== 'production' ? invariant(false, 'To access the wrapped instance, you need to specify ' + '`{ withRef: true }` as the second argument of the withRouter() call.') : invariant(false) : void 0;
return this.wrappedInstance;
},
render: function render() {
var _this = this;
var router = this.props.router || this.context.router;
var params = router.params,
location = router.location,
routes = router.routes;
var props = _extends({}, this.props, { router: router, params: params, location: location, routes: routes });
if (withRef) {
props.ref = function (c) {
_this.wrappedInstance = c;
};
}
return React.createElement(WrappedComponent, props);
}
});
WithRouter.displayName = 'withRouter(' + getDisplayName(WrappedComponent) + ')';
WithRouter.WrappedComponent = WrappedComponent;
return hoistStatics(WithRouter, WrappedComponent);
}
|
packages/react-scripts/fixtures/kitchensink/src/features/webpack/CssInclusion.js
|
RobzDoom/frame_trap
|
/**
* 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.
*/
import React from 'react';
import './assets/style.css';
export default () => <p id="feature-css-inclusion">We love useless text.</p>;
|
cmd/gqlgen/sample/app.js
|
mhamrah/gql
|
import React from 'react';
import ReactDOM from 'react-dom';
import GraphiQL from 'graphiql';
import fetch from 'isomorphic-fetch';
function graphQLFetcher(graphQLParams) {
return fetch(window.location.origin + '/graphql', {
method: 'post',
headers: { 'Content-Type': 'application/json' },
body: graphQLParams.query,
}).then(response => response.json());
}
ReactDOM.render(<GraphiQL fetcher={graphQLFetcher} />, document.body);
|
src/components/ClickOutside/__tests__/ClickOutside.spec.js
|
propertybase/react-lds
|
import React from 'react';
import { render } from 'react-dom';
import { ClickOutside } from '..';
const $mockApp = document.createElement('div');
$mockApp.id = 'container';
document.body.appendChild($mockApp);
const evt = document.createEvent('HTMLEvents');
evt.initEvent('click', true, true);
const getComponent = (props = {}) => (
<div className="wrapper">
<ClickOutside {...props}>
<div className="child" />
</ClickOutside>
<div className="outside" />
</div>
);
describe('<ClickOutside />', () => {
it('attaches click listener to doc onMount', () => {
const mockFn = jest.fn();
render(getComponent({ onClickOutside: mockFn }), document.getElementById('container'));
const el = document.body.querySelector('.outside');
el.dispatchEvent(evt);
expect(mockFn).toBeCalled();
});
it('ignores click on children of the wrapper', () => {
const mockFn = jest.fn();
render(getComponent({ onClickOutside: mockFn }), document.getElementById('container'));
const el = document.body.querySelector('.child');
el.dispatchEvent(evt);
expect(mockFn).not.toBeCalled();
});
it('respects the condition prop', () => {
const mockFn = jest.fn();
const component = getComponent({ onClickOutside: mockFn, condition: false });
render(component, document.getElementById('container'));
const el = document.body.querySelector('.outside');
el.dispatchEvent(evt);
expect(mockFn).not.toBeCalled();
});
});
|
src/App/Link/index.js
|
mikearnaldi/react-starter
|
import React from 'react'
import {connect} from 'react-redux'
import {linkActions} from './module'
import styled from 'styled-components'
import {materialBlueGrey} from '../styles/colors'
const Wrapper = styled.div`
display: inline-block;
padding: 5px;
cursor: default;
user-select: none;
border: 1px solid ${materialBlueGrey['50']};
&:hover {
background-color: ${materialBlueGrey['100']};
}
`
const Link = (props) => (
<Wrapper onClick={() => {
props.clicked(props.to)
}}>{props.children}</Wrapper>
)
export default connect(null, {clicked: linkActions.clicked})(Link)
|
ajax/libs/yui/3.14.1/event-focus/event-focus-coverage.js
|
dc-js/cdnjs
|
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-focus/event-focus.js']) {
__coverage__['build/event-focus/event-focus.js'] = {"path":"build/event-focus/event-focus.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0,0,0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":42}}},"2":{"name":"(anonymous_2)","line":17,"loc":{"start":{"line":17,"column":19},"end":{"line":17,"column":30}}},"3":{"name":"define","line":45,"loc":{"start":{"line":45,"column":0},"end":{"line":45,"column":42}}},"4":{"name":"(anonymous_4)","line":52,"loc":{"start":{"line":52,"column":17},"end":{"line":52,"column":51}}},"5":{"name":"(anonymous_5)","line":54,"loc":{"start":{"line":54,"column":44},"end":{"line":54,"column":57}}},"6":{"name":"(anonymous_6)","line":64,"loc":{"start":{"line":64,"column":16},"end":{"line":64,"column":49}}},"7":{"name":"(anonymous_7)","line":113,"loc":{"start":{"line":113,"column":17},"end":{"line":113,"column":41}}},"8":{"name":"(anonymous_8)","line":143,"loc":{"start":{"line":143,"column":31},"end":{"line":143,"column":47}}},"9":{"name":"(anonymous_9)","line":238,"loc":{"start":{"line":238,"column":12},"end":{"line":238,"column":43}}},"10":{"name":"(anonymous_10)","line":242,"loc":{"start":{"line":242,"column":16},"end":{"line":242,"column":37}}},"11":{"name":"(anonymous_11)","line":246,"loc":{"start":{"line":246,"column":18},"end":{"line":246,"column":57}}},"12":{"name":"(anonymous_12)","line":248,"loc":{"start":{"line":248,"column":29},"end":{"line":248,"column":47}}},"13":{"name":"(anonymous_13)","line":257,"loc":{"start":{"line":257,"column":24},"end":{"line":257,"column":45}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":280,"column":51}},"2":{"start":{"line":9,"column":0},"end":{"line":43,"column":9}},"3":{"start":{"line":23,"column":8},"end":{"line":25,"column":14}},"4":{"start":{"line":27,"column":8},"end":{"line":40,"column":9}},"5":{"start":{"line":29,"column":12},"end":{"line":29,"column":39}},"6":{"start":{"line":30,"column":12},"end":{"line":30,"column":52}},"7":{"start":{"line":39,"column":12},"end":{"line":39,"column":59}},"8":{"start":{"line":42,"column":8},"end":{"line":42,"column":25}},"9":{"start":{"line":45,"column":0},"end":{"line":261,"column":1}},"10":{"start":{"line":46,"column":4},"end":{"line":46,"column":47}},"11":{"start":{"line":48,"column":4},"end":{"line":260,"column":13}},"12":{"start":{"line":53,"column":12},"end":{"line":61,"column":13}},"13":{"start":{"line":54,"column":16},"end":{"line":56,"column":24}},"14":{"start":{"line":55,"column":20},"end":{"line":55,"column":37}},"15":{"start":{"line":58,"column":16},"end":{"line":60,"column":39}},"16":{"start":{"line":65,"column":12},"end":{"line":70,"column":26}},"17":{"start":{"line":72,"column":12},"end":{"line":72,"column":73}},"18":{"start":{"line":73,"column":12},"end":{"line":73,"column":71}},"19":{"start":{"line":79,"column":12},"end":{"line":100,"column":13}},"20":{"start":{"line":80,"column":16},"end":{"line":80,"column":31}},"21":{"start":{"line":81,"column":16},"end":{"line":81,"column":55}},"22":{"start":{"line":85,"column":16},"end":{"line":89,"column":17}},"23":{"start":{"line":86,"column":20},"end":{"line":87,"column":71}},"24":{"start":{"line":88,"column":20},"end":{"line":88,"column":42}},"25":{"start":{"line":99,"column":16},"end":{"line":99,"column":29}},"26":{"start":{"line":102,"column":12},"end":{"line":104,"column":13}},"27":{"start":{"line":103,"column":16},"end":{"line":103,"column":37}},"28":{"start":{"line":106,"column":12},"end":{"line":106,"column":43}},"29":{"start":{"line":108,"column":12},"end":{"line":110,"column":13}},"30":{"start":{"line":109,"column":16},"end":{"line":109,"column":32}},"31":{"start":{"line":114,"column":12},"end":{"line":124,"column":80}},"32":{"start":{"line":127,"column":12},"end":{"line":127,"column":49}},"33":{"start":{"line":130,"column":12},"end":{"line":130,"column":42}},"34":{"start":{"line":133,"column":12},"end":{"line":135,"column":13}},"35":{"start":{"line":134,"column":16},"end":{"line":134,"column":39}},"36":{"start":{"line":138,"column":12},"end":{"line":138,"column":39}},"37":{"start":{"line":140,"column":12},"end":{"line":160,"column":13}},"38":{"start":{"line":142,"column":16},"end":{"line":142,"column":28}},"39":{"start":{"line":143,"column":16},"end":{"line":158,"column":19}},"40":{"start":{"line":144,"column":20},"end":{"line":146,"column":31}},"41":{"start":{"line":148,"column":20},"end":{"line":155,"column":21}},"42":{"start":{"line":149,"column":24},"end":{"line":149,"column":32}},"43":{"start":{"line":150,"column":24},"end":{"line":154,"column":25}},"44":{"start":{"line":151,"column":28},"end":{"line":153,"column":29}},"45":{"start":{"line":152,"column":32},"end":{"line":152,"column":61}},"46":{"start":{"line":157,"column":20},"end":{"line":157,"column":34}},"47":{"start":{"line":159,"column":16},"end":{"line":159,"column":28}},"48":{"start":{"line":164,"column":12},"end":{"line":235,"column":13}},"49":{"start":{"line":165,"column":16},"end":{"line":165,"column":39}},"50":{"start":{"line":167,"column":16},"end":{"line":167,"column":47}},"51":{"start":{"line":169,"column":16},"end":{"line":201,"column":17}},"52":{"start":{"line":170,"column":20},"end":{"line":197,"column":21}},"53":{"start":{"line":171,"column":24},"end":{"line":171,"column":48}},"54":{"start":{"line":172,"column":24},"end":{"line":172,"column":55}},"55":{"start":{"line":173,"column":24},"end":{"line":173,"column":40}},"56":{"start":{"line":175,"column":24},"end":{"line":175,"column":49}},"57":{"start":{"line":177,"column":24},"end":{"line":186,"column":25}},"58":{"start":{"line":178,"column":28},"end":{"line":179,"column":68}},"59":{"start":{"line":184,"column":28},"end":{"line":185,"column":68}},"60":{"start":{"line":188,"column":24},"end":{"line":192,"column":25}},"61":{"start":{"line":190,"column":28},"end":{"line":190,"column":61}},"62":{"start":{"line":191,"column":28},"end":{"line":191,"column":51}},"63":{"start":{"line":194,"column":24},"end":{"line":196,"column":25}},"64":{"start":{"line":195,"column":28},"end":{"line":195,"column":34}},"65":{"start":{"line":199,"column":20},"end":{"line":199,"column":43}},"66":{"start":{"line":200,"column":20},"end":{"line":200,"column":28}},"67":{"start":{"line":203,"column":16},"end":{"line":230,"column":17}},"68":{"start":{"line":207,"column":20},"end":{"line":229,"column":21}},"69":{"start":{"line":208,"column":24},"end":{"line":208,"column":48}},"70":{"start":{"line":209,"column":24},"end":{"line":209,"column":50}},"71":{"start":{"line":211,"column":24},"end":{"line":217,"column":25}},"72":{"start":{"line":214,"column":28},"end":{"line":214,"column":61}},"73":{"start":{"line":215,"column":28},"end":{"line":215,"column":53}},"74":{"start":{"line":216,"column":28},"end":{"line":216,"column":51}},"75":{"start":{"line":219,"column":24},"end":{"line":228,"column":25}},"76":{"start":{"line":227,"column":28},"end":{"line":227,"column":34}},"77":{"start":{"line":232,"column":16},"end":{"line":234,"column":17}},"78":{"start":{"line":233,"column":20},"end":{"line":233,"column":26}},"79":{"start":{"line":239,"column":12},"end":{"line":239,"column":60}},"80":{"start":{"line":243,"column":12},"end":{"line":243,"column":32}},"81":{"start":{"line":247,"column":12},"end":{"line":252,"column":13}},"82":{"start":{"line":248,"column":16},"end":{"line":251,"column":18}},"83":{"start":{"line":249,"column":20},"end":{"line":250,"column":61}},"84":{"start":{"line":254,"column":12},"end":{"line":254,"column":66}},"85":{"start":{"line":258,"column":12},"end":{"line":258,"column":32}},"86":{"start":{"line":270,"column":0},"end":{"line":277,"column":1}},"87":{"start":{"line":272,"column":4},"end":{"line":272,"column":51}},"88":{"start":{"line":273,"column":4},"end":{"line":273,"column":52}},"89":{"start":{"line":275,"column":4},"end":{"line":275,"column":38}},"90":{"start":{"line":276,"column":4},"end":{"line":276,"column":37}}},"branchMap":{"1":{"line":27,"type":"if","locations":[{"start":{"line":27,"column":8},"end":{"line":27,"column":8}},{"start":{"line":27,"column":8},"end":{"line":27,"column":8}}]},"2":{"line":53,"type":"if","locations":[{"start":{"line":53,"column":12},"end":{"line":53,"column":12}},{"start":{"line":53,"column":12},"end":{"line":53,"column":12}}]},"3":{"line":69,"type":"binary-expr","locations":[{"start":{"line":69,"column":33},"end":{"line":69,"column":44}},{"start":{"line":69,"column":48},"end":{"line":69,"column":72}}]},"4":{"line":72,"type":"cond-expr","locations":[{"start":{"line":72,"column":50},"end":{"line":72,"column":56}},{"start":{"line":72,"column":59},"end":{"line":72,"column":72}}]},"5":{"line":73,"type":"cond-expr","locations":[{"start":{"line":73,"column":50},"end":{"line":73,"column":63}},{"start":{"line":73,"column":66},"end":{"line":73,"column":70}}]},"6":{"line":79,"type":"if","locations":[{"start":{"line":79,"column":12},"end":{"line":79,"column":12}},{"start":{"line":79,"column":12},"end":{"line":79,"column":12}}]},"7":{"line":85,"type":"if","locations":[{"start":{"line":85,"column":16},"end":{"line":85,"column":16}},{"start":{"line":85,"column":16},"end":{"line":85,"column":16}}]},"8":{"line":102,"type":"if","locations":[{"start":{"line":102,"column":12},"end":{"line":102,"column":12}},{"start":{"line":102,"column":12},"end":{"line":102,"column":12}}]},"9":{"line":108,"type":"if","locations":[{"start":{"line":108,"column":12},"end":{"line":108,"column":12}},{"start":{"line":108,"column":12},"end":{"line":108,"column":12}}]},"10":{"line":121,"type":"cond-expr","locations":[{"start":{"line":122,"column":36},"end":{"line":122,"column":70}},{"start":{"line":123,"column":36},"end":{"line":123,"column":37}}]},"11":{"line":133,"type":"if","locations":[{"start":{"line":133,"column":12},"end":{"line":133,"column":12}},{"start":{"line":133,"column":12},"end":{"line":133,"column":12}}]},"12":{"line":140,"type":"if","locations":[{"start":{"line":140,"column":12},"end":{"line":140,"column":12}},{"start":{"line":140,"column":12},"end":{"line":140,"column":12}}]},"13":{"line":148,"type":"if","locations":[{"start":{"line":148,"column":20},"end":{"line":148,"column":20}},{"start":{"line":148,"column":20},"end":{"line":148,"column":20}}]},"14":{"line":151,"type":"if","locations":[{"start":{"line":151,"column":28},"end":{"line":151,"column":28}},{"start":{"line":151,"column":28},"end":{"line":151,"column":28}}]},"15":{"line":164,"type":"binary-expr","locations":[{"start":{"line":164,"column":19},"end":{"line":164,"column":24}},{"start":{"line":164,"column":29},"end":{"line":164,"column":55}}]},"16":{"line":169,"type":"if","locations":[{"start":{"line":169,"column":16},"end":{"line":169,"column":16}},{"start":{"line":169,"column":16},"end":{"line":169,"column":16}}]},"17":{"line":177,"type":"if","locations":[{"start":{"line":177,"column":24},"end":{"line":177,"column":24}},{"start":{"line":177,"column":24},"end":{"line":177,"column":24}}]},"18":{"line":179,"type":"binary-expr","locations":[{"start":{"line":179,"column":51},"end":{"line":179,"column":59}},{"start":{"line":179,"column":63},"end":{"line":179,"column":65}}]},"19":{"line":188,"type":"if","locations":[{"start":{"line":188,"column":24},"end":{"line":188,"column":24}},{"start":{"line":188,"column":24},"end":{"line":188,"column":24}}]},"20":{"line":194,"type":"if","locations":[{"start":{"line":194,"column":24},"end":{"line":194,"column":24}},{"start":{"line":194,"column":24},"end":{"line":194,"column":24}}]},"21":{"line":194,"type":"binary-expr","locations":[{"start":{"line":194,"column":28},"end":{"line":194,"column":41}},{"start":{"line":194,"column":45},"end":{"line":194,"column":60}}]},"22":{"line":203,"type":"if","locations":[{"start":{"line":203,"column":16},"end":{"line":203,"column":16}},{"start":{"line":203,"column":16},"end":{"line":203,"column":16}}]},"23":{"line":211,"type":"if","locations":[{"start":{"line":211,"column":24},"end":{"line":211,"column":24}},{"start":{"line":211,"column":24},"end":{"line":211,"column":24}}]},"24":{"line":212,"type":"binary-expr","locations":[{"start":{"line":212,"column":47},"end":{"line":212,"column":55}},{"start":{"line":212,"column":59},"end":{"line":212,"column":61}}]},"25":{"line":219,"type":"if","locations":[{"start":{"line":219,"column":24},"end":{"line":219,"column":24}},{"start":{"line":219,"column":24},"end":{"line":219,"column":24}}]},"26":{"line":219,"type":"binary-expr","locations":[{"start":{"line":219,"column":28},"end":{"line":219,"column":41}},{"start":{"line":219,"column":45},"end":{"line":219,"column":60}},{"start":{"line":225,"column":29},"end":{"line":225,"column":38}},{"start":{"line":225,"column":42},"end":{"line":225,"column":56}},{"start":{"line":226,"column":29},"end":{"line":226,"column":76}}]},"27":{"line":232,"type":"if","locations":[{"start":{"line":232,"column":16},"end":{"line":232,"column":16}},{"start":{"line":232,"column":16},"end":{"line":232,"column":16}}]},"28":{"line":247,"type":"if","locations":[{"start":{"line":247,"column":12},"end":{"line":247,"column":12}},{"start":{"line":247,"column":12},"end":{"line":247,"column":12}}]},"29":{"line":250,"type":"cond-expr","locations":[{"start":{"line":250,"column":42},"end":{"line":250,"column":46}},{"start":{"line":250,"column":49},"end":{"line":250,"column":59}}]},"30":{"line":270,"type":"if","locations":[{"start":{"line":270,"column":0},"end":{"line":270,"column":0}},{"start":{"line":270,"column":0},"end":{"line":270,"column":0}}]}},"code":["(function () { YUI.add('event-focus', function (Y, NAME) {","","/**"," * Adds bubbling and delegation support to DOM events focus and blur."," *"," * @module event"," * @submodule event-focus"," */","var Event = Y.Event,",""," YLang = Y.Lang,",""," isString = YLang.isString,",""," arrayIndex = Y.Array.indexOf,",""," useActivate = (function() {",""," // Changing the structure of this test, so that it doesn't use inline JS in HTML,"," // which throws an exception in Win8 packaged apps, due to additional security restrictions:"," // http://msdn.microsoft.com/en-us/library/windows/apps/hh465380.aspx#differences",""," var supported = false,"," doc = Y.config.doc,"," p;",""," if (doc) {",""," p = doc.createElement(\"p\");"," p.setAttribute(\"onbeforeactivate\", \";\");",""," // onbeforeactivate is a function in IE8+."," // onbeforeactivate is a string in IE6,7 (unfortunate, otherwise we could have just checked for function below)."," // onbeforeactivate is a function in IE10, in a Win8 App environment (no exception running the test).",""," // onbeforeactivate is undefined in Webkit/Gecko."," // onbeforeactivate is a function in Webkit/Gecko if it's a supported event (e.g. onclick).",""," supported = (p.onbeforeactivate !== undefined);"," }",""," return supported;"," }());","","function define(type, proxy, directEvent) {"," var nodeDataKey = '_' + type + 'Notifiers';",""," Y.Event.define(type, {",""," _useActivate : useActivate,",""," _attach: function (el, notifier, delegate) {"," if (Y.DOM.isWindow(el)) {"," return Event._attach([type, function (e) {"," notifier.fire(e);"," }, el]);"," } else {"," return Event._attach("," [proxy, this._proxy, el, this, notifier, delegate],"," { capture: true });"," }"," },",""," _proxy: function (e, notifier, delegate) {"," var target = e.target,"," currentTarget = e.currentTarget,"," notifiers = target.getData(nodeDataKey),"," yuid = Y.stamp(currentTarget._node),"," defer = (useActivate || target !== currentTarget),"," directSub;",""," notifier.currentTarget = (delegate) ? target : currentTarget;"," notifier.container = (delegate) ? currentTarget : null;",""," // Maintain a list to handle subscriptions from nested"," // containers div#a>div#b>input #a.on(focus..) #b.on(focus..),"," // use one focus or blur subscription that fires notifiers from"," // #b then #a to emulate bubble sequence."," if (!notifiers) {"," notifiers = {};"," target.setData(nodeDataKey, notifiers);",""," // only subscribe to the element's focus if the target is"," // not the current target ("," if (defer) {"," directSub = Event._attach("," [directEvent, this._notify, target._node]).sub;"," directSub.once = true;"," }"," } else {"," // In old IE, defer is always true. In capture-phase browsers,"," // The delegate subscriptions will be encountered first, which"," // will establish the notifiers data and direct subscription"," // on the node. If there is also a direct subscription to the"," // node's focus/blur, it should not call _notify because the"," // direct subscription from the delegate sub(s) exists, which"," // will call _notify. So this avoids _notify being called"," // twice, unnecessarily."," defer = true;"," }",""," if (!notifiers[yuid]) {"," notifiers[yuid] = [];"," }",""," notifiers[yuid].push(notifier);",""," if (!defer) {"," this._notify(e);"," }"," },",""," _notify: function (e, container) {"," var currentTarget = e.currentTarget,"," notifierData = currentTarget.getData(nodeDataKey),"," axisNodes = currentTarget.ancestors(),"," doc = currentTarget.get('ownerDocument'),"," delegates = [],"," // Used to escape loops when there are no more"," // notifiers to consider"," count = notifierData ?"," Y.Object.keys(notifierData).length :"," 0,"," target, notifiers, notifier, yuid, match, tmp, i, len, sub, ret;",""," // clear the notifications list (mainly for delegation)"," currentTarget.clearData(nodeDataKey);",""," // Order the delegate subs by their placement in the parent axis"," axisNodes.push(currentTarget);"," // document.get('ownerDocument') returns null"," // which we'll use to prevent having duplicate Nodes in the list"," if (doc) {"," axisNodes.unshift(doc);"," }",""," // ancestors() returns the Nodes from top to bottom"," axisNodes._nodes.reverse();",""," if (count) {"," // Store the count for step 2"," tmp = count;"," axisNodes.some(function (node) {"," var yuid = Y.stamp(node),"," notifiers = notifierData[yuid],"," i, len;",""," if (notifiers) {"," count--;"," for (i = 0, len = notifiers.length; i < len; ++i) {"," if (notifiers[i].handle.sub.filter) {"," delegates.push(notifiers[i]);"," }"," }"," }",""," return !count;"," });"," count = tmp;"," }",""," // Walk up the parent axis, notifying direct subscriptions and"," // testing delegate filters."," while (count && (target = axisNodes.shift())) {"," yuid = Y.stamp(target);",""," notifiers = notifierData[yuid];",""," if (notifiers) {"," for (i = 0, len = notifiers.length; i < len; ++i) {"," notifier = notifiers[i];"," sub = notifier.handle.sub;"," match = true;",""," e.currentTarget = target;",""," if (sub.filter) {"," match = sub.filter.apply(target,"," [target, e].concat(sub.args || []));",""," // No longer necessary to test against this"," // delegate subscription for the nodes along"," // the parent axis."," delegates.splice("," arrayIndex(delegates, notifier), 1);"," }",""," if (match) {"," // undefined for direct subs"," e.container = notifier.container;"," ret = notifier.fire(e);"," }",""," if (ret === false || e.stopped === 2) {"," break;"," }"," }",""," delete notifiers[yuid];"," count--;"," }",""," if (e.stopped !== 2) {"," // delegates come after subs targeting this specific node"," // because they would not normally report until they'd"," // bubbled to the container node."," for (i = 0, len = delegates.length; i < len; ++i) {"," notifier = delegates[i];"," sub = notifier.handle.sub;",""," if (sub.filter.apply(target,"," [target, e].concat(sub.args || []))) {",""," e.container = notifier.container;"," e.currentTarget = target;"," ret = notifier.fire(e);"," }",""," if (ret === false || e.stopped === 2 ||"," // If e.stopPropagation() is called, notify any"," // delegate subs from the same container, but break"," // once the container changes. This emulates"," // delegate() behavior for events like 'click' which"," // won't notify delegates higher up the parent axis."," (e.stopped && delegates[i+1] &&"," delegates[i+1].container !== notifier.container)) {"," break;"," }"," }"," }",""," if (e.stopped) {"," break;"," }"," }"," },",""," on: function (node, sub, notifier) {"," sub.handle = this._attach(node._node, notifier);"," },",""," detach: function (node, sub) {"," sub.handle.detach();"," },",""," delegate: function (node, sub, notifier, filter) {"," if (isString(filter)) {"," sub.filter = function (target) {"," return Y.Selector.test(target._node, filter,"," node === target ? null : node._node);"," };"," }",""," sub.handle = this._attach(node._node, notifier, true);"," },",""," detachDelegate: function (node, sub) {"," sub.handle.detach();"," }"," }, true);","}","","// For IE, we need to defer to focusin rather than focus because","// `el.focus(); doSomething();` executes el.onbeforeactivate, el.onactivate,","// el.onfocusin, doSomething, then el.onfocus. All others support capture","// phase focus, which executes before doSomething. To guarantee consistent","// behavior for this use case, IE's direct subscriptions are made against","// focusin so subscribers will be notified before js following el.focus() is","// executed.","if (useActivate) {"," // name capture phase direct subscription"," define(\"focus\", \"beforeactivate\", \"focusin\");"," define(\"blur\", \"beforedeactivate\", \"focusout\");","} else {"," define(\"focus\", \"focus\", \"focus\");"," define(\"blur\", \"blur\", \"blur\");","}","","","}, '@VERSION@', {\"requires\": [\"event-synthetic\"]});","","}());"]};
}
var __cov_6QPN5D0gRV5cd0sDuZmrgw = __coverage__['build/event-focus/event-focus.js'];
__cov_6QPN5D0gRV5cd0sDuZmrgw.s['1']++;YUI.add('event-focus',function(Y,NAME){__cov_6QPN5D0gRV5cd0sDuZmrgw.f['1']++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['2']++;var Event=Y.Event,YLang=Y.Lang,isString=YLang.isString,arrayIndex=Y.Array.indexOf,useActivate=function(){__cov_6QPN5D0gRV5cd0sDuZmrgw.f['2']++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['3']++;var supported=false,doc=Y.config.doc,p;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['4']++;if(doc){__cov_6QPN5D0gRV5cd0sDuZmrgw.b['1'][0]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['5']++;p=doc.createElement('p');__cov_6QPN5D0gRV5cd0sDuZmrgw.s['6']++;p.setAttribute('onbeforeactivate',';');__cov_6QPN5D0gRV5cd0sDuZmrgw.s['7']++;supported=p.onbeforeactivate!==undefined;}else{__cov_6QPN5D0gRV5cd0sDuZmrgw.b['1'][1]++;}__cov_6QPN5D0gRV5cd0sDuZmrgw.s['8']++;return supported;}();__cov_6QPN5D0gRV5cd0sDuZmrgw.s['9']++;function define(type,proxy,directEvent){__cov_6QPN5D0gRV5cd0sDuZmrgw.f['3']++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['10']++;var nodeDataKey='_'+type+'Notifiers';__cov_6QPN5D0gRV5cd0sDuZmrgw.s['11']++;Y.Event.define(type,{_useActivate:useActivate,_attach:function(el,notifier,delegate){__cov_6QPN5D0gRV5cd0sDuZmrgw.f['4']++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['12']++;if(Y.DOM.isWindow(el)){__cov_6QPN5D0gRV5cd0sDuZmrgw.b['2'][0]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['13']++;return Event._attach([type,function(e){__cov_6QPN5D0gRV5cd0sDuZmrgw.f['5']++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['14']++;notifier.fire(e);},el]);}else{__cov_6QPN5D0gRV5cd0sDuZmrgw.b['2'][1]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['15']++;return Event._attach([proxy,this._proxy,el,this,notifier,delegate],{capture:true});}},_proxy:function(e,notifier,delegate){__cov_6QPN5D0gRV5cd0sDuZmrgw.f['6']++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['16']++;var target=e.target,currentTarget=e.currentTarget,notifiers=target.getData(nodeDataKey),yuid=Y.stamp(currentTarget._node),defer=(__cov_6QPN5D0gRV5cd0sDuZmrgw.b['3'][0]++,useActivate)||(__cov_6QPN5D0gRV5cd0sDuZmrgw.b['3'][1]++,target!==currentTarget),directSub;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['17']++;notifier.currentTarget=delegate?(__cov_6QPN5D0gRV5cd0sDuZmrgw.b['4'][0]++,target):(__cov_6QPN5D0gRV5cd0sDuZmrgw.b['4'][1]++,currentTarget);__cov_6QPN5D0gRV5cd0sDuZmrgw.s['18']++;notifier.container=delegate?(__cov_6QPN5D0gRV5cd0sDuZmrgw.b['5'][0]++,currentTarget):(__cov_6QPN5D0gRV5cd0sDuZmrgw.b['5'][1]++,null);__cov_6QPN5D0gRV5cd0sDuZmrgw.s['19']++;if(!notifiers){__cov_6QPN5D0gRV5cd0sDuZmrgw.b['6'][0]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['20']++;notifiers={};__cov_6QPN5D0gRV5cd0sDuZmrgw.s['21']++;target.setData(nodeDataKey,notifiers);__cov_6QPN5D0gRV5cd0sDuZmrgw.s['22']++;if(defer){__cov_6QPN5D0gRV5cd0sDuZmrgw.b['7'][0]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['23']++;directSub=Event._attach([directEvent,this._notify,target._node]).sub;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['24']++;directSub.once=true;}else{__cov_6QPN5D0gRV5cd0sDuZmrgw.b['7'][1]++;}}else{__cov_6QPN5D0gRV5cd0sDuZmrgw.b['6'][1]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['25']++;defer=true;}__cov_6QPN5D0gRV5cd0sDuZmrgw.s['26']++;if(!notifiers[yuid]){__cov_6QPN5D0gRV5cd0sDuZmrgw.b['8'][0]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['27']++;notifiers[yuid]=[];}else{__cov_6QPN5D0gRV5cd0sDuZmrgw.b['8'][1]++;}__cov_6QPN5D0gRV5cd0sDuZmrgw.s['28']++;notifiers[yuid].push(notifier);__cov_6QPN5D0gRV5cd0sDuZmrgw.s['29']++;if(!defer){__cov_6QPN5D0gRV5cd0sDuZmrgw.b['9'][0]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['30']++;this._notify(e);}else{__cov_6QPN5D0gRV5cd0sDuZmrgw.b['9'][1]++;}},_notify:function(e,container){__cov_6QPN5D0gRV5cd0sDuZmrgw.f['7']++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['31']++;var currentTarget=e.currentTarget,notifierData=currentTarget.getData(nodeDataKey),axisNodes=currentTarget.ancestors(),doc=currentTarget.get('ownerDocument'),delegates=[],count=notifierData?(__cov_6QPN5D0gRV5cd0sDuZmrgw.b['10'][0]++,Y.Object.keys(notifierData).length):(__cov_6QPN5D0gRV5cd0sDuZmrgw.b['10'][1]++,0),target,notifiers,notifier,yuid,match,tmp,i,len,sub,ret;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['32']++;currentTarget.clearData(nodeDataKey);__cov_6QPN5D0gRV5cd0sDuZmrgw.s['33']++;axisNodes.push(currentTarget);__cov_6QPN5D0gRV5cd0sDuZmrgw.s['34']++;if(doc){__cov_6QPN5D0gRV5cd0sDuZmrgw.b['11'][0]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['35']++;axisNodes.unshift(doc);}else{__cov_6QPN5D0gRV5cd0sDuZmrgw.b['11'][1]++;}__cov_6QPN5D0gRV5cd0sDuZmrgw.s['36']++;axisNodes._nodes.reverse();__cov_6QPN5D0gRV5cd0sDuZmrgw.s['37']++;if(count){__cov_6QPN5D0gRV5cd0sDuZmrgw.b['12'][0]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['38']++;tmp=count;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['39']++;axisNodes.some(function(node){__cov_6QPN5D0gRV5cd0sDuZmrgw.f['8']++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['40']++;var yuid=Y.stamp(node),notifiers=notifierData[yuid],i,len;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['41']++;if(notifiers){__cov_6QPN5D0gRV5cd0sDuZmrgw.b['13'][0]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['42']++;count--;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['43']++;for(i=0,len=notifiers.length;i<len;++i){__cov_6QPN5D0gRV5cd0sDuZmrgw.s['44']++;if(notifiers[i].handle.sub.filter){__cov_6QPN5D0gRV5cd0sDuZmrgw.b['14'][0]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['45']++;delegates.push(notifiers[i]);}else{__cov_6QPN5D0gRV5cd0sDuZmrgw.b['14'][1]++;}}}else{__cov_6QPN5D0gRV5cd0sDuZmrgw.b['13'][1]++;}__cov_6QPN5D0gRV5cd0sDuZmrgw.s['46']++;return!count;});__cov_6QPN5D0gRV5cd0sDuZmrgw.s['47']++;count=tmp;}else{__cov_6QPN5D0gRV5cd0sDuZmrgw.b['12'][1]++;}__cov_6QPN5D0gRV5cd0sDuZmrgw.s['48']++;while((__cov_6QPN5D0gRV5cd0sDuZmrgw.b['15'][0]++,count)&&(__cov_6QPN5D0gRV5cd0sDuZmrgw.b['15'][1]++,target=axisNodes.shift())){__cov_6QPN5D0gRV5cd0sDuZmrgw.s['49']++;yuid=Y.stamp(target);__cov_6QPN5D0gRV5cd0sDuZmrgw.s['50']++;notifiers=notifierData[yuid];__cov_6QPN5D0gRV5cd0sDuZmrgw.s['51']++;if(notifiers){__cov_6QPN5D0gRV5cd0sDuZmrgw.b['16'][0]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['52']++;for(i=0,len=notifiers.length;i<len;++i){__cov_6QPN5D0gRV5cd0sDuZmrgw.s['53']++;notifier=notifiers[i];__cov_6QPN5D0gRV5cd0sDuZmrgw.s['54']++;sub=notifier.handle.sub;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['55']++;match=true;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['56']++;e.currentTarget=target;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['57']++;if(sub.filter){__cov_6QPN5D0gRV5cd0sDuZmrgw.b['17'][0]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['58']++;match=sub.filter.apply(target,[target,e].concat((__cov_6QPN5D0gRV5cd0sDuZmrgw.b['18'][0]++,sub.args)||(__cov_6QPN5D0gRV5cd0sDuZmrgw.b['18'][1]++,[])));__cov_6QPN5D0gRV5cd0sDuZmrgw.s['59']++;delegates.splice(arrayIndex(delegates,notifier),1);}else{__cov_6QPN5D0gRV5cd0sDuZmrgw.b['17'][1]++;}__cov_6QPN5D0gRV5cd0sDuZmrgw.s['60']++;if(match){__cov_6QPN5D0gRV5cd0sDuZmrgw.b['19'][0]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['61']++;e.container=notifier.container;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['62']++;ret=notifier.fire(e);}else{__cov_6QPN5D0gRV5cd0sDuZmrgw.b['19'][1]++;}__cov_6QPN5D0gRV5cd0sDuZmrgw.s['63']++;if((__cov_6QPN5D0gRV5cd0sDuZmrgw.b['21'][0]++,ret===false)||(__cov_6QPN5D0gRV5cd0sDuZmrgw.b['21'][1]++,e.stopped===2)){__cov_6QPN5D0gRV5cd0sDuZmrgw.b['20'][0]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['64']++;break;}else{__cov_6QPN5D0gRV5cd0sDuZmrgw.b['20'][1]++;}}__cov_6QPN5D0gRV5cd0sDuZmrgw.s['65']++;delete notifiers[yuid];__cov_6QPN5D0gRV5cd0sDuZmrgw.s['66']++;count--;}else{__cov_6QPN5D0gRV5cd0sDuZmrgw.b['16'][1]++;}__cov_6QPN5D0gRV5cd0sDuZmrgw.s['67']++;if(e.stopped!==2){__cov_6QPN5D0gRV5cd0sDuZmrgw.b['22'][0]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['68']++;for(i=0,len=delegates.length;i<len;++i){__cov_6QPN5D0gRV5cd0sDuZmrgw.s['69']++;notifier=delegates[i];__cov_6QPN5D0gRV5cd0sDuZmrgw.s['70']++;sub=notifier.handle.sub;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['71']++;if(sub.filter.apply(target,[target,e].concat((__cov_6QPN5D0gRV5cd0sDuZmrgw.b['24'][0]++,sub.args)||(__cov_6QPN5D0gRV5cd0sDuZmrgw.b['24'][1]++,[])))){__cov_6QPN5D0gRV5cd0sDuZmrgw.b['23'][0]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['72']++;e.container=notifier.container;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['73']++;e.currentTarget=target;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['74']++;ret=notifier.fire(e);}else{__cov_6QPN5D0gRV5cd0sDuZmrgw.b['23'][1]++;}__cov_6QPN5D0gRV5cd0sDuZmrgw.s['75']++;if((__cov_6QPN5D0gRV5cd0sDuZmrgw.b['26'][0]++,ret===false)||(__cov_6QPN5D0gRV5cd0sDuZmrgw.b['26'][1]++,e.stopped===2)||(__cov_6QPN5D0gRV5cd0sDuZmrgw.b['26'][2]++,e.stopped)&&(__cov_6QPN5D0gRV5cd0sDuZmrgw.b['26'][3]++,delegates[i+1])&&(__cov_6QPN5D0gRV5cd0sDuZmrgw.b['26'][4]++,delegates[i+1].container!==notifier.container)){__cov_6QPN5D0gRV5cd0sDuZmrgw.b['25'][0]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['76']++;break;}else{__cov_6QPN5D0gRV5cd0sDuZmrgw.b['25'][1]++;}}}else{__cov_6QPN5D0gRV5cd0sDuZmrgw.b['22'][1]++;}__cov_6QPN5D0gRV5cd0sDuZmrgw.s['77']++;if(e.stopped){__cov_6QPN5D0gRV5cd0sDuZmrgw.b['27'][0]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['78']++;break;}else{__cov_6QPN5D0gRV5cd0sDuZmrgw.b['27'][1]++;}}},on:function(node,sub,notifier){__cov_6QPN5D0gRV5cd0sDuZmrgw.f['9']++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['79']++;sub.handle=this._attach(node._node,notifier);},detach:function(node,sub){__cov_6QPN5D0gRV5cd0sDuZmrgw.f['10']++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['80']++;sub.handle.detach();},delegate:function(node,sub,notifier,filter){__cov_6QPN5D0gRV5cd0sDuZmrgw.f['11']++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['81']++;if(isString(filter)){__cov_6QPN5D0gRV5cd0sDuZmrgw.b['28'][0]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['82']++;sub.filter=function(target){__cov_6QPN5D0gRV5cd0sDuZmrgw.f['12']++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['83']++;return Y.Selector.test(target._node,filter,node===target?(__cov_6QPN5D0gRV5cd0sDuZmrgw.b['29'][0]++,null):(__cov_6QPN5D0gRV5cd0sDuZmrgw.b['29'][1]++,node._node));};}else{__cov_6QPN5D0gRV5cd0sDuZmrgw.b['28'][1]++;}__cov_6QPN5D0gRV5cd0sDuZmrgw.s['84']++;sub.handle=this._attach(node._node,notifier,true);},detachDelegate:function(node,sub){__cov_6QPN5D0gRV5cd0sDuZmrgw.f['13']++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['85']++;sub.handle.detach();}},true);}__cov_6QPN5D0gRV5cd0sDuZmrgw.s['86']++;if(useActivate){__cov_6QPN5D0gRV5cd0sDuZmrgw.b['30'][0]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['87']++;define('focus','beforeactivate','focusin');__cov_6QPN5D0gRV5cd0sDuZmrgw.s['88']++;define('blur','beforedeactivate','focusout');}else{__cov_6QPN5D0gRV5cd0sDuZmrgw.b['30'][1]++;__cov_6QPN5D0gRV5cd0sDuZmrgw.s['89']++;define('focus','focus','focus');__cov_6QPN5D0gRV5cd0sDuZmrgw.s['90']++;define('blur','blur','blur');}},'@VERSION@',{'requires':['event-synthetic']});
|
app/javascript/mastodon/components/logo.js
|
tootcafe/mastodon
|
import React from 'react';
const Logo = () => (
<svg viewBox='0 0 216.4144 232.00976' className='logo'>
<use xlinkHref='#mastodon-svg-logo' />
</svg>
);
export default Logo;
|
ajax/libs/fluentui-react/8.57.1/fluentui-react.umd.min.js
|
cdnjs/cdnjs
|
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.FluentUIReact=t(require("React"),require("ReactDOM")):e.FluentUIReact=t(e.React,e.ReactDOM)}(self,function(t,r){return function(){"use strict";var o={804:function(e){e.exports=t},196:function(e){e.exports=r}},n={};function vT(e){var t=n[e];if(void 0!==t)return t.exports;t=n[e]={exports:{}};return o[e](t,t.exports,vT),t.exports}vT.d=function(e,t){for(var o in t)vT.o(t,o)&&!vT.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},vT.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),vT.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},vT.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var bT={};return function(){vT.r(bT),vT.d(bT,{ActionButton:function(){return rp},ActivityItem:function(){return pi},AnimationClassNames:function(){return Le},AnimationDirection:function(){return uh},AnimationStyles:function(){return Ie},AnimationVariables:function(){return we},Announced:function(){return Fi},AnnouncedBase:function(){return Bi},Async:function(){return xi},AutoScroll:function(){return dx},Autofill:function(){return wi},BaseButton:function(){return Zu},BaseComponent:function(){return xa},BaseExtendedPeoplePicker:function(){return LC},BaseExtendedPicker:function(){return MC},BaseFloatingPeoplePicker:function(){return j_},BaseFloatingPicker:function(){return z_},BasePeoplePicker:function(){return Dk},BasePeopleSelectedItemsList:function(){return g1},BasePicker:function(){return lk},BasePickerListBelow:function(){return ck},BaseSelectedItemsList:function(){return Uw},BaseSlots:function(){return hD},Breadcrumb:function(){return Ud},BreadcrumbBase:function(){return Fd},Button:function(){return lp},ButtonGrid:function(){return gp},ButtonGridCell:function(){return Dp},ButtonType:function(){return zd},COACHMARK_ATTRIBUTE_NAME:function(){return Rm},Calendar:function(){return Wh},Callout:function(){return lc},CalloutContent:function(){return Wl},CalloutContentBase:function(){return Hl},Check:function(){return qh},CheckBase:function(){return Uh},Checkbox:function(){return $h},CheckboxBase:function(){return Zh},CheckboxVisibility:function(){return kv},ChoiceGroup:function(){return vm},ChoiceGroupBase:function(){return gm},ChoiceGroupOption:function(){return hm},Coachmark:function(){return Bm},CoachmarkBase:function(){return Nm},CollapseAllVisibility:function(){return yv},ColorClassNames:function(){return jt},ColorPicker:function(){return pf},ColorPickerBase:function(){return nf},ColorPickerGridCell:function(){return WI},ColorPickerGridCellBase:function(){return OI},ColumnActionsMode:function(){return Cv},ColumnDragEndLocation:function(){return Sv},ComboBox:function(){return kf},CommandBar:function(){return rv},CommandBarBase:function(){return nv},CommandBarButton:function(){return up},CommandButton:function(){return dp},CommunicationColors:function(){return sT},CompactPeoplePicker:function(){return zk},CompactPeoplePickerBase:function(){return Pk},CompoundButton:function(){return sp},ConstrainMode:function(){return _v},ContextualMenu:function(){return Vu},ContextualMenuBase:function(){return Nu},ContextualMenuItem:function(){return Tc},ContextualMenuItemBase:function(){return yc},ContextualMenuItemType:function(){return Da},Customizations:function(){return yt},Customizer:function(){return Ul},CustomizerContext:function(){return xn},DATAKTP_ARIA_TARGET:function(){return Bc},DATAKTP_EXECUTE_TARGET:function(){return Nc},DATAKTP_TARGET:function(){return Mc},DATA_IS_SCROLLABLE_ATTRIBUTE:function(){return Is},DATA_PORTAL_ATTRIBUTE:function(){return Bs},DAYS_IN_WEEK:function(){return Tp},DEFAULT_CELL_STYLE_PROPS:function(){return Lv},DEFAULT_MASK_CHAR:function(){return dD},DEFAULT_ROW_HEIGHTS:function(){return Hv},DatePicker:function(){return mv},DatePickerBase:function(){return lv},DateRangeType:function(){return Ip},DayOfWeek:function(){return xp},DefaultButton:function(){return op},DefaultEffects:function(){return Rt},DefaultFontStyles:function(){return et},DefaultPalette:function(){return it},DefaultSpacing:function(){return Ft},DelayedRender:function(){return Mi},Depths:function(){return dt},DetailsColumnBase:function(){return $v},DetailsHeader:function(){return mb},DetailsHeaderBase:function(){return ab},DetailsList:function(){return h0},DetailsListBase:function(){return a0},DetailsListLayoutMode:function(){return xv},DetailsRow:function(){return xb},DetailsRowBase:function(){return bb},DetailsRowCheck:function(){return Xv},DetailsRowFields:function(){return gb},DetailsRowGlobalClassNames:function(){return Av},Dialog:function(){return J0},DialogBase:function(){return X0},DialogContent:function(){return j0},DialogContentBase:function(){return G0},DialogFooter:function(){return W0},DialogFooterBase:function(){return O0},DialogType:function(){return d0},DirectionalHint:function(){return Pa},DocumentCard:function(){return yy},DocumentCardActions:function(){return Sy},DocumentCardActivity:function(){return ky},DocumentCardDetails:function(){return Dy},DocumentCardImage:function(){return Fy},DocumentCardLocation:function(){return Ey},DocumentCardLogo:function(){return zy},DocumentCardPreview:function(){return Ry},DocumentCardStatus:function(){return Ky},DocumentCardTitle:function(){return Ly},DocumentCardType:function(){return B0},DragDropHelper:function(){return Qv},Dropdown:function(){return IC},DropdownBase:function(){return bC},DropdownMenuItemType:function(){return cf},EdgeChromiumHighContrastSelector:function(){return Qt},ElementType:function(){return Od},EventGroup:function(){return va},ExpandingCard:function(){return uS},ExpandingCardBase:function(){return cS},ExpandingCardMode:function(){return oS},ExtendedPeoplePicker:function(){return HC},ExtendedSelectedItem:function(){return d1},Fabric:function(){return Jl},FabricBase:function(){return Yl},FabricPerformance:function(){return MD},FabricSlots:function(){return mD},Facepile:function(){return e_},FacepileBase:function(){return JC},FirstWeekOfYear:function(){return wp},FloatingPeoplePicker:function(){return q_},FluentTheme:function(){return gT},FocusRects:function(){return na},FocusTrapCallout:function(){return Kh},FocusTrapZone:function(){return Vh},FocusZone:function(){return Zs},FocusZoneDirection:function(){return Ei},FocusZoneTabbableElements:function(){return Ai},FontClassNames:function(){return rt},FontIcon:function(){return Hr},FontSizes:function(){return Be},FontWeights:function(){return Fe},GlobalSettings:function(){return at},GroupFooter:function(){return Gb},GroupHeader:function(){return Hb},GroupShowAll:function(){return Wb},GroupSpacer:function(){return Mv},GroupedList:function(){return Xb},GroupedListBase:function(){return Zb},GroupedListSection:function(){return Ub},HEX_REGEX:function(){return Um},HighContrastSelector:function(){return Yt},HighContrastSelectorBlack:function(){return Xt},HighContrastSelectorWhite:function(){return Zt},HoverCard:function(){return vS},HoverCardBase:function(){return fS},HoverCardType:function(){return J_},Icon:function(){return Vr},IconBase:function(){return Wr},IconButton:function(){return id},IconFontSizes:function(){return Ae},IconType:function(){return dr},Image:function(){return Dr},ImageBase:function(){return wr},ImageCoverStyle:function(){return hr},ImageFit:function(){return pr},ImageIcon:function(){return Ea},ImageLoadState:function(){return mr},InjectionMode:function(){return d},IsFocusVisibleClassName:function(){return go},KTP_ARIA_SEPARATOR:function(){return Ac},KTP_FULL_PREFIX:function(){return Rc},KTP_LAYER_ID:function(){return Fc},KTP_PREFIX:function(){return Ec},KTP_SEPARATOR:function(){return Pc},KeyCodes:function(){return Tn},KeyboardSpinDirection:function(){return iI},Keytip:function(){return jS},KeytipData:function(){return Zc},KeytipEvents:function(){return fc},KeytipLayer:function(){return sx},KeytipLayerBase:function(){return ix},KeytipManager:function(){return zc},Label:function(){return om},LabelBase:function(){return tm},Layer:function(){return ac},LayerBase:function(){return rc},LayerHost:function(){return ux},Link:function(){return ua},LinkBase:function(){return la},List:function(){return Wf},ListPeoplePicker:function(){return Wk},ListPeoplePickerBase:function(){return Rk},LocalizedFontFamilies:function(){return Ne},LocalizedFontNames:function(){return Me},MAX_COLOR_ALPHA:function(){return zm},MAX_COLOR_HUE:function(){return Am},MAX_COLOR_RGB:function(){return Hm},MAX_COLOR_RGBA:function(){return Om},MAX_COLOR_SATURATION:function(){return Fm},MAX_COLOR_VALUE:function(){return Lm},MAX_HEX_LENGTH:function(){return Vm},MAX_RGBA_LENGTH:function(){return Gm},MIN_HEX_LENGTH:function(){return Wm},MIN_RGBA_LENGTH:function(){return Km},MarqueeSelection:function(){return Cx},MaskedTextField:function(){return pD},MeasuredContext:function(){return cd},MemberListPeoplePicker:function(){return Tk},MessageBar:function(){return Px},MessageBarBase:function(){return kx},MessageBarButton:function(){return hp},MessageBarType:function(){return vx},Modal:function(){return N0},ModalBase:function(){return M0},MonthOfYear:function(){return kp},MotionAnimations:function(){return mT},MotionDurations:function(){return pT},MotionTimings:function(){return hT},Nav:function(){return Hx},NavBase:function(){return Lx},NeutralColors:function(){return aT},NormalPeoplePicker:function(){return Ok},NormalPeoplePickerBase:function(){return Ek},OpenCardMode:function(){return Q_},OverflowButtonType:function(){return BC},OverflowSet:function(){return ev},OverflowSetBase:function(){return Xf},Overlay:function(){return _0},OverlayBase:function(){return y0},Panel:function(){return gC},PanelBase:function(){return sC},PanelType:function(){return oy},PeoplePickerItem:function(){return hk},PeoplePickerItemBase:function(){return pk},PeoplePickerItemSuggestion:function(){return vk},PeoplePickerItemSuggestionBase:function(){return fk},Persona:function(){return XC},PersonaBase:function(){return jC},PersonaCoin:function(){return di},PersonaCoinBase:function(){return si},PersonaInitialsColor:function(){return Nr},PersonaPresence:function(){return Mr},PersonaSize:function(){return Rr},Pivot:function(){return dw},PivotBase:function(){return iw},PivotItem:function(){return nw},PivotLinkFormat:function(){return lw},PivotLinkSize:function(){return cw},PlainCard:function(){return mS},PlainCardBase:function(){return hS},Popup:function(){return Rl},Position:function(){return Fa},PositioningContainer:function(){return Im},PrimaryButton:function(){return ap},ProgressIndicator:function(){return yw},ProgressIndicatorBase:function(){return gw},PulsingBeaconAnimationStyles:function(){return Do},RGBA_REGEX:function(){return jm},Rating:function(){return Tw},RatingBase:function(){return Iw},RatingSize:function(){return pw},Rectangle:function(){return Va},RectangleEdge:function(){return Ba},ResizeGroup:function(){return fd},ResizeGroupBase:function(){return md},ResizeGroupDirection:function(){return $u},ResponsiveMode:function(){return uu},SELECTION_CHANGE:function(){return gv},ScreenWidthMaxLarge:function(){return so},ScreenWidthMaxMedium:function(){return io},ScreenWidthMaxSmall:function(){return ro},ScreenWidthMaxXLarge:function(){return ao},ScreenWidthMaxXXLarge:function(){return lo},ScreenWidthMinLarge:function(){return eo},ScreenWidthMinMedium:function(){return $t},ScreenWidthMinSmall:function(){return Jt},ScreenWidthMinUhfMobile:function(){return co},ScreenWidthMinXLarge:function(){return to},ScreenWidthMinXXLarge:function(){return oo},ScreenWidthMinXXXLarge:function(){return no},ScrollToMode:function(){return Lf},ScrollablePane:function(){return Bw},ScrollablePaneBase:function(){return Nw},ScrollablePaneContext:function(){return Rw},ScrollbarVisibility:function(){return Pw},SearchBox:function(){return Gw},SearchBoxBase:function(){return zw},SelectAllVisibility:function(){return Yv},SelectableOptionMenuItemType:function(){return cf},SelectedPeopleList:function(){return f1},Selection:function(){return fv},SelectionDirection:function(){return pv},SelectionMode:function(){return dv},SelectionZone:function(){return Pv},SemanticColorSlots:function(){return gD},Separator:function(){return y1},SeparatorBase:function(){return b1},Shade:function(){return fg},SharedColors:function(){return lT},Shimmer:function(){return J1},ShimmerBase:function(){return Y1},ShimmerCircle:function(){return W1},ShimmerCircleBase:function(){return z1},ShimmerElementType:function(){return w1},ShimmerElementsDefaultHeights:function(){return I1},ShimmerElementsGroup:function(){return j1},ShimmerElementsGroupBase:function(){return K1},ShimmerGap:function(){return L1},ShimmerGapBase:function(){return F1},ShimmerLine:function(){return N1},ShimmerLineBase:function(){return R1},ShimmeredDetailsList:function(){return tI},ShimmeredDetailsListBase:function(){return eI},Slider:function(){return aI},SliderBase:function(){return nI},SpinButton:function(){return gI},Spinner:function(){return Fb},SpinnerBase:function(){return Mb},SpinnerSize:function(){return _b},SpinnerType:function(){return Sb},Stack:function(){return MI},StackItem:function(){return EI},Sticky:function(){return BI},StickyPositionType:function(){return II},Stylesheet:function(){return v},SuggestionActionType:function(){return Bx},SuggestionItemType:function(){return w_},Suggestions:function(){return jx},SuggestionsControl:function(){return H_},SuggestionsController:function(){return qx},SuggestionsCore:function(){return x_},SuggestionsHeaderFooterItem:function(){return L_},SuggestionsItem:function(){return b_},SuggestionsStore:function(){return $_},SwatchColorPicker:function(){return jI},SwatchColorPickerBase:function(){return KI},TagItem:function(){return Uk},TagItemBase:function(){return Gk},TagItemSuggestion:function(){return Zk},TagItemSuggestionBase:function(){return Yk},TagPicker:function(){return Qk},TagPickerBase:function(){return Xk},TeachingBubble:function(){return tD},TeachingBubbleBase:function(){return eD},TeachingBubbleContent:function(){return QI},TeachingBubbleContentBase:function(){return YI},Text:function(){return rD},TextField:function(){return qg},TextFieldBase:function(){return Og},TextStyles:function(){return nD},TextView:function(){return oD},ThemeContext:function(){return $D},ThemeGenerator:function(){return fD},ThemeProvider:function(){return dT},ThemeSettingName:function(){return Ot},TimeConstants:function(){return Ep},TimePicker:function(){return xD},Toggle:function(){return RD},ToggleBase:function(){return TD},Tooltip:function(){return kd},TooltipBase:function(){return xd},TooltipDelay:function(){return Cd},TooltipHost:function(){return Md},TooltipHostBase:function(){return Pd},TooltipOverflowMode:function(){return gd},ValidationState:function(){return zx},VerticalDivider:function(){return tu},VirtualizedComboBox:function(){return Yf},WeeklyDayPicker:function(){return JD},WindowContext:function(){return Il},WindowProvider:function(){return El},ZIndexes:function(){return mo},addDays:function(){return Pp},addDirectionalKeyCode:function(){return $s},addElementAtIndex:function(){return Ui},addMonths:function(){return Mp},addWeeks:function(){return Rp},addYears:function(){return Np},allowOverscrollOnElement:function(){return Ts},allowScrollOnElement:function(){return Ds},anchorProperties:function(){return qn},appendFunction:function(){return gi},arraysEqual:function(){return qi},asAsync:function(){return FD},assertNever:function(){return AD},assign:function(){return pa},audioProperties:function(){return Kn},baseElementEvents:function(){return On},baseElementProperties:function(){return zn},buildClassMap:function(){return H},buildColumns:function(){return c0},buildKeytipConfigMap:function(){return lx},buttonProperties:function(){return Yn},calculatePrecision:function(){return gx},canAnyMenuItemsCheck:function(){return Eu},clamp:function(){return Jm},classNamesFunction:function(){return Fn},colGroupProperties:function(){return nr},colProperties:function(){return rr},compareDatePart:function(){return zp},compareDates:function(){return Op},composeComponentAs:function(){return qu},composeRenderFunction:function(){return Ma},concatStyleSets:function(){return un},concatStyleSetsWithProps:function(){return dn},constructKeytip:function(){return cx},correctHSV:function(){return mg},correctHex:function(){return gg},correctRGB:function(){return hg},createArray:function(){return Wi},createFontStyles:function(){return Ve},createGenericItem:function(){return Lk},createItem:function(){return X_},createMemoizer:function(){return Lo},createMergedRef:function(){return Yi},createTheme:function(){return At},css:function(){return Pr},cssColor:function(){return Xm},customizable:function(){return Qu},defaultCalendarNavigationIcons:function(){return _h},defaultCalendarStrings:function(){return yh},defaultDatePickerStrings:function(){return iv},defaultDayPickerStrings:function(){return Ch},defaultWeeklyDayPickerNavigationIcons:function(){return ZD},defaultWeeklyDayPickerStrings:function(){return YD},disableBodyScroll:function(){return Ps},divProperties:function(){return cr},doesElementContainFocus:function(){return hs},elementContains:function(){return es},elementContainsAttribute:function(){return $i},enableBodyScroll:function(){return Rs},extendComponent:function(){return fi},filteredAssign:function(){return ha},find:function(){return zi},findElementRecursive:function(){return Ji},findIndex:function(){return Oi},findScrollableParent:function(){return Ns},fitContentToBounds:function(){return mx},flatten:function(){return ji},focusAsync:function(){return fs},focusClear:function(){return yo},focusFirstChild:function(){return is},fontFace:function(){return He},formProperties:function(){return ir},format:function(){return $p},getAllSelectedOptions:function(){return _f},getAriaDescribedBy:function(){return jc},getBackgroundShade:function(){return Pg},getBoundsFromTargetWindow:function(){return Cl},getChildren:function(){return LD},getColorFromHSV:function(){return ag},getColorFromRGBA:function(){return ig},getColorFromString:function(){return sg},getContrastRatio:function(){return Rg},getDatePartHashValue:function(){return Yp},getDateRangeArray:function(){return Wp},getDetailsRowStyles:function(){return zv},getDistanceBetweenPoints:function(){return hx},getDocument:function(){return ft},getEdgeChromiumNoHighContrastAdjustSelector:function(){return ho},getElementIndexPath:function(){return bs},getEndDateOfWeek:function(){return jp},getFadedOverflowStyle:function(){return qo},getFirstFocusable:function(){return ts},getFirstTabbable:function(){return ns},getFirstVisibleElementFromSelector:function(){return WS},getFocusOutlineStyle:function(){return Co},getFocusStyle:function(){return bo},getFocusableByIndexPath:function(){return vs},getFontIcon:function(){return Or},getFullColorString:function(){return lg},getGlobalClassNames:function(){return zo},getHighContrastNoAdjustStyle:function(){return po},getIcon:function(){return nn},getIconClassName:function(){return cn},getIconContent:function(){return Lr},getId:function(){return Ss},getInitialResponsiveMode:function(){return Cu},getInitials:function(){return Cr},getInputFocusStyle:function(){return _o},getLanguage:function(){return Qe},getLastFocusable:function(){return os},getLastTabbable:function(){return rs},getMaxHeight:function(){return bl},getMeasurementCache:function(){return ad},getMenuItemStyles:function(){return xc},getMonthEnd:function(){return Fp},getMonthStart:function(){return Bp},getNativeElementProps:function(){return Bv},getNativeProps:function(){return ur},getNextElement:function(){return as},getNextResizeGroupStateProvider:function(){return ld},getOppositeEdge:function(){return yl},getParent:function(){return Qi},getPersonaInitialsColor:function(){return oi},getPlaceholderStyles:function(){return Zo},getPreviousElement:function(){return ss},getPropsWithDefaults:function(){return Hn},getRTL:function(){return Pn},getRTLSafeKeyCode:function(){return Mn},getRect:function(){return t0},getResourceUrl:function(){return OD},getResponsiveMode:function(){return Su},getScreenSelector:function(){return uo},getScrollbarWidth:function(){return Ms},getShade:function(){return Eg},getSplitButtonClassNames:function(){return Uu},getStartDateOfWeek:function(){return Up},getSubmenuItems:function(){return Tu},getTheme:function(){return Wt},getThemedContext:function(){return Go},getVirtualParent:function(){return Xi},getWeekNumber:function(){return Gp},getWeekNumbersInMonth:function(){return Kp},getWindow:function(){return qe},getYearEnd:function(){return Lp},getYearStart:function(){return Ap},hasHorizontalOverflow:function(){return vd},hasOverflow:function(){return yd},hasVerticalOverflow:function(){return bd},hiddenContentStyle:function(){return So},hoistMethods:function(){return lu},hoistStatics:function(){return mu},hsl2hsv:function(){return qm},hsl2rgb:function(){return Zm},hsv2hex:function(){return tg},hsv2hsl:function(){return ng},hsv2rgb:function(){return Ym},htmlElementProperties:function(){return Wn},iframeProperties:function(){return sr},imageProperties:function(){return lr},imgProperties:function(){return ar},initializeComponentRef:function(){return vi},initializeFocusRects:function(){return WD},initializeIcons:function(){return zS},initializeResponsiveMode:function(){return yu},inputProperties:function(){return Zn},isControlled:function(){return Fg},isDark:function(){return Tg},isDirectionalKeyCode:function(){return Js},isElementFocusSubZone:function(){return ps},isElementFocusZone:function(){return ds},isElementTabbable:function(){return us},isElementVisible:function(){return ls},isElementVisibleAndNotHidden:function(){return cs},isIE11:function(){return hi},isIOS:function(){return Aa},isInDateRangeArray:function(){return Vp},isMac:function(){return Na},isRelativeUrl:function(){return Nx},isValidShade:function(){return wg},isVirtualElement:function(){return Zi},keyframes:function(){return O},ktpTargetFromId:function(){return Uc},ktpTargetFromSequences:function(){return Gc},labelProperties:function(){return Vn},liProperties:function(){return jn},loadTheme:function(){return Gt},makeStyles:function(){return rT},mapEnumByName:function(){return ma},memoize:function(){return Fo},memoizeFunction:function(){return Ao},merge:function(){return Mt},mergeAriaAttributeValues:function(){return Ia},mergeCustomizations:function(){return Kl},mergeOverflows:function(){return Kc},mergeScopedSettings:function(){return Vo},mergeSettings:function(){return Wo},mergeStyleSets:function(){return pn},mergeStyles:function(){return j},mergeThemes:function(){return Bt},modalize:function(){return Sl},noWrap:function(){return jo},normalize:function(){return Uo},nullRender:function(){return wa},olProperties:function(){return Un},omit:function(){return fa},on:function(){return Wa},optionProperties:function(){return Jn},personaPresenceSize:function(){return Fr},personaSize:function(){return Br},portalContainsElement:function(){return As},positionCallout:function(){return fl},positionCard:function(){return vl},positionElement:function(){return gl},precisionRound:function(){return fx},presenceBoolean:function(){return jr},raiseClick:function(){return UD},registerDefaultFontFaces:function(){return nt},registerIconAlias:function(){return on},registerIcons:function(){return en},registerOnThemeChangeCallback:function(){return Vt},removeIndex:function(){return Ki},removeOnThemeChangeCallback:function(){return Kt},replaceElement:function(){return Gi},resetControlledWarnings:function(){return Ng},resetIds:function(){return xs},resetMemoizations:function(){return Bo},rgb2hex:function(){return $m},rgb2hsv:function(){return og},safeRequestAnimationFrame:function(){return Gy},safeSetTimeout:function(){return qD},selectProperties:function(){return Qn},sequencesToID:function(){return Vc},setBaseUrl:function(){return zD},setFocusVisibility:function(){return vo},setIconOptions:function(){return rn},setLanguage:function(){return Je},setMemoizeWeakMap:function(){return No},setMonth:function(){return Hp},setPortalAttribute:function(){return Fs},setRTL:function(){return Rn},setResponsiveMode:function(){return bu},setSSR:function(){return Ge},setVirtualParent:function(){return $l},setWarningCallback:function(){return Qo},shallowCompare:function(){return da},shouldWrapFocus:function(){return ms},sizeBoolean:function(){return Gr},sizeToPixels:function(){return Ur},styled:function(){return In},tableProperties:function(){return $n},tdProperties:function(){return or},textAreaProperties:function(){return Xn},thProperties:function(){return tr},themeRulesStandardCreator:function(){return bD},toMatrix:function(){return Vi},trProperties:function(){return er},transitionKeysAreEqual:function(){return tx},transitionKeysContain:function(){return ox},unhoistMethods:function(){return cu},unregisterIcons:function(){return tn},updateA:function(){return pg},updateH:function(){return ug},updateRGB:function(){return dg},updateSV:function(){return cg},updateT:function(){return Mg},useCustomizationSettings:function(){return kn},useDocument:function(){return Tl},useFocusRects:function(){return oa},useHeightOffset:function(){return wm},useKeytipRef:function(){return ZS},useResponsiveMode:function(){return xu},useTheme:function(){return eT},useWindow:function(){return Dl},values:function(){return ga},videoProperties:function(){return Gn},warn:function(){return Xo},warnConditionallyRequiredProps:function(){return ya},warnControlledUsage:function(){return Bg},warnDeprecations:function(){return Ca},warnMutuallyExclusive:function(){return _a},withResponsiveMode:function(){return _u}});var e={};vT.r(e),vT.d(e,{pickerInput:function(){return PC},pickerText:function(){return EC}});var t={};vT.r(t),vT.d(t,{callout:function(){return o_}});var o={};vT.r(o),vT.d(o,{actionButton:function(){return c_},buttonSelected:function(){return u_},closeButton:function(){return s_},itemButton:function(){return l_},root:function(){return r_},suggestionsAvailable:function(){return g_},suggestionsContainer:function(){return p_},suggestionsItem:function(){return i_},suggestionsItemIsSuggested:function(){return a_},suggestionsNone:function(){return h_},suggestionsSpinner:function(){return m_},suggestionsTitle:function(){return d_}});var n={};vT.r(n),vT.d(n,{suggestionsContainer:function(){return __}});var r={};vT.r(r),vT.d(r,{actionButton:function(){return D_},buttonSelected:function(){return T_},itemButton:function(){return R_},root:function(){return I_},screenReaderOnly:function(){return M_},suggestionsSpinner:function(){return P_},suggestionsTitle:function(){return E_}});var i={};vT.r(i),vT.d(i,{inputDisabled:function(){return ok},inputFocused:function(){return tk},pickerInput:function(){return nk},pickerItems:function(){return rk},pickerText:function(){return ek},screenReaderOnly:function(){return ik}});var s={};vT.r(s),vT.d(s,{actionButton:function(){return t1},expandButton:function(){return s1},hover:function(){return e1},itemContainer:function(){return c1},itemContent:function(){return r1},personaContainer:function(){return $w},personaContainerIsSelected:function(){return o1},personaDetails:function(){return l1},personaWrapper:function(){return a1},removeButton:function(){return i1},validationError:function(){return n1}});var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)};function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var ht=function(){return(ht=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function mt(e,t){var o={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(o[r[n]]=e[r[n]]);return o}function c(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(s=(i<3?r(s):3<i?r(t,o,s):r(t,o))||s);return 3<i&&s&&Object.defineProperty(t,o,s),s}function $e(e,t,o){if(o||2===arguments.length)for(var n,r=0,i=t.length;r<i;r++)!n&&r in t||((n=n||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,Object.create;var u,gt=vT(804),d={none:0,insertNode:1,appendChild:2},p="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),h={};try{h=window||{}}catch(k){}var v=(m.getInstance=function(){var e;return(!(u=h.__stylesheet__)||u._lastStyleElement&&u._lastStyleElement.ownerDocument!==document)&&(e=new m((e=(null==h?void 0:h.FabricConfig)||{}).mergeStyles,e.serializedStylesheet),u=e,h.__stylesheet__=e),u},m.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},m.prototype.setConfig=function(e){this._config=ht(ht({},this._config),e)},m.prototype.onReset=function(t){var e=this;return this._onResetCallbacks.push(t),function(){e._onResetCallbacks=e._onResetCallbacks.filter(function(e){return e!==t})}},m.prototype.onInsertRule=function(t){var e=this;return this._onInsertRuleCallbacks.push(t),function(){e._onInsertRuleCallbacks=e._onInsertRuleCallbacks.filter(function(e){return e!==t})}},m.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},m.prototype.cacheClassName=function(e,t,o,n){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:o,rules:n}},m.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},m.prototype.getClassNameCache=function(){return this._keyToClassName},m.prototype.argsFromClassName=function(e){e=this._classNameToArgs[e];return e&&e.args},m.prototype.insertedRulesFromClassName=function(e){e=this._classNameToArgs[e];return e&&e.rules},m.prototype.insertRule=function(e,t){var o=this._config.injectionMode,n=o!==d.none?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),n)switch(o){case d.insertNode:var r=n.sheet;try{r.insertRule(e,r.cssRules.length)}catch(e){}break;case d.appendChild:n.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach(function(e){return e()})},m.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},m.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(e){return e()})},m.prototype.resetKeys=function(){this._keyToClassName={}},m.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),p||window.requestAnimationFrame(function(){e._styleElement=void 0})),this._styleElement},m.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),o=null;t.setAttribute("data-merge-styles","true");var n=this._config.cspSettings;return n&&n.nonce&&t.setAttribute("nonce",n.nonce),o=this._lastStyleElement?this._lastStyleElement.nextElementSibling:(n=this._findPlaceholderStyleTag())?n.nextElementSibling:e.childNodes[0],e.insertBefore(t,e.contains(o)?o:null),this._lastStyleElement=t},m.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},m);function m(e,t){this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=ht({injectionMode:"undefined"==typeof document?d.none:d.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!==(e=null==t?void 0:t.classNameToArgs)&&void 0!==e?e:this._classNameToArgs,this._counter=null!==(e=null==t?void 0:t.counter)&&void 0!==e?e:this._counter,this._keyToClassName=null!==(e=null!==(e=this._config.classNameCache)&&void 0!==e?e:null==t?void 0:t.keyToClassName)&&void 0!==e?e:this._keyToClassName,this._preservedRules=null!==(e=null==t?void 0:t.preservedRules)&&void 0!==e?e:this._preservedRules,this._rules=null!==(t=null==t?void 0:t.rules)&&void 0!==t?t:this._rules}function g(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var s=[],a=[],l=v.getInstance();return function e(t){for(var o=0,n=t;o<n.length;o++){var r,i=n[o];i&&("string"==typeof i?0<=i.indexOf(" ")?e(i.split(" ")):(r=l.argsFromClassName(i))?e(r):-1===s.indexOf(i)&&s.push(i):Array.isArray(i)?e(i):"object"==typeof i&&a.push(i))}}(e),{classes:s,objects:a}}function f(e){_!==e&&(_=e)}function b(){return _=void 0===_?"undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir"):_}function y(){return{rtl:b()}}var C,_=b(),S={},x={"user-select":1};var k,w=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];var I="left",D="right",T=((k={}).left=D,k.right=I,k),E={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};var P=/\:global\((.+?)\)/g;function R(e,t){return 0<=e.indexOf(":global(")?e.replace(P,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function M(t,o,e,n){void 0===o&&(o={__order:[]}),0===e.indexOf("@")?N([n],o,e=e+"{"+t):-1<e.indexOf(",")?function(e){if(!P.test(e))return e;for(var t=[],o=/\:global\((.+?)\)/g,n=null;n=o.exec(e);)-1<n[1].indexOf(",")&&t.push([n.index,n.index+n[0].length,n[1].split(",").map(function(e){return":global("+e.trim()+")"}).join(", ")]);return t.reverse().reduce(function(e,t){var o=t[0],n=t[1],t=t[2];return e.slice(0,o)+t+e.slice(n)},e)}(e).split(",").map(function(e){return e.trim()}).forEach(function(e){return N([n],o,R(e,t))}):N([n],o,R(e,t))}function N(e,t,o){void 0===t&&(t={__order:[]}),void 0===o&&(o="&");var n=v.getInstance(),r=t[o];r||(t[o]=r={},t.__order.push(o));for(var i,s,a,l,c=0,u=e;c<u.length;c++){var d=u[c];if("string"==typeof d){var p=n.argsFromClassName(d);p&&N(p,t,o)}else if(Array.isArray(d))N(d,t,o);else for(var h in d)if(d.hasOwnProperty(h)){var m=d[h];if("selectors"===h){var g,f=d.selectors;for(g in f)f.hasOwnProperty(g)&&M(o,t,g,f[g])}else"object"==typeof m?null!==m&&M(o,t,h,m):void 0!==m&&("margin"===h||"padding"===h?(i=r,s=h,l=void 0,0===(l="string"==typeof(a=m)?function(e){for(var t=[],o=0,n=0,r=0;r<e.length;r++)switch(e[r]){case"(":n++;break;case")":n&&n--;break;case"\t":case" ":n||(o<r&&t.push(e.substring(o,r)),o=r+1)}return o<e.length&&t.push(e.substring(o)),t}(a):[a]).length&&l.push(a),"!important"===l[l.length-1]&&(l=l.slice(0,-1).map(function(e){return e+" !important"})),i[s+"Top"]=l[0],i[s+"Right"]=l[1]||l[0],i[s+"Bottom"]=l[2]||l[0],i[s+"Left"]=l[3]||l[1]||l[0]):r[h]=m)}}return t}function B(e,t){if(!t)return"";var o,n=[];for(o in t)t.hasOwnProperty(o)&&"displayName"!==o&&void 0!==t[o]&&n.push(o,t[o]);for(var r,i,s,a,l,c=0;c<n.length;c+=2)i=void 0,"-"!==(i=(l=n)[r=c]).charAt(0)&&(l[r]=S[i]=S[i]||i.replace(/([A-Z])/g,"-$1").toLowerCase()),l=a=s=void 0,a=(r=n)[i=c],"number"==typeof(l=r[i+1])&&(s=-1<w.indexOf(a),a=-1<a.indexOf("--"),r[i+1]=l+(s||a?"":"px")),function(e,t,o){if(e.rtl){e=t[o];if(e){var n=t[o+1];if("string"==typeof n&&0<=n.indexOf("@noflip"))t[o+1]=n.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(0<=e.indexOf(I))t[o]=e.replace(I,D);else if(0<=e.indexOf(D))t[o]=e.replace(D,I);else if(0<=String(n).indexOf(I))t[o+1]=n.replace(I,D);else if(0<=String(n).indexOf(D))t[o+1]=n.replace(D,I);else if(T[e])t[o]=T[e];else if(E[n])t[o+1]=E[n];else switch(e){case"margin":case"padding":t[o+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(n);break;case"box-shadow":t[o+1]=(r=n.split(" "),i=parseInt(r[0],10),r[0]=r[0].replace(String(i),String(-1*i)),r.join(" "))}}}var r,i}(e,n,c),r=n,i=c,a=s=l=void 0,C||(l="undefined"!=typeof document?document:void 0,s=null===(s=null==(a="undefined"!=typeof navigator?navigator:void 0)?void 0:a.userAgent)||void 0===s?void 0:s.toLowerCase(),C=l?{isWebkit:!!(l&&"WebkitAppearance"in l.documentElement.style),isMoz:!!(s&&-1<s.indexOf("firefox")),isOpera:!!(s&&-1<s.indexOf("opera")),isMs:!(!a||!/rv:11.0/i.test(a.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}),s=C,a=r[i],x[a]&&(i=r[i+1],x[a]&&(s.isWebkit&&r.push("-webkit-"+a,i),s.isMoz&&r.push("-moz-"+a,i),s.isMs&&r.push("-ms-"+a,i),s.isOpera&&r.push("-o-"+a,i)));for(c=1;c<n.length;c+=4)n.splice(c,1,":",n[c],";");return n.join("")}function F(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];var n=N(t),r=function(e,t){for(var o=[e.rtl?"rtl":"ltr"],n=!1,r=0,i=t.__order;r<i.length;r++){var s=i[r];o.push(s);var a,l=t[s];for(a in l)l.hasOwnProperty(a)&&void 0!==l[a]&&(n=!0,o.push(a,l[a]))}return n?o.join(""):void 0}(e,n);if(r){var i=v.getInstance(),r={className:i.classNameFromKey(r),key:r,args:t};if(!r.className){r.className=i.getClassName((i=(i=n)&&i["&"])?i.displayName:void 0);for(var s=[],a=0,l=n.__order;a<l.length;a++){var c=l[a];s.push(c,B(e,n[c]))}r.rulesToInsert=s}return r}}function A(e,t){void 0===t&&(t=1);var o=v.getInstance(),n=e.className,r=e.key,i=e.args,s=e.rulesToInsert;if(s){for(var a=0;a<s.length;a+=2){var l,c=s[a+1];c&&(l=(l=(l=s[a]).replace(/&/g,function e(t,o){return o<=0?"":1===o?t:t+e(t,o-1)}("."+e.className,t)))+"{"+c+"}"+(0===l.indexOf("@")?"}":""),o.insertRule(l))}o.cacheClassName(n,r,i,s)}}function j(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return L(e,y())}function L(e,t){var o=g(e instanceof Array?e:[e]),e=o.classes,o=o.objects;return o.length&&e.push(function(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];var n=F.apply(void 0,$e([e],t));return n?(A(n,e.specificityMultiplier),n.className):""}(t||{},o)),e.join(" ")}function H(o){var e,n={};for(e in o)!function(e){var t;o.hasOwnProperty(e)&&Object.defineProperty(n,e,{get:function(){return t=void 0===t?j(o[e]).toString():t},enumerable:!0,configurable:!0})}(e);return n}function O(e){var t,o=v.getInstance(),n=[];for(t in e)e.hasOwnProperty(t)&&n.push(t,"{",B(y(),e[t]),"}");var r=n.join(""),i=o.classNameFromKey(r);if(i)return i;i=o.getClassName();return o.insertRule("@keyframes "+i+"{"+r+"}",!0),o.cacheClassName(i,r,[],["keyframes",r]),i}var z="cubic-bezier(.1,.9,.2,1)",W="cubic-bezier(.1,.25,.75,.9)",V="0.167s",K="0.267s",G="0.367s",U="0.467s",q=O({from:{opacity:0},to:{opacity:1}}),Y=O({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),Z=Te(-10),X=Te(-20),Q=Te(-40),J=Te(-400),$=Te(10),ee=Te(20),te=Te(40),oe=Te(400),ne=Ee(10),re=Ee(20),ie=Ee(-10),se=Ee(-20),ae=Pe(10),le=Pe(20),ce=Pe(40),ue=Pe(400),de=Pe(-10),pe=Pe(-20),he=Pe(-40),me=Pe(-400),ge=Re(-10),fe=Re(-20),ve=Re(10),be=Re(20),ye=O({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),Ce=O({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),_e=O({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),Se=O({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),xe=O({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),ke=O({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}}),we={easeFunction1:z,easeFunction2:W,durationValue1:V,durationValue2:K,durationValue3:G,durationValue4:U},Ie={slideRightIn10:De(q+","+Z,G,z),slideRightIn20:De(q+","+X,G,z),slideRightIn40:De(q+","+Q,G,z),slideRightIn400:De(q+","+J,G,z),slideLeftIn10:De(q+","+$,G,z),slideLeftIn20:De(q+","+ee,G,z),slideLeftIn40:De(q+","+te,G,z),slideLeftIn400:De(q+","+oe,G,z),slideUpIn10:De(q+","+ne,G,z),slideUpIn20:De(q+","+re,G,z),slideDownIn10:De(q+","+ie,G,z),slideDownIn20:De(q+","+se,G,z),slideRightOut10:De(Y+","+ae,G,z),slideRightOut20:De(Y+","+le,G,z),slideRightOut40:De(Y+","+ce,G,z),slideRightOut400:De(Y+","+ue,G,z),slideLeftOut10:De(Y+","+de,G,z),slideLeftOut20:De(Y+","+pe,G,z),slideLeftOut40:De(Y+","+he,G,z),slideLeftOut400:De(Y+","+me,G,z),slideUpOut10:De(Y+","+ge,G,z),slideUpOut20:De(Y+","+fe,G,z),slideDownOut10:De(Y+","+ve,G,z),slideDownOut20:De(Y+","+be,G,z),scaleUpIn100:De(q+","+ye,G,z),scaleDownIn100:De(q+","+_e,G,z),scaleUpOut103:De(Y+","+Se,V,W),scaleDownOut98:De(Y+","+Ce,V,W),fadeIn100:De(q,V,W),fadeIn200:De(q,K,W),fadeIn400:De(q,G,W),fadeIn500:De(q,U,W),fadeOut100:De(Y,V,W),fadeOut200:De(Y,K,W),fadeOut400:De(Y,G,W),fadeOut500:De(Y,U,W),rotate90deg:De(xe,"0.1s",W),rotateN90deg:De(ke,"0.1s",W)};function De(e,t,o){return{animationName:e,animationDuration:t,animationTimingFunction:o,animationFillMode:"both"}}function Te(e){return O({from:{transform:"translate3d("+e+"px,0,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Ee(e){return O({from:{transform:"translate3d(0,"+e+"px,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Pe(e){return O({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function Re(e){return O({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var Me,Ne,Be,Fe,Ae,Le=H(Ie);function He(e){var t=v.getInstance(),o=B(y(),e);t.classNameFromKey(o)||(e=t.getClassName(),t.insertRule("@font-face{"+o+"}",!0),t.cacheClassName(e,o,[],["font-face",o]))}(K=Me=Me||{}).Arabic="Segoe UI Web (Arabic)",K.Cyrillic="Segoe UI Web (Cyrillic)",K.EastEuropean="Segoe UI Web (East European)",K.Greek="Segoe UI Web (Greek)",K.Hebrew="Segoe UI Web (Hebrew)",K.Thai="Leelawadee UI Web",K.Vietnamese="Segoe UI Web (Vietnamese)",K.WestEuropean="Segoe UI Web (West European)",K.Selawik="Selawik Web",K.Armenian="Segoe UI Web (Armenian)",K.Georgian="Segoe UI Web (Georgian)",(G=Ne=Ne||{}).Arabic="'"+Me.Arabic+"'",G.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",G.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",G.Cyrillic="'"+Me.Cyrillic+"'",G.EastEuropean="'"+Me.EastEuropean+"'",G.Greek="'"+Me.Greek+"'",G.Hebrew="'"+Me.Hebrew+"'",G.Hindi="'Nirmala UI'",G.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",G.Korean="'Malgun Gothic', Gulim",G.Selawik="'"+Me.Selawik+"'",G.Thai="'Leelawadee UI Web', 'Kmer UI'",G.Vietnamese="'"+Me.Vietnamese+"'",G.WestEuropean="'"+Me.WestEuropean+"'",G.Armenian="'"+Me.Armenian+"'",G.Georgian="'"+Me.Georgian+"'",(Y=Be=Be||{}).size10="10px",Y.size12="12px",Y.size14="14px",Y.size16="16px",Y.size18="18px",Y.size20="20px",Y.size24="24px",Y.size28="28px",Y.size32="32px",Y.size42="42px",Y.size68="68px",Y.mini="10px",Y.xSmall="10px",Y.small="12px",Y.smallPlus="12px",Y.medium="14px",Y.mediumPlus="16px",Y.icon="16px",Y.large="18px",Y.xLarge="20px",Y.xLargePlus="24px",Y.xxLarge="28px",Y.xxLargePlus="32px",Y.superLarge="42px",Y.mega="68px",(U=Fe=Fe||{}).light=100,U.semilight=300,U.regular=400,U.semibold=600,U.bold=700,(xe=Ae=Ae||{}).xSmall="10px",xe.small="12px",xe.medium="16px",xe.large="20px";var Oe="'Segoe UI', '"+Me.WestEuropean+"'",ze={ar:Ne.Arabic,bg:Ne.Cyrillic,cs:Ne.EastEuropean,el:Ne.Greek,et:Ne.EastEuropean,he:Ne.Hebrew,hi:Ne.Hindi,hr:Ne.EastEuropean,hu:Ne.EastEuropean,ja:Ne.Japanese,kk:Ne.EastEuropean,ko:Ne.Korean,lt:Ne.EastEuropean,lv:Ne.EastEuropean,pl:Ne.EastEuropean,ru:Ne.Cyrillic,sk:Ne.EastEuropean,"sr-latn":Ne.EastEuropean,th:Ne.Thai,tr:Ne.EastEuropean,uk:Ne.Cyrillic,vi:Ne.Vietnamese,"zh-hans":Ne.ChineseSimplified,"zh-hant":Ne.ChineseTraditional,hy:Ne.Armenian,ka:Ne.Georgian};function We(e,t,o){return{fontFamily:o,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}function Ve(e){e=function(e){for(var t in ze)if(ze.hasOwnProperty(t)&&e&&0===t.indexOf(e))return ze[t];return Oe}(e)+", 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif";return{tiny:We(Be.mini,Fe.regular,e),xSmall:We(Be.xSmall,Fe.regular,e),small:We(Be.small,Fe.regular,e),smallPlus:We(Be.smallPlus,Fe.regular,e),medium:We(Be.medium,Fe.regular,e),mediumPlus:We(Be.mediumPlus,Fe.regular,e),large:We(Be.large,Fe.regular,e),xLarge:We(Be.xLarge,Fe.semibold,e),xLargePlus:We(Be.xLargePlus,Fe.semibold,e),xxLarge:We(Be.xxLarge,Fe.semibold,e),xxLargePlus:We(Be.xxLargePlus,Fe.semibold,e),superLarge:We(Be.superLarge,Fe.semibold,e),mega:We(Be.mega,Fe.semibold,e)}}var Ke=!1;function Ge(e){Ke=e}function ft(e){if(!Ke&&"undefined"!=typeof document)return e&&e.ownerDocument?e.ownerDocument:document}var Ue,je=void 0;try{je=window}catch(e){}function qe(e){if(!Ke&&void 0!==je)return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:je}function Ye(e){var t=null;try{var o=qe(),t=o?o.sessionStorage.getItem(e):null}catch(e){}return t}function Ze(e,t){var o;try{null===(o=qe())||void 0===o||o.sessionStorage.setItem(e,t)}catch(e){}}var Xe="language";function Qe(e){var t;return void 0===e&&(e="sessionStorage"),void 0===Ue&&(t=ft(),e="localStorage"===e?function(){var e=null;try{var t=qe(),e=t?t.localStorage.getItem("language"):null}catch(e){}return e}():"sessionStorage"===e?Ye(Xe):void 0,void 0===(Ue=void 0===(Ue=e?e:Ue)&&t?t.documentElement.getAttribute("lang"):Ue)&&(Ue="en")),Ue}function Je(e,t){var o=ft();o&&o.documentElement.setAttribute("lang",e);t=!0===t?"none":t||"sessionStorage";"localStorage"===t?function(e){try{var t=qe();t&&t.localStorage.setItem("language",e)}catch(e){}}(e):"sessionStorage"===t&&Ze(Xe,e),Ue=e}var et=Ve(Qe());function tt(e,t,o,n){He({fontFamily:e="'"+e+"'",src:(void 0!==n?"local('"+n+"'),":"")+"url('"+t+".woff2') format('woff2'),url('"+t+".woff') format('woff')",fontWeight:o,fontStyle:"normal",fontDisplay:"swap"})}function ot(e,t,o,n,r){n=e+"/"+o+"/"+(n=void 0===n?"segoeui":n);tt(t,n+"-light",Fe.light,r&&r+" Light"),tt(t,n+"-semilight",Fe.semilight,r&&r+" SemiLight"),tt(t,n+"-regular",Fe.regular,r),tt(t,n+"-semibold",Fe.semibold,r&&r+" SemiBold"),tt(t,n+"-bold",Fe.bold,r&&r+" Bold")}function nt(e){e&&(ot(e=e+"/fonts",Me.Thai,"leelawadeeui-thai","leelawadeeui"),ot(e,Me.Arabic,"segoeui-arabic"),ot(e,Me.Cyrillic,"segoeui-cyrillic"),ot(e,Me.EastEuropean,"segoeui-easteuropean"),ot(e,Me.Greek,"segoeui-greek"),ot(e,Me.Hebrew,"segoeui-hebrew"),ot(e,Me.Vietnamese,"segoeui-vietnamese"),ot(e,Me.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),ot(e,Ne.Selawik,"selawik","selawik"),ot(e,Me.Armenian,"segoeui-armenian"),ot(e,Me.Georgian,"segoeui-georgian"),tt("Leelawadee UI Web",e+"/leelawadeeui-thai/leelawadeeui-semilight",Fe.light),tt("Leelawadee UI Web",e+"/leelawadeeui-thai/leelawadeeui-bold",Fe.semibold))}nt(null!==(ke=null==(ke=null===(ke=qe())||void 0===ke?void 0:ke.FabricConfig)?void 0:ke.fontBaseUrl)&&void 0!==ke?ke:"https://static2.sharepointonline.com/files/fabric/assets");var rt=H(et),it={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"},st=0,at=(lt.getValue=function(e,t){var o=ct();return void 0===o[e]&&(o[e]="function"==typeof t?t():t),o[e]},lt.setValue=function(e,t){var o=ct(),n=o.__callbacks__,r=o[e];if(t!==r){var i,s={oldValue:r,value:o[e]=t,key:e};for(i in n)n.hasOwnProperty(i)&&n[i](s)}return t},lt.addChangeListener=function(e){var t=e.__id__;ut()[t=t||(e.__id__=String(st++))]=e},lt.removeChangeListener=function(e){delete ut()[e.__id__]},lt);function lt(){}function ct(){var e,t=qe()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function ut(){return ct().__callbacks__}var dt,pt={settings:{},scopedSettings:{},inCustomizerContext:!1},vt=at.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),bt=[],yt=(wt.reset=function(){vt.settings={},vt.scopedSettings={}},wt.applySettings=function(e){vt.settings=ht(ht({},vt.settings),e),wt._raiseChange()},wt.applyScopedSettings=function(e,t){vt.scopedSettings[e]=ht(ht({},vt.scopedSettings[e]),t),wt._raiseChange()},wt.getSettings=function(e,t,o){void 0===o&&(o=pt);for(var n={},r=t&&o.scopedSettings[t]||{},i=t&&vt.scopedSettings[t]||{},s=0,a=e;s<a.length;s++){var l=a[s];n[l]=r[l]||o.settings[l]||i[l]||vt.settings[l]}return n},wt.applyBatchedUpdates=function(e,t){wt._suppressUpdates=!0;try{e()}catch(e){}wt._suppressUpdates=!1,t||wt._raiseChange()},wt.observe=function(e){bt.push(e)},wt.unobserve=function(t){bt=bt.filter(function(e){return e!==t})},wt._raiseChange=function(){wt._suppressUpdates||bt.forEach(function(e){return e()})},wt),Ct=function(){return(Ct=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},W="undefined"==typeof window?vT.g:window,_t=W&&W.CSPSettings&&W.CSPSettings.nonce,St=((K=!(K=W.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState?Ct({},K,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}}):K).registeredThemableStyles||(K=Ct({},K,{registeredThemableStyles:[]})),W.__themeState__=K),xt=/[\'\"]\[theme:\s*(\w+)\s*(?:\,\s*default:\s*([\\"\']?[\.\,\(\)\#\-\s\w]*[\.\,\(\)\#\-\w][\"\']?))?\s*\][\'\"]/g,kt=function(){return("undefined"!=typeof performance&&performance.now?performance:Date).now()};function wt(){}function It(e){var t=kt();e();e=kt();St.perf.duration+=e-t}function Dt(r,i){void 0===i&&(i=!1),It(function(){var e=Array.isArray(r)?r:function(e){var t=[];if(e){for(var o,n=0;o=xt.exec(e);){var r=o.index;n<r&&t.push({rawString:e.substring(n,r)}),t.push({theme:o[1],defaultValue:o[2]}),n=xt.lastIndex}t.push({rawString:e.substring(n)})}return t}(r),t=St.runState,o=t.mode,n=t.buffer,t=t.flushTimer;i||1===o?(n.push(e),t||(St.runState.flushTimer=setTimeout(function(){St.runState.flushTimer=0,It(function(){var e=St.runState.buffer.slice();St.runState.buffer=[];e=[].concat.apply([],e);0<e.length&&Tt(e)})},0))):Tt(e)})}function Tt(e){var t,o,n,r;St.loadStyles?St.loadStyles(Pt(e).styleString,e):(t=e,"undefined"!=typeof document&&(r=document.getElementsByTagName("head")[0],o=document.createElement("style"),e=(n=Pt(t)).styleString,n=n.themable,o.setAttribute("data-load-themed-styles","true"),o.type="text/css",_t&&o.setAttribute("nonce",_t),o.appendChild(document.createTextNode(e)),St.perf.count++,r.appendChild(o),(r=document.createEvent("HTMLEvents")).initEvent("styleinsert",!0,!1),r.args={newStyle:o},document.dispatchEvent(r),(n?St.registeredThemableStyles:St.registeredStyles).push({styleElement:o,themableStyle:t})))}function Et(e){e.forEach(function(e){e=e&&e.styleElement;e&&e.parentElement&&e.parentElement.removeChild(e)})}function Pt(e){var r=St.theme,i=!1;return{styleString:(e||[]).map(function(e){var t=e.theme;if(t){i=!0;var o=r?r[t]:void 0,n=e.defaultValue||"inherit";return!r||o||!console||t in r||"undefined"==typeof DEBUG||!DEBUG||console.warn('Theming value not provided for "'+t+'". Falling back to "'+n+'".'),o||n}return e.rawString}).join(""),themable:i}}(G=dt=dt||{}).depth0="0 0 0 0 transparent",G.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",G.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",G.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",G.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)";var Rt={elevation4:dt.depth4,elevation8:dt.depth8,elevation16:dt.depth16,elevation64:dt.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"};function Mt(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];for(var n=0,r=t;n<r.length;n++)!function e(t,o,n){for(var r in void 0===n&&(n=[]),n.push(o),o){var i,s;o.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&("object"!=typeof(i=o[r])||null===i||Array.isArray(i)?t[r]=i:(s=-1<n.indexOf(i),t[r]=s?i:e(t[r]||{},i,n)))}return n.pop(),t}(e||{},r[n]);return e}function Nt(e,t,o,n,r){void 0===r&&(r=!1);var i={},s=e||{},a=s.white,l=s.black,c=s.themePrimary,u=s.themeDark,d=s.themeDarker,p=s.themeDarkAlt,h=s.themeLighter,m=s.neutralLight,g=s.neutralLighter,f=s.neutralDark,v=s.neutralQuaternary,b=s.neutralQuaternaryAlt,y=s.neutralPrimary,C=s.neutralSecondary,_=s.neutralSecondaryAlt,S=s.neutralTertiary,r=s.neutralTertiaryAlt,e=s.neutralLighterAlt,s=s.accent;return a&&(i.bodyBackground=a,i.bodyFrameBackground=a,i.accentButtonText=a,i.buttonBackground=a,i.primaryButtonText=a,i.primaryButtonTextHovered=a,i.primaryButtonTextPressed=a,i.inputBackground=a,i.inputForegroundChecked=a,i.listBackground=a,i.menuBackground=a,i.cardStandoutBackground=a),l&&(i.bodyTextChecked=l,i.buttonTextCheckedHovered=l),c&&(i.link=c,i.primaryButtonBackground=c,i.inputBackgroundChecked=c,i.inputIcon=c,i.inputFocusBorderAlt=c,i.menuIcon=c,i.menuHeader=c,i.accentButtonBackground=c),u&&(i.primaryButtonBackgroundPressed=u,i.inputBackgroundCheckedHovered=u,i.inputIconHovered=u),d&&(i.linkHovered=d),p&&(i.primaryButtonBackgroundHovered=p),h&&(i.inputPlaceholderBackgroundChecked=h),m&&(i.bodyBackgroundChecked=m,i.bodyFrameDivider=m,i.bodyDivider=m,i.variantBorder=m,i.buttonBackgroundCheckedHovered=m,i.buttonBackgroundPressed=m,i.listItemBackgroundChecked=m,i.listHeaderBackgroundPressed=m,i.menuItemBackgroundPressed=m,i.menuItemBackgroundChecked=m),g&&(i.bodyBackgroundHovered=g,i.buttonBackgroundHovered=g,i.buttonBackgroundDisabled=g,i.buttonBorderDisabled=g,i.primaryButtonBackgroundDisabled=g,i.disabledBackground=g,i.listItemBackgroundHovered=g,i.listHeaderBackgroundHovered=g,i.menuItemBackgroundHovered=g),v&&(i.primaryButtonTextDisabled=v,i.disabledSubtext=v),b&&(i.listItemBackgroundCheckedHovered=b),S&&(i.disabledBodyText=S,i.variantBorderHovered=(null==o?void 0:o.variantBorderHovered)||S,i.buttonTextDisabled=S,i.inputIconDisabled=S,i.disabledText=S),y&&(i.bodyText=y,i.actionLink=y,i.buttonText=y,i.inputBorderHovered=y,i.inputText=y,i.listText=y,i.menuItemText=y),e&&(i.bodyStandoutBackground=e,i.defaultStateBackground=e),f&&(i.actionLinkHovered=f,i.buttonTextHovered=f,i.buttonTextChecked=f,i.buttonTextPressed=f,i.inputTextHovered=f,i.menuItemTextHovered=f),C&&(i.bodySubtext=C,i.focusBorder=C,i.inputBorder=C,i.smallInputBorder=C,i.inputPlaceholderText=C),_&&(i.buttonBorder=_),r&&(i.disabledBodySubtext=r,i.disabledBorder=r,i.buttonBackgroundChecked=r,i.menuDivider=r),s&&(i.accentButtonBackground=s),null!=t&&t.elevation4&&(i.cardShadow=t.elevation4),!n&&null!=t&&t.elevation8?i.cardShadowHovered=t.elevation8:i.variantBorderHovered&&(i.cardShadowHovered="0 0 1px "+i.variantBorderHovered),ht(ht({},i),o)}function Bt(e,t){var o,n=Mt({},e,t=void 0===t?{}:t,{semanticColors:Nt(t.palette,t.effects,t.semanticColors,(void 0===t.isInverted?e:t).isInverted)});if(null===(e=t.palette)||void 0===e||!e.themePrimary||null!==(e=t.palette)&&void 0!==e&&e.accent||(n.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var r=0,i=Object.keys(n.fonts);r<i.length;r++){var s=i[r];n.fonts[s]=Mt(n.fonts[s],t.defaultFontStyle,null===(o=null==t?void 0:t.fonts)||void 0===o?void 0:o[s])}return n}var Ft={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function At(e,t){var o,n=!!(e=void 0===e?{}:e).isInverted;return Bt({palette:it,effects:Rt,fonts:et,spacing:Ft,isInverted:n,disableGlobalClassNames:!1,semanticColors:((o=void 0)===(t=t=void 0===t?!1:t)&&(t=!1),n=Nt(it,Rt,ht({primaryButtonBorder:"transparent",errorText:(n=n)?"#F1707B":"#a4262c",messageText:n?"#F3F2F1":"#323130",messageLink:n?"#6CB8F6":"#005A9E",messageLinkHovered:n?"#82C7FF":"#004578",infoIcon:n?"#C8C6C4":"#605e5c",errorIcon:n?"#F1707B":"#A80000",blockingIcon:n?"#442726":"#FDE7E9",warningIcon:n?"#C8C6C4":"#797775",severeWarningIcon:n?"#FCE100":"#D83B01",successIcon:n?"#92C353":"#107C10",infoBackground:n?"#323130":"#f3f2f1",errorBackground:n?"#442726":"#FDE7E9",blockingBackground:n?"#442726":"#FDE7E9",warningBackground:n?"#433519":"#FFF4CE",severeWarningBackground:n?"#4F2A0F":"#FED9CC",successBackground:n?"#393D1B":"#DFF6DD",warningHighlight:n?"#fff100":"#ffb900",successText:n?"#92c353":"#107C10"},o),n),t=!0===t?" /* @deprecated */":"",n.listTextColor=n.listText+t,n.menuItemBackgroundChecked+=t,n.warningHighlight+=t,n.warningText=n.messageText+t,n.successText+=t,n),rtl:void 0},e)}var Lt=At({}),Ht=[],Ot="theme";function zt(){var e,t=qe();null!==(e=null==t?void 0:t.FabricConfig)&&void 0!==e&&e.legacyTheme?Gt(t.FabricConfig.legacyTheme):yt.getSettings([Ot]).theme||(null!==(e=null==t?void 0:t.FabricConfig)&&void 0!==e&&e.theme&&(Lt=At(t.FabricConfig.theme)),yt.applySettings(((t={})[Ot]=Lt,t)))}function Wt(e){return Lt=!0===(e=void 0===e?!1:e)?At({},e):Lt}function Vt(e){-1===Ht.indexOf(e)&&Ht.push(e)}function Kt(e){e=Ht.indexOf(e);-1!==e&&Ht.splice(e,1)}function Gt(e,t){return Lt=At(e,t=void 0===t?!1:t),t=ht(ht(ht(ht({},Lt.palette),Lt.semanticColors),Lt.effects),function(e){for(var t={},o=0,n=Object.keys(e.fonts);o<n.length;o++)for(var r=n[o],i=e.fonts[r],s=0,a=Object.keys(i);s<a.length;s++){var l=a[s],c=r+l.charAt(0).toUpperCase()+l.slice(1),u=i[l];"fontSize"===l&&"number"==typeof u&&(u+="px"),t[c]=u}return t}(Lt)),St.theme=t,function(){if(St.theme){for(var e=[],t=0,o=St.registeredThemableStyles;t<o.length;t++){var n=o[t];e.push(n.themableStyle)}0<e.length&&(3!==(r=1)&&2!==r||(Et(St.registeredStyles),St.registeredStyles=[]),3!==r&&1!==r||(Et(St.registeredThemableStyles),St.registeredThemableStyles=[]),Tt([].concat.apply([],e)))}var r}(),yt.applySettings(((t={})[Ot]=Lt,t)),Ht.forEach(function(e){try{e(Lt)}catch(e){}}),Lt}zt();var Ut,jt={};for(Ut in it)it.hasOwnProperty(Ut)&&(qt(jt,Ut,"",!1,"color"),qt(jt,Ut,"Hover",!0,"color"),qt(jt,Ut,"Background",!1,"background"),qt(jt,Ut,"BackgroundHover",!0,"background"),qt(jt,Ut,"Border",!1,"borderColor"),qt(jt,Ut,"BorderHover",!0,"borderColor"));function qt(e,t,o,n,r){Object.defineProperty(e,t+o,{get:function(){var e=((e={})[r]=Wt().palette[t],e);return j(n?{selectors:{":hover":e}}:e).toString()},enumerable:!0,configurable:!0})}var Yt="@media screen and (-ms-high-contrast: active), (forced-colors: active)",Zt="@media screen and (-ms-high-contrast: black-on-white), (forced-colors: black-on-white)",Xt="@media screen and (-ms-high-contrast: white-on-black), (forced-colors: white-on-black)",Qt="@media screen and (forced-colors: active)",Jt=320,$t=480,eo=640,to=1024,oo=1366,no=1920,ro=$t-1,io=eo-1,so=to-1,ao=oo-1,lo=no-1,co=768;function uo(e,t){return"@media only screen"+("number"==typeof e?" and (min-width: "+e+"px)":"")+("number"==typeof t?" and (max-width: "+t+"px)":"")}function po(){return{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}}function ho(){var e;return(e={})[Qt]={forcedColorAdjust:"none"},e}var mo,go="ms-Fabric--isFocusVisible",fo="ms-Fabric--isFocusHidden";function vo(e,t){t=t?qe(t):qe();t&&((t=t.document.body.classList).add(e?go:fo),t.remove(e?fo:go))}function bo(e,t,o,n,r,i,s){return t=(a=void 0===(a="number"!=typeof t&&t?t:{inset:t,position:o,highContrastStyle:n,borderColor:r,outlineColor:i,isFocusedOnly:s})?{}:a).inset,o=void 0===t?0:t,n=a.width,r=void 0===n?1:n,i=a.position,s=a.highContrastStyle,t=a.borderColor,n=void 0===t?e.palette.white:t,t=void 0===(t=a.outlineColor)?e.palette.neutralSecondary:t,a=a.isFocusedOnly,{outline:"transparent",position:void 0===i?"relative":i,selectors:((i={"::-moz-focus-inner":{border:"0"}})["."+go+" &"+(void 0===a||a?":focus":"")+":after"]={content:'""',position:"absolute",left:o+1,top:o+1,bottom:o+1,right:o+1,border:r+"px solid "+n,outline:r+"px solid "+t,zIndex:mo.FocusStyle,selectors:((t={})[Yt]=s,t)},i)};var a}function yo(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}function Co(e,t,o,n){var r;return{selectors:((r={})[":global("+go+") &:focus"]={outline:(o=void 0===o?1:o)+" solid "+(n||e.palette.neutralSecondary),outlineOffset:-(t=void 0===t?0:t)+"px"},r)}}(Y=mo=mo||{}).Nav=1,Y.ScrollablePane=1,Y.FocusStyle=1,Y.Coachmark=1e3,Y.Layer=1e6,Y.KeytipLayer=1000001;var _o=function(e,t,o,n){void 0===n&&(n=-1);var r="borderBottom"===(o=void 0===o?"border":o);return{borderColor:e,selectors:{":after":((n={pointerEvents:"none",content:"''",position:"absolute",left:r?0:n,top:n,bottom:n,right:r?0:n})[o]="2px solid "+e,n.borderRadius=t,n.width="borderBottom"===o?"100%":void 0,n.selectors=((e={})[Yt]=((t={})["border"===o?"borderColor":"borderBottomColor"]="Highlight",t),e),n)}}},So={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"};function xo(e,t){return{borderColor:e,borderWidth:"0px",width:t,height:t}}function ko(e){return{opacity:1,borderWidth:e}}function wo(e,t){return{borderWidth:"0",width:t,height:t,opacity:0,borderColor:e}}function Io(e,t){return ht(ht({},xo(e,t)),{opacity:0})}var Do={continuousPulseAnimationDouble:function(e,t,o,n,r){return O({"0%":xo(e,o),"1.42%":ko(r),"3.57%":{opacity:1},"7.14%":wo(t,n),"8%":Io(e,o),"29.99%":Io(e,o),"30%":xo(e,o),"31.42%":ko(r),"33.57%":{opacity:1},"37.14%":wo(t,n),"38%":Io(e,o),"79.42%":Io(e,o),79.43:xo(e,o),81.85:ko(r),83.42:{opacity:1},"87%":wo(t,n),"100%":{}})},continuousPulseAnimationSingle:function(e,t,o,n,r){return O({"0%":xo(e,o),"14.2%":ko(r),"35.7%":{opacity:1},"71.4%":wo(t,n),"100%":{}})},createDefaultAnimation:function(e,t){return{animationName:e,animationIterationCount:"1",animationDuration:"14s",animationDelay:t||"2s"}}},To=!1,Eo=0,Po={empty:!0},Ro={},Mo="undefined"==typeof WeakMap?null:WeakMap;function No(e){Mo=e}function Bo(){Eo++}function Fo(e,t,o){var n=Ao(o.value&&o.value.bind(null));return{configurable:!0,get:function(){return n}}}function Ao(i,s,a){if(void 0===s&&(s=100),void 0===a&&(a=!1),!Mo)return i;var e;To||((e=v.getInstance())&&e.onReset&&v.getInstance().onReset(Bo),To=!0);var l,c=0,u=Eo;return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=l;(void 0===l||u!==Eo||0<s&&s<c)&&(l=Ho(),c=0,u=Eo);for(var o=l,n=0;n<e.length;n++){var r=(r=e[n])?"object"==typeof r||"function"==typeof r?r:(Ro[r]||(Ro[r]={val:r}),Ro[r]):Po;o.map.has(r)||o.map.set(r,Ho()),o=o.map.get(r)}return o.hasOwnProperty("value")||(o.value=i.apply(void 0,e),c++),!a||null!==o.value&&void 0!==o.value||(o.value=i.apply(void 0,e)),o.value}}function Lo(o){if(!Mo)return o;var n=new Mo;return function(e){if(!e||"function"!=typeof e&&"object"!=typeof e)return o(e);if(n.has(e))return n.get(e);var t=o(e);return n.set(e,t),t}}function Ho(){return{map:Mo?new Mo:null}}var Oo=Ao(function(o,e){var n=v.getInstance();return e?Object.keys(o).reduce(function(e,t){return e[t]=n.getClassName(o[t]),e},{}):o});function zo(e,t,o){return Oo(e,void 0!==o?o:t.disableGlobalClassNames)}function Wo(e,t){var o;return(Ko(t)?t:(o=t,function(e){return o?ht(ht({},e),o):e}))(e=void 0===e?{}:e)}function Vo(e,t){return(Ko(t)?t:(void 0===(n=t)&&(n={}),function(e){var t,o=ht({},e);for(t in n)n.hasOwnProperty(t)&&(o[t]=ht(ht({},e[t]),n[t]));return o}))(e=void 0===e?{}:e);var n}function Ko(e){return"function"==typeof e}function Go(e,t,o){var n,r=e,i=o||yt.getSettings(["theme"],void 0,e.customizations).theme;o&&(n={theme:o});t=t&&i&&i.schemes&&i.schemes[t];return i&&t&&i!==t&&((n={theme:t}).theme.schemes=i.schemes),r=n?{customizations:{settings:Wo(e.customizations.settings,n),scopedSettings:e.customizations.scopedSettings}}:r}var Uo={boxShadow:"none",margin:0,padding:0,boxSizing:"border-box"},jo={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};function qo(e,t,o,n,r){void 0===o&&(o="horizontal"),void 0===n&&(n=Yo("width",o)),void 0===r&&(r=Yo("height",o));e=e.semanticColors[t=void 0===t?"bodyBackground":t]||e.palette[t],t=function(e){if("#"===e[0])return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)};if(0!==e.indexOf("rgba("))return{r:255,g:255,b:255};e=(e=e.match(/rgba\(([^)]+)\)/)[1]).split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2]}}(e);return{content:'""',position:"absolute",right:0,bottom:0,width:n,height:r,pointerEvents:"none",backgroundImage:"linear-gradient("+("vertical"===o?"to bottom":"to right")+", rgba("+t.r+", "+t.g+", "+t.b+", 0) 0%, "+e+" 100%)"}}function Yo(e,t){return"width"===e?"horizontal"===t?20:"100%":"vertical"===t?"50%":"100%"}function Zo(e){return{selectors:{"::placeholder":e,":-ms-input-placeholder":e,"::-ms-input-placeholder":e}}}function Xo(e){console&&console.warn&&console.warn(e)}function Qo(e){}var Jo=at.getValue("icons",{__options:{disableWarnings:!1,warnOnMissingIcons:!0},__remapped:{}}),U=v.getInstance();U&&U.onReset&&U.onReset(function(){for(var e in Jo)Jo.hasOwnProperty(e)&&Jo[e].subset&&(Jo[e].subset.className=void 0)});var $o=function(e){return e.toLowerCase()};function en(e,t){var o,n,r,i,s=ht(ht({},e),{isRegistered:!1,className:void 0}),a=e.icons;for(o in t=t?ht(ht({},Jo.__options),t):Jo.__options,a)a.hasOwnProperty(o)&&(n=a[o],r=$o(o),Jo[r]?(i=o,Jo.__options.disableWarnings||(sn.push(i),void 0===an&&(an=setTimeout(function(){Xo("Some icons were re-registered. Applications should only call registerIcons for any given icon once. Redefining what an icon is may have unintended consequences. Duplicates include: \n"+sn.slice(0,10).join(", ")+(10<sn.length?" (+ "+(sn.length-10)+" more)":"")),an=void 0,sn=[]},2e3)))):Jo[r]={code:n,subset:s})}function tn(e){for(var o=Jo.__options,t=0,n=e;t<n.length;t++)!function(e){var t=$o(e);Jo[t]?delete Jo[t]:o.disableWarnings||Xo('The icon "'+e+'" tried to unregister but was not registered.'),Jo.__remapped[t]&&delete Jo.__remapped[t],Object.keys(Jo.__remapped).forEach(function(e){Jo.__remapped[e]===t&&delete Jo.__remapped[e]})}(n[t])}function on(e,t){Jo.__remapped[$o(e)]=$o(t)}function nn(e){var t,o=void 0,n=Jo.__options;return e=e?$o(e):"",(e=Jo.__remapped[e]||e)&&((o=Jo[e])?(t=o.subset)&&t.fontFace&&(t.isRegistered||(He(t.fontFace),t.isRegistered=!0),t.className||(t.className=j(t.style,{fontFamily:t.fontFace.fontFamily,fontWeight:t.fontFace.fontWeight||"normal",fontStyle:t.fontFace.fontStyle||"normal"}))):!n.disableWarnings&&n.warnOnMissingIcons&&Xo('The icon "'+e+'" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.')),o}function rn(e){Jo.__options=ht(ht({},Jo.__options),e)}var sn=[],an=void 0;var ln={display:"inline-block"};function cn(e){var t="",e=nn(e);return t=e?j(e.subset.className,ln,{selectors:{"::before":{content:'"'+e.code+'"'}}}):t}function un(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles)return e[0];for(var o={},n={},r=0,i=e;r<i.length;r++){var s=i[r];if(s)for(var a in s)if(s.hasOwnProperty(a)){if("subComponentStyles"===a&&void 0!==s.subComponentStyles){var l=s.subComponentStyles;for(d in l)l.hasOwnProperty(d)&&(n.hasOwnProperty(d)?n[d].push(l[d]):n[d]=[l[d]]);continue}var c=o[a],u=s[a];o[a]=void 0===c?u:$e($e([],Array.isArray(c)?c:[c]),Array.isArray(u)?u:[u])}}if(0<Object.keys(n).length){o.subComponentStyles={};var d,p=o.subComponentStyles;for(d in n)!function(e){var o;n.hasOwnProperty(e)&&(o=n[e],p[e]=function(t){return un.apply(void 0,o.map(function(e){return"function"==typeof e?e(t):e}))})}(d)}return o}function dn(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];for(var n=[],r=0,i=t;r<i.length;r++){var s=i[r];s&&n.push("function"==typeof s?s(e):s)}return 1===n.length?n[0]:n.length?un.apply(void 0,n):{}}function pn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return hn(e,y())}function hn(e,t){var o={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var n,r=un.apply(void 0,e),i=[];for(n in r)if(r.hasOwnProperty(n)){if("subComponentStyles"===n){o.subComponentStyles=r.subComponentStyles||{};continue}var s=g(r[n]),a=s.classes,s=s.objects;null!=s&&s.length?(l=F(t||{},{displayName:n},s))&&(i.push(l),o[n]=a.concat([l.className]).join(" ")):o[n]=a.join(" ")}for(var l,c=0,u=i;c<u.length;c++)(l=u[c])&&A(l,null==t?void 0:t.specificityMultiplier);return o}var mn={},gn=void 0;try{gn=window}catch(e){}function fn(e,t){var o;void 0!==gn&&((o=gn.__packages__=gn.__packages__||{})[e]&&mn[e]||(mn[e]=t,(o[e]=o[e]||[]).push(t)))}fn("@fluentui/set-version","6.0.0"),fn("@fluentui/style-utilities","8.6.0"),zt();var vn=Ao(function(e,t,o,n){return{root:j("ms-ActivityItem",t,e.root,n&&e.isCompactRoot),pulsingBeacon:j("ms-ActivityItem-pulsingBeacon",e.pulsingBeacon),personaContainer:j("ms-ActivityItem-personaContainer",e.personaContainer,n&&e.isCompactPersonaContainer),activityPersona:j("ms-ActivityItem-activityPersona",e.activityPersona,n&&e.isCompactPersona,!n&&o&&2===o.length&&e.doublePersona),activityTypeIcon:j("ms-ActivityItem-activityTypeIcon",e.activityTypeIcon,n&&e.isCompactIcon),activityContent:j("ms-ActivityItem-activityContent",e.activityContent,n&&e.isCompactContent),activityText:j("ms-ActivityItem-activityText",e.activityText),commentText:j("ms-ActivityItem-commentText",e.commentText),timeStamp:j("ms-ActivityItem-timeStamp",e.timeStamp,n&&e.isCompactTimeStamp)}}),bn="32px",yn="16px",Cn=Ao(function(){return O({from:{opacity:0},to:{opacity:1}})}),_n=Ao(function(){return O({from:{transform:"translateX(-10px)"},to:{transform:"translateX(0)"}})}),Sn=Ao(function(e,t,o,n,r,i){void 0===e&&(e=Wt());var s={animationName:Do.continuousPulseAnimationSingle(n||e.palette.themePrimary,r||e.palette.themeTertiary,"4px","28px","4px"),animationIterationCount:"1",animationDuration:".8s",zIndex:1},n={animationName:_n(),animationIterationCount:"1",animationDuration:".5s"},r={animationName:Cn(),animationIterationCount:"1",animationDuration:".5s"};return un({root:[e.fonts.small,{display:"flex",justifyContent:"flex-start",alignItems:"flex-start",boxSizing:"border-box",color:e.palette.neutralSecondary},i&&o&&r],pulsingBeacon:[{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"0px",height:"0px",borderRadius:"225px",borderStyle:"solid",opacity:0},i&&o&&s],isCompactRoot:{alignItems:"center"},personaContainer:{display:"flex",flexWrap:"wrap",minWidth:bn,width:bn,height:bn},isCompactPersonaContainer:{display:"inline-flex",flexWrap:"nowrap",flexBasis:"auto",height:yn,width:"auto",minWidth:"0",paddingRight:"6px"},activityTypeIcon:{height:bn,fontSize:"16px",lineHeight:"16px",marginTop:"3px"},isCompactIcon:{height:yn,minWidth:yn,fontSize:"13px",lineHeight:"13px",color:e.palette.themePrimary,marginTop:"1px",position:"relative",display:"flex",justifyContent:"center",alignItems:"center",selectors:{".ms-Persona-imageArea":{margin:"-2px 0 0 -2px",border:"2px solid"+e.palette.white,borderRadius:"50%",selectors:((s={})[Yt]={border:"none",margin:"0"},s)}}},activityPersona:{display:"block"},doublePersona:{selectors:{":first-child":{alignSelf:"flex-end"}}},isCompactPersona:{display:"inline-block",width:"8px",minWidth:"8px",overflow:"visible"},activityContent:[{padding:"0 8px"},i&&o&&n],activityText:{display:"inline"},isCompactContent:{flex:"1",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflowX:"hidden"},commentText:{color:e.palette.neutralPrimary},timeStamp:[e.fonts.tiny,{fontWeight:400,color:e.palette.neutralSecondary}],isCompactTimeStamp:{display:"inline-block",paddingLeft:"0.3em",fontSize:"1em"}},t)}),xn=gt.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});function kn(e,t){var o,n=(o=gt.useState(0)[1],function(){return o(function(e){return++e})}),r=gt.useContext(xn).customizations,i=r.inCustomizerContext;return gt.useEffect(function(){return i||yt.observe(n),function(){i||yt.unobserve(n)}},[i]),yt.getSettings(e,t,r)}var wn=["theme","styles"];function In(l,c,u,e,t){var d=(e=e||{scope:"",fields:void 0}).scope,e=e.fields,p=void 0===e?wn:e,e=gt.forwardRef(function(e,t){var o=gt.useRef(),n=kn(p,d),r=n.styles,i=(n.dir,mt(n,["styles","dir"])),s=u?u(e):void 0,n=o.current&&o.current.__cachedInputs__||[],a=e.styles;return o.current&&r===n[1]&&a===n[2]||((n=function(e){return dn(e,c,r,a)}).__cachedInputs__=[c,r,a],n.__noStyleOverride__=!r&&!a,o.current=n),gt.createElement(l,ht({ref:t},i,s,e,{styles:o.current}))});e.displayName="Styled"+(l.displayName||l.name);t=t?gt.memo(e):e;return e.displayName&&(t.displayName=e.displayName),t}var Dn,Tn={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pauseBreak:19,capslock:20,escape:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,del:46,zero:48,one:49,two:50,three:51,four:52,five:53,six:54,seven:55,eight:56,nine:57,colon:58,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,leftWindow:91,rightWindow:92,select:93,zero_numpad:96,one_numpad:97,two_numpad:98,three_numpad:99,four_numpad:100,five_numpad:101,six_numpad:102,seven_numpad:103,eight_numpad:104,nine_numpad:105,multiply:106,add:107,subtract:109,decimalPoint:110,divide: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,scrollLock:145,semicolon:186,equalSign:187,comma:188,dash:189,period:190,forwardSlash:191,graveAccent:192,openBracket:219,backSlash:220,closeBracket:221,singleQuote:222},En="isRTL";function Pn(e){return void 0!==(e=void 0===e?{}:e).rtl?e.rtl:(void 0===Dn&&(null!==(e=Ye(En))&&Rn(Dn="1"===e),e=ft(),void 0===Dn&&e&&f(Dn="rtl"===(e.body&&e.body.getAttribute("dir")||e.documentElement.getAttribute("dir")))),!!Dn)}function Rn(e,t){void 0===t&&(t=!1);var o=ft();o&&o.documentElement.setAttribute("dir",e?"rtl":"ltr"),t&&Ze(En,e?"1":"0"),f(Dn=e)}function Mn(e,t){return Pn(t=void 0===t?{}:t)&&(e===Tn.left?e=Tn.right:e===Tn.right&&(e=Tn.left)),e}var Nn=0,xe=v.getInstance();xe&&xe.onReset&&xe.onReset(function(){return Nn++});var Bn="__retval__";function Fn(i){void 0===i&&(i={});var s=new Map,a=0,l=0,c=Nn;return function(e,t){if(void 0===t&&(t={}),i.useStaticStyles&&"function"==typeof e&&e.__noStyleOverride__)return e(t);l++;var o=s,n=t.theme,r=n&&void 0!==n.rtl?n.rtl:Pn(),n=i.disableCaching;return c!==Nn&&(c=Nn,s=new Map,a=0),i.disableCaching||(o=Ln(s,e),o=Ln(o,t)),!n&&o[Bn]||(o[Bn]=void 0===e?{}:hn(["function"==typeof e?e(t):e],{rtl:!!r,specificityMultiplier:i.useStaticStyles?5:void 0}),n||a++),a>(i.cacheSize||50)&&(null!==(n=null==(n=qe())?void 0:n.FabricConfig)&&void 0!==n&&n.enableClassNameCacheFullWarning&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is "+a+"/"+l+"."),console.trace()),s.clear(),a=0,i.disableCaching=!0),o[Bn]}}function An(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function Ln(e,t){if("function"==typeof t)if(t.__cachedInputs__)for(var o=0,n=t.__cachedInputs__;o<n.length;o++)e=An(e,n[o]);else e=An(e,t);else if("object"==typeof t)for(var r in t)t.hasOwnProperty(r)&&(e=An(e,t[r]));return e}function Hn(e,t){for(var o=ht({},t),n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];void 0===o[i]&&(o[i]=e[i])}return o}var ke=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var o={},n=0,r=e;n<r.length;n++)for(var i=r[n],s=0,a=Array.isArray(i)?i:Object.keys(i);s<a.length;s++)o[a[s]]=1;return o},On=ke(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),zn=ke(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),Wn=ke(zn,On),Vn=ke(Wn,["form"]),Kn=ke(Wn,["height","loop","muted","preload","src","width"]),Gn=ke(Kn,["poster"]),Un=ke(Wn,["start"]),jn=ke(Wn,["value"]),qn=ke(Wn,["download","href","hrefLang","media","rel","target","type"]),Yn=ke(Wn,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),Zn=ke(Yn,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),Xn=ke(Yn,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),Qn=ke(Yn,["form","multiple","required"]),Jn=ke(Wn,["selected","value"]),$n=ke(Wn,["cellPadding","cellSpacing"]),er=Wn,tr=ke(Wn,["rowSpan","scope"]),or=ke(Wn,["colSpan","headers","rowSpan","scope"]),nr=ke(Wn,["span"]),rr=ke(Wn,["span"]),ir=ke(Wn,["acceptCharset","action","encType","encType","method","noValidate","target"]),sr=ke(Wn,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),ar=ke(Wn,["alt","crossOrigin","height","src","srcSet","useMap","width"]),lr=ar,cr=Wn;function ur(e,t,o){for(var n=Array.isArray(t),r={},i=0,s=Object.keys(e);i<s.length;i++){var a=s[i];!(!n&&t[a]||n&&0<=t.indexOf(a)||0===a.indexOf("data-")||0===a.indexOf("aria-"))||o&&-1!==(null==o?void 0:o.indexOf(a))||(r[a]=e[a])}return r}var dr,pr,hr,mr,gr=/[\(\[\{\<][^\)\]\}\>]*[\)\]\}\>]/g,fr=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,vr=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,br=/\s+/g,yr=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function Cr(e,t,o){return e?(e=e.replace(gr,"").replace(fr,"").replace(br," ").trim(),yr.test(e)||!o&&vr.test(e)?"":(o=t,t="",2===(e=e.split(" ")).length?(t+=e[0].charAt(0).toUpperCase(),t+=e[1].charAt(0).toUpperCase()):3===e.length?(t+=e[0].charAt(0).toUpperCase(),t+=e[2].charAt(0).toUpperCase()):0!==e.length&&(t+=e[0].charAt(0).toUpperCase()),o&&1<t.length?t.charAt(1)+t.charAt(0):t)):""}(W=dr=dr||{})[W.default=0]="default",W[W.image=1]="image",W[W.Default=1e5]="Default",W[W.Image=100001]="Image",(K=pr=pr||{})[K.center=0]="center",K[K.contain=1]="contain",K[K.cover=2]="cover",K[K.none=3]="none",K[K.centerCover=4]="centerCover",K[K.centerContain=5]="centerContain",(G=hr=hr||{})[G.landscape=0]="landscape",G[G.portrait=1]="portrait",(Y=mr=mr||{})[Y.notLoaded=0]="notLoaded",Y[Y.loaded=1]="loaded",Y[Y.error=2]="error",Y[Y.errorLoaded=3]="errorLoaded";var _r=Ke?gt.useEffect:gt.useLayoutEffect;function Sr(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=gt.useCallback(function(e){i.current=e;for(var t=0,o=r;t<o.length;t++){var n=o[t];"function"==typeof n?n(e):n&&(n.current=e)}},$e([],r));return i}var xr=Fn(),kr=/\.svg$/i,wr=gt.forwardRef(function(c,e){var n,r,i,s,t=gt.useRef(),o=gt.useRef(),a=function(e){var t=c.onLoadingStateChange,o=c.onLoad,n=c.onError,r=c.src,i=gt.useState(mr.notLoaded),s=i[0],a=i[1];_r(function(){a(mr.notLoaded)},[r]),gt.useEffect(function(){s===mr.notLoaded&&e.current&&(r&&0<e.current.naturalWidth&&0<e.current.naturalHeight||e.current.complete&&kr.test(r))&&a(mr.loaded)}),gt.useEffect(function(){null==t||t(s)},[s]);var l=gt.useCallback(function(e){null==o||o(e),r&&a(mr.loaded)},[r,o]),i=gt.useCallback(function(e){null==n||n(e),a(mr.error)},[n]);return[s,l,i]}(o),l=a[0],u=a[1],d=a[2],p=ur(c,ar,["width","height"]),h=c.src,m=c.alt,g=c.width,f=c.height,v=c.shouldFadeIn,b=void 0===v||v,y=c.shouldStartVisible,C=c.className,_=c.imageFit,S=c.role,x=c.maximizeFrame,k=c.styles,w=c.theme,I=c.loading,v=(n=c,r=l,i=o,s=t,a=gt.useRef(r),(void 0===(v=gt.useRef())||a.current===mr.notLoaded&&r===mr.loaded)&&(v.current=function(){var e=n.imageFit,t=n.width,o=n.height;if(void 0!==n.coverStyle)return n.coverStyle;if(r===mr.loaded&&(e===pr.cover||e===pr.contain||e===pr.centerContain||e===pr.centerCover)&&i.current&&s.current){o="number"==typeof t&&"number"==typeof o&&e!==pr.centerContain&&e!==pr.centerCover?t/o:s.current.clientWidth/s.current.clientHeight;if(i.current.naturalWidth/i.current.naturalHeight>o)return hr.landscape}return hr.portrait}()),a.current=r,v.current),_=xr(k,{theme:w,className:C,width:g,height:f,maximizeFrame:x,shouldFadeIn:b,shouldStartVisible:y,isLoaded:l===mr.loaded||l===mr.notLoaded&&c.shouldStartVisible,isLandscape:v===hr.landscape,isCenter:_===pr.center,isCenterContain:_===pr.centerContain,isCenterCover:_===pr.centerCover,isContain:_===pr.contain,isCover:_===pr.cover,isNone:_===pr.none,isError:l===mr.error,isNotImageFit:void 0===_});return gt.createElement("div",{className:_.root,style:{width:g,height:f},ref:t},gt.createElement("img",ht({},p,{onLoad:u,onError:d,key:"fabricImage"+c.src||"",className:_.image,ref:Sr(o,e),src:h,alt:m,role:S,loading:I})))});wr.displayName="ImageBase";var Ir={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},Dr=In(wr,function(e){var t=e.className,o=e.width,n=e.height,r=e.maximizeFrame,i=e.isLoaded,s=e.shouldFadeIn,a=e.shouldStartVisible,l=e.isLandscape,c=e.isCenter,u=e.isContain,d=e.isCover,p=e.isCenterContain,h=e.isCenterCover,m=e.isNone,g=e.isError,f=e.isNotImageFit,v=e.theme,b=zo(Ir,v),y={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},C=qe(),e=void 0!==C&&void 0===C.navigator.msMaxTouchPoints,C=u&&l||d&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[b.root,v.fonts.medium,{overflow:"hidden"},r&&[b.rootMaximizeFrame,{height:"100%",width:"100%"}],i&&s&&!a&&Le.fadeIn400,(c||u||d||p||h)&&{position:"relative"},t],image:[b.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],c&&[b.imageCenter,y],u&&[b.imageContain,e&&{width:"100%",height:"100%",objectFit:"contain"},!e&&C,!e&&y],d&&[b.imageCover,e&&{width:"100%",height:"100%",objectFit:"cover"},!e&&C,!e&&y],p&&[b.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},y],h&&[b.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},y],m&&[b.imageNone,{width:"auto",height:"auto"}],f&&[!!o&&!n&&{height:"auto",width:"100%"},!o&&!!n&&{height:"100%",width:"auto"},!!o&&!!n&&{height:"100%",width:"100%"}],l&&b.imageLandscape,!l&&b.imagePortrait,!i&&"is-notLoaded",s&&"is-fadeIn",g&&"is-error"]}},void 0,{scope:"Image"},!0);Dr.displayName="Image";var Tr=pn({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),Er="ms-Icon";function Pr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var o=[],n=0,r=e;n<r.length;n++){var i=r[n];if(i)if("string"==typeof i)o.push(i);else if(i.hasOwnProperty("toString")&&"function"==typeof i.toString)o.push(i.toString());else for(var s in i)i[s]&&o.push(s)}return o.join(" ")}var Rr,Mr,Nr,Br,Fr,Ar,Lr=Ao(function(e){var t=nn(e)||{subset:{},code:void 0},e=t.code,t=t.subset;return e?{children:e,iconClassName:t.className,fontFamily:t.fontFace&&t.fontFace.fontFamily,mergeImageProps:t.mergeImageProps}:null},void 0,!0),Hr=function(e){var t=e.iconName,o=e.className,n=e.style,r=void 0===n?{}:n,i=Lr(t)||{},s=i.iconClassName,a=i.children,l=i.fontFamily,c=i.mergeImageProps,u=ur(e,Wn),n=e["aria-label"]||e.title,i=e["aria-label"]||e["aria-labelledby"]||e.title?{role:c?void 0:"img"}:{"aria-hidden":!0},e=a;return c&&"object"==typeof a&&"object"==typeof a.props&&n&&(e=gt.cloneElement(a,{alt:n})),gt.createElement("i",ht({"data-icon-name":t},i,u,c?{title:void 0,"aria-label":void 0}:{},{className:Pr(Er,Tr.root,s,!t&&Tr.placeholder,o),style:ht({fontFamily:l},r)}),e)},Or=Ao(function(e,t,o){return Hr({iconName:e,className:t,"aria-label":o})}),zr=Fn({cacheSize:100}),Wr=(l(Kr,Ar=gt.Component),Kr.prototype.render=function(){var e=this.props,t=e.children,o=e.className,n=e.styles,r=e.iconName,i=e.imageErrorAs,s=e.theme,a="string"==typeof r&&0===r.length,l=!!this.props.imageProps||this.props.iconType===dr.image||this.props.iconType===dr.Image,c=Lr(r)||{},u=c.iconClassName,d=c.children,p=c.mergeImageProps,e=zr(n,{theme:s,className:o,iconClassName:u,isImage:l,isPlaceholder:a}),c=l?"span":"i",n=ur(this.props,Wn,["aria-label"]),s=this.state.imageLoadError,o=ht(ht({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),u=s&&i||Dr,a=this.props["aria-label"]||this.props.ariaLabel,s=o.alt||a||this.props.title,i=s||this.props["aria-labelledby"]||o["aria-label"]||o["aria-labelledby"]?{role:l||p?void 0:"img","aria-label":l||p?void 0:s}:{"aria-hidden":!0},a=d;return p&&d&&"object"==typeof d&&s&&(a=gt.cloneElement(d,{alt:s})),gt.createElement(c,ht({"data-icon-name":r},i,n,p?{title:void 0,"aria-label":void 0}:{},{className:e.root}),l?gt.createElement(u,ht({},o)):t||a)},Kr),Vr=In(Wr,function(e){var t=e.className,o=e.iconClassName,n=e.isPlaceholder,r=e.isImage,e=e.styles;return{root:[n&&Tr.placeholder,Tr.root,r&&Tr.image,o,t,e&&e.root,e&&e.imageContainer]}},void 0,{scope:"Icon"},!0);function Kr(e){var t=Ar.call(this,e)||this;return t._onImageLoadingStateChange=function(e){t.props.imageProps&&t.props.imageProps.onLoadingStateChange&&t.props.imageProps.onLoadingStateChange(e),e===mr.error&&t.setState({imageLoadError:!0})},t.state={imageLoadError:!1},t}Vr.displayName="Icon",(U=Rr=Rr||{})[U.tiny=0]="tiny",U[U.extraExtraSmall=1]="extraExtraSmall",U[U.extraSmall=2]="extraSmall",U[U.small=3]="small",U[U.regular=4]="regular",U[U.large=5]="large",U[U.extraLarge=6]="extraLarge",U[U.size8=17]="size8",U[U.size10=9]="size10",U[U.size16=8]="size16",U[U.size24=10]="size24",U[U.size28=7]="size28",U[U.size32=11]="size32",U[U.size40=12]="size40",U[U.size48=13]="size48",U[U.size56=16]="size56",U[U.size72=14]="size72",U[U.size100=15]="size100",U[U.size120=18]="size120",(xe=Mr=Mr||{})[xe.none=0]="none",xe[xe.offline=1]="offline",xe[xe.online=2]="online",xe[xe.away=3]="away",xe[xe.dnd=4]="dnd",xe[xe.blocked=5]="blocked",xe[xe.busy=6]="busy",(ke=Nr=Nr||{})[ke.lightBlue=0]="lightBlue",ke[ke.blue=1]="blue",ke[ke.darkBlue=2]="darkBlue",ke[ke.teal=3]="teal",ke[ke.lightGreen=4]="lightGreen",ke[ke.green=5]="green",ke[ke.darkGreen=6]="darkGreen",ke[ke.lightPink=7]="lightPink",ke[ke.pink=8]="pink",ke[ke.magenta=9]="magenta",ke[ke.purple=10]="purple",ke[ke.black=11]="black",ke[ke.orange=12]="orange",ke[ke.red=13]="red",ke[ke.darkRed=14]="darkRed",ke[ke.transparent=15]="transparent",ke[ke.violet=16]="violet",ke[ke.lightRed=17]="lightRed",ke[ke.gold=18]="gold",ke[ke.burgundy=19]="burgundy",ke[ke.warmGray=20]="warmGray",ke[ke.coolGray=21]="coolGray",ke[ke.gray=22]="gray",ke[ke.cyan=23]="cyan",ke[ke.rust=24]="rust",(W=Br=Br||{}).size8="20px",W.size10="20px",W.size16="16px",W.size24="24px",W.size28="28px",W.size32="32px",W.size40="40px",W.size48="48px",W.size56="56px",W.size72="72px",W.size100="100px",W.size120="120px",(K=Fr=Fr||{}).size6="6px",K.size8="8px",K.size12="12px",K.size16="16px",K.size20="20px",K.size28="28px",K.size32="32px",K.border="2px";var Gr=function(e){return{isSize8:e===Rr.size8,isSize10:e===Rr.size10||e===Rr.tiny,isSize16:e===Rr.size16,isSize24:e===Rr.size24||e===Rr.extraExtraSmall,isSize28:e===Rr.size28||e===Rr.extraSmall,isSize32:e===Rr.size32,isSize40:e===Rr.size40||e===Rr.small,isSize48:e===Rr.size48||e===Rr.regular,isSize56:e===Rr.size56,isSize72:e===Rr.size72||e===Rr.large,isSize100:e===Rr.size100||e===Rr.extraLarge,isSize120:e===Rr.size120}},Ur=((G={})[Rr.tiny]=10,G[Rr.extraExtraSmall]=24,G[Rr.extraSmall]=28,G[Rr.small]=40,G[Rr.regular]=48,G[Rr.large]=72,G[Rr.extraLarge]=100,G[Rr.size8]=8,G[Rr.size10]=10,G[Rr.size16]=16,G[Rr.size24]=24,G[Rr.size28]=28,G[Rr.size32]=32,G[Rr.size40]=40,G[Rr.size48]=48,G[Rr.size56]=56,G[Rr.size72]=72,G[Rr.size100]=100,G[Rr.size120]=120,G),jr=function(e){return{isAvailable:e===Mr.online,isAway:e===Mr.away,isBlocked:e===Mr.blocked,isBusy:e===Mr.busy,isDoNotDisturb:e===Mr.dnd,isOffline:e===Mr.offline}},qr=Fn({cacheSize:100}),Y=gt.forwardRef(function(e,t){var o=e.coinSize,n=e.isOutOfOffice,r=e.styles,i=e.presence,s=e.theme,a=e.presenceTitle,l=e.presenceColors,c=Sr(t,gt.useRef(null)),u=Gr(e.size),d=!(u.isSize8||u.isSize10||u.isSize16||u.isSize24||u.isSize28||u.isSize32)&&(!o||32<o),t=o?o/3<40?o/3+"px":"40px":"",u=o?{fontSize:o?o/6<20?o/6+"px":"20px":"",lineHeight:t}:void 0,t=o?{width:t,height:t}:void 0,l=qr(r,{theme:s,presence:i,size:e.size,isOutOfOffice:n,presenceColors:l});return i===Mr.none?null:gt.createElement("div",{role:"presentation",className:l.presence,style:t,title:a,ref:c},d&>.createElement(Vr,{className:l.presenceIcon,iconName:function(e,t){if(e){var o="SkypeArrow";switch(Mr[e]){case"online":return"SkypeCheck";case"away":return t?o:"SkypeClock";case"dnd":return"SkypeMinus";case"offline":return t?o:""}return""}}(e.presence,e.isOutOfOffice),style:u}))});Y.displayName="PersonaPresenceBase";var Yr={presence:"ms-Persona-presence",presenceIcon:"ms-Persona-presenceIcon"};function Zr(e){return{color:e,borderColor:e}}function Xr(e,t){return{selectors:{":before":{border:e+" solid "+t}}}}function Qr(e){return{height:e,width:e}}function Jr(e){return{backgroundColor:e}}var $r=In(Y,function(e){var t,o,n=e.theme,r=e.presenceColors,i=n.semanticColors,s=n.fonts,a=zo(Yr,n),l=Gr(e.size),c=jr(e.presence),u=r&&r.available||"#6BB700",d=r&&r.away||"#FFAA44",p=r&&r.busy||"#C43148",h=r&&r.dnd||"#C50F1F",m=r&&r.offline||"#8A8886",g=r&&r.oof||"#B4009E",f=r&&r.background||i.bodyBackground,n=c.isOffline||e.isOutOfOffice&&(c.isAvailable||c.isBusy||c.isAway||c.isDoNotDisturb),r=l.isSize72||l.isSize100?"2px":"1px";return{presence:[a.presence,ht(ht({position:"absolute",height:Fr.size12,width:Fr.size12,borderRadius:"50%",top:"auto",right:"-2px",bottom:"-2px",border:"2px solid "+f,textAlign:"center",boxSizing:"content-box",backgroundClip:"border-box"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{selectors:((i={})[Yt]={borderColor:"Window",backgroundColor:"WindowText"},i)}),(l.isSize8||l.isSize10)&&{right:"auto",top:"7px",left:0,border:0,selectors:((t={})[Yt]={top:"9px",border:"1px solid WindowText"},t)},(l.isSize8||l.isSize10||l.isSize24||l.isSize28||l.isSize32)&&Qr(Fr.size8),(l.isSize40||l.isSize48)&&Qr(Fr.size12),l.isSize16&&{height:Fr.size6,width:Fr.size6,borderWidth:"1.5px"},l.isSize56&&Qr(Fr.size16),l.isSize72&&Qr(Fr.size20),l.isSize100&&Qr(Fr.size28),l.isSize120&&Qr(Fr.size32),c.isAvailable&&{backgroundColor:u,selectors:((t={})[Yt]=Jr("Highlight"),t)},c.isAway&&Jr(d),c.isBlocked&&[{selectors:((o={":after":l.isSize40||l.isSize48||l.isSize72||l.isSize100?{content:'""',width:"100%",height:r,backgroundColor:p,transform:"translateY(-50%) rotate(-45deg)",position:"absolute",top:"50%",left:0}:void 0})[Yt]={selectors:{":after":{width:"calc(100% - 4px)",left:"2px",backgroundColor:"Window"}}},o)}],c.isBusy&&Jr(p),c.isDoNotDisturb&&Jr(h),c.isOffline&&Jr(m),(n||c.isBlocked)&&[{backgroundColor:f,selectors:((o={":before":{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:r+" solid "+p,borderRadius:"50%",boxSizing:"border-box"}})[Yt]={backgroundColor:"WindowText",selectors:{":before":{width:"calc(100% - 2px)",height:"calc(100% - 2px)",top:"1px",left:"1px",borderColor:"Window"}}},o)}],n&&c.isAvailable&&Xr(r,u),n&&c.isBusy&&Xr(r,p),n&&c.isAway&&Xr(r,g),n&&c.isDoNotDisturb&&Xr(r,h),n&&c.isOffline&&Xr(r,m),n&&c.isOffline&&e.isOutOfOffice&&Xr(r,g)],presenceIcon:[a.presenceIcon,{color:f,fontSize:"6px",lineHeight:Fr.size12,verticalAlign:"top",selectors:((f={})[Yt]={color:"Window"},f)},l.isSize56&&{fontSize:"8px",lineHeight:Fr.size16},l.isSize72&&{fontSize:s.small.fontSize,lineHeight:Fr.size20},l.isSize100&&{fontSize:s.medium.fontSize,lineHeight:Fr.size28},l.isSize120&&{fontSize:s.medium.fontSize,lineHeight:Fr.size32},c.isAway&&{position:"relative",left:n?void 0:"1px"},n&&c.isAvailable&&Zr(u),n&&c.isBusy&&Zr(p),n&&c.isAway&&Zr(g),n&&c.isDoNotDisturb&&Zr(h),n&&c.isOffline&&Zr(m),n&&c.isOffline&&e.isOutOfOffice&&Zr(g)]}},void 0,{scope:"PersonaPresence"}),ei=[Nr.lightBlue,Nr.blue,Nr.darkBlue,Nr.teal,Nr.green,Nr.darkGreen,Nr.lightPink,Nr.pink,Nr.magenta,Nr.purple,Nr.orange,Nr.lightRed,Nr.darkRed,Nr.violet,Nr.gold,Nr.burgundy,Nr.warmGray,Nr.cyan,Nr.rust,Nr.coolGray],ti=ei.length;function oi(e){var t=e.primaryText,o=e.text,n=e.initialsColor;return"string"==typeof n?n:function(){switch(n){case Nr.lightBlue:return"#4F6BED";case Nr.blue:return"#0078D4";case Nr.darkBlue:return"#004E8C";case Nr.teal:return"#038387";case Nr.lightGreen:case Nr.green:return"#498205";case Nr.darkGreen:return"#0B6A0B";case Nr.lightPink:return"#C239B3";case Nr.pink:return"#E3008C";case Nr.magenta:return"#881798";case Nr.purple:return"#5C2E91";case Nr.orange:return"#CA5010";case Nr.red:return"#EE1111";case Nr.lightRed:return"#D13438";case Nr.darkRed:return"#A4262C";case Nr.transparent:return"transparent";case Nr.violet:return"#8764B8";case Nr.gold:return"#986F0B";case Nr.burgundy:return"#750B1C";case Nr.warmGray:return"#7A7574";case Nr.cyan:return"#005B70";case Nr.rust:return"#8E562E";case Nr.coolGray:return"#69797E";case Nr.black:return"#1D1D1D";case Nr.gray:return"#393939"}}(n=void 0!==n?n:function(e){var t=Nr.blue;if(!e)return t;for(var o=0,n=e.length-1;0<=n;n--){var r=e.charCodeAt(n),i=n%8;o^=(r<<i)+(r>>8-i)}return ei[o%ti]}(o||t))}var ni=Fn({cacheSize:100}),ri=Ao(function(e,t,o,n,r,i){return j(e,!i&&{backgroundColor:oi({text:n,initialsColor:t,primaryText:r}),color:o})}),ii={size:Rr.size48,presence:Mr.none,imageAlt:""},si=gt.forwardRef(function(e,t){var o,n,r,i,s,a=Hn(ii,e),l=(o=a.onPhotoLoadingStateChange,n=a.imageUrl,r=gt.useState(mr.notLoaded),i=r[0],s=r[1],gt.useEffect(function(){s(mr.notLoaded)},[n]),[i,function(e){s(e),null==o||o(e)}]),c=l[0],u=li(l[1]),d=a.className,p=a.coinProps,h=a.showUnknownPersonaCoin,m=a.coinSize,g=a.styles,f=a.imageUrl,v=a.initialsColor,b=a.initialsTextColor,y=a.isOutOfOffice,C=a.onRenderCoin,_=a.onRenderPersonaCoin,S=void 0===_?void 0===C?u:C:_,x=a.onRenderInitials,k=void 0===x?ci:x,w=a.presence,I=a.presenceTitle,D=a.presenceColors,T=a.primaryText,e=a.showInitialsUntilImageLoads,r=a.text,n=a.theme,i=a.size,l=ur(a,cr),C=ur(p||{},cr),_=m?{width:m,height:m}:void 0,x=h,D={coinSize:m,isOutOfOffice:y,presence:w,presenceTitle:I,presenceColors:D,size:i,theme:n},m=ni(g,{theme:n,className:p&&p.className?p.className:d,size:i,coinSize:m,showUnknownPersonaCoin:h}),c=Boolean(c!==mr.loaded&&(e&&f||!f||c===mr.error||x));return gt.createElement("div",ht({role:"presentation"},l,{className:m.coin,ref:t}),i!==Rr.size8&&i!==Rr.size10&&i!==Rr.tiny?gt.createElement("div",ht({role:"presentation"},C,{className:m.imageArea,style:_}),c&>.createElement("div",{className:ri(m.initials,v,b,r,T,h),style:_,"aria-hidden":"true"},k(a,ci)),!x&&S(a,u),gt.createElement($r,ht({},D))):a.presence?gt.createElement($r,ht({},D)):gt.createElement(Vr,{iconName:"Contact",className:m.size10WithoutPresenceIcon}),a.children)});si.displayName="PersonaCoinBase";var ai,li=function(c){return function(e){var t=e.coinSize,o=e.styles,n=e.imageUrl,r=e.imageAlt,i=e.imageShouldFadeIn,s=e.imageShouldStartVisible,a=e.theme,l=e.showUnknownPersonaCoin,e=e.size,e=void 0===e?ii.size:e;if(!n)return null;l=ni(o,{theme:a,size:e,showUnknownPersonaCoin:l}),e=t||Ur[e];return gt.createElement(Dr,{className:l.image,imageFit:pr.cover,src:n,width:e,height:e,alt:r,shouldFadeIn:i,shouldStartVisible:s,onLoadingStateChange:c})}},ci=function(e){var t=e.imageInitials,o=e.allowPhoneInitials,n=e.showUnknownPersonaCoin,r=e.text,i=e.primaryText,e=e.theme;if(n)return gt.createElement(Vr,{iconName:"Help"});e=Pn(e);return""!==(t=t||Cr(r||i||"",e,o))?gt.createElement("span",null,t):gt.createElement(Vr,{iconName:"Contact"})},ui={coin:"ms-Persona-coin",imageArea:"ms-Persona-imageArea",image:"ms-Persona-image",initials:"ms-Persona-initials",size8:"ms-Persona--size8",size10:"ms-Persona--size10",size16:"ms-Persona--size16",size24:"ms-Persona--size24",size28:"ms-Persona--size28",size32:"ms-Persona--size32",size40:"ms-Persona--size40",size48:"ms-Persona--size48",size56:"ms-Persona--size56",size72:"ms-Persona--size72",size100:"ms-Persona--size100",size120:"ms-Persona--size120"},di=In(si,function(e){var t=e.className,o=e.theme,n=e.coinSize,r=o.palette,i=o.fonts,s=Gr(e.size),o=zo(ui,o),n=n||e.size&&Ur[e.size]||48;return{coin:[o.coin,i.medium,s.isSize8&&o.size8,s.isSize10&&o.size10,s.isSize16&&o.size16,s.isSize24&&o.size24,s.isSize28&&o.size28,s.isSize32&&o.size32,s.isSize40&&o.size40,s.isSize48&&o.size48,s.isSize56&&o.size56,s.isSize72&&o.size72,s.isSize100&&o.size100,s.isSize120&&o.size120,t],size10WithoutPresenceIcon:{fontSize:i.xSmall.fontSize,position:"absolute",top:"5px",right:"auto",left:0},imageArea:[o.imageArea,{position:"relative",textAlign:"center",flex:"0 0 auto",height:n,width:n},n<=10&&{overflow:"visible",background:"transparent",height:0,width:0}],image:[o.image,{marginRight:"10px",position:"absolute",top:0,left:0,width:"100%",height:"100%",border:0,borderRadius:"50%",perspective:"1px"},n<=10&&{overflow:"visible",background:"transparent",height:0,width:0},10<n&&{height:n,width:n}],initials:[o.initials,{borderRadius:"50%",color:e.showUnknownPersonaCoin?"rgb(168, 0, 0)":r.white,fontSize:i.large.fontSize,fontWeight:Fe.semibold,lineHeight:48===n?46:n,height:n,selectors:((r={})[Yt]=ht(ht({border:"1px solid WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{color:"WindowText",boxSizing:"border-box",backgroundColor:"Window !important"}),r.i={fontWeight:Fe.semibold},r)},e.showUnknownPersonaCoin&&{backgroundColor:"rgb(234, 234, 234)"},n<32&&{fontSize:i.xSmall.fontSize},32<=n&&n<40&&{fontSize:i.medium.fontSize},40<=n&&n<56&&{fontSize:i.mediumPlus.fontSize},56<=n&&n<72&&{fontSize:i.xLarge.fontSize},72<=n&&n<100&&{fontSize:i.xxLarge.fontSize},100<=n&&{fontSize:i.superLarge.fontSize}]}},void 0,{scope:"PersonaCoin"}),pi=(l(mi,ai=gt.Component),mi.prototype.render=function(){var e=this.props,t=e.onRenderIcon,o=void 0===t?this._onRenderIcon:t,n=e.onRenderActivityDescription,r=void 0===n?this._onRenderActivityDescription:n,i=e.onRenderComments,s=void 0===i?this._onRenderComments:i,t=e.onRenderTimeStamp,n=void 0===t?this._onRenderTimeStamp:t,i=e.animateBeaconSignal,t=e.isCompact,e=this._getClassNames(this.props);return gt.createElement("div",{className:e.root,style:this.props.style},(this.props.activityPersonas||this.props.activityIcon||this.props.onRenderIcon)&>.createElement("div",{className:e.activityTypeIcon},i&&t&>.createElement("div",{className:e.pulsingBeacon}),o(this.props)),gt.createElement("div",{className:e.activityContent},r(this.props,this._onRenderActivityDescription),s(this.props,this._onRenderComments),n(this.props,this._onRenderTimeStamp)))},mi.prototype._getClassNames=function(e){return vn(Sn(void 0,e.styles,e.animateBeaconSignal,e.beaconColorOne,e.beaconColorTwo,e.isCompact),e.className,e.activityPersonas,e.isCompact)},mi),hi=function(){var e,t=qe();return!(null===(e=null==t?void 0:t.navigator)||void 0===e||!e.userAgent)&&-1<t.navigator.userAgent.indexOf("rv:11.0")};function mi(e){var l=ai.call(this,e)||this;return l._onRenderIcon=function(e){return e.activityPersonas?l._onRenderPersonaArray(e):l.props.activityIcon},l._onRenderActivityDescription=function(e){var t=l._getClassNames(e),e=e.activityDescription||e.activityDescriptionText;return e?gt.createElement("span",{className:t.activityText},e):null},l._onRenderComments=function(e){var t=l._getClassNames(e),o=e.comments||e.commentText;return!e.isCompact&&o?gt.createElement("div",{className:t.commentText},o):null},l._onRenderTimeStamp=function(e){var t=l._getClassNames(e);return!e.isCompact&&e.timeStamp?gt.createElement("div",{className:t.timeStamp},e.timeStamp):null},l._onRenderPersonaArray=function(e){var o,n,r,i,s=l._getClassNames(e),t=null,a=e.activityPersonas;return(a[0].imageUrl||a[0].imageInitials)&&(o=[],n=1<a.length||e.isCompact,r=e.isCompact?3:4,i=void 0,e.isCompact&&(i={display:"inline-block",width:"10px",minWidth:"10px",overflow:"visible"}),a.filter(function(e,t){return t<r}).forEach(function(e,t){o.push(gt.createElement(di,ht({},e,{key:e.key||t,className:s.activityPersona,size:n?Rr.size16:Rr.size32,style:i})))}),t=gt.createElement("div",{className:s.personaContainer},o)),t},l}function gi(o){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];return n.length<2?n[0]:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n.forEach(function(e){return e&&e.apply(o,t)})}}function fi(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=gi(e,e[o],t[o]))}function vi(e){fi(e,{componentDidMount:bi,componentDidUpdate:yi,componentWillUnmount:Ci})}function bi(){_i(this.props.componentRef,this)}function yi(e){e.componentRef!==this.props.componentRef&&(_i(e.componentRef,null),_i(this.props.componentRef,this))}function Ci(){_i(this.props.componentRef,null)}function _i(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}var Si,xi=(Di.prototype.dispose=function(){if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(var e in this._timeoutIds)this._timeoutIds.hasOwnProperty(e)&&this.clearTimeout(parseInt(e,10));this._timeoutIds=null}if(this._immediateIds){for(e in this._immediateIds)this._immediateIds.hasOwnProperty(e)&&this.clearImmediate(parseInt(e,10));this._immediateIds=null}if(this._intervalIds){for(e in this._intervalIds)this._intervalIds.hasOwnProperty(e)&&this.clearInterval(parseInt(e,10));this._intervalIds=null}if(this._animationFrameIds){for(e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(e)&&this.cancelAnimationFrame(parseInt(e,10));this._animationFrameIds=null}},Di.prototype.setTimeout=function(e,t){var o=this,n=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),n=setTimeout(function(){try{o._timeoutIds&&delete o._timeoutIds[n],e.apply(o._parent)}catch(e){o._logError(e)}},t),this._timeoutIds[n]=!0),n},Di.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},Di.prototype.setImmediate=function(e,t){var o=this,n=0,t=qe(t);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),n=t.setTimeout(function(){try{o._immediateIds&&delete o._immediateIds[n],e.apply(o._parent)}catch(e){o._logError(e)}},0),this._immediateIds[n]=!0),n},Di.prototype.clearImmediate=function(e,t){t=qe(t);this._immediateIds&&this._immediateIds[e]&&(t.clearTimeout(e),delete this._immediateIds[e])},Di.prototype.setInterval=function(e,t){var o=this,n=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),n=setInterval(function(){try{e.apply(o._parent)}catch(e){o._logError(e)}},t),this._intervalIds[n]=!0),n},Di.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},Di.prototype.throttle=function(r,e,t){var i=this;if(this._isDisposed)return this._noop;var s,a,l=e||0,c=!0,u=!0,d=0,p=null;t&&"boolean"==typeof t.leading&&(c=t.leading),t&&"boolean"==typeof t.trailing&&(u=t.trailing);function h(e){var t=Date.now(),o=t-d,n=c?l-o:l;return l<=o&&(!e||c)?(d=t,p&&(i.clearTimeout(p),p=null),s=r.apply(i._parent,a)):null===p&&u&&(p=i.setTimeout(h,n)),s}return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a=e,h(!0)}},Di.prototype.debounce=function(t,e,o){var a=this;if(this._isDisposed){var n=function(){};return n.cancel=function(){},n.flush=function(){return null},n.pending=function(){return!1},n}var l,r,c=e||0,u=!1,d=!0,p=null,h=0,m=Date.now(),g=null;o&&"boolean"==typeof o.leading&&(u=o.leading),o&&"boolean"==typeof o.trailing&&(d=o.trailing),o&&"number"==typeof o.maxWait&&!isNaN(o.maxWait)&&(p=o.maxWait);var i=function(e){g&&(a.clearTimeout(g),g=null),m=e},f=function(e){i(e),l=t.apply(a._parent,r)},v=function(e){var t=Date.now(),o=!1;e&&(u&&c<=t-h&&(o=!0),h=t);var n=t-h,r=c-n,i=t-m,s=!1;return null!==p&&(p<=i&&g?s=!0:r=Math.min(r,p-i)),c<=n||s||o?f(t):null!==g&&e||!d||(g=a.setTimeout(v,r)),l},e=function(){return!!g},o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r=e,v(!0)};return o.cancel=function(){g&&i(Date.now())},o.flush=function(){return g&&f(Date.now()),l},o.pending=e,o},Di.prototype.requestAnimationFrame=function(e,t){var o=this,n=0,r=qe(t);return this._isDisposed||(this._animationFrameIds||(this._animationFrameIds={}),t=function(){try{o._animationFrameIds&&delete o._animationFrameIds[n],e.apply(o._parent)}catch(e){o._logError(e)}},n=r.requestAnimationFrame?r.requestAnimationFrame(t):r.setTimeout(t,0),this._animationFrameIds[n]=!0),n},Di.prototype.cancelAnimationFrame=function(e,t){t=qe(t);this._animationFrameIds&&this._animationFrameIds[e]&&(t.cancelAnimationFrame?t.cancelAnimationFrame(e):t.clearTimeout(e),delete this._animationFrameIds[e])},Di.prototype._logError=function(e){this._onErrorHandler&&this._onErrorHandler(e)},Di),ki="backward",wi=(l(Ii,Si=gt.Component),Ii.getDerivedStateFromProps=function(e,t){if(e.updateValueInWillReceiveProps){e=e.updateValueInWillReceiveProps();if(null!==e&&e!==t.inputValue&&!t.isComposing)return ht(ht({},t),{inputValue:e})}return null},Object.defineProperty(Ii.prototype,"cursorLocation",{get:function(){if(this._inputElement.current){var e=this._inputElement.current;return"forward"!==e.selectionDirection?e.selectionEnd:e.selectionStart}return-1},enumerable:!1,configurable:!0}),Object.defineProperty(Ii.prototype,"isValueSelected",{get:function(){return Boolean(this.inputElement&&this.inputElement.selectionStart!==this.inputElement.selectionEnd)},enumerable:!1,configurable:!0}),Object.defineProperty(Ii.prototype,"value",{get:function(){return this._getControlledValue()||this.state.inputValue||""},enumerable:!1,configurable:!0}),Object.defineProperty(Ii.prototype,"selectionStart",{get:function(){return this._inputElement.current?this._inputElement.current.selectionStart:-1},enumerable:!1,configurable:!0}),Object.defineProperty(Ii.prototype,"selectionEnd",{get:function(){return this._inputElement.current?this._inputElement.current.selectionEnd:-1},enumerable:!1,configurable:!0}),Object.defineProperty(Ii.prototype,"inputElement",{get:function(){return this._inputElement.current},enumerable:!1,configurable:!0}),Ii.prototype.componentDidUpdate=function(e,t,o){var n=this.props,r=n.suggestedDisplayValue,i=n.shouldSelectFullInputValueInComponentDidUpdate,s=0;if(!n.preventValueSelection)if(this._autoFillEnabled&&this.value&&r&&Ti(r,this.value)){n=!1;if((n=i?i():n)&&this._inputElement.current)this._inputElement.current.setSelectionRange(0,r.length,ki);else{for(;s<this.value.length&&this.value[s].toLocaleLowerCase()===r[s].toLocaleLowerCase();)s++;0<s&&this._inputElement.current&&this._inputElement.current.setSelectionRange(s,r.length,ki)}}else this._inputElement.current&&(null===o||this._autoFillEnabled||this.state.isComposing||this._inputElement.current.setSelectionRange(o.start,o.end,o.dir))},Ii.prototype.componentWillUnmount=function(){this._async.dispose()},Ii.prototype.render=function(){var e=ur(this.props,Zn),t=ht(ht({},this.props.style),{fontFamily:"inherit"});return gt.createElement("input",ht({autoCapitalize:"off",autoComplete:"off","aria-autocomplete":"both"},e,{style:t,ref:this._inputElement,value:this._getDisplayValue(),onCompositionStart:this._onCompositionStart,onCompositionUpdate:this._onCompositionUpdate,onCompositionEnd:this._onCompositionEnd,onChange:this._onChanged,onInput:this._onInputChanged,onKeyDown:this._onKeyDown,onClick:this.props.onClick||this._onClick,"data-lpignore":!0}))},Ii.prototype.focus=function(){this._inputElement.current&&this._inputElement.current.focus()},Ii.prototype.clear=function(){this._autoFillEnabled=!0,this._updateValue("",!1),this._inputElement.current&&this._inputElement.current.setSelectionRange(0,0)},Ii.prototype.getSnapshotBeforeUpdate=function(){var e,t=this._inputElement.current;return t&&t.selectionStart!==this.value.length?{start:null!==(e=t.selectionStart)&&void 0!==e?e:t.value.length,end:null!==(e=t.selectionEnd)&&void 0!==e?e:t.value.length,dir:t.selectionDirection||"backward"}:null},Ii.prototype._getCurrentInputValue=function(e){return e&&e.target&&e.target.value?e.target.value:this.inputElement&&this.inputElement.value?this.inputElement.value:""},Ii.prototype._tryEnableAutofill=function(e,t,o,n){!o&&e&&this._inputElement.current&&this._inputElement.current.selectionStart===e.length&&!this._autoFillEnabled&&(e.length>t.length||n)&&(this._autoFillEnabled=!0)},Ii.prototype._getDisplayValue=function(){return this._autoFillEnabled?(o=e=this.value,o=(t=this.props.suggestedDisplayValue)&&e&&Ti(t,e)?t:o):this.value;var e,t,o},Ii.prototype._getControlledValue=function(){var e=this.props.value;return void 0===e||"string"==typeof e?e:(console.warn("props.value of Autofill should be a string, but it is "+e+" with type of "+typeof e),e.toString())},Ii.defaultProps={enableAutofillOnKeyPress:[Tn.down,Tn.up]},Ii);function Ii(e){var i=Si.call(this,e)||this;return i._inputElement=gt.createRef(),i._autoFillEnabled=!0,i._onCompositionStart=function(e){i.setState({isComposing:!0}),i._autoFillEnabled=!1},i._onCompositionUpdate=function(){hi()&&i._updateValue(i._getCurrentInputValue(),!0)},i._onCompositionEnd=function(e){var t=i._getCurrentInputValue();i._tryEnableAutofill(t,i.value,!1,!0),i.setState({isComposing:!1}),i._async.setTimeout(function(){i._updateValue(i._getCurrentInputValue(),!1)},0)},i._onClick=function(){i.value&&""!==i.value&&i._autoFillEnabled&&(i._autoFillEnabled=!1)},i._onKeyDown=function(e){if(i.props.onKeyDown&&i.props.onKeyDown(e),!e.nativeEvent.isComposing)switch(e.which){case Tn.backspace:i._autoFillEnabled=!1;break;case Tn.left:case Tn.right:i._autoFillEnabled&&(i.setState({inputValue:i.props.suggestedDisplayValue||""}),i._autoFillEnabled=!1);break;default:i._autoFillEnabled||-1!==i.props.enableAutofillOnKeyPress.indexOf(e.which)&&(i._autoFillEnabled=!0)}},i._onInputChanged=function(e){var t=i._getCurrentInputValue(e);i.state.isComposing||i._tryEnableAutofill(t,i.value,e.nativeEvent.isComposing),hi()&&i.state.isComposing||(e=void 0===(e=e.nativeEvent.isComposing)?i.state.isComposing:e,i._updateValue(t,e))},i._onChanged=function(){},i._updateValue=function(e,t){var o,n,r;!e&&e===i.value||(n=(o=i.props).onInputChange,r=o.onInputValueChange,n&&(e=(null==n?void 0:n(e,t))||""),i.setState({inputValue:e},function(){return null==r?void 0:r(e,t)}))},vi(i),i._async=new xi(i),i.state={inputValue:e.defaultVisibleValue||"",isComposing:!1},i}function Di(e,t){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=e||null,this._onErrorHandler=t,this._noop=function(){}}function Ti(e,t){return e&&t&&0===e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())}var Ei,Pi,Ri,Mi=(l(Hi,Ri=gt.Component),Hi.prototype.componentDidMount=function(){var e=this,t=this.props.delay;this._timeoutId=window.setTimeout(function(){e.setState({isRendered:!0})},t)},Hi.prototype.componentWillUnmount=function(){this._timeoutId&&clearTimeout(this._timeoutId)},Hi.prototype.render=function(){return this.state.isRendered?gt.Children.only(this.props.children):null},Hi.defaultProps={delay:0},Hi),Ni=Fn(),Bi=(l(Li,Pi=gt.Component),Li.prototype.render=function(){var e=this.props,t=e.message,o=e.styles,n=e.as,n=void 0===n?"div":n,e=e.className,e=Ni(o,{className:e});return gt.createElement(n,ht({role:"status",className:e.root},ur(this.props,cr,["className"])),gt.createElement(Mi,null,gt.createElement("div",{className:e.screenReaderText},t)))},Li.defaultProps={"aria-live":"polite"},Li),Fi=In(Bi,function(e){return{root:e.className,screenReaderText:So}}),Ai={none:0,all:1,inputOnly:2};function Li(){return null!==Pi&&Pi.apply(this,arguments)||this}function Hi(e){e=Ri.call(this,e)||this;return e.state={isRendered:void 0===qe()},e}function Oi(e,t,o){for(var n=-1,r=o=void 0===o?0:o;e&&r<e.length;r++)if(t(e[r],r)){n=r;break}return n}function zi(e,t){t=Oi(e,t);if(!(t<0))return e[t]}function Wi(e,t){for(var o=[],n=0;n<e;n++)o.push(t(n));return o}function Vi(e,n){return e.reduce(function(e,t,o){return o%n==0?e.push([t]):e[e.length-1].push(t),e},[])}function Ki(e,o){return e.filter(function(e,t){return o!==t})}function Gi(e,t,o){e=e.slice();return e[o]=t,e}function Ui(e,t,o){e=e.slice();return e.splice(t,0,o),e}function ji(e){var t=[];return e.forEach(function(e){return t=t.concat(e)}),t}function qi(e,t){if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}(U=Ei=Ei||{})[U.vertical=0]="vertical",U[U.horizontal=1]="horizontal",U[U.bidirectional=2]="bidirectional",U[U.domOrder=3]="domOrder";var Yi=function(e){var o={refs:[]};return function(){for(var r,e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.resolver&&qi(o.refs,e)||(o.resolver=(r=o,function(e){for(var t=0,o=r.refs;t<o.length;t++){var n=o[t];"function"==typeof n?n(e):n&&(n.current=e)}})),o.refs=e,o.resolver}};function Zi(e){return e&&!!e._virtual}function Xi(e){var t;return t=e&&Zi(e)?e._virtual.parent:t}function Qi(e,t){return void 0===t&&(t=!0),e&&(t&&Xi(e)||e.parentNode&&e.parentNode)}function Ji(e,t){return e&&e!==document.body?t(e)?e:Ji(Qi(e),t):null}function $i(e,t){e=Ji(e,function(e){return e.hasAttribute(t)});return e&&e.getAttribute(t)}function es(e,t,o){void 0===o&&(o=!0);var n=!1;if(e&&t)if(o)if(e===t)n=!0;else for(n=!1;t;){var r=Qi(t);if(r===e){n=!0;break}t=r}else e.contains&&(n=e.contains(t));return n}function ts(e,t,o){return as(e,t,!0,!1,!1,o)}function os(e,t,o){return ss(e,t,!0,!1,!0,o)}function ns(e,t,o,n){return as(e,t,n=void 0===n?!0:n,!1,!1,o,!1,!0)}function rs(e,t,o,n){return ss(e,t,n=void 0===n?!0:n,!1,!0,o,!1,!0)}function is(e){e=as(e,e,!0,!1,!1,!0);return!!e&&(fs(e),!0)}function ss(e,t,o,n,r,i,s,a){if(!t||!s&&t===e)return null;var l=ls(t);if(r&&l&&(i||!ds(t)&&!ps(t))){var c=ss(e,t.lastElementChild,!0,!0,!0,i,s,a);if(c){if(a&&us(c,!0)||!a)return c;r=ss(e,c.previousElementSibling,!0,!0,!0,i,s,a);if(r)return r;for(var u=c.parentElement;u&&u!==t;){var d=ss(e,u.previousElementSibling,!0,!0,!0,i,s,a);if(d)return d;u=u.parentElement}}}return o&&l&&us(t,a)?t:ss(e,t.previousElementSibling,!0,!0,!0,i,s,a)||(n?null:ss(e,t.parentElement,!0,!1,!1,i,s,a))}function as(e,t,o,n,r,i,s,a){if(!t||t===e&&r&&!s)return null;var l=ls(t);if(o&&l&&us(t,a))return t;if(!r&&l&&(i||!ds(t)&&!ps(t))){l=as(e,t.firstElementChild,!0,!0,!1,i,s,a);if(l)return l}return t===e?null:as(e,t.nextElementSibling,!0,!0,!1,i,s,a)||(n?null:as(e,t.parentElement,!1,!1,!0,i,s,a))}function ls(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute("data-is-visible");return null!=t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function cs(e){return!!e&&ls(e)&&!e.hidden&&"hidden"!==window.getComputedStyle(e).visibility}function us(e,t){if(!e||e.disabled)return!1;var o=0,n=null;e&&e.getAttribute&&(n=e.getAttribute("tabIndex"))&&(o=parseInt(n,10));var r=e.getAttribute?e.getAttribute("data-is-focusable"):null,n=!!e&&"false"!==r&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===r||null!==n&&0<=o);return(!t||-1!==o)&&n}function ds(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function ps(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}function hs(e){var t=ft(e),t=t&&t.activeElement;return!(!t||!es(e,t))}function ms(e,t){return"true"!==$i(e,t)}var gs=void 0;function fs(e){e&&(gs?gs=e:(e=qe(gs=e))&&e.requestAnimationFrame(function(){gs&&gs.focus(),gs=void 0}))}function vs(e,t){for(var o=e,n=0,r=t;n<r.length;n++){var i=r[n],i=o.children[Math.min(i,o.children.length-1)];if(!i)break;o=i}return us(o)&&ls(o)?o:as(e,o,!0)||ss(e,o)}function bs(e,t){for(var o=[];t&&e&&t!==e;){var n=Qi(t,!0);if(null===n)return[];o.unshift(Array.prototype.indexOf.call(n.children,t)),t=n}return o}var ys=qe()||{};void 0===ys.__currentId__&&(ys.__currentId__=0);var Cs,_s=!1;function Ss(e){var t;return _s||((t=v.getInstance())&&t.onReset&&t.onReset(xs),_s=!0),(void 0===e?"id__":e)+ys.__currentId__++}function xs(e){ys.__currentId__=e=void 0===e?0:e}var ks=0,ws=j({overflow:"hidden !important"}),Is="data-is-scrollable",Ds=function(e,t){var n,r;e&&(n=0,r=null,t.on(e,"touchstart",function(e){1===e.targetTouches.length&&(n=e.targetTouches[0].clientY)},{passive:!1}),t.on(e,"touchmove",function(e){var t,o;1===e.targetTouches.length&&(e.stopPropagation(),r)&&(t=e.targetTouches[0].clientY-n,o=Ns(e.target),0===(r=o?o:r).scrollTop&&0<t&&e.preventDefault(),r.scrollHeight-Math.ceil(r.scrollTop)<=r.clientHeight&&t<0&&e.preventDefault())},{passive:!1}),r=e)},Ts=function(e,t){e&&t.on(e,"touchmove",function(e){e.stopPropagation()},{passive:!1})},Es=function(e){e.preventDefault()};function Ps(){var e=ft();e&&e.body&&!ks&&(e.body.classList.add(ws),e.body.addEventListener("touchmove",Es,{passive:!1,capture:!1})),ks++}function Rs(){var e;0<ks&&((e=ft())&&e.body&&1===ks&&(e.body.classList.remove(ws),e.body.removeEventListener("touchmove",Es)),ks--)}function Ms(){var e;return void 0===Cs&&((e=document.createElement("div")).style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),Cs=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),Cs}function Ns(e){for(var t=e,o=ft(e);t&&t!==o.body;){if("true"===t.getAttribute(Is))return t;t=t.parentElement}for(t=e;t&&t!==o.body;){if("false"!==t.getAttribute(Is)){var n=getComputedStyle(t),n=n?n.getPropertyValue("overflow-y"):"";if(n&&("scroll"===n||"auto"===n))return t}t=t.parentElement}return t=!t||t===o.body?qe(e):t}var Bs="data-portal-element";function Fs(e){e.setAttribute(Bs,"true")}function As(e,t){e=Ji(e,function(e){return t===e||e.hasAttribute(Bs)});return null!==e&&e.hasAttribute(Bs)}var Ls,Hs="data-is-focusable",Os="data-focuszone-id",zs="tabindex",Ws="data-no-vertical-wrap",Vs="data-no-horizontal-wrap",Ks=999999999,Gs=-999999999;var Us,js={},qs=new Set,Ys=["text","number","password","email","tel","url","search"],Zs=(l(Qs,Us=gt.Component),Qs.getOuterZones=function(){return qs.size},Qs._onKeyDownCapture=function(e){e.which===Tn.tab&&qs.forEach(function(e){return e._updateTabIndexes()})},Qs.prototype.componentDidMount=function(){var e=this._root.current;if(js[this._id]=this,e){this._windowElement=qe(e);for(var t=Qi(e,!1);t&&t!==this._getDocument().body&&1===t.nodeType;){if(ds(t)){this._isInnerZone=!0;break}t=Qi(t,!1)}this._isInnerZone||(qs.add(this),this._windowElement&&1===qs.size&&this._windowElement.addEventListener("keydown",Qs._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},Qs.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();this.props.preventFocusRestoration||!t||!this._lastIndexPath||t.activeElement!==t.body&&null!==t.activeElement&&t.activeElement!==e||((e=vs(e,this._lastIndexPath))?(this._setActiveElement(e,!0),e.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0))},Qs.prototype.componentWillUnmount=function(){delete js[this._id],this._isInnerZone||(qs.delete(this),this._windowElement&&0===qs.size&&this._windowElement.removeEventListener("keydown",Qs._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},Qs.prototype.render=function(){var t=this,e=this.props,o=e.as,n=e.elementType,r=e.rootProps,i=e.ariaDescribedBy,s=e.ariaLabelledBy,a=e.className,e=ur(this.props,Wn),n=o||n||"div";this._evaluateFocusBeforeRender();var l=Wt();return gt.createElement(n,ht({"aria-labelledby":s,"aria-describedby":i},e,r,{className:Pr(Ls=Ls||j({selectors:{":focus":{outline:"none"}}},"ms-FocusZone"),a),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(e){return t._onKeyDown(e,l)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},Qs.prototype.focus=function(e){if(void 0===e&&(e=!1),this._root.current){if(!e&&"true"===this._root.current.getAttribute(Hs)&&this._isInnerZone){var t=this._getOwnerZone(this._root.current);if(t===this._root.current)return!1;t=js[t.getAttribute(Os)];return!!t&&t.focusElement(this._root.current)}if(!e&&this._activeElement&&es(this._root.current,this._activeElement)&&us(this._activeElement))return this._activeElement.focus(),!0;e=this._root.current.firstChild;return this.focusElement(as(this._root.current,e,!0))}return!1},Qs.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(ss(this._root.current,e,!0,!0,!0))}return!1},Qs.prototype.focusElement=function(e,t){var o=this.props,n=o.onBeforeFocus,o=o.shouldReceiveFocus;return!(o&&!o(e)||n&&!n(e)||!e||(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),0))},Qs.prototype.setFocusAlignment=function(e){this._focusAlignment=e},Qs.prototype._evaluateFocusBeforeRender=function(){var e,t=this._root.current,o=this._getDocument();!o||(e=o.activeElement)!==t&&(o=es(t,e,!1),this._lastIndexPath=o?bs(t,e):void 0)},Qs.prototype._setParkedFocus=function(e){var t=this._root.current;t&&this._isParked!==e&&((this._isParked=e)?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},Qs.prototype._setActiveElement=function(e,t){var o=this._activeElement;this._activeElement=e,o&&(ds(o)&&this._updateTabIndexes(o),o.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},Qs.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},Qs.prototype._tryInvokeClickForFocusable=function(e,t){var o,n,r,i=e;if(i===this._root.current)return!1;do{if("BUTTON"===i.tagName||"A"===i.tagName||"INPUT"===i.tagName||"TEXTAREA"===i.tagName)return!1;if(this._isImmediateDescendantOfZone(i)&&"true"===i.getAttribute(Hs)&&"true"!==i.getAttribute("data-disable-click-on-enter"))return o=i,n=t,r=void 0,"function"==typeof MouseEvent?r=new MouseEvent("click",{ctrlKey:null==n?void 0:n.ctrlKey,metaKey:null==n?void 0:n.metaKey,shiftKey:null==n?void 0:n.shiftKey,altKey:null==n?void 0:n.altKey,bubbles:null==n?void 0:n.bubbles,cancelable:null==n?void 0:n.cancelable}):(r=document.createEvent("MouseEvents")).initMouseEvent("click",!!n&&n.bubbles,!!n&&n.cancelable,window,0,0,0,0,0,!!n&&n.ctrlKey,!!n&&n.altKey,!!n&&n.shiftKey,!!n&&n.metaKey,0,null),o.dispatchEvent(r),!0}while((i=Qi(i,!1))!==this._root.current);return!1},Qs.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(ds(e))return js[e.getAttribute(Os)];for(var t=e.firstElementChild;t;){if(ds(t))return js[t.getAttribute(Os)];var o=this._getFirstInnerZone(t);if(o)return o;t=t.nextElementSibling}return null},Qs.prototype._moveFocus=function(e,t,o,n){void 0===n&&(n=!0);var r=this._activeElement,i=-1,s=void 0,a=!1,l=this.props.direction===Ei.bidirectional;if(!r||!this._root.current)return!1;if(this._isElementInput(r)&&!this._shouldInputLoseFocus(r,e))return!1;var c=l?r.getBoundingClientRect():null;do{if(r=(e?as:ss)(this._root.current,r),!l){s=r;break}if(r){var u=t(c,r.getBoundingClientRect());if(-1===u&&-1===i){s=r;break}if(-1<u&&(-1===i||u<i)&&(i=u,s=r),0<=i&&u<0)break}}while(r);if(s&&s!==this._activeElement)a=!0,this.focusElement(s);else if(this.props.isCircularNavigation&&n)return e?this.focusElement(as(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(ss(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return a},Qs.prototype._moveFocusDown=function(){var r=this,i=-1,s=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,function(e,t){var o=-1,n=Math.floor(t.top),e=Math.floor(e.bottom);return n<e?r._shouldWrapFocus(r._activeElement,Ws)?Ks:Gs:((-1===i&&e<=n||n===i)&&(i=n,o=s>=t.left&&s<=t.left+t.width?0:Math.abs(t.left+t.width/2-s)),o)})&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},Qs.prototype._moveFocusUp=function(){var i=this,s=-1,a=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,function(e,t){var o=-1,n=Math.floor(t.bottom),r=Math.floor(t.top),e=Math.floor(e.top);return e<n?i._shouldWrapFocus(i._activeElement,Ws)?Ks:Gs:((-1===s&&n<=e||r===s)&&(s=r,o=a>=t.left&&a<=t.left+t.width?0:Math.abs(t.left+t.width/2-a)),o)})&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},Qs.prototype._moveFocusLeft=function(n){var r=this,i=this._shouldWrapFocus(this._activeElement,Vs);return!!this._moveFocus(Pn(n),function(e,t){var o=-1;return(Pn(n)?parseFloat(t.top.toFixed(3))<parseFloat(e.bottom.toFixed(3)):parseFloat(t.bottom.toFixed(3))>parseFloat(e.top.toFixed(3)))&&t.right<=e.right&&r.props.direction!==Ei.vertical?o=e.right-t.right:i||(o=Gs),o},void 0,i)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},Qs.prototype._moveFocusRight=function(n){var r=this,i=this._shouldWrapFocus(this._activeElement,Vs);return!!this._moveFocus(!Pn(n),function(e,t){var o=-1;return(Pn(n)?parseFloat(t.bottom.toFixed(3))>parseFloat(e.top.toFixed(3)):parseFloat(t.top.toFixed(3))<parseFloat(e.bottom.toFixed(3)))&&t.left>=e.left&&r.props.direction!==Ei.vertical?o=t.left-e.left:i||(o=Gs),o},void 0,i)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},Qs.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var o=this._activeElement;if(!o||!this._root.current)return!1;if(this._isElementInput(o)&&!this._shouldInputLoseFocus(o,e))return!1;var n=Ns(o);if(!n)return!1;var r=-1,i=void 0,s=-1,a=-1,l=n.clientHeight,c=o.getBoundingClientRect();do{if(o=(e?as:ss)(this._root.current,o)){var u=o.getBoundingClientRect(),d=Math.floor(u.top),p=Math.floor(c.bottom),h=Math.floor(u.bottom),m=Math.floor(c.top),u=this._getHorizontalDistanceFromCenter(e,c,u);if(e&&p+l<d||!e&&h<m-l)break;-1<u&&(e&&s<d?(s=d,r=u,i=o):!e&&h<a?(a=h,r=u,i=o):(-1===r||u<=r)&&(r=u,i=o))}}while(o);n=!1;if(i&&i!==this._activeElement)n=!0,this.focusElement(i),this._setFocusAlignment(i,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement(as(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(ss(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return n},Qs.prototype._setFocusAlignment=function(e,t,o){var n;this.props.direction!==Ei.bidirectional||this._focusAlignment&&!t&&!o||(e=(n=e.getBoundingClientRect()).left+n.width/2,n=n.top+n.height/2,this._focusAlignment||(this._focusAlignment={left:e,top:n}),t&&(this._focusAlignment.left=e),o&&(this._focusAlignment.top=n))},Qs.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},Qs.prototype._getOwnerZone=function(e){for(var t=Qi(e,!1);t&&t!==this._root.current&&t!==this._getDocument().body;){if(ds(t))return t;t=Qi(t,!1)}return t},Qs.prototype._updateTabIndexes=function(e){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!es(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!us(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,o=0;t&&o<t.length;o++){var n=t[o];ds(n)?"true"===n.getAttribute(Hs)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==n?"-1"!==n.getAttribute(zs)&&n.setAttribute(zs,"-1"):"0"!==(this._defaultFocusElement=n).getAttribute(zs)&&n.setAttribute(zs,"0")):(n.getAttribute&&"false"===n.getAttribute(Hs)&&n.setAttribute(zs,"-1"),us(n)?this.props.disabled?n.setAttribute(zs,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==n?"-1"!==n.getAttribute(zs)&&n.setAttribute(zs,"-1"):"0"!==(this._defaultFocusElement=n).getAttribute(zs)&&n.setAttribute(zs,"0"):"svg"===n.tagName&&"false"!==n.getAttribute("focusable")&&n.setAttribute("focusable","false")),this._updateTabIndexes(n)}},Qs.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},Qs.prototype._isElementInput=function(e){return!(!e||!e.tagName||"input"!==e.tagName.toLowerCase()&&"textarea"!==e.tagName.toLowerCase())},Qs.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&-1<Ys.indexOf(e.type.toLowerCase())){var o=e.selectionStart,n=o!==e.selectionEnd,r=e.value,i=e.readOnly;if(n||0<o&&!t&&!i||o!==r.length&&t&&!i||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},Qs.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||ms(e,t)},Qs.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&As(e,this._root.current)},Qs.prototype._getDocument=function(){return ft(this._root.current)},Qs.defaultProps={isCircularNavigation:!1,direction:Ei.bidirectional,shouldRaiseClicks:!0},Qs),Xs=((xe={})[Tn.up]=1,xe[Tn.down]=1,xe[Tn.left]=1,xe[Tn.right]=1,xe[Tn.home]=1,xe[Tn.end]=1,xe[Tn.tab]=1,xe[Tn.pageUp]=1,xe[Tn.pageDown]=1,xe);function Qs(e){var t,p=Us.call(this,e)||this;p._root=gt.createRef(),p._mergedRef=Yi(),p._onFocus=function(e){if(!p._portalContainsElement(e.target)){var t,o=p.props,n=o.onActiveElementChanged,r=o.doNotAllowFocusEventToPropagate,i=o.stopFocusPropagation,s=o.onFocusNotification,a=o.onFocus,l=o.shouldFocusInnerElementWhenReceivedFocus,c=o.defaultTabbableElement,o=p._isImmediateDescendantOfZone(e.target);if(o)t=e.target;else for(var u=e.target;u&&u!==p._root.current;){if(us(u)&&p._isImmediateDescendantOfZone(u)){t=u;break}u=Qi(u,!1)}l&&e.target===p._root.current&&((d=c&&"function"==typeof c&&p._root.current&&c(p._root.current))&&us(d)?(t=d).focus():(p.focus(!0),p._activeElement&&(t=null)));var d=!p._activeElement;t&&t!==p._activeElement&&((o||d)&&p._setFocusAlignment(t,!0,!0),p._activeElement=t,d&&p._updateTabIndexes()),n&&n(p._activeElement,e),(i||r)&&e.stopPropagation(),a?a(e):s&&s()}},p._onBlur=function(){p._setParkedFocus(!1)},p._onMouseDown=function(e){if(!p._portalContainsElement(e.target)&&!p.props.disabled){for(var t=e.target,o=[];t&&t!==p._root.current;)o.push(t),t=Qi(t,!1);for(;o.length&&((t=o.pop())&&us(t)&&p._setActiveElement(t,!0),!ds(t)););}},p._onKeyDown=function(e,t){if(!p._portalContainsElement(e.target)){var o=p.props,n=o.direction,r=o.disabled,i=o.isInnerZoneKeystroke,s=o.pagingSupportDisabled,o=o.shouldEnterInnerZone;if(!(r||(p.props.onKeyDown&&p.props.onKeyDown(e),e.isDefaultPrevented()||p._getDocument().activeElement===p._root.current&&p._isInnerZone))){if((o&&o(e)||i&&i(e))&&p._isImmediateDescendantOfZone(e.target)){i=p._getFirstInnerZone();if(i){if(!i.focus(!0))return}else{if(!ps(e.target))return;if(!p.focusElement(as(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case Tn.space:if(p._shouldRaiseClicksOnSpace&&p._tryInvokeClickForFocusable(e.target,e))break;return;case Tn.left:if(n!==Ei.vertical&&(p._preventDefaultWhenHandled(e),p._moveFocusLeft(t)))break;return;case Tn.right:if(n!==Ei.vertical&&(p._preventDefaultWhenHandled(e),p._moveFocusRight(t)))break;return;case Tn.up:if(n!==Ei.horizontal&&(p._preventDefaultWhenHandled(e),p._moveFocusUp()))break;return;case Tn.down:if(n!==Ei.horizontal&&(p._preventDefaultWhenHandled(e),p._moveFocusDown()))break;return;case Tn.pageDown:if(!s&&p._moveFocusPaging(!0))break;return;case Tn.pageUp:if(!s&&p._moveFocusPaging(!1))break;return;case Tn.tab:if(p.props.allowTabKey||p.props.handleTabKey===Ai.all||p.props.handleTabKey===Ai.inputOnly&&p._isElementInput(e.target)){var a;if(p._processingTabKey=!0,a=n!==Ei.vertical&&p._shouldWrapFocus(p._activeElement,Vs)?(Pn(t)?!e.shiftKey:e.shiftKey)?p._moveFocusLeft(t):p._moveFocusRight(t):e.shiftKey?p._moveFocusUp():p._moveFocusDown(),p._processingTabKey=!1,a)break;p.props.shouldResetActiveElementWhenTabFromZone&&(p._activeElement=null)}return;case Tn.home:if(p._isContentEditableElement(e.target)||p._isElementInput(e.target)&&!p._shouldInputLoseFocus(e.target,!1))return!1;var l=p._root.current&&p._root.current.firstChild;if(p._root.current&&l&&p.focusElement(as(p._root.current,l,!0)))break;return;case Tn.end:if(p._isContentEditableElement(e.target)||p._isElementInput(e.target)&&!p._shouldInputLoseFocus(e.target,!0))return!1;l=p._root.current&&p._root.current.lastChild;if(p._root.current&&p.focusElement(ss(p._root.current,l,!0,!0,!0)))break;return;case Tn.enter:if(p._shouldRaiseClicksOnEnter&&p._tryInvokeClickForFocusable(e.target,e))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},p._getHorizontalDistanceFromCenter=function(e,t,o){var n=p._focusAlignment.left||p._focusAlignment.x||0,r=Math.floor(o.top),i=Math.floor(t.bottom),s=Math.floor(o.bottom),t=Math.floor(t.top);return e&&i<r||!e&&s<t?n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n):p._shouldWrapFocus(p._activeElement,Ws)?Ks:Gs},vi(p),p._id=Ss("FocusZone"),p._focusAlignment={left:0,top:0},p._processingTabKey=!1;var o=null===(t=null!==(o=e.shouldRaiseClicks)&&void 0!==o?o:Qs.defaultProps.shouldRaiseClicks)||void 0===t||t;return p._shouldRaiseClicksOnEnter=null!==(t=e.shouldRaiseClicksOnEnter)&&void 0!==t?t:o,p._shouldRaiseClicksOnSpace=null!==(e=e.shouldRaiseClicksOnSpace)&&void 0!==e?e:o,p}function Js(e){return!!Xs[e]}function $s(e){Xs[e]=1}var ea=new WeakMap;function ta(e,t){var o=ea.get(e),t=o?o+t:1;return ea.set(e,t),t}function oa(o){gt.useEffect(function(){var e,t=qe(null==o?void 0:o.current);if(t&&!0!==(null===(e=t.FabricConfig)||void 0===e?void 0:e.disableFocusRects))return ta(t,1)<=1&&(t.addEventListener("mousedown",ra,!0),t.addEventListener("pointerdown",ia,!0),t.addEventListener("keydown",sa,!0)),function(){var e;t&&!0!==(null===(e=t.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&0===ta(t,-1)&&(t.removeEventListener("mousedown",ra,!0),t.removeEventListener("pointerdown",ia,!0),t.removeEventListener("keydown",sa,!0))}},[o])}var na=function(e){return oa(e.rootRef),null};function ra(e){vo(!1,e.target)}function ia(e){"mouse"!==e.pointerType&&vo(!1,e.target)}function sa(e){Js(e.which)&&vo(!0,e.target)}var aa=Fn(),la=gt.forwardRef(function(e,t){e=function(e,t){var o,n=e.as,r=e.className,i=e.disabled,s=e.href,a=e.onClick,l=e.styles,c=e.theme,u=e.underline,d=gt.useRef(null),t=Sr(d,t);o=d,gt.useImperativeHandle(e.componentRef,function(){return{focus:function(){o.current&&o.current.focus()}}},[o]),oa(d);c=aa(l,{className:r,isButton:!s,isDisabled:i,isUnderlined:u,theme:c}),s=n||(s?"a":"button");return{state:{},slots:{root:s},slotProps:{root:ht(ht({},function(e,t){t.as;var o=t.disabled,n=t.target,r=t.href,t=(t.theme,t.getStyles,t.styles,t.componentRef,t.underline,mt(t,["as","disabled","target","href","theme","getStyles","styles","componentRef","underline"]));return"string"==typeof e?"a"===e?ht({target:n,href:o?void 0:r},t):"button"===e?ht({type:"button",disabled:o},t):ht(ht({},t),{disabled:o}):ht({target:n,href:r,disabled:o},t)}(s,e)),{"aria-disabled":i,className:c.root,onClick:function(e){i?e.preventDefault():a&&a(e)},ref:t})}}}(e,t),t=e.slots,e=e.slotProps;return gt.createElement(t.root,ht({},e.root))});la.displayName="LinkBase";var ca={root:"ms-Link"},ua=In(la,function(e){var t=e.className,o=e.isButton,n=e.isDisabled,r=e.isUnderlined,i=e.theme,s=i.semanticColors,a=s.link,l=s.linkHovered,c=s.disabledText,e=s.focusBorder,s=zo(ca,i);return{root:[s.root,i.fonts.medium,{color:a,outline:"none",fontSize:"inherit",fontWeight:"inherit",textDecoration:r?"underline":"none",selectors:((e={".ms-Fabric--isFocusVisible &:focus":{boxShadow:"0 0 0 1px "+e+" inset",outline:"1px auto "+e,selectors:((e={})[Yt]={outline:"1px solid WindowText"},e)}})[Yt]={borderBottom:"none"},e)},o&&{background:"none",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"inline",margin:0,overflow:"inherit",padding:0,textAlign:"left",textOverflow:"inherit",userSelect:"text",borderBottom:"1px solid transparent",selectors:((e={})[Yt]={color:"LinkText",forcedColorAdjust:"none"},e)},!o&&{selectors:((o={})[Yt]={MsHighContrastAdjust:"auto",forcedColorAdjust:"auto"},o)},n&&["is-disabled",{color:c,cursor:"default"},{selectors:{"&:link, &:visited":{pointerEvents:"none"}}}],!n&&{selectors:{"&:active, &:hover, &:active:hover":{color:l,textDecoration:"underline",selectors:((l={})[Yt]={color:"LinkText"},l)},"&:focus":{color:a,selectors:((a={})[Yt]={color:"LinkText"},a)}}},s.root,t]}},void 0,{scope:"Link"});function da(e,t){for(var o in e)if(e.hasOwnProperty(o)&&(!t.hasOwnProperty(o)||t[o]!==e[o]))return!1;for(var o in t)if(t.hasOwnProperty(o)&&!e.hasOwnProperty(o))return!1;return!0}function pa(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];return ha.apply(this,[null,e].concat(t))}function ha(e,t){for(var o=[],n=2;n<arguments.length;n++)o[n-2]=arguments[n];t=t||{};for(var r=0,i=o;r<i.length;r++){var s=i[r];if(s)for(var a in s)!s.hasOwnProperty(a)||e&&!e(a)||(t[a]=s[a])}return t}function ma(t,o){return Object.keys(t).map(function(e){if(String(Number(e))!==e)return o(e,t[e])}).filter(function(e){return!!e})}function ga(o){return Object.keys(o).reduce(function(e,t){return e.push(o[t]),e},[])}function fa(e,t){var o,n={};for(o in e)-1===t.indexOf(o)&&e.hasOwnProperty(o)&&(n[o]=e[o]);return n}var va=(ba.raise=function(e,t,o,n){var r,i;if(ba._isElement(e))"undefined"!=typeof document&&document.createEvent?((i=document.createEvent("HTMLEvents")).initEvent(t,n||!1,!0),pa(i,o),r=e.dispatchEvent(i)):"undefined"!=typeof document&&document.createEventObject&&(i=document.createEventObject(o),e.fireEvent("on"+t,i));else for(;e&&!1!==r;){var s=e.__events__,a=s?s[t]:null;if(a)for(var l in a)if(a.hasOwnProperty(l))for(var c=a[l],u=0;!1!==r&&u<c.length;u++){var d=c[u];d.objectCallback&&(r=d.objectCallback.call(d.parent,o))}e=n?e.parent:null}return r},ba.isObserved=function(e,t){e=e&&e.__events__;return!!e&&!!e[t]},ba.isDeclared=function(e,t){e=e&&e.__declaredEvents;return!!e&&!!e[t]},ba.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},ba._isElement=function(e){return!!e&&(!!e.addEventListener||"undefined"!=typeof HTMLElement&&e instanceof HTMLElement)},ba.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},ba.prototype.onAll=function(e,t,o){for(var n in t)t.hasOwnProperty(n)&&this.on(e,n,t[n],o)},ba.prototype.on=function(e,t,r,o){var i=this;if(-1<t.indexOf(","))for(var n=t.split(/[ ,]+/),s=0;s<n.length;s++)this.on(e,n[s],r,o);else{var a,l=this._parent,c={target:e,eventName:t,parent:l,callback:r,options:o};(n=e.__events__=e.__events__||{})[t]=n[t]||{count:0},n[t][this._id]=n[t][this._id]||[],n[t][this._id].push(c),n[t].count++,ba._isElement(e)?(a=function(){for(var e,t,o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(!i._isDisposed){try{!1===(e=r.apply(l,o))&&o[0]&&((t=o[0]).preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)}catch(t){}return e}},c.elementCallback=a,e.addEventListener?e.addEventListener(t,a,o):e.attachEvent&&e.attachEvent("on"+t,a)):c.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed)return r.apply(l,e)},this._eventRecords.push(c)}},ba.prototype.off=function(e,t,o,n){for(var r=0;r<this._eventRecords.length;r++){var i,s,a,l=this._eventRecords[r];e&&e!==l.target||t&&t!==l.eventName||o&&o!==l.callback||"boolean"==typeof n&&n!==l.options||((a=(s=(i=l.target.__events__)[l.eventName])?s[this._id]:null)&&(1!==a.length&&o?(s.count--,a.splice(a.indexOf(l),1)):(s.count-=a.length,delete i[l.eventName][this._id]),s.count||delete i[l.eventName]),l.elementCallback&&(l.target.removeEventListener?l.target.removeEventListener(l.eventName,l.elementCallback,l.options):l.target.detachEvent&&l.target.detachEvent("on"+l.eventName,l.elementCallback)),this._eventRecords.splice(r--,1))}},ba.prototype.raise=function(e,t,o){return ba.raise(this._parent,e,t,o)},ba.prototype.declare=function(e){var t=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof e)t[e]=!0;else for(var o=0;o<e.length;o++)t[e[o]]=!0},ba._uniqueId=0,ba);function ba(e){this._id=ba._uniqueId++,this._parent=e,this._eventRecords=[]}function ya(e,t,o,n,r){}function Ca(e,t,o){}function _a(e,t,o){}var Sa,xa=(l(ka,Sa=gt.Component),ka.prototype.componentDidUpdate=function(e,t){this._updateComponentRef(e,this.props)},ka.prototype.componentDidMount=function(){this._setComponentRef(this.props.componentRef,this)},ka.prototype.componentWillUnmount=function(){if(this._setComponentRef(this.props.componentRef,null),this.__disposables){for(var e=0,t=this._disposables.length;e<t;e++){var o=this.__disposables[e];o.dispose&&o.dispose()}this.__disposables=null}},Object.defineProperty(ka.prototype,"className",{get:function(){var e;return this.__className||(e=/function (.{1,})\(/.exec(this.constructor.toString()),this.__className=e&&1<e.length?e[1]:""),this.__className},enumerable:!1,configurable:!0}),Object.defineProperty(ka.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!1,configurable:!0}),Object.defineProperty(ka.prototype,"_async",{get:function(){return this.__async||(this.__async=new xi(this),this._disposables.push(this.__async)),this.__async},enumerable:!1,configurable:!0}),Object.defineProperty(ka.prototype,"_events",{get:function(){return this.__events||(this.__events=new va(this),this._disposables.push(this.__events)),this.__events},enumerable:!1,configurable:!0}),ka.prototype._resolveRef=function(t){var o=this;return this.__resolves||(this.__resolves={}),this.__resolves[t]||(this.__resolves[t]=function(e){return o[t]=e}),this.__resolves[t]},ka.prototype._updateComponentRef=function(e,t){void 0===t&&(t={}),e&&t&&e.componentRef!==t.componentRef&&(this._setComponentRef(e.componentRef,null),this._setComponentRef(t.componentRef,this))},ka.prototype._warnDeprecations=function(e){this.className,this.props},ka.prototype._warnMutuallyExclusive=function(e){this.className,this.props},ka.prototype._warnConditionallyRequiredProps=function(e,t,o){this.className,this.props},ka.prototype._setComponentRef=function(e,t){!this._skipComponentRefResolution&&e&&("function"==typeof e&&e(t),"object"==typeof e&&(e.current=t))},ka);function ka(e,t){t=Sa.call(this,e,t)||this;return function(e,t,o){for(var n=0,r=o.length;n<r;n++)!function(e,t,o){var n=e[o],r=t[o];(n||r)&&(e[o]=function(){for(var e,t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r&&(e=r.apply(this,t)),e=n!==r?n.apply(this,t):e})}(e,t,o[n])}(t,ka.prototype,["componentDidMount","shouldComponentUpdate","getSnapshotBeforeUpdate","render","componentDidUpdate","componentWillUnmount"]),t}function wa(){return null}function Ia(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=e.filter(function(e){return e}).join(" ").trim();return""===o?void 0:o}var Da,Ta,Ea=function(e){var t=e.className,o=e.imageProps,n=ur(e,Wn,["aria-label","aria-labelledby","title","aria-describedby"]),r=o.alt||e["aria-label"],i=r||e["aria-labelledby"]||e.title||o["aria-label"]||o["aria-labelledby"]||o.title,e={"aria-labelledby":e["aria-labelledby"],"aria-describedby":e["aria-describedby"],title:e.title};return gt.createElement("div",ht({},i?{}:{"aria-hidden":!0},n,{className:Pr(Er,Tr.root,Tr.image,t)}),gt.createElement(Dr,ht({},e,o,{alt:i?r:""})))},Pa={topLeftEdge:0,topCenter:1,topRightEdge:2,topAutoEdge:3,bottomLeftEdge:4,bottomCenter:5,bottomRightEdge:6,bottomAutoEdge:7,leftTopEdge:8,leftCenter:9,leftBottomEdge:10,rightTopEdge:11,rightCenter:12,rightBottomEdge:13},Ra=Lo(function(r){return Lo(function(o){var n=Lo(function(t){return function(e){return o(e,t)}});return function(e,t){return r(e,t?n(t):o)}})});function Ma(e,t){return Ra(e)(t)}function Na(e){return void 0!==Ta&&!e||(e=null===(e=null==(e=qe())?void 0:e.navigator)||void 0===e?void 0:e.userAgent,Ta=!!e&&-1!==e.indexOf("Macintosh")),!!Ta}(ke=Da=Da||{})[ke.Normal=0]="Normal",ke[ke.Divider=1]="Divider",ke[ke.Header=2]="Header",ke[ke.Section=3]="Section";var Ba,Fa,Aa=function(){return!!(window&&window.navigator&&window.navigator.userAgent)&&/iPad|iPhone|iPod/i.test(window.navigator.userAgent)};function La(e){return e.canCheck?!(!e.isChecked&&!e.checked):"boolean"==typeof e.isChecked?e.isChecked:"boolean"==typeof e.checked?e.checked:null}function Ha(e){return!(!e.subMenuProps&&!e.items)}function Oa(e){return!(!e.isDisabled&&!e.disabled)}function za(e){return null!==La(e)?"menuitemcheckbox":"menuitem"}function Wa(e,t,o,n){return e.addEventListener(t,o,n),function(){return e.removeEventListener(t,o,n)}}(W=Ba=Ba||{})[W.top=1]="top",W[W.bottom=-1]="bottom",W[W.left=2]="left",W[W.right=-2]="right",(K=Fa=Fa||{})[K.top=0]="top",K[K.bottom=1]="bottom",K[K.start=2]="start",K[K.end=3]="end";var Va=(Object.defineProperty(Ka.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(Ka.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),Ka.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},Ka);function Ka(e,t,o,n){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),this.top=o=void 0===o?0:o,this.bottom=n,this.left=e,this.right=t}function Ga(e,t,o){return{targetEdge:e,alignmentEdge:t,isAuto:o}}var Ua=((G={})[Pa.topLeftEdge]=Ga(Ba.top,Ba.left),G[Pa.topCenter]=Ga(Ba.top),G[Pa.topRightEdge]=Ga(Ba.top,Ba.right),G[Pa.topAutoEdge]=Ga(Ba.top,void 0,!0),G[Pa.bottomLeftEdge]=Ga(Ba.bottom,Ba.left),G[Pa.bottomCenter]=Ga(Ba.bottom),G[Pa.bottomRightEdge]=Ga(Ba.bottom,Ba.right),G[Pa.bottomAutoEdge]=Ga(Ba.bottom,void 0,!0),G[Pa.leftTopEdge]=Ga(Ba.left,Ba.top),G[Pa.leftCenter]=Ga(Ba.left),G[Pa.leftBottomEdge]=Ga(Ba.left,Ba.bottom),G[Pa.rightTopEdge]=Ga(Ba.right,Ba.top),G[Pa.rightCenter]=Ga(Ba.right),G[Pa.rightBottomEdge]=Ga(Ba.right,Ba.bottom),G);function ja(e,t){return!(e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}function qa(e,t){var o=[];return e.top<t.top&&o.push(Ba.top),e.bottom>t.bottom&&o.push(Ba.bottom),e.left<t.left&&o.push(Ba.left),e.right>t.right&&o.push(Ba.right),o}function Ya(e,t){return e[Ba[t]]}function Za(e,t,o){return e[Ba[t]]=o,e}function Xa(e,t){t=sl(t);return(Ya(e,t.positiveEdge)+Ya(e,t.negativeEdge))/2}function Qa(e,t){return 0<e?t:-1*t}function Ja(e,t){return Qa(e,Ya(t,e))}function $a(e,t,o){return Qa(o,Ya(e,o)-Ya(t,o))}function el(e,t,o,n){void 0===n&&(n=!0);var r=Ya(e,t)-o,o=Za(e,t,o);return o=n?Za(e,-1*t,Ya(e,-1*t)-r):o}function tl(e,t,o,n){return el(e,o,Ya(t,o)+Qa(o,n=void 0===n?0:n))}function ol(e,t,o){return Ja(o,e)>Ja(o,t)}function nl(e,t,o,n){for(var r=0,i=e;r<i.length;r++){var s=i[r],a=void 0;n&&n===-1*s?(a=el(t.elementRectangle,s,Ya(o,s),!1),t.forcedInBounds=!0):ol(a=tl(t.elementRectangle,o,s),o,-1*s)||(a=el(a,-1*s,Ya(o,-1*s),!1),t.forcedInBounds=!0),t.elementRectangle=a}return t}function rl(e,t,o){var n=sl(t).positiveEdge;return el(e,n,o-(Xa(e,t)-Ya(e,n)))}function il(e,t,o,n,r){void 0===n&&(n=0);var i=new Va(e.left,e.right,e.top,e.bottom),s=o.alignmentEdge,e=o.targetEdge,o=r?e:-1*e,i=r?tl(i,t,e,n):(n=Qa(-1*e,void 0===n?0:n),el(i,-1*e,Ya(t,e)+n));return s?tl(i,t,s):rl(i,o,Xa(t,e))}function sl(e){return e===Ba.top||e===Ba.bottom?{positiveEdge:Ba.left,negativeEdge:Ba.right}:{positiveEdge:Ba.top,negativeEdge:Ba.bottom}}function al(e,t,o){return o&&Math.abs($a(e,o,t))>Math.abs($a(e,o,-1*t))?-1*t:t}function ll(e,t,o){var n=Xa(t,e),t=Xa(o,e),o=sl(e),e=o.positiveEdge,o=o.negativeEdge;return n<=t?e:o}function cl(e,t,o,u,n,r,i){var d=il(e,t,u,n,i);return ja(d,o)?{elementRectangle:d,targetEdge:u.targetEdge,alignmentEdge:u.alignmentEdge}:function(e,t,o,n,r){void 0===o&&(o=0);var i=u.alignmentEdge,s=u.alignTargetEdge,a={elementRectangle:d,targetEdge:u.targetEdge,alignmentEdge:i};n||r||(a=function(e,t,o,n,r){void 0===r&&(r=0);var i=[Ba.left,Ba.right,Ba.bottom,Ba.top];Pn()&&(i[0]*=-1,i[1]*=-1);for(var s,a=e,l=n.targetEdge,c=n.alignmentEdge,u=l,d=c,p=0;p<4;p++){if(ol(a,o,l))return{elementRectangle:a,targetEdge:l,alignmentEdge:c};var h=function(e,t){for(var o=0,n=0,r=qa(e,t);n<r.length;n++){var i=r[n];o+=Math.pow($a(e,t,i),2)}return o}(a,o);(!s||h<s)&&(s=h,u=l,d=c),i.splice(i.indexOf(l),1),0<i.length&&(-1<i.indexOf(-1*l)?l*=-1:(c=l,l=i.slice(-1)[0]),a=il(e,t,{targetEdge:l,alignmentEdge:c},r))}return{elementRectangle:a=il(e,t,{targetEdge:u,alignmentEdge:d},r),targetEdge:u,alignmentEdge:d}}(d,e,t,u,o));var l=qa(a.elementRectangle,t),c=n?-a.targetEdge:void 0;if(0<l.length)if(s)if(a.alignmentEdge&&-1<l.indexOf(-1*a.alignmentEdge)){s=(i=o,s=(n=a).alignmentEdge,o=n.targetEdge,s*=-1,{elementRectangle:il(n.elementRectangle,e,{targetEdge:o,alignmentEdge:s},i,r),targetEdge:o,alignmentEdge:s});if(ja(s.elementRectangle,t))return s;a=nl(qa(s.elementRectangle,t),a,t,c)}else a=nl(l,a,t,c);else a=nl(l,a,t,c);return a}(t,o,n,r,i)}function ul(e){e=e.getBoundingClientRect();return new Va(e.left,e.right,e.top,e.bottom)}function dl(e){return new Va(e.left,e.right,e.top,e.bottom)}function pl(e,t,o,n){var r,i,s=e.gapSpace||0,a=function(e,t){var o,n,r,i;if(t){if(!ja(o=t.preventDefault?new Va(t.clientX,t.clientX,t.clientY,t.clientY):t.getBoundingClientRect?ul(t):(n=t.left||t.x,r=t.top||t.y,i=t.right||n,t=t.bottom||r,new Va(n,i,r,t)),e))for(var s=0,a=qa(o,e);s<a.length;s++){var l=a[s];o[Ba[l]]=e[Ba[l]]}}else o=new Va(0,0,0,0);return o}(o,e.target),r=(r=function(e,t){if(void 0===e&&(e=Pa.bottomAutoEdge),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};e=ht({},Ua[e]);return Pn()?(e.alignmentEdge&&e.alignmentEdge%2==0&&(e.alignmentEdge=-1*e.alignmentEdge),void 0!==t?Ua[t]:e):e}(e.directionalHint,e.directionalHintForRTL),e.coverTarget,i=e.alignTargetEdge,r.isAuto&&(r.alignmentEdge=ll(r.targetEdge,a,o)),r.alignTargetEdge=i,r),e=cl(ul(t),a,o,r,s,e.directionalHintFixed,e.coverTarget);return ht(ht({},e),{targetRectangle:a})}function hl(e,t,o,n,r){return{elementPosition:(i=e.elementRectangle,s=t,a=e.targetEdge,l=o,c=e.alignmentEdge,t=n,o=r,n=e.forcedInBounds,r={},s=ul(s),t=t?a:-1*a,a=c||sl(a).positiveEdge,o&&(o=-1*a,void 0===l||Ya(i,o)!==Ya(l,o))||(a=al(i,a,l)),r[Ba[t]]=$a(i,s,t),r[Ba[a]]=$a(i,s,a),n&&(r[Ba[-1*t]]=$a(i,s,-1*t),r[Ba[-1*a]]=$a(i,s,-1*a)),r),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge};var i,s,a,l,c}function ml(e,t,o,n,r){var i=e.isBeakVisible&&e.beakWidth||0,s=Math.sqrt(i*i*2)/2+(e.gapSpace||0),a=e;a.gapSpace=s;var l,c,u,d=e.bounds?dl(e.bounds):new Va(0,window.innerWidth-Ms(),0,window.innerHeight),p=pl(a,o,d,n),u=(c=i,s=(u=l=p).targetRectangle,a=sl(u.targetEdge),o=a.positiveEdge,n=a.negativeEdge,i=Xa(s,u.targetEdge),a=new Va(c/2,u.elementRectangle.width-c/2,c/2,u.elementRectangle.height-c/2),ol(s=rl(s=el(s=new Va(0,c,0,c),-1*u.targetEdge,-c/2),-1*u.targetEdge,i-Ja(o,u.elementRectangle)),a,o)?ol(s,a,n)||(s=tl(s,a,n)):s=tl(s,a,o),i=s,u=d,n=-1*l.targetEdge,a=new Va(0,l.elementRectangle.width,0,l.elementRectangle.height),o={},s=al(l.elementRectangle,l.alignmentEdge||sl(n).positiveEdge,u),u=$a(l.elementRectangle,l.targetRectangle,n)>Math.abs(Ya(i,n)),o[Ba[n]]=Ya(i,n),o[Ba[s]]=$a(i,a,s),{elementPosition:ht({},o),closestEdge:ll(l.targetEdge,i,a),targetEdge:n,hideBeak:!u});return ht(ht({},hl(p,t,d,e.coverTarget,r)),{beakPosition:u})}function gl(e,t,o,n){return r=t,t=o,o=n,e=(n=e).bounds?dl(n.bounds):new Va(0,window.innerWidth-Ms(),0,window.innerHeight),hl(pl(n,t,e,o),r,e,n.coverTarget);var r}function fl(e,t,o,n){return ml(e,t,o,n)}function vl(e,t,o,n){return ml(e,t,o,n,!0)}function bl(e,t,o,n,r){void 0===o&&(o=0);var i=e,s=e,a=e,l=n?dl(n):new Va(0,window.innerWidth-Ms(),0,window.innerHeight),c=a.left||a.x,e=a.top||a.y,n=a.right||c,a=a.bottom||e;return s=i.stopPropagation?new Va(i.clientX,i.clientX,i.clientY,i.clientY):void 0!==c&&void 0!==e?new Va(c,n,e,a):ul(s),o=o,t=Ua[t],r=r?-1*t.targetEdge:t.targetEdge,0<(o=r===Ba.top?Ya(s,t.targetEdge)-l.top-o:r===Ba.bottom?l.bottom-Ya(s,t.targetEdge)-o:l.bottom-s.top-o)?o:l.height}function yl(e){return-1*e}function Cl(e,t){return function(e,t){var o=void 0;if(void 0===(o=t.getWindowSegments?t.getWindowSegments():o)||o.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var n=0,r=0;null!==e&&e.getBoundingClientRect?(n=((t=e.getBoundingClientRect()).left+t.right)/2,r=(t.top+t.bottom)/2):null!==e&&(n=e.left||e.x,r=e.top||e.y);for(var i={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,a=o;s<a.length;s++){var l=a[s];n&&l.left<=n&&l.right>=n&&r&&l.top<=r&&l.bottom>=r&&(i={top:l.top,left:l.left,right:l.right,bottom:l.bottom,width:l.width,height:l.height})}return i}(e,t)}var _l=["TEMPLATE","STYLE","SCRIPT"];function Sl(e){var t=ft(e);if(!t)return function(){};for(var o=[];e!==t.body&&e.parentElement;){for(var n=0,r=e.parentElement.children;n<r.length;n++){var i=r[n],s=i.getAttribute("aria-hidden");i!==e&&"true"!==(null==s?void 0:s.toLowerCase())&&-1===_l.indexOf(i.tagName)&&o.push([i,s])}e=e.parentElement}return o.forEach(function(e){e[0].setAttribute("aria-hidden","true")}),function(){o.forEach(function(e){var t=e[0],e=e[1];e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),o=[]}}function xl(e){var t=gt.useRef();return void 0===t.current&&(t.current={value:"function"==typeof e?e():e}),t.current.value}function kl(){var e=xl(function(){return new xi});return gt.useEffect(function(){return function(){return e.dispose()}},[e]),e}function wl(t,o,e,n){var r=gt.useRef(e);r.current=e,gt.useEffect(function(){var e=t&&"current"in t?t.current:t;if(e)return Wa(e,o,function(e){return r.current(e)},n)},[t,o,n])}var Il=gt.createContext({window:"object"==typeof window?window:void 0}),Dl=function(){return gt.useContext(Il).window},Tl=function(){var e;return null===(e=gt.useContext(Il).window)||void 0===e?void 0:e.document},El=function(e){return gt.createElement(Il.Provider,{value:e},e.children)};function Pl(e){var t=e.originalElement,e=e.containsFocus;t&&e&&t!==qe()&&setTimeout(function(){var e;null===(e=t.focus)||void 0===e||e.call(t)},0)}var Rl=gt.forwardRef(function(e,t){var o,n,r,i,s,a,l=Hn({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),c=gt.useRef(),u=Sr(c,t);_=l,s=c,a="true"===String(_["aria-modal"]).toLowerCase()&&_.enableAriaHiddenSiblings,gt.useEffect(function(){if(a&&s.current)return Sl(s.current)},[s,a]),o=c,m=l.onRestoreFocus,n=void 0===m?Pl:m,r=gt.useRef(),i=gt.useRef(!1),gt.useEffect(function(){return r.current=ft().activeElement,hs(o.current)&&(i.current=!0),function(){var e;null==n||n({originalElement:r.current,containsFocus:i.current,documentContainsFocus:(null===(e=ft())||void 0===e?void 0:e.hasFocus())||!1}),r.current=void 0}},[]),wl(o,"focus",gt.useCallback(function(){i.current=!0},[]),!0),wl(o,"blur",gt.useCallback(function(e){o.current&&e.relatedTarget&&!o.current.contains(e.relatedTarget)&&(i.current=!1)},[]),!0);var d,p,h,m,g,f,v=l.role,b=l.className,y=l.ariaLabel,C=l.ariaLabelledBy,e=l.ariaDescribedBy,t=l.style,_=l.children,S=l.onDismiss,c=(d=l,p=c,h=kl(),m=gt.useState(!1),g=m[0],f=m[1],gt.useEffect(function(){return h.requestAnimationFrame(function(){var e,t,o;d.style&&d.style.overflowY||(e=!1,p&&p.current&&null!==(o=p.current)&&void 0!==o&&o.firstElementChild&&(t=p.current.clientHeight,o=p.current.firstElementChild.clientHeight,0<t&&t<o&&(e=1<o-t)),g!==e&&f(e))}),function(){return h.dispose()}}),g),m=gt.useCallback(function(e){e.which===Tn.escape&&S&&(S(e),e.preventDefault(),e.stopPropagation())},[S]);return wl(Dl(),"keydown",m),gt.createElement("div",ht({ref:u},ur(l,cr),{className:b,role:v,"aria-label":y,"aria-labelledby":C,"aria-describedby":e,onKeyDown:m,style:ht({overflowY:c?"scroll":void 0,outline:"none"},t)}),_)});function Ml(e,t){var o=gt.useRef(),n=gt.useRef(null),r=Dl();return e&&e===o.current&&"string"!=typeof e||(t=null==t?void 0:t.current,e&&("string"==typeof e?(t=ft(t),n.current=t?t.querySelector(e):null):n.current=!("stopPropagation"in e||"getBoundingClientRect"in e)&&"current"in e?e.current:e),o.current=e),[n,r]}Rl.displayName="Popup";var Nl=((Y={})[Ba.top]=Le.slideUpIn10,Y[Ba.bottom]=Le.slideDownIn10,Y[Ba.left]=Le.slideLeftIn10,Y[Ba.right]=Le.slideRightIn10,Y),Bl={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Fl=["role","aria-roledescription"],Al={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:Pa.bottomAutoEdge},Ll=Fn({disableCaching:!0}),Hl=gt.memo(gt.forwardRef(function(e,t){var s,a,l,c,u,d,p,h,m,g,f,v,b,y,o,n,r,i,C,_,S,x,k,w,I,D,T,E,P,R,M,N,B,F,A,L,H,O,z,W,V,K,G,U,j,q,Y,Z,X=Hn(Al,e),Q=X.styles,J=X.style,$=X.ariaLabel,ee=X.ariaDescribedBy,te=X.ariaLabelledBy,oe=X.className,ne=X.isBeakVisible,re=X.children,ie=X.beakWidth,se=X.calloutWidth,ae=X.calloutMaxWidth,le=X.calloutMinWidth,ce=X.doNotLayer,ue=X.finalHeight,de=X.hideOverflow,pe=void 0===de?!!ue:de,he=X.backgroundColor,me=X.calloutMaxHeight,ge=X.onScroll,fe=X.shouldRestoreFocus,ve=void 0===fe||fe,be=X.target,ye=X.hidden,Ce=X.onLayerMounted,_e=gt.useRef(null),Se=gt.useState(null),xe=Se[0],ke=Se[1],we=gt.useCallback(function(e){ke(e)},[]),Ie=Sr(_e,t),De=Ml(X.target,{current:xe}),Te=De[0],Ee=De[1],de=(L=Te,H=Ee,O=X.bounds,e=X.minPagePadding,z=void 0===e?Al.minPagePadding:e,W=X.target,ue=gt.useState(!1),V=ue[0],K=ue[1],G=gt.useRef(),e=gt.useCallback(function(){var e;return G.current&&!V||(!(e="function"==typeof O?H?O(W,H):void 0:O)&&H&&(e={top:(e=Cl(L.current,H)).top+z,left:e.left+z,right:e.right-z,bottom:e.bottom-z,width:e.width-2*z,height:e.height-2*z}),G.current=e,V&&K(!1)),G.current},[O,z,W,L,H,V]),ue=kl(),wl(H,"resize",ue.debounce(function(){K(!0)},500,{leading:!0})),e),Se=(S=X,x=_e,k=xe,w=Te,I=de,fe=gt.useState(),D=fe[0],T=fe[1],E=gt.useRef(0),P=gt.useRef(),R=kl(),M=S.hidden,N=S.target,B=S.finalHeight,F=S.calloutMaxHeight,A=S.onPositioned,fe=S.directionalHint,gt.useEffect(function(){if(!M){var e=R.requestAnimationFrame(function(){var e,t,o;x.current&&k&&(o=ht(ht({},S),{target:w.current,bounds:I()}),(e=k.cloneNode(!0)).style.maxHeight=F?""+F:"",e.style.visibility="hidden",null===(t=k.parentElement)||void 0===t||t.appendChild(e),t=P.current===N?D:void 0,o=(B?vl:fl)(o,x.current,e,t),null===(t=k.parentElement)||void 0===t||t.removeChild(e),!D&&o||D&&o&&(!Ol((t=D).elementPosition,(e=o).elementPosition)||!Ol(t.beakPosition.elementPosition,e.beakPosition.elementPosition))&&E.current<5?(E.current++,T(o)):0<E.current&&(E.current=0,null==A||A(D)))},k);return P.current=N,function(){R.cancelAnimationFrame(e),P.current=void 0}}T(void 0),E.current=0},[M,fe,R,k,F,x,w,B,I,A,D,S,N]),D),t=(o=de,t=Se,n=X.calloutMaxHeight,De=X.finalHeight,ue=X.directionalHint,e=X.directionalHintFixed,r=X.hidden,fe=gt.useState(),de=fe[0],i=fe[1],fe=null!==(fe=null==t?void 0:t.elementPosition)&&void 0!==fe?fe:{},C=fe.top,_=fe.bottom,gt.useEffect(function(){var e=null!==(t=o())&&void 0!==t?t:{},t=e.top,e=e.bottom;n||r?i(n||void 0):"number"==typeof C&&e?i(e-C):"number"==typeof _&&"number"==typeof t&&e&&i(e-t-_)},[_,n,De,ue,e,o,r,t,C]),de),Te=(de=Se,s=_e,a=Te,l=Ee,c=X.hidden,u=X.onDismiss,d=X.preventDismissOnScroll,p=X.preventDismissOnResize,h=X.preventDismissOnLostFocus,m=X.dismissOnTargetClick,g=X.shouldDismissOnWindowFocus,f=X.preventDismissOnEvent,v=gt.useRef(!1),b=kl(),_e=xl([function(){v.current=!0},function(){v.current=!1}]),y=!!de,gt.useEffect(function(){function o(e){y&&!d&&t(e)}function n(e){p||f&&f(e)||null==u||u(e)}function r(e){h||t(e)}function t(e){var t=e.composedPath?e.composedPath():[],o=0<t.length?t[0]:e.target;(t=s.current&&!es(s.current,o))&&v.current?v.current=!1:(!a.current&&t||e.target!==l&&t&&(!a.current||"stopPropagation"in a.current||m||o!==a.current&&!es(a.current,o)))&&(f&&f(e)||null==u||u(e))}function i(e){g&&((!f||f(e))&&(f||h)||null!=l&&l.document.hasFocus()||null!==e.relatedTarget||null==u||u(e))}var e=new Promise(function(t){b.setTimeout(function(){var e;!c&&l&&(e=[Wa(l,"scroll",o,!0),Wa(l,"resize",n,!0),Wa(l.document.documentElement,"focus",r,!0),Wa(l.document.documentElement,"click",r,!0),Wa(l,"blur",i,!0)],t(function(){e.forEach(function(e){return e()})}))},0)});return function(){e.then(function(e){return e()})}},[c,b,s,a,l,u,g,m,h,p,d,y,f]),_e),de=Te[0],_e=Te[1],Te=(null==Se?void 0:Se.elementPosition.top)&&(null==Se?void 0:Se.elementPosition.bottom),t=ht(ht({},null==Se?void 0:Se.elementPosition),{maxHeight:t});if(Te&&(t.bottom=void 0),Te=Se,U=xe,j=X.hidden,q=X.setInitialFocus,Y=kl(),Z=!!Te,gt.useEffect(function(){if(!j&&q&&Z&&U){var e=Y.requestAnimationFrame(function(){return is(U)},U);return function(){return Y.cancelAnimationFrame(e)}}},[j,Z,Y,U,q]),gt.useEffect(function(){ye||null==Ce||Ce()},[ye]),!Ee)return null;be=ne&&!!be,ce=Ll(Q,{theme:X.theme,className:oe,overflowYHidden:pe,calloutWidth:se,positions:Se,beakWidth:ie,backgroundColor:he,calloutMaxWidth:ae,calloutMinWidth:le,doNotLayer:ce}),J=ht(ht({maxHeight:me||"100%"},J),pe&&{overflowY:"hidden"}),pe=X.hidden?{visibility:"hidden"}:void 0;return gt.createElement("div",{ref:Ie,className:ce.container,style:pe},gt.createElement("div",ht({},ur(X,cr,Fl),{className:Pr(ce.root,Se&&Se.targetEdge&&Nl[Se.targetEdge]),style:Se?ht({},t):Bl,tabIndex:-1,ref:we}),be&>.createElement("div",{className:ce.beak,style:((we=ht(ht({},null===(Se=null==(we=Se)?void 0:we.beakPosition)||void 0===Se?void 0:Se.elementPosition),{display:null!==(we=null==we?void 0:we.beakPosition)&&void 0!==we&&we.hideBeak?"none":void 0})).top||we.bottom||we.left||we.right||(we.left=0,we.top=0),we)}),be&>.createElement("div",{className:ce.beakCurtain}),gt.createElement(Rl,{role:X.role,"aria-roledescription":X["aria-roledescription"],ariaDescribedBy:ee,ariaLabel:$,ariaLabelledBy:te,className:ce.calloutMain,onDismiss:X.onDismiss,onMouseDown:de,onMouseUp:_e,onRestoreFocus:X.onRestoreFocus,onScroll:ge,shouldRestoreFocus:ve,style:J},re)))}),function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||da(e,t)});function Ol(e,t){for(var o in t)if(t.hasOwnProperty(o)){var n=e[o],o=t[o];if(void 0===n||void 0===o)return;if(n.toFixed(2)!==o.toFixed(2))return}return 1}Hl.displayName="CalloutContentBase";var zl={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},Wl=In(Hl,function(e){var t=e.theme,o=e.className,n=e.overflowYHidden,r=e.calloutWidth,i=e.beakWidth,s=e.backgroundColor,a=e.calloutMaxWidth,l=e.calloutMinWidth,c=e.doNotLayer,u=zo(zl,t),d=t.semanticColors,e=t.effects;return{container:[u.container,{position:"relative"}],root:[u.root,t.fonts.medium,{position:"absolute",display:"flex",zIndex:c?mo.Layer:void 0,boxSizing:"border-box",borderRadius:e.roundedCorner2,boxShadow:e.elevation16,selectors:((c={})[Yt]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},c)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},o,!!r&&{width:r},!!a&&{maxWidth:a},!!l&&{minWidth:l}],beak:[u.beak,{position:"absolute",backgroundColor:d.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},{height:i,width:i},s&&{backgroundColor:s}],beakCurtain:[u.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:d.menuBackground,borderRadius:e.roundedCorner2}],calloutMain:[u.calloutMain,{backgroundColor:d.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:e.roundedCorner2},n&&{overflowY:"hidden"},s&&{backgroundColor:s}]}},void 0,{scope:"CalloutContent"}),Vl=vT(196);function Kl(e,t){t=(t||{}).customizations,t=void 0===t?{settings:{},scopedSettings:{}}:t;return{customizations:{settings:Wo(t.settings,e.settings),scopedSettings:Vo(t.scopedSettings,e.scopedSettings),inCustomizerContext:!0}}}var Gl,Ul=(l(Zl,Gl=gt.Component),Zl.prototype.componentDidMount=function(){yt.observe(this._onCustomizationChange)},Zl.prototype.componentWillUnmount=function(){yt.unobserve(this._onCustomizationChange)},Zl.prototype.render=function(){var t=this,o=this.props.contextTransform;return gt.createElement(xn.Consumer,null,function(e){e=Kl(t.props,e);return o&&(e=o(e)),gt.createElement(xn.Provider,{value:e},t.props.children)})},Zl),jl=Fn(),ql=Ao(function(e,t){return At(ht(ht({},e),{rtl:t}))}),Yl=gt.forwardRef(function(e,t){var o,n,r,i,s,a=e.className,l=e.theme,c=e.applyTheme,u=e.applyThemeToBody,d=e.styles,p=jl(d,{theme:l,applyTheme:c,className:a}),h=gt.useRef(null);return r=u,i=h,s=p.bodyThemed,gt.useEffect(function(){if(r){var e=ft(i.current);if(e)return e.body.classList.add(s),function(){e.body.classList.remove(s)}}},[s,r,i]),oa(h),gt.createElement(gt.Fragment,null,(o=e,n=h,d=t,l=p.root,c=o.as,a=void 0===c?"div":c,u=o.dir,e=o.theme,h=ur(o,cr,["dir"]),t=o.theme,p=o.dir,c=Pn(t)?"rtl":"ltr",o=Pn()?"rtl":"ltr",t={rootDir:(t=p||c)!==c||t!==o?t:p,needsTheme:t!==c},c=t.needsTheme,d=gt.createElement(a,ht({dir:t.rootDir},h,{className:l,ref:Sr(n,d)})),d=c?gt.createElement(Ul,{settings:{theme:ql(e,"rtl"===u)}},d):d))});function Zl(){var e=null!==Gl&&Gl.apply(this,arguments)||this;return e._onCustomizationChange=function(){return e.forceUpdate()},e}Yl.displayName="FabricBase";var Xl={fontFamily:"inherit"},Ql={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Jl=In(Yl,function(e){var t=e.theme,o=e.className,e=e.applyTheme;return{root:[zo(Ql,t).root,t.fonts.medium,{color:t.palette.neutralPrimary,selectors:{"& button":Xl,"& input":Xl,"& textarea":Xl}},e&&{color:t.semanticColors.bodyText,backgroundColor:t.semanticColors.bodyBackground},o],bodyThemed:[{backgroundColor:t.semanticColors.bodyBackground}]}},void 0,{scope:"Fabric"});function $l(e,t){var o=e,n=t;o._virtual||(o._virtual={children:[]});e=o._virtual.parent;!e||e===t||-1<(t=e._virtual.children.indexOf(o))&&e._virtual.children.splice(t,1),o._virtual.parent=n||void 0,n&&(n._virtual||(n._virtual={children:[]}),n._virtual.children.push(o))}var ec={};function tc(e){ec[e]&&ec[e].forEach(function(e){return e()})}var oc,nc=Fn(),rc=gt.forwardRef(function(e,t){function o(){null==b||b();var e=s.current;s.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)}function n(){var e,t=function(){if(u)return g?u.getElementById(g):u.body}();u&&t&&(o(),(e=u.createElement("div")).className=C.root,Fs(e),$l(e,r.current),y?t.insertBefore(e,t.firstChild):t.appendChild(e),s.current=e,c(!0))}var r=gt.useRef(null),i=Sr(r,t),s=gt.useRef(),a=gt.useState(!1),l=a[0],c=a[1],u=Tl(),d=e.eventBubblingEnabled,p=e.styles,h=e.theme,m=e.className,t=e.children,g=e.hostId,a=e.onLayerDidMount,f=void 0===a?function(){}:a,a=e.onLayerMounted,v=void 0===a?function(){}:a,b=e.onLayerWillUnmount,y=e.insertFirst,C=nc(p,{theme:h,className:m,isNotHost:!g});return _r(function(){return n(),g&&(t=n,ec[e=g]||(ec[e]=[]),ec[e].push(t)),function(){var e,t;o(),g&&(!ec[e=g]||0<=(t=ec[e].indexOf(n))&&(ec[e].splice(t,1),0===ec[e].length&&delete ec[e]))};var e,t},[g]),gt.useEffect(function(){s.current&&l&&(null==v||v(),null==f||f(),c(!1))},[l,v,f]),gt.createElement("span",{className:"ms-layer",ref:i},s.current&&Vl.createPortal(gt.createElement(Jl,ht({},!d&&(oc||(oc={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach(function(e){return oc[e]=ic})),oc),{className:C.content}),t),s.current))});rc.displayName="LayerBase";var ic=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()},sc={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},ac=In(rc,function(e){var t=e.className,o=e.isNotHost,n=e.theme,e=zo(sc,n);return{root:[e.root,n.fonts.medium,o&&[e.rootNoHost,{position:"fixed",zIndex:mo.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[e.content,{visibility:"visible"}]}},void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),lc=gt.forwardRef(function(e,t){var o=e.layerProps,n=e.doNotLayer,e=mt(e,["layerProps","doNotLayer"]),t=gt.createElement(Wl,ht({},e,{doNotLayer:n,ref:t}));return n?t:gt.createElement(ac,ht({},o),t)});lc.displayName="Callout";function cc(e){var t=e.item,e=e.classNames,t=t.iconProps;return gt.createElement(Vr,ht({},t,{className:e.icon}))}function uc(e){var t=e.item;return e.hasIcons?t.onRenderIcon?t.onRenderIcon(e,cc):cc(e):null}function dc(e){var t=e.onCheckmarkClick,o=e.item,n=e.classNames,e=La(o);return t?gt.createElement(Vr,{iconName:!1!==o.canCheck&&e?"CheckMark":"",className:n.checkmarkIcon,onClick:function(e){return t(o,e)}}):null}function pc(e){var t=e.item,e=e.classNames;return t.text||t.name?gt.createElement("span",{className:e.label},t.text||t.name):null}function hc(e){var t=e.item,e=e.classNames;return t.secondaryText?gt.createElement("span",{className:e.secondaryText},t.secondaryText):null}function mc(e){var t=e.item,o=e.classNames,e=e.theme;return Ha(t)?gt.createElement(Vr,ht({iconName:Pn(e)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:o.subMenuIcon})):null}function gc(e){var t=e.theme,o=e.disabled,n=e.expanded,r=e.checked,i=e.isAnchorLink,s=e.knownIcon,a=e.itemClassName,l=e.dividerClassName,c=e.iconClassName,u=e.subMenuClassName,d=e.primaryDisabled,e=e.className;return Dc(t,o,n,r,i,s,a,l,c,u,d,e)}var fc,vc,bc,yc=(l(Hc,bc=gt.Component),Hc.prototype.render=function(){var e=this.props,t=e.item,o=e.classNames,e=t.onRenderContent||this._renderLayout;return gt.createElement("div",{className:t.split?o.linkContentMenu:o.linkContent},e(this.props,{renderCheckMarkIcon:dc,renderItemIcon:uc,renderItemName:pc,renderSecondaryText:hc,renderSubMenuIcon:mc}))},Hc.prototype._renderLayout=function(e,t){return gt.createElement(gt.Fragment,null,t.renderCheckMarkIcon(e),t.renderItemIcon(e),t.renderItemName(e),t.renderSecondaryText(e),t.renderSubMenuIcon(e))},Hc),Cc=Ao(function(e){return pn({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})}),_c=uo(0,io),Sc=Ao(function(){var e;return{selectors:((e={})[Yt]=ht({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),e)}}),xc=Ao(function(e){var t=e.semanticColors,o=e.fonts,n=e.palette,r=t.menuItemBackgroundHovered,i=t.menuItemTextHovered,s=t.menuItemBackgroundPressed,a=t.bodyDivider;return un({item:[o.medium,{color:t.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:a,position:"relative"},root:[bo(e),o.medium,{color:t.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:36,lineHeight:36,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:t.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:((o={})[Yt]=ht({color:"GrayText",opacity:1},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)},rootHovered:ht({backgroundColor:r,color:i,selectors:{".ms-ContextualMenu-icon":{color:n.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:n.neutralPrimary}}},Sc()),rootFocused:ht({backgroundColor:n.white},Sc()),rootChecked:ht({selectors:{".ms-ContextualMenu-checkmarkIcon":{color:n.neutralPrimary}}},Sc()),rootPressed:ht({backgroundColor:s,selectors:{".ms-ContextualMenu-icon":{color:n.themeDark},".ms-ContextualMenu-submenuIcon":{color:n.neutralPrimary}}},Sc()),rootExpanded:ht({backgroundColor:s,color:t.bodyTextChecked},Sc()),linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:36,fontSize:Ae.medium,width:Ae.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:((i={})[_c]={fontSize:Ae.large,width:Ae.large},i)},iconColor:{color:t.menuIcon,selectors:((s={})[Yt]={color:"inherit"},s["$root:hover &"]={selectors:((i={})[Yt]={color:"HighlightText"},i)},s["$root:focus &"]={selectors:((i={})[Yt]={color:"HighlightText"},i)},s)},iconDisabled:{color:t.disabledBodyText},checkmarkIcon:{color:t.bodySubtext,selectors:((t={})[Yt]={color:"HighlightText"},t)},subMenuIcon:{height:36,lineHeight:36,color:n.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:Ae.small,selectors:((n={":hover":{color:n.neutralPrimary},":active":{color:n.neutralPrimary}})[_c]={fontSize:Ae.medium},n[Yt]={color:"HighlightText"},n)},splitButtonFlexContainer:[bo(e),{display:"flex",height:36,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]})}),kc=uo(0,io),wc=Ao(function(e){return pn(Cc(e),{wrapper:{position:"absolute",right:28,selectors:((e={})[kc]={right:32},e)},divider:{height:16,width:1}})}),Ic={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},Dc=Ao(function(e,t,o,n,r,i,s,a,l,c,u,d){var p,h=xc(e),m=zo(Ic,e);return pn({item:[m.item,h.item,s],divider:[m.divider,h.divider,a],root:[m.root,h.root,n&&[m.isChecked,h.rootChecked],r&&h.anchorLink,o&&[m.isExpanded,h.rootExpanded],t&&[m.isDisabled,h.rootDisabled],!t&&!o&&[{selectors:((r={":hover":h.rootHovered,":active":h.rootPressed})["."+go+" &:focus, ."+go+" &:focus:hover"]=h.rootFocused,r["."+go+" &:hover"]={background:"inherit;"},r)}],d],splitPrimary:[h.root,{width:"calc(100% - 28px)"},n&&["is-checked",h.rootChecked],(t||u)&&["is-disabled",h.rootDisabled],!(t||u)&&!n&&[{selectors:((p={":hover":h.rootHovered})[":hover ~ ."+m.splitMenu]=h.rootHovered,p[":active"]=h.rootPressed,p["."+go+" &:focus, ."+go+" &:focus:hover"]=h.rootFocused,p["."+go+" &:hover"]={background:"inherit;"},p)}]],splitMenu:[m.splitMenu,h.root,{flexBasis:"0",padding:"0 8px",minWidth:"28px"},o&&["is-expanded",h.rootExpanded],t&&["is-disabled",h.rootDisabled],!t&&!o&&[{selectors:((p={":hover":h.rootHovered,":active":h.rootPressed})["."+go+" &:focus, ."+go+" &:focus:hover"]=h.rootFocused,p["."+go+" &:hover"]={background:"inherit;"},p)}]],anchorLink:h.anchorLink,linkContent:[m.linkContent,h.linkContent],linkContentMenu:[m.linkContentMenu,h.linkContent,{justifyContent:"center"}],icon:[m.icon,i&&h.iconColor,h.icon,l,t&&[m.isDisabled,h.iconDisabled]],iconColor:h.iconColor,checkmarkIcon:[m.checkmarkIcon,i&&h.checkmarkIcon,h.icon,l],subMenuIcon:[m.subMenuIcon,h.subMenuIcon,c,o&&{color:e.palette.neutralPrimary},t&&[h.iconDisabled]],label:[m.label,h.label],secondaryText:[m.secondaryText,h.secondaryText],splitContainer:[h.splitButtonFlexContainer,!t&&!n&&[{selectors:((n={})["."+go+" &:focus, ."+go+" &:focus:hover"]=h.rootFocused,n)}]],screenReaderText:[m.screenReaderText,h.screenReaderText,So,{visibility:"hidden"}]})}),Tc=In(yc,gc,void 0,{scope:"ContextualMenuItem"}),U=(l(Lc,vc=gt.Component),Lc.prototype.shouldComponentUpdate=function(e){return!da(e,this.props)},Lc),Ec="ktp",Pc="-",Rc=Ec+Pc,Mc="data-ktp-target",Nc="data-ktp-execute-target",Bc="data-ktp-aria-target",Fc="ktp-layer-id",Ac=", ";function Lc(e){var n=vc.call(this,e)||this;return n._onItemMouseEnter=function(e){var t=n.props,o=t.item,t=t.onItemMouseEnter;t&&t(o,e,e.currentTarget)},n._onItemClick=function(e){var t=n.props,o=t.item,t=t.onItemClickBase;t&&t(o,e,e.currentTarget)},n._onItemMouseLeave=function(e){var t=n.props,o=t.item,t=t.onItemMouseLeave;t&&t(o,e)},n._onItemKeyDown=function(e){var t=n.props,o=t.item,t=t.onItemKeyDown;t&&t(o,e)},n._onItemMouseMove=function(e){var t=n.props,o=t.item,t=t.onItemMouseMove;t&&t(o,e,e.currentTarget)},n._getSubmenuTarget=function(){},vi(n),n}function Hc(e){var n=bc.call(this,e)||this;return n.openSubMenu=function(){var e=n.props,t=e.item,o=e.openSubMenu,e=e.getSubmenuTarget;e&&(e=e(),Ha(t)&&o&&e&&o(t,e))},n.dismissSubMenu=function(){var e=n.props,t=e.item,e=e.dismissSubMenu;Ha(t)&&e&&e()},n.dismissMenu=function(e){var t=n.props.dismissMenu;t&&t(void 0,e)},vi(n),n}function Oc(e){var t=(0,gt.useRef)();return(0,gt.useEffect)(function(){t.current=e}),t.current}(xe=fc=fc||{}).KEYTIP_ADDED="keytipAdded",xe.KEYTIP_REMOVED="keytipRemoved",xe.KEYTIP_UPDATED="keytipUpdated",xe.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",xe.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",xe.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",xe.ENTER_KEYTIP_MODE="enterKeytipMode",xe.EXIT_KEYTIP_MODE="exitKeytipMode";var zc=(Wc.getInstance=function(){return this._instance},Wc.prototype.init=function(e){this.delayUpdatingKeytipChange=e},Wc.prototype.register=function(e,t){var o=e;(t=void 0===t?!1:t)||(o=this.addParentOverflow(e),this.sequenceMapping[o.keySequences.toString()]=o);e=this._getUniqueKtp(o);return t?this.persistedKeytips[e.uniqueID]=e:this.keytips[e.uniqueID]=e,!this.inKeytipMode&&this.delayUpdatingKeytipChange||(t=t?fc.PERSISTED_KEYTIP_ADDED:fc.KEYTIP_ADDED,va.raise(this,t,{keytip:o,uniqueID:e.uniqueID})),e.uniqueID},Wc.prototype.update=function(e,t){var o=this.addParentOverflow(e),e=this._getUniqueKtp(o,t),o=this.keytips[t];o&&(e.keytip.visible=o.keytip.visible,this.keytips[t]=e,delete this.sequenceMapping[o.keytip.keySequences.toString()],this.sequenceMapping[e.keytip.keySequences.toString()]=e.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||va.raise(this,fc.KEYTIP_UPDATED,{keytip:e.keytip,uniqueID:e.uniqueID}))},Wc.prototype.unregister=function(e,t,o){(o=void 0===o?!1:o)?delete this.persistedKeytips[t]:delete this.keytips[t],o||delete this.sequenceMapping[e.keySequences.toString()];o=o?fc.PERSISTED_KEYTIP_REMOVED:fc.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||va.raise(this,o,{keytip:e,uniqueID:t})},Wc.prototype.enterKeytipMode=function(){va.raise(this,fc.ENTER_KEYTIP_MODE)},Wc.prototype.exitKeytipMode=function(){va.raise(this,fc.EXIT_KEYTIP_MODE)},Wc.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map(function(e){return t.keytips[e].keytip})},Wc.prototype.addParentOverflow=function(e){var t=$e([],e.keySequences);if(t.pop(),0!==t.length){t=this.sequenceMapping[t.toString()];if(t&&t.overflowSetSequence)return ht(ht({},e),{overflowSetSequence:t.overflowSetSequence})}return e},Wc.prototype.menuExecute=function(e,t){va.raise(this,fc.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},Wc.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=Ss()),{keytip:ht({},e),uniqueID:t}},Wc._instance=new Wc,Wc);function Wc(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}function Vc(e){return e.reduce(function(e,t){return e+Pc+t.split("").join(Pc)},Ec)}function Kc(e,t){var o=t.length,t=$e([],t).pop();return Ui($e([],e),o-1,t)}function Gc(e){return"["+Mc+'="'+Vc(e)+'"]'}function Uc(e){return"["+Nc+'="'+e+'"]'}function jc(e){var t=" "+Fc;return e.length?t+" "+Vc(e):t}function qc(e){var t=gt.useRef(),o=e.keytipProps?ht({disabled:e.disabled},e.keytipProps):void 0,n=xl(zc.getInstance()),r=Oc(e);_r(function(){t.current&&o&&((null==r?void 0:r.keytipProps)!==e.keytipProps||(null==r?void 0:r.disabled)!==e.disabled)&&n.update(o,t.current)}),_r(function(){return o&&(t.current=n.register(o)),function(){o&&n.unregister(o,t.current)}},[]);var i,s,a,l={ariaDescribedBy:void 0,keytipId:void 0};return o&&(i=n,s=e.ariaDescribedBy,a=i.addParentOverflow(o),i=Ia(s,jc(a.keySequences)),s=$e([],a.keySequences),l={ariaDescribedBy:i,keytipId:Vc(s=a.overflowSetSequence?Kc(s,a.overflowSetSequence):s)}),l}var Yc,Zc=function(e){var t=e.children,o=qc(mt(e,["children"])),e=o.keytipId,o=o.ariaDescribedBy;return t(((t={})[Mc]=e,t[Nc]=e,t["aria-describedby"]=o,t))},Xc=(l(Jc,Yc=U),Jc.prototype.render=function(){var t=this,e=this.props,o=e.item,n=e.classNames,r=e.index,i=e.focusableElementIndex,s=e.totalItemCount,a=e.hasCheckmarks,l=e.hasIcons,c=e.contextualMenuItemAs,u=void 0===c?Tc:c,d=e.expandedMenuItemKey,p=e.onItemClick,h=e.openSubMenu,m=e.dismissSubMenu,g=e.dismissMenu,f=o.rel;o.target&&"_blank"===o.target.toLowerCase()&&(f=f||"nofollow noopener noreferrer");var v=Ha(o),b=ur(o,qn),c=Oa(o),y=o.itemProps,C=o.ariaDescription,e=o.keytipProps;e&&v&&this._getMemoizedMenuButtonKeytipProps(e),C&&(this._ariaDescriptionId=Ss());var e=Ia(o.ariaDescribedBy,C?this._ariaDescriptionId:void 0,b["aria-describedby"]),_={"aria-describedby":e};return gt.createElement("div",null,gt.createElement(Zc,{keytipProps:o.keytipProps,ariaDescribedBy:e,disabled:c},function(e){return gt.createElement("a",ht({},_,b,e,{ref:t._anchor,href:o.href,target:o.target,rel:f,className:n.root,role:"menuitem","aria-haspopup":v||void 0,"aria-expanded":v?o.key===d:void 0,"aria-posinset":i+1,"aria-setsize":s,"aria-disabled":Oa(o),style:o.style,onClick:t._onItemClick,onMouseEnter:t._onItemMouseEnter,onMouseLeave:t._onItemMouseLeave,onMouseMove:t._onItemMouseMove,onKeyDown:v?t._onItemKeyDown:void 0}),gt.createElement(u,ht({componentRef:o.componentRef,item:o,classNames:n,index:r,onCheckmarkClick:a&&p?p:void 0,hasIcons:l,openSubMenu:h,dismissSubMenu:m,dismissMenu:g,getSubmenuTarget:t._getSubmenuTarget},y)),t._renderAriaDescription(C,n.screenReaderText))}))},Jc),Qc=Fn(),ke=gt.forwardRef(function(e,t){var o=e.styles,n=e.theme,r=e.getClassNames,e=e.className,e=Qc(o,{theme:n,getClassNames:r,className:e});return gt.createElement("span",{className:e.wrapper,ref:t},gt.createElement("span",{className:e.divider}))});function Jc(){var n=null!==Yc&&Yc.apply(this,arguments)||this;return n._anchor=gt.createRef(),n._getMemoizedMenuButtonKeytipProps=Ao(function(e){return ht(ht({},e),{hasMenu:!0})}),n._getSubmenuTarget=function(){return n._anchor.current||void 0},n._onItemClick=function(e){var t=n.props,o=t.item,t=t.onItemClick;t&&t(o,e)},n._renderAriaDescription=function(e,t){return e?gt.createElement("span",{id:n._ariaDescriptionId,className:t},e):null},n}ke.displayName="VerticalDividerBase";var $c,eu,tu=In(ke,function(e){var t=e.theme,o=e.getClassNames,e=e.className;if(!t)throw new Error("Theme is undefined or null.");if(o){o=o(t);return{wrapper:[o.wrapper],divider:[o.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},e],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}},void 0,{scope:"VerticalDivider"}),ou=(l(iu,eu=U),iu.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},iu.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},iu.prototype.render=function(){var t=this,e=this.props,o=e.item,n=e.classNames,r=e.index,i=e.focusableElementIndex,s=e.totalItemCount,a=e.hasCheckmarks,l=e.hasIcons,c=e.onItemMouseLeave,u=e.expandedMenuItemKey,d=Ha(o),e=(e=o.keytipProps)&&this._getMemoizedMenuButtonKeytipProps(e),p=o.ariaDescription;return p&&(this._ariaDescriptionId=Ss()),gt.createElement(Zc,{keytipProps:e,disabled:Oa(o)},function(e){return gt.createElement("div",{"data-ktp-target":e["data-ktp-target"],ref:function(e){return t._splitButton=e},role:za(o),"aria-label":o.ariaLabel,className:n.splitContainer,"aria-disabled":Oa(o),"aria-expanded":d?o.key===u:void 0,"aria-haspopup":!0,"aria-describedby":Ia(o.ariaDescribedBy,p?t._ariaDescriptionId:void 0,e["aria-describedby"]),"aria-checked":o.isChecked||o.checked,"aria-posinset":i+1,"aria-setsize":s,onMouseEnter:t._onItemMouseEnterPrimary,onMouseLeave:c?c.bind(t,ht(ht({},o),{subMenuProps:null,items:null})):void 0,onMouseMove:t._onItemMouseMovePrimary,onKeyDown:t._onItemKeyDown,onClick:t._executeItemClick,onTouchStart:t._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":o["aria-roledescription"]},t._renderSplitPrimaryButton(o,n,r,a,l),t._renderSplitDivider(o),t._renderSplitIconButton(o,n,r,e),t._renderAriaDescription(p,n.screenReaderText))})},iu.prototype._renderSplitPrimaryButton=function(e,t,o,n,r){var i=this.props,s=i.contextualMenuItemAs,a=void 0===s?Tc:s,s=i.onItemClick,i={key:e.key,disabled:Oa(e)||e.primaryDisabled,name:e.name,text:e.text||e.name,secondaryText:e.secondaryText,className:t.splitPrimary,canCheck:e.canCheck,isChecked:e.isChecked,checked:e.checked,iconProps:e.iconProps,onRenderIcon:e.onRenderIcon,data:e.data,"data-is-focusable":!1},e=e.itemProps;return gt.createElement("button",ht({},ur(i,Yn)),gt.createElement(a,ht({"data-is-focusable":!1,item:i,classNames:t,index:o,onCheckmarkClick:n&&s?s:void 0,hasIcons:r},e)))},iu.prototype._renderSplitDivider=function(e){e=e.getSplitButtonVerticalDividerClassNames||wc;return gt.createElement(tu,{getClassNames:e})},iu.prototype._renderSplitIconButton=function(t,e,o,n){var r=this.props,i=r.contextualMenuItemAs,s=void 0===i?Tc:i,a=r.onItemMouseLeave,l=r.onItemMouseDown,c=r.openSubMenu,u=r.dismissSubMenu,i=r.dismissMenu,r={onClick:this._onIconItemClick,disabled:Oa(t),className:e.splitMenu,subMenuProps:t.subMenuProps,submenuIconProps:t.submenuIconProps,split:!0,key:t.key},a=ht(ht({},ur(r,Yn)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:a?a.bind(this,t):void 0,onMouseDown:function(e){return l?l(t,e):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":n["data-ktp-execute-target"],"aria-hidden":!0}),n=t.itemProps;return gt.createElement("button",ht({},a),gt.createElement(s,ht({componentRef:t.componentRef,item:r,classNames:e,index:o,hasIcons:!1,openSubMenu:c,dismissSubMenu:u,dismissMenu:i,getSubmenuTarget:this._getSubmenuTarget},n)))},iu.prototype._handleTouchAndPointerEvent=function(e){var t=this,o=this.props.onTap;o&&o(e),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){t._processingTouch=!1,t._lastTouchTimeoutId=void 0},500)},iu),nu=(l(ru,$c=U),ru.prototype.render=function(){var t=this,e=this.props,o=e.item,n=e.classNames,r=e.index,i=e.focusableElementIndex,s=e.totalItemCount,a=e.hasCheckmarks,l=e.hasIcons,c=e.contextualMenuItemAs,u=void 0===c?Tc:c,d=e.expandedMenuItemKey,p=e.onItemMouseDown,h=e.onItemClick,m=e.openSubMenu,g=e.dismissSubMenu,f=e.dismissMenu,v=La(o),b=null!==v,y=za(o),C=Ha(o),_=o.itemProps,c=o.ariaLabel,S=o.ariaDescription,x=ur(o,Yn);delete x.disabled;e=o.role||y;S&&(this._ariaDescriptionId=Ss());var y=Ia(o.ariaDescribedBy,S?this._ariaDescriptionId:void 0,x["aria-describedby"]),k={className:n.root,onClick:this._onItemClick,onKeyDown:C?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(e){return p?p(o,e):void 0},onMouseMove:this._onItemMouseMove,href:o.href,title:o.title,"aria-label":c,"aria-describedby":y,"aria-haspopup":C||void 0,"aria-expanded":C?o.key===d:void 0,"aria-posinset":i+1,"aria-setsize":s,"aria-disabled":Oa(o),"aria-checked":"menuitemcheckbox"!==e&&"menuitemradio"!==e||!b?void 0:!!v,"aria-selected":"menuitem"===e&&b?!!v:void 0,role:e,style:o.style},e=o.keytipProps;return e&&C&&(e=this._getMemoizedMenuButtonKeytipProps(e)),gt.createElement(Zc,{keytipProps:e,ariaDescribedBy:y,disabled:Oa(o)},function(e){return gt.createElement("button",ht({ref:t._btn},x,k,e),gt.createElement(u,ht({componentRef:o.componentRef,item:o,classNames:n,index:r,onCheckmarkClick:a&&h?h:void 0,hasIcons:l,openSubMenu:m,dismissSubMenu:g,dismissMenu:f,getSubmenuTarget:t._getSubmenuTarget},_)),t._renderAriaDescription(S,n.screenReaderText))})},ru);function ru(){var o=null!==$c&&$c.apply(this,arguments)||this;return o._btn=gt.createRef(),o._getMemoizedMenuButtonKeytipProps=Ao(function(e){return ht(ht({},e),{hasMenu:!0})}),o._renderAriaDescription=function(e,t){return e?gt.createElement("span",{id:o._ariaDescriptionId,className:t},e):null},o._getSubmenuTarget=function(){return o._btn.current||void 0},o}function iu(e){var r=eu.call(this,e)||this;return r._getMemoizedMenuButtonKeytipProps=Ao(function(e){return ht(ht({},e),{hasMenu:!0})}),r._onItemKeyDown=function(e){var t=r.props,o=t.item,t=t.onItemKeyDown;e.which===Tn.enter?(r._executeItemClick(e),e.preventDefault(),e.stopPropagation()):t&&t(o,e)},r._getSubmenuTarget=function(){return r._splitButton},r._renderAriaDescription=function(e,t){return e?gt.createElement("span",{id:r._ariaDescriptionId,className:t},e):null},r._onItemMouseEnterPrimary=function(e){var t=r.props,o=t.item,t=t.onItemMouseEnter;t&&t(ht(ht({},o),{subMenuProps:void 0,items:void 0}),e,r._splitButton)},r._onItemMouseEnterIcon=function(e){var t=r.props,o=t.item,t=t.onItemMouseEnter;t&&t(o,e,r._splitButton)},r._onItemMouseMovePrimary=function(e){var t=r.props,o=t.item,t=t.onItemMouseMove;t&&t(ht(ht({},o),{subMenuProps:void 0,items:void 0}),e,r._splitButton)},r._onItemMouseMoveIcon=function(e){var t=r.props,o=t.item,t=t.onItemMouseMove;t&&t(o,e,r._splitButton)},r._onIconItemClick=function(e){var t=r.props,o=t.item,t=t.onItemClickBase;t&&t(o,e,r._splitButton||e.currentTarget)},r._executeItemClick=function(e){var t=r.props,o=t.item,n=t.executeItemClick,t=t.onItemClick;if(!o.disabled&&!o.isDisabled)return r._processingTouch&&t?t(o,e):void(n&&n(o,e))},r._onTouchStart=function(e){!r._splitButton||"onpointerdown"in r._splitButton||r._handleTouchAndPointerEvent(e)},r._onPointerDown=function(e){"touch"===e.pointerType&&(r._handleTouchAndPointerEvent(e),e.preventDefault(),e.stopImmediatePropagation())},r._async=new xi(r),r._events=new va(r),r}function su(e,t){t=gt.useRef(t);return t.current||(t.current=Ss(e)),t.current}var au=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];function lu(e,n,t){void 0===t&&(t=au);var o,r=[];for(o in n)!function(o){"function"!=typeof n[o]||void 0!==e[o]||t&&-1!==t.indexOf(o)||(r.push(o),e[o]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n[o].apply(n,e)})}(o);return r}function cu(t,e){e.forEach(function(e){return delete t[e]})}var uu,du,pu=(l(hu,du=gt.Component),hu.prototype._updateComposedComponentRef=function(e){(this._composedComponentInstance=e)?this._hoisted=lu(this,e):this._hoisted&&cu(this,this._hoisted)},hu);function hu(e){e=du.call(this,e)||this;return e._updateComposedComponentRef=e._updateComposedComponentRef.bind(e),e}function mu(e,t){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);return t}(W=uu=uu||{})[W.small=0]="small",W[W.medium=1]="medium",W[W.large=2]="large",W[W.xLarge=3]="xLarge",W[W.xxLarge=4]="xxLarge",W[W.xxxLarge=5]="xxxLarge",W[W.unknown=999]="unknown";var gu,fu,vu=[479,639,1023,1365,1919,99999999];function bu(e){gu=e}function yu(e){e=qe(e);e&&Su(e)}function Cu(){var e;return null!==(e=null!=gu?gu:fu)&&void 0!==e?e:uu.large}function _u(t){var o,e=(l(n,o=pu),n.prototype.componentDidMount=function(){this._events.on(this.context.window,"resize",this._onResize),this._onResize()},n.prototype.componentWillUnmount=function(){this._events.dispose()},n.prototype.render=function(){var e=this.state.responsiveMode;return e===uu.unknown?null:gt.createElement(t,ht({ref:this._updateComposedComponentRef,responsiveMode:e},this.props))},n.contextType=Il,n);function n(e){var t=o.call(this,e)||this;return t._onResize=function(){var e=Su(t.context.window);e!==t.state.responsiveMode&&t.setState({responsiveMode:e})},t._events=new va(t),t._updateComposedComponentRef=t._updateComposedComponentRef.bind(t),t.state={responsiveMode:Cu()},t}return mu(t,e)}function Su(e){var t=uu.small;if(e){try{for(;e.innerWidth>vu[t];)t++}catch(e){t=Cu()}fu=t}else{if(void 0===gu)throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");t=gu}return t}var xu=function(t,e){var o=gt.useState(Cu()),n=o[0],r=o[1],i=gt.useCallback(function(){var e=Su(qe(t.current));n!==e&&r(e)},[t,n]);return wl(Dl(),"resize",i),gt.useEffect(function(){void 0===e&&i()},[e]),null!=e?e:n},ku=gt.createContext({}),wu=Fn(),Iu=Fn(),Du={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:Pa.bottomAutoEdge,beakWidth:16};function Tu(e,t){var o=null==t?void 0:t.target,e=(e.subMenuProps||e).items;if(e){for(var n=[],r=0,i=e;r<i.length;r++){var s,a,l=i[r];l.preferMenuTargetAsEventTarget?(s=l.onClick,a=mt(l,["onClick"]),n.push(ht(ht({},a),{onClick:Lu(s,o)}))):n.push(l)}return n}}function Eu(e){return e.some(function(e){return!!e.canCheck||!(!e.sectionProps||!e.sectionProps.items.some(function(e){return!0===e.canCheck}))})}var Pu="ContextualMenu",Ru=Ao(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return dn.apply(void 0,$e([e,gc],t))}});function Mu(e,t){var o=e.hidden,n=e.items,r=e.theme,i=e.className,s=e.id,a=e.target,e=gt.useState(),l=e[0],c=e[1],e=gt.useState(),u=e[0],d=e[1],p=su(Pu,s),h=gt.useCallback(function(){c(void 0),d(void 0)},[]),s=gt.useCallback(function(e,t){e=e.key;l!==e&&(t.focus(),c(e),d(t))},[l]);gt.useEffect(function(){o&&h()},[o,h]);var m,g,f,v=(m=t,g=h,f=gt.useRef(!1),gt.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]),function(e,t){t?m(e,t):f.current&&g()});return[l,s,function(){var e=function e(t,o){for(var n=0,r=o;n<r.length;n++){var i=r[n];if(i.itemType===Da.Section&&i.sectionProps){var s=e(t,i.sectionProps.items);if(s)return s}else if(i.key&&i.key===t)return i}}(l,n),t=null;return e&&(t={items:Tu(e,{target:a}),target:u,onDismiss:v,isSubMenu:!0,id:p,shouldFocusOnMount:!0,directionalHint:Pn(r)?Pa.leftTopEdge:Pa.rightTopEdge,className:i,gapSpace:0,isBeakVisible:!1},e.subMenuProps&&pa(t,e.subMenuProps),e.preferMenuTargetAsEventTarget)&&(e=e.onItemClick,t.onItemClick=Lu(e,a)),t},v]}var Nu=gt.memo(gt.forwardRef(function(e,o){function a(e,t){var o;return null===(o=_.onDismiss)||void 0===o?void 0:o.call(_,e,t)}var t,n,r,i,s,l,c,u,d,p,h,m,g,f,v,b,y,C=Hn(Du,e),_=(C.ref,mt(C,["ref"])),S=gt.useRef(null),x=kl(),k=su(Pu,_.id),w=Ml(_.target,S),I=w[0],D=w[1],T=(c=D,u=(g=_).hidden,d=g.onRestoreFocus,p=gt.useRef(),h=gt.useCallback(function(e){var t;d?d(e):null!=e&&e.documentContainsFocus&&(null===(e=null===(t=p.current)||void 0===t?void 0:t.focus)||void 0===e||e.call(t))},[d]),_r(function(){var e;u?p.current&&(h({originalElement:p.current,containsFocus:!0,documentContainsFocus:(null===(e=ft())||void 0===e?void 0:e.hasFocus())||!1}),p.current=void 0):p.current=null==c?void 0:c.document.activeElement},[u,null==c?void 0:c.document.activeElement,h]),h),E=Mu(_,a),P=E[0],R=E[1],M=E[2],N=E[3],B=function(e){var t=e.delayUpdateFocusOnHover,o=e.hidden,n=gt.useRef(!t),r=gt.useRef(!1);gt.useEffect(function(){n.current=!t,r.current=!o&&!t&&r.current},[t,o]);e=gt.useCallback(function(){t&&(n.current=!1)},[t]);return[n,r,e]}(_),F=B[0],A=B[1],L=B[2],e=(i=x,s=gt.useRef(!0),l=gt.useRef(),[function(){s.current||void 0===l.current?s.current=!1:(i.clearTimeout(l.current),l.current=void 0),l.current=i.setTimeout(function(){s.current=!0},250)},s]),H=e[0],C=e[1],g=(t=x,w=_.subMenuHoverDelay,n=void 0===w?250:w,r=gt.useRef(void 0),[z,function(e){r.current=t.setTimeout(function(){e(),z()},n)},r]),O=g[0],E=g[1],B=g[2],e=xu(S,_.responsiveMode);function z(){void 0!==r.current&&(t.clearTimeout(r.current),r.current=void 0)}w=(x=_).hidden,m=void 0!==w&&w,g=x.onMenuDismissed,w=x.onMenuOpened,f=Oc(m),v=gt.useRef(w),b=gt.useRef(g),y=gt.useRef(x),v.current=w,b.current=g,y.current=x,gt.useEffect(function(){var e,t;m&&!1===f?null===(e=b.current)||void 0===e||e.call(b,y.current):m||!1===f||null===(t=v.current)||void 0===t||t.call(v,y.current)},[m,f]),gt.useEffect(function(){return function(){var e;return null===(e=b.current)||void 0===e?void 0:e.call(b,y.current)}},[]);function W(e,o,t){var n=0,r=e.items,i=e.totalItemCount,s=e.hasCheckmarks,a=e.hasIcons;return gt.createElement("ul",{className:o.list,onKeyDown:pe,onKeyUp:he,role:"presentation"},r.map(function(e,t){t=V(e,t,n,i,s,a,o);return e.itemType!==Da.Divider&&e.itemType!==Da.Header&&(e=e.customOnRenderListLength||1,n+=e),t}))}function V(e,t,o,n,r,i,s){var a,l=[],c=e.iconProps||{iconName:"None"},u=e.getItemClassNames,d=(h=e.itemProps)?h.styles:void 0,p=e.itemType===Da.Divider?e.className:void 0,h=e.submenuIconProps?e.submenuIconProps.className:"";switch(a=u?u(_.theme,Oa(e),P===e.key,!!La(e),!!e.href,"None"!==c.iconName,e.className,p,c.className,h,e.primaryDisabled):(c={theme:_.theme,disabled:Oa(e),expanded:P===e.key,checked:!!La(e),isAnchorLink:!!e.href,knownIcon:"None"!==c.iconName,itemClassName:e.className,dividerClassName:p,iconClassName:c.className,subMenuClassName:h,primaryDisabled:e.primaryDisabled},Iu(Ru(null===(h=s.subComponentStyles)||void 0===h?void 0:h.menuItem,d),c)),"-"!==e.text&&"-"!==e.name||(e.itemType=Da.Divider),e.itemType){case Da.Divider:l.push(we(t,a));break;case Da.Header:l.push(we(t,a));var m=De(e,a,s,t,r,i);l.push(ke(m,e.key||t,a,e.title));break;case Da.Section:l.push(xe(e,a,s,t,r,i));break;default:m=function(){return Ie(e,a,t,o,n,r,i)},m=_.onRenderContextualMenuItem?_.onRenderContextualMenuItem(e,m):m();l.push(ke(m,e.key||t,a,e.title))}return gt.createElement(gt.Fragment,{key:e.key},l)}var K,G,U,j,q,Y,Z,X,Q,J,$,ee,te,oe,ne,re,ie,se,ae,le,ce,ue,de,x=(re=a,ie=S,se=R,ae=(x=_).theme,le=x.isSubMenu,x=x.focusZoneProps,ce=(x=void 0===x?{}:x).checkForNoWrap,x=x.direction,ue=void 0===x?Ei.vertical:x,de=gt.useRef(),[st,function(e){return rt(e,at,!0)},function(e){var t,o,n;!st(e)&&ie.current&&(t=!(!e.altKey&&!e.metaKey),n=e.which===Tn.up,o=e.which===Tn.down,t||!n&&!o||(n=n?os(ie.current,ie.current.lastChild,!0):ts(ie.current,ie.current.firstChild,!0))&&(n.focus(),e.preventDefault(),e.stopPropagation()))},function(e,t){var o=Pn(ae)?Tn.left:Tn.right;e.disabled||t.which!==o&&t.which!==Tn.enter&&(t.which!==Tn.down||!t.altKey&&!t.metaKey)||(se(e,t.currentTarget,!1),t.preventDefault())}]),pe=x[0],he=x[1],me=x[2],ge=x[3],x=(U=C,j=B,q=D,Y=F,Z=A,X=P,Q=S,J=E,$=O,ee=R,te=N,oe=a,ne=(G=_).target,[function(e,t,o){Y.current&&(Z.current=!0),et()||tt(e,t,o)},function(e,t,o){var n=t.currentTarget;Y.current&&(Z.current=!0,U.current&&void 0===j.current&&n!==(null==q?void 0:q.document.activeElement)&&tt(e,t,o))},function(e,t){var o;if(!et()&&($(),void 0===X))if(Q.current.setActive)try{Q.current.setActive()}catch(e){}else null===(o=Q.current)||void 0===o||o.focus()},function(e,t){ot(e,t,t.currentTarget)},function(e,t){nt(e,t),t.stopPropagation()},nt,ot]),fe=x[0],ve=x[1],be=x[2],ye=x[3],Ce=x[4],_e=x[5],Se=x[6],xe=function(e,t,o,n,r,i){var s,a,l,c,u,d=e.sectionProps;if(d)return d.title&&(l=void 0,c="",c="string"==typeof d.title?(u=k+d.title.replace(/\s/g,""),l={key:"section-"+d.title+"-title",itemType:Da.Header,text:d.title,id:u},u):(u=d.title.id||k+d.title.key.replace(/\s/g,""),l=ht(ht({},d.title),{id:u}),u),l&&(a={role:"group","aria-labelledby":c},s=De(l,t,o,n,r,i))),d.items&&0<d.items.length?gt.createElement("li",{role:"presentation",key:d.key||e.key||"section-"+n},gt.createElement("div",ht({},a),gt.createElement("ul",{className:o.list,role:"presentation"},d.topDivider&&we(n,t,!0,!0),s&&ke(s,e.key||n,t,e.title),d.items.map(function(e,t){return V(e,t,t,d.items.length,r,i,o)}),d.bottomDivider&&we(n,t,!1,!0)))):void 0},ke=function(e,t,o,n){return gt.createElement("li",{role:"presentation",title:n,key:t,className:o.item},e)},we=function(e,t,o,n){return n||0<e?gt.createElement("li",{role:"separator",key:"separator-"+e+(void 0===o?"":o?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},Ie=function(e,t,o,n,r,i,s){if(e.onRender)return e.onRender(ht({"aria-posinset":n+1,"aria-setsize":r},e),a);s={item:e,classNames:t,index:o,focusableElementIndex:n,totalItemCount:r,hasCheckmarks:i,hasIcons:s,contextualMenuItemAs:_.contextualMenuItemAs,onItemMouseEnter:fe,onItemMouseLeave:be,onItemMouseMove:ve,onItemMouseDown:Fu,executeItemClick:_e,onItemKeyDown:ge,expandedMenuItemKey:P,openSubMenu:R,dismissSubMenu:N,dismissMenu:a};return e.href?gt.createElement(Xc,ht({},s,{onItemClick:Ce})):e.split&&Ha(e)?gt.createElement(ou,ht({},s,{onItemClick:ye,onItemClickBase:Se,onTap:O})):gt.createElement(nu,ht({},s,{onItemClick:ye,onItemClickBase:Se}))},De=function(e,t,o,n,r,i){var s=_.contextualMenuItemAs,a=void 0===s?Tc:s,l=e.itemProps,c=e.id,s=l&&ur(l,cr);return gt.createElement("div",ht({id:c,className:o.header},s,{style:e.style}),gt.createElement(a,ht({item:e,classNames:t,index:n,onCheckmarkClick:r?ye:void 0,hasIcons:i},l)))},Te=_.isBeakVisible,Ee=_.items,Pe=_.labelElementId,Re=_.id,C=_.className,Me=_.beakWidth,Ne=_.directionalHint,Be=_.directionalHintForRTL,Fe=_.alignTargetEdge,Ae=_.gapSpace,Le=_.coverTarget,He=_.ariaLabel,Oe=_.doNotLayer,ze=_.target,We=_.bounds,B=_.useTargetWidth,D=_.useTargetAsMinWidth,Ve=_.directionalHintFixed,Ke=_.shouldFocusOnMount,Ge=_.shouldFocusOnContainer,Ue=_.title,F=_.styles,A=_.theme,je=_.calloutProps,E=_.onRenderSubMenu,qe=void 0===E?Au:E,x=_.onRenderMenuList,Ye=void 0===x?function(e,t){return W(e,Ze)}:x,E=_.focusZoneProps,x=_.getMenuClassNames,Ze=x?x(A,C):wu(F,{theme:A,className:C}),Xe=function e(t){for(var o=0,n=t;o<n.length;o++){var r=n[o];if(r.iconProps)return!0;if(r.itemType===Da.Section&&r.sectionProps&&e(r.sectionProps.items))return!0}return!1}(Ee),Qe=ht(ht({direction:Ei.vertical,handleTabKey:Ai.all,isCircularNavigation:!0},E),{className:Pr(Ze.root,null===(E=_.focusZoneProps)||void 0===E?void 0:E.className)}),Je=Eu(Ee),$e=P&&!0!==_.hidden?M():null;function et(){return!U.current||!Z.current}function tt(e,t,o){var n=o||t.currentTarget;e.key!==X&&($(),void 0===X&&n.focus(),Ha(e)?(t.stopPropagation(),J(function(){n.focus(),ee(e,n,!0)})):J(function(){te(t),n.focus()}))}function ot(e,t,o){var n=Tu(e,{target:ne});$(),Ha(e)||n&&n.length?e.key!==X&&ee(e,o,0!==t.nativeEvent.detail||"mouse"===t.nativeEvent.pointerType):nt(e,t),t.stopPropagation(),t.preventDefault()}function nt(e,t){var o;e.disabled||e.isDisabled||(e.preferMenuTargetAsEventTarget&&Hu(t,ne),o=!1,e.onClick?o=!!e.onClick(t,e):G.onItemClick&&(o=!!G.onItemClick(t,e)),!o&&t.defaultPrevented||oe(t,!0))}function rt(e,t,o){var n=!1;return t(e)&&(re(e,o),e.preventDefault(),e.stopPropagation(),n=!0),n}function it(e){return e.which===Tn.escape||(t=e,o=Pn(ae)?Tn.right:Tn.left,!(t.which!==o||!le||ue!==Ei.vertical&&(!ce||ms(t.target,"data-no-horizontal-wrap"))))||e.which===Tn.up&&(e.altKey||e.metaKey);var t,o}function st(e){de.current=Bu(e);var t=e.which===Tn.escape&&(Na()||Aa());return rt(e,it,t)}function at(e){return e=de.current&&Bu(e),de.current=!1,!!e&&!(Aa()||Na())}Te=void 0===Te?e<=uu.medium:Te,I=I.current;if((B||D)&&I&&I.offsetWidth&&(I=I.getBoundingClientRect().width-2,B?K={width:I}:D&&(K={minWidth:I})),Ee&&0<Ee.length){for(var lt=0,ct=0,ut=Ee;ct<ut.length;ct++){var dt=ut[ct];dt.itemType!==Da.Divider&&dt.itemType!==Da.Header&&(dt=dt.customOnRenderListLength||1,lt+=dt)}var pt=Ze.subComponentStyles?Ze.subComponentStyles.callout:void 0;return gt.createElement(ku.Consumer,null,function(e){return gt.createElement(lc,ht({styles:pt,onRestoreFocus:T},je,{target:ze||e.target,isBeakVisible:Te,beakWidth:Me,directionalHint:Ne,directionalHintForRTL:Be,gapSpace:Ae,coverTarget:Le,doNotLayer:Oe,className:Pr("ms-ContextualMenu-Callout",je&&je.className),setInitialFocus:Ke,onDismiss:_.onDismiss||e.onDismiss,onScroll:H,bounds:We,directionalHintFixed:Ve,alignTargetEdge:Fe,hidden:_.hidden||e.hidden,ref:o}),gt.createElement("div",{style:K,ref:S,id:Re,className:Ze.container,tabIndex:Ge?0:-1,onKeyDown:me,onKeyUp:he,onFocusCapture:L,"aria-label":He,"aria-labelledby":Pe,role:"menu"},Ue&>.createElement("div",{className:Ze.title}," ",Ue," "),Ee&&Ee.length?(t=Ye({ariaLabel:He,items:Ee,totalItemCount:lt,hasCheckmarks:Je,hasIcons:Xe,defaultMenuItemRenderer:function(e){return t=e.index,o=e.focusableElementIndex,n=e.totalItemCount,r=e.hasCheckmarks,i=e.hasIcons,V(e,t,o,n,r,i,Ze);var t,o,n,r,i},labelElementId:Pe},function(e,t){return W(e,Ze)}),e=_.focusZoneAs,gt.createElement(void 0===e?Zs:e,ht({},Qe),t)):null,$e&&qe($e,Au)));var t})}return null}),function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||da(e,t)});function Bu(e){return e.which===Tn.alt||"Meta"===e.key}function Fu(e,t){var o;null===(o=e.onMouseDown)||void 0===o||o.call(e,e,t)}function Au(e,t){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function Lu(o,n){return o&&function(e,t){return Hu(e,n),o(e,t)}}function Hu(e,t){e&&t&&(e.persist(),t instanceof Event?e.target=t.target:t instanceof Element&&(e.target=t))}Nu.displayName="ContextualMenuBase";var Ou={root:"ms-ContextualMenu",container:"ms-ContextualMenu-container",list:"ms-ContextualMenu-list",header:"ms-ContextualMenu-header",title:"ms-ContextualMenu-title",isopen:"is-open"};function zu(e){return gt.createElement(Wu,ht({},e))}var Wu=In(Nu,function(e){var t=e.className,o=e.theme,n=zo(Ou,o),r=o.fonts,i=o.semanticColors,e=o.effects;return{root:[o.fonts.medium,n.root,n.isopen,{backgroundColor:i.menuBackground,minWidth:"180px"},t],container:[n.container,{selectors:{":focus":{outline:0}}}],list:[n.list,n.isopen,{listStyleType:"none",margin:"0",padding:"0"}],header:[n.header,r.small,{fontWeight:Fe.semibold,color:i.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:36,lineHeight:36,cursor:"default",padding:"0px 6px",userSelect:"none",textAlign:"left"}],title:[n.title,{fontSize:r.mediumPlus.fontSize,paddingRight:"14px",paddingLeft:"14px",paddingBottom:"5px",paddingTop:"5px",backgroundColor:i.menuItemBackgroundPressed}],subComponentStyles:{callout:{root:{boxShadow:e.elevation8}},menuItem:{}}}},function(e){return{onRenderSubMenu:e.onRenderSubMenu?Ma(e.onRenderSubMenu,zu):zu}},{scope:"ContextualMenu"}),Vu=Wu;Vu.displayName="ContextualMenu";var Ku={msButton:"ms-Button",msButtonHasMenu:"ms-Button--hasMenu",msButtonIcon:"ms-Button-icon",msButtonMenuIcon:"ms-Button-menuIcon",msButtonLabel:"ms-Button-label",msButtonDescription:"ms-Button-description",msButtonScreenReaderText:"ms-Button-screenReaderText",msButtonFlexContainer:"ms-Button-flexContainer",msButtonTextContainer:"ms-Button-textContainer"},Gu=Ao(function(e,t,o,n,r,i,s,a,l,c,u){e=zo(Ku,e||{}),c=c&&!u;return pn({root:[e.msButton,t.root,n,l&&["is-checked",t.rootChecked],c&&["is-expanded",t.rootExpanded,{selectors:((n={})[":hover ."+e.msButtonIcon]=t.iconExpandedHovered,n[":hover ."+e.msButtonMenuIcon]=t.menuIconExpandedHovered||t.rootExpandedHovered,n[":hover"]=t.rootExpandedHovered,n)}],a&&[Ku.msButtonHasMenu,t.rootHasMenu],s&&["is-disabled",t.rootDisabled],!s&&!c&&!l&&{selectors:((a={":hover":t.rootHovered})[":hover ."+e.msButtonLabel]=t.labelHovered,a[":hover ."+e.msButtonIcon]=t.iconHovered,a[":hover ."+e.msButtonDescription]=t.descriptionHovered,a[":hover ."+e.msButtonMenuIcon]=t.menuIconHovered,a[":focus"]=t.rootFocused,a[":active"]=t.rootPressed,a[":active ."+e.msButtonIcon]=t.iconPressed,a[":active ."+e.msButtonDescription]=t.descriptionPressed,a[":active ."+e.msButtonMenuIcon]=t.menuIconPressed,a)},s&&l&&[t.rootCheckedDisabled],!s&&l&&{selectors:{":hover":t.rootCheckedHovered,":active":t.rootCheckedPressed}},o],flexContainer:[e.msButtonFlexContainer,t.flexContainer],textContainer:[e.msButtonTextContainer,t.textContainer],icon:[e.msButtonIcon,r,t.icon,c&&t.iconExpanded,l&&t.iconChecked,s&&t.iconDisabled],label:[e.msButtonLabel,t.label,l&&t.labelChecked,s&&t.labelDisabled],menuIcon:[e.msButtonMenuIcon,i,t.menuIcon,l&&t.menuIconChecked,s&&!u&&t.menuIconDisabled,!s&&!c&&!l&&{selectors:{":hover":t.menuIconHovered,":active":t.menuIconPressed}},c&&["is-expanded",t.menuIconExpanded]],description:[e.msButtonDescription,t.description,l&&t.descriptionChecked,s&&t.descriptionDisabled],screenReaderText:[e.msButtonScreenReaderText,t.screenReaderText]})}),Uu=Ao(function(e,t,o,n,r){return{root:j(e.splitButtonMenuButton,o&&[e.splitButtonMenuButtonExpanded],t&&[e.splitButtonMenuButtonDisabled],n&&!t&&[e.splitButtonMenuButtonChecked],r&&!t&&[{selectors:{":focus":e.splitButtonMenuFocused}}]),splitButtonContainer:j(e.splitButtonContainer,!t&&n&&[e.splitButtonContainerChecked,{selectors:{":hover":e.splitButtonContainerCheckedHovered}}],!t&&!n&&[{selectors:{":hover":e.splitButtonContainerHovered,":focus":e.splitButtonContainerFocused}}],t&&e.splitButtonContainerDisabled),icon:j(e.splitButtonMenuIcon,t&&e.splitButtonMenuIconDisabled,!t&&r&&e.splitButtonMenuIcon),flexContainer:j(e.splitButtonFlexContainer),divider:j(e.splitButtonDivider,(r||t)&&e.splitButtonDividerDisabled)}}),ju=Lo(function(t){var r=t;return Lo(function(e){if(t===e)throw new Error("Attempted to compose a component with itself.");var o=e,n=Lo(function(t){return function(e){return gt.createElement(o,ht({},e,{defaultRender:t}))}});return function(e){var t=e.defaultRender;return gt.createElement(r,ht({},e,{defaultRender:t?n(t):o}))}})});function qu(e,t){return ju(e)(t)}var Yu,Zu=(l(Xu,Yu=gt.Component),Object.defineProperty(Xu.prototype,"_isSplitButton",{get:function(){return!!this.props.menuProps&&!!this.props.onClick&&!0===this.props.split},enumerable:!1,configurable:!0}),Xu.prototype.render=function(){var e=this.props,t=e.ariaDescription,o=e.ariaLabel,n=e.ariaHidden,r=e.className,i=e.disabled,s=e.allowDisabledFocus,a=e.primaryDisabled,l=e.secondaryText,c=void 0===l?this.props.description:l,u=e.href,d=e.iconProps,p=e.menuIconProps,h=e.styles,m=e.checked,g=e.variantClassName,f=e.theme,v=e.toggle,b=e.getClassNames,l=e.role,e=this.state.menuHidden,a=i||a;this._classNames=b?b(f,r,g,d&&d.className,p&&p.className,a,m,!e,!!this.props.menuProps,this.props.split,!!s):Gu(f,h,r,g,d&&d.className,p&&p.className,a,!!this.props.menuProps,m,!e,this.props.split);h=this._ariaDescriptionId,r=this._labelId,g=this._descriptionId,d=!a&&!!u,p=d?"a":"button",u=ur(pa(d?{}:{type:"button"},this.props.rootProps,this.props),d?qn:Yn,["disabled"]),d=o||u["aria-label"],o=void 0;t?o=h:c&&this.props.onRenderDescription!==wa?o=g:u["aria-describedby"]&&(o=u["aria-describedby"]);g=void 0;u["aria-labelledby"]?g=u["aria-labelledby"]:o&&!d&&(g=this._hasText()?r:void 0);var i=!(!1===this.props["data-is-focusable"]||i&&!s||this._isSplitButton),l="menuitemcheckbox"===l||"checkbox"===l,m=l||!0===v?!!m:void 0,i=pa(u,((i={className:this._classNames.root,ref:this._mergedRef(this.props.elementRef,this._buttonElement),disabled:a&&!s,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onClick:this._onClick,"aria-label":d,"aria-labelledby":g,"aria-describedby":o,"aria-disabled":a,"data-is-focusable":i})[l?"aria-checked":"aria-pressed"]=m,i));return n&&(i["aria-hidden"]=!0),this._isSplitButton?this._onRenderSplitButtonContent(p,i):(this.props.menuProps&&(n=void 0===(n=this.props.menuProps.id)?this._labelId+"-menu":n,pa(i,{"aria-expanded":!e,"aria-controls":e?null:n,"aria-haspopup":!0})),this._onRenderContent(p,i))},Xu.prototype.componentDidMount=function(){this._isSplitButton&&this._splitButtonContainer.current&&("onpointerdown"in this._splitButtonContainer.current&&this._events.on(this._splitButtonContainer.current,"pointerdown",this._onPointerDown,!0),"onpointerup"in this._splitButtonContainer.current&&this.props.onPointerUp&&this._events.on(this._splitButtonContainer.current,"pointerup",this.props.onPointerUp,!0))},Xu.prototype.componentDidUpdate=function(e,t){this.props.onAfterMenuDismiss&&!t.menuHidden&&this.state.menuHidden&&this.props.onAfterMenuDismiss()},Xu.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},Xu.prototype.focus=function(){this._isSplitButton&&this._splitButtonContainer.current?(vo(!0),this._splitButtonContainer.current.focus()):this._buttonElement.current&&(vo(!0),this._buttonElement.current.focus())},Xu.prototype.dismissMenu=function(){this._dismissMenu()},Xu.prototype.openMenu=function(e,t){this._openMenu(e,t)},Xu.prototype._onRenderContent=function(e,t){var o=this,n=this.props,r=e,i=n.menuIconProps,s=n.menuProps,a=n.onRenderIcon,l=void 0===a?this._onRenderIcon:a,c=n.onRenderAriaDescription,u=void 0===c?this._onRenderAriaDescription:c,e=n.onRenderChildren,d=void 0===e?this._onRenderChildren:e,a=n.onRenderMenu,p=void 0===a?this._onRenderMenu:a,c=n.onRenderMenuIcon,h=void 0===c?this._onRenderMenuIcon:c,e=n.disabled,a=n.keytipProps;a&&s&&(a=this._getMemoizedMenuButtonKeytipProps(a));c=function(e){return gt.createElement(r,ht({},t,e),gt.createElement("span",{className:o._classNames.flexContainer,"data-automationid":"splitbuttonprimary"},l(n,o._onRenderIcon),o._onRenderTextContents(),u(n,o._onRenderAriaDescription),d(n,o._onRenderChildren),!o._isSplitButton&&(s||i||o.props.onRenderMenuIcon)&&h(o.props,o._onRenderMenuIcon),s&&!s.doNotLayer&&o._shouldRenderMenu()&&p(o._getMenuProps(s),o._onRenderMenu)))},c=a?gt.createElement(Zc,{keytipProps:this._isSplitButton?void 0:a,ariaDescribedBy:t["aria-describedby"],disabled:e},c):c();return s&&s.doNotLayer?gt.createElement(gt.Fragment,null,c,this._shouldRenderMenu()&&p(this._getMenuProps(s),this._onRenderMenu)):gt.createElement(gt.Fragment,null,c,gt.createElement(na,null))},Xu.prototype._shouldRenderMenu=function(){var e=this.state.menuHidden,t=this.props,o=t.persistMenu,t=t.renderPersistedMenuHiddenOnMount;return!e||!(!o||!this._renderedVisibleMenu&&!t)},Xu.prototype._hasText=function(){return null!==this.props.text&&(void 0!==this.props.text||"string"==typeof this.props.children)},Xu.prototype._getMenuProps=function(e){var t=this.props.persistMenu,o=this.state.menuHidden;return e.ariaLabel||e.labelElementId||!this._hasText()||(e=ht(ht({},e),{labelElementId:this._labelId})),ht(ht({id:this._labelId+"-menu",directionalHint:Pa.bottomLeftEdge},e),{shouldFocusOnContainer:this._menuShouldFocusOnContainer,shouldFocusOnMount:this._menuShouldFocusOnMount,hidden:t?o:void 0,className:Pr("ms-BaseButton-menuhost",e.className),target:(this._isSplitButton?this._splitButtonContainer:this._buttonElement).current,onDismiss:this._onDismissMenu})},Xu.prototype._onRenderSplitButtonContent=function(t,o){var n=this,e=this.props,r=e.styles,i=void 0===r?{}:r,s=e.disabled,a=e.allowDisabledFocus,l=e.checked,c=e.getSplitButtonClassNames,u=e.primaryDisabled,d=e.menuProps,p=e.toggle,h=e.role,r=e.primaryActionButtonProps,e=this.props.keytipProps,m=this.state.menuHidden,g=c?c(!!s,!m,!!l,!!a):i&&Uu(i,!!s,!m,!!l,!!u);pa(o,{onClick:void 0,onPointerDown:void 0,onPointerUp:void 0,tabIndex:-1,"data-is-focusable":!1}),e&&d&&(e=this._getMemoizedMenuButtonKeytipProps(e));var f=ur(o,[],["disabled"]);r&&pa(o,r);r=function(e){return gt.createElement("div",ht({},f,{"data-ktp-target":e?e["data-ktp-target"]:void 0,role:h||"button","aria-disabled":s,"aria-haspopup":!0,"aria-expanded":!m,"aria-pressed":p?!!l:void 0,"aria-describedby":Ia(o["aria-describedby"],e?e["aria-describedby"]:void 0),className:g&&g.splitButtonContainer,onKeyDown:n._onSplitButtonContainerKeyDown,onTouchStart:n._onTouchStart,ref:n._splitButtonContainer,"data-is-focusable":!0,onClick:s||u?void 0:n._onSplitButtonPrimaryClick,tabIndex:!s&&!u||a?0:void 0,"aria-roledescription":o["aria-roledescription"],onFocusCapture:n._onSplitContainerFocusCapture}),gt.createElement("span",{style:{display:"flex"}},n._onRenderContent(t,o),n._onRenderSplitButtonMenuButton(g,e),n._onRenderSplitButtonDivider(g)))};return e?gt.createElement(Zc,{keytipProps:e,disabled:s},r):r()},Xu.prototype._onRenderSplitButtonDivider=function(e){return e&&e.divider?gt.createElement("span",{className:e.divider,"aria-hidden":!0,onClick:function(e){e.stopPropagation()}}):null},Xu.prototype._onRenderSplitButtonMenuButton=function(e,t){var o=this.props,n=o.allowDisabledFocus,r=o.checked,i=o.disabled,s=o.splitButtonMenuProps,a=o.splitButtonAriaLabel,l=o.primaryDisabled,c=this.state.menuHidden,o=this.props.menuIconProps;void 0===o&&(o={iconName:"ChevronDown"});c=ht(ht({},s),{styles:e,checked:r,disabled:i,allowDisabledFocus:n,onClick:this._onMenuClick,menuProps:void 0,iconProps:ht(ht({},o),{className:this._classNames.menuIcon}),ariaLabel:a,"aria-haspopup":!0,"aria-expanded":!c,"data-is-focusable":!1});return gt.createElement(Xu,ht({},c,{"data-ktp-execute-target":t&&t["data-ktp-execute-target"],onMouseDown:this._onMouseDown,tabIndex:l&&!n?0:-1}))},Xu.prototype._onPointerDown=function(e){var t=this.props.onPointerDown;t&&t(e),"touch"===e.pointerType&&(this._handleTouchAndPointerEvent(),e.preventDefault(),e.stopImmediatePropagation())},Xu.prototype._handleTouchAndPointerEvent=function(){var e=this;void 0!==this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){e._processingTouch=!1,e._lastTouchTimeoutId=void 0,e.focus()},500)},Xu.prototype._isValidMenuOpenKey=function(e){return this.props.menuTriggerKeyCode?e.which===this.props.menuTriggerKeyCode:!!this.props.menuProps&&e.which===Tn.down&&(e.altKey||e.metaKey)},Xu.defaultProps={baseClassName:"ms-Button",styles:{},split:!1},Xu);function Xu(e){var s=Yu.call(this,e)||this;return s._buttonElement=gt.createRef(),s._splitButtonContainer=gt.createRef(),s._mergedRef=Yi(),s._renderedVisibleMenu=!1,s._getMemoizedMenuButtonKeytipProps=Ao(function(e){return ht(ht({},e),{hasMenu:!0})}),s._onRenderIcon=function(e,t){var o=s.props.iconProps;if(o&&(void 0!==o.iconName||o.imageProps)){var n=o.className,r=o.imageProps,i=mt(o,["className","imageProps"]);if(o.styles)return gt.createElement(Vr,ht({className:Pr(s._classNames.icon,n),imageProps:r},i));if(o.iconName)return gt.createElement(Hr,ht({className:Pr(s._classNames.icon,n)},i));if(r)return gt.createElement(Ea,ht({className:Pr(s._classNames.icon,n),imageProps:r},i))}return null},s._onRenderTextContents=function(){var e=s.props,t=e.text,o=e.children,n=e.secondaryText,r=void 0===n?s.props.description:n,n=e.onRenderText,n=void 0===n?s._onRenderText:n,e=e.onRenderDescription,e=void 0===e?s._onRenderDescription:e;return t||"string"==typeof o||r?gt.createElement("span",{className:s._classNames.textContainer},n(s.props,s._onRenderText),e(s.props,s._onRenderDescription)):[n(s.props,s._onRenderText),e(s.props,s._onRenderDescription)]},s._onRenderText=function(){var e=s.props.text,t=s.props.children;return void 0===e&&"string"==typeof t&&(e=t),s._hasText()?gt.createElement("span",{key:s._labelId,className:s._classNames.label,id:s._labelId},e):null},s._onRenderChildren=function(){var e=s.props.children;return"string"==typeof e?null:e},s._onRenderDescription=function(e){e=e.secondaryText,e=void 0===e?s.props.description:e;return e?gt.createElement("span",{key:s._descriptionId,className:s._classNames.description,id:s._descriptionId},e):null},s._onRenderAriaDescription=function(){var e=s.props.ariaDescription;return e?gt.createElement("span",{className:s._classNames.screenReaderText,id:s._ariaDescriptionId},e):null},s._onRenderMenuIcon=function(e){var t=s.props.menuIconProps;return gt.createElement(Hr,ht({iconName:"ChevronDown"},t,{className:s._classNames.menuIcon}))},s._onRenderMenu=function(e){var t=s.props.menuAs?qu(s.props.menuAs,Vu):Vu;return gt.createElement(t,ht({},e))},s._onDismissMenu=function(e){var t=s.props.menuProps;t&&t.onDismiss&&t.onDismiss(e),e&&e.defaultPrevented||s._dismissMenu()},s._dismissMenu=function(){s._menuShouldFocusOnMount=void 0,s._menuShouldFocusOnContainer=void 0,s.setState({menuHidden:!0})},s._openMenu=function(e,t){void 0===t&&(t=!0),s.props.menuProps&&(s._menuShouldFocusOnContainer=e,s._menuShouldFocusOnMount=t,s._renderedVisibleMenu=!0,s.setState({menuHidden:!1}))},s._onToggleMenu=function(e){var t=!0;s.props.menuProps&&!1===s.props.menuProps.shouldFocusOnMount&&(t=!1),s.state.menuHidden?s._openMenu(e,t):s._dismissMenu()},s._onSplitContainerFocusCapture=function(e){var t=s._splitButtonContainer.current;!t||e.target&&As(e.target,t)||t.focus()},s._onSplitButtonPrimaryClick=function(e){s.state.menuHidden||s._dismissMenu(),!s._processingTouch&&s.props.onClick?s.props.onClick(e):s._processingTouch&&s._onMenuClick(e)},s._onKeyDown=function(e){!s.props.disabled||e.which!==Tn.enter&&e.which!==Tn.space?s.props.disabled||(s.props.menuProps?s._onMenuKeyDown(e):void 0!==s.props.onKeyDown&&s.props.onKeyDown(e)):(e.preventDefault(),e.stopPropagation())},s._onKeyUp=function(e){s.props.disabled||void 0===s.props.onKeyUp||s.props.onKeyUp(e)},s._onKeyPress=function(e){s.props.disabled||void 0===s.props.onKeyPress||s.props.onKeyPress(e)},s._onMouseUp=function(e){s.props.disabled||void 0===s.props.onMouseUp||s.props.onMouseUp(e)},s._onMouseDown=function(e){s.props.disabled||void 0===s.props.onMouseDown||s.props.onMouseDown(e)},s._onClick=function(e){s.props.disabled||(s.props.menuProps?s._onMenuClick(e):void 0!==s.props.onClick&&s.props.onClick(e))},s._onSplitButtonContainerKeyDown=function(e){e.which===Tn.enter||e.which===Tn.space?s._buttonElement.current&&(s._buttonElement.current.click(),e.preventDefault(),e.stopPropagation()):s._onMenuKeyDown(e)},s._onMenuKeyDown=function(e){var t,o,n;s.props.disabled||(s.props.onKeyDown&&s.props.onKeyDown(e),t=e.which===Tn.up,o=e.which===Tn.down,!e.defaultPrevented&&s._isValidMenuOpenKey(e)&&((n=s.props.onMenuClick)&&n(e,s.props),s._onToggleMenu(!1),e.preventDefault(),e.stopPropagation()),e.which!==Tn.enter&&e.which!==Tn.space||vo(!0,e.target),e.altKey||e.metaKey||!t&&!o||!s.state.menuHidden&&s.props.menuProps&&((void 0!==s._menuShouldFocusOnMount?s._menuShouldFocusOnMount:s.props.menuProps.shouldFocusOnMount)||(e.preventDefault(),e.stopPropagation(),s._menuShouldFocusOnMount=!0,s.forceUpdate())))},s._onTouchStart=function(){!s._isSplitButton||!s._splitButtonContainer.current||"onpointerdown"in s._splitButtonContainer.current||s._handleTouchAndPointerEvent()},s._onMenuClick=function(e){var t=s.props.onMenuClick;t&&t(e,s.props),e.defaultPrevented||(s._onToggleMenu(!1),e.preventDefault(),e.stopPropagation())},vi(s),s._async=new xi(s),s._events=new va(s),s.props.split,s._labelId=Ss(),s._descriptionId=Ss(),s._ariaDescriptionId=Ss(),s.state={menuHidden:!0},s}function Qu(i,s,a){return function(r){var t,e=(l(o,t=gt.Component),o.prototype.componentDidMount=function(){yt.observe(this._onSettingChanged)},o.prototype.componentWillUnmount=function(){yt.unobserve(this._onSettingChanged)},o.prototype.render=function(){var n=this;return gt.createElement(xn.Consumer,null,function(e){var t=yt.getSettings(s,i,e.customizations),o=n.props;return t.styles&&"function"==typeof t.styles&&(t.styles=t.styles(ht(ht({},t),o))),a&&t.styles?(n._styleCache.default===t.styles&&n._styleCache.component===o.styles||(e=un(t.styles,o.styles),n._styleCache.default=t.styles,n._styleCache.component=o.styles,n._styleCache.merged=e),gt.createElement(r,ht({},t,o,{styles:n._styleCache.merged}))):gt.createElement(r,ht({},t,o))})},o.prototype._onSettingChanged=function(){this.forceUpdate()},o.displayName="Customized"+i,o);function o(e){e=t.call(this,e)||this;return e._styleCache={},e._onSettingChanged=e._onSettingChanged.bind(e),e}return mu(r,e)}}function Ju(e){return{fontSize:e,margin:"0 4px",height:"16px",lineHeight:"16px",textAlign:"center",flexShrink:0}}var $u,ed,td={outline:0},od=Ao(function(e){var t=e.semanticColors,o=e.effects,n=e.fonts,r=t.buttonBorder,i=t.disabledBackground,s=t.disabledText,t={left:-2,top:-2,bottom:-2,right:-2,outlineColor:"ButtonText"};return{root:[bo(e,{inset:1,highContrastStyle:t,borderColor:"transparent"}),e.fonts.medium,{boxSizing:"border-box",border:"1px solid "+r,userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",padding:"0 16px",borderRadius:o.roundedCorner2,selectors:{":active > *":{position:"relative",left:0,top:0}}}],rootDisabled:[bo(e,{inset:1,highContrastStyle:t,borderColor:"transparent"}),{backgroundColor:i,borderColor:i,color:s,cursor:"default",selectors:{":hover":td,":focus":td}}],iconDisabled:{color:s,selectors:((i={})[Yt]={color:"GrayText"},i)},menuIconDisabled:{color:s,selectors:((s={})[Yt]={color:"GrayText"},s)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:Ju(n.mediumPlus.fontSize),menuIcon:Ju(n.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:So}}),nd=Ao(function(e,t){var o,n=e.effects,r=e.palette,i=e.semanticColors,s={left:-2,top:-2,bottom:-2,right:-2,border:"none"},a={position:"absolute",width:1,right:31,top:8,bottom:8};return un({splitButtonContainer:[bo(e,{highContrastStyle:s,inset:2}),{display:"inline-flex",selectors:{".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none"},".ms-Button--primary":{borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",selectors:((o={})[Yt]=ht({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)},".ms-Button--primary + .ms-Button":{border:"none",selectors:((o={})[Yt]={border:"1px solid WindowText",borderLeftWidth:"0"},o)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:((o={})[Yt]={color:"Window",backgroundColor:"Highlight"},o)},".ms-Button.is-disabled":{color:i.buttonTextDisabled,selectors:((i={})[Yt]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:((i={})[Yt]=ht({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:((i={})[Yt]=ht({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:((r={padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:n.roundedCorner2,borderBottomRightRadius:n.roundedCorner2,border:"1px solid "+r.neutralSecondaryAlt,borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0})[Yt]={".ms-Button-menuIcon":{color:"WindowText"}},r),splitButtonDivider:ht(ht({},a),{selectors:((r={})[Yt]={backgroundColor:"WindowText"},r)}),splitButtonDividerDisabled:ht(ht({},a),{selectors:((a={})[Yt]={backgroundColor:"GrayText"},a)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:((a={":hover":{cursor:"default"},".ms-Button--primary":{selectors:((a={})[Yt]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},a)},".ms-Button-menuIcon":{selectors:((a={})[Yt]={color:"GrayText"},a)}})[Yt]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},a)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:((a={})[Yt]=ht({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),a)},splitButtonMenuFocused:ht({},bo(e,{highContrastStyle:s,inset:2}))},t)}),rd=Ao(function(e,t){var o=od(e),n=nd(e),r=e.palette;return un(o,{root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:e.semanticColors.link},rootHovered:{color:r.themeDarkAlt,backgroundColor:r.neutralLighter,selectors:((e={})[Yt]={borderColor:"Highlight",color:"Highlight"},e)},rootHasMenu:{width:"auto"},rootPressed:{color:r.themeDark,backgroundColor:r.neutralLight},rootExpanded:{color:r.themeDark,backgroundColor:r.neutralLight},rootChecked:{color:r.themeDark,backgroundColor:r.neutralLight},rootCheckedHovered:{color:r.themeDark,backgroundColor:r.neutralQuaternaryAlt},rootDisabled:{color:r.neutralTertiaryAlt}},n,t)}),id=(l(sd,ed=gt.Component),sd.prototype.render=function(){var e=this.props,t=e.styles,e=e.theme;return gt.createElement(Zu,ht({},this.props,{variantClassName:"ms-Button--icon",styles:rd(e,t),onRenderText:wa,onRenderDescription:wa}))},c([Qu("IconButton",["theme","styles"],!0)],sd));function sd(){return null!==ed&&ed.apply(this,arguments)||this}(K=$u=$u||{})[K.horizontal=0]="horizontal",K[K.vertical=1]="vertical";var ad=function(){var o={};return{getCachedMeasurement:function(e){if(e&&e.cacheKey&&o.hasOwnProperty(e.cacheKey))return o[e.cacheKey]},addMeasurementToCache:function(e,t){e.cacheKey&&(o[e.cacheKey]=t)}}},ld=function(e){var a,l=e=void 0===e?ad():e;function c(e,t){var o=l.getCachedMeasurement(e);if(void 0!==o)return o;t=t();return l.addMeasurementToCache(e,t),t}function u(e,t,o){for(var n=e,r=c(e,o);a<r;){var i=t(n);if(void 0===i)return{renderedData:n,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(r=l.getCachedMeasurement(i)))return{dataToMeasure:i,resizeDirection:"shrink"};n=i}return{renderedData:n,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(e,t,o,n){if(void 0!==n||void 0!==t.dataToMeasure){if(n){if(a&&t.renderedData&&!t.dataToMeasure)return ht(ht({},t),function(e,t,o,n){o=a<e?n?{resizeDirection:"grow",dataToMeasure:n(o)}:{resizeDirection:"shrink",dataToMeasure:t}:{resizeDirection:"shrink",dataToMeasure:o};return a=e,ht(ht({},o),{measureContainer:!1})}(n,e.data,t.renderedData,e.onGrowData));a=n}n=ht(ht({},t),{measureContainer:!1});return n=t.dataToMeasure?"grow"===t.resizeDirection&&e.onGrowData?ht(ht({},n),function(e,t,o,n){for(var r=e,i=c(e,o);i<a;){var s=t(r);if(void 0===s)return{renderedData:r,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(i=l.getCachedMeasurement(s)))return{dataToMeasure:s};r=s}return ht({resizeDirection:"shrink"},u(r,n,o))}(t.dataToMeasure,e.onGrowData,o,e.onReduceData)):ht(ht({},n),u(t.dataToMeasure,e.onReduceData,o)):n}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==l.getCachedMeasurement(e))},getInitialResizeGroupState:function(e){return{dataToMeasure:ht({},e),resizeDirection:"grow",measureContainer:!0}}}},cd=gt.createContext({isMeasured:!1}),ud={position:"fixed",visibility:"hidden"},dd={position:"relative"};function pd(e,t){var o;switch(t.type){case"resizeData":return ht({},t.value);case"dataToMeasure":return ht(ht({},e),{dataToMeasure:t.value,resizeDirection:"grow",measureContainer:!0});default:return ht(ht({},e),((o={})[t.type]=t.value,o))}}var hd={isMeasured:!0},md=gt.forwardRef(function(e,t){var o=gt.useRef(null),n=Sr(o,t),r=function(o,n){var r=xl(ld),i=gt.useRef(null),s=gt.useRef(null),a=gt.useRef(!1),e=kl(),t=function(e,t,o){var n=xl(function(){return t.getInitialResizeGroupState(e.data)}),r=gt.useReducer(pd,n),i=r[0],s=r[1];gt.useEffect(function(){s({type:"dataToMeasure",value:e.data})},[e.data]);n=gt.useRef(n);return n.current=ht({},i),[n,gt.useCallback(function(e){e&&s({type:"resizeData",value:e})},[]),gt.useCallback(function(){o.current&&s({type:"measureContainer",value:!0})},[o])]}(o,r,n),l=t[0],c=t[1],u=t[2];gt.useEffect(function(){var e;l.current.renderedData&&(a.current=!0,null===(e=o.dataDidRender)||void 0===e||e.call(o,l.current.renderedData))}),gt.useEffect(function(){e.requestAnimationFrame(function(){var e,t=void 0;l.current.measureContainer&&n.current&&(e=n.current.getBoundingClientRect(),t=o.direction===$u.vertical?e.height:e.width);t=r.getNextState(o,l.current,function(){var e=a.current?s:i;if(!e.current)return 0;e=e.current.getBoundingClientRect();return o.direction===$u.vertical?e.height:e.width},t);c(t)},n.current)}),wl(Dl(),"resize",e.debounce(u,16,{leading:!0}));var d=r.shouldRenderDataForMeasurement(l.current.dataToMeasure),t=!a.current&&d;return[l.current.dataToMeasure,l.current.renderedData,u,i,s,d,t]}(e,o),i=r[0],s=r[1],a=r[2],l=r[3],c=r[4],u=r[5],t=r[6];gt.useImperativeHandle(e.componentRef,function(){return{remeasure:a}},[a]);o=e.className,r=e.onRenderData,e=ur(e,cr,["data"]);return gt.createElement("div",ht({},e,{className:o,ref:n}),gt.createElement("div",{style:dd},u&&!t&>.createElement("div",{style:ud,ref:c},gt.createElement(cd.Provider,{value:hd},r(i))),gt.createElement("div",{ref:l,style:t?ud:void 0,"data-automation-id":"visibleContent"},t?r(i):s&&r(s))))});md.displayName="ResizeGroupBase";var gd,fd=md;function vd(e){return e.clientWidth<e.scrollWidth}function bd(e){return e.clientHeight<e.scrollHeight}function yd(e){return vd(e)||bd(e)}(G=gd=gd||{})[G.Parent=0]="Parent",G[G.Self=1]="Self";var Cd,_d,Sd=Fn(),xd=(l(wd,_d=gt.Component),wd.prototype.render=function(){var e=this.props,t=e.className,o=e.calloutProps,n=e.directionalHint,r=e.directionalHintForRTL,i=e.styles,s=e.id,a=e.maxWidth,l=e.onRenderContent,c=void 0===l?this._onRenderContent:l,l=e.targetElement,e=e.theme;return this._classNames=Sd(i,{theme:e,className:t||o&&o.className,beakWidth:o&&o.beakWidth,gapSpace:o&&o.gapSpace,maxWidth:a}),gt.createElement(lc,ht({target:l,directionalHint:n,directionalHintForRTL:r},o,ur(this.props,cr,["id"]),{className:this._classNames.root}),gt.createElement("div",{className:this._classNames.content,id:s,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},c(this.props,this._onRenderContent)))},wd.defaultProps={directionalHint:Pa.topCenter,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},wd),kd=In(xd,function(e){var t=e.className,o=e.beakWidth,n=void 0===o?16:o,r=e.gapSpace,i=void 0===r?0:r,s=e.maxWidth,a=e.theme,o=a.semanticColors,r=a.fonts,e=a.effects,i=-(Math.sqrt(n*n/2)+i)+1/window.devicePixelRatio;return{root:["ms-Tooltip",a.fonts.medium,Le.fadeIn200,{background:o.menuBackground,boxShadow:e.elevation8,padding:"8px",maxWidth:s,selectors:{":after":{content:"''",position:"absolute",bottom:i,left:i,right:i,top:i,zIndex:0}}},t],content:["ms-Tooltip-content",r.small,{position:"relative",zIndex:1,color:o.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}},void 0,{scope:"Tooltip"});function wd(){var t=null!==_d&&_d.apply(this,arguments)||this;return t._onRenderContent=function(e){return"string"==typeof e.content?gt.createElement("p",{className:t._classNames.subText},e.content):gt.createElement("div",{className:t._classNames.subText},e.content)},t}(Y=Cd=Cd||{})[Y.zero=0]="zero",Y[Y.medium=1]="medium",Y[Y.long=2]="long";function Id(){return null}var Dd,Td,Ed=Fn(),Pd=(l(Ld,Td=gt.Component),Ld.prototype.render=function(){var e=this.props,t=e.calloutProps,o=e.children,n=e.content,r=e.directionalHint,i=e.directionalHintForRTL,s=e.hostClassName,a=e.id,l=e.setAriaDescribedBy,c=void 0===l||l,u=e.tooltipProps,d=e.styles,l=e.theme;this._classNames=Ed(d,{theme:l,className:s});e=this.state,d=e.isAriaPlaceholderRendered,l=e.isTooltipVisible,s=a||this._defaultTooltipId,e=!!(n||u&&u.onRenderContent&&u.onRenderContent()),a=l&&e;return gt.createElement("div",ht({className:this._classNames.root,ref:this._tooltipHost},{onFocusCapture:this._onTooltipFocus},{onBlurCapture:this._onTooltipBlur},{onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,role:"none","aria-describedby":c&&l&&e?s:void 0}),o,a&>.createElement(kd,ht({id:s,content:n,targetElement:this._getTargetElement(),directionalHint:r,directionalHintForRTL:i,calloutProps:pa({},t,{onDismiss:this._hideTooltip,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},ur(this.props,cr),u)),d&>.createElement("div",{id:s,role:"none",style:So},n))},Ld.prototype.componentWillUnmount=function(){Ld._currentVisibleTooltip&&Ld._currentVisibleTooltip===this&&(Ld._currentVisibleTooltip=void 0),this._async.dispose()},Ld.defaultProps={delay:Cd.medium},Ld),Rd={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Md=In(Pd,function(e){var t=e.className,e=e.theme;return{root:[zo(Rd,e).root,{display:"inline"},t]}},void 0,{scope:"TooltipHost"}),Nd=Fn(),Bd={styles:function(e){return{root:{selectors:{"&.is-disabled":{color:e.theme.semanticColors.bodyText}}}}}},Fd=(l(Ad,Dd=gt.Component),Ad.prototype.focus=function(){this._focusZone.current&&this._focusZone.current.focus()},Ad.prototype.render=function(){this._validateProps(this.props);var e=this.props,t=e.onReduceData,o=void 0===t?this._onReduceData:t,n=e.onGrowData,r=void 0===n?this._onGrowData:n,i=e.overflowIndex,s=e.maxDisplayedItems,a=e.items,t=e.className,n=e.theme,e=e.styles,a=$e([],a),s=a.splice(i,a.length-s),s={props:this.props,renderedItems:a,renderedOverflowItems:s};return this._classNames=Nd(e,{className:t,theme:n}),gt.createElement(fd,{onRenderData:this._onRenderBreadcrumb,onReduceData:o,onGrowData:r,data:s})},Ad.prototype._validateProps=function(e){var t=e.maxDisplayedItems,o=e.overflowIndex,e=e.items;if(o<0||1<t&&t-1<o||0<e.length&&o>e.length-1)throw new Error("Breadcrumb: overflowIndex out of range")},Ad.defaultProps={items:[],maxDisplayedItems:999,overflowIndex:0},Ad);function Ad(e){var p=Dd.call(this,e)||this;return p._focusZone=gt.createRef(),p._onReduceData=function(e){var t=e.renderedItems,o=e.renderedOverflowItems,n=e.props.overflowIndex,r=t[n];if(r)return(t=$e([],t)).splice(n,1),o=$e($e([],o),[r]),ht(ht({},e),{renderedItems:t,renderedOverflowItems:o})},p._onGrowData=function(e){var t=e.renderedItems,o=e.renderedOverflowItems,n=e.props,r=n.overflowIndex,i=n.maxDisplayedItems,n=(o=$e([],o)).pop();if(n&&!(t.length>=i))return(t=$e([],t)).splice(r,0,n),ht(ht({},e),{renderedItems:t,renderedOverflowItems:o})},p._onRenderBreadcrumb=function(e){var t=e.props,o=t.ariaLabel,n=t.dividerAs,r=void 0===n?Vr:n,i=t.onRenderItem,s=t.overflowAriaLabel,a=t.overflowIndex,l=t.onRenderOverflowIcon,c=t.overflowButtonAs,n=e.renderedOverflowItems,t=e.renderedItems,e=n.map(function(e){var t=!(!e.onClick&&!e.href);return{text:e.text,name:e.text,key:e.key,onClick:e.onClick?p._onBreadcrumbClicked.bind(p,e):null,href:e.href,disabled:!t,itemProps:t?void 0:Bd}}),u=t.length-1,d=n&&0!==n.length,t=t.map(function(e,t){var o=p._onRenderItem;return e.onRender&&(o=Ma(e.onRender,o)),i&&(o=Ma(i,o)),gt.createElement("li",{className:p._classNames.listItem,key:e.key||String(t)},o(e),(t!==u||d&&t===a-1)&>.createElement(r,{className:p._classNames.chevron,iconName:Pn(p.props.theme)?"ChevronLeft":"ChevronRight",item:e}))});d&&t.splice(a,0,gt.createElement("li",{className:p._classNames.overflow,key:"overflow"},gt.createElement(c||id,{className:p._classNames.overflowButton,iconProps:l?{}:{iconName:"More"},role:"button","aria-haspopup":"true",ariaLabel:s,onRenderMenuIcon:l||Id,menuProps:{items:e,directionalHint:Pa.bottomLeftEdge}}),a!==1+u&>.createElement(r,{className:p._classNames.chevron,iconName:Pn(p.props.theme)?"ChevronLeft":"ChevronRight",item:n[n.length-1]})));n=ur(p.props,Wn,["className"]);return gt.createElement("div",ht({className:p._classNames.root,role:"navigation","aria-label":o},n),gt.createElement(Zs,ht({componentRef:p._focusZone,direction:Ei.horizontal},p.props.focusZoneProps),gt.createElement("ol",{className:p._classNames.list},t)))},p._onRenderItem=function(e){if(!e)return null;var t=e.as,o=e.href,n=e.onClick,r=e.isCurrentItem,i=e.text,s=e.onRenderContent,a=mt(e,["as","href","onClick","isCurrentItem","text","onRenderContent"]),l=Hd;return s&&(l=Ma(s,l)),p.props.onRenderItemContent&&(l=Ma(p.props.onRenderItemContent,l)),n||o?gt.createElement(ua,ht({},a,{as:t,className:p._classNames.itemLink,href:o,"aria-current":r?"page":void 0,onClick:p._onBreadcrumbClicked.bind(p,e)}),gt.createElement(Md,ht({content:i,overflowMode:gd.Parent},p.props.tooltipHostProps),l(e))):gt.createElement(t||"span",ht({},a,{className:p._classNames.item}),gt.createElement(Md,ht({content:i,overflowMode:gd.Parent},p.props.tooltipHostProps),l(e)))},p._onBreadcrumbClicked=function(e,t){e.onClick&&e.onClick(t,e)},vi(p),p._validateProps(e),p}function Ld(e){var n=Td.call(this,e)||this;return n._tooltipHost=gt.createRef(),n._defaultTooltipId=Ss("tooltip"),n.show=function(){n._toggleTooltip(!0)},n.dismiss=function(){n._hideTooltip()},n._getTargetElement=function(){if(n._tooltipHost.current){var e=n.props.overflowMode;if(void 0!==e)switch(e){case gd.Parent:return n._tooltipHost.current.parentElement;case gd.Self:return n._tooltipHost.current}return n._tooltipHost.current}},n._onTooltipFocus=function(e){n._ignoreNextFocusEvent?n._ignoreNextFocusEvent=!1:n._onTooltipMouseEnter(e)},n._onTooltipBlur=function(e){n._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===e.target,n._hideTooltip()},n._onTooltipMouseEnter=function(e){var t=n.props,o=t.overflowMode,t=t.delay;if(Ld._currentVisibleTooltip&&Ld._currentVisibleTooltip!==n&&Ld._currentVisibleTooltip.dismiss(),Ld._currentVisibleTooltip=n,void 0!==o){o=n._getTargetElement();if(o&&!yd(o))return}e.target&&As(e.target,n._getTargetElement())||(n._clearDismissTimer(),n._clearOpenTimer(),t!==Cd.zero?(n.setState({isAriaPlaceholderRendered:!0}),t=n._getDelayTime(t),n._openTimerId=n._async.setTimeout(function(){n._toggleTooltip(!0)},t)):n._toggleTooltip(!0))},n._onTooltipMouseLeave=function(e){var t=n.props.closeDelay;n._clearDismissTimer(),n._clearOpenTimer(),t?n._dismissTimerId=n._async.setTimeout(function(){n._toggleTooltip(!1)},t):n._toggleTooltip(!1),Ld._currentVisibleTooltip===n&&(Ld._currentVisibleTooltip=void 0)},n._onTooltipKeyDown=function(e){(e.which===Tn.escape||e.ctrlKey)&&n.state.isTooltipVisible&&(n._hideTooltip(),e.stopPropagation())},n._clearDismissTimer=function(){n._async.clearTimeout(n._dismissTimerId)},n._clearOpenTimer=function(){n._async.clearTimeout(n._openTimerId)},n._hideTooltip=function(){n._clearOpenTimer(),n._clearDismissTimer(),n._toggleTooltip(!1)},n._toggleTooltip=function(e){n.state.isAriaPlaceholderRendered&&n.setState({isAriaPlaceholderRendered:!1}),n.state.isTooltipVisible!==e&&n.setState({isTooltipVisible:e},function(){return n.props.onTooltipToggle&&n.props.onTooltipToggle(e)})},n._getDelayTime=function(e){switch(e){case Cd.medium:return 300;case Cd.long:return 500;default:return 0}},vi(n),n.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},n._async=new xi(n),n}function Hd(e){return e?gt.createElement(gt.Fragment,null,e.text):null}var Od,zd,Wd={root:"ms-Breadcrumb",list:"ms-Breadcrumb-list",listItem:"ms-Breadcrumb-listItem",chevron:"ms-Breadcrumb-chevron",overflow:"ms-Breadcrumb-overflow",overflowButton:"ms-Breadcrumb-overflowButton",itemLink:"ms-Breadcrumb-itemLink",item:"ms-Breadcrumb-item"},Vd={whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},Kd=uo(0,ro),Gd=uo($t,io),Ud=In(Fd,function(e){var t=e.className,o=e.theme,n=o.palette,r=o.semanticColors,i=o.fonts,s=zo(Wd,o),a=r.menuItemBackgroundHovered,l=r.menuItemBackgroundPressed,c=n.neutralSecondary,u=Fe.regular,d=n.neutralPrimary,p=n.neutralPrimary,h=Fe.semibold,e=n.neutralSecondary,r=n.neutralSecondary,p={fontWeight:h,color:p},l={":hover":{color:d,backgroundColor:a,cursor:"pointer",selectors:((a={})[Yt]={color:"Highlight",backgroundColor:"transparent"},a)},":active":{backgroundColor:l,color:d},"&:active:hover":{color:d,backgroundColor:l},"&:active, &:hover, &:active:hover":{textDecoration:"none"}},u={color:c,padding:"0 8px",lineHeight:36,fontSize:18,fontWeight:u};return{root:[s.root,i.medium,{margin:"11px 0 1px"},t],list:[s.list,{whiteSpace:"nowrap",padding:0,margin:0,display:"flex",alignItems:"stretch"}],listItem:[s.listItem,{listStyleType:"none",margin:"0",padding:"0",display:"flex",position:"relative",alignItems:"center",selectors:{"&:last-child .ms-Breadcrumb-itemLink":ht(ht({},p),((t={})[Yt]={MsHighContrastAdjust:"auto",forcedColorAdjust:"auto"},t)),"&:last-child .ms-Breadcrumb-item":p}}],chevron:[s.chevron,{color:e,fontSize:i.small.fontSize,selectors:((e={})[Yt]=ht({color:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),e[Gd]={fontSize:8},e[Kd]={fontSize:8},e)}],overflow:[s.overflow,{position:"relative",display:"flex",alignItems:"center"}],overflowButton:[s.overflowButton,bo(o),Vd,{fontSize:16,color:r,height:"100%",cursor:"pointer",selectors:ht(ht({},l),((r={})[Kd]={padding:"4px 6px"},r[Gd]={fontSize:i.mediumPlus.fontSize},r))}],itemLink:[s.itemLink,bo(o),Vd,ht(ht({},u),{selectors:ht(((n={":focus":{color:n.neutralDark}})["."+go+" &:focus"]={outline:"none"},n),l)})],item:[s.item,ht(ht({},u),{selectors:{":hover":{cursor:"default"}}})]}},void 0,{scope:"Breadcrumb"});function jd(e){var t=e.semanticColors,o=e.palette,n=t.buttonBackground,r=t.buttonBackgroundPressed,i=t.buttonBackgroundHovered,s=t.buttonBackgroundDisabled,a=t.buttonText,l=t.buttonTextHovered,c=t.buttonTextDisabled,u=t.buttonTextChecked,d=t.buttonTextCheckedHovered;return{root:{backgroundColor:n,color:a},rootHovered:{backgroundColor:i,color:l,selectors:((l={})[Yt]={borderColor:"Highlight",color:"Highlight"},l)},rootPressed:{backgroundColor:r,color:u},rootExpanded:{backgroundColor:r,color:u},rootChecked:{backgroundColor:r,color:u},rootCheckedHovered:{backgroundColor:r,color:d},rootDisabled:{color:c,backgroundColor:s,selectors:((s={})[Yt]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},s)},splitButtonContainer:{selectors:((s={})[Yt]={border:"none"},s)},splitButtonMenuButton:{color:o.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:o.neutralLight,selectors:((s={})[Yt]={color:"Highlight"},s)}}},splitButtonMenuButtonDisabled:{backgroundColor:t.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:t.buttonBackgroundDisabled}}},splitButtonDivider:ht(ht({},{position:"absolute",width:1,right:31,top:8,bottom:8}),{backgroundColor:o.neutralTertiaryAlt,selectors:((s={})[Yt]={backgroundColor:"WindowText"},s)}),splitButtonDividerDisabled:{backgroundColor:e.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:o.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:o.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:o.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:o.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:t.buttonText},splitButtonMenuIconDisabled:{color:t.buttonTextDisabled}}}function qd(e){var t,o=e.palette,n=e.semanticColors;return{root:{backgroundColor:n.primaryButtonBackground,border:"1px solid "+n.primaryButtonBackground,color:n.primaryButtonText,selectors:((t={})[Yt]=ht({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t["."+go+" &:focus"]={selectors:{":after":{border:"none",outlineColor:o.white}}},t)},rootHovered:{backgroundColor:n.primaryButtonBackgroundHovered,border:"1px solid "+n.primaryButtonBackgroundHovered,color:n.primaryButtonTextHovered,selectors:((e={})[Yt]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},e)},rootPressed:{backgroundColor:n.primaryButtonBackgroundPressed,border:"1px solid "+n.primaryButtonBackgroundPressed,color:n.primaryButtonTextPressed,selectors:((t={})[Yt]=ht({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)},rootExpanded:{backgroundColor:n.primaryButtonBackgroundPressed,color:n.primaryButtonTextPressed},rootChecked:{backgroundColor:n.primaryButtonBackgroundPressed,color:n.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:n.primaryButtonBackgroundPressed,color:n.primaryButtonTextPressed},rootDisabled:{color:n.primaryButtonTextDisabled,backgroundColor:n.primaryButtonBackgroundDisabled,selectors:((e={})[Yt]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},e)},splitButtonContainer:{selectors:((t={})[Yt]={border:"none"},t)},splitButtonDivider:ht(ht({},{position:"absolute",width:1,right:31,top:8,bottom:8}),{backgroundColor:o.white,selectors:((e={})[Yt]={backgroundColor:"Window"},e)}),splitButtonMenuButton:{backgroundColor:n.primaryButtonBackground,color:n.primaryButtonText,selectors:((t={})[Yt]={backgroundColor:"WindowText"},t[":hover"]={backgroundColor:n.primaryButtonBackgroundHovered,selectors:((e={})[Yt]={color:"Highlight"},e)},t)},splitButtonMenuButtonDisabled:{backgroundColor:n.primaryButtonBackgroundDisabled,selectors:{":hover":{backgroundColor:n.primaryButtonBackgroundDisabled}}},splitButtonMenuButtonChecked:{backgroundColor:n.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:n.primaryButtonBackgroundPressed}}},splitButtonMenuButtonExpanded:{backgroundColor:n.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:n.primaryButtonBackgroundPressed}}},splitButtonMenuIcon:{color:n.primaryButtonText},splitButtonMenuIconDisabled:{color:o.neutralTertiary,selectors:((o={})[Yt]={color:"GrayText"},o)}}}(xe=Od=Od||{})[xe.button=0]="button",xe[xe.anchor=1]="anchor",(ke=zd=zd||{})[ke.normal=0]="normal",ke[ke.primary=1]="primary",ke[ke.hero=2]="hero",ke[ke.compound=3]="compound",ke[ke.command=4]="command",ke[ke.icon=5]="icon",ke[ke.default=6]="default";var Yd,Zd,Xd,Qd,Jd,$d,ep,tp=Ao(function(e,t,o){var n=od(e),r=nd(e);return un(n,{root:{minWidth:"80px",height:"32px"},label:{fontWeight:Fe.semibold}},(o?qd:jd)(e),r,t)}),op=(l(Sp,ep=gt.Component),Sp.prototype.render=function(){var e=this.props,t=e.primary,o=void 0!==t&&t,t=e.styles,e=e.theme;return gt.createElement(Zu,ht({},this.props,{variantClassName:o?"ms-Button--primary":"ms-Button--default",styles:tp(e,t,o),onRenderDescription:wa}))},c([Qu("DefaultButton",["theme","styles"],!0)],Sp)),np=Ao(function(e,t){var o;return un(od(e),{root:{padding:"0 4px",height:"40px",color:e.palette.neutralPrimary,backgroundColor:"transparent",border:"1px solid transparent",selectors:((o={})[Yt]={borderColor:"Window"},o)},rootHovered:{color:e.palette.themePrimary,selectors:((o={})[Yt]={color:"Highlight"},o)},iconHovered:{color:e.palette.themePrimary},rootPressed:{color:e.palette.black},rootExpanded:{color:e.palette.themePrimary},iconPressed:{color:e.palette.themeDarker},rootDisabled:{color:e.palette.neutralTertiary,backgroundColor:"transparent",borderColor:"transparent",selectors:((o={})[Yt]={color:"GrayText"},o)},rootChecked:{color:e.palette.black},iconChecked:{color:e.palette.themeDarker},flexContainer:{justifyContent:"flex-start"},icon:{color:e.palette.themeDarkAlt},iconDisabled:{color:"inherit"},menuIcon:{color:e.palette.neutralSecondary},textContainer:{flexGrow:0}},t)}),rp=(l(_p,$d=gt.Component),_p.prototype.render=function(){var e=this.props,t=e.styles,e=e.theme;return gt.createElement(Zu,ht({},this.props,{variantClassName:"ms-Button--action ms-Button--command",styles:np(e,t),onRenderDescription:wa}))},c([Qu("ActionButton",["theme","styles"],!0)],_p)),ip=Ao(function(e,t,o){var n=e.fonts,r=e.palette,i=od(e),s=nd(e),a={root:{maxWidth:"280px",minHeight:"72px",height:"auto",padding:"16px 12px"},flexContainer:{flexDirection:"row",alignItems:"flex-start",minWidth:"100%",margin:""},textContainer:{textAlign:"left"},icon:{fontSize:"2em",lineHeight:"1em",height:"1em",margin:"0px 8px 0px 0px",flexBasis:"1em",flexShrink:"0"},label:{margin:"0 0 5px",lineHeight:"100%",fontWeight:Fe.semibold},description:[n.small,{lineHeight:"100%"}]},l={description:{color:r.neutralSecondary},descriptionHovered:{color:r.neutralDark},descriptionPressed:{color:"inherit"},descriptionChecked:{color:"inherit"},descriptionDisabled:{color:"inherit"}},r={description:{color:r.white,selectors:((n={})[Yt]=ht({backgroundColor:"WindowText",color:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)},descriptionHovered:{color:r.white,selectors:((r={})[Yt]={backgroundColor:"Highlight",color:"Window"},r)},descriptionPressed:{color:"inherit",selectors:((r={})[Yt]=ht({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)},descriptionChecked:{color:"inherit",selectors:((r={})[Yt]=ht({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)},descriptionDisabled:{color:"inherit",selectors:((r={})[Yt]={color:"inherit"},r)}};return un(i,a,(o?qd:jd)(e),o?r:l,s,t)}),sp=(l(Cp,Jd=gt.Component),Cp.prototype.render=function(){var e=this.props,t=e.primary,o=void 0!==t&&t,t=e.styles,e=e.theme;return gt.createElement(Zu,ht({},this.props,{variantClassName:o?"ms-Button--compoundPrimary":"ms-Button--compound",styles:ip(e,t,o)}))},c([Qu("CompoundButton",["theme","styles"],!0)],Cp)),ap=(l(yp,Qd=gt.Component),yp.prototype.render=function(){return gt.createElement(op,ht({},this.props,{primary:!0,onRenderDescription:wa}))},c([Qu("PrimaryButton",["theme","styles"],!0)],yp)),lp=(l(bp,Xd=gt.Component),bp.prototype.render=function(){var e=this.props;switch(e.buttonType){case zd.command:return gt.createElement(rp,ht({},e));case zd.compound:return gt.createElement(sp,ht({},e));case zd.icon:return gt.createElement(id,ht({},e));case zd.primary:return gt.createElement(ap,ht({},e));default:return gt.createElement(op,ht({},e))}},bp),cp=Ao(function(e,t,o,n){var r=od(e),i=nd(e),s=e.palette,a=e.semanticColors;return un(r,i,{root:[bo(e,{inset:2,highContrastStyle:{left:4,top:4,bottom:4,right:4,border:"none"},borderColor:"transparent"}),e.fonts.medium,{minWidth:"40px",backgroundColor:s.white,color:s.neutralPrimary,padding:"0 4px",border:"none",borderRadius:0,selectors:((e={})[Yt]={border:"none"},e)}],rootHovered:{backgroundColor:s.neutralLighter,color:s.neutralDark,selectors:((e={})[Yt]={color:"Highlight"},e["."+Ku.msButtonIcon]={color:s.themeDarkAlt},e["."+Ku.msButtonMenuIcon]={color:s.neutralPrimary},e)},rootPressed:{backgroundColor:s.neutralLight,color:s.neutralDark,selectors:((e={})["."+Ku.msButtonIcon]={color:s.themeDark},e["."+Ku.msButtonMenuIcon]={color:s.neutralPrimary},e)},rootChecked:{backgroundColor:s.neutralLight,color:s.neutralDark,selectors:((e={})["."+Ku.msButtonIcon]={color:s.themeDark},e["."+Ku.msButtonMenuIcon]={color:s.neutralPrimary},e)},rootCheckedHovered:{backgroundColor:s.neutralQuaternaryAlt,selectors:((e={})["."+Ku.msButtonIcon]={color:s.themeDark},e["."+Ku.msButtonMenuIcon]={color:s.neutralPrimary},e)},rootExpanded:{backgroundColor:s.neutralLight,color:s.neutralDark,selectors:((e={})["."+Ku.msButtonIcon]={color:s.themeDark},e["."+Ku.msButtonMenuIcon]={color:s.neutralPrimary},e)},rootExpandedHovered:{backgroundColor:s.neutralQuaternaryAlt},rootDisabled:{backgroundColor:s.white,selectors:((e={})["."+Ku.msButtonIcon]={color:a.disabledBodySubtext,selectors:((a={})[Yt]=ht({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),a)},e[Yt]=ht({color:"GrayText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),e)},splitButtonContainer:{height:"100%",selectors:((e={})[Yt]={border:"none"},e)},splitButtonDividerDisabled:{selectors:((e={})[Yt]={backgroundColor:"Window"},e)},splitButtonDivider:{backgroundColor:s.neutralTertiaryAlt},splitButtonMenuButton:{backgroundColor:s.white,border:"none",borderTopRightRadius:"0",borderBottomRightRadius:"0",color:s.neutralSecondary,selectors:{":hover":{backgroundColor:s.neutralLighter,color:s.neutralDark,selectors:((e={})[Yt]={color:"Highlight"},e["."+Ku.msButtonIcon]={color:s.neutralPrimary},e)},":active":{backgroundColor:s.neutralLight,selectors:((e={})["."+Ku.msButtonIcon]={color:s.neutralPrimary},e)}}},splitButtonMenuButtonDisabled:{backgroundColor:s.white,selectors:((e={})[Yt]=ht({color:"GrayText",border:"none",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),e)},splitButtonMenuButtonChecked:{backgroundColor:s.neutralLight,color:s.neutralDark,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:s.neutralLight,color:s.black,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:s.neutralPrimary},splitButtonMenuIconDisabled:{color:s.neutralTertiary},label:{fontWeight:"normal"},icon:{color:s.themePrimary},menuIcon:((s={color:s.neutralSecondary})[Yt]={color:"GrayText"},s)},t)}),up=(l(vp,Zd=gt.Component),vp.prototype.render=function(){var e=this.props,t=e.styles,e=e.theme;return gt.createElement(Zu,ht({},this.props,{variantClassName:"ms-Button--commandBar",styles:cp(e,t),onRenderDescription:wa}))},c([Qu("CommandBarButton",["theme","styles"],!0)],vp)),dp=rp,pp=Ao(function(e,t){return un({root:[bo(e,{inset:1,highContrastStyle:{outlineOffset:"-4px",outline:"1px solid Window"},borderColor:"transparent"}),{height:24}]},t)}),hp=(l(fp,Yd=gt.Component),fp.prototype.render=function(){var e=this.props,t=e.styles,e=e.theme;return gt.createElement(op,ht({},this.props,{styles:pp(e,t),onRenderDescription:wa}))},c([Qu("MessageBarButton",["theme","styles"],!0)],fp)),mp=Fn(),gp=In(gt.forwardRef(function(e,t){var o=su(void 0,e.id),n=e.items,r=e.columnCount,i=e.onRenderItem,s=e.isSemanticRadio,a=e.ariaPosInSet,l=void 0===a?e.positionInSet:a,c=e.ariaSetSize,u=void 0===c?e.setSize:c,d=e.styles,a=e.doNotContainWithinFocusZone,c=ur(e,Wn,a?[]:["onBlur"]),p=mp(d,{theme:e.theme}),r=Vi(n,r),r=gt.createElement("table",ht({"aria-posinset":l,"aria-setsize":u,id:o,role:s?"radiogroup":"grid"},c,{className:p.root}),gt.createElement("tbody",{role:s?"presentation":"rowgroup"},r.map(function(e,t){return gt.createElement("tr",{role:s?"presentation":"row",key:t},e.map(function(e,t){return gt.createElement("td",{role:"presentation",key:t+"-cell",className:p.tableCell},i(e,t))}))})));return a?r:gt.createElement(Zs,{elementRef:t,isCircularNavigation:e.shouldFocusCircularNavigate,className:p.focusedContainer,onBlur:e.onBlur},r)}),function(e){return{root:{padding:2,outline:"none"},tableCell:{padding:0}}});function fp(){return null!==Yd&&Yd.apply(this,arguments)||this}function vp(){return null!==Zd&&Zd.apply(this,arguments)||this}function bp(e){e=Xd.call(this,e)||this;return Xo("The Button component has been deprecated. Use specific variants instead. (PrimaryButton, DefaultButton, IconButton, ActionButton, etc.)"),e}function yp(){return null!==Qd&&Qd.apply(this,arguments)||this}function Cp(){return null!==Jd&&Jd.apply(this,arguments)||this}function _p(){return null!==$d&&$d.apply(this,arguments)||this}function Sp(){return null!==ep&&ep.apply(this,arguments)||this}gp.displayName="ButtonGrid";var xp,kp,wp,Ip,Dp=function(e){var t=su("gridCell"),o=e.item,n=e.id,r=void 0===n?t:n,i=e.className,s=e.selected,a=e.disabled,l=void 0!==a&&a,c=e.onRenderItem,u=e.cellDisabledStyle,d=e.cellIsSelectedStyle,p=e.index,h=e.label,m=e.getClassNames,g=e.onClick,f=e.onHover,v=e.onMouseMove,b=e.onMouseLeave,y=e.onMouseEnter,C=e.onFocus,_=ur(e,Yn),S=gt.useCallback(function(e){g&&!l&&g(o,e)},[l,o,g]),t=gt.useCallback(function(e){y&&y(e)||!f||l||f(o,e)},[l,o,f,y]),n=gt.useCallback(function(e){v&&v(e)||!f||l||f(o,e)},[l,o,f,v]),a=gt.useCallback(function(e){b&&b(e)||!f||l||f(void 0,e)},[l,f,b]),e=gt.useCallback(function(e){C&&!l&&C(o,e)},[l,o,C]);return gt.createElement(dp,ht({id:r,"data-index":p,"data-is-focusable":!0,"aria-selected":s,ariaLabel:h,title:h},_,{className:Pr(i,((i={})[""+d]=s,i[""+u]=l,i)),onClick:S,onMouseEnter:t,onMouseMove:n,onMouseLeave:a,onFocus:e,getClassNames:m}),c(o))};(U=xp=xp||{})[U.Sunday=0]="Sunday",U[U.Monday=1]="Monday",U[U.Tuesday=2]="Tuesday",U[U.Wednesday=3]="Wednesday",U[U.Thursday=4]="Thursday",U[U.Friday=5]="Friday",U[U.Saturday=6]="Saturday",(W=kp=kp||{})[W.January=0]="January",W[W.February=1]="February",W[W.March=2]="March",W[W.April=3]="April",W[W.May=4]="May",W[W.June=5]="June",W[W.July=6]="July",W[W.August=7]="August",W[W.September=8]="September",W[W.October=9]="October",W[W.November=10]="November",W[W.December=11]="December",(K=wp=wp||{})[K.FirstDay=0]="FirstDay",K[K.FirstFullWeek=1]="FirstFullWeek",K[K.FirstFourDayWeek=2]="FirstFourDayWeek",(G=Ip=Ip||{})[G.Day=0]="Day",G[G.Week=1]="Week",G[G.Month=2]="Month",G[G.WorkWeek=3]="WorkWeek";var Tp=7,Y={formatDay:function(e){return e.getDate().toString()},formatMonth:function(e,t){return t.months[e.getMonth()]},formatYear:function(e){return e.getFullYear().toString()},formatMonthDayYear:function(e,t){return t.months[e.getMonth()]+" "+e.getDate()+", "+e.getFullYear()},formatMonthYear:function(e,t){return t.months[e.getMonth()]+" "+e.getFullYear()}},xe=ht(ht({},{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"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["S","M","T","W","T","F","S"]}),{goToToday:"Go to today",weekNumberFormatString:"Week number {0}",prevMonthAriaLabel:"Previous month",nextMonthAriaLabel:"Next month",prevYearAriaLabel:"Previous year",nextYearAriaLabel:"Next year",prevYearRangeAriaLabel:"Previous year range",nextYearRangeAriaLabel:"Next year range",closeButtonAriaLabel:"Close",selectedDateFormatString:"Selected date {0}",todayDateFormatString:"Today's date {0}",monthPickerHeaderAriaLabel:"{0}, change year",yearPickerHeaderAriaLabel:"{0}, change month",dayMarkedAriaLabel:"marked"}),Ep={MillisecondsInOneDay:864e5,MillisecondsIn1Sec:1e3,MillisecondsIn1Min:6e4,MillisecondsIn30Mins:18e5,MillisecondsIn1Hour:36e5,MinutesInOneDay:1440,MinutesInOneHour:60,DaysInOneWeek:7,MonthInOneYear:12,HoursInOneDay:24,SecondsInOneMinute:60,OffsetTo24HourFormat:12,TimeFormatRegex:/^(\d\d?):(\d\d):?(\d\d)? ?([ap]m)?/i};function Pp(e,t){e=new Date(e.getTime());return e.setDate(e.getDate()+t),e}function Rp(e,t){return Pp(e,t*Ep.DaysInOneWeek)}function Mp(e,t){e=new Date(e.getTime()),t=e.getMonth()+t;return e.setMonth(t),e=e.getMonth()!==(t%Ep.MonthInOneYear+Ep.MonthInOneYear)%Ep.MonthInOneYear?Pp(e,-e.getDate()):e}function Np(e,t){var o=new Date(e.getTime());return o.setFullYear(e.getFullYear()+t),o=o.getMonth()!==(e.getMonth()%Ep.MonthInOneYear+Ep.MonthInOneYear)%Ep.MonthInOneYear?Pp(o,-o.getDate()):o}function Bp(e){return new Date(e.getFullYear(),e.getMonth(),1,0,0,0,0)}function Fp(e){return new Date(e.getFullYear(),e.getMonth()+1,0,0,0,0,0)}function Ap(e){return new Date(e.getFullYear(),0,1,0,0,0,0)}function Lp(e){return new Date(e.getFullYear()+1,0,0,0,0,0,0)}function Hp(e,t){return Mp(e,t-e.getMonth())}function Op(e,t){return!e&&!t||!(!e||!t)&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function zp(e,t){return Yp(e)-Yp(t)}function Wp(e,t,o,n,r){void 0===r&&(r=1);var i,s=[],a=null;switch(n=n||[xp.Monday,xp.Tuesday,xp.Wednesday,xp.Thursday,xp.Friday],r=Math.max(r,1),t){case Ip.Day:a=Pp(i=qp(e),r);break;case Ip.Week:case Ip.WorkWeek:a=Pp(i=Up(qp(e),o),Ep.DaysInOneWeek);break;case Ip.Month:a=Mp(i=new Date(e.getFullYear(),e.getMonth(),1),1);break;default:throw new Error("Unexpected object: "+t)}for(var l=i;t===Ip.WorkWeek&&-1===n.indexOf(l.getDay())||s.push(l),!Op(l=Pp(l,1),a););return s}function Vp(e,t){for(var o=0,n=t;o<n.length;o++)if(Op(e,n[o]))return!0;return!1}function Kp(e,t,o,n){for(var r=n.getFullYear(),i=n.getMonth(),s=1,a=new Date(r,i,s),a=s+(t+Ep.DaysInOneWeek-1)-(n=t,a=a.getDay(),n!==xp.Sunday&&a<n?a+Ep.DaysInOneWeek:a),l=new Date(r,i,a),s=l.getDate(),c=[],u=0;u<e;u++)c.push(Gp(l,t,o)),s+=Ep.DaysInOneWeek,l=new Date(r,i,s);return c}function Gp(e,t,o){switch(o){case wp.FirstFullWeek:return Zp(e,t,Ep.DaysInOneWeek);case wp.FirstFourDayWeek:return Zp(e,t,4);default:return r=t,i=Xp(n=e)-1,r=(n.getDay()-i%Ep.DaysInOneWeek-r+2*Ep.DaysInOneWeek)%Ep.DaysInOneWeek,Math.floor((i+r)/Ep.DaysInOneWeek+1)}var n,r,i}function Up(e,t){t-=e.getDay();return 0<t&&(t-=Ep.DaysInOneWeek),Pp(e,t)}function jp(e,t){t=(0<=t-1?t-1:Ep.DaysInOneWeek-1)-e.getDay();return t<0&&(t+=Ep.DaysInOneWeek),Pp(e,t)}function qp(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function Yp(e){return e.getDate()+(e.getMonth()<<5)+(e.getFullYear()<<9)}function Zp(e,t,o){var n=Xp(e)-1,r=e.getDay()-n%Ep.DaysInOneWeek,i=Xp(new Date(e.getFullYear()-1,kp.December,31))-1,e=(t-r+2*Ep.DaysInOneWeek)%Ep.DaysInOneWeek;0!==e&&o<=e&&(e-=Ep.DaysInOneWeek);n-=e;return n<0&&(0!=(e=(t-(r-=i%Ep.DaysInOneWeek)+2*Ep.DaysInOneWeek)%Ep.DaysInOneWeek)&&o<=e+1&&(e-=Ep.DaysInOneWeek),n=i-e),Math.floor(n/Ep.DaysInOneWeek+1)}function Xp(e){for(var t=e.getMonth(),o=e.getFullYear(),n=0,r=0;r<t;r++)n+=new Date(o,r+1,0).getDate();return n+e.getDate()}var Qp=/[\{\}]/g,Jp=/\{\d+\}/g;function $p(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];var n=t;return e.replace(Jp,function(e){return e=null==(e=n[e.replace(Qp,"")])?"":e})}function eh(e){var t=e.showWeekNumbers,r=e.strings,i=e.firstDayOfWeek,s=e.allFocusable,o=e.weeksToShow,n=e.weeks,a=e.classNames,l=r.shortDays.slice(),c=Oi(n[1],function(e){return 1===e.originalDate.getDate()});return 1===o&&0<=c&&(l[(c+i)%Tp]=r.shortMonths[n[1][c].originalDate.getMonth()]),gt.createElement("tr",null,t&>.createElement("th",{className:a.dayCell}),l.map(function(e,t){var o=(t+i)%Tp,n=t===c?r.days[o]+" "+l[o]:r.days[o];return gt.createElement("th",{className:Pr(a.dayCell,a.weekDayLabelCell),scope:"col",key:l[o]+" "+t,title:n,"aria-label":n,"data-is-focusable":!!s||void 0},l[o])}))}function th(e){var t=e.targetDate,o=e.initialDate,n=e.direction,r=mt(e,["targetDate","initialDate","direction"]),i=t;if(!sh(t,r))return t;for(;0!==zp(o,i)&&sh(i,r)&&!ih(i,r)&&!rh(i,r);)i=Pp(i,n);return 0===zp(o,i)||sh(i,r)?void 0:i}function oh(o){var e=o.classNames,t=o.week,n=o.weeks,r=o.weekIndex,i=o.rowClassName,s=o.ariaRole,a=o.showWeekNumbers,l=o.firstDayOfWeek,c=o.firstWeekOfYear,u=o.navigatedDate,d=o.strings,d=(u=a?Kp(n.length,l,c,u):null)?d.weekNumberFormatString&&$p(d.weekNumberFormatString,u[r]):"";return gt.createElement("tr",{role:s,className:i,key:r+"_"+t[0].key},a&&u&>.createElement("th",{className:e.weekNumberCell,key:r,title:d,"aria-label":d,scope:"row"},gt.createElement("span",null,u[r])),t.map(function(e,t){return gt.createElement(ah,ht({},o,{key:e.key,day:e,dayIndex:t}))}))}var nh=function(e,t,o){e=$e([],e);return t&&(e=e.filter(function(e){return 0<=zp(e,t)})),e=o?e.filter(function(e){return zp(e,o)<=0}):e},rh=function(e,t){t=t.minDate;return!!t&&1<=zp(t,e)},ih=function(e,t){t=t.maxDate;return!!t&&1<=zp(e,t)},sh=function(t,e){var o=e.restrictedDates,n=e.minDate,r=e.maxDate;return!!(o||n||r)&&(o&&o.some(function(e){return Op(e,t)})||rh(t,e)||ih(t,e))},ah=function(e){var t=e.navigatedDate,o=e.dateTimeFormatter,n=e.allFocusable,r=e.strings,i=e.activeDescendantId,s=e.navigatedDayRef,a=e.calculateRoundedStyles,l=e.weeks,c=e.classNames,u=e.day,d=e.dayIndex,p=e.weekIndex,h=e.weekCorners,m=e.ariaHidden,g=e.customDayCellRef,f=e.dateRangeType,v=e.daysToSelectInDayView,b=e.onSelectDate,y=e.restrictedDates,C=e.minDate,_=e.maxDate,S=e.onNavigateDate,x=e.getDayInfosInRangeOfDay,k=e.getRefsFromDayInfos,d=null!==(d=null==h?void 0:h[p+"_"+d])&&void 0!==d?d:"",w=Op(t,u.originalDate),t=u.originalDate.getDate()+", "+r.months[u.originalDate.getMonth()]+", "+u.originalDate.getFullYear();return u.isMarked&&(t=t+", "+r.dayMarkedAriaLabel),gt.createElement("td",{className:Pr(c.dayCell,h&&d,u.isSelected&&c.daySelected,u.isSelected&&"ms-CalendarDay-daySelected",!u.isInBounds&&c.dayOutsideBounds,!u.isInMonth&&c.dayOutsideNavigatedMonth),ref:function(e){null==g||g(e,u.originalDate,c),u.setRef(e),w&&(s.current=e)},"aria-hidden":m,"aria-disabled":!m&&!u.isInBounds,onClick:u.isInBounds&&!m?u.onSelected:void 0,onMouseOver:m?void 0:function(e){var o=x(u),n=k(o);n.forEach(function(e,t){e&&(e.classList.add("ms-CalendarDay-hoverStyle"),!o[t].isSelected&&f===Ip.Day&&v&&1<v)&&(e.classList.remove(c.bottomLeftCornerDate,c.bottomRightCornerDate,c.topLeftCornerDate,c.topRightCornerDate),(t=a(c,!1,!1,0<t,t<n.length-1).trim())&&(e=e.classList).add.apply(e,t.split(" ")))})},onMouseDown:m?void 0:function(e){var t=x(u);k(t).forEach(function(e){e&&e.classList.add("ms-CalendarDay-pressedStyle")})},onMouseUp:m?void 0:function(e){var t=x(u);k(t).forEach(function(e){e&&e.classList.remove("ms-CalendarDay-pressedStyle")})},onMouseOut:m?void 0:function(e){var o=x(u),n=k(o);n.forEach(function(e,t){e&&(e.classList.remove("ms-CalendarDay-hoverStyle"),e.classList.remove("ms-CalendarDay-pressedStyle"),!o[t].isSelected&&f===Ip.Day&&v&&1<v)&&((t=a(c,!1,!1,0<t,t<n.length-1).trim())&&(e=e.classList).remove.apply(e,t.split(" ")))})},onKeyDown:m?void 0:function(e){var t,o,n,r;e.which===Tn.enter?null==b||b(u.originalDate):(t=e,o=u.originalDate,r=void 0,e=1,t.which===Tn.up?(r=Rp(o,-1),e=-1):t.which===Tn.down?r=Rp(o,1):t.which===Mn(Tn.left)?(r=Pp(o,-1),e=-1):t.which===Mn(Tn.right)&&(r=Pp(o,1)),r&&((n=th(r={initialDate:o,targetDate:r,direction:e,restrictedDates:y,minDate:C,maxDate:_}))||(r.direction=-e,n=th(r)),l&&n&&l.slice(1,l.length-1).some(function(e){return e.some(function(e){return Op(e.originalDate,n)})})||n&&(S(n,!0),t.preventDefault())))},role:"gridcell",tabIndex:w?0:void 0,"aria-current":u.isSelected?"date":void 0,"aria-selected":u.isInBounds?u.isSelected:void 0,"data-is-focusable":!m&&(n||!!u.isInBounds||void 0)},gt.createElement("button",{key:u.key+"button","aria-hidden":m,className:Pr(c.dayButton,u.isToday&&c.dayIsToday,u.isToday&&"ms-CalendarDay-dayIsToday"),"aria-label":t,id:w?i:void 0,disabled:!m&&!u.isInBounds,type:"button",tabIndex:-1,"data-is-focusable":"false"},gt.createElement("span",{"aria-hidden":"true"},o.formatDay(u.originalDate)),u.isMarked&>.createElement("div",{"aria-hidden":"true",className:c.dayMarker})))},lh=Fn();function ch(c,u,d){return gt.useMemo(function(){for(var e,o=function(e){for(var t=e.selectedDate,o=e.dateRangeType,n=e.firstDayOfWeek,r=e.today,i=e.minDate,s=e.maxDate,a=e.weeksToShow,l=e.workWeekDays,c=e.daysToSelectInDayView,u=e.restrictedDates,d=e.markedDays,p={minDate:i,maxDate:s,restrictedDates:u},h=r||new Date,m=e.navigatedDate||h,g=a&&a<=4?new Date(m.getFullYear(),m.getMonth(),m.getDate()):new Date(m.getFullYear(),m.getMonth(),1),f=[];g.getDay()!==n;)g.setDate(g.getDate()-1);g=Pp(g,-Tp);var v=!1,e=(e=o,!(o=l)||e!==Ip.WorkWeek||function(e,t){for(var o=new Set(e),n=0,r=0,i=e;r<i.length;r++){var s=(i[r]+1)%7;o.has(s)&&t!==s||n++}return n<2}(o,n)&&0!==o.length?e:Ip.Week),b=[];t&&(b=Wp(t,e,n,l,c),b=nh(b,i,s));for(var y=!0,C=0;y;C++){for(var _=[],v=!0,S=0;S<Tp;S++)!function(){var t=new Date(g.getTime()),e={key:g.toString(),date:g.getDate().toString(),originalDate:t,isInMonth:g.getMonth()===m.getMonth(),isToday:Op(h,g),isSelected:Vp(g,b),isInBounds:!sh(g,p),isMarked:(null==d?void 0:d.some(function(e){return Op(t,e)}))||!1};_.push(e),e.isInMonth&&(v=!1),g.setDate(g.getDate()+1)}();y=a?C<a+1:!v||0===C,f.push(_)}return f}(c),t=o[1][0].originalDate,n=o[o.length-1][6].originalDate,r=(null===(e=c.getMarkedDays)||void 0===e?void 0:e.call(c,t,n))||[],i=[],s=0;s<o.length;s++){for(var a=[],l=0;l<Tp;l++)!function(e){var t=o[s][e],e=ht(ht({onSelected:function(){return u(t.originalDate)},setRef:d(t.key)},t),{isMarked:t.isMarked||(null==r?void 0:r.some(function(e){return Op(t.originalDate,e)}))});a.push(e)}(l);i.push(a)}return i},[c])}var uh,ke=function(a){var l,o,n=gt.useRef(null),e=su(),t=[o=gt.useRef({}),function(t){return function(e){null===e?delete o.current[t]:o.current[t]=e}}],r=t[0],i=ch(a,function(e){var t=a.firstDayOfWeek,o=a.minDate,n=a.maxDate,r=a.workWeekDays,i=a.daysToSelectInDayView,s={minDate:o,maxDate:n,restrictedDates:a.restrictedDates},i=Wp(e,v,t,r,i),i=(i=nh(i,o,n)).filter(function(e){return!sh(e,s)});null===(n=a.onSelectDate)||void 0===n||n.call(a,e,i),null===(i=a.onNavigateDate)||void 0===i||i.call(a,e,!0)},t[1]),s=(b=Oc((y=i)[0][0].originalDate))&&b.getTime()!==y[0][0].originalDate.getTime()?!(b<=y[0][0].originalDate):void 0,c=(l=a,[function(c,e){var u={},d=e.slice(1,e.length-1);return d.forEach(function(e,l){e.forEach(function(e,t){var o,n=d[l-1]&&d[l-1][t]&&h(d[l-1][t].originalDate,e.originalDate,d[l-1][t].isSelected,e.isSelected),r=d[l+1]&&d[l+1][t]&&h(d[l+1][t].originalDate,e.originalDate,d[l+1][t].isSelected,e.isSelected),i=d[l][t-1]&&h(d[l][t-1].originalDate,e.originalDate,d[l][t-1].isSelected,e.isSelected),s=d[l][t+1]&&h(d[l][t+1].originalDate,e.originalDate,d[l][t+1].isSelected,e.isSelected),a=[];a.push(p(c,n,r,i,s)),a.push((o=c,e=r,r=i,i=s,s=[],n||s.push(o.datesAbove),e||s.push(o.datesBelow),r||s.push(Pn()?o.datesRight:o.datesLeft),i||s.push(Pn()?o.datesLeft:o.datesRight),s.join(" "))),u[l+"_"+t]=a.join(" ")})}),u},p]),u=c[0],d=c[1];function p(e,t,o,n,r){var i=[],s=!t&&!r,a=!o&&!n,r=!o&&!r;return t||n||i.push(Pn()?e.topRightCornerDate:e.topLeftCornerDate),s&&i.push(Pn()?e.topLeftCornerDate:e.topRightCornerDate),a&&i.push(Pn()?e.bottomRightCornerDate:e.bottomLeftCornerDate),r&&i.push(Pn()?e.bottomLeftCornerDate:e.bottomRightCornerDate),i.join(" ")}function h(e,t,o,n){var r=l.dateRangeType,i=l.firstDayOfWeek,s=l.workWeekDays,s=Wp(e,r===Ip.WorkWeek?Ip.Week:r,i,s);return o===n&&(!(!o||!n)||0<s.filter(function(e){return e.getTime()===t.getTime()}).length)}gt.useImperativeHandle(a.componentRef,function(){return{focus:function(){var e,t;null===(t=null===(e=n.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)}}},[]);var m=a.styles,g=a.theme,f=a.className,v=a.dateRangeType,t=a.showWeekNumbers,b=a.labelledBy,y=a.lightenDaysOutsideNavigatedMonth,c=a.animationDirection,C=lh(m,{theme:g,className:f,dateRangeType:v,showWeekNumbers:t,lightenDaysOutsideNavigatedMonth:void 0===y||y,animationDirection:c,animateBackwards:s}),u=u(C,i),_={weeks:i,navigatedDayRef:n,calculateRoundedStyles:d,activeDescendantId:e,classNames:C,weekCorners:u,getDayInfosInRangeOfDay:function(e){var t=function(e,t){if(t&&e===Ip.WorkWeek){for(var o=t.slice().sort(),n=!0,r=1;r<o.length;r++)if(o[r]!==o[r-1]+1){n=!1;break}if(!n||0===t.length)return Ip.Week}return e}(a.dateRangeType,a.workWeekDays),o=Wp(e.originalDate,t,a.firstDayOfWeek,a.workWeekDays,a.daysToSelectInDayView).map(function(e){return e.getTime()});return i.reduce(function(e,t){return e.concat(t.filter(function(e){return-1!==o.indexOf(e.originalDate.getTime())}))},[])},getRefsFromDayInfos:function(e){return e.map(function(e){return r.current[e.key]})}};return gt.createElement(Zs,{className:C.wrapper},gt.createElement("table",{className:C.table,"aria-multiselectable":"false","aria-labelledby":b,"aria-activedescendant":e,role:"grid"},gt.createElement("tbody",null,gt.createElement(eh,ht({},a,{classNames:C,weeks:i})),gt.createElement(oh,ht({},a,_,{week:i[0],weekIndex:-1,rowClassName:C.firstTransitionWeek,ariaRole:"presentation",ariaHidden:!0})),i.slice(1,i.length-1).map(function(e,t){return gt.createElement(oh,ht({},a,_,{key:t,week:e,weekIndex:t,rowClassName:C.weekRow}))}),gt.createElement(oh,ht({},a,_,{week:i[i.length-1],weekIndex:-2,rowClassName:C.lastTransitionWeek,ariaRole:"presentation",ariaHidden:!0})))))};ke.displayName="CalendarDayGridBase",(U=uh=uh||{})[U.Horizontal=0]="Horizontal",U[U.Vertical=1]="Vertical";var dh={hoverStyle:"ms-CalendarDay-hoverStyle",pressedStyle:"ms-CalendarDay-pressedStyle",dayIsTodayStyle:"ms-CalendarDay-dayIsToday",daySelectedStyle:"ms-CalendarDay-daySelected"},ph=O({"100%":{width:0,height:0,overflow:"hidden"},"99.9%":{width:"100%",height:28,overflow:"visible"},"0%":{width:"100%",height:28,overflow:"visible"}}),hh=In(ke,function(e){var t=e.theme,o=e.dateRangeType,n=e.showWeekNumbers,r=e.lightenDaysOutsideNavigatedMonth,i=e.animateBackwards,s=e.animationDirection,a=t.palette,l=zo(dh,t),c={};void 0!==i&&(c=s===uh.Horizontal?i?Ie.slideRightIn20:Ie.slideLeftIn20:i?Ie.slideDownIn20:Ie.slideUpIn20);var u={},e={};void 0!==i&&s!==uh.Horizontal&&(u=i?{animationName:""}:Ie.slideUpOut20,e=i?Ie.slideDownOut20:{animationName:""});s={selectors:{"&, &:disabled, & button":{color:a.neutralTertiaryAlt,pointerEvents:"none"}}};return{wrapper:{paddingBottom:10},table:[{textAlign:"center",borderCollapse:"collapse",borderSpacing:"0",tableLayout:"fixed",fontSize:"inherit",marginTop:4,width:196,position:"relative",paddingBottom:10},n&&{width:226}],dayCell:{margin:0,padding:0,width:28,height:28,lineHeight:28,fontSize:Be.small,fontWeight:Fe.regular,color:a.neutralPrimary,cursor:"pointer",position:"relative",selectors:((i={})[Yt]=ht({color:"WindowText",backgroundColor:"Window",zIndex:0},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i["&."+l.hoverStyle]={backgroundColor:a.neutralLighter,selectors:((n={})[Yt]={zIndex:3,backgroundColor:"Window",outline:"1px solid Highlight"},n)},i["&."+l.pressedStyle]={backgroundColor:a.neutralLight,selectors:((n={})[Yt]={borderColor:"Highlight",color:"Highlight",backgroundColor:"Window"},n)},i["&."+l.pressedStyle+"."+l.hoverStyle]={selectors:((n={})[Yt]={backgroundColor:"Window",outline:"1px solid Highlight"},n)},i)},daySelected:[o!==Ip.Month&&{backgroundColor:a.neutralLight+"!important",selectors:((i={"&:after":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0}})["&:hover, &."+l.hoverStyle+", &."+l.pressedStyle]=((o={backgroundColor:a.neutralLight+"!important"})[Yt]={color:"HighlightText!important",background:"Highlight!important"},o),i[Yt]=ht({background:"Highlight!important",color:"HighlightText!important",borderColor:"Highlight!important"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)}],weekRow:c,weekDayLabelCell:Ie.fadeIn200,weekNumberCell:{margin:0,padding:0,borderRight:"1px solid",borderColor:a.neutralLight,backgroundColor:a.neutralLighterAlt,color:a.neutralSecondary,boxSizing:"border-box",width:28,height:28,fontWeight:Fe.regular,fontSize:Be.small},dayOutsideBounds:s,dayOutsideNavigatedMonth:r&&{color:a.neutralSecondary,fontWeight:Fe.regular},dayButton:[bo(t,{inset:-3}),{width:24,height:24,lineHeight:24,fontSize:Be.small,fontWeight:"inherit",borderRadius:2,border:"none",padding:0,color:"inherit",backgroundColor:"transparent",cursor:"pointer",overflow:"visible",selectors:{span:{height:"inherit",lineHeight:"inherit"}}}],dayIsToday:{backgroundColor:a.themePrimary+"!important",borderRadius:"100%",color:a.white+"!important",fontWeight:Fe.semibold+"!important",selectors:((t={})[Yt]=ht({background:"WindowText!important",color:"Window!important",borderColor:"WindowText!important"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)},firstTransitionWeek:ht(ht({position:"absolute",opacity:0,width:0,height:0,overflow:"hidden"},u),{animationName:u.animationName+","+ph}),lastTransitionWeek:ht(ht({position:"absolute",opacity:0,width:0,height:0,overflow:"hidden",marginTop:-28},e),{animationName:e.animationName+","+ph}),dayMarker:{width:4,height:4,backgroundColor:a.neutralSecondary,borderRadius:"100%",bottom:1,left:0,right:0,position:"absolute",margin:"auto",selectors:((u={})["."+l.dayIsTodayStyle+" &"]={backgroundColor:a.white,selectors:((e={})[Yt]={backgroundColor:"Window"},e)},u["."+l.daySelectedStyle+" &"]={selectors:((l={})[Yt]={backgroundColor:"HighlightText"},l)},u[Yt]=ht({backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),u)},topRightCornerDate:{borderTopRightRadius:"2px"},topLeftCornerDate:{borderTopLeftRadius:"2px"},bottomRightCornerDate:{borderBottomRightRadius:"2px"},bottomLeftCornerDate:{borderBottomLeftRadius:"2px"},datesAbove:{"&:after":{borderTop:"1px solid "+a.neutralSecondary}},datesBelow:{"&:after":{borderBottom:"1px solid "+a.neutralSecondary}},datesLeft:{"&:after":{borderLeft:"1px solid "+a.neutralSecondary}},datesRight:{"&:after":{borderRight:"1px solid "+a.neutralSecondary}}}},void 0,{scope:"CalendarDayGrid"}),mh=Fn(),W=function(e){var o=gt.useRef(null);gt.useImperativeHandle(e.componentRef,function(){return{focus:function(){var e,t;null===(t=null===(e=o.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)}}},[]);var t=e.strings,n=e.navigatedDate,r=e.dateTimeFormatter,i=e.styles,s=e.theme,a=e.className,l=e.onHeaderSelect,c=e.showSixWeeksByDefault,u=e.minDate,d=e.maxDate,p=e.restrictedDates,h=e.onNavigateDate,m=e.showWeekNumbers,g=e.dateRangeType,f=e.animationDirection,v=su(),s=mh(i,{theme:s,className:a,headerIsClickable:!!l,showWeekNumbers:m,animationDirection:f}),a=r.formatMonthYear(n,t),m=l?"button":"div",f=t.yearPickerHeaderAriaLabel?$p(t.yearPickerHeaderAriaLabel,a):a;return gt.createElement("div",{className:s.root},gt.createElement("div",{className:s.header},gt.createElement(m,{"aria-live":"polite","aria-atomic":"true","aria-label":l?f:void 0,key:a,className:s.monthAndYear,onClick:l,"data-is-focusable":!!l,tabIndex:l?0:-1,onKeyDown:vh(l),type:"button"},gt.createElement("span",{id:v},a)),gt.createElement(gh,ht({},e,{classNames:s}))),gt.createElement(hh,ht({},e,{styles:i,componentRef:o,strings:t,navigatedDate:n,weeksToShow:c?6:void 0,dateTimeFormatter:r,minDate:u,maxDate:d,restrictedDates:p,onNavigateDate:h,labelledBy:v,dateRangeType:g})))};W.displayName="CalendarDayBase";var gh=function(e){function t(){d(Mp(i,1),!1)}function o(){d(Mp(i,-1),!1)}var n=e.minDate,r=e.maxDate,i=e.navigatedDate,s=e.allFocusable,a=e.strings,l=e.navigationIcons,c=e.showCloseButton,u=e.classNames,d=e.onNavigateDate,p=e.onDismiss,h=l.leftNavigation,m=l.rightNavigation,e=l.closeIcon,l=!n||zp(n,Bp(i))<0,n=!r||zp(Fp(i),r)<0;return gt.createElement("div",{className:u.monthComponents},gt.createElement("button",{className:Pr(u.headerIconButton,((r={})[u.disabledStyle]=!l,r)),tabIndex:l?void 0:s?0:-1,"aria-disabled":!l,onClick:l?o:void 0,onKeyDown:l?vh(o):void 0,title:a.prevMonthAriaLabel?a.prevMonthAriaLabel+" "+a.months[Mp(i,-1).getMonth()]:void 0,type:"button"},gt.createElement(Vr,{iconName:h})),gt.createElement("button",{className:Pr(u.headerIconButton,((h={})[u.disabledStyle]=!n,h)),tabIndex:n?void 0:s?0:-1,"aria-disabled":!n,onClick:n?t:void 0,onKeyDown:n?vh(t):void 0,title:a.nextMonthAriaLabel?a.nextMonthAriaLabel+" "+a.months[Mp(i,1).getMonth()]:void 0,type:"button"},gt.createElement(Vr,{iconName:m})),c&>.createElement("button",{className:Pr(u.headerIconButton),onClick:p,onKeyDown:vh(p),title:a.closeButtonAriaLabel,type:"button"},gt.createElement(Vr,{iconName:e})))};gh.displayName="CalendarDayNavigationButtons";function fh(e){var t=e.styles,o=e.theme,n=e.className,r=e.highlightCurrentYear,i=e.highlightSelectedYear,s=e.year,a=e.selected,l=e.disabled,c=e.componentRef,u=e.onSelectYear,e=e.onRenderYear,d=gt.useRef(null);return gt.useImperativeHandle(c,function(){return{focus:function(){var e,t;null===(t=null===(e=d.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)}}},[]),r=Sh(t,{theme:o,className:n,highlightCurrent:r,highlightSelected:i}),gt.createElement("button",{className:Pr(r.itemButton,((i={})[r.selected]=a,i[r.disabled]=l,i)),type:"button",role:"gridcell",onClick:l?void 0:function(){null==u||u(s)},onKeyDown:l?void 0:function(e){e.which===Tn.enter&&(null==u||u(s))},disabled:l,"aria-selected":a,ref:d},null!==(e=null==e?void 0:e(s))&&void 0!==e?e:s)}var vh=function(t){return function(e){e.which===Tn.enter&&(null==t||t())}},bh=In(W,function(e){var t=e.className,o=e.theme,n=e.headerIsClickable,r=e.showWeekNumbers,i=o.palette,e={selectors:((e={"&, &:disabled, & button":{color:i.neutralTertiaryAlt,pointerEvents:"none"}})[Yt]={color:"GrayText",forcedColorAdjust:"none"},e)};return{root:[Uo,{width:196,padding:12,boxSizing:"content-box"},r&&{width:226},t],header:{position:"relative",display:"inline-flex",height:28,lineHeight:44,width:"100%"},monthAndYear:[bo(o,{inset:1}),ht(ht({},Ie.fadeIn200),{alignItems:"center",fontSize:Be.medium,fontFamily:"inherit",color:i.neutralPrimary,display:"inline-block",flexGrow:1,fontWeight:Fe.semibold,padding:"0 4px 0 10px",border:"none",backgroundColor:"transparent",borderRadius:2,lineHeight:28,overflow:"hidden",whiteSpace:"nowrap",textAlign:"left",textOverflow:"ellipsis"}),n&&{selectors:{"&:hover":{cursor:"pointer",background:i.neutralLight,color:i.black}}}],monthComponents:{display:"inline-flex",alignSelf:"flex-end"},headerIconButton:[bo(o,{inset:-1}),{width:28,height:28,display:"block",textAlign:"center",lineHeight:28,fontSize:Be.small,fontFamily:"inherit",color:i.neutralPrimary,borderRadius:2,position:"relative",backgroundColor:"transparent",border:"none",padding:0,overflow:"visible",selectors:{"&:hover":{color:i.neutralDark,backgroundColor:i.neutralLight,cursor:"pointer",outline:"1px solid transparent"}}}],disabledStyle:e}},void 0,{scope:"CalendarDay"}),K=function(e){var t=e.className,o=e.theme,n=e.hasHeaderClickCallback,r=e.highlightCurrent,i=e.highlightSelected,s=e.animateBackwards,a=e.animationDirection,l=o.palette,e={};void 0!==s&&(e=a===uh.Horizontal?s?Ie.slideRightIn20:Ie.slideLeftIn20:s?Ie.slideDownIn20:Ie.slideUpIn20);s=void 0!==s?Ie.fadeIn200:{};return{root:[Uo,{width:196,padding:12,boxSizing:"content-box",overflow:"hidden"},t],headerContainer:{display:"flex"},currentItemButton:[bo(o,{inset:-1}),ht(ht({},s),{fontSize:Be.medium,fontWeight:Fe.semibold,fontFamily:"inherit",textAlign:"left",color:"inherit",backgroundColor:"transparent",flexGrow:1,padding:"0 4px 0 10px",border:"none",overflow:"visible"}),n&&{selectors:{"&:hover, &:active":{cursor:n?"pointer":"default",color:l.neutralDark,outline:"1px solid transparent",backgroundColor:l.neutralLight}}}],navigationButtonsContainer:{display:"flex",alignItems:"center"},navigationButton:[bo(o,{inset:-1}),{fontFamily:"inherit",width:28,minWidth:28,height:28,minHeight:28,display:"block",textAlign:"center",lineHeight:28,fontSize:Be.small,color:l.neutralPrimary,borderRadius:2,position:"relative",backgroundColor:"transparent",border:"none",padding:0,overflow:"visible",selectors:{"&:hover":{color:l.neutralDark,cursor:"pointer",outline:"1px solid transparent",backgroundColor:l.neutralLight}}}],gridContainer:{marginTop:4},buttonRow:ht(ht({},e),{marginBottom:16,selectors:{"&:nth-child(n + 3)":{marginBottom:0}}}),itemButton:[bo(o,{inset:-1}),{width:40,height:40,minWidth:40,minHeight:40,lineHeight:40,fontSize:Be.small,fontFamily:"inherit",padding:0,margin:"0 12px 0 0",color:l.neutralPrimary,backgroundColor:"transparent",border:"none",borderRadius:2,overflow:"visible",selectors:{"&:nth-child(4n + 4)":{marginRight:0},"&:nth-child(n + 9)":{marginBottom:0},"& div":{fontWeight:Fe.regular},"&:hover":{color:l.neutralDark,backgroundColor:l.neutralLight,cursor:"pointer",outline:"1px solid transparent",selectors:((o={})[Yt]=ht({background:"Window",color:"WindowText",outline:"1px solid Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)},"&:active":{backgroundColor:l.themeLight,selectors:((o={})[Yt]=ht({background:"Window",color:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)}}}],current:r?{color:l.white,backgroundColor:l.themePrimary,selectors:((r={"& div":{fontWeight:Fe.semibold},"&:hover":{backgroundColor:l.themePrimary,selectors:((r={})[Yt]=ht({backgroundColor:"WindowText",color:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)}})[Yt]=ht({backgroundColor:"WindowText",color:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)}:{},selected:i?{color:l.neutralPrimary,backgroundColor:l.themeLight,fontWeight:Fe.semibold,selectors:((i={"& div":{fontWeight:Fe.semibold},"&:hover, &:active":{backgroundColor:l.themeLight,selectors:((i={})[Yt]=ht({color:"Window",background:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)}})[Yt]=ht({background:"Highlight",color:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)}:{},disabled:{selectors:((l={"&, &:disabled, & button":{color:l.neutralTertiaryAlt,pointerEvents:"none"}})[Yt]={color:"GrayText",forcedColorAdjust:"none"},l)}}},G=K,yh=xe,Ch=yh,_h={leftNavigation:"Up",rightNavigation:"Down",closeIcon:"CalculatorMultiply"},Sh=Fn(),xh={prevRangeAriaLabel:void 0,nextRangeAriaLabel:void 0};fh.displayName="CalendarYearGridCell";function kh(o){var e=o.styles,t=o.theme,n=o.className,r=o.fromYear,i=o.toYear,s=o.animationDirection,a=o.animateBackwards,l=o.minYear,c=o.maxYear,u=o.onSelectYear,d=o.selectedYear,p=o.componentRef,h=gt.useRef(null),m=gt.useRef(null);gt.useImperativeHandle(p,function(){return{focus:function(){var e,t;null===(t=null===(e=h.current||m.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)}}},[]);for(var g,f,v,b,y=Sh(e,{theme:t,className:n,animateBackwards:a,animationDirection:s}),s=(s=function(e){var t;return null!==(t=null===(t=o.onRenderYear)||void 0===t?void 0:t.call(o,e))&&void 0!==t?t:e})(r)+" - "+s(i),C=r,_=[],S=0;S<(i-r+1)/4;S++){_.push([]);for(var x=0;x<4;x++)_[S].push((f=(g=C)===d,v=void 0!==l&&g<l||void 0!==c&&c<g,b=g===(new Date).getFullYear(),gt.createElement(fh,ht({},o,{key:g,year:g,selected:f,current:b,disabled:v,onSelectYear:u,componentRef:f?h:b?m:void 0,theme:t})))),C++}return gt.createElement(Zs,null,gt.createElement("div",{className:y.gridContainer,role:"grid","aria-label":s},_.map(function(e,t){return gt.createElement("div",{key:"yearPickerRow_"+t+"_"+r,role:"row",className:y.buttonRow},e)})))}var wh;kh.displayName="CalendarYearGrid",(U=wh=wh||{})[U.Previous=0]="Previous",U[U.Next=1]="Next";function Ih(e){function t(){a===wh.Previous?null==l||l():null==c||c()}var o=e.styles,n=e.theme,r=e.className,i=void 0===(p=e.navigationIcons)?_h:p,s=void 0===(h=e.strings)?xh:h,a=e.direction,l=e.onSelectPrev,c=e.onSelectNext,u=e.fromYear,d=e.toYear,p=e.maxYear,h=e.minYear,n=Sh(o,{theme:n,className:r}),r=a===wh.Previous?s.prevRangeAriaLabel:s.nextRangeAriaLabel,s=a===wh.Previous?-12:12,s=r?"string"==typeof r?r:r({fromYear:u+s,toYear:d+s}):void 0,h=a===wh.Previous?void 0!==h&&u<h:void 0!==p&&e.fromYear+12>p,e=Pn()?a===wh.Next:a===wh.Previous;return gt.createElement("button",{className:Pr(n.navigationButton,((p={})[n.disabled]=h,p)),onClick:h?void 0:t,onKeyDown:h?void 0:function(e){e.which===Tn.enter&&t()},type:"button",title:s,disabled:h},gt.createElement(Vr,{iconName:e?i.leftNavigation:i.rightNavigation}))}Ih.displayName="CalendarYearNavArrow";function Dh(e){var t=e.styles,o=e.theme,n=e.className,n=Sh(t,{theme:o,className:n});return gt.createElement("div",{className:n.navigationButtonsContainer},gt.createElement(Ih,ht({},e,{direction:wh.Previous})),gt.createElement(Ih,ht({},e,{direction:wh.Next})))}Dh.displayName="CalendarYearNav";function Th(o){function t(){var e;null===(e=o.onHeaderSelect)||void 0===e||e.call(o,!0)}var e=o.styles,n=o.theme,r=o.className,i=o.fromYear,s=o.toYear,a=void 0===(u=o.strings)?xh:u,l=o.animateBackwards,c=o.animationDirection,u=function(e){var t;return null!==(t=null===(t=o.onRenderYear)||void 0===t?void 0:t.call(o,e))&&void 0!==t?t:e},l=Sh(e,{theme:n,className:r,hasHeaderClickCallback:!!o.onHeaderSelect,animateBackwards:l,animationDirection:c});if(o.onHeaderSelect){c=a.rangeAriaLabel,a=a.headerAriaLabelFormatString,c=c?"string"==typeof c?c:c(o):void 0,c=a?$p(a,c):c;return gt.createElement("button",{className:l.currentItemButton,onClick:t,onKeyDown:function(e){e.which!==Tn.enter&&e.which!==Tn.space||t()},"aria-label":c,role:"button",type:"button","aria-atomic":!0,"aria-live":"polite"},u(i)," - ",u(s))}return gt.createElement("div",{className:l.current},u(i)," - ",u(s))}Th.displayName="CalendarYearTitle";function Eh(e){var t=e.styles,o=e.theme,n=e.className,r=e.animateBackwards,i=e.animationDirection,s=e.onRenderTitle,i=Sh(t,{theme:o,className:n,hasHeaderClickCallback:!!e.onHeaderSelect,animateBackwards:r,animationDirection:i});return gt.createElement("div",{className:i.headerContainer},null!==(s=null==s?void 0:s(e))&&void 0!==s?s:gt.createElement(Th,ht({},e)),gt.createElement(Dh,ht({},e)))}var Ph;Eh.displayName="CalendarYearHeader",(ke=Ph=Ph||{})[ke.Previous=0]="Previous",ke[ke.Next=1]="Next";W=function(e){var t,o,n,r,i,s=(r=e.selectedYear,i=e.navigatedYear,r=r||i||(new Date).getFullYear(),i=10*Math.floor(r/10),(r=Oc(i))&&r!==i?i<r:void 0),a=(t=e.selectedYear,o=e.navigatedYear,d=gt.useReducer(function(e,t){return e+(t===Ph.Next?12:-12)},void 0,function(){var e=t||o||(new Date).getFullYear();return 10*Math.floor(e/10)}),p=d[0],n=d[1],[p,p+12-1,function(){return n(Ph.Next)},function(){return n(Ph.Previous)}]),l=a[0],c=a[1],i=a[2],r=a[3],u=gt.useRef(null);gt.useImperativeHandle(e.componentRef,function(){return{focus:function(){var e,t;null===(t=null===(e=u.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)}}});var d=e.styles,p=e.theme,a=e.className,a=Sh(d,{theme:p,className:a});return gt.createElement("div",{className:a.root},gt.createElement(Eh,ht({},e,{fromYear:l,toYear:c,onSelectPrev:r,onSelectNext:i,animateBackwards:s})),gt.createElement(kh,ht({},e,{fromYear:l,toYear:c,animateBackwards:s,componentRef:u})))};W.displayName="CalendarYearBase";var Rh=In(W,K,void 0,{scope:"CalendarYear"}),Mh=Fn(),Nh={styles:G,strings:void 0,navigationIcons:_h,dateTimeFormatter:Y,yearPickerHidden:!1},U=function(e){function p(o){return function(){return e=o,null===(t=h.onHeaderSelect)||void 0===t||t.call(h),void H(Hp(S,e),!0);var e,t}}var t,o,n,r,i,s,a,l,c,u,d,h=Hn(Nh,e),m=(n=h.componentRef,r=gt.useRef(null),i=gt.useRef(null),s=gt.useRef(!1),a=gt.useCallback(function(){i.current?i.current.focus():r.current&&r.current.focus()},[]),gt.useImperativeHandle(n,function(){return{focus:a}},[a]),gt.useEffect(function(){s.current&&(a(),s.current=!1)}),[r,i,function(){s.current=!0}]),g=m[0],f=m[1],v=m[2],b=gt.useState(!1),y=b[0],C=b[1],_=(t=h.navigatedDate.getFullYear(),void 0===(o=Oc(t))||o===t?void 0:t<o),S=h.navigatedDate,x=h.selectedDate,k=h.strings,w=h.today,I=void 0===w?new Date:w,D=h.navigationIcons,T=h.dateTimeFormatter,E=h.minDate,P=h.maxDate,R=h.theme,M=h.styles,N=h.className,B=h.allFocusable,F=h.highlightCurrentMonth,A=h.highlightSelectedMonth,e=h.animationDirection,L=h.yearPickerHidden,H=h.onNavigateDate,n=function(){H(Np(S,1),!1)},m=function(){H(Np(S,-1),!1)},b=function(){var e;L?null===(e=h.onHeaderSelect)||void 0===e||e.call(h):(v(),C(!0))},t=D.leftNavigation,o=D.rightNavigation,O=T,w=!E||zp(E,Ap(S))<0,T=!P||zp(Lp(S),P)<0,z=Mh(M,{theme:R,className:N,hasHeaderClickCallback:!!h.onHeaderSelect||!L,highlightCurrent:F,highlightSelected:A,animateBackwards:_,animationDirection:e});if(y){y=(l=(_=h).strings,c=_.navigatedDate,u=_.dateTimeFormatter,[d=function(e){if(u){var t=new Date(c.getTime());return t.setFullYear(e),u.formatYear(t)}return String(e)},{rangeAriaLabel:W,prevRangeAriaLabel:function(e){return l.prevYearRangeAriaLabel?l.prevYearRangeAriaLabel+" "+W(e):""},nextRangeAriaLabel:function(e){return l.nextYearRangeAriaLabel?l.nextYearRangeAriaLabel+" "+W(e):""},headerAriaLabelFormatString:l.yearPickerHeaderAriaLabel}]),_=y[0],y=y[1];return gt.createElement(Rh,{key:"calendarYear",minYear:E?E.getFullYear():void 0,maxYear:P?P.getFullYear():void 0,onSelectYear:function(e){var t;v(),S.getFullYear()!==e&&((t=new Date(S.getTime())).setFullYear(e),P&&P<t?t=Hp(t,P.getMonth()):E&&t<E&&(t=Hp(t,E.getMonth())),H(t,!0)),C(!1)},navigationIcons:D,onHeaderSelect:function(e){v(),C(!1)},selectedYear:x?x.getFullYear():S?S.getFullYear():void 0,onRenderYear:_,strings:y,componentRef:f,styles:M,highlightCurrentYear:F,highlightSelectedYear:A,animationDirection:e})}function W(e){return d(e.fromYear)+" - "+d(e.toYear)}for(var V=[],K=0;K<k.shortMonths.length/4;K++)V.push(K);M=O.formatYear(S),e=k.monthPickerHeaderAriaLabel?$p(k.monthPickerHeaderAriaLabel,M):M;return gt.createElement("div",{className:z.root},gt.createElement("div",{className:z.headerContainer},gt.createElement("button",{className:z.currentItemButton,onClick:b,onKeyDown:Bh(b),"aria-label":e,"data-is-focusable":!!h.onHeaderSelect||!L,tabIndex:h.onHeaderSelect||!L?0:-1,type:"button","aria-atomic":!0,"aria-live":"polite"},M),gt.createElement("div",{className:z.navigationButtonsContainer},gt.createElement("button",{className:Pr(z.navigationButton,((e={})[z.disabled]=!w,e)),"aria-disabled":!w,tabIndex:w?void 0:B?0:-1,onClick:w?m:void 0,onKeyDown:w?Bh(m):void 0,title:k.prevYearAriaLabel?k.prevYearAriaLabel+" "+O.formatYear(Np(S,-1)):void 0,type:"button"},gt.createElement(Vr,{iconName:Pn()?o:t})),gt.createElement("button",{className:Pr(z.navigationButton,((m={})[z.disabled]=!T,m)),"aria-disabled":!T,tabIndex:T?void 0:B?0:-1,onClick:T?n:void 0,onKeyDown:T?Bh(n):void 0,title:k.nextYearAriaLabel?k.nextYearAriaLabel+" "+O.formatYear(Np(S,1)):void 0,type:"button"},gt.createElement(Vr,{iconName:Pn()?t:o})))),gt.createElement(Zs,null,gt.createElement("div",{className:z.gridContainer,role:"grid","aria-label":M},V.map(function(d){var e=k.shortMonths.slice(4*d,4*(d+1));return gt.createElement("div",{key:"monthRow_"+d+S.getFullYear(),role:"row",className:z.buttonRow},e.map(function(e,t){var o,n,r,i=4*d+t,s=Hp(S,i),a=S.getMonth()===i,l=x.getMonth()===i,c=x.getFullYear()===S.getFullYear(),u=(!E||zp(E,Fp(s))<1)&&(!P||zp(Bp(s),P)<1);return gt.createElement("button",{ref:a?g:void 0,role:"gridcell",className:Pr(z.itemButton,((o={})[z.current]=F&&(n=i,r=S.getFullYear(),(t=I).getFullYear()===r&&t.getMonth()===n),o[z.selected]=A&&l&&c,o[z.disabled]=!u,o)),disabled:!B&&!u,key:i,onClick:u?p(i):void 0,onKeyDown:u?Bh(p(i)):void 0,"aria-label":O.formatMonth(s,k),"aria-selected":a,"data-is-focusable":!!u||void 0,type:"button"},e)}))}))))};function Bh(t){return function(e){e.which===Tn.enter&&t()}}U.displayName="CalendarMonthBase";var Fh=In(U,G,void 0,{scope:"CalendarMonth"});function Ah(e,t,o){var n=gt.useState(t),t=n[0],r=n[1],i=xl(void 0!==e),s=i?e:t,a=gt.useRef(s),l=gt.useRef(o);gt.useEffect(function(){a.current=s,l.current=o});t=xl(function(){return function(e,t){e="function"==typeof e?e(a.current):e;l.current&&l.current(t,e),i||r(e)}});return[s,t]}var Lh=Fn(),ke=[xp.Monday,xp.Tuesday,xp.Wednesday,xp.Thursday,xp.Friday],Hh={isMonthPickerVisible:!0,isDayPickerVisible:!0,showMonthPickerAsOverlay:!1,today:new Date,firstDayOfWeek:xp.Sunday,dateRangeType:Ip.Day,showGoToToday:!0,strings:xe,highlightCurrentMonth:!1,highlightSelectedMonth:!1,navigationIcons:_h,showWeekNumbers:!1,firstWeekOfYear:wp.FirstDay,dateTimeFormatter:Y,showSixWeeksByDefault:!1,workWeekDays:ke,showCloseButton:!1,allFocusable:!1},W=gt.forwardRef(function(e,t){function o(){var t,e=Z;return Z&&J&&(e=M.getFullYear()!==J.getFullYear()||M.getMonth()!==J.getMonth()||N.getFullYear()!==J.getFullYear()||N.getMonth()!==J.getMonth()),Z&>.createElement("button",{className:Pr("js-goToday",ee.goTodayButton),onClick:n,onKeyDown:(t=n,function(e){switch(e.which){case Tn.enter:case Tn.space:t()}}),type:"button",disabled:!e},Y.goToToday)}function n(){F(J),G()}var r,i,s,a,l,c,u,d,p,h,m,g,f,v,b,y,C,_,S,x,k,w,I,D,T,E=Hn(Hh,e),P=(y=(b=E).value,C=b.today,_=void 0===C?new Date:C,S=b.onSelectDate,x=Ah(y,_),k=x[0],w=void 0===k?_:k,I=x[1],C=gt.useState(y),b=C[0],k=void 0===b?_:b,D=C[1],x=gt.useState(y),b=x[0],C=void 0===b?_:b,T=x[1],b=gt.useState(y),x=void 0===(x=b[0])?_:x,b=b[1],y&&x.valueOf()!==y.valueOf()&&(D(y),T(y),b(y)),[w,k,C,function(e,t){T(e),D(e),I(e),null==S||S(e,t)},function(e){T(e),D(e)},function(e){T(e)}]),R=P[0],M=P[1],N=P[2],B=P[3],F=P[4],A=P[5],L=(p=Ah(Oh(d=E)?void 0:d.isMonthPickerVisible,!1),h=p[0],m=void 0===h||h,g=p[1],p=Ah(Oh(d)?void 0:d.isDayPickerVisible,!0),d=p[0],f=void 0===d||d,v=p[1],[m,f,function(){g(!m),v(!f)}]),H=L[0],O=L[1],z=L[2],W=(r=O,i=H,s=E.componentRef,a=gt.useRef(null),l=gt.useRef(null),c=gt.useRef(!1),u=gt.useCallback(function(){r&&a.current?fs(a.current):i&&l.current&&fs(l.current)},[r,i]),gt.useImperativeHandle(s,function(){return{focus:u}},[u]),gt.useEffect(function(){c.current&&(u(),c.current=!1)}),[a,l,function(){c.current=!0}]),V=W[0],K=W[1],G=W[2],U=Oh(E)?function(){z(),G()}:void 0,j=E.firstDayOfWeek,q=E.dateRangeType,Y=E.strings,Z=E.showGoToToday,X=E.highlightCurrentMonth,Q=E.highlightSelectedMonth,e=E.navigationIcons,_=E.minDate,x=E.maxDate,b=E.restrictedDates,y=E.className,w=E.showCloseButton,k=E.allFocusable,C=E.styles,P=E.showWeekNumbers,h=E.theme,d=E.calendarDayProps,p=E.calendarMonthProps,L=E.dateTimeFormatter,s=E.today,J=void 0===s?new Date:s,W=Oh(E),$=!W&&!O,s=W&&Z,ee=Lh(C,{theme:h,className:y,isMonthPickerVisible:H,isDayPickerVisible:O,monthPickerOnly:$,showMonthPickerAsOverlay:W,overlaidWithButton:s,overlayedWithButton:s,showGoToToday:Z,showWeekNumbers:P}),s="",P="";return L&&Y.todayDateFormatString&&(s=$p(Y.todayDateFormatString,L.formatMonthDayYear(J,Y))),L&&Y.selectedDateFormatString&&(P=$p(Y.selectedDateFormatString,L.formatMonthDayYear(R,Y))),gt.createElement("div",{ref:t,role:"group","aria-label":P+", "+s,className:Pr("ms-DatePicker",ee.root,y,"ms-slideDownIn10"),onKeyDown:function(e){var t;switch(e.which){case Tn.enter:case Tn.backspace:e.preventDefault();break;case Tn.escape:null===(t=E.onDismiss)||void 0===t||t.call(E);break;case Tn.pageUp:e.ctrlKey?F(Np(M,1)):F(Mp(M,1)),e.preventDefault();break;case Tn.pageDown:e.ctrlKey?F(Np(M,-1)):F(Mp(M,-1)),e.preventDefault()}}},gt.createElement("div",{className:ee.liveRegion,"aria-live":"polite","aria-atomic":"true"},gt.createElement("span",null,P)),O&>.createElement(bh,ht({selectedDate:R,navigatedDate:M,today:E.today,onSelectDate:B,onNavigateDate:function(e,t){F(e),t&&G()},onDismiss:E.onDismiss,firstDayOfWeek:j,dateRangeType:q,strings:Y,onHeaderSelect:U,navigationIcons:e,showWeekNumbers:E.showWeekNumbers,firstWeekOfYear:E.firstWeekOfYear,dateTimeFormatter:E.dateTimeFormatter,showSixWeeksByDefault:E.showSixWeeksByDefault,minDate:_,maxDate:x,restrictedDates:b,workWeekDays:E.workWeekDays,componentRef:V,showCloseButton:w,allFocusable:k},d)),O&&H&>.createElement("div",{className:ee.divider}),H?gt.createElement("div",{className:ee.monthPickerWrapper},gt.createElement(Fh,ht({navigatedDate:N,selectedDate:M,strings:Y,onNavigateDate:function(e,t){t&&G(),t?($&&B(e),F(e)):A(e)},today:E.today,highlightCurrentMonth:X,highlightSelectedMonth:Q,onHeaderSelect:U,navigationIcons:e,dateTimeFormatter:E.dateTimeFormatter,minDate:_,maxDate:x,componentRef:K},p)),o()):o(),gt.createElement(na,null))});function Oh(e){var t=qe();return e.showMonthPickerAsOverlay||t&&t.innerWidth<=440}W.displayName="CalendarBase";function zh(e){var t=gt.useRef(e);t.current=e,gt.useEffect(function(){return function(){var e;null===(e=t.current)||void 0===e||e.call(t)}},[])}var Wh=In(W,function(e){var t=e.className,o=e.theme,n=e.isDayPickerVisible,r=e.isMonthPickerVisible,i=e.showWeekNumbers,s=o.palette,e=n&&r?440:220;return i&&n&&(e+=30),{root:[Uo,{display:"flex",width:e},!r&&{flexDirection:"column"},t],divider:{top:0,borderRight:"1px solid",borderColor:s.neutralLight},monthPickerWrapper:[{display:"flex",flexDirection:"column"}],goTodayButton:[bo(o,{inset:-1}),{bottom:0,color:s.neutralPrimary,height:30,lineHeight:30,backgroundColor:"transparent",border:"none",boxSizing:"content-box",padding:"0 4px",alignSelf:"flex-end",marginRight:16,marginTop:3,fontSize:Be.small,fontFamily:"inherit",overflow:"visible",selectors:{"& div":{fontSize:Be.small},"&:hover":{color:s.themePrimary,backgroundColor:"transparent",cursor:"pointer"},"&:active":{color:s.themeDark},"&:disabled":{color:s.neutralTertiaryAlt,pointerEvents:"none"}}}],liveRegion:{border:0,height:"1px",margin:"-1px",overflow:"hidden",padding:0,width:"1px",position:"absolute"}}},void 0,{scope:"Calendar"}),Vh=gt.forwardRef(function(e,t){var o,n,r=gt.useRef(null),i=gt.useRef(null),s=gt.useRef(null),a=Sr(r,t),l=su(void 0,e.id),c=Tl(),u=ur(e,cr),d=xl(function(){return{previouslyFocusedElementOutsideTrapZone:void 0,previouslyFocusedElementInTrapZone:void 0,disposeFocusHandler:void 0,disposeClickHandler:void 0,hasFocus:!1,unmodalize:void 0}}),p=e.ariaLabelledBy,h=e.className,m=e.children,g=e.componentRef,f=e.disabled,v=e.disableFirstFocus,b=void 0!==v&&v,y=e.disabled,C=void 0!==y&&y,_=e.elementToFocusOnDismiss,S=e.forceFocusInsideTrap,x=void 0===S||S,k=e.focusPreviouslyFocusedInnerElement,w=e.firstFocusableSelector,I=e.firstFocusableTarget,D=e.ignoreExternalFocusing,t=e.isClickableOutsideFocusTrap,T=void 0!==t&&t,v=e.onFocus,y=e.onBlur,E=e.onFocusCapture,P=e.onBlurCapture,R=e.enableAriaHiddenSiblings,S={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:f?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},M=gt.useCallback(function(){var e,t;k&&d.previouslyFocusedElementInTrapZone&&es(r.current,d.previouslyFocusedElementInTrapZone)?fs(d.previouslyFocusedElementInTrapZone):(e="string"==typeof w?w:w&&w(),t=null,r.current&&("string"==typeof I?t=r.current.querySelector(I):I?t=I(r.current):e&&(t=r.current.querySelector("."+e)),t=t||as(r.current,r.current.firstChild,!1,!1,!1,!0)),t&&fs(t))},[w,I,k,d]),N=gt.useCallback(function(e){var t;f||(t=(e===d.hasFocus?s:i).current,!r.current||(t=(e===d.hasFocus?rs:ns)(r.current,t,!0,!1))&&(t===i.current||t===s.current?M():t.focus()))},[f,M,d]),t=gt.useCallback(function(e){null==P||P(e);var t=e.relatedTarget;null===e.relatedTarget&&(t=c.activeElement),es(r.current,t)||(d.hasFocus=!1)},[c,d,P]),e=gt.useCallback(function(e){null==E||E(e),e.target===i.current?N(!0):e.target===s.current&&N(!1),d.hasFocus=!0,e.target!==e.currentTarget&&e.target!==i.current&&e.target!==s.current&&(d.previouslyFocusedElementInTrapZone=e.target)},[E,d,N]),B=gt.useCallback(function(){var e;Vh.focusStack=Vh.focusStack.filter(function(e){return l!==e}),c&&(e=c.activeElement,D||!d.previouslyFocusedElementOutsideTrapZone||"function"!=typeof d.previouslyFocusedElementOutsideTrapZone.focus||!es(r.current,e)&&e!==c.body||d.previouslyFocusedElementOutsideTrapZone!==i.current&&d.previouslyFocusedElementOutsideTrapZone!==s.current&&fs(d.previouslyFocusedElementOutsideTrapZone))},[c,l,D,d]),F=gt.useCallback(function(e){var t;!f&&Vh.focusStack.length&&l===Vh.focusStack[Vh.focusStack.length-1]&&(t=e.target,es(r.current,t)||(M(),d.hasFocus=!0,e.preventDefault(),e.stopPropagation()))},[f,l,M,d]),A=gt.useCallback(function(e){var t;f||!Vh.focusStack.length||l!==Vh.focusStack[Vh.focusStack.length-1]||(t=e.target)&&!es(r.current,t)&&(M(),d.hasFocus=!0,e.preventDefault(),e.stopPropagation())},[f,l,M,d]),L=gt.useCallback(function(){x&&!d.disposeFocusHandler?d.disposeFocusHandler=Wa(window,"focus",F,!0):!x&&d.disposeFocusHandler&&(d.disposeFocusHandler(),d.disposeFocusHandler=void 0),T||d.disposeClickHandler?T&&d.disposeClickHandler&&(d.disposeClickHandler(),d.disposeClickHandler=void 0):d.disposeClickHandler=Wa(window,"click",A,!0)},[A,F,x,T,d]);return gt.useEffect(function(){var e=r.current;return L(),function(){f&&!x&&es(e,null==c?void 0:c.activeElement)||B()}},[L]),gt.useEffect(function(){var e=void 0===x||x,t=void 0!==f&&f;if(!t||e){if(C)return;Vh.focusStack.push(l),d.previouslyFocusedElementOutsideTrapZone=_||c.activeElement,b||es(r.current,d.previouslyFocusedElementOutsideTrapZone)||M(),!d.unmodalize&&r.current&&R&&(d.unmodalize=Sl(r.current))}else e&&!t||(B(),d.unmodalize&&d.unmodalize());_&&d.previouslyFocusedElementOutsideTrapZone!==_&&(d.previouslyFocusedElementOutsideTrapZone=_)},[_,x,f]),zh(function(){d.disposeClickHandler&&(d.disposeClickHandler(),d.disposeClickHandler=void 0),d.disposeFocusHandler&&(d.disposeFocusHandler(),d.disposeFocusHandler=void 0),d.unmodalize&&d.unmodalize(),delete d.previouslyFocusedElementInTrapZone,delete d.previouslyFocusedElementOutsideTrapZone}),o=d.previouslyFocusedElementInTrapZone,n=M,gt.useImperativeHandle(g,function(){return{get previouslyFocusedElement(){return o},focus:n}},[o,n]),gt.createElement("div",ht({},u,{className:h,ref:a,"aria-labelledby":p,onFocusCapture:e,onFocus:v,onBlur:y,onBlurCapture:t}),gt.createElement("div",ht({},S,{ref:i})),m,gt.createElement("div",ht({},S,{ref:s})))});Vh.displayName="FocusTrapZone",Vh.focusStack=[];var Kh=function(e){return gt.createElement(lc,ht({},e),gt.createElement(Vh,ht({disabled:e.hidden},e.focusTrapProps),e.children))},Gh=Fn(),Uh=gt.forwardRef(function(e,t){var o=e.checked,n=e.className,r=e.theme,i=e.styles,e=e.useFastIcons,e=void 0===e||e,o=Gh(i,{theme:r,className:n,checked:void 0!==o&&o}),e=e?Hr:Vr;return gt.createElement("div",{className:o.root,ref:t},gt.createElement(e,{iconName:"CircleRing",className:o.circle}),gt.createElement(e,{iconName:"StatusCircleCheckmark",className:o.check}))});Uh.displayName="CheckBase";var jh={root:"ms-Check",circle:"ms-Check-circle",check:"ms-Check-check",checkHost:"ms-Check-checkHost"},qh=In(Uh,function(e){var t=e.height,o=void 0===t?e.checkBoxHeight||"18px":t,n=e.checked,r=e.className,i=e.theme,s=i.palette,a=i.semanticColors,l=i.fonts,t=Pn(i),e=zo(jh,i),i={fontSize:o,position:"absolute",left:0,top:0,width:o,height:o,textAlign:"center",display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle"};return{root:[e.root,l.medium,{lineHeight:"1",width:o,height:o,verticalAlign:"top",position:"relative",userSelect:"none",selectors:((a={":before":{content:'""',position:"absolute",top:"1px",right:"1px",bottom:"1px",left:"1px",borderRadius:"50%",opacity:1,background:a.bodyBackground}})["."+e.checkHost+":hover &, ."+e.checkHost+":focus &, &:hover, &:focus"]={opacity:1},a)},n&&["is-checked",{selectors:{":before":{background:s.themePrimary,opacity:1,selectors:((a={})[Yt]={background:"Window"},a)}}}],r],circle:[e.circle,i,{color:s.neutralSecondary,selectors:((r={})[Yt]={color:"WindowText"},r)},n&&{color:s.white}],check:[e.check,i,{opacity:0,color:s.neutralSecondary,fontSize:Ae.medium,left:t?"-0.5px":".5px",top:"-1px",selectors:((t={":hover":{opacity:1}})[Yt]=ht({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)},n&&{opacity:1,color:s.white,fontWeight:900,selectors:((s={})[Yt]={border:"none",color:"WindowText"},s)}],checkHost:e.checkHost}},void 0,{scope:"Check"},!0),Yh=Fn(),Zh=gt.forwardRef(function(e,t){var o,n,r,i=e.disabled,s=e.required,a=e.inputProps,l=e.name,c=e.ariaLabel,u=e.ariaLabelledBy,d=e.ariaDescribedBy,p=e.ariaPositionInSet,h=e.ariaSetSize,m=e.title,g=e.checkmarkIconProps,f=e.styles,v=e.theme,b=e.className,y=e.boxSide,C=void 0===y?"start":y,_=su("checkbox-",e.id),S=gt.useRef(null),x=Sr(S,t),y=gt.useRef(null),t=Ah(e.checked,e.defaultChecked,e.onChange),k=t[0],w=t[1],t=Ah(e.indeterminate,e.defaultIndeterminate),I=t[0],D=t[1];oa(S),o=k,n=I,r=y,gt.useImperativeHandle(e.componentRef,function(){return{get checked(){return!!o},get indeterminate(){return!!n},focus:function(){r.current&&r.current.focus()}}},[r,o,n]);var T=Yh(f,{theme:v,className:b,disabled:i,indeterminate:I,checked:k,reversed:"start"!==C,isUsingCustomLabelRender:!!e.onRenderLabel}),v=gt.useCallback(function(e){return e&&e.label?gt.createElement("span",{className:T.text,title:e.title},e.label):null},[T.text]),b=e.onRenderLabel||v,C=I?"mixed":void 0,C=ht(ht({className:T.input,type:"checkbox"},a),{checked:!!k,disabled:i,required:s,name:l,id:_,title:m,onChange:function(e){I?(w(!!k,e),D(!1)):w(!k,e)},"aria-disabled":i,"aria-label":c,"aria-labelledby":u,"aria-describedby":d,"aria-posinset":p,"aria-setsize":h,"aria-checked":C});return gt.createElement("div",{className:T.root,title:m,ref:x},gt.createElement("input",ht({},C,{ref:y,title:m,"data-ktp-execute-target":!0})),gt.createElement("label",{className:T.label,htmlFor:_},gt.createElement("div",{className:T.checkbox,"data-ktp-target":!0},gt.createElement(Vr,ht({iconName:"CheckMark"},g,{className:T.checkmark}))),b(e,v)))});Zh.displayName="CheckboxBase";var Xh,Qh={root:"ms-Checkbox",label:"ms-Checkbox-label",checkbox:"ms-Checkbox-checkbox",checkmark:"ms-Checkbox-checkmark",text:"ms-Checkbox-text"},Jh="cubic-bezier(.4, 0, .23, 1)",$h=In(Zh,function(e){var t,o,n,r=e.className,i=e.theme,s=e.reversed,a=e.checked,l=e.disabled,c=e.isUsingCustomLabelRender,u=e.indeterminate,d=i.semanticColors,p=i.effects,h=i.palette,m=i.fonts,g=zo(Qh,i),f=d.inputForegroundChecked,v=h.neutralSecondary,b=h.neutralPrimary,y=d.inputBackgroundChecked,C=d.inputBackgroundChecked,_=d.disabledBodySubtext,S=d.inputBorderHovered,x=d.inputBackgroundCheckedHovered,k=d.inputBackgroundChecked,w=d.inputBackgroundCheckedHovered,I=d.inputBackgroundCheckedHovered,D=d.inputTextHovered,T=d.disabledBodySubtext,E=d.bodyText,P=d.disabledText,h=[((e={content:'""',borderRadius:p.roundedCorner2,position:"absolute",width:10,height:10,top:4,left:4,boxSizing:"border-box",borderWidth:5,borderStyle:"solid",borderColor:l?_:y,transitionProperty:"border-width, border, border-color",transitionDuration:"200ms",transitionTimingFunction:Jh})[Yt]={borderColor:"WindowText"},e)];return{root:[g.root,{position:"relative",display:"flex"},s&&"reversed",a&&"is-checked",!l&&"is-enabled",l&&"is-disabled",!l&&[!a&&((d={})[":hover ."+g.checkbox]=((e={borderColor:S})[Yt]={borderColor:"Highlight"},e),d[":focus ."+g.checkbox]={borderColor:S},d[":hover ."+g.checkmark]=((v={color:v,opacity:"1"})[Yt]={color:"Highlight"},v),d),a&&!u&&((t={})[":hover ."+g.checkbox]={background:w,borderColor:I},t[":focus ."+g.checkbox]={background:w,borderColor:I},t[Yt]=((I={})[":hover ."+g.checkbox]={background:"Highlight",borderColor:"Highlight"},I[":focus ."+g.checkbox]={background:"Highlight"},I[":focus:hover ."+g.checkbox]={background:"Highlight"},I[":focus:hover ."+g.checkmark]={color:"Window"},I[":hover ."+g.checkmark]={color:"Window"},I),t),u&&((o={})[":hover ."+g.checkbox+", :hover ."+g.checkbox+":after"]=((t={borderColor:x})[Yt]={borderColor:"WindowText"},t),o[":focus ."+g.checkbox]={borderColor:x},o[":hover ."+g.checkmark]={opacity:"0"},o),((o={})[":hover ."+g.text+", :focus ."+g.text]=((D={color:D})[Yt]={color:l?"GrayText":"WindowText"},D),o)],r],input:((o={position:"absolute",background:"none",opacity:0})["."+go+" &:focus + label::before"]=((r={outline:"1px solid "+i.palette.neutralSecondary,outlineOffset:"2px"})[Yt]={outline:"1px solid WindowText"},r),o),label:[g.label,i.fonts.medium,{display:"flex",alignItems:c?"center":"flex-start",cursor:l?"default":"pointer",position:"relative",userSelect:"none"},s&&{flexDirection:"row-reverse",justifyContent:"flex-end"},{"&::before":{position:"absolute",left:0,right:0,top:0,bottom:0,content:'""',pointerEvents:"none"}}],checkbox:[g.checkbox,((h={position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",height:"20px",width:"20px",border:"1px solid "+b,borderRadius:p.roundedCorner2,boxSizing:"border-box",transitionProperty:"background, border, border-color",transitionDuration:"200ms",transitionTimingFunction:Jh,overflow:"hidden",":after":u?h:null})[Yt]=ht({borderColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),h),u&&{borderColor:y},s?{marginLeft:4}:{marginRight:4},!l&&!u&&a&&((n={background:k,borderColor:C})[Yt]={background:"Highlight",borderColor:"Highlight"},n),l&&((n={borderColor:_})[Yt]={borderColor:"GrayText"},n),a&&l&&((_={background:T,borderColor:_})[Yt]={background:"Window"},_)],checkmark:[g.checkmark,((f={opacity:a&&!u?"1":"0",color:f})[Yt]=ht({color:l?"GrayText":"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),f)],text:[g.text,((m={color:l?P:E,fontSize:m.medium.fontSize,lineHeight:"20px"})[Yt]=ht({color:l?"GrayText":"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),m),s?{marginRight:4}:{marginLeft:4}]}},void 0,{scope:"Checkbox"}),em=Fn({cacheSize:100}),tm=(l(im,Xh=gt.Component),im.prototype.render=function(){var e=this.props,t=e.as,o=void 0===t?"label":t,n=e.children,r=e.className,i=e.disabled,s=e.styles,t=e.required,e=e.theme,e=em(s,{className:r,disabled:i,required:t,theme:e});return gt.createElement(o,ht({},ur(this.props,cr),{className:e.root}),n)},im),om=In(tm,function(e){var t=e.theme,o=e.className,n=e.disabled,r=e.required,i=t.semanticColors,s=Fe.semibold,a=i.bodyText,e=i.disabledBodyText,i=i.errorText;return{root:["ms-Label",t.fonts.medium,{fontWeight:s,color:a,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},n&&{color:e,selectors:((e={})[Yt]=ht({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),e)},r&&{selectors:{"::after":{content:"' *'",color:i,paddingRight:12}}},o]}},void 0,{scope:"Label"}),nm=Fn(),rm={imageSize:{width:32,height:32}},K=function(e){var n=Hn(ht(ht({},rm),{key:e.itemKey}),e),t=n.ariaLabel,o=n.focused,r=n.required,i=n.theme,s=n.iconProps,a=n.imageSrc,l=n.imageSize,c=n.disabled,u=n.checked,d=n.id,p=n.styles,h=n.name,e=mt(n,["ariaLabel","focused","required","theme","iconProps","imageSrc","imageSize","disabled","checked","id","styles","name"]),m=nm(p,{theme:i,hasIcon:!!s,hasImage:!!a,checked:u,disabled:c,imageIsLarge:!!a&&(71<l.width||71<l.height),imageSize:l,focused:o}),p=ur(e,Zn),i=p.className,o=mt(p,["className"]),g=function(){return gt.createElement("span",{id:n.labelId,className:"ms-ChoiceFieldLabel"},n.text)},e=function(){var e=n.imageAlt,t=void 0===e?"":e,o=n.selectedImageSrc,e=(n.onRenderLabel?Ma(n.onRenderLabel,g):g)(n);return gt.createElement("label",{htmlFor:d,className:m.field},a&>.createElement("div",{className:m.innerField},gt.createElement("div",{className:m.imageWrapper},gt.createElement(Dr,ht({src:a,alt:t},l))),gt.createElement("div",{className:m.selectedImageWrapper},gt.createElement(Dr,ht({src:o,alt:t},l)))),s&>.createElement("div",{className:m.innerField},gt.createElement("div",{className:m.iconWrapper},gt.createElement(Vr,ht({},s)))),a||s?gt.createElement("div",{className:m.labelWrapper},e):e)},p=n.onRenderField,p=void 0===p?e:p;return gt.createElement("div",{className:m.root},gt.createElement("div",{className:m.choiceFieldWrapper},gt.createElement("input",ht({"aria-label":t,id:d,className:Pr(m.input,i),type:"radio",name:h,disabled:c,checked:u,required:r},o,{onChange:function(e){var t;null===(t=n.onChange)||void 0===t||t.call(n,e,n)},onFocus:function(e){var t;null===(t=n.onFocus)||void 0===t||t.call(n,e,n)},onBlur:function(e){var t;null===(t=n.onBlur)||void 0===t||t.call(n,e)}})),p(n,e)))};function im(){return null!==Xh&&Xh.apply(this,arguments)||this}K.displayName="ChoiceGroupOption";var sm={root:"ms-ChoiceField",choiceFieldWrapper:"ms-ChoiceField-wrapper",input:"ms-ChoiceField-input",field:"ms-ChoiceField-field",innerField:"ms-ChoiceField-innerField",imageWrapper:"ms-ChoiceField-imageWrapper",iconWrapper:"ms-ChoiceField-iconWrapper",labelWrapper:"ms-ChoiceField-labelWrapper",checked:"is-checked"},am="200ms",lm="cubic-bezier(.4, 0, .23, 1)";function cm(e,t,o){return[t,{paddingBottom:2,transitionProperty:"opacity",transitionDuration:am,transitionTimingFunction:"ease",selectors:{".ms-Image":{display:"inline-block",borderStyle:"none"}}},(o?!e:e)&&["is-hidden",{position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",opacity:0}]]}function um(e,t){return t+"-"+e.key}function dm(e,t){return void 0===t?void 0:zi(e,function(e){return e.key===t})}function pm(e,t,o){e=dm(e,t)||e.filter(function(e){return!e.disabled})[0],(o=e&&document.getElementById(um(e,o)))&&(o.focus(),vo(!0,o))}var hm=In(K,function(e){var t=e.theme,o=e.hasIcon,n=e.hasImage,r=e.checked,i=e.disabled,s=e.imageIsLarge,a=e.focused,l=e.imageSize,c=t.palette,u=t.semanticColors,d=t.fonts,p=zo(sm,t),h=c.neutralPrimary,m=u.inputBorderHovered,g=u.inputBackgroundChecked,f=c.themeDark,v=u.disabledBodySubtext,b=u.bodyBackground,y=c.neutralSecondary,C=u.inputBackgroundChecked,_=c.themeDark,S=u.disabledBodySubtext,x=c.neutralDark,k=u.focusBorder,w=u.inputBorderHovered,I=u.inputBackgroundChecked,e=c.themeDark,c=c.neutralLighter,_={selectors:{".ms-ChoiceFieldLabel":{color:x},":before":{borderColor:r?f:m},":after":[!o&&!n&&!r&&{content:'""',transitionProperty:"background-color",left:5,top:5,width:10,height:10,backgroundColor:y},r&&{borderColor:_,background:_}]}},m={borderColor:r?e:w,selectors:{":before":{opacity:1,borderColor:r?f:m}}},D=[{content:'""',display:"inline-block",backgroundColor:b,borderWidth:1,borderStyle:"solid",borderColor:h,width:20,height:20,fontWeight:"normal",position:"absolute",top:0,left:0,boxSizing:"border-box",transitionProperty:"border-color",transitionDuration:am,transitionTimingFunction:lm,borderRadius:"50%"},i&&{borderColor:v,selectors:((h={})[Yt]=ht({borderColor:"GrayText",background:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),h)},r&&{borderColor:i?v:g,selectors:((D={})[Yt]={borderColor:"Highlight",background:"Window",forcedColorAdjust:"none"},D)},(o||n)&&{top:3,right:3,left:"auto",opacity:r?1:0}],T=[{content:'""',width:0,height:0,borderRadius:"50%",position:"absolute",left:10,right:0,transitionProperty:"border-width",transitionDuration:am,transitionTimingFunction:lm,boxSizing:"border-box"},r&&{borderWidth:5,borderStyle:"solid",borderColor:i?S:C,background:C,left:5,top:5,width:10,height:10,selectors:((T={})[Yt]={borderColor:"Highlight",forcedColorAdjust:"none"},T)},r&&(o||n)&&{top:8,right:8,left:"auto"}];return{root:[p.root,t.fonts.medium,{display:"flex",alignItems:"center",boxSizing:"border-box",color:u.bodyText,minHeight:26,border:"none",position:"relative",marginTop:8,selectors:{".ms-ChoiceFieldLabel":{display:"inline-block"}}},!o&&!n&&{selectors:{".ms-ChoiceFieldLabel":{paddingLeft:"26px"}}},n&&"ms-ChoiceField--image",o&&"ms-ChoiceField--icon",(o||n)&&{display:"inline-flex",fontSize:0,margin:"0 4px 4px 0",paddingLeft:0,backgroundColor:c,height:"100%"}],choiceFieldWrapper:[p.choiceFieldWrapper,a&&["is-inFocus",{selectors:((a={})["."+go+" &"]={position:"relative",outline:"transparent",selectors:{"::-moz-focus-inner":{border:0},":after":{content:'""',top:-2,right:-2,bottom:-2,left:-2,pointerEvents:"none",border:"1px solid "+(k=k),position:"absolute",selectors:((k={})[Yt]={borderColor:"WindowText",borderWidth:o||n?1:2},k)}}},a)}]],input:[p.input,{position:"absolute",opacity:0,top:0,right:0,width:"100%",height:"100%",margin:0},i&&"is-disabled"],field:[p.field,r&&p.checked,{display:"inline-block",cursor:"pointer",marginTop:0,position:"relative",verticalAlign:"top",userSelect:"none",minHeight:20,selectors:{":hover":!i&&_,":focus":!i&&_,":before":D,":after":T}},o&&"ms-ChoiceField--icon",n&&"ms-ChoiceField-field--image",(o||n)&&{boxSizing:"content-box",cursor:"pointer",paddingTop:22,margin:0,textAlign:"center",transitionProperty:"all",transitionDuration:am,transitionTimingFunction:"ease",border:"1px solid transparent",justifyContent:"center",alignItems:"center",display:"flex",flexDirection:"column"},r&&{borderColor:I},(o||n)&&!i&&{selectors:{":hover":m,":focus":m}},i&&{cursor:"default",selectors:{".ms-ChoiceFieldLabel":{color:u.disabledBodyText,selectors:((u={})[Yt]=ht({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),u)}}},r&&i&&{borderColor:c}],innerField:[p.innerField,n&&{height:l.height,width:l.width},(o||n)&&{position:"relative",display:"inline-block",paddingLeft:30,paddingRight:30},(o||n)&&s&&{paddingLeft:24,paddingRight:24},(o||n)&&i&&{opacity:.25,selectors:((i={})[Yt]={color:"GrayText",opacity:1},i)}],imageWrapper:cm(!1,p.imageWrapper,r),selectedImageWrapper:cm(!0,p.imageWrapper,r),iconWrapper:[p.iconWrapper,{fontSize:32,lineHeight:32,height:32}],labelWrapper:[p.labelWrapper,d.medium,(o||n)&&{display:"block",position:"relative",margin:"4px 8px 2px 8px",height:32,lineHeight:15,maxWidth:2*l.width,overflow:"hidden",whiteSpace:"pre-wrap"}]}},void 0,{scope:"ChoiceGroupOption"}),mm=Fn(),gm=gt.forwardRef(function(e,t){var o,n,r,i=e.className,s=e.theme,a=e.styles,l=e.options,c=void 0===l?[]:l,u=e.label,d=e.required,p=e.disabled,h=e.name,m=e.defaultSelectedKey,g=e.componentRef,f=e.onChange,v=su("ChoiceGroup"),b=su("ChoiceGroupLabel"),l=ur(e,cr,["onChange","className","required"]),s=mm(a,{theme:s,className:i,optionsContainIconOrImage:c.some(function(e){return!(!e.iconProps&&!e.imageSrc)})}),i=e.ariaLabelledBy||(u?b:e["aria-labelledby"]),m=Ah(e.selectedKey,m),y=m[0],C=m[1],m=gt.useState(),_=m[0],S=m[1],m=gt.useRef(null),t=Sr(m,t);o=c,n=y,r=v,gt.useImperativeHandle(g,function(){return{get checkedOption(){return dm(o,n)},focus:function(){pm(o,n,r)}}},[o,n,r]),oa(m);var x=gt.useCallback(function(e,t){var o;t&&(S(t.itemKey),null===(o=t.onFocus)||void 0===o||o.call(t,e))},[]),k=gt.useCallback(function(e,t){var o;S(void 0),null===(o=null==t?void 0:t.onBlur)||void 0===o||o.call(t,e)},[]),w=gt.useCallback(function(e,t){var o;t&&(C(t.itemKey),null===(o=t.onChange)||void 0===o||o.call(t,e),null==f||f(e,dm(c,t.itemKey)))},[f,c,C]),m=gt.useCallback(function(e){e.relatedTarget instanceof HTMLElement&&"true"===e.relatedTarget.dataset.isFocusTrapZoneBumper&&pm(c,y,v)},[c,y,v]);return gt.createElement("div",ht({className:s.root},l,{ref:t}),gt.createElement("div",ht({role:"radiogroup"},i&&{"aria-labelledby":i},{onFocus:m}),u&>.createElement(om,{className:s.label,required:d,id:b,disabled:p},u),gt.createElement("div",{className:s.flexContainer},c.map(function(e){return gt.createElement(hm,ht({itemKey:e.key},e,{key:e.key,onBlur:k,onFocus:x,onChange:w,focused:e.key===_,checked:e.key===y,disabled:e.disabled||p,id:um(e,v),labelId:e.labelId||b+"-"+e.key,name:h||v,required:d}))}))))});gm.displayName="ChoiceGroup";var fm={root:"ms-ChoiceFieldGroup",flexContainer:"ms-ChoiceFieldGroup-flexContainer"},vm=In(gm,function(e){var t=e.className,o=e.optionsContainIconOrImage,n=e.theme,e=zo(fm,n);return{root:[t,e.root,n.fonts.medium,{display:"block"}],flexContainer:[e.flexContainer,o&&{display:"flex",flexDirection:"row",flexWrap:"wrap"}]}},void 0,{scope:"ChoiceGroup"}),bm=Ao(function(){return O({"0%":{transform:"translate(0, 0)",animationTimingFunction:"linear"},"78.57%":{transform:"translate(0, 0)",animationTimingFunction:"cubic-bezier(0.62, 0, 0.56, 1)"},"82.14%":{transform:"translate(0, -5px)",animationTimingFunction:"cubic-bezier(0.58, 0, 0, 1)"},"84.88%":{transform:"translate(0, 9px)",animationTimingFunction:"cubic-bezier(1, 0, 0.56, 1)"},"88.1%":{transform:"translate(0, -2px)",animationTimingFunction:"cubic-bezier(0.58, 0, 0.67, 1)"},"90.12%":{transform:"translate(0, 0)",animationTimingFunction:"linear"},"100%":{transform:"translate(0, 0)"}})}),ym=Ao(function(){return O({"0%":{transform:" scale(0)",animationTimingFunction:"linear"},"14.29%":{transform:"scale(0)",animationTimingFunction:"cubic-bezier(0.84, 0, 0.52, 0.99)"},"16.67%":{transform:"scale(1.15)",animationTimingFunction:"cubic-bezier(0.48, -0.01, 0.52, 1.01)"},"19.05%":{transform:"scale(0.95)",animationTimingFunction:"cubic-bezier(0.48, 0.02, 0.52, 0.98)"},"21.43%":{transform:"scale(1)",animationTimingFunction:"linear"},"42.86%":{transform:"scale(1)",animationTimingFunction:"cubic-bezier(0.48, -0.02, 0.52, 1.02)"},"45.71%":{transform:"scale(0.8)",animationTimingFunction:"cubic-bezier(0.48, 0.01, 0.52, 0.99)"},"50%":{transform:"scale(1)",animationTimingFunction:"linear"},"90.12%":{transform:"scale(1)",animationTimingFunction:"cubic-bezier(0.48, -0.02, 0.52, 1.02)"},"92.98%":{transform:"scale(0.8)",animationTimingFunction:"cubic-bezier(0.48, 0.01, 0.52, 0.99)"},"97.26%":{transform:"scale(1)",animationTimingFunction:"linear"},"100%":{transform:"scale(1)"}})}),Cm=Ao(function(){return O({"0%":{transform:"rotate(0deg)",animationTimingFunction:"linear"},"83.33%":{transform:" rotate(0deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"83.93%":{transform:"rotate(15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"84.52%":{transform:"rotate(-15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"85.12%":{transform:"rotate(15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"85.71%":{transform:"rotate(-15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"86.31%":{transform:"rotate(0deg)",animationTimingFunction:"linear"},"100%":{transform:"rotate(0deg)"}})}),_m=Ao(function(){var e;return pn({root:[{position:"absolute",boxSizing:"border-box",border:"1px solid ${}",selectors:((e={})[Yt]={border:"1px solid WindowText"},e)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}],container:{position:"relative"},main:{backgroundColor:"#ffffff",overflowX:"hidden",overflowY:"hidden",position:"relative"},overFlowYHidden:{overflowY:"hidden"}})}),Sm={opacity:0},xm=((U={})[Ba.top]="slideUpIn20",U[Ba.bottom]="slideDownIn20",U[Ba.left]="slideLeftIn20",U[Ba.right]="slideRightIn20",U),km={preventDismissOnScroll:!1,offsetFromTarget:0,minPagePadding:8,directionalHint:Pa.bottomAutoEdge};function wm(e,n){function r(){n&&i&&(c.current=l.requestAnimationFrame(function(){var e,t,o;n.current&&(t=(e=n.current.lastChild).scrollHeight,o=e.offsetHeight,a(s+(t-o)),e.offsetHeight<i?r():l.cancelAnimationFrame(c.current))}))}var i=e.finalHeight,e=gt.useState(0),s=e[0],a=e[1],l=kl(),c=gt.useRef(0);return gt.useEffect(r,[i]),s}var Im=gt.forwardRef(function(e,t){var o,n,r,i,s,a,l,c,u,d,p,h,m,g,f,v,b,y,C,_,S,x,k,w,I,D,T,E,P,R,M,N,B,F=Hn(km,e),A=gt.useRef(null),L=gt.useRef(null),H=Sr(t,L),O=Ml(F.target,L),z=O[0],W=O[1],V=(v=F,b=W,y=gt.useRef(),function(){var e;return y.current||(e=(e=v.bounds)||{top:0+v.minPagePadding,left:0+v.minPagePadding,right:b.innerWidth-v.minPagePadding,bottom:b.innerHeight-v.minPagePadding,width:b.innerWidth-2*v.minPagePadding,height:b.innerHeight-2*v.minPagePadding},y.current=e),y.current}),K=(l=F,c=L,u=A,d=z,p=V,h=kl(),U=gt.useState(),m=U[0],g=U[1],f=gt.useRef(0),U=function(){h.requestAnimationFrame(function(){var e=l.offsetFromTarget,t=l.onPositioned,o=c.current,n=u.current;if(o&&n){var r=ht({},l);r.bounds=p(),r.target=d.current;var i=r.target;if(i)if(!i.getBoundingClientRect&&!i.preventDefault||document.body.contains(i)){r.gapSpace=e;var s=gl(r,o,n);!m&&s||m&&s&&!function(e,t){return function(e,t){for(var o in t)if(t.hasOwnProperty(o)){var n=e[o],r=t[o];if(n&&r&&n.toFixed(2)!==r.toFixed(2))return!1}return!0}(e.elementPosition,t.elementPosition)}(m,s)&&f.current<5?(f.current++,g(s),null==t||t(s)):(f.current=0,null==t||t(s))}else void 0!==m&&g(void 0);else void 0!==m&&g(void 0)}})},gt.useEffect(U),[m,U]),G=K[0],e=K[1],O=(o=z,n=V,r=F.directionalHintFixed,i=F.offsetFromTarget,s=F.directionalHint,t=F.target,a=gt.useRef(),"string"==typeof t&&(a.current=void 0),gt.useEffect(function(){a.current=void 0},[t,i]),function(){return a.current||(r&&o.current?a.current=bl(o.current,s,i||0,n()):a.current=n().height-2),a.current}),U=wm(F,A);if(R=A,M=G,N=F.setInitialFocus,B=gt.useRef(!1),gt.useEffect(function(){!B.current&&R.current&&N&&M&&(B.current=!0,is(R.current))}),C=L,_=W,S=z,x=G,k=e,w=F.onDismiss,I=F.preventDismissOnScroll,D=kl(),T=gt.useCallback(function(e){w?w(e):k()},[w,k]),E=gt.useCallback(function(e){var t=e.target,o=C.current&&!es(C.current,t);(!S.current&&o||e.target!==_&&o&&(S.current.stopPropagation||!S.current||t!==S.current&&!es(S.current,t)))&&T(e)},[T,C,S,_]),P=gt.useCallback(function(e){x&&!I&&E(e)},[E,x,I]),gt.useEffect(function(){var t=new va({});return D.setTimeout(function(){var e;t.on(_,"scroll",D.throttle(P,10),!0),t.on(_,"resize",D.throttle(T,10),!0),t.on(null===(e=null==_?void 0:_.document)||void 0===e?void 0:e.body,"focus",E,!0),t.on(null===(e=null==_?void 0:_.document)||void 0===e?void 0:e.body,"click",E,!0)},0),function(){return t.dispose()}},[P]),gt.useEffect(function(){var e;return null===(e=F.onLayerMounted)||void 0===e?void 0:e.call(F)},[]),!W)return null;var K=F.className,V=F.doNotLayer,t=F.positioningContainerWidth,L=F.positioningContainerMaxHeight,z=F.children,e=_m(),W=G&&G.targetEdge?Le[xm[G.targetEdge]]:"",U=O()+U,L=L&&U<L?U:L,L=gt.createElement("div",{ref:H,className:Pr("ms-PositioningContainer",e.container)},gt.createElement("div",{className:j("ms-PositioningContainer-layerHost",e.root,K,W,!!t&&{width:t},V&&{zIndex:mo.Layer}),style:G?G.elementPosition:Sm,tabIndex:-1,ref:A},z,L));return V?L:gt.createElement(ac,null,L)});function Dm(e){return{root:[{position:"absolute",boxShadow:"inherit",border:"none",boxSizing:"border-box",transform:e.transform,width:e.width,height:e.height,left:e.left,top:e.top,right:e.right,bottom:e.bottom}],beak:{fill:e.color,display:"block",selectors:((e={})[Yt]={fill:"windowtext"},e)}}}Im.displayName="PositioningContainer";var Tm=gt.forwardRef(function(e,t){var o,n,r,i,s,a=e.left,l=e.top,c=e.bottom,u=e.right,d=e.color,p=e.direction,e=void 0===p?Ba.top:p,p=e===Ba.top||e===Ba.bottom?(o=10,18):(o=18,10);switch(e){case Ba.top:default:n="9, 0",r="18, 10",i="0, 10",s="translateY(-100%)";break;case Ba.right:n="0, 0",r="10, 10",i="0, 18",s="translateX(100%)";break;case Ba.bottom:n="0, 0",r="18, 0",i="9, 10",s="translateY(100%)";break;case Ba.left:n="10, 0",r="0, 10",i="10, 18",s="translateX(-100%)"}d=Fn()(Dm,{left:a,top:l,bottom:c,right:u,height:o+"px",width:p+"px",transform:s,color:d});return gt.createElement("div",{className:d.root,role:"presentation",ref:t},gt.createElement("svg",{height:o,width:p,className:d.beak},gt.createElement("polygon",{points:n+" "+r+" "+i})))});Tm.displayName="Beak";function Em(){var n=xl({});return gt.useEffect(function(){return function(){for(var e=0,t=Object.keys(n);e<t.length;e++){var o=t[e];clearTimeout(o)}}},[n]),xl({setTimeout:function(e,t){t=setTimeout(e,t);return n[t]=1,t},clearTimeout:function(e){delete n[e],clearTimeout(e)}})}var Pm=Fn(),Rm="data-coachmarkid",Mm={isCollapsed:!0,mouseProximityOffset:10,delayBeforeMouseOpen:3600,delayBeforeCoachmarkAnimation:0,isPositionForced:!0,positioningContainerProps:{directionalHint:Pa.bottomAutoEdge}},Nm=gt.forwardRef(function(e,t){var o,n,r,i,s,a,l,c,u,d,p,h,m,g,f,v,b,y,C,_,S,x,k,w,I,D,T,E,P,R,M,N,B=Hn(Mm,e),F=gt.useRef(null),A=gt.useRef(null),L=(x=kl(),X=gt.useState(),re=X[0],k=X[1],w=gt.useState(),X=w[0],I=w[1],[re,X,function(e){var t=e.alignmentEdge,o=e.targetEdge;return x.requestAnimationFrame(function(){k(t),I(o)})}]),H=L[0],O=L[1],z=L[2],W=(g=F,f=B.isCollapsed,v=B.onAnimationOpenStart,b=B.onAnimationOpenEnd,Q=gt.useState(!!f),J=Q[0],y=Q[1],C=Em().setTimeout,_=gt.useRef(!J),S=gt.useCallback(function(){var e,t;_.current||(y(!1),null==v||v(),null===(t=null===(e=g.current)||void 0===e?void 0:e.addEventListener)||void 0===t||t.call(e,"transitionend",function(){C(function(){g.current&&is(g.current)},1e3),null==b||b()}),_.current=!0)},[g,b,v,C]),gt.useEffect(function(){f||S()},[f]),[J,S]),V=W[0],K=W[1],G=(p=H,h=O,m=Pn(B.theme),gt.useMemo(function(){var e,t,o=void 0===h?Ba.bottom:-1*h,n={direction:o},r="3px";switch(o){case Ba.top:case Ba.bottom:e=p?p===Ba.left?(n.left="7px","left"):(n.right="7px","right"):(n.left="calc(50% - 9px)","center"),t=o===Ba.top?(n.top=r,"top"):(n.bottom=r,"bottom");break;case Ba.left:case Ba.right:t=p?p===Ba.top?(n.top="7px","top"):(n.bottom="7px","bottom"):(n.top="calc(50% - 9px)","center"),e=o===Ba.left?(m?n.right=r:n.left=r,"left"):(m?n.left=r:n.right=r,"right")}return[n,e+" "+t]},[p,h,m])),U=G[0],j=G[1],q=(te=B,l=F,$=gt.useState(!!te.isCollapsed),ee=$[0],c=$[1],$=gt.useState(te.isCollapsed?{width:0,height:0}:{}),te=$[0],u=$[1],d=kl(),gt.useEffect(function(){d.requestAnimationFrame(function(){l.current&&(u({width:l.current.offsetWidth,height:l.current.offsetHeight}),c(!1))})},[]),[ee,te]),Y=q[0],Z=q[1],e=(i=B.ariaAlertText,s=kl(),oe=gt.useState(),ne=oe[0],a=oe[1],gt.useEffect(function(){s.requestAnimationFrame(function(){a(i)})},[]),ne),w=(o=B.preventFocusOnMount,n=Em().setTimeout,r=gt.useRef(null),gt.useEffect(function(){o||n(function(){var e;return null===(e=r.current)||void 0===e?void 0:e.focus()},1e3)},[]),r);!function(r,i,n){var e=null===(t=ft())||void 0===t?void 0:t.documentElement;wl(e,"keydown",function(e){var t,o;(e.altKey&&e.which===Tn.c||e.which===Tn.enter&&null!==(o=null===(t=i.current)||void 0===t?void 0:t.contains)&&void 0!==o&&o.call(t,e.target))&&n()},!0);var t=function(e){var t,o,n;r.preventDismissOnLostFocus&&(t=e.target,o=i.current&&!es(i.current,t),n=r.target,o&&t!==n&&!es(n,t)&&(null===(t=r.onDismiss)||void 0===t||t.call(r,e)))};wl(e,"click",t,!0),wl(e,"focus",t,!0)}(B,A,K),N=B.onDismiss,gt.useImperativeHandle(B.componentRef,function(e){return{dismiss:function(){null==N||N(e)}}},[N]),D=B,T=A,E=K,re=Em(),P=re.setTimeout,R=re.clearTimeout,M=gt.useRef(),gt.useEffect(function(){function s(){T.current&&(M.current=T.current.getBoundingClientRect())}var o=new va({});return P(function(){var e=D.mouseProximityOffset,i=void 0===e?0:e,t=[];P(function(){s(),o.on(window,"resize",function(){t.forEach(function(e){R(e)}),t.splice(0,t.length),t.push(P(function(){s()},100))})},10),o.on(document,"mousemove",function(e){var t,o,n=e.clientY,r=e.clientX;s(),t=M.current,o=i,r>t.left-(o=void 0===o?0:o)&&r<t.left+t.width+o&&n>t.top-o&&n<t.top+t.height+o&&E(),null===(o=D.onMouseMove)||void 0===o||o.call(D,e)})},D.delayBeforeMouseOpen),function(){return o.dispose()}},[]);var X=B.beaconColorOne,L=B.beaconColorTwo,Q=B.children,J=B.target,W=B.color,H=B.positioningContainerProps,O=B.ariaDescribedBy,G=B.ariaDescribedByText,$=B.ariaLabelledBy,ee=B.ariaLabelledByText,te=B.ariaAlertText,q=B.delayBeforeCoachmarkAnimation,oe=B.styles,ne=B.theme,K=B.className,re=B.persistentBeak,W=W;!W&&ne&&(W=ne.semanticColors.primaryButtonBackground);q=Pm(oe,{theme:ne,beaconColorOne:X,beaconColorTwo:L,className:K,isCollapsed:V,isMeasuring:Y,color:W,transformOrigin:j,entityHostHeight:void 0===Z.height?void 0:Z.height+"px",entityHostWidth:void 0===Z.width?void 0:Z.width+"px",width:"32px",height:"32px",delayBeforeCoachmarkAnimation:q+"ms"}),Z=V?32:Z.height;return gt.createElement(Im,ht({target:J,offsetFromTarget:10,finalHeight:Z,ref:t,onPositioned:z,bounds:(B=(z=B).isPositionForced,z=z.positioningContainerProps,B?!z||z.directionalHint!==Pa.topAutoEdge&&z.directionalHint!==Pa.bottomAutoEdge?{left:-1/0,top:-1/0,bottom:1/0,right:1/0,width:1/0,height:1/0}:{left:0,top:-1/0,bottom:1/0,right:window.innerWidth,width:window.innerWidth,height:1/0}:void 0)},H),gt.createElement("div",{className:q.root},te&>.createElement("div",{className:q.ariaContainer,role:"alert","aria-hidden":!V},e),gt.createElement("div",{className:q.pulsingBeacon}),gt.createElement("div",{className:q.translateAnimationContainer,ref:A},gt.createElement("div",{className:q.scaleAnimationLayer},gt.createElement("div",{className:q.rotateAnimationLayer},(V||re)&>.createElement(Tm,ht({},U,{color:W})),gt.createElement("div",{className:q.entityHost,ref:w,tabIndex:-1,"data-is-focusable":!0,role:"dialog","aria-labelledby":$,"aria-describedby":O},V&&[$&>.createElement("p",{id:$,key:0,className:q.ariaContainer},ee),O&>.createElement("p",{id:O,key:1,className:q.ariaContainer},G)],gt.createElement(Vh,{isClickableOutsideFocusTrap:!0,forceFocusInsideTrap:!1},gt.createElement("div",{className:q.entityInnerHost,ref:F},gt.createElement("div",{className:q.childrenContainer,"aria-hidden":V},Q)))))))))});Nm.displayName="CoachmarkBase";var Bm=In(Nm,function(e){var t=e.theme,o=e.className,n=e.color,r=e.beaconColorOne,i=e.beaconColorTwo,s=e.delayBeforeCoachmarkAnimation,a=e.isCollapsed,l=e.isMeasuring,c=e.entityHostHeight,u=e.entityHostWidth,e=e.transformOrigin;if(!t)throw new Error("theme is undefined or null in base Dropdown getStyles function.");i=Do.continuousPulseAnimationDouble(r||t.palette.themePrimary,i||t.palette.themeTertiary,"35px","150px","10px"),s=Do.createDefaultAnimation(i,s);return{root:[t.fonts.medium,{position:"relative"},o],pulsingBeacon:[{position:"absolute",top:"50%",left:"50%",transform:Pn(t)?"translate(50%, -50%)":"translate(-50%, -50%)",width:"0px",height:"0px",borderRadius:"225px",borderStyle:"solid",opacity:"0"},a&&s],translateAnimationContainer:[{width:"100%",height:"100%"},a&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:bm(),transition:"opacity 0.5s ease-in-out"},!a&&{opacity:"1"}],scaleAnimationLayer:[{width:"100%",height:"100%"},a&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:ym()}],rotateAnimationLayer:[{width:"100%",height:"100%"},a&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:Cm()},!a&&{opacity:"1"}],entityHost:[{position:"relative",outline:"none",overflow:"hidden",backgroundColor:n,borderRadius:32,transition:"border-radius 250ms, width 500ms, height 500ms cubic-bezier(0.5, 0, 0, 1)",visibility:"hidden",selectors:((n={})[Yt]={backgroundColor:"Window",border:"2px solid WindowText"},n["."+go+" &:focus"]={outline:"1px solid "+t.palette.themeTertiary},n)},!l&&a&&{width:32,height:32},!l&&{visibility:"visible"},!a&&{borderRadius:"1px",opacity:"1",width:u,height:c}],entityInnerHost:[{transition:"transform 500ms cubic-bezier(0.5, 0, 0, 1)",transformOrigin:e,transform:"scale(0)"},!a&&{width:u,height:c,transform:"scale(1)"},!l&&{visibility:"visible"}],childrenContainer:[{display:!l&&a?"none":"block"}],ariaContainer:{position:"fixed",opacity:0,height:0,width:0,pointerEvents:"none"}}},void 0,{scope:"Coachmark"}),Fm=100,Am=359,Lm=100,Hm=255,Om=Hm,zm=100,Wm=3,Vm=6,Km=1,Gm=3,Um=/^[\da-f]{0,6}$/i,jm=/^\d{0,3}$/;function qm(e,t,o){o+=t*=(o<50?o:100-o)/100;return{h:e,s:0===o?0:2*t/o*100,v:o}}function Ym(e,t,o){var n=[],r=(o/=100)*(t/=100),e=e/60,i=r*(1-Math.abs(e%2-1)),o=o-r;switch(Math.floor(e)){case 0:n=[r,i,0];break;case 1:n=[i,r,0];break;case 2:n=[0,r,i];break;case 3:n=[0,i,r];break;case 4:n=[i,0,r];break;case 5:n=[r,0,i]}return{r:Math.round(Hm*(n[0]+o)),g:Math.round(Hm*(n[1]+o)),b:Math.round(Hm*(n[2]+o))}}function Zm(e,t,o){o=qm(e,t,o);return Ym(o.h,o.s,o.v)}function Xm(n){if(n)return Qm(n)||function(e){if("#"===e[0]&&7===e.length&&/^#[\da-fA-F]{6}$/.test(e))return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:zm}}(n)||function(e){if("#"===e[0]&&4===e.length&&/^#[\da-fA-F]{3}$/.test(e))return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:zm}}(n)||function(){var e=n.match(/^hsl(a?)\(([\d., ]+)\)$/);if(e){var t=!!e[1],o=t?4:3,e=e[2].split(/ *, */).map(Number);if(e.length===o){o=Zm(e[0],e[1],e[2]);return o.a=t?100*e[3]:zm,o}}}()||function(e){if("undefined"!=typeof document){var t=document.createElement("div");t.style.backgroundColor=e,t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",t.style.height="1px",t.style.width="1px",document.body.appendChild(t);var o=getComputedStyle(t),o=o&&o.backgroundColor;if(document.body.removeChild(t),"rgba(0, 0, 0, 0)"!==o&&"transparent"!==o)return Qm(o);switch(e.trim()){case"transparent":case"#0000":case"#00000000":return{r:0,g:0,b:0,a:0}}}}(n)}function Qm(e){if(e){var t=e.match(/^rgb(a?)\(([\d., ]+)\)$/);if(t){var o=!!t[1],e=o?4:3,t=t[2].split(/ *, */).map(Number);if(t.length===e)return{r:t[0],g:t[1],b:t[2],a:o?100*t[3]:zm}}}}function Jm(e,t,o){return e<(o=void 0===o?0:o)?o:t<e?t:e}function $m(e,t,o){return[eg(e),eg(t),eg(o)].join("")}function eg(e){e=(e=Jm(e,Hm)).toString(16);return 1===e.length?"0"+e:e}function tg(e,t,o){o=Ym(e,t,o);return $m(o.r,o.g,o.b)}function og(e,t,o){var n=NaN,r=Math.max(e,t,o),i=r-Math.min(e,t,o);return 0==i?n=0:e===r?n=(t-o)/i%6:t===r?n=(o-e)/i+2:o===r&&(n=(e-t)/i+4),(n=Math.round(60*n))<0&&(n+=360),{h:n,s:Math.round(100*(0===r?0:i/r)),v:Math.round(r/Hm*100)}}function ng(e,t,o){var n=(2-(t/=Fm))*(o/=Lm);return{h:e,s:100*(t*o/(n<=1?n:2-n)||0),l:100*(n/=2)}}function rg(e,t,o,n,r){return n===zm||"number"!=typeof n?"#"+r:"rgba("+e+", "+t+", "+o+", "+n/zm+")"}function ig(e){var t=e.a,o=void 0===t?zm:t,n=e.b,r=e.g,i=e.r,s=og(i,r,n),a=s.h,t=s.s,e=s.v,s=$m(i,r,n);return{a:o,b:n,g:r,h:a,hex:s,r:i,s:t,str:rg(i,r,n,o,s),v:e,t:zm-o}}function sg(e){var t=Xm(e);if(t)return ht(ht({},ig(t)),{str:e})}function ag(e,t){var o=e.h,n=e.s,r=e.v;t="number"==typeof t?t:zm;var i=Ym(o,n,r),s=i.r,a=i.g,e=i.b,i=tg(o,n,r);return{a:t,b:e,g:a,h:o,hex:i,r:s,s:n,str:rg(s,a,e,t,i),v:r,t:zm-t}}function lg(e){return"#"+tg(e.h,Fm,Lm)}function cg(e,t,o){var n=Ym(e.h,t,o),r=n.r,i=n.g,s=n.b,n=$m(r,i,s);return ht(ht({},e),{s:t,v:o,r:r,g:i,b:s,hex:n,str:rg(r,i,s,e.a,n)})}function ug(e,t){var o=Ym(t,e.s,e.v),n=o.r,r=o.g,i=o.b,o=$m(n,r,i);return ht(ht({},e),{h:t,r:n,g:r,b:i,hex:o,str:rg(n,r,i,e.a,o)})}function dg(e,t,o){return ig(((e={r:e.r,g:e.g,b:e.b,a:e.a})[t]=o,e))}function pg(e,t){return ht(ht({},e),{a:t,t:zm-t,str:rg(e.r,e.g,e.b,t,e.hex)})}function hg(e){return{r:Jm(e.r,Hm),g:Jm(e.g,Hm),b:Jm(e.b,Hm),a:"number"==typeof e.a?Jm(e.a,zm):e.a}}function mg(e){return{h:Jm(e.h,Am),s:Jm(e.s,Fm),v:Jm(e.v,Lm)}}function gg(e){return!e||e.length<Wm?"ffffff":e.length>=Vm?e.substring(0,Vm):e.substring(0,Wm)}var fg,vg=[.027,.043,.082,.145,.184,.216,.349,.537],bg=[.537,.45,.349,.216,.184,.145,.082,.043],yg=[.537,.349,.216,.184,.145,.082,.043,.027],Cg=[.537,.45,.349,.216,.184,.145,.082,.043],_g=[.88,.77,.66,.55,.44,.33,.22,.11],Sg=[.11,.22,.33,.44,.55,.66,.77,.88],xg=[.96,.84,.7,.4,.12],kg=[.1,.24,.44];function wg(e){return"number"==typeof e&&e>=fg.Unshaded&&e<=fg.Shade8}function Ig(e,t){return{h:e.h,s:e.s,v:Jm(e.v-e.v*t,100,0)}}function Dg(e,t){return{h:e.h,s:Jm(e.s-e.s*t,100,0),v:Jm(e.v+(100-e.v)*t,100,0)}}function Tg(e){return ng(e.h,e.s,e.v).l<50}function Eg(e,t,o){if(!e)return null;if(t===fg.Unshaded||!wg(t))return e;var n=ng(e.h,e.s,e.v),r={h:e.h,s:e.s,v:e.v},i=t-1,s=Dg,t=Ig;return(o=void 0===o?!1:o)&&(s=Ig,t=Dg),ig(pa(Ym((r=e.r===Hm&&e.g===Hm&&e.b===Hm?Ig(r,yg[i]):0===e.r&&0===e.g&&0===e.b?Dg(r,Cg[i]):.8<n.l/100?t(r,Sg[i]):n.l/100<.2?s(r,_g[i]):i<xg.length?s(r,xg[i]):t(r,kg[i-xg.length])).h,r.s,r.v),{a:e.a}))}function Pg(e,t,o){if(!e)return null;if(t===fg.Unshaded||!wg(t))return e;var n={h:e.h,s:e.s,v:e.v},t=t-1;return ig(pa(Ym((n=(o=void 0===o?!1:o)?Dg(n,bg[Cg.length-1-t]):Ig(n,vg[t])).h,n.s,n.v),{a:e.a}))}function Rg(e,t){function o(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}e=.2126*o(e.r/Hm)+.7152*o(e.g/Hm)+.0722*o(e.b/Hm);e+=.05;t=.2126*o(t.r/Hm)+.7152*o(t.g/Hm)+.0722*o(t.b/Hm);return 1<e/(t+=.05)?e/t:t/e}function Mg(e,t){var o=zm-t;return ht(ht({},e),{t:t,a:o,str:rg(e.r,e.g,e.b,o,e.hex)})}function Ng(){}function Bg(e){}function Fg(e,t){return void 0!==e[t]&&null!==e[t]}(G=fg=fg||{})[G.Unshaded=0]="Unshaded",G[G.Shade1=1]="Shade1",G[G.Shade2=2]="Shade2",G[G.Shade3=3]="Shade3",G[G.Shade4=4]="Shade4",G[G.Shade5=5]="Shade5",G[G.Shade6=6]="Shade6",G[G.Shade7=7]="Shade7",G[G.Shade8=8]="Shade8";var Ag,Lg,Hg=Fn(),Og=(l(zg,Lg=gt.Component),Object.defineProperty(zg.prototype,"value",{get:function(){return Wg(this.props,this.state)},enumerable:!1,configurable:!0}),zg.prototype.componentDidMount=function(){this._adjustInputHeight(),this.props.validateOnLoad&&this._validate(this.value)},zg.prototype.componentWillUnmount=function(){this._async.dispose()},zg.prototype.getSnapshotBeforeUpdate=function(e,t){return{selection:[this.selectionStart,this.selectionEnd]}},zg.prototype.componentDidUpdate=function(e,t,o){var n=this.props,r=(o||{}).selection,o=void 0===r?[null,null]:r,r=o[0],o=o[1];!!e.multiline!=!!n.multiline&&t.isFocused&&(this.focus(),null!==r&&null!==o&&0<=r&&0<=o&&this.setSelectionRange(r,o)),e.value!==n.value&&(this._lastChangeValue=void 0);o=Wg(e,t),t=this.value;o!==t&&(this._warnControlledUsage(e),this.state.errorMessage&&!n.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),Vg(n)&&this._delayedValidate(t))},zg.prototype.render=function(){var e,t=this.props,o=t.borderless,n=t.className,r=t.disabled,i=t.invalid,s=t.iconProps,a=t.inputClassName,l=t.label,c=t.multiline,u=t.required,d=t.underlined,p=t.prefix,h=t.resizable,m=t.suffix,g=t.theme,f=t.styles,v=t.autoAdjustHeight,b=t.canRevealPassword,y=t.revealPasswordAriaLabel,C=t.type,_=t.onRenderPrefix,S=void 0===_?this._onRenderPrefix:_,x=t.onRenderSuffix,k=void 0===x?this._onRenderSuffix:x,w=t.onRenderLabel,I=void 0===w?this._onRenderLabel:w,_=t.onRenderDescription,x=void 0===_?this._onRenderDescription:_,w=this.state,t=w.isFocused,_=w.isRevealingPassword,w=this._errorMessage,i="boolean"==typeof i?i:!!w,e=!!b&&"password"===C&&("boolean"!=typeof Ag&&(e=qe(),Ag=null==e||!e.navigator||(e=/^Edg/.test(e.navigator.userAgent||""),!(hi()||e))),Ag),v=this._classNames=Hg(f,{theme:g,className:n,disabled:r,focused:t,required:u,multiline:c,hasLabel:!!l,hasErrorMessage:i,borderless:o,resizable:h,hasIcon:!!s,underlined:d,inputClassName:a,autoAdjustHeight:v,hasRevealButton:e});return gt.createElement("div",{ref:this.props.elementRef,className:v.root},gt.createElement("div",{className:v.wrapper},I(this.props,this._onRenderLabel),gt.createElement("div",{className:v.fieldGroup},(void 0!==p||this.props.onRenderPrefix)&>.createElement("div",{className:v.prefix,id:this._prefixId},S(this.props,this._onRenderPrefix)),c?this._renderTextArea():this._renderInput(),s&>.createElement(Vr,ht({className:v.icon},s)),e&>.createElement("button",{"aria-label":y,className:v.revealButton,onClick:this._onRevealButtonClick,"aria-pressed":!!_,type:"button"},gt.createElement("span",{className:v.revealSpan},gt.createElement(Vr,{className:v.revealIcon,iconName:_?"Hide":"RedEye"}))),(void 0!==m||this.props.onRenderSuffix)&>.createElement("div",{className:v.suffix,id:this._suffixId},k(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&>.createElement("span",{id:this._descriptionId},x(this.props,this._onRenderDescription),w&>.createElement("div",{role:"alert"},gt.createElement(Mi,null,this._renderErrorMessage()))))},zg.prototype.focus=function(){this._textElement.current&&this._textElement.current.focus()},zg.prototype.blur=function(){this._textElement.current&&this._textElement.current.blur()},zg.prototype.select=function(){this._textElement.current&&this._textElement.current.select()},zg.prototype.setSelectionStart=function(e){this._textElement.current&&(this._textElement.current.selectionStart=e)},zg.prototype.setSelectionEnd=function(e){this._textElement.current&&(this._textElement.current.selectionEnd=e)},Object.defineProperty(zg.prototype,"selectionStart",{get:function(){return this._textElement.current?this._textElement.current.selectionStart:-1},enumerable:!1,configurable:!0}),Object.defineProperty(zg.prototype,"selectionEnd",{get:function(){return this._textElement.current?this._textElement.current.selectionEnd:-1},enumerable:!1,configurable:!0}),zg.prototype.setSelectionRange=function(e,t){this._textElement.current&&this._textElement.current.setSelectionRange(e,t)},zg.prototype._warnControlledUsage=function(e){this._id,this.props,null!==this.props.value||this._hasWarnedNullValue||(this._hasWarnedNullValue=!0,Xo("Warning: 'value' prop on 'TextField' should not be null. Consider using an empty string to clear the component or undefined to indicate an uncontrolled component."))},Object.defineProperty(zg.prototype,"_id",{get:function(){return this.props.id||this._fallbackId},enumerable:!1,configurable:!0}),Object.defineProperty(zg.prototype,"_isControlled",{get:function(){return Fg(this.props,"value")},enumerable:!1,configurable:!0}),zg.prototype._onRenderPrefix=function(e){e=e.prefix;return gt.createElement("span",{style:{paddingBottom:"1px"}},e)},zg.prototype._onRenderSuffix=function(e){e=e.suffix;return gt.createElement("span",{style:{paddingBottom:"1px"}},e)},Object.defineProperty(zg.prototype,"_errorMessage",{get:function(){var e=this.props.errorMessage;return(void 0===e?this.state.errorMessage:e)||""},enumerable:!1,configurable:!0}),zg.prototype._renderErrorMessage=function(){var e=this._errorMessage;return e?"string"==typeof e?gt.createElement("p",{className:this._classNames.errorMessage},gt.createElement("span",{"data-automation-id":"error-message"},e)):gt.createElement("div",{className:this._classNames.errorMessage,"data-automation-id":"error-message"},e):null},Object.defineProperty(zg.prototype,"_isDescriptionAvailable",{get:function(){var e=this.props;return!!(e.onRenderDescription||e.description||this._errorMessage)},enumerable:!1,configurable:!0}),zg.prototype._renderTextArea=function(){var e=this.props.invalid,t=void 0===e?!!this._errorMessage:e,o=ur(this.props,Xn,["defaultValue"]),e=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return gt.createElement("textarea",ht({id:this._id},o,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":e,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":t,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},zg.prototype._renderInput=function(){var e=this.props,t=e.ariaLabel,o=e.invalid,n=void 0===o?!!this._errorMessage:o,r=e.onRenderPrefix,i=e.onRenderSuffix,s=e.prefix,a=e.suffix,l=e.type,o=void 0===l?"text":l,l=[];e.label&&l.push(this._labelId),void 0===s&&!r||l.push(this._prefixId),void 0===a&&!i||l.push(this._suffixId);t=ht(ht({type:this.state.isRevealingPassword?"text":o,id:this._id},ur(this.props,Zn,["defaultValue","type"])),{"aria-labelledby":this.props["aria-labelledby"]||(0<l.length?l.join(" "):void 0),ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-label":t,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":n,onFocus:this._onFocus,onBlur:this._onBlur}),n=function(e){return gt.createElement("input",ht({},e))};return(this.props.onRenderInput||n)(t,n)},zg.prototype._validate=function(t){var e,o,n=this;this._latestValidateValue===t&&Vg(this.props)||(this._latestValidateValue=t,void 0!==(e=(e=this.props.onGetErrorMessage)&&e(t||""))?"string"!=typeof e&&"then"in e?(o=++this._lastValidation,e.then(function(e){o===n._lastValidation&&n.setState({errorMessage:e}),n._notifyAfterValidate(t,e)})):(this.setState({errorMessage:e}),this._notifyAfterValidate(t,e)):this._notifyAfterValidate(t,""))},zg.prototype._notifyAfterValidate=function(e,t){e===this.value&&this.props.onNotifyValidationResult&&this.props.onNotifyValidationResult(t,e)},zg.prototype._adjustInputHeight=function(){var e;this._textElement.current&&this.props.autoAdjustHeight&&this.props.multiline&&((e=this._textElement.current).style.height="",e.style.height=e.scrollHeight+"px")},zg.defaultProps={resizable:!0,deferredValidationTime:200,validateOnLoad:!0},zg);function zg(e){var r=Lg.call(this,e)||this;r._textElement=gt.createRef(),r._onFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({isFocused:!0},function(){r.props.validateOnFocusIn&&r._validate(r.value)})},r._onBlur=function(e){r.props.onBlur&&r.props.onBlur(e),r.setState({isFocused:!1},function(){r.props.validateOnFocusOut&&r._validate(r.value)})},r._onRenderLabel=function(e){var t=e.label,o=e.required,n=r._classNames.subComponentStyles?r._classNames.subComponentStyles.label:void 0;return t?gt.createElement(om,{required:o,htmlFor:r._id,styles:n,disabled:e.disabled,id:r._labelId},e.label):null},r._onRenderDescription=function(e){return e.description?gt.createElement("span",{className:r._classNames.description},e.description):null},r._onRevealButtonClick=function(e){r.setState(function(e){return{isRevealingPassword:!e.isRevealingPassword}})},r._onInputChange=function(e){var t,o=e.target.value,n=Wg(r.props,r.state)||"";void 0!==o&&o!==r._lastChangeValue&&o!==n?(r._lastChangeValue=o,null===(n=(t=r.props).onChange)||void 0===n||n.call(t,e,o),r._isControlled||r.setState({uncontrolledValue:o})):r._lastChangeValue=void 0},vi(r),r._async=new xi(r),r._fallbackId=Ss("TextField"),r._descriptionId=Ss("TextFieldDescription"),r._labelId=Ss("TextFieldLabel"),r._prefixId=Ss("TextFieldPrefix"),r._suffixId=Ss("TextFieldSuffix"),r._warnControlledUsage();e=e.defaultValue,e=void 0===e?"":e;return"number"==typeof e&&(e=String(e)),r.state={uncontrolledValue:r._isControlled?void 0:e,isFocused:!1,errorMessage:""},r._delayedValidate=r._async.debounce(r._validate,r.props.deferredValidationTime),r._lastValidation=0,r}function Wg(e,t){e=e.value,e=void 0===e?t.uncontrolledValue:e;return"number"==typeof e?String(e):e}function Vg(e){return!e.validateOnFocusIn&&!e.validateOnFocusOut}var Kg={root:"ms-TextField",description:"ms-TextField-description",errorMessage:"ms-TextField-errorMessage",field:"ms-TextField-field",fieldGroup:"ms-TextField-fieldGroup",prefix:"ms-TextField-prefix",suffix:"ms-TextField-suffix",wrapper:"ms-TextField-wrapper",revealButton:"ms-TextField-reveal",multiline:"ms-TextField--multiline",borderless:"ms-TextField--borderless",underlined:"ms-TextField--underlined",unresizable:"ms-TextField--unresizable",required:"is-required",disabled:"is-disabled",active:"is-active"};var Gg,Ug,jg,qg=In(Og,function(e){var t,o,n,r,i,s,a,l=e.theme,c=e.className,u=e.disabled,d=e.focused,p=e.required,h=e.multiline,m=e.hasLabel,g=e.borderless,f=e.underlined,v=e.hasIcon,b=e.resizable,y=e.hasErrorMessage,C=e.inputClassName,_=e.autoAdjustHeight,S=e.hasRevealButton,x=l.semanticColors,k=l.effects,w=l.fonts,I=zo(Kg,l),D={background:x.disabledBackground,color:u?x.disabledText:x.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,selectors:((T={})[Yt]={background:"Window",color:u?"GrayText":"WindowText"},T)},T=[{color:x.inputPlaceholderText,opacity:1,selectors:((E={})[Yt]={color:"GrayText"},E)}],E={color:x.disabledText,selectors:((E={})[Yt]={color:"GrayText"},E)};return{root:[I.root,w.medium,p&&I.required,u&&I.disabled,d&&I.active,h&&I.multiline,g&&I.borderless,f&&I.underlined,Uo,{position:"relative"},c],wrapper:[I.wrapper,f&&[{display:"flex",borderBottom:"1px solid "+(y?x.errorText:x.inputBorder),width:"100%"},u&&{borderBottomColor:x.disabledBackground,selectors:((c={})[Yt]=ht({borderColor:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),c)},!u&&{selectors:{":hover":{borderBottomColor:y?x.errorText:x.inputBorderHovered,selectors:((t={})[Yt]=ht({borderBottomColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)}}},d&&[{position:"relative"},_o(y?x.errorText:x.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[I.fieldGroup,Uo,{border:"1px solid "+x.inputBorder,borderRadius:k.roundedCorner2,background:x.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},h&&{minHeight:"60px",height:"auto",display:"flex"},!d&&!u&&{selectors:{":hover":{borderColor:x.inputBorderHovered,selectors:((t={})[Yt]=ht({borderColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)}}},d&&!f&&_o(y?x.errorText:x.inputFocusBorderAlt,k.roundedCorner2),u&&{borderColor:x.disabledBackground,selectors:((k={})[Yt]=ht({borderColor:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),k),cursor:"default"},g&&{border:"none"},g&&d&&{border:"none",selectors:{":after":{border:"none"}}},f&&{flex:"1 1 0px",border:"none",textAlign:"left"},f&&u&&{backgroundColor:"transparent"},y&&!f&&{borderColor:x.errorText,selectors:{"&:hover":{borderColor:x.errorText}}},!m&&p&&{selectors:((o={":before":{content:"'*'",color:x.errorText,position:"absolute",top:-5,right:-10}})[Yt]={selectors:{":before":{color:"WindowText",right:-14}}},o)}],field:[w.medium,I.field,Uo,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:x.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:((o={"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}})[Yt]={background:"Window",color:u?"GrayText":"WindowText"},o)},Zo(T),h&&!b&&[I.unresizable,{resize:"none"}],h&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},h&&_&&{overflow:"hidden"},v&&!S&&{paddingRight:24},h&&v&&{paddingRight:40},u&&[{backgroundColor:x.disabledBackground,color:x.disabledText,borderColor:x.disabledBackground},Zo(E)],f&&{textAlign:"left"},d&&!g&&{selectors:((f={})[Yt]={paddingLeft:11,paddingRight:11},f)},d&&h&&!g&&{selectors:((g={})[Yt]={paddingTop:4},g)},C],icon:[h&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:Ae.medium,lineHeight:18},u&&{color:x.disabledText}],description:[I.description,{color:x.bodySubtext,fontSize:w.xSmall.fontSize}],errorMessage:[I.errorMessage,Le.slideDownIn20,w.small,{color:x.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[I.prefix,D],suffix:[I.suffix,D],revealButton:[I.revealButton,"ms-Button","ms-Button--icon",bo(l,{inset:1}),{height:30,width:32,border:"none",padding:"0px 4px",backgroundColor:"transparent",color:x.link,selectors:{":hover":{outline:0,color:x.primaryButtonBackgroundHovered,backgroundColor:x.buttonBackgroundHovered,selectors:((x={})[Yt]={borderColor:"Highlight",color:"Highlight"},x)},":focus":{outline:0}}},v&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:Ae.medium,lineHeight:18},subComponentStyles:{label:(n=(v=e).underlined,r=e.disabled,i=e.focused,s=(v=e.theme).palette,a=v.fonts,function(){var e;return{root:[n&&r&&{color:s.neutralTertiary},n&&{fontSize:a.medium.fontSize,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},n&&i&&{selectors:((e={})[Yt]={height:31},e)}]}})}}},void 0,{scope:"TextField"}),Yg=Fn(),ke=(l(af,jg=gt.Component),Object.defineProperty(af.prototype,"color",{get:function(){return this.state.color},enumerable:!1,configurable:!0}),af.prototype.componentDidUpdate=function(e,t){e!==this.props&&this.props.color&&this.setState({color:this.props.color})},af.prototype.componentWillUnmount=function(){this._disposeListeners()},af.prototype.render=function(){var e=this.props,t=e.minSize,o=e.theme,n=e.className,r=e.styles,i=e.ariaValueFormat,s=e.ariaLabel,a=e.ariaDescription,e=this.state.color,t=Yg(r,{theme:o,className:n,minSize:t}),i=i.replace("{0}",String(e.s)).replace("{1}",String(e.v));return gt.createElement("div",{ref:this._root,tabIndex:0,className:t.root,style:{backgroundColor:lg(e)},onMouseDown:this._onMouseDown,onKeyDown:this._onKeyDown,role:"slider","aria-valuetext":i,"aria-valuenow":this._isAdjustingSaturation?e.s:e.v,"aria-valuemin":0,"aria-valuemax":Lm,"aria-label":s,"aria-describedby":this._descriptionId,"data-is-focusable":!0},gt.createElement("div",{className:t.description,id:this._descriptionId},a),gt.createElement("div",{className:t.light}),gt.createElement("div",{className:t.dark}),gt.createElement("div",{className:t.thumb,style:{left:e.s+"%",top:Lm-e.v+"%",backgroundColor:e.str}}))},af.prototype._updateColor=function(e,t){var o=this.props.onChange,n=this.state.color;t.s===n.s&&t.v===n.v||(o&&o(e,t),e.defaultPrevented||(this.setState({color:t}),e.preventDefault()))},af.defaultProps={minSize:220,ariaLabel:"Saturation and brightness",ariaValueFormat:"Saturation {0} brightness {1}",ariaDescription:"Use left and right arrow keys to set saturation. Use up and down arrow keys to set brightness."},af),Zg=In(ke,function(e){var t=e.className,o=e.theme,n=e.minSize,r=o.palette,e=o.effects;return{root:["ms-ColorPicker-colorRect",{position:"relative",marginBottom:8,border:"1px solid "+r.neutralLighter,borderRadius:e.roundedCorner2,minWidth:n,minHeight:n,outline:"none",selectors:((o={})[Yt]=ht({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o["."+go+" &:focus"]=((n={outline:"1px solid "+r.neutralSecondary})[""+Yt]={outline:"2px solid CanvasText"},n),o)},t],light:["ms-ColorPicker-light",{position:"absolute",left:0,right:0,top:0,bottom:0,background:"linear-gradient(to right, white 0%, transparent 100%) /*@noflip*/"}],dark:["ms-ColorPicker-dark",{position:"absolute",left:0,right:0,top:0,bottom:0,background:"linear-gradient(to bottom, transparent 0, #000 100%)"}],thumb:["ms-ColorPicker-thumb",{position:"absolute",width:20,height:20,background:"white",border:"1px solid "+r.neutralSecondaryAlt,borderRadius:"50%",boxShadow:e.elevation8,transform:"translate(-50%, -50%)",selectors:{":before":{position:"absolute",left:0,right:0,top:0,bottom:0,border:"2px solid "+r.white,borderRadius:"50%",boxSizing:"border-box",content:'""'}}}],description:So}},void 0,{scope:"ColorRectangle"}),Xg=Fn(),W=(l(sf,Ug=gt.Component),Object.defineProperty(sf.prototype,"value",{get:function(){return this.state.currentValue},enumerable:!1,configurable:!0}),sf.prototype.componentDidUpdate=function(e,t){e!==this.props&&void 0!==this.props.value&&this.setState({currentValue:this.props.value})},sf.prototype.componentWillUnmount=function(){this._disposeListeners()},sf.prototype.render=function(){var e=this._type,t=this._maxValue,o=this.props,n=o.overlayStyle,r=o.overlayColor,i=o.theme,s=o.className,a=o.styles,l=o.ariaLabel,o=void 0===l?e:l,l=this.value,i=Xg(a,{theme:i,className:s,type:e}),s=100*l/t;return gt.createElement("div",{ref:this._root,className:i.root,tabIndex:0,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,role:"slider","aria-valuenow":l,"aria-valuetext":String(l),"aria-valuemin":0,"aria-valuemax":t,"aria-label":o,"data-is-focusable":!0},!(!r&&!n)&>.createElement("div",{className:i.sliderOverlay,style:r?{background:"transparency"===e?"linear-gradient(to right, #"+r+", transparent)":"linear-gradient(to right, transparent, #"+r+")"}:n}),gt.createElement("div",{className:i.sliderThumb,style:{left:s+"%"}}))},Object.defineProperty(sf.prototype,"_type",{get:function(){var e=this.props,t=e.isAlpha,e=e.type;return void 0===e?t?"alpha":"hue":e},enumerable:!1,configurable:!0}),Object.defineProperty(sf.prototype,"_maxValue",{get:function(){return"hue"===this._type?Am:zm},enumerable:!1,configurable:!0}),sf.prototype._updateValue=function(e,t){var o;t!==this.value&&((o=this.props.onChange)&&o(e,t),e.defaultPrevented||(this.setState({currentValue:t}),e.preventDefault()))},sf.defaultProps={value:0},sf),Qg={background:"linear-gradient("+["to left","red 0","#f09 10%","#cd00ff 20%","#3200ff 30%","#06f 40%","#00fffd 50%","#0f6 60%","#35ff00 70%","#cdff00 80%","#f90 90%","red 100%"].join(",")+")"},Jg={backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAJUlEQVQYV2N89erVfwY0ICYmxoguxjgUFKI7GsTH5m4M3w1ChQC1/Ca8i2n1WgAAAABJRU5ErkJggg==)"},$g=In(W,function(e){var t=e.theme,o=e.className,n=e.type,r=e.isAlpha,i=void 0===r?"hue"!==(void 0===n?"hue":n):r,e=t.palette,n=t.effects;return{root:["ms-ColorPicker-slider",{position:"relative",height:20,marginBottom:8,border:"1px solid "+e.neutralLight,borderRadius:n.roundedCorner2,boxSizing:"border-box",outline:"none",forcedColorAdjust:"none",selectors:((r={})["."+go+" &:focus"]=((t={outline:"1px solid "+e.neutralSecondary})[""+Yt]={outline:"2px solid CanvasText"},t),r)},i?Jg:Qg,o],sliderOverlay:["ms-ColorPicker-sliderOverlay",{content:"",position:"absolute",left:0,right:0,top:0,bottom:0}],sliderThumb:["ms-ColorPicker-thumb","is-slider",{position:"absolute",width:20,height:20,background:"white",border:"1px solid "+e.neutralSecondaryAlt,borderRadius:"50%",boxShadow:n.elevation8,transform:"translate(-50%, -50%)",top:"50%",forcedColorAdjust:"auto"}]}},void 0,{scope:"ColorSlider"}),ef=Fn(),tf=["hex","r","g","b","a","t"],of={hex:"hexError",r:"redError",g:"greenError",b:"blueError",a:"alphaError",t:"transparencyError"},nf=(l(rf,Gg=gt.Component),Object.defineProperty(rf.prototype,"color",{get:function(){return this.state.color},enumerable:!1,configurable:!0}),rf.prototype.componentDidUpdate=function(e,t){e===this.props||(e=lf(this.props))&&this._updateColor(void 0,e)},rf.prototype.render=function(){var o=this,e=this.props,t=this._strings,n=this._textLabels,r=e.theme,i=e.className,s=e.styles,a=e.alphaType,l=e.alphaSliderHidden,c=void 0===l?"none"===a:l,u=e.tooltipProps,d=this.state.color,p="transparency"===a,h=["hex","r","g","b",p?"t":"a"],m=p?d.t:d.a,l=p?n.t:n.a,g=ef(s,{theme:r,className:i,alphaType:a}),i=[n.r,d.r,n.g,d.g,n.b,d.b];c||"number"!=typeof m||i.push(l,m+"%");i=t.rootAriaLabelFormat.replace("{0}",i.join(" "));return gt.createElement("div",{className:g.root,role:"group","aria-label":i},gt.createElement("div",{className:g.panel},gt.createElement(Zg,{color:d,onChange:this._onSVChanged,ariaLabel:t.svAriaLabel,ariaDescription:t.svAriaDescription,ariaValueFormat:t.svAriaValueFormat,className:g.colorRectangle}),gt.createElement("div",{className:g.flexContainer},gt.createElement("div",{className:g.flexSlider},gt.createElement($g,{className:"is-hue",type:"hue",ariaLabel:t.hue||t.hueAriaLabel,value:d.h,onChange:this._onHChanged}),!c&>.createElement($g,{className:"is-alpha",type:a,ariaLabel:p?t.transparencyAriaLabel:t.alphaAriaLabel,overlayColor:d.hex,value:m,onChange:this._onATChanged})),e.showPreview&>.createElement("div",{className:g.flexPreviewBox},gt.createElement("div",{className:g.colorSquare+" is-preview",style:{backgroundColor:d.str}}))),gt.createElement("table",{className:g.table,role:"group",cellPadding:"0",cellSpacing:"0"},gt.createElement("thead",null,gt.createElement("tr",{className:g.tableHeader},gt.createElement("td",{className:g.tableHexCell},n.hex),gt.createElement("td",null,n.r),gt.createElement("td",null,n.g),gt.createElement("td",null,n.b),!c&>.createElement("td",{className:g.tableAlphaCell},l))),gt.createElement("tbody",null,gt.createElement("tr",null,h.map(function(e){if(("a"===e||"t"===e)&&c)return null;var t=o._getTooltipValue(e);return gt.createElement("td",{key:e},gt.createElement(Md,ht({content:t,directionalHint:Pa.bottomCenter,role:"alert"},u),gt.createElement(qg,{className:g.input,onChange:o._textChangeHandlers[e],onBlur:o._onBlur,value:o._getDisplayValue(e),spellCheck:!1,ariaLabel:n[e],autoComplete:"off",invalid:!!t})))}))))))},rf.prototype._getDisplayValue=function(e){var t=this.state,o=t.color,t=t.editingColor;return t&&t.component===e?t.value:"hex"===e?o[e]||"":"number"!=typeof o[e]||isNaN(o[e])?"":String(o[e])},rf.prototype._getTooltipValue=function(e){var t=this.state.editingColor;if(t&&t.component===e){t=t.value;if(!("hex"===e&&t.length>=Wm&&t.length<=Vm))return this._strings[of[e]]}},rf.prototype._onTextChange=function(e,t,o){var n,r=this.state.color,i="hex"===e,s="a"===e,a="t"===e;o=(o||"").substr(0,i?Vm:Gm),(i?Um:jm).test(o)&&(""!==o&&(i?o.length===Vm:s||a?Number(o)<=zm:Number(o)<=Hm)?String(r[e])===o?this.state.editingColor&&this.setState({editingColor:void 0}):(n=i?sg("#"+o):a?Mg(r,Number(o)):ig(ht(ht({},r),((n={})[e]=Number(o),n))),this._updateColor(t,n)):this.setState({editingColor:{component:e,value:o}}))},rf.prototype._updateColor=function(e,t){var o,n;t&&(o=(n=this.state).color,n=n.editingColor,t.h===o.h&&t.str===o.str&&!n||e&&this.props.onChange&&(this.props.onChange(e,t),e.defaultPrevented)||this.setState({color:t,editingColor:void 0}))},rf.defaultProps={alphaType:"alpha",strings:{rootAriaLabelFormat:"Color picker, {0} selected.",hex:"Hex",red:"Red",green:"Green",blue:"Blue",alpha:"Alpha",transparency:"Transparency",hueAriaLabel:"Hue",svAriaLabel:ke.defaultProps.ariaLabel,svAriaValueFormat:ke.defaultProps.ariaValueFormat,svAriaDescription:ke.defaultProps.ariaDescription,hexError:"Hex values must be between 3 and 6 characters long",alphaError:"Alpha must be between 0 and 100",transparencyError:"Transparency must be between 0 and 100",redError:"Red must be between 0 and 255",greenError:"Green must be between 0 and 255",blueError:"Blue must be between 0 and 255"}},rf);function rf(e){var l=Gg.call(this,e)||this;l._onSVChanged=function(e,t){l._updateColor(e,t)},l._onHChanged=function(e,t){l._updateColor(e,ug(l.state.color,t))},l._onATChanged=function(e,t){var o="transparency"===l.props.alphaType?Mg:pg;l._updateColor(e,o(l.state.color,Math.round(t)))},l._onBlur=function(e){var t,o,n,r,i=l.state,s=i.color,a=i.editingColor;a&&(t=a.value,n="a"===(o=a.component),r="t"===o,t.length>=((i="hex"===o)?Wm:Km)&&(i||!isNaN(Number(t)))?(a=void 0,a=i?sg("#"+gg(t)):n||r?(n?pg:Mg)(s,Jm(Number(t),zm)):ig(hg(ht(ht({},s),((s={})[o]=Number(t),s)))),l._updateColor(e,a)):l.setState({editingColor:void 0}))},vi(l);var t=e.strings;t.hue&&Xo("ColorPicker property 'strings.hue' was used but has been deprecated. Use 'strings.hueAriaLabel' instead."),l.state={color:lf(e)||sg("#ffffff")},l._textChangeHandlers={};for(var o=0,n=tf;o<n.length;o++){var r=n[o];l._textChangeHandlers[r]=l._onTextChange.bind(l,r)}var i=rf.defaultProps.strings;return l._textLabels={r:e.redLabel||t.red||i.red,g:e.greenLabel||t.green||i.green,b:e.blueLabel||t.blue||i.blue,a:e.alphaLabel||t.alpha||i.alpha,hex:e.hexLabel||t.hex||i.hex,t:t.transparency||i.transparency},l._strings=ht(ht(ht({},i),{alphaAriaLabel:l._textLabels.a,transparencyAriaLabel:l._textLabels.t}),t),l}function sf(e){var r=Ug.call(this,e)||this;return r._disposables=[],r._root=gt.createRef(),r._onKeyDown=function(e){var t=r.value,o=r._maxValue,n=e.shiftKey?10:1;switch(e.which){case Tn.left:t-=n;break;case Tn.right:t+=n;break;case Tn.home:t=0;break;case Tn.end:t=o;break;default:return}r._updateValue(e,Jm(t,o))},r._onMouseDown=function(e){var t=qe(r);t&&r._disposables.push(Wa(t,"mousemove",r._onMouseMove,!0),Wa(t,"mouseup",r._disposeListeners,!0)),r._onMouseMove(e)},r._onMouseMove=function(e){var t,o;r._root.current&&(o=r._maxValue,t=r._root.current.getBoundingClientRect(),t=(e.clientX-t.left)/t.width,o=Jm(Math.round(t*o),o),r._updateValue(e,o))},r._disposeListeners=function(){r._disposables.forEach(function(e){return e()}),r._disposables=[]},vi(r),"hue"===r._type||e.overlayColor||e.overlayStyle||Xo("ColorSlider: 'overlayColor' is required when 'type' is \"alpha\" or \"transparency\""),r.state={currentValue:e.value||0},r}function af(e){var i=jg.call(this,e)||this;return i._disposables=[],i._root=gt.createRef(),i._isAdjustingSaturation=!0,i._descriptionId=Ss("ColorRectangle-description"),i._onKeyDown=function(e){var t=i.state.color,o=t.s,n=t.v,r=e.shiftKey?10:1;switch(e.which){case Tn.up:i._isAdjustingSaturation=!1,n+=r;break;case Tn.down:i._isAdjustingSaturation=!1,n-=r;break;case Tn.left:i._isAdjustingSaturation=!0,o-=r;break;case Tn.right:i._isAdjustingSaturation=!0,o+=r;break;default:return}i._updateColor(e,cg(t,Jm(o,Fm),Jm(n,Lm)))},i._onMouseDown=function(e){i._disposables.push(Wa(window,"mousemove",i._onMouseMove,!0),Wa(window,"mouseup",i._disposeListeners,!0)),i._onMouseMove(e)},i._onMouseMove=function(e){var t,o,n,r;i._root.current&&(t=e,o=i.state.color,n=i._root.current.getBoundingClientRect(),r=(t.clientX-n.left)/n.width,n=(t.clientY-n.top)/n.height,(n=cg(o,Jm(Math.round(r*Fm),Fm),Jm(Math.round(Lm-n*Lm),Lm)))&&i._updateColor(e,n))},i._disposeListeners=function(){i._disposables.forEach(function(e){return e()}),i._disposables=[]},vi(i),i.state={color:e.color},i}function lf(e){e=e.color;return"string"==typeof e?sg(e):e}var cf,uf,df,pf=In(nf,function(e){var t=e.className,o=e.theme,e=e.alphaType;return{root:["ms-ColorPicker",o.fonts.medium,{position:"relative",maxWidth:300},t],panel:["ms-ColorPicker-panel",{padding:"16px"}],table:["ms-ColorPicker-table",{tableLayout:"fixed",width:"100%",selectors:{"tbody td:last-of-type .ms-ColorPicker-input":{paddingRight:0}}}],tableHeader:[o.fonts.small,{selectors:{td:{paddingBottom:4}}}],tableHexCell:{width:"25%"},tableAlphaCell:"transparency"===e&&{width:"22%"},colorSquare:["ms-ColorPicker-colorSquare",{width:48,height:48,margin:"0 0 0 8px",border:"1px solid #c8c6c4"}],flexContainer:{display:"flex"},flexSlider:{flexGrow:"1"},flexPreviewBox:{flexGrow:"0"},input:["ms-ColorPicker-input",{width:"100%",border:"none",boxSizing:"border-box",height:30,selectors:{"&.ms-TextField":{paddingRight:4},"& .ms-TextField-field":{minWidth:"auto",padding:5,textOverflow:"clip"}}}]}},void 0,{scope:"ColorPicker"}),hf=Ao(function(e){var e=e.semanticColors;return{backgroundColor:e.disabledBackground,color:e.disabledText,cursor:"default",selectors:((e={":after":{borderColor:e.disabledBackground}})[Yt]={color:"GrayText",selectors:{":after":{borderColor:"GrayText"}}},e)}}),mf={selectors:((K={})[Yt]=ht({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),K)},gf={selectors:((U={})[Yt]=ht({color:"WindowText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),U)},ff=Ao(function(e,t,o,n,r,i){var s=e.palette,a=e.semanticColors,a={textHoveredColor:a.menuItemTextHovered,textSelectedColor:s.neutralDark,textDisabledColor:a.disabledText,backgroundHoveredColor:a.menuItemBackgroundHovered,backgroundPressedColor:a.menuItemBackgroundPressed};return un({root:[e.fonts.medium,{backgroundColor:n?a.backgroundHoveredColor:"transparent",boxSizing:"border-box",cursor:"pointer",display:r?"none":"block",width:"100%",height:"auto",minHeight:36,lineHeight:"20px",padding:"0 8px",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",borderRadius:0,wordWrap:"break-word",overflowWrap:"break-word",textAlign:"left",selectors:ht(ht(((n={})[Yt]={border:"none",borderColor:"Background"},n),!r&&{"&.ms-Checkbox":{display:"flex",alignItems:"center"}}),{"&.ms-Button--command:hover:active":{backgroundColor:a.backgroundPressedColor},".ms-Checkbox-label":{width:"100%"}})},i?[{backgroundColor:"transparent",color:a.textSelectedColor,selectors:{":hover":[{backgroundColor:a.backgroundHoveredColor},mf]}},bo(e,{inset:-1,isFocusedOnly:!1}),mf]:[]],rootHovered:{backgroundColor:a.backgroundHoveredColor,color:a.textHoveredColor},rootFocused:{backgroundColor:a.backgroundHoveredColor},rootDisabled:{color:a.textDisabledColor,cursor:"default"},optionText:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:"0px",maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",display:"inline-block"},optionTextWrapper:{maxWidth:"100%",display:"flex",alignItems:"center"}},t,o)}),vf=Ao(function(e,t){var o,n=e.semanticColors,r=e.fonts,i={buttonTextColor:n.bodySubtext,buttonTextHoveredCheckedColor:n.buttonTextChecked,buttonBackgroundHoveredColor:n.listItemBackgroundHovered,buttonBackgroundCheckedColor:n.listItemBackgroundChecked,buttonBackgroundCheckedHoveredColor:n.listItemBackgroundCheckedHovered},n={selectors:((o={})[Yt]=ht({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)};return un({root:{color:i.buttonTextColor,fontSize:r.small.fontSize,position:"absolute",top:0,height:"100%",lineHeight:30,width:32,textAlign:"center",cursor:"default",selectors:((o={})[Yt]=ht({backgroundColor:"ButtonFace",borderColor:"ButtonText",color:"ButtonText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)},icon:{fontSize:r.small.fontSize},rootHovered:[{backgroundColor:i.buttonBackgroundHoveredColor,color:i.buttonTextHoveredCheckedColor,cursor:"pointer"},n],rootPressed:[{backgroundColor:i.buttonBackgroundCheckedColor,color:i.buttonTextHoveredCheckedColor},n],rootChecked:[{backgroundColor:i.buttonBackgroundCheckedColor,color:i.buttonTextHoveredCheckedColor},n],rootCheckedHovered:[{backgroundColor:i.buttonBackgroundCheckedHoveredColor,color:i.buttonTextHoveredCheckedColor},n],rootDisabled:[hf(e),{position:"absolute"}]},t)}),bf=Ao(function(e,t,o){var n=e.semanticColors,r=e.fonts,i=e.effects,s={textColor:n.inputText,borderColor:n.inputBorder,borderHoveredColor:n.inputBorderHovered,borderPressedColor:n.inputFocusBorderAlt,borderFocusedColor:n.inputFocusBorderAlt,backgroundColor:n.inputBackground,erroredColor:n.errorText},a={headerTextColor:n.menuHeader,dividerBorderColor:n.bodyDivider},l={selectors:((h={})[Yt]={color:"GrayText"},h)},c=[{color:n.inputPlaceholderText},l],u=[{color:n.inputTextHovered},l],d=[{color:n.disabledText},l],p=ht(ht({color:"HighlightText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{selectors:{":after":{borderColor:"Highlight"}}}),h=_o(s.borderPressedColor,i.roundedCorner2,"border",0);return un({container:{},label:{},labelDisabled:{},root:[e.fonts.medium,{boxShadow:"none",marginLeft:"0",paddingRight:32,paddingLeft:9,color:s.textColor,position:"relative",outline:"0",userSelect:"none",backgroundColor:s.backgroundColor,cursor:"text",display:"block",height:32,whiteSpace:"nowrap",textOverflow:"ellipsis",boxSizing:"border-box",selectors:{".ms-Label":{display:"inline-block",marginBottom:"8px"},"&.is-open":{selectors:((l={})[Yt]=p,l)},":after":{pointerEvents:"none",content:"''",position:"absolute",left:0,top:0,bottom:0,right:0,borderWidth:"1px",borderStyle:"solid",borderColor:s.borderColor,borderRadius:i.roundedCorner2}}}],rootHovered:{selectors:((u={":after":{borderColor:s.borderHoveredColor},".ms-ComboBox-Input":[{color:n.inputTextHovered},Zo(u),gf]})[Yt]=ht(ht({color:"HighlightText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{selectors:{":after":{borderColor:"Highlight"}}}),u)},rootPressed:[{position:"relative",selectors:((u={})[Yt]=p,u)}],rootFocused:[{selectors:((u={".ms-ComboBox-Input":[{color:n.inputTextHovered},gf]})[Yt]=p,u)},h],rootDisabled:hf(e),rootError:{selectors:{":after":{borderColor:s.erroredColor},":hover:after":{borderColor:n.inputBorderHovered}}},rootDisallowFreeForm:{},input:[Zo(c),{backgroundColor:s.backgroundColor,color:s.textColor,boxSizing:"border-box",width:"100%",height:"100%",borderStyle:"none",outline:"none",font:"inherit",textOverflow:"ellipsis",padding:"0",selectors:{"::-ms-clear":{display:"none"}}},gf],inputDisabled:[hf(e),Zo(d)],errorMessage:[e.fonts.small,{color:s.erroredColor,marginTop:"5px"}],callout:{boxShadow:i.elevation8},optionsContainerWrapper:{width:o},optionsContainer:{display:"block"},screenReaderText:So,header:[r.medium,{fontWeight:Fe.semibold,color:a.headerTextColor,backgroundColor:"none",borderStyle:"none",height:36,lineHeight:36,cursor:"default",padding:"0 8px",userSelect:"none",textAlign:"left",selectors:((r={})[Yt]=ht({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)}],divider:{height:1,backgroundColor:a.dividerBorderColor}},t)}),yf=Ao(function(e,t,o,n,r,i,s,a){return{container:j("ms-ComboBox-container",t,e.container),label:j(e.label,n&&e.labelDisabled),root:j("ms-ComboBox",a?e.rootError:o&&"is-open",r&&"is-required",e.root,!s&&e.rootDisallowFreeForm,a&&!i?e.rootError:!n&&i&&e.rootFocused,!n&&{selectors:{":hover":a?e.rootError:!o&&!i&&e.rootHovered,":active":a?e.rootError:e.rootPressed,":focus":a?e.rootError:e.rootFocused}},n&&["is-disabled",e.rootDisabled]),input:j("ms-ComboBox-Input",e.input,n&&e.inputDisabled),errorMessage:j(e.errorMessage),callout:j("ms-ComboBox-callout",e.callout),optionsContainerWrapper:j("ms-ComboBox-optionsContainerWrapper",e.optionsContainerWrapper),optionsContainer:j("ms-ComboBox-optionsContainer",e.optionsContainer),header:j("ms-ComboBox-header",e.header),divider:j("ms-ComboBox-divider",e.divider),screenReaderText:j(e.screenReaderText)}}),Cf=Ao(function(e){return{optionText:j("ms-ComboBox-optionText",e.optionText),root:j("ms-ComboBox-option",e.root,{selectors:{":hover":e.rootHovered,":focus":e.rootFocused,":active":e.rootPressed}}),optionTextWrapper:j(e.optionTextWrapper)}});function _f(e,t){for(var o=[],n=0,r=t;n<r.length;n++){var i=e[r[n]];i&&o.push(i)}return o}(G=cf=cf||{})[G.Normal=0]="Normal",G[G.Divider=1]="Divider",G[G.Header=2]="Header",G[G.SelectAll=3]="SelectAll",(W=uf=uf||{})[W.backward=-1]="backward",W[W.none=0]="none",W[W.forward=1]="forward",(ke=df=df||{})[ke.clearAll=-2]="clearAll",ke[ke.default=-1]="default";var Sf=gt.memo(function(e){return(0,e.render)()},function(e,t){e.render;e=mt(e,["render"]);return t.render,da(e,mt(t,["render"]))}),xf={options:[],allowFreeform:!1,autoComplete:"on",buttonIconProps:{iconName:"ChevronDown"}},kf=gt.forwardRef(function(e,t){var o,n,r,i,s,a,l,c=Hn(xf,e),u=(c.ref,mt(c,["ref"])),d=gt.useRef(null),p=Sr(d,t),c=(o=u.options,n=u.defaultSelectedKey,r=u.selectedKey,i=gt.useState(function(){return Tf(o,(e=Ef(n)).length?e:Ef(r));var e}),e=i[0],s=i[1],c=gt.useState(o),t=c[0],a=c[1],i=gt.useState(),c=i[0],l=i[1],gt.useEffect(function(){var e;void 0!==r&&(e=Ef(r),e=Tf(o,e),s(e)),a(o)},[o,r]),gt.useEffect(function(){null===r&&l(void 0)},[r]),[e,s,t,a,c,l]);return gt.createElement(If,ht({},u,{hoisted:{mergedRootRef:p,rootRef:d,selectedIndices:c[0],setSelectedIndices:c[1],currentOptions:c[2],setCurrentOptions:c[3],suggestedDisplayValue:c[4],setSuggestedDisplayValue:c[5]}}))});kf.displayName="ComboBox";var wf,If=(l(Df,wf=gt.Component),Object.defineProperty(Df.prototype,"selectedOptions",{get:function(){var e=this.props.hoisted;return _f(e.currentOptions,e.selectedIndices)},enumerable:!1,configurable:!0}),Df.prototype.componentDidMount=function(){this._comboBoxWrapper.current&&!this.props.disabled&&(this._events.on(this._comboBoxWrapper.current,"focus",this._onResolveOptions,!0),"onpointerdown"in this._comboBoxWrapper.current&&this._events.on(this._comboBoxWrapper.current,"pointerdown",this._onPointerDown,!0))},Df.prototype.componentDidUpdate=function(e,t){var o=this,n=this.props,r=n.allowFreeform,i=n.text,s=n.onMenuOpen,a=n.onMenuDismissed,l=n.hoisted.selectedIndices,c=this.state,n=c.isOpen,c=c.currentPendingValueValidIndex;!n||t.isOpen&&t.currentPendingValueValidIndex===c||this._async.setTimeout(function(){return o._scrollIntoView()},0),this._hasFocus()&&(n||t.isOpen&&!n&&this._focusInputAfterClose&&this._autofill.current&&document.activeElement!==this._autofill.current.inputElement)&&this.focus(void 0,!0),this._focusInputAfterClose&&(t.isOpen&&!n||this._hasFocus()&&(!n&&!this.props.multiSelect&&e.hoisted.selectedIndices&&l&&e.hoisted.selectedIndices[0]!==l[0]||!r||i!==e.text))&&this._onFocus(),this._notifyPendingValueChanged(t),n&&!t.isOpen&&s&&s(),!n&&t.isOpen&&a&&a()},Df.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},Df.prototype.render=function(){var e=this._id+"-error",t=this.props,o=t.className,n=t.disabled,r=t.required,i=t.errorMessage,s=t.onRenderContainer,a=void 0===s?this._onRenderContainer:s,l=t.onRenderLabel,c=void 0===l?this._onRenderLabel:l,u=t.onRenderList,d=void 0===u?this._onRenderList:u,p=t.onRenderItem,h=void 0===p?this._onRenderItem:p,m=t.onRenderOption,g=void 0===m?this._onRenderOptionContent:m,f=t.allowFreeform,v=t.styles,b=t.theme,s=t.persistMenu,l=t.multiSelect,u=t.hoisted,p=u.suggestedDisplayValue,m=u.selectedIndices,t=u.currentOptions,u=this.state.isOpen;this._currentVisibleValue=this._getVisibleValue();l=l?this._getMultiselectDisplayString(m,t,p):void 0,m=ur(this.props,cr,["onChange","value","aria-describedby","aria-labelledby"]),p=!!(i&&0<i.length);this._classNames=this.props.getClassNames?this.props.getClassNames(b,!!u,!!n,!!r,!!this._hasFocus(),!!f,!!p,o):yf(bf(b,v),o,!!u,!!n,!!r,!!this._hasFocus(),!!f,!!p);f=this._renderComboBoxWrapper(l,e);return gt.createElement("div",ht({},m,{ref:this.props.hoisted.mergedRootRef,className:this._classNames.container}),c({props:this.props,multiselectAccessibleText:l},this._onRenderLabel),f,(s||u)&&a(ht(ht({},this.props),{onRenderList:d,onRenderItem:h,onRenderOption:g,options:t.map(function(e,t){return ht(ht({},e),{index:t})}),onDismiss:this._onDismiss}),this._onRenderContainer),p&>.createElement("div",{role:"alert",id:e,className:this._classNames.errorMessage},i))},Df.prototype._getPendingString=function(e,t,o){return null!=e?e:Rf(t,o)?t[o].text:""},Df.prototype._getMultiselectDisplayString=function(e,t,o){for(var n=[],r=0;e&&r<e.length;r++){var i=e[r];t[i].itemType!==cf.SelectAll&&n.push(Rf(t,i)?t[i].text:o||"")}var s=this.props.multiSelectDelimiter;return n.join(void 0===s?", ":s)},Df.prototype._processInputChangeWithFreeform=function(t){var e=this.props.hoisted.currentOptions,o=-1;if(""===t)return 1===(r=e.map(function(e,t){return ht(ht({},e),{index:t})}).filter(function(e){return Mf(e)&&Bf(e)===t})).length&&(o=r[0].index),void this._setPendingInfo(t,o,t);var n=t;t=t.toLocaleLowerCase();var r,i,s="";"on"===this.props.autoComplete?0<(r=e.map(function(e,t){return ht(ht({},e),{index:t})}).filter(function(e){return Mf(e)&&0===Bf(e).toLocaleLowerCase().indexOf(t)})).length&&(s=(i=Bf(r[0])).toLocaleLowerCase()!==t?i:"",o=r[0].index):1===(r=e.map(function(e,t){return ht(ht({},e),{index:t})}).filter(function(e){return Mf(e)&&Bf(e).toLocaleLowerCase()===t})).length&&(o=r[0].index),this._setPendingInfo(n,o,s)},Df.prototype._processInputChangeWithoutFreeform=function(t){var e=this,o=this.props.hoisted.currentOptions,n=this.state,r=n.currentPendingValue,n=n.currentPendingValueValidIndex;if("on"===this.props.autoComplete&&""!==t){this._autoCompleteTimeout&&(this._async.clearTimeout(this._autoCompleteTimeout),this._autoCompleteTimeout=void 0,t=(r||"")+t);r=t;t=t.toLocaleLowerCase();o=o.map(function(e,t){return ht(ht({},e),{index:t})}).filter(function(e){return Mf(e)&&0===e.text.toLocaleLowerCase().indexOf(t)});return 0<o.length&&this._setPendingInfo(r,o[0].index,Bf(o[0])),void(this._autoCompleteTimeout=this._async.setTimeout(function(){e._autoCompleteTimeout=void 0},1e3))}n=0<=n?n:this._getFirstSelectedIndex();this._setPendingInfoFromIndex(n)},Df.prototype._getFirstSelectedIndex=function(){var e=this.props.hoisted.selectedIndices;return null!=e&&e.length?e[0]:-1},Df.prototype._getNextSelectableIndex=function(e,t){var o=this.props.hoisted.currentOptions,n=e+t;if(!Rf(o,n=Math.max(0,Math.min(o.length-1,n))))return-1;var r=o[n];if(!Nf(r)||!0===r.hidden){if(t===uf.none||!(0<n&&t<uf.none||0<=n&&n<o.length&&t>uf.none))return e;n=this._getNextSelectableIndex(n,t)}return n},Df.prototype._setSelectedIndex=function(t,e,o){void 0===o&&(o=uf.none);var n=this.props,r=n.onChange,i=n.onPendingValueChanged,s=n.hoisted,n=s.selectedIndices,s=s.currentOptions,a=n?n.slice():[],l=s.slice();if(Rf(s,t=this._getNextSelectableIndex(t,o))){if(this.props.multiSelect||a.length<1||1===a.length&&a[0]!==t){var c,n=ht({},s[t]);if(!n||n.disabled)return;this.props.multiSelect?(n.selected=void 0!==n.selected?!n.selected:a.indexOf(t)<0,n.itemType===cf.SelectAll?(a=[],n.selected?s.forEach(function(e,t){!e.disabled&&Nf(e)&&(a.push(t),l[t]=ht(ht({},e),{selected:!0}))}):l=s.map(function(e){return ht(ht({},e),{selected:!1})})):(n.selected&&a.indexOf(t)<0?a.push(t):!n.selected&&0<=a.indexOf(t)&&(a=a.filter(function(e){return e!==t})),l[t]=n,(o=l.filter(function(e){return e.itemType===cf.SelectAll})[0])&&(s=this._isSelectAllChecked(a),c=l.indexOf(o),s?(a.push(c),l[c]=ht(ht({},o),{selected:!0})):(a=a.filter(function(e){return e!==c}),l[c]=ht(ht({},o),{selected:!1}))))):a[0]=t,e.persist(),this.props.selectedKey||null===this.props.selectedKey||(this.props.hoisted.setSelectedIndices(a),this.props.hoisted.setCurrentOptions(l)),this._hasPendingValue&&i&&(i(),this._hasPendingValue=!1),r&&r(e,n,t,void 0)}this.props.multiSelect&&this.state.isOpen||this._clearPendingInfo()}},Df.prototype._submitPendingValue=function(e){var t=this.props,o=t.onChange,n=t.allowFreeform,r=t.autoComplete,i=t.multiSelect,s=t.hoisted,a=s.currentOptions,l=this.state,c=l.currentPendingValue,u=l.currentPendingValueValidIndex,d=l.currentPendingValueValidIndexOnHover,t=this.props.hoisted.selectedIndices;if(!this._processingClearPendingInfo){if(n){if(null==c)return void(0<=d&&(this._setSelectedIndex(d,e),this._clearPendingInfo()));if(Rf(a,u)){var l=Bf(a[u]).toLocaleLowerCase(),n=this._autofill.current;if(c.toLocaleLowerCase()===l||r&&0===l.indexOf(c.toLocaleLowerCase())&&null!=n&&n.isValueSelected&&c.length+(n.selectionEnd-n.selectionStart)===l.length||(null===(n=null==n?void 0:n.inputElement)||void 0===n?void 0:n.value.toLocaleLowerCase())===l)return this._setSelectedIndex(u,e),i&&this.state.isOpen?void 0:void this._clearPendingInfo()}o?o(e,void 0,void 0,c):(c={key:c||Ss(),text:c||""},i&&(c.selected=!0),c=a.concat([c]),t&&(t=!i?[]:t).push(c.length-1),s.setCurrentOptions(c),s.setSelectedIndices(t))}else 0<=u?this._setSelectedIndex(u,e):0<=d&&this._setSelectedIndex(d,e);this._clearPendingInfo()}},Df.prototype._onCalloutLayerMounted=function(){this._gotMouseMove=!1},Df.prototype._renderSeparator=function(e){var t=e.index,e=e.key;return t&&0<t?gt.createElement("div",{role:"separator",key:e,className:this._classNames.divider}):null},Df.prototype._renderHeader=function(e){var t=this.props.onRenderOption,t=void 0===t?this._onRenderOptionContent:t;return gt.createElement("div",{id:e.id,key:e.key,className:this._classNames.header},t(e,this._onRenderOptionContent))},Df.prototype._isOptionHighlighted=function(e){var t=this.state.currentPendingValueValidIndexOnHover;return t!==df.clearAll&&(0<=t?t===e:this._isOptionSelected(e))},Df.prototype._isOptionSelected=function(e){return this._getPendingSelectedIndex(!0)===e},Df.prototype._isOptionChecked=function(e){return!(!this.props.multiSelect||void 0===e||!this.props.hoisted.selectedIndices)&&0<=this.props.hoisted.selectedIndices.indexOf(e)},Df.prototype._isOptionIndeterminate=function(e){var t=this.props,o=t.multiSelect,t=t.hoisted;if(o&&void 0!==e&&t.selectedIndices&&t.currentOptions){e=t.currentOptions[e];if(e&&e.itemType===cf.SelectAll)return 0<t.selectedIndices.length&&!this._isSelectAllChecked()}return!1},Df.prototype._isSelectAllChecked=function(e){var t=this.props,o=t.multiSelect,n=t.hoisted,t=n.currentOptions.find(function(e){return e.itemType===cf.SelectAll}),e=e||n.selectedIndices;if(!o||!e||!t)return!1;var r=n.currentOptions.indexOf(t),e=e.filter(function(e){return e!==r}),n=n.currentOptions.filter(function(e){return!e.disabled&&e.itemType!==cf.SelectAll&&Nf(e)});return e.length===n.length},Df.prototype._getPendingSelectedIndex=function(e){var t=this.state,o=t.currentPendingValueValidIndex,t=t.currentPendingValue;return 0<=o||e&&null!=t?o:this.props.multiSelect?0:this._getFirstSelectedIndex()},Df.prototype._scrollIntoView=function(){var e,t,o=this.props,n=o.onScrollToItem,r=o.scrollSelectedToTop,i=this.state,s=i.currentPendingValueValidIndex,a=i.currentPendingValue;n?n(0<=s||""!==a?s:this._getFirstSelectedIndex()):this._selectedElement.current&&this._selectedElement.current.offsetParent&&(e=!0,this._comboBoxMenu.current&&this._comboBoxMenu.current.offsetParent?(t=this._comboBoxMenu.current.offsetParent,i=(o=this._selectedElement.current.offsetParent).offsetHeight,n=o.offsetTop,a=t.offsetHeight,o=(s=t.scrollTop)+a<n+i,n<s||r?(e=!1,t.scrollTo(0,n)):o&&t.scrollTo(0,n-a+i)):this._selectedElement.current.offsetParent.scrollIntoView(e))},Df.prototype._onItemClick=function(t){var o=this,n=this.props.onItemClick,r=t.index;return function(e){o.props.multiSelect||(o._autofill.current&&o._autofill.current.focus(),o.setState({isOpen:!1})),n&&n(e,t,r),o._setSelectedIndex(r,e)}},Df.prototype._resetSelectedIndex=function(){var e=this.props.hoisted.currentOptions;this._clearPendingInfo();var t=this._getFirstSelectedIndex();0<t&&t<e.length?this.props.hoisted.setSuggestedDisplayValue(e[t].text):this.props.text&&this.props.hoisted.setSuggestedDisplayValue(this.props.text)},Df.prototype._clearPendingInfo=function(){this._processingClearPendingInfo=!0,this.props.hoisted.setSuggestedDisplayValue(void 0),this.setState({currentPendingValue:void 0,currentPendingValueValidIndex:-1,currentPendingValueValidIndexOnHover:df.default},this._onAfterClearPendingInfo)},Df.prototype._setPendingInfo=function(e,t,o){void 0===t&&(t=-1),this._processingClearPendingInfo||(this.props.hoisted.setSuggestedDisplayValue(o),this.setState({currentPendingValue:e||"",currentPendingValueValidIndex:t,currentPendingValueValidIndexOnHover:df.default}))},Df.prototype._setPendingInfoFromIndex=function(e){var t=this.props.hoisted.currentOptions;0<=e&&e<t.length?(t=t[e],this._setPendingInfo(Bf(t),e,Bf(t))):this._clearPendingInfo()},Df.prototype._setPendingInfoFromIndexAndDirection=function(e,t){var o=this.props.hoisted.currentOptions;t===uf.forward&&e>=o.length-1?e=-1:t===uf.backward&&e<=0&&(e=o.length);var n=this._getNextSelectableIndex(e,t);e===n?t===uf.forward?e=this._getNextSelectableIndex(-1,t):t===uf.backward&&(e=this._getNextSelectableIndex(o.length,t)):e=n,Rf(o,e)&&this._setPendingInfoFromIndex(e)},Df.prototype._notifyPendingValueChanged=function(e){var t,o,n,r,i,s,a=this.props.onPendingValueChanged;a&&(t=this.props.hoisted.currentOptions,o=(r=this.state).currentPendingValue,n=r.currentPendingValueValidIndex,s=i=void 0,(r=r.currentPendingValueValidIndexOnHover)!==e.currentPendingValueValidIndexOnHover&&Rf(t,r)?i=r:n!==e.currentPendingValueValidIndex&&Rf(t,n)?i=n:o!==e.currentPendingValue&&(s=o),void 0===i&&void 0===s&&!this._hasPendingValue||(a(void 0!==i?t[i]:void 0,i,s),this._hasPendingValue=void 0!==i||void 0!==s))},Df.prototype._setOpenStateAndFocusOnClose=function(e,t){this._focusInputAfterClose=t,this.setState({isOpen:e})},Df.prototype._onOptionMouseEnter=function(e){this._shouldIgnoreMouseEvent()||this.setState({currentPendingValueValidIndexOnHover:e})},Df.prototype._onOptionMouseMove=function(e){this._gotMouseMove=!0,this._isScrollIdle&&this.state.currentPendingValueValidIndexOnHover!==e&&this.setState({currentPendingValueValidIndexOnHover:e})},Df.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},Df.prototype._handleInputWhenDisabled=function(e){this.props.disabled&&(this.state.isOpen&&this.setState({isOpen:!1}),null!==e&&e.which!==Tn.tab&&e.which!==Tn.escape&&(e.which<112||123<e.which)&&(e.stopPropagation(),e.preventDefault()))},Df.prototype._handleTouchAndPointerEvent=function(){var e=this;void 0!==this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){e._processingTouch=!1,e._lastTouchTimeoutId=void 0},500)},Df.prototype._getCaretButtonStyles=function(){var e=this.props.caretDownButtonStyles;return vf(this.props.theme,e)},Df.prototype._getCurrentOptionStyles=function(e){var t=this.props.comboBoxOptionStyles,o=e.styles;return ff(this.props.theme,t,o,this._isPendingOption(e),e.hidden,this._isOptionHighlighted(e.index))},Df.prototype._getAriaActiveDescendantValue=function(){var e=this.props.hoisted.selectedIndices,t=this.state,o=t.isOpen,t=t.currentPendingValueValidIndex,e=o&&null!=e&&e.length?this._id+"-list"+e[0]:void 0;return e=o&&this._hasFocus()&&-1!==t?this._id+"-list"+t:e},Df.prototype._getAriaAutoCompleteValue=function(){return this.props.disabled||"on"!==this.props.autoComplete?"none":this.props.allowFreeform?"inline":"both"},Df.prototype._isPendingOption=function(e){return e&&e.index===this.state.currentPendingValueValidIndex},Df.prototype._hasFocus=function(){return"none"!==this.state.focusState},c([Qu("ComboBox",["theme","styles"],!0)],Df));function Df(e){var v=wf.call(this,e)||this;return v._autofill=gt.createRef(),v._comboBoxWrapper=gt.createRef(),v._comboBoxMenu=gt.createRef(),v._selectedElement=gt.createRef(),v.focus=function(e,t){v.props.disabled||(v._autofill.current&&(t?fs(v._autofill.current):v._autofill.current.focus(),e&&v.setState({isOpen:!0})),v._hasFocus()||v.setState({focusState:"focused"}))},v.dismissMenu=function(){v.state.isOpen&&v.setState({isOpen:!1})},v._onUpdateValueInAutofillWillReceiveProps=function(){var e=v._autofill.current;if(!e)return null;if(null===e.value||void 0===e.value)return null;var t=Pf(v._currentVisibleValue);return e.value!==t?t:e.value},v._renderComboBoxWrapper=function(e,t){var o=v.props,n=o.label,r=o.disabled,i=o.ariaLabel,s=o.ariaDescribedBy,a=void 0===s?v.props["aria-describedby"]:s,l=o.required,c=o.errorMessage,u=o.buttonIconProps,d=o.isButtonAriaHidden,p=void 0===d||d,h=o.title,m=o.placeholder,g=o.tabIndex,f=o.autofill,s=o.iconButtonProps,d=o.hoisted.suggestedDisplayValue,o=v.state.isOpen,e=v._hasFocus()&&v.props.multiSelect&&e?e:m,m=[v.props["aria-labelledby"],n&&v._id+"-label"].join(" ").trim();return gt.createElement("div",{"data-ktp-target":!0,ref:v._comboBoxWrapper,id:v._id+"wrapper",className:v._classNames.root,"aria-owns":o?v._id+"-list":void 0},gt.createElement(wi,ht({"data-ktp-execute-target":!0,"data-is-interactable":!r,componentRef:v._autofill,id:v._id+"-input",className:v._classNames.input,type:"text",onFocus:v._onFocus,onBlur:v._onBlur,onKeyDown:v._onInputKeyDown,onKeyUp:v._onInputKeyUp,onClick:v._onAutofillClick,onTouchStart:v._onTouchStart,onInputValueChange:v._onInputChange,"aria-expanded":o,"aria-autocomplete":v._getAriaAutoCompleteValue(),role:"combobox",readOnly:r,"aria-labelledby":m||void 0,"aria-label":i&&!n?i:void 0,"aria-describedby":void 0!==c?Ia(a,t):a,"aria-activedescendant":v._getAriaActiveDescendantValue(),"aria-required":l,"aria-disabled":r,"aria-controls":o?v._id+"-list":void 0,spellCheck:!1,defaultVisibleValue:v._currentVisibleValue,suggestedDisplayValue:d,updateValueInWillReceiveProps:v._onUpdateValueInAutofillWillReceiveProps,shouldSelectFullInputValueInComponentDidUpdate:v._onShouldSelectFullInputValueInAutofillComponentDidUpdate,title:h,preventValueSelection:!v._hasFocus(),placeholder:e,tabIndex:r?-1:g},f)),gt.createElement(id,ht({className:"ms-ComboBox-CaretDown-button",styles:v._getCaretButtonStyles(),role:"presentation","aria-hidden":p,"data-is-focusable":!1,tabIndex:-1,onClick:v._onComboBoxClick,onBlur:v._onBlur,iconProps:u,disabled:r,checked:o},s)))},v._onShouldSelectFullInputValueInAutofillComponentDidUpdate=function(){return v._currentVisibleValue===v.props.hoisted.suggestedDisplayValue},v._getVisibleValue=function(){var e=v.props,t=e.text,o=e.allowFreeform,n=e.autoComplete,r=e.hoisted,i=r.suggestedDisplayValue,s=r.selectedIndices,a=r.currentOptions,l=v.state,c=l.currentPendingValueValidIndex,e=l.currentPendingValue,r=l.isOpen,l=Rf(a,c);if((!r||!l)&&t&&null==e)return t;if(v.props.multiSelect){if(v._hasFocus()){var u="on"===n&&l?c:-1;return v._getPendingString(e,a,u)}return v._getMultiselectDisplayString(s,a,i)}return u=v._getFirstSelectedIndex(),o?v._getPendingString(e,a,u="on"===n&&l?c:u):l&&"on"===n?(u=c,e||""):!v.state.isOpen&&e?Rf(a,u)?e:i||"":Rf(a,u)?Bf(a[u]):i||""},v._onInputChange=function(e){v.props.disabled?v._handleInputWhenDisabled(null):(v.props.onInputValueChange&&v.props.onInputValueChange(e),v.props.allowFreeform?v._processInputChangeWithFreeform(e):v._processInputChangeWithoutFreeform(e))},v._onFocus=function(){var e;null===(e=null===(e=v._autofill.current)||void 0===e?void 0:e.inputElement)||void 0===e||e.select(),v._hasFocus()||v.setState({focusState:"focusing"})},v._onResolveOptions=function(){var t;v.props.onResolveOptions&&(t=v.props.onResolveOptions($e([],v.props.hoisted.currentOptions)),Array.isArray(t)?v.props.hoisted.setCurrentOptions(t):t&&t.then&&(v._currentPromise=t).then(function(e){t===v._currentPromise&&v.props.hoisted.setCurrentOptions(e)}))},v._onBlur=function(e){var t=e.relatedTarget;if(t=null===e.relatedTarget?document.activeElement:t){var o=null===(n=v.props.hoisted.rootRef.current)||void 0===n?void 0:n.contains(t),n=null===(r=v._comboBoxMenu.current)||void 0===r?void 0:r.contains(t),r=v._comboBoxMenu.current&&Ji(v._comboBoxMenu.current,function(e){return e===t});if(o||n||r)return r&&v._hasFocus()&&(!v.props.multiSelect||v.props.allowFreeform)&&v._submitPendingValue(e),e.preventDefault(),void e.stopPropagation()}v._hasFocus()&&(v.setState({focusState:"none"}),v.props.multiSelect&&!v.props.allowFreeform||v._submitPendingValue(e))},v._onRenderContainer=function(e,t){var o=e.onRenderList,n=e.calloutProps,r=e.dropdownWidth,i=e.dropdownMaxWidth,s=e.onRenderUpperContent,a=void 0===s?v._onRenderUpperContent:s,l=e.onRenderLowerContent,c=void 0===l?v._onRenderLowerContent:l,u=e.useComboBoxAsMenuWidth,d=e.persistMenu,p=e.shouldRestoreFocus,h=void 0===p||p,s=v.state.isOpen,l=v._id,p=u&&v._comboBoxWrapper.current?v._comboBoxWrapper.current.clientWidth+2:void 0;return gt.createElement(lc,ht({isBeakVisible:!1,gapSpace:0,doNotLayer:!1,directionalHint:Pa.bottomLeftEdge,directionalHintFixed:!1},n,{onLayerMounted:v._onLayerMounted,className:Pr(v._classNames.callout,null==n?void 0:n.className),target:v._comboBoxWrapper.current,onDismiss:v._onDismiss,onMouseDown:v._onCalloutMouseDown,onScroll:v._onScroll,setInitialFocus:!1,calloutWidth:u&&v._comboBoxWrapper.current?p:r,calloutMaxWidth:i||p,hidden:d?!s:void 0,shouldRestoreFocus:h}),a(v.props,v._onRenderUpperContent),gt.createElement("div",{className:v._classNames.optionsContainerWrapper,ref:v._comboBoxMenu},null==o?void 0:o(ht(ht({},e),{id:l}),v._onRenderList)),c(v.props,v._onRenderLowerContent))},v._onLayerMounted=function(){v._onCalloutLayerMounted(),v._async.setTimeout(function(){v._scrollIntoView()},0),v.props.calloutProps&&v.props.calloutProps.onLayerMounted&&v.props.calloutProps.onLayerMounted()},v._onRenderLabel=function(e){var t=e.props,o=t.label,n=t.disabled,t=t.required;return o?gt.createElement(om,{id:v._id+"-label",disabled:n,required:t,className:v._classNames.label},o,e.multiselectAccessibleText&>.createElement("span",{className:v._classNames.screenReaderText},e.multiselectAccessibleText)):null},v._onRenderList=function(e){function n(){var e=s.id?[gt.createElement("div",{role:"group",key:s.id,"aria-labelledby":s.id},s.items)]:s.items;a=$e($e([],a),e),s={items:[]}}var t=e.onRenderItem,r=void 0===t?v._onRenderItem:t,o=e.label,i=e.ariaLabel,t=e.multiSelect,s={items:[]},a=[];e.options.forEach(function(e,t){!function(e,t){switch(e.itemType){case cf.Header:0<s.items.length&&n();var o=v._id+e.key;s.items.push(r(ht(ht({id:o},e),{index:t}),v._onRenderItem)),s.id=o;break;case cf.Divider:0<t&&s.items.push(r(ht(ht({},e),{index:t}),v._onRenderItem)),0<s.items.length&&n();break;default:s.items.push(r(ht(ht({},e),{index:t}),v._onRenderItem))}}(e,t)}),0<s.items.length&&n();e=v._id;return gt.createElement("div",{id:e+"-list",className:v._classNames.optionsContainer,"aria-labelledby":o&&e+"-label","aria-label":i&&!o?i:void 0,"aria-multiselectable":t?"true":void 0,role:"listbox"},a)},v._onRenderItem=function(e){switch(e.itemType){case cf.Divider:return v._renderSeparator(e);case cf.Header:return v._renderHeader(e);default:return v._renderOption(e)}},v._onRenderLowerContent=function(){return null},v._onRenderUpperContent=function(){return null},v._renderOption=function(e){function t(){return n(e,v._onRenderOptionContent)}var o=v.props.onRenderOption,n=void 0===o?v._onRenderOptionContent:o,r=v._id,i=v._isOptionSelected(e.index),s=v._isOptionChecked(e.index),a=v._isOptionIndeterminate(e.index),l=v._getCurrentOptionStyles(e),c=Cf(v._getCurrentOptionStyles(e)),u=e.title;return gt.createElement(Sf,{key:e.key,index:e.index,disabled:e.disabled,isSelected:i,isChecked:s,isIndeterminate:a,text:e.text,render:function(){return v.props.multiSelect?gt.createElement($h,{id:r+"-list"+e.index,ariaLabel:e.ariaLabel,key:e.key,styles:l,className:"ms-ComboBox-option",onChange:v._onItemClick(e),label:e.text,checked:s,indeterminate:a,title:u,disabled:e.disabled,onRenderLabel:t,inputProps:ht({"aria-selected":s?"true":"false",role:"option"},{"data-index":e.index,"data-is-focusable":!0})}):gt.createElement(dp,{id:r+"-list"+e.index,key:e.key,"data-index":e.index,styles:l,checked:i,className:"ms-ComboBox-option",onClick:v._onItemClick(e),onMouseEnter:v._onOptionMouseEnter.bind(v,e.index),onMouseMove:v._onOptionMouseMove.bind(v,e.index),onMouseLeave:v._onOptionMouseLeave,role:"option","aria-selected":i?"true":"false",ariaLabel:e.ariaLabel,disabled:e.disabled,title:u},gt.createElement("span",{className:c.optionTextWrapper,ref:i?v._selectedElement:void 0},n(e,v._onRenderOptionContent)))},data:e.data})},v._onCalloutMouseDown=function(e){e.preventDefault()},v._onScroll=function(){v._isScrollIdle||void 0===v._scrollIdleTimeoutId?v._isScrollIdle=!1:(v._async.clearTimeout(v._scrollIdleTimeoutId),v._scrollIdleTimeoutId=void 0),v._scrollIdleTimeoutId=v._async.setTimeout(function(){v._isScrollIdle=!0},250)},v._onRenderOptionContent=function(e){var t=Cf(v._getCurrentOptionStyles(e));return gt.createElement("span",{className:t.optionText},e.text)},v._onDismiss=function(){var e=v.props.onMenuDismiss;e&&e(),v.props.persistMenu&&v._onCalloutLayerMounted(),v._setOpenStateAndFocusOnClose(!1,!1),v._resetSelectedIndex()},v._onAfterClearPendingInfo=function(){v._processingClearPendingInfo=!1},v._onInputKeyDown=function(e){var t=v.props,o=t.disabled,n=t.allowFreeform,r=t.autoComplete,i=t.hoisted.currentOptions,t=v.state,s=t.isOpen,a=t.currentPendingValueValidIndexOnHover;if(v._lastKeyDownWasAltOrMeta=Ff(e),o)v._handleInputWhenDisabled(e);else{var l=v._getPendingSelectedIndex(!1);switch(e.which){case Tn.enter:v._autofill.current&&v._autofill.current.inputElement&&v._autofill.current.inputElement.select(),v._submitPendingValue(e),v.props.multiSelect&&s?v.setState({currentPendingValueValidIndex:l}):(s||(!n||void 0===v.state.currentPendingValue||null===v.state.currentPendingValue||v.state.currentPendingValue.length<=0)&&v.state.currentPendingValueValidIndex<0)&&v.setState({isOpen:!s});break;case Tn.tab:return v.props.multiSelect||v._submitPendingValue(e),void(s&&v._setOpenStateAndFocusOnClose(!s,!1));case Tn.escape:if(v._resetSelectedIndex(),!s)return;v.setState({isOpen:!1});break;case Tn.up:if(a===df.clearAll&&(l=v.props.hoisted.currentOptions.length),e.altKey||e.metaKey){if(s){v._setOpenStateAndFocusOnClose(!s,!0);break}return}e.preventDefault(),v._setPendingInfoFromIndexAndDirection(l,uf.backward);break;case Tn.down:e.altKey||e.metaKey?v._setOpenStateAndFocusOnClose(!0,!0):(a===df.clearAll&&(l=-1),e.preventDefault(),v._setPendingInfoFromIndexAndDirection(l,uf.forward));break;case Tn.home:case Tn.end:if(n)return;var l=-1,c=uf.forward;e.which===Tn.end&&(l=i.length,c=uf.backward),v._setPendingInfoFromIndexAndDirection(l,c);break;case Tn.space:if(!n&&"off"===r)break;default:if(112<=e.which&&e.which<=123)return;if(e.keyCode===Tn.alt||"Meta"===e.key)return;if(n||"on"!==r)return;v._onInputChange(e.key)}e.stopPropagation(),e.preventDefault()}},v._onInputKeyUp=function(e){var t=v.props,o=t.disabled,n=t.allowFreeform,r=t.autoComplete,i=v.state.isOpen,t=v._lastKeyDownWasAltOrMeta&&Ff(e);v._lastKeyDownWasAltOrMeta=!1;t=t&&!(Na()||Aa());o?v._handleInputWhenDisabled(e):e.which!==Tn.space?t&&i?v._setOpenStateAndFocusOnClose(!i,!0):("focusing"===v.state.focusState&&v.props.openOnKeyboardFocus&&v.setState({isOpen:!0}),"focused"!==v.state.focusState&&v.setState({focusState:"focused"})):n||"off"!==r||v._setOpenStateAndFocusOnClose(!i,!!i)},v._onOptionMouseLeave=function(){v._shouldIgnoreMouseEvent()||v.props.persistMenu&&!v.state.isOpen||v.setState({currentPendingValueValidIndexOnHover:df.clearAll})},v._onComboBoxClick=function(){var e=v.props.disabled,t=v.state.isOpen;e||(v._setOpenStateAndFocusOnClose(!t,!1),v.setState({focusState:"focused"}))},v._onAutofillClick=function(){var e=v.props,t=e.disabled;e.allowFreeform&&!t?v.focus(v.state.isOpen||v._processingTouch):v._onComboBoxClick()},v._onTouchStart=function(){!v._comboBoxWrapper.current||"onpointerdown"in v._comboBoxWrapper||v._handleTouchAndPointerEvent()},v._onPointerDown=function(e){"touch"===e.pointerType&&(v._handleTouchAndPointerEvent(),e.preventDefault(),e.stopImmediatePropagation())},vi(v),v._async=new xi(v),v._events=new va(v),v._id=e.id||Ss("ComboBox"),v._isScrollIdle=!0,v._processingTouch=!1,v._gotMouseMove=!1,v._processingClearPendingInfo=!1,v.state={isOpen:!1,focusState:"none",currentPendingValueValidIndex:-1,currentPendingValue:void 0,currentPendingValueValidIndexOnHover:df.default},v}function Tf(o,e){if(!o||!e)return[];var n={};o.forEach(function(e,t){e.selected&&(n[t]=!0)});for(var t=0,r=e;t<r.length;t++)!function(t){var e=Oi(o,function(e){return e.key===t});-1<e&&(n[e]=!0)}(r[t]);return Object.keys(n).map(Number).sort()}function Ef(e){return void 0===e?[]:e instanceof Array?e:[e]}function Pf(e){return e||""}function Rf(e,t){return!!e&&0<=t&&t<e.length}function Mf(e){return e.itemType!==cf.Header&&e.itemType!==cf.Divider&&e.itemType!==cf.SelectAll}function Nf(e){return e.itemType!==cf.Header&&e.itemType!==cf.Divider}function Bf(e){return e.useAriaLabelAsText&&e.ariaLabel?e.ariaLabel:e.text}function Ff(e){return e.which===Tn.alt||"Meta"===e.key}var Af,Lf={auto:0,top:1,bottom:2,center:3},Hf={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},K=function(e){return e.getBoundingClientRect()},Of=K,zf=K,Wf=(l(Vf,Af=gt.Component),Vf.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},Object.defineProperty(Vf.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),Vf.prototype.scrollToIndex=function(e,t,o){void 0===o&&(o=Lf.auto);for(var n=this.props.startIndex,r=n+this._getRenderCount(),i=this._allowedRect,s=0,a=n;a<r;a+=u){var l=this._getPageSpecification(a,i),c=l.height,u=l.itemCount;if(a<=e&&e<a+u){if(t&&this._scrollElement){for(var d=zf(this._scrollElement),p=this._scrollElement.scrollTop,l=this._scrollElement.scrollTop+d.height,h=e-a,m=0;m<h;++m)s+=t(a+m);var g=s+t(e);switch(o){case Lf.top:return void(this._scrollElement.scrollTop=s);case Lf.bottom:return void(this._scrollElement.scrollTop=g-d.height);case Lf.center:return void(this._scrollElement.scrollTop=(s+g-d.height)/2);case Lf.auto:}if(p<=s&&g<=l)return;s<p||l<g&&(s=g-d.height)}return void(this._scrollElement&&(this._scrollElement.scrollTop=s))}s+=c}},Vf.prototype.getStartItemIndexInView=function(e){for(var t=0,o=this.state.pages||[];t<o.length;t++){var n=o[t];if(!n.isSpacer&&(this._scrollTop||0)>=n.top&&(this._scrollTop||0)<=n.top+n.height){if(!e){var r=Math.floor(n.height/n.itemCount);return n.startIndex+Math.floor((this._scrollTop-n.top)/r)}for(var i=0,s=n.startIndex;s<n.startIndex+n.itemCount;s++){if(r=e(s),n.top+i<=this._scrollTop&&this._scrollTop<n.top+i+r)return s;i+=r}}}return 0},Vf.prototype.componentDidMount=function(){this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,this._scrollElement=Ns(this._root.current),this._events.on(window,"resize",this._onAsyncResize),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScroll))},Vf.prototype.componentDidUpdate=function(e,t){var o=this.props,n=this.state;this.state.pagesVersion!==t.pagesVersion&&(!o.getPageHeight&&this._updatePageMeasurements(n.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScroll():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(o,n)))):this._onAsyncIdle(),o.onPagesUpdated&&o.onPagesUpdated(n.pages))},Vf.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose(),delete this._scrollElement},Vf.prototype.shouldComponentUpdate=function(e,t){var o=this.state.pages,n=t.pages,r=!1;if(!t.isScrolling&&this.state.isScrolling)return!0;if(e.version!==this.props.version)return!0;if(e.items===this.props.items&&o.length===n.length)for(var i=0;i<o.length;i++){var s=o[i],a=n[i];if(s.key!==a.key||s.itemCount!==a.itemCount){r=!0;break}}else r=!0;return r},Vf.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,Af.prototype.forceUpdate.call(this)},Vf.prototype.getTotalListHeight=function(){return this._surfaceRect.height},Vf.prototype.render=function(){for(var e=this.props,t=e.className,o=e.role,n=void 0===o?"list":o,r=e.onRenderSurface,i=e.onRenderRoot,o=this.state.pages,e=void 0===o?[]:o,s=[],o=ur(this.props,cr),a=0,l=e;a<l.length;a++){var c=l[a];s.push(this._renderPage(c))}r=r?Ma(r,this._onRenderSurface):this._onRenderSurface;return(i?Ma(i,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:e,surfaceElement:r({surfaceRef:this._surface,pages:e,pageElements:s,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:ht(ht({},o),{className:Pr("ms-List",t),role:0<s.length?n:void 0,"aria-label":0<s.length?o["aria-label"]:void 0})})},Vf.prototype._shouldVirtualize=function(e){var t=(e=void 0===e?this.props:e).onShouldVirtualize;return!t||t(e)},Vf.prototype._invalidatePageCache=function(){this._pageCache={}},Vf.prototype._renderPage=function(t){var o=this,e=this.props.usePageCache;if(e&&(r=this._pageCache[t.key])&&r.pageElement)return r.pageElement;var n=this._getPageStyle(t),r=this.props.onRenderPage,n=(void 0===r?this._onRenderPage:r)({page:t,className:"ms-List-page",key:t.key,ref:function(e){o._pageRefs[t.key]=e},style:n,role:"presentation"},this._onRenderPage);return e&&0===t.startIndex&&(this._pageCache[t.key]={page:t,pageElement:n}),n},Vf.prototype._getPageStyle=function(e){var t=this.props.getPageStyle;return ht(ht({},t?t(e):{}),e.items?{}:{height:e.height})},Vf.prototype._onFocus=function(e){for(var t=e.target;t!==this._surface.current;){var o=t.getAttribute("data-list-index");if(o){this._focusedIndex=Number(o);break}t=Qi(t)}},Vf.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},Vf.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},Vf.prototype._onAsyncScroll=function(){var e,t;this._updateRenderRects(this.props,this.state),this._materializedRect&&(e=this._requiredRect,t=this._materializedRect,e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right)||this.setState(this._updatePages(this.props,this.state))},Vf.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,o=e.renderedWindowsBehind,n=this._requiredWindowsAhead,r=this._requiredWindowsBehind,i=Math.min(t,n+1),e=Math.min(o,r+1);i===n&&e===r||(this._requiredWindowsAhead=i,this._requiredWindowsBehind=e,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(i<t||e<o)&&this._onAsyncIdle()},Vf.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},Vf.prototype._onAsyncResize=function(){this.forceUpdate()},Vf.prototype._updatePages=function(e,t){this._requiredRect||this._updateRenderRects(e,t);var o=this._buildPages(e,t),e=t.pages;return this._notifyPageChanges(e,o.pages,this.props),ht(ht(ht({},t),o),{pagesVersion:{}})},Vf.prototype._notifyPageChanges=function(e,t,o){var n=o.onPageAdded,o=o.onPageRemoved;if(n||o){for(var r={},i=0,s=e;i<s.length;i++)(a=s[i]).items&&(r[a.startIndex]=a);for(var a,l,c=0,u=t;c<u.length;c++)(a=u[c]).items&&(r[a.startIndex]?delete r[a.startIndex]:this._onPageAdded(a));for(l in r)r.hasOwnProperty(l)&&this._onPageRemoved(r[l])}},Vf.prototype._updatePageMeasurements=function(e){var t=!1;if(!this._shouldVirtualize())return t;for(var o=0;o<e.length;o++){var n=e[o];n.items&&(t=this._measurePage(n)||t)}return t},Vf.prototype._measurePage=function(e){var t=!1,o=this._pageRefs[e.key],n=this._cachedPageHeights[e.startIndex];return!o||!this._shouldVirtualize()||n&&n.measureVersion===this._measureVersion||((o={width:o.clientWidth,height:o.clientHeight}).height||o.width)&&(t=e.height!==o.height,e.height=o.height,this._cachedPageHeights[e.startIndex]={height:o.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+o.height)/(this._totalEstimates+1)),this._totalEstimates++),t},Vf.prototype._onPageAdded=function(e){var t=this.props.onPageAdded;t&&t(e)},Vf.prototype._onPageRemoved=function(e){var t=this.props.onPageRemoved;t&&t(e)},Vf.prototype._buildPages=function(e,l){e.renderCount;for(var c=e.items,u=e.startIndex,t=e.getPageHeight,o=this._getRenderCount(e),d=ht({},Hf),p=[],h=1,m=0,g=null,f=this._focusedIndex,v=u+o,b=this._shouldVirtualize(e),y=0===this._estimatedPageHeight&&!t,C=this._allowedRect,_=this,n=u;n<v&&"break"!==function(t){var e=_._getPageSpecification(t,C),o=e.height,n=e.data,r=e.key;h=e.itemCount;var i=m+o-1,s=-1<Oi(l.pages,function(e){return e.items&&e.startIndex===t}),a=!C||i>=C.top&&m<=C.bottom,e=!_._requiredRect||i>=_._requiredRect.top&&m<=_._requiredRect.bottom;if(!y&&(e||a&&s)||!b||t<=f&&f<t+h||t===u?(g&&(p.push(g),g=null),s=Math.min(h,v-t),(s=_._createPage(r,c.slice(t,t+s),t,void 0,void 0,n)).top=m,s.height=o,_._visibleRect&&_._visibleRect.bottom&&(s.isVisible=i>=_._visibleRect.top&&m<=_._visibleRect.bottom),p.push(s),e&&_._allowedRect&&(e={top:m,bottom:i,height:o,left:C.left,right:C.right,width:C.width},(o=d).top=(e.top<o.top||-1===o.top?e:o).top,o.left=(e.left<o.left||-1===o.left?e:o).left,o.bottom=(e.bottom>o.bottom||-1===o.bottom?e:o).bottom,o.right=(e.right>o.right||-1===o.right?e:o).right,o.width=o.right-o.left+1,o.height=o.bottom-o.top+1)):((g=g||_._createPage("spacer-"+t,void 0,t,0,void 0,n,!0)).height=(g.height||0)+(i-m)+1,g.itemCount+=h),m+=i-m+1,y&&b)return"break"}(n);n+=h);return g&&(g.key="spacer-end",p.push(g)),this._materializedRect=d,ht(ht({},l),{pages:p,measureVersion:this._measureVersion})},Vf.prototype._getPageSpecification=function(e,t){var o=this.props.getPageSpecification;if(o){var n=o(e,t),o=n.itemCount,r=void 0===o?this._getItemCountForPage(e,t):o,o=n.height;return{itemCount:r,height:void 0===o?this._getPageHeight(e,t,r):o,data:n.data,key:n.key}}return{itemCount:r=this._getItemCountForPage(e,t),height:this._getPageHeight(e,t,r)}},Vf.prototype._getPageHeight=function(e,t,o){if(this.props.getPageHeight)return this.props.getPageHeight(e,t,o);e=this._cachedPageHeights[e];return e?e.height:this._estimatedPageHeight||30},Vf.prototype._getItemCountForPage=function(e,t){return(this.props.getItemCountForPage?this.props.getItemCountForPage(e,t):10)||10},Vf.prototype._createPage=function(e,t,o,n,r,i,s){void 0===o&&(o=-1),void 0===n&&(n=t?t.length:0),void 0===r&&(r={});var a=this._pageCache[e=e||"page-"+o];return a&&a.page?a.page:{key:e,startIndex:o,itemCount:n,items:t,style:r,top:0,height:0,data:i,isSpacer:s||!1}},Vf.prototype._getRenderCount=function(e){var t=e||this.props,o=t.items,e=t.startIndex,t=t.renderCount;return void 0===t?o?o.length-e:0:t},Vf.prototype._updateRenderRects=function(e,t,o){var n,r=e.renderedWindowsAhead,i=e.renderedWindowsBehind,s=t.pages;this._shouldVirtualize(e)&&(n=this._surfaceRect||ht({},Hf),t=this._scrollElement&&this._scrollElement.scrollHeight,e=this._scrollElement?this._scrollElement.scrollTop:0,this._surface.current&&(o||!s||!this._surfaceRect||!t||t!==this._scrollHeight||Math.abs(this._scrollTop-e)>this._estimatedPageHeight/3)&&(n=this._surfaceRect=Of(this._surface.current),this._scrollTop=e),!o&&t&&t===this._scrollHeight||this._measureVersion++,this._scrollHeight=t||0,o=Math.max(0,-n.top),t=qe(this._root.current),t={top:o,left:n.left,bottom:o+t.innerHeight,right:n.right,width:n.width,height:t.innerHeight},this._requiredRect=Kf(t,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=Kf(t,i,r),this._visibleRect=t)},Vf.defaultProps={startIndex:0,onRenderCell:function(e,t,o){return gt.createElement(gt.Fragment,null,e&&e.name||"")},renderedWindowsAhead:2,renderedWindowsBehind:2},Vf);function Vf(e){var m=Af.call(this,e)||this;return m._root=gt.createRef(),m._surface=gt.createRef(),m._pageRefs={},m._getDerivedStateFromProps=function(e,t){return e.items!==m.props.items||e.renderCount!==m.props.renderCount||e.startIndex!==m.props.startIndex||e.version!==m.props.version?(m._resetRequiredWindows(),m._requiredRect=null,m._measureVersion++,m._invalidatePageCache(),m._updatePages(e,t)):t},m._onRenderRoot=function(e){var t=e.rootRef,o=e.surfaceElement,e=e.divProps;return gt.createElement("div",ht({ref:t},e),o)},m._onRenderSurface=function(e){var t=e.surfaceRef,o=e.pageElements,e=e.divProps;return gt.createElement("div",ht({ref:t},e),o)},m._onRenderPage=function(e,t){for(var o=m.props,n=o.onRenderCell,r=o.role,i=e.page,o=i.items,s=void 0===o?[]:o,a=i.startIndex,e=mt(e,["page"]),l=void 0===r?"listitem":"presentation",c=[],u=0;u<s.length;u++){var d=a+u,p=s[u],h=m.props.getKey?m.props.getKey(p,d):p&&p.key;null==h&&(h=d),c.push(gt.createElement("div",{role:l,className:"ms-List-cell",key:h,"data-list-index":d,"data-automationid":"ListCell"},n&&n(p,d,m.props.ignoreScrollingState?void 0:m.state.isScrolling)))}return gt.createElement("div",ht({},e),c)},vi(m),m.state={pages:[],isScrolling:!1,getDerivedStateFromProps:m._getDerivedStateFromProps},m._async=new xi(m),m._events=new va(m),m._estimatedPageHeight=0,m._totalEstimates=0,m._requiredWindowsAhead=0,m._requiredWindowsBehind=0,m._measureVersion=0,m._onAsyncScroll=m._async.debounce(m._onAsyncScroll,100,{leading:!1,maxWait:500}),m._onAsyncIdle=m._async.debounce(m._onAsyncIdle,200,{leading:!1}),m._onAsyncResize=m._async.debounce(m._onAsyncResize,16,{leading:!1}),m._onScrollingDone=m._async.debounce(m._onScrollingDone,500,{leading:!1}),m._cachedPageHeights={},m._estimatedPageHeight=0,m._focusedIndex=-1,m._pageCache={},m}function Kf(e,t,o){var n=e.top-t*e.height,o=e.height+(t+o)*e.height;return{top:n,bottom:n+o,height:o,left:e.left,right:e.right,width:e.width}}function Gf(e,t,o){for(var n=0,r=e;n<r.length;n++){var i=r[n];o[t.register(i,!0)]=i}}function Uf(e,t){for(var o=0,n=Object.keys(t);o<n.length;o++){var r=n[o];e.unregister(t[r],r,!0),delete t[r]}}function jf(e){var t,o,n,r,s=zc.getInstance(),i=e.className,a=e.overflowItems,l=e.keytipSequences,c=e.itemSubMenuProvider,u=e.onRenderOverflowButton,d=xl({}),p=gt.useCallback(function(e){return c?c(e):e.subMenuProps?e.subMenuProps.items:void 0},[c]),h=gt.useMemo(function(){var r=[],i=[];return l?null==a||a.forEach(function(e){var t,o,n=e.keytipProps;n?(o={content:n.content,keySequences:n.keySequences,disabled:n.disabled||!(!e.disabled&&!e.isDisabled),hasDynamicChildren:n.hasDynamicChildren,hasMenu:n.hasMenu},n.hasDynamicChildren||p(e)?(o.onExecute=s.menuExecute.bind(s,l,null===(t=null==e?void 0:e.keytipProps)||void 0===t?void 0:t.keySequences),o.hasOverflowSubMenu=!0):o.onExecute=n.onExecute,r.push(o),n=ht(ht({},e),{keytipProps:ht(ht({},n),{overflowSetSequence:l})}),null==i||i.push(n)):null==i||i.push(e)}):i=a,{modifiedOverflowItems:i,keytipsToRegister:r}},[a,p,s,l]),e=h.modifiedOverflowItems;return t=d,o=h.keytipsToRegister,n=s,r=Oc(t),gt.useEffect(function(){r&&(Uf(n,r),Gf(o,n,t))}),gt.useEffect(function(){return Gf(o,n,t),function(){Uf(n,t)}},[]),gt.createElement("div",{className:i},u(e))}var qf,Yf=(l(Qf,qf=gt.Component),Object.defineProperty(Qf.prototype,"selectedOptions",{get:function(){return this._comboBox.current?this._comboBox.current.selectedOptions:[]},enumerable:!1,configurable:!0}),Qf.prototype.dismissMenu=function(){if(this._comboBox.current)return this._comboBox.current.dismissMenu()},Qf.prototype.focus=function(e,t){return!!this._comboBox.current&&(this._comboBox.current.focus(e,t),!0)},Qf.prototype.render=function(){return gt.createElement(kf,ht({},this.props,{componentRef:this._comboBox,onRenderList:this._onRenderList,onScrollToItem:this._onScrollToItem}))},Qf),Zf=Fn(),Xf=gt.forwardRef(function(e,t){var o,n=gt.useRef(null),r=Sr(n,t);o=n,gt.useImperativeHandle(e.componentRef,function(){return{focus:function(){var e=!1;return e=o.current?is(o.current):e},focusElement:function(e){var t=!1;return!!e&&(o.current&&es(o.current,e)&&(e.focus(),t=document.activeElement===e),t)}}},[o]);var i=e.items,s=e.overflowItems,a=e.className,l=e.styles,c=e.vertical,t=e.role,n=e.overflowSide,n=void 0===n?"end":n,u=e.onRenderItem,d=Zf(l,{className:a,vertical:c}),s=!!s&&0<s.length;return gt.createElement("div",ht({},ur(e,cr),{role:t||"group","aria-orientation":"menubar"===t?!0===c?"vertical":"horizontal":void 0,className:d.root,ref:r}),"start"===n&&s&>.createElement(jf,ht({},e,{className:d.overflowButton})),i&&i.map(function(e,t){return gt.createElement("div",{className:d.item,key:e.key,role:"none"},u(e))}),"end"===n&&s&>.createElement(jf,ht({},e,{className:d.overflowButton})))});function Qf(e){var n=qf.call(this,e)||this;return n._comboBox=gt.createRef(),n._list=gt.createRef(),n._onRenderList=function(e){var t=e.id,o=e.onRenderItem;return gt.createElement(Wf,{componentRef:n._list,role:"listbox",id:t+"-list","aria-labelledby":t+"-label",items:e.options,onRenderCell:o?function(e){return o(e)}:function(){return null}})},n._onScrollToItem=function(e){n._list.current&&n._list.current.scrollToIndex(e)},vi(n),n}Xf.displayName="OverflowSet";var Jf,$f={flexShrink:0,display:"inherit"},ev=In(Xf,function(e){var t=e.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},e.vertical&&{flexDirection:"column"},t],item:["ms-OverflowSet-item",$f],overflowButton:["ms-OverflowSet-overflowButton",$f]}},void 0,{scope:"OverflowSet"}),tv=Ao(function(e){var t={height:"100%"},o={whiteSpace:"nowrap"},n=e||{},r=n.root,e=n.label,n=mt(n,["root","label"]);return ht(ht({},n),{root:r?[t,r]:t,label:e?[o,e]:o})}),ov=Fn(),nv=(l(cv,Jf=gt.Component),cv.prototype.render=function(){var e=this.props,t=e.items,o=e.overflowItems,n=e.farItems,r=e.styles,i=e.theme,s=e.dataDidRender,a=e.onReduceData,l=void 0===a?this._onReduceData:a,a=e.onGrowData,a=void 0===a?this._onGrowData:a,e=e.resizeGroupAs,e=void 0===e?fd:e,o={primaryItems:$e([],t),overflowItems:$e([],o),minimumOverflowItems:$e([],o).length,farItems:n,cacheKey:this._computeCacheKey({primaryItems:$e([],t),overflow:o&&0<o.length})};this._classNames=ov(r,{theme:i});i=ur(this.props,cr);return gt.createElement(e,ht({},i,{componentRef:this._resizeGroup,data:o,onReduceData:l,onGrowData:a,onRenderData:this._onRenderData,dataDidRender:s}))},cv.prototype.focus=function(){var e=this._overflowSet.current;e&&e.focus()},cv.prototype.remeasure=function(){this._resizeGroup.current&&this._resizeGroup.current.remeasure()},cv.prototype._onButtonClick=function(t){return function(e){t.inactive||t.onClick&&t.onClick(e,t)}},cv.prototype._computeCacheKey=function(e){var t=e.primaryItems,e=e.overflow;return[t&&t.reduce(function(e,t){var o=t.cacheKey;return e+(void 0===o?t.key:o)},""),e?"overflow":""].join("")},cv.defaultProps={items:[],overflowItems:[]},cv),rv=In(nv,function(e){var t=e.className,o=e.theme,e=o.semanticColors;return{root:[o.fonts.medium,"ms-CommandBar",{display:"flex",backgroundColor:e.bodyBackground,padding:"0 14px 0 24px",height:44},t],primarySet:["ms-CommandBar-primaryCommand",{flexGrow:"1",display:"flex",alignItems:"stretch"}],secondarySet:["ms-CommandBar-secondaryCommand",{flexShrink:"0",display:"flex",alignItems:"stretch"}]}},void 0,{scope:"CommandBar"}),iv=ht(ht({},yh),{prevMonthAriaLabel:"Go to previous month",nextMonthAriaLabel:"Go to next month",prevYearAriaLabel:"Go to previous year",nextYearAriaLabel:"Go to next year",closeButtonAriaLabel:"Close date picker",isRequiredErrorMessage:"Field is required",invalidInputErrorMessage:"Invalid date format",isResetStatusMessage:'Invalid entry "{0}", date reset to "{1}"'}),sv=Fn(),av={allowTextInput:!1,formatDate:function(e){return e?e.toDateString():""},parseDateFromString:function(e){e=Date.parse(e);return e?new Date(e):null},firstDayOfWeek:xp.Sunday,initialPickerDate:new Date,isRequired:!1,isMonthPickerVisible:!0,showMonthPickerAsOverlay:!1,strings:iv,highlightCurrentMonth:!1,highlightSelectedMonth:!1,borderless:!1,pickerAriaLabel:"Calendar",showWeekNumbers:!1,firstWeekOfYear:wp.FirstDay,showGoToToday:!0,showCloseButton:!1,underlined:!1,allFocusable:!1},lv=gt.forwardRef(function(e,t){var o,n,r,i,s,a,l,c,u,d,p,h,m,g,f,v,b,y,C,_,S,x,k,w,I,D,T,E=Hn(av,e),P=E.firstDayOfWeek,R=E.strings,M=E.label,N=E.theme,B=E.className,F=E.styles,A=E.initialPickerDate,L=E.isRequired,H=E.disabled,O=E.ariaLabel,z=E.pickerAriaLabel,W=E.placeholder,V=E.allowTextInput,K=E.borderless,G=E.minDate,U=E.maxDate,j=E.showCloseButton,q=E.calendarProps,Y=E.calloutProps,Z=E.textField,X=E.underlined,Q=E.allFocusable,J=E.calendarAs,$=void 0===J?Wh:J,ee=E.tabIndex,te=E.disableAutoFocus,oe=void 0===te||te,ne=su("DatePicker",E.id),re=su("DatePicker-Callout"),ie=gt.useRef(null),se=gt.useRef(null),ae=(D=gt.useRef(null),T=gt.useRef(!1),[D,function(){var e,t;null===(t=null===(e=D.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)},T,function(){T.current=!0}]),le=ae[0],ce=ae[1],ue=ae[2],de=ae[3],J=(_=ce,S=(e=E).allowTextInput,x=e.onAfterMenuDismiss,e=gt.useState(!1),k=e[0],e=e[1],w=gt.useRef(!1),I=kl(),gt.useEffect(function(){w.current&&!k&&(S&&I.requestAnimationFrame(_),null==x||x()),w.current=!0},[k]),[k,e]),pe=J[0],he=J[1],J=(f=(te=E).formatDate,v=te.value,b=te.onSelectDate,ae=Ah(v,void 0,function(e,t){return null==b?void 0:b(t)}),e=ae[0],y=ae[1],te=gt.useState(function(){return v&&f?f(v):""}),ae=te[0],C=te[1],gt.useEffect(function(){C(v&&f?f(v):"")},[f,v]),[e,ae,function(e){y(e),C(e&&f?f(e):"")},C]),te=J[0],me=J[1],ge=J[2],fe=J[3],e=(o=te,n=ge,r=me,e=pe,i=(ae=E).isRequired,s=ae.allowTextInput,a=ae.strings,l=ae.parseDateFromString,c=ae.onSelectDate,u=ae.formatDate,d=ae.minDate,p=ae.maxDate,J=gt.useState(),h=J[0],m=J[1],ae=gt.useState(),J=ae[0],g=ae[1],gt.useEffect(function(){i&&!o?m(a.isRequiredErrorMessage||" "):o&&uv(o,d,p)?m(a.isOutOfBoundsErrorMessage||" "):m(void 0)},[d&&Yp(d),p&&Yp(p),o&&Yp(o),i]),[e?void 0:h,function(e){var t;void 0===e&&(e=null),s?r||e?o&&!h&&u&&u(null!=e?e:o)===r||(!(e=e||l(r))||isNaN(e.getTime())?(n(o),t=u?u(o):"",t=a.isResetStatusMessage?$p(a.isResetStatusMessage,r,t):a.invalidInputErrorMessage||"",g(t)):uv(e,d,p)?m(a.isOutOfBoundsErrorMessage||" "):(n(e),m(void 0),g(void 0))):(m(i?a.isRequiredErrorMessage||" ":void 0),null==c||c(e)):i&&!r?m(a.isRequiredErrorMessage||" "):(m(void 0),g(void 0))},m,e?void 0:J,g]),J=e[0],ve=e[1],be=e[2],ye=e[3],Ce=e[4],_e=gt.useCallback(function(){pe||(de(),he(!0))},[pe,de,he]);gt.useImperativeHandle(E.componentRef,function(){return{focus:ce,reset:function(){he(!1),ge(void 0),be(void 0),Ce(void 0)},showDatePickerPopup:_e}},[ce,be,he,ge,Ce,_e]);function Se(e){pe&&(he(!1),ve(e),!V&&e&&ge(e))}function xe(e){de(),Se(e)}var ke=sv(F,{theme:N,className:B,disabled:H,underlined:X,label:!!M,isDatePickerShown:pe}),F=ur(E,cr,["value"]),N=Z&&Z.iconProps,B=Z&&Z.id&&Z.id!==ne?Z.id:ne+"-label",ne=!V&&!H;return gt.createElement("div",ht({},F,{className:ke.root,ref:t}),gt.createElement("div",{ref:se,"aria-owns":pe?re:void 0,className:ke.wrapper},gt.createElement(qg,ht({role:"combobox",label:M,"aria-expanded":pe,ariaLabel:O,"aria-haspopup":"dialog","aria-controls":pe?re:void 0,required:L,disabled:H,errorMessage:J,placeholder:W,borderless:K,value:me,componentRef:le,underlined:X,tabIndex:ee,readOnly:!V},Z,{id:B,className:Pr(ke.textField,Z&&Z.className),iconProps:ht(ht({iconName:"Calendar"},N),{className:Pr(ke.icon,N&&N.className),onClick:function(e){e.stopPropagation(),pe||E.disabled?E.allowTextInput&&Se():_e()}}),onRenderDescription:function(e,t){return gt.createElement(gt.Fragment,null,e.description?t(e):null,gt.createElement("div",{"aria-live":"assertive",className:ke.statusMessage},ye))},onKeyDown:function(e){switch(e.which){case Tn.enter:e.preventDefault(),e.stopPropagation(),pe?E.allowTextInput&&Se():(ve(),_e());break;case Tn.escape:e.stopPropagation(),xe();break;case Tn.down:e.altKey&&!pe&&_e()}},onFocus:function(){oe||V||(ue.current||_e(),ue.current=!1)},onBlur:function(e){ve()},onClick:function(e){!E.openOnClick&&E.disableAutoFocus||pe||E.disabled?E.allowTextInput&&Se():_e()},onChange:function(e,t){var o,n=E.textField;V&&(pe&&Se(),fe(t)),null===(o=null==n?void 0:n.onChange)||void 0===o||o.call(n,e,t)},onRenderInput:ne?function(e){e=ur(e,cr);return gt.createElement("div",ht({},e,{className:Pr(e.className,ke.readOnlyTextField),tabIndex:ee||0}),me||gt.createElement("span",{className:ke.readOnlyPlaceholder},W))}:void 0}))),pe&>.createElement(lc,ht({id:re,role:"dialog",ariaLabel:z,isBeakVisible:!1,gapSpace:0,doNotLayer:!1,target:se.current,directionalHint:Pa.bottomLeftEdge},Y,{className:Pr(ke.callout,Y&&Y.className),onDismiss:function(e){xe()},onPositioned:function(){var e=!0;E.calloutProps&&void 0!==E.calloutProps.setInitialFocus&&(e=E.calloutProps.setInitialFocus),ie.current&&e&&ie.current.focus()}}),gt.createElement(Vh,{isClickableOutsideFocusTrap:!0,disableFirstFocus:oe},gt.createElement($,ht({},q,{onSelectDate:function(e){E.calendarProps&&E.calendarProps.onSelectDate&&E.calendarProps.onSelectDate(e),xe(e)},onDismiss:xe,isMonthPickerVisible:E.isMonthPickerVisible,showMonthPickerAsOverlay:E.showMonthPickerAsOverlay,today:E.today,value:te||A,firstDayOfWeek:P,strings:R,highlightCurrentMonth:E.highlightCurrentMonth,highlightSelectedMonth:E.highlightSelectedMonth,showWeekNumbers:E.showWeekNumbers,firstWeekOfYear:E.firstWeekOfYear,showGoToToday:E.showGoToToday,dateTimeFormatter:E.dateTimeFormatter,minDate:G,maxDate:U,componentRef:ie,showCloseButton:j,allFocusable:Q})))))});function cv(e){var l=Jf.call(this,e)||this;return l._overflowSet=gt.createRef(),l._resizeGroup=gt.createRef(),l._onRenderData=function(e){var t=l.props,o=t.ariaLabel,n=t.primaryGroupAriaLabel,r=t.farItemsGroupAriaLabel,t=e.farItems&&0<e.farItems.length;return gt.createElement(Zs,{className:Pr(l._classNames.root),direction:Ei.horizontal,role:"menubar","aria-label":o},gt.createElement(ev,{role:t?"group":"none","aria-label":t?n:void 0,componentRef:l._overflowSet,className:Pr(l._classNames.primarySet),items:e.primaryItems,overflowItems:e.overflowItems.length?e.overflowItems:void 0,onRenderItem:l._onRenderItem,onRenderOverflowButton:l._onRenderOverflowButton}),t&>.createElement(ev,{role:"group","aria-label":r,className:Pr(l._classNames.secondarySet),items:e.farItems,onRenderItem:l._onRenderItem,onRenderOverflowButton:wa}))},l._onRenderItem=function(e){if(e.onRender)return e.onRender(e,function(){});var t=e.text||e.name,o=ht(ht({allowDisabledFocus:!0,role:"menuitem"},e),{styles:tv(e.buttonStyles),className:Pr("ms-CommandBarItem-link",e.className),text:e.iconOnly?void 0:t,menuProps:e.subMenuProps,onClick:l._onButtonClick(e)});return e.iconOnly&&(void 0!==t||e.tooltipHostProps)?gt.createElement(Md,ht({role:"none",content:t,setAriaDescribedBy:!1},e.tooltipHostProps),l._commandButton(e,o)):l._commandButton(e,o)},l._commandButton=function(e,t){var o=l.props.buttonAs,n=e.commandBarButtonAs,e=up;return n&&(e=qu(n,e)),o&&(e=qu(o,e)),gt.createElement(e,ht({},t))},l._onRenderOverflowButton=function(e){var t=l.props.overflowButtonProps,t=void 0===t?{}:t,e=$e($e([],t.menuProps?t.menuProps.items:[]),e),e=ht(ht({role:"menuitem"},t),{styles:ht({menuIcon:{fontSize:"17px"}},t.styles),className:Pr("ms-CommandBar-overflowButton",t.className),menuProps:ht(ht({},t.menuProps),{items:e}),menuIconProps:ht({iconName:"More"},t.menuIconProps)}),t=l.props.overflowButtonAs?qu(l.props.overflowButtonAs,up):up;return gt.createElement(t,ht({},e))},l._onReduceData=function(e){var t=l.props,o=t.shiftOnReduce,n=t.onDataReduced,r=e.primaryItems,i=e.overflowItems,t=(e.cacheKey,r[o?0:r.length-1]);if(void 0!==t){t.renderedInOverflow=!0;var i=$e([t],i),r=o?r.slice(1):r.slice(0,-1),e=ht(ht({},e),{primaryItems:r,overflowItems:i}),s=l._computeCacheKey({primaryItems:r,overflow:0<i.length});return n&&n(t),e.cacheKey=s,e}},l._onGrowData=function(e){var t=l.props,o=t.shiftOnReduce,n=t.onDataGrown,r=e.minimumOverflowItems,i=e.primaryItems,s=e.overflowItems,t=(e.cacheKey,s[0]);if(void 0!==t&&s.length>r){t.renderedInOverflow=!1;var s=s.slice(1),i=o?$e([t],i):$e($e([],i),[t]),e=ht(ht({},e),{primaryItems:i,overflowItems:s}),a=l._computeCacheKey({primaryItems:i,overflow:0<s.length});return n&&n(t),e.cacheKey=a,e}},vi(l),l}function uv(e,t,o){return t&&0<zp(t,e)||o&&zp(o,e)<0}lv.displayName="DatePickerBase";var dv,pv,hv={root:"ms-DatePicker",callout:"ms-DatePicker-callout",withLabel:"ms-DatePicker-event--with-label",withoutLabel:"ms-DatePicker-event--without-label",disabled:"msDatePickerDisabled "},mv=In(lv,function(e){var t=e.className,o=e.theme,n=e.disabled,r=e.underlined,i=e.label,s=e.isDatePickerShown,a=o.palette,l=o.semanticColors,c=o.fonts,e=zo(hv,o),a={color:a.neutralSecondary,fontSize:Be.icon,lineHeight:"18px",pointerEvents:"none",position:"absolute",right:"4px",padding:"5px"};return{root:[e.root,o.fonts.large,s&&"is-open",Uo,t],textField:[{position:"relative",selectors:{"& input[readonly]":{cursor:"pointer"},input:{selectors:{"::-ms-clear":{display:"none"}}}}},n&&{selectors:{"& input[readonly]":{cursor:"default"}}}],callout:[e.callout],icon:[a,i?e.withLabel:e.withoutLabel,{paddingTop:"7px"},!n&&[e.disabled,{pointerEvents:"initial",cursor:"pointer"}],n&&{color:l.disabledText,cursor:"default"}],statusMessage:[c.small,{color:l.errorText,marginTop:5}],readOnlyTextField:[{cursor:"pointer",height:32,lineHeight:30,overflow:"hidden",textOverflow:"ellipsis"},r&&{lineHeight:34}],readOnlyPlaceholder:((l={color:l.inputPlaceholderText})[Yt]={color:"GrayText"},l)}},void 0,{scope:"DatePicker"}),gv="change";(U=dv=dv||{})[U.none=0]="none",U[U.single=1]="single",U[U.multiple=2]="multiple",(G=pv=pv||{})[G.horizontal=0]="horizontal",G[G.vertical=1]="vertical";var fv=(vv.prototype.canSelectItem=function(e,t){return!("number"==typeof t&&t<0)&&this._canSelectItem(e,t)},vv.prototype.getKey=function(e,t){t=this._getKey(e,t);return"number"==typeof t||t?""+t:""},vv.prototype.setChangeEvents=function(e,t){this._changeEventSuppressionCount+=e?-1:1,0===this._changeEventSuppressionCount&&this._hasChanged&&(this._hasChanged=!1,t||this._change())},vv.prototype.isModal=function(){return this._isModal},vv.prototype.setModal=function(e){this._isModal!==e&&(this.setChangeEvents(!1),(this._isModal=e)||this.setAllSelected(!1),this._change(),this.setChangeEvents(!0))},vv.prototype.setItems=function(e,t){void 0===t&&(t=!0);var o={},n={},r=!1;this.setChangeEvents(!1);for(var i,s=this._unselectableCount=0;s<e.length;s++)!(l=e[s])||(i=this.getKey(l,s))&&(o[i]=s),n[s]=l&&!this.canSelectItem(l),n[s]&&this._unselectableCount++;!t&&0!==e.length||this._setAllSelected(!1,!0);var a,l,c,u,d={},p=0;for(a in this._exemptedIndices)this._exemptedIndices.hasOwnProperty(a)&&(c=Number(a),r=void 0===(u=(u=(l=this._items[c])?this.getKey(l,Number(c)):void 0)?o[u]:c)||(d[u]=!0,p++,r||u!==c));this._items&&0===this._exemptedCount&&e.length!==this._items.length&&this._isAllSelected&&(r=!0),this._exemptedIndices=d,this._exemptedCount=p,this._keyToIndexMap=o,this._unselectableIndices=n,this._items=e,this._selectedItems=null,r&&(this._updateCount(),this._change()),this.setChangeEvents(!0)},vv.prototype.getItems=function(){return this._items},vv.prototype.getSelection=function(){if(!this._selectedItems){this._selectedItems=[];var e=this._items;if(e)for(var t=0;t<e.length;t++)this.isIndexSelected(t)&&this._selectedItems.push(e[t])}return this._selectedItems},vv.prototype.getSelectedCount=function(){return this._isAllSelected?this._items.length-this._exemptedCount-this._unselectableCount:this._exemptedCount},vv.prototype.getSelectedIndices=function(){if(!this._selectedIndices){this._selectedIndices=[];var e=this._items;if(e)for(var t=0;t<e.length;t++)this.isIndexSelected(t)&&this._selectedIndices.push(t)}return this._selectedIndices},vv.prototype.isRangeSelected=function(e,t){if(0===t)return!1;for(var o=e+t,n=e;n<o;n++)if(!this.isIndexSelected(n))return!1;return!0},vv.prototype.isAllSelected=function(){var e=this._items.length-this._unselectableCount;return this.mode===dv.single&&(e=Math.min(e,1)),0<this.count&&this._isAllSelected&&0===this._exemptedCount||!this._isAllSelected&&this._exemptedCount===e&&0<e},vv.prototype.isKeySelected=function(e){e=this._keyToIndexMap[e];return this.isIndexSelected(e)},vv.prototype.isIndexSelected=function(e){return!!(0<this.count&&this._isAllSelected&&!this._exemptedIndices[e]&&!this._unselectableIndices[e]||!this._isAllSelected&&this._exemptedIndices[e])},vv.prototype.setAllSelected=function(e){var t;e&&this.mode!==dv.multiple||(t=this._items?this._items.length-this._unselectableCount:0,this.setChangeEvents(!1),0<t&&(0<this._exemptedCount||e!==this._isAllSelected)&&(this._exemptedIndices={},(e!==this._isAllSelected||0<this._exemptedCount)&&(this._exemptedCount=0,this._isAllSelected=e,this._change()),this._updateCount()),this.setChangeEvents(!0))},vv.prototype.setKeySelected=function(e,t,o){e=this._keyToIndexMap[e];0<=e&&this.setIndexSelected(e,t,o)},vv.prototype.setIndexSelected=function(e,t,o){var n;this.mode===dv.none||(e=Math.min(Math.max(0,e),this._items.length-1))<0||e>=this._items.length||(this.setChangeEvents(!1),n=this._exemptedIndices[e],this._unselectableIndices[e]||(t&&this.mode===dv.single&&this._setAllSelected(!1,!0),n&&(t&&this._isAllSelected||!t&&!this._isAllSelected)&&(delete this._exemptedIndices[e],this._exemptedCount--),!n&&(t&&!this._isAllSelected||!t&&this._isAllSelected)&&(this._exemptedIndices[e]=!0,this._exemptedCount++),o&&(this._anchoredIndex=e)),this._updateCount(),this.setChangeEvents(!0))},vv.prototype.selectToKey=function(e,t){this.selectToIndex(this._keyToIndexMap[e],t)},vv.prototype.selectToIndex=function(e,t){if(this.mode!==dv.none)if(this.mode!==dv.single){var o=this._anchoredIndex||0,n=Math.min(e,o),r=Math.max(e,o);for(this.setChangeEvents(!1),t&&this._setAllSelected(!1,!0);n<=r;n++)this.setIndexSelected(n,!0,!1);this.setChangeEvents(!0)}else this.setIndexSelected(e,!0,!0)},vv.prototype.toggleAllSelected=function(){this.setAllSelected(!this.isAllSelected())},vv.prototype.toggleKeySelected=function(e){this.setKeySelected(e,!this.isKeySelected(e),!0)},vv.prototype.toggleIndexSelected=function(e){this.setIndexSelected(e,!this.isIndexSelected(e),!0)},vv.prototype.toggleRangeSelected=function(e,t){if(this.mode!==dv.none){var o=this.isRangeSelected(e,t),n=e+t;if(!(this.mode===dv.single&&1<t)){this.setChangeEvents(!1);for(var r=e;r<n;r++)this.setIndexSelected(r,!o,!1);this.setChangeEvents(!0)}}},vv.prototype._updateCount=function(e){void 0===e&&(e=!1);var t=this.getSelectedCount();t!==this.count&&(this.count=t,this._change()),this.count||e||this.setModal(!1)},vv.prototype._setAllSelected=function(e,t){var o;void 0===t&&(t=!1),e&&this.mode!==dv.multiple||(o=this._items?this._items.length-this._unselectableCount:0,this.setChangeEvents(!1),0<o&&(0<this._exemptedCount||e!==this._isAllSelected)&&(this._exemptedIndices={},(e!==this._isAllSelected||0<this._exemptedCount)&&(this._exemptedCount=0,this._isAllSelected=e,this._change()),this._updateCount(t)),this.setChangeEvents(!0))},vv.prototype._change=function(){0===this._changeEventSuppressionCount?(this._selectedItems=null,this._selectedIndices=void 0,va.raise(this,gv),this._onSelectionChanged&&this._onSelectionChanged()):this._hasChanged=!0},vv);function vv(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=e[0]||{},n=o.onSelectionChanged,r=o.getKey,i=o.canSelectItem,s=void 0===i?function(){return!0}:i,i=o.items,o=o.selectionMode,o=void 0===o?dv.multiple:o;this.mode=o,this._getKey=r||bv,this._changeEventSuppressionCount=0,this._exemptedCount=0,this._anchoredIndex=0,this._unselectableCount=0,this._onSelectionChanged=n,this._canSelectItem=s,this._isModal=!1,this.setItems(i||[],!0),this.count=this.getSelectedCount()}function bv(e,t){e=(e||{}).key;return void 0===e?""+t:e}var yv,Cv,_v,Sv,xv,kv,wv,Iv="data-selection-index",Dv="data-selection-toggle",Tv="data-selection-invoke",Ev="data-selection-all-toggle",Pv=(l(Rv,wv=gt.Component),Rv.getDerivedStateFromProps=function(e,t){e=e.selection.isModal&&e.selection.isModal();return ht(ht({},t),{isModal:e})},Rv.prototype.componentDidMount=function(){var e=qe(this._root.current);this._events.on(e,"keydown, keyup",this._updateModifiers,!0),this._events.on(document,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(document.body,"touchstart",this._onTouchStartCapture,!0),this._events.on(document.body,"touchend",this._onTouchStartCapture,!0),this._events.on(this.props.selection,"change",this._onSelectionChange)},Rv.prototype.render=function(){var e=this.state.isModal;return gt.createElement("div",{className:Pr("ms-SelectionZone",this.props.className,{"ms-SelectionZone--modal":!!e}),ref:this._root,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onKeyDownCapture:this._onKeyDownCapture,onClick:this._onClick,role:"presentation",onDoubleClick:this._onDoubleClick,onContextMenu:this._onContextMenu,onMouseDownCapture:this._onMouseDownCapture,onFocusCapture:this._onFocus,"data-selection-is-modal":!!e||void 0},this.props.children,gt.createElement(na,null))},Rv.prototype.componentDidUpdate=function(e){var t=this.props.selection;t!==e.selection&&(this._events.off(e.selection),this._events.on(t,"change",this._onSelectionChange))},Rv.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose()},Rv.prototype._isSelectionDisabled=function(e){if(this._getSelectionMode()===dv.none)return!0;for(;e!==this._root.current;){if(this._hasAttribute(e,"data-selection-disabled"))return!0;e=Qi(e)}return!1},Rv.prototype._onToggleAllClick=function(e){var t=this.props.selection;this._getSelectionMode()===dv.multiple&&(t.toggleAllSelected(),e.stopPropagation(),e.preventDefault())},Rv.prototype._onToggleClick=function(e,t){var o=this.props.selection,n=this._getSelectionMode();if(o.setChangeEvents(!1),this.props.enterModalOnTouch&&this._isTouch&&!o.isIndexSelected(t)&&o.setModal&&(o.setModal(!0),this._setIsTouch(!1)),n===dv.multiple)o.toggleIndexSelected(t);else{if(n!==dv.single)return void o.setChangeEvents(!0);var r=o.isIndexSelected(t),n=o.isModal&&o.isModal();o.setAllSelected(!1),o.setIndexSelected(t,!r,!0),n&&o.setModal&&o.setModal(!0)}o.setChangeEvents(!0),e.stopPropagation()},Rv.prototype._onInvokeClick=function(e,t){var o=this.props,n=o.selection,o=o.onItemInvoked;o&&(o(n.getItems()[t],t,e.nativeEvent),e.preventDefault(),e.stopPropagation())},Rv.prototype._onItemSurfaceClick=function(e,t){var o=this.props.selection,n=this._isCtrlPressed||this._isMetaPressed,r=this._getSelectionMode();r===dv.multiple?this._isShiftPressed&&!this._isTabPressed?o.selectToIndex(t,!n):n?o.toggleIndexSelected(t):this._clearAndSelectIndex(t):r===dv.single&&this._clearAndSelectIndex(t)},Rv.prototype._onInvokeMouseDown=function(e,t){this.props.selection.isIndexSelected(t)||this._clearAndSelectIndex(t)},Rv.prototype._findScrollParentAndTryClearOnEmptyClick=function(e){var t=Ns(this._root.current);this._events.off(document,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(t,"click",this._tryClearOnEmptyClick),(t&&e.target instanceof Node&&t.contains(e.target)||t===e.target)&&this._tryClearOnEmptyClick(e)},Rv.prototype._tryClearOnEmptyClick=function(e){!this.props.selectionPreservedOnEmptyClick&&this._isNonHandledClick(e.target)&&this.props.selection.setAllSelected(!1)},Rv.prototype._clearAndSelectIndex=function(e){var t=this.props,o=t.selection,t=t.selectionClearedOnSurfaceClick,t=void 0===t||t;1===o.getSelectedCount()&&o.isIndexSelected(e)||!t||(t=o.isModal&&o.isModal(),o.setChangeEvents(!1),o.setAllSelected(!1),o.setIndexSelected(e,!0,!0),(t||this.props.enterModalOnTouch&&this._isTouch)&&(o.setModal&&o.setModal(!0),this._isTouch&&this._setIsTouch(!1)),o.setChangeEvents(!0))},Rv.prototype._updateModifiers=function(e){this._isShiftPressed=e.shiftKey,this._isCtrlPressed=e.ctrlKey,this._isMetaPressed=e.metaKey;e=e.keyCode;this._isTabPressed=!!e&&e===Tn.tab},Rv.prototype._findItemRoot=function(e){for(var t=this.props.selection;e!==this._root.current;){var o=e.getAttribute(Iv),n=Number(o);if(null!==o&&0<=n&&n<t.getItems().length)break;e=Qi(e)}if(e!==this._root.current)return e},Rv.prototype._getItemIndex=function(e){return Number(e.getAttribute(Iv))},Rv.prototype._shouldAutoSelect=function(e){return this._hasAttribute(e,"data-selection-select")},Rv.prototype._hasAttribute=function(e,t){for(var o=!1;!o&&e!==this._root.current;)o="true"===e.getAttribute(t),e=Qi(e);return o},Rv.prototype._isInputElement=function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName},Rv.prototype._isNonHandledClick=function(e){var t=ft();if(t&&e)for(;e&&e!==t.documentElement;){if(us(e))return!1;e=Qi(e)}return!0},Rv.prototype._handleNextFocus=function(e){var t=this;this._shouldHandleFocusTimeoutId&&(this._async.clearTimeout(this._shouldHandleFocusTimeoutId),this._shouldHandleFocusTimeoutId=void 0),(this._shouldHandleFocus=e)&&this._async.setTimeout(function(){t._shouldHandleFocus=!1},100)},Rv.prototype._setIsTouch=function(e){var t=this;this._isTouchTimeoutId&&(this._async.clearTimeout(this._isTouchTimeoutId),this._isTouchTimeoutId=void 0),this._isTouch=!0,e&&this._async.setTimeout(function(){t._isTouch=!1},300)},Rv.prototype._getSelectionMode=function(){var e=this.props.selection,t=this.props.selectionMode;return void 0===t?e?e.mode:dv.none:t},Rv.defaultProps={isSelectedOnFocus:!0,selectionMode:dv.multiple},Rv);function Rv(e){var c=wv.call(this,e)||this;c._root=gt.createRef(),c.ignoreNextFocus=function(){c._handleNextFocus(!1)},c._onSelectionChange=function(){var e=c.props.selection,e=e.isModal&&e.isModal();c.setState({isModal:e})},c._onMouseDownCapture=function(e){var t=e.target;if(document.activeElement===t||es(document.activeElement,t)){if(es(t,c._root.current))for(;t!==c._root.current;){if(c._hasAttribute(t,Tv)){c.ignoreNextFocus();break}t=Qi(t)}}else c.ignoreNextFocus()},c._onFocus=function(e){var t=e.target,o=c.props.selection,n=c._isCtrlPressed||c._isMetaPressed,r=c._getSelectionMode();c._shouldHandleFocus&&r!==dv.none&&(r=c._hasAttribute(t,Dv),t=c._findItemRoot(t),!r&&t&&(t=c._getItemIndex(t),n?(o.setIndexSelected(t,o.isIndexSelected(t),!0),c.props.enterModalOnTouch&&c._isTouch&&o.setModal&&(o.setModal(!0),c._setIsTouch(!1))):c.props.isSelectedOnFocus&&c._onItemSurfaceClick(e,t))),c._handleNextFocus(!1)},c._onMouseDown=function(e){c._updateModifiers(e);var t=e.target,o=c._findItemRoot(t);if(!c._isSelectionDisabled(t))for(;t!==c._root.current&&!c._hasAttribute(t,Ev);){if(o){if(c._hasAttribute(t,Dv))break;if(c._hasAttribute(t,Tv))break;if(!(t!==o&&!c._shouldAutoSelect(t)||c._isShiftPressed||c._isCtrlPressed||c._isMetaPressed)){c._onInvokeMouseDown(e,c._getItemIndex(o));break}if(c.props.disableAutoSelectOnInputElements&&("A"===t.tagName||"BUTTON"===t.tagName||"INPUT"===t.tagName))return}t=Qi(t)}},c._onTouchStartCapture=function(e){c._setIsTouch(!0)},c._onClick=function(e){var t=c.props.enableTouchInvocationTarget,o=void 0!==t&&t;c._updateModifiers(e);for(var n=e.target,r=c._findItemRoot(n),i=c._isSelectionDisabled(n);n!==c._root.current;){if(c._hasAttribute(n,Ev)){i||c._onToggleAllClick(e);break}if(r){var s=c._getItemIndex(r);if(c._hasAttribute(n,Dv)){i||(c._isShiftPressed?c._onItemSurfaceClick(e,s):c._onToggleClick(e,s));break}if(c._isTouch&&o&&c._hasAttribute(n,"data-selection-touch-invoke")||c._hasAttribute(n,Tv)){c._onInvokeClick(e,s);break}if(n===r){i||c._onItemSurfaceClick(e,s);break}if("A"===n.tagName||"BUTTON"===n.tagName||"INPUT"===n.tagName)return}n=Qi(n)}},c._onContextMenu=function(e){var t=e.target,o=c.props,n=o.onItemContextMenu,o=o.selection;!n||(t=c._findItemRoot(t))&&(t=c._getItemIndex(t),c._onInvokeMouseDown(e,t),n(o.getItems()[t],t,e.nativeEvent)||e.preventDefault())},c._onDoubleClick=function(e){var t=e.target,o=c.props.onItemInvoked,n=c._findItemRoot(t);if(n&&o&&!c._isInputElement(t)){for(var r=c._getItemIndex(n);t!==c._root.current&&!c._hasAttribute(t,Dv)&&!c._hasAttribute(t,Tv);){if(t===n){c._onInvokeClick(e,r);break}t=Qi(t)}Qi(t)}},c._onKeyDownCapture=function(e){c._updateModifiers(e),c._handleNextFocus(!0)},c._onKeyDown=function(e){c._updateModifiers(e);var t=e.target,o=c._isSelectionDisabled(t),n=c.props.selection,r=e.which===Tn.a&&(c._isCtrlPressed||c._isMetaPressed),i=e.which===Tn.escape;if(!c._isInputElement(t)){var s=c._getSelectionMode();if(r&&s===dv.multiple&&!n.isAllSelected())return o||n.setAllSelected(!0),e.stopPropagation(),void e.preventDefault();if(i&&0<n.getSelectedCount())return o||n.setAllSelected(!1),e.stopPropagation(),void e.preventDefault();var a=c._findItemRoot(t);if(a)for(var l=c._getItemIndex(a);t!==c._root.current&&!c._hasAttribute(t,Dv);){if(c._shouldAutoSelect(t)){o||c._onInvokeMouseDown(e,l);break}if(!(e.which!==Tn.enter&&e.which!==Tn.space||"BUTTON"!==t.tagName&&"A"!==t.tagName&&"INPUT"!==t.tagName))return!1;if(t===a){if(e.which===Tn.enter)return c._onInvokeClick(e,l),void e.preventDefault();if(e.which===Tn.space)return o||c._onToggleClick(e,l),void e.preventDefault();break}t=Qi(t)}}},c._events=new va(c),c._async=new xi(c),vi(c);e=c.props.selection,e=e.isModal&&e.isModal();return c.state={isModal:e},c}(W=yv=yv||{})[W.hidden=0]="hidden",W[W.visible=1]="visible",(ke=Cv=Cv||{})[ke.disabled=0]="disabled",ke[ke.clickable=1]="clickable",ke[ke.hasDropdown=2]="hasDropdown",(K=_v=_v||{})[K.unconstrained=0]="unconstrained",K[K.horizontalConstrained=1]="horizontalConstrained",(U=Sv=Sv||{})[U.outside=0]="outside",U[U.surface=1]="surface",U[U.header=2]="header",(G=xv=xv||{})[G.fixedColumns=0]="fixedColumns",G[G.justified=1]="justified",(W=kv=kv||{})[W.onHover=0]="onHover",W[W.always=1]="always",W[W.hidden=2]="hidden";var Mv=function(e){var t=e.count,o=e.indentWidth,e=e.role;return 0<t?gt.createElement("span",{className:"ms-GroupSpacer",style:{display:"inline-block",width:t*(void 0===o?36:o)},role:void 0===e?"presentation":e}):null},Nv={label:Vn,audio:Kn,video:Gn,ol:Un,li:jn,a:qn,button:Yn,input:Zn,textarea:Xn,select:Qn,option:Jn,table:$n,tr:er,th:tr,td:or,colGroup:nr,col:rr,form:ir,iframe:sr,img:ar};function Bv(e,t,o){return ur(t,e&&Nv[e]||Wn,o)}function Fv(e){var t=e.theme,e=void 0===(o=e.cellStyleProps)?Lv:o,o=t.semanticColors;return[zo(Wv,t).cell,bo(t),{color:o.bodyText,position:"relative",display:"inline-block",boxSizing:"border-box",padding:"0 "+e.cellRightPadding+"px 0 "+e.cellLeftPadding+"px",lineHeight:"inherit",margin:"0",height:42,verticalAlign:"top",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"left"}]}var Av={root:"ms-DetailsRow",compact:"ms-DetailsList--Compact",cell:"ms-DetailsRow-cell",cellAnimation:"ms-DetailsRow-cellAnimation",cellCheck:"ms-DetailsRow-cellCheck",check:"ms-DetailsRow-check",cellMeasurer:"ms-DetailsRow-cellMeasurer",listCellFirstChild:"ms-List-cell:first-child",isContentUnselectable:"is-contentUnselectable",isSelected:"is-selected",isCheckVisible:"is-check-visible",isRowHeader:"is-row-header",fields:"ms-DetailsRow-fields"},Lv={cellLeftPadding:12,cellRightPadding:8,cellExtraRightPadding:24},Hv={rowHeight:42,compactRowHeight:32},Ov=ht(ht({},Hv),{rowVerticalPadding:11,compactRowVerticalPadding:6}),zv=function(e){var t=e.theme,o=e.isSelected,n=e.canSelect,r=e.droppingClassName,i=e.anySelected,s=e.isCheckVisible,a=e.checkboxCellClassName,l=e.compact,c=e.className,u=e.cellStyleProps,d=void 0===u?Lv:u,p=e.enableUpdateAnimations,h=e.disabled,m=t.palette,g=t.fonts,f=m.neutralPrimary,v=m.white,b=m.neutralSecondary,y=m.neutralLighter,C=m.neutralLight,_=m.neutralDark,S=m.neutralQuaternaryAlt,x=t.semanticColors,k=x.focusBorder,u=x.linkHovered,e=zo(Av,t),m={defaultHeaderText:f,defaultMetaText:b,defaultBackground:v,defaultHoverHeaderText:_,defaultHoverMetaText:f,defaultHoverBackground:y,selectedHeaderText:_,selectedMetaText:f,selectedBackground:C,selectedHoverHeaderText:_,selectedHoverMetaText:f,selectedHoverBackground:S,focusHeaderText:_,focusMetaText:f,focusBackground:C,focusHoverBackground:S},f=[bo(t,{inset:-1,borderColor:k,outlineColor:v,highContrastStyle:{top:2,right:2,bottom:2,left:2}}),e.isSelected,{color:m.selectedMetaText,background:m.selectedBackground,borderBottom:"1px solid "+v,selectors:((x={"&:before":{position:"absolute",display:"block",top:-1,height:1,bottom:0,left:0,right:0,content:"",borderTop:"1px solid "+v}})["."+e.cell+" > ."+ca.root]={color:u,selectors:((_={})[Yt]={color:"HighlightText"},_)},x["&:hover"]={background:m.selectedHoverBackground,color:m.selectedHoverMetaText,selectors:((f={})[Yt]={background:"Highlight",selectors:((C={})["."+e.cell]={color:"HighlightText"},C["."+e.cell+" > ."+ca.root]={forcedColorAdjust:"none",color:"HighlightText"},C)},f["."+e.isRowHeader]={color:m.selectedHoverHeaderText,selectors:((S={})[Yt]={color:"HighlightText"},S)},f)},x["&:focus"]={background:m.focusBackground,selectors:((_={})["."+e.cell]={color:m.focusMetaText,selectors:((C={})[Yt]={color:"HighlightText",selectors:{"> a":{color:"HighlightText"}}},C)},_["."+e.isRowHeader]={color:m.focusHeaderText,selectors:((S={})[Yt]={color:"HighlightText"},S)},_[Yt]={background:"Highlight"},_)},x[Yt]=ht(ht({background:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{selectors:{a:{color:"HighlightText"}}}),x["&:focus:hover"]={background:m.focusHoverBackground},x)}],C=[e.isContentUnselectable,{userSelect:"none",cursor:"default"}],S={minHeight:Ov.compactRowHeight,border:0},_={minHeight:Ov.compactRowHeight,paddingTop:Ov.compactRowVerticalPadding,paddingBottom:Ov.compactRowVerticalPadding,paddingLeft:d.cellLeftPadding+"px"},h=[bo(t,{inset:-1}),e.cell,{display:"inline-block",position:"relative",boxSizing:"border-box",minHeight:Ov.rowHeight,verticalAlign:"top",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingTop:Ov.rowVerticalPadding,paddingBottom:Ov.rowVerticalPadding,paddingLeft:d.cellLeftPadding+"px",selectors:((x={"& > button":{maxWidth:"100%"}})["[data-is-focusable='true']"]=bo(t,{inset:-1,borderColor:b,outlineColor:v}),x)},o&&{selectors:((x={})[Yt]=ht({background:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),x)},l&&_,h&&{opacity:.5}];return{root:[e.root,Le.fadeIn400,r,t.fonts.small,s&&e.isCheckVisible,bo(t,{borderColor:k,outlineColor:v}),{borderBottom:"1px solid "+y,background:m.defaultBackground,color:m.defaultMetaText,display:"inline-flex",minWidth:"100%",minHeight:Ov.rowHeight,whiteSpace:"nowrap",padding:0,boxSizing:"border-box",verticalAlign:"top",textAlign:"left",selectors:((v={})["."+e.listCellFirstChild+" &:before"]={display:"none"},v["&:hover"]={background:m.defaultHoverBackground,color:m.defaultHoverMetaText,selectors:((y={})["."+e.isRowHeader]={color:m.defaultHoverHeaderText},y["."+e.cell+" > ."+ca.root]={color:u},y)},v["&:hover ."+e.check]={opacity:1},v["."+go+" &:focus ."+e.check]={opacity:1},v[".ms-GroupSpacer"]={flexShrink:0,flexGrow:0},v)},o&&f,!n&&C,l&&S,c],cellUnpadded:{paddingRight:d.cellRightPadding+"px"},cellPadded:{paddingRight:d.cellExtraRightPadding+d.cellRightPadding+"px",selectors:((d={})["&."+e.cellCheck]={paddingRight:0},d)},cell:h,cellAnimation:p&&Ie.slideLeftIn40,cellMeasurer:[e.cellMeasurer,{overflow:"visible",whiteSpace:"nowrap"}],checkCell:[h,e.cellCheck,a,{padding:0,paddingTop:1,marginTop:-1,flexShrink:0}],checkCover:{position:"absolute",top:-1,left:0,bottom:0,right:0,display:i?"block":"none"},fields:[e.fields,{display:"flex",alignItems:"stretch"}],isRowHeader:[e.isRowHeader,{color:m.defaultHeaderText,fontSize:g.medium.fontSize},o&&{color:m.selectedHeaderText,fontWeight:Fe.semibold,selectors:((m={})[Yt]={color:"HighlightText"},m)}],isMultiline:[h,{whiteSpace:"normal",wordBreak:"break-word",textOverflow:"clip"}],check:[e.check]}},Wv={tooltipHost:"ms-TooltipHost",root:"ms-DetailsHeader",cell:"ms-DetailsHeader-cell",cellIsCheck:"ms-DetailsHeader-cellIsCheck",collapseButton:"ms-DetailsHeader-collapseButton",isCollapsed:"is-collapsed",isAllSelected:"is-allSelected",isSelectAllHidden:"is-selectAllHidden",isResizingColumn:"is-resizingColumn",cellSizer:"ms-DetailsHeader-cellSizer",isResizing:"is-resizing",dropHintCircleStyle:"ms-DetailsHeader-dropHintCircleStyle",dropHintCaretStyle:"ms-DetailsHeader-dropHintCaretStyle",dropHintLineStyle:"ms-DetailsHeader-dropHintLineStyle",cellTitle:"ms-DetailsHeader-cellTitle",cellName:"ms-DetailsHeader-cellName",filterChevron:"ms-DetailsHeader-filterChevron",gripperBarVertical:"ms-DetailsColumn-gripperBarVertical",checkTooltip:"ms-DetailsHeader-checkTooltip",check:"ms-DetailsHeader-check"},Vv={root:"ms-DetailsRow-check",isDisabled:"ms-DetailsRow-check--isDisabled",isHeader:"ms-DetailsRow-check--isHeader"},Kv=Fn(),Gv=gt.memo(function(e){return gt.createElement(qh,{theme:e.theme,checked:e.checked,className:e.className,useFastIcons:!0})});function Uv(e){return gt.createElement(qh,{checked:e.checked})}function jv(e){return gt.createElement(Gv,{theme:e.theme,checked:e.checked})}function qv(t){return function(e){return e?e.column.isIconOnly?gt.createElement("span",{className:t.accessibleLabel},e.column.name):gt.createElement(gt.Fragment,null,e.column.name):null}}var Yv,Zv,Xv=In(function(e){var t=e.isVisible,o=void 0!==t&&t,n=e.canSelect,r=void 0!==n&&n,i=e.anySelected,s=void 0!==i&&i,a=e.selected,l=void 0!==a&&a,c=e.selectionMode,u=e.isHeader,d=void 0!==u&&u,p=e.className,t=(e.checkClassName,e.styles),n=e.theme,i=e.compact,a=e.onRenderDetailsCheckbox,u=e.useFastIcons,u=void 0===u||u,e=mt(e,["isVisible","canSelect","anySelected","selected","selectionMode","isHeader","className","checkClassName","styles","theme","compact","onRenderDetailsCheckbox","useFastIcons"]),u=u?jv:Uv,u=a?Ma(a,u):u,o=Kv(t,{theme:n,canSelect:r,selected:l,anySelected:s,className:p,isHeader:d,isVisible:o,compact:i}),i={checked:l,theme:n},n=Bv("div",e,["aria-label","aria-labelledby","aria-describedby"]),c=c===dv.single?"radio":"checkbox";return r?gt.createElement("div",ht({},e,{role:c,className:Pr(o.root,o.check),"aria-checked":l,"data-selection-toggle":!0,"data-automationid":"DetailsRowCheck",tabIndex:-1}),u(i)):gt.createElement("div",ht({},n,{className:Pr(o.root,o.check)}))},function(e){var t=e.theme,o=e.className,n=e.isHeader,r=e.selected,i=e.anySelected,s=e.canSelect,a=e.compact,l=e.isVisible,c=zo(Vv,t),u=Hv.rowHeight,e=Hv.compactRowHeight,u=n?42:a?e:u,i=l||r||i;return{root:[c.root,o],check:[!s&&c.isDisabled,n&&c.isHeader,bo(t),t.fonts.small,jh.checkHost,{display:"flex",alignItems:"center",justifyContent:"center",cursor:"default",boxSizing:"border-box",verticalAlign:"top",background:"none",backgroundColor:"transparent",border:"none",opacity:i?1:0,height:u,width:48,padding:0,margin:0}],isDisabled:[]}},void 0,{scope:"DetailsRowCheck"},!0),Qv=(nb.prototype.dispose=function(){this._events&&this._events.dispose()},nb.prototype.subscribe=function(n,r,o){var i=this;this._initialized||(this._events=new va(this),(t=ft())&&(this._events.on(t.body,"mouseup",this._onMouseUp.bind(this),!0),this._events.on(t,"mouseup",this._onDocumentMouseUp.bind(this),!0)),this._initialized=!0);var s,a,l,c,u,d,p,h,e=o.key,m=void 0===e?""+ ++this._lastId:e,g=[];if(o&&n){var t=o.eventMap,f=o.context,v=o.updateDropState,e={root:n,options:o,key:m},b=this._isDraggable(e),y=this._isDroppable(e);if((b||y)&&t)for(var C=0,_=t;C<_.length;C++){var S=_[C],S={callback:S.callback.bind(null,f),eventName:S.eventName};g.push(S),this._events.on(n,S.eventName,S.callback)}y&&(a=function(e){e.isHandled||(e.isHandled=!0,i._dragEnterCounts[m]--,0===i._dragEnterCounts[m]&&v(!1,e))},l=function(e){e.preventDefault(),e.isHandled||(e.isHandled=!0,i._dragEnterCounts[m]++,1===i._dragEnterCounts[m]&&v(!0,e))},c=function(e){i._dragEnterCounts[m]=0,v(!1,e)},u=function(e){i._dragEnterCounts[m]=0,v(!1,e),o.onDrop&&o.onDrop(o.context.data,e)},d=function(e){e.preventDefault(),o.onDragOver&&o.onDragOver(o.context.data,e)},this._dragEnterCounts[m]=0,r.on(n,"dragenter",l),r.on(n,"dragleave",a),r.on(n,"dragend",c),r.on(n,"drop",u),r.on(n,"dragover",d)),b&&(p=this._onMouseDown.bind(this,e),c=this._onDragEnd.bind(this,e),s=function(e){var t=o;t&&t.onDragStart&&t.onDragStart(t.context.data,t.context.index,i._selection.getSelection(),e),i._isDragging=!0,e.dataTransfer&&e.dataTransfer.setData("id",n.id)},r.on(n,"dragstart",s),r.on(n,"mousedown",p),r.on(n,"dragend",c)),h={target:e,dispose:function(){if(i._activeTargets[m]===h&&delete i._activeTargets[m],n){for(var e=0,t=g;e<t.length;e++){var o=t[e];i._events.off(n,o.eventName,o.callback)}y&&(r.off(n,"dragenter",l),r.off(n,"dragleave",a),r.off(n,"dragend",c),r.off(n,"dragover",d),r.off(n,"drop",u)),b&&(r.off(n,"dragstart",s),r.off(n,"mousedown",p),r.off(n,"dragend",c))}}},this._activeTargets[m]=h}return{key:m,dispose:function(){h&&h.dispose()}}},nb.prototype.unsubscribe=function(e,t){t=this._activeTargets[t];t&&t.dispose()},nb.prototype._onDragEnd=function(e,t){e=e.options;e.onDragEnd&&e.onDragEnd(e.context.data,t)},nb.prototype._onMouseUp=function(e){if(this._isDragging=!1,this._dragData){for(var t=0,o=Object.keys(this._activeTargets);t<o.length;t++){var n=o[t],n=this._activeTargets[n];n.target.root&&(this._events.off(n.target.root,"mousemove"),this._events.off(n.target.root,"mouseleave"))}this._dragData.dropTarget&&(va.raise(this._dragData.dropTarget.root,"dragleave"),va.raise(this._dragData.dropTarget.root,"drop"))}this._dragData=null},nb.prototype._onDocumentMouseUp=function(e){var t=ft();t&&e.target===t.documentElement&&this._onMouseUp(e)},nb.prototype._onMouseMove=function(e,t){var o=t.buttons;this._dragData&&1!==(void 0===o?1:o)?this._onMouseUp(t):(o=e.root,t=e.key,this._isDragging&&this._isDroppable(e)&&this._dragData&&this._dragData.dropTarget&&this._dragData.dropTarget.key!==t&&!this._isChild(o,this._dragData.dropTarget.root)&&0<this._dragEnterCounts[this._dragData.dropTarget.key]&&(va.raise(this._dragData.dropTarget.root,"dragleave"),va.raise(o,"dragenter"),this._dragData.dropTarget=e))},nb.prototype._onMouseLeave=function(e,t){this._isDragging&&this._dragData&&this._dragData.dropTarget&&this._dragData.dropTarget.key===e.key&&(va.raise(e.root,"dragleave"),this._dragData.dropTarget=void 0)},nb.prototype._onMouseDown=function(e,t){if(0===t.button)if(this._isDraggable(e)){this._dragData={clientX:t.clientX,clientY:t.clientY,eventTarget:t.target,dragTarget:e};for(var o=0,n=Object.keys(this._activeTargets);o<n.length;o++){var r=n[o],r=this._activeTargets[r];r.target.root&&(this._events.on(r.target.root,"mousemove",this._onMouseMove.bind(this,r.target)),this._events.on(r.target.root,"mouseleave",this._onMouseLeave.bind(this,r.target)))}}else this._dragData=null},nb.prototype._isChild=function(e,t){for(;t&&t.parentElement;){if(t.parentElement===e)return!0;t=t.parentElement}return!1},nb.prototype._isDraggable=function(e){e=e.options;return!(!e.canDrag||!e.canDrag(e.context.data))},nb.prototype._isDroppable=function(e){var t=e.options,e=this._dragData&&this._dragData.dragTarget?this._dragData.dragTarget.options.context:void 0;return!(!t.canDrop||!t.canDrop(t.context,e))},nb),Jv=Fn(),$v=(l(ob,Zv=gt.Component),ob.prototype.render=function(){var e=this.props,t=e.column,o=e.parentId,n=e.isDraggable,r=e.styles,i=e.theme,s=e.cellStyleProps,a=void 0===s?Lv:s,l=e.useFastIcons,c=void 0===l||l,u=this.props.onRenderColumnHeaderTooltip,s=void 0===u?this._onRenderColumnHeaderTooltip:u;this._classNames=Jv(r,{theme:i,headerClassName:t.headerClassName,iconClassName:t.iconClassName,isActionable:t.columnActionsMode!==Cv.disabled,isEmpty:!t.name,isIconVisible:t.isSorted||t.isGrouped||t.isFiltered,isPadded:t.isPadded,isIconOnly:t.isIconOnly,cellStyleProps:a,transitionDurationDrag:200,transitionDurationDrop:1500});e=this._classNames,l=c?Hr:Vr,u=t.onRenderFilterIcon?Ma(t.onRenderFilterIcon,this._onRenderFilterIcon(this._classNames)):this._onRenderFilterIcon(this._classNames),r=t.onRenderHeader?Ma(t.onRenderHeader,qv(this._classNames)):qv(this._classNames),i=t.columnActionsMode!==Cv.disabled&&(void 0!==t.onColumnClick||void 0!==this.props.onColumnClick),c={"aria-label":t.ariaLabel||(t.isIconOnly?t.name:void 0),"aria-labelledby":t.ariaLabel||t.isIconOnly?void 0:o+"-"+t.key+"-name","aria-describedby":!this.props.onRenderColumnHeaderTooltip&&this._hasAccessibleDescription()?o+"-"+t.key+"-tooltip":void 0};return gt.createElement(gt.Fragment,null,gt.createElement("div",ht({key:t.key,ref:this._root,role:"columnheader"},!i&&c,{"aria-sort":t.isSorted?t.isSortedDescending?"descending":"ascending":"none","data-is-focusable":i||t.columnActionsMode===Cv.disabled?void 0:"true",className:e.root,"data-is-draggable":n,draggable:n,style:{width:t.calculatedWidth+a.cellLeftPadding+a.cellRightPadding+(t.isPadded?a.cellExtraRightPadding:0)},"data-automationid":"ColumnsHeaderColumn","data-item-key":t.key}),n&>.createElement(l,{iconName:"GripperBarVertical",className:e.gripperBarVerticalStyle}),s({hostClassName:e.cellTooltip,id:o+"-"+t.key+"-tooltip",setAriaDescribedBy:!1,column:t,content:t.columnActionsMode!==Cv.disabled?t.ariaLabel:"",children:gt.createElement("span",ht({id:o+"-"+t.key,className:e.cellTitle,"data-is-focusable":i&&t.columnActionsMode!==Cv.disabled?"true":void 0,role:i?"button":void 0},i&&c,{onContextMenu:this._onColumnContextMenu,onClick:this._onColumnClick,"aria-haspopup":t.columnActionsMode===Cv.hasDropdown?"menu":void 0,"aria-expanded":t.columnActionsMode===Cv.hasDropdown?!!t.isMenuOpen:void 0}),gt.createElement("span",{id:o+"-"+t.key+"-name",className:e.cellName},(t.iconName||t.iconClassName)&>.createElement(l,{className:e.iconClassName,iconName:t.iconName}),r(this.props)),t.isFiltered&>.createElement(l,{className:e.nearIcon,iconName:"Filter"}),t.isSorted&>.createElement(l,{className:e.sortIcon,iconName:t.isSortedDescending?"SortDown":"SortUp"}),t.isGrouped&>.createElement(l,{className:e.nearIcon,iconName:"GroupedDescending"}),t.columnActionsMode===Cv.hasDropdown&&!t.isIconOnly&&u({"aria-hidden":!0,columnProps:this.props,className:e.filterChevron,iconName:"ChevronDown"}))},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:this._renderAccessibleDescription())},ob.prototype.componentDidMount=function(){var e=this;this.props.dragDropHelper&&this.props.isDraggable&&this._addDragDropHandling();var t=this._classNames;this.props.isDropped&&(this._root.current&&(this._root.current.classList.add(t.borderAfterDropping),this._async.setTimeout(function(){e._root.current&&e._root.current.classList.add(t.noBorderAfterDropping)},20)),this._async.setTimeout(function(){e._root.current&&(e._root.current.classList.remove(t.borderAfterDropping),e._root.current.classList.remove(t.noBorderAfterDropping))},1520))},ob.prototype.componentWillUnmount=function(){this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this._async.dispose(),this._events.dispose()},ob.prototype.componentDidUpdate=function(){!this._dragDropSubscription&&this.props.dragDropHelper&&this.props.isDraggable&&this._addDragDropHandling(),this._dragDropSubscription&&!this.props.isDraggable&&(this._dragDropSubscription.dispose(),this._events.off(this._root.current,"mousedown"),delete this._dragDropSubscription)},ob.prototype._getColumnDragDropOptions=function(){var e=this,t=this.props.columnIndex;return{selectionIndex:t,context:{data:t,index:t},canDrag:function(){return e.props.isDraggable},canDrop:function(){return!1},onDragStart:this._onDragStart,updateDropState:function(){},onDrop:function(){},onDragEnd:this._onDragEnd}},ob.prototype._hasAccessibleDescription=function(){var e=this.props.column;return!!(e.filterAriaLabel||e.sortAscendingAriaLabel||e.sortDescendingAriaLabel||e.groupAriaLabel)},ob.prototype._renderAccessibleDescription=function(){var e=this.props,t=e.column,o=e.parentId,e=this._classNames;return this._hasAccessibleDescription()&&!this.props.onRenderColumnHeaderTooltip?gt.createElement("label",{key:t.key+"_label",id:o+"-"+t.key+"-tooltip",className:e.accessibleLabel,hidden:!0},t.isFiltered&&t.filterAriaLabel||null,t.isSorted&&(t.isSortedDescending?t.sortDescendingAriaLabel:t.sortAscendingAriaLabel)||null,t.isGrouped&&t.groupAriaLabel||null):null},ob.prototype._addDragDropHandling=function(){this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getColumnDragDropOptions()),this._events.on(this._root.current,"mousedown",this._onRootMouseDown)},ob),eb={isActionable:"is-actionable",cellIsCheck:"ms-DetailsHeader-cellIsCheck",collapseButton:"ms-DetailsHeader-collapseButton",isCollapsed:"is-collapsed",isAllSelected:"is-allSelected",isSelectAllHidden:"is-selectAllHidden",isResizingColumn:"is-resizingColumn",isEmpty:"is-empty",isIconVisible:"is-icon-visible",cellSizer:"ms-DetailsHeader-cellSizer",isResizing:"is-resizing",dropHintCircleStyle:"ms-DetailsHeader-dropHintCircleStyle",dropHintLineStyle:"ms-DetailsHeader-dropHintLineStyle",cellTitle:"ms-DetailsHeader-cellTitle",cellName:"ms-DetailsHeader-cellName",filterChevron:"ms-DetailsHeader-filterChevron",gripperBarVerticalStyle:"ms-DetailsColumn-gripperBar",nearIcon:"ms-DetailsColumn-nearIcon"},tb=In($v,function(e){var t=e.theme,o=e.headerClassName,n=e.iconClassName,r=e.isActionable,i=e.isEmpty,s=e.isIconVisible,a=e.isPadded,l=e.isIconOnly,c=e.cellStyleProps,u=void 0===c?Lv:c,d=e.transitionDurationDrag,p=e.transitionDurationDrop,h=t.semanticColors,m=t.palette,g=t.fonts,f=zo(eb,t),v={iconForegroundColor:h.bodySubtext,headerForegroundColor:h.bodyText,headerBackgroundColor:h.bodyBackground,dropdownChevronForegroundColor:m.neutralSecondary,resizerColor:m.neutralTertiaryAlt},b={color:v.iconForegroundColor,opacity:1,paddingLeft:8},y={outline:"1px solid "+m.themePrimary},c={outlineColor:"transparent"};return{root:[Fv(e),g.small,r&&[f.isActionable,{selectors:{":hover":{color:h.bodyText,background:h.listHeaderBackgroundHovered},":active":{background:h.listHeaderBackgroundPressed}}}],i&&[f.isEmpty,{textOverflow:"clip"}],s&&f.isIconVisible,a&&{paddingRight:u.cellExtraRightPadding+u.cellRightPadding},{selectors:{':hover i[data-icon-name="GripperBarVertical"]':{display:"block"}}},o],gripperBarVerticalStyle:{display:"none",position:"absolute",textAlign:"left",color:m.neutralTertiary,left:1},nearIcon:[f.nearIcon,b],sortIcon:[b,{paddingLeft:4,position:"relative",top:1}],iconClassName:[{color:v.iconForegroundColor,opacity:1},n],filterChevron:[f.filterChevron,{color:v.dropdownChevronForegroundColor,paddingLeft:6,verticalAlign:"middle",fontSize:g.small.fontSize}],cellTitle:[f.cellTitle,bo(t),ht({display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"stretch",boxSizing:"border-box",overflow:"hidden",padding:"0 "+u.cellRightPadding+"px 0 "+u.cellLeftPadding+"px"},l?{alignContent:"flex-end",maxHeight:"100%",flexWrap:"wrap-reverse"}:{})],cellName:[f.cellName,{flex:"0 1 auto",overflow:"hidden",textOverflow:"ellipsis",fontWeight:Fe.semibold,fontSize:g.medium.fontSize},l&&{selectors:((l={})["."+f.nearIcon]={paddingLeft:0},l)}],cellTooltip:{display:"block",position:"absolute",top:0,left:0,bottom:0,right:0},accessibleLabel:So,borderWhileDragging:y,noBorderWhileDragging:[c,{transition:"outline "+d+"ms ease"}],borderAfterDropping:y,noBorderAfterDropping:[c,{transition:"outline "+p+"ms ease"}]}},void 0,{scope:"DetailsColumn"});function ob(e){var i=Zv.call(this,e)||this;return i._root=gt.createRef(),i._onRenderFilterIcon=function(e){return function(e){var t=e.columnProps,e=mt(e,["columnProps"]),t=null!=t&&t.useFastIcons?Hr:Vr;return gt.createElement(t,ht({},e))}},i._onRenderColumnHeaderTooltip=function(e){return gt.createElement("span",{className:e.hostClassName},e.children)},i._onColumnClick=function(e){var t=i.props,o=t.onColumnClick,t=t.column;t.columnActionsMode!==Cv.disabled&&(t.onColumnClick&&t.onColumnClick(e,t),o&&o(e,t))},i._onDragStart=function(e,t,o,n){var r=i._classNames;t&&(i._updateHeaderDragInfo(t),i._root.current.classList.add(r.borderWhileDragging),i._async.setTimeout(function(){i._root.current&&i._root.current.classList.add(r.noBorderWhileDragging)},20))},i._onDragEnd=function(e,t){var o=i._classNames;t&&i._updateHeaderDragInfo(-1,t),i._root.current.classList.remove(o.borderWhileDragging),i._root.current.classList.remove(o.noBorderWhileDragging)},i._updateHeaderDragInfo=function(e,t){i.props.setDraggedItemIndex&&i.props.setDraggedItemIndex(e),i.props.updateDragInfo&&i.props.updateDragInfo({itemIndex:e},t)},i._onColumnContextMenu=function(e){var t=i.props,o=t.onColumnContextMenu,t=t.column;t.onColumnContextMenu&&(t.onColumnContextMenu(t,e),e.preventDefault()),o&&(o(t,e),e.preventDefault())},i._onRootMouseDown=function(e){i.props.isDraggable&&0===e.button&&e.stopPropagation()},vi(i),i._async=new xi(i),i._events=new va(i),i}function nb(e){this._selection=e.selection,this._dragEnterCounts={},this._activeTargets={},this._lastId=0,this._initialized=!1}(ke=Yv=Yv||{})[ke.none=0]="none",ke[ke.hidden=1]="hidden",ke[ke.visible=2]="visible";var rb,ib=Fn(),sb=[],ab=(l(lb,rb=gt.Component),lb.prototype.componentDidMount=function(){var e=this.props.selection;this._events.on(e,gv,this._onSelectionChanged),this._rootElement.current&&(this._events.on(this._rootElement.current,"mousedown",this._onRootMouseDown),this._events.on(this._rootElement.current,"keydown",this._onRootKeyDown),this._getColumnReorderProps()&&(this._subscriptionObject=this._dragDropHelper.subscribe(this._rootElement.current,this._events,this._getHeaderDragDropOptions())))},lb.prototype.componentDidUpdate=function(e){var t,o;this._getColumnReorderProps()?!this._subscriptionObject&&this._rootElement.current&&(this._subscriptionObject=this._dragDropHelper.subscribe(this._rootElement.current,this._events,this._getHeaderDragDropOptions())):this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this.props!==e&&0<=this._onDropIndexInfo.sourceIndex&&0<=this._onDropIndexInfo.targetIndex&&(t=e.columns,o=this.props.columns,(void 0===t?sb:t)[this._onDropIndexInfo.sourceIndex].key===(void 0===o?sb:o)[this._onDropIndexInfo.targetIndex].key&&(this._onDropIndexInfo={sourceIndex:-1,targetIndex:-1})),this.props.isAllCollapsed!==e.isAllCollapsed&&this.setState({isAllCollapsed:this.props.isAllCollapsed})},lb.prototype.componentWillUnmount=function(){this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this._dragDropHelper.dispose(),this._events.dispose()},lb.prototype.render=function(){var n=this,e=this.props,t=e.columns,r=void 0===t?sb:t,o=e.ariaLabel,i=e.ariaLabelForToggleAllGroupsButton,s=e.ariaLabelForSelectAllCheckbox,a=e.selectAllVisibility,l=e.ariaLabelForSelectionColumn,c=e.indentWidth,u=e.onColumnClick,d=e.onColumnContextMenu,p=e.onRenderColumnHeaderTooltip,h=void 0===p?this._onRenderColumnHeaderTooltip:p,m=e.styles,g=e.selectionMode,f=e.theme,v=e.onRenderDetailsCheckbox,b=e.groupNestingDepth,y=e.useFastIcons,C=e.checkboxVisibility,_=e.className,S=this.state,x=S.isAllSelected,k=S.columnResizeDetails,t=S.isSizing,p=S.isAllCollapsed,e=a!==Yv.none,S=a===Yv.hidden,C=C===kv.always,w=this._getColumnReorderProps(),I=w&&w.frozenColumnCountFromStart?w.frozenColumnCountFromStart:0,D=w&&w.frozenColumnCountFromEnd?w.frozenColumnCountFromEnd:0;this._classNames=ib(m,{theme:f,isAllSelected:x,isSelectAllHidden:a===Yv.hidden,isResizingColumn:!!k&&t,isSizing:t,isAllCollapsed:p,isCheckboxHidden:S,className:_});var a=this._classNames,k=y?Hr:Vr,_=0<b&&this.props.collapseAllVisibility===yv.visible,T=1+(e?1:0)+(_?1:0),f=Pn(f);return gt.createElement(Zs,{role:"row","aria-label":o,className:a.root,componentRef:this._rootComponent,elementRef:this._rootElement,onMouseMove:this._onRootMouseMove,"data-automationid":"DetailsHeader",direction:Ei.horizontal},e?[gt.createElement("div",{key:"__checkbox",className:a.cellIsCheck,"aria-labelledby":this._id+"-checkTooltip",onClick:S?void 0:this._onSelectAllClicked,role:"columnheader"},h({hostClassName:a.checkTooltip,id:this._id+"-checkTooltip",setAriaDescribedBy:!1,content:s,children:gt.createElement(Xv,{id:this._id+"-check","aria-label":g===dv.multiple?s:l,"data-is-focusable":!S||void 0,isHeader:!0,selected:x,anySelected:!1,canSelect:!S,className:a.check,onRenderDetailsCheckbox:v,useFastIcons:y,isVisible:C})},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:s&&!S?gt.createElement("label",{key:"__checkboxLabel",id:this._id+"-checkTooltip",className:a.accessibleLabel,"aria-hidden":!0},s):l&&S?gt.createElement("label",{key:"__checkboxLabel",id:this._id+"-checkTooltip",className:a.accessibleLabel,"aria-hidden":!0},l):null]:null,_?gt.createElement("div",{className:a.cellIsGroupExpander,onClick:this._onToggleCollapseAll,"data-is-focusable":!0,"aria-label":i,"aria-expanded":!p,role:"columnheader"},gt.createElement(k,{className:a.collapseButton,iconName:f?"ChevronLeftMed":"ChevronRightMed"}),gt.createElement("span",{className:a.accessibleLabel},i)):null,gt.createElement(Mv,{indentWidth:c,role:"gridcell",count:b-1}),r.map(function(e,t){var o=!!w&&I<=t&&t<r.length-D;return[w&&(o||t===r.length-D)&&n._renderDropHint(t),gt.createElement(tb,{column:e,styles:e.styles,key:e.key,columnIndex:T+t,parentId:n._id,isDraggable:o,updateDragInfo:n._updateDragInfo,dragDropHelper:n._dragDropHelper,onColumnClick:u,onColumnContextMenu:d,onRenderColumnHeaderTooltip:n.props.onRenderColumnHeaderTooltip,isDropped:n._onDropIndexInfo.targetIndex===t,cellStyleProps:n.props.cellStyleProps,useFastIcons:y}),n._renderColumnDivider(t)]}),w&&0===D&&this._renderDropHint(r.length),t&>.createElement(ac,null,gt.createElement("div",{className:a.sizingOverlay,onMouseMove:this._onSizerMouseMove,onMouseUp:this._onSizerMouseUp})))},lb.prototype.focus=function(){var e;return!(null===(e=this._rootComponent.current)||void 0===e||!e.focus())},lb.prototype._getColumnReorderProps=function(){var e=this.props,t=e.columnReorderOptions;return e.columnReorderProps||t&&ht(ht({},t),{onColumnDragEnd:void 0})},lb.prototype._getHeaderDragDropOptions=function(){return{selectionIndex:1,context:{data:this,index:0},canDrag:function(){return!1},canDrop:function(){return!0},onDragStart:function(){},updateDropState:this._updateDroppingState,onDrop:this._onDrop,onDragEnd:function(){},onDragOver:this._onDragOver}},lb.prototype._isValidCurrentDropHintIndex=function(){return 0<=this._currentDropHintIndex},lb.prototype._isCheckboxColumnHidden=function(){var e=this.props,t=e.selectionMode,e=e.checkboxVisibility;return t===dv.none||e===kv.hidden},lb.prototype._resetDropHints=function(){0<=this._currentDropHintIndex&&(this._updateDropHintElement(this._dropHintDetails[this._currentDropHintIndex].dropHintElementRef,"none"),this._currentDropHintIndex=-1)},lb.prototype._updateDropHintElement=function(e,t){e.childNodes[1].style.display=t,e.childNodes[0].style.display=t},lb.prototype._isEventOnHeader=function(e){if(this._rootElement.current){var t=this._rootElement.current.getBoundingClientRect();if(e.clientX>t.left&&e.clientX<t.right&&e.clientY>t.top&&e.clientY<t.bottom)return Sv.header}},lb.prototype._renderColumnDivider=function(e){var t=this.props.columns,o=(void 0===t?sb:t)[e],t=o.onRenderDivider;return t?t({column:o,columnIndex:e},this._renderColumnSizer):this._renderColumnSizer({column:o,columnIndex:e})},lb.prototype._renderDropHint=function(e){var t=this._classNames,o=this.props.useFastIcons?Hr:Vr;return gt.createElement("div",{key:"dropHintKey",className:t.dropHintStyle,id:"columnDropHint_"+e},gt.createElement("div",{role:"presentation",key:"dropHintCircleKey",className:t.dropHintCaretStyle,"data-is-focusable":!1,"data-sizer-index":e,"aria-hidden":!0},gt.createElement(o,{iconName:"CircleShapeSolid"})),gt.createElement("div",{key:"dropHintLineKey","aria-hidden":!0,"data-is-focusable":!1,"data-sizer-index":e,className:t.dropHintLineStyle}))},lb.prototype._onSizerDoubleClick=function(e,t){var o=this.props,n=o.onColumnAutoResized,o=o.columns;n&&n((void 0===o?sb:o)[e],e)},lb.prototype._onSelectionChanged=function(){var e=!!this.props.selection&&this.props.selection.isAllSelected();this.state.isAllSelected!==e&&this.setState({isAllSelected:e})},lb.defaultProps={selectAllVisibility:Yv.visible,collapseAllVisibility:yv.visible,useFastIcons:!0},lb);function lb(e){var u=rb.call(this,e)||this;return u._rootElement=gt.createRef(),u._rootComponent=gt.createRef(),u._draggedColumnIndex=-1,u._dropHintDetails={},u._updateDroppingState=function(e,t){0<=u._draggedColumnIndex&&"drop"!==t.type&&!e&&u._resetDropHints()},u._onDragOver=function(e,t){0<=u._draggedColumnIndex&&(t.stopPropagation(),u._computeDropHintToBeShown(t.clientX))},u._onDrop=function(e,t){var o,n,r=u._getColumnReorderProps();0<=u._draggedColumnIndex&&t&&(o=u._draggedColumnIndex>u._currentDropHintIndex?u._currentDropHintIndex:u._currentDropHintIndex-1,n=u._isValidCurrentDropHintIndex(),t.stopPropagation(),n&&(u._onDropIndexInfo.sourceIndex=u._draggedColumnIndex,u._onDropIndexInfo.targetIndex=o,r.onColumnDrop?(n={draggedIndex:u._draggedColumnIndex,targetIndex:o},r.onColumnDrop(n)):r.handleColumnReorder&&r.handleColumnReorder(u._draggedColumnIndex,o))),u._resetDropHints(),u._dropHintDetails={},u._draggedColumnIndex=-1},u._updateDragInfo=function(e,t){var o=u._getColumnReorderProps(),e=e.itemIndex;0<=e?(u._draggedColumnIndex=u._isCheckboxColumnHidden()?e-1:e-2,u._getDropHintPositions(),o.onColumnDragStart&&o.onColumnDragStart(!0)):t&&0<=u._draggedColumnIndex&&(u._resetDropHints(),u._draggedColumnIndex=-1,u._dropHintDetails={},o.onColumnDragEnd)&&(e=u._isEventOnHeader(t),o.onColumnDragEnd({dropLocation:e},t))},u._getDropHintPositions=function(){for(var e,t,o,n=u.props.columns,r=void 0===n?sb:n,n=u._getColumnReorderProps(),i=0,s=0,a=n.frozenColumnCountFromStart||0,l=n.frozenColumnCountFromEnd||0,c=a;c<r.length-l+1;c++)!u._rootElement.current||(t=u._rootElement.current.querySelectorAll("#columnDropHint_"+c)[0])&&(c===a?(i=t.offsetLeft,s=t.offsetLeft,e=t):(o=(t.offsetLeft+i)/2,u._dropHintDetails[c-1]={originX:i,startX:s,endX:o,dropHintElementRef:e},s=o,i=(e=t).offsetLeft,c===r.length-l&&(u._dropHintDetails[c]={originX:i,startX:s,endX:t.offsetLeft,dropHintElementRef:e})))},u._computeDropHintToBeShown=function(e){var t=Pn(u.props.theme);if(u._rootElement.current){var o=e-u._rootElement.current.getBoundingClientRect().left,n=u._currentDropHintIndex;if(!u._isValidCurrentDropHintIndex()||!cb(t,o,u._dropHintDetails[n].startX,u._dropHintDetails[n].endX)){var r=u.props.columns,i=void 0===r?sb:r,e=u._getColumnReorderProps(),r=e.frozenColumnCountFromStart||0,e=e.frozenColumnCountFromEnd||0,e=i.length-e,s=-1;if(ub(t,o,u._dropHintDetails[r].endX)?s=r:db(t,o,u._dropHintDetails[e].startX)?s=e:u._isValidCurrentDropHintIndex()&&(u._dropHintDetails[n+1]&&cb(t,o,u._dropHintDetails[n+1].startX,u._dropHintDetails[n+1].endX)?s=n+1:u._dropHintDetails[n-1]&&cb(t,o,u._dropHintDetails[n-1].startX,u._dropHintDetails[n-1].endX)&&(s=n-1)),-1===s)for(var a=r,l=e;a<l;){var c=Math.ceil((l+a)/2);if(cb(t,o,u._dropHintDetails[c].startX,u._dropHintDetails[c].endX)){s=c;break}ub(t,o,u._dropHintDetails[c].originX)?l=c:db(t,o,u._dropHintDetails[c].originX)&&(a=c)}s===u._draggedColumnIndex||s===u._draggedColumnIndex+1?u._isValidCurrentDropHintIndex()&&u._resetDropHints():n!==s&&0<=s&&(u._resetDropHints(),u._updateDropHintElement(u._dropHintDetails[s].dropHintElementRef,"inline-block"),u._currentDropHintIndex=s)}}},u._renderColumnSizer=function(e){var t=e.columnIndex,o=u.props.columns,n=void 0===o?sb:o,r=n[t],e=u.state.columnResizeDetails,o=u._classNames;return r.isResizable?gt.createElement("div",{key:r.key+"_sizer","aria-hidden":!0,role:"button","data-is-focusable":!1,onClick:pb,"data-sizer-index":t,onBlur:u._onSizerBlur,className:Pr(o.cellSizer,t<n.length-1?o.cellSizerStart:o.cellSizerEnd,((n={})[o.cellIsResizing]=e&&e.columnIndex===t,n)),onDoubleClick:u._onSizerDoubleClick.bind(u,t)}):null},u._onRenderColumnHeaderTooltip=function(e){return gt.createElement("span",{className:e.hostClassName},e.children)},u._onSelectAllClicked=function(){var e=u.props.selection;e&&e.toggleAllSelected()},u._onRootMouseDown=function(e){var t=e.target.getAttribute("data-sizer-index"),o=Number(t),n=u.props.columns;null!==t&&0===e.button&&(u.setState({columnResizeDetails:{columnIndex:o,columnMinWidth:(void 0===n?sb:n)[o].calculatedWidth,originX:e.clientX}}),e.preventDefault(),e.stopPropagation())},u._onRootMouseMove=function(e){var t=u.state,o=t.columnResizeDetails,t=t.isSizing;o&&!t&&e.clientX!==o.originX&&u.setState({isSizing:!0})},u._onRootKeyDown=function(e){var t=u.state,o=t.columnResizeDetails,n=t.isSizing,r=u.props,i=r.columns,t=void 0===i?sb:i,i=r.onColumnResized,r=e.target.getAttribute("data-sizer-index");r&&!n&&(n=Number(r),o?(r=void 0,e.which===Tn.enter?(u.setState({columnResizeDetails:void 0}),e.preventDefault(),e.stopPropagation()):e.which===Tn.left?r=Pn(u.props.theme)?1:-1:e.which===Tn.right&&(r=Pn(u.props.theme)?-1:1),r&&(e.shiftKey||(r*=10),u.setState({columnResizeDetails:ht(ht({},o),{columnMinWidth:o.columnMinWidth+r})}),i&&i(t[n],o.columnMinWidth+r,n),e.preventDefault(),e.stopPropagation())):e.which===Tn.enter&&(u.setState({columnResizeDetails:{columnIndex:n,columnMinWidth:t[n].calculatedWidth}}),e.preventDefault(),e.stopPropagation()))},u._onSizerMouseMove=function(e){var t=e.buttons,o=u.props,n=o.onColumnIsSizingChanged,r=o.onColumnResized,i=o.columns,o=void 0===i?sb:i,i=u.state.columnResizeDetails;void 0===t||1===t?(e.clientX!==i.originX&&n&&n(o[i.columnIndex],!0),r&&(n=e.clientX-i.originX,Pn(u.props.theme)&&(n=-n),r(o[i.columnIndex],i.columnMinWidth+n,i.columnIndex))):u._onSizerMouseUp(e)},u._onSizerBlur=function(e){u.state.columnResizeDetails&&u.setState({columnResizeDetails:void 0,isSizing:!1})},u._onSizerMouseUp=function(e){var t=u.props,o=t.columns,n=void 0===o?sb:o,o=t.onColumnIsSizingChanged,t=u.state.columnResizeDetails;u.setState({columnResizeDetails:void 0,isSizing:!1}),o&&o(n[t.columnIndex],!1)},u._onToggleCollapseAll=function(){var e=u.props.onToggleCollapseAll,t=!u.state.isAllCollapsed;u.setState({isAllCollapsed:t}),e&&e(t)},vi(u),u._events=new va(u),u.state={columnResizeDetails:void 0,isAllCollapsed:u.props.isAllCollapsed,isAllSelected:!!u.props.selection&&u.props.selection.isAllSelected()},u._onDropIndexInfo={sourceIndex:-1,targetIndex:-1},u._id=Ss("header"),u._currentDropHintIndex=-1,u._dragDropHelper=new Qv({selection:{getSelection:function(){}},minimumPixelsForDrag:u.props.minimumPixelsForDrag}),u}function cb(e,t,o,n){return e?t<=o&&n<=t:o<=t&&t<=n}function ub(e,t,o){return e?o<=t:t<=o}function db(e,t,o){return e?t<=o:o<=t}function pb(e){e.stopPropagation()}var hb,mb=In(ab,function(e){var t=e.theme,o=e.className,n=e.isAllSelected,r=e.isResizingColumn,i=e.isSizing,s=e.isAllCollapsed,a=e.cellStyleProps,l=void 0===a?Lv:a,c=t.semanticColors,u=t.palette,d=t.fonts,p=zo(Wv,t),h={iconForegroundColor:c.bodySubtext,headerForegroundColor:c.bodyText,headerBackgroundColor:c.bodyBackground,resizerColor:u.neutralTertiaryAlt},m={opacity:1,transition:"opacity 0.3s linear"},a=Fv(e);return{root:[p.root,d.small,{display:"inline-block",background:h.headerBackgroundColor,position:"relative",minWidth:"100%",verticalAlign:"top",height:42,lineHeight:42,whiteSpace:"nowrap",boxSizing:"content-box",paddingBottom:"1px",paddingTop:"16px",borderBottom:"1px solid "+c.bodyDivider,cursor:"default",userSelect:"none",selectors:((e={})["&:hover ."+p.check]={opacity:1},e["& ."+p.tooltipHost+" ."+p.checkTooltip]={display:"block"},e)},n&&p.isAllSelected,r&&p.isResizingColumn,o],check:[p.check,{height:42},{selectors:((o={})["."+go+" &:focus"]={opacity:1},o)}],cellWrapperPadded:{paddingRight:l.cellExtraRightPadding+l.cellRightPadding},cellIsCheck:[a,p.cellIsCheck,{position:"relative",padding:0,margin:0,display:"inline-flex",alignItems:"center",border:"none"},n&&{opacity:1}],cellIsGroupExpander:[a,{display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:d.small.fontSize,padding:0,border:"none",width:36,color:u.neutralSecondary,selectors:{":hover":{backgroundColor:u.neutralLighter},":active":{backgroundColor:u.neutralLight}}}],cellIsActionable:{selectors:{":hover":{color:c.bodyText,background:c.listHeaderBackgroundHovered},":active":{background:c.listHeaderBackgroundPressed}}},cellIsEmpty:{textOverflow:"clip"},cellSizer:[p.cellSizer,{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},{display:"inline-block",position:"relative",cursor:"ew-resize",bottom:0,top:0,overflow:"hidden",height:"inherit",background:"transparent",zIndex:1,width:16,selectors:((h={":after":{content:'""',position:"absolute",top:0,bottom:0,width:1,background:h.resizerColor,opacity:0,left:"50%"},":focus:after":m,":hover:after":m})["&."+p.isResizing+":after"]=[m,{boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.4)"}],h)}],cellIsResizing:p.isResizing,cellSizerStart:{margin:"0 -8px"},cellSizerEnd:{margin:0,marginLeft:-16},collapseButton:[p.collapseButton,{transformOrigin:"50% 50%",transition:"transform .1s linear"},s?[p.isCollapsed,{transform:"rotate(0deg)"}]:{transform:Pn(t)?"rotate(-90deg)":"rotate(90deg)"}],checkTooltip:p.checkTooltip,sizingOverlay:i&&{position:"absolute",left:0,top:0,right:0,bottom:0,cursor:"ew-resize",background:"rgba(255, 255, 255, 0)",selectors:((i={})[Yt]=ht({background:"transparent"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)},accessibleLabel:So,dropHintCircleStyle:[p.dropHintCircleStyle,{display:"inline-block",visibility:"hidden",position:"absolute",bottom:0,height:9,width:9,borderRadius:"50%",marginLeft:-5,top:34,overflow:"visible",zIndex:10,border:"1px solid "+u.themePrimary,background:u.white}],dropHintCaretStyle:[p.dropHintCaretStyle,{display:"none",position:"absolute",top:-28,left:-6.5,fontSize:d.medium.fontSize,color:u.themePrimary,overflow:"visible",zIndex:10}],dropHintLineStyle:[p.dropHintLineStyle,{display:"none",position:"absolute",bottom:0,top:0,overflow:"hidden",height:42,width:1,background:u.themePrimary,zIndex:10}],dropHintStyle:{display:"inline-block",position:"absolute"}}},void 0,{scope:"DetailsHeader"}),gb=function(e){var t=e.columns,i=e.rowClassNames,o=e.cellStyleProps,s=void 0===o?Lv:o,a=e.item,l=e.itemIndex,c=e.onRenderItemColumn,u=e.getCellValueKey,d=e.cellsByColumn,p=e.enableUpdateAnimations,h=e.rowHeaderId,e=gt.useRef(),m=e.current||(e.current={});return gt.createElement("div",{className:i.fields,"data-automationid":"DetailsRowFields",role:"presentation"},t.map(function(e){var t,o=void 0===e.calculatedWidth?"auto":e.calculatedWidth+s.cellLeftPadding+s.cellRightPadding+(e.isPadded?s.cellExtraRightPadding:0),n=e.onRender,r=void 0===n?c:n,n=e.getValueKey,n=void 0===n?u:n,r=d&&e.key in d?d[e.key]:r?r(a,l,e):"boolean"==typeof(t=null==(t=a&&e&&e.fieldName?a[e.fieldName]:"")?"":t)?t.toString():t,t=m[e.key],n=p&&n?n(a,l,e):void 0,t=void 0!==n&&void 0!==t&&n!==t?!0:!1;m[e.key]=n;n=e.key+(void 0!==n?"-"+n:"");return gt.createElement("div",{key:n,id:e.isRowHeader?h:void 0,role:e.isRowHeader?"rowheader":"gridcell","aria-readonly":!0,className:Pr(e.className,e.isMultiline&&i.isMultiline,e.isRowHeader&&i.isRowHeader,i.cell,e.isPadded?i.cellPadded:i.cellUnpadded,t&&i.cellAnimation),style:{width:o},"data-automationid":"DetailsRowCell","data-automation-key":e.key},r)}))},fb=Fn(),vb=[],bb=(l(yb,hb=gt.Component),yb.getDerivedStateFromProps=function(e,t){return ht(ht({},t),{selectionState:Cb(e)})},yb.prototype.componentDidMount=function(){var e=this.props,t=e.dragDropHelper,o=e.selection,n=e.item,e=e.onDidMount;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getRowDragDropOptions())),o&&this._events.on(o,gv,this._onSelectionChanged),e&&n&&(this._onDidMountCalled=!0,e(this))},yb.prototype.componentDidUpdate=function(e){var t=this.state,o=this.props,n=o.item,o=o.onDidMount,t=t.columnMeasureInfo;this.props.itemIndex===e.itemIndex&&this.props.item===e.item&&this.props.dragDropHelper===e.dragDropHelper||(this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this.props.dragDropHelper&&this._root.current&&(this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getRowDragDropOptions()))),t&&0<=t.index&&this._cellMeasurer.current&&(e=this._cellMeasurer.current.getBoundingClientRect().width,t.onMeasureDone(e),this.setState({columnMeasureInfo:void 0})),n&&o&&!this._onDidMountCalled&&(this._onDidMountCalled=!0,o(this))},yb.prototype.componentWillUnmount=function(){var e=this.props,t=e.item,e=e.onWillUnmount;e&&t&&e(this),this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this._events.dispose()},yb.prototype.shouldComponentUpdate=function(e,t){if(this.props.useReducedRowRenderer){var o=Cb(e);return this.state.selectionState.isSelected!==o.isSelected||!da(this.props,e)}return!0},yb.prototype.render=function(){var e=this.props,t=e.className,o=e.columns,n=void 0===o?vb:o,r=e.dragDropEvents,i=e.item,s=e.itemIndex,a=e.id,l=e.flatIndexOffset,c=void 0===l?2:l,u=e.onRenderCheck,d=void 0===u?this._onRenderCheck:u,p=e.onRenderDetailsCheckbox,h=e.onRenderItemColumn,m=e.getCellValueKey,g=e.selectionMode,f=e.rowWidth,v=void 0===f?0:f,b=e.checkboxVisibility,y=e.getRowAriaLabel,C=e.getRowAriaDescription,_=e.getRowAriaDescribedBy,S=e.checkButtonAriaLabel,x=e.checkboxCellClassName,k=e.rowFieldsAs,w=void 0===k?gb:k,I=e.selection,D=e.indentWidth,T=e.enableUpdateAnimations,E=e.compact,P=e.theme,R=e.styles,M=e.cellsByColumn,N=e.groupNestingDepth,B=e.useFastIcons,F=void 0===B||B,A=e.cellStyleProps,L=e.group,H=e.focusZoneProps,O=e.disabled,z=void 0!==O&&O,W=this.state,o=W.columnMeasureInfo,l=W.isDropping,u=this.state.selectionState,f=u.isSelected,k=void 0!==f&&f,B=u.isSelectionModal,e=void 0!==B&&B,O=r?!(!r.canDrag||!r.canDrag(i)):void 0,W=l?this._droppingClassNames||"is-dropping":"",f=y?y(i):void 0,u=C?C(i):void 0,B=_?_(i):void 0,r=!!I&&I.canSelectItem(i,s)&&!z,l=g===dv.multiple,y=g!==dv.none&&b!==kv.hidden,C=g===dv.none?void 0:k,_=L?s-L.startIndex+1:void 0,I=L?L.count:void 0,L=H?H.direction:Ei.horizontal;this._classNames=ht(ht({},this._classNames),fb(R,{theme:P,isSelected:k,canSelect:!l,anySelected:e,checkboxCellClassName:x,droppingClassName:W,className:t,compact:E,enableUpdateAnimations:T,cellStyleProps:A,disabled:z}));t={isMultiline:this._classNames.isMultiline,isRowHeader:this._classNames.isRowHeader,cell:this._classNames.cell,cellAnimation:this._classNames.cellAnimation,cellPadded:this._classNames.cellPadded,cellUnpadded:this._classNames.cellUnpadded,fields:this._classNames.fields};da(this._rowClassNames||{},t)||(this._rowClassNames=t);M=gt.createElement(w,{rowClassNames:this._rowClassNames,rowHeaderId:a+"-header",cellsByColumn:M,columns:n,item:i,itemIndex:s,columnStartIndex:(y?1:0)+(N?1:0),onRenderItemColumn:h,getCellValueKey:m,enableUpdateAnimations:T,cellStyleProps:A}),T=this.props.role||"row";this._ariaRowDescriptionId=Ss("DetailsRow-description");A=a+"-checkbox"+(n.some(function(e){return!!e.isRowHeader})?" "+a+"-header":"");return gt.createElement(Zs,ht({"data-is-focusable":!0},ur(this.props,cr),"boolean"==typeof O?{"data-is-draggable":O,draggable:O}:{},H,{direction:L,elementRef:this._root,componentRef:this._focusZone,role:T,"aria-label":f,"aria-disabled":z||void 0,"aria-describedby":u?this._ariaRowDescriptionId:B,className:this._classNames.root,"data-selection-index":s,"data-selection-touch-invoke":!0,"data-selection-disabled":z||void 0,"data-item-index":s,"aria-rowindex":void 0===_?s+c:void 0,"aria-level":N&&N+1||void 0,"aria-posinset":_,"aria-setsize":I,"data-automationid":"DetailsRow",style:{minWidth:v},"aria-selected":C,allowFocusRoot:!0}),u?gt.createElement("span",{key:"description",role:"presentation",hidden:!0,id:this._ariaRowDescriptionId},u):null,y&>.createElement("div",{role:"gridcell","data-selection-toggle":!0,className:this._classNames.checkCell},d({id:a?a+"-checkbox":void 0,selected:k,selectionMode:g,anySelected:e,"aria-label":S,"aria-labelledby":a?A:void 0,canSelect:r,compact:E,className:this._classNames.check,theme:P,isVisible:b===kv.always,onRenderDetailsCheckbox:p,useFastIcons:F})),gt.createElement(Mv,{indentWidth:D,role:"gridcell",count:N-(this.props.collapseAllVisibility===yv.hidden?1:0)}),i&&M,o&>.createElement("span",{role:"presentation",className:Pr(this._classNames.cellMeasurer,this._classNames.cell),ref:this._cellMeasurer},gt.createElement(w,{rowClassNames:this._rowClassNames,rowHeaderId:a+"-header",columns:[o.column],item:i,itemIndex:s,columnStartIndex:(y?1:0)+(N?1:0)+n.length,onRenderItemColumn:h,getCellValueKey:m})),gt.createElement("span",{role:"checkbox",className:this._classNames.checkCover,"aria-checked":k,"data-selection-toggle":!0}))},yb.prototype.measureCell=function(e,t){var o=this.props.columns,o=ht({},(void 0===o?vb:o)[e]);o.minWidth=0,o.maxWidth=999999,delete o.calculatedWidth,this.setState({columnMeasureInfo:{index:e,column:o,onMeasureDone:t}})},yb.prototype.focus=function(e){var t;return void 0===e&&(e=!1),!(null===(t=this._focusZone.current)||void 0===t||!t.focus(e))},yb.prototype._onRenderCheck=function(e){return gt.createElement(Xv,ht({},e))},yb.prototype._getRowDragDropOptions=function(){var e=this.props,t=e.item,o=e.itemIndex,n=e.dragDropEvents;return{eventMap:e.eventsToRegister,selectionIndex:o,context:{data:t,index:o},canDrag:n.canDrag,canDrop:n.canDrop,onDragStart:n.onDragStart,updateDropState:this._updateDroppingState,onDrop:n.onDrop,onDragEnd:n.onDragEnd,onDragOver:n.onDragOver}},yb);function yb(e){var i=hb.call(this,e)||this;return i._root=gt.createRef(),i._cellMeasurer=gt.createRef(),i._focusZone=gt.createRef(),i._onSelectionChanged=function(){var e=Cb(i.props);da(e,i.state.selectionState)||i.setState({selectionState:e})},i._updateDroppingState=function(e,t){var o=i.state.isDropping,n=i.props,r=n.dragDropEvents,n=n.item;e?r.onDragEnter&&(i._droppingClassNames=r.onDragEnter(n,t)):r.onDragLeave&&r.onDragLeave(n,t),o!==e&&i.setState({isDropping:e})},vi(i),i._events=new va(i),i.state={selectionState:Cb(e),columnMeasureInfo:void 0,isDropping:!1},i._droppingClassNames="",i}function Cb(e){var t=e.itemIndex,e=e.selection;return{isSelected:!(null==e||!e.isIndexSelected(t)),isSelectionModal:!(null===(t=null==e?void 0:e.isModal)||void 0===t||!t.call(e))}}var _b,Sb,xb=In(bb,zv,void 0,{scope:"DetailsRow"}),kb={root:"ms-GroupedList",compact:"ms-GroupedList--Compact",group:"ms-GroupedList-group",link:"ms-Link",listCell:"ms-List-cell"},wb={root:"ms-GroupHeader",compact:"ms-GroupHeader--compact",check:"ms-GroupHeader-check",dropIcon:"ms-GroupHeader-dropIcon",expand:"ms-GroupHeader-expand",isCollapsed:"is-collapsed",title:"ms-GroupHeader-title",isSelected:"is-selected",iconTag:"ms-Icon--Tag",group:"ms-GroupedList-group",isDropping:"is-dropping"},Ib="cubic-bezier(0.390, 0.575, 0.565, 1.000)";(K=_b=_b||{})[K.xSmall=0]="xSmall",K[K.small=1]="small",K[K.medium=2]="medium",K[K.large=3]="large",(U=Sb=Sb||{})[U.normal=0]="normal",U[U.large=1]="large";var Db,Tb,Eb,Pb,Rb=Fn(),Mb=(l(e0,Pb=gt.Component),e0.prototype.render=function(){var e=this.props,t=e.type,o=e.size,n=e.ariaLabel,r=e.ariaLive,i=e.styles,s=e.label,a=e.theme,l=e.className,c=e.labelPosition,u=n,e=ur(this.props,cr,["size"]),n=o;void 0===o&&void 0!==t&&(n=t===Sb.large?_b.large:_b.medium);c=Rb(i,{theme:a,size:n,className:l,labelPosition:c});return gt.createElement("div",ht({},e,{className:c.root}),gt.createElement("div",{className:c.circle}),s&>.createElement("div",{className:c.label},s),u&>.createElement("div",{role:"status","aria-live":r},gt.createElement(Mi,null,gt.createElement("div",{className:c.screenReaderText},u))))},e0.defaultProps={size:_b.medium,ariaLive:"polite",labelPosition:"bottom"},e0),Nb={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},Bb=Ao(function(){return O({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})}),Fb=In(Mb,function(e){var t=e.theme,o=e.size,n=e.className,r=e.labelPosition,i=t.palette,e=zo(Nb,t);return{root:[e.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},"top"===r&&{flexDirection:"column-reverse"},"right"===r&&{flexDirection:"row"},"left"===r&&{flexDirection:"row-reverse"},n],circle:[e.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+i.themeLight,borderTopColor:i.themePrimary,animationName:Bb(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:((n={})[Yt]=ht({borderTopColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)},o===_b.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],o===_b.small&&["ms-Spinner--small",{width:16,height:16}],o===_b.medium&&["ms-Spinner--medium",{width:20,height:20}],o===_b.large&&["ms-Spinner--large",{width:28,height:28}]],label:[e.label,t.fonts.small,{color:i.themePrimary,margin:"8px 0 0",textAlign:"center"},"top"===r&&{margin:"0 0 8px"},"right"===r&&{margin:"0 0 0 8px"},"left"===r&&{margin:"0 8px 0 0"}],screenReaderText:So}},void 0,{scope:"Spinner"}),Ab=Fn(),G=(l($b,Eb=gt.Component),$b.getDerivedStateFromProps=function(e,t){if(e.group){var o=e.group.isCollapsed,n=e.isGroupLoading,e=!o&&n&&n(e.group);return ht(ht({},t),{isCollapsed:o||!1,isLoadingVisible:e||!1})}return t},$b.prototype.render=function(){var e=this.props,t=e.group,o=e.groupLevel,n=void 0===o?0:o,r=e.viewport,i=e.selectionMode,s=e.loadingText,a=e.isSelected,l=void 0!==a&&a,c=e.selected,u=void 0!==c&&c,d=e.indentWidth,p=e.onRenderTitle,h=void 0===p?this._onRenderTitle:p,m=e.onRenderGroupHeaderCheckbox,g=e.isCollapsedGroupSelectVisible,f=void 0===g||g,v=e.expandButtonProps,b=e.expandButtonIcon,y=e.selectAllButtonProps,C=e.theme,_=e.styles,S=e.className,x=e.compact,o=e.ariaPosInSet,a=e.ariaSetSize,c=e.ariaRowIndex,p=e.useFastIcons?this._fastDefaultCheckboxRender:this._defaultCheckboxRender,g=m?Ma(m,p):p,e=this.state,m=e.isCollapsed,p=e.isLoadingVisible,e=i===dv.multiple,f=e&&(f||!(t&&t.isCollapsed)),u=u||l,l=Pn(C);return this._classNames=Ab(_,{theme:C,className:S,selected:u,isCollapsed:m,compact:x}),t?gt.createElement("div",{className:this._classNames.root,style:r?{minWidth:r.width}:{},onClick:this._onHeaderClick,role:"row","aria-setsize":a,"aria-posinset":o,"aria-rowindex":c,"data-is-focusable":!0,onKeyUp:this._onKeyUp,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabel?void 0:this._id,"aria-expanded":!this.state.isCollapsed,"aria-selected":e?u:void 0,"aria-level":n+1},gt.createElement("div",{className:this._classNames.groupHeaderContainer,role:"presentation"},f?gt.createElement("div",{role:"gridcell"},gt.createElement("button",ht({"data-is-focusable":!1,type:"button",className:this._classNames.check,role:"checkbox",id:this._id+"-check","aria-checked":u,"aria-labelledby":this._id+"-check "+this._id,"data-selection-toggle":!0,onClick:this._onToggleSelectGroupClick},y),g({checked:u,theme:C},g))):i!==dv.none&>.createElement(Mv,{indentWidth:48,count:1}),gt.createElement(Mv,{indentWidth:d,count:n}),gt.createElement("div",{className:this._classNames.dropIcon,role:"presentation"},gt.createElement(Vr,{iconName:"Tag"})),gt.createElement("div",{role:"gridcell"},gt.createElement("button",ht({"data-is-focusable":!1,type:"button",className:this._classNames.expand,onClick:this._onToggleClick,"aria-expanded":!this.state.isCollapsed},v),gt.createElement(Vr,{className:this._classNames.expandIsCollapsed,iconName:b||(l?"ChevronLeftMed":"ChevronRightMed")}))),h(this.props,this._onRenderTitle),p&>.createElement(Fb,{label:s}))):null},$b.prototype._defaultCheckboxRender=function(e){return gt.createElement(qh,{checked:e.checked})},$b.prototype._fastDefaultCheckboxRender=function(e){return gt.createElement(Lb,{theme:e.theme,checked:e.checked})},$b.defaultProps={expandButtonProps:{"aria-label":"expand collapse group"}},$b),Lb=gt.memo(function(e){return gt.createElement(qh,{theme:e.theme,checked:e.checked,className:e.className,useFastIcons:!0})}),Hb=In(G,function(e){var t,o=e.theme,n=e.className,r=e.selected,i=e.isCollapsed,s=e.compact,a=Lv.cellLeftPadding,l=s?40:48,c=o.semanticColors,u=o.palette,d=o.fonts,p=zo(wb,o),h=[bo(o),{cursor:"default",background:"none",backgroundColor:"transparent",border:"none",padding:0}];return{root:[p.root,bo(o),o.fonts.medium,{borderBottom:"1px solid "+c.listBackground,cursor:"default",userSelect:"none",selectors:((t={":hover":{background:c.listItemBackgroundHovered,color:c.actionLinkHovered}})["&:hover ."+p.check]={opacity:1},t["."+go+" &:focus ."+p.check]={opacity:1},t[":global(."+p.group+"."+p.isDropping+")"]={selectors:((e={})["& > ."+p.root+" ."+p.dropIcon]={transition:"transform "+we.durationValue4+" cubic-bezier(0.075, 0.820, 0.165, 1.000) opacity "+we.durationValue1+" "+Ib,transitionDelay:we.durationValue3,opacity:1,transform:"rotate(0.2deg) scale(1);"},e["."+p.check]={opacity:0},e)},t)},r&&[p.isSelected,{background:c.listItemBackgroundChecked,selectors:((c={":hover":{background:c.listItemBackgroundCheckedHovered}})[""+p.check]={opacity:1},c)}],s&&[p.compact,{border:"none"}],n],groupHeaderContainer:[{display:"flex",alignItems:"center",height:l}],headerCount:[{padding:"0px 4px"}],check:[p.check,h,{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:1,marginTop:-1,opacity:0,width:48,height:l,selectors:((n={})["."+go+" &:focus"]={opacity:1},n)}],expand:[p.expand,h,{display:"flex",alignItems:"center",justifyContent:"center",fontSize:d.small.fontSize,width:36,height:l,color:r?u.neutralPrimary:u.neutralSecondary,selectors:{":hover":{backgroundColor:r?u.neutralQuaternary:u.neutralLight},":active":{backgroundColor:r?u.neutralTertiaryAlt:u.neutralQuaternaryAlt}}}],expandIsCollapsed:[i?[p.isCollapsed,{transform:"rotate(0deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}]:{transform:Pn(o)?"rotate(-90deg)":"rotate(90deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}],title:[p.title,{paddingLeft:a,fontSize:(s?d.medium:d.mediumPlus).fontSize,fontWeight:i?Fe.regular:Fe.semibold,cursor:"pointer",outline:0,whiteSpace:"nowrap",textOverflow:"ellipsis"}],dropIcon:[p.dropIcon,{position:"absolute",left:-26,fontSize:Ae.large,color:u.neutralSecondary,transition:"transform "+we.durationValue2+" cubic-bezier(0.600, -0.280, 0.735, 0.045), opacity "+we.durationValue4+" "+Ib,opacity:0,transform:"rotate(0.2deg) scale(0.65)",transformOrigin:"10px 10px",selectors:((u={})[":global(."+p.iconTag+")"]={position:"absolute"},u)}]}},void 0,{scope:"GroupHeader"}),Ob={root:"ms-GroupShowAll",link:"ms-Link"},zb=Fn(),Wb=In(function(e){var t=e.group,o=e.groupLevel,n=e.showAllLinkText,r=void 0===n?"Show All":n,i=e.styles,n=e.theme,s=e.onToggleSummarize,i=zb(i,{theme:n}),n=(0,gt.useCallback)(function(e){s(t),e.stopPropagation(),e.preventDefault()},[s,t]);return t?gt.createElement("div",{className:i.root},gt.createElement(Mv,{count:o}),gt.createElement(ua,{onClick:n},r)):null},function(e){var t=e.theme,o=t.fonts,e=zo(Ob,t);return{root:[e.root,{position:"relative",padding:"10px 84px",cursor:"pointer",selectors:((t={})["."+e.link]={fontSize:o.small.fontSize},t)}]}},void 0,{scope:"GroupShowAll"}),Vb={root:"ms-groupFooter"},Kb=Fn(),Gb=In(function(e){var t=e.group,o=e.groupLevel,n=e.footerText,r=e.indentWidth,i=e.styles,e=e.theme,e=Kb(i,{theme:e});return t&&n?gt.createElement("div",{className:e.root},gt.createElement(Mv,{indentWidth:r,count:o}),n):null},function(e){var t=e.theme,o=e.className,e=zo(Vb,t);return{root:[t.fonts.medium,e.root,{position:"relative",padding:"5px 38px"},o]}},void 0,{scope:"GroupFooter"}),Ub=(l(Jb,Tb=gt.Component),Jb.prototype.componentDidMount=function(){var e=this.props,t=e.dragDropHelper,e=e.selection;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())),e&&this._events.on(e,gv,this._onSelectionChange)},Jb.prototype.componentWillUnmount=function(){this._events.dispose(),this._dragDropSubscription&&this._dragDropSubscription.dispose()},Jb.prototype.componentDidUpdate=function(e){this.props.group===e.group&&this.props.groupIndex===e.groupIndex&&this.props.dragDropHelper===e.dragDropHelper||(this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this.props.dragDropHelper&&this._root.current&&(this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())))},Jb.prototype.render=function(){var e=this.props,t=e.getGroupItemLimit,o=e.group,n=e.groupIndex,r=e.headerProps,i=e.showAllProps,s=e.footerProps,a=e.viewport,l=e.selectionMode,c=e.onRenderGroupHeader,u=void 0===c?this._onRenderGroupHeader:c,d=e.onRenderGroupShowAll,p=void 0===d?this._onRenderGroupShowAll:d,h=e.onRenderGroupFooter,m=void 0===h?this._onRenderGroupFooter:h,g=e.onShouldVirtualize,f=e.groupedListClassNames,v=e.groups,b=e.compact,c=e.listProps,d=void 0===c?{}:c,h=this.state.isSelected,e=o&&t?t(o):1/0,c=o&&!o.children&&!o.isCollapsed&&!o.isShowingAll&&(o.count>e||o.hasMoreData),t=o&&o.children&&0<o.children.length,d=d.version,b={group:o,groupIndex:n,groupLevel:o?o.level:0,isSelected:h,selected:h,viewport:a,selectionMode:l,groups:v,compact:b},n={groupedListId:this._id,ariaSetSize:v?v.length:void 0,ariaPosInSet:void 0!==n?n+1:void 0},n=ht(ht(ht({},r),b),n),i=ht(ht({},i),b),s=ht(ht({},s),b),b=!!this.props.dragDropHelper&&this._getGroupDragDropOptions().canDrag(o)&&!!this.props.dragDropEvents.canDragGroups;return gt.createElement("div",ht({ref:this._root},b&&{draggable:!0},{className:Pr(f&&f.group,this._getDroppingClassName()),role:"presentation"}),u(n,this._onRenderGroupHeader),o&&o.isCollapsed?null:t?gt.createElement(Wf,{role:"presentation",ref:this._list,items:o?o.children:[],onRenderCell:this._renderSubGroup,getItemCountForPage:this._returnOne,onShouldVirtualize:g,version:d,id:this._id}):this._onRenderGroup(e),o&&o.isCollapsed?null:c&&p(i,this._onRenderGroupShowAll),m(s,this._onRenderGroupFooter))},Jb.prototype.forceUpdate=function(){Tb.prototype.forceUpdate.call(this),this.forceListUpdate()},Jb.prototype.forceListUpdate=function(){var e,t=this.props.group;if(this._list.current){if(this._list.current.forceUpdate(),t&&t.children&&0<t.children.length)for(var o=t.children.length,n=0;n<o;n++)(e=this._list.current.pageRefs["subGroup_"+String(n)])&&e.forceListUpdate()}else(e=this._subGroupRefs["subGroup_"+String(0)])&&e.forceListUpdate()},Jb.prototype._onSelectionChange=function(){var e=this.props,t=e.group,e=e.selection;e&&t&&((t=e.isRangeSelected(t.startIndex,t.count))!==this.state.isSelected&&this.setState({isSelected:t}))},Jb.prototype._onRenderGroupCell=function(o,n,r){return function(e,t){return o(n,e,t,r)}},Jb.prototype._onRenderGroup=function(e){var t=this.props,o=t.group,n=t.items,r=t.onRenderCell,i=t.listProps,s=t.groupNestingDepth,a=t.onShouldVirtualize,l=t.groupProps,c=o&&!o.isShowingAll?o.count:n.length,t=o?o.startIndex:0;return gt.createElement(Wf,ht({role:l&&l.role?l.role:"rowgroup","aria-label":null==o?void 0:o.name,items:n,onRenderCell:this._onRenderGroupCell(r,s,o),ref:this._list,renderCount:Math.min(c,e),startIndex:t,onShouldVirtualize:a,id:this._id},i))},Jb.prototype._returnOne=function(){return 1},Jb.prototype._getGroupKey=function(e,t){return"group-"+(e&&e.key?e.key:String(e.level)+String(t))},Jb.prototype._getDroppingClassName=function(){var e=this.state.isDropping,t=this.props,o=t.group,t=t.groupedListClassNames;return Pr((e=!(!o||!e))&&this._droppingClassName,e&&"is-dropping",e&&t&&t.groupIsDropping)},Jb),jb=Fn(),qb=Hv.rowHeight,Yb=Hv.compactRowHeight,Zb=(l(Qb,Db=gt.Component),Qb.getDerivedStateFromProps=function(e,t){var o=e.groups,n=e.selectionMode,r=e.compact,i=e.items,s=e.listProps,a=s&&s.version,e=ht(ht({},t),{selectionMode:n,compact:r,groups:o,listProps:s}),s=!1;return a===(t.listProps&&t.listProps.version)&&i===t.items&&o===t.groups&&n===t.selectionMode&&r===t.compact||(s=!0),o!==t.groups&&(e=ht(ht({},e),{groups:o})),e=(s=n!==t.selectionMode||r!==t.compact?!0:s)?ht(ht({},e),{version:{}}):e},Qb.prototype.scrollToIndex=function(e,t,o){this._list.current&&this._list.current.scrollToIndex(e,t,o)},Qb.prototype.getStartItemIndexInView=function(){return this._list.current.getStartItemIndexInView()||0},Qb.prototype.componentDidMount=function(){var e=this.props,t=e.groupProps,e=e.groups;t&&t.isAllGroupsCollapsed&&this._setGroupsCollapsedState(void 0===e?[]:e,t.isAllGroupsCollapsed)},Qb.prototype.render=function(){var e=this.props,t=e.className,o=e.usePageCache,n=e.onShouldVirtualize,r=e.theme,i=e.role,s=void 0===i?"treegrid":i,a=e.styles,l=e.compact,c=e.focusZoneProps,u=void 0===c?{}:c,i=e.rootListProps,c=void 0===i?{}:i,e=this.state,i=e.groups,e=e.version;this._classNames=jb(a,{theme:r,className:t,compact:l});l=u.shouldEnterInnerZone,l=void 0===l?this._isInnerZoneKeystroke:l;return gt.createElement(Zs,ht({direction:Ei.vertical,"data-automationid":"GroupedList","data-is-scrollable":"false",role:"presentation"},u,{shouldEnterInnerZone:l,className:Pr(this._classNames.root,u.className)}),i?gt.createElement(Wf,ht({ref:this._list,role:s,items:i,onRenderCell:this._renderGroup,getItemCountForPage:this._returnOne,getPageHeight:this._getPageHeight,getPageSpecification:this._getPageSpecification,usePageCache:o,onShouldVirtualize:n,version:e},c)):this._renderGroup(void 0,0))},Qb.prototype.forceUpdate=function(){Db.prototype.forceUpdate.call(this),this._forceListUpdates()},Qb.prototype.toggleCollapseAll=function(e){var t=this.state.groups,o=void 0===t?[]:t,t=this.props.groupProps,t=t&&t.onToggleCollapseAll;0<o.length&&(t&&t(e),this._setGroupsCollapsedState(o,e),this._updateIsSomeGroupExpanded(),this.forceUpdate())},Qb.prototype._setGroupsCollapsedState=function(e,t){for(var o=0;o<e.length;o++)e[o].isCollapsed=t},Qb.prototype._returnOne=function(){return 1},Qb.prototype._getGroupKey=function(e,t){return"group-"+(e&&e.key?e.key:String(t))},Qb.prototype._getGroupNestingDepth=function(){for(var e=0,t=this.state.groups;t&&0<t.length;)e++,t=t[0].children;return e},Qb.prototype._forceListUpdates=function(e){this.setState({version:{}})},Qb.prototype._computeIsSomeGroupExpanded=function(e){var t=this;return!(!e||!e.some(function(e){return e.children?t._computeIsSomeGroupExpanded(e.children):!e.isCollapsed}))},Qb.prototype._updateIsSomeGroupExpanded=function(){var e=this.state.groups,t=this.props.onGroupExpandStateChanged,e=this._computeIsSomeGroupExpanded(e);this._isSomeGroupExpanded!==e&&(t&&t(e),this._isSomeGroupExpanded=e)},Qb.defaultProps={selectionMode:dv.multiple,isHeaderVisible:!0,groupProps:{},compact:!1},Qb),Xb=In(Zb,function(e){var t=e.theme,o=e.className,n=e.compact,r=t.palette,e=zo(kb,t);return{root:[e.root,t.fonts.small,{position:"relative",selectors:((t={})["."+e.listCell]={minHeight:38},t)},n&&[e.compact,{selectors:((n={})["."+e.listCell]={minHeight:32},n)}],o],group:[e.group,{transition:"background-color "+we.durationValue2+" cubic-bezier(0.445, 0.050, 0.550, 0.950)"}],groupIsDropping:{backgroundColor:r.neutralLight}}},void 0,{scope:"GroupedList"});function Qb(e){var y=Db.call(this,e)||this;y._list=gt.createRef(),y._renderGroup=function(e,t){var o=y.props,n=o.dragDropEvents,r=o.dragDropHelper,i=o.eventsToRegister,s=o.groupProps,a=o.items,l=o.listProps,c=o.onRenderCell,u=o.selectionMode,d=o.selection,p=o.viewport,h=o.onShouldVirtualize,m=o.groups,g=o.compact,f={onToggleSelectGroup:y._onToggleSelectGroup,onToggleCollapse:y._onToggleCollapse,onToggleSummarize:y._onToggleSummarize},v=ht(ht({},s.headerProps),f),b=ht(ht({},s.showAllProps),f),o=ht(ht({},s.footerProps),f),f=y._getGroupNestingDepth();if(!s.showEmptyGroups&&e&&0===e.count)return null;l=ht(ht({},l||{}),{version:y.state.version});return gt.createElement(Ub,{key:y._getGroupKey(e,t),dragDropEvents:n,dragDropHelper:r,eventsToRegister:i,footerProps:o,getGroupItemLimit:s&&s.getGroupItemLimit,group:e,groupIndex:t,groupNestingDepth:f,groupProps:s,headerProps:v,listProps:l,items:a,onRenderCell:c,onRenderGroupHeader:s.onRenderHeader,onRenderGroupShowAll:s.onRenderShowAll,onRenderGroupFooter:s.onRenderFooter,selectionMode:u,selection:d,showAllProps:b,viewport:p,onShouldVirtualize:h,groupedListClassNames:y._classNames,groups:m,compact:g})},y._getDefaultGroupItemLimit=function(e){return e.children&&0<e.children.length?e.children.length:e.count},y._getGroupItemLimit=function(e){var t=y.props.groupProps;return(t&&t.getGroupItemLimit?t.getGroupItemLimit:y._getDefaultGroupItemLimit)(e)},y._getGroupHeight=function(e){var t=y.props.compact?Yb:qb;return t+(e.isCollapsed?0:t*y._getGroupItemLimit(e))},y._getPageHeight=function(e){var t=y.state.groups,o=y.props.getGroupHeight,o=void 0===o?y._getGroupHeight:o,t=t&&t[e];return t?o(t,e):0},y._onToggleCollapse=function(e){var t=y.props.groupProps,t=t&&t.headerProps&&t.headerProps.onToggleCollapse;e&&(t&&t(e),e.isCollapsed=!e.isCollapsed,y._updateIsSomeGroupExpanded(),y.forceUpdate())},y._onToggleSelectGroup=function(e){var t=y.props,o=t.selection,t=t.selectionMode;e&&o&&t===dv.multiple&&o.toggleRangeSelected(e.startIndex,e.count)},y._isInnerZoneKeystroke=function(e){return e.which===Mn(Tn.right)},y._onToggleSummarize=function(e){var t=y.props.groupProps,t=t&&t.showAllProps&&t.showAllProps.onToggleSummarize;t?t(e):(e&&(e.isShowingAll=!e.isShowingAll),y.forceUpdate())},y._getPageSpecification=function(e){var t=y.state.groups,e=t&&t[e];return{key:e&&e.key}},vi(y),y._isSomeGroupExpanded=y._computeIsSomeGroupExpanded(e.groups);var t=e.listProps,t=(void 0===t?{}:t).version;return y.state={groups:e.groups,items:e.items,listProps:e.listProps,version:void 0===t?{}:t},y}function Jb(e){var x=Tb.call(this,e)||this;x._root=gt.createRef(),x._list=gt.createRef(),x._subGroupRefs={},x._droppingClassName="",x._onRenderGroupHeader=function(e){return gt.createElement(Hb,ht({},e))},x._onRenderGroupShowAll=function(e){return gt.createElement(Wb,ht({},e))},x._onRenderGroupFooter=function(e){return gt.createElement(Gb,ht({},e))},x._renderSubGroup=function(e,t){var o=x.props,n=o.dragDropEvents,r=o.dragDropHelper,i=o.eventsToRegister,s=o.getGroupItemLimit,a=o.groupNestingDepth,l=o.groupProps,c=o.items,u=o.headerProps,d=o.showAllProps,p=o.footerProps,h=o.listProps,m=o.onRenderCell,g=o.selection,f=o.selectionMode,v=o.viewport,b=o.onRenderGroupHeader,y=o.onRenderGroupShowAll,C=o.onRenderGroupFooter,_=o.onShouldVirtualize,S=o.group,o=o.compact,a=e.level?e.level+1:a;return!e||0<e.count||l&&l.showEmptyGroups?gt.createElement(Jb,{ref:function(e){return x._subGroupRefs["subGroup_"+t]=e},key:x._getGroupKey(e,t),dragDropEvents:n,dragDropHelper:r,eventsToRegister:i,footerProps:p,getGroupItemLimit:s,group:e,groupIndex:t,groupNestingDepth:a,groupProps:l,headerProps:u,items:c,listProps:h,onRenderCell:m,selection:g,selectionMode:f,showAllProps:d,viewport:v,onRenderGroupHeader:b,onRenderGroupShowAll:y,onRenderGroupFooter:C,onShouldVirtualize:_,groups:S?S.children:[],compact:o}):null},x._getGroupDragDropOptions=function(){var e=x.props,t=e.group,o=e.groupIndex,n=e.dragDropEvents;return{eventMap:e.eventsToRegister,selectionIndex:-1,context:{data:t,index:o,isGroup:!0},updateDropState:x._updateDroppingState,canDrag:n.canDrag,canDrop:n.canDrop,onDrop:n.onDrop,onDragStart:n.onDragStart,onDragEnter:n.onDragEnter,onDragLeave:n.onDragLeave,onDragEnd:n.onDragEnd,onDragOver:n.onDragOver}},x._updateDroppingState=function(e,t){var o=x.state.isDropping,n=x.props,r=n.dragDropEvents,n=n.group;o!==e&&(o?r&&r.onDragLeave&&r.onDragLeave(n,t):r&&r.onDragEnter&&(x._droppingClassName=r.onDragEnter(n,t)),x.setState({isDropping:e}))};var t=e.selection,e=e.group;return vi(x),x._id=Ss("GroupedListSection"),x.state={isDropping:!1,isSelected:!(!t||!e)&&t.isRangeSelected(e.startIndex,e.count)},x._events=new va(x),x}function $b(e){var r=Eb.call(this,e)||this;return r._toggleCollapse=function(){var e=r.props,t=e.group,o=e.onToggleCollapse,n=e.isGroupLoading,e=!r.state.isCollapsed,n=!e&&n&&n(t);r.setState({isCollapsed:e,isLoadingVisible:n}),o&&o(t)},r._onKeyUp=function(e){var t=r.props,o=t.group,t=t.onGroupHeaderKeyUp;t&&t(e,o),e.defaultPrevented||(o=r.state.isCollapsed&&e.which===Mn(Tn.right,r.props.theme),(!r.state.isCollapsed&&e.which===Mn(Tn.left,r.props.theme)||o)&&(r._toggleCollapse(),e.stopPropagation(),e.preventDefault()))},r._onToggleClick=function(e){r._toggleCollapse(),e.stopPropagation(),e.preventDefault()},r._onToggleSelectGroupClick=function(e){var t=r.props,o=t.onToggleSelectGroup,t=t.group;o&&o(t),e.preventDefault(),e.stopPropagation()},r._onHeaderClick=function(){var e=r.props,t=e.group,o=e.onGroupHeaderClick,e=e.onToggleSelectGroup;o?o(t):e&&e(t)},r._onRenderTitle=function(e){var t=e.group,e=e.ariaColSpan;return t?gt.createElement("div",{className:r._classNames.title,id:r._id,role:"gridcell","aria-colspan":e},gt.createElement("span",null,t.name),gt.createElement("span",{className:r._classNames.headerCount},"(",t.count,t.hasMoreData&&"+",")")):null},r._id=Ss("GroupHeader"),r.state={isCollapsed:r.props.group&&r.props.group.isCollapsed,isLoadingVisible:!1},r}function e0(){return null!==Pb&&Pb.apply(this,arguments)||this}function t0(e){var t;return e&&(e===window?t={left:0,top:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:e.getBoundingClientRect&&(t=e.getBoundingClientRect())),t}function o0(t){return l(e,o=pu),e.prototype.componentDidMount=function(){var e=this,t=this.props,o=t.delayFirstMeasure,n=t.disableResizeObserver,r=t.skipViewportMeasures,t=qe(this._root.current);this._onAsyncResize=this._async.debounce(this._onAsyncResize,500,{leading:!1}),r||(!n&&this._isResizeObserverAvailable()?this._registerResizeObserver():this._events.on(t,"resize",this._onAsyncResize),o?this._async.setTimeout(function(){e._updateViewport()},500):this._updateViewport())},e.prototype.componentDidUpdate=function(e){var t=e.skipViewportMeasures,o=this.props,n=o.disableResizeObserver,e=o.skipViewportMeasures,o=qe(this._root.current);e!==t&&(e?(this._unregisterResizeObserver(),this._events.off(o,"resize",this._onAsyncResize)):(!n&&this._isResizeObserverAvailable()?this._viewportResizeObserver||this._registerResizeObserver():this._events.on(o,"resize",this._onAsyncResize),this._updateViewport()))},e.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose(),this._unregisterResizeObserver()},e.prototype.render=function(){var e=this.state.viewport,e=0<e.width&&0<e.height?e:void 0;return gt.createElement("div",{className:"ms-Viewport",ref:this._root,style:{minWidth:1,minHeight:1}},gt.createElement(t,ht({ref:this._updateComposedComponentRef,viewport:e},this.props)))},e.prototype.forceUpdate=function(){this._updateViewport(!0)},e.prototype._onAsyncResize=function(){this._updateViewport()},e.prototype._isResizeObserverAvailable=function(){var e=qe(this._root.current);return e&&e.ResizeObserver},e;function e(e){var r=o.call(this,e)||this;return r._root=gt.createRef(),r._registerResizeObserver=function(){var e=qe(r._root.current);r._viewportResizeObserver=new e.ResizeObserver(r._onAsyncResize),r._viewportResizeObserver.observe(r._root.current)},r._unregisterResizeObserver=function(){r._viewportResizeObserver&&(r._viewportResizeObserver.disconnect(),delete r._viewportResizeObserver)},r._updateViewport=function(e){var t=r.state.viewport,o=r._root.current,n=t0(Ns(o)),o=t0(o);((o&&o.width)!==t.width||(n&&n.height)!==t.height)&&r._resizeAttempts<3&&o&&n?(r._resizeAttempts++,r.setState({viewport:{width:o.width,height:n.height}},function(){r._updateViewport(e)})):(r._resizeAttempts=0,e&&r._composedComponentInstance&&r._composedComponentInstance.forceUpdate())},r._async=new xi(r),r._events=new va(r),r._resizeAttempts=0,r.state={viewport:{width:0,height:0}},r}var o}function n0(i){var s,a=i.selection,e=i.ariaLabelForListHeader,t=i.ariaLabelForSelectAllCheckbox,o=i.ariaLabelForSelectionColumn,n=i.className,l=i.checkboxVisibility,c=i.compact,r=i.constrainMode,u=i.dragDropEvents,d=i.groups,p=i.groupProps,h=i.indentWidth,m=i.items,g=i.isPlaceholderData,f=i.isHeaderVisible,v=i.layoutMode,b=i.onItemInvoked,y=i.onItemContextMenu,C=i.onColumnHeaderClick,_=i.onColumnHeaderContextMenu,S=void 0===(We=i.selectionMode)?a.mode:We,x=i.selectionPreservedOnEmptyClick,k=i.selectionZoneProps,w=i.ariaLabel,I=i.ariaLabelForGrid,D=i.rowElementEventMap,T=void 0!==(Ve=i.shouldApplyApplicationRole)&&Ve,E=i.getKey,P=i.listProps,R=i.usePageCache,M=i.onShouldVirtualize,N=i.viewport,B=i.minimumPixelsForDrag,F=i.getGroupHeight,A=i.styles,L=i.theme,H=void 0===(qe=i.cellStyleProps)?Lv:qe,O=i.onRenderCheckbox,z=i.useFastIcons,W=i.dragDropHelper,V=i.adjustedColumns,K=i.isCollapsed,G=i.isSizing,U=i.isSomeGroupExpanded,j=i.version,q=i.rootRef,Y=i.listRef,Z=i.focusZoneRef,X=i.columnReorderOptions,Q=i.groupedListRef,J=i.headerRef,$=i.onGroupExpandStateChanged,ee=i.onColumnIsSizingChanged,te=i.onRowDidMount,oe=i.onRowWillUnmount,ne=i.disableSelectionZone,re=i.onColumnResized,ie=i.onColumnAutoResized,se=i.onToggleCollapse,ae=i.onActiveRowChanged,le=i.onBlur,ce=i.rowElementEventMap,ue=i.onRenderMissingItem,de=i.onRenderItemColumn,pe=i.getCellValueKey,he=i.getRowAriaLabel,me=i.getRowAriaDescribedBy,ge=i.checkButtonAriaLabel,fe=i.checkButtonGroupAriaLabel,ve=i.checkboxCellClassName,be=i.useReducedRowRenderer,ye=i.enableUpdateAnimations,Ce=i.enterModalSelectionOnTouch,_e=i.onRenderDefaultRow,Se=i.selectionZoneRef,xe=i.focusZoneProps,ke=i.role||"grid",we=Ss("row"),Ie=function(){for(var e=0,t=d;t&&0<t.length;)e++,t=t[0].children;return e}(),De=(s=d,gt.useMemo(function(){var e={};if(s)for(var t=1,o=1,n=0,r=s;n<r.length;n++){var i=r[n];e[i.key]={numOfGroupHeadersBeforeItem:o,totalRowCount:t},o++,t+=i.count+1}return e},[s])),Te=gt.useMemo(function(){return ht({renderedWindowsAhead:G?0:2,renderedWindowsBehind:G?0:2,getKey:E,version:j},P)},[G,E,j,P]),Ee=Yv.none;S===dv.single&&(Ee=Yv.hidden),S===dv.multiple&&(Ee=(Je=void 0===(Je=p&&p.headerProps&&p.headerProps.isCollapsedGroupSelectVisible)?!0:Je)||!d||U?Yv.visible:Yv.hidden),l===kv.hidden&&(Ee=Yv.none);var Pe=gt.useCallback(function(e){return gt.createElement(mb,ht({},e))},[]),Re=gt.useCallback(function(){return null},[]),Me=i.onRenderDetailsHeader,Ne=gt.useMemo(function(){return Me?Ma(Me,Pe):Pe},[Me,Pe]),Be=i.onRenderDetailsFooter,Fe=gt.useMemo(function(){return Be?Ma(Be,Re):Re},[Be,Re]),Ae=gt.useMemo(function(){return{columns:V,groupNestingDepth:Ie,selection:a,selectionMode:S,viewport:N,checkboxVisibility:l,indentWidth:h,cellStyleProps:H}},[V,Ie,a,S,N,l,h,H]),Le=X&&X.onDragEnd,He=gt.useCallback(function(e,t){var o=e.dropLocation,e=Sv.outside;Le&&(o&&o!==Sv.header?e=o:q.current&&(o=q.current.getBoundingClientRect(),t.clientX>o.left&&t.clientX<o.right&&t.clientY>o.top&&t.clientY<o.bottom&&(e=Sv.surface)),Le(e))},[Le,q]),Oe=gt.useMemo(function(){if(X)return ht(ht({},X),{onColumnDragEnd:He})},[X,He]),ze=(f?1:0)+function(){var e=0;if(d)for(var t,o=$e([],d);o&&0<o.length;)++e,(t=o.pop())&&t.children&&o.push.apply(o,t.children);return e}()+(m?m.length:0),We=(Ee!==Yv.none?1:0)+(V?V.length:0)+(d?1:0),Ve=gt.useMemo(function(){return i0(A,{theme:L,compact:c,isFixed:v===xv.fixedColumns,isHorizontalConstrained:r===_v.horizontalConstrained,className:n})},[A,L,c,v,r,n]),Ke=p&&p.onRenderFooter,Ge=gt.useMemo(function(){return Ke?function(e,t){return Ke(ht(ht({},e),{columns:V,groupNestingDepth:Ie,indentWidth:h,selection:a,selectionMode:S,viewport:N,checkboxVisibility:l,cellStyleProps:H}),t)}:void 0},[Ke,V,Ie,h,a,S,N,l,H]),Ue=p&&p.onRenderHeader,je=gt.useMemo(function(){return Ue?function(e,t){var o=e.groupIndex,n=void 0===o||null===(n=null===(n=e.groups)||void 0===n?void 0:n[o])||void 0===n?void 0:n.key,n=void 0!==n&&De[n]?De[n].totalRowCount:0;return Ue(ht(ht({},e),{columns:V,groupNestingDepth:Ie,indentWidth:h,selection:a,selectionMode:l!==kv.hidden?S:dv.none,viewport:N,checkboxVisibility:l,cellStyleProps:H,ariaColSpan:V.length,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:void 0,ariaRowIndex:void 0!==o?n+(f?1:0):void 0}),t)}:function(e,t){var o=e.groupIndex,n=void 0===o||null===(n=null===(n=e.groups)||void 0===n?void 0:n[o])||void 0===n?void 0:n.key,n=void 0!==n&&De[n]?De[n].totalRowCount:0;return t(ht(ht({},e),{ariaColSpan:V.length,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:void 0,ariaRowIndex:void 0!==o?n+(f?1:0):void 0}))}},[Ue,V,Ie,h,f,a,S,N,l,H,De]),qe=gt.useMemo(function(){var e;return ht(ht({},p),{role:"grid"===ke?"rowgroup":"presentation",onRenderFooter:Ge,onRenderHeader:je,headerProps:ht(ht({},null==p?void 0:p.headerProps),{selectAllButtonProps:ht({"aria-label":fe},null===(e=null==p?void 0:p.headerProps)||void 0===e?void 0:e.selectAllButtonProps)})})},[p,Ge,je,fe,ke]),Ye=xl(function(){return Ao(function(e){var t=0;return e.forEach(function(e){return t+=e.calculatedWidth||e.minWidth}),t})}),Ze=p&&p.collapseAllVisibility,Xe=gt.useMemo(function(){return Ye(V)},[V,Ye]),Qe=gt.useCallback(function(e,t,o,n){var r=i.onRenderRow?Ma(i.onRenderRow,_e):_e,n=n?n.key:void 0,n=n&&De[n]?De[n].numOfGroupHeadersBeforeItem:0,e={item:t,itemIndex:o,flatIndexOffset:(f?2:1)+n,compact:c,columns:V,groupNestingDepth:e,id:we+"-"+o,selectionMode:S,selection:a,onDidMount:te,onWillUnmount:oe,onRenderItemColumn:de,getCellValueKey:pe,eventsToRegister:ce,dragDropEvents:u,dragDropHelper:W,viewport:N,checkboxVisibility:l,collapseAllVisibility:Ze,getRowAriaLabel:he,getRowAriaDescribedBy:me,checkButtonAriaLabel:ge,checkboxCellClassName:ve,useReducedRowRenderer:be,indentWidth:h,cellStyleProps:H,onRenderDetailsCheckbox:O,enableUpdateAnimations:ye,rowWidth:Xe,useFastIcons:z,role:"grid"===ke?void 0:"presentation"};return t?r(e):ue?ue(o,e):null},[c,V,S,a,we,te,oe,de,pe,ce,u,W,N,l,Ze,he,me,f,ge,ve,be,h,H,O,ye,z,_e,ue,i.onRenderRow,Xe,ke,De]),Je=gt.useCallback(function(o){return function(e,t){return Qe(o,e,t)}},[Qe]),U=gt.useCallback(function(e){return e.which===Mn(Tn.right,L)},[L]),le=ht(ht({},xe),{componentRef:xe&&xe.componentRef?xe.componentRef:Z,className:Ve.focusZone,direction:xe?xe.direction:Ei.vertical,shouldEnterInnerZone:xe&&xe.shouldEnterInnerZone?xe.shouldEnterInnerZone:U,onActiveElementChanged:xe&&xe.onActiveElementChanged?xe.onActiveElementChanged:ae,shouldRaiseClicksOnEnter:!1,onBlur:xe&&xe.onBlur?xe.onBlur:le}),R=d?gt.createElement(Xb,{focusZoneProps:le,componentRef:Q,groups:d,groupProps:qe,items:m,onRenderCell:Qe,role:"presentation",selection:a,selectionMode:l!==kv.hidden?S:dv.none,dragDropEvents:u,dragDropHelper:W,eventsToRegister:D,listProps:Te,onGroupExpandStateChanged:$,usePageCache:R,onShouldVirtualize:M,getGroupHeight:F,compact:c}):gt.createElement(Zs,ht({},le),gt.createElement(Wf,ht({ref:Y,role:"presentation",items:m,onRenderCell:Je(0),usePageCache:R,onShouldVirtualize:M},Te))),M=gt.useCallback(function(e){e.which===Tn.down&&Z.current&&Z.current.focus()&&(0===a.getSelectedIndices().length&&a.setIndexSelected(0,!0,!1),e.preventDefault(),e.stopPropagation())},[a,Z]),Te=gt.useCallback(function(e){e.which!==Tn.up||e.altKey||J.current&&J.current.focus()&&(e.preventDefault(),e.stopPropagation())},[J]);return gt.createElement("div",ht({ref:q,className:Ve.root,"data-automationid":"DetailsList","data-is-scrollable":"false","aria-label":w},T?{role:"application"}:{}),gt.createElement(na,null),gt.createElement("div",{role:ke,"aria-label":I,"aria-rowcount":g?-1:ze,"aria-colcount":We,"aria-readonly":"true","aria-busy":g},gt.createElement("div",{onKeyDown:M,role:"presentation",className:Ve.headerWrapper},f&&Ne({componentRef:J,selectionMode:S,layoutMode:v,selection:a,columns:V,onColumnClick:C,onColumnContextMenu:_,onColumnResized:re,onColumnIsSizingChanged:ee,onColumnAutoResized:ie,groupNestingDepth:Ie,isAllCollapsed:K,onToggleCollapseAll:se,ariaLabel:e,ariaLabelForSelectAllCheckbox:t,ariaLabelForSelectionColumn:o,selectAllVisibility:Ee,collapseAllVisibility:p&&p.collapseAllVisibility,viewport:N,columnReorderProps:Oe,minimumPixelsForDrag:B,cellStyleProps:H,checkboxVisibility:l,indentWidth:h,onRenderDetailsCheckbox:O,rowWidth:Ye(V),useFastIcons:z},Ne)),gt.createElement("div",{onKeyDown:Te,role:"presentation",className:Ve.contentWrapper},ne?R:gt.createElement(Pv,ht({ref:Se,selection:a,selectionPreservedOnEmptyClick:x,selectionMode:S,onItemInvoked:b,onItemContextMenu:y,enterModalOnTouch:Ce},k||{}),R)),Fe(ht({},Ae))))}var r0,i0=Fn(),s0=100,a0=(l(l0,r0=gt.Component),l0.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},l0.prototype.scrollToIndex=function(e,t,o){this._list.current&&this._list.current.scrollToIndex(e,t,o),this._groupedList.current&&this._groupedList.current.scrollToIndex(e,t,o)},l0.prototype.focusIndex=function(e,t,o,n){void 0===t&&(t=!1);var r=this.props.items[e];r&&(this.scrollToIndex(e,o,n),e=this._getItemKey(r,e),(e=this._activeRows[e])&&this._setFocusToRow(e,t))},l0.prototype.getStartItemIndexInView=function(){return this._list&&this._list.current?this._list.current.getStartItemIndexInView():this._groupedList&&this._groupedList.current?this._groupedList.current.getStartItemIndexInView():0},l0.prototype.updateColumn=function(t,e){var o=this.props,n=o.columns,r=void 0===n?[]:n,i=o.selectionMode,s=o.checkboxVisibility,a=o.columnReorderOptions,n=e.width,o=e.newColumnIndex,e=r.findIndex(function(e){return e.key===t.key});n&&this._onColumnResized(t,n,e),void 0!==o&&a&&(n=i===dv.none||s===kv.hidden,i=(s!==kv.hidden?2:1)+e,s=n?i-1:i-2,i=null!==(e=a.frozenColumnCountFromStart)&&void 0!==e?e:0,e=null!==(e=a.frozenColumnCountFromEnd)&&void 0!==e?e:0,i<=(o=n?o-1:o-2)&&o<r.length-e&&(a.onColumnDrop?a.onColumnDrop({draggedIndex:s,targetIndex:o}):a.handleColumnReorder&&a.handleColumnReorder(s,o)))},l0.prototype.componentWillUnmount=function(){this._dragDropHelper&&this._dragDropHelper.dispose(),this._async.dispose()},l0.prototype.componentDidUpdate=function(e,t){var o,n,r;this._notifyColumnsResized(),void 0!==this._initialFocusedIndex&&(n=this.props.items[this._initialFocusedIndex])&&(r=this._getItemKey(n,this._initialFocusedIndex),(o=this._activeRows[r])&&this._setFocusToRowIfPending(o)),this.props.items!==e.items&&0<this.props.items.length&&-1!==this.state.focusedItemIndex&&!es(this._root.current,document.activeElement,!1)&&(e=this.state.focusedItemIndex<this.props.items.length?this.state.focusedItemIndex:this.props.items.length-1,n=this.props.items[e],r=this._getItemKey(n,this.state.focusedItemIndex),(o=this._activeRows[r])?this._setFocusToRow(o):this._initialFocusedIndex=e),this.props.onDidUpdate&&this.props.onDidUpdate(this)},l0.prototype.render=function(){return gt.createElement(n0,ht({},this.props,this.state,{selection:this._selection,dragDropHelper:this._dragDropHelper,rootRef:this._root,listRef:this._list,groupedListRef:this._groupedList,focusZoneRef:this._focusZone,headerRef:this._header,selectionZoneRef:this._selectionZone,onGroupExpandStateChanged:this._onGroupExpandStateChanged,onColumnIsSizingChanged:this._onColumnIsSizingChanged,onRowDidMount:this._onRowDidMount,onRowWillUnmount:this._onRowWillUnmount,onColumnResized:this._onColumnResized,onColumnAutoResized:this._onColumnAutoResized,onToggleCollapse:this._onToggleCollapse,onActiveRowChanged:this._onActiveRowChanged,onBlur:this._onBlur,onRenderDefaultRow:this._onRenderRow}))},l0.prototype.forceUpdate=function(){r0.prototype.forceUpdate.call(this),this._forceListUpdates()},l0.prototype._getGroupNestingDepth=function(){for(var e=0,t=this.props.groups;t&&0<t.length;)e++,t=t[0].children;return e},l0.prototype._setFocusToRowIfPending=function(e){var t=e.props.itemIndex;void 0!==this._initialFocusedIndex&&t===this._initialFocusedIndex&&(this._setFocusToRow(e),delete this._initialFocusedIndex)},l0.prototype._setFocusToRow=function(e,t){void 0===t&&(t=!1),this._selectionZone.current&&this._selectionZone.current.ignoreNextFocus(),this._async.setTimeout(function(){e.focus(t)},0)},l0.prototype._forceListUpdates=function(){this._groupedList.current&&this._groupedList.current.forceUpdate(),this._list.current&&this._list.current.forceUpdate()},l0.prototype._notifyColumnsResized=function(){this.state.adjustedColumns.forEach(function(e){e.onColumnResize&&e.onColumnResize(e.currentWidth)})},l0.prototype._adjustColumns=function(e,t,o,n){o=this._getAdjustedColumns(e,t,o,n),n=this.props.viewport,n=n&&n.width?n.width:0;return ht(ht({},t),{adjustedColumns:o,lastWidth:n})},l0.prototype._getAdjustedColumns=function(e,t,o,n){var r,i=this,s=e.items,a=e.layoutMode,l=e.selectionMode,c=e.viewport,u=c&&c.width?c.width:0,d=e.columns,p=this.props?this.props.columns:[],c=t?t.lastWidth:-1,t=t?t.lastSelectionMode:void 0;return o||c!==u||t!==l||p&&d!==p?(d=d||c0(s,!0),a===xv.fixedColumns?(r=this._getFixedColumns(d,u,e)).forEach(function(e){i._rememberCalculatedWidth(e,e.calculatedWidth)}):(r=this._getJustifiedColumns(d,u,e)).forEach(function(e){i._getColumnOverride(e.key).currentWidth=e.calculatedWidth}),r):d||[]},l0.prototype._getFixedColumns=function(e,t,o){var n=this,r=this.props,i=r.selectionMode,s=void 0===i?this._selection.mode:i,a=r.checkboxVisibility,i=r.flexMargin,l=r.skipViewportMeasures,c=t-(i||0),u=0;e.forEach(function(e){l||!e.flexGrow?c-=e.maxWidth||e.minWidth||s0:(c-=e.minWidth||s0,u+=e.flexGrow),c-=u0(e,o,!0)});var s=s!==dv.none&&a!==kv.hidden?48:0,a=36*this._getGroupNestingDepth(),d=(c-=s+a)/u;return l||e.forEach(function(e){var t,o=ht(ht({},e),n._columnOverrides[e.key]);o.flexGrow&&o.maxWidth&&(0<(e=(t=o.flexGrow*d+o.minWidth)-o.maxWidth)&&(c+=e,u-=e/(t-o.minWidth)*o.flexGrow))}),d=0<c?c/u:0,e.map(function(e){e=ht(ht({},e),n._columnOverrides[e.key]);return!l&&e.flexGrow&&c<=0||e.calculatedWidth||(!l&&e.flexGrow?(e.calculatedWidth=e.minWidth+e.flexGrow*d,e.calculatedWidth=Math.min(e.calculatedWidth,e.maxWidth||Number.MAX_VALUE)):e.calculatedWidth=e.maxWidth||e.minWidth||s0),e})},l0.prototype._getJustifiedColumns=function(e,t,n){var r=this,o=n.selectionMode,i=void 0===o?this._selection.mode:o,o=n.checkboxVisibility,i=i!==dv.none&&o!==kv.hidden?48:0,o=36*this._getGroupNestingDepth(),s=0,a=0,l=t-(i+o),c=e.map(function(e,t){var o=ht(ht({},e),{calculatedWidth:e.minWidth||s0}),e=ht(ht({},o),r._columnOverrides[e.key]);return o.isCollapsible||o.isCollapsable||(a+=u0(o,n)),s+=u0(e,n),e});if(l<a)return c;for(var u=c.length-1;0<=u&&l<s;){var d,p=(f=c[u]).minWidth||s0,h=s-l;f.calculatedWidth-p>=h||!f.isCollapsible&&!f.isCollapsable?(d=f.calculatedWidth,f.calculatedWidth=Math.max(f.calculatedWidth-h,p),s-=d-f.calculatedWidth):(s-=u0(f,n),c.splice(u,1)),u--}for(var m=0;m<c.length&&s<l;m++){var g,f=c[m],v=m===c.length-1,b=this._columnOverrides[f.key];b&&b.calculatedWidth&&!v||(g=l-s,b=void 0,b=v?g:(v=f.maxWidth,p=f.minWidth||v||s0,v?Math.min(g,v-p):g),f.calculatedWidth=f.calculatedWidth+b,s+=b)}return c},l0.prototype._rememberCalculatedWidth=function(e,t){e=this._getColumnOverride(e.key);e.calculatedWidth=t,e.currentWidth=t},l0.prototype._getColumnOverride=function(e){return this._columnOverrides[e]=this._columnOverrides[e]||{}},l0.prototype._getItemKey=function(e,t){var o=this.props.getKey,n=void 0;return e&&(n=e.key),n=(n=o?o(e,t):n)||t},l0.defaultProps={layoutMode:xv.justified,selectionMode:dv.multiple,constrainMode:_v.horizontalConstrained,checkboxVisibility:kv.onHover,isHeaderVisible:!0,compact:!1,useFastIcons:!0},c([o0],l0));function l0(e){var h=r0.call(this,e)||this;return h._root=gt.createRef(),h._header=gt.createRef(),h._groupedList=gt.createRef(),h._list=gt.createRef(),h._focusZone=gt.createRef(),h._selectionZone=gt.createRef(),h._onRenderRow=function(e,t){return gt.createElement(xb,ht({},e))},h._getDerivedStateFromProps=function(e,t){var o=h.props,n=o.checkboxVisibility,r=o.items,i=o.setKey,s=o.selectionMode,a=void 0===s?h._selection.mode:s,l=o.columns,c=o.viewport,u=o.compact,d=o.dragDropEvents,p=(h.props.groupProps||{}).isAllGroupsCollapsed,s=void 0===p?void 0:p,o=e.viewport&&e.viewport.width||0,p=c&&c.width||0,c=e.setKey!==i||void 0===e.setKey,i=!1;e.layoutMode!==h.props.layoutMode&&(i=!0);return c&&(h._initialFocusedIndex=e.initialFocusedIndex,t=ht(ht({},t),{focusedItemIndex:void 0!==h._initialFocusedIndex?h._initialFocusedIndex:-1})),h.props.disableSelectionZone||e.items===r||h._selection.setItems(e.items,c),e.checkboxVisibility===n&&e.columns===l&&o===p&&e.compact===u||(i=!0),t=ht(ht({},t),h._adjustColumns(e,t,!0)),e.selectionMode!==a&&(i=!0),void 0===s&&e.groupProps&&void 0!==e.groupProps.isAllGroupsCollapsed&&(t=ht(ht({},t),{isCollapsed:e.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:!e.groupProps.isAllGroupsCollapsed})),e.dragDropEvents!==d&&(h._dragDropHelper&&h._dragDropHelper.dispose(),h._dragDropHelper=e.dragDropEvents?new Qv({selection:h._selection,minimumPixelsForDrag:e.minimumPixelsForDrag}):void 0,i=!0),t=i?ht(ht({},t),{version:{}}):t},h._onGroupExpandStateChanged=function(e){h.setState({isSomeGroupExpanded:e})},h._onColumnIsSizingChanged=function(e,t){h.setState({isSizing:t})},h._onRowDidMount=function(e){var t=e.props,o=t.item,n=t.itemIndex,t=h._getItemKey(o,n);h._activeRows[t]=e,h._setFocusToRowIfPending(e);e=h.props.onRowDidMount;e&&e(o,n)},h._onRowWillUnmount=function(e){var t=h.props.onRowWillUnmount,o=e.props,n=o.item,e=o.itemIndex,o=h._getItemKey(n,e);delete h._activeRows[o],t&&t(n,e)},h._onToggleCollapse=function(e){h.setState({isCollapsed:e}),h._groupedList.current&&h._groupedList.current.toggleCollapseAll(e)},h._onColumnResized=function(e,t,o){t=Math.max(e.minWidth||s0,t);h.props.onColumnResize&&h.props.onColumnResize(e,t,o),h._rememberCalculatedWidth(e,t),h.setState(ht(ht({},h._adjustColumns(h.props,h.state,!0,o)),{version:{}}))},h._onColumnAutoResized=function(t,o){var e,n=0,r=0,i=Object.keys(h._activeRows).length;for(e in h._activeRows)h._activeRows.hasOwnProperty(e)&&h._activeRows[e].measureCell(o,function(e){n=Math.max(n,e),++r===i&&h._onColumnResized(t,n,o)})},h._onActiveRowChanged=function(e,t){var o=h.props,n=o.items,o=o.onActiveItemChanged;e&&e.getAttribute("data-item-index")&&(0<=(e=Number(e.getAttribute("data-item-index")))&&(o&&o(n[e],e,t),h.setState({focusedItemIndex:e})))},h._onBlur=function(e){h.setState({focusedItemIndex:-1})},vi(h),h._async=new xi(h),h._activeRows={},h._columnOverrides={},h.state={focusedItemIndex:-1,lastWidth:0,adjustedColumns:h._getAdjustedColumns(e,void 0),isSizing:!1,isCollapsed:e.groupProps&&e.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:e.groupProps&&!e.groupProps.isAllGroupsCollapsed,version:{},getDerivedStateFromProps:h._getDerivedStateFromProps},h._selection=e.selection||new fv({onSelectionChanged:void 0,getKey:e.getKey,selectionMode:e.selectionMode}),h.props.disableSelectionZone||h._selection.setItems(e.items,!1),h._dragDropHelper=e.dragDropEvents?new Qv({selection:h._selection,minimumPixelsForDrag:e.minimumPixelsForDrag}):void 0,h._initialFocusedIndex=e.initialFocusedIndex,h}function c0(e,t,o,n,r,i,s,a){var l=[];if(e&&e.length){var c,u=e[0];for(c in u)u.hasOwnProperty(c)&&l.push({key:c,name:c,fieldName:c,minWidth:s0,maxWidth:300,isCollapsable:!!l.length,isCollapsible:!!l.length,isMultiline:void 0!==s&&s,isSorted:n===c,isSortedDescending:!!r,isRowHeader:!1,columnActionsMode:null!=a?a:Cv.clickable,isResizable:t,onColumnClick:o,isGrouped:i===c})}return l}function u0(e,t,o){t=t.cellStyleProps,t=void 0===t?Lv:t;return(o?0:e.calculatedWidth)+t.cellLeftPadding+t.cellRightPadding+(e.isPadded?t.cellExtraRightPadding:0)}var d0,p0={root:"ms-DetailsList",compact:"ms-DetailsList--Compact",contentWrapper:"ms-DetailsList-contentWrapper",headerWrapper:"ms-DetailsList-headerWrapper",isFixed:"is-fixed",isHorizontalConstrained:"is-horizontalConstrained",listCell:"ms-List-cell"},h0=In(a0,function(e){var t=e.theme,o=e.className,n=e.isHorizontalConstrained,r=e.compact,i=e.isFixed,s=t.semanticColors,e=zo(p0,t);return{root:[e.root,t.fonts.small,{position:"relative",color:s.listText,selectors:((s={})["& ."+e.listCell]={minHeight:38,wordBreak:"break-word"},s)},i&&e.isFixed,r&&[e.compact,{selectors:((r={})["."+e.listCell]={minHeight:32},r)}],n&&[e.isHorizontalConstrained,{overflowX:"auto",overflowY:"visible",WebkitOverflowScrolling:"touch"}],o],focusZone:[{display:"inline-block",minWidth:"100%",minHeight:1}],headerWrapper:e.headerWrapper,contentWrapper:e.contentWrapper}},void 0,{scope:"DetailsList"});(W=d0=d0||{})[W.normal=0]="normal",W[W.largeHeader=1]="largeHeader",W[W.close=2]="close";var m0,g0,f0=we.durationValue2,v0={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},b0=Fn(),y0=(l(D0,g0=gt.Component),D0.prototype.componentDidMount=function(){this._allowTouchBodyScroll||Ps()},D0.prototype.componentWillUnmount=function(){this._allowTouchBodyScroll||Rs()},D0.prototype.render=function(){var e=this.props,t=e.isDarkThemed,o=e.className,n=e.theme,r=e.styles,e=ur(this.props,cr),t=b0(r,{theme:n,className:o,isDark:t});return gt.createElement("div",ht({},e,{className:t.root}))},D0),C0={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},_0=In(y0,function(e){var t=e.className,o=e.theme,n=e.isNone,r=e.isDark,i=o.palette,e=zo(C0,o);return{root:[e.root,o.fonts.medium,{backgroundColor:i.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:((o={})[Yt]={border:"1px solid WindowText",opacity:0},o)},n&&{visibility:"hidden"},r&&[e.rootDark,{backgroundColor:i.blackTranslucent40}],t]}},void 0,{scope:"Overlay"}),S0=Ao(function(e,t){return{root:j(e,t&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}}),x0={start:"touchstart",move:"touchmove",stop:"touchend"},k0={start:"mousedown",move:"mousemove",stop:"mouseup"},w0=(l(I0,m0=gt.Component),I0.prototype.componentDidUpdate=function(e){!this.props.position||e.position&&this.props.position===e.position||this.setState({position:this.props.position})},I0.prototype.componentWillUnmount=function(){this._events.forEach(function(e){return e()})},I0.prototype.render=function(){var e=gt.Children.only(this.props.children),t=e.props,o=this.props.position,n=this.state,r=n.position,i=n.isDragging,n=r.x,r=r.y;return o&&!i&&(n=o.x,r=o.y),gt.cloneElement(e,{style:ht(ht({},t.style),{transform:"translate("+n+"px, "+r+"px)"}),className:S0(t.className,this.state.isDragging).root,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onTouchStart:this._onTouchStart,onTouchEnd:this._onTouchEnd})},I0.prototype._getControlPosition=function(e){var t=this._getActiveTouch(e);if(void 0===this._touchId||t){e=t||e;return{x:e.clientX,y:e.clientY}}},I0.prototype._getActiveTouch=function(e){return e.targetTouches&&this._findTouchInTouchList(e.targetTouches)||e.changedTouches&&this._findTouchInTouchList(e.changedTouches)},I0.prototype._getTouchId=function(e){e=e.targetTouches&&e.targetTouches[0]||e.changedTouches&&e.changedTouches[0];if(e)return e.identifier},I0.prototype._matchesSelector=function(e,t){if(!e||e===document.body)return!1;var o=e.matches||e.webkitMatchesSelector||e.msMatchesSelector;return!!o&&(o.call(e,t)||this._matchesSelector(e.parentElement,t))},I0.prototype._findTouchInTouchList=function(e){if(void 0!==this._touchId)for(var t=0;t<e.length;t++)if(e[t].identifier===this._touchId)return e[t]},I0.prototype._createDragDataFromPosition=function(e){var t=this.state.lastPosition;return void 0===t?{delta:{x:0,y:0},lastPosition:e,position:e}:{delta:{x:e.x-t.x,y:e.y-t.y},lastPosition:t,position:e}},I0.prototype._createUpdatedDragData=function(e){var t=this.state.position;return{position:{x:t.x+e.delta.x,y:t.y+e.delta.y},delta:e.delta,lastPosition:t}},I0);function I0(e){var r=m0.call(this,e)||this;return r._currentEventType=k0,r._events=[],r._onMouseDown=function(e){var t=gt.Children.only(r.props.children).props.onMouseDown;return t&&t(e),r._currentEventType=k0,r._onDragStart(e)},r._onMouseUp=function(e){var t=gt.Children.only(r.props.children).props.onMouseUp;return t&&t(e),r._currentEventType=k0,r._onDragStop(e)},r._onTouchStart=function(e){var t=gt.Children.only(r.props.children).props.onTouchStart;return t&&t(e),r._currentEventType=x0,r._onDragStart(e)},r._onTouchEnd=function(e){var t=gt.Children.only(r.props.children).props.onTouchEnd;t&&t(e),r._currentEventType=x0,r._onDragStop(e)},r._onDragStart=function(e){if("number"==typeof e.button&&0!==e.button)return!1;var t,o;r.props.handleSelector&&!r._matchesSelector(e.target,r.props.handleSelector)||r.props.preventDragSelector&&r._matchesSelector(e.target,r.props.preventDragSelector)||(r._touchId=r._getTouchId(e),void 0!==(t=r._getControlPosition(e))&&(o=r._createDragDataFromPosition(t),r.props.onStart&&r.props.onStart(e,o),r.setState({isDragging:!0,lastPosition:t}),r._events=[Wa(document.body,r._currentEventType.move,r._onDrag,!0),Wa(document.body,r._currentEventType.stop,r._onDragStop,!0)]))},r._onDrag=function(e){"touchmove"===e.type&&e.preventDefault();var t,o,n=r._getControlPosition(e);n&&(o=(t=r._createUpdatedDragData(r._createDragDataFromPosition(n))).position,r.props.onDragChange&&r.props.onDragChange(e,t),r.setState({position:o,lastPosition:n}))},r._onDragStop=function(e){var t;!r.state.isDragging||(t=r._getControlPosition(e))&&(t=r._createDragDataFromPosition(t),r.setState({isDragging:!1,lastPosition:void 0}),r.props.onStop&&r.props.onStop(e,t),r.props.position&&r.setState({position:r.props.position}),r._events.forEach(function(e){return e()}))},r.state={isDragging:!1,position:r.props.position||{x:0,y:0},lastPosition:void 0},r}function D0(e){var t=g0.call(this,e)||this;vi(t);e=t.props.allowTouchBodyScroll;return t._allowTouchBodyScroll=void 0!==e&&e,t}function T0(e){var t=gt.useState(e),e=t[0],o=t[1];return[e,{setTrue:xl(function(){return function(){o(!0)}}),setFalse:xl(function(){return function(){o(!1)}}),toggle:xl(function(){return function(){o(function(e){return!e})}})}]}var E0={x:0,y:0},P0={isOpen:!1,isDarkOverlay:!0,className:"",containerClassName:"",enableAriaHiddenSiblings:!0},R0=Fn(),M0=gt.forwardRef(function(e,t){function o(){var e=A.current;(e=null==e?void 0:e.getBoundingClientRect())&&(D&&Y(e.top),$&&(J.minPosition={x:-e.left,y:-e.top},J.maxPosition={x:e.left,y:e.top}))}function n(){var e;J.lastSetCoordinates=E0,Q(),J.isInKeyboardMoveMode=!1,G(!1),q(E0),null===(e=J.disposeOnKeyUp)||void 0===e||e.call(J),null==M||M()}var r,i=Hn(P0,e),s=i.allowTouchBodyScroll,a=i.className,l=i.children,c=i.containerClassName,u=i.scrollableContentClassName,d=i.elementToFocusOnDismiss,p=i.firstFocusableSelector,h=i.forceFocusInsideTrap,m=i.ignoreExternalFocusing,g=i.isBlocking,f=i.isAlert,v=i.isClickableOutsideFocusTrap,b=i.isDarkOverlay,y=i.onDismiss,C=i.layerProps,_=i.overlay,S=i.isOpen,x=i.titleAriaId,k=i.styles,w=i.subtitleAriaId,I=i.theme,D=i.topOffsetFixed,T=i.responsiveMode,E=i.onLayerDidMount,P=i.isModeless,R=i.dragOptions,M=i.onDismissed,N=i.enableAriaHiddenSiblings,B=gt.useRef(null),F=gt.useRef(null),A=gt.useRef(null),L=Sr(B,t),H=xu(L),O=su("ModalFocusTrapZone"),z=Dl(),e=Em(),W=e.setTimeout,V=e.clearTimeout,B=gt.useState(S),K=B[0],G=B[1],t=gt.useState(S),e=t[0],U=t[1],B=gt.useState(E0),j=B[0],q=B[1],t=gt.useState(),B=t[0],Y=t[1],t=T0(!1),Z=t[0],t=t[1],X=t.toggle,Q=t.setFalse,J=xl(function(){return{onModalCloseTimer:0,allowTouchBodyScroll:s,scrollableContent:null,lastSetCoordinates:E0,events:new va({})}}),$=(R||{}).keepInBounds,t=null!=f?f:g&&!P,f=void 0===C?"":C.className,u=R0(k,{theme:I,className:a,containerClassName:c,scrollableContentClassName:u,isOpen:S,isVisible:e,hasBeenOpened:J.hasBeenOpened,modalRectangleTop:B,topOffsetFixed:D,isModeless:P,layerClassName:f,windowInnerHeight:null==z?void 0:z.innerHeight,isDefaultDragHandle:R&&!R.dragHandleSelector}),e=ht(ht({eventBubblingEnabled:!1},C),{onLayerDidMount:C&&C.onLayerDidMount?C.onLayerDidMount:E,insertFirst:P,className:u.layer}),B=gt.useCallback(function(e){e?(J.allowTouchBodyScroll?Ts:Ds)(e,J.events):J.events.off(J.scrollableContent),J.scrollableContent=e},[J]),ee=gt.useCallback(function(e,t){var o=J.minPosition,n=J.maxPosition;return $&&o&&n&&(t=Math.max(o[e],t),t=Math.min(n[e],t)),t},[$,J]),f=gt.useCallback(function(){Q(),J.isInKeyboardMoveMode=!1},[J,Q]),C=gt.useCallback(function(e,t){q(function(e){return{x:ee("x",e.x+t.delta.x),y:ee("y",e.y+t.delta.y)}})},[ee]),E=gt.useCallback(function(){F.current&&F.current.focus()},[]);gt.useEffect(function(){var e;V(J.onModalCloseTimer),S&&(requestAnimationFrame(function(){return W(o,0)}),G(!0),R&&(e=function(e){e.altKey&&e.ctrlKey&&e.keyCode===Tn.space&&es(J.scrollableContent,e.target)&&(X(),e.preventDefault(),e.stopPropagation())},J.disposeOnKeyUp||(J.events.on(z,"keyup",e,!0),J.disposeOnKeyUp=function(){J.events.off(z,"keyup",e,!0),J.disposeOnKeyUp=void 0})),J.hasBeenOpened=!0,U(!0)),!S&&K&&(J.onModalCloseTimer=W(n,1e3*parseFloat(f0)),U(!1))},[K,S]),zh(function(){J.events.dispose()}),r=F,gt.useImperativeHandle(i.componentRef,function(){return{focus:function(){r.current&&r.current.focus()}}},[r]);l=gt.createElement(Vh,{id:O,ref:A,componentRef:F,className:u.main,elementToFocusOnDismiss:d,isClickableOutsideFocusTrap:P||v||!g,ignoreExternalFocusing:m,forceFocusInsideTrap:h&&!P,firstFocusableSelector:p,focusPreviouslyFocusedInnerElement:!0,onBlur:J.isInKeyboardMoveMode?function(){var e;J.lastSetCoordinates=E0,J.isInKeyboardMoveMode=!1,null===(e=J.disposeOnKeyDown)||void 0===e||e.call(J)}:void 0},R&&J.isInKeyboardMoveMode&>.createElement("div",{className:u.keyboardMoveIconContainer},R.keyboardMoveIconProps?gt.createElement(Vr,ht({},R.keyboardMoveIconProps)):gt.createElement(Vr,{iconName:"move",className:u.keyboardMoveIcon})),gt.createElement("div",{ref:B,className:u.scrollableContent,"data-is-scrollable":!0},R&&Z&>.createElement(R.menu,{items:[{key:"move",text:R.moveMenuItemText,onClick:function(){function e(e){if(e.altKey&&e.ctrlKey&&e.keyCode===Tn.space)return e.preventDefault(),void e.stopPropagation();if(Z&&(e.altKey||e.keyCode===Tn.escape)&&Q(),!J.isInKeyboardMoveMode||e.keyCode!==Tn.escape&&e.keyCode!==Tn.enter||(J.isInKeyboardMoveMode=!1,e.preventDefault(),e.stopPropagation()),J.isInKeyboardMoveMode){var t=!0,o=(n=10,e.shiftKey?e.ctrlKey||(n=50):e.ctrlKey&&(n=1),n);switch(e.keyCode){case Tn.escape:q(J.lastSetCoordinates);case Tn.enter:J.lastSetCoordinates=E0;break;case Tn.up:q(function(e){return{x:e.x,y:ee("y",e.y-o)}});break;case Tn.down:q(function(e){return{x:e.x,y:ee("y",e.y+o)}});break;case Tn.left:q(function(e){return{x:ee("x",e.x-o),y:e.y}});break;case Tn.right:q(function(e){return{x:ee("x",e.x+o),y:e.y}});break;default:t=!1}t&&(e.preventDefault(),e.stopPropagation())}var n}J.lastSetCoordinates=j,Q(),J.isInKeyboardMoveMode=!0,J.events.on(z,"keydown",e,!0),J.disposeOnKeyDown=function(){J.events.off(z,"keydown",e,!0),J.disposeOnKeyDown=void 0}}},{key:"close",text:R.closeMenuItemText,onClick:n}],onDismiss:Q,alignTargetEdge:!0,coverTarget:!0,directionalHint:Pa.topLeftEdge,directionalHintFixed:!0,shouldFocusOnMount:!0,target:J.scrollableContent}),l));return K&&H>=(T||uu.small)&>.createElement(ac,ht({ref:L},e),gt.createElement(Rl,{role:t?"alertdialog":"dialog",ariaLabelledBy:x,ariaDescribedBy:w,onDismiss:y,shouldRestoreFocus:!m,enableAriaHiddenSiblings:N,"aria-modal":!P},gt.createElement("div",{className:u.root,role:P?void 0:"document"},!P&>.createElement(_0,ht({"aria-hidden":!0,isDarkThemed:b,onClick:g?void 0:y,allowTouchBodyScroll:s},_)),R?gt.createElement(w0,{handleSelector:R.dragHandleSelector||"#"+O,preventDragSelector:"button",onStart:f,onDragChange:C,onStop:E,position:j},l):l)))||null});M0.displayName="Modal";var N0=In(M0,function(e){var t=e.className,o=e.containerClassName,n=e.scrollableContentClassName,r=e.isOpen,i=e.isVisible,s=e.hasBeenOpened,a=e.modalRectangleTop,l=e.theme,c=e.topOffsetFixed,u=e.isModeless,d=e.layerClassName,p=e.isDefaultDragHandle,h=e.windowInnerHeight,m=l.palette,g=l.effects,e=l.fonts,l=zo(v0,l);return{root:[l.root,e.medium,{backgroundColor:"transparent",position:u?"absolute":"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity "+f0},c&&"number"==typeof a&&s&&{alignItems:"flex-start"},r&&l.isOpen,i&&{opacity:1,pointerEvents:"auto"},t],main:[l.main,{boxShadow:g.elevation64,borderRadius:g.roundedCorner2,backgroundColor:m.white,boxSizing:"border-box",position:"relative",textAlign:"left",outline:"3px solid transparent",maxHeight:"calc(100% - 32px)",maxWidth:"calc(100% - 32px)",minHeight:"176px",minWidth:"288px",overflowY:"auto",zIndex:u?mo.Layer:void 0},c&&"number"==typeof a&&s&&{top:a},p&&{cursor:"move"},o],scrollableContent:[l.scrollableContent,{overflowY:"auto",flexGrow:1,maxHeight:"100vh",selectors:((o={})["@supports (-webkit-overflow-scrolling: touch)"]={maxHeight:h},o)},n],layer:u&&[d,l.layer,{position:"static",width:"unset",height:"unset"}],keyboardMoveIconContainer:{position:"absolute",display:"flex",justifyContent:"center",width:"100%",padding:"3px 0px"},keyboardMoveIcon:{fontSize:e.xLargePlus.fontSize,width:"24px"}}},void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});N0.displayName="Modal";var B0,F0,A0,L0,H0=Fn(),O0=(l(ty,L0=gt.Component),ty.prototype.render=function(){var e=this.props,t=e.className,o=e.styles,e=e.theme;return this._classNames=H0(o,{theme:e,className:t}),gt.createElement("div",{className:this._classNames.actions},gt.createElement("div",{className:this._classNames.actionsRight},this._renderChildrenAsActions()))},ty.prototype._renderChildrenAsActions=function(){var t=this;return gt.Children.map(this.props.children,function(e){return e?gt.createElement("span",{className:t._classNames.action},e):null})},ty),z0={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},W0=In(O0,function(e){var t=e.className,e=e.theme,e=zo(z0,e);return{actions:[e.actions,{position:"relative",width:"100%",minHeight:"24px",lineHeight:"24px",margin:"16px 0 0",fontSize:"0",selectors:{".ms-Button":{lineHeight:"normal"}}},t],action:[e.action,{margin:"0 4px"}],actionsRight:[e.actionsRight,{textAlign:"right",marginRight:"-4px",fontSize:"0"}]}},void 0,{scope:"DialogFooter"}),V0=Fn(),K0=gt.createElement(W0,null).type,G0=(l(ey,A0=gt.Component),ey.prototype.render=function(){var e,t=this.props,o=t.showCloseButton,n=t.className,r=t.closeButtonAriaLabel,i=t.onDismiss,s=t.subTextId,a=t.subText,l=t.titleProps,c=void 0===l?{}:l,u=t.titleId,d=t.title,p=t.type,h=t.styles,l=t.theme,t=t.draggableHeaderClassName,n=V0(h,{theme:l,className:n,isLargeHeader:p===d0.largeHeader,isClose:p===d0.close,draggableHeaderClassName:t}),t=this._groupChildren();return a&&(e=gt.createElement("p",{className:n.subText,id:s},a)),gt.createElement("div",{className:n.content},gt.createElement("div",{className:n.header},gt.createElement("div",ht({id:u,role:"heading","aria-level":1},c,{className:Pr(n.title,c.className)}),d),gt.createElement("div",{className:n.topButton},this.props.topButtonsProps.map(function(e,t){return gt.createElement(id,ht({key:e.uniqueId||t},e))}),(p===d0.close||o&&p!==d0.largeHeader)&>.createElement(id,{className:n.button,iconProps:{iconName:"Cancel"},ariaLabel:r,onClick:i}))),gt.createElement("div",{className:n.inner},gt.createElement("div",{className:n.innerContent},e,t.contents),t.footers))},ey.prototype._groupChildren=function(){var t={footers:[],contents:[]};return gt.Children.map(this.props.children,function(e){("object"==typeof e&&null!==e&&e.type===K0?t.footers:t.contents).push(e)}),t},ey.defaultProps={showCloseButton:!1,className:"",topButtonsProps:[],closeButtonAriaLabel:"Close"},c([_u],ey)),U0={contentLgHeader:"ms-Dialog-lgHeader",close:"ms-Dialog--close",subText:"ms-Dialog-subText",header:"ms-Dialog-header",headerLg:"ms-Dialog--lgHeader",button:"ms-Dialog-button ms-Dialog-button--close",inner:"ms-Dialog-inner",content:"ms-Dialog-content",title:"ms-Dialog-title"},j0=In(G0,function(e){var t=e.className,o=e.theme,n=e.isLargeHeader,r=e.isClose,i=e.hidden,s=e.isMultiline,a=e.draggableHeaderClassName,l=o.palette,c=o.fonts,u=o.effects,e=o.semanticColors,o=zo(U0,o);return{content:[n&&[o.contentLgHeader,{borderTop:"4px solid "+l.themePrimary}],r&&o.close,{flexGrow:1,overflowY:"hidden"},t],subText:[o.subText,c.medium,{margin:"0 0 24px 0",color:e.bodySubtext,lineHeight:"1.5",wordWrap:"break-word",fontWeight:Fe.regular}],header:[o.header,{position:"relative",width:"100%",boxSizing:"border-box"},r&&o.close,a&&[a,{cursor:"move"}]],button:[o.button,i&&{selectors:{".ms-Icon.ms-Icon--Cancel":{color:e.buttonText,fontSize:Ae.medium}}}],inner:[o.inner,{padding:"0 24px 24px",selectors:((i={})["@media (min-width: "+Jt+"px) and (max-width: "+ro+"px)"]={padding:"0 16px 16px"},i)}],innerContent:[o.content,{position:"relative",width:"100%"}],title:[o.title,c.xLarge,{color:e.bodyText,margin:"0",minHeight:c.xLarge.fontSize,padding:"16px 46px 20px 24px",lineHeight:"normal",selectors:((o={})["@media (min-width: "+Jt+"px) and (max-width: "+ro+"px)"]={padding:"16px 46px 16px 16px"},o)},n&&{color:e.menuHeader},s&&{fontSize:c.xxLarge.fontSize}],topButton:[{display:"flex",flexDirection:"row",flexWrap:"nowrap",position:"absolute",top:"0",right:"0",padding:"15px 15px 0 0",selectors:((u={"> *":{flex:"0 0 auto"},".ms-Dialog-button":{color:e.buttonText},".ms-Dialog-button:hover":{color:e.buttonTextHovered,borderRadius:u.roundedCorner2}})["@media (min-width: "+Jt+"px) and (max-width: "+ro+"px)"]={padding:"15px 8px 0 0"},u)}]}},void 0,{scope:"DialogContent"}),q0=Fn(),Y0={isDarkOverlay:!1,isBlocking:!1,className:"",containerClassName:"",topOffsetFixed:!1,enableAriaHiddenSiblings:!0},Z0={type:d0.normal,className:"",topButtonsProps:[]},X0=(l($0,F0=gt.Component),$0.prototype.render=function(){var e=this.props,t=e.className,o=e.containerClassName,n=e.contentClassName,r=e.elementToFocusOnDismiss,i=e.firstFocusableSelector,s=e.forceFocusInsideTrap,a=e.styles,l=e.hidden,c=e.ignoreExternalFocusing,u=e.isBlocking,d=e.isClickableOutsideFocusTrap,p=e.isDarkOverlay,h=e.isOpen,m=void 0===h?!l:h,g=e.onDismiss,f=e.onDismissed,v=e.onLayerDidMount,b=e.responsiveMode,y=e.subText,C=e.theme,_=e.title,S=e.topButtonsProps,x=e.type,k=e.minWidth,w=e.maxWidth,I=e.modalProps,h=ht({onLayerDidMount:v},null==I?void 0:I.layerProps),v=null==I?void 0:I.dragOptions;v&&!v.dragHandleSelector&&(v.dragHandleSelector="."+(D="ms-Dialog-draggable-header"));var m=ht(ht(ht(ht({},Y0),{elementToFocusOnDismiss:r,firstFocusableSelector:i,forceFocusInsideTrap:s,ignoreExternalFocusing:c,isClickableOutsideFocusTrap:d,responsiveMode:b,className:t,containerClassName:o,isBlocking:u,isDarkOverlay:p,onDismissed:f}),I),{layerProps:h,dragOptions:v,isOpen:m}),D=ht(ht(ht({className:n,subText:y,title:_,topButtonsProps:S,type:x},Z0),e.dialogContentProps),{draggableHeaderClassName:D,titleProps:ht({id:(null===(D=e.dialogContentProps)||void 0===D?void 0:D.titleId)||this._defaultTitleTextId},null===(D=e.dialogContentProps)||void 0===D?void 0:D.titleProps)}),w=q0(a,{theme:C,className:m.className,containerClassName:m.containerClassName,hidden:l,dialogDefaultMinWidth:k,dialogDefaultMaxWidth:w});return gt.createElement(N0,ht({},m,{className:w.root,containerClassName:w.main,onDismiss:g||m.onDismiss,subtitleAriaId:this._getSubTextId(),titleAriaId:this._getTitleTextId()}),gt.createElement(j0,ht({subTextId:this._defaultSubTextId,showCloseButton:m.isBlocking,onDismiss:g},D),e.children))},$0.defaultProps={hidden:!0},c([_u],$0)),Q0={root:"ms-Dialog"},J0=In(X0,function(e){var t=e.className,o=e.containerClassName,n=e.dialogDefaultMinWidth,r=void 0===n?"288px":n,i=e.dialogDefaultMaxWidth,n=void 0===i?"340px":i,i=e.hidden,e=e.theme;return{root:[zo(Q0,e).root,e.fonts.medium,t],main:[{width:r,outline:"3px solid transparent",selectors:((t={})["@media (min-width: "+$t+"px)"]={width:"auto",maxWidth:n,minWidth:r},t)},!i&&{display:"flex"},o]}},void 0,{scope:"Dialog"});function $0(e){var r=F0.call(this,e)||this;return r._getSubTextId=function(){var e=r.props,t=e.ariaDescribedById,o=e.modalProps,n=e.dialogContentProps,e=e.subText;return o&&o.subtitleAriaId||t||(n&&n.subText||e)&&r._defaultSubTextId},r._getTitleTextId=function(){var e=r.props,t=e.ariaLabelledById,o=e.modalProps,n=e.dialogContentProps,e=e.title;return o&&o.titleAriaId||t||(n&&n.title||e)&&r._defaultTitleTextId},r._id=Ss("Dialog"),r._defaultTitleTextId=r._id+"-title",r._defaultSubTextId=r._id+"-subText",r}function ey(e){e=A0.call(this,e)||this;return vi(e),e}function ty(e){e=L0.call(this,e)||this;return vi(e),e}J0.displayName="Dialog",(ke=B0=B0||{})[ke.normal=0]="normal",ke[ke.compact=1]="compact";var oy,ny,ry,iy,sy,ay,ly,cy,uy,dy,py,hy=Fn(),K=(l(oC,py=gt.Component),oC.prototype.render=function(){var e,t=this.props,o=t.onClick,n=t.onClickHref,r=t.children,i=t.type,s=t.accentColor,a=t.styles,l=t.theme,c=t.className,t=ur(this.props,cr,["className","onClick","type","role"]),n=!(!o&&!n);this._classNames=hy(a,{theme:l,className:c,actionable:n,compact:i===B0.compact}),i===B0.compact&&s&&(e={borderBottomColor:s});o=this.props.role||(n?o?"button":"link":void 0);return gt.createElement("div",ht({ref:this._rootElement,tabIndex:n?0:void 0,"data-is-focusable":n,role:o,className:this._classNames.root,onKeyDown:n?this._onKeyDown:void 0,onClick:n?this._onClick:void 0,style:e},t),r)},oC.prototype.focus=function(){this._rootElement.current&&this._rootElement.current.focus()},oC.defaultProps={type:B0.normal},oC),my={root:"ms-DocumentCardPreview",icon:"ms-DocumentCardPreview-icon",iconContainer:"ms-DocumentCardPreview-iconContainer"},gy={root:"ms-DocumentCardActivity",multiplePeople:"ms-DocumentCardActivity--multiplePeople",details:"ms-DocumentCardActivity-details",name:"ms-DocumentCardActivity-name",activity:"ms-DocumentCardActivity-activity",avatars:"ms-DocumentCardActivity-avatars",avatar:"ms-DocumentCardActivity-avatar"},fy={root:"ms-DocumentCardTitle"},vy={root:"ms-DocumentCardLocation"},by={root:"ms-DocumentCard",rootActionable:"ms-DocumentCard--actionable",rootCompact:"ms-DocumentCard--compact"},yy=In(K,function(e){var t=e.className,o=e.theme,n=e.actionable,r=e.compact,i=o.palette,s=o.fonts,a=o.effects,e=zo(by,o);return{root:[e.root,{WebkitFontSmoothing:"antialiased",backgroundColor:i.white,border:"1px solid "+i.neutralLight,maxWidth:"320px",minWidth:"206px",userSelect:"none",position:"relative",selectors:((o={":focus":{outline:"0px solid"}})["."+go+" &:focus"]=_o(i.neutralSecondary,a.roundedCorner2),o["."+vy.root+" + ."+fy.root]={paddingTop:"4px"},o)},n&&[e.rootActionable,{selectors:{":hover":{cursor:"pointer",borderColor:i.neutralTertiaryAlt},":hover:after":{content:'" "',position:"absolute",top:0,right:0,bottom:0,left:0,border:"1px solid "+i.neutralTertiaryAlt,pointerEvents:"none"}}}],r&&[e.rootCompact,{display:"flex",maxWidth:"480px",height:"108px",selectors:((e={})["."+my.root]={borderRight:"1px solid "+i.neutralLight,borderBottom:0,maxHeight:"106px",maxWidth:"144px"},e["."+my.icon]={maxHeight:"32px",maxWidth:"32px"},e["."+gy.root]={paddingBottom:"12px"},e["."+fy.root]={paddingBottom:"12px 16px 8px 16px",fontSize:s.mediumPlus.fontSize,lineHeight:"16px"},e)}],t]}},void 0,{scope:"DocumentCard"}),Cy=Fn(),U=(l(tC,dy=gt.Component),tC.prototype.render=function(){var o=this,e=this.props,t=e.actions,n=e.views,r=e.styles,i=e.theme,e=e.className;return this._classNames=Cy(r,{theme:i,className:e}),gt.createElement("div",{className:this._classNames.root},t&&t.map(function(e,t){return gt.createElement("div",{className:o._classNames.action,key:t},gt.createElement(id,ht({},e)))}),0<n&>.createElement("div",{className:this._classNames.views},gt.createElement(Vr,{iconName:"View",className:this._classNames.viewsIcon}),n))},tC),_y={root:"ms-DocumentCardActions",action:"ms-DocumentCardActions-action",views:"ms-DocumentCardActions-views"},Sy=In(U,function(e){var t=e.className,o=e.theme,n=o.palette,r=o.fonts,e=zo(_y,o);return{root:[e.root,{height:"34px",padding:"4px 12px",position:"relative"},t],action:[e.action,{float:"left",marginRight:"4px",color:n.neutralSecondary,cursor:"pointer",selectors:{".ms-Button":{fontSize:r.mediumPlus.fontSize,height:34,width:34},".ms-Button:hover .ms-Button-icon":{color:o.semanticColors.buttonText,cursor:"pointer"}}}],views:[e.views,{textAlign:"right",lineHeight:34}],viewsIcon:{marginRight:"8px",fontSize:r.medium.fontSize,verticalAlign:"top"}}},void 0,{scope:"DocumentCardActions"}),xy=Fn(),ky=In((l(eC,uy=gt.Component),eC.prototype.render=function(){var e=this.props,t=e.activity,o=e.people,n=e.styles,r=e.theme,e=e.className;return this._classNames=xy(n,{theme:r,className:e,multiplePeople:1<o.length}),o&&0!==o.length?gt.createElement("div",{className:this._classNames.root},this._renderAvatars(o),gt.createElement("div",{className:this._classNames.details},gt.createElement("span",{className:this._classNames.name},this._getNameString(o)),gt.createElement("span",{className:this._classNames.activity},t))):null},eC.prototype._renderAvatars=function(e){return gt.createElement("div",{className:this._classNames.avatars},1<e.length?this._renderAvatar(e[1]):null,this._renderAvatar(e[0]))},eC.prototype._renderAvatar=function(e){return gt.createElement("div",{className:this._classNames.avatar},gt.createElement(di,{imageInitials:e.initials,text:e.name,imageUrl:e.profileImageSrc,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,role:"presentation",size:Rr.size32}))},eC.prototype._getNameString=function(e){var t=e[0].name;return 2<=e.length&&(t+=" +"+(e.length-1)),t},eC),function(e){var t=e.theme,o=e.className,n=e.multiplePeople,r=t.palette,e=t.fonts,t=zo(gy,t);return{root:[t.root,n&&t.multiplePeople,{padding:"8px 16px",position:"relative"},o],avatars:[t.avatars,{marginLeft:"-2px",height:"32px"}],avatar:[t.avatar,{display:"inline-block",verticalAlign:"top",position:"relative",textAlign:"center",width:32,height:32,selectors:{"&:after":{content:'" "',position:"absolute",left:"-1px",top:"-1px",right:"-1px",bottom:"-1px",border:"2px solid "+r.white,borderRadius:"50%"},":nth-of-type(2)":n&&{marginLeft:"-16px"}}}],details:[t.details,{left:n?"72px":"56px",height:32,position:"absolute",top:8,width:"calc(100% - 72px)"}],name:[t.name,{display:"block",fontSize:e.small.fontSize,lineHeight:"15px",height:"15px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:r.neutralPrimary,fontWeight:Fe.semibold}],activity:[t.activity,{display:"block",fontSize:e.small.fontSize,lineHeight:"15px",height:"15px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:r.neutralSecondary}]}},void 0,{scope:"DocumentCardActivity"}),wy=Fn(),G=(l($y,cy=gt.Component),$y.prototype.render=function(){var e=this.props,t=e.children,o=e.styles,n=e.theme,e=e.className;return this._classNames=wy(o,{theme:n,className:e}),gt.createElement("div",{className:this._classNames.root},t)},$y),Iy={root:"ms-DocumentCardDetails"},Dy=In(G,function(e){var t=e.className,e=e.theme;return{root:[zo(Iy,e).root,{display:"flex",flexDirection:"column",flex:1,justifyContent:"space-between",overflow:"hidden"},t]}},void 0,{scope:"DocumentCardDetails"}),Ty=Fn(),Ey=In((l(Jy,ly=gt.Component),Jy.prototype.render=function(){var e=this.props,t=e.location,o=e.locationHref,n=e.ariaLabel,r=e.onClick,i=e.styles,s=e.theme,e=e.className;return this._classNames=Ty(i,{theme:s,className:e}),gt.createElement("a",{className:this._classNames.root,href:o,onClick:r,"aria-label":n},t)},Jy),function(e){var t=e.theme,o=e.className,n=t.palette,e=t.fonts;return{root:[zo(vy,t).root,e.small,{color:n.themePrimary,display:"block",fontWeight:Fe.semibold,overflow:"hidden",padding:"8px 16px",position:"relative",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",selectors:{":hover":{color:n.themePrimary,cursor:"pointer"}}},o]}},void 0,{scope:"DocumentCardLocation"}),Py=Fn(),Ry=In((l(Qy,ay=gt.Component),Qy.prototype.render=function(){var e,t,o=this.props,n=o.previewImages,r=o.styles,i=o.theme,s=o.className,o=1<n.length;return this._classNames=Py(r,{theme:i,className:s,isFileList:o}),1<n.length?t=this._renderPreviewList(n):1===n.length&&(t=this._renderPreviewImage(n[0]),n[0].accentColor&&(e={borderBottomColor:n[0].accentColor})),gt.createElement("div",{className:this._classNames.root,style:e},t)},Qy.prototype._renderPreviewImage=function(e){var t=e.width,o=e.height,n=e.imageFit,r=e.previewIconProps,i=e.previewIconContainerClass;if(r)return gt.createElement("div",{className:Pr(this._classNames.previewIcon,i),style:{width:t,height:o}},gt.createElement(Vr,ht({},r)));var s,n=gt.createElement(Dr,{width:t,height:o,imageFit:n,src:e.previewImageSrc,role:"presentation",alt:""});return e.iconSrc&&(s=gt.createElement(Dr,{className:this._classNames.icon,src:e.iconSrc,role:"presentation",alt:""})),gt.createElement("div",null,n,s)},Qy),function(e){var t=e.theme,o=e.className,n=e.isFileList,r=t.palette,i=t.fonts,e=zo(my,t);return{root:[e.root,i.small,{backgroundColor:n?r.white:r.neutralLighterAlt,borderBottom:"1px solid "+r.neutralLight,overflow:"hidden",position:"relative"},o],previewIcon:[e.iconContainer,{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}],icon:[e.icon,{left:"10px",bottom:"10px",position:"absolute"}],fileList:{padding:"16px 16px 0 16px",listStyleType:"none",margin:0,selectors:{li:{height:"16px",lineHeight:"16px",display:"flex",flexWrap:"nowrap",alignItems:"center",marginBottom:"8px",overflow:"hidden"}}},fileListIcon:{display:"inline-block",flexShrink:0,marginRight:"8px"},fileListLink:[bo(t,{highContrastStyle:{border:"1px solid WindowText",outline:"none"}}),{boxSizing:"border-box",color:r.neutralDark,flexGrow:1,overflow:"hidden",display:"inline-block",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",selectors:((t={":hover":{color:r.themePrimary}})["."+go+" &:focus"]={selectors:((r={})[Yt]={outline:"none"},r)},t)}],fileListOverflowText:{padding:"0px 16px 8px 16px",display:"block"}}},void 0,{scope:"DocumentCardPreview"}),My=Fn(),W=(l(Xy,sy=gt.Component),Xy.prototype.render=function(){var e=this.props,t=e.styles,o=e.width,n=e.height,r=e.imageFit,e=e.imageSrc;return this._classNames=My(t,this.props),gt.createElement("div",{className:this._classNames.root},e&>.createElement(Dr,{width:o,height:n,imageFit:r,src:e,role:"presentation",alt:"",onLoad:this._onImageLoad}),this.state.imageHasLoaded?this._renderCornerIcon():this._renderCenterIcon())},Xy.prototype._renderCenterIcon=function(){var e=this.props.iconProps;return gt.createElement("div",{className:this._classNames.centeredIconWrapper},gt.createElement(Vr,ht({className:this._classNames.centeredIcon},e)))},Xy.prototype._renderCornerIcon=function(){var e=this.props.iconProps;return gt.createElement(Vr,ht({className:this._classNames.cornerIcon},e))},Xy),Ny="42px",By="32px",Fy=In(W,function(e){var t=e.theme,o=e.className,n=e.height,e=e.width,t=t.palette;return{root:[{borderBottom:"1px solid "+t.neutralLight,position:"relative",backgroundColor:t.neutralLighterAlt,overflow:"hidden",height:n&&n+"px",width:e&&e+"px"},o],centeredIcon:[{height:Ny,width:Ny,fontSize:Ny}],centeredIconWrapper:[{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",position:"absolute",top:0,left:0}],cornerIcon:[{left:"10px",bottom:"10px",height:By,width:By,fontSize:By,position:"absolute",overflow:"visible"}]}},void 0,{scope:"DocumentCardImage"}),Ay=Fn(),Ly=In((l(Zy,iy=gt.Component),Zy.prototype.componentDidUpdate=function(e){var t=this;this.props.title!==e.title&&this.setState({truncatedTitleFirstPiece:void 0,truncatedTitleSecondPiece:void 0}),e.shouldTruncate!==this.props.shouldTruncate?this.props.shouldTruncate?(this._truncateTitle(),this._async.requestAnimationFrame(this._shrinkTitle),this._events.on(window,"resize",this._updateTruncation)):this._events.off(window,"resize",this._updateTruncation):this._needMeasurement&&this._async.requestAnimationFrame(function(){t._truncateWhenInAnimation(),t._shrinkTitle()})},Zy.prototype.componentDidMount=function(){this.props.shouldTruncate&&(this._truncateTitle(),this._events.on(window,"resize",this._updateTruncation))},Zy.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose()},Zy.prototype.render=function(){var e=this.props,t=e.title,o=e.shouldTruncate,n=e.showAsSecondaryTitle,r=e.styles,i=e.theme,s=e.className,a=this.state,e=a.truncatedTitleFirstPiece,a=a.truncatedTitleSecondPiece;return this._classNames=Ay(r,{theme:i,className:s,showAsSecondaryTitle:n}),o&&e&&a?gt.createElement("div",{className:this._classNames.root,ref:this._titleElement,title:t},e,"…",a):gt.createElement("div",{className:this._classNames.root,ref:this._titleElement,title:t,style:this._needMeasurement?{whiteSpace:"nowrap"}:void 0},t)},Object.defineProperty(Zy.prototype,"_needMeasurement",{get:function(){return!!this.props.shouldTruncate&&void 0===this._clientWidth},enumerable:!1,configurable:!0}),Zy.prototype._updateTruncation=function(){var e=this;this._timerId||(this._timerId=this._async.setTimeout(function(){delete e._timerId,e._clientWidth=void 0,e.setState({truncatedTitleFirstPiece:void 0,truncatedTitleSecondPiece:void 0})},250))},Zy),function(e){var t=e.theme,o=e.className,n=e.showAsSecondaryTitle,r=t.palette,e=t.fonts;return{root:[zo(fy,t).root,n?e.medium:e.large,{padding:"8px 16px",display:"block",overflow:"hidden",wordWrap:"break-word",height:n?"45px":"38px",lineHeight:n?"18px":"21px",color:n?r.neutralSecondary:r.neutralPrimary},o]}},void 0,{scope:"DocumentCardTitle"}),Hy=Fn(),ke=(l(Yy,ry=gt.Component),Yy.prototype.render=function(){var e=this.props,t=e.logoIcon,o=e.styles,n=e.theme,e=e.className;return this._classNames=Hy(o,{theme:n,className:e}),gt.createElement("div",{className:this._classNames.root},gt.createElement(Vr,{iconName:t}))},Yy),Oy={root:"ms-DocumentCardLogo"},zy=In(ke,function(e){var t=e.theme,o=e.className,n=t.palette,e=t.fonts;return{root:[zo(Oy,t).root,{fontSize:e.xxLargePlus.fontSize,color:n.themePrimary,display:"block",padding:"16px 16px 0 16px"},o]}},void 0,{scope:"DocumentCardLogo"}),Wy=Fn(),K=(l(qy,ny=gt.Component),qy.prototype.render=function(){var e=this.props,t=e.statusIcon,o=e.status,n=e.styles,r=e.theme,i=e.className,e={iconName:t,styles:{root:{padding:"8px"}}};return this._classNames=Wy(n,{theme:r,className:i}),gt.createElement("div",{className:this._classNames.root},t&>.createElement(Vr,ht({},e)),o)},qy),Vy={root:"ms-DocumentCardStatus"},Ky=In(K,function(e){var t=e.className,o=e.theme,n=o.palette,e=o.fonts;return{root:[zo(Vy,o).root,e.medium,{margin:"8px 16px",color:n.neutralPrimary,backgroundColor:n.neutralLighter,height:"32px"},t]}},void 0,{scope:"DocumentCardStatus"}),Gy=function(o){var n;return function(e){n||(n=new Set,fi(o,{componentWillUnmount:function(){n.forEach(function(e){return cancelAnimationFrame(e)})}}));var t=requestAnimationFrame(function(){n.delete(t),e()});n.add(t)}},Uy=(jy.prototype.updateOptions=function(e){for(var t=[],o=0,n=0;n<e.length;n++)e[n].itemType===cf.Divider||e[n].itemType===cf.Header?t.push(n):e[n].hidden||o++;this._size=o,this._displayOnlyOptionsCache=t,this._cachedOptions=$e([],e)},Object.defineProperty(jy.prototype,"optionSetSize",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(jy.prototype,"cachedOptions",{get:function(){return this._cachedOptions},enumerable:!1,configurable:!0}),jy.prototype.positionInSet=function(e){if(void 0!==e){for(var t=0;e>this._displayOnlyOptionsCache[t];)t++;if(this._displayOnlyOptionsCache[t]===e)throw new Error("Unexpected: Option at index "+e+" is not a selectable element.");return e-t+1}},jy);function jy(){this._size=0}function qy(e){e=ny.call(this,e)||this;return vi(e),e}function Yy(e){e=ry.call(this,e)||this;return vi(e),e}function Zy(e){var i=iy.call(this,e)||this;return i._titleElement=gt.createRef(),i._truncateTitle=function(){i._needMeasurement&&i._async.requestAnimationFrame(i._truncateWhenInAnimation)},i._truncateWhenInAnimation=function(){var e=i.props.title,t=i._titleElement.current;if(t){var o=getComputedStyle(t);if(o.width&&o.lineHeight&&o.height){var n=t.clientWidth,r=t.scrollWidth;i._clientWidth=n;n=Math.floor((parseInt(o.height,10)+5)/parseInt(o.lineHeight,10));t.style.whiteSpace="";n=r/(parseInt(o.width,10)*n);if(1<n){n=e.length/n-3;return i.setState({truncatedTitleFirstPiece:e.slice(0,n/2),truncatedTitleSecondPiece:e.slice(e.length-n/2)})}}}},i._shrinkTitle=function(){var e=i.state,t=e.truncatedTitleFirstPiece,o=e.truncatedTitleSecondPiece;t&&o&&((e=i._titleElement.current)&&(e.scrollHeight>e.clientHeight+5||e.scrollWidth>e.clientWidth)&&i.setState({truncatedTitleFirstPiece:t.slice(0,t.length-1),truncatedTitleSecondPiece:o.slice(1)}))},vi(i),i._async=new xi(i),i._events=new va(i),i._clientWidth=void 0,i.state={truncatedTitleFirstPiece:void 0,truncatedTitleSecondPiece:void 0},i}function Xy(e){var t=sy.call(this,e)||this;return t._onImageLoad=function(){t.setState({imageHasLoaded:!0})},vi(t),t.state={imageHasLoaded:!1},t}function Qy(e){var r=ay.call(this,e)||this;return r._renderPreviewList=function(e){var t=r.props,o=t.getOverflowDocumentCountText,n=t.maxDisplayCount,t=void 0===n?3:n,n=e.length-t,n=n?o?o(n):"+"+n:null,t=e.slice(0,t).map(function(e,t){return gt.createElement("li",{key:t},gt.createElement(Dr,{className:r._classNames.fileListIcon,src:e.iconSrc,role:"presentation",alt:"",width:"16px",height:"16px"}),gt.createElement(ua,ht({className:r._classNames.fileListLink,href:e.url},e.linkProps),e.name))});return gt.createElement("div",null,gt.createElement("ul",{className:r._classNames.fileList},t),n&>.createElement("span",{className:r._classNames.fileListOverflowText},n))},vi(r),r}function Jy(e){e=ly.call(this,e)||this;return vi(e),e}function $y(e){e=cy.call(this,e)||this;return vi(e),e}function eC(e){e=uy.call(this,e)||this;return vi(e),e}function tC(e){e=dy.call(this,e)||this;return vi(e),e}function oC(e){var r=py.call(this,e)||this;return r._rootElement=gt.createRef(),r._onClick=function(e){r._onAction(e)},r._onKeyDown=function(e){e.which!==Tn.enter&&e.which!==Tn.space||r._onAction(e)},r._onAction=function(e){var t=r.props,o=t.onClick,n=t.onClickHref,t=t.onClickTarget;o?o(e):!o&&n&&(t?window.open(n,t,"noreferrer noopener nofollow"):window.location.href=n,e.preventDefault(),e.stopPropagation())},vi(r),r}(U=oy=oy||{})[U.smallFluid=0]="smallFluid",U[U.smallFixedFar=1]="smallFixedFar",U[U.smallFixedNear=2]="smallFixedNear",U[U.medium=3]="medium",U[U.large=4]="large",U[U.largeFixed=5]="largeFixed",U[U.extraLarge=6]="extraLarge",U[U.custom=7]="custom",U[U.customNear=8]="customNear";var nC,rC=Fn();(G=nC=nC||{})[G.closed=0]="closed",G[G.animatingOpen=1]="animatingOpen",G[G.open=2]="open",G[G.animatingClosed=3]="animatingClosed";var iC,sC=(l(yC,iC=gt.Component),yC.getDerivedStateFromProps=function(e,t){return void 0===e.isOpen?null:!e.isOpen||t.visibility!==nC.closed&&t.visibility!==nC.animatingClosed?e.isOpen||t.visibility!==nC.open&&t.visibility!==nC.animatingOpen?null:{visibility:nC.animatingClosed}:{visibility:nC.animatingOpen}},yC.prototype.componentDidMount=function(){this._events.on(window,"resize",this._updateFooterPosition),this._shouldListenForOuterClick(this.props)&&this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0),this.props.isOpen&&this.setState({visibility:nC.animatingOpen})},yC.prototype.componentDidUpdate=function(e,t){var o=this._shouldListenForOuterClick(this.props),e=this._shouldListenForOuterClick(e);this.state.visibility!==t.visibility&&(this._clearExistingAnimationTimer(),this.state.visibility===nC.animatingOpen?this._animateTo(nC.open):this.state.visibility===nC.animatingClosed&&this._animateTo(nC.closed)),o&&!e?this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0):!o&&e&&this._events.off(document.body,"mousedown",this._dismissOnOuterClick,!0)},yC.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},yC.prototype.render=function(){var e=this.props,t=e.className,o=void 0===t?"":t,n=e.elementToFocusOnDismiss,r=e.firstFocusableSelector,i=e.focusTrapZoneProps,s=e.forceFocusInsideTrap,a=e.hasCloseButton,l=e.headerText,c=e.headerClassName,u=void 0===c?"":c,d=e.ignoreExternalFocusing,p=e.isBlocking,h=e.isFooterAtBottom,m=e.isLightDismiss,g=e.isHiddenOnDismiss,f=e.layerProps,v=e.overlayProps,b=e.popupProps,y=e.type,C=e.styles,_=e.theme,S=e.customWidth,x=e.onLightDismissClick,k=void 0===x?this._onPanelClick:x,w=e.onRenderNavigation,I=void 0===w?this._onRenderNavigation:w,D=e.onRenderHeader,T=void 0===D?this._onRenderHeader:D,E=e.onRenderBody,P=void 0===E?this._onRenderBody:E,t=e.onRenderFooter,c=void 0===t?this._onRenderFooter:t,x=this.state,w=x.isFooterSticky,D=x.visibility,E=x.id,e=y===oy.smallFixedNear||y===oy.customNear,t=Pn(_)?e:!e,x=y===oy.custom||y===oy.customNear?{width:S}:{},e=ur(this.props,cr),S=this.isActive,D=D===nC.animatingClosed||D===nC.animatingOpen;if(this._headerTextId=l&&E+"-headerText",!S&&!D&&!g)return null;this._classNames=rC(C,{theme:_,className:o,focusTrapZoneClassName:i?i.className:void 0,hasCloseButton:a,headerClassName:u,isAnimating:D,isFooterSticky:w,isFooterAtBottom:h,isOnRightSide:t,isOpen:S,isHiddenOnDismiss:g,type:y,hasCustomNavigation:this._hasCustomNavigation});var R,t=this._classNames,y=this._allowTouchBodyScroll;return p&&S&&(R=gt.createElement(_0,ht({className:t.overlay,isDarkThemed:!1,onClick:m?k:void 0,allowTouchBodyScroll:y},v))),gt.createElement(ac,ht({},f),gt.createElement(Rl,ht({role:"dialog","aria-modal":p?"true":void 0,ariaLabelledBy:this._headerTextId||void 0,onDismiss:this.dismiss,className:t.hiddenPanel,enableAriaHiddenSiblings:!!S||void 0},b),gt.createElement("div",ht({"aria-hidden":!S&&D},e,{ref:this._panel,className:t.root}),R,gt.createElement(Vh,ht({ignoreExternalFocusing:d,forceFocusInsideTrap:!(!p||g&&!S)&&s,firstFocusableSelector:r,isClickableOutsideFocusTrap:!0},i,{className:t.main,style:x,elementToFocusOnDismiss:n}),gt.createElement("div",{className:t.contentInner},gt.createElement("div",{ref:this._allowScrollOnPanel,className:t.scrollableContent,"data-is-scrollable":!0},gt.createElement("div",{className:t.commands,"data-is-visible":!0},I(this.props,this._onRenderNavigation)),(this._hasCustomNavigation||!a)&&T(this.props,this._onRenderHeader,this._headerTextId),P(this.props,this._onRenderBody),c(this.props,this._onRenderFooter)))))))},yC.prototype.open=function(){void 0===this.props.isOpen&&(this.isActive||this.setState({visibility:nC.animatingOpen}))},yC.prototype.close=function(){void 0===this.props.isOpen&&this.isActive&&this.setState({visibility:nC.animatingClosed})},Object.defineProperty(yC.prototype,"isActive",{get:function(){return this.state.visibility===nC.open||this.state.visibility===nC.animatingOpen},enumerable:!1,configurable:!0}),yC.prototype._shouldListenForOuterClick=function(e){return!!e.isBlocking&&!!e.isOpen},yC.prototype._updateFooterPosition=function(){var e,t=this._scrollableContent;t&&(e=t.clientHeight,t=t.scrollHeight,this.setState({isFooterSticky:e<t}))},yC.prototype._dismissOnOuterClick=function(e){var t=this._panel.current;this.isActive&&t&&!e.defaultPrevented&&(es(t,e.target)||(this.props.onOuterClick?this.props.onOuterClick(e):this.dismiss(e)))},yC.defaultProps={isHiddenOnDismiss:!1,isOpen:void 0,isBlocking:!0,hasCloseButton:!0,type:oy.smallFixedFar},yC),aC={root:"ms-Panel",main:"ms-Panel-main",commands:"ms-Panel-commands",contentInner:"ms-Panel-contentInner",scrollableContent:"ms-Panel-scrollableContent",navigation:"ms-Panel-navigation",closeButton:"ms-Panel-closeButton ms-PanelAction-close",header:"ms-Panel-header",headerText:"ms-Panel-headerText",content:"ms-Panel-content",footer:"ms-Panel-footer",footerInner:"ms-Panel-footerInner",isOpen:"is-open",hasCloseButton:"ms-Panel--hasCloseButton",smallFluid:"ms-Panel--smFluid",smallFixedNear:"ms-Panel--smLeft",smallFixedFar:"ms-Panel--sm",medium:"ms-Panel--md",large:"ms-Panel--lg",largeFixed:"ms-Panel--fixed",extraLarge:"ms-Panel--xl",custom:"ms-Panel--custom",customNear:"ms-Panel--customLeft"},lC="auto",cC=((W={})["@media (min-width: "+$t+"px)"]={width:340},W),uC=((ke={})["@media (min-width: "+eo+"px)"]={width:592},ke["@media (min-width: "+to+"px)"]={width:644},ke),dC=((K={})["@media (min-width: "+co+"px)"]={left:48,width:"auto"},K["@media (min-width: "+oo+"px)"]={left:428},K),pC=((U={})["@media (min-width: "+oo+"px)"]={left:lC,width:940},U),hC=((G={})["@media (min-width: "+oo+"px)"]={left:176},G),mC={paddingLeft:"24px",paddingRight:"24px"},gC=In(sC,function(e){var t,o=e.className,n=e.focusTrapZoneClassName,r=e.hasCloseButton,i=e.headerClassName,s=e.isAnimating,a=e.isFooterSticky,l=e.isFooterAtBottom,c=e.isOnRightSide,u=e.isOpen,d=e.isHiddenOnDismiss,p=e.hasCustomNavigation,h=e.theme,m=e.type,g=void 0===m?oy.smallFixedFar:m,f=h.effects,v=h.fonts,b=h.semanticColors,e=zo(aC,h),m=g===oy.custom||g===oy.customNear;return{root:[e.root,h.fonts.medium,u&&e.isOpen,r&&e.hasCloseButton,{pointerEvents:"none",position:"absolute",top:0,left:0,right:0,bottom:0},m&&c&&e.custom,m&&!c&&e.customNear,o],overlay:[{pointerEvents:"auto",cursor:"pointer"},u&&s&&Le.fadeIn100,!u&&s&&Le.fadeOut100],hiddenPanel:[!u&&!s&&d&&{visibility:"hidden"}],main:[e.main,{backgroundColor:b.bodyBackground,boxShadow:f.elevation64,pointerEvents:"auto",position:"absolute",display:"flex",flexDirection:"column",overflowX:"hidden",overflowY:"auto",WebkitOverflowScrolling:"touch",bottom:0,top:0,left:lC,right:0,width:"100%",selectors:ht(((f={})[Yt]={borderLeft:"3px solid "+b.variantBorder,borderRight:"3px solid "+b.variantBorder},f),function(e){var t;switch(e){case oy.smallFixedFar:t=ht({},cC);break;case oy.medium:t=ht(ht({},cC),uC);break;case oy.large:t=ht(ht(ht({},cC),uC),dC);break;case oy.largeFixed:t=ht(ht(ht(ht({},cC),uC),dC),pC);break;case oy.extraLarge:t=ht(ht(ht(ht({},cC),uC),dC),hC)}return t}(g))},g===oy.smallFluid&&{left:0},g===oy.smallFixedNear&&{left:0,right:lC,width:272},g===oy.customNear&&{right:"auto",left:0},m&&{maxWidth:"100vw"},u&&s&&!c&&Le.slideRightIn40,u&&s&&c&&Le.slideLeftIn40,!u&&s&&!c&&Le.slideLeftOut40,!u&&s&&c&&Le.slideRightOut40,n],commands:[e.commands,{marginTop:18,background:"inherit",selectors:((n={})["@media (min-height: "+$t+"px)"]={position:"sticky",top:0,zIndex:1},n)},p&&{marginTop:"inherit"}],navigation:[e.navigation,{display:"flex",justifyContent:"flex-end"},p&&{height:"44px"}],contentInner:[e.contentInner,{display:"flex",flexDirection:"column",flexGrow:1,overflowY:"hidden",background:"inherit"}],header:[e.header,mC,{alignSelf:"flex-start"},r&&!p&&{flexGrow:1},p&&{flexShrink:0}],headerText:[e.headerText,v.xLarge,{color:b.bodyText,lineHeight:"27px",overflowWrap:"break-word",wordWrap:"break-word",wordBreak:"break-word",hyphens:"auto"},i],scrollableContent:[e.scrollableContent,{overflowY:"auto",background:"inherit"},l&&{flexGrow:1,display:"inherit",flexDirection:"inherit"}],content:[e.content,mC,{paddingBottom:20},l&&{selectors:((t={})["@media (min-height: "+$t+"px)"]={flexGrow:1},t)}],footer:[e.footer,{flexShrink:0,borderTop:"1px solid transparent",transition:"opacity "+we.durationValue3+" "+we.easeFunction2,selectors:((t={})["@media (min-height: "+$t+"px)"]={position:"sticky",bottom:0},t)},a&&{background:b.bodyBackground,borderTopColor:b.variantBorder}],footerInner:[e.footerInner,mC,{paddingBottom:16,paddingTop:16}],subComponentStyles:{closeButton:{root:[e.closeButton,{marginRight:14,color:h.palette.neutralSecondary,fontSize:Ae.large},p&&{marginRight:0,height:"auto",width:"44px"}],rootHovered:{color:h.palette.neutralPrimary}}}}},void 0,{scope:"Panel"}),fC=Fn(),vC={options:[]},bC=gt.forwardRef(function(e,t){var s,o,n,r,a,l,c,u,d,p,i=Hn(vC,e),h=gt.useRef(null),m=Sr(t,h),g=xu(h,i.responsiveMode),h=(o=i.defaultSelectedKeys,n=i.selectedKeys,r=i.defaultSelectedKey,e=i.selectedKey,a=i.options,l=i.multiSelect,c=Oc(a),t=gt.useState([]),h=t[0],u=t[1],d=a!==c,p=Oc(s=l?d&&void 0!==o?o:n:d&&void 0!==r?r:e),gt.useEffect(function(){function i(t){return Oi(a,function(e){return null!=t?e.key===t:e.selected||e.isSelected})}void 0===s&&c||s===p&&!d||u(function(){if(void 0===s)return l?a.map(function(e,t){return e.selected?t:-1}).filter(function(e){return-1!==e}):-1!==(n=i(null))?[n]:[];if(!Array.isArray(s))return-1!==(n=i(s))?[n]:[];for(var e=[],t=0,o=s;t<o.length;t++){var n,r=o[t];-1!==(n=i(r))&&e.push(n)}return e}())},[d,l,c,p,a,s]),[h,u]);return gt.createElement(_C,ht({},i,{responsiveMode:g,hoisted:{rootRef:m,selectedIndices:h[0],setSelectedIndices:h[1]}}))});function yC(e){var r=iC.call(this,e)||this;r._panel=gt.createRef(),r._animationCallback=null,r._hasCustomNavigation=!(!r.props.onRenderNavigation&&!r.props.onRenderNavigationContent),r.dismiss=function(e){r.props.onDismiss&&r.isActive&&r.props.onDismiss(e),e&&e.defaultPrevented||r.close()},r._allowScrollOnPanel=function(e){e?(r._allowTouchBodyScroll?Ts:Ds)(e,r._events):r._events.off(r._scrollableContent),r._scrollableContent=e},r._onRenderNavigation=function(e){if(!r.props.onRenderNavigationContent&&!r.props.onRenderNavigation&&!r.props.hasCloseButton)return null;var t=r.props.onRenderNavigationContent,t=void 0===t?r._onRenderNavigationContent:t;return gt.createElement("div",{className:r._classNames.navigation},t(e,r._onRenderNavigationContent))},r._onRenderNavigationContent=function(e){var t=e.closeButtonAriaLabel,o=e.hasCloseButton,e=e.onRenderHeader,e=void 0===e?r._onRenderHeader:e;if(o){o=null===(o=r._classNames.subComponentStyles)||void 0===o?void 0:o.closeButton();return gt.createElement(gt.Fragment,null,!r._hasCustomNavigation&&e(r.props,r._onRenderHeader,r._headerTextId),gt.createElement(id,{styles:o,className:r._classNames.closeButton,onClick:r._onPanelClick,ariaLabel:t,title:t,"data-is-visible":!0,iconProps:{iconName:"Cancel"}}))}return null},r._onRenderHeader=function(e,t,o){var n=e.headerText,e=e.headerTextProps,e=void 0===e?{}:e;return n?gt.createElement("div",{className:r._classNames.header},gt.createElement("div",ht({id:o,role:"heading","aria-level":1},e,{className:Pr(r._classNames.headerText,e.className)}),n)):null},r._onRenderBody=function(e){return gt.createElement("div",{className:r._classNames.content},e.children)},r._onRenderFooter=function(e){var t=r.props.onRenderFooterContent,t=void 0===t?null:t;return t?gt.createElement("div",{className:r._classNames.footer},gt.createElement("div",{className:r._classNames.footerInner},t())):null},r._animateTo=function(e){e===nC.open&&r.props.onOpen&&r.props.onOpen(),r._animationCallback=r._async.setTimeout(function(){r.setState({visibility:e}),r._onTransitionComplete()},200)},r._clearExistingAnimationTimer=function(){null!==r._animationCallback&&r._async.clearTimeout(r._animationCallback)},r._onPanelClick=function(e){r.dismiss(e)},r._onTransitionComplete=function(){r._updateFooterPosition(),r.state.visibility===nC.open&&r.props.onOpened&&r.props.onOpened(),r.state.visibility===nC.closed&&r.props.onDismissed&&r.props.onDismissed()};e=r.props.allowTouchBodyScroll;return r._allowTouchBodyScroll=void 0!==e&&e,r._async=new xi(r),r._events=new va(r),vi(r),r.state={isFooterSticky:!1,visibility:nC.closed,id:Ss("Panel")},r}bC.displayName="DropdownBase";var CC,_C=(l(DC,CC=gt.Component),Object.defineProperty(DC.prototype,"selectedOptions",{get:function(){var e=this.props;return _f(e.options,e.hoisted.selectedIndices)},enumerable:!1,configurable:!0}),DC.prototype.componentWillUnmount=function(){clearTimeout(this._scrollIdleTimeoutId)},DC.prototype.componentDidUpdate=function(e,t){!0===t.isOpen&&!1===this.state.isOpen&&(this._gotMouseMove=!1,this._hasBeenPositioned=!1,this.props.onDismiss&&this.props.onDismiss())},DC.prototype.render=function(){var e=this._id,t=this.props,o=t.className,n=t.label,r=t.options,i=t.ariaLabel,s=t.required,a=t.errorMessage,l=t.styles,c=t.theme,u=t.panelProps,d=t.calloutProps,p=t.onRenderTitle,h=void 0===p?this._getTitle:p,m=t.onRenderContainer,g=void 0===m?this._onRenderContainer:m,f=t.onRenderCaretDown,v=void 0===f?this._onRenderCaretDown:f,b=t.onRenderLabel,y=void 0===b?this._onRenderLabel:b,C=t.hoisted.selectedIndices,_=this.state,S=_.isOpen,x=_.calloutRenderEdge,p=_.hasFocus,m=t.onRenderPlaceholder||t.onRenderPlaceHolder||this._getPlaceholder;r!==this._sizePosCache.cachedOptions&&this._sizePosCache.updateOptions(r);f=_f(r,C),b=ur(t,cr),_=this._isDisabled(),r=e+"-errorMessage",C=!_&&S&&1===C.length&&0<=C[0]?this._listId+C[0]:void 0;this._classNames=fC(l,{theme:c,className:o,hasError:!!(a&&0<a.length),hasLabel:!!n,isOpen:S,required:s,disabled:_,isRenderingPlaceholder:!f.length,panelClassName:u?u.className:void 0,calloutClassName:d?d.className:void 0,calloutRenderEdge:x});x=!!a&&0<a.length;return gt.createElement("div",{className:this._classNames.root,ref:this.props.hoisted.rootRef,"aria-owns":S?this._listId:void 0},y(this.props,this._onRenderLabel),gt.createElement("div",ht({"data-is-focusable":!_,"data-ktp-target":!0,ref:this._dropDown,id:e,tabIndex:_?-1:0,role:"combobox","aria-haspopup":"listbox","aria-expanded":S?"true":"false","aria-label":i,"aria-labelledby":n&&!i?Ia(this._labelId,this._optionId):void 0,"aria-describedby":x?this._id+"-errorMessage":void 0,"aria-activedescendant":C,"aria-required":s,"aria-disabled":_,"aria-controls":S?this._listId:void 0},b,{className:this._classNames.dropdown,onBlur:this._onDropdownBlur,onKeyDown:this._onDropdownKeyDown,onKeyUp:this._onDropdownKeyUp,onClick:this._onDropdownClick,onMouseDown:this._onDropdownMouseDown,onFocus:this._onFocus}),gt.createElement("span",{id:this._optionId,className:this._classNames.title,"aria-live":p?"polite":void 0,"aria-atomic":!!p||void 0,"aria-invalid":x},f.length?h(f,this._onRenderTitle):m(t,this._onRenderPlaceholder)),gt.createElement("span",{className:this._classNames.caretDownWrapper},v(t,this._onRenderCaretDown))),S&&g(ht(ht({},t),{onDismiss:this._onDismiss}),this._onRenderContainer),x&>.createElement("div",{role:"alert",id:r,className:this._classNames.errorMessage},a))},DC.prototype.focus=function(e){this._dropDown.current&&(this._dropDown.current.focus(),e&&this.setState({isOpen:!0}))},DC.prototype.setSelectedIndex=function(e,t){var o=this.props,n=o.options,r=o.selectedKey,i=o.selectedKeys,s=o.multiSelect,a=o.notifyOnReselect,l=o.hoisted.selectedIndices,c=void 0===l?[]:l,o=!!c&&-1<c.indexOf(t),l=[];t=Math.max(0,Math.min(n.length-1,t)),void 0===r&&void 0===i?(s||a||t!==c[0])&&(s?(l=c?this._copyArray(c):[],o?-1<(c=l.indexOf(t))&&l.splice(c,1):l.push(t)):l=[t],e.persist(),this.props.hoisted.setSelectedIndices(l),this._onChange(e,n,t,o,s)):this._onChange(e,n,t,o,s)},DC.prototype._copyArray=function(e){for(var t=[],o=0,n=e;o<n.length;o++){var r=n[o];t.push(r)}return t},DC.prototype._moveIndex=function(e,t,o,n){var r=this.props.options;if(n===o||0===r.length)return n;o>=r.length?o=0:o<0&&(o=r.length-1);for(var i=0;r[o].itemType===cf.Header||r[o].itemType===cf.Divider||r[o].disabled;){if(i>=r.length)return n;o+t<0?o=r.length:o+t>=r.length&&(o=-1),o+=t,i++}return this.setSelectedIndex(e,o),o},DC.prototype._renderFocusableList=function(e){var t=e.onRenderList,o=void 0===t?this._onRenderList:t,n=e.label,r=e.ariaLabel,t=e.multiSelect;return gt.createElement("div",{className:this._classNames.dropdownItemsWrapper,onKeyDown:this._onZoneKeyDown,onKeyUp:this._onZoneKeyUp,ref:this._host,tabIndex:0},gt.createElement(Zs,{ref:this._focusZone,direction:Ei.vertical,id:this._listId,className:this._classNames.dropdownItems,role:"listbox","aria-label":r,"aria-labelledby":n&&!r?this._labelId:void 0,"aria-multiselectable":t},o(e,this._onRenderList)))},DC.prototype._renderSeparator=function(e){var t=e.index,o=e.key,e=e.hidden?this._classNames.dropdownDividerHidden:this._classNames.dropdownDivider;return 0<t?gt.createElement("div",{role:"separator",key:o,className:e}):null},DC.prototype._renderHeader=function(e){var t=this.props.onRenderOption,o=void 0===t?this._onRenderOption:t,n=e.key,r=e.id,t=e.hidden?this._classNames.dropdownItemHeaderHidden:this._classNames.dropdownItemHeader;return gt.createElement("div",{id:r,key:n,className:t},o(e,this._onRenderOption))},DC.prototype._onItemMouseEnter=function(e,t){this._shouldIgnoreMouseEvent()||t.currentTarget.focus()},DC.prototype._onItemMouseMove=function(e,t){t=t.currentTarget;this._gotMouseMove=!0,this._isScrollIdle&&document.activeElement!==t&&t.focus()},DC.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},DC.prototype._isAltOrMeta=function(e){return e.which===Tn.alt||"Meta"===e.key},DC.prototype._shouldHandleKeyUp=function(e){e=this._lastKeyDownWasAltOrMeta&&this._isAltOrMeta(e);return this._lastKeyDownWasAltOrMeta=!1,!!e&&!(Na()||Aa())},DC.prototype._shouldOpenOnFocus=function(){var e=this.state.hasFocus,t=this.props.openOnKeyboardFocus;return!this._isFocusedByClick&&!0===t&&!e},DC.defaultProps={options:[]},DC),SC={root:"ms-Dropdown-container",label:"ms-Dropdown-label",dropdown:"ms-Dropdown",title:"ms-Dropdown-title",caretDownWrapper:"ms-Dropdown-caretDownWrapper",caretDown:"ms-Dropdown-caretDown",callout:"ms-Dropdown-callout",panel:"ms-Dropdown-panel",dropdownItems:"ms-Dropdown-items",dropdownItem:"ms-Dropdown-item",dropdownDivider:"ms-Dropdown-divider",dropdownOptionText:"ms-Dropdown-optionText",dropdownItemHeader:"ms-Dropdown-header",titleIsPlaceHolder:"ms-Dropdown-titleIsPlaceHolder",titleHasError:"ms-Dropdown-title--hasError"},ke=((W={})[Yt+", "+Zt.replace("@media ","")]=ht({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),W),xC={selectors:ht(((K={})[Yt]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},K),ke)},kC={selectors:((U={})[Yt]={borderColor:"Highlight"},U)},wC=uo(0,$t),IC=In(bC,function(e){var t=e.theme,o=e.hasError,n=e.hasLabel,r=e.className,i=e.isOpen,s=e.disabled,a=e.required,l=e.isRenderingPlaceholder,c=e.panelClassName,u=e.calloutClassName,d=e.calloutRenderEdge;if(!t)throw new Error("theme is undefined or null in base Dropdown getStyles function.");function p(e){return{selectors:((e={"&:hover:focus":[{color:g.menuItemTextHovered,backgroundColor:(e=void 0===e?!1:e)?x:g.menuItemBackgroundHovered},xC],"&:focus":[{backgroundColor:e?x:"transparent"},xC],"&:active":[{color:g.menuItemTextHovered,backgroundColor:e?g.menuItemBackgroundHovered:g.menuBackground},xC]})["."+go+" &:focus:after"]={left:0,top:0,bottom:0,right:0},e[Yt]={border:"none"},e)}}var h=zo(SC,t),m=t.palette,g=t.semanticColors,f=t.effects,v=t.fonts,b={color:g.menuItemTextHovered},y={color:g.menuItemText},C={borderColor:g.errorText},_=[h.dropdownItem,{backgroundColor:"transparent",boxSizing:"border-box",cursor:"pointer",display:"flex",alignItems:"center",padding:"0 8px",width:"100%",minHeight:36,lineHeight:20,height:0,position:"relative",border:"1px solid transparent",borderRadius:0,wordWrap:"break-word",overflowWrap:"break-word",textAlign:"left",".ms-Button-flexContainer":{width:"100%"}}],S=[h.dropdownItemHeader,ht(ht({},v.medium),{fontWeight:Fe.semibold,color:g.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:36,lineHeight:36,cursor:"default",padding:"0 8px",userSelect:"none",textAlign:"left",selectors:((w={})[Yt]=ht({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),w)})],x=g.menuItemBackgroundPressed,k=$e($e([],_),[{backgroundColor:x,color:g.menuItemTextHovered},p(!0),xC]),e=$e($e([],_),[{color:g.disabledText,cursor:"default",selectors:((I={})[Yt]={color:"GrayText",border:"none"},I)}]),w=d===Ba.bottom?f.roundedCorner2+" "+f.roundedCorner2+" 0 0":"0 0 "+f.roundedCorner2+" "+f.roundedCorner2,I=d===Ba.bottom?"0 0 "+f.roundedCorner2+" "+f.roundedCorner2:f.roundedCorner2+" "+f.roundedCorner2+" 0 0";return{root:[h.root,r],label:h.label,dropdown:[h.dropdown,Uo,v.medium,{color:g.menuItemText,borderColor:g.focusBorder,position:"relative",outline:0,userSelect:"none",selectors:((d={})["&:hover ."+h.title]=[!s&&b,{borderColor:i?m.neutralSecondary:m.neutralPrimary},kC],d["&:focus ."+h.title]=[!s&&b,{selectors:((r={})[Yt]={color:"Highlight"},r)}],d["&:focus:after"]=[{pointerEvents:"none",content:"''",position:"absolute",boxSizing:"border-box",top:"0px",left:"0px",width:"100%",height:"100%",border:s?"none":"2px solid "+m.themePrimary,borderRadius:"2px",selectors:((r={})[Yt]={color:"Highlight"},r)}],d["&:active ."+h.title]=[!s&&b,{borderColor:m.themePrimary},kC],d["&:hover ."+h.caretDown]=!s&&y,d["&:focus ."+h.caretDown]=[!s&&y,{selectors:((b={})[Yt]={color:"Highlight"},b)}],d["&:active ."+h.caretDown]=!s&&y,d["&:hover ."+h.titleIsPlaceHolder]=!s&&y,d["&:focus ."+h.titleIsPlaceHolder]=!s&&y,d["&:active ."+h.titleIsPlaceHolder]=!s&&y,d["&:hover ."+h.titleHasError]=C,d["&:active ."+h.titleHasError]=C,d)},i&&"is-open",s&&"is-disabled",a&&"is-required",a&&!n&&{selectors:((n={":before":{content:"'*'",color:g.errorText,position:"absolute",top:-5,right:-10}})[Yt]={selectors:{":after":{right:-14}}},n)}],title:[h.title,Uo,{backgroundColor:g.inputBackground,borderWidth:1,borderStyle:"solid",borderColor:g.inputBorder,borderRadius:i?w:f.roundedCorner2,cursor:"pointer",display:"block",height:32,lineHeight:30,padding:"0 28px 0 8px",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},l&&[h.titleIsPlaceHolder,{color:g.inputPlaceholderText}],o&&[h.titleHasError,C],s&&{backgroundColor:g.disabledBackground,border:"none",color:g.disabledText,cursor:"default",selectors:((C={})[Yt]=ht({border:"1px solid GrayText",color:"GrayText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),C)}],caretDownWrapper:[h.caretDownWrapper,{height:32,lineHeight:30,paddingTop:1,position:"absolute",right:8,top:0},!s&&{cursor:"pointer"}],caretDown:[h.caretDown,{color:m.neutralSecondary,fontSize:v.small.fontSize,pointerEvents:"none"},s&&{color:g.disabledText,selectors:((s={})[Yt]=ht({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),s)}],errorMessage:ht(ht({color:g.errorText},t.fonts.small),{paddingTop:5}),callout:[h.callout,{boxShadow:f.elevation8,borderRadius:I,selectors:((f={})[".ms-Callout-main"]={borderRadius:I},f)},u],dropdownItemsWrapper:{selectors:{"&:focus":{outline:0}}},dropdownItems:[h.dropdownItems,{display:"block"}],dropdownItem:$e($e([],_),[p()]),dropdownItemSelected:k,dropdownItemDisabled:e,dropdownItemSelectedAndDisabled:[k,e,{backgroundColor:"transparent"}],dropdownItemHidden:$e($e([],_),[{display:"none"}]),dropdownDivider:[h.dropdownDivider,{height:1,backgroundColor:g.bodyDivider}],dropdownDividerHidden:[h.dropdownDivider,{display:"none"}],dropdownOptionText:[h.dropdownOptionText,{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:0,maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",margin:"1px"}],dropdownItemHeader:S,dropdownItemHeaderHidden:$e($e([],S),[{display:"none"}]),subComponentStyles:{label:{root:{display:"inline-block"}},multiSelectItem:{root:{padding:0},label:{alignSelf:"stretch",padding:"0 8px",width:"100%"},input:{selectors:((S={})["."+go+" &:focus + label::before"]={outlineOffset:"0px"},S)}},panel:{root:[c],main:{selectors:((c={})[wC]={width:272},c)},contentInner:{padding:"0 0 20px"}}}}},void 0,{scope:"Dropdown"});function DC(e){var l=CC.call(this,e)||this;l._host=gt.createRef(),l._focusZone=gt.createRef(),l._dropDown=gt.createRef(),l._scrollIdleDelay=250,l._sizePosCache=new Uy,l._requestAnimationFrame=Gy(l),l._onChange=function(e,t,o,n,r){var i=l.props,s=i.onChange,i=i.onChanged;(s||i)&&(t=r?ht(ht({},t[o]),{selected:!n}):t[o],s&&s(ht(ht({},e),{target:l._dropDown.current}),t,o),i&&i(t,o))},l._getPlaceholder=function(){return l.props.placeholder||l.props.placeHolder},l._getTitle=function(e,t){var o=l.props.multiSelectDelimiter,o=void 0===o?", ":o;return e.map(function(e){return e.text}).join(o)},l._onRenderTitle=function(e){return gt.createElement(gt.Fragment,null,l._getTitle(e))},l._onRenderPlaceholder=function(e){return l._getPlaceholder()?gt.createElement(gt.Fragment,null,l._getPlaceholder()):null},l._onRenderContainer=function(e){var t=e.calloutProps,o=e.panelProps,n=l.props,r=n.responsiveMode,i=n.dropdownWidth,s=r<=uu.medium,a=l._classNames.subComponentStyles?l._classNames.subComponentStyles.panel:void 0,n=void 0,r=void 0;return"auto"===i?r=l._dropDown.current?l._dropDown.current.clientWidth:0:n=i||(l._dropDown.current?l._dropDown.current.clientWidth:0),s?gt.createElement(gC,ht({isOpen:!0,isLightDismiss:!0,onDismiss:l._onDismiss,hasCloseButton:!1,styles:a},o),l._renderFocusableList(e)):gt.createElement(lc,ht({isBeakVisible:!1,gapSpace:0,doNotLayer:!1,directionalHintFixed:!1,directionalHint:Pa.bottomLeftEdge,calloutWidth:n,calloutMinWidth:r},t,{className:l._classNames.callout,target:l._dropDown.current,onDismiss:l._onDismiss,onScroll:l._onScroll,onPositioned:l._onPositioned}),l._renderFocusableList(e))},l._onRenderCaretDown=function(e){return gt.createElement(Vr,{className:l._classNames.caretDown,iconName:"ChevronDown","aria-hidden":!0})},l._onRenderList=function(e){function n(){var e=i.id?[gt.createElement("div",{role:"group",key:i.id,"aria-labelledby":i.id},i.items)]:i.items;o=$e($e([],o),e),i={items:[]}}var t=e.onRenderItem,r=void 0===t?l._onRenderItem:t,i={items:[]},o=[];return e.options.forEach(function(e,t){!function(e,t){switch(e.itemType){case cf.Header:0<i.items.length&&n();var o=l._id+e.key;i.items.push(r(ht(ht({id:o},e),{index:t}),l._onRenderItem)),i.id=o;break;case cf.Divider:0<t&&i.items.push(r(ht(ht({},e),{index:t}),l._onRenderItem)),0<i.items.length&&n();break;default:i.items.push(r(ht(ht({},e),{index:t}),l._onRenderItem))}}(e,t)}),0<i.items.length&&n(),gt.createElement(gt.Fragment,null,o)},l._onRenderItem=function(e){switch(e.itemType){case cf.Divider:return l._renderSeparator(e);case cf.Header:return l._renderHeader(e);default:return l._renderOption(e)}},l._renderOption=function(e){var t=l.props,o=t.onRenderOption,n=void 0===o?l._onRenderOption:o,r=t.hoisted.selectedIndices,i=void 0===r?[]:r,o=!(void 0===e.index||!i)&&-1<i.indexOf(e.index),t=e.hidden?l._classNames.dropdownItemHidden:o&&!0===e.disabled?l._classNames.dropdownItemSelectedAndDisabled:o?l._classNames.dropdownItemSelected:!0===e.disabled?l._classNames.dropdownItemDisabled:l._classNames.dropdownItem,r=e.title,i=l._classNames.subComponentStyles?l._classNames.subComponentStyles.multiSelectItem:void 0;return l.props.multiSelect?gt.createElement($h,{id:l._listId+e.index,key:e.key,disabled:e.disabled,onChange:l._onItemClick(e),inputProps:ht({"aria-selected":o,onMouseEnter:l._onItemMouseEnter.bind(l,e),onMouseLeave:l._onMouseItemLeave.bind(l,e),onMouseMove:l._onItemMouseMove.bind(l,e),role:"option"},{"data-index":e.index,"data-is-focusable":!e.disabled}),label:e.text,title:r,onRenderLabel:l._onRenderItemLabel.bind(l,e),className:t,checked:o,styles:i,ariaPositionInSet:l._sizePosCache.positionInSet(e.index),ariaSetSize:l._sizePosCache.optionSetSize,ariaLabel:e.ariaLabel}):gt.createElement(dp,{id:l._listId+e.index,key:e.key,"data-index":e.index,"data-is-focusable":!e.disabled,disabled:e.disabled,className:t,onClick:l._onItemClick(e),onMouseEnter:l._onItemMouseEnter.bind(l,e),onMouseLeave:l._onMouseItemLeave.bind(l,e),onMouseMove:l._onItemMouseMove.bind(l,e),role:"option","aria-selected":o?"true":"false",ariaLabel:e.ariaLabel,title:r,"aria-posinset":l._sizePosCache.positionInSet(e.index),"aria-setsize":l._sizePosCache.optionSetSize},n(e,l._onRenderOption))},l._onRenderOption=function(e){return gt.createElement("span",{className:l._classNames.dropdownOptionText},e.text)},l._onRenderItemLabel=function(e){var t=l.props.onRenderOption;return(void 0===t?l._onRenderOption:t)(e,l._onRenderOption)},l._onPositioned=function(e){l._focusZone.current&&l._requestAnimationFrame(function(){var e=l.props.hoisted.selectedIndices;l._focusZone.current&&(!l._hasBeenPositioned&&e&&e[0]&&!l.props.options[e[0]].disabled?((e=ft().getElementById(l._id+"-list"+e[0]))&&l._focusZone.current.focusElement(e),l._hasBeenPositioned=!0):l._focusZone.current.focus())}),l.state.calloutRenderEdge&&l.state.calloutRenderEdge===e.targetEdge||l.setState({calloutRenderEdge:e.targetEdge})},l._onItemClick=function(t){return function(e){t.disabled||(l.setSelectedIndex(e,t.index),l.props.multiSelect||l.setState({isOpen:!1}))}},l._onScroll=function(){l._isScrollIdle||void 0===l._scrollIdleTimeoutId?l._isScrollIdle=!1:(clearTimeout(l._scrollIdleTimeoutId),l._scrollIdleTimeoutId=void 0),l._scrollIdleTimeoutId=window.setTimeout(function(){l._isScrollIdle=!0},l._scrollIdleDelay)},l._onMouseItemLeave=function(e,t){if(!l._shouldIgnoreMouseEvent()&&l._host.current)if(l._host.current.setActive)try{l._host.current.setActive()}catch(e){}else l._host.current.focus()},l._onDismiss=function(){l.setState({isOpen:!1})},l._onDropdownBlur=function(e){l._isDisabled()||l.state.isOpen||(l.setState({hasFocus:!1}),l.props.onBlur&&l.props.onBlur(e))},l._onDropdownKeyDown=function(e){if(!l._isDisabled()&&(l._lastKeyDownWasAltOrMeta=l._isAltOrMeta(e),!l.props.onKeyDown||(l.props.onKeyDown(e),!e.defaultPrevented))){var t,o=l.props.hoisted.selectedIndices.length?l.props.hoisted.selectedIndices[0]:-1,n=e.altKey||e.metaKey,r=l.state.isOpen;switch(e.which){case Tn.enter:l.setState({isOpen:!r});break;case Tn.escape:if(!r)return;l.setState({isOpen:!1});break;case Tn.up:if(n){if(r){l.setState({isOpen:!1});break}return}l.props.multiSelect?l.setState({isOpen:!0}):l._isDisabled()||(t=l._moveIndex(e,-1,o-1,o));break;case Tn.down:n&&(e.stopPropagation(),e.preventDefault()),n&&!r||l.props.multiSelect?l.setState({isOpen:!0}):l._isDisabled()||(t=l._moveIndex(e,1,o+1,o));break;case Tn.home:l.props.multiSelect||(t=l._moveIndex(e,1,0,o));break;case Tn.end:l.props.multiSelect||(t=l._moveIndex(e,-1,l.props.options.length-1,o));break;case Tn.space:break;default:return}t!==o&&(e.stopPropagation(),e.preventDefault())}},l._onDropdownKeyUp=function(e){var t,o;l._isDisabled()||(t=l._shouldHandleKeyUp(e),o=l.state.isOpen,l.props.onKeyUp&&(l.props.onKeyUp(e),e.defaultPrevented)||(e.which===Tn.space?(l.setState({isOpen:!o}),e.stopPropagation(),e.preventDefault()):t&&o&&l.setState({isOpen:!1})))},l._onZoneKeyDown=function(e){var t;l._lastKeyDownWasAltOrMeta=l._isAltOrMeta(e);var o=e.altKey||e.metaKey;switch(e.which){case Tn.up:o?l.setState({isOpen:!1}):l._host.current&&(t=os(l._host.current,l._host.current.lastChild,!0));break;case Tn.home:case Tn.end:case Tn.pageUp:case Tn.pageDown:break;case Tn.down:!o&&l._host.current&&(t=ts(l._host.current,l._host.current.firstChild,!0));break;case Tn.escape:l.setState({isOpen:!1});break;case Tn.tab:return void l.setState({isOpen:!1});default:return}t&&t.focus(),e.stopPropagation(),e.preventDefault()},l._onZoneKeyUp=function(e){l._shouldHandleKeyUp(e)&&l.state.isOpen&&(l.setState({isOpen:!1}),e.preventDefault())},l._onDropdownClick=function(e){l.props.onClick&&(l.props.onClick(e),e.defaultPrevented)||(e=l.state.isOpen,l._isDisabled()||l._shouldOpenOnFocus()||l.setState({isOpen:!e}),l._isFocusedByClick=!1)},l._onDropdownMouseDown=function(){l._isFocusedByClick=!0},l._onFocus=function(e){l._isDisabled()||(l.props.onFocus&&l.props.onFocus(e),e={hasFocus:!0},l._shouldOpenOnFocus()&&(e.isOpen=!0),l.setState(e))},l._isDisabled=function(){var e=l.props.disabled,t=l.props.isDisabled;return e=void 0===e?t:e},l._onRenderLabel=function(e){var t=e.label,o=e.required,n=e.disabled,e=l._classNames.subComponentStyles?l._classNames.subComponentStyles.label:void 0;return t?gt.createElement(om,{className:l._classNames.label,id:l._labelId,required:o,styles:e,disabled:n},t):null},vi(l),e.multiSelect,e.selectedKey,e.selectedKeys,e.defaultSelectedKey,e.defaultSelectedKeys;var t=e.options;return l._id=e.id||Ss("Dropdown"),l._labelId=l._id+"-label",l._listId=l._id+"-list",l._optionId=l._id+"-option",l._isScrollIdle=!0,l._hasBeenPositioned=!1,l._sizePosCache.updateOptions(t),l.state={isOpen:!1,hasFocus:!1,calloutRenderEdge:void 0},l}IC.displayName="Dropdown",Dt([{rawString:".pickerText_cc9894a7{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid "},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";min-width:180px;padding:1px;min-height:32px}.pickerText_cc9894a7:hover{border-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.pickerInput_cc9894a7{height:34px;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;outline:0;padding:0 6px 0;margin:1px}.pickerInput_cc9894a7::-ms-clear{display:none}"}]);var TC,EC="pickerText_cc9894a7",PC="pickerInput_cc9894a7",RC=e,MC=(l(NC,TC=gt.Component),Object.defineProperty(NC.prototype,"items",{get:function(){var e,t;return null!==(t=null!==(t=null!==(e=this.props.selectedItems)&&void 0!==e?e:null===(t=this.selectedItemsList.current)||void 0===t?void 0:t.items)&&void 0!==t?t:this.props.defaultSelectedItems)&&void 0!==t?t:null},enumerable:!1,configurable:!0}),NC.prototype.componentDidMount=function(){this.forceUpdate()},NC.prototype.focus=function(){this.input.current&&this.input.current.focus()},NC.prototype.clearInput=function(){this.input.current&&this.input.current.clear()},Object.defineProperty(NC.prototype,"inputElement",{get:function(){return this.input.current&&this.input.current.inputElement},enumerable:!1,configurable:!0}),Object.defineProperty(NC.prototype,"highlightedItems",{get:function(){return this.selectedItemsList.current?this.selectedItemsList.current.highlightedItems():[]},enumerable:!1,configurable:!0}),NC.prototype.render=function(){var e=this.props,t=e.className,o=e.inputProps,n=e.disabled,r=e.focusZoneProps,i=this.floatingPicker.current&&-1!==this.floatingPicker.current.currentSelectedSuggestionIndex?"sug-"+this.floatingPicker.current.currentSelectedSuggestionIndex:void 0,e=!!this.floatingPicker.current&&this.floatingPicker.current.isSuggestionsShown;return gt.createElement("div",{ref:this.root,className:Pr("ms-BasePicker ms-BaseExtendedPicker",t||""),onKeyDown:this.onBackspace,onCopy:this.onCopy},gt.createElement(Zs,ht({direction:Ei.bidirectional},r),gt.createElement(Pv,{selection:this.selection,selectionMode:dv.multiple},gt.createElement("div",{className:Pr("ms-BasePicker-text",RC.pickerText),role:"list"},this.props.headerComponent,this.renderSelectedItemsList(),this.canAddItems()&>.createElement(wi,ht({},o,{className:Pr("ms-BasePicker-input",RC.pickerInput),ref:this.input,onFocus:this.onInputFocus,onClick:this.onInputClick,onInputValueChange:this.onInputChange,"aria-activedescendant":i,"aria-owns":e?"suggestion-list":void 0,"aria-expanded":e,"aria-haspopup":"true",role:"combobox",disabled:n,onPaste:this.onPaste}))))),this.renderFloatingPicker())},Object.defineProperty(NC.prototype,"floatingPickerProps",{get:function(){return this.props.floatingPickerProps},enumerable:!1,configurable:!0}),Object.defineProperty(NC.prototype,"selectedItemsListProps",{get:function(){return this.props.selectedItemsListProps},enumerable:!1,configurable:!0}),NC.prototype.canAddItems=function(){var e=this.props.itemLimit;return void 0===e||this.items.length<e},NC.prototype.renderFloatingPicker=function(){var e=this.props.onRenderFloatingPicker;return gt.createElement(e,ht({componentRef:this.floatingPicker,onChange:this._onSuggestionSelected,onSuggestionsHidden:this._onSuggestionsShownOrHidden,onSuggestionsShown:this._onSuggestionsShownOrHidden,inputElement:this.input.current?this.input.current.inputElement:void 0,selectedItems:this.items,suggestionItems:this.props.suggestionItems||void 0},this.floatingPickerProps))},NC.prototype.renderSelectedItemsList=function(){var e=this.props.onRenderSelectedItems;return gt.createElement(e,ht({componentRef:this.selectedItemsList,selection:this.selection,selectedItems:this.props.selectedItems||void 0,onItemsDeleted:this.props.selectedItems?this.props.onItemsRemoved:void 0},this.selectedItemsListProps))},NC.prototype._addProcessedItem=function(e){this.props.onItemAdded&&this.props.onItemAdded(e),this.selectedItemsList.current&&this.selectedItemsList.current.addItems([e]),this.input.current&&this.input.current.clear(),this.floatingPicker.current&&this.floatingPicker.current.hidePicker(),this.focus()},NC);function NC(e){var r=TC.call(this,e)||this;return r.floatingPicker=gt.createRef(),r.selectedItemsList=gt.createRef(),r.root=gt.createRef(),r.input=gt.createRef(),r.onSelectionChange=function(){r.forceUpdate()},r.onInputChange=function(e,t){t||(r.setState({queryString:e}),r.floatingPicker.current&&r.floatingPicker.current.onQueryStringChanged(e))},r.onInputFocus=function(e){r.selectedItemsList.current&&r.selectedItemsList.current.unselectAll(),r.props.inputProps&&r.props.inputProps.onFocus&&r.props.inputProps.onFocus(e)},r.onInputClick=function(e){var t;r.selectedItemsList.current&&r.selectedItemsList.current.unselectAll(),r.floatingPicker.current&&r.inputElement&&(t=""===r.inputElement.value||r.inputElement.value!==r.floatingPicker.current.inputText,r.floatingPicker.current.showPicker(t))},r.onBackspace=function(e){e.which===Tn.backspace&&r.selectedItemsList.current&&r.items.length&&(r.input.current&&!r.input.current.isValueSelected&&r.input.current.inputElement===e.currentTarget.ownerDocument.activeElement&&0===r.input.current.cursorLocation?(r.floatingPicker.current&&r.floatingPicker.current.hidePicker(),e.preventDefault(),r.selectedItemsList.current.removeItemAt(r.items.length-1),r._onSelectedItemsChanged()):r.selectedItemsList.current.hasSelectedItems()&&(r.floatingPicker.current&&r.floatingPicker.current.hidePicker(),e.preventDefault(),r.selectedItemsList.current.removeSelectedItems(),r._onSelectedItemsChanged()))},r.onCopy=function(e){r.selectedItemsList.current&&r.selectedItemsList.current.onCopy(e)},r.onPaste=function(e){var t;r.props.onPaste&&(t=e.clipboardData.getData("Text"),e.preventDefault(),r.props.onPaste(t))},r._onSuggestionSelected=function(e){var t,o=r.props.currentRenderedQueryString,n=r.state.queryString;void 0!==o&&o!==n||null!==(n=r.props.onItemSelected?r.props.onItemSelected(e):e)&&((e=n)&&n.then?n.then(function(e){t=e,r._addProcessedItem(t)}):(t=e,r._addProcessedItem(t)))},r._onSelectedItemsChanged=function(){r.focus()},r._onSuggestionsShownOrHidden=function(){r.forceUpdate()},vi(r),r.selection=new fv({onSelectionChanged:function(){return r.onSelectionChange()}}),r.state={queryString:""},r}Dt([{rawString:".resultContent_ae2a2ef5{display:table-row}.resultContent_ae2a2ef5 .resultItem_ae2a2ef5{display:table-cell;vertical-align:bottom}.peoplePickerPersona_ae2a2ef5{width:180px}.peoplePickerPersona_ae2a2ef5 .ms-Persona-details{width:100%}.peoplePicker_ae2a2ef5 .ms-BasePicker-text{min-height:40px}.peoplePickerPersonaContent_ae2a2ef5{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}"}]);var BC,FC,AC,LC=(l(zC,AC=MC),zC),HC=(l(OC,FC=LC),OC);function OC(){return null!==FC&&FC.apply(this,arguments)||this}function zC(){return null!==AC&&AC.apply(this,arguments)||this}(G=BC=BC||{})[G.none=0]="none",G[G.descriptive=1]="descriptive",G[G.more=2]="more",G[G.downArrow=3]="downArrow";var WC,VC=Ao(function(e,t,o){var n=od(e),r=un(n,o);return ht(ht({},r),{root:[n.root,t,e.fonts.medium,o&&o.root]})}),KC=(l(qC,WC=gt.Component),qC.prototype.render=function(){var e=this.props,t=e.className,o=e.styles,e=mt(e,["className","styles"]),o=VC(this.props.theme,t,o);return gt.createElement(Zu,ht({},e,{variantClassName:"ms-Button--facepile",styles:o,onRenderDescription:wa}))},c([Qu("FacepileButton",["theme","styles"],!0)],qC)),GC=Fn(),UC={size:Rr.size48,presence:Mr.none,imageAlt:"",showOverflowTooltip:!0},jC=gt.forwardRef(function(e,t){function o(){return r.text||r.primaryText||""}function n(e,t,o){return gt.createElement("div",{dir:"auto",className:e},t&&t(r,o))}var r=Hn(UC,e),i=Sr(t,gt.useRef(null)),s=function(e,t){return void 0===t&&(t=!0),e?t?function(){return gt.createElement(Md,{content:e,overflowMode:gd.Parent,directionalHint:Pa.topLeftEdge},e)}:function(){return gt.createElement(gt.Fragment,null,e)}:void 0},a=s(o(),r.showOverflowTooltip),l=s(r.secondaryText,r.showOverflowTooltip),c=s(r.tertiaryText,r.showOverflowTooltip),u=s(r.optionalText,r.showOverflowTooltip),d=r.hidePersonaDetails,p=r.onRenderOptionalText,h=void 0===p?u:p,m=r.onRenderPrimaryText,g=void 0===m?a:m,f=r.onRenderSecondaryText,v=void 0===f?l:f,b=r.onRenderTertiaryText,y=void 0===b?c:b,C=r.onRenderPersonaCoin,_=void 0===C?function(e){return gt.createElement(di,ht({},e))}:C,S=r.size,x=r.allowPhoneInitials,k=r.className,w=r.coinProps,I=r.showUnknownPersonaCoin,D=r.coinSize,T=r.styles,E=r.imageAlt,P=r.imageInitials,R=r.imageShouldFadeIn,M=r.imageShouldStartVisible,N=r.imageUrl,B=r.initialsColor,F=r.initialsTextColor,A=r.isOutOfOffice,L=r.onPhotoLoadingStateChange,e=r.onRenderCoin,t=r.onRenderInitials,s=r.presence,p=r.presenceTitle,m=r.presenceColors,f=r.showInitialsUntilImageLoads,b=r.showSecondaryText,C=r.theme,w=ht({allowPhoneInitials:x,showUnknownPersonaCoin:I,coinSize:D,imageAlt:E,imageInitials:P,imageShouldFadeIn:R,imageShouldStartVisible:M,imageUrl:N,initialsColor:B,initialsTextColor:F,onPhotoLoadingStateChange:L,onRenderCoin:e,onRenderInitials:t,presence:s,presenceTitle:p,showInitialsUntilImageLoads:f,size:S,text:o(),isOutOfOffice:A,presenceColors:m},w),b=GC(T,{theme:C,className:k,showSecondaryText:b,presence:s,size:S}),s=ur(r,cr),u=gt.createElement("div",{className:b.details},n(b.primaryText,g,a),n(b.secondaryText,v,l),n(b.tertiaryText,y,c),n(b.optionalText,h,u),r.children);return gt.createElement("div",ht({},s,{ref:i,className:b.root,style:D?{height:D,minWidth:D}:void 0}),_(w,_),(!d||S===Rr.size8||S===Rr.size10||S===Rr.tiny)&&u)});function qC(){return null!==WC&&WC.apply(this,arguments)||this}jC.displayName="PersonaBase";var YC,ZC={root:"ms-Persona",size8:"ms-Persona--size8",size10:"ms-Persona--size10",size16:"ms-Persona--size16",size24:"ms-Persona--size24",size28:"ms-Persona--size28",size32:"ms-Persona--size32",size40:"ms-Persona--size40",size48:"ms-Persona--size48",size56:"ms-Persona--size56",size72:"ms-Persona--size72",size100:"ms-Persona--size100",size120:"ms-Persona--size120",available:"ms-Persona--online",away:"ms-Persona--away",blocked:"ms-Persona--blocked",busy:"ms-Persona--busy",doNotDisturb:"ms-Persona--donotdisturb",offline:"ms-Persona--offline",details:"ms-Persona-details",primaryText:"ms-Persona-primaryText",secondaryText:"ms-Persona-secondaryText",tertiaryText:"ms-Persona-tertiaryText",optionalText:"ms-Persona-optionalText",textContent:"ms-Persona-textContent"},XC=In(jC,function(e){var t=e.className,o=e.showSecondaryText,n=e.theme,r=n.semanticColors,i=n.fonts,s=zo(ZC,n),a=Gr(e.size),l=jr(e.presence),c="16px",e={color:r.bodySubtext,fontWeight:Fe.regular,fontSize:i.small.fontSize};return{root:[s.root,n.fonts.medium,Uo,{color:r.bodyText,position:"relative",height:Br.size48,minWidth:Br.size48,display:"flex",alignItems:"center",selectors:{".contextualHost":{display:"none"}}},a.isSize8&&[s.size8,{height:Br.size8,minWidth:Br.size8}],a.isSize10&&[s.size10,{height:Br.size10,minWidth:Br.size10}],a.isSize16&&[s.size16,{height:Br.size16,minWidth:Br.size16}],a.isSize24&&[s.size24,{height:Br.size24,minWidth:Br.size24}],a.isSize24&&o&&{height:"36px"},a.isSize28&&[s.size28,{height:Br.size28,minWidth:Br.size28}],a.isSize28&&o&&{height:"32px"},a.isSize32&&[s.size32,{height:Br.size32,minWidth:Br.size32}],a.isSize40&&[s.size40,{height:Br.size40,minWidth:Br.size40}],a.isSize48&&s.size48,a.isSize56&&[s.size56,{height:Br.size56,minWidth:Br.size56}],a.isSize72&&[s.size72,{height:Br.size72,minWidth:Br.size72}],a.isSize100&&[s.size100,{height:Br.size100,minWidth:Br.size100}],a.isSize120&&[s.size120,{height:Br.size120,minWidth:Br.size120}],l.isAvailable&&s.available,l.isAway&&s.away,l.isBlocked&&s.blocked,l.isBusy&&s.busy,l.isDoNotDisturb&&s.doNotDisturb,l.isOffline&&s.offline,t],details:[s.details,{padding:"0 24px 0 16px",minWidth:0,width:"100%",textAlign:"left",display:"flex",flexDirection:"column",justifyContent:"space-around"},(a.isSize8||a.isSize10)&&{paddingLeft:17},(a.isSize24||a.isSize28||a.isSize32)&&{padding:"0 8px"},(a.isSize40||a.isSize48)&&{padding:"0 12px"}],primaryText:[s.primaryText,jo,{color:r.bodyText,fontWeight:Fe.regular,fontSize:i.medium.fontSize,selectors:{":hover":{color:r.inputTextHovered}}},o&&{height:c,lineHeight:c,overflowX:"hidden"},(a.isSize8||a.isSize10)&&{fontSize:i.small.fontSize,lineHeight:Br.size8},a.isSize16&&{lineHeight:Br.size28},(a.isSize24||a.isSize28||a.isSize32||a.isSize40||a.isSize48)&&o&&{height:18},(a.isSize56||a.isSize72||a.isSize100||a.isSize120)&&{fontSize:i.xLarge.fontSize},(a.isSize56||a.isSize72||a.isSize100||a.isSize120)&&o&&{height:22}],secondaryText:[s.secondaryText,jo,e,(a.isSize8||a.isSize10||a.isSize16||a.isSize24||a.isSize28||a.isSize32)&&{display:"none"},o&&{display:"block",height:c,lineHeight:c,overflowX:"hidden"},a.isSize24&&o&&{height:18},(a.isSize56||a.isSize72||a.isSize100||a.isSize120)&&{fontSize:i.medium.fontSize},(a.isSize56||a.isSize72||a.isSize100||a.isSize120)&&o&&{height:18}],tertiaryText:[s.tertiaryText,jo,e,{display:"none",fontSize:i.medium.fontSize},(a.isSize72||a.isSize100||a.isSize120)&&{display:"block"}],optionalText:[s.optionalText,jo,e,{display:"none",fontSize:i.medium.fontSize},(a.isSize100||a.isSize120)&&{display:"block"}],textContent:[s.textContent,jo]}},void 0,{scope:"Persona"}),QC=Fn(),JC=(l(t_,YC=gt.Component),t_.prototype.render=function(){var e=this.props.overflowButtonProps,t=this.props,o=t.chevronButtonProps,n=t.maxDisplayablePersonas,r=t.personas,i=t.overflowPersonas,s=t.showAddButton,a=t.ariaLabel,l=t.showTooltip,c=void 0===l||l,t=this._classNames,l="number"==typeof n?Math.min(r.length,n):r.length;o&&!e&&(e=o);n=i&&0<i.length,o=n?r:r.slice(0,l),l=(n?i:r.slice(l))||[];return gt.createElement("div",{className:t.root},this.onRenderAriaDescription(),gt.createElement("div",{className:t.itemContainer},s?this._getAddNewElement():null,gt.createElement("ul",{className:t.members,"aria-label":a},this._onRenderVisiblePersonas(o,0===l.length&&1===r.length,c)),e?this._getOverflowElement(l):null))},t_.prototype.onRenderAriaDescription=function(){var e=this.props.ariaDescription,t=this._classNames;return e&>.createElement("span",{className:t.screenReaderOnly,id:this._ariaDescriptionId},e)},t_.prototype._onRenderVisiblePersonas=function(e,r,i){var s=this,t=this.props,o=t.onRenderPersona,a=void 0===o?this._getPersonaControl:o,o=t.onRenderPersonaCoin,l=void 0===o?this._getPersonaCoinControl:o,c=t.onRenderPersonaWrapper;return e.map(function(e,t){var o=r?a(e,s._getPersonaControl):l(e,s._getPersonaCoinControl),n=e.onClick?function(){return s._getElementWithOnClickEvent(o,e,i,t)}:function(){return s._getElementWithoutOnClickEvent(o,e,i,t)};return gt.createElement("li",{key:(r?"persona":"personaCoin")+"-"+t,className:s._classNames.member},c?c(e,n):n())})},t_.prototype._getElementWithOnClickEvent=function(e,t,o,n){var r=t.keytipProps;return gt.createElement(KC,ht({},ur(t,Yn),this._getElementProps(t,o,n),{keytipProps:r,onClick:this._onPersonaClick.bind(this,t)}),e)},t_.prototype._getElementWithoutOnClickEvent=function(e,t,o,n){return gt.createElement("div",ht({},ur(t,Yn),this._getElementProps(t,o,n)),e)},t_.prototype._getElementProps=function(e,t,o){var n=this._classNames;return{key:(e.imageUrl?"i":"")+o,"data-is-focusable":!0,className:n.itemButton,title:t?e.personaName:void 0,onMouseMove:this._onPersonaMouseMove.bind(this,e),onMouseOut:this._onPersonaMouseOut.bind(this,e)}},t_.prototype._getOverflowElement=function(e){switch(this.props.overflowButtonType){case BC.descriptive:return this._getDescriptiveOverflowElement(e);case BC.downArrow:return this._getIconElement("ChevronDown");case BC.more:return this._getIconElement("More");default:return null}},t_.prototype._getDescriptiveOverflowElement=function(e){var t=this.props.personaSize;if(!e||e.length<1)return null;var o=e.map(function(e){return e.personaName}).join(", "),n=ht({title:o},this.props.overflowButtonProps),o=Math.max(e.length,0),e=this._classNames;return gt.createElement(KC,ht({},n,{ariaDescription:n.title,className:e.descriptiveOverflowButton}),gt.createElement(di,{size:t,onRenderInitials:this._renderInitialsNotPictured(o),initialsColor:Nr.transparent}))},t_.prototype._getIconElement=function(e){var t=this.props,o=t.overflowButtonProps,n=t.personaSize,t=this._classNames;return gt.createElement(KC,ht({},o,{className:t.overflowButton}),gt.createElement(di,{size:n,onRenderInitials:this._renderInitials(e,!0),initialsColor:Nr.transparent}))},t_.prototype._getAddNewElement=function(){var e=this.props,t=e.addButtonProps,o=e.personaSize,e=this._classNames;return gt.createElement(KC,ht({},t,{className:e.addButton}),gt.createElement(di,{size:o,onRenderInitials:this._renderInitials("AddFriend")}))},t_.prototype._onPersonaClick=function(e,t){e.onClick(t,e),t.preventDefault(),t.stopPropagation()},t_.prototype._onPersonaMouseMove=function(e,t){e.onMouseMove&&e.onMouseMove(t,e)},t_.prototype._onPersonaMouseOut=function(e,t){e.onMouseOut&&e.onMouseOut(t,e)},t_.prototype._renderInitials=function(e,t){var o=this._classNames;return function(){return gt.createElement(Vr,{iconName:e,className:t?o.overflowInitialsIcon:""})}},t_.prototype._renderInitialsNotPictured=function(e){var t=this._classNames;return function(){return gt.createElement("span",{className:t.overflowInitialsIcon},e<100?"+"+e:"99+")}},t_.defaultProps={maxDisplayablePersonas:5,personas:[],overflowPersonas:[],personaSize:Rr.size32},t_),$C={root:"ms-Facepile",addButton:"ms-Facepile-addButton ms-Facepile-itemButton",descriptiveOverflowButton:"ms-Facepile-descriptiveOverflowButton ms-Facepile-itemButton",itemButton:"ms-Facepile-itemButton ms-Facepile-person",itemContainer:"ms-Facepile-itemContainer",members:"ms-Facepile-members",member:"ms-Facepile-member",overflowButton:"ms-Facepile-overflowButton ms-Facepile-itemButton"},e_=In(JC,function(e){var t=e.className,o=e.theme,n=e.spacingAroundItemButton,r=void 0===n?2:n,i=o.palette,s=o.fonts,e=zo($C,o),n={textAlign:"center",padding:0,borderRadius:"50%",verticalAlign:"top",display:"inline",backgroundColor:"transparent",border:"none",selectors:{"&::-moz-focus-inner":{padding:0,border:0}}};return{root:[e.root,o.fonts.medium,{width:"auto"},t],addButton:[e.addButton,bo(o,{inset:-1}),n,{fontSize:s.medium.fontSize,color:i.white,backgroundColor:i.themePrimary,marginRight:2*r+"px",selectors:{"&:hover":{backgroundColor:i.themeDark},"&:focus":{backgroundColor:i.themeDark},"&:active":{backgroundColor:i.themeDarker},"&:disabled":{backgroundColor:i.neutralTertiaryAlt}}}],descriptiveOverflowButton:[e.descriptiveOverflowButton,bo(o,{inset:-1}),n,{fontSize:s.small.fontSize,color:i.neutralSecondary,backgroundColor:i.neutralLighter,marginLeft:2*r+"px"}],itemButton:[e.itemButton,n],itemContainer:[e.itemContainer,{display:"flex"}],members:[e.members,{display:"flex",overflow:"hidden",listStyleType:"none",padding:0,margin:"-"+r+"px"}],member:[e.member,{display:"inline-flex",flex:"0 0 auto",margin:r+"px"}],overflowButton:[e.overflowButton,bo(o,{inset:-1}),n,{fontSize:s.medium.fontSize,color:i.neutralSecondary,backgroundColor:i.neutralLighter,marginLeft:2*r+"px"}],overflowInitialsIcon:[{color:i.neutralPrimary,selectors:((i={})[Yt]={color:"WindowText"},i)}],screenReaderOnly:So}},void 0,{scope:"Facepile"});function t_(e){var n=YC.call(this,e)||this;return n._classNames=QC(n.props.styles,{theme:n.props.theme,className:n.props.className}),n._getPersonaControl=function(e){var t=n.props,o=t.getPersonaProps,t=t.personaSize;return gt.createElement(XC,ht({imageInitials:e.imageInitials,imageUrl:e.imageUrl,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,text:e.personaName,size:t},o?o(e):null,{styles:{details:{flex:"1 0 auto"}}}))},n._getPersonaCoinControl=function(e){var t=n.props,o=t.getPersonaProps,t=t.personaSize;return gt.createElement(di,ht({imageInitials:e.imageInitials,imageUrl:e.imageUrl,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,text:e.personaName,size:t},o?o(e):null))},vi(n),n._ariaDescriptionId=Ss(),n}Dt([{rawString:".callout_0508e60b .ms-Suggestions-itemButton{padding:0;border:none}.callout_0508e60b .ms-Suggestions{min-width:300px}"}]);var o_="callout_0508e60b";Dt([{rawString:".root_2f55324e{min-width:260px}.suggestionsItem_2f55324e{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;position:relative;overflow:hidden}.suggestionsItem_2f55324e:hover{background:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:"}.suggestionsItem_2f55324e:hover .closeButton_2f55324e{display:block}.suggestionsItem_2f55324e.suggestionsItemIsSuggested_2f55324e{background:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsItem_2f55324e.suggestionsItemIsSuggested_2f55324e:hover{background:"},{theme:"neutralTertiaryAlt",defaultValue:"#c8c6c4"},{rawString:"}@media screen and (-ms-high-contrast:active){.suggestionsItem_2f55324e.suggestionsItemIsSuggested_2f55324e:hover{background:Highlight;color:HighlightText}}@media screen and (-ms-high-contrast:active){.suggestionsItem_2f55324e.suggestionsItemIsSuggested_2f55324e{background:Highlight;color:HighlightText;-ms-high-contrast-adjust:none}}.suggestionsItem_2f55324e.suggestionsItemIsSuggested_2f55324e .closeButton_2f55324e:hover{background:"},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:"}@media screen and (-ms-high-contrast:active){.suggestionsItem_2f55324e.suggestionsItemIsSuggested_2f55324e .itemButton_2f55324e{color:HighlightText}}.suggestionsItem_2f55324e .closeButton_2f55324e{display:none;color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}.suggestionsItem_2f55324e .closeButton_2f55324e:hover{background:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.actionButton_2f55324e{background-color:transparent;border:0;cursor:pointer;margin:0;position:relative;border-top:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:";height:40px;width:100%;font-size:12px}[dir=ltr] .actionButton_2f55324e{padding-left:8px}[dir=rtl] .actionButton_2f55324e{padding-right:8px}html[dir=ltr] .actionButton_2f55324e{text-align:left}html[dir=rtl] .actionButton_2f55324e{text-align:right}.actionButton_2f55324e:hover{background-color:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:";cursor:pointer}.actionButton_2f55324e:active,.actionButton_2f55324e:focus{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.actionButton_2f55324e .ms-Button-icon{font-size:16px;width:25px}.actionButton_2f55324e .ms-Button-label{margin:0 4px 0 9px}html[dir=rtl] .actionButton_2f55324e .ms-Button-label{margin:0 9px 0 4px}.buttonSelected_2f55324e{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.suggestionsTitle_2f55324e{padding:0 12px;color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:";font-size:12px;line-height:40px;border-bottom:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsContainer_2f55324e{overflow-y:auto;overflow-x:hidden;max-height:300px;border-bottom:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsNone_2f55324e{text-align:center;color:#797775;font-size:12px;line-height:30px}.suggestionsSpinner_2f55324e{margin:5px 0;white-space:nowrap;line-height:20px;font-size:12px}html[dir=ltr] .suggestionsSpinner_2f55324e{padding-left:14px}html[dir=rtl] .suggestionsSpinner_2f55324e{padding-right:14px}html[dir=ltr] .suggestionsSpinner_2f55324e{text-align:left}html[dir=rtl] .suggestionsSpinner_2f55324e{text-align:right}.suggestionsSpinner_2f55324e .ms-Spinner-circle{display:inline-block;vertical-align:middle}.suggestionsSpinner_2f55324e .ms-Spinner-label{display:inline-block;margin:0 10px 0 16px;vertical-align:middle}html[dir=rtl] .suggestionsSpinner_2f55324e .ms-Spinner-label{margin:0 16px 0 10px}.itemButton_2f55324e.itemButton_2f55324e{width:100%;padding:0;min-width:0;height:100%}@media screen and (-ms-high-contrast:active){.itemButton_2f55324e.itemButton_2f55324e{color:WindowText}}.itemButton_2f55324e.itemButton_2f55324e:hover{color:"},{theme:"neutralDark",defaultValue:"#201f1e"},{rawString:"}.closeButton_2f55324e.closeButton_2f55324e{padding:0 4px;height:auto;width:32px}@media screen and (-ms-high-contrast:active){.closeButton_2f55324e.closeButton_2f55324e{color:WindowText}}.closeButton_2f55324e.closeButton_2f55324e:hover{background:"},{theme:"neutralTertiaryAlt",defaultValue:"#c8c6c4"},{rawString:";color:"},{theme:"neutralDark",defaultValue:"#201f1e"},{rawString:"}.suggestionsAvailable_2f55324e{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}"}]);var n_,r_="root_2f55324e",i_="suggestionsItem_2f55324e",s_="closeButton_2f55324e",a_="suggestionsItemIsSuggested_2f55324e",l_="itemButton_2f55324e",c_="actionButton_2f55324e",u_="buttonSelected_2f55324e",d_="suggestionsTitle_2f55324e",p_="suggestionsContainer_2f55324e",h_="suggestionsNone_2f55324e",m_="suggestionsSpinner_2f55324e",g_="suggestionsAvailable_2f55324e",f_=o,v_=Fn(),b_=(l(y_,n_=gt.Component),y_.prototype.render=function(){var e=this.props,t=e.suggestionModel,o=e.RenderSuggestion,n=e.onClick,r=e.className,i=e.id,s=e.onRemoveItem,a=e.isSelectedOverride,l=e.removeButtonAriaLabel,c=e.styles,u=e.theme,e=e.removeButtonIconProps,r=c?v_(c,{theme:u,className:r,suggested:t.selected||a}):{root:Pr("ms-Suggestions-item",f_.suggestionsItem,((u={})["is-suggested "+f_.suggestionsItemIsSuggested]=t.selected||a,u),r),itemButton:Pr("ms-Suggestions-itemButton",f_.itemButton),closeButton:Pr("ms-Suggestions-closeButton",f_.closeButton)};return gt.createElement("div",{className:r.root,role:"presentation"},gt.createElement(dp,{onClick:n,className:r.itemButton,id:i,"aria-selected":t.selected,role:"option","aria-label":t.ariaLabel},o(t.item,this.props)),this.props.showRemoveButton?gt.createElement(id,{iconProps:null!=e?e:{iconName:"Cancel"},styles:{icon:{fontSize:"12px"}},title:l,ariaLabel:l,onClick:s,className:r.closeButton}):null)},y_);function y_(e){e=n_.call(this,e)||this;return vi(e),e}Dt([{rawString:".suggestionsContainer_a151d363{overflow-y:auto;overflow-x:hidden;max-height:300px}.suggestionsContainer_a151d363 .ms-Suggestion-item:hover{background-color:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:";cursor:pointer}.suggestionsContainer_a151d363 .is-suggested{background-color:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.suggestionsContainer_a151d363 .is-suggested:hover{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:";cursor:pointer}"}]);var C_,__="suggestionsContainer_a151d363",S_=n,x_=(l(k_,C_=gt.Component),k_.prototype.nextSuggestion=function(){var e=this.props.suggestions;if(e&&0<e.length){if(-1===this.currentIndex)return this.setSelectedSuggestion(0),!0;if(this.currentIndex<e.length-1)return this.setSelectedSuggestion(this.currentIndex+1),!0;if(this.props.shouldLoopSelection&&this.currentIndex===e.length-1)return this.setSelectedSuggestion(0),!0}return!1},k_.prototype.previousSuggestion=function(){var e=this.props.suggestions;if(e&&0<e.length){if(-1===this.currentIndex)return this.setSelectedSuggestion(e.length-1),!0;if(0<this.currentIndex)return this.setSelectedSuggestion(this.currentIndex-1),!0;if(this.props.shouldLoopSelection&&0===this.currentIndex)return this.setSelectedSuggestion(e.length-1),!0}return!1},Object.defineProperty(k_.prototype,"selectedElement",{get:function(){return this._selectedElement.current||void 0},enumerable:!1,configurable:!0}),k_.prototype.getCurrentItem=function(){return this.props.suggestions[this.currentIndex]},k_.prototype.getSuggestionAtIndex=function(e){return this.props.suggestions[e]},k_.prototype.hasSuggestionSelected=function(){return-1!==this.currentIndex&&this.currentIndex<this.props.suggestions.length},k_.prototype.removeSuggestion=function(e){this.props.suggestions.splice(e,1)},k_.prototype.deselectAllSuggestions=function(){-1<this.currentIndex&&this.props.suggestions[this.currentIndex]&&(this.props.suggestions[this.currentIndex].selected=!1,this.currentIndex=-1,this.forceUpdate())},k_.prototype.setSelectedSuggestion=function(e){var t=this.props.suggestions;e>t.length-1||e<0?(this.currentIndex=0,this.currentSuggestion.selected=!1,this.currentSuggestion=t[0],this.currentSuggestion.selected=!0):(-1<this.currentIndex&&t[this.currentIndex]&&(t[this.currentIndex].selected=!1),t[e].selected=!0,this.currentIndex=e,this.currentSuggestion=t[e]),this.forceUpdate()},k_.prototype.componentDidUpdate=function(){this.scrollSelected()},k_.prototype.render=function(){var o=this,e=this.props,n=e.onRenderSuggestion,r=e.suggestionsItemClassName,t=e.resultsMaximumNumber,i=e.showRemoveButtons,s=e.suggestionsContainerAriaLabel,a=this.SuggestionsItemOfProperType,e=this.props.suggestions;return t&&(e=e.slice(0,t)),gt.createElement("div",{className:Pr("ms-Suggestions-container",S_.suggestionsContainer),id:"suggestion-list",role:"list","aria-label":s},e.map(function(e,t){return gt.createElement("div",{ref:e.selected||t===o.currentIndex?o._selectedElement:void 0,key:e.item.key||t,id:"sug-"+t,role:"listitem","aria-label":e.ariaLabel},gt.createElement(a,{id:"sug-item"+t,suggestionModel:e,RenderSuggestion:n,onClick:o._onClickTypedSuggestionsItem(e.item,t),className:r,showRemoveButton:i,onRemoveItem:o._onRemoveTypedSuggestionsItem(e.item,t),isSelectedOverride:t===o.currentIndex}))}))},k_.prototype.scrollSelected=function(){var e;void 0!==(null===(e=this._selectedElement.current)||void 0===e?void 0:e.scrollIntoView)&&this._selectedElement.current.scrollIntoView(!1)},k_);function k_(e){var n=C_.call(this,e)||this;return n._selectedElement=gt.createRef(),n.SuggestionsItemOfProperType=b_,n._onClickTypedSuggestionsItem=function(t,o){return function(e){n.props.onSuggestionClick(e,t,o)}},n._onRemoveTypedSuggestionsItem=function(t,o){return function(e){(0,n.props.onSuggestionRemove)(e,t,o),e.stopPropagation()}},vi(n),n.currentIndex=-1,n}Dt([{rawString:".root_e4eecb3d{min-width:260px}.actionButton_e4eecb3d{background:0 0;background-color:transparent;border:0;cursor:pointer;margin:0;padding:0;position:relative;width:100%;font-size:12px}html[dir=ltr] .actionButton_e4eecb3d{text-align:left}html[dir=rtl] .actionButton_e4eecb3d{text-align:right}.actionButton_e4eecb3d:hover{background-color:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:";cursor:pointer}.actionButton_e4eecb3d:active,.actionButton_e4eecb3d:focus{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.actionButton_e4eecb3d .ms-Button-icon{font-size:16px;width:25px}.actionButton_e4eecb3d .ms-Button-label{margin:0 4px 0 9px}html[dir=rtl] .actionButton_e4eecb3d .ms-Button-label{margin:0 9px 0 4px}.buttonSelected_e4eecb3d{background-color:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.buttonSelected_e4eecb3d:hover{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:";cursor:pointer}@media screen and (-ms-high-contrast:active){.buttonSelected_e4eecb3d:hover{background-color:Highlight;color:HighlightText}}@media screen and (-ms-high-contrast:active){.buttonSelected_e4eecb3d{background-color:Highlight;color:HighlightText;-ms-high-contrast-adjust:none}}.suggestionsTitle_e4eecb3d{font-size:12px}.suggestionsSpinner_e4eecb3d{margin:5px 0;white-space:nowrap;line-height:20px;font-size:12px}html[dir=ltr] .suggestionsSpinner_e4eecb3d{padding-left:14px}html[dir=rtl] .suggestionsSpinner_e4eecb3d{padding-right:14px}html[dir=ltr] .suggestionsSpinner_e4eecb3d{text-align:left}html[dir=rtl] .suggestionsSpinner_e4eecb3d{text-align:right}.suggestionsSpinner_e4eecb3d .ms-Spinner-circle{display:inline-block;vertical-align:middle}.suggestionsSpinner_e4eecb3d .ms-Spinner-label{display:inline-block;margin:0 10px 0 16px;vertical-align:middle}html[dir=rtl] .suggestionsSpinner_e4eecb3d .ms-Spinner-label{margin:0 16px 0 10px}.itemButton_e4eecb3d{height:100%;width:100%;padding:7px 12px}@media screen and (-ms-high-contrast:active){.itemButton_e4eecb3d{color:WindowText}}.screenReaderOnly_e4eecb3d{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}"}]);var w_,I_="root_e4eecb3d",D_="actionButton_e4eecb3d",T_="buttonSelected_e4eecb3d",E_="suggestionsTitle_e4eecb3d",P_="suggestionsSpinner_e4eecb3d",R_="itemButton_e4eecb3d",M_="screenReaderOnly_e4eecb3d",N_=r;(W=w_=w_||{})[W.header=0]="header",W[W.suggestion=1]="suggestion",W[W.footer=2]="footer";var B_,F_,A_,L_=(l(K_,A_=gt.Component),K_.prototype.render=function(){var e=this.props,t=e.renderItem,o=e.onExecute,n=e.isSelected,r=e.id,e=e.className;return o?gt.createElement("div",{id:r,onClick:o,className:Pr("ms-Suggestions-sectionButton",e,N_.actionButton,((o={})["is-selected "+N_.buttonSelected]=n,o))},t()):gt.createElement("div",{id:r,className:Pr("ms-Suggestions-section",e,N_.suggestionsTitle)},t())},K_),H_=(l(V_,F_=gt.Component),V_.prototype.componentDidMount=function(){this.resetSelectedItem()},V_.prototype.componentDidUpdate=function(e){var t=this;this.scrollSelected(),e.suggestions&&e.suggestions!==this.props.suggestions&&this.setState({suggestions:this.props.suggestions},function(){t.resetSelectedItem()})},V_.prototype.componentWillUnmount=function(){var e;null===(e=this._suggestions.current)||void 0===e||e.deselectAllSuggestions()},V_.prototype.render=function(){var e=this.props,t=e.className,o=e.headerItemsProps,n=e.footerItemsProps,r=e.suggestionsAvailableAlertText,i=j(So),e=this.state.suggestions&&0<this.state.suggestions.length&&r;return gt.createElement("div",{className:Pr("ms-Suggestions",t||"",N_.root)},o&&this.renderHeaderItems(),this._renderSuggestions(),n&&this.renderFooterItems(),e?gt.createElement("span",{role:"alert","aria-live":"polite",className:i},r):null)},Object.defineProperty(V_.prototype,"currentSuggestion",{get:function(){var e;return(null===(e=this._suggestions.current)||void 0===e?void 0:e.getCurrentItem())||void 0},enumerable:!1,configurable:!0}),Object.defineProperty(V_.prototype,"currentSuggestionIndex",{get:function(){return this._suggestions.current?this._suggestions.current.currentIndex:-1},enumerable:!1,configurable:!0}),Object.defineProperty(V_.prototype,"selectedElement",{get:function(){var e;return this._selectedElement.current||(null===(e=this._suggestions.current)||void 0===e?void 0:e.selectedElement)},enumerable:!1,configurable:!0}),V_.prototype.hasSuggestionSelected=function(){var e;return(null===(e=this._suggestions.current)||void 0===e?void 0:e.hasSuggestionSelected())||!1},V_.prototype.hasSelection=function(){var e=this.state,t=e.selectedHeaderIndex,e=e.selectedFooterIndex;return-1!==t||this.hasSuggestionSelected()||-1!==e},V_.prototype.executeSelectedAction=function(){var e,t=this.props,o=t.headerItemsProps,n=t.footerItemsProps,r=this.state,t=r.selectedHeaderIndex,r=r.selectedFooterIndex;o&&-1!==t&&t<o.length?(e=o[t]).onExecute&&e.onExecute():null!==(e=this._suggestions.current)&&void 0!==e&&e.hasSuggestionSelected()?this.props.completeSuggestion():n&&-1!==r&&r<n.length&&((r=n[r]).onExecute&&r.onExecute())},V_.prototype.removeSuggestion=function(e){var t;null===(t=this._suggestions.current)||void 0===t||t.removeSuggestion(e||(null===(e=this._suggestions.current)||void 0===e?void 0:e.currentIndex))},V_.prototype.handleKeyDown=function(e){var t,o=this.state,n=o.selectedHeaderIndex,r=o.selectedFooterIndex,i=!1;return e===Tn.down?-1!==n||null!==(o=this._suggestions.current)&&void 0!==o&&o.hasSuggestionSelected()||-1!==r?-1!==n?(this.selectNextItem(w_.header),i=!0):null!==(t=this._suggestions.current)&&void 0!==t&&t.hasSuggestionSelected()?(this.selectNextItem(w_.suggestion),i=!0):-1!==r&&(this.selectNextItem(w_.footer),i=!0):this.selectFirstItem():e===Tn.up?-1!==n||null!==(t=this._suggestions.current)&&void 0!==t&&t.hasSuggestionSelected()||-1!==r?-1!==n?(this.selectPreviousItem(w_.header),i=!0):null!==(n=this._suggestions.current)&&void 0!==n&&n.hasSuggestionSelected()?(this.selectPreviousItem(w_.suggestion),i=!0):-1!==r&&(this.selectPreviousItem(w_.footer),i=!0):this.selectLastItem():e!==Tn.enter&&e!==Tn.tab||this.hasSelection()&&(this.executeSelectedAction(),i=!0),i},V_.prototype.scrollSelected=function(){this._selectedElement.current&&this._selectedElement.current.scrollIntoView(!1)},V_.prototype.renderHeaderItems=function(){var n=this,e=this.props,t=e.headerItemsProps,e=e.suggestionsHeaderContainerAriaLabel,r=this.state.selectedHeaderIndex;return t?gt.createElement("div",{className:Pr("ms-Suggestions-headerContainer",N_.suggestionsContainer),id:"suggestionHeader-list",role:"list","aria-label":e},t.map(function(e,t){var o=-1!==r&&r===t;return e.shouldShow()?gt.createElement("div",{ref:o?n._selectedElement:void 0,id:"sug-header"+t,key:"sug-header"+t,role:"listitem","aria-label":e.ariaLabel},gt.createElement(L_,{id:"sug-header-item"+t,isSelected:o,renderItem:e.renderItem,onExecute:e.onExecute,className:e.className})):null})):null},V_.prototype.renderFooterItems=function(){var n=this,e=this.props,t=e.footerItemsProps,e=e.suggestionsFooterContainerAriaLabel,r=this.state.selectedFooterIndex;return t?gt.createElement("div",{className:Pr("ms-Suggestions-footerContainer",N_.suggestionsContainer),id:"suggestionFooter-list",role:"list","aria-label":e},t.map(function(e,t){var o=-1!==r&&r===t;return e.shouldShow()?gt.createElement("div",{ref:o?n._selectedElement:void 0,id:"sug-footer"+t,key:"sug-footer"+t,role:"listitem","aria-label":e.ariaLabel},gt.createElement(L_,{id:"sug-footer-item"+t,isSelected:o,renderItem:e.renderItem,onExecute:e.onExecute,className:e.className})):null})):null},V_.prototype._renderSuggestions=function(){var e=this.SuggestionsOfProperType;return gt.createElement(e,ht({ref:this._suggestions},this.props,{suggestions:this.state.suggestions}))},V_.prototype.selectNextItem=function(e,t){e!==t?this._selectNextItemOfItemType(e,(t=void 0!==t?t:e)===e?this._getCurrentIndexForType(e):void 0)||this.selectNextItem(this._getNextItemSectionType(e),t):this._selectNextItemOfItemType(e)},V_.prototype.selectPreviousItem=function(e,t){e!==t?this._selectPreviousItemOfItemType(e,(t=void 0!==t?t:e)===e?this._getCurrentIndexForType(e):void 0)||this.selectPreviousItem(this._getPreviousItemSectionType(e),t):this._selectPreviousItemOfItemType(e)},V_.prototype.resetSelectedItem=function(){var e;this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),null===(e=this._suggestions.current)||void 0===e||e.deselectAllSuggestions(),void 0!==this.props.shouldSelectFirstItem&&!this.props.shouldSelectFirstItem()||this.selectFirstItem()},V_.prototype.selectFirstItem=function(){this._selectNextItemOfItemType(w_.header)||this._selectNextItemOfItemType(w_.suggestion)||this._selectNextItemOfItemType(w_.footer)},V_.prototype.selectLastItem=function(){this._selectPreviousItemOfItemType(w_.footer)||this._selectPreviousItemOfItemType(w_.suggestion)||this._selectPreviousItemOfItemType(w_.header)},V_.prototype._selectNextItemOfItemType=function(e,t){var o;if(void 0===t&&(t=-1),e===w_.suggestion){if(this.state.suggestions.length>t+1)return null===(o=this._suggestions.current)||void 0===o||o.setSelectedSuggestion(t+1),this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),!0}else{var n=e===w_.header,r=n?this.props.headerItemsProps:this.props.footerItemsProps;if(r&&r.length>t+1)for(var i=t+1;i<r.length;i++){var s=r[i];if(s.onExecute&&s.shouldShow())return this.setState({selectedHeaderIndex:n?i:-1}),this.setState({selectedFooterIndex:n?-1:i}),null===(s=this._suggestions.current)||void 0===s||s.deselectAllSuggestions(),!0}}return!1},V_.prototype._selectPreviousItemOfItemType=function(e,t){var o;if(e===w_.suggestion){if(0<(n=void 0!==t?t:this.state.suggestions.length))return null===(o=this._suggestions.current)||void 0===o||o.setSelectedSuggestion(n-1),this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),!0}else{var n,r=e===w_.header,i=r?this.props.headerItemsProps:this.props.footerItemsProps;if(i&&0<(n=void 0!==t?t:i.length))for(var s=n-1;0<=s;s--){var a=i[s];if(a.onExecute&&a.shouldShow())return this.setState({selectedHeaderIndex:r?s:-1}),this.setState({selectedFooterIndex:r?-1:s}),null===(a=this._suggestions.current)||void 0===a||a.deselectAllSuggestions(),!0}}return!1},V_.prototype._getCurrentIndexForType=function(e){switch(e){case w_.header:return this.state.selectedHeaderIndex;case w_.suggestion:return this._suggestions.current.currentIndex;case w_.footer:return this.state.selectedFooterIndex}},V_.prototype._getNextItemSectionType=function(e){switch(e){case w_.header:return w_.suggestion;case w_.suggestion:return w_.footer;case w_.footer:return w_.header}},V_.prototype._getPreviousItemSectionType=function(e){switch(e){case w_.header:return w_.footer;case w_.suggestion:return w_.header;case w_.footer:return w_.suggestion}},V_),O_=t,z_=(l(W_,B_=gt.Component),Object.defineProperty(W_.prototype,"inputText",{get:function(){return this.state.queryString},enumerable:!1,configurable:!0}),Object.defineProperty(W_.prototype,"suggestions",{get:function(){return this.suggestionStore.suggestions},enumerable:!1,configurable:!0}),W_.prototype.forceResolveSuggestion=function(){this.suggestionsControl.current&&this.suggestionsControl.current.hasSuggestionSelected()?this.completeSuggestion():this._onValidateInput()},Object.defineProperty(W_.prototype,"currentSelectedSuggestionIndex",{get:function(){return this.suggestionsControl.current?this.suggestionsControl.current.currentSuggestionIndex:-1},enumerable:!1,configurable:!0}),Object.defineProperty(W_.prototype,"isSuggestionsShown",{get:function(){return void 0!==this.state.suggestionsVisible&&this.state.suggestionsVisible},enumerable:!1,configurable:!0}),W_.prototype.componentDidMount=function(){this._bindToInputElement(),this.isComponentMounted=!0,this._onResolveSuggestions=this._async.debounce(this._onResolveSuggestions,this.props.resolveDelay)},W_.prototype.componentDidUpdate=function(){this._bindToInputElement()},W_.prototype.componentWillUnmount=function(){this._unbindFromInputElement(),this.isComponentMounted=!1},W_.prototype.updateSuggestions=function(e,t){void 0===t&&(t=!1),this.suggestionStore.updateSuggestions(e),t&&this.forceUpdate()},W_.prototype.render=function(){var e=this.props.className;return gt.createElement("div",{ref:this.root,className:Pr("ms-BasePicker ms-BaseFloatingPicker",e||"")},this.renderSuggestions())},W_.prototype.renderSuggestions=function(){var e=this.SuggestionsControlOfProperType;return this.props.suggestionItems&&this.suggestionStore.updateSuggestions(this.props.suggestionItems),this.state.suggestionsVisible?gt.createElement(lc,ht({className:O_.callout,isBeakVisible:!1,gapSpace:5,target:this.props.inputElement,onDismiss:this.hidePicker,directionalHint:Pa.bottomLeftEdge,directionalHintForRTL:Pa.bottomRightEdge,calloutWidth:this.props.calloutWidth||0},this.props.pickerCalloutProps),gt.createElement(e,ht({onRenderSuggestion:this.props.onRenderSuggestionsItem,onSuggestionClick:this.onSuggestionClick,onSuggestionRemove:this.onSuggestionRemove,suggestions:this.suggestionStore.getSuggestions(),componentRef:this.suggestionsControl,completeSuggestion:this.completeSuggestion,shouldLoopSelection:!1},this.props.pickerSuggestionsProps))):null},W_.prototype.onSelectionChange=function(){this.forceUpdate()},W_.prototype.updateValue=function(e){""===e?this.updateSuggestionWithZeroState():this._onResolveSuggestions(e)},W_.prototype.updateSuggestionWithZeroState=function(){var e;this.props.onZeroQuerySuggestion?(e=(0,this.props.onZeroQuerySuggestion)(this.props.selectedItems),this.updateSuggestionsList(e)):this.hidePicker()},W_.prototype.updateSuggestionsList=function(t){var o=this;Array.isArray(t)?this.updateSuggestions(t,!0):t&&t.then&&(this.currentPromise=t).then(function(e){t===o.currentPromise&&o.isComponentMounted&&o.updateSuggestions(e,!0)})},W_.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},W_.prototype._updateActiveDescendant=function(){var e;this.props.inputElement&&this.suggestionsControl.current&&this.suggestionsControl.current.selectedElement&&((e=this.suggestionsControl.current.selectedElement.getAttribute("id"))&&this.props.inputElement.setAttribute("aria-activedescendant",e))},W_.prototype._onResolveSuggestions=function(e){e=this.props.onResolveSuggestions(e,this.props.selectedItems);this._updateSuggestionsVisible(!0),null!==e&&this.updateSuggestionsList(e)},W_.prototype._updateSuggestionsVisible=function(e){e?this.showPicker():this.hidePicker()},W_.prototype._bindToInputElement=function(){this.props.inputElement&&!this.state.didBind&&(this.props.inputElement.addEventListener("keydown",this.onKeyDown),this.setState({didBind:!0}))},W_.prototype._unbindFromInputElement=function(){this.props.inputElement&&this.state.didBind&&(this.props.inputElement.removeEventListener("keydown",this.onKeyDown),this.setState({didBind:!1}))},W_);function W_(e){var n=B_.call(this,e)||this;return n.root=gt.createRef(),n.suggestionsControl=gt.createRef(),n.SuggestionsControlOfProperType=H_,n.isComponentMounted=!1,n.onQueryStringChanged=function(e){e!==n.state.queryString&&(n.setState({queryString:e}),n.props.onInputChanged&&n.props.onInputChanged(e),n.updateValue(e))},n.hidePicker=function(){var e=n.isSuggestionsShown;n.setState({suggestionsVisible:!1}),n.props.onSuggestionsHidden&&e&&n.props.onSuggestionsHidden()},n.showPicker=function(e){void 0===e&&(e=!1);var t=n.isSuggestionsShown;n.setState({suggestionsVisible:!0});var o=n.props.inputElement?n.props.inputElement.value:"";e&&n.updateValue(o),n.props.onSuggestionsShown&&!t&&n.props.onSuggestionsShown()},n.completeSuggestion=function(){n.suggestionsControl.current&&n.suggestionsControl.current.hasSuggestionSelected()&&n.onChange(n.suggestionsControl.current.currentSuggestion.item)},n.onSuggestionClick=function(e,t,o){n.onChange(t),n._updateSuggestionsVisible(!1)},n.onSuggestionRemove=function(e,t,o){n.props.onRemoveSuggestion&&n.props.onRemoveSuggestion(t),n.suggestionsControl.current&&n.suggestionsControl.current.removeSuggestion(o)},n.onKeyDown=function(e){if(n.state.suggestionsVisible&&(!n.props.inputElement||n.props.inputElement.contains(e.target))){var t=e.which;switch(t){case Tn.escape:n.hidePicker(),e.preventDefault(),e.stopPropagation();break;case Tn.tab:case Tn.enter:!e.shiftKey&&!e.ctrlKey&&n.suggestionsControl.current&&n.suggestionsControl.current.handleKeyDown(t)?(e.preventDefault(),e.stopPropagation()):n._onValidateInput();break;case Tn.del:n.props.onRemoveSuggestion&&n.suggestionsControl.current&&n.suggestionsControl.current.hasSuggestionSelected&&n.suggestionsControl.current.currentSuggestion&&e.shiftKey&&(n.props.onRemoveSuggestion(n.suggestionsControl.current.currentSuggestion.item),n.suggestionsControl.current.removeSuggestion(),n.forceUpdate(),e.stopPropagation());break;case Tn.up:case Tn.down:n.suggestionsControl.current&&n.suggestionsControl.current.handleKeyDown(t)&&(e.preventDefault(),e.stopPropagation(),n._updateActiveDescendant())}}},n._onValidateInput=function(){var e;n.state.queryString&&n.props.onValidateInput&&n.props.createGenericItem&&(e=n.props.createGenericItem(n.state.queryString,n.props.onValidateInput(n.state.queryString)),e=n.suggestionStore.convertSuggestionsToSuggestionItems([e]),n.onChange(e[0].item))},n._async=new xi(n),vi(n),n.suggestionStore=e.suggestionsStore,n.state={queryString:"",didBind:!1},n}function V_(e){var t=F_.call(this,e)||this;return t._selectedElement=gt.createRef(),t._suggestions=gt.createRef(),t.SuggestionsOfProperType=x_,vi(t),t.state={selectedHeaderIndex:-1,selectedFooterIndex:-1,suggestions:e.suggestions},t}function K_(e){e=A_.call(this,e)||this;return vi(e),e}Dt([{rawString:".resultContent_a17eb2a2{display:table-row}.resultContent_a17eb2a2 .resultItem_a17eb2a2{display:table-cell;vertical-align:bottom}.peoplePickerPersona_a17eb2a2{width:180px}.peoplePickerPersona_a17eb2a2 .ms-Persona-details{width:100%}.peoplePicker_a17eb2a2 .ms-BasePicker-text{min-height:40px}.peoplePickerPersonaContent_a17eb2a2{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:7px 12px}"}]);var G_,U_,j_=(l(Z_,U_=z_),Z_),q_=(l(Y_,G_=j_),Y_.defaultProps={onRenderSuggestionsItem:function(e,t){return e=ht({},e),ht({},t),gt.createElement("div",{className:Pr("ms-PeoplePicker-personaContent","peoplePickerPersonaContent_a17eb2a2")},gt.createElement(XC,ht({presence:void 0!==e.presence?e.presence:Mr.none,size:Rr.size40,className:Pr("ms-PeoplePicker-Persona","peoplePickerPersona_a17eb2a2"),showSecondaryText:!0},e)))},createGenericItem:X_},Y_);function Y_(){return null!==G_&&G_.apply(this,arguments)||this}function Z_(){return null!==U_&&U_.apply(this,arguments)||this}function X_(e,t){var o={key:e,primaryText:e,imageInitials:"!",isValid:t};return t||(o.imageInitials=Cr(e,Pn())),o}var Q_,J_,$_=(tS.prototype.updateSuggestions=function(e){e&&0<e.length?this.suggestions=this.convertSuggestionsToSuggestionItems(e):this.suggestions=[]},tS.prototype.getSuggestions=function(){return this.suggestions},tS.prototype.getSuggestionAtIndex=function(e){return this.suggestions[e]},tS.prototype.removeSuggestion=function(e){this.suggestions.splice(e,1)},tS.prototype.convertSuggestionsToSuggestionItems=function(e){return Array.isArray(e)?e.map(this._ensureSuggestionModel):[]},tS),eS={host:"ms-HoverCard-host"};function tS(e){var t=this;this._isSuggestionModel=function(e){return void 0!==e.item},this._ensureSuggestionModel=function(e){return t._isSuggestionModel(e)?e:{item:e,selected:!1,ariaLabel:void 0!==t.getAriaLabel?t.getAriaLabel(e):e.name||e.text||e.primaryText}},this.suggestions=[],this.getAriaLabel=e&&e.getAriaLabel}(K=Q_=Q_||{})[K.hover=0]="hover",K[K.hotKey=1]="hotKey",(ke=J_=J_||{}).plain="PlainCard",ke.expanding="ExpandingCard";var oS,nS={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};(U=oS=oS||{})[U.compact=0]="compact",U[U.expanded=1]="expanded";function rS(e){var t=void 0===(u=e.gapSpace)?0:u,o=void 0===(d=e.directionalHint)?Pa.bottomLeftEdge:d,n=e.directionalHintFixed,r=e.targetElement,i=e.firstFocus,s=e.trapFocus,a=e.onLeave,l=e.className,c=e.finalHeight,u=e.content,d=e.calloutProps,d=ht(ht(ht({},ur(e,cr)),{className:l,target:r,isBeakVisible:!1,directionalHint:o,directionalHintFixed:n,finalHeight:c,minPagePadding:24,onDismiss:a,gapSpace:t}),d);return gt.createElement(gt.Fragment,null,s?gt.createElement(Kh,ht({},d,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!i}}),u):gt.createElement(lc,ht({},d),u))}var iS,sS,aS,lS=Fn(),cS=(l(CS,aS=gt.Component),CS.prototype.componentDidMount=function(){this._checkNeedsScroll()},CS.prototype.componentWillUnmount=function(){this._async.dispose()},CS.prototype.render=function(){var e=this.props,t=e.styles,o=e.compactCardHeight,n=e.expandedCardHeight,r=e.theme,i=e.mode,s=e.className,a=this.state,l=a.needsScroll,e=a.firstFrameRendered,a=o+n;this._classNames=lS(t,{theme:r,compactCardHeight:o,className:s,expandedCardHeight:n,needsScroll:l,expandedCardFirstFrameRendered:i===oS.expanded&&e});e=gt.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return gt.createElement(rS,ht({},this.props,{content:e,finalHeight:a,className:this._classNames.root}))},CS.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},CS),uS=In(cS,function(e){var t=e.theme,o=e.needsScroll,n=e.expandedCardFirstFrameRendered,r=e.compactCardHeight,i=e.expandedCardHeight,s=e.className,a=t.palette,e=zo(nS,t);return{root:[e.root,{width:320,pointerEvents:"none",selectors:((t={})[Yt]={border:"1px solid WindowText"},t)},s],compactCard:[e.compactCard,{pointerEvents:"auto",position:"relative",height:r}],expandedCard:[e.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:a.neutralLighter}}},n&&{height:i}],expandedCardScroll:[e.expandedCardScroll,o&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}},void 0,{scope:"ExpandingCard"}),dS={root:"ms-PlainCard-root"},pS=Fn(),hS=(l(yS,sS=gt.Component),yS.prototype.render=function(){var e=this.props,t=e.styles,o=e.theme,e=e.className;this._classNames=pS(t,{theme:o,className:e});e=gt.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return gt.createElement(rS,ht({},this.props,{content:e,className:this._classNames.root}))},yS),mS=In(hS,function(e){var t=e.theme,e=e.className;return{root:[zo(dS,t).root,{pointerEvents:"auto",selectors:((t={})[Yt]={border:"1px solid WindowText"},t)},e]}},void 0,{scope:"PlainCard"}),gS=Fn(),fS=(l(bS,iS=gt.Component),bS.prototype.componentDidMount=function(){this._setEventListeners()},bS.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},bS.prototype.componentDidUpdate=function(e,t){var o=this;e.target!==this.props.target&&(this._events.off(),this._setEventListeners()),t.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout(function(){o.setState({mode:oS.expanded},function(){o.props.onCardExpand&&o.props.onCardExpand()})},this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:oS.compact}),this.props.onCardHide&&this.props.onCardHide()))},bS.prototype.render=function(){var e=this.props,t=e.expandingCardProps,o=e.children,n=e.id,r=e.setAriaDescribedBy,i=void 0===r||r,s=e.styles,a=e.theme,l=e.className,c=e.type,u=e.plainCardProps,d=e.trapFocus,p=e.setInitialFocus,h=this.state,r=h.isHoverCardVisible,e=h.mode,h=h.openMode,n=n||Ss("hoverCard");this._classNames=gS(s,{theme:a,className:l});h=ht(ht({},ur(this.props,cr)),{id:n,trapFocus:!!d,firstFocus:p||h===Q_.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),e=ht(ht(ht({},t),h),{mode:e}),h=ht(ht({},u),h);return gt.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":i&&r?n:void 0,"data-is-focusable":!this.props.target},o,r&&(c===J_.expanding?gt.createElement(uS,ht({},e)):gt.createElement(mS,ht({},h))))},bS.prototype._getTargetElement=function(e){switch(typeof e){case"string":return ft().querySelector(e);case"object":return e;default:return this._hoverCard.current||void 0}},bS.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},bS.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:Tn.c,type:J_.expanding},bS),vS=In(fS,function(e){var t=e.className,e=e.theme;return{host:[zo(eS,e).host,t]}},void 0,{scope:"HoverCard"});function bS(e){var r=iS.call(this,e)||this;return r._hoverCard=gt.createRef(),r.dismiss=function(e){r._async.clearTimeout(r._openTimerId),r._async.clearTimeout(r._dismissTimerId),e?r._dismissTimerId=r._async.setTimeout(function(){r._setDismissedState()},r.props.cardDismissDelay):r._setDismissedState()},r._cardOpen=function(e){r._shouldBlockHoverCard()||"keydown"===e.type&&e.which!==r.props.openHotKey||(r._async.clearTimeout(r._dismissTimerId),"mouseenter"===e.type&&(r._currentMouseTarget=e.currentTarget),r._executeCardOpen(e))},r._executeCardOpen=function(t){r._async.clearTimeout(r._openTimerId),r._openTimerId=r._async.setTimeout(function(){r.setState(function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:oS.compact,openMode:"keydown"===t.type?Q_.hotKey:Q_.hover}})},r.props.cardOpenDelay)},r._cardDismiss=function(e,t){e?t instanceof MouseEvent&&("keydown"===t.type&&t.which!==Tn.escape||r.props.sticky||r._currentMouseTarget!==t.currentTarget&&t.which!==Tn.escape||r.dismiss(!0)):r.props.sticky&&!(t instanceof MouseEvent)&&t.nativeEvent instanceof MouseEvent&&"mouseleave"===t.type||r.dismiss(!0)},r._setDismissedState=function(){r.setState({isHoverCardVisible:!1,mode:oS.compact,openMode:Q_.hover})},r._instantOpenAsExpanded=function(e){r._async.clearTimeout(r._dismissTimerId),r.setState(function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:oS.expanded}})},r._setEventListeners=function(){var e=r.props,t=e.trapFocus,o=e.instantOpenOnClick,n=e.eventListenerTarget,e=n?r._getTargetElement(n):r._getTargetElement(r.props.target),n=r._nativeDismissEvent;e&&(r._events.on(e,"mouseenter",r._cardOpen),r._events.on(e,"mouseleave",n),t?r._events.on(e,"keydown",r._cardOpen):(r._events.on(e,"focus",r._cardOpen),r._events.on(e,"blur",n)),o?r._events.on(e,"click",r._instantOpenAsExpanded):(r._events.on(e,"mousedown",n),r._events.on(e,"keydown",n)))},vi(r),r._async=new xi(r),r._events=new va(r),r._nativeDismissEvent=r._cardDismiss.bind(r,!0),r._childDismissEvent=r._cardDismiss.bind(r,!1),r.state={isHoverCardVisible:!1,mode:oS.compact,openMode:Q_.hover},r}function yS(e){var t=sS.call(this,e)||this;return t._onKeyDown=function(e){e.which===Tn.escape&&t.props.onLeave&&t.props.onLeave(e)},vi(t),t}function CS(e){var t=aS.call(this,e)||this;return t._expandedElem=gt.createRef(),t._onKeyDown=function(e){e.which===Tn.escape&&t.props.onLeave&&t.props.onLeave(e)},t._onRenderCompactCard=function(){return gt.createElement("div",{className:t._classNames.compactCard},t.props.onRenderCompactCard(t.props.renderData))},t._onRenderExpandedCard=function(){return t.state.firstFrameRendered||t._async.requestAnimationFrame(function(){t.setState({firstFrameRendered:!0})}),gt.createElement("div",{className:t._classNames.expandedCard,ref:t._expandedElem},gt.createElement("div",{className:t._classNames.expandedCardScroll},t.props.onRenderExpandedCard&&t.props.onRenderExpandedCard(t.props.renderData)))},t._checkNeedsScroll=function(){var e=t.props.expandedCardHeight;t._async.requestAnimationFrame(function(){t._expandedElem.current&&t._expandedElem.current.scrollHeight>=e&&t.setState({needsScroll:!0})})},t._async=new xi(t),vi(t),t.state={firstFrameRendered:!1,needsScroll:!1},t}function _S(e,t){en({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('"+(e=void 0===e?"":e)+"fabric-icons-a13498cf.woff') format('woff')"},icons:{GlobalNavButton:"",ChevronDown:"",ChevronUp:"",Edit:"",Add:"",Cancel:"",More:"",Settings:"",Mail:"",Filter:"",Search:"",Share:"",BlockedSite:"",FavoriteStar:"",FavoriteStarFill:"",CheckMark:"",Delete:"",ChevronLeft:"",ChevronRight:"",Calendar:"",Megaphone:"",Undo:"",Flag:"",Page:"",Pinned:"",View:"",Clear:"",Download:"",Upload:"",Folder:"",Sort:"",AlignRight:"",AlignLeft:"",Tag:"",AddFriend:"",Info:"",SortLines:"",List:"",CircleRing:"",Heart:"",HeartFill:"",Tiles:"",Embed:"",Glimmer:"",Ascending:"",Descending:"",SortUp:"",SortDown:"",SyncToPC:"",LargeGrid:"",SkypeCheck:"",SkypeClock:"",SkypeMinus:"",ClearFilter:"",Flow:"",StatusCircleCheckmark:"",MoreVertical:""}},t)}function SS(e,t){en({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('"+(e=void 0===e?"":e)+"fabric-icons-0-467ee27f.woff') format('woff')"},icons:{PageLink:"",CommentSolid:"",ChangeEntitlements:"",Installation:"",WebAppBuilderModule:"",WebAppBuilderFragment:"",WebAppBuilderSlot:"",BullseyeTargetEdit:"",WebAppBuilderFragmentCreate:"",PageData:"",PageHeaderEdit:"",ProductList:"",UnpublishContent:"",DependencyAdd:"",DependencyRemove:"",EntitlementPolicy:"",EntitlementRedemption:"",SchoolDataSyncLogo:"",PinSolid12:"",PinSolidOff12:"",AddLink:"",SharepointAppIcon16:"",DataflowsLink:"",TimePicker:"",UserWarning:"",ComplianceAudit:"",InternetSharing:"",Brightness:"",MapPin:"",Airplane:"",Tablet:"",QuickNote:"",Video:"",People:"",Phone:"",Pin:"",Shop:"",Stop:"",Link:"",AllApps:"",Zoom:"",ZoomOut:"",Microphone:"",Camera:"",Attach:"",Send:"",FavoriteList:"",PageSolid:"",Forward:"",Back:"",Refresh:"",Lock:"",ReportHacked:"",EMI:"",MiniLink:"",Blocked:"",ReadingMode:"",Favicon:"",Remove:"",Checkbox:"",CheckboxComposite:"",CheckboxFill:"",CheckboxIndeterminate:"",CheckboxCompositeReversed:"",BackToWindow:"",FullScreen:"",Print:"",Up:"",Down:"",OEM:"",Save:"",ReturnKey:"",Cloud:"",Flashlight:"",CommandPrompt:"",Sad:"",RealEstate:"",SIPMove:"",EraseTool:"",GripperTool:"",Dialpad:"",PageLeft:"",PageRight:"",MultiSelect:"",KeyboardClassic:"",Play:"",Pause:"",InkingTool:"",Emoji2:"",GripperBarHorizontal:"",System:"",Personalize:"",SearchAndApps:"",Globe:"",EaseOfAccess:"",ContactInfo:"",Unpin:"",Contact:"",Memo:"",IncomingCall:""}},t)}function xS(e,t){en({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('"+(e=void 0===e?"":e)+"fabric-icons-1-4d521695.woff') format('woff')"},icons:{Paste:"",WindowsLogo:"",Error:"",GripperBarVertical:"",Unlock:"",Slideshow:"",Trim:"",AutoEnhanceOn:"",AutoEnhanceOff:"",Color:"",SaveAs:"",Light:"",Filters:"",AspectRatio:"",Contrast:"",Redo:"",Crop:"",PhotoCollection:"",Album:"",Rotate:"",PanoIndicator:"",Translate:"",RedEye:"",ViewOriginal:"",ThumbnailView:"",Package:"",Telemarketer:"",Warning:"",Financial:"",Education:"",ShoppingCart:"",Train:"",Move:"",TouchPointer:"",Merge:"",TurnRight:"",Ferry:"",Highlight:"",PowerButton:"",Tab:"",Admin:"",TVMonitor:"",Speakers:"",Game:"",HorizontalTabKey:"",UnstackSelected:"",StackIndicator:"",Nav2DMapView:"",StreetsideSplitMinimize:"",Car:"",Bus:"",EatDrink:"",SeeDo:"",LocationCircle:"",Home:"",SwitcherStartEnd:"",ParkingLocation:"",IncidentTriangle:"",Touch:"",MapDirections:"",CaretHollow:"",CaretSolid:"",History:"",Location:"",MapLayers:"",SearchNearby:"",Work:"",Recent:"",Hotel:"",Bank:"",LocationDot:"",Dictionary:"",ChromeBack:"",FolderOpen:"",PinnedFill:"",RevToggleKey:"",USB:"",Previous:"",Next:"",Sync:"",Help:"",Emoji:"",MailForward:"",ClosePane:"",OpenPane:"",PreviewLink:"",ZoomIn:"",Bookmarks:"",Document:"",ProtectedDocument:"",OpenInNewWindow:"",MailFill:"",ViewAll:"",Switch:"",Rename:"",Go:"",Remote:"",SelectAll:"",Orientation:"",Import:""}},t)}function kS(e,t){en({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('"+(e=void 0===e?"":e)+"fabric-icons-2-63c99abf.woff') format('woff')"},icons:{Picture:"",ChromeClose:"",ShowResults:"",Message:"",CalendarDay:"",CalendarWeek:"",MailReplyAll:"",Read:"",Cut:"",PaymentCard:"",Copy:"",Important:"",MailReply:"",GotoToday:"",Font:"",FontColor:"",FolderFill:"",Permissions:"",DisableUpdates:"",Unfavorite:"",Italic:"",Underline:"",Bold:"",MoveToFolder:"",Dislike:"",Like:"",AlignCenter:"",OpenFile:"",ClearSelection:"",FontDecrease:"",FontIncrease:"",FontSize:"",CellPhone:"",RepeatOne:"",RepeatAll:"",Calculator:"",Library:"",PostUpdate:"",NewFolder:"",CalendarReply:"",UnsyncFolder:"",SyncFolder:"",BlockContact:"",Accept:"",BulletedList:"",Preview:"",News:"",Chat:"",Group:"",World:"",Comment:"",DockLeft:"",DockRight:"",Repair:"",Accounts:"",Street:"",RadioBullet:"",Stopwatch:"",Clock:"",WorldClock:"",AlarmClock:"",Photo:"",ActionCenter:"",Hospital:"",Timer:"",FullCircleMask:"",LocationFill:"",ChromeMinimize:"",ChromeRestore:"",Annotation:"",Fingerprint:"",Handwriting:"",ChromeFullScreen:"",Completed:"",Label:"",FlickDown:"",FlickUp:"",FlickLeft:"",FlickRight:"",MiniExpand:"",MiniContract:"",Streaming:"",MusicInCollection:"",OneDriveLogo:"",CompassNW:"",Code:"",LightningBolt:"",CalculatorMultiply:"",CalculatorAddition:"",CalculatorSubtract:"",CalculatorPercentage:"",CalculatorEqualTo:"",PrintfaxPrinterFile:"",StorageOptical:"",Communications:"",Headset:"",Health:"",Webcam2:"",FrontCamera:"",ChevronUpSmall:""}},t)}function wS(e,t){en({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('"+(e=void 0===e?"":e)+"fabric-icons-3-089e217a.woff') format('woff')"},icons:{ChevronDownSmall:"",ChevronLeftSmall:"",ChevronRightSmall:"",ChevronUpMed:"",ChevronDownMed:"",ChevronLeftMed:"",ChevronRightMed:"",Devices2:"",PC1:"",PresenceChickletVideo:"",Reply:"",HalfAlpha:"",ConstructionCone:"",DoubleChevronLeftMed:"",Volume0:"",Volume1:"",Volume2:"",Volume3:"",Chart:"",Robot:"",Manufacturing:"",LockSolid:"",FitPage:"",FitWidth:"",BidiLtr:"",BidiRtl:"",RightDoubleQuote:"",Sunny:"",CloudWeather:"",Cloudy:"",PartlyCloudyDay:"",PartlyCloudyNight:"",ClearNight:"",RainShowersDay:"",Rain:"",Thunderstorms:"",RainSnow:"",Snow:"",BlowingSnow:"",Frigid:"",Fog:"",Squalls:"",Duststorm:"",Unknown:"",Precipitation:"",Ribbon:"",AreaChart:"",Assign:"",FlowChart:"",CheckList:"",Diagnostic:"",Generate:"",LineChart:"",Equalizer:"",BarChartHorizontal:"",BarChartVertical:"",Freezing:"",FunnelChart:"",Processing:"",Quantity:"",ReportDocument:"",StackColumnChart:"",SnowShowerDay:"",HailDay:"",WorkFlow:"",HourGlass:"",StoreLogoMed20:"",TimeSheet:"",TriangleSolid:"",UpgradeAnalysis:"",VideoSolid:"",RainShowersNight:"",SnowShowerNight:"",Teamwork:"",HailNight:"",PeopleAdd:"",Glasses:"",DateTime2:"",Shield:"",Header1:"",PageAdd:"",NumberedList:"",PowerBILogo:"",Info2:"",MusicInCollectionFill:"",Asterisk:"",ErrorBadge:"",CircleFill:"",Record2:"",AllAppsMirrored:"",BookmarksMirrored:"",BulletedListMirrored:"",CaretHollowMirrored:"",CaretSolidMirrored:"",ChromeBackMirrored:"",ClearSelectionMirrored:"",ClosePaneMirrored:"",DockLeftMirrored:"",DoubleChevronLeftMedMirrored:"",GoMirrored:""}},t)}function IS(e,t){en({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('"+(e=void 0===e?"":e)+"fabric-icons-4-a656cc0a.woff') format('woff')"},icons:{HelpMirrored:"",ImportMirrored:"",ImportAllMirrored:"",ListMirrored:"",MailForwardMirrored:"",MailReplyMirrored:"",MailReplyAllMirrored:"",MiniContractMirrored:"",MiniExpandMirrored:"",OpenPaneMirrored:"",ParkingLocationMirrored:"",SendMirrored:"",ShowResultsMirrored:"",ThumbnailViewMirrored:"",Media:"",Devices3:"",Focus:"",VideoLightOff:"",Lightbulb:"",StatusTriangle:"",VolumeDisabled:"",Puzzle:"",EmojiNeutral:"",EmojiDisappointed:"",HomeSolid:"",Ringer:"",PDF:"",HeartBroken:"",StoreLogo16:"",MultiSelectMirrored:"",Broom:"",AddToShoppingList:"",Cocktails:"",Wines:"",Articles:"",Cycling:"",DietPlanNotebook:"",Pill:"",ExerciseTracker:"",HandsFree:"",Medical:"",Running:"",Weights:"",Trackers:"",AddNotes:"",AllCurrency:"",BarChart4:"",CirclePlus:"",Coffee:"",Cotton:"",Market:"",Money:"",PieDouble:"",PieSingle:"",RemoveFilter:"",Savings:"",Sell:"",StockDown:"",StockUp:"",Lamp:"",Source:"",MSNVideos:"",Cricket:"",Golf:"",Baseball:"",Soccer:"",MoreSports:"",AutoRacing:"",CollegeHoops:"",CollegeFootball:"",ProFootball:"",ProHockey:"",Rugby:"",SubstitutionsIn:"",Tennis:"",Arrivals:"",Design:"",Website:"",Drop:"",HistoricalWeather:"",SkiResorts:"",Snowflake:"",BusSolid:"",FerrySolid:"",AirplaneSolid:"",TrainSolid:"",Ticket:"",WifiWarning4:"",Devices4:"",AzureLogo:"",BingLogo:"",MSNLogo:"",OutlookLogoInverse:"",OfficeLogo:"",SkypeLogo:"",Door:"",EditMirrored:"",GiftCard:"",DoubleBookmark:"",StatusErrorFull:""}},t)}function DS(e,t){en({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('"+(e=void 0===e?"":e)+"fabric-icons-5-f95ba260.woff') format('woff')"},icons:{Certificate:"",FastForward:"",Rewind:"",Photo2:"",OpenSource:"",Movers:"",CloudDownload:"",Family:"",WindDirection:"",Bug:"",SiteScan:"",BrowserScreenShot:"",F12DevTools:"",CSS:"",JS:"",DeliveryTruck:"",ReminderPerson:"",ReminderGroup:"",ReminderTime:"",TabletMode:"",Umbrella:"",NetworkTower:"",CityNext:"",CityNext2:"",Section:"",OneNoteLogoInverse:"",ToggleFilled:"",ToggleBorder:"",SliderThumb:"",ToggleThumb:"",Documentation:"",Badge:"",Giftbox:"",VisualStudioLogo:"",HomeGroup:"",ExcelLogoInverse:"",WordLogoInverse:"",PowerPointLogoInverse:"",Cafe:"",SpeedHigh:"",Commitments:"",ThisPC:"",MusicNote:"",MicOff:"",PlaybackRate1x:"",EdgeLogo:"",CompletedSolid:"",AlbumRemove:"",MessageFill:"",TabletSelected:"",MobileSelected:"",LaptopSelected:"",TVMonitorSelected:"",DeveloperTools:"",Shapes:"",InsertTextBox:"",LowerBrightness:"",WebComponents:"",OfflineStorage:"",DOM:"",CloudUpload:"",ScrollUpDown:"",DateTime:"",Event:"",Cake:"",Org:"",PartyLeader:"",DRM:"",CloudAdd:"",AppIconDefault:"",Photo2Add:"",Photo2Remove:"",Calories:"",POI:"",AddTo:"",RadioBtnOff:"",RadioBtnOn:"",ExploreContent:"",Product:"",ProgressLoopInner:"",ProgressLoopOuter:"",Blocked2:"",FangBody:"",Toolbox:"",PageHeader:"",ChatInviteFriend:"",Brush:"",Shirt:"",Crown:"",Diamond:"",ScaleUp:"",QRCode:"",Feedback:"",SharepointLogoInverse:"",YammerLogo:"",Hide:"",Uneditable:"",ReturnToSession:"",OpenFolderHorizontal:"",CalendarMirrored:""}},t)}function TS(e,t){en({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('"+(e=void 0===e?"":e)+"fabric-icons-6-ef6fd590.woff') format('woff')"},icons:{SwayLogoInverse:"",OutOfOffice:"",Trophy:"",ReopenPages:"",EmojiTabSymbols:"",AADLogo:"",AccessLogo:"",AdminALogoInverse32:"",AdminCLogoInverse32:"",AdminDLogoInverse32:"",AdminELogoInverse32:"",AdminLLogoInverse32:"",AdminMLogoInverse32:"",AdminOLogoInverse32:"",AdminPLogoInverse32:"",AdminSLogoInverse32:"",AdminYLogoInverse32:"",DelveLogoInverse:"",ExchangeLogoInverse:"",LyncLogo:"",OfficeVideoLogoInverse:"",SocialListeningLogo:"",VisioLogoInverse:"",Balloons:"",Cat:"",MailAlert:"",MailCheck:"",MailLowImportance:"",MailPause:"",MailRepeat:"",SecurityGroup:"",Table:"",VoicemailForward:"",VoicemailReply:"",Waffle:"",RemoveEvent:"",EventInfo:"",ForwardEvent:"",WipePhone:"",AddOnlineMeeting:"",JoinOnlineMeeting:"",RemoveLink:"",PeopleBlock:"",PeopleRepeat:"",PeopleAlert:"",PeoplePause:"",TransferCall:"",AddPhone:"",UnknownCall:"",NoteReply:"",NoteForward:"",NotePinned:"",RemoveOccurrence:"",Timeline:"",EditNote:"",CircleHalfFull:"",Room:"",Unsubscribe:"",Subscribe:"",HardDrive:"",RecurringTask:"",TaskManager:"",TaskManagerMirrored:"",Combine:"",Split:"",DoubleChevronUp:"",DoubleChevronLeft:"",DoubleChevronRight:"",TextBox:"",TextField:"",NumberField:"",Dropdown:"",PenWorkspace:"",BookingsLogo:"",ClassNotebookLogoInverse:"",DelveAnalyticsLogo:"",DocsLogoInverse:"",Dynamics365Logo:"",DynamicSMBLogo:"",OfficeAssistantLogo:"",OfficeStoreLogo:"",OneNoteEduLogoInverse:"",PlannerLogo:"",PowerApps:"",Suitcase:"",ProjectLogoInverse:"",CaretLeft8:"",CaretRight8:"",CaretUp8:"",CaretDown8:"",CaretLeftSolid8:"",CaretRightSolid8:"",CaretUpSolid8:"",CaretDownSolid8:"",ClearFormatting:"",Superscript:"",Subscript:"",Strikethrough:"",Export:"",ExportMirrored:""}},t)}function ES(e,t){en({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('"+(e=void 0===e?"":e)+"fabric-icons-7-2b97bb99.woff') format('woff')"},icons:{SingleBookmark:"",SingleBookmarkSolid:"",DoubleChevronDown:"",FollowUser:"",ReplyAll:"",WorkforceManagement:"",RecruitmentManagement:"",Questionnaire:"",ManagerSelfService:"",ProductionFloorManagement:"",ProductRelease:"",ProductVariant:"",ReplyMirrored:"",ReplyAllMirrored:"",Medal:"",AddGroup:"",QuestionnaireMirrored:"",CloudImportExport:"",TemporaryUser:"",CaretSolid16:"",GroupedDescending:"",GroupedAscending:"",AwayStatus:"",MyMoviesTV:"",GenericScan:"",AustralianRules:"",WifiEthernet:"",TrackersMirrored:"",DateTimeMirrored:"",StopSolid:"",DoubleChevronUp12:"",DoubleChevronDown12:"",DoubleChevronLeft12:"",DoubleChevronRight12:"",CalendarAgenda:"",ConnectVirtualMachine:"",AddEvent:"",AssetLibrary:"",DataConnectionLibrary:"",DocLibrary:"",FormLibrary:"",FormLibraryMirrored:"",ReportLibrary:"",ReportLibraryMirrored:"",ContactCard:"",CustomList:"",CustomListMirrored:"",IssueTracking:"",IssueTrackingMirrored:"",PictureLibrary:"",OfficeAddinsLogo:"",OfflineOneDriveParachute:"",OfflineOneDriveParachuteDisabled:"",TriangleSolidUp12:"",TriangleSolidDown12:"",TriangleSolidLeft12:"",TriangleSolidRight12:"",TriangleUp12:"",TriangleDown12:"",TriangleLeft12:"",TriangleRight12:"",ArrowUpRight8:"",ArrowDownRight8:"",DocumentSet:"",GoToDashboard:"",DelveAnalytics:"",ArrowUpRightMirrored8:"",ArrowDownRightMirrored8:"",CompanyDirectory:"",OpenEnrollment:"",CompanyDirectoryMirrored:"",OneDriveAdd:"",ProfileSearch:"",Header2:"",Header3:"",Header4:"",RingerSolid:"",Eyedropper:"",MarketDown:"",CalendarWorkWeek:"",SidePanel:"",GlobeFavorite:"",CaretTopLeftSolid8:"",CaretTopRightSolid8:"",ViewAll2:"",DocumentReply:"",PlayerSettings:"",ReceiptForward:"",ReceiptReply:"",ReceiptCheck:"",Fax:"",RecurringEvent:"",ReplyAlt:"",ReplyAllAlt:"",EditStyle:"",EditMail:"",Lifesaver:"",LifesaverLock:"",InboxCheck:"",FolderSearch:""}},t)}function PS(e,t){en({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('"+(e=void 0===e?"":e)+"fabric-icons-8-6fdf1528.woff') format('woff')"},icons:{CollapseMenu:"",ExpandMenu:"",Boards:"",SunAdd:"",SunQuestionMark:"",LandscapeOrientation:"",DocumentSearch:"",PublicCalendar:"",PublicContactCard:"",PublicEmail:"",PublicFolder:"",WordDocument:"",PowerPointDocument:"",ExcelDocument:"",GroupedList:"",ClassroomLogo:"",Sections:"",EditPhoto:"",Starburst:"",ShareiOS:"",AirTickets:"",PencilReply:"",Tiles2:"",SkypeCircleCheck:"",SkypeCircleClock:"",SkypeCircleMinus:"",SkypeMessage:"",ClosedCaption:"",ATPLogo:"",OfficeFormsLogoInverse:"",RecycleBin:"",EmptyRecycleBin:"",Hide2:"",Breadcrumb:"",BirthdayCake:"",TimeEntry:"",CRMProcesses:"",PageEdit:"",PageArrowRight:"",PageRemove:"",Database:"",DataManagementSettings:"",CRMServices:"",EditContact:"",ConnectContacts:"",AppIconDefaultAdd:"",AppIconDefaultList:"",ActivateOrders:"",DeactivateOrders:"",ProductCatalog:"",ScatterChart:"",AccountActivity:"",DocumentManagement:"",CRMReport:"",KnowledgeArticle:"",Relationship:"",HomeVerify:"",ZipFolder:"",SurveyQuestions:"",TextDocument:"",TextDocumentShared:"",PageCheckedOut:"",PageShared:"",SaveAndClose:"",Script:"",Archive:"",ActivityFeed:"",Compare:"",EventDate:"",ArrowUpRight:"",CaretRight:"",SetAction:"",ChatBot:"",CaretSolidLeft:"",CaretSolidDown:"",CaretSolidRight:"",CaretSolidUp:"",PowerAppsLogo:"",PowerApps2Logo:"",SearchIssue:"",SearchIssueMirrored:"",FabricAssetLibrary:"",FabricDataConnectionLibrary:"",FabricDocLibrary:"",FabricFormLibrary:"",FabricFormLibraryMirrored:"",FabricReportLibrary:"",FabricReportLibraryMirrored:"",FabricPublicFolder:"",FabricFolderSearch:"",FabricMovetoFolder:"",FabricUnsyncFolder:"",FabricSyncFolder:"",FabricOpenFolderHorizontal:"",FabricFolder:"",FabricFolderFill:"",FabricNewFolder:"",FabricPictureLibrary:"",PhotoVideoMedia:"",AddFavorite:""}},t)}function RS(e,t){en({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('"+(e=void 0===e?"":e)+"fabric-icons-9-c6162b42.woff') format('woff')"},icons:{AddFavoriteFill:"",BufferTimeBefore:"",BufferTimeAfter:"",BufferTimeBoth:"",PublishContent:"",ClipboardList:"",ClipboardListMirrored:"",CannedChat:"",SkypeForBusinessLogo:"",TabCenter:"",PageCheckedin:"",PageList:"",ReadOutLoud:"",CaretBottomLeftSolid8:"",CaretBottomRightSolid8:"",FolderHorizontal:"",MicrosoftStaffhubLogo:"",GiftboxOpen:"",StatusCircleOuter:"",StatusCircleInner:"",StatusCircleRing:"",StatusTriangleOuter:"",StatusTriangleInner:"",StatusTriangleExclamation:"",StatusCircleExclamation:"",StatusCircleErrorX:"",StatusCircleInfo:"",StatusCircleBlock:"",StatusCircleBlock2:"",StatusCircleQuestionMark:"",StatusCircleSync:"",Toll:"",ExploreContentSingle:"",CollapseContent:"",CollapseContentSingle:"",InfoSolid:"",GroupList:"",ProgressRingDots:"",CaloriesAdd:"",BranchFork:"",MuteChat:"",AddHome:"",AddWork:"",MobileReport:"",ScaleVolume:"",HardDriveGroup:"",FastMode:"",ToggleLeft:"",ToggleRight:"",TriangleShape:"",RectangleShape:"",CubeShape:"",Trophy2:"",BucketColor:"",BucketColorFill:"",Taskboard:"",SingleColumn:"",DoubleColumn:"",TripleColumn:"",ColumnLeftTwoThirds:"",ColumnRightTwoThirds:"",AccessLogoFill:"",AnalyticsLogo:"",AnalyticsQuery:"",NewAnalyticsQuery:"",AnalyticsReport:"",WordLogo:"",WordLogoFill:"",ExcelLogo:"",ExcelLogoFill:"",OneNoteLogo:"",OneNoteLogoFill:"",OutlookLogo:"",OutlookLogoFill:"",PowerPointLogo:"",PowerPointLogoFill:"",PublisherLogo:"",PublisherLogoFill:"",ScheduleEventAction:"",FlameSolid:"",ServerProcesses:"",Server:"",SaveAll:"",LinkedInLogo:"",Decimals:"",SidePanelMirrored:"",ProtectRestrict:"",Blog:"",UnknownMirrored:"",PublicContactCardMirrored:"",GridViewSmall:"",GridViewMedium:"",GridViewLarge:"",Step:"",StepInsert:"",StepShared:"",StepSharedAdd:"",StepSharedInsert:"",ViewDashboard:"",ViewList:""}},t)}function MS(e,t){en({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('"+(e=void 0===e?"":e)+"fabric-icons-10-c4ded8e4.woff') format('woff')"},icons:{ViewListGroup:"",ViewListTree:"",TriggerAuto:"",TriggerUser:"",PivotChart:"",StackedBarChart:"",StackedLineChart:"",BuildQueue:"",BuildQueueNew:"",UserFollowed:"",ContactLink:"",Stack:"",Bullseye:"",VennDiagram:"",FiveTileGrid:"",FocalPoint:"",Insert:"",RingerRemove:"",TeamsLogoInverse:"",TeamsLogo:"",TeamsLogoFill:"",SkypeForBusinessLogoFill:"",SharepointLogo:"",SharepointLogoFill:"",DelveLogo:"",DelveLogoFill:"",OfficeVideoLogo:"",OfficeVideoLogoFill:"",ExchangeLogo:"",ExchangeLogoFill:"",Signin:"",DocumentApproval:"",CloneToDesktop:"",InstallToDrive:"",Blur:"",Build:"",ProcessMetaTask:"",BranchFork2:"",BranchLocked:"",BranchCommit:"",BranchCompare:"",BranchMerge:"",BranchPullRequest:"",BranchSearch:"",BranchShelveset:"",RawSource:"",MergeDuplicate:"",RowsGroup:"",RowsChild:"",Deploy:"",Redeploy:"",ServerEnviroment:"",VisioDiagram:"",HighlightMappedShapes:"",TextCallout:"",IconSetsFlag:"",VisioLogo:"",VisioLogoFill:"",VisioDocument:"",TimelineProgress:"",TimelineDelivery:"",Backlog:"",TeamFavorite:"",TaskGroup:"",TaskGroupMirrored:"",ScopeTemplate:"",AssessmentGroupTemplate:"",NewTeamProject:"",CommentAdd:"",CommentNext:"",CommentPrevious:"",ShopServer:"",LocaleLanguage:"",QueryList:"",UserSync:"",UserPause:"",StreamingOff:"",ArrowTallUpLeft:"",ArrowTallUpRight:"",ArrowTallDownLeft:"",ArrowTallDownRight:"",FieldEmpty:"",FieldFilled:"",FieldChanged:"",FieldNotChanged:"",RingerOff:"",PlayResume:"",BulletedList2:"",BulletedList2Mirrored:"",ImageCrosshair:"",GitGraph:"",Repo:"",RepoSolid:"",FolderQuery:"",FolderList:"",FolderListMirrored:"",LocationOutline:"",POISolid:"",CalculatorNotEqualTo:"",BoxSubtractSolid:""}},t)}function NS(e,t){en({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('"+(e=void 0===e?"":e)+"fabric-icons-11-2a8393d6.woff') format('woff')"},icons:{BoxAdditionSolid:"",BoxMultiplySolid:"",BoxPlaySolid:"",BoxCheckmarkSolid:"",CirclePauseSolid:"",CirclePause:"",MSNVideosSolid:"",CircleStopSolid:"",CircleStop:"",NavigateBack:"",NavigateBackMirrored:"",NavigateForward:"",NavigateForwardMirrored:"",UnknownSolid:"",UnknownMirroredSolid:"",CircleAddition:"",CircleAdditionSolid:"",FilePDB:"",FileTemplate:"",FileSQL:"",FileJAVA:"",FileASPX:"",FileCSS:"",FileSass:"",FileLess:"",FileHTML:"",JavaScriptLanguage:"",CSharpLanguage:"",CSharp:"",VisualBasicLanguage:"",VB:"",CPlusPlusLanguage:"",CPlusPlus:"",FSharpLanguage:"",FSharp:"",TypeScriptLanguage:"",PythonLanguage:"",PY:"",CoffeeScript:"",MarkDownLanguage:"",FullWidth:"",FullWidthEdit:"",Plug:"",PlugSolid:"",PlugConnected:"",PlugDisconnected:"",UnlockSolid:"",Variable:"",Parameter:"",CommentUrgent:"",Storyboard:"",DiffInline:"",DiffSideBySide:"",ImageDiff:"",ImagePixel:"",FileBug:"",FileCode:"",FileComment:"",BusinessHoursSign:"",FileImage:"",FileSymlink:"",AutoFillTemplate:"",WorkItem:"",WorkItemBug:"",LogRemove:"",ColumnOptions:"",Packages:"",BuildIssue:"",AssessmentGroup:"",VariableGroup:"",FullHistory:"",Wheelchair:"",SingleColumnEdit:"",DoubleColumnEdit:"",TripleColumnEdit:"",ColumnLeftTwoThirdsEdit:"",ColumnRightTwoThirdsEdit:"",StreamLogo:"",PassiveAuthentication:"",AlertSolid:"",MegaphoneSolid:"",TaskSolid:"",ConfigurationSolid:"",BugSolid:"",CrownSolid:"",Trophy2Solid:"",QuickNoteSolid:"",ConstructionConeSolid:"",PageListSolid:"",PageListMirroredSolid:"",StarburstSolid:"",ReadingModeSolid:"",SadSolid:"",HealthSolid:"",ShieldSolid:"",GiftBoxSolid:"",ShoppingCartSolid:"",MailSolid:"",ChatSolid:"",RibbonSolid:""}},t)}function BS(e,t){en({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('"+(e=void 0===e?"":e)+"fabric-icons-12-7e945a1e.woff') format('woff')"},icons:{FinancialSolid:"",FinancialMirroredSolid:"",HeadsetSolid:"",PermissionsSolid:"",ParkingSolid:"",ParkingMirroredSolid:"",DiamondSolid:"",AsteriskSolid:"",OfflineStorageSolid:"",BankSolid:"",DecisionSolid:"",Parachute:"",ParachuteSolid:"",FiltersSolid:"",ColorSolid:"",ReviewSolid:"",ReviewRequestSolid:"",ReviewRequestMirroredSolid:"",ReviewResponseSolid:"",FeedbackRequestSolid:"",FeedbackRequestMirroredSolid:"",FeedbackResponseSolid:"",WorkItemBar:"",WorkItemBarSolid:"",Separator:"",NavigateExternalInline:"",PlanView:"",TimelineMatrixView:"",EngineeringGroup:"",ProjectCollection:"",CaretBottomRightCenter8:"",CaretBottomLeftCenter8:"",CaretTopRightCenter8:"",CaretTopLeftCenter8:"",DonutChart:"",ChevronUnfold10:"",ChevronFold10:"",DoubleChevronDown8:"",DoubleChevronUp8:"",DoubleChevronLeft8:"",DoubleChevronRight8:"",ChevronDownEnd6:"",ChevronUpEnd6:"",ChevronLeftEnd6:"",ChevronRightEnd6:"",ContextMenu:"",AzureAPIManagement:"",AzureServiceEndpoint:"",VSTSLogo:"",VSTSAltLogo1:"",VSTSAltLogo2:"",FileTypeSolution:"",WordLogoInverse16:"",WordLogo16:"",WordLogoFill16:"",PowerPointLogoInverse16:"",PowerPointLogo16:"",PowerPointLogoFill16:"",ExcelLogoInverse16:"",ExcelLogo16:"",ExcelLogoFill16:"",OneNoteLogoInverse16:"",OneNoteLogo16:"",OneNoteLogoFill16:"",OutlookLogoInverse16:"",OutlookLogo16:"",OutlookLogoFill16:"",PublisherLogoInverse16:"",PublisherLogo16:"",PublisherLogoFill16:"",VisioLogoInverse16:"",VisioLogo16:"",VisioLogoFill16:"",TestBeaker:"",TestBeakerSolid:"",TestExploreSolid:"",TestAutoSolid:"",TestUserSolid:"",TestImpactSolid:"",TestPlan:"",TestStep:"",TestParameter:"",TestSuite:"",TestCase:"",Sprint:"",SignOut:"",TriggerApproval:"",Rocket:"",AzureKeyVault:"",Onboarding:"",Transition:"",LikeSolid:"",DislikeSolid:"",CRMCustomerInsightsApp:"",EditCreate:"",PlayReverseResume:"",PlayReverse:"",SearchData:"",UnSetColor:"",DeclineCall:""}},t)}function FS(e,t){en({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('"+(e=void 0===e?"":e)+"fabric-icons-13-c3989a02.woff') format('woff')"},icons:{RectangularClipping:"",TeamsLogo16:"",TeamsLogoFill16:"",Spacer:"",SkypeLogo16:"",SkypeForBusinessLogo16:"",SkypeForBusinessLogoFill16:"",FilterSolid:"",MailUndelivered:"",MailTentative:"",MailTentativeMirrored:"",MailReminder:"",ReceiptUndelivered:"",ReceiptTentative:"",ReceiptTentativeMirrored:"",Inbox:"",IRMReply:"",IRMReplyMirrored:"",IRMForward:"",IRMForwardMirrored:"",VoicemailIRM:"",EventAccepted:"",EventTentative:"",EventTentativeMirrored:"",EventDeclined:"",IDBadge:"",BackgroundColor:"",OfficeFormsLogoInverse16:"",OfficeFormsLogo:"",OfficeFormsLogoFill:"",OfficeFormsLogo16:"",OfficeFormsLogoFill16:"",OfficeFormsLogoInverse24:"",OfficeFormsLogo24:"",OfficeFormsLogoFill24:"",PageLock:"",NotExecuted:"",NotImpactedSolid:"",FieldReadOnly:"",FieldRequired:"",BacklogBoard:"",ExternalBuild:"",ExternalTFVC:"",ExternalXAML:"",IssueSolid:"",DefectSolid:"",LadybugSolid:"",NugetLogo:"",TFVCLogo:"",ProjectLogo32:"",ProjectLogoFill32:"",ProjectLogo16:"",ProjectLogoFill16:"",SwayLogo32:"",SwayLogoFill32:"",SwayLogo16:"",SwayLogoFill16:"",ClassNotebookLogo32:"",ClassNotebookLogoFill32:"",ClassNotebookLogo16:"",ClassNotebookLogoFill16:"",ClassNotebookLogoInverse32:"",ClassNotebookLogoInverse16:"",StaffNotebookLogo32:"",StaffNotebookLogoFill32:"",StaffNotebookLogo16:"",StaffNotebookLogoFill16:"",StaffNotebookLogoInverted32:"",StaffNotebookLogoInverted16:"",KaizalaLogo:"",TaskLogo:"",ProtectionCenterLogo32:"",GallatinLogo:"",Globe2:"",Guitar:"",Breakfast:"",Brunch:"",BeerMug:"",Vacation:"",Teeth:"",Taxi:"",Chopsticks:"",SyncOccurence:"",UnsyncOccurence:"",GIF:"",PrimaryCalendar:"",SearchCalendar:"",VideoOff:"",MicrosoftFlowLogo:"",BusinessCenterLogo:"",ToDoLogoBottom:"",ToDoLogoTop:"",EditSolid12:"",EditSolidMirrored12:"",UneditableSolid12:"",UneditableSolidMirrored12:"",UneditableMirrored:"",AdminALogo32:"",AdminALogoFill32:"",ToDoLogoInverse:""}},t)}function AS(e,t){en({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('"+(e=void 0===e?"":e)+"fabric-icons-14-5cf58db8.woff') format('woff')"},icons:{Snooze:"",WaffleOffice365:"",ImageSearch:"",NewsSearch:"",VideoSearch:"",R:"",FontColorA:"",FontColorSwatch:"",LightWeight:"",NormalWeight:"",SemiboldWeight:"",GroupObject:"",UngroupObject:"",AlignHorizontalLeft:"",AlignHorizontalCenter:"",AlignHorizontalRight:"",AlignVerticalTop:"",AlignVerticalCenter:"",AlignVerticalBottom:"",HorizontalDistributeCenter:"",VerticalDistributeCenter:"",Ellipse:"",Line:"",Octagon:"",Hexagon:"",Pentagon:"",RightTriangle:"",HalfCircle:"",QuarterCircle:"",ThreeQuarterCircle:"","6PointStar":"","12PointStar":"",ArrangeBringToFront:"",ArrangeSendToBack:"",ArrangeSendBackward:"",ArrangeBringForward:"",BorderDash:"",BorderDot:"",LineStyle:"",LineThickness:"",WindowEdit:"",HintText:"",MediaAdd:"",AnchorLock:"",AutoHeight:"",ChartSeries:"",ChartXAngle:"",ChartYAngle:"",Combobox:"",LineSpacing:"",Padding:"",PaddingTop:"",PaddingBottom:"",PaddingLeft:"",PaddingRight:"",NavigationFlipper:"",AlignJustify:"",TextOverflow:"",VisualsFolder:"",VisualsStore:"",PictureCenter:"",PictureFill:"",PicturePosition:"",PictureStretch:"",PictureTile:"",Slider:"",SliderHandleSize:"",DefaultRatio:"",NumberSequence:"",GUID:"",ReportAdd:"",DashboardAdd:"",MapPinSolid:"",WebPublish:"",PieSingleSolid:"",BlockedSolid:"",DrillDown:"",DrillDownSolid:"",DrillExpand:"",DrillShow:"",SpecialEvent:"",OneDriveFolder16:"",FunctionalManagerDashboard:"",BIDashboard:"",CodeEdit:"",RenewalCurrent:"",RenewalFuture:"",SplitObject:"",BulkUpload:"",DownloadDocument:"",GreetingCard:"",Flower:"",WaitlistConfirm:"",WaitlistConfirmMirrored:"",LaptopSecure:"",DragObject:"",EntryView:"",EntryDecline:"",ContactCardSettings:"",ContactCardSettingsMirrored:""}},t)}function LS(e,t){en({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('"+(e=void 0===e?"":e)+"fabric-icons-15-3807251b.woff') format('woff')"},icons:{CalendarSettings:"",CalendarSettingsMirrored:"",HardDriveLock:"",HardDriveUnlock:"",AccountManagement:"",ReportWarning:"",TransitionPop:"",TransitionPush:"",TransitionEffect:"",LookupEntities:"",ExploreData:"",AddBookmark:"",SearchBookmark:"",DrillThrough:"",MasterDatabase:"",CertifiedDatabase:"",MaximumValue:"",MinimumValue:"",VisualStudioIDELogo32:"",PasteAsText:"",PasteAsCode:"",BrowserTab:"",BrowserTabScreenshot:"",DesktopScreenshot:"",FileYML:"",ClipboardSolid:"",FabricUserFolder:"",FabricNetworkFolder:"",BullseyeTarget:"",AnalyticsView:"",Video360Generic:"",Untag:"",Leave:"",Trending12:"",Blocked12:"",Warning12:"",CheckedOutByOther12:"",CheckedOutByYou12:"",CircleShapeSolid:"",SquareShapeSolid:"",TriangleShapeSolid:"",DropShapeSolid:"",RectangleShapeSolid:"",ZoomToFit:"",InsertColumnsLeft:"",InsertColumnsRight:"",InsertRowsAbove:"",InsertRowsBelow:"",DeleteColumns:"",DeleteRows:"",DeleteRowsMirrored:"",DeleteTable:"",AccountBrowser:"",VersionControlPush:"",StackedColumnChart2:"",TripleColumnWide:"",QuadColumn:"",WhiteBoardApp16:"",WhiteBoardApp32:"",PinnedSolid:"",InsertSignatureLine:"",ArrangeByFrom:"",Phishing:"",CreateMailRule:"",PublishCourse:"",DictionaryRemove:"",UserRemove:"",UserEvent:"",Encryption:"",PasswordField:"",OpenInNewTab:"",Hide3:"",VerifiedBrandSolid:"",MarkAsProtected:"",AuthenticatorApp:"",WebTemplate:"",DefenderTVM:"",MedalSolid:"",D365TalentLearn:"",D365TalentInsight:"",D365TalentHRCore:"",BacklogList:"",ButtonControl:"",TableGroup:"",MountainClimbing:"",TagUnknown:"",TagUnknownMirror:"",TagUnknown12:"",TagUnknown12Mirror:"",Link12:"",Presentation:"",Presentation12:"",Lock12:"",BuildDefinition:"",ReleaseDefinition:"",SaveTemplate:"",UserGauge:"",BlockedSiteSolid12:"",TagSolid:"",OfficeChat:""}},t)}function HS(e,t){en({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('"+(e=void 0===e?"":e)+"fabric-icons-16-9cf93f3b.woff') format('woff')"},icons:{OfficeChatSolid:"",MailSchedule:"",WarningSolid:"",Blocked2Solid:"",SkypeCircleArrow:"",SkypeArrow:"",SyncStatus:"",SyncStatusSolid:"",ProjectDocument:"",ToDoLogoOutline:"",VisioOnlineLogoFill32:"",VisioOnlineLogo32:"",VisioOnlineLogoCloud32:"",VisioDiagramSync:"",Event12:"",EventDateMissed12:"",UserOptional:"",ResponsesMenu:"",DoubleDownArrow:"",DistributeDown:"",BookmarkReport:"",FilterSettings:"",GripperDotsVertical:"",MailAttached:"",AddIn:"",LinkedDatabase:"",TableLink:"",PromotedDatabase:"",BarChartVerticalFilter:"",BarChartVerticalFilterSolid:"",MicOff2:"",MicrosoftTranslatorLogo:"",ShowTimeAs:"",FileRequest:"",WorkItemAlert:"",PowerBILogo16:"",PowerBILogoBackplate16:"",BulletedListText:"",BulletedListBullet:"",BulletedListTextMirrored:"",BulletedListBulletMirrored:"",NumberedListText:"",NumberedListNumber:"",NumberedListTextMirrored:"",NumberedListNumberMirrored:"",RemoveLinkChain:"",RemoveLinkX:"",FabricTextHighlight:"",ClearFormattingA:"",ClearFormattingEraser:"",Photo2Fill:"",IncreaseIndentText:"",IncreaseIndentArrow:"",DecreaseIndentText:"",DecreaseIndentArrow:"",IncreaseIndentTextMirrored:"",IncreaseIndentArrowMirrored:"",DecreaseIndentTextMirrored:"",DecreaseIndentArrowMirrored:"",CheckListText:"",CheckListCheck:"",CheckListTextMirrored:"",CheckListCheckMirrored:"",NumberSymbol:"",Coupon:"",VerifiedBrand:"",ReleaseGate:"",ReleaseGateCheck:"",ReleaseGateError:"",M365InvoicingLogo:"",RemoveFromShoppingList:"",ShieldAlert:"",FabricTextHighlightComposite:"",Dataflows:"",GenericScanFilled:"",DiagnosticDataBarTooltip:"",SaveToMobile:"",Orientation2:"",ScreenCast:"",ShowGrid:"",SnapToGrid:"",ContactList:"",NewMail:"",EyeShadow:"",FabricFolderConfirm:"",InformationBarriers:"",CommentActive:"",ColumnVerticalSectionEdit:"",WavingHand:"",ShakeDevice:"",SmartGlassRemote:"",Rotate90Clockwise:"",Rotate90CounterClockwise:"",CampaignTemplate:"",ChartTemplate:"",PageListFilter:"",SecondaryNav:"",ColumnVerticalSection:"",SkypeCircleSlash:"",SkypeSlash:""}},t)}function OS(e,t){en({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-17"',src:"url('"+(e=void 0===e?"":e)+"fabric-icons-17-0c4ed701.woff') format('woff')"},icons:{CustomizeToolbar:"",DuplicateRow:"",RemoveFromTrash:"",MailOptions:"",Childof:"",Footer:"",Header:"",BarChartVerticalFill:"",StackedColumnChart2Fill:"",PlainText:"",AccessibiltyChecker:"",DatabaseSync:"",ReservationOrders:"",TabOneColumn:"",TabTwoColumn:"",TabThreeColumn:"",BulletedTreeList:"",MicrosoftTranslatorLogoGreen:"",MicrosoftTranslatorLogoBlue:"",InternalInvestigation:"",AddReaction:"",ContactHeart:"",VisuallyImpaired:"",EventToDoLogo:"",Variable2:"",ModelingView:"",DisconnectVirtualMachine:"",ReportLock:"",Uneditable2:"",Uneditable2Mirrored:"",BarChartVerticalEdit:"",GlobalNavButtonActive:"",PollResults:"",Rerun:"",QandA:"",QandAMirror:"",BookAnswers:"",AlertSettings:"",TrimStart:"",TrimEnd:"",TableComputed:"",DecreaseIndentLegacy:"",IncreaseIndentLegacy:"",SizeLegacy:""}},t)}function zS(t,o){void 0===t&&(t="https://spoppe-b.azureedge.net/files/fabric-cdn-prod_20210407.001/assets/icons/"),[_S,SS,xS,kS,wS,IS,DS,TS,ES,PS,RS,MS,NS,BS,FS,AS,LS,HS,OS].forEach(function(e){return e(t,o)}),on("trash","delete"),on("onedrive","onedrivelogo"),on("alertsolid12","eventdatemissed12"),on("sixpointstar","6pointstar"),on("twelvepointstar","12pointstar"),on("toggleon","toggleleft"),on("toggleoff","toggleright")}function WS(e){e=ft().querySelectorAll(e);return Array.from(e).find(cs)}fn("@fluentui/font-icons-mdl2","8.2.0");function VS(e){return{container:[],root:[{border:"none",boxShadow:"none"}],beak:[],beakCurtain:[],calloutMain:[{backgroundColor:"transparent"}]}}var KS,GS,G=(l(YS,GS=gt.Component),YS.prototype.render=function(){var e=this.props,t=e.content,o=e.styles,n=e.theme,r=e.disabled,e=e.visible,e=Fn()(o,{theme:n,disabled:r,visible:e});return gt.createElement("div",{className:e.container},gt.createElement("span",{className:e.root},t))},YS),US=In(G,function(e){var t=e.theme,o=e.disabled,n=e.visible;return{container:[{backgroundColor:t.palette.neutralDark},o&&{opacity:.5,selectors:((e={})[Yt]={color:"GrayText",opacity:1},e)},!n&&{visibility:"hidden"}],root:[t.fonts.medium,{textAlign:"center",paddingLeft:"3px",paddingRight:"3px",backgroundColor:t.palette.neutralDark,color:t.palette.neutralLight,minWidth:"11px",lineHeight:"17px",height:"17px",display:"inline-block"},o&&{color:t.palette.neutralTertiaryAlt}]}},void 0,{scope:"KeytipContent"}),jS=(l(qS,KS=gt.Component),qS.prototype.render=function(){var t,e=this.props,o=e.keySequences,n=e.offset,r=e.overflowSetSequence,e=this.props.calloutProps,o=WS(Gc(r?Kc(o,r):o));return o?(r=o,(e=n?ht(ht({},e),{coverTarget:!0,directionalHint:Pa.topLeftEdge}):e)&&void 0!==e.directionalHint||(e=ht(ht({},e),{directionalHint:Pa.bottomCenter})),gt.createElement(lc,ht({},e,{isBeakVisible:!1,doNotLayer:!0,minPagePadding:0,styles:n?(t=n,function(e){return pn({container:[],root:[{border:"none",boxShadow:"none"}],beak:[],beakCurtain:[],calloutMain:[{backgroundColor:"transparent"}]},{root:[{marginLeft:t.left||t.x,marginTop:t.top||t.y}]})}):VS,preventDismissOnScroll:!0,target:r}),gt.createElement(US,ht({},this.props)))):gt.createElement(gt.Fragment,null)},qS);function qS(){return null!==KS&&KS.apply(this,arguments)||this}function YS(){return null!==GS&&GS.apply(this,arguments)||this}function ZS(e){var e=qc(e),n=e.keytipId,r=e.ariaDescribedBy;return gt.useCallback(function(e){var t,o;e&&(t=QS(e,Mc)||e,o=QS(e,Nc)||t,e=QS(e,Bc)||o,XS(t,Mc,n),XS(o,Nc,n),XS(e,"aria-describedby",r,!0))},[n,r])}function XS(e,t,o,n){var r;void 0===n&&(n=!1),e&&o&&(r=o,!n||(n=e.getAttribute(t))&&-1===n.indexOf(o)&&(r=n+" "+o),e.setAttribute(t,r))}function QS(e,t){return e.querySelector("["+t+"]")}function JS(e){return{root:[{zIndex:mo.KeytipLayer}]}}var $S=(ex.prototype.addNode=function(e,t,o){var n=this._getFullSequence(e),r=Vc(n);n.pop();n=this._getParentID(n),o=this._createNode(r,n,[],e,o);this.nodeMap[t]=o,this.getNodes([n]).forEach(function(e){return e.children.push(r)})},ex.prototype.updateNode=function(e,t){var o=this._getFullSequence(e),n=Vc(o);o.pop();var o=this._getParentID(o),r=this.nodeMap[t],t=r.parent;r&&(t!==o&&this._removeChildFromParents(t,r.id),r.id!==n&&this.getNodes([o]).forEach(function(e){var t=e.children.indexOf(r.id);0<=t?e.children[t]=n:e.children.push(n)}),r.id=n,r.keySequences=e.keySequences,r.overflowSetSequence=e.overflowSetSequence,r.onExecute=e.onExecute,r.onReturn=e.onReturn,r.hasDynamicChildren=e.hasDynamicChildren,r.hasMenu=e.hasMenu,r.parent=o,r.disabled=e.disabled)},ex.prototype.removeNode=function(e,t){var o=this._getFullSequence(e),e=Vc(o);o.pop(),this._removeChildFromParents(this._getParentID(o),e),this.nodeMap[t]&&delete this.nodeMap[t]},ex.prototype.getExactMatchedNode=function(t,e){var o=this,n=this.getNodes(e.children).filter(function(e){return o._getNodeSequence(e)===t&&!e.disabled});if(0!==n.length){var r=n[0];if(1===n.length)return r;var i=r.keySequences,e=r.overflowSetSequence,i=Gc(e?Kc(i,e):i),i=document.querySelectorAll(i);if(n.length<i.length)return r;i=Array.from(i).findIndex(cs);return-1!==i?n[i]:n.find(function(e){return e.hasOverflowSubMenu})||r}},ex.prototype.getPartiallyMatchedNodes=function(t,e){var o=this;return this.getNodes(e.children).filter(function(e){return 0===o._getNodeSequence(e).indexOf(t)&&!e.disabled})},ex.prototype.getChildren=function(e){var o=this;if(!e&&!(e=this.currentKeytip))return[];var n=e.children;return Object.keys(this.nodeMap).reduce(function(e,t){return 0<=n.indexOf(o.nodeMap[t].id)&&!o.nodeMap[t].persisted&&e.push(o.nodeMap[t].id),e},[])},ex.prototype.getNodes=function(o){var n=this;return Object.keys(this.nodeMap).reduce(function(e,t){return 0<=o.indexOf(n.nodeMap[t].id)&&e.push(n.nodeMap[t]),e},[])},ex.prototype.getNode=function(t){return zi(ga(this.nodeMap),function(e){return e.id===t})},ex.prototype.isCurrentKeytipParent=function(e){if(this.currentKeytip){var t=$e([],e.keySequences);(t=e.overflowSetSequence?Kc(t,e.overflowSetSequence):t).pop();e=0===t.length?this.root.id:Vc(t),t=!1;return(t=this.currentKeytip.overflowSetSequence?Vc(this.currentKeytip.keySequences)===e:t)||this.currentKeytip.id===e}return!1},ex.prototype._getParentID=function(e){return 0===e.length?this.root.id:Vc(e)},ex.prototype._getFullSequence=function(e){var t=$e([],e.keySequences);return t=e.overflowSetSequence?Kc(t,e.overflowSetSequence):t},ex.prototype._getNodeSequence=function(e){var t=$e([],e.keySequences);return(t=e.overflowSetSequence?Kc(t,e.overflowSetSequence):t)[t.length-1]},ex.prototype._createNode=function(o,e,t,n,r){var i=this,s=n.keySequences,a=n.hasDynamicChildren,l=n.overflowSetSequence,c=n.hasMenu,u=n.onExecute,d=n.onReturn,p=n.disabled,n=n.hasOverflowSubMenu,n={id:o,keySequences:s,overflowSetSequence:l,parent:e,children:t,onExecute:u,onReturn:d,hasDynamicChildren:a,hasMenu:c,disabled:p,persisted:r,hasOverflowSubMenu:n};return n.children=Object.keys(this.nodeMap).reduce(function(e,t){return i.nodeMap[t].parent===o&&e.push(i.nodeMap[t].id),e},[]),n},ex.prototype._removeChildFromParents=function(e,o){this.getNodes([e]).forEach(function(e){var t=e.children.indexOf(o);0<=t&&e.children.splice(t,1)})},ex);function ex(){this.nodeMap={},this.root={id:Fc,children:[],parent:"",keySequences:[]},this.nodeMap[this.root.id]=this.root}function tx(e,t){if(e.key!==t.key)return!1;var o=e.modifierKeys,n=t.modifierKeys;if(!o&&n||o&&!n)return!1;if(o&&n){if(o.length!==n.length)return!1;for(var o=o.sort(),n=n.sort(),r=0;r<o.length;r++)if(o[r]!==n[r])return!1}return!0}function ox(e,t){return!!zi(e,function(e){return tx(e,t)})}var nx,n={key:Na()?"Control":"Meta",modifierKeys:[Tn.alt]},r=n,W={key:"Escape"},rx=Fn(),ix=(l(ax,nx=gt.Component),ax.prototype.render=function(){var o=this,e=this.props,t=e.content,n=e.styles,r=this.state,e=r.keytips,r=r.visibleKeytips;return this._classNames=rx(n,{}),gt.createElement(ac,{styles:JS},gt.createElement("span",{id:Fc,className:this._classNames.innerContent},""+t+Ac),e&&e.map(function(e,t){return gt.createElement("span",{key:t,id:Vc(e.keySequences),className:o._classNames.innerContent},e.keySequences.join(Ac))}),r&&r.map(function(e){return gt.createElement(jS,ht({key:Vc(e.keySequences)},e))}))},ax.prototype.componentDidMount=function(){this._events.on(window,"mouseup",this._onDismiss,!0),this._events.on(window,"pointerup",this._onDismiss,!0),this._events.on(window,"resize",this._onDismiss),this._events.on(window,"keydown",this._onKeyDown,!0),this._events.on(window,"keypress",this._onKeyPress,!0),this._events.on(window,"scroll",this._onDismiss,!0),this._events.on(this._keytipManager,fc.ENTER_KEYTIP_MODE,this._enterKeytipMode),this._events.on(this._keytipManager,fc.EXIT_KEYTIP_MODE,this._exitKeytipMode)},ax.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},ax.prototype.getCurrentSequence=function(){return this._currentSequence},ax.prototype.getKeytipTree=function(){return this._keytipTree},ax.prototype.processTransitionInput=function(e,t){var o=this._keytipTree.currentKeytip;ox(this.props.keytipExitSequences,e)&&o?(this._keyHandled=!0,this._exitKeytipMode(t)):ox(this.props.keytipReturnSequences,e)?o&&(this._keyHandled=!0,o.id===this._keytipTree.root.id?this._exitKeytipMode(t):(o.onReturn&&o.onReturn(this._getKtpExecuteTarget(o),this._getKtpTarget(o)),this._currentSequence="",this._keytipTree.currentKeytip=this._keytipTree.getNode(o.parent),this.showKeytips(this._keytipTree.getChildren()),this._warnIfDuplicateKeytips())):ox(this.props.keytipStartSequences,e)&&!o&&(this._keyHandled=!0,this._enterKeytipMode(e),this._warnIfDuplicateKeytips())},ax.prototype.processInput=function(e,t){var o=this._currentSequence+e,n=this._keytipTree.currentKeytip;if(n){e=this._keytipTree.getExactMatchedNode(o,n);if(e){this._keytipTree.currentKeytip=n=e;e=this._keytipTree.getChildren();return n.onExecute&&(n.onExecute(this._getKtpExecuteTarget(n),this._getKtpTarget(n)),n=this._keytipTree.currentKeytip),0!==e.length||n.hasDynamicChildren||n.hasMenu?(this.showKeytips(e),this._warnIfDuplicateKeytips()):this._exitKeytipMode(t),void(this._currentSequence="")}n=this._keytipTree.getPartiallyMatchedNodes(o,n);0<n.length&&(n=n.filter(function(e){return!e.persisted}).map(function(e){return e.id}),this.showKeytips(n),this._currentSequence=o)}},ax.prototype.showKeytips=function(e){for(var t=0,o=this._keytipManager.getKeytips();t<o.length;t++){var n=o[t],r=Vc(n.keySequences);n.overflowSetSequence&&(r=Vc(Kc(n.keySequences,n.overflowSetSequence))),0<=e.indexOf(r)?n.visible=!0:n.visible=!1}this._setKeytips()},ax.prototype._enterKeytipMode=function(e){this._keytipManager.shouldEnterKeytipMode&&(this._keytipManager.delayUpdatingKeytipChange&&(this._buildTree(),this._setKeytips()),this._keytipTree.currentKeytip=this._keytipTree.root,this.showKeytips(this._keytipTree.getChildren()),this._setInKeytipMode(!0),this.props.onEnterKeytipMode&&this.props.onEnterKeytipMode(e))},ax.prototype._buildTree=function(){this._keytipTree=new $S;for(var e=0,t=Object.keys(this._keytipManager.keytips);e<t.length;e++){var o=t[e],n=this._keytipManager.keytips[o];this._keytipTree.addNode(n.keytip,n.uniqueID)}for(var r=0,i=Object.keys(this._keytipManager.persistedKeytips);r<i.length;r++)o=i[r],n=this._keytipManager.persistedKeytips[o],this._keytipTree.addNode(n.keytip,n.uniqueID)},ax.prototype._exitKeytipMode=function(e){this._keytipTree.currentKeytip=void 0,this._currentSequence="",this.showKeytips([]),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedKeytipQueue=[],this._setInKeytipMode(!1),this.props.onExitKeytipMode&&this.props.onExitKeytipMode(e)},ax.prototype._setKeytips=function(e){void 0===e&&(e=this._keytipManager.getKeytips()),this.setState({keytips:e,visibleKeytips:this._getVisibleKeytips(e)})},ax.prototype._persistedKeytipExecute=function(e,t){this._newCurrentKeytipSequences=t;e=this._keytipTree.getNode(Vc(e));e&&e.onExecute&&e.onExecute(this._getKtpExecuteTarget(e),this._getKtpTarget(e))},ax.prototype._getVisibleKeytips=function(e){var o={};return e.filter(function(e){var t=Vc(e.keySequences);return e.overflowSetSequence&&(t=Vc(Kc(e.keySequences,e.overflowSetSequence))),o[t]=o[t]?o[t]+1:1,e.visible&&1===o[t]})},ax.prototype._getModifierKey=function(e,t){var o=[];return t.altKey&&"Alt"!==e&&o.push(Tn.alt),t.ctrlKey&&"Control"!==e&&o.push(Tn.ctrl),t.shiftKey&&"Shift"!==e&&o.push(Tn.shift),t.metaKey&&"Meta"!==e&&o.push(Tn.leftWindow),o.length?o:void 0},ax.prototype._triggerKeytipImmediately=function(e){var t=$e([],e.keySequences);e.overflowSetSequence&&(t=Kc(t,e.overflowSetSequence)),this._keytipTree.currentKeytip=this._keytipTree.getNode(Vc(t)),this._keytipTree.currentKeytip&&((t=this._keytipTree.getChildren()).length&&this.showKeytips(t),this._keytipTree.currentKeytip.onExecute&&this._keytipTree.currentKeytip.onExecute(this._getKtpExecuteTarget(this._keytipTree.currentKeytip),this._getKtpTarget(this._keytipTree.currentKeytip))),this._newCurrentKeytipSequences=void 0},ax.prototype._addKeytipToQueue=function(e){var t=this;this._delayedKeytipQueue.push(e),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedQueueTimeout=this._async.setTimeout(function(){t._delayedKeytipQueue.length&&(t.showKeytips(t._delayedKeytipQueue),t._delayedKeytipQueue=[])},300)},ax.prototype._removeKeytipFromQueue=function(e){var t=this,e=this._delayedKeytipQueue.indexOf(e);0<=e&&(this._delayedKeytipQueue.splice(e,1),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedQueueTimeout=this._async.setTimeout(function(){t._delayedKeytipQueue.length&&(t.showKeytips(t._delayedKeytipQueue),t._delayedKeytipQueue=[])},300))},ax.prototype._getKtpExecuteTarget=function(e){return ft().querySelector(Uc(e.id))},ax.prototype._getKtpTarget=function(e){return ft().querySelector(Gc(e.keySequences))},ax.prototype._isCurrentKeytipAnAlias=function(e){var t=this._keytipTree.currentKeytip;return!(!t||!t.overflowSetSequence&&!t.persisted||!qi(e.keySequences,t.keySequences))},ax.defaultProps={keytipStartSequences:[n],keytipExitSequences:[r],keytipReturnSequences:[W],content:""},ax),sx=In(ix,function(e){return{innerContent:[{position:"absolute",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",visibility:"hidden"}]}},void 0,{scope:"KeytipLayer"});function ax(e,t){var n=nx.call(this,e,t)||this;n._keytipManager=zc.getInstance(),n._delayedKeytipQueue=[],n._keyHandled=!1,n._onDismiss=function(e){n.state.inKeytipMode&&n._exitKeytipMode(e)},n._onKeyDown=function(e){n._keyHandled=!1;var t=e.key;switch(t){case"Tab":case"Enter":case"Spacebar":case" ":case"ArrowUp":case"Up":case"ArrowDown":case"Down":case"ArrowLeft":case"Left":case"ArrowRight":case"Right":n.state.inKeytipMode&&(n._keyHandled=!0,n._exitKeytipMode(e));break;default:"Esc"===t?t="Escape":"OS"!==t&&"Win"!==t||(t="Meta");var o={key:t};o.modifierKeys=n._getModifierKey(t,e),n.processTransitionInput(o,e)}},n._onKeyPress=function(e){n.state.inKeytipMode&&!n._keyHandled&&(n.processInput(e.key.toLocaleLowerCase(),e),e.preventDefault(),e.stopPropagation())},n._onKeytipAdded=function(e){var t,o=e.keytip,e=e.uniqueID;n._keytipTree.addNode(o,e),n._setKeytips(),n._keytipTree.isCurrentKeytipParent(o)&&(n._delayedKeytipQueue=n._delayedKeytipQueue.concat((null===(e=n._keytipTree.currentKeytip)||void 0===e?void 0:e.children)||[]),n._addKeytipToQueue(Vc(o.keySequences)),n._keytipTree.currentKeytip&&n._keytipTree.currentKeytip.hasDynamicChildren&&n._keytipTree.currentKeytip.children.indexOf(o.id)<0)&&(t=n._keytipTree.getNode(n._keytipTree.currentKeytip.id))&&(n._keytipTree.currentKeytip=t),n._persistedKeytipChecks(o)},n._onKeytipUpdated=function(e){var t=e.keytip,e=e.uniqueID;n._keytipTree.updateNode(t,e),n._setKeytips(),n._keytipTree.isCurrentKeytipParent(t)&&(n._delayedKeytipQueue=n._delayedKeytipQueue.concat((null===(e=n._keytipTree.currentKeytip)||void 0===e?void 0:e.children)||[]),n._addKeytipToQueue(Vc(t.keySequences))),n._persistedKeytipChecks(t)},n._persistedKeytipChecks=function(e){var t;n._newCurrentKeytipSequences&&qi(e.keySequences,n._newCurrentKeytipSequences)&&n._triggerKeytipImmediately(e),n._isCurrentKeytipAnAlias(e)&&(t=e.keySequences,e.overflowSetSequence&&(t=Kc(t,e.overflowSetSequence)),n._keytipTree.currentKeytip=n._keytipTree.getNode(Vc(t)))},n._onKeytipRemoved=function(e){var t=e.keytip,e=e.uniqueID;n._removeKeytipFromQueue(Vc(t.keySequences)),n._keytipTree.removeNode(t,e),n._setKeytips()},n._onPersistedKeytipAdded=function(e){var t=e.keytip,e=e.uniqueID;n._keytipTree.addNode(t,e,!0)},n._onPersistedKeytipRemoved=function(e){var t=e.keytip,e=e.uniqueID;n._keytipTree.removeNode(t,e)},n._onPersistedKeytipExecute=function(e){n._persistedKeytipExecute(e.overflowButtonSequences,e.keytipSequences)},n._setInKeytipMode=function(e){n.setState({inKeytipMode:e}),n._keytipManager.inKeytipMode=e},n._warnIfDuplicateKeytips=function(){var e=n._getDuplicateIds(n._keytipTree.getChildren());e.length&&Xo("Duplicate keytips found for "+e.join(", "))},n._getDuplicateIds=function(e){var t={};return e.filter(function(e){return t[e]=t[e]?t[e]+1:1,2===t[e]})},vi(n),n._events=new va(n),n._async=new xi(n);t=n._keytipManager.getKeytips();return n.state={inKeytipMode:!1,keytips:t,visibleKeytips:n._getVisibleKeytips(t)},n._buildTree(),n._currentSequence="",n._events.on(n._keytipManager,fc.KEYTIP_ADDED,n._onKeytipAdded),n._events.on(n._keytipManager,fc.KEYTIP_UPDATED,n._onKeytipUpdated),n._events.on(n._keytipManager,fc.KEYTIP_REMOVED,n._onKeytipRemoved),n._events.on(n._keytipManager,fc.PERSISTED_KEYTIP_ADDED,n._onPersistedKeytipAdded),n._events.on(n._keytipManager,fc.PERSISTED_KEYTIP_REMOVED,n._onPersistedKeytipRemoved),n._events.on(n._keytipManager,fc.PERSISTED_KEYTIP_EXECUTE,n._onPersistedKeytipExecute),n}function lx(e){for(var t={},o=0,n=e.keytips;o<n.length;o++)cx(t,[],n[o]);return t}function cx(e,t,o){var n=o.sequence||o.content.toLocaleLowerCase(),r=t.concat(n),n=ht(ht({},o.optionalProps),{keySequences:r,content:o.content});if(e[o.id]=n,o.children)for(var i=0,s=o.children;i<s.length;i++)cx(e,r,s[i])}fn("@fluentui/react","8.57.1");var ux=function(e){var t=e.id,o=e.className;return gt.useEffect(function(){tc(t)},[]),zh(function(){tc(t)}),gt.createElement("div",ht({},e,{className:Pr("ms-LayerHost",o)}))},dx=(px.prototype.dispose=function(){this._events.dispose(),this._stopScroll()},px.prototype._onMouseMove=function(e){this._computeScrollVelocity(e)},px.prototype._onTouchMove=function(e){0<e.touches.length&&this._computeScrollVelocity(e)},px.prototype._computeScrollVelocity=function(e){var t,o,n,r,i,s,a,l;this._scrollRect&&(o="clientX"in e?(t=e.clientX,e.clientY):(t=e.touches[0].clientX,e.touches[0].clientY),s=this._scrollRect.top,a=this._scrollRect.left,l=s+this._scrollRect.height-100,e=a+this._scrollRect.width-100,o<s+100||l<o?(r=o,n=s,i=l,this._isVerticalScroll=!0):(r=t,n=a,i=e,this._isVerticalScroll=!1),this._scrollVelocity=r<n+100?Math.max(-15,(100-(r-n))/100*-15):i<r?Math.min(15,(r-i)/100*15):0,this._scrollVelocity?this._startScroll():this._stopScroll())},px.prototype._startScroll=function(){this._timeoutId||this._incrementScroll()},px.prototype._incrementScroll=function(){this._scrollableParent&&(this._isVerticalScroll?this._scrollableParent.scrollTop+=Math.round(this._scrollVelocity):this._scrollableParent.scrollLeft+=Math.round(this._scrollVelocity)),this._timeoutId=setTimeout(this._incrementScroll,16)},px.prototype._stopScroll=function(){this._timeoutId&&(clearTimeout(this._timeoutId),delete this._timeoutId)},px);function px(e){this._events=new va(this),this._scrollableParent=Ns(e),this._incrementScroll=this._incrementScroll.bind(this),this._scrollRect=t0(this._scrollableParent),this._scrollableParent===window&&(this._scrollableParent=document.body),this._scrollableParent&&(this._events.on(window,"mousemove",this._onMouseMove,!0),this._events.on(window,"touchmove",this._onTouchMove,!0))}function hx(e,t){var o=e.left||e.x||0,n=e.top||e.y||0,e=t.left||t.x||0,t=t.top||t.y||0;return Math.sqrt(Math.pow(o-e,2)+Math.pow(n-t,2))}function mx(e){var t=e.contentSize,o=e.boundsSize,n=e.mode,r=e.maxScale,i=t.width/t.height,e=o.width/o.height,o=("contain"===(void 0===n?"contain":n)?e<i:i<e)?o.width/t.width:o.height/t.height,o=Math.min(void 0===r?1:r,o);return{width:t.width*o,height:t.height*o}}function gx(e){e=/[1-9]([0]+$)|\.([0-9]*)/.exec(String(e));return e?e[1]?-e[1].length:e[2]?e[2].length:0:0}function fx(e,t,o){void 0===o&&(o=10);t=Math.pow(o,t);return Math.round(e*t)/t}var vx,bx,yx=Fn(),Cx=In((l(_x,bx=gt.Component),_x.prototype.componentDidMount=function(){this._scrollableParent=Ns(this._root.current),this._scrollableSurface=this._scrollableParent===window?document.body:this._scrollableParent;var e=this.props.isDraggingConstrainedToRoot?this._root.current:this._scrollableSurface;this._events.on(e,"mousedown",this._onMouseDown),this._events.on(e,"touchstart",this._onTouchStart,!0),this._events.on(e,"pointerdown",this._onPointerDown,!0)},_x.prototype.componentWillUnmount=function(){this._autoScroll&&this._autoScroll.dispose(),delete this._scrollableParent,delete this._scrollableSurface,this._events.dispose(),this._async.dispose()},_x.prototype.render=function(){var e=this.props,t=e.rootProps,o=e.children,n=e.theme,r=e.className,i=e.styles,e=this.state.dragRect,r=yx(i,{theme:n,className:r});return gt.createElement("div",ht({},t,{className:r.root,ref:this._root}),o,e&>.createElement("div",{className:r.dragMask}),e&>.createElement("div",{className:r.box,style:e},gt.createElement("div",{className:r.boxFill})))},_x.prototype._isMouseEventOnScrollbar=function(e){var t=e.target,o=t.offsetWidth-t.clientWidth,n=t.offsetHeight-t.clientHeight;if(o||n){n=t.getBoundingClientRect();if(Pn(this.props.theme)){if(e.clientX<n.left+o)return!0}else if(e.clientX>n.left+t.clientWidth)return!0;if(e.clientY>n.top+t.clientHeight)return!0}return!1},_x.prototype._getRootRect=function(){return{left:this._rootRect.left+(this._scrollableSurface?this._scrollLeft-this._scrollableSurface.scrollLeft:this._scrollLeft),top:this._rootRect.top+(this._scrollableSurface?this._scrollTop-this._scrollableSurface.scrollTop:this._scrollTop),width:this._rootRect.width,height:this._rootRect.height}},_x.prototype._onAsyncMouseMove=function(e){var t=this;this._async.requestAnimationFrame(function(){t._onMouseMove(e)}),e.stopPropagation(),e.preventDefault()},_x.prototype._onMouseMove=function(e){if(this._autoScroll){void 0!==e.clientX&&(this._lastMouseEvent=e);var t,o=this._getRootRect(),n={left:e.clientX-o.left,top:e.clientY-o.top};return this._dragOrigin||(this._dragOrigin=n),void 0!==e.buttons&&0===e.buttons?this._onMouseUp(e):(this.state.dragRect||5<hx(this._dragOrigin,n))&&(this.state.dragRect||(t=this.props.selection,e.shiftKey||t.setAllSelected(!1),this._preservedIndicies=t&&t.getSelectedIndices&&t.getSelectedIndices()),t=this.props.isDraggingConstrainedToRoot?{left:Math.max(0,Math.min(o.width,this._lastMouseEvent.clientX-o.left)),top:Math.max(0,Math.min(o.height,this._lastMouseEvent.clientY-o.top))}:{left:this._lastMouseEvent.clientX-o.left,top:this._lastMouseEvent.clientY-o.top},t={left:Math.min(this._dragOrigin.left||0,t.left),top:Math.min(this._dragOrigin.top||0,t.top),width:Math.abs(t.left-(this._dragOrigin.left||0)),height:Math.abs(t.top-(this._dragOrigin.top||0))},this._evaluateSelection(t,o),this.setState({dragRect:t})),!1}},_x.prototype._onMouseUp=function(e){this._events.off(window),this._events.off(this._scrollableParent,"scroll"),this._autoScroll&&this._autoScroll.dispose(),this._autoScroll=this._dragOrigin=this._lastMouseEvent=void 0,this._selectedIndicies=this._itemRectCache=void 0,this.state.dragRect&&(this.setState({dragRect:void 0}),e.preventDefault(),e.stopPropagation())},_x.prototype._isPointInRectangle=function(e,t){return!!t.top&&e.top<t.top&&e.bottom>t.top&&!!t.left&&e.left<t.left&&e.right>t.left},_x.prototype._isDragStartInSelection=function(e){var t=this.props.selection;if(!this._root.current||t&&0===t.getSelectedCount())return!1;for(var o=this._root.current.querySelectorAll("[data-selection-index]"),n=0;n<o.length;n++){var r=o[n],i=Number(r.getAttribute("data-selection-index"));if(t.isIndexSelected(i)){r=r.getBoundingClientRect();if(this._isPointInRectangle(r,{left:e.clientX,top:e.clientY}))return!0}}return!1},_x.prototype._isInSelectionToggle=function(e){for(var t=e.target;t&&t!==this._root.current;){if("true"===t.getAttribute("data-selection-toggle"))return!0;t=t.parentElement}return!1},_x.prototype._evaluateSelection=function(e,t){if(e&&this._root.current){var o=this.props.selection,n=this._root.current.querySelectorAll("[data-selection-index]");this._itemRectCache||(this._itemRectCache={});for(var r=0;r<n.length;r++){var i=n[r],s=i.getAttribute("data-selection-index"),a=this._itemRectCache[s];a||0<(a={left:(a=i.getBoundingClientRect()).left-t.left,top:a.top-t.top,width:a.width,height:a.height,right:a.left-t.left+a.width,bottom:a.top-t.top+a.height}).width&&0<a.height&&(this._itemRectCache[s]=a),a.top<e.top+e.height&&a.bottom>e.top&&a.left<e.left+e.width&&a.right>e.left?this._selectedIndicies[s]=!0:delete this._selectedIndicies[s]}var l=this._allSelectedIndices||{};for(s in this._allSelectedIndices={},this._selectedIndicies)this._selectedIndicies.hasOwnProperty(s)&&(this._allSelectedIndices[s]=!0);if(this._preservedIndicies)for(var c=0,u=this._preservedIndicies;c<u.length;c++)s=u[c],this._allSelectedIndices[s]=!0;var d=!1;for(s in this._allSelectedIndices)if(this._allSelectedIndices[s]!==l[s]){d=!0;break}if(!d)for(var s in l)if(this._allSelectedIndices[s]!==l[s]){d=!0;break}if(d){o.setChangeEvents(!1),o.setAllSelected(!1);for(var p=0,h=Object.keys(this._allSelectedIndices);p<h.length;p++)s=h[p],o.setIndexSelected(Number(s),!0,!1);o.setChangeEvents(!0)}}},_x.defaultProps={rootTagName:"div",rootProps:{},isEnabled:!0},_x),function(e){var t=e.theme,e=e.className,t=t.palette;return{root:[e,{position:"relative",cursor:"default"}],dragMask:[{position:"absolute",background:"rgba(255, 0, 0, 0)",left:0,top:0,right:0,bottom:0,selectors:((e={})[Yt]={background:"none",backgroundColor:"transparent"},e)}],box:[{position:"absolute",boxSizing:"border-box",border:"1px solid "+t.themePrimary,pointerEvents:"none",zIndex:10,selectors:((e={})[Yt]={borderColor:"Highlight"},e)}],boxFill:[{position:"absolute",boxSizing:"border-box",backgroundColor:t.themePrimary,opacity:.1,left:0,top:0,right:0,bottom:0,selectors:((t={})[Yt]={background:"none",backgroundColor:"transparent"},t)}]}},void 0,{scope:"MarqueeSelection"});function _x(e){var n=bx.call(this,e)||this;return n._root=gt.createRef(),n._onMouseDown=function(e){var t=n.props,o=t.isEnabled,t=t.onShouldStartSelection;n._isMouseEventOnScrollbar(e)||n._isInSelectionToggle(e)||n._isTouch||!o||n._isDragStartInSelection(e)||t&&!t(e)||n._scrollableSurface&&0===e.button&&n._root.current&&(n._selectedIndicies={},n._preservedIndicies=void 0,n._events.on(window,"mousemove",n._onAsyncMouseMove,!0),n._events.on(n._scrollableParent,"scroll",n._onAsyncMouseMove),n._events.on(window,"click",n._onMouseUp,!0),n._autoScroll=new dx(n._root.current),n._scrollTop=n._scrollableSurface.scrollTop,n._scrollLeft=n._scrollableSurface.scrollLeft,n._rootRect=n._root.current.getBoundingClientRect(),n._onMouseMove(e))},n._onTouchStart=function(e){n._isTouch=!0,n._async.setTimeout(function(){n._isTouch=!1},0)},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._isTouch=!0,n._async.setTimeout(function(){n._isTouch=!1},0))},vi(n),n._async=new xi(n),n._events=new va(n),n.state={dragRect:void 0},n}(t=vx=vx||{})[t.info=0]="info",t[t.error=1]="error",t[t.blocked=2]="blocked",t[t.severeWarning=3]="severeWarning",t[t.success=4]="success",t[t.warning=5]="warning";var Sx=((K={})[vx.info]="Info",K[vx.warning]="Info",K[vx.error]="ErrorBadge",K[vx.blocked]="Blocked2",K[vx.severeWarning]="Warning",K[vx.success]="Completed",K),xx=Fn(),kx=gt.forwardRef(function(e,t){var o=T0(!1),n=o[0],r=o[1].toggle,i=su("MessageBar"),s=e.actions,a=e.className,l=e.children,c=e.overflowButtonAriaLabel,u=e.dismissIconProps,d=e.styles,p=e.theme,h=e.messageBarType,m=void 0===h?vx.info:h,g=e.onDismiss,f=void 0===g?void 0:g,v=e.isMultiline,b=void 0===v||v,y=e.truncated,C=e.dismissButtonAriaLabel,o=e.messageBarIconProps,h=e.role,g=e.delayedRender,v=void 0===g||g,g=e.expandButtonProps,e=ur(e,Wn,["className","role"]),d=xx(d,{theme:p,messageBarType:m||vx.info,onDismiss:void 0!==f,actions:void 0!==s,truncated:y,isMultiline:b,expandSingleLine:n,className:a}),p={iconName:n?"DoubleChevronUp":"DoubleChevronDown"},a=s||f?{"aria-describedby":i,role:"region"}:{},s=s?gt.createElement("div",{className:d.actions},s):null,C=f?gt.createElement(id,{disabled:!1,className:d.dismissal,onClick:f,iconProps:u||{iconName:"Clear"},title:C,ariaLabel:C}):null;return gt.createElement("div",ht({ref:t,className:d.root},a),gt.createElement("div",{className:d.content},gt.createElement("div",{className:d.iconContainer,"aria-hidden":!0},o?gt.createElement(Vr,ht({},o,{className:Pr(d.icon,o.className)})):gt.createElement(Vr,{iconName:Sx[m],className:d.icon})),gt.createElement("div",{className:d.text,id:i,role:h||function(e){switch(e){case vx.blocked:case vx.error:case vx.severeWarning:return"alert"}return"status"}(m),"aria-live":function(e){switch(e){case vx.blocked:case vx.error:case vx.severeWarning:return"assertive"}return"polite"}(m)},gt.createElement("span",ht({className:d.innerText},e),v?gt.createElement(Mi,null,gt.createElement("span",null,l)):gt.createElement("span",null,l))),!b&&!s&&y&>.createElement("div",{className:d.expandSingleLine},gt.createElement(id,ht({disabled:!1,className:d.expand,onClick:r,iconProps:p,ariaLabel:c,"aria-expanded":n},g))),!b&&s,!b&&C&>.createElement("div",{className:d.dismissSingleLine},C),b&&C),b&&s)});kx.displayName="MessageBar";var wx,Ix={root:"ms-MessageBar",error:"ms-MessageBar--error",blocked:"ms-MessageBar--blocked",severeWarning:"ms-MessageBar--severeWarning",success:"ms-MessageBar--success",warning:"ms-MessageBar--warning",multiline:"ms-MessageBar-multiline",singleline:"ms-MessageBar-singleline",dismissalSingleLine:"ms-MessageBar-dismissalSingleLine",expandingSingleLine:"ms-MessageBar-expandingSingleLine",content:"ms-MessageBar-content",iconContainer:"ms-MessageBar-icon",text:"ms-MessageBar-text",innerText:"ms-MessageBar-innerText",dismissSingleLine:"ms-MessageBar-dismissSingleLine",expandSingleLine:"ms-MessageBar-expandSingleLine",dismissal:"ms-MessageBar-dismissal",expand:"ms-MessageBar-expand",actions:"ms-MessageBar-actions",actionsSingleline:"ms-MessageBar-actionsSingleLine"},Dx=((ke={})[vx.error]="errorBackground",ke[vx.blocked]="errorBackground",ke[vx.success]="successBackground",ke[vx.warning]="warningBackground",ke[vx.severeWarning]="severeWarningBackground",ke[vx.info]="infoBackground",ke),Tx=((U={})[vx.error]="rgba(255, 0, 0, 0.3)",U[vx.blocked]="rgba(255, 0, 0, 0.3)",U[vx.success]="rgba(48, 241, 73, 0.3)",U[vx.warning]="rgba(255, 254, 57, 0.3)",U[vx.severeWarning]="rgba(255, 0, 0, 0.3)",U[vx.info]="Window",U),Ex=((G={})[vx.error]="errorIcon",G[vx.blocked]="errorIcon",G[vx.success]="successIcon",G[vx.warning]="warningIcon",G[vx.severeWarning]="severeWarningIcon",G[vx.info]="infoIcon",G),Px=In(kx,function(e){var t=e.theme,o=e.className,n=e.onDismiss,r=e.truncated,i=e.isMultiline,s=e.expandSingleLine,a=e.messageBarType,l=void 0===a?vx.info:a,c=t.semanticColors,u=t.fonts,d=uo(0,ro),e=zo(Ix,t),a={fontSize:Ae.xSmall,height:10,lineHeight:"10px",color:c.messageText,selectors:((a={})[Yt]=ht(ht({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{color:"WindowText"}),a)},t=[bo(t,{inset:1,highContrastStyle:{outlineOffset:"-6px",outline:"1px solid Highlight"},borderColor:"transparent"}),{flexShrink:0,width:32,height:32,padding:"8px 12px",selectors:{"& .ms-Button-icon":a,":hover":{backgroundColor:"transparent"},":active":{backgroundColor:"transparent"}}}];return{root:[e.root,u.medium,l===vx.error&&e.error,l===vx.blocked&&e.blocked,l===vx.severeWarning&&e.severeWarning,l===vx.success&&e.success,l===vx.warning&&e.warning,i?e.multiline:e.singleline,!i&&n&&e.dismissalSingleLine,!i&&r&&e.expandingSingleLine,{background:c[Dx[l]],color:c.messageText,minHeight:32,width:"100%",display:"flex",wordBreak:"break-word",selectors:((a={".ms-Link":{color:c.messageLink,selectors:{":hover":{color:c.messageLinkHovered}}}})[Yt]=ht(ht({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{background:Tx[l],border:"1px solid WindowText",color:"WindowText"}),a)},i&&{flexDirection:"column"},o],content:[e.content,{display:"flex",width:"100%",lineHeight:"normal"}],iconContainer:[e.iconContainer,{fontSize:Ae.medium,minWidth:16,minHeight:16,display:"flex",flexShrink:0,margin:"8px 0 8px 12px"}],icon:{color:c[Ex[l]],selectors:((l={})[Yt]=ht(ht({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{color:"WindowText"}),l)},text:[e.text,ht(ht({minWidth:0,display:"flex",flexGrow:1,margin:8},u.small),{selectors:((u={})[Yt]=ht({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),u)}),!n&&{marginRight:12}],innerText:[e.innerText,{lineHeight:16,selectors:{"& span a:last-child":{paddingLeft:4}}},r&&{overflow:"visible",whiteSpace:"pre-wrap"},!i&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},!i&&!r&&{selectors:((r={})[d]={overflow:"visible",whiteSpace:"pre-wrap"},r)},s&&{overflow:"visible",whiteSpace:"pre-wrap"}],dismissSingleLine:e.dismissSingleLine,expandSingleLine:e.expandSingleLine,dismissal:[e.dismissal,t],expand:[e.expand,t],actions:[i?e.actions:e.actionsSingleline,{display:"flex",flexGrow:0,flexShrink:0,flexBasis:"auto",flexDirection:"row-reverse",alignItems:"center",margin:"0 12px 0 8px",selectors:{"& button:nth-child(n+2)":{marginLeft:8}}},i&&{marginBottom:8},n&&!i&&{marginRight:0}]}},void 0,{scope:"MessageBar"}),Rx={root:"ms-Nav",linkText:"ms-Nav-linkText",compositeLink:"ms-Nav-compositeLink",link:"ms-Nav-link",chevronButton:"ms-Nav-chevronButton",chevronIcon:"ms-Nav-chevron",navItem:"ms-Nav-navItem",navItems:"ms-Nav-navItems",group:"ms-Nav-group",groupContent:"ms-Nav-groupContent"},Mx={textContainer:{overflow:"hidden"},label:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}};function Nx(e){return!!e&&!/^[a-z0-9+-.]+:\/\//i.test(e)}var Bx,Fx,Ax=Fn(),Lx=(l(Ox,Fx=gt.Component),Ox.prototype.render=function(){var e=this.props,t=e.styles,o=e.groups,n=e.className,r=e.isOnTop,i=e.theme;if(!o)return null;e=o.map(this._renderGroup),o=Ax(t,{theme:i,className:n,isOnTop:r,groups:o});return gt.createElement(Zs,{direction:Ei.vertical,componentRef:this._focusZone},gt.createElement("nav",{role:"navigation",className:o.root,"aria-label":this.props.ariaLabel},e))},Object.defineProperty(Ox.prototype,"selectedKey",{get:function(){return this.state.selectedKey},enumerable:!1,configurable:!0}),Ox.prototype.focus=function(e){return void 0===e&&(e=!1),!(!this._focusZone||!this._focusZone.current)&&this._focusZone.current.focus(e)},Ox.prototype._renderNavLink=function(e,t,o){var n=this.props,r=n.styles,i=n.groups,s=n.theme,a=e.icon||e.iconProps,l=this._isLinkSelected(e),n=e.ariaCurrent,n=void 0===n?"page":n,s=Ax(r,{theme:s,isSelected:l,isDisabled:e.disabled,isButtonEntry:e.onClick&&!e.forceAnchor,leftPadding:14*o+3+(a?0:24),groups:i}),o=e.url&&e.target&&!Nx(e.url)?"noopener noreferrer":void 0,a=this.props.linkAs?qu(this.props.linkAs,rp):rp,i=this.props.onRenderLink?Ma(this.props.onRenderLink,this._onRenderLink):this._onRenderLink;return gt.createElement(a,{className:s.link,styles:Mx,href:e.url||(e.forceAnchor?"#":void 0),iconProps:e.iconProps||{iconName:e.icon},onClick:(e.onClick?this._onNavButtonLinkClicked:this._onNavAnchorLinkClicked).bind(this,e),title:void 0!==e.title?e.title:e.name,target:e.target,rel:o,disabled:e.disabled,"aria-current":l?n:void 0,"aria-label":e.ariaLabel||void 0,link:e},i(e))},Ox.prototype._renderCompositeLink=function(e,t,o){var n=ht({},ur(e,cr,["onClick"])),r=this.props,i=r.expandButtonAriaLabel,s=r.styles,a=r.groups,r=r.theme,r=Ax(s,{theme:r,isExpanded:!!e.isExpanded,isSelected:this._isLinkSelected(e),isLink:!0,isDisabled:e.disabled,position:14*o+1,groups:a}),a="";return e.links&&0<e.links.length&&(a=e.collapseAriaLabel||e.expandAriaLabel?e.isExpanded?e.collapseAriaLabel:e.expandAriaLabel:i?e.name+" "+i:e.name),gt.createElement("div",ht({},n,{key:e.key||t,className:r.compositeLink}),e.links&&0<e.links.length?gt.createElement("button",{className:r.chevronButton,onClick:this._onLinkExpandClicked.bind(this,e),"aria-label":a,"aria-expanded":e.isExpanded?"true":"false"},gt.createElement(Vr,{className:r.chevronIcon,iconName:"ChevronDown"})):null,this._renderNavLink(e,t,o))},Ox.prototype._renderLink=function(e,t,o){var n=this.props,r=n.styles,i=n.groups,n=n.theme,i=Ax(r,{theme:n,groups:i});return gt.createElement("li",{key:e.key||t,role:"listitem",className:i.navItem},this._renderCompositeLink(e,t,o),e.isExpanded?this._renderLinks(e.links,++o):null)},Ox.prototype._renderLinks=function(e,o){var n=this;if(!e||!e.length)return null;var t=e.map(function(e,t){return n._renderLink(e,t,o)}),r=this.props,i=r.styles,e=r.groups,r=r.theme,e=Ax(i,{theme:r,groups:e});return gt.createElement("ul",{role:"list",className:e.navItems},t)},Ox.prototype._onGroupHeaderClicked=function(e,t){e.onHeaderClick&&e.onHeaderClick(t,this._isGroupExpanded(e)),void 0===e.isExpanded&&this._toggleCollapsed(e),t&&(t.preventDefault(),t.stopPropagation())},Ox.prototype._onLinkExpandClicked=function(e,t){var o=this.props.onLinkExpandClick;o&&o(t,e),t.defaultPrevented||(e.isExpanded=!e.isExpanded,this.setState({isLinkExpandStateChanged:!0})),t.preventDefault(),t.stopPropagation()},Ox.prototype._preventBounce=function(e,t){!e.url&&e.forceAnchor&&t.preventDefault()},Ox.prototype._onNavAnchorLinkClicked=function(e,t){this._preventBounce(e,t),this.props.onLinkClick&&this.props.onLinkClick(t,e),!e.url&&e.links&&0<e.links.length&&this._onLinkExpandClicked(e,t),this.setState({selectedKey:e.key})},Ox.prototype._onNavButtonLinkClicked=function(e,t){this._preventBounce(e,t),e.onClick&&e.onClick(t,e),!e.url&&e.links&&0<e.links.length&&this._onLinkExpandClicked(e,t),this.setState({selectedKey:e.key})},Ox.prototype._isLinkSelected=function(e){if(void 0!==this.props.selectedKey)return e.key===this.props.selectedKey;if(void 0!==this.state.selectedKey)return e.key===this.state.selectedKey;if(void 0===qe()||!e.url)return!1;(wx=wx||document.createElement("a")).href=e.url||"";var t=wx.href;return location.href===t||location.protocol+"//"+location.host+location.pathname===t||!!location.hash&&(location.hash===e.url||(wx.href=location.hash.substring(1),wx.href===t))},Ox.prototype._isGroupExpanded=function(e){return void 0!==e.isExpanded?e.isExpanded:e.name&&this.state.isGroupCollapsed.hasOwnProperty(e.name)?!this.state.isGroupCollapsed[e.name]:void 0===e.collapseByDefault||!e.collapseByDefault},Ox.prototype._toggleCollapsed=function(e){var t;e.name&&(t=ht(ht({},this.state.isGroupCollapsed),((t={})[e.name]=this._isGroupExpanded(e),t)),this.setState({isGroupCollapsed:t}))},Ox.defaultProps={groups:null},Ox),Hx=In(Lx,function(e){var t=e.className,o=e.theme,n=e.isOnTop,r=e.isExpanded,i=e.isGroup,s=e.isLink,a=e.isSelected,l=e.isDisabled,c=e.isButtonEntry,u=e.navHeight,d=void 0===u?44:u,p=e.position,h=e.leftPadding,m=void 0===h?20:h,g=e.leftPaddingExpanded,f=void 0===g?28:g,v=e.rightPadding,u=void 0===v?20:v,h=o.palette,g=o.semanticColors,e=o.fonts,v=zo(Rx,o);return{root:[v.root,t,e.medium,{overflowY:"auto",userSelect:"none",WebkitOverflowScrolling:"touch"},n&&[{position:"absolute"},Le.slideRightIn40]],linkText:[v.linkText,{margin:"0 4px",overflow:"hidden",verticalAlign:"middle",textAlign:"left",textOverflow:"ellipsis"}],compositeLink:[v.compositeLink,{display:"block",position:"relative",color:g.bodyText},r&&"is-expanded",a&&"is-selected",l&&"is-disabled",l&&{color:g.disabledText}],link:[v.link,bo(o),{display:"block",position:"relative",height:d,width:"100%",lineHeight:d+"px",textDecoration:"none",cursor:"pointer",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",paddingLeft:m,paddingRight:u,color:g.bodyText,selectors:((m={})[Yt]={border:0,selectors:{":focus":{border:"1px solid WindowText"}}},m)},!l&&{selectors:{".ms-Nav-compositeLink:hover &":{backgroundColor:g.bodyBackgroundHovered}}},a&&{color:g.bodyTextChecked,fontWeight:Fe.semibold,backgroundColor:g.bodyBackgroundChecked,selectors:{"&:after":{borderLeft:"2px solid "+h.themePrimary,content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"none"}}},l&&{color:g.disabledText},c&&{color:h.themePrimary}],chevronButton:[v.chevronButton,bo(o),e.small,{display:"block",textAlign:"left",lineHeight:d+"px",margin:"5px 0",padding:"0px, "+u+"px, 0px, "+f+"px",border:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",cursor:"pointer",color:g.bodyText,backgroundColor:"transparent",selectors:{"&:visited":{color:g.bodyText}}},i&&{fontSize:e.large.fontSize,width:"100%",height:d,borderBottom:"1px solid "+g.bodyDivider},s&&{display:"block",width:f-2,height:d-2,position:"absolute",top:"1px",left:p+"px",zIndex:mo.Nav,padding:0,margin:0},a&&{color:h.themePrimary,backgroundColor:h.neutralLighterAlt,selectors:{"&:after":{borderLeft:"2px solid "+h.themePrimary,content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"none"}}}],chevronIcon:[v.chevronIcon,{position:"absolute",left:"8px",height:d,display:"inline-flex",alignItems:"center",lineHeight:d+"px",fontSize:e.small.fontSize,transition:"transform .1s linear"},r&&{transform:"rotate(-180deg)"},s&&{top:0}],navItem:[v.navItem,{padding:0}],navItems:[v.navItems,{listStyleType:"none",padding:0,margin:0}],group:[v.group,r&&"is-expanded"],groupContent:[v.groupContent,{display:"none",marginBottom:"40px"},Le.slideDownIn20,r&&{display:"block"}]}},void 0,{scope:"Nav"});function Ox(e){var a=Fx.call(this,e)||this;return a._focusZone=gt.createRef(),a._onRenderLink=function(e){var t=a.props,o=t.styles,n=t.groups,t=t.theme,n=Ax(o,{theme:t,groups:n});return gt.createElement("div",{className:n.linkText},e.name)},a._renderGroup=function(o,e){var t=a.props,n=t.styles,r=t.groups,i=t.theme,s=t.onRenderGroupHeader,t=void 0===s?a._renderGroupHeader:s,s=a._isGroupExpanded(o),r=Ax(n,{theme:i,isGroup:!0,isExpanded:s,groups:r}),s=ht(ht({},o),{isExpanded:s,onHeaderClick:function(e,t){a._onGroupHeaderClicked(o,e)}});return gt.createElement("div",{key:e,className:r.group},s.name?t(s,a._renderGroupHeader):null,gt.createElement("div",{className:r.groupContent},a._renderLinks(s.links,0)))},a._renderGroupHeader=function(e){var t=a.props,o=t.styles,n=t.groups,r=t.theme,t=t.expandButtonAriaLabel,i=e.isExpanded,n=Ax(o,{theme:r,isGroup:!0,isExpanded:i,groups:n}),t=(i?e.collapseAriaLabel:e.expandAriaLabel)||t,s=e.onHeaderClick;return gt.createElement("button",{className:n.chevronButton,onClick:s?function(e){s(e,i)}:void 0,"aria-label":t,"aria-expanded":i},gt.createElement(Vr,{className:n.chevronIcon,iconName:"ChevronDown"}),e.name)},vi(a),a.state={isGroupCollapsed:{},isLinkExpandStateChanged:!1,selectedKey:e.initialSelectedKey||e.selectedKey},a}(n=Bx=Bx||{})[n.none=0]="none",n[n.forceResolve=1]="forceResolve",n[n.searchMore=2]="searchMore";var zx,Wx,Vx={root:"ms-Suggestions-item",itemButton:"ms-Suggestions-itemButton",closeButton:"ms-Suggestions-closeButton",isSuggested:"is-suggested"},Kx=o,Gx=Fn(),Ux=In(b_,function(e){var t,o=e.className,n=e.theme,r=e.suggested,i=n.palette,s=n.semanticColors,a=zo(Vx,n);return{root:[a.root,{display:"flex",alignItems:"stretch",boxSizing:"border-box",width:"100%",position:"relative",selectors:{"&:hover":{background:s.menuItemBackgroundHovered},"&:hover .ms-Suggestions-closeButton":{display:"block"}}},r&&{selectors:((t={})["."+go+" &"]={selectors:((e={})["."+a.closeButton]={display:"block",background:s.menuItemBackgroundPressed},e)},t[":after"]={pointerEvents:"none",content:'""',position:"absolute",left:0,top:0,bottom:0,right:0,border:"1px solid "+n.semanticColors.focusBorder},t)},o],itemButton:[a.itemButton,{width:"100%",padding:0,border:"none",height:"100%",minWidth:0,overflow:"hidden",selectors:((o={})[Yt]={color:"WindowText",selectors:{":hover":ht({background:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"})}},o[":hover"]={color:s.menuItemTextHovered},o)},r&&[a.isSuggested,{background:s.menuItemBackgroundPressed,selectors:((s={":hover":{background:s.menuDivider}})[Yt]=ht({background:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),s)}]],closeButton:[a.closeButton,{display:"none",color:i.neutralSecondary,padding:"0 4px",height:"auto",width:32,selectors:((a={":hover, :active":{background:i.neutralTertiaryAlt,color:i.neutralDark}})[Yt]={color:"WindowText"},a)},r&&((r={})["."+go+" &"]={selectors:{":hover, :active":{background:i.neutralTertiary}}},r.selectors={":hover, :active":{background:i.neutralTertiary,color:i.neutralPrimary}},r)]}},void 0,{scope:"SuggestionItem"}),jx=(l(Xx,Wx=gt.Component),Xx.prototype.componentDidMount=function(){this.scrollSelected(),this.activeSelectedElement=this._selectedElement?this._selectedElement.current:null},Xx.prototype.componentDidUpdate=function(){this._selectedElement.current&&this.activeSelectedElement!==this._selectedElement.current&&(this.scrollSelected(),this.activeSelectedElement=this._selectedElement.current)},Xx.prototype.render=function(){var e=this,t=this.props,o=t.forceResolveText,n=t.mostRecentlyUsedHeaderText,r=t.searchForMoreIcon,i=t.searchForMoreText,s=t.className,a=t.moreSuggestionsAvailable,l=t.noResultsFoundText,c=t.suggestions,u=t.isLoading,d=t.isSearching,p=t.loadingText,h=t.onRenderNoResultFound,m=t.searchingText,g=t.isMostRecentlyUsedVisible,f=t.resultsMaximumNumber,v=t.resultsFooterFull,b=t.resultsFooter,y=t.isResultsFooterVisible,C=void 0===y||y,_=t.suggestionsHeaderText,S=t.suggestionsClassName,x=t.theme,k=t.styles,y=t.suggestionsListId,t=t.suggestionsContainerAriaLabel;this._classNames=k?Gx(k,{theme:x,className:s,suggestionsClassName:S,forceResolveButtonSelected:this.state.selectedActionType===Bx.forceResolve,searchForMoreButtonSelected:this.state.selectedActionType===Bx.searchMore}):{root:Pr("ms-Suggestions",s,Kx.root),title:Pr("ms-Suggestions-title",Kx.suggestionsTitle),searchForMoreButton:Pr("ms-SearchMore-button",Kx.actionButton,((s={})["is-selected "+Kx.buttonSelected]=this.state.selectedActionType===Bx.searchMore,s)),forceResolveButton:Pr("ms-forceResolve-button",Kx.actionButton,((s={})["is-selected "+Kx.buttonSelected]=this.state.selectedActionType===Bx.forceResolve,s)),suggestionsAvailable:Pr("ms-Suggestions-suggestionsAvailable",Kx.suggestionsAvailable),suggestionsContainer:Pr("ms-Suggestions-container",Kx.suggestionsContainer,S),noSuggestions:Pr("ms-Suggestions-none",Kx.suggestionsNone)};var S=this._classNames.subComponentStyles?this._classNames.subComponentStyles.spinner:void 0,S=k?{styles:S}:{className:Pr("ms-Suggestions-spinner",Kx.suggestionsSpinner)},w=function(){return gt.createElement("div",{id:"sug-noResultsFound",role:"option"},h?h(void 0,w):gt.createElement("div",{className:e._classNames.noSuggestions},l))},_=_;g&&n&&(_=n);n=void 0;C&&(n=c.length>=f?v:b);v=!(c&&c.length||u),b=this.state.selectedActionType===Bx.forceResolve?"sug-selectedAction":void 0,c=this.state.selectedActionType===Bx.searchMore?"sug-selectedAction":void 0;return gt.createElement("div",{className:this._classNames.root,"aria-label":t||_,id:y,role:"listbox"},gt.createElement(Fi,{message:this._getAlertText(),"aria-live":"polite"}),_?gt.createElement("div",{className:this._classNames.title},_):null,o&&this._shouldShowForceResolve()&>.createElement(dp,{componentRef:this._forceResolveButton,className:this._classNames.forceResolveButton,id:b,onClick:this._forceResolve,"data-automationid":"sug-forceResolve"},o),u&>.createElement(Fb,ht({},S,{ariaLabel:p,label:p})),v?w():this._renderSuggestions(),i&&a&>.createElement(dp,{componentRef:this._searchForMoreButton,className:this._classNames.searchForMoreButton,iconProps:r||{iconName:"Search"},id:c,onClick:this._getMoreResults,"data-automationid":"sug-searchForMore",role:"option"},i),d?gt.createElement(Fb,ht({},S,{ariaLabel:m,label:m})):null,!n||a||g||d?null:gt.createElement("div",{className:this._classNames.title},n(this.props)))},Xx.prototype.hasSuggestedAction=function(){return!!this._searchForMoreButton.current||!!this._forceResolveButton.current},Xx.prototype.hasSuggestedActionSelected=function(){return this.state.selectedActionType!==Bx.none},Xx.prototype.executeSelectedAction=function(){switch(this.state.selectedActionType){case Bx.forceResolve:this._forceResolve();break;case Bx.searchMore:this._getMoreResults()}},Xx.prototype.focusAboveSuggestions=function(){this._forceResolveButton.current?this.setState({selectedActionType:Bx.forceResolve}):this._searchForMoreButton.current&&this.setState({selectedActionType:Bx.searchMore})},Xx.prototype.focusBelowSuggestions=function(){this._searchForMoreButton.current?this.setState({selectedActionType:Bx.searchMore}):this._forceResolveButton.current&&this.setState({selectedActionType:Bx.forceResolve})},Xx.prototype.focusSearchForMoreButton=function(){this._searchForMoreButton.current&&this._searchForMoreButton.current.focus()},Xx.prototype.scrollSelected=function(){var e,t,o,n,r;this._selectedElement.current&&this._scrollContainer.current&&void 0!==this._scrollContainer.current.scrollTo&&(e=(n=this._selectedElement.current).offsetHeight,t=n.offsetTop,o=(r=this._scrollContainer.current).offsetHeight,r=(n=r.scrollTop)+o<t+e,t<n?this._scrollContainer.current.scrollTo(0,t):r&&this._scrollContainer.current.scrollTo(0,t-o+e))},Xx.prototype._renderSuggestions=function(){var o=this,e=this.props,n=e.onRenderSuggestion,r=e.removeSuggestionAriaLabel,i=e.suggestionsItemClassName,t=e.resultsMaximumNumber,s=e.showRemoveButtons,a=e.removeButtonIconProps,e=this.props.suggestions,l=Ux,c=-1;return e.some(function(e,t){return!!e.selected&&(c=t,!0)}),0===(e=t?t<=c?e.slice(c-t+1,c+1):e.slice(0,t):e).length?null:gt.createElement("div",{className:this._classNames.suggestionsContainer,ref:this._scrollContainer,role:"presentation"},e.map(function(e,t){return gt.createElement("div",{ref:e.selected?o._selectedElement:void 0,key:e.item.key||t,role:"presentation"},gt.createElement(l,{suggestionModel:e,RenderSuggestion:n,onClick:o._onClickTypedSuggestionsItem(e.item,t),className:i,showRemoveButton:s,removeButtonAriaLabel:r,onRemoveItem:o._onRemoveTypedSuggestionsItem(e.item,t),id:"sug-"+t,removeButtonIconProps:a}))}))},Xx),qx=(Zx.prototype.updateSuggestions=function(e,t){e&&0<e.length?(this.suggestions=this.convertSuggestionsToSuggestionItems(e),this.currentIndex=t||0,-1===t?this.currentSuggestion=void 0:void 0!==t&&(this.suggestions[t].selected=!0,this.currentSuggestion=this.suggestions[t])):(this.suggestions=[],this.currentIndex=-1,this.currentSuggestion=void 0)},Zx.prototype.nextSuggestion=function(){if(this.suggestions&&this.suggestions.length){if(this.currentIndex<this.suggestions.length-1)return this.setSelectedSuggestion(this.currentIndex+1),!0;if(this.currentIndex===this.suggestions.length-1)return this.setSelectedSuggestion(0),!0}return!1},Zx.prototype.previousSuggestion=function(){if(this.suggestions&&this.suggestions.length){if(0<this.currentIndex)return this.setSelectedSuggestion(this.currentIndex-1),!0;if(0===this.currentIndex)return this.setSelectedSuggestion(this.suggestions.length-1),!0}return!1},Zx.prototype.getSuggestions=function(){return this.suggestions},Zx.prototype.getCurrentItem=function(){return this.currentSuggestion},Zx.prototype.getSuggestionAtIndex=function(e){return this.suggestions[e]},Zx.prototype.hasSelectedSuggestion=function(){return!!this.currentSuggestion},Zx.prototype.removeSuggestion=function(e){this.suggestions.splice(e,1)},Zx.prototype.createGenericSuggestion=function(e){e=this.convertSuggestionsToSuggestionItems([e])[0];this.currentSuggestion=e},Zx.prototype.convertSuggestionsToSuggestionItems=function(e){return Array.isArray(e)?e.map(this._ensureSuggestionModel):[]},Zx.prototype.deselectAllSuggestions=function(){-1<this.currentIndex&&(this.suggestions[this.currentIndex].selected=!1,this.currentIndex=-1)},Zx.prototype.setSelectedSuggestion=function(e){e>this.suggestions.length-1||e<0?(this.currentIndex=0,this.currentSuggestion.selected=!1,this.currentSuggestion=this.suggestions[0],this.currentSuggestion.selected=!0):(-1<this.currentIndex&&(this.suggestions[this.currentIndex].selected=!1),this.suggestions[e].selected=!0,this.currentIndex=e,this.currentSuggestion=this.suggestions[e])},Zx),Yx={root:"ms-Suggestions",suggestionsContainer:"ms-Suggestions-container",title:"ms-Suggestions-title",forceResolveButton:"ms-forceResolve-button",searchForMoreButton:"ms-SearchMore-button",spinner:"ms-Suggestions-spinner",noSuggestions:"ms-Suggestions-none",suggestionsAvailable:"ms-Suggestions-suggestionsAvailable",isSelected:"is-selected"};function Zx(){var t=this;this._isSuggestionModel=function(e){return void 0!==e.item},this._ensureSuggestionModel=function(e){return t._isSuggestionModel(e)?e:{item:e,selected:!1,ariaLabel:e.name||e.primaryText}},this.suggestions=[],this.currentIndex=-1}function Xx(e){var s=Wx.call(this,e)||this;return s._forceResolveButton=gt.createRef(),s._searchForMoreButton=gt.createRef(),s._selectedElement=gt.createRef(),s._scrollContainer=gt.createRef(),s.tryHandleKeyDown=function(e,t){var o=!1,n=null,r=s.state.selectedActionType,i=s.props.suggestions.length;if(e===Tn.down)switch(r){case Bx.forceResolve:n=0<i?(s._refocusOnSuggestions(e),Bx.none):s._searchForMoreButton.current?Bx.searchMore:Bx.forceResolve;break;case Bx.searchMore:n=s._forceResolveButton.current?Bx.forceResolve:0<i?(s._refocusOnSuggestions(e),Bx.none):Bx.searchMore;break;case Bx.none:-1===t&&s._forceResolveButton.current&&(n=Bx.forceResolve)}else if(e===Tn.up)switch(r){case Bx.forceResolve:s._searchForMoreButton.current?n=Bx.searchMore:0<i&&(s._refocusOnSuggestions(e),n=Bx.none);break;case Bx.searchMore:0<i?(s._refocusOnSuggestions(e),n=Bx.none):s._forceResolveButton.current&&(n=Bx.forceResolve);break;case Bx.none:-1===t&&s._searchForMoreButton.current&&(n=Bx.searchMore)}return null!==n&&(s.setState({selectedActionType:n}),o=!0),o},s._getAlertText=function(){var e=s.props,t=e.isLoading,o=e.isSearching,n=e.suggestions,r=e.suggestionsAvailableAlertText,e=e.noResultsFoundText;if(!t&&!o){if(0<n.length)return r||"";if(e)return e}return""},s._getMoreResults=function(){s.props.onGetMoreResults&&(s.props.onGetMoreResults(),s.setState({selectedActionType:Bx.none}))},s._forceResolve=function(){s.props.createGenericItem&&s.props.createGenericItem()},s._shouldShowForceResolve=function(){return!!s.props.showForceResolve&&s.props.showForceResolve()},s._onClickTypedSuggestionsItem=function(t,o){return function(e){s.props.onSuggestionClick(e,t,o)}},s._refocusOnSuggestions=function(e){"function"==typeof s.props.refocusSuggestions&&s.props.refocusSuggestions(e)},s._onRemoveTypedSuggestionsItem=function(t,o){return function(e){(0,s.props.onSuggestionRemove)(e,t,o),e.stopPropagation()}},vi(s),s.state={selectedActionType:Bx.none},s}function Qx(e){var t=e.className,o=e.suggestionsClassName,n=e.theme,r=e.forceResolveButtonSelected,i=e.searchForMoreButtonSelected,s=n.palette,a=n.semanticColors,l=n.fonts,c=zo(Yx,n),e={backgroundColor:"transparent",border:0,cursor:"pointer",margin:0,paddingLeft:8,position:"relative",borderTop:"1px solid "+s.neutralLight,height:40,textAlign:"left",width:"100%",fontSize:l.small.fontSize,selectors:{":hover":{backgroundColor:a.menuItemBackgroundPressed,cursor:"pointer"},":focus, :active":{backgroundColor:s.themeLight},".ms-Button-icon":{fontSize:l.mediumPlus.fontSize,width:25},".ms-Button-label":{margin:"0 4px 0 9px"}}},n={backgroundColor:s.themeLight,selectors:((n={})[Yt]=ht({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)};return{root:[c.root,{minWidth:260},t],suggestionsContainer:[c.suggestionsContainer,{overflowY:"auto",overflowX:"hidden",maxHeight:300,transform:"translate3d(0,0,0)"},o],title:[c.title,{padding:"0 12px",fontSize:l.small.fontSize,color:s.themePrimary,lineHeight:40,borderBottom:"1px solid "+a.menuItemBackgroundPressed}],forceResolveButton:[c.forceResolveButton,e,r&&[c.isSelected,n]],searchForMoreButton:[c.searchForMoreButton,e,i&&[c.isSelected,n]],noSuggestions:[c.noSuggestions,{textAlign:"center",color:s.neutralSecondary,fontSize:l.small.fontSize,lineHeight:30}],suggestionsAvailable:[c.suggestionsAvailable,So],subComponentStyles:{spinner:{root:[c.spinner,{margin:"5px 0",paddingLeft:14,textAlign:"left",whiteSpace:"nowrap",lineHeight:20,fontSize:l.small.fontSize}],circle:{display:"inline-block",verticalAlign:"middle"},label:{display:"inline-block",verticalAlign:"middle",margin:"0 10px 0 16px"}}}}}(r=zx=zx||{})[r.valid=0]="valid",r[r.warning=1]="warning",r[r.invalid=2]="invalid",Dt([{rawString:".pickerText_15a92175{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid "},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";min-width:180px;min-height:30px}.pickerText_15a92175:hover{border-color:"},{theme:"inputBorderHovered",defaultValue:"#323130"},{rawString:"}.pickerText_15a92175.inputFocused_15a92175{position:relative;border-color:"},{theme:"inputFocusBorderAlt",defaultValue:"#0078d4"},{rawString:"}.pickerText_15a92175.inputFocused_15a92175:after{pointer-events:none;content:'';position:absolute;left:-1px;top:-1px;bottom:-1px;right:-1px;border:2px solid "},{theme:"inputFocusBorderAlt",defaultValue:"#0078d4"},{rawString:"}@media screen and (-ms-high-contrast:active){.pickerText_15a92175.inputDisabled_15a92175{position:relative;border-color:GrayText}.pickerText_15a92175.inputDisabled_15a92175:after{pointer-events:none;content:'';position:absolute;left:0;top:0;bottom:0;right:0;background-color:Window}}.pickerInput_15a92175{height:34px;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;outline:0;padding:0 6px 0;-ms-flex-item-align:end;align-self:flex-end}.pickerItems_15a92175{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%}.screenReaderOnly_15a92175{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}"}]);var Jx,$x,ek="pickerText_15a92175",tk="inputFocused_15a92175",ok="inputDisabled_15a92175",nk="pickerInput_15a92175",rk="pickerItems_15a92175",ik="screenReaderOnly_15a92175",sk=i,ak=Fn(),lk=(l(Ck,$x=gt.Component),Ck.getDerivedStateFromProps=function(e){return e.selectedItems?{items:e.selectedItems}:null},Object.defineProperty(Ck.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Ck.prototype.componentDidMount=function(){this.selection.setItems(this.state.items),this._onResolveSuggestions=this._async.debounce(this._onResolveSuggestions,this.props.resolveDelay)},Ck.prototype.componentDidUpdate=function(e,t){var o;this.state.items&&this.state.items!==t.items&&(o=this.selection.getSelectedIndices()[0],this.selection.setItems(this.state.items),this.state.isFocused&&(this.state.items.length<t.items.length?(this.selection.setIndexSelected(o,!1,!0),this.resetFocus(o)):this.state.items.length>t.items.length&&!this.canAddItems()&&this.resetFocus(this.state.items.length-1)))},Ck.prototype.componentWillUnmount=function(){this.currentPromise&&(this.currentPromise=void 0),this._async.dispose()},Ck.prototype.focus=function(){this.input.current&&this.input.current.focus()},Ck.prototype.focusInput=function(){this.input.current&&this.input.current.focus()},Ck.prototype.completeSuggestion=function(e){this.suggestionStore.hasSelectedSuggestion()&&this.input.current?this.completeSelection(this.suggestionStore.currentSuggestion.item):e&&this._completeGenericSuggestion()},Ck.prototype.render=function(){var e=this.state,t=e.suggestedDisplayValue,o=e.isFocused,n=e.items,r=this.props,i=r.className,s=r.inputProps,a=r.disabled,l=r.selectionAriaLabel,c=r.selectionRole,u=void 0===c?"list":c,d=r.theme,e=r.styles,c=!!this.state.suggestionsVisible,r=c?this._ariaMap.suggestionList:void 0,o=e?ak(e,{theme:d,className:i,isFocused:o,disabled:a,inputClassName:s&&s.className}):{root:Pr("ms-BasePicker",i||""),text:Pr("ms-BasePicker-text",sk.pickerText,this.state.isFocused&&sk.inputFocused),itemsWrapper:sk.pickerItems,input:Pr("ms-BasePicker-input",sk.pickerInput,s&&s.className),screenReaderText:sk.screenReaderOnly},i=this.props["aria-label"]||(null==s?void 0:s["aria-label"]);return gt.createElement("div",{ref:this.root,className:o.root,onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur},this.renderCustomAlert(o.screenReaderText),gt.createElement("span",{id:this._ariaMap.selectedItems+"-label",hidden:!0},l||i),gt.createElement(Pv,{selection:this.selection,selectionMode:dv.multiple},gt.createElement("div",{className:o.text,"aria-owns":r},0<n.length&>.createElement("span",{id:this._ariaMap.selectedItems,className:o.itemsWrapper,role:u,"aria-labelledby":this._ariaMap.selectedItems+"-label"},this.renderItems()),this.canAddItems()&>.createElement(wi,ht({spellCheck:!1},s,{className:o.input,componentRef:this.input,id:null!=s&&s.id?s.id:this._ariaMap.combobox,onClick:this.onClick,onFocus:this.onInputFocus,onBlur:this.onInputBlur,onInputValueChange:this.onInputChange,suggestedDisplayValue:t,"aria-activedescendant":c?this.getActiveDescendant():void 0,"aria-controls":r,"aria-describedby":0<n.length?this._ariaMap.selectedItems:void 0,"aria-expanded":c,"aria-haspopup":"listbox","aria-label":i,role:"combobox",disabled:a,onInputChange:this.props.onInputChange})))),this.renderSuggestions())},Ck.prototype.canAddItems=function(){var e=this.state.items,t=this.props.itemLimit;return void 0===t||e.length<t},Ck.prototype.renderSuggestions=function(){var e=this._styledSuggestions;return this.state.suggestionsVisible&&this.input?gt.createElement(lc,ht({isBeakVisible:!1,gapSpace:5,target:this.input.current?this.input.current.inputElement:void 0,onDismiss:this.dismissSuggestions,directionalHint:Pa.bottomLeftEdge,directionalHintForRTL:Pa.bottomRightEdge},this.props.pickerCalloutProps),gt.createElement(e,ht({onRenderSuggestion:this.props.onRenderSuggestionsItem,onSuggestionClick:this.onSuggestionClick,onSuggestionRemove:this.onSuggestionRemove,suggestions:this.suggestionStore.getSuggestions(),componentRef:this.suggestionElement,onGetMoreResults:this.onGetMoreResults,moreSuggestionsAvailable:this.state.moreSuggestionsAvailable,isLoading:this.state.suggestionsLoading,isSearching:this.state.isSearching,isMostRecentlyUsedVisible:this.state.isMostRecentlyUsedVisible,isResultsFooterVisible:this.state.isResultsFooterVisible,refocusSuggestions:this.refocusSuggestions,removeSuggestionAriaLabel:this.props.removeButtonAriaLabel,suggestionsListId:this._ariaMap.suggestionList,createGenericItem:this._completeGenericSuggestion},this.props.pickerSuggestionsProps))):null},Ck.prototype.renderItems=function(){var o=this,e=this.props,n=e.disabled,r=e.removeButtonAriaLabel,i=e.removeButtonIconProps,s=this.props.onRenderItem,t=this.state,e=t.items,a=t.selectedIndices;return e.map(function(e,t){return s({item:e,index:t,key:e.key||t,selected:-1!==a.indexOf(t),onRemoveItem:function(){return o.removeItem(e)},disabled:n,onItemChange:o.onItemChange,removeButtonAriaLabel:r,removeButtonIconProps:i})})},Ck.prototype.resetFocus=function(e){var t=this.state.items;t.length&&0<=e?(e=this.root.current&&this.root.current.querySelectorAll("[data-selection-index]")[Math.min(e,t.length-1)])&&e.focus():this.canAddItems()?this.input.current&&this.input.current.focus():this.resetFocus(t.length-1)},Ck.prototype.onSuggestionSelect=function(){var e;this.suggestionStore.currentSuggestion&&(e=this.input.current?this.input.current.value:"",e=this._getTextFromItem(this.suggestionStore.currentSuggestion.item,e),this.setState({suggestedDisplayValue:e}))},Ck.prototype.onSelectionChange=function(){this.setState({selectedIndices:this.selection.getSelectedIndices()})},Ck.prototype.updateSuggestions=function(e){this.suggestionStore.updateSuggestions(e,0),this.forceUpdate()},Ck.prototype.onEmptyInputFocus=function(){var e=this.props.onEmptyResolveSuggestions||this.props.onEmptyInputFocus;e&&(e=e(this.state.items),this.updateSuggestionsList(e),this.setState({isMostRecentlyUsedVisible:!0,suggestionsVisible:!0,moreSuggestionsAvailable:!1}))},Ck.prototype.updateValue=function(e){this._onResolveSuggestions(e)},Ck.prototype.updateSuggestionsList=function(t,o){var n=this;Array.isArray(t)?this._updateAndResolveValue(o,t):t&&t.then&&(this.setState({suggestionsLoading:!0}),this.suggestionStore.updateSuggestions([]),void 0!==o?this.setState({suggestionsVisible:this._getShowSuggestions()}):this.setState({suggestionsVisible:this.input.current&&this.input.current.inputElement===document.activeElement}),(this.currentPromise=t).then(function(e){t===n.currentPromise&&n._updateAndResolveValue(o,e)}))},Ck.prototype.resolveNewValue=function(e,t){var o=this;this.updateSuggestions(t);t=void 0;this.suggestionStore.currentSuggestion&&(t=this._getTextFromItem(this.suggestionStore.currentSuggestion.item,e)),this.setState({suggestedDisplayValue:t,suggestionsVisible:this._getShowSuggestions()},function(){return o.setState({suggestionsLoading:!1})})},Ck.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},Ck.prototype.onBackspace=function(e){(this.state.items.length&&!this.input.current||this.input.current&&!this.input.current.isValueSelected&&0===this.input.current.cursorLocation)&&(0<this.selection.getSelectedCount()?this.removeItems(this.selection.getSelection()):this.removeItem(this.state.items[this.state.items.length-1]))},Ck.prototype.getActiveDescendant=function(){var e;if(!this.state.suggestionsLoading){var t=this.suggestionStore.currentIndex;return t<0?null!==(e=this.suggestionElement.current)&&void 0!==e&&e.hasSuggestedAction()?"sug-selectedAction":0===this.suggestionStore.suggestions.length?"sug-noResultsFound":void 0:"sug-"+t}},Ck.prototype.getSuggestionsAlert=function(e){void 0===e&&(e=sk.screenReaderOnly);var t=this.suggestionStore.currentIndex;if(this.props.enableSelectedSuggestionAlert){t=-1<t?this.suggestionStore.getSuggestionAtIndex(this.suggestionStore.currentIndex):void 0,t=t?t.ariaLabel:void 0;return gt.createElement("div",{id:this._ariaMap.selectedSuggestionAlert,className:e},t+" ")}},Ck.prototype.renderCustomAlert=function(e){void 0===e&&(e=sk.screenReaderOnly);var t=this.props.suggestionRemovedText,o="";return this.state.selectionRemoved&&(o=$p(void 0===t?"removed {0}":t,this._getTextFromItem(this.state.selectionRemoved,""))),gt.createElement("div",{className:e,id:this._ariaMap.selectedSuggestionAlert,"aria-live":"assertive"},this.getSuggestionsAlert(e),o)},Ck.prototype._updateAndResolveValue=function(e,t){void 0!==e?this.resolveNewValue(e,t):(this.suggestionStore.updateSuggestions(t,-1),this.state.suggestionsLoading&&this.setState({suggestionsLoading:!1}))},Ck.prototype._updateSelectedItems=function(e){var t=this;this.props.selectedItems?this.onChange(e):this.setState({items:e},function(){t._onSelectedItemsUpdated(e)})},Ck.prototype._onSelectedItemsUpdated=function(e){this.onChange(e)},Ck.prototype._getShowSuggestions=function(){return void 0!==this.input.current&&null!==this.input.current&&this.input.current.inputElement===document.activeElement&&""!==this.input.current.value},Ck.prototype._getTextFromItem=function(e,t){return this.props.getTextFromItem?this.props.getTextFromItem(e,t):""},Ck),ck=(l(yk,Jx=lk),yk.prototype.render=function(){var e=this.state,t=e.suggestedDisplayValue,o=e.isFocused,n=this.props,r=n.className,i=n.inputProps,s=n.disabled,a=n.selectionAriaLabel,l=n.selectionRole,c=void 0===l?"list":l,u=n.theme,e=n.styles,l=!!this.state.suggestionsVisible,n=l?this._ariaMap.suggestionList:void 0,o=e?ak(e,{theme:u,className:r,isFocused:o,inputClassName:i&&i.className}):{root:Pr("ms-BasePicker",r||""),text:Pr("ms-BasePicker-text",sk.pickerText,this.state.isFocused&&sk.inputFocused,s&&sk.inputDisabled),itemsWrapper:sk.pickerItems,input:Pr("ms-BasePicker-input",sk.pickerInput,i&&i.className),screenReaderText:sk.screenReaderOnly},r=this.props["aria-label"]||(null==i?void 0:i["aria-label"]);return gt.createElement("div",{ref:this.root,onBlur:this.onBlur,onFocus:this.onFocus},gt.createElement("div",{className:o.root,onKeyDown:this.onKeyDown},this.renderCustomAlert(o.screenReaderText),gt.createElement("div",{className:o.text,"aria-owns":n},gt.createElement(wi,ht({},i,{className:o.input,componentRef:this.input,onFocus:this.onInputFocus,onBlur:this.onInputBlur,onClick:this.onClick,onInputValueChange:this.onInputChange,suggestedDisplayValue:t,"aria-activedescendant":l?this.getActiveDescendant():void 0,"aria-controls":n,"aria-expanded":l,"aria-haspopup":"listbox","aria-label":r,role:"combobox",id:null!=i&&i.id?i.id:this._ariaMap.combobox,disabled:s,onInputChange:this.props.onInputChange})))),this.renderSuggestions(),gt.createElement(Pv,{selection:this.selection,selectionMode:dv.single},gt.createElement("div",{id:this._ariaMap.selectedItems,className:"ms-BasePicker-selectedItems",role:c,"aria-label":a||r},this.renderItems())))},yk.prototype.onBackspace=function(e){},yk),uk={root:"ms-PickerPersona-container",itemContent:"ms-PickerItem-content",removeButton:"ms-PickerItem-removeButton",isSelected:"is-selected",isInvalid:"is-invalid"},dk=Fn(),pk=function(e){var t=e.item,o=e.onRemoveItem,n=e.index,r=e.selected,i=e.removeButtonAriaLabel,s=e.styles,a=e.theme,l=e.className,c=e.disabled,u=e.removeButtonIconProps,e=Ss(),a=dk(s,{theme:a,className:l,selected:r,disabled:c,invalid:t.ValidationState===zx.warning}),l=a.subComponentStyles?a.subComponentStyles.persona:void 0,r=a.subComponentStyles?a.subComponentStyles.personaCoin:void 0;return gt.createElement("div",{className:a.root,role:"listitem"},gt.createElement("div",{className:a.itemContent,id:"selectedItemPersona-"+e},gt.createElement(XC,ht({size:Rr.size24,styles:l,coinProps:{styles:r}},t))),gt.createElement(id,{id:e,onClick:o,disabled:c,iconProps:null!=u?u:{iconName:"Cancel"},styles:{icon:{fontSize:"12px"}},className:a.removeButton,ariaLabel:i,"aria-labelledby":e+" selectedItemPersona-"+e,"data-selection-index":n}))},hk=In(pk,function(e){var t,o=e.className,n=e.theme,r=e.selected,i=e.invalid,s=e.disabled,a=n.palette,l=n.semanticColors,c=n.fonts,e=zo(uk,n),u=[r&&!i&&!s&&{color:a.white,selectors:((t={":hover":{color:a.white}})[Yt]={color:"HighlightText"},t)},(i&&!r||i&&r&&s)&&{color:a.redDark,borderBottom:"2px dotted "+a.redDark,selectors:((t={})["."+e.root+":hover &"]={color:a.redDark},t)},i&&r&&!s&&{color:a.white,borderBottom:"2px dotted "+a.white},s&&{selectors:((u={})[Yt]={color:"GrayText"},u)}],c=[i&&{fontSize:c.xLarge.fontSize}];return{root:[e.root,bo(n,{inset:-2}),{borderRadius:15,display:"inline-flex",alignItems:"center",background:a.neutralLighter,margin:"1px 2px",cursor:"default",userSelect:"none",maxWidth:300,verticalAlign:"middle",minWidth:0,selectors:((n={":hover":{background:r||s?"":a.neutralLight}})[Yt]=[{border:"1px solid WindowText"},s&&{borderColor:"GrayText"}],n)},r&&!s&&[e.isSelected,{background:a.themePrimary,selectors:((n={})[Yt]=ht({borderColor:"HighLight",background:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)}],i&&[e.isInvalid],i&&r&&!s&&{background:a.redDark},o],itemContent:[e.itemContent,{flex:"0 1 auto",minWidth:0,maxWidth:"100%",overflow:"hidden"}],removeButton:[e.removeButton,{borderRadius:15,color:a.neutralPrimary,flex:"0 0 auto",width:24,height:24,selectors:{":hover":{background:a.neutralTertiaryAlt,color:a.neutralDark}}},r&&[{color:a.white,selectors:((r={":hover":{color:a.white,background:a.themeDark},":active":{color:a.white,background:a.themeDarker}})[Yt]={color:"HighlightText"},r)},i&&{selectors:{":hover":{background:a.red},":active":{background:a.redDark}}}],s&&{selectors:((s={})["."+Ku.msButtonIcon]={color:l.buttonText},s)}],subComponentStyles:{persona:{primaryText:u},personaCoin:{initials:c}}}},void 0,{scope:"PeoplePickerItem"}),mk={root:"ms-PeoplePicker-personaContent",personaWrapper:"ms-PeoplePicker-Persona"},gk=Fn(),fk=function(e){var t=e.personaProps,o=e.suggestionsProps,n=e.compact,r=e.styles,i=e.theme,e=e.className,o=gk(r,{theme:i,className:o&&o.suggestionsItemClassName||e}),e=o.subComponentStyles&&o.subComponentStyles.persona?o.subComponentStyles.persona:void 0;return gt.createElement("div",{className:o.root},gt.createElement(XC,ht({size:Rr.size24,styles:e,className:o.personaWrapper,showSecondaryText:!n,showOverflowTooltip:!1},t)))},vk=In(fk,function(e){var t=e.className,o=e.theme,n=zo(mk,o),e={selectors:((e={})["."+Vx.isSuggested+" &"]={selectors:((o={})[Yt]={color:"HighlightText"},o)},e["."+n.root+":hover &"]={selectors:((o={})[Yt]={color:"HighlightText"},o)},e)};return{root:[n.root,{width:"100%",padding:"4px 12px"},t],personaWrapper:[n.personaWrapper,{width:180}],subComponentStyles:{persona:{primaryText:e,secondaryText:e}}}},void 0,{scope:"PeoplePickerItemSuggestion"}),bk={root:"ms-BasePicker",text:"ms-BasePicker-text",itemsWrapper:"ms-BasePicker-itemsWrapper",input:"ms-BasePicker-input"};function yk(){return null!==Jx&&Jx.apply(this,arguments)||this}function Ck(e){var n=$x.call(this,e)||this;n.root=gt.createRef(),n.input=gt.createRef(),n.suggestionElement=gt.createRef(),n.SuggestionOfProperType=jx,n._styledSuggestions=In(n.SuggestionOfProperType,Qx,void 0,{scope:"Suggestions"}),n.dismissSuggestions=function(t){function e(){var e=!0;n.props.onDismiss&&(e=n.props.onDismiss(t,n.suggestionStore.currentSuggestion?n.suggestionStore.currentSuggestion.item:void 0)),t&&t.defaultPrevented||!1===e||!n.canAddItems()||!n.suggestionStore.hasSelectedSuggestion()||!n.state.suggestedDisplayValue||n.addItemByIndex(0)}n.currentPromise?n.currentPromise.then(e):e(),n.setState({suggestionsVisible:!1})},n.refocusSuggestions=function(e){n.resetFocus(),n.suggestionStore.suggestions&&0<n.suggestionStore.suggestions.length&&(e===Tn.up?n.suggestionStore.setSelectedSuggestion(n.suggestionStore.suggestions.length-1):e===Tn.down&&n.suggestionStore.setSelectedSuggestion(0))},n.onInputChange=function(e){n.updateValue(e),n.setState({moreSuggestionsAvailable:!0,isMostRecentlyUsedVisible:!1})},n.onSuggestionClick=function(e,t,o){n.addItemByIndex(o)},n.onSuggestionRemove=function(e,t,o){n.props.onRemoveSuggestion&&n.props.onRemoveSuggestion(t),n.suggestionStore.removeSuggestion(o)},n.onInputFocus=function(e){n.selection.setAllSelected(!1),n.state.isFocused||(n._userTriggeredSuggestions(),n.props.inputProps&&n.props.inputProps.onFocus&&n.props.inputProps.onFocus(e))},n.onInputBlur=function(e){n.props.inputProps&&n.props.inputProps.onBlur&&n.props.inputProps.onBlur(e)},n.onBlur=function(e){var t;n.state.isFocused&&(t=e.relatedTarget,(t=null===e.relatedTarget?document.activeElement:t)&&!es(n.root.current,t)&&(n.setState({isFocused:!1}),n.props.onBlur&&n.props.onBlur(e)))},n.onClick=function(e){void 0!==n.props.inputProps&&void 0!==n.props.inputProps.onClick&&n.props.inputProps.onClick(e),0===e.button&&n._userTriggeredSuggestions()},n.onFocus=function(){n.state.isFocused||n.setState({isFocused:!0})},n.onKeyDown=function(e){var t=e.which;switch(t){case Tn.escape:n.state.suggestionsVisible&&(n.setState({suggestionsVisible:!1}),e.preventDefault(),e.stopPropagation());break;case Tn.tab:case Tn.enter:n.suggestionElement.current&&n.suggestionElement.current.hasSuggestedActionSelected()?n.suggestionElement.current.executeSelectedAction():!e.shiftKey&&n.suggestionStore.hasSelectedSuggestion()&&n.state.suggestionsVisible?(n.completeSuggestion(),e.preventDefault(),e.stopPropagation()):n._completeGenericSuggestion();break;case Tn.backspace:n.props.disabled||n.onBackspace(e),e.stopPropagation();break;case Tn.del:n.props.disabled||(n.input.current&&e.target===n.input.current.inputElement&&n.state.suggestionsVisible&&-1!==n.suggestionStore.currentIndex?(n.props.onRemoveSuggestion&&n.props.onRemoveSuggestion(n.suggestionStore.currentSuggestion.item),n.suggestionStore.removeSuggestion(n.suggestionStore.currentIndex),n.forceUpdate()):n.onBackspace(e)),e.stopPropagation();break;case Tn.up:n.input.current&&e.target===n.input.current.inputElement&&n.state.suggestionsVisible&&(n.suggestionElement.current&&n.suggestionElement.current.tryHandleKeyDown(t,n.suggestionStore.currentIndex)?(e.preventDefault(),e.stopPropagation(),n.forceUpdate()):n.suggestionElement.current&&n.suggestionElement.current.hasSuggestedAction()&&0===n.suggestionStore.currentIndex?(e.preventDefault(),e.stopPropagation(),n.suggestionElement.current.focusAboveSuggestions(),n.suggestionStore.deselectAllSuggestions(),n.forceUpdate()):n.suggestionStore.previousSuggestion()&&(e.preventDefault(),e.stopPropagation(),n.onSuggestionSelect()));break;case Tn.down:n.input.current&&e.target===n.input.current.inputElement&&n.state.suggestionsVisible&&(n.suggestionElement.current&&n.suggestionElement.current.tryHandleKeyDown(t,n.suggestionStore.currentIndex)?(e.preventDefault(),e.stopPropagation(),n.forceUpdate()):n.suggestionElement.current&&n.suggestionElement.current.hasSuggestedAction()&&n.suggestionStore.currentIndex+1===n.suggestionStore.suggestions.length?(e.preventDefault(),e.stopPropagation(),n.suggestionElement.current.focusBelowSuggestions(),n.suggestionStore.deselectAllSuggestions(),n.forceUpdate()):n.suggestionStore.nextSuggestion()&&(e.preventDefault(),e.stopPropagation(),n.onSuggestionSelect()))}},n.onItemChange=function(e,t){var o=n.state.items;0<=t&&((o=o)[t]=e,n._updateSelectedItems(o))},n.onGetMoreResults=function(){n.setState({isSearching:!0},function(){var e,t;n.props.onGetMoreResults&&n.input.current?(t=e=n.props.onGetMoreResults(n.input.current.value,n.state.items),Array.isArray(e)?(n.updateSuggestions(e),n.setState({isSearching:!1})):t.then&&t.then(function(e){n.updateSuggestions(e),n.setState({isSearching:!1})})):n.setState({isSearching:!1}),n.input.current&&n.input.current.focus(),n.setState({moreSuggestionsAvailable:!1,isResultsFooterVisible:!0})})},n.completeSelection=function(e){n.addItem(e),n.updateValue(""),n.input.current&&n.input.current.clear(),n.setState({suggestionsVisible:!1})},n.addItemByIndex=function(e){n.completeSelection(n.suggestionStore.getSuggestionAtIndex(e).item)},n.addItem=function(e){var t=n.props.onItemSelected?n.props.onItemSelected(e):e;null!==t&&((e=t)&&t.then?t.then(function(e){e=n.state.items.concat([e]);n._updateSelectedItems(e)}):(e=n.state.items.concat([e]),n._updateSelectedItems(e)),n.setState({suggestedDisplayValue:"",selectionRemoved:void 0}))},n.removeItem=function(e){var t=n.state.items,o=t.indexOf(e);0<=o&&(o=t.slice(0,o).concat(t.slice(o+1)),n.setState({selectionRemoved:e}),n._updateSelectedItems(o))},n.removeItems=function(t){var e=n.state.items.filter(function(e){return-1===t.indexOf(e)});n._updateSelectedItems(e)},n._shouldFocusZoneEnterInnerZone=function(e){if(n.state.suggestionsVisible)switch(e.which){case Tn.up:case Tn.down:return!0}return e.which===Tn.enter},n._onResolveSuggestions=function(e){var t=n.props.onResolveSuggestions(e,n.state.items);null!==t&&n.updateSuggestionsList(t,e)},n._completeGenericSuggestion=function(){var e;n.props.onValidateInput&&n.input.current&&n.props.onValidateInput(n.input.current.value)!==zx.invalid&&n.props.createGenericItem&&(e=n.props.createGenericItem(n.input.current.value,n.props.onValidateInput(n.input.current.value)),n.suggestionStore.createGenericSuggestion(e),n.completeSuggestion())},n._userTriggeredSuggestions=function(){var e;n.state.suggestionsVisible||((e=n.input.current?n.input.current.value:"")?0===n.suggestionStore.suggestions.length?n._onResolveSuggestions(e):n.setState({isMostRecentlyUsedVisible:!1,suggestionsVisible:!0}):n.onEmptyInputFocus())},vi(n),n._async=new xi(n);e=e.selectedItems||e.defaultSelectedItems||[];return n._id=Ss(),n._ariaMap={selectedItems:"selected-items-"+n._id,selectedSuggestionAlert:"selected-suggestion-alert-"+n._id,suggestionList:"suggestion-list-"+n._id,combobox:"combobox-"+n._id},n.suggestionStore=new qx,n.selection=new fv({onSelectionChanged:function(){return n.onSelectionChange()}}),n.selection.setItems(e),n.state={items:e,suggestedDisplayValue:"",isMostRecentlyUsedVisible:!1,moreSuggestionsAvailable:!1,isFocused:!1,isSearching:!1,selectedIndices:[],selectionRemoved:void 0},n}function _k(e){var t=e.className,o=e.theme,n=e.isFocused,r=e.inputClassName,i=e.disabled;if(!o)throw new Error("theme is undefined or null in base BasePicker getStyles function.");var s=o.semanticColors,a=o.effects,l=o.fonts,c=s.inputBorder,u=s.inputBorderHovered,d=s.inputFocusBorderAlt,p=zo(bk,o),e=[l.medium,{color:s.inputPlaceholderText,opacity:1,selectors:((h={})[Yt]={color:"GrayText"},h)}],h={color:s.disabledText,selectors:((o={})[Yt]={color:"GrayText"},o)},o="rgba(218, 218, 218, 0.29)";return{root:[p.root,t],text:[p.text,{display:"flex",position:"relative",flexWrap:"wrap",alignItems:"center",boxSizing:"border-box",minWidth:180,minHeight:30,border:"1px solid "+c,borderRadius:a.roundedCorner2},!n&&!i&&{selectors:{":hover":{borderColor:u}}},n&&!i&&_o(d,a.roundedCorner2),i&&{borderColor:o,selectors:((o={":after":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,background:o}})[Yt]={borderColor:"GrayText",selectors:{":after":{background:"none"}}},o)}],itemsWrapper:[p.itemsWrapper,{display:"flex",flexWrap:"wrap",maxWidth:"100%"}],input:[p.input,l.medium,{height:30,border:"none",flexGrow:1,outline:"none",padding:"0 6px 0",alignSelf:"flex-end",borderRadius:a.roundedCorner2,backgroundColor:"transparent",color:s.inputText,selectors:{"::-ms-clear":{display:"none"}}},Zo(e),i&&Zo(h),r],screenReaderText:So}}var Sk,xk,kk,wk,Ik,Dk=(l(Ak,Ik=lk),Ak),Tk=(l(Fk,wk=ck),Fk),Ek=(l(Bk,kk=Dk),Bk.defaultProps={onRenderItem:function(e){return gt.createElement(hk,ht({},e))},onRenderSuggestionsItem:function(e,t){return gt.createElement(vk,{personaProps:e,suggestionsProps:t})},createGenericItem:Lk},Bk),Pk=(l(Nk,xk=Dk),Nk.defaultProps={onRenderItem:function(e){return gt.createElement(hk,ht({},e))},onRenderSuggestionsItem:function(e,t){return gt.createElement(vk,{personaProps:e,suggestionsProps:t,compact:!0})},createGenericItem:Lk},Nk),Rk=(l(Mk,Sk=Tk),Mk.defaultProps={onRenderItem:function(e){return gt.createElement(hk,ht({},e))},onRenderSuggestionsItem:function(e,t){return gt.createElement(vk,{personaProps:e,suggestionsProps:t})},createGenericItem:Lk},Mk);function Mk(){return null!==Sk&&Sk.apply(this,arguments)||this}function Nk(){return null!==xk&&xk.apply(this,arguments)||this}function Bk(){return null!==kk&&kk.apply(this,arguments)||this}function Fk(){return null!==wk&&wk.apply(this,arguments)||this}function Ak(){return null!==Ik&&Ik.apply(this,arguments)||this}function Lk(e,t){var o={key:e,primaryText:e,imageInitials:"!",ValidationState:t};return t!==zx.warning&&(o.imageInitials=Cr(e,Pn())),o}var Hk,Ok=In(Ek,_k,void 0,{scope:"NormalPeoplePicker"}),zk=In(Pk,_k,void 0,{scope:"CompactPeoplePicker"}),Wk=In(Rk,_k,void 0,{scope:"ListPeoplePickerBase"}),Vk={root:"ms-TagItem",text:"ms-TagItem-text",close:"ms-TagItem-close",isSelected:"is-selected"},Kk=Fn(),Gk=function(e){var t=e.theme,o=e.styles,n=e.selected,r=e.disabled,i=e.enableTagFocusInDisabledPicker,s=e.children,a=e.className,l=e.index,c=e.onRemoveItem,u=e.removeButtonAriaLabel,d=e.title,d=void 0===d?"string"==typeof e.children?e.children:e.item.name:d,e=e.removeButtonIconProps,a=Kk(o,{theme:t,className:a,selected:n,disabled:r}),n=su(),r=i?{"aria-disabled":r,tabindex:0}:{disabled:r};return gt.createElement("div",{className:a.root,role:"listitem",key:l},gt.createElement("span",{className:a.text,title:d,id:n+"-text"},s),gt.createElement(id,ht({id:n,onClick:c},r,{iconProps:null!=e?e:{iconName:"Cancel"},styles:{icon:{fontSize:"12px"}},className:a.close,ariaLabel:u,"aria-labelledby":n+" "+n+"-text","data-selection-index":l})))},Uk=In(Gk,function(e){var t=e.className,o=e.theme,n=e.selected,r=e.disabled,i=o.palette,s=o.effects,a=o.fonts,l=o.semanticColors,e=zo(Vk,o);return{root:[e.root,a.medium,bo(o),{boxSizing:"content-box",flexShrink:"1",margin:2,height:26,lineHeight:26,cursor:"default",userSelect:"none",display:"flex",flexWrap:"nowrap",maxWidth:300,minWidth:0,borderRadius:s.roundedCorner2,color:l.inputText,background:i.neutralLighter,selectors:((l={":hover":[!r&&!n&&{color:i.neutralDark,background:i.neutralLight,selectors:{".ms-TagItem-close":{color:i.neutralPrimary}}},r&&{background:i.neutralLighter}],":focus-within":[!r&&{background:i.themePrimary,color:i.white}]})[Yt]={border:"1px solid "+(n?"WindowFrame":"WindowText")},l)},r&&{selectors:((l={})[Yt]={borderColor:"GrayText"},l)},n&&!r&&[e.isSelected],t],text:[e.text,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:30,margin:"0 8px"},r&&{selectors:((t={})[Yt]={color:"GrayText"},t)}],close:[e.close,{color:i.neutralSecondary,width:30,height:"100%",flex:"0 0 auto",borderRadius:Pn(o)?s.roundedCorner2+" 0 0 "+s.roundedCorner2:"0 "+s.roundedCorner2+" "+s.roundedCorner2+" 0",selectors:{":hover":{background:i.neutralQuaternaryAlt,color:i.neutralPrimary},":focus":{color:i.white,background:i.themePrimary},":focus:hover":{color:i.white,background:i.themeDark},":active":{color:i.white,backgroundColor:i.themeDark}}},r&&{selectors:((r={})["."+Ku.msButtonIcon]={color:i.neutralSecondary},r)}]}},void 0,{scope:"TagItem"}),jk={suggestionTextOverflow:"ms-TagItem-TextOverflow"},qk=Fn(),Yk=function(e){var t=e.styles,o=e.theme,e=e.children,o=qk(t,{theme:o});return gt.createElement("div",{className:o.suggestionTextOverflow}," ",e," ")},Zk=In(Yk,function(e){var t=e.className,e=e.theme;return{suggestionTextOverflow:[zo(jk,e).suggestionTextOverflow,{overflow:"hidden",textOverflow:"ellipsis",maxWidth:"60vw",padding:"6px 12px 7px",whiteSpace:"nowrap"},t]}},void 0,{scope:"TagItemSuggestion"}),Xk=(l(Jk,Hk=lk),Jk.defaultProps={onRenderItem:function(e){return gt.createElement(Uk,ht({},e),e.item.name)},onRenderSuggestionsItem:function(e){return gt.createElement(Zk,null,e.name)}},Jk),Qk=In(Xk,_k,void 0,{scope:"TagPicker"});function Jk(e){e=Hk.call(this,e)||this;return vi(e),e}function $k(e,t){var o,n=gt.useRef({ref:((o=function(e){n.ref.current!==e&&(n.cleanup&&(n.cleanup(),n.cleanup=void 0),null!==(n.ref.current=e)&&(n.cleanup=n.callback(e)))}).current=t=void 0===t?null:t,o),callback:e}).current;return n.callback=e,n.ref}function ew(i,s){var a={links:[],keyToIndexMapping:{},keyToTabIdMapping:{}};return gt.Children.forEach(gt.Children.toArray(i.children),function(e,t){var o,n,r;tw(e)?(n=(o=e.props).linkText,r=mt(o,["linkText"]),o=e.props.itemKey||t.toString(),a.links.push(ht(ht({headerText:n},r),{itemKey:o})),a.keyToIndexMapping[o]=t,a.keyToTabIdMapping[o]=(n=s,r=t,(t=i).getTabId?t.getTabId(o,r):n+"-Tab"+r)):e&&Xo("The children of a Pivot component must be of type PivotItem to be rendered.")}),a}function tw(e){return gt.isValidElement(e)&&(null===(e=e.type)||void 0===e?void 0:e.name)===nw.name}var ow,nw=(l(sw,ow=gt.Component),sw.prototype.render=function(){return gt.createElement("div",ht({},ur(this.props,cr)),this.props.children)},sw),rw=Fn(),iw=gt.forwardRef(function(r,e){var t=gt.useRef(null),o=gt.useRef(null),n=su("Pivot"),i=Ah(r.selectedKey,r.defaultSelectedKey),s=i[0],a=i[1],l=r.componentRef,c=r.theme,u=r.linkSize,d=r.linkFormat,p=r.overflowBehavior,h=r.overflowAriaLabel,m=r.focusZoneProps,g={"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"]},i=ur(r,cr,["aria-label","aria-labelledby"]),f=ew(r,n);gt.useImperativeHandle(l,function(){return{focus:function(){var e;null===(e=t.current)||void 0===e||e.focus()}}});function v(e){if(!e)return null;var t=e.itemCount,o=e.itemIcon,n=e.headerText;return gt.createElement("span",{className:D.linkContent},void 0!==o&>.createElement("span",{className:D.icon},gt.createElement(Vr,{iconName:o})),void 0!==n&>.createElement("span",{className:D.text}," ",e.headerText),void 0!==t&>.createElement("span",{className:D.count}," (",t,")"))}function b(e,t,o,n){var r=t.itemKey,i=t.headerButtonProps,s=t.onRenderItemLink,a=e.keyToTabIdMapping[r],e=o===r,o=s?s(t,v):v(t),s=t.headerText||"";return s+=t.itemCount?" ("+t.itemCount+")":"",s+=t.itemIcon?" xx":"",gt.createElement(dp,ht({},i,{id:a,key:r,className:Pr(n,e&&D.linkIsSelected),onClick:function(e){return t=r,(e=e).preventDefault(),void I(t,e);var t},onKeyDown:function(e){var t;t=r,(e=e).which===Tn.enter&&(e.preventDefault(),I(t))},"aria-label":t.ariaLabel,role:t.role||"tab","aria-selected":e,name:t.headerText,keytipProps:t.keytipProps,"data-content":s}),o)}var y,C,_,S,x,k,w,I=function(e,t){a(e),f=ew(r,n),r.onLinkClick&&0<=f.keyToIndexMapping[e]&&(e=f.keyToIndexMapping[e],e=gt.Children.toArray(r.children)[e],tw(e)&&r.onLinkClick(e,t)),null===(t=o.current)||void 0===t||t.dismissMenu()},D=rw(r.styles,{theme:c,linkSize:u,linkFormat:d}),T=null===s||void 0!==s&&void 0!==f.keyToIndexMapping[s]?s:f.links.length?f.links[0].itemKey:void 0,d=T?f.keyToIndexMapping[T]:0,s=f.links.map(function(e){return b(f,e,T,D.link)}),E=gt.useMemo(function(){return{items:[],alignTargetEdge:!0,directionalHint:Pa.bottomRightEdge}},[]),d=(d={onOverflowItemsChanged:function(o,e){e.forEach(function(e){var t=e.ele,e=e.isOverflowing;return t.dataset.isOverflowing=""+e}),E.items=f.links.slice(o).filter(function(e){return e.itemKey!==T}).map(function(e,t){return{key:e.itemKey||""+(o+t),onRender:function(){return b(f,e,T,D.linkInMenu)}}})},rtl:Pn(c),pinnedIndex:d},y=d.onOverflowItemsChanged,C=d.rtl,_=d.pinnedIndex,S=gt.useRef(),x=gt.useRef(),k=$k(function(t){var e=function(e,t){if("undefined"!=typeof ResizeObserver){var o=new ResizeObserver(t);return Array.isArray(e)?e.forEach(function(e){return o.observe(e)}):o.observe(e),function(){return o.disconnect()}}function n(){return t(void 0)}var r=qe(Array.isArray(e)?e[0]:e);if(!r)return function(){};var i=r.requestAnimationFrame(n);return r.addEventListener("resize",n,!1),function(){r.cancelAnimationFrame(i),r.removeEventListener("resize",n,!1)}}(t,function(e){x.current=e?e[0].contentRect.width:t.clientWidth,S.current&&S.current()});return function(){e(),x.current=void 0}}),w=$k(function(e){return k(e.parentElement),function(){return k(null)}}),_r(function(){var e=k.current,n=w.current;if(e&&n){for(var r=[],t=0;t<e.children.length;t++){var o=e.children[t];o instanceof HTMLElement&&o!==n&&r.push(o)}var i=[],s=0;S.current=function(){var e=x.current;if(void 0!==e){for(var t,o=r.length-1;0<=o;o--)if(void 0===i[o]&&(t=C?e-r[o].offsetLeft:r[o].offsetLeft+r[o].offsetWidth,o+1<r.length&&o+1===_&&(s=i[o+1]-t),o===r.length-2&&(s+=n.offsetWidth),i[o]=t+s),e>i[o])return void u(o+1);u(0)}};var a,l,c=r.length,u=function(o){c!==o&&y(c=o,r.map(function(e,t){return{ele:e,isOverflowing:o<=t&&t!==_}}))},d=void 0;return void 0===x.current||(a=qe(e))&&(l=a.requestAnimationFrame(S.current),d=function(){return a.cancelAnimationFrame(l)}),function(){d&&d(),u(r.length),S.current=void 0}}}),w);return gt.createElement("div",ht({ref:e},i),gt.createElement(Zs,ht({componentRef:t,role:"tablist"},g,{direction:Ei.horizontal},m,{className:Pr(D.root,null==m?void 0:m.className)}),s,"menu"===p&>.createElement(dp,{className:Pr(D.link,D.overflowMenuButton),elementRef:d,componentRef:o,menuProps:E,menuIconProps:{iconName:"More",style:{color:"inherit"}},ariaLabel:h})),T&&f.links.map(function(e){return(!0===e.alwaysRender||T===e.itemKey)&&function(e,t){if(r.headersOnly||!e)return null;var o=f.keyToIndexMapping[e],n=f.keyToTabIdMapping[e];return gt.createElement("div",{role:"tabpanel",hidden:!t,key:e,"aria-hidden":!t,"aria-labelledby":n,className:D.itemContainer},gt.Children.toArray(r.children)[o])}(e.itemKey,T===e.itemKey)}))});function sw(e){e=ow.call(this,e)||this;return vi(e),e}iw.displayName="Pivot";function aw(e,t,o){void 0===o&&(o=!1);var n=e.linkSize,r=e.linkFormat,i=(s=e.theme).semanticColors,e=s.fonts,s="large"===n,n="tabs"===r;return[e.medium,{color:i.actionLink,padding:"0 8px",position:"relative",backgroundColor:"transparent",border:0,borderRadius:0,selectors:((r={":hover":{backgroundColor:i.buttonBackgroundHovered,color:i.buttonTextHovered,cursor:"pointer"},":active":{backgroundColor:i.buttonBackgroundPressed,color:i.buttonTextHovered},":focus":{outline:"none"}})["."+go+" &:focus"]={outline:"1px solid "+i.focusBorder},r["."+go+" &:focus:after"]={content:"attr(data-content)",position:"relative",border:0},r)},!o&&[{display:"inline-block",lineHeight:44,height:44,marginRight:8,textAlign:"center",selectors:{":before":{backgroundColor:"transparent",bottom:0,content:'""',height:2,left:8,position:"absolute",right:8,transition:"left "+we.durationValue2+" "+we.easeFunction2+",\n right "+we.durationValue2+" "+we.easeFunction2},":after":{color:"transparent",content:"attr(data-content)",display:"block",fontWeight:Fe.bold,height:1,overflow:"hidden",visibility:"hidden"}}},s&&{fontSize:e.large.fontSize},n&&[{marginRight:0,height:44,lineHeight:44,backgroundColor:i.buttonBackground,padding:"0 10px",verticalAlign:"top",selectors:((n={":focus":{outlineOffset:"-1px"}})["."+go+" &:focus::before"]={height:"auto",background:"transparent",transition:"none"},n["&:hover, &:focus"]={color:i.buttonTextCheckedHovered},n["&:active, &:hover"]={color:i.primaryButtonText,backgroundColor:i.primaryButtonBackground},n["&."+t.linkIsSelected]={backgroundColor:i.primaryButtonBackground,color:i.primaryButtonText,fontWeight:Fe.regular,selectors:((i={":before":{backgroundColor:"transparent",transition:"none",position:"absolute",top:0,left:0,right:0,bottom:0,content:'""',height:0},":hover":{backgroundColor:i.primaryButtonBackgroundHovered,color:i.primaryButtonText},"&:active":{backgroundColor:i.primaryButtonBackgroundPressed,color:i.primaryButtonText}})[Yt]=ht({fontWeight:Fe.semibold,color:"HighlightText",background:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)},n)}]]]}var lw,cw,uw={count:"ms-Pivot-count",icon:"ms-Pivot-icon",linkIsSelected:"is-selected",link:"ms-Pivot-link",linkContent:"ms-Pivot-linkContent",root:"ms-Pivot",rootIsLarge:"ms-Pivot--large",rootIsTabs:"ms-Pivot--tabs",text:"ms-Pivot-text",linkInMenu:"ms-Pivot-linkInMenu",overflowMenuButton:"ms-Pivot-overflowMenuButton"},dw=In(iw,function(e){var t=e.className,o=e.linkSize,n=e.linkFormat,r=e.theme,i=r.semanticColors,s=r.fonts,r=zo(uw,r);return{root:[r.root,s.medium,Uo,{position:"relative",color:i.link,whiteSpace:"nowrap"},"large"===o&&r.rootIsLarge,"tabs"===n&&r.rootIsTabs,t],itemContainer:{selectors:{"&[hidden]":{display:"none"}}},link:$e($e([r.link],aw(e,r)),[((t={})["&[data-is-overflowing='true']"]={display:"none"},t)]),overflowMenuButton:[r.overflowMenuButton,((t={visibility:"hidden",position:"absolute",right:0})["."+r.link+"[data-is-overflowing='true'] ~ &"]={visibility:"visible",position:"relative"},t)],linkInMenu:$e($e([r.linkInMenu],aw(e,r,!0)),[{textAlign:"left",width:"100%",height:36,lineHeight:36}]),linkIsSelected:[r.link,r.linkIsSelected,{fontWeight:Fe.semibold,selectors:((i={":before":{backgroundColor:i.inputBackgroundChecked,selectors:((i={})[Yt]={backgroundColor:"Highlight"},i)},":hover::before":{left:0,right:0}})[Yt]={color:"Highlight"},i)}],linkContent:[r.linkContent,{flex:"0 1 100%",selectors:{"& > * ":{marginLeft:4},"& > *:first-child":{marginLeft:0}}}],text:[r.text,{display:"inline-block",verticalAlign:"top"}],count:[r.count,{display:"inline-block",verticalAlign:"top"}],icon:r.icon}},void 0,{scope:"Pivot"});(W=lw=lw||{}).links="links",W.tabs="tabs",(t=cw=cw||{}).normal="normal",t.large="large";var pw,hw,mw=Fn(),gw=(l(_w,hw=gt.Component),_w.prototype.render=function(){var e=this.props,t=e.barHeight,o=e.className,n=e.label,r=void 0===n?this.props.title:n,i=e.description,s=e.styles,a=e.theme,l=e.progressHidden,n=e.onRenderProgress,e=void 0===n?this._onRenderProgress:n,n="number"==typeof this.props.percentComplete?Math.min(100,Math.max(0,100*this.props.percentComplete)):void 0,t=mw(s,{theme:a,className:o,barHeight:t,indeterminate:void 0===n});return gt.createElement("div",{className:t.root},r?gt.createElement("div",{id:this._labelId,className:t.itemName},r):null,l?null:e(ht(ht({},this.props),{percentComplete:n}),this._onRenderProgress),i?gt.createElement("div",{id:this._descriptionId,className:t.itemDescription},i):null)},_w.defaultProps={label:"",description:"",width:180},_w),fw={root:"ms-ProgressIndicator",itemName:"ms-ProgressIndicator-itemName",itemDescription:"ms-ProgressIndicator-itemDescription",itemProgress:"ms-ProgressIndicator-itemProgress",progressTrack:"ms-ProgressIndicator-progressTrack",progressBar:"ms-ProgressIndicator-progressBar"},vw=Ao(function(){return O({"0%":{left:"-30%"},"100%":{left:"100%"}})}),bw=Ao(function(){return O({"100%":{right:"-30%"},"0%":{right:"100%"}})}),yw=In(gw,function(e){var t=Pn(e.theme),o=e.className,n=e.indeterminate,r=e.theme,i=e.barHeight,s=void 0===i?2:i,a=r.palette,l=r.semanticColors,e=r.fonts,i=zo(fw,r),r=a.neutralLight;return{root:[i.root,e.medium,o],itemName:[i.itemName,jo,{color:l.bodyText,paddingTop:4,lineHeight:20}],itemDescription:[i.itemDescription,{color:l.bodySubtext,fontSize:e.small.fontSize,lineHeight:18}],itemProgress:[i.itemProgress,{position:"relative",overflow:"hidden",height:s,padding:"8px 0"}],progressTrack:[i.progressTrack,{position:"absolute",width:"100%",height:s,backgroundColor:r,selectors:((e={})[Yt]={borderBottom:"1px solid WindowText"},e)}],progressBar:[{backgroundColor:a.themePrimary,height:s,position:"absolute",transition:"width .3s ease",width:0,selectors:((s={})[Yt]=ht({backgroundColor:"highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),s)},n?{position:"absolute",minWidth:"33%",background:"linear-gradient(to right, "+r+" 0%, "+a.themePrimary+" 50%, "+r+" 100%)",animation:(t?bw:vw)()+" 3s infinite",selectors:((t={})[Yt]={background:"highlight"},t)}:{transition:"width .15s linear"},i.progressBar]}},void 0,{scope:"ProgressIndicator"}),Cw={root:"ms-RatingStar-root",rootIsSmall:"ms-RatingStar-root--small",rootIsLarge:"ms-RatingStar-root--large",ratingStar:"ms-RatingStar-container",ratingStarBack:"ms-RatingStar-back",ratingStarFront:"ms-RatingStar-front",ratingButton:"ms-Rating-button",ratingStarIsSmall:"ms-Rating--small",ratingStartIsLarge:"ms-Rating--large",labelText:"ms-Rating-labelText",ratingFocusZone:"ms-Rating-focuszone"};function _w(e){var c=hw.call(this,e)||this;c._onRenderProgress=function(e){var t=c.props,o=t.ariaValueText,n=t.barHeight,r=t.className,i=t.description,s=t.label,a=void 0===s?c.props.title:s,l=t.styles,s=t.theme,t="number"==typeof c.props.percentComplete?Math.min(100,Math.max(0,100*c.props.percentComplete)):void 0,l=mw(l,{theme:s,className:r,barHeight:n,indeterminate:void 0===t}),s={width:void 0!==t?t+"%":void 0,transition:void 0!==t&&t<.01?"none":void 0},r=void 0!==t?0:void 0,n=void 0!==t?100:void 0,t=void 0!==t?Math.floor(t):void 0;return gt.createElement("div",{className:l.itemProgress},gt.createElement("div",{className:l.progressTrack}),gt.createElement("div",{className:l.progressBar,style:s,role:"progressbar","aria-describedby":i?c._descriptionId:void 0,"aria-labelledby":a?c._labelId:void 0,"aria-valuemin":r,"aria-valuemax":n,"aria-valuenow":t,"aria-valuetext":o}))};e=Ss("progress-indicator");return c._labelId=e+"-label",c._descriptionId=e+"-description",c}function Sw(e,t){return{color:e,selectors:((e={})[Yt]={color:t},e)}}(K=pw=pw||{})[K.Small=0]="Small",K[K.Large=1]="Large";function xw(e){return gt.createElement("div",{className:e.classNames.ratingStar},gt.createElement(Vr,{className:e.classNames.ratingStarBack,iconName:0===e.fillPercentage||100===e.fillPercentage?e.icon:e.unselectedIcon}),!e.disabled&>.createElement(Vr,{className:e.classNames.ratingStarFront,iconName:e.icon,style:{width:e.fillPercentage+"%"}}))}function kw(e,t){return e+"-star-"+(t-1)}var ww=Fn(),Iw=gt.forwardRef(function(e,t){var o,i=su("Rating"),s=su("RatingLabel"),n=e.ariaLabel,a=e.ariaLabelFormat,l=e.disabled,r=e.getAriaLabel,c=e.styles,u=e.min,d=void 0===u?e.allowZeroStars?0:1:u,p=e.max,h=void 0===p?5:p,m=e.readOnly,g=e.size,u=e.theme,p=e.icon,f=void 0===p?"FavoriteStarFill":p,p=e.unselectedIcon,v=void 0===p?"FavoriteStar":p,b=e.onRenderStar,p=Math.max(d,0),d=Ah(e.rating,e.defaultRating,e.onChange),y=d[0],C=d[1],_=(d=h,Math.min(Math.max(null!=y?y:p,p),d));d=e.componentRef,o=_,gt.useImperativeHandle(d,function(){return{rating:o}},[o]);for(var e=ur(e,cr),S=ww(c,{disabled:l,readOnly:m,theme:u}),u=null==r?void 0:r(_,h),r=n||u,x=[],k=1;k<=h;k++)!function(t){var e,o,n,r=(r=t,e=_,o=Math.ceil(e),n=100,r===e?n=100:r===o?n=e%1*100:o<r&&(n=0),n),n=function(e){void 0!==y&&Math.ceil(y)===t||C(t,e)};x.push(gt.createElement("button",ht({className:Pr(S.ratingButton,g===pw.Large?S.ratingStarIsLarge:S.ratingStarIsSmall),id:kw(i,t),key:t},t===Math.ceil(_)&&{"data-is-current":!0},{onFocus:n,onClick:n,disabled:!(!l&&!m),role:"radio","aria-hidden":m?"true":void 0,type:"button","aria-checked":t===Math.ceil(_)}),gt.createElement("span",{id:s+"-"+t,className:S.labelText},$p(a||"",t,h)),(r={fillPercentage:r,disabled:l,classNames:S,icon:0<r?f:v,starNum:t,unselectedIcon:v},b?b(r):gt.createElement(xw,ht({},r)))))}(k);n=g===pw.Large?S.rootIsLarge:S.rootIsSmall;return gt.createElement("div",ht({ref:t,className:Pr("ms-Rating-star",S.root,n),"aria-label":m?void 0:r,id:i,role:m?void 0:"radiogroup"},e),gt.createElement(Zs,ht({direction:Ei.bidirectional,className:Pr(S.ratingFocusZone,n),defaultActiveElement:"#"+kw(i,Math.ceil(_))},m&&{allowFocusRoot:!0,disabled:!0,role:"textbox","aria-label":u,"aria-readonly":!0,"data-is-focusable":!0,tabIndex:0}),x))});Iw.displayName="RatingBase";var Dw,Tw=In(Iw,function(e){var t=e.disabled,o=e.readOnly,n=e.theme,r=n.semanticColors,i=n.palette,s=zo(Cw,n),a=i.neutralSecondary,l=i.themePrimary,e=i.themeDark,i=i.neutralPrimary,r=r.disabledBodySubtext;return{root:[s.root,n.fonts.medium,!t&&!o&&{selectors:{"&:hover":{selectors:{".ms-RatingStar-back":Sw(i,"Highlight")}}}}],rootIsSmall:[s.rootIsSmall,{height:"32px"}],rootIsLarge:[s.rootIsLarge,{height:"36px"}],ratingStar:[s.ratingStar,{display:"inline-block",position:"relative",height:"inherit"}],ratingStarBack:[s.ratingStarBack,{color:a,width:"100%"},t&&Sw(r,"GrayText")],ratingStarFront:[s.ratingStarFront,{position:"absolute",height:"100 %",left:"0",top:"0",textAlign:"center",verticalAlign:"middle",overflow:"hidden"},Sw(i,"Highlight")],ratingButton:[bo(n),s.ratingButton,{backgroundColor:"transparent",padding:"8px 2px",boxSizing:"content-box",margin:"0px",border:"none",cursor:"pointer",selectors:{"&:disabled":{cursor:"default"},"&[disabled]":{cursor:"default"}}},!t&&!o&&{selectors:{"&:hover ~ .ms-Rating-button":{selectors:{".ms-RatingStar-back":Sw(a,"WindowText"),".ms-RatingStar-front":Sw(a,"WindowText")}},"&:hover":{selectors:{".ms-RatingStar-back":{color:l},".ms-RatingStar-front":{color:e}}}}},t&&{cursor:"default"}],ratingStarIsSmall:[s.ratingStarIsSmall,{fontSize:"16px",lineHeight:"16px",height:"16px"}],ratingStarIsLarge:[s.ratingStartIsLarge,{fontSize:"20px",lineHeight:"20px",height:"20px"}],labelText:[s.labelText,So],ratingFocusZone:[bo(n),s.ratingFocusZone,{display:"inline-block"}]}},void 0,{scope:"Rating"}),Ew={root:"ms-ScrollablePane",contentContainer:"ms-ScrollablePane--contentContainer"},Pw={auto:"auto",always:"always"},Rw=gt.createContext({scrollablePane:void 0}),Mw=Fn(),Nw=(l(Ww,Dw=gt.Component),Object.defineProperty(Ww.prototype,"root",{get:function(){return this._root.current},enumerable:!1,configurable:!0}),Object.defineProperty(Ww.prototype,"stickyAbove",{get:function(){return this._stickyAboveRef.current},enumerable:!1,configurable:!0}),Object.defineProperty(Ww.prototype,"stickyBelow",{get:function(){return this._stickyBelowRef.current},enumerable:!1,configurable:!0}),Object.defineProperty(Ww.prototype,"contentContainer",{get:function(){return this._contentContainer.current},enumerable:!1,configurable:!0}),Ww.prototype.componentDidMount=function(){var n=this,e=this.props.initialScrollPosition;this._events.on(this.contentContainer,"scroll",this._onScroll),this._events.on(window,"resize",this._onWindowResize),this.contentContainer&&e&&(this.contentContainer.scrollTop=e),this.setStickiesDistanceFromTop(),this._stickies.forEach(function(e){n.sortSticky(e)}),this.notifySubscribers(),"MutationObserver"in window&&(this._mutationObserver=new MutationObserver(function(t){var o,e=n._getScrollbarHeight();e!==n.state.scrollbarHeight&&n.setState({scrollbarHeight:e}),n.notifySubscribers(),t.some(function(e){return null!==this.stickyAbove&&null!==this.stickyBelow&&(this.stickyAbove.contains(e.target)||this.stickyBelow.contains(e.target))}.bind(n))?n.updateStickyRefHeights():(o=[],n._stickies.forEach(function(e){e.root&&e.root.contains(t[0].target)&&o.push(e)}),o.length&&o.forEach(function(e){e.forceUpdate()}))}),this.root&&this._mutationObserver.observe(this.root,{childList:!0,attributes:!0,subtree:!0,characterData:!0}))},Ww.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose(),this._mutationObserver&&this._mutationObserver.disconnect()},Ww.prototype.shouldComponentUpdate=function(e,t){return this.props.children!==e.children||this.props.initialScrollPosition!==e.initialScrollPosition||this.props.className!==e.className||this.state.stickyTopHeight!==t.stickyTopHeight||this.state.stickyBottomHeight!==t.stickyBottomHeight||this.state.scrollbarWidth!==t.scrollbarWidth||this.state.scrollbarHeight!==t.scrollbarHeight},Ww.prototype.componentDidUpdate=function(e,t){var o=this.props.initialScrollPosition;this.contentContainer&&"number"==typeof o&&e.initialScrollPosition!==o&&(this.contentContainer.scrollTop=o),t.stickyTopHeight===this.state.stickyTopHeight&&t.stickyBottomHeight===this.state.stickyBottomHeight||this.notifySubscribers(),this._async.setTimeout(this._onWindowResize,0)},Ww.prototype.render=function(){var e=this.props,t=e.className,o=e.scrollContainerFocus,n=e.scrollContainerAriaLabel,r=e.theme,i=e.styles,s=this.state,e=s.stickyTopHeight,s=s.stickyBottomHeight,t=Mw(i,{theme:r,className:t,scrollbarVisibility:this.props.scrollbarVisibility}),n=o?{role:"group",tabIndex:0,"aria-label":n}:{};return gt.createElement("div",ht({},ur(this.props,cr),{ref:this._root,className:t.root}),gt.createElement("div",{ref:this._stickyAboveRef,className:t.stickyAbove,style:this._getStickyContainerStyle(e,!0)}),gt.createElement("div",ht({ref:this._contentContainer},n,{className:t.contentContainer,"data-is-scrollable":!0}),gt.createElement(Rw.Provider,{value:this._getScrollablePaneContext()},this.props.children)),gt.createElement("div",{className:t.stickyBelow,style:this._getStickyContainerStyle(s,!1)},gt.createElement("div",{ref:this._stickyBelowRef,className:t.stickyBelowItems})))},Ww.prototype.setStickiesDistanceFromTop=function(){var t=this;this.contentContainer&&this._stickies.forEach(function(e){e.setDistanceFromTop(t.contentContainer)})},Ww.prototype.forceLayoutUpdate=function(){this._onWindowResize()},Ww.prototype._checkStickyStatus=function(e){this.stickyAbove&&this.stickyBelow&&this.contentContainer&&e.nonStickyContent&&(e.state.isStickyTop||e.state.isStickyBottom?(e.state.isStickyTop&&!this.stickyAbove.contains(e.nonStickyContent)&&e.stickyContentTop&&e.addSticky(e.stickyContentTop),e.state.isStickyBottom&&!this.stickyBelow.contains(e.nonStickyContent)&&e.stickyContentBottom&&e.addSticky(e.stickyContentBottom)):this.contentContainer.contains(e.nonStickyContent)||e.resetSticky())},Ww.prototype._getScrollbarWidth=function(){var e=this.contentContainer;return e?e.offsetWidth-e.clientWidth:0},Ww.prototype._getScrollbarHeight=function(){var e=this.contentContainer;return e?e.offsetHeight-e.clientHeight:0},Ww),Bw=In(Nw,function(e){var t=e.className,o=e.theme,n=zo(Ew,o),r={position:"absolute",pointerEvents:"none"},i={position:"absolute",top:0,right:0,bottom:0,left:0,WebkitOverflowScrolling:"touch"};return{root:[n.root,o.fonts.medium,i,t],contentContainer:[n.contentContainer,{overflowY:"always"===e.scrollbarVisibility?"scroll":"auto"},i],stickyAbove:[{top:0,zIndex:1,selectors:((i={})[Yt]={borderBottom:"1px solid WindowText"},i)},r],stickyBelow:[{bottom:0,selectors:((i={})[Yt]={borderTop:"1px solid WindowText"},i)},r],stickyBelowItems:[{bottom:0},r,{width:"100%"}]}},void 0,{scope:"ScrollablePane"}),Fw="SearchBox",Aw={root:{height:"auto"},icon:{fontSize:"12px"}},Lw={iconName:"Clear"},Hw={ariaLabel:"Clear text"},Ow=Fn(),zw=gt.forwardRef(function(o,e){var t,n,r=o.ariaLabel,i=o.className,s=o.defaultValue,a=void 0===s?"":s,l=o.disabled,c=o.underlined,u=o.styles,d=o.labelText,p=o.placeholder,h=void 0===p?d:p,m=o.theme,g=o.clearButtonProps,f=void 0===g?Hw:g,v=o.disableAnimation,b=void 0!==v&&v,s=o.showIcon,d=void 0!==s&&s,y=o.onClear,C=o.onBlur,_=o.onEscape,S=o.onSearch,x=o.onKeyDown,p=o.iconProps,g=o.role,k=o.onChange,w=o.onChanged,v=gt.useState(!1),s=v[0],I=v[1],D=gt.useRef(),v=Ah(o.value,a,function(e,t){e&&e.timeStamp===D.current||(D.current=null==e?void 0:e.timeStamp,null==k||k(e,t),null==w||w(t))}),a=v[0],T=v[1],E=String(a),a=gt.useRef(null),P=gt.useRef(null),a=Sr(a,e),e=su(Fw,o.id),R=f.onClick,u=Ow(u,{theme:m,className:i,underlined:c,hasFocus:s,disabled:l,hasInput:0<E.length,disableAnimation:b,showIcon:d}),m=ur(o,Zn,["className","placeholder","onFocus","onBlur","value","role"]),M=gt.useCallback(function(e){var t;null==y||y(e),e.defaultPrevented||(T(""),null===(t=P.current)||void 0===t||t.focus(),e.stopPropagation(),e.preventDefault())},[y,T]),i=gt.useCallback(function(e){null==R||R(e),e.defaultPrevented||M(e)},[R,M]),c=gt.useCallback(function(e){I(!1),null==C||C(e)},[C]),b=function(e){T(e.target.value,e)};return d=o.componentRef,t=P,n=s,gt.useImperativeHandle(d,function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()},hasFocus:function(){return n}}},[t,n]),gt.createElement("div",{role:g,ref:a,className:u.root,onFocusCapture:function(e){var t;I(!0),null===(t=o.onFocus)||void 0===t||t.call(o,e)}},gt.createElement("div",{className:u.iconContainer,onClick:function(){P.current&&(P.current.focus(),P.current.selectionStart=P.current.selectionEnd=0)},"aria-hidden":!0},gt.createElement(Vr,ht({iconName:"Search"},p,{className:u.icon}))),gt.createElement("input",ht({},m,{id:e,className:u.field,placeholder:h,onChange:b,onInput:b,onBlur:c,onKeyDown:function(e){switch(e.which){case Tn.escape:null==_||_(e),E&&!e.defaultPrevented&&M(e);break;case Tn.enter:S&&(S(E),e.preventDefault(),e.stopPropagation());break;default:null==x||x(e),e.defaultPrevented&&e.stopPropagation()}},value:E,disabled:l,role:"searchbox","aria-label":r,ref:P})),0<E.length&>.createElement("div",{className:u.clearButton},gt.createElement(id,ht({onBlur:c,styles:Aw,iconProps:Lw},f,{onClick:i}))))});function Ww(e){var u=Dw.call(this,e)||this;return u._root=gt.createRef(),u._stickyAboveRef=gt.createRef(),u._stickyBelowRef=gt.createRef(),u._contentContainer=gt.createRef(),u.subscribe=function(e){u._subscribers.add(e)},u.unsubscribe=function(e){u._subscribers.delete(e)},u.addSticky=function(e){u._stickies.add(e),u.contentContainer&&(e.setDistanceFromTop(u.contentContainer),u.sortSticky(e))},u.removeSticky=function(e){u._stickies.delete(e),u._removeStickyFromContainers(e),u.notifySubscribers()},u.sortSticky=function(e,t){u.stickyAbove&&u.stickyBelow&&(t&&u._removeStickyFromContainers(e),e.canStickyTop&&e.stickyContentTop&&u._addToStickyContainer(e,u.stickyAbove,e.stickyContentTop),e.canStickyBottom&&e.stickyContentBottom&&u._addToStickyContainer(e,u.stickyBelow,e.stickyContentBottom))},u.updateStickyRefHeights=function(){var e=u._stickies,n=0,r=0;e.forEach(function(e){var t=e.state,o=t.isStickyTop,t=t.isStickyBottom;e.nonStickyContent&&(o&&(n+=e.nonStickyContent.offsetHeight),t&&(r+=e.nonStickyContent.offsetHeight),u._checkStickyStatus(e))}),u.setState({stickyTopHeight:n,stickyBottomHeight:r})},u.notifySubscribers=function(){u.contentContainer&&u._subscribers.forEach(function(e){e(u.contentContainer,u.stickyBelow)})},u.getScrollPosition=function(){return u.contentContainer?u.contentContainer.scrollTop:0},u.syncScrollSticky=function(e){e&&u.contentContainer&&e.syncScroll(u.contentContainer)},u._getScrollablePaneContext=function(){return{scrollablePane:{subscribe:u.subscribe,unsubscribe:u.unsubscribe,addSticky:u.addSticky,removeSticky:u.removeSticky,updateStickyRefHeights:u.updateStickyRefHeights,sortSticky:u.sortSticky,notifySubscribers:u.notifySubscribers,syncScrollSticky:u.syncScrollSticky}}},u._addToStickyContainer=function(t,o,e){if(o.children.length){if(!o.contains(e)){var n=[].slice.call(o.children),r=[];u._stickies.forEach(function(e){(o===u.stickyAbove&&t.canStickyTop||t.canStickyBottom)&&r.push(e)});for(var i=void 0,s=0,a=r.sort(function(e,t){return(e.state.distanceFromTop||0)-(t.state.distanceFromTop||0)}).filter(function(e){e=o===u.stickyAbove?e.stickyContentTop:e.stickyContentBottom;return!!e&&-1<n.indexOf(e)});s<a.length;s++){var l=a[s];if((l.state.distanceFromTop||0)>=(t.state.distanceFromTop||0)){i=l;break}}var c=null;i&&(c=o===u.stickyAbove?i.stickyContentTop:i.stickyContentBottom),o.insertBefore(e,c)}}else o.appendChild(e)},u._removeStickyFromContainers=function(e){u.stickyAbove&&e.stickyContentTop&&u.stickyAbove.contains(e.stickyContentTop)&&u.stickyAbove.removeChild(e.stickyContentTop),u.stickyBelow&&e.stickyContentBottom&&u.stickyBelow.contains(e.stickyContentBottom)&&u.stickyBelow.removeChild(e.stickyContentBottom)},u._onWindowResize=function(){var e=u._getScrollbarWidth(),t=u._getScrollbarHeight();u.setState({scrollbarWidth:e,scrollbarHeight:t}),u.notifySubscribers()},u._getStickyContainerStyle=function(e,t){return ht(ht({height:e},Pn(u.props.theme)?{right:"0",left:(u.state.scrollbarWidth||u._getScrollbarWidth()||0)+"px"}:{left:"0",right:(u.state.scrollbarWidth||u._getScrollbarWidth()||0)+"px"}),t?{top:"0"}:{bottom:(u.state.scrollbarHeight||u._getScrollbarHeight()||0)+"px"})},u._onScroll=function(){var t=u.contentContainer;t&&u._stickies.forEach(function(e){e.syncScroll(t)}),u._notifyThrottled()},u._subscribers=new Set,u._stickies=new Set,vi(u),u._async=new xi(u),u._events=new va(u),u.state={stickyTopHeight:0,stickyBottomHeight:0,scrollbarWidth:0,scrollbarHeight:0},u._notifyThrottled=u._async.throttle(u.notifySubscribers,50),u}zw.displayName=Fw;var Vw,Kw={root:"ms-SearchBox",iconContainer:"ms-SearchBox-iconContainer",icon:"ms-SearchBox-icon",clearButton:"ms-SearchBox-clearButton",field:"ms-SearchBox-field"},Gw=In(zw,function(e){var t=e.theme,o=e.underlined,n=e.disabled,r=e.hasFocus,i=e.className,s=e.hasInput,a=e.disableAnimation,l=e.showIcon,c=t.palette,u=t.fonts,d=t.semanticColors,p=t.effects,h=zo(Kw,t),m={color:d.inputPlaceholderText,opacity:1},g=c.neutralSecondary,f=c.neutralPrimary,v=c.neutralLighter,b=c.neutralLighter,e=c.neutralLighter;return{root:[h.root,u.medium,Uo,{color:d.inputText,backgroundColor:d.inputBackground,display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"stretch",padding:"1px 0 1px 4px",borderRadius:p.roundedCorner2,border:"1px solid "+d.inputBorder,height:32,selectors:((c={})[Yt]={borderColor:"WindowText"},c[":hover"]={borderColor:d.inputBorderHovered,selectors:((u={})[Yt]={borderColor:"Highlight"},u)},c[":hover ."+h.iconContainer]={color:d.inputIconHovered},c)},!r&&s&&{selectors:((c={})[":hover ."+h.iconContainer]={width:4},c[":hover ."+h.icon]={opacity:0,pointerEvents:"none"},c)},r&&["is-active",{position:"relative"},_o(d.inputFocusBorderAlt,o?0:p.roundedCorner2,o?"borderBottom":"border")],l&&[{selectors:((p={})[":hover ."+h.iconContainer]={width:32},p[":hover ."+h.icon]={opacity:1},p)}],n&&["is-disabled",{borderColor:v,backgroundColor:e,pointerEvents:"none",cursor:"default",selectors:((e={})[Yt]={borderColor:"GrayText"},e)}],o&&["is-underlined",{borderWidth:"0 0 1px 0",borderRadius:0,padding:"1px 0 1px 8px"}],o&&n&&{backgroundColor:"transparent"},s&&"can-clear",i],iconContainer:[h.iconContainer,{display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,fontSize:16,width:32,textAlign:"center",color:d.inputIcon,cursor:"text"},r&&{width:4},n&&{color:d.inputIconDisabled},!a&&{transition:"width "+we.durationValue1},l&&r&&{width:32}],icon:[h.icon,{opacity:1},r&&{opacity:0,pointerEvents:"none"},!a&&{transition:"opacity "+we.durationValue1+" 0s"},l&&r&&{opacity:1}],clearButton:[h.clearButton,{display:"flex",flexDirection:"row",alignItems:"stretch",cursor:"pointer",flexBasis:"32px",flexShrink:0,padding:0,margin:"-1px 0px",selectors:{"&:hover .ms-Button":{backgroundColor:b},"&:hover .ms-Button-icon":{color:f},".ms-Button":{borderRadius:Pn(t)?"1px 0 0 1px":"0 1px 1px 0"},".ms-Button-icon":{color:g}}}],field:[h.field,Uo,Zo(m),{backgroundColor:"transparent",border:"none",outline:"none",fontWeight:"inherit",fontFamily:"inherit",fontSize:"inherit",color:d.inputText,flex:"1 1 0px",minWidth:"0px",overflow:"hidden",textOverflow:"ellipsis",paddingBottom:.5,selectors:{"::-ms-clear":{display:"none"}}},n&&{color:d.disabledText}]}},void 0,{scope:"SearchBox"}),Uw=(l(jw,Vw=gt.Component),jw.getDerivedStateFromProps=function(e){return e.selectedItems?{items:e.selectedItems}:null},Object.defineProperty(jw.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),jw.prototype.removeSelectedItems=function(){this.state.items.length&&0<this.selection.getSelectedCount()&&this.removeItems(this.selection.getSelection())},jw.prototype.updateItems=function(e,t){var o=this;this.props.selectedItems?this.onChange(e):this.setState({items:e},function(){o._onSelectedItemsUpdated(e,t)})},jw.prototype.hasSelectedItems=function(){return 0<this.selection.getSelectedCount()},jw.prototype.componentDidUpdate=function(e,t){this.state.items&&this.state.items!==t.items&&this.selection.setItems(this.state.items)},jw.prototype.unselectAll=function(){this.selection.setAllSelected(!1)},jw.prototype.highlightedItems=function(){return this.selection.getSelection()},jw.prototype.componentDidMount=function(){this.selection.setItems(this.state.items)},Object.defineProperty(jw.prototype,"selection",{get:function(){var e;return null!==(e=this.props.selection)&&void 0!==e?e:this._defaultSelection},enumerable:!1,configurable:!0}),jw.prototype.render=function(){return this.renderItems()},jw.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},jw.prototype.copyItems=function(e){if(this.props.onCopyItems){var t=this.props.onCopyItems(e),o=document.createElement("input");document.body.appendChild(o);try{if(o.value=t,o.select(),!document.execCommand("copy"))throw new Error}catch(e){}finally{document.body.removeChild(o)}}},jw.prototype._onSelectedItemsUpdated=function(e,t){this.onChange(e)},jw.prototype._canRemoveItem=function(e){return!this.props.canRemoveItem||this.props.canRemoveItem(e)},jw);function jw(e){var r=Vw.call(this,e)||this;r.addItems=function(e){var t=r.props.onItemSelected?r.props.onItemSelected(e):e,e=t,t=t;t&&t.then?t.then(function(e){e=r.state.items.concat(e);r.updateItems(e)}):(e=r.state.items.concat(e),r.updateItems(e))},r.removeItemAt=function(e){var t=r.state.items;r._canRemoveItem(t[e])&&-1<e&&(r.props.onItemsDeleted&&r.props.onItemsDeleted([t[e]]),e=t.slice(0,e).concat(t.slice(e+1)),r.updateItems(e))},r.removeItem=function(e){e=r.state.items.indexOf(e);r.removeItemAt(e)},r.replaceItem=function(e,t){var o=r.state.items,e=o.indexOf(e);-1<e&&(e=o.slice(0,e).concat(t).concat(o.slice(e+1)),r.updateItems(e))},r.removeItems=function(e){var t=r.state.items,o=e.filter(function(e){return r._canRemoveItem(e)}),n=t.filter(function(e){return-1===o.indexOf(e)}),e=o[0],e=t.indexOf(e);r.props.onItemsDeleted&&r.props.onItemsDeleted(o),r.updateItems(n,e)},r.onCopy=function(e){var t;r.props.onCopyItems&&0<r.selection.getSelectedCount()&&(t=r.selection.getSelection(),r.copyItems(t))},r.renderItems=function(){var o=r.props.removeButtonAriaLabel,n=r.props.onRenderItem;return r.state.items.map(function(e,t){return n({item:e,index:t,key:e.key||t,selected:r.selection.isIndexSelected(t),onRemoveItem:function(){return r.removeItem(e)},onItemChange:r.onItemChange,removeButtonAriaLabel:o,onCopyItem:function(e){return r.copyItems([e])}})})},r.onSelectionChanged=function(){r.forceUpdate()},r.onItemChange=function(e,t){var o=r.state.items;0<=t&&((o=o)[t]=e,r.updateItems(o))},vi(r);e=e.selectedItems||e.defaultSelectedItems||[];return r.state={items:e},r._defaultSelection=new fv({onSelectionChanged:r.onSelectionChanged}),r}Dt([{rawString:".personaContainer_cbad3345{border-radius:15px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:"},{theme:"themeLighterAlt",defaultValue:"#eff6fc"},{rawString:";margin:4px;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;position:relative}.personaContainer_cbad3345::-moz-focus-inner{border:0}.personaContainer_cbad3345{outline:transparent}.personaContainer_cbad3345{position:relative}.ms-Fabric--isFocusVisible .personaContainer_cbad3345:focus:after{-webkit-box-sizing:border-box;box-sizing:border-box;content:'';position:absolute;top:-2px;right:-2px;bottom:-2px;left:-2px;pointer-events:none;border:1px solid "},{theme:"focusBorder",defaultValue:"#605e5c"},{rawString:";border-radius:0}.personaContainer_cbad3345 .ms-Persona-primaryText{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:";font-size:14px;font-weight:400}.personaContainer_cbad3345 .ms-Persona-primaryText.hover_cbad3345{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast:active){.personaContainer_cbad3345 .ms-Persona-primaryText{color:HighlightText}}.personaContainer_cbad3345 .actionButton_cbad3345:hover{background:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.personaContainer_cbad3345 .actionButton_cbad3345 .ms-Button-icon{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast:active){.personaContainer_cbad3345 .actionButton_cbad3345 .ms-Button-icon{color:HighlightText}}.personaContainer_cbad3345:hover{background:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.personaContainer_cbad3345:hover .ms-Persona-primaryText{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:";font-size:14px;font-weight:400}@media screen and (-ms-high-contrast:active){.personaContainer_cbad3345:hover .ms-Persona-primaryText{color:HighlightText}}.personaContainer_cbad3345.personaContainerIsSelected_cbad3345{background:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:"}.personaContainer_cbad3345.personaContainerIsSelected_cbad3345 .ms-Persona-primaryText{color:"},{theme:"white",defaultValue:"#ffffff"},{rawString:"}@media screen and (-ms-high-contrast:active){.personaContainer_cbad3345.personaContainerIsSelected_cbad3345 .ms-Persona-primaryText{color:HighlightText}}.personaContainer_cbad3345.personaContainerIsSelected_cbad3345 .actionButton_cbad3345{color:"},{theme:"white",defaultValue:"#ffffff"},{rawString:"}.personaContainer_cbad3345.personaContainerIsSelected_cbad3345 .actionButton_cbad3345 .ms-Button-icon{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}.personaContainer_cbad3345.personaContainerIsSelected_cbad3345 .actionButton_cbad3345 .ms-Button-icon:hover{background:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast:active){.personaContainer_cbad3345.personaContainerIsSelected_cbad3345 .actionButton_cbad3345 .ms-Button-icon{color:HighlightText}}@media screen and (-ms-high-contrast:active){.personaContainer_cbad3345.personaContainerIsSelected_cbad3345{border-color:Highlight;background:Highlight;-ms-high-contrast-adjust:none}}.personaContainer_cbad3345.validationError_cbad3345 .ms-Persona-primaryText{color:"},{theme:"red",defaultValue:"#e81123"},{rawString:"}.personaContainer_cbad3345.validationError_cbad3345 .ms-Persona-initials{font-size:20px}@media screen and (-ms-high-contrast:active){.personaContainer_cbad3345{border:1px solid WindowText}}.personaContainer_cbad3345 .itemContent_cbad3345{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;min-width:0;max-width:100%}.personaContainer_cbad3345 .removeButton_cbad3345{border-radius:15px;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:33px;height:33px;-ms-flex-preferred-size:32px;flex-basis:32px}.personaContainer_cbad3345 .expandButton_cbad3345{border-radius:15px 0 0 15px;height:33px;width:44px;padding-right:16px;position:inherit;display:-webkit-box;display:-ms-flexbox;display:flex;margin-right:-17px}.personaContainer_cbad3345 .personaWrapper_cbad3345{position:relative;display:inherit}.personaContainer_cbad3345 .personaWrapper_cbad3345 .ms-Persona-details{padding:0 8px}.personaContainer_cbad3345 .personaDetails_cbad3345{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto}.itemContainer_cbad3345{display:inline-block;vertical-align:top}"}]);function qw(e){var t=Wt();if(!t)throw new Error("theme is undefined or null in Editing item getStyles function.");var o=t.semanticColors;return{root:[(t=zo(h1,t)).root,{margin:"4px"}],input:[t.input,{border:"0px",outline:"none",width:"100%",backgroundColor:o.inputBackground,color:o.inputText,selectors:{"::-ms-clear":{display:"none"}}}]}}var Yw,Zw,Xw,Qw,Jw,$w="personaContainer_cbad3345",e1="hover_cbad3345",t1="actionButton_cbad3345",o1="personaContainerIsSelected_cbad3345",n1="validationError_cbad3345",r1="itemContent_cbad3345",i1="removeButton_cbad3345",s1="expandButton_cbad3345",a1="personaWrapper_cbad3345",l1="personaDetails_cbad3345",c1="itemContainer_cbad3345",u1=s,d1=(l(k1,Jw=gt.Component),k1.prototype.render=function(){var e=this.props,t=e.item,o=e.onExpandItem,n=e.onRemoveItem,r=e.removeButtonAriaLabel,i=e.index,s=e.selected,a=Ss();return gt.createElement("div",{ref:this.persona,className:Pr("ms-PickerPersona-container",u1.personaContainer,((e={})["is-selected "+u1.personaContainerIsSelected]=s,e),((e={})["is-invalid "+u1.validationError]=!t.isValid,e)),"data-is-focusable":!0,"data-is-sub-focuszone":!0,"data-selection-index":i,role:"listitem","aria-labelledby":"selectedItemPersona-"+a},gt.createElement("div",{hidden:!t.canExpand||void 0===o},gt.createElement(id,{onClick:this._onClickIconButton(o),iconProps:{iconName:"Add",style:{fontSize:"14px"}},className:Pr("ms-PickerItem-removeButton",u1.expandButton,u1.actionButton),ariaLabel:r})),gt.createElement("div",{className:Pr(u1.personaWrapper)},gt.createElement("div",{className:Pr("ms-PickerItem-content",u1.itemContent),id:"selectedItemPersona-"+a},gt.createElement(XC,ht({},t,{onRenderCoin:this.props.renderPersonaCoin,onRenderPrimaryText:this.props.renderPrimaryText,size:Rr.size32}))),gt.createElement(id,{onClick:this._onClickIconButton(n),iconProps:{iconName:"Cancel",style:{fontSize:"14px"}},className:Pr("ms-PickerItem-removeButton",u1.removeButton,u1.actionButton),ariaLabel:r})))},k1.prototype._onClickIconButton=function(t){return function(e){e.stopPropagation(),e.preventDefault(),t&&t()}},k1),p1=(l(x1,Qw=gt.Component),x1.prototype.render=function(){return gt.createElement("div",{ref:this.itemElement,onContextMenu:this._onClick},this.props.renderedItem,this.state.contextualMenuVisible?gt.createElement(Vu,{items:this.props.menuItems,shouldFocusOnMount:!0,target:this.itemElement.current,onDismiss:this._onCloseContextualMenu,directionalHint:Pa.bottomLeftEdge}):null)},x1),h1={root:"ms-EditingItem",input:"ms-EditingItem-input"},m1=(l(S1,Xw=gt.Component),S1.prototype.componentDidMount=function(){var e=(0,this.props.getEditingItemText)(this.props.item);this._editingFloatingPicker.current&&this._editingFloatingPicker.current.onQueryStringChanged(e),this._editingInput.value=e,this._editingInput.focus()},S1.prototype.render=function(){var e=Ss(),t=ur(this.props,Zn),o=Fn()(qw);return gt.createElement("div",{"aria-labelledby":"editingItemPersona-"+e,className:o.root},gt.createElement("input",ht({autoCapitalize:"off",autoComplete:"off"},t,{ref:this._resolveInputRef,onChange:this._onInputChange,onKeyDown:this._onInputKeyDown,onBlur:this._onInputBlur,onClick:this._onInputClick,"data-lpignore":!0,className:o.input,id:e})),this._renderEditingSuggestions())},S1.prototype._onInputKeyDown=function(e){e.which!==Tn.backspace&&e.which!==Tn.del||e.stopPropagation()},S1),g1=(l(_1,Zw=Uw),_1),f1=(l(C1,Yw=g1),C1.prototype._renderItem=function(e,t){var o=this,n=this.props.removeButtonAriaLabel,r=this.props.onExpandGroup,i={item:e,index:t,key:e.key||t,selected:this.selection.isIndexSelected(t),onRemoveItem:function(){return o.removeItem(e)},onItemChange:this.onItemChange,removeButtonAriaLabel:n,onCopyItem:function(e){return o.copyItems([e])},onExpandItem:r?function(){return r(e)}:void 0,menuItems:this._createMenuItems(e)},t=0<i.menuItems.length;if(e.isEditing&&t)return gt.createElement(m1,ht({},i,{onRenderFloatingPicker:this.props.onRenderFloatingPicker,floatingPickerProps:this.props.floatingPickerProps,onEditingComplete:this._completeEditing,getEditingItemText:this.props.getEditingItemText}));n=(0,this.props.onRenderItem)(i);return t?gt.createElement(p1,{key:i.key,renderedItem:n,beginEditing:this._beginEditing,menuItems:this._createMenuItems(i.item),item:i.item}):n},C1.prototype._createMenuItems=function(e){var o=this,t=[];return this.props.editMenuItemText&&this.props.getEditingItemText&&t.push({key:"Edit",text:this.props.editMenuItemText,onClick:function(e,t){o._beginEditing(t.data)},data:e}),this.props.removeMenuItemText&&t.push({key:"Remove",text:this.props.removeMenuItemText,onClick:function(e,t){o.removeItem(t.data)},data:e}),this.props.copyMenuItemText&&t.push({key:"Copy",text:this.props.copyMenuItemText,onClick:function(e,t){o.props.onCopyItems&&o.copyItems([t.data])},data:e}),t},C1.defaultProps={onRenderItem:function(e){return gt.createElement(d1,ht({},e))}},C1),v1=Fn(),b1=gt.forwardRef(function(e,t){var o=e.styles,n=e.theme,r=e.className,i=e.vertical,s=e.alignContent,e=e.children,s=v1(o,{theme:n,className:r,alignContent:s,vertical:i});return gt.createElement("div",{className:s.root,ref:t},gt.createElement("div",{className:s.content,role:"separator","aria-orientation":i?"vertical":"horizontal"},e))}),y1=In(b1,function(e){var t,o=e.theme,n=e.alignContent,r=e.vertical,e=e.className;return{root:[o.fonts.medium,{position:"relative"},n&&{textAlign:n},!n&&{textAlign:"center"},r&&("center"===n||!n)&&{verticalAlign:"middle"},r&&"start"===n&&{verticalAlign:"top"},r&&"end"===n&&{verticalAlign:"bottom"},r&&{padding:"0 4px",height:"inherit",display:"table-cell",zIndex:1,selectors:{":after":((t={backgroundColor:o.palette.neutralLighter,width:"1px",content:'""',position:"absolute",top:"0",bottom:"0",left:"50%",right:"0",zIndex:-1})[Yt]={backgroundColor:"WindowText"},t)}},!r&&{padding:"4px 0",selectors:{":before":((t={backgroundColor:o.palette.neutralLighter,height:"1px",content:'""',display:"block",position:"absolute",top:"50%",bottom:"0",left:"0",right:"0"})[Yt]={backgroundColor:"WindowText"},t)}},e],content:[{position:"relative",display:"inline-block",padding:"0 12px",color:o.semanticColors.bodyText,background:o.semanticColors.bodyBackground},r&&{padding:"12px 0"}]}},void 0,{scope:"Separator"});function C1(){var o=null!==Yw&&Yw.apply(this,arguments)||this;return o.renderItems=function(){return o.state.items.map(function(e,t){return o._renderItem(e,t)})},o._beginEditing=function(e){e.isEditing=!0,o.forceUpdate()},o._completeEditing=function(e,t){e.isEditing=!1,o.replaceItem(e,t)},o}function _1(){return null!==Zw&&Zw.apply(this,arguments)||this}function S1(e){var o=Xw.call(this,e)||this;return o._editingFloatingPicker=gt.createRef(),o._renderEditingSuggestions=function(){var e=o.props.onRenderFloatingPicker,t=o.props.floatingPickerProps;return e&&t?gt.createElement(e,ht({componentRef:o._editingFloatingPicker,onChange:o._onSuggestionSelected,inputElement:o._editingInput,selectedItems:[]},t)):gt.createElement(gt.Fragment,null)},o._resolveInputRef=function(e){o._editingInput=e,o.forceUpdate(function(){o._editingInput.focus()})},o._onInputClick=function(){o._editingFloatingPicker.current&&o._editingFloatingPicker.current.showPicker(!0)},o._onInputBlur=function(e){!o._editingFloatingPicker.current||null===e.relatedTarget||-1===(e=e.relatedTarget).className.indexOf("ms-Suggestions-itemButton")&&-1===e.className.indexOf("ms-Suggestions-sectionButton")&&o._editingFloatingPicker.current.forceResolveSuggestion()},o._onInputChange=function(e){e=e.target.value;""===e?o.props.onRemoveItem&&o.props.onRemoveItem():o._editingFloatingPicker.current&&o._editingFloatingPicker.current.onQueryStringChanged(e)},o._onSuggestionSelected=function(e){o.props.onEditingComplete(o.props.item,e)},vi(o),o.state={contextualMenuVisible:!1},o}function x1(e){var t=Qw.call(this,e)||this;return t.itemElement=gt.createRef(),t._onClick=function(e){e.preventDefault(),t.props.beginEditing&&!t.props.item.isValid?t.props.beginEditing(t.props.item):t.setState({contextualMenuVisible:!0})},t._onCloseContextualMenu=function(e){t.setState({contextualMenuVisible:!1})},vi(t),t.state={contextualMenuVisible:!1},t}function k1(e){e=Jw.call(this,e)||this;return e.persona=gt.createRef(),vi(e),e.state={contextualMenuVisible:!1},e}y1.displayName="Separator";var w1,I1,D1={root:"ms-Shimmer-container",shimmerWrapper:"ms-Shimmer-shimmerWrapper",shimmerGradient:"ms-Shimmer-shimmerGradient",dataWrapper:"ms-Shimmer-dataWrapper"},T1=Ao(function(){return O({"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(100%)"}})}),E1=Ao(function(){return O({"100%":{transform:"translateX(-100%)"},"0%":{transform:"translateX(100%)"}})});(ke=w1=w1||{})[ke.line=1]="line",ke[ke.circle=2]="circle",ke[ke.gap=3]="gap",(U=I1=I1||{})[U.line=16]="line",U[U.gap=16]="gap",U[U.circle=24]="circle";var P1=Fn(),R1=function(e){var t=e.height,o=e.styles,n=e.width,r=void 0===n?"100%":n,n=e.borderStyle,e=e.theme,n=P1(o,{theme:e,height:t,borderStyle:n});return gt.createElement("div",{style:{width:r,minWidth:"number"==typeof r?r+"px":"auto"},className:n.root},gt.createElement("svg",{width:"2",height:"2",className:n.topLeftCorner},gt.createElement("path",{d:"M0 2 A 2 2, 0, 0, 1, 2 0 L 0 0 Z"})),gt.createElement("svg",{width:"2",height:"2",className:n.topRightCorner},gt.createElement("path",{d:"M0 0 A 2 2, 0, 0, 1, 2 2 L 2 0 Z"})),gt.createElement("svg",{width:"2",height:"2",className:n.bottomRightCorner},gt.createElement("path",{d:"M2 0 A 2 2, 0, 0, 1, 0 2 L 2 2 Z"})),gt.createElement("svg",{width:"2",height:"2",className:n.bottomLeftCorner},gt.createElement("path",{d:"M2 2 A 2 2, 0, 0, 1, 0 0 L 0 2 Z"})))},M1={root:"ms-ShimmerLine-root",topLeftCorner:"ms-ShimmerLine-topLeftCorner",topRightCorner:"ms-ShimmerLine-topRightCorner",bottomLeftCorner:"ms-ShimmerLine-bottomLeftCorner",bottomRightCorner:"ms-ShimmerLine-bottomRightCorner"},N1=In(R1,function(e){var t=e.height,o=e.borderStyle,n=e.theme,r=n.semanticColors,i=zo(M1,n),e=o||{},o={position:"absolute",fill:r.bodyBackground};return{root:[i.root,n.fonts.medium,{height:t+"px",boxSizing:"content-box",position:"relative",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:r.bodyBackground,borderWidth:0,selectors:((r={})[Yt]={borderColor:"Window",selectors:{"> *":{fill:"Window"}}},r)},e],topLeftCorner:[i.topLeftCorner,{top:"0",left:"0"},o],topRightCorner:[i.topRightCorner,{top:"0",right:"0"},o],bottomRightCorner:[i.bottomRightCorner,{bottom:"0",right:"0"},o],bottomLeftCorner:[i.bottomLeftCorner,{bottom:"0",left:"0"},o]}},void 0,{scope:"ShimmerLine"}),B1=Fn(),F1=function(e){var t=e.height,o=e.styles,n=e.width,r=void 0===n?"10px":n,n=e.borderStyle,e=e.theme,n=B1(o,{theme:e,height:t,borderStyle:n});return gt.createElement("div",{style:{width:r,minWidth:"number"==typeof r?r+"px":"auto"},className:n.root})},A1={root:"ms-ShimmerGap-root"},L1=In(F1,function(e){var t=e.height,o=e.borderStyle,n=e.theme,e=n.semanticColors,o=o||{};return{root:[zo(A1,n).root,n.fonts.medium,{backgroundColor:e.bodyBackground,height:t+"px",boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:e.bodyBackground,selectors:((e={})[Yt]={backgroundColor:"Window",borderColor:"Window"},e)},o]}},void 0,{scope:"ShimmerGap"}),H1={root:"ms-ShimmerCircle-root",svg:"ms-ShimmerCircle-svg"},O1=Fn(),z1=function(e){var t=e.height,o=e.styles,n=e.borderStyle,e=e.theme,n=O1(o,{theme:e,height:t,borderStyle:n});return gt.createElement("div",{className:n.root},gt.createElement("svg",{viewBox:"0 0 10 10",width:t,height:t,className:n.svg},gt.createElement("path",{d:"M0,0 L10,0 L10,10 L0,10 L0,0 Z M0,5 C0,7.76142375 2.23857625,10 5,10 C7.76142375,10 10,7.76142375 10,5 C10,2.23857625 7.76142375,2.22044605e-16 5,0 C2.23857625,-2.22044605e-16 0,2.23857625 0,5 L0,5 Z"})))},W1=In(z1,function(e){var t=e.height,o=e.borderStyle,n=e.theme,r=n.semanticColors,e=zo(H1,n),o=o||{};return{root:[e.root,n.fonts.medium,{width:t+"px",height:t+"px",minWidth:t+"px",boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:r.bodyBackground,selectors:((t={})[Yt]={borderColor:"Window"},t)},o],svg:[e.svg,{display:"block",fill:r.bodyBackground,selectors:((r={})[Yt]={fill:"Window"},r)}]}},void 0,{scope:"ShimmerCircle"}),V1=Fn(),K1=function(e){var a,l,t=e.styles,o=e.width,n=void 0===o?"auto":o,r=e.shimmerElements,i=e.rowHeight,s=void 0===i?(r||[]).map(function(e){switch(e.type){case w1.circle:e.height||(e.height=I1.circle);break;case w1.line:e.height||(e.height=I1.line);break;case w1.gap:e.height||(e.height=I1.gap)}return e}).reduce(function(e,t){return t.height&&t.height>e?t.height:e},0):i,o=e.flexWrap,i=e.theme,e=e.backgroundColor,o=V1(t,{theme:i,flexWrap:void 0!==o&&o});return gt.createElement("div",{style:{width:n},className:o.root},(a=e,l=s,r?r.map(function(e,t){var o=e.type,n=mt(e,["type"]),r=n.verticalAlign,i=n.height,s=G1(r,o,i,a,l);switch(e.type){case w1.circle:return gt.createElement(W1,ht({key:t},n,{styles:s}));case w1.gap:return gt.createElement(L1,ht({key:t},n,{styles:s}));case w1.line:return gt.createElement(N1,ht({key:t},n,{styles:s}))}}):gt.createElement(N1,{height:I1.line})))},G1=Ao(function(e,t,o,n,r){var i,o=r&&o?r-o:0;if(e&&"center"!==e?e&&"top"===e?i={borderBottomWidth:o+"px",borderTopWidth:"0px"}:e&&"bottom"===e&&(i={borderBottomWidth:"0px",borderTopWidth:o+"px"}):i={borderBottomWidth:(o?Math.floor(o/2):0)+"px",borderTopWidth:(o?Math.ceil(o/2):0)+"px"},n)switch(t){case w1.circle:return{root:ht(ht({},i),{borderColor:n}),svg:{fill:n}};case w1.gap:return{root:ht(ht({},i),{borderColor:n,backgroundColor:n})};case w1.line:return{root:ht(ht({},i),{borderColor:n}),topLeftCorner:{fill:n},topRightCorner:{fill:n},bottomLeftCorner:{fill:n},bottomRightCorner:{fill:n}}}return{root:i}}),U1={root:"ms-ShimmerElementsGroup-root"},j1=In(K1,function(e){var t=e.flexWrap,e=e.theme;return{root:[zo(U1,e).root,e.fonts.medium,{display:"flex",alignItems:"center",flexWrap:t?"wrap":"nowrap",position:"relative"}]}},void 0,{scope:"ShimmerElementsGroup"}),q1=Fn(),Y1=gt.forwardRef(function(e,t){var o=e.styles,n=e.shimmerElements,r=e.children,i=e.width,s=e.className,a=e.customElementsGroup,l=e.theme,c=e.ariaLabel,u=e.shimmerColors,d=e.isDataLoaded,p=void 0!==d&&d,e=ur(e,cr),l=q1(o,{theme:l,isDataLoaded:p,className:s,transitionAnimationInterval:200,shimmerColor:u&&u.shimmer,shimmerWaveColor:u&&u.shimmerWave}),h=xl({lastTimeoutId:0}),s=Em(),m=s.setTimeout,g=s.clearTimeout,s=gt.useState(p),f=s[0],v=s[1],i={width:i||"100%"};return gt.useEffect(function(){if(p!==f){if(p)return h.lastTimeoutId=m(function(){v(!0)},200),function(){return g(h.lastTimeoutId)};v(!1)}},[p]),gt.createElement("div",ht({},e,{className:l.root,ref:t}),!f&>.createElement("div",{style:i,className:l.shimmerWrapper},gt.createElement("div",{className:l.shimmerGradient}),a||gt.createElement(j1,{shimmerElements:n,backgroundColor:u&&u.background})),r&>.createElement("div",{className:l.dataWrapper},r),c&&!p&>.createElement("div",{role:"status","aria-live":"polite"},gt.createElement(Mi,null,gt.createElement("div",{className:l.screenReaderText},c))))});Y1.displayName="Shimmer";function Z1(o){return function(e){var t;return(t={})[o]=e+"%",t}}function X1(e,t,o){return o===t?0:(e-t)/(o-t)*100}var Q1,J1=In(Y1,function(e){var t=e.isDataLoaded,o=e.className,n=e.theme,r=e.transitionAnimationInterval,i=e.shimmerColor,s=e.shimmerWaveColor,a=n.semanticColors,l=zo(D1,n),e=Pn(n);return{root:[l.root,n.fonts.medium,{position:"relative",height:"auto"},o],shimmerWrapper:[l.shimmerWrapper,{position:"relative",overflow:"hidden",transform:"translateZ(0)",backgroundColor:i||a.disabledBackground,transition:"opacity "+r+"ms",selectors:((o={"> *":{transform:"translateZ(0)"}})[Yt]=ht({background:"WindowText\n linear-gradient(\n to right,\n transparent 0%,\n Window 50%,\n transparent 100%)\n 0 0 / 90% 100%\n no-repeat"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)},t&&{opacity:"0",position:"absolute",top:"0",bottom:"0",left:"0",right:"0"}],shimmerGradient:[l.shimmerGradient,{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:(i||a.disabledBackground)+"\n linear-gradient(\n to right,\n "+(i||a.disabledBackground)+" 0%,\n "+(s||a.bodyDivider)+" 50%,\n "+(i||a.disabledBackground)+" 100%)\n 0 0 / 90% 100%\n no-repeat",transform:"translateX(-100%)",animationDuration:"2s",animationTimingFunction:"ease-in-out",animationDirection:"normal",animationIterationCount:"infinite",animationName:(e?E1:T1)()}],dataWrapper:[l.dataWrapper,{position:"absolute",top:"0",bottom:"0",left:"0",right:"0",opacity:"0",background:"none",backgroundColor:"transparent",border:"none",transition:"opacity "+r+"ms"},t&&{opacity:"1",position:"static"}],screenReaderText:So}},void 0,{scope:"Shimmer"}),$1=Fn(),eI=(l(rI,Q1=gt.Component),rI.prototype.render=function(){var e=this.props,t=e.detailsListStyles,o=e.enableShimmer,n=e.items,r=e.listProps,i=(e.onRenderCustomPlaceholder,e.removeFadingOverlay),s=(e.shimmerLines,e.styles),a=e.theme,l=e.ariaLabelForGrid,c=e.ariaLabelForShimmer,u=mt(e,["detailsListStyles","enableShimmer","items","listProps","onRenderCustomPlaceholder","removeFadingOverlay","shimmerLines","styles","theme","ariaLabelForGrid","ariaLabelForShimmer"]),e=r&&r.className;this._classNames=$1(s,{theme:a});e=ht(ht({},r),{className:o&&!i?Pr(this._classNames.root,e):e});return gt.createElement(h0,ht({},u,{styles:t,items:o?this._shimmerItems:n,isPlaceholderData:o,ariaLabelForGrid:o&&c||l,onRenderMissingItem:this._onRenderShimmerPlaceholder,listProps:e}))},rI),tI=In(eI,function(e){e=e.theme.palette;return{root:{position:"relative",selectors:{":after":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,backgroundImage:"linear-gradient(to bottom, transparent 30%, "+e.whiteTranslucent40+" 65%,"+e.white+" 100%)"}}}}},void 0,{scope:"ShimmeredDetailsList"}),oI=Fn(),nI=gt.forwardRef(function(e,t){t=function(r,e){var t=r.step,i=void 0===t?1:t,o=r.className,n=r.disabled,s=void 0!==n&&n,a=r.label,l=r.max,c=void 0===l?10:l,u=r.min,d=void 0===u?0:u,p=r.showValue,h=void 0===p||p,m=r.buttonProps,g=void 0===m?{}:m,f=r.vertical,v=void 0!==f&&f,b=r.snapToStep,y=r.valueFormat,C=r.styles,_=r.theme,S=r.originFromZero,x=r["aria-labelledby"],k=r["aria-label"],w=r.ranged,I=r.onChange,D=r.onChanged,T=gt.useRef([]),E=Em(),P=E.setTimeout,R=E.clearTimeout,M=gt.useRef(null),N=Ah(r.value,r.defaultValue,function(e,t){return null==I?void 0:I(t,w?[O.latestLowerValue,t]:void 0,e)}),B=N[0],F=N[1],A=Ah(r.lowerValue,r.defaultLowerValue,function(e,t){return null==I?void 0:I(O.latestValue,[t,O.latestValue],e)}),L=A[0],H=A[1],t=Math.max(d,Math.min(c,B||0)),n=Math.max(d,Math.min(t,L||0)),O=xl({onKeyDownTimer:-1,isAdjustingLowerValue:!1,latestValue:t,latestLowerValue:n});O.latestValue=t,O.latestLowerValue=n;function z(){R(O.onKeyDownTimer),O.onKeyDownTimer=-1}function W(e){z(),D&&(O.onKeyDownTimer=P(function(){D(e,O.latestValue,w?[O.latestLowerValue,O.latestValue]:void 0)},1e3))}function V(e,t){var o=X(e),n=d+i*o,o=d+i*Math.round(o);Y(e,o,n),t||(e.preventDefault(),e.stopPropagation())}function K(e){O.isBetweenSteps=void 0,null==D||D(e,O.latestValue,w?[O.latestLowerValue,O.latestValue]:void 0),Q()}var G,U,j,l=su("Slider",r.id||(null==g?void 0:g.id)),u=oI(C,{className:o,disabled:s,vertical:v,showTransitions:!b&&!O.isBetweenSteps,showValue:h,ranged:w,theme:_}),q=(c-d)/i,p=function(e){var t=r.ariaValueText;if(void 0!==e)return t?t(e):e.toString()},Y=function(e,t,o){t=Math.min(c,Math.max(d,t)),o=void 0!==o?Math.min(c,Math.max(d,o)):void 0;var n=0;if(isFinite(i))for(;Math.round(i*Math.pow(10,n))/Math.pow(10,n)!==i;)n++;t=parseFloat(t.toFixed(n));O.isBetweenSteps=void 0!==o&&o!==t,w?O.isAdjustingLowerValue&&(S?t<=0:t<=O.latestValue)?H(t,e):!O.isAdjustingLowerValue&&(S?0<=t:t>=O.latestLowerValue)&&F(t,e):F(t,e)},Z=function(e,t){var o=0;switch(e.type){case"mousedown":case"mousemove":o=t?e.clientY:e.clientX;break;case"touchstart":case"touchmove":o=t?e.touches[0].clientY:e.touches[0].clientX}return o},X=function(e){var t,o=M.current.getBoundingClientRect(),n=(r.vertical?o.height:o.width)/q;return r.vertical?(t=Z(e,r.vertical),(o.bottom-t)/n):(e=Z(e,r.vertical),(Pn(r.theme)?o.right-e:e-o.left)/n)},m=function(e){var t;w&&(t=X(e),t=d+i*t,O.isAdjustingLowerValue=t<=O.latestLowerValue||t-O.latestLowerValue<=O.latestValue-t),"mousedown"===e.type?T.current.push(Wa(window,"mousemove",V,!0),Wa(window,"mouseup",K,!0)):"touchstart"===e.type&&T.current.push(Wa(window,"touchmove",V,!0),Wa(window,"touchend",K,!0)),V(e,!0)},Q=function(){T.current.forEach(function(e){return e()}),T.current=[]},J=gt.useRef(null),f=gt.useRef(null);E=r,G=w&&!v?J:f,U=t,j=w?[n,t]:void 0,gt.useImperativeHandle(E.componentRef,function(){return{get value(){return U},get range(){return j},focus:function(){G.current&&G.current.focus()}}},[G,U,j]);N=Z1(v?"bottom":Pn(r.theme)?"right":"left"),A=Z1(v?"height":"width"),B=X1(t,d,c),L=X1(n,d,c),C=X1(S?0:d,d,c),o=w?B-L:Math.abs(C-B),b=Math.min(100-B,100-C),_=w?L:Math.min(B,C),E={className:u.root,ref:e},v={className:u.titleLabel,children:a,disabled:s,htmlFor:k?void 0:l},e=h?{className:u.valueLabel,children:y?y(t):t,disabled:s,htmlFor:s?l:void 0}:void 0,y=w&&h?{className:u.valueLabel,children:y?y(n):n,disabled:s}:void 0,C=S?{className:u.zeroTick,style:N(C)}:void 0,o={className:Pr(u.lineContainer,u.activeSection),style:A(o)},b={className:Pr(u.lineContainer,u.inactiveSection),style:A(b)},A={className:Pr(u.lineContainer,u.inactiveSection),style:A(_)},_=ht({"aria-disabled":s,role:"slider",tabIndex:s?void 0:0},{"data-is-focusable":!s}),x=ht(ht(ht({id:l,className:Pr(u.slideBox,g.className)},!s&&{onMouseDown:m,onTouchStart:m,onKeyDown:function(e){var t=O.isAdjustingLowerValue?O.latestLowerValue:O.latestValue,o=0;switch(e.which){case Mn(Tn.left,r.theme):case Tn.down:o=-i,z(),W(e);break;case Mn(Tn.right,r.theme):case Tn.up:o=i,z(),W(e);break;case Tn.home:t=d,z(),W(e);break;case Tn.end:t=c,z(),W(e);break;default:return}Y(e,t+o),e.preventDefault(),e.stopPropagation()}}),g&&ur(g,cr,["id","className"])),!w&&ht(ht({},_),{"aria-valuemin":d,"aria-valuemax":c,"aria-valuenow":t,"aria-valuetext":p(t),"aria-label":k||a,"aria-labelledby":x})),s=s?{}:{onFocus:function(e){O.isAdjustingLowerValue=e.target===J.current}},B=ht({ref:f,className:u.thumb,style:N(B)},w&&ht(ht(ht({},_),s),{id:"max-"+l,"aria-valuemin":n,"aria-valuemax":c,"aria-valuenow":t,"aria-valuetext":p(t),"aria-label":"max "+(k||a)})),a=w?ht(ht(ht({ref:J,className:u.thumb,style:N(L)},_),s),{id:"min-"+l,"aria-valuemin":d,"aria-valuemax":t,"aria-valuenow":n,"aria-valuetext":p(n),"aria-label":"min "+(k||a)}):void 0;return{root:E,label:v,sliderBox:x,container:{className:u.container},valueLabel:e,lowerValueLabel:y,thumb:B,lowerValueThumb:a,zeroTick:C,activeTrack:o,topInactiveTrack:b,bottomInactiveTrack:A,sliderLine:{ref:M,className:u.line}}}(e,t);return gt.createElement("div",ht({},t.root),t&>.createElement(om,ht({},t.label)),gt.createElement("div",ht({},t.container),e.ranged&&(e.vertical?t.valueLabel&>.createElement(om,ht({},t.valueLabel)):t.lowerValueLabel&>.createElement(om,ht({},t.lowerValueLabel))),gt.createElement("div",ht({},t.sliderBox),gt.createElement("div",ht({},t.sliderLine),e.ranged&>.createElement("span",ht({},t.lowerValueThumb)),gt.createElement("span",ht({},t.thumb)),t.zeroTick&>.createElement("span",ht({},t.zeroTick)),gt.createElement("span",ht({},t.bottomInactiveTrack)),gt.createElement("span",ht({},t.activeTrack)),gt.createElement("span",ht({},t.topInactiveTrack)))),e.ranged&&e.vertical?t.lowerValueLabel&>.createElement(om,ht({},t.lowerValueLabel)):t.valueLabel&>.createElement(om,ht({},t.valueLabel))),gt.createElement(na,null))});function rI(e){var n=Q1.call(this,e)||this;return n._onRenderShimmerPlaceholder=function(e,t){var o=n.props.onRenderCustomPlaceholder,t=o?o(t,e,n._renderDefaultShimmerPlaceholder):n._renderDefaultShimmerPlaceholder(t);return gt.createElement(J1,{customElementsGroup:t})},n._renderDefaultShimmerPlaceholder=function(e){var t=e.columns,o=e.compact,n=e.selectionMode,r=e.checkboxVisibility,i=e.cellStyleProps,s=void 0===i?Lv:i,e=Hv.rowHeight,i=Hv.compactRowHeight,a=o?i:e+1,l=[];return n!==dv.none&&r!==kv.hidden&&l.push(gt.createElement(j1,{key:"checkboxGap",shimmerElements:[{type:w1.gap,width:"40px",height:a}]})),t.forEach(function(e,t){var o=[],n=s.cellLeftPadding+s.cellRightPadding+e.calculatedWidth+(e.isPadded?s.cellExtraRightPadding:0);o.push({type:w1.gap,width:s.cellLeftPadding,height:a}),e.isIconOnly?(o.push({type:w1.line,width:e.calculatedWidth,height:e.calculatedWidth}),o.push({type:w1.gap,width:s.cellRightPadding,height:a})):(o.push({type:w1.line,width:.95*e.calculatedWidth,height:7}),o.push({type:w1.gap,width:s.cellRightPadding+(e.calculatedWidth-.95*e.calculatedWidth)+(e.isPadded?s.cellExtraRightPadding:0),height:a})),l.push(gt.createElement(j1,{key:t,width:n+"px",shimmerElements:o}))}),l.push(gt.createElement(j1,{key:"endGap",width:"100%",shimmerElements:[{type:w1.gap,width:"100%",height:a}]})),gt.createElement("div",{style:{display:"flex"}},l)},n._shimmerItems=e.shimmerLines?new Array(e.shimmerLines):new Array(10),n}nI.displayName="SliderBase";var iI,sI={root:"ms-Slider",enabled:"ms-Slider-enabled",disabled:"ms-Slider-disabled",row:"ms-Slider-row",column:"ms-Slider-column",container:"ms-Slider-container",slideBox:"ms-Slider-slideBox",line:"ms-Slider-line",thumb:"ms-Slider-thumb",activeSection:"ms-Slider-active",inactiveSection:"ms-Slider-inactive",valueLabel:"ms-Slider-value",showValue:"ms-Slider-showValue",showTransitions:"ms-Slider-showTransitions",zeroTick:"ms-Slider-zeroTick"},aI=In(nI,function(e){var t,o=e.className,n=e.titleLabelClassName,r=e.theme,i=e.vertical,s=e.disabled,a=e.showTransitions,l=e.showValue,c=e.ranged,u=r.semanticColors,d=zo(sI,r),p=u.inputBackgroundCheckedHovered,h=u.inputBackgroundChecked,m=u.inputPlaceholderBackgroundChecked,g=u.smallInputBorder,f=u.disabledBorder,v=u.disabledText,b=u.disabledBackground,y=u.inputBackground,C=u.smallInputBorder,_=u.disabledBorder,S=!s&&{backgroundColor:p,selectors:((S={})[Yt]={backgroundColor:"Highlight"},S)},x=!s&&{backgroundColor:m,selectors:((x={})[Yt]={borderColor:"Highlight"},x)},k=!s&&{backgroundColor:h,selectors:((k={})[Yt]={backgroundColor:"Highlight"},k)},w=!s&&{border:"2px solid "+p,selectors:((w={})[Yt]={borderColor:"Highlight"},w)},I=!e.disabled&&{backgroundColor:u.inputPlaceholderBackgroundChecked,selectors:((I={})[Yt]={backgroundColor:"Highlight"},I)};return{root:$e($e($e($e($e([d.root,r.fonts.medium,{userSelect:"none"},i&&{marginRight:8}],[s?void 0:d.enabled]),[s?d.disabled:void 0]),[i?void 0:d.row]),[i?d.column:void 0]),[o]),titleLabel:[{padding:0},n],container:[d.container,{display:"flex",flexWrap:"nowrap",alignItems:"center"},i&&{flexDirection:"column",height:"100%",textAlign:"center",margin:"8px 0"}],slideBox:$e($e([d.slideBox,!c&&bo(r),{background:"transparent",border:"none",flexGrow:1,lineHeight:28,display:"flex",alignItems:"center",selectors:((n={})[":active ."+d.activeSection]=S,n[":hover ."+d.activeSection]=k,n[":active ."+d.inactiveSection]=x,n[":hover ."+d.inactiveSection]=x,n[":active ."+d.thumb]=w,n[":hover ."+d.thumb]=w,n[":active ."+d.zeroTick]=I,n[":hover ."+d.zeroTick]=I,n[Yt]={forcedColorAdjust:"none"},n)},i?{height:"100%",width:28,padding:"8px 0"}:{height:28,width:"auto",padding:"0 8px"}],[l?d.showValue:void 0]),[a?d.showTransitions:void 0]),thumb:[d.thumb,c&&bo(r,{inset:-4}),{borderWidth:2,borderStyle:"solid",borderColor:C,borderRadius:10,boxSizing:"border-box",background:y,display:"block",width:16,height:16,position:"absolute"},i?{left:-6,margin:"0 auto",transform:"translateY(8px)"}:{top:-6,transform:Pn(r)?"translateX(50%)":"translateX(-50%)"},a&&{transition:"left "+we.durationValue3+" "+we.easeFunction1},s&&{borderColor:_,selectors:((_={})[Yt]={borderColor:"GrayText"},_)}],line:[d.line,{display:"flex",position:"relative"},i?{height:"100%",width:4,margin:"0 auto",flexDirection:"column-reverse"}:{width:"100%"}],lineContainer:[{borderRadius:4,boxSizing:"border-box"},i?{width:4,height:"100%"}:{height:4,width:"100%"}],activeSection:[d.activeSection,{background:g,selectors:((g={})[Yt]={backgroundColor:"WindowText"},g)},a&&{transition:"width "+we.durationValue3+" "+we.easeFunction1},s&&{background:v,selectors:((v={})[Yt]={backgroundColor:"GrayText",borderColor:"GrayText"},v)}],inactiveSection:[d.inactiveSection,{background:f,selectors:((f={})[Yt]={border:"1px solid WindowText"},f)},a&&{transition:"width "+we.durationValue3+" "+we.easeFunction1},s&&{background:b,selectors:((t={})[Yt]={borderColor:"GrayText"},t)}],zeroTick:[d.zeroTick,{position:"absolute",background:u.disabledBorder,selectors:((t={})[Yt]={backgroundColor:"WindowText"},t)},e.disabled&&{background:u.disabledBackground,selectors:((u={})[Yt]={backgroundColor:"GrayText"},u)},e.vertical?{width:"16px",height:"1px",transform:Pn(r)?"translateX(6px)":"translateX(-6px)"}:{width:"1px",height:"16px",transform:"translateY(-6px)"}],valueLabel:[d.valueLabel,{flexShrink:1,width:30,lineHeight:"1"},i?{margin:"0 auto",whiteSpace:"nowrap",width:40}:{margin:"0 8px",whiteSpace:"nowrap",width:40}]}},void 0,{scope:"Slider"}),lI=Ao(function(e){var t=e.semanticColors,e=t.disabledText,t=t.disabledBackground;return{backgroundColor:t,pointerEvents:"none",cursor:"default",color:e,selectors:((t={":after":{borderColor:t}})[Yt]={color:"GrayText"},t)}}),cI=Ao(function(e,t,o){var n=e.palette,r=e.semanticColors,i=e.effects,s=n.neutralSecondary,a=r.buttonText,e=r.buttonText,n=r.buttonBackgroundHovered,r=r.buttonBackgroundPressed;return un({root:{outline:"none",display:"block",height:"50%",width:23,padding:0,backgroundColor:"transparent",textAlign:"center",cursor:"default",color:s,selectors:{"&.ms-DownButton":{borderRadius:"0 0 "+i.roundedCorner2+" 0"},"&.ms-UpButton":{borderRadius:"0 "+i.roundedCorner2+" 0 0"}}},rootHovered:{backgroundColor:n,color:a},rootChecked:{backgroundColor:r,color:e,selectors:((a={})[Yt]={backgroundColor:"Highlight",color:"HighlightText"},a)},rootPressed:{backgroundColor:r,color:e,selectors:((e={})[Yt]={backgroundColor:"Highlight",color:"HighlightText"},e)},rootDisabled:{opacity:.5,selectors:((e={})[Yt]={color:"GrayText",opacity:1},e)},icon:{fontSize:8,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0}},{},o)});(G=iI=iI||{})[G.down=-1]="down",G[G.notSpinning=0]="notSpinning",G[G.up=1]="up";function uI(){}function dI(e,t){var o=t.min;return"number"==typeof(t=t.max)&&(e=Math.min(e,t)),e="number"==typeof o?Math.max(e,o):e}var pI=Fn(),hI={disabled:!1,label:"",step:1,labelPosition:Fa.start,incrementButtonIcon:{iconName:"ChevronUpSmall"},decrementButtonIcon:{iconName:"ChevronDownSmall"}},n=gt.forwardRef(function(e,t){var o=Hn(hI,e),n=o.disabled,r=o.label,i=o.min,s=o.max,a=o.step,l=o.defaultValue,c=o.value,u=o.precision,d=o.labelPosition,p=o.iconProps,h=o.incrementButtonIcon,m=o.incrementButtonAriaLabel,g=o.decrementButtonIcon,f=o.decrementButtonAriaLabel,v=o.ariaLabel,b=o.ariaDescribedBy,y=o.upArrowButtonStyles,C=o.downArrowButtonStyles,_=o.theme,S=o.ariaPositionInSet,x=o.ariaSetSize,k=o.ariaValueNow,w=o.ariaValueText,I=o.className,D=o.inputProps,T=o.onDecrement,E=o.onIncrement,P=o.iconButtonProps,R=o.onValidate,M=o.onChange,N=o.styles,B=gt.useRef(null),F=su("input"),A=su("Label"),L=gt.useState(!1),H=L[0],O=L[1],e=gt.useState(iI.notSpinning),z=e[0],W=e[1],V=kl(),K=gt.useMemo(function(){return null!=u?u:Math.max(gx(a),0)},[u,a]),L=Ah(c,null!=l?l:String(i||0),M),e=L[0],G=L[1],l=gt.useState(),U=l[0],j=l[1],q=gt.useRef({stepTimeoutHandle:-1,latestValue:void 0,latestIntermediateValue:void 0}).current;q.latestValue=e,q.latestIntermediateValue=U;var Y=Oc(c);gt.useEffect(function(){c!==Y&&void 0!==U&&j(void 0)},[c,Y,U]);var Z,X,M=pI(N,{theme:_,disabled:n,isFocused:H,keyboardSpinDirection:z,labelPosition:d,className:I}),L=ur(o,cr,["onBlur","onFocus","className","onChange"]),Q=gt.useCallback(function(e){var t,o=q.latestIntermediateValue;void 0!==o&&o!==q.latestValue&&(t=void 0,R?t=R(o,e):o&&o.trim().length&&!isNaN(Number(o))&&(t=String(dI(Number(o),{min:i,max:s}))),void 0!==t&&t!==q.latestValue&&G(t,e)),j(void 0)},[q,s,i,R,G]),J=gt.useCallback(function(){0<=q.stepTimeoutHandle&&(V.clearTimeout(q.stepTimeoutHandle),q.stepTimeoutHandle=-1),!q.spinningByMouse&&z===iI.notSpinning||(q.spinningByMouse=!1,W(iI.notSpinning))},[q,z,V]),$=gt.useCallback(function(e,t){if(t.persist(),void 0!==q.latestIntermediateValue)return"keydown"===t.type&&Q(t),void V.requestAnimationFrame(function(){$(e,t)});var o=e(q.latestValue||"",t);void 0!==o&&o!==q.latestValue&&G(o,t);o=q.spinningByMouse;q.spinningByMouse="mousedown"===t.type,q.spinningByMouse&&(q.stepTimeoutHandle=V.setTimeout(function(){$(e,t)},o?75:400))},[q,V,Q,G]),ee=gt.useCallback(function(e){if(E)return E(e);e=fx(e=dI(Number(e)+Number(a),{max:s}),K);return String(e)},[K,s,E,a]),te=gt.useCallback(function(e){if(T)return T(e);e=fx(e=dI(Number(e)-Number(a),{min:i}),K);return String(e)},[K,i,T,a]),l=gt.useCallback(function(e){!n&&e.which!==Tn.up&&e.which!==Tn.down||J()},[n,J]),N=gt.useCallback(function(e){$(ee,e)},[ee,$]),H=gt.useCallback(function(e){$(te,e)},[te,$]);Z=B,X=e,gt.useImperativeHandle(o.componentRef,function(){return{get value(){return X},focus:function(){Z.current&&Z.current.focus()}}},[Z,X]),mI(o);I=!!e&&!isNaN(Number(e)),p=(p||r)&>.createElement("div",{className:M.labelWrapper},p&>.createElement(Vr,ht({},p,{className:M.icon,"aria-hidden":"true"})),r&>.createElement(om,{id:A,htmlFor:F,className:M.label,disabled:n},r));return gt.createElement("div",{className:M.root,ref:t},d!==Fa.bottom&&p,gt.createElement("div",ht({},L,{className:M.spinButtonWrapper,"aria-label":v,"aria-posinset":S,"aria-setsize":x,"data-ktp-target":!0}),gt.createElement("input",ht({value:null!=U?U:e,id:F,onChange:uI,onInput:function(e){j(e.target.value)},className:M.input,type:"text",autoComplete:"off",role:"spinbutton","aria-labelledby":r&&A,"aria-valuenow":null!=k?k:I?Number(e):void 0,"aria-valuetext":null!=w?w:I?void 0:e,"aria-valuemin":i,"aria-valuemax":s,"aria-describedby":b,onBlur:function(e){var t;Q(e),O(!1),null===(t=o.onBlur)||void 0===t||t.call(o,e)},ref:B,onFocus:function(e){var t;B.current&&(!q.spinningByMouse&&z===iI.notSpinning||J(),B.current.select(),O(!0),null===(t=o.onFocus)||void 0===t||t.call(o,e))},onKeyDown:function(e){if(e.which!==Tn.up&&e.which!==Tn.down&&e.which!==Tn.enter||(e.preventDefault(),e.stopPropagation()),n)J();else{var t=iI.notSpinning;switch(e.which){case Tn.up:t=iI.up,$(ee,e);break;case Tn.down:t=iI.down,$(te,e);break;case Tn.enter:Q(e);break;case Tn.escape:j(void 0)}z!==t&&W(t)}},onKeyUp:l,disabled:n,"aria-disabled":n,"data-lpignore":!0,"data-ktp-execute-target":!0},D)),gt.createElement("span",{className:M.arrowButtonsContainer},gt.createElement(id,ht({styles:cI(_,!0,y),className:"ms-UpButton",checked:z===iI.up,disabled:n,iconProps:h,onMouseDown:N,onMouseLeave:J,onMouseUp:J,tabIndex:-1,ariaLabel:m,"data-is-focusable":!1},P)),gt.createElement(id,ht({styles:cI(_,!1,C),className:"ms-DownButton",checked:z===iI.down,disabled:n,iconProps:g,onMouseDown:H,onMouseLeave:J,onMouseUp:J,tabIndex:-1,ariaLabel:f,"data-is-focusable":!1},P)))),d===Fa.bottom&&p)});n.displayName="SpinButton";var mI=function(e){},gI=In(n,function(e){var t=e.theme,o=e.className,n=e.labelPosition,r=e.disabled,i=e.isFocused,s=t.palette,a=t.semanticColors,l=t.effects,c=t.fonts,u=a.inputBorder,d=a.inputBackground,p=a.inputBorderHovered,h=a.inputFocusBorderAlt,m=a.inputText,e=s.white,s=a.inputBackgroundChecked,a=a.disabledText;return{root:[c.medium,{outline:"none",width:"100%",minWidth:86},o],labelWrapper:[{display:"inline-flex",alignItems:"center"},n===Fa.start&&{height:32,float:"left",marginRight:10},n===Fa.end&&{height:32,float:"right",marginLeft:10},n===Fa.top&&{marginBottom:-1}],icon:[{padding:"0 5px",fontSize:Ae.large},r&&{color:a}],label:{pointerEvents:"none",lineHeight:Ae.large},spinButtonWrapper:[{display:"flex",position:"relative",boxSizing:"border-box",height:32,minWidth:86,selectors:{":after":{pointerEvents:"none",content:"''",position:"absolute",left:0,top:0,bottom:0,right:0,borderWidth:"1px",borderStyle:"solid",borderColor:u,borderRadius:l.roundedCorner2}}},(n===Fa.top||n===Fa.bottom)&&{width:"100%"},!r&&[{selectors:{":hover":{selectors:((p={":after":{borderColor:p}})[Yt]={selectors:{":after":{borderColor:"Highlight"}}},p)}}},i&&{selectors:{"&&":_o(h,l.roundedCorner2)}}],r&&lI(t)],input:["ms-spinButton-input",{boxSizing:"border-box",boxShadow:"none",borderStyle:"none",flex:1,margin:0,fontSize:c.medium.fontSize,fontFamily:"inherit",color:m,backgroundColor:d,height:"100%",padding:"0 8px 0 9px",outline:0,display:"block",minWidth:61,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",cursor:"text",userSelect:"text",borderRadius:l.roundedCorner2+" 0 0 "+l.roundedCorner2},!r&&{selectors:{"::selection":{backgroundColor:s,color:e,selectors:((e={})[Yt]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},e)}}},r&&lI(t)],arrowButtonsContainer:[{display:"block",height:"100%",cursor:"default"},r&&lI(t)]}},void 0,{scope:"SpinButton"}),fI=ht;function vI(e,t){for(var o=[],n=2;n<arguments.length;n++)o[n-2]=arguments[n];var r=e;return r.isSlot?0===(o=gt.Children.toArray(o)).length?r(t):r(ht(ht({},t),{children:o})):gt.createElement.apply(gt,$e([e,t],o))}function bI(s,e){var e=(e=void 0===e?{}:e).defaultProp,a=void 0===e?"children":e;return function(e,t,o,n,r){if(gt.isValidElement(t))return t;i="string"==typeof(i=t)||"number"==typeof i||"boolean"==typeof i?((t={})[a]=i,t):i;e=function(e,t){for(var o=[],n=2;n<arguments.length;n++)o[n-2]=arguments[n];for(var r={},i=[],s=0,a=o;s<a.length;s++){var l=a[s];i.push(l&&l.className),fI(r,l)}return r.className=L([e,i],{rtl:Pn(t)}),r}(n,r,e,i);if(o){if(o.component){var i=o.component;return gt.createElement(i,ht({},e))}if(o.render)return o.render(e,s)}return gt.createElement(s,ht({},e))}}var yI=Ao(function(e){return bI(e)});function CI(e,c){function t(l){var e;c.hasOwnProperty(l)&&((e=function(e){for(var t,o,n,r,i,s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];if(0<s.length)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return t=c[l],o=e,n=u[l],r=u.slots&&u.slots[l],i=u._defaultStyles&&u._defaultStyles[l],e=u.theme,void 0!==t.create?t.create(o,n,r,i):yI(t)(o,n,r,i,e)}).isSlot=!0,n[l]=e)}var o,n={},u=e;for(o in c)t(o);return n}function _I(r,i){var e=(i=void 0===i?{}:i).factoryOptions,t=(void 0===e?{}:e).defaultProp,e=function(e){var t=(o=i.displayName,n=gt.useContext(xn),t=i.fields,yt.getSettings(t||["theme","styles","tokens"],o,n.customizations)),o=i.state,n=(e=o?ht(ht({},e),o(e)):e).theme||t.theme,o=SI(e,n,i.tokens,t.tokens,e.tokens),t=function(t,o,n){for(var e=[],r=3;r<arguments.length;r++)e[r-3]=arguments[r];return un.apply(void 0,e.map(function(e){return"function"==typeof e?e(t,o,n):e}))}(e,n,o,i.styles,t.styles,e.styles),n=ht(ht({},e),{styles:t,tokens:o,_defaultStyles:t,theme:n});return r(n)};return e.displayName=i.displayName||r.name,t&&(e.create=bI(e,{defaultProp:t})),fI(e,i.statics),e}function SI(e,t){for(var o=[],n=2;n<arguments.length;n++)o[n-2]=arguments[n];for(var r={},i=0,s=o;i<s.length;i++){var a=s[i];a&&(a="function"==typeof a?a(e,t):a,Array.isArray(a)&&(a=SI.apply(void 0,$e([e,t],a))),fI(r,a))}return r}function xI(e,t){return t.spacing.hasOwnProperty(e)?t.spacing[e]:e}function kI(e){var t=parseFloat(e),o=isNaN(t)?0:t,t=isNaN(t)?"":t.toString();return{value:o,unit:e.substring(t.toString().length)||"px"}}function wI(e,o){if(void 0===e||"number"==typeof e||""===e)return e;var t=e.split(" ");return t.length<2?xI(e,o):t.reduce(function(e,t){return xI(e,o)+" "+xI(t,o)})}var II,DI={root:"ms-StackItem"},TI={start:"flex-start",end:"flex-end"},EI=_I(function(e){var t=e.children,o=ur(e,Wn);return null==t?null:vI(CI(e,{root:"div"}).root,ht({},o),t)},{displayName:"StackItem",styles:function(e,t,o){var n=e.grow,r=e.shrink,i=e.disableShrink,s=e.align,a=e.verticalFill,l=e.order,c=e.className,e=zo(DI,t);return{root:[t.fonts.medium,e.root,{margin:o.margin,padding:o.padding,height:a?"100%":"auto",width:"auto"},n&&{flexGrow:!0===n?1:n},(i||!n&&!r)&&{flexShrink:0},r&&!i&&{flexShrink:1},s&&{alignSelf:TI[s]||s},l&&{order:l},c]}}}),PI={start:"flex-start",end:"flex-end"},RI={root:"ms-Stack",inner:"ms-Stack-inner"},MI=_I(function(e){var t=e.as,o=void 0===t?"div":t,n=e.disableShrink,r=e.wrap,i=mt(e,["as","disableShrink","wrap"]);1===(t=gt.Children.toArray(e.children)).length&>.isValidElement(t[0])&&t[0].type===gt.Fragment&&(t=t[0].props.children);t=gt.Children.map(t,function(e,t){return e?e&&"object"==typeof e&&e.type&&e.type.displayName===EI.displayName?gt.cloneElement(e,ht(ht({},{shrink:!n}),e.props)):e:null}),i=ur(i,Wn),o=CI(e,{root:o,inner:"div"});return vI(o.root,ht({},i),r?vI(o.inner,null,t):t)},{displayName:"Stack",styles:function(e,t,o){var n,r,i,s=e.verticalFill,a=e.horizontal,l=e.reversed,c=e.grow,u=e.wrap,d=e.horizontalAlign,p=e.verticalAlign,h=e.disableShrink,m=e.className,g=zo(RI,t),f=o&&o.childrenGap?o.childrenGap:e.gap,v=(o&&o.maxHeight?o:e).maxHeight,b=(o&&o.maxWidth?o:e).maxWidth,y=(o&&o.padding?o:e).padding,C=function(e,t){if(void 0===e||""===e)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if("number"==typeof e)return{rowGap:{value:e,unit:"px"},columnGap:{value:e,unit:"px"}};var o=e.split(" ");if(2<o.length)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(2===o.length)return{rowGap:kI(xI(o[0],t)),columnGap:kI(xI(o[1],t))};t=kI(xI(e,t));return{rowGap:t,columnGap:t}}(f,t),_=C.rowGap,o=C.columnGap,e=""+-.5*o.value+o.unit,f=""+-.5*_.value+_.unit,C={textOverflow:"ellipsis"},h={"> *:not(.ms-StackItem)":{flexShrink:h?0:1}};return u?{root:[g.root,{flexWrap:"wrap",maxWidth:b,maxHeight:v,width:"auto",overflow:"visible",height:"100%"},d&&((n={})[a?"justifyContent":"alignItems"]=PI[d]||d,n),p&&((n={})[a?"alignItems":"justifyContent"]=PI[p]||p,n),m,{display:"flex"},a&&{height:s?"100%":"auto"}],inner:[g.inner,{display:"flex",flexWrap:"wrap",marginLeft:e,marginRight:e,marginTop:f,marginBottom:f,overflow:"visible",boxSizing:"border-box",padding:wI(y,t),width:0===o.value?"100%":"calc(100% + "+o.value+o.unit+")",maxWidth:"100vw",selectors:ht({"> *":ht({margin:""+.5*_.value+_.unit+" "+.5*o.value+o.unit},C)},h)},d&&((r={})[a?"justifyContent":"alignItems"]=PI[d]||d,r),p&&((r={})[a?"alignItems":"justifyContent"]=PI[p]||p,r),a&&{flexDirection:l?"row-reverse":"row",height:0===_.value?"100%":"calc(100% + "+_.value+_.unit+")",selectors:{"> *":{maxWidth:0===o.value?"100%":"calc(100% - "+o.value+o.unit+")"}}},!a&&{flexDirection:l?"column-reverse":"column",height:"calc(100% + "+_.value+_.unit+")",selectors:{"> *":{maxHeight:0===_.value?"100%":"calc(100% - "+_.value+_.unit+")"}}}]}:{root:[g.root,{display:"flex",flexDirection:a?l?"row-reverse":"row":l?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:s?"100%":"auto",maxWidth:b,maxHeight:v,padding:wI(y,t),boxSizing:"border-box",selectors:ht(((C={"> *":C})[l?"> *:not(:last-child)":"> *:not(:first-child)"]=[a&&{marginLeft:""+o.value+o.unit},!a&&{marginTop:""+_.value+_.unit}],C),h)},c&&{flexGrow:!0===c?1:c},d&&((i={})[a?"justifyContent":"alignItems"]=PI[d]||d,i),p&&((i={})[a?"alignItems":"justifyContent"]=PI[p]||p,i),m]}},statics:{Item:EI}});(o=II=II||{})[o.Both=0]="Both",o[o.Header=1]="Header",o[o.Footer=2]="Footer";var NI,BI=(l(FI,NI=gt.Component),Object.defineProperty(FI.prototype,"root",{get:function(){return this._root.current},enumerable:!1,configurable:!0}),Object.defineProperty(FI.prototype,"placeholder",{get:function(){return this._placeHolder.current},enumerable:!1,configurable:!0}),Object.defineProperty(FI.prototype,"stickyContentTop",{get:function(){return this._stickyContentTop.current},enumerable:!1,configurable:!0}),Object.defineProperty(FI.prototype,"stickyContentBottom",{get:function(){return this._stickyContentBottom.current},enumerable:!1,configurable:!0}),Object.defineProperty(FI.prototype,"nonStickyContent",{get:function(){return this._nonStickyContent.current},enumerable:!1,configurable:!0}),Object.defineProperty(FI.prototype,"canStickyTop",{get:function(){return this.props.stickyPosition===II.Both||this.props.stickyPosition===II.Header},enumerable:!1,configurable:!0}),Object.defineProperty(FI.prototype,"canStickyBottom",{get:function(){return this.props.stickyPosition===II.Both||this.props.stickyPosition===II.Footer},enumerable:!1,configurable:!0}),FI.prototype.componentDidMount=function(){var e=this._getContext().scrollablePane;e&&(e.subscribe(this._onScrollEvent),e.addSticky(this))},FI.prototype.componentWillUnmount=function(){var e=this._getContext().scrollablePane;e&&(e.unsubscribe(this._onScrollEvent),e.removeSticky(this))},FI.prototype.componentDidUpdate=function(e,t){var o,n,r,i,s=this._getContext().scrollablePane;s&&(o=(i=this.state).isStickyBottom,n=i.isStickyTop,r=i.distanceFromTop,i=!1,t.distanceFromTop!==r&&(s.sortSticky(this,!0),i=!0),t.isStickyTop===n&&t.isStickyBottom===o||(this._activeElement&&this._activeElement.focus(),s.updateStickyRefHeights(),i=!0),i&&s.syncScrollSticky(this))},FI.prototype.shouldComponentUpdate=function(e,t){if(!this.context.scrollablePane)return!0;var o=this.state,n=o.isStickyTop,r=o.isStickyBottom,o=o.distanceFromTop;return n!==t.isStickyTop||r!==t.isStickyBottom||this.props.stickyPosition!==e.stickyPosition||this.props.children!==e.children||o!==t.distanceFromTop||AI(this._nonStickyContent,this._stickyContentTop)||AI(this._nonStickyContent,this._stickyContentBottom)||AI(this._nonStickyContent,this._placeHolder)},FI.prototype.render=function(){var e=this.state,t=e.isStickyTop,o=e.isStickyBottom,n=this.props,e=n.stickyClassName,n=n.children;return this.context.scrollablePane?gt.createElement("div",{ref:this._root},this.canStickyTop&>.createElement("div",{ref:this._stickyContentTop,style:{pointerEvents:t?"auto":"none"}},gt.createElement("div",{style:this._getStickyPlaceholderHeight(t)})),this.canStickyBottom&>.createElement("div",{ref:this._stickyContentBottom,style:{pointerEvents:o?"auto":"none"}},gt.createElement("div",{style:this._getStickyPlaceholderHeight(o)})),gt.createElement("div",{style:this._getNonStickyPlaceholderHeightAndWidth(),ref:this._placeHolder},(t||o)&>.createElement("span",{style:So},n),gt.createElement("div",{ref:this._nonStickyContent,className:t||o?e:void 0,style:this._getContentStyles(t||o)},n))):gt.createElement("div",null,this.props.children)},FI.prototype.addSticky=function(e){this.nonStickyContent&&e.appendChild(this.nonStickyContent)},FI.prototype.resetSticky=function(){this.nonStickyContent&&this.placeholder&&this.placeholder.appendChild(this.nonStickyContent)},FI.prototype.setDistanceFromTop=function(e){e=this._getNonStickyDistanceFromTop(e);this.setState({distanceFromTop:e})},FI.prototype._getContentStyles=function(e){return{backgroundColor:this.props.stickyBackgroundColor||this._getBackground(),overflow:e?"hidden":""}},FI.prototype._getStickyPlaceholderHeight=function(e){var t=this.nonStickyContent?this.nonStickyContent.offsetHeight:0;return{visibility:e?"hidden":"visible",height:e?0:t}},FI.prototype._getNonStickyPlaceholderHeightAndWidth=function(){var e=this.state,t=e.isStickyTop,e=e.isStickyBottom;if(t||e){t=0,e=0;return this.nonStickyContent&&this.nonStickyContent.firstElementChild&&(t=this.nonStickyContent.offsetHeight,e=this.nonStickyContent.firstElementChild.scrollWidth+(this.nonStickyContent.firstElementChild.offsetWidth-this.nonStickyContent.firstElementChild.clientWidth)),{height:t,width:e}}return{}},FI.prototype._getBackground=function(){if(this.root){for(var e=this.root;"rgba(0, 0, 0, 0)"===window.getComputedStyle(e).getPropertyValue("background-color")||"transparent"===window.getComputedStyle(e).getPropertyValue("background-color");){if("HTML"===e.tagName)return;e.parentElement&&(e=e.parentElement)}return window.getComputedStyle(e).getPropertyValue("background-color")}},FI.defaultProps={stickyPosition:II.Both,isScrollSynced:!0},FI.contextType=Rw,FI);function FI(e){var i=NI.call(this,e)||this;return i._root=gt.createRef(),i._stickyContentTop=gt.createRef(),i._stickyContentBottom=gt.createRef(),i._nonStickyContent=gt.createRef(),i._placeHolder=gt.createRef(),i.syncScroll=function(e){var t=i.nonStickyContent;t&&i.props.isScrollSynced&&(t.scrollLeft=e.scrollLeft)},i._getContext=function(){return i.context},i._onScrollEvent=function(e,t){var o,n,r;i.root&&i.nonStickyContent&&(o=i._getNonStickyDistanceFromTop(e),r=n=!1,i.canStickyTop&&(n=o-i._getStickyDistanceFromTop()<e.scrollTop),i.canStickyBottom&&e.clientHeight-t.offsetHeight<=o&&(r=o-Math.floor(e.scrollTop)>=i._getStickyDistanceFromTopForFooter(e,t)),document.activeElement&&i.nonStickyContent.contains(document.activeElement)&&(i.state.isStickyTop!==n||i.state.isStickyBottom!==r)?i._activeElement=document.activeElement:i._activeElement=void 0,i.setState({isStickyTop:i.canStickyTop&&n,isStickyBottom:r,distanceFromTop:o}))},i._getStickyDistanceFromTop=function(){var e=0;return e=i.stickyContentTop?i.stickyContentTop.offsetTop:e},i._getStickyDistanceFromTopForFooter=function(e,t){var o=0;return o=i.stickyContentBottom?e.clientHeight-t.offsetHeight+i.stickyContentBottom.offsetTop:o},i._getNonStickyDistanceFromTop=function(e){var t=0,o=i.root;if(o){for(;o&&o.offsetParent!==e;)t+=o.offsetTop,o=o.offsetParent;o&&o.offsetParent===e&&(t+=o.offsetTop)}return t},vi(i),i.state={isStickyTop:!1,isStickyBottom:!1,distanceFromTop:void 0},i._activeElement=void 0,i}function AI(e,t){return e&&t&&e.current&&t.current&&e.current.offsetHeight!==t.current.offsetHeight}var LI=Fn(),HI=Ao(function(e,t,o,n,r,i,s,a,l){e=np(e);return pn({root:["ms-Button",e.root,o,t,s&&["is-checked",e.rootChecked],i&&["is-disabled",e.rootDisabled],!i&&!s&&{selectors:{":hover":e.rootHovered,":focus":e.rootFocused,":active":e.rootPressed}},i&&s&&[e.rootCheckedDisabled],!i&&s&&{selectors:{":hover":e.rootCheckedHovered,":active":e.rootCheckedPressed}}],flexContainer:["ms-Button-flexContainer",e.flexContainer]})}),OI=function(e){var t=e.item,o=e.idPrefix,n=void 0===o?e.id:o,r=e.isRadio,i=e.selected,s=void 0!==i&&i,a=e.disabled,l=void 0!==a&&a,c=e.styles,u=e.circle,d=void 0===u||u,p=e.color,h=e.onClick,m=e.onHover,g=e.onFocus,f=e.onMouseEnter,v=e.onMouseMove,b=e.onMouseLeave,y=e.onWheel,o=e.onKeyDown,i=e.height,a=e.width,u=e.borderWidth,C=LI(c,{theme:e.theme,disabled:l,selected:s,circle:d,isWhite:"ffffff"===(null==(p=sg(p))?void 0:p.hex),height:i,width:a,borderWidth:u});return gt.createElement(Dp,ht({item:t,id:n+"-"+t.id+"-"+t.index,key:t.id,disabled:l},r?{role:"radio","aria-checked":s,selected:void 0}:{role:"gridcell",selected:s},{onRenderItem:function(e){var t=C.svg;return gt.createElement("svg",{className:t,role:"img","aria-label":e.label,viewBox:"0 0 20 20",fill:null===(e=sg(e.color))||void 0===e?void 0:e.str},d?gt.createElement("circle",{cx:"50%",cy:"50%",r:"50%"}):gt.createElement("rect",{width:"100%",height:"100%"}))},onClick:h,onHover:m,onFocus:g,label:t.label,className:C.colorCell,getClassNames:HI,index:t.index,onMouseEnter:f,onMouseMove:v,onMouseLeave:b,onWheel:y,onKeyDown:o}))},zI={left:-2,top:-2,bottom:-2,right:-2,border:"none",outlineColor:"ButtonText"},WI=In(OI,function(e){var t,o,n=e.theme,r=e.disabled,i=e.selected,s=e.circle,a=e.isWhite,l=e.height,c=void 0===l?20:l,u=e.width,d=void 0===u?20:u,p=e.borderWidth,h=n.semanticColors,m=n.palette,g=m.neutralLighter,l=m.neutralLight,u=m.neutralSecondary,e=m.neutralTertiary,m=p||(d<24?2:4);return{colorCell:[bo(n,{inset:-1,position:"relative",highContrastStyle:zI}),{backgroundColor:h.bodyBackground,padding:0,position:"relative",boxSizing:"border-box",display:"inline-block",cursor:"pointer",userSelect:"none",borderRadius:0,border:"none",height:c,width:d,verticalAlign:"top"},!s&&{selectors:((t={})["."+go+" &:focus::after"]={outlineOffset:m-1+"px"},t)},s&&{borderRadius:"50%",selectors:((p={})["."+go+" &:focus::after"]={outline:"none",borderColor:h.focusBorder,borderRadius:"50%",left:-m,right:-m,top:-m,bottom:-m,selectors:((t={})[Yt]={outline:"1px solid ButtonText"},t)},p)},i&&{padding:2,border:m+"px solid "+l,selectors:((o={})["&:hover::before"]={content:'""',height:c,width:d,position:"absolute",top:-m,left:-m,borderRadius:s?"50%":"default",boxShadow:"inset 0 0 0 1px "+u},o)},!i&&{selectors:((o={})["&:hover, &:active, &:focus"]={backgroundColor:h.bodyBackground,padding:2,border:m+"px solid "+g},o["&:focus"]={borderColor:h.bodyBackground,padding:0,selectors:{":hover":{borderColor:n.palette.neutralLight,padding:2}}},o)},r&&{color:h.disabledBodyText,pointerEvents:"none",opacity:.3},a&&!i&&{backgroundColor:e,padding:1}],svg:[{width:"100%",height:"100%"},s&&{borderRadius:"50%"}]}},void 0,{scope:"ColorPickerGridCell"},!0),VI=Fn(),KI=gt.forwardRef(function(n,e){var t=su("swatchColorPicker"),o=n.id||t,r=xl({isNavigationIdle:!0,cellFocused:!1,navigationIdleTimeoutId:void 0,navigationIdleDelay:250}),i=Em(),s=i.setTimeout,a=i.clearTimeout,l=n.colorCells,c=n.cellShape,u=void 0===c?"circle":c,d=n.columnCount,p=n.shouldFocusCircularNavigate,h=void 0===p||p,m=n.className,g=n.disabled,f=void 0!==g&&g,v=n.doNotContainWithinFocusZone,t=n.styles,i=n.cellMargin,c=void 0===i?10:i,p=n.defaultSelectedId,b=n.focusOnHover,y=n.mouseLeaveParentSelector,C=n.onChange,_=n.onColorChanged,S=n.onCellHovered,x=n.onCellFocused,k=n.getColorGridCellStyles,w=n.cellHeight,I=n.cellWidth,D=n.cellBorderWidth,g=gt.useMemo(function(){return l.map(function(e,t){return ht(ht({},e),{index:t})})},[l]),i=gt.useCallback(function(e,t){var o=null===(o=l.filter(function(e){return e.id===t})[0])||void 0===o?void 0:o.color;null==C||C(e,t,o),null==_||_(t,o)},[C,_,l]),i=Ah(n.selectedId,p,i),T=i[0],E=i[1],m=VI(t,{theme:n.theme,className:m,cellMargin:c}),c={root:m.root,tableCell:m.tableCell,focusedContainer:m.focusedContainer},P=l.length<=d,m=gt.useCallback(function(e){x&&(r.cellFocused=!1,x(void 0,void 0,e))},[r,x]),R=gt.useCallback(function(e){return b?(r.isNavigationIdle&&!f&&e.currentTarget.focus(),!0):!r.isNavigationIdle||!!f},[b,r,f]),M=gt.useCallback(function(e){if(!b)return!r.isNavigationIdle||!!f;e=e.currentTarget;return!r.isNavigationIdle||document&&e===document.activeElement||e.focus(),!0},[b,r,f]),N=gt.useCallback(function(e){if(b&&y&&r.isNavigationIdle&&!f)for(var t=document.querySelectorAll(y),o=0;o<t.length;o+=1)if(t[o].contains(e.currentTarget)){if(t[o].setActive)try{t[o].setActive()}catch(e){}else t[o].focus();break}},[f,b,r,y]),B=gt.useCallback(function(e,t){S&&(e?S(e.id,e.color,t):S(void 0,void 0,t))},[S]),F=gt.useCallback(function(e,t){if(x)return e?(r.cellFocused=!0,x(e.id,e.color,t)):(r.cellFocused=!1,x(void 0,void 0,t))},[r,x]),A=gt.useCallback(function(e,t){f||e.id!==T&&(x&&r.cellFocused&&(r.cellFocused=!1,x(void 0,void 0,t)),E(e.id,t))},[f,r,x,T,E]),L=gt.useCallback(function(){r.isNavigationIdle||void 0===r.navigationIdleTimeoutId?r.isNavigationIdle=!1:(a(r.navigationIdleTimeoutId),r.navigationIdleTimeoutId=void 0),r.navigationIdleTimeoutId=s(function(){r.isNavigationIdle=!0},r.navigationIdleDelay)},[a,r,s]),H=gt.useCallback(function(e){e.which!==Tn.up&&e.which!==Tn.down&&e.which!==Tn.left&&e.which!==Tn.right||L()},[L]),O=function(e){return gt.createElement(WI,{item:e,idPrefix:o,color:e.color,styles:k,disabled:f,onClick:A,onHover:B,onFocus:F,selected:T===e.id,circle:"circle"===u,label:e.label,onMouseEnter:R,onMouseMove:M,onMouseLeave:N,onWheel:L,onKeyDown:H,height:w,width:I,borderWidth:D,isRadio:P})};return l.length<1||d<1?null:gt.createElement(gp,ht({},n,{ref:e,id:o,items:g,columnCount:d,isSemanticRadio:P,onRenderItem:function(e,t){var o=n.onRenderColorCell;return(void 0===o?O:o)(e,O)},shouldFocusCircularNavigate:h,doNotContainWithinFocusZone:v,onBlur:m,theme:n.theme,styles:c}))});KI.displayName="SwatchColorPicker";function GI(e,t){var t=(o=t||{}).calloutWidth,o=o.calloutMaxWidth;return[{display:"block",maxWidth:364,border:0,outline:"transparent",width:t||"calc(100% + 1px)",animationName:""+XI(),animationDuration:"300ms",animationTimingFunction:"linear",animationFillMode:"both"},e&&{maxWidth:o||456}]}var UI={focusedContainer:"ms-swatchColorPickerBodyContainer"},jI=In(KI,function(e){var t=e.className,o=e.theme;return{root:{margin:"8px 0",borderCollapse:"collapse"},tableCell:{padding:e.cellMargin/2},focusedContainer:[zo(UI,o).focusedContainer,{clear:"both",display:"block",minWidth:"180px"},t]}},void 0,{scope:"SwatchColorPicker"}),qI=Fn(),YI=gt.forwardRef(function(e,t){var o,n,r,i,s,a,l=gt.useRef(null),c=Tl(),u=Sr(l,t),d=su("teaching-bubble-content-"),p=su("teaching-bubble-title-"),h=null!==(k=e.ariaDescribedBy)&&void 0!==k?k:d,m=null!==(w=e.ariaLabelledBy)&&void 0!==w?w:p,g=e.illustrationImage,f=e.primaryButtonProps,v=e.secondaryButtonProps,b=e.headline,y=e.hasCondensedHeadline,C=e.hasCloseButton,_=void 0===C?e.hasCloseIcon:C,S=e.onDismiss,x=e.closeButtonAriaLabel,t=e.hasSmallHeadline,k=e.isWide,d=e.styles,w=e.theme,p=e.footerContent,C=e.focusTrapZoneProps,k=qI(d,{theme:w,hasCondensedHeadline:y,hasSmallHeadline:t,hasCloseButton:_,hasHeadline:!!b,isWide:k,primaryButtonClassName:f?f.className:void 0,secondaryButtonClassName:v?v.className:void 0});return wl(c,"keydown",gt.useCallback(function(e){S&&e.which===Tn.escape&&S(e)},[S])),g&&g.src&&(o=gt.createElement("div",{className:k.imageContent},gt.createElement(Dr,ht({},g)))),b&&(i=gt.createElement("div",{className:k.header},gt.createElement("string"==typeof b?"p":"div",{role:"heading","aria-level":3,className:k.headline,id:m},b))),e.children&&(s="string"==typeof e.children?"p":"div",s=gt.createElement("div",{className:k.body},gt.createElement(s,{className:k.subText,id:h},e.children))),(f||v||p)&&(n=gt.createElement(MI,{className:k.footer,horizontal:!0,horizontalAlign:p?"space-between":"end"},gt.createElement(MI.Item,{align:"center"},gt.createElement("span",null,p)),gt.createElement(MI.Item,null,v&>.createElement(op,ht({},v,{className:k.secondaryButton})),f&>.createElement(ap,ht({},f,{className:k.primaryButton}))))),_&&(r=gt.createElement(id,{className:k.closeButton,iconProps:{iconName:"Cancel"},ariaLabel:x,onClick:S})),e=e.componentRef,a=l,gt.useImperativeHandle(e,function(){return{focus:function(){var e;return null===(e=a.current)||void 0===e?void 0:e.focus()}}},[a]),gt.createElement("div",{className:k.content,ref:u,role:"dialog",tabIndex:-1,"aria-labelledby":m,"aria-describedby":h,"data-is-focusable":!0},o,gt.createElement(Vh,ht({isClickableOutsideFocusTrap:!0},C),gt.createElement("div",{className:k.bodyContent},i,s,n,r)))}),ZI={root:"ms-TeachingBubble",body:"ms-TeachingBubble-body",bodyContent:"ms-TeachingBubble-bodycontent",closeButton:"ms-TeachingBubble-closebutton",content:"ms-TeachingBubble-content",footer:"ms-TeachingBubble-footer",header:"ms-TeachingBubble-header",headerIsCondensed:"ms-TeachingBubble-header--condensed",headerIsSmall:"ms-TeachingBubble-header--small",headerIsLarge:"ms-TeachingBubble-header--large",headline:"ms-TeachingBubble-headline",image:"ms-TeachingBubble-image",primaryButton:"ms-TeachingBubble-primaryButton",secondaryButton:"ms-TeachingBubble-secondaryButton",subText:"ms-TeachingBubble-subText",button:"ms-Button",buttonLabel:"ms-Button-label"},XI=Ao(function(){return O({"0%":{opacity:0,animationTimingFunction:we.easeFunction1,transform:"scale3d(.90,.90,.90)"},"100%":{opacity:1,transform:"scale3d(1,1,1)"}})}),r=function(e){var t=e.hasCondensedHeadline,o=e.hasSmallHeadline,n=e.hasCloseButton,r=e.hasHeadline,i=e.isWide,s=e.primaryButtonClassName,a=e.secondaryButtonClassName,l=e.theme,c=e.calloutProps,u=void 0===c?{className:void 0,theme:l}:c,d=!t&&!o,p=l.palette,h=l.semanticColors,e=l.fonts,c=zo(ZI,l),l=bo(l,{outlineColor:"transparent",borderColor:"transparent"});return{root:[c.root,e.medium,u.className],body:[c.body,n&&!r&&{marginRight:24},{selectors:{":not(:last-child)":{marginBottom:20}}}],bodyContent:[c.bodyContent,{padding:"20px 24px 20px 24px"}],closeButton:[c.closeButton,{position:"absolute",right:0,top:0,margin:"15px 15px 0 0",borderRadius:0,color:p.white,fontSize:e.small.fontSize,selectors:{":hover":{background:p.themeDarkAlt,color:p.white},":active":{background:p.themeDark,color:p.white},":focus":{border:"1px solid "+h.variantBorder}}}],content:$e($e([c.content],GI(i)),[i&&{display:"flex"}]),footer:[c.footer,{display:"flex",flex:"auto",alignItems:"center",color:p.white,selectors:((r={})["."+c.button+":not(:first-child)"]={marginLeft:10},r)}],header:$e($e([c.header],(h=c,r=o,t?[h.headerIsCondensed,{marginBottom:14}]:[r&&h.headerIsSmall,!r&&h.headerIsLarge,{selectors:{":not(:last-child)":{marginBottom:14}}}])),[n&&{marginRight:24},(t||o)&&[e.medium,{fontWeight:Fe.semibold}]]),headline:[c.headline,{margin:0,color:p.white,fontWeight:Fe.semibold,overflowWrap:"break-word"},d&&[{fontSize:e.xLarge.fontSize}]],imageContent:[c.header,c.image,i&&{display:"flex",alignItems:"center",maxWidth:154}],primaryButton:[c.primaryButton,s,l,{backgroundColor:p.white,borderColor:p.white,color:p.themePrimary,whiteSpace:"nowrap",selectors:((s={})["."+c.buttonLabel]=e.medium,s[":hover"]={backgroundColor:p.themeLighter,borderColor:p.themeLighter,color:p.themeDark},s[":focus"]={backgroundColor:p.themeLighter,border:"1px solid "+p.black,color:p.themeDark,outline:"1px solid "+p.white,outlineOffset:"-2px"},s[":active"]={backgroundColor:p.white,borderColor:p.white,color:p.themePrimary},s)}],secondaryButton:[c.secondaryButton,a,l,{backgroundColor:p.themePrimary,borderColor:p.white,whiteSpace:"nowrap",selectors:((l={})["."+c.buttonLabel]=[e.medium,{color:p.white}],l[":hover"]={backgroundColor:p.themeDarkAlt,borderColor:p.white},l[":focus"]={backgroundColor:p.themeDark,border:"1px solid "+p.black,outline:"1px solid "+p.white,outlineOffset:"-2px"},l[":active"]={backgroundColor:p.themePrimary,borderColor:p.white},l)}],subText:[c.subText,{margin:0,fontSize:e.medium.fontSize,color:p.white,fontWeight:Fe.regular}],subComponentStyles:{callout:{root:$e($e([],GI(i,u)),[e.medium]),beak:[{background:p.themePrimary}],calloutMain:[{background:p.themePrimary}]}}}},QI=In(YI,r,void 0,{scope:"TeachingBubbleContent"}),JI={beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1,directionalHint:Pa.rightCenter},$I=Fn(),eD=gt.forwardRef(function(e,t){var o,n=gt.useRef(null),r=Sr(n,t),i=e.calloutProps,s=e.targetElement,a=e.onDismiss,l=e.hasCloseButton,c=void 0===l?e.hasCloseIcon:l,u=e.isWide,d=e.styles,p=e.theme,t=e.target,l=gt.useMemo(function(){return ht(ht(ht({},JI),i),{theme:p})},[i,p]),d=$I(d,{theme:p,isWide:u,calloutProps:l,hasCloseButton:c}),u=d.subComponentStyles?d.subComponentStyles.callout:void 0;return c=e.componentRef,o=n,gt.useImperativeHandle(c,function(){return{focus:function(){var e;return null===(e=o.current)||void 0===e?void 0:e.focus()}}},[o]),gt.createElement(lc,ht({target:t||s,onDismiss:a},l,{className:d.root,styles:u,hideOverflow:!0}),gt.createElement("div",{ref:r},gt.createElement(QI,ht({},e))))});eD.displayName="TeachingBubble";var tD=In(eD,r,void 0,{scope:"TeachingBubble"}),oD=function(e){if(null==e.children)return null;e.block,e.className;var t=e.as,o=void 0===t?"span":t,t=(e.variant,e.nowrap,mt(e,["block","className","as","variant","nowrap"]));return vI(CI(e,{root:o}).root,ht({},ur(t,Wn)))},nD=function(e,t){var o=e.as,n=e.className,r=e.block,i=e.nowrap,s=e.variant,e=t.fonts,t=t.semanticColors,s=e[s||"medium"];return{root:[s,{color:s.color||t.bodyText,display:r?"td"===o?"table-cell":"block":"inline",mozOsxFontSmoothing:s.MozOsxFontSmoothing,webkitFontSmoothing:s.WebkitFontSmoothing},i&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},n]}},rD=_I(oD,{displayName:"Text",styles:nD}),iD={9:/[0-9]/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/};function sD(e,t){if(void 0===t&&(t=iD),!e)return[];for(var o=[],n=0,r=0;r+n<e.length;r++){var i=e.charAt(r+n);"\\"===i?n++:(i=t[i])&&o.push({displayIndex:r,format:i})}return o}function aD(e,t,o){if(!(n=e))return"";var n=n.replace(/\\/g,""),r=0;0<t.length&&(r=t[0].displayIndex-1);for(var i=0,s=t;i<s.length;i++){var a=s[i],l=" ";a.value?(l=a.value,a.displayIndex>r&&(r=a.displayIndex)):o&&(l=o),n=n.slice(0,a.displayIndex)+l+n.slice(a.displayIndex+1)}return n=!o?n.slice(0,r+1):n}function lD(e,t){for(var o=0;o<e.length;o++)if(e[o].displayIndex>=t)return e[o].displayIndex;return e[e.length-1].displayIndex}function cD(e,t,o){for(var n=0;n<e.length;n++)if(e[n].displayIndex>=t){if(e[n].displayIndex>=t+o)break;e[n].value=void 0}return e}function uD(e,t,o){for(var n=0,r=0,i=!1,s=0;s<e.length&&n<o.length;s++)if(e[s].displayIndex>=t)for(i=!0,r=e[s].displayIndex;n<o.length;){if(e[s].format.test(o.charAt(n))){e[s].value=o.charAt(n++),s+1<e.length?r=e[s+1].displayIndex:r++;break}n++}return i?r:t}var dD="_",pD=gt.forwardRef(function(e,t){var o,n,d=gt.useRef(null),r=e.componentRef,i=e.onFocus,s=e.onBlur,a=e.onMouseDown,l=e.onMouseUp,p=e.onChange,c=e.onPaste,u=e.onKeyDown,h=e.mask,m=e.maskChar,g=void 0===m?dD:m,f=e.maskFormat,v=void 0===f?iD:f,b=e.value,y=xl(function(){return{maskCharData:sD(h,v),isFocused:!1,moveCursorOnMouseUp:!1,changeSelectionData:null}}),C=gt.useState(),_=C[0],S=C[1],x=gt.useState(function(){return aD(h,y.maskCharData,g)}),k=x[0],w=x[1],I=gt.useCallback(function(e){for(var t=0,o=0;t<e.length&&o<y.maskCharData.length;){var n=e[t];y.maskCharData[o].format.test(n)&&(y.maskCharData[o].value=n,o++),t++}},[y]),D=gt.useCallback(function(e){null==i||i(e),y.isFocused=!0;for(var t=0;t<y.maskCharData.length;t++)if(!y.maskCharData[t].value){S(y.maskCharData[t].displayIndex);break}},[y,i]),T=gt.useCallback(function(e){null==s||s(e),y.isFocused=!1,y.moveCursorOnMouseUp=!0},[y,s]),E=gt.useCallback(function(e){null==a||a(e),y.isFocused||(y.moveCursorOnMouseUp=!0)},[y,a]),m=gt.useCallback(function(e){if(null==l||l(e),y.moveCursorOnMouseUp){y.moveCursorOnMouseUp=!1;for(var t=0;t<y.maskCharData.length;t++)if(!y.maskCharData[t].value){S(y.maskCharData[t].displayIndex);break}}},[y,l]),f=gt.useCallback(function(e,t){var o,n,r,i,s,a,l,c,u;null===y.changeSelectionData&&d.current&&(y.changeSelectionData={changeType:"default",selectionStart:null!==d.current.selectionStart?d.current.selectionStart:-1,selectionEnd:null!==d.current.selectionEnd?d.current.selectionEnd:-1}),y.changeSelectionData&&(s=0,i=(r=y.changeSelectionData).changeType,c=r.selectionStart,o=r.selectionEnd,"textPasted"===i?(l=t.length+(n=o-c)-k.length,r=t.substr(a=c,l),n&&(y.maskCharData=cD(y.maskCharData,c,n)),s=uD(y.maskCharData,a,r)):"delete"===i||"backspace"===i?(i="delete"===i,s=(l=o-c)?(y.maskCharData=cD(y.maskCharData,c,l),lD(y.maskCharData,c)):i?(y.maskCharData=function(e,t){for(var o=0;o<e.length;o++)if(e[o].displayIndex>=t){e[o].value=void 0;break}return e}(y.maskCharData,c),lD(y.maskCharData,c)):(y.maskCharData=function(e,t){for(var o=e.length-1;0<=o;o--)if(e[o].displayIndex<t){e[o].value=void 0;break}return e}(y.maskCharData,c),function(e,t){for(var o=e.length-1;0<=o;o--)if(e[o].displayIndex<t)return e[o].displayIndex;return e[0].displayIndex}(y.maskCharData,c))):t.length>k.length?(a=o-(l=t.length-k.length),u=t.substr(a,l),s=uD(y.maskCharData,a,u)):t.length<=k.length&&(c=k.length+(l=1)-t.length,u=t.substr(a=o-l,l),y.maskCharData=cD(y.maskCharData,a,c),s=uD(y.maskCharData,a,u)),y.changeSelectionData=null,u=aD(h,y.maskCharData,g),w(u),S(s),null==p||p(e,u))},[k.length,y,h,g,p]),C=gt.useCallback(function(e){var t,o,n;null==u||u(e),y.changeSelectionData=null,d.current&&d.current.value&&(t=e.keyCode,o=e.ctrlKey,n=e.metaKey,o||n||t!==Tn.backspace&&t!==Tn.del||(n=e.target.selectionStart,e=e.target.selectionEnd,(t===Tn.backspace&&e&&0<e||t===Tn.del&&null!==n&&n<d.current.value.length)&&(y.changeSelectionData={changeType:t===Tn.backspace?"backspace":"delete",selectionStart:null!==n?n:-1,selectionEnd:null!==e?e:-1})))},[y,u]),x=gt.useCallback(function(e){null==c||c(e);var t=e.target.selectionStart,e=e.target.selectionEnd;y.changeSelectionData={changeType:"textPasted",selectionStart:null!==t?t:-1,selectionEnd:null!==e?e:-1}},[y,c]);return gt.useEffect(function(){y.maskCharData=sD(h,v),void 0!==b&&I(b),w(aD(h,y.maskCharData,g))},[h,b]),_r(function(){void 0!==_&&d.current&&d.current.setSelectionRange(_,_)},[_]),gt.useEffect(function(){y.isFocused&&void 0!==_&&d.current&&d.current.setSelectionRange(_,_)}),o=y,n=d,gt.useImperativeHandle(r,function(){return{get value(){for(var e="",t=0;t<o.maskCharData.length;t++){if(!o.maskCharData[t].value)return;e+=o.maskCharData[t].value}return e},get selectionStart(){return n.current&&null!==n.current.selectionStart?n.current.selectionStart:-1},get selectionEnd(){return n.current&&n.current.selectionEnd?n.current.selectionEnd:-1},focus:function(){n.current&&n.current.focus()},blur:function(){n.current&&n.current.blur()},select:function(){n.current&&n.current.select()},setSelectionStart:function(e){n.current&&n.current.setSelectionStart(e)},setSelectionEnd:function(e){n.current&&n.current.setSelectionEnd(e)},setSelectionRange:function(e,t){n.current&&n.current.setSelectionRange(e,t)}}},[o,n]),gt.createElement(qg,ht({},e,{elementRef:t,onFocus:D,onBlur:T,onMouseDown:E,onMouseUp:m,onChange:f,onKeyDown:C,onPaste:x,value:k||"",componentRef:d}))});pD.displayName="MaskedTextField";var hD,mD,gD,fD=(vD.setSlot=function(e,t,o,n,r){if(void 0===o&&(o=!1),void 0===n&&(n=!1),void 0===r&&(r=!0),e.color||!e.value)if(r){var i=void 0;if("string"==typeof t){if(!(i=sg(t)))throw new Error("color is invalid in setSlot(): "+t)}else i=t;vD._setSlot(e,i,o,n,r)}else e.color&&vD._setSlot(e,e.color,o,n,r)},vD.insureSlots=function(e,t){for(var o in e)if(e.hasOwnProperty(o)){o=e[o];if(!o.inherits&&!o.value){if(!o.color)throw new Error("A color slot rule that does not inherit must provide its own color.");vD._setSlot(o,o.color,t,!1,!1)}}},vD.getThemeAsJson=function(e){var t,o,n={};for(t in e)e.hasOwnProperty(t)&&(n[(o=e[t]).name]=o.color?o.color.str:o.value||"");return n},vD.getThemeAsCode=function(e){return vD._makeRemainingCode("loadTheme({\n palette: {\n",e)},vD.getThemeAsCodeWithCreateTheme=function(e){return vD._makeRemainingCode("const myTheme = createTheme({\n palette: {\n",e)},vD.getThemeAsSass=function(e){var t,o,n,r="";for(t in e)e.hasOwnProperty(t)&&(r+=$p('${0}Color: "[theme: {1}, default: {2}]";\n',n=(o=e[t]).name.charAt(0).toLowerCase()+o.name.slice(1),n,o.color?o.color.str:o.value||""));return r},vD.getThemeForPowerShell=function(e){var t,o="";for(t in e)if(e.hasOwnProperty(t)){var n=e[t];if(n.value)continue;var r=n.name.charAt(0).toLowerCase()+n.name.slice(1),i=n.color?"#"+n.color.hex:n.value||"";n.color&&n.color.a&&100!==n.color.a&&(i+=String(n.color.a.toString(16))),o+=$p('"{0}" = "{1}";\n',r,i)}return"@{\n"+o+"}"},vD._setSlot=function(e,t,o,n,r){if(void 0===r&&(r=!0),(e.color||!e.value)&&(r||!e.color||!e.isCustomized||!e.inherits)){!r&&e.isCustomized||n||!e.inherits||!wg(e.asShade)?(e.color=t,e.isCustomized=!0):(e.isBackgroundShade?e.color=Pg(t,e.asShade,o):e.color=Eg(t,e.asShade,o),e.isCustomized=!1);for(var i=0,s=e.dependentRules;i<s.length;i++){var a=s[i];vD._setSlot(a,e.color,o,!1,r)}}},vD._makeRemainingCode=function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e+=$p(" {0}: '{1}',\n",(o=t[o]).name.charAt(0).toLowerCase()+o.name.slice(1),o.color?"#"+o.color.hex:o.value||""));return e+" }});"},vD);function vD(){}function bD(){var r={};function e(e,t,o,n){t=r[hD[t]],n={name:e,inherits:t,asShade:o,isCustomized:!1,isBackgroundShade:n=void 0===n?!1:n,dependentRules:[]};r[e]=n,t.dependentRules.push(n)}return ma(hD,function(n){r[n]={name:n,isCustomized:!0,dependentRules:[]},ma(fg,function(e,t){var o;e!==fg[fg.Unshaded]&&(o=r[n],t={name:n+e,inherits:r[n],asShade:t,isCustomized:!1,isBackgroundShade:n===hD[hD.backgroundColor],dependentRules:[]},r[n+e]=t,o.dependentRules.push(t))})}),r[hD[hD.primaryColor]].color=sg("#0078d4"),r[hD[hD.backgroundColor]].color=sg("#ffffff"),r[hD[hD.foregroundColor]].color=sg("#323130"),e(mD[mD.themePrimary],hD.primaryColor,fg.Unshaded),e(mD[mD.themeLighterAlt],hD.primaryColor,fg.Shade1),e(mD[mD.themeLighter],hD.primaryColor,fg.Shade2),e(mD[mD.themeLight],hD.primaryColor,fg.Shade3),e(mD[mD.themeTertiary],hD.primaryColor,fg.Shade4),e(mD[mD.themeSecondary],hD.primaryColor,fg.Shade5),e(mD[mD.themeDarkAlt],hD.primaryColor,fg.Shade6),e(mD[mD.themeDark],hD.primaryColor,fg.Shade7),e(mD[mD.themeDarker],hD.primaryColor,fg.Shade8),e(mD[mD.neutralLighterAlt],hD.backgroundColor,fg.Shade1,!0),e(mD[mD.neutralLighter],hD.backgroundColor,fg.Shade2,!0),e(mD[mD.neutralLight],hD.backgroundColor,fg.Shade3,!0),e(mD[mD.neutralQuaternaryAlt],hD.backgroundColor,fg.Shade4,!0),e(mD[mD.neutralQuaternary],hD.backgroundColor,fg.Shade5,!0),e(mD[mD.neutralTertiaryAlt],hD.backgroundColor,fg.Shade6,!0),e(mD[mD.neutralTertiary],hD.foregroundColor,fg.Shade3),e(mD[mD.neutralSecondary],hD.foregroundColor,fg.Shade4),e(mD[mD.neutralPrimaryAlt],hD.foregroundColor,fg.Shade5),e(mD[mD.neutralPrimary],hD.foregroundColor,fg.Unshaded),e(mD[mD.neutralDark],hD.foregroundColor,fg.Shade7),e(mD[mD.black],hD.foregroundColor,fg.Shade8),e(mD[mD.white],hD.backgroundColor,fg.Unshaded,!0),r[mD[mD.neutralLighterAlt]].color=sg("#faf9f8"),r[mD[mD.neutralLighter]].color=sg("#f3f2f1"),r[mD[mD.neutralLight]].color=sg("#edebe9"),r[mD[mD.neutralQuaternaryAlt]].color=sg("#e1dfdd"),r[mD[mD.neutralDark]].color=sg("#201f1e"),r[mD[mD.neutralTertiaryAlt]].color=sg("#c8c6c4"),r[mD[mD.black]].color=sg("#000000"),r[mD[mD.neutralDark]].color=sg("#201f1e"),r[mD[mD.neutralPrimaryAlt]].color=sg("#3b3a39"),r[mD[mD.neutralSecondary]].color=sg("#605e5c"),r[mD[mD.neutralTertiary]].color=sg("#a19f9d"),r[mD[mD.white]].color=sg("#ffffff"),r[mD[mD.themeDarker]].color=sg("#004578"),r[mD[mD.themeDark]].color=sg("#005a9e"),r[mD[mD.themeDarkAlt]].color=sg("#106ebe"),r[mD[mD.themeSecondary]].color=sg("#2b88d8"),r[mD[mD.themeTertiary]].color=sg("#71afe5"),r[mD[mD.themeLight]].color=sg("#c7e0f4"),r[mD[mD.themeLighter]].color=sg("#deecf9"),r[mD[mD.themeLighterAlt]].color=sg("#eff6fc"),r[mD[mD.neutralLighterAlt]].isCustomized=!0,r[mD[mD.neutralLighter]].isCustomized=!0,r[mD[mD.neutralLight]].isCustomized=!0,r[mD[mD.neutralQuaternaryAlt]].isCustomized=!0,r[mD[mD.neutralDark]].isCustomized=!0,r[mD[mD.neutralTertiaryAlt]].isCustomized=!0,r[mD[mD.black]].isCustomized=!0,r[mD[mD.neutralDark]].isCustomized=!0,r[mD[mD.neutralPrimaryAlt]].isCustomized=!0,r[mD[mD.neutralSecondary]].isCustomized=!0,r[mD[mD.neutralTertiary]].isCustomized=!0,r[mD[mD.white]].isCustomized=!0,r[mD[mD.themeDarker]].isCustomized=!0,r[mD[mD.themeDark]].isCustomized=!0,r[mD[mD.themeDarkAlt]].isCustomized=!0,r[mD[mD.themePrimary]].isCustomized=!0,r[mD[mD.themeSecondary]].isCustomized=!0,r[mD[mD.themeTertiary]].isCustomized=!0,r[mD[mD.themeLight]].isCustomized=!0,r[mD[mD.themeLighter]].isCustomized=!0,r[mD[mD.themeLighterAlt]].isCustomized=!0,r}(i=hD=hD||{})[i.primaryColor=0]="primaryColor",i[i.backgroundColor=1]="backgroundColor",i[i.foregroundColor=2]="foregroundColor",(W=mD=mD||{})[W.themePrimary=0]="themePrimary",W[W.themeLighterAlt=1]="themeLighterAlt",W[W.themeLighter=2]="themeLighter",W[W.themeLight=3]="themeLight",W[W.themeTertiary=4]="themeTertiary",W[W.themeSecondary=5]="themeSecondary",W[W.themeDarkAlt=6]="themeDarkAlt",W[W.themeDark=7]="themeDark",W[W.themeDarker=8]="themeDarker",W[W.neutralLighterAlt=9]="neutralLighterAlt",W[W.neutralLighter=10]="neutralLighter",W[W.neutralLight=11]="neutralLight",W[W.neutralQuaternaryAlt=12]="neutralQuaternaryAlt",W[W.neutralQuaternary=13]="neutralQuaternary",W[W.neutralTertiaryAlt=14]="neutralTertiaryAlt",W[W.neutralTertiary=15]="neutralTertiary",W[W.neutralSecondary=16]="neutralSecondary",W[W.neutralPrimaryAlt=17]="neutralPrimaryAlt",W[W.neutralPrimary=18]="neutralPrimary",W[W.neutralDark=19]="neutralDark",W[W.black=20]="black",W[W.white=21]="white",(t=gD=gD||{})[t.bodyBackground=0]="bodyBackground",t[t.bodyText=1]="bodyText",t[t.disabledBackground=2]="disabledBackground",t[t.disabledText=3]="disabledText";var yD=/^((1[0-2]|0?[1-9]):([0-5][0-9]):([0-5][0-9])\s([AaPp][Mm]))$/,CD=/^((1[0-2]|0?[1-9]):[0-5][0-9]\s([AaPp][Mm]))$/,_D=/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$/,SD=/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/,xD=function(e){var t=e.label,o=e.increments,n=void 0===o?30:o,r=e.showSeconds,c=void 0!==r&&r,i=e.allowFreeform,u=void 0===i||i,s=e.useHour12,d=void 0!==s&&s,a=e.timeRange,l=e.strings,p=void 0===l?{invalidInputErrorMessage:"Enter a valid time in the "+(d?"12-hour":"24-hour")+" format: hh:mm"+(c?":ss":"")+(d?" AP":"")}:l,o=e.defaultValue,h=e.onChange,m=e.onFormatDate,g=e.onValidateUserInput,r=mt(e,["label","increments","showSeconds","allowFreeform","useHour12","timeRange","strings","defaultValue","onChange","onFormatDate","onValidateUserInput"]),i=gt.useState(""),s=i[0],f=i[1],l=gt.useState(""),e=l[0],v=l[1],b=ID(n,a),y=xl(o||new Date),C=gt.useMemo(function(){return wD(n,a,y)},[n,a,y]),i=gt.useMemo(function(){for(var e=Array(b),t=0;t<b;t++)e[t]=0;return e.map(function(e,t){var o,t=(o=n*t,(t=new Date(C.getTime())).setTime(t.getTime()+o*Ep.MinutesInOneHour*Ep.MillisecondsIn1Sec),t);t.setSeconds(0);t=m?m(t):t.toLocaleTimeString([],{hour:"numeric",minute:"2-digit",second:c?"2-digit":void 0,hour12:d});return{key:t,text:t}})},[C,n,b,c,m,d]),l=gt.useState(i[0].key),o=l[0],_=l[1],l=gt.useCallback(function(e,t,o,n){var s,r,i=null==t?void 0:t.key,a="",l="";n?(u&&!t&&(m?g&&(l=g(n)):(r="",l=r=(d?c?yD:CD:c?_D:SD).test(n)?r:p.invalidInputErrorMessage)),a=n):t&&(a=t.text),h&&!l&&(s=n||(null==t?void 0:t.text)||"",t=function(e,t){var o=Ep.TimeFormatRegex.exec(s)||[],n=o[1],r=o[2],i=o[3],o=o[4],n=+n,r=+r,i=i?+i:0;e&&o&&("pm"===o.toLowerCase()&&n!==Ep.OffsetTo24HourFormat?n+=Ep.OffsetTo24HourFormat:"am"===o.toLowerCase()&&n===Ep.OffsetTo24HourFormat&&(n-=Ep.OffsetTo24HourFormat));n=t.getHours()>n||t.getHours()===n&&t.getMinutes()>r?Ep.HoursInOneDay-t.getHours()+n:Math.abs(t.getHours()-n),n=Ep.MillisecondsIn1Sec*Ep.MinutesInOneHour*n*Ep.SecondsInOneMinute+i*Ep.MillisecondsIn1Sec,n=new Date(t.getTime()+n);return n.setMinutes(r),n.setSeconds(i),n}(d,C),h(e,t)),v(l),f(a),_(i)},[C,u,h,m,g,c,d,p.invalidInputErrorMessage]);return gt.createElement(kf,ht({},r,{allowFreeform:u,selectedKey:o,label:t,errorMessage:e,options:i,onChange:l,text:s,onKeyPress:function(e){m||e.charCode>=Tn.zero&&e.charCode<=Tn.colon||e.charCode===Tn.space||e.charCode===Tn.a||e.charCode===Tn.m||e.charCode===Tn.p||e.preventDefault()}}))};xD.displayName="TimePicker";function kD(e){return{start:Math.min(Math.max(e.start,0),23),end:Math.min(Math.max(e.end,0),23)}}var wD=function(e,t,i){return t&&(t=kD(t),i.setHours(t.start)),function(e){var t=new Date(i.getTime()),o=t.getMinutes();if(Ep.MinutesInOneHour%e)t.setMinutes(0);else{for(var n=Ep.MinutesInOneHour/e,r=1;r<=n;r++)if(e*(r-1)<o&&o<=e*r){o=e*r;break}t.setMinutes(o)}return t}(e)},ID=function(e,t){var o,n=Ep.HoursInOneDay;return t&&((o=kD(t)).start>o.end?n=Ep.HoursInOneDay-t.start-t.end:t.end>t.start&&(n=t.end-t.start)),Math.floor(Ep.MinutesInOneHour*n/e)},DD=Fn(),TD=gt.forwardRef(function(e,t){var o=e.as,n=void 0===o?"div":o,r=e.ariaLabel,i=e.checked,s=e.className,a=e.defaultChecked,l=e.disabled,c=e.inlineLabel,u=e.label,d=e.offAriaLabel,p=e.offText,h=e.onAriaLabel,m=e.onChange,g=e.onChanged,f=e.onClick,v=e.onText,b=e.role,y=e.styles,C=e.theme,o=Ah(i,void 0!==a&&a,gt.useCallback(function(e,t){null==m||m(e,t),null==g||g(t)},[m,g])),_=o[0],S=o[1],i=DD(y,{theme:C,className:s,disabled:l,checked:_,inlineLabel:c,onOffMissing:!v&&!p}),a=_?h:d,o=su("Toggle",e.id),y=o+"-label",C=o+"-stateText",s=_?v:p,c=ur(e,Zn,["defaultChecked"]),h=void 0;r||a||(u&&(h=y),s&&!h&&(h=C));d=gt.useRef(null);oa(d),PD(e,_,d);C={root:{className:i.root,hidden:c.hidden},label:{children:u,className:i.label,htmlFor:o,id:y},container:{className:i.container},pill:ht(ht({},c),{"aria-disabled":l,"aria-checked":_,"aria-label":r||a,"aria-labelledby":h,className:i.pill,"data-is-focusable":!0,"data-ktp-target":!0,disabled:l,id:o,onClick:function(e){l||(S(!_,e),f&&f(e))},ref:d,role:b||"switch",type:"button"}),thumb:{className:i.thumb},stateText:{children:s,className:i.text,htmlFor:o,id:C}};return gt.createElement(n,ht({ref:t},C.root),u&>.createElement(om,ht({},C.label)),gt.createElement("div",ht({},C.container),gt.createElement("button",ht({},C.pill),gt.createElement("span",ht({},C.thumb))),(_&&v||p)&>.createElement(om,ht({},C.stateText))))});TD.displayName="ToggleBase";function ED(){return("undefined"!=typeof performance&&performance.now?performance:Date).now()}var PD=function(e,t,o){gt.useImperativeHandle(e.componentRef,function(){return{get checked(){return!!t},focus:function(){o.current&&o.current.focus()}}},[t,o])},RD=In(TD,function(e){var t=e.theme,o=e.className,n=e.disabled,r=e.checked,i=e.inlineLabel,s=e.onOffMissing,a=t.semanticColors,l=t.palette,c=a.bodyBackground,u=a.inputBackgroundChecked,d=a.inputBackgroundCheckedHovered,p=l.neutralDark,h=a.disabledBodySubtext,m=a.smallInputBorder,g=a.inputForegroundChecked,f=a.disabledBodySubtext,v=a.disabledBackground,b=a.smallInputBorder,e=a.inputBorderHovered,l=a.disabledBodySubtext,a=a.disabledText;return{root:["ms-Toggle",r&&"is-checked",!n&&"is-enabled",n&&"is-disabled",t.fonts.medium,{marginBottom:"8px"},i&&{display:"flex",alignItems:"center"},o],label:["ms-Toggle-label",{display:"inline-block"},n&&{color:a,selectors:((o={})[Yt]={color:"GrayText"},o)},i&&!s&&{marginRight:16},s&&i&&{order:1,marginLeft:16},i&&{wordBreak:"break-word"}],container:["ms-Toggle-innerContainer",{display:"flex",position:"relative"}],pill:["ms-Toggle-background",bo(t,{inset:-3}),{fontSize:"20px",boxSizing:"border-box",width:40,height:20,borderRadius:10,transition:"all 0.1s ease",border:"1px solid "+b,background:c,cursor:"pointer",display:"flex",alignItems:"center",padding:"0 3px"},!n&&[!r&&{selectors:{":hover":[{borderColor:e}],":hover .ms-Toggle-thumb":[{backgroundColor:p,selectors:((p={})[Yt]={borderColor:"Highlight"},p)}]}},r&&[{background:u,borderColor:"transparent",justifyContent:"flex-end"},{selectors:((d={":hover":[{backgroundColor:d,borderColor:"transparent",selectors:((d={})[Yt]={backgroundColor:"Highlight"},d)}]})[Yt]=ht({backgroundColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),d)}]],n&&[{cursor:"default"},!r&&[{borderColor:l}],r&&[{backgroundColor:h,borderColor:"transparent",justifyContent:"flex-end"}]],!n&&{selectors:{"&:hover":{selectors:((h={})[Yt]={borderColor:"Highlight"},h)}}}],thumb:["ms-Toggle-thumb",{display:"block",width:12,height:12,borderRadius:"50%",transition:"all 0.1s ease",backgroundColor:m,borderColor:"transparent",borderWidth:6,borderStyle:"solid",boxSizing:"border-box"},!n&&r&&[{backgroundColor:g,selectors:((g={})[Yt]={backgroundColor:"Window",borderColor:"Window"},g)}],n&&[!r&&[{backgroundColor:f}],r&&[{backgroundColor:v}]]],text:["ms-Toggle-stateText",{selectors:{"&&":{padding:"0",margin:"0 8px",userSelect:"none",fontWeight:Fe.regular}}},n&&{selectors:{"&&":{color:a,selectors:((a={})[Yt]={color:"GrayText"},a)}}}]}},void 0,{scope:"Toggle"}),MD=(BD.measure=function(e,t){BD._timeoutId&&BD.setPeriodicReset();var o=ED();t();var n=ED(),t=BD.summary[e]||{totalDuration:0,count:0,all:[]},o=n-o;t.totalDuration+=o,t.count++,t.all.push({duration:o,timeStamp:n}),BD.summary[e]=t},BD.reset=function(){BD.summary={},clearTimeout(BD._timeoutId),BD._timeoutId=NaN},BD.setPeriodicReset=function(){BD._timeoutId=setTimeout(function(){return BD.reset()},18e4)},BD.summary={},BD),ND="undefined"!=typeof WeakMap?new WeakMap:void 0;function BD(){}function FD(o){var t,n=(l(e,t=gt.Component),e.prototype.render=function(){var e=this.props,t=e.forwardedRef,o=e.asyncPlaceholder,n=mt(e,["forwardedRef","asyncPlaceholder"]),e=this.state.Component;return e?gt.createElement(e,ht(ht({},n),{ref:t})):o?gt.createElement(o,null):null},e.prototype.componentDidMount=function(){var t=this;this.state.Component||o.load().then(function(e){e&&(ND&&ND.set(o.load,e),t.setState({Component:e},o.onLoad))}).catch(o.onError)},e);function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={Component:ND?ND.get(o.load):void 0},e}return gt.forwardRef(function(e,t){return gt.createElement(n,ht({},e,{forwardedRef:t}))})}function AD(e){throw new Error("Unexpected object: "+e)}function LD(e,t){void 0===t&&(t=!0);var o=[];if(e){for(var n=0;n<e.children.length;n++)o.push(e.children.item(n));t&&Zi(e)&&o.push.apply(o,e._virtual.children)}return o}var HD="";function OD(e){return HD+e}function zD(e){HD=e}function WD(e){var t=e||qe();t&&!0!==(null===(e=t.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&(t.__hasInitializeFocusRects__||(t.__hasInitializeFocusRects__=!0,t.addEventListener("mousedown",VD,!0),t.addEventListener("pointerdown",KD,!0),t.addEventListener("keydown",GD,!0)))}function VD(e){vo(!1,e.target)}function KD(e){"mouse"!==e.pointerType&&vo(!1,e.target)}function GD(e){Js(e.which)&&vo(!0,e.target)}function UD(e){var t,o,o=(t="MouseEvents","function"==typeof Event?o=new Event(t):(o=document.createEvent("Event")).initEvent(t,!0,!0),o);o.initEvent("click",!0,!0),e.dispatchEvent(o)}var jD,qD=function(n){var r;return function(e,t){r||(r=new Set,fi(n,{componentWillUnmount:function(){r.forEach(function(e){return clearTimeout(e)})}}));var o=setTimeout(function(){r.delete(o),e()},t);r.add(o)}},YD=ht(ht({},xe),{prevWeekAriaLabel:"Previous week",nextWeekAriaLabel:"Next week",prevMonthAriaLabel:"Go to previous month",nextMonthAriaLabel:"Go to next month",prevYearAriaLabel:"Go to previous year",nextYearAriaLabel:"Go to next year",closeButtonAriaLabel:"Close date picker"}),ZD={leftNavigation:"ChevronLeft",rightNavigation:"ChevronRight"},XD=Fn(),K=(l(nT,jD=gt.Component),nT.getDerivedStateFromProps=function(e,t){var o=e.initialDate&&!isNaN(e.initialDate.getTime())?e.initialDate:e.today||new Date,n=!!e.showFullMonth,e=n!==t.previousShowFullMonth?uh.Vertical:uh.Horizontal;return Op(o,t.selectedDate)?{selectedDate:o,navigatedDate:t.navigatedDate,previousShowFullMonth:n,animationDirection:e}:{selectedDate:o,navigatedDate:o,previousShowFullMonth:n,animationDirection:e}},nT.prototype.focus=function(){this._dayGrid&&this._dayGrid.current&&this._dayGrid.current.focus()},nT.prototype.render=function(){var e=this.props,t=e.strings,o=e.dateTimeFormatter,n=e.firstDayOfWeek,r=e.minDate,i=e.maxDate,s=e.restrictedDates,a=e.today,l=e.styles,c=e.theme,u=e.className,d=e.showFullMonth,p=e.weeksToShow,e=mt(e,["strings","dateTimeFormatter","firstDayOfWeek","minDate","maxDate","restrictedDates","today","styles","theme","className","showFullMonth","weeksToShow"]),u=XD(l,{theme:c,className:u});return gt.createElement("div",{className:u.root,onKeyDown:this._onWrapperKeyDown,onTouchStart:this._onTouchStart,onTouchMove:this._onTouchMove,"aria-expanded":d},this._renderPreviousWeekNavigationButton(u),gt.createElement(hh,ht({styles:l,componentRef:this._dayGrid,strings:t,selectedDate:this.state.selectedDate,navigatedDate:this.state.navigatedDate,firstDayOfWeek:n,firstWeekOfYear:wp.FirstDay,dateRangeType:Ip.Day,weeksToShow:d?p:1,dateTimeFormatter:o,minDate:r,maxDate:i,restrictedDates:s,onSelectDate:this._onSelectDate,onNavigateDate:this._onNavigateDate,today:a,lightenDaysOutsideNavigatedMonth:d,animationDirection:this.state.animationDirection},e)),this._renderNextWeekNavigationButton(u))},nT.prototype.componentDidUpdate=function(){this._focusOnUpdate&&(this.focus(),this._focusOnUpdate=!1)},nT.defaultProps={onSelectDate:void 0,initialDate:void 0,today:new Date,firstDayOfWeek:xp.Sunday,strings:YD,navigationIcons:ZD,dateTimeFormatter:Y,animationDirection:uh.Horizontal},nT),QD={root:"ms-WeeklyDayPicker-root"},JD=In(K,function(e){var t=e.className,o=e.theme,n=o.palette,e=zo(QD,o);return{root:[e.root,Uo,{width:220,padding:12,boxSizing:"content-box",display:"flex",alignItems:"center",flexDirection:"row"},t],dayButton:{borderRadius:"100%"},dayIsToday:{},dayCell:{borderRadius:"100%!important"},daySelected:{},navigationIconButton:[bo(o,{inset:0}),{width:12,minWidth:12,height:0,overflow:"hidden",padding:0,margin:0,border:"none",display:"flex",alignItems:"center",backgroundColor:n.neutralLighter,fontSize:Be.small,fontFamily:"inherit",selectors:((o={})["."+e.root+":hover &, ."+go+" ."+e.root+":focus &, ."+go+" &:focus"]={height:53,minHeight:12,overflow:"initial"},o["."+go+" ."+e.root+":focus-within &"]={height:53,minHeight:12,overflow:"initial"},o["&:hover"]={cursor:"pointer",backgroundColor:n.neutralLight},o["&:active"]={backgroundColor:n.neutralTertiary},o)}],disabledStyle:{selectors:{"&, &:disabled, & button":{color:n.neutralTertiaryAlt,pointerEvents:"none"}}}}},void 0,{scope:"WeeklyDayPicker"}),$D=gt.createContext(void 0),eT=function(){var e=(0,gt.useContext)($D),t=kn(["theme"]).theme;return e||t||At({})},tT=function(){return 0},oT=function(e,t){return hn(Array.isArray(e)?e:[e],t)};function nT(e){var i=jD.call(this,e)||this;i._dayGrid=gt.createRef(),i._onSelectDate=function(e){var t=i.props.onSelectDate;i.setState({selectedDate:e}),i._focusOnUpdate=!0,t&&t(e)},i._onNavigateDate=function(e,t){var o=i.props.onNavigateDate;i.setState({navigatedDate:e}),i._focusOnUpdate=t,o&&o(e)},i._renderPreviousWeekNavigationButton=function(e){var t=i.props,o=t.minDate,n=t.firstDayOfWeek,r=t.navigationIcons,t=i.state.navigatedDate,r=Pn()?r.rightNavigation:r.leftNavigation,t=!o||zp(o,Up(t,n))<0;return gt.createElement("button",{className:Pr(e.navigationIconButton,((n={})[e.disabledStyle]=!t,n)),disabled:!t,"aria-disabled":!t,onClick:t?i._onSelectPrevDateRange:void 0,onKeyDown:t?i._onButtonKeyDown(i._onSelectPrevDateRange):void 0,title:i._createPreviousWeekAriaLabel(),type:"button"},gt.createElement(Vr,{iconName:r}))},i._renderNextWeekNavigationButton=function(e){var t=i.props,o=t.maxDate,n=t.firstDayOfWeek,r=t.navigationIcons,t=i.state.navigatedDate,r=Pn()?r.leftNavigation:r.rightNavigation,n=!o||zp(Pp(Up(t,n),7),o)<0;return gt.createElement("button",{className:Pr(e.navigationIconButton,((o={})[e.disabledStyle]=!n,o)),disabled:!n,"aria-disabled":!n,onClick:n?i._onSelectNextDateRange:void 0,onKeyDown:n?i._onButtonKeyDown(i._onSelectNextDateRange):void 0,title:i._createNextWeekAriaLabel(),type:"button"},gt.createElement(Vr,{iconName:r}))},i._onSelectPrevDateRange=function(){i.props.showFullMonth?i._navigateDate(Mp(i.state.navigatedDate,-1)):i._navigateDate(Pp(i.state.navigatedDate,-7))},i._onSelectNextDateRange=function(){i.props.showFullMonth?i._navigateDate(Mp(i.state.navigatedDate,1)):i._navigateDate(Pp(i.state.navigatedDate,7))},i._navigateDate=function(e){i.setState({navigatedDate:e}),i.props.onNavigateDate&&i.props.onNavigateDate(e)},i._onWrapperKeyDown=function(e){switch(e.which){case Tn.enter:case Tn.backspace:e.preventDefault()}},i._onButtonKeyDown=function(t){return function(e){e.which===Tn.enter&&t()}},i._onTouchStart=function(e){e=e.touches[0];e&&(i._initialTouchX=e.clientX)},i._onTouchMove=function(e){var t=Pn(),e=e.touches[0];e&&void 0!==i._initialTouchX&&e.clientX!==i._initialTouchX&&((e.clientX-i._initialTouchX)*(t?-1:1)<0?i._onSelectNextDateRange():i._onSelectPrevDateRange(),i._initialTouchX=void 0)},i._createPreviousWeekAriaLabel=function(){var e=i.props,t=e.strings,o=e.showFullMonth,n=e.firstDayOfWeek,r=i.state.navigatedDate,e=void 0;return o&&t.prevMonthAriaLabel?e=t.prevMonthAriaLabel+" "+t.months[Mp(r,-1).getMonth()]:!o&&t.prevWeekAriaLabel&&(r=Up(Pp(r,-7),n),n=Pp(r,6),e=t.prevWeekAriaLabel+" "+i._formatDateRange(r,n)),e},i._createNextWeekAriaLabel=function(){var e=i.props,t=e.strings,o=e.showFullMonth,n=e.firstDayOfWeek,r=i.state.navigatedDate,e=void 0;return o&&t.nextMonthAriaLabel?e=t.nextMonthAriaLabel+" "+t.months[Mp(r,1).getMonth()]:!o&&t.nextWeekAriaLabel&&(r=Up(Pp(r,7),n),n=Pp(r,6),e=t.nextWeekAriaLabel+" "+i._formatDateRange(r,n)),e},i._formatDateRange=function(e,t){var o=i.props,n=o.dateTimeFormatter,o=o.strings;return(null==n?void 0:n.formatMonthDayYear(e,o))+" - "+(null==n?void 0:n.formatMonthDayYear(t,o))},vi(i);var t=e.initialDate&&!isNaN(e.initialDate.getTime())?e.initialDate:e.today||new Date;return i.state={selectedDate:t,navigatedDate:t,previousShowFullMonth:!!e.showFullMonth,animationDirection:e.animationDirection},i._focusOnUpdate=!1,i}function rT(i){var s=new Map;return function(e){var t=(e=void 0===e?{}:e).theme,o=Dl(),n=eT(),t=t||n,e=tT(),n="function"==typeof i,r=n?[e,o,t]:[e,o],e=function(e){for(var t=0,o=r;t<o.length;t++)if(!(e=e.get(o[t])))return;return e}(s);return e||(n=n?i(t):i,e=oT(n,{targetWindow:o,rtl:!!t.rtl}),function(e,t,o){for(var n=0;n<t.length-1;n++){var r=t[n],i=e.get(r);i||(i=new Map,e.set(r,i)),e=i}e.set(t[t.length-1],o)}(s,r,e)),e}}function iT(e){var t=e.theme,o=e.customizerContext,n=e.as||"div",e="string"==typeof e.as?Bv(e.as,e):fa(e,["as"]);return gt.createElement($D.Provider,{value:t},gt.createElement(xn.Provider,{value:o},gt.createElement(n,ht({},e))))}var sT,aT,lT,cT=rT(function(e){var t=e.semanticColors,e=e.fonts;return{body:[{color:t.bodyText,background:t.bodyBackground,fontFamily:e.medium.fontFamily,fontWeight:e.medium.fontWeight,fontSize:e.medium.fontSize,MozOsxFontSmoothing:e.medium.MozOsxFontSmoothing,WebkitFontSmoothing:e.medium.WebkitFontSmoothing}]}}),uT=new Map,dT=gt.forwardRef(function(e,t){var o,n,r,i,s,a,l,c,u=(l=e,c=Hn({ref:Sr(t,gt.useRef(null)),as:"div",applyTo:"element"},l),o=(l=c).theme,n=eT(),r=l.theme=gt.useMemo(function(){var e=Bt(n,o);return e.id=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var o=[],n=0,r=e;n<r.length;n++){var i,s=r[n];s&&((i=s.id||uT.get(s))||(i=Ss(""),uT.set(s,i)),o.push(i))}return o.join("-")}(n,o),e},[n,o]),l.customizerContext=gt.useMemo(function(){return{customizations:{inCustomizerContext:!0,settings:{theme:r},scopedSettings:r.components||{}}}},[r]),l.theme.rtl!==n.rtl&&(l.dir=l.theme.rtl?"rtl":"ltr"),{state:c,render:iT}),d=u.render,p=u.state;return t=cT(e=p),l=e.className,c=e.applyTo,i=[t.root,t.body],s="body"===e.applyTo,a=null===(u=Tl())||void 0===u?void 0:u.body,gt.useEffect(function(){if(s&&a){for(var e=0,t=i;e<t.length;e++){var o=t[e];o&&a.classList.add(o)}return function(){if(s&&a)for(var e=0,t=i;e<t.length;e++){var o=t[e];o&&a.classList.remove(o)}}}},[s,a,i]),e.className=Pr(l,t.root,"element"===c&&t.body),oa(p.ref),d(p)});dT.displayName="ThemeProvider",(s=sT=sT||{}).shade30="#004578",s.shade20="#005a9e",s.shade10="#106ebe",s.primary="#0078d4",s.tint10="#2b88d8",s.tint20="#c7e0f4",s.tint30="#deecf9",s.tint40="#eff6fc",(ke=aT=aT||{}).black="#000000",ke.gray220="#11100f",ke.gray210="#161514",ke.gray200="#1b1a19",ke.gray190="#201f1e",ke.gray180="#252423",ke.gray170="#292827",ke.gray160="#323130",ke.gray150="#3b3a39",ke.gray140="#484644",ke.gray130="#605e5c",ke.gray120="#797775",ke.gray110="#8a8886",ke.gray100="#979593",ke.gray90="#a19f9d",ke.gray80="#b3b0ad",ke.gray70="#bebbb8",ke.gray60="#c8c6c4",ke.gray50="#d2d0ce",ke.gray40="#e1dfdd",ke.gray30="#edebe9",ke.gray20="#f3f2f1",ke.gray10="#faf9f8",ke.white="#ffffff",(U=lT=lT||{}).pinkRed10="#750b1c",U.red20="#a4262c",U.red10="#d13438",U.redOrange20="#603d30",U.redOrange10="#da3b01",U.orange30="#8e562e",U.orange20="#ca5010",U.orange10="#ffaa44",U.yellow10="#fce100",U.orangeYellow20="#986f0b",U.orangeYellow10="#c19c00",U.yellowGreen10="#8cbd18",U.green20="#0b6a0b",U.green10="#498205",U.greenCyan10="#00ad56",U.cyan40="#005e50",U.cyan30="#005b70",U.cyan20="#038387",U.cyan10="#00b7c3",U.cyanBlue20="#004e8c",U.cyanBlue10="#0078d4",U.blue10="#4f6bed",U.blueMagenta40="#373277",U.blueMagenta30="#5c2e91",U.blueMagenta20="#8764b8",U.blueMagenta10="#8378de",U.magenta20="#881798",U.magenta10="#c239b3",U.magentaPink20="#9b0062",U.magentaPink10="#e3008c",U.gray40="#393939",U.gray30="#7a7574",U.gray20="#69797e",U.gray10="#a0aeb2";var pT,hT,mT,gT=At({}),G=O({from:{opacity:0},to:{opacity:1}}),n=O({from:{opacity:1},to:{opacity:0}}),o=O({from:{transform:"scale3d(1.15, 1.15, 1)"},to:{transform:"scale3d(1, 1, 1)"}}),r=O({from:{transform:"scale3d(1, 1, 1)"},to:{transform:"scale3d(0.9, 0.9, 1)"}}),i=O({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(-48px, 0, 0)"}}),W=O({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(48px, 0, 0)"}}),t=O({from:{transform:"translate3d(48px, 0, 0)"},to:{transform:"translate3d(0, 0, 0)"}}),xe=O({from:{transform:"translate3d(-48px, 0, 0)"},to:{transform:"translate3d(0, 0, 0)"}}),Y=O({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, -48px, 0)"}}),K=O({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, 48px, 0)"}}),s=O({from:{transform:"translate3d(0, 48px, 0)"},to:{transform:"translate3d(0, 0, 0)"}}),ke=O({from:{transform:"translate3d(0, -48px, 0)"},to:{transform:"translate3d(0, 0, 0)"}});function fT(e,t,o){return e+" "+t+" "+o}(U=pT=pT||{}).duration1="100ms",U.duration2="200ms",U.duration3="300ms",U.duration4="400ms",(U=hT=hT||{}).accelerate="cubic-bezier(0.9, 0.1, 1, 0.2)",U.decelerate="cubic-bezier(0.1, 0.9, 0.2, 1)",U.linear="cubic-bezier(0, 0, 1, 1)",U.standard="cubic-bezier(0.8, 0, 0.2, 1)",(U=mT=mT||{}).fadeIn=fT(G,pT.duration1,hT.linear),U.fadeOut=fT(n,pT.duration1,hT.linear),U.scaleDownIn=fT(o,pT.duration3,hT.decelerate),U.scaleDownOut=fT(r,pT.duration3,hT.decelerate),U.slideLeftOut=fT(i,pT.duration1,hT.accelerate),U.slideRightOut=fT(W,pT.duration1,hT.accelerate),U.slideLeftIn=fT(t,pT.duration1,hT.decelerate),U.slideRightIn=fT(xe,pT.duration1,hT.decelerate),U.slideUpOut=fT(Y,pT.duration1,hT.accelerate),U.slideDownOut=fT(K,pT.duration1,hT.accelerate),U.slideUpIn=fT(s,pT.duration1,hT.decelerate),U.slideDownIn=fT(ke,pT.duration1,hT.decelerate),zS()}(),bT}()});
|
files/yui/3.17.2/datatable-body/datatable-body-coverage.js
|
cake654326/jsdelivr
|
/*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-body/datatable-body.js']) {
__coverage__['build/datatable-body/datatable-body.js'] = {"path":"build/datatable-body/datatable-body.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":0,"140":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":0,"150":0,"151":0,"152":0,"153":0,"154":0,"155":0,"156":0,"157":0,"158":0,"159":0,"160":0,"161":0,"162":0,"163":0,"164":0,"165":0,"166":0,"167":0,"168":0,"169":0,"170":0,"171":0,"172":0,"173":0,"174":0,"175":0,"176":0,"177":0,"178":0,"179":0,"180":0,"181":0,"182":0,"183":0,"184":0,"185":0,"186":0,"187":0,"188":0,"189":0,"190":0,"191":0,"192":0,"193":0,"194":0,"195":0,"196":0,"197":0,"198":0,"199":0,"200":0,"201":0,"202":0,"203":0,"204":0,"205":0,"206":0,"207":0,"208":0,"209":0,"210":0,"211":0,"212":0,"213":0,"214":0,"215":0,"216":0,"217":0,"218":0,"219":0,"220":0,"221":0,"222":0,"223":0,"224":0,"225":0,"226":0,"227":0,"228":0,"229":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0],"40":[0,0],"41":[0,0],"42":[0,0,0],"43":[0,0],"44":[0,0,0],"45":[0,0],"46":[0,0],"47":[0,0],"48":[0,0],"49":[0,0],"50":[0,0],"51":[0,0],"52":[0,0],"53":[0,0],"54":[0,0],"55":[0,0,0,0],"56":[0,0],"57":[0,0],"58":[0,0],"59":[0,0],"60":[0,0,0,0],"61":[0,0],"62":[0,0],"63":[0,0],"64":[0,0],"65":[0,0],"66":[0,0],"67":[0,0],"68":[0,0],"69":[0,0],"70":[0,0],"71":[0,0],"72":[0,0],"73":[0,0],"74":[0,0],"75":[0,0],"76":[0,0],"77":[0,0],"78":[0,0],"79":[0,0],"80":[0,0],"81":[0,0],"82":[0,0],"83":[0,0],"84":[0,0],"85":[0,0,0],"86":[0,0],"87":[0,0],"88":[0,0],"89":[0,0],"90":[0,0],"91":[0,0],"92":[0,0],"93":[0,0],"94":[0,0],"95":[0,0],"96":[0,0],"97":[0,0],"98":[0,0],"99":[0,0],"100":[0,0],"101":[0,0],"102":[0,0],"103":[0,0],"104":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":45}}},"2":{"name":"(anonymous_2)","line":222,"loc":{"start":{"line":222,"column":13},"end":{"line":222,"column":36}}},"3":{"name":"(anonymous_3)","line":272,"loc":{"start":{"line":272,"column":18},"end":{"line":272,"column":30}}},"4":{"name":"(anonymous_4)","line":297,"loc":{"start":{"line":297,"column":15},"end":{"line":297,"column":31}}},"5":{"name":"(anonymous_5)","line":309,"loc":{"start":{"line":309,"column":36},"end":{"line":309,"column":52}}},"6":{"name":"(anonymous_6)","line":331,"loc":{"start":{"line":331,"column":12},"end":{"line":331,"column":26}}},"7":{"name":"(anonymous_7)","line":437,"loc":{"start":{"line":437,"column":12},"end":{"line":437,"column":24}}},"8":{"name":"(anonymous_8)","line":473,"loc":{"start":{"line":473,"column":16},"end":{"line":473,"column":47}}},"9":{"name":"(anonymous_9)","line":504,"loc":{"start":{"line":504,"column":17},"end":{"line":504,"column":45}}},"10":{"name":"(anonymous_10)","line":585,"loc":{"start":{"line":585,"column":15},"end":{"line":585,"column":31}}},"11":{"name":"(anonymous_11)","line":599,"loc":{"start":{"line":599,"column":34},"end":{"line":599,"column":50}}},"12":{"name":"(anonymous_12)","line":625,"loc":{"start":{"line":625,"column":25},"end":{"line":625,"column":37}}},"13":{"name":"(anonymous_13)","line":639,"loc":{"start":{"line":639,"column":22},"end":{"line":639,"column":35}}},"14":{"name":"(anonymous_14)","line":711,"loc":{"start":{"line":711,"column":15},"end":{"line":711,"column":32}}},"15":{"name":"(anonymous_15)","line":722,"loc":{"start":{"line":722,"column":34},"end":{"line":722,"column":46}}},"16":{"name":"(anonymous_16)","line":735,"loc":{"start":{"line":735,"column":30},"end":{"line":735,"column":48}}},"17":{"name":"(anonymous_17)","line":760,"loc":{"start":{"line":760,"column":27},"end":{"line":760,"column":39}}},"18":{"name":"(anonymous_18)","line":784,"loc":{"start":{"line":784,"column":26},"end":{"line":784,"column":56}}},"19":{"name":"(anonymous_19)","line":801,"loc":{"start":{"line":801,"column":22},"end":{"line":801,"column":47}}},"20":{"name":"(anonymous_20)","line":848,"loc":{"start":{"line":848,"column":12},"end":{"line":848,"column":24}}},"21":{"name":"(anonymous_21)","line":879,"loc":{"start":{"line":879,"column":21},"end":{"line":879,"column":44}}},"22":{"name":"(anonymous_22)","line":884,"loc":{"start":{"line":884,"column":22},"end":{"line":884,"column":46}}},"23":{"name":"(anonymous_23)","line":927,"loc":{"start":{"line":927,"column":20},"end":{"line":927,"column":57}}},"24":{"name":"(anonymous_24)","line":990,"loc":{"start":{"line":990,"column":18},"end":{"line":990,"column":33}}},"25":{"name":"(anonymous_25)","line":1024,"loc":{"start":{"line":1024,"column":24},"end":{"line":1024,"column":47}}},"26":{"name":"(anonymous_26)","line":1074,"loc":{"start":{"line":1074,"column":28},"end":{"line":1074,"column":51}}},"27":{"name":"(anonymous_27)","line":1105,"loc":{"start":{"line":1105,"column":22},"end":{"line":1105,"column":34}}},"28":{"name":"(anonymous_28)","line":1118,"loc":{"start":{"line":1118,"column":16},"end":{"line":1118,"column":28}}},"29":{"name":"(anonymous_29)","line":1142,"loc":{"start":{"line":1142,"column":15},"end":{"line":1142,"column":35}}},"30":{"name":"(anonymous_30)","line":1168,"loc":{"start":{"line":1168,"column":17},"end":{"line":1168,"column":35}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1211,"column":75}},"2":{"start":{"line":11,"column":0},"end":{"line":29,"column":6}},"3":{"start":{"line":124,"column":0},"end":{"line":1208,"column":3}},"4":{"start":{"line":223,"column":8},"end":{"line":224,"column":45}},"5":{"start":{"line":226,"column":8},"end":{"line":252,"column":9}},"6":{"start":{"line":227,"column":12},"end":{"line":232,"column":13}},"7":{"start":{"line":228,"column":16},"end":{"line":228,"column":58}},"8":{"start":{"line":229,"column":16},"end":{"line":229,"column":64}},"9":{"start":{"line":230,"column":19},"end":{"line":232,"column":13}},"10":{"start":{"line":231,"column":16},"end":{"line":231,"column":76}},"11":{"start":{"line":234,"column":12},"end":{"line":251,"column":13}},"12":{"start":{"line":235,"column":16},"end":{"line":235,"column":66}},"13":{"start":{"line":236,"column":16},"end":{"line":241,"column":17}},"14":{"start":{"line":237,"column":20},"end":{"line":239,"column":21}},"15":{"start":{"line":238,"column":24},"end":{"line":238,"column":88}},"16":{"start":{"line":240,"column":20},"end":{"line":240,"column":44}},"17":{"start":{"line":243,"column":16},"end":{"line":250,"column":17}},"18":{"start":{"line":244,"column":20},"end":{"line":245,"column":58}},"19":{"start":{"line":246,"column":20},"end":{"line":246,"column":62}},"20":{"start":{"line":248,"column":20},"end":{"line":248,"column":61}},"21":{"start":{"line":249,"column":20},"end":{"line":249,"column":67}},"22":{"start":{"line":254,"column":8},"end":{"line":254,"column":28}},"23":{"start":{"line":273,"column":8},"end":{"line":274,"column":17}},"24":{"start":{"line":276,"column":8},"end":{"line":283,"column":9}},"25":{"start":{"line":277,"column":12},"end":{"line":277,"column":60}},"26":{"start":{"line":279,"column":12},"end":{"line":279,"column":38}},"27":{"start":{"line":280,"column":12},"end":{"line":280,"column":48}},"28":{"start":{"line":281,"column":12},"end":{"line":282,"column":49}},"29":{"start":{"line":298,"column":8},"end":{"line":301,"column":19}},"30":{"start":{"line":303,"column":8},"end":{"line":316,"column":9}},"31":{"start":{"line":304,"column":12},"end":{"line":306,"column":13}},"32":{"start":{"line":305,"column":16},"end":{"line":305,"column":45}},"33":{"start":{"line":308,"column":12},"end":{"line":315,"column":13}},"34":{"start":{"line":309,"column":16},"end":{"line":311,"column":25}},"35":{"start":{"line":310,"column":20},"end":{"line":310,"column":67}},"36":{"start":{"line":313,"column":16},"end":{"line":314,"column":72}},"37":{"start":{"line":318,"column":8},"end":{"line":318,"column":30}},"38":{"start":{"line":332,"column":8},"end":{"line":333,"column":23}},"39":{"start":{"line":335,"column":8},"end":{"line":343,"column":9}},"40":{"start":{"line":336,"column":12},"end":{"line":338,"column":13}},"41":{"start":{"line":337,"column":16},"end":{"line":337,"column":73}},"42":{"start":{"line":340,"column":12},"end":{"line":342,"column":36}},"43":{"start":{"line":345,"column":8},"end":{"line":345,"column":19}},"44":{"start":{"line":438,"column":8},"end":{"line":442,"column":65}},"45":{"start":{"line":445,"column":8},"end":{"line":445,"column":45}},"46":{"start":{"line":447,"column":8},"end":{"line":451,"column":9}},"47":{"start":{"line":448,"column":12},"end":{"line":448,"column":61}},"48":{"start":{"line":450,"column":12},"end":{"line":450,"column":58}},"49":{"start":{"line":453,"column":8},"end":{"line":455,"column":9}},"50":{"start":{"line":454,"column":12},"end":{"line":454,"column":37}},"51":{"start":{"line":457,"column":8},"end":{"line":457,"column":22}},"52":{"start":{"line":459,"column":8},"end":{"line":459,"column":20}},"53":{"start":{"line":474,"column":8},"end":{"line":477,"column":14}},"54":{"start":{"line":479,"column":8},"end":{"line":486,"column":9}},"55":{"start":{"line":480,"column":12},"end":{"line":480,"column":45}},"56":{"start":{"line":482,"column":12},"end":{"line":485,"column":13}},"57":{"start":{"line":483,"column":16},"end":{"line":483,"column":83}},"58":{"start":{"line":484,"column":16},"end":{"line":484,"column":46}},"59":{"start":{"line":488,"column":8},"end":{"line":488,"column":20}},"60":{"start":{"line":505,"column":8},"end":{"line":508,"column":34}},"61":{"start":{"line":510,"column":8},"end":{"line":510,"column":34}},"62":{"start":{"line":512,"column":8},"end":{"line":512,"column":48}},"63":{"start":{"line":513,"column":8},"end":{"line":513,"column":44}},"64":{"start":{"line":516,"column":8},"end":{"line":571,"column":9}},"65":{"start":{"line":517,"column":12},"end":{"line":525,"column":14}},"66":{"start":{"line":527,"column":12},"end":{"line":527,"column":62}},"67":{"start":{"line":529,"column":12},"end":{"line":536,"column":13}},"68":{"start":{"line":535,"column":16},"end":{"line":535,"column":35}},"69":{"start":{"line":538,"column":15},"end":{"line":571,"column":9}},"70":{"start":{"line":539,"column":12},"end":{"line":541,"column":13}},"71":{"start":{"line":540,"column":16},"end":{"line":540,"column":60}},"72":{"start":{"line":543,"column":12},"end":{"line":543,"column":51}},"73":{"start":{"line":545,"column":12},"end":{"line":563,"column":13}},"74":{"start":{"line":546,"column":16},"end":{"line":554,"column":18}},"75":{"start":{"line":557,"column":16},"end":{"line":557,"column":76}},"76":{"start":{"line":560,"column":16},"end":{"line":562,"column":17}},"77":{"start":{"line":561,"column":20},"end":{"line":561,"column":50}},"78":{"start":{"line":565,"column":12},"end":{"line":567,"column":13}},"79":{"start":{"line":566,"column":16},"end":{"line":566,"column":51}},"80":{"start":{"line":570,"column":12},"end":{"line":570,"column":64}},"81":{"start":{"line":573,"column":8},"end":{"line":573,"column":71}},"82":{"start":{"line":575,"column":8},"end":{"line":575,"column":20}},"83":{"start":{"line":586,"column":8},"end":{"line":591,"column":9}},"84":{"start":{"line":588,"column":12},"end":{"line":590,"column":17}},"85":{"start":{"line":593,"column":8},"end":{"line":595,"column":9}},"86":{"start":{"line":594,"column":12},"end":{"line":594,"column":54}},"87":{"start":{"line":596,"column":8},"end":{"line":597,"column":23}},"88":{"start":{"line":599,"column":8},"end":{"line":604,"column":11}},"89":{"start":{"line":600,"column":12},"end":{"line":603,"column":13}},"90":{"start":{"line":601,"column":16},"end":{"line":601,"column":27}},"91":{"start":{"line":602,"column":16},"end":{"line":602,"column":28}},"92":{"start":{"line":606,"column":8},"end":{"line":606,"column":19}},"93":{"start":{"line":626,"column":8},"end":{"line":626,"column":22}},"94":{"start":{"line":640,"column":8},"end":{"line":648,"column":16}},"95":{"start":{"line":650,"column":8},"end":{"line":662,"column":9}},"96":{"start":{"line":651,"column":12},"end":{"line":651,"column":33}},"97":{"start":{"line":657,"column":12},"end":{"line":661,"column":13}},"98":{"start":{"line":658,"column":16},"end":{"line":658,"column":30}},"99":{"start":{"line":659,"column":16},"end":{"line":659,"column":45}},"100":{"start":{"line":660,"column":16},"end":{"line":660,"column":23}},"101":{"start":{"line":665,"column":8},"end":{"line":693,"column":9}},"102":{"start":{"line":667,"column":16},"end":{"line":673,"column":17}},"103":{"start":{"line":668,"column":20},"end":{"line":668,"column":41}},"104":{"start":{"line":669,"column":20},"end":{"line":669,"column":34}},"105":{"start":{"line":670,"column":20},"end":{"line":672,"column":21}},"106":{"start":{"line":671,"column":24},"end":{"line":671,"column":42}},"107":{"start":{"line":674,"column":16},"end":{"line":674,"column":74}},"108":{"start":{"line":675,"column":16},"end":{"line":675,"column":22}},"109":{"start":{"line":678,"column":16},"end":{"line":678,"column":75}},"110":{"start":{"line":681,"column":16},"end":{"line":681,"column":57}},"111":{"start":{"line":682,"column":16},"end":{"line":682,"column":86}},"112":{"start":{"line":683,"column":16},"end":{"line":683,"column":50}},"113":{"start":{"line":684,"column":16},"end":{"line":684,"column":38}},"114":{"start":{"line":685,"column":16},"end":{"line":685,"column":22}},"115":{"start":{"line":687,"column":16},"end":{"line":687,"column":48}},"116":{"start":{"line":689,"column":16},"end":{"line":689,"column":42}},"117":{"start":{"line":690,"column":16},"end":{"line":690,"column":22}},"118":{"start":{"line":692,"column":16},"end":{"line":692,"column":30}},"119":{"start":{"line":697,"column":8},"end":{"line":697,"column":37}},"120":{"start":{"line":712,"column":8},"end":{"line":713,"column":17}},"121":{"start":{"line":716,"column":8},"end":{"line":716,"column":39}},"122":{"start":{"line":718,"column":8},"end":{"line":746,"column":9}},"123":{"start":{"line":719,"column":12},"end":{"line":719,"column":24}},"124":{"start":{"line":721,"column":12},"end":{"line":743,"column":14}},"125":{"start":{"line":724,"column":20},"end":{"line":727,"column":21}},"126":{"start":{"line":725,"column":24},"end":{"line":725,"column":50}},"127":{"start":{"line":726,"column":24},"end":{"line":726,"column":31}},"128":{"start":{"line":729,"column":20},"end":{"line":731,"column":57}},"129":{"start":{"line":733,"column":20},"end":{"line":737,"column":27}},"130":{"start":{"line":736,"column":28},"end":{"line":736,"column":86}},"131":{"start":{"line":739,"column":20},"end":{"line":739,"column":46}},"132":{"start":{"line":745,"column":12},"end":{"line":745,"column":53}},"133":{"start":{"line":761,"column":8},"end":{"line":761,"column":41}},"134":{"start":{"line":763,"column":8},"end":{"line":767,"column":9}},"135":{"start":{"line":764,"column":12},"end":{"line":764,"column":40}},"136":{"start":{"line":765,"column":12},"end":{"line":765,"column":38}},"137":{"start":{"line":766,"column":12},"end":{"line":766,"column":26}},"138":{"start":{"line":769,"column":8},"end":{"line":771,"column":9}},"139":{"start":{"line":770,"column":12},"end":{"line":770,"column":26}},"140":{"start":{"line":785,"column":8},"end":{"line":789,"column":25}},"141":{"start":{"line":792,"column":8},"end":{"line":796,"column":9}},"142":{"start":{"line":793,"column":12},"end":{"line":795,"column":13}},"143":{"start":{"line":794,"column":16},"end":{"line":794,"column":35}},"144":{"start":{"line":798,"column":8},"end":{"line":838,"column":9}},"145":{"start":{"line":799,"column":12},"end":{"line":799,"column":43}},"146":{"start":{"line":801,"column":12},"end":{"line":837,"column":15}},"147":{"start":{"line":802,"column":16},"end":{"line":808,"column":56}},"148":{"start":{"line":811,"column":16},"end":{"line":836,"column":17}},"149":{"start":{"line":812,"column":20},"end":{"line":812,"column":50}},"150":{"start":{"line":813,"column":20},"end":{"line":835,"column":21}},"151":{"start":{"line":814,"column":24},"end":{"line":814,"column":57}},"152":{"start":{"line":816,"column":24},"end":{"line":834,"column":25}},"153":{"start":{"line":817,"column":28},"end":{"line":817,"column":84}},"154":{"start":{"line":818,"column":28},"end":{"line":818,"column":52}},"155":{"start":{"line":820,"column":28},"end":{"line":820,"column":66}},"156":{"start":{"line":821,"column":28},"end":{"line":821,"column":55}},"157":{"start":{"line":822,"column":28},"end":{"line":822,"column":79}},"158":{"start":{"line":824,"column":28},"end":{"line":824,"column":78}},"159":{"start":{"line":826,"column":28},"end":{"line":833,"column":29}},"160":{"start":{"line":832,"column":32},"end":{"line":832,"column":51}},"161":{"start":{"line":849,"column":8},"end":{"line":851,"column":59}},"162":{"start":{"line":853,"column":8},"end":{"line":856,"column":9}},"163":{"start":{"line":854,"column":12},"end":{"line":855,"column":51}},"164":{"start":{"line":858,"column":8},"end":{"line":862,"column":9}},"165":{"start":{"line":859,"column":12},"end":{"line":861,"column":48}},"166":{"start":{"line":880,"column":8},"end":{"line":881,"column":22}},"167":{"start":{"line":883,"column":8},"end":{"line":887,"column":9}},"168":{"start":{"line":884,"column":12},"end":{"line":886,"column":21}},"169":{"start":{"line":885,"column":16},"end":{"line":885,"column":71}},"170":{"start":{"line":889,"column":8},"end":{"line":889,"column":20}},"171":{"start":{"line":928,"column":8},"end":{"line":936,"column":53}},"172":{"start":{"line":938,"column":8},"end":{"line":976,"column":9}},"173":{"start":{"line":939,"column":12},"end":{"line":939,"column":35}},"174":{"start":{"line":940,"column":12},"end":{"line":940,"column":34}},"175":{"start":{"line":941,"column":12},"end":{"line":941,"column":39}},"176":{"start":{"line":943,"column":12},"end":{"line":943,"column":46}},"177":{"start":{"line":945,"column":12},"end":{"line":966,"column":13}},"178":{"start":{"line":946,"column":16},"end":{"line":954,"column":18}},"179":{"start":{"line":957,"column":16},"end":{"line":957,"column":67}},"180":{"start":{"line":960,"column":16},"end":{"line":962,"column":17}},"181":{"start":{"line":961,"column":20},"end":{"line":961,"column":48}},"182":{"start":{"line":964,"column":16},"end":{"line":964,"column":71}},"183":{"start":{"line":965,"column":16},"end":{"line":965,"column":64}},"184":{"start":{"line":969,"column":12},"end":{"line":975,"column":13}},"185":{"start":{"line":970,"column":16},"end":{"line":972,"column":17}},"186":{"start":{"line":971,"column":20},"end":{"line":971,"column":53}},"187":{"start":{"line":974,"column":16},"end":{"line":974,"column":74}},"188":{"start":{"line":979,"column":8},"end":{"line":979,"column":63}},"189":{"start":{"line":981,"column":8},"end":{"line":981,"column":55}},"190":{"start":{"line":991,"column":8},"end":{"line":992,"column":22}},"191":{"start":{"line":994,"column":8},"end":{"line":1007,"column":9}},"192":{"start":{"line":997,"column":12},"end":{"line":999,"column":13}},"193":{"start":{"line":998,"column":16},"end":{"line":998,"column":28}},"194":{"start":{"line":1003,"column":12},"end":{"line":1006,"column":13}},"195":{"start":{"line":1005,"column":16},"end":{"line":1005,"column":24}},"196":{"start":{"line":1009,"column":8},"end":{"line":1009,"column":21}},"197":{"start":{"line":1025,"column":8},"end":{"line":1027,"column":69}},"198":{"start":{"line":1029,"column":8},"end":{"line":1029,"column":49}},"199":{"start":{"line":1031,"column":8},"end":{"line":1058,"column":9}},"200":{"start":{"line":1032,"column":12},"end":{"line":1032,"column":37}},"201":{"start":{"line":1033,"column":12},"end":{"line":1033,"column":30}},"202":{"start":{"line":1034,"column":12},"end":{"line":1034,"column":37}},"203":{"start":{"line":1035,"column":12},"end":{"line":1035,"column":41}},"204":{"start":{"line":1037,"column":12},"end":{"line":1038,"column":72}},"205":{"start":{"line":1040,"column":12},"end":{"line":1047,"column":14}},"206":{"start":{"line":1048,"column":12},"end":{"line":1050,"column":13}},"207":{"start":{"line":1049,"column":16},"end":{"line":1049,"column":94}},"208":{"start":{"line":1052,"column":12},"end":{"line":1055,"column":13}},"209":{"start":{"line":1054,"column":16},"end":{"line":1054,"column":41}},"210":{"start":{"line":1057,"column":12},"end":{"line":1057,"column":80}},"211":{"start":{"line":1060,"column":8},"end":{"line":1062,"column":11}},"212":{"start":{"line":1075,"column":8},"end":{"line":1079,"column":16}},"213":{"start":{"line":1081,"column":8},"end":{"line":1092,"column":9}},"214":{"start":{"line":1082,"column":12},"end":{"line":1082,"column":33}},"215":{"start":{"line":1083,"column":12},"end":{"line":1083,"column":38}},"216":{"start":{"line":1085,"column":12},"end":{"line":1091,"column":13}},"217":{"start":{"line":1086,"column":16},"end":{"line":1090,"column":17}},"218":{"start":{"line":1087,"column":20},"end":{"line":1087,"column":49}},"219":{"start":{"line":1088,"column":23},"end":{"line":1090,"column":17}},"220":{"start":{"line":1089,"column":20},"end":{"line":1089,"column":90}},"221":{"start":{"line":1094,"column":8},"end":{"line":1094,"column":27}},"222":{"start":{"line":1106,"column":8},"end":{"line":1108,"column":12}},"223":{"start":{"line":1119,"column":8},"end":{"line":1119,"column":73}},"224":{"start":{"line":1143,"column":8},"end":{"line":1143,"column":75}},"225":{"start":{"line":1169,"column":8},"end":{"line":1169,"column":32}},"226":{"start":{"line":1171,"column":8},"end":{"line":1174,"column":10}},"227":{"start":{"line":1175,"column":8},"end":{"line":1175,"column":25}},"228":{"start":{"line":1177,"column":8},"end":{"line":1177,"column":51}},"229":{"start":{"line":1178,"column":8},"end":{"line":1178,"column":52}}},"branchMap":{"1":{"line":226,"type":"if","locations":[{"start":{"line":226,"column":8},"end":{"line":226,"column":8}},{"start":{"line":226,"column":8},"end":{"line":226,"column":8}}]},"2":{"line":226,"type":"binary-expr","locations":[{"start":{"line":226,"column":12},"end":{"line":226,"column":16}},{"start":{"line":226,"column":20},"end":{"line":226,"column":25}}]},"3":{"line":227,"type":"if","locations":[{"start":{"line":227,"column":12},"end":{"line":227,"column":12}},{"start":{"line":227,"column":12},"end":{"line":227,"column":12}}]},"4":{"line":229,"type":"binary-expr","locations":[{"start":{"line":229,"column":23},"end":{"line":229,"column":26}},{"start":{"line":229,"column":30},"end":{"line":229,"column":63}}]},"5":{"line":230,"type":"if","locations":[{"start":{"line":230,"column":19},"end":{"line":230,"column":19}},{"start":{"line":230,"column":19},"end":{"line":230,"column":19}}]},"6":{"line":234,"type":"if","locations":[{"start":{"line":234,"column":12},"end":{"line":234,"column":12}},{"start":{"line":234,"column":12},"end":{"line":234,"column":12}}]},"7":{"line":234,"type":"binary-expr","locations":[{"start":{"line":234,"column":16},"end":{"line":234,"column":20}},{"start":{"line":234,"column":24},"end":{"line":234,"column":29}}]},"8":{"line":236,"type":"if","locations":[{"start":{"line":236,"column":16},"end":{"line":236,"column":16}},{"start":{"line":236,"column":16},"end":{"line":236,"column":16}}]},"9":{"line":237,"type":"if","locations":[{"start":{"line":237,"column":20},"end":{"line":237,"column":20}},{"start":{"line":237,"column":20},"end":{"line":237,"column":20}}]},"10":{"line":243,"type":"if","locations":[{"start":{"line":243,"column":16},"end":{"line":243,"column":16}},{"start":{"line":243,"column":16},"end":{"line":243,"column":16}}]},"11":{"line":249,"type":"binary-expr","locations":[{"start":{"line":249,"column":28},"end":{"line":249,"column":31}},{"start":{"line":249,"column":35},"end":{"line":249,"column":66}}]},"12":{"line":254,"type":"binary-expr","locations":[{"start":{"line":254,"column":15},"end":{"line":254,"column":19}},{"start":{"line":254,"column":23},"end":{"line":254,"column":27}}]},"13":{"line":276,"type":"if","locations":[{"start":{"line":276,"column":8},"end":{"line":276,"column":8}},{"start":{"line":276,"column":8},"end":{"line":276,"column":8}}]},"14":{"line":276,"type":"binary-expr","locations":[{"start":{"line":276,"column":12},"end":{"line":276,"column":16}},{"start":{"line":276,"column":20},"end":{"line":276,"column":37}}]},"15":{"line":303,"type":"if","locations":[{"start":{"line":303,"column":8},"end":{"line":303,"column":8}},{"start":{"line":303,"column":8},"end":{"line":303,"column":8}}]},"16":{"line":304,"type":"if","locations":[{"start":{"line":304,"column":12},"end":{"line":304,"column":12}},{"start":{"line":304,"column":12},"end":{"line":304,"column":12}}]},"17":{"line":308,"type":"if","locations":[{"start":{"line":308,"column":12},"end":{"line":308,"column":12}},{"start":{"line":308,"column":12},"end":{"line":308,"column":12}}]},"18":{"line":308,"type":"binary-expr","locations":[{"start":{"line":308,"column":16},"end":{"line":308,"column":20}},{"start":{"line":308,"column":24},"end":{"line":308,"column":34}}]},"19":{"line":313,"type":"binary-expr","locations":[{"start":{"line":313,"column":25},"end":{"line":313,"column":28}},{"start":{"line":314,"column":20},"end":{"line":314,"column":71}}]},"20":{"line":318,"type":"binary-expr","locations":[{"start":{"line":318,"column":15},"end":{"line":318,"column":21}},{"start":{"line":318,"column":25},"end":{"line":318,"column":29}}]},"21":{"line":335,"type":"if","locations":[{"start":{"line":335,"column":8},"end":{"line":335,"column":8}},{"start":{"line":335,"column":8},"end":{"line":335,"column":8}}]},"22":{"line":336,"type":"if","locations":[{"start":{"line":336,"column":12},"end":{"line":336,"column":12}},{"start":{"line":336,"column":12},"end":{"line":336,"column":12}}]},"23":{"line":337,"type":"binary-expr","locations":[{"start":{"line":337,"column":21},"end":{"line":337,"column":66}},{"start":{"line":337,"column":70},"end":{"line":337,"column":72}}]},"24":{"line":337,"type":"cond-expr","locations":[{"start":{"line":337,"column":42},"end":{"line":337,"column":60}},{"start":{"line":337,"column":63},"end":{"line":337,"column":65}}]},"25":{"line":340,"type":"cond-expr","locations":[{"start":{"line":341,"column":16},"end":{"line":341,"column":46}},{"start":{"line":342,"column":16},"end":{"line":342,"column":35}}]},"26":{"line":441,"type":"binary-expr","locations":[{"start":{"line":441,"column":22},"end":{"line":441,"column":36}},{"start":{"line":442,"column":23},"end":{"line":442,"column":63}}]},"27":{"line":447,"type":"if","locations":[{"start":{"line":447,"column":8},"end":{"line":447,"column":8}},{"start":{"line":447,"column":8},"end":{"line":447,"column":8}}]},"28":{"line":453,"type":"if","locations":[{"start":{"line":453,"column":8},"end":{"line":453,"column":8}},{"start":{"line":453,"column":8},"end":{"line":453,"column":8}}]},"29":{"line":482,"type":"if","locations":[{"start":{"line":482,"column":12},"end":{"line":482,"column":12}},{"start":{"line":482,"column":12},"end":{"line":482,"column":12}}]},"30":{"line":483,"type":"binary-expr","locations":[{"start":{"line":483,"column":62},"end":{"line":483,"column":69}},{"start":{"line":483,"column":73},"end":{"line":483,"column":80}}]},"31":{"line":512,"type":"binary-expr","locations":[{"start":{"line":512,"column":8},"end":{"line":512,"column":13}},{"start":{"line":512,"column":18},"end":{"line":512,"column":46}}]},"32":{"line":513,"type":"binary-expr","locations":[{"start":{"line":513,"column":8},"end":{"line":513,"column":11}},{"start":{"line":513,"column":16},"end":{"line":513,"column":42}}]},"33":{"line":516,"type":"if","locations":[{"start":{"line":516,"column":8},"end":{"line":516,"column":8}},{"start":{"line":516,"column":8},"end":{"line":516,"column":8}}]},"34":{"line":518,"type":"binary-expr","locations":[{"start":{"line":518,"column":22},"end":{"line":518,"column":64}},{"start":{"line":518,"column":68},"end":{"line":518,"column":72}}]},"35":{"line":529,"type":"if","locations":[{"start":{"line":529,"column":12},"end":{"line":529,"column":12}},{"start":{"line":529,"column":12},"end":{"line":529,"column":12}}]},"36":{"line":538,"type":"if","locations":[{"start":{"line":538,"column":15},"end":{"line":538,"column":15}},{"start":{"line":538,"column":15},"end":{"line":538,"column":15}}]},"37":{"line":539,"type":"if","locations":[{"start":{"line":539,"column":12},"end":{"line":539,"column":12}},{"start":{"line":539,"column":12},"end":{"line":539,"column":12}}]},"38":{"line":543,"type":"binary-expr","locations":[{"start":{"line":543,"column":26},"end":{"line":543,"column":42}},{"start":{"line":543,"column":46},"end":{"line":543,"column":50}}]},"39":{"line":545,"type":"if","locations":[{"start":{"line":545,"column":12},"end":{"line":545,"column":12}},{"start":{"line":545,"column":12},"end":{"line":545,"column":12}}]},"40":{"line":560,"type":"if","locations":[{"start":{"line":560,"column":16},"end":{"line":560,"column":16}},{"start":{"line":560,"column":16},"end":{"line":560,"column":16}}]},"41":{"line":565,"type":"if","locations":[{"start":{"line":565,"column":12},"end":{"line":565,"column":12}},{"start":{"line":565,"column":12},"end":{"line":565,"column":12}}]},"42":{"line":565,"type":"binary-expr","locations":[{"start":{"line":565,"column":16},"end":{"line":565,"column":37}},{"start":{"line":565,"column":41},"end":{"line":565,"column":57}},{"start":{"line":565,"column":61},"end":{"line":565,"column":75}}]},"43":{"line":566,"type":"binary-expr","locations":[{"start":{"line":566,"column":26},"end":{"line":566,"column":44}},{"start":{"line":566,"column":48},"end":{"line":566,"column":50}}]},"44":{"line":570,"type":"binary-expr","locations":[{"start":{"line":570,"column":22},"end":{"line":570,"column":35}},{"start":{"line":570,"column":39},"end":{"line":570,"column":57}},{"start":{"line":570,"column":61},"end":{"line":570,"column":63}}]},"45":{"line":573,"type":"cond-expr","locations":[{"start":{"line":573,"column":37},"end":{"line":573,"column":44}},{"start":{"line":573,"column":47},"end":{"line":573,"column":69}}]},"46":{"line":586,"type":"if","locations":[{"start":{"line":586,"column":8},"end":{"line":586,"column":8}},{"start":{"line":586,"column":8},"end":{"line":586,"column":8}}]},"47":{"line":586,"type":"binary-expr","locations":[{"start":{"line":586,"column":12},"end":{"line":586,"column":16}},{"start":{"line":586,"column":20},"end":{"line":586,"column":30}}]},"48":{"line":593,"type":"if","locations":[{"start":{"line":593,"column":8},"end":{"line":593,"column":8}},{"start":{"line":593,"column":8},"end":{"line":593,"column":8}}]},"49":{"line":594,"type":"binary-expr","locations":[{"start":{"line":594,"column":19},"end":{"line":594,"column":45}},{"start":{"line":594,"column":49},"end":{"line":594,"column":53}}]},"50":{"line":600,"type":"if","locations":[{"start":{"line":600,"column":12},"end":{"line":600,"column":12}},{"start":{"line":600,"column":12},"end":{"line":600,"column":12}}]},"51":{"line":600,"type":"binary-expr","locations":[{"start":{"line":600,"column":17},"end":{"line":600,"column":25}},{"start":{"line":600,"column":29},"end":{"line":600,"column":37}}]},"52":{"line":640,"type":"binary-expr","locations":[{"start":{"line":640,"column":20},"end":{"line":640,"column":57}},{"start":{"line":640,"column":61},"end":{"line":640,"column":63}}]},"53":{"line":644,"type":"binary-expr","locations":[{"start":{"line":644,"column":22},"end":{"line":644,"column":31}},{"start":{"line":644,"column":35},"end":{"line":644,"column":59}}]},"54":{"line":657,"type":"if","locations":[{"start":{"line":657,"column":12},"end":{"line":657,"column":12}},{"start":{"line":657,"column":12},"end":{"line":657,"column":12}}]},"55":{"line":665,"type":"switch","locations":[{"start":{"line":666,"column":12},"end":{"line":675,"column":22}},{"start":{"line":676,"column":12},"end":{"line":685,"column":22}},{"start":{"line":686,"column":12},"end":{"line":690,"column":22}},{"start":{"line":691,"column":12},"end":{"line":692,"column":30}}]},"56":{"line":670,"type":"if","locations":[{"start":{"line":670,"column":20},"end":{"line":670,"column":20}},{"start":{"line":670,"column":20},"end":{"line":670,"column":20}}]},"57":{"line":670,"type":"binary-expr","locations":[{"start":{"line":670,"column":24},"end":{"line":670,"column":37}},{"start":{"line":670,"column":41},"end":{"line":670,"column":56}}]},"58":{"line":718,"type":"if","locations":[{"start":{"line":718,"column":8},"end":{"line":718,"column":8}},{"start":{"line":718,"column":8},"end":{"line":718,"column":8}}]},"59":{"line":724,"type":"if","locations":[{"start":{"line":724,"column":20},"end":{"line":724,"column":20}},{"start":{"line":724,"column":20},"end":{"line":724,"column":20}}]},"60":{"line":724,"type":"binary-expr","locations":[{"start":{"line":724,"column":24},"end":{"line":724,"column":29}},{"start":{"line":724,"column":33},"end":{"line":724,"column":52}},{"start":{"line":724,"column":56},"end":{"line":724,"column":71}},{"start":{"line":724,"column":75},"end":{"line":724,"column":98}}]},"61":{"line":736,"type":"cond-expr","locations":[{"start":{"line":736,"column":74},"end":{"line":736,"column":78}},{"start":{"line":736,"column":81},"end":{"line":736,"column":84}}]},"62":{"line":763,"type":"if","locations":[{"start":{"line":763,"column":8},"end":{"line":763,"column":8}},{"start":{"line":763,"column":8},"end":{"line":763,"column":8}}]},"63":{"line":769,"type":"if","locations":[{"start":{"line":769,"column":8},"end":{"line":769,"column":8}},{"start":{"line":769,"column":8},"end":{"line":769,"column":8}}]},"64":{"line":785,"type":"binary-expr","locations":[{"start":{"line":785,"column":19},"end":{"line":785,"column":28}},{"start":{"line":785,"column":32},"end":{"line":785,"column":36}}]},"65":{"line":793,"type":"if","locations":[{"start":{"line":793,"column":12},"end":{"line":793,"column":12}},{"start":{"line":793,"column":12},"end":{"line":793,"column":12}}]},"66":{"line":798,"type":"if","locations":[{"start":{"line":798,"column":8},"end":{"line":798,"column":8}},{"start":{"line":798,"column":8},"end":{"line":798,"column":8}}]},"67":{"line":798,"type":"binary-expr","locations":[{"start":{"line":798,"column":12},"end":{"line":798,"column":16}},{"start":{"line":798,"column":20},"end":{"line":798,"column":37}}]},"68":{"line":811,"type":"if","locations":[{"start":{"line":811,"column":16},"end":{"line":811,"column":16}},{"start":{"line":811,"column":16},"end":{"line":811,"column":16}}]},"69":{"line":816,"type":"if","locations":[{"start":{"line":816,"column":24},"end":{"line":816,"column":24}},{"start":{"line":816,"column":24},"end":{"line":816,"column":24}}]},"70":{"line":818,"type":"binary-expr","locations":[{"start":{"line":818,"column":34},"end":{"line":818,"column":41}},{"start":{"line":818,"column":45},"end":{"line":818,"column":51}}]},"71":{"line":822,"type":"binary-expr","locations":[{"start":{"line":822,"column":50},"end":{"line":822,"column":70}},{"start":{"line":822,"column":74},"end":{"line":822,"column":78}}]},"72":{"line":826,"type":"if","locations":[{"start":{"line":826,"column":28},"end":{"line":826,"column":28}},{"start":{"line":826,"column":28},"end":{"line":826,"column":28}}]},"73":{"line":853,"type":"if","locations":[{"start":{"line":853,"column":8},"end":{"line":853,"column":8}},{"start":{"line":853,"column":8},"end":{"line":853,"column":8}}]},"74":{"line":858,"type":"if","locations":[{"start":{"line":858,"column":8},"end":{"line":858,"column":8}},{"start":{"line":858,"column":8},"end":{"line":858,"column":8}}]},"75":{"line":858,"type":"binary-expr","locations":[{"start":{"line":858,"column":12},"end":{"line":858,"column":21}},{"start":{"line":858,"column":25},"end":{"line":858,"column":44}}]},"76":{"line":883,"type":"if","locations":[{"start":{"line":883,"column":8},"end":{"line":883,"column":8}},{"start":{"line":883,"column":8},"end":{"line":883,"column":8}}]},"77":{"line":933,"type":"cond-expr","locations":[{"start":{"line":933,"column":40},"end":{"line":933,"column":54}},{"start":{"line":933,"column":57},"end":{"line":933,"column":72}}]},"78":{"line":935,"type":"binary-expr","locations":[{"start":{"line":935,"column":19},"end":{"line":935,"column":28}},{"start":{"line":935,"column":32},"end":{"line":935,"column":36}}]},"79":{"line":941,"type":"binary-expr","locations":[{"start":{"line":941,"column":20},"end":{"line":941,"column":27}},{"start":{"line":941,"column":31},"end":{"line":941,"column":38}}]},"80":{"line":945,"type":"if","locations":[{"start":{"line":945,"column":12},"end":{"line":945,"column":12}},{"start":{"line":945,"column":12},"end":{"line":945,"column":12}}]},"81":{"line":960,"type":"if","locations":[{"start":{"line":960,"column":16},"end":{"line":960,"column":16}},{"start":{"line":960,"column":16},"end":{"line":960,"column":16}}]},"82":{"line":969,"type":"if","locations":[{"start":{"line":969,"column":12},"end":{"line":969,"column":12}},{"start":{"line":969,"column":12},"end":{"line":969,"column":12}}]},"83":{"line":969,"type":"binary-expr","locations":[{"start":{"line":969,"column":16},"end":{"line":969,"column":45}},{"start":{"line":969,"column":49},"end":{"line":969,"column":77}}]},"84":{"line":970,"type":"if","locations":[{"start":{"line":970,"column":16},"end":{"line":970,"column":16}},{"start":{"line":970,"column":16},"end":{"line":970,"column":16}}]},"85":{"line":970,"type":"binary-expr","locations":[{"start":{"line":970,"column":20},"end":{"line":970,"column":39}},{"start":{"line":970,"column":43},"end":{"line":970,"column":57}},{"start":{"line":970,"column":61},"end":{"line":970,"column":73}}]},"86":{"line":971,"type":"binary-expr","locations":[{"start":{"line":971,"column":28},"end":{"line":971,"column":46}},{"start":{"line":971,"column":50},"end":{"line":971,"column":52}}]},"87":{"line":974,"type":"cond-expr","locations":[{"start":{"line":974,"column":48},"end":{"line":974,"column":53}},{"start":{"line":974,"column":56},"end":{"line":974,"column":73}}]},"88":{"line":994,"type":"if","locations":[{"start":{"line":994,"column":8},"end":{"line":994,"column":8}},{"start":{"line":994,"column":8},"end":{"line":994,"column":8}}]},"89":{"line":994,"type":"binary-expr","locations":[{"start":{"line":994,"column":12},"end":{"line":994,"column":17}},{"start":{"line":994,"column":21},"end":{"line":994,"column":24}}]},"90":{"line":997,"type":"if","locations":[{"start":{"line":997,"column":12},"end":{"line":997,"column":12}},{"start":{"line":997,"column":12},"end":{"line":997,"column":12}}]},"91":{"line":1034,"type":"binary-expr","locations":[{"start":{"line":1034,"column":22},"end":{"line":1034,"column":29}},{"start":{"line":1034,"column":33},"end":{"line":1034,"column":36}}]},"92":{"line":1037,"type":"cond-expr","locations":[{"start":{"line":1038,"column":24},"end":{"line":1038,"column":66}},{"start":{"line":1038,"column":69},"end":{"line":1038,"column":71}}]},"93":{"line":1037,"type":"binary-expr","locations":[{"start":{"line":1037,"column":23},"end":{"line":1037,"column":35}},{"start":{"line":1037,"column":39},"end":{"line":1037,"column":41}}]},"94":{"line":1044,"type":"binary-expr","locations":[{"start":{"line":1044,"column":28},"end":{"line":1044,"column":41}},{"start":{"line":1044,"column":45},"end":{"line":1044,"column":47}}]},"95":{"line":1048,"type":"if","locations":[{"start":{"line":1048,"column":12},"end":{"line":1048,"column":12}},{"start":{"line":1048,"column":12},"end":{"line":1048,"column":12}}]},"96":{"line":1048,"type":"binary-expr","locations":[{"start":{"line":1048,"column":16},"end":{"line":1048,"column":26}},{"start":{"line":1048,"column":30},"end":{"line":1048,"column":43}}]},"97":{"line":1052,"type":"if","locations":[{"start":{"line":1052,"column":12},"end":{"line":1052,"column":12}},{"start":{"line":1052,"column":12},"end":{"line":1052,"column":12}}]},"98":{"line":1057,"type":"binary-expr","locations":[{"start":{"line":1057,"column":33},"end":{"line":1057,"column":49}},{"start":{"line":1057,"column":53},"end":{"line":1057,"column":65}}]},"99":{"line":1085,"type":"if","locations":[{"start":{"line":1085,"column":12},"end":{"line":1085,"column":12}},{"start":{"line":1085,"column":12},"end":{"line":1085,"column":12}}]},"100":{"line":1085,"type":"binary-expr","locations":[{"start":{"line":1085,"column":16},"end":{"line":1085,"column":33}},{"start":{"line":1085,"column":37},"end":{"line":1085,"column":46}}]},"101":{"line":1086,"type":"if","locations":[{"start":{"line":1086,"column":16},"end":{"line":1086,"column":16}},{"start":{"line":1086,"column":16},"end":{"line":1086,"column":16}}]},"102":{"line":1088,"type":"if","locations":[{"start":{"line":1088,"column":23},"end":{"line":1088,"column":23}},{"start":{"line":1088,"column":23},"end":{"line":1088,"column":23}}]},"103":{"line":1089,"type":"binary-expr","locations":[{"start":{"line":1089,"column":66},"end":{"line":1089,"column":75}},{"start":{"line":1089,"column":79},"end":{"line":1089,"column":83}}]},"104":{"line":1143,"type":"binary-expr","locations":[{"start":{"line":1143,"column":15},"end":{"line":1143,"column":36}},{"start":{"line":1143,"column":41},"end":{"line":1143,"column":73}}]}},"code":["(function () { YUI.add('datatable-body', function (Y, NAME) {","","/**","View class responsible for rendering the `<tbody>` section of a table. Used as","the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.","","@module datatable","@submodule datatable-body","@since 3.5.0","**/","var Lang = Y.Lang,"," isArray = Lang.isArray,"," isNumber = Lang.isNumber,"," isString = Lang.isString,"," fromTemplate = Lang.sub,"," htmlEscape = Y.Escape.html,"," toArray = Y.Array,"," bind = Y.bind,"," YObject = Y.Object,"," valueRegExp = /\\{value\\}/g,"," EV_CONTENT_UPDATE = 'contentUpdate',",""," shiftMap = {"," above: [-1, 0],"," below: [1, 0],"," next: [0, 1],"," prev: [0, -1],"," previous: [0, -1]"," };","","/**","View class responsible for rendering the `<tbody>` section of a table. Used as","the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.","","Translates the provided `modelList` into a rendered `<tbody>` based on the data","in the constituent Models, altered or amended by any special column","configurations.","","The `columns` configuration, passed to the constructor, determines which","columns will be rendered.","","The rendering process involves constructing an HTML template for a complete row","of data, built by concatenating a customized copy of the instance's","`CELL_TEMPLATE` into the `ROW_TEMPLATE` once for each column. This template is","then populated with values from each Model in the `modelList`, aggregating a","complete HTML string of all row and column data. A `<tbody>` Node is then created from the markup and any column `nodeFormatter`s are applied.","","Supported properties of the column objects include:",""," * `key` - Used to link a column to an attribute in a Model."," * `name` - Used for columns that don't relate to an attribute in the Model"," (`formatter` or `nodeFormatter` only) if the implementer wants a"," predictable name to refer to in their CSS."," * `cellTemplate` - Overrides the instance's `CELL_TEMPLATE` for cells in this"," column only."," * `formatter` - Used to customize or override the content value from the"," Model. These do not have access to the cell or row Nodes and should"," return string (HTML) content."," * `nodeFormatter` - Used to provide content for a cell as well as perform any"," custom modifications on the cell or row Node that could not be performed by"," `formatter`s. Should be used sparingly for better performance."," * `emptyCellValue` - String (HTML) value to use if the Model data for a"," column, or the content generated by a `formatter`, is the empty string,"," `null`, or `undefined`."," * `allowHTML` - Set to `true` if a column value, `formatter`, or"," `emptyCellValue` can contain HTML. This defaults to `false` to protect"," against XSS."," * `className` - Space delimited CSS classes to add to all `<td>`s in a column.","","A column `formatter` can be:",""," * a function, as described below."," * a string which can be:"," * the name of a pre-defined formatter function"," which can be located in the `Y.DataTable.BodyView.Formatters` hash using the"," value of the `formatter` property as the index."," * A template that can use the `{value}` placeholder to include the value"," for the current cell or the name of any field in the underlaying model"," also enclosed in curly braces. Any number and type of these placeholders"," can be used.","","Column `formatter`s are passed an object (`o`) with the following properties:",""," * `value` - The current value of the column's associated attribute, if any."," * `data` - An object map of Model keys to their current values."," * `record` - The Model instance."," * `column` - The column configuration object for the current column."," * `className` - Initially empty string to allow `formatter`s to add CSS"," classes to the cell's `<td>`."," * `rowIndex` - The zero-based row number."," * `rowClass` - Initially empty string to allow `formatter`s to add CSS"," classes to the cell's containing row `<tr>`.","","They may return a value or update `o.value` to assign specific HTML content. A","returned value has higher precedence.","","Column `nodeFormatter`s are passed an object (`o`) with the following","properties:",""," * `value` - The current value of the column's associated attribute, if any."," * `td` - The `<td>` Node instance."," * `cell` - The `<div>` liner Node instance if present, otherwise, the `<td>`."," When adding content to the cell, prefer appending into this property."," * `data` - An object map of Model keys to their current values."," * `record` - The Model instance."," * `column` - The column configuration object for the current column."," * `rowIndex` - The zero-based row number.","","They are expected to inject content into the cell's Node directly, including","any \"empty\" cell content. Each `nodeFormatter` will have access through the","Node API to all cells and rows in the `<tbody>`, but not to the `<table>`, as","it will not be attached yet.","","If a `nodeFormatter` returns `false`, the `o.td` and `o.cell` Nodes will be","`destroy()`ed to remove them from the Node cache and free up memory. The DOM","elements will remain as will any content added to them. _It is highly","advisable to always return `false` from your `nodeFormatter`s_.","","@class BodyView","@namespace DataTable","@extends View","@since 3.5.0","**/","Y.namespace('DataTable').BodyView = Y.Base.create('tableBody', Y.View, [], {"," // -- Instance properties -------------------------------------------------",""," /**"," HTML template used to create table cells.",""," @property CELL_TEMPLATE"," @type {String}"," @default '<td {headers} class=\"{className}\">{content}</td>'"," @since 3.5.0"," **/"," CELL_TEMPLATE: '<td {headers} class=\"{className}\">{content}</td>',",""," /**"," CSS class applied to even rows. This is assigned at instantiation.",""," For DataTable, this will be `yui3-datatable-even`.",""," @property CLASS_EVEN"," @type {String}"," @default 'yui3-table-even'"," @since 3.5.0"," **/"," //CLASS_EVEN: null",""," /**"," CSS class applied to odd rows. This is assigned at instantiation.",""," When used by DataTable instances, this will be `yui3-datatable-odd`.",""," @property CLASS_ODD"," @type {String}"," @default 'yui3-table-odd'"," @since 3.5.0"," **/"," //CLASS_ODD: null",""," /**"," HTML template used to create table rows.",""," @property ROW_TEMPLATE"," @type {String}"," @default '<tr id=\"{rowId}\" data-yui3-record=\"{clientId}\" class=\"{rowClass}\">{content}</tr>'"," @since 3.5.0"," **/"," ROW_TEMPLATE : '<tr id=\"{rowId}\" data-yui3-record=\"{clientId}\" class=\"{rowClass}\">{content}</tr>',",""," /**"," The object that serves as the source of truth for column and row data."," This property is assigned at instantiation from the `host` property of"," the configuration object passed to the constructor.",""," @property host"," @type {Object}"," @default (initially unset)"," @since 3.5.0"," **/"," //TODO: should this be protected?"," //host: null,",""," /**"," HTML templates used to create the `<tbody>` containing the table rows.",""," @property TBODY_TEMPLATE"," @type {String}"," @default '<tbody class=\"{className}\">{content}</tbody>'"," @since 3.6.0"," **/"," TBODY_TEMPLATE: '<tbody class=\"{className}\"></tbody>',",""," // -- Public methods ------------------------------------------------------",""," /**"," Returns the `<td>` Node from the given row and column index. Alternately,"," the `seed` can be a Node. If so, the nearest ancestor cell is returned."," If the `seed` is a cell, it is returned. If there is no cell at the given"," coordinates, `null` is returned.",""," Optionally, include an offset array or string to return a cell near the"," cell identified by the `seed`. The offset can be an array containing the"," number of rows to shift followed by the number of columns to shift, or one"," of \"above\", \"below\", \"next\", or \"previous\".",""," <pre><code>// Previous cell in the previous row"," var cell = table.getCell(e.target, [-1, -1]);",""," // Next cell"," var cell = table.getCell(e.target, 'next');"," var cell = table.getCell(e.target, [0, 1];</pre></code>",""," @method getCell"," @param {Number[]|Node} seed Array of row and column indexes, or a Node that"," is either the cell itself or a descendant of one."," @param {Number[]|String} [shift] Offset by which to identify the returned"," cell Node"," @return {Node}"," @since 3.5.0"," **/"," getCell: function (seed, shift) {"," var tbody = this.tbodyNode,"," row, cell, index, rowIndexOffset;",""," if (seed && tbody) {"," if (isArray(seed)) {"," row = tbody.get('children').item(seed[0]);"," cell = row && row.get('children').item(seed[1]);"," } else if (seed._node) {"," cell = seed.ancestor('.' + this.getClassName('cell'), true);"," }",""," if (cell && shift) {"," rowIndexOffset = tbody.get('firstChild.rowIndex');"," if (isString(shift)) {"," if (!shiftMap[shift]) {"," Y.error('Unrecognized shift: ' + shift, null, 'datatable-body');"," }"," shift = shiftMap[shift];"," }",""," if (isArray(shift)) {"," index = cell.get('parentNode.rowIndex') +"," shift[0] - rowIndexOffset;"," row = tbody.get('children').item(index);",""," index = cell.get('cellIndex') + shift[1];"," cell = row && row.get('children').item(index);"," }"," }"," }",""," return cell || null;"," },",""," /**"," Returns the generated CSS classname based on the input. If the `host`"," attribute is configured, it will attempt to relay to its `getClassName`"," or use its static `NAME` property as a string base.",""," If `host` is absent or has neither method nor `NAME`, a CSS classname"," will be generated using this class's `NAME`.",""," @method getClassName"," @param {String} token* Any number of token strings to assemble the"," classname from."," @return {String}"," @protected"," @since 3.5.0"," **/"," getClassName: function () {"," var host = this.host,"," args;",""," if (host && host.getClassName) {"," return host.getClassName.apply(host, arguments);"," } else {"," args = toArray(arguments);"," args.unshift(this.constructor.NAME);"," return Y.ClassNameManager.getClassName"," .apply(Y.ClassNameManager, args);"," }"," },",""," /**"," Returns the Model associated to the row Node or id provided. Passing the"," Node or id for a descendant of the row also works.",""," If no Model can be found, `null` is returned.",""," @method getRecord"," @param {String|Node} seed Row Node or `id`, or one for a descendant of a row"," @return {Model}"," @since 3.5.0"," **/"," getRecord: function (seed) {"," var modelList = this.get('modelList'),"," tbody = this.tbodyNode,"," row = null,"," record;",""," if (tbody) {"," if (isString(seed)) {"," seed = tbody.one('#' + seed);"," }",""," if (seed && seed._node) {"," row = seed.ancestor(function (node) {"," return node.get('parentNode').compareTo(tbody);"," }, true);",""," record = row &&"," modelList.getByClientId(row.getData('yui3-record'));"," }"," }",""," return record || null;"," },",""," /**"," Returns the `<tr>` Node from the given row index, Model, or Model's"," `clientId`. If the rows haven't been rendered yet, or if the row can't be"," found by the input, `null` is returned.",""," @method getRow"," @param {Number|String|Model} id Row index, Model instance, or clientId"," @return {Node}"," @since 3.5.0"," **/"," getRow: function (id) {"," var tbody = this.tbodyNode,"," row = null;",""," if (tbody) {"," if (id) {"," id = this._idMap[id.get ? id.get('clientId') : id] || id;"," }",""," row = isNumber(id) ?"," tbody.get('children').item(id) :"," tbody.one('#' + id);"," }",""," return row;"," },",""," /**"," Creates the table's `<tbody>` content by assembling markup generated by"," populating the `ROW\\_TEMPLATE`, and `CELL\\_TEMPLATE` templates with content"," from the `columns` and `modelList` attributes.",""," The rendering process happens in three stages:",""," 1. A row template is assembled from the `columns` attribute (see"," `_createRowTemplate`)",""," 2. An HTML string is built up by concatenating the application of the data in"," each Model in the `modelList` to the row template. For cells with"," `formatter`s, the function is called to generate cell content. Cells"," with `nodeFormatter`s are ignored. For all other cells, the data value"," from the Model attribute for the given column key is used. The"," accumulated row markup is then inserted into the container.",""," 3. If any column is configured with a `nodeFormatter`, the `modelList` is"," iterated again to apply the `nodeFormatter`s.",""," Supported properties of the column objects include:",""," * `key` - Used to link a column to an attribute in a Model."," * `name` - Used for columns that don't relate to an attribute in the Model"," (`formatter` or `nodeFormatter` only) if the implementer wants a"," predictable name to refer to in their CSS."," * `cellTemplate` - Overrides the instance's `CELL_TEMPLATE` for cells in"," this column only."," * `formatter` - Used to customize or override the content value from the"," Model. These do not have access to the cell or row Nodes and should"," return string (HTML) content."," * `nodeFormatter` - Used to provide content for a cell as well as perform"," any custom modifications on the cell or row Node that could not be"," performed by `formatter`s. Should be used sparingly for better"," performance."," * `emptyCellValue` - String (HTML) value to use if the Model data for a"," column, or the content generated by a `formatter`, is the empty string,"," `null`, or `undefined`."," * `allowHTML` - Set to `true` if a column value, `formatter`, or"," `emptyCellValue` can contain HTML. This defaults to `false` to protect"," against XSS."," * `className` - Space delimited CSS classes to add to all `<td>`s in a"," column.",""," Column `formatter`s are passed an object (`o`) with the following"," properties:",""," * `value` - The current value of the column's associated attribute, if"," any."," * `data` - An object map of Model keys to their current values."," * `record` - The Model instance."," * `column` - The column configuration object for the current column."," * `className` - Initially empty string to allow `formatter`s to add CSS"," classes to the cell's `<td>`."," * `rowIndex` - The zero-based row number."," * `rowClass` - Initially empty string to allow `formatter`s to add CSS"," classes to the cell's containing row `<tr>`.",""," They may return a value or update `o.value` to assign specific HTML"," content. A returned value has higher precedence.",""," Column `nodeFormatter`s are passed an object (`o`) with the following"," properties:",""," * `value` - The current value of the column's associated attribute, if"," any."," * `td` - The `<td>` Node instance."," * `cell` - The `<div>` liner Node instance if present, otherwise, the"," `<td>`. When adding content to the cell, prefer appending into this"," property."," * `data` - An object map of Model keys to their current values."," * `record` - The Model instance."," * `column` - The column configuration object for the current column."," * `rowIndex` - The zero-based row number.",""," They are expected to inject content into the cell's Node directly, including"," any \"empty\" cell content. Each `nodeFormatter` will have access through the"," Node API to all cells and rows in the `<tbody>`, but not to the `<table>`,"," as it will not be attached yet.",""," If a `nodeFormatter` returns `false`, the `o.td` and `o.cell` Nodes will be"," `destroy()`ed to remove them from the Node cache and free up memory. The"," DOM elements will remain as will any content added to them. _It is highly"," advisable to always return `false` from your `nodeFormatter`s_.",""," @method render"," @chainable"," @since 3.5.0"," **/"," render: function () {"," var table = this.get('container'),"," data = this.get('modelList'),"," displayCols = this.get('columns'),"," tbody = this.tbodyNode ||"," (this.tbodyNode = this._createTBodyNode());",""," // Needed for mutation"," this._createRowTemplate(displayCols);",""," if (data) {"," tbody.setHTML(this._createDataHTML(displayCols));",""," this._applyNodeFormatters(tbody, displayCols);"," }",""," if (tbody.get('parentNode') !== table) {"," table.appendChild(tbody);"," }",""," this.bindUI();",""," return this;"," },",""," /**"," Refreshes the provided row against the provided model and the Array of"," columns to be updated.",""," @method refreshRow"," @param {Node} row"," @param {Model} model Y.Model representation of the row"," @param {String[]} colKeys Array of column keys",""," @chainable"," */"," refreshRow: function (row, model, colKeys) {"," var col,"," cell,"," len = colKeys.length,"," i;",""," for (i = 0; i < len; i++) {"," col = this.getColumn(colKeys[i]);",""," if (col !== null) {"," cell = row.one('.' + this.getClassName('col', col._id || col.key));"," this.refreshCell(cell, model);"," }"," }",""," return this;"," },",""," /**"," Refreshes the given cell with the provided model data and the provided"," column configuration.",""," Uses the provided column formatter if aviable.",""," @method refreshCell"," @param {Node} cell Y.Node pointer to the cell element to be updated"," @param {Model} [model] Y.Model representation of the row"," @param {Object} [col] Column configuration object for the cell",""," @chainable"," */"," refreshCell: function (cell, model, col) {"," var content,"," formatterFn,"," formatterData,"," data = model.toJSON();",""," cell = this.getCell(cell);"," /* jshint -W030 */"," model || (model = this.getRecord(cell));"," col || (col = this.getColumn(cell));"," /* jshint +W030 */",""," if (col.nodeFormatter) {"," formatterData = {"," cell: cell.one('.' + this.getClassName('liner')) || cell,"," column: col,"," data: data,"," record: model,"," rowIndex: this._getRowIndex(cell.ancestor('tr')),"," td: cell,"," value: data[col.key]"," };",""," keep = col.nodeFormatter.call(host,formatterData);",""," if (keep === false) {"," // Remove from the Node cache to reduce"," // memory footprint. This also purges events,"," // which you shouldn't be scoping to a cell"," // anyway. You've been warned. Incidentally,"," // you should always return false. Just sayin."," cell.destroy(true);"," }",""," } else if (col.formatter) {"," if (!col._formatterFn) {"," col = this._setColumnsFormatterFn([col])[0];"," }",""," formatterFn = col._formatterFn || null;",""," if (formatterFn) {"," formatterData = {"," value : data[col.key],"," data : data,"," column : col,"," record : model,"," className: '',"," rowClass : '',"," rowIndex : this._getRowIndex(cell.ancestor('tr'))"," };",""," // Formatters can either return a value ..."," content = formatterFn.call(this.get('host'), formatterData);",""," // ... or update the value property of the data obj passed"," if (content === undefined) {"," content = formatterData.value;"," }"," }",""," if (content === undefined || content === null || content === '') {"," content = col.emptyCellValue || '';"," }",""," } else {"," content = data[col.key] || col.emptyCellValue || '';"," }",""," cell.setHTML(col.allowHTML ? content : Y.Escape.html(content));",""," return this;"," },",""," /**"," Returns column data from this.get('columns'). If a Y.Node is provided as"," the key, will try to determine the key from the classname"," @method getColumn"," @param {String|Node} name"," @return {Object} Returns column configuration"," */"," getColumn: function (name) {"," if (name && name._node) {"," // get column name from node"," name = name.get('className').match("," new RegExp( this.getClassName('col') +'-([^ ]*)' )"," )[1];"," }",""," if (this.host) {"," return this.host._columnMap[name] || null;"," }"," var displayCols = this.get('columns'),"," col = null;",""," Y.Array.some(displayCols, function (_col) {"," if ((_col._id || _col.key) === name) {"," col = _col;"," return true;"," }"," });",""," return col;"," },",""," // -- Protected and private methods ---------------------------------------"," /**"," Handles changes in the source's columns attribute. Redraws the table data.",""," @method _afterColumnsChange"," @param {EventFacade} e The `columnsChange` event object"," @protected"," @since 3.5.0"," **/"," // TODO: Preserve existing DOM"," // This will involve parsing and comparing the old and new column configs"," // and reacting to four types of changes:"," // 1. formatter, nodeFormatter, emptyCellValue changes"," // 2. column deletions"," // 3. column additions"," // 4. column moves (preserve cells)"," _afterColumnsChange: function () {"," this.render();"," },",""," /**"," Handles modelList changes, including additions, deletions, and updates.",""," Modifies the existing table DOM accordingly.",""," @method _afterDataChange"," @param {EventFacade} e The `change` event from the ModelList"," @protected"," @since 3.5.0"," **/"," _afterDataChange: function (e) {"," var type = (e.type.match(/:(add|change|remove)$/) || [])[1],"," index = e.index,"," displayCols = this.get('columns'),"," col,"," changed = e.changed && Y.Object.keys(e.changed),"," key,"," row,"," i,"," len;",""," for (i = 0, len = displayCols.length; i < len; i++ ) {"," col = displayCols[i];",""," // since nodeFormatters typcially make changes outside of it's"," // cell, we need to see if there are any columns that have a"," // nodeFormatter and if so, we need to do a full render() of the"," // tbody"," if (col.hasOwnProperty('nodeFormatter')) {"," this.render();"," this.fire(EV_CONTENT_UPDATE);"," return;"," }"," }",""," // TODO: if multiple rows are being added/remove/swapped, can we avoid the restriping?"," switch (type) {"," case 'change':"," for (i = 0, len = displayCols.length; i < len; i++) {"," col = displayCols[i];"," key = col.key;"," if (col.formatter && !e.changed[key]) {"," changed.push(key);"," }"," }"," this.refreshRow(this.getRow(e.target), e.target, changed);"," break;"," case 'add':"," // we need to make sure we don't have an index larger than the data we have"," index = Math.min(index, this.get('modelList').size() - 1);",""," // updates the columns with formatter functions"," this._setColumnsFormatterFn(displayCols);"," row = Y.Node.create(this._createRowHTML(e.model, index, displayCols));"," this.tbodyNode.insert(row, index);"," this._restripe(index);"," break;"," case 'remove':"," this.getRow(index).remove(true);"," // we removed a row, so we need to back up our index to stripe"," this._restripe(index - 1);"," break;"," default:"," this.render();"," }",""," // Event fired to tell users when we are done updating after the data"," // was changed"," this.fire(EV_CONTENT_UPDATE);"," },",""," /**"," Toggles the odd/even classname of the row after the given index. This method"," is used to update rows after a row is inserted into or removed from the table."," Note this event is delayed so the table is only restriped once when multiple"," rows are updated at one time.",""," @protected"," @method _restripe"," @param {Number} [index] Index of row to start restriping after"," @since 3.11.0"," */"," _restripe: function (index) {"," var task = this._restripeTask,"," self;",""," // index|0 to force int, avoid NaN. Math.max() to avoid neg indexes."," index = Math.max((index|0), 0);",""," if (!task) {"," self = this;",""," this._restripeTask = {"," timer: setTimeout(function () {"," // Check for self existence before continuing"," if (!self || self.get('destroy') || !self.tbodyNode || !self.tbodyNode.inDoc()) {"," self._restripeTask = null;"," return;"," }",""," var odd = [self.CLASS_ODD, self.CLASS_EVEN],"," even = [self.CLASS_EVEN, self.CLASS_ODD],"," index = self._restripeTask.index;",""," self.tbodyNode.get('childNodes')"," .slice(index)"," .each(function (row, i) { // TODO: each vs batch"," row.replaceClass.apply(row, (index + i) % 2 ? even : odd);"," });",""," self._restripeTask = null;"," }, 0),",""," index: index"," };"," } else {"," task.index = Math.min(task.index, index);"," }",""," },",""," /**"," Handles replacement of the modelList.",""," Rerenders the `<tbody>` contents.",""," @method _afterModelListChange"," @param {EventFacade} e The `modelListChange` event"," @protected"," @since 3.6.0"," **/"," _afterModelListChange: function () {"," var handles = this._eventHandles;",""," if (handles.dataChange) {"," handles.dataChange.detach();"," delete handles.dataChange;"," this.bindUI();"," }",""," if (this.tbodyNode) {"," this.render();"," }"," },",""," /**"," Iterates the `modelList`, and calls any `nodeFormatter`s found in the"," `columns` param on the appropriate cell Nodes in the `tbody`.",""," @method _applyNodeFormatters"," @param {Node} tbody The `<tbody>` Node whose columns to update"," @param {Object[]} displayCols The column configurations"," @protected"," @since 3.5.0"," **/"," _applyNodeFormatters: function (tbody, displayCols) {"," var host = this.host || this,"," data = this.get('modelList'),"," formatters = [],"," linerQuery = '.' + this.getClassName('liner'),"," rows, i, len;",""," // Only iterate the ModelList again if there are nodeFormatters"," for (i = 0, len = displayCols.length; i < len; ++i) {"," if (displayCols[i].nodeFormatter) {"," formatters.push(i);"," }"," }",""," if (data && formatters.length) {"," rows = tbody.get('childNodes');",""," data.each(function (record, index) {"," var formatterData = {"," data : record.toJSON(),"," record : record,"," rowIndex : index"," },"," row = rows.item(index),"," i, len, col, key, cells, cell, keep;","",""," if (row) {"," cells = row.get('childNodes');"," for (i = 0, len = formatters.length; i < len; ++i) {"," cell = cells.item(formatters[i]);",""," if (cell) {"," col = formatterData.column = displayCols[formatters[i]];"," key = col.key || col.id;",""," formatterData.value = record.get(key);"," formatterData.td = cell;"," formatterData.cell = cell.one(linerQuery) || cell;",""," keep = col.nodeFormatter.call(host,formatterData);",""," if (keep === false) {"," // Remove from the Node cache to reduce"," // memory footprint. This also purges events,"," // which you shouldn't be scoping to a cell"," // anyway. You've been warned. Incidentally,"," // you should always return false. Just sayin."," cell.destroy(true);"," }"," }"," }"," }"," });"," }"," },",""," /**"," Binds event subscriptions from the UI and the host (if assigned).",""," @method bindUI"," @protected"," @since 3.5.0"," **/"," bindUI: function () {"," var handles = this._eventHandles,"," modelList = this.get('modelList'),"," changeEvent = modelList.model.NAME + ':change';",""," if (!handles.columnsChange) {"," handles.columnsChange = this.after('columnsChange',"," bind('_afterColumnsChange', this));"," }",""," if (modelList && !handles.dataChange) {"," handles.dataChange = modelList.after("," ['add', 'remove', 'reset', changeEvent],"," bind('_afterDataChange', this));"," }"," },",""," /**"," Iterates the `modelList` and applies each Model to the `_rowTemplate`,"," allowing any column `formatter` or `emptyCellValue` to override cell"," content for the appropriate column. The aggregated HTML string is"," returned.",""," @method _createDataHTML"," @param {Object[]} displayCols The column configurations to customize the"," generated cell content or class names"," @return {String} The markup for all Models in the `modelList`, each applied"," to the `_rowTemplate`"," @protected"," @since 3.5.0"," **/"," _createDataHTML: function (displayCols) {"," var data = this.get('modelList'),"," html = '';",""," if (data) {"," data.each(function (model, index) {"," html += this._createRowHTML(model, index, displayCols);"," }, this);"," }",""," return html;"," },",""," /**"," Applies the data of a given Model, modified by any column formatters and"," supplemented by other template values to the instance's `_rowTemplate` (see"," `_createRowTemplate`). The generated string is then returned.",""," The data from Model's attributes is fetched by `toJSON` and this data"," object is appended with other properties to supply values to {placeholders}"," in the template. For a template generated from a Model with 'foo' and 'bar'"," attributes, the data object would end up with the following properties"," before being used to populate the `_rowTemplate`:",""," * `clientID` - From Model, used the assign the `<tr>`'s 'id' attribute."," * `foo` - The value to populate the 'foo' column cell content. This"," value will be the value stored in the Model's `foo` attribute, or the"," result of the column's `formatter` if assigned. If the value is '',"," `null`, or `undefined`, and the column's `emptyCellValue` is assigned,"," that value will be used."," * `bar` - Same for the 'bar' column cell content."," * `foo-className` - String of CSS classes to apply to the `<td>`."," * `bar-className` - Same."," * `rowClass` - String of CSS classes to apply to the `<tr>`. This"," will be the odd/even class per the specified index plus any additional"," classes assigned by column formatters (via `o.rowClass`).",""," Because this object is available to formatters, any additional properties"," can be added to fill in custom {placeholders} in the `_rowTemplate`.",""," @method _createRowHTML"," @param {Model} model The Model instance to apply to the row template"," @param {Number} index The index the row will be appearing"," @param {Object[]} displayCols The column configurations"," @return {String} The markup for the provided Model, less any `nodeFormatter`s"," @protected"," @since 3.5.0"," **/"," _createRowHTML: function (model, index, displayCols) {"," var data = model.toJSON(),"," clientId = model.get('clientId'),"," values = {"," rowId : this._getRowId(clientId),"," clientId: clientId,"," rowClass: (index % 2) ? this.CLASS_ODD : this.CLASS_EVEN"," },"," host = this.host || this,"," i, len, col, token, value, formatterData;",""," for (i = 0, len = displayCols.length; i < len; ++i) {"," col = displayCols[i];"," value = data[col.key];"," token = col._id || col.key;",""," values[token + '-className'] = '';",""," if (col._formatterFn) {"," formatterData = {"," value : value,"," data : data,"," column : col,"," record : model,"," className: '',"," rowClass : '',"," rowIndex : index"," };",""," // Formatters can either return a value"," value = col._formatterFn.call(host, formatterData);",""," // or update the value property of the data obj passed"," if (value === undefined) {"," value = formatterData.value;"," }",""," values[token + '-className'] = formatterData.className;"," values.rowClass += ' ' + formatterData.rowClass;"," }",""," // if the token missing OR is the value a legit value"," if (!values.hasOwnProperty(token) || data.hasOwnProperty(col.key)) {"," if (value === undefined || value === null || value === '') {"," value = col.emptyCellValue || '';"," }",""," values[token] = col.allowHTML ? value : htmlEscape(value);"," }"," }",""," // replace consecutive whitespace with a single space"," values.rowClass = values.rowClass.replace(/\\s+/g, ' ');",""," return fromTemplate(this._rowTemplate, values);"," },",""," /**"," Locates the row within the tbodyNode and returns the found index, or Null"," if it is not found in the tbodyNode"," @param {Node} row"," @return {Number} Index of row in tbodyNode"," */"," _getRowIndex: function (row) {"," var tbody = this.tbodyNode,"," index = 1;",""," if (tbody && row) {",""," //if row is not in the tbody, return"," if (row.ancestor('tbody') !== tbody) {"," return null;"," }",""," // increment until we no longer have a previous node"," /*jshint boss: true*/"," while (row = row.previous()) { // NOTE: assignment"," /*jshint boss: false*/"," index++;"," }"," }",""," return index;"," },",""," /**"," Creates a custom HTML template string for use in generating the markup for"," individual table rows with {placeholder}s to capture data from the Models"," in the `modelList` attribute or from column `formatter`s.",""," Assigns the `_rowTemplate` property.",""," @method _createRowTemplate"," @param {Object[]} displayCols Array of column configuration objects"," @protected"," @since 3.5.0"," **/"," _createRowTemplate: function (displayCols) {"," var html = '',"," cellTemplate = this.CELL_TEMPLATE,"," i, len, col, key, token, headers, tokenValues, formatter;",""," this._setColumnsFormatterFn(displayCols);",""," for (i = 0, len = displayCols.length; i < len; ++i) {"," col = displayCols[i];"," key = col.key;"," token = col._id || key;"," formatter = col._formatterFn;"," // Only include headers if there are more than one"," headers = (col._headers || []).length > 1 ?"," 'headers=\"' + col._headers.join(' ') + '\"' : '';",""," tokenValues = {"," content : '{' + token + '}',"," headers : headers,"," className: this.getClassName('col', token) + ' ' +"," (col.className || '') + ' ' +"," this.getClassName('cell') +"," ' {' + token + '-className}'"," };"," if (!formatter && col.formatter) {"," tokenValues.content = col.formatter.replace(valueRegExp, tokenValues.content);"," }",""," if (col.nodeFormatter) {"," // Defer all node decoration to the formatter"," tokenValues.content = '';"," }",""," html += fromTemplate(col.cellTemplate || cellTemplate, tokenValues);"," }",""," this._rowTemplate = fromTemplate(this.ROW_TEMPLATE, {"," content: html"," });"," },",""," /**"," Parses the columns array and defines the column's _formatterFn if there"," is a formatter available on the column"," @protected"," @method _setColumnsFormatterFn"," @param {Object[]} displayCols Array of column configuration objects",""," @return {Object[]} Returns modified displayCols configuration Array"," */"," _setColumnsFormatterFn: function (displayCols) {"," var Formatters = Y.DataTable.BodyView.Formatters,"," formatter,"," col,"," i,"," len;",""," for (i = 0, len = displayCols.length; i < len; i++) {"," col = displayCols[i];"," formatter = col.formatter;",""," if (!col._formatterFn && formatter) {"," if (Lang.isFunction(formatter)) {"," col._formatterFn = formatter;"," } else if (formatter in Formatters) {"," col._formatterFn = Formatters[formatter].call(this.host || this, col);"," }"," }"," }",""," return displayCols;"," },",""," /**"," Creates the `<tbody>` node that will store the data rows.",""," @method _createTBodyNode"," @return {Node}"," @protected"," @since 3.6.0"," **/"," _createTBodyNode: function () {"," return Y.Node.create(fromTemplate(this.TBODY_TEMPLATE, {"," className: this.getClassName('data')"," }));"," },",""," /**"," Destroys the instance.",""," @method destructor"," @protected"," @since 3.5.0"," **/"," destructor: function () {"," (new Y.EventHandle(YObject.values(this._eventHandles))).detach();"," },",""," /**"," Holds the event subscriptions needing to be detached when the instance is"," `destroy()`ed.",""," @property _eventHandles"," @type {Object}"," @default undefined (initially unset)"," @protected"," @since 3.5.0"," **/"," //_eventHandles: null,",""," /**"," Returns the row ID associated with a Model's clientId.",""," @method _getRowId"," @param {String} clientId The Model clientId"," @return {String}"," @protected"," **/"," _getRowId: function (clientId) {"," return this._idMap[clientId] || (this._idMap[clientId] = Y.guid());"," },",""," /**"," Map of Model clientIds to row ids.",""," @property _idMap"," @type {Object}"," @protected"," **/"," //_idMap,",""," /**"," Initializes the instance. Reads the following configuration properties in"," addition to the instance attributes:",""," * `columns` - (REQUIRED) The initial column information"," * `host` - The object to serve as source of truth for column info and"," for generating class names",""," @method initializer"," @param {Object} config Configuration data"," @protected"," @since 3.5.0"," **/"," initializer: function (config) {"," this.host = config.host;",""," this._eventHandles = {"," modelListChange: this.after('modelListChange',"," bind('_afterModelListChange', this))"," };"," this._idMap = {};",""," this.CLASS_ODD = this.getClassName('odd');"," this.CLASS_EVEN = this.getClassName('even');",""," }",""," /**"," The HTML template used to create a full row of markup for a single Model in"," the `modelList` plus any customizations defined in the column"," configurations.",""," @property _rowTemplate"," @type {String}"," @default (initially unset)"," @protected"," @since 3.5.0"," **/"," //_rowTemplate: null","},{"," /**"," Hash of formatting functions for cell contents.",""," This property can be populated with a hash of formatting functions by the developer"," or a set of pre-defined functions can be loaded via the `datatable-formatters` module.",""," See: [DataTable.BodyView.Formatters](./DataTable.BodyView.Formatters.html)"," @property Formatters"," @type Object"," @since 3.8.0"," @static"," **/"," Formatters: {}","});","","","}, '3.17.2', {\"requires\": [\"datatable-core\", \"view\", \"classnamemanager\"]});","","}());"]};
}
var __cov_lwdQmRpEAfazeg1nWBy89g = __coverage__['build/datatable-body/datatable-body.js'];
__cov_lwdQmRpEAfazeg1nWBy89g.s['1']++;YUI.add('datatable-body',function(Y,NAME){__cov_lwdQmRpEAfazeg1nWBy89g.f['1']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['2']++;var Lang=Y.Lang,isArray=Lang.isArray,isNumber=Lang.isNumber,isString=Lang.isString,fromTemplate=Lang.sub,htmlEscape=Y.Escape.html,toArray=Y.Array,bind=Y.bind,YObject=Y.Object,valueRegExp=/\{value\}/g,EV_CONTENT_UPDATE='contentUpdate',shiftMap={above:[-1,0],below:[1,0],next:[0,1],prev:[0,-1],previous:[0,-1]};__cov_lwdQmRpEAfazeg1nWBy89g.s['3']++;Y.namespace('DataTable').BodyView=Y.Base.create('tableBody',Y.View,[],{CELL_TEMPLATE:'<td {headers} class="{className}">{content}</td>',ROW_TEMPLATE:'<tr id="{rowId}" data-yui3-record="{clientId}" class="{rowClass}">{content}</tr>',TBODY_TEMPLATE:'<tbody class="{className}"></tbody>',getCell:function(seed,shift){__cov_lwdQmRpEAfazeg1nWBy89g.f['2']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['4']++;var tbody=this.tbodyNode,row,cell,index,rowIndexOffset;__cov_lwdQmRpEAfazeg1nWBy89g.s['5']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['2'][0]++,seed)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['2'][1]++,tbody)){__cov_lwdQmRpEAfazeg1nWBy89g.b['1'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['6']++;if(isArray(seed)){__cov_lwdQmRpEAfazeg1nWBy89g.b['3'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['7']++;row=tbody.get('children').item(seed[0]);__cov_lwdQmRpEAfazeg1nWBy89g.s['8']++;cell=(__cov_lwdQmRpEAfazeg1nWBy89g.b['4'][0]++,row)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['4'][1]++,row.get('children').item(seed[1]));}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['3'][1]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['9']++;if(seed._node){__cov_lwdQmRpEAfazeg1nWBy89g.b['5'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['10']++;cell=seed.ancestor('.'+this.getClassName('cell'),true);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['5'][1]++;}}__cov_lwdQmRpEAfazeg1nWBy89g.s['11']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['7'][0]++,cell)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['7'][1]++,shift)){__cov_lwdQmRpEAfazeg1nWBy89g.b['6'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['12']++;rowIndexOffset=tbody.get('firstChild.rowIndex');__cov_lwdQmRpEAfazeg1nWBy89g.s['13']++;if(isString(shift)){__cov_lwdQmRpEAfazeg1nWBy89g.b['8'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['14']++;if(!shiftMap[shift]){__cov_lwdQmRpEAfazeg1nWBy89g.b['9'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['15']++;Y.error('Unrecognized shift: '+shift,null,'datatable-body');}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['9'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['16']++;shift=shiftMap[shift];}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['8'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['17']++;if(isArray(shift)){__cov_lwdQmRpEAfazeg1nWBy89g.b['10'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['18']++;index=cell.get('parentNode.rowIndex')+shift[0]-rowIndexOffset;__cov_lwdQmRpEAfazeg1nWBy89g.s['19']++;row=tbody.get('children').item(index);__cov_lwdQmRpEAfazeg1nWBy89g.s['20']++;index=cell.get('cellIndex')+shift[1];__cov_lwdQmRpEAfazeg1nWBy89g.s['21']++;cell=(__cov_lwdQmRpEAfazeg1nWBy89g.b['11'][0]++,row)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['11'][1]++,row.get('children').item(index));}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['10'][1]++;}}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['6'][1]++;}}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['1'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['22']++;return(__cov_lwdQmRpEAfazeg1nWBy89g.b['12'][0]++,cell)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['12'][1]++,null);},getClassName:function(){__cov_lwdQmRpEAfazeg1nWBy89g.f['3']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['23']++;var host=this.host,args;__cov_lwdQmRpEAfazeg1nWBy89g.s['24']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['14'][0]++,host)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['14'][1]++,host.getClassName)){__cov_lwdQmRpEAfazeg1nWBy89g.b['13'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['25']++;return host.getClassName.apply(host,arguments);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['13'][1]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['26']++;args=toArray(arguments);__cov_lwdQmRpEAfazeg1nWBy89g.s['27']++;args.unshift(this.constructor.NAME);__cov_lwdQmRpEAfazeg1nWBy89g.s['28']++;return Y.ClassNameManager.getClassName.apply(Y.ClassNameManager,args);}},getRecord:function(seed){__cov_lwdQmRpEAfazeg1nWBy89g.f['4']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['29']++;var modelList=this.get('modelList'),tbody=this.tbodyNode,row=null,record;__cov_lwdQmRpEAfazeg1nWBy89g.s['30']++;if(tbody){__cov_lwdQmRpEAfazeg1nWBy89g.b['15'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['31']++;if(isString(seed)){__cov_lwdQmRpEAfazeg1nWBy89g.b['16'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['32']++;seed=tbody.one('#'+seed);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['16'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['33']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['18'][0]++,seed)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['18'][1]++,seed._node)){__cov_lwdQmRpEAfazeg1nWBy89g.b['17'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['34']++;row=seed.ancestor(function(node){__cov_lwdQmRpEAfazeg1nWBy89g.f['5']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['35']++;return node.get('parentNode').compareTo(tbody);},true);__cov_lwdQmRpEAfazeg1nWBy89g.s['36']++;record=(__cov_lwdQmRpEAfazeg1nWBy89g.b['19'][0]++,row)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['19'][1]++,modelList.getByClientId(row.getData('yui3-record')));}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['17'][1]++;}}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['15'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['37']++;return(__cov_lwdQmRpEAfazeg1nWBy89g.b['20'][0]++,record)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['20'][1]++,null);},getRow:function(id){__cov_lwdQmRpEAfazeg1nWBy89g.f['6']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['38']++;var tbody=this.tbodyNode,row=null;__cov_lwdQmRpEAfazeg1nWBy89g.s['39']++;if(tbody){__cov_lwdQmRpEAfazeg1nWBy89g.b['21'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['40']++;if(id){__cov_lwdQmRpEAfazeg1nWBy89g.b['22'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['41']++;id=(__cov_lwdQmRpEAfazeg1nWBy89g.b['23'][0]++,this._idMap[id.get?(__cov_lwdQmRpEAfazeg1nWBy89g.b['24'][0]++,id.get('clientId')):(__cov_lwdQmRpEAfazeg1nWBy89g.b['24'][1]++,id)])||(__cov_lwdQmRpEAfazeg1nWBy89g.b['23'][1]++,id);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['22'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['42']++;row=isNumber(id)?(__cov_lwdQmRpEAfazeg1nWBy89g.b['25'][0]++,tbody.get('children').item(id)):(__cov_lwdQmRpEAfazeg1nWBy89g.b['25'][1]++,tbody.one('#'+id));}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['21'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['43']++;return row;},render:function(){__cov_lwdQmRpEAfazeg1nWBy89g.f['7']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['44']++;var table=this.get('container'),data=this.get('modelList'),displayCols=this.get('columns'),tbody=(__cov_lwdQmRpEAfazeg1nWBy89g.b['26'][0]++,this.tbodyNode)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['26'][1]++,this.tbodyNode=this._createTBodyNode());__cov_lwdQmRpEAfazeg1nWBy89g.s['45']++;this._createRowTemplate(displayCols);__cov_lwdQmRpEAfazeg1nWBy89g.s['46']++;if(data){__cov_lwdQmRpEAfazeg1nWBy89g.b['27'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['47']++;tbody.setHTML(this._createDataHTML(displayCols));__cov_lwdQmRpEAfazeg1nWBy89g.s['48']++;this._applyNodeFormatters(tbody,displayCols);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['27'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['49']++;if(tbody.get('parentNode')!==table){__cov_lwdQmRpEAfazeg1nWBy89g.b['28'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['50']++;table.appendChild(tbody);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['28'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['51']++;this.bindUI();__cov_lwdQmRpEAfazeg1nWBy89g.s['52']++;return this;},refreshRow:function(row,model,colKeys){__cov_lwdQmRpEAfazeg1nWBy89g.f['8']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['53']++;var col,cell,len=colKeys.length,i;__cov_lwdQmRpEAfazeg1nWBy89g.s['54']++;for(i=0;i<len;i++){__cov_lwdQmRpEAfazeg1nWBy89g.s['55']++;col=this.getColumn(colKeys[i]);__cov_lwdQmRpEAfazeg1nWBy89g.s['56']++;if(col!==null){__cov_lwdQmRpEAfazeg1nWBy89g.b['29'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['57']++;cell=row.one('.'+this.getClassName('col',(__cov_lwdQmRpEAfazeg1nWBy89g.b['30'][0]++,col._id)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['30'][1]++,col.key)));__cov_lwdQmRpEAfazeg1nWBy89g.s['58']++;this.refreshCell(cell,model);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['29'][1]++;}}__cov_lwdQmRpEAfazeg1nWBy89g.s['59']++;return this;},refreshCell:function(cell,model,col){__cov_lwdQmRpEAfazeg1nWBy89g.f['9']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['60']++;var content,formatterFn,formatterData,data=model.toJSON();__cov_lwdQmRpEAfazeg1nWBy89g.s['61']++;cell=this.getCell(cell);__cov_lwdQmRpEAfazeg1nWBy89g.s['62']++;(__cov_lwdQmRpEAfazeg1nWBy89g.b['31'][0]++,model)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['31'][1]++,model=this.getRecord(cell));__cov_lwdQmRpEAfazeg1nWBy89g.s['63']++;(__cov_lwdQmRpEAfazeg1nWBy89g.b['32'][0]++,col)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['32'][1]++,col=this.getColumn(cell));__cov_lwdQmRpEAfazeg1nWBy89g.s['64']++;if(col.nodeFormatter){__cov_lwdQmRpEAfazeg1nWBy89g.b['33'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['65']++;formatterData={cell:(__cov_lwdQmRpEAfazeg1nWBy89g.b['34'][0]++,cell.one('.'+this.getClassName('liner')))||(__cov_lwdQmRpEAfazeg1nWBy89g.b['34'][1]++,cell),column:col,data:data,record:model,rowIndex:this._getRowIndex(cell.ancestor('tr')),td:cell,value:data[col.key]};__cov_lwdQmRpEAfazeg1nWBy89g.s['66']++;keep=col.nodeFormatter.call(host,formatterData);__cov_lwdQmRpEAfazeg1nWBy89g.s['67']++;if(keep===false){__cov_lwdQmRpEAfazeg1nWBy89g.b['35'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['68']++;cell.destroy(true);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['35'][1]++;}}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['33'][1]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['69']++;if(col.formatter){__cov_lwdQmRpEAfazeg1nWBy89g.b['36'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['70']++;if(!col._formatterFn){__cov_lwdQmRpEAfazeg1nWBy89g.b['37'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['71']++;col=this._setColumnsFormatterFn([col])[0];}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['37'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['72']++;formatterFn=(__cov_lwdQmRpEAfazeg1nWBy89g.b['38'][0]++,col._formatterFn)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['38'][1]++,null);__cov_lwdQmRpEAfazeg1nWBy89g.s['73']++;if(formatterFn){__cov_lwdQmRpEAfazeg1nWBy89g.b['39'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['74']++;formatterData={value:data[col.key],data:data,column:col,record:model,className:'',rowClass:'',rowIndex:this._getRowIndex(cell.ancestor('tr'))};__cov_lwdQmRpEAfazeg1nWBy89g.s['75']++;content=formatterFn.call(this.get('host'),formatterData);__cov_lwdQmRpEAfazeg1nWBy89g.s['76']++;if(content===undefined){__cov_lwdQmRpEAfazeg1nWBy89g.b['40'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['77']++;content=formatterData.value;}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['40'][1]++;}}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['39'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['78']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['42'][0]++,content===undefined)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['42'][1]++,content===null)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['42'][2]++,content==='')){__cov_lwdQmRpEAfazeg1nWBy89g.b['41'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['79']++;content=(__cov_lwdQmRpEAfazeg1nWBy89g.b['43'][0]++,col.emptyCellValue)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['43'][1]++,'');}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['41'][1]++;}}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['36'][1]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['80']++;content=(__cov_lwdQmRpEAfazeg1nWBy89g.b['44'][0]++,data[col.key])||(__cov_lwdQmRpEAfazeg1nWBy89g.b['44'][1]++,col.emptyCellValue)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['44'][2]++,'');}}__cov_lwdQmRpEAfazeg1nWBy89g.s['81']++;cell.setHTML(col.allowHTML?(__cov_lwdQmRpEAfazeg1nWBy89g.b['45'][0]++,content):(__cov_lwdQmRpEAfazeg1nWBy89g.b['45'][1]++,Y.Escape.html(content)));__cov_lwdQmRpEAfazeg1nWBy89g.s['82']++;return this;},getColumn:function(name){__cov_lwdQmRpEAfazeg1nWBy89g.f['10']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['83']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['47'][0]++,name)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['47'][1]++,name._node)){__cov_lwdQmRpEAfazeg1nWBy89g.b['46'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['84']++;name=name.get('className').match(new RegExp(this.getClassName('col')+'-([^ ]*)'))[1];}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['46'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['85']++;if(this.host){__cov_lwdQmRpEAfazeg1nWBy89g.b['48'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['86']++;return(__cov_lwdQmRpEAfazeg1nWBy89g.b['49'][0]++,this.host._columnMap[name])||(__cov_lwdQmRpEAfazeg1nWBy89g.b['49'][1]++,null);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['48'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['87']++;var displayCols=this.get('columns'),col=null;__cov_lwdQmRpEAfazeg1nWBy89g.s['88']++;Y.Array.some(displayCols,function(_col){__cov_lwdQmRpEAfazeg1nWBy89g.f['11']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['89']++;if(((__cov_lwdQmRpEAfazeg1nWBy89g.b['51'][0]++,_col._id)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['51'][1]++,_col.key))===name){__cov_lwdQmRpEAfazeg1nWBy89g.b['50'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['90']++;col=_col;__cov_lwdQmRpEAfazeg1nWBy89g.s['91']++;return true;}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['50'][1]++;}});__cov_lwdQmRpEAfazeg1nWBy89g.s['92']++;return col;},_afterColumnsChange:function(){__cov_lwdQmRpEAfazeg1nWBy89g.f['12']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['93']++;this.render();},_afterDataChange:function(e){__cov_lwdQmRpEAfazeg1nWBy89g.f['13']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['94']++;var type=((__cov_lwdQmRpEAfazeg1nWBy89g.b['52'][0]++,e.type.match(/:(add|change|remove)$/))||(__cov_lwdQmRpEAfazeg1nWBy89g.b['52'][1]++,[]))[1],index=e.index,displayCols=this.get('columns'),col,changed=(__cov_lwdQmRpEAfazeg1nWBy89g.b['53'][0]++,e.changed)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['53'][1]++,Y.Object.keys(e.changed)),key,row,i,len;__cov_lwdQmRpEAfazeg1nWBy89g.s['95']++;for(i=0,len=displayCols.length;i<len;i++){__cov_lwdQmRpEAfazeg1nWBy89g.s['96']++;col=displayCols[i];__cov_lwdQmRpEAfazeg1nWBy89g.s['97']++;if(col.hasOwnProperty('nodeFormatter')){__cov_lwdQmRpEAfazeg1nWBy89g.b['54'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['98']++;this.render();__cov_lwdQmRpEAfazeg1nWBy89g.s['99']++;this.fire(EV_CONTENT_UPDATE);__cov_lwdQmRpEAfazeg1nWBy89g.s['100']++;return;}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['54'][1]++;}}__cov_lwdQmRpEAfazeg1nWBy89g.s['101']++;switch(type){case'change':__cov_lwdQmRpEAfazeg1nWBy89g.b['55'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['102']++;for(i=0,len=displayCols.length;i<len;i++){__cov_lwdQmRpEAfazeg1nWBy89g.s['103']++;col=displayCols[i];__cov_lwdQmRpEAfazeg1nWBy89g.s['104']++;key=col.key;__cov_lwdQmRpEAfazeg1nWBy89g.s['105']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['57'][0]++,col.formatter)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['57'][1]++,!e.changed[key])){__cov_lwdQmRpEAfazeg1nWBy89g.b['56'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['106']++;changed.push(key);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['56'][1]++;}}__cov_lwdQmRpEAfazeg1nWBy89g.s['107']++;this.refreshRow(this.getRow(e.target),e.target,changed);__cov_lwdQmRpEAfazeg1nWBy89g.s['108']++;break;case'add':__cov_lwdQmRpEAfazeg1nWBy89g.b['55'][1]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['109']++;index=Math.min(index,this.get('modelList').size()-1);__cov_lwdQmRpEAfazeg1nWBy89g.s['110']++;this._setColumnsFormatterFn(displayCols);__cov_lwdQmRpEAfazeg1nWBy89g.s['111']++;row=Y.Node.create(this._createRowHTML(e.model,index,displayCols));__cov_lwdQmRpEAfazeg1nWBy89g.s['112']++;this.tbodyNode.insert(row,index);__cov_lwdQmRpEAfazeg1nWBy89g.s['113']++;this._restripe(index);__cov_lwdQmRpEAfazeg1nWBy89g.s['114']++;break;case'remove':__cov_lwdQmRpEAfazeg1nWBy89g.b['55'][2]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['115']++;this.getRow(index).remove(true);__cov_lwdQmRpEAfazeg1nWBy89g.s['116']++;this._restripe(index-1);__cov_lwdQmRpEAfazeg1nWBy89g.s['117']++;break;default:__cov_lwdQmRpEAfazeg1nWBy89g.b['55'][3]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['118']++;this.render();}__cov_lwdQmRpEAfazeg1nWBy89g.s['119']++;this.fire(EV_CONTENT_UPDATE);},_restripe:function(index){__cov_lwdQmRpEAfazeg1nWBy89g.f['14']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['120']++;var task=this._restripeTask,self;__cov_lwdQmRpEAfazeg1nWBy89g.s['121']++;index=Math.max(index|0,0);__cov_lwdQmRpEAfazeg1nWBy89g.s['122']++;if(!task){__cov_lwdQmRpEAfazeg1nWBy89g.b['58'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['123']++;self=this;__cov_lwdQmRpEAfazeg1nWBy89g.s['124']++;this._restripeTask={timer:setTimeout(function(){__cov_lwdQmRpEAfazeg1nWBy89g.f['15']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['125']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['60'][0]++,!self)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['60'][1]++,self.get('destroy'))||(__cov_lwdQmRpEAfazeg1nWBy89g.b['60'][2]++,!self.tbodyNode)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['60'][3]++,!self.tbodyNode.inDoc())){__cov_lwdQmRpEAfazeg1nWBy89g.b['59'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['126']++;self._restripeTask=null;__cov_lwdQmRpEAfazeg1nWBy89g.s['127']++;return;}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['59'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['128']++;var odd=[self.CLASS_ODD,self.CLASS_EVEN],even=[self.CLASS_EVEN,self.CLASS_ODD],index=self._restripeTask.index;__cov_lwdQmRpEAfazeg1nWBy89g.s['129']++;self.tbodyNode.get('childNodes').slice(index).each(function(row,i){__cov_lwdQmRpEAfazeg1nWBy89g.f['16']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['130']++;row.replaceClass.apply(row,(index+i)%2?(__cov_lwdQmRpEAfazeg1nWBy89g.b['61'][0]++,even):(__cov_lwdQmRpEAfazeg1nWBy89g.b['61'][1]++,odd));});__cov_lwdQmRpEAfazeg1nWBy89g.s['131']++;self._restripeTask=null;},0),index:index};}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['58'][1]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['132']++;task.index=Math.min(task.index,index);}},_afterModelListChange:function(){__cov_lwdQmRpEAfazeg1nWBy89g.f['17']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['133']++;var handles=this._eventHandles;__cov_lwdQmRpEAfazeg1nWBy89g.s['134']++;if(handles.dataChange){__cov_lwdQmRpEAfazeg1nWBy89g.b['62'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['135']++;handles.dataChange.detach();__cov_lwdQmRpEAfazeg1nWBy89g.s['136']++;delete handles.dataChange;__cov_lwdQmRpEAfazeg1nWBy89g.s['137']++;this.bindUI();}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['62'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['138']++;if(this.tbodyNode){__cov_lwdQmRpEAfazeg1nWBy89g.b['63'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['139']++;this.render();}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['63'][1]++;}},_applyNodeFormatters:function(tbody,displayCols){__cov_lwdQmRpEAfazeg1nWBy89g.f['18']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['140']++;var host=(__cov_lwdQmRpEAfazeg1nWBy89g.b['64'][0]++,this.host)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['64'][1]++,this),data=this.get('modelList'),formatters=[],linerQuery='.'+this.getClassName('liner'),rows,i,len;__cov_lwdQmRpEAfazeg1nWBy89g.s['141']++;for(i=0,len=displayCols.length;i<len;++i){__cov_lwdQmRpEAfazeg1nWBy89g.s['142']++;if(displayCols[i].nodeFormatter){__cov_lwdQmRpEAfazeg1nWBy89g.b['65'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['143']++;formatters.push(i);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['65'][1]++;}}__cov_lwdQmRpEAfazeg1nWBy89g.s['144']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['67'][0]++,data)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['67'][1]++,formatters.length)){__cov_lwdQmRpEAfazeg1nWBy89g.b['66'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['145']++;rows=tbody.get('childNodes');__cov_lwdQmRpEAfazeg1nWBy89g.s['146']++;data.each(function(record,index){__cov_lwdQmRpEAfazeg1nWBy89g.f['19']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['147']++;var formatterData={data:record.toJSON(),record:record,rowIndex:index},row=rows.item(index),i,len,col,key,cells,cell,keep;__cov_lwdQmRpEAfazeg1nWBy89g.s['148']++;if(row){__cov_lwdQmRpEAfazeg1nWBy89g.b['68'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['149']++;cells=row.get('childNodes');__cov_lwdQmRpEAfazeg1nWBy89g.s['150']++;for(i=0,len=formatters.length;i<len;++i){__cov_lwdQmRpEAfazeg1nWBy89g.s['151']++;cell=cells.item(formatters[i]);__cov_lwdQmRpEAfazeg1nWBy89g.s['152']++;if(cell){__cov_lwdQmRpEAfazeg1nWBy89g.b['69'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['153']++;col=formatterData.column=displayCols[formatters[i]];__cov_lwdQmRpEAfazeg1nWBy89g.s['154']++;key=(__cov_lwdQmRpEAfazeg1nWBy89g.b['70'][0]++,col.key)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['70'][1]++,col.id);__cov_lwdQmRpEAfazeg1nWBy89g.s['155']++;formatterData.value=record.get(key);__cov_lwdQmRpEAfazeg1nWBy89g.s['156']++;formatterData.td=cell;__cov_lwdQmRpEAfazeg1nWBy89g.s['157']++;formatterData.cell=(__cov_lwdQmRpEAfazeg1nWBy89g.b['71'][0]++,cell.one(linerQuery))||(__cov_lwdQmRpEAfazeg1nWBy89g.b['71'][1]++,cell);__cov_lwdQmRpEAfazeg1nWBy89g.s['158']++;keep=col.nodeFormatter.call(host,formatterData);__cov_lwdQmRpEAfazeg1nWBy89g.s['159']++;if(keep===false){__cov_lwdQmRpEAfazeg1nWBy89g.b['72'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['160']++;cell.destroy(true);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['72'][1]++;}}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['69'][1]++;}}}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['68'][1]++;}});}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['66'][1]++;}},bindUI:function(){__cov_lwdQmRpEAfazeg1nWBy89g.f['20']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['161']++;var handles=this._eventHandles,modelList=this.get('modelList'),changeEvent=modelList.model.NAME+':change';__cov_lwdQmRpEAfazeg1nWBy89g.s['162']++;if(!handles.columnsChange){__cov_lwdQmRpEAfazeg1nWBy89g.b['73'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['163']++;handles.columnsChange=this.after('columnsChange',bind('_afterColumnsChange',this));}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['73'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['164']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['75'][0]++,modelList)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['75'][1]++,!handles.dataChange)){__cov_lwdQmRpEAfazeg1nWBy89g.b['74'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['165']++;handles.dataChange=modelList.after(['add','remove','reset',changeEvent],bind('_afterDataChange',this));}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['74'][1]++;}},_createDataHTML:function(displayCols){__cov_lwdQmRpEAfazeg1nWBy89g.f['21']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['166']++;var data=this.get('modelList'),html='';__cov_lwdQmRpEAfazeg1nWBy89g.s['167']++;if(data){__cov_lwdQmRpEAfazeg1nWBy89g.b['76'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['168']++;data.each(function(model,index){__cov_lwdQmRpEAfazeg1nWBy89g.f['22']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['169']++;html+=this._createRowHTML(model,index,displayCols);},this);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['76'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['170']++;return html;},_createRowHTML:function(model,index,displayCols){__cov_lwdQmRpEAfazeg1nWBy89g.f['23']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['171']++;var data=model.toJSON(),clientId=model.get('clientId'),values={rowId:this._getRowId(clientId),clientId:clientId,rowClass:index%2?(__cov_lwdQmRpEAfazeg1nWBy89g.b['77'][0]++,this.CLASS_ODD):(__cov_lwdQmRpEAfazeg1nWBy89g.b['77'][1]++,this.CLASS_EVEN)},host=(__cov_lwdQmRpEAfazeg1nWBy89g.b['78'][0]++,this.host)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['78'][1]++,this),i,len,col,token,value,formatterData;__cov_lwdQmRpEAfazeg1nWBy89g.s['172']++;for(i=0,len=displayCols.length;i<len;++i){__cov_lwdQmRpEAfazeg1nWBy89g.s['173']++;col=displayCols[i];__cov_lwdQmRpEAfazeg1nWBy89g.s['174']++;value=data[col.key];__cov_lwdQmRpEAfazeg1nWBy89g.s['175']++;token=(__cov_lwdQmRpEAfazeg1nWBy89g.b['79'][0]++,col._id)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['79'][1]++,col.key);__cov_lwdQmRpEAfazeg1nWBy89g.s['176']++;values[token+'-className']='';__cov_lwdQmRpEAfazeg1nWBy89g.s['177']++;if(col._formatterFn){__cov_lwdQmRpEAfazeg1nWBy89g.b['80'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['178']++;formatterData={value:value,data:data,column:col,record:model,className:'',rowClass:'',rowIndex:index};__cov_lwdQmRpEAfazeg1nWBy89g.s['179']++;value=col._formatterFn.call(host,formatterData);__cov_lwdQmRpEAfazeg1nWBy89g.s['180']++;if(value===undefined){__cov_lwdQmRpEAfazeg1nWBy89g.b['81'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['181']++;value=formatterData.value;}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['81'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['182']++;values[token+'-className']=formatterData.className;__cov_lwdQmRpEAfazeg1nWBy89g.s['183']++;values.rowClass+=' '+formatterData.rowClass;}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['80'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['184']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['83'][0]++,!values.hasOwnProperty(token))||(__cov_lwdQmRpEAfazeg1nWBy89g.b['83'][1]++,data.hasOwnProperty(col.key))){__cov_lwdQmRpEAfazeg1nWBy89g.b['82'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['185']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['85'][0]++,value===undefined)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['85'][1]++,value===null)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['85'][2]++,value==='')){__cov_lwdQmRpEAfazeg1nWBy89g.b['84'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['186']++;value=(__cov_lwdQmRpEAfazeg1nWBy89g.b['86'][0]++,col.emptyCellValue)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['86'][1]++,'');}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['84'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['187']++;values[token]=col.allowHTML?(__cov_lwdQmRpEAfazeg1nWBy89g.b['87'][0]++,value):(__cov_lwdQmRpEAfazeg1nWBy89g.b['87'][1]++,htmlEscape(value));}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['82'][1]++;}}__cov_lwdQmRpEAfazeg1nWBy89g.s['188']++;values.rowClass=values.rowClass.replace(/\s+/g,' ');__cov_lwdQmRpEAfazeg1nWBy89g.s['189']++;return fromTemplate(this._rowTemplate,values);},_getRowIndex:function(row){__cov_lwdQmRpEAfazeg1nWBy89g.f['24']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['190']++;var tbody=this.tbodyNode,index=1;__cov_lwdQmRpEAfazeg1nWBy89g.s['191']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['89'][0]++,tbody)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['89'][1]++,row)){__cov_lwdQmRpEAfazeg1nWBy89g.b['88'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['192']++;if(row.ancestor('tbody')!==tbody){__cov_lwdQmRpEAfazeg1nWBy89g.b['90'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['193']++;return null;}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['90'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['194']++;while(row=row.previous()){__cov_lwdQmRpEAfazeg1nWBy89g.s['195']++;index++;}}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['88'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['196']++;return index;},_createRowTemplate:function(displayCols){__cov_lwdQmRpEAfazeg1nWBy89g.f['25']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['197']++;var html='',cellTemplate=this.CELL_TEMPLATE,i,len,col,key,token,headers,tokenValues,formatter;__cov_lwdQmRpEAfazeg1nWBy89g.s['198']++;this._setColumnsFormatterFn(displayCols);__cov_lwdQmRpEAfazeg1nWBy89g.s['199']++;for(i=0,len=displayCols.length;i<len;++i){__cov_lwdQmRpEAfazeg1nWBy89g.s['200']++;col=displayCols[i];__cov_lwdQmRpEAfazeg1nWBy89g.s['201']++;key=col.key;__cov_lwdQmRpEAfazeg1nWBy89g.s['202']++;token=(__cov_lwdQmRpEAfazeg1nWBy89g.b['91'][0]++,col._id)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['91'][1]++,key);__cov_lwdQmRpEAfazeg1nWBy89g.s['203']++;formatter=col._formatterFn;__cov_lwdQmRpEAfazeg1nWBy89g.s['204']++;headers=((__cov_lwdQmRpEAfazeg1nWBy89g.b['93'][0]++,col._headers)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['93'][1]++,[])).length>1?(__cov_lwdQmRpEAfazeg1nWBy89g.b['92'][0]++,'headers="'+col._headers.join(' ')+'"'):(__cov_lwdQmRpEAfazeg1nWBy89g.b['92'][1]++,'');__cov_lwdQmRpEAfazeg1nWBy89g.s['205']++;tokenValues={content:'{'+token+'}',headers:headers,className:this.getClassName('col',token)+' '+((__cov_lwdQmRpEAfazeg1nWBy89g.b['94'][0]++,col.className)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['94'][1]++,''))+' '+this.getClassName('cell')+' {'+token+'-className}'};__cov_lwdQmRpEAfazeg1nWBy89g.s['206']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['96'][0]++,!formatter)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['96'][1]++,col.formatter)){__cov_lwdQmRpEAfazeg1nWBy89g.b['95'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['207']++;tokenValues.content=col.formatter.replace(valueRegExp,tokenValues.content);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['95'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['208']++;if(col.nodeFormatter){__cov_lwdQmRpEAfazeg1nWBy89g.b['97'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['209']++;tokenValues.content='';}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['97'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['210']++;html+=fromTemplate((__cov_lwdQmRpEAfazeg1nWBy89g.b['98'][0]++,col.cellTemplate)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['98'][1]++,cellTemplate),tokenValues);}__cov_lwdQmRpEAfazeg1nWBy89g.s['211']++;this._rowTemplate=fromTemplate(this.ROW_TEMPLATE,{content:html});},_setColumnsFormatterFn:function(displayCols){__cov_lwdQmRpEAfazeg1nWBy89g.f['26']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['212']++;var Formatters=Y.DataTable.BodyView.Formatters,formatter,col,i,len;__cov_lwdQmRpEAfazeg1nWBy89g.s['213']++;for(i=0,len=displayCols.length;i<len;i++){__cov_lwdQmRpEAfazeg1nWBy89g.s['214']++;col=displayCols[i];__cov_lwdQmRpEAfazeg1nWBy89g.s['215']++;formatter=col.formatter;__cov_lwdQmRpEAfazeg1nWBy89g.s['216']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['100'][0]++,!col._formatterFn)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['100'][1]++,formatter)){__cov_lwdQmRpEAfazeg1nWBy89g.b['99'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['217']++;if(Lang.isFunction(formatter)){__cov_lwdQmRpEAfazeg1nWBy89g.b['101'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['218']++;col._formatterFn=formatter;}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['101'][1]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['219']++;if(formatter in Formatters){__cov_lwdQmRpEAfazeg1nWBy89g.b['102'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['220']++;col._formatterFn=Formatters[formatter].call((__cov_lwdQmRpEAfazeg1nWBy89g.b['103'][0]++,this.host)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['103'][1]++,this),col);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['102'][1]++;}}}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['99'][1]++;}}__cov_lwdQmRpEAfazeg1nWBy89g.s['221']++;return displayCols;},_createTBodyNode:function(){__cov_lwdQmRpEAfazeg1nWBy89g.f['27']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['222']++;return Y.Node.create(fromTemplate(this.TBODY_TEMPLATE,{className:this.getClassName('data')}));},destructor:function(){__cov_lwdQmRpEAfazeg1nWBy89g.f['28']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['223']++;new Y.EventHandle(YObject.values(this._eventHandles)).detach();},_getRowId:function(clientId){__cov_lwdQmRpEAfazeg1nWBy89g.f['29']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['224']++;return(__cov_lwdQmRpEAfazeg1nWBy89g.b['104'][0]++,this._idMap[clientId])||(__cov_lwdQmRpEAfazeg1nWBy89g.b['104'][1]++,this._idMap[clientId]=Y.guid());},initializer:function(config){__cov_lwdQmRpEAfazeg1nWBy89g.f['30']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['225']++;this.host=config.host;__cov_lwdQmRpEAfazeg1nWBy89g.s['226']++;this._eventHandles={modelListChange:this.after('modelListChange',bind('_afterModelListChange',this))};__cov_lwdQmRpEAfazeg1nWBy89g.s['227']++;this._idMap={};__cov_lwdQmRpEAfazeg1nWBy89g.s['228']++;this.CLASS_ODD=this.getClassName('odd');__cov_lwdQmRpEAfazeg1nWBy89g.s['229']++;this.CLASS_EVEN=this.getClassName('even');}},{Formatters:{}});},'3.17.2',{'requires':['datatable-core','view','classnamemanager']});
|
TextField/TextField.spec.js
|
mmellado/airtame-gooey-react
|
import React from 'react';
import { render, shallow, mount } from 'enzyme';
import { spy } from 'sinon';
import TextField from './TextField';
describe('<TextField />', () => {
it('should render the text field', () => {
const wrapper = shallow(<TextField />);
expect(wrapper).toHaveTagName('div');
});
it('should create a text field by default', () => {
const wrapper = render(<TextField />);
expect(wrapper.find('input')[0].attribs.type).toEqual('text');
});
it('should create a text field with an initial value', () => {
const wrapper = render(<TextField value="foo" />);
expect(wrapper.find('input')[0].attribs.value).toEqual('foo');
});
it('should update create a password field with the right props', () => {
const wrapper = render(<TextField type="password" />);
expect(wrapper.find('input')[0].attribs.type).toEqual('password');
});
it('should create a toggle button when creating a password field', () => {
const wrapper = render(<TextField type="password" />);
expect(wrapper.find('button')).toHaveLength(1);
});
it('should omit the password toggle button if requested', () => {
const wrapper = render(<TextField type="password" disablePasswordToggle />);
expect(wrapper.find('button')).toHaveLength(0);
});
it('should switch to a text field when clicking view password', () => {
const wrapper = shallow(<TextField type="password" />);
wrapper.find('button').simulate('click');
expect(wrapper.find('input').is('[type="text"]')).toBe(true);
});
it('should switch back to a password field when clicking hide password', () => {
const wrapper = shallow(<TextField type="password" />);
wrapper.find('button').simulate('click');
wrapper.find('button').simulate('click');
expect(wrapper.find('input').is('[type="password"]')).toBe(true);
});
it('should create a disabled field when requested', () => {
const wrapper = render(<TextField isDisabled />);
expect(wrapper.find('input')[0].attribs.disabled).toEqual('');
});
it('should create a readonly field when requested', () => {
const wrapper = render(<TextField isReadOnly />);
expect(wrapper.find('input')[0].attribs.readonly).toEqual('');
});
it('should add an error class if an error state is passed', () => {
const wrapper = shallow(<TextField isError />);
expect(wrapper).toHaveClassName('gooey-text-field--error');
});
it('should display an error message if error and a message is passed', () => {
const wrapper = render(<TextField isError errorMessage="an error" />);
expect(wrapper.find('.gooey-text-field__error-message').text()).toEqual('an error');
});
it('should not render an error message if an error flag is not passed', () => {
const wrapper = render(<TextField errorMessage="an error" />);
expect(wrapper.find('.gooey-text-field__error-message')).toHaveLength(0);
});
it('should not render an error message container if no error message is passed', () => {
const wrapper = render(<TextField isError />);
expect(wrapper.find('.gooey-text-field__error-message')).toHaveLength(0);
});
it('should add a placeholder text if requested', () => {
const wrapper = render(<TextField placeholder="foo" />);
expect(wrapper.find('input')[0].attribs.placeholder).toEqual('foo');
});
it('should show an error message when the maxContentLength is exceeded', () => {
const wrapper = shallow(<TextField maxContentLength={3} />);
wrapper.find('input').simulate('change', {
target: { value: 'My new value' },
persist: () => {},
});
expect(wrapper.find('.gooey-text-field__error-message')).toHaveLength(1);
expect(wrapper.find('.gooey-text-field--error')).toHaveLength(1);
});
it('should trigger onChange callback with an error when the maxContentLength is exceeded', () => {
const onChangeCallback = spy();
const wrapper = shallow(<TextField onChange={onChangeCallback} maxContentLength={3} />);
wrapper.find('input').simulate('change', {
target: { value: 'My new value' },
persist: () => {},
});
expect(onChangeCallback.args[0][1].name).toBe('Error');
});
it('should trigger an onChange callback function', () => {
const onChangeCallback = spy();
const wrapper = shallow(<TextField onChange={onChangeCallback} />);
wrapper.find('input').simulate('change', {
target: { value: 'a' },
persist: () => {},
});
expect(onChangeCallback).toHaveProperty('callCount', 1);
});
it('should not attempt to trigger an onChange callback function is not passed', () => {
const onChangeCallback = spy();
const wrapper = shallow(<TextField />);
wrapper.find('input').simulate('change', {
target: { value: 'a' },
persist: () => {},
});
expect(onChangeCallback).toHaveProperty('callCount', 0);
});
it('should properly create the ref for the input element', () => {
const wrapper = mount(<TextField inputRef="inputEl" />);
expect(wrapper.ref('inputEl').tagName).toEqual('INPUT');
});
it('should propagate additional valid props to the input element', () => {
const focusCallback = spy();
const wrapper = shallow(<TextField onFocus={focusCallback} />);
wrapper.find('input').simulate('focus');
expect(focusCallback).toHaveProperty('callCount', 1);
});
it('should set the proper value state if the prop is updated', () => {
const wrapper = shallow(<TextField value="foo" />);
expect(wrapper.state('textFieldValue')).toEqual('foo');
wrapper.setProps({ value: 'bar' });
expect(wrapper.state('textFieldValue')).toEqual('bar');
});
it('should not touch the state if props other than value change', () => {
const stateSpy = spy(TextField.prototype, 'setState');
const wrapper = shallow(<TextField value="foo" />);
expect(stateSpy.callCount).toEqual(0);
wrapper.setProps({ placeholder: 'updated placeholder' });
expect(stateSpy.callCount).toEqual(0);
});
});
|
ajax/libs/quickblox/1.0.2/quickblox.min.js
|
yukinying/cdnjs
|
!function e(t,n,r){function o(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(i)return i(s,!0);throw new Error("Cannot find module '"+s+"'")}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return o(n?n:e)},l,l.exports,e,t,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(e,t){function n(e){this.service=e}function r(e,t){return signature=a(e,t).toString(),e+"&signature="+signature}function o(e){var t={application_id:e.appId||s.creds.appId,auth_key:e.authKey||s.creds.authKey,nonce:Math.floor(1e4*Math.random()),timestamp:i.unixTime()};e.login&&e.password?t.user={login:e.login,password:e.password}:e.email&&e.password?t.user={email:e.email,password:e.password}:e.provider&&(t.provider=e.provider,e.scope&&(t.scope=e.scope),t.keys={token:e.keys.token},e.keys.secret&&(messages.keys.secret=e.keys.secret));var n="application_id="+t.application_id+"&auth_key="+t.auth_key;return t.keys&&t.keys.token&&(n+="&keys[token]="+t.keys.token),n+="&nonce="+t.nonce,t.provider&&(n+="&provider="+t.provider),n+="×tamp="+t.timestamp,t.user&&(t.user.login&&(n+="&user[login]="+t.user.login),t.user.email&&(n+="&user[email]="+t.user.email),t.user.password&&(n+="&user[password]="+t.user.password)),n}t.exports=n;var i=e("./qbUtils"),s=e("./qbConfig"),a=(e("./qbProxy"),e("../lib/jquery-1.10.2"),e("crypto-js/hmac-sha1")),u=s.urls.base+s.urls.session+s.urls.type,l=s.urls.base+s.urls.login+s.urls.type;n.prototype.createSession=function(e,t){var n,i=this;"function"==typeof e&&"undefined"==typeof t&&(t=e,e={}),n=o(e),n=r(n,e.authSecret||s.creds.authSecret),this.service.ajax({url:u,data:n,type:"POST",processData:!1},function(e,n){s.debug&&console.debug("AuthProxy.createSession callback",e,n),n&&n.session?(i.service.setSession(n.session),t(e,n.session)):t(e,null)})},n.prototype.destroySession=function(e){var t,n=this;t={token:this.service.getSession().token},this.service.ajax({url:u,type:"DELETE",dataType:"text"},function(t,r){s.debug&&console.debug("AuthProxy.destroySession callback",t,r),null===t&&n.service.setSession(null),e(t,!0)})},n.prototype.login=function(e,t){var n=this;null!==this.service.getSession()?(e.token=this.service.getSession().token,this.service.ajax({url:l,type:"POST",data:e},function(e,n){e?t(e,n):t(e,n.user)})):this.createSession(function(r,o){e.token=o.token,n.service.ajax({url:l,type:"POST",data:e},function(e,n){e?t(e,n):t(e,n.user)})})},n.prototype.logout=function(e){var t;t={token:this.service.getSession().token},this.service.ajax({url:l,dataType:"text",data:t,type:"DELETE"},e)},n.prototype.nonce=function(){return this._nonce++}},{"../lib/jquery-1.10.2":11,"./qbConfig":2,"./qbProxy":7,"./qbUtils":9,"crypto-js/hmac-sha1":13}],2:[function(e,t){var n={creds:{appId:"",authKey:"",authSecret:""},urls:{base:"https://api.quickblox.com/",find:"find",session:"session",login:"login",users:"users",pushtokens:"push_tokens",subscriptions:"subscriptions",events:"events",pullevents:"pull_events",geo:"geodata",places:"places",data:"data",content:"blobs",chat:"chat",type:".json"},debug:!1};t.exports=n},{}],3:[function(e,t){function n(e){return s+"/"+e}function r(e){this.service=e}function o(e){for(var t=o.options,n=t.parser[t.strictMode?"strict":"loose"].exec(e),r={},i=14;i--;)r[t.key[i]]=n[i]||"";return r[t.q.name]={},r[t.key[12]].replace(t.q.parser,function(e,n,o){n&&(r[t.q.name][n]=o)}),r}t.exports=r;var i=e("./qbConfig"),s=(e("./qbUtils"),i.urls.base+i.urls.content),a=s+"/tagged";r.prototype.create=function(e,t){i.debug&&console.debug("ContentProxy.create",e),this.service.ajax({url:s+i.urls.type,data:{blob:e},type:"POST"},function(e,n){e?t(e,null):t(e,n.blob)})},r.prototype.list=function(e,t){"function"==typeof e&&"undefined"==typeof t&&(t=e,e=null),this.service.ajax({url:s+i.urls.type},function(e,n){e?t(e,null):t(e,n)})},r.prototype.delete=function(e,t){this.service.ajax({url:n(e)+i.urls.type,type:"DELETE",dataType:"text"},function(e){e?t(e,null):t(null,!0)})},r.prototype.createAndUpload=function(e,t){var n,r,s,a,u,l={},c=this;i.debug&&console.debug("ContentProxy.createAndUpload",e),n=e.file,r=e.name||n.name,s=e.type||n.type,a=n.size,l.name=r,l.content_type=s,e.public&&(l.public=e.public),e.tag_list&&(l.tag_list=e.tag_list),this.create(l,function(e,r){if(e)t(e,null);else{var i=o(r.blob_object_access.params),s={url:i.protocol+"://"+i.host},l=new FormData;u=r.id,l.append("key",i.queryKey.key),l.append("acl",i.queryKey.acl),l.append("success_action_status",i.queryKey.success_action_status),l.append("AWSAccessKeyId",i.queryKey.AWSAccessKeyId),l.append("Policy",decodeURIComponent(i.queryKey.Policy)),l.append("Signature",decodeURIComponent(i.queryKey.Signature)),l.append("Content-Type",i.queryKey["Content-Type"]),l.append("file",n,r.name),s.data=l,c.upload(s,function(e){e?t(e,null):c.markUploaded({id:u,size:a},function(e){e?t(e,null):t(null,r)})})}})},r.prototype.upload=function(e,t){this.service.ajax({url:e.url,data:e.data,dataType:"xml",contentType:!1,processData:!1,type:"POST"},function(e,n){if(e)t(e,null);else{var r,o,s={},a=n.documentElement,u=a.childNodes;for(r=0,o=u.length;o>r;r++)s[u[r].nodeName]=u[r].childNodes[0].nodeValue;i.debug&&console.debug("result",s),t(null,s)}})},r.prototype.taggedForCurrentUser=function(e){this.service.ajax({url:a+i.urls.type},function(t,n){t?e(t,null):e(null,n)})},r.prototype.markUploaded=function(e,t){this.service.ajax({url:n(e.id)+"/complete"+i.urls.type,type:"PUT",data:{size:e.size},dataType:"text"},function(e,n){e?t(e,null):t(null,n)})},r.prototype.getInfo=function(e,t){this.service.ajax({url:n(e)+i.urls.type},function(e,n){e?t(e,null):t(null,n)})},r.prototype.getFile=function(e,t){this.service.ajax({url:n(id)+i.urls.type},function(e,n){e?t(e,null):t(null,n)})},r.prototype.getFileUrl=function(e,t){this.service.ajax({url:n(e)+"/getblobobjectbyid"+i.urls.type,type:"POST"},function(e,n){e?t(e,null):t(null,n.blob_object_access.params)})},r.prototype.update=function(e,t){var r={};r.blob={},"undefined"!=typeof e.name&&(r.blob.name=e.name),this.service.ajax({url:n(param.id),data:r},function(e,n){e?t(e,null):t(null,n)})},o.options={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}}},{"./qbConfig":2,"./qbUtils":9}],4:[function(e,t){function n(e){this.service=e,r.debug&&console.debug("LocationProxy",e)}t.exports=n;var r=e("./qbConfig"),o=e("./qbUtils"),i=r.urls.base+r.urls.data;n.prototype.create=function(e,t,n){r.debug&&console.debug("DataProxy.create",e,t),this.service.ajax({url:o.resourceUrl(i,e),data:t,type:"POST"},function(e,t){e?n(e,null):n(e,t)})},n.prototype.list=function(e,t,n){"undefined"==typeof n&&"function"==typeof t&&(n=t,t=null),r.debug&&console.debug("DataProxy.list",e,t),this.service.ajax({url:o.resourceUrl(i,e),data:t},function(e,t){e?n(e,null):n(e,t)})},n.prototype.update=function(e,t,n){r.debug&&console.debug("DataProxy.update",e,t),this.service.ajax({url:o.resourceUrl(i,e+"/"+t._id),data:t,type:"PUT"},function(e,t){e?n(e,null):n(e,t)})},n.prototype.delete=function(e,t,n){r.debug&&console.debug("DataProxy.delete",e,t),this.service.ajax({url:o.resourceUrl(i,e+"/"+t),type:"DELETE",dataType:"text"},function(e){e?n(e,null):n(e,!0)})},n.prototype.uploadFile=function(e,t,n){var s;r.debug&&console.debug("DataProxy.uploadFile",e,t),s=new FormData,s.append("field_name",t.field_name),s.append("file",t.file),this.service.ajax({url:o.resourceUrl(i,e+"/"+t.id+"/file"),data:s,contentType:!1,processData:!1,type:"POST"},function(e,t){e?n(e,null):n(e,t)})},n.prototype.updateFile=function(e,t,n){var s;r.debug&&console.debug("DataProxy.updateFile",e,t),s=new FormData,s.append("field_name",t.field_name),s.append("file",t.file),this.service.ajax({url:o.resourceUrl(i,e+"/"+t.id+"/file"),data:s,contentType:!1,processData:!1,type:"POST"},function(e,t){e?n(e,null):n(e,t)})},n.prototype.downloadFile=function(e,t,n){r.debug&&console.debug("DataProxy.downloadFile",e,t),this.service.ajax({url:o.resourceUrl(i,e+"/"+t.id+"/file"),data:"field_name="+t.field_name,type:"GET",contentType:!1,processData:!1,mimeType:"text/plain; charset=x-user-defined",dataType:"binary"},function(e,t){e?n(e,null):n(e,t)})},n.prototype.deleteFile=function(e,t,n){r.debug&&console.debug("DataProxy.deleteFile",e,t),this.service.ajax({url:o.resourceUrl(i,e+"/"+t.id+"/file"),data:{field_name:t.field_name},dataType:"text",type:"DELETE"},function(e){e?n(e,null):n(e,!0)})}},{"./qbConfig":2,"./qbUtils":9}],5:[function(e,t){function n(e){this.service=e,this.geodata=new r(e),this.places=new o(e),i.debug&&console.debug("LocationProxy",e)}function r(e){this.service=e}function o(e){this.service=e}t.exports=n;var i=e("./qbConfig"),s=e("./qbUtils"),a=i.urls.base+i.urls.geo,u=a+"/"+i.urls.find+i.urls.type,l=i.urls.base+i.urls.places;r.prototype.create=function(e,t){i.debug&&console.debug("GeoProxy.create",{geo_data:e}),this.service.ajax({url:a+i.urls.type,data:{geo_data:e},type:"POST"},function(e,n){e?t(e,null):t(e,n.geo_datum)})},r.prototype.update=function(e,t){var n,r=["longitude","latitude","status"],o={};for(n in e)e.hasOwnProperty(n)&&r.indexOf(n)>0&&(o[n]=e[n]);i.debug&&console.debug("GeoProxy.create",e),this.service.ajax({url:s.resourceUrl(a,e.id),data:{geo_data:o},type:"PUT"},function(e,n){e?t(e,null):t(e,n.geo_datum)})},r.prototype.get=function(e,t){i.debug&&console.debug("GeoProxy.get",e),this.service.ajax({url:s.resourceUrl(a,e)},function(e,n){e?t(e,null):t(null,n.geo_datum)})},r.prototype.list=function(e,t){"function"==typeof e&&(t=e,e=void 0),i.debug&&console.debug("GeoProxy.find",e),this.service.ajax({url:u,data:e},t)},r.prototype.delete=function(e,t){i.debug&&console.debug("GeoProxy.delete",e),this.service.ajax({url:s.resourceUrl(a,e),type:"DELETE",dataType:"text"},function(e){e?t(e,null):t(null,!0)})},r.prototype.purge=function(e,t){i.debug&&console.debug("GeoProxy.purge",e),this.service.ajax({url:a+i.urls.type,data:{days:e},type:"DELETE",dataType:"text"},function(e){e?t(e,null):t(null,!0)})},o.prototype.list=function(e,t){i.debug&&console.debug("PlacesProxy.list",e),this.service.ajax({url:l+i.urls.type},t)},o.prototype.create=function(e,t){i.debug&&console.debug("PlacesProxy.create",e),this.service.ajax({url:l+i.urls.type,data:{place:e},type:"POST"},t)},o.prototype.get=function(e,t){i.debug&&console.debug("PlacesProxy.get",params),this.service.ajax({url:s.resourceUrl(l,e)},t)},o.prototype.update=function(e,t){i.debug&&console.debug("PlacesProxy.update",e),this.service.ajax({url:s.resourceUrl(l,id),data:{place:e},type:"PUT"},t)},o.prototype.delete=function(e,t){i.debug&&console.debug("PlacesProxy.delete",params),this.service.ajax({url:s.resourceUrl(l,e),type:"DELETE"},t)}},{"./qbConfig":2,"./qbUtils":9}],6:[function(e,t){function n(e){this.service=e,this.tokens=new r(e),this.subscriptions=new o(e),this.events=new i(e)}function r(e){this.service=e}function o(e){this.service=e}function i(e){this.service=e}t.exports=n;var s=e("./qbConfig"),a=(e("./qbProxy"),e("../lib/jquery-1.10.2"),s.urls.base+s.urls.pushtokens),u=s.urls.base+s.urls.subscriptions,l=s.urls.base+s.urls.events,c=s.urls.base+s.urls.pullevents;r.prototype.create=function(e,t){var n={push_token:{environment:e.environment,client_identification_sequence:e.client_identification_sequence},device:{platform:e.platform,udid:e.udid}};s.debug&&console.debug("TokensProxy.create",n),this.service.ajax({url:a+s.urls.type,type:"POST",data:n},function(e,n){e?t(e,null):t(null,n.push_token)})},r.prototype.delete=function(e,t){var n=a+"/"+e+s.urls.type;s.debug&&console.debug("MessageProxy.deletePushToken",e),this.service.ajax({url:n,type:"DELETE",dataType:"text"},function(e){e?t(e,null):t(null,!0)})},o.prototype.create=function(e,t){s.debug&&console.debug("MessageProxy.createSubscription",e),this.service.ajax({url:u+s.urls.type,type:"POST",data:e},t)},o.prototype.list=function(e){s.debug&&console.debug("MessageProxy.listSubscription",params),this.service.ajax({url:u+s.urls.type},e)},o.prototype.delete=function(e,t){var n=u+"/"+e+s.urls.type;s.debug&&console.debug("MessageProxy.deleteSubscription",e),this.service.ajax({url:n,type:"DELETE",dataType:"text"},function(e){e?t(e,null):t(null,!0)})},i.prototype.create=function(e,t){s.debug&&console.debug("MessageProxy.createEvent",e);var n={event:e};this.service.ajax({url:l+s.urls.type,type:"POST",data:n},t)},i.prototype.list=function(e){s.debug&&console.debug("MessageProxy.listEvents"),this.service.ajax({url:l+s.urls.type},e)},i.prototype.get=function(e,t){var n=l+"/"+params.id+s.urls.type;s.debug&&console.debug("MessageProxy.getEvents",e),this.service.ajax({url:n},t)},i.prototype.update=function(e,t){var n=l+"/"+e.id+s.urls.type;s.debug&&console.debug("MessageProxy.createEvent",e);var r={event:e};this.service.ajax({url:n,type:"PUT",data:r},t)},i.prototype.delete=function(e,t){var n=l+"/"+params.id+s.urls.type;s.debug&&console.debug("MessageProxy.deleteEvent",e),this.service.ajax({url:n,type:"DELETE"},t)},i.prototype.pullEvents=function(e){s.debug&&console.debug("MessageProxy.getPullEvents",params),this.service.ajax({url:c+s.urls.type},e)}},{"../lib/jquery-1.10.2":11,"./qbConfig":2,"./qbProxy":7}],7:[function(e,t){function n(e){this.qbInst=e,o.support.cors=!0,o.ajaxSetup({accepts:{binary:"text/plain; charset=x-user-defined"},contents:{},converters:{"text binary":!0}}),r.debug&&console.debug("ServiceProxy",e)}t.exports=n;var r=e("./qbConfig"),o=e("../lib/jquery-1.10.2");n.prototype.setSession=function(e){this.qbInst.session=e},n.prototype.getSession=function(){return this.qbInst.session},n.prototype.ajax=function(e,t){var n=this;r.debug&&console.debug("ServiceProxy",e.type||"GET",e);var i={url:e.url,type:e.type||"GET",dataType:e.dataType||"json",data:e.data,beforeSend:function(e,t){r.debug&&console.debug("ServiceProxy.ajax beforeSend",e,t),-1===t.url.indexOf("://qbprod.s3.amazonaws.com")&&(console.debug("setting headers on request to "+t.url),e.setRequestHeader("QuickBlox-REST-API-Version","0.1.1"),n.qbInst.session&&n.qbInst.session.token&&e.setRequestHeader("QB-Token",n.qbInst.session.token))},success:function(e,n){r.debug&&console.debug("ServiceProxy.ajax success",n,e),t(null,e)},error:function(e,n,o){r.debug&&console.debug("ServiceProxy.ajax error",e,n,o);var i={code:e.status,status:n,message:o};e&&e.responseText&&(i.detail=e.responseText||e.responseXML),r.debug&&console.debug("ServiceProxy.ajax error",o),t(i,null)}};("boolean"==typeof e.contentType||"string"==typeof e.contentType)&&(i.contentType=e.contentType),"boolean"==typeof e.processData&&(i.processData=e.processData),"boolean"==typeof e.crossDomain&&(i.crossDomain=e.crossDomain),"boolean"==typeof e.async&&(i.async=e.async),"boolean"==typeof e.cache&&(i.cache=e.cache),"boolean"==typeof e.crossDomain&&(i.crossDomain=e.crossDomain),"string"==typeof e.mimeType&&(i.mimeType=e.mimeType),o.ajax(i)}},{"../lib/jquery-1.10.2":11,"./qbConfig":2}],8:[function(e,t){function n(e){this.service=e}t.exports=n;var r=e("./qbConfig"),o=(e("./qbProxy"),r.urls.base+r.urls.users);n.prototype.listUsers=function(e,t){var n,o,i={};if(n=r.urls.base+r.urls.users+r.urls.type,"function"==typeof e&&(t=e,e=void 0),e&&e.filter){switch(e.filter.type){case"id":o="number id in";break;case"email":o="string email in";break;case"login":o="string login in";break;case"facebook_id":o="number facebook_id in";break;case"twitter_id":o="number twitter_id in";break;case"phone":o="string phone in"}o=o+" "+e.filter.value,i["filter[]"]=o}e&&e.perPage&&(i.per_page=e.perPage),e&&e.pageNo&&(i.page=e.pageNo),r.debug&&console.debug("UsersProxy.list",i),this.service.ajax({url:n,data:i},t)},n.prototype.create=function(e,t){var n=o+r.urls.type;r.debug&&console.debug("UsersProxy.create",e),this.service.ajax({url:n,type:"POST",data:{user:e}},function(e,n){e?t(e,null):t(null,n.user)})},n.prototype.delete=function(e,t){var n=o+"/"+e+r.urls.type;r.debug&&console.debug("UsersProxy.delete",n),this.service.ajax({url:n,type:"DELETE",dataType:"text"},function(e){e?t(e,null):t(null,!0)})},n.prototype.update=function(e,t){var n,i=["login","blob_id","email","external_user_id","facebook_id","twitter_id","full_name","phone","website","tag_list","password","old_password"],s=o+"/"+e.id+r.urls.type,a={};for(n in e)e.hasOwnProperty(n)&&i.indexOf(n)>0&&(a[n]=e[n]);r.debug&&console.debug("UsersProxy.update",s,e),this.service.ajax({url:s,type:"PUT",data:{user:a}},function(e,n){e?t(e,null):(console.debug(n.user),t(null,n.user))})},n.prototype.get=function(e,t){var n=o;"function"==typeof e&&(t=e,e={}),"number"==typeof e?n+="/"+e+r.urls.type:"object"==typeof e&&(e.id?n+="/"+e.id+r.urls.type:e.facebookId?n+="/by_facebook_id"+r.urls.type+"?facebook_id="+e.facebookId:e.login?n+="/by_login"+r.urls.type+"?login="+e.login:e.fullName?n+="/by_full_name"+r.urls.type+"?full_name="+e.fullName:e.twitterId?n+="/by_twitter_id"+r.urls.type+"?twitter_id="+e.twitterId:e.email?n+="/by_email"+r.urls.type+"?email="+e.email:e.tags&&(n+="/by_tags"+r.urls.type+"?tag="+e.tags)),r.debug&&console.debug("UsersProxy.get",n),this.service.ajax({url:n},function(e,n){var o;n&&n.user&&(o=n.user),r.debug&&console.debug("UserProxy.get",o),t(e,o)})}},{"./qbConfig":2,"./qbProxy":7}],9:[function(e,t,n){function r(){Date.now||(Date.now=function(){return(new Date).getTime()}),"undefined"!=typeof console&&console.log||(window.console={debug:function(){},trace:function(){},log:function(){},info:function(){},warn:function(){},error:function(){}})}var o=e("./qbConfig");n.shims=function(){r()},n.unixTime=function(){return Math.floor(Date.now()/1e3).toString()},n.resourceUrl=function(e,t,n){return e+"/"+t+("undefined"==typeof n?o.urls.type:n)}},{"./qbConfig":2}],10:[function(e,t){function n(){r.debug&&console.debug("Quickblox instantiated",this)}t.exports=n;var r=e("./qbConfig"),o=e("./qbUtils"),i=e("./qbProxy"),s=e("./qbAuth"),a=e("./qbUsers"),u=e("./qbMessages"),l=e("./qbLocation"),c=e("./qbData"),p=e("./qbContent"),f=function(e,t){return o.shims(),"undefined"==typeof e.config&&(e=new n),t&&"undefined"==typeof t.QB&&(t.QB=e),e}(f||{},window);n.prototype.init=function(e,t,n,o){this.session=null,this.service=new i(this),this.auth=new s(this.service),this.users=new a(this.service),this.messages=new u(this.service),this.location=new l(this.service),this.data=new c(this.service),this.content=new p(this.service),"object"==typeof e?(o=e.debug,n=e.authSecret,t=e.authKey,e=e.appId):"string"==typeof e&&"undefined"==typeof t&&"undefined"==typeof n&&(this.session={token:e},e=null,o=!0),r.creds.appId=e,r.creds.authKey=t,r.creds.authSecret=n,o&&(r.debug=o,console.debug("QuickBlox.init",this))},n.prototype.config=r,n.prototype.createSession=function(e,t){this.auth.createSession(e,t)},n.prototype.destroySession=function(e){this.session&&this.auth.destroySession(e)},n.prototype.login=function(e,t){this.auth.login(e,t)},n.prototype.logout=function(e){this.session&&this.auth.logout(e)}},{"./qbAuth":1,"./qbConfig":2,"./qbContent":3,"./qbData":4,"./qbLocation":5,"./qbMessages":6,"./qbProxy":7,"./qbUsers":8,"./qbUtils":9}],11:[function(e,t){!function(e,n){function r(e){var t=e.length,n=pt.type(e);return pt.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function o(e){var t=Et[e]={};return pt.each(e.match(dt)||[],function(e,n){t[n]=!0}),t}function i(e,t,r,o){if(pt.acceptData(e)){var i,s,a=pt.expando,u=e.nodeType,l=u?pt.cache:e,c=u?e[a]:e[a]&&a;if(c&&l[c]&&(o||l[c].data)||r!==n||"string"!=typeof t)return c||(c=u?e[a]=nt.pop()||pt.guid++:a),l[c]||(l[c]=u?{}:{toJSON:pt.noop}),("object"==typeof t||"function"==typeof t)&&(o?l[c]=pt.extend(l[c],t):l[c].data=pt.extend(l[c].data,t)),s=l[c],o||(s.data||(s.data={}),s=s.data),r!==n&&(s[pt.camelCase(t)]=r),"string"==typeof t?(i=s[t],null==i&&(i=s[pt.camelCase(t)])):i=s,i}}function s(e,t,n){if(pt.acceptData(e)){var r,o,i=e.nodeType,s=i?pt.cache:e,a=i?e[pt.expando]:pt.expando;if(s[a]){if(t&&(r=n?s[a]:s[a].data)){pt.isArray(t)?t=t.concat(pt.map(t,pt.camelCase)):t in r?t=[t]:(t=pt.camelCase(t),t=t in r?[t]:t.split(" ")),o=t.length;for(;o--;)delete r[t[o]];if(n?!u(r):!pt.isEmptyObject(r))return}(n||(delete s[a].data,u(s[a])))&&(i?pt.cleanData([e],!0):pt.support.deleteExpando||s!=s.window?delete s[a]:s[a]=null)}}}function a(e,t,r){if(r===n&&1===e.nodeType){var o="data-"+t.replace(jt,"-$1").toLowerCase();if(r=e.getAttribute(o),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:Nt.test(r)?pt.parseJSON(r):r}catch(i){}pt.data(e,t,r)}else r=n}return r}function u(e){var t;for(t in e)if(("data"!==t||!pt.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function l(){return!0}function c(){return!1}function p(){try{return Q.activeElement}catch(e){}}function f(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function d(e,t,n){if(pt.isFunction(t))return pt.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return pt.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(Wt.test(t))return pt.filter(t,e,n);t=pt.filter(t,e)}return pt.grep(e,function(e){return pt.inArray(e,t)>=0!==n})}function h(e){var t=Kt.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function y(e,t){return pt.nodeName(e,"table")&&pt.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function g(e){return e.type=(null!==pt.find.attr(e,"type"))+"/"+e.type,e}function m(e){var t=sn.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function v(e,t){for(var n,r=0;null!=(n=e[r]);r++)pt._data(n,"globalEval",!t||pt._data(t[r],"globalEval"))}function b(e,t){if(1===t.nodeType&&pt.hasData(e)){var n,r,o,i=pt._data(e),s=pt._data(t,i),a=i.events;if(a){delete s.handle,s.events={};for(n in a)for(r=0,o=a[n].length;o>r;r++)pt.event.add(t,n,a[n][r])}s.data&&(s.data=pt.extend({},s.data))}}function x(e,t){var n,r,o;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!pt.support.noCloneEvent&&t[pt.expando]){o=pt._data(t);for(r in o.events)pt.removeEvent(t,r,o.handle);t.removeAttribute(pt.expando)}"script"===n&&t.text!==e.text?(g(t).text=e.text,m(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),pt.support.html5Clone&&e.innerHTML&&!pt.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&nn.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 w(e,t){var r,o,i=0,s=typeof e.getElementsByTagName!==V?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==V?e.querySelectorAll(t||"*"):n;if(!s)for(s=[],r=e.childNodes||e;null!=(o=r[i]);i++)!t||pt.nodeName(o,t)?s.push(o):pt.merge(s,w(o,t));return t===n||t&&pt.nodeName(e,t)?pt.merge([e],s):s}function T(e){nn.test(e.type)&&(e.defaultChecked=e.checked)}function C(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,o=En.length;o--;)if(t=En[o]+n,t in e)return t;return r}function k(e,t){return e=t||e,"none"===pt.css(e,"display")||!pt.contains(e.ownerDocument,e)}function S(e,t){for(var n,r,o,i=[],s=0,a=e.length;a>s;s++)r=e[s],r.style&&(i[s]=pt._data(r,"olddisplay"),n=r.style.display,t?(i[s]||"none"!==n||(r.style.display=""),""===r.style.display&&k(r)&&(i[s]=pt._data(r,"olddisplay",_(r.nodeName)))):i[s]||(o=k(r),(n&&"none"!==n||!o)&&pt._data(r,"olddisplay",o?n:pt.css(r,"display"))));for(s=0;a>s;s++)r=e[s],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?i[s]||"":"none"));return e}function E(e,t,n){var r=bn.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function N(e,t,n,r,o){for(var i=n===(r?"border":"content")?4:"width"===t?1:0,s=0;4>i;i+=2)"margin"===n&&(s+=pt.css(e,n+Sn[i],!0,o)),r?("content"===n&&(s-=pt.css(e,"padding"+Sn[i],!0,o)),"margin"!==n&&(s-=pt.css(e,"border"+Sn[i]+"Width",!0,o))):(s+=pt.css(e,"padding"+Sn[i],!0,o),"padding"!==n&&(s+=pt.css(e,"border"+Sn[i]+"Width",!0,o)));return s}function j(e,t,n){var r=!0,o="width"===t?e.offsetWidth:e.offsetHeight,i=fn(e),s=pt.support.boxSizing&&"border-box"===pt.css(e,"boxSizing",!1,i);if(0>=o||null==o){if(o=dn(e,t,i),(0>o||null==o)&&(o=e.style[t]),xn.test(o))return o;r=s&&(pt.support.boxSizingReliable||o===e.style[t]),o=parseFloat(o)||0}return o+N(e,t,n||(s?"border":"content"),r,i)+"px"}function _(e){var t=Q,n=Tn[e];return n||(n=D(e,t),"none"!==n&&n||(pn=(pn||pt("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(pn[0].contentWindow||pn[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=D(e,t),pn.detach()),Tn[e]=n),n}function D(e,t){var n=pt(t.createElement(e)).appendTo(t.body),r=pt.css(n[0],"display");return n.remove(),r}function q(e,t,n,r){var o;if(pt.isArray(t))pt.each(t,function(t,o){n||jn.test(e)?r(e,o):q(e+"["+("object"==typeof o?t:"")+"]",o,n,r)});else if(n||"object"!==pt.type(t))r(e,t);else for(o in t)q(e+"["+o+"]",t[o],n,r)}function A(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(dt)||[];if(pt.isFunction(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function P(e,t,n,r){function o(a){var u;return i[a]=!0,pt.each(e[a]||[],function(e,a){var l=a(t,n,r);return"string"!=typeof l||s||i[l]?s?!(u=l):void 0:(t.dataTypes.unshift(l),o(l),!1)}),u}var i={},s=e===$n;return o(t.dataTypes[0])||!i["*"]&&o("*")}function L(e,t){var r,o,i=pt.ajaxSettings.flatOptions||{};for(o in t)t[o]!==n&&((i[o]?e:r||(r={}))[o]=t[o]);return r&&pt.extend(!0,e,r),e}function H(e,t,r){for(var o,i,s,a,u=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),i===n&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in u)if(u[a]&&u[a].test(i)){l.unshift(a);break}if(l[0]in r)s=l[0];else{for(a in r){if(!l[0]||e.converters[a+" "+l[0]]){s=a;break}o||(o=a)}s=s||o}return s?(s!==l[0]&&l.unshift(s),r[s]):void 0}function M(e,t,n,r){var o,i,s,a,u,l={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)l[s.toLowerCase()]=e.converters[s];for(i=c.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=i,i=c.shift())if("*"===i)i=u;else if("*"!==u&&u!==i){if(s=l[u+" "+i]||l["* "+i],!s)for(o in l)if(a=o.split(" "),a[1]===i&&(s=l[u+" "+a[0]]||l["* "+a[0]])){s===!0?s=l[o]:l[o]!==!0&&(i=a[0],c.unshift(a[1]));break}if(s!==!0)if(s&&e["throws"])t=s(t);else try{t=s(t)}catch(p){return{state:"parsererror",error:s?p:"No conversion from "+u+" to "+i}}}return{state:"success",data:t}}function O(){try{return new e.XMLHttpRequest}catch(t){}}function B(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function F(){return setTimeout(function(){er=n}),er=pt.now()}function R(e,t,n){for(var r,o=(sr[t]||[]).concat(sr["*"]),i=0,s=o.length;s>i;i++)if(r=o[i].call(n,t,e))return r}function I(e,t,n){var r,o,i=0,s=ir.length,a=pt.Deferred().always(function(){delete u.elem}),u=function(){if(o)return!1;for(var t=er||F(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,i=1-r,s=0,u=l.tweens.length;u>s;s++)l.tweens[s].run(i);return a.notifyWith(e,[l,i,n]),1>i&&u?n:(a.resolveWith(e,[l]),!1)},l=a.promise({elem:e,props:pt.extend({},t),opts:pt.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:er||F(),duration:n.duration,tweens:[],createTween:function(t,n){var r=pt.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(o)return this;for(o=!0;r>n;n++)l.tweens[n].run(1);return t?a.resolveWith(e,[l,t]):a.rejectWith(e,[l,t]),this}}),c=l.props;for(U(c,l.opts.specialEasing);s>i;i++)if(r=ir[i].call(l,e,c,l.opts))return r;return pt.map(c,R,l),pt.isFunction(l.opts.start)&&l.opts.start.call(e,l),pt.fx.timer(pt.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function U(e,t){var n,r,o,i,s;for(n in e)if(r=pt.camelCase(n),o=t[r],i=e[n],pt.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),s=pt.cssHooks[r],s&&"expand"in s){i=s.expand(i),delete e[r];for(n in i)n in e||(e[n]=i[n],t[n]=o)}else t[r]=o}function W(e,t,n){var r,o,i,s,a,u,l=this,c={},p=e.style,f=e.nodeType&&k(e),d=pt._data(e,"fxshow");n.queue||(a=pt._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,u=a.empty.fire,a.empty.fire=function(){a.unqueued||u()}),a.unqueued++,l.always(function(){l.always(function(){a.unqueued--,pt.queue(e,"fx").length||a.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===pt.css(e,"display")&&"none"===pt.css(e,"float")&&(pt.support.inlineBlockNeedsLayout&&"inline"!==_(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",pt.support.shrinkWrapBlocks||l.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(o=t[r],nr.exec(o)){if(delete t[r],i=i||"toggle"===o,o===(f?"hide":"show"))continue;c[r]=d&&d[r]||pt.style(e,r)}if(!pt.isEmptyObject(c)){d?"hidden"in d&&(f=d.hidden):d=pt._data(e,"fxshow",{}),i&&(d.hidden=!f),f?pt(e).show():l.done(function(){pt(e).hide()}),l.done(function(){var t;pt._removeData(e,"fxshow");for(t in c)pt.style(e,t,c[t])});for(r in c)s=R(f?d[r]:0,r,l),r in d||(d[r]=s.start,f&&(s.end=s.start,s.start="width"===r||"height"===r?1:0))}}function z(e,t,n,r,o){return new z.prototype.init(e,t,n,r,o)}function $(e,t){var n,r={height:e},o=0;for(t=t?1:0;4>o;o+=2-t)n=Sn[o],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function X(e){return pt.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}var K,G,V=typeof n,J=e.location,Q=e.document,Y=Q.documentElement,Z=e.jQuery,et=e.$,tt={},nt=[],rt="1.10.2",ot=nt.concat,it=nt.push,st=nt.slice,at=nt.indexOf,ut=tt.toString,lt=tt.hasOwnProperty,ct=rt.trim,pt=function(e,t){return new pt.fn.init(e,t,G)},ft=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,dt=/\S+/g,ht=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,yt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,gt=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,mt=/^[\],:{}\s]*$/,vt=/(?:^|:|,)(?:\s*\[)+/g,bt=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,xt=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,wt=/^-ms-/,Tt=/-([\da-z])/gi,Ct=function(e,t){return t.toUpperCase()},kt=function(e){(Q.addEventListener||"load"===e.type||"complete"===Q.readyState)&&(St(),pt.ready())},St=function(){Q.addEventListener?(Q.removeEventListener("DOMContentLoaded",kt,!1),e.removeEventListener("load",kt,!1)):(Q.detachEvent("onreadystatechange",kt),e.detachEvent("onload",kt))};pt.fn=pt.prototype={jquery:rt,constructor:pt,init:function(e,t,r){var o,i;if(!e)return this;if("string"==typeof e){if(o="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:yt.exec(e),!o||!o[1]&&t)return!t||t.jquery?(t||r).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof pt?t[0]:t,pt.merge(this,pt.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:Q,!0)),gt.test(o[1])&&pt.isPlainObject(t))for(o in t)pt.isFunction(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}if(i=Q.getElementById(o[2]),i&&i.parentNode){if(i.id!==o[2])return r.find(e);this.length=1,this[0]=i}return this.context=Q,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):pt.isFunction(e)?r.ready(e):(e.selector!==n&&(this.selector=e.selector,this.context=e.context),pt.makeArray(e,this))},selector:"",length:0,toArray:function(){return st.call(this)
},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=pt.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return pt.each(this,e,t)},ready:function(e){return pt.ready.promise().done(e),this},slice:function(){return this.pushStack(st.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(pt.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:it,sort:[].sort,splice:[].splice},pt.fn.init.prototype=pt.fn,pt.extend=pt.fn.extend=function(){var e,t,r,o,i,s,a=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[1]||{},u=2),"object"==typeof a||pt.isFunction(a)||(a={}),l===u&&(a=this,--u);l>u;u++)if(null!=(i=arguments[u]))for(o in i)e=a[o],r=i[o],a!==r&&(c&&r&&(pt.isPlainObject(r)||(t=pt.isArray(r)))?(t?(t=!1,s=e&&pt.isArray(e)?e:[]):s=e&&pt.isPlainObject(e)?e:{},a[o]=pt.extend(c,s,r)):r!==n&&(a[o]=r));return a},pt.extend({expando:"jQuery"+(rt+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===pt&&(e.$=et),t&&e.jQuery===pt&&(e.jQuery=Z),pt},isReady:!1,readyWait:1,holdReady:function(e){e?pt.readyWait++:pt.ready(!0)},ready:function(e){if(e===!0?!--pt.readyWait:!pt.isReady){if(!Q.body)return setTimeout(pt.ready);pt.isReady=!0,e!==!0&&--pt.readyWait>0||(K.resolveWith(Q,[pt]),pt.fn.trigger&&pt(Q).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===pt.type(e)},isArray:Array.isArray||function(e){return"array"===pt.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?String(e):"object"==typeof e||"function"==typeof e?tt[ut.call(e)]||"object":typeof e},isPlainObject:function(e){var t;if(!e||"object"!==pt.type(e)||e.nodeType||pt.isWindow(e))return!1;try{if(e.constructor&&!lt.call(e,"constructor")&&!lt.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(pt.support.ownLast)for(t in e)return lt.call(e,t);for(t in e);return t===n||lt.call(e,t)},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){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||Q;var r=gt.exec(e),o=!n&&[];return r?[t.createElement(r[1])]:(r=pt.buildFragment([e],t,o),o&&pt(o).remove(),pt.merge([],r.childNodes))},parseJSON:function(t){return e.JSON&&e.JSON.parse?e.JSON.parse(t):null===t?t:"string"==typeof t&&(t=pt.trim(t),t&&mt.test(t.replace(bt,"@").replace(xt,"]").replace(vt,"")))?new Function("return "+t)():void pt.error("Invalid JSON: "+t)},parseXML:function(t){var r,o;if(!t||"string"!=typeof t)return null;try{e.DOMParser?(o=new DOMParser,r=o.parseFromString(t,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(t))}catch(i){r=n}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||pt.error("Invalid XML: "+t),r},noop:function(){},globalEval:function(t){t&&pt.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(wt,"ms-").replace(Tt,Ct)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var o,i=0,s=e.length,a=r(e);if(n){if(a)for(;s>i&&(o=t.apply(e[i],n),o!==!1);i++);else for(i in e)if(o=t.apply(e[i],n),o===!1)break}else if(a)for(;s>i&&(o=t.call(e[i],i,e[i]),o!==!1);i++);else for(i in e)if(o=t.call(e[i],i,e[i]),o===!1)break;return e},trim:ct&&!ct.call(" ")?function(e){return null==e?"":ct.call(e)}:function(e){return null==e?"":(e+"").replace(ht,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(r(Object(e))?pt.merge(n,"string"==typeof e?[e]:e):it.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(at)return at.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,t){var r=t.length,o=e.length,i=0;if("number"==typeof r)for(;r>i;i++)e[o++]=t[i];else for(;t[i]!==n;)e[o++]=t[i++];return e.length=o,e},grep:function(e,t,n){var r,o=[],i=0,s=e.length;for(n=!!n;s>i;i++)r=!!t(e[i],i),n!==r&&o.push(e[i]);return o},map:function(e,t,n){var o,i=0,s=e.length,a=r(e),u=[];if(a)for(;s>i;i++)o=t(e[i],i,n),null!=o&&(u[u.length]=o);else for(i in e)o=t(e[i],i,n),null!=o&&(u[u.length]=o);return ot.apply([],u)},guid:1,proxy:function(e,t){var r,o,i;return"string"==typeof t&&(i=e[t],t=e,e=i),pt.isFunction(e)?(r=st.call(arguments,2),o=function(){return e.apply(t||this,r.concat(st.call(arguments)))},o.guid=e.guid=e.guid||pt.guid++,o):n},access:function(e,t,r,o,i,s,a){var u=0,l=e.length,c=null==r;if("object"===pt.type(r)){i=!0;for(u in r)pt.access(e,t,u,r[u],!0,s,a)}else if(o!==n&&(i=!0,pt.isFunction(o)||(a=!0),c&&(a?(t.call(e,o),t=null):(c=t,t=function(e,t,n){return c.call(pt(e),n)})),t))for(;l>u;u++)t(e[u],r,a?o:o.call(e[u],u,t(e[u],r)));return i?e:c?t.call(e):l?t(e[0],r):s},now:function(){return(new Date).getTime()},swap:function(e,t,n,r){var o,i,s={};for(i in t)s[i]=e.style[i],e.style[i]=t[i];o=n.apply(e,r||[]);for(i in t)e.style[i]=s[i];return o}}),pt.ready.promise=function(t){if(!K)if(K=pt.Deferred(),"complete"===Q.readyState)setTimeout(pt.ready);else if(Q.addEventListener)Q.addEventListener("DOMContentLoaded",kt,!1),e.addEventListener("load",kt,!1);else{Q.attachEvent("onreadystatechange",kt),e.attachEvent("onload",kt);var n=!1;try{n=null==e.frameElement&&Q.documentElement}catch(r){}n&&n.doScroll&&!function o(){if(!pt.isReady){try{n.doScroll("left")}catch(e){return setTimeout(o,50)}St(),pt.ready()}}()}return K.promise(t)},pt.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){tt["[object "+t+"]"]=t.toLowerCase()}),G=pt(Q),function(e,t){function n(e,t,n,r){var o,i,s,a,u,l,c,p,h,y;if((t?t.ownerDocument||t:R)!==A&&q(t),t=t||A,n=n||[],!e||"string"!=typeof e)return n;if(1!==(a=t.nodeType)&&9!==a)return[];if(L&&!r){if(o=bt.exec(e))if(s=o[1]){if(9===a){if(i=t.getElementById(s),!i||!i.parentNode)return n;if(i.id===s)return n.push(i),n}else if(t.ownerDocument&&(i=t.ownerDocument.getElementById(s))&&B(t,i)&&i.id===s)return n.push(i),n}else{if(o[2])return et.apply(n,t.getElementsByTagName(e)),n;if((s=o[3])&&C.getElementsByClassName&&t.getElementsByClassName)return et.apply(n,t.getElementsByClassName(s)),n}if(C.qsa&&(!H||!H.test(e))){if(p=c=F,h=t,y=9===a&&e,1===a&&"object"!==t.nodeName.toLowerCase()){for(l=f(e),(c=t.getAttribute("id"))?p=c.replace(Tt,"\\$&"):t.setAttribute("id",p),p="[id='"+p+"'] ",u=l.length;u--;)l[u]=p+d(l[u]);h=dt.test(e)&&t.parentNode||t,y=l.join(",")}if(y)try{return et.apply(n,h.querySelectorAll(y)),n}catch(g){}finally{c||t.removeAttribute("id")}}}return w(e.replace(lt,"$1"),t,n,r)}function r(){function e(n,r){return t.push(n+=" ")>S.cacheLength&&delete e[t.shift()],e[n]=r}var t=[];return e}function o(e){return e[F]=!0,e}function i(e){var t=A.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function s(e,t){for(var n=e.split("|"),r=e.length;r--;)S.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||V)-(~e.sourceIndex||V);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function u(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 c(e){return o(function(t){return t=+t,o(function(n,r){for(var o,i=e([],n.length,t),s=i.length;s--;)n[o=i[s]]&&(n[o]=!(r[o]=n[o]))})})}function p(){}function f(e,t){var r,o,i,s,a,u,l,c=z[e+" "];if(c)return t?0:c.slice(0);for(a=e,u=[],l=S.preFilter;a;){(!r||(o=ct.exec(a)))&&(o&&(a=a.slice(o[0].length)||a),u.push(i=[])),r=!1,(o=ft.exec(a))&&(r=o.shift(),i.push({value:r,type:o[0].replace(lt," ")}),a=a.slice(r.length));for(s in S.filter)!(o=mt[s].exec(a))||l[s]&&!(o=l[s](o))||(r=o.shift(),i.push({value:r,type:s,matches:o}),a=a.slice(r.length));if(!r)break}return t?a.length:a?n.error(e):z(e,u).slice(0)}function d(e){for(var t=0,n=e.length,r="";n>t;t++)r+=e[t].value;return r}function h(e,t,n){var r=t.dir,o=n&&"parentNode"===r,i=U++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,s){var a,u,l,c=I+" "+i;if(s){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,s))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(l=t[F]||(t[F]={}),(u=l[r])&&u[0]===c){if((a=u[1])===!0||a===k)return a===!0}else if(u=l[r]=[c],u[1]=e(t,n,s)||k,u[1]===!0)return!0}}function y(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function g(e,t,n,r,o){for(var i,s=[],a=0,u=e.length,l=null!=t;u>a;a++)(i=e[a])&&(!n||n(i,r,o))&&(s.push(i),l&&t.push(a));return s}function m(e,t,n,r,i,s){return r&&!r[F]&&(r=m(r)),i&&!i[F]&&(i=m(i,s)),o(function(o,s,a,u){var l,c,p,f=[],d=[],h=s.length,y=o||x(t||"*",a.nodeType?[a]:a,[]),m=!e||!o&&t?y:g(y,f,e,a,u),v=n?i||(o?e:h||r)?[]:s:m;if(n&&n(m,v,a,u),r)for(l=g(v,d),r(l,[],a,u),c=l.length;c--;)(p=l[c])&&(v[d[c]]=!(m[d[c]]=p));if(o){if(i||e){if(i){for(l=[],c=v.length;c--;)(p=v[c])&&l.push(m[c]=p);i(null,v=[],l,u)}for(c=v.length;c--;)(p=v[c])&&(l=i?nt.call(o,p):f[c])>-1&&(o[l]=!(s[l]=p))}}else v=g(v===s?v.splice(h,v.length):v),i?i(null,s,v,u):et.apply(s,v)})}function v(e){for(var t,n,r,o=e.length,i=S.relative[e[0].type],s=i||S.relative[" "],a=i?1:0,u=h(function(e){return e===t},s,!0),l=h(function(e){return nt.call(t,e)>-1},s,!0),c=[function(e,n,r){return!i&&(r||n!==_)||((t=n).nodeType?u(e,n,r):l(e,n,r))}];o>a;a++)if(n=S.relative[e[a].type])c=[h(y(c),n)];else{if(n=S.filter[e[a].type].apply(null,e[a].matches),n[F]){for(r=++a;o>r&&!S.relative[e[r].type];r++);return m(a>1&&y(c),a>1&&d(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(lt,"$1"),n,r>a&&v(e.slice(a,r)),o>r&&v(e=e.slice(r)),o>r&&d(e))}c.push(n)}return y(c)}function b(e,t){var r=0,i=t.length>0,s=e.length>0,a=function(o,a,u,l,c){var p,f,d,h=[],y=0,m="0",v=o&&[],b=null!=c,x=_,w=o||s&&S.find.TAG("*",c&&a.parentNode||a),T=I+=null==x?1:Math.random()||.1;for(b&&(_=a!==A&&a,k=r);null!=(p=w[m]);m++){if(s&&p){for(f=0;d=e[f++];)if(d(p,a,u)){l.push(p);break}b&&(I=T,k=++r)}i&&((p=!d&&p)&&y--,o&&v.push(p))}if(y+=m,i&&m!==y){for(f=0;d=t[f++];)d(v,h,a,u);if(o){if(y>0)for(;m--;)v[m]||h[m]||(h[m]=Y.call(l));h=g(h)}et.apply(l,h),b&&!o&&h.length>0&&y+t.length>1&&n.uniqueSort(l)}return b&&(I=T,_=x),v};return i?o(a):a}function x(e,t,r){for(var o=0,i=t.length;i>o;o++)n(e,t[o],r);return r}function w(e,t,n,r){var o,i,s,a,u,l=f(e);if(!r&&1===l.length){if(i=l[0]=l[0].slice(0),i.length>2&&"ID"===(s=i[0]).type&&C.getById&&9===t.nodeType&&L&&S.relative[i[1].type]){if(t=(S.find.ID(s.matches[0].replace(Ct,kt),t)||[])[0],!t)return n;e=e.slice(i.shift().value.length)}for(o=mt.needsContext.test(e)?0:i.length;o--&&(s=i[o],!S.relative[a=s.type]);)if((u=S.find[a])&&(r=u(s.matches[0].replace(Ct,kt),dt.test(i[0].type)&&t.parentNode||t))){if(i.splice(o,1),e=r.length&&d(i),!e)return et.apply(n,r),n;break}}return j(e,l)(r,t,!L,n,dt.test(e)),n}var T,C,k,S,E,N,j,_,D,q,A,P,L,H,M,O,B,F="sizzle"+-new Date,R=e.document,I=0,U=0,W=r(),z=r(),$=r(),X=!1,K=function(e,t){return e===t?(X=!0,0):0},G=typeof t,V=1<<31,J={}.hasOwnProperty,Q=[],Y=Q.pop,Z=Q.push,et=Q.push,tt=Q.slice,nt=Q.indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(this[t]===e)return t;return-1},rt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ot="[\\x20\\t\\r\\n\\f]",it="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",st=it.replace("w","w#"),at="\\["+ot+"*("+it+")"+ot+"*(?:([*^$|!~]?=)"+ot+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+st+")|)|)"+ot+"*\\]",ut=":("+it+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+at.replace(3,8)+")*)|.*)\\)|)",lt=new RegExp("^"+ot+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ot+"+$","g"),ct=new RegExp("^"+ot+"*,"+ot+"*"),ft=new RegExp("^"+ot+"*([>+~]|"+ot+")"+ot+"*"),dt=new RegExp(ot+"*[+~]"),ht=new RegExp("="+ot+"*([^\\]'\"]*)"+ot+"*\\]","g"),yt=new RegExp(ut),gt=new RegExp("^"+st+"$"),mt={ID:new RegExp("^#("+it+")"),CLASS:new RegExp("^\\.("+it+")"),TAG:new RegExp("^("+it.replace("w","w*")+")"),ATTR:new RegExp("^"+at),PSEUDO:new RegExp("^"+ut),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ot+"*(even|odd|(([+-]|)(\\d*)n|)"+ot+"*(?:([+-]|)"+ot+"*(\\d+)|))"+ot+"*\\)|)","i"),bool:new RegExp("^(?:"+rt+")$","i"),needsContext:new RegExp("^"+ot+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ot+"*((?:-\\d)?\\d*)"+ot+"*\\)|)(?=[^-]|$)","i")},vt=/^[^{]+\{\s*\[native \w/,bt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,xt=/^(?:input|select|textarea|button)$/i,wt=/^h\d$/i,Tt=/'|\\/g,Ct=new RegExp("\\\\([\\da-f]{1,6}"+ot+"?|("+ot+")|.)","ig"),kt=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{et.apply(Q=tt.call(R.childNodes),R.childNodes),Q[R.childNodes.length].nodeType}catch(St){et={apply:Q.length?function(e,t){Z.apply(e,tt.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}N=n.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},C=n.support={},q=n.setDocument=function(e){var t=e?e.ownerDocument||e:R,n=t.defaultView;return t!==A&&9===t.nodeType&&t.documentElement?(A=t,P=t.documentElement,L=!N(t),n&&n.attachEvent&&n!==n.top&&n.attachEvent("onbeforeunload",function(){q()}),C.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),C.getElementsByTagName=i(function(e){return e.appendChild(t.createComment("")),!e.getElementsByTagName("*").length}),C.getElementsByClassName=i(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),C.getById=i(function(e){return P.appendChild(e).id=F,!t.getElementsByName||!t.getElementsByName(F).length}),C.getById?(S.find.ID=function(e,t){if(typeof t.getElementById!==G&&L){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},S.filter.ID=function(e){var t=e.replace(Ct,kt);return function(e){return e.getAttribute("id")===t}}):(delete S.find.ID,S.filter.ID=function(e){var t=e.replace(Ct,kt);return function(e){var n=typeof e.getAttributeNode!==G&&e.getAttributeNode("id");return n&&n.value===t}}),S.find.TAG=C.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==G?t.getElementsByTagName(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},S.find.CLASS=C.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==G&&L?t.getElementsByClassName(e):void 0},M=[],H=[],(C.qsa=vt.test(t.querySelectorAll))&&(i(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||H.push("\\["+ot+"*(?:value|"+rt+")"),e.querySelectorAll(":checked").length||H.push(":checked")}),i(function(e){var n=t.createElement("input");n.setAttribute("type","hidden"),e.appendChild(n).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&H.push("[*^$]="+ot+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||H.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),H.push(",.*:")})),(C.matchesSelector=vt.test(O=P.webkitMatchesSelector||P.mozMatchesSelector||P.oMatchesSelector||P.msMatchesSelector))&&i(function(e){C.disconnectedMatch=O.call(e,"div"),O.call(e,"[s!='']:x"),M.push("!=",ut)}),H=H.length&&new RegExp(H.join("|")),M=M.length&&new RegExp(M.join("|")),B=vt.test(P.contains)||P.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)for(;t=t.parentNode;)if(t===e)return!0;return!1},K=P.compareDocumentPosition?function(e,n){if(e===n)return X=!0,0;var r=n.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(n);return r?1&r||!C.sortDetached&&n.compareDocumentPosition(e)===r?e===t||B(R,e)?-1:n===t||B(R,n)?1:D?nt.call(D,e)-nt.call(D,n):0:4&r?-1:1:e.compareDocumentPosition?-1:1}:function(e,n){var r,o=0,i=e.parentNode,s=n.parentNode,u=[e],l=[n];if(e===n)return X=!0,0;if(!i||!s)return e===t?-1:n===t?1:i?-1:s?1:D?nt.call(D,e)-nt.call(D,n):0;if(i===s)return a(e,n);for(r=e;r=r.parentNode;)u.unshift(r);for(r=n;r=r.parentNode;)l.unshift(r);for(;u[o]===l[o];)o++;return o?a(u[o],l[o]):u[o]===R?-1:l[o]===R?1:0},t):A},n.matches=function(e,t){return n(e,null,null,t)},n.matchesSelector=function(e,t){if((e.ownerDocument||e)!==A&&q(e),t=t.replace(ht,"='$1']"),!(!C.matchesSelector||!L||M&&M.test(t)||H&&H.test(t)))try{var r=O.call(e,t);if(r||C.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(o){}return n(t,A,null,[e]).length>0},n.contains=function(e,t){return(e.ownerDocument||e)!==A&&q(e),B(e,t)},n.attr=function(e,n){(e.ownerDocument||e)!==A&&q(e);var r=S.attrHandle[n.toLowerCase()],o=r&&J.call(S.attrHandle,n.toLowerCase())?r(e,n,!L):t;return o===t?C.attributes||!L?e.getAttribute(n):(o=e.getAttributeNode(n))&&o.specified?o.value:null:o},n.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},n.uniqueSort=function(e){var t,n=[],r=0,o=0;if(X=!C.detectDuplicates,D=!C.sortStable&&e.slice(0),e.sort(K),X){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)e.splice(n[r],1)}return e},E=n.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=E(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r];r++)n+=E(t);return n},S=n.selectors={cacheLength:50,createPseudo:o,match:mt,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(Ct,kt),e[3]=(e[4]||e[5]||"").replace(Ct,kt),"~="===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]||n.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]&&n.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return mt.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&yt.test(r)&&(n=f(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(Ct,kt).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+ot+")"+e+"("+ot+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==G&&e.getAttribute("class")||"")})},ATTR:function(e,t,r){return function(o){var i=n.attr(o,e);return null==i?"!="===t:t?(i+="","="===t?i===r:"!="===t?i!==r:"^="===t?r&&0===i.indexOf(r):"*="===t?r&&i.indexOf(r)>-1:"$="===t?r&&i.slice(-r.length)===r:"~="===t?(" "+i+" ").indexOf(r)>-1:"|="===t?i===r||i.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,u){var l,c,p,f,d,h,y=i!==s?"nextSibling":"previousSibling",g=t.parentNode,m=a&&t.nodeName.toLowerCase(),v=!u&&!a;if(g){if(i){for(;y;){for(p=t;p=p[y];)if(a?p.nodeName.toLowerCase()===m:1===p.nodeType)return!1;h=y="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?g.firstChild:g.lastChild],s&&v){for(c=g[F]||(g[F]={}),l=c[e]||[],d=l[0]===I&&l[1],f=l[0]===I&&l[2],p=d&&g.childNodes[d];p=++d&&p&&p[y]||(f=d=0)||h.pop();)if(1===p.nodeType&&++f&&p===t){c[e]=[I,d,f];break}}else if(v&&(l=(t[F]||(t[F]={}))[e])&&l[0]===I)f=l[1];else for(;(p=++d&&p&&p[y]||(f=d=0)||h.pop())&&((a?p.nodeName.toLowerCase()!==m:1!==p.nodeType)||!++f||(v&&((p[F]||(p[F]={}))[e]=[I,f]),p!==t)););return f-=o,f===r||f%r===0&&f/r>=0}}},PSEUDO:function(e,t){var r,i=S.pseudos[e]||S.setFilters[e.toLowerCase()]||n.error("unsupported pseudo: "+e);return i[F]?i(t):i.length>1?(r=[e,e,"",t],S.setFilters.hasOwnProperty(e.toLowerCase())?o(function(e,n){for(var r,o=i(e,t),s=o.length;s--;)r=nt.call(e,o[s]),e[r]=!(n[r]=o[s])}):function(e){return i(e,0,r)}):i}},pseudos:{not:o(function(e){var t=[],n=[],r=j(e.replace(lt,"$1"));return r[F]?o(function(e,t,n,o){for(var i,s=r(e,null,o,[]),a=e.length;a--;)(i=s[a])&&(e[a]=!(t[a]=i))}):function(e,o,i){return t[0]=e,r(t,null,i,n),!n.pop()}}),has:o(function(e){return function(t){return n(e,t).length>0}}),contains:o(function(e){return function(t){return(t.textContent||t.innerText||E(t)).indexOf(e)>-1}}),lang:o(function(e){return gt.test(e||"")||n.error("unsupported lang: "+e),e=e.replace(Ct,kt).toLowerCase(),function(t){var n;do if(n=L?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===P},focus:function(e){return e===A.activeElement&&(!A.hasFocus||A.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!S.pseudos.empty(e)},header:function(e){return wt.test(e.nodeName)},input:function(e){return xt.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:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[0>n?n+t:n]}),even:c(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:c(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:c(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:c(function(e,t,n){for(var r=0>n?n+t:n;++r<t;)e.push(r);return e})}},S.pseudos.nth=S.pseudos.eq;for(T in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})S.pseudos[T]=u(T);for(T in{submit:!0,reset:!0})S.pseudos[T]=l(T);p.prototype=S.filters=S.pseudos,S.setFilters=new p,j=n.compile=function(e,t){var n,r=[],o=[],i=$[e+" "];if(!i){for(t||(t=f(e)),n=t.length;n--;)i=v(t[n]),i[F]?r.push(i):o.push(i);i=$(e,b(o,r))}return i},C.sortStable=F.split("").sort(K).join("")===F,C.detectDuplicates=X,q(),C.sortDetached=i(function(e){return 1&e.compareDocumentPosition(A.createElement("div"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||s("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),C.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||s("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||s(rt,function(e,t,n){var r;return n?void 0:(r=e.getAttributeNode(t))&&r.specified?r.value:e[t]===!0?t.toLowerCase():null}),pt.find=n,pt.expr=n.selectors,pt.expr[":"]=pt.expr.pseudos,pt.unique=n.uniqueSort,pt.text=n.getText,pt.isXMLDoc=n.isXML,pt.contains=n.contains}(e);var Et={};pt.Callbacks=function(e){e="string"==typeof e?Et[e]||o(e):pt.extend({},e);var t,r,i,s,a,u,l=[],c=!e.once&&[],p=function(n){for(r=e.memory&&n,i=!0,a=u||0,u=0,s=l.length,t=!0;l&&s>a;a++)if(l[a].apply(n[0],n[1])===!1&&e.stopOnFalse){r=!1;break}t=!1,l&&(c?c.length&&p(c.shift()):r?l=[]:f.disable())},f={add:function(){if(l){var n=l.length;!function o(t){pt.each(t,function(t,n){var r=pt.type(n);"function"===r?e.unique&&f.has(n)||l.push(n):n&&n.length&&"string"!==r&&o(n)})}(arguments),t?s=l.length:r&&(u=n,p(r))}return this},remove:function(){return l&&pt.each(arguments,function(e,n){for(var r;(r=pt.inArray(n,l,r))>-1;)l.splice(r,1),t&&(s>=r&&s--,a>=r&&a--)}),this},has:function(e){return e?pt.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],s=0,this},disable:function(){return l=c=r=n,this},disabled:function(){return!l},lock:function(){return c=n,r||f.disable(),this},locked:function(){return!c},fireWith:function(e,n){return!l||i&&!c||(n=n||[],n=[e,n.slice?n.slice():n],t?c.push(n):p(n)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!i}};return f},pt.extend({Deferred:function(e){var t=[["resolve","done",pt.Callbacks("once memory"),"resolved"],["reject","fail",pt.Callbacks("once memory"),"rejected"],["notify","progress",pt.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return pt.Deferred(function(n){pt.each(t,function(t,i){var s=i[0],a=pt.isFunction(e[t])&&e[t];o[i[1]](function(){var e=a&&a.apply(this,arguments);e&&pt.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?pt.extend(e,r):r}},o={};return r.pipe=r.then,pt.each(t,function(e,i){var s=i[2],a=i[3];r[i[1]]=s.add,a&&s.add(function(){n=a},t[1^e][2].disable,t[2][2].lock),o[i[0]]=function(){return o[i[0]+"With"](this===o?r:this,arguments),this},o[i[0]+"With"]=s.fireWith}),r.promise(o),e&&e.call(o,o),o},when:function(e){var t,n,r,o=0,i=st.call(arguments),s=i.length,a=1!==s||e&&pt.isFunction(e.promise)?s:0,u=1===a?e:pt.Deferred(),l=function(e,n,r){return function(o){n[e]=this,r[e]=arguments.length>1?st.call(arguments):o,r===t?u.notifyWith(n,r):--a||u.resolveWith(n,r)}};if(s>1)for(t=new Array(s),n=new Array(s),r=new Array(s);s>o;o++)i[o]&&pt.isFunction(i[o].promise)?i[o].promise().done(l(o,r,i)).fail(u.reject).progress(l(o,n,t)):--a;return a||u.resolveWith(r,i),u.promise()}}),pt.support=function(t){var n,r,o,i,s,a,u,l,c,p=Q.createElement("div");if(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],!r||!r.style||!n.length)return t;i=Q.createElement("select"),a=i.appendChild(Q.createElement("option")),o=p.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute="t"!==p.className,t.leadingWhitespace=3===p.firstChild.nodeType,t.tbody=!p.getElementsByTagName("tbody").length,t.htmlSerialize=!!p.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=a.selected,t.enctype=!!Q.createElement("form").enctype,t.html5Clone="<:nav></:nav>"!==Q.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,i.disabled=!0,t.optDisabled=!a.disabled;try{delete p.test}catch(f){t.deleteExpando=!1}o=Q.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"),s=Q.createDocumentFragment(),s.appendChild(o),t.appendChecked=o.checked,t.checkClone=s.cloneNode(!0).cloneNode(!0).lastChild.checked,p.attachEvent&&(p.attachEvent("onclick",function(){t.noCloneEvent=!1}),p.cloneNode(!0).click());for(c in{submit:!0,change:!0,focusin:!0})p.setAttribute(u="on"+c,"t"),t[c+"Bubbles"]=u in e||p.attributes[u].expando===!1;p.style.backgroundClip="content-box",p.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===p.style.backgroundClip;for(c in pt(t))break;return t.ownLast="0"!==c,pt(function(){var n,r,o,i="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",s=Q.getElementsByTagName("body")[0];s&&(n=Q.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",s.appendChild(n).appendChild(p),p.innerHTML="<table><tr><td></td><td>t</td></tr></table>",o=p.getElementsByTagName("td"),o[0].style.cssText="padding:0;margin:0;border:0;display:none",l=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",t.reliableHiddenOffsets=l&&0===o[0].offsetHeight,p.innerHTML="",p.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%;",pt.swap(s,null!=s.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===p.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(p,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(p,null)||{width:"4px"}).width,r=p.appendChild(Q.createElement("div")),r.style.cssText=p.style.cssText=i,r.style.marginRight=r.style.width="0",p.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof p.style.zoom!==V&&(p.innerHTML="",p.style.cssText=i+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===p.offsetWidth,p.style.display="block",p.innerHTML="<div></div>",p.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==p.offsetWidth,t.inlineBlockNeedsLayout&&(s.style.zoom=1)),s.removeChild(n),n=p=o=r=null)}),n=i=s=a=r=o=null,t}({});var Nt=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,jt=/([A-Z])/g;pt.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?pt.cache[e[pt.expando]]:e[pt.expando],!!e&&!u(e)},data:function(e,t,n){return i(e,t,n)},removeData:function(e,t){return s(e,t)},_data:function(e,t,n){return i(e,t,n,!0)},_removeData:function(e,t){return s(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&pt.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),pt.fn.extend({data:function(e,t){var r,o,i=null,s=0,u=this[0];if(e===n){if(this.length&&(i=pt.data(u),1===u.nodeType&&!pt._data(u,"parsedAttrs"))){for(r=u.attributes;s<r.length;s++)o=r[s].name,0===o.indexOf("data-")&&(o=pt.camelCase(o.slice(5)),a(u,o,i[o]));pt._data(u,"parsedAttrs",!0)}return i}return"object"==typeof e?this.each(function(){pt.data(this,e)}):arguments.length>1?this.each(function(){pt.data(this,e,t)}):u?a(u,e,pt.data(u,e)):null},removeData:function(e){return this.each(function(){pt.removeData(this,e)})}}),pt.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=pt._data(e,t),n&&(!r||pt.isArray(n)?r=pt._data(e,t,pt.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=pt.queue(e,t),r=n.length,o=n.shift(),i=pt._queueHooks(e,t),s=function(){pt.dequeue(e,t)};"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,s,i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return pt._data(e,n)||pt._data(e,n,{empty:pt.Callbacks("once memory").add(function(){pt._removeData(e,t+"queue"),pt._removeData(e,n)})})}}),pt.fn.extend({queue:function(e,t){var r=2;return"string"!=typeof e&&(t=e,e="fx",r--),arguments.length<r?pt.queue(this[0],e):t===n?this:this.each(function(){var n=pt.queue(this,e,t);
pt._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&pt.dequeue(this,e)})},dequeue:function(e){return this.each(function(){pt.dequeue(this,e)})},delay:function(e,t){return e=pt.fx?pt.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,t){var r,o=1,i=pt.Deferred(),s=this,a=this.length,u=function(){--o||i.resolveWith(s,[s])};for("string"!=typeof e&&(t=e,e=n),e=e||"fx";a--;)r=pt._data(s[a],e+"queueHooks"),r&&r.empty&&(o++,r.empty.add(u));return u(),i.promise(t)}});var _t,Dt,qt=/[\t\r\n\f]/g,At=/\r/g,Pt=/^(?:input|select|textarea|button|object)$/i,Lt=/^(?:a|area)$/i,Ht=/^(?:checked|selected)$/i,Mt=pt.support.getSetAttribute,Ot=pt.support.input;pt.fn.extend({attr:function(e,t){return pt.access(this,pt.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){pt.removeAttr(this,e)})},prop:function(e,t){return pt.access(this,pt.prop,e,t,arguments.length>1)},removeProp:function(e){return e=pt.propFix[e]||e,this.each(function(){try{this[e]=n,delete this[e]}catch(t){}})},addClass:function(e){var t,n,r,o,i,s=0,a=this.length,u="string"==typeof e&&e;if(pt.isFunction(e))return this.each(function(t){pt(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(dt)||[];a>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(qt," "):" ")){for(i=0;o=t[i++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");n.className=pt.trim(r)}return this},removeClass:function(e){var t,n,r,o,i,s=0,a=this.length,u=0===arguments.length||"string"==typeof e&&e;if(pt.isFunction(e))return this.each(function(t){pt(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(dt)||[];a>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(qt," "):"")){for(i=0;o=t[i++];)for(;r.indexOf(" "+o+" ")>=0;)r=r.replace(" "+o+" "," ");n.className=e?pt.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):this.each(pt.isFunction(e)?function(n){pt(this).toggleClass(e.call(this,n,this.className,t),t)}:function(){if("string"===n)for(var t,r=0,o=pt(this),i=e.match(dt)||[];t=i[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else(n===V||"boolean"===n)&&(this.className&&pt._data(this,"__className__",this.className),this.className=this.className||e===!1?"":pt._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(qt," ").indexOf(t)>=0)return!0;return!1},val:function(e){var t,r,o,i=this[0];{if(arguments.length)return o=pt.isFunction(e),this.each(function(t){var i;1===this.nodeType&&(i=o?e.call(this,t,pt(this).val()):e,null==i?i="":"number"==typeof i?i+="":pt.isArray(i)&&(i=pt.map(i,function(e){return null==e?"":e+""})),r=pt.valHooks[this.type]||pt.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,i,"value")!==n||(this.value=i))});if(i)return r=pt.valHooks[i.type]||pt.valHooks[i.nodeName.toLowerCase()],r&&"get"in r&&(t=r.get(i,"value"))!==n?t:(t=i.value,"string"==typeof t?t.replace(At,""):null==t?"":t)}}}),pt.extend({valHooks:{option:{get:function(e){var t=pt.find.attr(e,"value");return null!=t?t:e.text}},select:{get:function(e){for(var t,n,r=e.options,o=e.selectedIndex,i="select-one"===e.type||0>o,s=i?null:[],a=i?o+1:r.length,u=0>o?a:i?o:0;a>u;u++)if(n=r[u],!(!n.selected&&u!==o||(pt.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&pt.nodeName(n.parentNode,"optgroup"))){if(t=pt(n).val(),i)return t;s.push(t)}return s},set:function(e,t){for(var n,r,o=e.options,i=pt.makeArray(t),s=o.length;s--;)r=o[s],(r.selected=pt.inArray(pt(r).val(),i)>=0)&&(n=!0);return n||(e.selectedIndex=-1),i}}},attr:function(e,t,r){var o,i,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===V?pt.prop(e,t,r):(1===s&&pt.isXMLDoc(e)||(t=t.toLowerCase(),o=pt.attrHooks[t]||(pt.expr.match.bool.test(t)?Dt:_t)),r===n?o&&"get"in o&&null!==(i=o.get(e,t))?i:(i=pt.find.attr(e,t),null==i?n:i):null!==r?o&&"set"in o&&(i=o.set(e,r,t))!==n?i:(e.setAttribute(t,r+""),r):void pt.removeAttr(e,t))},removeAttr:function(e,t){var n,r,o=0,i=t&&t.match(dt);if(i&&1===e.nodeType)for(;n=i[o++];)r=pt.propFix[n]||n,pt.expr.match.bool.test(n)?Ot&&Mt||!Ht.test(n)?e[r]=!1:e[pt.camelCase("default-"+n)]=e[r]=!1:pt.attr(e,n,""),e.removeAttribute(Mt?n:r)},attrHooks:{type:{set:function(e,t){if(!pt.support.radioValue&&"radio"===t&&pt.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,t,r){var o,i,s,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return s=1!==a||!pt.isXMLDoc(e),s&&(t=pt.propFix[t]||t,i=pt.propHooks[t]),r!==n?i&&"set"in i&&(o=i.set(e,r,t))!==n?o:e[t]=r:i&&"get"in i&&null!==(o=i.get(e,t))?o:e[t]},propHooks:{tabIndex:{get:function(e){var t=pt.find.attr(e,"tabindex");return t?parseInt(t,10):Pt.test(e.nodeName)||Lt.test(e.nodeName)&&e.href?0:-1}}}}),Dt={set:function(e,t,n){return t===!1?pt.removeAttr(e,n):Ot&&Mt||!Ht.test(n)?e.setAttribute(!Mt&&pt.propFix[n]||n,n):e[pt.camelCase("default-"+n)]=e[n]=!0,n}},pt.each(pt.expr.match.bool.source.match(/\w+/g),function(e,t){var r=pt.expr.attrHandle[t]||pt.find.attr;pt.expr.attrHandle[t]=Ot&&Mt||!Ht.test(t)?function(e,t,o){var i=pt.expr.attrHandle[t],s=o?n:(pt.expr.attrHandle[t]=n)!=r(e,t,o)?t.toLowerCase():null;return pt.expr.attrHandle[t]=i,s}:function(e,t,r){return r?n:e[pt.camelCase("default-"+t)]?t.toLowerCase():null}}),Ot&&Mt||(pt.attrHooks.value={set:function(e,t,n){return pt.nodeName(e,"input")?void(e.defaultValue=t):_t&&_t.set(e,t,n)}}),Mt||(_t={set:function(e,t,r){var o=e.getAttributeNode(r);return o||e.setAttributeNode(o=e.ownerDocument.createAttribute(r)),o.value=t+="","value"===r||t===e.getAttribute(r)?t:n}},pt.expr.attrHandle.id=pt.expr.attrHandle.name=pt.expr.attrHandle.coords=function(e,t,r){var o;return r?n:(o=e.getAttributeNode(t))&&""!==o.value?o.value:null},pt.valHooks.button={get:function(e,t){var r=e.getAttributeNode(t);return r&&r.specified?r.value:n},set:_t.set},pt.attrHooks.contenteditable={set:function(e,t,n){_t.set(e,""===t?!1:t,n)}},pt.each(["width","height"],function(e,t){pt.attrHooks[t]={set:function(e,n){return""===n?(e.setAttribute(t,"auto"),n):void 0}}})),pt.support.hrefNormalized||pt.each(["href","src"],function(e,t){pt.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),pt.support.style||(pt.attrHooks.style={get:function(e){return e.style.cssText||n},set:function(e,t){return e.style.cssText=t+""}}),pt.support.optSelected||(pt.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),pt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){pt.propFix[this.toLowerCase()]=this}),pt.support.enctype||(pt.propFix.enctype="encoding"),pt.each(["radio","checkbox"],function(){pt.valHooks[this]={set:function(e,t){return pt.isArray(t)?e.checked=pt.inArray(pt(e).val(),t)>=0:void 0}},pt.support.checkOn||(pt.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Bt=/^(?:input|select|textarea)$/i,Ft=/^key/,Rt=/^(?:mouse|contextmenu)|click/,It=/^(?:focusinfocus|focusoutblur)$/,Ut=/^([^.]*)(?:\.(.+)|)$/;pt.event={global:{},add:function(e,t,r,o,i){var s,a,u,l,c,p,f,d,h,y,g,m=pt._data(e);if(m){for(r.handler&&(l=r,r=l.handler,i=l.selector),r.guid||(r.guid=pt.guid++),(a=m.events)||(a=m.events={}),(p=m.handle)||(p=m.handle=function(e){return typeof pt===V||e&&pt.event.triggered===e.type?n:pt.event.dispatch.apply(p.elem,arguments)},p.elem=e),t=(t||"").match(dt)||[""],u=t.length;u--;)s=Ut.exec(t[u])||[],h=g=s[1],y=(s[2]||"").split(".").sort(),h&&(c=pt.event.special[h]||{},h=(i?c.delegateType:c.bindType)||h,c=pt.event.special[h]||{},f=pt.extend({type:h,origType:g,data:o,handler:r,guid:r.guid,selector:i,needsContext:i&&pt.expr.match.needsContext.test(i),namespace:y.join(".")},l),(d=a[h])||(d=a[h]=[],d.delegateCount=0,c.setup&&c.setup.call(e,o,y,p)!==!1||(e.addEventListener?e.addEventListener(h,p,!1):e.attachEvent&&e.attachEvent("on"+h,p))),c.add&&(c.add.call(e,f),f.handler.guid||(f.handler.guid=r.guid)),i?d.splice(d.delegateCount++,0,f):d.push(f),pt.event.global[h]=!0);e=null}},remove:function(e,t,n,r,o){var i,s,a,u,l,c,p,f,d,h,y,g=pt.hasData(e)&&pt._data(e);if(g&&(c=g.events)){for(t=(t||"").match(dt)||[""],l=t.length;l--;)if(a=Ut.exec(t[l])||[],d=y=a[1],h=(a[2]||"").split(".").sort(),d){for(p=pt.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=i=f.length;i--;)s=f[i],!o&&y!==s.origType||n&&n.guid!==s.guid||a&&!a.test(s.namespace)||r&&r!==s.selector&&("**"!==r||!s.selector)||(f.splice(i,1),s.selector&&f.delegateCount--,p.remove&&p.remove.call(e,s));u&&!f.length&&(p.teardown&&p.teardown.call(e,h,g.handle)!==!1||pt.removeEvent(e,d,g.handle),delete c[d])}else for(d in c)pt.event.remove(e,d+t[l],n,r,!0);pt.isEmptyObject(c)&&(delete g.handle,pt._removeData(e,"events"))}},trigger:function(t,r,o,i){var s,a,u,l,c,p,f,d=[o||Q],h=lt.call(t,"type")?t.type:t,y=lt.call(t,"namespace")?t.namespace.split("."):[];if(u=p=o=o||Q,3!==o.nodeType&&8!==o.nodeType&&!It.test(h+pt.event.triggered)&&(h.indexOf(".")>=0&&(y=h.split("."),h=y.shift(),y.sort()),a=h.indexOf(":")<0&&"on"+h,t=t[pt.expando]?t:new pt.Event(h,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=y.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=n,t.target||(t.target=o),r=null==r?[t]:pt.makeArray(r,[t]),c=pt.event.special[h]||{},i||!c.trigger||c.trigger.apply(o,r)!==!1)){if(!i&&!c.noBubble&&!pt.isWindow(o)){for(l=c.delegateType||h,It.test(l+h)||(u=u.parentNode);u;u=u.parentNode)d.push(u),p=u;p===(o.ownerDocument||Q)&&d.push(p.defaultView||p.parentWindow||e)}for(f=0;(u=d[f++])&&!t.isPropagationStopped();)t.type=f>1?l:c.bindType||h,s=(pt._data(u,"events")||{})[t.type]&&pt._data(u,"handle"),s&&s.apply(u,r),s=a&&u[a],s&&pt.acceptData(u)&&s.apply&&s.apply(u,r)===!1&&t.preventDefault();if(t.type=h,!i&&!t.isDefaultPrevented()&&(!c._default||c._default.apply(d.pop(),r)===!1)&&pt.acceptData(o)&&a&&o[h]&&!pt.isWindow(o)){p=o[a],p&&(o[a]=null),pt.event.triggered=h;try{o[h]()}catch(g){}pt.event.triggered=n,p&&(o[a]=p)}return t.result}},dispatch:function(e){e=pt.event.fix(e);var t,r,o,i,s,a=[],u=st.call(arguments),l=(pt._data(this,"events")||{})[e.type]||[],c=pt.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){for(a=pt.event.handlers.call(this,e,l),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,s=0;(o=i.handlers[s++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(o.namespace))&&(e.handleObj=o,e.data=o.data,r=((pt.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u),r!==n&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var r,o,i,s,a=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){for(i=[],s=0;u>s;s++)o=t[s],r=o.selector+" ",i[r]===n&&(i[r]=o.needsContext?pt(r,this).index(l)>=0:pt.find(r,this,null,[l]).length),i[r]&&i.push(o);i.length&&a.push({elem:l,handlers:i})}return u<t.length&&a.push({elem:this,handlers:t.slice(u)}),a},fix:function(e){if(e[pt.expando])return e;var t,n,r,o=e.type,i=e,s=this.fixHooks[o];for(s||(this.fixHooks[o]=s=Rt.test(o)?this.mouseHooks:Ft.test(o)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new pt.Event(i),t=r.length;t--;)n=r[t],e[n]=i[n];return e.target||(e.target=i.srcElement||Q),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,i):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,t){var r,o,i,s=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(o=e.target.ownerDocument||Q,i=o.documentElement,r=o.body,e.pageX=t.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||s===n||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==p()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===p()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return pt.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(e){return pt.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==n&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var o=pt.extend(new pt.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?pt.event.trigger(o,null,t):pt.event.dispatch.call(t,o),o.isDefaultPrevented()&&n.preventDefault()}},pt.removeEvent=Q.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]===V&&(e[r]=null),e.detachEvent(r,n))},pt.Event=function(e,t){return this instanceof pt.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?l:c):this.type=e,t&&pt.extend(this,t),this.timeStamp=e&&e.timeStamp||pt.now(),void(this[pt.expando]=!0)):new pt.Event(e,t)},pt.Event.prototype={isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=l,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=l,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=l,this.stopPropagation()}},pt.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){pt.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,o=e.relatedTarget,i=e.handleObj;return(!o||o!==r&&!pt.contains(r,o))&&(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),pt.support.submitBubbles||(pt.event.special.submit={setup:function(){return pt.nodeName(this,"form")?!1:void pt.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,r=pt.nodeName(t,"input")||pt.nodeName(t,"button")?t.form:n;r&&!pt._data(r,"submitBubbles")&&(pt.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),pt._data(r,"submitBubbles",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&pt.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return pt.nodeName(this,"form")?!1:void pt.event.remove(this,"._submit")}}),pt.support.changeBubbles||(pt.event.special.change={setup:function(){return Bt.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(pt.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),pt.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),pt.event.simulate("change",this,e,!0)})),!1):void pt.event.add(this,"beforeactivate._change",function(e){var t=e.target;Bt.test(t.nodeName)&&!pt._data(t,"changeBubbles")&&(pt.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||pt.event.simulate("change",this.parentNode,e,!0)}),pt._data(t,"changeBubbles",!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 pt.event.remove(this,"._change"),!Bt.test(this.nodeName)}}),pt.support.focusinBubbles||pt.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){pt.event.simulate(t,e.target,pt.event.fix(e),!0)};pt.event.special[t]={setup:function(){0===n++&&Q.addEventListener(e,r,!0)},teardown:function(){0===--n&&Q.removeEventListener(e,r,!0)}}}),pt.fn.extend({on:function(e,t,r,o,i){var s,a;if("object"==typeof e){"string"!=typeof t&&(r=r||t,t=n);for(s in e)this.on(s,t,r,e[s],i);return this}if(null==r&&null==o?(o=t,r=t=n):null==o&&("string"==typeof t?(o=r,r=n):(o=r,r=t,t=n)),o===!1)o=c;else if(!o)return this;return 1===i&&(a=o,o=function(e){return pt().off(e),a.apply(this,arguments)},o.guid=a.guid||(a.guid=pt.guid++)),this.each(function(){pt.event.add(this,e,o,r,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,r){var o,i;if(e&&e.preventDefault&&e.handleObj)return o=e.handleObj,pt(e.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return(t===!1||"function"==typeof t)&&(r=t,t=n),r===!1&&(r=c),this.each(function(){pt.event.remove(this,e,r,t)})},trigger:function(e,t){return this.each(function(){pt.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?pt.event.trigger(e,t,n,!0):void 0}});var Wt=/^.[^:#\[\.,]*$/,zt=/^(?:parents|prev(?:Until|All))/,$t=pt.expr.match.needsContext,Xt={children:!0,contents:!0,next:!0,prev:!0};pt.fn.extend({find:function(e){var t,n=[],r=this,o=r.length;if("string"!=typeof e)return this.pushStack(pt(e).filter(function(){for(t=0;o>t;t++)if(pt.contains(r[t],this))return!0}));for(t=0;o>t;t++)pt.find(e,r[t],n);return n=this.pushStack(o>1?pt.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t,n=pt(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(pt.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(d(this,e||[],!0))},filter:function(e){return this.pushStack(d(this,e||[],!1))},is:function(e){return!!d(this,"string"==typeof e&&$t.test(e)?pt(e):e||[],!1).length},closest:function(e,t){for(var n,r=0,o=this.length,i=[],s=$t.test(e)||"string"!=typeof e?pt(e,t||this.context):0;o>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&pt.find.matchesSelector(n,e))){n=i.push(n);break}return this.pushStack(i.length>1?pt.unique(i):i)},index:function(e){return e?"string"==typeof e?pt.inArray(this[0],pt(e)):pt.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?pt(e,t):pt.makeArray(e&&e.nodeType?[e]:e),r=pt.merge(this.get(),n);return this.pushStack(pt.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),pt.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return pt.dir(e,"parentNode")},parentsUntil:function(e,t,n){return pt.dir(e,"parentNode",n)},next:function(e){return f(e,"nextSibling")},prev:function(e){return f(e,"previousSibling")},nextAll:function(e){return pt.dir(e,"nextSibling")},prevAll:function(e){return pt.dir(e,"previousSibling")},nextUntil:function(e,t,n){return pt.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return pt.dir(e,"previousSibling",n)},siblings:function(e){return pt.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return pt.sibling(e.firstChild)},contents:function(e){return pt.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:pt.merge([],e.childNodes)}},function(e,t){pt.fn[e]=function(n,r){var o=pt.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=pt.filter(r,o)),this.length>1&&(Xt[e]||(o=pt.unique(o)),zt.test(e)&&(o=o.reverse())),this.pushStack(o)}}),pt.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?pt.find.matchesSelector(r,e)?[r]:[]:pt.find.matches(e,pt.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,t,r){for(var o=[],i=e[t];i&&9!==i.nodeType&&(r===n||1!==i.nodeType||!pt(i).is(r));)1===i.nodeType&&o.push(i),i=i[t];return o},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var Kt="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,Vt=new RegExp("<(?:"+Kt+")[\\s/>]","i"),Jt=/^\s+/,Qt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Yt=/<([\w:]+)/,Zt=/<tbody/i,en=/<|&#?\w+;/,tn=/<(?:script|style|link)/i,nn=/^(?:checkbox|radio)$/i,rn=/checked\s*(?:[^=]|=\s*.checked.)/i,on=/^$|\/(?:java|ecma)script/i,sn=/^true\/(.*)/,an=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,un={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:pt.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},ln=h(Q),cn=ln.appendChild(Q.createElement("div"));un.optgroup=un.option,un.tbody=un.tfoot=un.colgroup=un.caption=un.thead,un.th=un.td,pt.fn.extend({text:function(e){return pt.access(this,function(e){return e===n?pt.text(this):this.empty().append((this[0]&&this[0].ownerDocument||Q).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=y(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=y(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){for(var n,r=e?pt.filter(e,this):this,o=0;null!=(n=r[o]);o++)t||1!==n.nodeType||pt.cleanData(w(n)),n.parentNode&&(t&&pt.contains(n.ownerDocument,n)&&v(w(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&pt.cleanData(w(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&pt.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 pt.clone(this,e,t)})},html:function(e){return pt.access(this,function(e){var t=this[0]||{},r=0,o=this.length;if(e===n)return 1===t.nodeType?t.innerHTML.replace(Gt,""):n;if(!("string"!=typeof e||tn.test(e)||!pt.support.htmlSerialize&&Vt.test(e)||!pt.support.leadingWhitespace&&Jt.test(e)||un[(Yt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(Qt,"<$1></$2>");try{for(;o>r;r++)t=this[r]||{},1===t.nodeType&&(pt.cleanData(w(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=pt.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],o=e[t++];o&&(r&&r.parentNode!==o&&(r=this.nextSibling),pt(this).remove(),o.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=ot.apply([],e);var r,o,i,s,a,u,l=0,c=this.length,p=this,f=c-1,d=e[0],h=pt.isFunction(d);if(h||!(1>=c||"string"!=typeof d||pt.support.checkClone)&&rn.test(d))return this.each(function(r){var o=p.eq(r);h&&(e[0]=d.call(this,r,o.html())),o.domManip(e,t,n)});if(c&&(u=pt.buildFragment(e,this[0].ownerDocument,!1,!n&&this),r=u.firstChild,1===u.childNodes.length&&(u=r),r)){for(s=pt.map(w(u,"script"),g),i=s.length;c>l;l++)o=u,l!==f&&(o=pt.clone(o,!0,!0),i&&pt.merge(s,w(o,"script"))),t.call(this[l],o,l);if(i)for(a=s[s.length-1].ownerDocument,pt.map(s,m),l=0;i>l;l++)o=s[l],on.test(o.type||"")&&!pt._data(o,"globalEval")&&pt.contains(a,o)&&(o.src?pt._evalUrl(o.src):pt.globalEval((o.text||o.textContent||o.innerHTML||"").replace(an,"")));u=r=null}return this}}),pt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){pt.fn[e]=function(e){for(var n,r=0,o=[],i=pt(e),s=i.length-1;s>=r;r++)n=r===s?this:this.clone(!0),pt(i[r])[t](n),it.apply(o,n.get());return this.pushStack(o)}}),pt.extend({clone:function(e,t,n){var r,o,i,s,a,u=pt.contains(e.ownerDocument,e);if(pt.support.html5Clone||pt.isXMLDoc(e)||!Vt.test("<"+e.nodeName+">")?i=e.cloneNode(!0):(cn.innerHTML=e.outerHTML,cn.removeChild(i=cn.firstChild)),!(pt.support.noCloneEvent&&pt.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||pt.isXMLDoc(e)))for(r=w(i),a=w(e),s=0;null!=(o=a[s]);++s)r[s]&&x(o,r[s]);if(t)if(n)for(a=a||w(e),r=r||w(i),s=0;null!=(o=a[s]);s++)b(o,r[s]);else b(e,i);return r=w(i,"script"),r.length>0&&v(r,!u&&w(e,"script")),r=a=o=null,i},buildFragment:function(e,t,n,r){for(var o,i,s,a,u,l,c,p=e.length,f=h(t),d=[],y=0;p>y;y++)if(i=e[y],i||0===i)if("object"===pt.type(i))pt.merge(d,i.nodeType?[i]:i);else if(en.test(i)){for(a=a||f.appendChild(t.createElement("div")),u=(Yt.exec(i)||["",""])[1].toLowerCase(),c=un[u]||un._default,a.innerHTML=c[1]+i.replace(Qt,"<$1></$2>")+c[2],o=c[0];o--;)a=a.lastChild;if(!pt.support.leadingWhitespace&&Jt.test(i)&&d.push(t.createTextNode(Jt.exec(i)[0])),!pt.support.tbody)for(i="table"!==u||Zt.test(i)?"<table>"!==c[1]||Zt.test(i)?0:a:a.firstChild,o=i&&i.childNodes.length;o--;)pt.nodeName(l=i.childNodes[o],"tbody")&&!l.childNodes.length&&i.removeChild(l);for(pt.merge(d,a.childNodes),a.textContent="";a.firstChild;)a.removeChild(a.firstChild);a=f.lastChild}else d.push(t.createTextNode(i));for(a&&f.removeChild(a),pt.support.appendChecked||pt.grep(w(d,"input"),T),y=0;i=d[y++];)if((!r||-1===pt.inArray(i,r))&&(s=pt.contains(i.ownerDocument,i),a=w(f.appendChild(i),"script"),s&&v(a),n))for(o=0;i=a[o++];)on.test(i.type||"")&&n.push(i);return a=null,f},cleanData:function(e,t){for(var n,r,o,i,s=0,a=pt.expando,u=pt.cache,l=pt.support.deleteExpando,c=pt.event.special;null!=(n=e[s]);s++)if((t||pt.acceptData(n))&&(o=n[a],i=o&&u[o])){if(i.events)for(r in i.events)c[r]?pt.event.remove(n,r):pt.removeEvent(n,r,i.handle);u[o]&&(delete u[o],l?delete n[a]:typeof n.removeAttribute!==V?n.removeAttribute(a):n[a]=null,nt.push(o))}},_evalUrl:function(e){return pt.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),pt.fn.extend({wrapAll:function(e){if(pt.isFunction(e))return this.each(function(t){pt(this).wrapAll(e.call(this,t))});if(this[0]){var t=pt(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 this.each(pt.isFunction(e)?function(t){pt(this).wrapInner(e.call(this,t))}:function(){var t=pt(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=pt.isFunction(e);return this.each(function(n){pt(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){pt.nodeName(this,"body")||pt(this).replaceWith(this.childNodes)}).end()}});var pn,fn,dn,hn=/alpha\([^)]*\)/i,yn=/opacity\s*=\s*([^)]*)/,gn=/^(top|right|bottom|left)$/,mn=/^(none|table(?!-c[ea]).+)/,vn=/^margin/,bn=new RegExp("^("+ft+")(.*)$","i"),xn=new RegExp("^("+ft+")(?!px)[a-z%]+$","i"),wn=new RegExp("^([+-])=("+ft+")","i"),Tn={BODY:"block"},Cn={position:"absolute",visibility:"hidden",display:"block"},kn={letterSpacing:0,fontWeight:400},Sn=["Top","Right","Bottom","Left"],En=["Webkit","O","Moz","ms"];pt.fn.extend({css:function(e,t){return pt.access(this,function(e,t,r){var o,i,s={},a=0;if(pt.isArray(t)){for(i=fn(e),o=t.length;o>a;a++)s[t[a]]=pt.css(e,t[a],!1,i);return s}return r!==n?pt.style(e,t,r):pt.css(e,t)},e,t,arguments.length>1)},show:function(){return S(this,!0)},hide:function(){return S(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){k(this)?pt(this).show():pt(this).hide()})}}),pt.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=dn(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":pt.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,r,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,s,a,u=pt.camelCase(t),l=e.style;if(t=pt.cssProps[u]||(pt.cssProps[u]=C(l,u)),a=pt.cssHooks[t]||pt.cssHooks[u],r===n)return a&&"get"in a&&(i=a.get(e,!1,o))!==n?i:l[t];if(s=typeof r,"string"===s&&(i=wn.exec(r))&&(r=(i[1]+1)*i[2]+parseFloat(pt.css(e,t)),s="number"),!(null==r||"number"===s&&isNaN(r)||("number"!==s||pt.cssNumber[u]||(r+="px"),pt.support.clearCloneStyle||""!==r||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&(r=a.set(e,r,o))===n)))try{l[t]=r}catch(c){}}},css:function(e,t,r,o){var i,s,a,u=pt.camelCase(t);return t=pt.cssProps[u]||(pt.cssProps[u]=C(e.style,u)),a=pt.cssHooks[t]||pt.cssHooks[u],a&&"get"in a&&(s=a.get(e,!0,r)),s===n&&(s=dn(e,t,o)),"normal"===s&&t in kn&&(s=kn[t]),""===r||r?(i=parseFloat(s),r===!0||pt.isNumeric(i)?i||0:s):s}}),e.getComputedStyle?(fn=function(t){return e.getComputedStyle(t,null)},dn=function(e,t,r){var o,i,s,a=r||fn(e),u=a?a.getPropertyValue(t)||a[t]:n,l=e.style;return a&&(""!==u||pt.contains(e.ownerDocument,e)||(u=pt.style(e,t)),xn.test(u)&&vn.test(t)&&(o=l.width,i=l.minWidth,s=l.maxWidth,l.minWidth=l.maxWidth=l.width=u,u=a.width,l.width=o,l.minWidth=i,l.maxWidth=s)),u}):Q.documentElement.currentStyle&&(fn=function(e){return e.currentStyle},dn=function(e,t,r){var o,i,s,a=r||fn(e),u=a?a[t]:n,l=e.style;return null==u&&l&&l[t]&&(u=l[t]),xn.test(u)&&!gn.test(t)&&(o=l.left,i=e.runtimeStyle,s=i&&i.left,s&&(i.left=e.currentStyle.left),l.left="fontSize"===t?"1em":u,u=l.pixelLeft+"px",l.left=o,s&&(i.left=s)),""===u?"auto":u}),pt.each(["height","width"],function(e,t){pt.cssHooks[t]={get:function(e,n,r){return n?0===e.offsetWidth&&mn.test(pt.css(e,"display"))?pt.swap(e,Cn,function(){return j(e,t,r)}):j(e,t,r):void 0},set:function(e,n,r){var o=r&&fn(e);return E(e,n,r?N(e,t,r,pt.support.boxSizing&&"border-box"===pt.css(e,"boxSizing",!1,o),o):0)}}}),pt.support.opacity||(pt.cssHooks.opacity={get:function(e,t){return yn.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,o=pt.isNumeric(t)?"alpha(opacity="+100*t+")":"",i=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===pt.trim(i.replace(hn,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=hn.test(i)?i.replace(hn,o):i+" "+o)}}),pt(function(){pt.support.reliableMarginRight||(pt.cssHooks.marginRight={get:function(e,t){return t?pt.swap(e,{display:"inline-block"},dn,[e,"marginRight"]):void 0}}),!pt.support.pixelPosition&&pt.fn.position&&pt.each(["top","left"],function(e,t){pt.cssHooks[t]={get:function(e,n){return n?(n=dn(e,t),xn.test(n)?pt(e).position()[t]+"px":n):void 0}}})}),pt.expr&&pt.expr.filters&&(pt.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!pt.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||pt.css(e,"display"))
},pt.expr.filters.visible=function(e){return!pt.expr.filters.hidden(e)}),pt.each({margin:"",padding:"",border:"Width"},function(e,t){pt.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];4>r;r++)o[e+Sn[r]+t]=i[r]||i[r-2]||i[0];return o}},vn.test(e)||(pt.cssHooks[e+t].set=E)});var Nn=/%20/g,jn=/\[\]$/,_n=/\r?\n/g,Dn=/^(?:submit|button|image|reset|file)$/i,qn=/^(?:input|select|textarea|keygen)/i;pt.fn.extend({serialize:function(){return pt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=pt.prop(this,"elements");return e?pt.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!pt(this).is(":disabled")&&qn.test(this.nodeName)&&!Dn.test(e)&&(this.checked||!nn.test(e))}).map(function(e,t){var n=pt(this).val();return null==n?null:pt.isArray(n)?pt.map(n,function(e){return{name:t.name,value:e.replace(_n,"\r\n")}}):{name:t.name,value:n.replace(_n,"\r\n")}}).get()}}),pt.param=function(e,t){var r,o=[],i=function(e,t){t=pt.isFunction(t)?t():null==t?"":t,o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(t===n&&(t=pt.ajaxSettings&&pt.ajaxSettings.traditional),pt.isArray(e)||e.jquery&&!pt.isPlainObject(e))pt.each(e,function(){i(this.name,this.value)});else for(r in e)q(r,e[r],t,i);return o.join("&").replace(Nn,"+")},pt.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){pt.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),pt.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 An,Pn,Ln=pt.now(),Hn=/\?/,Mn=/#.*$/,On=/([?&])_=[^&]*/,Bn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Fn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Rn=/^(?:GET|HEAD)$/,In=/^\/\//,Un=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Wn=pt.fn.load,zn={},$n={},Xn="*/".concat("*");try{Pn=J.href}catch(Kn){Pn=Q.createElement("a"),Pn.href="",Pn=Pn.href}An=Un.exec(Pn.toLowerCase())||[],pt.fn.load=function(e,t,r){if("string"!=typeof e&&Wn)return Wn.apply(this,arguments);var o,i,s,a=this,u=e.indexOf(" ");return u>=0&&(o=e.slice(u,e.length),e=e.slice(0,u)),pt.isFunction(t)?(r=t,t=n):t&&"object"==typeof t&&(s="POST"),a.length>0&&pt.ajax({url:e,type:s,dataType:"html",data:t}).done(function(e){i=arguments,a.html(o?pt("<div>").append(pt.parseHTML(e)).find(o):e)}).complete(r&&function(e,t){a.each(r,i||[e.responseText,t,e])}),this},pt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){pt.fn[t]=function(e){return this.on(t,e)}}),pt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pn,type:"GET",isLocal:Fn.test(An[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xn,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":pt.parseJSON,"text xml":pt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?L(L(e,pt.ajaxSettings),t):L(pt.ajaxSettings,e)},ajaxPrefilter:A(zn),ajaxTransport:A($n),ajax:function(e,t){function r(e,t,r,o){var i,p,v,b,w,C=t;2!==x&&(x=2,u&&clearTimeout(u),c=n,a=o||"",T.readyState=e>0?4:0,i=e>=200&&300>e||304===e,r&&(b=H(f,T,r)),b=M(f,b,T,i),i?(f.ifModified&&(w=T.getResponseHeader("Last-Modified"),w&&(pt.lastModified[s]=w),w=T.getResponseHeader("etag"),w&&(pt.etag[s]=w)),204===e||"HEAD"===f.type?C="nocontent":304===e?C="notmodified":(C=b.state,p=b.data,v=b.error,i=!v)):(v=C,(e||!C)&&(C="error",0>e&&(e=0))),T.status=e,T.statusText=(t||C)+"",i?y.resolveWith(d,[p,C,T]):y.rejectWith(d,[T,C,v]),T.statusCode(m),m=n,l&&h.trigger(i?"ajaxSuccess":"ajaxError",[T,f,i?p:v]),g.fireWith(d,[T,C]),l&&(h.trigger("ajaxComplete",[T,f]),--pt.active||pt.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=n),t=t||{};var o,i,s,a,u,l,c,p,f=pt.ajaxSetup({},t),d=f.context||f,h=f.context&&(d.nodeType||d.jquery)?pt(d):pt.event,y=pt.Deferred(),g=pt.Callbacks("once memory"),m=f.statusCode||{},v={},b={},x=0,w="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!p)for(p={};t=Bn.exec(a);)p[t[1].toLowerCase()]=t[2];t=p[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=b[n]=b[n]||e,v[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)m[t]=[m[t],e[t]];else T.always(e[T.status]);return this},abort:function(e){var t=e||w;return c&&c.abort(t),r(0,t),this}};if(y.promise(T).complete=g.add,T.success=T.done,T.error=T.fail,f.url=((e||f.url||Pn)+"").replace(Mn,"").replace(In,An[1]+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=pt.trim(f.dataType||"*").toLowerCase().match(dt)||[""],null==f.crossDomain&&(o=Un.exec(f.url.toLowerCase()),f.crossDomain=!(!o||o[1]===An[1]&&o[2]===An[2]&&(o[3]||("http:"===o[1]?"80":"443"))===(An[3]||("http:"===An[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=pt.param(f.data,f.traditional)),P(zn,f,t,T),2===x)return T;l=f.global,l&&0===pt.active++&&pt.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Rn.test(f.type),s=f.url,f.hasContent||(f.data&&(s=f.url+=(Hn.test(s)?"&":"?")+f.data,delete f.data),f.cache===!1&&(f.url=On.test(s)?s.replace(On,"$1_="+Ln++):s+(Hn.test(s)?"&":"?")+"_="+Ln++)),f.ifModified&&(pt.lastModified[s]&&T.setRequestHeader("If-Modified-Since",pt.lastModified[s]),pt.etag[s]&&T.setRequestHeader("If-None-Match",pt.etag[s])),(f.data&&f.hasContent&&f.contentType!==!1||t.contentType)&&T.setRequestHeader("Content-Type",f.contentType),T.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Xn+"; q=0.01":""):f.accepts["*"]);for(i in f.headers)T.setRequestHeader(i,f.headers[i]);if(f.beforeSend&&(f.beforeSend.call(d,T,f)===!1||2===x))return T.abort();w="abort";for(i in{success:1,error:1,complete:1})T[i](f[i]);if(c=P($n,f,t,T)){T.readyState=1,l&&h.trigger("ajaxSend",[T,f]),f.async&&f.timeout>0&&(u=setTimeout(function(){T.abort("timeout")},f.timeout));try{x=1,c.send(v,r)}catch(C){if(!(2>x))throw C;r(-1,C)}}else r(-1,"No Transport");return T},getJSON:function(e,t,n){return pt.get(e,t,n,"json")},getScript:function(e,t){return pt.get(e,n,t,"script")}}),pt.each(["get","post"],function(e,t){pt[t]=function(e,r,o,i){return pt.isFunction(r)&&(i=i||o,o=r,r=n),pt.ajax({url:e,type:t,dataType:i,data:r,success:o})}}),pt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return pt.globalEval(e),e}}}),pt.ajaxPrefilter("script",function(e){e.cache===n&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),pt.ajaxTransport("script",function(e){if(e.crossDomain){var t,r=Q.head||pt("head")[0]||Q.documentElement;return{send:function(n,o){t=Q.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||o(200,"success"))},r.insertBefore(t,r.firstChild)},abort:function(){t&&t.onload(n,!0)}}}});var Gn=[],Vn=/(=)\?(?=&|$)|\?\?/;pt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gn.pop()||pt.expando+"_"+Ln++;return this[e]=!0,e}}),pt.ajaxPrefilter("json jsonp",function(t,r,o){var i,s,a,u=t.jsonp!==!1&&(Vn.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vn.test(t.data)&&"data");return u||"jsonp"===t.dataTypes[0]?(i=t.jsonpCallback=pt.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,u?t[u]=t[u].replace(Vn,"$1"+i):t.jsonp!==!1&&(t.url+=(Hn.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||pt.error(i+" was not called"),a[0]},t.dataTypes[0]="json",s=e[i],e[i]=function(){a=arguments},o.always(function(){e[i]=s,t[i]&&(t.jsonpCallback=r.jsonpCallback,Gn.push(i)),a&&pt.isFunction(s)&&s(a[0]),a=s=n}),"script"):void 0});var Jn,Qn,Yn=0,Zn=e.ActiveXObject&&function(){var e;for(e in Jn)Jn[e](n,!0)};pt.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&O()||B()}:O,Qn=pt.ajaxSettings.xhr(),pt.support.cors=!!Qn&&"withCredentials"in Qn,Qn=pt.support.ajax=!!Qn,Qn&&pt.ajaxTransport(function(t){if(!t.crossDomain||pt.support.cors){var r;return{send:function(o,i){var s,a,u=t.xhr();if(t.username?u.open(t.type,t.url,t.async,t.username,t.password):u.open(t.type,t.url,t.async),t.xhrFields)for(a in t.xhrFields)u[a]=t.xhrFields[a];t.mimeType&&u.overrideMimeType&&u.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");try{for(a in o)u.setRequestHeader(a,o[a])}catch(l){}u.send(t.hasContent&&t.data||null),r=function(e,o){var a,l,c,p;try{if(r&&(o||4===u.readyState))if(r=n,s&&(u.onreadystatechange=pt.noop,Zn&&delete Jn[s]),o)4!==u.readyState&&u.abort();else{p={},a=u.status,l=u.getAllResponseHeaders(),"string"==typeof u.responseText&&(p.text=u.responseText);try{c=u.statusText}catch(f){c=""}a||!t.isLocal||t.crossDomain?1223===a&&(a=204):a=p.text?200:404}}catch(d){o||i(-1,d)}p&&i(a,c,p,l)},t.async?4===u.readyState?setTimeout(r):(s=++Yn,Zn&&(Jn||(Jn={},pt(e).unload(Zn)),Jn[s]=r),u.onreadystatechange=r):r()},abort:function(){r&&r(n,!0)}}}});var er,tr,nr=/^(?:toggle|show|hide)$/,rr=new RegExp("^(?:([+-])=|)("+ft+")([a-z%]*)$","i"),or=/queueHooks$/,ir=[W],sr={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),o=rr.exec(t),i=o&&o[3]||(pt.cssNumber[e]?"":"px"),s=(pt.cssNumber[e]||"px"!==i&&+r)&&rr.exec(pt.css(n.elem,e)),a=1,u=20;if(s&&s[3]!==i){i=i||s[3],o=o||[],s=+r||1;do a=a||".5",s/=a,pt.style(n.elem,e,s+i);while(a!==(a=n.cur()/r)&&1!==a&&--u)}return o&&(s=n.start=+s||+r||0,n.unit=i,n.end=o[1]?s+(o[1]+1)*o[2]:+o[2]),n}]};pt.Animation=pt.extend(I,{tweener:function(e,t){pt.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,o=e.length;o>r;r++)n=e[r],sr[n]=sr[n]||[],sr[n].unshift(t)},prefilter:function(e,t){t?ir.unshift(e):ir.push(e)}}),pt.Tween=z,z.prototype={constructor:z,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(pt.cssNumber[n]?"":"px")},cur:function(){var e=z.propHooks[this.prop];return e&&e.get?e.get(this):z.propHooks._default.get(this)},run:function(e){var t,n=z.propHooks[this.prop];return this.pos=t=this.options.duration?pt.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):z.propHooks._default.set(this),this}},z.prototype.init.prototype=z.prototype,z.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=pt.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){pt.fx.step[e.prop]?pt.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[pt.cssProps[e.prop]]||pt.cssHooks[e.prop])?pt.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},z.propHooks.scrollTop=z.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},pt.each(["toggle","show","hide"],function(e,t){var n=pt.fn[t];pt.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate($(t,!0),e,r,o)}}),pt.fn.extend({fadeTo:function(e,t,n,r){return this.filter(k).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=pt.isEmptyObject(e),i=pt.speed(t,n,r),s=function(){var t=I(this,pt.extend({},e),i);(o||pt._data(this,"finish"))&&t.stop(!0)};return s.finish=s,o||i.queue===!1?this.each(s):this.queue(i.queue,s)},stop:function(e,t,r){var o=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=t,t=e,e=n),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",i=pt.timers,s=pt._data(this);if(n)s[n]&&s[n].stop&&o(s[n]);else for(n in s)s[n]&&s[n].stop&&or.test(n)&&o(s[n]);for(n=i.length;n--;)i[n].elem!==this||null!=e&&i[n].queue!==e||(i[n].anim.stop(r),t=!1,i.splice(n,1));(t||!r)&&pt.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=pt._data(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=pt.timers,s=r?r.length:0;for(n.finish=!0,pt.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;s>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),pt.each({slideDown:$("show"),slideUp:$("hide"),slideToggle:$("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){pt.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),pt.speed=function(e,t,n){var r=e&&"object"==typeof e?pt.extend({},e):{complete:n||!n&&t||pt.isFunction(e)&&e,duration:e,easing:n&&t||t&&!pt.isFunction(t)&&t};return r.duration=pt.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in pt.fx.speeds?pt.fx.speeds[r.duration]:pt.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){pt.isFunction(r.old)&&r.old.call(this),r.queue&&pt.dequeue(this,r.queue)},r},pt.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},pt.timers=[],pt.fx=z.prototype.init,pt.fx.tick=function(){var e,t=pt.timers,r=0;for(er=pt.now();r<t.length;r++)e=t[r],e()||t[r]!==e||t.splice(r--,1);t.length||pt.fx.stop(),er=n},pt.fx.timer=function(e){e()&&pt.timers.push(e)&&pt.fx.start()},pt.fx.interval=13,pt.fx.start=function(){tr||(tr=setInterval(pt.fx.tick,pt.fx.interval))},pt.fx.stop=function(){clearInterval(tr),tr=null},pt.fx.speeds={slow:600,fast:200,_default:400},pt.fx.step={},pt.expr&&pt.expr.filters&&(pt.expr.filters.animated=function(e){return pt.grep(pt.timers,function(t){return e===t.elem}).length}),pt.fn.offset=function(e){if(arguments.length)return e===n?this:this.each(function(t){pt.offset.setOffset(this,e,t)});var t,r,o={top:0,left:0},i=this[0],s=i&&i.ownerDocument;if(s)return t=s.documentElement,pt.contains(t,i)?(typeof i.getBoundingClientRect!==V&&(o=i.getBoundingClientRect()),r=X(s),{top:o.top+(r.pageYOffset||t.scrollTop)-(t.clientTop||0),left:o.left+(r.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):o},pt.offset={setOffset:function(e,t,n){var r=pt.css(e,"position");"static"===r&&(e.style.position="relative");var o,i,s=pt(e),a=s.offset(),u=pt.css(e,"top"),l=pt.css(e,"left"),c=("absolute"===r||"fixed"===r)&&pt.inArray("auto",[u,l])>-1,p={},f={};c?(f=s.position(),o=f.top,i=f.left):(o=parseFloat(u)||0,i=parseFloat(l)||0),pt.isFunction(t)&&(t=t.call(e,n,a)),null!=t.top&&(p.top=t.top-a.top+o),null!=t.left&&(p.left=t.left-a.left+i),"using"in t?t.using.call(e,p):s.css(p)}},pt.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===pt.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),pt.nodeName(e[0],"html")||(n=e.offset()),n.top+=pt.css(e[0],"borderTopWidth",!0),n.left+=pt.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-pt.css(r,"marginTop",!0),left:t.left-n.left-pt.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||Y;e&&!pt.nodeName(e,"html")&&"static"===pt.css(e,"position");)e=e.offsetParent;return e||Y})}}),pt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var r=/Y/.test(t);pt.fn[e]=function(o){return pt.access(this,function(e,o,i){var s=X(e);return i===n?s?t in s?s[t]:s.document.documentElement[o]:e[o]:void(s?s.scrollTo(r?pt(s).scrollLeft():i,r?i:pt(s).scrollTop()):e[o]=i)},e,o,arguments.length,null)}}),pt.each({Height:"height",Width:"width"},function(e,t){pt.each({padding:"inner"+e,content:t,"":"outer"+e},function(r,o){pt.fn[o]=function(o,i){var s=arguments.length&&(r||"boolean"!=typeof o),a=r||(o===!0||i===!0?"margin":"border");return pt.access(this,function(t,r,o){var i;return pt.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):o===n?pt.css(t,r,a):pt.style(t,r,o,a)},t,s?o:n,s,null)}})}),pt.fn.size=function(){return this.length},pt.fn.andSelf=pt.fn.addBack,"object"==typeof t&&t&&"object"==typeof t.exports?t.exports=pt:(e.jQuery=e.$=pt,"function"==typeof define&&define.amd&&define("jquery",[],function(){return pt}))}(window)},{}],12:[function(e,t,n){!function(e,r){"object"==typeof n?t.exports=n=r():"function"==typeof define&&define.amd?define([],r):e.CryptoJS=r()}(this,function(){var e=e||function(e,t){var n={},r=n.lib={},o=r.Base=function(){function e(){}return{extend:function(t){e.prototype=this;var n=new e;return t&&n.mixIn(t),n.hasOwnProperty("init")||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),i=r.WordArray=o.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||a).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;o>i;i++){var s=255&n[i>>>2]>>>24-8*(i%4);t[r+i>>>2]|=s<<24-8*((r+i)%4)}else if(n.length>65535)for(var i=0;o>i;i+=4)t[r+i>>>2]=n[i>>>2];else t.push.apply(t,n);return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-8*(n%4),t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n=[],r=0;t>r;r+=4)n.push(0|4294967296*e.random());return new i.init(n,t)}}),s=n.enc={},a=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;n>o;o++){var i=255&t[o>>>2]>>>24-8*(o%4);r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;t>r;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-4*(r%8);return new i.init(n,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;n>o;o++){var i=255&t[o>>>2]>>>24-8*(o%4);r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;t>r;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-8*(r%4);return new i.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},c=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new i.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,o=n.sigBytes,s=this.blockSize,a=4*s,u=o/a;u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0);var l=u*s,c=e.min(4*l,o);if(l){for(var p=0;l>p;p+=s)this._doProcessBlock(r,p);var f=r.splice(0,l);n.sigBytes-=c}return new i.init(f,c)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});r.Hasher=c.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){c.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new p.HMAC.init(e,n).finalize(t)}}});var p=n.algo={};return n}(Math);return e})},{}],13:[function(e,t,n){!function(r,o){"object"==typeof n?t.exports=n=o(e("./core"),e("./sha1"),e("./hmac")):"function"==typeof define&&define.amd?define(["./core","./sha1","./hmac"],o):o(r.CryptoJS)}(this,function(e){return e.HmacSHA1})},{"./core":12,"./hmac":14,"./sha1":15}],14:[function(e,t,n){!function(r,o){"object"==typeof n?t.exports=n=o(e("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(r.CryptoJS)}(this,function(e){!function(){var t=e,n=t.lib,r=n.Base,o=t.enc,i=o.Utf8,s=t.algo;s.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),s=this._iKey=t.clone(),a=o.words,u=s.words,l=0;n>l;l++)a[l]^=1549556828,u[l]^=909522486;o.sigBytes=s.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);t.reset();var r=t.finalize(this._oKey.clone().concat(n));return r}})}()})},{"./core":12}],15:[function(e,t,n){!function(r,o){"object"==typeof n?t.exports=n=o(e("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(r.CryptoJS)}(this,function(e){return function(){var t=e,n=t.lib,r=n.WordArray,o=n.Hasher,i=t.algo,s=[],a=i.SHA1=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],u=n[4],l=0;80>l;l++){if(16>l)s[l]=0|e[t+l];else{var c=s[l-3]^s[l-8]^s[l-14]^s[l-16];s[l]=c<<1|c>>>31}var p=(r<<5|r>>>27)+u+s[l];p+=20>l?(o&i|~o&a)+1518500249:40>l?(o^i^a)+1859775393:60>l?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,u=a,a=i,i=o<<30|o>>>2,o=r,r=p}n[0]=0|n[0]+r,n[1]=0|n[1]+o,n[2]=0|n[2]+i,n[3]=0|n[3]+a,n[4]=0|n[4]+u},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),t[(r+64>>>9<<4)+15]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=o._createHelper(a),t.HmacSHA1=o._createHmacHelper(a)}(),e.SHA1})},{"./core":12}]},{},[10]);
|
ajax/libs/es6-shim/0.20.4/es6-shim.js
|
RizkyAdiSaputra/cdnjs
|
/*!
* https://github.com/paulmillr/es6-shim
* @license es6-shim Copyright 2013-2014 by Paul Miller (http://paulmillr.com)
* and contributors, MIT License
* es6-shim: v0.20.4
* see https://github.com/paulmillr/es6-shim/blob/master/LICENSE
* Details and documentation:
* https://github.com/paulmillr/es6-shim/
*/
// UMD (Universal Module Definition)
// see https://github.com/umdjs/umd/blob/master/returnExports.js
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(factory);
} else if (typeof exports === 'object') {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like enviroments that support module.exports,
// like Node.
module.exports = factory();
} else {
// Browser globals (root is window)
root.returnExports = factory();
}
}(this, function () {
'use strict';
var isCallableWithoutNew = function (func) {
try { func(); }
catch (e) { return false; }
return true;
};
var supportsSubclassing = function (C, f) {
/* jshint proto:true */
try {
var Sub = function () { C.apply(this, arguments); };
if (!Sub.__proto__) { return false; /* skip test on IE < 11 */ }
Object.setPrototypeOf(Sub, C);
Sub.prototype = Object.create(C.prototype, {
constructor: { value: C }
});
return f(Sub);
} catch (e) {
return false;
}
};
var arePropertyDescriptorsSupported = function () {
try {
Object.defineProperty({}, 'x', {});
return true;
} catch (e) { /* this is IE 8. */
return false;
}
};
var startsWithRejectsRegex = function () {
var rejectsRegex = false;
if (String.prototype.startsWith) {
try {
'/a/'.startsWith(/a/);
} catch (e) { /* this is spec compliant */
rejectsRegex = true;
}
}
return rejectsRegex;
};
/*jshint evil: true */
var getGlobal = new Function('return this;');
/*jshint evil: false */
var globals = getGlobal();
var global_isFinite = globals.isFinite;
var supportsDescriptors = !!Object.defineProperty && arePropertyDescriptorsSupported();
var startsWithIsCompliant = startsWithRejectsRegex();
var _slice = Array.prototype.slice;
var _indexOf = String.prototype.indexOf;
var _toString = Object.prototype.toString;
var _hasOwnProperty = Object.prototype.hasOwnProperty;
var ArrayIterator; // make our implementation private
var defineProperty = function (object, name, value, force) {
if (!force && name in object) { return; }
if (supportsDescriptors) {
Object.defineProperty(object, name, {
configurable: true,
enumerable: false,
writable: true,
value: value
});
} else {
object[name] = value;
}
};
// Define configurable, writable and non-enumerable props
// if they don’t exist.
var defineProperties = function (object, map) {
Object.keys(map).forEach(function (name) {
var method = map[name];
defineProperty(object, name, method, false);
});
};
// Simple shim for Object.create on ES3 browsers
// (unlike real shim, no attempt to support `prototype === null`)
var create = Object.create || function (prototype, properties) {
function Type() {}
Type.prototype = prototype;
var object = new Type();
if (typeof properties !== 'undefined') {
defineProperties(object, properties);
}
return object;
};
// This is a private name in the es6 spec, equal to '[Symbol.iterator]'
// we're going to use an arbitrary _-prefixed name to make our shims
// work properly with each other, even though we don't have full Iterator
// support. That is, `Array.from(map.keys())` will work, but we don't
// pretend to export a "real" Iterator interface.
var $iterator$ = (typeof Symbol === 'function' && 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 (globals.Set && typeof new globals.Set()['@@iterator'] === 'function') {
$iterator$ = '@@iterator';
}
var addIterator = function (prototype, impl) {
if (!impl) { impl = function iterator() { return this; }; }
var o = {};
o[$iterator$] = impl;
defineProperties(prototype, o);
/* jshint notypeof: true */
if (!prototype[$iterator$] && typeof $iterator$ === 'symbol') {
// implementations are buggy when $iterator$ is a Symbol
prototype[$iterator$] = impl;
}
};
// taken directly from https://github.com/ljharb/is-arguments/blob/master/index.js
// can be replaced with require('is-arguments') if we ever use a build process instead
var isArguments = function isArguments(value) {
var str = _toString.call(value);
var result = str === '[object Arguments]';
if (!result) {
result = str !== '[object Array]' &&
value !== null &&
typeof value === 'object' &&
typeof value.length === 'number' &&
value.length >= 0 &&
_toString.call(value.callee) === '[object Function]';
}
return result;
};
var emulateES6construct = function (o) {
if (!ES.TypeIsObject(o)) { throw new TypeError('bad object'); }
// es5 approximation to es6 subclass semantics: in es6, 'new Foo'
// would invoke Foo.@@create to allocation/initialize the new object.
// In es5 we just get the plain object. So if we detect an
// uninitialized object, invoke o.constructor.@@create
if (!o._es6construct) {
if (o.constructor && ES.IsCallable(o.constructor['@@create'])) {
o = o.constructor['@@create'](o);
}
defineProperties(o, { _es6construct: true });
}
return o;
};
var ES = {
CheckObjectCoercible: function (x, optMessage) {
/* jshint eqnull:true */
if (x == null) {
throw new TypeError(optMessage || 'Cannot call method on ' + x);
}
return x;
},
TypeIsObject: function (x) {
/* jshint eqnull:true */
// this is expensive when it returns false; use this function
// when you expect it to return true in the common case.
return x != null && Object(x) === x;
},
ToObject: function (o, optMessage) {
return Object(ES.CheckObjectCoercible(o, optMessage));
},
IsCallable: function (x) {
return typeof x === 'function' &&
// some versions of IE say that typeof /abc/ === 'function'
_toString.call(x) === '[object Function]';
},
ToInt32: function (x) {
return x >> 0;
},
ToUint32: function (x) {
return x >>> 0;
},
ToInteger: function (value) {
var number = +value;
if (Number.isNaN(number)) { return 0; }
if (number === 0 || !Number.isFinite(number)) { return number; }
return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));
},
ToLength: function (value) {
var len = ES.ToInteger(value);
if (len <= 0) { return 0; } // includes converting -0 to +0
if (len > Number.MAX_SAFE_INTEGER) { return Number.MAX_SAFE_INTEGER; }
return len;
},
SameValue: function (a, b) {
if (a === b) {
// 0 === -0, but they are not identical.
if (a === 0) { return 1 / a === 1 / b; }
return true;
}
return Number.isNaN(a) && Number.isNaN(b);
},
SameValueZero: function (a, b) {
// same as SameValue except for SameValueZero(+0, -0) == true
return (a === b) || (Number.isNaN(a) && Number.isNaN(b));
},
IsIterable: function (o) {
return ES.TypeIsObject(o) &&
(typeof o[$iterator$] !== 'undefined' || isArguments(o));
},
GetIterator: function (o) {
if (isArguments(o)) {
// special case support for `arguments`
return new ArrayIterator(o, 'value');
}
var itFn = o[$iterator$];
if (!ES.IsCallable(itFn)) {
throw new TypeError('value is not an iterable');
}
var it = itFn.call(o);
if (!ES.TypeIsObject(it)) {
throw new TypeError('bad iterator');
}
return it;
},
IteratorNext: function (it) {
var result = arguments.length > 1 ? it.next(arguments[1]) : it.next();
if (!ES.TypeIsObject(result)) {
throw new TypeError('bad iterator');
}
return result;
},
Construct: function (C, args) {
// CreateFromConstructor
var obj;
if (ES.IsCallable(C['@@create'])) {
obj = C['@@create']();
} else {
// OrdinaryCreateFromConstructor
obj = create(C.prototype || null);
}
// Mark that we've used the es6 construct path
// (see emulateES6construct)
defineProperties(obj, { _es6construct: true });
// Call the constructor.
var result = C.apply(obj, args);
return ES.TypeIsObject(result) ? result : obj;
}
};
var numberConversion = (function () {
// from https://github.com/inexorabletash/polyfill/blob/master/typedarray.js#L176-L266
// with permission and license, per https://twitter.com/inexorabletash/status/372206509540659200
function roundToEven(n) {
var w = Math.floor(n), f = n - w;
if (f < 0.5) {
return w;
}
if (f > 0.5) {
return w + 1;
}
return w % 2 ? w + 1 : w;
}
function packIEEE754(v, ebits, fbits) {
var bias = (1 << (ebits - 1)) - 1,
s, e, f,
i, bits, str, bytes;
// Compute sign, exponent, fraction
if (v !== v) {
// NaN
// http://dev.w3.org/2006/webapi/WebIDL/#es-type-mapping
e = (1 << ebits) - 1;
f = Math.pow(2, fbits - 1);
s = 0;
} else if (v === Infinity || v === -Infinity) {
e = (1 << ebits) - 1;
f = 0;
s = (v < 0) ? 1 : 0;
} else if (v === 0) {
e = 0;
f = 0;
s = (1 / v === -Infinity) ? 1 : 0;
} else {
s = v < 0;
v = Math.abs(v);
if (v >= Math.pow(2, 1 - bias)) {
e = Math.min(Math.floor(Math.log(v) / Math.LN2), 1023);
f = roundToEven(v / Math.pow(2, e) * Math.pow(2, fbits));
if (f / Math.pow(2, fbits) >= 2) {
e = e + 1;
f = 1;
}
if (e > bias) {
// Overflow
e = (1 << ebits) - 1;
f = 0;
} else {
// Normal
e = e + bias;
f = f - Math.pow(2, fbits);
}
} else {
// Subnormal
e = 0;
f = roundToEven(v / Math.pow(2, 1 - bias - fbits));
}
}
// Pack sign, exponent, fraction
bits = [];
for (i = fbits; i; i -= 1) {
bits.push(f % 2 ? 1 : 0);
f = Math.floor(f / 2);
}
for (i = ebits; i; i -= 1) {
bits.push(e % 2 ? 1 : 0);
e = Math.floor(e / 2);
}
bits.push(s ? 1 : 0);
bits.reverse();
str = bits.join('');
// Bits to bytes
bytes = [];
while (str.length) {
bytes.push(parseInt(str.slice(0, 8), 2));
str = str.slice(8);
}
return bytes;
}
function unpackIEEE754(bytes, ebits, fbits) {
// Bytes to bits
var bits = [], i, j, b, str,
bias, s, e, f;
for (i = bytes.length; i; i -= 1) {
b = bytes[i - 1];
for (j = 8; j; j -= 1) {
bits.push(b % 2 ? 1 : 0);
b = b >> 1;
}
}
bits.reverse();
str = bits.join('');
// Unpack sign, exponent, fraction
bias = (1 << (ebits - 1)) - 1;
s = parseInt(str.slice(0, 1), 2) ? -1 : 1;
e = parseInt(str.slice(1, 1 + ebits), 2);
f = parseInt(str.slice(1 + ebits), 2);
// Produce number
if (e === (1 << ebits) - 1) {
return f !== 0 ? NaN : s * Infinity;
} else if (e > 0) {
// Normalized
return s * Math.pow(2, e - bias) * (1 + f / Math.pow(2, fbits));
} else if (f !== 0) {
// Denormalized
return s * Math.pow(2, -(bias - 1)) * (f / Math.pow(2, fbits));
} else {
return s < 0 ? -0 : 0;
}
}
function unpackFloat64(b) { return unpackIEEE754(b, 11, 52); }
function packFloat64(v) { return packIEEE754(v, 11, 52); }
function unpackFloat32(b) { return unpackIEEE754(b, 8, 23); }
function packFloat32(v) { return packIEEE754(v, 8, 23); }
var conversions = {
toFloat32: function (num) { return unpackFloat32(packFloat32(num)); }
};
if (typeof Float32Array !== 'undefined') {
var float32array = new Float32Array(1);
conversions.toFloat32 = function (num) {
float32array[0] = num;
return float32array[0];
};
}
return conversions;
}());
defineProperties(String, {
fromCodePoint: function fromCodePoint(_) { // length = 1
var result = [];
var next;
for (var i = 0, length = arguments.length; i < length; i++) {
next = Number(arguments[i]);
if (!ES.SameValue(next, ES.ToInteger(next)) || next < 0 || next > 0x10FFFF) {
throw new RangeError('Invalid code point ' + next);
}
if (next < 0x10000) {
result.push(String.fromCharCode(next));
} else {
next -= 0x10000;
result.push(String.fromCharCode((next >> 10) + 0xD800));
result.push(String.fromCharCode((next % 0x400) + 0xDC00));
}
}
return result.join('');
},
raw: function raw(callSite) { // raw.length===1
var cooked = ES.ToObject(callSite, 'bad callSite');
var rawValue = cooked.raw;
var rawString = ES.ToObject(rawValue, 'bad raw value');
var len = rawString.length;
var literalsegments = ES.ToLength(len);
if (literalsegments <= 0) {
return '';
}
var stringElements = [];
var nextIndex = 0;
var nextKey, next, nextSeg, nextSub;
while (nextIndex < literalsegments) {
nextKey = String(nextIndex);
next = rawString[nextKey];
nextSeg = String(next);
stringElements.push(nextSeg);
if (nextIndex + 1 >= literalsegments) {
break;
}
next = nextIndex + 1 < arguments.length ? arguments[nextIndex + 1] : '';
nextSub = String(next);
stringElements.push(nextSub);
nextIndex++;
}
return stringElements.join('');
}
});
// Firefox 31 reports this function's length as 0
// https://bugzilla.mozilla.org/show_bug.cgi?id=1062484
if (String.fromCodePoint.length !== 1) {
var originalFromCodePoint = String.fromCodePoint;
defineProperty(String, 'fromCodePoint', function (_) { return originalFromCodePoint.apply(this, arguments); }, true);
}
var StringShims = {
// Fast repeat, uses the `Exponentiation by squaring` algorithm.
// Perf: http://jsperf.com/string-repeat2/2
repeat: (function () {
var repeat = function (s, times) {
if (times < 1) { return ''; }
if (times % 2) { return repeat(s, times - 1) + s; }
var half = repeat(s, times / 2);
return half + half;
};
return function (times) {
var thisStr = String(ES.CheckObjectCoercible(this));
times = ES.ToInteger(times);
if (times < 0 || times === Infinity) {
throw new RangeError('Invalid String#repeat value');
}
return repeat(thisStr, times);
};
})(),
startsWith: function (searchStr) {
var thisStr = String(ES.CheckObjectCoercible(this));
if (_toString.call(searchStr) === '[object RegExp]') {
throw new TypeError('Cannot call method "startsWith" with a regex');
}
searchStr = String(searchStr);
var startArg = arguments.length > 1 ? arguments[1] : void 0;
var start = Math.max(ES.ToInteger(startArg), 0);
return thisStr.slice(start, start + searchStr.length) === searchStr;
},
endsWith: function (searchStr) {
var thisStr = String(ES.CheckObjectCoercible(this));
if (_toString.call(searchStr) === '[object RegExp]') {
throw new TypeError('Cannot call method "endsWith" with a regex');
}
searchStr = String(searchStr);
var thisLen = thisStr.length;
var posArg = arguments.length > 1 ? arguments[1] : void 0;
var pos = typeof posArg === 'undefined' ? thisLen : ES.ToInteger(posArg);
var end = Math.min(Math.max(pos, 0), thisLen);
return thisStr.slice(end - searchStr.length, end) === searchStr;
},
contains: function (searchString) {
var position = arguments.length > 1 ? arguments[1] : void 0;
// Somehow this trick makes method 100% compat with the spec.
return _indexOf.call(this, searchString, position) !== -1;
},
codePointAt: function (pos) {
var thisStr = String(ES.CheckObjectCoercible(this));
var position = ES.ToInteger(pos);
var length = thisStr.length;
if (position < 0 || position >= length) { return; }
var first = thisStr.charCodeAt(position);
var isEnd = (position + 1 === length);
if (first < 0xD800 || first > 0xDBFF || isEnd) { return first; }
var second = thisStr.charCodeAt(position + 1);
if (second < 0xDC00 || second > 0xDFFF) { return first; }
return ((first - 0xD800) * 1024) + (second - 0xDC00) + 0x10000;
}
};
defineProperties(String.prototype, StringShims);
var hasStringTrimBug = '\u0085'.trim().length !== 1;
if (hasStringTrimBug) {
var originalStringTrim = String.prototype.trim;
delete String.prototype.trim;
// whitespace from: http://es5.github.io/#x15.5.4.20
// implementation from https://github.com/es-shims/es5-shim/blob/v3.4.0/es5-shim.js#L1304-L1324
var ws = [
'\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003',
'\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028',
'\u2029\uFEFF'
].join('');
var trimRegexp = new RegExp('(^[' + ws + ']+)|([' + ws + ']+$)', 'g');
defineProperties(String.prototype, {
trim: function () {
if (typeof this === 'undefined' || this === null) {
throw new TypeError("can't convert " + this + ' to object');
}
return String(this).replace(trimRegexp, '');
}
});
}
// see https://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype-@@iterator
var StringIterator = function (s) {
this._s = String(ES.CheckObjectCoercible(s));
this._i = 0;
};
StringIterator.prototype.next = function () {
var s = this._s, i = this._i;
if (typeof s === 'undefined' || i >= s.length) {
this._s = void 0;
return { value: void 0, done: true };
}
var first = s.charCodeAt(i), second, len;
if (first < 0xD800 || first > 0xDBFF || (i + 1) == s.length) {
len = 1;
} else {
second = s.charCodeAt(i + 1);
len = (second < 0xDC00 || second > 0xDFFF) ? 1 : 2;
}
this._i = i + len;
return { value: s.substr(i, len), done: false };
};
addIterator(StringIterator.prototype);
addIterator(String.prototype, function () {
return new StringIterator(this);
});
if (!startsWithIsCompliant) {
// Firefox has a noncompliant startsWith implementation
String.prototype.startsWith = StringShims.startsWith;
String.prototype.endsWith = StringShims.endsWith;
}
var ArrayShims = {
from: function (iterable) {
var mapFn = arguments.length > 1 ? arguments[1] : void 0;
var list = ES.ToObject(iterable, 'bad iterable');
if (typeof mapFn !== 'undefined' && !ES.IsCallable(mapFn)) {
throw new TypeError('Array.from: when provided, the second argument must be a function');
}
var hasThisArg = arguments.length > 2;
var thisArg = hasThisArg ? arguments[2] : void 0;
var usingIterator = ES.IsIterable(list);
// does the spec really mean that Arrays should use ArrayIterator?
// https://bugs.ecmascript.org/show_bug.cgi?id=2416
//if (Array.isArray(list)) { usingIterator=false; }
var length;
var result, i, value;
if (usingIterator) {
i = 0;
result = ES.IsCallable(this) ? Object(new this()) : [];
var it = usingIterator ? ES.GetIterator(list) : null;
var iterationValue;
do {
iterationValue = ES.IteratorNext(it);
if (!iterationValue.done) {
value = iterationValue.value;
if (mapFn) {
result[i] = hasThisArg ? mapFn.call(thisArg, value, i) : mapFn(value, i);
} else {
result[i] = value;
}
i += 1;
}
} while (!iterationValue.done);
length = i;
} else {
length = ES.ToLength(list.length);
result = ES.IsCallable(this) ? Object(new this(length)) : new Array(length);
for (i = 0; i < length; ++i) {
value = list[i];
if (mapFn) {
result[i] = hasThisArg ? mapFn.call(thisArg, value, i) : mapFn(value, i);
} else {
result[i] = value;
}
}
}
result.length = length;
return result;
},
of: function () {
return Array.from(arguments);
}
};
defineProperties(Array, ArrayShims);
var arrayFromSwallowsNegativeLengths = function () {
try {
return Array.from({ length: -1 }).length === 0;
} catch (e) {
return false;
}
};
// Fixes a Firefox bug in v32
// https://bugzilla.mozilla.org/show_bug.cgi?id=1063993
if (!arrayFromSwallowsNegativeLengths()) {
defineProperty(Array, 'from', ArrayShims.from, true);
}
// Our ArrayIterator is private; see
// https://github.com/paulmillr/es6-shim/issues/252
ArrayIterator = function (array, kind) {
this.i = 0;
this.array = array;
this.kind = kind;
};
defineProperties(ArrayIterator.prototype, {
next: function () {
var i = this.i, array = this.array;
if (!(this instanceof ArrayIterator)) {
throw new TypeError('Not an ArrayIterator');
}
if (typeof array !== 'undefined') {
var len = ES.ToLength(array.length);
for (; i < len; i++) {
var kind = this.kind;
var retval;
if (kind === 'key') {
retval = i;
} else if (kind === 'value') {
retval = array[i];
} else if (kind === 'entry') {
retval = [i, array[i]];
}
this.i = i + 1;
return { value: retval, done: false };
}
}
this.array = void 0;
return { value: void 0, done: true };
}
});
addIterator(ArrayIterator.prototype);
var ArrayPrototypeShims = {
copyWithin: function (target, start) {
var end = arguments[2]; // copyWithin.length must be 2
var o = ES.ToObject(this);
var len = ES.ToLength(o.length);
target = ES.ToInteger(target);
start = ES.ToInteger(start);
var to = target < 0 ? Math.max(len + target, 0) : Math.min(target, len);
var from = start < 0 ? Math.max(len + start, 0) : Math.min(start, len);
end = typeof end === 'undefined' ? len : ES.ToInteger(end);
var fin = end < 0 ? Math.max(len + end, 0) : Math.min(end, len);
var count = Math.min(fin - from, len - to);
var direction = 1;
if (from < to && to < (from + count)) {
direction = -1;
from += count - 1;
to += count - 1;
}
while (count > 0) {
if (_hasOwnProperty.call(o, from)) {
o[to] = o[from];
} else {
delete o[from];
}
from += direction;
to += direction;
count -= 1;
}
return o;
},
fill: function (value) {
var start = arguments.length > 1 ? arguments[1] : void 0;
var end = arguments.length > 2 ? arguments[2] : void 0;
var O = ES.ToObject(this);
var len = ES.ToLength(O.length);
start = ES.ToInteger(typeof start === 'undefined' ? 0 : start);
end = ES.ToInteger(typeof end === 'undefined' ? len : end);
var relativeStart = start < 0 ? Math.max(len + start, 0) : Math.min(start, len);
var relativeEnd = end < 0 ? len + end : end;
for (var i = relativeStart; i < len && i < relativeEnd; ++i) {
O[i] = value;
}
return O;
},
find: function find(predicate) {
var list = ES.ToObject(this);
var length = ES.ToLength(list.length);
if (!ES.IsCallable(predicate)) {
throw new TypeError('Array#find: predicate must be a function');
}
var thisArg = arguments.length > 1 ? arguments[1] : null;
for (var i = 0, value; i < length; i++) {
value = list[i];
if (thisArg) {
if (predicate.call(thisArg, value, i, list)) { return value; }
} else {
if (predicate(value, i, list)) { return value; }
}
}
return;
},
findIndex: function findIndex(predicate) {
var list = ES.ToObject(this);
var length = ES.ToLength(list.length);
if (!ES.IsCallable(predicate)) {
throw new TypeError('Array#findIndex: predicate must be a function');
}
var thisArg = arguments.length > 1 ? arguments[1] : null;
for (var i = 0; i < length; i++) {
if (thisArg) {
if (predicate.call(thisArg, list[i], i, list)) { return i; }
} else {
if (predicate(list[i], i, list)) { return i; }
}
}
return -1;
},
keys: function () {
return new ArrayIterator(this, 'key');
},
values: function () {
return new ArrayIterator(this, 'value');
},
entries: function () {
return new ArrayIterator(this, 'entry');
}
};
// Safari 7.1 defines Array#keys and Array#entries natively,
// but the resulting ArrayIterator objects don't have a "next" method.
if (Array.prototype.keys && !ES.IsCallable([1].keys().next)) {
delete Array.prototype.keys;
}
if (Array.prototype.entries && !ES.IsCallable([1].entries().next)) {
delete Array.prototype.entries;
}
// Chrome 38 defines Array#keys and Array#entries, and Array#@@iterator, but not Array#values
if (Array.prototype.keys && Array.prototype.entries && !Array.prototype.values && Array.prototype[$iterator$]) {
defineProperties(Array.prototype, {
values: Array.prototype[$iterator$]
});
}
defineProperties(Array.prototype, ArrayPrototypeShims);
addIterator(Array.prototype, function () { return this.values(); });
// Chrome defines keys/values/entries on Array, but doesn't give us
// any way to identify its iterator. So add our own shimmed field.
if (Object.getPrototypeOf) {
addIterator(Object.getPrototypeOf([].values()));
}
var maxSafeInteger = Math.pow(2, 53) - 1;
defineProperties(Number, {
MAX_SAFE_INTEGER: maxSafeInteger,
MIN_SAFE_INTEGER: -maxSafeInteger,
EPSILON: 2.220446049250313e-16,
parseInt: globals.parseInt,
parseFloat: globals.parseFloat,
isFinite: function (value) {
return typeof value === 'number' && global_isFinite(value);
},
isInteger: function (value) {
return Number.isFinite(value) &&
ES.ToInteger(value) === value;
},
isSafeInteger: function (value) {
return Number.isInteger(value) && Math.abs(value) <= Number.MAX_SAFE_INTEGER;
},
isNaN: function (value) {
// NaN !== NaN, but they are identical.
// NaNs are the only non-reflexive value, i.e., if x !== x,
// then x is NaN.
// isNaN is broken: it converts its argument to number, so
// isNaN('foo') => true
return value !== value;
}
});
// Work around bugs in Array#find and Array#findIndex -- early
// implementations skipped holes in sparse arrays. (Note that the
// implementations of find/findIndex indirectly use shimmed
// methods of Number, so this test has to happen down here.)
if (![, 1].find(function (item, idx) { return idx === 0; })) {
defineProperty(Array.prototype, 'find', ArrayPrototypeShims.find, true);
}
if ([, 1].findIndex(function (item, idx) { return idx === 0; }) !== 0) {
defineProperty(Array.prototype, 'findIndex', ArrayPrototypeShims.findIndex, true);
}
if (supportsDescriptors) {
defineProperties(Object, {
getPropertyDescriptor: function (subject, name) {
var pd = Object.getOwnPropertyDescriptor(subject, name);
var proto = Object.getPrototypeOf(subject);
while (typeof pd === 'undefined' && proto !== null) {
pd = Object.getOwnPropertyDescriptor(proto, name);
proto = Object.getPrototypeOf(proto);
}
return pd;
},
getPropertyNames: function (subject) {
var result = Object.getOwnPropertyNames(subject);
var proto = Object.getPrototypeOf(subject);
var addProperty = function (property) {
if (result.indexOf(property) === -1) {
result.push(property);
}
};
while (proto !== null) {
Object.getOwnPropertyNames(proto).forEach(addProperty);
proto = Object.getPrototypeOf(proto);
}
return result;
}
});
defineProperties(Object, {
// 19.1.3.1
assign: function (target, source) {
if (!ES.TypeIsObject(target)) {
throw new TypeError('target must be an object');
}
return Array.prototype.reduce.call(arguments, function (target, source) {
return Object.keys(Object(source)).reduce(function (target, key) {
target[key] = source[key];
return target;
}, target);
});
},
is: function (a, b) {
return ES.SameValue(a, b);
},
// 19.1.3.9
// shim from https://gist.github.com/WebReflection/5593554
setPrototypeOf: (function (Object, magic) {
var set;
var checkArgs = function (O, proto) {
if (!ES.TypeIsObject(O)) {
throw new TypeError('cannot set prototype on a non-object');
}
if (!(proto === null || ES.TypeIsObject(proto))) {
throw new TypeError('can only set prototype to an object or null' + proto);
}
};
var setPrototypeOf = function (O, proto) {
checkArgs(O, proto);
set.call(O, proto);
return O;
};
try {
// this works already in Firefox and Safari
set = Object.getOwnPropertyDescriptor(Object.prototype, magic).set;
set.call({}, null);
} catch (e) {
if (Object.prototype !== {}[magic]) {
// IE < 11 cannot be shimmed
return;
}
// probably Chrome or some old Mobile stock browser
set = function (proto) {
this[magic] = proto;
};
// please note that this will **not** work
// in those browsers that do not inherit
// __proto__ by mistake from Object.prototype
// in these cases we should probably throw an error
// or at least be informed about the issue
setPrototypeOf.polyfill = setPrototypeOf(
setPrototypeOf({}, null),
Object.prototype
) instanceof Object;
// setPrototypeOf.polyfill === true means it works as meant
// setPrototypeOf.polyfill === false means it's not 100% reliable
// setPrototypeOf.polyfill === undefined
// or
// setPrototypeOf.polyfill == null means it's not a polyfill
// which means it works as expected
// we can even delete Object.prototype.__proto__;
}
return setPrototypeOf;
})(Object, '__proto__')
});
}
// Workaround bug in Opera 12 where setPrototypeOf(x, null) doesn't work,
// but Object.create(null) does.
if (Object.setPrototypeOf && Object.getPrototypeOf &&
Object.getPrototypeOf(Object.setPrototypeOf({}, null)) !== null &&
Object.getPrototypeOf(Object.create(null)) === null) {
(function () {
var FAKENULL = Object.create(null);
var gpo = Object.getPrototypeOf, spo = Object.setPrototypeOf;
Object.getPrototypeOf = function (o) {
var result = gpo(o);
return result === FAKENULL ? null : result;
};
Object.setPrototypeOf = function (o, p) {
if (p === null) { p = FAKENULL; }
return spo(o, p);
};
Object.setPrototypeOf.polyfill = false;
})();
}
try {
Object.keys('foo');
} catch (e) {
var originalObjectKeys = Object.keys;
Object.keys = function (obj) {
return originalObjectKeys(ES.ToObject(obj));
};
}
var MathShims = {
acosh: function (value) {
value = Number(value);
if (Number.isNaN(value) || value < 1) { return NaN; }
if (value === 1) { return 0; }
if (value === Infinity) { return value; }
return Math.log(value + Math.sqrt(value * value - 1));
},
asinh: function (value) {
value = Number(value);
if (value === 0 || !global_isFinite(value)) {
return value;
}
return value < 0 ? -Math.asinh(-value) : Math.log(value + Math.sqrt(value * value + 1));
},
atanh: function (value) {
value = Number(value);
if (Number.isNaN(value) || value < -1 || value > 1) {
return NaN;
}
if (value === -1) { return -Infinity; }
if (value === 1) { return Infinity; }
if (value === 0) { return value; }
return 0.5 * Math.log((1 + value) / (1 - value));
},
cbrt: function (value) {
value = Number(value);
if (value === 0) { return value; }
var negate = value < 0, result;
if (negate) { value = -value; }
result = Math.pow(value, 1 / 3);
return negate ? -result : result;
},
clz32: function (value) {
// See https://bugs.ecmascript.org/show_bug.cgi?id=2465
value = Number(value);
var number = ES.ToUint32(value);
if (number === 0) {
return 32;
}
return 32 - (number).toString(2).length;
},
cosh: function (value) {
value = Number(value);
if (value === 0) { return 1; } // +0 or -0
if (Number.isNaN(value)) { return NaN; }
if (!global_isFinite(value)) { return Infinity; }
if (value < 0) { value = -value; }
if (value > 21) { return Math.exp(value) / 2; }
return (Math.exp(value) + Math.exp(-value)) / 2;
},
expm1: function (value) {
value = Number(value);
if (value === -Infinity) { return -1; }
if (!global_isFinite(value) || value === 0) { return value; }
return Math.exp(value) - 1;
},
hypot: function (x, y) {
var anyNaN = false;
var allZero = true;
var anyInfinity = false;
var numbers = [];
Array.prototype.every.call(arguments, function (arg) {
var num = Number(arg);
if (Number.isNaN(num)) {
anyNaN = true;
} else if (num === Infinity || num === -Infinity) {
anyInfinity = true;
} else if (num !== 0) {
allZero = false;
}
if (anyInfinity) {
return false;
} else if (!anyNaN) {
numbers.push(Math.abs(num));
}
return true;
});
if (anyInfinity) { return Infinity; }
if (anyNaN) { return NaN; }
if (allZero) { return 0; }
numbers.sort(function (a, b) { return b - a; });
var largest = numbers[0];
var divided = numbers.map(function (number) { return number / largest; });
var sum = divided.reduce(function (sum, number) { return sum += number * number; }, 0);
return largest * Math.sqrt(sum);
},
log2: function (value) {
return Math.log(value) * Math.LOG2E;
},
log10: function (value) {
return Math.log(value) * Math.LOG10E;
},
log1p: function (value) {
value = Number(value);
if (value < -1 || Number.isNaN(value)) { return NaN; }
if (value === 0 || value === Infinity) { return value; }
if (value === -1) { return -Infinity; }
var result = 0;
var n = 50;
if (value < 0 || value > 1) { return Math.log(1 + value); }
for (var i = 1; i < n; i++) {
if ((i % 2) === 0) {
result -= Math.pow(value, i) / i;
} else {
result += Math.pow(value, i) / i;
}
}
return result;
},
sign: function (value) {
var number = +value;
if (number === 0) { return number; }
if (Number.isNaN(number)) { return number; }
return number < 0 ? -1 : 1;
},
sinh: function (value) {
value = Number(value);
if (!global_isFinite(value) || value === 0) { return value; }
return (Math.exp(value) - Math.exp(-value)) / 2;
},
tanh: function (value) {
value = Number(value);
if (Number.isNaN(value) || value === 0) { return value; }
if (value === Infinity) { return 1; }
if (value === -Infinity) { return -1; }
return (Math.exp(value) - Math.exp(-value)) / (Math.exp(value) + Math.exp(-value));
},
trunc: function (value) {
var number = Number(value);
return number < 0 ? -Math.floor(-number) : Math.floor(number);
},
imul: function (x, y) {
// taken from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/imul
x = ES.ToUint32(x);
y = ES.ToUint32(y);
var ah = (x >>> 16) & 0xffff;
var al = x & 0xffff;
var bh = (y >>> 16) & 0xffff;
var bl = y & 0xffff;
// the shift by 0 fixes the sign on the high part
// the final |0 converts the unsigned value into a signed value
return ((al * bl) + (((ah * bl + al * bh) << 16) >>> 0)|0);
},
fround: function (x) {
if (x === 0 || x === Infinity || x === -Infinity || Number.isNaN(x)) {
return x;
}
var num = Number(x);
return numberConversion.toFloat32(num);
}
};
defineProperties(Math, MathShims);
if (Math.imul(0xffffffff, 5) !== -5) {
// Safari 6.1, at least, reports "0" for this value
Math.imul = MathShims.imul;
}
// Promises
// Simplest possible implementation; use a 3rd-party library if you
// want the best possible speed and/or long stack traces.
var PromiseShim = (function () {
var Promise, Promise$prototype;
ES.IsPromise = function (promise) {
if (!ES.TypeIsObject(promise)) {
return false;
}
if (!promise._promiseConstructor) {
// _promiseConstructor is a bit more unique than _status, so we'll
// check that instead of the [[PromiseStatus]] internal field.
return false;
}
if (typeof promise._status === 'undefined') {
return false; // uninitialized
}
return true;
};
// "PromiseCapability" in the spec is what most promise implementations
// call a "deferred".
var PromiseCapability = function (C) {
if (!ES.IsCallable(C)) {
throw new TypeError('bad promise constructor');
}
var capability = this;
var resolver = function (resolve, reject) {
capability.resolve = resolve;
capability.reject = reject;
};
capability.promise = ES.Construct(C, [resolver]);
// see https://bugs.ecmascript.org/show_bug.cgi?id=2478
if (!capability.promise._es6construct) {
throw new TypeError('bad promise constructor');
}
if (!(ES.IsCallable(capability.resolve) &&
ES.IsCallable(capability.reject))) {
throw new TypeError('bad promise constructor');
}
};
// find an appropriate setImmediate-alike
var setTimeout = globals.setTimeout;
var makeZeroTimeout;
if (typeof window !== 'undefined' && ES.IsCallable(window.postMessage)) {
makeZeroTimeout = function () {
// from http://dbaron.org/log/20100309-faster-timeouts
var timeouts = [];
var messageName = 'zero-timeout-message';
var setZeroTimeout = function (fn) {
timeouts.push(fn);
window.postMessage(messageName, '*');
};
var handleMessage = function (event) {
if (event.source == window && event.data == messageName) {
event.stopPropagation();
if (timeouts.length === 0) { return; }
var fn = timeouts.shift();
fn();
}
};
window.addEventListener('message', handleMessage, true);
return setZeroTimeout;
};
}
var makePromiseAsap = function () {
// An efficient task-scheduler based on a pre-existing Promise
// implementation, which we can use even if we override the
// global Promise below (in order to workaround bugs)
// https://github.com/Raynos/observ-hash/issues/2#issuecomment-35857671
var P = globals.Promise;
return P && P.resolve && function (task) {
return P.resolve().then(task);
};
};
var enqueue = ES.IsCallable(globals.setImmediate) ?
globals.setImmediate.bind(globals) :
typeof process === 'object' && process.nextTick ? process.nextTick :
makePromiseAsap() ||
(ES.IsCallable(makeZeroTimeout) ? makeZeroTimeout() :
function (task) { setTimeout(task, 0); }); // fallback
var triggerPromiseReactions = function (reactions, x) {
reactions.forEach(function (reaction) {
enqueue(function () {
// PromiseReactionTask
var handler = reaction.handler;
var capability = reaction.capability;
var resolve = capability.resolve;
var reject = capability.reject;
try {
var result = handler(x);
if (result === capability.promise) {
throw new TypeError('self resolution');
}
var updateResult =
updatePromiseFromPotentialThenable(result, capability);
if (!updateResult) {
resolve(result);
}
} catch (e) {
reject(e);
}
});
});
};
var updatePromiseFromPotentialThenable = function (x, capability) {
if (!ES.TypeIsObject(x)) {
return false;
}
var resolve = capability.resolve;
var reject = capability.reject;
try {
var then = x.then; // only one invocation of accessor
if (!ES.IsCallable(then)) { return false; }
then.call(x, resolve, reject);
} catch (e) {
reject(e);
}
return true;
};
var promiseResolutionHandler = function (promise, onFulfilled, onRejected) {
return function (x) {
if (x === promise) {
return onRejected(new TypeError('self resolution'));
}
var C = promise._promiseConstructor;
var capability = new PromiseCapability(C);
var updateResult = updatePromiseFromPotentialThenable(x, capability);
if (updateResult) {
return capability.promise.then(onFulfilled, onRejected);
} else {
return onFulfilled(x);
}
};
};
Promise = function (resolver) {
var promise = this;
promise = emulateES6construct(promise);
if (!promise._promiseConstructor) {
// we use _promiseConstructor as a stand-in for the internal
// [[PromiseStatus]] field; it's a little more unique.
throw new TypeError('bad promise');
}
if (typeof promise._status !== 'undefined') {
throw new TypeError('promise already initialized');
}
// see https://bugs.ecmascript.org/show_bug.cgi?id=2482
if (!ES.IsCallable(resolver)) {
throw new TypeError('not a valid resolver');
}
promise._status = 'unresolved';
promise._resolveReactions = [];
promise._rejectReactions = [];
var resolve = function (resolution) {
if (promise._status !== 'unresolved') { return; }
var reactions = promise._resolveReactions;
promise._result = resolution;
promise._resolveReactions = void 0;
promise._rejectReactions = void 0;
promise._status = 'has-resolution';
triggerPromiseReactions(reactions, resolution);
};
var reject = function (reason) {
if (promise._status !== 'unresolved') { return; }
var reactions = promise._rejectReactions;
promise._result = reason;
promise._resolveReactions = void 0;
promise._rejectReactions = void 0;
promise._status = 'has-rejection';
triggerPromiseReactions(reactions, reason);
};
try {
resolver(resolve, reject);
} catch (e) {
reject(e);
}
return promise;
};
Promise$prototype = Promise.prototype;
defineProperties(Promise, {
'@@create': function (obj) {
var constructor = this;
// AllocatePromise
// The `obj` parameter is a hack we use for es5
// compatibility.
var prototype = constructor.prototype || Promise$prototype;
obj = obj || create(prototype);
defineProperties(obj, {
_status: void 0,
_result: void 0,
_resolveReactions: void 0,
_rejectReactions: void 0,
_promiseConstructor: void 0
});
obj._promiseConstructor = constructor;
return obj;
}
});
var _promiseAllResolver = function (index, values, capability, remaining) {
var done = false;
return function (x) {
if (done) { return; } // protect against being called multiple times
done = true;
values[index] = x;
if ((--remaining.count) === 0) {
var resolve = capability.resolve;
resolve(values); // call w/ this===undefined
}
};
};
Promise.all = function (iterable) {
var C = this;
var capability = new PromiseCapability(C);
var resolve = capability.resolve;
var reject = capability.reject;
try {
if (!ES.IsIterable(iterable)) {
throw new TypeError('bad iterable');
}
var it = ES.GetIterator(iterable);
var values = [], remaining = { count: 1 };
for (var index = 0; ; index++) {
var next = ES.IteratorNext(it);
if (next.done) {
break;
}
var nextPromise = C.resolve(next.value);
var resolveElement = _promiseAllResolver(
index, values, capability, remaining
);
remaining.count++;
nextPromise.then(resolveElement, capability.reject);
}
if ((--remaining.count) === 0) {
resolve(values); // call w/ this===undefined
}
} catch (e) {
reject(e);
}
return capability.promise;
};
Promise.race = function (iterable) {
var C = this;
var capability = new PromiseCapability(C);
var resolve = capability.resolve;
var reject = capability.reject;
try {
if (!ES.IsIterable(iterable)) {
throw new TypeError('bad iterable');
}
var it = ES.GetIterator(iterable);
while (true) {
var next = ES.IteratorNext(it);
if (next.done) {
// If iterable has no items, resulting promise will never
// resolve; see:
// https://github.com/domenic/promises-unwrapping/issues/75
// https://bugs.ecmascript.org/show_bug.cgi?id=2515
break;
}
var nextPromise = C.resolve(next.value);
nextPromise.then(resolve, reject);
}
} catch (e) {
reject(e);
}
return capability.promise;
};
Promise.reject = function (reason) {
var C = this;
var capability = new PromiseCapability(C);
var reject = capability.reject;
reject(reason); // call with this===undefined
return capability.promise;
};
Promise.resolve = function (v) {
var C = this;
if (ES.IsPromise(v)) {
var constructor = v._promiseConstructor;
if (constructor === C) { return v; }
}
var capability = new PromiseCapability(C);
var resolve = capability.resolve;
resolve(v); // call with this===undefined
return capability.promise;
};
Promise.prototype['catch'] = function (onRejected) {
return this.then(void 0, onRejected);
};
Promise.prototype.then = function (onFulfilled, onRejected) {
var promise = this;
if (!ES.IsPromise(promise)) { throw new TypeError('not a promise'); }
// this.constructor not this._promiseConstructor; see
// https://bugs.ecmascript.org/show_bug.cgi?id=2513
var C = this.constructor;
var capability = new PromiseCapability(C);
if (!ES.IsCallable(onRejected)) {
onRejected = function (e) { throw e; };
}
if (!ES.IsCallable(onFulfilled)) {
onFulfilled = function (x) { return x; };
}
var resolutionHandler =
promiseResolutionHandler(promise, onFulfilled, onRejected);
var resolveReaction =
{ capability: capability, handler: resolutionHandler };
var rejectReaction =
{ capability: capability, handler: onRejected };
switch (promise._status) {
case 'unresolved':
promise._resolveReactions.push(resolveReaction);
promise._rejectReactions.push(rejectReaction);
break;
case 'has-resolution':
triggerPromiseReactions([resolveReaction], promise._result);
break;
case 'has-rejection':
triggerPromiseReactions([rejectReaction], promise._result);
break;
default:
throw new TypeError('unexpected');
}
return capability.promise;
};
return Promise;
})();
// Chrome's native Promise has extra methods that it shouldn't have. Let's remove them.
if (globals.Promise) {
delete globals.Promise.accept;
delete globals.Promise.defer;
delete globals.Promise.prototype.chain;
}
// export the Promise constructor.
defineProperties(globals, { Promise: PromiseShim });
// In Chrome 33 (and thereabouts) Promise is defined, but the
// implementation is buggy in a number of ways. Let's check subclassing
// support to see if we have a buggy implementation.
var promiseSupportsSubclassing = supportsSubclassing(globals.Promise, function (S) {
return S.resolve(42) instanceof S;
});
var promiseIgnoresNonFunctionThenCallbacks = (function () {
try {
globals.Promise.reject(42).then(null, 5).then(null, function () {});
return true;
} catch (ex) {
return false;
}
}());
var promiseRequiresObjectContext = (function () {
try { Promise.call(3, function () {}); } catch (e) { return true; }
return false;
}());
if (!promiseSupportsSubclassing || !promiseIgnoresNonFunctionThenCallbacks || !promiseRequiresObjectContext) {
globals.Promise = PromiseShim;
}
// Map and Set require a true ES5 environment
// Their fast path also requires that the environment preserve
// property insertion order, which is not guaranteed by the spec.
var testOrder = function (a) {
var b = Object.keys(a.reduce(function (o, k) {
o[k] = true;
return o;
}, {}));
return a.join(':') === b.join(':');
};
var preservesInsertionOrder = testOrder(['z', 'a', 'bb']);
// some engines (eg, Chrome) only preserve insertion order for string keys
var preservesNumericInsertionOrder = testOrder(['z', 1, 'a', '3', 2]);
if (supportsDescriptors) {
var fastkey = function fastkey(key) {
if (!preservesInsertionOrder) {
return null;
}
var type = typeof key;
if (type === 'string') {
return '$' + key;
} else if (type === 'number') {
// note that -0 will get coerced to "0" when used as a property key
if (!preservesNumericInsertionOrder) {
return 'n' + key;
}
return key;
}
return null;
};
var emptyObject = function emptyObject() {
// accomodate some older not-quite-ES5 browsers
return Object.create ? Object.create(null) : {};
};
var collectionShims = {
Map: (function () {
var empty = {};
function MapEntry(key, value) {
this.key = key;
this.value = value;
this.next = null;
this.prev = null;
}
MapEntry.prototype.isRemoved = function () {
return this.key === empty;
};
function MapIterator(map, kind) {
this.head = map._head;
this.i = this.head;
this.kind = kind;
}
MapIterator.prototype = {
next: function () {
var i = this.i, kind = this.kind, head = this.head, result;
if (typeof this.i === 'undefined') {
return { value: void 0, done: true };
}
while (i.isRemoved() && i !== head) {
// back up off of removed entries
i = i.prev;
}
// advance to next unreturned element.
while (i.next !== head) {
i = i.next;
if (!i.isRemoved()) {
if (kind === 'key') {
result = i.key;
} else if (kind === 'value') {
result = i.value;
} else {
result = [i.key, i.value];
}
this.i = i;
return { value: result, done: false };
}
}
// once the iterator is done, it is done forever.
this.i = void 0;
return { value: void 0, done: true };
}
};
addIterator(MapIterator.prototype);
function Map(iterable) {
var map = this;
if (!ES.TypeIsObject(map)) {
throw new TypeError('Map does not accept arguments when called as a function');
}
map = emulateES6construct(map);
if (!map._es6map) {
throw new TypeError('bad map');
}
var head = new MapEntry(null, null);
// circular doubly-linked list.
head.next = head.prev = head;
defineProperties(map, {
_head: head,
_storage: emptyObject(),
_size: 0
});
// Optionally initialize map from iterable
if (typeof iterable !== 'undefined' && iterable !== null) {
var it = ES.GetIterator(iterable);
var adder = map.set;
if (!ES.IsCallable(adder)) { throw new TypeError('bad map'); }
while (true) {
var next = ES.IteratorNext(it);
if (next.done) { break; }
var nextItem = next.value;
if (!ES.TypeIsObject(nextItem)) {
throw new TypeError('expected iterable of pairs');
}
adder.call(map, nextItem[0], nextItem[1]);
}
}
return map;
}
var Map$prototype = Map.prototype;
defineProperties(Map, {
'@@create': function (obj) {
var constructor = this;
var prototype = constructor.prototype || Map$prototype;
obj = obj || create(prototype);
defineProperties(obj, { _es6map: true });
return obj;
}
});
Object.defineProperty(Map.prototype, 'size', {
configurable: true,
enumerable: false,
get: function () {
if (typeof this._size === 'undefined') {
throw new TypeError('size method called on incompatible Map');
}
return this._size;
}
});
defineProperties(Map.prototype, {
get: function (key) {
var fkey = fastkey(key);
if (fkey !== null) {
// fast O(1) path
var entry = this._storage[fkey];
if (entry) {
return entry.value;
} else {
return;
}
}
var head = this._head, i = head;
while ((i = i.next) !== head) {
if (ES.SameValueZero(i.key, key)) {
return i.value;
}
}
return;
},
has: function (key) {
var fkey = fastkey(key);
if (fkey !== null) {
// fast O(1) path
return typeof this._storage[fkey] !== 'undefined';
}
var head = this._head, i = head;
while ((i = i.next) !== head) {
if (ES.SameValueZero(i.key, key)) {
return true;
}
}
return false;
},
set: function (key, value) {
var head = this._head, i = head, entry;
var fkey = fastkey(key);
if (fkey !== null) {
// fast O(1) path
if (typeof this._storage[fkey] !== 'undefined') {
this._storage[fkey].value = value;
return this;
} else {
entry = this._storage[fkey] = new MapEntry(key, value);
i = head.prev;
// fall through
}
}
while ((i = i.next) !== head) {
if (ES.SameValueZero(i.key, key)) {
i.value = value;
return this;
}
}
entry = entry || new MapEntry(key, value);
if (ES.SameValue(-0, key)) {
entry.key = +0; // coerce -0 to +0 in entry
}
entry.next = this._head;
entry.prev = this._head.prev;
entry.prev.next = entry;
entry.next.prev = entry;
this._size += 1;
return this;
},
'delete': function (key) {
var head = this._head, i = head;
var fkey = fastkey(key);
if (fkey !== null) {
// fast O(1) path
if (typeof this._storage[fkey] === 'undefined') {
return false;
}
i = this._storage[fkey].prev;
delete this._storage[fkey];
// fall through
}
while ((i = i.next) !== head) {
if (ES.SameValueZero(i.key, key)) {
i.key = i.value = empty;
i.prev.next = i.next;
i.next.prev = i.prev;
this._size -= 1;
return true;
}
}
return false;
},
clear: function () {
this._size = 0;
this._storage = emptyObject();
var head = this._head, i = head, p = i.next;
while ((i = p) !== head) {
i.key = i.value = empty;
p = i.next;
i.next = i.prev = head;
}
head.next = head.prev = head;
},
keys: function () {
return new MapIterator(this, 'key');
},
values: function () {
return new MapIterator(this, 'value');
},
entries: function () {
return new MapIterator(this, 'key+value');
},
forEach: function (callback) {
var context = arguments.length > 1 ? arguments[1] : null;
var it = this.entries();
for (var entry = it.next(); !entry.done; entry = it.next()) {
if (context) {
callback.call(context, entry.value[1], entry.value[0], this);
} else {
callback(entry.value[1], entry.value[0], this);
}
}
}
});
addIterator(Map.prototype, function () { return this.entries(); });
return Map;
})(),
Set: (function () {
// Creating a Map is expensive. To speed up the common case of
// Sets containing only string or numeric keys, we use an object
// as backing storage and lazily create a full Map only when
// required.
var SetShim = function Set(iterable) {
var set = this;
if (!ES.TypeIsObject(set)) {
throw new TypeError('Set does not accept arguments when called as a function');
}
set = emulateES6construct(set);
if (!set._es6set) {
throw new TypeError('bad set');
}
defineProperties(set, {
'[[SetData]]': null,
_storage: emptyObject()
});
// Optionally initialize map from iterable
if (typeof iterable !== 'undefined' && iterable !== null) {
var it = ES.GetIterator(iterable);
var adder = set.add;
if (!ES.IsCallable(adder)) { throw new TypeError('bad set'); }
while (true) {
var next = ES.IteratorNext(it);
if (next.done) { break; }
var nextItem = next.value;
adder.call(set, nextItem);
}
}
return set;
};
var Set$prototype = SetShim.prototype;
defineProperties(SetShim, {
'@@create': function (obj) {
var constructor = this;
var prototype = constructor.prototype || Set$prototype;
obj = obj || create(prototype);
defineProperties(obj, { _es6set: true });
return obj;
}
});
// Switch from the object backing storage to a full Map.
var ensureMap = function ensureMap(set) {
if (!set['[[SetData]]']) {
var m = set['[[SetData]]'] = new collectionShims.Map();
Object.keys(set._storage).forEach(function (k) {
// fast check for leading '$'
if (k.charCodeAt(0) === 36) {
k = k.slice(1);
} else if (k.charAt(0) === 'n') {
k = +k.slice(1);
} else {
k = +k;
}
m.set(k, k);
});
set._storage = null; // free old backing storage
}
};
Object.defineProperty(SetShim.prototype, 'size', {
configurable: true,
enumerable: false,
get: function () {
if (typeof this._storage === 'undefined') {
// https://github.com/paulmillr/es6-shim/issues/176
throw new TypeError('size method called on incompatible Set');
}
ensureMap(this);
return this['[[SetData]]'].size;
}
});
defineProperties(SetShim.prototype, {
has: function (key) {
var fkey;
if (this._storage && (fkey = fastkey(key)) !== null) {
return !!this._storage[fkey];
}
ensureMap(this);
return this['[[SetData]]'].has(key);
},
add: function (key) {
var fkey;
if (this._storage && (fkey = fastkey(key)) !== null) {
this._storage[fkey] = true;
return this;
}
ensureMap(this);
this['[[SetData]]'].set(key, key);
return this;
},
'delete': function (key) {
var fkey;
if (this._storage && (fkey = fastkey(key)) !== null) {
var hasFKey = _hasOwnProperty.call(this._storage, fkey);
return (delete this._storage[fkey]) && hasFKey;
}
ensureMap(this);
return this['[[SetData]]']['delete'](key);
},
clear: function () {
if (this._storage) {
this._storage = emptyObject();
return;
}
return this['[[SetData]]'].clear();
},
values: function () {
ensureMap(this);
return this['[[SetData]]'].values();
},
entries: function () {
ensureMap(this);
return this['[[SetData]]'].entries();
},
forEach: function (callback) {
var context = arguments.length > 1 ? arguments[1] : null;
var entireSet = this;
ensureMap(entireSet);
this['[[SetData]]'].forEach(function (value, key) {
if (context) {
callback.call(context, key, key, entireSet);
} else {
callback(key, key, entireSet);
}
});
}
});
defineProperty(SetShim, 'keys', SetShim.values, true);
addIterator(SetShim.prototype, function () { return this.values(); });
return SetShim;
})()
};
defineProperties(globals, collectionShims);
if (globals.Map || globals.Set) {
/*
- In Firefox < 23, Map#size is a function.
- In all current Firefox, Set#entries/keys/values & Map#clear do not exist
- https://bugzilla.mozilla.org/show_bug.cgi?id=869996
- In Firefox 24, Map and Set do not implement forEach
- In Firefox 25 at least, Map and Set are callable without "new"
*/
if (
typeof globals.Map.prototype.clear !== 'function' ||
new globals.Set().size !== 0 ||
new globals.Map().size !== 0 ||
typeof globals.Map.prototype.keys !== 'function' ||
typeof globals.Set.prototype.keys !== 'function' ||
typeof globals.Map.prototype.forEach !== 'function' ||
typeof globals.Set.prototype.forEach !== 'function' ||
isCallableWithoutNew(globals.Map) ||
isCallableWithoutNew(globals.Set) ||
!supportsSubclassing(globals.Map, function (M) {
var m = new M([]);
// Firefox 32 is ok with the instantiating the subclass but will
// throw when the map is used.
m.set(42, 42);
return m instanceof M;
})
) {
globals.Map = collectionShims.Map;
globals.Set = collectionShims.Set;
}
}
if (globals.Set.prototype.keys !== globals.Set.prototype.values) {
defineProperty(globals.Set.prototype, 'keys', globals.Set.prototype.values, true);
}
// Shim incomplete iterator implementations.
addIterator(Object.getPrototypeOf((new globals.Map()).keys()));
addIterator(Object.getPrototypeOf((new globals.Set()).keys()));
}
return globals;
}));
|
src/components/auth/require_auth.js
|
SRosenshein/react-auth-client
|
import React, { Component } from 'react';
import { connect } from 'react-redux';
export default function(ComposedComponent) {
class Authentication extends Component {
static contextTypes = {
router: React.PropTypes.object
}
componentWillMount() {
if (!this.props.authenticated) {
this.context.router.push('/');
}
}
componentWillUpdate(nextProps) {
if (!nextProps.authenticated) {
this.context.router.push('/');
}
}
render() {
return <ComposedComponent {...this.props} />
}
}
function mapStateToProps(state) {
return { authenticated: state.auth.authenticated };
}
return connect(mapStateToProps)(Authentication);
}
|
frontend/test/components/dashboard/overdue-projects/OverdueProjects.spec.js
|
leapfrogtechnology/vyaguta-resource
|
import React from 'react';
import expect from 'expect';
import {shallow, mount} from 'enzyme';
//components
import OverdueProjects from '../../../../src/js/components/dashboard/overdue-projects/OverdueProjects';
import OverdueProjectRow from '../../../../src/js/components/dashboard/overdue-projects/OverdueProjectRow';
function setup() {
var props = {
overdueProjects: [{foo: 'bar', id: 1}, {foo: 'bar2', id: 2}]
}
var component = mount(<OverdueProjects {...props}/>);
return {
component: component,
props: props
}
}
describe('OverdueProjects component', () => {
describe('renderProject', () => {
it('returns correct component', () => {
var {component, props} = setup();
var actual = component.instance().renderOverdueProject(0);
var expected = <OverdueProjectRow key="0" overdueProject={props.overdueProjects[0]}/>;
expect(actual).toEqual(expected);
});
it('renders all overdue projects', () => {
var {component, props} = setup();
var total = component.find(OverdueProjectRow).length;
expect(total).toEqual(props.overdueProjects.length);
});
it('returns no record found item if there are no records', () =>{
var component = mount(<OverdueProjects overdueProjects={[]}/>);
var output = component.find('.not-found-message');
expect(output.length).toEqual(1);
});
});
});
|
packages/accounts-base/accounts_client.js
|
johnthepink/meteor
|
/**
* @summary Constructor for the `Accounts` object on the client.
* @locus Client
* @class
* @extends AccountsCommon
* @instancename accountsClient
* @param {Object} options an object with fields:
* @param {Object} options.connection Optional DDP connection to reuse.
* @param {String} options.ddpUrl Optional URL for creating a new DDP connection.
*/
AccountsClient = class AccountsClient extends AccountsCommon {
constructor(options) {
super(options);
this._loggingIn = false;
this._loggingInDeps = new Tracker.Dependency;
this._loginServicesHandle =
this.connection.subscribe("meteor.loginServiceConfiguration");
this._pageLoadLoginCallbacks = [];
this._pageLoadLoginAttemptInfo = null;
// Defined in url_client.js.
this._initUrlMatching();
// Defined in localstorage_token.js.
this._initLocalStorage();
}
///
/// CURRENT USER
///
// @override
userId() {
return this.connection.userId();
}
// This is mostly just called within this file, but Meteor.loginWithPassword
// also uses it to make loggingIn() be true during the beginPasswordExchange
// method call too.
_setLoggingIn(x) {
if (this._loggingIn !== x) {
this._loggingIn = x;
this._loggingInDeps.changed();
}
}
/**
* @summary True if a login method (such as `Meteor.loginWithPassword`, `Meteor.loginWithFacebook`, or `Accounts.createUser`) is currently in progress. A reactive data source.
* @locus Client
*/
loggingIn() {
this._loggingInDeps.depend();
return this._loggingIn;
}
/**
* @summary Log the user out.
* @locus Client
* @param {Function} [callback] Optional callback. Called with no arguments on success, or with a single `Error` argument on failure.
*/
logout(callback) {
var self = this;
self.connection.apply('logout', [], {
wait: true
}, function (error, result) {
if (error) {
callback && callback(error);
} else {
self.makeClientLoggedOut();
callback && callback();
}
});
}
/**
* @summary Log out other clients logged in as the current user, but does not log out the client that calls this function.
* @locus Client
* @param {Function} [callback] Optional callback. Called with no arguments on success, or with a single `Error` argument on failure.
*/
logoutOtherClients(callback) {
var self = this;
// We need to make two method calls: one to replace our current token,
// and another to remove all tokens except the current one. We want to
// call these two methods one after the other, without any other
// methods running between them. For example, we don't want `logout`
// to be called in between our two method calls (otherwise the second
// method call would return an error). Another example: we don't want
// logout to be called before the callback for `getNewToken`;
// otherwise we would momentarily log the user out and then write a
// new token to localStorage.
//
// To accomplish this, we make both calls as wait methods, and queue
// them one after the other, without spinning off the event loop in
// between. Even though we queue `removeOtherTokens` before
// `getNewToken`, we won't actually send the `removeOtherTokens` call
// until the `getNewToken` callback has finished running, because they
// are both wait methods.
self.connection.apply(
'getNewToken',
[],
{ wait: true },
function (err, result) {
if (! err) {
self._storeLoginToken(
self.userId(),
result.token,
result.tokenExpires
);
}
}
);
self.connection.apply(
'removeOtherTokens',
[],
{ wait: true },
function (err) {
callback && callback(err);
}
);
}
};
var Ap = AccountsClient.prototype;
/**
* @summary True if a login method (such as `Meteor.loginWithPassword`, `Meteor.loginWithFacebook`, or `Accounts.createUser`) is currently in progress. A reactive data source.
* @locus Client
*/
Meteor.loggingIn = function () {
return Accounts.loggingIn();
};
///
/// LOGIN METHODS
///
// Call a login method on the server.
//
// A login method is a method which on success calls `this.setUserId(id)` and
// `Accounts._setLoginToken` on the server and returns an object with fields
// 'id' (containing the user id), 'token' (containing a resume token), and
// optionally `tokenExpires`.
//
// This function takes care of:
// - Updating the Meteor.loggingIn() reactive data source
// - Calling the method in 'wait' mode
// - On success, saving the resume token to localStorage
// - On success, calling Accounts.connection.setUserId()
// - Setting up an onReconnect handler which logs in with
// the resume token
//
// Options:
// - methodName: The method to call (default 'login')
// - methodArguments: The arguments for the method
// - validateResult: If provided, will be called with the result of the
// method. If it throws, the client will not be logged in (and
// its error will be passed to the callback).
// - userCallback: Will be called with no arguments once the user is fully
// logged in, or with the error on error.
//
Ap.callLoginMethod = function (options) {
var self = this;
options = _.extend({
methodName: 'login',
methodArguments: [{}],
_suppressLoggingIn: false
}, options);
// Set defaults for callback arguments to no-op functions; make sure we
// override falsey values too.
_.each(['validateResult', 'userCallback'], function (f) {
if (!options[f])
options[f] = function () {};
});
// Prepare callbacks: user provided and onLogin/onLoginFailure hooks.
var loginCallbacks = _.once(function (error) {
if (!error) {
self._onLoginHook.each(function (callback) {
callback();
return true;
});
} else {
self._onLoginFailureHook.each(function (callback) {
callback();
return true;
});
}
options.userCallback.apply(this, arguments);
});
var reconnected = false;
// We want to set up onReconnect as soon as we get a result token back from
// the server, without having to wait for subscriptions to rerun. This is
// because if we disconnect and reconnect between getting the result and
// getting the results of subscription rerun, we WILL NOT re-send this
// method (because we never re-send methods whose results we've received)
// but we WILL call loggedInAndDataReadyCallback at "reconnect quiesce"
// time. This will lead to makeClientLoggedIn(result.id) even though we
// haven't actually sent a login method!
//
// But by making sure that we send this "resume" login in that case (and
// calling makeClientLoggedOut if it fails), we'll end up with an accurate
// client-side userId. (It's important that livedata_connection guarantees
// that the "reconnect quiesce"-time call to loggedInAndDataReadyCallback
// will occur before the callback from the resume login call.)
var onResultReceived = function (err, result) {
if (err || !result || !result.token) {
// Leave onReconnect alone if there was an error, so that if the user was
// already logged in they will still get logged in on reconnect.
// See issue #4970.
} else {
self.connection.onReconnect = function () {
reconnected = true;
// If our token was updated in storage, use the latest one.
var storedToken = self._storedLoginToken();
if (storedToken) {
result = {
token: storedToken,
tokenExpires: self._storedLoginTokenExpires()
};
}
if (! result.tokenExpires)
result.tokenExpires = self._tokenExpiration(new Date());
if (self._tokenExpiresSoon(result.tokenExpires)) {
self.makeClientLoggedOut();
} else {
self.callLoginMethod({
methodArguments: [{resume: result.token}],
// Reconnect quiescence ensures that the user doesn't see an
// intermediate state before the login method finishes. So we don't
// need to show a logging-in animation.
_suppressLoggingIn: true,
userCallback: function (error) {
var storedTokenNow = self._storedLoginToken();
if (error) {
// If we had a login error AND the current stored token is the
// one that we tried to log in with, then declare ourselves
// logged out. If there's a token in storage but it's not the
// token that we tried to log in with, we don't know anything
// about whether that token is valid or not, so do nothing. The
// periodic localStorage poll will decide if we are logged in or
// out with this token, if it hasn't already. Of course, even
// with this check, another tab could insert a new valid token
// immediately before we clear localStorage here, which would
// lead to both tabs being logged out, but by checking the token
// in storage right now we hope to make that unlikely to happen.
//
// If there is no token in storage right now, we don't have to
// do anything; whatever code removed the token from storage was
// responsible for calling `makeClientLoggedOut()`, or the
// periodic localStorage poll will call `makeClientLoggedOut`
// eventually if another tab wiped the token from storage.
if (storedTokenNow && storedTokenNow === result.token) {
self.makeClientLoggedOut();
}
}
// Possibly a weird callback to call, but better than nothing if
// there is a reconnect between "login result received" and "data
// ready".
loginCallbacks(error);
}});
}
};
}
};
// This callback is called once the local cache of the current-user
// subscription (and all subscriptions, in fact) are guaranteed to be up to
// date.
var loggedInAndDataReadyCallback = function (error, result) {
// If the login method returns its result but the connection is lost
// before the data is in the local cache, it'll set an onReconnect (see
// above). The onReconnect will try to log in using the token, and *it*
// will call userCallback via its own version of this
// loggedInAndDataReadyCallback. So we don't have to do anything here.
if (reconnected)
return;
// Note that we need to call this even if _suppressLoggingIn is true,
// because it could be matching a _setLoggingIn(true) from a
// half-completed pre-reconnect login method.
self._setLoggingIn(false);
if (error || !result) {
error = error || new Error(
"No result from call to " + options.methodName);
loginCallbacks(error);
return;
}
try {
options.validateResult(result);
} catch (e) {
loginCallbacks(e);
return;
}
// Make the client logged in. (The user data should already be loaded!)
self.makeClientLoggedIn(result.id, result.token, result.tokenExpires);
loginCallbacks();
};
if (!options._suppressLoggingIn)
self._setLoggingIn(true);
self.connection.apply(
options.methodName,
options.methodArguments,
{wait: true, onResultReceived: onResultReceived},
loggedInAndDataReadyCallback);
};
Ap.makeClientLoggedOut = function () {
this._unstoreLoginToken();
this.connection.setUserId(null);
this.connection.onReconnect = null;
};
Ap.makeClientLoggedIn = function (userId, token, tokenExpires) {
this._storeLoginToken(userId, token, tokenExpires);
this.connection.setUserId(userId);
};
/**
* @summary Log the user out.
* @locus Client
* @param {Function} [callback] Optional callback. Called with no arguments on success, or with a single `Error` argument on failure.
*/
Meteor.logout = function (callback) {
return Accounts.logout(callback);
};
/**
* @summary Log out other clients logged in as the current user, but does not log out the client that calls this function.
* @locus Client
* @param {Function} [callback] Optional callback. Called with no arguments on success, or with a single `Error` argument on failure.
*/
Meteor.logoutOtherClients = function (callback) {
return Accounts.logoutOtherClients(callback);
};
///
/// LOGIN SERVICES
///
// A reactive function returning whether the loginServiceConfiguration
// subscription is ready. Used by accounts-ui to hide the login button
// until we have all the configuration loaded
//
Ap.loginServicesConfigured = function () {
return this._loginServicesHandle.ready();
};
// Some login services such as the redirect login flow or the resume
// login handler can log the user in at page load time. The
// Meteor.loginWithX functions have a callback argument, but the
// callback function instance won't be in memory any longer if the
// page was reloaded. The `onPageLoadLogin` function allows a
// callback to be registered for the case where the login was
// initiated in a previous VM, and we now have the result of the login
// attempt in a new VM.
// Register a callback to be called if we have information about a
// login attempt at page load time. Call the callback immediately if
// we already have the page load login attempt info, otherwise stash
// the callback to be called if and when we do get the attempt info.
//
Ap.onPageLoadLogin = function (f) {
if (this._pageLoadLoginAttemptInfo) {
f(this._pageLoadLoginAttemptInfo);
} else {
this._pageLoadLoginCallbacks.push(f);
}
};
// Receive the information about the login attempt at page load time.
// Call registered callbacks, and also record the info in case
// someone's callback hasn't been registered yet.
//
Ap._pageLoadLogin = function (attemptInfo) {
if (this._pageLoadLoginAttemptInfo) {
Meteor._debug("Ignoring unexpected duplicate page load login attempt info");
return;
}
_.each(this._pageLoadLoginCallbacks, function (callback) {
callback(attemptInfo);
});
this._pageLoadLoginCallbacks = [];
this._pageLoadLoginAttemptInfo = attemptInfo;
};
///
/// HANDLEBARS HELPERS
///
// If our app has a Blaze, register the {{currentUser}} and {{loggingIn}}
// global helpers.
if (Package.blaze) {
/**
* @global
* @name currentUser
* @isHelper true
* @summary Calls [Meteor.user()](#meteor_user). Use `{{#if currentUser}}` to check whether the user is logged in.
*/
Package.blaze.Blaze.Template.registerHelper('currentUser', function () {
return Meteor.user();
});
/**
* @global
* @name loggingIn
* @isHelper true
* @summary Calls [Meteor.loggingIn()](#meteor_loggingin).
*/
Package.blaze.Blaze.Template.registerHelper('loggingIn', function () {
return Meteor.loggingIn();
});
}
|
test/components/Price/Price.js
|
bluetidepro/react-styleguidist
|
import React from 'react';
import PropTypes from 'prop-types';
const unitSymbols = {
USD: '$',
EUR: '€',
};
/**
* Price component that renders a price and a unit.
*/
export default function Price(props) {
let Host = 'span';
if (props.emphasize) {
Host = 'em';
}
return (
<Host>
{props.value}
{!props.symbol ? props.unit : unitSymbols[props.unit]}
</Host>
);
}
Price.propTypes = {
/** Price value. */
value: PropTypes.number.isRequired,
/** Price unit */
unit: PropTypes.oneOf(['EUR', 'USD']),
/** Flag that determines if the price should be emphasized or not. */
emphasize: PropTypes.bool,
/** Defines if the unit should be shown as a symbol or not. */
symbol: PropTypes.bool.isRequired,
};
|
app/components/AddNewAgent/index.js
|
medevelopment/UMA
|
import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import * as toastify from '../../functions/Toastify';
import styled from 'styled-components';
import axios from 'axios';
import Drawer from 'material-ui/Drawer';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import Uploads from '../Uploads';
import FloatingActionButton from 'material-ui/FloatingActionButton';
import AddBtn from 'material-ui/svg-icons/content/add';
const SectionContainer = styled.div`
margin-bottom: 20px;
.col-md-10 {
border-left: solid 1px #eaebec;
padding-left: 35px;
margin-bottom: 50px;
}
p {
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.col-md-2 {
padding: 0px;
}
h2 {
font-family: Georgia;
font-size: 18px;
font-style: italic;
font-weight: bold;
border-bottom: 1px #ccc solid;
padding-bottom: 10px;
margin: 0px;
}
`;
class AddNewAgent extends Component {
constructor(props) {
super(props);
this.state = {
open: false,
name: '',
image: '',
title: '',
description: '',
};
this.setNewValueToState = this.setNewValueToState.bind(this);
}
handleToggle = () => this.setState({ open: !this.state.open });
handleClose = () => this.setState({ open: false });
go(id) {
browserHistory.push("/agent/" + id);
}
renderSectionHaeder() {
return (
<div>
<h4><FloatingActionButton onClick={this.handleToggle.bind(this)} mini={true} className="addEditBtn" >
<AddBtn />
</FloatingActionButton>
</h4>
</div>
);
}
renderSection() {
return (
<Drawer
containerClassName="darwerElementStyle"
docked={false}
openSecondary={true}
width={'60%'}
open={this.state.open}
onRequestChange={(open) => this.setState({ open })}
>
<div>
{this.renderEmptyProperty()}
</div>
</Drawer>
);
}
render() {
return (
<div>
{this.renderSectionHaeder()}
{this.renderSection()}
</div>
);
}
setNewValueToState(event) {
switch (event.target.id) {
case 'name':
this.setState({ name: event.target.value });
break;
case 'image':
this.setState({ image: event.target.value });
break;
case 'title':
this.setState({ title: event.target.value });
break;
case 'description':
this.setState({ description: event.target.value });
break;
}
}
renderEmptyProperty() {
return (
// <div className="card-block col-md-10">
<div className="col-md-12 drawer-wrap" >
<p className="darwerElementHeader"><b> ADD NEW AGENT </b> </p>
<div className="col-md-12 editArea">
<div className="col-md-5">
Name:
</div>
<div className="col-md-7">
<TextField
id={'name'}
onChange={this.setNewValueToState}
fullWidth={true}
/>
</div>
<div className="col-md-5">
Title:
</div>
<div className="col-md-7">
<TextField
id={'title'}
onChange={this.setNewValueToState}
fullWidth={true}
/>
</div>
<div className="col-md-5">
Description:
</div>
<div className="col-md-7">
<TextField
id={'description'}
onChange={this.setNewValueToState}
fullWidth={true}
multiLine={true}
rows={3}
/>
</div>
{/* <div className="col-md-5">
Image:
</div>
<div className="col-md-7">
<TextField
id={'image'}
onChange={this.setNewValueToState}
fullWidth={true}
/>
</div> */}
<div className="updateSectionsBtnsGroup">
<RaisedButton className="updateSectionsBtn" label="Cancel" onClick={this.handleClose.bind(this)} />
<RaisedButton className="updateSectionsBtn" label="Save" primary={true} onTouchTap={this.handleToggle} onClick={this.insertNewObj.bind(this)} />
</div>
</div>
</div>
)
}
insertNewObj() {
axios({
method: 'post',
url: 'http://54.190.49.213/index.php/api/agents/addAgent',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
data: {
name: this.state.name,
image: this.state.image,
title: this.state.title,
description: this.state.description,
}
}).then((res) => {
toastify.notifySuccess(toastify.messages.updateSuccess);
this.setState({ open: false });
this.go(res.data);
})
.catch(function (error) {
toastify.notifyErorr(toastify.messages.updateError);
});
}
}
export default AddNewAgent;
|
ajax/libs/6to5/3.0.6/browser.js
|
andrepiske/cdnjs
|
!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.to5=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){(function(global){"use strict";var transform=module.exports=require("./transformation/transform");transform.version=require("../../package").version;transform.transform=transform;transform.run=function(code,opts){opts=opts||{};opts.sourceMap="inline";return new Function(transform(code,opts).code)()};transform.load=function(url,callback,opts,hold){opts=opts||{};opts.filename=opts.filename||url;var xhr=global.ActiveXObject?new global.ActiveXObject("Microsoft.XMLHTTP"):new global.XMLHttpRequest;xhr.open("GET",url,true);if("overrideMimeType"in xhr)xhr.overrideMimeType("text/plain");xhr.onreadystatechange=function(){if(xhr.readyState!==4)return;var status=xhr.status;if(status===0||status===200){var param=[xhr.responseText,opts];if(!hold)transform.run.apply(transform,param);if(callback)callback(param)}else{throw new Error("Could not load "+url)}};xhr.send(null)};var runScripts=function(){var scripts=[];var types=["text/ecmascript-6","text/6to5","module"];var index=0;var exec=function(){var param=scripts[index];if(param instanceof Array){transform.run.apply(transform,param);index++;exec()}};var run=function(script,i){var opts={};if(script.src){transform.load(script.src,function(param){scripts[i]=param;exec()},opts,true)}else{opts.filename="embedded";scripts[i]=[script.innerHTML,opts]}};var _scripts=global.document.getElementsByTagName("script");for(var i=0;i<_scripts.length;++i){var _script=_scripts[i];if(types.indexOf(_script.type)>=0)scripts.push(_script)}for(i in scripts){run(scripts[i],i)}exec()};if(global.addEventListener){global.addEventListener("DOMContentLoaded",runScripts,false)}else if(global.attachEvent){global.attachEvent("onload",runScripts)}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"../../package":193,"./transformation/transform":47}],2:[function(require,module,exports){"use strict";module.exports=File;var SHEBANG_REGEX=/^\#\!.*/;var transform=require("./transformation/transform");var generate=require("./generation/generator");var clone=require("./helpers/clone");var Scope=require("./traverse/scope");var util=require("./util");var t=require("./types");var _=require("lodash");function File(opts){this.dynamicImportIds={};this.dynamicImported=[];this.dynamicImports=[];this.dynamicData={};this.data={};this.lastStatements=[];this.opts=File.normaliseOptions(opts);this.ast={};this.buildTransformers()}File.helpers=["inherits","defaults","prototype-properties","apply-constructor","tagged-template-literal","tagged-template-literal-loose","interop-require","to-array","sliced-to-array","object-without-properties","has-own","slice","bind","define-property","async-to-generator","interop-require-wildcard","typeof","extends","get"];File.validOptions=["filename","filenameRelative","blacklist","whitelist","loose","optional","modules","sourceMap","sourceMapName","sourceFileName","sourceRoot","moduleRoot","moduleIds","comments","reactCompat","keepModuleIdExtensions","code","ast","format","playground","experimental","ignore","only","extensions"];File.normaliseOptions=function(opts){opts=clone(opts);for(var key in opts){if(key[0]!=="_"&&File.validOptions.indexOf(key)<0){throw new ReferenceError("Unknown option: "+key)}}_.defaults(opts,{keepModuleIdExtensions:false,experimental:false,reactCompat:false,playground:false,whitespace:true,moduleIds:false,blacklist:[],whitelist:[],sourceMap:false,optional:[],comments:true,filename:"unknown",modules:"common",loose:[],code:true,ast:true});opts.filename=opts.filename.replace(/\\/g,"/");opts.blacklist=util.arrayify(opts.blacklist);opts.whitelist=util.arrayify(opts.whitelist);opts.optional=util.arrayify(opts.optional);opts.loose=util.arrayify(opts.loose);if(_.contains(opts.loose,"all")){opts.loose=Object.keys(transform.transformers)}_.defaults(opts,{moduleRoot:opts.sourceRoot});_.defaults(opts,{sourceRoot:opts.moduleRoot});_.defaults(opts,{filenameRelative:opts.filename});_.defaults(opts,{sourceFileName:opts.filenameRelative,sourceMapName:opts.filenameRelative});if(opts.playground){opts.experimental=true}opts.blacklist=transform._ensureTransformerNames("blacklist",opts.blacklist);opts.whitelist=transform._ensureTransformerNames("whitelist",opts.whitelist);opts.optional=transform._ensureTransformerNames("optional",opts.optional);opts.loose=transform._ensureTransformerNames("loose",opts.loose);return opts};File.prototype.isLoose=function(key){return _.contains(this.opts.loose,key)};File.prototype.buildTransformers=function(){var file=this;var transformers={};var secondaryStack=[];var stack=[];_.each(transform.transformers,function(transformer,key){var pass=transformers[key]=transformer.buildPass(file);if(pass.canRun(file)){stack.push(pass);if(transformer.secondPass){secondaryStack.push(pass)}if(transformer.manipulateOptions){transformer.manipulateOptions(file.opts,file)}}});this.transformerStack=stack.concat(secondaryStack);this.transformers=transformers};File.prototype.toArray=function(node,i){if(t.isArrayExpression(node)){return node}else if(t.isIdentifier(node)&&node.name==="arguments"){return t.callExpression(t.memberExpression(this.addHelper("slice"),t.identifier("call")),[node])}else{var declarationName="to-array";var args=[node];if(i){args.push(t.literal(i));declarationName="sliced-to-array"}return t.callExpression(this.addHelper(declarationName),args)}};File.prototype.getModuleFormatter=function(type){var ModuleFormatter=_.isFunction(type)?type:transform.moduleFormatters[type];if(!ModuleFormatter){var loc=util.resolve(type);if(loc)ModuleFormatter=require(loc)}if(!ModuleFormatter){throw new ReferenceError("Unknown module formatter type "+JSON.stringify(type))}return new ModuleFormatter(this)};File.prototype.parseShebang=function(code){var shebangMatch=code.match(SHEBANG_REGEX);if(shebangMatch){this.shebang=shebangMatch[0];code=code.replace(SHEBANG_REGEX,"")}return code};File.prototype.set=function(key,val){return this.data[key]=val};File.prototype.setDynamic=function(key,fn){this.dynamicData[key]=fn};File.prototype.get=function(key){var data=this.data[key];if(data){return data}else{var dynamic=this.dynamicData[key];if(dynamic){return this.set(key,dynamic())}}};File.prototype.addImport=function(source,name){name=name||source;var id=this.dynamicImportIds[name];if(!id){id=this.dynamicImportIds[name]=this.generateUidIdentifier(name);var specifiers=[t.importSpecifier(t.identifier("default"),id)];var declar=t.importDeclaration(specifiers,t.literal(source));declar._blockHoist=3;this.dynamicImported.push(declar);this.moduleFormatter.importSpecifier(specifiers[0],declar,this.dynamicImports)}return id};File.prototype.isConsequenceExpressionStatement=function(node){return t.isExpressionStatement(node)&&this.lastStatements.indexOf(node)>=0};File.prototype.addHelper=function(name){if(!_.contains(File.helpers,name)){throw new ReferenceError("unknown declaration "+name)}var program=this.ast.program;var declar=program._declarations&&program._declarations[name];if(declar)return declar.id;var runtime=this.get("runtimeIdentifier");if(runtime){name=t.identifier(t.toIdentifier(name));return t.memberExpression(runtime,name)}else{var ref=util.template(name);ref._compact=true;var uid=this.generateUidIdentifier(name);this.scope.push({key:name,id:uid,init:ref});return uid}};File.prototype.errorWithNode=function(node,msg,Error){Error=Error||SyntaxError;var loc=node.loc.start;var err=new Error("Line "+loc.line+": "+msg);err.loc=loc;return err};File.prototype.addCode=function(code){code=(code||"")+"";this.code=code;return this.parseShebang(code)};File.prototype.parse=function(code){var self=this;code=this.addCode(code);var opts=this.opts;opts.allowImportExportEverywhere=this.isLoose("modules");return util.parse(opts,code,function(tree){self.transform(tree);return self.generate()})};File.prototype.transform=function(ast){var self=this;this.ast=ast;this.lastStatements=t.getLastStatements(ast.program);this.scope=new Scope(ast.program,null,this);this.moduleFormatter=this.getModuleFormatter(this.opts.modules);var astRun=function(key){_.each(self.transformerStack,function(pass){pass.astRun(key)})};astRun("enter");_.each(this.transformerStack,function(pass){pass.transform()});astRun("exit")};File.prototype.generate=function(){var opts=this.opts;var ast=this.ast;var result={code:"",map:null,ast:null};if(opts.ast)result.ast=ast;if(!opts.code)return result;var _result=generate(ast,opts,this.code);result.code=_result.code;result.map=_result.map;if(this.shebang){result.code=this.shebang+"\n"+result.code}if(opts.sourceMap==="inline"){result.code+="\n"+util.sourceMapToComment(result.map)}return result};File.prototype.generateUid=function(name,scope){name=t.toIdentifier(name).replace(/^_+/,"");scope=scope||this.scope;var uid;var i=0;do{uid=this._generateUid(name,i);i++}while(scope.has(uid));return uid};File.prototype.generateUidIdentifier=function(name,scope){scope=scope||this.scope;var id=t.identifier(this.generateUid(name,scope));scope.add(id);return id};File.prototype._generateUid=function(name,i){var id=name;if(i>1)id+=i;return"_"+id}},{"./generation/generator":4,"./helpers/clone":23,"./transformation/transform":47,"./traverse/scope":98,"./types":101,"./util":104,lodash:164}],3:[function(require,module,exports){"use strict";module.exports=Buffer;var util=require("../util");var _=require("lodash");function Buffer(position,format){this.position=position;this._indent=format.indent.base;this.format=format;this.buf=""}Buffer.prototype.get=function(){return util.trimRight(this.buf)};Buffer.prototype.getIndent=function(){if(this.format.compact){return""}else{return util.repeat(this._indent,this.format.indent.style)}};Buffer.prototype.indentSize=function(){return this.getIndent().length};Buffer.prototype.indent=function(){this._indent++};Buffer.prototype.dedent=function(){this._indent--};Buffer.prototype.semicolon=function(){this.push(";")};Buffer.prototype.ensureSemicolon=function(){if(!this.isLast(";"))this.semicolon()};Buffer.prototype.rightBrace=function(){this.newline(true);this.push("}")};Buffer.prototype.keyword=function(name){this.push(name);this.push(" ")};Buffer.prototype.space=function(){if(this.buf&&!this.isLast([" ","\n"])){this.push(" ")}};Buffer.prototype.removeLast=function(cha){if(!this.isLast(cha))return;this.buf=this.buf.substr(0,this.buf.length-1);this.position.unshift(cha)};Buffer.prototype.newline=function(i,removeLast){if(this.format.compact){this.space();return}removeLast=removeLast||false;if(_.isNumber(i)){if(this.endsWith("{\n"))i--;if(this.endsWith(util.repeat(i,"\n")))return;while(i--){this._newline(removeLast)}return}if(_.isBoolean(i)){removeLast=i}this._newline(removeLast)};Buffer.prototype._newline=function(removeLast){if(removeLast&&this.isLast("\n"))this.removeLast("\n");this.removeLast(" ");this._removeSpacesAfterLastNewline();this._push("\n")};Buffer.prototype._removeSpacesAfterLastNewline=function(){var lastNewlineIndex=this.buf.lastIndexOf("\n");if(lastNewlineIndex===-1)return;var index=this.buf.length-1;while(index>lastNewlineIndex){if(this.buf[index]!==" "){break}index--}if(index===lastNewlineIndex){this.buf=this.buf.substring(0,index+1)}};Buffer.prototype.push=function(str,noIndent){if(this._indent&&!noIndent&&str!=="\n"){var indent=this.getIndent();str=str.replace(/\n/g,"\n"+indent);if(this.isLast("\n"))str=indent+str}this._push(str)};Buffer.prototype._push=function(str){this.position.push(str);this.buf+=str};Buffer.prototype.endsWith=function(str){var d=this.buf.length-str.length;return d>=0&&this.buf.lastIndexOf(str)===d};Buffer.prototype.isLast=function(cha,trimRight){var buf=this.buf;if(trimRight)buf=util.trimRight(buf);var last=buf[buf.length-1];if(Array.isArray(cha)){return _.contains(cha,last)}else{return cha===last}}},{"../util":104,lodash:164}],4:[function(require,module,exports){"use strict";module.exports=function(ast,opts,code){var gen=new CodeGenerator(ast,opts,code);return gen.generate()};module.exports.CodeGenerator=CodeGenerator;var detectIndent=require("detect-indent");var Whitespace=require("./whitespace");var SourceMap=require("./source-map");var Position=require("./position");var Buffer=require("./buffer");var util=require("../util");var n=require("./node");var t=require("../types");var _=require("lodash");function CodeGenerator(ast,opts,code){opts=opts||{};this.comments=ast.comments||[];this.tokens=ast.tokens||[];this.format=CodeGenerator.normaliseOptions(code,opts);this.ast=ast;this.whitespace=new Whitespace(this.tokens,this.comments);this.position=new Position;this.map=new SourceMap(this.position,opts,code);this.buffer=new Buffer(this.position,this.format)}_.each(Buffer.prototype,function(fn,key){CodeGenerator.prototype[key]=function(){return fn.apply(this.buffer,arguments)}});CodeGenerator.normaliseOptions=function(code,opts){var indent=detectIndent(code);var style=indent.indent;if(!style||style===" ")style=" ";return _.merge({parentheses:true,comments:opts.comments==null||opts.comments,compact:false,indent:{adjustMultilineComment:true,style:style,base:0}},opts.format||{})};CodeGenerator.generators={templateLiterals:require("./generators/template-literals"),comprehensions:require("./generators/comprehensions"),expressions:require("./generators/expressions"),statements:require("./generators/statements"),playground:require("./generators/playground"),classes:require("./generators/classes"),methods:require("./generators/methods"),modules:require("./generators/modules"),types:require("./generators/types"),flow:require("./generators/flow"),base:require("./generators/base"),jsx:require("./generators/jsx")};_.each(CodeGenerator.generators,function(generator){_.extend(CodeGenerator.prototype,generator)});CodeGenerator.prototype.generate=function(){var ast=this.ast;this.print(ast);var comments=[];_.each(ast.comments,function(comment){if(!comment._displayed)comments.push(comment)});this._printComments(comments);return{map:this.map.get(),code:this.buffer.get()}};CodeGenerator.prototype.buildPrint=function(parent){var self=this;var print=function(node,opts){return self.print(node,parent,opts)};print.sequence=function(nodes,opts){opts=opts||{};opts.statement=true;return self.printJoin(print,nodes,opts)};print.join=function(nodes,opts){return self.printJoin(print,nodes,opts)};print.block=function(node){return self.printBlock(print,node)};print.indentOnComments=function(node){return self.printAndIndentOnComments(print,node)};return print};CodeGenerator.prototype.print=function(node,parent,opts){if(!node)return"";if(parent&&parent._compact){node._compact=true}var oldCompact=this.format.compact;if(node._compact){this.format.compact=true}var self=this;opts=opts||{};var newline=function(leading){if(!opts.statement&&!n.isUserWhitespacable(node,parent)){return}var lines=0;if(node.start!=null&&!node._ignoreUserWhitespace){if(leading){lines=self.whitespace.getNewlinesBefore(node)}else{lines=self.whitespace.getNewlinesAfter(node)}}else{if(!leading)lines++;var needs=n.needsWhitespaceAfter;if(leading)needs=n.needsWhitespaceBefore;lines+=needs(node,parent);if(!self.buffer.get())lines=0}self.newline(lines)};if(this[node.type]){var needsNoLineTermParens=n.needsParensNoLineTerminator(node,parent);var needsParens=needsNoLineTermParens||n.needsParens(node,parent);if(needsParens)this.push("(");if(needsNoLineTermParens)this.indent();this.printLeadingComments(node,parent);newline(true);if(opts.before)opts.before();this.map.mark(node,"start");this[node.type](node,this.buildPrint(node),parent);if(needsNoLineTermParens){this.newline();this.dedent()}if(needsParens)this.push(")");this.map.mark(node,"end");if(opts.after)opts.after();newline(false);this.printTrailingComments(node,parent)}else{throw new ReferenceError("unknown node of type "+JSON.stringify(node.type)+" with constructor "+JSON.stringify(node&&node.constructor.name))}this.format.compact=oldCompact};CodeGenerator.prototype.printJoin=function(print,nodes,opts){if(!nodes||!nodes.length)return;opts=opts||{};var self=this;var len=nodes.length;if(opts.indent)self.indent();_.each(nodes,function(node,i){print(node,{statement:opts.statement,after:function(){if(opts.iterator){opts.iterator(node,i)}if(opts.separator&&i<len-1){self.push(opts.separator)}}})});if(opts.indent)self.dedent()};CodeGenerator.prototype.printAndIndentOnComments=function(print,node){var indent=!!node.leadingComments;if(indent)this.indent();print(node);if(indent)this.dedent()};CodeGenerator.prototype.printBlock=function(print,node){if(t.isEmptyStatement(node)){this.semicolon()}else{this.push(" ");print(node)}};CodeGenerator.prototype.generateComment=function(comment){var val=comment.value;if(comment.type==="Line"){val="//"+val}else{val="/*"+val+"*/"}return val};CodeGenerator.prototype.printTrailingComments=function(node,parent){this._printComments(this.getComments("trailingComments",node,parent))};CodeGenerator.prototype.printLeadingComments=function(node,parent){this._printComments(this.getComments("leadingComments",node,parent))};CodeGenerator.prototype.getComments=function(key,node,parent){if(t.isExpressionStatement(parent)){return[]}var comments=[];var nodes=[node];var self=this;if(t.isExpressionStatement(node)){nodes.push(node.argument)}_.each(nodes,function(node){comments=comments.concat(self._getComments(key,node))});return comments};CodeGenerator.prototype._getComments=function(key,node){return node&&node[key]||[]};CodeGenerator.prototype._printComments=function(comments){if(this.format.compact)return;if(!this.format.comments)return;if(!comments||!comments.length)return;var self=this;_.each(comments,function(comment){var skip=false;_.each(self.ast.comments,function(origComment){if(origComment.start===comment.start){if(origComment._displayed)skip=true;origComment._displayed=true;return false}});if(skip)return;self.newline(self.whitespace.getNewlinesBefore(comment));var column=self.position.column;var val=self.generateComment(comment);if(column&&!self.isLast(["\n"," ","[","{"])){self._push(" ");column++}if(comment.type==="Block"&&self.format.indent.adjustMultilineComment){var offset=comment.loc.start.column;if(offset){var newlineRegex=new RegExp("\\n\\s{1,"+offset+"}","g");val=val.replace(newlineRegex,"\n")}var indent=Math.max(self.indentSize(),column);val=val.replace(/\n/g,"\n"+util.repeat(indent))}if(column===0){val=self.getIndent()+val}self._push(val);self.newline(self.whitespace.getNewlinesAfter(comment))})}},{"../types":101,"../util":104,"./buffer":3,"./generators/base":5,"./generators/classes":6,"./generators/comprehensions":7,"./generators/expressions":8,"./generators/flow":9,"./generators/jsx":10,"./generators/methods":11,"./generators/modules":12,"./generators/playground":13,"./generators/statements":14,"./generators/template-literals":15,"./generators/types":16,"./node":17,"./position":20,"./source-map":21,"./whitespace":22,"detect-indent":155,lodash:164}],5:[function(require,module,exports){"use strict";exports.File=function(node,print){print(node.program)};exports.Program=function(node,print){print.sequence(node.body)};exports.BlockStatement=function(node,print){if(node.body.length===0){this.push("{}")}else{this.push("{");this.newline();print.sequence(node.body,{indent:true});this.removeLast("\n");this.rightBrace()}}},{}],6:[function(require,module,exports){"use strict";exports.ClassExpression=exports.ClassDeclaration=function(node,print){this.push("class");if(node.id){this.space();print(node.id)}if(node.superClass){this.push(" extends ");print(node.superClass)}this.space();print(node.body)};exports.ClassBody=function(node,print){if(node.body.length===0){this.push("{}")}else{this.push("{");this.newline();this.indent();print.sequence(node.body);this.dedent();this.rightBrace()}};exports.MethodDefinition=function(node,print){if(node.static){this.push("static ")}this._method(node,print)}},{}],7:[function(require,module,exports){"use strict";exports.ComprehensionBlock=function(node,print){this.keyword("for");this.push("(");print(node.left);this.push(" of ");print(node.right);this.push(")")};exports.ComprehensionExpression=function(node,print){this.push(node.generator?"(":"[");print.join(node.blocks,{separator:" "});this.space();if(node.filter){this.keyword("if");this.push("(");print(node.filter);this.push(")");this.space()}print(node.body);this.push(node.generator?")":"]")}},{}],8:[function(require,module,exports){"use strict";var util=require("../../util");var t=require("../../types");var _=require("lodash");exports.UnaryExpression=function(node,print){var hasSpace=/[a-z]$/.test(node.operator);var arg=node.argument;if(t.isUpdateExpression(arg)||t.isUnaryExpression(arg)){hasSpace=true}if(t.isUnaryExpression(arg)&&arg.operator==="!"){hasSpace=false}this.push(node.operator);if(hasSpace)this.space();print(node.argument)};exports.UpdateExpression=function(node,print){if(node.prefix){this.push(node.operator);print(node.argument)}else{print(node.argument);this.push(node.operator)}};exports.ConditionalExpression=function(node,print){print(node.test);this.push(" ? ");print(node.consequent);this.push(" : ");print(node.alternate)};exports.NewExpression=function(node,print){this.push("new ");print(node.callee);if(node.arguments.length||this.format.parentheses){this.push("(");print.join(node.arguments,{separator:", "});this.push(")")}};exports.SequenceExpression=function(node,print){print.join(node.expressions,{separator:", "})};exports.ThisExpression=function(){this.push("this")};exports.CallExpression=function(node,print){print(node.callee);this.push("(");var separator=",";if(node._prettyCall){separator+="\n";this.newline();this.indent()}else{separator+=" "}print.join(node.arguments,{separator:separator});if(node._prettyCall){this.newline();this.dedent()}this.push(")")};var buildYieldAwait=function(keyword){return function(node,print){this.push(keyword);if(node.delegate)this.push("*");if(node.argument){this.space();print(node.argument)}}};exports.YieldExpression=buildYieldAwait("yield");exports.AwaitExpression=buildYieldAwait("await");exports.EmptyStatement=function(){this.semicolon()};exports.ExpressionStatement=function(node,print){print(node.expression);this.semicolon()};exports.BinaryExpression=exports.LogicalExpression=exports.AssignmentPattern=exports.AssignmentExpression=function(node,print){print(node.left);this.space();this.push(node.operator);this.space();print(node.right)};var SCIENTIFIC_NOTATION=/e/i;exports.MemberExpression=function(node,print){var obj=node.object;print(obj);if(!node.computed&&t.isMemberExpression(node.property)){throw new TypeError("Got a MemberExpression for MemberExpression property")}var computed=node.computed;if(t.isLiteral(node.property)&&_.isNumber(node.property.value)){computed=true}if(computed){this.push("[");print(node.property);this.push("]")}else{if(t.isLiteral(obj)&&util.isInteger(obj.value)&&!SCIENTIFIC_NOTATION.test(obj.value.toString())){this.push(".")}this.push(".");print(node.property)}}},{"../../types":101,"../../util":104,lodash:164}],9:[function(require,module,exports){"use strict";exports.AnyTypeAnnotation=exports.ArrayTypeAnnotation=exports.BooleanTypeAnnotation=exports.ClassProperty=exports.DeclareClass=exports.DeclareFunction=exports.DeclareModule=exports.DeclareVariable=exports.FunctionTypeAnnotation=exports.FunctionTypeParam=exports.GenericTypeAnnotation=exports.InterfaceExtends=exports.InterfaceDeclaration=exports.IntersectionTypeAnnotation=exports.NullableTypeAnnotation=exports.NumberTypeAnnotation=exports.StringLiteralTypeAnnotation=exports.StringTypeAnnotation=exports.TupleTypeAnnotation=exports.TypeofTypeAnnotation=exports.TypeAlias=exports.TypeAnnotation=exports.TypeParameterDeclaration=exports.TypeParameterInstantiation=exports.ObjectTypeAnnotation=exports.ObjectTypeCallProperty=exports.ObjectTypeIndexer=exports.ObjectTypeProperty=exports.QualifiedTypeIdentifier=exports.UnionTypeAnnotation=exports.VoidTypeAnnotation=function(){}},{}],10:[function(require,module,exports){"use strict";var t=require("../../types");var _=require("lodash");exports.JSXAttribute=function(node,print){print(node.name);if(node.value){this.push("=");print(node.value)}};exports.JSXIdentifier=function(node){this.push(node.name)};exports.JSXNamespacedName=function(node,print){print(node.namespace);this.push(":");print(node.name)};exports.JSXMemberExpression=function(node,print){print(node.object);this.push(".");print(node.property)};exports.JSXSpreadAttribute=function(node,print){this.push("{...");print(node.argument);this.push("}")};exports.JSXExpressionContainer=function(node,print){this.push("{");print(node.expression);this.push("}")};exports.JSXElement=function(node,print){var self=this;var open=node.openingElement;print(open);if(open.selfClosing)return;this.indent();_.each(node.children,function(child){if(t.isLiteral(child)){self.push(child.value)}else{print(child)}});this.dedent();print(node.closingElement)};exports.JSXOpeningElement=function(node,print){this.push("<");print(node.name);if(node.attributes.length>0){this.push(" ");print.join(node.attributes,{separator:" "})}this.push(node.selfClosing?" />":">")};exports.JSXClosingElement=function(node,print){this.push("</");print(node.name);this.push(">")};exports.JSXEmptyExpression=function(){}},{"../../types":101,lodash:164}],11:[function(require,module,exports){"use strict";var t=require("../../types");exports._params=function(node,print){this.push("(");print.join(node.params,{separator:", "});this.push(")")};exports._method=function(node,print){var value=node.value;var kind=node.kind;var key=node.key;if(!kind||kind==="init"){if(value.generator){this.push("*")}}else{this.push(kind+" ")}if(value.async)this.push("async ");if(node.computed){this.push("[");print(key);this.push("]")}else{print(key)}this._params(value,print);this.push(" ");print(value.body)};exports.FunctionDeclaration=exports.FunctionExpression=function(node,print){if(node.async)this.push("async ");this.push("function");if(node.generator)this.push("*");this.push(" ");if(node.id){this.space();print(node.id)}this._params(node,print);this.space();print(node.body)};exports.ArrowFunctionExpression=function(node,print){if(node.async)this.push("async ");if(node.params.length===1&&t.isIdentifier(node.params[0])){print(node.params[0])}else{this._params(node,print)}this.push(" => ");print(node.body)}},{"../../types":101}],12:[function(require,module,exports){"use strict";var t=require("../../types");var _=require("lodash");exports.ImportSpecifier=function(node,print){if(t.isSpecifierDefault(node)){print(t.getSpecifierName(node))}else{return exports.ExportSpecifier.apply(this,arguments)}};exports.ExportSpecifier=function(node,print){print(node.id);if(node.name){this.push(" as ");print(node.name)}};exports.ExportBatchSpecifier=function(){this.push("*")};exports.ExportDeclaration=function(node,print){this.push("export ");var specifiers=node.specifiers;if(node.default){this.push("default ")}if(node.declaration){print(node.declaration);if(t.isStatement(node.declaration))return}else{if(specifiers.length===1&&t.isExportBatchSpecifier(specifiers[0])){print(specifiers[0])}else{this.push("{");if(specifiers.length){this.space();print.join(specifiers,{separator:", "});this.space()}this.push("}")}if(node.source){this.push(" from ");print(node.source)}}this.ensureSemicolon()};exports.ImportDeclaration=function(node,print){var self=this;this.push("import ");var specfiers=node.specifiers;if(specfiers&&specfiers.length){var foundImportSpecifier=false;_.each(node.specifiers,function(spec,i){if(+i>0){self.push(", ")}var isDefault=t.isSpecifierDefault(spec);if(!isDefault&&spec.type!=="ImportBatchSpecifier"&&!foundImportSpecifier){foundImportSpecifier=true;self.push("{ ")}print(spec)});if(foundImportSpecifier){this.push(" }")}this.push(" from ")}print(node.source);this.semicolon()};exports.ImportBatchSpecifier=function(node,print){this.push("* as ");print(node.name)}},{"../../types":101,lodash:164}],13:[function(require,module,exports){"use strict";var _=require("lodash");_.each(["BindMemberExpression","BindFunctionExpression"],function(type){exports[type]=function(){throw new ReferenceError("Trying to render non-standard playground node "+JSON.stringify(type))}})},{lodash:164}],14:[function(require,module,exports){"use strict";var util=require("../../util");var t=require("../../types");exports.WithStatement=function(node,print){this.keyword("with");this.push("(");print(node.object);this.push(")");print.block(node.body)};exports.IfStatement=function(node,print){this.keyword("if");this.push("(");print(node.test);this.push(")");this.space();print.indentOnComments(node.consequent);if(node.alternate){if(this.isLast("}"))this.push(" ");this.keyword("else");print.indentOnComments(node.alternate)}};exports.ForStatement=function(node,print){this.keyword("for");this.push("(");print(node.init);this.push(";");if(node.test){this.push(" ");print(node.test)}this.push(";");if(node.update){this.push(" ");print(node.update)}this.push(")");print.block(node.body)};exports.WhileStatement=function(node,print){this.keyword("while");this.push("(");print(node.test);this.push(")");print.block(node.body)};var buildForXStatement=function(op){return function(node,print){this.keyword("for");this.push("(");print(node.left);this.push(" "+op+" ");print(node.right);this.push(")");print.block(node.body)}};exports.ForInStatement=buildForXStatement("in");exports.ForOfStatement=buildForXStatement("of");exports.DoWhileStatement=function(node,print){this.keyword("do");print(node.body);this.space();this.keyword("while");this.push("(");print(node.test);this.push(");")};var buildLabelStatement=function(prefix,key){return function(node,print){this.push(prefix);var label=node[key||"label"];if(label){this.push(" ");print(label)}this.semicolon()}};exports.ContinueStatement=buildLabelStatement("continue");exports.ReturnStatement=buildLabelStatement("return","argument");exports.BreakStatement=buildLabelStatement("break");exports.LabeledStatement=function(node,print){print(node.label);this.push(": ");print(node.body)};exports.TryStatement=function(node,print){this.keyword("try");print(node.block);this.space();if(node.handlers){print(node.handlers[0])}else{print(node.handler)}if(node.finalizer){this.space();this.push("finally ");print(node.finalizer)}};exports.CatchClause=function(node,print){this.keyword("catch");this.push("(");print(node.param);this.push(") ");print(node.body)};exports.ThrowStatement=function(node,print){this.push("throw ");print(node.argument);this.semicolon()};exports.SwitchStatement=function(node,print){this.keyword("switch");this.push("(");print(node.discriminant);this.push(")");this.space();this.push("{");print.sequence(node.cases,{indent:true});this.push("}")};exports.SwitchCase=function(node,print){if(node.test){this.push("case ");print(node.test);this.push(":")}else{this.push("default:")}this.newline();print.sequence(node.consequent,{indent:true})};exports.DebuggerStatement=function(){this.push("debugger;")};exports.VariableDeclaration=function(node,print,parent){this.push(node.kind+" ");var hasInits=false;if(!t.isFor(parent)){for(var i=0;i<node.declarations.length;i++){if(node.declarations[i].init){hasInits=true}}}var sep=",";if(hasInits){sep+="\n"+util.repeat(node.kind.length+1)}else{sep+=" "
}print.join(node.declarations,{separator:sep});if(!t.isFor(parent)){this.semicolon()}};exports.PrivateDeclaration=function(node,print){this.push("private ");print.join(node.declarations,{separator:", "});this.semicolon()};exports.VariableDeclarator=function(node,print){if(node.init){print(node.id);this.space();this.push("=");this.space();print(node.init)}else{print(node.id)}}},{"../../types":101,"../../util":104}],15:[function(require,module,exports){"use strict";var _=require("lodash");exports.TaggedTemplateExpression=function(node,print){print(node.tag);print(node.quasi)};exports.TemplateElement=function(node){this._push(node.value.raw)};exports.TemplateLiteral=function(node,print){this.push("`");var quasis=node.quasis;var self=this;var len=quasis.length;_.each(quasis,function(quasi,i){print(quasi);if(i+1<len){self.push("${ ");print(node.expressions[i]);self.push(" }")}});this._push("`")}},{lodash:164}],16:[function(require,module,exports){"use strict";var _=require("lodash");exports.Identifier=function(node){this.push(node.name)};exports.RestElement=exports.SpreadElement=exports.SpreadProperty=function(node,print){this.push("...");print(node.argument)};exports.VirtualPropertyExpression=function(node,print){print(node.object);this.push("::");print(node.property)};exports.ObjectExpression=exports.ObjectPattern=function(node,print){var props=node.properties;if(props.length){this.push("{");this.space();print.join(props,{separator:", ",indent:true});this.space();this.push("}")}else{this.push("{}")}};exports.Property=function(node,print){if(node.method||node.kind==="get"||node.kind==="set"){this._method(node,print)}else{if(node.computed){this.push("[");print(node.key);this.push("]")}else{print(node.key);if(node.shorthand)return}this.push(": ");print(node.value)}};exports.ArrayExpression=exports.ArrayPattern=function(node,print){var elems=node.elements;var self=this;var len=elems.length;this.push("[");_.each(elems,function(elem,i){if(!elem){self.push(",")}else{if(i>0)self.push(" ");print(elem);if(i<len-1)self.push(",")}});this.push("]")};exports.Literal=function(node){var val=node.value;var type=typeof val;if(type==="string"){val=JSON.stringify(val);val=val.replace(/[\u000A\u000D\u2028\u2029]/g,function(c){return"\\u"+("0000"+c.charCodeAt(0).toString(16)).slice(-4)});this.push(val)}else if(type==="boolean"||type==="number"){this.push(JSON.stringify(val))}else if(node.regex){this.push("/"+node.regex.pattern+"/"+node.regex.flags)}else if(val===null){this.push("null")}}},{lodash:164}],17:[function(require,module,exports){"use strict";module.exports=Node;var whitespace=require("./whitespace");var parens=require("./parentheses");var t=require("../../types");var _=require("lodash");var find=function(obj,node,parent){if(!obj)return;var result;var types=Object.keys(obj);for(var i=0;i<types.length;i++){var type=types[i];if(t.is(type,node)){var fn=obj[type];result=fn(node,parent);if(result!=null)break}}return result};function Node(node,parent){this.parent=parent;this.node=node}Node.isUserWhitespacable=function(node){return t.isUserWhitespacable(node)};Node.needsWhitespace=function(node,parent,type){if(!node)return 0;if(t.isExpressionStatement(node)){node=node.expression}var lines=find(whitespace[type].nodes,node,parent);if(lines)return lines;_.each(find(whitespace[type].list,node,parent),function(expr){lines=Node.needsWhitespace(expr,node,type);if(lines)return false});return lines||0};Node.needsWhitespaceBefore=function(node,parent){return Node.needsWhitespace(node,parent,"before")};Node.needsWhitespaceAfter=function(node,parent){return Node.needsWhitespace(node,parent,"after")};Node.needsParens=function(node,parent){if(!parent)return false;if(t.isNewExpression(parent)&&parent.callee===node){if(t.isCallExpression(node))return true;var hasCall=_.some(node,function(val){return t.isCallExpression(val)});if(hasCall)return true}return find(parens,node,parent)};Node.needsParensNoLineTerminator=function(node,parent){if(!parent)return false;if(!node.leadingComments||!node.leadingComments.length){return false}if(t.isYieldExpression(parent)||t.isAwaitExpression(parent)){return true}if(t.isContinueStatement(parent)||t.isBreakStatement(parent)||t.isReturnStatement(parent)||t.isThrowStatement(parent)){return true}return false};_.each(Node,function(fn,key){Node.prototype[key]=function(){var args=new Array(arguments.length+2);args[0]=this.node;args[1]=this.parent;for(var i=0;i<args.length;i++){args[i+2]=arguments[i]}return Node[key].apply(null,args)}})},{"../../types":101,"./parentheses":18,"./whitespace":19,lodash:164}],18:[function(require,module,exports){"use strict";var t=require("../../types");var _=require("lodash");var PRECEDENCE={};_.each([["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]],function(tier,i){_.each(tier,function(op){PRECEDENCE[op]=i})});exports.UpdateExpression=function(node,parent){if(t.isMemberExpression(parent)&&parent.object===node){return true}};exports.ObjectExpression=function(node,parent){if(t.isExpressionStatement(parent)){return true}if(t.isMemberExpression(parent)&&parent.object===node){return true}return false};exports.Binary=function(node,parent){if((t.isCallExpression(parent)||t.isNewExpression(parent))&&parent.callee===node){return true}if(t.isUnaryLike(parent)){return true}if(t.isMemberExpression(parent)&&parent.object===node){return true}if(t.isBinary(parent)){var parentOp=parent.operator;var parentPos=PRECEDENCE[parentOp];var nodeOp=node.operator;var nodePos=PRECEDENCE[nodeOp];if(parentPos>nodePos){return true}if(parentPos===nodePos&&parent.right===node){return true}}};exports.BinaryExpression=function(node,parent){if(node.operator==="in"){if(t.isVariableDeclarator(parent)){return true}if(t.isFor(parent)){return true}}};exports.SequenceExpression=function(node,parent){if(t.isForStatement(parent)){return false}if(t.isExpressionStatement(parent)&&parent.expression===node){return false}return true};exports.YieldExpression=function(node,parent){return t.isBinary(parent)||t.isUnaryLike(parent)||t.isCallExpression(parent)||t.isMemberExpression(parent)||t.isNewExpression(parent)||t.isConditionalExpression(parent)||t.isYieldExpression(parent)};exports.ClassExpression=function(node,parent){return t.isExpressionStatement(parent)};exports.UnaryLike=function(node,parent){return t.isMemberExpression(parent)&&parent.object===node};exports.FunctionExpression=function(node,parent){if(t.isExpressionStatement(parent)){return true}if(t.isMemberExpression(parent)&&parent.object===node){return true}if(t.isCallExpression(parent)&&parent.callee===node){return true}};exports.AssignmentExpression=exports.ConditionalExpression=function(node,parent){if(t.isUnaryLike(parent)){return true}if(t.isBinary(parent)){return true}if(t.isCallExpression(parent)||t.isNewExpression(parent)){if(parent.callee===node){return true}}if(t.isConditionalExpression(parent)&&parent.test===node){return true}if(t.isMemberExpression(parent)&&parent.object===node){return true}return false}},{"../../types":101,lodash:164}],19:[function(require,module,exports){"use strict";var _=require("lodash");var t=require("../../types");exports.before={nodes:{Property:function(node,parent){if(parent.properties[0]===node){return 1}},SpreadProperty:function(node,parent){return exports.before.nodes.Property(node,parent)},SwitchCase:function(node,parent){if(parent.cases[0]===node){return 1}},CallExpression:function(node){if(t.isFunction(node.callee)){return 1}}}};exports.after={nodes:{AssignmentExpression:function(node){if(t.isFunction(node.right)){return 1}}},list:{VariableDeclaration:function(node){return _.map(node.declarations,"init")},ArrayExpression:function(node){return node.elements},ObjectExpression:function(node){return node.properties}}};_.each({Function:1,Class:1,For:1,ArrayExpression:{after:1},ObjectExpression:{after:1},SwitchStatement:1,IfStatement:{before:1},CallExpression:{after:1},Literal:{after:1}},function(amounts,type){if(_.isNumber(amounts)){amounts={after:amounts,before:amounts}}_.each([type].concat(t.FLIPPED_ALIAS_KEYS[type]||[]),function(type){_.each(amounts,function(amount,key){exports[key].nodes[type]=function(){return amount}})})})},{"../../types":101,lodash:164}],20:[function(require,module,exports){"use strict";module.exports=Position;function Position(){this.line=1;this.column=0}Position.prototype.push=function(str){for(var i=0;i<str.length;i++){if(str[i]==="\n"){this.line++;this.column=0}else{this.column++}}};Position.prototype.unshift=function(str){for(var i=0;i<str.length;i++){if(str[i]==="\n"){this.line--}else{this.column--}}}},{}],21:[function(require,module,exports){"use strict";module.exports=SourceMap;var sourceMap=require("source-map");var t=require("../types");function SourceMap(position,opts,code){this.position=position;this.opts=opts;if(opts.sourceMap){this.map=new sourceMap.SourceMapGenerator({file:opts.sourceMapName,sourceRoot:opts.sourceRoot});this.map.setSourceContent(opts.sourceFileName,code)}else{this.map=null}}SourceMap.prototype.get=function(){var map=this.map;if(map){return map.toJSON()}else{return map}};SourceMap.prototype.mark=function(node,type){var loc=node.loc;if(!loc)return;var map=this.map;if(!map)return;if(t.isProgram(node)||t.isFile(node))return;var position=this.position;var generated={line:position.line,column:position.column};var original=loc[type];if(generated.line===original.line&&generated.column===original.column)return;map.addMapping({source:this.opts.sourceFileName,generated:generated,original:original})}},{"../types":101,"source-map":181}],22:[function(require,module,exports){"use strict";module.exports=Whitespace;var _=require("lodash");function getLookupIndex(i,base,max){i+=base;if(i>=max)i-=max;return i}function Whitespace(tokens,comments){this.tokens=_.sortBy(tokens.concat(comments),"start");this.used={};this._lastFoundIndex=0}Whitespace.prototype.getNewlinesBefore=function(node){var startToken;var endToken;var tokens=this.tokens;var token;for(var j=0;j<tokens.length;j++){var i=getLookupIndex(j,this._lastFoundIndex,this.tokens.length);token=tokens[i];if(node.start===token.start){startToken=tokens[i-1];endToken=token;this._lastFoundIndex=i;break}}return this.getNewlinesBetween(startToken,endToken)};Whitespace.prototype.getNewlinesAfter=function(node){var startToken;var endToken;var tokens=this.tokens;var token;for(var j=0;j<tokens.length;j++){var i=getLookupIndex(j,this._lastFoundIndex,this.tokens.length);token=tokens[i];if(node.end===token.end){startToken=token;endToken=tokens[i+1];this._lastFoundIndex=i;break}}if(endToken.type.type==="eof"){return 1}else{var lines=this.getNewlinesBetween(startToken,endToken);if(node.type==="Line"&&!lines){return 1}else{return lines}}};Whitespace.prototype.getNewlinesBetween=function(startToken,endToken){var start=startToken?startToken.loc.end.line:1;var end=endToken.loc.start.line;var lines=0;for(var line=start;line<end;line++){if(typeof this.used[line]==="undefined"){this.used[line]=true;lines++}}return lines}},{lodash:164}],23:[function(require,module,exports){"use strict";module.exports=function cloneDeep(obj){var obj2={};if(!obj)return obj2;for(var key in obj){obj2[key]=obj[key]}return obj2}},{}],24:[function(require,module,exports){var supportsColor=require("supports-color");var tokenize=require("js-tokenizer");var chalk=require("chalk");var util=require("../util");var defs={string1:"red",string2:"red",punct:["white","bold"],curly:"green",parens:["blue","bold"],square:["yellow"],name:"white",keyword:["cyan"],number:"magenta",regexp:"magenta",comment1:"grey",comment2:"grey"};var highlight=function(text){var colorize=function(str,col){if(!col)return str;if(Array.isArray(col)){col.forEach(function(col){str=chalk[col](str)})}else{str=chalk[col](str)}return str};return tokenize(text,true).map(function(str){var type=tokenize.type(str);return colorize(str,defs[type])}).join("")};module.exports=function(lines,lineNumber,colNumber){colNumber=Math.max(colNumber,0);if(supportsColor){lines=highlight(lines)}lines=lines.split("\n");var start=Math.max(lineNumber-3,0);var end=Math.min(lines.length,lineNumber+3);var width=(end+"").length;if(!lineNumber&&!colNumber){start=0;end=lines.length}return"\n"+lines.slice(start,end).map(function(line,i){var curr=i+start+1;var gutter=curr===lineNumber?"> ":" ";var sep=curr+util.repeat(width+1);gutter+=sep+"| ";var str=gutter+line;if(colNumber&&curr===lineNumber){str+="\n";str+=util.repeat(gutter.length-2);str+="|"+util.repeat(colNumber)+"^"}return str}).join("\n")}},{"../util":104,chalk:146,"js-tokenizer":163,"supports-color":192}],25:[function(require,module,exports){"use strict";module.exports=function(){return Object.create(null)}},{}],26:[function(require,module,exports){"use strict";module.exports=function toFastProperties(obj){function f(){}f.prototype=obj;return f;eval(obj)}},{}],27:[function(require,module,exports){"use strict";var t=require("./types");var _=require("lodash");require("./types/node");var estraverse=require("estraverse");_.extend(estraverse.VisitorKeys,t.VISITOR_KEYS);var types=require("ast-types");var def=types.Type.def;var or=types.Type.or;def("File").bases("Node").build("program").field("program",def("Program"));def("AssignmentPattern").bases("Pattern").build("left","right").field("left",def("Pattern")).field("right",def("Expression"));def("ImportBatchSpecifier").bases("Specifier").build("name").field("name",def("Identifier"));def("RestElement").bases("Node").build("argument").field("argument",def("Pattern"));def("VirtualPropertyExpression").bases("Expression").build("object","property").field("object",def("Expression")).field("property",or(def("Identifier"),def("Expression")));def("PrivateDeclaration").bases("Declaration").build("declarations").field("declarations",[def("Identifier")]);def("BindMemberExpression").bases("Expression").build("object","property","arguments").field("object",def("Expression")).field("property",or(def("Identifier"),def("Expression"))).field("arguments",[def("Expression")]);def("BindFunctionExpression").bases("Expression").build("callee","arguments").field("callee",def("Expression")).field("arguments",[def("Expression")]);types.finalize()},{"./types":101,"./types/node":102,"ast-types":119,estraverse:158,lodash:164}],28:[function(require,module,exports){"use strict";var explode=require("./explode-assignable-expression");var t=require("../../types");module.exports=function(exports,opts){var isAssignment=function(node){return node.operator===opts.operator+"="};var buildAssignment=function(left,right){return t.assignmentExpression("=",left,right)};exports.ExpressionStatement=function(node,parent,scope,context,file){if(file.isConsequenceExpressionStatement(node))return;var expr=node.expression;if(!isAssignment(expr))return;var nodes=[];var exploded=explode(expr.left,nodes,file,scope,true);nodes.push(t.expressionStatement(buildAssignment(exploded.ref,opts.build(exploded.uid,expr.right))));return nodes};exports.AssignmentExpression=function(node,parent,scope,context,file){if(!isAssignment(node))return;var nodes=[];var exploded=explode(node.left,nodes,file,scope);nodes.push(buildAssignment(exploded.ref,opts.build(exploded.uid,node.right)));return t.toSequenceExpression(nodes,scope)};exports.BinaryExpression=function(node){if(node.operator!==opts.operator)return;return opts.build(node.left,node.right)}}},{"../../types":101,"./explode-assignable-expression":31}],29:[function(require,module,exports){"use strict";var t=require("../../types");module.exports=function build(node,buildBody){var self=node.blocks.shift();if(!self)return;var child=build(node,buildBody);if(!child){child=buildBody();if(node.filter){child=t.ifStatement(node.filter,t.blockStatement([child]))}}return t.forOfStatement(t.variableDeclaration("let",[t.variableDeclarator(self.left)]),self.right,t.blockStatement([child]))}},{"../../types":101}],30:[function(require,module,exports){"use strict";var explode=require("./explode-assignable-expression");var t=require("../../types");module.exports=function(exports,opts){var buildAssignment=function(left,right){return t.assignmentExpression("=",left,right)};exports.ExpressionStatement=function(node,parent,scope,context,file){if(file.isConsequenceExpressionStatement(node))return;var expr=node.expression;if(!opts.is(expr,file))return;var nodes=[];var exploded=explode(expr.left,nodes,file,scope);nodes.push(t.ifStatement(opts.build(exploded.uid,file),t.expressionStatement(buildAssignment(exploded.ref,expr.right))));return nodes};exports.AssignmentExpression=function(node,parent,scope,context,file){if(!opts.is(node,file))return;var nodes=[];var exploded=explode(node.left,nodes,file,scope);nodes.push(t.logicalExpression("&&",opts.build(exploded.uid,file),buildAssignment(exploded.ref,node.right)));nodes.push(exploded.ref);return t.toSequenceExpression(nodes,scope)}}},{"../../types":101,"./explode-assignable-expression":31}],31:[function(require,module,exports){"use strict";var t=require("../../types");var getObjRef=function(node,nodes,file,scope){var ref;if(t.isIdentifier(node)){if(scope.has(node.name,true)){return node}else{ref=node}}else if(t.isMemberExpression(node)){ref=node.object;if(t.isIdentifier(ref)&&scope.has(ref.name)){return ref}}else{throw new Error("We can't explode this node type "+node.type)}var temp=scope.generateUidBasedOnNode(ref);nodes.push(t.variableDeclaration("var",[t.variableDeclarator(temp,ref)]));return temp};var getPropRef=function(node,nodes,file,scope){var prop=node.property;var key=t.toComputedKey(node,prop);if(t.isLiteral(key))return key;var temp=scope.generateUidBasedOnNode(prop);nodes.push(t.variableDeclaration("var",[t.variableDeclarator(temp,prop)]));return temp};module.exports=function(node,nodes,file,scope,allowedSingleIdent){var obj;if(t.isIdentifier(node)&&allowedSingleIdent){obj=node}else{obj=getObjRef(node,nodes,file,scope)}var ref,uid;if(t.isIdentifier(node)){ref=node;uid=obj}else{var prop=getPropRef(node,nodes,file,scope);var computed=node.computed||t.isLiteral(prop);uid=ref=t.memberExpression(obj,prop,computed)}return{uid:uid,ref:ref}}},{"../../types":101}],32:[function(require,module,exports){"use strict";var traverse=require("../../traverse");var util=require("../../util");var t=require("../../types");var visitor={enter:function(node,parent,scope,context,state){if(!t.isIdentifier(node,{name:state.id}))return;if(!t.isReferenced(node,parent))return;var localDeclar=scope.get(state.id,true);if(localDeclar!==state.outerDeclar)return;state.selfReference=true;context.stop()}};exports.property=function(node,file,scope){var key=t.toComputedKey(node,node.key);if(!t.isLiteral(key))return node;var id=t.toIdentifier(key.value);key=t.identifier(id);var state={id:id,selfReference:false,outerDeclar:scope.get(id,true)};traverse(node,visitor,scope,state);if(state.selfReference){node.value=util.template("property-method-assignment-wrapper",{FUNCTION:node.value,FUNCTION_ID:key,FUNCTION_KEY:scope.generateUidIdentifier(id),WRAPPER_KEY:scope.generateUidIdentifier(id+"Wrapper")})}else{node.value.id=key}}},{"../../traverse":97,"../../types":101,"../../util":104}],33:[function(require,module,exports){"use strict";var traverse=require("../../traverse");var t=require("../../types");var visitor={enter:function(node,parent,scope,context){if(t.isFunction(node))context.skip();if(t.isAwaitExpression(node)){node.type="YieldExpression"}}};module.exports=function(node,callId,scope){node.async=false;node.generator=true;traverse(node,visitor,scope);var call=t.callExpression(callId,[node]);var id=node.id;delete node.id;if(t.isFunctionDeclaration(node)){var declar=t.variableDeclaration("let",[t.variableDeclarator(id,call)]);declar._blockHoist=true;return declar}else{return call}}},{"../../traverse":97,"../../types":101}],34:[function(require,module,exports){"use strict";module.exports=ReplaceSupers;var traverse=require("../../traverse");var t=require("../../types");function ReplaceSupers(opts){this.topLevelThisReference=null;this.methodNode=opts.methodNode;this.className=opts.className;this.superName=opts.superName;this.isLoose=opts.isLoose;this.scope=opts.scope;this.file=opts.file}ReplaceSupers.prototype.superProperty=function(property,isStatic,isComputed,thisExpression){return t.callExpression(this.file.addHelper("get"),[t.callExpression(t.memberExpression(t.identifier("Object"),t.identifier("getPrototypeOf")),[isStatic?this.className:t.memberExpression(this.className,t.identifier("prototype"))]),isComputed?property:t.literal(property.name),thisExpression])};ReplaceSupers.prototype.looseSuperProperty=function(methodNode,id,parent){var methodName=methodNode.key;var superName=this.superName||t.identifier("Function");if(parent.property===id){return}else if(t.isCallExpression(parent,{callee:id})){parent.arguments.unshift(t.thisExpression());if(methodName.name==="constructor"){return t.memberExpression(superName,t.identifier("call"))}else{id=superName;if(!methodNode.static){id=t.memberExpression(id,t.identifier("prototype"))}id=t.memberExpression(id,methodName,methodNode.computed);return t.memberExpression(id,t.identifier("call"))}}else if(t.isMemberExpression(parent)&&!methodNode.static){return t.memberExpression(superName,t.identifier("prototype"))}else{return superName}};ReplaceSupers.prototype.replace=function(){this.traverseLevel(this.methodNode.value,true)};var visitor={enter:function(node,parent,scope,context,state){var topLevel=state.topLevel;var self=state.self;if(t.isFunction(node)&&!t.isArrowFunctionExpression(node)){self.traverseLevel(node,false);return context.skip()}if(t.isProperty(node,{method:true})||t.isMethodDefinition(node)){return context.skip()}var getThisReference=topLevel?t.thisExpression:self.getThisReference;var callback=self.specHandle;if(self.isLoose)callback=self.looseHandle;return callback.call(self,getThisReference,node,parent)}};ReplaceSupers.prototype.traverseLevel=function(node,topLevel){var state={self:this,topLevel:topLevel};traverse(node,visitor,this.scope,state)};ReplaceSupers.prototype.getThisReference=function(){if(this.topLevelThisReference){return this.topLevelThisReference}else{var ref=this.topLevelThisReference=this.file.generateUidIdentifier("this");this.methodNode.value.body.body.unshift(t.variableDeclaration("var",[t.variableDeclarator(this.topLevelThisReference,t.thisExpression())]));return ref}};ReplaceSupers.prototype.looseHandle=function(getThisReference,node,parent){if(t.isIdentifier(node,{name:"super"})){return this.looseSuperProperty(this.methodNode,node,parent)}else if(t.isCallExpression(node)){var callee=node.callee;if(!t.isMemberExpression(callee))return;if(callee.object.name!=="super")return;t.appendToMemberExpression(callee,t.identifier("call"));node.arguments.unshift(getThisReference())}};ReplaceSupers.prototype.specHandle=function(getThisReference,node,parent){var methodNode=this.methodNode;var property;var computed;var args;if(t.isIdentifier(node,{name:"super"})){if(!(t.isMemberExpression(parent)&&!parent.computed&&parent.property===node)){throw this.file.errorWithNode(node,"illegal use of bare super")}}else if(t.isCallExpression(node)){var callee=node.callee;if(t.isIdentifier(callee,{name:"super"})){property=methodNode.key;computed=methodNode.computed;args=node.arguments;if(methodNode.key.name!=="constructor"){var methodName=methodNode.key.name||"METHOD_NAME";throw this.file.errorWithNode(node,"Direct super call is illegal in non-constructor, use super."+methodName+"() instead")}}else{if(!t.isMemberExpression(callee))return;if(callee.object.name!=="super")return;property=callee.property;computed=callee.computed;args=node.arguments}}else if(t.isMemberExpression(node)){if(!t.isIdentifier(node.object,{name:"super"}))return;property=node.property;computed=node.computed}if(!property)return;var thisReference=getThisReference();var superProperty=this.superProperty(property,methodNode.static,computed,thisReference);if(args){if(args.length===1&&t.isSpreadElement(args[0])){return t.callExpression(t.memberExpression(superProperty,t.identifier("apply")),[thisReference,args[0].argument])}else{return t.callExpression(t.memberExpression(superProperty,t.identifier("call")),[thisReference].concat(args))}}else{return superProperty}}},{"../../traverse":97,"../../types":101}],35:[function(require,module,exports){"use strict";var t=require("../../types");exports.has=function(node){var first=node.body[0];return t.isExpressionStatement(first)&&t.isLiteral(first.expression,{value:"use strict"})};exports.wrap=function(node,callback){var useStrictNode;if(exports.has(node)){useStrictNode=node.body.shift()}callback();if(useStrictNode){node.body.unshift(useStrictNode)}}},{"../../types":101}],36:[function(require,module,exports){"use strict";module.exports=DefaultFormatter;var traverse=require("../../traverse");var object=require("../../helpers/object");var util=require("../../util");var t=require("../../types");var _=require("lodash");function DefaultFormatter(file){this.file=file;this.ids=object();this.hasNonDefaultExports=false;this.hasLocalExports=false;this.hasLocalImports=false;this.localImportOccurences=object();this.localExports=object();this.localImports=object();this.getLocalExports();this.getLocalImports();this.remapAssignments()}DefaultFormatter.prototype.doDefaultExportInterop=function(node){return node.default&&!this.noInteropRequire&&!this.hasNonDefaultExports};DefaultFormatter.prototype.bumpImportOccurences=function(node){var source=node.source.value;var occurs=this.localImportOccurences;occurs[source]=occurs[source]||0;occurs[source]+=node.specifiers.length};var exportsVisitor={enter:function(node,parent,scope,context,formatter){var declar=node&&node.declaration;if(t.isExportDeclaration(node)){formatter.hasLocalImports=true;if(declar&&t.isStatement(declar)){_.extend(formatter.localExports,t.getIds(declar,true))}if(!node.default){formatter.hasNonDefaultExports=true}if(node.source){formatter.bumpImportOccurences(node)}}}};DefaultFormatter.prototype.getLocalExports=function(){traverse(this.file.ast,exportsVisitor,this.file.scope,this)};var importsVisitor={enter:function(node,parent,scope,context,formatter){if(t.isImportDeclaration(node)){formatter.hasLocalImports=true;_.extend(formatter.localImports,t.getIds(node,true));formatter.bumpImportOccurences(node)}}};DefaultFormatter.prototype.getLocalImports=function(){traverse(this.file.ast,importsVisitor,this.file.scope,this)};var remapVisitor={enter:function(node,parent,scope,context,formatter){if(t.isUpdateExpression(node)&&formatter.isLocalReference(node.argument,scope)){context.skip();var assign=t.assignmentExpression(node.operator[0]+"=",node.argument,t.literal(1));var remapped=formatter.remapExportAssignment(assign);if(t.isExpressionStatement(parent)||node.prefix){return remapped}var nodes=[];nodes.push(remapped);var operator;if(node.operator==="--"){operator="+"}else{operator="-"}nodes.push(t.binaryExpression(operator,node.argument,t.literal(1)));return t.sequenceExpression(nodes)}if(t.isAssignmentExpression(node)&&formatter.isLocalReference(node.left,scope)){context.skip();return formatter.remapExportAssignment(node)}}};DefaultFormatter.prototype.remapAssignments=function(){if(this.hasLocalImports){traverse(this.file.ast,remapVisitor,this.file.scope,this)}};DefaultFormatter.prototype.isLocalReference=function(node){var localImports=this.localImports;return t.isIdentifier(node)&&localImports[node.name]&&localImports[node.name]!==node};DefaultFormatter.prototype.checkLocalReference=function(node){var file=this.file;if(this.isLocalReference(node)){throw file.errorWithNode(node,"Illegal assignment of module import")}};DefaultFormatter.prototype.remapExportAssignment=function(node){return t.assignmentExpression("=",node.left,t.assignmentExpression(node.operator,t.memberExpression(t.identifier("exports"),node.left),node.right))};DefaultFormatter.prototype.isLocalReference=function(node,scope){var localExports=this.localExports;var name=node.name;return t.isIdentifier(node)&&localExports[name]&&localExports[name]===scope.get(name,true)};DefaultFormatter.prototype.getModuleName=function(){var opts=this.file.opts;var filenameRelative=opts.filenameRelative;var moduleName="";if(opts.moduleRoot){moduleName=opts.moduleRoot+"/"}if(!opts.filenameRelative){return moduleName+opts.filename.replace(/^\//,"")}if(opts.sourceRoot){var sourceRootRegEx=new RegExp("^"+opts.sourceRoot+"/?");filenameRelative=filenameRelative.replace(sourceRootRegEx,"")}if(!opts.keepModuleIdExtensions){filenameRelative=filenameRelative.replace(/\.(.*?)$/,"")}moduleName+=filenameRelative;moduleName=moduleName.replace(/\\/g,"/");return moduleName};DefaultFormatter.prototype._pushStatement=function(ref,nodes){if(t.isClass(ref)||t.isFunction(ref)){if(ref.id){nodes.push(t.toStatement(ref));ref=ref.id}}return ref};DefaultFormatter.prototype._hoistExport=function(declar,assign,priority){if(t.isFunctionDeclaration(declar)){assign._blockHoist=priority||2}return assign};DefaultFormatter.prototype.getExternalReference=function(node,nodes){var ids=this.ids;var id=node.source.value;if(ids[id]){return ids[id]}else{return this.ids[id]=this._getExternalReference(node,nodes)}};DefaultFormatter.prototype.exportSpecifier=function(specifier,node,nodes){var inherits=false;if(node.specifiers.length===1)inherits=node;if(node.source){var ref=this.getExternalReference(node,nodes);if(t.isExportBatchSpecifier(specifier)){nodes.push(this.buildExportsWildcard(ref,node))}else{if(t.isSpecifierDefault(specifier)&&!this.noInteropRequire){ref=t.callExpression(this.file.addHelper("interop-require"),[ref])}else{ref=t.memberExpression(ref,t.getSpecifierId(specifier))}nodes.push(this.buildExportsAssignment(t.getSpecifierName(specifier),ref,node))}}else{nodes.push(this.buildExportsAssignment(t.getSpecifierName(specifier),specifier.id,node))}};DefaultFormatter.prototype.buildExportsWildcard=function(objectIdentifier){return t.expressionStatement(t.callExpression(this.file.addHelper("defaults"),[t.identifier("exports"),t.callExpression(this.file.addHelper("interop-require-wildcard"),[objectIdentifier])]))};DefaultFormatter.prototype.buildExportsAssignment=function(id,init){return util.template("exports-assign",{VALUE:init,KEY:id},true)};DefaultFormatter.prototype.exportDeclaration=function(node,nodes){var declar=node.declaration;var id=declar.id;if(node.default){id=t.identifier("default")}var assign;if(t.isVariableDeclaration(declar)){for(var i=0;i<declar.declarations.length;i++){var decl=declar.declarations[i];decl.init=this.buildExportsAssignment(decl.id,decl.init,node).expression;var newDeclar=t.variableDeclaration(declar.kind,[decl]);if(i===0)t.inherits(newDeclar,declar);nodes.push(newDeclar)}}else{var ref=declar;if(t.isFunctionDeclaration(declar)||t.isClassDeclaration(declar)){ref=declar.id;nodes.push(declar)}assign=this.buildExportsAssignment(id,ref,node);nodes.push(assign);this._hoistExport(declar,assign)}}},{"../../helpers/object":25,"../../traverse":97,"../../types":101,"../../util":104,lodash:164}],37:[function(require,module,exports){"use strict";var util=require("../../util");module.exports=function(Parent){var Constructor=function(){this.noInteropRequire=true;Parent.apply(this,arguments)};util.inherits(Constructor,Parent);return Constructor}},{"../../util":104}],38:[function(require,module,exports){"use strict";module.exports=require("./_strict")(require("./amd"))},{"./_strict":37,"./amd":39}],39:[function(require,module,exports){"use strict";module.exports=AMDFormatter;var DefaultFormatter=require("./_default");var CommonFormatter=require("./common");var util=require("../../util");var t=require("../../types");var _=require("lodash");function AMDFormatter(){CommonFormatter.apply(this,arguments)}util.inherits(AMDFormatter,DefaultFormatter);AMDFormatter.prototype.buildDependencyLiterals=function(){var names=[];for(var name in this.ids){names.push(t.literal(name))}return names};AMDFormatter.prototype.transform=function(ast){var program=ast.program;
var body=program.body;var names=[t.literal("exports")];if(this.passModuleArg)names.push(t.literal("module"));names=names.concat(this.buildDependencyLiterals());names=t.arrayExpression(names);var params=_.values(this.ids);if(this.passModuleArg)params.unshift(t.identifier("module"));params.unshift(t.identifier("exports"));var container=t.functionExpression(null,params,t.blockStatement(body));var defineArgs=[names,container];var moduleName=this.getModuleName();if(moduleName)defineArgs.unshift(t.literal(moduleName));var call=t.callExpression(t.identifier("define"),defineArgs);program.body=[t.expressionStatement(call)]};AMDFormatter.prototype.getModuleName=function(){if(this.file.opts.moduleIds){return DefaultFormatter.prototype.getModuleName.apply(this,arguments)}else{return null}};AMDFormatter.prototype._getExternalReference=function(node){return this.file.generateUidIdentifier(node.source.value)};AMDFormatter.prototype.importDeclaration=function(node){this.getExternalReference(node)};AMDFormatter.prototype.importSpecifier=function(specifier,node,nodes){var key=t.getSpecifierName(specifier);var ref=this.getExternalReference(node);if(_.contains(this.file.dynamicImported,node)){this.ids[node.source.value]=key;return}else if(t.isImportBatchSpecifier(specifier)){}else if(t.isSpecifierDefault(specifier)&&!this.noInteropRequire){ref=t.callExpression(this.file.addHelper("interop-require"),[ref])}else{ref=t.memberExpression(ref,t.getSpecifierId(specifier),false)}nodes.push(t.variableDeclaration("var",[t.variableDeclarator(key,ref)]))};AMDFormatter.prototype.exportDeclaration=function(node){if(this.doDefaultExportInterop(node)){this.passModuleArg=true}CommonFormatter.prototype.exportDeclaration.apply(this,arguments)}},{"../../types":101,"../../util":104,"./_default":36,"./common":41,lodash:164}],40:[function(require,module,exports){"use strict";module.exports=require("./_strict")(require("./common"))},{"./_strict":37,"./common":41}],41:[function(require,module,exports){"use strict";module.exports=CommonJSFormatter;var DefaultFormatter=require("./_default");var util=require("../../util");var t=require("../../types");var _=require("lodash");function CommonJSFormatter(file){DefaultFormatter.apply(this,arguments);if(this.hasNonDefaultExports){file.ast.program.body.push(util.template("exports-module-declaration",true))}}util.inherits(CommonJSFormatter,DefaultFormatter);CommonJSFormatter.prototype.importSpecifier=function(specifier,node,nodes){var variableName=t.getSpecifierName(specifier);var ref=this.getExternalReference(node,nodes);if(t.isSpecifierDefault(specifier)){if(!_.contains(this.file.dynamicImported,node)){ref=t.callExpression(this.file.addHelper("interop-require"),[ref])}nodes.push(t.variableDeclaration("var",[t.variableDeclarator(variableName,ref)]))}else{if(specifier.type==="ImportBatchSpecifier"){nodes.push(t.variableDeclaration("var",[t.variableDeclarator(variableName,t.callExpression(this.file.addHelper("interop-require-wildcard"),[ref]))]))}else{nodes.push(t.variableDeclaration("var",[t.variableDeclarator(variableName,t.memberExpression(ref,t.getSpecifierId(specifier)))]))}}};CommonJSFormatter.prototype.importDeclaration=function(node,nodes){nodes.push(util.template("require",{MODULE_NAME:node.source},true))};CommonJSFormatter.prototype.exportDeclaration=function(node,nodes){if(this.doDefaultExportInterop(node)){var declar=node.declaration;var assign=util.template("exports-default-assign",{VALUE:this._pushStatement(declar,nodes)},true);if(t.isFunctionDeclaration(declar)){assign._blockHoist=3}nodes.push(assign);return}DefaultFormatter.prototype.exportDeclaration.apply(this,arguments)};CommonJSFormatter.prototype._getExternalReference=function(node,nodes){var source=node.source.value;var call=t.callExpression(t.identifier("require"),[node.source]);if(this.localImportOccurences[source]>1){var uid=this.file.generateUidIdentifier(source);nodes.push(t.variableDeclaration("var",[t.variableDeclarator(uid,call)]));return uid}else{return call}}},{"../../types":101,"../../util":104,"./_default":36,lodash:164}],42:[function(require,module,exports){"use strict";module.exports=IgnoreFormatter;var t=require("../../types");function IgnoreFormatter(){}IgnoreFormatter.prototype.exportDeclaration=function(node,nodes){var declar=t.toStatement(node.declaration,true);if(declar)nodes.push(t.inherits(declar,node))};IgnoreFormatter.prototype.importDeclaration=IgnoreFormatter.prototype.importSpecifier=IgnoreFormatter.prototype.exportSpecifier=function(){}},{"../../types":101}],43:[function(require,module,exports){module.exports={commonStrict:require("./common-strict"),amdStrict:require("./amd-strict"),umdStrict:require("./umd-strict"),common:require("./common"),system:require("./system"),ignore:require("./ignore"),amd:require("./amd"),umd:require("./umd")}},{"./amd":39,"./amd-strict":38,"./common":41,"./common-strict":40,"./ignore":42,"./system":44,"./umd":46,"./umd-strict":45}],44:[function(require,module,exports){"use strict";module.exports=SystemFormatter;var DefaultFormatter=require("./_default");var AMDFormatter=require("./amd");var useStrict=require("../helpers/use-strict");var traverse=require("../../traverse");var util=require("../../util");var t=require("../../types");var _=require("lodash");function SystemFormatter(file){this.exportIdentifier=file.generateUidIdentifier("export");this.noInteropRequire=true;DefaultFormatter.apply(this,arguments)}util.inherits(SystemFormatter,AMDFormatter);SystemFormatter.prototype._addImportSource=function(node,exportNode){node._importSource=exportNode.source&&exportNode.source.value;return node};SystemFormatter.prototype.buildExportsWildcard=function(objectIdentifier,node){var leftIdentifier=this.file.generateUidIdentifier("key");var valIdentifier=t.memberExpression(objectIdentifier,leftIdentifier,true);var left=t.variableDeclaration("var",[t.variableDeclarator(leftIdentifier)]);var right=objectIdentifier;var block=t.blockStatement([t.expressionStatement(this.buildExportCall(leftIdentifier,valIdentifier))]);return this._addImportSource(t.forInStatement(left,right,block),node)};SystemFormatter.prototype.buildExportsAssignment=function(id,init,node){var call=this.buildExportCall(t.literal(id.name),init,true);return this._addImportSource(call,node)};SystemFormatter.prototype.remapExportAssignment=function(node){return this.buildExportCall(t.literal(node.left.name),node)};SystemFormatter.prototype.buildExportCall=function(id,init,isStatement){var call=t.callExpression(this.exportIdentifier,[id,init]);if(isStatement){return t.expressionStatement(call)}else{return call}};SystemFormatter.prototype.importSpecifier=function(specifier,node,nodes){AMDFormatter.prototype.importSpecifier.apply(this,arguments);this._addImportSource(_.last(nodes),node)};var runnerSettersVisitor={enter:function(node,parent,scope,context,state){if(node._importSource===state.source){if(t.isVariableDeclaration(node)){_.each(node.declarations,function(declar){state.hoistDeclarators.push(t.variableDeclarator(declar.id));state.nodes.push(t.expressionStatement(t.assignmentExpression("=",declar.id,declar.init)))})}else{state.nodes.push(node)}context.remove()}}};SystemFormatter.prototype.buildRunnerSetters=function(block,hoistDeclarators){var scope=this.file.scope;return t.arrayExpression(_.map(this.ids,function(uid,source){var state={source:source,nodes:[],hoistDeclarators:hoistDeclarators};traverse(block,runnerSettersVisitor,scope,state);return t.functionExpression(null,[uid],t.blockStatement(state.nodes))}))};var hoistVariablesVisitor={enter:function(node,parent,scope,context,hoistDeclarators){if(t.isFunction(node)){return context.skip()}if(t.isVariableDeclaration(node)){if(node.kind!=="var"&&!t.isProgram(parent)){return}if(node._blockHoist)return;var nodes=[];for(var i=0;i<node.declarations.length;i++){var declar=node.declarations[i];hoistDeclarators.push(t.variableDeclarator(declar.id));if(declar.init){var assign=t.expressionStatement(t.assignmentExpression("=",declar.id,declar.init));nodes.push(assign)}}if(t.isFor(parent)){if(parent.left===node){return node.declarations[0].id}if(parent.init===node){return t.toSequenceExpression(nodes,scope)}}return nodes}}};var hoistFunctionsVisitor={enter:function(node,parent,scope,context,handlerBody){if(t.isFunction(node))context.skip();if(t.isFunctionDeclaration(node)||node._blockHoist){handlerBody.push(node);context.remove()}}};SystemFormatter.prototype.transform=function(ast){var program=ast.program;var hoistDeclarators=[];var moduleName=this.getModuleName();var moduleNameLiteral=t.literal(moduleName);var block=t.blockStatement(program.body);var runner=util.template("system",{MODULE_NAME:moduleNameLiteral,MODULE_DEPENDENCIES:t.arrayExpression(this.buildDependencyLiterals()),EXPORT_IDENTIFIER:this.exportIdentifier,SETTERS:this.buildRunnerSetters(block,hoistDeclarators),EXECUTE:t.functionExpression(null,[],block)},true);var handlerBody=runner.expression.arguments[2].body.body;if(!moduleName)runner.expression.arguments.shift();var returnStatement=handlerBody.pop();traverse(block,hoistVariablesVisitor,this.file.scope,hoistDeclarators);if(hoistDeclarators.length){var hoistDeclar=t.variableDeclaration("var",hoistDeclarators);hoistDeclar._blockHoist=true;handlerBody.unshift(hoistDeclar)}traverse(block,hoistFunctionsVisitor,this.file.scope,handlerBody);handlerBody.push(returnStatement);if(useStrict.has(block)){handlerBody.unshift(block.body.shift())}program.body=[runner]}},{"../../traverse":97,"../../types":101,"../../util":104,"../helpers/use-strict":35,"./_default":36,"./amd":39,lodash:164}],45:[function(require,module,exports){"use strict";module.exports=require("./_strict")(require("./umd"))},{"./_strict":37,"./umd":46}],46:[function(require,module,exports){"use strict";module.exports=UMDFormatter;var AMDFormatter=require("./amd");var util=require("../../util");var t=require("../../types");var _=require("lodash");function UMDFormatter(){AMDFormatter.apply(this,arguments)}util.inherits(UMDFormatter,AMDFormatter);UMDFormatter.prototype.transform=function(ast){var program=ast.program;var body=program.body;var names=[];for(var name in this.ids){names.push(t.literal(name))}var ids=_.values(this.ids);var args=[t.identifier("exports")];if(this.passModuleArg)args.push(t.identifier("module"));args=args.concat(ids);var factory=t.functionExpression(null,args,t.blockStatement(body));var defineArgs=[t.literal("exports")];if(this.passModuleArg)defineArgs.push(t.literal("module"));defineArgs=defineArgs.concat(names);defineArgs=[t.arrayExpression(defineArgs)];var testExports=util.template("test-exports");var testModule=util.template("test-module");var commonTests=this.passModuleArg?t.logicalExpression("&&",testExports,testModule):testExports;var commonArgs=[t.identifier("exports")];if(this.passModuleArg)commonArgs.push(t.identifier("module"));commonArgs=commonArgs.concat(names.map(function(name){return t.callExpression(t.identifier("require"),[name])}));var moduleName=this.getModuleName();if(moduleName)defineArgs.unshift(t.literal(moduleName));var runner=util.template("umd-runner-body",{AMD_ARGUMENTS:defineArgs,COMMON_TEST:commonTests,COMMON_ARGUMENTS:commonArgs});var call=t.callExpression(runner,[factory]);program.body=[t.expressionStatement(call)]}},{"../../types":101,"../../util":104,"./amd":39,lodash:164}],47:[function(require,module,exports){"use strict";module.exports=transform;var Transformer=require("./transformer");var object=require("../helpers/object");var File=require("../file");var util=require("../util");var _=require("lodash");function transform(code,opts){var file=new File(opts);return file.parse(code)}transform.fromAst=function(ast,code,opts){ast=util.normaliseAst(ast);var file=new File(opts);file.addCode(code);file.transform(ast);return file.generate()};transform._ensureTransformerNames=function(type,rawKeys){var keys=[];for(var i=0;i<rawKeys.length;i++){var key=rawKeys[i];var deprecatedKey=transform.deprecatedTransformerMap[key];if(deprecatedKey){console.error("The transformer "+key+" has been renamed to "+deprecatedKey+" in v3.0.0 - backwards compatibilty will be removed 4.0.0");rawKeys.push(deprecatedKey)}else if(transform.transformers[key]){keys.push(key)}else if(transform.namespaces[key]){keys=keys.concat(transform.namespaces[key])}else{throw new ReferenceError("Unknown transformer "+key+" specified in "+type+" - "+"transformer key names have been changed in 3.0.0 see "+"the changelog for more info "+"https://github.com/6to5/6to5/blob/master/CHANGELOG.md#300")}}return keys};transform.transformers=object();transform.namespaces=object();transform.deprecatedTransformerMap=require("./transformers/deprecated");transform.moduleFormatters=require("./modules");var rawTransformers=require("./transformers");_.each(rawTransformers,function(transformer,key){var namespace=key.split(".")[0];transform.namespaces[namespace]=transform.namespaces[namespace]||[];transform.namespaces[namespace].push(key);transform.transformers[key]=new Transformer(key,transformer)})},{"../file":2,"../helpers/object":25,"../util":104,"./modules":43,"./transformer":49,"./transformers":71,"./transformers/deprecated":50,lodash:164}],48:[function(require,module,exports){module.exports=TransformerPass;var traverse=require("../traverse");var _=require("lodash");function TransformerPass(file,transformer){this.transformer=transformer;this.handlers=transformer.handlers;this.file=file}TransformerPass.prototype.astRun=function(key){var handlers=this.handlers;var file=this.file;if(handlers.ast&&handlers.ast[key]){handlers.ast[key](file.ast,file)}};TransformerPass.prototype.canRun=function(){var transformer=this.transformer;var opts=this.file.opts;var key=transformer.key;if(key[0]==="_")return true;var blacklist=opts.blacklist;if(blacklist.length&&_.contains(blacklist,key))return false;var whitelist=opts.whitelist;if(whitelist.length&&!_.contains(whitelist,key))return false;if(transformer.optional&&!_.contains(opts.optional,key))return false;if(transformer.experimental&&!opts.experimental)return false;return true};var transformVisitor={enter:function(node,parent,scope,context,state){var fns=state.handlers[node.type];if(!fns)return;return fns.enter(node,parent,scope,context,state.file,state.pass)},exit:function(node,parent,scope,context,state){var fns=state.handlers[node.type];if(!fns)return;return fns.exit(node,parent,scope,context,state.file,state.pass)}};TransformerPass.prototype.transform=function(){var file=this.file;this.astRun("before");var state={file:file,handlers:this.handlers,pass:this};traverse(file.ast,transformVisitor,file.scope,state);this.astRun("after")}},{"../traverse":97,lodash:164}],49:[function(require,module,exports){"use strict";module.exports=Transformer;var TransformerPass=require("./transformer-pass");var t=require("../types");var _=require("lodash");function Transformer(key,transformer,opts){this.manipulateOptions=transformer.manipulateOptions;this.experimental=!!transformer.experimental;this.secondPass=!!transformer.secondPass;this.optional=!!transformer.optional;this.handlers=this.normalise(transformer);this.opts=opts||{};this.key=key}Transformer.prototype.normalise=function(transformer){var self=this;if(_.isFunction(transformer)){transformer={ast:transformer}}_.each(transformer,function(fns,type){if(type[0]==="_"){self[type]=fns;return}if(_.isFunction(fns))fns={enter:fns};if(!_.isObject(fns))return;if(!fns.enter)fns.enter=_.noop;if(!fns.exit)fns.exit=_.noop;transformer[type]=fns;var aliases=t.FLIPPED_ALIAS_KEYS[type];if(aliases){_.each(aliases,function(alias){transformer[alias]=fns})}});return transformer};Transformer.prototype.buildPass=function(file){return new TransformerPass(file,this)}},{"../types":101,"./transformer-pass":48,lodash:164}],50:[function(require,module,exports){module.exports={specNoForInOfAssignment:"validation.noForInOfAssignment",specSetters:"validation.setters",specBlockScopedFunctions:"spec.blockScopedFunctions",malletOperator:"playground.malletOperator",methodBinding:"playground.methodBinding",memoizationOperator:"playground.memoizationOperator",objectGetterMemoization:"playground.objectGetterMemoization",modules:"es6.modules",propertyNameShorthand:"es6.properties.shorthand",arrayComprehension:"es7.comprehensions",generatorComprehension:"es7.comprehensions",arrowFunctions:"es6.arrowFunctions",classes:"es6.classes",objectSpread:"es7.objectSpread",exponentiationOperator:"es7.exponentiationOperator",spread:"es6.spread",templateLiterals:"es6.templateLiterals",propertyMethodAssignment:"es6.properties.shorthand",computedPropertyNames:"es6.properties.computed",defaultParameters:"es6.parameters.default",restParameters:"es6.parameters.rest",destructuring:"es6.destructuring",forOf:"es6.forOf",unicodeRegex:"es6.unicodeRegex",abstractReferences:"es7.abstractReferences",constants:"es6.constants",letScoping:"es6.letScoping",blockScopingTDZ:"es6.blockScopingTDZ",generators:"regenerator",protoToAssign:"spec.protoToAssign",typeofSymbol:"spec.typeofSymbol",coreAliasing:"selfContained",undefinedToVoid:"spec.undefinedToVoid",undeclaredVariableCheck:"validation.undeclaredVariableCheck",specPropertyLiterals:"minification.propertyLiterals",specMemberExpressionLiterals:"minification.memberExpressionLiterals"}},{}],51:[function(require,module,exports){"use strict";var util=require("../../../util");var t=require("../../../types");exports.ObjectExpression=function(node){var mutatorMap={};var hasAny=false;node.properties=node.properties.filter(function(prop){if(prop.kind==="get"||prop.kind==="set"){hasAny=true;util.pushMutatorMap(mutatorMap,prop.key,prop.kind,prop.computed,prop.value);return false}else{return true}});if(!hasAny)return;return t.callExpression(t.memberExpression(t.identifier("Object"),t.identifier("defineProperties")),[node,util.buildDefineProperties(mutatorMap)])}},{"../../../types":101,"../../../util":104}],52:[function(require,module,exports){"use strict";var t=require("../../../types");exports.ArrowFunctionExpression=function(node){t.ensureBlock(node);node._aliasFunction="arrow";node.expression=false;node.type="FunctionExpression";return node}},{"../../../types":101}],53:[function(require,module,exports){"use strict";var traverse=require("../../../traverse");var t=require("../../../types");var visitor={enter:function(node,parent,scope,context,state){if(!t.isReferencedIdentifier(node,parent))return;var declared=state.letRefs[node.name];if(!declared)return;if(scope.get(node.name,true)!==declared)return;var declaredLoc=declared.loc;var referenceLoc=node.loc;if(!declaredLoc||!referenceLoc)return;var before=referenceLoc.start.line<declaredLoc.start.line;if(referenceLoc.start.line===declaredLoc.start.line){before=referenceLoc.start.col<declaredLoc.start.col}if(before){throw state.file.errorWithNode(node,"Temporal dead zone - accessing a variable before it's initialized")}}};exports.optional=true;exports.Loop=exports.Program=exports.BlockStatement=function(node,parent,scope,context,file){var letRefs=node._letReferences;if(!letRefs)return;var state={letRefs:letRefs,file:file};traverse(node,visitor,scope,state)}},{"../../../traverse":97,"../../../types":101}],54:[function(require,module,exports){"use strict";var traverse=require("../../../traverse");var object=require("../../../helpers/object");var util=require("../../../util");var t=require("../../../types");var _=require("lodash");var isLet=function(node,parent){if(!t.isVariableDeclaration(node))return false;if(node._let)return true;if(node.kind!=="let")return false;if(!t.isFor(parent)||t.isFor(parent)&&parent.left!==node){for(var i=0;i<node.declarations.length;i++){var declar=node.declarations[i];declar.init=declar.init||t.identifier("undefined")}}node._let=true;node.kind="var";return true};var isVar=function(node,parent){return t.isVariableDeclaration(node,{kind:"var"})&&!isLet(node,parent)};var standardiseLets=function(declars){for(var i=0;i<declars.length;i++){delete declars[i]._let}};exports.VariableDeclaration=function(node,parent){isLet(node,parent)};exports.Loop=function(node,parent,scope,context,file){var init=node.left||node.init;if(isLet(init,node)){t.ensureBlock(node);node.body._letDeclarators=[init]}if(t.isLabeledStatement(parent)){node.label=parent.label}var letScoping=new LetScoping(node,node.body,parent,scope,file);letScoping.run();if(node.label&&!t.isLabeledStatement(parent)){return t.labeledStatement(node.label,node)}};exports.Program=exports.BlockStatement=function(block,parent,scope,context,file){if(!t.isLoop(parent)){var letScoping=new LetScoping(false,block,parent,scope,file);letScoping.run()}};function LetScoping(loopParent,block,parent,scope,file){this.loopParent=loopParent;this.parent=parent;this.scope=scope;this.block=block;this.file=file;this.outsideLetReferences=object();this.hasLetReferences=false;this.letReferences=block._letReferences=object();this.body=[]}LetScoping.prototype.run=function(){var block=this.block;if(block._letDone)return;block._letDone=true;var needsClosure=this.getLetReferences();if(t.isFunction(this.parent)||t.isProgram(this.block))return;if(!this.hasLetReferences)return;if(needsClosure){this.needsClosure()}else{this.remap()}};function replace(node,parent,scope,context,remaps){if(!t.isReferencedIdentifier(node,parent))return;var remap=remaps[node.name];if(!remap)return;var own=scope.get(node.name,true);if(own===remap.node){node.name=remap.uid}else{if(context)context.skip()}}var replaceVisitor={enter:replace};function traverseReplace(node,parent,scope,remaps){replace(node,parent,scope,null,remaps);traverse(node,replaceVisitor,scope,remaps)}LetScoping.prototype.remap=function(){var hasRemaps=false;var letRefs=this.letReferences;var scope=this.scope;var remaps=object();for(var key in letRefs){var ref=letRefs[key];if(scope.parentHas(key)){var uid=scope.generateUidIdentifier(ref.name).name;ref.name=uid;hasRemaps=true;remaps[key]=remaps[uid]={node:ref,uid:uid}}}if(!hasRemaps)return;var loopParent=this.loopParent;if(loopParent){traverseReplace(loopParent.right,loopParent,scope,remaps);traverseReplace(loopParent.test,loopParent,scope,remaps);traverseReplace(loopParent.update,loopParent,scope,remaps)}traverse(this.block,replaceVisitor,scope,remaps)};LetScoping.prototype.needsClosure=function(){var block=this.block;this.has=this.checkLoop();this.hoistVarDeclarations();var params=_.values(this.outsideLetReferences);var fn=t.functionExpression(null,params,t.blockStatement(block.body));fn._aliasFunction=true;block.body=this.body;var call=t.callExpression(fn,params);var ret=this.scope.generateUidIdentifier("ret");var hasYield=traverse.hasType(fn.body,this.scope,"YieldExpression",t.FUNCTION_TYPES);if(hasYield){fn.generator=true;call=t.yieldExpression(call,true)}var hasAsync=traverse.hasType(fn.body,this.scope,"AwaitExpression",t.FUNCTION_TYPES);if(hasAsync){fn.async=true;call=t.awaitExpression(call,true)}this.build(ret,call)};var letReferenceFunctionVisitor={enter:function(node,parent,scope,context,state){if(!t.isReferencedIdentifier(node,parent))return;if(scope.hasOwn(node.name,true))return;if(!state.letReferences[node.name])return;state.closurify=true}};var letReferenceBlockVisitor={enter:function(node,parent,scope,context,state){if(t.isFunction(node)){traverse(node,letReferenceFunctionVisitor,scope,state);return context.skip()}}};LetScoping.prototype.getLetReferences=function(){var block=this.block;var declarators=block._letDeclarators||[];var declar;for(var i=0;i<declarators.length;i++){declar=declarators[i];_.extend(this.outsideLetReferences,t.getIds(declar,true))}if(block.body){for(i=0;i<block.body.length;i++){declar=block.body[i];if(isLet(declar,block)){declarators=declarators.concat(declar.declarations)}}}for(i=0;i<declarators.length;i++){declar=declarators[i];var keys=t.getIds(declar,true);_.extend(this.letReferences,keys);this.hasLetReferences=true}if(!this.hasLetReferences)return;standardiseLets(declarators);var state={letReferences:this.letReferences,closurify:false};traverse(this.block,letReferenceBlockVisitor,this.scope,state);return state.closurify};var loopVisitor={enter:function(node,parent,scope,context,state){var replace;if(t.isFunction(node)||t.isLoop(node)){return context.skip()}if(node&&!node.label&&state.isLoop){if(t.isBreakStatement(node)){if(t.isSwitchCase(parent))return;state.hasBreak=true;replace=t.returnStatement(t.literal("break"))}else if(t.isContinueStatement(node)){state.hasContinue=true;replace=t.returnStatement(t.literal("continue"))}}if(t.isReturnStatement(node)){state.hasReturn=true;replace=t.returnStatement(t.objectExpression([t.property("init",t.identifier("v"),node.argument||t.identifier("undefined"))]))}if(replace)return t.inherits(replace,node)}};LetScoping.prototype.checkLoop=function(){var state={hasContinue:false,hasReturn:false,hasBreak:false,isLoop:!!this.loopParent};traverse(this.block,loopVisitor,this.scope,state);return state};var hoistVarDeclarationsVisitor={enter:function(node,parent,scope,context,self){if(t.isForStatement(node)){if(isVar(node.init,node)){node.init=t.sequenceExpression(self.pushDeclar(node.init))}}else if(t.isFor(node)){if(isVar(node.left,node)){node.left=node.left.declarations[0].id}}else if(isVar(node,parent)){return self.pushDeclar(node).map(t.expressionStatement)}else if(t.isFunction(node)){return context.skip()}}};LetScoping.prototype.hoistVarDeclarations=function(){traverse(this.block,hoistVarDeclarationsVisitor,this.scope,this)};LetScoping.prototype.pushDeclar=function(node){this.body.push(t.variableDeclaration(node.kind,node.declarations.map(function(declar){return t.variableDeclarator(declar.id)})));var replace=[];for(var i=0;i<node.declarations.length;i++){var declar=node.declarations[i];if(!declar.init)continue;var expr=t.assignmentExpression("=",declar.id,declar.init);replace.push(t.inherits(expr,declar))}return replace};LetScoping.prototype.build=function(ret,call){var has=this.has;if(has.hasReturn||has.hasBreak||has.hasContinue){this.buildHas(ret,call)}else{this.body.push(t.expressionStatement(call))}};LetScoping.prototype.buildHas=function(ret,call){var body=this.body;body.push(t.variableDeclaration("var",[t.variableDeclarator(ret,call)]));var loopParent=this.loopParent;var retCheck;var has=this.has;var cases=[];if(has.hasReturn){retCheck=util.template("let-scoping-return",{RETURN:ret})}if(has.hasBreak||has.hasContinue){if(!loopParent){throw new Error("Has no loop parent but we're trying to reassign breaks "+"and continues, something is going wrong here.")}var label=loopParent.label=loopParent.label||this.scope.generateUidIdentifier("loop");if(has.hasBreak){cases.push(t.switchCase(t.literal("break"),[t.breakStatement(label)]))}if(has.hasContinue){cases.push(t.switchCase(t.literal("continue"),[t.continueStatement(label)]))}if(has.hasReturn){cases.push(t.switchCase(null,[retCheck]))}if(cases.length===1){var single=cases[0];body.push(t.ifStatement(t.binaryExpression("===",ret,single.test),single.consequent[0]))}else{body.push(t.switchStatement(ret,cases))}}else{if(has.hasReturn)body.push(retCheck)}}},{"../../../helpers/object":25,"../../../traverse":97,"../../../types":101,"../../../util":104,lodash:164}],55:[function(require,module,exports){"use strict";var ReplaceSupers=require("../../helpers/replace-supers");var nameMethod=require("../../helpers/name-method");var util=require("../../../util");var t=require("../../../types");exports.ClassDeclaration=function(node,parent,scope,context,file){return new Class(node,file,scope,true).run()};exports.ClassExpression=function(node,parent,scope,context,file){if(!node.id){if(t.isProperty(parent)&&parent.value===node&&!parent.computed&&t.isIdentifier(parent.key)){node.id=parent.key}if(t.isVariableDeclarator(parent)&&t.isIdentifier(parent.id)){node.id=parent.id}}return new Class(node,file,scope,false).run()};function Class(node,file,scope,isStatement){this.isStatement=isStatement;this.scope=scope;this.node=node;this.file=file;this.hasInstanceMutators=false;this.hasStaticMutators=false;this.instanceMutatorMap={};this.staticMutatorMap={};this.hasConstructor=false;this.className=node.id||scope.generateUidIdentifier("class");this.superName=node.superClass;this.isLoose=file.isLoose("es6.classes")}Class.prototype.run=function(){var superName=this.superName;var className=this.className;var file=this.file;var body=this.body=[];var constructor;if(this.node.id){constructor=t.functionDeclaration(className,[],t.blockStatement([]));body.push(constructor)}else{constructor=t.functionExpression(null,[],t.blockStatement([]));body.push(t.variableDeclaration("var",[t.variableDeclarator(className,constructor)]))}this.constructor=constructor;var closureParams=[];var closureArgs=[];if(superName){closureArgs.push(superName);if(!t.isIdentifier(superName)){var superRef=this.scope.generateUidBasedOnNode(superName,this.file);superName=superRef}closureParams.push(superName);this.superName=superName;body.push(t.expressionStatement(t.callExpression(file.addHelper("inherits"),[className,superName])))}this.buildBody();t.inheritsComments(body[0],this.node);var init;if(body.length===1){init=t.toExpression(constructor)}else{body.push(t.returnStatement(className));init=t.callExpression(t.functionExpression(null,closureParams,t.blockStatement(body)),closureArgs)}if(this.isStatement){return t.variableDeclaration("let",[t.variableDeclarator(className,init)])}else{return init}};Class.prototype.buildBody=function(){var constructor=this.constructor;var className=this.className;var superName=this.superName;var classBody=this.node.body.body;var body=this.body;for(var i=0;i<classBody.length;i++){var node=classBody[i];if(t.isMethodDefinition(node)){var replaceSupers=new ReplaceSupers({methodNode:node,className:this.className,superName:this.superName,isLoose:this.isLoose,scope:this.scope,file:this.file});replaceSupers.replace();if(node.key.name==="constructor"){this.pushConstructor(node)}else{this.pushMethod(node)}}else if(t.isPrivateDeclaration(node)){this.closure=true;body.unshift(node)}}if(!this.hasConstructor&&superName&&!t.isFalsyExpression(superName)){var defaultConstructorTemplate="class-super-constructor-call";if(this.isLoose)defaultConstructorTemplate+="-loose";constructor.body.body.push(util.template(defaultConstructorTemplate,{CLASS_NAME:className,SUPER_NAME:this.superName},true))}var instanceProps;var staticProps;if(this.hasInstanceMutators){instanceProps=util.buildDefineProperties(this.instanceMutatorMap)}if(this.hasStaticMutators){staticProps=util.buildDefineProperties(this.staticMutatorMap)}if(instanceProps||staticProps){staticProps=staticProps||t.literal(null);var args=[className,staticProps];if(instanceProps)args.push(instanceProps);body.push(t.expressionStatement(t.callExpression(this.file.addHelper("prototype-properties"),args)))}};Class.prototype.pushMethod=function(node){var methodName=node.key;var kind=node.kind;if(kind===""){nameMethod.property(node,this.file,this.scope);if(this.isLoose){var className=this.className;if(!node.static)className=t.memberExpression(className,t.identifier("prototype"));methodName=t.memberExpression(className,methodName,node.computed);var expr=t.expressionStatement(t.assignmentExpression("=",methodName,node.value));t.inheritsComments(expr,node);this.body.push(expr);return}kind="value"}var mutatorMap=this.instanceMutatorMap;if(node.static){this.hasStaticMutators=true;mutatorMap=this.staticMutatorMap}else{this.hasInstanceMutators=true}util.pushMutatorMap(mutatorMap,methodName,kind,node.computed,node)};Class.prototype.pushConstructor=function(method){if(method.kind){throw this.file.errorWithNode(method,"illegal kind for constructor method")}var construct=this.constructor;var fn=method.value;this.hasConstructor=true;t.inherits(construct,fn);t.inheritsComments(construct,method);construct._ignoreUserWhitespace=true;construct.params=fn.params;construct.body=fn.body}},{"../../../types":101,"../../../util":104,"../../helpers/name-method":32,"../../helpers/replace-supers":34}],56:[function(require,module,exports){"use strict";var traverse=require("../../../traverse");var t=require("../../../types");
var visitor={enter:function(node,parent,scope,context,state){if(t.isDeclaration(node)||t.isAssignmentExpression(node)){var ids=t.getIds(node,true);for(var key in ids){var id=ids[key];var constant=state.constants[key];if(!constant)continue;if(id===constant)continue;throw state.file.errorWithNode(id,key+" is read-only")}}else if(t.isScope(node)){context.skip()}}};exports.Scope=function(node,parent,scope,context,file){traverse(node,visitor,scope,{constants:scope.getAllOfKind("const"),file:file})};exports.VariableDeclaration=function(node){if(node.kind==="const")node.kind="let"}},{"../../../traverse":97,"../../../types":101}],57:[function(require,module,exports){"use strict";var t=require("../../../types");var buildVariableAssign=function(opts,id,init){var op=opts.operator;if(t.isMemberExpression(id))op="=";var node;if(op){node=t.expressionStatement(t.assignmentExpression(op,id,init))}else{node=t.variableDeclaration(opts.kind,[t.variableDeclarator(id,init)])}node._blockHoist=opts.blockHoist;return node};var buildVariableDeclar=function(opts,id,init){var declar=t.variableDeclaration("var",[t.variableDeclarator(id,init)]);declar._blockHoist=opts.blockHoist;return declar};var push=function(opts,nodes,elem,parentId){if(t.isObjectPattern(elem)){pushObjectPattern(opts,nodes,elem,parentId)}else if(t.isArrayPattern(elem)){pushArrayPattern(opts,nodes,elem,parentId)}else if(t.isAssignmentPattern(elem)){pushAssignmentPattern(opts,nodes,elem,parentId)}else{nodes.push(buildVariableAssign(opts,elem,parentId))}};var pushAssignmentPattern=function(opts,nodes,pattern,parentId){var tempParentId=opts.scope.generateUidBasedOnNode(parentId,opts.file);nodes.push(t.variableDeclaration("var",[t.variableDeclarator(tempParentId,parentId)]));nodes.push(buildVariableAssign(opts,pattern.left,t.conditionalExpression(t.binaryExpression("===",tempParentId,t.identifier("undefined")),pattern.right,tempParentId)))};var pushObjectPattern=function(opts,nodes,pattern,parentId){for(var i=0;i<pattern.properties.length;i++){var prop=pattern.properties[i];if(t.isSpreadProperty(prop)){var keys=[];for(var i2=0;i2<pattern.properties.length;i2++){var prop2=pattern.properties[i2];if(i2>=i)break;if(t.isSpreadProperty(prop2))continue;var key=prop2.key;if(t.isIdentifier(key)){key=t.literal(prop2.key.name)}keys.push(key)}keys=t.arrayExpression(keys);var value=t.callExpression(opts.file.addHelper("object-without-properties"),[parentId,keys]);nodes.push(buildVariableAssign(opts,prop.argument,value))}else{if(t.isLiteral(prop.key))prop.computed=true;var pattern2=prop.value;var patternId2=t.memberExpression(parentId,prop.key,prop.computed);if(t.isPattern(pattern2)){push(opts,nodes,pattern2,patternId2)}else{nodes.push(buildVariableAssign(opts,pattern2,patternId2))}}}};var pushArrayPattern=function(opts,nodes,pattern,parentId){if(!pattern.elements)return;var i;var hasRest=false;for(i=0;i<pattern.elements.length;i++){if(t.isRestElement(pattern.elements[i])){hasRest=true;break}}var toArray=opts.file.toArray(parentId,!hasRest&&pattern.elements.length);var _parentId=opts.scope.generateUidBasedOnNode(parentId,opts.file);nodes.push(buildVariableDeclar(opts,_parentId,toArray));parentId=_parentId;for(i=0;i<pattern.elements.length;i++){var elem=pattern.elements[i];if(!elem)continue;i=+i;var newPatternId;if(t.isRestElement(elem)){newPatternId=opts.file.toArray(parentId);if(i>0){newPatternId=t.callExpression(t.memberExpression(newPatternId,t.identifier("slice")),[t.literal(i)])}elem=elem.argument}else{newPatternId=t.memberExpression(parentId,t.literal(i),true)}push(opts,nodes,elem,newPatternId)}};var pushPattern=function(opts){var nodes=opts.nodes;var pattern=opts.pattern;var parentId=opts.id;var scope=opts.scope;if(!t.isArrayExpression(parentId)&&!t.isMemberExpression(parentId)&&!t.isIdentifier(parentId)){var key=scope.generateUidBasedOnNode(parentId);nodes.push(buildVariableDeclar(opts,key,parentId));parentId=key}push(opts,nodes,pattern,parentId)};exports.ForInStatement=exports.ForOfStatement=function(node,parent,scope,context,file){var declar=node.left;if(!t.isVariableDeclaration(declar))return;var pattern=declar.declarations[0].id;if(!t.isPattern(pattern))return;var key=scope.generateUidIdentifier("ref");node.left=t.variableDeclaration(declar.kind,[t.variableDeclarator(key,null)]);var nodes=[];push({kind:declar.kind,file:file,scope:scope},nodes,pattern,key);t.ensureBlock(node);var block=node.body;block.body=nodes.concat(block.body)};exports.Function=function(node,parent,scope,context,file){var nodes=[];var hasDestructuring=false;node.params=node.params.map(function(pattern,i){if(!t.isPattern(pattern))return pattern;hasDestructuring=true;var parentId=scope.generateUidIdentifier("ref");pushPattern({blockHoist:node.params.length-i,pattern:pattern,nodes:nodes,scope:scope,file:file,kind:"var",id:parentId});return parentId});if(!hasDestructuring)return;t.ensureBlock(node);var block=node.body;block.body=nodes.concat(block.body)};exports.CatchClause=function(node,parent,scope,context,file){var pattern=node.param;if(!t.isPattern(pattern))return;var ref=scope.generateUidIdentifier("ref");node.param=ref;var nodes=[];push({kind:"var",file:file,scope:scope},nodes,pattern,ref);node.body.body=nodes.concat(node.body.body)};exports.ExpressionStatement=function(node,parent,scope,context,file){var expr=node.expression;if(expr.type!=="AssignmentExpression")return;if(!t.isPattern(expr.left))return;if(file.isConsequenceExpressionStatement(node))return;var nodes=[];var ref=scope.generateUidIdentifier("ref");nodes.push(t.variableDeclaration("var",[t.variableDeclarator(ref,expr.right)]));push({operator:expr.operator,file:file,scope:scope},nodes,expr.left,ref);return nodes};exports.AssignmentExpression=function(node,parent,scope,context,file){if(!t.isPattern(node.left))return;var ref=scope.generateUidIdentifier("temp");scope.push({key:ref.name,id:ref});var nodes=[];nodes.push(t.assignmentExpression("=",ref,node.right));push({operator:node.operator,file:file,scope:scope},nodes,node.left,ref);nodes.push(ref);return t.toSequenceExpression(nodes,scope)};exports.VariableDeclaration=function(node,parent,scope,context,file){if(t.isForInStatement(parent)||t.isForOfStatement(parent))return;var nodes=[];var i;var declar;var hasPattern=false;for(i=0;i<node.declarations.length;i++){declar=node.declarations[i];if(t.isPattern(declar.id)){hasPattern=true;break}}if(!hasPattern)return;for(i=0;i<node.declarations.length;i++){declar=node.declarations[i];var patternId=declar.init;var pattern=declar.id;var opts={pattern:pattern,nodes:nodes,scope:scope,kind:node.kind,file:file,id:patternId};if(t.isPattern(pattern)&&patternId){pushPattern(opts);if(+i!==node.declarations.length-1){t.inherits(nodes[nodes.length-1],declar)}}else{nodes.push(t.inherits(buildVariableAssign(opts,declar.id,declar.init),declar))}}if(!t.isProgram(parent)&&!t.isBlockStatement(parent)){declar=null;for(i=0;i<nodes.length;i++){node=nodes[i];declar=declar||t.variableDeclaration(node.kind,[]);if(!t.isVariableDeclaration(node)&&declar.kind!==node.kind){throw file.errorWithNode(node,"Cannot use this node within the current parent")}declar.declarations=declar.declarations.concat(node.declarations)}return declar}return nodes}},{"../../../types":101}],58:[function(require,module,exports){"use strict";var util=require("../../../util");var t=require("../../../types");exports.ForOfStatement=function(node,parent,scope,context,file){var callback=spec;if(file.isLoose("es6.forOf"))callback=loose;var build=callback(node,parent,scope,context,file);var declar=build.declar;var loop=build.loop;var block=loop.body;t.inheritsComments(loop,node);t.ensureBlock(node);if(declar){if(build.shouldUnshift){block.body.unshift(declar)}else{block.body.push(declar)}}block.body=block.body.concat(node.body.body);loop._scopeInfo=node._scopeInfo;return loop};var loose=function(node,parent,scope,context,file){var left=node.left;var declar,id;if(t.isIdentifier(left)||t.isPattern(left)){id=left}else if(t.isVariableDeclaration(left)){id=left.declarations[0].id;declar=t.variableDeclaration(left.kind,[t.variableDeclarator(id)])}else{throw file.errorWithNode(left,"Unknown node type "+left.type+" in ForOfStatement")}var loop=util.template("for-of-loose",{LOOP_OBJECT:scope.generateUidIdentifier("iterator"),IS_ARRAY:scope.generateUidIdentifier("isArray"),OBJECT:node.right,INDEX:scope.generateUidIdentifier("i"),ID:id});return{shouldUnshift:true,declar:declar,loop:loop}};var spec=function(node,parent,scope,context,file){var left=node.left;var declar;var stepKey=scope.generateUidIdentifier("step");var stepValue=t.memberExpression(stepKey,t.identifier("value"));if(t.isIdentifier(left)||t.isPattern(left)){declar=t.expressionStatement(t.assignmentExpression("=",left,stepValue))}else if(t.isVariableDeclaration(left)){declar=t.variableDeclaration(left.kind,[t.variableDeclarator(left.declarations[0].id,stepValue)])}else{throw file.errorWithNode(left,"Unknown node type "+left.type+" in ForOfStatement")}var loop=util.template("for-of",{ITERATOR_KEY:scope.generateUidIdentifier("iterator"),STEP_KEY:stepKey,OBJECT:node.right});return{declar:declar,loop:loop}}},{"../../../types":101,"../../../util":104}],59:[function(require,module,exports){"use strict";var t=require("../../../types");exports.ImportDeclaration=function(node,parent,scope,context,file){var nodes=[];if(node.specifiers.length){for(var i=0;i<node.specifiers.length;i++){file.moduleFormatter.importSpecifier(node.specifiers[i],node,nodes,parent)}}else{file.moduleFormatter.importDeclaration(node,nodes,parent)}if(nodes.length===1){nodes[0]._blockHoist=node._blockHoist}return nodes};exports.ExportDeclaration=function(node,parent,scope,context,file){var nodes=[];var i;if(node.declaration){if(t.isVariableDeclaration(node.declaration)){var declar=node.declaration.declarations[0];declar.init=declar.init||t.identifier("undefined")}file.moduleFormatter.exportDeclaration(node,nodes,parent)}else if(node.specifiers){for(i=0;i<node.specifiers.length;i++){file.moduleFormatter.exportSpecifier(node.specifiers[i],node,nodes,parent)}}if(node._blockHoist){for(i=0;i<nodes.length;i++){nodes[i]._blockHoist=node._blockHoist}}return nodes}},{"../../../types":101}],60:[function(require,module,exports){"use strict";var traverse=require("../../../traverse");var util=require("../../../util");var t=require("../../../types");var hasDefaults=function(node){for(var i=0;i<node.params.length;i++){if(t.isAssignmentPattern(node.params[i]))return true}return false};var iifeVisitor={enter:function(node,parent,scope,context,state){if(t.isReferencedIdentifier(node,parent)&&scope.hasOwn(node.name)){state.iife=true;context.stop()}}};exports.Function=function(node,parent,scope){if(!hasDefaults(node))return;t.ensureBlock(node);var body=[];var argsIdentifier=t.identifier("arguments");argsIdentifier._ignoreAliasFunctions=true;var lastNonDefaultParam=0;var state={iife:false,scope:scope};for(var i=0;i<node.params.length;i++){var param=node.params[i];if(!t.isAssignmentPattern(param)){lastNonDefaultParam=+i+1;continue}var left=param.left;var right=param.right;node.params[i]=scope.generateUidIdentifier("x");if(!state.iife){if(t.isIdentifier(right)&&scope.hasOwn(right.name)){state.iife=true}else{traverse(right,iifeVisitor,scope,state)}}var defNode=util.template("default-parameter",{VARIABLE_NAME:left,DEFAULT_VALUE:right,ARGUMENT_KEY:t.literal(+i),ARGUMENTS:argsIdentifier},true);defNode._blockHoist=node.params.length-i;body.push(defNode)}node.params=node.params.slice(0,lastNonDefaultParam);if(state.iife){var container=t.functionExpression(null,[],node.body,node.generator);container._aliasFunction=true;body.push(t.returnStatement(t.callExpression(container,[])));node.body=t.blockStatement(body)}else{node.body.body=body.concat(node.body.body)}}},{"../../../traverse":97,"../../../types":101,"../../../util":104}],61:[function(require,module,exports){"use strict";var util=require("../../../util");var t=require("../../../types");var hasRest=function(node){return t.isRestElement(node.params[node.params.length-1])};exports.Function=function(node,parent,scope){if(!hasRest(node))return;var rest=node.params.pop().argument;t.ensureBlock(node);var argsId=t.identifier("arguments");argsId._ignoreAliasFunctions=true;var start=t.literal(node.params.length);var key=scope.generateUidIdentifier("key");var len=scope.generateUidIdentifier("len");var arrKey=key;var arrLen=len;if(node.params.length){arrKey=t.binaryExpression("-",key,start);arrLen=t.conditionalExpression(t.binaryExpression(">",len,start),t.binaryExpression("-",len,start),t.literal(0))}if(t.isPattern(rest)){var pattern=rest;rest=scope.generateUidIdentifier("ref");var restDeclar=t.variableDeclaration("var",[t.variableDeclarator(pattern,rest)]);restDeclar._blockHoist=node.params.length+1;node.body.body.unshift(restDeclar)}node.body.body.unshift(util.template("rest",{ARGUMENTS:argsId,ARRAY_KEY:arrKey,ARRAY_LEN:arrLen,START:start,ARRAY:rest,KEY:key,LEN:len}))}},{"../../../types":101,"../../../util":104}],62:[function(require,module,exports){"use strict";var t=require("../../../types");exports.ObjectExpression=function(node,parent,scope,context,file){var hasComputed=false;for(var i=0;i<node.properties.length;i++){hasComputed=t.isProperty(node.properties[i],{computed:true,kind:"init"});if(hasComputed)break}if(!hasComputed)return;var initProps=[];var objId=scope.generateUidBasedOnNode(parent);var body=[];var container=t.functionExpression(null,[],t.blockStatement(body));container._aliasFunction=true;var callback=spec;if(file.isLoose("es6.properties.computed"))callback=loose;var result=callback(node,body,objId,initProps,file);if(result)return result;body.unshift(t.variableDeclaration("var",[t.variableDeclarator(objId,t.objectExpression(initProps))]));body.push(t.returnStatement(objId));return t.callExpression(container,[])};var loose=function(node,body,objId){for(var i=0;i<node.properties.length;i++){var prop=node.properties[i];body.push(t.expressionStatement(t.assignmentExpression("=",t.memberExpression(objId,prop.key,prop.computed),prop.value)))}};var spec=function(node,body,objId,initProps,file){var props=node.properties;var prop,key;for(var i=0;i<props.length;i++){prop=props[i];if(prop.kind!=="init")continue;key=prop.key;if(!prop.computed&&t.isIdentifier(key)){prop.key=t.literal(key.name)}}var broken=false;for(i=0;i<props.length;i++){prop=props[i];if(prop.computed){broken=true}if(prop.kind!=="init"||!broken||t.isLiteral(t.toComputedKey(prop,prop.key),{value:"__proto__"})){initProps.push(prop);props[i]=null}}for(i=0;i<props.length;i++){prop=props[i];if(!prop)continue;key=prop.key;var bodyNode;if(prop.computed&&t.isMemberExpression(key)&&t.isIdentifier(key.object,{name:"Symbol"})){bodyNode=t.assignmentExpression("=",t.memberExpression(objId,key,true),prop.value)}else{bodyNode=t.callExpression(file.addHelper("define-property"),[objId,key,prop.value])}body.push(t.expressionStatement(bodyNode))}if(body.length===1){var first=body[0].expression;if(t.isCallExpression(first)){first.arguments[0]=t.objectExpression(initProps);return first}}}},{"../../../types":101}],63:[function(require,module,exports){"use strict";var nameMethod=require("../../helpers/name-method");var t=require("../../../types");var _=require("lodash");exports.Property=function(node,parent,scope,context,file){if(node.method){node.method=false;nameMethod.property(node,file,scope)}if(node.shorthand){node.shorthand=false;node.key=t.removeComments(_.clone(node.key))}}},{"../../../types":101,"../../helpers/name-method":32,lodash:164}],64:[function(require,module,exports){"use strict";var t=require("../../../types");var _=require("lodash");var getSpreadLiteral=function(spread,file){return file.toArray(spread.argument)};var hasSpread=function(nodes){for(var i=0;i<nodes.length;i++){if(t.isSpreadElement(nodes[i])){return true}}return false};var build=function(props,file){var nodes=[];var _props=[];var push=function(){if(!_props.length)return;nodes.push(t.arrayExpression(_props));_props=[]};for(var i=0;i<props.length;i++){var prop=props[i];if(t.isSpreadElement(prop)){push();nodes.push(getSpreadLiteral(prop,file))}else{_props.push(prop)}}push();return nodes};exports.ArrayExpression=function(node,parent,scope,context,file){var elements=node.elements;if(!hasSpread(elements))return;var nodes=build(elements,file);var first=nodes.shift();if(!t.isArrayExpression(first)){nodes.unshift(first);first=t.arrayExpression([])}return t.callExpression(t.memberExpression(first,t.identifier("concat")),nodes)};exports.CallExpression=function(node,parent,scope,context,file){var args=node.arguments;if(!hasSpread(args))return;var contextLiteral=t.identifier("undefined");node.arguments=[];var nodes;if(args.length===1&&args[0].argument.name==="arguments"){nodes=[args[0].argument]}else{nodes=build(args,file)}var first=nodes.shift();if(nodes.length){node.arguments.push(t.callExpression(t.memberExpression(first,t.identifier("concat")),nodes))}else{node.arguments.push(first)}var callee=node.callee;if(t.isMemberExpression(callee)){var temp=scope.generateTempBasedOnNode(callee.object);if(temp){callee.object=t.assignmentExpression("=",temp,callee.object);contextLiteral=temp}else{contextLiteral=callee.object}t.appendToMemberExpression(callee,t.identifier("apply"))}else{node.callee=t.memberExpression(node.callee,t.identifier("apply"))}node.arguments.unshift(contextLiteral)};exports.NewExpression=function(node,parent,scope,context,file){var args=node.arguments;if(!hasSpread(args))return;var nativeType=t.isIdentifier(node.callee)&&_.contains(t.NATIVE_TYPE_NAMES,node.callee.name);var nodes=build(args,file);if(nativeType){nodes.unshift(t.arrayExpression([t.literal(null)]))}var first=nodes.shift();if(nodes.length){args=t.callExpression(t.memberExpression(first,t.identifier("concat")),nodes)}else{args=first}if(nativeType){return t.newExpression(t.callExpression(t.memberExpression(file.addHelper("bind"),t.identifier("apply")),[node.callee,args]),[])}else{return t.callExpression(file.addHelper("apply-constructor"),[node.callee,args])}}},{"../../../types":101,lodash:164}],65:[function(require,module,exports){"use strict";var t=require("../../../types");var buildBinaryExpression=function(left,right){return t.binaryExpression("+",left,right)};exports.TaggedTemplateExpression=function(node,parent,scope,context,file){var args=[];var quasi=node.quasi;var strings=[];var raw=[];for(var i=0;i<quasi.quasis.length;i++){var elem=quasi.quasis[i];strings.push(t.literal(elem.value.cooked));raw.push(t.literal(elem.value.raw))}strings=t.arrayExpression(strings);raw=t.arrayExpression(raw);var templateName="tagged-template-literal";if(file.isLoose("es6.templateLiterals"))templateName+="-loose";args.push(t.callExpression(file.addHelper(templateName),[strings,raw]));args=args.concat(quasi.expressions);return t.callExpression(node.tag,args)};exports.TemplateLiteral=function(node){var nodes=[];var i;for(i=0;i<node.quasis.length;i++){var elem=node.quasis[i];nodes.push(t.literal(elem.value.cooked));var expr=node.expressions.shift();if(expr)nodes.push(expr)}if(nodes.length>1){var last=nodes[nodes.length-1];if(t.isLiteral(last,{value:""}))nodes.pop();var root=buildBinaryExpression(nodes.shift(),nodes.shift());for(i=0;i<nodes.length;i++){root=buildBinaryExpression(root,nodes[i])}return root}else{return nodes[0]}}},{"../../../types":101}],66:[function(require,module,exports){"use strict";var rewritePattern=require("regexpu/rewrite-pattern");var _=require("lodash");exports.Literal=function(node){var regex=node.regex;if(!regex)return;var flags=regex.flags.split("");if(regex.flags.indexOf("u")<0)return;_.pull(flags,"u");regex.pattern=rewritePattern(regex.pattern,regex.flags);regex.flags=flags.join("")}},{lodash:164,"regexpu/rewrite-pattern":180}],67:[function(require,module,exports){"use strict";var util=require("../../../util");var t=require("../../../types");exports.experimental=true;var container=function(parent,call,ret,file){if(t.isExpressionStatement(parent)&&!file.isConsequenceExpressionStatement(parent)){return call}else{var exprs=[];if(t.isSequenceExpression(call)){exprs=call.expressions}else{exprs.push(call)}exprs.push(ret);return t.sequenceExpression(exprs)}};exports.AssignmentExpression=function(node,parent,scope,context,file){var left=node.left;if(!t.isVirtualPropertyExpression(left))return;var value=node.right;var temp;if(!t.isExpressionStatement(parent)){temp=scope.generateTempBasedOnNode(node.right);if(temp)value=temp}if(node.operator!=="="){value=t.binaryExpression(node.operator[0],util.template("abstract-expression-get",{PROPERTY:node.property,OBJECT:node.object}),value)}var call=util.template("abstract-expression-set",{PROPERTY:left.property,OBJECT:left.object,VALUE:value});if(temp){call=t.sequenceExpression([t.assignmentExpression("=",temp,node.right),call])}return container(parent,call,value,file)};exports.UnaryExpression=function(node,parent,scope,context,file){var arg=node.argument;if(!t.isVirtualPropertyExpression(arg))return;if(node.operator!=="delete")return;var call=util.template("abstract-expression-delete",{PROPERTY:arg.property,OBJECT:arg.object});return container(parent,call,t.literal(true),file)};exports.CallExpression=function(node,parent,scope){var callee=node.callee;if(!t.isVirtualPropertyExpression(callee))return;var temp=scope.generateTempBasedOnNode(callee.object);var call=util.template("abstract-expression-call",{PROPERTY:callee.property,OBJECT:temp||callee.object});call.arguments=call.arguments.concat(node.arguments);if(temp){return t.sequenceExpression([t.assignmentExpression("=",temp,callee.object),call])}else{return call}};exports.VirtualPropertyExpression=function(node){return util.template("abstract-expression-get",{PROPERTY:node.property,OBJECT:node.object})};exports.PrivateDeclaration=function(node){return t.variableDeclaration("const",node.declarations.map(function(id){return t.variableDeclarator(id,t.newExpression(t.identifier("WeakMap"),[]))}))}},{"../../../types":101,"../../../util":104}],68:[function(require,module,exports){"use strict";var buildComprehension=require("../../helpers/build-comprehension");var traverse=require("../../../traverse");var util=require("../../../util");var t=require("../../../types");exports.experimental=true;exports.ComprehensionExpression=function(node,parent,scope,context,file){var callback=array;if(node.generator)callback=generator;return callback(node,parent,scope,file)};var generator=function(node){var body=[];var container=t.functionExpression(null,[],t.blockStatement(body),true);container._aliasFunction=true;body.push(buildComprehension(node,function(){return t.expressionStatement(t.yieldExpression(node.body))}));return t.callExpression(container,[])};var array=function(node,parent,scope,file){var uid=scope.generateUidBasedOnNode(parent,file);var container=util.template("array-comprehension-container",{KEY:uid});container.callee._aliasFunction=true;var block=container.callee.body;var body=block.body;if(traverse.hasType(node,scope,"YieldExpression",t.FUNCTION_TYPES)){container.callee.generator=true;container=t.yieldExpression(container,true)}var returnStatement=body.pop();body.push(buildComprehension(node,function(){return util.template("array-push",{STATEMENT:node.body,KEY:uid},true)}));body.push(returnStatement);return container}},{"../../../traverse":97,"../../../types":101,"../../../util":104,"../../helpers/build-comprehension":29}],69:[function(require,module,exports){"use strict";exports.experimental=true;var build=require("../../helpers/build-binary-assignment-operator-transformer");var t=require("../../../types");var MATH_POW=t.memberExpression(t.identifier("Math"),t.identifier("pow"));build(exports,{operator:"**",build:function(left,right){return t.callExpression(MATH_POW,[left,right])}})},{"../../../types":101,"../../helpers/build-binary-assignment-operator-transformer":28}],70:[function(require,module,exports){"use strict";var t=require("../../../types");exports.experimental=true;exports.ObjectExpression=function(node,parent,scope,context,file){var hasSpread=false;var i;var prop;for(i=0;i<node.properties.length;i++){prop=node.properties[i];if(t.isSpreadProperty(prop)){hasSpread=true;break}}if(!hasSpread)return;var args=[];var props=[];var push=function(){if(!props.length)return;args.push(t.objectExpression(props));props=[]};for(i=0;i<node.properties.length;i++){prop=node.properties[i];if(t.isSpreadProperty(prop)){push();args.push(prop.argument)}else{props.push(prop)}}push();if(!t.isObjectExpression(args[0])){args.unshift(t.objectExpression([]))}return t.callExpression(file.addHelper("extends"),args)}},{"../../../types":101}],71:[function(require,module,exports){module.exports={useStrict:require("./other/use-strict"),"validation.undeclaredVariableCheck":require("./validation/undeclared-variable-check"),"validation.noForInOfAssignment":require("./validation/no-for-in-of-assignment"),"validation.setters":require("./validation/setters"),"spec.blockScopedFunctions":require("./spec/block-scoped-functions"),"playground.malletOperator":require("./playground/mallet-operator"),"playground.methodBinding":require("./playground/method-binding"),"playground.memoizationOperator":require("./playground/memoization-operator"),"playground.objectGetterMemoization":require("./playground/object-getter-memoization"),react:require("./other/react"),_modulesSplit:require("./internal/modules-split"),"es7.comprehensions":require("./es7/comprehensions"),"es6.arrowFunctions":require("./es6/arrow-functions"),"es6.classes":require("./es6/classes"),asyncToGenerator:require("./other/async-to-generator"),bluebirdCoroutines:require("./other/bluebird-coroutines"),"es7.objectSpread":require("./es7/object-spread"),"es7.exponentiationOperator":require("./es7/exponentiation-operator"),"es6.spread":require("./es6/spread"),"es6.templateLiterals":require("./es6/template-literals"),"es5.properties.mutators":require("./es5/properties.mutators"),"es6.properties.shorthand":require("./es6/properties.shorthand"),"es6.properties.computed":require("./es6/properties.computed"),"es6.forOf":require("./es6/for-of"),"es6.unicodeRegex":require("./es6/unicode-regex"),"es7.abstractReferences":require("./es7/abstract-references"),"es6.constants":require("./es6/constants"),"es6.blockScoping":require("./es6/block-scoping"),"es6.blockScopingTDZ":require("./es6/block-scoping-tdz"),regenerator:require("./other/regenerator"),"es6.parameters.default":require("./es6/parameters.default"),"es6.parameters.rest":require("./es6/parameters.rest"),"es6.destructuring":require("./es6/destructuring"),selfContained:require("./other/self-contained"),"es6.modules":require("./es6/modules"),_blockHoist:require("./internal/block-hoist"),"spec.protoToAssign":require("./spec/proto-to-assign"),_declarations:require("./internal/declarations"),_aliasFunctions:require("./internal/alias-functions"),_moduleFormatter:require("./internal/module-formatter"),"spec.typeofSymbol":require("./spec/typeof-symbol"),"spec.undefinedToVoid":require("./spec/undefined-to-void"),"minification.propertyLiterals":require("./minification/property-literals"),"minification.memberExpressionLiterals":require("./minification/member-expression-literals")}},{"./es5/properties.mutators":51,"./es6/arrow-functions":52,"./es6/block-scoping":54,"./es6/block-scoping-tdz":53,"./es6/classes":55,"./es6/constants":56,"./es6/destructuring":57,"./es6/for-of":58,"./es6/modules":59,"./es6/parameters.default":60,"./es6/parameters.rest":61,"./es6/properties.computed":62,"./es6/properties.shorthand":63,"./es6/spread":64,"./es6/template-literals":65,"./es6/unicode-regex":66,"./es7/abstract-references":67,"./es7/comprehensions":68,"./es7/exponentiation-operator":69,"./es7/object-spread":70,"./internal/alias-functions":72,"./internal/block-hoist":73,"./internal/declarations":74,"./internal/module-formatter":75,"./internal/modules-split":76,"./minification/member-expression-literals":77,"./minification/property-literals":78,"./other/async-to-generator":79,"./other/bluebird-coroutines":80,"./other/react":81,"./other/regenerator":82,"./other/self-contained":83,"./other/use-strict":84,"./playground/mallet-operator":85,"./playground/memoization-operator":86,"./playground/method-binding":87,"./playground/object-getter-memoization":88,"./spec/block-scoped-functions":89,"./spec/proto-to-assign":90,"./spec/typeof-symbol":91,"./spec/undefined-to-void":92,"./validation/no-for-in-of-assignment":93,"./validation/setters":94,"./validation/undeclared-variable-check":95}],72:[function(require,module,exports){"use strict";var traverse=require("../../../traverse");var t=require("../../../types");var functionChildrenVisitor={enter:function(node,parent,scope,context,state){if(t.isFunction(node)&&!node._aliasFunction){return context.skip()}if(node._ignoreAliasFunctions)return context.skip();var getId;if(t.isIdentifier(node)&&node.name==="arguments"){getId=state.getArgumentsId}else if(t.isThisExpression(node)){getId=state.getThisId}else{return}if(t.isReferenced(node,parent))return getId()}};var functionVisitor={enter:function(node,parent,scope,context,state){if(!node._aliasFunction){if(t.isFunction(node)){return context.skip()}else{return}}traverse(node,functionChildrenVisitor,scope,state);return context.skip()}};var go=function(getBody,node,scope){var argumentsId;var thisId;var state={getArgumentsId:function(){return argumentsId=argumentsId||scope.generateUidIdentifier("arguments")},getThisId:function(){return thisId=thisId||scope.generateUidIdentifier("this")}};traverse(node,functionVisitor,scope,state);var body;var pushDeclaration=function(id,init){body=body||getBody();body.unshift(t.variableDeclaration("var",[t.variableDeclarator(id,init)]))};if(argumentsId){pushDeclaration(argumentsId,t.identifier("arguments"))}if(thisId){pushDeclaration(thisId,t.thisExpression())}};exports.Program=function(node,parent,scope){go(function(){return node.body},node,scope)};exports.FunctionDeclaration=exports.FunctionExpression=function(node,parent,scope){go(function(){t.ensureBlock(node);return node.body.body},node,scope)}},{"../../../traverse":97,"../../../types":101}],73:[function(require,module,exports){"use strict";var useStrict=require("../../helpers/use-strict");var _=require("lodash");exports.BlockStatement=exports.Program={exit:function(node){var hasChange=false;for(var i=0;i<node.body.length;i++){var bodyNode=node.body[i];if(bodyNode&&bodyNode._blockHoist!=null)hasChange=true}if(!hasChange)return;useStrict.wrap(node,function(){var nodePriorities=_.groupBy(node.body,function(bodyNode){var priority=bodyNode._blockHoist;if(priority==null)priority=1;if(priority===true)priority=2;return priority});node.body=_.flatten(_.values(nodePriorities).reverse())})}}},{"../../helpers/use-strict":35,lodash:164}],74:[function(require,module,exports){"use strict";var useStrict=require("../../helpers/use-strict");var t=require("../../../types");exports.secondPass=true;exports.BlockStatement=exports.Program=function(node){if(!node._declarations)return;var kinds={};var kind;useStrict.wrap(node,function(){for(var i in node._declarations){var declar=node._declarations[i];kind=declar.kind||"var";var declarNode=t.variableDeclarator(declar.id,declar.init);if(!declar.init){kinds[kind]=kinds[kind]||[];kinds[kind].push(declarNode)}else{node.body.unshift(t.variableDeclaration(kind,[declarNode]))}}for(kind in kinds){node.body.unshift(t.variableDeclaration(kind,kinds[kind]))}});node._declarations=null}},{"../../../types":101,"../../helpers/use-strict":35}],75:[function(require,module,exports){"use strict";var useStrict=require("../../helpers/use-strict");exports.ast={exit:function(ast,file){if(!file.transformers["es6.modules"].canRun())return;useStrict.wrap(ast.program,function(){ast.program.body=file.dynamicImports.concat(ast.program.body)});if(file.moduleFormatter.transform){file.moduleFormatter.transform(ast)}}}},{"../../helpers/use-strict":35}],76:[function(require,module,exports){"use strict";var t=require("../../../types");exports.ExportDeclaration=function(node,parent,scope){var declar=node.declaration;
if(node.default){if(t.isClassDeclaration(declar)){node.declaration=declar.id;return[declar,node]}else if(t.isClassExpression(declar)){var temp=scope.generateUidIdentifier("default");declar=t.variableDeclaration("var",[t.variableDeclarator(temp,declar)]);node.declaration=temp;return[declar,node]}}else{if(t.isFunctionDeclaration(declar)){node.specifiers=[t.importSpecifier(declar.id,declar.id)];node.declaration=null;node._blockHoist=2;return[declar,node]}}}},{"../../../types":101}],77:[function(require,module,exports){"use strict";var t=require("../../../types");exports.MemberExpression=function(node){var prop=node.property;if(node.computed&&t.isLiteral(prop)&&t.isValidIdentifier(prop.value)){node.property=t.identifier(prop.value);node.computed=false}else if(!node.computed&&t.isIdentifier(prop)&&!t.isValidIdentifier(prop.name)){node.property=t.literal(prop.name);node.computed=true}}},{"../../../types":101}],78:[function(require,module,exports){"use strict";var t=require("../../../types");exports.Property=function(node){var key=node.key;if(t.isLiteral(key)&&t.isValidIdentifier(key.value)){node.key=t.identifier(key.value);node.computed=false}else if(!node.computed&&t.isIdentifier(key)&&!t.isValidIdentifier(key.name)){node.key=t.literal(key.name)}}},{"../../../types":101}],79:[function(require,module,exports){"use strict";var remapAsyncToGenerator=require("../../helpers/remap-async-to-generator");var bluebirdCoroutines=require("./bluebird-coroutines");exports.optional=true;exports.manipulateOptions=bluebirdCoroutines.manipulateOptions;exports.Function=function(node,parent,scope,context,file){if(!node.async||node.generator)return;return remapAsyncToGenerator(node,file.addHelper("async-to-generator"),scope)}},{"../../helpers/remap-async-to-generator":33,"./bluebird-coroutines":80}],80:[function(require,module,exports){"use strict";var remapAsyncToGenerator=require("../../helpers/remap-async-to-generator");var t=require("../../../types");exports.manipulateOptions=function(opts){opts.experimental=true;opts.blacklist.push("regenerator")};exports.optional=true;exports.Function=function(node,parent,scope,context,file){if(!node.async||node.generator)return;return remapAsyncToGenerator(node,t.memberExpression(file.addImport("bluebird"),t.identifier("coroutine")),scope)}},{"../../../types":101,"../../helpers/remap-async-to-generator":33}],81:[function(require,module,exports){"use strict";var esutils=require("esutils");var t=require("../../../types");exports.JSXIdentifier=function(node){if(esutils.keyword.isIdentifierName(node.name)){node.type="Identifier"}else{return t.literal(node.name)}};exports.JSXNamespacedName=function(node,parent,scope,context,file){throw file.errorWithNode(node,"Namespace tags are not supported. ReactJSX is not XML.")};exports.JSXMemberExpression={exit:function(node){node.computed=t.isLiteral(node.property);node.type="MemberExpression"}};exports.JSXExpressionContainer=function(node){return node.expression};exports.JSXAttribute={exit:function(node){var value=node.value||t.literal(true);return t.inherits(t.property("init",node.name,value),node)}};var isCompatTag=function(tagName){return/^[a-z]|\-/.test(tagName)};exports.JSXOpeningElement={exit:function(node,parent,scope,context,file){var reactCompat=file.opts.reactCompat;var tagExpr=node.name;var args=[];var tagName;if(t.isIdentifier(tagExpr)){tagName=tagExpr.name}else if(t.isLiteral(tagExpr)){tagName=tagExpr.value}if(!reactCompat){if(tagName&&isCompatTag(tagName)){args.push(t.literal(tagName))}else{args.push(tagExpr)}}var attribs=node.attributes;if(attribs.length){attribs=buildJSXOpeningElementAttributes(attribs,file)}else{attribs=t.literal(null)}args.push(attribs);if(reactCompat){if(tagName&&isCompatTag(tagName)){return t.callExpression(t.memberExpression(t.memberExpression(t.identifier("React"),t.identifier("DOM")),tagExpr,t.isLiteral(tagExpr)),args)}}else{tagExpr=t.memberExpression(t.identifier("React"),t.identifier("createElement"))}return t.callExpression(tagExpr,args)}};var buildJSXOpeningElementAttributes=function(attribs,file){var _props=[];var objs=[];var pushProps=function(){if(!_props.length)return;objs.push(t.objectExpression(_props));_props=[]};while(attribs.length){var prop=attribs.shift();if(t.isJSXSpreadAttribute(prop)){pushProps();objs.push(prop.argument)}else{_props.push(prop)}}pushProps();if(objs.length===1){attribs=objs[0]}else{if(!t.isObjectExpression(objs[0])){objs.unshift(t.objectExpression([]))}attribs=t.callExpression(file.addHelper("extends"),objs)}return attribs};exports.JSXElement={exit:function(node){var callExpr=node.openingElement;for(var i=0;i<node.children.length;i++){var child=node.children[i];if(t.isLiteral(child)&&typeof child.value==="string"){cleanJSXElementLiteralChild(child,callExpr.arguments);continue}else if(t.isJSXEmptyExpression(child)){continue}callExpr.arguments.push(child)}if(callExpr.arguments.length>=3){callExpr._prettyCall=true}return t.inherits(callExpr,node)}};var cleanJSXElementLiteralChild=function(child,args){var lines=child.value.split(/\r\n|\n|\r/);for(var i=0;i<lines.length;i++){var line=lines[i];var isFirstLine=i===0;var isLastLine=i===lines.length-1;var trimmedLine=line.replace(/\t/g," ");if(!isFirstLine){trimmedLine=trimmedLine.replace(/^[ ]+/,"")}if(!isLastLine){trimmedLine=trimmedLine.replace(/[ ]+$/,"")}if(trimmedLine){args.push(t.literal(trimmedLine))}}};var isCreateClass=function(call){if(!call||!t.isCallExpression(call))return false;var callee=call.callee;if(!t.isMemberExpression(callee))return false;var obj=callee.object;if(!t.isIdentifier(obj,{name:"React"}))return false;var prop=callee.property;if(!t.isIdentifier(prop,{name:"createClass"}))return false;var args=call.arguments;if(args.length!==1)return false;var first=args[0];if(!t.isObjectExpression(first))return;return true};var addDisplayName=function(id,call){if(!isCreateClass(call))return;var props=call.arguments[0].properties;var safe=true;for(var i=0;i<props.length;i++){var prop=props[i];if(t.isIdentifier(prop.key,{name:"displayName"})){safe=false;break}}if(safe){props.unshift(t.property("init",t.identifier("displayName"),t.literal(id)))}};exports.AssignmentExpression=exports.Property=exports.VariableDeclarator=function(node){var left,right;if(t.isAssignmentExpression(node)){left=node.left;right=node.right}else if(t.isProperty(node)){left=node.key;right=node.value}else if(t.isVariableDeclarator(node)){left=node.id;right=node.init}if(t.isMemberExpression(left)){left=left.property}if(t.isIdentifier(left)){addDisplayName(left.name,right)}}},{"../../../types":101,esutils:162}],82:[function(require,module,exports){"use strict";var regenerator=require("regenerator-6to5");exports.ast={before:function(ast,file){regenerator.transform(ast,{includeRuntime:file.opts.includeRegenerator&&"if used"})}}},{"regenerator-6to5":172}],83:[function(require,module,exports){"use strict";var traverse=require("../../../traverse");var util=require("../../../util");var core=require("core-js/library");var t=require("../../../types");var _=require("lodash");var coreHas=function(node){return node.name!=="_"&&_.has(core,node.name)};var ALIASABLE_CONSTRUCTORS=["Symbol","Promise","Map","WeakMap","Set","WeakSet"];var astVisitor={enter:function(node,parent,scope,context,file){var prop;if(t.isMemberExpression(node)&&t.isReferenced(node,parent)){var obj=node.object;prop=node.property;if(!t.isReferenced(obj,node))return;if(!node.computed&&coreHas(obj)&&_.has(core[obj.name],prop.name)){context.skip();return t.prependToMemberExpression(node,file.get("coreIdentifier"))}}else if(t.isReferencedIdentifier(node,parent)&&!t.isMemberExpression(parent)&&_.contains(ALIASABLE_CONSTRUCTORS,node.name)&&!scope.get(node.name,true)){return t.memberExpression(file.get("coreIdentifier"),node)}else if(t.isCallExpression(node)){if(node.arguments.length)return;var callee=node.callee;if(!t.isMemberExpression(callee))return;if(!callee.computed)return;prop=callee.property;if(!t.isIdentifier(prop.object,{name:"Symbol"}))return;if(!t.isIdentifier(prop.property,{name:"iterator"}))return;return util.template("corejs-iterator",{CORE_ID:file.get("coreIdentifier"),VALUE:callee.object})}}};exports.optional=true;exports.ast={enter:function(ast,file){file.setDynamic("runtimeIdentifier",function(){return file.addImport("6to5-runtime/helpers","to5Helpers")});file.setDynamic("coreIdentifier",function(){return file.addImport("6to5-runtime/core-js","core")});file.setDynamic("regeneratorIdentifier",function(){return file.addImport("6to5-runtime/regenerator","regeneratorRuntime")})},after:function(ast,file){traverse(ast,astVisitor,null,file)}};exports.Identifier=function(node,parent,scope,context,file){if(node.name==="regeneratorRuntime"&&t.isReferenced(node,parent)){return file.get("regeneratorIdentifier")}}},{"../../../traverse":97,"../../../types":101,"../../../util":104,"core-js/library":154,lodash:164}],84:[function(require,module,exports){"use strict";var useStrict=require("../../helpers/use-strict");var t=require("../../../types");exports.ast={exit:function(ast){if(!useStrict.has(ast.program)){ast.program.body.unshift(t.expressionStatement(t.literal("use strict")))}}};exports.FunctionDeclaration=exports.FunctionExpression=function(node,parent,scope,context){context.skip()};exports.ThisExpression=function(node,parent,scope,context,file){throw file.errorWithNode(node,"Top level `this` is not allowed",ReferenceError)}},{"../../../types":101,"../../helpers/use-strict":35}],85:[function(require,module,exports){"use strict";var build=require("../../helpers/build-conditional-assignment-operator-transformer");var t=require("../../../types");build(exports,{is:function(node,file){var is=t.isAssignmentExpression(node)&&node.operator==="||=";if(is){var left=node.left;if(!t.isMemberExpression(left)&&!t.isIdentifier(left)){throw file.errorWithNode(left,"Expected type MemeberExpression or Identifier")}return true}},build:function(node){return t.unaryExpression("!",node,true)}})},{"../../../types":101,"../../helpers/build-conditional-assignment-operator-transformer":30}],86:[function(require,module,exports){"use strict";var build=require("../../helpers/build-conditional-assignment-operator-transformer");var t=require("../../../types");build(exports,{is:function(node){var is=t.isAssignmentExpression(node)&&node.operator==="?=";if(is)t.assertMemberExpression(node.left);return is},build:function(node,file){return t.unaryExpression("!",t.callExpression(t.memberExpression(file.addHelper("has-own"),t.identifier("call")),[node.object,node.property]),true)}})},{"../../../types":101,"../../helpers/build-conditional-assignment-operator-transformer":30}],87:[function(require,module,exports){"use strict";var t=require("../../../types");exports.BindMemberExpression=function(node,parent,scope){var object=node.object;var prop=node.property;var temp=scope.generateTempBasedOnNode(node.object);if(temp)object=temp;var call=t.callExpression(t.memberExpression(t.memberExpression(object,prop),t.identifier("bind")),[object].concat(node.arguments));if(temp){return t.sequenceExpression([t.assignmentExpression("=",temp,node.object),call])}else{return call}};exports.BindFunctionExpression=function(node,parent,scope,context,file){var buildCall=function(args){var param=scope.generateUidIdentifier("val");return t.functionExpression(null,[param],t.blockStatement([t.returnStatement(t.callExpression(t.memberExpression(param,node.callee),args))]))};var temp=scope.generateTemp(file,"args");return t.sequenceExpression([t.assignmentExpression("=",temp,t.arrayExpression(node.arguments)),buildCall(node.arguments.map(function(node,i){return t.memberExpression(temp,t.literal(i),true)}))])}},{"../../../types":101}],88:[function(require,module,exports){"use strict";var traverse=require("../../../traverse");var t=require("../../../types");var visitor={enter:function(node,parent,scope,context,state){if(t.isFunction(node))return;if(t.isReturnStatement(node)&&node.argument){node.argument=t.memberExpression(t.callExpression(state.file.addHelper("define-property"),[t.thisExpression(),state.key,node.argument]),state.key,true)}}};exports.Property=exports.MethodDefinition=function(node,parent,scope,context,file){if(node.kind!=="memo")return;node.kind="get";var value=node.value;t.ensureBlock(value);var key=node.key;if(t.isIdentifier(key)&&!node.computed){key=t.literal(key.name)}var state={key:key,file:file};traverse(value,visitor,scope,state)}},{"../../../traverse":97,"../../../types":101}],89:[function(require,module,exports){"use strict";var t=require("../../../types");exports.BlockStatement=function(node,parent){if(t.isFunction(parent)||t.isExportDeclaration(parent)){return}for(var i=0;i<node.body.length;i++){var func=node.body[i];if(!t.isFunctionDeclaration(i))continue;var declar=t.variableDeclaration("let",[t.variableDeclarator(func.id,t.toExpression(func))]);declar._blockHoist=2;func.id=null;func.body[i]=declar}}},{"../../../types":101}],90:[function(require,module,exports){"use strict";var t=require("../../../types");var _=require("lodash");var isProtoKey=function(node){return t.isLiteral(t.toComputedKey(node,node.key),{value:"__proto__"})};var isProtoAssignmentExpression=function(node){var left=node.left;return t.isMemberExpression(left)&&t.isLiteral(t.toComputedKey(left,left.property),{value:"__proto__"})};var buildDefaultsCallExpression=function(expr,ref,file){return t.expressionStatement(t.callExpression(file.addHelper("defaults"),[ref,expr.right]))};exports.optional=true;exports.secondPass=true;exports.AssignmentExpression=function(node,parent,scope,context,file){if(!isProtoAssignmentExpression(node))return;var nodes=[];var left=node.left.object;var temp=scope.generateTempBasedOnNode(node.left.object);nodes.push(t.expressionStatement(t.assignmentExpression("=",temp,left)));nodes.push(buildDefaultsCallExpression(node,temp,file));if(temp)nodes.push(temp);return t.toSequenceExpression(nodes)};exports.ExpressionStatement=function(node,parent,scope,context,file){var expr=node.expression;if(!t.isAssignmentExpression(expr,{operator:"="}))return;if(isProtoAssignmentExpression(expr)){return buildDefaultsCallExpression(expr,expr.left.object,file)}};exports.ObjectExpression=function(node,parent,scope,context,file){var proto;for(var i=0;i<node.properties.length;i++){var prop=node.properties[i];if(isProtoKey(prop)){proto=prop.value;_.pull(node.properties,prop)}}if(proto){var args=[t.objectExpression([]),proto];if(node.properties.length)args.push(node);return t.callExpression(file.addHelper("extends"),args)}}},{"../../../types":101,lodash:164}],91:[function(require,module,exports){"use strict";var t=require("../../../types");exports.optional=true;exports.UnaryExpression=function(node,parent,scope,context,file){context.skip();if(node.operator==="typeof"){var call=t.callExpression(file.addHelper("typeof"),[node.argument]);if(t.isIdentifier(node.argument)){var undefLiteral=t.literal("undefined");return t.conditionalExpression(t.binaryExpression("===",t.unaryExpression("typeof",node.argument),undefLiteral),undefLiteral,call)}else{return call}}}},{"../../../types":101}],92:[function(require,module,exports){"use strict";var t=require("../../../types");exports.optional=true;exports.Identifier=function(node,parent){if(node.name==="undefined"&&t.isReferenced(node,parent)){return t.unaryExpression("void",t.literal(0),true)}}},{"../../../types":101}],93:[function(require,module,exports){"use strict";var t=require("../../../types");exports.ForInStatement=exports.ForOfStatement=function(node,parent,scope,context,file){var left=node.left;if(t.isVariableDeclaration(left)){var declar=left.declarations[0];if(declar.init)throw file.errorWithNode(declar,"No assignments allowed in for-in/of head")}}},{"../../../types":101}],94:[function(require,module,exports){"use strict";exports.MethodDefinition=exports.Property=function(node,parent,scope,context,file){if(node.kind==="set"&&node.value.params.length!==1){throw file.errorWithNode(node.value,"Setters must have only one parameter")}}},{}],95:[function(require,module,exports){"use strict";exports.optional=true;exports.Identifier=function(node,parent,scope,context,file){if(!scope.has(node.name,true)){throw file.errorWithNode(node,"Reference to undeclared variable",ReferenceError)}}},{}],96:[function(require,module,exports){module.exports=["Set","Map","WeakMap","WeakSet","Proxy","Promise","Reflect","Symbol","System","__filename","__dirname","GLOBAL","global","module","require","Buffer","console","exports","process","setTimeout","clearTimeout","setInterval","clearInterval","setImmediate","clearImmediate","Array","Boolean","Date","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","Error","eval","EvalError","Function","hasOwnProperty","isFinite","isNaN","JSON","Map","Math","Number","Object","Proxy","Promise","parseInt","parseFloat","RangeError","ReferenceError","RegExp","Set","String","SyntaxError","TypeError","URIError","WeakMap","WeakSet","arguments","NaN","window","self"]},{}],97:[function(require,module,exports){"use strict";module.exports=traverse;var Scope=require("./scope");var t=require("../types");var _=require("lodash");function TraversalContext(){this.shouldFlatten=false;this.shouldRemove=false;this.shouldSkip=false;this.shouldStop=false}TraversalContext.prototype.flatten=function(){this.shouldFlatten=true};TraversalContext.prototype.remove=function(){this.shouldRemove=true;this.shouldSkip=true};TraversalContext.prototype.skip=function(){this.shouldSkip=true};TraversalContext.prototype.stop=function(){this.shouldStop=true;this.shouldSkip=true};TraversalContext.prototype.reset=function(){this.shouldRemove=false;this.shouldSkip=false;this.shouldStop=false};function replaceNode(obj,key,node,result){var isArray=Array.isArray(result);var inheritTo=result;if(isArray)inheritTo=result[0];if(inheritTo)t.inheritsComments(inheritTo,node);obj[key]=result;if(isArray&&_.contains(t.STATEMENT_OR_BLOCK_KEYS,key)&&!t.isBlockStatement(obj)){t.ensureBlock(obj,key)}if(isArray){return true}}TraversalContext.prototype.enterNode=function(obj,key,node,enter,parent,scope,state){var result=enter(node,parent,scope,this,state);var flatten=false;if(result){flatten=replaceNode(obj,key,node,result);node=result;if(flatten){this.shouldFlatten=true}}if(this.shouldRemove){obj[key]=null;this.shouldFlatten=true}return node};TraversalContext.prototype.exitNode=function(obj,key,node,exit,parent,scope,state){var result=exit(node,parent,scope,this,state);var flatten=false;if(result){flatten=replaceNode(obj,key,node,result);node=result;if(flatten){this.shouldFlatten=true}}return node};TraversalContext.prototype.visitNode=function(obj,key,opts,scope,parent,state){this.reset();var node=obj[key];if(opts.blacklist&&opts.blacklist.indexOf(node.type)>-1){return}var ourScope=scope;if(t.isScope(node)){ourScope=new Scope(node,scope)}node=this.enterNode(obj,key,node,opts.enter,parent,ourScope,state);if(this.shouldSkip){return this.shouldStop}if(Array.isArray(node)){for(var i=0;i<node.length;i++){traverseNode(node[i],opts,ourScope,state)}}else{traverseNode(node,opts,ourScope,state);this.exitNode(obj,key,node,opts.exit,parent,ourScope,state)}return this.shouldStop};TraversalContext.prototype.visit=function(node,key,opts,scope,state){var nodes=node[key];if(!nodes)return;if(!Array.isArray(nodes)){return this.visitNode(node,key,opts,scope,node,state)}if(nodes.length===0){return}for(var i=0;i<nodes.length;i++){if(nodes[i]&&this.visitNode(nodes,i,opts,scope,node,state)){return true}}if(this.shouldFlatten){node[key]=_.flatten(node[key]);if(key==="body"){node[key]=_.compact(node[key])}}};function traverseNode(node,opts,scope,state){var keys=t.VISITOR_KEYS[node.type];if(!keys)return;var context=new TraversalContext;for(var i=0;i<keys.length;i++){if(context.visit(node,keys[i],opts,scope,state)){return}}}function traverse(parent,opts,scope,state){if(!parent)return;if(!scope){if(parent.type!=="Program"&&parent.type!=="File"){throw new Error("Must pass a scope unless traversing a Program/File got a "+parent.type+" node")}}if(!opts)opts={};if(!opts.enter)opts.enter=_.noop;if(!opts.exit)opts.exit=_.noop;if(Array.isArray(parent)){for(var i=0;i<parent.length;i++){traverseNode(parent[i],opts,scope,state)}}else{traverseNode(parent,opts,scope,state)}}function clearNode(node){node._declarations=null;node.extendedRange=null;node._scopeInfo=null;node.tokens=null;node.range=null;node.start=null;node.end=null;node.loc=null;node.raw=null;if(Array.isArray(node.trailingComments)){clearComments(node.trailingComments)}if(Array.isArray(node.leadingComments)){clearComments(node.leadingComments)}}var clearVisitor={enter:clearNode};function clearComments(comments){for(var i=0;i<comments.length;i++){clearNode(comments[i])}}traverse.removeProperties=function(tree){clearNode(tree);traverse(tree,clearVisitor);return tree};function hasBlacklistedType(node,parent,scope,context,state){if(node.type===state.type){state.has=true;context.skip()}}traverse.hasType=function(tree,scope,type,blacklistTypes){if(_.contains(blacklistTypes,tree.type))return false;if(tree.type===type)return true;var state={has:false,type:type};traverse(tree,{blacklist:blacklistTypes,enter:hasBlacklistedType},scope,state);return state.has}},{"../types":101,"./scope":98,lodash:164}],98:[function(require,module,exports){"use strict";module.exports=Scope;var traverse=require("./index");var object=require("../helpers/object");var t=require("../types");var _=require("lodash");var FOR_KEYS=["left","init"];function Scope(block,parent,file){this.parent=parent;this.block=block;this.file=parent?parent.file:file;var info=this.getInfo();this.references=info.references;this.declarations=info.declarations;this.declarationKinds=info.declarationKinds}Scope.defaultDeclarations=require("./global-keys");Scope.prototype._add=function(node,references,throwOnDuplicate){if(!node)return;var ids=t.getIds(node,true);for(var key in ids){var id=ids[key];if(throwOnDuplicate&&references[key]){throw this.file.errorWithNode(id,"Duplicate declaration",TypeError)}references[key]=id}};Scope.prototype.generateTemp=function(file,name){var id=file.generateUidIdentifier(name||"temp",this);this.push({key:id.name,id:id});return id};Scope.prototype.generateUidIdentifier=function(name){return this.file.generateUidIdentifier(name,this)};Scope.prototype.generateUidBasedOnNode=function(parent){var node=parent;if(t.isAssignmentExpression(parent)){node=parent.left}else if(t.isVariableDeclarator(parent)){node=parent.id}else if(t.isProperty(node)){node=node.key}var parts=[];var add=function(node){if(t.isMemberExpression(node)){add(node.object);add(node.property)}else if(t.isIdentifier(node)){parts.push(node.name)}else if(t.isLiteral(node)){parts.push(node.value)}else if(t.isCallExpression(node)){add(node.callee)}};add(node);var id=parts.join("$");id=id.replace(/^_/,"")||"ref";return this.file.generateUidIdentifier(id,this)};Scope.prototype.generateTempBasedOnNode=function(node){if(t.isIdentifier(node)&&this.has(node.name,true)){return null}var id=this.generateUidBasedOnNode(node);this.push({key:id.name,id:id});return id};var functionVariableVisitor={enter:function(node,parent,scope,context,state){if(t.isFor(node)){_.each(FOR_KEYS,function(key){var declar=node[key];if(t.isVar(declar))state.add(declar)})}if(t.isFunction(node))return context.skip();if(state.blockId&&node===state.blockId)return;if(t.isDeclaration(node)&&!t.isBlockScoped(node)){state.add(node)}}};var programReferenceVisitor={enter:function(node,parent,scope,context,add){if(t.isReferencedIdentifier(node,parent)&&!scope.has(node.name)){add(node,true)}}};var blockVariableVisitor={enter:function(node,parent,scope,context,add){if(t.isBlockScoped(node)){add(node,false,t.isLet(node))}else if(t.isScope(node)){context.skip()}}};Scope.prototype.getInfo=function(){var parent=this.parent;var block=this.block;var self=this;if(block._scopeInfo)return block._scopeInfo;var info=block._scopeInfo={};var references=info.references=object();var declarations=info.declarations=object();var declarationKinds=info.declarationKinds={};var add=function(node,reference,throwOnDuplicate){self._add(node,references);if(!reference){self._add(node,declarations,throwOnDuplicate);self._add(node,declarationKinds[node.kind]=declarationKinds[node.kind]||object())}};if(parent&&t.isBlockStatement(block)&&t.isFor(parent.block,{body:block})){return info}if(t.isFor(block)){_.each(FOR_KEYS,function(key){var node=block[key];if(t.isBlockScoped(node))add(node,false,true)});if(t.isBlockStatement(block.body)){block=block.body}}if(t.isBlockStatement(block)||t.isProgram(block)){traverse(block,blockVariableVisitor,this,add)}if(t.isCatchClause(block)){add(block.param)}if(t.isComprehensionExpression(block)){add(block)}if(t.isProgram(block)||t.isFunction(block)){traverse(block,functionVariableVisitor,this,{blockId:block.id,add:add})}if(t.isProgram(block)){traverse(block,programReferenceVisitor,this,add)}if(t.isFunction(block)){_.each(block.params,function(param){add(param)})}return info};Scope.prototype.push=function(opts){var block=this.block;if(t.isFor(block)||t.isCatchClause(block)||t.isFunction(block)){t.ensureBlock(block);block=block.body}if(t.isBlockStatement(block)||t.isProgram(block)){block._declarations=block._declarations||{};block._declarations[opts.key]={kind:opts.kind,id:opts.id,init:opts.init}}else{throw new TypeError("cannot add a declaration here in node type "+block.type)}};Scope.prototype.add=function(node){var scope=this.getFunctionParent();scope._add(node,scope.references)};Scope.prototype.getFunctionParent=function(){var scope=this;while(scope.parent&&!t.isFunction(scope.block)){scope=scope.parent}return scope};Scope.prototype.getAllOfKind=function(kind){var ids=object();var scope=this;do{_.defaults(ids,scope.declarationKinds[kind]);scope=scope.parent}while(scope);return ids};Scope.prototype.get=function(id,decl){return id&&(this.getOwn(id,decl)||this.parentGet(id,decl))};Scope.prototype.getOwn=function(id,decl){var refs=this.references;if(decl)refs=this.declarations;return _.has(refs,id)&&refs[id]};Scope.prototype.parentGet=function(id,decl){return this.parent&&this.parent.get(id,decl)};Scope.prototype.has=function(id,decl){return id&&(this.hasOwn(id,decl)||this.parentHas(id,decl))||_.contains(Scope.defaultDeclarations,id)};Scope.prototype.hasOwn=function(id,decl){return!!this.getOwn(id,decl)};Scope.prototype.parentHas=function(id,decl){return this.parent&&this.parent.has(id,decl)}},{"../helpers/object":25,"../types":101,"./global-keys":96,"./index":97,lodash:164}],99:[function(require,module,exports){module.exports={ExpressionStatement:["Statement"],BreakStatement:["Statement"],ContinueStatement:["Statement"],DebuggerStatement:["Statement"],DoWhileStatement:["Statement","Loop","While"],IfStatement:["Statement"],ReturnStatement:["Statement"],SwitchStatement:["Statement"],ThrowStatement:["Statement"],TryStatement:["Statement"],WhileStatement:["Statement","Loop","While"],WithStatement:["Statement"],EmptyStatement:["Statement"],LabeledStatement:["Statement"],VariableDeclaration:["Statement","Declaration"],ExportDeclaration:["Statement","Declaration"],ImportDeclaration:["Statement","Declaration"],PrivateDeclaration:["Statement","Declaration"],ArrowFunctionExpression:["Scope","Function","Expression"],FunctionDeclaration:["Statement","Declaration","Scope","Function"],FunctionExpression:["Scope","Function","Expression"],BlockStatement:["Statement","Scope"],Program:["Scope"],CatchClause:["Scope"],LogicalExpression:["Binary","Expression"],BinaryExpression:["Binary","Expression"],UnaryExpression:["UnaryLike","Expression"],SpreadProperty:["UnaryLike"],SpreadElement:["UnaryLike"],ClassDeclaration:["Statement","Declaration","Class"],ClassExpression:["Class","Expression"],ForOfStatement:["Statement","For","Scope","Loop"],ForInStatement:["Statement","For","Scope","Loop"],ForStatement:["Statement","For","Scope","Loop"],ObjectPattern:["Pattern"],ArrayPattern:["Pattern"],AssignmentPattern:["Pattern"],Property:["UserWhitespacable"],JSXElement:["UserWhitespacable","Expression"],ArrayExpression:["Expression"],AssignmentExpression:["Expression"],AwaitExpression:["Expression"],BindFunctionExpression:["Expression"],BindMemberExpression:["Expression"],CallExpression:["Expression"],ComprehensionExpression:["Expression","Scope"],ConditionalExpression:["Expression"],Identifier:["Expression"],Literal:["Expression"],MemberExpression:["Expression"],NewExpression:["Expression"],ObjectExpression:["Expression"],SequenceExpression:["Expression"],TaggedTemplateExpression:["Expression"],ThisExpression:["Expression"],UpdateExpression:["Expression"],VirtualPropertyExpression:["Expression"],JSXEmptyExpression:["Expression"],JSXMemberExpression:["Expression"],YieldExpression:["Expression"]}},{}],100:[function(require,module,exports){module.exports={ArrayExpression:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["operator","left","right"],BinaryExpression:["operator","left","right"],BlockStatement:["body"],CallExpression:["callee","arguments"],ConditionalExpression:["test","consequent","alternate"],ExpressionStatement:["expression"],File:["program","comments","tokens"],FunctionExpression:["id","params","body","generator"],FunctionDeclaration:["id","params","body","generator"],Identifier:["name"],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportSpecifier:["id","name"],Literal:["value"],LogicalExpression:["operator","left","right"],MemberExpression:["object","property","computed"],MethodDefinition:["key","value","computed","kind"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],Program:["body"],Property:["kind","key","value","computed"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ThrowExpression:["argument"],UnaryExpression:["operator","argument","prefix"],VariableDeclaration:["kind","declarations"],VariableDeclarator:["id","init"],WithStatement:["object","body"],YieldExpression:["argument","delegate"]}},{}],101:[function(require,module,exports){"use strict";var toFastProperties=require("../helpers/to-fast-properties");var esutils=require("esutils");var Node=require("./node");var _=require("lodash");var t=exports;t.NATIVE_TYPE_NAMES=["Array","Object","Number","Boolean","Date","Array","String"];function registerType(type,skipAliasCheck){var is=t["is"+type]=function(node,opts){return t.is(type,node,opts,skipAliasCheck)};t["assert"+type]=function(node,opts){opts=opts||{};if(!is(node,opts)){throw new Error("Expected type "+JSON.stringify(type)+" with option "+JSON.stringify(opts))}}}t.STATEMENT_OR_BLOCK_KEYS=["consequent","body"];t.VISITOR_KEYS=require("./visitor-keys");t.ALIAS_KEYS=require("./alias-keys");t.FLIPPED_ALIAS_KEYS={};_.each(t.VISITOR_KEYS,function(keys,type){registerType(type,true)});_.each(t.ALIAS_KEYS,function(aliases,type){_.each(aliases,function(alias){var types=t.FLIPPED_ALIAS_KEYS[alias]=t.FLIPPED_ALIAS_KEYS[alias]||[];types.push(type)})});_.each(t.FLIPPED_ALIAS_KEYS,function(types,type){t[type.toUpperCase()+"_TYPES"]=types;registerType(type,false)});t.is=function(type,node,opts,skipAliasCheck){if(!node)return;var typeMatches=type===node.type;if(!typeMatches&&!skipAliasCheck){var aliases=t.FLIPPED_ALIAS_KEYS[type];if(typeof aliases!=="undefined"){typeMatches=aliases.indexOf(node.type)>-1}}if(!typeMatches){return false}if(typeof opts!=="undefined"){return t.shallowEqual(node,opts)}return true};t.BUILDER_KEYS=_.defaults(require("./builder-keys"),t.VISITOR_KEYS);_.each(t.BUILDER_KEYS,function(keys,type){t[type[0].toLowerCase()+type.slice(1)]=function(){var args=arguments;var node=new Node;node.start=null;node.type=type;_.each(keys,function(key,i){node[key]=args[i]});return node}});t.toComputedKey=function(node,key){if(!node.computed){if(t.isIdentifier(key))key=t.literal(key.name)}return key};t.isFalsyExpression=function(node){if(t.isLiteral(node)){return!node.value}else if(t.isIdentifier(node)){return node.name==="undefined"}return false};t.toSequenceExpression=function(nodes,scope){var exprs=[];
_.each(nodes,function(node){if(t.isExpression(node)){exprs.push(node)}if(t.isExpressionStatement(node)){exprs.push(node.expression)}else if(t.isVariableDeclaration(node)){_.each(node.declarations,function(declar){scope.push({kind:node.kind,key:declar.id.name,id:declar.id});exprs.push(t.assignmentExpression("=",declar.id,declar.init))})}});if(exprs.length===1){return exprs[0]}else{return t.sequenceExpression(exprs)}};t.shallowEqual=function(actual,expected){var keys=Object.keys(expected);var key;for(var i=0;i<keys.length;i++){key=keys[i];if(actual[key]!==expected[key])return false}return true};t.appendToMemberExpression=function(member,append,computed){member.object=t.memberExpression(member.object,member.property,member.computed);member.property=append;member.computed=!!computed;return member};t.prependToMemberExpression=function(member,append){member.object=t.memberExpression(append,member.object);return member};t.isReferenced=function(node,parent){if(t.isProperty(parent)&&parent.key===node&&!parent.computed)return false;if(t.isFunction(parent)){if(_.contains(parent.params,node))return false;for(var i=0;i<parent.params.length;i++){var param=parent.params[i];if(param===node){return false}else if(t.isRestElement(param)&¶m.argument===node){return false}}}if(t.isMethodDefinition(parent)&&parent.key===node&&!parent.computed){return false}if(t.isCatchClause(parent)&&parent.param===node)return false;if(t.isVariableDeclarator(parent)&&parent.id===node)return false;var isMemberExpression=t.isMemberExpression(parent);var isComputedProperty=isMemberExpression&&parent.property===node&&parent.computed;var isObject=isMemberExpression&&parent.object===node;if(!isMemberExpression||isComputedProperty||isObject)return true;return false};t.isReferencedIdentifier=function(node,parent){return t.isIdentifier(node)&&t.isReferenced(node,parent)};t.isValidIdentifier=function(name){return _.isString(name)&&esutils.keyword.isIdentifierName(name)&&!esutils.keyword.isReservedWordES6(name,true)};t.toIdentifier=function(name){if(t.isIdentifier(name))return name.name;name=name+"";name=name.replace(/[^a-zA-Z0-9$_]/g,"-");name=name.replace(/^[-0-9]+/,"");name=name.replace(/[-_\s]+(.)?/g,function(match,c){return c?c.toUpperCase():""});name=name.replace(/^\_/,"");if(!t.isValidIdentifier(name)){name="_"+name}return name||"_"};t.ensureBlock=function(node,key){key=key||"body";node[key]=t.toBlock(node[key],node)};t.toStatement=function(node,ignore){if(t.isStatement(node)){return node}var mustHaveId=false;var newType;if(t.isClass(node)){mustHaveId=true;newType="ClassDeclaration"}else if(t.isFunction(node)){mustHaveId=true;newType="FunctionDeclaration"}else if(t.isAssignmentExpression(node)){return t.expressionStatement(node)}if(mustHaveId&&!node.id){newType=false}if(!newType){if(ignore){return false}else{throw new Error("cannot turn "+node.type+" to a statement")}}node.type=newType;return node};exports.toExpression=function(node){if(t.isExpressionStatement(node)){node=node.expression}if(t.isClass(node)){node.type="ClassExpression"}else if(t.isFunction(node)){node.type="FunctionExpression"}if(t.isExpression(node)){return node}else{throw new Error("cannot turn "+node.type+" to an expression")}};t.toBlock=function(node,parent){if(t.isBlockStatement(node)){return node}if(t.isEmptyStatement(node)){node=[]}if(!Array.isArray(node)){if(!t.isStatement(node)){if(t.isFunction(parent)){node=t.returnStatement(node)}else{node=t.expressionStatement(node)}}node=[node]}return t.blockStatement(node)};t.getIds=function(node,map,ignoreTypes){ignoreTypes=ignoreTypes||[];var search=[].concat(node);var ids={};while(search.length){var id=search.shift();if(!id)continue;if(_.contains(ignoreTypes,id.type))continue;var nodeKeys=t.getIds.nodes[id.type];var arrKeys=t.getIds.arrays[id.type];var i,key;if(t.isIdentifier(id)){ids[id.name]=id}else if(nodeKeys){for(i=0;i<nodeKeys.length;i++){key=nodeKeys[i];if(id[key]){search.push(id[key]);break}}}else if(arrKeys){for(i=0;i<arrKeys.length;i++){key=arrKeys[i];search=search.concat(id[key]||[])}}}if(!map)ids=_.keys(ids);return ids};t.getIds.nodes={AssignmentExpression:["left"],ImportBatchSpecifier:["name"],ImportSpecifier:["name","id"],ExportSpecifier:["name","id"],VariableDeclarator:["id"],FunctionDeclaration:["id"],ClassDeclaration:["id"],MemeberExpression:["object"],SpreadElement:["argument"],RestElement:["argument"],Property:["value"],ComprehensionBlock:["left"],AssignmentPattern:["left"]};t.getIds.arrays={PrivateDeclaration:["declarations"],ComprehensionExpression:["blocks"],ExportDeclaration:["specifiers","declaration"],ImportDeclaration:["specifiers"],VariableDeclaration:["declarations"],ArrayPattern:["elements"],ObjectPattern:["properties"]};t.isLet=function(node){return t.isVariableDeclaration(node)&&(node.kind!=="var"||node._let)};t.isBlockScoped=function(node){return t.isFunctionDeclaration(node)||t.isLet(node)};t.isVar=function(node){return t.isVariableDeclaration(node,{kind:"var"})&&!node._let};t.COMMENT_KEYS=["leadingComments","trailingComments"];t.removeComments=function(child){_.each(t.COMMENT_KEYS,function(key){delete child[key]});return child};t.inheritsComments=function(child,parent){_.each(t.COMMENT_KEYS,function(key){child[key]=_.uniq(_.compact([].concat(child[key],parent[key])))});return child};t.inherits=function(child,parent){child.range=parent.range;child.start=parent.start;child.loc=parent.loc;child.end=parent.end;t.inheritsComments(child,parent);return child};t.getLastStatements=function(node){var nodes=[];var add=function(node){nodes=nodes.concat(t.getLastStatements(node))};if(t.isIfStatement(node)){add(node.consequent);add(node.alternate)}else if(t.isFor(node)||t.isWhile(node)){add(node.body)}else if(t.isProgram(node)||t.isBlockStatement(node)){add(node.body[node.body.length-1])}else if(node){nodes.push(node)}return nodes};t.getSpecifierName=function(specifier){return specifier.name||specifier.id};t.getSpecifierId=function(specifier){if(specifier.default){return t.identifier("default")}else{return specifier.id}};t.isSpecifierDefault=function(specifier){return specifier.default||t.isIdentifier(specifier.id)&&specifier.id.name==="default"};toFastProperties(t);toFastProperties(t.VISITOR_KEYS)},{"../helpers/to-fast-properties":26,"./alias-keys":99,"./builder-keys":100,"./node":102,"./visitor-keys":103,esutils:162,lodash:164}],102:[function(require,module,exports){"use strict";module.exports=Node;var acorn=require("acorn-6to5");var oldNode=acorn.Node;acorn.Node=Node;function Node(){oldNode.apply(this)}},{"acorn-6to5":105}],103:[function(require,module,exports){module.exports={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","defaults","rest","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BindFunctionExpression:["callee","arguments"],BindMemberExpression:["object","property","arguments"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ClassBody:["body"],ClassDeclaration:["id","body","superClass"],ClassExpression:["id","body","superClass"],ComprehensionBlock:["left","right","body"],ComprehensionExpression:["filter","blocks","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportBatchSpecifier:[],ExportDeclaration:["declaration","specifiers","source"],ExportSpecifier:["id","name"],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","defaults","rest","body"],FunctionExpression:["id","params","defaults","rest","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportBatchSpecifier:["id"],ImportDeclaration:["specifiers","source"],ImportSpecifier:["id","name"],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateDeclaration:["declarations"],Program:["body"],Property:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],SpreadProperty:["argument"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handlers","handler","guardedHandlers","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],VirtualPropertyExpression:["object","property"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"],AnyTypeAnnotation:[],ArrayTypeAnnotation:[],BooleanTypeAnnotation:[],ClassProperty:["key"],DeclareClass:[],DeclareFunction:[],DeclareModule:[],DeclareVariable:[],FunctionTypeAnnotation:[],FunctionTypeParam:[],GenericTypeAnnotation:[],InterfaceExtends:[],InterfaceDeclaration:[],IntersectionTypeAnnotation:[],NullableTypeAnnotation:[],NumberTypeAnnotation:[],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],TupleTypeAnnotation:[],TypeofTypeAnnotation:[],TypeAlias:[],TypeAnnotation:[],TypeParameterDeclaration:[],TypeParameterInstantiation:[],ObjectTypeAnnotation:[],ObjectTypeCallProperty:[],ObjectTypeIndexer:[],ObjectTypeProperty:[],QualifiedTypeIdentifier:[],UnionTypeAnnotation:[],VoidTypeAnnotation:[],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","closingElement","children"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXSpreadAttribute:["argument"]}},{}],104:[function(require,module,exports){(function(Buffer,__dirname){"use strict";require("./patch");var estraverse=require("estraverse");var codeFrame=require("./helpers/code-frame");var traverse=require("./traverse");var acorn=require("acorn-6to5");var path=require("path");var util=require("util");var fs=require("fs");var t=require("./types");var _=require("lodash");exports.inherits=util.inherits;exports.canCompile=function(filename,altExts){var exts=altExts||exports.canCompile.EXTENSIONS;var ext=path.extname(filename);return _.contains(exts,ext)};exports.canCompile.EXTENSIONS=[".js",".jsx",".es6",".es"];exports.isInteger=function(i){return _.isNumber(i)&&i%1===0};exports.resolve=function(loc){try{return require.resolve(loc)}catch(err){return null}};exports.trimRight=function(str){return str.replace(/[\n\s]+$/g,"")};exports.list=function(val){return val?val.split(","):[]};exports.regexify=function(val){if(!val)return new RegExp(/.^/);if(Array.isArray(val))val=val.join("|");if(_.isString(val))return new RegExp(val);if(_.isRegExp(val))return val;throw new TypeError("illegal type for regexify")};exports.arrayify=function(val){if(!val)return[];if(_.isString(val))return exports.list(val);if(Array.isArray(val))return val;throw new TypeError("illegal type for arrayify")};exports.isAbsolute=function(loc){if(!loc)return false;if(loc[0]==="/")return true;if(loc[1]===":"&&loc[2]==="\\")return true;return false};exports.sourceMapToComment=function(map){var json=JSON.stringify(map);var base64=new Buffer(json).toString("base64");return"//# sourceMappingURL=data:application/json;base64,"+base64};exports.pushMutatorMap=function(mutatorMap,key,kind,computed,method){var alias;if(t.isIdentifier(key)){alias=key.name;if(computed)alias="computed:"+alias}else if(t.isLiteral(key)){alias=String(key.value)}else{alias=JSON.stringify(traverse.removeProperties(_.cloneDeep(key)))}var map;if(_.has(mutatorMap,alias)){map=mutatorMap[alias]}else{map={}}mutatorMap[alias]=map;map._key=key;if(computed){map._computed=true}map[kind]=method};exports.buildDefineProperties=function(mutatorMap){var objExpr=t.objectExpression([]);_.each(mutatorMap,function(map){var mapNode=t.objectExpression([]);var propNode=t.property("init",map._key,mapNode,map._computed);if(!map.get&&!map.set){map.writable=t.literal(true)}map.enumerable=t.literal(true);map.configurable=t.literal(true);_.each(map,function(node,key){if(key[0]==="_")return;node=_.clone(node);var inheritNode=node;if(t.isMethodDefinition(node))node=node.value;var prop=t.property("init",t.identifier(key),node);t.inheritsComments(prop,inheritNode);t.removeComments(inheritNode);mapNode.properties.push(prop)});objExpr.properties.push(propNode)});return objExpr};var templateVisitor={enter:function(node,parent,scope,context,nodes){if(t.isIdentifier(node)&&_.has(nodes,node.name)){return nodes[node.name]}}};exports.template=function(name,nodes,keepExpression){var template=exports.templates[name];if(!template)throw new ReferenceError("unknown template "+name);if(nodes===true){keepExpression=true;nodes=null}template=_.cloneDeep(template);if(!_.isEmpty(nodes)){traverse(template,templateVisitor,null,nodes)}var node=template.body[0];if(!keepExpression&&t.isExpressionStatement(node)){return node.expression}else{return node}};exports.repeat=function(width,cha){cha=cha||" ";var result="";for(var i=0;i<width;i++){result+=cha}return result};exports.normaliseAst=function(ast,comments,tokens){if(ast&&ast.type==="Program"){return t.file(ast,comments||[],tokens||[])}else{throw new Error("Not a valid ast?")}};exports.parse=function(opts,code,callback){try{var comments=[];var tokens=[];var ast=acorn.parse(code,{allowImportExportEverywhere:opts.allowImportExportEverywhere,allowReturnOutsideFunction:true,ecmaVersion:opts.experimental?7:6,playground:opts.playground,strictMode:true,onComment:comments,locations:true,onToken:tokens,ranges:true});estraverse.attachComments(ast,comments,tokens);ast=exports.normaliseAst(ast,comments,tokens);if(callback){return callback(ast)}else{return ast}}catch(err){if(!err._6to5){err._6to5=true;var message=opts.filename+": "+err.message;var loc=err.loc;if(loc){var frame=codeFrame(code,loc.line,loc.column+1);message+=frame}if(err.stack)err.stack=err.stack.replace(err.message,message);err.message=message}throw err}};exports.parseTemplate=function(loc,code){var ast=exports.parse({filename:loc},code).program;return traverse.removeProperties(ast)};var loadTemplates=function(){var templates={};var templatesLoc=__dirname+"/transformation/templates";if(!fs.existsSync(templatesLoc)){throw new Error("no templates directory - this is most likely the "+"result of a broken `npm publish`. Please report to "+"https://github.com/6to5/6to5/issues")}_.each(fs.readdirSync(templatesLoc),function(name){if(name[0]===".")return;var key=path.basename(name,path.extname(name));var loc=templatesLoc+"/"+name;var code=fs.readFileSync(loc,"utf8");templates[key]=exports.parseTemplate(loc,code)});return templates};try{exports.templates=require("../../templates.json")}catch(err){if(err.code!=="MODULE_NOT_FOUND")throw err;exports.templates=loadTemplates()}}).call(this,require("buffer").Buffer,"/lib/6to5")},{"../../templates.json":194,"./helpers/code-frame":24,"./patch":27,"./traverse":97,"./types":101,"acorn-6to5":105,buffer:122,estraverse:158,fs:120,lodash:164,path:129,util:145}],105:[function(require,module,exports){(function(root,mod){if(typeof exports=="object"&&typeof module=="object")return mod(exports);if(typeof define=="function"&&define.amd)return define(["exports"],mod);mod(root.acorn||(root.acorn={}))})(this,function(exports){"use strict";exports.version="0.11.1";var options,input,inputLen,sourceFile;exports.parse=function(inpt,opts){input=String(inpt);inputLen=input.length;setOptions(opts);initTokenState();var startPos=options.locations?[tokPos,curPosition()]:tokPos;initParserState();return parseTopLevel(options.program||startNodeAt(startPos))};var defaultOptions=exports.defaultOptions={playground:false,ecmaVersion:5,strictSemicolons:false,allowTrailingCommas:true,forbidReserved:false,allowReturnOutsideFunction:false,allowImportExportEverywhere:false,allowHashBang:false,locations:false,onToken:null,onComment:null,ranges:false,program:null,sourceFile:null,directSourceFile:null,preserveParens:false};exports.parseExpressionAt=function(inpt,pos,opts){input=String(inpt);inputLen=input.length;setOptions(opts);initTokenState(pos);initParserState();return parseExpression()};var isArray=function(obj){return Object.prototype.toString.call(obj)==="[object Array]"};function setOptions(opts){options={};for(var opt in defaultOptions)options[opt]=opts&&has(opts,opt)?opts[opt]:defaultOptions[opt];sourceFile=options.sourceFile||null;if(isArray(options.onToken)){var tokens=options.onToken;options.onToken=function(token){tokens.push(token)}}if(isArray(options.onComment)){var comments=options.onComment;options.onComment=function(block,text,start,end,startLoc,endLoc){var comment={type:block?"Block":"Line",value:text,start:start,end:end};if(options.locations){comment.loc=new SourceLocation;comment.loc.start=startLoc;comment.loc.end=endLoc}if(options.ranges)comment.range=[start,end];comments.push(comment)}}if(options.strictMode){strict=true}if(options.ecmaVersion>=6){isKeyword=isEcma6Keyword}else{isKeyword=isEcma5AndLessKeyword}}var getLineInfo=exports.getLineInfo=function(input,offset){for(var line=1,cur=0;;){lineBreak.lastIndex=cur;var match=lineBreak.exec(input);if(match&&match.index<offset){++line;cur=match.index+match[0].length}else break}return{line:line,column:offset-cur}};function Token(){this.type=tokType;this.value=tokVal;this.start=tokStart;this.end=tokEnd;if(options.locations){this.loc=new SourceLocation;this.loc.end=tokEndLoc}if(options.ranges)this.range=[tokStart,tokEnd]}exports.Token=Token;exports.tokenize=function(inpt,opts){input=String(inpt);inputLen=input.length;setOptions(opts);initTokenState();skipSpace();function getToken(){lastEnd=tokEnd;readToken();return new Token}getToken.jumpTo=function(pos,exprAllowed){tokPos=pos;if(options.locations){tokCurLine=1;tokLineStart=lineBreak.lastIndex=0;var match;while((match=lineBreak.exec(input))&&match.index<pos){++tokCurLine;tokLineStart=match.index+match[0].length}}tokExprAllowed=!!exprAllowed;skipSpace()};getToken.current=function(){return new Token};if(typeof Symbol!=="undefined"){getToken[Symbol.iterator]=function(){return{next:function(){var token=getToken();return{done:token.type===_eof,value:token}}}}}getToken.options=options;return getToken};var tokPos;var tokStart,tokEnd;var tokStartLoc,tokEndLoc;var tokType,tokVal;var tokContext,tokExprAllowed;var tokCurLine,tokLineStart;var lastStart,lastEnd,lastEndLoc;var inFunction,inGenerator,inAsync,labels,strict,inXJSChild,inXJSTag,inType;function initParserState(){lastStart=lastEnd=tokPos;if(options.locations)lastEndLoc=curPosition();inFunction=inGenerator=inAsync=false;labels=[];skipSpace();readToken()}function raise(pos,message){var loc=getLineInfo(input,pos);message+=" ("+loc.line+":"+loc.column+")";var err=new SyntaxError(message);err.pos=pos;err.loc=loc;err.raisedAt=tokPos;throw err}var empty=[];var _num={type:"num"},_regexp={type:"regexp"},_string={type:"string"};var _name={type:"name"},_eof={type:"eof"};var _jsxName={type:"jsxName"};var _xjsName={type:"xjsName"},_xjsText={type:"xjsText"};var _break={keyword:"break"},_case={keyword:"case",beforeExpr:true},_catch={keyword:"catch"};var _continue={keyword:"continue"},_debugger={keyword:"debugger"},_default={keyword:"default"};var _do={keyword:"do",isLoop:true},_else={keyword:"else",beforeExpr:true};var _finally={keyword:"finally"},_for={keyword:"for",isLoop:true},_function={keyword:"function"};var _if={keyword:"if"},_return={keyword:"return",beforeExpr:true},_switch={keyword:"switch"};var _throw={keyword:"throw",beforeExpr:true},_try={keyword:"try"},_var={keyword:"var"};var _let={keyword:"let"},_const={keyword:"const"};var _while={keyword:"while",isLoop:true},_with={keyword:"with"},_new={keyword:"new",beforeExpr:true};var _this={keyword:"this"};var _class={keyword:"class"},_extends={keyword:"extends",beforeExpr:true};var _export={keyword:"export"},_import={keyword:"import"};var _yield={keyword:"yield",beforeExpr:true};var _null={keyword:"null",atomValue:null},_true={keyword:"true",atomValue:true};var _false={keyword:"false",atomValue:false};var _in={keyword:"in",binop:7,beforeExpr:true};var keywordTypes={"break":_break,"case":_case,"catch":_catch,"continue":_continue,"debugger":_debugger,"default":_default,"do":_do,"else":_else,"finally":_finally,"for":_for,"function":_function,"if":_if,"return":_return,"switch":_switch,"throw":_throw,"try":_try,"var":_var,let:_let,"const":_const,"while":_while,"with":_with,"null":_null,"true":_true,"false":_false,"new":_new,"in":_in,"instanceof":{keyword:"instanceof",binop:7,beforeExpr:true},"this":_this,"typeof":{keyword:"typeof",prefix:true,beforeExpr:true},"void":{keyword:"void",prefix:true,beforeExpr:true},"delete":{keyword:"delete",prefix:true,beforeExpr:true},"class":_class,"extends":_extends,"export":_export,"import":_import,"yield":_yield};var _bracketL={type:"[",beforeExpr:true},_bracketR={type:"]"},_braceL={type:"{",beforeExpr:true};var _braceR={type:"}"},_parenL={type:"(",beforeExpr:true},_parenR={type:")"};var _comma={type:",",beforeExpr:true},_semi={type:";",beforeExpr:true};var _colon={type:":",beforeExpr:true},_dot={type:"."},_question={type:"?",beforeExpr:true};var _arrow={type:"=>",beforeExpr:true},_template={type:"template"};var _ellipsis={type:"...",beforeExpr:true};var _backQuote={type:"`"},_dollarBraceL={type:"${",beforeExpr:true};var _jsxText={type:"jsxText"};var _paamayimNekudotayim={type:"::",beforeExpr:true};var _at={type:"@"};var _hash={type:"#"};var _slash={binop:10,beforeExpr:true},_eq={isAssign:true,beforeExpr:true};var _assign={isAssign:true,beforeExpr:true};var _incDec={postfix:true,prefix:true,isUpdate:true},_prefix={prefix:true,beforeExpr:true};var _logicalOR={binop:1,beforeExpr:true};var _logicalAND={binop:2,beforeExpr:true};var _bitwiseOR={binop:3,beforeExpr:true};var _bitwiseXOR={binop:4,beforeExpr:true};var _bitwiseAND={binop:5,beforeExpr:true};var _equality={binop:6,beforeExpr:true};var _relational={binop:7,beforeExpr:true};var _bitShift={binop:8,beforeExpr:true};var _plusMin={binop:9,prefix:true,beforeExpr:true};var _modulo={binop:10,beforeExpr:true};var _star={binop:10,beforeExpr:true};var _exponent={binop:11,beforeExpr:true,rightAssociative:true};var _jsxTagStart={type:"jsxTagStart"},_jsxTagEnd={type:"jsxTagEnd"};exports.tokTypes={bracketL:_bracketL,bracketR:_bracketR,braceL:_braceL,braceR:_braceR,parenL:_parenL,parenR:_parenR,comma:_comma,semi:_semi,colon:_colon,dot:_dot,ellipsis:_ellipsis,question:_question,slash:_slash,eq:_eq,name:_name,eof:_eof,num:_num,regexp:_regexp,string:_string,paamayimNekudotayim:_paamayimNekudotayim,exponent:_exponent,at:_at,hash:_hash,arrow:_arrow,template:_template,star:_star,assign:_assign,backQuote:_backQuote,dollarBraceL:_dollarBraceL};for(var kw in keywordTypes)exports.tokTypes["_"+kw]=keywordTypes[kw];var isReservedWord3=function anonymous(str){switch(str.length){case 6:switch(str){case"double":case"export":case"import":case"native":case"public":case"static":case"throws":return true}return false;case 4:switch(str){case"byte":case"char":case"enum":case"goto":case"long":return true}return false;case 5:switch(str){case"class":case"final":case"float":case"short":case"super":return true}return false;case 7:switch(str){case"boolean":case"extends":case"package":case"private":return true}return false;case 9:switch(str){case"interface":case"protected":case"transient":return true}return false;case 8:switch(str){case"abstract":case"volatile":return true}return false;case 10:return str==="implements";case 3:return str==="int";case 12:return str==="synchronized"}};var isReservedWord5=function anonymous(str){switch(str.length){case 5:switch(str){case"class":case"super":case"const":return true}return false;case 6:switch(str){case"export":case"import":return true}return false;case 4:return str==="enum";case 7:return str==="extends"}};var isStrictReservedWord=function anonymous(str){switch(str.length){case 9:switch(str){case"interface":case"protected":return true}return false;case 7:switch(str){case"package":case"private":return true}return false;case 6:switch(str){case"public":case"static":return true}return false;case 10:return str==="implements";case 3:return str==="let";case 5:return str==="yield"}};var isStrictBadIdWord=function anonymous(str){switch(str){case"eval":case"arguments":return true}return false};var ecma5AndLessKeywords="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this";var isEcma5AndLessKeyword=function anonymous(str){switch(str.length){case 4:switch(str){case"case":case"else":case"with":case"null":case"true":case"void":case"this":return true}return false;case 5:switch(str){case"break":case"catch":case"throw":case"while":case"false":return true}return false;case 3:switch(str){case"for":case"try":case"var":case"new":return true}return false;case 6:switch(str){case"return":case"switch":case"typeof":case"delete":return true}return false;case 8:switch(str){case"continue":case"debugger":case"function":return true}return false;case 2:switch(str){case"do":case"if":case"in":return true}return false;case 7:switch(str){case"default":case"finally":return true}return false;case 10:return str==="instanceof"}};var ecma6AndLessKeywords=ecma5AndLessKeywords+" let const class extends export import yield";var isEcma6Keyword=function anonymous(str){switch(str.length){case 5:switch(str){case"break":case"catch":case"throw":case"while":case"false":case"const":case"class":case"yield":return true}return false;case 4:switch(str){case"case":case"else":case"with":case"null":case"true":case"void":case"this":return true}return false;case 6:switch(str){case"return":case"switch":case"typeof":case"delete":case"export":case"import":return true}return false;case 3:switch(str){case"for":case"try":case"var":case"new":case"let":return true}return false;case 8:switch(str){case"continue":case"debugger":case"function":return true}return false;case 7:switch(str){case"default":case"finally":case"extends":return true}return false;case 2:switch(str){case"do":case"if":case"in":return true}return false;case 10:return str==="instanceof"}};var isKeyword=isEcma5AndLessKeyword;var nonASCIIwhitespace=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;var nonASCIIidentifierStartChars="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢲऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";var nonASCIIidentifierChars="̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏ᦰ-ᧀᧈᧉ᧐-᧙ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷼-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︭︳︴﹍-﹏0-9_";var nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]");var nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]");var decimalNumber=/^\d+$/;var hexNumber=/^[\da-fA-F]+$/;var newline=/[\n\r\u2028\u2029]/;function isNewLine(code){return code===10||code===13||code===8232||code==8233}var lineBreak=/\r\n|[\n\r\u2028\u2029]/g;var isIdentifierStart=exports.isIdentifierStart=function(code){if(code<65)return code===36;if(code<91)return true;if(code<97)return code===95;if(code<123)return true;return code>=170&&nonASCIIidentifierStart.test(String.fromCharCode(code))};var isIdentifierChar=exports.isIdentifierChar=function(code){if(code<48)return code===36;if(code<58)return true;if(code<65)return false;if(code<91)return true;if(code<97)return code===95;if(code<123)return true;return code>=170&&nonASCIIidentifier.test(String.fromCharCode(code))};function Position(line,col){this.line=line;this.column=col}Position.prototype.offset=function(n){return new Position(this.line,this.column+n)};function curPosition(){return new Position(tokCurLine,tokPos-tokLineStart)}function initTokenState(pos){if(pos){tokPos=pos;tokLineStart=Math.max(0,input.lastIndexOf("\n",pos));tokCurLine=input.slice(0,tokLineStart).split(newline).length}else{tokCurLine=1;tokPos=tokLineStart=0}tokType=_eof;tokContext=[b_stat];tokExprAllowed=true;inType=strict=false;if(tokPos===0&&options.allowHashBang&&input.slice(0,2)==="#!"){skipLineComment(2)}}var b_stat={token:"{",isExpr:false},b_expr={token:"{",isExpr:true},b_tmpl={token:"${",isExpr:true};var p_stat={token:"(",isExpr:false},p_expr={token:"(",isExpr:true};var q_tmpl={token:"`",isExpr:true},f_expr={token:"function",isExpr:true};var j_oTag={token:"<tag",isExpr:false},j_cTag={token:"</tag",isExpr:false},j_expr={token:"<tag>...</tag>",isExpr:true};function curTokContext(){return tokContext[tokContext.length-1]}function braceIsBlock(prevType){var parent;if(prevType===_colon&&(parent=curTokContext()).token=="{")return!parent.isExpr;if(prevType===_return)return newline.test(input.slice(lastEnd,tokStart));if(prevType===_else||prevType===_semi||prevType===_eof)return true;if(prevType==_braceL)return curTokContext()===b_stat;return!tokExprAllowed}function finishToken(type,val){tokEnd=tokPos;if(options.locations)tokEndLoc=curPosition();var prevType=tokType,preserveSpace=false;tokType=type;tokVal=val;if(type===_parenR||type===_braceR){var out=tokContext.pop();if(out===b_tmpl){preserveSpace=tokExprAllowed=true}else if(out===b_stat&&curTokContext()===f_expr){tokContext.pop();tokExprAllowed=false}else{tokExprAllowed=!(out&&out.isExpr)}}else if(type===_braceL){switch(curTokContext()){case j_oTag:tokContext.push(b_expr);break;case j_expr:tokContext.push(b_tmpl);break;default:tokContext.push(braceIsBlock(prevType)?b_stat:b_expr)}tokExprAllowed=true}else if(type===_dollarBraceL){tokContext.push(b_tmpl);tokExprAllowed=true}else if(type==_parenL){var statementParens=prevType===_if||prevType===_for||prevType===_with||prevType===_while;tokContext.push(statementParens?p_stat:p_expr);tokExprAllowed=true}else if(type==_incDec){}else if(type.keyword&&prevType==_dot){tokExprAllowed=false}else if(type==_function){if(curTokContext()!==b_stat){tokContext.push(f_expr)}tokExprAllowed=false}else if(type===_backQuote){if(curTokContext()===q_tmpl){tokContext.pop()}else{tokContext.push(q_tmpl);preserveSpace=true}tokExprAllowed=false}else if(type===_jsxTagStart){tokContext.push(j_expr);tokContext.push(j_oTag);tokExprAllowed=false}else if(type===_jsxTagEnd){var out=tokContext.pop();if(out===j_oTag&&prevType===_slash||out===j_cTag){tokContext.pop();preserveSpace=tokExprAllowed=curTokContext()===j_expr}else{preserveSpace=tokExprAllowed=true}}else if(type===_jsxText){preserveSpace=tokExprAllowed=true}else if(type===_slash&&prevType===_jsxTagStart){tokContext.length-=2;
tokContext.push(j_cTag);tokExprAllowed=false}else{tokExprAllowed=type.beforeExpr}if(!preserveSpace)skipSpace()}function skipBlockComment(){var startLoc=options.onComment&&options.locations&&curPosition();var start=tokPos,end=input.indexOf("*/",tokPos+=2);if(end===-1)raise(tokPos-2,"Unterminated comment");tokPos=end+2;if(options.locations){lineBreak.lastIndex=start;var match;while((match=lineBreak.exec(input))&&match.index<tokPos){++tokCurLine;tokLineStart=match.index+match[0].length}}if(options.onComment)options.onComment(true,input.slice(start+2,end),start,tokPos,startLoc,options.locations&&curPosition())}function skipLineComment(startSkip){var start=tokPos;var startLoc=options.onComment&&options.locations&&curPosition();var ch=input.charCodeAt(tokPos+=startSkip);while(tokPos<inputLen&&ch!==10&&ch!==13&&ch!==8232&&ch!==8233){++tokPos;ch=input.charCodeAt(tokPos)}if(options.onComment)options.onComment(false,input.slice(start+startSkip,tokPos),start,tokPos,startLoc,options.locations&&curPosition())}function skipSpace(){while(tokPos<inputLen){var ch=input.charCodeAt(tokPos);if(ch===32){++tokPos}else if(ch===13){++tokPos;var next=input.charCodeAt(tokPos);if(next===10){++tokPos}if(options.locations){++tokCurLine;tokLineStart=tokPos}}else if(ch===10||ch===8232||ch===8233){++tokPos;if(options.locations){++tokCurLine;tokLineStart=tokPos}}else if(ch>8&&ch<14){++tokPos}else if(ch===47){var next=input.charCodeAt(tokPos+1);if(next===42){skipBlockComment()}else if(next===47){skipLineComment(2)}else break}else if(ch===160){++tokPos}else if(ch>=5760&&nonASCIIwhitespace.test(String.fromCharCode(ch))){++tokPos}else{break}}}function readToken_dot(){var next=input.charCodeAt(tokPos+1);if(next>=48&&next<=57)return readNumber(true);var next2=input.charCodeAt(tokPos+2);if(options.playground&&next===63){tokPos+=2;return finishToken(_dotQuestion)}else if(options.ecmaVersion>=6&&next===46&&next2===46){tokPos+=3;return finishToken(_ellipsis)}else{++tokPos;return finishToken(_dot)}}function readToken_slash(){var next=input.charCodeAt(tokPos+1);if(tokExprAllowed){++tokPos;return readRegexp()}if(next===61)return finishOp(_assign,2);return finishOp(_slash,1)}function readToken_modulo(){var next=input.charCodeAt(tokPos+1);if(next===61)return finishOp(_assign,2);return finishOp(_modulo,1)}function readToken_mult(){var type=_star;var width=1;var next=input.charCodeAt(tokPos+1);if(options.ecmaVersion>=7&&next===42){width++;next=input.charCodeAt(tokPos+2);type=_exponent}if(next===61){width++;type=_assign}return finishOp(type,width)}function readToken_pipe_amp(code){var next=input.charCodeAt(tokPos+1);if(next===code){if(options.playground&&input.charCodeAt(tokPos+2)===61)return finishOp(_assign,3);return finishOp(code===124?_logicalOR:_logicalAND,2)}if(next===61)return finishOp(_assign,2);return finishOp(code===124?_bitwiseOR:_bitwiseAND,1)}function readToken_caret(){var next=input.charCodeAt(tokPos+1);if(next===61)return finishOp(_assign,2);return finishOp(_bitwiseXOR,1)}function readToken_plus_min(code){var next=input.charCodeAt(tokPos+1);if(next===code){if(next==45&&input.charCodeAt(tokPos+2)==62&&newline.test(input.slice(lastEnd,tokPos))){skipLineComment(3);skipSpace();return readToken()}return finishOp(_incDec,2)}if(next===61)return finishOp(_assign,2);return finishOp(_plusMin,1)}function readToken_lt_gt(code){var next=input.charCodeAt(tokPos+1);var size=1;if(!inType&&next===code){size=code===62&&input.charCodeAt(tokPos+2)===62?3:2;if(input.charCodeAt(tokPos+size)===61)return finishOp(_assign,size+1);return finishOp(_bitShift,size)}if(next==33&&code==60&&input.charCodeAt(tokPos+2)==45&&input.charCodeAt(tokPos+3)==45){skipLineComment(4);skipSpace();return readToken()}if(!inType){if(tokExprAllowed&&code===60){++tokPos;return finishToken(_jsxTagStart)}if(code===62){var context=curTokContext();if(context===j_oTag||context===j_cTag){++tokPos;return finishToken(_jsxTagEnd)}}}if(next===61)size=input.charCodeAt(tokPos+2)===61?3:2;return finishOp(_relational,size)}function readToken_eq_excl(code){var next=input.charCodeAt(tokPos+1);if(next===61)return finishOp(_equality,input.charCodeAt(tokPos+2)===61?3:2);if(code===61&&next===62&&options.ecmaVersion>=6){tokPos+=2;return finishToken(_arrow)}return finishOp(code===61?_eq:_prefix,1)}function getTemplateToken(code){if(tokType===_string){if(code===96){++tokPos;return finishToken(_bquote)}else if(code===36&&input.charCodeAt(tokPos+1)===123){tokPos+=2;return finishToken(_dollarBraceL)}}return readTmplString()}function getTokenFromCode(code){switch(code){case 46:return readToken_dot();case 40:++tokPos;return finishToken(_parenL);case 41:++tokPos;return finishToken(_parenR);case 59:++tokPos;return finishToken(_semi);case 44:++tokPos;return finishToken(_comma);case 91:++tokPos;return finishToken(_bracketL);case 93:++tokPos;return finishToken(_bracketR);case 123:++tokPos;return finishToken(_braceL);case 125:++tokPos;return finishToken(_braceR);case 63:++tokPos;return finishToken(_question);case 64:if(options.playground){++tokPos;return finishToken(_at)}case 35:if(options.playground){++tokPos;return finishToken(_hash)}case 58:++tokPos;if(options.ecmaVersion>=7){var next=input.charCodeAt(tokPos);if(next===58){++tokPos;return finishToken(_paamayimNekudotayim)}}return finishToken(_colon);case 96:if(options.ecmaVersion>=6){++tokPos;return finishToken(_backQuote)}else{return false}case 48:var next=input.charCodeAt(tokPos+1);if(next===120||next===88)return readRadixNumber(16);if(options.ecmaVersion>=6){if(next===111||next===79)return readRadixNumber(8);if(next===98||next===66)return readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return readNumber(false);case 34:case 39:return inXJSTag?readXJSStringLiteral():readString(code);case 47:return readToken_slash();case 37:return readToken_modulo();case 42:return readToken_mult();case 124:case 38:return readToken_pipe_amp(code);case 94:return readToken_caret();case 43:case 45:return readToken_plus_min(code);case 60:case 62:return readToken_lt_gt(code);case 61:case 33:return readToken_eq_excl(code);case 126:return finishOp(_prefix,1)}return false}function readToken(){tokStart=tokPos;if(options.locations)tokStartLoc=curPosition();if(tokPos>=inputLen)return finishToken(_eof);var context=curTokContext();if(context===q_tmpl){return readTmplToken()}if(context===j_expr){return readJSXToken()}var code=input.charCodeAt(tokPos);if(context===j_oTag||context===j_cTag){if(isIdentifierStart(code))return readJSXWord()}else if(context===j_expr){return readJSXToken()}else{if(isIdentifierStart(code)||code===92)return readWord()}var tok=getTokenFromCode(code);if(tok===false){var ch=String.fromCharCode(code);if(ch==="\\"||nonASCIIidentifierStart.test(ch))return readWord();raise(tokPos,"Unexpected character '"+ch+"'")}return tok}function finishOp(type,size,shouldSkipSpace){var str=input.slice(tokPos,tokPos+size);tokPos+=size;finishToken(type,str,shouldSkipSpace)}var regexpUnicodeSupport=false;try{new RegExp("","u");regexpUnicodeSupport=true}catch(e){}function readRegexp(){var content="",escaped,inClass,start=tokPos;for(;;){if(tokPos>=inputLen)raise(start,"Unterminated regular expression");var ch=nextChar();if(newline.test(ch))raise(start,"Unterminated regular expression");if(!escaped){if(ch==="[")inClass=true;else if(ch==="]"&&inClass)inClass=false;else if(ch==="/"&&!inClass)break;escaped=ch==="\\"}else escaped=false;++tokPos}var content=input.slice(start,tokPos);++tokPos;var mods=readWord1();var tmp=content;if(mods){var validFlags=/^[gmsiy]*$/;if(options.ecmaVersion>=6)validFlags=/^[gmsiyu]*$/;if(!validFlags.test(mods))raise(start,"Invalid regular expression flag");if(mods.indexOf("u")>=0&&!regexpUnicodeSupport){tmp=tmp.replace(/\\u\{([0-9a-fA-F]{5,6})\}/g,"x").replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x")}}try{new RegExp(tmp)}catch(e){if(e instanceof SyntaxError)raise(start,"Error parsing regular expression: "+e.message);raise(e)}try{var value=new RegExp(content,mods)}catch(err){value=null}return finishToken(_regexp,{pattern:content,flags:mods,value:value})}function readInt(radix,len){var start=tokPos,total=0;for(var i=0,e=len==null?Infinity:len;i<e;++i){var code=input.charCodeAt(tokPos),val;if(code>=97)val=code-97+10;else if(code>=65)val=code-65+10;else if(code>=48&&code<=57)val=code-48;else val=Infinity;if(val>=radix)break;++tokPos;total=total*radix+val}if(tokPos===start||len!=null&&tokPos-start!==len)return null;return total}function readRadixNumber(radix){tokPos+=2;var val=readInt(radix);if(val==null)raise(tokStart+2,"Expected number in radix "+radix);if(isIdentifierStart(input.charCodeAt(tokPos)))raise(tokPos,"Identifier directly after number");return finishToken(_num,val)}function readNumber(startsWithDot){var start=tokPos,isFloat=false,octal=input.charCodeAt(tokPos)===48;if(!startsWithDot&&readInt(10)===null)raise(start,"Invalid number");if(input.charCodeAt(tokPos)===46){++tokPos;readInt(10);isFloat=true}var next=input.charCodeAt(tokPos);if(next===69||next===101){next=input.charCodeAt(++tokPos);if(next===43||next===45)++tokPos;if(readInt(10)===null)raise(start,"Invalid number");isFloat=true}if(isIdentifierStart(input.charCodeAt(tokPos)))raise(tokPos,"Identifier directly after number");var str=input.slice(start,tokPos),val;if(isFloat)val=parseFloat(str);else if(!octal||str.length===1)val=parseInt(str,10);else if(/[89]/.test(str)||strict)raise(start,"Invalid number");else val=parseInt(str,8);return finishToken(_num,val)}function readCodePoint(){var ch=input.charCodeAt(tokPos),code;if(ch===123){if(options.ecmaVersion<6)unexpected();++tokPos;code=readHexChar(input.indexOf("}",tokPos)-tokPos);++tokPos;if(code>1114111)unexpected()}else{code=readHexChar(4)}if(code<=65535){return String.fromCharCode(code)}var cu1=(code-65536>>10)+55296;var cu2=(code-65536&1023)+56320;return String.fromCharCode(cu1,cu2)}function readString(quote){var isJSX=curTokContext()===j_oTag;var out="",chunkStart=++tokPos;for(;;){if(tokPos>=inputLen)raise(tokStart,"Unterminated string constant");var ch=input.charCodeAt(tokPos);if(ch===quote)break;if(ch===92&&!isJSX){out+=input.slice(chunkStart,tokPos);out+=readEscapedChar();chunkStart=tokPos}else if(ch===38&&isJSX){out+=input.slice(chunkStart,tokPos);out+=readJSXEntity();chunkStart=tokPos}else{if(isNewLine(ch))raise(tokStart,"Unterminated string constant");++tokPos}}out+=input.slice(chunkStart,tokPos++);return finishToken(_string,out)}function readTmplToken(){var out="",chunkStart=tokPos;for(;;){if(tokPos>=inputLen)raise(tokStart,"Unterminated template");var ch=input.charCodeAt(tokPos);if(ch===96||ch===36&&input.charCodeAt(tokPos+1)===123){if(tokPos===tokStart&&tokType===_template){if(ch===36){tokPos+=2;return finishToken(_dollarBraceL)}else{++tokPos;return finishToken(_backQuote)}}out+=input.slice(chunkStart,tokPos);return finishToken(_template,out)}if(ch===92){out+=input.slice(chunkStart,tokPos);out+=readEscapedChar();chunkStart=tokPos}else if(isNewLine(ch)){out+=input.slice(chunkStart,tokPos);++tokPos;if(ch===13&&input.charCodeAt(tokPos)===10){++tokPos;out+="\n"}else{out+=String.fromCharCode(ch)}if(options.locations){++tokCurLine;tokLineStart=tokPos}chunkStart=tokPos}else{++tokPos}}}var XHTMLEntities={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪","int":"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"};function readJSXEntity(){var str="",count=0,entity;var ch=input[tokPos];if(ch!=="&")raise(tokPos,"Entity must start with an ampersand");var startPos=++tokPos;while(tokPos<inputLen&&count++<10){ch=input[tokPos++];if(ch===";"){if(str[0]==="#"){if(str[1]==="x"){str=str.substr(2);if(hexNumber.test(str)){entity=String.fromCharCode(parseInt(str,16))}}else{str=str.substr(1);if(decimalNumber.test(str)){entity=String.fromCharCode(parseInt(str,10))}}}else{entity=XHTMLEntities[str]}break}str+=ch}if(!entity){tokPos=startPos;return"&"}return entity}function readJSXToken(){var out="",start=tokPos;for(;;){if(tokPos>=inputLen)raise(tokStart,"Unterminated JSX contents");var ch=input.charCodeAt(tokPos);switch(ch){case 123:case 60:if(tokPos===start){return getTokenFromCode(ch)}return finishToken(_jsxText,out);case 38:out+=readJSXEntity();break;default:++tokPos;if(isNewLine(ch)){if(ch===13&&input.charCodeAt(tokPos)===10){++tokPos;ch=10}if(options.locations){++tokCurLine;tokLineStart=tokPos}}out+=String.fromCharCode(ch)}}}function readEscapedChar(){var ch=input.charCodeAt(++tokPos);var octal=/^[0-7]+/.exec(input.slice(tokPos,tokPos+3));if(octal)octal=octal[0];while(octal&&parseInt(octal,8)>255)octal=octal.slice(0,-1);if(octal==="0")octal=null;++tokPos;if(octal){if(strict)raise(tokPos-2,"Octal literal in strict mode");tokPos+=octal.length-1;return String.fromCharCode(parseInt(octal,8))}else{switch(ch){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(readHexChar(2));case 117:return readCodePoint();case 116:return" ";case 98:return"\b";case 118:return"";case 102:return"\f";case 48:return"\x00";case 13:if(input.charCodeAt(tokPos)===10)++tokPos;case 10:if(options.locations){tokLineStart=tokPos;++tokCurLine}return"";default:return String.fromCharCode(ch)}}}var XHTMLEntities={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪","int":"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"};function readXJSEntity(){var str="",count=0,entity;var ch=nextChar();if(ch!=="&")raise(tokPos,"Entity must start with an ampersand");var startPos=++tokPos;while(tokPos<inputLen&&count++<10){ch=nextChar();tokPos++;if(ch===";"){if(str[0]==="#"){if(str[1]==="x"){str=str.substr(2);if(hexNumber.test(str)){entity=String.fromCharCode(parseInt(str,16))}}else{str=str.substr(1);if(decimalNumber.test(str)){entity=String.fromCharCode(parseInt(str,10))}}}else{entity=XHTMLEntities[str]}break}str+=ch}if(!entity){tokPos=startPos;return"&"}return entity}function readXJSText(stopChars){var str="";while(tokPos<inputLen){var ch=nextChar();if(stopChars.indexOf(ch)!==-1){break}if(ch==="&"){str+=readXJSEntity()}else{++tokPos;if(ch==="\r"&&nextChar()==="\n"){str+=ch;++tokPos;ch="\n"}if(ch==="\n"&&options.locations){tokLineStart=tokPos;++tokCurLine}str+=ch}}return finishToken(_xjsText,str)}function readXJSStringLiteral(){var quote=input.charCodeAt(tokPos);if(quote!==34&"e!==39){raise("String literal must starts with a quote")}++tokPos;readXJSText([String.fromCharCode(quote)]);if(quote!==input.charCodeAt(tokPos)){unexpected()}++tokPos;return finishToken(tokType,tokVal)}function readHexChar(len){var n=readInt(16,len);if(n===null)raise(tokStart,"Bad character escape sequence");return n}var containsEsc;function readWord1(){containsEsc=false;var word="",first=true,chunkStart=tokPos;for(;;){var ch=input.charCodeAt(tokPos);if(isIdentifierChar(ch)){++tokPos}else if(ch===92){containsEsc=true;word+=input.slice(chunkStart,tokPos);if(input.charCodeAt(++tokPos)!=117)raise(tokPos,"Expecting Unicode escape sequence \\uXXXX");++tokPos;var esc=readHexChar(4);var escStr=String.fromCharCode(esc);if(!escStr)raise(tokPos-1,"Invalid Unicode escape");if(!(first?isIdentifierStart(esc):isIdentifierChar(esc)))raise(tokPos-4,"Invalid Unicode escape");word+=escStr;chunkStart=tokPos}else{break}first=false}return word+input.slice(chunkStart,tokPos)}function readWord(){var word=readWord1();var type=inXJSTag?_xjsName:_name;if(!containsEsc&&isKeyword(word))type=keywordTypes[word];return finishToken(type,word)}function readJSXWord(){var ch,start=tokPos;do{ch=input.charCodeAt(++tokPos)}while(isIdentifierChar(ch)||ch===45);return finishToken(_jsxName,input.slice(start,tokPos))}function next(){if(options.onToken)options.onToken(new Token);lastStart=tokStart;lastEnd=tokEnd;lastEndLoc=tokEndLoc;readToken()}function setStrict(strct){strict=strct;if(tokType!==_num&&tokType!==_string)return;tokPos=tokStart;if(options.locations){while(tokPos<tokLineStart){tokLineStart=input.lastIndexOf("\n",tokLineStart-2)+1;--tokCurLine}}skipSpace();readToken()}function Node(){this.type=null;this.start=tokStart;this.end=null}exports.Node=Node;function SourceLocation(){this.start=tokStartLoc;this.end=null;if(sourceFile!==null)this.source=sourceFile}function startNode(){var node=new exports.Node;if(options.locations)node.loc=new SourceLocation;if(options.directSourceFile)node.sourceFile=options.directSourceFile;if(options.ranges)node.range=[tokStart,0];return node}function storeCurrentPos(){return options.locations?[tokStart,tokStartLoc]:tokStart}function startNodeAt(pos){var node=new exports.Node,start=pos;if(options.locations){node.loc=new SourceLocation;node.loc.start=start[1];start=pos[0]}node.start=start;if(options.directSourceFile)node.sourceFile=options.directSourceFile;if(options.ranges)node.range=[start,0];return node}function finishNode(node,type){node.type=type;node.end=lastEnd;if(options.locations)node.loc.end=lastEndLoc;if(options.ranges)node.range[1]=lastEnd;return node}function finishNodeAt(node,type,pos){if(options.locations){node.loc.end=pos[1];pos=pos[0]}node.type=type;node.end=pos;if(options.ranges)node.range[1]=pos;return node}function isUseStrict(stmt){return options.ecmaVersion>=5&&stmt.type==="ExpressionStatement"&&stmt.expression.type==="Literal"&&stmt.expression.value==="use strict"}function eat(type){if(tokType===type){next();return true}else{return false}}function isContextual(name){return tokType===_name&&tokVal===name}function eatContextual(name){return tokVal===name&&eat(_name)}function expectContextual(name){if(!eatContextual(name))unexpected()}function canInsertSemicolon(){return!options.strictSemicolons&&(tokType===_eof||tokType===_braceR||newline.test(input.slice(lastEnd,tokStart)))}function semicolon(){if(!eat(_semi)&&!canInsertSemicolon())unexpected()}function expect(type){eat(type)||unexpected()}function nextChar(){return input.charAt(tokPos)}function unexpected(pos){raise(pos!=null?pos:tokStart,"Unexpected token")}function has(obj,propName){return Object.prototype.hasOwnProperty.call(obj,propName)}function toAssignable(node){if(options.ecmaVersion>=6&&node){switch(node.type){case"Identifier":case"MemberExpression":case"VirtualPropertyExpression":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":node.type="ObjectPattern";for(var i=0;i<node.properties.length;i++){var prop=node.properties[i];if(prop.kind!=="init")raise(prop.key.start,"Object pattern can't contain getter or setter");toAssignable(prop.value)}break;case"ArrayExpression":node.type="ArrayPattern";toAssignableList(node.elements);break;case"AssignmentExpression":if(node.operator==="="){node.type="AssignmentPattern"}else{raise(node.left.end,"Only '=' operator can be used for specifying default value.")}break;default:raise(node.start,"Assigning to rvalue")}}return node}function toAssignableList(exprList){if(exprList.length){for(var i=0;i<exprList.length-1;i++){toAssignable(exprList[i])}var last=exprList[exprList.length-1];switch(last.type){case"RestElement":break;case"SpreadElement":last.type="RestElement";var arg=last.argument;toAssignable(arg);if(arg.type!=="Identifier"&&arg.type!=="ArrayPattern")unexpected(arg.start);break;default:toAssignable(last)}}return exprList}function parseSpread(refShorthandDefaultPos){var node=startNode();next();node.argument=parseMaybeAssign(refShorthandDefaultPos);return finishNode(node,"SpreadElement")}function parseRest(){var node=startNode();next();node.argument=tokType===_name||tokType===_bracketL?parseAssignableAtom():unexpected();return finishNode(node,"RestElement")}function parseAssignableAtom(){if(options.ecmaVersion<6)return parseIdent();switch(tokType){case _name:return parseIdent();case _bracketL:var node=startNode();next();node.elements=parseAssignableList(_bracketR,true);return finishNode(node,"ArrayPattern");case _braceL:return parseObj(true);default:unexpected()}}function parseAssignableList(close,allowEmpty){var elts=[],first=true;while(!eat(close)){first?first=false:expect(_comma);if(tokType===_ellipsis){elts.push(parseAssignableListItemTypes(parseRest()));expect(close);break}var elem;if(allowEmpty&&tokType===_comma){elem=null}else{var left=parseAssignableAtom();parseAssignableListItemTypes(left);elem=parseMaybeDefault(null,left)}elts.push(elem)}return elts}function parseAssignableListItemTypes(param){if(eat(_question)){param.optional=true}if(tokType===_colon){param.typeAnnotation=parseTypeAnnotation()}finishNode(param,param.type);return param}function parseMaybeDefault(startPos,left){left=left||parseAssignableAtom();if(!eat(_eq))return left;var node=startPos?startNodeAt(startPos):startNode();node.operator="=";node.left=left;node.right=parseMaybeAssign();return finishNode(node,"AssignmentPattern")}function checkFunctionParam(param,nameHash){switch(param.type){case"Identifier":if(isStrictReservedWord(param.name)||isStrictBadIdWord(param.name))raise(param.start,"Defining '"+param.name+"' in strict mode");if(has(nameHash,param.name))raise(param.start,"Argument name clash in strict mode");nameHash[param.name]=true;break;case"ObjectPattern":for(var i=0;i<param.properties.length;i++)checkFunctionParam(param.properties[i].value,nameHash);break;case"ArrayPattern":for(var i=0;i<param.elements.length;i++){var elem=param.elements[i];if(elem)checkFunctionParam(elem,nameHash)}break;case"RestElement":return checkFunctionParam(param.argument,nameHash)}}function checkPropClash(prop,propHash){if(options.ecmaVersion>=6)return;var key=prop.key,name;switch(key.type){case"Identifier":name=key.name;break;case"Literal":name=String(key.value);break;default:return}var kind=prop.kind||"init",other;if(has(propHash,name)){other=propHash[name];var isGetSet=kind!=="init";if((strict||isGetSet)&&other[kind]||!(isGetSet^other.init))raise(key.start,"Redefinition of property")}else{other=propHash[name]={init:false,get:false,set:false}}other[kind]=true}function checkLVal(expr,isBinding){switch(expr.type){case"Identifier":if(strict&&(isStrictBadIdWord(expr.name)||isStrictReservedWord(expr.name)))raise(expr.start,(isBinding?"Binding ":"Assigning to ")+expr.name+" in strict mode");break;case"MemberExpression":if(isBinding)raise(expr.start,"Binding to member expression");break;case"ObjectPattern":for(var i=0;i<expr.properties.length;i++){var prop=expr.properties[i];if(prop.type==="Property")prop=prop.value;checkLVal(prop,isBinding)}break;case"ArrayPattern":for(var i=0;i<expr.elements.length;i++){var elem=expr.elements[i];if(elem)checkLVal(elem,isBinding)}break;case"AssignmentPattern":checkLVal(expr.left);break;case"SpreadProperty":case"VirtualPropertyExpression":break;case"RestElement":checkLVal(expr.argument);break;default:raise(expr.start,"Assigning to rvalue")}}function parseTopLevel(node){var first=true;if(!node.body)node.body=[];while(tokType!==_eof){var stmt=parseStatement(true,true);node.body.push(stmt);if(first&&isUseStrict(stmt))setStrict(true);first=false}next();return finishNode(node,"Program")}var loopLabel={kind:"loop"},switchLabel={kind:"switch"};function parseStatement(declaration,topLevel){var starttype=tokType,node=startNode();switch(starttype){case _break:case _continue:return parseBreakContinueStatement(node,starttype.keyword);case _debugger:return parseDebuggerStatement(node);case _do:return parseDoStatement(node);case _for:return parseForStatement(node);case _function:if(!declaration&&options.ecmaVersion>=6)unexpected();return parseFunctionStatement(node);case _class:if(!declaration)unexpected();return parseClass(node,true);case _if:return parseIfStatement(node);case _return:return parseReturnStatement(node);case _switch:return parseSwitchStatement(node);case _throw:return parseThrowStatement(node);case _try:return parseTryStatement(node);case _let:case _const:if(!declaration)unexpected();case _var:return parseVarStatement(node,starttype.keyword);case _while:return parseWhileStatement(node);case _with:return parseWithStatement(node);case _braceL:return parseBlock();case _semi:return parseEmptyStatement(node);case _export:case _import:if(!topLevel&&!options.allowImportExportEverywhere)raise(tokStart,"'import' and 'export' may only appear at the top level");return starttype===_import?parseImport(node):parseExport(node);default:var maybeName=tokVal,expr=parseExpression();if(options.ecmaVersion>=7&&starttype===_name&&maybeName==="async"&&tokType===_function&&!canInsertSemicolon()){next();var func=parseFunctionStatement(node);func.async=true;return func}if(starttype===_name&&expr.type==="Identifier"){if(eat(_colon)){return parseLabeledStatement(node,maybeName,expr)}if(options.ecmaVersion>=7&&expr.name==="private"&&tokType===_name){return parsePrivate(node)}else if(expr.name==="declare"){if(tokType===_class||tokType===_name||tokType===_function||tokType===_var){return parseDeclare(node)}}else if(tokType===_name){if(expr.name==="interface"){return parseInterface(node)}else if(expr.name==="type"){return parseTypeAlias(node)}}}if(expr.type==="FunctionExpression"&&expr.async){if(expr.id){expr.type="FunctionDeclaration";return expr}else{unexpected(expr.start+"async function ".length)}}return parseExpressionStatement(node,expr)}}function parseBreakContinueStatement(node,keyword){var isBreak=keyword=="break";next();if(eat(_semi)||canInsertSemicolon())node.label=null;else if(tokType!==_name)unexpected();else{node.label=parseIdent();semicolon()}for(var i=0;i<labels.length;++i){var lab=labels[i];if(node.label==null||lab.name===node.label.name){if(lab.kind!=null&&(isBreak||lab.kind==="loop"))break;if(node.label&&isBreak)break}}if(i===labels.length)raise(node.start,"Unsyntactic "+keyword);return finishNode(node,isBreak?"BreakStatement":"ContinueStatement")}function parseDebuggerStatement(node){next();semicolon();return finishNode(node,"DebuggerStatement")}function parseDoStatement(node){next();labels.push(loopLabel);node.body=parseStatement(false);labels.pop();expect(_while);node.test=parseParenExpression();if(options.ecmaVersion>=6)eat(_semi);else semicolon();return finishNode(node,"DoWhileStatement")}function parseForStatement(node){next();labels.push(loopLabel);expect(_parenL);if(tokType===_semi)return parseFor(node,null);if(tokType===_var||tokType===_let){var init=startNode(),varKind=tokType.keyword,isLet=tokType===_let;next();parseVar(init,true,varKind);finishNode(init,"VariableDeclaration");if((tokType===_in||options.ecmaVersion>=6&&isContextual("of"))&&init.declarations.length===1&&!(isLet&&init.declarations[0].init))return parseForIn(node,init);return parseFor(node,init)}var refShorthandDefaultPos={start:0};var init=parseExpression(true,refShorthandDefaultPos);if(tokType===_in||options.ecmaVersion>=6&&isContextual("of")){toAssignable(init);checkLVal(init);return parseForIn(node,init)}else if(refShorthandDefaultPos.start){unexpected(refShorthandDefaultPos.start)}return parseFor(node,init)}function parseFunctionStatement(node){next();return parseFunction(node,true,false)}function parseIfStatement(node){next();node.test=parseParenExpression();node.consequent=parseStatement(false);node.alternate=eat(_else)?parseStatement(false):null;return finishNode(node,"IfStatement")}function parseReturnStatement(node){if(!inFunction&&!options.allowReturnOutsideFunction)raise(tokStart,"'return' outside of function");next();if(eat(_semi)||canInsertSemicolon())node.argument=null;else{node.argument=parseExpression();semicolon()}return finishNode(node,"ReturnStatement")}function parseSwitchStatement(node){next();node.discriminant=parseParenExpression();node.cases=[];expect(_braceL);labels.push(switchLabel);
for(var cur,sawDefault;tokType!=_braceR;){if(tokType===_case||tokType===_default){var isCase=tokType===_case;if(cur)finishNode(cur,"SwitchCase");node.cases.push(cur=startNode());cur.consequent=[];next();if(isCase)cur.test=parseExpression();else{if(sawDefault)raise(lastStart,"Multiple default clauses");sawDefault=true;cur.test=null}expect(_colon)}else{if(!cur)unexpected();cur.consequent.push(parseStatement(true))}}if(cur)finishNode(cur,"SwitchCase");next();labels.pop();return finishNode(node,"SwitchStatement")}function parseThrowStatement(node){next();if(newline.test(input.slice(lastEnd,tokStart)))raise(lastEnd,"Illegal newline after throw");node.argument=parseExpression();semicolon();return finishNode(node,"ThrowStatement")}function parseTryStatement(node){next();node.block=parseBlock();node.handler=null;if(tokType===_catch){var clause=startNode();next();expect(_parenL);clause.param=parseAssignableAtom();checkLVal(clause.param,true);expect(_parenR);clause.guard=null;clause.body=parseBlock();node.handler=finishNode(clause,"CatchClause")}node.guardedHandlers=empty;node.finalizer=eat(_finally)?parseBlock():null;if(!node.handler&&!node.finalizer)raise(node.start,"Missing catch or finally clause");return finishNode(node,"TryStatement")}function parseVarStatement(node,kind){next();parseVar(node,false,kind);semicolon();return finishNode(node,"VariableDeclaration")}function parseWhileStatement(node){next();node.test=parseParenExpression();labels.push(loopLabel);node.body=parseStatement(false);labels.pop();return finishNode(node,"WhileStatement")}function parseWithStatement(node){if(strict)raise(tokStart,"'with' in strict mode");next();node.object=parseParenExpression();node.body=parseStatement(false);return finishNode(node,"WithStatement")}function parseEmptyStatement(node){next();return finishNode(node,"EmptyStatement")}function parseLabeledStatement(node,maybeName,expr){for(var i=0;i<labels.length;++i)if(labels[i].name===maybeName)raise(expr.start,"Label '"+maybeName+"' is already declared");var kind=tokType.isLoop?"loop":tokType===_switch?"switch":null;labels.push({name:maybeName,kind:kind});node.body=parseStatement(true);labels.pop();node.label=expr;return finishNode(node,"LabeledStatement")}function parseExpressionStatement(node,expr){node.expression=expr;semicolon();return finishNode(node,"ExpressionStatement")}function parseParenExpression(){expect(_parenL);var val=parseExpression();expect(_parenR);return val}function parseBlock(allowStrict){var node=startNode(),first=true,oldStrict;node.body=[];expect(_braceL);while(!eat(_braceR)){var stmt=parseStatement(true);node.body.push(stmt);if(first&&allowStrict&&isUseStrict(stmt)){oldStrict=strict;setStrict(strict=true)}first=false}if(oldStrict===false)setStrict(false);return finishNode(node,"BlockStatement")}function parseFor(node,init){node.init=init;expect(_semi);node.test=tokType===_semi?null:parseExpression();expect(_semi);node.update=tokType===_parenR?null:parseExpression();expect(_parenR);node.body=parseStatement(false);labels.pop();return finishNode(node,"ForStatement")}function parseForIn(node,init){var type=tokType===_in?"ForInStatement":"ForOfStatement";next();node.left=init;node.right=parseExpression();expect(_parenR);node.body=parseStatement(false);labels.pop();return finishNode(node,type)}function parseVar(node,noIn,kind){node.declarations=[];node.kind=kind;for(;;){var decl=startNode();decl.id=parseAssignableAtom();checkLVal(decl.id,true);if(tokType===_colon){decl.id.typeAnnotation=parseTypeAnnotation();finishNode(decl.id,decl.id.type)}decl.init=eat(_eq)?parseMaybeAssign(noIn):kind===_const.keyword?unexpected():null;node.declarations.push(finishNode(decl,"VariableDeclarator"));if(!eat(_comma))break}return node}function parseExpression(noIn,refShorthandDefaultPos){var start=storeCurrentPos();var expr=parseMaybeAssign(noIn,refShorthandDefaultPos);if(tokType===_comma){var node=startNodeAt(start);node.expressions=[expr];while(eat(_comma))node.expressions.push(parseMaybeAssign(noIn,refShorthandDefaultPos));return finishNode(node,"SequenceExpression")}return expr}function parseMaybeAssign(noIn,refShorthandDefaultPos,afterLeftParse){var failOnShorthandAssign;if(!refShorthandDefaultPos){refShorthandDefaultPos={start:0};failOnShorthandAssign=true}else{failOnShorthandAssign=false}var start=storeCurrentPos();var left=parseMaybeConditional(noIn,refShorthandDefaultPos);if(afterLeftParse)afterLeftParse(left);if(tokType.isAssign){var node=startNodeAt(start);node.operator=tokVal;node.left=tokType===_eq?toAssignable(left):left;refShorthandDefaultPos.start=0;checkLVal(left);next();node.right=parseMaybeAssign(noIn);return finishNode(node,"AssignmentExpression")}else if(failOnShorthandAssign&&refShorthandDefaultPos.start){unexpected(refShorthandDefaultPos.start)}return left}function parseMaybeConditional(noIn,refShorthandDefaultPos){var start=storeCurrentPos();var expr=parseExprOps(noIn,refShorthandDefaultPos);if(refShorthandDefaultPos&&refShorthandDefaultPos.start)return expr;if(eat(_question)){var node=startNodeAt(start);if(options.playground&&eat(_eq)){var left=node.left=toAssignable(expr);if(left.type!=="MemberExpression")raise(left.start,"You can only use member expressions in memoization assignment");node.right=parseMaybeAssign(noIn);node.operator="?=";return finishNode(node,"AssignmentExpression")}node.test=expr;node.consequent=parseMaybeAssign();expect(_colon);node.alternate=parseMaybeAssign(noIn);return finishNode(node,"ConditionalExpression")}return expr}function parseExprOps(noIn,refShorthandDefaultPos){var start=storeCurrentPos();var expr=parseMaybeUnary(refShorthandDefaultPos);if(refShorthandDefaultPos&&refShorthandDefaultPos.start)return expr;return parseExprOp(expr,start,-1,noIn)}function parseExprOp(left,leftStart,minPrec,noIn){var prec=tokType.binop;if(prec!=null&&(!noIn||tokType!==_in)){if(prec>minPrec){var node=startNodeAt(leftStart);node.left=left;node.operator=tokVal;var op=tokType;next();var start=storeCurrentPos();node.right=parseExprOp(parseMaybeUnary(),start,op.rightAssociative?prec-1:prec,noIn);finishNode(node,op===_logicalOR||op===_logicalAND?"LogicalExpression":"BinaryExpression");return parseExprOp(node,leftStart,minPrec,noIn)}}return left}function parseMaybeUnary(refShorthandDefaultPos){if(tokType.prefix){var node=startNode(),update=tokType.isUpdate;node.operator=tokVal;node.prefix=true;next();node.argument=parseMaybeUnary();if(refShorthandDefaultPos&&refShorthandDefaultPos.start)unexpected(refShorthandDefaultPos.start);if(update)checkLVal(node.argument);else if(strict&&node.operator==="delete"&&node.argument.type==="Identifier")raise(node.start,"Deleting local variable in strict mode");return finishNode(node,update?"UpdateExpression":"UnaryExpression")}var start=storeCurrentPos();var expr=parseExprSubscripts(refShorthandDefaultPos);if(refShorthandDefaultPos&&refShorthandDefaultPos.start)return expr;while(tokType.postfix&&!canInsertSemicolon()){var node=startNodeAt(start);node.operator=tokVal;node.prefix=false;node.argument=expr;checkLVal(expr);next();expr=finishNode(node,"UpdateExpression")}return expr}function parseExprSubscripts(refShorthandDefaultPos){var start=storeCurrentPos();var expr=parseExprAtom(refShorthandDefaultPos);if(refShorthandDefaultPos&&refShorthandDefaultPos.start)return expr;return parseSubscripts(expr,start)}function parseSubscripts(base,start,noCalls){if(options.playground&&eat(_hash)){var node=startNodeAt(start);node.object=base;node.property=parseIdent(true);if(eat(_parenL)){node.arguments=parseExprList(_parenR,false)}else{node.arguments=[]}return parseSubscripts(finishNode(node,"BindMemberExpression"),start,noCalls)}else if(eat(_paamayimNekudotayim)){var node=startNodeAt(start);node.object=base;node.property=parseIdent(true);return parseSubscripts(finishNode(node,"VirtualPropertyExpression"),start,noCalls)}else if(eat(_dot)){var node=startNodeAt(start);node.object=base;node.property=parseIdent(true);node.computed=false;return parseSubscripts(finishNode(node,"MemberExpression"),start,noCalls)}else if(eat(_bracketL)){var node=startNodeAt(start);node.object=base;node.property=parseExpression();node.computed=true;expect(_bracketR);return parseSubscripts(finishNode(node,"MemberExpression"),start,noCalls)}else if(!noCalls&&eat(_parenL)){var node=startNodeAt(start);node.callee=base;node.arguments=parseExprList(_parenR,false);return parseSubscripts(finishNode(node,"CallExpression"),start,noCalls)}else if(tokType===_backQuote){var node=startNodeAt(start);node.tag=base;node.quasi=parseTemplate();return parseSubscripts(finishNode(node,"TaggedTemplateExpression"),start,noCalls)}return base}function parseExprAtom(refShorthandDefaultPos){switch(tokType){case _this:var node=startNode();next();return finishNode(node,"ThisExpression");case _at:var start=storeCurrentPos();var node=startNode();var thisNode=startNode();next();node.object=finishNode(thisNode,"ThisExpression");node.property=parseSubscripts(parseIdent(),start);node.computed=false;return finishNode(node,"MemberExpression");case _yield:if(inGenerator)return parseYield();case _name:var start=storeCurrentPos();var node=startNode();var id=parseIdent(tokType!==_name);if(options.ecmaVersion>=7){if(id.name==="async"){if(tokType===_parenL){next();var exprList;if(tokType!==_parenR){var val=parseExpression();exprList=val.type==="SequenceExpression"?val.expressions:[val]}else{exprList=[]}expect(_parenR);if(eat(_arrow)){return parseArrowExpression(node,exprList,true)}else{node.callee=id;node.arguments=exprList;return parseSubscripts(finishNode(node,"CallExpression"),start)}}else if(tokType===_name){id=parseIdent();if(eat(_arrow)){return parseArrowExpression(node,[id],true)}return id}if(tokType===_function&&!canInsertSemicolon()){next();return parseFunction(node,false,true)}}else if(id.name==="await"){if(inAsync)return parseAwait(node)}}if(eat(_arrow)){return parseArrowExpression(node,[id])}return id;case _regexp:var node=startNode();node.regex={pattern:tokVal.pattern,flags:tokVal.flags};node.value=tokVal.value;node.raw=input.slice(tokStart,tokEnd);next();return finishNode(node,"Literal");case _num:case _string:case _jsxText:var node=startNode();node.value=tokVal;node.raw=input.slice(tokStart,tokEnd);next();return finishNode(node,"Literal");case _null:case _true:case _false:var node=startNode();node.value=tokType.atomValue;node.raw=tokType.keyword;next();return finishNode(node,"Literal");case _parenL:return parseParenAndDistinguishExpression();case _bracketL:var node=startNode();next();if(options.ecmaVersion>=7&&tokType===_for){return parseComprehension(node,false)}node.elements=parseExprList(_bracketR,true,true,refShorthandDefaultPos);return finishNode(node,"ArrayExpression");case _braceL:return parseObj(false,refShorthandDefaultPos);case _function:var node=startNode();next();return parseFunction(node,false,false);case _class:return parseClass(startNode(),false);case _new:return parseNew();case _backQuote:return parseTemplate();case _hash:return parseBindFunctionExpression();case _jsxTagStart:return parseJSXElement();default:unexpected()}}function parseBindFunctionExpression(){var node=startNode();next();var start=storeCurrentPos();node.callee=parseSubscripts(parseExprAtom(),start,true);if(eat(_parenL)){node.arguments=parseExprList(_parenR,false)}else{node.arguments=[]}return finishNode(node,"BindFunctionExpression")}function parseParenAndDistinguishExpression(){var start=storeCurrentPos(),val;if(options.ecmaVersion>=6){next();if(options.ecmaVersion>=7&&tokType===_for){return parseComprehension(startNodeAt(start),true)}var innerStart=storeCurrentPos(),exprList=[],first=true;var refShorthandDefaultPos={start:0},spreadStart,innerParenStart,typeStart;var parseParenItem=function(node){if(tokType===_colon){typeStart=typeStart||tokStart;node.returnType=parseTypeAnnotation()}return node};while(tokType!==_parenR){first?first=false:expect(_comma);if(tokType===_ellipsis){spreadStart=tokStart;exprList.push(parseParenItem(parseRest()));break}else{if(tokType===_parenL&&!innerParenStart){innerParenStart=tokStart}exprList.push(parseMaybeAssign(false,refShorthandDefaultPos,parseParenItem))}}var innerEnd=storeCurrentPos();expect(_parenR);if(eat(_arrow)){if(innerParenStart)unexpected(innerParenStart);return parseArrowExpression(startNodeAt(start),exprList)}if(!exprList.length)unexpected(lastStart);if(typeStart)unexpected(typeStart);if(spreadStart)unexpected(spreadStart);if(refShorthandDefaultPos.start)unexpected(refShorthandDefaultPos.start);if(exprList.length>1){val=startNodeAt(innerStart);val.expressions=exprList;finishNodeAt(val,"SequenceExpression",innerEnd)}else{val=exprList[0]}}else{val=parseParenExpression()}if(options.preserveParens){var par=startNodeAt(start);par.expression=val;return finishNode(par,"ParenthesizedExpression")}else{return val}}function parseNew(){var node=startNode();next();var start=storeCurrentPos();node.callee=parseSubscripts(parseExprAtom(),start,true);if(eat(_parenL))node.arguments=parseExprList(_parenR,false);else node.arguments=empty;return finishNode(node,"NewExpression")}function parseTemplateElement(){var elem=startNode();elem.value={raw:input.slice(tokStart,tokEnd),cooked:tokVal};next();elem.tail=tokType===_backQuote;return finishNode(elem,"TemplateElement")}function parseTemplate(){var node=startNode();next();node.expressions=[];var curElt=parseTemplateElement();node.quasis=[curElt];while(!curElt.tail){expect(_dollarBraceL);node.expressions.push(parseExpression());expect(_braceR);node.quasis.push(curElt=parseTemplateElement())}next();return finishNode(node,"TemplateLiteral")}function parseObj(isPattern,refShorthandDefaultPos){var node=startNode(),first=true,propHash={};node.properties=[];next();while(!eat(_braceR)){if(!first){expect(_comma);if(options.allowTrailingCommas&&eat(_braceR))break}else first=false;var prop=startNode(),start,isGenerator=false,isAsync=false;if(options.ecmaVersion>=7&&tokType===_ellipsis){prop=parseSpread();prop.type="SpreadProperty";node.properties.push(prop);continue}if(options.ecmaVersion>=6){prop.method=false;prop.shorthand=false;if(isPattern){start=storeCurrentPos()}else{isGenerator=eat(_star)}}if(options.ecmaVersion>=7&&isContextual("async")){var asyncId=parseIdent();if(tokType===_colon||tokType===_parenL){prop.key=asyncId}else{isAsync=true;parsePropertyName(prop)}}else{parsePropertyName(prop)}var typeParameters;if(isRelational("<")){typeParameters=parseTypeParameterDeclaration();if(tokType!==_parenL)unexpected()}if(eat(_colon)){prop.value=isPattern?parseMaybeDefault(start):parseMaybeAssign(false,refShorthandDefaultPos);prop.kind="init"}else if(options.ecmaVersion>=6&&tokType===_parenL){if(isPattern)unexpected();prop.kind="init";prop.method=true;prop.value=parseMethod(isGenerator,isAsync)}else if(options.ecmaVersion>=5&&!prop.computed&&prop.key.type==="Identifier"&&(prop.key.name==="get"||prop.key.name==="set"||options.playground&&prop.key.name==="memo")&&(tokType!=_comma&&tokType!=_braceR)){if(isGenerator||isAsync||isPattern)unexpected();prop.kind=prop.key.name;parsePropertyName(prop);prop.value=parseMethod(false,false)}else if(options.ecmaVersion>=6&&!prop.computed&&prop.key.type==="Identifier"){prop.kind="init";if(isPattern){prop.value=parseMaybeDefault(start,prop.key)}else if(tokType===_eq&&refShorthandDefaultPos){if(!refShorthandDefaultPos.start)refShorthandDefaultPos.start=tokStart;prop.value=parseMaybeDefault(start,prop.key)}else{prop.value=prop.key}prop.shorthand=true}else unexpected();prop.value.typeParameters=typeParameters;checkPropClash(prop,propHash);node.properties.push(finishNode(prop,"Property"))}return finishNode(node,isPattern?"ObjectPattern":"ObjectExpression")}function parsePropertyName(prop){if(options.ecmaVersion>=6){if(eat(_bracketL)){prop.computed=true;prop.key=parseExpression();expect(_bracketR);return}else{prop.computed=false}}prop.key=tokType===_num||tokType===_string?parseExprAtom():parseIdent(true)}function initFunction(node,isAsync){node.id=null;if(options.ecmaVersion>=6){node.generator=false;node.expression=false}if(options.ecmaVersion>=7){node.async=isAsync}}function parseFunction(node,isStatement,isAsync,allowExpressionBody){initFunction(node,isAsync);if(options.ecmaVersion>=6){node.generator=eat(_star)}if(isStatement||tokType===_name){node.id=parseIdent()}if(isRelational("<")){node.typeParameters=parseTypeParameterDeclaration()}parseFunctionParams(node);parseFunctionBody(node,allowExpressionBody);return finishNode(node,isStatement?"FunctionDeclaration":"FunctionExpression")}function parseMethod(isGenerator,isAsync){var node=startNode();initFunction(node,isAsync);parseFunctionParams(node);var allowExpressionBody;if(options.ecmaVersion>=6){node.generator=isGenerator;allowExpressionBody=true}else{allowExpressionBody=false}parseFunctionBody(node,allowExpressionBody);return finishNode(node,"FunctionExpression")}function parseFunctionParams(node){expect(_parenL);node.params=parseAssignableList(_parenR,false);if(tokType===_colon){node.returnType=parseTypeAnnotation()}}function parseArrowExpression(node,params,isAsync){initFunction(node,isAsync);node.params=toAssignableList(params,true);parseFunctionBody(node,true);return finishNode(node,"ArrowFunctionExpression")}function parseFunctionBody(node,allowExpression){var isExpression=allowExpression&&tokType!==_braceL;var oldInAsync=inAsync;inAsync=node.async;if(isExpression){node.body=parseMaybeAssign();node.expression=true}else{var oldInFunc=inFunction,oldInGen=inGenerator,oldLabels=labels;inFunction=true;inGenerator=node.generator;labels=[];node.body=parseBlock(true);node.expression=false;inFunction=oldInFunc;inGenerator=oldInGen;labels=oldLabels}inAsync=oldInAsync;if(strict||!isExpression&&node.body.body.length&&isUseStrict(node.body.body[0])){var nameHash={};if(node.id)checkFunctionParam(node.id,{});for(var i=0;i<node.params.length;i++)checkFunctionParam(node.params[i],nameHash)}}function parsePrivate(node){node.declarations=[];do{node.declarations.push(parseIdent())}while(eat(_comma));semicolon();return finishNode(node,"PrivateDeclaration")}function parseClass(node,isStatement){next();node.id=tokType===_name?parseIdent():isStatement?unexpected():null;if(isRelational("<")){node.typeParameters=parseTypeParameterDeclaration()}node.superClass=eat(_extends)?parseExprSubscripts():null;if(node.superClass&&isRelational("<")){node.superTypeParameters=parseTypeParameterInstantiation()}if(isContextual("implements")){next();node.implements=parseClassImplements()}var classBody=startNode();classBody.body=[];expect(_braceL);while(!eat(_braceR)){if(eat(_semi))continue;var method=startNode();if(options.ecmaVersion>=7&&isContextual("private")){next();classBody.body.push(parsePrivate(method));continue}var isGenerator=eat(_star);var isAsync=false;parsePropertyName(method);if(tokType!==_parenL&&!method.computed&&method.key.type==="Identifier"&&method.key.name==="static"){if(isGenerator||isAsync)unexpected();method["static"]=true;isGenerator=eat(_star);parsePropertyName(method)}else{method["static"]=false}if(tokType!==_parenL&&!method.computed&&method.key.type==="Identifier"&&method.key.name==="async"){isAsync=true;parsePropertyName(method)}if(tokType!==_parenL&&!method.computed&&method.key.type==="Identifier"&&(method.key.name==="get"||method.key.name==="set")||options.playground&&method.key.name==="memo"){if(isGenerator||isAsync)unexpected();method.kind=method.key.name;parsePropertyName(method)}else{method.kind=""}if(tokType===_colon){method.typeAnnotation=parseTypeAnnotation();semicolon();classBody.body.push(finishNode(method,"ClassProperty"))}else{var typeParameters;if(isRelational("<")){typeParameters=parseTypeParameterDeclaration()}method.value=parseMethod(isGenerator,isAsync);method.value.typeParameters=typeParameters;classBody.body.push(finishNode(method,"MethodDefinition"));eat(_semi)}}node.body=finishNode(classBody,"ClassBody");return finishNode(node,isStatement?"ClassDeclaration":"ClassExpression")}function parseClassImplements(){var implemented=[];do{var node=startNode();node.id=parseIdent();if(isRelational("<")){node.typeParameters=parseTypeParameterInstantiation()}else{node.typeParameters=null}implemented.push(finishNode(node,"ClassImplements"))}while(eat(_comma));return implemented}function parseExprList(close,allowTrailingComma,allowEmpty,refShorthandDefaultPos){var elts=[],first=true;while(!eat(close)){if(!first){expect(_comma);if(allowTrailingComma&&options.allowTrailingCommas&&eat(close))break}else first=false;if(allowEmpty&&tokType===_comma){elts.push(null)}else{if(tokType===_ellipsis)elts.push(parseSpread(refShorthandDefaultPos));else elts.push(parseMaybeAssign(false,refShorthandDefaultPos))}}return elts}function parseIdent(liberal){var node=startNode();if(liberal&&options.forbidReserved=="everywhere")liberal=false;if(tokType===_name){if(!liberal&&(options.forbidReserved&&(options.ecmaVersion===3?isReservedWord3:isReservedWord5)(tokVal)||strict&&isStrictReservedWord(tokVal))&&input.slice(tokStart,tokEnd).indexOf("\\")==-1)raise(tokStart,"The keyword '"+tokVal+"' is reserved");node.name=tokVal}else if(liberal&&tokType.keyword){node.name=tokType.keyword}else{unexpected()}next();return finishNode(node,"Identifier")}function parseExport(node){next();if(tokType===_var||tokType===_const||tokType===_let||tokType===_function||tokType===_class||isContextual("async")){node.declaration=parseStatement(true);node["default"]=false;node.specifiers=null;node.source=null}else if(eat(_default)){var declar=node.declaration=parseMaybeAssign(true);if(declar.id){if(declar.type==="FunctionExpression"){declar.type="FunctionDeclaration"}else if(declar.type==="ClassExpression"){declar.type="ClassDeclaration"}}node["default"]=true;node.specifiers=null;node.source=null;semicolon()}else{var isBatch=tokType===_star;node.declaration=null;node["default"]=false;node.specifiers=parseExportSpecifiers();if(eatContextual("from")){node.source=tokType===_string?parseExprAtom():unexpected()}else{if(isBatch)unexpected();node.source=null}semicolon()}return finishNode(node,"ExportDeclaration")}function parseExportSpecifiers(){var nodes=[],first=true;if(tokType===_star){var node=startNode();next();nodes.push(finishNode(node,"ExportBatchSpecifier"))}else{expect(_braceL);while(!eat(_braceR)){if(!first){expect(_comma);if(options.allowTrailingCommas&&eat(_braceR))break}else first=false;var node=startNode();node.id=parseIdent(tokType===_default);node.name=eatContextual("as")?parseIdent(true):null;nodes.push(finishNode(node,"ExportSpecifier"))}}return nodes}function parseImport(node){next();if(tokType===_string){node.specifiers=[];node.source=parseExprAtom()}else{node.specifiers=parseImportSpecifiers();expectContextual("from");node.source=tokType===_string?parseExprAtom():unexpected()}semicolon();return finishNode(node,"ImportDeclaration")}function parseImportSpecifiers(){var nodes=[],first=true;if(tokType===_name){var node=startNode();node.id=parseIdent();checkLVal(node.id,true);node.name=null;node["default"]=true;nodes.push(finishNode(node,"ImportSpecifier"));if(!eat(_comma))return nodes}if(tokType===_star){var node=startNode();next();expectContextual("as");node.name=parseIdent();checkLVal(node.name,true);nodes.push(finishNode(node,"ImportBatchSpecifier"));return nodes}expect(_braceL);while(!eat(_braceR)){if(!first){expect(_comma);if(options.allowTrailingCommas&&eat(_braceR))break}else first=false;var node=startNode();node.id=parseIdent(true);node.name=eatContextual("as")?parseIdent():null;checkLVal(node.name||node.id,true);node["default"]=false;nodes.push(finishNode(node,"ImportSpecifier"))}return nodes}function parseYield(){var node=startNode();next();if(eat(_semi)||canInsertSemicolon()){node.delegate=false;node.argument=null}else{node.delegate=eat(_star);node.argument=parseMaybeAssign()}return finishNode(node,"YieldExpression")}function parseAwait(node){if(eat(_semi)||canInsertSemicolon()){unexpected()}node.delegate=eat(_star);node.argument=parseMaybeAssign(true);return finishNode(node,"AwaitExpression")}function parseComprehension(node,isGenerator){node.blocks=[];while(tokType===_for){var block=startNode();next();expect(_parenL);block.left=parseAssignableAtom();checkLVal(block.left,true);expectContextual("of");block.right=parseExpression();expect(_parenR);node.blocks.push(finishNode(block,"ComprehensionBlock"))}node.filter=eat(_if)?parseParenExpression():null;node.body=parseExpression();expect(isGenerator?_parenR:_bracketR);node.generator=isGenerator;return finishNode(node,"ComprehensionExpression")}function getQualifiedJSXName(object){if(object.type==="JSXIdentifier"){return object.name}if(object.type==="JSXNamespacedName"){return object.namespace.name+":"+object.name.name}if(object.type==="JSXMemberExpression"){return getQualifiedJSXName(object.object)+"."+getQualifiedJSXName(object.property)}}function parseJSXIdentifier(){var node=startNode();if(tokType===_jsxName){node.name=tokVal}else if(tokType.keyword){node.name=tokType.keyword}else{unexpected()}next();return finishNode(node,"JSXIdentifier")}function parseJSXNamespacedName(){var start=storeCurrentPos();var name=parseJSXIdentifier();if(!eat(_colon))return name;var node=startNodeAt(start);node.namespace=name;node.name=parseJSXIdentifier();return finishNode(node,"JSXNamespacedName")}function parseJSXElementName(){var start=storeCurrentPos();var node=parseJSXNamespacedName();while(eat(_dot)){var newNode=startNodeAt(start);newNode.object=node;newNode.property=parseJSXIdentifier();node=finishNode(newNode,"JSXMemberExpression")}return node}function parseJSXAttributeValue(){switch(tokType){case _braceL:var node=parseJSXExpressionContainer();if(node.expression.type==="JSXEmptyExpression"){raise(node.start,"JSX attributes must only be assigned a non-empty "+"expression")}return node;case _jsxTagStart:return parseJSXElement();case _jsxText:case _string:return parseExprAtom();default:raise(tokStart,"JSX value should be either an expression or a quoted JSX text")}}function parseJSXEmptyExpression(){if(tokType!==_braceR){unexpected()}var tmp;tmp=tokStart;tokStart=lastEnd;lastEnd=tmp;tmp=tokStartLoc;tokStartLoc=lastEndLoc;lastEndLoc=tmp;return finishNode(startNode(),"JSXEmptyExpression")}function parseJSXExpressionContainer(){var node=startNode();next();node.expression=tokType===_braceR?parseJSXEmptyExpression():parseExpression();expect(_braceR);return finishNode(node,"JSXExpressionContainer")}function parseJSXAttribute(){var node=startNode();if(eat(_braceL)){expect(_ellipsis);node.argument=parseMaybeAssign();expect(_braceR);return finishNode(node,"JSXSpreadAttribute")}node.name=parseJSXNamespacedName();node.value=eat(_eq)?parseJSXAttributeValue():null;return finishNode(node,"JSXAttribute")}function parseJSXOpeningElementAt(start){var node=startNodeAt(start);node.attributes=[];node.name=parseJSXElementName();while(tokType!==_slash&&tokType!==_jsxTagEnd){node.attributes.push(parseJSXAttribute())}node.selfClosing=eat(_slash);expect(_jsxTagEnd);return finishNode(node,"JSXOpeningElement")}function parseJSXClosingElementAt(start){var node=startNodeAt(start);node.name=parseJSXElementName();expect(_jsxTagEnd);return finishNode(node,"JSXClosingElement")}function parseJSXElementAt(start){var node=startNodeAt(start);var children=[];var openingElement=parseJSXOpeningElementAt(start);var closingElement=null;if(!openingElement.selfClosing){contents:for(;;){switch(tokType){case _jsxTagStart:start=storeCurrentPos();next();if(eat(_slash)){closingElement=parseJSXClosingElementAt(start);break contents}children.push(parseJSXElementAt(start));break;case _jsxText:children.push(parseExprAtom());break;case _braceL:children.push(parseJSXExpressionContainer());break;default:unexpected()}}if(getQualifiedJSXName(closingElement.name)!==getQualifiedJSXName(openingElement.name)){raise(closingElement.start,"Expected corresponding JSX closing tag for <"+getQualifiedJSXName(openingElement.name)+">")}}node.openingElement=openingElement;node.closingElement=closingElement;node.children=children;return finishNode(node,"JSXElement")}function isRelational(op){return tokType===_relational&&tokVal===op}function expectRelational(op){if(isRelational(op)){next()}else{unexpected()}}function parseJSXElement(){var start=storeCurrentPos();next();return parseJSXElementAt(start)}function parseDeclareClass(node){next();parseInterfaceish(node,true);return finishNode(node,"DeclareClass")}function parseDeclareFunction(node){next();var id=node.id=parseIdent();var typeNode=startNode();var typeContainer=startNode();if(isRelational("<")){typeNode.typeParameters=parseTypeParameterDeclaration()}else{typeNode.typeParameters=null}expect(_parenL);var tmp=parseFunctionTypeParams();typeNode.params=tmp.params;typeNode.rest=tmp.rest;expect(_parenR);expect(_colon);typeNode.returnType=parseType();typeContainer.typeAnnotation=finishNode(typeNode,"FunctionTypeAnnotation");id.typeAnnotation=finishNode(typeContainer,"TypeAnnotation");finishNode(id,id.type);semicolon();return finishNode(node,"DeclareFunction")}function parseDeclare(node){if(tokType===_class){return parseDeclareClass(node)}else if(tokType===_function){return parseDeclareFunction(node)}else if(tokType===_var){return parseDeclareVariable(node)}else if(isContextual("module")){return parseDeclareModule(node)}else{unexpected()}}function parseDeclareVariable(node){next();node.id=parseTypeAnnotatableIdentifier();semicolon();return finishNode(node,"DeclareVariable")}function parseDeclareModule(node){next();if(tokType===_string){node.id=parseExprAtom()}else{node.id=parseIdent()}var bodyNode=node.body=startNode();var body=bodyNode.body=[];expect(_braceL);while(tokType!==_braceR){var node2=startNode();next();body.push(parseDeclare(node2))}expect(_braceR);finishNode(bodyNode,"BlockStatement");return finishNode(node,"DeclareModule")}function parseInterfaceish(node,allowStatic){node.id=parseIdent();if(isRelational("<")){node.typeParameters=parseTypeParameterDeclaration()}else{node.typeParameters=null}node.extends=[];if(eat(_extends)){do{node.extends.push(parseInterfaceExtends())}while(eat(_comma))}node.body=parseObjectType(allowStatic)}function parseInterfaceExtends(){var node=startNode();node.id=parseIdent();if(isRelational("<")){node.typeParameters=parseTypeParameterInstantiation()}else{node.typeParameters=null}return finishNode(node,"InterfaceExtends")}function parseInterface(node){parseInterfaceish(node,false);return finishNode(node,"InterfaceDeclaration")}function parseTypeAlias(node){node.id=parseIdent();if(isRelational("<")){node.typeParameters=parseTypeParameterDeclaration()}else{node.typeParameters=null}expect(_eq);node.right=parseType();semicolon();return finishNode(node,"TypeAlias")}function parseTypeParameterDeclaration(){var node=startNode();node.params=[];expectRelational("<");while(!isRelational(">")){node.params.push(parseIdent());if(!isRelational(">")){expect(_comma)}}expectRelational(">");return finishNode(node,"TypeParameterDeclaration")}function parseTypeParameterInstantiation(){var node=startNode(),oldInType=inType;node.params=[];inType=true;expectRelational("<");while(!isRelational(">")){node.params.push(parseType());if(!isRelational(">")){expect(_comma)}}expectRelational(">");inType=oldInType;return finishNode(node,"TypeParameterInstantiation")}function parseObjectPropertyKey(){return tokType===_num||tokType===_string?parseExprAtom():parseIdent(true)}function parseObjectTypeIndexer(node,isStatic){node.static=isStatic;expect(_bracketL);node.id=parseObjectPropertyKey();expect(_colon);node.key=parseType();expect(_bracketR);expect(_colon);node.value=parseType();return finishNode(node,"ObjectTypeIndexer")}function parseObjectTypeMethodish(node){node.params=[];node.rest=null;node.typeParameters=null;if(isRelational("<")){node.typeParameters=parseTypeParameterDeclaration()}expect(_parenL);while(tokType===_name){node.params.push(parseFunctionTypeParam());if(tokType!==_parenR){expect(_comma)}}if(eat(_ellipsis)){node.rest=parseFunctionTypeParam()}expect(_parenR);expect(_colon);node.returnType=parseType();return finishNode(node,"FunctionTypeAnnotation")
}function parseObjectTypeMethod(start,isStatic,key){var node=startNodeAt(start);node.value=parseObjectTypeMethodish(startNodeAt(start));node.static=isStatic;node.key=key;node.optional=false;return finishNode(node,"ObjectTypeProperty")}function parseObjectTypeCallProperty(node,isStatic){var valueNode=startNode();node.static=isStatic;node.value=parseObjectTypeMethodish(valueNode);return finishNode(node,"ObjectTypeCallProperty")}function parseObjectType(allowStatic){var nodeStart=startNode();var node;var optional=false;var property;var propertyKey;var propertyTypeAnnotation;var token;var isStatic;nodeStart.callProperties=[];nodeStart.properties=[];nodeStart.indexers=[];expect(_braceL);while(tokType!==_braceR){var start=storeCurrentPos();node=startNode();if(allowStatic&&isContextual("static")){next();isStatic=true}if(tokType===_bracketL){nodeStart.indexers.push(parseObjectTypeIndexer(node,isStatic))}else if(tokType===_parenL||isRelational("<")){nodeStart.callProperties.push(parseObjectTypeCallProperty(node,allowStatic))}else{if(isStatic&&tokType===_colon){propertyKey=parseIdent()}else{propertyKey=parseObjectPropertyKey()}if(isRelational("<")||tokType===_parenL){nodeStart.properties.push(parseObjectTypeMethod(start,isStatic,propertyKey))}else{if(eat(_question)){optional=true}expect(_colon);node.key=propertyKey;node.value=parseType();node.optional=optional;node.static=isStatic;nodeStart.properties.push(finishNode(node,"ObjectTypeProperty"))}}if(!eat(_semi)&&tokType!==_braceR){unexpected()}}expect(_braceR);return finishNode(nodeStart,"ObjectTypeAnnotation")}function parseGenericType(start,id){var node=startNodeAt(start);node.typeParameters=null;node.id=id;while(eat(_dot)){var node2=startNodeAt(start);node2.qualification=node.id;node2.id=parseIdent();node.id=finishNode(node2,"QualifiedTypeIdentifier")}if(isRelational("<")){node.typeParameters=parseTypeParameterInstantiation()}return finishNode(node,"GenericTypeAnnotation")}function parseVoidType(){var node=startNode();expect(keywordTypes["void"]);return finishNode(node,"VoidTypeAnnotation")}function parseTypeofType(){var node=startNode();expect(keywordTypes["typeof"]);node.argument=parsePrimaryType();return finishNode(node,"TypeofTypeAnnotation")}function parseTupleType(){var node=startNode();node.types=[];expect(_bracketL);while(tokPos<inputLen&&tokType!==_bracketR){node.types.push(parseType());if(tokType===_bracketR)break;expect(_comma)}expect(_bracketR);return finishNode(node,"TupleTypeAnnotation")}function parseFunctionTypeParam(){var optional=false;var node=startNode();node.name=parseIdent();if(eat(_question)){optional=true}expect(_colon);node.optional=optional;node.typeAnnotation=parseType();return finishNode(node,"FunctionTypeParam")}function parseFunctionTypeParams(){var ret={params:[],rest:null};while(tokType===_name){ret.params.push(parseFunctionTypeParam());if(tokType!==_parenR){expect(_comma)}}if(eat(_ellipsis)){ret.rest=parseFunctionTypeParam()}return ret}function identToTypeAnnotation(start,node,id){switch(id.name){case"any":return finishNode(node,"AnyTypeAnnotation");case"bool":case"boolean":return finishNode(node,"BooleanTypeAnnotation");case"number":return finishNode(node,"NumberTypeAnnotation");case"string":return finishNode(node,"StringTypeAnnotation");default:return parseGenericType(start,id)}}function parsePrimaryType(){var typeIdentifier=null;var params=null;var returnType=null;var start=storeCurrentPos();var node=startNode();var rest=null;var tmp;var typeParameters;var token;var type;var isGroupedType=false;switch(tokType){case _name:return identToTypeAnnotation(start,node,parseIdent());case _braceL:return parseObjectType();case _bracketL:return parseTupleType();case _relational:if(tokVal==="<"){node.typeParameters=parseTypeParameterDeclaration();expect(_parenL);tmp=parseFunctionTypeParams();node.params=tmp.params;node.rest=tmp.rest;expect(_parenR);expect(_arrow);node.returnType=parseType();return finishNode(node,"FunctionTypeAnnotation")}case _parenL:next();var tmpId;if(tokType!==_parenR&&tokType!==_ellipsis){if(tokType===_name){}else{isGroupedType=true}}if(isGroupedType){if(tmpId&&_parenR){type=tmpId}else{type=parseType();expect(_parenR)}if(eat(_arrow)){raise(node,"Unexpected token =>. It looks like "+"you are trying to write a function type, but you ended up "+"writing a grouped type followed by an =>, which is a syntax "+"error. Remember, function type parameters are named so function "+"types look like (name1: type1, name2: type2) => returnType. You "+"probably wrote (type1) => returnType")}return type}tmp=parseFunctionTypeParams();node.params=tmp.params;node.rest=tmp.rest;expect(_parenR);expect(_arrow);node.returnType=parseType();node.typeParameters=null;return finishNode(node,"FunctionTypeAnnotation");case _string:node.value=tokVal;node.raw=input.slice(tokStart,tokEnd);next();return finishNode(node,"StringLiteralTypeAnnotation");default:if(tokType.keyword){switch(tokType.keyword){case"void":return parseVoidType();case"typeof":return parseTypeofType()}}}unexpected()}function parsePostfixType(){var node=startNode();var type=node.elementType=parsePrimaryType();if(tokType===_bracketL){expect(_bracketL);expect(_bracketR);return finishNode(node,"ArrayTypeAnnotation")}return type}function parsePrefixType(){var node=startNode();if(eat(_question)){node.typeAnnotation=parsePrefixType();return finishNode(node,"NullableTypeAnnotation")}return parsePostfixType()}function parseIntersectionType(){var node=startNode();var type=parsePrefixType();node.types=[type];while(eat(_bitwiseAND)){node.types.push(parsePrefixType())}return node.types.length===1?type:finishNode(node,"IntersectionTypeAnnotation")}function parseUnionType(){var node=startNode();var type=parseIntersectionType();node.types=[type];while(eat(_bitwiseOR)){node.types.push(parseIntersectionType())}return node.types.length===1?type:finishNode(node,"UnionTypeAnnotation")}function parseType(){var oldInType=inType;inType=true;var type=parseUnionType();inType=oldInType;return type}function parseTypeAnnotation(){var node=startNode();var oldInType=inType;inType=true;expect(_colon);node.typeAnnotation=parseType();inType=oldInType;return finishNode(node,"TypeAnnotation")}function parseTypeAnnotatableIdentifier(requireTypeAnnotation,canBeOptionalParam){var node=startNode();var ident=parseIdent();var isOptionalParam=false;if(canBeOptionalParam&&eat(_question)){expect(_question);isOptionalParam=true}if(requireTypeAnnotation||tokType===_colon){ident.typeAnnotation=parseTypeAnnotation();finishNode(ident,ident.type)}if(isOptionalParam){ident.optional=true;finishNode(ident,ident.type)}return ident}})},{}],106:[function(require,module,exports){var types=require("../lib/types");var Type=types.Type;var def=Type.def;var or=Type.or;var builtin=types.builtInTypes;var isString=builtin.string;var isNumber=builtin.number;var isBoolean=builtin.boolean;var isRegExp=builtin.RegExp;var shared=require("../lib/shared");var defaults=shared.defaults;var geq=shared.geq;def("Printable").field("loc",or(def("SourceLocation"),null),defaults["null"],true);def("Node").bases("Printable").field("type",isString);def("SourceLocation").build("start","end","source").field("start",def("Position")).field("end",def("Position")).field("source",or(isString,null),defaults["null"]);def("Position").build("line","column").field("line",geq(1)).field("column",geq(0));def("Program").bases("Node").build("body").field("body",[def("Statement")]).field("comments",or([or(def("Block"),def("Line"))],null),defaults["null"],true);def("Function").bases("Node").field("id",or(def("Identifier"),null),defaults["null"]).field("params",[def("Pattern")]).field("body",or(def("BlockStatement"),def("Expression")));def("Statement").bases("Node");def("EmptyStatement").bases("Statement").build();def("BlockStatement").bases("Statement").build("body").field("body",[def("Statement")]);def("ExpressionStatement").bases("Statement").build("expression").field("expression",def("Expression"));def("IfStatement").bases("Statement").build("test","consequent","alternate").field("test",def("Expression")).field("consequent",def("Statement")).field("alternate",or(def("Statement"),null),defaults["null"]);def("LabeledStatement").bases("Statement").build("label","body").field("label",def("Identifier")).field("body",def("Statement"));def("BreakStatement").bases("Statement").build("label").field("label",or(def("Identifier"),null),defaults["null"]);def("ContinueStatement").bases("Statement").build("label").field("label",or(def("Identifier"),null),defaults["null"]);def("WithStatement").bases("Statement").build("object","body").field("object",def("Expression")).field("body",def("Statement"));def("SwitchStatement").bases("Statement").build("discriminant","cases","lexical").field("discriminant",def("Expression")).field("cases",[def("SwitchCase")]).field("lexical",isBoolean,defaults["false"]);def("ReturnStatement").bases("Statement").build("argument").field("argument",or(def("Expression"),null));def("ThrowStatement").bases("Statement").build("argument").field("argument",def("Expression"));def("TryStatement").bases("Statement").build("block","handler","finalizer").field("block",def("BlockStatement")).field("handler",or(def("CatchClause"),null),function(){return this.handlers&&this.handlers[0]||null}).field("handlers",[def("CatchClause")],function(){return this.handler?[this.handler]:[]},true).field("guardedHandlers",[def("CatchClause")],defaults.emptyArray).field("finalizer",or(def("BlockStatement"),null),defaults["null"]);def("CatchClause").bases("Node").build("param","guard","body").field("param",def("Pattern")).field("guard",or(def("Expression"),null),defaults["null"]).field("body",def("BlockStatement"));def("WhileStatement").bases("Statement").build("test","body").field("test",def("Expression")).field("body",def("Statement"));def("DoWhileStatement").bases("Statement").build("body","test").field("body",def("Statement")).field("test",def("Expression"));def("ForStatement").bases("Statement").build("init","test","update","body").field("init",or(def("VariableDeclaration"),def("Expression"),null)).field("test",or(def("Expression"),null)).field("update",or(def("Expression"),null)).field("body",def("Statement"));def("ForInStatement").bases("Statement").build("left","right","body","each").field("left",or(def("VariableDeclaration"),def("Expression"))).field("right",def("Expression")).field("body",def("Statement")).field("each",isBoolean);def("DebuggerStatement").bases("Statement").build();def("Declaration").bases("Statement");def("FunctionDeclaration").bases("Function","Declaration").build("id","params","body").field("id",def("Identifier"));def("FunctionExpression").bases("Function","Expression").build("id","params","body");def("VariableDeclaration").bases("Declaration").build("kind","declarations").field("kind",or("var","let","const")).field("declarations",[or(def("VariableDeclarator"),def("Identifier"))]);def("VariableDeclarator").bases("Node").build("id","init").field("id",def("Pattern")).field("init",or(def("Expression"),null));def("Expression").bases("Node","Pattern");def("ThisExpression").bases("Expression").build();def("ArrayExpression").bases("Expression").build("elements").field("elements",[or(def("Expression"),null)]);def("ObjectExpression").bases("Expression").build("properties").field("properties",[def("Property")]);def("Property").bases("Node").build("kind","key","value").field("kind",or("init","get","set")).field("key",or(def("Literal"),def("Identifier"))).field("value",def("Expression"));def("SequenceExpression").bases("Expression").build("expressions").field("expressions",[def("Expression")]);var UnaryOperator=or("-","+","!","~","typeof","void","delete");def("UnaryExpression").bases("Expression").build("operator","argument","prefix").field("operator",UnaryOperator).field("argument",def("Expression")).field("prefix",isBoolean,defaults["true"]);var BinaryOperator=or("==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","&","|","^","in","instanceof","..");def("BinaryExpression").bases("Expression").build("operator","left","right").field("operator",BinaryOperator).field("left",def("Expression")).field("right",def("Expression"));var AssignmentOperator=or("=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&=");def("AssignmentExpression").bases("Expression").build("operator","left","right").field("operator",AssignmentOperator).field("left",def("Pattern")).field("right",def("Expression"));var UpdateOperator=or("++","--");def("UpdateExpression").bases("Expression").build("operator","argument","prefix").field("operator",UpdateOperator).field("argument",def("Expression")).field("prefix",isBoolean);var LogicalOperator=or("||","&&");def("LogicalExpression").bases("Expression").build("operator","left","right").field("operator",LogicalOperator).field("left",def("Expression")).field("right",def("Expression"));def("ConditionalExpression").bases("Expression").build("test","consequent","alternate").field("test",def("Expression")).field("consequent",def("Expression")).field("alternate",def("Expression"));def("NewExpression").bases("Expression").build("callee","arguments").field("callee",def("Expression")).field("arguments",[def("Expression")]);def("CallExpression").bases("Expression").build("callee","arguments").field("callee",def("Expression")).field("arguments",[def("Expression")]);def("MemberExpression").bases("Expression").build("object","property","computed").field("object",def("Expression")).field("property",or(def("Identifier"),def("Expression"))).field("computed",isBoolean);def("Pattern").bases("Node");def("ObjectPattern").bases("Pattern").build("properties").field("properties",[def("PropertyPattern")]);def("PropertyPattern").bases("Pattern").build("key","pattern").field("key",or(def("Literal"),def("Identifier"))).field("pattern",def("Pattern"));def("ArrayPattern").bases("Pattern").build("elements").field("elements",[or(def("Pattern"),null)]);def("SwitchCase").bases("Node").build("test","consequent").field("test",or(def("Expression"),null)).field("consequent",[def("Statement")]);def("Identifier").bases("Node","Expression","Pattern").build("name").field("name",isString);def("Literal").bases("Node","Expression").build("value").field("value",or(isString,isBoolean,null,isNumber,isRegExp));def("Block").bases("Printable").build("loc","value").field("value",isString);def("Line").bases("Printable").build("loc","value").field("value",isString)},{"../lib/shared":117,"../lib/types":118}],107:[function(require,module,exports){require("./core");var types=require("../lib/types");var def=types.Type.def;var or=types.Type.or;var builtin=types.builtInTypes;var isString=builtin.string;var isBoolean=builtin.boolean;def("XMLDefaultDeclaration").bases("Declaration").field("namespace",def("Expression"));def("XMLAnyName").bases("Expression");def("XMLQualifiedIdentifier").bases("Expression").field("left",or(def("Identifier"),def("XMLAnyName"))).field("right",or(def("Identifier"),def("Expression"))).field("computed",isBoolean);def("XMLFunctionQualifiedIdentifier").bases("Expression").field("right",or(def("Identifier"),def("Expression"))).field("computed",isBoolean);def("XMLAttributeSelector").bases("Expression").field("attribute",def("Expression"));def("XMLFilterExpression").bases("Expression").field("left",def("Expression")).field("right",def("Expression"));def("XMLElement").bases("XML","Expression").field("contents",[def("XML")]);def("XMLList").bases("XML","Expression").field("contents",[def("XML")]);def("XML").bases("Node");def("XMLEscape").bases("XML").field("expression",def("Expression"));def("XMLText").bases("XML").field("text",isString);def("XMLStartTag").bases("XML").field("contents",[def("XML")]);def("XMLEndTag").bases("XML").field("contents",[def("XML")]);def("XMLPointTag").bases("XML").field("contents",[def("XML")]);def("XMLName").bases("XML").field("contents",or(isString,[def("XML")]));def("XMLAttribute").bases("XML").field("value",isString);def("XMLCdata").bases("XML").field("contents",isString);def("XMLComment").bases("XML").field("contents",isString);def("XMLProcessingInstruction").bases("XML").field("target",isString).field("contents",or(isString,null))},{"../lib/types":118,"./core":106}],108:[function(require,module,exports){require("./core");var types=require("../lib/types");var def=types.Type.def;var or=types.Type.or;var builtin=types.builtInTypes;var isBoolean=builtin.boolean;var isObject=builtin.object;var isString=builtin.string;var defaults=require("../lib/shared").defaults;def("Function").field("generator",isBoolean,defaults["false"]).field("expression",isBoolean,defaults["false"]).field("defaults",[or(def("Expression"),null)],defaults.emptyArray).field("rest",or(def("Identifier"),null),defaults["null"]);def("FunctionDeclaration").build("id","params","body","generator","expression");def("FunctionExpression").build("id","params","body","generator","expression");def("ArrowFunctionExpression").bases("Function","Expression").build("params","body","expression").field("id",null,defaults["null"]).field("generator",false);def("YieldExpression").bases("Expression").build("argument","delegate").field("argument",or(def("Expression"),null)).field("delegate",isBoolean,defaults["false"]);def("GeneratorExpression").bases("Expression").build("body","blocks","filter").field("body",def("Expression")).field("blocks",[def("ComprehensionBlock")]).field("filter",or(def("Expression"),null));def("ComprehensionExpression").bases("Expression").build("body","blocks","filter").field("body",def("Expression")).field("blocks",[def("ComprehensionBlock")]).field("filter",or(def("Expression"),null));def("ComprehensionBlock").bases("Node").build("left","right","each").field("left",def("Pattern")).field("right",def("Expression")).field("each",isBoolean);def("ModuleSpecifier").bases("Literal").build("value").field("value",isString);def("Property").field("key",or(def("Literal"),def("Identifier"),def("Expression"))).field("method",isBoolean,defaults["false"]).field("shorthand",isBoolean,defaults["false"]).field("computed",isBoolean,defaults["false"]);def("PropertyPattern").field("key",or(def("Literal"),def("Identifier"),def("Expression"))).field("computed",isBoolean,defaults["false"]);def("MethodDefinition").bases("Declaration").build("kind","key","value").field("kind",or("init","get","set","")).field("key",or(def("Literal"),def("Identifier"),def("Expression"))).field("value",def("Function")).field("computed",isBoolean,defaults["false"]);def("SpreadElement").bases("Node").build("argument").field("argument",def("Expression"));def("ArrayExpression").field("elements",[or(def("Expression"),def("SpreadElement"),null)]);def("NewExpression").field("arguments",[or(def("Expression"),def("SpreadElement"))]);def("CallExpression").field("arguments",[or(def("Expression"),def("SpreadElement"))]);def("SpreadElementPattern").bases("Pattern").build("argument").field("argument",def("Pattern"));var ClassBodyElement=or(def("MethodDefinition"),def("VariableDeclarator"),def("ClassPropertyDefinition"),def("ClassProperty"));def("ClassProperty").bases("Declaration").build("key").field("key",or(def("Literal"),def("Identifier"),def("Expression"))).field("computed",isBoolean,defaults["false"]);def("ClassPropertyDefinition").bases("Declaration").build("definition").field("definition",ClassBodyElement);def("ClassBody").bases("Declaration").build("body").field("body",[ClassBodyElement]);def("ClassDeclaration").bases("Declaration").build("id","body","superClass").field("id",def("Identifier")).field("body",def("ClassBody")).field("superClass",or(def("Expression"),null),defaults["null"]);def("ClassExpression").bases("Expression").build("id","body","superClass").field("id",or(def("Identifier"),null),defaults["null"]).field("body",def("ClassBody")).field("superClass",or(def("Expression"),null),defaults["null"]).field("implements",[def("ClassImplements")],defaults.emptyArray);def("ClassImplements").bases("Node").build("id").field("id",def("Identifier")).field("superClass",or(def("Expression"),null),defaults["null"]);def("Specifier").bases("Node");def("NamedSpecifier").bases("Specifier").field("id",def("Identifier")).field("name",or(def("Identifier"),null),defaults["null"]);def("ExportSpecifier").bases("NamedSpecifier").build("id","name");def("ExportBatchSpecifier").bases("Specifier").build();def("ImportSpecifier").bases("NamedSpecifier").build("id","name");def("ImportNamespaceSpecifier").bases("Specifier").build("id").field("id",def("Identifier"));def("ImportDefaultSpecifier").bases("Specifier").build("id").field("id",def("Identifier"));def("ExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",isBoolean).field("declaration",or(def("Declaration"),def("Expression"),null)).field("specifiers",[or(def("ExportSpecifier"),def("ExportBatchSpecifier"))],defaults.emptyArray).field("source",or(def("ModuleSpecifier"),null),defaults["null"]);def("ImportDeclaration").bases("Declaration").build("specifiers","source").field("specifiers",[or(def("ImportSpecifier"),def("ImportNamespaceSpecifier"),def("ImportDefaultSpecifier"))],defaults.emptyArray).field("source",def("ModuleSpecifier"));def("TaggedTemplateExpression").bases("Expression").field("tag",def("Expression")).field("quasi",def("TemplateLiteral"));def("TemplateLiteral").bases("Expression").build("quasis","expressions").field("quasis",[def("TemplateElement")]).field("expressions",[def("Expression")]);def("TemplateElement").bases("Node").build("value","tail").field("value",{cooked:isString,raw:isString}).field("tail",isBoolean)},{"../lib/shared":117,"../lib/types":118,"./core":106}],109:[function(require,module,exports){require("./core");var types=require("../lib/types");var def=types.Type.def;var or=types.Type.or;var builtin=types.builtInTypes;var isBoolean=builtin.boolean;var defaults=require("../lib/shared").defaults;def("Function").field("async",isBoolean,defaults["false"]);def("SpreadProperty").bases("Node").build("argument").field("argument",def("Expression"));def("ObjectExpression").field("properties",[or(def("Property"),def("SpreadProperty"))]);def("SpreadPropertyPattern").bases("Pattern").build("argument").field("argument",def("Pattern"));def("ObjectPattern").field("properties",[or(def("PropertyPattern"),def("SpreadPropertyPattern"))]);def("AwaitExpression").bases("Expression").build("argument","all").field("argument",or(def("Expression"),null)).field("all",isBoolean,defaults["false"])},{"../lib/shared":117,"../lib/types":118,"./core":106}],110:[function(require,module,exports){require("./core");var types=require("../lib/types");var def=types.Type.def;var or=types.Type.or;var builtin=types.builtInTypes;var isString=builtin.string;var isBoolean=builtin.boolean;var defaults=require("../lib/shared").defaults;def("XJSAttribute").bases("Node").build("name","value").field("name",or(def("XJSIdentifier"),def("XJSNamespacedName"))).field("value",or(def("Literal"),def("XJSExpressionContainer"),null),defaults["null"]);def("XJSIdentifier").bases("Node").build("name").field("name",isString);def("XJSNamespacedName").bases("Node").build("namespace","name").field("namespace",def("XJSIdentifier")).field("name",def("XJSIdentifier"));def("XJSMemberExpression").bases("MemberExpression").build("object","property").field("object",or(def("XJSIdentifier"),def("XJSMemberExpression"))).field("property",def("XJSIdentifier")).field("computed",isBoolean,defaults.false);var XJSElementName=or(def("XJSIdentifier"),def("XJSNamespacedName"),def("XJSMemberExpression"));def("XJSSpreadAttribute").bases("Node").build("argument").field("argument",def("Expression"));var XJSAttributes=[or(def("XJSAttribute"),def("XJSSpreadAttribute"))];def("XJSExpressionContainer").bases("Expression").build("expression").field("expression",def("Expression"));def("XJSElement").bases("Expression").build("openingElement","closingElement","children").field("openingElement",def("XJSOpeningElement")).field("closingElement",or(def("XJSClosingElement"),null),defaults["null"]).field("children",[or(def("XJSElement"),def("XJSExpressionContainer"),def("XJSText"),def("Literal"))],defaults.emptyArray).field("name",XJSElementName,function(){return this.openingElement.name}).field("selfClosing",isBoolean,function(){return this.openingElement.selfClosing}).field("attributes",XJSAttributes,function(){return this.openingElement.attributes});def("XJSOpeningElement").bases("Node").build("name","attributes","selfClosing").field("name",XJSElementName).field("attributes",XJSAttributes,defaults.emptyArray).field("selfClosing",isBoolean,defaults["false"]);def("XJSClosingElement").bases("Node").build("name").field("name",XJSElementName);def("XJSText").bases("Literal").build("value").field("value",isString);def("XJSEmptyExpression").bases("Expression").build();def("Type").bases("Node");def("AnyTypeAnnotation").bases("Type");def("VoidTypeAnnotation").bases("Type");def("NumberTypeAnnotation").bases("Type");def("StringTypeAnnotation").bases("Type");def("StringLiteralTypeAnnotation").bases("Type").build("value","raw").field("value",isString).field("raw",isString);def("BooleanTypeAnnotation").bases("Type");def("TypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",def("Type"));def("NullableTypeAnnotation").bases("Type").build("typeAnnotation").field("typeAnnotation",def("Type"));def("FunctionTypeAnnotation").bases("Type").build("params","returnType","rest","typeParameters").field("params",[def("FunctionTypeParam")]).field("returnType",def("Type")).field("rest",or(def("FunctionTypeParam"),null)).field("typeParameters",or(def("TypeParameterDeclaration"),null));def("FunctionTypeParam").bases("Node").build("name","typeAnnotation","optional").field("name",def("Identifier")).field("typeAnnotation",def("Type")).field("optional",isBoolean);def("ArrayTypeAnnotation").bases("Type").build("elementType").field("elementType",def("Type"));def("ObjectTypeAnnotation").bases("Type").build("properties").field("properties",[def("ObjectTypeProperty")]).field("indexers",[def("ObjectTypeIndexer")],defaults.emptyArray).field("callProperties",[def("ObjectTypeCallProperty")],defaults.emptyArray);def("ObjectTypeProperty").bases("Node").build("key","value","optional").field("key",or(def("Literal"),def("Identifier"))).field("value",def("Type")).field("optional",isBoolean);def("ObjectTypeIndexer").bases("Node").build("id","key","value").field("id",def("Identifier")).field("key",def("Type")).field("value",def("Type"));def("ObjectTypeCallProperty").bases("Node").build("value").field("value",def("FunctionTypeAnnotation")).field("static",isBoolean,false);def("QualifiedTypeIdentifier").bases("Node").build("qualification","id").field("qualification",or(def("Identifier"),def("QualifiedTypeIdentifier"))).field("id",def("Identifier"));def("GenericTypeAnnotation").bases("Type").build("id","typeParameters").field("id",or(def("Identifier"),def("QualifiedTypeIdentifier"))).field("typeParameters",or(def("TypeParameterInstantiation"),null));def("MemberTypeAnnotation").bases("Type").build("object","property").field("object",def("Identifier")).field("property",or(def("MemberTypeAnnotation"),def("GenericTypeAnnotation")));def("UnionTypeAnnotation").bases("Type").build("types").field("types",[def("Type")]);def("IntersectionTypeAnnotation").bases("Type").build("types").field("types",[def("Type")]);def("TypeofTypeAnnotation").bases("Type").build("argument").field("argument",def("Type"));def("Identifier").field("typeAnnotation",or(def("TypeAnnotation"),null),defaults["null"]);def("TypeParameterDeclaration").bases("Node").build("params").field("params",[def("Identifier")]);def("TypeParameterInstantiation").bases("Node").build("params").field("params",[def("Type")]);def("Function").field("returnType",or(def("TypeAnnotation"),null),defaults["null"]).field("typeParameters",or(def("TypeParameterDeclaration"),null),defaults["null"]);def("ClassProperty").build("key","typeAnnotation").field("typeAnnotation",def("TypeAnnotation")).field("static",isBoolean,false);def("ClassImplements").field("typeParameters",or(def("TypeParameterInstantiation"),null),defaults["null"]);def("InterfaceDeclaration").bases("Statement").build("id","body","extends").field("id",def("Identifier")).field("typeParameters",or(def("TypeParameterDeclaration"),null),defaults["null"]).field("body",def("ObjectTypeAnnotation")).field("extends",[def("InterfaceExtends")]);def("InterfaceExtends").bases("Node").build("id").field("id",def("Identifier")).field("typeParameters",or(def("TypeParameterInstantiation"),null));def("TypeAlias").bases("Statement").build("id","typeParameters","right").field("id",def("Identifier")).field("typeParameters",or(def("TypeParameterDeclaration"),null)).field("right",def("Type"));def("TupleTypeAnnotation").bases("Type").build("types").field("types",[def("Type")]);def("DeclareVariable").bases("Statement").build("id").field("id",def("Identifier"));def("DeclareFunction").bases("Statement").build("id").field("id",def("Identifier"));def("DeclareClass").bases("InterfaceDeclaration").build("id");def("DeclareModule").bases("Statement").build("id","body").field("id",or(def("Identifier"),def("Literal"))).field("body",def("BlockStatement"))},{"../lib/shared":117,"../lib/types":118,"./core":106}],111:[function(require,module,exports){require("./core");var types=require("../lib/types");var def=types.Type.def;var or=types.Type.or;var geq=require("../lib/shared").geq;def("ForOfStatement").bases("Statement").build("left","right","body").field("left",or(def("VariableDeclaration"),def("Expression"))).field("right",def("Expression")).field("body",def("Statement"));def("LetStatement").bases("Statement").build("head","body").field("head",[def("VariableDeclarator")]).field("body",def("Statement"));def("LetExpression").bases("Expression").build("head","body").field("head",[def("VariableDeclarator")]).field("body",def("Expression"));def("GraphExpression").bases("Expression").build("index","expression").field("index",geq(0)).field("expression",def("Literal"));def("GraphIndexExpression").bases("Expression").build("index").field("index",geq(0))},{"../lib/shared":117,"../lib/types":118,"./core":106}],112:[function(require,module,exports){var assert=require("assert");var types=require("../main");var getFieldNames=types.getFieldNames;var getFieldValue=types.getFieldValue;var isArray=types.builtInTypes.array;var isObject=types.builtInTypes.object;var isDate=types.builtInTypes.Date;var isRegExp=types.builtInTypes.RegExp;var hasOwn=Object.prototype.hasOwnProperty;function astNodesAreEquivalent(a,b,problemPath){if(isArray.check(problemPath)){problemPath.length=0}else{problemPath=null}return areEquivalent(a,b,problemPath)}astNodesAreEquivalent.assert=function(a,b){var problemPath=[];if(!astNodesAreEquivalent(a,b,problemPath)){if(problemPath.length===0){assert.strictEqual(a,b)}else{assert.ok(false,"Nodes differ in the following path: "+problemPath.map(subscriptForProperty).join(""))}}};function subscriptForProperty(property){if(/[_$a-z][_$a-z0-9]*/i.test(property)){return"."+property}return"["+JSON.stringify(property)+"]"}function areEquivalent(a,b,problemPath){if(a===b){return true}if(isArray.check(a)){return arraysAreEquivalent(a,b,problemPath)}if(isObject.check(a)){return objectsAreEquivalent(a,b,problemPath)}if(isDate.check(a)){return isDate.check(b)&&+a===+b}if(isRegExp.check(a)){return isRegExp.check(b)&&(a.source===b.source&&a.global===b.global&&a.multiline===b.multiline&&a.ignoreCase===b.ignoreCase)}return a==b}function arraysAreEquivalent(a,b,problemPath){isArray.assert(a);var aLength=a.length;if(!isArray.check(b)||b.length!==aLength){if(problemPath){problemPath.push("length")}return false}for(var i=0;i<aLength;++i){if(problemPath){problemPath.push(i)}if(i in a!==i in b){return false}if(!areEquivalent(a[i],b[i],problemPath)){return false}if(problemPath){assert.strictEqual(problemPath.pop(),i)}}return true}function objectsAreEquivalent(a,b,problemPath){isObject.assert(a);if(!isObject.check(b)){return false
}if(a.type!==b.type){if(problemPath){problemPath.push("type")}return false}var aNames=getFieldNames(a);var aNameCount=aNames.length;var bNames=getFieldNames(b);var bNameCount=bNames.length;if(aNameCount===bNameCount){for(var i=0;i<aNameCount;++i){var name=aNames[i];var aChild=getFieldValue(a,name);var bChild=getFieldValue(b,name);if(problemPath){problemPath.push(name)}if(!areEquivalent(aChild,bChild,problemPath)){return false}if(problemPath){assert.strictEqual(problemPath.pop(),name)}}return true}if(!problemPath){return false}var seenNames=Object.create(null);for(i=0;i<aNameCount;++i){seenNames[aNames[i]]=true}for(i=0;i<bNameCount;++i){name=bNames[i];if(!hasOwn.call(seenNames,name)){problemPath.push(name);return false}delete seenNames[name]}for(name in seenNames){problemPath.push(name);break}return false}module.exports=astNodesAreEquivalent},{"../main":119,assert:121}],113:[function(require,module,exports){var assert=require("assert");var types=require("./types");var n=types.namedTypes;var b=types.builders;var isNumber=types.builtInTypes.number;var isArray=types.builtInTypes.array;var Path=require("./path");var Scope=require("./scope");function NodePath(value,parentPath,name){assert.ok(this instanceof NodePath);Path.call(this,value,parentPath,name)}require("util").inherits(NodePath,Path);var NPp=NodePath.prototype;Object.defineProperties(NPp,{node:{get:function(){Object.defineProperty(this,"node",{configurable:true,value:this._computeNode()});return this.node}},parent:{get:function(){Object.defineProperty(this,"parent",{configurable:true,value:this._computeParent()});return this.parent}},scope:{get:function(){Object.defineProperty(this,"scope",{configurable:true,value:this._computeScope()});return this.scope}}});NPp.replace=function(){delete this.node;delete this.parent;delete this.scope;return Path.prototype.replace.apply(this,arguments)};NPp.prune=function(){var remainingNodePath=this.parent;this.replace();return cleanUpNodesAfterPrune(remainingNodePath)};NPp._computeNode=function(){var value=this.value;if(n.Node.check(value)){return value}var pp=this.parentPath;return pp&&pp.node||null};NPp._computeParent=function(){var value=this.value;var pp=this.parentPath;if(!n.Node.check(value)){while(pp&&!n.Node.check(pp.value)){pp=pp.parentPath}if(pp){pp=pp.parentPath}}while(pp&&!n.Node.check(pp.value)){pp=pp.parentPath}return pp||null};NPp._computeScope=function(){var value=this.value;var pp=this.parentPath;var scope=pp&&pp.scope;if(n.Node.check(value)&&Scope.isEstablishedBy(value)){scope=new Scope(this,scope)}return scope||null};NPp.getValueProperty=function(name){return types.getFieldValue(this.value,name)};NPp.needsParens=function(assumeExpressionContext){var pp=this.parentPath;if(!pp){return false}var node=this.value;if(!n.Expression.check(node)){return false}if(node.type==="Identifier"){return false}while(!n.Node.check(pp.value)){pp=pp.parentPath;if(!pp){return false}}var parent=pp.value;switch(node.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return parent.type==="MemberExpression"&&this.name==="object"&&parent.object===node;case"BinaryExpression":case"LogicalExpression":switch(parent.type){case"CallExpression":return this.name==="callee"&&parent.callee===node;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return true;case"MemberExpression":return this.name==="object"&&parent.object===node;case"BinaryExpression":case"LogicalExpression":var po=parent.operator;var pp=PRECEDENCE[po];var no=node.operator;var np=PRECEDENCE[no];if(pp>np){return true}if(pp===np&&this.name==="right"){assert.strictEqual(parent.right,node);return true}default:return false}case"SequenceExpression":switch(parent.type){case"ForStatement":return false;case"ExpressionStatement":return this.name!=="expression";default:return true}case"YieldExpression":switch(parent.type){case"BinaryExpression":case"LogicalExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"CallExpression":case"MemberExpression":case"NewExpression":case"ConditionalExpression":case"YieldExpression":return true;default:return false}case"Literal":return parent.type==="MemberExpression"&&isNumber.check(node.value)&&this.name==="object"&&parent.object===node;case"AssignmentExpression":case"ConditionalExpression":switch(parent.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return true;case"CallExpression":return this.name==="callee"&&parent.callee===node;case"ConditionalExpression":return this.name==="test"&&parent.test===node;case"MemberExpression":return this.name==="object"&&parent.object===node;default:return false}default:if(parent.type==="NewExpression"&&this.name==="callee"&&parent.callee===node){return containsCallExpression(node)}}if(assumeExpressionContext!==true&&!this.canBeFirstInStatement()&&this.firstInStatement())return true;return false};function isBinary(node){return n.BinaryExpression.check(node)||n.LogicalExpression.check(node)}function isUnaryLike(node){return n.UnaryExpression.check(node)||n.SpreadElement&&n.SpreadElement.check(node)||n.SpreadProperty&&n.SpreadProperty.check(node)}var PRECEDENCE={};[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]].forEach(function(tier,i){tier.forEach(function(op){PRECEDENCE[op]=i})});function containsCallExpression(node){if(n.CallExpression.check(node)){return true}if(isArray.check(node)){return node.some(containsCallExpression)}if(n.Node.check(node)){return types.someField(node,function(name,child){return containsCallExpression(child)})}return false}NPp.canBeFirstInStatement=function(){var node=this.node;return!n.FunctionExpression.check(node)&&!n.ObjectExpression.check(node)};NPp.firstInStatement=function(){return firstInStatement(this)};function firstInStatement(path){for(var node,parent;path.parent;path=path.parent){node=path.node;parent=path.parent.node;if(n.BlockStatement.check(parent)&&path.parent.name==="body"&&path.name===0){assert.strictEqual(parent.body[0],node);return true}if(n.ExpressionStatement.check(parent)&&path.name==="expression"){assert.strictEqual(parent.expression,node);return true}if(n.SequenceExpression.check(parent)&&path.parent.name==="expressions"&&path.name===0){assert.strictEqual(parent.expressions[0],node);continue}if(n.CallExpression.check(parent)&&path.name==="callee"){assert.strictEqual(parent.callee,node);continue}if(n.MemberExpression.check(parent)&&path.name==="object"){assert.strictEqual(parent.object,node);continue}if(n.ConditionalExpression.check(parent)&&path.name==="test"){assert.strictEqual(parent.test,node);continue}if(isBinary(parent)&&path.name==="left"){assert.strictEqual(parent.left,node);continue}if(n.UnaryExpression.check(parent)&&!parent.prefix&&path.name==="argument"){assert.strictEqual(parent.argument,node);continue}return false}return true}function cleanUpNodesAfterPrune(remainingNodePath){if(n.VariableDeclaration.check(remainingNodePath.node)){var declarations=remainingNodePath.get("declarations").value;if(!declarations||declarations.length===0){return remainingNodePath.prune()}}else if(n.ExpressionStatement.check(remainingNodePath.node)){if(!remainingNodePath.get("expression").value){return remainingNodePath.prune()}}else if(n.IfStatement.check(remainingNodePath.node)){cleanUpIfStatementAfterPrune(remainingNodePath)}return remainingNodePath}function cleanUpIfStatementAfterPrune(ifStatement){var testExpression=ifStatement.get("test").value;var alternate=ifStatement.get("alternate").value;var consequent=ifStatement.get("consequent").value;if(!consequent&&!alternate){var testExpressionStatement=b.expressionStatement(testExpression);ifStatement.replace(testExpressionStatement)}else if(!consequent&&alternate){var negatedTestExpression=b.unaryExpression("!",testExpression,true);if(n.UnaryExpression.check(testExpression)&&testExpression.operator==="!"){negatedTestExpression=testExpression.argument}ifStatement.get("test").replace(negatedTestExpression);ifStatement.get("consequent").replace(alternate);ifStatement.get("alternate").replace()}}module.exports=NodePath},{"./path":115,"./scope":116,"./types":118,assert:121,util:145}],114:[function(require,module,exports){var assert=require("assert");var types=require("./types");var NodePath=require("./node-path");var Node=types.namedTypes.Node;var isArray=types.builtInTypes.array;var isObject=types.builtInTypes.object;var isFunction=types.builtInTypes.function;var hasOwn=Object.prototype.hasOwnProperty;var undefined;function PathVisitor(){assert.ok(this instanceof PathVisitor);this._reusableContextStack=[];this._methodNameTable=computeMethodNameTable(this);this.Context=makeContextConstructor(this);this._visiting=false;this._changeReported=false}function computeMethodNameTable(visitor){var typeNames=Object.create(null);for(var methodName in visitor){if(/^visit[A-Z]/.test(methodName)){typeNames[methodName.slice("visit".length)]=true}}var supertypeTable=types.computeSupertypeLookupTable(typeNames);var methodNameTable=Object.create(null);var typeNames=Object.keys(supertypeTable);var typeNameCount=typeNames.length;for(var i=0;i<typeNameCount;++i){var typeName=typeNames[i];methodName="visit"+supertypeTable[typeName];if(isFunction.check(visitor[methodName])){methodNameTable[typeName]=methodName}}return methodNameTable}PathVisitor.fromMethodsObject=function fromMethodsObject(methods){if(methods instanceof PathVisitor){return methods}if(!isObject.check(methods)){return new PathVisitor}function Visitor(){assert.ok(this instanceof Visitor);PathVisitor.call(this)}var Vp=Visitor.prototype=Object.create(PVp);Vp.constructor=Visitor;extend(Vp,methods);extend(Visitor,PathVisitor);isFunction.assert(Visitor.fromMethodsObject);isFunction.assert(Visitor.visit);return new Visitor};function extend(target,source){for(var property in source){if(hasOwn.call(source,property)){target[property]=source[property]}}return target}PathVisitor.visit=function visit(node,methods){return PathVisitor.fromMethodsObject(methods).visit(node)};var PVp=PathVisitor.prototype;var recursiveVisitWarning=["Recursively calling visitor.visit(path) resets visitor state.","Try this.visit(path) or this.traverse(path) instead."].join(" ");PVp.visit=function(){assert.ok(!this._visiting,recursiveVisitWarning);this._visiting=true;this._changeReported=false;var argc=arguments.length;var args=new Array(argc);for(var i=0;i<argc;++i){args[i]=arguments[i]}if(!(args[0]instanceof NodePath)){args[0]=new NodePath({root:args[0]}).get("root")}this.reset.apply(this,args);try{return this.visitWithoutReset(args[0])}finally{this._visiting=false}};PVp.reset=function(path){};PVp.visitWithoutReset=function(path){if(this instanceof this.Context){return this.visitor.visitWithoutReset(path)}assert.ok(path instanceof NodePath);var value=path.value;var methodName=Node.check(value)&&this._methodNameTable[value.type];if(methodName){var context=this.acquireContext(path);try{return context.invokeVisitorMethod(methodName)}finally{this.releaseContext(context)}}else{return visitChildren(path,this)}};function visitChildren(path,visitor){assert.ok(path instanceof NodePath);assert.ok(visitor instanceof PathVisitor);var value=path.value;if(isArray.check(value)){path.each(visitor.visitWithoutReset,visitor)}else if(!isObject.check(value)){}else{var childNames=types.getFieldNames(value);var childCount=childNames.length;var childPaths=[];for(var i=0;i<childCount;++i){var childName=childNames[i];if(!hasOwn.call(value,childName)){value[childName]=types.getFieldValue(value,childName)}childPaths.push(path.get(childName))}for(var i=0;i<childCount;++i){visitor.visitWithoutReset(childPaths[i])}}return path.value}PVp.acquireContext=function(path){if(this._reusableContextStack.length===0){return new this.Context(path)}return this._reusableContextStack.pop().reset(path)};PVp.releaseContext=function(context){assert.ok(context instanceof this.Context);this._reusableContextStack.push(context);context.currentPath=null};PVp.reportChanged=function(){this._changeReported=true};PVp.wasChangeReported=function(){return this._changeReported};function makeContextConstructor(visitor){function Context(path){assert.ok(this instanceof Context);assert.ok(this instanceof PathVisitor);assert.ok(path instanceof NodePath);Object.defineProperty(this,"visitor",{value:visitor,writable:false,enumerable:true,configurable:false});this.currentPath=path;this.needToCallTraverse=true;Object.seal(this)}assert.ok(visitor instanceof PathVisitor);var Cp=Context.prototype=Object.create(visitor);Cp.constructor=Context;extend(Cp,sharedContextProtoMethods);return Context}var sharedContextProtoMethods=Object.create(null);sharedContextProtoMethods.reset=function reset(path){assert.ok(this instanceof this.Context);assert.ok(path instanceof NodePath);this.currentPath=path;this.needToCallTraverse=true;return this};sharedContextProtoMethods.invokeVisitorMethod=function invokeVisitorMethod(methodName){assert.ok(this instanceof this.Context);assert.ok(this.currentPath instanceof NodePath);var result=this.visitor[methodName].call(this,this.currentPath);if(result===false){this.needToCallTraverse=false}else if(result!==undefined){this.currentPath=this.currentPath.replace(result)[0];if(this.needToCallTraverse){this.traverse(this.currentPath)}}assert.strictEqual(this.needToCallTraverse,false,"Must either call this.traverse or return false in "+methodName);var path=this.currentPath;return path&&path.value};sharedContextProtoMethods.traverse=function traverse(path,newVisitor){assert.ok(this instanceof this.Context);assert.ok(path instanceof NodePath);assert.ok(this.currentPath instanceof NodePath);this.needToCallTraverse=false;return visitChildren(path,PathVisitor.fromMethodsObject(newVisitor||this.visitor))};sharedContextProtoMethods.visit=function visit(path,newVisitor){assert.ok(this instanceof this.Context);assert.ok(path instanceof NodePath);assert.ok(this.currentPath instanceof NodePath);this.needToCallTraverse=false;return PathVisitor.fromMethodsObject(newVisitor||this.visitor).visitWithoutReset(path)};sharedContextProtoMethods.reportChanged=function reportChanged(){this.visitor.reportChanged()};module.exports=PathVisitor},{"./node-path":113,"./types":118,assert:121}],115:[function(require,module,exports){var assert=require("assert");var Op=Object.prototype;var hasOwn=Op.hasOwnProperty;var types=require("./types");var isArray=types.builtInTypes.array;var isNumber=types.builtInTypes.number;var Ap=Array.prototype;var slice=Ap.slice;var map=Ap.map;function Path(value,parentPath,name){assert.ok(this instanceof Path);if(parentPath){assert.ok(parentPath instanceof Path)}else{parentPath=null;name=null}this.value=value;this.parentPath=parentPath;this.name=name;this.__childCache=null}var Pp=Path.prototype;function getChildCache(path){return path.__childCache||(path.__childCache=Object.create(null))}function getChildPath(path,name){var cache=getChildCache(path);var actualChildValue=path.getValueProperty(name);var childPath=cache[name];if(!hasOwn.call(cache,name)||childPath.value!==actualChildValue){childPath=cache[name]=new path.constructor(actualChildValue,path,name)}return childPath}Pp.getValueProperty=function getValueProperty(name){return this.value[name]};Pp.get=function get(name){var path=this;var names=arguments;var count=names.length;for(var i=0;i<count;++i){path=getChildPath(path,names[i])}return path};Pp.each=function each(callback,context){var childPaths=[];var len=this.value.length;var i=0;for(var i=0;i<len;++i){if(hasOwn.call(this.value,i)){childPaths[i]=this.get(i)}}context=context||this;for(i=0;i<len;++i){if(hasOwn.call(childPaths,i)){callback.call(context,childPaths[i])}}};Pp.map=function map(callback,context){var result=[];this.each(function(childPath){result.push(callback.call(this,childPath))},context);return result};Pp.filter=function filter(callback,context){var result=[];this.each(function(childPath){if(callback.call(this,childPath)){result.push(childPath)}},context);return result};function emptyMoves(){}function getMoves(path,offset,start,end){isArray.assert(path.value);if(offset===0){return emptyMoves}var length=path.value.length;if(length<1){return emptyMoves}var argc=arguments.length;if(argc===2){start=0;end=length}else if(argc===3){start=Math.max(start,0);end=length}else{start=Math.max(start,0);end=Math.min(end,length)}isNumber.assert(start);isNumber.assert(end);var moves=Object.create(null);var cache=getChildCache(path);for(var i=start;i<end;++i){if(hasOwn.call(path.value,i)){var childPath=path.get(i);assert.strictEqual(childPath.name,i);var newIndex=i+offset;childPath.name=newIndex;moves[newIndex]=childPath;delete cache[i]}}delete cache.length;return function(){for(var newIndex in moves){var childPath=moves[newIndex];assert.strictEqual(childPath.name,+newIndex);cache[newIndex]=childPath;path.value[newIndex]=childPath.value}}}Pp.shift=function shift(){var move=getMoves(this,-1);var result=this.value.shift();move();return result};Pp.unshift=function unshift(node){var move=getMoves(this,arguments.length);var result=this.value.unshift.apply(this.value,arguments);move();return result};Pp.push=function push(node){isArray.assert(this.value);delete getChildCache(this).length;return this.value.push.apply(this.value,arguments)};Pp.pop=function pop(){isArray.assert(this.value);var cache=getChildCache(this);delete cache[this.value.length-1];delete cache.length;return this.value.pop()};Pp.insertAt=function insertAt(index,node){var argc=arguments.length;var move=getMoves(this,argc-1,index);if(move===emptyMoves){return this}index=Math.max(index,0);for(var i=1;i<argc;++i){this.value[index+i-1]=arguments[i]}move();return this};Pp.insertBefore=function insertBefore(node){var pp=this.parentPath;var argc=arguments.length;var insertAtArgs=[this.name];for(var i=0;i<argc;++i){insertAtArgs.push(arguments[i])}return pp.insertAt.apply(pp,insertAtArgs)};Pp.insertAfter=function insertAfter(node){var pp=this.parentPath;var argc=arguments.length;var insertAtArgs=[this.name+1];for(var i=0;i<argc;++i){insertAtArgs.push(arguments[i])}return pp.insertAt.apply(pp,insertAtArgs)};function repairRelationshipWithParent(path){assert.ok(path instanceof Path);var pp=path.parentPath;if(!pp){return path}var parentValue=pp.value;var parentCache=getChildCache(pp);if(parentValue[path.name]===path.value){parentCache[path.name]=path}else if(isArray.check(parentValue)){var i=parentValue.indexOf(path.value);if(i>=0){parentCache[path.name=i]=path}}else{parentValue[path.name]=path.value;parentCache[path.name]=path}assert.strictEqual(parentValue[path.name],path.value);assert.strictEqual(path.parentPath.get(path.name),path);return path}Pp.replace=function replace(replacement){var results=[];var parentValue=this.parentPath.value;var parentCache=getChildCache(this.parentPath);var count=arguments.length;repairRelationshipWithParent(this);if(isArray.check(parentValue)){var originalLength=parentValue.length;var move=getMoves(this.parentPath,count-1,this.name+1);var spliceArgs=[this.name,1];for(var i=0;i<count;++i){spliceArgs.push(arguments[i])}var splicedOut=parentValue.splice.apply(parentValue,spliceArgs);assert.strictEqual(splicedOut[0],this.value);assert.strictEqual(parentValue.length,originalLength-1+count);move();if(count===0){delete this.value;delete parentCache[this.name];this.__childCache=null}else{assert.strictEqual(parentValue[this.name],replacement);if(this.value!==replacement){this.value=replacement;this.__childCache=null}for(i=0;i<count;++i){results.push(this.parentPath.get(this.name+i))}assert.strictEqual(results[0],this)}}else if(count===1){if(this.value!==replacement){this.__childCache=null}this.value=parentValue[this.name]=replacement;results.push(this)}else if(count===0){delete parentValue[this.name];delete this.value;this.__childCache=null}else{assert.ok(false,"Could not replace path")}return results};module.exports=Path},{"./types":118,assert:121}],116:[function(require,module,exports){var assert=require("assert");var types=require("./types");var Type=types.Type;var namedTypes=types.namedTypes;var Node=namedTypes.Node;var Expression=namedTypes.Expression;var isArray=types.builtInTypes.array;var hasOwn=Object.prototype.hasOwnProperty;var b=types.builders;function Scope(path,parentScope){assert.ok(this instanceof Scope);assert.ok(path instanceof require("./node-path"));ScopeType.assert(path.value);var depth;if(parentScope){assert.ok(parentScope instanceof Scope);depth=parentScope.depth+1}else{parentScope=null;depth=0}Object.defineProperties(this,{path:{value:path},node:{value:path.value},isGlobal:{value:!parentScope,enumerable:true},depth:{value:depth},parent:{value:parentScope},bindings:{value:{}}})}var scopeTypes=[namedTypes.Program,namedTypes.Function,namedTypes.CatchClause];var ScopeType=Type.or.apply(Type,scopeTypes);Scope.isEstablishedBy=function(node){return ScopeType.check(node)};var Sp=Scope.prototype;Sp.didScan=false;Sp.declares=function(name){this.scan();return hasOwn.call(this.bindings,name)};Sp.declareTemporary=function(prefix){if(prefix){assert.ok(/^[a-z$_]/i.test(prefix),prefix)}else{prefix="t$"}prefix+=this.depth.toString(36)+"$";this.scan();var index=0;while(this.declares(prefix+index)){++index}var name=prefix+index;return this.bindings[name]=types.builders.identifier(name)};Sp.injectTemporary=function(identifier,init){identifier||(identifier=this.declareTemporary());var bodyPath=this.path.get("body");if(namedTypes.BlockStatement.check(bodyPath.value)){bodyPath=bodyPath.get("body")}bodyPath.unshift(b.variableDeclaration("var",[b.variableDeclarator(identifier,init||null)]));return identifier};Sp.scan=function(force){if(force||!this.didScan){for(var name in this.bindings){delete this.bindings[name]}scanScope(this.path,this.bindings);this.didScan=true}};Sp.getBindings=function(){this.scan();return this.bindings};function scanScope(path,bindings){var node=path.value;ScopeType.assert(node);if(namedTypes.CatchClause.check(node)){addPattern(path.get("param"),bindings)}else{recursiveScanScope(path,bindings)}}function recursiveScanScope(path,bindings){var node=path.value;if(path.parent&&namedTypes.FunctionExpression.check(path.parent.node)&&path.parent.node.id){addPattern(path.parent.get("id"),bindings)}if(!node){}else if(isArray.check(node)){path.each(function(childPath){recursiveScanChild(childPath,bindings)})}else if(namedTypes.Function.check(node)){path.get("params").each(function(paramPath){addPattern(paramPath,bindings)});recursiveScanChild(path.get("body"),bindings)}else if(namedTypes.VariableDeclarator.check(node)){addPattern(path.get("id"),bindings);recursiveScanChild(path.get("init"),bindings)}else if(node.type==="ImportSpecifier"||node.type==="ImportNamespaceSpecifier"||node.type==="ImportDefaultSpecifier"){addPattern(node.name?path.get("name"):path.get("id"),bindings)}else if(Node.check(node)&&!Expression.check(node)){types.eachField(node,function(name,child){var childPath=path.get(name);assert.strictEqual(childPath.value,child);recursiveScanChild(childPath,bindings)})}}function recursiveScanChild(path,bindings){var node=path.value;if(!node||Expression.check(node)){}else if(namedTypes.FunctionDeclaration.check(node)){addPattern(path.get("id"),bindings)}else if(namedTypes.ClassDeclaration&&namedTypes.ClassDeclaration.check(node)){addPattern(path.get("id"),bindings)}else if(ScopeType.check(node)){if(namedTypes.CatchClause.check(node)){var catchParamName=node.param.name;var hadBinding=hasOwn.call(bindings,catchParamName);recursiveScanScope(path.get("body"),bindings);if(!hadBinding){delete bindings[catchParamName]}}}else{recursiveScanScope(path,bindings)}}function addPattern(patternPath,bindings){var pattern=patternPath.value;namedTypes.Pattern.assert(pattern);if(namedTypes.Identifier.check(pattern)){if(hasOwn.call(bindings,pattern.name)){bindings[pattern.name].push(patternPath)}else{bindings[pattern.name]=[patternPath]}}else if(namedTypes.SpreadElement&&namedTypes.SpreadElement.check(pattern)){addPattern(patternPath.get("argument"),bindings)}}Sp.lookup=function(name){for(var scope=this;scope;scope=scope.parent)if(scope.declares(name))break;return scope};Sp.getGlobalScope=function(){var scope=this;while(!scope.isGlobal)scope=scope.parent;return scope};module.exports=Scope},{"./node-path":113,"./types":118,assert:121}],117:[function(require,module,exports){var types=require("../lib/types");var Type=types.Type;var builtin=types.builtInTypes;var isNumber=builtin.number;exports.geq=function(than){return new Type(function(value){return isNumber.check(value)&&value>=than},isNumber+" >= "+than)};exports.defaults={"null":function(){return null},emptyArray:function(){return[]},"false":function(){return false},"true":function(){return true},undefined:function(){}};var naiveIsPrimitive=Type.or(builtin.string,builtin.number,builtin.boolean,builtin.null,builtin.undefined);exports.isPrimitive=new Type(function(value){if(value===null)return true;var type=typeof value;return!(type==="object"||type==="function")},naiveIsPrimitive.toString())},{"../lib/types":118}],118:[function(require,module,exports){var assert=require("assert");var Ap=Array.prototype;var slice=Ap.slice;var map=Ap.map;var each=Ap.forEach;var Op=Object.prototype;var objToStr=Op.toString;var funObjStr=objToStr.call(function(){});var strObjStr=objToStr.call("");var hasOwn=Op.hasOwnProperty;function Type(check,name){var self=this;assert.ok(self instanceof Type,self);assert.strictEqual(objToStr.call(check),funObjStr,check+" is not a function");var nameObjStr=objToStr.call(name);assert.ok(nameObjStr===funObjStr||nameObjStr===strObjStr,name+" is neither a function nor a string");Object.defineProperties(self,{name:{value:name},check:{value:function(value,deep){var result=check.call(self,value,deep);if(!result&&deep&&objToStr.call(deep)===funObjStr)deep(self,value);return result}}})}var Tp=Type.prototype;exports.Type=Type;Tp.assert=function(value,deep){if(!this.check(value,deep)){var str=shallowStringify(value);assert.ok(false,str+" does not match type "+this);return false}return true};function shallowStringify(value){if(isObject.check(value))return"{"+Object.keys(value).map(function(key){return key+": "+value[key]}).join(", ")+"}";if(isArray.check(value))return"["+value.map(shallowStringify).join(", ")+"]";return JSON.stringify(value)}Tp.toString=function(){var name=this.name;if(isString.check(name))return name;if(isFunction.check(name))return name.call(this)+"";return name+" type"};var builtInTypes={};exports.builtInTypes=builtInTypes;function defBuiltInType(example,name){var objStr=objToStr.call(example);Object.defineProperty(builtInTypes,name,{enumerable:true,value:new Type(function(value){return objToStr.call(value)===objStr},name)});return builtInTypes[name]}var isString=defBuiltInType("","string");var isFunction=defBuiltInType(function(){},"function");var isArray=defBuiltInType([],"array");var isObject=defBuiltInType({},"object");var isRegExp=defBuiltInType(/./,"RegExp");var isDate=defBuiltInType(new Date,"Date");var isNumber=defBuiltInType(3,"number");var isBoolean=defBuiltInType(true,"boolean");var isNull=defBuiltInType(null,"null");var isUndefined=defBuiltInType(void 0,"undefined");function toType(from,name){if(from instanceof Type)return from;if(from instanceof Def)return from.type;if(isArray.check(from))return Type.fromArray(from);if(isObject.check(from))return Type.fromObject(from);if(isFunction.check(from))return new Type(from,name);return new Type(function(value){return value===from},isUndefined.check(name)?function(){return from+""}:name)}Type.or=function(){var types=[];var len=arguments.length;for(var i=0;i<len;++i)types.push(toType(arguments[i]));return new Type(function(value,deep){for(var i=0;i<len;++i)if(types[i].check(value,deep))return true;return false},function(){return types.join(" | ")})};Type.fromArray=function(arr){assert.ok(isArray.check(arr));assert.strictEqual(arr.length,1,"only one element type is permitted for typed arrays");return toType(arr[0]).arrayOf()};Tp.arrayOf=function(){var elemType=this;return new Type(function(value,deep){return isArray.check(value)&&value.every(function(elem){return elemType.check(elem,deep)})},function(){return"["+elemType+"]"})};Type.fromObject=function(obj){var fields=Object.keys(obj).map(function(name){return new Field(name,obj[name])});return new Type(function(value,deep){return isObject.check(value)&&fields.every(function(field){return field.type.check(value[field.name],deep)})},function(){return"{ "+fields.join(", ")+" }"})};function Field(name,type,defaultFn,hidden){var self=this;assert.ok(self instanceof Field);isString.assert(name);type=toType(type);var properties={name:{value:name},type:{value:type},hidden:{value:!!hidden}};if(isFunction.check(defaultFn)){properties.defaultFn={value:defaultFn}}Object.defineProperties(self,properties)}var Fp=Field.prototype;Fp.toString=function(){return JSON.stringify(this.name)+": "+this.type};Fp.getValue=function(obj){var value=obj[this.name];if(!isUndefined.check(value))return value;if(this.defaultFn)value=this.defaultFn.call(obj);return value};Type.def=function(typeName){isString.assert(typeName);return hasOwn.call(defCache,typeName)?defCache[typeName]:defCache[typeName]=new Def(typeName)};var defCache=Object.create(null);function Def(typeName){var self=this;assert.ok(self instanceof Def);Object.defineProperties(self,{typeName:{value:typeName},baseNames:{value:[]},ownFields:{value:Object.create(null)},allSupertypes:{value:Object.create(null)},supertypeList:{value:[]},allFields:{value:Object.create(null)},fieldNames:{value:[]},type:{value:new Type(function(value,deep){return self.check(value,deep)},typeName)}})}Def.fromValue=function(value){if(value&&typeof value==="object"){var type=value.type;if(typeof type==="string"&&hasOwn.call(defCache,type)){var d=defCache[type];if(d.finalized){return d}}}return null};var Dp=Def.prototype;Dp.isSupertypeOf=function(that){if(that instanceof Def){assert.strictEqual(this.finalized,true);assert.strictEqual(that.finalized,true);return hasOwn.call(that.allSupertypes,this.typeName)}else{assert.ok(false,that+" is not a Def")}};exports.getSupertypeNames=function(typeName){assert.ok(hasOwn.call(defCache,typeName));var d=defCache[typeName];assert.strictEqual(d.finalized,true);return d.supertypeList.slice(1)};exports.computeSupertypeLookupTable=function(candidates){var table={};var typeNames=Object.keys(defCache);var typeNameCount=typeNames.length;for(var i=0;i<typeNameCount;++i){var typeName=typeNames[i];var d=defCache[typeName];assert.strictEqual(d.finalized,true);for(var j=0;j<d.supertypeList.length;++j){var superTypeName=d.supertypeList[j];if(hasOwn.call(candidates,superTypeName)){table[typeName]=superTypeName;break}}}return table};Dp.checkAllFields=function(value,deep){var allFields=this.allFields;assert.strictEqual(this.finalized,true);function checkFieldByName(name){var field=allFields[name];var type=field.type;var child=field.getValue(value);return type.check(child,deep)}return isObject.check(value)&&Object.keys(allFields).every(checkFieldByName)};Dp.check=function(value,deep){assert.strictEqual(this.finalized,true,"prematurely checking unfinalized type "+this.typeName);if(!isObject.check(value))return false;var vDef=Def.fromValue(value);if(!vDef){if(this.typeName==="SourceLocation"||this.typeName==="Position"){return this.checkAllFields(value,deep)}return false}if(deep&&vDef===this)return this.checkAllFields(value,deep);if(!this.isSupertypeOf(vDef))return false;if(!deep)return true;return vDef.checkAllFields(value,deep)&&this.checkAllFields(value,false)};Dp.bases=function(){var bases=this.baseNames;assert.strictEqual(this.finalized,false);each.call(arguments,function(baseName){isString.assert(baseName);if(bases.indexOf(baseName)<0)bases.push(baseName)});return this};Object.defineProperty(Dp,"buildable",{value:false});var builders={};exports.builders=builders;var nodePrototype={};exports.defineMethod=function(name,func){var old=nodePrototype[name];if(isUndefined.check(func)){delete nodePrototype[name]
}else{isFunction.assert(func);Object.defineProperty(nodePrototype,name,{enumerable:true,configurable:true,value:func})}return old};Dp.build=function(){var self=this;Object.defineProperty(self,"buildParams",{value:slice.call(arguments),writable:false,enumerable:false,configurable:true});assert.strictEqual(self.finalized,false);isString.arrayOf().assert(self.buildParams);if(self.buildable){return self}self.field("type",self.typeName,function(){return self.typeName});Object.defineProperty(self,"buildable",{value:true});Object.defineProperty(builders,getBuilderName(self.typeName),{enumerable:true,value:function(){var args=arguments;var argc=args.length;var built=Object.create(nodePrototype);assert.ok(self.finalized,"attempting to instantiate unfinalized type "+self.typeName);function add(param,i){if(hasOwn.call(built,param))return;var all=self.allFields;assert.ok(hasOwn.call(all,param),param);var field=all[param];var type=field.type;var value;if(isNumber.check(i)&&i<argc){value=args[i]}else if(field.defaultFn){value=field.defaultFn.call(built)}else{var message="no value or default function given for field "+JSON.stringify(param)+" of "+self.typeName+"("+self.buildParams.map(function(name){return all[name]}).join(", ")+")";assert.ok(false,message)}if(!type.check(value)){assert.ok(false,shallowStringify(value)+" does not match field "+field+" of type "+self.typeName)}built[param]=value}self.buildParams.forEach(function(param,i){add(param,i)});Object.keys(self.allFields).forEach(function(param){add(param)});assert.strictEqual(built.type,self.typeName);return built}});return self};function getBuilderName(typeName){return typeName.replace(/^[A-Z]+/,function(upperCasePrefix){var len=upperCasePrefix.length;switch(len){case 0:return"";case 1:return upperCasePrefix.toLowerCase();default:return upperCasePrefix.slice(0,len-1).toLowerCase()+upperCasePrefix.charAt(len-1)}})}Dp.field=function(name,type,defaultFn,hidden){assert.strictEqual(this.finalized,false);this.ownFields[name]=new Field(name,type,defaultFn,hidden);return this};var namedTypes={};exports.namedTypes=namedTypes;function getFieldNames(object){var d=Def.fromValue(object);if(d){return d.fieldNames.slice(0)}if("type"in object){assert.ok(false,"did not recognize object of type "+JSON.stringify(object.type))}return Object.keys(object)}exports.getFieldNames=getFieldNames;function getFieldValue(object,fieldName){var d=Def.fromValue(object);if(d){var field=d.allFields[fieldName];if(field){return field.getValue(object)}}return object[fieldName]}exports.getFieldValue=getFieldValue;exports.eachField=function(object,callback,context){getFieldNames(object).forEach(function(name){callback.call(this,name,getFieldValue(object,name))},context)};exports.someField=function(object,callback,context){return getFieldNames(object).some(function(name){return callback.call(this,name,getFieldValue(object,name))},context)};Object.defineProperty(Dp,"finalized",{value:false});Dp.finalize=function(){if(!this.finalized){var allFields=this.allFields;var allSupertypes=this.allSupertypes;this.baseNames.forEach(function(name){var def=defCache[name];def.finalize();extend(allFields,def.allFields);extend(allSupertypes,def.allSupertypes)});extend(allFields,this.ownFields);allSupertypes[this.typeName]=this;this.fieldNames.length=0;for(var fieldName in allFields){if(hasOwn.call(allFields,fieldName)&&!allFields[fieldName].hidden){this.fieldNames.push(fieldName)}}Object.defineProperty(namedTypes,this.typeName,{enumerable:true,value:this.type});Object.defineProperty(this,"finalized",{value:true});populateSupertypeList(this.typeName,this.supertypeList)}};function populateSupertypeList(typeName,list){list.length=0;list.push(typeName);var lastSeen=Object.create(null);for(var pos=0;pos<list.length;++pos){typeName=list[pos];var d=defCache[typeName];assert.strictEqual(d.finalized,true);if(hasOwn.call(lastSeen,typeName)){delete list[lastSeen[typeName]]}lastSeen[typeName]=pos;list.push.apply(list,d.baseNames)}for(var to=0,from=to,len=list.length;from<len;++from){if(hasOwn.call(list,from)){list[to++]=list[from]}}list.length=to}function extend(into,from){Object.keys(from).forEach(function(name){into[name]=from[name]});return into}exports.finalize=function(){Object.keys(defCache).forEach(function(name){defCache[name].finalize()})}},{assert:121}],119:[function(require,module,exports){var types=require("./lib/types");require("./def/core");require("./def/es6");require("./def/es7");require("./def/mozilla");require("./def/e4x");require("./def/fb-harmony");types.finalize();exports.Type=types.Type;exports.builtInTypes=types.builtInTypes;exports.namedTypes=types.namedTypes;exports.builders=types.builders;exports.defineMethod=types.defineMethod;exports.getFieldNames=types.getFieldNames;exports.getFieldValue=types.getFieldValue;exports.eachField=types.eachField;exports.someField=types.someField;exports.getSupertypeNames=types.getSupertypeNames;exports.astNodesAreEquivalent=require("./lib/equiv");exports.finalize=types.finalize;exports.NodePath=require("./lib/node-path");exports.PathVisitor=require("./lib/path-visitor");exports.visit=exports.PathVisitor.visit},{"./def/core":106,"./def/e4x":107,"./def/es6":108,"./def/es7":109,"./def/fb-harmony":110,"./def/mozilla":111,"./lib/equiv":112,"./lib/node-path":113,"./lib/path-visitor":114,"./lib/types":118}],120:[function(require,module,exports){},{}],121:[function(require,module,exports){var util=require("util/");var pSlice=Array.prototype.slice;var hasOwn=Object.prototype.hasOwnProperty;var assert=module.exports=ok;assert.AssertionError=function AssertionError(options){this.name="AssertionError";this.actual=options.actual;this.expected=options.expected;this.operator=options.operator;if(options.message){this.message=options.message;this.generatedMessage=false}else{this.message=getMessage(this);this.generatedMessage=true}var stackStartFunction=options.stackStartFunction||fail;if(Error.captureStackTrace){Error.captureStackTrace(this,stackStartFunction)}else{var err=new Error;if(err.stack){var out=err.stack;var fn_name=stackStartFunction.name;var idx=out.indexOf("\n"+fn_name);if(idx>=0){var next_line=out.indexOf("\n",idx+1);out=out.substring(next_line+1)}this.stack=out}}};util.inherits(assert.AssertionError,Error);function replacer(key,value){if(util.isUndefined(value)){return""+value}if(util.isNumber(value)&&!isFinite(value)){return value.toString()}if(util.isFunction(value)||util.isRegExp(value)){return value.toString()}return value}function truncate(s,n){if(util.isString(s)){return s.length<n?s:s.slice(0,n)}else{return s}}function getMessage(self){return truncate(JSON.stringify(self.actual,replacer),128)+" "+self.operator+" "+truncate(JSON.stringify(self.expected,replacer),128)}function fail(actual,expected,message,operator,stackStartFunction){throw new assert.AssertionError({message:message,actual:actual,expected:expected,operator:operator,stackStartFunction:stackStartFunction})}assert.fail=fail;function ok(value,message){if(!value)fail(value,true,message,"==",assert.ok)}assert.ok=ok;assert.equal=function equal(actual,expected,message){if(actual!=expected)fail(actual,expected,message,"==",assert.equal)};assert.notEqual=function notEqual(actual,expected,message){if(actual==expected){fail(actual,expected,message,"!=",assert.notEqual)}};assert.deepEqual=function deepEqual(actual,expected,message){if(!_deepEqual(actual,expected)){fail(actual,expected,message,"deepEqual",assert.deepEqual)}};function _deepEqual(actual,expected){if(actual===expected){return true}else if(util.isBuffer(actual)&&util.isBuffer(expected)){if(actual.length!=expected.length)return false;for(var i=0;i<actual.length;i++){if(actual[i]!==expected[i])return false}return true}else if(util.isDate(actual)&&util.isDate(expected)){return actual.getTime()===expected.getTime()}else if(util.isRegExp(actual)&&util.isRegExp(expected)){return actual.source===expected.source&&actual.global===expected.global&&actual.multiline===expected.multiline&&actual.lastIndex===expected.lastIndex&&actual.ignoreCase===expected.ignoreCase}else if(!util.isObject(actual)&&!util.isObject(expected)){return actual==expected}else{return objEquiv(actual,expected)}}function isArguments(object){return Object.prototype.toString.call(object)=="[object Arguments]"}function objEquiv(a,b){if(util.isNullOrUndefined(a)||util.isNullOrUndefined(b))return false;if(a.prototype!==b.prototype)return false;if(util.isPrimitive(a)||util.isPrimitive(b)){return a===b}var aIsArgs=isArguments(a),bIsArgs=isArguments(b);if(aIsArgs&&!bIsArgs||!aIsArgs&&bIsArgs)return false;if(aIsArgs){a=pSlice.call(a);b=pSlice.call(b);return _deepEqual(a,b)}var ka=objectKeys(a),kb=objectKeys(b),key,i;if(ka.length!=kb.length)return false;ka.sort();kb.sort();for(i=ka.length-1;i>=0;i--){if(ka[i]!=kb[i])return false}for(i=ka.length-1;i>=0;i--){key=ka[i];if(!_deepEqual(a[key],b[key]))return false}return true}assert.notDeepEqual=function notDeepEqual(actual,expected,message){if(_deepEqual(actual,expected)){fail(actual,expected,message,"notDeepEqual",assert.notDeepEqual)}};assert.strictEqual=function strictEqual(actual,expected,message){if(actual!==expected){fail(actual,expected,message,"===",assert.strictEqual)}};assert.notStrictEqual=function notStrictEqual(actual,expected,message){if(actual===expected){fail(actual,expected,message,"!==",assert.notStrictEqual)}};function expectedException(actual,expected){if(!actual||!expected){return false}if(Object.prototype.toString.call(expected)=="[object RegExp]"){return expected.test(actual)}else if(actual instanceof expected){return true}else if(expected.call({},actual)===true){return true}return false}function _throws(shouldThrow,block,expected,message){var actual;if(util.isString(expected)){message=expected;expected=null}try{block()}catch(e){actual=e}message=(expected&&expected.name?" ("+expected.name+").":".")+(message?" "+message:".");if(shouldThrow&&!actual){fail(actual,expected,"Missing expected exception"+message)}if(!shouldThrow&&expectedException(actual,expected)){fail(actual,expected,"Got unwanted exception"+message)}if(shouldThrow&&actual&&expected&&!expectedException(actual,expected)||!shouldThrow&&actual){throw actual}}assert.throws=function(block,error,message){_throws.apply(this,[true].concat(pSlice.call(arguments)))};assert.doesNotThrow=function(block,message){_throws.apply(this,[false].concat(pSlice.call(arguments)))};assert.ifError=function(err){if(err){throw err}};var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj){if(hasOwn.call(obj,key))keys.push(key)}return keys}},{"util/":145}],122:[function(require,module,exports){var base64=require("base64-js");var ieee754=require("ieee754");var isArray=require("is-array");exports.Buffer=Buffer;exports.SlowBuffer=SlowBuffer;exports.INSPECT_MAX_BYTES=50;Buffer.poolSize=8192;var kMaxLength=1073741823;var rootParent={};Buffer.TYPED_ARRAY_SUPPORT=function(){try{var buf=new ArrayBuffer(0);var arr=new Uint8Array(buf);arr.foo=function(){return 42};return 42===arr.foo()&&typeof arr.subarray==="function"&&new Uint8Array(1).subarray(1,1).byteLength===0}catch(e){return false}}();function Buffer(subject,encoding,noZero){if(!(this instanceof Buffer))return new Buffer(subject,encoding,noZero);var type=typeof subject;var length;if(type==="number")length=subject>0?subject>>>0:0;else if(type==="string"){length=Buffer.byteLength(subject,encoding)}else if(type==="object"&&subject!==null){if(subject.type==="Buffer"&&isArray(subject.data))subject=subject.data;length=+subject.length>0?Math.floor(+subject.length):0}else throw new TypeError("must start with number, buffer, array or string");if(length>kMaxLength)throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+kMaxLength.toString(16)+" bytes");var buf;if(Buffer.TYPED_ARRAY_SUPPORT){buf=Buffer._augment(new Uint8Array(length))}else{buf=this;buf.length=length;buf._isBuffer=true}var i;if(Buffer.TYPED_ARRAY_SUPPORT&&typeof subject.byteLength==="number"){buf._set(subject)}else if(isArrayish(subject)){if(Buffer.isBuffer(subject)){for(i=0;i<length;i++)buf[i]=subject.readUInt8(i)}else{for(i=0;i<length;i++)buf[i]=(subject[i]%256+256)%256}}else if(type==="string"){buf.write(subject,0,encoding)}else if(type==="number"&&!Buffer.TYPED_ARRAY_SUPPORT&&!noZero){for(i=0;i<length;i++){buf[i]=0}}if(length>0&&length<=Buffer.poolSize)buf.parent=rootParent;return buf}function SlowBuffer(subject,encoding,noZero){if(!(this instanceof SlowBuffer))return new SlowBuffer(subject,encoding,noZero);var buf=new Buffer(subject,encoding,noZero);delete buf.parent;return buf}Buffer.isBuffer=function(b){return!!(b!=null&&b._isBuffer)};Buffer.compare=function(a,b){if(!Buffer.isBuffer(a)||!Buffer.isBuffer(b))throw new TypeError("Arguments must be Buffers");var x=a.length;var y=b.length;for(var i=0,len=Math.min(x,y);i<len&&a[i]===b[i];i++){}if(i!==len){x=a[i];y=b[i]}if(x<y)return-1;if(y<x)return 1;return 0};Buffer.isEncoding=function(encoding){switch(String(encoding).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return true;default:return false}};Buffer.concat=function(list,totalLength){if(!isArray(list))throw new TypeError("Usage: Buffer.concat(list[, length])");if(list.length===0){return new Buffer(0)}else if(list.length===1){return list[0]}var i;if(totalLength===undefined){totalLength=0;for(i=0;i<list.length;i++){totalLength+=list[i].length}}var buf=new Buffer(totalLength);var pos=0;for(i=0;i<list.length;i++){var item=list[i];item.copy(buf,pos);pos+=item.length}return buf};Buffer.byteLength=function(str,encoding){var ret;str=str+"";switch(encoding||"utf8"){case"ascii":case"binary":case"raw":ret=str.length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":ret=str.length*2;break;case"hex":ret=str.length>>>1;break;case"utf8":case"utf-8":ret=utf8ToBytes(str).length;break;case"base64":ret=base64ToBytes(str).length;break;default:ret=str.length}return ret};Buffer.prototype.length=undefined;Buffer.prototype.parent=undefined;Buffer.prototype.toString=function(encoding,start,end){var loweredCase=false;start=start>>>0;end=end===undefined||end===Infinity?this.length:end>>>0;if(!encoding)encoding="utf8";if(start<0)start=0;if(end>this.length)end=this.length;if(end<=start)return"";while(true){switch(encoding){case"hex":return hexSlice(this,start,end);case"utf8":case"utf-8":return utf8Slice(this,start,end);case"ascii":return asciiSlice(this,start,end);case"binary":return binarySlice(this,start,end);case"base64":return base64Slice(this,start,end);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,start,end);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(encoding+"").toLowerCase();loweredCase=true}}};Buffer.prototype.equals=function(b){if(!Buffer.isBuffer(b))throw new TypeError("Argument must be a Buffer");return Buffer.compare(this,b)===0};Buffer.prototype.inspect=function(){var str="";var max=exports.INSPECT_MAX_BYTES;if(this.length>0){str=this.toString("hex",0,max).match(/.{2}/g).join(" ");if(this.length>max)str+=" ... "}return"<Buffer "+str+">"};Buffer.prototype.compare=function(b){if(!Buffer.isBuffer(b))throw new TypeError("Argument must be a Buffer");return Buffer.compare(this,b)};Buffer.prototype.get=function(offset){console.log(".get() is deprecated. Access using array indexes instead.");return this.readUInt8(offset)};Buffer.prototype.set=function(v,offset){console.log(".set() is deprecated. Access using array indexes instead.");return this.writeUInt8(v,offset)};function hexWrite(buf,string,offset,length){offset=Number(offset)||0;var remaining=buf.length-offset;if(!length){length=remaining}else{length=Number(length);if(length>remaining){length=remaining}}var strLen=string.length;if(strLen%2!==0)throw new Error("Invalid hex string");if(length>strLen/2){length=strLen/2}for(var i=0;i<length;i++){var byte=parseInt(string.substr(i*2,2),16);if(isNaN(byte))throw new Error("Invalid hex string");buf[offset+i]=byte}return i}function utf8Write(buf,string,offset,length){var charsWritten=blitBuffer(utf8ToBytes(string,buf.length-offset),buf,offset,length);return charsWritten}function asciiWrite(buf,string,offset,length){var charsWritten=blitBuffer(asciiToBytes(string),buf,offset,length);return charsWritten}function binaryWrite(buf,string,offset,length){return asciiWrite(buf,string,offset,length)}function base64Write(buf,string,offset,length){var charsWritten=blitBuffer(base64ToBytes(string),buf,offset,length);return charsWritten}function utf16leWrite(buf,string,offset,length){var charsWritten=blitBuffer(utf16leToBytes(string,buf.length-offset),buf,offset,length,2);return charsWritten}Buffer.prototype.write=function(string,offset,length,encoding){if(isFinite(offset)){if(!isFinite(length)){encoding=length;length=undefined}}else{var swap=encoding;encoding=offset;offset=length;length=swap}offset=Number(offset)||0;if(length<0||offset<0||offset>this.length)throw new RangeError("attempt to write outside buffer bounds");var remaining=this.length-offset;if(!length){length=remaining}else{length=Number(length);if(length>remaining){length=remaining}}encoding=String(encoding||"utf8").toLowerCase();var ret;switch(encoding){case"hex":ret=hexWrite(this,string,offset,length);break;case"utf8":case"utf-8":ret=utf8Write(this,string,offset,length);break;case"ascii":ret=asciiWrite(this,string,offset,length);break;case"binary":ret=binaryWrite(this,string,offset,length);break;case"base64":ret=base64Write(this,string,offset,length);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":ret=utf16leWrite(this,string,offset,length);break;default:throw new TypeError("Unknown encoding: "+encoding)}return ret};Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function base64Slice(buf,start,end){if(start===0&&end===buf.length){return base64.fromByteArray(buf)}else{return base64.fromByteArray(buf.slice(start,end))}}function utf8Slice(buf,start,end){var res="";var tmp="";end=Math.min(buf.length,end);for(var i=start;i<end;i++){if(buf[i]<=127){res+=decodeUtf8Char(tmp)+String.fromCharCode(buf[i]);tmp=""}else{tmp+="%"+buf[i].toString(16)}}return res+decodeUtf8Char(tmp)}function asciiSlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;i<end;i++){ret+=String.fromCharCode(buf[i]&127)}return ret}function binarySlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;i<end;i++){ret+=String.fromCharCode(buf[i])}return ret}function hexSlice(buf,start,end){var len=buf.length;if(!start||start<0)start=0;if(!end||end<0||end>len)end=len;var out="";for(var i=start;i<end;i++){out+=toHex(buf[i])}return out}function utf16leSlice(buf,start,end){var bytes=buf.slice(start,end);var res="";for(var i=0;i<bytes.length;i+=2){res+=String.fromCharCode(bytes[i]+bytes[i+1]*256)}return res}Buffer.prototype.slice=function(start,end){var len=this.length;start=~~start;end=end===undefined?len:~~end;if(start<0){start+=len;if(start<0)start=0}else if(start>len){start=len}if(end<0){end+=len;if(end<0)end=0}else if(end>len){end=len}if(end<start)end=start;var newBuf;if(Buffer.TYPED_ARRAY_SUPPORT){newBuf=Buffer._augment(this.subarray(start,end))}else{var sliceLen=end-start;newBuf=new Buffer(sliceLen,undefined,true);for(var i=0;i<sliceLen;i++){newBuf[i]=this[i+start]}}if(newBuf.length)newBuf.parent=this.parent||this;return newBuf};function checkOffset(offset,ext,length){if(offset%1!==0||offset<0)throw new RangeError("offset is not uint");if(offset+ext>length)throw new RangeError("Trying to access beyond buffer length")}Buffer.prototype.readUIntLE=function(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset];var mul=1;var i=0;while(++i<byteLength&&(mul*=256))val+=this[offset+i]*mul;return val};Buffer.prototype.readUIntBE=function(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset+--byteLength];var mul=1;while(byteLength>0&&(mul*=256))val+=this[offset+--byteLength]*mul;return val};Buffer.prototype.readUInt8=function(offset,noAssert){if(!noAssert)checkOffset(offset,1,this.length);return this[offset]};Buffer.prototype.readUInt16LE=function(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);return this[offset]|this[offset+1]<<8};Buffer.prototype.readUInt16BE=function(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);return this[offset]<<8|this[offset+1]};Buffer.prototype.readUInt32LE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+this[offset+3]*16777216};Buffer.prototype.readUInt32BE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return this[offset]*16777216+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3])};Buffer.prototype.readIntLE=function(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset];var mul=1;var i=0;while(++i<byteLength&&(mul*=256))val+=this[offset+i]*mul;mul*=128;if(val>=mul)val-=Math.pow(2,8*byteLength);return val};Buffer.prototype.readIntBE=function(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var i=byteLength;var mul=1;var val=this[offset+--i];while(i>0&&(mul*=256))val+=this[offset+--i]*mul;mul*=128;if(val>=mul)val-=Math.pow(2,8*byteLength);return val};Buffer.prototype.readInt8=function(offset,noAssert){if(!noAssert)checkOffset(offset,1,this.length);if(!(this[offset]&128))return this[offset];return(255-this[offset]+1)*-1};Buffer.prototype.readInt16LE=function(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);var val=this[offset]|this[offset+1]<<8;return val&32768?val|4294901760:val};Buffer.prototype.readInt16BE=function(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);var val=this[offset+1]|this[offset]<<8;return val&32768?val|4294901760:val};Buffer.prototype.readInt32LE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24};Buffer.prototype.readInt32BE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3]};Buffer.prototype.readFloatLE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return ieee754.read(this,offset,true,23,4)};Buffer.prototype.readFloatBE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return ieee754.read(this,offset,false,23,4)};Buffer.prototype.readDoubleLE=function(offset,noAssert){if(!noAssert)checkOffset(offset,8,this.length);return ieee754.read(this,offset,true,52,8)};Buffer.prototype.readDoubleBE=function(offset,noAssert){if(!noAssert)checkOffset(offset,8,this.length);return ieee754.read(this,offset,false,52,8)};function checkInt(buf,value,offset,ext,max,min){if(!Buffer.isBuffer(buf))throw new TypeError("buffer must be a Buffer instance");if(value>max||value<min)throw new RangeError("value is out of bounds");if(offset+ext>buf.length)throw new RangeError("index out of range")}Buffer.prototype.writeUIntLE=function(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkInt(this,value,offset,byteLength,Math.pow(2,8*byteLength),0);var mul=1;var i=0;this[offset]=value&255;while(++i<byteLength&&(mul*=256))this[offset+i]=value/mul>>>0&255;return offset+byteLength};Buffer.prototype.writeUIntBE=function(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkInt(this,value,offset,byteLength,Math.pow(2,8*byteLength),0);var i=byteLength-1;var mul=1;this[offset+i]=value&255;while(--i>=0&&(mul*=256))this[offset+i]=value/mul>>>0&255;return offset+byteLength};Buffer.prototype.writeUInt8=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,1,255,0);if(!Buffer.TYPED_ARRAY_SUPPORT)value=Math.floor(value);this[offset]=value;return offset+1};function objectWriteUInt16(buf,value,offset,littleEndian){if(value<0)value=65535+value+1;for(var i=0,j=Math.min(buf.length-offset,2);i<j;i++){buf[offset+i]=(value&255<<8*(littleEndian?i:1-i))>>>(littleEndian?i:1-i)*8}}Buffer.prototype.writeUInt16LE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,65535,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value;this[offset+1]=value>>>8}else objectWriteUInt16(this,value,offset,true);return offset+2};Buffer.prototype.writeUInt16BE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,65535,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>8;this[offset+1]=value}else objectWriteUInt16(this,value,offset,false);return offset+2};function objectWriteUInt32(buf,value,offset,littleEndian){if(value<0)value=4294967295+value+1;for(var i=0,j=Math.min(buf.length-offset,4);i<j;i++){buf[offset+i]=value>>>(littleEndian?i:3-i)*8&255}}Buffer.prototype.writeUInt32LE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,4294967295,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset+3]=value>>>24;this[offset+2]=value>>>16;this[offset+1]=value>>>8;this[offset]=value}else objectWriteUInt32(this,value,offset,true);return offset+4};Buffer.prototype.writeUInt32BE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,4294967295,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value}else objectWriteUInt32(this,value,offset,false);return offset+4};Buffer.prototype.writeIntLE=function(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;if(!noAssert){checkInt(this,value,offset,byteLength,Math.pow(2,8*byteLength-1)-1,-Math.pow(2,8*byteLength-1))}var i=0;var mul=1;var sub=value<0?1:0;this[offset]=value&255;while(++i<byteLength&&(mul*=256))this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength};Buffer.prototype.writeIntBE=function(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;if(!noAssert){checkInt(this,value,offset,byteLength,Math.pow(2,8*byteLength-1)-1,-Math.pow(2,8*byteLength-1))}var i=byteLength-1;var mul=1;var sub=value<0?1:0;this[offset+i]=value&255;while(--i>=0&&(mul*=256))this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength};Buffer.prototype.writeInt8=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,1,127,-128);if(!Buffer.TYPED_ARRAY_SUPPORT)value=Math.floor(value);if(value<0)value=255+value+1;this[offset]=value;return offset+1};Buffer.prototype.writeInt16LE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,32767,-32768);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value;this[offset+1]=value>>>8}else objectWriteUInt16(this,value,offset,true);return offset+2};Buffer.prototype.writeInt16BE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,32767,-32768);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>8;this[offset+1]=value}else objectWriteUInt16(this,value,offset,false);return offset+2};Buffer.prototype.writeInt32LE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,2147483647,-2147483648);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value;this[offset+1]=value>>>8;this[offset+2]=value>>>16;this[offset+3]=value>>>24}else objectWriteUInt32(this,value,offset,true);return offset+4};Buffer.prototype.writeInt32BE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,2147483647,-2147483648);if(value<0)value=4294967295+value+1;if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value}else objectWriteUInt32(this,value,offset,false);return offset+4};function checkIEEE754(buf,value,offset,ext,max,min){if(value>max||value<min)throw new RangeError("value is out of bounds");if(offset+ext>buf.length)throw new RangeError("index out of range");if(offset<0)throw new RangeError("index out of range")}function writeFloat(buf,value,offset,littleEndian,noAssert){if(!noAssert)checkIEEE754(buf,value,offset,4,3.4028234663852886e38,-3.4028234663852886e38);ieee754.write(buf,value,offset,littleEndian,23,4);return offset+4}Buffer.prototype.writeFloatLE=function(value,offset,noAssert){return writeFloat(this,value,offset,true,noAssert)};Buffer.prototype.writeFloatBE=function(value,offset,noAssert){return writeFloat(this,value,offset,false,noAssert)};function writeDouble(buf,value,offset,littleEndian,noAssert){if(!noAssert)checkIEEE754(buf,value,offset,8,1.7976931348623157e308,-1.7976931348623157e308);ieee754.write(buf,value,offset,littleEndian,52,8);return offset+8}Buffer.prototype.writeDoubleLE=function(value,offset,noAssert){return writeDouble(this,value,offset,true,noAssert)};Buffer.prototype.writeDoubleBE=function(value,offset,noAssert){return writeDouble(this,value,offset,false,noAssert)};Buffer.prototype.copy=function(target,target_start,start,end){var source=this;if(!start)start=0;if(!end&&end!==0)end=this.length;if(target_start>=target.length)target_start=target.length;if(!target_start)target_start=0;if(end>0&&end<start)end=start;if(end===start)return 0;if(target.length===0||source.length===0)return 0;if(target_start<0)throw new RangeError("targetStart out of bounds");if(start<0||start>=source.length)throw new RangeError("sourceStart out of bounds");if(end<0)throw new RangeError("sourceEnd out of bounds");if(end>this.length)end=this.length;if(target.length-target_start<end-start)end=target.length-target_start+start;var len=end-start;if(len<1e3||!Buffer.TYPED_ARRAY_SUPPORT){for(var i=0;i<len;i++){target[i+target_start]=this[i+start]}}else{target._set(this.subarray(start,start+len),target_start)}return len};Buffer.prototype.fill=function(value,start,end){if(!value)value=0;if(!start)start=0;if(!end)end=this.length;if(end<start)throw new RangeError("end < start");if(end===start)return;if(this.length===0)return;if(start<0||start>=this.length)throw new RangeError("start out of bounds");if(end<0||end>this.length)throw new RangeError("end out of bounds");var i;if(typeof value==="number"){for(i=start;i<end;i++){this[i]=value}}else{var bytes=utf8ToBytes(value.toString());var len=bytes.length;for(i=start;i<end;i++){this[i]=bytes[i%len]}}return this};Buffer.prototype.toArrayBuffer=function(){if(typeof Uint8Array!=="undefined"){if(Buffer.TYPED_ARRAY_SUPPORT){return new Buffer(this).buffer}else{var buf=new Uint8Array(this.length);for(var i=0,len=buf.length;i<len;i+=1){buf[i]=this[i]}return buf.buffer}}else{throw new TypeError("Buffer.toArrayBuffer not supported in this browser")}};var BP=Buffer.prototype;Buffer._augment=function(arr){arr.constructor=Buffer;arr._isBuffer=true;arr._get=arr.get;arr._set=arr.set;arr.get=BP.get;arr.set=BP.set;arr.write=BP.write;arr.toString=BP.toString;arr.toLocaleString=BP.toString;arr.toJSON=BP.toJSON;arr.equals=BP.equals;arr.compare=BP.compare;arr.copy=BP.copy;arr.slice=BP.slice;arr.readUIntLE=BP.readUIntLE;arr.readUIntBE=BP.readUIntBE;arr.readUInt8=BP.readUInt8;arr.readUInt16LE=BP.readUInt16LE;arr.readUInt16BE=BP.readUInt16BE;arr.readUInt32LE=BP.readUInt32LE;arr.readUInt32BE=BP.readUInt32BE;arr.readIntLE=BP.readIntLE;arr.readIntBE=BP.readIntBE;arr.readInt8=BP.readInt8;arr.readInt16LE=BP.readInt16LE;arr.readInt16BE=BP.readInt16BE;arr.readInt32LE=BP.readInt32LE;arr.readInt32BE=BP.readInt32BE;arr.readFloatLE=BP.readFloatLE;arr.readFloatBE=BP.readFloatBE;arr.readDoubleLE=BP.readDoubleLE;arr.readDoubleBE=BP.readDoubleBE;
arr.writeUInt8=BP.writeUInt8;arr.writeUIntLE=BP.writeUIntLE;arr.writeUIntBE=BP.writeUIntBE;arr.writeUInt16LE=BP.writeUInt16LE;arr.writeUInt16BE=BP.writeUInt16BE;arr.writeUInt32LE=BP.writeUInt32LE;arr.writeUInt32BE=BP.writeUInt32BE;arr.writeIntLE=BP.writeIntLE;arr.writeIntBE=BP.writeIntBE;arr.writeInt8=BP.writeInt8;arr.writeInt16LE=BP.writeInt16LE;arr.writeInt16BE=BP.writeInt16BE;arr.writeInt32LE=BP.writeInt32LE;arr.writeInt32BE=BP.writeInt32BE;arr.writeFloatLE=BP.writeFloatLE;arr.writeFloatBE=BP.writeFloatBE;arr.writeDoubleLE=BP.writeDoubleLE;arr.writeDoubleBE=BP.writeDoubleBE;arr.fill=BP.fill;arr.inspect=BP.inspect;arr.toArrayBuffer=BP.toArrayBuffer;return arr};var INVALID_BASE64_RE=/[^+\/0-9A-z\-]/g;function base64clean(str){str=stringtrim(str).replace(INVALID_BASE64_RE,"");if(str.length<2)return"";while(str.length%4!==0){str=str+"="}return str}function stringtrim(str){if(str.trim)return str.trim();return str.replace(/^\s+|\s+$/g,"")}function isArrayish(subject){return isArray(subject)||Buffer.isBuffer(subject)||subject&&typeof subject==="object"&&typeof subject.length==="number"}function toHex(n){if(n<16)return"0"+n.toString(16);return n.toString(16)}function utf8ToBytes(string,units){var codePoint,length=string.length;var leadSurrogate=null;units=units||Infinity;var bytes=[];var i=0;for(;i<length;i++){codePoint=string.charCodeAt(i);if(codePoint>55295&&codePoint<57344){if(leadSurrogate){if(codePoint<56320){if((units-=3)>-1)bytes.push(239,191,189);leadSurrogate=codePoint;continue}else{codePoint=leadSurrogate-55296<<10|codePoint-56320|65536;leadSurrogate=null}}else{if(codePoint>56319){if((units-=3)>-1)bytes.push(239,191,189);continue}else if(i+1===length){if((units-=3)>-1)bytes.push(239,191,189);continue}else{leadSurrogate=codePoint;continue}}}else if(leadSurrogate){if((units-=3)>-1)bytes.push(239,191,189);leadSurrogate=null}if(codePoint<128){if((units-=1)<0)break;bytes.push(codePoint)}else if(codePoint<2048){if((units-=2)<0)break;bytes.push(codePoint>>6|192,codePoint&63|128)}else if(codePoint<65536){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,codePoint&63|128)}else if(codePoint<2097152){if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,codePoint&63|128)}else{throw new Error("Invalid code point")}}return bytes}function asciiToBytes(str){var byteArray=[];for(var i=0;i<str.length;i++){byteArray.push(str.charCodeAt(i)&255)}return byteArray}function utf16leToBytes(str,units){var c,hi,lo;var byteArray=[];for(var i=0;i<str.length;i++){if((units-=2)<0)break;c=str.charCodeAt(i);hi=c>>8;lo=c%256;byteArray.push(lo);byteArray.push(hi)}return byteArray}function base64ToBytes(str){return base64.toByteArray(base64clean(str))}function blitBuffer(src,dst,offset,length,unitSize){if(unitSize)length-=length%unitSize;for(var i=0;i<length;i++){if(i+offset>=dst.length||i>=src.length)break;dst[i+offset]=src[i]}return i}function decodeUtf8Char(str){try{return decodeURIComponent(str)}catch(err){return String.fromCharCode(65533)}}},{"base64-js":123,ieee754:124,"is-array":125}],123:[function(require,module,exports){var lookup="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(exports){"use strict";var Arr=typeof Uint8Array!=="undefined"?Uint8Array:Array;var PLUS="+".charCodeAt(0);var SLASH="/".charCodeAt(0);var NUMBER="0".charCodeAt(0);var LOWER="a".charCodeAt(0);var UPPER="A".charCodeAt(0);var PLUS_URL_SAFE="-".charCodeAt(0);var SLASH_URL_SAFE="_".charCodeAt(0);function decode(elt){var code=elt.charCodeAt(0);if(code===PLUS||code===PLUS_URL_SAFE)return 62;if(code===SLASH||code===SLASH_URL_SAFE)return 63;if(code<NUMBER)return-1;if(code<NUMBER+10)return code-NUMBER+26+26;if(code<UPPER+26)return code-UPPER;if(code<LOWER+26)return code-LOWER+26}function b64ToByteArray(b64){var i,j,l,tmp,placeHolders,arr;if(b64.length%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}var len=b64.length;placeHolders="="===b64.charAt(len-2)?2:"="===b64.charAt(len-1)?1:0;arr=new Arr(b64.length*3/4-placeHolders);l=placeHolders>0?b64.length-4:b64.length;var L=0;function push(v){arr[L++]=v}for(i=0,j=0;i<l;i+=4,j+=3){tmp=decode(b64.charAt(i))<<18|decode(b64.charAt(i+1))<<12|decode(b64.charAt(i+2))<<6|decode(b64.charAt(i+3));push((tmp&16711680)>>16);push((tmp&65280)>>8);push(tmp&255)}if(placeHolders===2){tmp=decode(b64.charAt(i))<<2|decode(b64.charAt(i+1))>>4;push(tmp&255)}else if(placeHolders===1){tmp=decode(b64.charAt(i))<<10|decode(b64.charAt(i+1))<<4|decode(b64.charAt(i+2))>>2;push(tmp>>8&255);push(tmp&255)}return arr}function uint8ToBase64(uint8){var i,extraBytes=uint8.length%3,output="",temp,length;function encode(num){return lookup.charAt(num)}function tripletToBase64(num){return encode(num>>18&63)+encode(num>>12&63)+encode(num>>6&63)+encode(num&63)}for(i=0,length=uint8.length-extraBytes;i<length;i+=3){temp=(uint8[i]<<16)+(uint8[i+1]<<8)+uint8[i+2];output+=tripletToBase64(temp)}switch(extraBytes){case 1:temp=uint8[uint8.length-1];output+=encode(temp>>2);output+=encode(temp<<4&63);output+="==";break;case 2:temp=(uint8[uint8.length-2]<<8)+uint8[uint8.length-1];output+=encode(temp>>10);output+=encode(temp>>4&63);output+=encode(temp<<2&63);output+="=";break}return output}exports.toByteArray=b64ToByteArray;exports.fromByteArray=uint8ToBase64})(typeof exports==="undefined"?this.base64js={}:exports)},{}],124:[function(require,module,exports){exports.read=function(buffer,offset,isLE,mLen,nBytes){var e,m,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,nBits=-7,i=isLE?nBytes-1:0,d=isLE?-1:1,s=buffer[offset+i];i+=d;e=s&(1<<-nBits)-1;s>>=-nBits;nBits+=eLen;for(;nBits>0;e=e*256+buffer[offset+i],i+=d,nBits-=8);m=e&(1<<-nBits)-1;e>>=-nBits;nBits+=mLen;for(;nBits>0;m=m*256+buffer[offset+i],i+=d,nBits-=8);if(e===0){e=1-eBias}else if(e===eMax){return m?NaN:(s?-1:1)*Infinity}else{m=m+Math.pow(2,mLen);e=e-eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)};exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,rt=mLen===23?Math.pow(2,-24)-Math.pow(2,-77):0,i=isLE?0:nBytes-1,d=isLE?1:-1,s=value<0||value===0&&1/value<0?1:0;value=Math.abs(value);if(isNaN(value)||value===Infinity){m=isNaN(value)?1:0;e=eMax}else{e=Math.floor(Math.log(value)/Math.LN2);if(value*(c=Math.pow(2,-e))<1){e--;c*=2}if(e+eBias>=1){value+=rt/c}else{value+=rt*Math.pow(2,1-eBias)}if(value*c>=2){e++;c/=2}if(e+eBias>=eMax){m=0;e=eMax}else if(e+eBias>=1){m=(value*c-1)*Math.pow(2,mLen);e=e+eBias}else{m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen);e=0}}for(;mLen>=8;buffer[offset+i]=m&255,i+=d,m/=256,mLen-=8);e=e<<mLen|m;eLen+=mLen;for(;eLen>0;buffer[offset+i]=e&255,i+=d,e/=256,eLen-=8);buffer[offset+i-d]|=s*128}},{}],125:[function(require,module,exports){var isArray=Array.isArray;var str=Object.prototype.toString;module.exports=isArray||function(val){return!!val&&"[object Array]"==str.call(val)}},{}],126:[function(require,module,exports){function EventEmitter(){this._events=this._events||{};this._maxListeners=this._maxListeners||undefined}module.exports=EventEmitter;EventEmitter.EventEmitter=EventEmitter;EventEmitter.prototype._events=undefined;EventEmitter.prototype._maxListeners=undefined;EventEmitter.defaultMaxListeners=10;EventEmitter.prototype.setMaxListeners=function(n){if(!isNumber(n)||n<0||isNaN(n))throw TypeError("n must be a positive number");this._maxListeners=n;return this};EventEmitter.prototype.emit=function(type){var er,handler,len,args,i,listeners;if(!this._events)this._events={};if(type==="error"){if(!this._events.error||isObject(this._events.error)&&!this._events.error.length){er=arguments[1];if(er instanceof Error){throw er}throw TypeError('Uncaught, unspecified "error" event.')}}handler=this._events[type];if(isUndefined(handler))return false;if(isFunction(handler)){switch(arguments.length){case 1:handler.call(this);break;case 2:handler.call(this,arguments[1]);break;case 3:handler.call(this,arguments[1],arguments[2]);break;default:len=arguments.length;args=new Array(len-1);for(i=1;i<len;i++)args[i-1]=arguments[i];handler.apply(this,args)}}else if(isObject(handler)){len=arguments.length;args=new Array(len-1);for(i=1;i<len;i++)args[i-1]=arguments[i];listeners=handler.slice();len=listeners.length;for(i=0;i<len;i++)listeners[i].apply(this,args)}return true};EventEmitter.prototype.addListener=function(type,listener){var m;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events)this._events={};if(this._events.newListener)this.emit("newListener",type,isFunction(listener.listener)?listener.listener:listener);if(!this._events[type])this._events[type]=listener;else if(isObject(this._events[type]))this._events[type].push(listener);else this._events[type]=[this._events[type],listener];if(isObject(this._events[type])&&!this._events[type].warned){var m;if(!isUndefined(this._maxListeners)){m=this._maxListeners}else{m=EventEmitter.defaultMaxListeners}if(m&&m>0&&this._events[type].length>m){this._events[type].warned=true;console.error("(node) warning: possible EventEmitter memory "+"leak detected. %d listeners added. "+"Use emitter.setMaxListeners() to increase limit.",this._events[type].length);if(typeof console.trace==="function"){console.trace()}}}return this};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.once=function(type,listener){if(!isFunction(listener))throw TypeError("listener must be a function");var fired=false;function g(){this.removeListener(type,g);if(!fired){fired=true;listener.apply(this,arguments)}}g.listener=listener;this.on(type,g);return this};EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events||!this._events[type])return this;list=this._events[type];length=list.length;position=-1;if(list===listener||isFunction(list.listener)&&list.listener===listener){delete this._events[type];if(this._events.removeListener)this.emit("removeListener",type,listener)}else if(isObject(list)){for(i=length;i-->0;){if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}}if(position<0)return this;if(list.length===1){list.length=0;delete this._events[type]}else{list.splice(position,1)}if(this._events.removeListener)this.emit("removeListener",type,listener)}return this};EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener){if(arguments.length===0)this._events={};else if(this._events[type])delete this._events[type];return this}if(arguments.length===0){for(key in this._events){if(key==="removeListener")continue;this.removeAllListeners(key)}this.removeAllListeners("removeListener");this._events={};return this}listeners=this._events[type];if(isFunction(listeners)){this.removeListener(type,listeners)}else{while(listeners.length)this.removeListener(type,listeners[listeners.length-1])}delete this._events[type];return this};EventEmitter.prototype.listeners=function(type){var ret;if(!this._events||!this._events[type])ret=[];else if(isFunction(this._events[type]))ret=[this._events[type]];else ret=this._events[type].slice();return ret};EventEmitter.listenerCount=function(emitter,type){var ret;if(!emitter._events||!emitter._events[type])ret=0;else if(isFunction(emitter._events[type]))ret=1;else ret=emitter._events[type].length;return ret};function isFunction(arg){return typeof arg==="function"}function isNumber(arg){return typeof arg==="number"}function isObject(arg){return typeof arg==="object"&&arg!==null}function isUndefined(arg){return arg===void 0}},{}],127:[function(require,module,exports){if(typeof Object.create==="function"){module.exports=function inherits(ctor,superCtor){ctor.super_=superCtor;ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:false,writable:true,configurable:true}})}}else{module.exports=function inherits(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype;ctor.prototype=new TempCtor;ctor.prototype.constructor=ctor}}},{}],128:[function(require,module,exports){module.exports=Array.isArray||function(arr){return Object.prototype.toString.call(arr)=="[object Array]"}},{}],129:[function(require,module,exports){(function(process){function normalizeArray(parts,allowAboveRoot){var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up--;up){parts.unshift("..")}}return parts}var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;var splitPath=function(filename){return splitPathRe.exec(filename).slice(1)};exports.resolve=function(){var resolvedPath="",resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:process.cwd();if(typeof path!=="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!path){continue}resolvedPath=path+"/"+resolvedPath;resolvedAbsolute=path.charAt(0)==="/"}resolvedPath=normalizeArray(filter(resolvedPath.split("/"),function(p){return!!p}),!resolvedAbsolute).join("/");return(resolvedAbsolute?"/":"")+resolvedPath||"."};exports.normalize=function(path){var isAbsolute=exports.isAbsolute(path),trailingSlash=substr(path,-1)==="/";path=normalizeArray(filter(path.split("/"),function(p){return!!p}),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path};exports.isAbsolute=function(path){return path.charAt(0)==="/"};exports.join=function(){var paths=Array.prototype.slice.call(arguments,0);return exports.normalize(filter(paths,function(p,index){if(typeof p!=="string"){throw new TypeError("Arguments to path.join must be strings")}return p}).join("/"))};exports.relative=function(from,to){from=exports.resolve(from).substr(1);to=exports.resolve(to).substr(1);function trim(arr){var start=0;for(;start<arr.length;start++){if(arr[start]!=="")break}var end=arr.length-1;for(;end>=0;end--){if(arr[end]!=="")break}if(start>end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split("/"));var toParts=trim(to.split("/"));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i<length;i++){if(fromParts[i]!==toParts[i]){samePartsLength=i;break}}var outputParts=[];for(var i=samePartsLength;i<fromParts.length;i++){outputParts.push("..")}outputParts=outputParts.concat(toParts.slice(samePartsLength));return outputParts.join("/")};exports.sep="/";exports.delimiter=":";exports.dirname=function(path){var result=splitPath(path),root=result[0],dir=result[1];if(!root&&!dir){return"."}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir};exports.basename=function(path,ext){var f=splitPath(path)[2];if(ext&&f.substr(-1*ext.length)===ext){f=f.substr(0,f.length-ext.length)}return f};exports.extname=function(path){return splitPath(path)[3]};function filter(xs,f){if(xs.filter)return xs.filter(f);var res=[];for(var i=0;i<xs.length;i++){if(f(xs[i],i,xs))res.push(xs[i])}return res}var substr="ab".substr(-1)==="b"?function(str,start,len){return str.substr(start,len)}:function(str,start,len){if(start<0)start=str.length+start;return str.substr(start,len)}}).call(this,require("_process"))},{_process:130}],130:[function(require,module,exports){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="";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")};process.cwd=function(){return"/"};process.chdir=function(dir){throw new Error("process.chdir is not supported")};process.umask=function(){return 0}},{}],131:[function(require,module,exports){module.exports=require("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":132}],132:[function(require,module,exports){(function(process){module.exports=Duplex;var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj)keys.push(key);return keys};var util=require("core-util-is");util.inherits=require("inherits");var Readable=require("./_stream_readable");var Writable=require("./_stream_writable");util.inherits(Duplex,Readable);forEach(objectKeys(Writable.prototype),function(method){if(!Duplex.prototype[method])Duplex.prototype[method]=Writable.prototype[method]});function Duplex(options){if(!(this instanceof Duplex))return new Duplex(options);Readable.call(this,options);Writable.call(this,options);if(options&&options.readable===false)this.readable=false;if(options&&options.writable===false)this.writable=false;this.allowHalfOpen=true;if(options&&options.allowHalfOpen===false)this.allowHalfOpen=false;this.once("end",onend)}function onend(){if(this.allowHalfOpen||this._writableState.ended)return;process.nextTick(this.end.bind(this))}function forEach(xs,f){for(var i=0,l=xs.length;i<l;i++){f(xs[i],i)}}}).call(this,require("_process"))},{"./_stream_readable":134,"./_stream_writable":136,_process:130,"core-util-is":137,inherits:127}],133:[function(require,module,exports){module.exports=PassThrough;var Transform=require("./_stream_transform");var util=require("core-util-is");util.inherits=require("inherits");util.inherits(PassThrough,Transform);function PassThrough(options){if(!(this instanceof PassThrough))return new PassThrough(options);Transform.call(this,options)}PassThrough.prototype._transform=function(chunk,encoding,cb){cb(null,chunk)}},{"./_stream_transform":135,"core-util-is":137,inherits:127}],134:[function(require,module,exports){(function(process){module.exports=Readable;var isArray=require("isarray");var Buffer=require("buffer").Buffer;Readable.ReadableState=ReadableState;var EE=require("events").EventEmitter;if(!EE.listenerCount)EE.listenerCount=function(emitter,type){return emitter.listeners(type).length};var Stream=require("stream");var util=require("core-util-is");util.inherits=require("inherits");var StringDecoder;util.inherits(Readable,Stream);function ReadableState(options,stream){options=options||{};var hwm=options.highWaterMark;this.highWaterMark=hwm||hwm===0?hwm:16*1024;this.highWaterMark=~~this.highWaterMark;this.buffer=[];this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=false;this.ended=false;this.endEmitted=false;this.reading=false;this.calledRead=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.objectMode=!!options.objectMode;this.defaultEncoding=options.defaultEncoding||"utf8";this.ranOut=false;this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(options.encoding){if(!StringDecoder)StringDecoder=require("string_decoder/").StringDecoder;this.decoder=new StringDecoder(options.encoding);this.encoding=options.encoding}}function Readable(options){if(!(this instanceof Readable))return new Readable(options);this._readableState=new ReadableState(options,this);this.readable=true;Stream.call(this)}Readable.prototype.push=function(chunk,encoding){var state=this._readableState;if(typeof chunk==="string"&&!state.objectMode){encoding=encoding||state.defaultEncoding;if(encoding!==state.encoding){chunk=new Buffer(chunk,encoding);encoding=""}}return readableAddChunk(this,state,chunk,encoding,false)};Readable.prototype.unshift=function(chunk){var state=this._readableState;return readableAddChunk(this,state,chunk,"",true)};function readableAddChunk(stream,state,chunk,encoding,addToFront){var er=chunkInvalid(state,chunk);if(er){stream.emit("error",er)}else if(chunk===null||chunk===undefined){state.reading=false;if(!state.ended)onEofChunk(stream,state)}else if(state.objectMode||chunk&&chunk.length>0){if(state.ended&&!addToFront){var e=new Error("stream.push() after EOF");stream.emit("error",e)}else if(state.endEmitted&&addToFront){var e=new Error("stream.unshift() after end event");stream.emit("error",e)}else{if(state.decoder&&!addToFront&&!encoding)chunk=state.decoder.write(chunk);state.length+=state.objectMode?1:chunk.length;if(addToFront){state.buffer.unshift(chunk)}else{state.reading=false;state.buffer.push(chunk)}if(state.needReadable)emitReadable(stream);maybeReadMore(stream,state)}}else if(!addToFront){state.reading=false}return needMoreData(state)}function needMoreData(state){return!state.ended&&(state.needReadable||state.length<state.highWaterMark||state.length===0)}Readable.prototype.setEncoding=function(enc){if(!StringDecoder)StringDecoder=require("string_decoder/").StringDecoder;this._readableState.decoder=new StringDecoder(enc);this._readableState.encoding=enc};var MAX_HWM=8388608;function roundUpToNextPowerOf2(n){if(n>=MAX_HWM){n=MAX_HWM}else{n--;for(var p=1;p<32;p<<=1)n|=n>>p;n++}return n}function howMuchToRead(n,state){if(state.length===0&&state.ended)return 0;if(state.objectMode)return n===0?0:1;if(n===null||isNaN(n)){if(state.flowing&&state.buffer.length)return state.buffer[0].length;else return state.length}if(n<=0)return 0;if(n>state.highWaterMark)state.highWaterMark=roundUpToNextPowerOf2(n);if(n>state.length){if(!state.ended){state.needReadable=true;return 0}else return state.length}return n}Readable.prototype.read=function(n){var state=this._readableState;state.calledRead=true;var nOrig=n;var ret;if(typeof n!=="number"||n>0)state.emittedReadable=false;if(n===0&&state.needReadable&&(state.length>=state.highWaterMark||state.ended)){emitReadable(this);return null}n=howMuchToRead(n,state);if(n===0&&state.ended){ret=null;if(state.length>0&&state.decoder){ret=fromList(n,state);state.length-=ret.length}if(state.length===0)endReadable(this);return ret}var doRead=state.needReadable;if(state.length-n<=state.highWaterMark)doRead=true;if(state.ended||state.reading)doRead=false;if(doRead){state.reading=true;state.sync=true;if(state.length===0)state.needReadable=true;this._read(state.highWaterMark);state.sync=false}if(doRead&&!state.reading)n=howMuchToRead(nOrig,state);if(n>0)ret=fromList(n,state);else ret=null;if(ret===null){state.needReadable=true;n=0}state.length-=n;if(state.length===0&&!state.ended)state.needReadable=true;if(state.ended&&!state.endEmitted&&state.length===0)endReadable(this);return ret};function chunkInvalid(state,chunk){var er=null;if(!Buffer.isBuffer(chunk)&&"string"!==typeof chunk&&chunk!==null&&chunk!==undefined&&!state.objectMode){er=new TypeError("Invalid non-string/buffer chunk")}return er}function onEofChunk(stream,state){if(state.decoder&&!state.ended){var chunk=state.decoder.end();if(chunk&&chunk.length){state.buffer.push(chunk);state.length+=state.objectMode?1:chunk.length}}state.ended=true;if(state.length>0)emitReadable(stream);else endReadable(stream)}function emitReadable(stream){var state=stream._readableState;state.needReadable=false;if(state.emittedReadable)return;state.emittedReadable=true;if(state.sync)process.nextTick(function(){emitReadable_(stream)});else emitReadable_(stream)}function emitReadable_(stream){stream.emit("readable")}function maybeReadMore(stream,state){if(!state.readingMore){state.readingMore=true;process.nextTick(function(){maybeReadMore_(stream,state)})}}function maybeReadMore_(stream,state){var len=state.length;while(!state.reading&&!state.flowing&&!state.ended&&state.length<state.highWaterMark){stream.read(0);if(len===state.length)break;else len=state.length}state.readingMore=false}Readable.prototype._read=function(n){this.emit("error",new Error("not implemented"))};Readable.prototype.pipe=function(dest,pipeOpts){var src=this;var state=this._readableState;switch(state.pipesCount){case 0:state.pipes=dest;break;case 1:state.pipes=[state.pipes,dest];break;default:state.pipes.push(dest);break}state.pipesCount+=1;var doEnd=(!pipeOpts||pipeOpts.end!==false)&&dest!==process.stdout&&dest!==process.stderr;var endFn=doEnd?onend:cleanup;if(state.endEmitted)process.nextTick(endFn);else src.once("end",endFn);dest.on("unpipe",onunpipe);function onunpipe(readable){if(readable!==src)return;cleanup()}function onend(){dest.end()}var ondrain=pipeOnDrain(src);dest.on("drain",ondrain);function cleanup(){dest.removeListener("close",onclose);dest.removeListener("finish",onfinish);dest.removeListener("drain",ondrain);dest.removeListener("error",onerror);dest.removeListener("unpipe",onunpipe);src.removeListener("end",onend);src.removeListener("end",cleanup);if(!dest._writableState||dest._writableState.needDrain)ondrain()}function onerror(er){unpipe();dest.removeListener("error",onerror);if(EE.listenerCount(dest,"error")===0)dest.emit("error",er)}if(!dest._events||!dest._events.error)dest.on("error",onerror);else if(isArray(dest._events.error))dest._events.error.unshift(onerror);else dest._events.error=[onerror,dest._events.error];function onclose(){dest.removeListener("finish",onfinish);unpipe()}dest.once("close",onclose);function onfinish(){dest.removeListener("close",onclose);unpipe()}dest.once("finish",onfinish);function unpipe(){src.unpipe(dest)}dest.emit("pipe",src);if(!state.flowing){this.on("readable",pipeOnReadable);state.flowing=true;process.nextTick(function(){flow(src)})}return dest};function pipeOnDrain(src){return function(){var dest=this;var state=src._readableState;state.awaitDrain--;if(state.awaitDrain===0)flow(src)}}function flow(src){var state=src._readableState;var chunk;state.awaitDrain=0;function write(dest,i,list){var written=dest.write(chunk);if(false===written){state.awaitDrain++}}while(state.pipesCount&&null!==(chunk=src.read())){if(state.pipesCount===1)write(state.pipes,0,null);else forEach(state.pipes,write);src.emit("data",chunk);if(state.awaitDrain>0)return}if(state.pipesCount===0){state.flowing=false;if(EE.listenerCount(src,"data")>0)emitDataEvents(src);return}state.ranOut=true}function pipeOnReadable(){if(this._readableState.ranOut){this._readableState.ranOut=false;flow(this)}}Readable.prototype.unpipe=function(dest){var state=this._readableState;if(state.pipesCount===0)return this;if(state.pipesCount===1){if(dest&&dest!==state.pipes)return this;if(!dest)dest=state.pipes;state.pipes=null;state.pipesCount=0;this.removeListener("readable",pipeOnReadable);state.flowing=false;if(dest)dest.emit("unpipe",this);return this}if(!dest){var dests=state.pipes;var len=state.pipesCount;state.pipes=null;state.pipesCount=0;this.removeListener("readable",pipeOnReadable);state.flowing=false;for(var i=0;i<len;i++)dests[i].emit("unpipe",this);return this}var i=indexOf(state.pipes,dest);if(i===-1)return this;state.pipes.splice(i,1);state.pipesCount-=1;if(state.pipesCount===1)state.pipes=state.pipes[0];dest.emit("unpipe",this);return this};Readable.prototype.on=function(ev,fn){var res=Stream.prototype.on.call(this,ev,fn);if(ev==="data"&&!this._readableState.flowing)emitDataEvents(this);if(ev==="readable"&&this.readable){var state=this._readableState;if(!state.readableListening){state.readableListening=true;state.emittedReadable=false;state.needReadable=true;if(!state.reading){this.read(0)}else if(state.length){emitReadable(this,state)}}}return res};Readable.prototype.addListener=Readable.prototype.on;Readable.prototype.resume=function(){emitDataEvents(this);this.read(0);this.emit("resume")};Readable.prototype.pause=function(){emitDataEvents(this,true);this.emit("pause")};function emitDataEvents(stream,startPaused){var state=stream._readableState;if(state.flowing){throw new Error("Cannot switch to old mode now.")}var paused=startPaused||false;var readable=false;stream.readable=true;stream.pipe=Stream.prototype.pipe;stream.on=stream.addListener=Stream.prototype.on;stream.on("readable",function(){readable=true;var c;while(!paused&&null!==(c=stream.read()))stream.emit("data",c);if(c===null){readable=false;stream._readableState.needReadable=true}});stream.pause=function(){paused=true;this.emit("pause")};stream.resume=function(){paused=false;if(readable)process.nextTick(function(){stream.emit("readable")});else this.read(0);this.emit("resume")};stream.emit("readable")}Readable.prototype.wrap=function(stream){var state=this._readableState;var paused=false;var self=this;stream.on("end",function(){if(state.decoder&&!state.ended){var chunk=state.decoder.end();if(chunk&&chunk.length)self.push(chunk)}self.push(null)});stream.on("data",function(chunk){if(state.decoder)chunk=state.decoder.write(chunk);if(state.objectMode&&(chunk===null||chunk===undefined))return;else if(!state.objectMode&&(!chunk||!chunk.length))return;var ret=self.push(chunk);if(!ret){paused=true;stream.pause()}});for(var i in stream){if(typeof stream[i]==="function"&&typeof this[i]==="undefined"){this[i]=function(method){return function(){return stream[method].apply(stream,arguments)}}(i)}}var events=["error","close","destroy","pause","resume"];forEach(events,function(ev){stream.on(ev,self.emit.bind(self,ev))});self._read=function(n){if(paused){paused=false;stream.resume()}};return self};Readable._fromList=fromList;function fromList(n,state){var list=state.buffer;var length=state.length;var stringMode=!!state.decoder;var objectMode=!!state.objectMode;var ret;if(list.length===0)return null;if(length===0)ret=null;else if(objectMode)ret=list.shift();else if(!n||n>=length){if(stringMode)ret=list.join("");else ret=Buffer.concat(list,length);list.length=0}else{if(n<list[0].length){var buf=list[0];ret=buf.slice(0,n);list[0]=buf.slice(n)}else if(n===list[0].length){ret=list.shift()}else{if(stringMode)ret="";else ret=new Buffer(n);var c=0;for(var i=0,l=list.length;i<l&&c<n;i++){var buf=list[0];var cpy=Math.min(n-c,buf.length);if(stringMode)ret+=buf.slice(0,cpy);else buf.copy(ret,c,0,cpy);if(cpy<buf.length)list[0]=buf.slice(cpy);else list.shift();c+=cpy}}}return ret}function endReadable(stream){var state=stream._readableState;if(state.length>0)throw new Error("endReadable called on non-empty stream");if(!state.endEmitted&&state.calledRead){state.ended=true;process.nextTick(function(){if(!state.endEmitted&&state.length===0){state.endEmitted=true;stream.readable=false;stream.emit("end")}})}}function forEach(xs,f){for(var i=0,l=xs.length;i<l;i++){f(xs[i],i)}}function indexOf(xs,x){for(var i=0,l=xs.length;i<l;i++){if(xs[i]===x)return i}return-1}}).call(this,require("_process"))},{_process:130,buffer:122,"core-util-is":137,events:126,inherits:127,isarray:128,stream:142,"string_decoder/":143}],135:[function(require,module,exports){module.exports=Transform;var Duplex=require("./_stream_duplex");var util=require("core-util-is");util.inherits=require("inherits");util.inherits(Transform,Duplex);function TransformState(options,stream){this.afterTransform=function(er,data){return afterTransform(stream,er,data)};this.needTransform=false;this.transforming=false;this.writecb=null;this.writechunk=null}function afterTransform(stream,er,data){var ts=stream._transformState;ts.transforming=false;var cb=ts.writecb;if(!cb)return stream.emit("error",new Error("no writecb in Transform class"));ts.writechunk=null;ts.writecb=null;if(data!==null&&data!==undefined)stream.push(data);if(cb)cb(er);var rs=stream._readableState;rs.reading=false;if(rs.needReadable||rs.length<rs.highWaterMark){stream._read(rs.highWaterMark)}}function Transform(options){if(!(this instanceof Transform))return new Transform(options);Duplex.call(this,options);var ts=this._transformState=new TransformState(options,this);var stream=this;this._readableState.needReadable=true;this._readableState.sync=false;this.once("finish",function(){if("function"===typeof this._flush)this._flush(function(er){done(stream,er)});else done(stream)})}Transform.prototype.push=function(chunk,encoding){this._transformState.needTransform=false;
return Duplex.prototype.push.call(this,chunk,encoding)};Transform.prototype._transform=function(chunk,encoding,cb){throw new Error("not implemented")};Transform.prototype._write=function(chunk,encoding,cb){var ts=this._transformState;ts.writecb=cb;ts.writechunk=chunk;ts.writeencoding=encoding;if(!ts.transforming){var rs=this._readableState;if(ts.needTransform||rs.needReadable||rs.length<rs.highWaterMark)this._read(rs.highWaterMark)}};Transform.prototype._read=function(n){var ts=this._transformState;if(ts.writechunk!==null&&ts.writecb&&!ts.transforming){ts.transforming=true;this._transform(ts.writechunk,ts.writeencoding,ts.afterTransform)}else{ts.needTransform=true}};function done(stream,er){if(er)return stream.emit("error",er);var ws=stream._writableState;var rs=stream._readableState;var ts=stream._transformState;if(ws.length)throw new Error("calling transform done when ws.length != 0");if(ts.transforming)throw new Error("calling transform done when still transforming");return stream.push(null)}},{"./_stream_duplex":132,"core-util-is":137,inherits:127}],136:[function(require,module,exports){(function(process){module.exports=Writable;var Buffer=require("buffer").Buffer;Writable.WritableState=WritableState;var util=require("core-util-is");util.inherits=require("inherits");var Stream=require("stream");util.inherits(Writable,Stream);function WriteReq(chunk,encoding,cb){this.chunk=chunk;this.encoding=encoding;this.callback=cb}function WritableState(options,stream){options=options||{};var hwm=options.highWaterMark;this.highWaterMark=hwm||hwm===0?hwm:16*1024;this.objectMode=!!options.objectMode;this.highWaterMark=~~this.highWaterMark;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;var noDecode=options.decodeStrings===false;this.decodeStrings=!noDecode;this.defaultEncoding=options.defaultEncoding||"utf8";this.length=0;this.writing=false;this.sync=true;this.bufferProcessing=false;this.onwrite=function(er){onwrite(stream,er)};this.writecb=null;this.writelen=0;this.buffer=[];this.errorEmitted=false}function Writable(options){var Duplex=require("./_stream_duplex");if(!(this instanceof Writable)&&!(this instanceof Duplex))return new Writable(options);this._writableState=new WritableState(options,this);this.writable=true;Stream.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))};function writeAfterEnd(stream,state,cb){var er=new Error("write after end");stream.emit("error",er);process.nextTick(function(){cb(er)})}function validChunk(stream,state,chunk,cb){var valid=true;if(!Buffer.isBuffer(chunk)&&"string"!==typeof chunk&&chunk!==null&&chunk!==undefined&&!state.objectMode){var er=new TypeError("Invalid non-string/buffer chunk");stream.emit("error",er);process.nextTick(function(){cb(er)});valid=false}return valid}Writable.prototype.write=function(chunk,encoding,cb){var state=this._writableState;var ret=false;if(typeof encoding==="function"){cb=encoding;encoding=null}if(Buffer.isBuffer(chunk))encoding="buffer";else if(!encoding)encoding=state.defaultEncoding;if(typeof cb!=="function")cb=function(){};if(state.ended)writeAfterEnd(this,state,cb);else if(validChunk(this,state,chunk,cb))ret=writeOrBuffer(this,state,chunk,encoding,cb);return ret};function decodeChunk(state,chunk,encoding){if(!state.objectMode&&state.decodeStrings!==false&&typeof chunk==="string"){chunk=new Buffer(chunk,encoding)}return chunk}function writeOrBuffer(stream,state,chunk,encoding,cb){chunk=decodeChunk(state,chunk,encoding);if(Buffer.isBuffer(chunk))encoding="buffer";var len=state.objectMode?1:chunk.length;state.length+=len;var ret=state.length<state.highWaterMark;if(!ret)state.needDrain=true;if(state.writing)state.buffer.push(new WriteReq(chunk,encoding,cb));else doWrite(stream,state,len,chunk,encoding,cb);return ret}function doWrite(stream,state,len,chunk,encoding,cb){state.writelen=len;state.writecb=cb;state.writing=true;state.sync=true;stream._write(chunk,encoding,state.onwrite);state.sync=false}function onwriteError(stream,state,sync,er,cb){if(sync)process.nextTick(function(){cb(er)});else cb(er);stream._writableState.errorEmitted=true;stream.emit("error",er)}function onwriteStateUpdate(state){state.writing=false;state.writecb=null;state.length-=state.writelen;state.writelen=0}function onwrite(stream,er){var state=stream._writableState;var sync=state.sync;var cb=state.writecb;onwriteStateUpdate(state);if(er)onwriteError(stream,state,sync,er,cb);else{var finished=needFinish(stream,state);if(!finished&&!state.bufferProcessing&&state.buffer.length)clearBuffer(stream,state);if(sync){process.nextTick(function(){afterWrite(stream,state,finished,cb)})}else{afterWrite(stream,state,finished,cb)}}}function afterWrite(stream,state,finished,cb){if(!finished)onwriteDrain(stream,state);cb();if(finished)finishMaybe(stream,state)}function onwriteDrain(stream,state){if(state.length===0&&state.needDrain){state.needDrain=false;stream.emit("drain")}}function clearBuffer(stream,state){state.bufferProcessing=true;for(var c=0;c<state.buffer.length;c++){var entry=state.buffer[c];var chunk=entry.chunk;var encoding=entry.encoding;var cb=entry.callback;var len=state.objectMode?1:chunk.length;doWrite(stream,state,len,chunk,encoding,cb);if(state.writing){c++;break}}state.bufferProcessing=false;if(c<state.buffer.length)state.buffer=state.buffer.slice(c);else state.buffer.length=0}Writable.prototype._write=function(chunk,encoding,cb){cb(new Error("not implemented"))};Writable.prototype.end=function(chunk,encoding,cb){var state=this._writableState;if(typeof chunk==="function"){cb=chunk;chunk=null;encoding=null}else if(typeof encoding==="function"){cb=encoding;encoding=null}if(typeof chunk!=="undefined"&&chunk!==null)this.write(chunk,encoding);if(!state.ending&&!state.finished)endWritable(this,state,cb)};function needFinish(stream,state){return state.ending&&state.length===0&&!state.finished&&!state.writing}function finishMaybe(stream,state){var need=needFinish(stream,state);if(need){state.finished=true;stream.emit("finish")}return need}function endWritable(stream,state,cb){state.ending=true;finishMaybe(stream,state);if(cb){if(state.finished)process.nextTick(cb);else stream.once("finish",cb)}state.ended=true}}).call(this,require("_process"))},{"./_stream_duplex":132,_process:130,buffer:122,"core-util-is":137,inherits:127,stream:142}],137:[function(require,module,exports){(function(Buffer){function isArray(ar){return Array.isArray(ar)}exports.isArray=isArray;function isBoolean(arg){return typeof arg==="boolean"}exports.isBoolean=isBoolean;function isNull(arg){return arg===null}exports.isNull=isNull;function isNullOrUndefined(arg){return arg==null}exports.isNullOrUndefined=isNullOrUndefined;function isNumber(arg){return typeof arg==="number"}exports.isNumber=isNumber;function isString(arg){return typeof arg==="string"}exports.isString=isString;function isSymbol(arg){return typeof arg==="symbol"}exports.isSymbol=isSymbol;function isUndefined(arg){return arg===void 0}exports.isUndefined=isUndefined;function isRegExp(re){return isObject(re)&&objectToString(re)==="[object RegExp]"}exports.isRegExp=isRegExp;function isObject(arg){return typeof arg==="object"&&arg!==null}exports.isObject=isObject;function isDate(d){return isObject(d)&&objectToString(d)==="[object Date]"}exports.isDate=isDate;function isError(e){return isObject(e)&&(objectToString(e)==="[object Error]"||e instanceof Error)}exports.isError=isError;function isFunction(arg){return typeof arg==="function"}exports.isFunction=isFunction;function isPrimitive(arg){return arg===null||typeof arg==="boolean"||typeof arg==="number"||typeof arg==="string"||typeof arg==="symbol"||typeof arg==="undefined"}exports.isPrimitive=isPrimitive;function isBuffer(arg){return Buffer.isBuffer(arg)}exports.isBuffer=isBuffer;function objectToString(o){return Object.prototype.toString.call(o)}}).call(this,require("buffer").Buffer)},{buffer:122}],138:[function(require,module,exports){module.exports=require("./lib/_stream_passthrough.js")},{"./lib/_stream_passthrough.js":133}],139:[function(require,module,exports){var Stream=require("stream");exports=module.exports=require("./lib/_stream_readable.js");exports.Stream=Stream;exports.Readable=exports;exports.Writable=require("./lib/_stream_writable.js");exports.Duplex=require("./lib/_stream_duplex.js");exports.Transform=require("./lib/_stream_transform.js");exports.PassThrough=require("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":132,"./lib/_stream_passthrough.js":133,"./lib/_stream_readable.js":134,"./lib/_stream_transform.js":135,"./lib/_stream_writable.js":136,stream:142}],140:[function(require,module,exports){module.exports=require("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":135}],141:[function(require,module,exports){module.exports=require("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":136}],142:[function(require,module,exports){module.exports=Stream;var EE=require("events").EventEmitter;var inherits=require("inherits");inherits(Stream,EE);Stream.Readable=require("readable-stream/readable.js");Stream.Writable=require("readable-stream/writable.js");Stream.Duplex=require("readable-stream/duplex.js");Stream.Transform=require("readable-stream/transform.js");Stream.PassThrough=require("readable-stream/passthrough.js");Stream.Stream=Stream;function Stream(){EE.call(this)}Stream.prototype.pipe=function(dest,options){var source=this;function ondata(chunk){if(dest.writable){if(false===dest.write(chunk)&&source.pause){source.pause()}}}source.on("data",ondata);function ondrain(){if(source.readable&&source.resume){source.resume()}}dest.on("drain",ondrain);if(!dest._isStdio&&(!options||options.end!==false)){source.on("end",onend);source.on("close",onclose)}var didOnEnd=false;function onend(){if(didOnEnd)return;didOnEnd=true;dest.end()}function onclose(){if(didOnEnd)return;didOnEnd=true;if(typeof dest.destroy==="function")dest.destroy()}function onerror(er){cleanup();if(EE.listenerCount(this,"error")===0){throw er}}source.on("error",onerror);dest.on("error",onerror);function cleanup(){source.removeListener("data",ondata);dest.removeListener("drain",ondrain);source.removeListener("end",onend);source.removeListener("close",onclose);source.removeListener("error",onerror);dest.removeListener("error",onerror);source.removeListener("end",cleanup);source.removeListener("close",cleanup);dest.removeListener("close",cleanup)}source.on("end",cleanup);source.on("close",cleanup);dest.on("close",cleanup);dest.emit("pipe",source);return dest}},{events:126,inherits:127,"readable-stream/duplex.js":131,"readable-stream/passthrough.js":138,"readable-stream/readable.js":139,"readable-stream/transform.js":140,"readable-stream/writable.js":141}],143:[function(require,module,exports){var Buffer=require("buffer").Buffer;var isBufferEncoding=Buffer.isEncoding||function(encoding){switch(encoding&&encoding.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function assertEncoding(encoding){if(encoding&&!isBufferEncoding(encoding)){throw new Error("Unknown encoding: "+encoding)}}var StringDecoder=exports.StringDecoder=function(encoding){this.encoding=(encoding||"utf8").toLowerCase().replace(/[-_]/,"");assertEncoding(encoding);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2;this.detectIncompleteChar=utf16DetectIncompleteChar;break;case"base64":this.surrogateSize=3;this.detectIncompleteChar=base64DetectIncompleteChar;break;default:this.write=passThroughWrite;return}this.charBuffer=new Buffer(6);this.charReceived=0;this.charLength=0};StringDecoder.prototype.write=function(buffer){var charStr="";while(this.charLength){var available=buffer.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:buffer.length;buffer.copy(this.charBuffer,this.charReceived,0,available);this.charReceived+=available;if(this.charReceived<this.charLength){return""}buffer=buffer.slice(available,buffer.length);charStr=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var charCode=charStr.charCodeAt(charStr.length-1);if(charCode>=55296&&charCode<=56319){this.charLength+=this.surrogateSize;charStr="";continue}this.charReceived=this.charLength=0;if(buffer.length===0){return charStr}break}this.detectIncompleteChar(buffer);var end=buffer.length;if(this.charLength){buffer.copy(this.charBuffer,0,buffer.length-this.charReceived,end);end-=this.charReceived}charStr+=buffer.toString(this.encoding,0,end);var end=charStr.length-1;var charCode=charStr.charCodeAt(end);if(charCode>=55296&&charCode<=56319){var size=this.surrogateSize;this.charLength+=size;this.charReceived+=size;this.charBuffer.copy(this.charBuffer,size,0,size);buffer.copy(this.charBuffer,0,0,size);return charStr.substring(0,end)}return charStr};StringDecoder.prototype.detectIncompleteChar=function(buffer){var i=buffer.length>=3?3:buffer.length;for(;i>0;i--){var c=buffer[buffer.length-i];if(i==1&&c>>5==6){this.charLength=2;break}if(i<=2&&c>>4==14){this.charLength=3;break}if(i<=3&&c>>3==30){this.charLength=4;break}}this.charReceived=i};StringDecoder.prototype.end=function(buffer){var res="";if(buffer&&buffer.length)res=this.write(buffer);if(this.charReceived){var cr=this.charReceived;var buf=this.charBuffer;var enc=this.encoding;res+=buf.slice(0,cr).toString(enc)}return res};function passThroughWrite(buffer){return buffer.toString(this.encoding)}function utf16DetectIncompleteChar(buffer){this.charReceived=buffer.length%2;this.charLength=this.charReceived?2:0}function base64DetectIncompleteChar(buffer){this.charReceived=buffer.length%3;this.charLength=this.charReceived?3:0}},{buffer:122}],144:[function(require,module,exports){module.exports=function isBuffer(arg){return arg&&typeof arg==="object"&&typeof arg.copy==="function"&&typeof arg.fill==="function"&&typeof arg.readUInt8==="function"}},{}],145:[function(require,module,exports){(function(process,global){var formatRegExp=/%[sdj%]/g;exports.format=function(f){if(!isString(f)){var objects=[];for(var i=0;i<arguments.length;i++){objects.push(inspect(arguments[i]))}return objects.join(" ")}var i=1;var args=arguments;var len=args.length;var str=String(f).replace(formatRegExp,function(x){if(x==="%%")return"%";if(i>=len)return x;switch(x){case"%s":return String(args[i++]);case"%d":return Number(args[i++]);case"%j":try{return JSON.stringify(args[i++])}catch(_){return"[Circular]"}default:return x}});for(var x=args[i];i<len;x=args[++i]){if(isNull(x)||!isObject(x)){str+=" "+x}else{str+=" "+inspect(x)}}return str};exports.deprecate=function(fn,msg){if(isUndefined(global.process)){return function(){return exports.deprecate(fn,msg).apply(this,arguments)}}if(process.noDeprecation===true){return fn}var warned=false;function deprecated(){if(!warned){if(process.throwDeprecation){throw new Error(msg)}else if(process.traceDeprecation){console.trace(msg)}else{console.error(msg)}warned=true}return fn.apply(this,arguments)}return deprecated};var debugs={};var debugEnviron;exports.debuglog=function(set){if(isUndefined(debugEnviron))debugEnviron=process.env.NODE_DEBUG||"";set=set.toUpperCase();if(!debugs[set]){if(new RegExp("\\b"+set+"\\b","i").test(debugEnviron)){var pid=process.pid;debugs[set]=function(){var msg=exports.format.apply(exports,arguments);console.error("%s %d: %s",set,pid,msg)}}else{debugs[set]=function(){}}}return debugs[set]};function inspect(obj,opts){var ctx={seen:[],stylize:stylizeNoColor};if(arguments.length>=3)ctx.depth=arguments[2];if(arguments.length>=4)ctx.colors=arguments[3];if(isBoolean(opts)){ctx.showHidden=opts}else if(opts){exports._extend(ctx,opts)}if(isUndefined(ctx.showHidden))ctx.showHidden=false;if(isUndefined(ctx.depth))ctx.depth=2;if(isUndefined(ctx.colors))ctx.colors=false;if(isUndefined(ctx.customInspect))ctx.customInspect=true;if(ctx.colors)ctx.stylize=stylizeWithColor;return formatValue(ctx,obj,ctx.depth)}exports.inspect=inspect;inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};inspect.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"};function stylizeWithColor(str,styleType){var style=inspect.styles[styleType];if(style){return"["+inspect.colors[style][0]+"m"+str+"["+inspect.colors[style][1]+"m"}else{return str}}function stylizeNoColor(str,styleType){return str}function arrayToHash(array){var hash={};array.forEach(function(val,idx){hash[val]=true});return hash}function formatValue(ctx,value,recurseTimes){if(ctx.customInspect&&value&&isFunction(value.inspect)&&value.inspect!==exports.inspect&&!(value.constructor&&value.constructor.prototype===value)){var ret=value.inspect(recurseTimes,ctx);if(!isString(ret)){ret=formatValue(ctx,ret,recurseTimes)}return ret}var primitive=formatPrimitive(ctx,value);if(primitive){return primitive}var keys=Object.keys(value);var visibleKeys=arrayToHash(keys);if(ctx.showHidden){keys=Object.getOwnPropertyNames(value)}if(isError(value)&&(keys.indexOf("message")>=0||keys.indexOf("description")>=0)){return formatError(value)}if(keys.length===0){if(isFunction(value)){var name=value.name?": "+value.name:"";return ctx.stylize("[Function"+name+"]","special")}if(isRegExp(value)){return ctx.stylize(RegExp.prototype.toString.call(value),"regexp")}if(isDate(value)){return ctx.stylize(Date.prototype.toString.call(value),"date")}if(isError(value)){return formatError(value)}}var base="",array=false,braces=["{","}"];if(isArray(value)){array=true;braces=["[","]"]}if(isFunction(value)){var n=value.name?": "+value.name:"";base=" [Function"+n+"]"}if(isRegExp(value)){base=" "+RegExp.prototype.toString.call(value)}if(isDate(value)){base=" "+Date.prototype.toUTCString.call(value)}if(isError(value)){base=" "+formatError(value)}if(keys.length===0&&(!array||value.length==0)){return braces[0]+base+braces[1]}if(recurseTimes<0){if(isRegExp(value)){return ctx.stylize(RegExp.prototype.toString.call(value),"regexp")}else{return ctx.stylize("[Object]","special")}}ctx.seen.push(value);var output;if(array){output=formatArray(ctx,value,recurseTimes,visibleKeys,keys)}else{output=keys.map(function(key){return formatProperty(ctx,value,recurseTimes,visibleKeys,key,array)})}ctx.seen.pop();return reduceToSingleString(output,base,braces)}function formatPrimitive(ctx,value){if(isUndefined(value))return ctx.stylize("undefined","undefined");if(isString(value)){var simple="'"+JSON.stringify(value).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ctx.stylize(simple,"string")}if(isNumber(value))return ctx.stylize(""+value,"number");if(isBoolean(value))return ctx.stylize(""+value,"boolean");if(isNull(value))return ctx.stylize("null","null")}function formatError(value){return"["+Error.prototype.toString.call(value)+"]"}function formatArray(ctx,value,recurseTimes,visibleKeys,keys){var output=[];for(var i=0,l=value.length;i<l;++i){if(hasOwnProperty(value,String(i))){output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,String(i),true))}else{output.push("")}}keys.forEach(function(key){if(!key.match(/^\d+$/)){output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,key,true))}});return output}function formatProperty(ctx,value,recurseTimes,visibleKeys,key,array){var name,str,desc;desc=Object.getOwnPropertyDescriptor(value,key)||{value:value[key]};if(desc.get){if(desc.set){str=ctx.stylize("[Getter/Setter]","special")}else{str=ctx.stylize("[Getter]","special")}}else{if(desc.set){str=ctx.stylize("[Setter]","special")}}if(!hasOwnProperty(visibleKeys,key)){name="["+key+"]"}if(!str){if(ctx.seen.indexOf(desc.value)<0){if(isNull(recurseTimes)){str=formatValue(ctx,desc.value,null)}else{str=formatValue(ctx,desc.value,recurseTimes-1)}if(str.indexOf("\n")>-1){if(array){str=str.split("\n").map(function(line){return" "+line}).join("\n").substr(2)}else{str="\n"+str.split("\n").map(function(line){return" "+line}).join("\n")}}}else{str=ctx.stylize("[Circular]","special")}}if(isUndefined(name)){if(array&&key.match(/^\d+$/)){return str}name=JSON.stringify(""+key);if(name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)){name=name.substr(1,name.length-2);name=ctx.stylize(name,"name")}else{name=name.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'");name=ctx.stylize(name,"string")}}return name+": "+str}function reduceToSingleString(output,base,braces){var numLinesEst=0;var length=output.reduce(function(prev,cur){numLinesEst++;if(cur.indexOf("\n")>=0)numLinesEst++;return prev+cur.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(length>60){return braces[0]+(base===""?"":base+"\n ")+" "+output.join(",\n ")+" "+braces[1]}return braces[0]+base+" "+output.join(", ")+" "+braces[1]}function isArray(ar){return Array.isArray(ar)}exports.isArray=isArray;function isBoolean(arg){return typeof arg==="boolean"}exports.isBoolean=isBoolean;function isNull(arg){return arg===null}exports.isNull=isNull;function isNullOrUndefined(arg){return arg==null}exports.isNullOrUndefined=isNullOrUndefined;function isNumber(arg){return typeof arg==="number"}exports.isNumber=isNumber;function isString(arg){return typeof arg==="string"}exports.isString=isString;function isSymbol(arg){return typeof arg==="symbol"}exports.isSymbol=isSymbol;function isUndefined(arg){return arg===void 0}exports.isUndefined=isUndefined;function isRegExp(re){return isObject(re)&&objectToString(re)==="[object RegExp]"}exports.isRegExp=isRegExp;function isObject(arg){return typeof arg==="object"&&arg!==null}exports.isObject=isObject;function isDate(d){return isObject(d)&&objectToString(d)==="[object Date]"}exports.isDate=isDate;function isError(e){return isObject(e)&&(objectToString(e)==="[object Error]"||e instanceof Error)}exports.isError=isError;function isFunction(arg){return typeof arg==="function"}exports.isFunction=isFunction;function isPrimitive(arg){return arg===null||typeof arg==="boolean"||typeof arg==="number"||typeof arg==="string"||typeof arg==="symbol"||typeof arg==="undefined"}exports.isPrimitive=isPrimitive;exports.isBuffer=require("./support/isBuffer");function objectToString(o){return Object.prototype.toString.call(o)}function pad(n){return n<10?"0"+n.toString(10):n.toString(10)}var months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function timestamp(){var d=new Date;var time=[pad(d.getHours()),pad(d.getMinutes()),pad(d.getSeconds())].join(":");return[d.getDate(),months[d.getMonth()],time].join(" ")}exports.log=function(){console.log("%s - %s",timestamp(),exports.format.apply(exports,arguments))};exports.inherits=require("inherits");exports._extend=function(origin,add){if(!add||!isObject(add))return origin;var keys=Object.keys(add);var i=keys.length;while(i--){origin[keys[i]]=add[keys[i]]}return origin};function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./support/isBuffer":144,_process:130,inherits:127}],146:[function(require,module,exports){"use strict";var escapeStringRegexp=require("escape-string-regexp");var ansiStyles=require("ansi-styles");var stripAnsi=require("strip-ansi");var hasAnsi=require("has-ansi");var supportsColor=require("supports-color");var defineProps=Object.defineProperties;var chalk=module.exports;function build(_styles){var builder=function builder(){return applyStyle.apply(builder,arguments)};builder._styles=_styles;builder.__proto__=proto;return builder}var styles=function(){var ret={};ansiStyles.grey=ansiStyles.gray;Object.keys(ansiStyles).forEach(function(key){ansiStyles[key].closeRe=new RegExp(escapeStringRegexp(ansiStyles[key].close),"g");ret[key]={get:function(){return build(this._styles.concat(key))}}});return ret}();var proto=defineProps(function chalk(){},styles);function applyStyle(){var args=arguments;var argsLen=args.length;var str=argsLen!==0&&String(arguments[0]);if(argsLen>1){for(var a=1;a<argsLen;a++){str+=" "+args[a]}}if(!chalk.enabled||!str){return str}var nestedStyles=this._styles;for(var i=0;i<nestedStyles.length;i++){var code=ansiStyles[nestedStyles[i]];str=code.open+str.replace(code.closeRe,code.open)+code.close}return str}function init(){var ret={};Object.keys(styles).forEach(function(name){ret[name]={get:function(){return build([name])}}});return ret}defineProps(chalk,init());chalk.styles=ansiStyles;chalk.hasColor=hasAnsi;chalk.stripColor=stripAnsi;chalk.supportsColor=supportsColor;if(chalk.enabled===undefined){chalk.enabled=chalk.supportsColor}},{"ansi-styles":147,"escape-string-regexp":148,"has-ansi":149,"strip-ansi":151,"supports-color":153}],147:[function(require,module,exports){"use strict";var styles=module.exports;var codes={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49]};Object.keys(codes).forEach(function(key){var val=codes[key];var style=styles[key]={};style.open="["+val[0]+"m";style.close="["+val[1]+"m"})},{}],148:[function(require,module,exports){"use strict";var matchOperatorsRe=/[|\\{}()[\]^$+*?.]/g;module.exports=function(str){if(typeof str!=="string"){throw new TypeError("Expected a string")}return str.replace(matchOperatorsRe,"\\$&")}},{}],149:[function(require,module,exports){"use strict";var ansiRegex=require("ansi-regex");var re=new RegExp(ansiRegex().source);module.exports=re.test.bind(re)},{"ansi-regex":150}],150:[function(require,module,exports){"use strict";module.exports=function(){return/\u001b\[(?:[0-9]{1,3}(?:;[0-9]{1,3})*)?[m|K]/g}},{}],151:[function(require,module,exports){"use strict";var ansiRegex=require("ansi-regex")();module.exports=function(str){return typeof str==="string"?str.replace(ansiRegex,""):str}},{"ansi-regex":152}],152:[function(require,module,exports){arguments[4][150][0].apply(exports,arguments)},{dup:150}],153:[function(require,module,exports){(function(process){"use strict";module.exports=function(){if(process.argv.indexOf("--no-color")!==-1){return false}if(process.argv.indexOf("--color")!==-1){return true}if(process.stdout&&!process.stdout.isTTY){return false}if(process.platform==="win32"){return true}if("COLORTERM"in process.env){return true}if(process.env.TERM==="dumb"){return false}if(/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)){return true}return false}()}).call(this,require("_process"))},{_process:130}],154:[function(require,module,exports){!function(global,framework,undefined){"use strict";var OBJECT="Object",FUNCTION="Function",ARRAY="Array",STRING="String",NUMBER="Number",REGEXP="RegExp",DATE="Date",MAP="Map",SET="Set",WEAKMAP="WeakMap",WEAKSET="WeakSet",SYMBOL="Symbol",PROMISE="Promise",MATH="Math",ARGUMENTS="Arguments",PROTOTYPE="prototype",CONSTRUCTOR="constructor",TO_STRING="toString",TO_STRING_TAG=TO_STRING+"Tag",TO_LOCALE="toLocaleString",HAS_OWN="hasOwnProperty",FOR_EACH="forEach",ITERATOR="iterator",FF_ITERATOR="@@"+ITERATOR,PROCESS="process",CREATE_ELEMENT="createElement",Function=global[FUNCTION],Object=global[OBJECT],Array=global[ARRAY],String=global[STRING],Number=global[NUMBER],RegExp=global[REGEXP],Date=global[DATE],Map=global[MAP],Set=global[SET],WeakMap=global[WEAKMAP],WeakSet=global[WEAKSET],Symbol=global[SYMBOL],Math=global[MATH],TypeError=global.TypeError,setTimeout=global.setTimeout,setImmediate=global.setImmediate,clearImmediate=global.clearImmediate,process=global[PROCESS],nextTick=process&&process.nextTick,document=global.document,html=document&&document.documentElement,navigator=global.navigator,define=global.define,ArrayProto=Array[PROTOTYPE],ObjectProto=Object[PROTOTYPE],FunctionProto=Function[PROTOTYPE],Infinity=1/0,DOT=".";function isObject(it){return it!=null&&(typeof it=="object"||typeof it=="function")}function isFunction(it){return typeof it=="function"}var isNative=ctx(/./.test,/\[native code\]\s*\}\s*$/,1);var buildIn={Undefined:1,Null:1,Array:1,String:1,Arguments:1,Function:1,Error:1,Boolean:1,Number:1,Date:1,RegExp:1},toString=ObjectProto[TO_STRING];function setToStringTag(it,tag,stat){if(it&&!has(it=stat?it:it[PROTOTYPE],SYMBOL_TAG))hidden(it,SYMBOL_TAG,tag)}function cof(it){return it==undefined?it===undefined?"Undefined":"Null":toString.call(it).slice(8,-1)}function classof(it){var klass=cof(it),tag;return klass==OBJECT&&(tag=it[SYMBOL_TAG])?has(buildIn,tag)?"~"+tag:tag:klass}var call=FunctionProto.call,apply=FunctionProto.apply,REFERENCE_GET;function part(){var fn=assertFunction(this),length=arguments.length,args=Array(length),i=0,_=path._,holder=false;while(length>i)if((args[i]=arguments[i++])===_)holder=true;return function(){var that=this,_length=arguments.length,i=0,j=0,_args;if(!holder&&!_length)return invoke(fn,args,that);_args=args.slice();if(holder)for(;length>i;i++)if(_args[i]===_)_args[i]=arguments[j++];while(_length>j)_args.push(arguments[j++]);return invoke(fn,_args,that)}}function ctx(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(){return fn.apply(that,arguments)}}function invoke(fn,args,that){var un=that===undefined;switch(args.length|0){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)}function construct(target,argumentsList){var instance=create((arguments.length<3?target:assertFunction(arguments[2]))[PROTOTYPE]),result=apply.call(target,instance,argumentsList);return isObject(result)?result:instance}var create=Object.create,getPrototypeOf=Object.getPrototypeOf,setPrototypeOf=Object.setPrototypeOf,defineProperty=Object.defineProperty,defineProperties=Object.defineProperties,getOwnDescriptor=Object.getOwnPropertyDescriptor,getKeys=Object.keys,getNames=Object.getOwnPropertyNames,getSymbols=Object.getOwnPropertySymbols,has=ctx(call,ObjectProto[HAS_OWN],2),ES5Object=Object,Dict;function toObject(it){return ES5Object(assertDefined(it))}function returnIt(it){return it}function returnThis(){return this}function get(object,key){if(has(object,key))return object[key]}function ownKeys(it){assertObject(it);return getSymbols?getNames(it).concat(getSymbols(it)):getNames(it)}var assign=Object.assign||function(target,source){var T=Object(assertDefined(target)),l=arguments.length,i=1;while(l>i){var S=ES5Object(arguments[i++]),keys=getKeys(S),length=keys.length,j=0,key;while(length>j)T[key=keys[j++]]=S[key]}return T};function keyOf(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}function array(it){return String(it).split(",")}var push=ArrayProto.push,unshift=ArrayProto.unshift,slice=ArrayProto.slice,splice=ArrayProto.splice,indexOf=ArrayProto.indexOf,forEach=ArrayProto[FOR_EACH];function createArrayMethod(type){var isMap=type==1,isFilter=type==2,isSome=type==3,isEvery=type==4,isFindIndex=type==6,noholes=type==5||isFindIndex;return function(callbackfn){var O=Object(assertDefined(this)),that=arguments[1],self=ES5Object(O),f=ctx(callbackfn,that,3),length=toLength(self.length),index=0,result=isMap?Array(length):isFilter?[]:undefined,val,res;
for(;length>index;index++)if(noholes||index in self){val=self[index];res=f(val,index,O);if(type){if(isMap)result[index]=res;else if(res)switch(type){case 3:return true;case 5:return val;case 6:return index;case 2:result.push(val)}else if(isEvery)return false}}return isFindIndex?-1:isSome||isEvery?isEvery:result}}function createArrayContains(isContains){return function(el){var O=toObject(this),length=toLength(O.length),index=toIndex(arguments[1],length);if(isContains&&el!=el){for(;length>index;index++)if(sameNaN(O[index]))return isContains||index}else for(;length>index;index++)if(isContains||index in O){if(O[index]===el)return isContains||index}return!isContains&&-1}}function generic(A,B){return typeof A=="function"?A:B}var MAX_SAFE_INTEGER=9007199254740991,ceil=Math.ceil,floor=Math.floor,max=Math.max,min=Math.min,random=Math.random,trunc=Math.trunc||function(it){return(it>0?floor:ceil)(it)};function sameNaN(number){return number!=number}function toInteger(it){return isNaN(it)?0:trunc(it)}function toLength(it){return it>0?min(toInteger(it),MAX_SAFE_INTEGER):0}function toIndex(index,length){var index=toInteger(index);return index<0?max(index+length,0):min(index,length)}function createReplacer(regExp,replace,isStatic){var replacer=isObject(replace)?function(part){return replace[part]}:replace;return function(it){return String(isStatic?it:this).replace(regExp,replacer)}}function createPointAt(toString){return function(pos){var s=String(assertDefined(this)),i=toInteger(pos),l=s.length,a,b;if(i<0||i>=l)return toString?"":undefined;a=s.charCodeAt(i);return a<55296||a>56319||i+1===l||(b=s.charCodeAt(i+1))<56320||b>57343?toString?s.charAt(i):a:toString?s.slice(i,i+2):(a-55296<<10)+(b-56320)+65536}}var REDUCE_ERROR="Reduce of empty object with no initial value";function assert(condition,msg1,msg2){if(!condition)throw TypeError(msg2?msg1+msg2:msg1)}function assertDefined(it){if(it==undefined)throw TypeError("Function called on null or undefined");return it}function assertFunction(it){assert(isFunction(it),it," is not a function!");return it}function assertObject(it){assert(isObject(it),it," is not an object!");return it}function assertInstance(it,Constructor,name){assert(it instanceof Constructor,name,": use the 'new' operator!")}function descriptor(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 defineProperty(object,key,descriptor(bitmap,value))}:simpleSet}function uid(key){return SYMBOL+"("+key+")_"+(++sid+random())[TO_STRING](36)}function getWellKnownSymbol(name,setter){return Symbol&&Symbol[name]||(setter?Symbol:safeSymbol)(SYMBOL+DOT+name)}var DESC=!!function(){try{return defineProperty({},DOT,ObjectProto)}catch(e){}}(),sid=0,hidden=createDefiner(1),set=Symbol?simpleSet:hidden,safeSymbol=Symbol||uid;function assignHidden(target,src){for(var key in src)hidden(target,key,src[key]);return target}var SYMBOL_UNSCOPABLES=getWellKnownSymbol("unscopables"),ArrayUnscopables=ArrayProto[SYMBOL_UNSCOPABLES]||{},SYMBOL_SPECIES=getWellKnownSymbol("species");function setSpecies(C){if(framework||!isNative(C))defineProperty(C,SYMBOL_SPECIES,{configurable:true,get:returnThis})}var SYMBOL_ITERATOR=getWellKnownSymbol(ITERATOR),SYMBOL_TAG=getWellKnownSymbol(TO_STRING_TAG),SUPPORT_FF_ITER=FF_ITERATOR in ArrayProto,ITER=safeSymbol("iter"),KEY=1,VALUE=2,Iterators={},IteratorPrototype={},NATIVE_ITERATORS=SYMBOL_ITERATOR in ArrayProto,BUGGY_ITERATORS="keys"in ArrayProto&&!("next"in[].keys());setIterator(IteratorPrototype,returnThis);function setIterator(O,value){hidden(O,SYMBOL_ITERATOR,value);SUPPORT_FF_ITER&&hidden(O,FF_ITERATOR,value)}function createIterator(Constructor,NAME,next,proto){Constructor[PROTOTYPE]=create(proto||IteratorPrototype,{next:descriptor(1,next)});setToStringTag(Constructor,NAME+" Iterator")}function defineIterator(Constructor,NAME,value,DEFAULT){var proto=Constructor[PROTOTYPE],iter=get(proto,SYMBOL_ITERATOR)||get(proto,FF_ITERATOR)||DEFAULT&&get(proto,DEFAULT)||value;if(framework){setIterator(proto,iter);if(iter!==value){var iterProto=getPrototypeOf(iter.call(new Constructor));setToStringTag(iterProto,NAME+" Iterator",true);has(proto,FF_ITERATOR)&&setIterator(iterProto,returnThis)}}Iterators[NAME]=iter;Iterators[NAME+" Iterator"]=returnThis;return iter}function defineStdIterators(Base,NAME,Constructor,next,DEFAULT,IS_SET){function createIter(kind){return function(){return new Constructor(this,kind)}}createIterator(Constructor,NAME,next);var entries=createIter(KEY+VALUE),values=createIter(VALUE);if(DEFAULT==VALUE)values=defineIterator(Base,NAME,values,"values");else entries=defineIterator(Base,NAME,entries,"entries");if(DEFAULT){$define(PROTO+FORCED*BUGGY_ITERATORS,NAME,{entries:entries,keys:IS_SET?values:createIter(KEY),values:values})}}function iterResult(done,value){return{value:value,done:!!done}}function isIterable(it){var O=Object(it),Symbol=global[SYMBOL],hasExt=(Symbol&&Symbol[ITERATOR]||FF_ITERATOR)in O;return hasExt||SYMBOL_ITERATOR in O||has(Iterators,classof(O))}function getIterator(it){var Symbol=global[SYMBOL],ext=it[Symbol&&Symbol[ITERATOR]||FF_ITERATOR],getIter=ext||it[SYMBOL_ITERATOR]||Iterators[classof(it)];return assertObject(getIter.call(it))}function stepCall(fn,value,entries){return entries?invoke(fn,value):fn(value)}function forOf(iterable,entries,fn,that){var iterator=getIterator(iterable),f=ctx(fn,that,entries?2:1),step;while(!(step=iterator.next()).done)if(stepCall(f,step.value,entries)===false)return}var NODE=cof(process)==PROCESS,core={},path=framework?global:core,old=global.core,exportGlobal,FORCED=1,GLOBAL=2,STATIC=4,PROTO=8,BIND=16,WRAP=32;function $define(type,name,source){var key,own,out,exp,isGlobal=type&GLOBAL,target=isGlobal?global:type&STATIC?global[name]:(global[name]||ObjectProto)[PROTOTYPE],exports=isGlobal?core:core[name]||(core[name]={});if(isGlobal)source=name;for(key in source){own=!(type&FORCED)&&target&&key in target&&(!isFunction(target[key])||isNative(target[key]));out=(own?target:source)[key];if(type&BIND&&own)exp=ctx(out,global);else if(type&WRAP&&!framework&&target[key]==out){exp=function(param){return this instanceof out?new out(param):out(param)};exp[PROTOTYPE]=out[PROTOTYPE]}else exp=type&PROTO&&isFunction(out)?ctx(call,out):out;if(exports[key]!=out)hidden(exports,key,exp);if(framework&&target&&!own){if(isGlobal)target[key]=out;else delete target[key]&&hidden(target,key,out)}}}if(typeof module!="undefined"&&module.exports)module.exports=core;else if(isFunction(define)&&define.amd)define(function(){return core});else exportGlobal=true;if(exportGlobal||framework){core.noConflict=function(){global.core=old;return core};global.core=core}$define(GLOBAL+FORCED,{global:global});!function(TAG,SymbolRegistry,AllSymbols,setter){if(!isNative(Symbol)){Symbol=function(description){assert(!(this instanceof Symbol),SYMBOL+" is not a "+CONSTRUCTOR);var tag=uid(description);AllSymbols[tag]=true;DESC&&setter&&defineProperty(ObjectProto,tag,{configurable:true,set:function(value){hidden(this,tag,value)}});return set(create(Symbol[PROTOTYPE]),TAG,tag)};hidden(Symbol[PROTOTYPE],TO_STRING,function(){return this[TAG]})}$define(GLOBAL+WRAP,{Symbol:Symbol});var symbolStatics={"for":function(key){return has(SymbolRegistry,key+="")?SymbolRegistry[key]:SymbolRegistry[key]=Symbol(key)},iterator:SYMBOL_ITERATOR,keyFor:part.call(keyOf,SymbolRegistry),species:SYMBOL_SPECIES,toStringTag:SYMBOL_TAG=getWellKnownSymbol(TO_STRING_TAG,true),unscopables:SYMBOL_UNSCOPABLES,pure:safeSymbol,set:set,useSetter:function(){setter=true},useSimple:function(){setter=false}};forEach.call(array("hasInstance,isConcatSpreadable,match,replace,search,split,toPrimitive"),function(it){symbolStatics[it]=getWellKnownSymbol(it)});$define(STATIC,SYMBOL,symbolStatics);setToStringTag(Symbol,SYMBOL);$define(STATIC+FORCED*!isNative(Symbol),OBJECT,{getOwnPropertyNames:function(it){var names=getNames(toObject(it)),result=[],key,i=0;while(names.length>i)has(AllSymbols,key=names[i++])||result.push(key);return result},getOwnPropertySymbols:function(it){var names=getNames(toObject(it)),result=[],key,i=0;while(names.length>i)has(AllSymbols,key=names[i++])&&result.push(key);return result}})}(safeSymbol("tag"),{},{},true);!function(RegExpProto,isFinite,tmp,NAME){var RangeError=global.RangeError,isInteger=Number.isInteger||function(it){return!isObject(it)&&isFinite(it)&&floor(it)===it},sign=Math.sign||function sign(x){return(x=+x)==0||x!=x?x:x<0?-1:1},E=Math.E,pow=Math.pow,abs=Math.abs,exp=Math.exp,log=Math.log,sqrt=Math.sqrt,fcc=String.fromCharCode,at=createPointAt(true);var objectStatic={assign:assign,is:function(x,y){return x===y?x!==0||1/x===1/y:x!=x&&y!=y}};"__proto__"in ObjectProto&&function(buggy,set){try{set=ctx(call,getOwnDescriptor(ObjectProto,"__proto__").set,2);set({},ArrayProto)}catch(e){buggy=true}objectStatic.setPrototypeOf=setPrototypeOf=setPrototypeOf||function(O,proto){assertObject(O);assert(proto===null||isObject(proto),proto,": can't set as prototype!");if(buggy)O.__proto__=proto;else set(O,proto);return O}}();$define(STATIC,OBJECT,objectStatic);function asinh(x){return!isFinite(x=+x)||x==0?x:x<0?-asinh(-x):log(x+sqrt(x*x+1))}function expm1(x){return(x=+x)==0?x:x>-1e-6&&x<1e-6?x+x*x/2:exp(x)-1}$define(STATIC,NUMBER,{EPSILON:pow(2,-52),isFinite:function(it){return typeof it=="number"&&isFinite(it)},isInteger:isInteger,isNaN:sameNaN,isSafeInteger:function(number){return isInteger(number)&&abs(number)<=MAX_SAFE_INTEGER},MAX_SAFE_INTEGER:MAX_SAFE_INTEGER,MIN_SAFE_INTEGER:-MAX_SAFE_INTEGER,parseFloat:parseFloat,parseInt:parseInt});$define(STATIC,MATH,{acosh:function(x){return(x=+x)<1?NaN:isFinite(x)?log(x/E+sqrt(x+1)*sqrt(x-1)/E)+1:x},asinh:asinh,atanh:function(x){return(x=+x)==0?x:log((1+x)/(1-x))/2},cbrt:function(x){return sign(x=+x)*pow(abs(x),1/3)},clz32:function(x){return(x>>>=0)?32-x[TO_STRING](2).length:32},cosh:function(x){return(exp(x=+x)+exp(-x))/2},expm1:expm1,fround:function(x){return new Float32Array([x])[0]},hypot:function(value1,value2){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)},imul:function(x,y){var UInt16=65535,xn=+x,yn=+y,xl=UInt16&xn,yl=UInt16&yn;return 0|xl*yl+((UInt16&xn>>>16)*yl+xl*(UInt16&yn>>>16)<<16>>>0)},log1p:function(x){return(x=+x)>-1e-8&&x<1e-8?x-x*x/2:log(1+x)},log10:function(x){return log(x)/Math.LN10},log2:function(x){return log(x)/Math.LN2},sign:sign,sinh:function(x){return abs(x=+x)<1?(expm1(x)-expm1(-x))/2:(exp(x-1)-exp(-x-1))*(E/2)},tanh:function(x){var a=expm1(x=+x),b=expm1(-x);return a==Infinity?1:b==Infinity?-1:(a-b)/(exp(x)+exp(-x))},trunc:trunc});setToStringTag(Math,MATH,true);function assertNotRegExp(it){if(cof(it)==REGEXP)throw TypeError()}$define(STATIC,STRING,{fromCodePoint:function(x){var res=[],len=arguments.length,i=0,code;while(len>i){code=+arguments[i++];if(toIndex(code,1114111)!==code)throw RangeError(code+" is not a valid code point");res.push(code<65536?fcc(code):fcc(((code-=65536)>>10)+55296,code%1024+56320))}return res.join("")},raw:function(callSite){var raw=toObject(callSite.raw),len=toLength(raw.length),sln=arguments.length,res=[],i=0;while(len>i){res.push(String(raw[i++]));if(i<sln)res.push(String(arguments[i]))}return res.join("")}});$define(PROTO,STRING,{codePointAt:createPointAt(false),endsWith:function(searchString){assertNotRegExp(searchString);var that=String(assertDefined(this)),endPosition=arguments[1],len=toLength(that.length),end=endPosition===undefined?len:min(toLength(endPosition),len);searchString+="";return that.slice(end-searchString.length,end)===searchString},includes:function(searchString){assertNotRegExp(searchString);return!!~String(assertDefined(this)).indexOf(searchString,arguments[1])},repeat:function(count){var str=String(assertDefined(this)),res="",n=toInteger(count);if(0>n||n==Infinity)throw RangeError("Count can't be negative");for(;n>0;(n>>>=1)&&(str+=str))if(n&1)res+=str;return res},startsWith:function(searchString){assertNotRegExp(searchString);var that=String(assertDefined(this)),index=toLength(min(arguments[1],that.length));searchString+="";return that.slice(index,index+searchString.length)===searchString}});defineStdIterators(String,STRING,function(iterated){set(this,ITER,{o:String(iterated),i:0})},function(){var iter=this[ITER],O=iter.o,index=iter.i,point;if(index>=O.length)return iterResult(1);point=at.call(O,index);iter.i+=point.length;return iterResult(0,point)});$define(STATIC,ARRAY,{from:function(arrayLike){var O=Object(assertDefined(arrayLike)),result=new(generic(this,Array)),mapfn=arguments[1],that=arguments[2],mapping=mapfn!==undefined,f=mapping?ctx(mapfn,that,2):undefined,index=0,length;if(isIterable(O))for(var iter=getIterator(O),step;!(step=iter.next()).done;index++){result[index]=mapping?f(step.value,index):step.value}else for(length=toLength(O.length);length>index;index++){result[index]=mapping?f(O[index],index):O[index]}result.length=index;return result},of:function(){var index=0,length=arguments.length,result=new(generic(this,Array))(length);while(length>index)result[index]=arguments[index++];result.length=length;return result}});$define(PROTO,ARRAY,{copyWithin:function(target,start){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=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},fill:function(value){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},find:createArrayMethod(5),findIndex:createArrayMethod(6)});defineStdIterators(Array,ARRAY,function(iterated,kind){set(this,ITER,{o:toObject(iterated),i:0,k:kind})},function(){var iter=this[ITER],O=iter.o,kind=iter.k,index=iter.i++;if(!O||index>=O.length)return iter.o=undefined,iterResult(1);if(kind==KEY)return iterResult(0,index);if(kind==VALUE)return iterResult(0,O[index]);return iterResult(0,[index,O[index]])},VALUE);Iterators[ARGUMENTS]=Iterators[ARRAY];setToStringTag(global.JSON,"JSON",true);function wrapObjectMethod(key,MODE){var fn=Object[key],exp=core[OBJECT][key],f=0,o={};if(!exp||isNative(exp)){o[key]=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(it,key){return fn(toObject(it),key)}:function(it){return fn(toObject(it))};try{fn(DOT)}catch(e){f=1}$define(STATIC+FORCED*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");wrapObjectMethod("keys");wrapObjectMethod("getOwnPropertyNames");if(framework){tmp[SYMBOL_TAG]=DOT;if(cof(tmp)!=DOT)hidden(ObjectProto,TO_STRING,function(){return"[object "+classof(this)+"]"});NAME in FunctionProto||defineProperty(FunctionProto,NAME,{configurable:true,get:function(){var match=String(this).match(/^\s*function ([^ (]*)/),name=match?match[1]:"";has(this,NAME)||defineProperty(this,NAME,descriptor(5,name));return name},set:function(value){has(this,NAME)||defineProperty(this,NAME,descriptor(0,value))}});if(DESC&&!function(){try{return RegExp(/a/g,"i")=="/a/i"}catch(e){}}()){var _RegExp=RegExp;RegExp=function RegExp(pattern,flags){return new _RegExp(cof(pattern)==REGEXP&&flags!==undefined?pattern.source:pattern,flags)};forEach.call(getNames(_RegExp),function(key){key in RegExp||defineProperty(RegExp,key,{configurable:true,get:function(){return _RegExp[key]},set:function(it){_RegExp[key]=it}})});RegExpProto[CONSTRUCTOR]=RegExp;RegExp[PROTOTYPE]=RegExpProto;hidden(global,REGEXP,RegExp)}if(/./g.flags!="g")defineProperty(RegExpProto,"flags",{configurable:true,get:createReplacer(/^.*\/(\w*)$/,"$1")});forEach.call(array("find,findIndex,fill,copyWithin,entries,keys,values"),function(it){ArrayUnscopables[it]=true});SYMBOL_UNSCOPABLES in ArrayProto||hidden(ArrayProto,SYMBOL_UNSCOPABLES,ArrayUnscopables)}setSpecies(RegExp);setSpecies(Array)}(RegExp[PROTOTYPE],isFinite,{},"name");isFunction(setImmediate)&&isFunction(clearImmediate)||function(ONREADYSTATECHANGE){var postMessage=global.postMessage,addEventListener=global.addEventListener,MessageChannel=global.MessageChannel,counter=0,queue={},defer,channel,port;setImmediate=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};clearImmediate=function(id){delete queue[id]};function run(id){if(has(queue,id)){var fn=queue[id];delete queue[id];fn()}}function listner(event){run(event.data)}if(NODE){defer=function(id){nextTick(part.call(run,id))}}else if(addEventListener&&isFunction(postMessage)&&!global.importScripts){defer=function(id){postMessage(id,"*")};addEventListener("message",listner,false)}else if(isFunction(MessageChannel)){channel=new MessageChannel;port=channel.port2;channel.port1.onmessage=listner;defer=ctx(port.postMessage,port,1)}else if(document&&ONREADYSTATECHANGE in document[CREATE_ELEMENT]("script")){defer=function(id){html.appendChild(document[CREATE_ELEMENT]("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this);run(id)}}}else{defer=function(id){setTimeout(part.call(run,id),0)}}}("onreadystatechange");$define(GLOBAL+BIND,{setImmediate:setImmediate,clearImmediate:clearImmediate});!function(Promise,test){isFunction(Promise)&&isFunction(Promise.resolve)&&Promise.resolve(test=new Promise(function(){}))==test||function(asap,DEF){function isThenable(o){var then;if(isObject(o))then=o.then;return isFunction(then)?then:false}function notify(def){var chain=def.chain;chain.length&&asap(function(){var msg=def.msg,ok=def.state==1,i=0;while(chain.length>i)!function(react){var cb=ok?react.ok:react.fail,ret,then;try{if(cb){ret=cb===true?msg:cb(msg);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(msg)}catch(err){react.rej(err)}}(chain[i++]);chain.length=0})}function resolve(msg){var def=this,then,wrapper;if(def.done)return;def.done=true;def=def.def||def;try{if(then=isThenable(msg)){wrapper={def:def,done:false};then.call(msg,ctx(resolve,wrapper,1),ctx(reject,wrapper,1))}else{def.msg=msg;def.state=1;notify(def)}}catch(err){reject.call(wrapper||{def:def,done:false},err)}}function reject(msg){var def=this;if(def.done)return;def.done=true;def=def.def||def;def.msg=msg;def.state=2;notify(def)}function getConstructor(C){var S=assertObject(C)[SYMBOL_SPECIES];return S!=undefined?S:C}Promise=function(executor){assertFunction(executor);assertInstance(this,Promise,PROMISE);var def={chain:[],state:0,done:false,msg:undefined};hidden(this,DEF,def);try{executor(ctx(resolve,def,1),ctx(reject,def,1))}catch(err){reject.call(def,err)}};assignHidden(Promise[PROTOTYPE],{then:function(onFulfilled,onRejected){var S=assertObject(assertObject(this)[CONSTRUCTOR])[SYMBOL_SPECIES];var react={ok:isFunction(onFulfilled)?onFulfilled:true,fail:isFunction(onRejected)?onRejected:false},P=react.P=new(S!=undefined?S:Promise)(function(resolve,reject){react.res=assertFunction(resolve);react.rej=assertFunction(reject)}),def=this[DEF];def.chain.push(react);def.state&¬ify(def);return P},"catch":function(onRejected){return this.then(undefined,onRejected)}});assignHidden(Promise,{all:function(iterable){var Promise=getConstructor(this),values=[];return new Promise(function(resolve,reject){forOf(iterable,false,push,values);var remaining=values.length,results=Array(remaining);if(remaining)forEach.call(values,function(promise,index){Promise.resolve(promise).then(function(value){results[index]=value;--remaining||resolve(results)},reject)});else resolve(results)})},race:function(iterable){var Promise=getConstructor(this);return new Promise(function(resolve,reject){forOf(iterable,false,function(promise){Promise.resolve(promise).then(resolve,reject)})})},reject:function(r){return new(getConstructor(this))(function(resolve,reject){reject(r)})},resolve:function(x){return isObject(x)&&DEF in x&&getPrototypeOf(x)===this[PROTOTYPE]?x:new(getConstructor(this))(function(resolve,reject){resolve(x)})}})}(nextTick||setImmediate,safeSymbol("def"));setToStringTag(Promise,PROMISE);setSpecies(Promise);$define(GLOBAL+FORCED*!isNative(Promise),{Promise:Promise})}(global[PROMISE]);!function(){var UID=safeSymbol("uid"),DATA=safeSymbol("data"),WEAK=safeSymbol("weak"),LAST=safeSymbol("last"),FIRST=safeSymbol("first"),SIZE=DESC?safeSymbol("size"):"size",uid=0;function getCollection(C,NAME,methods,commonMethods,isMap,isWeak){var ADDER=isMap?"set":"add",proto=C&&C[PROTOTYPE],O={};function initFromIterable(that,iterable){if(iterable!=undefined)forOf(iterable,isMap,that[ADDER],that);return that}function fixSVZ(key,chain){var method=proto[key];framework&&hidden(proto,key,function(a,b){var result=method.call(this,a===0?0:a,b);return chain?this:result})}if(!isNative(C)||!(isWeak||!BUGGY_ITERATORS&&has(proto,"entries"))){C=isWeak?function(iterable){assertInstance(this,C,NAME);set(this,UID,uid++);initFromIterable(this,iterable)}:function(iterable){var that=this;assertInstance(that,C,NAME);set(that,DATA,create(null));set(that,SIZE,0);set(that,LAST,undefined);set(that,FIRST,undefined);initFromIterable(that,iterable)};assignHidden(assignHidden(C[PROTOTYPE],methods),commonMethods);isWeak||defineProperty(C[PROTOTYPE],"size",{get:function(){return assertDefined(this[SIZE])}})}else{var Native=C,inst=new C,chain=inst[ADDER](isWeak?{}:-0,1),buggyZero;if(!NATIVE_ITERATORS||!C.length){C=function(iterable){assertInstance(this,C,NAME);return initFromIterable(new Native,iterable)};C[PROTOTYPE]=proto}isWeak||inst[FOR_EACH](function(val,key){buggyZero=1/key===-Infinity});if(buggyZero){fixSVZ("delete");fixSVZ("has");isMap&&fixSVZ("get")}if(buggyZero||chain!==inst)fixSVZ(ADDER,true)}setToStringTag(C,NAME);setSpecies(C);O[NAME]=C;$define(GLOBAL+WRAP+FORCED*!isNative(C),O);isWeak||defineStdIterators(C,NAME,function(iterated,kind){set(this,ITER,{o:iterated,k:kind})},function(){var iter=this[ITER],O=iter.o,kind=iter.k,entry=iter.l;while(entry&&entry.r)entry=entry.p;if(!O||!(iter.l=entry=entry?entry.n:O[FIRST]))return iter.o=undefined,iterResult(1);if(kind==KEY)return iterResult(0,entry.k);if(kind==VALUE)return iterResult(0,entry.v);return iterResult(0,[entry.k,entry.v])},isMap?KEY+VALUE:VALUE,!isMap);return C}function fastKey(it,create){if(!isObject(it))return(typeof it=="string"?"S":"P")+it;if(!has(it,UID)){if(create)hidden(it,UID,++uid);else return""}return"O"+it[UID]}function def(that,key,value){var index=fastKey(key,true),data=that[DATA],last=that[LAST],entry;if(index in data)data[index].v=value;else{entry=data[index]={k:key,v:value,p:last};if(!that[FIRST])that[FIRST]=entry;if(last)last.n=entry;that[LAST]=entry;that[SIZE]++}return that}function del(that,index){var data=that[DATA],entry=data[index],next=entry.n,prev=entry.p;delete data[index];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]--}var collectionMethods={clear:function(){for(var index in this[DATA])del(this,index)},"delete":function(key){var index=fastKey(key),contains=index in this[DATA];if(contains)del(this,index);return contains},forEach:function(callbackfn){var f=ctx(callbackfn,arguments[1],3),entry;while(entry=entry?entry.n:this[FIRST]){f(entry.v,entry.k,this);while(entry&&entry.r)entry=entry.p}},has:function(key){return fastKey(key)in this[DATA]}};Map=getCollection(Map,MAP,{get:function(key){var entry=this[DATA][fastKey(key)];return entry&&entry.v},set:function(key,value){return def(this,key===0?0:key,value)}},collectionMethods,true);Set=getCollection(Set,SET,{add:function(value){return def(this,value=value===0?0:value,value)}},collectionMethods);function setWeak(that,key,value){has(assertObject(key),WEAK)||hidden(key,WEAK,{});key[WEAK][that[UID]]=value;return that}function hasWeak(key){return isObject(key)&&has(key,WEAK)&&has(key[WEAK],this[UID])}var weakMethods={"delete":function(key){return hasWeak.call(this,key)&&delete key[WEAK][this[UID]]},has:hasWeak};WeakMap=getCollection(WeakMap,WEAKMAP,{get:function(key){if(isObject(key)&&has(key,WEAK))return key[WEAK][this[UID]]},set:function(key,value){return setWeak(this,key,value)}},weakMethods,true,true);WeakSet=getCollection(WeakSet,WEAKSET,{add:function(value){return setWeak(this,value,true)}},weakMethods,false,true)}();!function(){function Enumerate(iterated){var keys=[],key;for(key in iterated)keys.push(key);set(this,ITER,{o:iterated,a:keys,i:0})}createIterator(Enumerate,OBJECT,function(){var iter=this[ITER],keys=iter.a,key;do{if(iter.i>=keys.length)return iterResult(1)}while(!((key=keys[iter.i++])in iter.o));return iterResult(0,key)});function wrap(fn){return function(it){assertObject(it);try{return fn.apply(undefined,arguments),true}catch(e){return false}}}function reflectGet(target,propertyKey){var receiver=arguments.length<3?target:arguments[2],desc=getOwnDescriptor(assertObject(target),propertyKey),proto;if(desc)return desc.get?desc.get.call(receiver):desc.value;return isObject(proto=getPrototypeOf(target))?reflectGet(proto,propertyKey,receiver):undefined}function reflectSet(target,propertyKey,V){var receiver=arguments.length<4?target:arguments[3],desc=getOwnDescriptor(assertObject(target),propertyKey),proto;if(desc){if(desc.writable===false)return false;if(desc.set)return desc.set.call(receiver,V),true}if(isObject(proto=getPrototypeOf(target)))return reflectSet(proto,propertyKey,V,receiver);desc=getOwnDescriptor(receiver,propertyKey)||descriptor(0);desc.value=V;return defineProperty(receiver,propertyKey,desc),true}var isExtensible=Object.isExtensible||returnIt;var reflect={apply:ctx(call,apply,3),construct:construct,defineProperty:wrap(defineProperty),deleteProperty:function(target,propertyKey){var desc=getOwnDescriptor(assertObject(target),propertyKey);return desc&&!desc.configurable?false:delete target[propertyKey]},enumerate:function(target){return new Enumerate(assertObject(target))},get:reflectGet,getOwnPropertyDescriptor:function(target,propertyKey){return getOwnDescriptor(assertObject(target),propertyKey)},getPrototypeOf:function(target){return getPrototypeOf(assertObject(target))},has:function(target,propertyKey){return propertyKey in target},isExtensible:function(target){return!!isExtensible(assertObject(target))},ownKeys:ownKeys,preventExtensions:wrap(Object.preventExtensions||returnIt),set:reflectSet};if(setPrototypeOf)reflect.setPrototypeOf=function(target,proto){return setPrototypeOf(assertObject(target),proto),true};$define(GLOBAL,{Reflect:{}});$define(STATIC,"Reflect",reflect)}();!function(){$define(PROTO,ARRAY,{includes:createArrayContains(true)});$define(PROTO,STRING,{at:createPointAt(true)});function createObjectToArray(isEntries){return function(object){var O=toObject(object),keys=getKeys(object),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}}$define(STATIC,OBJECT,{values:createObjectToArray(false),entries:createObjectToArray(true)});$define(STATIC,REGEXP,{escape:createReplacer(/([\\\-[\]{}()*+?.,^$|])/g,"\\$1",true)})}();!function(REFERENCE){REFERENCE_GET=getWellKnownSymbol(REFERENCE+"Get",true);var REFERENCE_SET=getWellKnownSymbol(REFERENCE+SET,true),REFERENCE_DELETE=getWellKnownSymbol(REFERENCE+"Delete",true);$define(STATIC,SYMBOL,{referenceGet:REFERENCE_GET,referenceSet:REFERENCE_SET,referenceDelete:REFERENCE_DELETE});hidden(FunctionProto,REFERENCE_GET,returnThis);function setMapMethods(Constructor){if(Constructor){var MapProto=Constructor[PROTOTYPE];hidden(MapProto,REFERENCE_GET,MapProto.get);hidden(MapProto,REFERENCE_SET,MapProto.set);hidden(MapProto,REFERENCE_DELETE,MapProto["delete"])}}setMapMethods(Map);setMapMethods(WeakMap)}("reference");!function(NodeList){if(framework&&NodeList&&!(SYMBOL_ITERATOR in NodeList[PROTOTYPE])){hidden(NodeList[PROTOTYPE],SYMBOL_ITERATOR,Iterators[ARRAY])}Iterators.NodeList=Iterators[ARRAY]}(global.NodeList);!function(DICT){Dict=function(iterable){var dict=create(null);if(iterable!=undefined){if(isIterable(iterable)){for(var iter=getIterator(iterable),step,value;!(step=iter.next()).done;){value=step.value;dict[value[0]]=value[1]}}else assign(dict,iterable)}return dict};Dict[PROTOTYPE]=null;function DictIterator(iterated,kind){set(this,ITER,{o:toObject(iterated),a:getKeys(iterated),i:0,k:kind})}createIterator(DictIterator,DICT,function(){var iter=this[ITER],O=iter.o,keys=iter.a,kind=iter.k,key;do{if(iter.i>=keys.length)return iterResult(1)}while(!has(O,key=keys[iter.i++]));if(kind==KEY)return iterResult(0,key);if(kind==VALUE)return iterResult(0,O[key]);return iterResult(0,[key,O[key]])});function createDictIter(kind){return function(it){return new DictIterator(it,kind)}}function createDictMethod(type){var isMap=type==1,isEvery=type==4;return function(object,callbackfn,that){var f=ctx(callbackfn,that,3),O=toObject(object),result=isMap||type==7||type==2?new(generic(this,Dict)):undefined,key,val,res;for(key in O)if(has(O,key)){val=O[key];res=f(val,key,object);if(type){if(isMap)result[key]=res;else if(res)switch(type){case 2:result[key]=val;break;case 3:return true;case 5:return val;case 6:return key;case 7:result[res[0]]=res[1]}else if(isEvery)return false}}return type==3||isEvery?isEvery:result}}function createDictReduce(isTurn){return function(object,mapfn,init){assertFunction(mapfn);var O=toObject(object),keys=getKeys(O),length=keys.length,i=0,memo,key,result;if(isTurn)memo=init==undefined?new(generic(this,Dict)):Object(init);else if(arguments.length<3){assert(length,REDUCE_ERROR);memo=O[keys[i++]]}else memo=Object(init);while(length>i)if(has(O,key=keys[i++])){result=mapfn(memo,O[key],key,object);if(isTurn){if(result===false)break}else memo=result}return memo}}var findKey=createDictMethod(6);function includes(object,el){return(el==el?keyOf(object,el):findKey(object,sameNaN))!==undefined}var dictMethods={keys:createDictIter(KEY),values:createDictIter(VALUE),entries:createDictIter(KEY+VALUE),forEach:createDictMethod(0),map:createDictMethod(1),filter:createDictMethod(2),some:createDictMethod(3),every:createDictMethod(4),find:createDictMethod(5),findKey:findKey,mapPairs:createDictMethod(7),reduce:createDictReduce(false),turn:createDictReduce(true),keyOf:keyOf,includes:includes,has:has,get:get,set:createDefiner(0),isDict:function(it){return isObject(it)&&getPrototypeOf(it)===Dict[PROTOTYPE]}};if(REFERENCE_GET)for(var key in dictMethods)!function(fn){function method(){for(var args=[this],i=0;i<arguments.length;)args.push(arguments[i++]);return invoke(fn,args)}fn[REFERENCE_GET]=function(){return method}}(dictMethods[key]);$define(GLOBAL+FORCED,{Dict:assignHidden(Dict,dictMethods)})}("Dict");!function(ENTRIES,FN){function $for(iterable,entries){if(!(this instanceof $for))return new $for(iterable,entries);this[ITER]=getIterator(iterable);this[ENTRIES]=!!entries}createIterator($for,"Wrapper",function(){return this[ITER].next()});var $forProto=$for[PROTOTYPE];setIterator($forProto,function(){return this[ITER]});function createChainIterator(next){function Iter(I,fn,that){this[ITER]=getIterator(I);this[ENTRIES]=I[ENTRIES];this[FN]=ctx(fn,that,I[ENTRIES]?2:1)}createIterator(Iter,"Chain",next,$forProto);setIterator(Iter[PROTOTYPE],returnThis);return Iter}var MapIter=createChainIterator(function(){var step=this[ITER].next();
return step.done?step:iterResult(0,stepCall(this[FN],step.value,this[ENTRIES]))});var FilterIter=createChainIterator(function(){for(;;){var step=this[ITER].next();if(step.done||stepCall(this[FN],step.value,this[ENTRIES]))return step}});assignHidden($forProto,{of:function(fn,that){forOf(this,this[ENTRIES],fn,that)},array:function(fn,that){var result=[];forOf(fn!=undefined?this.map(fn,that):this,false,push,result);return result},filter:function(fn,that){return new FilterIter(this,fn,that)},map:function(fn,that){return new MapIter(this,fn,that)}});$for.isIterable=isIterable;$for.getIterator=getIterator;$define(GLOBAL+FORCED,{$for:$for})}("entries",safeSymbol("fn"));!function(_,toLocaleString){core._=path._=path._||{};$define(PROTO+FORCED,FUNCTION,{part:part,only:function(numberArguments,that){var fn=assertFunction(this),n=toLength(numberArguments),isThat=arguments.length>1;return function(){var length=min(n,arguments.length),args=Array(length),i=0;while(length>i)args[i]=arguments[i++];return invoke(fn,args,isThat?that:this)}}});function tie(key){var that=this,bound={};return hidden(that,_,function(key){if(key===undefined||!(key in that))return toLocaleString.call(that);return has(bound,key)?bound[key]:bound[key]=ctx(that[key],that,-1)})[_](key)}hidden(path._,TO_STRING,function(){return _});hidden(ObjectProto,_,tie);DESC||hidden(ArrayProto,_,tie)}(DESC?uid("tie"):TO_LOCALE,ObjectProto[TO_LOCALE]);!function(){function define(target,mixin){var keys=ownKeys(toObject(mixin)),length=keys.length,i=0,key;while(length>i)defineProperty(target,key=keys[i++],getOwnDescriptor(mixin,key));return target}$define(STATIC+FORCED,OBJECT,{isObject:isObject,classof:classof,define:define,make:function(proto,mixin){return define(create(proto),mixin)}})}();$define(PROTO+FORCED,ARRAY,{turn:function(fn,target){assertFunction(fn);var memo=target==undefined?[]:Object(target),O=ES5Object(this),length=toLength(O.length),index=0;while(length>index)if(fn(memo,O[index],index++,this)===false)break;return memo}});if(framework)ArrayUnscopables.turn=true;!function(arrayStatics){function setArrayStatics(keys,length){forEach.call(array(keys),function(key){if(key in ArrayProto)arrayStatics[key]=ctx(call,ArrayProto[key],length)})}setArrayStatics("pop,reverse,shift,keys,values,entries",1);setArrayStatics("indexOf,every,some,forEach,map,filter,find,findIndex,includes",3);setArrayStatics("join,slice,concat,push,splice,unshift,sort,lastIndexOf,"+"reduce,reduceRight,copyWithin,fill,turn");$define(STATIC,ARRAY,arrayStatics)}({});!function(numberMethods){function NumberIterator(iterated){set(this,ITER,{l:toLength(iterated),i:0})}createIterator(NumberIterator,NUMBER,function(){var iter=this[ITER],i=iter.i++;return i<iter.l?iterResult(0,i):iterResult(1)});defineIterator(Number,NUMBER,function(){return new NumberIterator(this)});numberMethods.random=function(lim){var a=+this,b=lim==undefined?0:+lim,m=min(a,b);return random()*(max(a,b)-m)+m};forEach.call(array("round,floor,ceil,abs,sin,asin,cos,acos,tan,atan,exp,sqrt,max,min,pow,atan2,"+"acosh,asinh,atanh,cbrt,clz32,cosh,expm1,hypot,imul,log1p,log10,log2,sign,sinh,tanh,trunc"),function(key){var fn=Math[key];if(fn)numberMethods[key]=function(){var args=[+this],i=0;while(arguments.length>i)args.push(arguments[i++]);return invoke(fn,args)}});$define(PROTO+FORCED,NUMBER,numberMethods)}({});!function(){var escapeHTMLDict={"&":"&","<":"<",">":">",'"':""","'":"'"},unescapeHTMLDict={},key;for(key in escapeHTMLDict)unescapeHTMLDict[escapeHTMLDict[key]]=key;$define(PROTO+FORCED,STRING,{escapeHTML:createReplacer(/[&<>"']/g,escapeHTMLDict),unescapeHTML:createReplacer(/&(?:amp|lt|gt|quot|apos);/g,unescapeHTMLDict)})}();!function(formatRegExp,flexioRegExp,locales,current,SECONDS,MINUTES,HOURS,MONTH,YEAR){function createFormat(prefix){return function(template,locale){var that=this,dict=locales[has(locales,locale)?locale:current];function get(unit){return that[prefix+unit]()}return String(template).replace(formatRegExp,function(part){switch(part){case"s":return get(SECONDS);case"ss":return lz(get(SECONDS));case"m":return get(MINUTES);case"mm":return lz(get(MINUTES));case"h":return get(HOURS);case"hh":return lz(get(HOURS));case"D":return get(DATE);case"DD":return lz(get(DATE));case"W":return dict[0][get("Day")];case"N":return get(MONTH)+1;case"NN":return lz(get(MONTH)+1);case"M":return dict[2][get(MONTH)];case"MM":return dict[1][get(MONTH)];case"Y":return get(YEAR);case"YY":return lz(get(YEAR)%100)}return part})}}function lz(num){return num>9?num:"0"+num}function addLocale(lang,locale){function split(index){var result=[];forEach.call(array(locale.months),function(it){result.push(it.replace(flexioRegExp,"$"+index))});return result}locales[lang]=[array(locale.weekdays),split(1),split(2)];return core}$define(PROTO+FORCED,DATE,{format:createFormat("get"),formatUTC:createFormat("getUTC")});addLocale(current,{weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday",months:"January,February,March,April,May,June,July,August,September,October,November,December"});addLocale("ru",{weekdays:"Воскресенье,Понедельник,Вторник,Среда,Четверг,Пятница,Суббота",months:"Январ:я|ь,Феврал:я|ь,Март:а|,Апрел:я|ь,Ма:я|й,Июн:я|ь,"+"Июл:я|ь,Август:а|,Сентябр:я|ь,Октябр:я|ь,Ноябр:я|ь,Декабр:я|ь"});core.locale=function(locale){return has(locales,locale)?current=locale:current};core.addLocale=addLocale}(/\b\w\w?\b/g,/:(.*)\|(.*)$/,{},"en","Seconds","Minutes","Hours","Month","FullYear")}(typeof self!="undefined"&&self.Math===Math?self:Function("return this")(),false)},{}],155:[function(require,module,exports){"use strict";var repeating=require("repeating");var INDENT_RE=/^(?:( )+|\t+)/;function getMostUsed(indents){var result=0;var maxUsed=0;var maxWeight=0;for(var n in indents){var indent=indents[n];var u=indent[0];var w=indent[1];if(u>maxUsed||u===maxUsed&&w>maxWeight){maxUsed=u;maxWeight=w;result=+n}}return result}module.exports=function(str){if(typeof str!=="string"){throw new TypeError("Expected a string")}var tabs=0;var spaces=0;var prev=0;var indents={};var current;var isIndent;str.split(/\n/g).forEach(function(line){if(!line){return}var indent;var matches=line.match(INDENT_RE);if(!matches){indent=0}else{indent=matches[0].length;if(matches[1]){spaces++}else{tabs++}}var diff=indent-prev;prev=indent;if(diff){isIndent=diff>0;current=indents[isIndent?diff:-diff];if(current){current[0]++}else{current=indents[diff]=[1,0]}}else if(current){current[1]+=+isIndent}});var amount=getMostUsed(indents);var type;var actual;if(!amount){type=null;actual=""}else if(spaces>=tabs){type="space";actual=repeating(" ",amount)}else{type="tab";actual=repeating(" ",amount)}return{amount:amount,type:type,indent:actual}}},{repeating:156}],156:[function(require,module,exports){"use strict";var isFinite=require("is-finite");module.exports=function(str,n){if(typeof str!=="string"){throw new TypeError("Expected a string as the first argument")}if(n<0||!isFinite(n)){throw new TypeError("Expected a finite positive number")}var ret="";do{if(n&1){ret+=str}str+=str}while(n=n>>1);return ret}},{"is-finite":157}],157:[function(require,module,exports){"use strict";module.exports=Number.isFinite||function(val){if(typeof val!=="number"||val!==val||val===Infinity||val===-Infinity){return false}return true}},{}],158:[function(require,module,exports){(function(root,factory){"use strict";if(typeof define==="function"&&define.amd){define(["exports"],factory)}else if(typeof exports!=="undefined"){factory(exports)}else{factory(root.estraverse={})}})(this,function clone(exports){"use strict";var Syntax,isArray,VisitorOption,VisitorKeys,objectCreate,objectKeys,BREAK,SKIP,REMOVE;function ignoreJSHintError(){}isArray=Array.isArray;if(!isArray){isArray=function isArray(array){return Object.prototype.toString.call(array)==="[object Array]"}}function deepCopy(obj){var ret={},key,val;for(key in obj){if(obj.hasOwnProperty(key)){val=obj[key];if(typeof val==="object"&&val!==null){ret[key]=deepCopy(val)}else{ret[key]=val}}}return ret}function shallowCopy(obj){var ret={},key;for(key in obj){if(obj.hasOwnProperty(key)){ret[key]=obj[key]}}return ret}ignoreJSHintError(shallowCopy);function upperBound(array,func){var diff,len,i,current;len=array.length;i=0;while(len){diff=len>>>1;current=i+diff;if(func(array[current])){len=diff}else{i=current+1;len-=diff+1}}return i}function lowerBound(array,func){var diff,len,i,current;len=array.length;i=0;while(len){diff=len>>>1;current=i+diff;if(func(array[current])){i=current+1;len-=diff+1}else{len=diff}}return i}ignoreJSHintError(lowerBound);objectCreate=Object.create||function(){function F(){}return function(o){F.prototype=o;return new F}}();objectKeys=Object.keys||function(o){var keys=[],key;for(key in o){keys.push(key)}return keys};function extend(to,from){objectKeys(from).forEach(function(key){to[key]=from[key]});return to}Syntax={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportBatchSpecifier:"ExportBatchSpecifier",ExportDeclaration:"ExportDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"};VisitorKeys={AssignmentExpression:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","defaults","rest","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ClassBody:["body"],ClassDeclaration:["id","body","superClass"],ClassExpression:["id","body","superClass"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportBatchSpecifier:[],ExportDeclaration:["declaration","specifiers","source"],ExportSpecifier:["id","name"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","defaults","rest","body"],FunctionExpression:["id","params","defaults","rest","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["id"],ImportNamespaceSpecifier:["id"],ImportSpecifier:["id","name"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handlers","handler","guardedHandlers","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]};BREAK={};SKIP={};REMOVE={};VisitorOption={Break:BREAK,Skip:SKIP,Remove:REMOVE};function Reference(parent,key){this.parent=parent;this.key=key}Reference.prototype.replace=function replace(node){this.parent[this.key]=node};Reference.prototype.remove=function remove(){if(isArray(this.parent)){this.parent.splice(this.key,1);return true}else{this.replace(null);return false}};function Element(node,path,wrap,ref){this.node=node;this.path=path;this.wrap=wrap;this.ref=ref}function Controller(){}Controller.prototype.path=function path(){var i,iz,j,jz,result,element;function addToPath(result,path){if(isArray(path)){for(j=0,jz=path.length;j<jz;++j){result.push(path[j])}}else{result.push(path)}}if(!this.__current.path){return null}result=[];for(i=2,iz=this.__leavelist.length;i<iz;++i){element=this.__leavelist[i];addToPath(result,element.path)}addToPath(result,this.__current.path);return result};Controller.prototype.type=function(){var node=this.current();return node.type||this.__current.wrap};Controller.prototype.parents=function parents(){var i,iz,result;result=[];for(i=1,iz=this.__leavelist.length;i<iz;++i){result.push(this.__leavelist[i].node)}return result};Controller.prototype.current=function current(){return this.__current.node};Controller.prototype.__execute=function __execute(callback,element){var previous,result;result=undefined;previous=this.__current;this.__current=element;this.__state=null;if(callback){result=callback.call(this,element.node,this.__leavelist[this.__leavelist.length-1].node)}this.__current=previous;return result};Controller.prototype.notify=function notify(flag){this.__state=flag};Controller.prototype.skip=function(){this.notify(SKIP)};Controller.prototype["break"]=function(){this.notify(BREAK)};Controller.prototype.remove=function(){this.notify(REMOVE)};Controller.prototype.__initialize=function(root,visitor){this.visitor=visitor;this.root=root;this.__worklist=[];this.__leavelist=[];this.__current=null;this.__state=null;this.__fallback=visitor.fallback==="iteration";this.__keys=VisitorKeys;if(visitor.keys){this.__keys=extend(objectCreate(this.__keys),visitor.keys)}};function isNode(node){if(node==null){return false}return typeof node==="object"&&typeof node.type==="string"}function isProperty(nodeType,key){return(nodeType===Syntax.ObjectExpression||nodeType===Syntax.ObjectPattern)&&"properties"===key}Controller.prototype.traverse=function traverse(root,visitor){var worklist,leavelist,element,node,nodeType,ret,key,current,current2,candidates,candidate,sentinel;this.__initialize(root,visitor);sentinel={};worklist=this.__worklist;leavelist=this.__leavelist;worklist.push(new Element(root,null,null,null));leavelist.push(new Element(null,null,null,null));while(worklist.length){element=worklist.pop();if(element===sentinel){element=leavelist.pop();ret=this.__execute(visitor.leave,element);if(this.__state===BREAK||ret===BREAK){return}continue}if(element.node){ret=this.__execute(visitor.enter,element);if(this.__state===BREAK||ret===BREAK){return}worklist.push(sentinel);leavelist.push(element);if(this.__state===SKIP||ret===SKIP){continue}node=element.node;nodeType=element.wrap||node.type;candidates=this.__keys[nodeType];if(!candidates){if(this.__fallback){candidates=objectKeys(node)}else{throw new Error("Unknown node type "+nodeType+".")}}current=candidates.length;while((current-=1)>=0){key=candidates[current];candidate=node[key];if(!candidate){continue}if(isArray(candidate)){current2=candidate.length;while((current2-=1)>=0){if(!candidate[current2]){continue}if(isProperty(nodeType,candidates[current])){element=new Element(candidate[current2],[key,current2],"Property",null)}else if(isNode(candidate[current2])){element=new Element(candidate[current2],[key,current2],null,null)}else{continue}worklist.push(element)}}else if(isNode(candidate)){worklist.push(new Element(candidate,key,null,null))}}}}};Controller.prototype.replace=function replace(root,visitor){function removeElem(element){var i,key,nextElem,parent;if(element.ref.remove()){key=element.ref.key;parent=element.ref.parent;i=worklist.length;while(i--){nextElem=worklist[i];if(nextElem.ref&&nextElem.ref.parent===parent){if(nextElem.ref.key<key){break}--nextElem.ref.key}}}}var worklist,leavelist,node,nodeType,target,element,current,current2,candidates,candidate,sentinel,outer,key;this.__initialize(root,visitor);sentinel={};worklist=this.__worklist;leavelist=this.__leavelist;outer={root:root};element=new Element(root,null,null,new Reference(outer,"root"));worklist.push(element);leavelist.push(element);while(worklist.length){element=worklist.pop();if(element===sentinel){element=leavelist.pop();target=this.__execute(visitor.leave,element);if(target!==undefined&&target!==BREAK&&target!==SKIP&&target!==REMOVE){element.ref.replace(target)}if(this.__state===REMOVE||target===REMOVE){removeElem(element)}if(this.__state===BREAK||target===BREAK){return outer.root}continue}target=this.__execute(visitor.enter,element);if(target!==undefined&&target!==BREAK&&target!==SKIP&&target!==REMOVE){element.ref.replace(target);element.node=target}if(this.__state===REMOVE||target===REMOVE){removeElem(element);element.node=null}if(this.__state===BREAK||target===BREAK){return outer.root}node=element.node;if(!node){continue}worklist.push(sentinel);leavelist.push(element);if(this.__state===SKIP||target===SKIP){continue}nodeType=element.wrap||node.type;candidates=this.__keys[nodeType];if(!candidates){if(this.__fallback){candidates=objectKeys(node)}else{throw new Error("Unknown node type "+nodeType+".")}}current=candidates.length;while((current-=1)>=0){key=candidates[current];candidate=node[key];if(!candidate){continue}if(isArray(candidate)){current2=candidate.length;while((current2-=1)>=0){if(!candidate[current2]){continue}if(isProperty(nodeType,candidates[current])){element=new Element(candidate[current2],[key,current2],"Property",new Reference(candidate,current2))}else if(isNode(candidate[current2])){element=new Element(candidate[current2],[key,current2],null,new Reference(candidate,current2))}else{continue}worklist.push(element)}}else if(isNode(candidate)){worklist.push(new Element(candidate,key,null,new Reference(node,key)))}}}return outer.root};function traverse(root,visitor){var controller=new Controller;return controller.traverse(root,visitor)}function replace(root,visitor){var controller=new Controller;return controller.replace(root,visitor)}function extendCommentRange(comment,tokens){var target;target=upperBound(tokens,function search(token){return token.range[0]>comment.range[0]});comment.extendedRange=[comment.range[0],comment.range[1]];if(target!==tokens.length){comment.extendedRange[1]=tokens[target].range[0]}target-=1;if(target>=0){comment.extendedRange[0]=tokens[target].range[1]}return comment}function attachComments(tree,providedComments,tokens){var comments=[],comment,len,i,cursor;if(!tree.range){throw new Error("attachComments needs range information")}if(!tokens.length){if(providedComments.length){for(i=0,len=providedComments.length;i<len;i+=1){comment=deepCopy(providedComments[i]);comment.extendedRange=[0,tree.range[0]];comments.push(comment)}tree.leadingComments=comments}return tree}for(i=0,len=providedComments.length;i<len;i+=1){comments.push(extendCommentRange(deepCopy(providedComments[i]),tokens))}cursor=0;traverse(tree,{enter:function(node){var comment;while(cursor<comments.length){comment=comments[cursor];if(comment.extendedRange[1]>node.range[0]){break}if(comment.extendedRange[1]===node.range[0]){if(!node.leadingComments){node.leadingComments=[]}node.leadingComments.push(comment);comments.splice(cursor,1)}else{cursor+=1}}if(cursor===comments.length){return VisitorOption.Break}if(comments[cursor].extendedRange[0]>node.range[1]){return VisitorOption.Skip}}});cursor=0;traverse(tree,{leave:function(node){var comment;while(cursor<comments.length){comment=comments[cursor];if(node.range[1]<comment.extendedRange[0]){break}if(node.range[1]===comment.extendedRange[0]){if(!node.trailingComments){node.trailingComments=[]}node.trailingComments.push(comment);comments.splice(cursor,1)}else{cursor+=1}}if(cursor===comments.length){return VisitorOption.Break}if(comments[cursor].extendedRange[0]>node.range[1]){return VisitorOption.Skip}}});return tree}exports.version="1.8.1-dev";exports.Syntax=Syntax;exports.traverse=traverse;exports.replace=replace;exports.attachComments=attachComments;exports.VisitorKeys=VisitorKeys;exports.VisitorOption=VisitorOption;exports.Controller=Controller;exports.cloneEnvironment=function(){return clone({})};return exports})},{}],159:[function(require,module,exports){(function(){"use strict";function isExpression(node){if(node==null){return false}switch(node.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return true}return false}function isIterationStatement(node){if(node==null){return false}switch(node.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return true}return false}function isStatement(node){if(node==null){return false}switch(node.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return true}return false}function isSourceElement(node){return isStatement(node)||node!=null&&node.type==="FunctionDeclaration"}function trailingStatement(node){switch(node.type){case"IfStatement":if(node.alternate!=null){return node.alternate}return node.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return node.body}return null}function isProblematicIfStatement(node){var current;if(node.type!=="IfStatement"){return false}if(node.alternate==null){return false}current=node.consequent;do{if(current.type==="IfStatement"){if(current.alternate==null){return true}}current=trailingStatement(current)}while(current);return false}module.exports={isExpression:isExpression,isStatement:isStatement,isIterationStatement:isIterationStatement,isSourceElement:isSourceElement,isProblematicIfStatement:isProblematicIfStatement,trailingStatement:trailingStatement}})()},{}],160:[function(require,module,exports){(function(){"use strict";var Regex,NON_ASCII_WHITESPACES;Regex={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")};function isDecimalDigit(ch){return ch>=48&&ch<=57}function isHexDigit(ch){return isDecimalDigit(ch)||97<=ch&&ch<=102||65<=ch&&ch<=70}function isOctalDigit(ch){return ch>=48&&ch<=55}NON_ASCII_WHITESPACES=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function isWhiteSpace(ch){return ch===32||ch===9||ch===11||ch===12||ch===160||ch>=5760&&NON_ASCII_WHITESPACES.indexOf(ch)>=0}function isLineTerminator(ch){return ch===10||ch===13||ch===8232||ch===8233}function isIdentifierStart(ch){return ch>=97&&ch<=122||ch>=65&&ch<=90||ch===36||ch===95||ch===92||ch>=128&&Regex.NonAsciiIdentifierStart.test(String.fromCharCode(ch))}function isIdentifierPart(ch){return ch>=97&&ch<=122||ch>=65&&ch<=90||ch>=48&&ch<=57||ch===36||ch===95||ch===92||ch>=128&&Regex.NonAsciiIdentifierPart.test(String.fromCharCode(ch))}module.exports={isDecimalDigit:isDecimalDigit,isHexDigit:isHexDigit,isOctalDigit:isOctalDigit,isWhiteSpace:isWhiteSpace,isLineTerminator:isLineTerminator,isIdentifierStart:isIdentifierStart,isIdentifierPart:isIdentifierPart}})()},{}],161:[function(require,module,exports){(function(){"use strict";var code=require("./code");function isStrictModeReservedWordES6(id){switch(id){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return true;default:return false}}function isKeywordES5(id,strict){if(!strict&&id==="yield"){return false}return isKeywordES6(id,strict)}function isKeywordES6(id,strict){if(strict&&isStrictModeReservedWordES6(id)){return true}switch(id.length){case 2:return id==="if"||id==="in"||id==="do";case 3:return id==="var"||id==="for"||id==="new"||id==="try";case 4:return id==="this"||id==="else"||id==="case"||id==="void"||id==="with"||id==="enum";case 5:return id==="while"||id==="break"||id==="catch"||id==="throw"||id==="const"||id==="yield"||id==="class"||id==="super";case 6:return id==="return"||id==="typeof"||id==="delete"||id==="switch"||id==="export"||id==="import";case 7:return id==="default"||id==="finally"||id==="extends";case 8:return id==="function"||id==="continue"||id==="debugger";case 10:return id==="instanceof";default:return false}}function isReservedWordES5(id,strict){return id==="null"||id==="true"||id==="false"||isKeywordES5(id,strict)}function isReservedWordES6(id,strict){return id==="null"||id==="true"||id==="false"||isKeywordES6(id,strict)}function isRestrictedWord(id){return id==="eval"||id==="arguments"}function isIdentifierName(id){var i,iz,ch;if(id.length===0){return false}ch=id.charCodeAt(0);if(!code.isIdentifierStart(ch)||ch===92){return false}for(i=1,iz=id.length;i<iz;++i){ch=id.charCodeAt(i);if(!code.isIdentifierPart(ch)||ch===92){return false}}return true}function isIdentifierES5(id,strict){return isIdentifierName(id)&&!isReservedWordES5(id,strict)}function isIdentifierES6(id,strict){return isIdentifierName(id)&&!isReservedWordES6(id,strict)}module.exports={isKeywordES5:isKeywordES5,isKeywordES6:isKeywordES6,isReservedWordES5:isReservedWordES5,isReservedWordES6:isReservedWordES6,isRestrictedWord:isRestrictedWord,isIdentifierName:isIdentifierName,isIdentifierES5:isIdentifierES5,isIdentifierES6:isIdentifierES6}})()},{"./code":160}],162:[function(require,module,exports){(function(){"use strict";exports.ast=require("./ast");exports.code=require("./code");exports.keyword=require("./keyword")})()},{"./ast":159,"./code":160,"./keyword":161}],163:[function(require,module,exports){function combine(){return new RegExp("("+[].slice.call(arguments).map(function(e){var e=e.toString();return"(?:"+e.substring(1,e.length-1)+")"}).join("|")+")")}function makeTester(rx){var s=rx.toString();return new RegExp("^"+s.substring(1,s.length-1)+"$")}var pattern={string1:/"(?:(?:\\\n|\\"|[^"\n]))*?"/,string2:/'(?:(?:\\\n|\\'|[^'\n]))*?'/,comment1:/\/\*[\s\S]*?\*\//,comment2:/\/\/.*?\n/,whitespace:/\s+/,keyword:/\b(?:var|let|for|if|else|in|class|function|return|with|case|break|switch|export|new|while|do|throw|catch)\b/,regexp:/\/(?:(?:\\\/|[^\n\/]))*?\//,name:/[a-zA-Z_\$][a-zA-Z_\$0-9]*/,number:/\d+(?:\.\d+)?(?:e[+-]?\d+)?/,parens:/[\(\)]/,curly:/[{}]/,square:/[\[\]]/,punct:/[;.:\?\^%<>=!&|+\-,~]/};var match=combine(pattern.string1,pattern.string2,pattern.comment1,pattern.comment2,pattern.regexp,pattern.whitespace,pattern.name,pattern.number,pattern.parens,pattern.curly,pattern.square,pattern.punct);var tester={};for(var k in pattern){tester[k]=makeTester(pattern[k])}module.exports=function(str,doNotThrow){return str.split(match).filter(function(e,i){if(i%2)return true;if(e!==""){if(!doNotThrow)throw new Error("invalid token:"+JSON.stringify(e));return true}})};module.exports.type=function(e){for(var type in pattern)if(tester[type].test(e))return type;return"invalid"}},{}],164:[function(require,module,exports){(function(global){(function(){var undefined;var VERSION="3.0.0";var BIND_FLAG=1,BIND_KEY_FLAG=2,CURRY_BOUND_FLAG=4,CURRY_FLAG=8,CURRY_RIGHT_FLAG=16,PARTIAL_FLAG=32,PARTIAL_RIGHT_FLAG=64,REARG_FLAG=128,ARY_FLAG=256;var DEFAULT_TRUNC_LENGTH=30,DEFAULT_TRUNC_OMISSION="...";var HOT_COUNT=150,HOT_SPAN=16;var LAZY_FILTER_FLAG=0,LAZY_MAP_FLAG=1,LAZY_WHILE_FLAG=2;var FUNC_ERROR_TEXT="Expected a function";var PLACEHOLDER="__lodash_placeholder__";var argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]";var arrayBufferTag="[object ArrayBuffer]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]";
var reEmptyStringLeading=/\b__p \+= '';/g,reEmptyStringMiddle=/\b(__p \+=) '' \+/g,reEmptyStringTrailing=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var reEscapedHtml=/&(?:amp|lt|gt|quot|#39|#96);/g,reUnescapedHtml=/[&<>"'`]/g,reHasEscapedHtml=RegExp(reEscapedHtml.source),reHasUnescapedHtml=RegExp(reUnescapedHtml.source);var reEscape=/<%-([\s\S]+?)%>/g,reEvaluate=/<%([\s\S]+?)%>/g,reInterpolate=/<%=([\s\S]+?)%>/g;var reEsTemplate=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var reFlags=/\w*$/;var reFuncName=/^\s*function[ \n\r\t]+\w/;var reHexPrefix=/^0[xX]/;var reHostCtor=/^\[object .+?Constructor\]$/;var reLatin1=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g;var reNoMatch=/($^)/;var reRegExpChars=/[.*+?^${}()|[\]\/\\]/g,reHasRegExpChars=RegExp(reRegExpChars.source);var reThis=/\bthis\b/;var reUnescapedString=/['\n\r\u2028\u2029\\]/g;var reWords=function(){var upper="[A-Z\\xc0-\\xd6\\xd8-\\xde]",lower="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(upper+"{2,}(?="+upper+lower+")|"+upper+"?"+lower+"|"+upper+"+|[0-9]+","g")}();var whitespace=" \f "+"\n\r\u2028\u2029"+" ";var contextProps=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","document","isFinite","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","window","WinRTError"];var templateCounter=-1;var typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=true;typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=false;var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[stringTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=true;cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[mapTag]=cloneableTags[setTag]=cloneableTags[weakMapTag]=false;var debounceOptions={leading:false,maxWait:0,trailing:false};var deburredLetters={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"};var htmlEscapes={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"};var htmlUnescapes={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"};var objectTypes={"function":true,object:true};var stringEscapes={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var root=objectTypes[typeof window]&&window!==(this&&this.window)?window:this;var freeExports=objectTypes[typeof exports]&&exports&&!exports.nodeType&&exports;var freeModule=objectTypes[typeof module]&&module&&!module.nodeType&&module;var freeGlobal=freeExports&&freeModule&&typeof global=="object"&&global;if(freeGlobal&&(freeGlobal.global===freeGlobal||freeGlobal.window===freeGlobal||freeGlobal.self===freeGlobal)){root=freeGlobal}var moduleExports=freeModule&&freeModule.exports===freeExports&&freeExports;function baseCompareAscending(value,other){if(value!==other){var valIsReflexive=value===value,othIsReflexive=other===other;if(value>other||!valIsReflexive||typeof value=="undefined"&&othIsReflexive){return 1}if(value<other||!othIsReflexive||typeof other=="undefined"&&valIsReflexive){return-1}}return 0}function baseIndexOf(array,value,fromIndex){if(value!==value){return indexOfNaN(array,fromIndex)}var index=(fromIndex||0)-1,length=array.length;while(++index<length){if(array[index]===value){return index}}return-1}function baseSortBy(array,comparer){var length=array.length;array.sort(comparer);while(length--){array[length]=array[length].value}return array}function baseToString(value){if(typeof value=="string"){return value}return value==null?"":value+""}function charAtCallback(string){return string.charCodeAt(0)}function charsLeftIndex(string,chars){var index=-1,length=string.length;while(++index<length&&chars.indexOf(string.charAt(index))>-1){}return index}function charsRightIndex(string,chars){var index=string.length;while(index--&&chars.indexOf(string.charAt(index))>-1){}return index}function compareAscending(object,other){return baseCompareAscending(object.criteria,other.criteria)||object.index-other.index}function compareMultipleAscending(object,other){var index=-1,objCriteria=object.criteria,othCriteria=other.criteria,length=objCriteria.length;while(++index<length){var result=baseCompareAscending(objCriteria[index],othCriteria[index]);if(result){return result}}return object.index-other.index}function deburrLetter(letter){return deburredLetters[letter]}function escapeHtmlChar(chr){return htmlEscapes[chr]}function escapeStringChar(chr){return"\\"+stringEscapes[chr]}function indexOfNaN(array,fromIndex,fromRight){var length=array.length,index=fromRight?fromIndex||length:(fromIndex||0)-1;while(fromRight?index--:++index<length){var other=array[index];if(other!==other){return index}}return-1}function isObjectLike(value){return value&&typeof value=="object"||false}function isSpace(charCode){return charCode<=160&&(charCode>=9&&charCode<=13)||charCode==32||charCode==160||charCode==5760||charCode==6158||charCode>=8192&&(charCode<=8202||charCode==8232||charCode==8233||charCode==8239||charCode==8287||charCode==12288||charCode==65279)}function replaceHolders(array,placeholder){var index=-1,length=array.length,resIndex=-1,result=[];while(++index<length){if(array[index]===placeholder){array[index]=PLACEHOLDER;result[++resIndex]=index}}return result}function sortedUniq(array,iteratee){var seen,index=-1,length=array.length,resIndex=-1,result=[];while(++index<length){var value=array[index],computed=iteratee?iteratee(value,index,array):value;if(!index||seen!==computed){seen=computed;result[++resIndex]=value}}return result}function trimmedLeftIndex(string){var index=-1,length=string.length;while(++index<length&&isSpace(string.charCodeAt(index))){}return index}function trimmedRightIndex(string){var index=string.length;while(index--&&isSpace(string.charCodeAt(index))){}return index}function unescapeHtmlChar(chr){return htmlUnescapes[chr]}function runInContext(context){context=context?_.defaults(root.Object(),context,_.pick(root,contextProps)):root;var Array=context.Array,Date=context.Date,Error=context.Error,Function=context.Function,Math=context.Math,Number=context.Number,Object=context.Object,RegExp=context.RegExp,String=context.String,TypeError=context.TypeError;var arrayProto=Array.prototype,objectProto=Object.prototype;var document=(document=context.window)&&document.document;var fnToString=Function.prototype.toString;var getLength=baseProperty("length");var hasOwnProperty=objectProto.hasOwnProperty;var idCounter=0;var objToString=objectProto.toString;var oldDash=context._;var reNative=RegExp("^"+escapeRegExp(objToString).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ArrayBuffer=isNative(ArrayBuffer=context.ArrayBuffer)&&ArrayBuffer,bufferSlice=isNative(bufferSlice=ArrayBuffer&&new ArrayBuffer(0).slice)&&bufferSlice,ceil=Math.ceil,clearTimeout=context.clearTimeout,floor=Math.floor,getPrototypeOf=isNative(getPrototypeOf=Object.getPrototypeOf)&&getPrototypeOf,push=arrayProto.push,propertyIsEnumerable=objectProto.propertyIsEnumerable,Set=isNative(Set=context.Set)&&Set,setTimeout=context.setTimeout,splice=arrayProto.splice,Uint8Array=isNative(Uint8Array=context.Uint8Array)&&Uint8Array,unshift=arrayProto.unshift,WeakMap=isNative(WeakMap=context.WeakMap)&&WeakMap;var Float64Array=function(){try{var func=isNative(func=context.Float64Array)&&func,result=new func(new ArrayBuffer(10),0,1)&&func}catch(e){}return result}();var nativeIsArray=isNative(nativeIsArray=Array.isArray)&&nativeIsArray,nativeCreate=isNative(nativeCreate=Object.create)&&nativeCreate,nativeIsFinite=context.isFinite,nativeKeys=isNative(nativeKeys=Object.keys)&&nativeKeys,nativeMax=Math.max,nativeMin=Math.min,nativeNow=isNative(nativeNow=Date.now)&&nativeNow,nativeNumIsFinite=isNative(nativeNumIsFinite=Number.isFinite)&&nativeNumIsFinite,nativeParseInt=context.parseInt,nativeRandom=Math.random;var NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY,POSITIVE_INFINITY=Number.POSITIVE_INFINITY;var MAX_ARRAY_LENGTH=Math.pow(2,32)-1,MAX_ARRAY_INDEX=MAX_ARRAY_LENGTH-1,HALF_MAX_ARRAY_LENGTH=MAX_ARRAY_LENGTH>>>1;var FLOAT64_BYTES_PER_ELEMENT=Float64Array?Float64Array.BYTES_PER_ELEMENT:0;var MAX_SAFE_INTEGER=Math.pow(2,53)-1;var metaMap=WeakMap&&new WeakMap;function lodash(value){if(isObjectLike(value)&&!isArray(value)){if(value instanceof LodashWrapper){return value}if(hasOwnProperty.call(value,"__wrapped__")){return new LodashWrapper(value.__wrapped__,value.__chain__,arrayCopy(value.__actions__))}}return new LodashWrapper(value)}function LodashWrapper(value,chainAll,actions){this.__actions__=actions||[];this.__chain__=!!chainAll;this.__wrapped__=value}var support=lodash.support={};(function(x){support.funcDecomp=!isNative(context.WinRTError)&&reThis.test(runInContext);support.funcNames=typeof Function.name=="string";try{support.dom=document.createDocumentFragment().nodeType===11}catch(e){support.dom=false}try{support.nonEnumArgs=!propertyIsEnumerable.call(arguments,1)}catch(e){support.nonEnumArgs=true}})(0,0);lodash.templateSettings={escape:reEscape,evaluate:reEvaluate,interpolate:reInterpolate,variable:"",imports:{_:lodash}};function LazyWrapper(value){this.actions=null;this.dir=1;this.dropCount=0;this.filtered=false;this.iteratees=null;this.takeCount=POSITIVE_INFINITY;this.views=null;this.wrapped=value}function lazyClone(){var actions=this.actions,iteratees=this.iteratees,views=this.views,result=new LazyWrapper(this.wrapped);result.actions=actions?arrayCopy(actions):null;result.dir=this.dir;result.dropCount=this.dropCount;result.filtered=this.filtered;result.iteratees=iteratees?arrayCopy(iteratees):null;result.takeCount=this.takeCount;result.views=views?arrayCopy(views):null;return result}function lazyReverse(){var filtered=this.filtered,result=filtered?new LazyWrapper(this):this.clone();result.dir=this.dir*-1;result.filtered=filtered;return result}function lazyValue(){var array=this.wrapped.value();if(!isArray(array)){return baseWrapperValue(array,this.actions)}var dir=this.dir,isRight=dir<0,length=array.length,view=getView(0,length,this.views),start=view.start,end=view.end,dropCount=this.dropCount,takeCount=nativeMin(end-start,this.takeCount-dropCount),index=isRight?end:start-1,iteratees=this.iteratees,iterLength=iteratees?iteratees.length:0,resIndex=0,result=[];outer:while(length--&&resIndex<takeCount){index+=dir;var iterIndex=-1,value=array[index];while(++iterIndex<iterLength){var data=iteratees[iterIndex],iteratee=data.iteratee,computed=iteratee(value,index,array),type=data.type;if(type==LAZY_MAP_FLAG){value=computed}else if(!computed){if(type==LAZY_FILTER_FLAG){continue outer}else{break outer}}}if(dropCount){dropCount--}else{result[resIndex++]=value}}return isRight?result.reverse():result}function MapCache(){this.__data__={}}function mapDelete(key){return this.has(key)&&delete this.__data__[key]}function mapGet(key){return key=="__proto__"?undefined:this.__data__[key]}function mapHas(key){return key!="__proto__"&&hasOwnProperty.call(this.__data__,key)}function mapSet(key,value){if(key!="__proto__"){this.__data__[key]=value}return this}function SetCache(values){var length=values?values.length:0;this.data={hash:nativeCreate(null),set:new Set};while(length--){this.push(values[length])}}function cacheIndexOf(cache,value){var data=cache.data,result=typeof value=="string"||isObject(value)?data.set.has(value):data.hash[value];return result?0:-1}function cachePush(value){var data=this.data;if(typeof value=="string"||isObject(value)){data.set.add(value)}else{data.hash[value]=true}}function arrayCopy(source,array){var index=-1,length=source.length;array||(array=Array(length));while(++index<length){array[index]=source[index]}return array}function arrayEach(array,iteratee){var index=-1,length=array.length;while(++index<length){if(iteratee(array[index],index,array)===false){break}}return array}function arrayEachRight(array,iteratee){var length=array.length;while(length--){if(iteratee(array[length],length,array)===false){break}}return array}function arrayEvery(array,predicate){var index=-1,length=array.length;while(++index<length){if(!predicate(array[index],index,array)){return false}}return true}function arrayFilter(array,predicate){var index=-1,length=array.length,resIndex=-1,result=[];while(++index<length){var value=array[index];if(predicate(value,index,array)){result[++resIndex]=value}}return result}function arrayMap(array,iteratee){var index=-1,length=array.length,result=Array(length);while(++index<length){result[index]=iteratee(array[index],index,array)}return result}function arrayMax(array){var index=-1,length=array.length,result=NEGATIVE_INFINITY;while(++index<length){var value=array[index];if(value>result){result=value}}return result}function arrayMin(array){var index=-1,length=array.length,result=POSITIVE_INFINITY;while(++index<length){var value=array[index];if(value<result){result=value}}return result}function arrayReduce(array,iteratee,accumulator,initFromArray){var index=-1,length=array.length;if(initFromArray&&length){accumulator=array[++index]}while(++index<length){accumulator=iteratee(accumulator,array[index],index,array)}return accumulator}function arrayReduceRight(array,iteratee,accumulator,initFromArray){var length=array.length;if(initFromArray&&length){accumulator=array[--length]}while(length--){accumulator=iteratee(accumulator,array[length],length,array)}return accumulator}function arraySome(array,predicate){var index=-1,length=array.length;while(++index<length){if(predicate(array[index],index,array)){return true}}return false}function assignDefaults(objectValue,sourceValue){return typeof objectValue=="undefined"?sourceValue:objectValue}function assignOwnDefaults(objectValue,sourceValue,key,object){return typeof objectValue=="undefined"||!hasOwnProperty.call(object,key)?sourceValue:objectValue}function baseAssign(object,source,customizer){var props=keys(source);if(!customizer){return baseCopy(source,object,props)}var index=-1,length=props.length;while(++index<length){var key=props[index],value=object[key],result=customizer(value,source[key],key,object,source);if((result===result?result!==value:value===value)||typeof value=="undefined"&&!(key in object)){object[key]=result}}return object}function baseAt(collection,props){var index=-1,length=collection.length,isArr=isLength(length),propsLength=props.length,result=Array(propsLength);while(++index<propsLength){var key=props[index];if(isArr){key=parseFloat(key);result[index]=isIndex(key,length)?collection[key]:undefined}else{result[index]=collection[key]}}return result}function baseCopy(source,object,props){if(!props){props=object;object={}}var index=-1,length=props.length;while(++index<length){var key=props[index];object[key]=source[key]}return object}function baseBindAll(object,methodNames){var index=-1,length=methodNames.length;while(++index<length){var key=methodNames[index];object[key]=createWrapper(object[key],BIND_FLAG,object)}return object}function baseCallback(func,thisArg,argCount){var type=typeof func;if(type=="function"){return typeof thisArg!="undefined"&&isBindable(func)?bindCallback(func,thisArg,argCount):func}if(func==null){return identity}return type=="object"?baseMatches(func,!argCount):baseProperty(argCount?baseToString(func):func)}function baseClone(value,isDeep,customizer,key,object,stackA,stackB){var result;if(customizer){result=object?customizer(value,key,object):customizer(value)}if(typeof result!="undefined"){return result}if(!isObject(value)){return value}var isArr=isArray(value);if(isArr){result=initCloneArray(value);if(!isDeep){return arrayCopy(value,result)}}else{var tag=objToString.call(value),isFunc=tag==funcTag;if(tag==objectTag||tag==argsTag||isFunc&&!object){result=initCloneObject(isFunc?{}:value);if(!isDeep){return baseCopy(value,result,keys(value))}}else{return cloneableTags[tag]?initCloneByTag(value,tag,isDeep):object?value:{}}}stackA||(stackA=[]);stackB||(stackB=[]);var length=stackA.length;while(length--){if(stackA[length]==value){return stackB[length]}}stackA.push(value);stackB.push(result);(isArr?arrayEach:baseForOwn)(value,function(subValue,key){result[key]=baseClone(subValue,isDeep,customizer,key,value,stackA,stackB)});return result}var baseCreate=function(){function Object(){}return function(prototype){if(isObject(prototype)){Object.prototype=prototype;var result=new Object;Object.prototype=null}return result||context.Object()}}();function baseDelay(func,wait,args,fromIndex){if(!isFunction(func)){throw new TypeError(FUNC_ERROR_TEXT)}return setTimeout(function(){func.apply(undefined,baseSlice(args,fromIndex))},wait)}function baseDifference(array,values){var length=array?array.length:0,result=[];if(!length){return result}var index=-1,indexOf=getIndexOf(),isCommon=indexOf==baseIndexOf,cache=isCommon&&values.length>=200&&createCache(values),valuesLength=values.length;if(cache){indexOf=cacheIndexOf;isCommon=false;values=cache}outer:while(++index<length){var value=array[index];if(isCommon&&value===value){var valuesIndex=valuesLength;while(valuesIndex--){if(values[valuesIndex]===value){continue outer}}result.push(value)}else if(indexOf(values,value)<0){result.push(value)}}return result}function baseEach(collection,iteratee){var length=collection?collection.length:0;if(!isLength(length)){return baseForOwn(collection,iteratee)}var index=-1,iterable=toObject(collection);while(++index<length){if(iteratee(iterable[index],index,iterable)===false){break}}return collection}function baseEachRight(collection,iteratee){var length=collection?collection.length:0;if(!isLength(length)){return baseForOwnRight(collection,iteratee)}var iterable=toObject(collection);while(length--){if(iteratee(iterable[length],length,iterable)===false){break}}return collection}function baseEvery(collection,predicate){var result=true;baseEach(collection,function(value,index,collection){result=!!predicate(value,index,collection);return result});return result}function baseFilter(collection,predicate){var result=[];baseEach(collection,function(value,index,collection){if(predicate(value,index,collection)){result.push(value)}});return result}function baseFind(collection,predicate,eachFunc,retKey){var result;eachFunc(collection,function(value,key,collection){if(predicate(value,key,collection)){result=retKey?key:value;return false}});return result}function baseFlatten(array,isDeep,isStrict,fromIndex){var index=(fromIndex||0)-1,length=array.length,resIndex=-1,result=[];while(++index<length){var value=array[index];if(isObjectLike(value)&&isLength(value.length)&&(isArray(value)||isArguments(value))){if(isDeep){value=baseFlatten(value,isDeep,isStrict)}var valIndex=-1,valLength=value.length;result.length+=valLength;while(++valIndex<valLength){result[++resIndex]=value[valIndex]}}else if(!isStrict){result[++resIndex]=value}}return result}function baseFor(object,iteratee,keysFunc){var index=-1,iterable=toObject(object),props=keysFunc(object),length=props.length;while(++index<length){var key=props[index];if(iteratee(iterable[key],key,iterable)===false){break}}return object}function baseForRight(object,iteratee,keysFunc){var iterable=toObject(object),props=keysFunc(object),length=props.length;while(length--){var key=props[length];if(iteratee(iterable[key],key,iterable)===false){break}}return object}function baseForIn(object,iteratee){return baseFor(object,iteratee,keysIn)}function baseForOwn(object,iteratee){return baseFor(object,iteratee,keys)}function baseForOwnRight(object,iteratee){return baseForRight(object,iteratee,keys)}function baseFunctions(object,props){var index=-1,length=props.length,resIndex=-1,result=[];while(++index<length){var key=props[index];if(isFunction(object[key])){result[++resIndex]=key}}return result}function baseInvoke(collection,methodName,args){var index=-1,isFunc=typeof methodName=="function",length=collection?collection.length:0,result=isLength(length)?Array(length):[];baseEach(collection,function(value){var func=isFunc?methodName:value!=null&&value[methodName];result[++index]=func?func.apply(value,args):undefined});return result}function baseIsEqual(value,other,customizer,isWhere,stackA,stackB){if(value===other){return value!==0||1/value==1/other}var valType=typeof value,othType=typeof other;if(valType!="function"&&valType!="object"&&othType!="function"&&othType!="object"||value==null||other==null){return value!==value&&other!==other}return baseIsEqualDeep(value,other,baseIsEqual,customizer,isWhere,stackA,stackB)}function baseIsEqualDeep(object,other,equalFunc,customizer,isWhere,stackA,stackB){var objIsArr=isArray(object),othIsArr=isArray(other),objTag=arrayTag,othTag=arrayTag;if(!objIsArr){objTag=objToString.call(object);if(objTag==argsTag){objTag=objectTag}else if(objTag!=objectTag){objIsArr=isTypedArray(object)}}if(!othIsArr){othTag=objToString.call(other);if(othTag==argsTag){othTag=objectTag}else if(othTag!=objectTag){othIsArr=isTypedArray(other)}}var objIsObj=objTag==objectTag,othIsObj=othTag==objectTag,isSameTag=objTag==othTag;if(isSameTag&&!(objIsArr||objIsObj)){return equalByTag(object,other,objTag)}var valWrapped=objIsObj&&hasOwnProperty.call(object,"__wrapped__"),othWrapped=othIsObj&&hasOwnProperty.call(other,"__wrapped__");if(valWrapped||othWrapped){return equalFunc(valWrapped?object.value():object,othWrapped?other.value():other,customizer,isWhere,stackA,stackB)}if(!isSameTag){return false}stackA||(stackA=[]);stackB||(stackB=[]);var length=stackA.length;while(length--){if(stackA[length]==object){return stackB[length]==other}}stackA.push(object);stackB.push(other);var result=(objIsArr?equalArrays:equalObjects)(object,other,equalFunc,customizer,isWhere,stackA,stackB);stackA.pop();stackB.pop();return result}function baseIsMatch(object,props,values,strictCompareFlags,customizer){var length=props.length;if(object==null){return!length}var index=-1,noCustomizer=!customizer;while(++index<length){if(noCustomizer&&strictCompareFlags[index]?values[index]!==object[props[index]]:!hasOwnProperty.call(object,props[index])){return false}}index=-1;while(++index<length){var key=props[index];if(noCustomizer&&strictCompareFlags[index]){var result=hasOwnProperty.call(object,key)}else{var objValue=object[key],srcValue=values[index];result=customizer?customizer(objValue,srcValue,key):undefined;if(typeof result=="undefined"){result=baseIsEqual(srcValue,objValue,customizer,true)}}if(!result){return false}}return true}function baseMap(collection,iteratee){var result=[];baseEach(collection,function(value,key,collection){result.push(iteratee(value,key,collection))});return result}function baseMatches(source,isCloned){var props=keys(source),length=props.length;if(length==1){var key=props[0],value=source[key];if(isStrictComparable(value)){return function(object){return object!=null&&value===object[key]&&hasOwnProperty.call(object,key)}}}if(isCloned){source=baseClone(source,true)}var values=Array(length),strictCompareFlags=Array(length);while(length--){value=source[props[length]];values[length]=value;strictCompareFlags[length]=isStrictComparable(value)}return function(object){return baseIsMatch(object,props,values,strictCompareFlags)}}function baseMerge(object,source,customizer,stackA,stackB){var isSrcArr=isLength(source.length)&&(isArray(source)||isTypedArray(source));(isSrcArr?arrayEach:baseForOwn)(source,function(srcValue,key,source){if(isObjectLike(srcValue)){stackA||(stackA=[]);stackB||(stackB=[]);return baseMergeDeep(object,source,key,baseMerge,customizer,stackA,stackB)}var value=object[key],result=customizer?customizer(value,srcValue,key,object,source):undefined,isCommon=typeof result=="undefined";if(isCommon){result=srcValue}if((isSrcArr||typeof result!="undefined")&&(isCommon||(result===result?result!==value:value===value))){object[key]=result}});return object}function baseMergeDeep(object,source,key,mergeFunc,customizer,stackA,stackB){var length=stackA.length,srcValue=source[key];while(length--){if(stackA[length]==srcValue){object[key]=stackB[length];return}}var value=object[key],result=customizer?customizer(value,srcValue,key,object,source):undefined,isCommon=typeof result=="undefined";if(isCommon){result=srcValue;if(isLength(srcValue.length)&&(isArray(srcValue)||isTypedArray(srcValue))){result=isArray(value)?value:value?arrayCopy(value):[]}else if(isPlainObject(srcValue)||isArguments(srcValue)){result=isArguments(value)?toPlainObject(value):isPlainObject(value)?value:{}}}stackA.push(srcValue);stackB.push(result);if(isCommon){object[key]=mergeFunc(result,srcValue,customizer,stackA,stackB)}else if(result===result?result!==value:value===value){object[key]=result}}function baseProperty(key){return function(object){return object==null?undefined:object[key]}}function basePullAt(array,indexes){var length=indexes.length,result=baseAt(array,indexes);indexes.sort(baseCompareAscending);while(length--){var index=parseFloat(indexes[length]);if(index!=previous&&isIndex(index)){var previous=index;splice.call(array,index,1)}}return result}function baseRandom(min,max){return min+floor(nativeRandom()*(max-min+1))}function baseReduce(collection,iteratee,accumulator,initFromCollection,eachFunc){eachFunc(collection,function(value,index,collection){accumulator=initFromCollection?(initFromCollection=false,value):iteratee(accumulator,value,index,collection)});return accumulator}var baseSetData=!metaMap?identity:function(func,data){metaMap.set(func,data);return func};function baseSlice(array,start,end){var index=-1,length=array.length;start=start==null?0:+start||0;if(start<0){start=-start>length?0:length+start}end=typeof end=="undefined"||end>length?length:+end||0;if(end<0){end+=length}length=start>end?0:end-start;var result=Array(length);while(++index<length){result[index]=array[index+start]}return result}function baseSome(collection,predicate){var result;baseEach(collection,function(value,index,collection){result=predicate(value,index,collection);return!result});return!!result}function baseUniq(array,iteratee){var index=-1,indexOf=getIndexOf(),length=array.length,isCommon=indexOf==baseIndexOf,isLarge=isCommon&&length>=200,seen=isLarge&&createCache(),result=[];if(seen){indexOf=cacheIndexOf;isCommon=false}else{isLarge=false;seen=iteratee?[]:result}outer:while(++index<length){var value=array[index],computed=iteratee?iteratee(value,index,array):value;if(isCommon&&value===value){var seenIndex=seen.length;while(seenIndex--){if(seen[seenIndex]===computed){continue outer}}if(iteratee){seen.push(computed)}result.push(value)}else if(indexOf(seen,computed)<0){if(iteratee||isLarge){seen.push(computed)}result.push(value)}}return result}function baseValues(object,props){var index=-1,length=props.length,result=Array(length);while(++index<length){result[index]=object[props[index]]}return result}function baseWrapperValue(value,actions){var result=value;if(result instanceof LazyWrapper){result=result.value()}var index=-1,length=actions.length;while(++index<length){var args=[result],action=actions[index];push.apply(args,action.args);result=action.func.apply(action.thisArg,args)}return result}function binaryIndex(array,value,retHighest){var low=0,high=array?array.length:low;if(typeof value=="number"&&value===value&&high<=HALF_MAX_ARRAY_LENGTH){while(low<high){var mid=low+high>>>1,computed=array[mid];if(retHighest?computed<=value:computed<value){low=mid+1}else{high=mid}}return high}return binaryIndexBy(array,value,identity,retHighest)}function binaryIndexBy(array,value,iteratee,retHighest){value=iteratee(value);var low=0,high=array?array.length:0,valIsNaN=value!==value,valIsUndef=typeof value=="undefined";while(low<high){var mid=floor((low+high)/2),computed=iteratee(array[mid]),isReflexive=computed===computed;if(valIsNaN){var setLow=isReflexive||retHighest}else if(valIsUndef){setLow=isReflexive&&(retHighest||typeof computed!="undefined")}else{setLow=retHighest?computed<=value:computed<value}if(setLow){low=mid+1}else{high=mid}}return nativeMin(high,MAX_ARRAY_INDEX)}function bindCallback(func,thisArg,argCount){if(typeof func!="function"){return identity}if(typeof thisArg=="undefined"){return func}switch(argCount){case 1:return function(value){return func.call(thisArg,value)};case 3:return function(value,index,collection){return func.call(thisArg,value,index,collection)};case 4:return function(accumulator,value,index,collection){return func.call(thisArg,accumulator,value,index,collection)};case 5:return function(value,other,key,object,source){return func.call(thisArg,value,other,key,object,source)}}return function(){return func.apply(thisArg,arguments)}}function bufferClone(buffer){return bufferSlice.call(buffer,0)}if(!bufferSlice){bufferClone=!(ArrayBuffer&&Uint8Array)?constant(null):function(buffer){var byteLength=buffer.byteLength,floatLength=Float64Array?floor(byteLength/FLOAT64_BYTES_PER_ELEMENT):0,offset=floatLength*FLOAT64_BYTES_PER_ELEMENT,result=new ArrayBuffer(byteLength);if(floatLength){var view=new Float64Array(result,0,floatLength);view.set(new Float64Array(buffer,0,floatLength))}if(byteLength!=offset){view=new Uint8Array(result,offset);view.set(new Uint8Array(buffer,offset))}return result}}function composeArgs(args,partials,holders){var holdersLength=holders.length,argsIndex=-1,argsLength=nativeMax(args.length-holdersLength,0),leftIndex=-1,leftLength=partials.length,result=Array(argsLength+leftLength);while(++leftIndex<leftLength){result[leftIndex]=partials[leftIndex]}while(++argsIndex<holdersLength){result[holders[argsIndex]]=args[argsIndex]}while(argsLength--){result[leftIndex++]=args[argsIndex++]}return result}function composeArgsRight(args,partials,holders){var holdersIndex=-1,holdersLength=holders.length,argsIndex=-1,argsLength=nativeMax(args.length-holdersLength,0),rightIndex=-1,rightLength=partials.length,result=Array(argsLength+rightLength);while(++argsIndex<argsLength){result[argsIndex]=args[argsIndex]}var pad=argsIndex;while(++rightIndex<rightLength){result[pad+rightIndex]=partials[rightIndex]}while(++holdersIndex<holdersLength){result[pad+holders[holdersIndex]]=args[argsIndex++]}return result}function createAggregator(setter,initializer){return function(collection,iteratee,thisArg){var result=initializer?initializer():{};iteratee=getCallback(iteratee,thisArg,3);if(isArray(collection)){var index=-1,length=collection.length;while(++index<length){var value=collection[index];setter(result,value,iteratee(value,index,collection),collection)}}else{baseEach(collection,function(value,key,collection){setter(result,value,iteratee(value,key,collection),collection)})}return result}}function createAssigner(assigner){return function(){var length=arguments.length,object=arguments[0];if(length<2||object==null){return object}if(length>3&&isIterateeCall(arguments[1],arguments[2],arguments[3])){length=2}if(length>3&&typeof arguments[length-2]=="function"){var customizer=bindCallback(arguments[--length-1],arguments[length--],5)
}else if(length>2&&typeof arguments[length-1]=="function"){customizer=arguments[--length]}var index=0;while(++index<length){var source=arguments[index];if(source){assigner(object,source,customizer)}}return object}}function createBindWrapper(func,thisArg){var Ctor=createCtorWrapper(func);function wrapper(){return(this instanceof wrapper?Ctor:func).apply(thisArg,arguments)}return wrapper}var createCache=!(nativeCreate&&Set)?constant(null):function(values){return new SetCache(values)};function createCompounder(callback){return function(string){var index=-1,array=words(deburr(string)),length=array.length,result="";while(++index<length){result=callback(result,array[index],index)}return result}}function createCtorWrapper(Ctor){return function(){var thisBinding=baseCreate(Ctor.prototype),result=Ctor.apply(thisBinding,arguments);return isObject(result)?result:thisBinding}}function createExtremum(arrayFunc,isMin){return function(collection,iteratee,thisArg){if(thisArg&&isIterateeCall(collection,iteratee,thisArg)){iteratee=null}var func=getCallback(),noIteratee=iteratee==null;if(!(func===baseCallback&&noIteratee)){noIteratee=false;iteratee=func(iteratee,thisArg,3)}if(noIteratee){var isArr=isArray(collection);if(!isArr&&isString(collection)){iteratee=charAtCallback}else{return arrayFunc(isArr?collection:toIterable(collection))}}return extremumBy(collection,iteratee,isMin)}}function createHybridWrapper(func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary,arity){var isAry=bitmask&ARY_FLAG,isBind=bitmask&BIND_FLAG,isBindKey=bitmask&BIND_KEY_FLAG,isCurry=bitmask&CURRY_FLAG,isCurryBound=bitmask&CURRY_BOUND_FLAG,isCurryRight=bitmask&CURRY_RIGHT_FLAG;var Ctor=!isBindKey&&createCtorWrapper(func),key=func;function wrapper(){var length=arguments.length,index=length,args=Array(length);while(index--){args[index]=arguments[index]}if(partials){args=composeArgs(args,partials,holders)}if(partialsRight){args=composeArgsRight(args,partialsRight,holdersRight)}if(isCurry||isCurryRight){var placeholder=wrapper.placeholder,argsHolders=replaceHolders(args,placeholder);length-=argsHolders.length;if(length<arity){var newArgPos=argPos?arrayCopy(argPos):null,newArity=nativeMax(arity-length,0),newsHolders=isCurry?argsHolders:null,newHoldersRight=isCurry?null:argsHolders,newPartials=isCurry?args:null,newPartialsRight=isCurry?null:args;bitmask|=isCurry?PARTIAL_FLAG:PARTIAL_RIGHT_FLAG;bitmask&=~(isCurry?PARTIAL_RIGHT_FLAG:PARTIAL_FLAG);if(!isCurryBound){bitmask&=~(BIND_FLAG|BIND_KEY_FLAG)}var result=createHybridWrapper(func,bitmask,thisArg,newPartials,newsHolders,newPartialsRight,newHoldersRight,newArgPos,ary,newArity);result.placeholder=placeholder;return result}}var thisBinding=isBind?thisArg:this;if(isBindKey){func=thisBinding[key]}if(argPos){args=reorder(args,argPos)}if(isAry&&ary<args.length){args.length=ary}return(this instanceof wrapper?Ctor||createCtorWrapper(func):func).apply(thisBinding,args)}return wrapper}function createPad(string,length,chars){var strLength=string.length;length=+length;if(strLength>=length||!nativeIsFinite(length)){return""}var padLength=length-strLength;chars=chars==null?" ":baseToString(chars);return repeat(chars,ceil(padLength/chars.length)).slice(0,padLength)}function createPartialWrapper(func,bitmask,thisArg,partials){var isBind=bitmask&BIND_FLAG,Ctor=createCtorWrapper(func);function wrapper(){var argsIndex=-1,argsLength=arguments.length,leftIndex=-1,leftLength=partials.length,args=Array(argsLength+leftLength);while(++leftIndex<leftLength){args[leftIndex]=partials[leftIndex]}while(argsLength--){args[leftIndex++]=arguments[++argsIndex]}return(this instanceof wrapper?Ctor:func).apply(isBind?thisArg:this,args)}return wrapper}function createWrapper(func,bitmask,thisArg,partials,holders,argPos,ary,arity){var isBindKey=bitmask&BIND_KEY_FLAG;if(!isBindKey&&!isFunction(func)){throw new TypeError(FUNC_ERROR_TEXT)}var length=partials?partials.length:0;if(!length){bitmask&=~(PARTIAL_FLAG|PARTIAL_RIGHT_FLAG);partials=holders=null}length-=holders?holders.length:0;if(bitmask&PARTIAL_RIGHT_FLAG){var partialsRight=partials,holdersRight=holders;partials=holders=null}var data=!isBindKey&&getData(func),newData=[func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary,arity];if(data&&data!==true){mergeData(newData,data);bitmask=newData[1];arity=newData[9]}newData[9]=arity==null?isBindKey?0:func.length:nativeMax(arity-length,0)||0;if(bitmask==BIND_FLAG){var result=createBindWrapper(newData[0],newData[2])}else if((bitmask==PARTIAL_FLAG||bitmask==(BIND_FLAG|PARTIAL_FLAG))&&!newData[4].length){result=createPartialWrapper.apply(null,newData)}else{result=createHybridWrapper.apply(null,newData)}var setter=data?baseSetData:setData;return setter(result,newData)}function equalArrays(array,other,equalFunc,customizer,isWhere,stackA,stackB){var index=-1,arrLength=array.length,othLength=other.length,result=true;if(arrLength!=othLength&&!(isWhere&&othLength>arrLength)){return false}while(result&&++index<arrLength){var arrValue=array[index],othValue=other[index];result=undefined;if(customizer){result=isWhere?customizer(othValue,arrValue,index):customizer(arrValue,othValue,index)}if(typeof result=="undefined"){if(isWhere){var othIndex=othLength;while(othIndex--){othValue=other[othIndex];result=arrValue&&arrValue===othValue||equalFunc(arrValue,othValue,customizer,isWhere,stackA,stackB);if(result){break}}}else{result=arrValue&&arrValue===othValue||equalFunc(arrValue,othValue,customizer,isWhere,stackA,stackB)}}}return!!result}function equalByTag(object,other,tag){switch(tag){case boolTag:case dateTag:return+object==+other;case errorTag:return object.name==other.name&&object.message==other.message;case numberTag:return object!=+object?other!=+other:object==0?1/object==1/other:object==+other;case regexpTag:case stringTag:return object==baseToString(other)}return false}function equalObjects(object,other,equalFunc,customizer,isWhere,stackA,stackB){var objProps=keys(object),objLength=objProps.length,othProps=keys(other),othLength=othProps.length;if(objLength!=othLength&&!isWhere){return false}var hasCtor,index=-1;while(++index<objLength){var key=objProps[index],result=hasOwnProperty.call(other,key);if(result){var objValue=object[key],othValue=other[key];result=undefined;if(customizer){result=isWhere?customizer(othValue,objValue,key):customizer(objValue,othValue,key)}if(typeof result=="undefined"){result=objValue&&objValue===othValue||equalFunc(objValue,othValue,customizer,isWhere,stackA,stackB)}}if(!result){return false}hasCtor||(hasCtor=key=="constructor")}if(!hasCtor){var objCtor=object.constructor,othCtor=other.constructor;if(objCtor!=othCtor&&("constructor"in object&&"constructor"in other)&&!(typeof objCtor=="function"&&objCtor instanceof objCtor&&typeof othCtor=="function"&&othCtor instanceof othCtor)){return false}}return true}function extremumBy(collection,iteratee,isMin){var exValue=isMin?POSITIVE_INFINITY:NEGATIVE_INFINITY,computed=exValue,result=computed;baseEach(collection,function(value,index,collection){var current=iteratee(value,index,collection);if((isMin?current<computed:current>computed)||current===exValue&¤t===result){computed=current;result=value}});return result}function getCallback(func,thisArg,argCount){var result=lodash.callback||callback;result=result===callback?baseCallback:result;return argCount?result(func,thisArg,argCount):result}var getData=!metaMap?noop:function(func){return metaMap.get(func)};function getIndexOf(collection,target,fromIndex){var result=lodash.indexOf||indexOf;result=result===indexOf?baseIndexOf:result;return collection?result(collection,target,fromIndex):result}function getView(start,end,transforms){var index=-1,length=transforms?transforms.length:0;while(++index<length){var data=transforms[index],size=data.size;switch(data.type){case"drop":start+=size;break;case"dropRight":end-=size;break;case"take":end=nativeMin(end,start+size);break;case"takeRight":start=nativeMax(start,end-size);break}}return{start:start,end:end}}function initCloneArray(array){var length=array.length,result=new array.constructor(length);if(length&&typeof array[0]=="string"&&hasOwnProperty.call(array,"index")){result.index=array.index;result.input=array.input}return result}function initCloneObject(object){var Ctor=object.constructor;if(!(typeof Ctor=="function"&&Ctor instanceof Ctor)){Ctor=Object}return new Ctor}function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag:return bufferClone(object);case boolTag:case dateTag:return new Ctor(+object);case float32Tag:case float64Tag:case int8Tag:case int16Tag:case int32Tag:case uint8Tag:case uint8ClampedTag:case uint16Tag:case uint32Tag:var buffer=object.buffer;return new Ctor(isDeep?bufferClone(buffer):buffer,object.byteOffset,object.length);case numberTag:case stringTag:return new Ctor(object);case regexpTag:var result=new Ctor(object.source,reFlags.exec(object));result.lastIndex=object.lastIndex}return result}function isBindable(func){var support=lodash.support,result=!(support.funcNames?func.name:support.funcDecomp);if(!result){var source=fnToString.call(func);if(!support.funcNames){result=!reFuncName.test(source)}if(!result){result=reThis.test(source)||isNative(func);baseSetData(func,result)}}return result}function isIndex(value,length){value=+value;length=length==null?MAX_SAFE_INTEGER:length;return value>-1&&value%1==0&&value<length}function isIterateeCall(value,index,object){if(!isObject(object)){return false}var type=typeof index;if(type=="number"){var length=object.length,prereq=isLength(length)&&isIndex(index,length)}else{prereq=type=="string"&&index in value}return prereq&&object[index]===value}function isLength(value){return typeof value=="number"&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function isStrictComparable(value){return value===value&&(value===0?1/value>0:!isObject(value))}function mergeData(data,source){var bitmask=data[1],srcBitmask=source[1],newBitmask=bitmask|srcBitmask;var arityFlags=ARY_FLAG|REARG_FLAG,bindFlags=BIND_FLAG|BIND_KEY_FLAG,comboFlags=arityFlags|bindFlags|CURRY_BOUND_FLAG|CURRY_RIGHT_FLAG;var isAry=bitmask&ARY_FLAG&&!(srcBitmask&ARY_FLAG),isRearg=bitmask&REARG_FLAG&&!(srcBitmask&REARG_FLAG),argPos=(isRearg?data:source)[7],ary=(isAry?data:source)[8];var isCommon=!(bitmask>=REARG_FLAG&&srcBitmask>bindFlags)&&!(bitmask>bindFlags&&srcBitmask>=REARG_FLAG);var isCombo=newBitmask>=arityFlags&&newBitmask<=comboFlags&&(bitmask<REARG_FLAG||(isRearg||isAry)&&argPos.length<=ary);if(!(isCommon||isCombo)){return data}if(srcBitmask&BIND_FLAG){data[2]=source[2];newBitmask|=bitmask&BIND_FLAG?0:CURRY_BOUND_FLAG}var value=source[3];if(value){var partials=data[3];data[3]=partials?composeArgs(partials,value,source[4]):arrayCopy(value);data[4]=partials?replaceHolders(data[3],PLACEHOLDER):arrayCopy(source[4])}value=source[5];if(value){partials=data[5];data[5]=partials?composeArgsRight(partials,value,source[6]):arrayCopy(value);data[6]=partials?replaceHolders(data[5],PLACEHOLDER):arrayCopy(source[6])}value=source[7];if(value){data[7]=arrayCopy(value)}if(srcBitmask&ARY_FLAG){data[8]=data[8]==null?source[8]:nativeMin(data[8],source[8])}if(data[9]==null){data[9]=source[9]}data[0]=source[0];data[1]=newBitmask;return data}function pickByArray(object,props){object=toObject(object);var index=-1,length=props.length,result={};while(++index<length){var key=props[index];if(key in object){result[key]=object[key]}}return result}function pickByCallback(object,predicate){var result={};baseForIn(object,function(value,key,object){if(predicate(value,key,object)){result[key]=value}});return result}function reorder(array,indexes){var arrLength=array.length,length=nativeMin(indexes.length,arrLength),oldArray=arrayCopy(array);while(length--){var index=indexes[length];array[length]=isIndex(index,arrLength)?oldArray[index]:undefined}return array}var setData=function(){var count=0,lastCalled=0;return function(key,value){var stamp=now(),remaining=HOT_SPAN-(stamp-lastCalled);lastCalled=stamp;if(remaining>0){if(++count>=HOT_COUNT){return key}}else{count=0}return baseSetData(key,value)}}();function shimIsPlainObject(value){var Ctor,support=lodash.support;if(!(isObjectLike(value)&&objToString.call(value)==objectTag)||!hasOwnProperty.call(value,"constructor")&&(Ctor=value.constructor,typeof Ctor=="function"&&!(Ctor instanceof Ctor))){return false}var result;baseForIn(value,function(subValue,key){result=key});return typeof result=="undefined"||hasOwnProperty.call(value,result)}function shimKeys(object){var props=keysIn(object),propsLength=props.length,length=propsLength&&object.length,support=lodash.support;var allowIndexes=length&&isLength(length)&&(isArray(object)||support.nonEnumArgs&&isArguments(object));var index=-1,result=[];while(++index<propsLength){var key=props[index];if(allowIndexes&&isIndex(key,length)||hasOwnProperty.call(object,key)){result.push(key)}}return result}function toIterable(value){if(value==null){return[]}if(!isLength(value.length)){return values(value)}return isObject(value)?value:Object(value)}function toObject(value){return isObject(value)?value:Object(value)}function chunk(array,size,guard){if(guard?isIterateeCall(array,size,guard):size==null){size=1}else{size=nativeMax(+size||1,1)}var index=0,length=array?array.length:0,resIndex=-1,result=Array(ceil(length/size));while(index<length){result[++resIndex]=baseSlice(array,index,index+=size)}return result}function compact(array){var index=-1,length=array?array.length:0,resIndex=-1,result=[];while(++index<length){var value=array[index];if(value){result[++resIndex]=value}}return result}function difference(){var index=-1,length=arguments.length;while(++index<length){var value=arguments[index];if(isArray(value)||isArguments(value)){break}}return baseDifference(value,baseFlatten(arguments,false,true,++index))}function drop(array,n,guard){var length=array?array.length:0;if(!length){return[]}if(guard?isIterateeCall(array,n,guard):n==null){n=1}return baseSlice(array,n<0?0:n)}function dropRight(array,n,guard){var length=array?array.length:0;if(!length){return[]}if(guard?isIterateeCall(array,n,guard):n==null){n=1}n=length-(+n||0);return baseSlice(array,0,n<0?0:n)}function dropRightWhile(array,predicate,thisArg){var length=array?array.length:0;if(!length){return[]}predicate=getCallback(predicate,thisArg,3);while(length--&&predicate(array[length],length,array)){}return baseSlice(array,0,length+1)}function dropWhile(array,predicate,thisArg){var length=array?array.length:0;if(!length){return[]}var index=-1;predicate=getCallback(predicate,thisArg,3);while(++index<length&&predicate(array[index],index,array)){}return baseSlice(array,index)}function findIndex(array,predicate,thisArg){var index=-1,length=array?array.length:0;predicate=getCallback(predicate,thisArg,3);while(++index<length){if(predicate(array[index],index,array)){return index}}return-1}function findLastIndex(array,predicate,thisArg){var length=array?array.length:0;predicate=getCallback(predicate,thisArg,3);while(length--){if(predicate(array[length],length,array)){return length}}return-1}function first(array){return array?array[0]:undefined}function flatten(array,isDeep,guard){var length=array?array.length:0;if(guard&&isIterateeCall(array,isDeep,guard)){isDeep=false}return length?baseFlatten(array,isDeep):[]}function flattenDeep(array){var length=array?array.length:0;return length?baseFlatten(array,true):[]}function indexOf(array,value,fromIndex){var length=array?array.length:0;if(!length){return-1}if(typeof fromIndex=="number"){fromIndex=fromIndex<0?nativeMax(length+fromIndex,0):fromIndex||0}else if(fromIndex){var index=binaryIndex(array,value),other=array[index];return(value===value?value===other:other!==other)?index:-1}return baseIndexOf(array,value,fromIndex)}function initial(array){return dropRight(array,1)}function intersection(){var args=[],argsIndex=-1,argsLength=arguments.length,caches=[],indexOf=getIndexOf(),isCommon=indexOf==baseIndexOf;while(++argsIndex<argsLength){var value=arguments[argsIndex];if(isArray(value)||isArguments(value)){args.push(value);caches.push(isCommon&&value.length>=120&&createCache(argsIndex&&value))}}argsLength=args.length;var array=args[0],index=-1,length=array?array.length:0,result=[],seen=caches[0];outer:while(++index<length){value=array[index];if((seen?cacheIndexOf(seen,value):indexOf(result,value))<0){argsIndex=argsLength;while(--argsIndex){var cache=caches[argsIndex];if((cache?cacheIndexOf(cache,value):indexOf(args[argsIndex],value))<0){continue outer}}if(seen){seen.push(value)}result.push(value)}}return result}function last(array){var length=array?array.length:0;return length?array[length-1]:undefined}function lastIndexOf(array,value,fromIndex){var length=array?array.length:0;if(!length){return-1}var index=length;if(typeof fromIndex=="number"){index=(fromIndex<0?nativeMax(length+fromIndex,0):nativeMin(fromIndex||0,length-1))+1}else if(fromIndex){index=binaryIndex(array,value,true)-1;var other=array[index];return(value===value?value===other:other!==other)?index:-1}if(value!==value){return indexOfNaN(array,index,true)}while(index--){if(array[index]===value){return index}}return-1}function pull(){var array=arguments[0];if(!(array&&array.length)){return array}var index=0,indexOf=getIndexOf(),length=arguments.length;while(++index<length){var fromIndex=0,value=arguments[index];while((fromIndex=indexOf(array,value,fromIndex))>-1){splice.call(array,fromIndex,1)}}return array}function pullAt(array){return basePullAt(array||[],baseFlatten(arguments,false,false,1))}function remove(array,predicate,thisArg){var index=-1,length=array?array.length:0,result=[];predicate=getCallback(predicate,thisArg,3);while(++index<length){var value=array[index];if(predicate(value,index,array)){result.push(value);splice.call(array,index--,1);length--}}return result}function rest(array){return drop(array,1)}function slice(array,start,end){var length=array?array.length:0;if(!length){return[]}if(end&&typeof end!="number"&&isIterateeCall(array,start,end)){start=0;end=length}return baseSlice(array,start,end)}function sortedIndex(array,value,iteratee,thisArg){var func=getCallback(iteratee);return func===baseCallback&&iteratee==null?binaryIndex(array,value):binaryIndexBy(array,value,func(iteratee,thisArg,1))}function sortedLastIndex(array,value,iteratee,thisArg){var func=getCallback(iteratee);return func===baseCallback&&iteratee==null?binaryIndex(array,value,true):binaryIndexBy(array,value,func(iteratee,thisArg,1),true)}function take(array,n,guard){var length=array?array.length:0;if(!length){return[]}if(guard?isIterateeCall(array,n,guard):n==null){n=1}return baseSlice(array,0,n<0?0:n)}function takeRight(array,n,guard){var length=array?array.length:0;if(!length){return[]}if(guard?isIterateeCall(array,n,guard):n==null){n=1}n=length-(+n||0);return baseSlice(array,n<0?0:n)}function takeRightWhile(array,predicate,thisArg){var length=array?array.length:0;if(!length){return[]}predicate=getCallback(predicate,thisArg,3);while(length--&&predicate(array[length],length,array)){}return baseSlice(array,length+1)}function takeWhile(array,predicate,thisArg){var length=array?array.length:0;if(!length){return[]}var index=-1;predicate=getCallback(predicate,thisArg,3);while(++index<length&&predicate(array[index],index,array)){}return baseSlice(array,0,index)}function union(){return baseUniq(baseFlatten(arguments,false,true))}function uniq(array,isSorted,iteratee,thisArg){var length=array?array.length:0;if(!length){return[]}if(typeof isSorted!="boolean"&&isSorted!=null){thisArg=iteratee;iteratee=isIterateeCall(array,isSorted,thisArg)?null:isSorted;isSorted=false}var func=getCallback();if(!(func===baseCallback&&iteratee==null)){iteratee=func(iteratee,thisArg,3)}return isSorted&&getIndexOf()==baseIndexOf?sortedUniq(array,iteratee):baseUniq(array,iteratee)}function unzip(array){var index=-1,length=(array&&array.length&&arrayMax(arrayMap(array,getLength)))>>>0,result=Array(length);while(++index<length){result[index]=arrayMap(array,baseProperty(index))}return result}function without(array){return baseDifference(array,baseSlice(arguments,1))}function xor(){var index=-1,length=arguments.length;while(++index<length){var array=arguments[index];if(isArray(array)||isArguments(array)){var result=result?baseDifference(result,array).concat(baseDifference(array,result)):array}}return result?baseUniq(result):[]}function zip(){var length=arguments.length,array=Array(length);while(length--){array[length]=arguments[length]}return unzip(array)}function zipObject(props,values){var index=-1,length=props?props.length:0,result={};if(length&&!values&&!isArray(props[0])){values=[]}while(++index<length){var key=props[index];if(values){result[key]=values[index]}else if(key){result[key[0]]=key[1]}}return result}function chain(value){var result=lodash(value);result.__chain__=true;return result}function tap(value,interceptor,thisArg){interceptor.call(thisArg,value);return value}function thru(value,interceptor,thisArg){return interceptor.call(thisArg,value)}function wrapperChain(){return chain(this)}function wrapperReverse(){var value=this.__wrapped__;if(value instanceof LazyWrapper){return new LodashWrapper(value.reverse())}return this.thru(function(value){return value.reverse()})}function wrapperToString(){return this.value()+""}function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__)}function at(collection){var length=collection?collection.length:0;if(isLength(length)){collection=toIterable(collection)}return baseAt(collection,baseFlatten(arguments,false,false,1))}function includes(collection,target,fromIndex){var length=collection?collection.length:0;if(!isLength(length)){collection=values(collection);length=collection.length}if(!length){return false}if(typeof fromIndex=="number"){fromIndex=fromIndex<0?nativeMax(length+fromIndex,0):fromIndex||0}else{fromIndex=0}return typeof collection=="string"||!isArray(collection)&&isString(collection)?fromIndex<length&&collection.indexOf(target,fromIndex)>-1:getIndexOf(collection,target,fromIndex)>-1}var countBy=createAggregator(function(result,value,key){hasOwnProperty.call(result,key)?++result[key]:result[key]=1});function every(collection,predicate,thisArg){var func=isArray(collection)?arrayEvery:baseEvery;if(typeof predicate!="function"||typeof thisArg!="undefined"){predicate=getCallback(predicate,thisArg,3)}return func(collection,predicate)}function filter(collection,predicate,thisArg){var func=isArray(collection)?arrayFilter:baseFilter;predicate=getCallback(predicate,thisArg,3);return func(collection,predicate)}function find(collection,predicate,thisArg){if(isArray(collection)){var index=findIndex(collection,predicate,thisArg);return index>-1?collection[index]:undefined}predicate=getCallback(predicate,thisArg,3);return baseFind(collection,predicate,baseEach)}function findLast(collection,predicate,thisArg){predicate=getCallback(predicate,thisArg,3);return baseFind(collection,predicate,baseEachRight)}function findWhere(collection,source){return find(collection,matches(source))}function forEach(collection,iteratee,thisArg){return typeof iteratee=="function"&&typeof thisArg=="undefined"&&isArray(collection)?arrayEach(collection,iteratee):baseEach(collection,bindCallback(iteratee,thisArg,3))}function forEachRight(collection,iteratee,thisArg){return typeof iteratee=="function"&&typeof thisArg=="undefined"&&isArray(collection)?arrayEachRight(collection,iteratee):baseEachRight(collection,bindCallback(iteratee,thisArg,3))}var groupBy=createAggregator(function(result,value,key){if(hasOwnProperty.call(result,key)){result[key].push(value)}else{result[key]=[value]}});var indexBy=createAggregator(function(result,value,key){result[key]=value});function invoke(collection,methodName){return baseInvoke(collection,methodName,baseSlice(arguments,2))}function map(collection,iteratee,thisArg){var func=isArray(collection)?arrayMap:baseMap;iteratee=getCallback(iteratee,thisArg,3);return func(collection,iteratee)}var max=createExtremum(arrayMax);var min=createExtremum(arrayMin,true);var partition=createAggregator(function(result,value,key){result[key?0:1].push(value)},function(){return[[],[]]});function pluck(collection,key){return map(collection,property(key))}function reduce(collection,iteratee,accumulator,thisArg){var func=isArray(collection)?arrayReduce:baseReduce;return func(collection,getCallback(iteratee,thisArg,4),accumulator,arguments.length<3,baseEach)}function reduceRight(collection,iteratee,accumulator,thisArg){var func=isArray(collection)?arrayReduceRight:baseReduce;return func(collection,getCallback(iteratee,thisArg,4),accumulator,arguments.length<3,baseEachRight)}function reject(collection,predicate,thisArg){var func=isArray(collection)?arrayFilter:baseFilter;predicate=getCallback(predicate,thisArg,3);return func(collection,function(value,index,collection){return!predicate(value,index,collection)})}function sample(collection,n,guard){if(guard?isIterateeCall(collection,n,guard):n==null){collection=toIterable(collection);var length=collection.length;return length>0?collection[baseRandom(0,length-1)]:undefined}var result=shuffle(collection);result.length=nativeMin(n<0?0:+n||0,result.length);return result}function shuffle(collection){collection=toIterable(collection);var index=-1,length=collection.length,result=Array(length);while(++index<length){var rand=baseRandom(0,index);if(index!=rand){result[index]=result[rand]}result[rand]=collection[index]}return result}function size(collection){var length=collection?collection.length:0;return isLength(length)?length:keys(collection).length}function some(collection,predicate,thisArg){var func=isArray(collection)?arraySome:baseSome;if(typeof predicate!="function"||typeof thisArg!="undefined"){predicate=getCallback(predicate,thisArg,3)}return func(collection,predicate)}function sortBy(collection,iteratee,thisArg){var index=-1,length=collection?collection.length:0,result=isLength(length)?Array(length):[];if(thisArg&&isIterateeCall(collection,iteratee,thisArg)){iteratee=null}iteratee=getCallback(iteratee,thisArg,3);baseEach(collection,function(value,key,collection){result[++index]={criteria:iteratee(value,key,collection),index:index,value:value}});return baseSortBy(result,compareAscending)}function sortByAll(collection){var args=arguments;if(args.length>3&&isIterateeCall(args[1],args[2],args[3])){args=[collection,args[1]]}var index=-1,length=collection?collection.length:0,props=baseFlatten(args,false,false,1),result=isLength(length)?Array(length):[];baseEach(collection,function(value,key,collection){var length=props.length,criteria=Array(length);while(length--){criteria[length]=value==null?undefined:value[props[length]]}result[++index]={criteria:criteria,index:index,value:value}});return baseSortBy(result,compareMultipleAscending)}function where(collection,source){return filter(collection,matches(source))}var now=nativeNow||function(){return(new Date).getTime()};function after(n,func){if(!isFunction(func)){if(isFunction(n)){var temp=n;n=func;func=temp}else{throw new TypeError(FUNC_ERROR_TEXT)}}n=nativeIsFinite(n=+n)?n:0;return function(){if(--n<1){return func.apply(this,arguments)}}}function ary(func,n,guard){if(guard&&isIterateeCall(func,n,guard)){n=null}n=func&&n==null?func.length:nativeMax(+n||0,0);return createWrapper(func,ARY_FLAG,null,null,null,null,n)}function before(n,func){var result;if(!isFunction(func)){if(isFunction(n)){var temp=n;n=func;func=temp}else{throw new TypeError(FUNC_ERROR_TEXT)}}return function(){if(--n>0){result=func.apply(this,arguments)}else{func=null}return result}}function bind(func,thisArg){var bitmask=BIND_FLAG;if(arguments.length>2){var partials=baseSlice(arguments,2),holders=replaceHolders(partials,bind.placeholder);bitmask|=PARTIAL_FLAG}return createWrapper(func,bitmask,thisArg,partials,holders)}function bindAll(object){return baseBindAll(object,arguments.length>1?baseFlatten(arguments,false,false,1):functions(object))}function bindKey(object,key){var bitmask=BIND_FLAG|BIND_KEY_FLAG;if(arguments.length>2){var partials=baseSlice(arguments,2),holders=replaceHolders(partials,bindKey.placeholder);bitmask|=PARTIAL_FLAG}return createWrapper(key,bitmask,object,partials,holders)}function curry(func,arity,guard){if(guard&&isIterateeCall(func,arity,guard)){arity=null}var result=createWrapper(func,CURRY_FLAG,null,null,null,null,null,arity);result.placeholder=curry.placeholder;return result}function curryRight(func,arity,guard){if(guard&&isIterateeCall(func,arity,guard)){arity=null}var result=createWrapper(func,CURRY_RIGHT_FLAG,null,null,null,null,null,arity);result.placeholder=curryRight.placeholder;return result}function debounce(func,wait,options){var args,maxTimeoutId,result,stamp,thisArg,timeoutId,trailingCall,lastCalled=0,maxWait=false,trailing=true;if(!isFunction(func)){throw new TypeError(FUNC_ERROR_TEXT)}wait=wait<0?0:wait;if(options===true){var leading=true;trailing=false}else if(isObject(options)){leading=options.leading;maxWait="maxWait"in options&&nativeMax(+options.maxWait||0,wait);trailing="trailing"in options?options.trailing:trailing}function cancel(){if(timeoutId){clearTimeout(timeoutId)}if(maxTimeoutId){clearTimeout(maxTimeoutId)}maxTimeoutId=timeoutId=trailingCall=undefined}function delayed(){var remaining=wait-(now()-stamp);if(remaining<=0||remaining>wait){if(maxTimeoutId){clearTimeout(maxTimeoutId)}var isCalled=trailingCall;maxTimeoutId=timeoutId=trailingCall=undefined;if(isCalled){lastCalled=now();result=func.apply(thisArg,args);if(!timeoutId&&!maxTimeoutId){args=thisArg=null}}}else{timeoutId=setTimeout(delayed,remaining)}}function maxDelayed(){if(timeoutId){clearTimeout(timeoutId)}maxTimeoutId=timeoutId=trailingCall=undefined;if(trailing||maxWait!==wait){lastCalled=now();result=func.apply(thisArg,args);if(!timeoutId&&!maxTimeoutId){args=thisArg=null}}}function debounced(){args=arguments;stamp=now();thisArg=this;trailingCall=trailing&&(timeoutId||!leading);if(maxWait===false){var leadingCall=leading&&!timeoutId}else{if(!maxTimeoutId&&!leading){lastCalled=stamp}var remaining=maxWait-(stamp-lastCalled),isCalled=remaining<=0||remaining>maxWait;if(isCalled){if(maxTimeoutId){maxTimeoutId=clearTimeout(maxTimeoutId)}lastCalled=stamp;result=func.apply(thisArg,args)}else if(!maxTimeoutId){maxTimeoutId=setTimeout(maxDelayed,remaining)}}if(isCalled&&timeoutId){timeoutId=clearTimeout(timeoutId)}else if(!timeoutId&&wait!==maxWait){timeoutId=setTimeout(delayed,wait)}if(leadingCall){isCalled=true;result=func.apply(thisArg,args)}if(isCalled&&!timeoutId&&!maxTimeoutId){args=thisArg=null}return result}debounced.cancel=cancel;return debounced}function defer(func){return baseDelay(func,1,arguments,1)}function delay(func,wait){return baseDelay(func,wait,arguments,2)}function flow(){var funcs=arguments,length=funcs.length;if(!length){return function(){}}if(!arrayEvery(funcs,isFunction)){throw new TypeError(FUNC_ERROR_TEXT)}return function(){var index=0,result=funcs[index].apply(this,arguments);while(++index<length){result=funcs[index].call(this,result)}return result}}function flowRight(){var funcs=arguments,fromIndex=funcs.length-1;if(fromIndex<0){return function(){}}if(!arrayEvery(funcs,isFunction)){throw new TypeError(FUNC_ERROR_TEXT)}return function(){var index=fromIndex,result=funcs[index].apply(this,arguments);while(index--){result=funcs[index].call(this,result)}return result}}function memoize(func,resolver){if(!isFunction(func)||resolver&&!isFunction(resolver)){throw new TypeError(FUNC_ERROR_TEXT)}var memoized=function(){var cache=memoized.cache,key=resolver?resolver.apply(this,arguments):arguments[0];if(cache.has(key)){return cache.get(key)}var result=func.apply(this,arguments);cache.set(key,result);return result};memoized.cache=new memoize.Cache;return memoized}function negate(predicate){if(!isFunction(predicate)){throw new TypeError(FUNC_ERROR_TEXT)}return function(){return!predicate.apply(this,arguments)}}function once(func){return before(func,2)}function partial(func){var partials=baseSlice(arguments,1),holders=replaceHolders(partials,partial.placeholder);
return createWrapper(func,PARTIAL_FLAG,null,partials,holders)}function partialRight(func){var partials=baseSlice(arguments,1),holders=replaceHolders(partials,partialRight.placeholder);return createWrapper(func,PARTIAL_RIGHT_FLAG,null,partials,holders)}function rearg(func){var indexes=baseFlatten(arguments,false,false,1);return createWrapper(func,REARG_FLAG,null,null,null,indexes)}function throttle(func,wait,options){var leading=true,trailing=true;if(!isFunction(func)){throw new TypeError(FUNC_ERROR_TEXT)}if(options===false){leading=false}else if(isObject(options)){leading="leading"in options?!!options.leading:leading;trailing="trailing"in options?!!options.trailing:trailing}debounceOptions.leading=leading;debounceOptions.maxWait=+wait;debounceOptions.trailing=trailing;return debounce(func,wait,debounceOptions)}function wrap(value,wrapper){wrapper=wrapper==null?identity:wrapper;return createWrapper(wrapper,PARTIAL_FLAG,null,[value],[])}function clone(value,isDeep,customizer,thisArg){if(typeof isDeep!="boolean"&&isDeep!=null){thisArg=customizer;customizer=isIterateeCall(value,isDeep,thisArg)?null:isDeep;isDeep=false}customizer=typeof customizer=="function"&&bindCallback(customizer,thisArg,1);return baseClone(value,isDeep,customizer)}function cloneDeep(value,customizer,thisArg){customizer=typeof customizer=="function"&&bindCallback(customizer,thisArg,1);return baseClone(value,true,customizer)}function isArguments(value){var length=isObjectLike(value)?value.length:undefined;return isLength(length)&&objToString.call(value)==argsTag||false}var isArray=nativeIsArray||function(value){return isObjectLike(value)&&isLength(value.length)&&objToString.call(value)==arrayTag||false};function isBoolean(value){return value===true||value===false||isObjectLike(value)&&objToString.call(value)==boolTag||false}function isDate(value){return isObjectLike(value)&&objToString.call(value)==dateTag||false}function isElement(value){return value&&value.nodeType===1&&isObjectLike(value)&&objToString.call(value).indexOf("Element")>-1||false}if(!support.dom){isElement=function(value){return value&&value.nodeType===1&&isObjectLike(value)&&!isPlainObject(value)||false}}function isEmpty(value){if(value==null){return true}var length=value.length;if(isLength(length)&&(isArray(value)||isString(value)||isArguments(value)||isObjectLike(value)&&isFunction(value.splice))){return!length}return!keys(value).length}function isEqual(value,other,customizer,thisArg){customizer=typeof customizer=="function"&&bindCallback(customizer,thisArg,3);if(!customizer&&isStrictComparable(value)&&isStrictComparable(other)){return value===other}var result=customizer?customizer(value,other):undefined;return typeof result=="undefined"?baseIsEqual(value,other,customizer):!!result}function isError(value){return isObjectLike(value)&&typeof value.message=="string"&&objToString.call(value)==errorTag||false}var isFinite=nativeNumIsFinite||function(value){return typeof value=="number"&&nativeIsFinite(value)};function isFunction(value){return typeof value=="function"||false}if(isFunction(/x/)||Uint8Array&&!isFunction(Uint8Array)){isFunction=function(value){return objToString.call(value)==funcTag}}function isObject(value){var type=typeof value;return type=="function"||value&&type=="object"||false}function isMatch(object,source,customizer,thisArg){var props=keys(source),length=props.length;customizer=typeof customizer=="function"&&bindCallback(customizer,thisArg,3);if(!customizer&&length==1){var key=props[0],value=source[key];if(isStrictComparable(value)){return object!=null&&value===object[key]&&hasOwnProperty.call(object,key)}}var values=Array(length),strictCompareFlags=Array(length);while(length--){value=values[length]=source[props[length]];strictCompareFlags[length]=isStrictComparable(value)}return baseIsMatch(object,props,values,strictCompareFlags,customizer)}function isNaN(value){return isNumber(value)&&value!=+value}function isNative(value){if(value==null){return false}if(objToString.call(value)==funcTag){return reNative.test(fnToString.call(value))}return isObjectLike(value)&&reHostCtor.test(value)||false}function isNull(value){return value===null}function isNumber(value){return typeof value=="number"||isObjectLike(value)&&objToString.call(value)==numberTag||false}var isPlainObject=!getPrototypeOf?shimIsPlainObject:function(value){if(!(value&&objToString.call(value)==objectTag)){return false}var valueOf=value.valueOf,objProto=isNative(valueOf)&&(objProto=getPrototypeOf(valueOf))&&getPrototypeOf(objProto);return objProto?value==objProto||getPrototypeOf(value)==objProto:shimIsPlainObject(value)};function isRegExp(value){return isObjectLike(value)&&objToString.call(value)==regexpTag||false}function isString(value){return typeof value=="string"||isObjectLike(value)&&objToString.call(value)==stringTag||false}function isTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&typedArrayTags[objToString.call(value)]||false}function isUndefined(value){return typeof value=="undefined"}function toArray(value){var length=value?value.length:0;if(!isLength(length)){return values(value)}if(!length){return[]}return arrayCopy(value)}function toPlainObject(value){return baseCopy(value,keysIn(value))}var assign=createAssigner(baseAssign);function create(prototype,properties,guard){var result=baseCreate(prototype);if(guard&&isIterateeCall(prototype,properties,guard)){properties=null}return properties?baseCopy(properties,result,keys(properties)):result}function defaults(object){if(object==null){return object}var args=arrayCopy(arguments);args.push(assignDefaults);return assign.apply(undefined,args)}function findKey(object,predicate,thisArg){predicate=getCallback(predicate,thisArg,3);return baseFind(object,predicate,baseForOwn,true)}function findLastKey(object,predicate,thisArg){predicate=getCallback(predicate,thisArg,3);return baseFind(object,predicate,baseForOwnRight,true)}function forIn(object,iteratee,thisArg){if(typeof iteratee!="function"||typeof thisArg!="undefined"){iteratee=bindCallback(iteratee,thisArg,3)}return baseFor(object,iteratee,keysIn)}function forInRight(object,iteratee,thisArg){iteratee=bindCallback(iteratee,thisArg,3);return baseForRight(object,iteratee,keysIn)}function forOwn(object,iteratee,thisArg){if(typeof iteratee!="function"||typeof thisArg!="undefined"){iteratee=bindCallback(iteratee,thisArg,3)}return baseForOwn(object,iteratee)}function forOwnRight(object,iteratee,thisArg){iteratee=bindCallback(iteratee,thisArg,3);return baseForRight(object,iteratee,keys)}function functions(object){return baseFunctions(object,keysIn(object))}function has(object,key){return object?hasOwnProperty.call(object,key):false}function invert(object,multiValue,guard){if(guard&&isIterateeCall(object,multiValue,guard)){multiValue=null}var index=-1,props=keys(object),length=props.length,result={};while(++index<length){var key=props[index],value=object[key];if(multiValue){if(hasOwnProperty.call(result,value)){result[value].push(key)}else{result[value]=[key]}}else{result[value]=key}}return result}var keys=!nativeKeys?shimKeys:function(object){if(object){var Ctor=object.constructor,length=object.length}if(typeof Ctor=="function"&&Ctor.prototype===object||typeof object!="function"&&(length&&isLength(length))){return shimKeys(object)}return isObject(object)?nativeKeys(object):[]};function keysIn(object){if(object==null){return[]}if(!isObject(object)){object=Object(object)}var length=object.length;length=length&&isLength(length)&&(isArray(object)||support.nonEnumArgs&&isArguments(object))&&length||0;var Ctor=object.constructor,index=-1,isProto=typeof Ctor=="function"&&Ctor.prototype==object,result=Array(length),skipIndexes=length>0;while(++index<length){result[index]=index+""}for(var key in object){if(!(skipIndexes&&isIndex(key,length))&&!(key=="constructor"&&(isProto||!hasOwnProperty.call(object,key)))){result.push(key)}}return result}function mapValues(object,iteratee,thisArg){var result={};iteratee=getCallback(iteratee,thisArg,3);baseForOwn(object,function(value,key,object){result[key]=iteratee(value,key,object)});return result}var merge=createAssigner(baseMerge);function omit(object,predicate,thisArg){if(object==null){return{}}if(typeof predicate!="function"){var props=arrayMap(baseFlatten(arguments,false,false,1),String);return pickByArray(object,baseDifference(keysIn(object),props))}predicate=bindCallback(predicate,thisArg,3);return pickByCallback(object,function(value,key,object){return!predicate(value,key,object)})}function pairs(object){var index=-1,props=keys(object),length=props.length,result=Array(length);while(++index<length){var key=props[index];result[index]=[key,object[key]]}return result}function pick(object,predicate,thisArg){if(object==null){return{}}return typeof predicate=="function"?pickByCallback(object,bindCallback(predicate,thisArg,3)):pickByArray(object,baseFlatten(arguments,false,false,1))}function result(object,key,defaultValue){var value=object==null?undefined:object[key];if(typeof value=="undefined"){value=defaultValue}return isFunction(value)?value.call(object):value}function transform(object,iteratee,accumulator,thisArg){var isArr=isArray(object)||isTypedArray(object);iteratee=getCallback(iteratee,thisArg,4);if(accumulator==null){if(isArr||isObject(object)){var Ctor=object.constructor;if(isArr){accumulator=isArray(object)?new Ctor:[]}else{accumulator=baseCreate(typeof Ctor=="function"&&Ctor.prototype)}}else{accumulator={}}}(isArr?arrayEach:baseForOwn)(object,function(value,index,object){return iteratee(accumulator,value,index,object)});return accumulator}function values(object){return baseValues(object,keys(object))}function valuesIn(object){return baseValues(object,keysIn(object))}function random(min,max,floating){if(floating&&isIterateeCall(min,max,floating)){max=floating=null}var noMin=min==null,noMax=max==null;if(floating==null){if(noMax&&typeof min=="boolean"){floating=min;min=1}else if(typeof max=="boolean"){floating=max;noMax=true}}if(noMin&&noMax){max=1;noMax=false}min=+min||0;if(noMax){max=min;min=0}else{max=+max||0}if(floating||min%1||max%1){var rand=nativeRandom();return nativeMin(min+rand*(max-min+parseFloat("1e-"+((rand+"").length-1))),max)}return baseRandom(min,max)}var camelCase=createCompounder(function(result,word,index){word=word.toLowerCase();return index?result+word.charAt(0).toUpperCase()+word.slice(1):word});function capitalize(string){string=baseToString(string);return string&&string.charAt(0).toUpperCase()+string.slice(1)}function deburr(string){string=baseToString(string);return string&&string.replace(reLatin1,deburrLetter)}function endsWith(string,target,position){string=baseToString(string);target=target+"";var length=string.length;position=(typeof position=="undefined"?length:nativeMin(position<0?0:+position||0,length))-target.length;return position>=0&&string.indexOf(target,position)==position}function escape(string){string=baseToString(string);return string&&reHasUnescapedHtml.test(string)?string.replace(reUnescapedHtml,escapeHtmlChar):string}function escapeRegExp(string){string=baseToString(string);return string&&reHasRegExpChars.test(string)?string.replace(reRegExpChars,"\\$&"):string}var kebabCase=createCompounder(function(result,word,index){return result+(index?"-":"")+word.toLowerCase()});function pad(string,length,chars){string=baseToString(string);length=+length;var strLength=string.length;if(strLength>=length||!nativeIsFinite(length)){return string}var mid=(length-strLength)/2,leftLength=floor(mid),rightLength=ceil(mid);chars=createPad("",rightLength,chars);return chars.slice(0,leftLength)+string+chars}function padLeft(string,length,chars){string=baseToString(string);return string&&createPad(string,length,chars)+string}function padRight(string,length,chars){string=baseToString(string);return string&&string+createPad(string,length,chars)}function parseInt(string,radix,guard){if(guard&&isIterateeCall(string,radix,guard)){radix=0}return nativeParseInt(string,radix)}if(nativeParseInt(whitespace+"08")!=8){parseInt=function(string,radix,guard){if(guard?isIterateeCall(string,radix,guard):radix==null){radix=0}else if(radix){radix=+radix}string=trim(string);return nativeParseInt(string,radix||(reHexPrefix.test(string)?16:10))}}function repeat(string,n){var result="";string=baseToString(string);n=+n;if(n<1||!string||!nativeIsFinite(n)){return result}do{if(n%2){result+=string}n=floor(n/2);string+=string}while(n);return result}var snakeCase=createCompounder(function(result,word,index){return result+(index?"_":"")+word.toLowerCase()});function startsWith(string,target,position){string=baseToString(string);position=position==null?0:nativeMin(position<0?0:+position||0,string.length);return string.lastIndexOf(target,position)==position}function template(string,options,otherOptions){var settings=lodash.templateSettings;if(otherOptions&&isIterateeCall(string,options,otherOptions)){options=otherOptions=null}string=baseToString(string);options=baseAssign(baseAssign({},otherOptions||options),settings,assignOwnDefaults);var imports=baseAssign(baseAssign({},options.imports),settings.imports,assignOwnDefaults),importsKeys=keys(imports),importsValues=baseValues(imports,importsKeys);var isEscaping,isEvaluating,index=0,interpolate=options.interpolate||reNoMatch,source="__p += '";var reDelimiters=RegExp((options.escape||reNoMatch).source+"|"+interpolate.source+"|"+(interpolate===reInterpolate?reEsTemplate:reNoMatch).source+"|"+(options.evaluate||reNoMatch).source+"|$","g");var sourceURL="//# sourceURL="+("sourceURL"in options?options.sourceURL:"lodash.templateSources["+ ++templateCounter+"]")+"\n";string.replace(reDelimiters,function(match,escapeValue,interpolateValue,esTemplateValue,evaluateValue,offset){interpolateValue||(interpolateValue=esTemplateValue);source+=string.slice(index,offset).replace(reUnescapedString,escapeStringChar);if(escapeValue){isEscaping=true;source+="' +\n__e("+escapeValue+") +\n'"}if(evaluateValue){isEvaluating=true;source+="';\n"+evaluateValue+";\n__p += '"}if(interpolateValue){source+="' +\n((__t = ("+interpolateValue+")) == null ? '' : __t) +\n'"}index=offset+match.length;return match});source+="';\n";var variable=options.variable;if(!variable){source="with (obj) {\n"+source+"\n}\n"}source=(isEvaluating?source.replace(reEmptyStringLeading,""):source).replace(reEmptyStringMiddle,"$1").replace(reEmptyStringTrailing,"$1;");source="function("+(variable||"obj")+") {\n"+(variable?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(isEscaping?", __e = _.escape":"")+(isEvaluating?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+source+"return __p\n}";var result=attempt(function(){return Function(importsKeys,sourceURL+"return "+source).apply(undefined,importsValues)});result.source=source;if(isError(result)){throw result}return result}function trim(string,chars,guard){var value=string;string=baseToString(string);if(!string){return string}if(guard?isIterateeCall(value,chars,guard):chars==null){return string.slice(trimmedLeftIndex(string),trimmedRightIndex(string)+1)}chars=baseToString(chars);return string.slice(charsLeftIndex(string,chars),charsRightIndex(string,chars)+1)}function trimLeft(string,chars,guard){var value=string;string=baseToString(string);if(!string){return string}if(guard?isIterateeCall(value,chars,guard):chars==null){return string.slice(trimmedLeftIndex(string))}return string.slice(charsLeftIndex(string,baseToString(chars)))}function trimRight(string,chars,guard){var value=string;string=baseToString(string);if(!string){return string}if(guard?isIterateeCall(value,chars,guard):chars==null){return string.slice(0,trimmedRightIndex(string)+1)}return string.slice(0,charsRightIndex(string,baseToString(chars))+1)}function trunc(string,options,guard){if(guard&&isIterateeCall(string,options,guard)){options=null}var length=DEFAULT_TRUNC_LENGTH,omission=DEFAULT_TRUNC_OMISSION;if(options!=null){if(isObject(options)){var separator="separator"in options?options.separator:separator;length="length"in options?+options.length||0:length;omission="omission"in options?baseToString(options.omission):omission}else{length=+options||0}}string=baseToString(string);if(length>=string.length){return string}var end=length-omission.length;if(end<1){return omission}var result=string.slice(0,end);if(separator==null){return result+omission}if(isRegExp(separator)){if(string.slice(end).search(separator)){var match,newEnd,substring=string.slice(0,end);if(!separator.global){separator=RegExp(separator.source,(reFlags.exec(separator)||"")+"g")}separator.lastIndex=0;while(match=separator.exec(substring)){newEnd=match.index}result=result.slice(0,newEnd==null?end:newEnd)}}else if(string.indexOf(separator,end)!=end){var index=result.lastIndexOf(separator);if(index>-1){result=result.slice(0,index)}}return result+omission}function unescape(string){string=baseToString(string);return string&&reHasEscapedHtml.test(string)?string.replace(reEscapedHtml,unescapeHtmlChar):string}function words(string,pattern,guard){if(guard&&isIterateeCall(string,pattern,guard)){pattern=null}string=baseToString(string);return string.match(pattern||reWords)||[]}function attempt(func){try{return func()}catch(e){return isError(e)?e:Error(e)}}function callback(func,thisArg,guard){if(guard&&isIterateeCall(func,thisArg,guard)){thisArg=null}return baseCallback(func,thisArg)}function constant(value){return function(){return value}}function identity(value){return value}function matches(source){return baseMatches(source,true)}function mixin(object,source,options){if(options==null){var isObj=isObject(source),props=isObj&&keys(source),methodNames=props&&props.length&&baseFunctions(source,props);if(!(methodNames?methodNames.length:isObj)){methodNames=false;options=source;source=object;object=this}}if(!methodNames){methodNames=baseFunctions(source,keys(source))}var chain=true,index=-1,isFunc=isFunction(object),length=methodNames.length;if(options===false){chain=false}else if(isObject(options)&&"chain"in options){chain=options.chain}while(++index<length){var methodName=methodNames[index],func=source[methodName];object[methodName]=func;if(isFunc){object.prototype[methodName]=function(func){return function(){var chainAll=this.__chain__;if(chain||chainAll){var result=object(this.__wrapped__);(result.__actions__=arrayCopy(this.__actions__)).push({func:func,args:arguments,thisArg:object});result.__chain__=chainAll;return result}var args=[this.value()];push.apply(args,arguments);return func.apply(object,args)}}(func)}}return object}function noConflict(){context._=oldDash;return this}function noop(){}function property(key){return baseProperty(key+"")}function propertyOf(object){return function(key){return object==null?undefined:object[key]}}function range(start,end,step){if(step&&isIterateeCall(start,end,step)){end=step=null}start=+start||0;step=step==null?1:+step||0;if(end==null){end=start;start=0}else{end=+end||0}var index=-1,length=nativeMax(ceil((end-start)/(step||1)),0),result=Array(length);while(++index<length){result[index]=start;start+=step}return result}function times(n,iteratee,thisArg){n=+n;if(n<1||!nativeIsFinite(n)){return[]}var index=-1,result=Array(nativeMin(n,MAX_ARRAY_LENGTH));iteratee=bindCallback(iteratee,thisArg,1);while(++index<n){if(index<MAX_ARRAY_LENGTH){result[index]=iteratee(index)}else{iteratee(index)}}return result}function uniqueId(prefix){var id=++idCounter;return baseToString(prefix)+id}LodashWrapper.prototype=lodash.prototype;MapCache.prototype["delete"]=mapDelete;MapCache.prototype.get=mapGet;MapCache.prototype.has=mapHas;MapCache.prototype.set=mapSet;SetCache.prototype.push=cachePush;memoize.Cache=MapCache;lodash.after=after;lodash.ary=ary;lodash.assign=assign;lodash.at=at;lodash.before=before;lodash.bind=bind;lodash.bindAll=bindAll;lodash.bindKey=bindKey;lodash.callback=callback;lodash.chain=chain;lodash.chunk=chunk;lodash.compact=compact;lodash.constant=constant;lodash.countBy=countBy;lodash.create=create;lodash.curry=curry;lodash.curryRight=curryRight;lodash.debounce=debounce;lodash.defaults=defaults;lodash.defer=defer;lodash.delay=delay;lodash.difference=difference;lodash.drop=drop;lodash.dropRight=dropRight;lodash.dropRightWhile=dropRightWhile;lodash.dropWhile=dropWhile;lodash.filter=filter;lodash.flatten=flatten;lodash.flattenDeep=flattenDeep;lodash.flow=flow;lodash.flowRight=flowRight;lodash.forEach=forEach;lodash.forEachRight=forEachRight;lodash.forIn=forIn;lodash.forInRight=forInRight;lodash.forOwn=forOwn;lodash.forOwnRight=forOwnRight;lodash.functions=functions;lodash.groupBy=groupBy;lodash.indexBy=indexBy;lodash.initial=initial;lodash.intersection=intersection;lodash.invert=invert;lodash.invoke=invoke;lodash.keys=keys;lodash.keysIn=keysIn;lodash.map=map;lodash.mapValues=mapValues;lodash.matches=matches;lodash.memoize=memoize;lodash.merge=merge;lodash.mixin=mixin;lodash.negate=negate;lodash.omit=omit;lodash.once=once;lodash.pairs=pairs;lodash.partial=partial;lodash.partialRight=partialRight;lodash.partition=partition;lodash.pick=pick;lodash.pluck=pluck;lodash.property=property;lodash.propertyOf=propertyOf;lodash.pull=pull;lodash.pullAt=pullAt;lodash.range=range;lodash.rearg=rearg;lodash.reject=reject;lodash.remove=remove;lodash.rest=rest;lodash.shuffle=shuffle;lodash.slice=slice;lodash.sortBy=sortBy;lodash.sortByAll=sortByAll;lodash.take=take;lodash.takeRight=takeRight;lodash.takeRightWhile=takeRightWhile;lodash.takeWhile=takeWhile;lodash.tap=tap;lodash.throttle=throttle;lodash.thru=thru;lodash.times=times;lodash.toArray=toArray;lodash.toPlainObject=toPlainObject;lodash.transform=transform;lodash.union=union;lodash.uniq=uniq;lodash.unzip=unzip;lodash.values=values;lodash.valuesIn=valuesIn;lodash.where=where;lodash.without=without;lodash.wrap=wrap;lodash.xor=xor;lodash.zip=zip;lodash.zipObject=zipObject;lodash.backflow=flowRight;lodash.collect=map;lodash.compose=flowRight;lodash.each=forEach;lodash.eachRight=forEachRight;lodash.extend=assign;lodash.iteratee=callback;lodash.methods=functions;lodash.object=zipObject;lodash.select=filter;lodash.tail=rest;lodash.unique=uniq;mixin(lodash,lodash);lodash.attempt=attempt;lodash.camelCase=camelCase;lodash.capitalize=capitalize;lodash.clone=clone;lodash.cloneDeep=cloneDeep;lodash.deburr=deburr;lodash.endsWith=endsWith;lodash.escape=escape;lodash.escapeRegExp=escapeRegExp;lodash.every=every;lodash.find=find;lodash.findIndex=findIndex;lodash.findKey=findKey;lodash.findLast=findLast;lodash.findLastIndex=findLastIndex;lodash.findLastKey=findLastKey;lodash.findWhere=findWhere;lodash.first=first;lodash.has=has;lodash.identity=identity;lodash.includes=includes;lodash.indexOf=indexOf;lodash.isArguments=isArguments;lodash.isArray=isArray;lodash.isBoolean=isBoolean;lodash.isDate=isDate;lodash.isElement=isElement;lodash.isEmpty=isEmpty;lodash.isEqual=isEqual;lodash.isError=isError;lodash.isFinite=isFinite;lodash.isFunction=isFunction;lodash.isMatch=isMatch;lodash.isNaN=isNaN;lodash.isNative=isNative;lodash.isNull=isNull;lodash.isNumber=isNumber;lodash.isObject=isObject;lodash.isPlainObject=isPlainObject;lodash.isRegExp=isRegExp;lodash.isString=isString;lodash.isTypedArray=isTypedArray;lodash.isUndefined=isUndefined;lodash.kebabCase=kebabCase;lodash.last=last;lodash.lastIndexOf=lastIndexOf;lodash.max=max;lodash.min=min;lodash.noConflict=noConflict;lodash.noop=noop;lodash.now=now;lodash.pad=pad;lodash.padLeft=padLeft;lodash.padRight=padRight;lodash.parseInt=parseInt;lodash.random=random;lodash.reduce=reduce;lodash.reduceRight=reduceRight;lodash.repeat=repeat;lodash.result=result;lodash.runInContext=runInContext;lodash.size=size;lodash.snakeCase=snakeCase;lodash.some=some;lodash.sortedIndex=sortedIndex;lodash.sortedLastIndex=sortedLastIndex;lodash.startsWith=startsWith;lodash.template=template;lodash.trim=trim;lodash.trimLeft=trimLeft;lodash.trimRight=trimRight;lodash.trunc=trunc;lodash.unescape=unescape;lodash.uniqueId=uniqueId;lodash.words=words;lodash.all=every;lodash.any=some;lodash.contains=includes;lodash.detect=find;lodash.foldl=reduce;lodash.foldr=reduceRight;lodash.head=first;lodash.include=includes;lodash.inject=reduce;mixin(lodash,function(){var source={};baseForOwn(lodash,function(func,methodName){if(!lodash.prototype[methodName]){source[methodName]=func}});return source}(),false);lodash.sample=sample;lodash.prototype.sample=function(n){if(!this.__chain__&&n==null){return sample(this.value())}return this.thru(function(value){return sample(value,n)})};lodash.VERSION=VERSION;arrayEach(["bind","bindKey","curry","curryRight","partial","partialRight"],function(methodName){lodash[methodName].placeholder=lodash});arrayEach(["filter","map","takeWhile"],function(methodName,index){var isFilter=index==LAZY_FILTER_FLAG;LazyWrapper.prototype[methodName]=function(iteratee,thisArg){var result=this.clone(),filtered=result.filtered,iteratees=result.iteratees||(result.iteratees=[]);result.filtered=filtered||isFilter||index==LAZY_WHILE_FLAG&&result.dir<0;iteratees.push({iteratee:getCallback(iteratee,thisArg,3),type:index});return result}});arrayEach(["drop","take"],function(methodName,index){var countName=methodName+"Count",whileName=methodName+"While";LazyWrapper.prototype[methodName]=function(n){n=n==null?1:nativeMax(+n||0,0);var result=this.clone();if(result.filtered){var value=result[countName];result[countName]=index?nativeMin(value,n):value+n}else{var views=result.views||(result.views=[]);views.push({size:n,type:methodName+(result.dir<0?"Right":"")})}return result};LazyWrapper.prototype[methodName+"Right"]=function(n){return this.reverse()[methodName](n).reverse()};LazyWrapper.prototype[methodName+"RightWhile"]=function(predicate,thisArg){return this.reverse()[whileName](predicate,thisArg).reverse()}});arrayEach(["first","last"],function(methodName,index){var takeName="take"+(index?"Right":"");LazyWrapper.prototype[methodName]=function(){return this[takeName](1).value()[0]}});arrayEach(["initial","rest"],function(methodName,index){var dropName="drop"+(index?"":"Right");LazyWrapper.prototype[methodName]=function(){return this[dropName](1)}});arrayEach(["pluck","where"],function(methodName,index){var operationName=index?"filter":"map",createCallback=index?matches:property;LazyWrapper.prototype[methodName]=function(value){return this[operationName](createCallback(value))}});LazyWrapper.prototype.dropWhile=function(iteratee,thisArg){var done,lastIndex,isRight=this.dir<0;iteratee=getCallback(iteratee,thisArg,3);return this.filter(function(value,index,array){done=done&&(isRight?index<lastIndex:index>lastIndex);lastIndex=index;return done||(done=!iteratee(value,index,array))})};LazyWrapper.prototype.reject=function(iteratee,thisArg){iteratee=getCallback(iteratee,thisArg,3);return this.filter(function(value,index,array){return!iteratee(value,index,array)})};LazyWrapper.prototype.slice=function(start,end){start=start==null?0:+start||0;var result=start<0?this.takeRight(-start):this.drop(start);if(typeof end!="undefined"){end=+end||0;result=end<0?result.dropRight(-end):result.take(end-start)}return result};baseForOwn(LazyWrapper.prototype,function(func,methodName){var retUnwrapped=/^(?:first|last)$/.test(methodName);lodash.prototype[methodName]=function(){var value=this.__wrapped__,args=arguments,chainAll=this.__chain__,isHybrid=!!this.__actions__.length,isLazy=value instanceof LazyWrapper,onlyLazy=isLazy&&!isHybrid;if(retUnwrapped&&!chainAll){return onlyLazy?func.call(value):lodash[methodName](this.value())}var interceptor=function(value){var otherArgs=[value];push.apply(otherArgs,args);return lodash[methodName].apply(lodash,otherArgs)};if(isLazy||isArray(value)){var wrapper=onlyLazy?value:new LazyWrapper(this),result=func.apply(wrapper,args);if(!retUnwrapped&&(isHybrid||result.actions)){var actions=result.actions||(result.actions=[]);actions.push({func:thru,args:[interceptor],thisArg:lodash})}return new LodashWrapper(result,chainAll)}return this.thru(interceptor)}});arrayEach(["concat","join","pop","push","shift","sort","splice","unshift"],function(methodName){var func=arrayProto[methodName],chainName=/^(?:push|sort|unshift)$/.test(methodName)?"tap":"thru",retUnwrapped=/^(?:join|pop|shift)$/.test(methodName);lodash.prototype[methodName]=function(){var args=arguments;if(retUnwrapped&&!this.__chain__){return func.apply(this.value(),args)}return this[chainName](function(value){return func.apply(value,args)})}});LazyWrapper.prototype.clone=lazyClone;LazyWrapper.prototype.reverse=lazyReverse;LazyWrapper.prototype.value=lazyValue;lodash.prototype.chain=wrapperChain;lodash.prototype.reverse=wrapperReverse;lodash.prototype.toString=wrapperToString;lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=wrapperValue;lodash.prototype.collect=lodash.prototype.map;lodash.prototype.head=lodash.prototype.first;lodash.prototype.select=lodash.prototype.filter;lodash.prototype.tail=lodash.prototype.rest;return lodash}var _=runInContext();if(typeof define=="function"&&typeof define.amd=="object"&&define.amd){root._=_;define(function(){return _})}else if(freeExports&&freeModule){if(moduleExports){(freeModule.exports=_)._=_}else{freeExports._=_}}else{root._=_}}).call(this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],165:[function(require,module,exports){"use strict";var originalObject=Object;var originalDefProp=Object.defineProperty;var originalCreate=Object.create;function defProp(obj,name,value){if(originalDefProp)try{originalDefProp.call(originalObject,obj,name,{value:value})}catch(definePropertyIsBrokenInIE8){obj[name]=value}else{obj[name]=value}}function makeSafeToCall(fun){if(fun){defProp(fun,"call",fun.call);defProp(fun,"apply",fun.apply)}return fun}makeSafeToCall(originalDefProp);makeSafeToCall(originalCreate);var hasOwn=makeSafeToCall(Object.prototype.hasOwnProperty);var numToStr=makeSafeToCall(Number.prototype.toString);var strSlice=makeSafeToCall(String.prototype.slice);var cloner=function(){};function create(prototype){if(originalCreate){return originalCreate.call(originalObject,prototype)}cloner.prototype=prototype||null;return new cloner}var rand=Math.random;var uniqueKeys=create(null);function makeUniqueKey(){do var uniqueKey=internString(strSlice.call(numToStr.call(rand(),36),2));while(hasOwn.call(uniqueKeys,uniqueKey));return uniqueKeys[uniqueKey]=uniqueKey}function internString(str){var obj={};obj[str]=true;return Object.keys(obj)[0]}defProp(exports,"makeUniqueKey",makeUniqueKey);var originalGetOPNs=Object.getOwnPropertyNames;Object.getOwnPropertyNames=function getOwnPropertyNames(object){for(var names=originalGetOPNs(object),src=0,dst=0,len=names.length;src<len;++src){if(!hasOwn.call(uniqueKeys,names[src])){if(src>dst){names[dst]=names[src]}++dst}}names.length=dst;return names};function defaultCreatorFn(object){return create(null)}function makeAccessor(secretCreatorFn){var brand=makeUniqueKey();var passkey=create(null);secretCreatorFn=secretCreatorFn||defaultCreatorFn;function register(object){var secret;function vault(key,forget){if(key===passkey){return forget?secret=null:secret||(secret=secretCreatorFn(object))}}defProp(object,brand,vault)}function accessor(object){if(!hasOwn.call(object,brand))register(object);return object[brand](passkey)}accessor.forget=function(object){if(hasOwn.call(object,brand))object[brand](passkey,true)};return accessor}defProp(exports,"makeAccessor",makeAccessor)},{}],166:[function(require,module,exports){var assert=require("assert");var types=require("ast-types");var isArray=types.builtInTypes.array;var b=types.builders;var n=types.namedTypes;var leap=require("./leap");var meta=require("./meta");var util=require("./util");var runtimeKeysMethod=util.runtimeProperty("keys");var hasOwn=Object.prototype.hasOwnProperty;function Emitter(contextId){assert.ok(this instanceof Emitter);n.Identifier.assert(contextId);Object.defineProperties(this,{contextId:{value:contextId},listing:{value:[]},marked:{value:[true]},finalLoc:{value:loc()},tryEntries:{value:[]}});
Object.defineProperties(this,{leapManager:{value:new leap.LeapManager(this)}})}var Ep=Emitter.prototype;exports.Emitter=Emitter;function loc(){return b.literal(-1)}Ep.mark=function(loc){n.Literal.assert(loc);var index=this.listing.length;if(loc.value===-1){loc.value=index}else{assert.strictEqual(loc.value,index)}this.marked[index]=true;return loc};Ep.emit=function(node){if(n.Expression.check(node))node=b.expressionStatement(node);n.Statement.assert(node);this.listing.push(node)};Ep.emitAssign=function(lhs,rhs){this.emit(this.assign(lhs,rhs));return lhs};Ep.assign=function(lhs,rhs){return b.expressionStatement(b.assignmentExpression("=",lhs,rhs))};Ep.contextProperty=function(name,computed){return b.memberExpression(this.contextId,computed?b.literal(name):b.identifier(name),!!computed)};var volatileContextPropertyNames={prev:true,next:true,sent:true,rval:true};Ep.isVolatileContextProperty=function(expr){if(n.MemberExpression.check(expr)){if(expr.computed){return true}if(n.Identifier.check(expr.object)&&n.Identifier.check(expr.property)&&expr.object.name===this.contextId.name&&hasOwn.call(volatileContextPropertyNames,expr.property.name)){return true}}return false};Ep.stop=function(rval){if(rval){this.setReturnValue(rval)}this.jump(this.finalLoc)};Ep.setReturnValue=function(valuePath){n.Expression.assert(valuePath.value);this.emitAssign(this.contextProperty("rval"),this.explodeExpression(valuePath))};Ep.clearPendingException=function(tryLoc,assignee){n.Literal.assert(tryLoc);var catchCall=b.callExpression(this.contextProperty("catch",true),[tryLoc]);if(assignee){this.emitAssign(assignee,catchCall)}else{this.emit(catchCall)}};Ep.jump=function(toLoc){this.emitAssign(this.contextProperty("next"),toLoc);this.emit(b.breakStatement())};Ep.jumpIf=function(test,toLoc){n.Expression.assert(test);n.Literal.assert(toLoc);this.emit(b.ifStatement(test,b.blockStatement([this.assign(this.contextProperty("next"),toLoc),b.breakStatement()])))};Ep.jumpIfNot=function(test,toLoc){n.Expression.assert(test);n.Literal.assert(toLoc);var negatedTest;if(n.UnaryExpression.check(test)&&test.operator==="!"){negatedTest=test.argument}else{negatedTest=b.unaryExpression("!",test)}this.emit(b.ifStatement(negatedTest,b.blockStatement([this.assign(this.contextProperty("next"),toLoc),b.breakStatement()])))};var nextTempId=0;Ep.makeTempVar=function(){return this.contextProperty("t"+nextTempId++)};Ep.getContextFunction=function(id){var func=b.functionExpression(id||null,[this.contextId],b.blockStatement([this.getDispatchLoop()]),false,false);func._aliasFunction=true;return func};Ep.getDispatchLoop=function(){var self=this;var cases=[];var current;var alreadyEnded=false;self.listing.forEach(function(stmt,i){if(self.marked.hasOwnProperty(i)){cases.push(b.switchCase(b.literal(i),current=[]));alreadyEnded=false}if(!alreadyEnded){current.push(stmt);if(isSwitchCaseEnder(stmt))alreadyEnded=true}});this.finalLoc.value=this.listing.length;cases.push(b.switchCase(this.finalLoc,[]),b.switchCase(b.literal("end"),[b.returnStatement(b.callExpression(this.contextProperty("stop"),[]))]));return b.whileStatement(b.literal(1),b.switchStatement(b.assignmentExpression("=",this.contextProperty("prev"),this.contextProperty("next")),cases))};function isSwitchCaseEnder(stmt){return n.BreakStatement.check(stmt)||n.ContinueStatement.check(stmt)||n.ReturnStatement.check(stmt)||n.ThrowStatement.check(stmt)}Ep.getTryEntryList=function(){if(this.tryEntries.length===0){return null}var lastLocValue=0;return b.arrayExpression(this.tryEntries.map(function(tryEntry){var thisLocValue=tryEntry.firstLoc.value;assert.ok(thisLocValue>=lastLocValue,"try entries out of order");lastLocValue=thisLocValue;var ce=tryEntry.catchEntry;var fe=tryEntry.finallyEntry;var triple=[tryEntry.firstLoc,ce?ce.firstLoc:null];if(fe){triple[2]=fe.firstLoc}return b.arrayExpression(triple)}))};Ep.explode=function(path,ignoreResult){assert.ok(path instanceof types.NodePath);var node=path.value;var self=this;n.Node.assert(node);if(n.Statement.check(node))return self.explodeStatement(path);if(n.Expression.check(node))return self.explodeExpression(path,ignoreResult);if(n.Declaration.check(node))throw getDeclError(node);switch(node.type){case"Program":return path.get("body").map(self.explodeStatement,self);case"VariableDeclarator":throw getDeclError(node);case"Property":case"SwitchCase":case"CatchClause":throw new Error(node.type+" nodes should be handled by their parents");default:throw new Error("unknown Node of type "+JSON.stringify(node.type))}};function getDeclError(node){return new Error("all declarations should have been transformed into "+"assignments before the Exploder began its work: "+JSON.stringify(node))}Ep.explodeStatement=function(path,labelId){assert.ok(path instanceof types.NodePath);var stmt=path.value;var self=this;n.Statement.assert(stmt);if(labelId){n.Identifier.assert(labelId)}else{labelId=null}if(n.BlockStatement.check(stmt)){return path.get("body").each(self.explodeStatement,self)}if(!meta.containsLeap(stmt)){self.emit(stmt);return}switch(stmt.type){case"ExpressionStatement":self.explodeExpression(path.get("expression"),true);break;case"LabeledStatement":var after=loc();self.leapManager.withEntry(new leap.LabeledEntry(after,stmt.label),function(){self.explodeStatement(path.get("body"),stmt.label)});self.mark(after);break;case"WhileStatement":var before=loc();var after=loc();self.mark(before);self.jumpIfNot(self.explodeExpression(path.get("test")),after);self.leapManager.withEntry(new leap.LoopEntry(after,before,labelId),function(){self.explodeStatement(path.get("body"))});self.jump(before);self.mark(after);break;case"DoWhileStatement":var first=loc();var test=loc();var after=loc();self.mark(first);self.leapManager.withEntry(new leap.LoopEntry(after,test,labelId),function(){self.explode(path.get("body"))});self.mark(test);self.jumpIf(self.explodeExpression(path.get("test")),first);self.mark(after);break;case"ForStatement":var head=loc();var update=loc();var after=loc();if(stmt.init){self.explode(path.get("init"),true)}self.mark(head);if(stmt.test){self.jumpIfNot(self.explodeExpression(path.get("test")),after)}else{}self.leapManager.withEntry(new leap.LoopEntry(after,update,labelId),function(){self.explodeStatement(path.get("body"))});self.mark(update);if(stmt.update){self.explode(path.get("update"),true)}self.jump(head);self.mark(after);break;case"ForInStatement":n.Identifier.assert(stmt.left);var head=loc();var after=loc();var keyIterNextFn=self.makeTempVar();self.emitAssign(keyIterNextFn,b.callExpression(runtimeKeysMethod,[self.explodeExpression(path.get("right"))]));self.mark(head);var keyInfoTmpVar=self.makeTempVar();self.jumpIf(b.memberExpression(b.assignmentExpression("=",keyInfoTmpVar,b.callExpression(keyIterNextFn,[])),b.identifier("done"),false),after);self.emitAssign(stmt.left,b.memberExpression(keyInfoTmpVar,b.identifier("value"),false));self.leapManager.withEntry(new leap.LoopEntry(after,head,labelId),function(){self.explodeStatement(path.get("body"))});self.jump(head);self.mark(after);break;case"BreakStatement":self.emitAbruptCompletion({type:"break",target:self.leapManager.getBreakLoc(stmt.label)});break;case"ContinueStatement":self.emitAbruptCompletion({type:"continue",target:self.leapManager.getContinueLoc(stmt.label)});break;case"SwitchStatement":var disc=self.emitAssign(self.makeTempVar(),self.explodeExpression(path.get("discriminant")));var after=loc();var defaultLoc=loc();var condition=defaultLoc;var caseLocs=[];var cases=stmt.cases||[];for(var i=cases.length-1;i>=0;--i){var c=cases[i];n.SwitchCase.assert(c);if(c.test){condition=b.conditionalExpression(b.binaryExpression("===",disc,c.test),caseLocs[i]=loc(),condition)}else{caseLocs[i]=defaultLoc}}self.jump(self.explodeExpression(new types.NodePath(condition,path,"discriminant")));self.leapManager.withEntry(new leap.SwitchEntry(after),function(){path.get("cases").each(function(casePath){var c=casePath.value;var i=casePath.name;self.mark(caseLocs[i]);casePath.get("consequent").each(self.explodeStatement,self)})});self.mark(after);if(defaultLoc.value===-1){self.mark(defaultLoc);assert.strictEqual(after.value,defaultLoc.value)}break;case"IfStatement":var elseLoc=stmt.alternate&&loc();var after=loc();self.jumpIfNot(self.explodeExpression(path.get("test")),elseLoc||after);self.explodeStatement(path.get("consequent"));if(elseLoc){self.jump(after);self.mark(elseLoc);self.explodeStatement(path.get("alternate"))}self.mark(after);break;case"ReturnStatement":self.emitAbruptCompletion({type:"return",value:self.explodeExpression(path.get("argument"))});break;case"WithStatement":throw new Error(node.type+" not supported in generator functions.");case"TryStatement":var after=loc();var handler=stmt.handler;if(!handler&&stmt.handlers){handler=stmt.handlers[0]||null}var catchLoc=handler&&loc();var catchEntry=catchLoc&&new leap.CatchEntry(catchLoc,handler.param);var finallyLoc=stmt.finalizer&&loc();var finallyEntry=finallyLoc&&new leap.FinallyEntry(finallyLoc);var tryEntry=new leap.TryEntry(self.getUnmarkedCurrentLoc(),catchEntry,finallyEntry);self.tryEntries.push(tryEntry);self.updateContextPrevLoc(tryEntry.firstLoc);self.leapManager.withEntry(tryEntry,function(){self.explodeStatement(path.get("block"));if(catchLoc){if(finallyLoc){self.jump(finallyLoc)}else{self.jump(after)}self.updateContextPrevLoc(self.mark(catchLoc));var bodyPath=path.get("handler","body");var safeParam=self.makeTempVar();self.clearPendingException(tryEntry.firstLoc,safeParam);var catchScope=bodyPath.scope;var catchParamName=handler.param.name;n.CatchClause.assert(catchScope.node);assert.strictEqual(catchScope.lookup(catchParamName),catchScope);types.visit(bodyPath,{visitIdentifier:function(path){if(util.isReference(path,catchParamName)&&path.scope.lookup(catchParamName)===catchScope){return safeParam}this.traverse(path)},visitFunction:function(path){if(path.scope.declares(catchParamName)){return false}this.traverse(path)}});self.leapManager.withEntry(catchEntry,function(){self.explodeStatement(bodyPath)})}if(finallyLoc){self.updateContextPrevLoc(self.mark(finallyLoc));self.leapManager.withEntry(finallyEntry,function(){self.explodeStatement(path.get("finalizer"))});self.emit(b.callExpression(self.contextProperty("finish"),[finallyEntry.firstLoc]))}});self.mark(after);break;case"ThrowStatement":self.emit(b.throwStatement(self.explodeExpression(path.get("argument"))));break;default:throw new Error("unknown Statement of type "+JSON.stringify(stmt.type))}};Ep.emitAbruptCompletion=function(record){if(!isValidCompletion(record)){assert.ok(false,"invalid completion record: "+JSON.stringify(record))}assert.notStrictEqual(record.type,"normal","normal completions are not abrupt");var abruptArgs=[b.literal(record.type)];if(record.type==="break"||record.type==="continue"){n.Literal.assert(record.target);abruptArgs[1]=record.target}else if(record.type==="return"||record.type==="throw"){if(record.value){n.Expression.assert(record.value);abruptArgs[1]=record.value}}this.emit(b.returnStatement(b.callExpression(this.contextProperty("abrupt"),abruptArgs)))};function isValidCompletion(record){var type=record.type;if(type==="normal"){return!hasOwn.call(record,"target")}if(type==="break"||type==="continue"){return!hasOwn.call(record,"value")&&n.Literal.check(record.target)}if(type==="return"||type==="throw"){return hasOwn.call(record,"value")&&!hasOwn.call(record,"target")}return false}Ep.getUnmarkedCurrentLoc=function(){return b.literal(this.listing.length)};Ep.updateContextPrevLoc=function(loc){if(loc){n.Literal.assert(loc);if(loc.value===-1){loc.value=this.listing.length}else{assert.strictEqual(loc.value,this.listing.length)}}else{loc=this.getUnmarkedCurrentLoc()}this.emitAssign(this.contextProperty("prev"),loc)};Ep.explodeExpression=function(path,ignoreResult){assert.ok(path instanceof types.NodePath);var expr=path.value;if(expr){n.Expression.assert(expr)}else{return expr}var self=this;var result;function finish(expr){n.Expression.assert(expr);if(ignoreResult){self.emit(expr)}else{return expr}}if(!meta.containsLeap(expr)){return finish(expr)}var hasLeapingChildren=meta.containsLeap.onlyChildren(expr);function explodeViaTempVar(tempVar,childPath,ignoreChildResult){assert.ok(childPath instanceof types.NodePath);assert.ok(!ignoreChildResult||!tempVar,"Ignoring the result of a child expression but forcing it to "+"be assigned to a temporary variable?");var result=self.explodeExpression(childPath,ignoreChildResult);if(ignoreChildResult){}else if(tempVar||hasLeapingChildren&&(self.isVolatileContextProperty(result)||meta.hasSideEffects(result))){result=self.emitAssign(tempVar||self.makeTempVar(),result)}return result}switch(expr.type){case"MemberExpression":return finish(b.memberExpression(self.explodeExpression(path.get("object")),expr.computed?explodeViaTempVar(null,path.get("property")):expr.property,expr.computed));case"CallExpression":var oldCalleePath=path.get("callee");var newCallee=self.explodeExpression(oldCalleePath);if(!n.MemberExpression.check(oldCalleePath.node)&&n.MemberExpression.check(newCallee)){newCallee=b.sequenceExpression([b.literal(0),newCallee])}return finish(b.callExpression(newCallee,path.get("arguments").map(function(argPath){return explodeViaTempVar(null,argPath)})));case"NewExpression":return finish(b.newExpression(explodeViaTempVar(null,path.get("callee")),path.get("arguments").map(function(argPath){return explodeViaTempVar(null,argPath)})));case"ObjectExpression":return finish(b.objectExpression(path.get("properties").map(function(propPath){return b.property(propPath.value.kind,propPath.value.key,explodeViaTempVar(null,propPath.get("value")))})));case"ArrayExpression":return finish(b.arrayExpression(path.get("elements").map(function(elemPath){return explodeViaTempVar(null,elemPath)})));case"SequenceExpression":var lastIndex=expr.expressions.length-1;path.get("expressions").each(function(exprPath){if(exprPath.name===lastIndex){result=self.explodeExpression(exprPath,ignoreResult)}else{self.explodeExpression(exprPath,true)}});return result;case"LogicalExpression":var after=loc();if(!ignoreResult){result=self.makeTempVar()}var left=explodeViaTempVar(result,path.get("left"));if(expr.operator==="&&"){self.jumpIfNot(left,after)}else{assert.strictEqual(expr.operator,"||");self.jumpIf(left,after)}explodeViaTempVar(result,path.get("right"),ignoreResult);self.mark(after);return result;case"ConditionalExpression":var elseLoc=loc();var after=loc();var test=self.explodeExpression(path.get("test"));self.jumpIfNot(test,elseLoc);if(!ignoreResult){result=self.makeTempVar()}explodeViaTempVar(result,path.get("consequent"),ignoreResult);self.jump(after);self.mark(elseLoc);explodeViaTempVar(result,path.get("alternate"),ignoreResult);self.mark(after);return result;case"UnaryExpression":return finish(b.unaryExpression(expr.operator,self.explodeExpression(path.get("argument")),!!expr.prefix));case"BinaryExpression":return finish(b.binaryExpression(expr.operator,explodeViaTempVar(null,path.get("left")),explodeViaTempVar(null,path.get("right"))));case"AssignmentExpression":return finish(b.assignmentExpression(expr.operator,self.explodeExpression(path.get("left")),self.explodeExpression(path.get("right"))));case"UpdateExpression":return finish(b.updateExpression(expr.operator,self.explodeExpression(path.get("argument")),expr.prefix));case"YieldExpression":var after=loc();var arg=expr.argument&&self.explodeExpression(path.get("argument"));if(arg&&expr.delegate){var result=self.makeTempVar();self.emit(b.returnStatement(b.callExpression(self.contextProperty("delegateYield"),[arg,b.literal(result.property.name),after])));self.mark(after);return result}self.emitAssign(self.contextProperty("next"),after);self.emit(b.returnStatement(arg||null));self.mark(after);return self.contextProperty("sent");default:throw new Error("unknown Expression of type "+JSON.stringify(expr.type))}}},{"./leap":168,"./meta":169,"./util":170,assert:121,"ast-types":119}],167:[function(require,module,exports){var assert=require("assert");var types=require("ast-types");var n=types.namedTypes;var b=types.builders;var hasOwn=Object.prototype.hasOwnProperty;exports.hoist=function(funPath){assert.ok(funPath instanceof types.NodePath);n.Function.assert(funPath.value);var vars={};function varDeclToExpr(vdec,includeIdentifiers){n.VariableDeclaration.assert(vdec);var exprs=[];vdec.declarations.forEach(function(dec){vars[dec.id.name]=dec.id;if(dec.init){exprs.push(b.assignmentExpression("=",dec.id,dec.init))}else if(includeIdentifiers){exprs.push(dec.id)}});if(exprs.length===0)return null;if(exprs.length===1)return exprs[0];return b.sequenceExpression(exprs)}types.visit(funPath.get("body"),{visitVariableDeclaration:function(path){var expr=varDeclToExpr(path.value,false);if(expr===null){path.replace()}else{return b.expressionStatement(expr)}return false},visitForStatement:function(path){var init=path.value.init;if(n.VariableDeclaration.check(init)){path.get("init").replace(varDeclToExpr(init,false))}this.traverse(path)},visitForInStatement:function(path){var left=path.value.left;if(n.VariableDeclaration.check(left)){path.get("left").replace(varDeclToExpr(left,true))}this.traverse(path)},visitFunctionDeclaration:function(path){var node=path.value;vars[node.id.name]=node.id;var parentNode=path.parent.node;var assignment=b.expressionStatement(b.assignmentExpression("=",node.id,b.functionExpression(node.id,node.params,node.body,node.generator,node.expression)));if(n.BlockStatement.check(path.parent.node)){path.parent.get("body").unshift(assignment);path.replace()}else{path.replace(assignment)}return false},visitFunctionExpression:function(path){return false}});var paramNames={};funPath.get("params").each(function(paramPath){var param=paramPath.value;if(n.Identifier.check(param)){paramNames[param.name]=param}else{}});var declarations=[];Object.keys(vars).forEach(function(name){if(!hasOwn.call(paramNames,name)){declarations.push(b.variableDeclarator(vars[name],null))}});if(declarations.length===0){return null}return b.variableDeclaration("var",declarations)}},{assert:121,"ast-types":119}],168:[function(require,module,exports){var assert=require("assert");var types=require("ast-types");var n=types.namedTypes;var b=types.builders;var inherits=require("util").inherits;var hasOwn=Object.prototype.hasOwnProperty;function Entry(){assert.ok(this instanceof Entry)}function FunctionEntry(returnLoc){Entry.call(this);n.Literal.assert(returnLoc);this.returnLoc=returnLoc}inherits(FunctionEntry,Entry);exports.FunctionEntry=FunctionEntry;function LoopEntry(breakLoc,continueLoc,label){Entry.call(this);n.Literal.assert(breakLoc);n.Literal.assert(continueLoc);if(label){n.Identifier.assert(label)}else{label=null}this.breakLoc=breakLoc;this.continueLoc=continueLoc;this.label=label}inherits(LoopEntry,Entry);exports.LoopEntry=LoopEntry;function SwitchEntry(breakLoc){Entry.call(this);n.Literal.assert(breakLoc);this.breakLoc=breakLoc}inherits(SwitchEntry,Entry);exports.SwitchEntry=SwitchEntry;function TryEntry(firstLoc,catchEntry,finallyEntry){Entry.call(this);n.Literal.assert(firstLoc);if(catchEntry){assert.ok(catchEntry instanceof CatchEntry)}else{catchEntry=null}if(finallyEntry){assert.ok(finallyEntry instanceof FinallyEntry)}else{finallyEntry=null}assert.ok(catchEntry||finallyEntry);this.firstLoc=firstLoc;this.catchEntry=catchEntry;this.finallyEntry=finallyEntry}inherits(TryEntry,Entry);exports.TryEntry=TryEntry;function CatchEntry(firstLoc,paramId){Entry.call(this);n.Literal.assert(firstLoc);n.Identifier.assert(paramId);this.firstLoc=firstLoc;this.paramId=paramId}inherits(CatchEntry,Entry);exports.CatchEntry=CatchEntry;function FinallyEntry(firstLoc){Entry.call(this);n.Literal.assert(firstLoc);this.firstLoc=firstLoc}inherits(FinallyEntry,Entry);exports.FinallyEntry=FinallyEntry;function LabeledEntry(breakLoc,label){Entry.call(this);n.Literal.assert(breakLoc);n.Identifier.assert(label);this.breakLoc=breakLoc;this.label=label}inherits(LabeledEntry,Entry);exports.LabeledEntry=LabeledEntry;function LeapManager(emitter){assert.ok(this instanceof LeapManager);var Emitter=require("./emit").Emitter;assert.ok(emitter instanceof Emitter);this.emitter=emitter;this.entryStack=[new FunctionEntry(emitter.finalLoc)]}var LMp=LeapManager.prototype;exports.LeapManager=LeapManager;LMp.withEntry=function(entry,callback){assert.ok(entry instanceof Entry);this.entryStack.push(entry);try{callback.call(this.emitter)}finally{var popped=this.entryStack.pop();assert.strictEqual(popped,entry)}};LMp._findLeapLocation=function(property,label){for(var i=this.entryStack.length-1;i>=0;--i){var entry=this.entryStack[i];var loc=entry[property];if(loc){if(label){if(entry.label&&entry.label.name===label.name){return loc}}else if(entry instanceof LabeledEntry){}else{return loc}}}return null};LMp.getBreakLoc=function(label){return this._findLeapLocation("breakLoc",label)};LMp.getContinueLoc=function(label){return this._findLeapLocation("continueLoc",label)}},{"./emit":166,assert:121,"ast-types":119,util:145}],169:[function(require,module,exports){var assert=require("assert");var m=require("private").makeAccessor();var types=require("ast-types");var isArray=types.builtInTypes.array;var n=types.namedTypes;var hasOwn=Object.prototype.hasOwnProperty;function makePredicate(propertyName,knownTypes){function onlyChildren(node){n.Node.assert(node);var result=false;function check(child){if(result){}else if(isArray.check(child)){child.some(check)}else if(n.Node.check(child)){assert.strictEqual(result,false);result=predicate(child)}return result}types.eachField(node,function(name,child){check(child)});return result}function predicate(node){n.Node.assert(node);var meta=m(node);if(hasOwn.call(meta,propertyName))return meta[propertyName];if(hasOwn.call(opaqueTypes,node.type))return meta[propertyName]=false;if(hasOwn.call(knownTypes,node.type))return meta[propertyName]=true;return meta[propertyName]=onlyChildren(node)}predicate.onlyChildren=onlyChildren;return predicate}var opaqueTypes={FunctionExpression:true};var sideEffectTypes={CallExpression:true,ForInStatement:true,UnaryExpression:true,BinaryExpression:true,AssignmentExpression:true,UpdateExpression:true,NewExpression:true};var leapTypes={YieldExpression:true,BreakStatement:true,ContinueStatement:true,ReturnStatement:true,ThrowStatement:true};for(var type in leapTypes){if(hasOwn.call(leapTypes,type)){sideEffectTypes[type]=leapTypes[type]}}exports.hasSideEffects=makePredicate("hasSideEffects",sideEffectTypes);exports.containsLeap=makePredicate("containsLeap",leapTypes)},{assert:121,"ast-types":119,"private":165}],170:[function(require,module,exports){var assert=require("assert");var types=require("ast-types");var n=types.namedTypes;var b=types.builders;var hasOwn=Object.prototype.hasOwnProperty;exports.defaults=function(obj){var len=arguments.length;var extension;for(var i=1;i<len;++i){if(extension=arguments[i]){for(var key in extension){if(hasOwn.call(extension,key)&&!hasOwn.call(obj,key)){obj[key]=extension[key]}}}}return obj};exports.runtimeProperty=function(name){return b.memberExpression(b.identifier("regeneratorRuntime"),b.identifier(name),false)};exports.isReference=function(path,name){var node=path.value;if(!n.Identifier.check(node)){return false}if(name&&node.name!==name){return false}var parent=path.parent.value;switch(parent.type){case"VariableDeclarator":return path.name==="init";case"MemberExpression":return path.name==="object"||parent.computed&&path.name==="property";case"FunctionExpression":case"FunctionDeclaration":case"ArrowFunctionExpression":if(path.name==="id"){return false}if(parent.params===path.parentPath&&parent.params[path.name]===node){return false}return true;case"ClassDeclaration":case"ClassExpression":return path.name!=="id";case"CatchClause":return path.name!=="param";case"Property":case"MethodDefinition":return path.name!=="key";case"ImportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"LabeledStatement":return false;default:return true}}},{assert:121,"ast-types":119}],171:[function(require,module,exports){var assert=require("assert");var fs=require("fs");var types=require("ast-types");var n=types.namedTypes;var b=types.builders;var isArray=types.builtInTypes.array;var isObject=types.builtInTypes.object;var NodePath=types.NodePath;var hoist=require("./hoist").hoist;var Emitter=require("./emit").Emitter;var runtimeProperty=require("./util").runtimeProperty;var runtimeWrapMethod=runtimeProperty("wrap");var runtimeMarkMethod=runtimeProperty("mark");var runtimeValuesMethod=runtimeProperty("values");var runtimeAsyncMethod=runtimeProperty("async");exports.transform=function transform(node,options){options=options||{};var path=node instanceof NodePath?node:new NodePath(node);visitor.visit(path,options);node=path.value;options.madeChanges=visitor.wasChangeReported();return node};var visitor=types.PathVisitor.fromMethodsObject({reset:function(node,options){this.options=options},visitFunction:function(path){this.traverse(path);var node=path.value;var shouldTransformAsync=node.async&&!this.options.disableAsync;if(!node.generator&&!shouldTransformAsync){return}this.reportChanged();node.generator=false;if(node.expression){node.expression=false;node.body=b.blockStatement([b.returnStatement(node.body)])}if(shouldTransformAsync){awaitVisitor.visit(path.get("body"))}var outerFnId=node.id||(node.id=path.scope.parent.declareTemporary("callee$"));var innerFnId=b.identifier(node.id.name+"$");var contextId=path.scope.declareTemporary("context$");var vars=hoist(path);var emitter=new Emitter(contextId);emitter.explode(path.get("body"));var outerBody=[];if(vars&&vars.declarations.length>0){outerBody.push(vars)}var wrapArgs=[emitter.getContextFunction(innerFnId),shouldTransformAsync?b.literal(null):outerFnId,b.thisExpression()];var tryEntryList=emitter.getTryEntryList();if(tryEntryList){wrapArgs.push(tryEntryList)}var wrapCall=b.callExpression(shouldTransformAsync?runtimeAsyncMethod:runtimeWrapMethod,wrapArgs);outerBody.push(b.returnStatement(wrapCall));node.body=b.blockStatement(outerBody);if(shouldTransformAsync){node.async=false;return}if(n.FunctionDeclaration.check(node)){var pp=path.parent;while(pp&&!(n.BlockStatement.check(pp.value)||n.Program.check(pp.value))){pp=pp.parent}if(!pp){return}path.replace();node.type="FunctionExpression";var varDecl=b.variableDeclaration("var",[b.variableDeclarator(node.id,b.callExpression(runtimeMarkMethod,[node]))]);if(node.comments){varDecl.leadingComments=node.leadingComments;varDecl.trailingComments=node.trailingComments;node.leadingComments=null;node.trailingComments=null}varDecl._blockHoist=3;var bodyPath=pp.get("body");var bodyLen=bodyPath.value.length;bodyPath.push(varDecl)}else{n.FunctionExpression.assert(node);return b.callExpression(runtimeMarkMethod,[node])}}});function shouldNotHoistAbove(stmtPath){var value=stmtPath.value;n.Statement.assert(value);if(n.ExpressionStatement.check(value)&&n.Literal.check(value.expression)&&value.expression.value==="use strict"){return true}if(n.VariableDeclaration.check(value)){for(var i=0;i<value.declarations.length;++i){var decl=value.declarations[i];if(n.CallExpression.check(decl.init)&&types.astNodesAreEquivalent(decl.init.callee,runtimeMarkMethod)){return true}}}return false}var awaitVisitor=types.PathVisitor.fromMethodsObject({visitFunction:function(path){return false},visitAwaitExpression:function(path){return b.yieldExpression(path.value.argument,false)}})},{"./emit":166,"./hoist":167,"./util":170,assert:121,"ast-types":119,fs:120}],172:[function(require,module,exports){(function(__dirname){var assert=require("assert");var path=require("path");var fs=require("fs");var through=require("through");var transform=require("./lib/visit").transform;var utils=require("./lib/util");var types=require("ast-types");var genOrAsyncFunExp=/\bfunction\s*\*|\basync\b/;var blockBindingExp=/\b(let|const)\s+/;function exports(file,options){var data=[];return through(write,end);function write(buf){data.push(buf)}function end(){this.queue(compile(data.join(""),options).code);this.queue(null)}}module.exports=exports;function runtime(){require("./runtime")}exports.runtime=runtime;runtime.path=path.join(__dirname,"runtime.js");exports.transform=transform}).call(this,"/node_modules/regenerator-6to5")},{"./lib/util":170,"./lib/visit":171,"./runtime":174,assert:121,"ast-types":119,fs:120,path:129,through:173}],173:[function(require,module,exports){(function(process){var Stream=require("stream");exports=module.exports=through;through.through=through;function through(write,end,opts){write=write||function(data){this.queue(data)};end=end||function(){this.queue(null)};var ended=false,destroyed=false,buffer=[],_ended=false;var stream=new Stream;stream.readable=stream.writable=true;stream.paused=false;stream.autoDestroy=!(opts&&opts.autoDestroy===false);stream.write=function(data){write.call(this,data);return!stream.paused};function drain(){while(buffer.length&&!stream.paused){var data=buffer.shift();if(null===data)return stream.emit("end");else stream.emit("data",data)}}stream.queue=stream.push=function(data){if(_ended)return stream;if(data==null)_ended=true;buffer.push(data);drain();return stream};stream.on("end",function(){stream.readable=false;if(!stream.writable&&stream.autoDestroy)process.nextTick(function(){stream.destroy()})});function _end(){stream.writable=false;end.call(stream);if(!stream.readable&&stream.autoDestroy)stream.destroy()}stream.end=function(data){if(ended)return;ended=true;if(arguments.length)stream.write(data);_end();return stream};stream.destroy=function(){if(destroyed)return;destroyed=true;ended=true;buffer.length=0;stream.writable=stream.readable=false;stream.emit("close");return stream};stream.pause=function(){if(stream.paused)return;stream.paused=true;return stream};stream.resume=function(){if(stream.paused){stream.paused=false;stream.emit("resume")}drain();if(!stream.paused)stream.emit("drain");return stream};return stream}}).call(this,require("_process"))},{_process:130,stream:142}],174:[function(require,module,exports){(function(global){!function(global){"use strict";var hasOwn=Object.prototype.hasOwnProperty;var undefined;var iteratorSymbol=typeof Symbol==="function"&&Symbol.iterator||"@@iterator";var inModule=typeof module==="object";var runtime=global.regeneratorRuntime;if(runtime){if(inModule){module.exports=runtime}return}runtime=global.regeneratorRuntime=inModule?module.exports:{};function wrap(innerFn,outerFn,self,tryList){return new Generator(innerFn,outerFn,self||null,tryList||[])}runtime.wrap=wrap;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";var ContinueSentinel={};function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype;GeneratorFunction.prototype=Gp.constructor=GeneratorFunctionPrototype;GeneratorFunctionPrototype.constructor=GeneratorFunction;GeneratorFunction.displayName="GeneratorFunction";runtime.isGeneratorFunction=function(genFun){var ctor=typeof genFun==="function"&&genFun.constructor;return ctor?ctor===GeneratorFunction||(ctor.displayName||ctor.name)==="GeneratorFunction":false};runtime.mark=function(genFun){genFun.__proto__=GeneratorFunctionPrototype;genFun.prototype=Object.create(Gp);return genFun};runtime.async=function(innerFn,outerFn,self,tryList){return new Promise(function(resolve,reject){var generator=wrap(innerFn,outerFn,self,tryList);var callNext=step.bind(generator.next);var callThrow=step.bind(generator["throw"]);function step(arg){var record=tryCatch(this,null,arg);if(record.type==="throw"){reject(record.arg);return}var info=record.arg;if(info.done){resolve(info.value)}else{Promise.resolve(info.value).then(callNext,callThrow)}}callNext()})};function Generator(innerFn,outerFn,self,tryList){var generator=outerFn?Object.create(outerFn.prototype):this;
var context=new Context(tryList);var state=GenStateSuspendedStart;function invoke(method,arg){if(state===GenStateExecuting){throw new Error("Generator is already running")}if(state===GenStateCompleted){return doneResult()}while(true){var delegate=context.delegate;if(delegate){var record=tryCatch(delegate.iterator[method],delegate.iterator,arg);if(record.type==="throw"){context.delegate=null;method="throw";arg=record.arg;continue}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===GenStateSuspendedStart&&typeof arg!=="undefined"){throw new TypeError("attempt to send "+JSON.stringify(arg)+" to newborn generator")}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)){method="next";arg=undefined}}else if(method==="return"){context.abrupt("return",arg)}state=GenStateExecuting;var record=tryCatch(innerFn,self,context);if(record.type==="normal"){state=context.done?GenStateCompleted:GenStateSuspendedYield;var info={value:record.arg,done:context.done};if(record.arg===ContinueSentinel){if(context.delegate&&method==="next"){arg=undefined}}else{return info}}else if(record.type==="throw"){state=GenStateCompleted;if(method==="next"){context.dispatchException(record.arg)}else{arg=record.arg}}}}generator.next=invoke.bind(generator,"next");generator["throw"]=invoke.bind(generator,"throw");generator["return"]=invoke.bind(generator,"return");return generator}Gp[iteratorSymbol]=function(){return this};Gp.toString=function(){return"[object Generator]"};function pushTryEntry(triple){var entry={tryLoc:triple[0]};if(1 in triple){entry.catchLoc=triple[1]}if(2 in triple){entry.finallyLoc=triple[2]}this.tryEntries.push(entry)}function resetTryEntry(entry,i){var record=entry.completion||{};record.type=i===0?"normal":"return";delete record.arg;entry.completion=record}function Context(tryList){this.tryEntries=[{tryLoc:"root"}];tryList.forEach(pushTryEntry,this);this.reset()}runtime.keys=function(object){var keys=[];for(var key in object){keys.push(key)}keys.reverse();return function next(){while(keys.length){var key=keys.pop();if(key in object){next.value=key;next.done=false;return next}}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{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);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"){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")}}}},_findFinallyEntry:function(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&(entry.finallyLoc===finallyLoc||this.prev<entry.finallyLoc)){return entry}}},abrupt:function(type,arg){var entry=this._findFinallyEntry();var record=entry?entry.completion:{};record.type=type;record.arg=arg;if(entry){this.next=entry.finallyLoc}else{this.complete(record)}return ContinueSentinel},complete:function(record){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"}return ContinueSentinel},finish:function(finallyLoc){var entry=this._findFinallyEntry(finallyLoc);return this.complete(entry.completion)},"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,i)}return thrown}}throw new Error("illegal catch attempt")},delegateYield:function(iterable,resultName,nextLoc){this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc};return ContinueSentinel}}}(typeof global==="object"?global:typeof window==="object"?window:this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],175:[function(require,module,exports){var regenerate=require("regenerate");exports.REGULAR={d:regenerate().addRange(48,57),D:regenerate().addRange(0,47).addRange(58,65535),s:regenerate(32,160,5760,6158,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233),S:regenerate().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,6157).addRange(6159,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,65535),w:regenerate(95).addRange(48,57).addRange(65,90).addRange(97,122),W:regenerate(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,65535)};exports.UNICODE={d:regenerate().addRange(48,57),D:regenerate().addRange(0,47).addRange(58,1114111),s:regenerate(32,160,5760,6158,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233),S:regenerate().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,6157).addRange(6159,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,1114111),w:regenerate(95).addRange(48,57).addRange(65,90).addRange(97,122),W:regenerate(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,1114111)};exports.UNICODE_IGNORE_CASE={d:regenerate().addRange(48,57),D:regenerate().addRange(0,47).addRange(58,1114111),s:regenerate(32,160,5760,6158,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233),S:regenerate().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,6157).addRange(6159,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,1114111),w:regenerate(95,383,8490).addRange(48,57).addRange(65,90).addRange(97,122),W:regenerate(75,83,96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,1114111)}},{regenerate:177}],176:[function(require,module,exports){module.exports={75:8490,83:383,107:8490,115:383,181:924,197:8491,383:83,452:453,453:452,455:456,456:455,458:459,459:458,497:498,498:497,837:8126,914:976,917:1013,920:1012,921:8126,922:1008,924:181,928:982,929:1009,931:962,934:981,937:8486,962:931,976:914,977:1012,981:934,982:928,1008:922,1009:929,1012:[920,977],1013:917,7776:7835,7835:7776,8126:[837,921],8486:937,8490:75,8491:197,66560:66600,66561:66601,66562:66602,66563:66603,66564:66604,66565:66605,66566:66606,66567:66607,66568:66608,66569:66609,66570:66610,66571:66611,66572:66612,66573:66613,66574:66614,66575:66615,66576:66616,66577:66617,66578:66618,66579:66619,66580:66620,66581:66621,66582:66622,66583:66623,66584:66624,66585:66625,66586:66626,66587:66627,66588:66628,66589:66629,66590:66630,66591:66631,66592:66632,66593:66633,66594:66634,66595:66635,66596:66636,66597:66637,66598:66638,66599:66639,66600:66560,66601:66561,66602:66562,66603:66563,66604:66564,66605:66565,66606:66566,66607:66567,66608:66568,66609:66569,66610:66570,66611:66571,66612:66572,66613:66573,66614:66574,66615:66575,66616:66576,66617:66577,66618:66578,66619:66579,66620:66580,66621:66581,66622:66582,66623:66583,66624:66584,66625:66585,66626:66586,66627:66587,66628:66588,66629:66589,66630:66590,66631:66591,66632:66592,66633:66593,66634:66594,66635:66595,66636:66596,66637:66597,66638:66598,66639:66599,71840:71872,71841:71873,71842:71874,71843:71875,71844:71876,71845:71877,71846:71878,71847:71879,71848:71880,71849:71881,71850:71882,71851:71883,71852:71884,71853:71885,71854:71886,71855:71887,71856:71888,71857:71889,71858:71890,71859:71891,71860:71892,71861:71893,71862:71894,71863:71895,71864:71896,71865:71897,71866:71898,71867:71899,71868:71900,71869:71901,71870:71902,71871:71903,71872:71840,71873:71841,71874:71842,71875:71843,71876:71844,71877:71845,71878:71846,71879:71847,71880:71848,71881:71849,71882:71850,71883:71851,71884:71852,71885:71853,71886:71854,71887:71855,71888:71856,71889:71857,71890:71858,71891:71859,71892:71860,71893:71861,71894:71862,71895:71863,71896:71864,71897:71865,71898:71866,71899:71867,71900:71868,71901:71869,71902:71870,71903:71871}},{}],177:[function(require,module,exports){(function(global){(function(root){var freeExports=typeof exports=="object"&&exports;var freeModule=typeof module=="object"&&module&&module.exports==freeExports&&module;var freeGlobal=typeof global=="object"&&global;if(freeGlobal.global===freeGlobal||freeGlobal.window===freeGlobal){root=freeGlobal}var ERRORS={rangeOrder:"A range’s `stop` value must be greater than or equal "+"to the `start` value.",codePointRange:"Invalid code point value. Code points range from "+"U+000000 to U+10FFFF."};var HIGH_SURROGATE_MIN=55296;var HIGH_SURROGATE_MAX=56319;var LOW_SURROGATE_MIN=56320;var LOW_SURROGATE_MAX=57343;var regexNull=/\\x00([^0123456789]|$)/g;var object={};var hasOwnProperty=object.hasOwnProperty;var extend=function(destination,source){var key;for(key in source){if(hasOwnProperty.call(source,key)){destination[key]=source[key]}}return destination};var forEach=function(array,callback){var index=-1;var length=array.length;while(++index<length){callback(array[index],index)}};var toString=object.toString;var isArray=function(value){return toString.call(value)=="[object Array]"};var isNumber=function(value){return typeof value=="number"||toString.call(value)=="[object Number]"};var zeroes="0000";var pad=function(number,totalCharacters){var string=String(number);return string.length<totalCharacters?(zeroes+string).slice(-totalCharacters):string};var hex=function(number){return Number(number).toString(16).toUpperCase()};var slice=[].slice;var dataFromCodePoints=function(codePoints){var index=-1;var length=codePoints.length;var max=length-1;var result=[];var isStart=true;var tmp;var previous=0;while(++index<length){tmp=codePoints[index];if(isStart){result.push(tmp);previous=tmp;isStart=false}else{if(tmp==previous+1){if(index!=max){previous=tmp;continue}else{isStart=true;result.push(tmp+1)}}else{result.push(previous+1,tmp);previous=tmp}}}if(!isStart){result.push(tmp+1)}return result};var dataRemove=function(data,codePoint){var index=0;var start;var end;var length=data.length;while(index<length){start=data[index];end=data[index+1];if(codePoint>=start&&codePoint<end){if(codePoint==start){if(end==start+1){data.splice(index,2);return data}else{data[index]=codePoint+1;return data}}else if(codePoint==end-1){data[index+1]=codePoint;return data}else{data.splice(index,2,start,codePoint,codePoint+1,end);return data}}index+=2}return data};var dataRemoveRange=function(data,rangeStart,rangeEnd){if(rangeEnd<rangeStart){throw Error(ERRORS.rangeOrder)}var index=0;var start;var end;while(index<data.length){start=data[index];end=data[index+1]-1;if(start>rangeEnd){return data}if(rangeStart<=start&&rangeEnd>=end){data.splice(index,2);continue}if(rangeStart>=start&&rangeEnd<end){if(rangeStart==start){data[index]=rangeEnd+1;data[index+1]=end+1;return data}data.splice(index,2,start,rangeStart,rangeEnd+1,end+1);return data}if(rangeStart>=start&&rangeStart<=end){data[index+1]=rangeStart}else if(rangeEnd>=start&&rangeEnd<=end){data[index]=rangeEnd+1;return data}index+=2}return data};var dataAdd=function(data,codePoint){var index=0;var start;var end;var lastIndex=null;var length=data.length;if(codePoint<0||codePoint>1114111){throw RangeError(ERRORS.codePointRange)}while(index<length){start=data[index];end=data[index+1];if(codePoint>=start&&codePoint<end){return data}if(codePoint==start-1){data[index]=codePoint;return data}if(start>codePoint){data.splice(lastIndex!=null?lastIndex+2:0,0,codePoint,codePoint+1);return data}if(codePoint==end){if(codePoint+1==data[index+2]){data.splice(index,4,start,data[index+3]);return data}data[index+1]=codePoint+1;return data}lastIndex=index;index+=2}data.push(codePoint,codePoint+1);return data};var dataAddData=function(dataA,dataB){var index=0;var start;var end;var data=dataA.slice();var length=dataB.length;while(index<length){start=dataB[index];end=dataB[index+1]-1;if(start==end){data=dataAdd(data,start)}else{data=dataAddRange(data,start,end)}index+=2}return data};var dataRemoveData=function(dataA,dataB){var index=0;var start;var end;var data=dataA.slice();var length=dataB.length;while(index<length){start=dataB[index];end=dataB[index+1]-1;if(start==end){data=dataRemove(data,start)}else{data=dataRemoveRange(data,start,end)}index+=2}return data};var dataAddRange=function(data,rangeStart,rangeEnd){if(rangeEnd<rangeStart){throw Error(ERRORS.rangeOrder)}if(rangeStart<0||rangeStart>1114111||rangeEnd<0||rangeEnd>1114111){throw RangeError(ERRORS.codePointRange)}var index=0;var start;var end;var added=false;var length=data.length;while(index<length){start=data[index];end=data[index+1];if(added){if(start==rangeEnd+1){data.splice(index-1,2);return data}if(start>rangeEnd){return data}if(start>=rangeStart&&start<=rangeEnd){if(end>rangeStart&&end-1<=rangeEnd){data.splice(index,2);index-=2}else{data.splice(index-1,2);index-=2}}}else if(start==rangeEnd+1){data[index]=rangeStart;return data}else if(start>rangeEnd){data.splice(index,0,rangeStart,rangeEnd+1);return data}else if(rangeStart>=start&&rangeStart<end&&rangeEnd+1<=end){return data}else if(rangeStart>=start&&rangeStart<end||end==rangeStart){data[index+1]=rangeEnd+1;added=true}else if(rangeStart<=start&&rangeEnd+1>=end){data[index]=rangeStart;data[index+1]=rangeEnd+1;added=true}index+=2}if(!added){data.push(rangeStart,rangeEnd+1)}return data};var dataContains=function(data,codePoint){var index=0;var length=data.length;var start=data[index];var end=data[length-1];if(length>=2){if(codePoint<start||codePoint>end){return false}}while(index<length){start=data[index];end=data[index+1];if(codePoint>=start&&codePoint<end){return true}index+=2}return false};var dataIntersection=function(data,codePoints){var index=0;var length=codePoints.length;var codePoint;var result=[];while(index<length){codePoint=codePoints[index];if(dataContains(data,codePoint)){result.push(codePoint)}++index}return dataFromCodePoints(result)};var dataIsEmpty=function(data){return!data.length};var dataIsSingleton=function(data){return data.length==2&&data[0]+1==data[1]};var dataToArray=function(data){var index=0;var start;var end;var result=[];var length=data.length;while(index<length){start=data[index];end=data[index+1];while(start<end){result.push(start);++start}index+=2}return result};var floor=Math.floor;var highSurrogate=function(codePoint){return parseInt(floor((codePoint-65536)/1024)+HIGH_SURROGATE_MIN,10)};var lowSurrogate=function(codePoint){return parseInt((codePoint-65536)%1024+LOW_SURROGATE_MIN,10)};var stringFromCharCode=String.fromCharCode;var codePointToString=function(codePoint){var string;if(codePoint==9){string="\\t"}else if(codePoint==10){string="\\n"}else if(codePoint==12){string="\\f"}else if(codePoint==13){string="\\r"}else if(codePoint==92){string="\\\\"}else if(codePoint==36||codePoint>=40&&codePoint<=43||codePoint==45||codePoint==46||codePoint==63||codePoint>=91&&codePoint<=94||codePoint>=123&&codePoint<=125){string="\\"+stringFromCharCode(codePoint)}else if(codePoint>=32&&codePoint<=126){string=stringFromCharCode(codePoint)}else if(codePoint<=255){string="\\x"+pad(hex(codePoint),2)}else{string="\\u"+pad(hex(codePoint),4)}return string};var symbolToCodePoint=function(symbol){var length=symbol.length;var first=symbol.charCodeAt(0);var second;if(first>=HIGH_SURROGATE_MIN&&first<=HIGH_SURROGATE_MAX&&length>1){second=symbol.charCodeAt(1);return(first-HIGH_SURROGATE_MIN)*1024+second-LOW_SURROGATE_MIN+65536}return first};var createBMPCharacterClasses=function(data){var result="";var index=0;var start;var end;var length=data.length;if(dataIsSingleton(data)){return codePointToString(data[0])}while(index<length){start=data[index];end=data[index+1]-1;if(start==end){result+=codePointToString(start)}else if(start+1==end){result+=codePointToString(start)+codePointToString(end)}else{result+=codePointToString(start)+"-"+codePointToString(end)}index+=2}return"["+result+"]"};var splitAtBMP=function(data){var loneHighSurrogates=[];var loneLowSurrogates=[];var bmp=[];var astral=[];var index=0;var start;var end;var length=data.length;while(index<length){start=data[index];end=data[index+1]-1;if(start<HIGH_SURROGATE_MIN){if(end<HIGH_SURROGATE_MIN){bmp.push(start,end+1)}if(end>=HIGH_SURROGATE_MIN&&end<=HIGH_SURROGATE_MAX){bmp.push(start,HIGH_SURROGATE_MIN);loneHighSurrogates.push(HIGH_SURROGATE_MIN,end+1)}if(end>=LOW_SURROGATE_MIN&&end<=LOW_SURROGATE_MAX){bmp.push(start,HIGH_SURROGATE_MIN);loneHighSurrogates.push(HIGH_SURROGATE_MIN,HIGH_SURROGATE_MAX+1);loneLowSurrogates.push(LOW_SURROGATE_MIN,end+1)}if(end>LOW_SURROGATE_MAX){bmp.push(start,HIGH_SURROGATE_MIN);loneHighSurrogates.push(HIGH_SURROGATE_MIN,HIGH_SURROGATE_MAX+1);loneLowSurrogates.push(LOW_SURROGATE_MIN,LOW_SURROGATE_MAX+1);if(end<=65535){bmp.push(LOW_SURROGATE_MAX+1,end+1)}else{bmp.push(LOW_SURROGATE_MAX+1,65535+1);astral.push(65535+1,end+1)}}}else if(start>=HIGH_SURROGATE_MIN&&start<=HIGH_SURROGATE_MAX){if(end>=HIGH_SURROGATE_MIN&&end<=HIGH_SURROGATE_MAX){loneHighSurrogates.push(start,end+1)}if(end>=LOW_SURROGATE_MIN&&end<=LOW_SURROGATE_MAX){loneHighSurrogates.push(start,HIGH_SURROGATE_MAX+1);loneLowSurrogates.push(LOW_SURROGATE_MIN,end+1)}if(end>LOW_SURROGATE_MAX){loneHighSurrogates.push(start,HIGH_SURROGATE_MAX+1);loneLowSurrogates.push(LOW_SURROGATE_MIN,LOW_SURROGATE_MAX+1);if(end<=65535){bmp.push(LOW_SURROGATE_MAX+1,end+1)}else{bmp.push(LOW_SURROGATE_MAX+1,65535+1);astral.push(65535+1,end+1)}}}else if(start>=LOW_SURROGATE_MIN&&start<=LOW_SURROGATE_MAX){if(end>=LOW_SURROGATE_MIN&&end<=LOW_SURROGATE_MAX){loneLowSurrogates.push(start,end+1)}if(end>LOW_SURROGATE_MAX){loneLowSurrogates.push(start,LOW_SURROGATE_MAX+1);if(end<=65535){bmp.push(LOW_SURROGATE_MAX+1,end+1)}else{bmp.push(LOW_SURROGATE_MAX+1,65535+1);astral.push(65535+1,end+1)}}}else if(start>LOW_SURROGATE_MAX&&start<=65535){if(end<=65535){bmp.push(start,end+1)}else{bmp.push(start,65535+1);astral.push(65535+1,end+1)}}else{astral.push(start,end+1)}index+=2}return{loneHighSurrogates:loneHighSurrogates,loneLowSurrogates:loneLowSurrogates,bmp:bmp,astral:astral}};var optimizeSurrogateMappings=function(surrogateMappings){var result=[];var tmpLow=[];var addLow=false;var mapping;var nextMapping;var highSurrogates;var lowSurrogates;var nextHighSurrogates;var nextLowSurrogates;var index=-1;var length=surrogateMappings.length;while(++index<length){mapping=surrogateMappings[index];nextMapping=surrogateMappings[index+1];if(!nextMapping){result.push(mapping);continue}highSurrogates=mapping[0];lowSurrogates=mapping[1];nextHighSurrogates=nextMapping[0];nextLowSurrogates=nextMapping[1];tmpLow=lowSurrogates;while(nextHighSurrogates&&highSurrogates[0]==nextHighSurrogates[0]&&highSurrogates[1]==nextHighSurrogates[1]){if(dataIsSingleton(nextLowSurrogates)){tmpLow=dataAdd(tmpLow,nextLowSurrogates[0])}else{tmpLow=dataAddRange(tmpLow,nextLowSurrogates[0],nextLowSurrogates[1]-1)}++index;mapping=surrogateMappings[index];highSurrogates=mapping[0];lowSurrogates=mapping[1];nextMapping=surrogateMappings[index+1];nextHighSurrogates=nextMapping&&nextMapping[0];nextLowSurrogates=nextMapping&&nextMapping[1];addLow=true}result.push([highSurrogates,addLow?tmpLow:lowSurrogates]);addLow=false}return optimizeByLowSurrogates(result)};var optimizeByLowSurrogates=function(surrogateMappings){if(surrogateMappings.length==1){return surrogateMappings}var index=-1;var innerIndex=-1;while(++index<surrogateMappings.length){var mapping=surrogateMappings[index];var lowSurrogates=mapping[1];var lowSurrogateStart=lowSurrogates[0];var lowSurrogateEnd=lowSurrogates[1];innerIndex=index;while(++innerIndex<surrogateMappings.length){var otherMapping=surrogateMappings[innerIndex];var otherLowSurrogates=otherMapping[1];var otherLowSurrogateStart=otherLowSurrogates[0];var otherLowSurrogateEnd=otherLowSurrogates[1];if(lowSurrogateStart==otherLowSurrogateStart&&lowSurrogateEnd==otherLowSurrogateEnd){if(dataIsSingleton(otherMapping[0])){mapping[0]=dataAdd(mapping[0],otherMapping[0][0])}else{mapping[0]=dataAddRange(mapping[0],otherMapping[0][0],otherMapping[0][1]-1)}surrogateMappings.splice(innerIndex,1);--innerIndex}}}return surrogateMappings};var surrogateSet=function(data){if(!data.length){return[]}var index=0;var start;var end;var startHigh;var startLow;var prevStartHigh=0;var prevEndHigh=0;var tmpLow=[];var endHigh;var endLow;var surrogateMappings=[];var length=data.length;var dataHigh=[];while(index<length){start=data[index];end=data[index+1]-1;startHigh=highSurrogate(start);startLow=lowSurrogate(start);endHigh=highSurrogate(end);endLow=lowSurrogate(end);var startsWithLowestLowSurrogate=startLow==LOW_SURROGATE_MIN;var endsWithHighestLowSurrogate=endLow==LOW_SURROGATE_MAX;var complete=false;if(startHigh==endHigh||startsWithLowestLowSurrogate&&endsWithHighestLowSurrogate){surrogateMappings.push([[startHigh,endHigh+1],[startLow,endLow+1]]);complete=true}else{surrogateMappings.push([[startHigh,startHigh+1],[startLow,LOW_SURROGATE_MAX+1]])}if(!complete&&startHigh+1<endHigh){if(endsWithHighestLowSurrogate){surrogateMappings.push([[startHigh+1,endHigh+1],[LOW_SURROGATE_MIN,endLow+1]]);complete=true}else{surrogateMappings.push([[startHigh+1,endHigh],[LOW_SURROGATE_MIN,LOW_SURROGATE_MAX+1]])}}if(!complete){surrogateMappings.push([[endHigh,endHigh+1],[LOW_SURROGATE_MIN,endLow+1]])}prevStartHigh=startHigh;prevEndHigh=endHigh;index+=2}return optimizeSurrogateMappings(surrogateMappings)};var createSurrogateCharacterClasses=function(surrogateMappings){var result=[];forEach(surrogateMappings,function(surrogateMapping){var highSurrogates=surrogateMapping[0];var lowSurrogates=surrogateMapping[1];result.push(createBMPCharacterClasses(highSurrogates)+createBMPCharacterClasses(lowSurrogates))});return result.join("|")};var createCharacterClassesFromData=function(data,bmpOnly){var result=[];var parts=splitAtBMP(data);var loneHighSurrogates=parts.loneHighSurrogates;var loneLowSurrogates=parts.loneLowSurrogates;var bmp=parts.bmp;var astral=parts.astral;var hasAstral=!dataIsEmpty(parts.astral);var hasLoneHighSurrogates=!dataIsEmpty(loneHighSurrogates);var hasLoneLowSurrogates=!dataIsEmpty(loneLowSurrogates);var surrogateMappings=surrogateSet(astral);if(bmpOnly){bmp=dataAddData(bmp,loneHighSurrogates);hasLoneHighSurrogates=false;bmp=dataAddData(bmp,loneLowSurrogates);hasLoneLowSurrogates=false}if(!dataIsEmpty(bmp)){result.push(createBMPCharacterClasses(bmp))}if(surrogateMappings.length){result.push(createSurrogateCharacterClasses(surrogateMappings))}if(hasLoneHighSurrogates){result.push(createBMPCharacterClasses(loneHighSurrogates)+"(?![\\uDC00-\\uDFFF])")}if(hasLoneLowSurrogates){result.push("(?:[^\\uD800-\\uDBFF]|^)"+createBMPCharacterClasses(loneLowSurrogates))}return result.join("|")};var regenerate=function(value){if(arguments.length>1){value=slice.call(arguments)}if(this instanceof regenerate){this.data=[];return value?this.add(value):this}return(new regenerate).add(value)};regenerate.version="1.2.0";var proto=regenerate.prototype;extend(proto,{add:function(value){var $this=this;if(value==null){return $this}if(value instanceof regenerate){$this.data=dataAddData($this.data,value.data);return $this}if(arguments.length>1){value=slice.call(arguments)}if(isArray(value)){forEach(value,function(item){$this.add(item)});return $this}$this.data=dataAdd($this.data,isNumber(value)?value:symbolToCodePoint(value));return $this},remove:function(value){var $this=this;if(value==null){return $this}if(value instanceof regenerate){$this.data=dataRemoveData($this.data,value.data);return $this}if(arguments.length>1){value=slice.call(arguments)}if(isArray(value)){forEach(value,function(item){$this.remove(item)});return $this}$this.data=dataRemove($this.data,isNumber(value)?value:symbolToCodePoint(value));return $this},addRange:function(start,end){var $this=this;$this.data=dataAddRange($this.data,isNumber(start)?start:symbolToCodePoint(start),isNumber(end)?end:symbolToCodePoint(end));return $this},removeRange:function(start,end){var $this=this;var startCodePoint=isNumber(start)?start:symbolToCodePoint(start);var endCodePoint=isNumber(end)?end:symbolToCodePoint(end);$this.data=dataRemoveRange($this.data,startCodePoint,endCodePoint);return $this},intersection:function(argument){var $this=this;var array=argument instanceof regenerate?dataToArray(argument.data):argument;$this.data=dataIntersection($this.data,array);return $this},contains:function(codePoint){return dataContains(this.data,isNumber(codePoint)?codePoint:symbolToCodePoint(codePoint))},clone:function(){var set=new regenerate;set.data=this.data.slice(0);return set},toString:function(options){var result=createCharacterClassesFromData(this.data,options?options.bmpOnly:false);return result.replace(regexNull,"\\0$1")},toRegExp:function(flags){return RegExp(this.toString(),flags||"")},valueOf:function(){return dataToArray(this.data)}});proto.toArray=proto.valueOf;if(typeof define=="function"&&typeof define.amd=="object"&&define.amd){define(function(){return regenerate})}else if(freeExports&&!freeExports.nodeType){if(freeModule){freeModule.exports=regenerate}else{freeExports.regenerate=regenerate}}else{root.regenerate=regenerate}})(this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],178:[function(require,module,exports){(function(global){(function(){"use strict";var objectTypes={"function":true,object:true};var root=objectTypes[typeof window]&&window||this;var oldRoot=root;var freeExports=objectTypes[typeof exports]&&exports;var freeModule=objectTypes[typeof module]&&module&&!module.nodeType&&module;var freeGlobal=freeExports&&freeModule&&typeof global=="object"&&global;if(freeGlobal&&(freeGlobal.global===freeGlobal||freeGlobal.window===freeGlobal||freeGlobal.self===freeGlobal)){root=freeGlobal}var stringFromCharCode=String.fromCharCode;var floor=Math.floor;function fromCodePoint(){var MAX_SIZE=16384;var codeUnits=[];var highSurrogate;var lowSurrogate;var index=-1;var length=arguments.length;if(!length){return""}var result="";while(++index<length){var codePoint=Number(arguments[index]);if(!isFinite(codePoint)||codePoint<0||codePoint>1114111||floor(codePoint)!=codePoint){throw RangeError("Invalid code point: "+codePoint)}if(codePoint<=65535){codeUnits.push(codePoint)}else{codePoint-=65536;highSurrogate=(codePoint>>10)+55296;lowSurrogate=codePoint%1024+56320;codeUnits.push(highSurrogate,lowSurrogate)}if(index+1==length||codeUnits.length>MAX_SIZE){result+=stringFromCharCode.apply(null,codeUnits);codeUnits.length=0}}return result}function assertType(type,expected){if(expected.indexOf("|")==-1){if(type==expected){return}throw Error("Invalid node type: "+type)}expected=assertType.hasOwnProperty(expected)?assertType[expected]:assertType[expected]=RegExp("^(?:"+expected+")$");if(expected.test(type)){return}throw Error("Invalid node type: "+type)}function generate(node){var type=node.type;if(generate.hasOwnProperty(type)&&typeof generate[type]=="function"){return generate[type](node)}throw Error("Invalid node type: "+type)}function generateAlternative(node){assertType(node.type,"alternative");var terms=node.body,length=terms?terms.length:0;if(length==1){return generateTerm(terms[0])}else{var i=-1,result="";while(++i<length){result+=generateTerm(terms[i])}return result}}function generateAnchor(node){assertType(node.type,"anchor");switch(node.kind){case"start":return"^";case"end":return"$";case"boundary":return"\\b";case"not-boundary":return"\\B";default:throw Error("Invalid assertion")}}function generateAtom(node){assertType(node.type,"anchor|characterClass|characterClassEscape|dot|group|reference|value");return generate(node)}function generateCharacterClass(node){assertType(node.type,"characterClass");var classRanges=node.body,length=classRanges?classRanges.length:0;var i=-1,result="[";if(node.negative){result+="^"}while(++i<length){result+=generateClassAtom(classRanges[i])}result+="]";return result}function generateCharacterClassEscape(node){assertType(node.type,"characterClassEscape");return"\\"+node.value}function generateCharacterClassRange(node){assertType(node.type,"characterClassRange");var min=node.min,max=node.max;if(min.type=="characterClassRange"||max.type=="characterClassRange"){throw Error("Invalid character class range")}return generateClassAtom(min)+"-"+generateClassAtom(max)}function generateClassAtom(node){assertType(node.type,"anchor|characterClassEscape|characterClassRange|dot|value");return generate(node)}function generateDisjunction(node){assertType(node.type,"disjunction");var body=node.body,length=body?body.length:0;if(length==0){throw Error("No body")}else if(length==1){return generate(body[0])}else{var i=-1,result="";while(++i<length){if(i!=0){result+="|"}result+=generate(body[i])}return result}}function generateDot(node){assertType(node.type,"dot");return"."}function generateGroup(node){assertType(node.type,"group");var result="(";switch(node.behavior){case"normal":break;case"ignore":result+="?:";break;case"lookahead":result+="?=";break;case"negativeLookahead":result+="?!";break;default:throw Error("Invalid behaviour: "+node.behaviour)}var body=node.body,length=body?body.length:0;if(length==1){result+=generate(body[0])}else{var i=-1;while(++i<length){result+=generate(body[i])}}result+=")";return result}function generateQuantifier(node){assertType(node.type,"quantifier");var quantifier="",min=node.min,max=node.max;switch(max){case undefined:case null:switch(min){case 0:quantifier="*";break;case 1:quantifier="+";break;default:quantifier="{"+min+",}";break}break;default:if(min==max){quantifier="{"+min+"}"}else if(min==0&&max==1){quantifier="?"}else{quantifier="{"+min+","+max+"}"}break}if(!node.greedy){quantifier+="?"}return generateAtom(node.body[0])+quantifier}function generateReference(node){assertType(node.type,"reference");return"\\"+node.matchIndex}function generateTerm(node){assertType(node.type,"anchor|characterClass|characterClassEscape|empty|group|quantifier|reference|value");return generate(node)}function generateValue(node){assertType(node.type,"value");var kind=node.kind,codePoint=node.codePoint;switch(kind){case"controlLetter":return"\\c"+fromCodePoint(codePoint+64);case"hexadecimalEscape":return"\\x"+("00"+codePoint.toString(16).toUpperCase()).slice(-2);
case"identifier":return"\\"+fromCodePoint(codePoint);case"null":return"\\"+codePoint;case"octal":return"\\"+codePoint.toString(8);case"singleEscape":switch(codePoint){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 11:return"\\v";case 12:return"\\f";case 13:return"\\r";default:throw Error("Invalid codepoint: "+codePoint)}case"symbol":return fromCodePoint(codePoint);case"unicodeEscape":return"\\u"+("0000"+codePoint.toString(16).toUpperCase()).slice(-4);case"unicodeCodePointEscape":return"\\u{"+codePoint.toString(16).toUpperCase()+"}";default:throw Error("Unsupported node kind: "+kind)}}generate.alternative=generateAlternative;generate.anchor=generateAnchor;generate.characterClass=generateCharacterClass;generate.characterClassEscape=generateCharacterClassEscape;generate.characterClassRange=generateCharacterClassRange;generate.disjunction=generateDisjunction;generate.dot=generateDot;generate.group=generateGroup;generate.quantifier=generateQuantifier;generate.reference=generateReference;generate.value=generateValue;if(typeof define=="function"&&typeof define.amd=="object"&&define.amd){define(function(){return{generate:generate}})}else if(freeExports&&freeModule){freeExports.generate=generate}else{root.regjsgen={generate:generate}}}).call(this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],179:[function(require,module,exports){(function(){function parse(str,flags){var hasUnicodeFlag=(flags||"").indexOf("u")!==-1;var pos=0;var closedCaptureCounter=0;function addRaw(node){node.raw=str.substring(node.range[0],node.range[1]);return node}function updateRawStart(node,start){node.range[0]=start;return addRaw(node)}function createAnchor(kind,rawLength){return addRaw({type:"anchor",kind:kind,range:[pos-rawLength,pos]})}function createValue(kind,codePoint,from,to){return addRaw({type:"value",kind:kind,codePoint:codePoint,range:[from,to]})}function createEscaped(kind,codePoint,value,fromOffset){fromOffset=fromOffset||0;return createValue(kind,codePoint,pos-(value.length+fromOffset),pos)}function createCharacter(matches){var _char=matches[0];var first=_char.charCodeAt(0);if(hasUnicodeFlag){var second;if(_char.length===1&&first>=55296&&first<=56319){second=lookahead().charCodeAt(0);if(second>=56320&&second<=57343){pos++;return createValue("symbol",(first-55296)*1024+second-56320+65536,pos-2,pos)}}}return createValue("symbol",first,pos-1,pos)}function createDisjunction(alternatives,from,to){return addRaw({type:"disjunction",body:alternatives,range:[from,to]})}function createDot(){return addRaw({type:"dot",range:[pos-1,pos]})}function createCharacterClassEscape(value){return addRaw({type:"characterClassEscape",value:value,range:[pos-2,pos]})}function createReference(matchIndex){return addRaw({type:"reference",matchIndex:parseInt(matchIndex,10),range:[pos-1-matchIndex.length,pos]})}function createGroup(behavior,disjunction,from,to){return addRaw({type:"group",behavior:behavior,body:disjunction,range:[from,to]})}function createQuantifier(min,max,from,to){if(to==null){from=pos-1;to=pos}return addRaw({type:"quantifier",min:min,max:max,greedy:true,body:null,range:[from,to]})}function createAlternative(terms,from,to){return addRaw({type:"alternative",body:terms,range:[from,to]})}function createCharacterClass(classRanges,negative,from,to){return addRaw({type:"characterClass",body:classRanges,negative:negative,range:[from,to]})}function createClassRange(min,max,from,to){if(min.codePoint>max.codePoint){throw SyntaxError("invalid range in character class")}return addRaw({type:"characterClassRange",min:min,max:max,range:[from,to]})}function flattenBody(body){if(body.type==="alternative"){return body.body}else{return[body]}}function isEmpty(obj){return obj.type==="empty"}function incr(amount){amount=amount||1;var res=str.substring(pos,pos+amount);pos+=amount||1;return res}function skip(value){if(!match(value)){throw SyntaxError("character: "+value)}}function match(value){if(str.indexOf(value,pos)===pos){return incr(value.length)}}function lookahead(){return str[pos]}function current(value){return str.indexOf(value,pos)===pos}function next(value){return str[pos+1]===value}function matchReg(regExp){var subStr=str.substring(pos);var res=subStr.match(regExp);if(res){res.range=[];res.range[0]=pos;incr(res[0].length);res.range[1]=pos}return res}function parseDisjunction(){var res=[],from=pos;res.push(parseAlternative());while(match("|")){res.push(parseAlternative())}if(res.length===1){return res[0]}return createDisjunction(res,from,pos)}function parseAlternative(){var res=[],from=pos;var term;while(term=parseTerm()){res.push(term)}if(res.length===1){return res[0]}return createAlternative(res,from,pos)}function parseTerm(){if(pos>=str.length||current("|")||current(")")){return null}var anchor=parseAnchor();if(anchor){return anchor}var atom=parseAtom();if(!atom){throw SyntaxError("Expected atom")}var quantifier=parseQuantifier()||false;if(quantifier){quantifier.body=flattenBody(atom);updateRawStart(quantifier,atom.range[0]);return quantifier}return atom}function parseGroup(matchA,typeA,matchB,typeB){var type=null,from=pos;if(match(matchA)){type=typeA}else if(match(matchB)){type=typeB}else{return false}var body=parseDisjunction();if(!body){throw SyntaxError("Expected disjunction")}skip(")");var group=createGroup(type,flattenBody(body),from,pos);if(type=="normal"){closedCaptureCounter++}return group}function parseAnchor(){var res,from=pos;if(match("^")){return createAnchor("start",1)}else if(match("$")){return createAnchor("end",1)}else if(match("\\b")){return createAnchor("boundary",2)}else if(match("\\B")){return createAnchor("not-boundary",2)}else{return parseGroup("(?=","lookahead","(?!","negativeLookahead")}}function parseQuantifier(){var res;var quantifier;var min,max;if(match("*")){quantifier=createQuantifier(0)}else if(match("+")){quantifier=createQuantifier(1)}else if(match("?")){quantifier=createQuantifier(0,1)}else if(res=matchReg(/^\{([0-9]+)\}/)){min=parseInt(res[1],10);quantifier=createQuantifier(min,min,res.range[0],res.range[1])}else if(res=matchReg(/^\{([0-9]+),\}/)){min=parseInt(res[1],10);quantifier=createQuantifier(min,undefined,res.range[0],res.range[1])}else if(res=matchReg(/^\{([0-9]+),([0-9]+)\}/)){min=parseInt(res[1],10);max=parseInt(res[2],10);if(min>max){throw SyntaxError("numbers out of order in {} quantifier")}quantifier=createQuantifier(min,max,res.range[0],res.range[1])}if(quantifier){if(match("?")){quantifier.greedy=false;quantifier.range[1]+=1}}return quantifier}function parseAtom(){var res;if(res=matchReg(/^[^^$\\.*+?(){[|]/)){return createCharacter(res)}else if(match(".")){return createDot()}else if(match("\\")){res=parseAtomEscape();if(!res){throw SyntaxError("atomEscape")}return res}else if(res=parseCharacterClass()){return res}else{return parseGroup("(?:","ignore","(","normal")}}function parseUnicodeSurrogatePairEscape(firstEscape){if(hasUnicodeFlag){var first,second;if(firstEscape.kind=="unicodeEscape"&&(first=firstEscape.codePoint)>=55296&&first<=56319&¤t("\\")&&next("u")){var prevPos=pos;pos++;var secondEscape=parseClassEscape();if(secondEscape.kind=="unicodeEscape"&&(second=secondEscape.codePoint)>=56320&&second<=57343){firstEscape.range[1]=secondEscape.range[1];firstEscape.codePoint=(first-55296)*1024+second-56320+65536;firstEscape.type="value";firstEscape.kind="unicodeCodePointEscape";addRaw(firstEscape)}else{pos=prevPos}}}return firstEscape}function parseClassEscape(){return parseAtomEscape(true)}function parseAtomEscape(insideCharacterClass){var res;res=parseDecimalEscape();if(res){return res}if(insideCharacterClass){if(match("b")){return createEscaped("singleEscape",8,"\\b")}else if(match("B")){throw SyntaxError("\\B not possible inside of CharacterClass")}}res=parseCharacterEscape();return res}function parseDecimalEscape(){var res,match;if(res=matchReg(/^(?!0)\d+/)){match=res[0];var refIdx=parseInt(res[0],10);if(refIdx<=closedCaptureCounter){return createReference(res[0])}else{incr(-res[0].length);if(res=matchReg(/^[0-7]{1,3}/)){return createEscaped("octal",parseInt(res[0],8),res[0],1)}else{res=createCharacter(matchReg(/^[89]/));return updateRawStart(res,res.range[0]-1)}}}else if(res=matchReg(/^[0-7]{1,3}/)){match=res[0];if(/^0{1,3}$/.test(match)){return createEscaped("null",0,"0",match.length+1)}else{return createEscaped("octal",parseInt(match,8),match,1)}}else if(res=matchReg(/^[dDsSwW]/)){return createCharacterClassEscape(res[0])}return false}function parseCharacterEscape(){var res;if(res=matchReg(/^[fnrtv]/)){var codePoint=0;switch(res[0]){case"t":codePoint=9;break;case"n":codePoint=10;break;case"v":codePoint=11;break;case"f":codePoint=12;break;case"r":codePoint=13;break}return createEscaped("singleEscape",codePoint,"\\"+res[0])}else if(res=matchReg(/^c([a-zA-Z])/)){return createEscaped("controlLetter",res[1].charCodeAt(0)%32,res[1],2)}else if(res=matchReg(/^x([0-9a-fA-F]{2})/)){return createEscaped("hexadecimalEscape",parseInt(res[1],16),res[1],2)}else if(res=matchReg(/^u([0-9a-fA-F]{4})/)){return parseUnicodeSurrogatePairEscape(createEscaped("unicodeEscape",parseInt(res[1],16),res[1],2))}else if(hasUnicodeFlag&&(res=matchReg(/^u\{([0-9a-fA-F]{1,})\}/))){return createEscaped("unicodeCodePointEscape",parseInt(res[1],16),res[1],4)}else{return parseIdentityEscape()}}function isIdentifierPart(ch){var NonAsciiIdentifierPart=new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԯԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠ-ࢲࣤ-ॣ०-९ॱ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఀ-ఃఅ-ఌఎ-ఐఒ-నప-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಁ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲഁ-ഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟ෦-෯ෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤞᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧ᪰-᪽ᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶ᳸᳹ᴀ-᷵᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚝꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꧠ-ꧾꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︭︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]");return ch===36||ch===95||ch>=65&&ch<=90||ch>=97&&ch<=122||ch>=48&&ch<=57||ch===92||ch>=128&&NonAsciiIdentifierPart.test(String.fromCharCode(ch))}function parseIdentityEscape(){var ZWJ="";var ZWNJ="";var res;var tmp;if(!isIdentifierPart(lookahead())){tmp=incr();return createEscaped("identifier",tmp.charCodeAt(0),tmp,1)}if(match(ZWJ)){return createEscaped("identifier",8204,ZWJ)}else if(match(ZWNJ)){return createEscaped("identifier",8205,ZWNJ)}return null}function parseCharacterClass(){var res,from=pos;if(res=matchReg(/^\[\^/)){res=parseClassRanges();skip("]");return createCharacterClass(res,true,from,pos)}else if(match("[")){res=parseClassRanges();skip("]");return createCharacterClass(res,false,from,pos)}return null}function parseClassRanges(){var res;if(current("]")){return[]}else{res=parseNonemptyClassRanges();if(!res){throw SyntaxError("nonEmptyClassRanges")}return res}}function parseHelperClassRanges(atom){var from,to,res;if(current("-")&&!next("]")){skip("-");res=parseClassAtom();if(!res){throw SyntaxError("classAtom")}to=pos;var classRanges=parseClassRanges();if(!classRanges){throw SyntaxError("classRanges")}from=atom.range[0];if(classRanges.type==="empty"){return[createClassRange(atom,res,from,to)]}return[createClassRange(atom,res,from,to)].concat(classRanges)}res=parseNonemptyClassRangesNoDash();if(!res){throw SyntaxError("nonEmptyClassRangesNoDash")}return[atom].concat(res)}function parseNonemptyClassRanges(){var atom=parseClassAtom();if(!atom){throw SyntaxError("classAtom")}if(current("]")){return[atom]}return parseHelperClassRanges(atom)}function parseNonemptyClassRangesNoDash(){var res=parseClassAtom();if(!res){throw SyntaxError("classAtom")}if(current("]")){return res}return parseHelperClassRanges(res)}function parseClassAtom(){if(match("-")){return createCharacter("-")}else{return parseClassAtomNoDash()}}function parseClassAtomNoDash(){var res;if(res=matchReg(/^[^\\\]-]/)){return createCharacter(res[0])}else if(match("\\")){res=parseClassEscape();if(!res){throw SyntaxError("classEscape")}return parseUnicodeSurrogatePairEscape(res)}}str=String(str);if(str===""){str="(?:)"}var result=parseDisjunction();if(result.range[1]!==str.length){throw SyntaxError("Could not parse entire input - got stuck: "+str)}return result}var regjsparser={parse:parse};if(typeof module!=="undefined"&&module.exports){module.exports=regjsparser}else{window.regjsparser=regjsparser}})()},{}],180:[function(require,module,exports){var generate=require("regjsgen").generate;var parse=require("regjsparser").parse;var regenerate=require("regenerate");var iuMappings=require("./data/iu-mappings.json");var ESCAPE_SETS=require("./data/character-class-escape-sets.js");function getCharacterClassEscapeSet(character){if(unicode){if(ignoreCase){return ESCAPE_SETS.UNICODE_IGNORE_CASE[character]}return ESCAPE_SETS.UNICODE[character]}return ESCAPE_SETS.REGULAR[character]}var object={};var hasOwnProperty=object.hasOwnProperty;function has(object,property){return hasOwnProperty.call(object,property)}var UNICODE_SET=regenerate().addRange(0,1114111);var BMP_SET=regenerate().addRange(0,65535);var DOT_SET_UNICODE=UNICODE_SET.clone().remove(10,13,8232,8233);var DOT_SET=DOT_SET_UNICODE.clone().intersection(BMP_SET);regenerate.prototype.iuAddRange=function(min,max){var $this=this;do{var folded=caseFold(min);if(folded){$this.add(folded)}}while(++min<=max);return $this};function assign(target,source){for(var key in source){target[key]=source[key]}}function update(item,pattern){var tree=parse(pattern,"");switch(tree.type){case"characterClass":case"group":case"value":break;default:tree=wrap(tree,pattern)}assign(item,tree)}function wrap(tree,pattern){return{type:"group",behavior:"ignore",body:[tree],raw:"(?:"+pattern+")"}}function caseFold(codePoint){return has(iuMappings,codePoint)?iuMappings[codePoint]:false}var ignoreCase=false;var unicode=false;function processCharacterClass(characterClassItem){var set=regenerate();var body=characterClassItem.body.forEach(function(item){switch(item.type){case"value":set.add(item.codePoint);if(ignoreCase&&unicode){var folded=caseFold(item.codePoint);if(folded){set.add(folded)}}break;case"characterClassRange":var min=item.min.codePoint;var max=item.max.codePoint;set.addRange(min,max);if(ignoreCase&&unicode){set.iuAddRange(min,max)}break;case"characterClassEscape":set.add(getCharacterClassEscapeSet(item.value));break;default:throw Error("Unknown term type: "+item.type)}});if(characterClassItem.negative){set=(unicode?UNICODE_SET:BMP_SET).clone().remove(set)}update(characterClassItem,set.toString());return characterClassItem}function processTerm(item){switch(item.type){case"dot":update(item,(unicode?DOT_SET_UNICODE:DOT_SET).toString());break;case"characterClass":item=processCharacterClass(item);break;case"characterClassEscape":update(item,getCharacterClassEscapeSet(item.value).toString());break;case"alternative":case"disjunction":case"group":case"quantifier":item.body=item.body.map(processTerm);break;case"value":var codePoint=item.codePoint;var set=regenerate(codePoint);if(ignoreCase&&unicode){var folded=caseFold(codePoint);if(folded){set.add(folded)}}update(item,set.toString());break;case"anchor":case"empty":case"group":case"reference":break;default:throw Error("Unknown term type: "+item.type)}return item}module.exports=function(pattern,flags){var tree=parse(pattern,flags);ignoreCase=flags?flags.indexOf("i")>-1:false;unicode=flags?flags.indexOf("u")>-1:false;assign(tree,processTerm(tree));return generate(tree)}},{"./data/character-class-escape-sets.js":175,"./data/iu-mappings.json":176,regenerate:177,regjsgen:178,regjsparser:179}],181:[function(require,module,exports){exports.SourceMapGenerator=require("./source-map/source-map-generator").SourceMapGenerator;exports.SourceMapConsumer=require("./source-map/source-map-consumer").SourceMapConsumer;exports.SourceNode=require("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":187,"./source-map/source-map-generator":188,"./source-map/source-node":189}],182:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var util=require("./util");function ArraySet(){this._array=[];this._set={}}ArraySet.fromArray=function ArraySet_fromArray(aArray,aAllowDuplicates){var set=new ArraySet;for(var i=0,len=aArray.length;i<len;i++){set.add(aArray[i],aAllowDuplicates)}return set};ArraySet.prototype.add=function ArraySet_add(aStr,aAllowDuplicates){var isDuplicate=this.has(aStr);var idx=this._array.length;if(!isDuplicate||aAllowDuplicates){this._array.push(aStr)}if(!isDuplicate){this._set[util.toSetString(aStr)]=idx}};ArraySet.prototype.has=function ArraySet_has(aStr){return Object.prototype.hasOwnProperty.call(this._set,util.toSetString(aStr))};ArraySet.prototype.indexOf=function ArraySet_indexOf(aStr){if(this.has(aStr)){return this._set[util.toSetString(aStr)]}throw new Error('"'+aStr+'" is not in the set.')};ArraySet.prototype.at=function ArraySet_at(aIdx){if(aIdx>=0&&aIdx<this._array.length){return this._array[aIdx]}throw new Error("No element indexed by "+aIdx)};ArraySet.prototype.toArray=function ArraySet_toArray(){return this._array.slice()};exports.ArraySet=ArraySet})},{"./util":190,amdefine:191}],183:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var base64=require("./base64");var VLQ_BASE_SHIFT=5;var VLQ_BASE=1<<VLQ_BASE_SHIFT;var VLQ_BASE_MASK=VLQ_BASE-1;var VLQ_CONTINUATION_BIT=VLQ_BASE;function toVLQSigned(aValue){return aValue<0?(-aValue<<1)+1:(aValue<<1)+0}function fromVLQSigned(aValue){var isNegative=(aValue&1)===1;var shifted=aValue>>1;return isNegative?-shifted:shifted}exports.encode=function base64VLQ_encode(aValue){var encoded="";var digit;var vlq=toVLQSigned(aValue);do{digit=vlq&VLQ_BASE_MASK;vlq>>>=VLQ_BASE_SHIFT;if(vlq>0){digit|=VLQ_CONTINUATION_BIT}encoded+=base64.encode(digit)}while(vlq>0);return encoded};exports.decode=function base64VLQ_decode(aStr,aOutParam){var i=0;var strLen=aStr.length;var result=0;var shift=0;var continuation,digit;do{if(i>=strLen){throw new Error("Expected more digits in base 64 VLQ value.")}digit=base64.decode(aStr.charAt(i++));continuation=!!(digit&VLQ_CONTINUATION_BIT);digit&=VLQ_BASE_MASK;result=result+(digit<<shift);shift+=VLQ_BASE_SHIFT}while(continuation);aOutParam.value=fromVLQSigned(result);aOutParam.rest=aStr.slice(i)}})},{"./base64":184,amdefine:191}],184:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var charToIntMap={};var intToCharMap={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(function(ch,index){charToIntMap[ch]=index;intToCharMap[index]=ch});exports.encode=function base64_encode(aNumber){if(aNumber in intToCharMap){return intToCharMap[aNumber]}throw new TypeError("Must be between 0 and 63: "+aNumber)};exports.decode=function base64_decode(aChar){if(aChar in charToIntMap){return charToIntMap[aChar]}throw new TypeError("Not a valid base 64 digit: "+aChar)}})},{amdefine:191}],185:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){function recursiveSearch(aLow,aHigh,aNeedle,aHaystack,aCompare){var mid=Math.floor((aHigh-aLow)/2)+aLow;var cmp=aCompare(aNeedle,aHaystack[mid],true);if(cmp===0){return mid}else if(cmp>0){if(aHigh-mid>1){return recursiveSearch(mid,aHigh,aNeedle,aHaystack,aCompare)}return mid}else{if(mid-aLow>1){return recursiveSearch(aLow,mid,aNeedle,aHaystack,aCompare)}return aLow<0?-1:aLow}}exports.search=function search(aNeedle,aHaystack,aCompare){if(aHaystack.length===0){return-1}return recursiveSearch(-1,aHaystack.length,aNeedle,aHaystack,aCompare)}})},{amdefine:191}],186:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var util=require("./util");function generatedPositionAfter(mappingA,mappingB){var lineA=mappingA.generatedLine;var lineB=mappingB.generatedLine;var columnA=mappingA.generatedColumn;var columnB=mappingB.generatedColumn;return lineB>lineA||lineB==lineA&&columnB>=columnA||util.compareByGeneratedPositions(mappingA,mappingB)<=0}function MappingList(){this._array=[];this._sorted=true;this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function MappingList_forEach(aCallback,aThisArg){this._array.forEach(aCallback,aThisArg)};MappingList.prototype.add=function MappingList_add(aMapping){var mapping;if(generatedPositionAfter(this._last,aMapping)){this._last=aMapping;this._array.push(aMapping)}else{this._sorted=false;this._array.push(aMapping)}};MappingList.prototype.toArray=function MappingList_toArray(){if(!this._sorted){this._array.sort(util.compareByGeneratedPositions);this._sorted=true}return this._array};exports.MappingList=MappingList})},{"./util":190,amdefine:191}],187:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var util=require("./util");var binarySearch=require("./binary-search");var ArraySet=require("./array-set").ArraySet;var base64VLQ=require("./base64-vlq");function SourceMapConsumer(aSourceMap){var sourceMap=aSourceMap;if(typeof aSourceMap==="string"){sourceMap=JSON.parse(aSourceMap.replace(/^\)\]\}'/,""))}var version=util.getArg(sourceMap,"version");var sources=util.getArg(sourceMap,"sources");var names=util.getArg(sourceMap,"names",[]);var sourceRoot=util.getArg(sourceMap,"sourceRoot",null);var sourcesContent=util.getArg(sourceMap,"sourcesContent",null);var mappings=util.getArg(sourceMap,"mappings");var file=util.getArg(sourceMap,"file",null);if(version!=this._version){throw new Error("Unsupported version: "+version)}sources=sources.map(util.normalize);this._names=ArraySet.fromArray(names,true);this._sources=ArraySet.fromArray(sources,true);this.sourceRoot=sourceRoot;this.sourcesContent=sourcesContent;this._mappings=mappings;this.file=file}SourceMapConsumer.fromSourceMap=function SourceMapConsumer_fromSourceMap(aSourceMap){var smc=Object.create(SourceMapConsumer.prototype);smc._names=ArraySet.fromArray(aSourceMap._names.toArray(),true);smc._sources=ArraySet.fromArray(aSourceMap._sources.toArray(),true);smc.sourceRoot=aSourceMap._sourceRoot;smc.sourcesContent=aSourceMap._generateSourcesContent(smc._sources.toArray(),smc.sourceRoot);smc.file=aSourceMap._file;smc.__generatedMappings=aSourceMap._mappings.toArray().slice();smc.__originalMappings=aSourceMap._mappings.toArray().slice().sort(util.compareByOriginalPositions);return smc};SourceMapConsumer.prototype._version=3;Object.defineProperty(SourceMapConsumer.prototype,"sources",{get:function(){return this._sources.toArray().map(function(s){return this.sourceRoot!=null?util.join(this.sourceRoot,s):s},this)}});SourceMapConsumer.prototype.__generatedMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_generatedMappings",{get:function(){if(!this.__generatedMappings){this.__generatedMappings=[];this.__originalMappings=[];this._parseMappings(this._mappings,this.sourceRoot)}return this.__generatedMappings}});SourceMapConsumer.prototype.__originalMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_originalMappings",{get:function(){if(!this.__originalMappings){this.__generatedMappings=[];this.__originalMappings=[];this._parseMappings(this._mappings,this.sourceRoot)}return this.__originalMappings}});SourceMapConsumer.prototype._nextCharIsMappingSeparator=function SourceMapConsumer_nextCharIsMappingSeparator(aStr){var c=aStr.charAt(0);return c===";"||c===","};SourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(aStr,aSourceRoot){var generatedLine=1;var previousGeneratedColumn=0;var previousOriginalLine=0;var previousOriginalColumn=0;var previousSource=0;var previousName=0;var str=aStr;var temp={};var mapping;while(str.length>0){if(str.charAt(0)===";"){generatedLine++;str=str.slice(1);previousGeneratedColumn=0}else if(str.charAt(0)===","){str=str.slice(1)}else{mapping={};mapping.generatedLine=generatedLine;base64VLQ.decode(str,temp);mapping.generatedColumn=previousGeneratedColumn+temp.value;previousGeneratedColumn=mapping.generatedColumn;str=temp.rest;if(str.length>0&&!this._nextCharIsMappingSeparator(str)){base64VLQ.decode(str,temp);mapping.source=this._sources.at(previousSource+temp.value);previousSource+=temp.value;str=temp.rest;if(str.length===0||this._nextCharIsMappingSeparator(str)){throw new Error("Found a source, but no line and column")}base64VLQ.decode(str,temp);mapping.originalLine=previousOriginalLine+temp.value;previousOriginalLine=mapping.originalLine;mapping.originalLine+=1;str=temp.rest;if(str.length===0||this._nextCharIsMappingSeparator(str)){throw new Error("Found a source and line, but no column")}base64VLQ.decode(str,temp);mapping.originalColumn=previousOriginalColumn+temp.value;previousOriginalColumn=mapping.originalColumn;str=temp.rest;if(str.length>0&&!this._nextCharIsMappingSeparator(str)){base64VLQ.decode(str,temp);mapping.name=this._names.at(previousName+temp.value);previousName+=temp.value;str=temp.rest}}this.__generatedMappings.push(mapping);if(typeof mapping.originalLine==="number"){this.__originalMappings.push(mapping)}}}this.__generatedMappings.sort(util.compareByGeneratedPositions);this.__originalMappings.sort(util.compareByOriginalPositions)};SourceMapConsumer.prototype._findMapping=function SourceMapConsumer_findMapping(aNeedle,aMappings,aLineName,aColumnName,aComparator){if(aNeedle[aLineName]<=0){throw new TypeError("Line must be greater than or equal to 1, got "+aNeedle[aLineName])}if(aNeedle[aColumnName]<0){throw new TypeError("Column must be greater than or equal to 0, got "+aNeedle[aColumnName])}return binarySearch.search(aNeedle,aMappings,aComparator)};SourceMapConsumer.prototype.computeColumnSpans=function SourceMapConsumer_computeColumnSpans(){for(var index=0;index<this._generatedMappings.length;++index){var mapping=this._generatedMappings[index];if(index+1<this._generatedMappings.length){var nextMapping=this._generatedMappings[index+1];if(mapping.generatedLine===nextMapping.generatedLine){mapping.lastGeneratedColumn=nextMapping.generatedColumn-1;continue}}mapping.lastGeneratedColumn=Infinity}};SourceMapConsumer.prototype.originalPositionFor=function SourceMapConsumer_originalPositionFor(aArgs){var needle={generatedLine:util.getArg(aArgs,"line"),generatedColumn:util.getArg(aArgs,"column")};var index=this._findMapping(needle,this._generatedMappings,"generatedLine","generatedColumn",util.compareByGeneratedPositions);if(index>=0){var mapping=this._generatedMappings[index];if(mapping.generatedLine===needle.generatedLine){var source=util.getArg(mapping,"source",null);if(source!=null&&this.sourceRoot!=null){source=util.join(this.sourceRoot,source)}return{source:source,line:util.getArg(mapping,"originalLine",null),column:util.getArg(mapping,"originalColumn",null),name:util.getArg(mapping,"name",null)}}}return{source:null,line:null,column:null,name:null}};SourceMapConsumer.prototype.sourceContentFor=function SourceMapConsumer_sourceContentFor(aSource){if(!this.sourcesContent){return null}if(this.sourceRoot!=null){aSource=util.relative(this.sourceRoot,aSource)}if(this._sources.has(aSource)){return this.sourcesContent[this._sources.indexOf(aSource)]}var url;if(this.sourceRoot!=null&&(url=util.urlParse(this.sourceRoot))){var fileUriAbsPath=aSource.replace(/^file:\/\//,"");if(url.scheme=="file"&&this._sources.has(fileUriAbsPath)){return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)]}if((!url.path||url.path=="/")&&this._sources.has("/"+aSource)){return this.sourcesContent[this._sources.indexOf("/"+aSource)]}}throw new Error('"'+aSource+'" is not in the SourceMap.')};SourceMapConsumer.prototype.generatedPositionFor=function SourceMapConsumer_generatedPositionFor(aArgs){var needle={source:util.getArg(aArgs,"source"),originalLine:util.getArg(aArgs,"line"),originalColumn:util.getArg(aArgs,"column")};if(this.sourceRoot!=null){needle.source=util.relative(this.sourceRoot,needle.source)}var index=this._findMapping(needle,this._originalMappings,"originalLine","originalColumn",util.compareByOriginalPositions);if(index>=0){var mapping=this._originalMappings[index];return{line:util.getArg(mapping,"generatedLine",null),column:util.getArg(mapping,"generatedColumn",null),lastColumn:util.getArg(mapping,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};SourceMapConsumer.prototype.allGeneratedPositionsFor=function SourceMapConsumer_allGeneratedPositionsFor(aArgs){var needle={source:util.getArg(aArgs,"source"),originalLine:util.getArg(aArgs,"line"),originalColumn:Infinity};if(this.sourceRoot!=null){needle.source=util.relative(this.sourceRoot,needle.source)}var mappings=[];var index=this._findMapping(needle,this._originalMappings,"originalLine","originalColumn",util.compareByOriginalPositions);if(index>=0){var mapping=this._originalMappings[index];while(mapping&&mapping.originalLine===needle.originalLine){mappings.push({line:util.getArg(mapping,"generatedLine",null),column:util.getArg(mapping,"generatedColumn",null),lastColumn:util.getArg(mapping,"lastGeneratedColumn",null)});mapping=this._originalMappings[--index]}}return mappings.reverse()};SourceMapConsumer.GENERATED_ORDER=1;SourceMapConsumer.ORIGINAL_ORDER=2;SourceMapConsumer.prototype.eachMapping=function SourceMapConsumer_eachMapping(aCallback,aContext,aOrder){var context=aContext||null;var order=aOrder||SourceMapConsumer.GENERATED_ORDER;var mappings;switch(order){case SourceMapConsumer.GENERATED_ORDER:mappings=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:mappings=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var sourceRoot=this.sourceRoot;mappings.map(function(mapping){var source=mapping.source;if(source!=null&&sourceRoot!=null){source=util.join(sourceRoot,source)}return{source:source,generatedLine:mapping.generatedLine,generatedColumn:mapping.generatedColumn,originalLine:mapping.originalLine,originalColumn:mapping.originalColumn,name:mapping.name}}).forEach(aCallback,context)};exports.SourceMapConsumer=SourceMapConsumer})},{"./array-set":182,"./base64-vlq":183,"./binary-search":185,"./util":190,amdefine:191}],188:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var base64VLQ=require("./base64-vlq");var util=require("./util");var ArraySet=require("./array-set").ArraySet;var MappingList=require("./mapping-list").MappingList;function SourceMapGenerator(aArgs){if(!aArgs){aArgs={}}this._file=util.getArg(aArgs,"file",null);this._sourceRoot=util.getArg(aArgs,"sourceRoot",null);this._skipValidation=util.getArg(aArgs,"skipValidation",false);this._sources=new ArraySet;this._names=new ArraySet;this._mappings=new MappingList;this._sourcesContents=null}SourceMapGenerator.prototype._version=3;SourceMapGenerator.fromSourceMap=function SourceMapGenerator_fromSourceMap(aSourceMapConsumer){var sourceRoot=aSourceMapConsumer.sourceRoot;var generator=new SourceMapGenerator({file:aSourceMapConsumer.file,sourceRoot:sourceRoot});aSourceMapConsumer.eachMapping(function(mapping){var newMapping={generated:{line:mapping.generatedLine,column:mapping.generatedColumn}};
if(mapping.source!=null){newMapping.source=mapping.source;if(sourceRoot!=null){newMapping.source=util.relative(sourceRoot,newMapping.source)}newMapping.original={line:mapping.originalLine,column:mapping.originalColumn};if(mapping.name!=null){newMapping.name=mapping.name}}generator.addMapping(newMapping)});aSourceMapConsumer.sources.forEach(function(sourceFile){var content=aSourceMapConsumer.sourceContentFor(sourceFile);if(content!=null){generator.setSourceContent(sourceFile,content)}});return generator};SourceMapGenerator.prototype.addMapping=function SourceMapGenerator_addMapping(aArgs){var generated=util.getArg(aArgs,"generated");var original=util.getArg(aArgs,"original",null);var source=util.getArg(aArgs,"source",null);var name=util.getArg(aArgs,"name",null);if(!this._skipValidation){this._validateMapping(generated,original,source,name)}if(source!=null&&!this._sources.has(source)){this._sources.add(source)}if(name!=null&&!this._names.has(name)){this._names.add(name)}this._mappings.add({generatedLine:generated.line,generatedColumn:generated.column,originalLine:original!=null&&original.line,originalColumn:original!=null&&original.column,source:source,name:name})};SourceMapGenerator.prototype.setSourceContent=function SourceMapGenerator_setSourceContent(aSourceFile,aSourceContent){var source=aSourceFile;if(this._sourceRoot!=null){source=util.relative(this._sourceRoot,source)}if(aSourceContent!=null){if(!this._sourcesContents){this._sourcesContents={}}this._sourcesContents[util.toSetString(source)]=aSourceContent}else if(this._sourcesContents){delete this._sourcesContents[util.toSetString(source)];if(Object.keys(this._sourcesContents).length===0){this._sourcesContents=null}}};SourceMapGenerator.prototype.applySourceMap=function SourceMapGenerator_applySourceMap(aSourceMapConsumer,aSourceFile,aSourceMapPath){var sourceFile=aSourceFile;if(aSourceFile==null){if(aSourceMapConsumer.file==null){throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, "+'or the source map\'s "file" property. Both were omitted.')}sourceFile=aSourceMapConsumer.file}var sourceRoot=this._sourceRoot;if(sourceRoot!=null){sourceFile=util.relative(sourceRoot,sourceFile)}var newSources=new ArraySet;var newNames=new ArraySet;this._mappings.unsortedForEach(function(mapping){if(mapping.source===sourceFile&&mapping.originalLine!=null){var original=aSourceMapConsumer.originalPositionFor({line:mapping.originalLine,column:mapping.originalColumn});if(original.source!=null){mapping.source=original.source;if(aSourceMapPath!=null){mapping.source=util.join(aSourceMapPath,mapping.source)}if(sourceRoot!=null){mapping.source=util.relative(sourceRoot,mapping.source)}mapping.originalLine=original.line;mapping.originalColumn=original.column;if(original.name!=null){mapping.name=original.name}}}var source=mapping.source;if(source!=null&&!newSources.has(source)){newSources.add(source)}var name=mapping.name;if(name!=null&&!newNames.has(name)){newNames.add(name)}},this);this._sources=newSources;this._names=newNames;aSourceMapConsumer.sources.forEach(function(sourceFile){var content=aSourceMapConsumer.sourceContentFor(sourceFile);if(content!=null){if(aSourceMapPath!=null){sourceFile=util.join(aSourceMapPath,sourceFile)}if(sourceRoot!=null){sourceFile=util.relative(sourceRoot,sourceFile)}this.setSourceContent(sourceFile,content)}},this)};SourceMapGenerator.prototype._validateMapping=function SourceMapGenerator_validateMapping(aGenerated,aOriginal,aSource,aName){if(aGenerated&&"line"in aGenerated&&"column"in aGenerated&&aGenerated.line>0&&aGenerated.column>=0&&!aOriginal&&!aSource&&!aName){return}else if(aGenerated&&"line"in aGenerated&&"column"in aGenerated&&aOriginal&&"line"in aOriginal&&"column"in aOriginal&&aGenerated.line>0&&aGenerated.column>=0&&aOriginal.line>0&&aOriginal.column>=0&&aSource){return}else{throw new Error("Invalid mapping: "+JSON.stringify({generated:aGenerated,source:aSource,original:aOriginal,name:aName}))}};SourceMapGenerator.prototype._serializeMappings=function SourceMapGenerator_serializeMappings(){var previousGeneratedColumn=0;var previousGeneratedLine=1;var previousOriginalColumn=0;var previousOriginalLine=0;var previousName=0;var previousSource=0;var result="";var mapping;var mappings=this._mappings.toArray();for(var i=0,len=mappings.length;i<len;i++){mapping=mappings[i];if(mapping.generatedLine!==previousGeneratedLine){previousGeneratedColumn=0;while(mapping.generatedLine!==previousGeneratedLine){result+=";";previousGeneratedLine++}}else{if(i>0){if(!util.compareByGeneratedPositions(mapping,mappings[i-1])){continue}result+=","}}result+=base64VLQ.encode(mapping.generatedColumn-previousGeneratedColumn);previousGeneratedColumn=mapping.generatedColumn;if(mapping.source!=null){result+=base64VLQ.encode(this._sources.indexOf(mapping.source)-previousSource);previousSource=this._sources.indexOf(mapping.source);result+=base64VLQ.encode(mapping.originalLine-1-previousOriginalLine);previousOriginalLine=mapping.originalLine-1;result+=base64VLQ.encode(mapping.originalColumn-previousOriginalColumn);previousOriginalColumn=mapping.originalColumn;if(mapping.name!=null){result+=base64VLQ.encode(this._names.indexOf(mapping.name)-previousName);previousName=this._names.indexOf(mapping.name)}}}return result};SourceMapGenerator.prototype._generateSourcesContent=function SourceMapGenerator_generateSourcesContent(aSources,aSourceRoot){return aSources.map(function(source){if(!this._sourcesContents){return null}if(aSourceRoot!=null){source=util.relative(aSourceRoot,source)}var key=util.toSetString(source);return Object.prototype.hasOwnProperty.call(this._sourcesContents,key)?this._sourcesContents[key]:null},this)};SourceMapGenerator.prototype.toJSON=function SourceMapGenerator_toJSON(){var map={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null){map.file=this._file}if(this._sourceRoot!=null){map.sourceRoot=this._sourceRoot}if(this._sourcesContents){map.sourcesContent=this._generateSourcesContent(map.sources,map.sourceRoot)}return map};SourceMapGenerator.prototype.toString=function SourceMapGenerator_toString(){return JSON.stringify(this)};exports.SourceMapGenerator=SourceMapGenerator})},{"./array-set":182,"./base64-vlq":183,"./mapping-list":186,"./util":190,amdefine:191}],189:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var SourceMapGenerator=require("./source-map-generator").SourceMapGenerator;var util=require("./util");var REGEX_NEWLINE=/(\r?\n)/;var NEWLINE_CODE=10;var isSourceNode="$$$isSourceNode$$$";function SourceNode(aLine,aColumn,aSource,aChunks,aName){this.children=[];this.sourceContents={};this.line=aLine==null?null:aLine;this.column=aColumn==null?null:aColumn;this.source=aSource==null?null:aSource;this.name=aName==null?null:aName;this[isSourceNode]=true;if(aChunks!=null)this.add(aChunks)}SourceNode.fromStringWithSourceMap=function SourceNode_fromStringWithSourceMap(aGeneratedCode,aSourceMapConsumer,aRelativePath){var node=new SourceNode;var remainingLines=aGeneratedCode.split(REGEX_NEWLINE);var shiftNextLine=function(){var lineContents=remainingLines.shift();var newLine=remainingLines.shift()||"";return lineContents+newLine};var lastGeneratedLine=1,lastGeneratedColumn=0;var lastMapping=null;aSourceMapConsumer.eachMapping(function(mapping){if(lastMapping!==null){if(lastGeneratedLine<mapping.generatedLine){var code="";addMappingWithCode(lastMapping,shiftNextLine());lastGeneratedLine++;lastGeneratedColumn=0}else{var nextLine=remainingLines[0];var code=nextLine.substr(0,mapping.generatedColumn-lastGeneratedColumn);remainingLines[0]=nextLine.substr(mapping.generatedColumn-lastGeneratedColumn);lastGeneratedColumn=mapping.generatedColumn;addMappingWithCode(lastMapping,code);lastMapping=mapping;return}}while(lastGeneratedLine<mapping.generatedLine){node.add(shiftNextLine());lastGeneratedLine++}if(lastGeneratedColumn<mapping.generatedColumn){var nextLine=remainingLines[0];node.add(nextLine.substr(0,mapping.generatedColumn));remainingLines[0]=nextLine.substr(mapping.generatedColumn);lastGeneratedColumn=mapping.generatedColumn}lastMapping=mapping},this);if(remainingLines.length>0){if(lastMapping){addMappingWithCode(lastMapping,shiftNextLine())}node.add(remainingLines.join(""))}aSourceMapConsumer.sources.forEach(function(sourceFile){var content=aSourceMapConsumer.sourceContentFor(sourceFile);if(content!=null){if(aRelativePath!=null){sourceFile=util.join(aRelativePath,sourceFile)}node.setSourceContent(sourceFile,content)}});return node;function addMappingWithCode(mapping,code){if(mapping===null||mapping.source===undefined){node.add(code)}else{var source=aRelativePath?util.join(aRelativePath,mapping.source):mapping.source;node.add(new SourceNode(mapping.originalLine,mapping.originalColumn,source,code,mapping.name))}}};SourceNode.prototype.add=function SourceNode_add(aChunk){if(Array.isArray(aChunk)){aChunk.forEach(function(chunk){this.add(chunk)},this)}else if(aChunk[isSourceNode]||typeof aChunk==="string"){if(aChunk){this.children.push(aChunk)}}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+aChunk)}return this};SourceNode.prototype.prepend=function SourceNode_prepend(aChunk){if(Array.isArray(aChunk)){for(var i=aChunk.length-1;i>=0;i--){this.prepend(aChunk[i])}}else if(aChunk[isSourceNode]||typeof aChunk==="string"){this.children.unshift(aChunk)}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+aChunk)}return this};SourceNode.prototype.walk=function SourceNode_walk(aFn){var chunk;for(var i=0,len=this.children.length;i<len;i++){chunk=this.children[i];if(chunk[isSourceNode]){chunk.walk(aFn)}else{if(chunk!==""){aFn(chunk,{source:this.source,line:this.line,column:this.column,name:this.name})}}}};SourceNode.prototype.join=function SourceNode_join(aSep){var newChildren;var i;var len=this.children.length;if(len>0){newChildren=[];for(i=0;i<len-1;i++){newChildren.push(this.children[i]);newChildren.push(aSep)}newChildren.push(this.children[i]);this.children=newChildren}return this};SourceNode.prototype.replaceRight=function SourceNode_replaceRight(aPattern,aReplacement){var lastChild=this.children[this.children.length-1];if(lastChild[isSourceNode]){lastChild.replaceRight(aPattern,aReplacement)}else if(typeof lastChild==="string"){this.children[this.children.length-1]=lastChild.replace(aPattern,aReplacement)}else{this.children.push("".replace(aPattern,aReplacement))}return this};SourceNode.prototype.setSourceContent=function SourceNode_setSourceContent(aSourceFile,aSourceContent){this.sourceContents[util.toSetString(aSourceFile)]=aSourceContent};SourceNode.prototype.walkSourceContents=function SourceNode_walkSourceContents(aFn){for(var i=0,len=this.children.length;i<len;i++){if(this.children[i][isSourceNode]){this.children[i].walkSourceContents(aFn)}}var sources=Object.keys(this.sourceContents);for(var i=0,len=sources.length;i<len;i++){aFn(util.fromSetString(sources[i]),this.sourceContents[sources[i]])}};SourceNode.prototype.toString=function SourceNode_toString(){var str="";this.walk(function(chunk){str+=chunk});return str};SourceNode.prototype.toStringWithSourceMap=function SourceNode_toStringWithSourceMap(aArgs){var generated={code:"",line:1,column:0};var map=new SourceMapGenerator(aArgs);var sourceMappingActive=false;var lastOriginalSource=null;var lastOriginalLine=null;var lastOriginalColumn=null;var lastOriginalName=null;this.walk(function(chunk,original){generated.code+=chunk;if(original.source!==null&&original.line!==null&&original.column!==null){if(lastOriginalSource!==original.source||lastOriginalLine!==original.line||lastOriginalColumn!==original.column||lastOriginalName!==original.name){map.addMapping({source:original.source,original:{line:original.line,column:original.column},generated:{line:generated.line,column:generated.column},name:original.name})}lastOriginalSource=original.source;lastOriginalLine=original.line;lastOriginalColumn=original.column;lastOriginalName=original.name;sourceMappingActive=true}else if(sourceMappingActive){map.addMapping({generated:{line:generated.line,column:generated.column}});lastOriginalSource=null;sourceMappingActive=false}for(var idx=0,length=chunk.length;idx<length;idx++){if(chunk.charCodeAt(idx)===NEWLINE_CODE){generated.line++;generated.column=0;if(idx+1===length){lastOriginalSource=null;sourceMappingActive=false}else if(sourceMappingActive){map.addMapping({source:original.source,original:{line:original.line,column:original.column},generated:{line:generated.line,column:generated.column},name:original.name})}}else{generated.column++}}});this.walkSourceContents(function(sourceFile,sourceContent){map.setSourceContent(sourceFile,sourceContent)});return{code:generated.code,map:map}};exports.SourceNode=SourceNode})},{"./source-map-generator":188,"./util":190,amdefine:191}],190:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){function getArg(aArgs,aName,aDefaultValue){if(aName in aArgs){return aArgs[aName]}else if(arguments.length===3){return aDefaultValue}else{throw new Error('"'+aName+'" is a required argument.')}}exports.getArg=getArg;var urlRegexp=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/;var dataUrlRegexp=/^data:.+\,.+$/;function urlParse(aUrl){var match=aUrl.match(urlRegexp);if(!match){return null}return{scheme:match[1],auth:match[2],host:match[3],port:match[4],path:match[5]}}exports.urlParse=urlParse;function urlGenerate(aParsedUrl){var url="";if(aParsedUrl.scheme){url+=aParsedUrl.scheme+":"}url+="//";if(aParsedUrl.auth){url+=aParsedUrl.auth+"@"}if(aParsedUrl.host){url+=aParsedUrl.host}if(aParsedUrl.port){url+=":"+aParsedUrl.port}if(aParsedUrl.path){url+=aParsedUrl.path}return url}exports.urlGenerate=urlGenerate;function normalize(aPath){var path=aPath;var url=urlParse(aPath);if(url){if(!url.path){return aPath}path=url.path}var isAbsolute=path.charAt(0)==="/";var parts=path.split(/\/+/);for(var part,up=0,i=parts.length-1;i>=0;i--){part=parts[i];if(part==="."){parts.splice(i,1)}else if(part===".."){up++}else if(up>0){if(part===""){parts.splice(i+1,up);up=0}else{parts.splice(i,2);up--}}}path=parts.join("/");if(path===""){path=isAbsolute?"/":"."}if(url){url.path=path;return urlGenerate(url)}return path}exports.normalize=normalize;function join(aRoot,aPath){if(aRoot===""){aRoot="."}if(aPath===""){aPath="."}var aPathUrl=urlParse(aPath);var aRootUrl=urlParse(aRoot);if(aRootUrl){aRoot=aRootUrl.path||"/"}if(aPathUrl&&!aPathUrl.scheme){if(aRootUrl){aPathUrl.scheme=aRootUrl.scheme}return urlGenerate(aPathUrl)}if(aPathUrl||aPath.match(dataUrlRegexp)){return aPath}if(aRootUrl&&!aRootUrl.host&&!aRootUrl.path){aRootUrl.host=aPath;return urlGenerate(aRootUrl)}var joined=aPath.charAt(0)==="/"?aPath:normalize(aRoot.replace(/\/+$/,"")+"/"+aPath);if(aRootUrl){aRootUrl.path=joined;return urlGenerate(aRootUrl)}return joined}exports.join=join;function relative(aRoot,aPath){if(aRoot===""){aRoot="."}aRoot=aRoot.replace(/\/$/,"");var url=urlParse(aRoot);if(aPath.charAt(0)=="/"&&url&&url.path=="/"){return aPath.slice(1)}return aPath.indexOf(aRoot+"/")===0?aPath.substr(aRoot.length+1):aPath}exports.relative=relative;function toSetString(aStr){return"$"+aStr}exports.toSetString=toSetString;function fromSetString(aStr){return aStr.substr(1)}exports.fromSetString=fromSetString;function strcmp(aStr1,aStr2){var s1=aStr1||"";var s2=aStr2||"";return(s1>s2)-(s1<s2)}function compareByOriginalPositions(mappingA,mappingB,onlyCompareOriginal){var cmp;cmp=strcmp(mappingA.source,mappingB.source);if(cmp){return cmp}cmp=mappingA.originalLine-mappingB.originalLine;if(cmp){return cmp}cmp=mappingA.originalColumn-mappingB.originalColumn;if(cmp||onlyCompareOriginal){return cmp}cmp=strcmp(mappingA.name,mappingB.name);if(cmp){return cmp}cmp=mappingA.generatedLine-mappingB.generatedLine;if(cmp){return cmp}return mappingA.generatedColumn-mappingB.generatedColumn}exports.compareByOriginalPositions=compareByOriginalPositions;function compareByGeneratedPositions(mappingA,mappingB,onlyCompareGenerated){var cmp;cmp=mappingA.generatedLine-mappingB.generatedLine;if(cmp){return cmp}cmp=mappingA.generatedColumn-mappingB.generatedColumn;if(cmp||onlyCompareGenerated){return cmp}cmp=strcmp(mappingA.source,mappingB.source);if(cmp){return cmp}cmp=mappingA.originalLine-mappingB.originalLine;if(cmp){return cmp}cmp=mappingA.originalColumn-mappingB.originalColumn;if(cmp){return cmp}return strcmp(mappingA.name,mappingB.name)}exports.compareByGeneratedPositions=compareByGeneratedPositions})},{amdefine:191}],191:[function(require,module,exports){(function(process,__filename){"use strict";function amdefine(module,requireFn){"use strict";var defineCache={},loaderCache={},alreadyCalled=false,path=require("path"),makeRequire,stringRequire;function trimDots(ary){var i,part;for(i=0;ary[i];i+=1){part=ary[i];if(part==="."){ary.splice(i,1);i-=1}else if(part===".."){if(i===1&&(ary[2]===".."||ary[0]==="..")){break}else if(i>0){ary.splice(i-1,2);i-=2}}}}function normalize(name,baseName){var baseParts;if(name&&name.charAt(0)==="."){if(baseName){baseParts=baseName.split("/");baseParts=baseParts.slice(0,baseParts.length-1);baseParts=baseParts.concat(name.split("/"));trimDots(baseParts);name=baseParts.join("/")}}return name}function makeNormalize(relName){return function(name){return normalize(name,relName)}}function makeLoad(id){function load(value){loaderCache[id]=value}load.fromText=function(id,text){throw new Error("amdefine does not implement load.fromText")};return load}makeRequire=function(systemRequire,exports,module,relId){function amdRequire(deps,callback){if(typeof deps==="string"){return stringRequire(systemRequire,exports,module,deps,relId)}else{deps=deps.map(function(depName){return stringRequire(systemRequire,exports,module,depName,relId)});process.nextTick(function(){callback.apply(null,deps)})}}amdRequire.toUrl=function(filePath){if(filePath.indexOf(".")===0){return normalize(filePath,path.dirname(module.filename))}else{return filePath}};return amdRequire};requireFn=requireFn||function req(){return module.require.apply(module,arguments)};function runFactory(id,deps,factory){var r,e,m,result;if(id){e=loaderCache[id]={};m={id:id,uri:__filename,exports:e};r=makeRequire(requireFn,e,m,id)}else{if(alreadyCalled){throw new Error("amdefine with no module ID cannot be called more than once per file.")}alreadyCalled=true;e=module.exports;m=module;r=makeRequire(requireFn,e,m,module.id)}if(deps){deps=deps.map(function(depName){return r(depName)})}if(typeof factory==="function"){result=factory.apply(m.exports,deps)}else{result=factory}if(result!==undefined){m.exports=result;if(id){loaderCache[id]=m.exports}}}stringRequire=function(systemRequire,exports,module,id,relId){var index=id.indexOf("!"),originalId=id,prefix,plugin;if(index===-1){id=normalize(id,relId);if(id==="require"){return makeRequire(systemRequire,exports,module,relId)}else if(id==="exports"){return exports}else if(id==="module"){return module}else if(loaderCache.hasOwnProperty(id)){return loaderCache[id]}else if(defineCache[id]){runFactory.apply(null,defineCache[id]);return loaderCache[id]}else{if(systemRequire){return systemRequire(originalId)}else{throw new Error("No module with ID: "+id)}}}else{prefix=id.substring(0,index);id=id.substring(index+1,id.length);plugin=stringRequire(systemRequire,exports,module,prefix,relId);if(plugin.normalize){id=plugin.normalize(id,makeNormalize(relId))}else{id=normalize(id,relId)}if(loaderCache[id]){return loaderCache[id]}else{plugin.load(id,makeRequire(systemRequire,exports,module,relId),makeLoad(id),{});return loaderCache[id]}}};function define(id,deps,factory){if(Array.isArray(id)){factory=deps;deps=id;id=undefined}else if(typeof id!=="string"){factory=id;id=deps=undefined}if(deps&&!Array.isArray(deps)){factory=deps;deps=undefined}if(!deps){deps=["require","exports","module"]}if(id){defineCache[id]=[id,deps,factory]}else{runFactory(id,deps,factory)}}define.require=function(id){if(loaderCache[id]){return loaderCache[id]}if(defineCache[id]){runFactory.apply(null,defineCache[id]);return loaderCache[id]}};define.amd={};return define}module.exports=amdefine}).call(this,require("_process"),"/node_modules/source-map/node_modules/amdefine/amdefine.js")},{_process:130,path:129}],192:[function(require,module,exports){(function(process){"use strict";var argv=process.argv;module.exports=function(){if(argv.indexOf("--no-color")!==-1||argv.indexOf("--no-colors")!==-1||argv.indexOf("--color=false")!==-1){return false}if(argv.indexOf("--color")!==-1||argv.indexOf("--colors")!==-1||argv.indexOf("--color=true")!==-1||argv.indexOf("--color=always")!==-1){return true}if(process.stdout&&!process.stdout.isTTY){return false}if(process.platform==="win32"){return true}if("COLORTERM"in process.env){return true}if(process.env.TERM==="dumb"){return false}if(/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)){return true}return false}()}).call(this,require("_process"))},{_process:130}],193:[function(require,module,exports){module.exports={name:"6to5",description:"Turn ES6 code into readable vanilla ES5 with source maps",version:"3.0.6",author:"Sebastian McKenzie <sebmck@gmail.com>",homepage:"https://6to5.org/",repository:"6to5/6to5",preferGlobal:true,main:"lib/6to5/index.js",bin:{"6to5":"./bin/6to5/index.js","6to5-node":"./bin/6to5-node"},browser:{"./lib/6to5/index.js":"./lib/6to5/browser.js","./lib/6to5/register.js":"./lib/6to5/register-browser.js"},keywords:["harmony","classes","modules","let","const","var","es6","transpile","transpiler","6to5"],scripts:{bench:"make bench",test:"make test"},dependencies:{"acorn-6to5":"0.11.1-25","ast-types":"~0.6.1",chalk:"^0.5.1",chokidar:"0.12.6",commander:"2.6.0","core-js":"0.4.6","detect-indent":"^3.0.0",estraverse:"1.9.1",esutils:"1.1.6",esvalid:"1.1.0","fs-readdir-recursive":"0.1.0","js-tokenizer":"^1.3.3",lodash:"3.0.0","output-file-sync":"^1.1.0","private":"0.1.6","regenerator-6to5":"0.8.9-6",regexpu:"1.1.0",roadrunner:"1.0.4","source-map":"0.1.43","source-map-support":"0.2.9","supports-color":"^1.2.0"},devDependencies:{browserify:"8.1.1",chai:"1.10.0",istanbul:"0.3.5",jscs:"^1.10.0",jshint:"2.6.0","jshint-stylish":"1.0.0",matcha:"0.6.0",mocha:"2.1.0",rimraf:"2.2.8","uglify-js":"2.4.16"},optionalDependencies:{kexec:"1.0.0"}}},{}],194:[function(require,module,exports){module.exports={"abstract-expression-call":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"PROPERTY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Symbol",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"referenceGet",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:true,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"OBJECT",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"call",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"OBJECT",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"abstract-expression-delete":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"PROPERTY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Symbol",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"referenceDelete",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:true,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"OBJECT",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"abstract-expression-get":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"PROPERTY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Symbol",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"referenceGet",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:true,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"OBJECT",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"abstract-expression-set":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"PROPERTY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Symbol",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"referenceSet",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:true,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"OBJECT",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"VALUE",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"apply-constructor":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:null,generator:false,expression:false,params:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Constructor",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"args",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"instance",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Object",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"create",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Constructor",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"prototype",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"result",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Constructor",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"apply",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"instance",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"args",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"ConditionalExpression",start:null,end:null,loc:null,range:null,test:{type:"LogicalExpression",start:null,end:null,loc:null,range:null,left:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"result",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"!=",right:{type:"Literal",start:null,end:null,loc:null,range:null,value:null,raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"&&",right:{type:"LogicalExpression",start:null,end:null,loc:null,range:null,left:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"UnaryExpression",start:null,end:null,loc:null,range:null,operator:"typeof",prefix:true,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"result",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"==",right:{type:"Literal",start:null,end:null,loc:null,range:null,value:"object",raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"||",right:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"UnaryExpression",start:null,end:null,loc:null,range:null,operator:"typeof",prefix:true,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"result",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"==",right:{type:"Literal",start:null,end:null,loc:null,range:null,value:"function",raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"result",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},alternate:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"instance",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"array-comprehension-container":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:null,generator:false,expression:false,params:[],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"KEY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"ArrayExpression",start:null,end:null,loc:null,range:null,elements:[],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"KEY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},arguments:[],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"array-from":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Array",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"from",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"VALUE",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"array-push":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"KEY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"push",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"STATEMENT",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"async-to-generator":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:null,generator:false,expression:false,params:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"fn",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:null,generator:false,expression:false,params:[],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"gen",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"fn",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"apply",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"ThisExpression",start:null,end:null,loc:null,range:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"arguments",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"NewExpression",start:null,end:null,loc:null,range:null,callee:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Promise",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:null,generator:false,expression:false,params:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"resolve",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"reject",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"callNext",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"step",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"bind",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"gen",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"next",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"callThrow",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"step",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"bind",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"gen",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"throw",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"FunctionDeclaration",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"step",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},generator:false,expression:false,params:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"arg",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"TryStatement",start:null,end:null,loc:null,range:null,block:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"info",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"ThisExpression",start:null,end:null,loc:null,range:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"arg",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"value",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"info",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"value",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},handler:{type:"CatchClause",start:null,end:null,loc:null,range:null,param:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"error",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},guard:null,body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"reject",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"error",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},guardedHandlers:[],finalizer:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"info",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"done",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"resolve",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"value",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},alternate:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Promise",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"resolve",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"value",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"then",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"callNext",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"callThrow",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"callNext",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},bind:{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Function",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"prototype",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"bind",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},call:{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"OBJECT",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"call",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"CONTEXT",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"class-super-constructor-call-loose":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"SUPER_NAME",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"!=",right:{type:"Literal",start:null,end:null,loc:null,range:null,value:null,raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"SUPER_NAME",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"apply",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"ThisExpression",start:null,end:null,loc:null,range:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"arguments",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},alternate:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"class-super-constructor-call":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Object",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"getPrototypeOf",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"CLASS_NAME",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"!==",right:{type:"Literal",start:null,end:null,loc:null,range:null,value:null,raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Object",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"getPrototypeOf",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"CLASS_NAME",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"apply",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"ThisExpression",start:null,end:null,loc:null,range:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"arguments",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},alternate:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"corejs-iterator":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"CORE_ID",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"$for",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"getIterator",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"VALUE",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"default-parameter":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"VARIABLE_NAME",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"ConditionalExpression",start:null,end:null,loc:null,range:null,test:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"ARGUMENTS",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"ARGUMENT_KEY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:true,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"===",right:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"undefined",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"DEFAULT_VALUE",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},alternate:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"ARGUMENTS",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"ARGUMENT_KEY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:true,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},defaults:{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:null,generator:false,expression:false,params:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"defaults",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ForInStatement",start:null,end:null,loc:null,range:null,left:{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"key",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},right:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"defaults",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"key",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:true,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"===",right:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"undefined",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"AssignmentExpression",start:null,end:null,loc:null,range:null,operator:"=",left:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"key",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:true,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},right:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"defaults",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"key",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:true,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},alternate:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"define-property":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:null,generator:false,expression:false,params:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"key",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"value",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Object",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"defineProperty",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"key",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"ObjectExpression",start:null,end:null,loc:null,range:null,properties:[{type:"Property",start:null,end:null,loc:null,range:null,method:false,shorthand:false,computed:false,key:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"value",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},value:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"value",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},kind:"init",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Property",start:null,end:null,loc:null,range:null,method:false,shorthand:false,computed:false,key:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"enumerable",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},value:{type:"Literal",start:null,end:null,loc:null,range:null,value:true,raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},kind:"init",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Property",start:null,end:null,loc:null,range:null,method:false,shorthand:false,computed:false,key:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"configurable",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},value:{type:"Literal",start:null,end:null,loc:null,range:null,value:true,raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},kind:"init",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Property",start:null,end:null,loc:null,range:null,method:false,shorthand:false,computed:false,key:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"writable",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},value:{type:"Literal",start:null,end:null,loc:null,range:null,value:true,raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},kind:"init",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"exports-assign":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"AssignmentExpression",start:null,end:null,loc:null,range:null,operator:"=",left:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"exports",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"KEY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},right:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"VALUE",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"exports-default-assign":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"AssignmentExpression",start:null,end:null,loc:null,range:null,operator:"=",left:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"module",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"exports",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},right:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"VALUE",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"exports-module-declaration":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"AssignmentExpression",start:null,end:null,loc:null,range:null,operator:"=",left:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"exports",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"__esModule",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},right:{type:"Literal",start:null,end:null,loc:null,range:null,value:true,raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"extends":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:null,generator:false,expression:false,params:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"target",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ForStatement",start:null,end:null,loc:null,range:null,init:{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"i",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"Literal",start:null,end:null,loc:null,range:null,value:1,raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},test:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"i",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"<",right:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"arguments",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"length",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},update:{type:"UpdateExpression",start:null,end:null,loc:null,range:null,operator:"++",prefix:false,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"i",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"source",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"arguments",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"i",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:true,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"ForInStatement",start:null,end:null,loc:null,range:null,left:{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"key",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},right:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"source",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Object",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"prototype",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"hasOwnProperty",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"call",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"source",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"key",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"AssignmentExpression",start:null,end:null,loc:null,range:null,operator:"=",left:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"target",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"key",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:true,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},right:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"source",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"key",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:true,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},alternate:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"target",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"for-of-loose":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ForStatement",start:null,end:null,loc:null,range:null,init:{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"LOOP_OBJECT",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"OBJECT",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"IS_ARRAY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Array",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"isArray",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"LOOP_OBJECT",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"INDEX",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"Literal",start:null,end:null,loc:null,range:null,value:0,raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"LOOP_OBJECT",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"ConditionalExpression",start:null,end:null,loc:null,range:null,test:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"IS_ARRAY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"LOOP_OBJECT",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},alternate:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"LOOP_OBJECT",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Symbol",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"iterator",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:true,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},test:null,update:null,body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"IS_ARRAY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"INDEX",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:">=",right:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"LOOP_OBJECT",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"length",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"BreakStatement",start:null,end:null,loc:null,range:null,label:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},alternate:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"AssignmentExpression",start:null,end:null,loc:null,range:null,operator:"=",left:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"ID",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},right:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"LOOP_OBJECT",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"UpdateExpression",start:null,end:null,loc:null,range:null,operator:"++",prefix:false,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"INDEX",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:true,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},alternate:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"AssignmentExpression",start:null,end:null,loc:null,range:null,operator:"=",left:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"INDEX",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},right:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"LOOP_OBJECT",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"next",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"INDEX",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"done",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"BreakStatement",start:null,end:null,loc:null,range:null,label:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},alternate:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"AssignmentExpression",start:null,end:null,loc:null,range:null,operator:"=",left:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"ID",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},right:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"INDEX",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"value",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"for-of":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ForStatement",start:null,end:null,loc:null,range:null,init:{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"ITERATOR_KEY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"OBJECT",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Symbol",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"iterator",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:true,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"STEP_KEY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},test:{type:"UnaryExpression",start:null,end:null,loc:null,range:null,operator:"!",prefix:true,argument:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"AssignmentExpression",start:null,end:null,loc:null,range:null,operator:"=",left:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"STEP_KEY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},right:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"ITERATOR_KEY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"next",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"done",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},update:null,body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},get:{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"get",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},generator:false,expression:false,params:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"object",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"property",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"receiver",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"desc",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Object",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"getOwnPropertyDescriptor",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"object",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"property",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"desc",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"===",right:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"undefined",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"parent",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Object",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"getPrototypeOf",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"object",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"parent",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"===",right:{type:"Literal",start:null,end:null,loc:null,range:null,value:null,raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"undefined",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},alternate:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"get",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"parent",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"property",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"receiver",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},alternate:{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"LogicalExpression",start:null,end:null,loc:null,range:null,left:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"Literal",start:null,end:null,loc:null,range:null,value:"value",raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},operator:"in",right:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"desc",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"&&",right:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"desc",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"writable",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"desc",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"value",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},alternate:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"getter",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"desc",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"get",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"getter",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"===",right:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"undefined",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"undefined",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},alternate:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"getter",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"call",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"receiver",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"has-own":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Object",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"prototype",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"hasOwnProperty",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},inherits:{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:null,generator:false,expression:false,params:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"subClass",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"superClass",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"LogicalExpression",start:null,end:null,loc:null,range:null,left:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"UnaryExpression",start:null,end:null,loc:null,range:null,operator:"typeof",prefix:true,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"superClass",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"!==",right:{type:"Literal",start:null,end:null,loc:null,range:null,value:"function",raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"&&",right:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"superClass",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"!==",right:{type:"Literal",start:null,end:null,loc:null,range:null,value:null,raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ThrowStatement",start:null,end:null,loc:null,range:null,argument:{type:"NewExpression",start:null,end:null,loc:null,range:null,callee:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"TypeError",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"Literal",start:null,end:null,loc:null,range:null,value:"Super expression must either be null or a function, not ",raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},operator:"+",right:{type:"UnaryExpression",start:null,end:null,loc:null,range:null,operator:"typeof",prefix:true,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"superClass",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},alternate:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"AssignmentExpression",start:null,end:null,loc:null,range:null,operator:"=",left:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"subClass",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"prototype",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},right:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Object",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"create",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"LogicalExpression",start:null,end:null,loc:null,range:null,left:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"superClass",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"&&",right:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"superClass",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"prototype",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"ObjectExpression",start:null,end:null,loc:null,range:null,properties:[{type:"Property",start:null,end:null,loc:null,range:null,method:false,shorthand:false,computed:false,key:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"constructor",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},value:{type:"ObjectExpression",start:null,end:null,loc:null,range:null,properties:[{type:"Property",start:null,end:null,loc:null,range:null,method:false,shorthand:false,computed:false,key:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"value",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},value:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"subClass",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},kind:"init",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Property",start:null,end:null,loc:null,range:null,method:false,shorthand:false,computed:false,key:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"enumerable",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},value:{type:"Literal",start:null,end:null,loc:null,range:null,value:false,raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},kind:"init",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Property",start:null,end:null,loc:null,range:null,method:false,shorthand:false,computed:false,key:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"writable",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},value:{type:"Literal",start:null,end:null,loc:null,range:null,value:true,raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},kind:"init",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Property",start:null,end:null,loc:null,range:null,method:false,shorthand:false,computed:false,key:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"configurable",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},value:{type:"Literal",start:null,end:null,loc:null,range:null,value:true,raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},kind:"init",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},kind:"init",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"superClass",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"AssignmentExpression",start:null,end:null,loc:null,range:null,operator:"=",left:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"subClass",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"__proto__",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},right:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"superClass",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},alternate:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"interop-require-wildcard":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:null,generator:false,expression:false,params:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"ConditionalExpression",start:null,end:null,loc:null,range:null,test:{type:"LogicalExpression",start:null,end:null,loc:null,range:null,left:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"&&",right:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"__esModule",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},alternate:{type:"ObjectExpression",start:null,end:null,loc:null,range:null,properties:[{type:"Property",start:null,end:null,loc:null,range:null,method:false,shorthand:false,computed:false,key:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"default",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},value:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},kind:"init",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"interop-require":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:null,generator:false,expression:false,params:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"ConditionalExpression",start:null,end:null,loc:null,range:null,test:{type:"LogicalExpression",start:null,end:null,loc:null,range:null,left:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"&&",right:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"__esModule",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"default",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},alternate:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"let-scoping-return":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"UnaryExpression",start:null,end:null,loc:null,range:null,operator:"typeof",prefix:true,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"RETURN",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"===",right:{type:"Literal",start:null,end:null,loc:null,range:null,value:"object",raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"RETURN",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"v",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},alternate:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"object-without-properties":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:null,generator:false,expression:false,params:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"keys",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"target",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"ObjectExpression",start:null,end:null,loc:null,range:null,properties:[],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"ForInStatement",start:null,end:null,loc:null,range:null,left:{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"i",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},right:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"keys",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"indexOf",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"i",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:">=",right:{type:"Literal",start:null,end:null,loc:null,range:null,value:0,raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"ContinueStatement",start:null,end:null,loc:null,range:null,label:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},alternate:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"UnaryExpression",start:null,end:null,loc:null,range:null,operator:"!",prefix:true,argument:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Object",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"prototype",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"hasOwnProperty",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"call",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"i",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"ContinueStatement",start:null,end:null,loc:null,range:null,label:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},alternate:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"AssignmentExpression",start:null,end:null,loc:null,range:null,operator:"=",left:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"target",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"i",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:true,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},right:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"i",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:true,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"target",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"property-method-assignment-wrapper":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:null,generator:false,expression:false,params:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"FUNCTION_KEY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"WRAPPER_KEY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"FUNCTION_ID",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},generator:false,expression:false,params:[],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"FUNCTION_KEY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"apply",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"ThisExpression",start:null,end:null,loc:null,range:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"arguments",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"AssignmentExpression",start:null,end:null,loc:null,range:null,operator:"=",left:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"WRAPPER_KEY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"toString",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},right:{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:null,generator:false,expression:false,params:[],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"FUNCTION_KEY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"toString",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"WRAPPER_KEY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"FUNCTION",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"prototype-identifier":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"CLASS_NAME",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"prototype",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"prototype-properties":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:null,generator:false,expression:false,params:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"child",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"staticProps",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"instanceProps",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"staticProps",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Object",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"defineProperties",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"child",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"staticProps",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},alternate:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"instanceProps",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Object",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"defineProperties",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"child",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"prototype",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"instanceProps",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},alternate:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"require-assign-key":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"VARIABLE_NAME",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"require",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"MODULE_NAME",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"KEY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},require:{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"require",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"MODULE_NAME",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},rest:{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ForStatement",start:null,end:null,loc:null,range:null,init:{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"LEN",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"ARGUMENTS",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"length",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"ARRAY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Array",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"ARRAY_LEN",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"KEY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"START",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},test:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"KEY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"<",right:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"LEN",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},update:{type:"UpdateExpression",start:null,end:null,loc:null,range:null,operator:"++",prefix:false,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"KEY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"AssignmentExpression",start:null,end:null,loc:null,range:null,operator:"=",left:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"ARRAY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"ARRAY_KEY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:true,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},right:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"ARGUMENTS",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"KEY",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:true,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"self-global":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"ConditionalExpression",start:null,end:null,loc:null,range:null,test:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"UnaryExpression",start:null,end:null,loc:null,range:null,operator:"typeof",prefix:true,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"global",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"===",right:{type:"Literal",start:null,end:null,loc:null,range:null,value:"undefined",raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"self",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},alternate:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"global",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},slice:{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Array",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"prototype",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"slice",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"sliced-to-array":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:null,generator:false,expression:false,params:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"arr",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"i",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Array",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"isArray",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"arr",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"arr",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},alternate:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"_arr",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"ArrayExpression",start:null,end:null,loc:null,range:null,elements:[],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"ForStatement",start:null,end:null,loc:null,range:null,init:{type:"VariableDeclaration",start:null,end:null,loc:null,range:null,declarations:[{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"_iterator",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"arr",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Symbol",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"iterator",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:true,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"VariableDeclarator",start:null,end:null,loc:null,range:null,id:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"_step",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},init:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],kind:"var",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},test:{type:"UnaryExpression",start:null,end:null,loc:null,range:null,operator:"!",prefix:true,argument:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"AssignmentExpression",start:null,end:null,loc:null,range:null,operator:"=",left:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"_step",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},right:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"_iterator",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"next",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"done",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},update:null,body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"_arr",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"push",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"_step",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"value",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"LogicalExpression",start:null,end:null,loc:null,range:null,left:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"i",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"&&",right:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"_arr",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"length",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"===",right:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"i",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"BreakStatement",start:null,end:null,loc:null,range:null,label:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},alternate:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"_arr",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},system:{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"System",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"register",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"MODULE_NAME",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"MODULE_DEPENDENCIES",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:null,generator:false,expression:false,params:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"EXPORT_IDENTIFIER",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"ObjectExpression",start:null,end:null,loc:null,range:null,properties:[{type:"Property",start:null,end:null,loc:null,range:null,method:false,shorthand:false,computed:false,key:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"setters",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},value:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"SETTERS",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},kind:"init",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Property",start:null,end:null,loc:null,range:null,method:false,shorthand:false,computed:false,key:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"execute",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},value:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"EXECUTE",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},kind:"init",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"tagged-template-literal-loose":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:null,generator:false,expression:false,params:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"strings",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"raw",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"AssignmentExpression",start:null,end:null,loc:null,range:null,operator:"=",left:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"strings",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"raw",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},right:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"raw",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"strings",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"tagged-template-literal":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:null,generator:false,expression:false,params:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"strings",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"raw",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Object",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"freeze",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Object",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"defineProperties",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"strings",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"ObjectExpression",start:null,end:null,loc:null,range:null,properties:[{type:"Property",start:null,end:null,loc:null,range:null,method:false,shorthand:false,computed:false,key:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"raw",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},value:{type:"ObjectExpression",start:null,end:null,loc:null,range:null,properties:[{type:"Property",start:null,end:null,loc:null,range:null,method:false,shorthand:false,computed:false,key:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"value",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},value:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Object",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"freeze",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"raw",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},kind:"init",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},kind:"init",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"test-exports":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"UnaryExpression",start:null,end:null,loc:null,range:null,operator:"typeof",prefix:true,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"exports",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"!==",right:{type:"Literal",start:null,end:null,loc:null,range:null,value:"undefined",raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"test-module":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"UnaryExpression",start:null,end:null,loc:null,range:null,operator:"typeof",prefix:true,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"module",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"!==",right:{type:"Literal",start:null,end:null,loc:null,range:null,value:"undefined",raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"to-array":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:null,generator:false,expression:false,params:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"arr",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"ConditionalExpression",start:null,end:null,loc:null,range:null,test:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Array",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"isArray",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"arr",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"arr",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},alternate:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Array",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"from",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"arr",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"typeof":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:null,generator:false,expression:false,params:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ReturnStatement",start:null,end:null,loc:null,range:null,argument:{type:"ConditionalExpression",start:null,end:null,loc:null,range:null,test:{type:"LogicalExpression",start:null,end:null,loc:null,range:null,left:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"&&",right:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"constructor",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"===",right:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"Symbol",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"Literal",start:null,end:null,loc:null,range:null,value:"symbol",raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},alternate:{type:"UnaryExpression",start:null,end:null,loc:null,range:null,operator:"typeof",prefix:true,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"obj",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},"umd-runner-body":{type:"Program",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"FunctionExpression",start:null,end:null,loc:null,range:null,id:null,generator:false,expression:false,params:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"factory",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],body:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"LogicalExpression",start:null,end:null,loc:null,range:null,left:{type:"BinaryExpression",start:null,end:null,loc:null,range:null,left:{type:"UnaryExpression",start:null,end:null,loc:null,range:null,operator:"typeof",prefix:true,argument:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"define",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"===",right:{type:"Literal",start:null,end:null,loc:null,range:null,value:"function",raw:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},operator:"&&",right:{type:"MemberExpression",start:null,end:null,loc:null,range:null,object:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"define",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},property:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"amd",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},computed:false,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"define",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"AMD_ARGUMENTS",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},{type:"Identifier",start:null,end:null,loc:null,range:null,name:"factory",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},alternate:{type:"IfStatement",start:null,end:null,loc:null,range:null,test:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"COMMON_TEST",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},consequent:{type:"BlockStatement",start:null,end:null,loc:null,range:null,body:[{type:"ExpressionStatement",start:null,end:null,loc:null,range:null,expression:{type:"CallExpression",start:null,end:null,loc:null,range:null,callee:{type:"Identifier",start:null,end:null,loc:null,range:null,name:"factory",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},arguments:[{type:"Identifier",start:null,end:null,loc:null,range:null,name:"COMMON_ARGUMENTS",_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},alternate:null,_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_scopeInfo:null,_declarations:null,extendedRange:null,tokens:null,raw:null},_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}],_declarations:null,extendedRange:null,_scopeInfo:null,tokens:null,raw:null}}
},{}]},{},[1])(1)});
|
src/@ui/inputs/Picker/Picker.tests.js
|
NewSpring/Apollos
|
import React from 'react';
import renderer from 'react-test-renderer';
import Providers from '@ui/TestProviders';
import Picker, { Item } from './';
describe('The Picker Input component', () => {
it('should render correctly', () => {
const tree = renderer.create(
<Providers>
<Picker
placeholder="Select a language..."
label="Languages"
>
<Item label="Java" value="java" />
<Item label="JavaScript" value="js" />
</Picker>
</Providers>,
);
expect(tree).toMatchSnapshot();
});
});
|
customView/index.ios.js
|
TheKingOfNorway/React-Native
|
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import { PeripheralListView } from './BluetoothView/PeripheralListView';
// import { ServiceListView } from './BluetoothView/ServiceListView';
// import { CharacteristicListView } from './BluetoothView/CharacteristicListView';
// import { CommunicationWithPeripheral } from '/BluetoothView/CommunicationWithPeripheral';
var buletooth = require('react-native').NativeModules.ConnetionWithBlueTooth;
var { NativeAppEventEmitter } = require('react-native');
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Alert,
Navigator,
TouchableOpacity,
} from 'react-native';
class customView extends Component {
constructor(props) {
super(props);
this.didDiscoverPeripheralNotification;
this.centralManagerStateChangeNotification;
this.state = {
bluetoothPowerState: false,
bluetoothPeripheral: {},
};
buletooth.creatCenteralManager();
}
componentDidMount() {
this.centralManagerStateChangeNotification = NativeAppEventEmitter.addListener(
'centralManagerStateChange', (bluetooth) => {
this.state.bluetoothPowerState = bluetooth.powerState;
this._startSearchPeripheral();
}
);
this.didDiscoverPeripheralNotification = NativeAppEventEmitter.addListener(
'didDiscoverPeripheral', () => {}
);
this.didConnectPeripheralNotification = NativeAppEventEmitter.addListener(
'didConnectPeripheral', () => {}
);
this.didDiscoverServicesNotifiction = NativeAppEventEmitter.addListener(
'didDiscoverServices', () => {}
);
this.didDiscoverCharacteristicNotification = NativeAppEventEmitter.addListener(
'didDiscoverCharacteristics', (peripheral) => {
}
);
}
componentWillUnmount() {
this.centralManagerStateChangeNotification.remove();
this.didDiscoverPeripheralNotification.remove();
this.didConnectPeripheralNotification.remove();
this.didDiscoverServicesNotifiction.remove();
this.didDiscoverCharacteristicNotification.remove();
}
_startSearchPeripheral() {
if (this.state.bluetoothPowerState) {
console.log('\npowerState: ' + this.state.bluetoothPowerState + '\n');
buletooth.searchlinkDevice();
console.log('开始搜索周边设备');
}
}
render() {
return (
<Navigator
initialRoute={{name: PeripheralListView, index: 0}}
renderScene={this._renderScene.bind(this)}
navigationBar={ <Navigator.NavigationBar routeMapper={NavigationBarRouteMapper} style={ styles.navBar }/>}
>
</Navigator>
);
}
_renderScene(route, navigator) {
let Component = route.name;
return (
<Component navigator={navigator} route={route} UUID ={route.index}/>
);
}
}
const route = {
component: null,
navigationBarTitle: null,
navigationBarHidden: null,
navigationBarPreViousTitle: null,
parameters: null,
};
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#75FCFF',
},
navBar: {
backgroundColor: '#AEAEAE',
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
});
const NavigationBarRouteMapper = {
LeftButton(route, navigator, index, navState) {
return (
<TouchableOpacity
onPress={() => navigator.pop()}
>
<Text>
Back
</Text>
</TouchableOpacity>
);
},
RightButton(route, navigator, index, navState) {
return (
<TouchableOpacity
onPress={() => {console.log('啊!我被点击了')} }
>
<Text>
{ 'Don' + '\'' + 't' }
</Text>
</TouchableOpacity>
)
},
Title(route, navigator, index, navState) {
return (
<Text>
{ '\<' + 'Title' + '\>' }
</Text>
)
}
};
AppRegistry.registerComponent('customView', () => customView);
|
src/web/components/CreateList.js
|
faalsh/LamaDesktop
|
import React from 'react';
import { connect } from 'react-redux'
import * as LamaActions from '../../common/actions'
import { bindActionCreators } from 'redux'
import { StyleSheet, css } from 'aphrodite'
class CreateList extends React.Component {
constructor(props) {
super(props);
this.state = {
title: '',
panelOpen: false
}
}
handleClick(){
const {boardId, actions} = this.props
const {title} = this.state
if(title !== '') {
actions.createList(boardId,title)
this.setState({
title: '',
panelOpen: false
})
}
}
handleClose(){
this.setState({
title: '',
panelOpen: false
})
}
handleChange(e) {
this.setState({
title: e.target.value
})
}
openPanel(){
this.setState({
panelOpen: true
})
}
handleKeyDown(e){
if(e.key === 'Enter'){
const {boardId, actions} = this.props
const {title} = this.state
if(title !== '') {
actions.createList(boardId,title)
this.setState({
title: '',
panelOpen: false
})
}
} else if (e.key === 'Escape') {
this.setState({
title: '',
panelOpen: false
})
}
}
render() {
const keyframes = {
'from': {
opacity: 0,
},
'to': {
opacity: 1,
}
}
const styles = StyleSheet.create({
panel: {
padding: '5px',
margin: '5px',
borderRadius: '3px',
backgroundColor: 'lightgrey',
boxShadow: '0 2px 4px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12)',
height: '100%',
width: '200px',
display: 'flex',
flexDirection: 'column'
},
input: {
width: '185px',
height: '20px',
fontWeight: 'bold',
marginTop: '10px',
marginLeft: '5px',
marginBottom:'10px'
},
panelButton: {
padding: '5px',
width: '70px',
height: '20px',
fontSize: '12px',
background: 'linear-gradient(to bottom,#61BD4F 0,#5AAC44 100%)',
color: 'white',
boxShadow: '0 1px 0 #3F6F21',
cursor: 'pointer',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
marginLeft: '5px',
marginBottom:'10px'
},
panelBottom: {
display: 'flex',
flexDirection: 'row',
alignItems: 'center'
},
closeButton: {
marginLeft: '15px',
marginBottom: '10px',
fontSize: '25px',
cursor: 'pointer'
},
addButton: {
margin: '3px',
backgroundColor: '#006ba9',
color:'white',
height:'20px',
width: '200px',
padding: '5px',
display: 'flex',
alignItems: 'center',
justifyContent:'center',
cursor: 'pointer',
opacity: '.7',
':hover': {
backgroundColor: '#51bfff'
}
},
// animate: {
// animationName: keyframes,
// animationDuration: '500ms'
// }
})
const AddListForm = () => {
return (
<div className={css(styles.panel, styles.animate)}>
<div>
<input autoFocus onChange={this.handleChange.bind(this)} className={css(styles.input)}
value={this.state.title} placeholder="List title" onKeyDown={this.handleKeyDown.bind(this)}/>
</div>
<div className={css(styles.panelBottom)}>
<div onClick={this.handleClick.bind(this)} className={css(styles.panelButton)}>
Save
</div>
<div onClick={this.handleClose.bind(this)} className={css(styles.closeButton)}>x</div>
</div>
</div>
)
}
const AddListButton = () => {
return (
<div >
<div className={css(styles.addButton)} onClick={this.openPanel.bind(this)}>Add list</div>
</div>
)
}
return this.state.panelOpen? <AddListForm /> : <AddListButton />
}
}
const mapDispatchToProps = dispatch =>({
actions: bindActionCreators(LamaActions,dispatch)
})
export default connect(null, mapDispatchToProps)(CreateList);
|
test/tests/Quiz-spec.js
|
DailyCheckup/DailyCheckup
|
import React from 'react';
import { expect } from 'chai';
import { shallow, mount, render } from 'enzyme';
import Quiz from './../../src/Components/Quiz/Quiz.jsx';
import Answers from './../../src/Components/Quiz/Answers.jsx';
const testQuestions = [{
a:"A) severe joint pain",
answer:"A",
b:"B) marked joint space narrowing on radiologic studies",
c:"C) destruction and loss of motion of the contralateral joint",
chosen:true,
createdAt:"2016-07-07T05:53:11.776Z",
d:"D) an acutely infected joint",
e:"null",
genre:"GI",
id:139,
question:"139. A 70-year-old retired farmer presents with an angulated right knee and a painful hip. He asksyou about the possibility of having knee replacement surgery, although he is not eager to do so.You would advise him that the major indication for knee replacement is",
questionid:139,
reason:"39The major indication for joint replacement is severe joint pain. Loss of joint function and radiographicevidence of severe destruction of the joint may also be considered in the decision. The appearance of thejoint and the status of the contralateral joint may be minor considerations. Surgical insertion of a foreignbody into an infected joint is contraindicated. Ref: Zhang W, Moskowitz RW, Nuki G, et al: OARSI recommendations for the management of hip and knee osteoarthritis, PartII: OARSI evidence-based, expert consensus guidelines. Osteoarthritis Cartilage 2008;16(2):137-162. ",
updatedAt:"2016-07-08T01:32:24.410Z"},
{a:"A) Emollients",
answer:"D",
b:"B) Pimecrolimus (Elidel)",
c:"C) Mupirocin (Bactroban)",
chosen:true,
createdAt:"2016-07-07T05:53:11.779Z",
d:"D) Corticosteroids",
e:"E) Antihistamines",
genre:"Endocrine",
id:177,
question:"178. A mother brings her 10-year-old son to your office because he has recently experienced aflare-up of atopic dermatitis, including increased pruritus. Physical findings include increasederythema of the involved skin on the flexural surfaces of his arms and legs, with weepingeruptions located within areas of lichenification.Which one of the following topical treatments for managing this episode is supported by the bestavailable evidence?",
questionid:178,
reason:"78Emollients are a mainstay of chronic therapy for atopic dermatitis (SOR C), but topical corticosteroids arethe first-line treatment for flare-ups (SOR A). Calcineurin inhibitors such as pimecrolimus are asecond-line treatment for moderate to severe atopic dermatitis (SOR A). Antibiotics are not useful inreducing flare-ups of atopic dermatitis unless there is clear evidence of a secondary infection (SOR A).Neither topical nor oral antihistamines are recommended for routine treatment of atopic dermatitis becausethey are not effective in treating the associated pruritus. Ref: Berke R, Singh A, Guralnick M: Atopic dermatitis: An overview. Am Fam Physician 2012;86(1):35-42. ",
updatedAt:"2016-07-08T01:32:24.410Z"},
];
let actualState = {};
function checkState(state) {
actualState = state;
}
describe('Testing Quiz Component', () => {
const testState = {
userEmail: 'sandra@hi.com',
changedPW: true,
isAdmin: false,
dailyQuestions: testQuestions,
takenQuiz: false,
quizAvailability: true,
};
const wrapper = mount(<Quiz getState={testState} setAppState={checkState} />);
it('should have a div with a className quiz', () => {
expect(wrapper.find('div .quiz')).to.have.length(1);
});
it('should build only 4 answers since answer E is null and display them as inputs', () =>{
expect(wrapper.node.buildAnswers()).to.have.length(4);
expect(wrapper.find('input')).to.have.length(4);
});
it('should change state of currentAnswer when a radio button is clicked', () => {
wrapper.find('input [value="A"]').simulate('change');
expect(wrapper.state().currentAnswer).to.be.equal('A');
});
it('should change to the next question when button is clicked and have 5 answers instead of 4', () => {
expect(wrapper.state().currentAnswer).to.be.equal('A');
wrapper.find('button').simulate('click');
expect(wrapper.state().currentAnswer).to.be.equal('N');
expect(wrapper.node.buildAnswers()).to.have.length(5);
expect(wrapper.find('input')).to.have.length(5);
});
it('should change state and add an object to the results array', () => {
expect(wrapper.state().results).to.have.length(1);
});
xit('should set app state for quizTaken to true when the last question is answered', () => {
wrapper.find('button').simulate('click');
expect(wrapper.state().results).to.have.length(2);
expect(Object.keys(actualState)).to.have.length(1);
expect(actualState.takenQuiz).to.be.true;
});
xit('should display results after a quiz has finished', () => {
expect(wrapper.state().showResults).to.be.true;
expect(wrapper.find('div .answerContainer')).to.have.length(2);
});
});
|
web/src/layout/leftpanel/faqpanel.js
|
corradio/electricitymap
|
import React from 'react';
import { connect } from 'react-redux';
import { Link, Redirect, useLocation } from 'react-router-dom';
import { useTranslation } from '../../helpers/translation';
import FAQ from '../../components/faq';
const mapStateToProps = state => ({
isMobile: state.application.isMobile,
});
const FAQPanel = ({ isMobile }) => {
const { __ } = useTranslation();
const location = useLocation();
const parentPage = {
pathname: isMobile ? '/info' : '/map',
search: location.search,
};
// FAQ section is embedded on the /info page on mobile screens
if (isMobile) {
return <Redirect to={parentPage} />;
}
return (
<div className="faq-panel">
<div className="faq-header">
<Link to={parentPage}>
<span className="left-panel-back-button">
<i className="material-icons" aria-hidden="true">arrow_back</i>
</span>
</Link>
<span className="title">{__('misc.faq')}</span>
</div>
<FAQ className="faq" />
</div>
);
};
export default connect(mapStateToProps)(FAQPanel);
|
test/specs/collections/Breadcrumb/BreadcrumbSection-test.js
|
ben174/Semantic-UI-React
|
import React from 'react'
import BreadcrumbSection from 'src/collections/Breadcrumb/BreadcrumbSection'
import * as common from 'test/specs/commonTests'
import { sandbox } from 'test/utils'
describe('BreadcrumbSection', () => {
common.isConformant(BreadcrumbSection)
common.rendersChildren(BreadcrumbSection)
common.propKeyOnlyToClassName(BreadcrumbSection, 'active')
it('renders as a div by default', () => {
shallow(<BreadcrumbSection>Home</BreadcrumbSection>)
.should.have.tagName('div')
})
describe('link', () => {
it('is should be `a` when has prop link', () => {
shallow(<BreadcrumbSection link>Home</BreadcrumbSection>)
.should.have.tagName('a')
})
})
describe('href', () => {
it('is not present by default', () => {
shallow(<BreadcrumbSection>Home</BreadcrumbSection>)
.should.not.have.attr('href')
})
it('should have attr `href` when has prop', () => {
const section = shallow(<BreadcrumbSection href='http://google.com'>Home</BreadcrumbSection>)
section.should.have.tagName('a')
section.should.have.attr('href').and.equal('http://google.com')
})
})
describe('onClick', () => {
it('omitted when not defined', () => {
const click = () => shallow(<BreadcrumbSection />).simulate('click')
expect(click).to.not.throw()
})
it('is called with (event) on click', () => {
const handleClick = sandbox.spy()
const section = mount(<BreadcrumbSection onClick={handleClick} />)
section.should.have.tagName('a')
section.simulate('click')
handleClick.should.have.been.calledOnce()
handleClick.should.have.been.calledWithMatch({})
})
})
})
|
src/articles/custom-html5-video-player-with-css3-and-jquery/jquery-1.4.2.min.js
|
andreasbovens/devopera
|
/*!
* 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(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o<i;o++)e(a[o],b,f?d.call(a[o],o,e(a[o],b)):d,j);return a}return i?
e(a[0],b):w}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveFired=this;var u=i.live.slice(0);for(k=0;k<u.length;k++){i=u[k];i.origType.replace(O,"")===a.type?f.push(i.selector):u.splice(k--,1)}j=c(a.target).closest(f,a.currentTarget);n=0;for(r=
j.length;n<r;n++)for(k=0;k<u.length;k++){i=u[k];if(j[n].selector===i.selector){o=j[n].elem;f=null;if(i.preType==="mouseenter"||i.preType==="mouseleave")f=c(a.relatedTarget).closest(i.selector)[0];if(!f||f!==o)d.push({elem:o,handleObj:i})}}n=0;for(r=d.length;n<r;n++){j=d[n];a.currentTarget=j.elem;a.data=j.handleObj.data;a.handleObj=j.handleObj;if(j.handleObj.origHandler.apply(j.elem,e)===false){b=false;break}}return b}}function pa(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,
"&")}function qa(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function ra(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var j in f)for(var i in f[j])c.event.add(this,j,f[j][i],f[j][i].data)}}})}function sa(a,b,d){var f,e,j;b=b&&b[0]?b[0].ownerDocument||b[0]:s;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===s&&!ta.test(a[0])&&(c.support.checkClone||!ua.test(a[0]))){e=
true;if(j=c.fragments[a[0]])if(j!==1)f=j}if(!f){f=b.createDocumentFragment();c.clean(a,b,f,d)}if(e)c.fragments[a[0]]=j?f:1;return{fragment:f,cacheable:e}}function K(a,b){var d={};c.each(va.concat.apply([],va.slice(0,b)),function(){d[this]=a});return d}function wa(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},Ra=A.jQuery,Sa=A.$,s=A.document,T,Ta=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/,
Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&&
(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this,
a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b===
"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,
function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||
c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded",
L,false);A.addEventListener("load",c.ready,false)}else if(s.attachEvent){s.attachEvent("onreadystatechange",L);A.attachEvent("onload",c.ready);var a=false;try{a=A.frameElement==null}catch(b){}s.documentElement.doScroll&&a&&ma()}}},isFunction:function(a){return $.call(a)==="[object Function]"},isArray:function(a){return $.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||$.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!aa.call(a,"constructor")&&!aa.call(a.constructor.prototype,
"isPrototypeOf"))return false;var b;for(b in a);return b===w||aa.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return A.JSON&&A.JSON.parse?A.JSON.parse(a):(new Function("return "+
a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],
d)===false)break}else for(;e<j;){if(b.apply(a[e++],d)===false)break}else if(i)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];e<j&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(Wa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?ba.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,f=b.length;d<f;d++)if(b[d]===
a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,i=a.length;j<i;j++){e=b(a[j],j,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=w}else if(b&&
!c.isFunction(b)){d=b;b=w}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});P=c.uaMatch(P);if(P.browser){c.browser[P.browser]=true;c.browser.version=P.version}if(c.browser.webkit)c.browser.safari=
true;if(ya)c.inArray=function(a,b){return ya.call(b,a)};T=c(s);if(s.addEventListener)L=function(){s.removeEventListener("DOMContentLoaded",L,false);c.ready()};else if(s.attachEvent)L=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",L);c.ready()}};(function(){c.support={};var a=s.documentElement,b=s.createElement("script"),d=s.createElement("div"),f="script"+J();d.style.display="none";d.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected,
parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent=
false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n=
s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true,
applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando];
else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,
a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===
w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i,
cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1)if(e.className){for(var j=" "+e.className+" ",
i=e.className,o=0,k=b.length;o<k;o++)if(j.indexOf(" "+b[o]+" ")<0)i+=" "+b[o];e.className=c.trim(i)}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(k){var n=c(this);n.removeClass(a.call(this,k,n.attr("class")))});if(a&&typeof a==="string"||a===w)for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(var j=(" "+e.className+" ").replace(Aa," "),i=0,o=b.length;i<o;i++)j=j.replace(" "+b[i]+" ",
" ");e.className=c.trim(j)}else e.className=""}return this},toggleClass:function(a,b){var d=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(e){var j=c(this);j.toggleClass(a.call(this,e,j.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var e,j=0,i=c(this),o=b,k=a.split(ca);e=k[j++];){o=f?o:!i.hasClass(e);i[o?"addClass":"removeClass"](e)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=
this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(Aa," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j<d;j++){var i=
e[j];if(i.selected){a=c(i).val();if(b)return a;f.push(a)}}return f}if(Ba.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Za,"")}return w}var o=c.isFunction(a);return this.each(function(k){var n=c(this),r=a;if(this.nodeType===1){if(o)r=a.call(this,k,n.val());if(typeof r==="number")r+="";if(c.isArray(r)&&Ba.test(this.type))this.checked=c.inArray(n.val(),r)>=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected=
c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");
a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g,
function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split(".");
k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a),
C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B<r.length;B++){u=r[B];if(d.guid===u.guid){if(i||k.test(u.namespace)){f==null&&r.splice(B--,1);n.remove&&n.remove.call(a,u)}if(f!=
null)break}}if(r.length===0||f!=null&&r.length===1){if(!n.teardown||n.teardown.call(a,o)===false)Ca(a,e,z.handle);delete C[e]}}else for(var B=0;B<r.length;B++){u=r[B];if(i||k.test(u.namespace)){c.event.remove(a,n,u.handler,B);r.splice(B--,1)}}}if(c.isEmptyObject(C)){if(b=z.handle)b.elem=null;delete z.events;delete z.handle;c.isEmptyObject(z)&&c.removeData(a)}}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[G]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=
e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&&
f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;
if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e<j;e++){var i=d[e];if(b||f.test(i.namespace)){a.handler=i.handler;a.data=i.data;a.handleObj=i;i=i.handler.apply(this,arguments);if(i!==w){a.result=i;if(i===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.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(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||s;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=s.documentElement;d=s.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==w)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,a.origType,c.extend({},a,{handler:oa}))},remove:function(a){var b=true,d=a.origType.replace(O,"");c.each(c.data(this,
"events").live||[],function(){if(d===this.origType.replace(O,""))return b=false});b&&c.event.remove(this,a.origType,oa)}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var Ca=s.removeEventListener?function(a,b,d){a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=
a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,
isImmediatePropagationStopped:Y};var Da=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},Ea=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ea:Da,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ea:Da)}}});if(!c.support.submitBubbles)c.event.special.submit=
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return na("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)return na("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};
if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Fa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",
e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,
"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a,
d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j<o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&
!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var f=this.length;d<f;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,f){return this.live(b,d,f,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},
toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ga={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,j){var i,o=0,k,n,r=j||this.selector,
u=j?this:c(this.context);if(c.isFunction(f)){e=f;f=w}for(d=(d||"").split(" ");(i=d[o++])!=null;){j=O.exec(i);k="";if(j){k=j[0];i=i.replace(O,"")}if(i==="hover")d.push("mouseenter"+k,"mouseleave"+k);else{n=i;if(i==="focus"||i==="blur"){d.push(Ga[i]+k);i+=k}else i=(Ga[i]||i)+k;b==="live"?u.each(function(){c.event.add(this,pa(i,r),{data:f,selector:r,handler:e,origType:i,origHandler:e,preType:n})}):u.unbind(pa(i,r),e)}}return this}});c.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(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});A.attachEvent&&!A.addEventListener&&A.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(g){for(var h="",l,m=0;g[m];m++){l=g[m];if(l.nodeType===3||l.nodeType===4)h+=l.nodeValue;else if(l.nodeType!==8)h+=a(l.childNodes)}return h}function b(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];
if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1&&!p){t.sizcache=l;t.sizset=q}if(t.nodeName.toLowerCase()===h){y=t;break}t=t[g]}m[q]=y}}}function d(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1){if(!p){t.sizcache=l;t.sizset=q}if(typeof h!=="string"){if(t===h){y=true;break}}else if(k.filter(h,[t]).length>0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift();
t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D||
g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h<g.length;h++)g[h]===g[h-1]&&g.splice(h--,1)}return g};k.matches=function(g,h){return k(g,null,null,h)};k.find=function(g,h,l){var m,q;if(!g)return[];
for(var p=0,v=n.order.length;p<v;p++){var t=n.order[p];if(q=n.leftMatch[t].exec(g)){var y=q[1];q.splice(1,1);if(y.substr(y.length-1)!=="\\"){q[1]=(q[1]||"").replace(/\\/g,"");m=n.find[t](q,h,l);if(m!=null){g=g.replace(n.match[t],"");break}}}}m||(m=h.getElementsByTagName("*"));return{set:m,expr:g}};k.filter=function(g,h,l,m){for(var q=g,p=[],v=h,t,y,S=h&&h[0]&&x(h[0]);g&&h.length;){for(var H in n.filter)if((t=n.leftMatch[H].exec(g))!=null&&t[2]){var M=n.filter[H],I,D;D=t[1];y=false;t.splice(1,1);if(D.substr(D.length-
1)!=="\\"){if(v===p)p=[];if(n.preFilter[H])if(t=n.preFilter[H](t,v,l,p,m,S)){if(t===true)continue}else y=I=true;if(t)for(var U=0;(D=v[U])!=null;U++)if(D){I=M(D,t,U,v);var Ha=m^!!I;if(l&&I!=null)if(Ha)y=true;else v[U]=false;else if(Ha){p.push(D);y=true}}if(I!==w){l||(v=p);g=g.replace(n.match[H],"");if(!y)return[];break}}}if(g===q)if(y==null)k.error(g);else break;q=g}return v};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var n=k.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(g){return g.getAttribute("href")}},
relative:{"+":function(g,h){var l=typeof h==="string",m=l&&!/\W/.test(h);l=l&&!m;if(m)h=h.toLowerCase();m=0;for(var q=g.length,p;m<q;m++)if(p=g[m]){for(;(p=p.previousSibling)&&p.nodeType!==1;);g[m]=l||p&&p.nodeName.toLowerCase()===h?p||false:p===h}l&&k.filter(h,g,true)},">":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m<q;m++){var p=g[m];if(p){l=p.parentNode;g[m]=l.nodeName.toLowerCase()===h?l:false}}}else{m=0;for(q=g.length;m<q;m++)if(p=g[m])g[m]=
l?p.parentNode:p.parentNode===h;l&&k.filter(h,g,true)}},"":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("parentNode",h,m,g,p,l)},"~":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("previousSibling",h,m,g,p,l)}},find:{ID:function(g,h,l){if(typeof h.getElementById!=="undefined"&&!l)return(g=h.getElementById(g[1]))?[g]:[]},NAME:function(g,h){if(typeof h.getElementsByName!=="undefined"){var l=[];
h=h.getElementsByName(g[1]);for(var m=0,q=h.length;m<q;m++)h[m].getAttribute("name")===g[1]&&l.push(h[m]);return l.length===0?null:l}},TAG:function(g,h){return h.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,h,l,m,q,p){g=" "+g[1].replace(/\\/g,"")+" ";if(p)return g;p=0;for(var v;(v=h[p])!=null;p++)if(v)if(q^(v.className&&(" "+v.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},
CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m,
g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},
text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},
setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return h<l[3]-0},gt:function(g,h,l){return h>l[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=
h[3];l=0;for(m=h.length;l<m;l++)if(h[l]===g)return false;return true}else k.error("Syntax error, unrecognized expression: "+q)},CHILD:function(g,h){var l=h[1],m=g;switch(l){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(l==="first")return true;m=g;case "last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case "nth":l=h[2];var q=h[3];if(l===1&&q===0)return true;h=h[0];var p=g.parentNode;if(p&&(p.sizcache!==h||!g.nodeIndex)){var v=0;for(m=p.firstChild;m;m=
m.nextSibling)if(m.nodeType===1)m.nodeIndex=++v;p.sizcache=h}g=g.nodeIndex-q;return l===0?g===0:g%l===0&&g/l>=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m===
"="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g,
h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l<m;l++)h.push(g[l]);else for(l=0;g[l];l++)h.push(g[l]);return h}}var B;if(s.documentElement.compareDocumentPosition)B=function(g,h){if(!g.compareDocumentPosition||
!h.compareDocumentPosition){if(g==h)i=true;return g.compareDocumentPosition?-1:1}g=g.compareDocumentPosition(h)&4?-1:g===h?0:1;if(g===0)i=true;return g};else if("sourceIndex"in s.documentElement)B=function(g,h){if(!g.sourceIndex||!h.sourceIndex){if(g==h)i=true;return g.sourceIndex?-1:1}g=g.sourceIndex-h.sourceIndex;if(g===0)i=true;return g};else if(s.createRange)B=function(g,h){if(!g.ownerDocument||!h.ownerDocument){if(g==h)i=true;return g.ownerDocument?-1:1}var l=g.ownerDocument.createRange(),m=
h.ownerDocument.createRange();l.setStart(g,0);l.setEnd(g,0);m.setStart(h,0);m.setEnd(h,0);g=l.compareBoundaryPoints(Range.START_TO_END,m);if(g===0)i=true;return g};(function(){var g=s.createElement("div"),h="script"+(new Date).getTime();g.innerHTML="<a name='"+h+"'/>";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&&
q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML="<a href='#'></a>";
if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="<p class='TEST'></p>";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}();
(function(){var g=s.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}:
function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q<p;q++)k(g,h[q],l);return k.filter(m,l)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=a;c.isXMLDoc=x;c.contains=E})();var eb=/Until$/,fb=/^(?:parents|prevUntil|prevAll)/,
gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length;
c.find(a,this[f],b);if(f>0)for(var j=d;j<b.length;j++)for(var i=0;i<d;i++)if(b[i]===b[j]){b.splice(j--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ia(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ia(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j=
{},i;if(f&&a.length){e=0;for(var o=a.length;e<o;e++){i=a[e];j[i]||(j[i]=c.expr.match.POS.test(i)?c(i,b||this.context):i)}for(;f&&f.ownerDocument&&f!==b;){for(i in j){e=j[i];if(e.jquery?e.index(f)>-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a===
"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",
d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?
a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType===
1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/<tbody/i,jb=/<|&#?\w+;/,ta=/<script|<object|<embed|<option|<style/i,ua=/checked\s*(?:[^=]|=\s*.checked.)/i,Ma=function(a,b,d){return hb.test(d)?
a:b+"></"+d+">"},F={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,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=
c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},
wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},
prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja,
""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(f){this.empty().append(a)}}else c.isFunction(a)?this.each(function(e){var j=c(this),i=j.html();j.empty().append(function(){return a.call(this,e,i)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&
this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),f=d.html();d.replaceWith(a.call(this,b,f))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){function f(u){return c.nodeName(u,"table")?u.getElementsByTagName("tbody")[0]||
u.appendChild(u.ownerDocument.createElement("tbody")):u}var e,j,i=a[0],o=[],k;if(!c.support.checkClone&&arguments.length===3&&typeof i==="string"&&ua.test(i))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(i))return this.each(function(u){var z=c(this);a[0]=i.call(this,u,b?z.html():w);z.domManip(a,b,d)});if(this[0]){e=i&&i.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:sa(a,this,o);k=e.fragment;if(j=k.childNodes.length===
1?(k=k.firstChild):k.firstChild){b=b&&c.nodeName(j,"tr");for(var n=0,r=this.length;n<r;n++)d.call(b?f(this[n],j):this[n],n>0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]);
return this}else{e=0;for(var j=d.length;e<j;e++){var i=(e>0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["",
""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]==="<table>"&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e=
c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]?
c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja=
function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter=
Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a,
"border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f=
a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=
a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=/<script(.|\s)*?\/script>/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!==
"string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("<div />").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this},
serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),
function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,
global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},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(a){function b(){e.success&&
e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)?
"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache===
false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B=
false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since",
c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E||
d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x);
g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===
1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b===
"json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional;
if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");
this[a].style.display=d||"";if(c.css(this[a],"display")==="none"){d=this[a].nodeName;var f;if(la[d])f=la[d];else{var e=c("<"+d+" />").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=c.data(this[a],"olddisplay")||"";return this}},hide:function(a,b){if(a||a===0)return this.animate(K("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");!d&&d!=="none"&&c.data(this[a],
"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(K("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},
animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var j=c.extend({},e),i,o=this.nodeType===1&&c(this).is(":hidden"),k=this;for(i in a){var n=i.replace(ia,ja);if(i!==n){a[n]=a[i];delete a[i];i=n}if(a[i]==="hide"&&o||a[i]==="show"&&!o)return j.complete.call(this);if((i==="height"||i==="width")&&this.style){j.display=c.css(this,"display");j.overflow=this.style.overflow}if(c.isArray(a[i])){(j.specialEasing=
j.specialEasing||{})[i]=a[i][1];a[i]=a[i][0]}}if(j.overflow!=null)this.style.overflow="hidden";j.curAnim=c.extend({},a);c.each(a,function(r,u){var z=new c.fx(k,j,r);if(Ab.test(u))z[u==="toggle"?o?"show":"hide":u](a);else{var C=Bb.exec(u),B=z.cur(true)||0;if(C){u=parseFloat(C[2]);var E=C[3]||"px";if(E!=="px"){k.style[r]=(u||1)+E;B=(u||1)/z.cur(true)*B;k.style[r]=B+E}if(C[1])u=(C[1]==="-="?-1:1)*u+B;z.custom(B,u,E)}else z.custom(B,u,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);
this.each(function(){for(var f=d.length-1;f>=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration===
"number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||
c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;
this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=
this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem,
e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||
c.fx.stop()},stop:function(){clearInterval(W);W=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset="getBoundingClientRect"in s.documentElement?
function(a){var b=this[0];if(a)return this.each(function(e){c.offset.setOffset(this,a,e)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d=b.getBoundingClientRect(),f=b.ownerDocument;b=f.body;f=f.documentElement;return{top:d.top+(self.pageYOffset||c.support.boxModel&&f.scrollTop||b.scrollTop)-(f.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||c.support.boxModel&&f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)}}:function(a){var b=
this[0];if(a)return this.each(function(r){c.offset.setOffset(this,a,r)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,f=b,e=b.ownerDocument,j,i=e.documentElement,o=e.body;f=(e=e.defaultView)?e.getComputedStyle(b,null):b.currentStyle;for(var k=b.offsetTop,n=b.offsetLeft;(b=b.parentNode)&&b!==o&&b!==i;){if(c.offset.supportsFixedPosition&&f.position==="fixed")break;j=e?e.getComputedStyle(b,null):b.currentStyle;
k-=b.scrollTop;n-=b.scrollLeft;if(b===d){k+=b.offsetTop;n+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=d;d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&j.overflow!=="visible"){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=j}if(f.position==="relative"||f.position==="static"){k+=o.offsetTop;n+=o.offsetLeft}if(c.offset.supportsFixedPosition&&
f.position==="fixed"){k+=Math.max(i.scrollTop,o.scrollTop);n+=Math.max(i.scrollLeft,o.scrollLeft)}return{top:k,left:n}};c.offset={initialize:function(){var a=s.body,b=s.createElement("div"),d,f,e,j=parseFloat(c.curCSS(a,"marginTop",true))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<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.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b);
c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,
d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-
f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset":
"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in
e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window);
|
src/views/layouts/RightSidebar.js
|
bugra9/adminjs
|
import React, { Component } from 'react';
import { Sidebar, Segment, Button, Menu, Icon, Header, Form } from 'semantic-ui-react';
class RightSidebar extends Component {
constructor(props) {
super(props);
this.state = {visible: false};
}
handleItemClick = () => this.setState({ visible: !this.state.visible })
render() {
const { visible } = this.state;
return (
<Sidebar animation="overlay" visible={visible} direction="right">
<Menu style={{"borderRadius": 0}} color="violet" inverted>
<Menu.Item name="backRightMenu" onClick={this.handleItemClick}>
<Icon name="left arrow" />
Geri
</Menu.Item>
<Menu.Item position="right">
<Button color="green">Kaydet</Button>
</Menu.Item>
</Menu>
<Segment basic>
<Form>
<Header as="h4" dividing>Kategori Ekle</Header>
<Form.Field>
<label>Başlık</label>
<input name="name" placeholder="First Name" />
</Form.Field>
</Form>
</Segment>
</Sidebar>
);
}
}
export default RightSidebar;
|
src/helpers/__tests__/makeRouteHooksSafe-test.js
|
ThatCheck/ReactProjectRaspberrySchool
|
import { expect } from 'chai';
import React from 'react';
import { IndexRoute, Route } from 'react-router';
import makeRouteHooksSafe from '../makeRouteHooksSafe';
describe('makeRouteHooksSafe', () => {
it('should work with JSX routes', () => {
const onEnter = () => {
throw new Error('Shouldn\'t call onEnter');
};
const getRoutes = makeRouteHooksSafe(() => {
return (
<Route path="/" >
<IndexRoute onEnter={onEnter} />
<Route path="1" />
<Route onEnter={onEnter}>
<Route path="2" />
<Route path="3" onEnter={onEnter}/>
</Route>
</Route>
);
});
const routes = getRoutes(null);
expect(routes[0].indexRoute.onEnter).to.not.throw(Error);
expect(routes[0].childRoutes[1].onEnter).to.not.throw(Error);
expect(routes[0].childRoutes[1].childRoutes[1].onEnter).to.not.throw(Error);
});
it('should work with JS routes', () => {
const onEnter = () => {
throw new Error('Shouldn\'t call onEnter');
};
const getRoutes = makeRouteHooksSafe(() => {
return {
path: '/',
indexRoute: {
onEnter: onEnter
},
onEnter: onEnter,
childRoutes: [
{path: '1'},
{
onEnter: onEnter,
childRoutes: [
{path: '2'},
{path: '3'}
],
}
]
};
});
const routes = getRoutes(null);
expect(routes[0].indexRoute.onEnter).to.not.throw(Error);
expect(routes[0].onEnter).to.not.throw(Error);
expect(routes[0].childRoutes[1].onEnter).to.not.throw(Error);
});
it('should call onEnter if store is initialised', (done) => {
const store = {
getState: () => {}
};
const getRoutes = makeRouteHooksSafe(() => {
return {
onEnter: () => {
done();
}
};
});
const routes = getRoutes(store);
routes[0].onEnter();
});
it('should call callback', (done) => {
const getRoutes = makeRouteHooksSafe(() => {
return {
onEnter: (nextState, replaceState, cb) => {} // eslint-disable-line no-unused-vars
};
});
const routes = getRoutes(null);
routes[0].onEnter(null, null, done);
});
it('should not call callback', () => {
const callback = () => {
throw new Error('Should not be called');
};
const getRoutes = makeRouteHooksSafe(() => {
return {
onEnter: (nextState, replaceState) => {} // eslint-disable-line no-unused-vars
};
});
const routes = getRoutes(null);
routes[0].onEnter(null, null, callback);
});
});
|
packages/material-ui-icons/src/ViewColumnSharp.js
|
kybarg/material-ui
|
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V5h-5z" />
, 'ViewColumnSharp');
|
v8/development/node_modules/eslint-config-airbnb/test/test-react-order.js
|
BigBoss424/portfolio
|
import test from 'tape';
import { CLIEngine } from 'eslint';
import eslintrc from '..';
import reactRules from '../rules/react';
import reactA11yRules from '../rules/react-a11y';
const cli = new CLIEngine({
useEslintrc: false,
baseConfig: eslintrc,
rules: {
// It is okay to import devDependencies in tests.
'import/no-extraneous-dependencies': [2, { devDependencies: true }],
// this doesn't matter for tests
'lines-between-class-members': 0,
},
});
function lint(text) {
// @see https://eslint.org/docs/developer-guide/nodejs-api.html#executeonfiles
// @see https://eslint.org/docs/developer-guide/nodejs-api.html#executeontext
const linter = cli.executeOnText(text);
return linter.results[0];
}
function wrapComponent(body) {
return `
import React from 'react';
export default class MyComponent extends React.Component {
/* eslint no-empty-function: 0, class-methods-use-this: 0 */
${body}
}
`;
}
test('validate react prop order', (t) => {
t.test('make sure our eslintrc has React and JSX linting dependencies', (t) => {
t.plan(2);
t.deepEqual(reactRules.plugins, ['react']);
t.deepEqual(reactA11yRules.plugins, ['jsx-a11y', 'react']);
});
t.test('passes a good component', (t) => {
t.plan(3);
const result = lint(wrapComponent(`
componentWillMount() {}
componentDidMount() {}
setFoo() {}
getFoo() {}
setBar() {}
someMethod() {}
renderDogs() {}
render() { return <div />; }`));
t.notOk(result.warningCount, 'no warnings');
t.notOk(result.errorCount, 'no errors');
t.deepEquals(result.messages, [], 'no messages in results');
});
t.test('order: when random method is first', (t) => {
t.plan(2);
const result = lint(wrapComponent(`
someMethod() {}
componentWillMount() {}
componentDidMount() {}
setFoo() {}
getFoo() {}
setBar() {}
renderDogs() {}
render() { return <div />; }
`));
t.ok(result.errorCount, 'fails');
t.equal(result.messages[0].ruleId, 'react/sort-comp', 'fails due to sort');
});
t.test('order: when random method after lifecycle methods', (t) => {
t.plan(2);
const result = lint(wrapComponent(`
componentWillMount() {}
componentDidMount() {}
someMethod() {}
setFoo() {}
getFoo() {}
setBar() {}
renderDogs() {}
render() { return <div />; }
`));
t.ok(result.errorCount, 'fails');
t.equal(result.messages[0].ruleId, 'react/sort-comp', 'fails due to sort');
});
});
|
lib/yui-3.7.3.js
|
devildeveloper/canjs
|
/**
* @documentjs-ignore
*/
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
/**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for the library.
* @module yui
* @main yui
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The YUI global namespace object. If YUI is already defined, the
existing YUI object will not be overwritten so that defined
namespaces are preserved. It is the constructor for the object
the end user interacts with. As indicated below, each instance
has full custom event support, but only if the event system
is available. This is a self-instantiable factory function. You
can invoke it directly like this:
YUI().use('*', function(Y) {
// ready
});
But it also works like this:
var Y = YUI();
Configuring the YUI object:
YUI({
debug: true,
combine: false
}).use('node', function(Y) {
//Node is ready to use
});
See the API docs for the <a href="config.html">Config</a> class
for the complete list of supported configuration properties accepted
by the YUI constuctor.
@class YUI
@constructor
@global
@uses EventTarget
@param [o]* {Object} 0..n optional configuration objects. these values
are store in Y.config. See <a href="config.html">Config</a> for the list of supported
properties.
*/
/*global YUI*/
/*global YUI_config*/
var YUI = function() {
var i = 0,
Y = this,
args = arguments,
l = args.length,
instanceOf = function(o, type) {
return (o && o.hasOwnProperty && (o instanceof type));
},
gconf = (typeof YUI_config !== 'undefined') && YUI_config;
if (!(instanceOf(Y, YUI))) {
Y = new YUI();
} else {
// set up the core environment
Y._init();
/**
YUI.GlobalConfig is a master configuration that might span
multiple contexts in a non-browser environment. It is applied
first to all instances in all contexts.
@property GlobalConfig
@type {Object}
@global
@static
@example
YUI.GlobalConfig = {
filter: 'debug'
};
YUI().use('node', function(Y) {
//debug files used here
});
YUI({
filter: 'min'
}).use('node', function(Y) {
//min files used here
});
*/
if (YUI.GlobalConfig) {
Y.applyConfig(YUI.GlobalConfig);
}
/**
YUI_config is a page-level config. It is applied to all
instances created on the page. This is applied after
YUI.GlobalConfig, and before the instance level configuration
objects.
@global
@property YUI_config
@type {Object}
@example
//Single global var to include before YUI seed file
YUI_config = {
filter: 'debug'
};
YUI().use('node', function(Y) {
//debug files used here
});
YUI({
filter: 'min'
}).use('node', function(Y) {
//min files used here
});
*/
if (gconf) {
Y.applyConfig(gconf);
}
// bind the specified additional modules for this instance
if (!l) {
Y._setup();
}
}
if (l) {
// Each instance can accept one or more configuration objects.
// These are applied after YUI.GlobalConfig and YUI_Config,
// overriding values set in those config files if there is a '
// matching property.
for (; i < l; i++) {
Y.applyConfig(args[i]);
}
Y._setup();
}
Y.instanceOf = instanceOf;
return Y;
};
(function() {
var proto, prop,
VERSION = '3.7.3',
PERIOD = '.',
BASE = 'http://yui.yahooapis.com/',
/*
These CSS class names can't be generated by
getClassName since it is not available at the
time they are being used.
*/
DOC_LABEL = 'yui3-js-enabled',
CSS_STAMP_EL = 'yui3-css-stamp',
NOOP = function() {},
SLICE = Array.prototype.slice,
APPLY_TO_AUTH = { 'io.xdrReady': 1, // the functions applyTo
'io.xdrResponse': 1, // can call. this should
'SWF.eventHandler': 1 }, // be done at build time
hasWin = (typeof window != 'undefined'),
win = (hasWin) ? window : null,
doc = (hasWin) ? win.document : null,
docEl = doc && doc.documentElement,
docClass = docEl && docEl.className,
instances = {},
time = new Date().getTime(),
add = function(el, type, fn, capture) {
if (el && el.addEventListener) {
el.addEventListener(type, fn, capture);
} else if (el && el.attachEvent) {
el.attachEvent('on' + type, fn);
}
},
remove = function(el, type, fn, capture) {
if (el && el.removeEventListener) {
// this can throw an uncaught exception in FF
try {
el.removeEventListener(type, fn, capture);
} catch (ex) {}
} else if (el && el.detachEvent) {
el.detachEvent('on' + type, fn);
}
},
handleLoad = function() {
YUI.Env.windowLoaded = true;
YUI.Env.DOMReady = true;
if (hasWin) {
remove(window, 'load', handleLoad);
}
},
getLoader = function(Y, o) {
var loader = Y.Env._loader,
lCore = [ 'loader-base' ],
G_ENV = YUI.Env,
mods = G_ENV.mods;
if (loader) {
//loader._config(Y.config);
loader.ignoreRegistered = false;
loader.onEnd = null;
loader.data = null;
loader.required = [];
loader.loadType = null;
} else {
loader = new Y.Loader(Y.config);
Y.Env._loader = loader;
}
if (mods && mods.loader) {
lCore = [].concat(lCore, YUI.Env.loaderExtras);
}
YUI.Env.core = Y.Array.dedupe([].concat(YUI.Env.core, lCore));
return loader;
},
clobber = function(r, s) {
for (var i in s) {
if (s.hasOwnProperty(i)) {
r[i] = s[i];
}
}
},
ALREADY_DONE = { success: true };
// Stamp the documentElement (HTML) with a class of "yui-loaded" to
// enable styles that need to key off of JS being enabled.
if (docEl && docClass.indexOf(DOC_LABEL) == -1) {
if (docClass) {
docClass += ' ';
}
docClass += DOC_LABEL;
docEl.className = docClass;
}
if (VERSION.indexOf('@') > -1) {
VERSION = '3.5.0'; // dev time hack for cdn test
}
proto = {
/**
* Applies a new configuration object to the YUI instance config.
* This will merge new group/module definitions, and will also
* update the loader cache if necessary. Updating Y.config directly
* will not update the cache.
* @method applyConfig
* @param {Object} o the configuration object.
* @since 3.2.0
*/
applyConfig: function(o) {
o = o || NOOP;
var attr,
name,
// detail,
config = this.config,
mods = config.modules,
groups = config.groups,
aliases = config.aliases,
loader = this.Env._loader;
for (name in o) {
if (o.hasOwnProperty(name)) {
attr = o[name];
if (mods && name == 'modules') {
clobber(mods, attr);
} else if (aliases && name == 'aliases') {
clobber(aliases, attr);
} else if (groups && name == 'groups') {
clobber(groups, attr);
} else if (name == 'win') {
config[name] = (attr && attr.contentWindow) || attr;
config.doc = config[name] ? config[name].document : null;
} else if (name == '_yuid') {
// preserve the guid
} else {
config[name] = attr;
}
}
}
if (loader) {
loader._config(o);
}
},
/**
* Old way to apply a config to the instance (calls `applyConfig` under the hood)
* @private
* @method _config
* @param {Object} o The config to apply
*/
_config: function(o) {
this.applyConfig(o);
},
/**
* Initialize this YUI instance
* @private
* @method _init
*/
_init: function() {
var filter, el,
Y = this,
G_ENV = YUI.Env,
Env = Y.Env,
prop;
/**
* The version number of the YUI instance.
* @property version
* @type string
*/
Y.version = VERSION;
if (!Env) {
Y.Env = {
core: ['get', 'features', 'intl-base', 'yui-log', 'yui-later'],
loaderExtras: ['loader-rollup', 'loader-yui3'],
mods: {}, // flat module map
versions: {}, // version module map
base: BASE,
cdn: BASE + VERSION + '/build/',
// bootstrapped: false,
_idx: 0,
_used: {},
_attached: {},
_missed: [],
_yidx: 0,
_uidx: 0,
_guidp: 'y',
_loaded: {},
// serviced: {},
// Regex in English:
// I'll start at the \b(simpleyui).
// 1. Look in the test string for "simpleyui" or "yui" or
// "yui-base" or "yui-davglass" or "yui-foobar" that comes after a word break. That is, it
// can't match "foyui" or "i_heart_simpleyui". This can be anywhere in the string.
// 2. After #1 must come a forward slash followed by the string matched in #1, so
// "yui-base/yui-base" or "simpleyui/simpleyui" or "yui-pants/yui-pants".
// 3. The second occurence of the #1 token can optionally be followed by "-debug" or "-min",
// so "yui/yui-min", "yui/yui-debug", "yui-base/yui-base-debug". NOT "yui/yui-tshirt".
// 4. This is followed by ".js", so "yui/yui.js", "simpleyui/simpleyui-min.js"
// 0. Going back to the beginning, now. If all that stuff in 1-4 comes after a "?" in the string,
// then capture the junk between the LAST "&" and the string in 1-4. So
// "blah?foo/yui/yui.js" will capture "foo/" and "blah?some/thing.js&3.3.0/build/yui-davglass/yui-davglass.js"
// will capture "3.3.0/build/"
//
// Regex Exploded:
// (?:\? Find a ?
// (?:[^&]*&) followed by 0..n characters followed by an &
// * in fact, find as many sets of characters followed by a & as you can
// ([^&]*) capture the stuff after the last & in \1
// )? but it's ok if all this ?junk&more_junk stuff isn't even there
// \b(simpleyui| after a word break find either the string "simpleyui" or
// yui(?:-\w+)? the string "yui" optionally followed by a -, then more characters
// ) and store the simpleyui or yui-* string in \2
// \/\2 then comes a / followed by the simpleyui or yui-* string in \2
// (?:-(min|debug))? optionally followed by "-min" or "-debug"
// .js and ending in ".js"
_BASE_RE: /(?:\?(?:[^&]*&)*([^&]*))?\b(simpleyui|yui(?:-\w+)?)\/\2(?:-(min|debug))?\.js/,
parseBasePath: function(src, pattern) {
var match = src.match(pattern),
path, filter;
if (match) {
path = RegExp.leftContext || src.slice(0, src.indexOf(match[0]));
// this is to set up the path to the loader. The file
// filter for loader should match the yui include.
filter = match[3];
// extract correct path for mixed combo urls
// http://yuilibrary.com/projects/yui3/ticket/2528423
if (match[1]) {
path += '?' + match[1];
}
path = {
filter: filter,
path: path
};
}
return path;
},
getBase: G_ENV && G_ENV.getBase ||
function(pattern) {
var nodes = (doc && doc.getElementsByTagName('script')) || [],
path = Env.cdn, parsed,
i, len, src;
for (i = 0, len = nodes.length; i < len; ++i) {
src = nodes[i].src;
if (src) {
parsed = Y.Env.parseBasePath(src, pattern);
if (parsed) {
filter = parsed.filter;
path = parsed.path;
break;
}
}
}
// use CDN default
return path;
}
};
Env = Y.Env;
Env._loaded[VERSION] = {};
if (G_ENV && Y !== YUI) {
Env._yidx = ++G_ENV._yidx;
Env._guidp = ('yui_' + VERSION + '_' +
Env._yidx + '_' + time).replace(/\./g, '_').replace(/-/g, '_');
} else if (YUI._YUI) {
G_ENV = YUI._YUI.Env;
Env._yidx += G_ENV._yidx;
Env._uidx += G_ENV._uidx;
for (prop in G_ENV) {
if (!(prop in Env)) {
Env[prop] = G_ENV[prop];
}
}
delete YUI._YUI;
}
Y.id = Y.stamp(Y);
instances[Y.id] = Y;
}
Y.constructor = YUI;
// configuration defaults
Y.config = Y.config || {
bootstrap: true,
cacheUse: true,
debug: true,
doc: doc,
fetchCSS: true,
throwFail: true,
useBrowserConsole: true,
useNativeES5: true,
win: win
};
//Register the CSS stamp element
if (doc && !doc.getElementById(CSS_STAMP_EL)) {
el = doc.createElement('div');
el.innerHTML = '<div id="' + CSS_STAMP_EL + '" style="position: absolute !important; visibility: hidden !important"></div>';
YUI.Env.cssStampEl = el.firstChild;
if (doc.body) {
doc.body.appendChild(YUI.Env.cssStampEl);
} else {
docEl.insertBefore(YUI.Env.cssStampEl, docEl.firstChild);
}
}
Y.config.lang = Y.config.lang || 'en-US';
Y.config.base = YUI.config.base || Y.Env.getBase(Y.Env._BASE_RE);
if (!filter || (!('mindebug').indexOf(filter))) {
filter = 'min';
}
filter = (filter) ? '-' + filter : filter;
Y.config.loaderPath = YUI.config.loaderPath || 'loader/loader' + filter + '.js';
},
/**
* Finishes the instance setup. Attaches whatever modules were defined
* when the yui modules was registered.
* @method _setup
* @private
*/
_setup: function(o) {
var i, Y = this,
core = [],
mods = YUI.Env.mods,
extras = Y.config.core || [].concat(YUI.Env.core); //Clone it..
for (i = 0; i < extras.length; i++) {
if (mods[extras[i]]) {
core.push(extras[i]);
}
}
Y._attach(['yui-base']);
Y._attach(core);
if (Y.Loader) {
getLoader(Y);
}
},
/**
* Executes a method on a YUI instance with
* the specified id if the specified method is whitelisted.
* @method applyTo
* @param id {String} the YUI instance id.
* @param method {String} the name of the method to exectute.
* Ex: 'Object.keys'.
* @param args {Array} the arguments to apply to the method.
* @return {Object} the return value from the applied method or null.
*/
applyTo: function(id, method, args) {
if (!(method in APPLY_TO_AUTH)) {
this.log(method + ': applyTo not allowed', 'warn', 'yui');
return null;
}
var instance = instances[id], nest, m, i;
if (instance) {
nest = method.split('.');
m = instance;
for (i = 0; i < nest.length; i = i + 1) {
m = m[nest[i]];
if (!m) {
this.log('applyTo not found: ' + method, 'warn', 'yui');
}
}
return m && m.apply(instance, args);
}
return null;
},
/**
Registers a module with the YUI global. The easiest way to create a
first-class YUI module is to use the YUI component
build tool <a href="http://yui.github.com/shifter/">Shifter</a>.
The build system will produce the `YUI.add` wrapper for your module, along
with any configuration info required for the module.
@method add
@param name {String} module name.
@param fn {Function} entry point into the module that is used to bind module to the YUI instance.
@param {YUI} fn.Y The YUI instance this module is executed in.
@param {String} fn.name The name of the module
@param version {String} version string.
@param details {Object} optional config data:
@param details.requires {Array} features that must be present before this module can be attached.
@param details.optional {Array} optional features that should be present if loadOptional
is defined. Note: modules are not often loaded this way in YUI 3,
but this field is still useful to inform the user that certain
features in the component will require additional dependencies.
@param details.use {Array} features that are included within this module which need to
be attached automatically when this module is attached. This
supports the YUI 3 rollup system -- a module with submodules
defined will need to have the submodules listed in the 'use'
config. The YUI component build tool does this for you.
@return {YUI} the YUI instance.
@example
YUI.add('davglass', function(Y, name) {
Y.davglass = function() {
alert('Dav was here!');
};
}, '3.4.0', { requires: ['yui-base', 'harley-davidson', 'mt-dew'] });
*/
add: function(name, fn, version, details) {
details = details || {};
var env = YUI.Env,
mod = {
name: name,
fn: fn,
version: version,
details: details
},
//Instance hash so we don't apply it to the same instance twice
applied = {},
loader, inst,
i, versions = env.versions;
env.mods[name] = mod;
versions[version] = versions[version] || {};
versions[version][name] = mod;
for (i in instances) {
if (instances.hasOwnProperty(i)) {
inst = instances[i];
if (!applied[inst.id]) {
applied[inst.id] = true;
loader = inst.Env._loader;
if (loader) {
if (!loader.moduleInfo[name] || loader.moduleInfo[name].temp) {
loader.addModule(details, name);
}
}
}
}
}
return this;
},
/**
* Executes the function associated with each required
* module, binding the module to the YUI instance.
* @param {Array} r The array of modules to attach
* @param {Boolean} [moot=false] Don't throw a warning if the module is not attached
* @method _attach
* @private
*/
_attach: function(r, moot) {
var i, name, mod, details, req, use, after,
mods = YUI.Env.mods,
aliases = YUI.Env.aliases,
Y = this, j,
cache = YUI.Env._renderedMods,
loader = Y.Env._loader,
done = Y.Env._attached,
len = r.length, loader, def, go,
c = [];
//Check for conditional modules (in a second+ instance) and add their requirements
//TODO I hate this entire method, it needs to be fixed ASAP (3.5.0) ^davglass
for (i = 0; i < len; i++) {
name = r[i];
mod = mods[name];
c.push(name);
if (loader && loader.conditions[name]) {
for (j in loader.conditions[name]) {
if (loader.conditions[name].hasOwnProperty(j)) {
def = loader.conditions[name][j];
go = def && ((def.ua && Y.UA[def.ua]) || (def.test && def.test(Y)));
if (go) {
c.push(def.name);
}
}
}
}
}
r = c;
len = r.length;
for (i = 0; i < len; i++) {
if (!done[r[i]]) {
name = r[i];
mod = mods[name];
if (aliases && aliases[name] && !mod) {
Y._attach(aliases[name]);
continue;
}
if (!mod) {
if (loader && loader.moduleInfo[name]) {
mod = loader.moduleInfo[name];
moot = true;
}
//if (!loader || !loader.moduleInfo[name]) {
//if ((!loader || !loader.moduleInfo[name]) && !moot) {
if (!moot && name) {
if ((name.indexOf('skin-') === -1) && (name.indexOf('css') === -1)) {
Y.Env._missed.push(name);
Y.Env._missed = Y.Array.dedupe(Y.Env._missed);
Y.message('NOT loaded: ' + name, 'warn', 'yui');
}
}
} else {
done[name] = true;
//Don't like this, but in case a mod was asked for once, then we fetch it
//We need to remove it from the missed list ^davglass
for (j = 0; j < Y.Env._missed.length; j++) {
if (Y.Env._missed[j] === name) {
Y.message('Found: ' + name + ' (was reported as missing earlier)', 'warn', 'yui');
Y.Env._missed.splice(j, 1);
}
}
/*
If it's a temp module, we need to redo it's requirements if it's already loaded
since it may have been loaded by another instance and it's dependencies might
have been redefined inside the fetched file.
*/
if (loader && cache && cache[name] && cache[name].temp) {
loader.getRequires(cache[name]);
req = [];
for (j in loader.moduleInfo[name].expanded_map) {
if (loader.moduleInfo[name].expanded_map.hasOwnProperty(j)) {
req.push(j);
}
}
Y._attach(req);
}
details = mod.details;
req = details.requires;
use = details.use;
after = details.after;
//Force Intl load if there is a language (Loader logic) @todo fix this shit
if (details.lang) {
req = req || [];
req.unshift('intl');
}
if (req) {
for (j = 0; j < req.length; j++) {
if (!done[req[j]]) {
if (!Y._attach(req)) {
return false;
}
break;
}
}
}
if (after) {
for (j = 0; j < after.length; j++) {
if (!done[after[j]]) {
if (!Y._attach(after, true)) {
return false;
}
break;
}
}
}
if (mod.fn) {
if (Y.config.throwFail) {
mod.fn(Y, name);
} else {
try {
mod.fn(Y, name);
} catch (e) {
Y.error('Attach error: ' + name, e, name);
return false;
}
}
}
if (use) {
for (j = 0; j < use.length; j++) {
if (!done[use[j]]) {
if (!Y._attach(use)) {
return false;
}
break;
}
}
}
}
}
}
return true;
},
/**
* Delays the `use` callback until another event has taken place. Like: window.onload, domready, contentready, available.
* @private
* @method _delayCallback
* @param {Callback} cb The original `use` callback
* @param {String|Object} until Either an event (load, domready) or an Object containing event/args keys for contentready/available
*/
_delayCallback: function(cb, until) {
var Y = this,
mod = ['event-base'];
until = (Y.Lang.isObject(until) ? until : { event: until });
if (until.event === 'load') {
mod.push('event-synthetic');
}
return function() {
var args = arguments;
Y._use(mod, function() {
Y.on(until.event, function() {
args[1].delayUntil = until.event;
cb.apply(Y, args);
}, until.args);
});
};
},
/**
* Attaches one or more modules to the YUI instance. When this
* is executed, the requirements are analyzed, and one of
* several things can happen:
*
* * All requirements are available on the page -- The modules
* are attached to the instance. If supplied, the use callback
* is executed synchronously.
*
* * Modules are missing, the Get utility is not available OR
* the 'bootstrap' config is false -- A warning is issued about
* the missing modules and all available modules are attached.
*
* * Modules are missing, the Loader is not available but the Get
* utility is and boostrap is not false -- The loader is bootstrapped
* before doing the following....
*
* * Modules are missing and the Loader is available -- The loader
* expands the dependency tree and fetches missing modules. When
* the loader is finshed the callback supplied to use is executed
* asynchronously.
*
* @method use
* @param modules* {String|Array} 1-n modules to bind (uses arguments array).
* @param [callback] {Function} callback function executed when
* the instance has the required functionality. If included, it
* must be the last parameter.
* @param callback.Y {YUI} The `YUI` instance created for this sandbox
* @param callback.status {Object} Object containing `success`, `msg` and `data` properties
*
* @example
* // loads and attaches dd and its dependencies
* YUI().use('dd', function(Y) {});
*
* // loads and attaches dd and node as well as all of their dependencies (since 3.4.0)
* YUI().use(['dd', 'node'], function(Y) {});
*
* // attaches all modules that are available on the page
* YUI().use('*', function(Y) {});
*
* // intrinsic YUI gallery support (since 3.1.0)
* YUI().use('gallery-yql', function(Y) {});
*
* // intrinsic YUI 2in3 support (since 3.1.0)
* YUI().use('yui2-datatable', function(Y) {});
*
* @return {YUI} the YUI instance.
*/
use: function() {
var args = SLICE.call(arguments, 0),
callback = args[args.length - 1],
Y = this,
i = 0,
a = [],
name,
Env = Y.Env,
provisioned = true;
// The last argument supplied to use can be a load complete callback
if (Y.Lang.isFunction(callback)) {
args.pop();
if (Y.config.delayUntil) {
callback = Y._delayCallback(callback, Y.config.delayUntil);
}
} else {
callback = null;
}
if (Y.Lang.isArray(args[0])) {
args = args[0];
}
if (Y.config.cacheUse) {
while ((name = args[i++])) {
if (!Env._attached[name]) {
provisioned = false;
break;
}
}
if (provisioned) {
if (args.length) {
}
Y._notify(callback, ALREADY_DONE, args);
return Y;
}
}
if (Y._loading) {
Y._useQueue = Y._useQueue || new Y.Queue();
Y._useQueue.add([args, callback]);
} else {
Y._use(args, function(Y, response) {
Y._notify(callback, response, args);
});
}
return Y;
},
/**
* Notify handler from Loader for attachment/load errors
* @method _notify
* @param callback {Function} The callback to pass to the `Y.config.loadErrorFn`
* @param response {Object} The response returned from Loader
* @param args {Array} The aruments passed from Loader
* @private
*/
_notify: function(callback, response, args) {
if (!response.success && this.config.loadErrorFn) {
this.config.loadErrorFn.call(this, this, callback, response, args);
} else if (callback) {
if (this.Env._missed && this.Env._missed.length) {
response.msg = 'Missing modules: ' + this.Env._missed.join();
response.success = false;
}
if (this.config.throwFail) {
callback(this, response);
} else {
try {
callback(this, response);
} catch (e) {
this.error('use callback error', e, args);
}
}
}
},
/**
* This private method is called from the `use` method queue. To ensure that only one set of loading
* logic is performed at a time.
* @method _use
* @private
* @param args* {String} 1-n modules to bind (uses arguments array).
* @param *callback {Function} callback function executed when
* the instance has the required functionality. If included, it
* must be the last parameter.
*/
_use: function(args, callback) {
if (!this.Array) {
this._attach(['yui-base']);
}
var len, loader, handleBoot, handleRLS,
Y = this,
G_ENV = YUI.Env,
mods = G_ENV.mods,
Env = Y.Env,
used = Env._used,
aliases = G_ENV.aliases,
queue = G_ENV._loaderQueue,
firstArg = args[0],
YArray = Y.Array,
config = Y.config,
boot = config.bootstrap,
missing = [],
i,
r = [],
ret = true,
fetchCSS = config.fetchCSS,
process = function(names, skip) {
var i = 0, a = [], name, len, m, req, use;
if (!names.length) {
return;
}
if (aliases) {
len = names.length;
for (i = 0; i < len; i++) {
if (aliases[names[i]] && !mods[names[i]]) {
a = [].concat(a, aliases[names[i]]);
} else {
a.push(names[i]);
}
}
names = a;
}
len = names.length;
for (i = 0; i < len; i++) {
name = names[i];
if (!skip) {
r.push(name);
}
// only attach a module once
if (used[name]) {
continue;
}
m = mods[name];
req = null;
use = null;
if (m) {
used[name] = true;
req = m.details.requires;
use = m.details.use;
} else {
// CSS files don't register themselves, see if it has
// been loaded
if (!G_ENV._loaded[VERSION][name]) {
missing.push(name);
} else {
used[name] = true; // probably css
}
}
// make sure requirements are attached
if (req && req.length) {
process(req);
}
// make sure we grab the submodule dependencies too
if (use && use.length) {
process(use, 1);
}
}
},
handleLoader = function(fromLoader) {
var response = fromLoader || {
success: true,
msg: 'not dynamic'
},
redo, origMissing,
ret = true,
data = response.data;
Y._loading = false;
if (data) {
origMissing = missing;
missing = [];
r = [];
process(data);
redo = missing.length;
if (redo) {
if ([].concat(missing).sort().join() ==
origMissing.sort().join()) {
redo = false;
}
}
}
if (redo && data) {
Y._loading = true;
Y._use(missing, function() {
if (Y._attach(data)) {
Y._notify(callback, response, data);
}
});
} else {
if (data) {
ret = Y._attach(data);
}
if (ret) {
Y._notify(callback, response, args);
}
}
if (Y._useQueue && Y._useQueue.size() && !Y._loading) {
Y._use.apply(Y, Y._useQueue.next());
}
};
// YUI().use('*'); // bind everything available
if (firstArg === '*') {
args = [];
for (i in mods) {
if (mods.hasOwnProperty(i)) {
args.push(i);
}
}
ret = Y._attach(args);
if (ret) {
handleLoader();
}
return Y;
}
if ((mods.loader || mods['loader-base']) && !Y.Loader) {
Y._attach(['loader' + ((!mods.loader) ? '-base' : '')]);
}
// use loader to expand dependencies and sort the
// requirements if it is available.
if (boot && Y.Loader && args.length) {
loader = getLoader(Y);
loader.require(args);
loader.ignoreRegistered = true;
loader._boot = true;
loader.calculate(null, (fetchCSS) ? null : 'js');
args = loader.sorted;
loader._boot = false;
}
process(args);
len = missing.length;
if (len) {
missing = YArray.dedupe(missing);
len = missing.length;
}
// dynamic load
if (boot && len && Y.Loader) {
Y._loading = true;
loader = getLoader(Y);
loader.onEnd = handleLoader;
loader.context = Y;
loader.data = args;
loader.ignoreRegistered = false;
loader.require(args);
loader.insert(null, (fetchCSS) ? null : 'js');
} else if (boot && len && Y.Get && !Env.bootstrapped) {
Y._loading = true;
handleBoot = function() {
Y._loading = false;
queue.running = false;
Env.bootstrapped = true;
G_ENV._bootstrapping = false;
if (Y._attach(['loader'])) {
Y._use(args, callback);
}
};
if (G_ENV._bootstrapping) {
queue.add(handleBoot);
} else {
G_ENV._bootstrapping = true;
Y.Get.script(config.base + config.loaderPath, {
onEnd: handleBoot
});
}
} else {
ret = Y._attach(args);
if (ret) {
handleLoader();
}
}
return Y;
},
/**
Adds a namespace object onto the YUI global if called statically.
// creates YUI.your.namespace.here as nested objects
YUI.namespace("your.namespace.here");
If called as a method on a YUI <em>instance</em>, it creates the
namespace on the instance.
// creates Y.property.package
Y.namespace("property.package");
Dots in the input string cause `namespace` to create nested objects for
each token. If any part of the requested namespace already exists, the
current object will be left in place. This allows multiple calls to
`namespace` to preserve existing namespaced properties.
If the first token in the namespace string is "YAHOO", the token is
discarded.
Be careful with namespace tokens. Reserved words may work in some browsers
and not others. For instance, the following will fail in some browsers
because the supported version of JavaScript reserves the word "long":
Y.namespace("really.long.nested.namespace");
<em>Note: If you pass multiple arguments to create multiple namespaces, only
the last one created is returned from this function.</em>
@method namespace
@param {String} namespace* namespaces to create.
@return {Object} A reference to the last namespace object created.
**/
namespace: function() {
var a = arguments, o, i = 0, j, d, arg;
for (; i < a.length; i++) {
o = this; //Reset base object per argument or it will get reused from the last
arg = a[i];
if (arg.indexOf(PERIOD) > -1) { //Skip this if no "." is present
d = arg.split(PERIOD);
for (j = (d[0] == 'YAHOO') ? 1 : 0; j < d.length; j++) {
o[d[j]] = o[d[j]] || {};
o = o[d[j]];
}
} else {
o[arg] = o[arg] || {};
o = o[arg]; //Reset base object to the new object so it's returned
}
}
return o;
},
// this is replaced if the log module is included
log: NOOP,
message: NOOP,
// this is replaced if the dump module is included
dump: function (o) { return ''+o; },
/**
* Report an error. The reporting mechanism is controlled by
* the `throwFail` configuration attribute. If throwFail is
* not specified, the message is written to the Logger, otherwise
* a JS error is thrown. If an `errorFn` is specified in the config
* it must return `true` to keep the error from being thrown.
* @method error
* @param msg {String} the error message.
* @param e {Error|String} Optional JS error that was caught, or an error string.
* @param src Optional additional info (passed to `Y.config.errorFn` and `Y.message`)
* and `throwFail` is specified, this error will be re-thrown.
* @return {YUI} this YUI instance.
*/
error: function(msg, e, src) {
//TODO Add check for window.onerror here
var Y = this, ret;
if (Y.config.errorFn) {
ret = Y.config.errorFn.apply(Y, arguments);
}
if (!ret) {
throw (e || new Error(msg));
} else {
Y.message(msg, 'error', ''+src); // don't scrub this one
}
return Y;
},
/**
* Generate an id that is unique among all YUI instances
* @method guid
* @param pre {String} optional guid prefix.
* @return {String} the guid.
*/
guid: function(pre) {
var id = this.Env._guidp + '_' + (++this.Env._uidx);
return (pre) ? (pre + id) : id;
},
/**
* Returns a `guid` associated with an object. If the object
* does not have one, a new one is created unless `readOnly`
* is specified.
* @method stamp
* @param o {Object} The object to stamp.
* @param readOnly {Boolean} if `true`, a valid guid will only
* be returned if the object has one assigned to it.
* @return {String} The object's guid or null.
*/
stamp: function(o, readOnly) {
var uid;
if (!o) {
return o;
}
// IE generates its own unique ID for dom nodes
// The uniqueID property of a document node returns a new ID
if (o.uniqueID && o.nodeType && o.nodeType !== 9) {
uid = o.uniqueID;
} else {
uid = (typeof o === 'string') ? o : o._yuid;
}
if (!uid) {
uid = this.guid();
if (!readOnly) {
try {
o._yuid = uid;
} catch (e) {
uid = null;
}
}
}
return uid;
},
/**
* Destroys the YUI instance
* @method destroy
* @since 3.3.0
*/
destroy: function() {
var Y = this;
if (Y.Event) {
Y.Event._unload();
}
delete instances[Y.id];
delete Y.Env;
delete Y.config;
}
/**
* instanceof check for objects that works around
* memory leak in IE when the item tested is
* window/document
* @method instanceOf
* @param o {Object} The object to check.
* @param type {Object} The class to check against.
* @since 3.3.0
*/
};
YUI.prototype = proto;
// inheritance utilities are not available yet
for (prop in proto) {
if (proto.hasOwnProperty(prop)) {
YUI[prop] = proto[prop];
}
}
/**
Static method on the Global YUI object to apply a config to all YUI instances.
It's main use case is "mashups" where several third party scripts are trying to write to
a global YUI config at the same time. This way they can all call `YUI.applyConfig({})` instead of
overwriting other scripts configs.
@static
@since 3.5.0
@method applyConfig
@param {Object} o the configuration object.
@example
YUI.applyConfig({
modules: {
davglass: {
fullpath: './davglass.js'
}
}
});
YUI.applyConfig({
modules: {
foo: {
fullpath: './foo.js'
}
}
});
YUI().use('davglass', function(Y) {
//Module davglass will be available here..
});
*/
YUI.applyConfig = function(o) {
if (!o) {
return;
}
//If there is a GlobalConfig, apply it first to set the defaults
if (YUI.GlobalConfig) {
this.prototype.applyConfig.call(this, YUI.GlobalConfig);
}
//Apply this config to it
this.prototype.applyConfig.call(this, o);
//Reset GlobalConfig to the combined config
YUI.GlobalConfig = this.config;
};
// set up the environment
YUI._init();
if (hasWin) {
// add a window load event at load time so we can capture
// the case where it fires before dynamic loading is
// complete.
add(window, 'load', handleLoad);
} else {
handleLoad();
}
YUI.Env.add = add;
YUI.Env.remove = remove;
/*global exports*/
// Support the CommonJS method for exporting our single global
if (typeof exports == 'object') {
exports.YUI = YUI;
}
}());
/**
* The config object contains all of the configuration options for
* the `YUI` instance. This object is supplied by the implementer
* when instantiating a `YUI` instance. Some properties have default
* values if they are not supplied by the implementer. This should
* not be updated directly because some values are cached. Use
* `applyConfig()` to update the config object on a YUI instance that
* has already been configured.
*
* @class config
* @static
*/
/**
* Allows the YUI seed file to fetch the loader component and library
* metadata to dynamically load additional dependencies.
*
* @property bootstrap
* @type boolean
* @default true
*/
/**
* Turns on writing Ylog messages to the browser console.
*
* @property debug
* @type boolean
* @default true
*/
/**
* Log to the browser console if debug is on and the browser has a
* supported console.
*
* @property useBrowserConsole
* @type boolean
* @default true
*/
/**
* A hash of log sources that should be logged. If specified, only
* log messages from these sources will be logged.
*
* @property logInclude
* @type object
*/
/**
* A hash of log sources that should be not be logged. If specified,
* all sources are logged if not on this list.
*
* @property logExclude
* @type object
*/
/**
* Set to true if the yui seed file was dynamically loaded in
* order to bootstrap components relying on the window load event
* and the `domready` custom event.
*
* @property injected
* @type boolean
* @default false
*/
/**
* If `throwFail` is set, `Y.error` will generate or re-throw a JS Error.
* Otherwise the failure is logged.
*
* @property throwFail
* @type boolean
* @default true
*/
/**
* The window/frame that this instance should operate in.
*
* @property win
* @type Window
* @default the window hosting YUI
*/
/**
* The document associated with the 'win' configuration.
*
* @property doc
* @type Document
* @default the document hosting YUI
*/
/**
* A list of modules that defines the YUI core (overrides the default list).
*
* @property core
* @type Array
* @default [ get,features,intl-base,yui-log,yui-later,loader-base, loader-rollup, loader-yui3 ]
*/
/**
* A list of languages in order of preference. This list is matched against
* the list of available languages in modules that the YUI instance uses to
* determine the best possible localization of language sensitive modules.
* Languages are represented using BCP 47 language tags, such as "en-GB" for
* English as used in the United Kingdom, or "zh-Hans-CN" for simplified
* Chinese as used in China. The list can be provided as a comma-separated
* list or as an array.
*
* @property lang
* @type string|string[]
*/
/**
* The default date format
* @property dateFormat
* @type string
* @deprecated use configuration in `DataType.Date.format()` instead.
*/
/**
* The default locale
* @property locale
* @type string
* @deprecated use `config.lang` instead.
*/
/**
* The default interval when polling in milliseconds.
* @property pollInterval
* @type int
* @default 20
*/
/**
* The number of dynamic nodes to insert by default before
* automatically removing them. This applies to script nodes
* because removing the node will not make the evaluated script
* unavailable. Dynamic CSS is not auto purged, because removing
* a linked style sheet will also remove the style definitions.
* @property purgethreshold
* @type int
* @default 20
*/
/**
* The default interval when polling in milliseconds.
* @property windowResizeDelay
* @type int
* @default 40
*/
/**
* Base directory for dynamic loading
* @property base
* @type string
*/
/*
* The secure base dir (not implemented)
* For dynamic loading.
* @property secureBase
* @type string
*/
/**
* The YUI combo service base dir. Ex: `http://yui.yahooapis.com/combo?`
* For dynamic loading.
* @property comboBase
* @type string
*/
/**
* The root path to prepend to module path for the combo service.
* Ex: 3.0.0b1/build/
* For dynamic loading.
* @property root
* @type string
*/
/**
* A filter to apply to result urls. This filter will modify the default
* path for all modules. The default path for the YUI library is the
* minified version of the files (e.g., event-min.js). The filter property
* can be a predefined filter or a custom filter. The valid predefined
* filters are:
* <dl>
* <dt>DEBUG</dt>
* <dd>Selects the debug versions of the library (e.g., event-debug.js).
* This option will automatically include the Logger widget</dd>
* <dt>RAW</dt>
* <dd>Selects the non-minified version of the library (e.g., event.js).</dd>
* </dl>
* You can also define a custom filter, which must be an object literal
* containing a search expression and a replace string:
*
* myFilter: {
* 'searchExp': "-min\\.js",
* 'replaceStr': "-debug.js"
* }
*
* For dynamic loading.
*
* @property filter
* @type string|object
*/
/**
* The `skin` config let's you configure application level skin
* customizations. It contains the following attributes which
* can be specified to override the defaults:
*
* // The default skin, which is automatically applied if not
* // overriden by a component-specific skin definition.
* // Change this in to apply a different skin globally
* defaultSkin: 'sam',
*
* // This is combined with the loader base property to get
* // the default root directory for a skin.
* base: 'assets/skins/',
*
* // Any component-specific overrides can be specified here,
* // making it possible to load different skins for different
* // components. It is possible to load more than one skin
* // for a given component as well.
* overrides: {
* slider: ['capsule', 'round']
* }
*
* For dynamic loading.
*
* @property skin
*/
/**
* Hash of per-component filter specification. If specified for a given
* component, this overrides the filter config.
*
* For dynamic loading.
*
* @property filters
*/
/**
* Use the YUI combo service to reduce the number of http connections
* required to load your dependencies. Turning this off will
* disable combo handling for YUI and all module groups configured
* with a combo service.
*
* For dynamic loading.
*
* @property combine
* @type boolean
* @default true if 'base' is not supplied, false if it is.
*/
/**
* A list of modules that should never be dynamically loaded
*
* @property ignore
* @type string[]
*/
/**
* A list of modules that should always be loaded when required, even if already
* present on the page.
*
* @property force
* @type string[]
*/
/**
* Node or id for a node that should be used as the insertion point for new
* nodes. For dynamic loading.
*
* @property insertBefore
* @type string
*/
/**
* Object literal containing attributes to add to dynamically loaded script
* nodes.
* @property jsAttributes
* @type string
*/
/**
* Object literal containing attributes to add to dynamically loaded link
* nodes.
* @property cssAttributes
* @type string
*/
/**
* Number of milliseconds before a timeout occurs when dynamically
* loading nodes. If not set, there is no timeout.
* @property timeout
* @type int
*/
/**
* Callback for the 'CSSComplete' event. When dynamically loading YUI
* components with CSS, this property fires when the CSS is finished
* loading but script loading is still ongoing. This provides an
* opportunity to enhance the presentation of a loading page a little
* bit before the entire loading process is done.
*
* @property onCSS
* @type function
*/
/**
* A hash of module definitions to add to the list of YUI components.
* These components can then be dynamically loaded side by side with
* YUI via the `use()` method. This is a hash, the key is the module
* name, and the value is an object literal specifying the metdata
* for the module. See `Loader.addModule` for the supported module
* metadata fields. Also see groups, which provides a way to
* configure the base and combo spec for a set of modules.
*
* modules: {
* mymod1: {
* requires: ['node'],
* fullpath: '/mymod1/mymod1.js'
* },
* mymod2: {
* requires: ['mymod1'],
* fullpath: '/mymod2/mymod2.js'
* },
* mymod3: '/js/mymod3.js',
* mycssmod: '/css/mycssmod.css'
* }
*
*
* @property modules
* @type object
*/
/**
* Aliases are dynamic groups of modules that can be used as
* shortcuts.
*
* YUI({
* aliases: {
* davglass: [ 'node', 'yql', 'dd' ],
* mine: [ 'davglass', 'autocomplete']
* }
* }).use('mine', function(Y) {
* //Node, YQL, DD & AutoComplete available here..
* });
*
* @property aliases
* @type object
*/
/**
* A hash of module group definitions. It for each group you
* can specify a list of modules and the base path and
* combo spec to use when dynamically loading the modules.
*
* groups: {
* yui2: {
* // specify whether or not this group has a combo service
* combine: true,
*
* // The comboSeperator to use with this group's combo handler
* comboSep: ';',
*
* // The maxURLLength for this server
* maxURLLength: 500,
*
* // the base path for non-combo paths
* base: 'http://yui.yahooapis.com/2.8.0r4/build/',
*
* // the path to the combo service
* comboBase: 'http://yui.yahooapis.com/combo?',
*
* // a fragment to prepend to the path attribute when
* // when building combo urls
* root: '2.8.0r4/build/',
*
* // the module definitions
* modules: {
* yui2_yde: {
* path: "yahoo-dom-event/yahoo-dom-event.js"
* },
* yui2_anim: {
* path: "animation/animation.js",
* requires: ['yui2_yde']
* }
* }
* }
* }
*
* @property groups
* @type object
*/
/**
* The loader 'path' attribute to the loader itself. This is combined
* with the 'base' attribute to dynamically load the loader component
* when boostrapping with the get utility alone.
*
* @property loaderPath
* @type string
* @default loader/loader-min.js
*/
/**
* Specifies whether or not YUI().use(...) will attempt to load CSS
* resources at all. Any truthy value will cause CSS dependencies
* to load when fetching script. The special value 'force' will
* cause CSS dependencies to be loaded even if no script is needed.
*
* @property fetchCSS
* @type boolean|string
* @default true
*/
/**
* The default gallery version to build gallery module urls
* @property gallery
* @type string
* @since 3.1.0
*/
/**
* The default YUI 2 version to build yui2 module urls. This is for
* intrinsic YUI 2 support via the 2in3 project. Also see the '2in3'
* config for pulling different revisions of the wrapped YUI 2
* modules.
* @since 3.1.0
* @property yui2
* @type string
* @default 2.9.0
*/
/**
* The 2in3 project is a deployment of the various versions of YUI 2
* deployed as first-class YUI 3 modules. Eventually, the wrapper
* for the modules will change (but the underlying YUI 2 code will
* be the same), and you can select a particular version of
* the wrapper modules via this config.
* @since 3.1.0
* @property 2in3
* @type string
* @default 4
*/
/**
* Alternative console log function for use in environments without
* a supported native console. The function is executed in the
* YUI instance context.
* @since 3.1.0
* @property logFn
* @type Function
*/
/**
* A callback to execute when Y.error is called. It receives the
* error message and an javascript error object if Y.error was
* executed because a javascript error was caught. The function
* is executed in the YUI instance context. Returning `true` from this
* function will stop the Error from being thrown.
*
* @since 3.2.0
* @property errorFn
* @type Function
*/
/**
* A callback to execute when the loader fails to load one or
* more resource. This could be because of a script load
* failure. It can also fail if a javascript module fails
* to register itself, but only when the 'requireRegistration'
* is true. If this function is defined, the use() callback will
* only be called when the loader succeeds, otherwise it always
* executes unless there was a javascript error when attaching
* a module.
*
* @since 3.3.0
* @property loadErrorFn
* @type Function
*/
/**
* When set to true, the YUI loader will expect that all modules
* it is responsible for loading will be first-class YUI modules
* that register themselves with the YUI global. If this is
* set to true, loader will fail if the module registration fails
* to happen after the script is loaded.
*
* @since 3.3.0
* @property requireRegistration
* @type boolean
* @default false
*/
/**
* Cache serviced use() requests.
* @since 3.3.0
* @property cacheUse
* @type boolean
* @default true
* @deprecated no longer used
*/
/**
* Whether or not YUI should use native ES5 functionality when available for
* features like `Y.Array.each()`, `Y.Object()`, etc. When `false`, YUI will
* always use its own fallback implementations instead of relying on ES5
* functionality, even when it's available.
*
* @property useNativeES5
* @type Boolean
* @default true
* @since 3.5.0
*/
/**
Delay the `use` callback until a specific event has passed (`load`, `domready`, `contentready` or `available`)
@property delayUntil
@type String|Object
@since 3.6.0
@example
You can use `load` or `domready` strings by default:
YUI({
delayUntil: 'domready'
}, function(Y) {
//This will not fire until 'domeready'
});
Or you can delay until a node is available (with `available` or `contentready`):
YUI({
delayUntil: {
event: 'available',
args: '#foo'
}
}, function(Y) {
//This will not fire until '#foo' is
// available in the DOM
});
*/
YUI.add('yui-base', function (Y, NAME) {
/*
* YUI stub
* @module yui
* @submodule yui-base
*/
/**
* The YUI module contains the components required for building the YUI
* seed file. This includes the script loading mechanism, a simple queue,
* and the core utilities for the library.
* @module yui
* @submodule yui-base
*/
/**
* Provides core language utilites and extensions used throughout YUI.
*
* @class Lang
* @static
*/
var L = Y.Lang || (Y.Lang = {}),
STRING_PROTO = String.prototype,
TOSTRING = Object.prototype.toString,
TYPES = {
'undefined' : 'undefined',
'number' : 'number',
'boolean' : 'boolean',
'string' : 'string',
'[object Function]': 'function',
'[object RegExp]' : 'regexp',
'[object Array]' : 'array',
'[object Date]' : 'date',
'[object Error]' : 'error'
},
SUBREGEX = /\{\s*([^|}]+?)\s*(?:\|([^}]*))?\s*\}/g,
TRIMREGEX = /^\s+|\s+$/g,
NATIVE_FN_REGEX = /\{\s*\[(?:native code|function)\]\s*\}/i;
// -- Protected Methods --------------------------------------------------------
/**
Returns `true` if the given function appears to be implemented in native code,
`false` otherwise. Will always return `false` -- even in ES5-capable browsers --
if the `useNativeES5` YUI config option is set to `false`.
This isn't guaranteed to be 100% accurate and won't work for anything other than
functions, but it can be useful for determining whether a function like
`Array.prototype.forEach` is native or a JS shim provided by another library.
There's a great article by @kangax discussing certain flaws with this technique:
<http://perfectionkills.com/detecting-built-in-host-methods/>
While his points are valid, it's still possible to benefit from this function
as long as it's used carefully and sparingly, and in such a way that false
negatives have minimal consequences. It's used internally to avoid using
potentially broken non-native ES5 shims that have been added to the page by
other libraries.
@method _isNative
@param {Function} fn Function to test.
@return {Boolean} `true` if _fn_ appears to be native, `false` otherwise.
@static
@protected
@since 3.5.0
**/
L._isNative = function (fn) {
return !!(Y.config.useNativeES5 && fn && NATIVE_FN_REGEX.test(fn));
};
// -- Public Methods -----------------------------------------------------------
/**
* Determines whether or not the provided item is an array.
*
* Returns `false` for array-like collections such as the function `arguments`
* collection or `HTMLElement` collections. Use `Y.Array.test()` if you want to
* test for an array-like collection.
*
* @method isArray
* @param o The object to test.
* @return {boolean} true if o is an array.
* @static
*/
L.isArray = L._isNative(Array.isArray) ? Array.isArray : function (o) {
return L.type(o) === 'array';
};
/**
* Determines whether or not the provided item is a boolean.
* @method isBoolean
* @static
* @param o The object to test.
* @return {boolean} true if o is a boolean.
*/
L.isBoolean = function(o) {
return typeof o === 'boolean';
};
/**
* Determines whether or not the supplied item is a date instance.
* @method isDate
* @static
* @param o The object to test.
* @return {boolean} true if o is a date.
*/
L.isDate = function(o) {
return L.type(o) === 'date' && o.toString() !== 'Invalid Date' && !isNaN(o);
};
/**
* <p>
* Determines whether or not the provided item is a function.
* Note: Internet Explorer thinks certain functions are objects:
* </p>
*
* <pre>
* var obj = document.createElement("object");
* Y.Lang.isFunction(obj.getAttribute) // reports false in IE
*
* var input = document.createElement("input"); // append to body
* Y.Lang.isFunction(input.focus) // reports false in IE
* </pre>
*
* <p>
* You will have to implement additional tests if these functions
* matter to you.
* </p>
*
* @method isFunction
* @static
* @param o The object to test.
* @return {boolean} true if o is a function.
*/
L.isFunction = function(o) {
return L.type(o) === 'function';
};
/**
* Determines whether or not the provided item is null.
* @method isNull
* @static
* @param o The object to test.
* @return {boolean} true if o is null.
*/
L.isNull = function(o) {
return o === null;
};
/**
* Determines whether or not the provided item is a legal number.
* @method isNumber
* @static
* @param o The object to test.
* @return {boolean} true if o is a number.
*/
L.isNumber = function(o) {
return typeof o === 'number' && isFinite(o);
};
/**
* Determines whether or not the provided item is of type object
* or function. Note that arrays are also objects, so
* <code>Y.Lang.isObject([]) === true</code>.
* @method isObject
* @static
* @param o The object to test.
* @param failfn {boolean} fail if the input is a function.
* @return {boolean} true if o is an object.
* @see isPlainObject
*/
L.isObject = function(o, failfn) {
var t = typeof o;
return (o && (t === 'object' ||
(!failfn && (t === 'function' || L.isFunction(o))))) || false;
};
/**
* Determines whether or not the provided item is a string.
* @method isString
* @static
* @param o The object to test.
* @return {boolean} true if o is a string.
*/
L.isString = function(o) {
return typeof o === 'string';
};
/**
* Determines whether or not the provided item is undefined.
* @method isUndefined
* @static
* @param o The object to test.
* @return {boolean} true if o is undefined.
*/
L.isUndefined = function(o) {
return typeof o === 'undefined';
};
/**
* A convenience method for detecting a legitimate non-null value.
* Returns false for null/undefined/NaN, true for other values,
* including 0/false/''
* @method isValue
* @static
* @param o The item to test.
* @return {boolean} true if it is not null/undefined/NaN || false.
*/
L.isValue = function(o) {
var t = L.type(o);
switch (t) {
case 'number':
return isFinite(o);
case 'null': // fallthru
case 'undefined':
return false;
default:
return !!t;
}
};
/**
* Returns the current time in milliseconds.
*
* @method now
* @return {Number} Current time in milliseconds.
* @static
* @since 3.3.0
*/
L.now = Date.now || function () {
return new Date().getTime();
};
/**
* Lightweight version of <code>Y.substitute</code>. Uses the same template
* structure as <code>Y.substitute</code>, but doesn't support recursion,
* auto-object coersion, or formats.
* @method sub
* @param {string} s String to be modified.
* @param {object} o Object containing replacement values.
* @return {string} the substitute result.
* @static
* @since 3.2.0
*/
L.sub = function(s, o) {
return s.replace ? s.replace(SUBREGEX, function (match, key) {
return L.isUndefined(o[key]) ? match : o[key];
}) : s;
};
/**
* Returns a string without any leading or trailing whitespace. If
* the input is not a string, the input will be returned untouched.
* @method trim
* @static
* @param s {string} the string to trim.
* @return {string} the trimmed string.
*/
L.trim = STRING_PROTO.trim ? function(s) {
return s && s.trim ? s.trim() : s;
} : function (s) {
try {
return s.replace(TRIMREGEX, '');
} catch (e) {
return s;
}
};
/**
* Returns a string without any leading whitespace.
* @method trimLeft
* @static
* @param s {string} the string to trim.
* @return {string} the trimmed string.
*/
L.trimLeft = STRING_PROTO.trimLeft ? function (s) {
return s.trimLeft();
} : function (s) {
return s.replace(/^\s+/, '');
};
/**
* Returns a string without any trailing whitespace.
* @method trimRight
* @static
* @param s {string} the string to trim.
* @return {string} the trimmed string.
*/
L.trimRight = STRING_PROTO.trimRight ? function (s) {
return s.trimRight();
} : function (s) {
return s.replace(/\s+$/, '');
};
/**
Returns one of the following strings, representing the type of the item passed
in:
* "array"
* "boolean"
* "date"
* "error"
* "function"
* "null"
* "number"
* "object"
* "regexp"
* "string"
* "undefined"
Known issues:
* `typeof HTMLElementCollection` returns function in Safari, but
`Y.Lang.type()` reports "object", which could be a good thing --
but it actually caused the logic in <code>Y.Lang.isObject</code> to fail.
@method type
@param o the item to test.
@return {string} the detected type.
@static
**/
L.type = function(o) {
return TYPES[typeof o] || TYPES[TOSTRING.call(o)] || (o ? 'object' : 'null');
};
/**
@module yui
@submodule yui-base
*/
var Lang = Y.Lang,
Native = Array.prototype,
hasOwn = Object.prototype.hasOwnProperty;
/**
Provides utility methods for working with arrays. Additional array helpers can
be found in the `collection` and `array-extras` modules.
`Y.Array(thing)` returns a native array created from _thing_. Depending on
_thing_'s type, one of the following will happen:
* Arrays are returned unmodified unless a non-zero _startIndex_ is
specified.
* Array-like collections (see `Array.test()`) are converted to arrays.
* For everything else, a new array is created with _thing_ as the sole
item.
Note: elements that are also collections, such as `<form>` and `<select>`
elements, are not automatically converted to arrays. To force a conversion,
pass `true` as the value of the _force_ parameter.
@class Array
@constructor
@param {Any} thing The thing to arrayify.
@param {Number} [startIndex=0] If non-zero and _thing_ is an array or array-like
collection, a subset of items starting at the specified index will be
returned.
@param {Boolean} [force=false] If `true`, _thing_ will be treated as an
array-like collection no matter what.
@return {Array} A native array created from _thing_, according to the rules
described above.
**/
function YArray(thing, startIndex, force) {
var len, result;
startIndex || (startIndex = 0);
if (force || YArray.test(thing)) {
// IE throws when trying to slice HTMLElement collections.
try {
return Native.slice.call(thing, startIndex);
} catch (ex) {
result = [];
for (len = thing.length; startIndex < len; ++startIndex) {
result.push(thing[startIndex]);
}
return result;
}
}
return [thing];
}
Y.Array = YArray;
/**
Dedupes an array of strings, returning an array that's guaranteed to contain
only one copy of a given string.
This method differs from `Array.unique()` in that it's optimized for use only
with strings, whereas `unique` may be used with other types (but is slower).
Using `dedupe()` with non-string values may result in unexpected behavior.
@method dedupe
@param {String[]} array Array of strings to dedupe.
@return {Array} Deduped copy of _array_.
@static
@since 3.4.0
**/
YArray.dedupe = function (array) {
var hash = {},
results = [],
i, item, len;
for (i = 0, len = array.length; i < len; ++i) {
item = array[i];
if (!hasOwn.call(hash, item)) {
hash[item] = 1;
results.push(item);
}
}
return results;
};
/**
Executes the supplied function on each item in the array. This method wraps
the native ES5 `Array.forEach()` method if available.
@method each
@param {Array} array Array to iterate.
@param {Function} fn Function to execute on each item in the array. The function
will receive the following arguments:
@param {Any} fn.item Current array item.
@param {Number} fn.index Current array index.
@param {Array} fn.array Array being iterated.
@param {Object} [thisObj] `this` object to use when calling _fn_.
@return {YUI} The YUI instance.
@static
**/
YArray.each = YArray.forEach = Lang._isNative(Native.forEach) ? function (array, fn, thisObj) {
Native.forEach.call(array || [], fn, thisObj || Y);
return Y;
} : function (array, fn, thisObj) {
for (var i = 0, len = (array && array.length) || 0; i < len; ++i) {
if (i in array) {
fn.call(thisObj || Y, array[i], i, array);
}
}
return Y;
};
/**
Alias for `each()`.
@method forEach
@static
**/
/**
Returns an object using the first array as keys and the second as values. If
the second array is not provided, or if it doesn't contain the same number of
values as the first array, then `true` will be used in place of the missing
values.
@example
Y.Array.hash(['a', 'b', 'c'], ['foo', 'bar']);
// => {a: 'foo', b: 'bar', c: true}
@method hash
@param {String[]} keys Array of strings to use as keys.
@param {Array} [values] Array to use as values.
@return {Object} Hash using the first array as keys and the second as values.
@static
**/
YArray.hash = function (keys, values) {
var hash = {},
vlen = (values && values.length) || 0,
i, len;
for (i = 0, len = keys.length; i < len; ++i) {
if (i in keys) {
hash[keys[i]] = vlen > i && i in values ? values[i] : true;
}
}
return hash;
};
/**
Returns the index of the first item in the array that's equal (using a strict
equality check) to the specified _value_, or `-1` if the value isn't found.
This method wraps the native ES5 `Array.indexOf()` method if available.
@method indexOf
@param {Array} array Array to search.
@param {Any} value Value to search for.
@param {Number} [from=0] The index at which to begin the search.
@return {Number} Index of the item strictly equal to _value_, or `-1` if not
found.
@static
**/
YArray.indexOf = Lang._isNative(Native.indexOf) ? function (array, value, from) {
return Native.indexOf.call(array, value, from);
} : function (array, value, from) {
// http://es5.github.com/#x15.4.4.14
var len = array.length;
from = +from || 0;
from = (from > 0 || -1) * Math.floor(Math.abs(from));
if (from < 0) {
from += len;
if (from < 0) {
from = 0;
}
}
for (; from < len; ++from) {
if (from in array && array[from] === value) {
return from;
}
}
return -1;
};
/**
Numeric sort convenience function.
The native `Array.prototype.sort()` function converts values to strings and
sorts them in lexicographic order, which is unsuitable for sorting numeric
values. Provide `Array.numericSort` as a custom sort function when you want
to sort values in numeric order.
@example
[42, 23, 8, 16, 4, 15].sort(Y.Array.numericSort);
// => [4, 8, 15, 16, 23, 42]
@method numericSort
@param {Number} a First value to compare.
@param {Number} b Second value to compare.
@return {Number} Difference between _a_ and _b_.
@static
**/
YArray.numericSort = function (a, b) {
return a - b;
};
/**
Executes the supplied function on each item in the array. Returning a truthy
value from the function will stop the processing of remaining items.
@method some
@param {Array} array Array to iterate over.
@param {Function} fn Function to execute on each item. The function will receive
the following arguments:
@param {Any} fn.value Current array item.
@param {Number} fn.index Current array index.
@param {Array} fn.array Array being iterated over.
@param {Object} [thisObj] `this` object to use when calling _fn_.
@return {Boolean} `true` if the function returns a truthy value on any of the
items in the array; `false` otherwise.
@static
**/
YArray.some = Lang._isNative(Native.some) ? function (array, fn, thisObj) {
return Native.some.call(array, fn, thisObj);
} : function (array, fn, thisObj) {
for (var i = 0, len = array.length; i < len; ++i) {
if (i in array && fn.call(thisObj, array[i], i, array)) {
return true;
}
}
return false;
};
/**
Evaluates _obj_ to determine if it's an array, an array-like collection, or
something else. This is useful when working with the function `arguments`
collection and `HTMLElement` collections.
Note: This implementation doesn't consider elements that are also
collections, such as `<form>` and `<select>`, to be array-like.
@method test
@param {Object} obj Object to test.
@return {Number} A number indicating the results of the test:
* 0: Neither an array nor an array-like collection.
* 1: Real array.
* 2: Array-like collection.
@static
**/
YArray.test = function (obj) {
var result = 0;
if (Lang.isArray(obj)) {
result = 1;
} else if (Lang.isObject(obj)) {
try {
// indexed, but no tagName (element) or scrollTo/document (window. From DOM.isWindow test which we can't use here),
// or functions without apply/call (Safari
// HTMLElementCollection bug).
if ('length' in obj && !obj.tagName && !(obj.scrollTo && obj.document) && !obj.apply) {
result = 2;
}
} catch (ex) {}
}
return result;
};
/**
* The YUI module contains the components required for building the YUI
* seed file. This includes the script loading mechanism, a simple queue,
* and the core utilities for the library.
* @module yui
* @submodule yui-base
*/
/**
* A simple FIFO queue. Items are added to the Queue with add(1..n items) and
* removed using next().
*
* @class Queue
* @constructor
* @param {MIXED} item* 0..n items to seed the queue.
*/
function Queue() {
this._init();
this.add.apply(this, arguments);
}
Queue.prototype = {
/**
* Initialize the queue
*
* @method _init
* @protected
*/
_init: function() {
/**
* The collection of enqueued items
*
* @property _q
* @type Array
* @protected
*/
this._q = [];
},
/**
* Get the next item in the queue. FIFO support
*
* @method next
* @return {MIXED} the next item in the queue.
*/
next: function() {
return this._q.shift();
},
/**
* Get the last in the queue. LIFO support.
*
* @method last
* @return {MIXED} the last item in the queue.
*/
last: function() {
return this._q.pop();
},
/**
* Add 0..n items to the end of the queue.
*
* @method add
* @param {MIXED} item* 0..n items.
* @return {object} this queue.
*/
add: function() {
this._q.push.apply(this._q, arguments);
return this;
},
/**
* Returns the current number of queued items.
*
* @method size
* @return {Number} The size.
*/
size: function() {
return this._q.length;
}
};
Y.Queue = Queue;
YUI.Env._loaderQueue = YUI.Env._loaderQueue || new Queue();
/**
The YUI module contains the components required for building the YUI seed file.
This includes the script loading mechanism, a simple queue, and the core
utilities for the library.
@module yui
@submodule yui-base
**/
var CACHED_DELIMITER = '__',
hasOwn = Object.prototype.hasOwnProperty,
isObject = Y.Lang.isObject;
/**
Returns a wrapper for a function which caches the return value of that function,
keyed off of the combined string representation of the argument values provided
when the wrapper is called.
Calling this function again with the same arguments will return the cached value
rather than executing the wrapped function.
Note that since the cache is keyed off of the string representation of arguments
passed to the wrapper function, arguments that aren't strings and don't provide
a meaningful `toString()` method may result in unexpected caching behavior. For
example, the objects `{}` and `{foo: 'bar'}` would both be converted to the
string `[object Object]` when used as a cache key.
@method cached
@param {Function} source The function to memoize.
@param {Object} [cache={}] Object in which to store cached values. You may seed
this object with pre-existing cached values if desired.
@param {any} [refetch] If supplied, this value is compared with the cached value
using a `==` comparison. If the values are equal, the wrapped function is
executed again even though a cached value exists.
@return {Function} Wrapped function.
@for YUI
**/
Y.cached = function (source, cache, refetch) {
cache || (cache = {});
return function (arg) {
var key = arguments.length > 1 ?
Array.prototype.join.call(arguments, CACHED_DELIMITER) :
String(arg);
if (!(key in cache) || (refetch && cache[key] == refetch)) {
cache[key] = source.apply(source, arguments);
}
return cache[key];
};
};
/**
Returns the `location` object from the window/frame in which this YUI instance
operates, or `undefined` when executing in a non-browser environment
(e.g. Node.js).
It is _not_ recommended to hold references to the `window.location` object
outside of the scope of a function in which its properties are being accessed or
its methods are being called. This is because of a nasty bug/issue that exists
in both Safari and MobileSafari browsers:
[WebKit Bug 34679](https://bugs.webkit.org/show_bug.cgi?id=34679).
@method getLocation
@return {location} The `location` object from the window/frame in which this YUI
instance operates.
@since 3.5.0
**/
Y.getLocation = function () {
// It is safer to look this up every time because yui-base is attached to a
// YUI instance before a user's config is applied; i.e. `Y.config.win` does
// not point the correct window object when this file is loaded.
var win = Y.config.win;
// It is not safe to hold a reference to the `location` object outside the
// scope in which it is being used. The WebKit engine used in Safari and
// MobileSafari will "disconnect" the `location` object from the `window`
// when a page is restored from back/forward history cache.
return win && win.location;
};
/**
Returns a new object containing all of the properties of all the supplied
objects. The properties from later objects will overwrite those in earlier
objects.
Passing in a single object will create a shallow copy of it. For a deep copy,
use `clone()`.
@method merge
@param {Object} objects* One or more objects to merge.
@return {Object} A new merged object.
**/
Y.merge = function () {
var i = 0,
len = arguments.length,
result = {},
key,
obj;
for (; i < len; ++i) {
obj = arguments[i];
for (key in obj) {
if (hasOwn.call(obj, key)) {
result[key] = obj[key];
}
}
}
return result;
};
/**
Mixes _supplier_'s properties into _receiver_.
Properties on _receiver_ or _receiver_'s prototype will not be overwritten or
shadowed unless the _overwrite_ parameter is `true`, and will not be merged
unless the _merge_ parameter is `true`.
In the default mode (0), only properties the supplier owns are copied (prototype
properties are not copied). The following copying modes are available:
* `0`: _Default_. Object to object.
* `1`: Prototype to prototype.
* `2`: Prototype to prototype and object to object.
* `3`: Prototype to object.
* `4`: Object to prototype.
@method mix
@param {Function|Object} receiver The object or function to receive the mixed
properties.
@param {Function|Object} supplier The object or function supplying the
properties to be mixed.
@param {Boolean} [overwrite=false] If `true`, properties that already exist
on the receiver will be overwritten with properties from the supplier.
@param {String[]} [whitelist] An array of property names to copy. If
specified, only the whitelisted properties will be copied, and all others
will be ignored.
@param {Number} [mode=0] Mix mode to use. See above for available modes.
@param {Boolean} [merge=false] If `true`, objects and arrays that already
exist on the receiver will have the corresponding object/array from the
supplier merged into them, rather than being skipped or overwritten. When
both _overwrite_ and _merge_ are `true`, _merge_ takes precedence.
@return {Function|Object|YUI} The receiver, or the YUI instance if the
specified receiver is falsy.
**/
Y.mix = function(receiver, supplier, overwrite, whitelist, mode, merge) {
var alwaysOverwrite, exists, from, i, key, len, to;
// If no supplier is given, we return the receiver. If no receiver is given,
// we return Y. Returning Y doesn't make much sense to me, but it's
// grandfathered in for backcompat reasons.
if (!receiver || !supplier) {
return receiver || Y;
}
if (mode) {
// In mode 2 (prototype to prototype and object to object), we recurse
// once to do the proto to proto mix. The object to object mix will be
// handled later on.
if (mode === 2) {
Y.mix(receiver.prototype, supplier.prototype, overwrite,
whitelist, 0, merge);
}
// Depending on which mode is specified, we may be copying from or to
// the prototypes of the supplier and receiver.
from = mode === 1 || mode === 3 ? supplier.prototype : supplier;
to = mode === 1 || mode === 4 ? receiver.prototype : receiver;
// If either the supplier or receiver doesn't actually have a
// prototype property, then we could end up with an undefined `from`
// or `to`. If that happens, we abort and return the receiver.
if (!from || !to) {
return receiver;
}
} else {
from = supplier;
to = receiver;
}
// If `overwrite` is truthy and `merge` is falsy, then we can skip a
// property existence check on each iteration and save some time.
alwaysOverwrite = overwrite && !merge;
if (whitelist) {
for (i = 0, len = whitelist.length; i < len; ++i) {
key = whitelist[i];
// We call `Object.prototype.hasOwnProperty` instead of calling
// `hasOwnProperty` on the object itself, since the object's
// `hasOwnProperty` method may have been overridden or removed.
// Also, some native objects don't implement a `hasOwnProperty`
// method.
if (!hasOwn.call(from, key)) {
continue;
}
// The `key in to` check here is (sadly) intentional for backwards
// compatibility reasons. It prevents undesired shadowing of
// prototype members on `to`.
exists = alwaysOverwrite ? false : key in to;
if (merge && exists && isObject(to[key], true)
&& isObject(from[key], true)) {
// If we're in merge mode, and the key is present on both
// objects, and the value on both objects is either an object or
// an array (but not a function), then we recurse to merge the
// `from` value into the `to` value instead of overwriting it.
//
// Note: It's intentional that the whitelist isn't passed to the
// recursive call here. This is legacy behavior that lots of
// code still depends on.
Y.mix(to[key], from[key], overwrite, null, 0, merge);
} else if (overwrite || !exists) {
// We're not in merge mode, so we'll only copy the `from` value
// to the `to` value if we're in overwrite mode or if the
// current key doesn't exist on the `to` object.
to[key] = from[key];
}
}
} else {
for (key in from) {
// The code duplication here is for runtime performance reasons.
// Combining whitelist and non-whitelist operations into a single
// loop or breaking the shared logic out into a function both result
// in worse performance, and Y.mix is critical enough that the byte
// tradeoff is worth it.
if (!hasOwn.call(from, key)) {
continue;
}
// The `key in to` check here is (sadly) intentional for backwards
// compatibility reasons. It prevents undesired shadowing of
// prototype members on `to`.
exists = alwaysOverwrite ? false : key in to;
if (merge && exists && isObject(to[key], true)
&& isObject(from[key], true)) {
Y.mix(to[key], from[key], overwrite, null, 0, merge);
} else if (overwrite || !exists) {
to[key] = from[key];
}
}
// If this is an IE browser with the JScript enumeration bug, force
// enumeration of the buggy properties by making a recursive call with
// the buggy properties as the whitelist.
if (Y.Object._hasEnumBug) {
Y.mix(to, from, overwrite, Y.Object._forceEnum, mode, merge);
}
}
return receiver;
};
/**
* The YUI module contains the components required for building the YUI
* seed file. This includes the script loading mechanism, a simple queue,
* and the core utilities for the library.
* @module yui
* @submodule yui-base
*/
/**
* Adds utilities to the YUI instance for working with objects.
*
* @class Object
*/
var Lang = Y.Lang,
hasOwn = Object.prototype.hasOwnProperty,
UNDEFINED, // <-- Note the comma. We're still declaring vars.
/**
* Returns a new object that uses _obj_ as its prototype. This method wraps the
* native ES5 `Object.create()` method if available, but doesn't currently
* pass through `Object.create()`'s second argument (properties) in order to
* ensure compatibility with older browsers.
*
* @method ()
* @param {Object} obj Prototype object.
* @return {Object} New object using _obj_ as its prototype.
* @static
*/
O = Y.Object = Lang._isNative(Object.create) ? function (obj) {
// We currently wrap the native Object.create instead of simply aliasing it
// to ensure consistency with our fallback shim, which currently doesn't
// support Object.create()'s second argument (properties). Once we have a
// safe fallback for the properties arg, we can stop wrapping
// Object.create().
return Object.create(obj);
} : (function () {
// Reusable constructor function for the Object.create() shim.
function F() {}
// The actual shim.
return function (obj) {
F.prototype = obj;
return new F();
};
}()),
/**
* Property names that IE doesn't enumerate in for..in loops, even when they
* should be enumerable. When `_hasEnumBug` is `true`, it's necessary to
* manually enumerate these properties.
*
* @property _forceEnum
* @type String[]
* @protected
* @static
*/
forceEnum = O._forceEnum = [
'hasOwnProperty',
'isPrototypeOf',
'propertyIsEnumerable',
'toString',
'toLocaleString',
'valueOf'
],
/**
* `true` if this browser has the JScript enumeration bug that prevents
* enumeration of the properties named in the `_forceEnum` array, `false`
* otherwise.
*
* See:
* - <https://developer.mozilla.org/en/ECMAScript_DontEnum_attribute#JScript_DontEnum_Bug>
* - <http://whattheheadsaid.com/2010/10/a-safer-object-keys-compatibility-implementation>
*
* @property _hasEnumBug
* @type Boolean
* @protected
* @static
*/
hasEnumBug = O._hasEnumBug = !{valueOf: 0}.propertyIsEnumerable('valueOf'),
/**
* `true` if this browser incorrectly considers the `prototype` property of
* functions to be enumerable. Currently known to affect Opera 11.50.
*
* @property _hasProtoEnumBug
* @type Boolean
* @protected
* @static
*/
hasProtoEnumBug = O._hasProtoEnumBug = (function () {}).propertyIsEnumerable('prototype'),
/**
* Returns `true` if _key_ exists on _obj_, `false` if _key_ doesn't exist or
* exists only on _obj_'s prototype. This is essentially a safer version of
* `obj.hasOwnProperty()`.
*
* @method owns
* @param {Object} obj Object to test.
* @param {String} key Property name to look for.
* @return {Boolean} `true` if _key_ exists on _obj_, `false` otherwise.
* @static
*/
owns = O.owns = function (obj, key) {
return !!obj && hasOwn.call(obj, key);
}; // <-- End of var declarations.
/**
* Alias for `owns()`.
*
* @method hasKey
* @param {Object} obj Object to test.
* @param {String} key Property name to look for.
* @return {Boolean} `true` if _key_ exists on _obj_, `false` otherwise.
* @static
*/
O.hasKey = owns;
/**
* Returns an array containing the object's enumerable keys. Does not include
* prototype keys or non-enumerable keys.
*
* Note that keys are returned in enumeration order (that is, in the same order
* that they would be enumerated by a `for-in` loop), which may not be the same
* as the order in which they were defined.
*
* This method is an alias for the native ES5 `Object.keys()` method if
* available.
*
* @example
*
* Y.Object.keys({a: 'foo', b: 'bar', c: 'baz'});
* // => ['a', 'b', 'c']
*
* @method keys
* @param {Object} obj An object.
* @return {String[]} Array of keys.
* @static
*/
O.keys = Lang._isNative(Object.keys) ? Object.keys : function (obj) {
if (!Lang.isObject(obj)) {
throw new TypeError('Object.keys called on a non-object');
}
var keys = [],
i, key, len;
if (hasProtoEnumBug && typeof obj === 'function') {
for (key in obj) {
if (owns(obj, key) && key !== 'prototype') {
keys.push(key);
}
}
} else {
for (key in obj) {
if (owns(obj, key)) {
keys.push(key);
}
}
}
if (hasEnumBug) {
for (i = 0, len = forceEnum.length; i < len; ++i) {
key = forceEnum[i];
if (owns(obj, key)) {
keys.push(key);
}
}
}
return keys;
};
/**
* Returns an array containing the values of the object's enumerable keys.
*
* Note that values are returned in enumeration order (that is, in the same
* order that they would be enumerated by a `for-in` loop), which may not be the
* same as the order in which they were defined.
*
* @example
*
* Y.Object.values({a: 'foo', b: 'bar', c: 'baz'});
* // => ['foo', 'bar', 'baz']
*
* @method values
* @param {Object} obj An object.
* @return {Array} Array of values.
* @static
*/
O.values = function (obj) {
var keys = O.keys(obj),
i = 0,
len = keys.length,
values = [];
for (; i < len; ++i) {
values.push(obj[keys[i]]);
}
return values;
};
/**
* Returns the number of enumerable keys owned by an object.
*
* @method size
* @param {Object} obj An object.
* @return {Number} The object's size.
* @static
*/
O.size = function (obj) {
try {
return O.keys(obj).length;
} catch (ex) {
return 0; // Legacy behavior for non-objects.
}
};
/**
* Returns `true` if the object owns an enumerable property with the specified
* value.
*
* @method hasValue
* @param {Object} obj An object.
* @param {any} value The value to search for.
* @return {Boolean} `true` if _obj_ contains _value_, `false` otherwise.
* @static
*/
O.hasValue = function (obj, value) {
return Y.Array.indexOf(O.values(obj), value) > -1;
};
/**
* Executes a function on each enumerable property in _obj_. The function
* receives the value, the key, and the object itself as parameters (in that
* order).
*
* By default, only properties owned by _obj_ are enumerated. To include
* prototype properties, set the _proto_ parameter to `true`.
*
* @method each
* @param {Object} obj Object to enumerate.
* @param {Function} fn Function to execute on each enumerable property.
* @param {mixed} fn.value Value of the current property.
* @param {String} fn.key Key of the current property.
* @param {Object} fn.obj Object being enumerated.
* @param {Object} [thisObj] `this` object to use when calling _fn_.
* @param {Boolean} [proto=false] Include prototype properties.
* @return {YUI} the YUI instance.
* @chainable
* @static
*/
O.each = function (obj, fn, thisObj, proto) {
var key;
for (key in obj) {
if (proto || owns(obj, key)) {
fn.call(thisObj || Y, obj[key], key, obj);
}
}
return Y;
};
/**
* Executes a function on each enumerable property in _obj_, but halts if the
* function returns a truthy value. The function receives the value, the key,
* and the object itself as paramters (in that order).
*
* By default, only properties owned by _obj_ are enumerated. To include
* prototype properties, set the _proto_ parameter to `true`.
*
* @method some
* @param {Object} obj Object to enumerate.
* @param {Function} fn Function to execute on each enumerable property.
* @param {mixed} fn.value Value of the current property.
* @param {String} fn.key Key of the current property.
* @param {Object} fn.obj Object being enumerated.
* @param {Object} [thisObj] `this` object to use when calling _fn_.
* @param {Boolean} [proto=false] Include prototype properties.
* @return {Boolean} `true` if any execution of _fn_ returns a truthy value,
* `false` otherwise.
* @static
*/
O.some = function (obj, fn, thisObj, proto) {
var key;
for (key in obj) {
if (proto || owns(obj, key)) {
if (fn.call(thisObj || Y, obj[key], key, obj)) {
return true;
}
}
}
return false;
};
/**
* Retrieves the sub value at the provided path,
* from the value object provided.
*
* @method getValue
* @static
* @param o The object from which to extract the property value.
* @param path {Array} A path array, specifying the object traversal path
* from which to obtain the sub value.
* @return {Any} The value stored in the path, undefined if not found,
* undefined if the source is not an object. Returns the source object
* if an empty path is provided.
*/
O.getValue = function(o, path) {
if (!Lang.isObject(o)) {
return UNDEFINED;
}
var i,
p = Y.Array(path),
l = p.length;
for (i = 0; o !== UNDEFINED && i < l; i++) {
o = o[p[i]];
}
return o;
};
/**
* Sets the sub-attribute value at the provided path on the
* value object. Returns the modified value object, or
* undefined if the path is invalid.
*
* @method setValue
* @static
* @param o The object on which to set the sub value.
* @param path {Array} A path array, specifying the object traversal path
* at which to set the sub value.
* @param val {Any} The new value for the sub-attribute.
* @return {Object} The modified object, with the new sub value set, or
* undefined, if the path was invalid.
*/
O.setValue = function(o, path, val) {
var i,
p = Y.Array(path),
leafIdx = p.length - 1,
ref = o;
if (leafIdx >= 0) {
for (i = 0; ref !== UNDEFINED && i < leafIdx; i++) {
ref = ref[p[i]];
}
if (ref !== UNDEFINED) {
ref[p[i]] = val;
} else {
return UNDEFINED;
}
}
return o;
};
/**
* Returns `true` if the object has no enumerable properties of its own.
*
* @method isEmpty
* @param {Object} obj An object.
* @return {Boolean} `true` if the object is empty.
* @static
* @since 3.2.0
*/
O.isEmpty = function (obj) {
return !O.keys(Object(obj)).length;
};
/**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and the
* core utilities for the library.
* @module yui
* @submodule yui-base
*/
/**
* YUI user agent detection.
* Do not fork for a browser if it can be avoided. Use feature detection when
* you can. Use the user agent as a last resort. For all fields listed
* as @type float, UA stores a version number for the browser engine,
* 0 otherwise. This value may or may not map to the version number of
* the browser using the engine. The value is presented as a float so
* that it can easily be used for boolean evaluation as well as for
* looking for a particular range of versions. Because of this,
* some of the granularity of the version info may be lost. The fields that
* are @type string default to null. The API docs list the values that
* these fields can have.
* @class UA
* @static
*/
/**
* Static method on `YUI.Env` for parsing a UA string. Called at instantiation
* to populate `Y.UA`.
*
* @static
* @method parseUA
* @param {String} [subUA=navigator.userAgent] UA string to parse
* @return {Object} The Y.UA object
*/
YUI.Env.parseUA = function(subUA) {
var numberify = function(s) {
var c = 0;
return parseFloat(s.replace(/\./g, function() {
return (c++ === 1) ? '' : '.';
}));
},
win = Y.config.win,
nav = win && win.navigator,
o = {
/**
* Internet Explorer version number or 0. Example: 6
* @property ie
* @type float
* @static
*/
ie: 0,
/**
* Opera version number or 0. Example: 9.2
* @property opera
* @type float
* @static
*/
opera: 0,
/**
* Gecko engine revision number. Will evaluate to 1 if Gecko
* is detected but the revision could not be found. Other browsers
* will be 0. Example: 1.8
* <pre>
* Firefox 1.0.0.4: 1.7.8 <-- Reports 1.7
* Firefox 1.5.0.9: 1.8.0.9 <-- 1.8
* Firefox 2.0.0.3: 1.8.1.3 <-- 1.81
* Firefox 3.0 <-- 1.9
* Firefox 3.5 <-- 1.91
* </pre>
* @property gecko
* @type float
* @static
*/
gecko: 0,
/**
* AppleWebKit version. KHTML browsers that are not WebKit browsers
* will evaluate to 1, other browsers 0. Example: 418.9
* <pre>
* Safari 1.3.2 (312.6): 312.8.1 <-- Reports 312.8 -- currently the
* latest available for Mac OSX 10.3.
* Safari 2.0.2: 416 <-- hasOwnProperty introduced
* Safari 2.0.4: 418 <-- preventDefault fixed
* Safari 2.0.4 (419.3): 418.9.1 <-- One version of Safari may run
* different versions of webkit
* Safari 2.0.4 (419.3): 419 <-- Tiger installations that have been
* updated, but not updated
* to the latest patch.
* Webkit 212 nightly: 522+ <-- Safari 3.0 precursor (with native
* SVG and many major issues fixed).
* Safari 3.0.4 (523.12) 523.12 <-- First Tiger release - automatic
* update from 2.x via the 10.4.11 OS patch.
* Webkit nightly 1/2008:525+ <-- Supports DOMContentLoaded event.
* yahoo.com user agent hack removed.
* </pre>
* http://en.wikipedia.org/wiki/Safari_version_history
* @property webkit
* @type float
* @static
*/
webkit: 0,
/**
* Safari will be detected as webkit, but this property will also
* be populated with the Safari version number
* @property safari
* @type float
* @static
*/
safari: 0,
/**
* Chrome will be detected as webkit, but this property will also
* be populated with the Chrome version number
* @property chrome
* @type float
* @static
*/
chrome: 0,
/**
* The mobile property will be set to a string containing any relevant
* user agent information when a modern mobile browser is detected.
* Currently limited to Safari on the iPhone/iPod Touch, Nokia N-series
* devices with the WebKit-based browser, and Opera Mini.
* @property mobile
* @type string
* @default null
* @static
*/
mobile: null,
/**
* Adobe AIR version number or 0. Only populated if webkit is detected.
* Example: 1.0
* @property air
* @type float
*/
air: 0,
/**
* PhantomJS version number or 0. Only populated if webkit is detected.
* Example: 1.0
* @property phantomjs
* @type float
*/
phantomjs: 0,
/**
* Detects Apple iPad's OS version
* @property ipad
* @type float
* @static
*/
ipad: 0,
/**
* Detects Apple iPhone's OS version
* @property iphone
* @type float
* @static
*/
iphone: 0,
/**
* Detects Apples iPod's OS version
* @property ipod
* @type float
* @static
*/
ipod: 0,
/**
* General truthy check for iPad, iPhone or iPod
* @property ios
* @type Boolean
* @default null
* @static
*/
ios: null,
/**
* Detects Googles Android OS version
* @property android
* @type float
* @static
*/
android: 0,
/**
* Detects Kindle Silk
* @property silk
* @type float
* @static
*/
silk: 0,
/**
* Detects Kindle Silk Acceleration
* @property accel
* @type Boolean
* @static
*/
accel: false,
/**
* Detects Palms WebOS version
* @property webos
* @type float
* @static
*/
webos: 0,
/**
* Google Caja version number or 0.
* @property caja
* @type float
*/
caja: nav && nav.cajaVersion,
/**
* Set to true if the page appears to be in SSL
* @property secure
* @type boolean
* @static
*/
secure: false,
/**
* The operating system. Currently only detecting windows or macintosh
* @property os
* @type string
* @default null
* @static
*/
os: null,
/**
* The Nodejs Version
* @property nodejs
* @type float
* @default 0
* @static
*/
nodejs: 0,
/*
* Window8/IE10 Application host environment
* @property winjs
* @type Boolean
* @static
*/
winjs: !!((typeof Windows !== "undefined") && Windows.System),
/**
* Are touch/msPointer events available on this device
* @property touchEnabled
* @type Boolean
* @static
*/
touchEnabled: false
},
ua = subUA || nav && nav.userAgent,
loc = win && win.location,
href = loc && loc.href,
m;
/**
* The User Agent string that was parsed
* @property userAgent
* @type String
* @static
*/
o.userAgent = ua;
o.secure = href && (href.toLowerCase().indexOf('https') === 0);
if (ua) {
if ((/windows|win32/i).test(ua)) {
o.os = 'windows';
} else if ((/macintosh|mac_powerpc/i).test(ua)) {
o.os = 'macintosh';
} else if ((/android/i).test(ua)) {
o.os = 'android';
} else if ((/symbos/i).test(ua)) {
o.os = 'symbos';
} else if ((/linux/i).test(ua)) {
o.os = 'linux';
} else if ((/rhino/i).test(ua)) {
o.os = 'rhino';
}
// Modern KHTML browsers should qualify as Safari X-Grade
if ((/KHTML/).test(ua)) {
o.webkit = 1;
}
if ((/IEMobile|XBLWP7/).test(ua)) {
o.mobile = 'windows';
}
if ((/Fennec/).test(ua)) {
o.mobile = 'gecko';
}
// Modern WebKit browsers are at least X-Grade
m = ua.match(/AppleWebKit\/([^\s]*)/);
if (m && m[1]) {
o.webkit = numberify(m[1]);
o.safari = o.webkit;
if (/PhantomJS/.test(ua)) {
m = ua.match(/PhantomJS\/([^\s]*)/);
if (m && m[1]) {
o.phantomjs = numberify(m[1]);
}
}
// Mobile browser check
if (/ Mobile\//.test(ua) || (/iPad|iPod|iPhone/).test(ua)) {
o.mobile = 'Apple'; // iPhone or iPod Touch
m = ua.match(/OS ([^\s]*)/);
if (m && m[1]) {
m = numberify(m[1].replace('_', '.'));
}
o.ios = m;
o.os = 'ios';
o.ipad = o.ipod = o.iphone = 0;
m = ua.match(/iPad|iPod|iPhone/);
if (m && m[0]) {
o[m[0].toLowerCase()] = o.ios;
}
} else {
m = ua.match(/NokiaN[^\/]*|webOS\/\d\.\d/);
if (m) {
// Nokia N-series, webOS, ex: NokiaN95
o.mobile = m[0];
}
if (/webOS/.test(ua)) {
o.mobile = 'WebOS';
m = ua.match(/webOS\/([^\s]*);/);
if (m && m[1]) {
o.webos = numberify(m[1]);
}
}
if (/ Android/.test(ua)) {
if (/Mobile/.test(ua)) {
o.mobile = 'Android';
}
m = ua.match(/Android ([^\s]*);/);
if (m && m[1]) {
o.android = numberify(m[1]);
}
}
if (/Silk/.test(ua)) {
m = ua.match(/Silk\/([^\s]*)\)/);
if (m && m[1]) {
o.silk = numberify(m[1]);
}
if (!o.android) {
o.android = 2.34; //Hack for desktop mode in Kindle
o.os = 'Android';
}
if (/Accelerated=true/.test(ua)) {
o.accel = true;
}
}
}
m = ua.match(/(Chrome|CrMo|CriOS)\/([^\s]*)/);
if (m && m[1] && m[2]) {
o.chrome = numberify(m[2]); // Chrome
o.safari = 0; //Reset safari back to 0
if (m[1] === 'CrMo') {
o.mobile = 'chrome';
}
} else {
m = ua.match(/AdobeAIR\/([^\s]*)/);
if (m) {
o.air = m[0]; // Adobe AIR 1.0 or better
}
}
}
if (!o.webkit) { // not webkit
// @todo check Opera/8.01 (J2ME/MIDP; Opera Mini/2.0.4509/1316; fi; U; ssr)
if (/Opera/.test(ua)) {
m = ua.match(/Opera[\s\/]([^\s]*)/);
if (m && m[1]) {
o.opera = numberify(m[1]);
}
m = ua.match(/Version\/([^\s]*)/);
if (m && m[1]) {
o.opera = numberify(m[1]); // opera 10+
}
if (/Opera Mobi/.test(ua)) {
o.mobile = 'opera';
m = ua.replace('Opera Mobi', '').match(/Opera ([^\s]*)/);
if (m && m[1]) {
o.opera = numberify(m[1]);
}
}
m = ua.match(/Opera Mini[^;]*/);
if (m) {
o.mobile = m[0]; // ex: Opera Mini/2.0.4509/1316
}
} else { // not opera or webkit
m = ua.match(/MSIE\s([^;]*)/);
if (m && m[1]) {
o.ie = numberify(m[1]);
} else { // not opera, webkit, or ie
m = ua.match(/Gecko\/([^\s]*)/);
if (m) {
o.gecko = 1; // Gecko detected, look for revision
m = ua.match(/rv:([^\s\)]*)/);
if (m && m[1]) {
o.gecko = numberify(m[1]);
}
}
}
}
}
}
//Check for known properties to tell if touch events are enabled on this device or if
//the number of MSPointer touchpoints on this device is greater than 0.
if (win && nav && !(o.chrome && o.chrome < 6)) {
o.touchEnabled = (("ontouchstart" in win) || (("msMaxTouchPoints" in nav) && (nav.msMaxTouchPoints > 0)));
}
//It was a parsed UA, do not assign the global value.
if (!subUA) {
if (typeof process === 'object') {
if (process.versions && process.versions.node) {
//NodeJS
o.os = process.platform;
o.nodejs = numberify(process.versions.node);
}
}
YUI.Env.UA = o;
}
return o;
};
Y.UA = YUI.Env.UA || YUI.Env.parseUA();
/**
Performs a simple comparison between two version numbers, accounting for
standard versioning logic such as the fact that "535.8" is a lower version than
"535.24", even though a simple numerical comparison would indicate that it's
greater. Also accounts for cases such as "1.1" vs. "1.1.0", which are
considered equivalent.
Returns -1 if version _a_ is lower than version _b_, 0 if they're equivalent,
1 if _a_ is higher than _b_.
Versions may be numbers or strings containing numbers and dots. For example,
both `535` and `"535.8.10"` are acceptable. A version string containing
non-numeric characters, like `"535.8.beta"`, may produce unexpected results.
@method compareVersions
@param {Number|String} a First version number to compare.
@param {Number|String} b Second version number to compare.
@return -1 if _a_ is lower than _b_, 0 if they're equivalent, 1 if _a_ is
higher than _b_.
**/
Y.UA.compareVersions = function (a, b) {
var aPart, aParts, bPart, bParts, i, len;
if (a === b) {
return 0;
}
aParts = (a + '').split('.');
bParts = (b + '').split('.');
for (i = 0, len = Math.max(aParts.length, bParts.length); i < len; ++i) {
aPart = parseInt(aParts[i], 10);
bPart = parseInt(bParts[i], 10);
isNaN(aPart) && (aPart = 0);
isNaN(bPart) && (bPart = 0);
if (aPart < bPart) {
return -1;
}
if (aPart > bPart) {
return 1;
}
}
return 0;
};
YUI.Env.aliases = {
"anim": ["anim-base","anim-color","anim-curve","anim-easing","anim-node-plugin","anim-scroll","anim-xy"],
"anim-shape-transform": ["anim-shape"],
"app": ["app-base","app-content","app-transitions","lazy-model-list","model","model-list","model-sync-rest","router","view","view-node-map"],
"attribute": ["attribute-base","attribute-complex"],
"autocomplete": ["autocomplete-base","autocomplete-sources","autocomplete-list","autocomplete-plugin"],
"base": ["base-base","base-pluginhost","base-build"],
"cache": ["cache-base","cache-offline","cache-plugin"],
"collection": ["array-extras","arraylist","arraylist-add","arraylist-filter","array-invoke"],
"controller": ["router"],
"dataschema": ["dataschema-base","dataschema-json","dataschema-xml","dataschema-array","dataschema-text"],
"datasource": ["datasource-local","datasource-io","datasource-get","datasource-function","datasource-cache","datasource-jsonschema","datasource-xmlschema","datasource-arrayschema","datasource-textschema","datasource-polling"],
"datatable": ["datatable-core","datatable-table","datatable-head","datatable-body","datatable-base","datatable-column-widths","datatable-message","datatable-mutable","datatable-sort","datatable-datasource"],
"datatable-deprecated": ["datatable-base-deprecated","datatable-datasource-deprecated","datatable-sort-deprecated","datatable-scroll-deprecated"],
"datatype": ["datatype-date","datatype-number","datatype-xml"],
"datatype-date": ["datatype-date-parse","datatype-date-format","datatype-date-math"],
"datatype-number": ["datatype-number-parse","datatype-number-format"],
"datatype-xml": ["datatype-xml-parse","datatype-xml-format"],
"dd": ["dd-ddm-base","dd-ddm","dd-ddm-drop","dd-drag","dd-proxy","dd-constrain","dd-drop","dd-scroll","dd-delegate"],
"dom": ["dom-base","dom-screen","dom-style","selector-native","selector"],
"editor": ["frame","editor-selection","exec-command","editor-base","editor-para","editor-br","editor-bidi","editor-tab","createlink-base"],
"event": ["event-base","event-delegate","event-synthetic","event-mousewheel","event-mouseenter","event-key","event-focus","event-resize","event-hover","event-outside","event-touch","event-move","event-flick","event-valuechange","event-tap"],
"event-custom": ["event-custom-base","event-custom-complex"],
"event-gestures": ["event-flick","event-move"],
"handlebars": ["handlebars-compiler"],
"highlight": ["highlight-base","highlight-accentfold"],
"history": ["history-base","history-hash","history-hash-ie","history-html5"],
"io": ["io-base","io-xdr","io-form","io-upload-iframe","io-queue"],
"json": ["json-parse","json-stringify"],
"loader": ["loader-base","loader-rollup","loader-yui3"],
"node": ["node-base","node-event-delegate","node-pluginhost","node-screen","node-style"],
"pluginhost": ["pluginhost-base","pluginhost-config"],
"querystring": ["querystring-parse","querystring-stringify"],
"recordset": ["recordset-base","recordset-sort","recordset-filter","recordset-indexer"],
"resize": ["resize-base","resize-proxy","resize-constrain"],
"slider": ["slider-base","slider-value-range","clickable-rail","range-slider"],
"text": ["text-accentfold","text-wordbreak"],
"widget": ["widget-base","widget-htmlparser","widget-skin","widget-uievents"]
};
}, '3.7.3', {"use": ["get", "features", "intl-base", "yui-log", "yui-later"]});
YUI.add('get', function (Y, NAME) {
/*jslint boss:true, expr:true, laxbreak: true */
/**
Provides dynamic loading of remote JavaScript and CSS resources.
@module get
@class Get
@static
**/
var Lang = Y.Lang,
CUSTOM_ATTRS, // defined lazily in Y.Get.Transaction._createNode()
Get, Transaction;
Y.Get = Get = {
// -- Public Properties ----------------------------------------------------
/**
Default options for CSS requests. Options specified here will override
global defaults for CSS requests.
See the `options` property for all available options.
@property cssOptions
@type Object
@static
@since 3.5.0
**/
cssOptions: {
attributes: {
rel: 'stylesheet'
},
doc : Y.config.linkDoc || Y.config.doc,
pollInterval: 50
},
/**
Default options for JS requests. Options specified here will override global
defaults for JS requests.
See the `options` property for all available options.
@property jsOptions
@type Object
@static
@since 3.5.0
**/
jsOptions: {
autopurge: true,
doc : Y.config.scriptDoc || Y.config.doc
},
/**
Default options to use for all requests.
Note that while all available options are documented here for ease of
discovery, some options (like callback functions) only make sense at the
transaction level.
Callback functions specified via the options object or the `options`
parameter of the `css()`, `js()`, or `load()` methods will receive the
transaction object as a parameter. See `Y.Get.Transaction` for details on
the properties and methods available on transactions.
@static
@since 3.5.0
@property {Object} options
@property {Boolean} [options.async=false] Whether or not to load scripts
asynchronously, meaning they're requested in parallel and execution
order is not guaranteed. Has no effect on CSS, since CSS is always
loaded asynchronously.
@property {Object} [options.attributes] HTML attribute name/value pairs that
should be added to inserted nodes. By default, the `charset` attribute
will be set to "utf-8" and nodes will be given an auto-generated `id`
attribute, but you can override these with your own values if desired.
@property {Boolean} [options.autopurge] Whether or not to automatically
purge inserted nodes after the purge threshold is reached. This is
`true` by default for JavaScript, but `false` for CSS since purging a
CSS node will also remove any styling applied by the referenced file.
@property {Object} [options.context] `this` object to use when calling
callback functions. Defaults to the transaction object.
@property {Mixed} [options.data] Arbitrary data object to pass to "on*"
callbacks.
@property {Document} [options.doc] Document into which nodes should be
inserted. By default, the current document is used.
@property {HTMLElement|String} [options.insertBefore] HTML element or id
string of an element before which all generated nodes should be
inserted. If not specified, Get will automatically determine the best
place to insert nodes for maximum compatibility.
@property {Function} [options.onEnd] Callback to execute after a transaction
is complete, regardless of whether it succeeded or failed.
@property {Function} [options.onFailure] Callback to execute after a
transaction fails, times out, or is aborted.
@property {Function} [options.onProgress] Callback to execute after each
individual request in a transaction either succeeds or fails.
@property {Function} [options.onSuccess] Callback to execute after a
transaction completes successfully with no errors. Note that in browsers
that don't support the `error` event on CSS `<link>` nodes, a failed CSS
request may still be reported as a success because in these browsers
it can be difficult or impossible to distinguish between success and
failure for CSS resources.
@property {Function} [options.onTimeout] Callback to execute after a
transaction times out.
@property {Number} [options.pollInterval=50] Polling interval (in
milliseconds) for detecting CSS load completion in browsers that don't
support the `load` event on `<link>` nodes. This isn't used for
JavaScript.
@property {Number} [options.purgethreshold=20] Number of nodes to insert
before triggering an automatic purge when `autopurge` is `true`.
@property {Number} [options.timeout] Number of milliseconds to wait before
aborting a transaction. When a timeout occurs, the `onTimeout` callback
is called, followed by `onFailure` and finally `onEnd`. By default,
there is no timeout.
@property {String} [options.type] Resource type ("css" or "js"). This option
is set automatically by the `css()` and `js()` functions and will be
ignored there, but may be useful when using the `load()` function. If
not specified, the type will be inferred from the URL, defaulting to
"js" if the URL doesn't contain a recognizable file extension.
**/
options: {
attributes: {
charset: 'utf-8'
},
purgethreshold: 20
},
// -- Protected Properties -------------------------------------------------
/**
Regex that matches a CSS URL. Used to guess the file type when it's not
specified.
@property REGEX_CSS
@type RegExp
@final
@protected
@static
@since 3.5.0
**/
REGEX_CSS: /\.css(?:[?;].*)?$/i,
/**
Regex that matches a JS URL. Used to guess the file type when it's not
specified.
@property REGEX_JS
@type RegExp
@final
@protected
@static
@since 3.5.0
**/
REGEX_JS : /\.js(?:[?;].*)?$/i,
/**
Contains information about the current environment, such as what script and
link injection features it supports.
This object is created and populated the first time the `_getEnv()` method
is called.
@property _env
@type Object
@protected
@static
@since 3.5.0
**/
/**
Mapping of document _yuid strings to <head> or <base> node references so we
don't have to look the node up each time we want to insert a request node.
@property _insertCache
@type Object
@protected
@static
@since 3.5.0
**/
_insertCache: {},
/**
Information about the currently pending transaction, if any.
This is actually an object with two properties: `callback`, containing the
optional callback passed to `css()`, `load()`, or `js()`; and `transaction`,
containing the actual transaction instance.
@property _pending
@type Object
@protected
@static
@since 3.5.0
**/
_pending: null,
/**
HTML nodes eligible to be purged next time autopurge is triggered.
@property _purgeNodes
@type HTMLElement[]
@protected
@static
@since 3.5.0
**/
_purgeNodes: [],
/**
Queued transactions and associated callbacks.
@property _queue
@type Object[]
@protected
@static
@since 3.5.0
**/
_queue: [],
// -- Public Methods -------------------------------------------------------
/**
Aborts the specified transaction.
This will cause the transaction's `onFailure` callback to be called and
will prevent any new script and link nodes from being added to the document,
but any resources that have already been requested will continue loading
(there's no safe way to prevent this, unfortunately).
*Note:* This method is deprecated as of 3.5.0, and will be removed in a
future version of YUI. Use the transaction-level `abort()` method instead.
@method abort
@param {Get.Transaction} transaction Transaction to abort.
@deprecated Use the `abort()` method on the transaction instead.
@static
**/
abort: function (transaction) {
var i, id, item, len, pending;
if (!transaction.abort) {
id = transaction;
pending = this._pending;
transaction = null;
if (pending && pending.transaction.id === id) {
transaction = pending.transaction;
this._pending = null;
} else {
for (i = 0, len = this._queue.length; i < len; ++i) {
item = this._queue[i].transaction;
if (item.id === id) {
transaction = item;
this._queue.splice(i, 1);
break;
}
}
}
}
transaction && transaction.abort();
},
/**
Loads one or more CSS files.
The _urls_ parameter may be provided as a URL string, a request object,
or an array of URL strings and/or request objects.
A request object is just an object that contains a `url` property and zero
or more options that should apply specifically to that request.
Request-specific options take priority over transaction-level options and
default options.
URLs may be relative or absolute, and do not have to have the same origin
as the current page.
The `options` parameter may be omitted completely and a callback passed in
its place, if desired.
@example
// Load a single CSS file and log a message on completion.
Y.Get.css('foo.css', function (err) {
if (err) {
} else {
}
});
// Load multiple CSS files and log a message when all have finished
// loading.
var urls = ['foo.css', 'http://example.com/bar.css', 'baz/quux.css'];
Y.Get.css(urls, function (err) {
if (err) {
} else {
}
});
// Specify transaction-level options, which will apply to all requests
// within the transaction.
Y.Get.css(urls, {
attributes: {'class': 'my-css'},
timeout : 5000
});
// Specify per-request options, which override transaction-level and
// default options.
Y.Get.css([
{url: 'foo.css', attributes: {id: 'foo'}},
{url: 'bar.css', attributes: {id: 'bar', charset: 'iso-8859-1'}}
]);
@method css
@param {String|Object|Array} urls URL string, request object, or array
of URLs and/or request objects to load.
@param {Object} [options] Options for this transaction. See the
`Y.Get.options` property for a complete list of available options.
@param {Function} [callback] Callback function to be called on completion.
This is a general callback and will be called before any more granular
callbacks (`onSuccess`, `onFailure`, etc.) specified in the `options`
object.
@param {Array|null} callback.err Array of errors that occurred during
the transaction, or `null` on success.
@param {Get.Transaction} callback.transaction Transaction object.
@return {Get.Transaction} Transaction object.
@static
**/
css: function (urls, options, callback) {
return this._load('css', urls, options, callback);
},
/**
Loads one or more JavaScript resources.
The _urls_ parameter may be provided as a URL string, a request object,
or an array of URL strings and/or request objects.
A request object is just an object that contains a `url` property and zero
or more options that should apply specifically to that request.
Request-specific options take priority over transaction-level options and
default options.
URLs may be relative or absolute, and do not have to have the same origin
as the current page.
The `options` parameter may be omitted completely and a callback passed in
its place, if desired.
Scripts will be executed in the order they're specified unless the `async`
option is `true`, in which case they'll be loaded in parallel and executed
in whatever order they finish loading.
@example
// Load a single JS file and log a message on completion.
Y.Get.js('foo.js', function (err) {
if (err) {
} else {
}
});
// Load multiple JS files, execute them in order, and log a message when
// all have finished loading.
var urls = ['foo.js', 'http://example.com/bar.js', 'baz/quux.js'];
Y.Get.js(urls, function (err) {
if (err) {
} else {
}
});
// Specify transaction-level options, which will apply to all requests
// within the transaction.
Y.Get.js(urls, {
attributes: {'class': 'my-js'},
timeout : 5000
});
// Specify per-request options, which override transaction-level and
// default options.
Y.Get.js([
{url: 'foo.js', attributes: {id: 'foo'}},
{url: 'bar.js', attributes: {id: 'bar', charset: 'iso-8859-1'}}
]);
@method js
@param {String|Object|Array} urls URL string, request object, or array
of URLs and/or request objects to load.
@param {Object} [options] Options for this transaction. See the
`Y.Get.options` property for a complete list of available options.
@param {Function} [callback] Callback function to be called on completion.
This is a general callback and will be called before any more granular
callbacks (`onSuccess`, `onFailure`, etc.) specified in the `options`
object.
@param {Array|null} callback.err Array of errors that occurred during
the transaction, or `null` on success.
@param {Get.Transaction} callback.transaction Transaction object.
@return {Get.Transaction} Transaction object.
@since 3.5.0
@static
**/
js: function (urls, options, callback) {
return this._load('js', urls, options, callback);
},
/**
Loads one or more CSS and/or JavaScript resources in the same transaction.
Use this method when you want to load both CSS and JavaScript in a single
transaction and be notified when all requested URLs have finished loading,
regardless of type.
Behavior and options are the same as for the `css()` and `js()` methods. If
a resource type isn't specified in per-request options or transaction-level
options, Get will guess the file type based on the URL's extension (`.css`
or `.js`, with or without a following query string). If the file type can't
be guessed from the URL, a warning will be logged and Get will assume the
URL is a JavaScript resource.
@example
// Load both CSS and JS files in a single transaction, and log a message
// when all files have finished loading.
Y.Get.load(['foo.css', 'bar.js', 'baz.css'], function (err) {
if (err) {
} else {
}
});
@method load
@param {String|Object|Array} urls URL string, request object, or array
of URLs and/or request objects to load.
@param {Object} [options] Options for this transaction. See the
`Y.Get.options` property for a complete list of available options.
@param {Function} [callback] Callback function to be called on completion.
This is a general callback and will be called before any more granular
callbacks (`onSuccess`, `onFailure`, etc.) specified in the `options`
object.
@param {Array|null} err Array of errors that occurred during the
transaction, or `null` on success.
@param {Get.Transaction} Transaction object.
@return {Get.Transaction} Transaction object.
@since 3.5.0
@static
**/
load: function (urls, options, callback) {
return this._load(null, urls, options, callback);
},
// -- Protected Methods ----------------------------------------------------
/**
Triggers an automatic purge if the purge threshold has been reached.
@method _autoPurge
@param {Number} threshold Purge threshold to use, in milliseconds.
@protected
@since 3.5.0
@static
**/
_autoPurge: function (threshold) {
if (threshold && this._purgeNodes.length >= threshold) {
this._purge(this._purgeNodes);
}
},
/**
Populates the `_env` property with information about the current
environment.
@method _getEnv
@return {Object} Environment information.
@protected
@since 3.5.0
@static
**/
_getEnv: function () {
var doc = Y.config.doc,
ua = Y.UA;
// Note: some of these checks require browser sniffs since it's not
// feasible to load test files on every pageview just to perform a
// feature test. I'm sorry if this makes you sad.
return (this._env = {
// True if this is a browser that supports disabling async mode on
// dynamically created script nodes. See
// https://developer.mozilla.org/En/HTML/Element/Script#Attributes
// IE10 doesn't return true for the MDN feature test, so setting it explicitly,
// because it is async by default, and allows you to disable async by setting it to false
async: (doc && doc.createElement('script').async === true) || (ua.ie >= 10),
// True if this browser fires an event when a dynamically injected
// link node fails to load. This is currently true for Firefox 9+
// and WebKit 535.24+
cssFail: ua.gecko >= 9 || ua.compareVersions(ua.webkit, 535.24) >= 0,
// True if this browser fires an event when a dynamically injected
// link node finishes loading. This is currently true for IE, Opera,
// Firefox 9+, and WebKit 535.24+. Note that IE versions <9 fire the
// DOM 0 "onload" event, but not "load". All versions of IE fire
// "onload".
// davglass: Seems that Chrome on Android needs this to be false.
cssLoad: (
(!ua.gecko && !ua.webkit) || ua.gecko >= 9 ||
ua.compareVersions(ua.webkit, 535.24) >= 0
) && !(ua.chrome && ua.chrome <= 18),
// True if this browser preserves script execution order while
// loading scripts in parallel as long as the script node's `async`
// attribute is set to false to explicitly disable async execution.
preservesScriptOrder: !!(ua.gecko || ua.opera || (ua.ie && ua.ie >= 10))
});
},
_getTransaction: function (urls, options) {
var requests = [],
i, len, req, url;
if (!Lang.isArray(urls)) {
urls = [urls];
}
options = Y.merge(this.options, options);
// Clone the attributes object so we don't end up modifying it by ref.
options.attributes = Y.merge(this.options.attributes,
options.attributes);
for (i = 0, len = urls.length; i < len; ++i) {
url = urls[i];
req = {attributes: {}};
// If `url` is a string, we create a URL object for it, then mix in
// global options and request-specific options. If it's an object
// with a "url" property, we assume it's a request object containing
// URL-specific options.
if (typeof url === 'string') {
req.url = url;
} else if (url.url) {
// URL-specific options override both global defaults and
// request-specific options.
Y.mix(req, url, false, null, 0, true);
url = url.url; // Make url a string so we can use it later.
} else {
continue;
}
Y.mix(req, options, false, null, 0, true);
// If we didn't get an explicit type for this URL either in the
// request options or the URL-specific options, try to determine
// one from the file extension.
if (!req.type) {
if (this.REGEX_CSS.test(url)) {
req.type = 'css';
} else {
if (!this.REGEX_JS.test(url)) {
}
req.type = 'js';
}
}
// Mix in type-specific default options, but don't overwrite any
// options that have already been set.
Y.mix(req, req.type === 'js' ? this.jsOptions : this.cssOptions,
false, null, 0, true);
// Give the node an id attribute if it doesn't already have one.
req.attributes.id || (req.attributes.id = Y.guid());
// Backcompat for <3.5.0 behavior.
if (req.win) {
req.doc = req.win.document;
} else {
req.win = req.doc.defaultView || req.doc.parentWindow;
}
if (req.charset) {
req.attributes.charset = req.charset;
}
requests.push(req);
}
return new Transaction(requests, options);
},
_load: function (type, urls, options, callback) {
var transaction;
// Allow callback as third param.
if (typeof options === 'function') {
callback = options;
options = {};
}
options || (options = {});
options.type = type;
options._onFinish = Get._onTransactionFinish;
if (!this._env) {
this._getEnv();
}
transaction = this._getTransaction(urls, options);
this._queue.push({
callback : callback,
transaction: transaction
});
this._next();
return transaction;
},
_onTransactionFinish : function() {
Get._pending = null;
Get._next();
},
_next: function () {
var item;
if (this._pending) {
return;
}
item = this._queue.shift();
if (item) {
this._pending = item;
item.transaction.execute(item.callback);
}
},
_purge: function (nodes) {
var purgeNodes = this._purgeNodes,
isTransaction = nodes !== purgeNodes,
index, node;
while (node = nodes.pop()) { // assignment
// Don't purge nodes that haven't finished loading (or errored out),
// since this can hang the transaction.
if (!node._yuiget_finished) {
continue;
}
node.parentNode && node.parentNode.removeChild(node);
// If this is a transaction-level purge and this node also exists in
// the Get-level _purgeNodes array, we need to remove it from
// _purgeNodes to avoid creating a memory leak. The indexOf lookup
// sucks, but until we get WeakMaps, this is the least troublesome
// way to do this (we can't just hold onto node ids because they may
// not be in the same document).
if (isTransaction) {
index = Y.Array.indexOf(purgeNodes, node);
if (index > -1) {
purgeNodes.splice(index, 1);
}
}
}
}
};
/**
Alias for `js()`.
@method script
@static
**/
Get.script = Get.js;
/**
Represents a Get transaction, which may contain requests for one or more JS or
CSS files.
This class should not be instantiated manually. Instances will be created and
returned as needed by Y.Get's `css()`, `js()`, and `load()` methods.
@class Get.Transaction
@constructor
@since 3.5.0
**/
Get.Transaction = Transaction = function (requests, options) {
var self = this;
self.id = Transaction._lastId += 1;
self.data = options.data;
self.errors = [];
self.nodes = [];
self.options = options;
self.requests = requests;
self._callbacks = []; // callbacks to call after execution finishes
self._queue = [];
self._reqsWaiting = 0;
// Deprecated pre-3.5.0 properties.
self.tId = self.id; // Use `id` instead.
self.win = options.win || Y.config.win;
};
/**
Arbitrary data object associated with this transaction.
This object comes from the options passed to `Get.css()`, `Get.js()`, or
`Get.load()`, and will be `undefined` if no data object was specified.
@property {Object} data
**/
/**
Array of errors that have occurred during this transaction, if any.
@since 3.5.0
@property {Object[]} errors
@property {String} errors.error Error message.
@property {Object} errors.request Request object related to the error.
**/
/**
Numeric id for this transaction, unique among all transactions within the same
YUI sandbox in the current pageview.
@property {Number} id
@since 3.5.0
**/
/**
HTMLElement nodes (native ones, not YUI Node instances) that have been inserted
during the current transaction.
@property {HTMLElement[]} nodes
**/
/**
Options associated with this transaction.
See `Get.options` for the full list of available options.
@property {Object} options
@since 3.5.0
**/
/**
Request objects contained in this transaction. Each request object represents
one CSS or JS URL that will be (or has been) requested and loaded into the page.
@property {Object} requests
@since 3.5.0
**/
/**
Id of the most recent transaction.
@property _lastId
@type Number
@protected
@static
**/
Transaction._lastId = 0;
Transaction.prototype = {
// -- Public Properties ----------------------------------------------------
/**
Current state of this transaction. One of "new", "executing", or "done".
@property _state
@type String
@protected
**/
_state: 'new', // "new", "executing", or "done"
// -- Public Methods -------------------------------------------------------
/**
Aborts this transaction.
This will cause the transaction's `onFailure` callback to be called and
will prevent any new script and link nodes from being added to the document,
but any resources that have already been requested will continue loading
(there's no safe way to prevent this, unfortunately).
@method abort
@param {String} [msg="Aborted."] Optional message to use in the `errors`
array describing why the transaction was aborted.
**/
abort: function (msg) {
this._pending = null;
this._pendingCSS = null;
this._pollTimer = clearTimeout(this._pollTimer);
this._queue = [];
this._reqsWaiting = 0;
this.errors.push({error: msg || 'Aborted'});
this._finish();
},
/**
Begins execting the transaction.
There's usually no reason to call this manually, since Get will call it
automatically when other pending transactions have finished. If you really
want to execute your transaction before Get does, you can, but be aware that
this transaction's scripts may end up executing before the scripts in other
pending transactions.
If the transaction is already executing, the specified callback (if any)
will be queued and called after execution finishes. If the transaction has
already finished, the callback will be called immediately (the transaction
will not be executed again).
@method execute
@param {Function} callback Callback function to execute after all requests
in the transaction are complete, or after the transaction is aborted.
**/
execute: function (callback) {
var self = this,
requests = self.requests,
state = self._state,
i, len, queue, req;
if (state === 'done') {
callback && callback(self.errors.length ? self.errors : null, self);
return;
} else {
callback && self._callbacks.push(callback);
if (state === 'executing') {
return;
}
}
self._state = 'executing';
self._queue = queue = [];
if (self.options.timeout) {
self._timeout = setTimeout(function () {
self.abort('Timeout');
}, self.options.timeout);
}
self._reqsWaiting = requests.length;
for (i = 0, len = requests.length; i < len; ++i) {
req = requests[i];
if (req.async || req.type === 'css') {
// No need to queue CSS or fully async JS.
self._insert(req);
} else {
queue.push(req);
}
}
self._next();
},
/**
Manually purges any `<script>` or `<link>` nodes this transaction has
created.
Be careful when purging a transaction that contains CSS requests, since
removing `<link>` nodes will also remove any styles they applied.
@method purge
**/
purge: function () {
Get._purge(this.nodes);
},
// -- Protected Methods ----------------------------------------------------
_createNode: function (name, attrs, doc) {
var node = doc.createElement(name),
attr, testEl;
if (!CUSTOM_ATTRS) {
// IE6 and IE7 expect property names rather than attribute names for
// certain attributes. Rather than sniffing, we do a quick feature
// test the first time _createNode() runs to determine whether we
// need to provide a workaround.
testEl = doc.createElement('div');
testEl.setAttribute('class', 'a');
CUSTOM_ATTRS = testEl.className === 'a' ? {} : {
'for' : 'htmlFor',
'class': 'className'
};
}
for (attr in attrs) {
if (attrs.hasOwnProperty(attr)) {
node.setAttribute(CUSTOM_ATTRS[attr] || attr, attrs[attr]);
}
}
return node;
},
_finish: function () {
var errors = this.errors.length ? this.errors : null,
options = this.options,
thisObj = options.context || this,
data, i, len;
if (this._state === 'done') {
return;
}
this._state = 'done';
for (i = 0, len = this._callbacks.length; i < len; ++i) {
this._callbacks[i].call(thisObj, errors, this);
}
data = this._getEventData();
if (errors) {
if (options.onTimeout && errors[errors.length - 1].error === 'Timeout') {
options.onTimeout.call(thisObj, data);
}
if (options.onFailure) {
options.onFailure.call(thisObj, data);
}
} else if (options.onSuccess) {
options.onSuccess.call(thisObj, data);
}
if (options.onEnd) {
options.onEnd.call(thisObj, data);
}
if (options._onFinish) {
options._onFinish();
}
},
_getEventData: function (req) {
if (req) {
// This merge is necessary for backcompat. I hate it.
return Y.merge(this, {
abort : this.abort, // have to copy these because the prototype isn't preserved
purge : this.purge,
request: req,
url : req.url,
win : req.win
});
} else {
return this;
}
},
_getInsertBefore: function (req) {
var doc = req.doc,
el = req.insertBefore,
cache, cachedNode, docStamp;
if (el) {
return typeof el === 'string' ? doc.getElementById(el) : el;
}
cache = Get._insertCache;
docStamp = Y.stamp(doc);
if ((el = cache[docStamp])) { // assignment
return el;
}
// Inserting before a <base> tag apparently works around an IE bug
// (according to a comment from pre-3.5.0 Y.Get), but I'm not sure what
// bug that is, exactly. Better safe than sorry?
if ((el = doc.getElementsByTagName('base')[0])) { // assignment
return (cache[docStamp] = el);
}
// Look for a <head> element.
el = doc.head || doc.getElementsByTagName('head')[0];
if (el) {
// Create a marker node at the end of <head> to use as an insertion
// point. Inserting before this node will ensure that all our CSS
// gets inserted in the correct order, to maintain style precedence.
el.appendChild(doc.createTextNode(''));
return (cache[docStamp] = el.lastChild);
}
// If all else fails, just insert before the first script node on the
// page, which is virtually guaranteed to exist.
return (cache[docStamp] = doc.getElementsByTagName('script')[0]);
},
_insert: function (req) {
var env = Get._env,
insertBefore = this._getInsertBefore(req),
isScript = req.type === 'js',
node = req.node,
self = this,
ua = Y.UA,
cssTimeout, nodeType;
if (!node) {
if (isScript) {
nodeType = 'script';
} else if (!env.cssLoad && ua.gecko) {
nodeType = 'style';
} else {
nodeType = 'link';
}
node = req.node = this._createNode(nodeType, req.attributes,
req.doc);
}
function onError() {
self._progress('Failed to load ' + req.url, req);
}
function onLoad() {
if (cssTimeout) {
clearTimeout(cssTimeout);
}
self._progress(null, req);
}
// Deal with script asynchronicity.
if (isScript) {
node.setAttribute('src', req.url);
if (req.async) {
// Explicitly indicate that we want the browser to execute this
// script asynchronously. This is necessary for older browsers
// like Firefox <4.
node.async = true;
} else {
if (env.async) {
// This browser treats injected scripts as async by default
// (standard HTML5 behavior) but asynchronous loading isn't
// desired, so tell the browser not to mark this script as
// async.
node.async = false;
}
// If this browser doesn't preserve script execution order based
// on insertion order, we'll need to avoid inserting other
// scripts until this one finishes loading.
if (!env.preservesScriptOrder) {
this._pending = req;
}
}
} else {
if (!env.cssLoad && ua.gecko) {
// In Firefox <9, we can import the requested URL into a <style>
// node and poll for the existence of node.sheet.cssRules. This
// gives us a reliable way to determine CSS load completion that
// also works for cross-domain stylesheets.
//
// Props to Zach Leatherman for calling my attention to this
// technique.
node.innerHTML = (req.attributes.charset ?
'@charset "' + req.attributes.charset + '";' : '') +
'@import "' + req.url + '";';
} else {
node.setAttribute('href', req.url);
}
}
// Inject the node.
if (isScript && ua.ie && (ua.ie < 9 || (document.documentMode && document.documentMode < 9))) {
// Script on IE < 9, and IE 9+ when in IE 8 or older modes, including quirks mode.
node.onreadystatechange = function () {
if (/loaded|complete/.test(node.readyState)) {
node.onreadystatechange = null;
onLoad();
}
};
} else if (!isScript && !env.cssLoad) {
// CSS on Firefox <9 or WebKit.
this._poll(req);
} else {
// Script or CSS on everything else. Using DOM 0 events because that
// evens the playing field with older IEs.
if (ua.ie >= 10) {
// We currently need to introduce a timeout for IE10, since it
// calls onerror/onload synchronously for 304s - messing up existing
// program flow.
// Remove this block if the following bug gets fixed by GA
// https://connect.microsoft.com/IE/feedback/details/763871/dynamically-loaded-scripts-with-304s-responses-interrupt-the-currently-executing-js-thread-onload
node.onerror = function() { setTimeout(onError, 0); };
node.onload = function() { setTimeout(onLoad, 0); };
} else {
node.onerror = onError;
node.onload = onLoad;
}
// If this browser doesn't fire an event when CSS fails to load,
// fail after a timeout to avoid blocking the transaction queue.
if (!env.cssFail && !isScript) {
cssTimeout = setTimeout(onError, req.timeout || 3000);
}
}
this.nodes.push(node);
insertBefore.parentNode.insertBefore(node, insertBefore);
},
_next: function () {
if (this._pending) {
return;
}
// If there are requests in the queue, insert the next queued request.
// Otherwise, if we're waiting on already-inserted requests to finish,
// wait longer. If there are no queued requests and we're not waiting
// for anything to load, then we're done!
if (this._queue.length) {
this._insert(this._queue.shift());
} else if (!this._reqsWaiting) {
this._finish();
}
},
_poll: function (newReq) {
var self = this,
pendingCSS = self._pendingCSS,
isWebKit = Y.UA.webkit,
i, hasRules, j, nodeHref, req, sheets;
if (newReq) {
pendingCSS || (pendingCSS = self._pendingCSS = []);
pendingCSS.push(newReq);
if (self._pollTimer) {
// A poll timeout is already pending, so no need to create a
// new one.
return;
}
}
self._pollTimer = null;
// Note: in both the WebKit and Gecko hacks below, a CSS URL that 404s
// will still be treated as a success. There's no good workaround for
// this.
for (i = 0; i < pendingCSS.length; ++i) {
req = pendingCSS[i];
if (isWebKit) {
// Look for a stylesheet matching the pending URL.
sheets = req.doc.styleSheets;
j = sheets.length;
nodeHref = req.node.href;
while (--j >= 0) {
if (sheets[j].href === nodeHref) {
pendingCSS.splice(i, 1);
i -= 1;
self._progress(null, req);
break;
}
}
} else {
// Many thanks to Zach Leatherman for calling my attention to
// the @import-based cross-domain technique used here, and to
// Oleg Slobodskoi for an earlier same-domain implementation.
//
// See Zach's blog for more details:
// http://www.zachleat.com/web/2010/07/29/load-css-dynamically/
try {
// We don't really need to store this value since we never
// use it again, but if we don't store it, Closure Compiler
// assumes the code is useless and removes it.
hasRules = !!req.node.sheet.cssRules;
// If we get here, the stylesheet has loaded.
pendingCSS.splice(i, 1);
i -= 1;
self._progress(null, req);
} catch (ex) {
// An exception means the stylesheet is still loading.
}
}
}
if (pendingCSS.length) {
self._pollTimer = setTimeout(function () {
self._poll.call(self);
}, self.options.pollInterval);
}
},
_progress: function (err, req) {
var options = this.options;
if (err) {
req.error = err;
this.errors.push({
error : err,
request: req
});
}
req.node._yuiget_finished = req.finished = true;
if (options.onProgress) {
options.onProgress.call(options.context || this,
this._getEventData(req));
}
if (req.autopurge) {
// Pre-3.5.0 Get always excludes the most recent node from an
// autopurge. I find this odd, but I'm keeping that behavior for
// the sake of backcompat.
Get._autoPurge(this.options.purgethreshold);
Get._purgeNodes.push(req.node);
}
if (this._pending === req) {
this._pending = null;
}
this._reqsWaiting -= 1;
this._next();
}
};
}, '3.7.3', {"requires": ["yui-base"]});
YUI.add('features', function (Y, NAME) {
var feature_tests = {};
/**
Contains the core of YUI's feature test architecture.
@module features
*/
/**
* Feature detection
* @class Features
* @static
*/
Y.mix(Y.namespace('Features'), {
/**
* Object hash of all registered feature tests
* @property tests
* @type Object
*/
tests: feature_tests,
/**
* Add a test to the system
*
* ```
* Y.Features.add("load", "1", {});
* ```
*
* @method add
* @param {String} cat The category, right now only 'load' is supported
* @param {String} name The number sequence of the test, how it's reported in the URL or config: 1, 2, 3
* @param {Object} o Object containing test properties
* @param {String} o.name The name of the test
* @param {Function} o.test The test function to execute, the only argument to the function is the `Y` instance
* @param {String} o.trigger The module that triggers this test.
*/
add: function(cat, name, o) {
feature_tests[cat] = feature_tests[cat] || {};
feature_tests[cat][name] = o;
},
/**
* Execute all tests of a given category and return the serialized results
*
* ```
* caps=1:1;2:1;3:0
* ```
* @method all
* @param {String} cat The category to execute
* @param {Array} args The arguments to pass to the test function
* @return {String} A semi-colon separated string of tests and their success/failure: 1:1;2:1;3:0
*/
all: function(cat, args) {
var cat_o = feature_tests[cat],
// results = {};
result = [];
if (cat_o) {
Y.Object.each(cat_o, function(v, k) {
result.push(k + ':' + (Y.Features.test(cat, k, args) ? 1 : 0));
});
}
return (result.length) ? result.join(';') : '';
},
/**
* Run a sepecific test and return a Boolean response.
*
* ```
* Y.Features.test("load", "1");
* ```
*
* @method test
* @param {String} cat The category of the test to run
* @param {String} name The name of the test to run
* @param {Array} args The arguments to pass to the test function
* @return {Boolean} True or false if the test passed/failed.
*/
test: function(cat, name, args) {
args = args || [];
var result, ua, test,
cat_o = feature_tests[cat],
feature = cat_o && cat_o[name];
if (!feature) {
} else {
result = feature.result;
if (Y.Lang.isUndefined(result)) {
ua = feature.ua;
if (ua) {
result = (Y.UA[ua]);
}
test = feature.test;
if (test && ((!ua) || result)) {
result = test.apply(Y, args);
}
feature.result = result;
}
}
return result;
}
});
// Y.Features.add("load", "1", {});
// Y.Features.test("load", "1");
// caps=1:1;2:0;3:1;
/* This file is auto-generated by src/loader/scripts/meta_join.js */
var add = Y.Features.add;
// app-transitions-native
add('load', '0', {
"name": "app-transitions-native",
"test": function (Y) {
var doc = Y.config.doc,
node = doc ? doc.documentElement : null;
if (node && node.style) {
return ('MozTransition' in node.style || 'WebkitTransition' in node.style || 'transition' in node.style);
}
return false;
},
"trigger": "app-transitions"
});
// autocomplete-list-keys
add('load', '1', {
"name": "autocomplete-list-keys",
"test": function (Y) {
// Only add keyboard support to autocomplete-list if this doesn't appear to
// be an iOS or Android-based mobile device.
//
// There's currently no feasible way to actually detect whether a device has
// a hardware keyboard, so this sniff will have to do. It can easily be
// overridden by manually loading the autocomplete-list-keys module.
//
// Worth noting: even though iOS supports bluetooth keyboards, Mobile Safari
// doesn't fire the keyboard events used by AutoCompleteList, so there's
// no point loading the -keys module even when a bluetooth keyboard may be
// available.
return !(Y.UA.ios || Y.UA.android);
},
"trigger": "autocomplete-list"
});
// dd-gestures
add('load', '2', {
"name": "dd-gestures",
"trigger": "dd-drag",
"ua": "touchEnabled"
});
// dom-style-ie
add('load', '3', {
"name": "dom-style-ie",
"test": function (Y) {
var testFeature = Y.Features.test,
addFeature = Y.Features.add,
WINDOW = Y.config.win,
DOCUMENT = Y.config.doc,
DOCUMENT_ELEMENT = 'documentElement',
ret = false;
addFeature('style', 'computedStyle', {
test: function() {
return WINDOW && 'getComputedStyle' in WINDOW;
}
});
addFeature('style', 'opacity', {
test: function() {
return DOCUMENT && 'opacity' in DOCUMENT[DOCUMENT_ELEMENT].style;
}
});
ret = (!testFeature('style', 'opacity') &&
!testFeature('style', 'computedStyle'));
return ret;
},
"trigger": "dom-style"
});
// editor-para-ie
add('load', '4', {
"name": "editor-para-ie",
"trigger": "editor-para",
"ua": "ie",
"when": "instead"
});
// event-base-ie
add('load', '5', {
"name": "event-base-ie",
"test": function(Y) {
var imp = Y.config.doc && Y.config.doc.implementation;
return (imp && (!imp.hasFeature('Events', '2.0')));
},
"trigger": "node-base"
});
// graphics-canvas
add('load', '6', {
"name": "graphics-canvas",
"test": function(Y) {
var DOCUMENT = Y.config.doc,
useCanvas = Y.config.defaultGraphicEngine && Y.config.defaultGraphicEngine == "canvas",
canvas = DOCUMENT && DOCUMENT.createElement("canvas"),
svg = (DOCUMENT && DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1"));
return (!svg || useCanvas) && (canvas && canvas.getContext && canvas.getContext("2d"));
},
"trigger": "graphics"
});
// graphics-canvas-default
add('load', '7', {
"name": "graphics-canvas-default",
"test": function(Y) {
var DOCUMENT = Y.config.doc,
useCanvas = Y.config.defaultGraphicEngine && Y.config.defaultGraphicEngine == "canvas",
canvas = DOCUMENT && DOCUMENT.createElement("canvas"),
svg = (DOCUMENT && DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1"));
return (!svg || useCanvas) && (canvas && canvas.getContext && canvas.getContext("2d"));
},
"trigger": "graphics"
});
// graphics-svg
add('load', '8', {
"name": "graphics-svg",
"test": function(Y) {
var DOCUMENT = Y.config.doc,
useSVG = !Y.config.defaultGraphicEngine || Y.config.defaultGraphicEngine != "canvas",
canvas = DOCUMENT && DOCUMENT.createElement("canvas"),
svg = (DOCUMENT && DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1"));
return svg && (useSVG || !canvas);
},
"trigger": "graphics"
});
// graphics-svg-default
add('load', '9', {
"name": "graphics-svg-default",
"test": function(Y) {
var DOCUMENT = Y.config.doc,
useSVG = !Y.config.defaultGraphicEngine || Y.config.defaultGraphicEngine != "canvas",
canvas = DOCUMENT && DOCUMENT.createElement("canvas"),
svg = (DOCUMENT && DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1"));
return svg && (useSVG || !canvas);
},
"trigger": "graphics"
});
// graphics-vml
add('load', '10', {
"name": "graphics-vml",
"test": function(Y) {
var DOCUMENT = Y.config.doc,
canvas = DOCUMENT && DOCUMENT.createElement("canvas");
return (DOCUMENT && !DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1") && (!canvas || !canvas.getContext || !canvas.getContext("2d")));
},
"trigger": "graphics"
});
// graphics-vml-default
add('load', '11', {
"name": "graphics-vml-default",
"test": function(Y) {
var DOCUMENT = Y.config.doc,
canvas = DOCUMENT && DOCUMENT.createElement("canvas");
return (DOCUMENT && !DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1") && (!canvas || !canvas.getContext || !canvas.getContext("2d")));
},
"trigger": "graphics"
});
// history-hash-ie
add('load', '12', {
"name": "history-hash-ie",
"test": function (Y) {
var docMode = Y.config.doc && Y.config.doc.documentMode;
return Y.UA.ie && (!('onhashchange' in Y.config.win) ||
!docMode || docMode < 8);
},
"trigger": "history-hash"
});
// io-nodejs
add('load', '13', {
"name": "io-nodejs",
"trigger": "io-base",
"ua": "nodejs"
});
// scrollview-base-ie
add('load', '14', {
"name": "scrollview-base-ie",
"trigger": "scrollview-base",
"ua": "ie"
});
// selector-css2
add('load', '15', {
"name": "selector-css2",
"test": function (Y) {
var DOCUMENT = Y.config.doc,
ret = DOCUMENT && !('querySelectorAll' in DOCUMENT);
return ret;
},
"trigger": "selector"
});
// transition-timer
add('load', '16', {
"name": "transition-timer",
"test": function (Y) {
var DOCUMENT = Y.config.doc,
node = (DOCUMENT) ? DOCUMENT.documentElement: null,
ret = true;
if (node && node.style) {
ret = !('MozTransition' in node.style || 'WebkitTransition' in node.style || 'transition' in node.style);
}
return ret;
},
"trigger": "transition"
});
// widget-base-ie
add('load', '17', {
"name": "widget-base-ie",
"trigger": "widget-base",
"ua": "ie"
});
// yql-nodejs
add('load', '18', {
"name": "yql-nodejs",
"trigger": "yql",
"ua": "nodejs",
"when": "after"
});
// yql-winjs
add('load', '19', {
"name": "yql-winjs",
"trigger": "yql",
"ua": "winjs",
"when": "after"
});
}, '3.7.3', {"requires": ["yui-base"]});
YUI.add('intl-base', function (Y, NAME) {
/**
* The Intl utility provides a central location for managing sets of
* localized resources (strings and formatting patterns).
*
* @class Intl
* @uses EventTarget
* @static
*/
var SPLIT_REGEX = /[, ]/;
Y.mix(Y.namespace('Intl'), {
/**
* Returns the language among those available that
* best matches the preferred language list, using the Lookup
* algorithm of BCP 47.
* If none of the available languages meets the user's preferences,
* then "" is returned.
* Extended language ranges are not supported.
*
* @method lookupBestLang
* @param {String[] | String} preferredLanguages The list of preferred
* languages in descending preference order, represented as BCP 47
* language tags. A string array or a comma-separated list.
* @param {String[]} availableLanguages The list of languages
* that the application supports, represented as BCP 47 language
* tags.
*
* @return {String} The available language that best matches the
* preferred language list, or "".
* @since 3.1.0
*/
lookupBestLang: function(preferredLanguages, availableLanguages) {
var i, language, result, index;
// check whether the list of available languages contains language;
// if so return it
function scan(language) {
var i;
for (i = 0; i < availableLanguages.length; i += 1) {
if (language.toLowerCase() ===
availableLanguages[i].toLowerCase()) {
return availableLanguages[i];
}
}
}
if (Y.Lang.isString(preferredLanguages)) {
preferredLanguages = preferredLanguages.split(SPLIT_REGEX);
}
for (i = 0; i < preferredLanguages.length; i += 1) {
language = preferredLanguages[i];
if (!language || language === '*') {
continue;
}
// check the fallback sequence for one language
while (language.length > 0) {
result = scan(language);
if (result) {
return result;
} else {
index = language.lastIndexOf('-');
if (index >= 0) {
language = language.substring(0, index);
// one-character subtags get cut along with the
// following subtag
if (index >= 2 && language.charAt(index - 2) === '-') {
language = language.substring(0, index - 2);
}
} else {
// nothing available for this language
break;
}
}
}
}
return '';
}
});
}, '3.7.3', {"requires": ["yui-base"]});
YUI.add('yui-log', function (Y, NAME) {
/**
* Provides console log capability and exposes a custom event for
* console implementations. This module is a `core` YUI module, <a href="../classes/YUI.html#method_log">it's documentation is located under the YUI class</a>.
*
* @module yui
* @submodule yui-log
*/
var INSTANCE = Y,
LOGEVENT = 'yui:log',
UNDEFINED = 'undefined',
LEVELS = { debug: 1,
info: 1,
warn: 1,
error: 1 };
/**
* If the 'debug' config is true, a 'yui:log' event will be
* dispatched, which the Console widget and anything else
* can consume. If the 'useBrowserConsole' config is true, it will
* write to the browser console if available. YUI-specific log
* messages will only be present in the -debug versions of the
* JS files. The build system is supposed to remove log statements
* from the raw and minified versions of the files.
*
* @method log
* @for YUI
* @param {String} msg The message to log.
* @param {String} cat The log category for the message. Default
* categories are "info", "warn", "error", time".
* Custom categories can be used as well. (opt).
* @param {String} src The source of the the message (opt).
* @param {boolean} silent If true, the log event won't fire.
* @return {YUI} YUI instance.
*/
INSTANCE.log = function(msg, cat, src, silent) {
var bail, excl, incl, m, f,
Y = INSTANCE,
c = Y.config,
publisher = (Y.fire) ? Y : YUI.Env.globalEvents;
// suppress log message if the config is off or the event stack
// or the event call stack contains a consumer of the yui:log event
if (c.debug) {
// apply source filters
src = src || "";
if (typeof src !== "undefined") {
excl = c.logExclude;
incl = c.logInclude;
if (incl && !(src in incl)) {
bail = 1;
} else if (incl && (src in incl)) {
bail = !incl[src];
} else if (excl && (src in excl)) {
bail = excl[src];
}
}
if (!bail) {
if (c.useBrowserConsole) {
m = (src) ? src + ': ' + msg : msg;
if (Y.Lang.isFunction(c.logFn)) {
c.logFn.call(Y, msg, cat, src);
} else if (typeof console != UNDEFINED && console.log) {
f = (cat && console[cat] && (cat in LEVELS)) ? cat : 'log';
console[f](m);
} else if (typeof opera != UNDEFINED) {
opera.postError(m);
}
}
if (publisher && !silent) {
if (publisher == Y && (!publisher.getEvent(LOGEVENT))) {
publisher.publish(LOGEVENT, {
broadcast: 2
});
}
publisher.fire(LOGEVENT, {
msg: msg,
cat: cat,
src: src
});
}
}
}
return Y;
};
/**
* Write a system message. This message will be preserved in the
* minified and raw versions of the YUI files, unlike log statements.
* @method message
* @for YUI
* @param {String} msg The message to log.
* @param {String} cat The log category for the message. Default
* categories are "info", "warn", "error", time".
* Custom categories can be used as well. (opt).
* @param {String} src The source of the the message (opt).
* @param {boolean} silent If true, the log event won't fire.
* @return {YUI} YUI instance.
*/
INSTANCE.message = function() {
return INSTANCE.log.apply(INSTANCE, arguments);
};
}, '3.7.3', {"requires": ["yui-base"]});
YUI.add('yui-later', function (Y, NAME) {
/**
* Provides a setTimeout/setInterval wrapper. This module is a `core` YUI module, <a href="../classes/YUI.html#method_later">it's documentation is located under the YUI class</a>.
*
* @module yui
* @submodule yui-later
*/
var NO_ARGS = [];
/**
* Executes the supplied function in the context of the supplied
* object 'when' milliseconds later. Executes the function a
* single time unless periodic is set to true.
* @for YUI
* @method later
* @param when {int} the number of milliseconds to wait until the fn
* is executed.
* @param o the context object.
* @param fn {Function|String} the function to execute or the name of
* the method in the 'o' object to execute.
* @param data [Array] data that is provided to the function. This
* accepts either a single item or an array. If an array is provided,
* the function is executed with one parameter for each array item.
* If you need to pass a single array parameter, it needs to be wrapped
* in an array [myarray].
*
* Note: native methods in IE may not have the call and apply methods.
* In this case, it will work, but you are limited to four arguments.
*
* @param periodic {boolean} if true, executes continuously at supplied
* interval until canceled.
* @return {object} a timer object. Call the cancel() method on this
* object to stop the timer.
*/
Y.later = function(when, o, fn, data, periodic) {
when = when || 0;
data = (!Y.Lang.isUndefined(data)) ? Y.Array(data) : NO_ARGS;
o = o || Y.config.win || Y;
var cancelled = false,
method = (o && Y.Lang.isString(fn)) ? o[fn] : fn,
wrapper = function() {
// IE 8- may execute a setInterval callback one last time
// after clearInterval was called, so in order to preserve
// the cancel() === no more runny-run, we have to jump through
// an extra hoop.
if (!cancelled) {
if (!method.apply) {
method(data[0], data[1], data[2], data[3]);
} else {
method.apply(o, data || NO_ARGS);
}
}
},
id = (periodic) ? setInterval(wrapper, when) : setTimeout(wrapper, when);
return {
id: id,
interval: periodic,
cancel: function() {
cancelled = true;
if (this.interval) {
clearInterval(id);
} else {
clearTimeout(id);
}
}
};
};
Y.Lang.later = Y.later;
}, '3.7.3', {"requires": ["yui-base"]});
YUI.add('yui', function (Y, NAME) {}, '3.7.3', {"use": ["get", "features", "intl-base", "yui-log", "yui-later"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('oop', function (Y, NAME) {
/**
Adds object inheritance and manipulation utilities to the YUI instance. This
module is required by most YUI components.
@module oop
**/
var L = Y.Lang,
A = Y.Array,
OP = Object.prototype,
CLONE_MARKER = '_~yuim~_',
hasOwn = OP.hasOwnProperty,
toString = OP.toString;
function dispatch(o, f, c, proto, action) {
if (o && o[action] && o !== Y) {
return o[action].call(o, f, c);
} else {
switch (A.test(o)) {
case 1:
return A[action](o, f, c);
case 2:
return A[action](Y.Array(o, 0, true), f, c);
default:
return Y.Object[action](o, f, c, proto);
}
}
}
/**
Augments the _receiver_ with prototype properties from the _supplier_. The
receiver may be a constructor function or an object. The supplier must be a
constructor function.
If the _receiver_ is an object, then the _supplier_ constructor will be called
immediately after _receiver_ is augmented, with _receiver_ as the `this` object.
If the _receiver_ is a constructor function, then all prototype methods of
_supplier_ that are copied to _receiver_ will be sequestered, and the
_supplier_ constructor will not be called immediately. The first time any
sequestered method is called on the _receiver_'s prototype, all sequestered
methods will be immediately copied to the _receiver_'s prototype, the
_supplier_'s constructor will be executed, and finally the newly unsequestered
method that was called will be executed.
This sequestering logic sounds like a bunch of complicated voodoo, but it makes
it cheap to perform frequent augmentation by ensuring that suppliers'
constructors are only called if a supplied method is actually used. If none of
the supplied methods is ever used, then there's no need to take the performance
hit of calling the _supplier_'s constructor.
@method augment
@param {Function|Object} receiver Object or function to be augmented.
@param {Function} supplier Function that supplies the prototype properties with
which to augment the _receiver_.
@param {Boolean} [overwrite=false] If `true`, properties already on the receiver
will be overwritten if found on the supplier's prototype.
@param {String[]} [whitelist] An array of property names. If specified,
only the whitelisted prototype properties will be applied to the receiver, and
all others will be ignored.
@param {Array|any} [args] Argument or array of arguments to pass to the
supplier's constructor when initializing.
@return {Function} Augmented object.
@for YUI
**/
Y.augment = function (receiver, supplier, overwrite, whitelist, args) {
var rProto = receiver.prototype,
sequester = rProto && supplier,
sProto = supplier.prototype,
to = rProto || receiver,
copy,
newPrototype,
replacements,
sequestered,
unsequester;
args = args ? Y.Array(args) : [];
if (sequester) {
newPrototype = {};
replacements = {};
sequestered = {};
copy = function (value, key) {
if (overwrite || !(key in rProto)) {
if (toString.call(value) === '[object Function]') {
sequestered[key] = value;
newPrototype[key] = replacements[key] = function () {
return unsequester(this, value, arguments);
};
} else {
newPrototype[key] = value;
}
}
};
unsequester = function (instance, fn, fnArgs) {
// Unsequester all sequestered functions.
for (var key in sequestered) {
if (hasOwn.call(sequestered, key)
&& instance[key] === replacements[key]) {
instance[key] = sequestered[key];
}
}
// Execute the supplier constructor.
supplier.apply(instance, args);
// Finally, execute the original sequestered function.
return fn.apply(instance, fnArgs);
};
if (whitelist) {
Y.Array.each(whitelist, function (name) {
if (name in sProto) {
copy(sProto[name], name);
}
});
} else {
Y.Object.each(sProto, copy, null, true);
}
}
Y.mix(to, newPrototype || sProto, overwrite, whitelist);
if (!sequester) {
supplier.apply(to, args);
}
return receiver;
};
/**
* Copies object properties from the supplier to the receiver. If the target has
* the property, and the property is an object, the target object will be
* augmented with the supplier's value.
*
* @method aggregate
* @param {Object} receiver Object to receive the augmentation.
* @param {Object} supplier Object that supplies the properties with which to
* augment the receiver.
* @param {Boolean} [overwrite=false] If `true`, properties already on the receiver
* will be overwritten if found on the supplier.
* @param {String[]} [whitelist] Whitelist. If supplied, only properties in this
* list will be applied to the receiver.
* @return {Object} Augmented object.
*/
Y.aggregate = function(r, s, ov, wl) {
return Y.mix(r, s, ov, wl, 0, true);
};
/**
* Utility to set up the prototype, constructor and superclass properties to
* support an inheritance strategy that can chain constructors and methods.
* Static members will not be inherited.
*
* @method extend
* @param {function} r the object to modify.
* @param {function} s the object to inherit.
* @param {object} px prototype properties to add/override.
* @param {object} sx static properties to add/override.
* @return {object} the extended object.
*/
Y.extend = function(r, s, px, sx) {
if (!s || !r) {
Y.error('extend failed, verify dependencies');
}
var sp = s.prototype, rp = Y.Object(sp);
r.prototype = rp;
rp.constructor = r;
r.superclass = sp;
// assign constructor property
if (s != Object && sp.constructor == OP.constructor) {
sp.constructor = s;
}
// add prototype overrides
if (px) {
Y.mix(rp, px, true);
}
// add object overrides
if (sx) {
Y.mix(r, sx, true);
}
return r;
};
/**
* Executes the supplied function for each item in
* a collection. Supports arrays, objects, and
* NodeLists
* @method each
* @param {object} o the object to iterate.
* @param {function} f the function to execute. This function
* receives the value, key, and object as parameters.
* @param {object} c the execution context for the function.
* @param {boolean} proto if true, prototype properties are
* iterated on objects.
* @return {YUI} the YUI instance.
*/
Y.each = function(o, f, c, proto) {
return dispatch(o, f, c, proto, 'each');
};
/**
* Executes the supplied function for each item in
* a collection. The operation stops if the function
* returns true. Supports arrays, objects, and
* NodeLists.
* @method some
* @param {object} o the object to iterate.
* @param {function} f the function to execute. This function
* receives the value, key, and object as parameters.
* @param {object} c the execution context for the function.
* @param {boolean} proto if true, prototype properties are
* iterated on objects.
* @return {boolean} true if the function ever returns true,
* false otherwise.
*/
Y.some = function(o, f, c, proto) {
return dispatch(o, f, c, proto, 'some');
};
/**
* Deep object/array copy. Function clones are actually
* wrappers around the original function.
* Array-like objects are treated as arrays.
* Primitives are returned untouched. Optionally, a
* function can be provided to handle other data types,
* filter keys, validate values, etc.
*
* NOTE: Cloning a non-trivial object is a reasonably heavy operation, due to
* the need to recurrsively iterate down non-primitive properties. Clone
* should be used only when a deep clone down to leaf level properties
* is explicitly required.
*
* In many cases (for example, when trying to isolate objects used as
* hashes for configuration properties), a shallow copy, using Y.merge is
* normally sufficient. If more than one level of isolation is required,
* Y.merge can be used selectively at each level which needs to be
* isolated from the original without going all the way to leaf properties.
*
* @method clone
* @param {object} o what to clone.
* @param {boolean} safe if true, objects will not have prototype
* items from the source. If false, they will. In this case, the
* original is initially protected, but the clone is not completely
* immune from changes to the source object prototype. Also, cloned
* prototype items that are deleted from the clone will result
* in the value of the source prototype being exposed. If operating
* on a non-safe clone, items should be nulled out rather than deleted.
* @param {function} f optional function to apply to each item in a
* collection; it will be executed prior to applying the value to
* the new object. Return false to prevent the copy.
* @param {object} c optional execution context for f.
* @param {object} owner Owner object passed when clone is iterating
* an object. Used to set up context for cloned functions.
* @param {object} cloned hash of previously cloned objects to avoid
* multiple clones.
* @return {Array|Object} the cloned object.
*/
Y.clone = function(o, safe, f, c, owner, cloned) {
if (!L.isObject(o)) {
return o;
}
// @todo cloning YUI instances doesn't currently work
if (Y.instanceOf(o, YUI)) {
return o;
}
var o2, marked = cloned || {}, stamp,
yeach = Y.each;
switch (L.type(o)) {
case 'date':
return new Date(o);
case 'regexp':
// if we do this we need to set the flags too
// return new RegExp(o.source);
return o;
case 'function':
// o2 = Y.bind(o, owner);
// break;
return o;
case 'array':
o2 = [];
break;
default:
// #2528250 only one clone of a given object should be created.
if (o[CLONE_MARKER]) {
return marked[o[CLONE_MARKER]];
}
stamp = Y.guid();
o2 = (safe) ? {} : Y.Object(o);
o[CLONE_MARKER] = stamp;
marked[stamp] = o;
}
// #2528250 don't try to clone element properties
if (!o.addEventListener && !o.attachEvent) {
yeach(o, function(v, k) {
if ((k || k === 0) && (!f || (f.call(c || this, v, k, this, o) !== false))) {
if (k !== CLONE_MARKER) {
if (k == 'prototype') {
// skip the prototype
// } else if (o[k] === o) {
// this[k] = this;
} else {
this[k] =
Y.clone(v, safe, f, c, owner || o, marked);
}
}
}
}, o2);
}
if (!cloned) {
Y.Object.each(marked, function(v, k) {
if (v[CLONE_MARKER]) {
try {
delete v[CLONE_MARKER];
} catch (e) {
v[CLONE_MARKER] = null;
}
}
}, this);
marked = null;
}
return o2;
};
/**
* Returns a function that will execute the supplied function in the
* supplied object's context, optionally adding any additional
* supplied parameters to the beginning of the arguments collection the
* supplied to the function.
*
* @method bind
* @param {Function|String} f the function to bind, or a function name
* to execute on the context object.
* @param {object} c the execution context.
* @param {any} args* 0..n arguments to include before the arguments the
* function is executed with.
* @return {function} the wrapped function.
*/
Y.bind = function(f, c) {
var xargs = arguments.length > 2 ?
Y.Array(arguments, 2, true) : null;
return function() {
var fn = L.isString(f) ? c[f] : f,
args = (xargs) ?
xargs.concat(Y.Array(arguments, 0, true)) : arguments;
return fn.apply(c || fn, args);
};
};
/**
* Returns a function that will execute the supplied function in the
* supplied object's context, optionally adding any additional
* supplied parameters to the end of the arguments the function
* is executed with.
*
* @method rbind
* @param {Function|String} f the function to bind, or a function name
* to execute on the context object.
* @param {object} c the execution context.
* @param {any} args* 0..n arguments to append to the end of
* arguments collection supplied to the function.
* @return {function} the wrapped function.
*/
Y.rbind = function(f, c) {
var xargs = arguments.length > 2 ? Y.Array(arguments, 2, true) : null;
return function() {
var fn = L.isString(f) ? c[f] : f,
args = (xargs) ?
Y.Array(arguments, 0, true).concat(xargs) : arguments;
return fn.apply(c || fn, args);
};
};
}, '3.7.3', {"requires": ["yui-base"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
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] on or after subscriber array
* @param [index] 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
**/
}, '3.7.3', {"requires": ["oop"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('features', function (Y, NAME) {
var feature_tests = {};
/**
Contains the core of YUI's feature test architecture.
@module features
*/
/**
* Feature detection
* @class Features
* @static
*/
Y.mix(Y.namespace('Features'), {
/**
* Object hash of all registered feature tests
* @property tests
* @type Object
*/
tests: feature_tests,
/**
* Add a test to the system
*
* ```
* Y.Features.add("load", "1", {});
* ```
*
* @method add
* @param {String} cat The category, right now only 'load' is supported
* @param {String} name The number sequence of the test, how it's reported in the URL or config: 1, 2, 3
* @param {Object} o Object containing test properties
* @param {String} o.name The name of the test
* @param {Function} o.test The test function to execute, the only argument to the function is the `Y` instance
* @param {String} o.trigger The module that triggers this test.
*/
add: function(cat, name, o) {
feature_tests[cat] = feature_tests[cat] || {};
feature_tests[cat][name] = o;
},
/**
* Execute all tests of a given category and return the serialized results
*
* ```
* caps=1:1;2:1;3:0
* ```
* @method all
* @param {String} cat The category to execute
* @param {Array} args The arguments to pass to the test function
* @return {String} A semi-colon separated string of tests and their success/failure: 1:1;2:1;3:0
*/
all: function(cat, args) {
var cat_o = feature_tests[cat],
// results = {};
result = [];
if (cat_o) {
Y.Object.each(cat_o, function(v, k) {
result.push(k + ':' + (Y.Features.test(cat, k, args) ? 1 : 0));
});
}
return (result.length) ? result.join(';') : '';
},
/**
* Run a sepecific test and return a Boolean response.
*
* ```
* Y.Features.test("load", "1");
* ```
*
* @method test
* @param {String} cat The category of the test to run
* @param {String} name The name of the test to run
* @param {Array} args The arguments to pass to the test function
* @return {Boolean} True or false if the test passed/failed.
*/
test: function(cat, name, args) {
args = args || [];
var result, ua, test,
cat_o = feature_tests[cat],
feature = cat_o && cat_o[name];
if (!feature) {
} else {
result = feature.result;
if (Y.Lang.isUndefined(result)) {
ua = feature.ua;
if (ua) {
result = (Y.UA[ua]);
}
test = feature.test;
if (test && ((!ua) || result)) {
result = test.apply(Y, args);
}
feature.result = result;
}
}
return result;
}
});
// Y.Features.add("load", "1", {});
// Y.Features.test("load", "1");
// caps=1:1;2:0;3:1;
/* This file is auto-generated by src/loader/scripts/meta_join.js */
var add = Y.Features.add;
// app-transitions-native
add('load', '0', {
"name": "app-transitions-native",
"test": function (Y) {
var doc = Y.config.doc,
node = doc ? doc.documentElement : null;
if (node && node.style) {
return ('MozTransition' in node.style || 'WebkitTransition' in node.style || 'transition' in node.style);
}
return false;
},
"trigger": "app-transitions"
});
// autocomplete-list-keys
add('load', '1', {
"name": "autocomplete-list-keys",
"test": function (Y) {
// Only add keyboard support to autocomplete-list if this doesn't appear to
// be an iOS or Android-based mobile device.
//
// There's currently no feasible way to actually detect whether a device has
// a hardware keyboard, so this sniff will have to do. It can easily be
// overridden by manually loading the autocomplete-list-keys module.
//
// Worth noting: even though iOS supports bluetooth keyboards, Mobile Safari
// doesn't fire the keyboard events used by AutoCompleteList, so there's
// no point loading the -keys module even when a bluetooth keyboard may be
// available.
return !(Y.UA.ios || Y.UA.android);
},
"trigger": "autocomplete-list"
});
// dd-gestures
add('load', '2', {
"name": "dd-gestures",
"trigger": "dd-drag",
"ua": "touchEnabled"
});
// dom-style-ie
add('load', '3', {
"name": "dom-style-ie",
"test": function (Y) {
var testFeature = Y.Features.test,
addFeature = Y.Features.add,
WINDOW = Y.config.win,
DOCUMENT = Y.config.doc,
DOCUMENT_ELEMENT = 'documentElement',
ret = false;
addFeature('style', 'computedStyle', {
test: function() {
return WINDOW && 'getComputedStyle' in WINDOW;
}
});
addFeature('style', 'opacity', {
test: function() {
return DOCUMENT && 'opacity' in DOCUMENT[DOCUMENT_ELEMENT].style;
}
});
ret = (!testFeature('style', 'opacity') &&
!testFeature('style', 'computedStyle'));
return ret;
},
"trigger": "dom-style"
});
// editor-para-ie
add('load', '4', {
"name": "editor-para-ie",
"trigger": "editor-para",
"ua": "ie",
"when": "instead"
});
// event-base-ie
add('load', '5', {
"name": "event-base-ie",
"test": function(Y) {
var imp = Y.config.doc && Y.config.doc.implementation;
return (imp && (!imp.hasFeature('Events', '2.0')));
},
"trigger": "node-base"
});
// graphics-canvas
add('load', '6', {
"name": "graphics-canvas",
"test": function(Y) {
var DOCUMENT = Y.config.doc,
useCanvas = Y.config.defaultGraphicEngine && Y.config.defaultGraphicEngine == "canvas",
canvas = DOCUMENT && DOCUMENT.createElement("canvas"),
svg = (DOCUMENT && DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1"));
return (!svg || useCanvas) && (canvas && canvas.getContext && canvas.getContext("2d"));
},
"trigger": "graphics"
});
// graphics-canvas-default
add('load', '7', {
"name": "graphics-canvas-default",
"test": function(Y) {
var DOCUMENT = Y.config.doc,
useCanvas = Y.config.defaultGraphicEngine && Y.config.defaultGraphicEngine == "canvas",
canvas = DOCUMENT && DOCUMENT.createElement("canvas"),
svg = (DOCUMENT && DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1"));
return (!svg || useCanvas) && (canvas && canvas.getContext && canvas.getContext("2d"));
},
"trigger": "graphics"
});
// graphics-svg
add('load', '8', {
"name": "graphics-svg",
"test": function(Y) {
var DOCUMENT = Y.config.doc,
useSVG = !Y.config.defaultGraphicEngine || Y.config.defaultGraphicEngine != "canvas",
canvas = DOCUMENT && DOCUMENT.createElement("canvas"),
svg = (DOCUMENT && DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1"));
return svg && (useSVG || !canvas);
},
"trigger": "graphics"
});
// graphics-svg-default
add('load', '9', {
"name": "graphics-svg-default",
"test": function(Y) {
var DOCUMENT = Y.config.doc,
useSVG = !Y.config.defaultGraphicEngine || Y.config.defaultGraphicEngine != "canvas",
canvas = DOCUMENT && DOCUMENT.createElement("canvas"),
svg = (DOCUMENT && DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1"));
return svg && (useSVG || !canvas);
},
"trigger": "graphics"
});
// graphics-vml
add('load', '10', {
"name": "graphics-vml",
"test": function(Y) {
var DOCUMENT = Y.config.doc,
canvas = DOCUMENT && DOCUMENT.createElement("canvas");
return (DOCUMENT && !DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1") && (!canvas || !canvas.getContext || !canvas.getContext("2d")));
},
"trigger": "graphics"
});
// graphics-vml-default
add('load', '11', {
"name": "graphics-vml-default",
"test": function(Y) {
var DOCUMENT = Y.config.doc,
canvas = DOCUMENT && DOCUMENT.createElement("canvas");
return (DOCUMENT && !DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1") && (!canvas || !canvas.getContext || !canvas.getContext("2d")));
},
"trigger": "graphics"
});
// history-hash-ie
add('load', '12', {
"name": "history-hash-ie",
"test": function (Y) {
var docMode = Y.config.doc && Y.config.doc.documentMode;
return Y.UA.ie && (!('onhashchange' in Y.config.win) ||
!docMode || docMode < 8);
},
"trigger": "history-hash"
});
// io-nodejs
add('load', '13', {
"name": "io-nodejs",
"trigger": "io-base",
"ua": "nodejs"
});
// scrollview-base-ie
add('load', '14', {
"name": "scrollview-base-ie",
"trigger": "scrollview-base",
"ua": "ie"
});
// selector-css2
add('load', '15', {
"name": "selector-css2",
"test": function (Y) {
var DOCUMENT = Y.config.doc,
ret = DOCUMENT && !('querySelectorAll' in DOCUMENT);
return ret;
},
"trigger": "selector"
});
// transition-timer
add('load', '16', {
"name": "transition-timer",
"test": function (Y) {
var DOCUMENT = Y.config.doc,
node = (DOCUMENT) ? DOCUMENT.documentElement: null,
ret = true;
if (node && node.style) {
ret = !('MozTransition' in node.style || 'WebkitTransition' in node.style || 'transition' in node.style);
}
return ret;
},
"trigger": "transition"
});
// widget-base-ie
add('load', '17', {
"name": "widget-base-ie",
"trigger": "widget-base",
"ua": "ie"
});
// yql-nodejs
add('load', '18', {
"name": "yql-nodejs",
"trigger": "yql",
"ua": "nodejs",
"when": "after"
});
// yql-winjs
add('load', '19', {
"name": "yql-winjs",
"trigger": "yql",
"ua": "winjs",
"when": "after"
});
}, '3.7.3', {"requires": ["yui-base"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('dom-core', function (Y, NAME) {
var NODE_TYPE = 'nodeType',
OWNER_DOCUMENT = 'ownerDocument',
DOCUMENT_ELEMENT = 'documentElement',
DEFAULT_VIEW = 'defaultView',
PARENT_WINDOW = 'parentWindow',
TAG_NAME = 'tagName',
PARENT_NODE = 'parentNode',
PREVIOUS_SIBLING = 'previousSibling',
NEXT_SIBLING = 'nextSibling',
CONTAINS = 'contains',
COMPARE_DOCUMENT_POSITION = 'compareDocumentPosition',
EMPTY_ARRAY = [],
// IE < 8 throws on node.contains(textNode)
supportsContainsTextNode = (function() {
var node = Y.config.doc.createElement('div'),
textNode = node.appendChild(Y.config.doc.createTextNode('')),
result = false;
try {
result = node.contains(textNode);
} catch(e) {}
return result;
})(),
/**
* The DOM utility provides a cross-browser abtraction layer
* normalizing DOM tasks, and adds extra helper functionality
* for other common tasks.
* @module dom
* @main dom
* @submodule dom-base
* @for DOM
*
*/
/**
* Provides DOM helper methods.
* @class DOM
*
*/
Y_DOM = {
/**
* Returns the HTMLElement with the given ID (Wrapper for document.getElementById).
* @method byId
* @param {String} id the id attribute
* @param {Object} doc optional The document to search. Defaults to current document
* @return {HTMLElement | null} The HTMLElement with the id, or null if none found.
*/
byId: function(id, doc) {
// handle dupe IDs and IE name collision
return Y_DOM.allById(id, doc)[0] || null;
},
getId: function(node) {
var id;
// HTMLElement returned from FORM when INPUT name === "id"
// IE < 8: HTMLCollection returned when INPUT id === "id"
// via both getAttribute and form.id
if (node.id && !node.id.tagName && !node.id.item) {
id = node.id;
} else if (node.attributes && node.attributes.id) {
id = node.attributes.id.value;
}
return id;
},
setId: function(node, id) {
if (node.setAttribute) {
node.setAttribute('id', id);
} else {
node.id = id;
}
},
/*
* Finds the ancestor of the element.
* @method ancestor
* @param {HTMLElement} element The html element.
* @param {Function} fn optional An optional boolean test to apply.
* The optional function is passed the current DOM node being tested as its only argument.
* If no function is given, the parentNode is returned.
* @param {Boolean} testSelf optional Whether or not to include the element in the scan
* @return {HTMLElement | null} The matching DOM node or null if none found.
*/
ancestor: function(element, fn, testSelf, stopFn) {
var ret = null;
if (testSelf) {
ret = (!fn || fn(element)) ? element : null;
}
return ret || Y_DOM.elementByAxis(element, PARENT_NODE, fn, null, stopFn);
},
/*
* Finds the ancestors of the element.
* @method ancestors
* @param {HTMLElement} element The html element.
* @param {Function} fn optional An optional boolean test to apply.
* The optional function is passed the current DOM node being tested as its only argument.
* If no function is given, all ancestors are returned.
* @param {Boolean} testSelf optional Whether or not to include the element in the scan
* @return {Array} An array containing all matching DOM nodes.
*/
ancestors: function(element, fn, testSelf, stopFn) {
var ancestor = element,
ret = [];
while ((ancestor = Y_DOM.ancestor(ancestor, fn, testSelf, stopFn))) {
testSelf = false;
if (ancestor) {
ret.unshift(ancestor);
if (stopFn && stopFn(ancestor)) {
return ret;
}
}
}
return ret;
},
/**
* Searches the element by the given axis for the first matching element.
* @method elementByAxis
* @param {HTMLElement} element The html element.
* @param {String} axis The axis to search (parentNode, nextSibling, previousSibling).
* @param {Function} fn optional An optional boolean test to apply.
* @param {Boolean} all optional Whether all node types should be returned, or just element nodes.
* The optional function is passed the current HTMLElement being tested as its only argument.
* If no function is given, the first element is returned.
* @return {HTMLElement | null} The matching element or null if none found.
*/
elementByAxis: function(element, axis, fn, all, stopAt) {
while (element && (element = element[axis])) { // NOTE: assignment
if ( (all || element[TAG_NAME]) && (!fn || fn(element)) ) {
return element;
}
if (stopAt && stopAt(element)) {
return null;
}
}
return null;
},
/**
* Determines whether or not one HTMLElement is or contains another HTMLElement.
* @method contains
* @param {HTMLElement} element The containing html element.
* @param {HTMLElement} needle The html element that may be contained.
* @return {Boolean} Whether or not the element is or contains the needle.
*/
contains: function(element, needle) {
var ret = false;
if ( !needle || !element || !needle[NODE_TYPE] || !element[NODE_TYPE]) {
ret = false;
} else if (element[CONTAINS] &&
// IE < 8 throws on node.contains(textNode) so fall back to brute.
// Falling back for other nodeTypes as well.
(needle[NODE_TYPE] === 1 || supportsContainsTextNode)) {
ret = element[CONTAINS](needle);
} else if (element[COMPARE_DOCUMENT_POSITION]) {
// Match contains behavior (node.contains(node) === true).
// Needed for Firefox < 4.
if (element === needle || !!(element[COMPARE_DOCUMENT_POSITION](needle) & 16)) {
ret = true;
}
} else {
ret = Y_DOM._bruteContains(element, needle);
}
return ret;
},
/**
* Determines whether or not the HTMLElement is part of the document.
* @method inDoc
* @param {HTMLElement} element The containing html element.
* @param {HTMLElement} doc optional The document to check.
* @return {Boolean} Whether or not the element is attached to the document.
*/
inDoc: function(element, doc) {
var ret = false,
rootNode;
if (element && element.nodeType) {
(doc) || (doc = element[OWNER_DOCUMENT]);
rootNode = doc[DOCUMENT_ELEMENT];
// contains only works with HTML_ELEMENT
if (rootNode && rootNode.contains && element.tagName) {
ret = rootNode.contains(element);
} else {
ret = Y_DOM.contains(rootNode, element);
}
}
return ret;
},
allById: function(id, root) {
root = root || Y.config.doc;
var nodes = [],
ret = [],
i,
node;
if (root.querySelectorAll) {
ret = root.querySelectorAll('[id="' + id + '"]');
} else if (root.all) {
nodes = root.all(id);
if (nodes) {
// root.all may return HTMLElement or HTMLCollection.
// some elements are also HTMLCollection (FORM, SELECT).
if (nodes.nodeName) {
if (nodes.id === id) { // avoid false positive on name
ret.push(nodes);
nodes = EMPTY_ARRAY; // done, no need to filter
} else { // prep for filtering
nodes = [nodes];
}
}
if (nodes.length) {
// filter out matches on node.name
// and element.id as reference to element with id === 'id'
for (i = 0; node = nodes[i++];) {
if (node.id === id ||
(node.attributes && node.attributes.id &&
node.attributes.id.value === id)) {
ret.push(node);
}
}
}
}
} else {
ret = [Y_DOM._getDoc(root).getElementById(id)];
}
return ret;
},
isWindow: function(obj) {
return !!(obj && obj.scrollTo && obj.document);
},
_removeChildNodes: function(node) {
while (node.firstChild) {
node.removeChild(node.firstChild);
}
},
siblings: function(node, fn) {
var nodes = [],
sibling = node;
while ((sibling = sibling[PREVIOUS_SIBLING])) {
if (sibling[TAG_NAME] && (!fn || fn(sibling))) {
nodes.unshift(sibling);
}
}
sibling = node;
while ((sibling = sibling[NEXT_SIBLING])) {
if (sibling[TAG_NAME] && (!fn || fn(sibling))) {
nodes.push(sibling);
}
}
return nodes;
},
/**
* Brute force version of contains.
* Used for browsers without contains support for non-HTMLElement Nodes (textNodes, etc).
* @method _bruteContains
* @private
* @param {HTMLElement} element The containing html element.
* @param {HTMLElement} needle The html element that may be contained.
* @return {Boolean} Whether or not the element is or contains the needle.
*/
_bruteContains: function(element, needle) {
while (needle) {
if (element === needle) {
return true;
}
needle = needle.parentNode;
}
return false;
},
// TODO: move to Lang?
/**
* Memoizes dynamic regular expressions to boost runtime performance.
* @method _getRegExp
* @private
* @param {String} str The string to convert to a regular expression.
* @param {String} flags optional An optinal string of flags.
* @return {RegExp} An instance of RegExp
*/
_getRegExp: function(str, flags) {
flags = flags || '';
Y_DOM._regexCache = Y_DOM._regexCache || {};
if (!Y_DOM._regexCache[str + flags]) {
Y_DOM._regexCache[str + flags] = new RegExp(str, flags);
}
return Y_DOM._regexCache[str + flags];
},
// TODO: make getDoc/Win true privates?
/**
* returns the appropriate document.
* @method _getDoc
* @private
* @param {HTMLElement} element optional Target element.
* @return {Object} The document for the given element or the default document.
*/
_getDoc: function(element) {
var doc = Y.config.doc;
if (element) {
doc = (element[NODE_TYPE] === 9) ? element : // element === document
element[OWNER_DOCUMENT] || // element === DOM node
element.document || // element === window
Y.config.doc; // default
}
return doc;
},
/**
* returns the appropriate window.
* @method _getWin
* @private
* @param {HTMLElement} element optional Target element.
* @return {Object} The window for the given element or the default window.
*/
_getWin: function(element) {
var doc = Y_DOM._getDoc(element);
return doc[DEFAULT_VIEW] || doc[PARENT_WINDOW] || Y.config.win;
},
_batch: function(nodes, fn, arg1, arg2, arg3, etc) {
fn = (typeof fn === 'string') ? Y_DOM[fn] : fn;
var result,
i = 0,
node,
ret;
if (fn && nodes) {
while ((node = nodes[i++])) {
result = result = fn.call(Y_DOM, node, arg1, arg2, arg3, etc);
if (typeof result !== 'undefined') {
(ret) || (ret = []);
ret.push(result);
}
}
}
return (typeof ret !== 'undefined') ? ret : nodes;
},
generateID: function(el) {
var id = el.id;
if (!id) {
id = Y.stamp(el);
el.id = id;
}
return id;
}
};
Y.DOM = Y_DOM;
}, '3.7.3', {"requires": ["oop", "features"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('dom-base', function (Y, NAME) {
/**
* @for DOM
* @module dom
*/
var documentElement = Y.config.doc.documentElement,
Y_DOM = Y.DOM,
TAG_NAME = 'tagName',
OWNER_DOCUMENT = 'ownerDocument',
EMPTY_STRING = '',
addFeature = Y.Features.add,
testFeature = Y.Features.test;
Y.mix(Y_DOM, {
/**
* Returns the text content of the HTMLElement.
* @method getText
* @param {HTMLElement} element The html element.
* @return {String} The text content of the element (includes text of any descending elements).
*/
getText: (documentElement.textContent !== undefined) ?
function(element) {
var ret = '';
if (element) {
ret = element.textContent;
}
return ret || '';
} : function(element) {
var ret = '';
if (element) {
ret = element.innerText || element.nodeValue; // might be a textNode
}
return ret || '';
},
/**
* Sets the text content of the HTMLElement.
* @method setText
* @param {HTMLElement} element The html element.
* @param {String} content The content to add.
*/
setText: (documentElement.textContent !== undefined) ?
function(element, content) {
if (element) {
element.textContent = content;
}
} : function(element, content) {
if ('innerText' in element) {
element.innerText = content;
} else if ('nodeValue' in element) {
element.nodeValue = content;
}
},
CUSTOM_ATTRIBUTES: (!documentElement.hasAttribute) ? { // IE < 8
'for': 'htmlFor',
'class': 'className'
} : { // w3c
'htmlFor': 'for',
'className': 'class'
},
/**
* Provides a normalized attribute interface.
* @method setAttribute
* @param {HTMLElement} el The target element for the attribute.
* @param {String} attr The attribute to set.
* @param {String} val The value of the attribute.
*/
setAttribute: function(el, attr, val, ieAttr) {
if (el && attr && el.setAttribute) {
attr = Y_DOM.CUSTOM_ATTRIBUTES[attr] || attr;
el.setAttribute(attr, val, ieAttr);
}
},
/**
* Provides a normalized attribute interface.
* @method getAttribute
* @param {HTMLElement} el The target element for the attribute.
* @param {String} attr The attribute to get.
* @return {String} The current value of the attribute.
*/
getAttribute: function(el, attr, ieAttr) {
ieAttr = (ieAttr !== undefined) ? ieAttr : 2;
var ret = '';
if (el && attr && el.getAttribute) {
attr = Y_DOM.CUSTOM_ATTRIBUTES[attr] || attr;
ret = el.getAttribute(attr, ieAttr);
if (ret === null) {
ret = ''; // per DOM spec
}
}
return ret;
},
VALUE_SETTERS: {},
VALUE_GETTERS: {},
getValue: function(node) {
var ret = '', // TODO: return null?
getter;
if (node && node[TAG_NAME]) {
getter = Y_DOM.VALUE_GETTERS[node[TAG_NAME].toLowerCase()];
if (getter) {
ret = getter(node);
} else {
ret = node.value;
}
}
// workaround for IE8 JSON stringify bug
// which converts empty string values to null
if (ret === EMPTY_STRING) {
ret = EMPTY_STRING; // for real
}
return (typeof ret === 'string') ? ret : '';
},
setValue: function(node, val) {
var setter;
if (node && node[TAG_NAME]) {
setter = Y_DOM.VALUE_SETTERS[node[TAG_NAME].toLowerCase()];
if (setter) {
setter(node, val);
} else {
node.value = val;
}
}
},
creators: {}
});
addFeature('value-set', 'select', {
test: function() {
var node = Y.config.doc.createElement('select');
node.innerHTML = '<option>1</option><option>2</option>';
node.value = '2';
return (node.value && node.value === '2');
}
});
if (!testFeature('value-set', 'select')) {
Y_DOM.VALUE_SETTERS.select = function(node, val) {
for (var i = 0, options = node.getElementsByTagName('option'), option;
option = options[i++];) {
if (Y_DOM.getValue(option) === val) {
option.selected = true;
//Y_DOM.setAttribute(option, 'selected', 'selected');
break;
}
}
};
}
Y.mix(Y_DOM.VALUE_GETTERS, {
button: function(node) {
return (node.attributes && node.attributes.value) ? node.attributes.value.value : '';
}
});
Y.mix(Y_DOM.VALUE_SETTERS, {
// IE: node.value changes the button text, which should be handled via innerHTML
button: function(node, val) {
var attr = node.attributes.value;
if (!attr) {
attr = node[OWNER_DOCUMENT].createAttribute('value');
node.setAttributeNode(attr);
}
attr.value = val;
}
});
Y.mix(Y_DOM.VALUE_GETTERS, {
option: function(node) {
var attrs = node.attributes;
return (attrs.value && attrs.value.specified) ? node.value : node.text;
},
select: function(node) {
var val = node.value,
options = node.options;
if (options && options.length) {
// TODO: implement multipe select
if (node.multiple) {
} else if (node.selectedIndex > -1) {
val = Y_DOM.getValue(options[node.selectedIndex]);
}
}
return val;
}
});
var addClass, hasClass, removeClass;
Y.mix(Y.DOM, {
/**
* Determines whether a DOM element has the given className.
* @method hasClass
* @for DOM
* @param {HTMLElement} element The DOM element.
* @param {String} className the class name to search for
* @return {Boolean} Whether or not the element has the given class.
*/
hasClass: function(node, className) {
var re = Y.DOM._getRegExp('(?:^|\\s+)' + className + '(?:\\s+|$)');
return re.test(node.className);
},
/**
* Adds a class name to a given DOM element.
* @method addClass
* @for DOM
* @param {HTMLElement} element The DOM element.
* @param {String} className the class name to add to the class attribute
*/
addClass: function(node, className) {
if (!Y.DOM.hasClass(node, className)) { // skip if already present
node.className = Y.Lang.trim([node.className, className].join(' '));
}
},
/**
* Removes a class name from a given element.
* @method removeClass
* @for DOM
* @param {HTMLElement} element The DOM element.
* @param {String} className the class name to remove from the class attribute
*/
removeClass: function(node, className) {
if (className && hasClass(node, className)) {
node.className = Y.Lang.trim(node.className.replace(Y.DOM._getRegExp('(?:^|\\s+)' +
className + '(?:\\s+|$)'), ' '));
if ( hasClass(node, className) ) { // in case of multiple adjacent
removeClass(node, className);
}
}
},
/**
* Replace a class with another class for a given element.
* If no oldClassName is present, the newClassName is simply added.
* @method replaceClass
* @for DOM
* @param {HTMLElement} element The DOM element
* @param {String} oldClassName the class name to be replaced
* @param {String} newClassName the class name that will be replacing the old class name
*/
replaceClass: function(node, oldC, newC) {
removeClass(node, oldC); // remove first in case oldC === newC
addClass(node, newC);
},
/**
* If the className exists on the node it is removed, if it doesn't exist it is added.
* @method toggleClass
* @for DOM
* @param {HTMLElement} element The DOM element
* @param {String} className the class name to be toggled
* @param {Boolean} addClass optional boolean to indicate whether class
* should be added or removed regardless of current state
*/
toggleClass: function(node, className, force) {
var add = (force !== undefined) ? force :
!(hasClass(node, className));
if (add) {
addClass(node, className);
} else {
removeClass(node, className);
}
}
});
hasClass = Y.DOM.hasClass;
removeClass = Y.DOM.removeClass;
addClass = Y.DOM.addClass;
var re_tag = /<([a-z]+)/i,
Y_DOM = Y.DOM,
addFeature = Y.Features.add,
testFeature = Y.Features.test,
creators = {},
createFromDIV = function(html, tag) {
var div = Y.config.doc.createElement('div'),
ret = true;
div.innerHTML = html;
if (!div.firstChild || div.firstChild.tagName !== tag.toUpperCase()) {
ret = false;
}
return ret;
},
re_tbody = /(?:\/(?:thead|tfoot|tbody|caption|col|colgroup)>)+\s*<tbody/,
TABLE_OPEN = '<table>',
TABLE_CLOSE = '</table>';
Y.mix(Y.DOM, {
_fragClones: {},
_create: function(html, doc, tag) {
tag = tag || 'div';
var frag = Y_DOM._fragClones[tag];
if (frag) {
frag = frag.cloneNode(false);
} else {
frag = Y_DOM._fragClones[tag] = doc.createElement(tag);
}
frag.innerHTML = html;
return frag;
},
_children: function(node, tag) {
var i = 0,
children = node.children,
childNodes,
hasComments,
child;
if (children && children.tags) { // use tags filter when possible
if (tag) {
children = node.children.tags(tag);
} else { // IE leaks comments into children
hasComments = children.tags('!').length;
}
}
if (!children || (!children.tags && tag) || hasComments) {
childNodes = children || node.childNodes;
children = [];
while ((child = childNodes[i++])) {
if (child.nodeType === 1) {
if (!tag || tag === child.tagName) {
children.push(child);
}
}
}
}
return children || [];
},
/**
* Creates a new dom node using the provided markup string.
* @method create
* @param {String} html The markup used to create the element
* @param {HTMLDocument} doc An optional document context
* @return {HTMLElement|DocumentFragment} returns a single HTMLElement
* when creating one node, and a documentFragment when creating
* multiple nodes.
*/
create: function(html, doc) {
if (typeof html === 'string') {
html = Y.Lang.trim(html); // match IE which trims whitespace from innerHTML
}
doc = doc || Y.config.doc;
var m = re_tag.exec(html),
create = Y_DOM._create,
custom = creators,
ret = null,
creator,
tag, nodes;
if (html != undefined) { // not undefined or null
if (m && m[1]) {
creator = custom[m[1].toLowerCase()];
if (typeof creator === 'function') {
create = creator;
} else {
tag = creator;
}
}
nodes = create(html, doc, tag).childNodes;
if (nodes.length === 1) { // return single node, breaking parentNode ref from "fragment"
ret = nodes[0].parentNode.removeChild(nodes[0]);
} else if (nodes[0] && nodes[0].className === 'yui3-big-dummy') { // using dummy node to preserve some attributes (e.g. OPTION not selected)
if (nodes.length === 2) {
ret = nodes[0].nextSibling;
} else {
nodes[0].parentNode.removeChild(nodes[0]);
ret = Y_DOM._nl2frag(nodes, doc);
}
} else { // return multiple nodes as a fragment
ret = Y_DOM._nl2frag(nodes, doc);
}
}
return ret;
},
_nl2frag: function(nodes, doc) {
var ret = null,
i, len;
if (nodes && (nodes.push || nodes.item) && nodes[0]) {
doc = doc || nodes[0].ownerDocument;
ret = doc.createDocumentFragment();
if (nodes.item) { // convert live list to static array
nodes = Y.Array(nodes, 0, true);
}
for (i = 0, len = nodes.length; i < len; i++) {
ret.appendChild(nodes[i]);
}
} // else inline with log for minification
return ret;
},
/**
* Inserts content in a node at the given location
* @method addHTML
* @param {HTMLElement} node The node to insert into
* @param {HTMLElement | Array | HTMLCollection} content The content to be inserted
* @param {HTMLElement} where Where to insert the content
* If no "where" is given, content is appended to the node
* Possible values for "where"
* <dl>
* <dt>HTMLElement</dt>
* <dd>The element to insert before</dd>
* <dt>"replace"</dt>
* <dd>Replaces the existing HTML</dd>
* <dt>"before"</dt>
* <dd>Inserts before the existing HTML</dd>
* <dt>"before"</dt>
* <dd>Inserts content before the node</dd>
* <dt>"after"</dt>
* <dd>Inserts content after the node</dd>
* </dl>
*/
addHTML: function(node, content, where) {
var nodeParent = node.parentNode,
i = 0,
item,
ret = content,
newNode;
if (content != undefined) { // not null or undefined (maybe 0)
if (content.nodeType) { // DOM node, just add it
newNode = content;
} else if (typeof content == 'string' || typeof content == 'number') {
ret = newNode = Y_DOM.create(content);
} else if (content[0] && content[0].nodeType) { // array or collection
newNode = Y.config.doc.createDocumentFragment();
while ((item = content[i++])) {
newNode.appendChild(item); // append to fragment for insertion
}
}
}
if (where) {
if (newNode && where.parentNode) { // insert regardless of relationship to node
where.parentNode.insertBefore(newNode, where);
} else {
switch (where) {
case 'replace':
while (node.firstChild) {
node.removeChild(node.firstChild);
}
if (newNode) { // allow empty content to clear node
node.appendChild(newNode);
}
break;
case 'before':
if (newNode) {
nodeParent.insertBefore(newNode, node);
}
break;
case 'after':
if (newNode) {
if (node.nextSibling) { // IE errors if refNode is null
nodeParent.insertBefore(newNode, node.nextSibling);
} else {
nodeParent.appendChild(newNode);
}
}
break;
default:
if (newNode) {
node.appendChild(newNode);
}
}
}
} else if (newNode) {
node.appendChild(newNode);
}
return ret;
},
wrap: function(node, html) {
var parent = (html && html.nodeType) ? html : Y.DOM.create(html),
nodes = parent.getElementsByTagName('*');
if (nodes.length) {
parent = nodes[nodes.length - 1];
}
if (node.parentNode) {
node.parentNode.replaceChild(parent, node);
}
parent.appendChild(node);
},
unwrap: function(node) {
var parent = node.parentNode,
lastChild = parent.lastChild,
next = node,
grandparent;
if (parent) {
grandparent = parent.parentNode;
if (grandparent) {
node = parent.firstChild;
while (node !== lastChild) {
next = node.nextSibling;
grandparent.insertBefore(node, parent);
node = next;
}
grandparent.replaceChild(lastChild, parent);
} else {
parent.removeChild(node);
}
}
}
});
addFeature('innerhtml', 'table', {
test: function() {
var node = Y.config.doc.createElement('table');
try {
node.innerHTML = '<tbody></tbody>';
} catch(e) {
return false;
}
return (node.firstChild && node.firstChild.nodeName === 'TBODY');
}
});
addFeature('innerhtml-div', 'tr', {
test: function() {
return createFromDIV('<tr></tr>', 'tr');
}
});
addFeature('innerhtml-div', 'script', {
test: function() {
return createFromDIV('<script></script>', 'script');
}
});
if (!testFeature('innerhtml', 'table')) {
// TODO: thead/tfoot with nested tbody
// IE adds TBODY when creating TABLE elements (which may share this impl)
creators.tbody = function(html, doc) {
var frag = Y_DOM.create(TABLE_OPEN + html + TABLE_CLOSE, doc),
tb = Y.DOM._children(frag, 'tbody')[0];
if (frag.children.length > 1 && tb && !re_tbody.test(html)) {
tb.parentNode.removeChild(tb); // strip extraneous tbody
}
return frag;
};
}
if (!testFeature('innerhtml-div', 'script')) {
creators.script = function(html, doc) {
var frag = doc.createElement('div');
frag.innerHTML = '-' + html;
frag.removeChild(frag.firstChild);
return frag;
};
creators.link = creators.style = creators.script;
}
if (!testFeature('innerhtml-div', 'tr')) {
Y.mix(creators, {
option: function(html, doc) {
return Y_DOM.create('<select><option class="yui3-big-dummy" selected></option>' + html + '</select>', doc);
},
tr: function(html, doc) {
return Y_DOM.create('<tbody>' + html + '</tbody>', doc);
},
td: function(html, doc) {
return Y_DOM.create('<tr>' + html + '</tr>', doc);
},
col: function(html, doc) {
return Y_DOM.create('<colgroup>' + html + '</colgroup>', doc);
},
tbody: 'table'
});
Y.mix(creators, {
legend: 'fieldset',
th: creators.td,
thead: creators.tbody,
tfoot: creators.tbody,
caption: creators.tbody,
colgroup: creators.tbody,
optgroup: creators.option
});
}
Y_DOM.creators = creators;
Y.mix(Y.DOM, {
/**
* Sets the width of the element to the given size, regardless
* of box model, border, padding, etc.
* @method setWidth
* @param {HTMLElement} element The DOM element.
* @param {String|Number} size The pixel height to size to
*/
setWidth: function(node, size) {
Y.DOM._setSize(node, 'width', size);
},
/**
* Sets the height of the element to the given size, regardless
* of box model, border, padding, etc.
* @method setHeight
* @param {HTMLElement} element The DOM element.
* @param {String|Number} size The pixel height to size to
*/
setHeight: function(node, size) {
Y.DOM._setSize(node, 'height', size);
},
_setSize: function(node, prop, val) {
val = (val > 0) ? val : 0;
var size = 0;
node.style[prop] = val + 'px';
size = (prop === 'height') ? node.offsetHeight : node.offsetWidth;
if (size > val) {
val = val - (size - val);
if (val < 0) {
val = 0;
}
node.style[prop] = val + 'px';
}
}
});
}, '3.7.3', {"requires": ["dom-core"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('selector-native', function (Y, NAME) {
(function(Y) {
/**
* The selector-native module provides support for native querySelector
* @module dom
* @submodule selector-native
* @for Selector
*/
/**
* Provides support for using CSS selectors to query the DOM
* @class Selector
* @static
* @for Selector
*/
Y.namespace('Selector'); // allow native module to standalone
var COMPARE_DOCUMENT_POSITION = 'compareDocumentPosition',
OWNER_DOCUMENT = 'ownerDocument';
var Selector = {
_types: {
esc: {
token: '\uE000',
re: /\\[:\[\]\(\)#\.\'\>+~"]/gi
},
attr: {
token: '\uE001',
re: /(\[[^\]]*\])/g
},
pseudo: {
token: '\uE002',
re: /(\([^\)]*\))/g
}
},
useNative: true,
_escapeId: function(id) {
if (id) {
id = id.replace(/([:\[\]\(\)#\.'<>+~"])/g,'\\$1');
}
return id;
},
_compare: ('sourceIndex' in Y.config.doc.documentElement) ?
function(nodeA, nodeB) {
var a = nodeA.sourceIndex,
b = nodeB.sourceIndex;
if (a === b) {
return 0;
} else if (a > b) {
return 1;
}
return -1;
} : (Y.config.doc.documentElement[COMPARE_DOCUMENT_POSITION] ?
function(nodeA, nodeB) {
if (nodeA[COMPARE_DOCUMENT_POSITION](nodeB) & 4) {
return -1;
} else {
return 1;
}
} :
function(nodeA, nodeB) {
var rangeA, rangeB, compare;
if (nodeA && nodeB) {
rangeA = nodeA[OWNER_DOCUMENT].createRange();
rangeA.setStart(nodeA, 0);
rangeB = nodeB[OWNER_DOCUMENT].createRange();
rangeB.setStart(nodeB, 0);
compare = rangeA.compareBoundaryPoints(1, rangeB); // 1 === Range.START_TO_END
}
return compare;
}),
_sort: function(nodes) {
if (nodes) {
nodes = Y.Array(nodes, 0, true);
if (nodes.sort) {
nodes.sort(Selector._compare);
}
}
return nodes;
},
_deDupe: function(nodes) {
var ret = [],
i, node;
for (i = 0; (node = nodes[i++]);) {
if (!node._found) {
ret[ret.length] = node;
node._found = true;
}
}
for (i = 0; (node = ret[i++]);) {
node._found = null;
node.removeAttribute('_found');
}
return ret;
},
/**
* Retrieves a set of nodes based on a given CSS selector.
* @method query
*
* @param {string} selector The CSS Selector to test the node against.
* @param {HTMLElement} root optional An HTMLElement to start the query from. Defaults to Y.config.doc
* @param {Boolean} firstOnly optional Whether or not to return only the first match.
* @return {Array} An array of nodes that match the given selector.
* @static
*/
query: function(selector, root, firstOnly, skipNative) {
root = root || Y.config.doc;
var ret = [],
useNative = (Y.Selector.useNative && Y.config.doc.querySelector && !skipNative),
queries = [[selector, root]],
query,
result,
i,
fn = (useNative) ? Y.Selector._nativeQuery : Y.Selector._bruteQuery;
if (selector && fn) {
// split group into seperate queries
if (!skipNative && // already done if skipping
(!useNative || root.tagName)) { // split native when element scoping is needed
queries = Selector._splitQueries(selector, root);
}
for (i = 0; (query = queries[i++]);) {
result = fn(query[0], query[1], firstOnly);
if (!firstOnly) { // coerce DOM Collection to Array
result = Y.Array(result, 0, true);
}
if (result) {
ret = ret.concat(result);
}
}
if (queries.length > 1) { // remove dupes and sort by doc order
ret = Selector._sort(Selector._deDupe(ret));
}
}
return (firstOnly) ? (ret[0] || null) : ret;
},
_replaceSelector: function(selector) {
var esc = Y.Selector._parse('esc', selector), // pull escaped colon, brackets, etc.
attrs,
pseudos;
// first replace escaped chars, which could be present in attrs or pseudos
selector = Y.Selector._replace('esc', selector);
// then replace pseudos before attrs to avoid replacing :not([foo])
pseudos = Y.Selector._parse('pseudo', selector);
selector = Selector._replace('pseudo', selector);
attrs = Y.Selector._parse('attr', selector);
selector = Y.Selector._replace('attr', selector);
return {
esc: esc,
attrs: attrs,
pseudos: pseudos,
selector: selector
};
},
_restoreSelector: function(replaced) {
var selector = replaced.selector;
selector = Y.Selector._restore('attr', selector, replaced.attrs);
selector = Y.Selector._restore('pseudo', selector, replaced.pseudos);
selector = Y.Selector._restore('esc', selector, replaced.esc);
return selector;
},
_replaceCommas: function(selector) {
var replaced = Y.Selector._replaceSelector(selector),
selector = replaced.selector;
if (selector) {
selector = selector.replace(/,/g, '\uE007');
replaced.selector = selector;
selector = Y.Selector._restoreSelector(replaced);
}
return selector;
},
// allows element scoped queries to begin with combinator
// e.g. query('> p', document.body) === query('body > p')
_splitQueries: function(selector, node) {
if (selector.indexOf(',') > -1) {
selector = Y.Selector._replaceCommas(selector);
}
var groups = selector.split('\uE007'), // split on replaced comma token
queries = [],
prefix = '',
id,
i,
len;
if (node) {
// enforce for element scoping
if (node.nodeType === 1) { // Elements only
id = Y.Selector._escapeId(Y.DOM.getId(node));
if (!id) {
id = Y.guid();
Y.DOM.setId(node, id);
}
prefix = '[id="' + id + '"] ';
}
for (i = 0, len = groups.length; i < len; ++i) {
selector = prefix + groups[i];
queries.push([selector, node]);
}
}
return queries;
},
_nativeQuery: function(selector, root, one) {
if (Y.UA.webkit && selector.indexOf(':checked') > -1 &&
(Y.Selector.pseudos && Y.Selector.pseudos.checked)) { // webkit (chrome, safari) fails to pick up "selected" with "checked"
return Y.Selector.query(selector, root, one, true); // redo with skipNative true to try brute query
}
try {
return root['querySelector' + (one ? '' : 'All')](selector);
} catch(e) { // fallback to brute if available
return Y.Selector.query(selector, root, one, true); // redo with skipNative true
}
},
filter: function(nodes, selector) {
var ret = [],
i, node;
if (nodes && selector) {
for (i = 0; (node = nodes[i++]);) {
if (Y.Selector.test(node, selector)) {
ret[ret.length] = node;
}
}
} else {
}
return ret;
},
test: function(node, selector, root) {
var ret = false,
useFrag = false,
groups,
parent,
item,
items,
frag,
id,
i, j, group;
if (node && node.tagName) { // only test HTMLElements
if (typeof selector == 'function') { // test with function
ret = selector.call(node, node);
} else { // test with query
// we need a root if off-doc
groups = selector.split(',');
if (!root && !Y.DOM.inDoc(node)) {
parent = node.parentNode;
if (parent) {
root = parent;
} else { // only use frag when no parent to query
frag = node[OWNER_DOCUMENT].createDocumentFragment();
frag.appendChild(node);
root = frag;
useFrag = true;
}
}
root = root || node[OWNER_DOCUMENT];
id = Y.Selector._escapeId(Y.DOM.getId(node));
if (!id) {
id = Y.guid();
Y.DOM.setId(node, id);
}
for (i = 0; (group = groups[i++]);) { // TODO: off-dom test
group += '[id="' + id + '"]';
items = Y.Selector.query(group, root);
for (j = 0; item = items[j++];) {
if (item === node) {
ret = true;
break;
}
}
if (ret) {
break;
}
}
if (useFrag) { // cleanup
frag.removeChild(node);
}
};
}
return ret;
},
/**
* A convenience function to emulate Y.Node's aNode.ancestor(selector).
* @param {HTMLElement} element An HTMLElement to start the query from.
* @param {String} selector The CSS selector to test the node against.
* @return {HTMLElement} The ancestor node matching the selector, or null.
* @param {Boolean} testSelf optional Whether or not to include the element in the scan
* @static
* @method ancestor
*/
ancestor: function (element, selector, testSelf) {
return Y.DOM.ancestor(element, function(n) {
return Y.Selector.test(n, selector);
}, testSelf);
},
_parse: function(name, selector) {
return selector.match(Y.Selector._types[name].re);
},
_replace: function(name, selector) {
var o = Y.Selector._types[name];
return selector.replace(o.re, o.token);
},
_restore: function(name, selector, items) {
if (items) {
var token = Y.Selector._types[name].token,
i, len;
for (i = 0, len = items.length; i < len; ++i) {
selector = selector.replace(token, items[i]);
}
}
return selector;
}
};
Y.mix(Y.Selector, Selector, true);
})(Y);
}, '3.7.3', {"requires": ["dom-base"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('selector-css2', function (Y, NAME) {
/**
* The selector module provides helper methods allowing CSS2 Selectors to be used with DOM elements.
* @module dom
* @submodule selector-css2
* @for Selector
*/
/*
* Provides helper methods for collecting and filtering DOM elements.
*/
var PARENT_NODE = 'parentNode',
TAG_NAME = 'tagName',
ATTRIBUTES = 'attributes',
COMBINATOR = 'combinator',
PSEUDOS = 'pseudos',
Selector = Y.Selector,
SelectorCSS2 = {
_reRegExpTokens: /([\^\$\?\[\]\*\+\-\.\(\)\|\\])/,
SORT_RESULTS: true,
// TODO: better detection, document specific
_isXML: (function() {
var isXML = (Y.config.doc.createElement('div').tagName !== 'DIV');
return isXML;
}()),
/**
* Mapping of shorthand tokens to corresponding attribute selector
* @property shorthand
* @type object
*/
shorthand: {
'\\#(-?[_a-z0-9]+[-\\w\\uE000]*)': '[id=$1]',
'\\.(-?[_a-z]+[-\\w\\uE000]*)': '[className~=$1]'
},
/**
* List of operators and corresponding boolean functions.
* These functions are passed the attribute and the current node's value of the attribute.
* @property operators
* @type object
*/
operators: {
'': function(node, attr) { return Y.DOM.getAttribute(node, attr) !== ''; }, // Just test for existence of attribute
'~=': '(?:^|\\s+){val}(?:\\s+|$)', // space-delimited
'|=': '^{val}-?' // optional hyphen-delimited
},
pseudos: {
'first-child': function(node) {
return Y.DOM._children(node[PARENT_NODE])[0] === node;
}
},
_bruteQuery: function(selector, root, firstOnly) {
var ret = [],
nodes = [],
tokens = Selector._tokenize(selector),
token = tokens[tokens.length - 1],
rootDoc = Y.DOM._getDoc(root),
child,
id,
className,
tagName;
if (token) {
// prefilter nodes
id = token.id;
className = token.className;
tagName = token.tagName || '*';
if (root.getElementsByTagName) { // non-IE lacks DOM api on doc frags
// try ID first, unless no root.all && root not in document
// (root.all works off document, but not getElementById)
if (id && (root.all || (root.nodeType === 9 || Y.DOM.inDoc(root)))) {
nodes = Y.DOM.allById(id, root);
// try className
} else if (className) {
nodes = root.getElementsByClassName(className);
} else { // default to tagName
nodes = root.getElementsByTagName(tagName);
}
} else { // brute getElementsByTagName()
child = root.firstChild;
while (child) {
// only collect HTMLElements
// match tag to supplement missing getElementsByTagName
if (child.tagName && (tagName === '*' || child.tagName === tagName)) {
nodes.push(child);
}
child = child.nextSibling || child.firstChild;
}
}
if (nodes.length) {
ret = Selector._filterNodes(nodes, tokens, firstOnly);
}
}
return ret;
},
_filterNodes: function(nodes, tokens, firstOnly) {
var i = 0,
j,
len = tokens.length,
n = len - 1,
result = [],
node = nodes[0],
tmpNode = node,
getters = Y.Selector.getters,
operator,
combinator,
token,
path,
pass,
value,
tests,
test;
for (i = 0; (tmpNode = node = nodes[i++]);) {
n = len - 1;
path = null;
testLoop:
while (tmpNode && tmpNode.tagName) {
token = tokens[n];
tests = token.tests;
j = tests.length;
if (j && !pass) {
while ((test = tests[--j])) {
operator = test[1];
if (getters[test[0]]) {
value = getters[test[0]](tmpNode, test[0]);
} else {
value = tmpNode[test[0]];
if (test[0] === 'tagName' && !Selector._isXML) {
value = value.toUpperCase();
}
if (typeof value != 'string' && value !== undefined && value.toString) {
value = value.toString(); // coerce for comparison
} else if (value === undefined && tmpNode.getAttribute) {
// use getAttribute for non-standard attributes
value = tmpNode.getAttribute(test[0], 2); // 2 === force string for IE
}
}
if ((operator === '=' && value !== test[2]) || // fast path for equality
(typeof operator !== 'string' && // protect against String.test monkey-patch (Moo)
operator.test && !operator.test(value)) || // regex test
(!operator.test && // protect against RegExp as function (webkit)
typeof operator === 'function' && !operator(tmpNode, test[0], test[2]))) { // function test
// skip non element nodes or non-matching tags
if ((tmpNode = tmpNode[path])) {
while (tmpNode &&
(!tmpNode.tagName ||
(token.tagName && token.tagName !== tmpNode.tagName))
) {
tmpNode = tmpNode[path];
}
}
continue testLoop;
}
}
}
n--; // move to next token
// now that we've passed the test, move up the tree by combinator
if (!pass && (combinator = token.combinator)) {
path = combinator.axis;
tmpNode = tmpNode[path];
// skip non element nodes
while (tmpNode && !tmpNode.tagName) {
tmpNode = tmpNode[path];
}
if (combinator.direct) { // one pass only
path = null;
}
} else { // success if we made it this far
result.push(node);
if (firstOnly) {
return result;
}
break;
}
}
}
node = tmpNode = null;
return result;
},
combinators: {
' ': {
axis: 'parentNode'
},
'>': {
axis: 'parentNode',
direct: true
},
'+': {
axis: 'previousSibling',
direct: true
}
},
_parsers: [
{
name: ATTRIBUTES,
re: /^\uE003(-?[a-z]+[\w\-]*)+([~\|\^\$\*!=]=?)?['"]?([^\uE004'"]*)['"]?\uE004/i,
fn: function(match, token) {
var operator = match[2] || '',
operators = Selector.operators,
escVal = (match[3]) ? match[3].replace(/\\/g, '') : '',
test;
// add prefiltering for ID and CLASS
if ((match[1] === 'id' && operator === '=') ||
(match[1] === 'className' &&
Y.config.doc.documentElement.getElementsByClassName &&
(operator === '~=' || operator === '='))) {
token.prefilter = match[1];
match[3] = escVal;
// escape all but ID for prefilter, which may run through QSA (via Dom.allById)
token[match[1]] = (match[1] === 'id') ? match[3] : escVal;
}
// add tests
if (operator in operators) {
test = operators[operator];
if (typeof test === 'string') {
match[3] = escVal.replace(Selector._reRegExpTokens, '\\$1');
test = new RegExp(test.replace('{val}', match[3]));
}
match[2] = test;
}
if (!token.last || token.prefilter !== match[1]) {
return match.slice(1);
}
}
},
{
name: TAG_NAME,
re: /^((?:-?[_a-z]+[\w-]*)|\*)/i,
fn: function(match, token) {
var tag = match[1];
if (!Selector._isXML) {
tag = tag.toUpperCase();
}
token.tagName = tag;
if (tag !== '*' && (!token.last || token.prefilter)) {
return [TAG_NAME, '=', tag];
}
if (!token.prefilter) {
token.prefilter = 'tagName';
}
}
},
{
name: COMBINATOR,
re: /^\s*([>+~]|\s)\s*/,
fn: function(match, token) {
}
},
{
name: PSEUDOS,
re: /^:([\-\w]+)(?:\uE005['"]?([^\uE005]*)['"]?\uE006)*/i,
fn: function(match, token) {
var test = Selector[PSEUDOS][match[1]];
if (test) { // reorder match array and unescape special chars for tests
if (match[2]) {
match[2] = match[2].replace(/\\/g, '');
}
return [match[2], test];
} else { // selector token not supported (possibly missing CSS3 module)
return false;
}
}
}
],
_getToken: function(token) {
return {
tagName: null,
id: null,
className: null,
attributes: {},
combinator: null,
tests: []
};
},
/*
Break selector into token units per simple selector.
Combinator is attached to the previous token.
*/
_tokenize: function(selector) {
selector = selector || '';
selector = Selector._parseSelector(Y.Lang.trim(selector));
var token = Selector._getToken(), // one token per simple selector (left selector holds combinator)
query = selector, // original query for debug report
tokens = [], // array of tokens
found = false, // whether or not any matches were found this pass
match, // the regex match
test,
i, parser;
/*
Search for selector patterns, store, and strip them from the selector string
until no patterns match (invalid selector) or we run out of chars.
Multiple attributes and pseudos are allowed, in any order.
for example:
'form:first-child[type=button]:not(button)[lang|=en]'
*/
outer:
do {
found = false; // reset after full pass
for (i = 0; (parser = Selector._parsers[i++]);) {
if ( (match = parser.re.exec(selector)) ) { // note assignment
if (parser.name !== COMBINATOR ) {
token.selector = selector;
}
selector = selector.replace(match[0], ''); // strip current match from selector
if (!selector.length) {
token.last = true;
}
if (Selector._attrFilters[match[1]]) { // convert class to className, etc.
match[1] = Selector._attrFilters[match[1]];
}
test = parser.fn(match, token);
if (test === false) { // selector not supported
found = false;
break outer;
} else if (test) {
token.tests.push(test);
}
if (!selector.length || parser.name === COMBINATOR) {
tokens.push(token);
token = Selector._getToken(token);
if (parser.name === COMBINATOR) {
token.combinator = Y.Selector.combinators[match[1]];
}
}
found = true;
}
}
} while (found && selector.length);
if (!found || selector.length) { // not fully parsed
tokens = [];
}
return tokens;
},
_replaceMarkers: function(selector) {
selector = selector.replace(/\[/g, '\uE003');
selector = selector.replace(/\]/g, '\uE004');
selector = selector.replace(/\(/g, '\uE005');
selector = selector.replace(/\)/g, '\uE006');
return selector;
},
_replaceShorthand: function(selector) {
var shorthand = Y.Selector.shorthand,
re;
for (re in shorthand) {
if (shorthand.hasOwnProperty(re)) {
selector = selector.replace(new RegExp(re, 'gi'), shorthand[re]);
}
}
return selector;
},
_parseSelector: function(selector) {
var replaced = Y.Selector._replaceSelector(selector),
selector = replaced.selector;
// replace shorthand (".foo, #bar") after pseudos and attrs
// to avoid replacing unescaped chars
selector = Y.Selector._replaceShorthand(selector);
selector = Y.Selector._restore('attr', selector, replaced.attrs);
selector = Y.Selector._restore('pseudo', selector, replaced.pseudos);
// replace braces and parens before restoring escaped chars
// to avoid replacing ecaped markers
selector = Y.Selector._replaceMarkers(selector);
selector = Y.Selector._restore('esc', selector, replaced.esc);
return selector;
},
_attrFilters: {
'class': 'className',
'for': 'htmlFor'
},
getters: {
href: function(node, attr) {
return Y.DOM.getAttribute(node, attr);
},
id: function(node, attr) {
return Y.DOM.getId(node);
}
}
};
Y.mix(Y.Selector, SelectorCSS2, true);
Y.Selector.getters.src = Y.Selector.getters.rel = Y.Selector.getters.href;
// IE wants class with native queries
if (Y.Selector.useNative && Y.config.doc.querySelector) {
Y.Selector.shorthand['\\.(-?[_a-z]+[-\\w]*)'] = '[class~=$1]';
}
}, '3.7.3', {"requires": ["selector-native"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('selector', function (Y, NAME) {
}, '3.7.3', {"requires": ["selector-native"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('node-core', function (Y, NAME) {
/**
* The Node Utility provides a DOM-like interface for interacting with DOM nodes.
* @module node
* @main node
* @submodule node-core
*/
/**
* The Node class provides a wrapper for manipulating DOM Nodes.
* Node properties can be accessed via the set/get methods.
* Use `Y.one()` to retrieve Node instances.
*
* <strong>NOTE:</strong> Node properties are accessed using
* the <code>set</code> and <code>get</code> methods.
*
* @class Node
* @constructor
* @param {DOMNode} node the DOM node to be mapped to the Node instance.
* @uses EventTarget
*/
// "globals"
var DOT = '.',
NODE_NAME = 'nodeName',
NODE_TYPE = 'nodeType',
OWNER_DOCUMENT = 'ownerDocument',
TAG_NAME = 'tagName',
UID = '_yuid',
EMPTY_OBJ = {},
_slice = Array.prototype.slice,
Y_DOM = Y.DOM,
Y_Node = function(node) {
if (!this.getDOMNode) { // support optional "new"
return new Y_Node(node);
}
if (typeof node == 'string') {
node = Y_Node._fromString(node);
if (!node) {
return null; // NOTE: return
}
}
var uid = (node.nodeType !== 9) ? node.uniqueID : node[UID];
if (uid && Y_Node._instances[uid] && Y_Node._instances[uid]._node !== node) {
node[UID] = null; // unset existing uid to prevent collision (via clone or hack)
}
uid = uid || Y.stamp(node);
if (!uid) { // stamp failed; likely IE non-HTMLElement
uid = Y.guid();
}
this[UID] = uid;
/**
* The underlying DOM node bound to the Y.Node instance
* @property _node
* @type DOMNode
* @private
*/
this._node = node;
this._stateProxy = node; // when augmented with Attribute
if (this._initPlugins) { // when augmented with Plugin.Host
this._initPlugins();
}
},
// used with previous/next/ancestor tests
_wrapFn = function(fn) {
var ret = null;
if (fn) {
ret = (typeof fn == 'string') ?
function(n) {
return Y.Selector.test(n, fn);
} :
function(n) {
return fn(Y.one(n));
};
}
return ret;
};
// end "globals"
Y_Node.ATTRS = {};
Y_Node.DOM_EVENTS = {};
Y_Node._fromString = function(node) {
if (node) {
if (node.indexOf('doc') === 0) { // doc OR document
node = Y.config.doc;
} else if (node.indexOf('win') === 0) { // win OR window
node = Y.config.win;
} else {
node = Y.Selector.query(node, null, true);
}
}
return node || null;
};
/**
* The name of the component
* @static
* @type String
* @property NAME
*/
Y_Node.NAME = 'node';
/*
* The pattern used to identify ARIA attributes
*/
Y_Node.re_aria = /^(?:role$|aria-)/;
Y_Node.SHOW_TRANSITION = 'fadeIn';
Y_Node.HIDE_TRANSITION = 'fadeOut';
/**
* A list of Node instances that have been created
* @private
* @type Object
* @property _instances
* @static
*
*/
Y_Node._instances = {};
/**
* Retrieves the DOM node bound to a Node instance
* @method getDOMNode
* @static
*
* @param {Node | HTMLNode} node The Node instance or an HTMLNode
* @return {HTMLNode} The DOM node bound to the Node instance. If a DOM node is passed
* as the node argument, it is simply returned.
*/
Y_Node.getDOMNode = function(node) {
if (node) {
return (node.nodeType) ? node : node._node || null;
}
return null;
};
/**
* Checks Node return values and wraps DOM Nodes as Y.Node instances
* and DOM Collections / Arrays as Y.NodeList instances.
* Other return values just pass thru. If undefined is returned (e.g. no return)
* then the Node instance is returned for chainability.
* @method scrubVal
* @static
*
* @param {any} node The Node instance or an HTMLNode
* @return {Node | NodeList | Any} Depends on what is returned from the DOM node.
*/
Y_Node.scrubVal = function(val, node) {
if (val) { // only truthy values are risky
if (typeof val == 'object' || typeof val == 'function') { // safari nodeList === function
if (NODE_TYPE in val || Y_DOM.isWindow(val)) {// node || window
val = Y.one(val);
} else if ((val.item && !val._nodes) || // dom collection or Node instance
(val[0] && val[0][NODE_TYPE])) { // array of DOM Nodes
val = Y.all(val);
}
}
} else if (typeof val === 'undefined') {
val = node; // for chaining
} else if (val === null) {
val = null; // IE: DOM null not the same as null
}
return val;
};
/**
* Adds methods to the Y.Node prototype, routing through scrubVal.
* @method addMethod
* @static
*
* @param {String} name The name of the method to add
* @param {Function} fn The function that becomes the method
* @param {Object} context An optional context to call the method with
* (defaults to the Node instance)
* @return {any} Depends on what is returned from the DOM node.
*/
Y_Node.addMethod = function(name, fn, context) {
if (name && fn && typeof fn == 'function') {
Y_Node.prototype[name] = function() {
var args = _slice.call(arguments),
node = this,
ret;
if (args[0] && args[0]._node) {
args[0] = args[0]._node;
}
if (args[1] && args[1]._node) {
args[1] = args[1]._node;
}
args.unshift(node._node);
ret = fn.apply(node, args);
if (ret) { // scrub truthy
ret = Y_Node.scrubVal(ret, node);
}
(typeof ret != 'undefined') || (ret = node);
return ret;
};
} else {
}
};
/**
* Imports utility methods to be added as Y.Node methods.
* @method importMethod
* @static
*
* @param {Object} host The object that contains the method to import.
* @param {String} name The name of the method to import
* @param {String} altName An optional name to use in place of the host name
* @param {Object} context An optional context to call the method with
*/
Y_Node.importMethod = function(host, name, altName) {
if (typeof name == 'string') {
altName = altName || name;
Y_Node.addMethod(altName, host[name], host);
} else {
Y.Array.each(name, function(n) {
Y_Node.importMethod(host, n);
});
}
};
/**
* Retrieves a NodeList based on the given CSS selector.
* @method all
*
* @param {string} selector The CSS selector to test against.
* @return {NodeList} A NodeList instance for the matching HTMLCollection/Array.
* @for YUI
*/
/**
* Returns a single Node instance bound to the node or the
* first element matching the given selector. Returns null if no match found.
* <strong>Note:</strong> For chaining purposes you may want to
* use <code>Y.all</code>, which returns a NodeList when no match is found.
* @method one
* @param {String | HTMLElement} node a node or Selector
* @return {Node | null} a Node instance or null if no match found.
* @for YUI
*/
/**
* Returns a single Node instance bound to the node or the
* first element matching the given selector. Returns null if no match found.
* <strong>Note:</strong> For chaining purposes you may want to
* use <code>Y.all</code>, which returns a NodeList when no match is found.
* @method one
* @static
* @param {String | HTMLElement} node a node or Selector
* @return {Node | null} a Node instance or null if no match found.
* @for Node
*/
Y_Node.one = function(node) {
var instance = null,
cachedNode,
uid;
if (node) {
if (typeof node == 'string') {
node = Y_Node._fromString(node);
if (!node) {
return null; // NOTE: return
}
} else if (node.getDOMNode) {
return node; // NOTE: return
}
if (node.nodeType || Y.DOM.isWindow(node)) { // avoid bad input (numbers, boolean, etc)
uid = (node.uniqueID && node.nodeType !== 9) ? node.uniqueID : node._yuid;
instance = Y_Node._instances[uid]; // reuse exising instances
cachedNode = instance ? instance._node : null;
if (!instance || (cachedNode && node !== cachedNode)) { // new Node when nodes don't match
instance = new Y_Node(node);
if (node.nodeType != 11) { // dont cache document fragment
Y_Node._instances[instance[UID]] = instance; // cache node
}
}
}
}
return instance;
};
/**
* The default setter for DOM properties
* Called with instance context (this === the Node instance)
* @method DEFAULT_SETTER
* @static
* @param {String} name The attribute/property being set
* @param {any} val The value to be set
* @return {any} The value
*/
Y_Node.DEFAULT_SETTER = function(name, val) {
var node = this._stateProxy,
strPath;
if (name.indexOf(DOT) > -1) {
strPath = name;
name = name.split(DOT);
// only allow when defined on node
Y.Object.setValue(node, name, val);
} else if (typeof node[name] != 'undefined') { // pass thru DOM properties
node[name] = val;
}
return val;
};
/**
* The default getter for DOM properties
* Called with instance context (this === the Node instance)
* @method DEFAULT_GETTER
* @static
* @param {String} name The attribute/property to look up
* @return {any} The current value
*/
Y_Node.DEFAULT_GETTER = function(name) {
var node = this._stateProxy,
val;
if (name.indexOf && name.indexOf(DOT) > -1) {
val = Y.Object.getValue(node, name.split(DOT));
} else if (typeof node[name] != 'undefined') { // pass thru from DOM
val = node[name];
}
return val;
};
Y.mix(Y_Node.prototype, {
DATA_PREFIX: 'data-',
/**
* The method called when outputting Node instances as strings
* @method toString
* @return {String} A string representation of the Node instance
*/
toString: function() {
var str = this[UID] + ': not bound to a node',
node = this._node,
attrs, id, className;
if (node) {
attrs = node.attributes;
id = (attrs && attrs.id) ? node.getAttribute('id') : null;
className = (attrs && attrs.className) ? node.getAttribute('className') : null;
str = node[NODE_NAME];
if (id) {
str += '#' + id;
}
if (className) {
str += '.' + className.replace(' ', '.');
}
// TODO: add yuid?
str += ' ' + this[UID];
}
return str;
},
/**
* Returns an attribute value on the Node instance.
* Unless pre-configured (via `Node.ATTRS`), get hands
* off to the underlying DOM node. Only valid
* attributes/properties for the node will be queried.
* @method get
* @param {String} attr The attribute
* @return {any} The current value of the attribute
*/
get: function(attr) {
var val;
if (this._getAttr) { // use Attribute imple
val = this._getAttr(attr);
} else {
val = this._get(attr);
}
if (val) {
val = Y_Node.scrubVal(val, this);
} else if (val === null) {
val = null; // IE: DOM null is not true null (even though they ===)
}
return val;
},
/**
* Helper method for get.
* @method _get
* @private
* @param {String} attr The attribute
* @return {any} The current value of the attribute
*/
_get: function(attr) {
var attrConfig = Y_Node.ATTRS[attr],
val;
if (attrConfig && attrConfig.getter) {
val = attrConfig.getter.call(this);
} else if (Y_Node.re_aria.test(attr)) {
val = this._node.getAttribute(attr, 2);
} else {
val = Y_Node.DEFAULT_GETTER.apply(this, arguments);
}
return val;
},
/**
* Sets an attribute on the Node instance.
* Unless pre-configured (via Node.ATTRS), set hands
* off to the underlying DOM node. Only valid
* attributes/properties for the node will be set.
* To set custom attributes use setAttribute.
* @method set
* @param {String} attr The attribute to be set.
* @param {any} val The value to set the attribute to.
* @chainable
*/
set: function(attr, val) {
var attrConfig = Y_Node.ATTRS[attr];
if (this._setAttr) { // use Attribute imple
this._setAttr.apply(this, arguments);
} else { // use setters inline
if (attrConfig && attrConfig.setter) {
attrConfig.setter.call(this, val, attr);
} else if (Y_Node.re_aria.test(attr)) { // special case Aria
this._node.setAttribute(attr, val);
} else {
Y_Node.DEFAULT_SETTER.apply(this, arguments);
}
}
return this;
},
/**
* Sets multiple attributes.
* @method setAttrs
* @param {Object} attrMap an object of name/value pairs to set
* @chainable
*/
setAttrs: function(attrMap) {
if (this._setAttrs) { // use Attribute imple
this._setAttrs(attrMap);
} else { // use setters inline
Y.Object.each(attrMap, function(v, n) {
this.set(n, v);
}, this);
}
return this;
},
/**
* Returns an object containing the values for the requested attributes.
* @method getAttrs
* @param {Array} attrs an array of attributes to get values
* @return {Object} An object with attribute name/value pairs.
*/
getAttrs: function(attrs) {
var ret = {};
if (this._getAttrs) { // use Attribute imple
this._getAttrs(attrs);
} else { // use setters inline
Y.Array.each(attrs, function(v, n) {
ret[v] = this.get(v);
}, this);
}
return ret;
},
/**
* Compares nodes to determine if they match.
* Node instances can be compared to each other and/or HTMLElements.
* @method compareTo
* @param {HTMLElement | Node} refNode The reference node to compare to the node.
* @return {Boolean} True if the nodes match, false if they do not.
*/
compareTo: function(refNode) {
var node = this._node;
if (refNode && refNode._node) {
refNode = refNode._node;
}
return node === refNode;
},
/**
* Determines whether the node is appended to the document.
* @method inDoc
* @param {Node|HTMLElement} doc optional An optional document to check against.
* Defaults to current document.
* @return {Boolean} Whether or not this node is appended to the document.
*/
inDoc: function(doc) {
var node = this._node;
doc = (doc) ? doc._node || doc : node[OWNER_DOCUMENT];
if (doc.documentElement) {
return Y_DOM.contains(doc.documentElement, node);
}
},
getById: function(id) {
var node = this._node,
ret = Y_DOM.byId(id, node[OWNER_DOCUMENT]);
if (ret && Y_DOM.contains(node, ret)) {
ret = Y.one(ret);
} else {
ret = null;
}
return ret;
},
/**
* Returns the nearest ancestor that passes the test applied by supplied boolean method.
* @method ancestor
* @param {String | Function} fn A selector string or boolean method for testing elements.
* If a function is used, it receives the current node being tested as the only argument.
* If fn is not passed as an argument, the parent node will be returned.
* @param {Boolean} testSelf optional Whether or not to include the element in the scan
* @param {String | Function} stopFn optional A selector string or boolean
* method to indicate when the search should stop. The search bails when the function
* returns true or the selector matches.
* If a function is used, it receives the current node being tested as the only argument.
* @return {Node} The matching Node instance or null if not found
*/
ancestor: function(fn, testSelf, stopFn) {
// testSelf is optional, check for stopFn as 2nd arg
if (arguments.length === 2 &&
(typeof testSelf == 'string' || typeof testSelf == 'function')) {
stopFn = testSelf;
}
return Y.one(Y_DOM.ancestor(this._node, _wrapFn(fn), testSelf, _wrapFn(stopFn)));
},
/**
* Returns the ancestors that pass the test applied by supplied boolean method.
* @method ancestors
* @param {String | Function} fn A selector string or boolean method for testing elements.
* @param {Boolean} testSelf optional Whether or not to include the element in the scan
* If a function is used, it receives the current node being tested as the only argument.
* @return {NodeList} A NodeList instance containing the matching elements
*/
ancestors: function(fn, testSelf, stopFn) {
if (arguments.length === 2 &&
(typeof testSelf == 'string' || typeof testSelf == 'function')) {
stopFn = testSelf;
}
return Y.all(Y_DOM.ancestors(this._node, _wrapFn(fn), testSelf, _wrapFn(stopFn)));
},
/**
* Returns the previous matching sibling.
* Returns the nearest element node sibling if no method provided.
* @method previous
* @param {String | Function} fn A selector or boolean method for testing elements.
* If a function is used, it receives the current node being tested as the only argument.
* @return {Node} Node instance or null if not found
*/
previous: function(fn, all) {
return Y.one(Y_DOM.elementByAxis(this._node, 'previousSibling', _wrapFn(fn), all));
},
/**
* Returns the next matching sibling.
* Returns the nearest element node sibling if no method provided.
* @method next
* @param {String | Function} fn A selector or boolean method for testing elements.
* If a function is used, it receives the current node being tested as the only argument.
* @return {Node} Node instance or null if not found
*/
next: function(fn, all) {
return Y.one(Y_DOM.elementByAxis(this._node, 'nextSibling', _wrapFn(fn), all));
},
/**
* Returns all matching siblings.
* Returns all siblings if no method provided.
* @method siblings
* @param {String | Function} fn A selector or boolean method for testing elements.
* If a function is used, it receives the current node being tested as the only argument.
* @return {NodeList} NodeList instance bound to found siblings
*/
siblings: function(fn) {
return Y.all(Y_DOM.siblings(this._node, _wrapFn(fn)));
},
/**
* Retrieves a Node instance of nodes based on the given CSS selector.
* @method one
*
* @param {string} selector The CSS selector to test against.
* @return {Node} A Node instance for the matching HTMLElement.
*/
one: function(selector) {
return Y.one(Y.Selector.query(selector, this._node, true));
},
/**
* Retrieves a NodeList based on the given CSS selector.
* @method all
*
* @param {string} selector The CSS selector to test against.
* @return {NodeList} A NodeList instance for the matching HTMLCollection/Array.
*/
all: function(selector) {
var nodelist = Y.all(Y.Selector.query(selector, this._node));
nodelist._query = selector;
nodelist._queryRoot = this._node;
return nodelist;
},
// TODO: allow fn test
/**
* Test if the supplied node matches the supplied selector.
* @method test
*
* @param {string} selector The CSS selector to test against.
* @return {boolean} Whether or not the node matches the selector.
*/
test: function(selector) {
return Y.Selector.test(this._node, selector);
},
/**
* Removes the node from its parent.
* Shortcut for myNode.get('parentNode').removeChild(myNode);
* @method remove
* @param {Boolean} destroy whether or not to call destroy() on the node
* after removal.
* @chainable
*
*/
remove: function(destroy) {
var node = this._node;
if (node && node.parentNode) {
node.parentNode.removeChild(node);
}
if (destroy) {
this.destroy();
}
return this;
},
/**
* Replace the node with the other node. This is a DOM update only
* and does not change the node bound to the Node instance.
* Shortcut for myNode.get('parentNode').replaceChild(newNode, myNode);
* @method replace
* @param {Node | HTMLNode} newNode Node to be inserted
* @chainable
*
*/
replace: function(newNode) {
var node = this._node;
if (typeof newNode == 'string') {
newNode = Y_Node.create(newNode);
}
node.parentNode.replaceChild(Y_Node.getDOMNode(newNode), node);
return this;
},
/**
* @method replaceChild
* @for Node
* @param {String | HTMLElement | Node} node Node to be inserted
* @param {HTMLElement | Node} refNode Node to be replaced
* @return {Node} The replaced node
*/
replaceChild: function(node, refNode) {
if (typeof node == 'string') {
node = Y_DOM.create(node);
}
return Y.one(this._node.replaceChild(Y_Node.getDOMNode(node), Y_Node.getDOMNode(refNode)));
},
/**
* Nulls internal node references, removes any plugins and event listeners.
* Note that destroy() will not remove the node from its parent or from the DOM. For that
* functionality, call remove(true).
* @method destroy
* @param {Boolean} [recursivePurge] Whether or not to remove listeners from the
* node's subtree (default is false)
*
*/
destroy: function(recursive) {
var UID = Y.config.doc.uniqueID ? 'uniqueID' : '_yuid',
instance;
this.purge(); // TODO: only remove events add via this Node
if (this.unplug) { // may not be a PluginHost
this.unplug();
}
this.clearData();
if (recursive) {
Y.NodeList.each(this.all('*'), function(node) {
instance = Y_Node._instances[node[UID]];
if (instance) {
instance.destroy();
} else { // purge in case added by other means
Y.Event.purgeElement(node);
}
});
}
this._node = null;
this._stateProxy = null;
delete Y_Node._instances[this._yuid];
},
/**
* Invokes a method on the Node instance
* @method invoke
* @param {String} method The name of the method to invoke
* @param {Any} a, b, c, etc. Arguments to invoke the method with.
* @return Whatever the underly method returns.
* DOM Nodes and Collections return values
* are converted to Node/NodeList instances.
*
*/
invoke: function(method, a, b, c, d, e) {
var node = this._node,
ret;
if (a && a._node) {
a = a._node;
}
if (b && b._node) {
b = b._node;
}
ret = node[method](a, b, c, d, e);
return Y_Node.scrubVal(ret, this);
},
/**
* @method swap
* @description Swap DOM locations with the given node.
* This does not change which DOM node each Node instance refers to.
* @param {Node} otherNode The node to swap with
* @chainable
*/
swap: Y.config.doc.documentElement.swapNode ?
function(otherNode) {
this._node.swapNode(Y_Node.getDOMNode(otherNode));
} :
function(otherNode) {
otherNode = Y_Node.getDOMNode(otherNode);
var node = this._node,
parent = otherNode.parentNode,
nextSibling = otherNode.nextSibling;
if (nextSibling === node) {
parent.insertBefore(node, otherNode);
} else if (otherNode === node.nextSibling) {
parent.insertBefore(otherNode, node);
} else {
node.parentNode.replaceChild(otherNode, node);
Y_DOM.addHTML(parent, node, nextSibling);
}
return this;
},
hasMethod: function(method) {
var node = this._node;
return !!(node && method in node &&
typeof node[method] != 'unknown' &&
(typeof node[method] == 'function' ||
String(node[method]).indexOf('function') === 1)); // IE reports as object, prepends space
},
isFragment: function() {
return (this.get('nodeType') === 11);
},
/**
* Removes and destroys all of the nodes within the node.
* @method empty
* @chainable
*/
empty: function() {
this.get('childNodes').remove().destroy(true);
return this;
},
/**
* Returns the DOM node bound to the Node instance
* @method getDOMNode
* @return {DOMNode}
*/
getDOMNode: function() {
return this._node;
}
}, true);
Y.Node = Y_Node;
Y.one = Y_Node.one;
/**
* The NodeList module provides support for managing collections of Nodes.
* @module node
* @submodule node-core
*/
/**
* The NodeList class provides a wrapper for manipulating DOM NodeLists.
* NodeList properties can be accessed via the set/get methods.
* Use Y.all() to retrieve NodeList instances.
*
* @class NodeList
* @constructor
* @param nodes {String|element|Node|Array} A selector, DOM element, Node, list of DOM elements, or list of Nodes with which to populate this NodeList.
*/
var NodeList = function(nodes) {
var tmp = [];
if (nodes) {
if (typeof nodes === 'string') { // selector query
this._query = nodes;
nodes = Y.Selector.query(nodes);
} else if (nodes.nodeType || Y_DOM.isWindow(nodes)) { // domNode || window
nodes = [nodes];
} else if (nodes._node) { // Y.Node
nodes = [nodes._node];
} else if (nodes[0] && nodes[0]._node) { // allow array of Y.Nodes
Y.Array.each(nodes, function(node) {
if (node._node) {
tmp.push(node._node);
}
});
nodes = tmp;
} else { // array of domNodes or domNodeList (no mixed array of Y.Node/domNodes)
nodes = Y.Array(nodes, 0, true);
}
}
/**
* The underlying array of DOM nodes bound to the Y.NodeList instance
* @property _nodes
* @private
*/
this._nodes = nodes || [];
};
NodeList.NAME = 'NodeList';
/**
* Retrieves the DOM nodes bound to a NodeList instance
* @method getDOMNodes
* @static
*
* @param {NodeList} nodelist The NodeList instance
* @return {Array} The array of DOM nodes bound to the NodeList
*/
NodeList.getDOMNodes = function(nodelist) {
return (nodelist && nodelist._nodes) ? nodelist._nodes : nodelist;
};
NodeList.each = function(instance, fn, context) {
var nodes = instance._nodes;
if (nodes && nodes.length) {
Y.Array.each(nodes, fn, context || instance);
} else {
}
};
NodeList.addMethod = function(name, fn, context) {
if (name && fn) {
NodeList.prototype[name] = function() {
var ret = [],
args = arguments;
Y.Array.each(this._nodes, function(node) {
var UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid',
instance = Y.Node._instances[node[UID]],
ctx,
result;
if (!instance) {
instance = NodeList._getTempNode(node);
}
ctx = context || instance;
result = fn.apply(ctx, args);
if (result !== undefined && result !== instance) {
ret[ret.length] = result;
}
});
// TODO: remove tmp pointer
return ret.length ? ret : this;
};
} else {
}
};
NodeList.importMethod = function(host, name, altName) {
if (typeof name === 'string') {
altName = altName || name;
NodeList.addMethod(name, host[name]);
} else {
Y.Array.each(name, function(n) {
NodeList.importMethod(host, n);
});
}
};
NodeList._getTempNode = function(node) {
var tmp = NodeList._tempNode;
if (!tmp) {
tmp = Y.Node.create('<div></div>');
NodeList._tempNode = tmp;
}
tmp._node = node;
tmp._stateProxy = node;
return tmp;
};
Y.mix(NodeList.prototype, {
_invoke: function(method, args, getter) {
var ret = (getter) ? [] : this;
this.each(function(node) {
var val = node[method].apply(node, args);
if (getter) {
ret.push(val);
}
});
return ret;
},
/**
* Retrieves the Node instance at the given index.
* @method item
*
* @param {Number} index The index of the target Node.
* @return {Node} The Node instance at the given index.
*/
item: function(index) {
return Y.one((this._nodes || [])[index]);
},
/**
* Applies the given function to each Node in the NodeList.
* @method each
* @param {Function} fn The function to apply. It receives 3 arguments:
* the current node instance, the node's index, and the NodeList instance
* @param {Object} context optional An optional context to apply the function with
* Default context is the current Node instance
* @chainable
*/
each: function(fn, context) {
var instance = this;
Y.Array.each(this._nodes, function(node, index) {
node = Y.one(node);
return fn.call(context || node, node, index, instance);
});
return instance;
},
batch: function(fn, context) {
var nodelist = this;
Y.Array.each(this._nodes, function(node, index) {
var instance = Y.Node._instances[node[UID]];
if (!instance) {
instance = NodeList._getTempNode(node);
}
return fn.call(context || instance, instance, index, nodelist);
});
return nodelist;
},
/**
* Executes the function once for each node until a true value is returned.
* @method some
* @param {Function} fn The function to apply. It receives 3 arguments:
* the current node instance, the node's index, and the NodeList instance
* @param {Object} context optional An optional context to execute the function from.
* Default context is the current Node instance
* @return {Boolean} Whether or not the function returned true for any node.
*/
some: function(fn, context) {
var instance = this;
return Y.Array.some(this._nodes, function(node, index) {
node = Y.one(node);
context = context || node;
return fn.call(context, node, index, instance);
});
},
/**
* Creates a documenFragment from the nodes bound to the NodeList instance
* @method toFrag
* @return {Node} a Node instance bound to the documentFragment
*/
toFrag: function() {
return Y.one(Y.DOM._nl2frag(this._nodes));
},
/**
* Returns the index of the node in the NodeList instance
* or -1 if the node isn't found.
* @method indexOf
* @param {Node | DOMNode} node the node to search for
* @return {Int} the index of the node value or -1 if not found
*/
indexOf: function(node) {
return Y.Array.indexOf(this._nodes, Y.Node.getDOMNode(node));
},
/**
* Filters the NodeList instance down to only nodes matching the given selector.
* @method filter
* @param {String} selector The selector to filter against
* @return {NodeList} NodeList containing the updated collection
* @see Selector
*/
filter: function(selector) {
return Y.all(Y.Selector.filter(this._nodes, selector));
},
/**
* Creates a new NodeList containing all nodes at every n indices, where
* remainder n % index equals r.
* (zero-based index).
* @method modulus
* @param {Int} n The offset to use (return every nth node)
* @param {Int} r An optional remainder to use with the modulus operation (defaults to zero)
* @return {NodeList} NodeList containing the updated collection
*/
modulus: function(n, r) {
r = r || 0;
var nodes = [];
NodeList.each(this, function(node, i) {
if (i % n === r) {
nodes.push(node);
}
});
return Y.all(nodes);
},
/**
* Creates a new NodeList containing all nodes at odd indices
* (zero-based index).
* @method odd
* @return {NodeList} NodeList containing the updated collection
*/
odd: function() {
return this.modulus(2, 1);
},
/**
* Creates a new NodeList containing all nodes at even indices
* (zero-based index), including zero.
* @method even
* @return {NodeList} NodeList containing the updated collection
*/
even: function() {
return this.modulus(2);
},
destructor: function() {
},
/**
* Reruns the initial query, when created using a selector query
* @method refresh
* @chainable
*/
refresh: function() {
var doc,
nodes = this._nodes,
query = this._query,
root = this._queryRoot;
if (query) {
if (!root) {
if (nodes && nodes[0] && nodes[0].ownerDocument) {
root = nodes[0].ownerDocument;
}
}
this._nodes = Y.Selector.query(query, root);
}
return this;
},
/**
* Returns the current number of items in the NodeList.
* @method size
* @return {Int} The number of items in the NodeList.
*/
size: function() {
return this._nodes.length;
},
/**
* Determines if the instance is bound to any nodes
* @method isEmpty
* @return {Boolean} Whether or not the NodeList is bound to any nodes
*/
isEmpty: function() {
return this._nodes.length < 1;
},
toString: function() {
var str = '',
errorMsg = this[UID] + ': not bound to any nodes',
nodes = this._nodes,
node;
if (nodes && nodes[0]) {
node = nodes[0];
str += node[NODE_NAME];
if (node.id) {
str += '#' + node.id;
}
if (node.className) {
str += '.' + node.className.replace(' ', '.');
}
if (nodes.length > 1) {
str += '...[' + nodes.length + ' items]';
}
}
return str || errorMsg;
},
/**
* Returns the DOM node bound to the Node instance
* @method getDOMNodes
* @return {Array}
*/
getDOMNodes: function() {
return this._nodes;
}
}, true);
NodeList.importMethod(Y.Node.prototype, [
/**
* Called on each Node instance. Nulls internal node references,
* removes any plugins and event listeners
* @method destroy
* @param {Boolean} [recursivePurge] Whether or not to
* remove listeners from the node's subtree (default is false)
* @see Node.destroy
*/
'destroy',
/**
* Called on each Node instance. Removes and destroys all of the nodes
* within the node
* @method empty
* @chainable
* @see Node.empty
*/
'empty',
/**
* Called on each Node instance. Removes the node from its parent.
* Shortcut for myNode.get('parentNode').removeChild(myNode);
* @method remove
* @param {Boolean} destroy whether or not to call destroy() on the node
* after removal.
* @chainable
* @see Node.remove
*/
'remove',
/**
* Called on each Node instance. Sets an attribute on the Node instance.
* Unless pre-configured (via Node.ATTRS), set hands
* off to the underlying DOM node. Only valid
* attributes/properties for the node will be set.
* To set custom attributes use setAttribute.
* @method set
* @param {String} attr The attribute to be set.
* @param {any} val The value to set the attribute to.
* @chainable
* @see Node.set
*/
'set'
]);
// one-off implementation to convert array of Nodes to NodeList
// e.g. Y.all('input').get('parentNode');
/** Called on each Node instance
* @method get
* @see Node
*/
NodeList.prototype.get = function(attr) {
var ret = [],
nodes = this._nodes,
isNodeList = false,
getTemp = NodeList._getTempNode,
instance,
val;
if (nodes[0]) {
instance = Y.Node._instances[nodes[0]._yuid] || getTemp(nodes[0]);
val = instance._get(attr);
if (val && val.nodeType) {
isNodeList = true;
}
}
Y.Array.each(nodes, function(node) {
instance = Y.Node._instances[node._yuid];
if (!instance) {
instance = getTemp(node);
}
val = instance._get(attr);
if (!isNodeList) { // convert array of Nodes to NodeList
val = Y.Node.scrubVal(val, instance);
}
ret.push(val);
});
return (isNodeList) ? Y.all(ret) : ret;
};
Y.NodeList = NodeList;
Y.all = function(nodes) {
return new NodeList(nodes);
};
Y.Node.all = Y.all;
/**
* @module node
* @submodule node-core
*/
var Y_NodeList = Y.NodeList,
ArrayProto = Array.prototype,
ArrayMethods = {
/** Returns a new NodeList combining the given NodeList(s)
* @for NodeList
* @method concat
* @param {NodeList | Array} valueN Arrays/NodeLists and/or values to
* concatenate to the resulting NodeList
* @return {NodeList} A new NodeList comprised of this NodeList joined with the input.
*/
'concat': 1,
/** Removes the last from the NodeList and returns it.
* @for NodeList
* @method pop
* @return {Node} The last item in the NodeList.
*/
'pop': 0,
/** Adds the given Node(s) to the end of the NodeList.
* @for NodeList
* @method push
* @param {Node | DOMNode} nodes One or more nodes to add to the end of the NodeList.
*/
'push': 0,
/** Removes the first item from the NodeList and returns it.
* @for NodeList
* @method shift
* @return {Node} The first item in the NodeList.
*/
'shift': 0,
/** Returns a new NodeList comprising the Nodes in the given range.
* @for NodeList
* @method slice
* @param {Number} begin Zero-based index at which to begin extraction.
As a negative index, start indicates an offset from the end of the sequence. slice(-2) extracts the second-to-last element and the last element in the sequence.
* @param {Number} end Zero-based index at which to end extraction. slice extracts up to but not including end.
slice(1,4) extracts the second element through the fourth element (elements indexed 1, 2, and 3).
As a negative index, end indicates an offset from the end of the sequence. slice(2,-1) extracts the third element through the second-to-last element in the sequence.
If end is omitted, slice extracts to the end of the sequence.
* @return {NodeList} A new NodeList comprised of this NodeList joined with the input.
*/
'slice': 1,
/** Changes the content of the NodeList, adding new elements while removing old elements.
* @for NodeList
* @method splice
* @param {Number} index Index at which to start changing the array. If negative, will begin that many elements from the end.
* @param {Number} howMany An integer indicating the number of old array elements to remove. If howMany is 0, no elements are removed. In this case, you should specify at least one new element. If no howMany parameter is specified (second syntax above, which is a SpiderMonkey extension), all elements after index are removed.
* {Node | DOMNode| element1, ..., elementN
The elements to add to the array. If you don't specify any elements, splice simply removes elements from the array.
* @return {NodeList} The element(s) removed.
*/
'splice': 1,
/** Adds the given Node(s) to the beginning of the NodeList.
* @for NodeList
* @method unshift
* @param {Node | DOMNode} nodes One or more nodes to add to the NodeList.
*/
'unshift': 0
};
Y.Object.each(ArrayMethods, function(returnNodeList, name) {
Y_NodeList.prototype[name] = function() {
var args = [],
i = 0,
arg,
ret;
while (typeof (arg = arguments[i++]) != 'undefined') { // use DOM nodes/nodeLists
args.push(arg._node || arg._nodes || arg);
}
ret = ArrayProto[name].apply(this._nodes, args);
if (returnNodeList) {
ret = Y.all(ret);
} else {
ret = Y.Node.scrubVal(ret);
}
return ret;
};
});
/**
* @module node
* @submodule node-core
*/
Y.Array.each([
/**
* Passes through to DOM method.
* @for Node
* @method removeChild
* @param {HTMLElement | Node} node Node to be removed
* @return {Node} The removed node
*/
'removeChild',
/**
* Passes through to DOM method.
* @method hasChildNodes
* @return {Boolean} Whether or not the node has any childNodes
*/
'hasChildNodes',
/**
* Passes through to DOM method.
* @method cloneNode
* @param {Boolean} deep Whether or not to perform a deep clone, which includes
* subtree and attributes
* @return {Node} The clone
*/
'cloneNode',
/**
* Passes through to DOM method.
* @method hasAttribute
* @param {String} attribute The attribute to test for
* @return {Boolean} Whether or not the attribute is present
*/
'hasAttribute',
/**
* Passes through to DOM method.
* @method scrollIntoView
* @chainable
*/
'scrollIntoView',
/**
* Passes through to DOM method.
* @method getElementsByTagName
* @param {String} tagName The tagName to collect
* @return {NodeList} A NodeList representing the HTMLCollection
*/
'getElementsByTagName',
/**
* Passes through to DOM method.
* @method focus
* @chainable
*/
'focus',
/**
* Passes through to DOM method.
* @method blur
* @chainable
*/
'blur',
/**
* Passes through to DOM method.
* Only valid on FORM elements
* @method submit
* @chainable
*/
'submit',
/**
* Passes through to DOM method.
* Only valid on FORM elements
* @method reset
* @chainable
*/
'reset',
/**
* Passes through to DOM method.
* @method select
* @chainable
*/
'select',
/**
* Passes through to DOM method.
* Only valid on TABLE elements
* @method createCaption
* @chainable
*/
'createCaption'
], function(method) {
Y.Node.prototype[method] = function(arg1, arg2, arg3) {
var ret = this.invoke(method, arg1, arg2, arg3);
return ret;
};
});
/**
* Passes through to DOM method.
* @method removeAttribute
* @param {String} attribute The attribute to be removed
* @chainable
*/
// one-off implementation due to IE returning boolean, breaking chaining
Y.Node.prototype.removeAttribute = function(attr) {
var node = this._node;
if (node) {
node.removeAttribute(attr, 0); // comma zero for IE < 8 to force case-insensitive
}
return this;
};
Y.Node.importMethod(Y.DOM, [
/**
* Determines whether the node is an ancestor of another HTML element in the DOM hierarchy.
* @method contains
* @param {Node | HTMLElement} needle The possible node or descendent
* @return {Boolean} Whether or not this node is the needle its ancestor
*/
'contains',
/**
* Allows setting attributes on DOM nodes, normalizing in some cases.
* This passes through to the DOM node, allowing for custom attributes.
* @method setAttribute
* @for Node
* @chainable
* @param {string} name The attribute name
* @param {string} value The value to set
*/
'setAttribute',
/**
* Allows getting attributes on DOM nodes, normalizing in some cases.
* This passes through to the DOM node, allowing for custom attributes.
* @method getAttribute
* @for Node
* @param {string} name The attribute name
* @return {string} The attribute value
*/
'getAttribute',
/**
* Wraps the given HTML around the node.
* @method wrap
* @param {String} html The markup to wrap around the node.
* @chainable
* @for Node
*/
'wrap',
/**
* Removes the node's parent node.
* @method unwrap
* @chainable
*/
'unwrap',
/**
* Applies a unique ID to the node if none exists
* @method generateID
* @return {String} The existing or generated ID
*/
'generateID'
]);
Y.NodeList.importMethod(Y.Node.prototype, [
/**
* Allows getting attributes on DOM nodes, normalizing in some cases.
* This passes through to the DOM node, allowing for custom attributes.
* @method getAttribute
* @see Node
* @for NodeList
* @param {string} name The attribute name
* @return {string} The attribute value
*/
'getAttribute',
/**
* Allows setting attributes on DOM nodes, normalizing in some cases.
* This passes through to the DOM node, allowing for custom attributes.
* @method setAttribute
* @see Node
* @for NodeList
* @chainable
* @param {string} name The attribute name
* @param {string} value The value to set
*/
'setAttribute',
/**
* Allows for removing attributes on DOM nodes.
* This passes through to the DOM node, allowing for custom attributes.
* @method removeAttribute
* @see Node
* @for NodeList
* @param {string} name The attribute to remove
*/
'removeAttribute',
/**
* Removes the parent node from node in the list.
* @method unwrap
* @chainable
*/
'unwrap',
/**
* Wraps the given HTML around each node.
* @method wrap
* @param {String} html The markup to wrap around the node.
* @chainable
*/
'wrap',
/**
* Applies a unique ID to each node if none exists
* @method generateID
* @return {String} The existing or generated ID
*/
'generateID'
]);
}, '3.7.3', {"requires": ["dom-core", "selector"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('node-base', function (Y, NAME) {
/**
* @module node
* @submodule node-base
*/
var methods = [
/**
* Determines whether each node has the given className.
* @method hasClass
* @for Node
* @param {String} className the class name to search for
* @return {Boolean} Whether or not the element has the specified class
*/
'hasClass',
/**
* Adds a class name to each node.
* @method addClass
* @param {String} className the class name to add to the node's class attribute
* @chainable
*/
'addClass',
/**
* Removes a class name from each node.
* @method removeClass
* @param {String} className the class name to remove from the node's class attribute
* @chainable
*/
'removeClass',
/**
* Replace a class with another class for each node.
* If no oldClassName is present, the newClassName is simply added.
* @method replaceClass
* @param {String} oldClassName the class name to be replaced
* @param {String} newClassName the class name that will be replacing the old class name
* @chainable
*/
'replaceClass',
/**
* If the className exists on the node it is removed, if it doesn't exist it is added.
* @method toggleClass
* @param {String} className the class name to be toggled
* @param {Boolean} force Option to force adding or removing the class.
* @chainable
*/
'toggleClass'
];
Y.Node.importMethod(Y.DOM, methods);
/**
* Determines whether each node has the given className.
* @method hasClass
* @see Node.hasClass
* @for NodeList
* @param {String} className the class name to search for
* @return {Array} An array of booleans for each node bound to the NodeList.
*/
/**
* Adds a class name to each node.
* @method addClass
* @see Node.addClass
* @param {String} className the class name to add to the node's class attribute
* @chainable
*/
/**
* Removes a class name from each node.
* @method removeClass
* @see Node.removeClass
* @param {String} className the class name to remove from the node's class attribute
* @chainable
*/
/**
* Replace a class with another class for each node.
* If no oldClassName is present, the newClassName is simply added.
* @method replaceClass
* @see Node.replaceClass
* @param {String} oldClassName the class name to be replaced
* @param {String} newClassName the class name that will be replacing the old class name
* @chainable
*/
/**
* If the className exists on the node it is removed, if it doesn't exist it is added.
* @method toggleClass
* @see Node.toggleClass
* @param {String} className the class name to be toggled
* @chainable
*/
Y.NodeList.importMethod(Y.Node.prototype, methods);
/**
* @module node
* @submodule node-base
*/
var Y_Node = Y.Node,
Y_DOM = Y.DOM;
/**
* Returns a new dom node using the provided markup string.
* @method create
* @static
* @param {String} html The markup used to create the element
* Use <a href="../classes/Escape.html#method_html">`Y.Escape.html()`</a>
* to escape html content.
* @param {HTMLDocument} doc An optional document context
* @return {Node} A Node instance bound to a DOM node or fragment
* @for Node
*/
Y_Node.create = function(html, doc) {
if (doc && doc._node) {
doc = doc._node;
}
return Y.one(Y_DOM.create(html, doc));
};
Y.mix(Y_Node.prototype, {
/**
* Creates a new Node using the provided markup string.
* @method create
* @param {String} html The markup used to create the element.
* Use <a href="../classes/Escape.html#method_html">`Y.Escape.html()`</a>
* to escape html content.
* @param {HTMLDocument} doc An optional document context
* @return {Node} A Node instance bound to a DOM node or fragment
*/
create: Y_Node.create,
/**
* Inserts the content before the reference node.
* @method insert
* @param {String | Node | HTMLElement | NodeList | HTMLCollection} content The content to insert
* Use <a href="../classes/Escape.html#method_html">`Y.Escape.html()`</a>
* to escape html content.
* @param {Int | Node | HTMLElement | String} where The position to insert at.
* Possible "where" arguments
* <dl>
* <dt>Y.Node</dt>
* <dd>The Node to insert before</dd>
* <dt>HTMLElement</dt>
* <dd>The element to insert before</dd>
* <dt>Int</dt>
* <dd>The index of the child element to insert before</dd>
* <dt>"replace"</dt>
* <dd>Replaces the existing HTML</dd>
* <dt>"before"</dt>
* <dd>Inserts before the existing HTML</dd>
* <dt>"before"</dt>
* <dd>Inserts content before the node</dd>
* <dt>"after"</dt>
* <dd>Inserts content after the node</dd>
* </dl>
* @chainable
*/
insert: function(content, where) {
this._insert(content, where);
return this;
},
_insert: function(content, where) {
var node = this._node,
ret = null;
if (typeof where == 'number') { // allow index
where = this._node.childNodes[where];
} else if (where && where._node) { // Node
where = where._node;
}
if (content && typeof content != 'string') { // allow Node or NodeList/Array instances
content = content._node || content._nodes || content;
}
ret = Y_DOM.addHTML(node, content, where);
return ret;
},
/**
* Inserts the content as the firstChild of the node.
* @method prepend
* @param {String | Node | HTMLElement} content The content to insert
* Use <a href="../classes/Escape.html#method_html">`Y.Escape.html()`</a>
* to escape html content.
* @chainable
*/
prepend: function(content) {
return this.insert(content, 0);
},
/**
* Inserts the content as the lastChild of the node.
* @method append
* @param {String | Node | HTMLElement} content The content to insert
* Use <a href="../classes/Escape.html#method_html">`Y.Escape.html()`</a>
* to escape html content.
* @chainable
*/
append: function(content) {
return this.insert(content, null);
},
/**
* @method appendChild
* @param {String | HTMLElement | Node} node Node to be appended
* Use <a href="../classes/Escape.html#method_html">`Y.Escape.html()`</a>
* to escape html content.
* @return {Node} The appended node
*/
appendChild: function(node) {
return Y_Node.scrubVal(this._insert(node));
},
/**
* @method insertBefore
* @param {String | HTMLElement | Node} newNode Node to be appended
* @param {HTMLElement | Node} refNode Node to be inserted before
* Use <a href="../classes/Escape.html#method_html">`Y.Escape.html()`</a>
* to escape html content.
* @return {Node} The inserted node
*/
insertBefore: function(newNode, refNode) {
return Y.Node.scrubVal(this._insert(newNode, refNode));
},
/**
* Appends the node to the given node.
* @method appendTo
* @param {Node | HTMLElement} node The node to append to
* @chainable
*/
appendTo: function(node) {
Y.one(node).append(this);
return this;
},
/**
* Replaces the node's current content with the content.
* Note that this passes to innerHTML and is not escaped.
* Use <a href="../classes/Escape.html#method_html">`Y.Escape.html()`</a>
* to escape html content or `set('text')` to add as text.
* @method setContent
* @deprecated Use setHTML
* @param {String | Node | HTMLElement | NodeList | HTMLCollection} content The content to insert
* @chainable
*/
setContent: function(content) {
this._insert(content, 'replace');
return this;
},
/**
* Returns the node's current content (e.g. innerHTML)
* @method getContent
* @deprecated Use getHTML
* @return {String} The current content
*/
getContent: function(content) {
return this.get('innerHTML');
}
});
/**
* Replaces the node's current html content with the content provided.
* Note that this passes to innerHTML and is not escaped.
* Use `Y.Escape.html()` to escape HTML, or `set('text')` to add as text.
* @method setHTML
* @param {String | HTML | Node | HTMLElement | NodeList | HTMLCollection} content The content to insert
* @chainable
*/
Y.Node.prototype.setHTML = Y.Node.prototype.setContent;
/**
* Returns the node's current html content (e.g. innerHTML)
* @method getHTML
* @return {String} The html content
*/
Y.Node.prototype.getHTML = Y.Node.prototype.getContent;
Y.NodeList.importMethod(Y.Node.prototype, [
/**
* Called on each Node instance
* @for NodeList
* @method append
* @see Node.append
*/
'append',
/**
* Called on each Node instance
* @for NodeList
* @method insert
* @see Node.insert
*/
'insert',
/**
* Called on each Node instance
* @for NodeList
* @method appendChild
* @see Node.appendChild
*/
'appendChild',
/**
* Called on each Node instance
* @for NodeList
* @method insertBefore
* @see Node.insertBefore
*/
'insertBefore',
/**
* Called on each Node instance
* @for NodeList
* @method prepend
* @see Node.prepend
*/
'prepend',
/**
* Called on each Node instance
* Note that this passes to innerHTML and is not escaped.
* Use `Y.Escape.html()` to escape HTML, or `set('text')` to add as text.
* @for NodeList
* @method setContent
* @deprecated Use setHTML
*/
'setContent',
/**
* Called on each Node instance
* @for NodeList
* @method getContent
* @deprecated Use getHTML
*/
'getContent',
/**
* Called on each Node instance
* Note that this passes to innerHTML and is not escaped.
* Use `Y.Escape.html()` to escape HTML, or `set('text')` to add as text.
* @for NodeList
* @method setHTML
* @see Node.setHTML
*/
'setHTML',
/**
* Called on each Node instance
* @for NodeList
* @method getHTML
* @see Node.getHTML
*/
'getHTML'
]);
/**
* @module node
* @submodule node-base
*/
var Y_Node = Y.Node,
Y_DOM = Y.DOM;
/**
* Static collection of configuration attributes for special handling
* @property ATTRS
* @static
* @type object
*/
Y_Node.ATTRS = {
/**
* Allows for getting and setting the text of an element.
* Formatting is preserved and special characters are treated literally.
* @config text
* @type String
*/
text: {
getter: function() {
return Y_DOM.getText(this._node);
},
setter: function(content) {
Y_DOM.setText(this._node, content);
return content;
}
},
/**
* Allows for getting and setting the text of an element.
* Formatting is preserved and special characters are treated literally.
* @config for
* @type String
*/
'for': {
getter: function() {
return Y_DOM.getAttribute(this._node, 'for');
},
setter: function(val) {
Y_DOM.setAttribute(this._node, 'for', val);
return val;
}
},
'options': {
getter: function() {
return this._node.getElementsByTagName('option');
}
},
/**
* Returns a NodeList instance of all HTMLElement children.
* @readOnly
* @config children
* @type NodeList
*/
'children': {
getter: function() {
var node = this._node,
children = node.children,
childNodes, i, len;
if (!children) {
childNodes = node.childNodes;
children = [];
for (i = 0, len = childNodes.length; i < len; ++i) {
if (childNodes[i].tagName) {
children[children.length] = childNodes[i];
}
}
}
return Y.all(children);
}
},
value: {
getter: function() {
return Y_DOM.getValue(this._node);
},
setter: function(val) {
Y_DOM.setValue(this._node, val);
return val;
}
}
};
Y.Node.importMethod(Y.DOM, [
/**
* Allows setting attributes on DOM nodes, normalizing in some cases.
* This passes through to the DOM node, allowing for custom attributes.
* @method setAttribute
* @for Node
* @for NodeList
* @chainable
* @param {string} name The attribute name
* @param {string} value The value to set
*/
'setAttribute',
/**
* Allows getting attributes on DOM nodes, normalizing in some cases.
* This passes through to the DOM node, allowing for custom attributes.
* @method getAttribute
* @for Node
* @for NodeList
* @param {string} name The attribute name
* @return {string} The attribute value
*/
'getAttribute'
]);
/**
* @module node
* @submodule node-base
*/
var Y_Node = Y.Node;
var Y_NodeList = Y.NodeList;
/**
* List of events that route to DOM events
* @static
* @property DOM_EVENTS
* @for Node
*/
Y_Node.DOM_EVENTS = {
abort: 1,
beforeunload: 1,
blur: 1,
change: 1,
click: 1,
close: 1,
command: 1,
contextmenu: 1,
dblclick: 1,
DOMMouseScroll: 1,
drag: 1,
dragstart: 1,
dragenter: 1,
dragover: 1,
dragleave: 1,
dragend: 1,
drop: 1,
error: 1,
focus: 1,
key: 1,
keydown: 1,
keypress: 1,
keyup: 1,
load: 1,
message: 1,
mousedown: 1,
mouseenter: 1,
mouseleave: 1,
mousemove: 1,
mousemultiwheel: 1,
mouseout: 1,
mouseover: 1,
mouseup: 1,
mousewheel: 1,
orientationchange: 1,
reset: 1,
resize: 1,
select: 1,
selectstart: 1,
submit: 1,
scroll: 1,
textInput: 1,
unload: 1
};
// Add custom event adaptors to this list. This will make it so
// that delegate, key, available, contentready, etc all will
// be available through Node.on
Y.mix(Y_Node.DOM_EVENTS, Y.Env.evt.plugins);
Y.augment(Y_Node, Y.EventTarget);
Y.mix(Y_Node.prototype, {
/**
* Removes event listeners from the node and (optionally) its subtree
* @method purge
* @param {Boolean} [recurse] Whether or not to remove listeners from the
* node's subtree
* @param {String} [type] Only remove listeners of the specified type
* @chainable
*
*/
purge: function(recurse, type) {
Y.Event.purgeElement(this._node, recurse, type);
return this;
}
});
Y.mix(Y.NodeList.prototype, {
_prepEvtArgs: function(type, fn, context) {
// map to Y.on/after signature (type, fn, nodes, context, arg1, arg2, etc)
var args = Y.Array(arguments, 0, true);
if (args.length < 2) { // type only (event hash) just add nodes
args[2] = this._nodes;
} else {
args.splice(2, 0, this._nodes);
}
args[3] = context || this; // default to NodeList instance as context
return args;
},
/**
Subscribe a callback function for each `Node` in the collection to execute
in response to a DOM event.
NOTE: Generally, the `on()` method should be avoided on `NodeLists`, in
favor of using event delegation from a parent Node. See the Event user
guide for details.
Most DOM events are associated with a preventable default behavior, such as
link clicks navigating to a new page. Callbacks are passed a
`DOMEventFacade` object as their first argument (usually called `e`) that
can be used to prevent this default behavior with `e.preventDefault()`. See
the `DOMEventFacade` API for all available properties and methods on the
object.
By default, the `this` object will be the `NodeList` that the subscription
came from, <em>not the `Node` that received the event</em>. Use
`e.currentTarget` to refer to the `Node`.
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.
@example
Y.all(".sku").on("keydown", function (e) {
if (e.keyCode === 13) {
e.preventDefault();
// Use e.currentTarget to refer to the individual Node
var item = Y.MyApp.searchInventory( e.currentTarget.get('value') );
// etc ...
}
});
@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
@for NodeList
**/
on: function(type, fn, context) {
return Y.on.apply(Y, this._prepEvtArgs.apply(this, arguments));
},
/**
* Applies an one-time event listener to each Node bound to the NodeList.
* @method once
* @param {String} type The event being listened for
* @param {Function} fn The handler to call when the event fires
* @param {Object} context The context to call the handler with.
* Default is the NodeList instance.
* @return {EventHandle} A subscription handle capable of detaching that
* subscription
* @for NodeList
*/
once: function(type, fn, context) {
return Y.once.apply(Y, this._prepEvtArgs.apply(this, arguments));
},
/**
* Applies an event listener to each Node bound to the NodeList.
* The handler is called only after all on() handlers are called
* and the event is not prevented.
* @method after
* @param {String} type The event being listened for
* @param {Function} fn The handler to call when the event fires
* @param {Object} context The context to call the handler with.
* Default is the NodeList instance.
* @return {EventHandle} A subscription handle capable of detaching that
* subscription
* @for NodeList
*/
after: function(type, fn, context) {
return Y.after.apply(Y, this._prepEvtArgs.apply(this, arguments));
},
/**
* Applies an one-time event listener to each Node bound to the NodeList
* that will be called only after all on() handlers are called and the
* event is not prevented.
*
* @method onceAfter
* @param {String} type The event being listened for
* @param {Function} fn The handler to call when the event fires
* @param {Object} context The context to call the handler with.
* Default is the NodeList instance.
* @return {EventHandle} A subscription handle capable of detaching that
* subscription
* @for NodeList
*/
onceAfter: function(type, fn, context) {
return Y.onceAfter.apply(Y, this._prepEvtArgs.apply(this, arguments));
}
});
Y_NodeList.importMethod(Y.Node.prototype, [
/**
* Called on each Node instance
* @method detach
* @see Node.detach
* @for NodeList
*/
'detach',
/** Called on each Node instance
* @method detachAll
* @see Node.detachAll
* @for NodeList
*/
'detachAll'
]);
/**
Subscribe a callback function to execute in response to a DOM event or custom
event.
Most DOM events are associated with a preventable default behavior such as
link clicks navigating to a new page. Callbacks are passed a `DOMEventFacade`
object as their first argument (usually called `e`) that can be used to
prevent this default behavior with `e.preventDefault()`. See the
`DOMEventFacade` API for all available properties and methods on the object.
If the event name passed as the first parameter is not a whitelisted DOM event,
it will be treated as a custom event subscriptions, allowing
`node.fire('customEventName')` later in the code. Refer to the Event user guide
for the full DOM event whitelist.
By default, the `this` object in the callback will refer to the subscribed
`Node`.
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.
@example
Y.one("#my-form").on("submit", function (e) {
e.preventDefault();
// proceed with ajax form submission instead...
});
@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
@for Node
**/
Y.mix(Y.Node.ATTRS, {
offsetHeight: {
setter: function(h) {
Y.DOM.setHeight(this._node, h);
return h;
},
getter: function() {
return this._node.offsetHeight;
}
},
offsetWidth: {
setter: function(w) {
Y.DOM.setWidth(this._node, w);
return w;
},
getter: function() {
return this._node.offsetWidth;
}
}
});
Y.mix(Y.Node.prototype, {
sizeTo: function(w, h) {
var node;
if (arguments.length < 2) {
node = Y.one(w);
w = node.get('offsetWidth');
h = node.get('offsetHeight');
}
this.setAttrs({
offsetWidth: w,
offsetHeight: h
});
}
});
/**
* @module node
* @submodule node-base
*/
var Y_Node = Y.Node;
Y.mix(Y_Node.prototype, {
/**
* Makes the node visible.
* If the "transition" module is loaded, show optionally
* animates the showing of the node using either the default
* transition effect ('fadeIn'), or the given named effect.
* @method show
* @for Node
* @param {String} name A named Transition effect to use as the show effect.
* @param {Object} config Options to use with the transition.
* @param {Function} callback An optional function to run after the transition completes.
* @chainable
*/
show: function(callback) {
callback = arguments[arguments.length - 1];
this.toggleView(true, callback);
return this;
},
/**
* The implementation for showing nodes.
* Default is to toggle the style.display property.
* @method _show
* @protected
* @chainable
*/
_show: function() {
this.setStyle('display', '');
},
_isHidden: function() {
return Y.DOM.getStyle(this._node, 'display') === 'none';
},
/**
* Displays or hides the node.
* If the "transition" module is loaded, toggleView optionally
* animates the toggling of the node using either the default
* transition effect ('fadeIn'), or the given named effect.
* @method toggleView
* @for Node
* @param {Boolean} [on] An optional boolean value to force the node to be shown or hidden
* @param {Function} [callback] An optional function to run after the transition completes.
* @chainable
*/
toggleView: function(on, callback) {
this._toggleView.apply(this, arguments);
return this;
},
_toggleView: function(on, callback) {
callback = arguments[arguments.length - 1];
// base on current state if not forcing
if (typeof on != 'boolean') {
on = (this._isHidden()) ? 1 : 0;
}
if (on) {
this._show();
} else {
this._hide();
}
if (typeof callback == 'function') {
callback.call(this);
}
return this;
},
/**
* Hides the node.
* If the "transition" module is loaded, hide optionally
* animates the hiding of the node using either the default
* transition effect ('fadeOut'), or the given named effect.
* @method hide
* @param {String} name A named Transition effect to use as the show effect.
* @param {Object} config Options to use with the transition.
* @param {Function} callback An optional function to run after the transition completes.
* @chainable
*/
hide: function(callback) {
callback = arguments[arguments.length - 1];
this.toggleView(false, callback);
return this;
},
/**
* The implementation for hiding nodes.
* Default is to toggle the style.display property.
* @method _hide
* @protected
* @chainable
*/
_hide: function() {
this.setStyle('display', 'none');
}
});
Y.NodeList.importMethod(Y.Node.prototype, [
/**
* Makes each node visible.
* If the "transition" module is loaded, show optionally
* animates the showing of the node using either the default
* transition effect ('fadeIn'), or the given named effect.
* @method show
* @param {String} name A named Transition effect to use as the show effect.
* @param {Object} config Options to use with the transition.
* @param {Function} callback An optional function to run after the transition completes.
* @for NodeList
* @chainable
*/
'show',
/**
* Hides each node.
* If the "transition" module is loaded, hide optionally
* animates the hiding of the node using either the default
* transition effect ('fadeOut'), or the given named effect.
* @method hide
* @param {String} name A named Transition effect to use as the show effect.
* @param {Object} config Options to use with the transition.
* @param {Function} callback An optional function to run after the transition completes.
* @chainable
*/
'hide',
/**
* Displays or hides each node.
* If the "transition" module is loaded, toggleView optionally
* animates the toggling of the nodes using either the default
* transition effect ('fadeIn'), or the given named effect.
* @method toggleView
* @param {Boolean} [on] An optional boolean value to force the nodes to be shown or hidden
* @param {Function} [callback] An optional function to run after the transition completes.
* @chainable
*/
'toggleView'
]);
if (!Y.config.doc.documentElement.hasAttribute) { // IE < 8
Y.Node.prototype.hasAttribute = function(attr) {
if (attr === 'value') {
if (this.get('value') !== "") { // IE < 8 fails to populate specified when set in HTML
return true;
}
}
return !!(this._node.attributes[attr] &&
this._node.attributes[attr].specified);
};
}
// IE throws an error when calling focus() on an element that's invisible, not
// displayed, or disabled.
Y.Node.prototype.focus = function () {
try {
this._node.focus();
} catch (e) {
}
return this;
};
// IE throws error when setting input.type = 'hidden',
// input.setAttribute('type', 'hidden') and input.attributes.type.value = 'hidden'
Y.Node.ATTRS.type = {
setter: function(val) {
if (val === 'hidden') {
try {
this._node.type = 'hidden';
} catch(e) {
this.setStyle('display', 'none');
this._inputType = 'hidden';
}
} else {
try { // IE errors when changing the type from "hidden'
this._node.type = val;
} catch (e) {
}
}
return val;
},
getter: function() {
return this._inputType || this._node.type;
},
_bypassProxy: true // don't update DOM when using with Attribute
};
if (Y.config.doc.createElement('form').elements.nodeType) {
// IE: elements collection is also FORM node which trips up scrubVal.
Y.Node.ATTRS.elements = {
getter: function() {
return this.all('input, textarea, button, select');
}
};
}
/**
* Provides methods for managing custom Node data.
*
* @module node
* @main node
* @submodule node-data
*/
Y.mix(Y.Node.prototype, {
_initData: function() {
if (! ('_data' in this)) {
this._data = {};
}
},
/**
* @method getData
* @for Node
* @description Retrieves arbitrary data stored on a Node instance.
* If no data is associated with the Node, it will attempt to retrieve
* a value from the corresponding HTML data attribute. (e.g. node.getData('foo')
* will check node.getAttribute('data-foo')).
* @param {string} name Optional name of the data field to retrieve.
* If no name is given, all data is returned.
* @return {any | Object} Whatever is stored at the given field,
* or an object hash of all fields.
*/
getData: function(name) {
this._initData();
var data = this._data,
ret = data;
if (arguments.length) { // single field
if (name in data) {
ret = data[name];
} else { // initialize from HTML attribute
ret = this._getDataAttribute(name);
}
} else if (typeof data == 'object' && data !== null) { // all fields
ret = {};
Y.Object.each(data, function(v, n) {
ret[n] = v;
});
ret = this._getDataAttributes(ret);
}
return ret;
},
_getDataAttributes: function(ret) {
ret = ret || {};
var i = 0,
attrs = this._node.attributes,
len = attrs.length,
prefix = this.DATA_PREFIX,
prefixLength = prefix.length,
name;
while (i < len) {
name = attrs[i].name;
if (name.indexOf(prefix) === 0) {
name = name.substr(prefixLength);
if (!(name in ret)) { // only merge if not already stored
ret[name] = this._getDataAttribute(name);
}
}
i += 1;
}
return ret;
},
_getDataAttribute: function(name) {
var name = this.DATA_PREFIX + name,
node = this._node,
attrs = node.attributes,
data = attrs && attrs[name] && attrs[name].value;
return data;
},
/**
* @method setData
* @for Node
* @description Stores arbitrary data on a Node instance.
* This is not stored with the DOM node.
* @param {string} name The name of the field to set. If no val
* is given, name is treated as the data and overrides any existing data.
* @param {any} val The value to be assigned to the field.
* @chainable
*/
setData: function(name, val) {
this._initData();
if (arguments.length > 1) {
this._data[name] = val;
} else {
this._data = name;
}
return this;
},
/**
* @method clearData
* @for Node
* @description Clears internally stored data.
* @param {string} name The name of the field to clear. If no name
* is given, all data is cleared.
* @chainable
*/
clearData: function(name) {
if ('_data' in this) {
if (typeof name != 'undefined') {
delete this._data[name];
} else {
delete this._data;
}
}
return this;
}
});
Y.mix(Y.NodeList.prototype, {
/**
* @method getData
* @for NodeList
* @description Retrieves arbitrary data stored on each Node instance
* bound to the NodeList.
* @see Node
* @param {string} name Optional name of the data field to retrieve.
* If no name is given, all data is returned.
* @return {Array} An array containing all of the data for each Node instance.
* or an object hash of all fields.
*/
getData: function(name) {
var args = (arguments.length) ? [name] : [];
return this._invoke('getData', args, true);
},
/**
* @method setData
* @for NodeList
* @description Stores arbitrary data on each Node instance bound to the
* NodeList. This is not stored with the DOM node.
* @param {string} name The name of the field to set. If no name
* is given, name is treated as the data and overrides any existing data.
* @param {any} val The value to be assigned to the field.
* @chainable
*/
setData: function(name, val) {
var args = (arguments.length > 1) ? [name, val] : [name];
return this._invoke('setData', args);
},
/**
* @method clearData
* @for NodeList
* @description Clears data on all Node instances bound to the NodeList.
* @param {string} name The name of the field to clear. If no name
* is given, all data is cleared.
* @chainable
*/
clearData: function(name) {
var args = (arguments.length) ? [name] : [];
return this._invoke('clearData', [name]);
}
});
}, '3.7.3', {"requires": ["event-base", "node-core", "dom-base"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
(function () {
var GLOBAL_ENV = YUI.Env;
if (!GLOBAL_ENV._ready) {
GLOBAL_ENV._ready = function() {
GLOBAL_ENV.DOMReady = true;
GLOBAL_ENV.remove(YUI.config.doc, 'DOMContentLoaded', GLOBAL_ENV._ready);
};
GLOBAL_ENV.add(YUI.config.doc, 'DOMContentLoaded', GLOBAL_ENV._ready);
}
})();
YUI.add('event-base', function (Y, NAME) {
/*
* DOM event listener abstraction layer
* @module event
* @submodule event-base
*/
/**
* The domready event fires at the moment the browser's DOM is
* usable. In most cases, this is before images are fully
* downloaded, allowing you to provide a more responsive user
* interface.
*
* In YUI 3, domready subscribers will be notified immediately if
* that moment has already passed when the subscription is created.
*
* One exception is if the yui.js file is dynamically injected into
* the page. If this is done, you must tell the YUI instance that
* you did this in order for DOMReady (and window load events) to
* fire normally. That configuration option is 'injected' -- set
* it to true if the yui.js script is not included inline.
*
* This method is part of the 'event-ready' module, which is a
* submodule of 'event'.
*
* @event domready
* @for YUI
*/
Y.publish('domready', {
fireOnce: true,
async: true
});
if (YUI.Env.DOMReady) {
Y.fire('domready');
} else {
Y.Do.before(function() { Y.fire('domready'); }, YUI.Env, '_ready');
}
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event
* @submodule event-base
*/
/**
* Wraps a DOM event, properties requiring browser abstraction are
* fixed here. Provids a security layer when required.
* @class DOMEventFacade
* @param ev {Event} the DOM event
* @param currentTarget {HTMLElement} the element the listener was attached to
* @param wrapper {Event.Custom} the custom event wrapper for this DOM event
*/
var ua = Y.UA,
EMPTY = {},
/**
* webkit key remapping required for Safari < 3.1
* @property webkitKeymap
* @private
*/
webkitKeymap = {
63232: 38, // up
63233: 40, // down
63234: 37, // left
63235: 39, // right
63276: 33, // page up
63277: 34, // page down
25: 9, // SHIFT-TAB (Safari provides a different key code in
// this case, even though the shiftKey modifier is set)
63272: 46, // delete
63273: 36, // home
63275: 35 // end
},
/**
* Returns a wrapped node. Intended to be used on event targets,
* so it will return the node's parent if the target is a text
* node.
*
* If accessing a property of the node throws an error, this is
* probably the anonymous div wrapper Gecko adds inside text
* nodes. This likely will only occur when attempting to access
* the relatedTarget. In this case, we now return null because
* the anonymous div is completely useless and we do not know
* what the related target was because we can't even get to
* the element's parent node.
*
* @method resolve
* @private
*/
resolve = function(n) {
if (!n) {
return n;
}
try {
if (n && 3 == n.nodeType) {
n = n.parentNode;
}
} catch(e) {
return null;
}
return Y.one(n);
},
DOMEventFacade = function(ev, currentTarget, wrapper) {
this._event = ev;
this._currentTarget = currentTarget;
this._wrapper = wrapper || EMPTY;
// if not lazy init
this.init();
};
Y.extend(DOMEventFacade, Object, {
init: function() {
var e = this._event,
overrides = this._wrapper.overrides,
x = e.pageX,
y = e.pageY,
c,
currentTarget = this._currentTarget;
this.altKey = e.altKey;
this.ctrlKey = e.ctrlKey;
this.metaKey = e.metaKey;
this.shiftKey = e.shiftKey;
this.type = (overrides && overrides.type) || e.type;
this.clientX = e.clientX;
this.clientY = e.clientY;
this.pageX = x;
this.pageY = y;
// charCode is unknown in keyup, keydown. keyCode is unknown in keypress.
// FF 3.6 - 8+? pass 0 for keyCode in keypress events.
// Webkit, FF 3.6-8+?, and IE9+? pass 0 for charCode in keydown, keyup.
// Webkit and IE9+? duplicate charCode in keyCode.
// Opera never sets charCode, always keyCode (though with the charCode).
// IE6-8 don't set charCode or which.
// All browsers other than IE6-8 set which=keyCode in keydown, keyup, and
// which=charCode in keypress.
//
// Moral of the story: (e.which || e.keyCode) will always return the
// known code for that key event phase. e.keyCode is often different in
// keypress from keydown and keyup.
c = e.keyCode || e.charCode;
if (ua.webkit && (c in webkitKeymap)) {
c = webkitKeymap[c];
}
this.keyCode = c;
this.charCode = c;
// Fill in e.which for IE - implementers should always use this over
// e.keyCode or e.charCode.
this.which = e.which || e.charCode || c;
// this.button = e.button;
this.button = this.which;
this.target = resolve(e.target);
this.currentTarget = resolve(currentTarget);
this.relatedTarget = resolve(e.relatedTarget);
if (e.type == "mousewheel" || e.type == "DOMMouseScroll") {
this.wheelDelta = (e.detail) ? (e.detail * -1) : Math.round(e.wheelDelta / 80) || ((e.wheelDelta < 0) ? -1 : 1);
}
if (this._touch) {
this._touch(e, currentTarget, this._wrapper);
}
},
stopPropagation: function() {
this._event.stopPropagation();
this._wrapper.stopped = 1;
this.stopped = 1;
},
stopImmediatePropagation: function() {
var e = this._event;
if (e.stopImmediatePropagation) {
e.stopImmediatePropagation();
} else {
this.stopPropagation();
}
this._wrapper.stopped = 2;
this.stopped = 2;
},
preventDefault: function(returnValue) {
var e = this._event;
e.preventDefault();
e.returnValue = returnValue || false;
this._wrapper.prevented = 1;
this.prevented = 1;
},
halt: function(immediate) {
if (immediate) {
this.stopImmediatePropagation();
} else {
this.stopPropagation();
}
this.preventDefault();
}
});
DOMEventFacade.resolve = resolve;
Y.DOM2EventFacade = DOMEventFacade;
Y.DOMEventFacade = DOMEventFacade;
/**
* The native event
* @property _event
* @type {Native DOM Event}
* @private
*/
/**
The name of the event (e.g. "click")
@property type
@type {String}
**/
/**
`true` if the "alt" or "option" key is pressed.
@property altKey
@type {Boolean}
**/
/**
`true` if the shift key is pressed.
@property shiftKey
@type {Boolean}
**/
/**
`true` if the "Windows" key on a Windows keyboard, "command" key on an
Apple keyboard, or "meta" key on other keyboards is pressed.
@property metaKey
@type {Boolean}
**/
/**
`true` if the "Ctrl" or "control" key is pressed.
@property ctrlKey
@type {Boolean}
**/
/**
* The X location of the event on the page (including scroll)
* @property pageX
* @type {Number}
*/
/**
* The Y location of the event on the page (including scroll)
* @property pageY
* @type {Number}
*/
/**
* The X location of the event in the viewport
* @property clientX
* @type {Number}
*/
/**
* The Y location of the event in the viewport
* @property clientY
* @type {Number}
*/
/**
* The keyCode for key events. Uses charCode if keyCode is not available
* @property keyCode
* @type {Number}
*/
/**
* The charCode for key events. Same as keyCode
* @property charCode
* @type {Number}
*/
/**
* The button that was pushed. 1 for left click, 2 for middle click, 3 for
* right click. This is only reliably populated on `mouseup` events.
* @property button
* @type {Number}
*/
/**
* The button that was pushed. Same as button.
* @property which
* @type {Number}
*/
/**
* Node reference for the targeted element
* @property target
* @type {Node}
*/
/**
* Node reference for the element that the listener was attached to.
* @property currentTarget
* @type {Node}
*/
/**
* Node reference to the relatedTarget
* @property relatedTarget
* @type {Node}
*/
/**
* Number representing the direction and velocity of the movement of the mousewheel.
* Negative is down, the higher the number, the faster. Applies to the mousewheel event.
* @property wheelDelta
* @type {Number}
*/
/**
* Stops the propagation to the next bubble target
* @method stopPropagation
*/
/**
* Stops the propagation to the next bubble target and
* prevents any additional listeners from being exectued
* on the current target.
* @method stopImmediatePropagation
*/
/**
* Prevents the event's default behavior
* @method preventDefault
* @param returnValue {string} sets the returnValue of the event to this value
* (rather than the default false value). This can be used to add a customized
* confirmation query to the beforeunload event).
*/
/**
* Stops the event propagation and prevents the default
* event behavior.
* @method halt
* @param immediate {boolean} if true additional listeners
* on the current target will not be executed
*/
(function() {
/**
* The event utility provides functions to add and remove event listeners,
* event cleansing. It also tries to automatically remove listeners it
* registers during the unload event.
* @module event
* @main event
* @submodule event-base
*/
/**
* The event utility provides functions to add and remove event listeners,
* event cleansing. It also tries to automatically remove listeners it
* registers during the unload event.
*
* @class Event
* @static
*/
Y.Env.evt.dom_wrappers = {};
Y.Env.evt.dom_map = {};
var YDOM = Y.DOM,
_eventenv = Y.Env.evt,
config = Y.config,
win = config.win,
add = YUI.Env.add,
remove = YUI.Env.remove,
onLoad = function() {
YUI.Env.windowLoaded = true;
Y.Event._load();
remove(win, "load", onLoad);
},
onUnload = function() {
Y.Event._unload();
},
EVENT_READY = 'domready',
COMPAT_ARG = '~yui|2|compat~',
shouldIterate = function(o) {
try {
// TODO: See if there's a more performant way to return true early on this, for the common case
return (o && typeof o !== "string" && Y.Lang.isNumber(o.length) && !o.tagName && !YDOM.isWindow(o));
} catch(ex) {
return false;
}
},
// aliases to support DOM event subscription clean up when the last
// subscriber is detached. deleteAndClean overrides the DOM event's wrapper
// CustomEvent _delete method.
_ceProtoDelete = Y.CustomEvent.prototype._delete,
_deleteAndClean = function(s) {
var ret = _ceProtoDelete.apply(this, arguments);
if (!this.hasSubs()) {
Y.Event._clean(this);
}
return ret;
},
Event = function() {
/**
* True after the onload event has fired
* @property _loadComplete
* @type boolean
* @static
* @private
*/
var _loadComplete = false,
/**
* The number of times to poll after window.onload. This number is
* increased if additional late-bound handlers are requested after
* the page load.
* @property _retryCount
* @static
* @private
*/
_retryCount = 0,
/**
* onAvailable listeners
* @property _avail
* @static
* @private
*/
_avail = [],
/**
* Custom event wrappers for DOM events. Key is
* 'event:' + Element uid stamp + event type
* @property _wrappers
* @type Y.Event.Custom
* @static
* @private
*/
_wrappers = _eventenv.dom_wrappers,
_windowLoadKey = null,
/**
* Custom event wrapper map DOM events. Key is
* Element uid stamp. Each item is a hash of custom event
* wrappers as provided in the _wrappers collection. This
* provides the infrastructure for getListeners.
* @property _el_events
* @static
* @private
*/
_el_events = _eventenv.dom_map;
return {
/**
* The number of times we should look for elements that are not
* in the DOM at the time the event is requested after the document
* has been loaded. The default is 1000@amp;40 ms, so it will poll
* for 40 seconds or until all outstanding handlers are bound
* (whichever comes first).
* @property POLL_RETRYS
* @type int
* @static
* @final
*/
POLL_RETRYS: 1000,
/**
* The poll interval in milliseconds
* @property POLL_INTERVAL
* @type int
* @static
* @final
*/
POLL_INTERVAL: 40,
/**
* addListener/removeListener can throw errors in unexpected scenarios.
* These errors are suppressed, the method returns false, and this property
* is set
* @property lastError
* @static
* @type Error
*/
lastError: null,
/**
* poll handle
* @property _interval
* @static
* @private
*/
_interval: null,
/**
* document readystate poll handle
* @property _dri
* @static
* @private
*/
_dri: null,
/**
* True when the document is initially usable
* @property DOMReady
* @type boolean
* @static
*/
DOMReady: false,
/**
* @method startInterval
* @static
* @private
*/
startInterval: function() {
if (!Event._interval) {
Event._interval = setInterval(Event._poll, Event.POLL_INTERVAL);
}
},
/**
* Executes the supplied callback when the item with the supplied
* id is found. This is meant to be used to execute behavior as
* soon as possible as the page loads. If you use this after the
* initial page load it will poll for a fixed time for the element.
* The number of times it will poll and the frequency are
* configurable. By default it will poll for 10 seconds.
*
* <p>The callback is executed with a single parameter:
* the custom object parameter, if provided.</p>
*
* @method onAvailable
*
* @param {string||string[]} id the id of the element, or an array
* of ids to look for.
* @param {function} fn what to execute when the element is found.
* @param {object} p_obj an optional object to be passed back as
* a parameter to fn.
* @param {boolean|object} p_override If set to true, fn will execute
* in the context of p_obj, if set to an object it
* will execute in the context of that object
* @param checkContent {boolean} check child node readiness (onContentReady)
* @static
* @deprecated Use Y.on("available")
*/
// @TODO fix arguments
onAvailable: function(id, fn, p_obj, p_override, checkContent, compat) {
var a = Y.Array(id), i, availHandle;
for (i=0; i<a.length; i=i+1) {
_avail.push({
id: a[i],
fn: fn,
obj: p_obj,
override: p_override,
checkReady: checkContent,
compat: compat
});
}
_retryCount = this.POLL_RETRYS;
// We want the first test to be immediate, but async
setTimeout(Event._poll, 0);
availHandle = new Y.EventHandle({
_delete: function() {
// set by the event system for lazy DOM listeners
if (availHandle.handle) {
availHandle.handle.detach();
return;
}
var i, j;
// otherwise try to remove the onAvailable listener(s)
for (i = 0; i < a.length; i++) {
for (j = 0; j < _avail.length; j++) {
if (a[i] === _avail[j].id) {
_avail.splice(j, 1);
}
}
}
}
});
return availHandle;
},
/**
* Works the same way as onAvailable, but additionally checks the
* state of sibling elements to determine if the content of the
* available element is safe to modify.
*
* <p>The callback is executed with a single parameter:
* the custom object parameter, if provided.</p>
*
* @method onContentReady
*
* @param {string} id the id of the element to look for.
* @param {function} fn what to execute when the element is ready.
* @param {object} obj an optional object to be passed back as
* a parameter to fn.
* @param {boolean|object} override If set to true, fn will execute
* in the context of p_obj. If an object, fn will
* exectute in the context of that object
*
* @static
* @deprecated Use Y.on("contentready")
*/
// @TODO fix arguments
onContentReady: function(id, fn, obj, override, compat) {
return Event.onAvailable(id, fn, obj, override, true, compat);
},
/**
* Adds an event listener
*
* @method attach
*
* @param {String} type The type of event to append
* @param {Function} fn The method the event invokes
* @param {String|HTMLElement|Array|NodeList} el An id, an element
* reference, or a collection of ids and/or elements to assign the
* listener to.
* @param {Object} context optional context object
* @param {Boolean|object} args 0..n arguments to pass to the callback
* @return {EventHandle} an object to that can be used to detach the listener
*
* @static
*/
attach: function(type, fn, el, context) {
return Event._attach(Y.Array(arguments, 0, true));
},
_createWrapper: function (el, type, capture, compat, facade) {
var cewrapper,
ek = Y.stamp(el),
key = 'event:' + ek + type;
if (false === facade) {
key += 'native';
}
if (capture) {
key += 'capture';
}
cewrapper = _wrappers[key];
if (!cewrapper) {
// create CE wrapper
cewrapper = Y.publish(key, {
silent: true,
bubbles: false,
contextFn: function() {
if (compat) {
return cewrapper.el;
} else {
cewrapper.nodeRef = cewrapper.nodeRef || Y.one(cewrapper.el);
return cewrapper.nodeRef;
}
}
});
cewrapper.overrides = {};
// for later removeListener calls
cewrapper.el = el;
cewrapper.key = key;
cewrapper.domkey = ek;
cewrapper.type = type;
cewrapper.fn = function(e) {
cewrapper.fire(Event.getEvent(e, el, (compat || (false === facade))));
};
cewrapper.capture = capture;
if (el == win && type == "load") {
// window load happens once
cewrapper.fireOnce = true;
_windowLoadKey = key;
}
cewrapper._delete = _deleteAndClean;
_wrappers[key] = cewrapper;
_el_events[ek] = _el_events[ek] || {};
_el_events[ek][key] = cewrapper;
add(el, type, cewrapper.fn, capture);
}
return cewrapper;
},
_attach: function(args, conf) {
var compat,
handles, oEl, cewrapper, context,
fireNow = false, ret,
type = args[0],
fn = args[1],
el = args[2] || win,
facade = conf && conf.facade,
capture = conf && conf.capture,
overrides = conf && conf.overrides;
if (args[args.length-1] === COMPAT_ARG) {
compat = true;
}
if (!fn || !fn.call) {
// throw new TypeError(type + " attach call failed, callback undefined");
return false;
}
// The el argument can be an array of elements or element ids.
if (shouldIterate(el)) {
handles=[];
Y.each(el, function(v, k) {
args[2] = v;
handles.push(Event._attach(args.slice(), conf));
});
// return (handles.length === 1) ? handles[0] : handles;
return new Y.EventHandle(handles);
// If the el argument is a string, we assume it is
// actually the id of the element. If the page is loaded
// we convert el to the actual element, otherwise we
// defer attaching the event until the element is
// ready
} else if (Y.Lang.isString(el)) {
// oEl = (compat) ? Y.DOM.byId(el) : Y.Selector.query(el);
if (compat) {
oEl = YDOM.byId(el);
} else {
oEl = Y.Selector.query(el);
switch (oEl.length) {
case 0:
oEl = null;
break;
case 1:
oEl = oEl[0];
break;
default:
args[2] = oEl;
return Event._attach(args, conf);
}
}
if (oEl) {
el = oEl;
// Not found = defer adding the event until the element is available
} else {
ret = Event.onAvailable(el, function() {
ret.handle = Event._attach(args, conf);
}, Event, true, false, compat);
return ret;
}
}
// Element should be an html element or node
if (!el) {
return false;
}
if (Y.Node && Y.instanceOf(el, Y.Node)) {
el = Y.Node.getDOMNode(el);
}
cewrapper = Event._createWrapper(el, type, capture, compat, facade);
if (overrides) {
Y.mix(cewrapper.overrides, overrides);
}
if (el == win && type == "load") {
// if the load is complete, fire immediately.
// all subscribers, including the current one
// will be notified.
if (YUI.Env.windowLoaded) {
fireNow = true;
}
}
if (compat) {
args.pop();
}
context = args[3];
// set context to the Node if not specified
// ret = cewrapper.on.apply(cewrapper, trimmedArgs);
ret = cewrapper._on(fn, context, (args.length > 4) ? args.slice(4) : null);
if (fireNow) {
cewrapper.fire();
}
return ret;
},
/**
* Removes an event listener. Supports the signature the event was bound
* with, but the preferred way to remove listeners is using the handle
* that is returned when using Y.on
*
* @method detach
*
* @param {String} type the type of event to remove.
* @param {Function} fn the method the event invokes. If fn is
* undefined, then all event handlers for the type of event are
* removed.
* @param {String|HTMLElement|Array|NodeList|EventHandle} el An
* event handle, an id, an element reference, or a collection
* of ids and/or elements to remove the listener from.
* @return {boolean} true if the unbind was successful, false otherwise.
* @static
*/
detach: function(type, fn, el, obj) {
var args=Y.Array(arguments, 0, true), compat, l, ok, i,
id, ce;
if (args[args.length-1] === COMPAT_ARG) {
compat = true;
// args.pop();
}
if (type && type.detach) {
return type.detach();
}
// The el argument can be a string
if (typeof el == "string") {
// el = (compat) ? Y.DOM.byId(el) : Y.all(el);
if (compat) {
el = YDOM.byId(el);
} else {
el = Y.Selector.query(el);
l = el.length;
if (l < 1) {
el = null;
} else if (l == 1) {
el = el[0];
}
}
// return Event.detach.apply(Event, args);
}
if (!el) {
return false;
}
if (el.detach) {
args.splice(2, 1);
return el.detach.apply(el, args);
// The el argument can be an array of elements or element ids.
} else if (shouldIterate(el)) {
ok = true;
for (i=0, l=el.length; i<l; ++i) {
args[2] = el[i];
ok = ( Y.Event.detach.apply(Y.Event, args) && ok );
}
return ok;
}
if (!type || !fn || !fn.call) {
return Event.purgeElement(el, false, type);
}
id = 'event:' + Y.stamp(el) + type;
ce = _wrappers[id];
if (ce) {
return ce.detach(fn);
} else {
return false;
}
},
/**
* Finds the event in the window object, the caller's arguments, or
* in the arguments of another method in the callstack. This is
* executed automatically for events registered through the event
* manager, so the implementer should not normally need to execute
* this function at all.
* @method getEvent
* @param {Event} e the event parameter from the handler
* @param {HTMLElement} el the element the listener was attached to
* @return {Event} the event
* @static
*/
getEvent: function(e, el, noFacade) {
var ev = e || win.event;
return (noFacade) ? ev :
new Y.DOMEventFacade(ev, el, _wrappers['event:' + Y.stamp(el) + e.type]);
},
/**
* Generates an unique ID for the element if it does not already
* have one.
* @method generateId
* @param el the element to create the id for
* @return {string} the resulting id of the element
* @static
*/
generateId: function(el) {
return YDOM.generateID(el);
},
/**
* We want to be able to use getElementsByTagName as a collection
* to attach a group of events to. Unfortunately, different
* browsers return different types of collections. This function
* tests to determine if the object is array-like. It will also
* fail if the object is an array, but is empty.
* @method _isValidCollection
* @param o the object to test
* @return {boolean} true if the object is array-like and populated
* @deprecated was not meant to be used directly
* @static
* @private
*/
_isValidCollection: shouldIterate,
/**
* hook up any deferred listeners
* @method _load
* @static
* @private
*/
_load: function(e) {
if (!_loadComplete) {
_loadComplete = true;
// Just in case DOMReady did not go off for some reason
// E._ready();
if (Y.fire) {
Y.fire(EVENT_READY);
}
// Available elements may not have been detected before the
// window load event fires. Try to find them now so that the
// the user is more likely to get the onAvailable notifications
// before the window load notification
Event._poll();
}
},
/**
* Polling function that runs before the onload event fires,
* attempting to attach to DOM Nodes as soon as they are
* available
* @method _poll
* @static
* @private
*/
_poll: function() {
if (Event.locked) {
return;
}
if (Y.UA.ie && !YUI.Env.DOMReady) {
// Hold off if DOMReady has not fired and check current
// readyState to protect against the IE operation aborted
// issue.
Event.startInterval();
return;
}
Event.locked = true;
// keep trying until after the page is loaded. We need to
// check the page load state prior to trying to bind the
// elements so that we can be certain all elements have been
// tested appropriately
var i, len, item, el, notAvail, executeItem,
tryAgain = !_loadComplete;
if (!tryAgain) {
tryAgain = (_retryCount > 0);
}
// onAvailable
notAvail = [];
executeItem = function (el, item) {
var context, ov = item.override;
try {
if (item.compat) {
if (item.override) {
if (ov === true) {
context = item.obj;
} else {
context = ov;
}
} else {
context = el;
}
item.fn.call(context, item.obj);
} else {
context = item.obj || Y.one(el);
item.fn.apply(context, (Y.Lang.isArray(ov)) ? ov : []);
}
} catch (e) {
}
};
// onAvailable
for (i=0,len=_avail.length; i<len; ++i) {
item = _avail[i];
if (item && !item.checkReady) {
// el = (item.compat) ? Y.DOM.byId(item.id) : Y.one(item.id);
el = (item.compat) ? YDOM.byId(item.id) : Y.Selector.query(item.id, null, true);
if (el) {
executeItem(el, item);
_avail[i] = null;
} else {
notAvail.push(item);
}
}
}
// onContentReady
for (i=0,len=_avail.length; i<len; ++i) {
item = _avail[i];
if (item && item.checkReady) {
// el = (item.compat) ? Y.DOM.byId(item.id) : Y.one(item.id);
el = (item.compat) ? YDOM.byId(item.id) : Y.Selector.query(item.id, null, true);
if (el) {
// The element is available, but not necessarily ready
// @todo should we test parentNode.nextSibling?
if (_loadComplete || (el.get && el.get('nextSibling')) || el.nextSibling) {
executeItem(el, item);
_avail[i] = null;
}
} else {
notAvail.push(item);
}
}
}
_retryCount = (notAvail.length === 0) ? 0 : _retryCount - 1;
if (tryAgain) {
// we may need to strip the nulled out items here
Event.startInterval();
} else {
clearInterval(Event._interval);
Event._interval = null;
}
Event.locked = false;
return;
},
/**
* Removes all listeners attached to the given element via addListener.
* Optionally, the node's children can also be purged.
* Optionally, you can specify a specific type of event to remove.
* @method purgeElement
* @param {HTMLElement} el the element to purge
* @param {boolean} recurse recursively purge this element's children
* as well. Use with caution.
* @param {string} type optional type of listener to purge. If
* left out, all listeners will be removed
* @static
*/
purgeElement: function(el, recurse, type) {
// var oEl = (Y.Lang.isString(el)) ? Y.one(el) : el,
var oEl = (Y.Lang.isString(el)) ? Y.Selector.query(el, null, true) : el,
lis = Event.getListeners(oEl, type), i, len, children, child;
if (recurse && oEl) {
lis = lis || [];
children = Y.Selector.query('*', oEl);
len = children.length;
for (i = 0; i < len; ++i) {
child = Event.getListeners(children[i], type);
if (child) {
lis = lis.concat(child);
}
}
}
if (lis) {
for (i = 0, len = lis.length; i < len; ++i) {
lis[i].detachAll();
}
}
},
/**
* Removes all object references and the DOM proxy subscription for
* a given event for a DOM node.
*
* @method _clean
* @param wrapper {CustomEvent} Custom event proxy for the DOM
* subscription
* @private
* @static
* @since 3.4.0
*/
_clean: function (wrapper) {
var key = wrapper.key,
domkey = wrapper.domkey;
remove(wrapper.el, wrapper.type, wrapper.fn, wrapper.capture);
delete _wrappers[key];
delete Y._yuievt.events[key];
if (_el_events[domkey]) {
delete _el_events[domkey][key];
if (!Y.Object.size(_el_events[domkey])) {
delete _el_events[domkey];
}
}
},
/**
* Returns all listeners attached to the given element via addListener.
* Optionally, you can specify a specific type of event to return.
* @method getListeners
* @param el {HTMLElement|string} the element or element id to inspect
* @param type {string} optional type of listener to return. If
* left out, all listeners will be returned
* @return {CustomEvent} the custom event wrapper for the DOM event(s)
* @static
*/
getListeners: function(el, type) {
var ek = Y.stamp(el, true), evts = _el_events[ek],
results=[] , key = (type) ? 'event:' + ek + type : null,
adapters = _eventenv.plugins;
if (!evts) {
return null;
}
if (key) {
// look for synthetic events
if (adapters[type] && adapters[type].eventDef) {
key += '_synth';
}
if (evts[key]) {
results.push(evts[key]);
}
// get native events as well
key += 'native';
if (evts[key]) {
results.push(evts[key]);
}
} else {
Y.each(evts, function(v, k) {
results.push(v);
});
}
return (results.length) ? results : null;
},
/**
* Removes all listeners registered by pe.event. Called
* automatically during the unload event.
* @method _unload
* @static
* @private
*/
_unload: function(e) {
Y.each(_wrappers, function(v, k) {
if (v.type == 'unload') {
v.fire(e);
}
v.detachAll();
});
remove(win, "unload", onUnload);
},
/**
* Adds a DOM event directly without the caching, cleanup, context adj, etc
*
* @method nativeAdd
* @param {HTMLElement} el the element to bind the handler to
* @param {string} type the type of event handler
* @param {function} fn the callback to invoke
* @param {boolen} capture capture or bubble phase
* @static
* @private
*/
nativeAdd: add,
/**
* Basic remove listener
*
* @method nativeRemove
* @param {HTMLElement} el the element to bind the handler to
* @param {string} type the type of event handler
* @param {function} fn the callback to invoke
* @param {boolen} capture capture or bubble phase
* @static
* @private
*/
nativeRemove: remove
};
}();
Y.Event = Event;
if (config.injected || YUI.Env.windowLoaded) {
onLoad();
} else {
add(win, "load", onLoad);
}
// Process onAvailable/onContentReady items when when the DOM is ready in IE
if (Y.UA.ie) {
Y.on(EVENT_READY, Event._poll);
}
try {
add(win, "unload", onUnload);
} catch(e) {
}
Event.Custom = Y.CustomEvent;
Event.Subscriber = Y.Subscriber;
Event.Target = Y.EventTarget;
Event.Handle = Y.EventHandle;
Event.Facade = Y.EventFacade;
Event._poll();
}());
/**
* DOM event listener abstraction layer
* @module event
* @submodule event-base
*/
/**
* Executes the callback as soon as the specified element
* is detected in the DOM. This function expects a selector
* string for the element(s) to detect. If you already have
* an element reference, you don't need this event.
* @event available
* @param type {string} 'available'
* @param fn {function} the callback function to execute.
* @param el {string} an selector for the element(s) to attach
* @param context optional argument that specifies what 'this' refers to.
* @param args* 0..n additional arguments to pass on to the callback function.
* These arguments will be added after the event object.
* @return {EventHandle} the detach handle
* @for YUI
*/
Y.Env.evt.plugins.available = {
on: function(type, fn, id, o) {
var a = arguments.length > 4 ? Y.Array(arguments, 4, true) : null;
return Y.Event.onAvailable.call(Y.Event, id, fn, o, a);
}
};
/**
* Executes the callback as soon as the specified element
* is detected in the DOM with a nextSibling property
* (indicating that the element's children are available).
* This function expects a selector
* string for the element(s) to detect. If you already have
* an element reference, you don't need this event.
* @event contentready
* @param type {string} 'contentready'
* @param fn {function} the callback function to execute.
* @param el {string} an selector for the element(s) to attach.
* @param context optional argument that specifies what 'this' refers to.
* @param args* 0..n additional arguments to pass on to the callback function.
* These arguments will be added after the event object.
* @return {EventHandle} the detach handle
* @for YUI
*/
Y.Env.evt.plugins.contentready = {
on: function(type, fn, id, o) {
var a = arguments.length > 4 ? Y.Array(arguments, 4, true) : null;
return Y.Event.onContentReady.call(Y.Event, id, fn, o, a);
}
};
}, '3.7.3', {"requires": ["event-custom-base"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('event-delegate', function (Y, NAME) {
/**
* Adds event delegation support to the library.
*
* @module event
* @submodule event-delegate
*/
var toArray = Y.Array,
YLang = Y.Lang,
isString = YLang.isString,
isObject = YLang.isObject,
isArray = YLang.isArray,
selectorTest = Y.Selector.test,
detachCategories = Y.Env.evt.handles;
/**
* <p>Sets up event delegation on a container element. The delegated event
* will use a supplied selector or filtering function to test if the event
* references at least one node that should trigger the subscription
* callback.</p>
*
* <p>Selector string filters will trigger the callback if the event originated
* from a node that matches it or is contained in a node that matches it.
* Function filters are called for each Node up the parent axis to the
* subscribing container node, and receive at each level the Node and the event
* object. The function should return true (or a truthy value) if that Node
* should trigger the subscription callback. Note, it is possible for filters
* to match multiple Nodes for a single event. In this case, the delegate
* callback will be executed for each matching Node.</p>
*
* <p>For each matching Node, the callback will be executed with its 'this'
* object set to the Node matched by the filter (unless a specific context was
* provided during subscription), and the provided event's
* <code>currentTarget</code> will also be set to the matching Node. The
* containing Node from which the subscription was originally made can be
* referenced as <code>e.container</code>.
*
* @method delegate
* @param type {String} the event type to delegate
* @param fn {Function} the callback function to execute. This function
* will be provided the event object for the delegated event.
* @param el {String|node} the element that is the delegation container
* @param filter {string|Function} a selector that must match the target of the
* event or a function to test target and its parents for a match
* @param context optional argument that specifies what 'this' refers to.
* @param args* 0..n additional arguments to pass on to the callback function.
* These arguments will be added after the event object.
* @return {EventHandle} the detach handle
* @static
* @for Event
*/
function delegate(type, fn, el, filter) {
var args = toArray(arguments, 0, true),
query = isString(el) ? el : null,
typeBits, synth, container, categories, cat, i, len, handles, handle;
// Support Y.delegate({ click: fnA, key: fnB }, el, filter, ...);
// and Y.delegate(['click', 'key'], fn, el, filter, ...);
if (isObject(type)) {
handles = [];
if (isArray(type)) {
for (i = 0, len = type.length; i < len; ++i) {
args[0] = type[i];
handles.push(Y.delegate.apply(Y, args));
}
} else {
// Y.delegate({'click', fn}, el, filter) =>
// Y.delegate('click', fn, el, filter)
args.unshift(null); // one arg becomes two; need to make space
for (i in type) {
if (type.hasOwnProperty(i)) {
args[0] = i;
args[1] = type[i];
handles.push(Y.delegate.apply(Y, args));
}
}
}
return new Y.EventHandle(handles);
}
typeBits = type.split(/\|/);
if (typeBits.length > 1) {
cat = typeBits.shift();
args[0] = type = typeBits.shift();
}
synth = Y.Node.DOM_EVENTS[type];
if (isObject(synth) && synth.delegate) {
handle = synth.delegate.apply(synth, arguments);
}
if (!handle) {
if (!type || !fn || !el || !filter) {
return;
}
container = (query) ? Y.Selector.query(query, null, true) : el;
if (!container && isString(el)) {
handle = Y.on('available', function () {
Y.mix(handle, Y.delegate.apply(Y, args), true);
}, el);
}
if (!handle && container) {
args.splice(2, 2, container); // remove the filter
handle = Y.Event._attach(args, { facade: false });
handle.sub.filter = filter;
handle.sub._notify = delegate.notifySub;
}
}
if (handle && cat) {
categories = detachCategories[cat] || (detachCategories[cat] = {});
categories = categories[type] || (categories[type] = []);
categories.push(handle);
}
return handle;
}
/**
Overrides the <code>_notify</code> method on the normal DOM subscription to
inject the filtering logic and only proceed in the case of a match.
This method is hosted as a private property of the `delegate` method
(e.g. `Y.delegate.notifySub`)
@method notifySub
@param thisObj {Object} default 'this' object for the callback
@param args {Array} arguments passed to the event's <code>fire()</code>
@param ce {CustomEvent} the custom event managing the DOM subscriptions for
the subscribed event on the subscribing node.
@return {Boolean} false if the event was stopped
@private
@static
@since 3.2.0
**/
delegate.notifySub = function (thisObj, args, ce) {
// Preserve args for other subscribers
args = args.slice();
if (this.args) {
args.push.apply(args, this.args);
}
// Only notify subs if the event occurred on a targeted element
var currentTarget = delegate._applyFilter(this.filter, args, ce),
//container = e.currentTarget,
e, i, len, ret;
if (currentTarget) {
// Support multiple matches up the the container subtree
currentTarget = toArray(currentTarget);
// The second arg is the currentTarget, but we'll be reusing this
// facade, replacing the currentTarget for each use, so it doesn't
// matter what element we seed it with.
e = args[0] = new Y.DOMEventFacade(args[0], ce.el, ce);
e.container = Y.one(ce.el);
for (i = 0, len = currentTarget.length; i < len && !e.stopped; ++i) {
e.currentTarget = Y.one(currentTarget[i]);
ret = this.fn.apply(this.context || e.currentTarget, args);
if (ret === false) { // stop further notifications
break;
}
}
return ret;
}
};
/**
Compiles a selector string into a filter function to identify whether
Nodes along the parent axis of an event's target should trigger event
notification.
This function is memoized, so previously compiled filter functions are
returned if the same selector string is provided.
This function may be useful when defining synthetic events for delegate
handling.
Hosted as a property of the `delegate` method (e.g. `Y.delegate.compileFilter`).
@method compileFilter
@param selector {String} the selector string to base the filtration on
@return {Function}
@since 3.2.0
@static
**/
delegate.compileFilter = Y.cached(function (selector) {
return function (target, e) {
return selectorTest(target._node, selector,
(e.currentTarget === e.target) ? null : e.currentTarget._node);
};
});
/**
Walks up the parent axis of an event's target, and tests each element
against a supplied filter function. If any Nodes, including the container,
satisfy the filter, the delegated callback will be triggered for each.
Hosted as a protected property of the `delegate` method (e.g.
`Y.delegate._applyFilter`).
@method _applyFilter
@param filter {Function} boolean function to test for inclusion in event
notification
@param args {Array} the arguments that would be passed to subscribers
@param ce {CustomEvent} the DOM event wrapper
@return {Node|Node[]|undefined} The Node or Nodes that satisfy the filter
@protected
**/
delegate._applyFilter = function (filter, args, ce) {
var e = args[0],
container = ce.el, // facadeless events in IE, have no e.currentTarget
target = e.target || e.srcElement,
match = [],
isContainer = false;
// Resolve text nodes to their containing element
if (target.nodeType === 3) {
target = target.parentNode;
}
// passing target as the first arg rather than leaving well enough alone
// making 'this' in the filter function refer to the target. This is to
// support bound filter functions.
args.unshift(target);
if (isString(filter)) {
while (target) {
isContainer = (target === container);
if (selectorTest(target, filter, (isContainer ? null: container))) {
match.push(target);
}
if (isContainer) {
break;
}
target = target.parentNode;
}
} else {
// filter functions are implementer code and should receive wrappers
args[0] = Y.one(target);
args[1] = new Y.DOMEventFacade(e, container, ce);
while (target) {
// filter(target, e, extra args...) - this === target
if (filter.apply(args[0], args)) {
match.push(target);
}
if (target === container) {
break;
}
target = target.parentNode;
args[0] = Y.one(target);
}
args[1] = e; // restore the raw DOM event
}
if (match.length <= 1) {
match = match[0]; // single match or undefined
}
// remove the target
args.shift();
return match;
};
/**
* Sets up event delegation on a container element. The delegated event
* will use a supplied filter to test if the callback should be executed.
* This filter can be either a selector string or a function that returns
* a Node to use as the currentTarget for the event.
*
* The event object for the delegated event is supplied to the callback
* function. It is modified slightly in order to support all properties
* that may be needed for event delegation. 'currentTarget' is set to
* the element that matched the selector string filter or the Node returned
* from the filter function. 'container' is set to the element that the
* listener is delegated from (this normally would be the 'currentTarget').
*
* Filter functions will be called with the arguments that would be passed to
* the callback function, including the event object as the first parameter.
* The function should return false (or a falsey value) if the success criteria
* aren't met, and the Node to use as the event's currentTarget and 'this'
* object if they are.
*
* @method delegate
* @param type {string} the event type to delegate
* @param fn {function} the callback function to execute. This function
* will be provided the event object for the delegated event.
* @param el {string|node} the element that is the delegation container
* @param filter {string|function} a selector that must match the target of the
* event or a function that returns a Node or false.
* @param context optional argument that specifies what 'this' refers to.
* @param args* 0..n additional arguments to pass on to the callback function.
* These arguments will be added after the event object.
* @return {EventHandle} the detach handle
* @for YUI
*/
Y.delegate = Y.Event.delegate = delegate;
}, '3.7.3', {"requires": ["node-base"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('node-event-delegate', function (Y, NAME) {
/**
* Functionality to make the node a delegated event container
* @module node
* @submodule node-event-delegate
*/
/**
* <p>Sets up a delegation listener for an event occurring inside the Node.
* The delegated event will be verified against a supplied selector or
* filtering function to test if the event references at least one node that
* should trigger the subscription callback.</p>
*
* <p>Selector string filters will trigger the callback if the event originated
* from a node that matches it or is contained in a node that matches it.
* Function filters are called for each Node up the parent axis to the
* subscribing container node, and receive at each level the Node and the event
* object. The function should return true (or a truthy value) if that Node
* should trigger the subscription callback. Note, it is possible for filters
* to match multiple Nodes for a single event. In this case, the delegate
* callback will be executed for each matching Node.</p>
*
* <p>For each matching Node, the callback will be executed with its 'this'
* object set to the Node matched by the filter (unless a specific context was
* provided during subscription), and the provided event's
* <code>currentTarget</code> will also be set to the matching Node. The
* containing Node from which the subscription was originally made can be
* referenced as <code>e.container</code>.
*
* @method delegate
* @param type {String} the event type to delegate
* @param fn {Function} the callback function to execute. This function
* will be provided the event object for the delegated event.
* @param spec {String|Function} a selector that must match the target of the
* event or a function to test target and its parents for a match
* @param context {Object} optional argument that specifies what 'this' refers to.
* @param args* {any} 0..n additional arguments to pass on to the callback function.
* These arguments will be added after the event object.
* @return {EventHandle} the detach handle
* @for Node
*/
Y.Node.prototype.delegate = function(type) {
var args = Y.Array(arguments, 0, true),
index = (Y.Lang.isObject(type) && !Y.Lang.isArray(type)) ? 1 : 2;
args.splice(index, 0, this._node);
return Y.delegate.apply(Y, args);
};
}, '3.7.3', {"requires": ["node-base", "event-delegate"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('pluginhost-base', function (Y, NAME) {
/**
* Provides the augmentable PluginHost interface, which can be added to any class.
* @module pluginhost
*/
/**
* Provides the augmentable PluginHost interface, which can be added to any class.
* @module pluginhost-base
*/
/**
* <p>
* An augmentable class, which provides the augmented class with the ability to host plugins.
* It adds <a href="#method_plug">plug</a> and <a href="#method_unplug">unplug</a> methods to the augmented class, which can
* be used to add or remove plugins from instances of the class.
* </p>
*
* <p>Plugins can also be added through the constructor configuration object passed to the host class' constructor using
* the "plugins" property. Supported values for the "plugins" property are those defined by the <a href="#method_plug">plug</a> method.
*
* For example the following code would add the AnimPlugin and IOPlugin to Overlay (the plugin host):
* <xmp>
* var o = new Overlay({plugins: [ AnimPlugin, {fn:IOPlugin, cfg:{section:"header"}}]});
* </xmp>
* </p>
* <p>
* Plug.Host's protected <a href="#method_initPlugins">_initPlugins</a> and <a href="#method_destroyPlugins">_destroyPlugins</a>
* methods should be invoked by the host class at the appropriate point in the host's lifecyle.
* </p>
*
* @class Plugin.Host
*/
var L = Y.Lang;
function PluginHost() {
this._plugins = {};
}
PluginHost.prototype = {
/**
* Adds a plugin to the host object. This will instantiate the
* plugin and attach it to the configured namespace on the host object.
*
* @method plug
* @chainable
* @param P {Function | Object |Array} Accepts the plugin class, or an
* object with a "fn" property specifying the plugin class and
* a "cfg" property specifying the configuration for the Plugin.
* <p>
* Additionally an Array can also be passed in, with the above function or
* object values, allowing the user to add multiple plugins in a single call.
* </p>
* @param [config] If the first argument is the plugin class, the second argument
* can be the configuration for the plugin.
* @return {Base} A reference to the host object
*/
plug: function(Plugin, config) {
var i, ln, ns;
if (L.isArray(Plugin)) {
for (i = 0, ln = Plugin.length; i < ln; i++) {
this.plug(Plugin[i]);
}
} else {
if (Plugin && !L.isFunction(Plugin)) {
config = Plugin.cfg;
Plugin = Plugin.fn;
}
// Plugin should be fn by now
if (Plugin && Plugin.NS) {
ns = Plugin.NS;
config = config || {};
config.host = this;
if (this.hasPlugin(ns)) {
// Update config
if (this[ns].setAttrs) {
this[ns].setAttrs(config);
}
} else {
// Create new instance
this[ns] = new Plugin(config);
this._plugins[ns] = Plugin;
}
}
}
return this;
},
/**
* Removes a plugin from the host object. This will destroy the
* plugin instance and delete the namespace from the host object.
*
* @method unplug
* @param {String | Function} plugin The namespace of the plugin, or the plugin class with the static NS namespace property defined. If not provided,
* all registered plugins are unplugged.
* @return {Base} A reference to the host object
* @chainable
*/
unplug: function(plugin) {
var ns = plugin,
plugins = this._plugins;
if (plugin) {
if (L.isFunction(plugin)) {
ns = plugin.NS;
if (ns && (!plugins[ns] || plugins[ns] !== plugin)) {
ns = null;
}
}
if (ns) {
if (this[ns]) {
if (this[ns].destroy) {
this[ns].destroy();
}
delete this[ns];
}
if (plugins[ns]) {
delete plugins[ns];
}
}
} else {
for (ns in this._plugins) {
if (this._plugins.hasOwnProperty(ns)) {
this.unplug(ns);
}
}
}
return this;
},
/**
* Determines if a plugin has plugged into this host.
*
* @method hasPlugin
* @param {String} ns The plugin's namespace
* @return {Plugin} Returns a truthy value (the plugin instance) if present, or undefined if not.
*/
hasPlugin : function(ns) {
return (this._plugins[ns] && this[ns]);
},
/**
* Initializes static plugins registered on the host (using the
* Base.plug static method) and any plugins passed to the
* instance through the "plugins" configuration property.
*
* @method _initPlugins
* @param {Config} config The configuration object with property name/value pairs.
* @private
*/
_initPlugins: function(config) {
this._plugins = this._plugins || {};
if (this._initConfigPlugins) {
this._initConfigPlugins(config);
}
},
/**
* Unplugs and destroys all plugins on the host
* @method _destroyPlugins
* @private
*/
_destroyPlugins: function() {
this.unplug();
}
};
Y.namespace("Plugin").Host = PluginHost;
}, '3.7.3', {"requires": ["yui-base"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('pluginhost-config', function (Y, NAME) {
/**
* Adds pluginhost constructor configuration and static configuration support
* @submodule pluginhost-config
*/
var PluginHost = Y.Plugin.Host,
L = Y.Lang;
/**
* A protected initialization method, used by the host class to initialize
* plugin configurations passed the constructor, through the config object.
*
* Host objects should invoke this method at the appropriate time in their
* construction lifecycle.
*
* @method _initConfigPlugins
* @param {Object} config The configuration object passed to the constructor
* @protected
* @for Plugin.Host
*/
PluginHost.prototype._initConfigPlugins = function(config) {
// Class Configuration
var classes = (this._getClasses) ? this._getClasses() : [this.constructor],
plug = [],
unplug = {},
constructor, i, classPlug, classUnplug, pluginClassName;
// TODO: Room for optimization. Can we apply statically/unplug in same pass?
for (i = classes.length - 1; i >= 0; i--) {
constructor = classes[i];
classUnplug = constructor._UNPLUG;
if (classUnplug) {
// subclasses over-write
Y.mix(unplug, classUnplug, true);
}
classPlug = constructor._PLUG;
if (classPlug) {
// subclasses over-write
Y.mix(plug, classPlug, true);
}
}
for (pluginClassName in plug) {
if (plug.hasOwnProperty(pluginClassName)) {
if (!unplug[pluginClassName]) {
this.plug(plug[pluginClassName]);
}
}
}
// User Configuration
if (config && config.plugins) {
this.plug(config.plugins);
}
};
/**
* Registers plugins to be instantiated at the class level (plugins
* which should be plugged into every instance of the class by default).
*
* @method plug
* @static
*
* @param {Function} hostClass The host class on which to register the plugins
* @param {Function | Array} plugin Either the plugin class, an array of plugin classes or an array of objects (with fn and cfg properties defined)
* @param {Object} [config] If plugin is the plugin class, the configuration for the plugin
* @for Plugin.Host
*/
PluginHost.plug = function(hostClass, plugin, config) {
// Cannot plug into Base, since Plugins derive from Base [ will cause infinite recurrsion ]
var p, i, l, name;
if (hostClass !== Y.Base) {
hostClass._PLUG = hostClass._PLUG || {};
if (!L.isArray(plugin)) {
if (config) {
plugin = {fn:plugin, cfg:config};
}
plugin = [plugin];
}
for (i = 0, l = plugin.length; i < l;i++) {
p = plugin[i];
name = p.NAME || p.fn.NAME;
hostClass._PLUG[name] = p;
}
}
};
/**
* Unregisters any class level plugins which have been registered by the host class, or any
* other class in the hierarchy.
*
* @method unplug
* @static
*
* @param {Function} hostClass The host class from which to unregister the plugins
* @param {Function | Array} plugin The plugin class, or an array of plugin classes
* @for Plugin.Host
*/
PluginHost.unplug = function(hostClass, plugin) {
var p, i, l, name;
if (hostClass !== Y.Base) {
hostClass._UNPLUG = hostClass._UNPLUG || {};
if (!L.isArray(plugin)) {
plugin = [plugin];
}
for (i = 0, l = plugin.length; i < l; i++) {
p = plugin[i];
name = p.NAME;
if (!hostClass._PLUG[name]) {
hostClass._UNPLUG[name] = p;
} else {
delete hostClass._PLUG[name];
}
}
}
};
}, '3.7.3', {"requires": ["pluginhost-base"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('node-pluginhost', function (Y, NAME) {
/**
* @module node
* @submodule node-pluginhost
*/
/**
* Registers plugins to be instantiated at the class level (plugins
* which should be plugged into every instance of Node by default).
*
* @method plug
* @static
* @for Node
* @param {Function | Array} plugin Either the plugin class, an array of plugin classes or an array of objects (with fn and cfg properties defined)
* @param {Object} [config] If plugin is the plugin class, the configuration for the plugin
*/
Y.Node.plug = function() {
var args = Y.Array(arguments);
args.unshift(Y.Node);
Y.Plugin.Host.plug.apply(Y.Base, args);
return Y.Node;
};
/**
* Unregisters any class level plugins which have been registered by the Node
*
* @method unplug
* @static
*
* @param {Function | Array} plugin The plugin class, or an array of plugin classes
*/
Y.Node.unplug = function() {
var args = Y.Array(arguments);
args.unshift(Y.Node);
Y.Plugin.Host.unplug.apply(Y.Base, args);
return Y.Node;
};
Y.mix(Y.Node, Y.Plugin.Host, false, null, 1);
// allow batching of plug/unplug via NodeList
// doesn't use NodeList.importMethod because we need real Nodes (not tmpNode)
/**
* Adds a plugin to each node in the NodeList.
* This will instantiate the plugin and attach it to the configured namespace on each node
* @method plug
* @for NodeList
* @param P {Function | Object |Array} Accepts the plugin class, or an
* object with a "fn" property specifying the plugin class and
* a "cfg" property specifying the configuration for the Plugin.
* <p>
* Additionally an Array can also be passed in, with the above function or
* object values, allowing the user to add multiple plugins in a single call.
* </p>
* @param [config] If the first argument is the plugin class, the second argument
* can be the configuration for the plugin.
* @chainable
*/
Y.NodeList.prototype.plug = function() {
var args = arguments;
Y.NodeList.each(this, function(node) {
Y.Node.prototype.plug.apply(Y.one(node), args);
});
return this;
};
/**
* Removes a plugin from all nodes in the NodeList. This will destroy the
* plugin instance and delete the namespace each node.
* @method unplug
* @for NodeList
* @param {String | Function} plugin The namespace of the plugin, or the plugin class with the static NS namespace property defined. If not provided,
* all registered plugins are unplugged.
* @chainable
*/
Y.NodeList.prototype.unplug = function() {
var args = arguments;
Y.NodeList.each(this, function(node) {
Y.Node.prototype.unplug.apply(Y.one(node), args);
});
return this;
};
}, '3.7.3', {"requires": ["node-base", "pluginhost"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('dom-style', function (Y, NAME) {
(function(Y) {
/**
* Add style management functionality to DOM.
* @module dom
* @submodule dom-style
* @for DOM
*/
var DOCUMENT_ELEMENT = 'documentElement',
DEFAULT_VIEW = 'defaultView',
OWNER_DOCUMENT = 'ownerDocument',
STYLE = 'style',
FLOAT = 'float',
CSS_FLOAT = 'cssFloat',
STYLE_FLOAT = 'styleFloat',
TRANSPARENT = 'transparent',
GET_COMPUTED_STYLE = 'getComputedStyle',
GET_BOUNDING_CLIENT_RECT = 'getBoundingClientRect',
WINDOW = Y.config.win,
DOCUMENT = Y.config.doc,
UNDEFINED = undefined,
Y_DOM = Y.DOM,
TRANSFORM = 'transform',
TRANSFORMORIGIN = 'transformOrigin',
VENDOR_TRANSFORM = [
'WebkitTransform',
'MozTransform',
'OTransform',
'msTransform'
],
re_color = /color$/i,
re_unit = /width|height|top|left|right|bottom|margin|padding/i;
Y.Array.each(VENDOR_TRANSFORM, function(val) {
if (val in DOCUMENT[DOCUMENT_ELEMENT].style) {
TRANSFORM = val;
TRANSFORMORIGIN = val + "Origin";
}
});
Y.mix(Y_DOM, {
DEFAULT_UNIT: 'px',
CUSTOM_STYLES: {
},
/**
* Sets a style property for a given element.
* @method setStyle
* @param {HTMLElement} An HTMLElement to apply the style to.
* @param {String} att The style property to set.
* @param {String|Number} val The value.
*/
setStyle: function(node, att, val, style) {
style = style || node.style;
var CUSTOM_STYLES = Y_DOM.CUSTOM_STYLES;
if (style) {
if (val === null || val === '') { // normalize unsetting
val = '';
} else if (!isNaN(new Number(val)) && re_unit.test(att)) { // number values may need a unit
val += Y_DOM.DEFAULT_UNIT;
}
if (att in CUSTOM_STYLES) {
if (CUSTOM_STYLES[att].set) {
CUSTOM_STYLES[att].set(node, val, style);
return; // NOTE: return
} else if (typeof CUSTOM_STYLES[att] === 'string') {
att = CUSTOM_STYLES[att];
}
} else if (att === '') { // unset inline styles
att = 'cssText';
val = '';
}
style[att] = val;
}
},
/**
* Returns the current style value for the given property.
* @method getStyle
* @param {HTMLElement} An HTMLElement to get the style from.
* @param {String} att The style property to get.
*/
getStyle: function(node, att, style) {
style = style || node.style;
var CUSTOM_STYLES = Y_DOM.CUSTOM_STYLES,
val = '';
if (style) {
if (att in CUSTOM_STYLES) {
if (CUSTOM_STYLES[att].get) {
return CUSTOM_STYLES[att].get(node, att, style); // NOTE: return
} else if (typeof CUSTOM_STYLES[att] === 'string') {
att = CUSTOM_STYLES[att];
}
}
val = style[att];
if (val === '') { // TODO: is empty string sufficient?
val = Y_DOM[GET_COMPUTED_STYLE](node, att);
}
}
return val;
},
/**
* Sets multiple style properties.
* @method setStyles
* @param {HTMLElement} node An HTMLElement to apply the styles to.
* @param {Object} hash An object literal of property:value pairs.
*/
setStyles: function(node, hash) {
var style = node.style;
Y.each(hash, function(v, n) {
Y_DOM.setStyle(node, n, v, style);
}, Y_DOM);
},
/**
* Returns the computed style for the given node.
* @method getComputedStyle
* @param {HTMLElement} An HTMLElement to get the style from.
* @param {String} att The style property to get.
* @return {String} The computed value of the style property.
*/
getComputedStyle: function(node, att) {
var val = '',
doc = node[OWNER_DOCUMENT],
computed;
if (node[STYLE] && doc[DEFAULT_VIEW] && doc[DEFAULT_VIEW][GET_COMPUTED_STYLE]) {
computed = doc[DEFAULT_VIEW][GET_COMPUTED_STYLE](node, null);
if (computed) { // FF may be null in some cases (ticket #2530548)
val = computed[att];
}
}
return val;
}
});
// normalize reserved word float alternatives ("cssFloat" or "styleFloat")
if (DOCUMENT[DOCUMENT_ELEMENT][STYLE][CSS_FLOAT] !== UNDEFINED) {
Y_DOM.CUSTOM_STYLES[FLOAT] = CSS_FLOAT;
} else if (DOCUMENT[DOCUMENT_ELEMENT][STYLE][STYLE_FLOAT] !== UNDEFINED) {
Y_DOM.CUSTOM_STYLES[FLOAT] = STYLE_FLOAT;
}
// fix opera computedStyle default color unit (convert to rgb)
if (Y.UA.opera) {
Y_DOM[GET_COMPUTED_STYLE] = function(node, att) {
var view = node[OWNER_DOCUMENT][DEFAULT_VIEW],
val = view[GET_COMPUTED_STYLE](node, '')[att];
if (re_color.test(att)) {
val = Y.Color.toRGB(val);
}
return val;
};
}
// safari converts transparent to rgba(), others use "transparent"
if (Y.UA.webkit) {
Y_DOM[GET_COMPUTED_STYLE] = function(node, att) {
var view = node[OWNER_DOCUMENT][DEFAULT_VIEW],
val = view[GET_COMPUTED_STYLE](node, '')[att];
if (val === 'rgba(0, 0, 0, 0)') {
val = TRANSPARENT;
}
return val;
};
}
Y.DOM._getAttrOffset = function(node, attr) {
var val = Y.DOM[GET_COMPUTED_STYLE](node, attr),
offsetParent = node.offsetParent,
position,
parentOffset,
offset;
if (val === 'auto') {
position = Y.DOM.getStyle(node, 'position');
if (position === 'static' || position === 'relative') {
val = 0;
} else if (offsetParent && offsetParent[GET_BOUNDING_CLIENT_RECT]) {
parentOffset = offsetParent[GET_BOUNDING_CLIENT_RECT]()[attr];
offset = node[GET_BOUNDING_CLIENT_RECT]()[attr];
if (attr === 'left' || attr === 'top') {
val = offset - parentOffset;
} else {
val = parentOffset - node[GET_BOUNDING_CLIENT_RECT]()[attr];
}
}
}
return val;
};
Y.DOM._getOffset = function(node) {
var pos,
xy = null;
if (node) {
pos = Y_DOM.getStyle(node, 'position');
xy = [
parseInt(Y_DOM[GET_COMPUTED_STYLE](node, 'left'), 10),
parseInt(Y_DOM[GET_COMPUTED_STYLE](node, 'top'), 10)
];
if ( isNaN(xy[0]) ) { // in case of 'auto'
xy[0] = parseInt(Y_DOM.getStyle(node, 'left'), 10); // try inline
if ( isNaN(xy[0]) ) { // default to offset value
xy[0] = (pos === 'relative') ? 0 : node.offsetLeft || 0;
}
}
if ( isNaN(xy[1]) ) { // in case of 'auto'
xy[1] = parseInt(Y_DOM.getStyle(node, 'top'), 10); // try inline
if ( isNaN(xy[1]) ) { // default to offset value
xy[1] = (pos === 'relative') ? 0 : node.offsetTop || 0;
}
}
}
return xy;
};
Y_DOM.CUSTOM_STYLES.transform = {
set: function(node, val, style) {
style[TRANSFORM] = val;
},
get: function(node, style) {
return Y_DOM[GET_COMPUTED_STYLE](node, TRANSFORM);
}
};
Y_DOM.CUSTOM_STYLES.transformOrigin = {
set: function(node, val, style) {
style[TRANSFORMORIGIN] = val;
},
get: function(node, style) {
return Y_DOM[GET_COMPUTED_STYLE](node, TRANSFORMORIGIN);
}
};
})(Y);
(function(Y) {
var PARSE_INT = parseInt,
RE = RegExp;
Y.Color = {
KEYWORDS: {
black: '000',
silver: 'c0c0c0',
gray: '808080',
white: 'fff',
maroon: '800000',
red: 'f00',
purple: '800080',
fuchsia: 'f0f',
green: '008000',
lime: '0f0',
olive: '808000',
yellow: 'ff0',
navy: '000080',
blue: '00f',
teal: '008080',
aqua: '0ff'
},
re_RGB: /^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,
re_hex: /^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,
re_hex3: /([0-9A-F])/gi,
toRGB: function(val) {
if (!Y.Color.re_RGB.test(val)) {
val = Y.Color.toHex(val);
}
if(Y.Color.re_hex.exec(val)) {
val = 'rgb(' + [
PARSE_INT(RE.$1, 16),
PARSE_INT(RE.$2, 16),
PARSE_INT(RE.$3, 16)
].join(', ') + ')';
}
return val;
},
toHex: function(val) {
val = Y.Color.KEYWORDS[val] || val;
if (Y.Color.re_RGB.exec(val)) {
val = [
Number(RE.$1).toString(16),
Number(RE.$2).toString(16),
Number(RE.$3).toString(16)
];
for (var i = 0; i < val.length; i++) {
if (val[i].length < 2) {
val[i] = '0' + val[i];
}
}
val = val.join('');
}
if (val.length < 6) {
val = val.replace(Y.Color.re_hex3, '$1$1');
}
if (val !== 'transparent' && val.indexOf('#') < 0) {
val = '#' + val;
}
return val.toUpperCase();
}
};
})(Y);
}, '3.7.3', {"requires": ["dom-base"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('dom-screen', function (Y, NAME) {
(function(Y) {
/**
* Adds position and region management functionality to DOM.
* @module dom
* @submodule dom-screen
* @for DOM
*/
var DOCUMENT_ELEMENT = 'documentElement',
COMPAT_MODE = 'compatMode',
POSITION = 'position',
FIXED = 'fixed',
RELATIVE = 'relative',
LEFT = 'left',
TOP = 'top',
_BACK_COMPAT = 'BackCompat',
MEDIUM = 'medium',
BORDER_LEFT_WIDTH = 'borderLeftWidth',
BORDER_TOP_WIDTH = 'borderTopWidth',
GET_BOUNDING_CLIENT_RECT = 'getBoundingClientRect',
GET_COMPUTED_STYLE = 'getComputedStyle',
Y_DOM = Y.DOM,
// TODO: how about thead/tbody/tfoot/tr?
// TODO: does caption matter?
RE_TABLE = /^t(?:able|d|h)$/i,
SCROLL_NODE;
if (Y.UA.ie) {
if (Y.config.doc[COMPAT_MODE] !== 'BackCompat') {
SCROLL_NODE = DOCUMENT_ELEMENT;
} else {
SCROLL_NODE = 'body';
}
}
Y.mix(Y_DOM, {
/**
* Returns the inner height of the viewport (exludes scrollbar).
* @method winHeight
* @return {Number} The current height of the viewport.
*/
winHeight: function(node) {
var h = Y_DOM._getWinSize(node).height;
return h;
},
/**
* Returns the inner width of the viewport (exludes scrollbar).
* @method winWidth
* @return {Number} The current width of the viewport.
*/
winWidth: function(node) {
var w = Y_DOM._getWinSize(node).width;
return w;
},
/**
* Document height
* @method docHeight
* @return {Number} The current height of the document.
*/
docHeight: function(node) {
var h = Y_DOM._getDocSize(node).height;
return Math.max(h, Y_DOM._getWinSize(node).height);
},
/**
* Document width
* @method docWidth
* @return {Number} The current width of the document.
*/
docWidth: function(node) {
var w = Y_DOM._getDocSize(node).width;
return Math.max(w, Y_DOM._getWinSize(node).width);
},
/**
* Amount page has been scroll horizontally
* @method docScrollX
* @return {Number} The current amount the screen is scrolled horizontally.
*/
docScrollX: function(node, doc) {
doc = doc || (node) ? Y_DOM._getDoc(node) : Y.config.doc; // perf optimization
var dv = doc.defaultView,
pageOffset = (dv) ? dv.pageXOffset : 0;
return Math.max(doc[DOCUMENT_ELEMENT].scrollLeft, doc.body.scrollLeft, pageOffset);
},
/**
* Amount page has been scroll vertically
* @method docScrollY
* @return {Number} The current amount the screen is scrolled vertically.
*/
docScrollY: function(node, doc) {
doc = doc || (node) ? Y_DOM._getDoc(node) : Y.config.doc; // perf optimization
var dv = doc.defaultView,
pageOffset = (dv) ? dv.pageYOffset : 0;
return Math.max(doc[DOCUMENT_ELEMENT].scrollTop, doc.body.scrollTop, pageOffset);
},
/**
* Gets the current position of an element based on page coordinates.
* Element must be part of the DOM tree to have page coordinates
* (display:none or elements not appended return false).
* @method getXY
* @param element The target element
* @return {Array} The XY position of the element
TODO: test inDocument/display?
*/
getXY: function() {
if (Y.config.doc[DOCUMENT_ELEMENT][GET_BOUNDING_CLIENT_RECT]) {
return function(node) {
var xy = null,
scrollLeft,
scrollTop,
mode,
box,
offX,
offY,
doc,
win,
inDoc,
rootNode;
if (node && node.tagName) {
doc = node.ownerDocument;
mode = doc[COMPAT_MODE];
if (mode !== _BACK_COMPAT) {
rootNode = doc[DOCUMENT_ELEMENT];
} else {
rootNode = doc.body;
}
// inline inDoc check for perf
if (rootNode.contains) {
inDoc = rootNode.contains(node);
} else {
inDoc = Y.DOM.contains(rootNode, node);
}
if (inDoc) {
win = doc.defaultView;
// inline scroll calc for perf
if (win && 'pageXOffset' in win) {
scrollLeft = win.pageXOffset;
scrollTop = win.pageYOffset;
} else {
scrollLeft = (SCROLL_NODE) ? doc[SCROLL_NODE].scrollLeft : Y_DOM.docScrollX(node, doc);
scrollTop = (SCROLL_NODE) ? doc[SCROLL_NODE].scrollTop : Y_DOM.docScrollY(node, doc);
}
if (Y.UA.ie) { // IE < 8, quirks, or compatMode
if (!doc.documentMode || doc.documentMode < 8 || mode === _BACK_COMPAT) {
offX = rootNode.clientLeft;
offY = rootNode.clientTop;
}
}
box = node[GET_BOUNDING_CLIENT_RECT]();
xy = [box.left, box.top];
if (offX || offY) {
xy[0] -= offX;
xy[1] -= offY;
}
if ((scrollTop || scrollLeft)) {
if (!Y.UA.ios || (Y.UA.ios >= 4.2)) {
xy[0] += scrollLeft;
xy[1] += scrollTop;
}
}
} else {
xy = Y_DOM._getOffset(node);
}
}
return xy;
};
} else {
return function(node) { // manually calculate by crawling up offsetParents
//Calculate the Top and Left border sizes (assumes pixels)
var xy = null,
doc,
parentNode,
bCheck,
scrollTop,
scrollLeft;
if (node) {
if (Y_DOM.inDoc(node)) {
xy = [node.offsetLeft, node.offsetTop];
doc = node.ownerDocument;
parentNode = node;
// TODO: refactor with !! or just falsey
bCheck = ((Y.UA.gecko || Y.UA.webkit > 519) ? true : false);
// TODO: worth refactoring for TOP/LEFT only?
while ((parentNode = parentNode.offsetParent)) {
xy[0] += parentNode.offsetLeft;
xy[1] += parentNode.offsetTop;
if (bCheck) {
xy = Y_DOM._calcBorders(parentNode, xy);
}
}
// account for any scrolled ancestors
if (Y_DOM.getStyle(node, POSITION) != FIXED) {
parentNode = node;
while ((parentNode = parentNode.parentNode)) {
scrollTop = parentNode.scrollTop;
scrollLeft = parentNode.scrollLeft;
//Firefox does something funky with borders when overflow is not visible.
if (Y.UA.gecko && (Y_DOM.getStyle(parentNode, 'overflow') !== 'visible')) {
xy = Y_DOM._calcBorders(parentNode, xy);
}
if (scrollTop || scrollLeft) {
xy[0] -= scrollLeft;
xy[1] -= scrollTop;
}
}
xy[0] += Y_DOM.docScrollX(node, doc);
xy[1] += Y_DOM.docScrollY(node, doc);
} else {
//Fix FIXED position -- add scrollbars
xy[0] += Y_DOM.docScrollX(node, doc);
xy[1] += Y_DOM.docScrollY(node, doc);
}
} else {
xy = Y_DOM._getOffset(node);
}
}
return xy;
};
}
}(),// NOTE: Executing for loadtime branching
/**
Gets the width of vertical scrollbars on overflowed containers in the body
content.
@method getScrollbarWidth
@return {Number} Pixel width of a scrollbar in the current browser
**/
getScrollbarWidth: Y.cached(function () {
var doc = Y.config.doc,
testNode = doc.createElement('div'),
body = doc.getElementsByTagName('body')[0],
// 0.1 because cached doesn't support falsy refetch values
width = 0.1;
if (body) {
testNode.style.cssText = "position:absolute;visibility:hidden;overflow:scroll;width:20px;";
testNode.appendChild(doc.createElement('p')).style.height = '1px';
body.insertBefore(testNode, body.firstChild);
width = testNode.offsetWidth - testNode.clientWidth;
body.removeChild(testNode);
}
return width;
}, null, 0.1),
/**
* Gets the current X position of an element based on page coordinates.
* Element must be part of the DOM tree to have page coordinates
* (display:none or elements not appended return false).
* @method getX
* @param element The target element
* @return {Number} The X position of the element
*/
getX: function(node) {
return Y_DOM.getXY(node)[0];
},
/**
* Gets the current Y position of an element based on page coordinates.
* Element must be part of the DOM tree to have page coordinates
* (display:none or elements not appended return false).
* @method getY
* @param element The target element
* @return {Number} The Y position of the element
*/
getY: function(node) {
return Y_DOM.getXY(node)[1];
},
/**
* Set the position of an html element in page coordinates.
* The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
* @method setXY
* @param element The target element
* @param {Array} xy Contains X & Y values for new position (coordinates are page-based)
* @param {Boolean} noRetry By default we try and set the position a second time if the first fails
*/
setXY: function(node, xy, noRetry) {
var setStyle = Y_DOM.setStyle,
pos,
delta,
newXY,
currentXY;
if (node && xy) {
pos = Y_DOM.getStyle(node, POSITION);
delta = Y_DOM._getOffset(node);
if (pos == 'static') { // default to relative
pos = RELATIVE;
setStyle(node, POSITION, pos);
}
currentXY = Y_DOM.getXY(node);
if (xy[0] !== null) {
setStyle(node, LEFT, xy[0] - currentXY[0] + delta[0] + 'px');
}
if (xy[1] !== null) {
setStyle(node, TOP, xy[1] - currentXY[1] + delta[1] + 'px');
}
if (!noRetry) {
newXY = Y_DOM.getXY(node);
if (newXY[0] !== xy[0] || newXY[1] !== xy[1]) {
Y_DOM.setXY(node, xy, true);
}
}
} else {
}
},
/**
* Set the X position of an html element in page coordinates, regardless of how the element is positioned.
* The element(s) must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
* @method setX
* @param element The target element
* @param {Number} x The X values for new position (coordinates are page-based)
*/
setX: function(node, x) {
return Y_DOM.setXY(node, [x, null]);
},
/**
* Set the Y position of an html element in page coordinates, regardless of how the element is positioned.
* The element(s) must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
* @method setY
* @param element The target element
* @param {Number} y The Y values for new position (coordinates are page-based)
*/
setY: function(node, y) {
return Y_DOM.setXY(node, [null, y]);
},
/**
* @method swapXY
* @description Swap the xy position with another node
* @param {Node} node The node to swap with
* @param {Node} otherNode The other node to swap with
* @return {Node}
*/
swapXY: function(node, otherNode) {
var xy = Y_DOM.getXY(node);
Y_DOM.setXY(node, Y_DOM.getXY(otherNode));
Y_DOM.setXY(otherNode, xy);
},
_calcBorders: function(node, xy2) {
var t = parseInt(Y_DOM[GET_COMPUTED_STYLE](node, BORDER_TOP_WIDTH), 10) || 0,
l = parseInt(Y_DOM[GET_COMPUTED_STYLE](node, BORDER_LEFT_WIDTH), 10) || 0;
if (Y.UA.gecko) {
if (RE_TABLE.test(node.tagName)) {
t = 0;
l = 0;
}
}
xy2[0] += l;
xy2[1] += t;
return xy2;
},
_getWinSize: function(node, doc) {
doc = doc || (node) ? Y_DOM._getDoc(node) : Y.config.doc;
var win = doc.defaultView || doc.parentWindow,
mode = doc[COMPAT_MODE],
h = win.innerHeight,
w = win.innerWidth,
root = doc[DOCUMENT_ELEMENT];
if ( mode && !Y.UA.opera ) { // IE, Gecko
if (mode != 'CSS1Compat') { // Quirks
root = doc.body;
}
h = root.clientHeight;
w = root.clientWidth;
}
return { height: h, width: w };
},
_getDocSize: function(node) {
var doc = (node) ? Y_DOM._getDoc(node) : Y.config.doc,
root = doc[DOCUMENT_ELEMENT];
if (doc[COMPAT_MODE] != 'CSS1Compat') {
root = doc.body;
}
return { height: root.scrollHeight, width: root.scrollWidth };
}
});
})(Y);
(function(Y) {
var TOP = 'top',
RIGHT = 'right',
BOTTOM = 'bottom',
LEFT = 'left',
getOffsets = function(r1, r2) {
var t = Math.max(r1[TOP], r2[TOP]),
r = Math.min(r1[RIGHT], r2[RIGHT]),
b = Math.min(r1[BOTTOM], r2[BOTTOM]),
l = Math.max(r1[LEFT], r2[LEFT]),
ret = {};
ret[TOP] = t;
ret[RIGHT] = r;
ret[BOTTOM] = b;
ret[LEFT] = l;
return ret;
},
DOM = Y.DOM;
Y.mix(DOM, {
/**
* Returns an Object literal containing the following about this element: (top, right, bottom, left)
* @for DOM
* @method region
* @param {HTMLElement} element The DOM element.
* @return {Object} Object literal containing the following about this element: (top, right, bottom, left)
*/
region: function(node) {
var xy = DOM.getXY(node),
ret = false;
if (node && xy) {
ret = DOM._getRegion(
xy[1], // top
xy[0] + node.offsetWidth, // right
xy[1] + node.offsetHeight, // bottom
xy[0] // left
);
}
return ret;
},
/**
* Find the intersect information for the passed nodes.
* @method intersect
* @for DOM
* @param {HTMLElement} element The first element
* @param {HTMLElement | Object} element2 The element or region to check the interect with
* @param {Object} altRegion An object literal containing the region for the first element if we already have the data (for performance e.g. DragDrop)
* @return {Object} Object literal containing the following intersection data: (top, right, bottom, left, area, yoff, xoff, inRegion)
*/
intersect: function(node, node2, altRegion) {
var r = altRegion || DOM.region(node), region = {},
n = node2,
off;
if (n.tagName) {
region = DOM.region(n);
} else if (Y.Lang.isObject(node2)) {
region = node2;
} else {
return false;
}
off = getOffsets(region, r);
return {
top: off[TOP],
right: off[RIGHT],
bottom: off[BOTTOM],
left: off[LEFT],
area: ((off[BOTTOM] - off[TOP]) * (off[RIGHT] - off[LEFT])),
yoff: ((off[BOTTOM] - off[TOP])),
xoff: (off[RIGHT] - off[LEFT]),
inRegion: DOM.inRegion(node, node2, false, altRegion)
};
},
/**
* Check if any part of this node is in the passed region
* @method inRegion
* @for DOM
* @param {Object} node The node to get the region from
* @param {Object} node2 The second node to get the region from or an Object literal of the region
* @param {Boolean} all Should all of the node be inside the region
* @param {Object} altRegion An object literal containing the region for this node if we already have the data (for performance e.g. DragDrop)
* @return {Boolean} True if in region, false if not.
*/
inRegion: function(node, node2, all, altRegion) {
var region = {},
r = altRegion || DOM.region(node),
n = node2,
off;
if (n.tagName) {
region = DOM.region(n);
} else if (Y.Lang.isObject(node2)) {
region = node2;
} else {
return false;
}
if (all) {
return (
r[LEFT] >= region[LEFT] &&
r[RIGHT] <= region[RIGHT] &&
r[TOP] >= region[TOP] &&
r[BOTTOM] <= region[BOTTOM] );
} else {
off = getOffsets(region, r);
if (off[BOTTOM] >= off[TOP] && off[RIGHT] >= off[LEFT]) {
return true;
} else {
return false;
}
}
},
/**
* Check if any part of this element is in the viewport
* @method inViewportRegion
* @for DOM
* @param {HTMLElement} element The DOM element.
* @param {Boolean} all Should all of the node be inside the region
* @param {Object} altRegion An object literal containing the region for this node if we already have the data (for performance e.g. DragDrop)
* @return {Boolean} True if in region, false if not.
*/
inViewportRegion: function(node, all, altRegion) {
return DOM.inRegion(node, DOM.viewportRegion(node), all, altRegion);
},
_getRegion: function(t, r, b, l) {
var region = {};
region[TOP] = region[1] = t;
region[LEFT] = region[0] = l;
region[BOTTOM] = b;
region[RIGHT] = r;
region.width = region[RIGHT] - region[LEFT];
region.height = region[BOTTOM] - region[TOP];
return region;
},
/**
* Returns an Object literal containing the following about the visible region of viewport: (top, right, bottom, left)
* @method viewportRegion
* @for DOM
* @return {Object} Object literal containing the following about the visible region of the viewport: (top, right, bottom, left)
*/
viewportRegion: function(node) {
node = node || Y.config.doc.documentElement;
var ret = false,
scrollX,
scrollY;
if (node) {
scrollX = DOM.docScrollX(node);
scrollY = DOM.docScrollY(node);
ret = DOM._getRegion(scrollY, // top
DOM.winWidth(node) + scrollX, // right
scrollY + DOM.winHeight(node), // bottom
scrollX); // left
}
return ret;
}
});
})(Y);
}, '3.7.3', {"requires": ["dom-base", "dom-style"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('node-screen', function (Y, NAME) {
/**
* Extended Node interface for managing regions and screen positioning.
* Adds support for positioning elements and normalizes window size and scroll detection.
* @module node
* @submodule node-screen
*/
// these are all "safe" returns, no wrapping required
Y.each([
/**
* Returns the inner width of the viewport (exludes scrollbar).
* @config winWidth
* @for Node
* @type {Int}
*/
'winWidth',
/**
* Returns the inner height of the viewport (exludes scrollbar).
* @config winHeight
* @type {Int}
*/
'winHeight',
/**
* Document width
* @config docWidth
* @type {Int}
*/
'docWidth',
/**
* Document height
* @config docHeight
* @type {Int}
*/
'docHeight',
/**
* Pixel distance the page has been scrolled horizontally
* @config docScrollX
* @type {Int}
*/
'docScrollX',
/**
* Pixel distance the page has been scrolled vertically
* @config docScrollY
* @type {Int}
*/
'docScrollY'
],
function(name) {
Y.Node.ATTRS[name] = {
getter: function() {
var args = Array.prototype.slice.call(arguments);
args.unshift(Y.Node.getDOMNode(this));
return Y.DOM[name].apply(this, args);
}
};
}
);
Y.Node.ATTRS.scrollLeft = {
getter: function() {
var node = Y.Node.getDOMNode(this);
return ('scrollLeft' in node) ? node.scrollLeft : Y.DOM.docScrollX(node);
},
setter: function(val) {
var node = Y.Node.getDOMNode(this);
if (node) {
if ('scrollLeft' in node) {
node.scrollLeft = val;
} else if (node.document || node.nodeType === 9) {
Y.DOM._getWin(node).scrollTo(val, Y.DOM.docScrollY(node)); // scroll window if win or doc
}
} else {
}
}
};
Y.Node.ATTRS.scrollTop = {
getter: function() {
var node = Y.Node.getDOMNode(this);
return ('scrollTop' in node) ? node.scrollTop : Y.DOM.docScrollY(node);
},
setter: function(val) {
var node = Y.Node.getDOMNode(this);
if (node) {
if ('scrollTop' in node) {
node.scrollTop = val;
} else if (node.document || node.nodeType === 9) {
Y.DOM._getWin(node).scrollTo(Y.DOM.docScrollX(node), val); // scroll window if win or doc
}
} else {
}
}
};
Y.Node.importMethod(Y.DOM, [
/**
* Gets the current position of the node in page coordinates.
* @method getXY
* @for Node
* @return {Array} The XY position of the node
*/
'getXY',
/**
* Set the position of the node in page coordinates, regardless of how the node is positioned.
* @method setXY
* @param {Array} xy Contains X & Y values for new position (coordinates are page-based)
* @chainable
*/
'setXY',
/**
* Gets the current position of the node in page coordinates.
* @method getX
* @return {Int} The X position of the node
*/
'getX',
/**
* Set the position of the node in page coordinates, regardless of how the node is positioned.
* @method setX
* @param {Int} x X value for new position (coordinates are page-based)
* @chainable
*/
'setX',
/**
* Gets the current position of the node in page coordinates.
* @method getY
* @return {Int} The Y position of the node
*/
'getY',
/**
* Set the position of the node in page coordinates, regardless of how the node is positioned.
* @method setY
* @param {Int} y Y value for new position (coordinates are page-based)
* @chainable
*/
'setY',
/**
* Swaps the XY position of this node with another node.
* @method swapXY
* @param {Node | HTMLElement} otherNode The node to swap with.
* @chainable
*/
'swapXY'
]);
/**
* @module node
* @submodule node-screen
*/
/**
* Returns a region object for the node
* @config region
* @for Node
* @type Node
*/
Y.Node.ATTRS.region = {
getter: function() {
var node = this.getDOMNode(),
region;
if (node && !node.tagName) {
if (node.nodeType === 9) { // document
node = node.documentElement;
}
}
if (Y.DOM.isWindow(node)) {
region = Y.DOM.viewportRegion(node);
} else {
region = Y.DOM.region(node);
}
return region;
}
};
/**
* Returns a region object for the node's viewport
* @config viewportRegion
* @type Node
*/
Y.Node.ATTRS.viewportRegion = {
getter: function() {
return Y.DOM.viewportRegion(Y.Node.getDOMNode(this));
}
};
Y.Node.importMethod(Y.DOM, 'inViewportRegion');
// these need special treatment to extract 2nd node arg
/**
* Compares the intersection of the node with another node or region
* @method intersect
* @for Node
* @param {Node|Object} node2 The node or region to compare with.
* @param {Object} altRegion An alternate region to use (rather than this node's).
* @return {Object} An object representing the intersection of the regions.
*/
Y.Node.prototype.intersect = function(node2, altRegion) {
var node1 = Y.Node.getDOMNode(this);
if (Y.instanceOf(node2, Y.Node)) { // might be a region object
node2 = Y.Node.getDOMNode(node2);
}
return Y.DOM.intersect(node1, node2, altRegion);
};
/**
* Determines whether or not the node is within the giving region.
* @method inRegion
* @param {Node|Object} node2 The node or region to compare with.
* @param {Boolean} all Whether or not all of the node must be in the region.
* @param {Object} altRegion An alternate region to use (rather than this node's).
* @return {Object} An object representing the intersection of the regions.
*/
Y.Node.prototype.inRegion = function(node2, all, altRegion) {
var node1 = Y.Node.getDOMNode(this);
if (Y.instanceOf(node2, Y.Node)) { // might be a region object
node2 = Y.Node.getDOMNode(node2);
}
return Y.DOM.inRegion(node1, node2, all, altRegion);
};
}, '3.7.3', {"requires": ["dom-screen", "node-base"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('node-style', function (Y, NAME) {
(function(Y) {
/**
* Extended Node interface for managing node styles.
* @module node
* @submodule node-style
*/
Y.mix(Y.Node.prototype, {
/**
* Sets a style property of the node.
* Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method setStyle
* @param {String} attr The style attribute to set.
* @param {String|Number} val The value.
* @chainable
*/
setStyle: function(attr, val) {
Y.DOM.setStyle(this._node, attr, val);
return this;
},
/**
* Sets multiple style properties on the node.
* Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method setStyles
* @param {Object} hash An object literal of property:value pairs.
* @chainable
*/
setStyles: function(hash) {
Y.DOM.setStyles(this._node, hash);
return this;
},
/**
* Returns the style's current value.
* Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method getStyle
* @for Node
* @param {String} attr The style attribute to retrieve.
* @return {String} The current value of the style property for the element.
*/
getStyle: function(attr) {
return Y.DOM.getStyle(this._node, attr);
},
/**
* Returns the computed value for the given style property.
* Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method getComputedStyle
* @param {String} attr The style attribute to retrieve.
* @return {String} The computed value of the style property for the element.
*/
getComputedStyle: function(attr) {
return Y.DOM.getComputedStyle(this._node, attr);
}
});
/**
* Returns an array of values for each node.
* Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method getStyle
* @for NodeList
* @see Node.getStyle
* @param {String} attr The style attribute to retrieve.
* @return {Array} The current values of the style property for the element.
*/
/**
* Returns an array of the computed value for each node.
* Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method getComputedStyle
* @see Node.getComputedStyle
* @param {String} attr The style attribute to retrieve.
* @return {Array} The computed values for each node.
*/
/**
* Sets a style property on each node.
* Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method setStyle
* @see Node.setStyle
* @param {String} attr The style attribute to set.
* @param {String|Number} val The value.
* @chainable
*/
/**
* Sets multiple style properties on each node.
* Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method setStyles
* @see Node.setStyles
* @param {Object} hash An object literal of property:value pairs.
* @chainable
*/
// These are broken out to handle undefined return (avoid false positive for
// chainable)
Y.NodeList.importMethod(Y.Node.prototype, ['getStyle', 'getComputedStyle', 'setStyle', 'setStyles']);
})(Y);
}, '3.7.3', {"requires": ["dom-style", "node-base"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('querystring-stringify-simple', function (Y, NAME) {
/*global Y */
/**
* <p>Provides Y.QueryString.stringify method for converting objects to Query Strings.
* This is a subset implementation of the full querystring-stringify.</p>
* <p>This module provides the bare minimum functionality (encoding a hash of simple values),
* without the additional support for nested data structures. Every key-value pair is
* encoded by encodeURIComponent.</p>
* <p>This module provides a minimalistic way for io to handle single-level objects
* as transaction data.</p>
*
* @module querystring
* @submodule querystring-stringify-simple
* @for QueryString
* @static
*/
var QueryString = Y.namespace("QueryString"),
EUC = encodeURIComponent;
/**
* <p>Converts a simple object to a Query String representation.</p>
* <p>Nested objects, Arrays, and so on, are not supported.</p>
*
* @method stringify
* @for QueryString
* @public
* @submodule querystring-stringify-simple
* @param obj {Object} A single-level object to convert to a querystring.
* @param cfg {Object} (optional) Configuration object. In the simple
* module, only the arrayKey setting is
* supported. When set to true, the key of an
* array will have the '[]' notation appended
* to the key;.
* @static
*/
QueryString.stringify = function (obj, c) {
var qs = [],
// Default behavior is false; standard key notation.
s = c && c.arrayKey ? true : false,
key, i, l;
for (key in obj) {
if (obj.hasOwnProperty(key)) {
if (Y.Lang.isArray(obj[key])) {
for (i = 0, l = obj[key].length; i < l; i++) {
qs.push(EUC(s ? key + '[]' : key) + '=' + EUC(obj[key][i]));
}
}
else {
qs.push(EUC(key) + '=' + EUC(obj[key]));
}
}
}
return qs.join('&');
};
}, '3.7.3', {"requires": ["yui-base"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('io-base', function (Y, NAME) {
/**
Base IO functionality. Provides basic XHR transport support.
@module io
@submodule io-base
@for IO
**/
var // List of events that comprise the IO event lifecycle.
EVENTS = ['start', 'complete', 'end', 'success', 'failure', 'progress'],
// Whitelist of used XHR response object properties.
XHR_PROPS = ['status', 'statusText', 'responseText', 'responseXML'],
win = Y.config.win,
uid = 0;
/**
The IO class is a utility that brokers HTTP requests through a simplified
interface. Specifically, it allows JavaScript to make HTTP requests to
a resource without a page reload. The underlying transport for making
same-domain requests is the XMLHttpRequest object. IO can also use
Flash, if specified as a transport, for cross-domain requests.
@class IO
@constructor
@param {Object} config Object of EventTarget's publish method configurations
used to configure IO's events.
**/
function IO (config) {
var io = this;
io._uid = 'io:' + uid++;
io._init(config);
Y.io._map[io._uid] = io;
}
IO.prototype = {
//--------------------------------------
// Properties
//--------------------------------------
/**
* A counter that increments for each transaction.
*
* @property _id
* @private
* @type {Number}
*/
_id: 0,
/**
* Object of IO HTTP headers sent with each transaction.
*
* @property _headers
* @private
* @type {Object}
*/
_headers: {
'X-Requested-With' : 'XMLHttpRequest'
},
/**
* Object that stores timeout values for any transaction with a defined
* "timeout" configuration property.
*
* @property _timeout
* @private
* @type {Object}
*/
_timeout: {},
//--------------------------------------
// Methods
//--------------------------------------
_init: function(config) {
var io = this, i, len;
io.cfg = config || {};
Y.augment(io, Y.EventTarget);
for (i = 0, len = EVENTS.length; i < len; ++i) {
// Publish IO global events with configurations, if any.
// IO global events are set to broadcast by default.
// These events use the "io:" namespace.
io.publish('io:' + EVENTS[i], Y.merge({ broadcast: 1 }, config));
// Publish IO transaction events with configurations, if
// any. These events use the "io-trn:" namespace.
io.publish('io-trn:' + EVENTS[i], config);
}
},
/**
* Method that creates a unique transaction object for each request.
*
* @method _create
* @private
* @param {Object} cfg Configuration object subset to determine if
* the transaction is an XDR or file upload,
* requiring an alternate transport.
* @param {Number} id Transaction id
* @return {Object} The transaction object
*/
_create: function(config, id) {
var io = this,
transaction = {
id : Y.Lang.isNumber(id) ? id : io._id++,
uid: io._uid
},
alt = config.xdr ? config.xdr.use : null,
form = config.form && config.form.upload ? 'iframe' : null,
use;
if (alt === 'native') {
// Non-IE and IE >= 10 can use XHR level 2 and not rely on an
// external transport.
alt = Y.UA.ie && !SUPPORTS_CORS ? 'xdr' : null;
// Prevent "pre-flight" OPTIONS request by removing the
// `X-Requested-With` HTTP header from CORS requests. This header
// can be added back on a per-request basis, if desired.
io.setHeader('X-Requested-With');
}
use = alt || form;
transaction = use ? Y.merge(Y.IO.customTransport(use), transaction) :
Y.merge(Y.IO.defaultTransport(), transaction);
if (transaction.notify) {
config.notify = function (e, t, c) { io.notify(e, t, c); };
}
if (!use) {
if (win && win.FormData && config.data instanceof win.FormData) {
transaction.c.upload.onprogress = function (e) {
io.progress(transaction, e, config);
};
transaction.c.onload = function (e) {
io.load(transaction, e, config);
};
transaction.c.onerror = function (e) {
io.error(transaction, e, config);
};
transaction.upload = true;
}
}
return transaction;
},
_destroy: function(transaction) {
if (win && !transaction.notify && !transaction.xdr) {
if (XHR && !transaction.upload) {
transaction.c.onreadystatechange = null;
} else if (transaction.upload) {
transaction.c.upload.onprogress = null;
transaction.c.onload = null;
transaction.c.onerror = null;
} else if (Y.UA.ie && !transaction.e) {
// IE, when using XMLHttpRequest as an ActiveX Object, will throw
// a "Type Mismatch" error if the event handler is set to "null".
transaction.c.abort();
}
}
transaction = transaction.c = null;
},
/**
* Method for creating and firing events.
*
* @method _evt
* @private
* @param {String} eventName Event to be published.
* @param {Object} transaction Transaction object.
* @param {Object} config Configuration data subset for event subscription.
*/
_evt: function(eventName, transaction, config) {
var io = this, params,
args = config['arguments'],
emitFacade = io.cfg.emitFacade,
globalEvent = "io:" + eventName,
trnEvent = "io-trn:" + eventName;
// Workaround for #2532107
this.detach(trnEvent);
if (transaction.e) {
transaction.c = { status: 0, statusText: transaction.e };
}
// Fire event with parameters or an Event Facade.
params = [ emitFacade ?
{
id: transaction.id,
data: transaction.c,
cfg: config,
'arguments': args
} :
transaction.id
];
if (!emitFacade) {
if (eventName === EVENTS[0] || eventName === EVENTS[2]) {
if (args) {
params.push(args);
}
} else {
if (transaction.evt) {
params.push(transaction.evt);
} else {
params.push(transaction.c);
}
if (args) {
params.push(args);
}
}
}
params.unshift(globalEvent);
// Fire global events.
io.fire.apply(io, params);
// Fire transaction events, if receivers are defined.
if (config.on) {
params[0] = trnEvent;
io.once(trnEvent, config.on[eventName], config.context || Y);
io.fire.apply(io, params);
}
},
/**
* Fires event "io:start" and creates, fires a transaction-specific
* start event, if `config.on.start` is defined.
*
* @method start
* @param {Object} transaction Transaction object.
* @param {Object} config Configuration object for the transaction.
*/
start: function(transaction, config) {
/**
* Signals the start of an IO request.
* @event io:start
*/
this._evt(EVENTS[0], transaction, config);
},
/**
* Fires event "io:complete" and creates, fires a
* transaction-specific "complete" event, if config.on.complete is
* defined.
*
* @method complete
* @param {Object} transaction Transaction object.
* @param {Object} config Configuration object for the transaction.
*/
complete: function(transaction, config) {
/**
* Signals the completion of the request-response phase of a
* transaction. Response status and data are accessible, if
* available, in this event.
* @event io:complete
*/
this._evt(EVENTS[1], transaction, config);
},
/**
* Fires event "io:end" and creates, fires a transaction-specific "end"
* event, if config.on.end is defined.
*
* @method end
* @param {Object} transaction Transaction object.
* @param {Object} config Configuration object for the transaction.
*/
end: function(transaction, config) {
/**
* Signals the end of the transaction lifecycle.
* @event io:end
*/
this._evt(EVENTS[2], transaction, config);
this._destroy(transaction);
},
/**
* Fires event "io:success" and creates, fires a transaction-specific
* "success" event, if config.on.success is defined.
*
* @method success
* @param {Object} transaction Transaction object.
* @param {Object} config Configuration object for the transaction.
*/
success: function(transaction, config) {
/**
* Signals an HTTP response with status in the 2xx range.
* Fires after io:complete.
* @event io:success
*/
this._evt(EVENTS[3], transaction, config);
this.end(transaction, config);
},
/**
* Fires event "io:failure" and creates, fires a transaction-specific
* "failure" event, if config.on.failure is defined.
*
* @method failure
* @param {Object} transaction Transaction object.
* @param {Object} config Configuration object for the transaction.
*/
failure: function(transaction, config) {
/**
* Signals an HTTP response with status outside of the 2xx range.
* Fires after io:complete.
* @event io:failure
*/
this._evt(EVENTS[4], transaction, config);
this.end(transaction, config);
},
/**
* Fires event "io:progress" and creates, fires a transaction-specific
* "progress" event -- for XMLHttpRequest file upload -- if
* config.on.progress is defined.
*
* @method progress
* @param {Object} transaction Transaction object.
* @param {Object} progress event.
* @param {Object} config Configuration object for the transaction.
*/
progress: function(transaction, e, config) {
/**
* Signals the interactive state during a file upload transaction.
* This event fires after io:start and before io:complete.
* @event io:progress
*/
transaction.evt = e;
this._evt(EVENTS[5], transaction, config);
},
/**
* Fires event "io:complete" and creates, fires a transaction-specific
* "complete" event -- for XMLHttpRequest file upload -- if
* config.on.complete is defined.
*
* @method load
* @param {Object} transaction Transaction object.
* @param {Object} load event.
* @param {Object} config Configuration object for the transaction.
*/
load: function (transaction, e, config) {
transaction.evt = e.target;
this._evt(EVENTS[1], transaction, config);
},
/**
* Fires event "io:failure" and creates, fires a transaction-specific
* "failure" event -- for XMLHttpRequest file upload -- if
* config.on.failure is defined.
*
* @method error
* @param {Object} transaction Transaction object.
* @param {Object} error event.
* @param {Object} config Configuration object for the transaction.
*/
error: function (transaction, e, config) {
transaction.evt = e;
this._evt(EVENTS[4], transaction, config);
},
/**
* Retry an XDR transaction, using the Flash tranport, if the native
* transport fails.
*
* @method _retry
* @private
* @param {Object} transaction Transaction object.
* @param {String} uri Qualified path to transaction resource.
* @param {Object} config Configuration object for the transaction.
*/
_retry: function(transaction, uri, config) {
this._destroy(transaction);
config.xdr.use = 'flash';
return this.send(uri, config, transaction.id);
},
/**
* Method that concatenates string data for HTTP GET transactions.
*
* @method _concat
* @private
* @param {String} uri URI or root data.
* @param {String} data Data to be concatenated onto URI.
* @return {String}
*/
_concat: function(uri, data) {
uri += (uri.indexOf('?') === -1 ? '?' : '&') + data;
return uri;
},
/**
* Stores default client headers for all transactions. If a label is
* passed with no value argument, the header will be deleted.
*
* @method setHeader
* @param {String} name HTTP header
* @param {String} value HTTP header value
*/
setHeader: function(name, value) {
if (value) {
this._headers[name] = value;
} else {
delete this._headers[name];
}
},
/**
* Method that sets all HTTP headers to be sent in a transaction.
*
* @method _setHeaders
* @private
* @param {Object} transaction - XHR instance for the specific transaction.
* @param {Object} headers - HTTP headers for the specific transaction, as
* defined in the configuration object passed to YUI.io().
*/
_setHeaders: function(transaction, headers) {
headers = Y.merge(this._headers, headers);
Y.Object.each(headers, function(value, name) {
if (value !== 'disable') {
transaction.setRequestHeader(name, headers[name]);
}
});
},
/**
* Starts timeout count if the configuration object has a defined
* timeout property.
*
* @method _startTimeout
* @private
* @param {Object} transaction Transaction object generated by _create().
* @param {Object} timeout Timeout in milliseconds.
*/
_startTimeout: function(transaction, timeout) {
var io = this;
io._timeout[transaction.id] = setTimeout(function() {
io._abort(transaction, 'timeout');
}, timeout);
},
/**
* Clears the timeout interval started by _startTimeout().
*
* @method _clearTimeout
* @private
* @param {Number} id - Transaction id.
*/
_clearTimeout: function(id) {
clearTimeout(this._timeout[id]);
delete this._timeout[id];
},
/**
* Method that determines if a transaction response qualifies as success
* or failure, based on the response HTTP status code, and fires the
* appropriate success or failure events.
*
* @method _result
* @private
* @static
* @param {Object} transaction Transaction object generated by _create().
* @param {Object} config Configuration object passed to io().
*/
_result: function(transaction, config) {
var status;
// Firefox will throw an exception if attempting to access
// an XHR object's status property, after a request is aborted.
try {
status = transaction.c.status;
} catch(e) {
status = 0;
}
// IE reports HTTP 204 as HTTP 1223.
if (status >= 200 && status < 300 || status === 304 || status === 1223) {
this.success(transaction, config);
} else {
this.failure(transaction, config);
}
},
/**
* Event handler bound to onreadystatechange.
*
* @method _rS
* @private
* @param {Object} transaction Transaction object generated by _create().
* @param {Object} config Configuration object passed to YUI.io().
*/
_rS: function(transaction, config) {
var io = this;
if (transaction.c.readyState === 4) {
if (config.timeout) {
io._clearTimeout(transaction.id);
}
// Yield in the event of request timeout or abort.
setTimeout(function() {
io.complete(transaction, config);
io._result(transaction, config);
}, 0);
}
},
/**
* Terminates a transaction due to an explicit abort or timeout.
*
* @method _abort
* @private
* @param {Object} transaction Transaction object generated by _create().
* @param {String} type Identifies timed out or aborted transaction.
*/
_abort: function(transaction, type) {
if (transaction && transaction.c) {
transaction.e = type;
transaction.c.abort();
}
},
/**
* Requests a transaction. `send()` is implemented as `Y.io()`. Each
* transaction may include a configuration object. Its properties are:
*
* <dl>
* <dt>method</dt>
* <dd>HTTP method verb (e.g., GET or POST). If this property is not
* not defined, the default value will be GET.</dd>
*
* <dt>data</dt>
* <dd>This is the name-value string that will be sent as the
* transaction data. If the request is HTTP GET, the data become
* part of querystring. If HTTP POST, the data are sent in the
* message body.</dd>
*
* <dt>xdr</dt>
* <dd>Defines the transport to be used for cross-domain requests.
* By setting this property, the transaction will use the specified
* transport instead of XMLHttpRequest. The properties of the
* transport object are:
* <dl>
* <dt>use</dt>
* <dd>The transport to be used: 'flash' or 'native'</dd>
* <dt>dataType</dt>
* <dd>Set the value to 'XML' if that is the expected response
* content type.</dd>
* </dl></dd>
*
* <dt>form</dt>
* <dd>Form serialization configuration object. Its properties are:
* <dl>
* <dt>id</dt>
* <dd>Node object or id of HTML form</dd>
* <dt>useDisabled</dt>
* <dd>`true` to also serialize disabled form field values
* (defaults to `false`)</dd>
* </dl></dd>
*
* <dt>on</dt>
* <dd>Assigns transaction event subscriptions. Available events are:
* <dl>
* <dt>start</dt>
* <dd>Fires when a request is sent to a resource.</dd>
* <dt>complete</dt>
* <dd>Fires when the transaction is complete.</dd>
* <dt>success</dt>
* <dd>Fires when the HTTP response status is within the 2xx
* range.</dd>
* <dt>failure</dt>
* <dd>Fires when the HTTP response status is outside the 2xx
* range, if an exception occurs, if the transation is aborted,
* or if the transaction exceeds a configured `timeout`.</dd>
* <dt>end</dt>
* <dd>Fires at the conclusion of the transaction
* lifecycle, after `success` or `failure`.</dd>
* </dl>
*
* <p>Callback functions for `start` and `end` receive the id of the
* transaction as a first argument. For `complete`, `success`, and
* `failure`, callbacks receive the id and the response object
* (usually the XMLHttpRequest instance). If the `arguments`
* property was included in the configuration object passed to
* `Y.io()`, the configured data will be passed to all callbacks as
* the last argument.</p>
* </dd>
*
* <dt>sync</dt>
* <dd>Pass `true` to make a same-domain transaction synchronous.
* <strong>CAVEAT</strong>: This will negatively impact the user
* experience. Have a <em>very</em> good reason if you intend to use
* this.</dd>
*
* <dt>context</dt>
* <dd>The "`this'" object for all configured event handlers. If a
* specific context is needed for individual callbacks, bind the
* callback to a context using `Y.bind()`.</dd>
*
* <dt>headers</dt>
* <dd>Object map of transaction headers to send to the server. The
* object keys are the header names and the values are the header
* values.</dd>
*
* <dt>timeout</dt>
* <dd>Millisecond threshold for the transaction before being
* automatically aborted.</dd>
*
* <dt>arguments</dt>
* <dd>User-defined data passed to all registered event handlers.
* This value is available as the second argument in the "start" and
* "end" event handlers. It is the third argument in the "complete",
* "success", and "failure" event handlers. <strong>Be sure to quote
* this property name in the transaction configuration as
* "arguments" is a reserved word in JavaScript</strong> (e.g.
* `Y.io({ ..., "arguments": stuff })`).</dd>
* </dl>
*
* @method send
* @public
* @param {String} uri Qualified path to transaction resource.
* @param {Object} config Configuration object for the transaction.
* @param {Number} id Transaction id, if already set.
* @return {Object}
*/
send: function(uri, config, id) {
var transaction, method, i, len, sync, data,
io = this,
u = uri,
response = {};
config = config ? Y.Object(config) : {};
transaction = io._create(config, id);
method = config.method ? config.method.toUpperCase() : 'GET';
sync = config.sync;
data = config.data;
// Serialize an map object into a key-value string using
// querystring-stringify-simple.
if ((Y.Lang.isObject(data) && !data.nodeType) && !transaction.upload) {
data = Y.QueryString.stringify(data);
}
if (config.form) {
if (config.form.upload) {
// This is a file upload transaction, calling
// upload() in io-upload-iframe.
return io.upload(transaction, uri, config);
} else {
// Serialize HTML form data into a key-value string.
data = io._serialize(config.form, data);
}
}
if (data) {
switch (method) {
case 'GET':
case 'HEAD':
case 'DELETE':
u = io._concat(u, data);
data = '';
break;
case 'POST':
case 'PUT':
// If Content-Type is defined in the configuration object, or
// or as a default header, it will be used instead of
// 'application/x-www-form-urlencoded; charset=UTF-8'
config.headers = Y.merge({
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
}, config.headers);
break;
}
}
if (transaction.xdr) {
// Route data to io-xdr module for flash and XDomainRequest.
return io.xdr(u, transaction, config);
}
else if (transaction.notify) {
// Route data to custom transport
return transaction.c.send(transaction, uri, config);
}
if (!sync && !transaction.upload) {
transaction.c.onreadystatechange = function() {
io._rS(transaction, config);
};
}
try {
// Determine if request is to be set as
// synchronous or asynchronous.
transaction.c.open(method, u, !sync, config.username || null, config.password || null);
io._setHeaders(transaction.c, config.headers || {});
io.start(transaction, config);
// Will work only in browsers that implement the
// Cross-Origin Resource Sharing draft.
if (config.xdr && config.xdr.credentials && SUPPORTS_CORS) {
transaction.c.withCredentials = true;
}
// Using "null" with HTTP POST will result in a request
// with no Content-Length header defined.
transaction.c.send(data);
if (sync) {
// Create a response object for synchronous transactions,
// mixing id and arguments properties with the xhr
// properties whitelist.
for (i = 0, len = XHR_PROPS.length; i < len; ++i) {
response[XHR_PROPS[i]] = transaction.c[XHR_PROPS[i]];
}
response.getAllResponseHeaders = function() {
return transaction.c.getAllResponseHeaders();
};
response.getResponseHeader = function(name) {
return transaction.c.getResponseHeader(name);
};
io.complete(transaction, config);
io._result(transaction, config);
return response;
}
} catch(e) {
if (transaction.xdr) {
// This exception is usually thrown by browsers
// that do not support XMLHttpRequest Level 2.
// Retry the request with the XDR transport set
// to 'flash'. If the Flash transport is not
// initialized or available, the transaction
// will resolve to a transport error.
return io._retry(transaction, uri, config);
} else {
io.complete(transaction, config);
io._result(transaction, config);
}
}
// If config.timeout is defined, and the request is standard XHR,
// initialize timeout polling.
if (config.timeout) {
io._startTimeout(transaction, config.timeout);
}
return {
id: transaction.id,
abort: function() {
return transaction.c ? io._abort(transaction, 'abort') : false;
},
isInProgress: function() {
return transaction.c ? (transaction.c.readyState % 4) : false;
},
io: io
};
}
};
/**
Method for initiating an ajax call. The first argument is the url end
point for the call. The second argument is an object to configure the
transaction and attach event subscriptions. The configuration object
supports the following properties:
<dl>
<dt>method</dt>
<dd>HTTP method verb (e.g., GET or POST). If this property is not
not defined, the default value will be GET.</dd>
<dt>data</dt>
<dd>This is the name-value string that will be sent as the
transaction data. If the request is HTTP GET, the data become
part of querystring. If HTTP POST, the data are sent in the
message body.</dd>
<dt>xdr</dt>
<dd>Defines the transport to be used for cross-domain requests.
By setting this property, the transaction will use the specified
transport instead of XMLHttpRequest. The properties of the
transport object are:
<dl>
<dt>use</dt>
<dd>The transport to be used: 'flash' or 'native'</dd>
<dt>dataType</dt>
<dd>Set the value to 'XML' if that is the expected response
content type.</dd>
</dl></dd>
<dt>form</dt>
<dd>Form serialization configuration object. Its properties are:
<dl>
<dt>id</dt>
<dd>Node object or id of HTML form</dd>
<dt>useDisabled</dt>
<dd>`true` to also serialize disabled form field values
(defaults to `false`)</dd>
</dl></dd>
<dt>on</dt>
<dd>Assigns transaction event subscriptions. Available events are:
<dl>
<dt>start</dt>
<dd>Fires when a request is sent to a resource.</dd>
<dt>complete</dt>
<dd>Fires when the transaction is complete.</dd>
<dt>success</dt>
<dd>Fires when the HTTP response status is within the 2xx
range.</dd>
<dt>failure</dt>
<dd>Fires when the HTTP response status is outside the 2xx
range, if an exception occurs, if the transation is aborted,
or if the transaction exceeds a configured `timeout`.</dd>
<dt>end</dt>
<dd>Fires at the conclusion of the transaction
lifecycle, after `success` or `failure`.</dd>
</dl>
<p>Callback functions for `start` and `end` receive the id of the
transaction as a first argument. For `complete`, `success`, and
`failure`, callbacks receive the id and the response object
(usually the XMLHttpRequest instance). If the `arguments`
property was included in the configuration object passed to
`Y.io()`, the configured data will be passed to all callbacks as
the last argument.</p>
</dd>
<dt>sync</dt>
<dd>Pass `true` to make a same-domain transaction synchronous.
<strong>CAVEAT</strong>: This will negatively impact the user
experience. Have a <em>very</em> good reason if you intend to use
this.</dd>
<dt>context</dt>
<dd>The "`this'" object for all configured event handlers. If a
specific context is needed for individual callbacks, bind the
callback to a context using `Y.bind()`.</dd>
<dt>headers</dt>
<dd>Object map of transaction headers to send to the server. The
object keys are the header names and the values are the header
values.</dd>
<dt>timeout</dt>
<dd>Millisecond threshold for the transaction before being
automatically aborted.</dd>
<dt>arguments</dt>
<dd>User-defined data passed to all registered event handlers.
This value is available as the second argument in the "start" and
"end" event handlers. It is the third argument in the "complete",
"success", and "failure" event handlers. <strong>Be sure to quote
this property name in the transaction configuration as
"arguments" is a reserved word in JavaScript</strong> (e.g.
`Y.io({ ..., "arguments": stuff })`).</dd>
</dl>
@method io
@static
@param {String} url qualified path to transaction resource.
@param {Object} config configuration object for the transaction.
@return {Object}
@for YUI
**/
Y.io = function(url, config) {
// Calling IO through the static interface will use and reuse
// an instance of IO.
var transaction = Y.io._map['io:0'] || new IO();
return transaction.send.apply(transaction, [url, config]);
};
/**
Method for setting and deleting IO HTTP headers to be sent with every
request.
Hosted as a property on the `io` function (e.g. `Y.io.header`).
@method header
@param {String} name HTTP header
@param {String} value HTTP header value
@static
**/
Y.io.header = function(name, value) {
// Calling IO through the static interface will use and reuse
// an instance of IO.
var transaction = Y.io._map['io:0'] || new IO();
transaction.setHeader(name, value);
};
Y.IO = IO;
// Map of all IO instances created.
Y.io._map = {};
var XHR = win && win.XMLHttpRequest,
XDR = win && win.XDomainRequest,
AX = win && win.ActiveXObject,
// Checks for the presence of the `withCredentials` in an XHR instance
// object, which will be present if the environment supports CORS.
SUPPORTS_CORS = XHR && 'withCredentials' in (new XMLHttpRequest());
Y.mix(Y.IO, {
/**
* The ID of the default IO transport, defaults to `xhr`
* @property _default
* @type {String}
* @static
*/
_default: 'xhr',
/**
*
* @method defaultTransport
* @static
* @param {String} [id] The transport to set as the default, if empty a new transport is created.
* @return {Object} The transport object with a `send` method
*/
defaultTransport: function(id) {
if (id) {
Y.IO._default = id;
} else {
var o = {
c: Y.IO.transports[Y.IO._default](),
notify: Y.IO._default === 'xhr' ? false : true
};
return o;
}
},
/**
* An object hash of custom transports available to IO
* @property transports
* @type {Object}
* @static
*/
transports: {
xhr: function () {
return XHR ? new XMLHttpRequest() :
AX ? new ActiveXObject('Microsoft.XMLHTTP') : null;
},
xdr: function () {
return XDR ? new XDomainRequest() : null;
},
iframe: function () { return {}; },
flash: null,
nodejs: null
},
/**
* Create a custom transport of type and return it's object
* @method customTransport
* @param {String} id The id of the transport to create.
* @static
*/
customTransport: function(id) {
var o = { c: Y.IO.transports[id]() };
o[(id === 'xdr' || id === 'flash') ? 'xdr' : 'notify'] = true;
return o;
}
});
Y.mix(Y.IO.prototype, {
/**
* Fired from the notify method of the transport which in turn fires
* the event on the IO object.
* @method notify
* @param {String} event The name of the event
* @param {Object} transaction The transaction object
* @param {Object} config The configuration object for this transaction
*/
notify: function(event, transaction, config) {
var io = this;
switch (event) {
case 'timeout':
case 'abort':
case 'transport error':
transaction.c = { status: 0, statusText: event };
event = 'failure';
default:
io[event].apply(io, [transaction, config]);
}
}
});
}, '3.7.3', {"requires": ["event-custom-base", "querystring-stringify-simple"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('array-extras', function (Y, NAME) {
/**
Adds additional utility methods to the `Y.Array` class.
@module collection
@submodule array-extras
**/
var A = Y.Array,
L = Y.Lang,
ArrayProto = Array.prototype;
/**
Returns the index of the last item in the array that contains the specified
value, or `-1` if the value isn't found.
@method lastIndexOf
@param {Array} a Array to search in.
@param {Any} val Value to search for.
@param {Number} [fromIndex] Index at which to start searching backwards.
Defaults to the array's length - 1. If negative, it will be taken as an offset
from the end of the array. If the calculated index is less than 0, the array
will not be searched and `-1` will be returned.
@return {Number} Index of the item that contains the value, or `-1` if not
found.
@static
@for Array
**/
A.lastIndexOf = L._isNative(ArrayProto.lastIndexOf) ?
function(a, val, fromIndex) {
// An undefined fromIndex is still considered a value by some (all?)
// native implementations, so we can't pass it unless it's actually
// specified.
return fromIndex || fromIndex === 0 ? a.lastIndexOf(val, fromIndex) :
a.lastIndexOf(val);
} :
function(a, val, fromIndex) {
var len = a.length,
i = len - 1;
if (fromIndex || fromIndex === 0) {
i = Math.min(fromIndex < 0 ? len + fromIndex : fromIndex, len);
}
if (i > -1 && len > 0) {
for (; i > -1; --i) {
if (i in a && a[i] === val) {
return i;
}
}
}
return -1;
};
/**
Returns a copy of the input array with duplicate items removed.
Note: If the input array only contains strings, the `Y.Array.dedupe()` method is
a much faster alternative.
@method unique
@param {Array} array Array to dedupe.
@param {Function} [testFn] Custom function to use to test the equality of two
values. A truthy return value indicates that the values are equal. A falsy
return value indicates that the values are not equal.
@param {Any} testFn.a First value to compare.
@param {Any} testFn.b Second value to compare.
@param {Number} testFn.index Index of the current item in the original
array.
@param {Array} testFn.array The original array.
@return {Boolean} _true_ if the items are equal, _false_ otherwise.
@return {Array} Copy of the input array with duplicate items removed.
@static
**/
A.unique = function (array, testFn) {
var i = 0,
len = array.length,
results = [],
j, result, resultLen, value;
// Note the label here. It's used to jump out of the inner loop when a value
// is not unique.
outerLoop: for (; i < len; i++) {
value = array[i];
// For each value in the input array, iterate through the result array
// and check for uniqueness against each result value.
for (j = 0, resultLen = results.length; j < resultLen; j++) {
result = results[j];
// If the test function returns true or there's no test function and
// the value equals the current result item, stop iterating over the
// results and continue to the next value in the input array.
if (testFn) {
if (testFn.call(array, value, result, i, array)) {
continue outerLoop;
}
} else if (value === result) {
continue outerLoop;
}
}
// If we get this far, that means the current value is not already in
// the result array, so add it.
results.push(value);
}
return results;
};
/**
Executes the supplied function on each item in the array. Returns a new array
containing the items for which the supplied function returned a truthy value.
@method filter
@param {Array} a Array to filter.
@param {Function} f Function to execute on each item.
@param {Object} [o] Optional context object.
@return {Array} Array of items for which the supplied function returned a
truthy value (empty if it never returned a truthy value).
@static
*/
A.filter = L._isNative(ArrayProto.filter) ?
function(a, f, o) {
return ArrayProto.filter.call(a, f, o);
} :
function(a, f, o) {
var i = 0,
len = a.length,
results = [],
item;
for (; i < len; ++i) {
if (i in a) {
item = a[i];
if (f.call(o, item, i, a)) {
results.push(item);
}
}
}
return results;
};
/**
The inverse of `Array.filter()`. Executes the supplied function on each item.
Returns a new array containing the items for which the supplied function
returned `false`.
@method reject
@param {Array} a the array to iterate.
@param {Function} f the function to execute on each item.
@param {object} [o] Optional context object.
@return {Array} The items for which the supplied function returned `false`.
@static
*/
A.reject = function(a, f, o) {
return A.filter(a, function(item, i, a) {
return !f.call(o, item, i, a);
});
};
/**
Executes the supplied function on each item in the array. Iteration stops if the
supplied function does not return a truthy value.
@method every
@param {Array} a the array to iterate.
@param {Function} f the function to execute on each item.
@param {Object} [o] Optional context object.
@return {Boolean} `true` if every item in the array returns `true` from the
supplied function, `false` otherwise.
@static
*/
A.every = L._isNative(ArrayProto.every) ?
function(a, f, o) {
return ArrayProto.every.call(a, f, o);
} :
function(a, f, o) {
for (var i = 0, l = a.length; i < l; ++i) {
if (i in a && !f.call(o, a[i], i, a)) {
return false;
}
}
return true;
};
/**
Executes the supplied function on each item in the array and returns a new array
containing all the values returned by the supplied function.
@example
// Convert an array of numbers into an array of strings.
Y.Array.map([1, 2, 3, 4], function (item) {
return '' + item;
});
// => ['1', '2', '3', '4']
@method map
@param {Array} a the array to iterate.
@param {Function} f the function to execute on each item.
@param {object} [o] Optional context object.
@return {Array} A new array containing the return value of the supplied function
for each item in the original array.
@static
*/
A.map = L._isNative(ArrayProto.map) ?
function(a, f, o) {
return ArrayProto.map.call(a, f, o);
} :
function(a, f, o) {
var i = 0,
len = a.length,
results = ArrayProto.concat.call(a);
for (; i < len; ++i) {
if (i in a) {
results[i] = f.call(o, a[i], i, a);
}
}
return results;
};
/**
Executes the supplied function on each item in the array, "folding" the array
into a single value.
@method reduce
@param {Array} a Array to iterate.
@param {Any} init Initial value to start with.
@param {Function} f Function to execute on each item. This function should
update and return the value of the computation. It will receive the following
arguments:
@param {Any} f.previousValue Value returned from the previous iteration,
or the initial value if this is the first iteration.
@param {Any} f.currentValue Value of the current item being iterated.
@param {Number} f.index Index of the current item.
@param {Array} f.array Array being iterated.
@param {Object} [o] Optional context object.
@return {Any} Final result from iteratively applying the given function to each
element in the array.
@static
*/
A.reduce = L._isNative(ArrayProto.reduce) ?
function(a, init, f, o) {
// ES5 Array.reduce doesn't support a thisObject, so we need to
// implement it manually.
return ArrayProto.reduce.call(a, function(init, item, i, a) {
return f.call(o, init, item, i, a);
}, init);
} :
function(a, init, f, o) {
var i = 0,
len = a.length,
result = init;
for (; i < len; ++i) {
if (i in a) {
result = f.call(o, result, a[i], i, a);
}
}
return result;
};
/**
Executes the supplied function on each item in the array, searching for the
first item that matches the supplied function.
@method find
@param {Array} a the array to search.
@param {Function} f the function to execute on each item. Iteration is stopped
as soon as this function returns `true`.
@param {Object} [o] Optional context object.
@return {Object} the first item that the supplied function returns `true` for,
or `null` if it never returns `true`.
@static
*/
A.find = function(a, f, o) {
for (var i = 0, l = a.length; i < l; i++) {
if (i in a && f.call(o, a[i], i, a)) {
return a[i];
}
}
return null;
};
/**
Iterates over an array, returning a new array of all the elements that match the
supplied regular expression.
@method grep
@param {Array} a Array to iterate over.
@param {RegExp} pattern Regular expression to test against each item.
@return {Array} All the items in the array that produce a match against the
supplied regular expression. If no items match, an empty array is returned.
@static
*/
A.grep = function(a, pattern) {
return A.filter(a, function(item, index) {
return pattern.test(item);
});
};
/**
Partitions an array into two new arrays, one with the items for which the
supplied function returns `true`, and one with the items for which the function
returns `false`.
@method partition
@param {Array} a Array to iterate over.
@param {Function} f Function to execute for each item in the array. It will
receive the following arguments:
@param {Any} f.item Current item.
@param {Number} f.index Index of the current item.
@param {Array} f.array The array being iterated.
@param {Object} [o] Optional execution context.
@return {Object} An object with two properties: `matches` and `rejects`. Each is
an array containing the items that were selected or rejected by the test
function (or an empty array if none).
@static
*/
A.partition = function(a, f, o) {
var results = {
matches: [],
rejects: []
};
A.each(a, function(item, index) {
var set = f.call(o, item, index, a) ? results.matches : results.rejects;
set.push(item);
});
return results;
};
/**
Creates an array of arrays by pairing the corresponding elements of two arrays
together into a new array.
@method zip
@param {Array} a Array to iterate over.
@param {Array} a2 Another array whose values will be paired with values of the
first array.
@return {Array} An array of arrays formed by pairing each element of the first
array with an item in the second array having the corresponding index.
@static
*/
A.zip = function(a, a2) {
var results = [];
A.each(a, function(item, index) {
results.push([item, a2[index]]);
});
return results;
};
/**
Flattens an array of nested arrays at any abitrary depth into a single, flat
array.
@method flatten
@param {Array} a Array with nested arrays to flatten.
@return {Array} An array whose nested arrays have been flattened.
@static
@since 3.7.0
**/
A.flatten = function(a) {
var result = [],
i, len, val;
// Always return an array.
if (!a) {
return result;
}
for (i = 0, len = a.length; i < len; ++i) {
val = a[i];
if (L.isArray(val)) {
// Recusively flattens any nested arrays.
result.push.apply(result, A.flatten(val));
} else {
result.push(val);
}
}
return result;
};
}, '3.7.3', {"requires": ["yui-base"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('querystring-parse', function (Y, NAME) {
/**
* The QueryString module adds support for serializing JavaScript objects into
* query strings and parsing JavaScript objects from query strings format.
*
* The QueryString namespace is added to your YUI instance including static methods
* `Y.QueryString.parse(..)` and `Y.QueryString.stringify(..)`.
*
* The `querystring` module is a alias for `querystring-parse` and
* `querystring-stringify`.
*
* As their names suggest, `querystring-parse` adds support for parsing
* Query String data (`Y.QueryString.parse`) and `querystring-stringify` for serializing
* JavaScript data into Query Strings (`Y.QueryString.stringify`). You may choose to
* include either of the submodules individually if you don't need the
* complementary functionality, or include the rollup for both.
*
* @module querystring
* @main querystring
*/
/**
* The QueryString module adds support for serializing JavaScript objects into
* query strings and parsing JavaScript objects from query strings format.
* @class QueryString
* @static
*/
var QueryString = Y.namespace("QueryString"),
// Parse a key=val string.
// These can get pretty hairy
// example flow:
// parse(foo[bar][][bla]=baz)
// return parse(foo[bar][][bla],"baz")
// return parse(foo[bar][], {bla : "baz"})
// return parse(foo[bar], [{bla:"baz"}])
// return parse(foo, {bar:[{bla:"baz"}]})
// return {foo:{bar:[{bla:"baz"}]}}
pieceParser = function (eq) {
return function parsePiece (key, val) {
var sliced, numVal, head, tail, ret;
if (arguments.length !== 2) {
// key=val, called from the map/reduce
key = key.split(eq);
return parsePiece(
QueryString.unescape(key.shift()),
QueryString.unescape(key.join(eq))
);
}
key = key.replace(/^\s+|\s+$/g, '');
if (Y.Lang.isString(val)) {
val = val.replace(/^\s+|\s+$/g, '');
// convert numerals to numbers
if (!isNaN(val)) {
numVal = +val;
if (val === numVal.toString(10)) {
val = numVal;
}
}
}
sliced = /(.*)\[([^\]]*)\]$/.exec(key);
if (!sliced) {
ret = {};
if (key) {
ret[key] = val;
}
return ret;
}
// ["foo[][bar][][baz]", "foo[][bar][]", "baz"]
tail = sliced[2];
head = sliced[1];
// array: key[]=val
if (!tail) {
return parsePiece(head, [val]);
}
// obj: key[subkey]=val
ret = {};
ret[tail] = val;
return parsePiece(head, ret);
};
},
// the reducer function that merges each query piece together into one set of params
mergeParams = function(params, addition) {
return (
// if it's uncontested, then just return the addition.
(!params) ? addition
// if the existing value is an array, then concat it.
: (Y.Lang.isArray(params)) ? params.concat(addition)
// if the existing value is not an array, and either are not objects, arrayify it.
: (!Y.Lang.isObject(params) || !Y.Lang.isObject(addition)) ? [params].concat(addition)
// else merge them as objects, which is a little more complex
: mergeObjects(params, addition)
);
},
// Merge two *objects* together. If this is called, we've already ruled
// out the simple cases, and need to do the for-in business.
mergeObjects = function(params, addition) {
for (var i in addition) {
if (i && addition.hasOwnProperty(i)) {
params[i] = mergeParams(params[i], addition[i]);
}
}
return params;
};
/**
* Provides Y.QueryString.parse method to accept Query Strings and return native
* JavaScript objects.
*
* @module querystring
* @submodule querystring-parse
* @for QueryString
* @method parse
* @param qs {String} Querystring to be parsed into an object.
* @param sep {String} (optional) Character that should join param k=v pairs together. Default: "&"
* @param eq {String} (optional) Character that should join keys to their values. Default: "="
* @public
* @static
*/
QueryString.parse = function (qs, sep, eq) {
// wouldn't Y.Array(qs.split()).map(pieceParser(eq)).reduce(mergeParams) be prettier?
return Y.Array.reduce(
Y.Array.map(
qs.split(sep || "&"),
pieceParser(eq || "=")
),
{},
mergeParams
);
};
/**
* Provides Y.QueryString.unescape method to be able to override default decoding
* method. This is important in cases where non-standard delimiters are used, if
* the delimiters would not normally be handled properly by the builtin
* (en|de)codeURIComponent functions.
* Default: replace "+" with " ", and then decodeURIComponent behavior.
* @module querystring
* @submodule querystring-parse
* @for QueryString
* @method unescape
* @param s {String} String to be decoded.
* @public
* @static
**/
QueryString.unescape = function (s) {
return decodeURIComponent(s.replace(/\+/g, ' '));
};
}, '3.7.3', {"requires": ["yui-base", "array-extras"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('querystring-stringify', function (Y, NAME) {
/**
* Provides Y.QueryString.stringify method for converting objects to Query Strings.
*
* @module querystring
* @submodule querystring-stringify
* @for QueryString
* @static
*/
var QueryString = Y.namespace("QueryString"),
stack = [],
L = Y.Lang;
/**
* Provides Y.QueryString.escape method to be able to override default encoding
* method. This is important in cases where non-standard delimiters are used, if
* the delimiters would not normally be handled properly by the builtin
* (en|de)codeURIComponent functions.
* Default: encodeURIComponent
* @module querystring
* @submodule querystring-stringify
* @for QueryString
* @static
**/
QueryString.escape = encodeURIComponent;
/**
* <p>Converts an arbitrary value to a Query String representation.</p>
*
* <p>Objects with cyclical references will trigger an exception.</p>
*
* @method stringify
* @public
* @param obj {Variant} any arbitrary value to convert to query string
* @param cfg {Object} (optional) Configuration object. The three
* supported configurations are:
* <ul><li>sep: When defined, the value will be used as the key-value
* separator. The default value is "&".</li>
* <li>eq: When defined, the value will be used to join the key to
* the value. The default value is "=".</li>
* <li>arrayKey: When set to true, the key of an array will have the
* '[]' notation appended to the key. The default value is false.
* </li></ul>
* @param name {String} (optional) Name of the current key, for handling children recursively.
* @static
*/
QueryString.stringify = function (obj, c, name) {
var begin, end, i, l, n, s,
sep = c && c.sep ? c.sep : "&",
eq = c && c.eq ? c.eq : "=",
aK = c && c.arrayKey ? c.arrayKey : false;
if (L.isNull(obj) || L.isUndefined(obj) || L.isFunction(obj)) {
return name ? QueryString.escape(name) + eq : '';
}
if (L.isBoolean(obj) || Object.prototype.toString.call(obj) === '[object Boolean]') {
obj =+ obj;
}
if (L.isNumber(obj) || L.isString(obj)) {
return QueryString.escape(name) + eq + QueryString.escape(obj);
}
if (L.isArray(obj)) {
s = [];
name = aK ? name + '[]' : name;
l = obj.length;
for (i = 0; i < l; i++) {
s.push( QueryString.stringify(obj[i], c, name) );
}
return s.join(sep);
}
// now we know it's an object.
// Check for cyclical references in nested objects
for (i = stack.length - 1; i >= 0; --i) {
if (stack[i] === obj) {
throw new Error("QueryString.stringify. Cyclical reference");
}
}
stack.push(obj);
s = [];
begin = name ? name + '[' : '';
end = name ? ']' : '';
for (i in obj) {
if (obj.hasOwnProperty(i)) {
n = begin + i + end;
s.push(QueryString.stringify(obj[i], c, n));
}
}
stack.pop();
s = s.join(sep);
if (!s && name) {
return name + "=";
}
return s;
};
}, '3.7.3', {"requires": ["yui-base"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('event-custom-complex', function (Y, NAME) {
/**
* Adds event facades, preventable default behavior, and bubbling.
* events.
* @module event-custom
* @submodule event-custom-complex
*/
var FACADE,
FACADE_KEYS,
key,
EMPTY = {},
CEProto = Y.CustomEvent.prototype,
ETProto = Y.EventTarget.prototype,
mixFacadeProps = function(facade, payload) {
var p;
for (p in payload) {
if (!(FACADE_KEYS.hasOwnProperty(p))) {
facade[p] = payload[p];
}
}
};
/**
* Wraps and protects a custom event for use when emitFacade is set to true.
* Requires the event-custom-complex module
* @class EventFacade
* @param e {Event} the custom event
* @param currentTarget {HTMLElement} the element the listener was attached to
*/
Y.EventFacade = function(e, currentTarget) {
e = e || EMPTY;
this._event = e;
/**
* The arguments passed to fire
* @property details
* @type Array
*/
this.details = e.details;
/**
* The event type, this can be overridden by the fire() payload
* @property type
* @type string
*/
this.type = e.type;
/**
* The real event type
* @property _type
* @type string
* @private
*/
this._type = e.type;
//////////////////////////////////////////////////////
/**
* Node reference for the targeted eventtarget
* @property target
* @type Node
*/
this.target = e.target;
/**
* Node reference for the element that the listener was attached to.
* @property currentTarget
* @type Node
*/
this.currentTarget = currentTarget;
/**
* Node reference to the relatedTarget
* @property relatedTarget
* @type Node
*/
this.relatedTarget = e.relatedTarget;
};
Y.mix(Y.EventFacade.prototype, {
/**
* Stops the propagation to the next bubble target
* @method stopPropagation
*/
stopPropagation: function() {
this._event.stopPropagation();
this.stopped = 1;
},
/**
* Stops the propagation to the next bubble target and
* prevents any additional listeners from being exectued
* on the current target.
* @method stopImmediatePropagation
*/
stopImmediatePropagation: function() {
this._event.stopImmediatePropagation();
this.stopped = 2;
},
/**
* Prevents the event's default behavior
* @method preventDefault
*/
preventDefault: function() {
this._event.preventDefault();
this.prevented = 1;
},
/**
* Stops the event propagation and prevents the default
* event behavior.
* @method halt
* @param immediate {boolean} if true additional listeners
* on the current target will not be executed
*/
halt: function(immediate) {
this._event.halt(immediate);
this.prevented = 1;
this.stopped = (immediate) ? 2 : 1;
}
});
CEProto.fireComplex = function(args) {
var es, ef, q, queue, ce, ret, events, subs, postponed,
self = this, host = self.host || self, next, oldbubble;
if (self.stack) {
// queue this event if the current item in the queue bubbles
if (self.queuable && self.type != self.stack.next.type) {
self.stack.queue.push([self, args]);
return true;
}
}
es = self.stack || {
// id of the first event in the stack
id: self.id,
next: self,
silent: self.silent,
stopped: 0,
prevented: 0,
bubbling: null,
type: self.type,
// defaultFnQueue: new Y.Queue(),
afterQueue: new Y.Queue(),
defaultTargetOnly: self.defaultTargetOnly,
queue: []
};
subs = self.getSubs();
self.stopped = (self.type !== es.type) ? 0 : es.stopped;
self.prevented = (self.type !== es.type) ? 0 : es.prevented;
self.target = self.target || host;
if (self.stoppedFn) {
events = new Y.EventTarget({
fireOnce: true,
context: host
});
self.events = events;
events.on('stopped', self.stoppedFn);
}
self.currentTarget = host;
self.details = args.slice(); // original arguments in the details
self._facade = null; // kill facade to eliminate stale properties
ef = self._getFacade(args);
if (Y.Lang.isObject(args[0])) {
args[0] = ef;
} else {
args.unshift(ef);
}
if (subs[0]) {
self._procSubs(subs[0], args, ef);
}
// bubble if this is hosted in an event target and propagation has not been stopped
if (self.bubbles && host.bubble && !self.stopped) {
oldbubble = es.bubbling;
es.bubbling = self.type;
if (es.type != self.type) {
es.stopped = 0;
es.prevented = 0;
}
ret = host.bubble(self, args, null, es);
self.stopped = Math.max(self.stopped, es.stopped);
self.prevented = Math.max(self.prevented, es.prevented);
es.bubbling = oldbubble;
}
if (self.prevented) {
if (self.preventedFn) {
self.preventedFn.apply(host, args);
}
} else if (self.defaultFn &&
((!self.defaultTargetOnly && !es.defaultTargetOnly) ||
host === ef.target)) {
self.defaultFn.apply(host, args);
}
// broadcast listeners are fired as discreet events on the
// YUI instance and potentially the YUI global.
self._broadcast(args);
// Queue the after
if (subs[1] && !self.prevented && self.stopped < 2) {
if (es.id === self.id || self.type != host._yuievt.bubbling) {
self._procSubs(subs[1], args, ef);
while ((next = es.afterQueue.last())) {
next();
}
} else {
postponed = subs[1];
if (es.execDefaultCnt) {
postponed = Y.merge(postponed);
Y.each(postponed, function(s) {
s.postponed = true;
});
}
es.afterQueue.add(function() {
self._procSubs(postponed, args, ef);
});
}
}
self.target = null;
if (es.id === self.id) {
queue = es.queue;
while (queue.length) {
q = queue.pop();
ce = q[0];
// set up stack to allow the next item to be processed
es.next = ce;
ce.fire.apply(ce, q[1]);
}
self.stack = null;
}
ret = !(self.stopped);
if (self.type != host._yuievt.bubbling) {
es.stopped = 0;
es.prevented = 0;
self.stopped = 0;
self.prevented = 0;
}
// Kill the cached facade to free up memory.
// Otherwise we have the facade from the last fire, sitting around forever.
self._facade = null;
return ret;
};
CEProto._getFacade = function() {
var ef = this._facade, o,
args = this.details;
if (!ef) {
ef = new Y.EventFacade(this, this.currentTarget);
}
// if the first argument is an object literal, apply the
// properties to the event facade
o = args && args[0];
if (Y.Lang.isObject(o, true)) {
// protect the event facade properties
mixFacadeProps(ef, o);
// Allow the event type to be faked
// http://yuilibrary.com/projects/yui3/ticket/2528376
ef.type = o.type || ef.type;
}
// update the details field with the arguments
// ef.type = this.type;
ef.details = this.details;
// use the original target when the event bubbled to this target
ef.target = this.originalTarget || this.target;
ef.currentTarget = this.currentTarget;
ef.stopped = 0;
ef.prevented = 0;
this._facade = ef;
return this._facade;
};
/**
* Stop propagation to bubble targets
* @for CustomEvent
* @method stopPropagation
*/
CEProto.stopPropagation = function() {
this.stopped = 1;
if (this.stack) {
this.stack.stopped = 1;
}
if (this.events) {
this.events.fire('stopped', this);
}
};
/**
* Stops propagation to bubble targets, and prevents any remaining
* subscribers on the current target from executing.
* @method stopImmediatePropagation
*/
CEProto.stopImmediatePropagation = function() {
this.stopped = 2;
if (this.stack) {
this.stack.stopped = 2;
}
if (this.events) {
this.events.fire('stopped', this);
}
};
/**
* Prevents the execution of this event's defaultFn
* @method preventDefault
*/
CEProto.preventDefault = function() {
if (this.preventable) {
this.prevented = 1;
if (this.stack) {
this.stack.prevented = 1;
}
}
};
/**
* Stops the event propagation and prevents the default
* event behavior.
* @method halt
* @param immediate {boolean} if true additional listeners
* on the current target will not be executed
*/
CEProto.halt = function(immediate) {
if (immediate) {
this.stopImmediatePropagation();
} else {
this.stopPropagation();
}
this.preventDefault();
};
/**
* Registers another EventTarget as a bubble target. Bubble order
* is determined by the order registered. Multiple targets can
* be specified.
*
* Events can only bubble if emitFacade is true.
*
* Included in the event-custom-complex submodule.
*
* @method addTarget
* @param o {EventTarget} the target to add
* @for EventTarget
*/
ETProto.addTarget = function(o) {
this._yuievt.targets[Y.stamp(o)] = o;
this._yuievt.hasTargets = true;
};
/**
* Returns an array of bubble targets for this object.
* @method getTargets
* @return EventTarget[]
*/
ETProto.getTargets = function() {
return Y.Object.values(this._yuievt.targets);
};
/**
* Removes a bubble target
* @method removeTarget
* @param o {EventTarget} the target to remove
* @for EventTarget
*/
ETProto.removeTarget = function(o) {
delete this._yuievt.targets[Y.stamp(o)];
};
/**
* Propagate an event. Requires the event-custom-complex module.
* @method bubble
* @param evt {CustomEvent} the custom event to propagate
* @return {boolean} the aggregated return value from Event.Custom.fire
* @for EventTarget
*/
ETProto.bubble = function(evt, args, target, es) {
var targs = this._yuievt.targets, ret = true,
t, type = evt && evt.type, ce, i, bc, ce2,
originalTarget = target || (evt && evt.target) || this,
oldbubble;
if (!evt || ((!evt.stopped) && targs)) {
for (i in targs) {
if (targs.hasOwnProperty(i)) {
t = targs[i];
ce = t.getEvent(type, true);
ce2 = t.getSibling(type, ce);
if (ce2 && !ce) {
ce = t.publish(type);
}
oldbubble = t._yuievt.bubbling;
t._yuievt.bubbling = type;
// if this event was not published on the bubble target,
// continue propagating the event.
if (!ce) {
if (t._yuievt.hasTargets) {
t.bubble(evt, args, originalTarget, es);
}
} else {
ce.sibling = ce2;
// set the original target to that the target payload on the
// facade is correct.
ce.target = originalTarget;
ce.originalTarget = originalTarget;
ce.currentTarget = t;
bc = ce.broadcast;
ce.broadcast = false;
// default publish may not have emitFacade true -- that
// shouldn't be what the implementer meant to do
ce.emitFacade = true;
ce.stack = es;
ret = ret && ce.fire.apply(ce, args || evt.details || []);
ce.broadcast = bc;
ce.originalTarget = null;
// stopPropagation() was called
if (ce.stopped) {
break;
}
}
t._yuievt.bubbling = oldbubble;
}
}
}
return ret;
};
FACADE = new Y.EventFacade();
FACADE_KEYS = {};
// Flatten whitelist
for (key in FACADE) {
FACADE_KEYS[key] = true;
}
}, '3.7.3', {"requires": ["event-custom-base"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('event-synthetic', function (Y, NAME) {
/**
* Define new DOM events that can be subscribed to from Nodes.
*
* @module event
* @submodule event-synthetic
*/
var CustomEvent = Y.CustomEvent,
DOMMap = Y.Env.evt.dom_map,
toArray = Y.Array,
YLang = Y.Lang,
isObject = YLang.isObject,
isString = YLang.isString,
isArray = YLang.isArray,
query = Y.Selector.query,
noop = function () {};
/**
* <p>The triggering mechanism used by SyntheticEvents.</p>
*
* <p>Implementers should not instantiate these directly. Use the Notifier
* provided to the event's implemented <code>on(node, sub, notifier)</code> or
* <code>delegate(node, sub, notifier, filter)</code> methods.</p>
*
* @class SyntheticEvent.Notifier
* @constructor
* @param handle {EventHandle} the detach handle for the subscription to an
* internal custom event used to execute the callback passed to
* on(..) or delegate(..)
* @param emitFacade {Boolean} take steps to ensure the first arg received by
* the subscription callback is an event facade
* @private
* @since 3.2.0
*/
function Notifier(handle, emitFacade) {
this.handle = handle;
this.emitFacade = emitFacade;
}
/**
* <p>Executes the subscription callback, passing the firing arguments as the
* first parameters to that callback. For events that are configured with
* emitFacade=true, it is common practice to pass the triggering DOMEventFacade
* as the first parameter. Barring a proper DOMEventFacade or EventFacade
* (from a CustomEvent), a new EventFacade will be generated. In that case, if
* fire() is called with a simple object, it will be mixed into the facade.
* Otherwise, the facade will be prepended to the callback parameters.</p>
*
* <p>For notifiers provided to delegate logic, the first argument should be an
* object with a "currentTarget" property to identify what object to
* default as 'this' in the callback. Typically this is gleaned from the
* DOMEventFacade or EventFacade, but if configured with emitFacade=false, an
* object must be provided. In that case, the object will be removed from the
* callback parameters.</p>
*
* <p>Additional arguments passed during event subscription will be
* automatically added after those passed to fire().</p>
*
* @method fire
* @param e {EventFacade|DOMEventFacade|Object|any} (see description)
* @param arg* {any} additional arguments received by all subscriptions
* @private
*/
Notifier.prototype.fire = function (e) {
// first arg to delegate notifier should be an object with currentTarget
var args = toArray(arguments, 0, true),
handle = this.handle,
ce = handle.evt,
sub = handle.sub,
thisObj = sub.context,
delegate = sub.filter,
event = e || {},
ret;
if (this.emitFacade) {
if (!e || !e.preventDefault) {
event = ce._getFacade();
if (isObject(e) && !e.preventDefault) {
Y.mix(event, e, true);
args[0] = event;
} else {
args.unshift(event);
}
}
event.type = ce.type;
event.details = args.slice();
if (delegate) {
event.container = ce.host;
}
} else if (delegate && isObject(e) && e.currentTarget) {
args.shift();
}
sub.context = thisObj || event.currentTarget || ce.host;
ret = ce.fire.apply(ce, args);
sub.context = thisObj; // reset for future firing
// to capture callbacks that return false to stopPropagation.
// Useful for delegate implementations
return ret;
};
/**
* Manager object for synthetic event subscriptions to aggregate multiple synths on the same node without colliding with actual DOM subscription entries in the global map of DOM subscriptions. Also facilitates proper cleanup on page unload.
*
* @class SynthRegistry
* @constructor
* @param el {HTMLElement} the DOM element
* @param yuid {String} the yuid stamp for the element
* @param key {String} the generated id token used to identify an event type +
* element in the global DOM subscription map.
* @private
*/
function SynthRegistry(el, yuid, key) {
this.handles = [];
this.el = el;
this.key = key;
this.domkey = yuid;
}
SynthRegistry.prototype = {
constructor: SynthRegistry,
// A few object properties to fake the CustomEvent interface for page
// unload cleanup. DON'T TOUCH!
type : '_synth',
fn : noop,
capture : false,
/**
* Adds a subscription from the Notifier registry.
*
* @method register
* @param handle {EventHandle} the subscription
* @since 3.4.0
*/
register: function (handle) {
handle.evt.registry = this;
this.handles.push(handle);
},
/**
* Removes the subscription from the Notifier registry.
*
* @method _unregisterSub
* @param sub {Subscription} the subscription
* @since 3.4.0
*/
unregister: function (sub) {
var handles = this.handles,
events = DOMMap[this.domkey],
i;
for (i = handles.length - 1; i >= 0; --i) {
if (handles[i].sub === sub) {
handles.splice(i, 1);
break;
}
}
// Clean up left over objects when there are no more subscribers.
if (!handles.length) {
delete events[this.key];
if (!Y.Object.size(events)) {
delete DOMMap[this.domkey];
}
}
},
/**
* Used by the event system's unload cleanup process. When navigating
* away from the page, the event system iterates the global map of element
* subscriptions and detaches everything using detachAll(). Normally,
* the map is populated with custom events, so this object needs to
* at least support the detachAll method to duck type its way to
* cleanliness.
*
* @method detachAll
* @private
* @since 3.4.0
*/
detachAll : function () {
var handles = this.handles,
i = handles.length;
while (--i >= 0) {
handles[i].detach();
}
}
};
/**
* <p>Wrapper class for the integration of new events into the YUI event
* infrastructure. Don't instantiate this object directly, use
* <code>Y.Event.define(type, config)</code>. See that method for details.</p>
*
* <p>Properties that MAY or SHOULD be specified in the configuration are noted
* below and in the description of <code>Y.Event.define</code>.</p>
*
* @class SyntheticEvent
* @constructor
* @param cfg {Object} Implementation pieces and configuration
* @since 3.1.0
* @in event-synthetic
*/
function SyntheticEvent() {
this._init.apply(this, arguments);
}
Y.mix(SyntheticEvent, {
Notifier: Notifier,
SynthRegistry: SynthRegistry,
/**
* Returns the array of subscription handles for a node for the given event
* type. Passing true as the third argument will create a registry entry
* in the event system's DOM map to host the array if one doesn't yet exist.
*
* @method getRegistry
* @param node {Node} the node
* @param type {String} the event
* @param create {Boolean} create a registration entry to host a new array
* if one doesn't exist.
* @return {Array}
* @static
* @protected
* @since 3.2.0
*/
getRegistry: function (node, type, create) {
var el = node._node,
yuid = Y.stamp(el),
key = 'event:' + yuid + type + '_synth',
events = DOMMap[yuid];
if (create) {
if (!events) {
events = DOMMap[yuid] = {};
}
if (!events[key]) {
events[key] = new SynthRegistry(el, yuid, key);
}
}
return (events && events[key]) || null;
},
/**
* Alternate <code>_delete()</code> method for the CustomEvent object
* created to manage SyntheticEvent subscriptions.
*
* @method _deleteSub
* @param sub {Subscription} the subscription to clean up
* @private
* @since 3.2.0
*/
_deleteSub: function (sub) {
if (sub && sub.fn) {
var synth = this.eventDef,
method = (sub.filter) ? 'detachDelegate' : 'detach';
this._subscribers = [];
if (CustomEvent.keepDeprecatedSubs) {
this.subscribers = {};
}
synth[method](sub.node, sub, this.notifier, sub.filter);
this.registry.unregister(sub);
delete sub.fn;
delete sub.node;
delete sub.context;
}
},
prototype: {
constructor: SyntheticEvent,
/**
* Construction logic for the event.
*
* @method _init
* @protected
*/
_init: function () {
var config = this.publishConfig || (this.publishConfig = {});
// The notification mechanism handles facade creation
this.emitFacade = ('emitFacade' in config) ?
config.emitFacade :
true;
config.emitFacade = false;
},
/**
* <p>Implementers MAY provide this method definition.</p>
*
* <p>Implement this function if the event supports a different
* subscription signature. This function is used by both
* <code>on()</code> and <code>delegate()</code>. The second parameter
* indicates that the event is being subscribed via
* <code>delegate()</code>.</p>
*
* <p>Implementations must remove extra arguments from the args list
* before returning. The required args for <code>on()</code>
* subscriptions are</p>
* <pre><code>[type, callback, target, context, argN...]</code></pre>
*
* <p>The required args for <code>delegate()</code>
* subscriptions are</p>
*
* <pre><code>[type, callback, target, filter, context, argN...]</code></pre>
*
* <p>The return value from this function will be stored on the
* subscription in the '_extra' property for reference elsewhere.</p>
*
* @method processArgs
* @param args {Array} parmeters passed to Y.on(..) or Y.delegate(..)
* @param delegate {Boolean} true if the subscription is from Y.delegate
* @return {any}
*/
processArgs: noop,
/**
* <p>Implementers MAY override this property.</p>
*
* <p>Whether to prevent multiple subscriptions to this event that are
* classified as being the same. By default, this means the subscribed
* callback is the same function. See the <code>subMatch</code>
* method. Setting this to true will impact performance for high volume
* events.</p>
*
* @property preventDups
* @type {Boolean}
* @default false
*/
//preventDups : false,
/**
* <p>Implementers SHOULD provide this method definition.</p>
*
* Implementation logic for subscriptions done via <code>node.on(type,
* fn)</code> or <code>Y.on(type, fn, target)</code>. This
* function should set up the monitor(s) that will eventually fire the
* event. Typically this involves subscribing to at least one DOM
* event. It is recommended to store detach handles from any DOM
* subscriptions to make for easy cleanup in the <code>detach</code>
* method. Typically these handles are added to the <code>sub</code>
* object. Also for SyntheticEvents that leverage a single DOM
* subscription under the hood, it is recommended to pass the DOM event
* object to <code>notifier.fire(e)</code>. (The event name on the
* object will be updated).
*
* @method on
* @param node {Node} the node the subscription is being applied to
* @param sub {Subscription} the object to track this subscription
* @param notifier {SyntheticEvent.Notifier} call notifier.fire(..) to
* trigger the execution of the subscribers
*/
on: noop,
/**
* <p>Implementers SHOULD provide this method definition.</p>
*
* <p>Implementation logic for detaching subscriptions done via
* <code>node.on(type, fn)</code>. This function should clean up any
* subscriptions made in the <code>on()</code> phase.</p>
*
* @method detach
* @param node {Node} the node the subscription was applied to
* @param sub {Subscription} the object tracking this subscription
* @param notifier {SyntheticEvent.Notifier} the Notifier used to
* trigger the execution of the subscribers
*/
detach: noop,
/**
* <p>Implementers SHOULD provide this method definition.</p>
*
* <p>Implementation logic for subscriptions done via
* <code>node.delegate(type, fn, filter)</code> or
* <code>Y.delegate(type, fn, container, filter)</code>. Like with
* <code>on()</code> above, this function should monitor the environment
* for the event being fired, and trigger subscription execution by
* calling <code>notifier.fire(e)</code>.</p>
*
* <p>This function receives a fourth argument, which is the filter
* used to identify which Node's are of interest to the subscription.
* The filter will be either a boolean function that accepts a target
* Node for each hierarchy level as the event bubbles, or a selector
* string. To translate selector strings into filter functions, use
* <code>Y.delegate.compileFilter(filter)</code>.</p>
*
* @method delegate
* @param node {Node} the node the subscription is being applied to
* @param sub {Subscription} the object to track this subscription
* @param notifier {SyntheticEvent.Notifier} call notifier.fire(..) to
* trigger the execution of the subscribers
* @param filter {String|Function} Selector string or function that
* accepts an event object and returns null, a Node, or an
* array of Nodes matching the criteria for processing.
* @since 3.2.0
*/
delegate : noop,
/**
* <p>Implementers SHOULD provide this method definition.</p>
*
* <p>Implementation logic for detaching subscriptions done via
* <code>node.delegate(type, fn, filter)</code> or
* <code>Y.delegate(type, fn, container, filter)</code>. This function
* should clean up any subscriptions made in the
* <code>delegate()</code> phase.</p>
*
* @method detachDelegate
* @param node {Node} the node the subscription was applied to
* @param sub {Subscription} the object tracking this subscription
* @param notifier {SyntheticEvent.Notifier} the Notifier used to
* trigger the execution of the subscribers
* @param filter {String|Function} Selector string or function that
* accepts an event object and returns null, a Node, or an
* array of Nodes matching the criteria for processing.
* @since 3.2.0
*/
detachDelegate : noop,
/**
* Sets up the boilerplate for detaching the event and facilitating the
* execution of subscriber callbacks.
*
* @method _on
* @param args {Array} array of arguments passed to
* <code>Y.on(...)</code> or <code>Y.delegate(...)</code>
* @param delegate {Boolean} true if called from
* <code>Y.delegate(...)</code>
* @return {EventHandle} the detach handle for this subscription
* @private
* since 3.2.0
*/
_on: function (args, delegate) {
var handles = [],
originalArgs = args.slice(),
extra = this.processArgs(args, delegate),
selector = args[2],
method = delegate ? 'delegate' : 'on',
nodes, handle;
// Can't just use Y.all because it doesn't support window (yet?)
nodes = (isString(selector)) ?
query(selector) :
toArray(selector || Y.one(Y.config.win));
if (!nodes.length && isString(selector)) {
handle = Y.on('available', function () {
Y.mix(handle, Y[method].apply(Y, originalArgs), true);
}, selector);
return handle;
}
Y.Array.each(nodes, function (node) {
var subArgs = args.slice(),
filter;
node = Y.one(node);
if (node) {
if (delegate) {
filter = subArgs.splice(3, 1)[0];
}
// (type, fn, el, thisObj, ...) => (fn, thisObj, ...)
subArgs.splice(0, 4, subArgs[1], subArgs[3]);
if (!this.preventDups ||
!this.getSubs(node, args, null, true))
{
handles.push(this._subscribe(node, method, subArgs, extra, filter));
}
}
}, this);
return (handles.length === 1) ?
handles[0] :
new Y.EventHandle(handles);
},
/**
* Creates a new Notifier object for use by this event's
* <code>on(...)</code> or <code>delegate(...)</code> implementation
* and register the custom event proxy in the DOM system for cleanup.
*
* @method _subscribe
* @param node {Node} the Node hosting the event
* @param method {String} "on" or "delegate"
* @param args {Array} the subscription arguments passed to either
* <code>Y.on(...)</code> or <code>Y.delegate(...)</code>
* after running through <code>processArgs(args)</code> to
* normalize the argument signature
* @param extra {any} Extra data parsed from
* <code>processArgs(args)</code>
* @param filter {String|Function} the selector string or function
* filter passed to <code>Y.delegate(...)</code> (not
* present when called from <code>Y.on(...)</code>)
* @return {EventHandle}
* @private
* @since 3.2.0
*/
_subscribe: function (node, method, args, extra, filter) {
var dispatcher = new Y.CustomEvent(this.type, this.publishConfig),
handle = dispatcher.on.apply(dispatcher, args),
notifier = new Notifier(handle, this.emitFacade),
registry = SyntheticEvent.getRegistry(node, this.type, true),
sub = handle.sub;
sub.node = node;
sub.filter = filter;
if (extra) {
this.applyArgExtras(extra, sub);
}
Y.mix(dispatcher, {
eventDef : this,
notifier : notifier,
host : node, // I forget what this is for
currentTarget: node, // for generating facades
target : node, // for generating facades
el : node._node, // For category detach
_delete : SyntheticEvent._deleteSub
}, true);
handle.notifier = notifier;
registry.register(handle);
// Call the implementation's "on" or "delegate" method
this[method](node, sub, notifier, filter);
return handle;
},
/**
* <p>Implementers MAY provide this method definition.</p>
*
* <p>Implement this function if you want extra data extracted during
* processArgs to be propagated to subscriptions on a per-node basis.
* That is to say, if you call <code>Y.on('xyz', fn, xtra, 'div')</code>
* the data returned from processArgs will be shared
* across the subscription objects for all the divs. If you want each
* subscription to receive unique information, do that processing
* here.</p>
*
* <p>The default implementation adds the data extracted by processArgs
* to the subscription object as <code>sub._extra</code>.</p>
*
* @method applyArgExtras
* @param extra {any} Any extra data extracted from processArgs
* @param sub {Subscription} the individual subscription
*/
applyArgExtras: function (extra, sub) {
sub._extra = extra;
},
/**
* Removes the subscription(s) from the internal subscription dispatch
* mechanism. See <code>SyntheticEvent._deleteSub</code>.
*
* @method _detach
* @param args {Array} The arguments passed to
* <code>node.detach(...)</code>
* @private
* @since 3.2.0
*/
_detach: function (args) {
// Can't use Y.all because it doesn't support window (yet?)
// TODO: Does Y.all support window now?
var target = args[2],
els = (isString(target)) ?
query(target) : toArray(target),
node, i, len, handles, j;
// (type, fn, el, context, filter?) => (type, fn, context, filter?)
args.splice(2, 1);
for (i = 0, len = els.length; i < len; ++i) {
node = Y.one(els[i]);
if (node) {
handles = this.getSubs(node, args);
if (handles) {
for (j = handles.length - 1; j >= 0; --j) {
handles[j].detach();
}
}
}
}
},
/**
* Returns the detach handles of subscriptions on a node that satisfy a
* search/filter function. By default, the filter used is the
* <code>subMatch</code> method.
*
* @method getSubs
* @param node {Node} the node hosting the event
* @param args {Array} the array of original subscription args passed
* to <code>Y.on(...)</code> (before
* <code>processArgs</code>
* @param filter {Function} function used to identify a subscription
* for inclusion in the returned array
* @param first {Boolean} stop after the first match (used to check for
* duplicate subscriptions)
* @return {EventHandle[]} detach handles for the matching subscriptions
*/
getSubs: function (node, args, filter, first) {
var registry = SyntheticEvent.getRegistry(node, this.type),
handles = [],
allHandles, i, len, handle;
if (registry) {
allHandles = registry.handles;
if (!filter) {
filter = this.subMatch;
}
for (i = 0, len = allHandles.length; i < len; ++i) {
handle = allHandles[i];
if (filter.call(this, handle.sub, args)) {
if (first) {
return handle;
} else {
handles.push(allHandles[i]);
}
}
}
}
return handles.length && handles;
},
/**
* <p>Implementers MAY override this to define what constitutes a
* "same" subscription. Override implementations should
* consider the lack of a comparator as a match, so calling
* <code>getSubs()</code> with no arguments will return all subs.</p>
*
* <p>Compares a set of subscription arguments against a Subscription
* object to determine if they match. The default implementation
* compares the callback function against the second argument passed to
* <code>Y.on(...)</code> or <code>node.detach(...)</code> etc.</p>
*
* @method subMatch
* @param sub {Subscription} the existing subscription
* @param args {Array} the calling arguments passed to
* <code>Y.on(...)</code> etc.
* @return {Boolean} true if the sub can be described by the args
* present
* @since 3.2.0
*/
subMatch: function (sub, args) {
// Default detach cares only about the callback matching
return !args[1] || sub.fn === args[1];
}
}
}, true);
Y.SyntheticEvent = SyntheticEvent;
/**
* <p>Defines a new event in the DOM event system. Implementers are
* responsible for monitoring for a scenario whereby the event is fired. A
* notifier object is provided to the functions identified below. When the
* criteria defining the event are met, call notifier.fire( [args] ); to
* execute event subscribers.</p>
*
* <p>The first parameter is the name of the event. The second parameter is a
* configuration object which define the behavior of the event system when the
* new event is subscribed to or detached from. The methods that should be
* defined in this configuration object are <code>on</code>,
* <code>detach</code>, <code>delegate</code>, and <code>detachDelegate</code>.
* You are free to define any other methods or properties needed to define your
* event. Be aware, however, that since the object is used to subclass
* SyntheticEvent, you should avoid method names used by SyntheticEvent unless
* your intention is to override the default behavior.</p>
*
* <p>This is a list of properties and methods that you can or should specify
* in the configuration object:</p>
*
* <dl>
* <dt><code>on</code></dt>
* <dd><code>function (node, subscription, notifier)</code> The
* implementation logic for subscription. Any special setup you need to
* do to create the environment for the event being fired--E.g. native
* DOM event subscriptions. Store subscription related objects and
* state on the <code>subscription</code> object. When the
* criteria have been met to fire the synthetic event, call
* <code>notifier.fire(e)</code>. See Notifier's <code>fire()</code>
* method for details about what to pass as parameters.</dd>
*
* <dt><code>detach</code></dt>
* <dd><code>function (node, subscription, notifier)</code> The
* implementation logic for cleaning up a detached subscription. E.g.
* detach any DOM subscriptions added in <code>on</code>.</dd>
*
* <dt><code>delegate</code></dt>
* <dd><code>function (node, subscription, notifier, filter)</code> The
* implementation logic for subscription via <code>Y.delegate</code> or
* <code>node.delegate</code>. The filter is typically either a selector
* string or a function. You can use
* <code>Y.delegate.compileFilter(selectorString)</code> to create a
* filter function from a selector string if needed. The filter function
* expects an event object as input and should output either null, a
* matching Node, or an array of matching Nodes. Otherwise, this acts
* like <code>on</code> DOM event subscriptions. Store subscription
* related objects and information on the <code>subscription</code>
* object. When the criteria have been met to fire the synthetic event,
* call <code>notifier.fire(e)</code> as noted above.</dd>
*
* <dt><code>detachDelegate</code></dt>
* <dd><code>function (node, subscription, notifier)</code> The
* implementation logic for cleaning up a detached delegate subscription.
* E.g. detach any DOM delegate subscriptions added in
* <code>delegate</code>.</dd>
*
* <dt><code>publishConfig</code></dt>
* <dd>(Object) The configuration object that will be used to instantiate
* the underlying CustomEvent. See Notifier's <code>fire</code> method
* for details.</dd>
*
* <dt><code>processArgs</code></dt
* <dd>
* <p><code>function (argArray, fromDelegate)</code> Optional method
* to extract any additional arguments from the subscription
* signature. Using this allows <code>on</code> or
* <code>delegate</code> signatures like
* <code>node.on("hover", overCallback,
* outCallback)</code>.</p>
* <p>When processing an atypical argument signature, make sure the
* args array is returned to the normal signature before returning
* from the function. For example, in the "hover" example
* above, the <code>outCallback</code> needs to be <code>splice</code>d
* out of the array. The expected signature of the args array for
* <code>on()</code> subscriptions is:</p>
* <pre>
* <code>[type, callback, target, contextOverride, argN...]</code>
* </pre>
* <p>And for <code>delegate()</code>:</p>
* <pre>
* <code>[type, callback, target, filter, contextOverride, argN...]</code>
* </pre>
* <p>where <code>target</code> is the node the event is being
* subscribed for. You can see these signatures documented for
* <code>Y.on()</code> and <code>Y.delegate()</code> respectively.</p>
* <p>Whatever gets returned from the function will be stored on the
* <code>subscription</code> object under
* <code>subscription._extra</code>.</p></dd>
* <dt><code>subMatch</code></dt>
* <dd>
* <p><code>function (sub, args)</code> Compares a set of
* subscription arguments against a Subscription object to determine
* if they match. The default implementation compares the callback
* function against the second argument passed to
* <code>Y.on(...)</code> or <code>node.detach(...)</code> etc.</p>
* </dd>
* </dl>
*
* @method define
* @param type {String} the name of the event
* @param config {Object} the prototype definition for the new event (see above)
* @param force {Boolean} override an existing event (use with caution)
* @return {SyntheticEvent} the subclass implementation instance created to
* handle event subscriptions of this type
* @static
* @for Event
* @since 3.1.0
* @in event-synthetic
*/
Y.Event.define = function (type, config, force) {
var eventDef, Impl, synth;
if (type && type.type) {
eventDef = type;
force = config;
} else if (config) {
eventDef = Y.merge({ type: type }, config);
}
if (eventDef) {
if (force || !Y.Node.DOM_EVENTS[eventDef.type]) {
Impl = function () {
SyntheticEvent.apply(this, arguments);
};
Y.extend(Impl, SyntheticEvent, eventDef);
synth = new Impl();
type = synth.type;
Y.Node.DOM_EVENTS[type] = Y.Env.evt.plugins[type] = {
eventDef: synth,
on: function () {
return synth._on(toArray(arguments));
},
delegate: function () {
return synth._on(toArray(arguments), true);
},
detach: function () {
return synth._detach(toArray(arguments));
}
};
}
} else if (isString(type) || isArray(type)) {
Y.Array.each(toArray(type), function (t) {
Y.Node.DOM_EVENTS[t] = 1;
});
}
return synth;
};
}, '3.7.3', {"requires": ["node-base", "event-custom-complex"]});
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = (function() {
// Changing the structure of this test, so that it doesn't use inline JS in HTML,
// which throws an exception in Win8 packaged apps, due to additional security restrictions:
// http://msdn.microsoft.com/en-us/library/windows/apps/hh465380.aspx#differences
var p = Y.config.doc.createElement("p"),
listener;
p.setAttribute("onbeforeactivate", ";");
listener = p.onbeforeactivate;
// listener is a function in IE8+.
// listener is a string in IE6,7 (unfortunate, but that's not going to change. Otherwise we could have just checked for function).
// listener is a function in IE10, in a Win8 App environment (no exception running the test).
// listener is undefined in Webkit/Gecko.
// listener is a function in Webkit/Gecko if it's a supported event (e.g. onclick).
return (listener !== undefined);
}());
function define(type, proxy, directEvent) {
var nodeDataKey = '_' + type + 'Notifiers';
Y.Event.define(type, {
_useActivate : useActivate,
_attach: function (el, notifier, delegate) {
if (Y.DOM.isWindow(el)) {
return Event._attach([type, function (e) {
notifier.fire(e);
}, el]);
} else {
return Event._attach(
[proxy, this._proxy, el, this, notifier, delegate],
{ capture: true });
}
},
_proxy: function (e, notifier, delegate) {
var target = e.target,
currentTarget = e.currentTarget,
notifiers = target.getData(nodeDataKey),
yuid = Y.stamp(currentTarget._node),
defer = (useActivate || target !== currentTarget),
directSub;
notifier.currentTarget = (delegate) ? target : currentTarget;
notifier.container = (delegate) ? currentTarget : null;
// Maintain a list to handle subscriptions from nested
// containers div#a>div#b>input #a.on(focus..) #b.on(focus..),
// use one focus or blur subscription that fires notifiers from
// #b then #a to emulate bubble sequence.
if (!notifiers) {
notifiers = {};
target.setData(nodeDataKey, notifiers);
// only subscribe to the element's focus if the target is
// not the current target (
if (defer) {
directSub = Event._attach(
[directEvent, this._notify, target._node]).sub;
directSub.once = true;
}
} else {
// In old IE, defer is always true. In capture-phase browsers,
// The delegate subscriptions will be encountered first, which
// will establish the notifiers data and direct subscription
// on the node. If there is also a direct subscription to the
// node's focus/blur, it should not call _notify because the
// direct subscription from the delegate sub(s) exists, which
// will call _notify. So this avoids _notify being called
// twice, unnecessarily.
defer = true;
}
if (!notifiers[yuid]) {
notifiers[yuid] = [];
}
notifiers[yuid].push(notifier);
if (!defer) {
this._notify(e);
}
},
_notify: function (e, container) {
var currentTarget = e.currentTarget,
notifierData = currentTarget.getData(nodeDataKey),
axisNodes = currentTarget.ancestors(),
doc = currentTarget.get('ownerDocument'),
delegates = [],
// Used to escape loops when there are no more
// notifiers to consider
count = notifierData ?
Y.Object.keys(notifierData).length :
0,
target, notifiers, notifier, yuid, match, tmp, i, len, sub, ret;
// clear the notifications list (mainly for delegation)
currentTarget.clearData(nodeDataKey);
// Order the delegate subs by their placement in the parent axis
axisNodes.push(currentTarget);
// document.get('ownerDocument') returns null
// which we'll use to prevent having duplicate Nodes in the list
if (doc) {
axisNodes.unshift(doc);
}
// ancestors() returns the Nodes from top to bottom
axisNodes._nodes.reverse();
if (count) {
// Store the count for step 2
tmp = count;
axisNodes.some(function (node) {
var yuid = Y.stamp(node),
notifiers = notifierData[yuid],
i, len;
if (notifiers) {
count--;
for (i = 0, len = notifiers.length; i < len; ++i) {
if (notifiers[i].handle.sub.filter) {
delegates.push(notifiers[i]);
}
}
}
return !count;
});
count = tmp;
}
// Walk up the parent axis, notifying direct subscriptions and
// testing delegate filters.
while (count && (target = axisNodes.shift())) {
yuid = Y.stamp(target);
notifiers = notifierData[yuid];
if (notifiers) {
for (i = 0, len = notifiers.length; i < len; ++i) {
notifier = notifiers[i];
sub = notifier.handle.sub;
match = true;
e.currentTarget = target;
if (sub.filter) {
match = sub.filter.apply(target,
[target, e].concat(sub.args || []));
// No longer necessary to test against this
// delegate subscription for the nodes along
// the parent axis.
delegates.splice(
arrayIndex(delegates, notifier), 1);
}
if (match) {
// undefined for direct subs
e.container = notifier.container;
ret = notifier.fire(e);
}
if (ret === false || e.stopped === 2) {
break;
}
}
delete notifiers[yuid];
count--;
}
if (e.stopped !== 2) {
// delegates come after subs targeting this specific node
// because they would not normally report until they'd
// bubbled to the container node.
for (i = 0, len = delegates.length; i < len; ++i) {
notifier = delegates[i];
sub = notifier.handle.sub;
if (sub.filter.apply(target,
[target, e].concat(sub.args || []))) {
e.container = notifier.container;
e.currentTarget = target;
ret = notifier.fire(e);
}
if (ret === false || e.stopped === 2) {
break;
}
}
}
if (e.stopped) {
break;
}
}
},
on: function (node, sub, notifier) {
sub.handle = this._attach(node._node, notifier);
},
detach: function (node, sub) {
sub.handle.detach();
},
delegate: function (node, sub, notifier, filter) {
if (isString(filter)) {
sub.filter = function (target) {
return Y.Selector.test(target._node, filter,
node === target ? null : node._node);
};
}
sub.handle = this._attach(node._node, notifier, true);
},
detachDelegate: function (node, sub) {
sub.handle.detach();
}
}, true);
}
// For IE, we need to defer to focusin rather than focus because
// `el.focus(); doSomething();` executes el.onbeforeactivate, el.onactivate,
// el.onfocusin, doSomething, then el.onfocus. All others support capture
// phase focus, which executes before doSomething. To guarantee consistent
// behavior for this use case, IE's direct subscriptions are made against
// focusin so subscribers will be notified before js following el.focus() is
// executed.
if (useActivate) {
// name capture phase direct subscription
define("focus", "beforeactivate", "focusin");
define("blur", "beforedeactivate", "focusout");
} else {
define("focus", "focus", "focus");
define("blur", "blur", "blur");
}
}, '3.7.3', {"requires": ["event-synthetic"]});
|
src/parser/hunter/survival/modules/features/SpellsAndTalents.js
|
fyruna/WoWAnalyzer
|
import React from 'react';
import StatisticsListBox from 'interface/others/StatisticsListBox';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import Analyzer from 'parser/core/Analyzer';
import SerpentSting from '../spells/SerpentSting';
import CoordinatedAssault from '../spells/CoordinatedAssault';
class SpellsAndTalents extends Analyzer {
static dependencies = {
serpentSting: SerpentSting,
coordinatedAssault: CoordinatedAssault,
};
constructor(...args) {
super(...args);
// Deactivate this module if none of the underlying modules are active.
this.active = Object.keys(this.constructor.dependencies)
.map(key => this[key])
.some(dependency => dependency.active);
}
statistic() {
return (
<StatisticsListBox
position={STATISTIC_ORDER.CORE(12)}
title="Spells and Talents"
tooltip="This provides an overview of the damage contributions of various spells and talents. This isn't meant as a way to 1:1 evaluate talents, as some talents bring other strengths to the table than pure damage."
>
{this.serpentSting.active && this.serpentSting.subStatistic()}
{this.coordinatedAssault.active && this.coordinatedAssault.subStatistic()}
</StatisticsListBox>
);
}
}
export default SpellsAndTalents;
|
src/components/sales.js
|
AdinoyiSadiq/back-office-tool
|
import React from 'react';
import Sale from './sale';
class Sales extends React.Component {
render() {
return (
<div className="content container">
<div className="row">
<section className="col-md-12 order-data">
<header>SALES</header>
<div className="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
{
Object.keys(this.props.sales)
.map(key => <Sale key={key}
index={key}
details={this.props.sales[key]}
carpets={this.props.carpets}
juice={this.props.juice}/>)
}
</div>
</section>
</div>
</div>
);
}
}
export default Sales;
|
js/FooTable/demos/js/jquery-1.9.1.min.js
|
beppenapo/rmv
|
/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return new b.fn.init(e,t,r)},x=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=/\S+/g,T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^[\],:{}\s]*$/,E=/(?:^|:|,)(?:\s*\[)+/g,S=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,A=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,j=/^-ms-/,D=/-([\da-z])/gi,L=function(e,t){return t.toUpperCase()},H=function(e){(o.addEventListener||"load"===e.type||"complete"===o.readyState)&&(q(),b.ready())},q=function(){o.addEventListener?(o.removeEventListener("DOMContentLoaded",H,!1),e.removeEventListener("load",H,!1)):(o.detachEvent("onreadystatechange",H),e.detachEvent("onload",H))};b.fn=b.prototype={jquery:p,constructor:b,init:function(e,n,r){var i,a;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 b?n[0]:n,b.merge(this,b.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:o,!0)),C.test(i[1])&&b.isPlainObject(n))for(i in n)b.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(a=o.getElementById(i[2]),a&&a.parentNode){if(a.id!==i[2])return r.find(e);this.length=1,this[0]=a}return this.context=o,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):b.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),b.makeArray(e,this))},selector:"",length:0,size:function(){return this.length},toArray:function(){return h.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=b.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return b.each(this,e,t)},ready:function(e){return b.ready.promise().done(e),this},slice:function(){return this.pushStack(h.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(b.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:d,sort:[].sort,splice:[].splice},b.fn.init.prototype=b.fn,b.extend=b.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},u=2),"object"==typeof s||b.isFunction(s)||(s={}),l===u&&(s=this,--u);l>u;u++)if(null!=(o=arguments[u]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(b.isPlainObject(r)||(n=b.isArray(r)))?(n?(n=!1,a=e&&b.isArray(e)?e:[]):a=e&&b.isPlainObject(e)?e:{},s[i]=b.extend(c,a,r)):r!==t&&(s[i]=r));return s},b.extend({noConflict:function(t){return e.$===b&&(e.$=u),t&&e.jQuery===b&&(e.jQuery=s),b},isReady:!1,readyWait:1,holdReady:function(e){e?b.readyWait++:b.ready(!0)},ready:function(e){if(e===!0?!--b.readyWait:!b.isReady){if(!o.body)return setTimeout(b.ready);b.isReady=!0,e!==!0&&--b.readyWait>0||(n.resolveWith(o,[b]),b.fn.trigger&&b(o).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===b.type(e)},isArray:Array.isArray||function(e){return"array"===b.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?l[m.call(e)]||"object":typeof e},isPlainObject:function(e){if(!e||"object"!==b.type(e)||e.nodeType||b.isWindow(e))return!1;try{if(e.constructor&&!y.call(e,"constructor")&&!y.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||y.call(e,r)},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||o;var r=C.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=b.buildFragment([e],t,i),i&&b(i).remove(),b.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=b.trim(n),n&&k.test(n.replace(S,"@").replace(A,"]").replace(E,"")))?Function("return "+n)():(b.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||b.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&b.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(j,"ms-").replace(D,L)},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:v&&!v.call("\ufeff\u00a0")?function(e){return null==e?"":v.call(e)}:function(e){return null==e?"":(e+"").replace(T,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?b.merge(n,"string"==typeof e?[e]:e):d.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(g)return g.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 f.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),b.isFunction(e)?(r=h.call(arguments,2),i=function(){return e.apply(n||this,r.concat(h.call(arguments)))},i.guid=e.guid=e.guid||b.guid++,i):t},access:function(e,n,r,i,o,a,s){var u=0,l=e.length,c=null==r;if("object"===b.type(r)){o=!0;for(u in r)b.access(e,n,u,r[u],!0,a,s)}else if(i!==t&&(o=!0,b.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(b(e),n)})),n))for(;l>u;u++)n(e[u],r,s?i:i.call(e[u],u,n(e[u],r)));return o?e:c?n.call(e):l?n(e[0],r):a},now:function(){return(new Date).getTime()}}),b.ready.promise=function(t){if(!n)if(n=b.Deferred(),"complete"===o.readyState)setTimeout(b.ready);else if(o.addEventListener)o.addEventListener("DOMContentLoaded",H,!1),e.addEventListener("load",H,!1);else{o.attachEvent("onreadystatechange",H),e.attachEvent("onload",H);var r=!1;try{r=null==e.frameElement&&o.documentElement}catch(i){}r&&r.doScroll&&function a(){if(!b.isReady){try{r.doScroll("left")}catch(e){return setTimeout(a,50)}q(),b.ready()}}()}return n.promise(t)},b.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=b.type(e);return b.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=b(o);var _={};function F(e){var t=_[e]={};return b.each(e.match(w)||[],function(e,n){t[n]=!0}),t}b.Callbacks=function(e){e="string"==typeof e?_[e]||F(e):b.extend({},e);var n,r,i,o,a,s,u=[],l=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=u.length,n=!0;u&&o>a;a++)if(u[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,u&&(l?l.length&&c(l.shift()):r?u=[]:p.disable())},p={add:function(){if(u){var t=u.length;(function i(t){b.each(t,function(t,n){var r=b.type(n);"function"===r?e.unique&&p.has(n)||u.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=u.length:r&&(s=t,c(r))}return this},remove:function(){return u&&b.each(arguments,function(e,t){var r;while((r=b.inArray(t,u,r))>-1)u.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?b.inArray(e,u)>-1:!(!u||!u.length)},empty:function(){return u=[],this},disable:function(){return u=l=r=t,this},disabled:function(){return!u},lock:function(){return l=t,r||p.disable(),this},locked:function(){return!l},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],!u||i&&!l||(n?l.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},b.extend({Deferred:function(e){var t=[["resolve","done",b.Callbacks("once memory"),"resolved"],["reject","fail",b.Callbacks("once memory"),"rejected"],["notify","progress",b.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return b.Deferred(function(n){b.each(t,function(t,o){var a=o[0],s=b.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&b.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?b.extend(e,r):r}},i={};return r.pipe=r.then,b.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=h.call(arguments),r=n.length,i=1!==r||e&&b.isFunction(e.promise)?r:0,o=1===i?e:b.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?h.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,u,l;if(r>1)for(s=Array(r),u=Array(r),l=Array(r);r>t;t++)n[t]&&b.isFunction(n[t].promise)?n[t].promise().done(a(t,l,n)).fail(o.reject).progress(a(t,u,s)):--i;return i||o.resolveWith(l,n),o.promise()}}),b.support=function(){var t,n,r,a,s,u,l,c,p,f,d=o.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],!n||!r||!n.length)return{};s=o.createElement("select"),l=s.appendChild(o.createElement("option")),a=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={getSetAttribute:"t"!==d.className,leadingWhitespace:3===d.firstChild.nodeType,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:"/a"===r.getAttribute("href"),opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:!!a.value,optSelected:l.selected,enctype:!!o.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==o.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===o.compatMode,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},a.checked=!0,t.noCloneChecked=a.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!l.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}a=o.createElement("input"),a.setAttribute("value",""),t.input=""===a.getAttribute("value"),a.value="t",a.setAttribute("type","radio"),t.radioValue="t"===a.value,a.setAttribute("checked","t"),a.setAttribute("name","t"),u=o.createDocumentFragment(),u.appendChild(a),t.appendChecked=a.checked,t.checkClone=u.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;return d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip,b(function(){var n,r,a,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",u=o.getElementsByTagName("body")[0];u&&(n=o.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",u.appendChild(n).appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",a=d.getElementsByTagName("td"),a[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===a[0].offsetHeight,a[0].style.display="",a[1].style.display="none",t.reliableHiddenOffsets=p&&0===a[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%;",t.boxSizing=4===d.offsetWidth,t.doesNotIncludeMarginInBodyOffset=1!==u.offsetTop,e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(o.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&&(u.style.zoom=1)),u.removeChild(n),n=d=a=r=null)}),n=s=u=l=r=a=null,t}();var O=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,B=/([A-Z])/g;function P(e,n,r,i){if(b.acceptData(e)){var o,a,s=b.expando,u="string"==typeof n,l=e.nodeType,p=l?b.cache:e,f=l?e[s]:e[s]&&s;if(f&&p[f]&&(i||p[f].data)||!u||r!==t)return f||(l?e[s]=f=c.pop()||b.guid++:f=s),p[f]||(p[f]={},l||(p[f].toJSON=b.noop)),("object"==typeof n||"function"==typeof n)&&(i?p[f]=b.extend(p[f],n):p[f].data=b.extend(p[f].data,n)),o=p[f],i||(o.data||(o.data={}),o=o.data),r!==t&&(o[b.camelCase(n)]=r),u?(a=o[n],null==a&&(a=o[b.camelCase(n)])):a=o,a}}function R(e,t,n){if(b.acceptData(e)){var r,i,o,a=e.nodeType,s=a?b.cache:e,u=a?e[b.expando]:b.expando;if(s[u]){if(t&&(o=n?s[u]:s[u].data)){b.isArray(t)?t=t.concat(b.map(t,b.camelCase)):t in o?t=[t]:(t=b.camelCase(t),t=t in o?[t]:t.split(" "));for(r=0,i=t.length;i>r;r++)delete o[t[r]];if(!(n?$:b.isEmptyObject)(o))return}(n||(delete s[u].data,$(s[u])))&&(a?b.cleanData([e],!0):b.support.deleteExpando||s!=s.window?delete s[u]:s[u]=null)}}}b.extend({cache:{},expando:"jQuery"+(p+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?b.cache[e[b.expando]]:e[b.expando],!!e&&!$(e)},data:function(e,t,n){return P(e,t,n)},removeData:function(e,t){return R(e,t)},_data:function(e,t,n){return P(e,t,n,!0)},_removeData:function(e,t){return R(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&b.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),b.fn.extend({data:function(e,n){var r,i,o=this[0],a=0,s=null;if(e===t){if(this.length&&(s=b.data(o),1===o.nodeType&&!b._data(o,"parsedAttrs"))){for(r=o.attributes;r.length>a;a++)i=r[a].name,i.indexOf("data-")||(i=b.camelCase(i.slice(5)),W(o,i,s[i]));b._data(o,"parsedAttrs",!0)}return s}return"object"==typeof e?this.each(function(){b.data(this,e)}):b.access(this,function(n){return n===t?o?W(o,e,b.data(o,e)):null:(this.each(function(){b.data(this,e,n)}),t)},null,n,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){b.removeData(this,e)})}});function W(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(B,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:O.test(r)?b.parseJSON(r):r}catch(o){}b.data(e,n,r)}else r=t}return r}function $(e){var t;for(t in e)if(("data"!==t||!b.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}b.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=b._data(e,n),r&&(!i||b.isArray(r)?i=b._data(e,n,b.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=b.queue(e,t),r=n.length,i=n.shift(),o=b._queueHooks(e,t),a=function(){b.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),o.cur=i,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 b._data(e,n)||b._data(e,n,{empty:b.Callbacks("once memory").add(function(){b._removeData(e,t+"queue"),b._removeData(e,n)})})}}),b.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?b.queue(this[0],e):n===t?this:this.each(function(){var t=b.queue(this,e,n);b._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&b.dequeue(this,e)})},dequeue:function(e){return this.each(function(){b.dequeue(this,e)})},delay:function(e,t){return e=b.fx?b.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=b.Deferred(),a=this,s=this.length,u=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=b._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(u));return u(),o.promise(n)}});var I,z,X=/[\t\r\n]/g,U=/\r/g,V=/^(?:input|select|textarea|button|object)$/i,Y=/^(?:a|area)$/i,J=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,G=/^(?:checked|selected)$/i,Q=b.support.getSetAttribute,K=b.support.input;b.fn.extend({attr:function(e,t){return b.access(this,b.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e)})},prop:function(e,t){return b.access(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return e=b.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,u="string"==typeof e&&e;if(b.isFunction(e))return this.each(function(t){b(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(X," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=b.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,u=0===arguments.length||"string"==typeof e&&e;if(b.isFunction(e))return this.each(function(t){b(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(X," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?b.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e,r="boolean"==typeof t;return b.isFunction(e)?this.each(function(n){b(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var o,a=0,s=b(this),u=t,l=e.match(w)||[];while(o=l[a++])u=r?u:!s.hasClass(o),s[u?"addClass":"removeClass"](o)}else(n===i||"boolean"===n)&&(this.className&&b._data(this,"__className__",this.className),this.className=this.className||e===!1?"":b._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(X," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=b.isFunction(e),this.each(function(n){var o,a=b(this);1===this.nodeType&&(o=i?e.call(this,n,a.val()):e,null==o?o="":"number"==typeof o?o+="":b.isArray(o)&&(o=b.map(o,function(e){return null==e?"":e+""})),r=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=b.valHooks[o.type]||b.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(U,""):null==n?"":n)}}}),b.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,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,u=0>i?s:o?i:0;for(;s>u;u++)if(n=r[u],!(!n.selected&&u!==i||(b.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&b.nodeName(n.parentNode,"optgroup"))){if(t=b(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n=b.makeArray(t);return b(e).find("option").each(function(){this.selected=b.inArray(b(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attr:function(e,n,r){var o,a,s,u=e.nodeType;if(e&&3!==u&&8!==u&&2!==u)return typeof e.getAttribute===i?b.prop(e,n,r):(a=1!==u||!b.isXMLDoc(e),a&&(n=n.toLowerCase(),o=b.attrHooks[n]||(J.test(n)?z:I)),r===t?o&&a&&"get"in o&&null!==(s=o.get(e,n))?s:(typeof e.getAttribute!==i&&(s=e.getAttribute(n)),null==s?t:s):null!==r?o&&a&&"set"in o&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r):(b.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(w);if(o&&1===e.nodeType)while(n=o[i++])r=b.propFix[n]||n,J.test(n)?!Q&&G.test(n)?e[b.camelCase("default-"+n)]=e[r]=!1:e[r]=!1:b.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!b.support.radioValue&&"radio"===t&&b.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),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,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!b.isXMLDoc(e),a&&(n=b.propFix[n]||n,o=b.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 n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):V.test(e.nodeName)||Y.test(e.nodeName)&&e.href?0:t}}}}),z={get:function(e,n){var r=b.prop(e,n),i="boolean"==typeof r&&e.getAttribute(n),o="boolean"==typeof r?K&&Q?null!=i:G.test(n)?e[b.camelCase("default-"+n)]:!!i:e.getAttributeNode(n);return o&&o.value!==!1?n.toLowerCase():t},set:function(e,t,n){return t===!1?b.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&b.propFix[n]||n,n):e[b.camelCase("default-"+n)]=e[n]=!0,n}},K&&Q||(b.attrHooks.value={get:function(e,n){var r=e.getAttributeNode(n);return b.nodeName(e,"input")?e.defaultValue:r&&r.specified?r.value:t},set:function(e,n,r){return b.nodeName(e,"input")?(e.defaultValue=n,t):I&&I.set(e,n,r)}}),Q||(I=b.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&("id"===n||"name"===n||"coords"===n?""!==r.value:r.specified)?r.value:t},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}},b.attrHooks.contenteditable={get:I.get,set:function(e,t,n){I.set(e,""===t?!1:t,n)}},b.each(["width","height"],function(e,n){b.attrHooks[n]=b.extend(b.attrHooks[n],{set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}})})),b.support.hrefNormalized||(b.each(["href","src","width","height"],function(e,n){b.attrHooks[n]=b.extend(b.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return null==r?t:r}})}),b.each(["href","src"],function(e,t){b.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),b.support.style||(b.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),b.support.optSelected||(b.propHooks.selected=b.extend(b.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),b.support.enctype||(b.propFix.enctype="encoding"),b.support.checkOn||b.each(["radio","checkbox"],function(){b.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value}}}),b.each(["radio","checkbox"],function(){b.valHooks[this]=b.extend(b.valHooks[this],{set:function(e,n){return b.isArray(n)?e.checked=b.inArray(b(e).val(),n)>=0:t}})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}b.event={global:{},add:function(e,n,r,o,a){var s,u,l,c,p,f,d,h,g,m,y,v=b._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=b.guid++),(u=v.events)||(u=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof b===i||e&&b.event.triggered===e.type?t:b.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(w)||[""],l=n.length;while(l--)s=rt.exec(n[l])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),p=b.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=b.event.special[g]||{},d=b.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&&b.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=u[g])||(h=u[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),b.event.global[g]=!0;e=null}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,p,f,d,h,g,m=b.hasData(e)&&b._data(e);if(m&&(c=m.events)){t=(t||"").match(w)||[""],l=t.length;while(l--)if(s=rt.exec(t[l])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=b.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=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));u&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||b.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)b.event.remove(e,d+t[l],n,r,!0);b.isEmptyObject(c)&&(delete m.handle,b._removeData(e,"events"))}},trigger:function(n,r,i,a){var s,u,l,c,p,f,d,h=[i||o],g=y.call(n,"type")?n.type:n,m=y.call(n,"namespace")?n.namespace.split("."):[];if(l=f=i=i||o,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+b.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),u=0>g.indexOf(":")&&"on"+g,n=n[b.expando]?n:new b.Event(g,"object"==typeof n&&n),n.isTrigger=!0,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]:b.makeArray(r,[n]),p=b.event.special[g]||{},a||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!a&&!p.noBubble&&!b.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(l=l.parentNode);l;l=l.parentNode)h.push(l),f=l;f===(i.ownerDocument||o)&&h.push(f.defaultView||f.parentWindow||e)}d=0;while((l=h[d++])&&!n.isPropagationStopped())n.type=d>1?c:p.bindType||g,s=(b._data(l,"events")||{})[n.type]&&b._data(l,"handle"),s&&s.apply(l,r),s=u&&l[u],s&&b.acceptData(l)&&s.apply&&s.apply(l,r)===!1&&n.preventDefault();if(n.type=g,!(a||n.isDefaultPrevented()||p._default&&p._default.apply(i.ownerDocument,r)!==!1||"click"===g&&b.nodeName(i,"a")||!b.acceptData(i)||!u||!i[g]||b.isWindow(i))){f=i[u],f&&(i[u]=null),b.event.triggered=g;try{i[g]()}catch(v){}b.event.triggered=t,f&&(i[u]=f)}return n.result}},dispatch:function(e){e=b.event.fix(e);var n,r,i,o,a,s=[],u=h.call(arguments),l=(b._data(this,"events")||{})[e.type]||[],c=b.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=b.event.handlers.call(this,e,l),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=((b.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,u),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=[],u=n.delegateCount,l=e.target;if(u&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){for(o=[],a=0;u>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?b(r,this).index(l)>=0:b.find(r,this,null,[l]).length),o[r]&&o.push(i);o.length&&s.push({elem:l,handlers:o})}return n.length>u&&s.push({elem:this,handlers:n.slice(u)}),s},fix:function(e){if(e[b.expando])return e;var t,n,r,i=e.type,a=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 b.Event(a),t=r.length;while(t--)n=r[t],e[n]=a[n];return e.target||(e.target=a.srcElement||o),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,a):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,a,s=n.button,u=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||o,a=i.documentElement,r=i.body,e.pageX=n.clientX+(a&&a.scrollLeft||r&&r.scrollLeft||0)-(a&&a.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(a&&a.scrollTop||r&&r.scrollTop||0)-(a&&a.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&u&&(e.relatedTarget=u===e.target?n.toElement:u),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},click:{trigger:function(){return b.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t}},focus:{trigger:function(){if(this!==o.activeElement&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===o.activeElement&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=b.extend(new b.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?b.event.trigger(i,null,t):b.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},b.removeEvent=o.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))},b.Event=function(e,n){return this instanceof b.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&&b.extend(this,n),this.timeStamp=e&&e.timeStamp||b.now(),this[b.expando]=!0,t):new b.Event(e,n)},b.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()}},b.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;
return(!i||i!==r&&!b.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),b.support.submitBubbles||(b.event.special.submit={setup:function(){return b.nodeName(this,"form")?!1:(b.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=b.nodeName(n,"input")||b.nodeName(n,"button")?n.form:t;r&&!b._data(r,"submitBubbles")&&(b.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),b._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&b.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return b.nodeName(this,"form")?!1:(b.event.remove(this,"._submit"),t)}}),b.support.changeBubbles||(b.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(b.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),b.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),b.event.simulate("change",this,e,!0)})),!1):(b.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!b._data(t,"changeBubbles")&&(b.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||b.event.simulate("change",this.parentNode,e,!0)}),b._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 b.event.remove(this,"._change"),!Z.test(this.nodeName)}}),b.support.focusinBubbles||b.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){b.event.simulate(t,e.target,b.event.fix(e),!0)};b.event.special[t]={setup:function(){0===n++&&o.addEventListener(e,r,!0)},teardown:function(){0===--n&&o.removeEventListener(e,r,!0)}}}),b.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 b().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=b.guid++)),this.each(function(){b.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,b(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(){b.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)},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)},trigger:function(e,t){return this.each(function(){b.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?b.event.trigger(e,n,r,!0):t}}),function(e,t){var n,r,i,o,a,s,u,l,c,p,f,d,h,g,m,y,v,x="sizzle"+-new Date,w=e.document,T={},N=0,C=0,k=it(),E=it(),S=it(),A=typeof t,j=1<<31,D=[],L=D.pop,H=D.push,q=D.slice,M=D.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},_="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=F.replace("w","w#"),B="([*^$|!~]?=)",P="\\["+_+"*("+F+")"+_+"*(?:"+B+_+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+O+")|)|)"+_+"*\\]",R=":("+F+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+P.replace(3,8)+")*)|.*)\\)|)",W=RegExp("^"+_+"+|((?:^|[^\\\\])(?:\\\\.)*)"+_+"+$","g"),$=RegExp("^"+_+"*,"+_+"*"),I=RegExp("^"+_+"*([\\x20\\t\\r\\n\\f>+~])"+_+"*"),z=RegExp(R),X=RegExp("^"+O+"$"),U={ID:RegExp("^#("+F+")"),CLASS:RegExp("^\\.("+F+")"),NAME:RegExp("^\\[name=['\"]?("+F+")['\"]?\\]"),TAG:RegExp("^("+F.replace("w","w*")+")"),ATTR:RegExp("^"+P),PSEUDO:RegExp("^"+R),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+_+"*(even|odd|(([+-]|)(\\d*)n|)"+_+"*(?:([+-]|)"+_+"*(\\d+)|))"+_+"*\\)|)","i"),needsContext:RegExp("^"+_+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+_+"*((?:-\\d)?\\d*)"+_+"*\\)|)(?=[^-]|$)","i")},V=/[\x20\t\r\n\f]*[+~]/,Y=/^[^{]+\{\s*\[native code/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,K=/'|\\/g,Z=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,et=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,tt=function(e,t){var n="0x"+t-65536;return n!==n?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(55296|n>>10,56320|1023&n)};try{q.call(w.documentElement.childNodes,0)[0].nodeType}catch(nt){q=function(e){var t,n=[];while(t=this[e++])n.push(t);return n}}function rt(e){return Y.test(e+"")}function it(){var e,t=[];return e=function(n,r){return t.push(n+=" ")>i.cacheLength&&delete e[t.shift()],e[n]=r}}function ot(e){return e[x]=!0,e}function at(e){var t=p.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}}function st(e,t,n,r){var i,o,a,s,u,l,f,g,m,v;if((t?t.ownerDocument||t:w)!==p&&c(t),t=t||p,n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(!d&&!r){if(i=J.exec(e))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&y(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return H.apply(n,q.call(t.getElementsByTagName(e),0)),n;if((a=i[3])&&T.getByClassName&&t.getElementsByClassName)return H.apply(n,q.call(t.getElementsByClassName(a),0)),n}if(T.qsa&&!h.test(e)){if(f=!0,g=x,m=t,v=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){l=ft(e),(f=t.getAttribute("id"))?g=f.replace(K,"\\$&"):t.setAttribute("id",g),g="[id='"+g+"'] ",u=l.length;while(u--)l[u]=g+dt(l[u]);m=V.test(e)&&t.parentNode||t,v=l.join(",")}if(v)try{return H.apply(n,q.call(m.querySelectorAll(v),0)),n}catch(b){}finally{f||t.removeAttribute("id")}}}return wt(e.replace(W,"$1"),t,n,r)}a=st.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},c=st.setDocument=function(e){var n=e?e.ownerDocument||e:w;return n!==p&&9===n.nodeType&&n.documentElement?(p=n,f=n.documentElement,d=a(n),T.tagNameNoComments=at(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),T.attributes=at(function(e){e.innerHTML="<select></select>";var t=typeof e.lastChild.getAttribute("multiple");return"boolean"!==t&&"string"!==t}),T.getByClassName=at(function(e){return e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",e.getElementsByClassName&&e.getElementsByClassName("e").length?(e.lastChild.className="e",2===e.getElementsByClassName("e").length):!1}),T.getByName=at(function(e){e.id=x+0,e.innerHTML="<a name='"+x+"'></a><div name='"+x+"'></div>",f.insertBefore(e,f.firstChild);var t=n.getElementsByName&&n.getElementsByName(x).length===2+n.getElementsByName(x+0).length;return T.getIdNotName=!n.getElementById(x),f.removeChild(e),t}),i.attrHandle=at(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!==A&&"#"===e.firstChild.getAttribute("href")})?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},T.getIdNotName?(i.find.ID=function(e,t){if(typeof t.getElementById!==A&&!d){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},i.filter.ID=function(e){var t=e.replace(et,tt);return function(e){return e.getAttribute("id")===t}}):(i.find.ID=function(e,n){if(typeof n.getElementById!==A&&!d){var r=n.getElementById(e);return r?r.id===e||typeof r.getAttributeNode!==A&&r.getAttributeNode("id").value===e?[r]:t:[]}},i.filter.ID=function(e){var t=e.replace(et,tt);return function(e){var n=typeof e.getAttributeNode!==A&&e.getAttributeNode("id");return n&&n.value===t}}),i.find.TAG=T.tagNameNoComments?function(e,n){return typeof n.getElementsByTagName!==A?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},i.find.NAME=T.getByName&&function(e,n){return typeof n.getElementsByName!==A?n.getElementsByName(name):t},i.find.CLASS=T.getByClassName&&function(e,n){return typeof n.getElementsByClassName===A||d?t:n.getElementsByClassName(e)},g=[],h=[":focus"],(T.qsa=rt(n.querySelectorAll))&&(at(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+_+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||h.push(":checked")}),at(function(e){e.innerHTML="<input type='hidden' i=''/>",e.querySelectorAll("[i^='']").length&&h.push("[*^$]="+_+"*(?:\"\"|'')"),e.querySelectorAll(":enabled").length||h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")})),(T.matchesSelector=rt(m=f.matchesSelector||f.mozMatchesSelector||f.webkitMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&at(function(e){T.disconnectedMatch=m.call(e,"div"),m.call(e,"[s!='']:x"),g.push("!=",R)}),h=RegExp(h.join("|")),g=RegExp(g.join("|")),y=rt(f.contains)||f.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},v=f.compareDocumentPosition?function(e,t){var r;return e===t?(u=!0,0):(r=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t))?1&r||e.parentNode&&11===e.parentNode.nodeType?e===n||y(w,e)?-1:t===n||y(w,t)?1:0:4&r?-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 u=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:0;if(o===a)return ut(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?ut(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},u=!1,[0,0].sort(v),T.detectDuplicates=u,p):p},st.matches=function(e,t){return st(e,null,null,t)},st.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&c(e),t=t.replace(Z,"='$1']"),!(!T.matchesSelector||d||g&&g.test(t)||h.test(t)))try{var n=m.call(e,t);if(n||T.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(r){}return st(t,p,null,[e]).length>0},st.contains=function(e,t){return(e.ownerDocument||e)!==p&&c(e),y(e,t)},st.attr=function(e,t){var n;return(e.ownerDocument||e)!==p&&c(e),d||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):d||T.attributes?e.getAttribute(t):((n=e.getAttributeNode(t))||e.getAttribute(t))&&e[t]===!0?t:n&&n.specified?n.value:null},st.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},st.uniqueSort=function(e){var t,n=[],r=1,i=0;if(u=!T.detectDuplicates,e.sort(v),u){for(;t=e[r];r++)t===e[r-1]&&(i=n.push(r));while(i--)e.splice(n[i],1)}return e};function ut(e,t){var n=t&&e,r=n&&(~t.sourceIndex||j)-(~e.sourceIndex||j);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function lt(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function ct(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function pt(e){return ot(function(t){return t=+t,ot(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]))})})}o=st.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+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=o(t);return n},i=st.selectors={cacheLength:50,createPseudo:ot,match:U,find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(et,tt),e[3]=(e[4]||e[5]||"").replace(et,tt),"~="===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]||st.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]&&st.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return U.CHILD.test(e[0])?null:(e[4]?e[2]=e[4]:n&&z.test(n)&&(t=ft(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){return"*"===e?function(){return!0}:(e=e.replace(et,tt).toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[e+" "];return t||(t=RegExp("(^|"+_+")"+e+"("+_+"|$)"))&&k(e,function(e){return t.test(e.className||typeof e.getAttribute!==A&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=st.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,u){var l,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!u&&!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[x]||(m[x]={}),l=c[e]||[],d=l[0]===N&&l[1],f=l[0]===N&&l[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]=[N,d,f];break}}else if(v&&(l=(t[x]||(t[x]={}))[e])&&l[0]===N)f=l[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[x]||(p[x]={}))[e]=[N,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||st.error("unsupported pseudo: "+e);return r[x]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ot(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=M.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:ot(function(e){var t=[],n=[],r=s(e.replace(W,"$1"));return r[x]?ot(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:ot(function(e){return function(t){return st(e,t).length>0}}),contains:ot(function(e){return function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:ot(function(e){return X.test(e||"")||st.error("unsupported lang: "+e),e=e.replace(et,tt).toLowerCase(),function(t){var n;do if(n=d?t.getAttribute("xml:lang")||t.getAttribute("lang"):t.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===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.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!i.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return G.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:pt(function(){return[0]}),last:pt(function(e,t){return[t-1]}),eq:pt(function(e,t,n){return[0>n?n+t:n]}),even:pt(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:pt(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:pt(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:pt(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}};for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[n]=lt(n);for(n in{submit:!0,reset:!0})i.pseudos[n]=ct(n);function ft(e,t){var n,r,o,a,s,u,l,c=E[e+" "];if(c)return t?0:c.slice(0);s=e,u=[],l=i.preFilter;while(s){(!n||(r=$.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),u.push(o=[])),n=!1,(r=I.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(W," ")}),s=s.slice(n.length));for(a in i.filter)!(r=U[a].exec(s))||l[a]&&!(r=l[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?st.error(e):E(e,u).slice(0)}function dt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function ht(e,t,n){var i=t.dir,o=n&&"parentNode"===i,a=C++;return t.first?function(t,n,r){while(t=t[i])if(1===t.nodeType||o)return e(t,n,r)}:function(t,n,s){var u,l,c,p=N+" "+a;if(s){while(t=t[i])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[i])if(1===t.nodeType||o)if(c=t[x]||(t[x]={}),(l=c[i])&&l[0]===p){if((u=l[1])===!0||u===r)return u===!0}else if(l=c[i]=[p],l[1]=e(t,n,s)||r,l[1]===!0)return!0}}function gt(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 mt(e,t,n,r,i){var o,a=[],s=0,u=e.length,l=null!=t;for(;u>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),l&&t.push(s));return a}function yt(e,t,n,r,i,o){return r&&!r[x]&&(r=yt(r)),i&&!i[x]&&(i=yt(i,o)),ot(function(o,a,s,u){var l,c,p,f=[],d=[],h=a.length,g=o||xt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:mt(g,f,e,s,u),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,u),r){l=mt(y,d),r(l,[],s,u),c=l.length;while(c--)(p=l[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){l=[],c=y.length;while(c--)(p=y[c])&&l.push(m[c]=p);i(null,y=[],l,u)}c=y.length;while(c--)(p=y[c])&&(l=i?M.call(o,p):f[c])>-1&&(o[l]=!(a[l]=p))}}else y=mt(y===a?y.splice(h,y.length):y),i?i(null,a,y,u):H.apply(a,y)})}function vt(e){var t,n,r,o=e.length,a=i.relative[e[0].type],s=a||i.relative[" "],u=a?1:0,c=ht(function(e){return e===t},s,!0),p=ht(function(e){return M.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;o>u;u++)if(n=i.relative[e[u].type])f=[ht(gt(f),n)];else{if(n=i.filter[e[u].type].apply(null,e[u].matches),n[x]){for(r=++u;o>r;r++)if(i.relative[e[r].type])break;return yt(u>1&>(f),u>1&&dt(e.slice(0,u-1)).replace(W,"$1"),n,r>u&&vt(e.slice(u,r)),o>r&&vt(e=e.slice(r)),o>r&&dt(e))}f.push(n)}return gt(f)}function bt(e,t){var n=0,o=t.length>0,a=e.length>0,s=function(s,u,c,f,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,T=l,C=s||a&&i.find.TAG("*",d&&u.parentNode||u),k=N+=null==T?1:Math.random()||.1;for(w&&(l=u!==p&&u,r=n);null!=(h=C[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,u,c)){f.push(h);break}w&&(N=k,r=++n)}o&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,o&&b!==v){g=0;while(m=t[g++])m(x,y,u,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=L.call(f));y=mt(y)}H.apply(f,y),w&&!s&&y.length>0&&v+t.length>1&&st.uniqueSort(f)}return w&&(N=k,l=T),x};return o?ot(s):s}s=st.compile=function(e,t){var n,r=[],i=[],o=S[e+" "];if(!o){t||(t=ft(e)),n=t.length;while(n--)o=vt(t[n]),o[x]?r.push(o):i.push(o);o=S(e,bt(i,r))}return o};function xt(e,t,n){var r=0,i=t.length;for(;i>r;r++)st(e,t[r],n);return n}function wt(e,t,n,r){var o,a,u,l,c,p=ft(e);if(!r&&1===p.length){if(a=p[0]=p[0].slice(0),a.length>2&&"ID"===(u=a[0]).type&&9===t.nodeType&&!d&&i.relative[a[1].type]){if(t=i.find.ID(u.matches[0].replace(et,tt),t)[0],!t)return n;e=e.slice(a.shift().value.length)}o=U.needsContext.test(e)?0:a.length;while(o--){if(u=a[o],i.relative[l=u.type])break;if((c=i.find[l])&&(r=c(u.matches[0].replace(et,tt),V.test(a[0].type)&&t.parentNode||t))){if(a.splice(o,1),e=r.length&&dt(a),!e)return H.apply(n,q.call(r,0)),n;break}}}return s(e,p)(r,t,d,n,V.test(e)),n}i.pseudos.nth=i.pseudos.eq;function Tt(){}i.filters=Tt.prototype=i.pseudos,i.setFilters=new Tt,c(),st.attr=b.attr,b.find=st,b.expr=st.selectors,b.expr[":"]=b.expr.pseudos,b.unique=st.uniqueSort,b.text=st.getText,b.isXMLDoc=st.isXML,b.contains=st.contains}(e);var at=/Until$/,st=/^(?:parents|prev(?:Until|All))/,ut=/^.[^:#\[\.,]*$/,lt=b.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};b.fn.extend({find:function(e){var t,n,r,i=this.length;if("string"!=typeof e)return r=this,this.pushStack(b(e).filter(function(){for(t=0;i>t;t++)if(b.contains(r[t],this))return!0}));for(n=[],t=0;i>t;t++)b.find(e,this[t],n);return n=this.pushStack(i>1?b.unique(n):n),n.selector=(this.selector?this.selector+" ":"")+e,n},has:function(e){var t,n=b(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(b.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e,!1))},filter:function(e){return this.pushStack(ft(this,e,!0))},is:function(e){return!!e&&("string"==typeof e?lt.test(e)?b(e,this.context).index(this[0])>=0:b.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,o=[],a=lt.test(e)||"string"!=typeof e?b(e,t||this.context):0;for(;i>r;r++){n=this[r];while(n&&n.ownerDocument&&n!==t&&11!==n.nodeType){if(a?a.index(n)>-1:b.find.matchesSelector(n,e)){o.push(n);break}n=n.parentNode}}return this.pushStack(o.length>1?b.unique(o):o)},index:function(e){return e?"string"==typeof e?b.inArray(this[0],b(e)):b.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?b(e,t):b.makeArray(e&&e.nodeType?[e]:e),r=b.merge(this.get(),n);return this.pushStack(b.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.fn.andSelf=b.fn.addBack;function pt(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}b.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(e,t,n){return b.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return b.dir(e,"nextSibling")},prevAll:function(e){return b.dir(e,"previousSibling")},nextUntil:function(e,t,n){return b.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return b.dir(e,"previousSibling",n)},siblings:function(e){return b.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return b.sibling(e.firstChild)},contents:function(e){return b.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:b.merge([],e.childNodes)}},function(e,t){b.fn[e]=function(n,r){var i=b.map(this,t,n);return at.test(e)||(r=n),r&&"string"==typeof r&&(i=b.filter(r,i)),i=this.length>1&&!ct[e]?b.unique(i):i,this.length>1&&st.test(e)&&(i=i.reverse()),this.pushStack(i)}}),b.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?b.find.matchesSelector(t[0],e)?[t[0]]:[]:b.find.matches(e,t)},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!b(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(t=t||0,b.isFunction(t))return b.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return b.grep(e,function(e){return e===t===n});if("string"==typeof t){var r=b.grep(e,function(e){return 1===e.nodeType});if(ut.test(t))return b.filter(t,r,!n);t=b.filter(t,r)}return b.grep(e,function(e){return b.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,Nt=/^(?:checkbox|radio)$/i,Ct=/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:b.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},jt=dt(o),Dt=jt.appendChild(o.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,b.fn.extend({text:function(e){return b.access(this,function(e){return e===t?b.text(this):this.empty().append((this[0]&&this[0].ownerDocument||o).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(b.isFunction(e))return this.each(function(t){b(this).wrapAll(e.call(this,t))});if(this[0]){var t=b(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 b.isFunction(e)?this.each(function(t){b(this).wrapInner(e.call(this,t))}):this.each(function(){var t=b(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=b.isFunction(e);return this.each(function(n){b(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){b.nodeName(this,"body")||b(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.insertBefore(e,this.firstChild)})},before:function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=0;for(;null!=(n=this[r]);r++)(!e||b.filter(e,[n]).length>0)&&(t||1!==n.nodeType||b.cleanData(Ot(n)),n.parentNode&&(t&&b.contains(n.ownerDocument,n)&&Mt(Ot(n,"script")),n.parentNode.removeChild(n)));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&b.cleanData(Ot(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&b.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 b.clone(this,e,t)})},html:function(e){return b.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)||!b.support.htmlSerialize&&mt.test(e)||!b.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&&(b.cleanData(Ot(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){var t=b.isFunction(e);return t||"string"==typeof e||(e=b(e).not(this).detach()),this.domManip([e],!0,function(e){var t=this.nextSibling,n=this.parentNode;n&&(b(this).remove(),n.insertBefore(e,t))})},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){e=f.apply([],e);var i,o,a,s,u,l,c=0,p=this.length,d=this,h=p-1,g=e[0],m=b.isFunction(g);if(m||!(1>=p||"string"!=typeof g||b.support.checkClone)&&Ct.test(g))return this.each(function(i){var o=d.eq(i);m&&(e[0]=g.call(this,i,n?o.html():t)),o.domManip(e,n,r)});if(p&&(l=b.buildFragment(e,this[0].ownerDocument,!1,this),i=l.firstChild,1===l.childNodes.length&&(l=i),i)){for(n=n&&b.nodeName(i,"tr"),s=b.map(Ot(l,"script"),Ht),a=s.length;p>c;c++)o=l,c!==h&&(o=b.clone(o,!0,!0),a&&b.merge(s,Ot(o,"script"))),r.call(n&&b.nodeName(this[c],"table")?Lt(this[c],"tbody"):this[c],o,c);if(a)for(u=s[s.length-1].ownerDocument,b.map(s,qt),c=0;a>c;c++)o=s[c],kt.test(o.type||"")&&!b._data(o,"globalEval")&&b.contains(u,o)&&(o.src?b.ajax({url:o.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):b.globalEval((o.text||o.textContent||o.innerHTML||"").replace(St,"")));l=i=null}return this}});function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function Ht(e){var t=e.getAttributeNode("type");return e.type=(t&&t.specified)+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Mt(e,t){var n,r=0;for(;null!=(n=e[r]);r++)b._data(n,"globalEval",!t||b._data(t[r],"globalEval"))}function _t(e,t){if(1===t.nodeType&&b.hasData(e)){var n,r,i,o=b._data(e),a=b._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++)b.event.add(t,n,s[n][r])}a.data&&(a.data=b.extend({},a.data))}}function Ft(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!b.support.noCloneEvent&&t[b.expando]){i=b._data(t);for(r in i.events)b.removeEvent(t,r,i.handle);t.removeAttribute(b.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),b.support.html5Clone&&e.innerHTML&&!b.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Nt.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)}}b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){b.fn[e]=function(e){var n,r=0,i=[],o=b(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),b(o[r])[t](n),d.apply(i,n.get());return this.pushStack(i)}});function Ot(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||b.nodeName(o,n)?s.push(o):b.merge(s,Ot(o,n));return n===t||n&&b.nodeName(e,n)?b.merge([e],s):s}function Bt(e){Nt.test(e.type)&&(e.defaultChecked=e.checked)}b.extend({clone:function(e,t,n){var r,i,o,a,s,u=b.contains(e.ownerDocument,e);if(b.support.html5Clone||b.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(b.support.noCloneEvent&&b.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||b.isXMLDoc(e)))for(r=Ot(o),s=Ot(e),a=0;null!=(i=s[a]);++a)r[a]&&Ft(i,r[a]);if(t)if(n)for(s=s||Ot(e),r=r||Ot(o),a=0;null!=(i=s[a]);a++)_t(i,r[a]);else _t(e,o);return r=Ot(o,"script"),r.length>0&&Mt(r,!u&&Ot(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,u,l,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===b.type(o))b.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),u=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[u]||At._default,s.innerHTML=c[1]+o.replace(vt,"<$1></$2>")+c[2],i=c[0];while(i--)s=s.lastChild;if(!b.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0])),!b.support.tbody){o="table"!==u||xt.test(o)?"<table>"!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;while(i--)b.nodeName(l=o.childNodes[i],"tbody")&&!l.childNodes.length&&o.removeChild(l)
}b.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),b.support.appendChecked||b.grep(Ot(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===b.inArray(o,r))&&(a=b.contains(o.ownerDocument,o),s=Ot(f.appendChild(o),"script"),a&&Mt(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,u=b.expando,l=b.cache,p=b.support.deleteExpando,f=b.event.special;for(;null!=(n=e[s]);s++)if((t||b.acceptData(n))&&(o=n[u],a=o&&l[o])){if(a.events)for(r in a.events)f[r]?b.event.remove(n,r):b.removeEvent(n,r,a.handle);l[o]&&(delete l[o],p?delete n[u]:typeof n.removeAttribute!==i?n.removeAttribute(u):n[u]=null,c.push(o))}}});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("^("+x+")(.*)$","i"),Yt=RegExp("^("+x+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+x+")","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"===b.css(e,"display")||!b.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]=b._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=b._data(r,"olddisplay",un(r.nodeName)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&b._data(r,"olddisplay",i?n:b.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}b.fn.extend({css:function(e,n){return b.access(this,function(e,n,r){var i,o,a={},s=0;if(b.isArray(n)){for(o=Rt(e),i=n.length;i>s;s++)a[n[s]]=b.css(e,n[s],!1,o);return a}return r!==t?b.style(e,n,r):b.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){var t="boolean"==typeof e;return this.each(function(){(t?e:nn(this))?b(this).show():b(this).hide()})}}),b.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,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":b.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,u=b.camelCase(n),l=e.style;if(n=b.cssProps[u]||(b.cssProps[u]=tn(l,u)),s=b.cssHooks[n]||b.cssHooks[u],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:l[n];if(a=typeof r,"string"===a&&(o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(b.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||b.cssNumber[u]||(r+="px"),b.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(l[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{l[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,u=b.camelCase(n);return n=b.cssProps[u]||(b.cssProps[u]=tn(e.style,u)),s=b.cssHooks[n]||b.cssHooks[u],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||b.isNumeric(o)?o||0:a):a},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}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),u=s?s.getPropertyValue(n)||s[n]:t,l=e.style;return s&&(""!==u||b.contains(e.ownerDocument,e)||(u=b.style(e,n)),Yt.test(u)&&Ut.test(n)&&(i=l.width,o=l.minWidth,a=l.maxWidth,l.minWidth=l.maxWidth=l.width=u,u=s.width,l.width=i,l.minWidth=o,l.maxWidth=a)),u}):o.documentElement.currentStyle&&(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),u=s?s[n]:t,l=e.style;return null==u&&l&&l[n]&&(u=l[n]),Yt.test(u)&&!zt.test(n)&&(i=l.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),l.left="fontSize"===n?"1em":u,u=l.pixelLeft+"px",l.left=i,a&&(o.left=a)),""===u?"auto":u});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+=b.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=b.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&&(a-=b.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=b.css(e,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=b.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=b.support.boxSizing&&"border-box"===b.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&&(b.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function un(e){var t=o,n=Gt[e];return n||(n=ln(e,t),"none"!==n&&n||(Pt=(Pt||b("<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=ln(e,t),Pt.detach()),Gt[e]=n),n}function ln(e,t){var n=b(t.createElement(e)).appendTo(t.body),r=b.css(n[0],"display");return n.remove(),r}b.each(["height","width"],function(e,n){b.cssHooks[n]={get:function(e,r,i){return r?0===e.offsetWidth&&Xt.test(b.css(e,"display"))?b.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,b.support.boxSizing&&"border-box"===b.css(e,"boxSizing",!1,i),i):0)}}}),b.support.opacity||(b.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=b.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===b.trim(o.replace($t,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=$t.test(o)?o.replace($t,i):o+" "+i)}}),b(function(){b.support.reliableMarginRight||(b.cssHooks.marginRight={get:function(e,n){return n?b.swap(e,{display:"inline-block"},Wt,[e,"marginRight"]):t}}),!b.support.pixelPosition&&b.fn.position&&b.each(["top","left"],function(e,n){b.cssHooks[n]={get:function(e,r){return r?(r=Wt(e,n),Yt.test(r)?b(e).position()[n]+"px":r):t}}})}),b.expr&&b.expr.filters&&(b.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight||!b.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||b.css(e,"display"))},b.expr.filters.visible=function(e){return!b.expr.filters.hidden(e)}),b.each({margin:"",padding:"",border:"Width"},function(e,t){b.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)||(b.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;b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=b.prop(this,"elements");return e?b.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!b(this).is(":disabled")&&hn.test(this.nodeName)&&!dn.test(e)&&(this.checked||!Nt.test(e))}).map(function(e,t){var n=b(this).val();return null==n?null:b.isArray(n)?b.map(n,function(e){return{name:t.name,value:e.replace(fn,"\r\n")}}):{name:t.name,value:n.replace(fn,"\r\n")}}).get()}}),b.param=function(e,n){var r,i=[],o=function(e,t){t=b.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=b.ajaxSettings&&b.ajaxSettings.traditional),b.isArray(e)||e.jquery&&!b.isPlainObject(e))b.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(b.isArray(t))b.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"!==b.type(t))r(e,t);else for(i in t)gn(e+"["+i+"]",t[i],n,r)}b.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){b.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),b.fn.hover=function(e,t){return this.mouseenter(e).mouseleave(t||e)};var mn,yn,vn=b.now(),bn=/\?/,xn=/#.*$/,wn=/([?&])_=[^&]*/,Tn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Nn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Cn=/^(?:GET|HEAD)$/,kn=/^\/\//,En=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Sn=b.fn.load,An={},jn={},Dn="*/".concat("*");try{yn=a.href}catch(Ln){yn=o.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(w)||[];if(b.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(u){var l;return o[u]=!0,b.each(e[u]||[],function(e,u){var c=u(n,r,i);return"string"!=typeof c||a||o[c]?a?!(l=c):t:(n.dataTypes.unshift(c),s(c),!1)}),l}return s(n.dataTypes[0])||!o["*"]&&s("*")}function Mn(e,n){var r,i,o=b.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((o[i]?e:r||(r={}))[i]=n[i]);return r&&b.extend(!0,e,r),e}b.fn.load=function(e,n,r){if("string"!=typeof e&&Sn)return Sn.apply(this,arguments);var i,o,a,s=this,u=e.indexOf(" ");return u>=0&&(i=e.slice(u,e.length),e=e.slice(0,u)),b.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(a="POST"),s.length>0&&b.ajax({url:e,type:a,dataType:"html",data:n}).done(function(e){o=arguments,s.html(i?b("<div>").append(b.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])}),this},b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){b.fn[t]=function(e){return this.on(t,e)}}),b.each(["get","post"],function(e,n){b[n]=function(e,r,i,o){return b.isFunction(r)&&(o=o||i,i=r,r=t),b.ajax({url:e,type:n,dataType:o,data:r,success:i})}}),b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Nn.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"},converters:{"* text":e.String,"text html":!0,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Mn(Mn(e,b.ajaxSettings),t):Mn(b.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,u,l,c,p=b.ajaxSetup({},n),f=p.context||p,d=p.context&&(f.nodeType||f.jquery)?b(f):b.event,h=b.Deferred(),g=b.Callbacks("once memory"),m=p.statusCode||{},y={},v={},x=0,T="canceled",N={readyState:0,getResponseHeader:function(e){var t;if(2===x){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===x?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return x||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>x)for(t in e)m[t]=[m[t],e[t]];else N.always(e[N.status]);return this},abort:function(e){var t=e||T;return l&&l.abort(t),k(0,t),this}};if(h.promise(N).complete=g.add,N.success=N.done,N.error=N.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=b.trim(p.dataType||"*").toLowerCase().match(w)||[""],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=b.param(p.data,p.traditional)),qn(An,p,n,N),2===x)return N;u=p.global,u&&0===b.active++&&b.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Cn.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&&(b.lastModified[o]&&N.setRequestHeader("If-Modified-Since",b.lastModified[o]),b.etag[o]&&N.setRequestHeader("If-None-Match",b.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&N.setRequestHeader("Content-Type",p.contentType),N.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)N.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(p.beforeSend.call(f,N,p)===!1||2===x))return N.abort();T="abort";for(i in{success:1,error:1,complete:1})N[i](p[i]);if(l=qn(jn,p,n,N)){N.readyState=1,u&&d.trigger("ajaxSend",[N,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){N.abort("timeout")},p.timeout));try{x=1,l.send(y,k)}catch(C){if(!(2>x))throw C;k(-1,C)}}else k(-1,"No Transport");function k(e,n,r,i){var c,y,v,w,T,C=n;2!==x&&(x=2,s&&clearTimeout(s),l=t,a=i||"",N.readyState=e>0?4:0,r&&(w=_n(p,N,r)),e>=200&&300>e||304===e?(p.ifModified&&(T=N.getResponseHeader("Last-Modified"),T&&(b.lastModified[o]=T),T=N.getResponseHeader("etag"),T&&(b.etag[o]=T)),204===e?(c=!0,C="nocontent"):304===e?(c=!0,C="notmodified"):(c=Fn(p,w),C=c.state,y=c.data,v=c.error,c=!v)):(v=C,(e||!C)&&(C="error",0>e&&(e=0))),N.status=e,N.statusText=(n||C)+"",c?h.resolveWith(f,[y,C,N]):h.rejectWith(f,[N,C,v]),N.statusCode(m),m=t,u&&d.trigger(c?"ajaxSuccess":"ajaxError",[N,p,c?y:v]),g.fireWith(f,[N,C]),u&&(d.trigger("ajaxComplete",[N,p]),--b.active||b.event.trigger("ajaxStop")))}return N},getScript:function(e,n){return b.get(e,t,n,"script")},getJSON:function(e,t,n){return b.get(e,t,n,"json")}});function _n(e,n,r){var i,o,a,s,u=e.contents,l=e.dataTypes,c=e.responseFields;for(s in c)s in r&&(n[c[s]]=r[s]);while("*"===l[0])l.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in u)if(u[s]&&u[s].test(o)){l.unshift(s);break}if(l[0]in r)a=l[0];else{for(s in r){if(!l[0]||e.converters[s+" "+l[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==l[0]&&l.unshift(a),r[a]):t}function Fn(e,t){var n,r,i,o,a={},s=0,u=e.dataTypes.slice(),l=u[0];if(e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u[1])for(i in e.converters)a[i.toLowerCase()]=e.converters[i];for(;r=u[++s];)if("*"!==r){if("*"!==l&&l!==r){if(i=a[l+" "+r]||a["* "+r],!i)for(n in a)if(o=n.split(" "),o[1]===r&&(i=a[l+" "+o[0]]||a["* "+o[0]])){i===!0?i=a[n]:a[n]!==!0&&(r=o[0],u.splice(s--,0,r));break}if(i!==!0)if(i&&e["throws"])t=i(t);else try{t=i(t)}catch(c){return{state:"parsererror",error:i?c:"No conversion from "+l+" to "+r}}}l=r}return{state:"success",data:t}}b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),b.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=o.head||b("head")[0]||o.documentElement;return{send:function(t,i){n=o.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 On=[],Bn=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=On.pop()||b.expando+"_"+vn++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,u=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 u||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=b.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,u?n[u]=n[u].replace(Bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||b.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,On.push(o)),s&&b.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){}}b.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&In()||zn()}:In,Rn=b.ajaxSettings.xhr(),b.support.cors=!!Rn&&"withCredentials"in Rn,Rn=b.support.ajax=!!Rn,Rn&&b.ajaxTransport(function(n){if(!n.crossDomain||b.support.cors){var r;return{send:function(i,o){var a,s,u=n.xhr();if(n.username?u.open(n.type,n.url,n.async,n.username,n.password):u.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)u[s]=n.xhrFields[s];n.mimeType&&u.overrideMimeType&&u.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)u.setRequestHeader(s,i[s])}catch(l){}u.send(n.hasContent&&n.data||null),r=function(e,i){var s,l,c,p;try{if(r&&(i||4===u.readyState))if(r=t,a&&(u.onreadystatechange=b.noop,$n&&delete Pn[a]),i)4!==u.readyState&&u.abort();else{p={},s=u.status,l=u.getAllResponseHeaders(),"string"==typeof u.responseText&&(p.text=u.responseText);try{c=u.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,l)},n.async?4===u.readyState?setTimeout(r):(a=++Wn,$n&&(Pn||(Pn={},b(e).unload($n)),Pn[a]=r),u.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+x+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n,r,i=this.createTween(e,t),o=Yn.exec(t),a=i.cur(),s=+a||0,u=1,l=20;if(o){if(n=+o[2],r=o[3]||(b.cssNumber[e]?"":"px"),"px"!==r&&s){s=b.css(i.elem,e,!0)||n||1;do u=u||".5",s/=u,b.style(i.elem,e,s+r);while(u!==(u=i.cur()/a)&&1!==u&&--l)}i.unit=r,i.start=s,i.end=o[1]?s+(o[1]+1)*n:n}return i}]};function Kn(){return setTimeout(function(){Xn=t}),Xn=b.now()}function Zn(e,t){b.each(t,function(t,n){var r=(Qn[t]||[]).concat(Qn["*"]),i=0,o=r.length;for(;o>i;i++)if(r[i].call(e,t,n))return})}function er(e,t,n){var r,i,o=0,a=Gn.length,s=b.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;var t=Xn||Kn(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;for(;u>a;a++)l.tweens[a].run(o);return s.notifyWith(e,[l,o,n]),1>o&&u?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=b.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)l.tweens[n].run(1);return t?s.resolveWith(e,[l,t]):s.rejectWith(e,[l,t]),this}}),c=l.props;for(tr(c,l.opts.specialEasing);a>o;o++)if(r=Gn[o].call(l,e,c,l.opts))return r;return Zn(l,c),b.isFunction(l.opts.start)&&l.opts.start.call(e,l),b.fx.timer(b.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function tr(e,t){var n,r,i,o,a;for(i in e)if(r=b.camelCase(i),o=t[r],n=e[i],b.isArray(n)&&(o=n[1],n=e[i]=n[0]),i!==r&&(e[r]=n,delete e[i]),a=b.cssHooks[r],a&&"expand"in a){n=a.expand(n),delete e[r];for(i in n)i in e||(e[i]=n[i],t[i]=o)}else t[r]=o}b.Animation=b.extend(er,{tweener:function(e,t){b.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,u,l,c,p,f=this,d=e.style,h={},g=[],m=e.nodeType&&nn(e);n.queue||(c=b._queueHooks(e,"fx"),null==c.unqueued&&(c.unqueued=0,p=c.empty.fire,c.empty.fire=function(){c.unqueued||p()}),c.unqueued++,f.always(function(){f.always(function(){c.unqueued--,b.queue(e,"fx").length||c.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===b.css(e,"display")&&"none"===b.css(e,"float")&&(b.support.inlineBlockNeedsLayout&&"inline"!==un(e.nodeName)?d.zoom=1:d.display="inline-block")),n.overflow&&(d.overflow="hidden",b.support.shrinkWrapBlocks||f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(i in t)if(a=t[i],Vn.exec(a)){if(delete t[i],u=u||"toggle"===a,a===(m?"hide":"show"))continue;g.push(i)}if(o=g.length){s=b._data(e,"fxshow")||b._data(e,"fxshow",{}),"hidden"in s&&(m=s.hidden),u&&(s.hidden=!m),m?b(e).show():f.done(function(){b(e).hide()}),f.done(function(){var t;b._removeData(e,"fxshow");for(t in h)b.style(e,t,h[t])});for(i=0;o>i;i++)r=g[i],l=f.createTween(r,m?s[r]:0),h[r]=s[r]||b.style(e,r),r in s||(s[r]=l.start,m&&(l.end=l.start,l.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}b.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||(b.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?b.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=b.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[b.cssProps[e.prop]]||b.cssHooks[e.prop])?b.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)}},b.each(["toggle","show","hide"],function(e,t){var n=b.fn[t];b.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),b.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=b.isEmptyObject(e),o=b.speed(t,n,r),a=function(){var t=er(this,b.extend({},e),o);a.finish=function(){t.stop(!0)},(i||b._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=b.timers,a=b._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)&&b.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=b._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=b.timers,a=r?r.length:0;for(n.finish=!0,b.queue(this,e,[]),i&&i.cur&&i.cur.finish&&i.cur.finish.call(this),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}b.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){b.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),b.speed=function(e,t,n){var r=e&&"object"==typeof e?b.extend({},e):{complete:n||!n&&t||b.isFunction(e)&&e,duration:e,easing:n&&t||t&&!b.isFunction(t)&&t};return r.duration=b.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in b.fx.speeds?b.fx.speeds[r.duration]:b.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){b.isFunction(r.old)&&r.old.call(this),r.queue&&b.dequeue(this,r.queue)},r},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},b.timers=[],b.fx=rr.prototype.init,b.fx.tick=function(){var e,n=b.timers,r=0;for(Xn=b.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||b.fx.stop(),Xn=t},b.fx.timer=function(e){e()&&b.timers.push(e)&&b.fx.start()},b.fx.interval=13,b.fx.start=function(){Un||(Un=setInterval(b.fx.tick,b.fx.interval))},b.fx.stop=function(){clearInterval(Un),Un=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fx.step={},b.expr&&b.expr.filters&&(b.expr.filters.animated=function(e){return b.grep(b.timers,function(t){return e===t.elem}).length}),b.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){b.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,b.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},b.offset={setOffset:function(e,t,n){var r=b.css(e,"position");"static"===r&&(e.style.position="relative");var i=b(e),o=i.offset(),a=b.css(e,"top"),s=b.css(e,"left"),u=("absolute"===r||"fixed"===r)&&b.inArray("auto",[a,s])>-1,l={},c={},p,f;u?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0),b.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(l.top=t.top-o.top+p),null!=t.left&&(l.left=t.left-o.left+f),"using"in t?t.using.call(e,l):i.css(l)}},b.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===b.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),b.nodeName(e[0],"html")||(n=e.offset()),n.top+=b.css(e[0],"borderTopWidth",!0),n.left+=b.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-b.css(r,"marginTop",!0),left:t.left-n.left-b.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||o.documentElement;while(e&&!b.nodeName(e,"html")&&"static"===b.css(e,"position"))e=e.offsetParent;return e||o.documentElement})}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);b.fn[e]=function(i){return b.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?b(a).scrollLeft():o,r?o:b(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return b.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}b.each({Height:"height",Width:"width"},function(e,n){b.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){b.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return b.access(this,function(n,r,i){var o;return b.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?b.css(n,r,s):b.style(n,r,i,s)},n,a?i:t,a,null)}})}),e.jQuery=e.$=b,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return b})})(window);
|
packages/test-studio/src/components/BrandLogo.js
|
VegaPublish/vega-studio
|
/* eslint-disable max-len */
import React from 'react'
const BrandLogo = props => '🔭 Lyra'
export default BrandLogo
|
ajax/libs/mobx-react/4.3.0-rc.1/custom.min.js
|
extend1994/cdnjs
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("mobx"),require("react")):"function"==typeof define&&define.amd?define(["exports","mobx","react"],t):t(e.mobxReact=e.mobxReact||{},e.mobx,e.React)}(this,function(e,t,n){"use strict";function r(e){function n(n,r,o,i,a,s){for(var c=arguments.length,p=Array(c>6?c-6:0),u=6;u<c;u++)p[u-6]=arguments[u];return t.untracked(function(){if(i=i||"<<anonymous>>",s=s||o,null==r[o]){if(n){var t=null===r[o]?"null":"undefined";return new Error("The "+a+" `"+s+"` is marked as required in `"+i+"`, but its value is `"+t+"`.")}return null}return e.apply(void 0,[r,o,i,a,s].concat(p))})}var r=n.bind(null,!1);return r.isRequired=n.bind(null,!0),r}function o(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function i(e){var t=void 0===e?"undefined":x(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":o(t,e)?"symbol":t}function a(e){var t=i(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function s(e,n){return r(function(r,o,s,c,p){return t.untracked(function(){if(e&&i(r[o])===n.toLowerCase())return null;var c=void 0;switch(n){case"Array":c=t.isObservableArray;break;case"Object":c=t.isObservableObject;break;case"Map":c=t.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+n)}var u=r[o];if(!c(u)){var l=a(u),f=e?" or javascript `"+n.toLowerCase()+"`":"";return new Error("Invalid prop `"+p+"` of type `"+l+"` supplied to `"+s+"`, expected `mobx.Observable"+n+"`"+f+".")}return null})})}function c(e,n){return r(function(r,o,i,a,c){for(var p=arguments.length,u=Array(p>5?p-5:0),l=5;l<p;l++)u[l-5]=arguments[l];return t.untracked(function(){if("function"!=typeof n)return new Error("Property `"+c+"` of component `"+i+"` has invalid PropType notation.");var t=s(e,"Array")(r,o,i);if(t instanceof Error)return t;for(var p=r[o],l=0;l<p.length;l++)if((t=n.apply(void 0,[p,l,i,a,c+"["+l+"]"].concat(u)))instanceof Error)return t;return null})})}function p(e){return!(e.prototype&&e.prototype.render)}function u(e,t,r){var o,i,a="inject-"+(t.displayName||t.name||t.constructor&&t.constructor.name||"Unknown");r&&(a+="-with-"+r);var s=(i=o=function(r){function o(){var e,t,n,r;w(this,o);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return t=n=C(this,(e=o.__proto__||Object.getPrototypeOf(o)).call.apply(e,[this].concat(a))),n.storeRef=function(e){n.wrappedInstance=e},r=t,C(n,r)}return j(o,r),_(o,[{key:"render",value:function(){var r={};for(var o in this.props)this.props.hasOwnProperty(o)&&(r[o]=this.props[o]);var i=e(this.context.mobxStores||{},r,this.context)||{};for(var a in i)r[a]=i[a];return p(t)||(r.ref=this.storeRef),n.createElement(t,r)}}]),o}(n.Component),o.displayName=a,i);return E(s,t),s.wrappedComponent=t,Object.defineProperties(s,$),s}function l(e){return function(t,n){return e.forEach(function(e){if(!(e in n)){if(!(e in t))throw new Error("MobX injector: Store '"+e+"' is not available! Make sure it is provided by some Provider");n[e]=t[e]}}),n}}function f(){var e=void 0;if("function"==typeof arguments[0])return e=arguments[0],function(t){var n=u(e,t);return n.isMobxInjector=!1,n=v(n),n.isMobxInjector=!0,n};for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e=l(t),function(n){return u(e,n,t.join("-"))}}function d(e){if(g)try{return g(e)}catch(e){return null}return null}function b(e){var t=d(e);t&&H&&H.set(t,e),G.emit({event:"render",renderTime:e.__$mobRenderEnd-e.__$mobRenderStart,totalTime:Date.now()-e.__$mobRenderStart,component:e,node:t})}function y(){if("undefined"==typeof WeakMap)throw new Error("[mobx-react] tracking components is not supported in this browser.");B||(B=!0)}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e[t],o=V[t],i=r?!0===n?function(){o.apply(this,arguments),r.apply(this,arguments)}:function(){r.apply(this,arguments),o.apply(this,arguments)}:o;e[t]=i}function m(e,t){if(null==e||null==t||"object"!==(void 0===e?"undefined":x(e))||"object"!==(void 0===t?"undefined":x(t)))return e!==t;var n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(var r=void 0,o=n.length-1;r=n[o];o--)if(t[r]!==e[r])return!0;return!1}function v(e,t){if("string"==typeof e)throw new Error("Store names should be provided as array");if(Array.isArray(e))return X||(X=!0,console.warn('Mobx observer: Using observer to inject stores is deprecated since 4.0. Use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))` instead of `@observer(["store1", "store2"]) ComponentClass`')),t?f.apply(null,e)(v(t)):function(t){return v(e,t)};var r=e;if(!0===r.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),!("function"!=typeof r||r.prototype&&r.prototype.render||r.isReactClass||n.Component.isPrototypeOf(r))){var o,i;return v((i=o=function(e){function t(){return w(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return j(t,e),_(t,[{key:"render",value:function(){return r.call(this,this.props,this.context)}}]),t}(n.Component),o.displayName=r.displayName||r.name,o.contextTypes=r.contextTypes,o.propTypes=r.propTypes,o.defaultProps=r.defaultProps,i))}if(!r)throw new Error("Please pass a valid component to 'observer'");return O(r.prototype||r),r.isMobXReactObserver=!0,r}function O(e){h(e,"componentWillMount",!0),["componentDidMount","componentWillUnmount","componentDidUpdate"].forEach(function(t){h(e,t)}),e.shouldComponentUpdate||(e.shouldComponentUpdate=V.shouldComponentUpdate)}var g=void 0,x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},_=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}}(),j=function(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)},C=function(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},P=function(){function e(){w(this,e),this.listeners=[]}return _(e,[{key:"on",value:function(e){var t=this;return this.listeners.push(e),function(){var n=t.listeners.indexOf(e);-1!==n&&t.listeners.splice(n,1)}}},{key:"emit",value:function(e){this.listeners.forEach(function(t){return t(e)})}}]),e}(),k={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},S={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},R="function"==typeof Object.getOwnPropertySymbols,E=function(e,t,n){if("string"!=typeof t){var r=Object.getOwnPropertyNames(t);R&&(r=r.concat(Object.getOwnPropertySymbols(t)));for(var o=0;o<r.length;++o)if(!(k[r[o]]||S[r[o]]||n&&n[r[o]]))try{e[r[o]]=t[r[o]]}catch(e){}}return e},M=s(!1,"Array"),T=c.bind(null,!1),A=s(!1,"Map"),I=s(!1,"Object"),U=s(!0,"Array"),D=c.bind(null,!0),W=s(!0,"Object"),L=Object.freeze({observableArray:M,observableArrayOf:T,observableMap:A,observableObject:I,arrayOrObservableArray:U,arrayOrObservableArrayOf:D,objectOrObservableObject:W}),N={mobxStores:W};Object.seal(N);var $={contextTypes:{get:function(){return N},set:function(e){console.warn("Mobx Injector: you are trying to attach `contextTypes` on an component decorated with `inject` (or `observer`) HOC. Please specify the contextTypes on the wrapped component instead. It is accessible through the `wrappedComponent`")},configurable:!0,enumerable:!1},isMobxInjector:{value:!0,writable:!0,configurable:!0,enumerable:!0}},B=!1,q=!1,X=!1,H="undefined"!=typeof WeakMap?new WeakMap:void 0,G=new P,K=new P,V={componentWillMount:function(){function e(e){var n=this[e],r=new t.Atom("reactive "+e);Object.defineProperty(this,e,{configurable:!0,enumerable:!0,get:function(){return r.reportObserved(),n},set:function(e){!s&&m(n,e)?(n=e,a=!0,r.reportChanged(),a=!1):n=e}})}var r=this;if(!0!==q){var o=this.displayName||this.name||this.constructor&&(this.constructor.displayName||this.constructor.name)||"<component>",i=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID,a=!1,s=!1;e.call(this,"props"),e.call(this,"state");var c=this.render.bind(this),p=null,u=!1,l=function(){u=!1;var e=void 0,n=void 0;if(p.track(function(){B&&(r.__$mobRenderStart=Date.now());try{n=t.extras.allowStateChanges(!1,c)}catch(t){e=t}B&&(r.__$mobRenderEnd=Date.now())}),e)throw K.emit(e),e;return n};this.render=function(){return p=new t.Reaction(o+"#"+i+".render()",function(){if(!u&&(u=!0,"function"==typeof r.componentWillReact&&r.componentWillReact(),!0!==r.__$mobxIsUnmounted)){var e=!0;try{s=!0,a||n.Component.prototype.forceUpdate.call(r),e=!1}finally{s=!1,e&&p.dispose()}}}),p.reactComponent=r,l.$mobx=p,r.render=l,l()}}},componentWillUnmount:function(){if(!0!==q&&(this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0,B)){var e=d(this);e&&H&&H.delete(e),G.emit({event:"destroy",component:this,node:e})}},componentDidMount:function(){B&&b(this)},componentDidUpdate:function(){B&&b(this)},shouldComponentUpdate:function(e,t){return q&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||m(this.props,e)}},z=v(function(e){return(0,e.children)()});z.propTypes={children:function(e,t,n,r,o){if("function"!=typeof e[t])return new Error("Invalid prop `"+o+"` of type `"+x(e[t])+"` supplied to `"+n+"`, expected `function`.")}};var Y,F,J={children:!0,key:!0,ref:!0},Q=(F=Y=function(e){function t(){return w(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return j(t,e),_(t,[{key:"render",value:function(){return n.Children.only(this.props.children)}},{key:"getChildContext",value:function(){var e={},t=this.context.mobxStores;if(t)for(var n in t)e[n]=t[n];for(var r in this.props)J[r]||"suppressChangedStoreWarning"===r||(e[r]=this.props[r]);return{mobxStores:e}}},{key:"componentWillReceiveProps",value:function(e){if(Object.keys(e).length!==Object.keys(this.props).length&&console.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!e.suppressChangedStoreWarning)for(var t in e)J[t]||this.props[t]===e[t]||console.warn("MobX Provider: Provided store '"+t+"' has changed. Please avoid replacing stores as the change might not propagate to all children")}}]),t}(n.Component),Y.contextTypes={mobxStores:W},Y.childContextTypes={mobxStores:W.isRequired},F);if(!n.Component)throw new Error("mobx-react requires React to be available");if(!t.extras)throw new Error("mobx-react requires mobx to be available");if("object"===("undefined"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?"undefined":x(__MOBX_DEVTOOLS_GLOBAL_HOOK__))){var Z={spy:t.spy,extras:t.extras},ee={renderReporter:G,componentByNodeRegistery:H,trackComponents:y};__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(ee,Z)}e.propTypes=L,e.PropTypes=L,e.onError=function(e){return K.on(e)},e.default=e,e.observer=v,e.Observer=z,e.renderReporter=G,e.componentByNodeRegistery=H,e.trackComponents=y,e.useStaticRendering=function(e){q=e},e.Provider=Q,e.inject=f,Object.defineProperty(e,"__esModule",{value:!0})});
|
packages/material-ui-icons/src/EuroSymbol.js
|
allanalexandre/material-ui
|
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M15 18.5c-2.51 0-4.68-1.42-5.76-3.5H15v-2H8.58c-.05-.33-.08-.66-.08-1s.03-.67.08-1H15V9H9.24C10.32 6.92 12.5 5.5 15 5.5c1.61 0 3.09.59 4.23 1.57L21 5.3C19.41 3.87 17.3 3 15 3c-3.92 0-7.24 2.51-8.48 6H3v2h3.06c-.04.33-.06.66-.06 1 0 .34.02.67.06 1H3v2h3.52c1.24 3.49 4.56 6 8.48 6 2.31 0 4.41-.87 6-2.3l-1.78-1.77c-1.13.98-2.6 1.57-4.22 1.57z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment>
, 'EuroSymbol');
|
interface/components/RequestAccount.js
|
ethereum/mist
|
import React from 'react';
class RequestAccount extends React.Component {
constructor(props) {
super(props);
this.state = {
creating: false,
passwordInputType: 'text',
pw: '',
pwRepeat: '',
showPassword: false,
showRepeat: false
};
}
resetForm() {
this.setState({
pw: '',
pwRepeat: '',
showRepeat: false,
creating: false
});
}
handleCancel(e) {
e.preventDefault();
ipc.send('backendAction_closePopupWindow');
}
handleSubmit(e) {
e.preventDefault();
const { pw, pwRepeat } = this.state;
// ask for password repeat
if (!pwRepeat.length) {
this.setState({ showRepeat: true });
this.refs.password_repeat.focus();
return;
}
// check passwords
if (pw !== pwRepeat) {
GlobalNotification.warning({
content: TAPi18n.__(
'mist.popupWindows.requestAccount.errors.passwordMismatch'
),
duration: 3
});
this.resetForm();
} else if (pw && pw.length < 8) {
GlobalNotification.warning({
content: TAPi18n.__(
'mist.popupWindows.requestAccount.errors.passwordTooShort'
),
duration: 3
});
this.resetForm();
} else if (pw && pw.length >= 8) {
this.setState({ creating: true }, () => this.createAccount(pwRepeat));
}
}
createAccount(pw) {
web3.eth.personal.newAccount(pw).then(address => {
ipc.send('backendAction_windowMessageToOwner', null, address);
// notify about backing up!
alert(TAPi18n.__('mist.popupWindows.requestAccount.backupHint'));
this.resetForm();
ipc.send('backendAction_closePopupWindow');
});
}
renderFormBody() {
if (this.state.creating) {
return <h2>{i18n.t('mist.popupWindows.requestAccount.creating')}</h2>;
} else {
return (
<div>
<div
className={`field-container ${
this.state.showRepeat ? 'repeat-field' : ''
}`}
>
<input
autoFocus
type={this.state.showPassword ? 'text' : 'password'}
placeholder={i18n.t(
'mist.popupWindows.requestAccount.enterPassword'
)}
className="password"
value={this.state.pw}
onChange={e => this.setState({ pw: e.target.value })}
/>
<input
type={this.state.showPassword ? 'text' : 'password'}
placeholder={i18n.t(
'mist.popupWindows.requestAccount.repeatPassword'
)}
className="password-repeat"
ref="password_repeat"
value={this.state.pwRepeat}
onChange={e => this.setState({ pwRepeat: e.target.value })}
/>
</div>
<div className="show-password-container">
<input
id="show-password-checkbox"
type="checkbox"
name="elements_input_bool"
className="show-password abi-input"
checked={this.state.showPassword}
onChange={() =>
this.setState({ showPassword: !this.state.showPassword })
}
/>
<label htmlFor="show-password-checkbox">
{i18n.t('mist.popupWindows.importAccount.buttons.showPassword')}
</label>
</div>
<div className="dapp-modal-buttons">
<button
className="cancel"
type="button"
onClick={e => this.handleCancel(e)}
>
{i18n.t('buttons.cancel')}
</button>
<button className="ok dapp-primary-button" type="submit">
{i18n.t('buttons.ok')}
</button>
</div>
</div>
);
}
}
render() {
return (
<div className="popup-windows request-account">
<form onSubmit={e => this.handleSubmit(e)}>
<h1>{i18n.t('mist.popupWindows.requestAccount.title')}</h1>
{this.renderFormBody()}
</form>
</div>
);
}
}
export default RequestAccount;
|
mypiano/node_modules/@angular/cli/node_modules/zone.js/dist/zone.js
|
ezequielfreire007/proyectoIonic
|
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
typeof define === 'function' && define.amd ? define(factory) :
(factory());
}(this, (function () { 'use strict';
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Zone$1 = (function (global) {
var FUNCTION = 'function';
var performance = global['performance'];
function mark(name) {
performance && performance['mark'] && performance['mark'](name);
}
function performanceMeasure(name, label) {
performance && performance['measure'] && performance['measure'](name, label);
}
mark('Zone');
if (global['Zone']) {
throw new Error('Zone already loaded.');
}
var Zone = (function () {
function Zone(parent, zoneSpec) {
this._properties = null;
this._parent = parent;
this._name = zoneSpec ? zoneSpec.name || 'unnamed' : '<root>';
this._properties = zoneSpec && zoneSpec.properties || {};
this._zoneDelegate =
new ZoneDelegate(this, this._parent && this._parent._zoneDelegate, zoneSpec);
}
Zone.assertZonePatched = function () {
if (global['Promise'] !== patches['ZoneAwarePromise']) {
throw new Error('Zone.js has detected that ZoneAwarePromise `(window|global).Promise` ' +
'has been overwritten.\n' +
'Most likely cause is that a Promise polyfill has been loaded ' +
'after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. ' +
'If you must load one, do so before loading zone.js.)');
}
};
Object.defineProperty(Zone, "root", {
get: function () {
var zone = Zone.current;
while (zone.parent) {
zone = zone.parent;
}
return zone;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Zone, "current", {
get: function () {
return _currentZoneFrame.zone;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Zone, "currentTask", {
get: function () {
return _currentTask;
},
enumerable: true,
configurable: true
});
Zone.__load_patch = function (name, fn) {
if (patches.hasOwnProperty(name)) {
throw Error('Already loaded patch: ' + name);
}
else if (!global['__Zone_disable_' + name]) {
var perfName = 'Zone:' + name;
mark(perfName);
patches[name] = fn(global, Zone, _api);
performanceMeasure(perfName, perfName);
}
};
Object.defineProperty(Zone.prototype, "parent", {
get: function () {
return this._parent;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Zone.prototype, "name", {
get: function () {
return this._name;
},
enumerable: true,
configurable: true
});
Zone.prototype.get = function (key) {
var zone = this.getZoneWith(key);
if (zone)
return zone._properties[key];
};
Zone.prototype.getZoneWith = function (key) {
var current = this;
while (current) {
if (current._properties.hasOwnProperty(key)) {
return current;
}
current = current._parent;
}
return null;
};
Zone.prototype.fork = function (zoneSpec) {
if (!zoneSpec)
throw new Error('ZoneSpec required!');
return this._zoneDelegate.fork(this, zoneSpec);
};
Zone.prototype.wrap = function (callback, source) {
if (typeof callback !== FUNCTION) {
throw new Error('Expecting function got: ' + callback);
}
var _callback = this._zoneDelegate.intercept(this, callback, source);
var zone = this;
return function () {
return zone.runGuarded(_callback, this, arguments, source);
};
};
Zone.prototype.run = function (callback, applyThis, applyArgs, source) {
if (applyThis === void 0) { applyThis = undefined; }
if (applyArgs === void 0) { applyArgs = null; }
if (source === void 0) { source = null; }
_currentZoneFrame = { parent: _currentZoneFrame, zone: this };
try {
return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);
}
finally {
_currentZoneFrame = _currentZoneFrame.parent;
}
};
Zone.prototype.runGuarded = function (callback, applyThis, applyArgs, source) {
if (applyThis === void 0) { applyThis = null; }
if (applyArgs === void 0) { applyArgs = null; }
if (source === void 0) { source = null; }
_currentZoneFrame = { parent: _currentZoneFrame, zone: this };
try {
try {
return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);
}
catch (error) {
if (this._zoneDelegate.handleError(this, error)) {
throw error;
}
}
}
finally {
_currentZoneFrame = _currentZoneFrame.parent;
}
};
Zone.prototype.runTask = function (task, applyThis, applyArgs) {
if (task.zone != this) {
throw new Error('A task can only be run in the zone of creation! (Creation: ' +
(task.zone || NO_ZONE).name + '; Execution: ' + this.name + ')');
}
// https://github.com/angular/zone.js/issues/778, sometimes eventTask
// will run in notScheduled(canceled) state, we should not try to
// run such kind of task but just return
// we have to define an variable here, if not
// typescript compiler will complain below
var isNotScheduled = task.state === notScheduled;
if (isNotScheduled && task.type === eventTask) {
return;
}
var reEntryGuard = task.state != running;
reEntryGuard && task._transitionTo(running, scheduled);
task.runCount++;
var previousTask = _currentTask;
_currentTask = task;
_currentZoneFrame = { parent: _currentZoneFrame, zone: this };
try {
if (task.type == macroTask && task.data && !task.data.isPeriodic) {
task.cancelFn = null;
}
try {
return this._zoneDelegate.invokeTask(this, task, applyThis, applyArgs);
}
catch (error) {
if (this._zoneDelegate.handleError(this, error)) {
throw error;
}
}
}
finally {
// if the task's state is notScheduled or unknown, then it has already been cancelled
// we should not reset the state to scheduled
if (task.state !== notScheduled && task.state !== unknown) {
if (task.type == eventTask || (task.data && task.data.isPeriodic)) {
reEntryGuard && task._transitionTo(scheduled, running);
}
else {
task.runCount = 0;
this._updateTaskCount(task, -1);
reEntryGuard &&
task._transitionTo(notScheduled, running, notScheduled);
}
}
_currentZoneFrame = _currentZoneFrame.parent;
_currentTask = previousTask;
}
};
Zone.prototype.scheduleTask = function (task) {
if (task.zone && task.zone !== this) {
// check if the task was rescheduled, the newZone
// should not be the children of the original zone
var newZone = this;
while (newZone) {
if (newZone === task.zone) {
throw Error("can not reschedule task to " + this
.name + " which is descendants of the original zone " + task.zone.name);
}
newZone = newZone.parent;
}
}
task._transitionTo(scheduling, notScheduled);
var zoneDelegates = [];
task._zoneDelegates = zoneDelegates;
task._zone = this;
try {
task = this._zoneDelegate.scheduleTask(this, task);
}
catch (err) {
// should set task's state to unknown when scheduleTask throw error
// because the err may from reschedule, so the fromState maybe notScheduled
task._transitionTo(unknown, scheduling, notScheduled);
// TODO: @JiaLiPassion, should we check the result from handleError?
this._zoneDelegate.handleError(this, err);
throw err;
}
if (task._zoneDelegates === zoneDelegates) {
// we have to check because internally the delegate can reschedule the task.
this._updateTaskCount(task, 1);
}
if (task.state == scheduling) {
task._transitionTo(scheduled, scheduling);
}
return task;
};
Zone.prototype.scheduleMicroTask = function (source, callback, data, customSchedule) {
return this.scheduleTask(new ZoneTask(microTask, source, callback, data, customSchedule, null));
};
Zone.prototype.scheduleMacroTask = function (source, callback, data, customSchedule, customCancel) {
return this.scheduleTask(new ZoneTask(macroTask, source, callback, data, customSchedule, customCancel));
};
Zone.prototype.scheduleEventTask = function (source, callback, data, customSchedule, customCancel) {
return this.scheduleTask(new ZoneTask(eventTask, source, callback, data, customSchedule, customCancel));
};
Zone.prototype.cancelTask = function (task) {
if (task.zone != this)
throw new Error('A task can only be cancelled in the zone of creation! (Creation: ' +
(task.zone || NO_ZONE).name + '; Execution: ' + this.name + ')');
task._transitionTo(canceling, scheduled, running);
try {
this._zoneDelegate.cancelTask(this, task);
}
catch (err) {
// if error occurs when cancelTask, transit the state to unknown
task._transitionTo(unknown, canceling);
this._zoneDelegate.handleError(this, err);
throw err;
}
this._updateTaskCount(task, -1);
task._transitionTo(notScheduled, canceling);
task.runCount = 0;
return task;
};
Zone.prototype._updateTaskCount = function (task, count) {
var zoneDelegates = task._zoneDelegates;
if (count == -1) {
task._zoneDelegates = null;
}
for (var i = 0; i < zoneDelegates.length; i++) {
zoneDelegates[i]._updateTaskCount(task.type, count);
}
};
return Zone;
}());
Zone.__symbol__ = __symbol__;
var DELEGATE_ZS = {
name: '',
onHasTask: function (delegate, _, target, hasTaskState) {
return delegate.hasTask(target, hasTaskState);
},
onScheduleTask: function (delegate, _, target, task) {
return delegate.scheduleTask(target, task);
},
onInvokeTask: function (delegate, _, target, task, applyThis, applyArgs) { return delegate.invokeTask(target, task, applyThis, applyArgs); },
onCancelTask: function (delegate, _, target, task) {
return delegate.cancelTask(target, task);
}
};
var ZoneDelegate = (function () {
function ZoneDelegate(zone, parentDelegate, zoneSpec) {
this._taskCounts = { 'microTask': 0, 'macroTask': 0, 'eventTask': 0 };
this.zone = zone;
this._parentDelegate = parentDelegate;
this._forkZS = zoneSpec && (zoneSpec && zoneSpec.onFork ? zoneSpec : parentDelegate._forkZS);
this._forkDlgt = zoneSpec && (zoneSpec.onFork ? parentDelegate : parentDelegate._forkDlgt);
this._forkCurrZone = zoneSpec && (zoneSpec.onFork ? this.zone : parentDelegate.zone);
this._interceptZS =
zoneSpec && (zoneSpec.onIntercept ? zoneSpec : parentDelegate._interceptZS);
this._interceptDlgt =
zoneSpec && (zoneSpec.onIntercept ? parentDelegate : parentDelegate._interceptDlgt);
this._interceptCurrZone =
zoneSpec && (zoneSpec.onIntercept ? this.zone : parentDelegate.zone);
this._invokeZS = zoneSpec && (zoneSpec.onInvoke ? zoneSpec : parentDelegate._invokeZS);
this._invokeDlgt =
zoneSpec && (zoneSpec.onInvoke ? parentDelegate : parentDelegate._invokeDlgt);
this._invokeCurrZone = zoneSpec && (zoneSpec.onInvoke ? this.zone : parentDelegate.zone);
this._handleErrorZS =
zoneSpec && (zoneSpec.onHandleError ? zoneSpec : parentDelegate._handleErrorZS);
this._handleErrorDlgt =
zoneSpec && (zoneSpec.onHandleError ? parentDelegate : parentDelegate._handleErrorDlgt);
this._handleErrorCurrZone =
zoneSpec && (zoneSpec.onHandleError ? this.zone : parentDelegate.zone);
this._scheduleTaskZS =
zoneSpec && (zoneSpec.onScheduleTask ? zoneSpec : parentDelegate._scheduleTaskZS);
this._scheduleTaskDlgt =
zoneSpec && (zoneSpec.onScheduleTask ? parentDelegate : parentDelegate._scheduleTaskDlgt);
this._scheduleTaskCurrZone =
zoneSpec && (zoneSpec.onScheduleTask ? this.zone : parentDelegate.zone);
this._invokeTaskZS =
zoneSpec && (zoneSpec.onInvokeTask ? zoneSpec : parentDelegate._invokeTaskZS);
this._invokeTaskDlgt =
zoneSpec && (zoneSpec.onInvokeTask ? parentDelegate : parentDelegate._invokeTaskDlgt);
this._invokeTaskCurrZone =
zoneSpec && (zoneSpec.onInvokeTask ? this.zone : parentDelegate.zone);
this._cancelTaskZS =
zoneSpec && (zoneSpec.onCancelTask ? zoneSpec : parentDelegate._cancelTaskZS);
this._cancelTaskDlgt =
zoneSpec && (zoneSpec.onCancelTask ? parentDelegate : parentDelegate._cancelTaskDlgt);
this._cancelTaskCurrZone =
zoneSpec && (zoneSpec.onCancelTask ? this.zone : parentDelegate.zone);
this._hasTaskZS = null;
this._hasTaskDlgt = null;
this._hasTaskDlgtOwner = null;
this._hasTaskCurrZone = null;
var zoneSpecHasTask = zoneSpec && zoneSpec.onHasTask;
var parentHasTask = parentDelegate && parentDelegate._hasTaskZS;
if (zoneSpecHasTask || parentHasTask) {
// If we need to report hasTask, than this ZS needs to do ref counting on tasks. In such
// a case all task related interceptors must go through this ZD. We can't short circuit it.
this._hasTaskZS = zoneSpecHasTask ? zoneSpec : DELEGATE_ZS;
this._hasTaskDlgt = parentDelegate;
this._hasTaskDlgtOwner = this;
this._hasTaskCurrZone = zone;
if (!zoneSpec.onScheduleTask) {
this._scheduleTaskZS = DELEGATE_ZS;
this._scheduleTaskDlgt = parentDelegate;
this._scheduleTaskCurrZone = this.zone;
}
if (!zoneSpec.onInvokeTask) {
this._invokeTaskZS = DELEGATE_ZS;
this._invokeTaskDlgt = parentDelegate;
this._invokeTaskCurrZone = this.zone;
}
if (!zoneSpec.onCancelTask) {
this._cancelTaskZS = DELEGATE_ZS;
this._cancelTaskDlgt = parentDelegate;
this._cancelTaskCurrZone = this.zone;
}
}
}
ZoneDelegate.prototype.fork = function (targetZone, zoneSpec) {
return this._forkZS ? this._forkZS.onFork(this._forkDlgt, this.zone, targetZone, zoneSpec) :
new Zone(targetZone, zoneSpec);
};
ZoneDelegate.prototype.intercept = function (targetZone, callback, source) {
return this._interceptZS ?
this._interceptZS.onIntercept(this._interceptDlgt, this._interceptCurrZone, targetZone, callback, source) :
callback;
};
ZoneDelegate.prototype.invoke = function (targetZone, callback, applyThis, applyArgs, source) {
return this._invokeZS ?
this._invokeZS.onInvoke(this._invokeDlgt, this._invokeCurrZone, targetZone, callback, applyThis, applyArgs, source) :
callback.apply(applyThis, applyArgs);
};
ZoneDelegate.prototype.handleError = function (targetZone, error) {
return this._handleErrorZS ?
this._handleErrorZS.onHandleError(this._handleErrorDlgt, this._handleErrorCurrZone, targetZone, error) :
true;
};
ZoneDelegate.prototype.scheduleTask = function (targetZone, task) {
var returnTask = task;
if (this._scheduleTaskZS) {
if (this._hasTaskZS) {
returnTask._zoneDelegates.push(this._hasTaskDlgtOwner);
}
returnTask = this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt, this._scheduleTaskCurrZone, targetZone, task);
if (!returnTask)
returnTask = task;
}
else {
if (task.scheduleFn) {
task.scheduleFn(task);
}
else if (task.type == microTask) {
scheduleMicroTask(task);
}
else {
throw new Error('Task is missing scheduleFn.');
}
}
return returnTask;
};
ZoneDelegate.prototype.invokeTask = function (targetZone, task, applyThis, applyArgs) {
return this._invokeTaskZS ?
this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt, this._invokeTaskCurrZone, targetZone, task, applyThis, applyArgs) :
task.callback.apply(applyThis, applyArgs);
};
ZoneDelegate.prototype.cancelTask = function (targetZone, task) {
var value;
if (this._cancelTaskZS) {
value = this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt, this._cancelTaskCurrZone, targetZone, task);
}
else {
if (!task.cancelFn) {
throw Error('Task is not cancelable');
}
value = task.cancelFn(task);
}
return value;
};
ZoneDelegate.prototype.hasTask = function (targetZone, isEmpty) {
// hasTask should not throw error so other ZoneDelegate
// can still trigger hasTask callback
try {
return this._hasTaskZS &&
this._hasTaskZS.onHasTask(this._hasTaskDlgt, this._hasTaskCurrZone, targetZone, isEmpty);
}
catch (err) {
this.handleError(targetZone, err);
}
};
ZoneDelegate.prototype._updateTaskCount = function (type, count) {
var counts = this._taskCounts;
var prev = counts[type];
var next = counts[type] = prev + count;
if (next < 0) {
throw new Error('More tasks executed then were scheduled.');
}
if (prev == 0 || next == 0) {
var isEmpty = {
microTask: counts['microTask'] > 0,
macroTask: counts['macroTask'] > 0,
eventTask: counts['eventTask'] > 0,
change: type
};
this.hasTask(this.zone, isEmpty);
}
};
return ZoneDelegate;
}());
var ZoneTask = (function () {
function ZoneTask(type, source, callback, options, scheduleFn, cancelFn) {
this._zone = null;
this.runCount = 0;
this._zoneDelegates = null;
this._state = 'notScheduled';
this.type = type;
this.source = source;
this.data = options;
this.scheduleFn = scheduleFn;
this.cancelFn = cancelFn;
this.callback = callback;
var self = this;
if (type === eventTask && options && options.isUsingGlobalCallback) {
this.invoke = ZoneTask.invokeTask;
}
else {
this.invoke = function () {
return ZoneTask.invokeTask.apply(global, [self, this, arguments]);
};
}
}
ZoneTask.invokeTask = function (task, target, args) {
if (!task) {
task = this;
}
_numberOfNestedTaskFrames++;
try {
task.runCount++;
return task.zone.runTask(task, target, args);
}
finally {
if (_numberOfNestedTaskFrames == 1) {
drainMicroTaskQueue();
}
_numberOfNestedTaskFrames--;
}
};
Object.defineProperty(ZoneTask.prototype, "zone", {
get: function () {
return this._zone;
},
enumerable: true,
configurable: true
});
Object.defineProperty(ZoneTask.prototype, "state", {
get: function () {
return this._state;
},
enumerable: true,
configurable: true
});
ZoneTask.prototype.cancelScheduleRequest = function () {
this._transitionTo(notScheduled, scheduling);
};
ZoneTask.prototype._transitionTo = function (toState, fromState1, fromState2) {
if (this._state === fromState1 || this._state === fromState2) {
this._state = toState;
if (toState == notScheduled) {
this._zoneDelegates = null;
}
}
else {
throw new Error(this.type + " '" + this.source + "': can not transition to '" + toState + "', expecting state '" + fromState1 + "'" + (fromState2 ?
' or \'' + fromState2 + '\'' :
'') + ", was '" + this._state + "'.");
}
};
ZoneTask.prototype.toString = function () {
if (this.data && typeof this.data.handleId !== 'undefined') {
return this.data.handleId;
}
else {
return Object.prototype.toString.call(this);
}
};
// add toJSON method to prevent cyclic error when
// call JSON.stringify(zoneTask)
ZoneTask.prototype.toJSON = function () {
return {
type: this.type,
state: this.state,
source: this.source,
zone: this.zone.name,
invoke: this.invoke,
scheduleFn: this.scheduleFn,
cancelFn: this.cancelFn,
runCount: this.runCount,
callback: this.callback
};
};
return ZoneTask;
}());
//////////////////////////////////////////////////////
//////////////////////////////////////////////////////
/// MICROTASK QUEUE
//////////////////////////////////////////////////////
//////////////////////////////////////////////////////
var symbolSetTimeout = __symbol__('setTimeout');
var symbolPromise = __symbol__('Promise');
var symbolThen = __symbol__('then');
var _microTaskQueue = [];
var _isDrainingMicrotaskQueue = false;
var nativeMicroTaskQueuePromise;
function scheduleMicroTask(task) {
// if we are not running in any task, and there has not been anything scheduled
// we must bootstrap the initial task creation by manually scheduling the drain
if (_numberOfNestedTaskFrames === 0 && _microTaskQueue.length === 0) {
// We are not running in Task, so we need to kickstart the microtask queue.
if (!nativeMicroTaskQueuePromise) {
if (global[symbolPromise]) {
nativeMicroTaskQueuePromise = global[symbolPromise].resolve(0);
}
}
if (nativeMicroTaskQueuePromise) {
nativeMicroTaskQueuePromise[symbolThen](drainMicroTaskQueue);
}
else {
global[symbolSetTimeout](drainMicroTaskQueue, 0);
}
}
task && _microTaskQueue.push(task);
}
function drainMicroTaskQueue() {
if (!_isDrainingMicrotaskQueue) {
_isDrainingMicrotaskQueue = true;
while (_microTaskQueue.length) {
var queue = _microTaskQueue;
_microTaskQueue = [];
for (var i = 0; i < queue.length; i++) {
var task = queue[i];
try {
task.zone.runTask(task, null, null);
}
catch (error) {
_api.onUnhandledError(error);
}
}
}
var showError = !Zone[__symbol__('ignoreConsoleErrorUncaughtError')];
_api.microtaskDrainDone();
_isDrainingMicrotaskQueue = false;
}
}
//////////////////////////////////////////////////////
//////////////////////////////////////////////////////
/// BOOTSTRAP
//////////////////////////////////////////////////////
//////////////////////////////////////////////////////
var NO_ZONE = { name: 'NO ZONE' };
var notScheduled = 'notScheduled', scheduling = 'scheduling', scheduled = 'scheduled', running = 'running', canceling = 'canceling', unknown = 'unknown';
var microTask = 'microTask', macroTask = 'macroTask', eventTask = 'eventTask';
var patches = {};
var _api = {
symbol: __symbol__,
currentZoneFrame: function () { return _currentZoneFrame; },
onUnhandledError: noop,
microtaskDrainDone: noop,
scheduleMicroTask: scheduleMicroTask,
showUncaughtError: function () { return !Zone[__symbol__('ignoreConsoleErrorUncaughtError')]; },
patchEventTarget: function () { return []; },
patchOnProperties: noop,
patchMethod: function () { return noop; },
setNativePromise: function (NativePromise) {
nativeMicroTaskQueuePromise = NativePromise.resolve(0);
},
};
var _currentZoneFrame = { parent: null, zone: new Zone(null, null) };
var _currentTask = null;
var _numberOfNestedTaskFrames = 0;
function noop() { }
function __symbol__(name) {
return '__zone_symbol__' + name;
}
performanceMeasure('Zone', 'Zone');
return global['Zone'] = Zone;
})(typeof window !== 'undefined' && window || typeof self !== 'undefined' && self || global);
var __read = (undefined && undefined.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
var __values = (undefined && undefined.__values) || function (o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
if (m) return m.call(o);
return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
};
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
Zone.__load_patch('ZoneAwarePromise', function (global, Zone, api) {
var __symbol__ = api.symbol;
var _uncaughtPromiseErrors = [];
var symbolPromise = __symbol__('Promise');
var symbolThen = __symbol__('then');
api.onUnhandledError = function (e) {
if (api.showUncaughtError()) {
var rejection = e && e.rejection;
if (rejection) {
console.error('Unhandled Promise rejection:', rejection instanceof Error ? rejection.message : rejection, '; Zone:', e.zone.name, '; Task:', e.task && e.task.source, '; Value:', rejection, rejection instanceof Error ? rejection.stack : undefined);
}
else {
console.error(e);
}
}
};
api.microtaskDrainDone = function () {
while (_uncaughtPromiseErrors.length) {
var _loop_1 = function () {
var uncaughtPromiseError = _uncaughtPromiseErrors.shift();
try {
uncaughtPromiseError.zone.runGuarded(function () {
throw uncaughtPromiseError;
});
}
catch (error) {
handleUnhandledRejection(error);
}
};
while (_uncaughtPromiseErrors.length) {
_loop_1();
}
}
};
var UNHANDLED_PROMISE_REJECTION_HANDLER_SYMBOL = __symbol__('unhandledPromiseRejectionHandler');
function handleUnhandledRejection(e) {
api.onUnhandledError(e);
try {
var handler = Zone[UNHANDLED_PROMISE_REJECTION_HANDLER_SYMBOL];
if (handler && typeof handler === 'function') {
handler.apply(this, [e]);
}
}
catch (err) {
}
}
function isThenable(value) {
return value && value.then;
}
function forwardResolution(value) {
return value;
}
function forwardRejection(rejection) {
return ZoneAwarePromise.reject(rejection);
}
var symbolState = __symbol__('state');
var symbolValue = __symbol__('value');
var source = 'Promise.then';
var UNRESOLVED = null;
var RESOLVED = true;
var REJECTED = false;
var REJECTED_NO_CATCH = 0;
function makeResolver(promise, state) {
return function (v) {
try {
resolvePromise(promise, state, v);
}
catch (err) {
resolvePromise(promise, false, err);
}
// Do not return value or you will break the Promise spec.
};
}
var once = function () {
var wasCalled = false;
return function wrapper(wrappedFunction) {
return function () {
if (wasCalled) {
return;
}
wasCalled = true;
wrappedFunction.apply(null, arguments);
};
};
};
var TYPE_ERROR = 'Promise resolved with itself';
var OBJECT = 'object';
var FUNCTION = 'function';
var CURRENT_TASK_SYMBOL = __symbol__('currentTask');
// Promise Resolution
function resolvePromise(promise, state, value) {
var onceWrapper = once();
if (promise === value) {
throw new TypeError(TYPE_ERROR);
}
if (promise[symbolState] === UNRESOLVED) {
// should only get value.then once based on promise spec.
var then = null;
try {
if (typeof value === OBJECT || typeof value === FUNCTION) {
then = value && value.then;
}
}
catch (err) {
onceWrapper(function () {
resolvePromise(promise, false, err);
})();
return promise;
}
// if (value instanceof ZoneAwarePromise) {
if (state !== REJECTED && value instanceof ZoneAwarePromise &&
value.hasOwnProperty(symbolState) && value.hasOwnProperty(symbolValue) &&
value[symbolState] !== UNRESOLVED) {
clearRejectedNoCatch(value);
resolvePromise(promise, value[symbolState], value[symbolValue]);
}
else if (state !== REJECTED && typeof then === FUNCTION) {
try {
then.apply(value, [
onceWrapper(makeResolver(promise, state)), onceWrapper(makeResolver(promise, false))
]);
}
catch (err) {
onceWrapper(function () {
resolvePromise(promise, false, err);
})();
}
}
else {
promise[symbolState] = state;
var queue = promise[symbolValue];
promise[symbolValue] = value;
// record task information in value when error occurs, so we can
// do some additional work such as render longStackTrace
if (state === REJECTED && value instanceof Error) {
value[CURRENT_TASK_SYMBOL] = Zone.currentTask;
}
for (var i = 0; i < queue.length;) {
scheduleResolveOrReject(promise, queue[i++], queue[i++], queue[i++], queue[i++]);
}
if (queue.length == 0 && state == REJECTED) {
promise[symbolState] = REJECTED_NO_CATCH;
try {
throw new Error('Uncaught (in promise): ' + value +
(value && value.stack ? '\n' + value.stack : ''));
}
catch (err) {
var error_1 = err;
error_1.rejection = value;
error_1.promise = promise;
error_1.zone = Zone.current;
error_1.task = Zone.currentTask;
_uncaughtPromiseErrors.push(error_1);
api.scheduleMicroTask(); // to make sure that it is running
}
}
}
}
// Resolving an already resolved promise is a noop.
return promise;
}
var REJECTION_HANDLED_HANDLER = __symbol__('rejectionHandledHandler');
function clearRejectedNoCatch(promise) {
if (promise[symbolState] === REJECTED_NO_CATCH) {
// if the promise is rejected no catch status
// and queue.length > 0, means there is a error handler
// here to handle the rejected promise, we should trigger
// windows.rejectionhandled eventHandler or nodejs rejectionHandled
// eventHandler
try {
var handler = Zone[REJECTION_HANDLED_HANDLER];
if (handler && typeof handler === FUNCTION) {
handler.apply(this, [{ rejection: promise[symbolValue], promise: promise }]);
}
}
catch (err) {
}
promise[symbolState] = REJECTED;
for (var i = 0; i < _uncaughtPromiseErrors.length; i++) {
if (promise === _uncaughtPromiseErrors[i].promise) {
_uncaughtPromiseErrors.splice(i, 1);
}
}
}
}
function scheduleResolveOrReject(promise, zone, chainPromise, onFulfilled, onRejected) {
clearRejectedNoCatch(promise);
var delegate = promise[symbolState] ?
(typeof onFulfilled === FUNCTION) ? onFulfilled : forwardResolution :
(typeof onRejected === FUNCTION) ? onRejected : forwardRejection;
zone.scheduleMicroTask(source, function () {
try {
resolvePromise(chainPromise, true, zone.run(delegate, undefined, [promise[symbolValue]]));
}
catch (error) {
resolvePromise(chainPromise, false, error);
}
});
}
var ZONE_AWARE_PROMISE_TO_STRING = 'function ZoneAwarePromise() { [native code] }';
var ZoneAwarePromise = (function () {
function ZoneAwarePromise(executor) {
var promise = this;
if (!(promise instanceof ZoneAwarePromise)) {
throw new Error('Must be an instanceof Promise.');
}
promise[symbolState] = UNRESOLVED;
promise[symbolValue] = []; // queue;
try {
executor && executor(makeResolver(promise, RESOLVED), makeResolver(promise, REJECTED));
}
catch (error) {
resolvePromise(promise, false, error);
}
}
ZoneAwarePromise.toString = function () {
return ZONE_AWARE_PROMISE_TO_STRING;
};
ZoneAwarePromise.resolve = function (value) {
return resolvePromise(new this(null), RESOLVED, value);
};
ZoneAwarePromise.reject = function (error) {
return resolvePromise(new this(null), REJECTED, error);
};
ZoneAwarePromise.race = function (values) {
var resolve;
var reject;
var promise = new this(function (res, rej) {
_a = __read([res, rej], 2), resolve = _a[0], reject = _a[1];
var _a;
});
function onResolve(value) {
promise && (promise = null || resolve(value));
}
function onReject(error) {
promise && (promise = null || reject(error));
}
try {
for (var values_1 = __values(values), values_1_1 = values_1.next(); !values_1_1.done; values_1_1 = values_1.next()) {
var value = values_1_1.value;
if (!isThenable(value)) {
value = this.resolve(value);
}
value.then(onResolve, onReject);
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (values_1_1 && !values_1_1.done && (_a = values_1.return)) _a.call(values_1);
}
finally { if (e_1) throw e_1.error; }
}
return promise;
var e_1, _a;
};
ZoneAwarePromise.all = function (values) {
var resolve;
var reject;
var promise = new this(function (res, rej) {
resolve = res;
reject = rej;
});
var count = 0;
var resolvedValues = [];
try {
for (var values_2 = __values(values), values_2_1 = values_2.next(); !values_2_1.done; values_2_1 = values_2.next()) {
var value = values_2_1.value;
if (!isThenable(value)) {
value = this.resolve(value);
}
value.then((function (index) { return function (value) {
resolvedValues[index] = value;
count--;
if (!count) {
resolve(resolvedValues);
}
}; })(count), reject);
count++;
}
}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
finally {
try {
if (values_2_1 && !values_2_1.done && (_a = values_2.return)) _a.call(values_2);
}
finally { if (e_2) throw e_2.error; }
}
if (!count)
resolve(resolvedValues);
return promise;
var e_2, _a;
};
ZoneAwarePromise.prototype.then = function (onFulfilled, onRejected) {
var chainPromise = new this.constructor(null);
var zone = Zone.current;
if (this[symbolState] == UNRESOLVED) {
this[symbolValue].push(zone, chainPromise, onFulfilled, onRejected);
}
else {
scheduleResolveOrReject(this, zone, chainPromise, onFulfilled, onRejected);
}
return chainPromise;
};
ZoneAwarePromise.prototype.catch = function (onRejected) {
return this.then(null, onRejected);
};
return ZoneAwarePromise;
}());
// Protect against aggressive optimizers dropping seemingly unused properties.
// E.g. Closure Compiler in advanced mode.
ZoneAwarePromise['resolve'] = ZoneAwarePromise.resolve;
ZoneAwarePromise['reject'] = ZoneAwarePromise.reject;
ZoneAwarePromise['race'] = ZoneAwarePromise.race;
ZoneAwarePromise['all'] = ZoneAwarePromise.all;
var NativePromise = global[symbolPromise] = global['Promise'];
var ZONE_AWARE_PROMISE = Zone.__symbol__('ZoneAwarePromise');
var desc = Object.getOwnPropertyDescriptor(global, 'Promise');
if (!desc || desc.configurable) {
desc && delete desc.writable;
desc && delete desc.value;
if (!desc) {
desc = { configurable: true, enumerable: true };
}
desc.get = function () {
// if we already set ZoneAwarePromise, use patched one
// otherwise return native one.
return global[ZONE_AWARE_PROMISE] ? global[ZONE_AWARE_PROMISE] : global[symbolPromise];
};
desc.set = function (NewNativePromise) {
if (NewNativePromise === ZoneAwarePromise) {
// if the NewNativePromise is ZoneAwarePromise
// save to global
global[ZONE_AWARE_PROMISE] = NewNativePromise;
}
else {
// if the NewNativePromise is not ZoneAwarePromise
// for example: after load zone.js, some library just
// set es6-promise to global, if we set it to global
// directly, assertZonePatched will fail and angular
// will not loaded, so we just set the NewNativePromise
// to global[symbolPromise], so the result is just like
// we load ES6 Promise before zone.js
global[symbolPromise] = NewNativePromise;
if (!NewNativePromise.prototype[symbolThen]) {
patchThen(NewNativePromise);
}
api.setNativePromise(NewNativePromise);
}
};
Object.defineProperty(global, 'Promise', desc);
}
global['Promise'] = ZoneAwarePromise;
var symbolThenPatched = __symbol__('thenPatched');
function patchThen(Ctor) {
var proto = Ctor.prototype;
var originalThen = proto.then;
// Keep a reference to the original method.
proto[symbolThen] = originalThen;
// check Ctor.prototype.then propertyDescritor is writable or not
// in meteor env, writable is false, we have to make it to be true.
var prop = Object.getOwnPropertyDescriptor(Ctor.prototype, 'then');
if (prop && prop.writable === false && prop.configurable) {
Object.defineProperty(Ctor.prototype, 'then', { writable: true });
}
Ctor.prototype.then = function (onResolve, onReject) {
var _this = this;
var wrapped = new ZoneAwarePromise(function (resolve, reject) {
originalThen.call(_this, resolve, reject);
});
return wrapped.then(onResolve, onReject);
};
Ctor[symbolThenPatched] = true;
}
function zoneify(fn) {
return function () {
var resultPromise = fn.apply(this, arguments);
if (resultPromise instanceof ZoneAwarePromise) {
return resultPromise;
}
var ctor = resultPromise.constructor;
if (!ctor[symbolThenPatched]) {
patchThen(ctor);
}
return resultPromise;
};
}
if (NativePromise) {
patchThen(NativePromise);
var fetch_1 = global['fetch'];
if (typeof fetch_1 == FUNCTION) {
global['fetch'] = zoneify(fetch_1);
}
}
// This is not part of public API, but it is useful for tests, so we expose it.
Promise[Zone.__symbol__('uncaughtPromiseErrors')] = _uncaughtPromiseErrors;
return ZoneAwarePromise;
});
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Suppress closure compiler errors about unknown 'Zone' variable
* @fileoverview
* @suppress {undefinedVars,globalThis,missingRequire}
*/
var zoneSymbol = Zone.__symbol__;
var _global = typeof window === 'object' && window || typeof self === 'object' && self || global;
var FUNCTION = 'function';
var UNDEFINED = 'undefined';
var REMOVE_ATTRIBUTE = 'removeAttribute';
function bindArguments(args, source) {
for (var i = args.length - 1; i >= 0; i--) {
if (typeof args[i] === FUNCTION) {
args[i] = Zone.current.wrap(args[i], source + '_' + i);
}
}
return args;
}
function patchPrototype(prototype, fnNames) {
var source = prototype.constructor['name'];
var _loop_1 = function (i) {
var name_1 = fnNames[i];
var delegate = prototype[name_1];
if (delegate) {
var prototypeDesc = Object.getOwnPropertyDescriptor(prototype, name_1);
if (!isPropertyWritable(prototypeDesc)) {
return "continue";
}
prototype[name_1] = (function (delegate) {
var patched = function () {
return delegate.apply(this, bindArguments(arguments, source + '.' + name_1));
};
attachOriginToPatched(patched, delegate);
return patched;
})(delegate);
}
};
for (var i = 0; i < fnNames.length; i++) {
_loop_1(i);
}
}
function isPropertyWritable(propertyDesc) {
if (!propertyDesc) {
return true;
}
if (propertyDesc.writable === false) {
return false;
}
if (typeof propertyDesc.get === FUNCTION && typeof propertyDesc.set === UNDEFINED) {
return false;
}
return true;
}
var isWebWorker = (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope);
// Make sure to access `process` through `_global` so that WebPack does not accidently browserify
// this code.
var isNode = (!('nw' in _global) && typeof _global.process !== 'undefined' &&
{}.toString.call(_global.process) === '[object process]');
var isBrowser = !isNode && !isWebWorker && !!(typeof window !== 'undefined' && window['HTMLElement']);
// we are in electron of nw, so we are both browser and nodejs
// Make sure to access `process` through `_global` so that WebPack does not accidently browserify
// this code.
var isMix = typeof _global.process !== 'undefined' &&
{}.toString.call(_global.process) === '[object process]' && !isWebWorker &&
!!(typeof window !== 'undefined' && window['HTMLElement']);
var zoneSymbolEventNames = {};
var wrapFn = function (event) {
// https://github.com/angular/zone.js/issues/911, in IE, sometimes
// event will be undefined, so we need to use window.event
event = event || _global.event;
if (!event) {
return;
}
var eventNameSymbol = zoneSymbolEventNames[event.type];
if (!eventNameSymbol) {
eventNameSymbol = zoneSymbolEventNames[event.type] = zoneSymbol('ON_PROPERTY' + event.type);
}
var target = this || event.target || _global;
var listener = target[eventNameSymbol];
var result = listener && listener.apply(this, arguments);
if (result != undefined && !result) {
event.preventDefault();
}
return result;
};
function patchProperty(obj, prop, prototype) {
var desc = Object.getOwnPropertyDescriptor(obj, prop);
if (!desc && prototype) {
// when patch window object, use prototype to check prop exist or not
var prototypeDesc = Object.getOwnPropertyDescriptor(prototype, prop);
if (prototypeDesc) {
desc = { enumerable: true, configurable: true };
}
}
// if the descriptor not exists or is not configurable
// just return
if (!desc || !desc.configurable) {
return;
}
// A property descriptor cannot have getter/setter and be writable
// deleting the writable and value properties avoids this error:
//
// TypeError: property descriptors must not specify a value or be writable when a
// getter or setter has been specified
delete desc.writable;
delete desc.value;
var originalDescGet = desc.get;
// substr(2) cuz 'onclick' -> 'click', etc
var eventName = prop.substr(2);
var eventNameSymbol = zoneSymbolEventNames[eventName];
if (!eventNameSymbol) {
eventNameSymbol = zoneSymbolEventNames[eventName] = zoneSymbol('ON_PROPERTY' + eventName);
}
desc.set = function (newValue) {
// in some of windows's onproperty callback, this is undefined
// so we need to check it
var target = this;
if (!target && obj === _global) {
target = _global;
}
if (!target) {
return;
}
var previousValue = target[eventNameSymbol];
if (previousValue) {
target.removeEventListener(eventName, wrapFn);
}
if (typeof newValue === 'function') {
target[eventNameSymbol] = newValue;
target.addEventListener(eventName, wrapFn, false);
}
else {
target[eventNameSymbol] = null;
}
};
// The getter would return undefined for unassigned properties but the default value of an
// unassigned property is null
desc.get = function () {
// in some of windows's onproperty callback, this is undefined
// so we need to check it
var target = this;
if (!target && obj === _global) {
target = _global;
}
if (!target) {
return null;
}
var listener = target[eventNameSymbol];
if (listener) {
return listener;
}
else if (originalDescGet) {
// result will be null when use inline event attribute,
// such as <button onclick="func();">OK</button>
// because the onclick function is internal raw uncompiled handler
// the onclick will be evaluated when first time event was triggered or
// the property is accessed, https://github.com/angular/zone.js/issues/525
// so we should use original native get to retrieve the handler
var value = originalDescGet && originalDescGet.apply(this);
if (value) {
desc.set.apply(this, [value]);
if (typeof target[REMOVE_ATTRIBUTE] === FUNCTION) {
target.removeAttribute(prop);
}
return value;
}
}
return null;
};
Object.defineProperty(obj, prop, desc);
}
function patchOnProperties(obj, properties, prototype) {
if (properties) {
for (var i = 0; i < properties.length; i++) {
patchProperty(obj, 'on' + properties[i], prototype);
}
}
else {
var onProperties = [];
for (var prop in obj) {
if (prop.substr(0, 2) == 'on') {
onProperties.push(prop);
}
}
for (var j = 0; j < onProperties.length; j++) {
patchProperty(obj, onProperties[j], prototype);
}
}
}
var originalInstanceKey = zoneSymbol('originalInstance');
// wrap some native API on `window`
function patchClass(className) {
var OriginalClass = _global[className];
if (!OriginalClass)
return;
// keep original class in global
_global[zoneSymbol(className)] = OriginalClass;
_global[className] = function () {
var a = bindArguments(arguments, className);
switch (a.length) {
case 0:
this[originalInstanceKey] = new OriginalClass();
break;
case 1:
this[originalInstanceKey] = new OriginalClass(a[0]);
break;
case 2:
this[originalInstanceKey] = new OriginalClass(a[0], a[1]);
break;
case 3:
this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2]);
break;
case 4:
this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2], a[3]);
break;
default:
throw new Error('Arg list too long.');
}
};
// attach original delegate to patched function
attachOriginToPatched(_global[className], OriginalClass);
var instance = new OriginalClass(function () { });
var prop;
for (prop in instance) {
// https://bugs.webkit.org/show_bug.cgi?id=44721
if (className === 'XMLHttpRequest' && prop === 'responseBlob')
continue;
(function (prop) {
if (typeof instance[prop] === 'function') {
_global[className].prototype[prop] = function () {
return this[originalInstanceKey][prop].apply(this[originalInstanceKey], arguments);
};
}
else {
Object.defineProperty(_global[className].prototype, prop, {
set: function (fn) {
if (typeof fn === 'function') {
this[originalInstanceKey][prop] = Zone.current.wrap(fn, className + '.' + prop);
// keep callback in wrapped function so we can
// use it in Function.prototype.toString to return
// the native one.
attachOriginToPatched(this[originalInstanceKey][prop], fn);
}
else {
this[originalInstanceKey][prop] = fn;
}
},
get: function () {
return this[originalInstanceKey][prop];
}
});
}
}(prop));
}
for (prop in OriginalClass) {
if (prop !== 'prototype' && OriginalClass.hasOwnProperty(prop)) {
_global[className][prop] = OriginalClass[prop];
}
}
}
function patchMethod(target, name, patchFn) {
var proto = target;
while (proto && !proto.hasOwnProperty(name)) {
proto = Object.getPrototypeOf(proto);
}
if (!proto && target[name]) {
// somehow we did not find it, but we can see it. This happens on IE for Window properties.
proto = target;
}
var delegateName = zoneSymbol(name);
var delegate;
if (proto && !(delegate = proto[delegateName])) {
delegate = proto[delegateName] = proto[name];
// check whether proto[name] is writable
// some property is readonly in safari, such as HtmlCanvasElement.prototype.toBlob
var desc = proto && Object.getOwnPropertyDescriptor(proto, name);
if (isPropertyWritable(desc)) {
var patchDelegate_1 = patchFn(delegate, delegateName, name);
proto[name] = function () {
return patchDelegate_1(this, arguments);
};
attachOriginToPatched(proto[name], delegate);
}
}
return delegate;
}
// TODO: @JiaLiPassion, support cancel task later if necessary
function patchMacroTask(obj, funcName, metaCreator) {
var setNative = null;
function scheduleTask(task) {
var data = task.data;
data.args[data.callbackIndex] = function () {
task.invoke.apply(this, arguments);
};
setNative.apply(data.target, data.args);
return task;
}
setNative = patchMethod(obj, funcName, function (delegate) { return function (self, args) {
var meta = metaCreator(self, args);
if (meta.callbackIndex >= 0 && typeof args[meta.callbackIndex] === 'function') {
var task = Zone.current.scheduleMacroTask(meta.name, args[meta.callbackIndex], meta, scheduleTask, null);
return task;
}
else {
// cause an error by calling it directly.
return delegate.apply(self, args);
}
}; });
}
function attachOriginToPatched(patched, original) {
patched[zoneSymbol('OriginalDelegate')] = original;
}
var isDetectedIEOrEdge = false;
var ieOrEdge = false;
function isIEOrEdge() {
if (isDetectedIEOrEdge) {
return ieOrEdge;
}
isDetectedIEOrEdge = true;
try {
var ua = window.navigator.userAgent;
var msie = ua.indexOf('MSIE ');
if (ua.indexOf('MSIE ') !== -1 || ua.indexOf('Trident/') !== -1 || ua.indexOf('Edge/') !== -1) {
ieOrEdge = true;
}
return ieOrEdge;
}
catch (error) {
}
}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// override Function.prototype.toString to make zone.js patched function
// look like native function
Zone.__load_patch('toString', function (global, Zone, api) {
// patch Func.prototype.toString to let them look like native
var originalFunctionToString = Zone['__zone_symbol__originalToString'] =
Function.prototype.toString;
var FUNCTION = 'function';
var ORIGINAL_DELEGATE_SYMBOL = zoneSymbol('OriginalDelegate');
var PROMISE_SYMBOL = zoneSymbol('Promise');
var ERROR_SYMBOL = zoneSymbol('Error');
Function.prototype.toString = function () {
if (typeof this === FUNCTION) {
var originalDelegate = this[ORIGINAL_DELEGATE_SYMBOL];
if (originalDelegate) {
if (typeof originalDelegate === FUNCTION) {
return originalFunctionToString.apply(this[ORIGINAL_DELEGATE_SYMBOL], arguments);
}
else {
return Object.prototype.toString.call(originalDelegate);
}
}
if (this === Promise) {
var nativePromise = global[PROMISE_SYMBOL];
if (nativePromise) {
return originalFunctionToString.apply(nativePromise, arguments);
}
}
if (this === Error) {
var nativeError = global[ERROR_SYMBOL];
if (nativeError) {
return originalFunctionToString.apply(nativeError, arguments);
}
}
}
return originalFunctionToString.apply(this, arguments);
};
// patch Object.prototype.toString to let them look like native
var originalObjectToString = Object.prototype.toString;
var PROMISE_OBJECT_TO_STRING = '[object Promise]';
Object.prototype.toString = function () {
if (this instanceof Promise) {
return PROMISE_OBJECT_TO_STRING;
}
return originalObjectToString.apply(this, arguments);
};
});
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @fileoverview
* @suppress {missingRequire}
*/
var __read$1 = (undefined && undefined.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
var __spread = (undefined && undefined.__spread) || function () {
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read$1(arguments[i]));
return ar;
};
var TRUE_STR = 'true';
var FALSE_STR = 'false';
// an identifier to tell ZoneTask do not create a new invoke closure
var OPTIMIZED_ZONE_EVENT_TASK_DATA = {
isUsingGlobalCallback: true
};
var zoneSymbolEventNames$1 = {};
var globalSources = {};
var CONSTRUCTOR_NAME = 'name';
var FUNCTION_TYPE = 'function';
var OBJECT_TYPE = 'object';
var ZONE_SYMBOL_PREFIX = '__zone_symbol__';
var EVENT_NAME_SYMBOL_REGX = /^__zone_symbol__(\w+)(true|false)$/;
var IMMEDIATE_PROPAGATION_SYMBOL = ('__zone_symbol__propagationStopped');
function patchEventTarget(_global, apis, patchOptions) {
var ADD_EVENT_LISTENER = (patchOptions && patchOptions.addEventListenerFnName) || 'addEventListener';
var REMOVE_EVENT_LISTENER = (patchOptions && patchOptions.removeEventListenerFnName) || 'removeEventListener';
var LISTENERS_EVENT_LISTENER = (patchOptions && patchOptions.listenersFnName) || 'eventListeners';
var REMOVE_ALL_LISTENERS_EVENT_LISTENER = (patchOptions && patchOptions.removeAllFnName) || 'removeAllListeners';
var zoneSymbolAddEventListener = zoneSymbol(ADD_EVENT_LISTENER);
var ADD_EVENT_LISTENER_SOURCE = '.' + ADD_EVENT_LISTENER + ':';
var PREPEND_EVENT_LISTENER = 'prependListener';
var PREPEND_EVENT_LISTENER_SOURCE = '.' + PREPEND_EVENT_LISTENER + ':';
var invokeTask = function (task, target, event) {
// for better performance, check isRemoved which is set
// by removeEventListener
if (task.isRemoved) {
return;
}
var delegate = task.callback;
if (typeof delegate === OBJECT_TYPE && delegate.handleEvent) {
// create the bind version of handleEvent when invoke
task.callback = function (event) { return delegate.handleEvent(event); };
task.originalDelegate = delegate;
}
// invoke static task.invoke
task.invoke(task, target, [event]);
var options = task.options;
if (options && typeof options === 'object' && options.once) {
// if options.once is true, after invoke once remove listener here
// only browser need to do this, nodejs eventEmitter will cal removeListener
// inside EventEmitter.once
var delegate_1 = task.originalDelegate ? task.originalDelegate : task.callback;
target[REMOVE_EVENT_LISTENER].apply(target, [event.type, delegate_1, options]);
}
};
// global shared zoneAwareCallback to handle all event callback with capture = false
var globalZoneAwareCallback = function (event) {
// https://github.com/angular/zone.js/issues/911, in IE, sometimes
// event will be undefined, so we need to use window.event
event = event || _global.event;
if (!event) {
return;
}
// event.target is needed for Samusung TV and SourceBuffer
// || global is needed https://github.com/angular/zone.js/issues/190
var target = this || event.target || _global;
var tasks = target[zoneSymbolEventNames$1[event.type][FALSE_STR]];
if (tasks) {
// invoke all tasks which attached to current target with given event.type and capture = false
// for performance concern, if task.length === 1, just invoke
if (tasks.length === 1) {
invokeTask(tasks[0], target, event);
}
else {
// https://github.com/angular/zone.js/issues/836
// copy the tasks array before invoke, to avoid
// the callback will remove itself or other listener
var copyTasks = tasks.slice();
for (var i = 0; i < copyTasks.length; i++) {
if (event && event[IMMEDIATE_PROPAGATION_SYMBOL] === true) {
break;
}
invokeTask(copyTasks[i], target, event);
}
}
}
};
// global shared zoneAwareCallback to handle all event callback with capture = true
var globalZoneAwareCaptureCallback = function (event) {
// https://github.com/angular/zone.js/issues/911, in IE, sometimes
// event will be undefined, so we need to use window.event
event = event || _global.event;
if (!event) {
return;
}
// event.target is needed for Samusung TV and SourceBuffer
// || global is needed https://github.com/angular/zone.js/issues/190
var target = this || event.target || _global;
var tasks = target[zoneSymbolEventNames$1[event.type][TRUE_STR]];
if (tasks) {
// invoke all tasks which attached to current target with given event.type and capture = false
// for performance concern, if task.length === 1, just invoke
if (tasks.length === 1) {
invokeTask(tasks[0], target, event);
}
else {
// https://github.com/angular/zone.js/issues/836
// copy the tasks array before invoke, to avoid
// the callback will remove itself or other listener
var copyTasks = tasks.slice();
for (var i = 0; i < copyTasks.length; i++) {
if (event && event[IMMEDIATE_PROPAGATION_SYMBOL] === true) {
break;
}
invokeTask(copyTasks[i], target, event);
}
}
}
};
function patchEventTargetMethods(obj, patchOptions) {
if (!obj) {
return false;
}
var useGlobalCallback = true;
if (patchOptions && patchOptions.useGlobalCallback !== undefined) {
useGlobalCallback = patchOptions.useGlobalCallback;
}
var validateHandler = patchOptions && patchOptions.validateHandler;
var checkDuplicate = true;
if (patchOptions && patchOptions.checkDuplicate !== undefined) {
checkDuplicate = patchOptions.checkDuplicate;
}
var returnTarget = false;
if (patchOptions && patchOptions.returnTarget !== undefined) {
returnTarget = patchOptions.returnTarget;
}
var proto = obj;
while (proto && !proto.hasOwnProperty(ADD_EVENT_LISTENER)) {
proto = Object.getPrototypeOf(proto);
}
if (!proto && obj[ADD_EVENT_LISTENER]) {
// somehow we did not find it, but we can see it. This happens on IE for Window properties.
proto = obj;
}
if (!proto) {
return false;
}
if (proto[zoneSymbolAddEventListener]) {
return false;
}
// a shared global taskData to pass data for scheduleEventTask
// so we do not need to create a new object just for pass some data
var taskData = {};
var nativeAddEventListener = proto[zoneSymbolAddEventListener] = proto[ADD_EVENT_LISTENER];
var nativeRemoveEventListener = proto[zoneSymbol(REMOVE_EVENT_LISTENER)] =
proto[REMOVE_EVENT_LISTENER];
var nativeListeners = proto[zoneSymbol(LISTENERS_EVENT_LISTENER)] =
proto[LISTENERS_EVENT_LISTENER];
var nativeRemoveAllListeners = proto[zoneSymbol(REMOVE_ALL_LISTENERS_EVENT_LISTENER)] =
proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER];
var nativePrependEventListener;
if (patchOptions && patchOptions.prependEventListenerFnName) {
nativePrependEventListener = proto[zoneSymbol(patchOptions.prependEventListenerFnName)] =
proto[patchOptions.prependEventListenerFnName];
}
var customScheduleGlobal = function (task) {
// if there is already a task for the eventName + capture,
// just return, because we use the shared globalZoneAwareCallback here.
if (taskData.isExisting) {
return;
}
return nativeAddEventListener.apply(taskData.target, [
taskData.eventName,
taskData.capture ? globalZoneAwareCaptureCallback : globalZoneAwareCallback,
taskData.options
]);
};
var customCancelGlobal = function (task) {
// if task is not marked as isRemoved, this call is directly
// from Zone.prototype.cancelTask, we should remove the task
// from tasksList of target first
if (!task.isRemoved) {
var symbolEventNames = zoneSymbolEventNames$1[task.eventName];
var symbolEventName = void 0;
if (symbolEventNames) {
symbolEventName = symbolEventNames[task.capture ? TRUE_STR : FALSE_STR];
}
var existingTasks = symbolEventName && task.target[symbolEventName];
if (existingTasks) {
for (var i = 0; i < existingTasks.length; i++) {
var existingTask = existingTasks[i];
if (existingTask === task) {
existingTasks.splice(i, 1);
// set isRemoved to data for faster invokeTask check
task.isRemoved = true;
if (existingTasks.length === 0) {
// all tasks for the eventName + capture have gone,
// remove globalZoneAwareCallback and remove the task cache from target
task.allRemoved = true;
task.target[symbolEventName] = null;
}
break;
}
}
}
}
// if all tasks for the eventName + capture have gone,
// we will really remove the global event callback,
// if not, return
if (!task.allRemoved) {
return;
}
return nativeRemoveEventListener.apply(task.target, [
task.eventName, task.capture ? globalZoneAwareCaptureCallback : globalZoneAwareCallback,
task.options
]);
};
var customScheduleNonGlobal = function (task) {
return nativeAddEventListener.apply(taskData.target, [taskData.eventName, task.invoke, taskData.options]);
};
var customSchedulePrepend = function (task) {
return nativePrependEventListener.apply(taskData.target, [taskData.eventName, task.invoke, taskData.options]);
};
var customCancelNonGlobal = function (task) {
return nativeRemoveEventListener.apply(task.target, [task.eventName, task.invoke, task.options]);
};
var customSchedule = useGlobalCallback ? customScheduleGlobal : customScheduleNonGlobal;
var customCancel = useGlobalCallback ? customCancelGlobal : customCancelNonGlobal;
var compareTaskCallbackVsDelegate = function (task, delegate) {
var typeOfDelegate = typeof delegate;
if ((typeOfDelegate === FUNCTION_TYPE && task.callback === delegate) ||
(typeOfDelegate === OBJECT_TYPE && task.originalDelegate === delegate)) {
// same callback, same capture, same event name, just return
return true;
}
return false;
};
var compare = (patchOptions && patchOptions.compareTaskCallbackVsDelegate) ?
patchOptions.compareTaskCallbackVsDelegate :
compareTaskCallbackVsDelegate;
var makeAddListener = function (nativeListener, addSource, customScheduleFn, customCancelFn, returnTarget, prepend) {
if (returnTarget === void 0) { returnTarget = false; }
if (prepend === void 0) { prepend = false; }
return function () {
var target = this || _global;
var targetZone = Zone.current;
var delegate = arguments[1];
if (!delegate) {
return nativeListener.apply(this, arguments);
}
// don't create the bind delegate function for handleEvent
// case here to improve addEventListener performance
// we will create the bind delegate when invoke
var isHandleEvent = false;
if (typeof delegate !== FUNCTION_TYPE) {
if (!delegate.handleEvent) {
return nativeListener.apply(this, arguments);
}
isHandleEvent = true;
}
if (validateHandler && !validateHandler(nativeListener, delegate, target, arguments)) {
return;
}
var eventName = arguments[0];
var options = arguments[2];
var capture;
var once = false;
if (options === undefined) {
capture = false;
}
else if (options === true) {
capture = true;
}
else if (options === false) {
capture = false;
}
else {
capture = options ? !!options.capture : false;
once = options ? !!options.once : false;
}
var zone = Zone.current;
var symbolEventNames = zoneSymbolEventNames$1[eventName];
var symbolEventName;
if (!symbolEventNames) {
// the code is duplicate, but I just want to get some better performance
var falseEventName = eventName + FALSE_STR;
var trueEventName = eventName + TRUE_STR;
var symbol = ZONE_SYMBOL_PREFIX + falseEventName;
var symbolCapture = ZONE_SYMBOL_PREFIX + trueEventName;
zoneSymbolEventNames$1[eventName] = {};
zoneSymbolEventNames$1[eventName][FALSE_STR] = symbol;
zoneSymbolEventNames$1[eventName][TRUE_STR] = symbolCapture;
symbolEventName = capture ? symbolCapture : symbol;
}
else {
symbolEventName = symbolEventNames[capture ? TRUE_STR : FALSE_STR];
}
var existingTasks = target[symbolEventName];
var isExisting = false;
if (existingTasks) {
// already have task registered
isExisting = true;
if (checkDuplicate) {
for (var i = 0; i < existingTasks.length; i++) {
if (compare(existingTasks[i], delegate)) {
// same callback, same capture, same event name, just return
return;
}
}
}
}
else {
existingTasks = target[symbolEventName] = [];
}
var source;
var constructorName = target.constructor[CONSTRUCTOR_NAME];
var targetSource = globalSources[constructorName];
if (targetSource) {
source = targetSource[eventName];
}
if (!source) {
source = constructorName + addSource + eventName;
}
// do not create a new object as task.data to pass those things
// just use the global shared one
taskData.options = options;
if (once) {
// if addEventListener with once options, we don't pass it to
// native addEventListener, instead we keep the once setting
// and handle ourselves.
taskData.options.once = false;
}
taskData.target = target;
taskData.capture = capture;
taskData.eventName = eventName;
taskData.isExisting = isExisting;
var data = useGlobalCallback ? OPTIMIZED_ZONE_EVENT_TASK_DATA : null;
var task = zone.scheduleEventTask(source, delegate, data, customScheduleFn, customCancelFn);
// have to save those information to task in case
// application may call task.zone.cancelTask() directly
if (once) {
options.once = true;
}
task.options = options;
task.target = target;
task.capture = capture;
task.eventName = eventName;
if (isHandleEvent) {
// save original delegate for compare to check duplicate
task.originalDelegate = delegate;
}
if (!prepend) {
existingTasks.push(task);
}
else {
existingTasks.unshift(task);
}
if (returnTarget) {
return target;
}
};
};
proto[ADD_EVENT_LISTENER] = makeAddListener(nativeAddEventListener, ADD_EVENT_LISTENER_SOURCE, customSchedule, customCancel, returnTarget);
if (nativePrependEventListener) {
proto[PREPEND_EVENT_LISTENER] = makeAddListener(nativePrependEventListener, PREPEND_EVENT_LISTENER_SOURCE, customSchedulePrepend, customCancel, returnTarget, true);
}
proto[REMOVE_EVENT_LISTENER] = function () {
var target = this || _global;
var eventName = arguments[0];
var options = arguments[2];
var capture;
if (options === undefined) {
capture = false;
}
else if (options === true) {
capture = true;
}
else if (options === false) {
capture = false;
}
else {
capture = options ? !!options.capture : false;
}
var delegate = arguments[1];
if (!delegate) {
return nativeRemoveEventListener.apply(this, arguments);
}
if (validateHandler &&
!validateHandler(nativeRemoveEventListener, delegate, target, arguments)) {
return;
}
var symbolEventNames = zoneSymbolEventNames$1[eventName];
var symbolEventName;
if (symbolEventNames) {
symbolEventName = symbolEventNames[capture ? TRUE_STR : FALSE_STR];
}
var existingTasks = symbolEventName && target[symbolEventName];
if (existingTasks) {
for (var i = 0; i < existingTasks.length; i++) {
var existingTask = existingTasks[i];
var typeOfDelegate = typeof delegate;
if (compare(existingTask, delegate)) {
existingTasks.splice(i, 1);
// set isRemoved to data for faster invokeTask check
existingTask.isRemoved = true;
if (existingTasks.length === 0) {
// all tasks for the eventName + capture have gone,
// remove globalZoneAwareCallback and remove the task cache from target
existingTask.allRemoved = true;
target[symbolEventName] = null;
}
existingTask.zone.cancelTask(existingTask);
return;
}
}
}
};
proto[LISTENERS_EVENT_LISTENER] = function () {
var target = this || _global;
var eventName = arguments[0];
var listeners = [];
var tasks = findEventTasks(target, eventName);
for (var i = 0; i < tasks.length; i++) {
var task = tasks[i];
var delegate = task.originalDelegate ? task.originalDelegate : task.callback;
listeners.push(delegate);
}
return listeners;
};
proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER] = function () {
var target = this || _global;
var eventName = arguments[0];
if (!eventName) {
var keys = Object.keys(target);
for (var i = 0; i < keys.length; i++) {
var prop = keys[i];
var match = EVENT_NAME_SYMBOL_REGX.exec(prop);
var evtName = match && match[1];
// in nodejs EventEmitter, removeListener event is
// used for monitoring the removeListener call,
// so just keep removeListener eventListener until
// all other eventListeners are removed
if (evtName && evtName !== 'removeListener') {
this[REMOVE_ALL_LISTENERS_EVENT_LISTENER].apply(this, [evtName]);
}
}
// remove removeListener listener finally
this[REMOVE_ALL_LISTENERS_EVENT_LISTENER].apply(this, ['removeListener']);
}
else {
var symbolEventNames = zoneSymbolEventNames$1[eventName];
if (symbolEventNames) {
var symbolEventName = symbolEventNames[FALSE_STR];
var symbolCaptureEventName = symbolEventNames[TRUE_STR];
var tasks = target[symbolEventName];
var captureTasks = target[symbolCaptureEventName];
if (tasks) {
var removeTasks = __spread(tasks);
for (var i = 0; i < removeTasks.length; i++) {
var task = removeTasks[i];
var delegate = task.originalDelegate ? task.originalDelegate : task.callback;
this[REMOVE_EVENT_LISTENER].apply(this, [eventName, delegate, task.options]);
}
}
if (captureTasks) {
var removeTasks = __spread(captureTasks);
for (var i = 0; i < removeTasks.length; i++) {
var task = removeTasks[i];
var delegate = task.originalDelegate ? task.originalDelegate : task.callback;
this[REMOVE_EVENT_LISTENER].apply(this, [eventName, delegate, task.options]);
}
}
}
}
};
// for native toString patch
attachOriginToPatched(proto[ADD_EVENT_LISTENER], nativeAddEventListener);
attachOriginToPatched(proto[REMOVE_EVENT_LISTENER], nativeRemoveEventListener);
if (nativeRemoveAllListeners) {
attachOriginToPatched(proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER], nativeRemoveAllListeners);
}
if (nativeListeners) {
attachOriginToPatched(proto[LISTENERS_EVENT_LISTENER], nativeListeners);
}
return true;
}
var results = [];
for (var i = 0; i < apis.length; i++) {
results[i] = patchEventTargetMethods(apis[i], patchOptions);
}
return results;
}
function findEventTasks(target, eventName) {
var foundTasks = [];
for (var prop in target) {
var match = EVENT_NAME_SYMBOL_REGX.exec(prop);
var evtName = match && match[1];
if (evtName && (!eventName || evtName === eventName)) {
var tasks = target[prop];
if (tasks) {
for (var i = 0; i < tasks.length; i++) {
foundTasks.push(tasks[i]);
}
}
}
}
return foundTasks;
}
function patchEventPrototype(global, api) {
var Event = global['Event'];
if (Event && Event.prototype) {
api.patchMethod(Event.prototype, 'stopImmediatePropagation', function (delegate) { return function (self, args) {
self[IMMEDIATE_PROPAGATION_SYMBOL] = true;
}; });
}
}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @fileoverview
* @suppress {missingRequire}
*/
var taskSymbol = zoneSymbol('zoneTask');
function patchTimer(window, setName, cancelName, nameSuffix) {
var setNative = null;
var clearNative = null;
setName += nameSuffix;
cancelName += nameSuffix;
var tasksByHandleId = {};
var NUMBER = 'number';
var STRING = 'string';
var FUNCTION = 'function';
var INTERVAL = 'Interval';
var TIMEOUT = 'Timeout';
var NOT_SCHEDULED = 'notScheduled';
function scheduleTask(task) {
var data = task.data;
function timer() {
try {
task.invoke.apply(this, arguments);
}
finally {
if (typeof data.handleId === NUMBER) {
// in non-nodejs env, we remove timerId
// from local cache
delete tasksByHandleId[data.handleId];
}
else if (data.handleId) {
// Node returns complex objects as handleIds
// we remove task reference from timer object
data.handleId[taskSymbol] = null;
}
}
}
data.args[0] = timer;
data.handleId = setNative.apply(window, data.args);
return task;
}
function clearTask(task) {
return clearNative(task.data.handleId);
}
setNative =
patchMethod(window, setName, function (delegate) { return function (self, args) {
if (typeof args[0] === FUNCTION) {
var zone = Zone.current;
var options = {
handleId: null,
isPeriodic: nameSuffix === INTERVAL,
delay: (nameSuffix === TIMEOUT || nameSuffix === INTERVAL) ? args[1] || 0 : null,
args: args
};
var task = zone.scheduleMacroTask(setName, args[0], options, scheduleTask, clearTask);
if (!task) {
return task;
}
// Node.js must additionally support the ref and unref functions.
var handle = task.data.handleId;
if (typeof handle === NUMBER) {
// for non nodejs env, we save handleId: task
// mapping in local cache for clearTimeout
tasksByHandleId[handle] = task;
}
else if (handle) {
// for nodejs env, we save task
// reference in timerId Object for clearTimeout
handle[taskSymbol] = task;
}
// check whether handle is null, because some polyfill or browser
// may return undefined from setTimeout/setInterval/setImmediate/requestAnimationFrame
if (handle && handle.ref && handle.unref && typeof handle.ref === FUNCTION &&
typeof handle.unref === FUNCTION) {
task.ref = handle.ref.bind(handle);
task.unref = handle.unref.bind(handle);
}
if (typeof handle === NUMBER || handle) {
return handle;
}
return task;
}
else {
// cause an error by calling it directly.
return delegate.apply(window, args);
}
}; });
clearNative =
patchMethod(window, cancelName, function (delegate) { return function (self, args) {
var id = args[0];
var task;
if (typeof id === NUMBER) {
// non nodejs env.
task = tasksByHandleId[id];
}
else {
// nodejs env.
task = id && id[taskSymbol];
// other environments.
if (!task) {
task = id;
}
}
if (task && typeof task.type === STRING) {
if (task.state !== NOT_SCHEDULED &&
(task.cancelFn && task.data.isPeriodic || task.runCount === 0)) {
if (typeof id === NUMBER) {
delete tasksByHandleId[id];
}
else if (id) {
id[taskSymbol] = null;
}
// Do not cancel already canceled functions
task.zone.cancelTask(task);
}
}
else {
// cause an error by calling it directly.
delegate.apply(window, args);
}
}; });
}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/*
* This is necessary for Chrome and Chrome mobile, to enable
* things like redefining `createdCallback` on an element.
*/
var _defineProperty = Object[zoneSymbol('defineProperty')] = Object.defineProperty;
var _getOwnPropertyDescriptor = Object[zoneSymbol('getOwnPropertyDescriptor')] =
Object.getOwnPropertyDescriptor;
var _create = Object.create;
var unconfigurablesKey = zoneSymbol('unconfigurables');
var PROTOTYPE = 'prototype';
var OBJECT = 'object';
var UNDEFINED$1 = 'undefined';
function propertyPatch() {
Object.defineProperty = function (obj, prop, desc) {
if (isUnconfigurable(obj, prop)) {
throw new TypeError('Cannot assign to read only property \'' + prop + '\' of ' + obj);
}
var originalConfigurableFlag = desc.configurable;
if (prop !== PROTOTYPE) {
desc = rewriteDescriptor(obj, prop, desc);
}
return _tryDefineProperty(obj, prop, desc, originalConfigurableFlag);
};
Object.defineProperties = function (obj, props) {
Object.keys(props).forEach(function (prop) {
Object.defineProperty(obj, prop, props[prop]);
});
return obj;
};
Object.create = function (obj, proto) {
if (typeof proto === OBJECT && !Object.isFrozen(proto)) {
Object.keys(proto).forEach(function (prop) {
proto[prop] = rewriteDescriptor(obj, prop, proto[prop]);
});
}
return _create(obj, proto);
};
Object.getOwnPropertyDescriptor = function (obj, prop) {
var desc = _getOwnPropertyDescriptor(obj, prop);
if (isUnconfigurable(obj, prop)) {
desc.configurable = false;
}
return desc;
};
}
function _redefineProperty(obj, prop, desc) {
var originalConfigurableFlag = desc.configurable;
desc = rewriteDescriptor(obj, prop, desc);
return _tryDefineProperty(obj, prop, desc, originalConfigurableFlag);
}
function isUnconfigurable(obj, prop) {
return obj && obj[unconfigurablesKey] && obj[unconfigurablesKey][prop];
}
function rewriteDescriptor(obj, prop, desc) {
desc.configurable = true;
if (!desc.configurable) {
if (!obj[unconfigurablesKey]) {
_defineProperty(obj, unconfigurablesKey, { writable: true, value: {} });
}
obj[unconfigurablesKey][prop] = true;
}
return desc;
}
function _tryDefineProperty(obj, prop, desc, originalConfigurableFlag) {
try {
return _defineProperty(obj, prop, desc);
}
catch (error) {
if (desc.configurable) {
// In case of errors, when the configurable flag was likely set by rewriteDescriptor(), let's
// retry with the original flag value
if (typeof originalConfigurableFlag == UNDEFINED$1) {
delete desc.configurable;
}
else {
desc.configurable = originalConfigurableFlag;
}
try {
return _defineProperty(obj, prop, desc);
}
catch (error) {
var descJson = null;
try {
descJson = JSON.stringify(desc);
}
catch (error) {
descJson = descJson.toString();
}
console.log("Attempting to configure '" + prop + "' with descriptor '" + descJson + "' on object '" + obj + "' and got error, giving up: " + error);
}
}
else {
throw error;
}
}
}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// we have to patch the instance since the proto is non-configurable
function apply(api, _global) {
var WS = _global.WebSocket;
// On Safari window.EventTarget doesn't exist so need to patch WS add/removeEventListener
// On older Chrome, no need since EventTarget was already patched
if (!_global.EventTarget) {
patchEventTarget(_global, [WS.prototype]);
}
_global.WebSocket = function (a, b) {
var socket = arguments.length > 1 ? new WS(a, b) : new WS(a);
var proxySocket;
var proxySocketProto;
// Safari 7.0 has non-configurable own 'onmessage' and friends properties on the socket instance
var onmessageDesc = Object.getOwnPropertyDescriptor(socket, 'onmessage');
if (onmessageDesc && onmessageDesc.configurable === false) {
proxySocket = Object.create(socket);
// socket have own property descriptor 'onopen', 'onmessage', 'onclose', 'onerror'
// but proxySocket not, so we will keep socket as prototype and pass it to
// patchOnProperties method
proxySocketProto = socket;
['addEventListener', 'removeEventListener', 'send', 'close'].forEach(function (propName) {
proxySocket[propName] = function () {
var args = Array.prototype.slice.call(arguments);
if (propName === 'addEventListener' || propName === 'removeEventListener') {
var eventName = args.length > 0 ? args[0] : undefined;
if (eventName) {
var propertySymbol = Zone.__symbol__('ON_PROPERTY' + eventName);
socket[propertySymbol] = proxySocket[propertySymbol];
}
}
return socket[propName].apply(socket, args);
};
});
}
else {
// we can patch the real socket
proxySocket = socket;
}
patchOnProperties(proxySocket, ['close', 'error', 'message', 'open'], proxySocketProto);
return proxySocket;
};
var globalWebSocket = _global['WebSocket'];
for (var prop in WS) {
globalWebSocket[prop] = WS[prop];
}
}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @fileoverview
* @suppress {globalThis}
*/
var globalEventHandlersEventNames = [
'abort',
'animationcancel',
'animationend',
'animationiteration',
'auxclick',
'beforeinput',
'blur',
'cancel',
'canplay',
'canplaythrough',
'change',
'compositionstart',
'compositionupdate',
'compositionend',
'cuechange',
'click',
'close',
'contextmenu',
'curechange',
'dblclick',
'drag',
'dragend',
'dragenter',
'dragexit',
'dragleave',
'dragover',
'drop',
'durationchange',
'emptied',
'ended',
'error',
'focus',
'focusin',
'focusout',
'gotpointercapture',
'input',
'invalid',
'keydown',
'keypress',
'keyup',
'load',
'loadstart',
'loadeddata',
'loadedmetadata',
'lostpointercapture',
'mousedown',
'mouseenter',
'mouseleave',
'mousemove',
'mouseout',
'mouseover',
'mouseup',
'mousewheel',
'orientationchange',
'pause',
'play',
'playing',
'pointercancel',
'pointerdown',
'pointerenter',
'pointerleave',
'pointerlockchange',
'mozpointerlockchange',
'webkitpointerlockerchange',
'pointerlockerror',
'mozpointerlockerror',
'webkitpointerlockerror',
'pointermove',
'pointout',
'pointerover',
'pointerup',
'progress',
'ratechange',
'reset',
'resize',
'scroll',
'seeked',
'seeking',
'select',
'selectionchange',
'selectstart',
'show',
'sort',
'stalled',
'submit',
'suspend',
'timeupdate',
'volumechange',
'touchcancel',
'touchmove',
'touchstart',
'touchend',
'transitioncancel',
'transitionend',
'waiting',
'wheel'
];
var documentEventNames = [
'afterscriptexecute', 'beforescriptexecute', 'DOMContentLoaded', 'fullscreenchange',
'mozfullscreenchange', 'webkitfullscreenchange', 'msfullscreenchange', 'fullscreenerror',
'mozfullscreenerror', 'webkitfullscreenerror', 'msfullscreenerror', 'readystatechange',
'visibilitychange'
];
var windowEventNames = [
'absolutedeviceorientation',
'afterinput',
'afterprint',
'appinstalled',
'beforeinstallprompt',
'beforeprint',
'beforeunload',
'devicelight',
'devicemotion',
'deviceorientation',
'deviceorientationabsolute',
'deviceproximity',
'hashchange',
'languagechange',
'message',
'mozbeforepaint',
'offline',
'online',
'paint',
'pageshow',
'pagehide',
'popstate',
'rejectionhandled',
'storage',
'unhandledrejection',
'unload',
'userproximity',
'vrdisplyconnected',
'vrdisplaydisconnected',
'vrdisplaypresentchange'
];
var htmlElementEventNames = [
'beforecopy', 'beforecut', 'beforepaste', 'copy', 'cut', 'paste', 'dragstart', 'loadend',
'animationstart', 'search', 'transitionrun', 'transitionstart', 'webkitanimationend',
'webkitanimationiteration', 'webkitanimationstart', 'webkittransitionend'
];
var mediaElementEventNames = ['encrypted', 'waitingforkey', 'msneedkey', 'mozinterruptbegin', 'mozinterruptend'];
var ieElementEventNames = [
'activate',
'afterupdate',
'ariarequest',
'beforeactivate',
'beforedeactivate',
'beforeeditfocus',
'beforeupdate',
'cellchange',
'controlselect',
'dataavailable',
'datasetchanged',
'datasetcomplete',
'errorupdate',
'filterchange',
'layoutcomplete',
'losecapture',
'move',
'moveend',
'movestart',
'propertychange',
'resizeend',
'resizestart',
'rowenter',
'rowexit',
'rowsdelete',
'rowsinserted',
'command',
'compassneedscalibration',
'deactivate',
'help',
'mscontentzoom',
'msmanipulationstatechanged',
'msgesturechange',
'msgesturedoubletap',
'msgestureend',
'msgesturehold',
'msgesturestart',
'msgesturetap',
'msgotpointercapture',
'msinertiastart',
'mslostpointercapture',
'mspointercancel',
'mspointerdown',
'mspointerenter',
'mspointerhover',
'mspointerleave',
'mspointermove',
'mspointerout',
'mspointerover',
'mspointerup',
'pointerout',
'mssitemodejumplistitemremoved',
'msthumbnailclick',
'stop',
'storagecommit'
];
var webglEventNames = ['webglcontextrestored', 'webglcontextlost', 'webglcontextcreationerror'];
var formEventNames = ['autocomplete', 'autocompleteerror'];
var detailEventNames = ['toggle'];
var frameEventNames = ['load'];
var frameSetEventNames = ['blur', 'error', 'focus', 'load', 'resize', 'scroll', 'messageerror'];
var marqueeEventNames = ['bounce', 'finish', 'start'];
var XMLHttpRequestEventNames = [
'loadstart', 'progress', 'abort', 'error', 'load', 'progress', 'timeout', 'loadend',
'readystatechange'
];
var IDBIndexEventNames = ['upgradeneeded', 'complete', 'abort', 'success', 'error', 'blocked', 'versionchange', 'close'];
var websocketEventNames = ['close', 'error', 'open', 'message'];
var workerEventNames = ['error', 'message'];
var eventNames = globalEventHandlersEventNames.concat(webglEventNames, formEventNames, detailEventNames, documentEventNames, windowEventNames, htmlElementEventNames, ieElementEventNames);
function filterProperties(target, onProperties, ignoreProperties) {
if (!ignoreProperties) {
return onProperties;
}
var tip = ignoreProperties.filter(function (ip) { return ip.target === target; });
if (!tip || tip.length === 0) {
return onProperties;
}
var targetIgnoreProperties = tip[0].ignoreProperties;
return onProperties.filter(function (op) { return targetIgnoreProperties.indexOf(op) === -1; });
}
function patchFilteredProperties(target, onProperties, ignoreProperties, prototype) {
var filteredProperties = filterProperties(target, onProperties, ignoreProperties);
patchOnProperties(target, filteredProperties, prototype);
}
function propertyDescriptorPatch(api, _global) {
if (isNode && !isMix) {
return;
}
var supportsWebSocket = typeof WebSocket !== 'undefined';
if (canPatchViaPropertyDescriptor()) {
var ignoreProperties = _global.__Zone_ignore_on_properties;
// for browsers that we can patch the descriptor: Chrome & Firefox
if (isBrowser) {
// in IE/Edge, onProp not exist in window object, but in WindowPrototype
// so we need to pass WindowPrototype to check onProp exist or not
patchFilteredProperties(window, eventNames.concat(['messageerror']), ignoreProperties, Object.getPrototypeOf(window));
patchFilteredProperties(Document.prototype, eventNames, ignoreProperties);
if (typeof window['SVGElement'] !== 'undefined') {
patchFilteredProperties(window['SVGElement'].prototype, eventNames, ignoreProperties);
}
patchFilteredProperties(Element.prototype, eventNames, ignoreProperties);
patchFilteredProperties(HTMLElement.prototype, eventNames, ignoreProperties);
patchFilteredProperties(HTMLMediaElement.prototype, mediaElementEventNames, ignoreProperties);
patchFilteredProperties(HTMLFrameSetElement.prototype, windowEventNames.concat(frameSetEventNames), ignoreProperties);
patchFilteredProperties(HTMLBodyElement.prototype, windowEventNames.concat(frameSetEventNames), ignoreProperties);
patchFilteredProperties(HTMLFrameElement.prototype, frameEventNames, ignoreProperties);
patchFilteredProperties(HTMLIFrameElement.prototype, frameEventNames, ignoreProperties);
var HTMLMarqueeElement_1 = window['HTMLMarqueeElement'];
if (HTMLMarqueeElement_1) {
patchFilteredProperties(HTMLMarqueeElement_1.prototype, marqueeEventNames, ignoreProperties);
}
var Worker_1 = window['Worker'];
if (Worker_1) {
patchFilteredProperties(Worker_1.prototype, workerEventNames, ignoreProperties);
}
}
patchFilteredProperties(XMLHttpRequest.prototype, XMLHttpRequestEventNames, ignoreProperties);
var XMLHttpRequestEventTarget = _global['XMLHttpRequestEventTarget'];
if (XMLHttpRequestEventTarget) {
patchFilteredProperties(XMLHttpRequestEventTarget && XMLHttpRequestEventTarget.prototype, XMLHttpRequestEventNames, ignoreProperties);
}
if (typeof IDBIndex !== 'undefined') {
patchFilteredProperties(IDBIndex.prototype, IDBIndexEventNames, ignoreProperties);
patchFilteredProperties(IDBRequest.prototype, IDBIndexEventNames, ignoreProperties);
patchFilteredProperties(IDBOpenDBRequest.prototype, IDBIndexEventNames, ignoreProperties);
patchFilteredProperties(IDBDatabase.prototype, IDBIndexEventNames, ignoreProperties);
patchFilteredProperties(IDBTransaction.prototype, IDBIndexEventNames, ignoreProperties);
patchFilteredProperties(IDBCursor.prototype, IDBIndexEventNames, ignoreProperties);
}
if (supportsWebSocket) {
patchFilteredProperties(WebSocket.prototype, websocketEventNames, ignoreProperties);
}
}
else {
// Safari, Android browsers (Jelly Bean)
patchViaCapturingAllTheEvents();
patchClass('XMLHttpRequest');
if (supportsWebSocket) {
apply(api, _global);
}
}
}
function canPatchViaPropertyDescriptor() {
if ((isBrowser || isMix) && !Object.getOwnPropertyDescriptor(HTMLElement.prototype, 'onclick') &&
typeof Element !== 'undefined') {
// WebKit https://bugs.webkit.org/show_bug.cgi?id=134364
// IDL interface attributes are not configurable
var desc = Object.getOwnPropertyDescriptor(Element.prototype, 'onclick');
if (desc && !desc.configurable)
return false;
}
var xhrDesc = Object.getOwnPropertyDescriptor(XMLHttpRequest.prototype, 'onreadystatechange');
// add enumerable and configurable here because in opera
// by default XMLHttpRequest.prototype.onreadystatechange is undefined
// without adding enumerable and configurable will cause onreadystatechange
// non-configurable
// and if XMLHttpRequest.prototype.onreadystatechange is undefined,
// we should set a real desc instead a fake one
if (xhrDesc) {
Object.defineProperty(XMLHttpRequest.prototype, 'onreadystatechange', {
enumerable: true,
configurable: true,
get: function () {
return true;
}
});
var req = new XMLHttpRequest();
var result = !!req.onreadystatechange;
// restore original desc
Object.defineProperty(XMLHttpRequest.prototype, 'onreadystatechange', xhrDesc || {});
return result;
}
else {
var SYMBOL_FAKE_ONREADYSTATECHANGE_1 = zoneSymbol('fakeonreadystatechange');
Object.defineProperty(XMLHttpRequest.prototype, 'onreadystatechange', {
enumerable: true,
configurable: true,
get: function () {
return this[SYMBOL_FAKE_ONREADYSTATECHANGE_1];
},
set: function (value) {
this[SYMBOL_FAKE_ONREADYSTATECHANGE_1] = value;
}
});
var req = new XMLHttpRequest();
var detectFunc = function () { };
req.onreadystatechange = detectFunc;
var result = req[SYMBOL_FAKE_ONREADYSTATECHANGE_1] === detectFunc;
req.onreadystatechange = null;
return result;
}
}
var unboundKey = zoneSymbol('unbound');
// Whenever any eventListener fires, we check the eventListener target and all parents
// for `onwhatever` properties and replace them with zone-bound functions
// - Chrome (for now)
function patchViaCapturingAllTheEvents() {
var _loop_1 = function (i) {
var property = eventNames[i];
var onproperty = 'on' + property;
self.addEventListener(property, function (event) {
var elt = event.target, bound, source;
if (elt) {
source = elt.constructor['name'] + '.' + onproperty;
}
else {
source = 'unknown.' + onproperty;
}
while (elt) {
if (elt[onproperty] && !elt[onproperty][unboundKey]) {
bound = Zone.current.wrap(elt[onproperty], source);
bound[unboundKey] = elt[onproperty];
elt[onproperty] = bound;
}
elt = elt.parentElement;
}
}, true);
};
for (var i = 0; i < eventNames.length; i++) {
_loop_1(i);
}
}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function eventTargetPatch(_global, api) {
var WTF_ISSUE_555 = 'Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video';
var NO_EVENT_TARGET = 'ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket'
.split(',');
var EVENT_TARGET = 'EventTarget';
var apis = [];
var isWtf = _global['wtf'];
var WTF_ISSUE_555_ARRAY = WTF_ISSUE_555.split(',');
if (isWtf) {
// Workaround for: https://github.com/google/tracing-framework/issues/555
apis = WTF_ISSUE_555_ARRAY.map(function (v) { return 'HTML' + v + 'Element'; }).concat(NO_EVENT_TARGET);
}
else if (_global[EVENT_TARGET]) {
apis.push(EVENT_TARGET);
}
else {
// Note: EventTarget is not available in all browsers,
// if it's not available, we instead patch the APIs in the IDL that inherit from EventTarget
apis = NO_EVENT_TARGET;
}
var isDisableIECheck = _global['__Zone_disable_IE_check'] || false;
var isEnableCrossContextCheck = _global['__Zone_enable_cross_context_check'] || false;
var ieOrEdge = isIEOrEdge();
var ADD_EVENT_LISTENER_SOURCE = '.addEventListener:';
var FUNCTION_WRAPPER = '[object FunctionWrapper]';
var BROWSER_TOOLS = 'function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }';
// predefine all __zone_symbol__ + eventName + true/false string
for (var i = 0; i < eventNames.length; i++) {
var eventName = eventNames[i];
var falseEventName = eventName + FALSE_STR;
var trueEventName = eventName + TRUE_STR;
var symbol = ZONE_SYMBOL_PREFIX + falseEventName;
var symbolCapture = ZONE_SYMBOL_PREFIX + trueEventName;
zoneSymbolEventNames$1[eventName] = {};
zoneSymbolEventNames$1[eventName][FALSE_STR] = symbol;
zoneSymbolEventNames$1[eventName][TRUE_STR] = symbolCapture;
}
// predefine all task.source string
for (var i = 0; i < WTF_ISSUE_555.length; i++) {
var target = WTF_ISSUE_555_ARRAY[i];
var targets = globalSources[target] = {};
for (var j = 0; j < eventNames.length; j++) {
var eventName = eventNames[j];
targets[eventName] = target + ADD_EVENT_LISTENER_SOURCE + eventName;
}
}
var checkIEAndCrossContext = function (nativeDelegate, delegate, target, args) {
if (!isDisableIECheck && ieOrEdge) {
if (isEnableCrossContextCheck) {
try {
var testString = delegate.toString();
if ((testString === FUNCTION_WRAPPER || testString == BROWSER_TOOLS)) {
nativeDelegate.apply(target, args);
return false;
}
}
catch (error) {
nativeDelegate.apply(target, args);
return false;
}
}
else {
var testString = delegate.toString();
if ((testString === FUNCTION_WRAPPER || testString == BROWSER_TOOLS)) {
nativeDelegate.apply(target, args);
return false;
}
}
}
else if (isEnableCrossContextCheck) {
try {
delegate.toString();
}
catch (error) {
nativeDelegate.apply(target, args);
return false;
}
}
return true;
};
var apiTypes = [];
for (var i = 0; i < apis.length; i++) {
var type = _global[apis[i]];
apiTypes.push(type && type.prototype);
}
patchEventTarget(_global, apiTypes, { validateHandler: checkIEAndCrossContext });
api.patchEventTarget = patchEventTarget;
return true;
}
function patchEvent(global, api) {
patchEventPrototype(global, api);
}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function registerElementPatch(_global) {
if ((!isBrowser && !isMix) || !('registerElement' in _global.document)) {
return;
}
var _registerElement = document.registerElement;
var callbacks = ['createdCallback', 'attachedCallback', 'detachedCallback', 'attributeChangedCallback'];
document.registerElement = function (name, opts) {
if (opts && opts.prototype) {
callbacks.forEach(function (callback) {
var source = 'Document.registerElement::' + callback;
if (opts.prototype.hasOwnProperty(callback)) {
var descriptor = Object.getOwnPropertyDescriptor(opts.prototype, callback);
if (descriptor && descriptor.value) {
descriptor.value = Zone.current.wrap(descriptor.value, source);
_redefineProperty(opts.prototype, callback, descriptor);
}
else {
opts.prototype[callback] = Zone.current.wrap(opts.prototype[callback], source);
}
}
else if (opts.prototype[callback]) {
opts.prototype[callback] = Zone.current.wrap(opts.prototype[callback], source);
}
});
}
return _registerElement.apply(document, [name, opts]);
};
attachOriginToPatched(document.registerElement, _registerElement);
}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @fileoverview
* @suppress {missingRequire}
*/
Zone.__load_patch('util', function (global, Zone, api) {
api.patchOnProperties = patchOnProperties;
api.patchMethod = patchMethod;
});
Zone.__load_patch('timers', function (global, Zone, api) {
var set = 'set';
var clear = 'clear';
patchTimer(global, set, clear, 'Timeout');
patchTimer(global, set, clear, 'Interval');
patchTimer(global, set, clear, 'Immediate');
});
Zone.__load_patch('requestAnimationFrame', function (global, Zone, api) {
patchTimer(global, 'request', 'cancel', 'AnimationFrame');
patchTimer(global, 'mozRequest', 'mozCancel', 'AnimationFrame');
patchTimer(global, 'webkitRequest', 'webkitCancel', 'AnimationFrame');
});
Zone.__load_patch('blocking', function (global, Zone, api) {
var blockingMethods = ['alert', 'prompt', 'confirm'];
for (var i = 0; i < blockingMethods.length; i++) {
var name_1 = blockingMethods[i];
patchMethod(global, name_1, function (delegate, symbol, name) {
return function (s, args) {
return Zone.current.run(delegate, global, args, name);
};
});
}
});
Zone.__load_patch('EventTarget', function (global, Zone, api) {
patchEvent(global, api);
eventTargetPatch(global, api);
// patch XMLHttpRequestEventTarget's addEventListener/removeEventListener
var XMLHttpRequestEventTarget = global['XMLHttpRequestEventTarget'];
if (XMLHttpRequestEventTarget && XMLHttpRequestEventTarget.prototype) {
api.patchEventTarget(global, [XMLHttpRequestEventTarget.prototype]);
}
patchClass('MutationObserver');
patchClass('WebKitMutationObserver');
patchClass('IntersectionObserver');
patchClass('FileReader');
});
Zone.__load_patch('on_property', function (global, Zone, api) {
propertyDescriptorPatch(api, global);
propertyPatch();
registerElementPatch(global);
});
Zone.__load_patch('canvas', function (global, Zone, api) {
var HTMLCanvasElement = global['HTMLCanvasElement'];
if (typeof HTMLCanvasElement !== 'undefined' && HTMLCanvasElement.prototype &&
HTMLCanvasElement.prototype.toBlob) {
patchMacroTask(HTMLCanvasElement.prototype, 'toBlob', function (self, args) {
return { name: 'HTMLCanvasElement.toBlob', target: self, callbackIndex: 0, args: args };
});
}
});
Zone.__load_patch('XHR', function (global, Zone, api) {
// Treat XMLHTTPRequest as a macrotask.
patchXHR(global);
var XHR_TASK = zoneSymbol('xhrTask');
var XHR_SYNC = zoneSymbol('xhrSync');
var XHR_LISTENER = zoneSymbol('xhrListener');
var XHR_SCHEDULED = zoneSymbol('xhrScheduled');
var XHR_URL = zoneSymbol('xhrURL');
function patchXHR(window) {
function findPendingTask(target) {
var pendingTask = target[XHR_TASK];
return pendingTask;
}
var SYMBOL_ADDEVENTLISTENER = zoneSymbol('addEventListener');
var SYMBOL_REMOVEEVENTLISTENER = zoneSymbol('removeEventListener');
var oriAddListener = XMLHttpRequest.prototype[SYMBOL_ADDEVENTLISTENER];
var oriRemoveListener = XMLHttpRequest.prototype[SYMBOL_REMOVEEVENTLISTENER];
if (!oriAddListener) {
var XMLHttpRequestEventTarget = window['XMLHttpRequestEventTarget'];
if (XMLHttpRequestEventTarget) {
oriAddListener = XMLHttpRequestEventTarget.prototype[SYMBOL_ADDEVENTLISTENER];
oriRemoveListener = XMLHttpRequestEventTarget.prototype[SYMBOL_REMOVEEVENTLISTENER];
}
}
var READY_STATE_CHANGE = 'readystatechange';
var SCHEDULED = 'scheduled';
function scheduleTask(task) {
XMLHttpRequest[XHR_SCHEDULED] = false;
var data = task.data;
var target = data.target;
// remove existing event listener
var listener = target[XHR_LISTENER];
if (!oriAddListener) {
oriAddListener = target[SYMBOL_ADDEVENTLISTENER];
oriRemoveListener = target[SYMBOL_REMOVEEVENTLISTENER];
}
if (listener) {
oriRemoveListener.apply(target, [READY_STATE_CHANGE, listener]);
}
var newListener = target[XHR_LISTENER] = function () {
if (target.readyState === target.DONE) {
// sometimes on some browsers XMLHttpRequest will fire onreadystatechange with
// readyState=4 multiple times, so we need to check task state here
if (!data.aborted && XMLHttpRequest[XHR_SCHEDULED] && task.state === SCHEDULED) {
task.invoke();
}
}
};
oriAddListener.apply(target, [READY_STATE_CHANGE, newListener]);
var storedTask = target[XHR_TASK];
if (!storedTask) {
target[XHR_TASK] = task;
}
sendNative.apply(target, data.args);
XMLHttpRequest[XHR_SCHEDULED] = true;
return task;
}
function placeholderCallback() { }
function clearTask(task) {
var data = task.data;
// Note - ideally, we would call data.target.removeEventListener here, but it's too late
// to prevent it from firing. So instead, we store info for the event listener.
data.aborted = true;
return abortNative.apply(data.target, data.args);
}
var openNative = patchMethod(window.XMLHttpRequest.prototype, 'open', function () { return function (self, args) {
self[XHR_SYNC] = args[2] == false;
self[XHR_URL] = args[1];
return openNative.apply(self, args);
}; });
var XMLHTTPREQUEST_SOURCE = 'XMLHttpRequest.send';
var sendNative = patchMethod(window.XMLHttpRequest.prototype, 'send', function () { return function (self, args) {
var zone = Zone.current;
if (self[XHR_SYNC]) {
// if the XHR is sync there is no task to schedule, just execute the code.
return sendNative.apply(self, args);
}
else {
var options = {
target: self,
url: self[XHR_URL],
isPeriodic: false,
delay: null,
args: args,
aborted: false
};
return zone.scheduleMacroTask(XMLHTTPREQUEST_SOURCE, placeholderCallback, options, scheduleTask, clearTask);
}
}; });
var STRING_TYPE = 'string';
var abortNative = patchMethod(window.XMLHttpRequest.prototype, 'abort', function (delegate) { return function (self, args) {
var task = findPendingTask(self);
if (task && typeof task.type == STRING_TYPE) {
// If the XHR has already completed, do nothing.
// If the XHR has already been aborted, do nothing.
// Fix #569, call abort multiple times before done will cause
// macroTask task count be negative number
if (task.cancelFn == null || (task.data && task.data.aborted)) {
return;
}
task.zone.cancelTask(task);
}
// Otherwise, we are trying to abort an XHR which has not yet been sent, so there is no
// task
// to cancel. Do nothing.
}; });
}
});
Zone.__load_patch('geolocation', function (global, Zone, api) {
/// GEO_LOCATION
if (global['navigator'] && global['navigator'].geolocation) {
patchPrototype(global['navigator'].geolocation, ['getCurrentPosition', 'watchPosition']);
}
});
Zone.__load_patch('PromiseRejectionEvent', function (global, Zone, api) {
// handle unhandled promise rejection
function findPromiseRejectionHandler(evtName) {
return function (e) {
var eventTasks = findEventTasks(global, evtName);
eventTasks.forEach(function (eventTask) {
// windows has added unhandledrejection event listener
// trigger the event listener
var PromiseRejectionEvent = global['PromiseRejectionEvent'];
if (PromiseRejectionEvent) {
var evt = new PromiseRejectionEvent(evtName, { promise: e.promise, reason: e.rejection });
eventTask.invoke(evt);
}
});
};
}
if (global['PromiseRejectionEvent']) {
Zone[zoneSymbol('unhandledPromiseRejectionHandler')] =
findPromiseRejectionHandler('unhandledrejection');
Zone[zoneSymbol('rejectionHandledHandler')] =
findPromiseRejectionHandler('rejectionhandled');
}
});
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
})));
|
public/_admin/assets/plugins/jcrop/js/jquery.min.js
|
dwoodard/MediaCloud
|
/*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.match(lt)||[],function(e,n){t[n]=!0}),t}function i(e,n,r,i){if(st.acceptData(e)){var o,a,s=st.expando,u="string"==typeof n,l=e.nodeType,c=l?st.cache:e,f=l?e[s]:e[s]&&s;if(f&&c[f]&&(i||c[f].data)||!u||r!==t)return f||(l?e[s]=f=K.pop()||st.guid++:f=s),c[f]||(c[f]={},l||(c[f].toJSON=st.noop)),("object"==typeof n||"function"==typeof n)&&(i?c[f]=st.extend(c[f],n):c[f].data=st.extend(c[f].data,n)),o=c[f],i||(o.data||(o.data={}),o=o.data),r!==t&&(o[st.camelCase(n)]=r),u?(a=o[n],null==a&&(a=o[st.camelCase(n)])):a=o,a}}function o(e,t,n){if(st.acceptData(e)){var r,i,o,a=e.nodeType,u=a?st.cache:e,l=a?e[st.expando]:st.expando;if(u[l]){if(t&&(r=n?u[l]:u[l].data)){st.isArray(t)?t=t.concat(st.map(t,st.camelCase)):t in r?t=[t]:(t=st.camelCase(t),t=t in r?[t]:t.split(" "));for(i=0,o=t.length;o>i;i++)delete r[t[i]];if(!(n?s:st.isEmptyObject)(r))return}(n||(delete u[l].data,s(u[l])))&&(a?st.cleanData([e],!0):st.support.deleteExpando||u!=u.window?delete u[l]:u[l]=null)}}}function a(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(Nt,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:wt.test(r)?st.parseJSON(r):r}catch(o){}st.data(e,n,r)}else r=t}return r}function s(e){var t;for(t in e)if(("data"!==t||!st.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function u(){return!0}function l(){return!1}function c(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function f(e,t,n){if(t=t||0,st.isFunction(t))return st.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return st.grep(e,function(e){return e===t===n});if("string"==typeof t){var r=st.grep(e,function(e){return 1===e.nodeType});if(Wt.test(t))return st.filter(t,r,!n);t=st.filter(t,r)}return st.grep(e,function(e){return st.inArray(e,t)>=0===n})}function p(e){var t=zt.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function d(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function h(e){var t=e.getAttributeNode("type");return e.type=(t&&t.specified)+"/"+e.type,e}function g(e){var t=nn.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function m(e,t){for(var n,r=0;null!=(n=e[r]);r++)st._data(n,"globalEval",!t||st._data(t[r],"globalEval"))}function y(e,t){if(1===t.nodeType&&st.hasData(e)){var n,r,i,o=st._data(e),a=st._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++)st.event.add(t,n,s[n][r])}a.data&&(a.data=st.extend({},a.data))}}function v(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!st.support.noCloneEvent&&t[st.expando]){r=st._data(t);for(i in r.events)st.removeEvent(t,i,r.handle);t.removeAttribute(st.expando)}"script"===n&&t.text!==e.text?(h(t).text=e.text,g(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),st.support.html5Clone&&e.innerHTML&&!st.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Zt.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 b(e,n){var r,i,o=0,a=e.getElementsByTagName!==t?e.getElementsByTagName(n||"*"):e.querySelectorAll!==t?e.querySelectorAll(n||"*"):t;if(!a)for(a=[],r=e.childNodes||e;null!=(i=r[o]);o++)!n||st.nodeName(i,n)?a.push(i):st.merge(a,b(i,n));return n===t||n&&st.nodeName(e,n)?st.merge([e],a):a}function x(e){Zt.test(e.type)&&(e.defaultChecked=e.checked)}function T(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Nn.length;i--;)if(t=Nn[i]+n,t in e)return t;return r}function w(e,t){return e=t||e,"none"===st.css(e,"display")||!st.contains(e.ownerDocument,e)}function N(e,t){for(var n,r=[],i=0,o=e.length;o>i;i++)n=e[i],n.style&&(r[i]=st._data(n,"olddisplay"),t?(r[i]||"none"!==n.style.display||(n.style.display=""),""===n.style.display&&w(n)&&(r[i]=st._data(n,"olddisplay",S(n.nodeName)))):r[i]||w(n)||st._data(n,"olddisplay",st.css(n,"display")));for(i=0;o>i;i++)n=e[i],n.style&&(t&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=t?r[i]||"":"none"));return e}function C(e,t,n){var r=mn.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function k(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;4>o;o+=2)"margin"===n&&(a+=st.css(e,n+wn[o],!0,i)),r?("content"===n&&(a-=st.css(e,"padding"+wn[o],!0,i)),"margin"!==n&&(a-=st.css(e,"border"+wn[o]+"Width",!0,i))):(a+=st.css(e,"padding"+wn[o],!0,i),"padding"!==n&&(a+=st.css(e,"border"+wn[o]+"Width",!0,i)));return a}function E(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=ln(e),a=st.support.boxSizing&&"border-box"===st.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=un(e,t,o),(0>i||null==i)&&(i=e.style[t]),yn.test(i))return i;r=a&&(st.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+k(e,t,n||(a?"border":"content"),r,o)+"px"}function S(e){var t=V,n=bn[e];return n||(n=A(e,t),"none"!==n&&n||(cn=(cn||st("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(cn[0].contentWindow||cn[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=A(e,t),cn.detach()),bn[e]=n),n}function A(e,t){var n=st(t.createElement(e)).appendTo(t.body),r=st.css(n[0],"display");return n.remove(),r}function j(e,t,n,r){var i;if(st.isArray(t))st.each(t,function(t,i){n||kn.test(e)?r(e,i):j(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==st.type(t))r(e,t);else for(i in t)j(e+"["+i+"]",t[i],n,r)}function D(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(lt)||[];if(st.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function L(e,n,r,i){function o(u){var l;return a[u]=!0,st.each(e[u]||[],function(e,u){var c=u(n,r,i);return"string"!=typeof c||s||a[c]?s?!(l=c):t:(n.dataTypes.unshift(c),o(c),!1)}),l}var a={},s=e===$n;return o(n.dataTypes[0])||!a["*"]&&o("*")}function H(e,n){var r,i,o=st.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((o[r]?e:i||(i={}))[r]=n[r]);return i&&st.extend(!0,e,i),e}function M(e,n,r){var i,o,a,s,u=e.contents,l=e.dataTypes,c=e.responseFields;for(o in c)o in r&&(n[c[o]]=r[o]);for(;"*"===l[0];)l.shift(),i===t&&(i=e.mimeType||n.getResponseHeader("Content-Type"));if(i)for(o in u)if(u[o]&&u[o].test(i)){l.unshift(o);break}if(l[0]in r)a=l[0];else{for(o in r){if(!l[0]||e.converters[o+" "+l[0]]){a=o;break}s||(s=o)}a=a||s}return a?(a!==l[0]&&l.unshift(a),r[a]):t}function q(e,t){var n,r,i,o,a={},s=0,u=e.dataTypes.slice(),l=u[0];if(e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u[1])for(n in e.converters)a[n.toLowerCase()]=e.converters[n];for(;i=u[++s];)if("*"!==i){if("*"!==l&&l!==i){if(n=a[l+" "+i]||a["* "+i],!n)for(r in a)if(o=r.split(" "),o[1]===i&&(n=a[l+" "+o[0]]||a["* "+o[0]])){n===!0?n=a[r]:a[r]!==!0&&(i=o[0],u.splice(s--,0,i));break}if(n!==!0)if(n&&e["throws"])t=n(t);else try{t=n(t)}catch(c){return{state:"parsererror",error:n?c:"No conversion from "+l+" to "+i}}}l=i}return{state:"success",data:t}}function _(){try{return new e.XMLHttpRequest}catch(t){}}function F(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function O(){return setTimeout(function(){Qn=t}),Qn=st.now()}function B(e,t){st.each(t,function(t,n){for(var r=(rr[t]||[]).concat(rr["*"]),i=0,o=r.length;o>i;i++)if(r[i].call(e,t,n))return})}function P(e,t,n){var r,i,o=0,a=nr.length,s=st.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=Qn||O(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;u>a;a++)l.tweens[a].run(o);return s.notifyWith(e,[l,o,n]),1>o&&u?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:st.extend({},t),opts:st.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Qn||O(),duration:n.duration,tweens:[],createTween:function(t,n){var r=st.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)l.tweens[n].run(1);return t?s.resolveWith(e,[l,t]):s.rejectWith(e,[l,t]),this}}),c=l.props;for(R(c,l.opts.specialEasing);a>o;o++)if(r=nr[o].call(l,e,c,l.opts))return r;return B(l,c),st.isFunction(l.opts.start)&&l.opts.start.call(e,l),st.fx.timer(st.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function R(e,t){var n,r,i,o,a;for(n in e)if(r=st.camelCase(n),i=t[r],o=e[n],st.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=st.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}function W(e,t,n){var r,i,o,a,s,u,l,c,f,p=this,d=e.style,h={},g=[],m=e.nodeType&&w(e);n.queue||(c=st._queueHooks(e,"fx"),null==c.unqueued&&(c.unqueued=0,f=c.empty.fire,c.empty.fire=function(){c.unqueued||f()}),c.unqueued++,p.always(function(){p.always(function(){c.unqueued--,st.queue(e,"fx").length||c.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===st.css(e,"display")&&"none"===st.css(e,"float")&&(st.support.inlineBlockNeedsLayout&&"inline"!==S(e.nodeName)?d.zoom=1:d.display="inline-block")),n.overflow&&(d.overflow="hidden",st.support.shrinkWrapBlocks||p.done(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(r in t)if(o=t[r],Zn.exec(o)){if(delete t[r],u=u||"toggle"===o,o===(m?"hide":"show"))continue;g.push(r)}if(a=g.length){s=st._data(e,"fxshow")||st._data(e,"fxshow",{}),"hidden"in s&&(m=s.hidden),u&&(s.hidden=!m),m?st(e).show():p.done(function(){st(e).hide()}),p.done(function(){var t;st._removeData(e,"fxshow");for(t in h)st.style(e,t,h[t])});for(r=0;a>r;r++)i=g[r],l=p.createTween(i,m?s[i]:0),h[i]=s[i]||st.style(e,i),i in s||(s[i]=l.start,m&&(l.end=l.start,l.start="width"===i||"height"===i?1:0))}}function $(e,t,n,r,i){return new $.prototype.init(e,t,n,r,i)}function I(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=wn[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function z(e){return st.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}var X,U,V=e.document,Y=e.location,J=e.jQuery,G=e.$,Q={},K=[],Z="1.9.0",et=K.concat,tt=K.push,nt=K.slice,rt=K.indexOf,it=Q.toString,ot=Q.hasOwnProperty,at=Z.trim,st=function(e,t){return new st.fn.init(e,t,X)},ut=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,lt=/\S+/g,ct=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ft=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,pt=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,dt=/^[\],:{}\s]*$/,ht=/(?:^|:|,)(?:\s*\[)+/g,gt=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,mt=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,yt=/^-ms-/,vt=/-([\da-z])/gi,bt=function(e,t){return t.toUpperCase()},xt=function(){V.addEventListener?(V.removeEventListener("DOMContentLoaded",xt,!1),st.ready()):"complete"===V.readyState&&(V.detachEvent("onreadystatechange",xt),st.ready())};st.fn=st.prototype={jquery:Z,constructor:st,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]:ft.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 st?n[0]:n,st.merge(this,st.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:V,!0)),pt.test(i[1])&&st.isPlainObject(n))for(i in n)st.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(o=V.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=V,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):st.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),st.makeArray(e,this))},selector:"",length:0,size:function(){return this.length},toArray:function(){return nt.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=st.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return st.each(this,e,t)},ready:function(e){return st.ready.promise().done(e),this},slice:function(){return this.pushStack(nt.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(st.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:tt,sort:[].sort,splice:[].splice},st.fn.init.prototype=st.fn,st.extend=st.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},u=2),"object"==typeof s||st.isFunction(s)||(s={}),l===u&&(s=this,--u);l>u;u++)if(null!=(e=arguments[u]))for(n in e)r=s[n],i=e[n],s!==i&&(c&&i&&(st.isPlainObject(i)||(o=st.isArray(i)))?(o?(o=!1,a=r&&st.isArray(r)?r:[]):a=r&&st.isPlainObject(r)?r:{},s[n]=st.extend(c,a,i)):i!==t&&(s[n]=i));return s},st.extend({noConflict:function(t){return e.$===st&&(e.$=G),t&&e.jQuery===st&&(e.jQuery=J),st},isReady:!1,readyWait:1,holdReady:function(e){e?st.readyWait++:st.ready(!0)},ready:function(e){if(e===!0?!--st.readyWait:!st.isReady){if(!V.body)return setTimeout(st.ready);st.isReady=!0,e!==!0&&--st.readyWait>0||(U.resolveWith(V,[st]),st.fn.trigger&&st(V).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===st.type(e)},isArray:Array.isArray||function(e){return"array"===st.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?Q[it.call(e)]||"object":typeof e},isPlainObject:function(e){if(!e||"object"!==st.type(e)||e.nodeType||st.isWindow(e))return!1;try{if(e.constructor&&!ot.call(e,"constructor")&&!ot.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||ot.call(e,r)},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||V;var r=pt.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=st.buildFragment([e],t,i),i&&st(i).remove(),st.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=st.trim(n),n&&dt.test(n.replace(gt,"@").replace(mt,"]").replace(ht,"")))?Function("return "+n)():(st.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||st.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&st.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(yt,"ms-").replace(vt,bt)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,r){var i,o=0,a=e.length,s=n(e);if(r){if(s)for(;a>o&&(i=t.apply(e[o],r),i!==!1);o++);else for(o in e)if(i=t.apply(e[o],r),i===!1)break}else if(s)for(;a>o&&(i=t.call(e[o],o,e[o]),i!==!1);o++);else for(o in e)if(i=t.call(e[o],o,e[o]),i===!1)break;return e},trim:at&&!at.call("\ufeff\u00a0")?function(e){return null==e?"":at.call(e)}:function(e){return null==e?"":(e+"").replace(ct,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(n(Object(e))?st.merge(r,"string"==typeof e?[e]:e):tt.call(r,e)),r},inArray:function(e,t,n){var r;if(t){if(rt)return rt.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 for(;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,r){var i,o=0,a=e.length,s=n(e),u=[];if(s)for(;a>o;o++)i=t(e[o],o,r),null!=i&&(u[u.length]=i);else for(o in e)i=t(e[o],o,r),null!=i&&(u[u.length]=i);return et.apply([],u)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(r=e[n],n=e,e=r),st.isFunction(e)?(i=nt.call(arguments,2),o=function(){return e.apply(n||this,i.concat(nt.call(arguments)))},o.guid=e.guid=e.guid||st.guid++,o):t},access:function(e,n,r,i,o,a,s){var u=0,l=e.length,c=null==r;if("object"===st.type(r)){o=!0;for(u in r)st.access(e,n,u,r[u],!0,a,s)}else if(i!==t&&(o=!0,st.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(st(e),n)})),n))for(;l>u;u++)n(e[u],r,s?i:i.call(e[u],u,n(e[u],r)));return o?e:c?n.call(e):l?n(e[0],r):a},now:function(){return(new Date).getTime()}}),st.ready.promise=function(t){if(!U)if(U=st.Deferred(),"complete"===V.readyState)setTimeout(st.ready);else if(V.addEventListener)V.addEventListener("DOMContentLoaded",xt,!1),e.addEventListener("load",st.ready,!1);else{V.attachEvent("onreadystatechange",xt),e.attachEvent("onload",st.ready);var n=!1;try{n=null==e.frameElement&&V.documentElement}catch(r){}n&&n.doScroll&&function i(){if(!st.isReady){try{n.doScroll("left")}catch(e){return setTimeout(i,50)}st.ready()}}()}return U.promise(t)},st.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){Q["[object "+t+"]"]=t.toLowerCase()}),X=st(V);var Tt={};st.Callbacks=function(e){e="string"==typeof e?Tt[e]||r(e):st.extend({},e);var n,i,o,a,s,u,l=[],c=!e.once&&[],f=function(t){for(n=e.memory&&t,i=!0,u=a||0,a=0,s=l.length,o=!0;l&&s>u;u++)if(l[u].apply(t[0],t[1])===!1&&e.stopOnFalse){n=!1;break}o=!1,l&&(c?c.length&&f(c.shift()):n?l=[]:p.disable())},p={add:function(){if(l){var t=l.length;(function r(t){st.each(t,function(t,n){var i=st.type(n);"function"===i?e.unique&&p.has(n)||l.push(n):n&&n.length&&"string"!==i&&r(n)})})(arguments),o?s=l.length:n&&(a=t,f(n))}return this},remove:function(){return l&&st.each(arguments,function(e,t){for(var n;(n=st.inArray(t,l,n))>-1;)l.splice(n,1),o&&(s>=n&&s--,u>=n&&u--)}),this},has:function(e){return st.inArray(e,l)>-1},empty:function(){return l=[],this},disable:function(){return l=c=n=t,this},disabled:function(){return!l},lock:function(){return c=t,n||p.disable(),this},locked:function(){return!c},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],!l||i&&!c||(o?c.push(t):f(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},st.extend({Deferred:function(e){var t=[["resolve","done",st.Callbacks("once memory"),"resolved"],["reject","fail",st.Callbacks("once memory"),"rejected"],["notify","progress",st.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return st.Deferred(function(n){st.each(t,function(t,o){var a=o[0],s=st.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&st.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?st.extend(e,r):r}},i={};return r.pipe=r.then,st.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,n,r,i=0,o=nt.call(arguments),a=o.length,s=1!==a||e&&st.isFunction(e.promise)?a:0,u=1===s?e:st.Deferred(),l=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?nt.call(arguments):i,r===t?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(t=Array(a),n=Array(a),r=Array(a);a>i;i++)o[i]&&st.isFunction(o[i].promise)?o[i].promise().done(l(i,r,o)).fail(u.reject).progress(l(i,n,t)):--s;return s||u.resolveWith(r,o),u.promise()}}),st.support=function(){var n,r,i,o,a,s,u,l,c,f,p=V.createElement("div");if(p.setAttribute("className","t"),p.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",r=p.getElementsByTagName("*"),i=p.getElementsByTagName("a")[0],!r||!i||!r.length)return{};o=V.createElement("select"),a=o.appendChild(V.createElement("option")),s=p.getElementsByTagName("input")[0],i.style.cssText="top:1px;float:left;opacity:.5",n={getSetAttribute:"t"!==p.className,leadingWhitespace:3===p.firstChild.nodeType,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(i.getAttribute("style")),hrefNormalized:"/a"===i.getAttribute("href"),opacity:/^0.5/.test(i.style.opacity),cssFloat:!!i.style.cssFloat,checkOn:!!s.value,optSelected:a.selected,enctype:!!V.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==V.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===V.compatMode,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},s.checked=!0,n.noCloneChecked=s.cloneNode(!0).checked,o.disabled=!0,n.optDisabled=!a.disabled;try{delete p.test}catch(d){n.deleteExpando=!1}s=V.createElement("input"),s.setAttribute("value",""),n.input=""===s.getAttribute("value"),s.value="t",s.setAttribute("type","radio"),n.radioValue="t"===s.value,s.setAttribute("checked","t"),s.setAttribute("name","t"),u=V.createDocumentFragment(),u.appendChild(s),n.appendChecked=s.checked,n.checkClone=u.cloneNode(!0).cloneNode(!0).lastChild.checked,p.attachEvent&&(p.attachEvent("onclick",function(){n.noCloneEvent=!1}),p.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})p.setAttribute(l="on"+f,"t"),n[f+"Bubbles"]=l in e||p.attributes[l].expando===!1;return p.style.backgroundClip="content-box",p.cloneNode(!0).style.backgroundClip="",n.clearCloneStyle="content-box"===p.style.backgroundClip,st(function(){var r,i,o,a="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",s=V.getElementsByTagName("body")[0];s&&(r=V.createElement("div"),r.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",s.appendChild(r).appendChild(p),p.innerHTML="<table><tr><td></td><td>t</td></tr></table>",o=p.getElementsByTagName("td"),o[0].style.cssText="padding:0;margin:0;border:0;display:none",c=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",n.reliableHiddenOffsets=c&&0===o[0].offsetHeight,p.innerHTML="",p.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%;",n.boxSizing=4===p.offsetWidth,n.doesNotIncludeMarginInBodyOffset=1!==s.offsetTop,e.getComputedStyle&&(n.pixelPosition="1%"!==(e.getComputedStyle(p,null)||{}).top,n.boxSizingReliable="4px"===(e.getComputedStyle(p,null)||{width:"4px"}).width,i=p.appendChild(V.createElement("div")),i.style.cssText=p.style.cssText=a,i.style.marginRight=i.style.width="0",p.style.width="1px",n.reliableMarginRight=!parseFloat((e.getComputedStyle(i,null)||{}).marginRight)),p.style.zoom!==t&&(p.innerHTML="",p.style.cssText=a+"width:1px;padding:1px;display:inline;zoom:1",n.inlineBlockNeedsLayout=3===p.offsetWidth,p.style.display="block",p.innerHTML="<div></div>",p.firstChild.style.width="5px",n.shrinkWrapBlocks=3!==p.offsetWidth,s.style.zoom=1),s.removeChild(r),r=p=o=i=null)}),r=o=u=a=i=s=null,n}();var wt=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,Nt=/([A-Z])/g;st.extend({cache:{},expando:"jQuery"+(Z+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?st.cache[e[st.expando]]:e[st.expando],!!e&&!s(e)},data:function(e,t,n){return i(e,t,n,!1)},removeData:function(e,t){return o(e,t,!1)},_data:function(e,t,n){return i(e,t,n,!0)},_removeData:function(e,t){return o(e,t,!0)},acceptData:function(e){var t=e.nodeName&&st.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),st.fn.extend({data:function(e,n){var r,i,o=this[0],s=0,u=null;if(e===t){if(this.length&&(u=st.data(o),1===o.nodeType&&!st._data(o,"parsedAttrs"))){for(r=o.attributes;r.length>s;s++)i=r[s].name,i.indexOf("data-")||(i=st.camelCase(i.substring(5)),a(o,i,u[i]));st._data(o,"parsedAttrs",!0)}return u}return"object"==typeof e?this.each(function(){st.data(this,e)}):st.access(this,function(n){return n===t?o?a(o,e,st.data(o,e)):null:(this.each(function(){st.data(this,e,n)}),t)},null,n,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){st.removeData(this,e)})}}),st.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=st._data(e,n),r&&(!i||st.isArray(r)?i=st._data(e,n,st.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=st.queue(e,t),r=n.length,i=n.shift(),o=st._queueHooks(e,t),a=function(){st.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),o.cur=i,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 st._data(e,n)||st._data(e,n,{empty:st.Callbacks("once memory").add(function(){st._removeData(e,t+"queue"),st._removeData(e,n)})})}}),st.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?st.queue(this[0],e):n===t?this:this.each(function(){var t=st.queue(this,e,n);st._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&st.dequeue(this,e)})},dequeue:function(e){return this.each(function(){st.dequeue(this,e)})},delay:function(e,t){return e=st.fx?st.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=st.Deferred(),a=this,s=this.length,u=function(){--i||o.resolveWith(a,[a])};for("string"!=typeof e&&(n=e,e=t),e=e||"fx";s--;)r=st._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(u));return u(),o.promise(n)}});var Ct,kt,Et=/[\t\r\n]/g,St=/\r/g,At=/^(?:input|select|textarea|button|object)$/i,jt=/^(?:a|area)$/i,Dt=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,Lt=/^(?:checked|selected)$/i,Ht=st.support.getSetAttribute,Mt=st.support.input;st.fn.extend({attr:function(e,t){return st.access(this,st.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){st.removeAttr(this,e)})},prop:function(e,t){return st.access(this,st.prop,e,t,arguments.length>1)},removeProp:function(e){return e=st.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,u="string"==typeof e&&e;if(st.isFunction(e))return this.each(function(t){st(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(lt)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Et," "):" ")){for(o=0;i=t[o++];)0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=st.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,u=0===arguments.length||"string"==typeof e&&e;if(st.isFunction(e))return this.each(function(t){st(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(lt)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Et," "):"")){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");n.className=e?st.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e,r="boolean"==typeof t;return st.isFunction(e)?this.each(function(n){st(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var i,o=0,a=st(this),s=t,u=e.match(lt)||[];i=u[o++];)s=r?s:!a.hasClass(i),a[s?"addClass":"removeClass"](i);else("undefined"===n||"boolean"===n)&&(this.className&&st._data(this,"__className__",this.className),this.className=this.className||e===!1?"":st._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Et," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=st.isFunction(e),this.each(function(r){var o,a=st(this);1===this.nodeType&&(o=i?e.call(this,r,a.val()):e,null==o?o="":"number"==typeof o?o+="":st.isArray(o)&&(o=st.map(o,function(e){return null==e?"":e+""})),n=st.valHooks[this.type]||st.valHooks[this.nodeName.toLowerCase()],n&&"set"in n&&n.set(this,o,"value")!==t||(this.value=o))});if(o)return n=st.valHooks[o.type]||st.valHooks[o.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(o,"value"))!==t?r:(r=o.value,"string"==typeof r?r.replace(St,""):null==r?"":r)}}}),st.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){for(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,u=0>i?s:o?i:0;s>u;u++)if(n=r[u],!(!n.selected&&u!==i||(st.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&st.nodeName(n.parentNode,"optgroup"))){if(t=st(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n=st.makeArray(t);return st(e).find("option").each(function(){this.selected=st.inArray(st(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attr:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return e.getAttribute===t?st.prop(e,n,r):(a=1!==s||!st.isXMLDoc(e),a&&(n=n.toLowerCase(),o=st.attrHooks[n]||(Dt.test(n)?kt:Ct)),r===t?o&&a&&"get"in o&&null!==(i=o.get(e,n))?i:(e.getAttribute!==t&&(i=e.getAttribute(n)),null==i?t:i):null!==r?o&&a&&"set"in o&&(i=o.set(e,r,n))!==t?i:(e.setAttribute(n,r+""),r):(st.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(lt);if(o&&1===e.nodeType)for(;n=o[i++];)r=st.propFix[n]||n,Dt.test(n)?!Ht&&Lt.test(n)?e[st.camelCase("default-"+n)]=e[r]=!1:e[r]=!1:st.attr(e,n,""),e.removeAttribute(Ht?n:r)},attrHooks:{type:{set:function(e,t){if(!st.support.radioValue&&"radio"===t&&st.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),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,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!st.isXMLDoc(e),a&&(n=st.propFix[n]||n,o=st.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 n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):At.test(e.nodeName)||jt.test(e.nodeName)&&e.href?0:t}}}}),kt={get:function(e,n){var r=st.prop(e,n),i="boolean"==typeof r&&e.getAttribute(n),o="boolean"==typeof r?Mt&&Ht?null!=i:Lt.test(n)?e[st.camelCase("default-"+n)]:!!i:e.getAttributeNode(n);return o&&o.value!==!1?n.toLowerCase():t},set:function(e,t,n){return t===!1?st.removeAttr(e,n):Mt&&Ht||!Lt.test(n)?e.setAttribute(!Ht&&st.propFix[n]||n,n):e[st.camelCase("default-"+n)]=e[n]=!0,n}},Mt&&Ht||(st.attrHooks.value={get:function(e,n){var r=e.getAttributeNode(n);return st.nodeName(e,"input")?e.defaultValue:r&&r.specified?r.value:t
},set:function(e,n,r){return st.nodeName(e,"input")?(e.defaultValue=n,t):Ct&&Ct.set(e,n,r)}}),Ht||(Ct=st.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&("id"===n||"name"===n||"coords"===n?""!==r.value:r.specified)?r.value:t},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}},st.attrHooks.contenteditable={get:Ct.get,set:function(e,t,n){Ct.set(e,""===t?!1:t,n)}},st.each(["width","height"],function(e,n){st.attrHooks[n]=st.extend(st.attrHooks[n],{set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}})})),st.support.hrefNormalized||(st.each(["href","src","width","height"],function(e,n){st.attrHooks[n]=st.extend(st.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return null==r?t:r}})}),st.each(["href","src"],function(e,t){st.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),st.support.style||(st.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),st.support.optSelected||(st.propHooks.selected=st.extend(st.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),st.support.enctype||(st.propFix.enctype="encoding"),st.support.checkOn||st.each(["radio","checkbox"],function(){st.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value}}}),st.each(["radio","checkbox"],function(){st.valHooks[this]=st.extend(st.valHooks[this],{set:function(e,n){return st.isArray(n)?e.checked=st.inArray(st(e).val(),n)>=0:t}})});var qt=/^(?:input|select|textarea)$/i,_t=/^key/,Ft=/^(?:mouse|contextmenu)|click/,Ot=/^(?:focusinfocus|focusoutblur)$/,Bt=/^([^.]*)(?:\.(.+)|)$/;st.event={global:{},add:function(e,n,r,i,o){var a,s,u,l,c,f,p,d,h,g,m,y=3!==e.nodeType&&8!==e.nodeType&&st._data(e);if(y){for(r.handler&&(a=r,r=a.handler,o=a.selector),r.guid||(r.guid=st.guid++),(l=y.events)||(l=y.events={}),(s=y.handle)||(s=y.handle=function(e){return st===t||e&&st.event.triggered===e.type?t:st.event.dispatch.apply(s.elem,arguments)},s.elem=e),n=(n||"").match(lt)||[""],c=n.length;c--;)u=Bt.exec(n[c])||[],h=m=u[1],g=(u[2]||"").split(".").sort(),p=st.event.special[h]||{},h=(o?p.delegateType:p.bindType)||h,p=st.event.special[h]||{},f=st.extend({type:h,origType:m,data:i,handler:r,guid:r.guid,selector:o,needsContext:o&&st.expr.match.needsContext.test(o),namespace:g.join(".")},a),(d=l[h])||(d=l[h]=[],d.delegateCount=0,p.setup&&p.setup.call(e,i,g,s)!==!1||(e.addEventListener?e.addEventListener(h,s,!1):e.attachEvent&&e.attachEvent("on"+h,s))),p.add&&(p.add.call(e,f),f.handler.guid||(f.handler.guid=r.guid)),o?d.splice(d.delegateCount++,0,f):d.push(f),st.event.global[h]=!0;e=null}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,m=st.hasData(e)&&st._data(e);if(m&&(u=m.events)){for(t=(t||"").match(lt)||[""],l=t.length;l--;)if(s=Bt.exec(t[l])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){for(f=st.event.special[d]||{},d=(r?f.delegateType:f.bindType)||d,p=u[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&f.teardown.call(e,h,m.handle)!==!1||st.removeEvent(e,d,m.handle),delete u[d])}else for(d in u)st.event.remove(e,d+t[l],n,r,!0);st.isEmptyObject(u)&&(delete m.handle,st._removeData(e,"events"))}},trigger:function(n,r,i,o){var a,s,u,l,c,f,p,d=[i||V],h=n.type||n,g=n.namespace?n.namespace.split("."):[];if(s=u=i=i||V,3!==i.nodeType&&8!==i.nodeType&&!Ot.test(h+st.event.triggered)&&(h.indexOf(".")>=0&&(g=h.split("."),h=g.shift(),g.sort()),c=0>h.indexOf(":")&&"on"+h,n=n[st.expando]?n:new st.Event(h,"object"==typeof n&&n),n.isTrigger=!0,n.namespace=g.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:st.makeArray(r,[n]),p=st.event.special[h]||{},o||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!o&&!p.noBubble&&!st.isWindow(i)){for(l=p.delegateType||h,Ot.test(l+h)||(s=s.parentNode);s;s=s.parentNode)d.push(s),u=s;u===(i.ownerDocument||V)&&d.push(u.defaultView||u.parentWindow||e)}for(a=0;(s=d[a++])&&!n.isPropagationStopped();)n.type=a>1?l:p.bindType||h,f=(st._data(s,"events")||{})[n.type]&&st._data(s,"handle"),f&&f.apply(s,r),f=c&&s[c],f&&st.acceptData(s)&&f.apply&&f.apply(s,r)===!1&&n.preventDefault();if(n.type=h,!(o||n.isDefaultPrevented()||p._default&&p._default.apply(i.ownerDocument,r)!==!1||"click"===h&&st.nodeName(i,"a")||!st.acceptData(i)||!c||!i[h]||st.isWindow(i))){u=i[c],u&&(i[c]=null),st.event.triggered=h;try{i[h]()}catch(m){}st.event.triggered=t,u&&(i[c]=u)}return n.result}},dispatch:function(e){e=st.event.fix(e);var n,r,i,o,a,s=[],u=nt.call(arguments),l=(st._data(this,"events")||{})[e.type]||[],c=st.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){for(s=st.event.handlers.call(this,e,l),n=0;(o=s[n++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,r=0;(a=o.handlers[r++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(a.namespace))&&(e.handleObj=a,e.data=a.data,i=((st.event.special[a.origType]||{}).handle||a.handler).apply(o.elem,u),i!==t&&(e.result=i)===!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=[],u=n.delegateCount,l=e.target;if(u&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(l.disabled!==!0||"click"!==e.type){for(i=[],r=0;u>r;r++)a=n[r],o=a.selector+" ",i[o]===t&&(i[o]=a.needsContext?st(o,this).index(l)>=0:st.find(o,this,null,[l]).length),i[o]&&i.push(a);i.length&&s.push({elem:l,handlers:i})}return n.length>u&&s.push({elem:this,handlers:n.slice(u)}),s},fix:function(e){if(e[st.expando])return e;var t,n,r=e,i=st.event.fixHooks[e.type]||{},o=i.props?this.props.concat(i.props):this.props;for(e=new st.Event(r),t=o.length;t--;)n=o[t],e[n]=r[n];return e.target||(e.target=r.srcElement||V),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,i.filter?i.filter(e,r):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,a=n.button,s=n.fromElement;return null==e.pageX&&null!=n.clientX&&(r=e.target.ownerDocument||V,i=r.documentElement,o=r.body,e.pageX=n.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),e.pageY=n.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)),!e.relatedTarget&&s&&(e.relatedTarget=s===e.target?n.toElement:s),e.which||a===t||(e.which=1&a?1:2&a?3:4&a?2:0),e}},special:{load:{noBubble:!0},click:{trigger:function(){return st.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t}},focus:{trigger:function(){if(this!==V.activeElement&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===V.activeElement&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=st.extend(new st.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?st.event.trigger(i,null,t):st.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},st.removeEvent=V.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,n,r){var i="on"+n;e.detachEvent&&(e[i]===t&&(e[i]=null),e.detachEvent(i,r))},st.Event=function(e,n){return this instanceof st.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?u:l):this.type=e,n&&st.extend(this,n),this.timeStamp=e&&e.timeStamp||st.now(),this[st.expando]=!0,t):new st.Event(e,n)},st.Event.prototype={isDefaultPrevented:l,isPropagationStopped:l,isImmediatePropagationStopped:l,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=u,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=u,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u,this.stopPropagation()}},st.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){st.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!st.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),st.support.submitBubbles||(st.event.special.submit={setup:function(){return st.nodeName(this,"form")?!1:(st.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=st.nodeName(n,"input")||st.nodeName(n,"button")?n.form:t;r&&!st._data(r,"submitBubbles")&&(st.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),st._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&st.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return st.nodeName(this,"form")?!1:(st.event.remove(this,"._submit"),t)}}),st.support.changeBubbles||(st.event.special.change={setup:function(){return qt.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(st.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),st.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),st.event.simulate("change",this,e,!0)})),!1):(st.event.add(this,"beforeactivate._change",function(e){var t=e.target;qt.test(t.nodeName)&&!st._data(t,"changeBubbles")&&(st.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||st.event.simulate("change",this.parentNode,e,!0)}),st._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 st.event.remove(this,"._change"),!qt.test(this.nodeName)}}),st.support.focusinBubbles||st.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){st.event.simulate(t,e.target,st.event.fix(e),!0)};st.event.special[t]={setup:function(){0===n++&&V.addEventListener(e,r,!0)},teardown:function(){0===--n&&V.removeEventListener(e,r,!0)}}}),st.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(s in e)this.on(s,n,r,e[s],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=l;else if(!i)return this;return 1===o&&(a=i,i=function(e){return st().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=st.guid++)),this.each(function(){st.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,st(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=l),this.each(function(){st.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)},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)},trigger:function(e,t){return this.each(function(){st.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?st.event.trigger(e,n,r,!0):t},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),st.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){st.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)},_t.test(t)&&(st.event.fixHooks[t]=st.event.keyHooks),Ft.test(t)&&(st.event.fixHooks[t]=st.event.mouseHooks)}),function(e,t){function n(e){return ht.test(e+"")}function r(){var e,t=[];return e=function(n,r){return t.push(n+=" ")>C.cacheLength&&delete e[t.shift()],e[n]=r}}function i(e){return e[P]=!0,e}function o(e){var t=L.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}}function a(e,t,n,r){var i,o,a,s,u,l,c,d,h,g;if((t?t.ownerDocument||t:R)!==L&&D(t),t=t||L,n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(!M&&!r){if(i=gt.exec(e))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&O(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return Q.apply(n,K.call(t.getElementsByTagName(e),0)),n;if((a=i[3])&&W.getByClassName&&t.getElementsByClassName)return Q.apply(n,K.call(t.getElementsByClassName(a),0)),n}if(W.qsa&&!q.test(e)){if(c=!0,d=P,h=t,g=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(l=f(e),(c=t.getAttribute("id"))?d=c.replace(vt,"\\$&"):t.setAttribute("id",d),d="[id='"+d+"'] ",u=l.length;u--;)l[u]=d+p(l[u]);h=dt.test(e)&&t.parentNode||t,g=l.join(",")}if(g)try{return Q.apply(n,K.call(h.querySelectorAll(g),0)),n}catch(m){}finally{c||t.removeAttribute("id")}}}return x(e.replace(at,"$1"),t,n,r)}function s(e,t){for(var n=e&&t&&e.nextSibling;n;n=n.nextSibling)if(n===t)return-1;return e?1:-1}function u(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 c(e){return i(function(t){return t=+t,i(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function f(e,t){var n,r,i,o,s,u,l,c=X[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=C.preFilter;s;){(!n||(r=ut.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),u.push(i=[])),n=!1,(r=lt.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(at," ")}),s=s.slice(n.length));for(o in C.filter)!(r=pt[o].exec(s))||l[o]&&!(r=l[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?a.error(e):X(e,u).slice(0)}function p(e){for(var t=0,n=e.length,r="";n>t;t++)r+=e[t].value;return r}function d(e,t,n){var r=t.dir,i=n&&"parentNode"===t.dir,o=I++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,u,l,c=$+" "+o;if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i)if(l=t[P]||(t[P]={}),(u=l[r])&&u[0]===c){if((s=u[1])===!0||s===N)return s===!0}else if(u=l[r]=[c],u[1]=e(t,n,a)||N,u[1]===!0)return!0}}function h(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function g(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;u>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),l&&t.push(s));return a}function m(e,t,n,r,o,a){return r&&!r[P]&&(r=m(r)),o&&!o[P]&&(o=m(o,a)),i(function(i,a,s,u){var l,c,f,p=[],d=[],h=a.length,m=i||b(t||"*",s.nodeType?[s]:s,[]),y=!e||!i&&t?m:g(m,p,e,s,u),v=n?o||(i?e:h||r)?[]:a:y;if(n&&n(y,v,s,u),r)for(l=g(v,d),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(v[d[c]]=!(y[d[c]]=f));if(i){if(o||e){if(o){for(l=[],c=v.length;c--;)(f=v[c])&&l.push(y[c]=f);o(null,v=[],l,u)}for(c=v.length;c--;)(f=v[c])&&(l=o?Z.call(i,f):p[c])>-1&&(i[l]=!(a[l]=f))}}else v=g(v===a?v.splice(h,v.length):v),o?o(null,a,v,u):Q.apply(a,v)})}function y(e){for(var t,n,r,i=e.length,o=C.relative[e[0].type],a=o||C.relative[" "],s=o?1:0,u=d(function(e){return e===t},a,!0),l=d(function(e){return Z.call(t,e)>-1},a,!0),c=[function(e,n,r){return!o&&(r||n!==j)||((t=n).nodeType?u(e,n,r):l(e,n,r))}];i>s;s++)if(n=C.relative[e[s].type])c=[d(h(c),n)];else{if(n=C.filter[e[s].type].apply(null,e[s].matches),n[P]){for(r=++s;i>r&&!C.relative[e[r].type];r++);return m(s>1&&h(c),s>1&&p(e.slice(0,s-1)).replace(at,"$1"),n,r>s&&y(e.slice(s,r)),i>r&&y(e=e.slice(r)),i>r&&p(e))}c.push(n)}return h(c)}function v(e,t){var n=0,r=t.length>0,o=e.length>0,s=function(i,s,u,l,c){var f,p,d,h=[],m=0,y="0",v=i&&[],b=null!=c,x=j,T=i||o&&C.find.TAG("*",c&&s.parentNode||s),w=$+=null==x?1:Math.E;for(b&&(j=s!==L&&s,N=n);null!=(f=T[y]);y++){if(o&&f){for(p=0;d=e[p];p++)if(d(f,s,u)){l.push(f);break}b&&($=w,N=++n)}r&&((f=!d&&f)&&m--,i&&v.push(f))}if(m+=y,r&&y!==m){for(p=0;d=t[p];p++)d(v,h,s,u);if(i){if(m>0)for(;y--;)v[y]||h[y]||(h[y]=G.call(l));h=g(h)}Q.apply(l,h),b&&!i&&h.length>0&&m+t.length>1&&a.uniqueSort(l)}return b&&($=w,j=x),v};return r?i(s):s}function b(e,t,n){for(var r=0,i=t.length;i>r;r++)a(e,t[r],n);return n}function x(e,t,n,r){var i,o,a,s,u,l=f(e);if(!r&&1===l.length){if(o=l[0]=l[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&9===t.nodeType&&!M&&C.relative[o[1].type]){if(t=C.find.ID(a.matches[0].replace(xt,Tt),t)[0],!t)return n;e=e.slice(o.shift().value.length)}for(i=pt.needsContext.test(e)?-1:o.length-1;i>=0&&(a=o[i],!C.relative[s=a.type]);i--)if((u=C.find[s])&&(r=u(a.matches[0].replace(xt,Tt),dt.test(o[0].type)&&t.parentNode||t))){if(o.splice(i,1),e=r.length&&p(o),!e)return Q.apply(n,K.call(r,0)),n;break}}return S(e,l)(r,t,M,n,dt.test(e)),n}function T(){}var w,N,C,k,E,S,A,j,D,L,H,M,q,_,F,O,B,P="sizzle"+-new Date,R=e.document,W={},$=0,I=0,z=r(),X=r(),U=r(),V=typeof t,Y=1<<31,J=[],G=J.pop,Q=J.push,K=J.slice,Z=J.indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(this[t]===e)return t;return-1},et="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",nt=tt.replace("w","w#"),rt="([*^$|!~]?=)",it="\\["+et+"*("+tt+")"+et+"*(?:"+rt+et+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+nt+")|)|)"+et+"*\\]",ot=":("+tt+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+it.replace(3,8)+")*)|.*)\\)|)",at=RegExp("^"+et+"+|((?:^|[^\\\\])(?:\\\\.)*)"+et+"+$","g"),ut=RegExp("^"+et+"*,"+et+"*"),lt=RegExp("^"+et+"*([\\x20\\t\\r\\n\\f>+~])"+et+"*"),ct=RegExp(ot),ft=RegExp("^"+nt+"$"),pt={ID:RegExp("^#("+tt+")"),CLASS:RegExp("^\\.("+tt+")"),NAME:RegExp("^\\[name=['\"]?("+tt+")['\"]?\\]"),TAG:RegExp("^("+tt.replace("w","w*")+")"),ATTR:RegExp("^"+it),PSEUDO:RegExp("^"+ot),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+et+"*(even|odd|(([+-]|)(\\d*)n|)"+et+"*(?:([+-]|)"+et+"*(\\d+)|))"+et+"*\\)|)","i"),needsContext:RegExp("^"+et+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+et+"*((?:-\\d)?\\d*)"+et+"*\\)|)(?=[^-]|$)","i")},dt=/[\x20\t\r\n\f]*[+~]/,ht=/\{\s*\[native code\]\s*\}/,gt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,mt=/^(?:input|select|textarea|button)$/i,yt=/^h\d$/i,vt=/'|\\/g,bt=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,xt=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,Tt=function(e,t){var n="0x"+t-65536;return n!==n?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(55296|n>>10,56320|1023&n)};try{K.call(H.childNodes,0)[0].nodeType}catch(wt){K=function(e){for(var t,n=[];t=this[e];e++)n.push(t);return n}}E=a.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},D=a.setDocument=function(e){var r=e?e.ownerDocument||e:R;return r!==L&&9===r.nodeType&&r.documentElement?(L=r,H=r.documentElement,M=E(r),W.tagNameNoComments=o(function(e){return e.appendChild(r.createComment("")),!e.getElementsByTagName("*").length}),W.attributes=o(function(e){e.innerHTML="<select></select>";var t=typeof e.lastChild.getAttribute("multiple");return"boolean"!==t&&"string"!==t}),W.getByClassName=o(function(e){return e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",e.getElementsByClassName&&e.getElementsByClassName("e").length?(e.lastChild.className="e",2===e.getElementsByClassName("e").length):!1}),W.getByName=o(function(e){e.id=P+0,e.innerHTML="<a name='"+P+"'></a><div name='"+P+"'></div>",H.insertBefore(e,H.firstChild);var t=r.getElementsByName&&r.getElementsByName(P).length===2+r.getElementsByName(P+0).length;return W.getIdNotName=!r.getElementById(P),H.removeChild(e),t}),C.attrHandle=o(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!==V&&"#"===e.firstChild.getAttribute("href")})?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},W.getIdNotName?(C.find.ID=function(e,t){if(typeof t.getElementById!==V&&!M){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},C.filter.ID=function(e){var t=e.replace(xt,Tt);return function(e){return e.getAttribute("id")===t}}):(C.find.ID=function(e,n){if(typeof n.getElementById!==V&&!M){var r=n.getElementById(e);return r?r.id===e||typeof r.getAttributeNode!==V&&r.getAttributeNode("id").value===e?[r]:t:[]}},C.filter.ID=function(e){var t=e.replace(xt,Tt);return function(e){var n=typeof e.getAttributeNode!==V&&e.getAttributeNode("id");return n&&n.value===t}}),C.find.TAG=W.tagNameNoComments?function(e,n){return typeof n.getElementsByTagName!==V?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i];i++)1===n.nodeType&&r.push(n);return r}return o},C.find.NAME=W.getByName&&function(e,n){return typeof n.getElementsByName!==V?n.getElementsByName(name):t},C.find.CLASS=W.getByClassName&&function(e,n){return typeof n.getElementsByClassName===V||M?t:n.getElementsByClassName(e)},_=[],q=[":focus"],(W.qsa=n(r.querySelectorAll))&&(o(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||q.push("\\["+et+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||q.push(":checked")}),o(function(e){e.innerHTML="<input type='hidden' i=''/>",e.querySelectorAll("[i^='']").length&&q.push("[*^$]="+et+"*(?:\"\"|'')"),e.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),q.push(",.*:")})),(W.matchesSelector=n(F=H.matchesSelector||H.mozMatchesSelector||H.webkitMatchesSelector||H.oMatchesSelector||H.msMatchesSelector))&&o(function(e){W.disconnectedMatch=F.call(e,"div"),F.call(e,"[s!='']:x"),_.push("!=",ot)}),q=RegExp(q.join("|")),_=RegExp(_.join("|")),O=n(H.contains)||H.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)for(;t=t.parentNode;)if(t===e)return!0;return!1},B=H.compareDocumentPosition?function(e,t){var n;return e===t?(A=!0,0):(n=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t))?1&n||e.parentNode&&11===e.parentNode.nodeType?e===r||O(R,e)?-1:t===r||O(R,t)?1:0:4&n?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var n,i=0,o=e.parentNode,a=t.parentNode,u=[e],l=[t];if(e===t)return A=!0,0;if(e.sourceIndex&&t.sourceIndex)return(~t.sourceIndex||Y)-(O(R,e)&&~e.sourceIndex||Y);if(!o||!a)return e===r?-1:t===r?1:o?-1:a?1:0;if(o===a)return s(e,t);for(n=e;n=n.parentNode;)u.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;u[i]===l[i];)i++;return i?s(u[i],l[i]):u[i]===R?-1:l[i]===R?1:0},A=!1,[0,0].sort(B),W.detectDuplicates=A,L):L},a.matches=function(e,t){return a(e,null,null,t)},a.matchesSelector=function(e,t){if((e.ownerDocument||e)!==L&&D(e),t=t.replace(bt,"='$1']"),!(!W.matchesSelector||M||_&&_.test(t)||q.test(t)))try{var n=F.call(e,t);if(n||W.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(r){}return a(t,L,null,[e]).length>0},a.contains=function(e,t){return(e.ownerDocument||e)!==L&&D(e),O(e,t)},a.attr=function(e,t){var n;return(e.ownerDocument||e)!==L&&D(e),M||(t=t.toLowerCase()),(n=C.attrHandle[t])?n(e):M||W.attributes?e.getAttribute(t):((n=e.getAttributeNode(t))||e.getAttribute(t))&&e[t]===!0?t:n&&n.specified?n.value:null},a.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},a.uniqueSort=function(e){var t,n=[],r=1,i=0;if(A=!W.detectDuplicates,e.sort(B),A){for(;t=e[r];r++)t===e[r-1]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return e},k=a.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+=k(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=k(t);return n},C=a.selectors={cacheLength:50,createPseudo:i,match:pt,find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(xt,Tt),e[3]=(e[4]||e[5]||"").replace(xt,Tt),"~="===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]||a.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]&&a.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return pt.CHILD.test(e[0])?null:(e[4]?e[2]=e[4]:n&&ct.test(n)&&(t=f(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){return"*"===e?function(){return!0}:(e=e.replace(xt,Tt).toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=z[e+" "];return t||(t=RegExp("(^|"+et+")"+e+"("+et+"|$)"))&&z(e,function(e){return t.test(e.className||typeof e.getAttribute!==V&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=a.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.substr(i.length-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.substr(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,u){var l,c,f,p,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!u&&!s;if(m){if(o){for(;g;){for(f=t;f=f[g];)if(s?f.nodeName.toLowerCase()===y:1===f.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){for(c=m[P]||(m[P]={}),l=c[e]||[],d=l[0]===$&&l[1],p=l[0]===$&&l[2],f=d&&m.childNodes[d];f=++d&&f&&f[g]||(p=d=0)||h.pop();)if(1===f.nodeType&&++p&&f===t){c[e]=[$,d,p];break}}else if(v&&(l=(t[P]||(t[P]={}))[e])&&l[0]===$)p=l[1];else for(;(f=++d&&f&&f[g]||(p=d=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==y:1!==f.nodeType)||!++p||(v&&((f[P]||(f[P]={}))[e]=[$,p]),f!==t)););return p-=i,p===r||0===p%r&&p/r>=0}}},PSEUDO:function(e,t){var n,r=C.pseudos[e]||C.setFilters[e.toLowerCase()]||a.error("unsupported pseudo: "+e);return r[P]?r(t):r.length>1?(n=[e,e,"",t],C.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,n){for(var i,o=r(e,t),a=o.length;a--;)i=Z.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:i(function(e){var t=[],n=[],r=S(e.replace(at,"$1"));return r[P]?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),!n.pop()}}),has:i(function(e){return function(t){return a(e,t).length>0}}),contains:i(function(e){return function(t){return(t.textContent||t.innerText||k(t)).indexOf(e)>-1}}),lang:i(function(e){return ft.test(e||"")||a.error("unsupported lang: "+e),e=e.replace(xt,Tt).toLowerCase(),function(t){var n;do if(n=M?t.getAttribute("xml:lang")||t.getAttribute("lang"):t.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===H},focus:function(e){return e===L.activeElement&&(!L.hasFocus||L.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!C.pseudos.empty(e)},header:function(e){return yt.test(e.nodeName)},input:function(e){return mt.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:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[0>n?n+t:n]}),even:c(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:c(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:c(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:c(function(e,t,n){for(var r=0>n?n+t:n;t>++r;)e.push(r);return e})}};for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[w]=u(w);for(w in{submit:!0,reset:!0})C.pseudos[w]=l(w);S=a.compile=function(e,t){var n,r=[],i=[],o=U[e+" "];if(!o){for(t||(t=f(e)),n=t.length;n--;)o=y(t[n]),o[P]?r.push(o):i.push(o);o=U(e,v(i,r))}return o},C.pseudos.nth=C.pseudos.eq,C.filters=T.prototype=C.pseudos,C.setFilters=new T,D(),a.attr=st.attr,st.find=a,st.expr=a.selectors,st.expr[":"]=st.expr.pseudos,st.unique=a.uniqueSort,st.text=a.getText,st.isXMLDoc=a.isXML,st.contains=a.contains}(e);var Pt=/Until$/,Rt=/^(?:parents|prev(?:Until|All))/,Wt=/^.[^:#\[\.,]*$/,$t=st.expr.match.needsContext,It={children:!0,contents:!0,next:!0,prev:!0};st.fn.extend({find:function(e){var t,n,r;if("string"!=typeof e)return r=this,this.pushStack(st(e).filter(function(){for(t=0;r.length>t;t++)if(st.contains(r[t],this))return!0}));for(n=[],t=0;this.length>t;t++)st.find(e,this[t],n);return n=this.pushStack(st.unique(n)),n.selector=(this.selector?this.selector+" ":"")+e,n},has:function(e){var t,n=st(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(st.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(f(this,e,!1))},filter:function(e){return this.pushStack(f(this,e,!0))},is:function(e){return!!e&&("string"==typeof e?$t.test(e)?st(e,this.context).index(this[0])>=0:st.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=$t.test(e)||"string"!=typeof e?st(e,t||this.context):0;i>r;r++)for(n=this[r];n&&n.ownerDocument&&n!==t&&11!==n.nodeType;){if(a?a.index(n)>-1:st.find.matchesSelector(n,e)){o.push(n);break}n=n.parentNode}return this.pushStack(o.length>1?st.unique(o):o)},index:function(e){return e?"string"==typeof e?st.inArray(this[0],st(e)):st.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?st(e,t):st.makeArray(e&&e.nodeType?[e]:e),r=st.merge(this.get(),n);return this.pushStack(st.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),st.fn.andSelf=st.fn.addBack,st.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return st.dir(e,"parentNode")},parentsUntil:function(e,t,n){return st.dir(e,"parentNode",n)},next:function(e){return c(e,"nextSibling")},prev:function(e){return c(e,"previousSibling")
},nextAll:function(e){return st.dir(e,"nextSibling")},prevAll:function(e){return st.dir(e,"previousSibling")},nextUntil:function(e,t,n){return st.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return st.dir(e,"previousSibling",n)},siblings:function(e){return st.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return st.sibling(e.firstChild)},contents:function(e){return st.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:st.merge([],e.childNodes)}},function(e,t){st.fn[e]=function(n,r){var i=st.map(this,t,n);return Pt.test(e)||(r=n),r&&"string"==typeof r&&(i=st.filter(r,i)),i=this.length>1&&!It[e]?st.unique(i):i,this.length>1&&Rt.test(e)&&(i=i.reverse()),this.pushStack(i)}}),st.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?st.find.matchesSelector(t[0],e)?[t[0]]:[]:st.find.matches(e,t)},dir:function(e,n,r){for(var i=[],o=e[n];o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!st(o).is(r));)1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var zt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Xt=/ jQuery\d+="(?:null|\d+)"/g,Ut=RegExp("<(?:"+zt+")[\\s/>]","i"),Vt=/^\s+/,Yt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Jt=/<([\w:]+)/,Gt=/<tbody/i,Qt=/<|&#?\w+;/,Kt=/<(?:script|style|link)/i,Zt=/^(?:checkbox|radio)$/i,en=/checked\s*(?:[^=]|=\s*.checked.)/i,tn=/^$|\/(?:java|ecma)script/i,nn=/^true\/(.*)/,rn=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,on={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:st.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},an=p(V),sn=an.appendChild(V.createElement("div"));on.optgroup=on.option,on.tbody=on.tfoot=on.colgroup=on.caption=on.thead,on.th=on.td,st.fn.extend({text:function(e){return st.access(this,function(e){return e===t?st.text(this):this.empty().append((this[0]&&this[0].ownerDocument||V).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(st.isFunction(e))return this.each(function(t){st(this).wrapAll(e.call(this,t))});if(this[0]){var t=st(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 st.isFunction(e)?this.each(function(t){st(this).wrapInner(e.call(this,t))}):this.each(function(){var t=st(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=st.isFunction(e);return this.each(function(n){st(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){st.nodeName(this,"body")||st(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.insertBefore(e,this.firstChild)})},before:function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=0;null!=(n=this[r]);r++)(!e||st.filter(e,[n]).length>0)&&(t||1!==n.nodeType||st.cleanData(b(n)),n.parentNode&&(t&&st.contains(n.ownerDocument,n)&&m(b(n,"script")),n.parentNode.removeChild(n)));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&st.cleanData(b(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&st.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 st.clone(this,e,t)})},html:function(e){return st.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(Xt,""):t;if(!("string"!=typeof e||Kt.test(e)||!st.support.htmlSerialize&&Ut.test(e)||!st.support.leadingWhitespace&&Vt.test(e)||on[(Jt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(Yt,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(st.cleanData(b(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){var t=st.isFunction(e);return t||"string"==typeof e||(e=st(e).not(this).detach()),this.domManip([e],!0,function(e){var t=this.nextSibling,n=this.parentNode;(n&&1===this.nodeType||11===this.nodeType)&&(st(this).remove(),t?t.parentNode.insertBefore(e,t):n.appendChild(e))})},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){e=et.apply([],e);var i,o,a,s,u,l,c=0,f=this.length,p=this,m=f-1,y=e[0],v=st.isFunction(y);if(v||!(1>=f||"string"!=typeof y||st.support.checkClone)&&en.test(y))return this.each(function(i){var o=p.eq(i);v&&(e[0]=y.call(this,i,n?o.html():t)),o.domManip(e,n,r)});if(f&&(i=st.buildFragment(e,this[0].ownerDocument,!1,this),o=i.firstChild,1===i.childNodes.length&&(i=o),o)){for(n=n&&st.nodeName(o,"tr"),a=st.map(b(i,"script"),h),s=a.length;f>c;c++)u=i,c!==m&&(u=st.clone(u,!0,!0),s&&st.merge(a,b(u,"script"))),r.call(n&&st.nodeName(this[c],"table")?d(this[c],"tbody"):this[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,st.map(a,g),c=0;s>c;c++)u=a[c],tn.test(u.type||"")&&!st._data(u,"globalEval")&&st.contains(l,u)&&(u.src?st.ajax({url:u.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):st.globalEval((u.text||u.textContent||u.innerHTML||"").replace(rn,"")));i=o=null}return this}}),st.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){st.fn[e]=function(e){for(var n,r=0,i=[],o=st(e),a=o.length-1;a>=r;r++)n=r===a?this:this.clone(!0),st(o[r])[t](n),tt.apply(i,n.get());return this.pushStack(i)}}),st.extend({clone:function(e,t,n){var r,i,o,a,s,u=st.contains(e.ownerDocument,e);if(st.support.html5Clone||st.isXMLDoc(e)||!Ut.test("<"+e.nodeName+">")?s=e.cloneNode(!0):(sn.innerHTML=e.outerHTML,sn.removeChild(s=sn.firstChild)),!(st.support.noCloneEvent&&st.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||st.isXMLDoc(e)))for(r=b(s),i=b(e),a=0;null!=(o=i[a]);++a)r[a]&&v(o,r[a]);if(t)if(n)for(i=i||b(e),r=r||b(s),a=0;null!=(o=i[a]);a++)y(o,r[a]);else y(e,s);return r=b(s,"script"),r.length>0&&m(r,!u&&b(e,"script")),r=i=o=null,s},buildFragment:function(e,t,n,r){for(var i,o,a,s,u,l,c,f=e.length,d=p(t),h=[],g=0;f>g;g++)if(o=e[g],o||0===o)if("object"===st.type(o))st.merge(h,o.nodeType?[o]:o);else if(Qt.test(o)){for(s=s||d.appendChild(t.createElement("div")),a=(Jt.exec(o)||["",""])[1].toLowerCase(),u=on[a]||on._default,s.innerHTML=u[1]+o.replace(Yt,"<$1></$2>")+u[2],c=u[0];c--;)s=s.lastChild;if(!st.support.leadingWhitespace&&Vt.test(o)&&h.push(t.createTextNode(Vt.exec(o)[0])),!st.support.tbody)for(o="table"!==a||Gt.test(o)?"<table>"!==u[1]||Gt.test(o)?0:s:s.firstChild,c=o&&o.childNodes.length;c--;)st.nodeName(l=o.childNodes[c],"tbody")&&!l.childNodes.length&&o.removeChild(l);for(st.merge(h,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=d.lastChild}else h.push(t.createTextNode(o));for(s&&d.removeChild(s),st.support.appendChecked||st.grep(b(h,"input"),x),g=0;o=h[g++];)if((!r||-1===st.inArray(o,r))&&(i=st.contains(o.ownerDocument,o),s=b(d.appendChild(o),"script"),i&&m(s),n))for(c=0;o=s[c++];)tn.test(o.type||"")&&n.push(o);return s=null,d},cleanData:function(e,n){for(var r,i,o,a,s=0,u=st.expando,l=st.cache,c=st.support.deleteExpando,f=st.event.special;null!=(o=e[s]);s++)if((n||st.acceptData(o))&&(i=o[u],r=i&&l[i])){if(r.events)for(a in r.events)f[a]?st.event.remove(o,a):st.removeEvent(o,a,r.handle);l[i]&&(delete l[i],c?delete o[u]:o.removeAttribute!==t?o.removeAttribute(u):o[u]=null,K.push(i))}}});var un,ln,cn,fn=/alpha\([^)]*\)/i,pn=/opacity\s*=\s*([^)]*)/,dn=/^(top|right|bottom|left)$/,hn=/^(none|table(?!-c[ea]).+)/,gn=/^margin/,mn=RegExp("^("+ut+")(.*)$","i"),yn=RegExp("^("+ut+")(?!px)[a-z%]+$","i"),vn=RegExp("^([+-])=("+ut+")","i"),bn={BODY:"block"},xn={position:"absolute",visibility:"hidden",display:"block"},Tn={letterSpacing:0,fontWeight:400},wn=["Top","Right","Bottom","Left"],Nn=["Webkit","O","Moz","ms"];st.fn.extend({css:function(e,n){return st.access(this,function(e,n,r){var i,o,a={},s=0;if(st.isArray(n)){for(i=ln(e),o=n.length;o>s;s++)a[n[s]]=st.css(e,n[s],!1,i);return a}return r!==t?st.style(e,n,r):st.css(e,n)},e,n,arguments.length>1)},show:function(){return N(this,!0)},hide:function(){return N(this)},toggle:function(e){var t="boolean"==typeof e;return this.each(function(){(t?e:w(this))?st(this).show():st(this).hide()})}}),st.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=un(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":st.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,u=st.camelCase(n),l=e.style;if(n=st.cssProps[u]||(st.cssProps[u]=T(l,u)),s=st.cssHooks[n]||st.cssHooks[u],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:l[n];if(a=typeof r,"string"===a&&(o=vn.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(st.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||st.cssNumber[u]||(r+="px"),st.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(l[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{l[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,u=st.camelCase(n);return n=st.cssProps[u]||(st.cssProps[u]=T(e.style,u)),s=st.cssHooks[n]||st.cssHooks[u],s&&"get"in s&&(o=s.get(e,!0,r)),o===t&&(o=un(e,n,i)),"normal"===o&&n in Tn&&(o=Tn[n]),r?(a=parseFloat(o),r===!0||st.isNumeric(a)?a||0:o):o},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}}),e.getComputedStyle?(ln=function(t){return e.getComputedStyle(t,null)},un=function(e,n,r){var i,o,a,s=r||ln(e),u=s?s.getPropertyValue(n)||s[n]:t,l=e.style;return s&&(""!==u||st.contains(e.ownerDocument,e)||(u=st.style(e,n)),yn.test(u)&&gn.test(n)&&(i=l.width,o=l.minWidth,a=l.maxWidth,l.minWidth=l.maxWidth=l.width=u,u=s.width,l.width=i,l.minWidth=o,l.maxWidth=a)),u}):V.documentElement.currentStyle&&(ln=function(e){return e.currentStyle},un=function(e,n,r){var i,o,a,s=r||ln(e),u=s?s[n]:t,l=e.style;return null==u&&l&&l[n]&&(u=l[n]),yn.test(u)&&!dn.test(n)&&(i=l.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),l.left="fontSize"===n?"1em":u,u=l.pixelLeft+"px",l.left=i,a&&(o.left=a)),""===u?"auto":u}),st.each(["height","width"],function(e,n){st.cssHooks[n]={get:function(e,r,i){return r?0===e.offsetWidth&&hn.test(st.css(e,"display"))?st.swap(e,xn,function(){return E(e,n,i)}):E(e,n,i):t},set:function(e,t,r){var i=r&&ln(e);return C(e,t,r?k(e,n,r,st.support.boxSizing&&"border-box"===st.css(e,"boxSizing",!1,i),i):0)}}}),st.support.opacity||(st.cssHooks.opacity={get:function(e,t){return pn.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=st.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===st.trim(o.replace(fn,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=fn.test(o)?o.replace(fn,i):o+" "+i)}}),st(function(){st.support.reliableMarginRight||(st.cssHooks.marginRight={get:function(e,n){return n?st.swap(e,{display:"inline-block"},un,[e,"marginRight"]):t}}),!st.support.pixelPosition&&st.fn.position&&st.each(["top","left"],function(e,n){st.cssHooks[n]={get:function(e,r){return r?(r=un(e,n),yn.test(r)?st(e).position()[n]+"px":r):t}}})}),st.expr&&st.expr.filters&&(st.expr.filters.hidden=function(e){return 0===e.offsetWidth&&0===e.offsetHeight||!st.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||st.css(e,"display"))},st.expr.filters.visible=function(e){return!st.expr.filters.hidden(e)}),st.each({margin:"",padding:"",border:"Width"},function(e,t){st.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];4>r;r++)i[e+wn[r]+t]=o[r]||o[r-2]||o[0];return i}},gn.test(e)||(st.cssHooks[e+t].set=C)});var Cn=/%20/g,kn=/\[\]$/,En=/\r?\n/g,Sn=/^(?:submit|button|image|reset)$/i,An=/^(?:input|select|textarea|keygen)/i;st.fn.extend({serialize:function(){return st.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=st.prop(this,"elements");return e?st.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!st(this).is(":disabled")&&An.test(this.nodeName)&&!Sn.test(e)&&(this.checked||!Zt.test(e))}).map(function(e,t){var n=st(this).val();return null==n?null:st.isArray(n)?st.map(n,function(e){return{name:t.name,value:e.replace(En,"\r\n")}}):{name:t.name,value:n.replace(En,"\r\n")}}).get()}}),st.param=function(e,n){var r,i=[],o=function(e,t){t=st.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=st.ajaxSettings&&st.ajaxSettings.traditional),st.isArray(e)||e.jquery&&!st.isPlainObject(e))st.each(e,function(){o(this.name,this.value)});else for(r in e)j(r,e[r],n,o);return i.join("&").replace(Cn,"+")};var jn,Dn,Ln=st.now(),Hn=/\?/,Mn=/#.*$/,qn=/([?&])_=[^&]*/,_n=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Fn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,On=/^(?:GET|HEAD)$/,Bn=/^\/\//,Pn=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Rn=st.fn.load,Wn={},$n={},In="*/".concat("*");try{Dn=Y.href}catch(zn){Dn=V.createElement("a"),Dn.href="",Dn=Dn.href}jn=Pn.exec(Dn.toLowerCase())||[],st.fn.load=function(e,n,r){if("string"!=typeof e&&Rn)return Rn.apply(this,arguments);var i,o,a,s=this,u=e.indexOf(" ");return u>=0&&(i=e.slice(u,e.length),e=e.slice(0,u)),st.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(o="POST"),s.length>0&&st.ajax({url:e,type:o,dataType:"html",data:n}).done(function(e){a=arguments,s.html(i?st("<div>").append(st.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,a||[e.responseText,t,e])}),this},st.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){st.fn[t]=function(e){return this.on(t,e)}}),st.each(["get","post"],function(e,n){st[n]=function(e,r,i,o){return st.isFunction(r)&&(o=o||i,i=r,r=t),st.ajax({url:e,type:n,dataType:o,data:r,success:i})}}),st.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Dn,type:"GET",isLocal:Fn.test(jn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":In,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"},converters:{"* text":e.String,"text html":!0,"text json":st.parseJSON,"text xml":st.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?H(H(e,st.ajaxSettings),t):H(st.ajaxSettings,e)},ajaxPrefilter:D(Wn),ajaxTransport:D($n),ajax:function(e,n){function r(e,n,r,s){var l,f,v,b,T,N=n;2!==x&&(x=2,u&&clearTimeout(u),i=t,a=s||"",w.readyState=e>0?4:0,r&&(b=M(p,w,r)),e>=200&&300>e||304===e?(p.ifModified&&(T=w.getResponseHeader("Last-Modified"),T&&(st.lastModified[o]=T),T=w.getResponseHeader("etag"),T&&(st.etag[o]=T)),304===e?(l=!0,N="notmodified"):(l=q(p,b),N=l.state,f=l.data,v=l.error,l=!v)):(v=N,(e||!N)&&(N="error",0>e&&(e=0))),w.status=e,w.statusText=(n||N)+"",l?g.resolveWith(d,[f,N,w]):g.rejectWith(d,[w,N,v]),w.statusCode(y),y=t,c&&h.trigger(l?"ajaxSuccess":"ajaxError",[w,p,l?f:v]),m.fireWith(d,[w,N]),c&&(h.trigger("ajaxComplete",[w,p]),--st.active||st.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=t),n=n||{};var i,o,a,s,u,l,c,f,p=st.ajaxSetup({},n),d=p.context||p,h=p.context&&(d.nodeType||d.jquery)?st(d):st.event,g=st.Deferred(),m=st.Callbacks("once memory"),y=p.statusCode||{},v={},b={},x=0,T="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!s)for(s={};t=_n.exec(a);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=b[n]=b[n]||e,v[e]=t),this},overrideMimeType:function(e){return x||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>x)for(t in e)y[t]=[y[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||T;return i&&i.abort(t),r(0,t),this}};if(g.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,p.url=((e||p.url||Dn)+"").replace(Mn,"").replace(Bn,jn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=st.trim(p.dataType||"*").toLowerCase().match(lt)||[""],null==p.crossDomain&&(l=Pn.exec(p.url.toLowerCase()),p.crossDomain=!(!l||l[1]===jn[1]&&l[2]===jn[2]&&(l[3]||("http:"===l[1]?80:443))==(jn[3]||("http:"===jn[1]?80:443)))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=st.param(p.data,p.traditional)),L(Wn,p,n,w),2===x)return w;c=p.global,c&&0===st.active++&&st.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!On.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(Hn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=qn.test(o)?o.replace(qn,"$1_="+Ln++):o+(Hn.test(o)?"&":"?")+"_="+Ln++)),p.ifModified&&(st.lastModified[o]&&w.setRequestHeader("If-Modified-Since",st.lastModified[o]),st.etag[o]&&w.setRequestHeader("If-None-Match",st.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&w.setRequestHeader("Content-Type",p.contentType),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+In+"; q=0.01":""):p.accepts["*"]);for(f in p.headers)w.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(p.beforeSend.call(d,w,p)===!1||2===x))return w.abort();T="abort";for(f in{success:1,error:1,complete:1})w[f](p[f]);if(i=L($n,p,n,w)){w.readyState=1,c&&h.trigger("ajaxSend",[w,p]),p.async&&p.timeout>0&&(u=setTimeout(function(){w.abort("timeout")},p.timeout));try{x=1,i.send(v,r)}catch(N){if(!(2>x))throw N;r(-1,N)}}else r(-1,"No Transport");return w},getScript:function(e,n){return st.get(e,t,n,"script")},getJSON:function(e,t,n){return st.get(e,t,n,"json")}}),st.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return st.globalEval(e),e}}}),st.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),st.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=V.head||st("head")[0]||V.documentElement;return{send:function(t,i){n=V.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 Xn=[],Un=/(=)\?(?=&|$)|\?\?/;st.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xn.pop()||st.expando+"_"+Ln++;return this[e]=!0,e}}),st.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,u=n.jsonp!==!1&&(Un.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Un.test(n.data)&&"data");return u||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=st.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,u?n[u]=n[u].replace(Un,"$1"+o):n.jsonp!==!1&&(n.url+=(Hn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||st.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,Xn.push(o)),s&&st.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Vn,Yn,Jn=0,Gn=e.ActiveXObject&&function(){var e;for(e in Vn)Vn[e](t,!0)};st.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&_()||F()}:_,Yn=st.ajaxSettings.xhr(),st.support.cors=!!Yn&&"withCredentials"in Yn,Yn=st.support.ajax=!!Yn,Yn&&st.ajaxTransport(function(n){if(!n.crossDomain||st.support.cors){var r;return{send:function(i,o){var a,s,u=n.xhr();if(n.username?u.open(n.type,n.url,n.async,n.username,n.password):u.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)u[s]=n.xhrFields[s];n.mimeType&&u.overrideMimeType&&u.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)u.setRequestHeader(s,i[s])}catch(l){}u.send(n.hasContent&&n.data||null),r=function(e,i){var s,l,c,f,p;try{if(r&&(i||4===u.readyState))if(r=t,a&&(u.onreadystatechange=st.noop,Gn&&delete Vn[a]),i)4!==u.readyState&&u.abort();else{f={},s=u.status,p=u.responseXML,c=u.getAllResponseHeaders(),p&&p.documentElement&&(f.xml=p),"string"==typeof u.responseText&&(f.text=u.responseText);try{l=u.statusText}catch(d){l=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=f.text?200:404}}catch(h){i||o(-1,h)}f&&o(s,l,f,c)},n.async?4===u.readyState?setTimeout(r):(a=++Jn,Gn&&(Vn||(Vn={},st(e).unload(Gn)),Vn[a]=r),u.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Qn,Kn,Zn=/^(?:toggle|show|hide)$/,er=RegExp("^(?:([+-])=|)("+ut+")([a-z%]*)$","i"),tr=/queueHooks$/,nr=[W],rr={"*":[function(e,t){var n,r,i=this.createTween(e,t),o=er.exec(t),a=i.cur(),s=+a||0,u=1,l=20;if(o){if(n=+o[2],r=o[3]||(st.cssNumber[e]?"":"px"),"px"!==r&&s){s=st.css(i.elem,e,!0)||n||1;do u=u||".5",s/=u,st.style(i.elem,e,s+r);while(u!==(u=i.cur()/a)&&1!==u&&--l)}i.unit=r,i.start=s,i.end=o[1]?s+(o[1]+1)*n:n}return i}]};st.Animation=st.extend(P,{tweener:function(e,t){st.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;i>r;r++)n=e[r],rr[n]=rr[n]||[],rr[n].unshift(t)},prefilter:function(e,t){t?nr.unshift(e):nr.push(e)}}),st.Tween=$,$.prototype={constructor:$,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||(st.cssNumber[n]?"":"px")},cur:function(){var e=$.propHooks[this.prop];return e&&e.get?e.get(this):$.propHooks._default.get(this)},run:function(e){var t,n=$.propHooks[this.prop];return this.pos=t=this.options.duration?st.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):$.propHooks._default.set(this),this}},$.prototype.init.prototype=$.prototype,$.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=st.css(e.elem,e.prop,"auto"),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){st.fx.step[e.prop]?st.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[st.cssProps[e.prop]]||st.cssHooks[e.prop])?st.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},$.propHooks.scrollTop=$.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},st.each(["toggle","show","hide"],function(e,t){var n=st.fn[t];st.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(I(t,!0),e,r,i)}}),st.fn.extend({fadeTo:function(e,t,n,r){return this.filter(w).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=st.isEmptyObject(e),o=st.speed(t,n,r),a=function(){var t=P(this,st.extend({},e),o);a.finish=function(){t.stop(!0)},(i||st._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=st.timers,a=st._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&tr.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)&&st.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=st._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=st.timers,a=r?r.length:0;for(n.finish=!0,st.queue(this,e,[]),i&&i.cur&&i.cur.finish&&i.cur.finish.call(this),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})}}),st.each({slideDown:I("show"),slideUp:I("hide"),slideToggle:I("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){st.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),st.speed=function(e,t,n){var r=e&&"object"==typeof e?st.extend({},e):{complete:n||!n&&t||st.isFunction(e)&&e,duration:e,easing:n&&t||t&&!st.isFunction(t)&&t};return r.duration=st.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in st.fx.speeds?st.fx.speeds[r.duration]:st.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){st.isFunction(r.old)&&r.old.call(this),r.queue&&st.dequeue(this,r.queue)},r},st.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},st.timers=[],st.fx=$.prototype.init,st.fx.tick=function(){var e,n=st.timers,r=0;for(Qn=st.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||st.fx.stop(),Qn=t},st.fx.timer=function(e){e()&&st.timers.push(e)&&st.fx.start()},st.fx.interval=13,st.fx.start=function(){Kn||(Kn=setInterval(st.fx.tick,st.fx.interval))},st.fx.stop=function(){clearInterval(Kn),Kn=null},st.fx.speeds={slow:600,fast:200,_default:400},st.fx.step={},st.expr&&st.expr.filters&&(st.expr.filters.animated=function(e){return st.grep(st.timers,function(t){return e===t.elem}).length}),st.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){st.offset.setOffset(this,e,t)});var n,r,i={top:0,left:0},o=this[0],a=o&&o.ownerDocument;if(a)return n=a.documentElement,st.contains(n,o)?(o.getBoundingClientRect!==t&&(i=o.getBoundingClientRect()),r=z(a),{top:i.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:i.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):i},st.offset={setOffset:function(e,t,n){var r=st.css(e,"position");"static"===r&&(e.style.position="relative");var i,o,a=st(e),s=a.offset(),u=st.css(e,"top"),l=st.css(e,"left"),c=("absolute"===r||"fixed"===r)&&st.inArray("auto",[u,l])>-1,f={},p={};c?(p=a.position(),i=p.top,o=p.left):(i=parseFloat(u)||0,o=parseFloat(l)||0),st.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(f.top=t.top-s.top+i),null!=t.left&&(f.left=t.left-s.left+o),"using"in t?t.using.call(e,f):a.css(f)}},st.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===st.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),st.nodeName(e[0],"html")||(n=e.offset()),n.top+=st.css(e[0],"borderTopWidth",!0),n.left+=st.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-st.css(r,"marginTop",!0),left:t.left-n.left-st.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||V.documentElement;e&&!st.nodeName(e,"html")&&"static"===st.css(e,"position");)e=e.offsetParent;return e||V.documentElement})}}),st.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);st.fn[e]=function(i){return st.access(this,function(e,i,o){var a=z(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?st(a).scrollLeft():o,r?o:st(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}}),st.each({Height:"height",Width:"width"},function(e,n){st.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){st.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return st.access(this,function(n,r,i){var o;return st.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?st.css(n,r,s):st.style(n,r,i,s)},n,a?i:t,a,null)}})}),e.jQuery=e.$=st,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return st})})(window);
//@ sourceMappingURL=jquery.min.map
|
src/js/views/schedule/item.js
|
npirotte/catchapp
|
var classnames = require('classnames');
var Blink = require('react-blink');
var moment = require('moment');
var React = require('react');
var { Link } = require('../../touchstone');
module.exports = React.createClass({
displayName: 'ScheduleItem',
contextTypes: {
dataStore: React.PropTypes.object.isRequired
},
propTypes: {
onNow: React.PropTypes.bool,
finished: React.PropTypes.bool,
talk: React.PropTypes.object.isRequired
},
renderSpeakers () {
var dataStore = this.context.dataStore
var speakerIds = this.props.talk.speakers;
var speakers = speakerIds.map(speakerId => dataStore.getPerson(speakerId)).filter(speaker => speaker)
return speakers.map((speaker, i) => {
return <img className="ListItem__avatar ScheduleItem__avatar-img" key={'avatar_' + i} src={speaker.picture}/>
})
},
render () {
var onNow = this.props.onNow ? <Blink className="ScheduleItem__now">On Now</Blink> : null;
var talk = this.props.talk;
var linkClassName = classnames('ListItem ScheduleItem', {
'is-past': this.props.finished
}, ('ScheduleItem--' + talk.type));
var avatarWrapperClassName = classnames('ScheduleItem__avatar', {
'ScheduleItem__avatar--multiple': talk.speakers.length > 1
});
var renderTheDisclosureArrow = (talk.type === 'talk') ? <span className="ScheduleItem__avatar-chevron ion-chevron-right" /> : null;
var startTime = moment(talk.startTime).utcOffset('+0200').format('h:mma')
return (
<Link to="main:talk" transition="show-from-right" viewProps={{ talk: talk }} className={linkClassName} component="div">
<div className="ListItem__content ScheduleItem__content">
{onNow}
<div className="ListItem__text ScheduleItem__text">{startTime}</div>
<div className="ListItem__heading ScheduleItem__heading">{talk.title}</div>
</div>
<div className={avatarWrapperClassName}>
{this.renderSpeakers()}
{renderTheDisclosureArrow}
</div>
</Link>
);
}
});
|
ajax/libs/jplayer/2.2.0/extras/jquery.jplayer.combo.min.js
|
aendrew/cdnjs
|
/*! jQuery v1.8.2 -deprecated,-ajax,-ajax/jsonp,-ajax/script,-ajax/xhr 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 gn(){return setTimeout(function(){ln=t},0),ln=v.now()}function yn(e,t){v.each(t,function(t,n){var r=(mn[t]||[]).concat(mn["*"]),i=0,s=r.length;for(;i<s;i++)if(r[i].call(e,t,n))return})}function bn(e,t,n){var r,i=0,s=0,o=vn.length,u=v.Deferred().always(function(){delete a.elem}),a=function(){var t=ln||gn(),n=Math.max(0,f.startTime+f.duration-t),r=1-(n/f.duration||0),i=0,s=f.tweens.length;for(;i<s;i++)f.tweens[i].run(r);return u.notifyWith(e,[f,r,n]),r<1&&s?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:ln||gn(),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;wn(l,f.opts.specialEasing);for(;i<o;i++){r=vn[i].call(f,e,l,f.opts);if(r)return r}return yn(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 wn(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 En(e,t,n){var r,i,s,o,u,a,f,l,c=this,h=e.style,p={},d=[],m=e.nodeType&&Gt(e);n.queue||(f=v._queueHooks(e,"fx"),f.unqueued==null&&(f.unqueued=0,l=f.empty.fire,f.empty.fire=function(){f.unqueued||l()}),f.unqueued++,c.always(function(){c.always(function(){f.unqueued--,v.queue(e,"fx").length||f.empty.fire()})})),e.nodeType===1&&("height"in t||"width"in t)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],v.css(e,"display")==="inline"&&v.css(e,"float")==="none"&&(!v.support.inlineBlockNeedsLayout||nn(e.nodeName)==="inline"?h.display="inline-block":h.zoom=1)),n.overflow&&(h.overflow="hidden",v.support.shrinkWrapBlocks||c.done(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}));for(r in t){s=t[r];if(hn.exec(s)){delete t[r];if(s===(m?"hide":"show"))continue;d.push(r)}}o=d.length;if(o){u=v._data(e,"fxshow")||v._data(e,"fxshow",{}),m?v(e).show():c.done(function(){v(e).hide()}),c.done(function(){var t;v.removeData(e,"fxshow",!0);for(t in p)v.style(e,t,p[t])});for(r=0;r<o;r++)i=d[r],a=c.createTween(i,m?u[i]:0),p[i]=u[i]||v.style(e,i),i in u||(u[i]=a.start,m&&(a.end=a.start,a.start=i==="width"||i==="height"?1:0))}}function Sn(e,t,n,r,i){return new Sn.prototype.init(e,t,n,r,i)}function xn(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 Nn(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.2 -deprecated,-ajax,-ajax/jsonp,-ajax/script,-ajax/xhr",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(" ")?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],r.style.cssText="top:1px;float:left;opacity:.5";if(!n||!n.length)return{};s=i.createElement("select"),o=s.appendChild(i.createElement("option")),u=p.getElementsByTagName("input")[0],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,i,s=e.selectedIndex,o=[],u=e.options,a=e.type==="select-one";if(s<0)return null;n=a?s:0,r=a?s+1:u.length;for(;n<r;n++){i=u[n];if(i.selected&&(v.support.optDisabled?!i.disabled:i.getAttribute("disabled")===null)&&(!i.parentNode.disabled||!v.nodeName(i.parentNode,"optgroup"))){t=v(i).val();if(a)return t;o.push(t)}}return a&&!o.length&&u.length?v(u[s]).val():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)),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,g,!0)))&&(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){if(s&&i)return;var f,l,c,h=[],p=[],d=o.length,v=s||dt(t||"*",u.nodeType?[u]:u,[],s),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){c=lt(g,p),r(c,[],u,a),f=c.length;while(f--)if(l=c[f])g[p[f]]=!(m[p[f]]=l)}if(s){f=e&&g.length;while(f--)if(l=g[f])s[h[f]]=!(o[h[f]]=l)}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,r){var i=0,s=t.length;for(;i<s;i++)nt(e,t[i],n,r);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=k(e,new RegExp("(^|"+O+")"+e+"("+O+"|$)"))),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)},active:function(e){return e===e.ownerDocument.activeElement},first:st(function(e,t,n){return[0]}),last:st(function(e,t,n){return[t-1]}),eq:st(function(e,t,n){return[n<0?n+t:n]}),even:st(function(e,t,n){for(var r=0;r<t;r+=2)e.push(r);return e}),odd:st(function(e,t,n){for(var r=1;r<t;r+=2)e.push(r);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=1;l=h,e.sort(f);if(l)for(;t=e[n];n++)t===e[n-1]&&e.splice(n--,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",":focus"],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||!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||!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))}}}});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={},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[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=/^(?:toggle|show|hide)$/,pn=new RegExp("^(?:([-+])=|)("+m+")([a-z%]*)$","i"),dn=/queueHooks$/,vn=[En],mn={"*":[function(e,t){var n,r,i=this.createTween(e,t),s=pn.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(bn,{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],mn[n]=mn[n]||[],mn[n].unshift(t)},prefilter:function(e,t){t?vn.unshift(e):vn.push(e)}}),v.Tween=Sn,Sn.prototype={constructor:Sn,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=Sn.propHooks[this.prop];return e&&e.get?e.get(this):Sn.propHooks._default.get(this)},run:function(e){var t,n=Sn.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):Sn.propHooks._default.set(this),this}},Sn.prototype.init.prototype=Sn.prototype,Sn.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}}},Sn.propHooks.scrollTop=Sn.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(xn(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=bn(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&&dn.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:xn("show"),slideUp:xn("hide"),slideToggle:xn("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=Sn.prototype.init,v.fx.tick=function(){var e,t=v.timers,n=0;for(;n<t.length;n++)e=t[n],!e()&&t[n]===e&&t.splice(n--,1);t.length||v.fx.stop()},v.fx.timer=function(e){e()&&v.timers.push(e)&&!cn&&(cn=setInterval(v.fx.tick,v.fx.interval))},v.fx.interval=13,v.fx.stop=function(){clearInterval(cn),cn=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 Tn=/^(?: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=Nn(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=Tn.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&&!Tn.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=Nn(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);
/*
* jPlayer Plugin for jQuery JavaScript Library
* http://www.jplayer.org
*
* Copyright (c) 2009 - 2012 Happyworm Ltd
* Dual licensed under the MIT and GPL licenses.
* - http://www.opensource.org/licenses/mit-license.php
* - http://www.gnu.org/copyleft/gpl.html
*
* Author: Mark J Panaghiston
* Version: 2.2.0
* Date: 13th September 2012
*/
(function(b,f){b.fn.jPlayer=function(a){var c="string"===typeof a,d=Array.prototype.slice.call(arguments,1),e=this,a=!c&&d.length?b.extend.apply(null,[!0,a].concat(d)):a;if(c&&"_"===a.charAt(0))return e;c?this.each(function(){var c=b.data(this,"jPlayer"),h=c&&b.isFunction(c[a])?c[a].apply(c,d):c;if(h!==c&&h!==f)return e=h,!1}):this.each(function(){var c=b.data(this,"jPlayer");c?c.option(a||{}):b.data(this,"jPlayer",new b.jPlayer(a,this))});return e};b.jPlayer=function(a,c){if(arguments.length){this.element=
b(c);this.options=b.extend(!0,{},this.options,a);var d=this;this.element.bind("remove.jPlayer",function(){d.destroy()});this._init()}};b.jPlayer.emulateMethods="load play pause";b.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate";b.jPlayer.emulateOptions="muted volume";b.jPlayer.reservedEvent="ready flashreset resize repeat error warning";b.jPlayer.event={ready:"jPlayer_ready",flashreset:"jPlayer_flashreset",resize:"jPlayer_resize",repeat:"jPlayer_repeat",
click:"jPlayer_click",error:"jPlayer_error",warning:"jPlayer_warning",loadstart:"jPlayer_loadstart",progress:"jPlayer_progress",suspend:"jPlayer_suspend",abort:"jPlayer_abort",emptied:"jPlayer_emptied",stalled:"jPlayer_stalled",play:"jPlayer_play",pause:"jPlayer_pause",loadedmetadata:"jPlayer_loadedmetadata",loadeddata:"jPlayer_loadeddata",waiting:"jPlayer_waiting",playing:"jPlayer_playing",canplay:"jPlayer_canplay",canplaythrough:"jPlayer_canplaythrough",seeking:"jPlayer_seeking",seeked:"jPlayer_seeked",
timeupdate:"jPlayer_timeupdate",ended:"jPlayer_ended",ratechange:"jPlayer_ratechange",durationchange:"jPlayer_durationchange",volumechange:"jPlayer_volumechange"};b.jPlayer.htmlEvent="loadstart abort emptied stalled loadedmetadata loadeddata canplay canplaythrough ratechange".split(" ");b.jPlayer.pause=function(){b.each(b.jPlayer.prototype.instances,function(a,c){c.data("jPlayer").status.srcSet&&c.jPlayer("pause")})};b.jPlayer.timeFormat={showHour:!1,showMin:!0,showSec:!0,padHour:!1,padMin:!0,padSec:!0,
sepHour:":",sepMin:":",sepSec:""};b.jPlayer.convertTime=function(a){var c=new Date(1E3*a),d=c.getUTCHours(),a=c.getUTCMinutes(),c=c.getUTCSeconds(),d=b.jPlayer.timeFormat.padHour&&10>d?"0"+d:d,a=b.jPlayer.timeFormat.padMin&&10>a?"0"+a:a,c=b.jPlayer.timeFormat.padSec&&10>c?"0"+c:c;return(b.jPlayer.timeFormat.showHour?d+b.jPlayer.timeFormat.sepHour:"")+(b.jPlayer.timeFormat.showMin?a+b.jPlayer.timeFormat.sepMin:"")+(b.jPlayer.timeFormat.showSec?c+b.jPlayer.timeFormat.sepSec:"")};b.jPlayer.uaBrowser=
function(a){var a=a.toLowerCase(),c=/(opera)(?:.*version)?[ \/]([\w.]+)/,b=/(msie) ([\w.]+)/,e=/(mozilla)(?:.*? rv:([\w.]+))?/,a=/(webkit)[ \/]([\w.]+)/.exec(a)||c.exec(a)||b.exec(a)||0>a.indexOf("compatible")&&e.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}};b.jPlayer.uaPlatform=function(a){var b=a.toLowerCase(),d=/(android)/,e=/(mobile)/,a=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/.exec(b)||[],b=/(ipad|playbook)/.exec(b)||!e.exec(b)&&d.exec(b)||[];a[1]&&(a[1]=a[1].replace(/\s/g,
"_"));return{platform:a[1]||"",tablet:b[1]||""}};b.jPlayer.browser={};b.jPlayer.platform={};var i=b.jPlayer.uaBrowser(navigator.userAgent);i.browser&&(b.jPlayer.browser[i.browser]=!0,b.jPlayer.browser.version=i.version);i=b.jPlayer.uaPlatform(navigator.userAgent);i.platform&&(b.jPlayer.platform[i.platform]=!0,b.jPlayer.platform.mobile=!i.tablet,b.jPlayer.platform.tablet=!!i.tablet);b.jPlayer.prototype={count:0,version:{script:"2.2.0",needFlash:"2.2.0",flash:"unknown"},options:{swfPath:"js",solution:"html, flash",
supplied:"mp3",preload:"metadata",volume:0.8,muted:!1,wmode:"opaque",backgroundColor:"#000000",cssSelectorAncestor:"#jp_container_1",cssSelector:{videoPlay:".jp-video-play",play:".jp-play",pause:".jp-pause",stop:".jp-stop",seekBar:".jp-seek-bar",playBar:".jp-play-bar",mute:".jp-mute",unmute:".jp-unmute",volumeBar:".jp-volume-bar",volumeBarValue:".jp-volume-bar-value",volumeMax:".jp-volume-max",currentTime:".jp-current-time",duration:".jp-duration",fullScreen:".jp-full-screen",restoreScreen:".jp-restore-screen",
repeat:".jp-repeat",repeatOff:".jp-repeat-off",gui:".jp-gui",noSolution:".jp-no-solution"},fullScreen:!1,autohide:{restored:!1,full:!0,fadeIn:200,fadeOut:600,hold:1E3},loop:!1,repeat:function(a){a.jPlayer.options.loop?b(this).unbind(".jPlayerRepeat").bind(b.jPlayer.event.ended+".jPlayer.jPlayerRepeat",function(){b(this).jPlayer("play")}):b(this).unbind(".jPlayerRepeat")},nativeVideoControls:{},noFullScreen:{msie:/msie [0-6]/,ipad:/ipad.*?os [0-4]/,iphone:/iphone/,ipod:/ipod/,android_pad:/android [0-3](?!.*?mobile)/,
android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,webos:/webos/},noVolume:{ipad:/ipad/,iphone:/iphone/,ipod:/ipod/,android_pad:/android(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,webos:/webos/,playbook:/playbook/},verticalVolume:!1,idPrefix:"jp",noConflict:"jQuery",emulateHtml:!1,errorAlerts:!1,warningAlerts:!1},optionsAudio:{size:{width:"0px",height:"0px",cssClass:""},sizeFull:{width:"0px",height:"0px",cssClass:""}},
optionsVideo:{size:{width:"480px",height:"270px",cssClass:"jp-video-270p"},sizeFull:{width:"100%",height:"100%",cssClass:"jp-video-full"}},instances:{},status:{src:"",media:{},paused:!0,format:{},formatType:"",waitForPlay:!0,waitForLoad:!0,srcSet:!1,video:!1,seekPercent:0,currentPercentRelative:0,currentPercentAbsolute:0,currentTime:0,duration:0,readyState:0,networkState:0,playbackRate:1,ended:0},internal:{ready:!1},solution:{html:!0,flash:!0},format:{mp3:{codec:'audio/mpeg; codecs="mp3"',flashCanPlay:!0,
media:"audio"},m4a:{codec:'audio/mp4; codecs="mp4a.40.2"',flashCanPlay:!0,media:"audio"},oga:{codec:'audio/ogg; codecs="vorbis"',flashCanPlay:!1,media:"audio"},wav:{codec:'audio/wav; codecs="1"',flashCanPlay:!1,media:"audio"},webma:{codec:'audio/webm; codecs="vorbis"',flashCanPlay:!1,media:"audio"},fla:{codec:"audio/x-flv",flashCanPlay:!0,media:"audio"},rtmpa:{codec:'audio/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"audio"},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!0,media:"video"},
ogv:{codec:'video/ogg; codecs="theora, vorbis"',flashCanPlay:!1,media:"video"},webmv:{codec:'video/webm; codecs="vorbis, vp8"',flashCanPlay:!1,media:"video"},flv:{codec:"video/x-flv",flashCanPlay:!0,media:"video"},rtmpv:{codec:'video/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"video"}},_init:function(){var a=this;this.element.empty();this.status=b.extend({},this.status);this.internal=b.extend({},this.internal);this.internal.domNode=this.element.get(0);this.formats=[];this.solutions=[];this.require=
{};this.htmlElement={};this.html={};this.html.audio={};this.html.video={};this.flash={};this.css={};this.css.cs={};this.css.jq={};this.ancestorJq=[];this.options.volume=this._limitValue(this.options.volume,0,1);b.each(this.options.supplied.toLowerCase().split(","),function(c,d){var e=d.replace(/^\s+|\s+$/g,"");if(a.format[e]){var f=false;b.each(a.formats,function(a,b){if(e===b){f=true;return false}});f||a.formats.push(e)}});b.each(this.options.solution.toLowerCase().split(","),function(c,d){var e=
d.replace(/^\s+|\s+$/g,"");if(a.solution[e]){var f=false;b.each(a.solutions,function(a,b){if(e===b){f=true;return false}});f||a.solutions.push(e)}});this.internal.instance="jp_"+this.count;this.instances[this.internal.instance]=this.element;this.element.attr("id")||this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count);this.internal.self=b.extend({},{id:this.element.attr("id"),jq:this.element});this.internal.audio=b.extend({},{id:this.options.idPrefix+"_audio_"+this.count,jq:f});this.internal.video=
b.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:f});this.internal.flash=b.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:f,swf:this.options.swfPath+(this.options.swfPath.toLowerCase().slice(-4)!==".swf"?(this.options.swfPath&&this.options.swfPath.slice(-1)!=="/"?"/":"")+"Jplayer.swf":"")});this.internal.poster=b.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:f});b.each(b.jPlayer.event,function(b,c){if(a.options[b]!==f){a.element.bind(c+".jPlayer",a.options[b]);
a.options[b]=f}});this.require.audio=false;this.require.video=false;b.each(this.formats,function(b,c){a.require[a.format[c].media]=true});this.options=this.require.video?b.extend(true,{},this.optionsVideo,this.options):b.extend(true,{},this.optionsAudio,this.options);this._setSize();this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this.status.noFullScreen=this._uaBlocklist(this.options.noFullScreen);this.status.noVolume=this._uaBlocklist(this.options.noVolume);this._restrictNativeVideoControls();
this.htmlElement.poster=document.createElement("img");this.htmlElement.poster.id=this.internal.poster.id;this.htmlElement.poster.onload=function(){(!a.status.video||a.status.waitForPlay)&&a.internal.poster.jq.show()};this.element.append(this.htmlElement.poster);this.internal.poster.jq=b("#"+this.internal.poster.id);this.internal.poster.jq.css({width:this.status.width,height:this.status.height});this.internal.poster.jq.hide();this.internal.poster.jq.bind("click.jPlayer",function(){a._trigger(b.jPlayer.event.click)});
this.html.audio.available=false;if(this.require.audio){this.htmlElement.audio=document.createElement("audio");this.htmlElement.audio.id=this.internal.audio.id;this.html.audio.available=!!this.htmlElement.audio.canPlayType&&this._testCanPlayType(this.htmlElement.audio)}this.html.video.available=false;if(this.require.video){this.htmlElement.video=document.createElement("video");this.htmlElement.video.id=this.internal.video.id;this.html.video.available=!!this.htmlElement.video.canPlayType&&this._testCanPlayType(this.htmlElement.video)}this.flash.available=
this._checkForFlash(10);this.html.canPlay={};this.flash.canPlay={};b.each(this.formats,function(b,c){a.html.canPlay[c]=a.html[a.format[c].media].available&&""!==a.htmlElement[a.format[c].media].canPlayType(a.format[c].codec);a.flash.canPlay[c]=a.format[c].flashCanPlay&&a.flash.available});this.html.desired=false;this.flash.desired=false;b.each(this.solutions,function(c,d){if(c===0)a[d].desired=true;else{var e=false,f=false;b.each(a.formats,function(b,c){a[a.solutions[0]].canPlay[c]&&(a.format[c].media===
"video"?f=true:e=true)});a[d].desired=a.require.audio&&!e||a.require.video&&!f}});this.html.support={};this.flash.support={};b.each(this.formats,function(b,c){a.html.support[c]=a.html.canPlay[c]&&a.html.desired;a.flash.support[c]=a.flash.canPlay[c]&&a.flash.desired});this.html.used=false;this.flash.used=false;b.each(this.solutions,function(c,d){b.each(a.formats,function(b,c){if(a[d].support[c]){a[d].used=true;return false}})});this._resetActive();this._resetGate();this._cssSelectorAncestor(this.options.cssSelectorAncestor);
if(!this.html.used&&!this.flash.used){this._error({type:b.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:b.jPlayer.errorMsg.NO_SOLUTION,hint:b.jPlayer.errorHint.NO_SOLUTION});this.css.jq.noSolution.length&&this.css.jq.noSolution.show()}else this.css.jq.noSolution.length&&this.css.jq.noSolution.hide();if(this.flash.used){var c,d="jQuery="+encodeURI(this.options.noConflict)+"&id="+encodeURI(this.internal.self.id)+"&vol="+this.options.volume+
"&muted="+this.options.muted;if(b.jPlayer.browser.msie&&Number(b.jPlayer.browser.version)<=8){d=['<param name="movie" value="'+this.internal.flash.swf+'" />','<param name="FlashVars" value="'+d+'" />','<param name="allowScriptAccess" value="always" />','<param name="bgcolor" value="'+this.options.backgroundColor+'" />','<param name="wmode" value="'+this.options.wmode+'" />'];c=document.createElement('<object id="'+this.internal.flash.id+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="0" height="0"></object>');
for(var e=0;e<d.length;e++)c.appendChild(document.createElement(d[e]))}else{e=function(a,b,c){var d=document.createElement("param");d.setAttribute("name",b);d.setAttribute("value",c);a.appendChild(d)};c=document.createElement("object");c.setAttribute("id",this.internal.flash.id);c.setAttribute("data",this.internal.flash.swf);c.setAttribute("type","application/x-shockwave-flash");c.setAttribute("width","1");c.setAttribute("height","1");e(c,"flashvars",d);e(c,"allowscriptaccess","always");e(c,"bgcolor",
this.options.backgroundColor);e(c,"wmode",this.options.wmode)}this.element.append(c);this.internal.flash.jq=b(c)}if(this.html.used){if(this.html.audio.available){this._addHtmlEventListeners(this.htmlElement.audio,this.html.audio);this.element.append(this.htmlElement.audio);this.internal.audio.jq=b("#"+this.internal.audio.id)}if(this.html.video.available){this._addHtmlEventListeners(this.htmlElement.video,this.html.video);this.element.append(this.htmlElement.video);this.internal.video.jq=b("#"+this.internal.video.id);
this.status.nativeVideoControls?this.internal.video.jq.css({width:this.status.width,height:this.status.height}):this.internal.video.jq.css({width:"0px",height:"0px"});this.internal.video.jq.bind("click.jPlayer",function(){a._trigger(b.jPlayer.event.click)})}}this.options.emulateHtml&&this._emulateHtmlBridge();this.html.used&&!this.flash.used&&setTimeout(function(){a.internal.ready=true;a.version.flash="n/a";a._trigger(b.jPlayer.event.repeat);a._trigger(b.jPlayer.event.ready)},100);this._updateNativeVideoControls();
this._updateInterface();this._updateButtons(false);this._updateAutohide();this._updateVolume(this.options.volume);this._updateMute(this.options.muted);this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide();b.jPlayer.prototype.count++},destroy:function(){this.clearMedia();this._removeUiClass();this.css.jq.currentTime.length&&this.css.jq.currentTime.text("");this.css.jq.duration.length&&this.css.jq.duration.text("");b.each(this.css.jq,function(a,b){b.length&&b.unbind(".jPlayer")});this.internal.poster.jq.unbind(".jPlayer");
this.internal.video.jq&&this.internal.video.jq.unbind(".jPlayer");this.options.emulateHtml&&this._destroyHtmlBridge();this.element.removeData("jPlayer");this.element.unbind(".jPlayer");this.element.empty();delete this.instances[this.internal.instance]},enable:function(){},disable:function(){},_testCanPlayType:function(a){try{a.canPlayType(this.format.mp3.codec);return true}catch(b){return false}},_uaBlocklist:function(a){var c=navigator.userAgent.toLowerCase(),d=false;b.each(a,function(a,b){if(b&&
b.test(c)){d=true;return false}});return d},_restrictNativeVideoControls:function(){if(this.require.audio&&this.status.nativeVideoControls){this.status.nativeVideoControls=false;this.status.noFullScreen=true}},_updateNativeVideoControls:function(){if(this.html.video.available&&this.html.used){this.htmlElement.video.controls=this.status.nativeVideoControls;this._updateAutohide();if(this.status.nativeVideoControls&&this.require.video){this.internal.poster.jq.hide();this.internal.video.jq.css({width:this.status.width,
height:this.status.height})}else if(this.status.waitForPlay&&this.status.video){this.internal.poster.jq.show();this.internal.video.jq.css({width:"0px",height:"0px"})}}},_addHtmlEventListeners:function(a,c){var d=this;a.preload=this.options.preload;a.muted=this.options.muted;a.volume=this.options.volume;a.addEventListener("progress",function(){if(c.gate){d._getHtmlStatus(a);d._updateInterface();d._trigger(b.jPlayer.event.progress)}},false);a.addEventListener("timeupdate",function(){if(c.gate){d._getHtmlStatus(a);
d._updateInterface();d._trigger(b.jPlayer.event.timeupdate)}},false);a.addEventListener("durationchange",function(){if(c.gate){d._getHtmlStatus(a);d._updateInterface();d._trigger(b.jPlayer.event.durationchange)}},false);a.addEventListener("play",function(){if(c.gate){d._updateButtons(true);d._html_checkWaitForPlay();d._trigger(b.jPlayer.event.play)}},false);a.addEventListener("playing",function(){if(c.gate){d._updateButtons(true);d._seeked();d._trigger(b.jPlayer.event.playing)}},false);a.addEventListener("pause",
function(){if(c.gate){d._updateButtons(false);d._trigger(b.jPlayer.event.pause)}},false);a.addEventListener("waiting",function(){if(c.gate){d._seeking();d._trigger(b.jPlayer.event.waiting)}},false);a.addEventListener("seeking",function(){if(c.gate){d._seeking();d._trigger(b.jPlayer.event.seeking)}},false);a.addEventListener("seeked",function(){if(c.gate){d._seeked();d._trigger(b.jPlayer.event.seeked)}},false);a.addEventListener("volumechange",function(){if(c.gate){d.options.volume=a.volume;d.options.muted=
a.muted;d._updateMute();d._updateVolume();d._trigger(b.jPlayer.event.volumechange)}},false);a.addEventListener("suspend",function(){if(c.gate){d._seeked();d._trigger(b.jPlayer.event.suspend)}},false);a.addEventListener("ended",function(){if(c.gate){if(!b.jPlayer.browser.webkit)d.htmlElement.media.currentTime=0;d.htmlElement.media.pause();d._updateButtons(false);d._getHtmlStatus(a,true);d._updateInterface();d._trigger(b.jPlayer.event.ended)}},false);a.addEventListener("error",function(){if(c.gate){d._updateButtons(false);
d._seeked();if(d.status.srcSet){clearTimeout(d.internal.htmlDlyCmdId);d.status.waitForLoad=true;d.status.waitForPlay=true;d.status.video&&!d.status.nativeVideoControls&&d.internal.video.jq.css({width:"0px",height:"0px"});d._validString(d.status.media.poster)&&!d.status.nativeVideoControls&&d.internal.poster.jq.show();d.css.jq.videoPlay.length&&d.css.jq.videoPlay.show();d._error({type:b.jPlayer.error.URL,context:d.status.src,message:b.jPlayer.errorMsg.URL,hint:b.jPlayer.errorHint.URL})}}},false);b.each(b.jPlayer.htmlEvent,
function(e,g){a.addEventListener(this,function(){c.gate&&d._trigger(b.jPlayer.event[g])},false)})},_getHtmlStatus:function(a,b){var d=0,e=0,g=0,f=0;if(isFinite(a.duration))this.status.duration=a.duration;d=a.currentTime;e=this.status.duration>0?100*d/this.status.duration:0;if(typeof a.seekable==="object"&&a.seekable.length>0){g=this.status.duration>0?100*a.seekable.end(a.seekable.length-1)/this.status.duration:100;f=this.status.duration>0?100*a.currentTime/a.seekable.end(a.seekable.length-1):0}else{g=
100;f=e}if(b)e=f=d=0;this.status.seekPercent=g;this.status.currentPercentRelative=f;this.status.currentPercentAbsolute=e;this.status.currentTime=d;this.status.readyState=a.readyState;this.status.networkState=a.networkState;this.status.playbackRate=a.playbackRate;this.status.ended=a.ended},_resetStatus:function(){this.status=b.extend({},this.status,b.jPlayer.prototype.status)},_trigger:function(a,c,d){a=b.Event(a);a.jPlayer={};a.jPlayer.version=b.extend({},this.version);a.jPlayer.options=b.extend(true,
{},this.options);a.jPlayer.status=b.extend(true,{},this.status);a.jPlayer.html=b.extend(true,{},this.html);a.jPlayer.flash=b.extend(true,{},this.flash);if(c)a.jPlayer.error=b.extend({},c);if(d)a.jPlayer.warning=b.extend({},d);this.element.trigger(a)},jPlayerFlashEvent:function(a,c){if(a===b.jPlayer.event.ready)if(this.internal.ready){if(this.flash.gate){if(this.status.srcSet){var d=this.status.currentTime,e=this.status.paused;this.setMedia(this.status.media);d>0&&(e?this.pause(d):this.play(d))}this._trigger(b.jPlayer.event.flashreset)}}else{this.internal.ready=
true;this.internal.flash.jq.css({width:"0px",height:"0px"});this.version.flash=c.version;this.version.needFlash!==this.version.flash&&this._error({type:b.jPlayer.error.VERSION,context:this.version.flash,message:b.jPlayer.errorMsg.VERSION+this.version.flash,hint:b.jPlayer.errorHint.VERSION});this._trigger(b.jPlayer.event.repeat);this._trigger(a)}if(this.flash.gate)switch(a){case b.jPlayer.event.progress:this._getFlashStatus(c);this._updateInterface();this._trigger(a);break;case b.jPlayer.event.timeupdate:this._getFlashStatus(c);
this._updateInterface();this._trigger(a);break;case b.jPlayer.event.play:this._seeked();this._updateButtons(true);this._trigger(a);break;case b.jPlayer.event.pause:this._updateButtons(false);this._trigger(a);break;case b.jPlayer.event.ended:this._updateButtons(false);this._trigger(a);break;case b.jPlayer.event.click:this._trigger(a);break;case b.jPlayer.event.error:this.status.waitForLoad=true;this.status.waitForPlay=true;this.status.video&&this.internal.flash.jq.css({width:"0px",height:"0px"});this._validString(this.status.media.poster)&&
this.internal.poster.jq.show();this.css.jq.videoPlay.length&&this.status.video&&this.css.jq.videoPlay.show();this.status.video?this._flash_setVideo(this.status.media):this._flash_setAudio(this.status.media);this._updateButtons(false);this._error({type:b.jPlayer.error.URL,context:c.src,message:b.jPlayer.errorMsg.URL,hint:b.jPlayer.errorHint.URL});break;case b.jPlayer.event.seeking:this._seeking();this._trigger(a);break;case b.jPlayer.event.seeked:this._seeked();this._trigger(a);break;case b.jPlayer.event.ready:break;
default:this._trigger(a)}return false},_getFlashStatus:function(a){this.status.seekPercent=a.seekPercent;this.status.currentPercentRelative=a.currentPercentRelative;this.status.currentPercentAbsolute=a.currentPercentAbsolute;this.status.currentTime=a.currentTime;this.status.duration=a.duration;this.status.readyState=4;this.status.networkState=0;this.status.playbackRate=1;this.status.ended=false},_updateButtons:function(a){if(a!==f){this.status.paused=!a;if(this.css.jq.play.length&&this.css.jq.pause.length)if(a){this.css.jq.play.hide();
this.css.jq.pause.show()}else{this.css.jq.play.show();this.css.jq.pause.hide()}}if(this.css.jq.restoreScreen.length&&this.css.jq.fullScreen.length)if(this.status.noFullScreen){this.css.jq.fullScreen.hide();this.css.jq.restoreScreen.hide()}else if(this.options.fullScreen){this.css.jq.fullScreen.hide();this.css.jq.restoreScreen.show()}else{this.css.jq.fullScreen.show();this.css.jq.restoreScreen.hide()}if(this.css.jq.repeat.length&&this.css.jq.repeatOff.length)if(this.options.loop){this.css.jq.repeat.hide();
this.css.jq.repeatOff.show()}else{this.css.jq.repeat.show();this.css.jq.repeatOff.hide()}},_updateInterface:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.width(this.status.seekPercent+"%");this.css.jq.playBar.length&&this.css.jq.playBar.width(this.status.currentPercentRelative+"%");this.css.jq.currentTime.length&&this.css.jq.currentTime.text(b.jPlayer.convertTime(this.status.currentTime));this.css.jq.duration.length&&this.css.jq.duration.text(b.jPlayer.convertTime(this.status.duration))},
_seeking:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.addClass("jp-seeking-bg")},_seeked:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.removeClass("jp-seeking-bg")},_resetGate:function(){this.html.audio.gate=false;this.html.video.gate=false;this.flash.gate=false},_resetActive:function(){this.html.active=false;this.flash.active=false},setMedia:function(a){var c=this,d=false,e=this.status.media.poster!==a.poster;this._resetMedia();this._resetGate();this._resetActive();b.each(this.formats,
function(e,f){var i=c.format[f].media==="video";b.each(c.solutions,function(b,e){if(c[e].support[f]&&c._validString(a[f])){var g=e==="html";if(i){if(g){c.html.video.gate=true;c._html_setVideo(a);c.html.active=true}else{c.flash.gate=true;c._flash_setVideo(a);c.flash.active=true}c.css.jq.videoPlay.length&&c.css.jq.videoPlay.show();c.status.video=true}else{if(g){c.html.audio.gate=true;c._html_setAudio(a);c.html.active=true}else{c.flash.gate=true;c._flash_setAudio(a);c.flash.active=true}c.css.jq.videoPlay.length&&
c.css.jq.videoPlay.hide();c.status.video=false}d=true;return false}});if(d)return false});if(d){if((!this.status.nativeVideoControls||!this.html.video.gate)&&this._validString(a.poster))e?this.htmlElement.poster.src=a.poster:this.internal.poster.jq.show();this.status.srcSet=true;this.status.media=b.extend({},a);this._updateButtons(false);this._updateInterface()}else this._error({type:b.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:b.jPlayer.errorMsg.NO_SUPPORT,
hint:b.jPlayer.errorHint.NO_SUPPORT})},_resetMedia:function(){this._resetStatus();this._updateButtons(false);this._updateInterface();this._seeked();this.internal.poster.jq.hide();clearTimeout(this.internal.htmlDlyCmdId);this.html.active?this._html_resetMedia():this.flash.active&&this._flash_resetMedia()},clearMedia:function(){this._resetMedia();this.html.active?this._html_clearMedia():this.flash.active&&this._flash_clearMedia();this._resetGate();this._resetActive()},load:function(){this.status.srcSet?
this.html.active?this._html_load():this.flash.active&&this._flash_load():this._urlNotSetError("load")},play:function(a){a=typeof a==="number"?a:NaN;this.status.srcSet?this.html.active?this._html_play(a):this.flash.active&&this._flash_play(a):this._urlNotSetError("play")},videoPlay:function(){this.play()},pause:function(a){a=typeof a==="number"?a:NaN;this.status.srcSet?this.html.active?this._html_pause(a):this.flash.active&&this._flash_pause(a):this._urlNotSetError("pause")},pauseOthers:function(){var a=
this;b.each(this.instances,function(b,d){a.element!==d&&d.data("jPlayer").status.srcSet&&d.jPlayer("pause")})},stop:function(){this.status.srcSet?this.html.active?this._html_pause(0):this.flash.active&&this._flash_pause(0):this._urlNotSetError("stop")},playHead:function(a){a=this._limitValue(a,0,100);this.status.srcSet?this.html.active?this._html_playHead(a):this.flash.active&&this._flash_playHead(a):this._urlNotSetError("playHead")},_muted:function(a){this.options.muted=a;this.html.used&&this._html_mute(a);
this.flash.used&&this._flash_mute(a);if(!this.html.video.gate&&!this.html.audio.gate){this._updateMute(a);this._updateVolume(this.options.volume);this._trigger(b.jPlayer.event.volumechange)}},mute:function(a){a=a===f?true:!!a;this._muted(a)},unmute:function(a){a=a===f?true:!!a;this._muted(!a)},_updateMute:function(a){if(a===f)a=this.options.muted;if(this.css.jq.mute.length&&this.css.jq.unmute.length)if(this.status.noVolume){this.css.jq.mute.hide();this.css.jq.unmute.hide()}else if(a){this.css.jq.mute.hide();
this.css.jq.unmute.show()}else{this.css.jq.mute.show();this.css.jq.unmute.hide()}},volume:function(a){a=this._limitValue(a,0,1);this.options.volume=a;this.html.used&&this._html_volume(a);this.flash.used&&this._flash_volume(a);if(!this.html.video.gate&&!this.html.audio.gate){this._updateVolume(a);this._trigger(b.jPlayer.event.volumechange)}},volumeBar:function(a){if(this.css.jq.volumeBar.length){var b=this.css.jq.volumeBar.offset(),d=a.pageX-b.left,e=this.css.jq.volumeBar.width(),a=this.css.jq.volumeBar.height()-
a.pageY+b.top,b=this.css.jq.volumeBar.height();this.options.verticalVolume?this.volume(a/b):this.volume(d/e)}this.options.muted&&this._muted(false)},volumeBarValue:function(a){this.volumeBar(a)},_updateVolume:function(a){if(a===f)a=this.options.volume;a=this.options.muted?0:a;if(this.status.noVolume){this.css.jq.volumeBar.length&&this.css.jq.volumeBar.hide();this.css.jq.volumeBarValue.length&&this.css.jq.volumeBarValue.hide();this.css.jq.volumeMax.length&&this.css.jq.volumeMax.hide()}else{this.css.jq.volumeBar.length&&
this.css.jq.volumeBar.show();if(this.css.jq.volumeBarValue.length){this.css.jq.volumeBarValue.show();this.css.jq.volumeBarValue[this.options.verticalVolume?"height":"width"](a*100+"%")}this.css.jq.volumeMax.length&&this.css.jq.volumeMax.show()}},volumeMax:function(){this.volume(1);this.options.muted&&this._muted(false)},_cssSelectorAncestor:function(a){var c=this;this.options.cssSelectorAncestor=a;this._removeUiClass();this.ancestorJq=a?b(a):[];a&&this.ancestorJq.length!==1&&this._warning({type:b.jPlayer.warning.CSS_SELECTOR_COUNT,
context:a,message:b.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:b.jPlayer.warningHint.CSS_SELECTOR_COUNT});this._addUiClass();b.each(this.options.cssSelector,function(a,b){c._cssSelector(a,b)})},_cssSelector:function(a,c){var d=this;if(typeof c==="string")if(b.jPlayer.prototype.options.cssSelector[a]){this.css.jq[a]&&this.css.jq[a].length&&this.css.jq[a].unbind(".jPlayer");this.options.cssSelector[a]=c;this.css.cs[a]=this.options.cssSelectorAncestor+
" "+c;this.css.jq[a]=c?b(this.css.cs[a]):[];this.css.jq[a].length&&this.css.jq[a].bind("click.jPlayer",function(c){d[a](c);b(this).blur();return false});c&&this.css.jq[a].length!==1&&this._warning({type:b.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[a],message:b.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[a].length+" found for "+a+" method.",hint:b.jPlayer.warningHint.CSS_SELECTOR_COUNT})}else this._warning({type:b.jPlayer.warning.CSS_SELECTOR_METHOD,context:a,message:b.jPlayer.warningMsg.CSS_SELECTOR_METHOD,
hint:b.jPlayer.warningHint.CSS_SELECTOR_METHOD});else this._warning({type:b.jPlayer.warning.CSS_SELECTOR_STRING,context:c,message:b.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:b.jPlayer.warningHint.CSS_SELECTOR_STRING})},seekBar:function(a){if(this.css.jq.seekBar){var b=this.css.jq.seekBar.offset(),a=a.pageX-b.left,b=this.css.jq.seekBar.width();this.playHead(100*a/b)}},playBar:function(a){this.seekBar(a)},repeat:function(){this._loop(true)},repeatOff:function(){this._loop(false)},_loop:function(a){if(this.options.loop!==
a){this.options.loop=a;this._updateButtons();this._trigger(b.jPlayer.event.repeat)}},currentTime:function(){},duration:function(){},gui:function(){},noSolution:function(){},option:function(a,c){var d=a;if(arguments.length===0)return b.extend(true,{},this.options);if(typeof a==="string"){var e=a.split(".");if(c===f){for(var d=b.extend(true,{},this.options),g=0;g<e.length;g++)if(d[e[g]]!==f)d=d[e[g]];else{this._warning({type:b.jPlayer.warning.OPTION_KEY,context:a,message:b.jPlayer.warningMsg.OPTION_KEY,
hint:b.jPlayer.warningHint.OPTION_KEY});return f}return d}for(var g=d={},h=0;h<e.length;h++)if(h<e.length-1){g[e[h]]={};g=g[e[h]]}else g[e[h]]=c}this._setOptions(d);return this},_setOptions:function(a){var c=this;b.each(a,function(a,b){c._setOption(a,b)});return this},_setOption:function(a,c){var d=this;switch(a){case "volume":this.volume(c);break;case "muted":this._muted(c);break;case "cssSelectorAncestor":this._cssSelectorAncestor(c);break;case "cssSelector":b.each(c,function(a,b){d._cssSelector(a,
b)});break;case "fullScreen":if(this.options[a]!==c){this._removeUiClass();this.options[a]=c;this._refreshSize()}break;case "size":!this.options.fullScreen&&this.options[a].cssClass!==c.cssClass&&this._removeUiClass();this.options[a]=b.extend({},this.options[a],c);this._refreshSize();break;case "sizeFull":this.options.fullScreen&&this.options[a].cssClass!==c.cssClass&&this._removeUiClass();this.options[a]=b.extend({},this.options[a],c);this._refreshSize();break;case "autohide":this.options[a]=b.extend({},
this.options[a],c);this._updateAutohide();break;case "loop":this._loop(c);break;case "nativeVideoControls":this.options[a]=b.extend({},this.options[a],c);this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this._restrictNativeVideoControls();this._updateNativeVideoControls();break;case "noFullScreen":this.options[a]=b.extend({},this.options[a],c);this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this.status.noFullScreen=this._uaBlocklist(this.options.noFullScreen);
this._restrictNativeVideoControls();this._updateButtons();break;case "noVolume":this.options[a]=b.extend({},this.options[a],c);this.status.noVolume=this._uaBlocklist(this.options.noVolume);this._updateVolume();this._updateMute();break;case "emulateHtml":if(this.options[a]!==c)(this.options[a]=c)?this._emulateHtmlBridge():this._destroyHtmlBridge()}return this},_refreshSize:function(){this._setSize();this._addUiClass();this._updateSize();this._updateButtons();this._updateAutohide();this._trigger(b.jPlayer.event.resize)},
_setSize:function(){if(this.options.fullScreen){this.status.width=this.options.sizeFull.width;this.status.height=this.options.sizeFull.height;this.status.cssClass=this.options.sizeFull.cssClass}else{this.status.width=this.options.size.width;this.status.height=this.options.size.height;this.status.cssClass=this.options.size.cssClass}this.element.css({width:this.status.width,height:this.status.height})},_addUiClass:function(){this.ancestorJq.length&&this.ancestorJq.addClass(this.status.cssClass)},_removeUiClass:function(){this.ancestorJq.length&&
this.ancestorJq.removeClass(this.status.cssClass)},_updateSize:function(){this.internal.poster.jq.css({width:this.status.width,height:this.status.height});!this.status.waitForPlay&&this.html.active&&this.status.video||this.html.video.available&&this.html.used&&this.status.nativeVideoControls?this.internal.video.jq.css({width:this.status.width,height:this.status.height}):!this.status.waitForPlay&&(this.flash.active&&this.status.video)&&this.internal.flash.jq.css({width:this.status.width,height:this.status.height})},
_updateAutohide:function(){var a=this,b=function(){a.css.jq.gui.fadeIn(a.options.autohide.fadeIn,function(){clearTimeout(a.internal.autohideId);a.internal.autohideId=setTimeout(function(){a.css.jq.gui.fadeOut(a.options.autohide.fadeOut)},a.options.autohide.hold)})};if(this.css.jq.gui.length){this.css.jq.gui.stop(true,true);clearTimeout(this.internal.autohideId);this.element.unbind(".jPlayerAutohide");this.css.jq.gui.unbind(".jPlayerAutohide");if(this.status.nativeVideoControls)this.css.jq.gui.hide();
else if(this.options.fullScreen&&this.options.autohide.full||!this.options.fullScreen&&this.options.autohide.restored){this.element.bind("mousemove.jPlayer.jPlayerAutohide",b);this.css.jq.gui.bind("mousemove.jPlayer.jPlayerAutohide",b);this.css.jq.gui.hide()}else this.css.jq.gui.show()}},fullScreen:function(){this._setOption("fullScreen",true)},restoreScreen:function(){this._setOption("fullScreen",false)},_html_initMedia:function(){this.htmlElement.media.src=this.status.src;this.options.preload!==
"none"&&this._html_load();this._trigger(b.jPlayer.event.timeupdate)},_html_setAudio:function(a){var c=this;b.each(this.formats,function(b,e){if(c.html.support[e]&&a[e]){c.status.src=a[e];c.status.format[e]=true;c.status.formatType=e;return false}});this.htmlElement.media=this.htmlElement.audio;this._html_initMedia()},_html_setVideo:function(a){var c=this;b.each(this.formats,function(b,e){if(c.html.support[e]&&a[e]){c.status.src=a[e];c.status.format[e]=true;c.status.formatType=e;return false}});if(this.status.nativeVideoControls)this.htmlElement.video.poster=
this._validString(a.poster)?a.poster:"";this.htmlElement.media=this.htmlElement.video;this._html_initMedia()},_html_resetMedia:function(){if(this.htmlElement.media){this.htmlElement.media.id===this.internal.video.id&&!this.status.nativeVideoControls&&this.internal.video.jq.css({width:"0px",height:"0px"});this.htmlElement.media.pause()}},_html_clearMedia:function(){if(this.htmlElement.media){this.htmlElement.media.src="";this.htmlElement.media.load()}},_html_load:function(){if(this.status.waitForLoad){this.status.waitForLoad=
false;this.htmlElement.media.load()}clearTimeout(this.internal.htmlDlyCmdId)},_html_play:function(a){var b=this;this._html_load();this.htmlElement.media.play();if(!isNaN(a))try{this.htmlElement.media.currentTime=a}catch(d){this.internal.htmlDlyCmdId=setTimeout(function(){b.play(a)},100);return}this._html_checkWaitForPlay()},_html_pause:function(a){var b=this;a>0?this._html_load():clearTimeout(this.internal.htmlDlyCmdId);this.htmlElement.media.pause();if(!isNaN(a))try{this.htmlElement.media.currentTime=
a}catch(d){this.internal.htmlDlyCmdId=setTimeout(function(){b.pause(a)},100);return}a>0&&this._html_checkWaitForPlay()},_html_playHead:function(a){var b=this;this._html_load();try{if(typeof this.htmlElement.media.seekable==="object"&&this.htmlElement.media.seekable.length>0)this.htmlElement.media.currentTime=a*this.htmlElement.media.seekable.end(this.htmlElement.media.seekable.length-1)/100;else if(this.htmlElement.media.duration>0&&!isNaN(this.htmlElement.media.duration))this.htmlElement.media.currentTime=
a*this.htmlElement.media.duration/100;else throw"e";}catch(d){this.internal.htmlDlyCmdId=setTimeout(function(){b.playHead(a)},100);return}this.status.waitForLoad||this._html_checkWaitForPlay()},_html_checkWaitForPlay:function(){if(this.status.waitForPlay){this.status.waitForPlay=false;this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide();if(this.status.video){this.internal.poster.jq.hide();this.internal.video.jq.css({width:this.status.width,height:this.status.height})}}},_html_volume:function(a){if(this.html.audio.available)this.htmlElement.audio.volume=
a;if(this.html.video.available)this.htmlElement.video.volume=a},_html_mute:function(a){if(this.html.audio.available)this.htmlElement.audio.muted=a;if(this.html.video.available)this.htmlElement.video.muted=a},_flash_setAudio:function(a){var c=this;try{b.each(this.formats,function(b,d){if(c.flash.support[d]&&a[d]){switch(d){case "m4a":case "fla":c._getMovie().fl_setAudio_m4a(a[d]);break;case "mp3":c._getMovie().fl_setAudio_mp3(a[d]);break;case "rtmpa":c._getMovie().fl_setAudio_rtmp(a[d])}c.status.src=
a[d];c.status.format[d]=true;c.status.formatType=d;return false}});if(this.options.preload==="auto"){this._flash_load();this.status.waitForLoad=false}}catch(d){this._flashError(d)}},_flash_setVideo:function(a){var c=this;try{b.each(this.formats,function(b,d){if(c.flash.support[d]&&a[d]){switch(d){case "m4v":case "flv":c._getMovie().fl_setVideo_m4v(a[d]);break;case "rtmpv":c._getMovie().fl_setVideo_rtmp(a[d])}c.status.src=a[d];c.status.format[d]=true;c.status.formatType=d;return false}});if(this.options.preload===
"auto"){this._flash_load();this.status.waitForLoad=false}}catch(d){this._flashError(d)}},_flash_resetMedia:function(){this.internal.flash.jq.css({width:"0px",height:"0px"});this._flash_pause(NaN)},_flash_clearMedia:function(){try{this._getMovie().fl_clearMedia()}catch(a){this._flashError(a)}},_flash_load:function(){try{this._getMovie().fl_load()}catch(a){this._flashError(a)}this.status.waitForLoad=false},_flash_play:function(a){try{this._getMovie().fl_play(a)}catch(b){this._flashError(b)}this.status.waitForLoad=
false;this._flash_checkWaitForPlay()},_flash_pause:function(a){try{this._getMovie().fl_pause(a)}catch(b){this._flashError(b)}if(a>0){this.status.waitForLoad=false;this._flash_checkWaitForPlay()}},_flash_playHead:function(a){try{this._getMovie().fl_play_head(a)}catch(b){this._flashError(b)}this.status.waitForLoad||this._flash_checkWaitForPlay()},_flash_checkWaitForPlay:function(){if(this.status.waitForPlay){this.status.waitForPlay=false;this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide();if(this.status.video){this.internal.poster.jq.hide();
this.internal.flash.jq.css({width:this.status.width,height:this.status.height})}}},_flash_volume:function(a){try{this._getMovie().fl_volume(a)}catch(b){this._flashError(b)}},_flash_mute:function(a){try{this._getMovie().fl_mute(a)}catch(b){this._flashError(b)}},_getMovie:function(){return document[this.internal.flash.id]},_checkForFlash:function(a){var b=false,d;if(window.ActiveXObject)try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+a);b=true}catch(e){}else if(navigator.plugins&&navigator.mimeTypes.length>
0)(d=navigator.plugins["Shockwave Flash"])&&navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1")>=a&&(b=true);return b},_validString:function(a){return a&&typeof a==="string"},_limitValue:function(a,b,d){return a<b?b:a>d?d:a},_urlNotSetError:function(a){this._error({type:b.jPlayer.error.URL_NOT_SET,context:a,message:b.jPlayer.errorMsg.URL_NOT_SET,hint:b.jPlayer.errorHint.URL_NOT_SET})},_flashError:function(a){var c;c=this.internal.ready?"FLASH_DISABLED":"FLASH";this._error({type:b.jPlayer.error[c],
context:this.internal.flash.swf,message:b.jPlayer.errorMsg[c]+a.message,hint:b.jPlayer.errorHint[c]});this.internal.flash.jq.css({width:"1px",height:"1px"})},_error:function(a){this._trigger(b.jPlayer.event.error,a);this.options.errorAlerts&&this._alert("Error!"+(a.message?"\n\n"+a.message:"")+(a.hint?"\n\n"+a.hint:"")+"\n\nContext: "+a.context)},_warning:function(a){this._trigger(b.jPlayer.event.warning,f,a);this.options.warningAlerts&&this._alert("Warning!"+(a.message?"\n\n"+a.message:"")+(a.hint?
"\n\n"+a.hint:"")+"\n\nContext: "+a.context)},_alert:function(a){alert("jPlayer "+this.version.script+" : id='"+this.internal.self.id+"' : "+a)},_emulateHtmlBridge:function(){var a=this;b.each(b.jPlayer.emulateMethods.split(/\s+/g),function(b,d){a.internal.domNode[d]=function(b){a[d](b)}});b.each(b.jPlayer.event,function(c,d){var e=true;b.each(b.jPlayer.reservedEvent.split(/\s+/g),function(a,b){if(b===c)return e=false});e&&a.element.bind(d+".jPlayer.jPlayerHtml",function(){a._emulateHtmlUpdate();
var b=document.createEvent("Event");b.initEvent(c,false,true);a.internal.domNode.dispatchEvent(b)})})},_emulateHtmlUpdate:function(){var a=this;b.each(b.jPlayer.emulateStatus.split(/\s+/g),function(b,d){a.internal.domNode[d]=a.status[d]});b.each(b.jPlayer.emulateOptions.split(/\s+/g),function(b,d){a.internal.domNode[d]=a.options[d]})},_destroyHtmlBridge:function(){var a=this;this.element.unbind(".jPlayerHtml");b.each((b.jPlayer.emulateMethods+" "+b.jPlayer.emulateStatus+" "+b.jPlayer.emulateOptions).split(/\s+/g),
function(b,d){delete a.internal.domNode[d]})}};b.jPlayer.error={FLASH:"e_flash",FLASH_DISABLED:"e_flash_disabled",NO_SOLUTION:"e_no_solution",NO_SUPPORT:"e_no_support",URL:"e_url",URL_NOT_SET:"e_url_not_set",VERSION:"e_version"};b.jPlayer.errorMsg={FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ",FLASH_DISABLED:"jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ",NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.",
NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.",URL:"Media URL could not be loaded.",URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.",VERSION:"jPlayer "+b.jPlayer.prototype.version.script+" needs Jplayer.swf version "+b.jPlayer.prototype.version.needFlash+" but found "};b.jPlayer.errorHint={FLASH:"Check your swfPath option and that Jplayer.swf is there.",FLASH_DISABLED:"Check that you have not display:none; the jPlayer entity or any ancestor.",
NO_SOLUTION:"Review the jPlayer options: support and supplied.",NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.",URL:"Check media URL is valid.",URL_NOT_SET:"Use setMedia() to set the media URL.",VERSION:"Update jPlayer files."};b.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method",CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"};b.jPlayer.warningMsg={CSS_SELECTOR_COUNT:"The number of css selectors found did not equal one: ",
CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",OPTION_KEY:"The option requested in jPlayer('option') is undefined."};b.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.",CSS_SELECTOR_METHOD:"Check your method name.",CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."}})(jQuery);
|
examples/with-custom-babel-config/pages/index.js
|
kevmannn/next.js
|
import React from 'react'
export default class MyLuckNo extends React.Component {
constructor (...args) {
super(...args)
this.state = { randomNo: null }
}
componentDidMount () {
this.recalculate()
}
recalculate () {
this.setState({
randomNo: Math.ceil(Math.random() * 100)
})
}
render () {
const { randomNo } = this.state
if (randomNo === null) {
return (<p>Please wait..</p>)
}
// This is an experimental JavaScript feature where we can get with
// using babel-preset-stage-0
const message = do {
if (randomNo < 30) {
// eslint-disable-next-line no-unused-expressions
'Do not give up. Try again.'
} else if (randomNo < 60) {
// eslint-disable-next-line no-unused-expressions
'You are a lucky guy'
} else {
// eslint-disable-next-line no-unused-expressions
'You are soooo lucky!'
}
}
return (
<div>
<h3>Your Lucky number is: "{randomNo}"</h3>
<p>{message}</p>
<button onClick={() => this.recalculate()}>Try Again</button>
</div>
)
}
}
|
Js/Core/Lib/Core/ModalComponent.js
|
Webiny/Webiny
|
import React from 'react';
import _ from 'lodash';
import Webiny from 'webiny';
import Component from './Component'; // Need to import this file directly because at this point `Webiny` is not fully populated
class ModalComponent extends Component {
constructor(props) {
super(props);
this.bindMethods('show,hide,renderDialog');
}
shouldComponentUpdate(nextProps, nextState) {
if (DEVELOPMENT && Webiny.isHotReloading()) {
return true;
}
const omitProps = ['renderer', 'renderDialog'];
const newProps = _.omit(nextProps, omitProps);
const oldProps = _.omit(this.props, omitProps);
return !_.isEqual(newProps, oldProps) || !_.isEqual(nextState, this.state);
}
// This method is used to get reference to dialog instance. It can be overridden in child classes for more complex scenarios.
getDialog() {
return this.dialog;
}
hide() {
return new Promise(resolve => {
const interval = setInterval(() => {
const ref = this.getDialog();
if (ref) {
clearInterval(interval);
resolve(ref.hide());
}
}, 30);
});
}
show() {
return new Promise(resolve => {
const interval = setInterval(() => {
const ref = this.getDialog();
if (ref) {
clearInterval(interval);
resolve(ref.show());
}
}, 30);
});
}
isAnimating() {
return this.getDialog().isAnimating();
}
renderDialog() {
if (_.isFunction(this.props.renderDialog)) {
return this.props.renderDialog.call(this, {dialog: this});
}
throw new Error('Implement renderDialog() method in your modal component class or add a renderDialog() function through props!');
}
}
ModalComponent.defaultProps = Component.extendProps({
renderDialog: null,
renderer() {
const dialog = this.renderDialog();
const props = {ref: dialog => this.dialog = dialog};
if (this.props.onHidden) {
props['onHidden'] = this.props.onHidden;
}
return React.cloneElement(dialog, props);
}
});
export default ModalComponent;
|
techCurriculum/ui/solutions/4.5/src/App.js
|
AnxChow/EngineeringEssentials-group
|
/**
* Copyright 2017 Goldman Sachs.
* 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.
**/
import React from 'react';
import Title from './components/Title';
import Card from './components/Card';
import CardForm from './components/CardForm';
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
cards: [
{
author: 'John Smith',
text: 'React is so cool!'
},
{
author: 'Jane Doe',
text: 'I use React for all my projects!'
}
]
};
this.handleSubmit = this.handleSubmit.bind(this);
}
handleSubmit() {
}
render() {
const cards = this.state.cards.map((card, index) => (
<Card author={card.author}
text={card.text}
key={index} />
));
return (
<div id='app-body'>
<div id='left-panel'>
<Title />
{ cards }
</div>
<CardForm onSubmit={this.handleSubmit} />
</div>
);
}
}
export default App;
|
ajax/libs/react-highcharts/8.3.0/ReactHighstock.js
|
dlueth/cdnjs
|
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("highcharts/highstock")):"function"==typeof define&&define.amd?define(["react","highcharts/highstock"],r):"object"==typeof exports?exports.ReactHighstock=r(require("react"),require("highcharts/highstock")):t.ReactHighstock=r(t.React,t.Highcharts)}(this,function(t,r){return function(t){function r(o){if(e[o])return e[o].exports;var n=e[o]={exports:{},id:o,loaded:!1};return t[o].call(n.exports,n,n.exports,r),n.loaded=!0,n.exports}var e={};return r.m=t,r.c=e,r.p="",r(0)}([function(t,r,e){t.exports=e(6)},function(r,e){r.exports=t},function(t,r,e){(function(r){"use strict";var o=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},n=e(1);t.exports=function(t,e){var i="Highcharts"+t,c=n.createClass({displayName:i,propTypes:{config:n.PropTypes.object.isRequired,isPureConfig:n.PropTypes.bool,neverReflow:n.PropTypes.bool,callback:n.PropTypes.func},defaultProps:{callback:function(){}},renderChart:function(n){var c=this;if(!n)throw new Error("Config must be specified for the "+i+" component");var s=n.chart;this.chart=new e[t](o({},n,{chart:o({},s,{renderTo:this.refs.chart})}),this.props.callback),r.requestAnimationFrame&&requestAnimationFrame(function(){c.chart&&c.chart.options&&c.chart.reflow()})},shouldComponentUpdate:function(t){return this.props.neverReflow||this.props.isPureConfig&&this.props.config===t.config?!0:(this.renderChart(t.config),!1)},getChart:function(){if(!this.chart)throw new Error("getChart() should not be called before the component is mounted");return this.chart},componentDidMount:function(){this.renderChart(this.props.config)},componentWillUnmount:function(){this.chart.destroy()},render:function(){var t=this.props;return t=o({},t,{ref:"chart"}),n.createElement("div",t)}});return c.Highcharts=e,c}}).call(r,function(){return this}())},,,,function(t,r,e){"use strict";t.exports=e(2)("StockChart",e(9))},,,function(t,e){t.exports=r}])});
|
test/test_helper.js
|
hisarkaya/tvmaze
|
import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import reducers from '../src/reducers';
global.document = jsdom.jsdom('<!doctype html><html><body></body></html>');
global.window = global.document.defaultView;
global.navigator = global.window.navigator;
const $ = _$(window);
chaiJquery(chai, chai.util, $);
function renderComponent(ComponentClass, props = {}, state = {}) {
const componentInstance = TestUtils.renderIntoDocument(
<Provider store={createStore(reducers, state)}>
<ComponentClass {...props} />
</Provider>
);
return $(ReactDOM.findDOMNode(componentInstance));
}
$.fn.simulate = function(eventName, value) {
if (value) {
this.val(value);
}
TestUtils.Simulate[eventName](this[0]);
};
export {renderComponent, expect};
|
ajax/libs/onsen/2.0.0-alpha.13/js/angular-onsenui.js
|
seogi1004/cdnjs
|
/*! angular-onsenui.js for onsenui - v2.0.0-alpha.13 - 2015-11-10 */
(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' +
'');
}]);
})();
/*
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]])
* @extensionOf angular
* @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 disableAnimations()
* @description
* [en]Disable all animations. Could be handy for testing and older devices.[/en]
* [ja]アニメーションを全て無効にします。テストの際に便利です。[/ja]
*/
/**
* @ngdoc method
* @signature enableAnimations()
* @description
* [en]Enable animations (default).[/en]
* [ja]アニメーションを有効にします。[/ja]
*/
/**
* @ngdoc method
* @signature findParentComponentUntil(name, [dom])
* @extensionOf angular
* @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])
* @extensionOf angular
* @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)
* @extensionOf angular
* @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]ダイアログ内で利用する親スコープを指定します。ダイアログからモデルやスコープのメソッドにアクセスするのに使います。このパラメータはAngularJSバインディングでのみ利用できます。[/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]ダイアログ内で利用する親スコープを指定します。ダイアログからモデルやスコープのメソッドにアクセスするのに使います。このパラメータはAngularJSバインディングでのみ利用できます。[/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]ダイアログ内で利用する親スコープを指定します。ダイアログからモデルやスコープのメソッドにアクセスするのに使います。このパラメータはAngularJSバインディングでのみ利用できます。[/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]
*/
/**
* @ngdoc method
* @signature resolveLoadingPlaceholder(page)
* @param {String} page
* [en]Page name. Can be either an HTML file or an <ons-template> element.[/en]
* [ja]pageのURLか、もしくはons-templateで宣言したテンプレートのid属性の値を指定できます。[/ja]
* @description
* [en]If no page is defined for the `ons-loading-placeholder` attribute it will wait for this method being called before loading the page.[/en]
* [ja]ons-loading-placeholderの属性値としてページが指定されていない場合は、ページロード前に呼ばれるons.resolveLoadingPlaceholder処理が行われるまで表示されません。[/ja]
*/
(function(ons){
'use strict';
var module = angular.module('onsen', ['templates-main']);
angular.module('onsen.directives', ['onsen']); // for BC
// JS Global facade for Onsen UI.
initOnsenFacade();
waitOnsenUILoad();
initAngularModule();
function waitOnsenUILoad() {
var unlockOnsenUI = ons._readyLock.lock();
module.run(['$compile', '$rootScope', function($compile, $rootScope) {
// 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;
}]);
}
function initOnsenFacade() {
ons._onsenService = null;
// Object to attach component variables to when using the var="..." attribute.
// Can be set to null to avoid polluting the global scope.
ons.componentBase = window;
/**
* Bootstrap this document as a Onsen UI application.
*
* @param {String} [name] optional name
* @param {Array} [deps] optional dependency modules
*/
ons.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.readyState == 'interactive') {
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;
};
/**
* @param {String} [name]
* @param {Object/jqLite/HTMLElement} dom $event object or jqLite object or HTMLElement object.
* @return {Object}
*/
ons.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);
};
/**
* Find view object correspond dom element queried by CSS selector.
*
* @param {String} selector CSS selector
* @param {HTMLElement} [dom]
* @return {Object/void}
*/
ons.findComponent = function(selector, dom) {
var target = (dom ? dom : document).querySelector(selector);
return target ? angular.element(target).data(target.nodeName.toLowerCase()) || null : null;
};
/**
* @param {HTMLElement} dom
*/
ons.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);
};
ons._getOnsenService = function() {
if (!this._onsenService) {
throw new Error('$onsen is not loaded, wait for ons.ready().');
}
return this._onsenService;
};
/**
* @param {String} elementName
* @param {Function} lastReady
* @return {Function}
*/
ons._waitDiretiveInit = function(elementName, lastReady) {
return function(element, callback) {
if (angular.element(element).data(elementName)) {
lastReady(element, callback);
} else {
var listen = function() {
lastReady(element, callback);
element.removeEventListener(elementName + ':init', listen, false);
};
element.addEventListener(elementName + ':init', listen, false);
}
};
};
/**
* @param {String} page
* @param {Object} [options]
* @param {Object} [options.parentScope]
* @return {Promise}
*/
ons.createAlertDialog = function(page, options) {
options = options || {};
options.link = function(element) {
if (options.parentScope) {
ons.$compile(angular.element(element))(options.parentScope.$new());
} else {
ons.compile(element);
}
};
return ons._createAlertDialogOriginal(page, options).then(function(alertDialog) {
return angular.element(alertDialog).data('ons-alert-dialog');
});
};
/**
* @param {String} page
* @param {Object} [options]
* @param {Object} [options.parentScope]
* @return {Promise}
*/
ons.createDialog = function(page, options) {
options = options || {};
options.link = function(element) {
if (options.parentScope) {
ons.$compile(angular.element(element))(options.parentScope.$new());
} else {
ons.compile(element);
}
};
return ons._createDialogOriginal(page, options).then(function(dialog) {
return angular.element(dialog).data('ons-dialog');
});
};
/**
* @param {String} page
* @param {Object} [options]
* @param {Object} [options.parentScope]
* @return {Promise}
*/
ons.createPopover = function(page, options) {
options = options || {};
options.link = function(element) {
if (options.parentScope) {
ons.$compile(angular.element(element))(options.parentScope.$new());
} else {
ons.compile(element);
}
};
return ons._createPopoverOriginal(page, options).then(function(popover) {
return angular.element(popover).data('ons-popover');
});
};
/**
* @param {String} page
*/
ons.resolveLoadingPlaceholder = function(page) {
return ons._resolveLoadingPlaceholderOriginal(page, function(element, done) {
ons.compile(element);
angular.element(element).scope().$evalAsync(function() {
setImmediate(done);
});
});
};
ons._setupLoadingPlaceHolders = function() {
// Do nothing
};
}
})(window.ons = window.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', function($onsen) {
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._clearDerivingMethods = $onsen.deriveMethods(this, this._element[0], [
'getDeviceBackButtonHandler',
'show',
'hide',
'isShown',
'destroy',
'setDisabled',
'isDisabled',
'setCancelable',
'isCancelable'
]);
this._clearDerivingEvents = $onsen.deriveEvents(this, this._element[0], [
'preshow',
'postshow',
'prehide',
'posthide',
'cancel'
], function(detail) {
if (detail.alertDialog) {
detail.alertDialog = this;
}
return detail;
}.bind(this));
this._scope.$on('$destroy', this._destroy.bind(this));
},
_destroy: function() {
this.emit('destroy');
this._element.remove();
this._clearDerivingMethods();
this._clearDerivingEvents();
this._scope = this._attrs = this._element = null;
}
});
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.
*/
angular.module('onsen')
.value('AlertDialogAnimator', ons._internal.AlertDialogAnimator)
.value('AndroidAlertDialogAnimator', ons._internal.AndroidAlertDialogAnimator)
.value('IOSAlertDialogAnimator', ons._internal.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.
*/
angular.module('onsen').value('AnimationChooser', ons._internal.AnimatorFactory);
/*
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('CarouselView', ['$onsen', function($onsen) {
/**
* @class CarouselView
*/
var CarouselView = 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._scope.$on('$destroy', this._destroy.bind(this));
this._clearDerivingMethods = $onsen.deriveMethods(this, element[0], [
'setSwipeable',
'isSwipeable',
'setAutoScrollRatio',
'getAutoScrollRatio',
'setActiveCarouselItemIndex',
'getActiveCarouselItemIndex',
'next',
'prev',
'setAutoScrollEnabled',
'isAutoScrollEnabled',
'setDisabled',
'isDisabled',
'setOverscrollable',
'isOverscrollable',
'refresh',
'first',
'last'
]);
this._clearDerivingEvents = $onsen.deriveEvents(this, element[0], ['refresh', 'postchange', 'overscroll'], function(detail) {
if (detail.carousel) {
detail.carousel = this;
}
return detail;
}.bind(this));
},
_destroy: function() {
this.emit('destroy');
this._clearDerivingEvents();
this._clearDerivingMethods();
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', function($onsen) {
var DialogView = Class.extend({
init: function(scope, element, attrs) {
this._scope = scope;
this._element = element;
this._attrs = attrs;
this._clearDerivingMethods = $onsen.deriveMethods(this, this._element[0], [
'getDeviceBackButtonHandler',
'show',
'hide',
'isShown',
'destroy'
]);
this._clearDerivingEvents = $onsen.deriveEvents(this, this._element[0], [
'preshow',
'postshow',
'prehide',
'posthide',
'cancel'
], function(detail) {
if (detail.dialog) {
detail.dialog = this;
}
return detail;
}.bind(this));
this._scope.$on('$destroy', this._destroy.bind(this));
},
_destroy: function() {
this.emit('destroy');
this._element.remove();
this._clearDerivingMethods();
this._clearDerivingEvents();
this._scope = this._attrs = this._element = null;
}
});
DialogView.registerAnimator = function(name, Animator) {
return window.OnsDialogElement.registerAnimator(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.
*/
angular.module('onsen')
.value('DialogAnimator', ons._internal.DialogAnimator)
.value('IOSDialogAnimator', ons._internal.IOSDialogAnimator)
.value('AndroidDialogAnimator', ons._internal.AndroidDialogAnimator)
.value('SlideDialogAnimator', ons._internal.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';
angular.module('onsen').factory('GenericView', ['$onsen', function($onsen) {
var GenericView = Class.extend({
/**
* @param {Object} scope
* @param {jqLite} element
* @param {Object} attrs
* @param {Object} [options]
* @param {Boolean} [options.directiveOnly]
* @param {Function} [options.onDestroy]
* @param {String} [options.modifierTemplate]
*/
init: function(scope, element, attrs, options) {
var self = this;
options = {};
this._element = element;
this._scope = scope;
this._attrs = attrs;
if (options.directiveOnly) {
if (!options.modifierTemplate) {
throw new Error('options.modifierTemplate is undefined.');
}
$onsen.addModifierMethods(this, options.modifierTemplate, element);
} else {
$onsen.addModifierMethodsForCustomElements(this, element);
}
$onsen.cleaner.onDestroy(scope, function() {
self._events = undefined;
$onsen.removeModifierMethods(self);
if (options.onDestroy) {
options.onDestroy(self);
}
$onsen.clearComponent({
scope: scope,
attrs: attrs,
element: element
});
self = element = self._element = self._scope = scope = self._attrs = attrs = options = null;
});
}
});
/**
* @param {Object} scope
* @param {jqLite} element
* @param {Object} attrs
* @param {Object} options
* @param {String} options.viewKey
* @param {Boolean} [options.directiveOnly]
* @param {Function} [options.onDestroy]
* @param {String} [options.modifierTemplate]
*/
GenericView.register = function(scope, element, attrs, options) {
var view = new GenericView(scope, element, attrs, options);
if (!options.viewKey) {
throw new Error('options.viewKey is required.');
}
$onsen.declareVarAttribute(attrs, view);
element.data(options.viewKey, view);
var destroy = options.onDestroy || angular.noop;
options.onDestroy = function(view) {
destroy(view);
element.data(options.viewKey, null);
};
return view;
};
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('LazyRepeatView', ['AngularLazyRepeatDelegate', function(AngularLazyRepeatDelegate) {
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;
var userDelegate = this._getDelegate();
var internalDelegate = new AngularLazyRepeatDelegate(element[0], userDelegate, element.scope());
this._provider = new ons._internal.LazyRepeatProvider(element[0].parentNode, element[0], internalDelegate);
element.remove();
this._injectReloadMethod(userDelegate, this._provider);
// Render when number of items change.
this._scope.$watch(internalDelegate.countItems.bind(internalDelegate), this._provider._onChange.bind(this._provider));
this._scope.$on('$destroy', this._destroy.bind(this));
},
_injectReloadMethod: function(userDelegate, provider) {
var oldReload = userDelegate.reload;
if (typeof oldReload === 'function') {
userDelegate.reload = function() {
oldReload();
provider._onChange();
}.bind(this);
}
else {
userDelegate.reload = function() {
provider._onChange();
}.bind(this);
}
}.bind(this),
_getDelegate: function() {
var delegate = this._scope.$eval(this._attrs.onsLazyRepeat);
if (typeof delegate === 'undefined') {
/*jshint evil:true */
delegate = eval(this._attrs.onsLazyRepeat);
}
return delegate;
},
_destroy: function() {
this._element = this._scope = this._attrs = this._linker = 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';
angular.module('onsen').factory('AngularLazyRepeatDelegate', ['$compile', function($compile) {
var AngularLazyRepeatDelegate = function() {
AngularLazyRepeatDelegate.prototype.init.apply(this, arguments);
};
AngularLazyRepeatDelegate.prototype = Object.create(ons._internal.LazyRepeatDelegate.prototype);
angular.extend(AngularLazyRepeatDelegate.prototype, {
/**
* @param {Element} templateElement
* @param {Object} userDelegate
* @param {Scope} parentScope
*/
init: function(templateElement, userDelegate, parentScope) {
this._templateElement = templateElement.cloneNode(true);
this._userDelegate = userDelegate;
this._parentScope = parentScope;
this._removeLazyRepeatDirective();
this._linker = $compile(this._templateElement.cloneNode(true));
},
/**
* @return {Boolean}
*/
_usingBinding: function() {
if (this._userDelegate.configureItemScope) {
return true;
}
if (this._userDelegate.createItemContent) {
return false;
}
throw new Error('`lazy-repeat` delegate object is vague.');
},
_removeLazyRepeatDirective: function() {
this._templateElement.removeAttribute('ons-lazy-repeat');
this._templateElement.removeAttribute('ons:lazy:repeat');
this._templateElement.removeAttribute('ons_lazy_repeat');
this._templateElement.removeAttribute('data-ons-lazy-repeat');
this._templateElement.removeAttribute('x-ons-lazy-repeat');
},
prepareItem: function(index, done) {
var scope = this._parentScope.$new();
this._addSpecialProperties(index, scope);
if (this._usingBinding()) {
this._userDelegate.configureItemScope(index, scope);
}
this._linker(scope, function(cloned) {
cloned[0].style.display = 'none';
if (!this._usingBinding()) {
var contentElement = this._userDelegate.createItemContent(index, null);
cloned.append(contentElement);
$compile(cloned[0].firstChild)(scope);
}
done({
element: cloned[0],
scope: scope
});
scope.$evalAsync(function() {
cloned[0].style.display = 'block';
});
}.bind(this));
},
/**
* @param {Number} index
* @param {Object} scope
*/
_addSpecialProperties: function(index, scope) {
scope.$index = index;
scope.$first = index === 0;
scope.$last = index === this.countItems() - 1;
scope.$middle = !scope.$first && !scope.$last;
scope.$even = index % 2 === 0;
scope.$odd = !scope.$even;
},
countItems: function() {
return this._userDelegate.countItems();
},
updateItem: function(index, item) {
if (this._usingBinding()) {
item.scope.$evalAsync(function() {
this._userDelegate.configureItemScope(index, item.scope);
}.bind(this));
}
},
/**
* @param {Number} index
* @param {Object} item
* @param {Object} item.scope
* @param {Element} item.element
*/
destroyItem: function(index, item) {
if (this._usingBinding()) {
if (this._userDelegate.destroyItemScope instanceof Function) {
this._userDelegate.destroyItemScope(index, item.scope);
}
} else {
if (this._userDelegate.destroyItemContent instanceof Function) {
this._userDelegate.destroyItemContent(index, item.element);
}
}
item.scope.$destroy();
},
destroy: function() {
this._userDelegate = this._templateElement = this._scope = null;
},
calculateItemHeight: function(index) {
return this._userDelegate.calculateItemHeight(index);
}
});
return AngularLazyRepeatDelegate;
}]);
})();
/*
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.value('ModalAnimator', ons._internal.ModalAnimator);
module.value('FadeModalAnimator', ons._internal.FadeModalAnimator);
module.factory('ModalView', ['$onsen', '$parse', function($onsen, $parse) {
var ModalView = Class.extend({
_element: undefined,
_scope: undefined,
init: function(scope, element, attrs) {
this._scope = scope;
this._element = element;
this._scope.$on('$destroy', this._destroy.bind(this));
element[0]._animatorFactory.setAnimationOptions($parse(attrs.animationOptions)());
},
getDeviceBackButtonHandler: function() {
return this._element[0].getDeviceBackButtonHandler();
},
setDeviceBackButtonHandler: function(callback) {
this._element[0].setDeviceBackButtonHandler(callback);
},
show: function(options) {
return this._element[0].show(options);
},
hide: function(options) {
return this._element[0].hide(options);
},
toggle: function(options) {
return this._element[0].toggle(options);
},
_destroy: function() {
this.emit('destroy', {page: this});
this._events = this._element = this._scope = null;
}
});
ModalView.registerAnimator = function(name, Animator) {
return window.OnsModalElement.registerAnimator(name, Animator);
};
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');
module.factory('NavigatorView', ['$http', '$parse', '$compile', '$onsen', '$timeout', 'AnimationChooser', 'SimpleSlideTransitionAnimator', 'NavigatorTransitionAnimator', 'LiftTransitionAnimator', 'NullTransitionAnimator', 'IOSSlideTransitionAnimator', 'FadeTransitionAnimator', function($http, $parse, $compile, $onsen, $timeout, AnimationChooser,
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 {Object}
*/
_scope: undefined,
/**
* @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._previousPageScope = null;
this._boundOnPrepop = this._onPrepop.bind(this);
this._boundOnPostpop = this._onPostpop.bind(this);
this._element.on('prepop', this._boundOnPrepop);
this._element.on('postpop', this._boundOnPostpop);
this._scope.$on('$destroy', this._destroy.bind(this));
this._clearDerivingEvents = $onsen.deriveEvents(this, element[0], [
'prepush', 'postpush', 'prepop',
'postpop', 'init', 'show', 'hide', 'destroy'
], function(detail) {
if (detail.navigator) {
detail.navigator = this;
}
return detail;
}.bind(this));
this._clearDerivingMethods = $onsen.deriveMethods(this, element[0], [
'insertPage',
'pushPage',
'bringPageTop',
'getDeviceBackButtonHandler',
'popPage',
'replacePage',
'resetToPage',
'getCurrentPage',
'canPopPage'
]);
},
_onPrepop: function(event) {
var pages = event.detail.navigator.pages;
angular.element(pages[pages.length - 2].element).scope().$evalAsync();
this._previousPageScope = angular.element(pages[pages.length - 1].element).scope();
},
_onPostpop: function(event) {
this._previousPageScope.$destroy();
this._previoousPageScope = null;
},
_compileAndLink: function(pageElement, callback) {
var link = $compile(pageElement);
var pageScope = this._createPageScope();
link(pageScope);
pageScope.$evalAsync(function() {
callback(pageElement);
});
},
_destroy: function() {
this.emit('destroy');
this._clearDerivingEvents();
this._clearDerivingMethods();
this._element.off('prepop', this._boundOnPrepop);
this._element.off('postpop', this._boundOnPostpop);
this._element = this._scope = this._attrs = null;
},
_createPageScope: function() {
return this._scope.$new();
},
/**
* Retrieve the entire page stages of the navigator.
*
* @return {Array}
*/
getPages: function() {
return this._element[0].pages;
}
});
MicroEvent.mixin(NavigatorView);
Object.defineProperty(NavigatorView.prototype, 'pages', {
get: function () {
return this.getPages();
},
set: function() {
throw new Error();
}
});
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.
*/
angular.module('onsen')
.value('NavigatorTransitionAnimator', ons._internal.NavigatorTransitionAnimator)
.value('FadeTransitionAnimator', ons._internal.FadeNavigatorTransitionAnimator)
.value('IOSSlideTransitionAnimator', ons._internal.IOSSlideNavigatorTransitionAnimator)
.value('LiftTransitionAnimator', ons._internal.LiftNavigatorTransitionAnimator)
.value('NullTransitionAnimator', ons._internal.NavigatorTransitionAnimator)
.value('SimpleSlideTransitionAnimator', ons._internal.SimpleSlideNavigatorTransitionAnimator);
/*
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,
/**
* @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;
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;
var delay = instant === true ? 0.0 : this.delay;
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])
.wait(delay)
.queue(mainPageStyle, {
duration: duration,
timing: this.timing
})
.queue(function(done) {
callback();
done();
})
.play();
animit(this._menuPage[0])
.wait(delay)
.queue(menuStyle, {
duration: duration,
timing: this.timing
})
.play();
}.bind(this), 1000 / 60);
},
/**
* @param {Function} callback
* @param {Boolean} instant
*/
closeMenu: function(callback, instant) {
var duration = instant === true ? 0.0 : this.duration;
var delay = instant === true ? 0.0 : this.delay;
this._blackMask.css({display: 'block'});
var menuPageStyle = this._generateMenuPageStyle(0);
var mainPageStyle = this._generateMainPageStyle(0);
setTimeout(function() {
animit(this._mainPage[0])
.wait(delay)
.queue(mainPageStyle, {
duration: duration,
timing: this.timing
})
.queue(function(done) {
this._menuPage.css('display', 'none');
callback();
done();
}.bind(this))
.play();
animit(this._menuPage[0])
.wait(delay)
.queue(menuPageStyle, {
duration: duration,
timing: this.timing
})
.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 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({
_nullElement : window.document.createElement('div'),
init: function(scope, element, attrs) {
this._scope = scope;
this._element = element;
this._attrs = attrs;
this._clearListener = scope.$on('$destroy', this._destroy.bind(this));
this._clearDerivingEvents = $onsen.deriveEvents(this, element[0], ['init', 'show', 'hide', 'destroy']);
this._userDeviceBackButtonListener = angular.noop;
if (this._attrs.ngDeviceBackbutton || this._attrs.onDeviceBackbutton) {
this._element[0].setDeviceBackButtonHandler(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) {
this._userDeviceBackButtonListener = callback;
},
/**
* @return {Object/null}
*/
getDeviceBackButtonHandler: function() {
return this._element[0].getDeviceBackButtonHandler();
},
_destroy: function() {
this._element[0]._destroy();
this._clearDerivingEvents();
this._element = null;
this._nullElement = 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';
angular.module('onsen').factory('PopoverView', ['$onsen', function($onsen) {
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._scope.$on('$destroy', this._destroy.bind(this));
this._clearDerivingMethods = $onsen.deriveMethods(this, this._element[0], [
'show',
'hide',
'isShown',
'setCancelable',
'destroy'
]);
this._clearDerivingEvents = $onsen.deriveEvents(this, this._element[0], [
'preshow',
'postshow',
'prehide',
'posthide'
], function(detail) {
if (detail.popover) {
detail.popover = this;
}
return detail;
}.bind(this));
},
_destroy: function() {
this.emit('destroy');
this._clearDerivingMethods();
this._clearDerivingEvents();
this._element.remove();
this._element = this._scope = null;
}
});
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.
*/
angular.module('onsen')
.value('PopoverAnimator', ons._internal.PopoverAnimator)
.value('FadePopoverAnimator', ons._internal.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('PullHookView', ['$onsen', '$parse', function($onsen, $parse) {
var PullHookView = Class.extend({
init: function(scope, element, attrs) {
this._element = element;
this._scope = scope;
this._attrs = attrs;
this._clearDerivingMethods = $onsen.deriveMethods(this, this._element[0], [
'getHeight',
'setHeight',
'setThresholdHeight',
'getThresholdHeight',
'getCurrentState',
'getPullDistance',
'isDisabled',
'setDisabled'
]);
this._clearDerivingEvents = $onsen.deriveEvents(this, this._element[0], [
'changestate',
], function(detail) {
if (detail.pullHook) {
detail.pullHook = this;
}
return detail;
}.bind(this));
this.on('changestate', function(event) {
this._scope.$evalAsync();
}.bind(this));
this._boundOnAction = this._onAction.bind(this);
this._element[0].setActionCallback(this._boundOnAction);
this._scope.$on('$destroy', this._destroy.bind(this));
},
_onAction: 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);
}
},
_destroy: function() {
this.emit('destroy');
this._clearDerivingMethods();
this._clearDerivingEvents();
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,
/**
* @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%';
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;
var delay = instant === true ? 0.0 : this.delay;
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])
.wait(delay)
.queue({
transform: aboveTransform
}, {
duration: duration,
timing: this.timing
})
.queue(function(done) {
callback();
done();
})
.play();
animit(this._menuPage[0])
.wait(delay)
.queue(behindStyle, {
duration: duration,
timing: this.timing
})
.play();
}.bind(this), 1000 / 60);
},
/**
* @param {Function} callback
* @param {Boolean} instant
*/
closeMenu: function(callback, instant) {
var duration = instant === true ? 0.0 : this.duration;
var delay = instant === true ? 0.0 : this.delay;
var aboveTransform = this._generateAbovePageTransform(0);
var behindStyle = this._generateBehindPageStyle(0);
setTimeout(function() {
animit(this._mainPage[0])
.wait(delay)
.queue({
transform: aboveTransform
}, {
duration: duration,
timing: this.timing
})
.queue({
transform: 'translate3d(0, 0, 0)'
})
.queue(function(done) {
this._menuPage.css('display', 'none');
callback();
done();
}.bind(this))
.play();
animit(this._menuPage[0])
.wait(delay)
.queue(behindStyle, {
duration: duration,
timing: this.timing
})
.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 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,
/**
* @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%';
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;
var delay = instant === true ? 0.0 : this.delay;
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])
.wait(delay)
.queue({
transform: aboveTransform
}, {
duration: duration,
timing: this.timing
})
.queue(function(done) {
callback();
done();
})
.play();
animit(this._menuPage[0])
.wait(delay)
.queue(behindStyle, {
duration: duration,
timing: this.timing
})
.play();
}.bind(this), 1000 / 60);
},
/**
* @param {Function} callback
* @param {Boolean} instant
*/
closeMenu: function(callback, instant) {
var duration = instant === true ? 0.0 : this.duration;
var delay = instant === true ? 0.0 : this.delay;
this._blackMask.css('display', 'block');
var aboveTransform = this._generateAbovePageTransform(0);
var behindStyle = this._generateBehindPageStyle(0);
setTimeout(function() {
animit(this._mainPage[0])
.wait(delay)
.queue({
transform: aboveTransform
}, {
duration: duration,
timing: this.timing
})
.queue({
transform: 'translate3d(0, 0, 0)'
})
.queue(function(done) {
this._menuPage.css('display', 'none');
callback();
done();
}.bind(this))
.play();
animit(this._menuPage[0])
.wait(delay)
.queue(behindStyle, {
duration: duration,
timing: this.timing
})
.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');
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', '$parse', 'AnimationChooser', 'SlidingMenuAnimator', 'RevealSlidingMenuAnimator', 'PushSlidingMenuAnimator', 'OverlaySlidingMenuAnimator', function($onsen, $compile, $parse, AnimationChooser, 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._mainPageGestureDetector = new ons.GestureDetector(this._mainPage[0]);
this._boundOnTap = 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._boundOnWindowResize = this._onWindowResize.bind(this);
window.addEventListener('resize', this._boundOnWindowResize);
this._boundHandleEvent = this._handleEvent.bind(this);
this._bindEvents();
if (attrs.mainPage) {
this.setMainPage(attrs.mainPage);
}
if (attrs.menuPage) {
this.setMenuPage(attrs.menuPage);
}
this._deviceBackButtonHandler = ons._deviceBackButtonDispatcher.createHandler(this._element[0], 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});
var animationChooser = new AnimationChooser({
animators: SlidingMenuView._animatorDict,
baseClass: SlidingMenuAnimator,
baseClassName: 'SlidingMenuAnimator',
defaultAnimation: attrs.type,
defaultAnimationOptions: $parse(attrs.animationOptions)()
});
this._animator = animationChooser.newAnimator();
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));
this._clearDerivingEvents = $onsen.deriveEvents(this, element[0], ['init', 'show', 'hide', 'destroy']);
if (!attrs.swipeable) {
this.setSwipeable(true);
}
},
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._clearDerivingEvents();
this._deviceBackButtonHandler.destroy();
window.removeEventListener('resize', this._boundOnWindowResize);
this._mainPageGestureDetector.off('tap', this._boundOnTap);
this._element = this._scope = this._attrs = null;
},
_onSwipeableChanged: function(swipeable) {
swipeable = swipeable === '' || swipeable === undefined || swipeable == 'true';
this.setSwipeable(swipeable);
},
/**
* @param {Boolean} enabled
*/
setSwipeable: function(enabled) {
if (enabled) {
this._activateGestureDetector();
} else {
this._deactivateGestureDetector();
}
},
_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));
}
},
_activateGestureDetector: function(){
this._gestureDetector.on('touch dragleft dragright swipeleft swiperight release', this._boundHandleEvent);
},
_deactivateGestureDetector: function(){
this._gestureDetector.off('touch dragleft dragright swipeleft swiperight release', this._boundHandleEvent);
},
_bindEvents: function() {
this._gestureDetector = new ons.GestureDetector(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;
this._currentPageElement[0]._show();
},
/**
* @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)){
this._deactivateGestureDetector();
}
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._logic.isClosed() && !this._isInsideSwipeTargetArea(event)) {
return;
}
if (this._isRightMenu) {
this.open();
} else {
this.close();
}
event.gesture.stopDetect();
break;
case 'swiperight':
event.gesture.preventDefault();
if (this._logic.isClosed() && !this._isInsideSwipeTargetArea(event)) {
return;
}
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._mainPageGestureDetector.off('tap', this._boundOnTap);
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._mainPageGestureDetector.on('tap', this._boundOnTap);
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': RevealSlidingMenuAnimator,
'overlay': OverlaySlidingMenuAnimator,
'reveal': RevealSlidingMenuAnimator,
'push': PushSlidingMenuAnimator
};
/**
* @param {String} name
* @param {Function} Animator
*/
SlidingMenuView.registerAnimator = function(name, Animator) {
if (!(Animator.prototype instanceof SlidingMenuAnimator)) {
throw new Error('"Animator" param must inherit 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({
delay: 0,
duration: 0.4,
timing: 'cubic-bezier(.1, .7, .1, 1)',
/**
* @param {Object} options
* @param {String} options.timing
* @param {Number} options.duration
* @param {Number} options.delay
*/
init: function(options) {
options = options || {};
this.timing = options.timing || this.timing;
this.duration = options.duration !== undefined ? options.duration : this.duration;
this.delay = options.delay !== undefined ? options.delay : this.delay;
},
/**
* @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 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));
this._clearDerivingEvents = $onsen.deriveEvents(this, element[0], ['init', 'show', 'hide', 'destroy']);
},
/**
* @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._currentPageScope.$destroy();
}
this._currentPage = pageContent;
this._currentPageScope = pageScope;
this._currentPage[0]._show();
},
/**
* @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._clearDerivingEvents();
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';
angular.module('onsen').factory('SplitterContent', ['$onsen', '$compile', function($onsen, $compile) {
var SplitterContent = Class.extend({
init: function(scope, element, attrs) {
this._element = element;
this._scope = scope;
this._attrs = attrs;
this._clearDerivingMethods = $onsen.deriveMethods(this, this._element[0], [
'load'
]);
scope.$on('$destroy', this._destroy.bind(this));
},
_link: function(fragment, done) {
var link = $compile(fragment);
var pageScope = this._createPageScope();
link(pageScope);
pageScope.$evalAsync(function() {
done(fragment);
});
},
_createPageScope: function() {
return this._scope.$new();
},
_destroy: function() {
this.emit('destroy');
this._clearDerivingMethods();
this._element = this._scope = this._attrs = null;
}
});
MicroEvent.mixin(SplitterContent);
Object.defineProperty(SplitterContent.prototype, 'page', {
get: function () {
return this._element[0].page;
},
set: function() {
throw new Error();
}
});
return SplitterContent;
}]);
})();
/*
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').factory('SplitterSide', ['$onsen', '$compile', function($onsen, $compile) {
var SplitterSide = Class.extend({
init: function(scope, element, attrs) {
this._element = element;
this._scope = scope;
this._attrs = attrs;
this._clearDerivingMethods = $onsen.deriveMethods(this, this._element[0], [
'isSwipeable',
'getCurrentMode',
'isOpened',
'open',
'close',
'toggle',
'load',
]);
this._clearDerivingEvents = $onsen.deriveEvents(this, element[0], [
'modechange', 'preopen', 'preclose', 'postopen', 'postclose'
], function(detail) {
if (detail.side) {
detail.side = this;
}
return detail;
}.bind(this));
scope.$on('$destroy', this._destroy.bind(this));
},
_link: function(fragment, done) {
var link = $compile(fragment);
var pageScope = this._createPageScope();
link(pageScope);
pageScope.$evalAsync(function() {
done(fragment);
});
},
_createPageScope: function() {
return this._scope.$new();
},
_destroy: function() {
this.emit('destroy');
this._clearDerivingMethods();
this._clearDerivingEvents();
this._element = this._scope = this._attrs = null;
}
});
MicroEvent.mixin(SplitterSide);
Object.defineProperty(SplitterSide.prototype, 'page', {
get: function () {
return this._element[0].page;
},
set: function() {
throw new Error();
}
});
return SplitterSide;
}]);
})();
/*
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').factory('Splitter', ['$onsen', function($onsen) {
var Splitter = Class.extend({
init: function(scope, element, attrs) {
this._element = element;
this._scope = scope;
this._attrs = attrs;
this._clearDerivingMethods = $onsen.deriveMethods(this, this._element[0], [
'getDeviceBackButtonHandler',
'openRight',
'openLeft',
'closeRight',
'closeLeft',
'toggleRight',
'toggleLeft',
'rightIsOpened',
'leftIsOpened',
'loadContentPage'
]);
scope.$on('$destroy', this._destroy.bind(this));
},
_destroy: function() {
this.emit('destroy');
this._clearDerivingMethods();
this._element = this._scope = this._attrs = null;
}
});
MicroEvent.mixin(Splitter);
return Splitter;
}]);
})();
/*
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').factory('SwitchView', ['$parse', '$onsen', function($parse, $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;
this._checkbox.on('change', function() {
this.emit('change', {'switch': this, value: this._checkbox[0].checked, isInteractive: true});
}.bind(this));
this._prepareNgModel(element, scope, attrs);
this._scope.$on('$destroy', this._destroy.bind(this));
this._clearDerivingMethods = $onsen.deriveMethods(this, element[0], [
'isChecked',
'setChecked',
'getCheckboxElement'
]);
},
_prepareNgModel: function(element, scope, attrs) {
if (attrs.ngModel) {
var set = $parse(attrs.ngModel).assign;
scope.$parent.$watch(attrs.ngModel, function(value) {
this.setChecked(!!value);
}.bind(this));
this._checkbox.on('change', function(e) {
set(scope.$parent, this.isChecked());
if (attrs.ngChange) {
scope.$eval(attrs.ngChange);
}
scope.$parent.$evalAsync();
}.bind(this));
}
},
_destroy: function() {
this.emit('destroy');
this._clearDerivingMethods();
this._element = this._checkbox = this._scope = null;
}
});
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.value('TabbarNoneAnimator', ons._internal.TabbarNoneAnimator);
module.value('TabbarFadeAnimator', ons._internal.TabbarFadeAnimator);
module.value('TabbarSlideAnimator', ons._internal.TabbarSlideAnimator);
module.factory('TabbarView', ['$onsen', '$compile', '$parse', function($onsen, $compile, $parse) {
var TabbarView = Class.extend({
init: function(scope, element, attrs) {
if (element[0].nodeName.toLowerCase() !== 'ons-tabbar') {
throw new Error('"element" parameter must be a "ons-tabbar" element.');
}
this._scope = scope;
this._element = element;
this._attrs = attrs;
this._lastPageElement = null;
this._lastPageScope = null;
this._scope.$on('$destroy', this._destroy.bind(this));
this._clearDerivingEvents = $onsen.deriveEvents(this, element[0], [
'reactive', 'postchange', 'prechange', 'init', 'show', 'hide', 'destroy'
]);
this._clearDerivingMethods = $onsen.deriveMethods(this, element[0], [
'setActiveTab',
'setTabbarVisibility',
'getActiveTabIndex',
'loadPage'
]);
},
_compileAndLink: function(pageElement, callback) {
var link = $compile(pageElement);
var pageScope = this._scope.$new();
link(pageScope);
pageScope.$evalAsync(function() {
callback(pageElement);
});
},
_destroy: function() {
this.emit('destroy');
this._clearDerivingEvents();
this._clearDerivingMethods();
this._element = this._scope = this._attrs = null;
}
});
MicroEvent.mixin(TabbarView);
TabbarView.registerAnimator = function(name, Animator) {
return window.OnsTabbarElement.registerAnimator(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
* @initonly
* @extensionOf angular
* @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 animation-options
* @type {Expression}
* @description
* [en]Specify the animation's duration, timing and delay with an object literal. E.g. <code>{duration: 0.2, delay: 1, timing: 'ease-in'}</code>[/en]
* [ja]アニメーション時のduration, timing, delayをオブジェクトリテラルで指定します。e.g. <code>{duration: 0.2, delay: 1, timing: 'ease-in'}</code>[/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
* @initonly
* @type {Expression}
* @extensionOf angular
* @description
* [en]Allows you to specify custom behavior when the "preshow" event is fired.[/en]
* [ja]"preshow"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-prehide
* @initonly
* @type {Expression}
* @extensionOf angular
* @description
* [en]Allows you to specify custom behavior when the "prehide" event is fired.[/en]
* [ja]"prehide"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-postshow
* @initonly
* @type {Expression}
* @extensionOf angular
* @description
* [en]Allows you to specify custom behavior when the "postshow" event is fired.[/en]
* [ja]"postshow"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-posthide
* @initonly
* @type {Expression}
* @extensionOf angular
* @description
* [en]Allows you to specify custom behavior when the "posthide" event is fired.[/en]
* [ja]"posthide"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-destroy
* @initonly
* @type {Expression}
* @extensionOf angular
* @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 {String} [options.animationOptions]
* [en]Specify the animation's duration, delay and timing. E.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code>[/en]
* [ja]アニメーション時のduration, delay, timingを指定します。e.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code> [/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 {String} [options.animationOptions]
* [en]Specify the animation's duration, delay and timing. E.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code>[/en]
* [ja]アニメーション時のduration, delay, timingを指定します。e.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code> [/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)
* @extensionOf angular
* @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)
* @extensionOf angular
* @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])
* @extensionOf angular
* @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';
/**
* Alert dialog directive.
*/
angular.module('onsen').directive('onsAlertDialog', ['$onsen', 'AlertDialogView', function($onsen, AlertDialogView) {
return {
restrict: 'E',
replace: false,
scope: true,
transclude: false,
compile: function(element, attrs) {
CustomElements.upgrade(element[0]);
return {
pre: function(scope, element, attrs) {
CustomElements.upgrade(element[0]);
var alertDialog = new AlertDialogView(scope, element, attrs);
$onsen.declareVarAttribute(attrs, alertDialog);
$onsen.registerEventHandlers(alertDialog, 'preshow prehide postshow posthide destroy');
$onsen.addModifierMethodsForCustomElements(alertDialog, element);
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 page
* @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,
compile: function(element, attrs) {
CustomElements.upgrade(element[0]);
return {
pre: function(scope, element, attrs, controller, transclude) {
CustomElements.upgrade(element[0]);
var backButton = GenericView.register(scope, element, attrs, {
viewKey: 'ons-back-button'
});
scope.$on('$destroy', function() {
backButton._events = undefined;
$onsen.removeModifierMethods(backButton);
element = null;
});
ComponentCleaner.onDestroy(scope, function() {
ComponentCleaner.destroyScope(scope);
ComponentCleaner.destroyAttributes(attrs);
element = scope = attrs = null;
});
},
post: function(scope, element) {
$onsen.fireComponentEvent(element[0], 'init');
}
};
}
};
}]);
})();
/**
* @ngdoc directive
* @id bottom_toolbar
* @name ons-bottom-toolbar
* @category page
* @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
* @initonly
* @description
* [en]Display the toolbar as an inline element.[/en]
* [ja]この属性があると、ツールバーを画面下部ではなくスクロール領域内にそのまま表示します。[/ja]
*/
(function(){
'use strict';
angular.module('onsen').directive('onsBottomToolbar', ['$onsen', 'GenericView', function($onsen, GenericView) {
return {
restrict: 'E',
link: {
pre: function(scope, element, attrs) {
CustomElements.upgrade(element[0]);
GenericView.register(scope, element, attrs, {
viewKey: 'ons-bottomToolbar'
});
var inline = typeof attrs.inline !== 'undefined';
var pageView = element.inheritedData('ons-page');
if (pageView && !inline) {
pageView._element[0]._registerBottomToolbar(element[0]);
}
},
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 disabled
* @description
* [en]Specify if button should be disabled.[/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';
angular.module('onsen').directive('onsButton', ['$onsen', 'GenericView', function($onsen, GenericView) {
return {
restrict: 'E',
link: function(scope, element, attrs) {
CustomElements.upgrade(element[0]);
var button = GenericView.register(scope, element, attrs, {
viewKey: 'ons-button'
});
/**
* Returns whether the button is disabled or not.
*/
button.isDisabled = function() {
return this._element[0].hasAttribute('disabled');
};
/**
* Disabled or enable button.
*/
button.setDisabled = function(disabled) {
if (disabled) {
this._element[0].setAttribute('disabled', '');
} else {
this._element[0].removeAttribute('disabled');
}
};
$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
* @initonly
* @type {String}
* @extensionOf angular
* @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]この属性がある時、一番近いcarousel-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 initial-index
* @initonly
* @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
* @initonly
* @type {Expression}
* @extensionOf angular
* @description
* [en]Allows you to specify custom behavior when the "postchange" event is fired.[/en]
* [ja]"postchange"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-refresh
* @initonly
* @type {Expression}
* @extensionOf angular
* @description
* [en]Allows you to specify custom behavior when the "refresh" event is fired.[/en]
* [ja]"refresh"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-overscroll
* @initonly
* @type {Expression}
* @extensionOf angular
* @description
* [en]Allows you to specify custom behavior when the "overscroll" event is fired.[/en]
* [ja]"overscroll"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-destroy
* @initonly
* @type {Expression}
* @extensionOf angular
* @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 {Boolean} 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]swipeable属性があるかどうかを返します。[/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 getCarouselItemCount)
* @return {Number}
* [en]The number of carousel items.[/en]
* [ja]カルーセル要素の数です。[/ja]
* @description
* [en]Returns the current number of carousel items..[/en]
* [ja]現在のカルーセル要素を数を返します。[/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)
* @extensionOf angular
* @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)
* @extensionOf angular
* @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])
* @extensionOf angular
* @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) {
CustomElements.upgrade(element[0]);
return function(scope, element, attrs) {
CustomElements.upgrade(element[0]);
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', function() {
return {
restrict: 'E',
compile: function(element, attrs) {
CustomElements.upgrade(element[0]);
return function(scope, element, attrs) {
CustomElements.upgrade(element[0]);
};
}
};
});
})();
/**
* @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 vertical-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]
*/
/**
* @ngdoc directive
* @id dialog
* @name ons-dialog
* @category dialog
* @modifier material
* [en]Display a Material Design dialog.[/en]
* [ja]マテリアルデザインのダイアログを表示します。[/ja]
* @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
* @initonly
* @type {String}
* @extensionOf angular
* @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 animation-options
* @type {Expression}
* @description
* [en]Specify the animation's duration, timing and delay with an object literal. E.g. <code>{duration: 0.2, delay: 1, timing: 'ease-in'}</code>[/en]
* [ja]アニメーション時のduration, timing, delayをオブジェクトリテラルで指定します。e.g. <code>{duration: 0.2, delay: 1, timing: 'ease-in'}</code>[/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
* @initonly
* @extensionOf angular
* @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
* @initonly
* @extensionOf angular
* @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
* @extensionOf angular
* @initonly
* @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
* @extensionOf angular
* @initonly
* @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
* @extensionOf angular
* @initonly
* @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 {String} [options.animationOptions]
* [en]Specify the animation's duration, delay and timing. E.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code>[/en]
* [ja]アニメーション時のduration, delay, timingを指定します。e.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code> [/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 {String} [options.animationOptions]
* [en]Specify the animation's duration, delay and timing. E.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code>[/en]
* [ja]アニメーション時のduration, delay, timingを指定します。e.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code> [/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)
* @extensionOf angular
* @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)
* @extensionOf angular
* @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])
* @extensionOf angular
* @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';
angular.module('onsen').directive('onsDialog', ['$onsen', 'DialogView', function($onsen, DialogView) {
return {
restrict: 'E',
scope: true,
compile: function(element, attrs) {
CustomElements.upgrade(element[0]);
return {
pre: function(scope, element, attrs) {
CustomElements.upgrade(element[0]);
var dialog = new DialogView(scope, element, attrs);
$onsen.declareVarAttribute(attrs, dialog);
$onsen.registerEventHandlers(dialog, 'preshow prehide postshow posthide destroy');
$onsen.addModifierMethodsForCustomElements(dialog, element);
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;
}, {});
function titlize(str) {
return str.charAt(0).toUpperCase() + str.slice(1);
}
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, _, transclude) {
transclude(scope.$parent, function(cloned) {
element.append(cloned);
});
var handler = function(event) {
var attr = 'ng' + titlize(event.type);
if (attr in scopeDef) {
scope[attr]({$event: event});
}
};
var gestureDetector;
setImmediate(function() {
gestureDetector = element[0]._gestureDetector;
gestureDetector.on(EVENTS.join(' '), handler);
});
$onsen.cleaner.onDestroy(scope, function() {
gestureDetector.off(EVENTS.join(' '), handler);
$onsen.clearComponent({
scope: scope,
element: element,
attrs: attrs
});
gestureDetector.element = scope = element = attrs = null;
});
$onsen.fireComponentEvent(element[0], 'init');
};
}
};
}]);
})();
/**
* @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]
*/
/**
* @ngdoc directive
* @id if-orientation
* @name ons-if-orientation
* @category util
* @extensionOf angular
* @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
* @initonly
* @extensionOf angular
* @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
* @extensionOf angular
* @description
* [en]Conditionally display content depending on the platform / browser. Valid values are "opera", "firefox", "safari", "chrome", "ie", "edge", "android", "blackberry", "ios" and "wp".[/en]
* [ja]プラットフォームやブラウザーに応じてコンテンツの制御をおこないます。opera, firefox, safari, chrome, ie, edge, android, blackberry, ios, wpのいずれかの値を空白区切りで複数指定できます。[/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}
* @initonly
* @extensionOf angular
* @description
* [en]One or multiple space separated values: "opera", "firefox", "safari", "chrome", "ie", "edge", "android", "blackberry", "ios" or "wp".[/en]
* [ja]"opera", "firefox", "safari", "chrome", "ie", "edge", "android", "blackberry", "ios", "wp"のいずれか空白区切りで複数指定できます。[/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() {
var userPlatforms = attrs.onsIfPlatform.toLowerCase().trim().split(/\s+/);
if (userPlatforms.indexOf(platform.toLowerCase()) >= 0) {
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(/Windows Phone|IEMobile|WPDesktop/i)) {
return 'wp';
}
// 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 isEdge = navigator.userAgent.indexOf(' Edge/') >= 0;
if (isEdge) {
return 'edge';
}
var isChrome = !!window.chrome && !isOpera && !isEdge; // 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
* @extensionOf angular
* @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
* @extensionOf angular
* @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}
* @initonly
* @extensionOf angular
* @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,
terminal: true,
compile: function(element, attrs) {
return function(scope, element, attrs) {
var lazyRepeat = new LazyRepeatView(scope, element, attrs);
scope.$on('$destroy', function() {
scope = element = attrs = lazyRepeat = 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';
angular.module('onsen').directive('onsList', ['$onsen', 'GenericView', function($onsen, GenericView) {
return {
restrict: 'E',
link: function(scope, element, attrs) {
CustomElements.upgrade(element[0]);
GenericView.register(scope, element, attrs, {viewKey: 'ons-list'});
$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';
angular.module('onsen').directive('onsListHeader', ['$onsen', 'GenericView', function($onsen, GenericView) {
return {
restrict: 'E',
link: function(scope, element, attrs) {
CustomElements.upgrade(element[0]);
GenericView.register(scope, element, attrs, {viewKey: 'ons-listHeader'});
$onsen.fireComponentEvent(element[0], 'init');
}
};
}]);
})();
/**
* @ngdoc directive
* @id list-item
* @name ons-list-item
* @category list
* @modifier tight
* [en]Remove the space above and below the item content. This is useful for multi-line content.[/en]
* [ja]行間のスペースを取り除きます。複数行の内容をリストで扱う場合に便利です。[/ja]
* @modifier tappable
* [en]Make 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]
*/
/**
* @ngdoc attribute
* @name lock-on-drag
* @type {String}
* @description
* [en]Prevent vertical scrolling when the user drags horizontally.[/en]
* [ja]この属性があると、ユーザーがこの要素を横方向にドラッグしている時に、縦方向のスクロールが起きないようになります。[/ja]
*/
(function() {
'use strict';
angular.module('onsen').directive('onsListItem', ['$onsen', 'GenericView', function($onsen, GenericView) {
return {
restrict: 'E',
link: function(scope, element, attrs) {
CustomElements.upgrade(element[0]);
GenericView.register(scope, element, attrs, {viewKey: 'ons-list-item'});
$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
* @initonly
* @type {String}
* @description
* [en]The url of the page to load.[/en]
* [ja]読み込むページのURLを指定します。[/ja]
*/
(function(){
'use strict';
angular.module('onsen').directive('onsLoadingPlaceholder', function() {
return {
restrict: 'A',
link: function(scope, element, attrs) {
CustomElements.upgrade(element[0]);
if (attrs.onsLoadingPlaceholder) {
ons._resolveLoadingPlaceholder(element[0], attrs.onsLoadingPlaceholder, function(contentElement, done) {
CustomElements.upgrade(contentElement);
ons.compile(contentElement);
scope.$evalAsync(function() {
setImmediate(done);
});
});
}
}
};
});
})();
/**
* @ngdoc directive
* @id material-input
* @name ons-material-input
* @category form
* @description
* [en]Material Design input component.[/en]
* [ja]Material Designのinputコンポ―ネントです。[/ja]
* @guide UsingFormComponents
* [en]Using form components[/en]
* [ja]フォームを使う[/ja]
* @guide EventHandling
* [en]Event handling descriptions[/en]
* [ja]イベント処理の使い方[/ja]
* @example
* <ons-material-input label="Username"></ons-material-input>
*/
/**
* @ngdoc attribute
* @name label
* @type {String}
* @description
* [en]Text for animated floating label.[/en]
* [ja]アニメーションさせるフローティングラベルのテキストを指定します。[/ja]
*/
/**
* @ngdoc attribute
* @name no-float
* @description
* [en]If this attribute is present, the label will not be animated.[/en]
* [ja]この属性が設定された時、ラベルはアニメーションしないようになります。[/ja]
*/
/**
* @ngdoc attribute
* @name ng-model
* @extensionOf angular
* @description
* [en]Bind the value to a model. Works just like for normal input elements.[/en]
* [ja]この要素の値をモデルに紐付けます。通常のinput要素の様に動作します。[/ja]
*/
/**
* @ngdoc attribute
* @name ng-change
* @extensionOf angular
* @description
* [en]Executes an expression when the value changes. Works just like for normal input elements.[/en]
* [ja]値が変わった時にこの属性で指定したexpressionが実行されます。通常のinput要素の様に動作します。[/ja]
*/
(function(){
'use strict';
angular.module('onsen').directive('onsMaterialInput', ['$parse', function($parse) {
return {
restrict: 'E',
replace: false,
scope: true,
link: function(scope, element, attrs) {
CustomElements.upgrade(element[0]);
if (attrs.ngModel) {
var set = $parse(attrs.ngModel).assign;
scope.$parent.$watch(attrs.ngModel, function(value) {
element[0].value = value;
});
element[0]._input.addEventListener('input', function() {
set(scope.$parent, element[0].value);
if (attrs.ngChange) {
scope.$eval(attrs.ngChange);
}
scope.$parent.$evalAsync();
}.bind(this));
}
}
};
}]);
})();
/**
* @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}
* @extensionOf angular
* @initonly
* @description
* [en]Variable name to refer this modal.[/en]
* [ja]このモーダルを参照するための名前を指定します。[/ja]
*/
/**
* @ngdoc attribute
* @name animation
* @type {String}
* @default default
* @description
* [en]The animation used when showing and hiding the modal. Can be either "none" or "fade".[/en]
* [ja]モーダルを表示する際のアニメーション名を指定します。"none"もしくは"fade"を指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name animation-options
* @type {Expression}
* @description
* [en]Specify the animation's duration, timing and delay with an object literal. E.g. <code>{duration: 0.2, delay: 1, timing: 'ease-in'}</code>[/en]
* [ja]アニメーション時のduration, timing, delayをオブジェクトリテラルで指定します。e.g. <code>{duration: 0.2, delay: 1, timing: 'ease-in'}</code>[/ja]
*/
/**
* @ngdoc method
* @signature toggle([options])
* @param {Object} [options]
* [en]Parameter object.[/en]
* [ja]オプションを指定するオブジェクト。[/ja]
* @param {String} [options.animation]
* [en]Animation name. Available animations are "none" and "fade".[/en]
* [ja]アニメーション名を指定します。"none", "fade"のいずれかを指定します。[/ja]
* @param {String} [options.animationOptions]
* [en]Specify the animation's duration, delay and timing. E.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code>[/en]
* [ja]アニメーション時のduration, delay, timingを指定します。e.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code> [/ja]
* @description
* [en]Toggle modal visibility.[/en]
* [ja]モーダルの表示を切り替えます。[/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" and "fade".[/en]
* [ja]アニメーション名を指定します。"none", "fade"のいずれかを指定します。[/ja]
* @param {String} [options.animationOptions]
* [en]Specify the animation's duration, delay and timing. E.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code>[/en]
* [ja]アニメーション時のduration, delay, timingを指定します。e.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code> [/ja]
* @description
* [en]Show modal.[/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" and "fade".[/en]
* [ja]アニメーション名を指定します。"none", "fade"のいずれかを指定します。[/ja]
* @param {String} [options.animationOptions]
* [en]Specify the animation's duration, delay and timing. E.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code>[/en]
* [ja]アニメーション時のduration, delay, timingを指定します。e.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code> [/ja]
* @description
* [en]Hide modal.[/en]
* [ja]モーダルを非表示にします。[/ja]
*/
/**
* @ngdoc method
* @signature isShown()
* @return {Boolean}
* [en]true if the modal is visible.[/en]
* [ja]モーダルが表示されている場合にtrueとなります。[/ja]
* @description
* [en]Returns whether the modal is visible or not.[/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';
/**
* Modal directive.
*/
angular.module('onsen').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-transclude.
scope: false,
transclude: false,
link: {
pre: function(scope, element, attrs) {
CustomElements.upgrade(element[0]);
var modal = new ModalView(scope, element, attrs);
$onsen.addModifierMethodsForCustomElements(modal, element);
$onsen.declareVarAttribute(attrs, modal);
element.data('ons-modal', modal);
element[0]._ensureNodePosition();
scope.$on('$destroy', function() {
$onsen.removeModifierMethods(modal);
element.data('ons-modal', undefined);
modal = element = scope = attrs = null;
});
},
post: function(scope, element) {
$onsen.fireComponentEvent(element[0], 'init');
}
}
};
}]);
})();
/**
* @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();">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
* @initonly
* @type {String}
* @description
* [en]First page to show when navigator is initialized.[/en]
* [ja]ナビゲーターが初期化された時に表示するページを指定します。[/ja]
*/
/**
* @ngdoc attribute
* @name var
* @initonly
* @extensionOf angular
* @type {String}
* @description
* [en]Variable name to refer this navigator.[/en]
* [ja]このナビゲーターを参照するための名前を指定します。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-prepush
* @initonly
* @extensionOf angular
* @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
* @initonly
* @extensionOf angular
* @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
* @initonly
* @extensionOf angular
* @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
* @initonly
* @extensionOf angular
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when the "postpop" event is fired.[/en]
* [ja]"postpop"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-init
* @initonly
* @extensionOf angular
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when a page's "init" event is fired.[/en]
* [ja]ページの"init"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-show
* @initonly
* @extensionOf angular
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when a page's "show" event is fired.[/en]
* [ja]ページの"show"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-hide
* @initonly
* @extensionOf angular
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when a page's "hide" event is fired.[/en]
* [ja]ページの"hide"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-destroy
* @initonly
* @extensionOf angular
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when a page's "destroy" event is fired.[/en]
* [ja]ページの"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name animation
* @type {String}
* @default default
* @description
* [en]Specify the transition animation. Use one of "slide", "simpleslide", "fade", "lift", "none" and "default".[/en]
* [ja]画面遷移する際のアニメーションを指定します。"slide", "simpleslide", "fade", "lift", "none", "default"のいずれかを指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name animation-options
* @type {Expression}
* @description
* [en]Specify the animation's duration, timing and delay with an object literal. E.g. <code>{duration: 0.2, delay: 1, timing: 'ease-in'}</code>[/en]
* [ja]アニメーション時のduration, timing, delayをオブジェクトリテラルで指定します。e.g. <code>{duration: 0.2, delay: 1, timing: 'ease-in'}</code>[/ja]
*/
/**
* @ngdoc method
* @signature pushPage(pageUrl, [options])
* @param {String} pageUrl
* [en]Page URL. Can be either a HTML document or a <code><ons-template></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 {String} [options.animationOptions]
* [en]Specify the animation's duration, delay and timing. E.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code>[/en]
* [ja]アニメーション時のduration, delay, timingを指定します。e.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code> [/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 bringPageTop(item, [options])
* @param {String|Number} item
* [en]Page URL or index of an existing page in navigator's stack.[/en]
* [ja]ページのURLかもしくはons-navigatorのページスタックのインデックス値を指定します。[/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 {String} [options.animationOptions]
* [en]Specify the animation's duration, delay and timing. E.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code>[/en]
* [ja]アニメーション時のduration, delay, timingを指定します。e.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code> [/ja]
* @param {Function} [options.onTransitionEnd]
* [en]Function that is called when the transition has ended.[/en]
* [ja]pushPage()による画面遷移が終了した時に呼び出される関数オブジェクトを指定します。[/ja]
* @description
* [en]Brings the given page to the top of the page-stack if already exists or pushes it into the stack if doesn't.[/en]
* [ja]指定したページをページスタックの一番上に移動します。もし指定したページが無かった場合新しくpushされます。[/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><ons-template></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 {String} [options.animationOptions]
* [en]Specify the animation's duration, delay and timing. E.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code>[/en]
* [ja]アニメーション時のduration, delay, timingを指定します。e.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code> [/ja]
* @param {Boolean} [options.refresh]
* [en]The previous page will be refreshed (destroyed and created again) before popPage action.[/en]
* [ja]popPageする前に、前にあるページを生成しなおして更新する場合にtrueを指定します。[/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><ons-template></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 {String} [options.animationOptions]
* [en]Specify the animation's duration, delay and timing. E.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code>[/en]
* [ja]アニメーション時のduration, delay, timingを指定します。e.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code> [/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/undefined} pageUrl
* [en]Page URL. Can be either a HTML document or an <code><ons-template></code>. If the value is undefined or '', the navigator will be reset to the page that was first displayed.[/en]
* [ja]pageのURLか、もしくはons-templateで宣言したテンプレートのid属性の値を指定できます。undefinedや''を指定すると、ons-navigatorが最初に表示したページを指定したことになります。[/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)
* @extensionOf angular
* @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)
* @extensionOf angular
* @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])
* @extensionOf angular
* @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 lastReady = window.OnsNavigatorElement.rewritables.ready;
window.OnsNavigatorElement.rewritables.ready = ons._waitDiretiveInit('ons-navigator', lastReady);
var lastLink = window.OnsNavigatorElement.rewritables.link;
window.OnsNavigatorElement.rewritables.link = function(navigatorElement, target, callback) {
var view = angular.element(navigatorElement).data('ons-navigator');
view._compileAndLink(target, function(target) {
lastLink(navigatorElement, target, callback);
});
};
angular.module('onsen').directive('onsNavigator', ['NavigatorView', '$onsen', function(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) {
CustomElements.upgrade(element[0]);
return {
pre: function(scope, element, attrs, controller) {
CustomElements.upgrade(element[0]);
var navigator = new NavigatorView(scope, element, attrs);
$onsen.declareVarAttribute(attrs, navigator);
$onsen.registerEventHandlers(navigator, 'prepush prepop postpush postpop init show hide destroy');
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 page
* @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 Pagelifecycle
* [en]Page life cycle events[/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 event
* @name init
* @description
* [en]Fired right after the page is attached.[/en]
* [ja]ページがアタッチされた後に発火します。[/ja]
* @param {Object} event [en]Event object.[/en]
* @param {Object} event.page
* [en]Page object.[/en]
* [ja]ページのオブジェクト。[/ja]
*/
/**
* @ngdoc event
* @name show
* @description
* [en]Fired right after the page is shown.[/en]
* [ja]ページが表示された後に発火します。[/ja]
* @param {Object} event [en]Event object.[/en]
* @param {Object} event.page
* [en]Page object.[/en]
* [ja]ページのオブジェクト。[/ja]
*/
/**
* @ngdoc event
* @name hide
* @description
* [en]Fired right after the page is hidden.[/en]
* [ja]ページが隠れた後に発火します。[/ja]
* @param {Object} event [en]Event object.[/en]
* @param {Object} event.page
* [en]Page object.[/en]
* [ja]ページのオブジェクト。[/ja]
*/
/**
* @ngdoc event
* @name destroy
* @description
* [en]Fired right before the page is destroyed.[/en]
* [ja]ページが破棄される前に発火します。[/ja]
* @param {Object} event [en]Event object.[/en]
* @param {Object} event.page
* [en]Page object.[/en]
* [ja]ページのオブジェクト。[/ja]
*/
/**
* @ngdoc attribute
* @name var
* @initonly
* @extensionOf angular
* @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}
* @extensionOf angular
* @description
* [en]Allows you to specify custom behavior when the back button is pressed.[/en]
* [ja]デバイスのバックボタンが押された時の挙動を設定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ng-device-backbutton
* @initonly
* @extensionOf angular
* @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 attribute
* @name ons-init
* @initonly
* @extensionOf angular
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when the "init" event is fired.[/en]
* [ja]"init"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-show
* @initonly
* @extensionOf angular
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when the "show" event is fired.[/en]
* [ja]"show"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-hide
* @initonly
* @extensionOf angular
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when the "hide" event is fired.[/en]
* [ja]"hide"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-destroy
* @initonly
* @extensionOf angular
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en]
* [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/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, f = function() {
if (i++ < 15) {
if (isAttached(element)) {
element._tryToFillStatusBar();
$onsen.fireComponentEvent(element, 'init');
fireActualPageInitEvent(element);
} else {
if (i > 10) {
setTimeout(f, 1000 / 60);
} 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 isAttached(element) {
if (document.documentElement === element) {
return true;
}
return element.parentNode ? isAttached(element.parentNode) : false;
}
return {
restrict: 'E',
// 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) {
CustomElements.upgrade(element[0]);
return {
pre: function(scope, element, attrs) {
CustomElements.upgrade(element[0]);
var page = new PageView(scope, element, attrs);
$onsen.declareVarAttribute(attrs, page);
$onsen.registerEventHandlers(page, 'init show hide destroy');
element.data('ons-page', page);
$onsen.addModifierMethodsForCustomElements(page, element);
element.data('_scope', scope);
$onsen.cleaner.onDestroy(scope, function() {
page._events = undefined;
$onsen.removeModifierMethods(page);
element.data('ons-page', undefined);
element.data('_scope', undefined);
$onsen.clearComponent({
element: element,
scope: scope,
attrs: attrs
});
scope = element = attrs = null;
});
},
post: function postLink(scope, element, attrs) {
firePageInitEvent(element[0]);
}
};
}
};
}]);
})();
/**
* @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
* @initonly
* @extensionOf angular
* @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 animation-options
* @type {Expression}
* @description
* [en]Specify the animation's duration, timing and delay with an object literal. E.g. <code>{duration: 0.2, delay: 1, timing: 'ease-in'}</code>[/en]
* [ja]アニメーション時のduration, timing, delayをオブジェクトリテラルで指定します。e.g. <code>{duration: 0.2, delay: 1, timing: 'ease-in'}</code>[/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
* @initonly
* @extensionOf angular
* @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
* @initonly
* @extensionOf angular
* @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
* @initonly
* @extensionOf angular
* @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
* @initonly
* @extensionOf angular
* @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
* @initonly
* @extensionOf angular
* @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]
* @param {String} [options.animationOptions]
* [en]Specify the animation's duration, delay and timing. E.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code>[/en]
* [ja]アニメーション時のduration, delay, timingを指定します。e.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code> [/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]
* @param {String} [options.animationOptions]
* [en]Specify the animation's duration, delay and timing. E.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code>[/en]
* [ja]アニメーション時のduration, delay, timingを指定します。e.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code> [/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)
* @extensionOf angular
* @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)
* @extensionOf angular
* @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])
* @extensionOf angular
* @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,
scope: true,
compile: function(element, attrs) {
CustomElements.upgrade(element[0]);
return {
pre: function(scope, element, attrs) {
CustomElements.upgrade(element[0]);
var popover = new PopoverView(scope, element, attrs);
$onsen.declareVarAttribute(attrs, popover);
$onsen.registerEventHandlers(popover, 'preshow prehide postshow posthide destroy');
$onsen.addModifierMethodsForCustomElements(popover, element);
element.data('ons-popover', popover);
scope.$on('$destroy', function() {
popover._events = undefined;
$onsen.removeModifierMethods(popover);
element.data('ons-popover', undefined);
element = null;
});
if ($onsen.isAndroid()) {
setImmediate(function() {
popover.addModifier('android');
});
}
},
post: function(scope, element) {
$onsen.fireComponentEvent(element[0], 'init');
}
};
}
};
}]);
})();
/**
* @ngdoc directive
* @id progress
* @name ons-progress
* @category progress
* @description
* [en]A material design progress component. Can be displayed both as a linear or circular progress indicator.[/en]
* [ja]マテリアルデザインのprgoressコンポーネントです。linearもしくはcircularなプログレスインジケータを表示できます。[/ja]
* @example
* <ons-progress
* type="circular"
* value="55"
* secondary-value="87">
* </ons-progress>
*/
/**
* @ngdoc attribute
* @name type
* @initonly
* @type {String}
* @description
* [en]The type of indicator. Can be one of either "bar" or "circular". Defaults to "bar".[/en]
* [ja]indicatorのタイプを指定します。"bar"もしくは"circular"を指定できます。デフォルトは"bar"です。[/ja]
*/
/**
* @ngdoc attribute
* @name modifier
* @type {String}
* @description
* [en]Change the appearance of the progress indicator.[/en]
* [ja]プログレスインジケータの見た目を変更します。[/ja]
*/
/**
* @ngdoc attribute
* @name value
* @type {Number}
* @description
* [en]Current progress. Should be a value between 0 and 100.[/en]
* [ja]現在の進行状況の値を指定します。0から100の間の値を指定して下さい。[/ja]
*/
/**
* @ngdoc attribute
* @name secondary-value
* @type {Number}
* @description
* [en]Current secondary progress. Should be a value between 0 and 100.[/en]
* [ja]現在の2番目の進行状況の値を指定します。0から100の間の値を指定して下さい。[/ja]
*/
/**
* @ngdoc attribute
* @name indeterminate
* @description
* [en]If this attribute is set, an infinite looping animation will be shown.[/en]
* [ja]この属性が設定された場合、ループするアニメーションが表示されます。[/ja]
*/
/**
* @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="loader" 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
* @extensionOf angular
* @initonly
* @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
* @initonly
* @extensionOf angular
* @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 fixed-content
* @description
* [en]If this attribute is set the content of the page will not move when pulling.[/en]
* [ja]この属性がある時、プルフックが引き出されている時にもコンテンツは動きません。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-changestate
* @initonly
* @extensionOf angular
* @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]disabled状態になっているかを得ることが出来ます。[/ja]
*/
/**
* @ngdoc method
* @signature getHeight()
* @description
* [en]Returns the height of the pull hook in pixels.[/en]
* [ja]プルフックの高さをピクセル数で返します。[/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 getThresholdHeight()
* @description
* [en]Returns the height of the threshold in pixels.[/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 getPullDistance()
* @description
* [en]Returns the current number of pixels the pull hook has moved.[/en]
* [ja]現在のプルフックが引き出された距離をピクセル数で返します。[/ja]
*/
/**
* @ngdoc method
* @signature getCurrentState()
* @description
* [en]Returns the current state of the element.[/en]
* [ja]要素の現在の状態を返します。[/ja]
*/
/**
* @ngdoc method
* @signature on(eventName, listener)
* @extensionOf angular
* @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)
* @extensionOf angular
* @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])
* @extensionOf angular
* @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';
/**
* Pull hook directive.
*/
angular.module('onsen').directive('onsPullHook', ['$onsen', 'PullHookView', function($onsen, PullHookView) {
return {
restrict: 'E',
replace: false,
scope: true,
compile: function(element, attrs) {
CustomElements.upgrade(element[0]);
return {
pre: function(scope, element, attrs) {
CustomElements.upgrade(element[0]);
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 ripple
* @name ons-ripple
* @category form
* @description
* [en]Adds a Material Design "ripple" effect to an element.[/en]
* [ja]マテリアルデザインのリップル効果をDOM要素に追加します。[/ja]
* @example
* <ons-list>
* <ons-list-item>
* <ons-ripple color="rgba(0, 0, 0, 0.3)"></ons-ripple>
* Click me!
* </ons-list-item>
* </ons-list>
*
* <ons-ripple target="children" color="rgba(0, 0, 0, 0.3)">
* <p>Click me!</p>
* </ons-ripple>
*/
/**
* @ngdoc attribute
* @name color
* @type {String}
* @description
* [en]Color of the ripple effect.[/en]
* [ja]リップルエフェクトの色を指定します。[/ja]
*/
/**
* @ngdoc attribute
* @name center
* @description
* [en]If this attribute is set, the effect will originate from the center.[/en]
* [ja]この属性が設定された場合、その効果は要素の中央から始まります。[/ja]
*/
/**
* @ngdoc attribute
* @name target
* @type {String}
* @description
* [en]If this attribute is set to children, the effect will be applied to the children of the component instead of the parent.[/en]
* [ja]この属性に"children"を設定されたとき、リップルエフェクトはこのコンポーネントの子要素に適用されます。そうでなければ、親要素に適用されます。[/ja]
*/
/**
* @ngdoc attribute
* @name disabled
* @description
* [en]If this attribute is set, the ripple effect will be disabled.[/en]
* [ja]この属性が設定された場合、リップルエフェクトは無効になります。[/ja]
*/
(function() {
'use strict';
angular.module('onsen').directive('onsRipple', ['$onsen', 'GenericView', function($onsen, GenericView) {
return {
restrict: 'E',
link: function(scope, element, attrs) {
CustomElements.upgrade(element[0]);
GenericView.register(scope, element, attrs, {viewKey: 'ons-ripple'});
$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-col, they may not be displayed correctly. You can use only one vertical-align.[/en]
* [ja]Android 4.3以前、もしくはiOS 6以前のOSの場合、ons-rowとons-colを組み合わせてそれぞれのons-col要素のvertical-align属性の値に別々の値を指定すると、描画が崩れる場合があります。vertical-align属性の値には一つの値だけを指定できます。[/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 vertical-align
* @type {String}
* @description
* [en]Short hand attribute for aligning vertically. Valid values are top, bottom, and center.[/en]
* [ja]縦に整列するために指定します。top、bottom、centerのいずれかを指定できます。[/ja]
*/
/**
* @ngdoc directive
* @id scope
* @name ons-scope
* @category util
* @extensionOf angular
* @description
* [en]All child elements using the "var" attribute will be attached to the scope of this element.[/en]
* [ja]"var"属性を使っている全ての子要素のviewオブジェクトは、この要素のAngularJSスコープに追加されます。[/ja]
* @example
* <ons-list>
* <ons-list-item ons-scope ng-repeat="item in items">
* <ons-carousel var="carousel">
* <ons-carousel-item ng-click="carousel.next()">
* {{ item }}
* </ons-carousel-item>
* </ons-carousel-item ng-click="carousel.prev()">
* ...
* </ons-carousel-item>
* </ons-carousel>
* </ons-list-item>
* </ons-list>
*/
(function() {
'use strict';
var module = angular.module('onsen');
module.directive('onsScope', ['$onsen', function($onsen) {
return {
restrict: 'A',
replace: false,
transclude: false,
scope: false,
link: function(scope, element) {
element.data('_scope', scope);
scope.$on('$destroy', function() {
element.data('_scope', undefined);
});
}
};
}]);
})();
/**
* @ngdoc directive
* @id scroller
* @name ons-scroller
* @category page
* @description
* [en]Makes the content inside this tag scrollable.[/en]
* [ja]要素内をスクロール可能にします。[/ja]
* @example
* <ons-scroller style="height: 200px; width: 100%">
* ...
* </ons-scroller>
*/
/**
* @ngdoc directive
* @id sliding_menu
* @name ons-sliding-menu
* @category navigation
* @extensionOf angular
* @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
* @initonly
* @type {String}
* @description
* [en]Variable name to refer this sliding menu.[/en]
* [ja]このスライディングメニューを参照するための名前を指定します。[/ja]
*/
/**
* @ngdoc attribute
* @name menu-page
* @initonly
* @type {String}
* @description
* [en]The url of the menu page.[/en]
* [ja]左に位置するメニューページのURLを指定します。[/ja]
*/
/**
* @ngdoc attribute
* @name main-page
* @initonly
* @type {String}
* @description
* [en]The url of the main page.[/en]
* [ja]右に位置するメインページのURLを指定します。[/ja]
*/
/**
* @ngdoc attribute
* @name swipeable
* @initonly
* @type {Boolean}
* @description
* [en]Whether to enable swipe interaction.[/en]
* [ja]スワイプ操作を有効にする場合に指定します。[/ja]
*/
/**
* @ngdoc attribute
* @name swipe-target-width
* @initonly
* @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
* @initonly
* @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 side
* @initonly
* @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
* @initonly
* @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
* @initonly
* @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
* @initonly
* @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
* @initonly
* @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
* @initonly
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when the "postclose" event is fired.[/en]
* [ja]"postclose"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-init
* @initonly
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when a page's "init" event is fired.[/en]
* [ja]ページの"init"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-show
* @initonly
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when a page's "show" event is fired.[/en]
* [ja]ページの"show"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-hide
* @initonly
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when a page's "hide" event is fired.[/en]
* [ja]ページの"hide"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-destroy
* @initonly
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when a page's "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><ons-template></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><ons-template></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) {
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 init show hide 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 speed-dial
* @name ons-speed-dial
* @category speeddial
* @description
* [en]Element that displays a Material Design Speed Dialog component.[/en]
* [ja]Material DesignのSpeed dialコンポーネントを表現する要素です。[/ja]
* @seealso ons-speed-dial-item
* [en]ons-speed-dial-item component[/en]
* [ja]ons-speed-dial-itemコンポーネント[/ja]
* @example
* <ons-speed-dial position="left bottom">
* <ons-icon
* icon="fa-twitter"
* size="26px"
* fixed-width="false"
* style="vertical-align:middle;">
* </ons-icon>
* <ons-speed-dial-item><ons-ripple></ons-ripple>C</ons-speed-dial-item>
* <ons-speed-dial-item><ons-ripple></ons-ripple>B</ons-speed-dial-item>
* <ons-speed-dial-item><ons-ripple></ons-ripple>A</ons-speed-dial-item>
* </ons-speed-dial>
*/
/**
* @ngdoc attribute
* @name position
* @type {String}
* @description
* [en]
* Specify the vertical and horizontal position of the component.
* I.e. to display it in the top right corner specify "right top".
* Choose from "right", "left", "top" and "bottom".
* [/en]
* [ja]
* この要素を表示する左右と上下の位置を指定します。
* 例えば、右上に表示する場合には"right top"を指定します。
* 左右と上下の位置の指定には、rightとleft、topとbottomがそれぞれ指定できます。
* [/ja]
*/
/**
* @ngdoc attribute
* @name direction
* @type {String}
* @description
* [en]Specify the direction the items are displayed. Possible values are "up", "down", "left" and "right".[/en]
* [ja]
* 要素が表示する方向を指定します。up, down, left, rightが指定できます。
* [/ja]
*/
/**
* @ngdoc attribute
* @name disabled
* @description
* [en]Specify if button should be disabled.[/en]
* [ja]無効化する場合に指定します。[/ja]
*/
/**
* @ngdoc method
* @signature show()
* @description
* [en]Show the speed dial.[/en]
* [ja]Speed dialを表示します。[/ja]
*/
/**
* @ngdoc method
* @signature hide()
* @description
* [en]Hide the speed dial.[/en]
* [ja]Speed dialを非表示にします。[/ja]
*/
/**
* @ngdoc method
* @signature showItems()
* @description
* [en]Show the speed dial items.[/en]
* [ja]Speed dialの子要素を表示します。[/ja]
*/
/**
* @ngdoc method
* @signature hideItems()
* @description
* [en]Hide the speed dial items.[/en]
* [ja]Speed dialの子要素を非表示にします。[/ja]
*/
/**
* @ngdoc method
* @signature toggle()
* @description
* [en]Toggle visibility.[/en]
* [ja]Speed dialの表示非表示を切り替えます。[/ja]
*/
/**
* @ngdoc method
* @signature toggleItems()
* @description
* [en]Toggle item visibility.[/en]
* [ja]Speed dialの子要素の表示非表示を切り替えます。[/ja]
*/
/**
* @ngdoc method
* @signature setDisabled(disabled)
* @description
* [en]Disable or enable the element.[/en]
* [ja]disabled状態にするかどうかを設定します。[/ja]
*/
/**
* @ngdoc method
* @signature isDisabled()
* @return {Boolean}
* [en]true if the element is disabled.[/en]
* [ja]disabled状態になっているかどうかを返します。[/ja]
* @description
* [en]Returns whether the component is enabled or not.[/en]
* [ja]この要素を無効化するかどうかを指定します。[/ja]
*/
/**
* @ngdoc method
* @signature isInline()
* @description
* [en]Returns whether the component is inline or not.[/en]
* [ja]この要素がインライン要素かどうかを返します。[/ja]
*/
/**
* @ngdoc method
* @signature isShown()
* @return {Boolean}
* [en]True if the component is visible.[/en]
* [ja]表示されているかどうかを返します。[/ja]
* @description
* [en]Return whether the component is visible or not.[/en]
* [ja]表示されているかどうかを返します。[/ja]
*/
/**
* @ngdoc directive
* @id speed-dial-item
* @name ons-speed-dial-item
* @category speeddial
* @description
* [en]This component displays the child elements of the Material Design Speed dial component.[/en]
* [ja]Material DesignのSpeed dialの子要素を表現する要素です。[/ja]
* @seealso ons-speed-dial
* [en]ons-speed-dial component[/en]
* [ja]ons-speed-dialコンポーネント[/ja]
* @example
* <ons-speed-dial position="left bottom">
* <ons-icon
* icon="fa-twitter"
* size="26px"
* fixed-width="false"
* style="vertical-align:middle;">
* </ons-icon>
* <ons-speed-dial-item><ons-ripple></ons-ripple>C</ons-speed-dial-item>
* <ons-speed-dial-item><ons-ripple></ons-ripple>B</ons-speed-dial-item>
* <ons-speed-dial-item><ons-ripple></ons-ripple>A</ons-speed-dial-item>
* </ons-speed-dial>
*/
/**
* @ngdoc directive
* @id split-view
* @name ons-split-view
* @extensionOf angular
* @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
* @initonly
* @type {String}
* @description
* [en]Variable name to refer this split view.[/en]
* [ja]このスプリットビューコンポーネントを参照するための名前を指定します。[/ja]
*/
/**
* @ngdoc attribute
* @initonly
* @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
* @initonly
* @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
* @initonly
* @type {String}
* @description
* [en]The url of the page on the left.[/en]
* [ja]左側に表示するページのURLを指定します。[/ja]
*/
/**
* @ngdoc attribute
* @name collapse
* @initonly
* @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
* @initonly
* @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
* @initonly
* @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
* @initonly
* @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
* @initonly
* @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
* @initonly
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when the "postcollapse" event is fired.[/en]
* [ja]"postcollapse"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-init
* @initonly
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when a page's "init" event is fired.[/en]
* [ja]ページの"init"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-show
* @initonly
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when a page's "show" event is fired.[/en]
* [ja]ページの"show"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-hide
* @initonly
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when a page's "hide" event is fired.[/en]
* [ja]ページの"hide"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-destroy
* @initonly
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when a page's "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 behavior 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) {
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 init show hide 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 splitter
* @name ons-splitter
* @category control
* @description
* [en]A component that enables responsive layout by implementing both a two-column layout and a sliding menu layout.[/en]
* [ja]sliding-menuとsplit-view両方の機能を持つレイアウトです。[/ja]
* @guide CallingComponentAPIsfromJavaScript
* [en]Using components from JavaScript[/en]
* [ja]JavaScriptからコンポーネントを呼び出す[/ja]
* @example
* <ons-splitter>
* <ons-splitter-content>
* ...
* </ons-splitter-content>
*
* <ons-splitter-side side="left" width="80%" collapse>
* ...
* </ons-splitter-side>
* </ons-splitter>
*/
/**
* @ngdoc attribute
* @name var
* @extensionOf angular
* @initonly
* @type {String}
* @description
* [en]Variable name to refer this split view.[/en]
* [ja]このスプリットビューコンポーネントを参照するための名前を指定します。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-destroy
* @extensionOf angular
* @initonly
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en]
* [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc method
* @signature openRight([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]Open right ons-splitter-side menu on collapse mode.[/en]
* [ja]右のcollapseモードになっているons-splitter-side要素を開きます。[/ja]
*/
/**
* @ngdoc method
* @signature openLeft([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]Open left ons-splitter-side menu on collapse mode.[/en]
* [ja]左のcollapseモードになっているons-splitter-side要素を開きます。[/ja]
*/
/**
* @ngdoc method
* @signature closeRight([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]Close right ons-splitter-side menu on collapse mode.[/en]
* [ja]右のcollapseモードになっているons-splitter-side要素を閉じます。[/ja]
*/
/**
* @ngdoc method
* @signature closeLeft([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]Close left ons-splitter-side menu on collapse mode.[/en]
* [ja]左のcollapseモードになっているons-splitter-side要素を閉じます。[/ja]
*/
/**
* @ngdoc method
* @signature loadContentPage(pageUrl)
* @param {String} pageUrl
* [en]Page URL. Can be either an HTML document or an <code><ons-template></code>.[/en]
* [ja]pageのURLか、ons-templateで宣言したテンプレートのid属性の値を指定します。[/ja]
* @description
* [en]Show the page specified in pageUrl in the ons-splitter-content pane.[/en]
* [ja]ons-splitter-content用紙に表示されるページをpageUrlに指定します。[/ja]
*/
/**
* @ngdoc method
* @signature loadContentPage(pageUrl)
* @param {String} pageUrl
* [en]Page URL. Can be either an HTML document or an <code><ons-template></code>.[/en]
* [ja]pageのURLか、ons-templateで宣言したテンプレートのid属性の値を指定します。[/ja]
* @description
* [en]Show the page specified in pageUrl in the ons-splitter-content pane.[/en]
* [ja]ons-splitter-content用紙に表示されるページをpageUrlに指定します。[/ja]
*/
/**
* @ngdoc method
* @signature leftIsOpened()
* @return {Boolean}
* [en]Whether the left ons-splitter-side on collapse mode is opened.[/en]
* [ja]左のons-splitter-sideが開いているかどうかを返します。[/ja]
* @description
* [en]Determines whether the left ons-splitter-side on collapse mode is opened.[/en]
* [ja]左のons-splitter-side要素が開いているかどうかを返します。[/ja]
*/
/**
* @ngdoc method
* @signature rightIsOpened()
* @return {Boolean}
* [en]Whether the right ons-splitter-side on collapse mode is opened.[/en]
* [ja]右のons-splitter-sideが開いているかどうかを返します。[/ja]
* @description
* [en]Determines whether the right ons-splitter-side on collapse mode is opened.[/en]
* [ja]右のons-splitter-side要素が開いているかどうかを返します。[/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-splitter要素に紐付いているバックボタンハンドラを取得します。[/ja]
*/
/**
* @ngdoc method
* @signature on(eventName, listener)
* @extensionOf angular
* @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)
* @extensionOf angular
* @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])
* @extensionOf angular
* @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';
angular.module('onsen').directive('onsSplitter', ['$compile', 'Splitter', '$onsen', function($compile, Splitter, $onsen) {
return {
restrict: 'E',
scope: true,
compile: function(element, attrs) {
CustomElements.upgrade(element[0]);
return function(scope, element, attrs) {
CustomElements.upgrade(element[0]);
var splitter = new Splitter(scope, element, attrs);
$onsen.declareVarAttribute(attrs, splitter);
$onsen.registerEventHandlers(splitter, 'destroy');
element.data('ons-splitter', splitter);
scope.$on('$destroy', function() {
splitter._events = undefined;
element.data('ons-splitter', undefined);
});
$onsen.fireComponentEvent(element[0], 'init');
};
}
};
}]);
})();
/**
* @ngdoc directive
* @id splitter-content
* @name ons-splitter-content
* @category control
* @description
* [en]The "ons-splitter-content" element is used as a child element of "ons-splitter".[/en]
* [ja]ons-splitter-content要素は、ons-splitter要素の子要素として利用します。[/ja]
* @example
* <ons-splitter>
* <ons-splitter-content>
* ...
* </ons-splitter-content>
*
* <ons-splitter-side side="left" width="80%" collapse>
* ...
* </ons-splitter-side>
* </ons-splitter>
*/
/**
* @ngdoc attribute
* @name ons-destroy
* @extensionOf angular
* @initonly
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en]
* [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name page
* @initonly
* @type {String}
* @description
* [en]The url of the menu page.[/en]
* [ja]ons-splitter-side要素に表示するページのURLを指定します。[/ja]
*/
/**
* @ngdoc method
* @signature load(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]
*/
(function() {
'use strict';
var lastReady = window.OnsSplitterContentElement.rewritables.ready;
window.OnsSplitterContentElement.rewritables.ready = ons._waitDiretiveInit('ons-splitter-content', lastReady);
var lastLink = window.OnsSplitterContentElement.rewritables.link;
window.OnsSplitterContentElement.rewritables.link = function(element, target, callback) {
var view = angular.element(element).data('ons-splitter-content');
lastLink(element, target, function(target) {
view._link(target, callback);
});
};
angular.module('onsen').directive('onsSplitterContent', ['$compile', 'SplitterContent', '$onsen', function($compile, SplitterContent, $onsen) {
return {
restrict: 'E',
compile: function(element, attrs) {
CustomElements.upgrade(element[0]);
return function(scope, element, attrs) {
CustomElements.upgrade(element[0]);
var view = new SplitterContent(scope, element, attrs);
$onsen.declareVarAttribute(attrs, view);
$onsen.registerEventHandlers(view, 'destroy');
element.data('ons-splitter-content', view);
scope.$on('$destroy', function() {
view._events = undefined;
element.data('ons-splitter-content', undefined);
});
$onsen.fireComponentEvent(element[0], 'init');
};
}
};
}]);
})();
/**
* @ngdoc directive
* @id splitter-side
* @name ons-splitter-side
* @category control
* @description
* [en]The "ons-splitter-side" element is used as a child element of "ons-splitter".[/en]
* [ja]ons-splitter-side要素は、ons-splitter要素の子要素として利用します。[/ja]
* @example
* <ons-splitter>
* <ons-splitter-content>
* ...
* </ons-splitter-content>
*
* <ons-splitter-side side="left" width="80%" collapse>
* ...
* </ons-splitter-side>
* </ons-splitter>
*/
/**
* @ngdoc event
* @name modechange
* @description
* [en]Fired just after the component's mode changes.[/en]
* [ja]この要素のモードが変化した際に発火します。[/ja]
* @param {Object} event
* [en]Event object.[/en]
* [ja]イベントオブジェクトです。[/ja]
* @param {Object} event.side
* [en]Component object.[/en]
* [ja]コンポーネントのオブジェクト。[/ja]
* @param {String} event.mode
* [en]Returns the current mode. Can be either "collapse" or "split".[/en]
* [ja]現在のモードを返します。[/ja]
*/
/**
* @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 {Function} event.cancel
* [en]Call to cancel opening sliding menu.[/en]
* [ja]スライディングメニューが開くのをキャンセルします。[/ja]
* @param {Object} event.side
* [en]Component object.[/en]
* [ja]コンポーネントのオブジェクト。[/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.side
* [en]Component object.[/en]
* [ja]コンポーネントのオブジェクト。[/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.side
* [en]Component object.[/en]
* [ja]コンポーネントのオブジェクト。[/ja]
* @param {Function} event.cancel
* [en]Call to cancel opening sliding-menu.[/en]
* [ja]スライディングメニューが閉じるのをキャンセルします。[/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.side
* [en]Component object.[/en]
* [ja]コンポーネントのオブジェクト。[/ja]
*/
/**
* @ngdoc attribute
* @name animation
* @initonly
* @type {String}
* @description
* [en]Specify the animation. Use one of "overlay", and "default".[/en]
* [ja]アニメーションを指定します。"overlay", "default"のいずれかを指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name animation-options
* @type {Expression}
* @description
* [en]Specify the animation's duration, timing and delay with an object literal. E.g. <code>{duration: 0.2, delay: 1, timing: 'ease-in'}</code>[/en]
* [ja]アニメーション時のduration, timing, delayをオブジェクトリテラルで指定します。e.g. <code>{duration: 0.2, delay: 1, timing: 'ease-in'}</code>[/ja]
*/
/**
* @ngdoc attribute
* @name threshold-ratio-should-open
* @type {Number}
* @description
* [en]Specify how much the menu needs to be swiped before opening. A value between 0 and 1. Default is 0.3.[/en]
* [ja]どのくらいスワイプすればスライディングメニューを開くかどうかの割合を指定します。0から1の間の数値を指定します。スワイプの距離がここで指定した数値掛けるこの要素の幅よりも大きければ、スワイプが終わった時にこの要素を開きます。デフォルトは0.3です。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-destroy
* @initonly
* @extensionOf angular
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en]
* [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-preopen
* @initonly
* @extensionOf angular
* @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
* @initonly
* @extensionOf angular
* @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
* @extensionOf angular
* @initonly
* @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
* @extensionOf angular
* @initonly
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when the "postclose" event is fired.[/en]
* [ja]"postclose"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name collapse
* @type {String}
* @description
* [en]
* Specify the collapse behavior. Valid values are "portrait", "landscape" or a media query.
* "portrait" or "landscape" means the view will collapse when device is in landscape or portrait orientation.
* If the value is a media query, the view will collapse when the media query is true.
* If the value is not defined, the view always be in "collapse" mode.
* [/en]
* [ja]
* 左側のページを非表示にする条件を指定します。portrait, landscape、width #pxもしくはメディアクエリの指定が可能です。
* portraitもしくはlandscapeを指定すると、デバイスの画面が縦向きもしくは横向きになった時に適用されます。
* メディアクエリを指定すると、指定したクエリに適合している場合に適用されます。
* 値に何も指定しない場合には、常にcollapseモードになります。
* [/ja]
*/
/**
* @ngdoc attribute
* @name swipe-target-width
* @type {String}
* @description
* [en]The width of swipeable area calculated from the edge (in pixels). Use this to enable swipe only when the finger touch on the screen edge.[/en]
* [ja]スワイプの判定領域をピクセル単位で指定します。画面の端から指定した距離に達するとページが表示されます。[/ja]
*/
/**
* @ngdoc attribute
* @name width
* @type {String}
* @description
* [en]Can be specified in either pixels or as a percentage, e.g. "90%" or "200px".[/en]
* [ja]この要素の横幅を指定します。pxと%での指定が可能です。eg. 90%, 200px[/ja]
*/
/**
* @ngdoc attribute
* @name side
* @type {String}
* @description
* [en]Specify which side of the screen the ons-splitter-side element is located on. Possible values are "left" and "right".[/en]
* [ja]この要素が左か右かを指定します。指定できる値は"left"か"right"のみです。[/ja]
*/
/**
* @ngdoc attribute
* @name mode
* @type {String}
* @description
* [en]Current mode. Possible values are "collapse" or "split". This attribute is read only.[/en]
* [ja]現在のモードが設定されます。"collapse"もしくは"split"が指定されます。この属性は読み込み専用です。[/ja]
*/
/**
* @ngdoc attribute
* @name page
* @initonly
* @type {String}
* @description
* [en]The url of the menu page.[/en]
* [ja]ons-splitter-side要素に表示するページのURLを指定します。[/ja]
*/
/**
* @ngdoc attribute
* @name swipeable
* @type {Boolean}
* @description
* [en]Whether to enable swipe interaction on collapse mode.[/en]
* [ja]collapseモード時にスワイプ操作を有効にする場合に指定します。[/ja]
*/
/**
* @ngdoc method
* @signature load(page)
* @param {String} page
* [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 open([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]Open menu in collapse mode.[/en]
* [ja]collapseモードになっているons-splitterside要素を開きます。[/ja]
*/
/**
* @ngdoc method
* @signature close([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]Close menu in collapse mode.[/en]
* [ja]collapseモードになっているons-splitter-side要素を閉じます。[/ja]
*/
/**
* @ngdoc method
* @signature getCurrentMode()
* @return {String}
* [en]Get current mode. Possible values are "collapse" or "split".[/en]
* [ja]このons-splitter-side要素の現在のモードを返します。"split"かもしくは"collapse"のどちらかです。[/ja]
*/
(function() {
'use strict';
var lastReady = window.OnsSplitterSideElement.rewritables.ready;
window.OnsSplitterSideElement.rewritables.ready = ons._waitDiretiveInit('ons-splitter-side', lastReady);
var lastLink = window.OnsSplitterSideElement.rewritables.link;
window.OnsSplitterSideElement.rewritables.link = function(element, target, callback) {
var view = angular.element(element).data('ons-splitter-side');
lastLink(element, target, function(target) {
view._link(target, callback);
});
};
angular.module('onsen').directive('onsSplitterSide', ['$compile', 'SplitterSide', '$onsen', function($compile, SplitterSide, $onsen) {
return {
restrict: 'E',
compile: function(element, attrs) {
CustomElements.upgrade(element[0]);
return function(scope, element, attrs) {
CustomElements.upgrade(element[0]);
var view = new SplitterSide(scope, element, attrs);
$onsen.declareVarAttribute(attrs, view);
$onsen.registerEventHandlers(view, 'destroy');
element.data('ons-splitter-side', view);
scope.$on('$destroy', function() {
view._events = undefined;
element.data('ons-splitter-side', 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
* @initonly
* @extensionOf angular
* @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)
* @extensionOf angular
* @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)
* @extensionOf angular
* @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])
* @extensionOf angular
* @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';
angular.module('onsen').directive('onsSwitch', ['$onsen', 'SwitchView', function($onsen, SwitchView) {
return {
restrict: 'E',
replace: false,
scope: true,
link: function(scope, element, attrs) {
CustomElements.upgrade(element[0]);
if (attrs.ngController) {
throw new Error('This element can\'t accept ng-controller directive.');
}
var switchView = new SwitchView(element, scope, attrs);
$onsen.addModifierMethodsForCustomElements(switchView, element);
$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
});
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
* @initonly
* @type {String}
* @description
* [en]The page that this <code><ons-tab></code> points to.[/en]
* [ja]<code><ons-tab></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><ons-icon></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><ons-icon></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';
angular.module('onsen')
.directive('onsTab', tab)
.directive('onsTabbarItem', tab); // for BC
function tab($onsen) {
return {
restrict: 'E',
link: function(scope, element, attrs) {
CustomElements.upgrade(element[0]);
$onsen.fireComponentEvent(element[0], 'init');
}
};
}
tab.$inject = ['$onsen'];
})();
/**
* @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
* @initonly
* @extensionOf angular
* @type {String}
* @description
* [en]Variable name to refer this tab bar.[/en]
* [ja]このタブバーを参照するための名前を指定します。[/ja]
*/
/**
* @ngdoc attribute
* @name hide-tabs
* @initonly
* @extensionOf angular
* @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", "slide" and "fade". Default is "none".[/en]
* [ja]ページ読み込み時のアニメーションを指定します。"none"、"fade"、"slide"のいずれかを選択できます。デフォルトは"none"です。[/ja]
*/
/**
* @ngdoc attribute
* @name animation-options
* @type {Expression}
* @description
* [en]Specify the animation's duration, timing and delay with an object literal. E.g. <code>{duration: 0.2, delay: 1, timing: 'ease-in'}</code>[/en]
* [ja]アニメーション時のduration, timing, delayをオブジェクトリテラルで指定します。e.g. <code>{duration: 0.2, delay: 1, timing: 'ease-in'}</code>[/ja]
*/
/**
* @ngdoc attribute
* @name position
* @initonly
* @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
* @initonly
* @extensionOf angular
* @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
* @initonly
* @extensionOf angular
* @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
* @initonly
* @extensionOf angular
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when the "postchange" event is fired.[/en]
* [ja]"postchange"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-init
* @initonly
* @extensionOf angular
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when a page's "init" event is fired.[/en]
* [ja]ページの"init"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-show
* @initonly
* @extensionOf angular
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when a page's "show" event is fired.[/en]
* [ja]ページの"show"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-hide
* @initonly
* @extensionOf angular
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when a page's "hide" event is fired.[/en]
* [ja]ページの"hide"イベントが発火された時の挙動を独自に指定できます。[/ja]
*/
/**
* @ngdoc attribute
* @name ons-destroy
* @initonly
* @extensionOf angular
* @type {Expression}
* @description
* [en]Allows you to specify custom behavior when a page's "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", "slide" and "none".[/en]
* [ja]アニメーション名を指定します。"fade"、"slide"、"none"のいずれかを指定できます。[/ja]
* @param {String} [options.animationOptions]
* [en]Specify the animation's duration, delay and timing. E.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code>[/en]
* [ja]アニメーション時のduration, delay, timingを指定します。e.g. <code>{duration: 0.2, delay: 0.4, timing: 'ease-in'}</code> [/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><ons-template></code>.[/en]
* [ja]pageのURLか、もしくは<code><ons-template></code>で宣言したid属性の値を利用できます。[/ja]
* @description
* [en]Displays a new page without changing the active index.[/en]
* [ja]現在のアクティブなインデックスを変更せずに、新しいページを表示します。[/ja]
*/
/**
* @ngdoc method
* @signature on(eventName, listener)
* @extensionOf angular
* @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)
* @extensionOf angular
* @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])
* @extensionOf angular
* @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 lastReady = window.OnsTabbarElement.rewritables.ready;
window.OnsTabbarElement.rewritables.ready = ons._waitDiretiveInit('ons-tabbar', lastReady);
var lastLink = window.OnsTabbarElement.rewritables.link;
window.OnsTabbarElement.rewritables.link = function(tabbarElement, target, callback) {
var view = angular.element(tabbarElement).data('ons-tabbar');
view._compileAndLink(target, function(target) {
lastLink(tabbarElement, target, callback);
});
};
var lastUnlink = window.OnsTabbarElement.rewritables.unlink;
window.OnsTabbarElement.rewritables.unlink = function(tabbarElement, target, callback) {
angular.element(target).data('_scope').$destroy();
lastUnlink(tabbarElement, target, callback);
};
angular.module('onsen').directive('onsTabbar', ['$onsen', '$compile', '$parse', 'TabbarView', function($onsen, $compile, $parse, TabbarView) {
return {
restrict: 'E',
replace: false,
scope: true,
link: function(scope, element, attrs, controller) {
CustomElements.upgrade(element[0]);
scope.$watch(attrs.hideTabs, function(hide) {
if (typeof hide === 'string') {
hide = hide === 'true';
}
element[0].setTabbarVisibility(!hide);
});
var tabbarView = new TabbarView(scope, element, attrs);
$onsen.addModifierMethodsForCustomElements(tabbarView, element);
$onsen.registerEventHandlers(tabbarView, 'reactive prechange postchange init show hide destroy');
element.data('ons-tabbar', tabbarView);
$onsen.declareVarAttribute(attrs, tabbarView);
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';
angular.module('onsen').directive('onsTemplate', ['$templateCache', function($templateCache) {
return {
restrict: 'E',
terminal: true,
compile: function(element) {
CustomElements.upgrade(element[0]);
var content = element[0].template || element.html();
$templateCache.put(element.attr('id'), content);
}
};
}]);
})();
/**
* @ngdoc directive
* @id toolbar
* @name ons-toolbar
* @category page
* @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
* @initonly
* @extensionOf angular
* @type {String}
* @description
* [en]Variable name to refer this toolbar.[/en]
* [ja]このツールバーを参照するための名前を指定します。[/ja]
*/
/**
* @ngdoc attribute
* @name inline
* @initonly
* @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
* @initonly
* @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';
angular.module('onsen').directive('onsToolbar', ['$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.
scope: false,
transclude: false,
compile: function(element) {
CustomElements.upgrade(element[0]);
return {
pre: function(scope, element, attrs) {
// TODO: Remove this dirty fix!
if (element[0].nodeName === 'ons-toolbar') {
CustomElements.upgrade(element[0]);
GenericView.register(scope, element, attrs, {viewKey: 'ons-toolbar'});
element[0]._ensureNodePosition();
}
},
post: function(scope, element, attrs) {
$onsen.fireComponentEvent(element[0], 'init');
}
};
}
};
}]);
})();
/**
* @ngdoc directive
* @id toolbar_button
* @name ons-toolbar-button
* @category page
* @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-navicon" size="28px"></ons-icon></ons-toolbar-button></div>
* </ons-toolbar>
*/
/**
* @ngdoc attribute
* @name var
* @initonly
* @extensionOf angular
* @type {String}
* @description
* [en]Variable name to refer this button.[/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',
scope: false,
link: {
pre: function(scope, element, attrs) {
CustomElements.upgrade(element[0]);
var toolbarButton = new GenericView(scope, element, attrs);
element.data('ons-toolbar-button', toolbarButton);
$onsen.declareVarAttribute(attrs, toolbarButton);
$onsen.addModifierMethodsForCustomElements(toolbarButton, element);
$onsen.cleaner.onDestroy(scope, function() {
toolbarButton._events = undefined;
$onsen.removeModifierMethods(toolbarButton);
element.data('ons-toolbar-button', undefined);
element = null;
$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 module = angular.module('onsen');
/**
* Internal service class for framework implementation.
*/
module.factory('$onsen', ['$rootScope', '$window', '$cacheFactory', '$document', '$templateCache', '$http', '$q', '$onsGlobal', 'ComponentCleaner', function($rootScope, $window, $cacheFactory, $document, $templateCache, $http, $q, $onsGlobal, ComponentCleaner) {
var $onsen = createOnsenService();
var ModifierUtil = $onsGlobal._internal.ModifierUtil;
return $onsen;
function createOnsenService() {
return {
DIRECTIVE_TEMPLATE_URL: 'templates',
cleaner: ComponentCleaner,
DeviceBackButtonHandler: $onsGlobal._deviceBackButtonDispatcher,
_defaultDeviceBackButtonHandler: $onsGlobal._defaultDeviceBackButtonHandler,
/**
* @return {Object}
*/
getDefaultDeviceBackButtonHandler: function() {
return this._defaultDeviceBackButtonHandler;
},
/**
* @param {Object} view
* @param {Element} element
* @param {Array} methodNames
* @return {Function} A function that dispose all driving methods.
*/
deriveMethods: function(view, element, methodNames) {
methodNames.forEach(function(methodName) {
view[methodName] = function() {
return element[methodName].apply(element, arguments);
};
});
return function() {
methodNames.forEach(function(methodName) {
view[methodName] = null;
});
view = element = null;
};
},
/**
* @param {Object} view
* @param {Element} element
* @param {Array} eventNames
* @param {Function} [map]
* @return {Function} A function that clear all event listeners
*/
deriveEvents: function(view, element, eventNames, map) {
map = map || function(detail) { return detail; };
eventNames = [].concat(eventNames);
var listeners = [];
eventNames.forEach(function(eventName) {
var listener = function(event) {
view.emit(eventName, map(Object.create(event.detail)));
};
listeners.push(listener);
element.addEventListener(eventName, listener, false);
});
return function() {
eventNames.forEach(function(eventName, index) {
element.removeEventListener(eventName, listeners[index], false);
});
view = element = listeners = map = null;
};
},
/**
* @return {Boolean}
*/
isEnabledAutoStatusBarFill: function() {
return !!$onsGlobal._config.autoStatusBarFill;
},
/**
* @param {HTMLElement} element
* @return {Boolean}
*/
shouldFillStatusBar: function(element) {
return $onsGlobal.shouldFillStatusBar(element);
},
/**
* @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);
});
}
},
/**
* @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/)) {
html = '<ons-page _muted>' + html + '</ons-page>';
}
return html;
},
/**
* Create modifier templater function. The modifier templater generate css classes bound 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 for custom elements.
*
* @param {Object} view object
* @param {jqLite} element
*/
addModifierMethodsForCustomElements: function(view, element) {
var methods = {
hasModifier: function(needle) {
var tokens = ModifierUtil.split(element.attr('modifier'));
needle = typeof needle === 'string' ? needle.trim() : '';
return ModifierUtil.split(needle).some(function(needle) {
return tokens.indexOf(needle) != -1;
});
},
removeModifier: function(needle) {
needle = typeof needle === 'string' ? needle.trim() : '';
var modifier = ModifierUtil.split(element.attr('modifier')).filter(function(token) {
return token !== needle;
}).join(' ');
element.attr('modifier', modifier);
},
addModifier: function(modifier) {
element.attr('modifier', element.attr('modifier') + ' ' + modifier);
},
setModifier: function(modifier) {
element.attr('modifier', modifier);
},
toggleModifier: function(modifier) {
if (this.hasModifier(modifier)) {
this.removeModifier(modifier);
} else {
this.addModifier(modifier);
}
}
};
for (var method in methods) {
if (methods.hasOwnProperty(method)) {
view[method] = methods[method];
}
}
},
/**
* 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);
}
},
_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 (container[names[names.length -1]] !== object) {
throw new Error('Cannot set var="' + object._attrs.var + '" because it will overwrite a read-only variable.');
}
}
if (ons.componentBase) {
set(ons.componentBase, names, object);
}
// Attach to ancestor with ons-scope attribute.
var element = object._element[0];
while (element.parentNode) {
if (element.hasAttribute('ons-scope')) {
set(angular.element(element).data('_scope'), names, object);
element = null;
return;
}
element = element.parentNode;
}
element = null;
// If no ons-scope element was found, attach to $rootScope.
set($rootScope, names, object);
}
};
}
}]);
})();
// confirm to use jqLite
'use strict';
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.
*/
/**
* @ngdoc object
* @name ons.GestureDetector
* @category util
* @description
* [en]Utility class for gesture detection.[/en]
* [ja]ジェスチャを検知するためのユーティリティクラスです。[/ja]
*/
/**
* @ngdoc method
* @signature constructor(element[, options])
* @description
* [en]Create a new GestureDetector instance.[/en]
* [ja]GestureDetectorのインスタンスを生成します。[/ja]
* @param {Element} element
* [en]Name of the event.[/en]
* [ja]ジェスチャを検知するDOM要素を指定します。[/ja]
* @param {Object} [options]
* [en]Options object.[/en]
* [ja]オプションを指定します。[/ja]
*/
/**
* @ngdoc method
* @signature on(gestures, handler)
* @description
* [en]Adds an event handler for a gesture. Available gestures are: drag, dragleft, dragright, dragup, dragdown, hold, release, swipe, swipeleft, swiperight, swipeup, swipedown, tap, doubletap, touch, transform, pinch, pinchin, pinchout and rotate. [/en]
* [ja]ジェスチャに対するイベントハンドラを追加します。指定できるジェスチャ名は、drag dragleft dragright dragup dragdown hold release swipe swipeleft swiperight swipeup swipedown tap doubletap touch transform pinch pinchin pinchout rotate です。[/ja]
* @param {String} gestures
* [en]A space separated list of gestures.[/en]
* [ja]検知するジェスチャ名を指定します。スペースで複数指定することができます。[/ja]
* @param {Function} handler
* [en]An event handling function.[/en]
* [ja]イベントハンドラとなる関数オブジェクトを指定します。[/ja]
*/
/**
* @ngdoc method
* @signature off(gestures, handler)
* @description
* [en]Remove an event listener.[/en]
* [ja]イベントリスナーを削除します。[/ja]
* @param {String} gestures
* [en]A space separated list of gestures.[/en]
* [ja]ジェスチャ名を指定します。スペースで複数指定することができます。[/ja]
* @param {Function} handler
* [en]An event handling function.[/en]
* [ja]イベントハンドラとなる関数オブジェクトを指定します。[/ja]
*/
/**
* @ngdoc method
* @signature enable(state)
* @description
* [en]Enable or disable gesture detection.[/en]
* [ja]ジェスチャ検知を有効化/無効化します。[/ja]
* @param {Boolean} state
* [en]Specify if it should be enabled or not.[/en]
* [ja]有効にするかどうかを指定します。[/ja]
*/
/**
* @ngdoc method
* @signature dispose()
* @description
* [en]Remove and destroy all event handlers for this instance.[/en]
* [ja]このインスタンスでのジェスチャの検知や、イベントハンドラを全て解除して廃棄します。[/ja]
*/
/*
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.placeholder]
* [en]Placeholder for the text input.[/en]
* [ja]テキスト欄のプレースホルダに表示するテキストを指定します。[/ja]
* @param {String} [options.defaultValue]
* [en]Default value for the text input.[/en]
* [ja]テキスト欄のデフォルトの値を指定します。[/ja]
* @param {Boolean} [options.autofocus]
* [en]Autofocus the input element. Default is true.[/en]
* [ja]input要素に自動的にフォーカスするかどうかを指定します。デフォルトはtrueです。[/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]
* @param {Boolean} [options.submitOnEnter]
* [en]Submit automatically when enter is pressed. Default is "true".[/en]
* [ja]Enterが押された際にそのformをsubmitするかどうかを指定します。デフォルトはtrueです。[/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]
*/
ons.notification.alert = function(options) {
var originalCompile = options.compile || function(element) {
return element;
};
options.compile = function(element) {
ons.compile(originalCompile(element));
};
return ons.notification._alertOriginal(options);
};
ons.notification.confirm = function(options) {
var originalCompile = options.compile || function(element) {
return element;
};
options.compile = function(element) {
ons.compile(originalCompile(element));
};
return ons.notification._confirmOriginal(options);
};
ons.notification.prompt = function(options) {
var originalCompile = options.compile || function(element) {
return element;
};
options.compile = function(element) {
ons.compile(originalCompile(element));
};
return ons.notification._promptOriginal(options);
};
/*
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]
*/
/*
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 select(platform)
* @param {string} platform Name of the platform.
* [en]Possible values are: "opera", "firefox", "safari", "chrome", "ie", "android", "blackberry", "ios" or "wp".[/en]
* [ja]"opera", "firefox", "safari", "chrome", "ie", "android", "blackberry", "ios", "wp"のいずれかを指定します。[/ja]
* @description
* [en]Sets the platform used to render the elements. Useful for testing.[/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 isAndroidPhone()
* @description
* [en]Returns whether the device is Android phone.[/en]
* [ja]Android携帯上で実行されているかどうかを返します。[/ja]
* @return {Boolean}
*/
/**
* @ngdoc method
* @signature isAndroidTablet()
* @description
* [en]Returns whether the device is Android tablet.[/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 isEdge()
* @description
* [en]Returns whether the browser is Edge.[/en]
* [ja]Edge上で実行されているかどうかを返します。[/ja]
* @return {Boolean}
*/
/**
* @ngdoc method
* @signature isIOS7above()
* @description
* [en]Returns whether the iOS version is 7 or above.[/en]
* [ja]iOS7以上で実行されているかどうかを返します。[/ja]
* @return {Boolean}
*/
/*
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());
}
}
}]);
})();
|
docs/app/Examples/collections/Grid/Types/GridExampleDividedVertically.js
|
koenvg/Semantic-UI-React
|
import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExampleVerticallyDivided = () => (
<Grid divided='vertically'>
<Grid.Row columns={2}>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wireframe/paragraph.png' />
</Grid.Column>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wireframe/paragraph.png' />
</Grid.Column>
</Grid.Row>
<Grid.Row columns={3}>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wireframe/paragraph.png' />
</Grid.Column>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wireframe/paragraph.png' />
</Grid.Column>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wireframe/paragraph.png' />
</Grid.Column>
</Grid.Row>
</Grid>
)
export default GridExampleVerticallyDivided
|
examples/huge-apps/components/GlobalNav.js
|
pheadra/react-router
|
import React from 'react'
import { Link } from 'react-router'
const dark = 'hsl(200, 20%, 20%)'
const light = '#fff'
const styles = {}
styles.wrapper = {
padding: '10px 20px',
overflow: 'hidden',
background: dark,
color: light
}
styles.link = {
padding: 11,
color: light,
fontWeight: 200
}
styles.activeLink = {
...styles.link,
background: light,
color: dark
}
class GlobalNav extends React.Component {
static defaultProps = {
user: {
id: 1,
name: 'Ryan Florence'
}
}
constructor(props, context) {
super(props, context)
this.logOut = this.logOut.bind(this)
}
logOut() {
alert('log out')
}
render() {
var { user } = this.props
return (
<div style={styles.wrapper}>
<div style={{ float: 'left' }}>
<Link to="/" style={styles.link}>Home</Link>{' '}
<Link to="/calendar" style={styles.link} activeStyle={styles.activeLink}>Calendar</Link>{' '}
<Link to="/grades" style={styles.link} activeStyle={styles.activeLink}>Grades</Link>{' '}
<Link to="/messages" style={styles.link} activeStyle={styles.activeLink}>Messages</Link>{' '}
</div>
<div style={{ float: 'right' }}>
<Link style={styles.link} to="/profile">{user.name}</Link> <button onClick={this.logOut}>log out</button>
</div>
</div>
)
}
}
export default GlobalNav
|
Realization/frontend/czechidm-acc/src/content/system/SystemProvisioningBreakConfigDetail.js
|
bcvsolutions/CzechIdMng
|
import PropTypes from 'prop-types';
import React from 'react';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
//
import { Basic, Managers, Utils, Advanced } from 'czechidm-core';
import { ProvisioningBreakConfigManager, ProvisioningBreakRecipientManager } from '../../redux';
import ProvisioningOperationTypeEnum from '../../domain/ProvisioningOperationTypeEnum';
import SystemProvisioningBreakConfigRecipientTable from './SystemProvisioningBreakConfigRecipientTable';
const uiKey = 'provisioning-break-config-detail';
const manager = new ProvisioningBreakConfigManager();
const DEFAULT_PERIOD = 20;
/**
* TODO: problem with attribute period validation trought joi and required not working
*
* @author Ondřej Kopr
*/
class SystemProvisioningBreakConfigDetail extends Advanced.AbstractTableContent {
constructor(props, context) {
super(props, context);
this.provisioningBreakRecipientManager = new ProvisioningBreakRecipientManager();
this.identityManager = new Managers.IdentityManager();
this.notificationTemplatemanager = new Managers.NotificationTemplateManager();
}
getUiKey() {
return uiKey;
}
getNavigationKey() {
return 'system-provisioning-break-config';
}
getManager() {
return manager;
}
getContentKey() {
return 'acc:content.provisioningBreakConfig';
}
// @Deprecated - since V10 ... replaced by dynamic key in Route
// UNSAFE_componentWillReceiveProps(nextProps) {
// const { mappingId } = nextProps.match.params;
// if (mappingId && mappingId !== this.props.match.params.mappingId) {
// this._initComponent(nextProps);
// }
// }
// Did mount only call initComponent method
componentDidMount() {
super.componentDidMount();
//
this._initComponent(this.props);
}
/**
* Method for init component from didMount method and from willReceiveProps method
* @param {properties of component} props For didmount call is this.props for call from willReceiveProps is nextProps.
*/
_initComponent(props) {
const { configId } = props.match.params;
// fetch break config
if (!this._getIsNew(props)) {
this.context.store.dispatch(manager.fetchEntity(configId));
}
}
/**
* Save entity
*/
save(event) {
const { entityId } = this.props.match.params;
if (event) {
event.preventDefault();
}
if (!this.refs.form.isFormValid()) {
return;
}
const formEntity = this.refs.form.getData();
const savedEntity = {
...formEntity,
system: entityId
};
if (formEntity.id === undefined) {
this.context.store.dispatch(manager.createEntity(savedEntity, `${uiKey}-detail`, (createdEntity, error) => {
this.afterSave(createdEntity, error);
}));
} else {
this.context.store.dispatch(manager.updateEntity(savedEntity, `${uiKey}-detail`, this.afterSave.bind(this)));
}
}
afterSave(entity, error) {
if (!error) {
if (this._getIsNew()) {
this.addMessage({ message: this.i18n('create.success', { entityType: entity.entityType, operationType: entity.operationType}) });
} else {
this.addMessage({ message: this.i18n('save.success', {entityType: entity.entityType, operationType: entity.operationType}) });
}
const { entityId } = this.props.match.params;
this.context.history.replace(`/system/${entityId}/break-configs/${entity.id}/detail`, { configId: entity.id });
} else {
this.addError(error);
}
super.afterSave();
}
_getIsNew(nextProps) {
const { query } = nextProps ? nextProps.location : this.props.location;
if (query && query !== null && query.new !== undefined) {
return query.new;
}
return false;
}
_getBoolColumn(value) {
return (<Basic.BooleanCell propertyValue={ value !== null } className="column-face-bool"/>);
}
_onChangeEntityType(entity) {
this.setState({_entityType: entity.value});
}
render() {
const { _showLoading, entity } = this.props;
const { configId } = this.props.match.params;
const isNew = this._getIsNew();
return (
<div>
<Helmet title={this.i18n('title')} />
<Basic.Confirm ref="confirm-delete" level="danger"/>
<Basic.ContentHeader>
<span dangerouslySetInnerHTML={{ __html: this.i18n('header') }}/>
</Basic.ContentHeader>
<form onSubmit={this.save.bind(this)}>
<Basic.Panel className="no-border">
<Basic.AbstractForm
ref="form"
data={ entity }
showLoading={ _showLoading }
readOnly={ !Managers.SecurityManager.hasAnyAuthority(['SYSTEM_UPDATE']) }>
<Basic.EnumSelectBox
ref="operationType"
useSymbol={false}
enum={ProvisioningOperationTypeEnum}
helpBlock={this.i18n('acc:entity.ProvisioningBreakConfig.operationType.help')}
label={this.i18n('acc:entity.ProvisioningBreakConfig.operationType.label')}
required
useFirst
clearable={ false }/>
<Basic.TextField
ref="period"
type="number"
value={DEFAULT_PERIOD}
required
validation={ Utils.Ui.getIntegerValidation() }
helpBlock={this.i18n('acc:entity.ProvisioningBreakConfig.period.help')}
label={this.i18n('acc:entity.ProvisioningBreakConfig.period.label')}/>
<Basic.Row>
<Basic.Col lg={ 6 }>
<Basic.TextField
ref="warningLimit"
validation={ Utils.Ui.getIntegerValidation() }
helpBlock={this.i18n('acc:entity.ProvisioningBreakConfig.warningLimit.help')}
label={this.i18n('acc:entity.ProvisioningBreakConfig.warningLimit.label')}/>
</Basic.Col>
<Basic.Col lg={ 6 }>
<Basic.SelectBox
ref="warningTemplate"
manager={ this.notificationTemplatemanager }
placeholder={ this.i18n('acc:entity.ProvisioningBreakConfig.warningTemplate.placeholder') }
helpBlock={ this.i18n('acc:entity.ProvisioningBreakConfig.warningTemplate.help') }
label={ this.i18n('acc:entity.ProvisioningBreakConfig.warningTemplate.label') }/>
</Basic.Col>
</Basic.Row>
<Basic.Row>
<Basic.Col lg={ 6 }>
<Basic.TextField
ref="disableLimit"
validation={ Utils.Ui.getIntegerValidation() }
helpBlock={this.i18n('acc:entity.ProvisioningBreakConfig.disableLimit.help')}
label={this.i18n('acc:entity.ProvisioningBreakConfig.disableLimit.label')}/>
</Basic.Col>
<Basic.Col lg={ 6 }>
<Basic.SelectBox
ref="disableTemplate"
manager={this.notificationTemplatemanager}
placeholder={ this.i18n('acc:entity.ProvisioningBreakConfig.disableTemplate.placeholder') }
helpBlock={this.i18n('acc:entity.ProvisioningBreakConfig.disableTemplate.help')}
label={this.i18n('acc:entity.ProvisioningBreakConfig.disableTemplate.label')}/>
</Basic.Col>
</Basic.Row>
<Basic.TextField
ref="actualOperationCount"
readOnly
helpBlock={this.i18n('acc:entity.ProvisioningBreakConfig.actualOperationCount.help')}
label={this.i18n('acc:entity.ProvisioningBreakConfig.actualOperationCount.label')}
rendered={ !Utils.Entity.isNew(entity) }/>
<Basic.Checkbox
ref="disabled"
label={this.i18n('acc:entity.ProvisioningBreakConfig.disabled')}/>
</Basic.AbstractForm>
<Basic.PanelFooter>
<Basic.Button
type="button"
level="link"
onClick={this.context.history.goBack}
showLoading={_showLoading}>
{ this.i18n('button.back') }
</Basic.Button>
<Basic.Button
onClick={this.save.bind(this)}
level="success"
type="submit"
showLoading={_showLoading}
rendered={ Managers.SecurityManager.hasAnyAuthority(['SYSTEM_UPDATE']) }>
{this.i18n('button.saveAndContinue')}
</Basic.Button>
</Basic.PanelFooter>
</Basic.Panel>
</form>
<Basic.Panel className="no-border" showLoading={_showLoading}>
<Basic.PanelHeader text={this.i18n('acc:content.provisioningBreakConfigRecipient.title')}/>
<Basic.Alert level="info" text={this.i18n('recipientInfo')} rendered={isNew}/>
<SystemProvisioningBreakConfigRecipientTable
uiKey={ `provisioning-break-config-recipient-${configId}` }
manager={ this.provisioningBreakRecipientManager }
forceSearchParameters={ this.provisioningBreakRecipientManager.getSearchParameters().setFilter('breakConfigId', configId) }
provisioningBreakConfigId={ configId }
rendered={ !isNew }
className="no-margin"/>
</Basic.Panel>
</div>
);
}
}
SystemProvisioningBreakConfigDetail.propTypes = {
_showLoading: PropTypes.bool,
};
SystemProvisioningBreakConfigDetail.defaultProps = {
_showLoading: false,
};
function select(state, component) {
const { configId } = component.match.params;
return {
entity: manager.getEntity(state, configId),
_showLoading: Utils.Ui.isShowLoading(state, `${uiKey}-detail`),
};
}
export default connect(select)(SystemProvisioningBreakConfigDetail);
|
src/containers/FeatureAnalysisPage/FeatureAnalysisPage.js
|
armaniExchange/work-genius
|
import React, { Component } from 'react';
class FeatureAnalysisPage extends Component {
render() {
return (
<div className="feature-analysis-page">
{ this.props.children }
</div>
);
}
}
export default FeatureAnalysisPage;
|
views/main.js
|
cyrixhero/black-screen
|
import React from 'react';
import _ from 'lodash';
import Rx from 'rx';
import {TerminalLayout} from './compiled/src/views/TerminalLayout.js';
var keys = {
goUp: event => (event.ctrlKey && event.keyCode === 80) || event.keyCode === 38,
goDown: event => (event.ctrlKey && event.keyCode === 78) || event.keyCode === 40,
enter: event => event.keyCode === 13,
tab: event => event.keyCode === 9,
deleteWord: event => event.ctrlKey && event.keyCode == 87
};
function scrollToBottom() {
$('html body').animate({ scrollTop: $(document).height() }, 0);
}
function focusLastInput(event) {
if (_.contains(event.target.classList, 'prompt') || event.metaKey) {
return;
}
var originalEvent = event.originalEvent;
if (isMetaKey(originalEvent)) {
return;
}
var newEvent = new KeyboardEvent("keydown", _.pick(originalEvent, [
'altkey', 'bubbles', 'cancelBubble', 'cancelable', 'charCode',
'ctrlKey', 'keyIdentifier', 'metaKey', 'shiftKey'
]));
var target = _.last(document.getElementsByClassName('prompt'));
target.focus();
withCaret(target, () => target.innerText.length);
target.dispatchEvent(newEvent)
}
function setCaretPosition(node, position) {
var selection = window.getSelection();
var range = document.createRange();
if (node.childNodes.length) {
range.setStart(node.childNodes[0], position);
} else {
range.setStart(node, 0);
}
range.collapse(true);
selection.removeAllRanges();
selection.addRange(range);
}
function withCaret(target, callback) {
var selection = window.getSelection();
var range = document.createRange();
var offset = callback(selection.baseOffset);
if (target.childNodes.length) {
range.setStart(target.childNodes[0], offset);
} else {
range.setStart(target, 0);
}
range.collapse(true);
selection.removeAllRanges();
selection.addRange(range);
}
function isCommandKey(event) {
return _.contains([16, 17, 18], event.keyCode) || event.ctrlKey || event.altKey || event.metaKey;
}
function isMetaKey(event) {
return event.metaKey || _.some([event.key, event.keyIdentifier],
key => _.includes(['Shift', 'Alt', 'Ctrl'], key));
}
const isDefinedKey = _.memoize(event => _.some(_.values(keys), matcher => matcher(event)),
event => [event.ctrlKey, event.keyCode]);
function stopBubblingUp(event) {
event.stopPropagation();
event.preventDefault();
return event;
}
// TODO: Figure out how it works.
function createEventHandler() {
var subject = function() {
subject.onNext.apply(subject, arguments);
};
getEnumerablePropertyNames(Rx.Subject.prototype)
.forEach(function (property) {
subject[property] = Rx.Subject.prototype[property];
});
Rx.Subject.call(subject);
return subject;
}
function getEnumerablePropertyNames(target) {
var result = [];
for (var key in target) {
result.push(key);
}
return result;
}
$(document).ready(() => {
React.render(<TerminalLayout/>, document.getElementById('black-board'));
// TODO: focus the last input of the active terminal.
$(document).keydown(event => focusLastInput(event));
});
|
packages/ringcentral-widgets/components/ContactSourceFilter/index.js
|
ringcentral/ringcentral-js-widget
|
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import i18n from './i18n';
import styles from './styles.scss';
import ContactFilterIcon from '../../assets/images/ContactFilter.svg';
import ContactFilterSolidIcon from '../../assets/images/ContactFilterSolid.svg';
export function ContactSourceItem({
sourceName,
sourceLabel,
isSelected,
onSelect,
}) {
return (
<div
onClick={() => onSelect(sourceName)}
className={classnames(
styles.contactSourceItem,
isSelected ? styles.selected : '',
)}
>
{sourceLabel}
</div>
);
}
ContactSourceItem.propTypes = {
sourceName: PropTypes.string.isRequired,
sourceLabel: PropTypes.string.isRequired,
isSelected: PropTypes.bool.isRequired,
onSelect: PropTypes.func.isRequired,
};
export default class ContactSourceFilter extends Component {
constructor(props) {
super(props);
const unfold = props.unfold !== undefined ? props.unfold : false;
this.state = {
unfold,
};
}
componentDidMount() {
this._mounted = true;
}
componentWillUnmount() {
this._mounted = false;
if (!this.state.unfold) {
window.removeEventListener('click', this.hideList);
}
}
getString(key, locale) {
return i18n.getString(key, locale);
}
hideList = () => {
if (this._mounted) {
this.setState({
unfold: false,
});
if (typeof this.props.onUnfoldChange === 'function') {
this.props.onUnfoldChange(false);
}
}
window.removeEventListener('click', this.hideList);
};
showList = () => {
this.setState({
unfold: true,
});
window.addEventListener('click', this.hideList);
if (typeof this.props.onUnfoldChange === 'function') {
this.props.onUnfoldChange(true);
}
};
togglePanel = (evt) => {
evt.stopPropagation();
if (!this.state.unfold) {
this.showList();
return;
}
this.hideList();
};
emitSelect = (sourceName) => {
const { onSourceSelect } = this.props;
if (onSourceSelect) {
onSourceSelect(sourceName);
}
this.hideList();
};
render() {
const {
className,
currentLocale,
contactSourceNames,
selectedSourceName,
} = this.props;
const isAllSource = selectedSourceName === contactSourceNames[0];
return (
<div
className={classnames(styles.contactSourceFilter, className)}
data-sign="contactSourceFilterButton"
onClick={this.togglePanel}
>
<div
data-sign="filterIconContainer"
className={styles.filterIconContainer}
title={this.getString(selectedSourceName, currentLocale)}
>
{isAllSource ? (
<ContactFilterIcon
className={classnames(styles.filterIconNode, styles.iconNoneFill)}
/>
) : (
<ContactFilterSolidIcon className={styles.filterIconNode} />
)}
</div>
{!this.state.unfold ? null : (
<div
className={styles.contactSourceList}
onClick={(e) => e.stopPropagation()}
data-sign="contactSourceList"
>
{contactSourceNames.map((sourceName) => (
<ContactSourceItem
key={sourceName}
sourceName={sourceName}
sourceLabel={this.getString(sourceName, currentLocale)}
isSelected={sourceName === selectedSourceName}
onSelect={this.emitSelect}
/>
))}
</div>
)}
</div>
);
}
}
ContactSourceFilter.propTypes = {
className: PropTypes.string,
currentLocale: PropTypes.string.isRequired,
onSourceSelect: PropTypes.func,
selectedSourceName: PropTypes.string,
contactSourceNames: PropTypes.arrayOf(PropTypes.string).isRequired,
unfold: PropTypes.bool,
onUnfoldChange: PropTypes.func,
};
ContactSourceFilter.defaultProps = {
className: undefined,
selectedSourceName: undefined,
onSourceSelect: undefined,
unfold: undefined,
onUnfoldChange: undefined,
};
|
ajax/libs/react-intl/1.2.0/react-intl-with-locales.min.js
|
zhangbg/cdnjs
|
(function(){"use strict";function a(a){var b,c,d,e,f=Array.prototype.slice.call(arguments,1);for(b=0,c=f.length;c>b;b+=1)if(d=f[b])for(e in d)o.call(d,e)&&(a[e]=d[e]);return a}function b(a,b,c){this.locales=a,this.formats=b,this.pluralFn=c}function c(a){this.id=a}function d(a,b,c,d,e){this.id=a,this.useOrdinal=b,this.offset=c,this.options=d,this.pluralFn=e}function e(a,b,c,d){this.id=a,this.offset=b,this.numberFormat=c,this.string=d}function f(a,b){this.id=a,this.options=b}function g(a,b,c){var d="string"==typeof a?g.__parse(a):a;if(!d||"messageFormatPattern"!==d.type)throw new TypeError("A message must be provided as a String or AST.");c=this._mergeFormats(g.formats,c),q(this,"_locale",{value:this._resolveLocale(b)});var e=this._findPluralRuleFunction(this._locale),f=this._compilePattern(d,b,c,e),h=this;this.format=function(a){return h._format(f,a)}}function h(a){return 400*a/146097}function i(a,b){b=b||{},F(a)&&(a=a.concat()),C(this,"_locale",{value:this._resolveLocale(a)}),C(this,"_options",{value:{style:this._resolveStyle(b.style),units:this._isValidUnits(b.units)&&b.units}}),C(this,"_locales",{value:a}),C(this,"_fields",{value:this._findFields(this._locale)}),C(this,"_messages",{value:D(null)});var c=this;this.format=function(a,b){return c._format(a,b)}}function j(a){var b=R(null);return function(){var c=Array.prototype.slice.call(arguments),d=k(c),e=d&&b[d];return e||(e=R(a.prototype),a.apply(e,c),d&&(b[d]=e)),e}}function k(a){if("undefined"!=typeof JSON){var b,c,d,e=[];for(b=0,c=a.length;c>b;b+=1)d=a[b],e.push(d&&"object"==typeof d?l(d):d);return JSON.stringify(e)}}function l(a){var b,c,d,e,f=[],g=[];for(b in a)a.hasOwnProperty(b)&&g.push(b);var h=g.sort();for(c=0,d=h.length;d>c;c+=1)b=h[c],e={},e[b]=a[b],f[c]=e;return f}function m(a,b){if(!isFinite(a))throw new TypeError(b)}function n(a){w.__addLocaleData(a),L.__addLocaleData(a)}var o=Object.prototype.hasOwnProperty,p=function(){try{return!!Object.defineProperty({},"a",{})}catch(a){return!1}}(),q=(!p&&!Object.prototype.__defineGetter__,p?Object.defineProperty:function(a,b,c){"get"in c&&a.__defineGetter__?a.__defineGetter__(b,c.get):(!o.call(a,b)||"value"in c)&&(a[b]=c.value)}),r=Object.create||function(a,b){function c(){}var d,e;c.prototype=a,d=new c;for(e in b)o.call(b,e)&&q(d,e,b[e]);return d},s=b;b.prototype.compile=function(a){return this.pluralStack=[],this.currentPlural=null,this.pluralNumberFormat=null,this.compileMessage(a)},b.prototype.compileMessage=function(a){if(!a||"messageFormatPattern"!==a.type)throw new Error('Message AST is not of type: "messageFormatPattern"');var b,c,d,e=a.elements,f=[];for(b=0,c=e.length;c>b;b+=1)switch(d=e[b],d.type){case"messageTextElement":f.push(this.compileMessageText(d));break;case"argumentElement":f.push(this.compileArgument(d));break;default:throw new Error("Message element does not have a valid type")}return f},b.prototype.compileMessageText=function(a){return this.currentPlural&&/(^|[^\\])#/g.test(a.value)?(this.pluralNumberFormat||(this.pluralNumberFormat=new Intl.NumberFormat(this.locales)),new e(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,a.value)):a.value.replace(/\\#/g,"#")},b.prototype.compileArgument=function(a){var b=a.format;if(!b)return new c(a.id);var e,g=this.formats,h=this.locales,i=this.pluralFn;switch(b.type){case"numberFormat":return e=g.number[b.style],{id:a.id,format:new Intl.NumberFormat(h,e).format};case"dateFormat":return e=g.date[b.style],{id:a.id,format:new Intl.DateTimeFormat(h,e).format};case"timeFormat":return e=g.time[b.style],{id:a.id,format:new Intl.DateTimeFormat(h,e).format};case"pluralFormat":return e=this.compileOptions(a),new d(a.id,b.ordinal,b.offset,e,i);case"selectFormat":return e=this.compileOptions(a),new f(a.id,e);default:throw new Error("Message element does not have a valid format type")}},b.prototype.compileOptions=function(a){var b=a.format,c=b.options,d={};this.pluralStack.push(this.currentPlural),this.currentPlural="pluralFormat"===b.type?a:null;var e,f,g;for(e=0,f=c.length;f>e;e+=1)g=c[e],d[g.selector]=this.compileMessage(g.value);return this.currentPlural=this.pluralStack.pop(),d},c.prototype.format=function(a){return a?"string"==typeof a?a:String(a):""},d.prototype.getOption=function(a){var b=this.options,c=b["="+a]||b[this.pluralFn(a-this.offset,this.useOrdinal)];return c||b.other},e.prototype.format=function(a){var b=this.numberFormat.format(a-this.offset);return this.string.replace(/(^|[^\\])#/g,"$1"+b).replace(/\\#/g,"#")},f.prototype.getOption=function(a){var b=this.options;return b[a]||b.other};var t=function(){function a(a,b){function c(){this.constructor=a}c.prototype=b.prototype,a.prototype=new c}function b(a,b,c,d,e,f){this.message=a,this.expected=b,this.found=c,this.offset=d,this.line=e,this.column=f,this.name="SyntaxError"}function c(a){function c(b){function c(b,c,d){var e,f;for(e=c;d>e;e++)f=a.charAt(e),"\n"===f?(b.seenCR||b.line++,b.column=1,b.seenCR=!1):"\r"===f||"\u2028"===f||"\u2029"===f?(b.line++,b.column=1,b.seenCR=!0):(b.column++,b.seenCR=!1)}return Ua!==b&&(Ua>b&&(Ua=0,Va={line:1,column:1,seenCR:!1}),c(Va,Ua,b),Ua=b),Va}function d(a){Wa>Sa||(Sa>Wa&&(Wa=Sa,Xa=[]),Xa.push(a))}function e(d,e,f){function g(a){var b=1;for(a.sort(function(a,b){return a.description<b.description?-1:a.description>b.description?1:0});b<a.length;)a[b-1]===a[b]?a.splice(b,1):b++}function h(a,b){function c(a){function b(a){return a.charCodeAt(0).toString(16).toUpperCase()}return a.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(a){return"\\x0"+b(a)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(a){return"\\x"+b(a)}).replace(/[\u0180-\u0FFF]/g,function(a){return"\\u0"+b(a)}).replace(/[\u1080-\uFFFF]/g,function(a){return"\\u"+b(a)})}var d,e,f,g=new Array(a.length);for(f=0;f<a.length;f++)g[f]=a[f].description;return d=a.length>1?g.slice(0,-1).join(", ")+" or "+g[a.length-1]:g[0],e=b?'"'+c(b)+'"':"end of input","Expected "+d+" but "+e+" found."}var i=c(f),j=f<a.length?a.charAt(f):null;return null!==e&&g(e),new b(null!==d?d:h(e,j),e,j,f,i.line,i.column)}function f(){var a;return a=g()}function g(){var a,b,c;for(a=Sa,b=[],c=h();c!==E;)b.push(c),c=h();return b!==E&&(Ta=a,b=H(b)),a=b}function h(){var a;return a=j(),a===E&&(a=l()),a}function i(){var b,c,d,e,f,g;if(b=Sa,c=[],d=Sa,e=w(),e!==E?(f=B(),f!==E?(g=w(),g!==E?(e=[e,f,g],d=e):(Sa=d,d=I)):(Sa=d,d=I)):(Sa=d,d=I),d!==E)for(;d!==E;)c.push(d),d=Sa,e=w(),e!==E?(f=B(),f!==E?(g=w(),g!==E?(e=[e,f,g],d=e):(Sa=d,d=I)):(Sa=d,d=I)):(Sa=d,d=I);else c=I;return c!==E&&(Ta=b,c=J(c)),b=c,b===E&&(b=Sa,c=v(),c!==E&&(c=a.substring(b,Sa)),b=c),b}function j(){var a,b;return a=Sa,b=i(),b!==E&&(Ta=a,b=K(b)),a=b}function k(){var b,c,e;if(b=z(),b===E){if(b=Sa,c=[],L.test(a.charAt(Sa))?(e=a.charAt(Sa),Sa++):(e=E,0===Ya&&d(M)),e!==E)for(;e!==E;)c.push(e),L.test(a.charAt(Sa))?(e=a.charAt(Sa),Sa++):(e=E,0===Ya&&d(M));else c=I;c!==E&&(c=a.substring(b,Sa)),b=c}return b}function l(){var b,c,e,f,g,h,i,j,l;return b=Sa,123===a.charCodeAt(Sa)?(c=N,Sa++):(c=E,0===Ya&&d(O)),c!==E?(e=w(),e!==E?(f=k(),f!==E?(g=w(),g!==E?(h=Sa,44===a.charCodeAt(Sa)?(i=Q,Sa++):(i=E,0===Ya&&d(R)),i!==E?(j=w(),j!==E?(l=m(),l!==E?(i=[i,j,l],h=i):(Sa=h,h=I)):(Sa=h,h=I)):(Sa=h,h=I),h===E&&(h=P),h!==E?(i=w(),i!==E?(125===a.charCodeAt(Sa)?(j=S,Sa++):(j=E,0===Ya&&d(T)),j!==E?(Ta=b,c=U(f,h),b=c):(Sa=b,b=I)):(Sa=b,b=I)):(Sa=b,b=I)):(Sa=b,b=I)):(Sa=b,b=I)):(Sa=b,b=I)):(Sa=b,b=I),b}function m(){var a;return a=n(),a===E&&(a=o(),a===E&&(a=p(),a===E&&(a=q()))),a}function n(){var b,c,e,f,g,h,i;return b=Sa,a.substr(Sa,6)===V?(c=V,Sa+=6):(c=E,0===Ya&&d(W)),c===E&&(a.substr(Sa,4)===X?(c=X,Sa+=4):(c=E,0===Ya&&d(Y)),c===E&&(a.substr(Sa,4)===Z?(c=Z,Sa+=4):(c=E,0===Ya&&d($)))),c!==E?(e=w(),e!==E?(f=Sa,44===a.charCodeAt(Sa)?(g=Q,Sa++):(g=E,0===Ya&&d(R)),g!==E?(h=w(),h!==E?(i=B(),i!==E?(g=[g,h,i],f=g):(Sa=f,f=I)):(Sa=f,f=I)):(Sa=f,f=I),f===E&&(f=P),f!==E?(Ta=b,c=_(c,f),b=c):(Sa=b,b=I)):(Sa=b,b=I)):(Sa=b,b=I),b}function o(){var b,c,e,f,g,h;return b=Sa,a.substr(Sa,6)===aa?(c=aa,Sa+=6):(c=E,0===Ya&&d(ba)),c!==E?(e=w(),e!==E?(44===a.charCodeAt(Sa)?(f=Q,Sa++):(f=E,0===Ya&&d(R)),f!==E?(g=w(),g!==E?(h=u(),h!==E?(Ta=b,c=ca(h),b=c):(Sa=b,b=I)):(Sa=b,b=I)):(Sa=b,b=I)):(Sa=b,b=I)):(Sa=b,b=I),b}function p(){var b,c,e,f,g,h;return b=Sa,a.substr(Sa,13)===da?(c=da,Sa+=13):(c=E,0===Ya&&d(ea)),c!==E?(e=w(),e!==E?(44===a.charCodeAt(Sa)?(f=Q,Sa++):(f=E,0===Ya&&d(R)),f!==E?(g=w(),g!==E?(h=u(),h!==E?(Ta=b,c=fa(h),b=c):(Sa=b,b=I)):(Sa=b,b=I)):(Sa=b,b=I)):(Sa=b,b=I)):(Sa=b,b=I),b}function q(){var b,c,e,f,g,h,i;if(b=Sa,a.substr(Sa,6)===ga?(c=ga,Sa+=6):(c=E,0===Ya&&d(ha)),c!==E)if(e=w(),e!==E)if(44===a.charCodeAt(Sa)?(f=Q,Sa++):(f=E,0===Ya&&d(R)),f!==E)if(g=w(),g!==E){if(h=[],i=s(),i!==E)for(;i!==E;)h.push(i),i=s();else h=I;h!==E?(Ta=b,c=ia(h),b=c):(Sa=b,b=I)}else Sa=b,b=I;else Sa=b,b=I;else Sa=b,b=I;else Sa=b,b=I;return b}function r(){var b,c,e,f;return b=Sa,c=Sa,61===a.charCodeAt(Sa)?(e=ja,Sa++):(e=E,0===Ya&&d(ka)),e!==E?(f=z(),f!==E?(e=[e,f],c=e):(Sa=c,c=I)):(Sa=c,c=I),c!==E&&(c=a.substring(b,Sa)),b=c,b===E&&(b=B()),b}function s(){var b,c,e,f,h,i,j,k,l;return b=Sa,c=w(),c!==E?(e=r(),e!==E?(f=w(),f!==E?(123===a.charCodeAt(Sa)?(h=N,Sa++):(h=E,0===Ya&&d(O)),h!==E?(i=w(),i!==E?(j=g(),j!==E?(k=w(),k!==E?(125===a.charCodeAt(Sa)?(l=S,Sa++):(l=E,0===Ya&&d(T)),l!==E?(Ta=b,c=la(e,j),b=c):(Sa=b,b=I)):(Sa=b,b=I)):(Sa=b,b=I)):(Sa=b,b=I)):(Sa=b,b=I)):(Sa=b,b=I)):(Sa=b,b=I)):(Sa=b,b=I),b}function t(){var b,c,e,f;return b=Sa,a.substr(Sa,7)===ma?(c=ma,Sa+=7):(c=E,0===Ya&&d(na)),c!==E?(e=w(),e!==E?(f=z(),f!==E?(Ta=b,c=oa(f),b=c):(Sa=b,b=I)):(Sa=b,b=I)):(Sa=b,b=I),b}function u(){var a,b,c,d,e;if(a=Sa,b=t(),b===E&&(b=P),b!==E)if(c=w(),c!==E){if(d=[],e=s(),e!==E)for(;e!==E;)d.push(e),e=s();else d=I;d!==E?(Ta=a,b=pa(b,d),a=b):(Sa=a,a=I)}else Sa=a,a=I;else Sa=a,a=I;return a}function v(){var b,c;if(Ya++,b=[],ra.test(a.charAt(Sa))?(c=a.charAt(Sa),Sa++):(c=E,0===Ya&&d(sa)),c!==E)for(;c!==E;)b.push(c),ra.test(a.charAt(Sa))?(c=a.charAt(Sa),Sa++):(c=E,0===Ya&&d(sa));else b=I;return Ya--,b===E&&(c=E,0===Ya&&d(qa)),b}function w(){var b,c,e;for(Ya++,b=Sa,c=[],e=v();e!==E;)c.push(e),e=v();return c!==E&&(c=a.substring(b,Sa)),b=c,Ya--,b===E&&(c=E,0===Ya&&d(ta)),b}function x(){var b;return ua.test(a.charAt(Sa))?(b=a.charAt(Sa),Sa++):(b=E,0===Ya&&d(va)),b}function y(){var b;return wa.test(a.charAt(Sa))?(b=a.charAt(Sa),Sa++):(b=E,0===Ya&&d(xa)),b}function z(){var b,c,e,f,g,h;if(b=Sa,48===a.charCodeAt(Sa)?(c=ya,Sa++):(c=E,0===Ya&&d(za)),c===E){if(c=Sa,e=Sa,Aa.test(a.charAt(Sa))?(f=a.charAt(Sa),Sa++):(f=E,0===Ya&&d(Ba)),f!==E){for(g=[],h=x();h!==E;)g.push(h),h=x();g!==E?(f=[f,g],e=f):(Sa=e,e=I)}else Sa=e,e=I;e!==E&&(e=a.substring(c,Sa)),c=e}return c!==E&&(Ta=b,c=Ca(c)),b=c}function A(){var b,c,e,f,g,h,i,j;return Da.test(a.charAt(Sa))?(b=a.charAt(Sa),Sa++):(b=E,0===Ya&&d(Ea)),b===E&&(b=Sa,a.substr(Sa,2)===Fa?(c=Fa,Sa+=2):(c=E,0===Ya&&d(Ga)),c!==E&&(Ta=b,c=Ha()),b=c,b===E&&(b=Sa,a.substr(Sa,2)===Ia?(c=Ia,Sa+=2):(c=E,0===Ya&&d(Ja)),c!==E&&(Ta=b,c=Ka()),b=c,b===E&&(b=Sa,a.substr(Sa,2)===La?(c=La,Sa+=2):(c=E,0===Ya&&d(Ma)),c!==E&&(Ta=b,c=Na()),b=c,b===E&&(b=Sa,a.substr(Sa,2)===Oa?(c=Oa,Sa+=2):(c=E,0===Ya&&d(Pa)),c!==E?(e=Sa,f=Sa,g=y(),g!==E?(h=y(),h!==E?(i=y(),i!==E?(j=y(),j!==E?(g=[g,h,i,j],f=g):(Sa=f,f=I)):(Sa=f,f=I)):(Sa=f,f=I)):(Sa=f,f=I),f!==E&&(f=a.substring(e,Sa)),e=f,e!==E?(Ta=b,c=Qa(e),b=c):(Sa=b,b=I)):(Sa=b,b=I))))),b}function B(){var a,b,c;if(a=Sa,b=[],c=A(),c!==E)for(;c!==E;)b.push(c),c=A();else b=I;return b!==E&&(Ta=a,b=Ra(b)),a=b}var C,D=arguments.length>1?arguments[1]:{},E={},F={start:f},G=f,H=function(a){return{type:"messageFormatPattern",elements:a}},I=E,J=function(a){var b,c,d,e,f,g="";for(b=0,d=a.length;d>b;b+=1)for(e=a[b],c=0,f=e.length;f>c;c+=1)g+=e[c];return g},K=function(a){return{type:"messageTextElement",value:a}},L=/^[^ \t\n\r,.+={}#]/,M={type:"class",value:"[^ \\t\\n\\r,.+={}#]",description:"[^ \\t\\n\\r,.+={}#]"},N="{",O={type:"literal",value:"{",description:'"{"'},P=null,Q=",",R={type:"literal",value:",",description:'","'},S="}",T={type:"literal",value:"}",description:'"}"'},U=function(a,b){return{type:"argumentElement",id:a,format:b&&b[2]}},V="number",W={type:"literal",value:"number",description:'"number"'},X="date",Y={type:"literal",value:"date",description:'"date"'},Z="time",$={type:"literal",value:"time",description:'"time"'},_=function(a,b){return{type:a+"Format",style:b&&b[2]}},aa="plural",ba={type:"literal",value:"plural",description:'"plural"'},ca=function(a){return{type:a.type,ordinal:!1,offset:a.offset||0,options:a.options}},da="selectordinal",ea={type:"literal",value:"selectordinal",description:'"selectordinal"'},fa=function(a){return{type:a.type,ordinal:!0,offset:a.offset||0,options:a.options}},ga="select",ha={type:"literal",value:"select",description:'"select"'},ia=function(a){return{type:"selectFormat",options:a}},ja="=",ka={type:"literal",value:"=",description:'"="'},la=function(a,b){return{type:"optionalFormatPattern",selector:a,value:b}},ma="offset:",na={type:"literal",value:"offset:",description:'"offset:"'},oa=function(a){return a},pa=function(a,b){return{type:"pluralFormat",offset:a,options:b}},qa={type:"other",description:"whitespace"},ra=/^[ \t\n\r]/,sa={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},ta={type:"other",description:"optionalWhitespace"},ua=/^[0-9]/,va={type:"class",value:"[0-9]",description:"[0-9]"},wa=/^[0-9a-f]/i,xa={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},ya="0",za={type:"literal",value:"0",description:'"0"'},Aa=/^[1-9]/,Ba={type:"class",value:"[1-9]",description:"[1-9]"},Ca=function(a){return parseInt(a,10)},Da=/^[^{}\\\0-\x1F \t\n\r]/,Ea={type:"class",value:"[^{}\\\\\\0-\\x1F \\t\\n\\r]",description:"[^{}\\\\\\0-\\x1F \\t\\n\\r]"},Fa="\\#",Ga={type:"literal",value:"\\#",description:'"\\\\#"'},Ha=function(){return"\\#"},Ia="\\{",Ja={type:"literal",value:"\\{",description:'"\\\\{"'},Ka=function(){return"{"},La="\\}",Ma={type:"literal",value:"\\}",description:'"\\\\}"'},Na=function(){return"}"},Oa="\\u",Pa={type:"literal",value:"\\u",description:'"\\\\u"'},Qa=function(a){return String.fromCharCode(parseInt(a,16))},Ra=function(a){return a.join("")},Sa=0,Ta=0,Ua=0,Va={line:1,column:1,seenCR:!1},Wa=0,Xa=[],Ya=0;if("startRule"in D){if(!(D.startRule in F))throw new Error("Can't start parsing from rule \""+D.startRule+'".');G=F[D.startRule]}if(C=G(),C!==E&&Sa===a.length)return C;throw C!==E&&Sa<a.length&&d({type:"end",description:"end of input"}),e(null,Xa,Wa)}return a(b,Error),{SyntaxError:b,parse:c}}(),u=g;q(g,"formats",{enumerable:!0,value:{number:{currency:{style:"currency"},percent:{style:"percent"}},date:{"short":{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},"long":{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{"short":{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},"long":{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}),q(g,"__localeData__",{value:r(null)}),q(g,"__addLocaleData",{value:function(a){if(!a||!a.locale)throw new Error("Locale data provided to IntlMessageFormat is missing a `locale` property");g.__localeData__[a.locale.toLowerCase()]=a}}),q(g,"__parse",{value:t.parse}),q(g,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),g.prototype.resolvedOptions=function(){return{locale:this._locale}},g.prototype._compilePattern=function(a,b,c,d){var e=new s(b,c,d);return e.compile(a)},g.prototype._findPluralRuleFunction=function(a){for(var b=g.__localeData__,c=b[a.toLowerCase()];c;){if(c.pluralRuleFunction)return c.pluralRuleFunction;c=c.parentLocale&&b[c.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlMessageFormat is missing a `pluralRuleFunction` for :"+a)},g.prototype._format=function(a,b){var c,d,e,f,g,h="";for(c=0,d=a.length;d>c;c+=1)if(e=a[c],"string"!=typeof e){if(f=e.id,!b||!o.call(b,f))throw new Error("A value must be provided for: "+f);g=b[f],h+=e.options?this._format(e.getOption(g),b):e.format(g)}else h+=e;return h},g.prototype._mergeFormats=function(b,c){var d,e,f={};for(d in b)o.call(b,d)&&(f[d]=e=r(b[d]),c&&o.call(c,d)&&a(e,c[d]));return f},g.prototype._resolveLocale=function(a){"string"==typeof a&&(a=[a]),a=(a||[]).concat(g.defaultLocale);var b,c,d,e,f=g.__localeData__;for(b=0,c=a.length;c>b;b+=1)for(d=a[b].toLowerCase().split("-");d.length;){if(e=f[d.join("-")])return e.locale;d.pop()}var h=a.pop();throw new Error("No locale data has been added to IntlMessageFormat for: "+a.join(", ")+", or the default locale: "+h)};var v={locale:"en",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1],e=Number(c[0])==a,f=e&&c[0].slice(-1),g=e&&c[0].slice(-2);return b?1==f&&11!=g?"one":2==f&&12!=g?"two":3==f&&13!=g?"few":"other":1==a&&d?"one":"other"}};u.__addLocaleData(v),u.defaultLocale="en";var w=u,x=Math.round,y=function(a,b){a=+a,b=+b;var c=x(b-a),d=x(c/1e3),e=x(d/60),f=x(e/60),g=x(f/24),i=x(g/7),j=h(g),k=x(12*j),l=x(j);return{millisecond:c,second:d,minute:e,hour:f,day:g,week:i,month:k,year:l}},z=Object.prototype.hasOwnProperty,A=Object.prototype.toString,B=function(){try{return!!Object.defineProperty({},"a",{})}catch(a){return!1}}(),C=(!B&&!Object.prototype.__defineGetter__,B?Object.defineProperty:function(a,b,c){"get"in c&&a.__defineGetter__?a.__defineGetter__(b,c.get):(!z.call(a,b)||"value"in c)&&(a[b]=c.value)}),D=Object.create||function(a,b){function c(){}var d,e;c.prototype=a,d=new c;for(e in b)z.call(b,e)&&C(d,e,b[e]);return d},E=Array.prototype.indexOf||function(a,b){var c=this;if(!c.length)return-1;for(var d=b||0,e=c.length;e>d;d++)if(c[d]===a)return d;return-1},F=Array.isArray||function(a){return"[object Array]"===A.call(a)},G=Date.now||function(){return(new Date).getTime()},H=i,I=["second","minute","hour","day","month","year"],J=["best fit","numeric"];C(i,"__localeData__",{value:D(null)}),C(i,"__addLocaleData",{value:function(a){if(!a||!a.locale)throw new Error("Locale data provided to IntlRelativeFormat is missing a `locale` property value");i.__localeData__[a.locale.toLowerCase()]=a,w.__addLocaleData(a)}}),C(i,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),C(i,"thresholds",{enumerable:!0,value:{second:45,minute:45,hour:22,day:26,month:11}}),i.prototype.resolvedOptions=function(){return{locale:this._locale,style:this._options.style,units:this._options.units}},i.prototype._compileMessage=function(a){var b,c=this._locales,d=(this._locale,this._fields[a]),e=d.relativeTime,f="",g="";for(b in e.future)e.future.hasOwnProperty(b)&&(f+=" "+b+" {"+e.future[b].replace("{0}","#")+"}");for(b in e.past)e.past.hasOwnProperty(b)&&(g+=" "+b+" {"+e.past[b].replace("{0}","#")+"}");var h="{when, select, future {{0, plural, "+f+"}}past {{0, plural, "+g+"}}}";return new w(h,c)},i.prototype._getMessage=function(a){var b=this._messages;return b[a]||(b[a]=this._compileMessage(a)),b[a]},i.prototype._getRelativeUnits=function(a,b){var c=this._fields[b];return c.relative?c.relative[a]:void 0},i.prototype._findFields=function(a){for(var b=i.__localeData__,c=b[a.toLowerCase()];c;){if(c.fields)return c.fields;c=c.parentLocale&&b[c.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlRelativeFormat is missing `fields` for :"+a)},i.prototype._format=function(a,b){var c=b&&void 0!==b.now?b.now:G();if(void 0===a&&(a=c),!isFinite(c))throw new RangeError("The `now` option provided to IntlRelativeFormat#format() is not in valid range.");if(!isFinite(a))throw new RangeError("The date value provided to IntlRelativeFormat#format() is not in valid range.");var d=y(c,a),e=this._options.units||this._selectUnits(d),f=d[e];if("numeric"!==this._options.style){var g=this._getRelativeUnits(f,e);if(g)return g}return this._getMessage(e).format({0:Math.abs(f),when:0>f?"past":"future"})},i.prototype._isValidUnits=function(a){if(!a||E.call(I,a)>=0)return!0;if("string"==typeof a){var b=/s$/.test(a)&&a.substr(0,a.length-1);if(b&&E.call(I,b)>=0)throw new Error('"'+a+'" is not a valid IntlRelativeFormat `units` value, did you mean: '+b)}throw new Error('"'+a+'" is not a valid IntlRelativeFormat `units` value, it must be one of: "'+I.join('", "')+'"')},i.prototype._resolveLocale=function(a){"string"==typeof a&&(a=[a]),a=(a||[]).concat(i.defaultLocale);var b,c,d,e,f=i.__localeData__;for(b=0,c=a.length;c>b;b+=1)for(d=a[b].toLowerCase().split("-");d.length;){if(e=f[d.join("-")])return e.locale;d.pop()}var g=a.pop();throw new Error("No locale data has been added to IntlRelativeFormat for: "+a.join(", ")+", or the default locale: "+g)},i.prototype._resolveStyle=function(a){if(!a)return J[0];if(E.call(J,a)>=0)return a;throw new Error('"'+a+'" is not a valid IntlRelativeFormat `style` value, it must be one of: "'+J.join('", "')+'"')},i.prototype._selectUnits=function(a){var b,c,d;for(b=0,c=I.length;c>b&&(d=I[b],!(Math.abs(a[d])<i.thresholds[d]));b+=1);return d};var K={locale:"en",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1],e=Number(c[0])==a,f=e&&c[0].slice(-1),g=e&&c[0].slice(-2);return b?1==f&&11!=g?"one":2==f&&12!=g?"two":3==f&&13!=g?"few":"other":1==a&&d?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"Hour",relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},minute:{displayName:"Minute",relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}}}};H.__addLocaleData(K),H.defaultLocale="en";var L=H,M={locale:"en",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1],e=Number(c[0])==a,f=e&&c[0].slice(-1),g=e&&c[0].slice(-2);return b?1==f&&11!=g?"one":2==f&&12!=g?"two":3==f&&13!=g?"few":"other":1==a&&d?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"Hour",relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},minute:{displayName:"Minute",relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}}}},N=React,O=Object.prototype.hasOwnProperty,P=function(){try{return!!Object.defineProperty({},"a",{})}catch(a){return!1}}(),Q=(!P&&!Object.prototype.__defineGetter__,P?Object.defineProperty:function(a,b,c){"get"in c&&a.__defineGetter__?a.__defineGetter__(b,c.get):(!O.call(a,b)||"value"in c)&&(a[b]=c.value)}),R=Object.create||function(a,b){function c(){}var d,e;c.prototype=a,d=new c;for(e in b)O.call(b,e)&&Q(d,e,b[e]);return d},S=j,T={locales:N.PropTypes.oneOfType([N.PropTypes.string,N.PropTypes.array]),formats:N.PropTypes.object,messages:N.PropTypes.object},U={statics:{filterFormatOptions:function(a,b){return b||(b={}),(this.formatOptions||[]).reduce(function(c,d){return a.hasOwnProperty(d)?c[d]=a[d]:b.hasOwnProperty(d)&&(c[d]=b[d]),c},{})}},propTypes:T,contextTypes:T,childContextTypes:T,getNumberFormat:S(Intl.NumberFormat),getDateTimeFormat:S(Intl.DateTimeFormat),getMessageFormat:S(w),getRelativeFormat:S(L),getChildContext:function(){var a=this.context,b=this.props;return{locales:b.locales||a.locales,formats:b.formats||a.formats,messages:b.messages||a.messages}},formatDate:function(a,b){return a=new Date(a),m(a,"A date or timestamp must be provided to formatDate()"),this._format("date",a,b)},formatTime:function(a,b){return a=new Date(a),m(a,"A date or timestamp must be provided to formatTime()"),this._format("time",a,b)},formatRelative:function(a,b,c){return a=new Date(a),m(a,"A date or timestamp must be provided to formatRelative()"),this._format("relative",a,b,c)},formatNumber:function(a,b){return this._format("number",a,b)},formatMessage:function(a,b){var c=this.props.locales||this.context.locales,d=this.props.formats||this.context.formats;return"function"==typeof a?a(b):("string"==typeof a&&(a=this.getMessageFormat(a,c,d)),a.format(b))},getIntlMessage:function(a){var b,c=this.props.messages||this.context.messages,d=a.split(".");try{b=d.reduce(function(a,b){return a[b]},c)}finally{if(void 0===b)throw new ReferenceError("Could not find Intl message: "+a)}return b},getNamedFormat:function(a,b){var c=this.props.formats||this.context.formats,d=null;try{d=c[a][b]}finally{if(!d)throw new ReferenceError("No "+a+" format named: "+b)}return d},_format:function(a,b,c,d){var e=this.props.locales||this.context.locales;switch(c&&"string"==typeof c&&(c=this.getNamedFormat(a,c)),a){case"date":case"time":return this.getDateTimeFormat(e,c).format(b);case"number":return this.getNumberFormat(e,c).format(b);case"relative":return this.getRelativeFormat(e,c).format(b,d);default:throw new Error("Unrecognized format type: "+a)}}},V=N.createClass({displayName:"FormattedDate",mixins:[U],statics:{formatOptions:["localeMatcher","timeZone","hour12","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"]},propTypes:{format:N.PropTypes.string,value:N.PropTypes.any.isRequired},render:function(){var a=this.props,b=a.value,c=a.format,d=c&&this.getNamedFormat("date",c),e=V.filterFormatOptions(a,d);return N.DOM.span(null,this.formatDate(b,e))}}),W=V,X=N.createClass({displayName:"FormattedTime",mixins:[U],statics:{formatOptions:["localeMatcher","timeZone","hour12","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"]},propTypes:{format:N.PropTypes.string,value:N.PropTypes.any.isRequired},render:function(){var a=this.props,b=a.value,c=a.format,d=c&&this.getNamedFormat("time",c),e=X.filterFormatOptions(a,d);return N.DOM.span(null,this.formatTime(b,e))}}),Y=X,Z=N.createClass({displayName:"FormattedRelative",mixins:[U],statics:{formatOptions:["style","units"]},propTypes:{format:N.PropTypes.string,value:N.PropTypes.any.isRequired,now:N.PropTypes.any},render:function(){var a=this.props,b=a.value,c=a.format,d=c&&this.getNamedFormat("relative",c),e=Z.filterFormatOptions(a,d),f=this.formatRelative(b,e,{now:a.now});return N.DOM.span(null,f)}}),$=Z,_=N.createClass({displayName:"FormattedNumber",mixins:[U],statics:{formatOptions:["localeMatcher","style","currency","currencyDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"]},propTypes:{format:N.PropTypes.string,value:N.PropTypes.any.isRequired},render:function(){var a=this.props,b=a.value,c=a.format,d=c&&this.getNamedFormat("number",c),e=_.filterFormatOptions(a,d);return N.DOM.span(null,this.formatNumber(b,e))}}),aa=_,ba=N.createClass({displayName:"FormattedMessage",mixins:[U],propTypes:{tagName:N.PropTypes.string,message:N.PropTypes.string.isRequired},getDefaultProps:function(){return{tagName:"span"}},render:function(){var a=this.props,b=a.tagName,c=a.message,d=Math.floor(1099511627776*Math.random()).toString(16),e=new RegExp("(@__ELEMENT-"+d+"-\\d+__@)","g"),f={},g=function(){var a=0;return function(){return"@__ELEMENT-"+d+"-"+(a+=1)+"__@"}}(),h=Object.keys(a).reduce(function(b,c){var d,e=a[c];return N.isValidElement(e)?(d=g(),b[c]=d,f[d]=e):b[c]=e,b},{}),i=this.formatMessage(c,h),j=i.split(e).filter(function(a){return!!a}).map(function(a){return f[a]||a}),k=[b,null].concat(j);return N.createElement.apply(null,k)}}),ca=ba,da={"&":"&",">":">","<":"<",'"':""","'":"'"},ea=/[&><"']/g,fa=function(a){return(""+a).replace(ea,function(a){return da[a]})},ga=N.createClass({displayName:"FormattedHTMLMessage",mixins:[U],propTypes:{tagName:N.PropTypes.string,message:N.PropTypes.string.isRequired},getDefaultProps:function(){return{tagName:"span"}},render:function(){var a=this.props,b=a.tagName,c=a.message,d=Object.keys(a).reduce(function(b,c){var d=a[c];return"string"==typeof d?d=fa(d):N.isValidElement(d)&&(d=N.renderToStaticMarkup(d)),b[c]=d,b},{});return N.DOM[b]({dangerouslySetInnerHTML:{__html:this.formatMessage(c,d)}})}}),ha=ga;n(M);var ia={IntlMixin:U,FormattedDate:W,FormattedTime:Y,FormattedRelative:$,FormattedNumber:aa,FormattedMessage:ca,FormattedHTMLMessage:ha,__addLocaleData:n};"undefined"!=typeof window&&(window.ReactIntlMixin=U,U.__addLocaleData=n),this.ReactIntl=ia}).call(this),ReactIntl.__addLocaleData({locale:"aa",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"aa-DJ",parentLocale:"aa"}),ReactIntl.__addLocaleData({locale:"aa-ER",parentLocale:"aa"}),ReactIntl.__addLocaleData({locale:"aa-ET",parentLocale:"aa"}),ReactIntl.__addLocaleData({locale:"af",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Jaar",relative:{0:"hierdie jaar",1:"volgende jaar","-1":"verlede jaar"},relativeTime:{future:{one:"Oor {0} jaar",other:"Oor {0} jaar"},past:{one:"{0} jaar gelede",other:"{0} jaar gelede"}}},month:{displayName:"Maand",relative:{0:"vandeesmaand",1:"volgende maand","-1":"verlede maand"},relativeTime:{future:{one:"Oor {0} maand",other:"Oor {0} maande"},past:{one:"{0} maand gelede",other:"{0} maande gelede"}}},day:{displayName:"Dag",relative:{0:"vandag",1:"môre",2:"oormôre","-1":"gister","-2":"eergister"},relativeTime:{future:{one:"Oor {0} dag",other:"Oor {0} dae"},past:{one:"{0} dag gelede",other:"{0} dae gelede"}}},hour:{displayName:"Uur",relativeTime:{future:{one:"Oor {0} uur",other:"Oor {0} uur"},past:{one:"{0} uur gelede",other:"{0} uur gelede"}}},minute:{displayName:"Minuut",relativeTime:{future:{one:"Oor {0} minuut",other:"Oor {0} minute"},past:{one:"{0} minuut gelede",other:"{0} minute gelede"}}},second:{displayName:"Sekonde",relative:{0:"nou"},relativeTime:{future:{one:"Oor {0} sekonde",other:"Oor {0} sekondes"},past:{one:"{0} sekonde gelede",other:"{0} sekondes gelede"}}}}}),ReactIntl.__addLocaleData({locale:"af-NA",parentLocale:"af"}),ReactIntl.__addLocaleData({locale:"af-ZA",
parentLocale:"af"}),ReactIntl.__addLocaleData({locale:"agq",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"kɨnûm",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"ndzɔŋ",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"utsuʔ",relative:{0:"nɛ",1:"tsʉtsʉ","-1":"ā zūɛɛ"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"tàm",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"menè",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"sɛkɔ̀n",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"agq-CM",parentLocale:"agq"}),ReactIntl.__addLocaleData({locale:"ak",pluralRuleFunction:function(a,b){return b?"other":0==a||1==a?"one":"other"},fields:{year:{displayName:"Afe",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Bosome",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Da",relative:{0:"Ndɛ",1:"Ɔkyena","-1":"Ndeda"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Dɔnhwer",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Sema",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sɛkɛnd",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ak-GH",parentLocale:"ak"}),ReactIntl.__addLocaleData({locale:"am",pluralRuleFunction:function(a,b){return b?"other":a>=0&&1>=a?"one":"other"},fields:{year:{displayName:"ዓመት",relative:{0:"በዚህ ዓመት",1:"የሚቀጥለው ዓመት","-1":"ያለፈው ዓመት"},relativeTime:{future:{one:"በ{0} ዓመታት ውስጥ",other:"በ{0} ዓመታት ውስጥ"},past:{one:"ከ{0} ዓመት በፊት",other:"ከ{0} ዓመታት በፊት"}}},month:{displayName:"ወር",relative:{0:"በዚህ ወር",1:"የሚቀጥለው ወር","-1":"ያለፈው ወር"},relativeTime:{future:{one:"በ{0} ወር ውስጥ",other:"በ{0} ወራት ውስጥ"},past:{one:"ከ{0} ወር በፊት",other:"ከ{0} ወራት በፊት"}}},day:{displayName:"ቀን",relative:{0:"ዛሬ",1:"ነገ",2:"ከነገ ወዲያ","-1":"ትናንት","-2":"ከትናንት ወዲያ"},relativeTime:{future:{one:"በ{0} ቀን ውስጥ",other:"በ{0} ቀናት ውስጥ"},past:{one:"ከ{0} ቀን በፊት",other:"ከ{0} ቀናት በፊት"}}},hour:{displayName:"ሰዓት",relativeTime:{future:{one:"በ{0} ሰዓት ውስጥ",other:"በ{0} ሰዓቶች ውስጥ"},past:{one:"ከ{0} ሰዓት በፊት",other:"ከ{0} ሰዓቶች በፊት"}}},minute:{displayName:"ደቂቃ",relativeTime:{future:{one:"በ{0} ደቂቃ ውስጥ",other:"በ{0} ደቂቃዎች ውስጥ"},past:{one:"ከ{0} ደቂቃ በፊት",other:"ከ{0} ደቂቃዎች በፊት"}}},second:{displayName:"ሰከንድ",relative:{0:"አሁን"},relativeTime:{future:{one:"በ{0} ሰከንድ ውስጥ",other:"በ{0} ሰከንዶች ውስጥ"},past:{one:"ከ{0} ሰከንድ በፊት",other:"ከ{0} ሰከንዶች በፊት"}}}}}),ReactIntl.__addLocaleData({locale:"am-ET",parentLocale:"am"}),ReactIntl.__addLocaleData({locale:"ar",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=Number(c[0])==a,e=d&&c[0].slice(-2);return b?"other":0==a?"zero":1==a?"one":2==a?"two":e>=3&&10>=e?"few":e>=11&&99>=e?"many":"other"},fields:{year:{displayName:"السنة",relative:{0:"السنة الحالية",1:"السنة التالية","-1":"السنة الماضية"},relativeTime:{future:{zero:"خلال {0} من السنوات",one:"خلال {0} من السنوات",two:"خلال سنتين",few:"خلال {0} سنوات",many:"خلال {0} سنة",other:"خلال {0} من السنوات"},past:{zero:"قبل {0} من السنوات",one:"قبل {0} من السنوات",two:"قبل سنتين",few:"قبل {0} سنوات",many:"قبل {0} سنة",other:"قبل {0} من السنوات"}}},month:{displayName:"الشهر",relative:{0:"هذا الشهر",1:"الشهر التالي","-1":"الشهر الماضي"},relativeTime:{future:{zero:"خلال {0} من الشهور",one:"خلال {0} من الشهور",two:"خلال شهرين",few:"خلال {0} شهور",many:"خلال {0} شهرًا",other:"خلال {0} من الشهور"},past:{zero:"قبل {0} من الشهور",one:"قبل {0} من الشهور",two:"قبل شهرين",few:"قبل {0} أشهر",many:"قبل {0} شهرًا",other:"قبل {0} من الشهور"}}},day:{displayName:"يوم",relative:{0:"اليوم",1:"غدًا",2:"بعد الغد","-1":"أمس","-2":"أول أمس"},relativeTime:{future:{zero:"خلال {0} من الأيام",one:"خلال {0} من الأيام",two:"خلال يومين",few:"خلال {0} أيام",many:"خلال {0} يومًا",other:"خلال {0} من الأيام"},past:{zero:"قبل {0} من الأيام",one:"قبل {0} من الأيام",two:"قبل يومين",few:"قبل {0} أيام",many:"قبل {0} يومًا",other:"قبل {0} من الأيام"}}},hour:{displayName:"الساعات",relativeTime:{future:{zero:"خلال {0} من الساعات",one:"خلال {0} من الساعات",two:"خلال ساعتين",few:"خلال {0} ساعات",many:"خلال {0} ساعة",other:"خلال {0} من الساعات"},past:{zero:"قبل {0} من الساعات",one:"قبل {0} من الساعات",two:"قبل ساعتين",few:"قبل {0} ساعات",many:"قبل {0} ساعة",other:"قبل {0} من الساعات"}}},minute:{displayName:"الدقائق",relativeTime:{future:{zero:"خلال {0} من الدقائق",one:"خلال {0} من الدقائق",two:"خلال دقيقتين",few:"خلال {0} دقائق",many:"خلال {0} دقيقة",other:"خلال {0} من الدقائق"},past:{zero:"قبل {0} من الدقائق",one:"قبل {0} من الدقائق",two:"قبل دقيقتين",few:"قبل {0} دقائق",many:"قبل {0} دقيقة",other:"قبل {0} من الدقائق"}}},second:{displayName:"الثواني",relative:{0:"الآن"},relativeTime:{future:{zero:"خلال {0} من الثواني",one:"خلال {0} من الثواني",two:"خلال ثانيتين",few:"خلال {0} ثوانِ",many:"خلال {0} ثانية",other:"خلال {0} من الثواني"},past:{zero:"قبل {0} من الثواني",one:"قبل {0} من الثواني",two:"قبل ثانيتين",few:"قبل {0} ثوانِ",many:"قبل {0} ثانية",other:"قبل {0} من الثواني"}}}}}),ReactIntl.__addLocaleData({locale:"ar-001",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-AE",parentLocale:"ar",fields:{year:{displayName:"السنة",relative:{0:"هذه السنة",1:"السنة التالية","-1":"السنة الماضية"},relativeTime:{future:{zero:"خلال {0} من السنوات",one:"خلال {0} من السنوات",two:"خلال سنتين",few:"خلال {0} سنوات",many:"خلال {0} سنة",other:"خلال {0} من السنوات"},past:{zero:"قبل {0} من السنوات",one:"قبل {0} من السنوات",two:"قبل سنتين",few:"قبل {0} سنوات",many:"قبل {0} سنة",other:"قبل {0} من السنوات"}}},month:{displayName:"الشهر",relative:{0:"هذا الشهر",1:"الشهر التالي","-1":"الشهر الماضي"},relativeTime:{future:{zero:"خلال {0} من الشهور",one:"خلال {0} من الشهور",two:"خلال شهرين",few:"خلال {0} شهور",many:"خلال {0} شهرًا",other:"خلال {0} من الشهور"},past:{zero:"قبل {0} من الشهور",one:"قبل {0} من الشهور",two:"قبل شهرين",few:"قبل {0} أشهر",many:"قبل {0} شهرًا",other:"قبل {0} من الشهور"}}},day:{displayName:"يوم",relative:{0:"اليوم",1:"غدًا",2:"بعد الغد","-1":"أمس","-2":"أول أمس"},relativeTime:{future:{zero:"خلال {0} من الأيام",one:"خلال {0} من الأيام",two:"خلال يومين",few:"خلال {0} أيام",many:"خلال {0} يومًا",other:"خلال {0} من الأيام"},past:{zero:"قبل {0} من الأيام",one:"قبل {0} من الأيام",two:"قبل يومين",few:"قبل {0} أيام",many:"قبل {0} يومًا",other:"قبل {0} من الأيام"}}},hour:{displayName:"الساعات",relativeTime:{future:{zero:"خلال {0} من الساعات",one:"خلال {0} من الساعات",two:"خلال ساعتين",few:"خلال {0} ساعات",many:"خلال {0} ساعة",other:"خلال {0} من الساعات"},past:{zero:"قبل {0} من الساعات",one:"قبل {0} من الساعات",two:"قبل ساعتين",few:"قبل {0} ساعات",many:"قبل {0} ساعة",other:"قبل {0} من الساعات"}}},minute:{displayName:"الدقائق",relativeTime:{future:{zero:"خلال {0} من الدقائق",one:"خلال {0} من الدقائق",two:"خلال دقيقتين",few:"خلال {0} دقائق",many:"خلال {0} دقيقة",other:"خلال {0} من الدقائق"},past:{zero:"قبل {0} من الدقائق",one:"قبل {0} من الدقائق",two:"قبل دقيقتين",few:"قبل {0} دقائق",many:"قبل {0} دقيقة",other:"قبل {0} من الدقائق"}}},second:{displayName:"الثواني",relative:{0:"الآن"},relativeTime:{future:{zero:"خلال {0} من الثواني",one:"خلال {0} من الثواني",two:"خلال ثانيتين",few:"خلال {0} ثوانِ",many:"خلال {0} ثانية",other:"خلال {0} من الثواني"},past:{zero:"قبل {0} من الثواني",one:"قبل {0} من الثواني",two:"قبل ثانيتين",few:"قبل {0} ثوانِ",many:"قبل {0} ثانية",other:"قبل {0} من الثواني"}}}}}),ReactIntl.__addLocaleData({locale:"ar-BH",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-DJ",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-DZ",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-EG",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-EH",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-ER",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-IL",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-IQ",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-JO",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-KM",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-KW",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-LB",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-LY",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-MA",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-MR",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-OM",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-PS",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-QA",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-SA",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-SD",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-SO",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-SS",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-SY",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-TD",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-TN",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"ar-YE",parentLocale:"ar"}),ReactIntl.__addLocaleData({locale:"as",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"বছৰ",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"মাহ",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"দিন",relative:{0:"today",1:"কাইলৈ",2:"পৰহিলৈ","-1":"কালি","-2":"পৰহি"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"ঘণ্টা",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"মিনিট",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"ছেকেণ্ড",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"as-IN",parentLocale:"as"}),ReactIntl.__addLocaleData({locale:"asa",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Mwaka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Mweji",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Thiku",relative:{0:"Iyoo",1:"Yavo","-1":"Ighuo"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Thaa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Dakika",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Thekunde",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"asa-TZ",parentLocale:"asa"}),ReactIntl.__addLocaleData({locale:"ast",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1];return b?"other":1==a&&d?"one":"other"},fields:{year:{displayName:"añu",relative:{0:"esti añu",1:"l’añu viniente","-1":"l’añu pasáu"},relativeTime:{future:{one:"En {0} añu",other:"En {0} años"},past:{one:"Hai {0} añu",other:"Hai {0} años"}}},month:{displayName:"mes",relative:{0:"esti mes",1:"el mes viniente","-1":"el mes pasáu"},relativeTime:{future:{one:"En {0} mes",other:"En {0} meses"},past:{one:"Hai {0} mes",other:"Hai {0} meses"}}},day:{displayName:"día",relative:{0:"güei",1:"mañana",2:"pasao mañana","-1":"ayeri","-2":"antayeri"},relativeTime:{future:{one:"En {0} dia",other:"En {0} díes"},past:{one:"Hai {0} dia",other:"Hai {0} díes"}}},hour:{displayName:"hora",relativeTime:{future:{one:"En {0} hora",other:"En {0} hores"},past:{one:"Hai {0} hora",other:"Hai {0} hores"}}},minute:{displayName:"minutu",relativeTime:{future:{one:"En {0} minutu",other:"En {0} minutos"},past:{one:"Hai {0} minutu",other:"Hai {0} minutos"}}},second:{displayName:"segundu",relative:{0:"now"},relativeTime:{future:{one:"En {0} segundu",other:"En {0} segundos"},past:{one:"Hai {0} segundu",other:"Hai {0} segundos"}}}}}),ReactIntl.__addLocaleData({locale:"ast-ES",parentLocale:"ast"}),ReactIntl.__addLocaleData({locale:"az",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=d.slice(-1),f=d.slice(-2),g=d.slice(-3);return b?1==e||2==e||5==e||7==e||8==e||20==f||50==f||70==f||80==f?"one":3==e||4==e||100==g||200==g||300==g||400==g||500==g||600==g||700==g||800==g||900==g?"few":0==d||6==e||40==f||60==f||90==f?"many":"other":1==a?"one":"other"},fields:{year:{displayName:"İl",relative:{0:"bu il",1:"gələn il","-1":"keçən il"},relativeTime:{future:{one:"{0} il ərzində",other:"{0} il ərzində"},past:{one:"{0} il öncə",other:"{0} il öncə"}}},month:{displayName:"Ay",relative:{0:"bu ay",1:"gələn ay","-1":"keçən ay"},relativeTime:{future:{one:"{0} ay ərzində",other:"{0} ay ərzində"},past:{one:"{0} ay öncə",other:"{0} ay öncə"}}},day:{displayName:"Gün",relative:{0:"bu gün",1:"sabah","-1":"dünən"},relativeTime:{future:{one:"{0} gün ərzində",other:"{0} gün ərzində"},past:{one:"{0} gün öncə",other:"{0} gün öncə"}}},hour:{displayName:"Saat",relativeTime:{future:{one:"{0} saat ərzində",other:"{0} saat ərzində"},past:{one:"{0} saat öncə",other:"{0} saat öncə"}}},minute:{displayName:"Dəqiqə",relativeTime:{future:{one:"{0} dəqiqə ərzində",other:"{0} dəqiqə ərzində"},past:{one:"{0} dəqiqə öncə",other:"{0} dəqiqə öncə"}}},second:{displayName:"Saniyə",relative:{0:"indi"},relativeTime:{future:{one:"{0} saniyə ərzində",other:"{0} saniyə ərzində"},past:{one:"{0} saniyə öncə",other:"{0} saniyə öncə"}}}}}),ReactIntl.__addLocaleData({locale:"az-Cyrl",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"az-Cyrl-AZ",parentLocale:"az-Cyrl"}),ReactIntl.__addLocaleData({locale:"az-Latn",parentLocale:"az"}),ReactIntl.__addLocaleData({locale:"az-Latn-AZ",parentLocale:"az-Latn"}),ReactIntl.__addLocaleData({locale:"bas",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"ŋwìi",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"soŋ",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"kɛl",relative:{0:"lɛ̀n",1:"yàni","-1":"yààni"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"ŋgɛŋ",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"ŋget",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"hìŋgeŋget",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"bas-CM",parentLocale:"bas"}),ReactIntl.__addLocaleData({locale:"be",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=Number(c[0])==a,e=d&&c[0].slice(-1),f=d&&c[0].slice(-2);return b?"other":1==e&&11!=f?"one":e>=2&&4>=e&&(12>f||f>14)?"few":d&&0==e||e>=5&&9>=e||f>=11&&14>=f?"many":"other"},fields:{year:{displayName:"год",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"месяц",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"дзень",relative:{0:"сёння",1:"заўтра",2:"паслязаўтра","-1":"учора","-2":"пазаўчора"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"гадзіна",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"хвіліна",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"секунда",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"be-BY",parentLocale:"be"}),ReactIntl.__addLocaleData({locale:"bem",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Umwaka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Umweshi",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Ubushiku",relative:{0:"Lelo",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Insa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Mineti",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sekondi",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"bem-ZM",parentLocale:"bem"}),ReactIntl.__addLocaleData({locale:"bez",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Mwaha",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Mwedzi",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Sihu",relative:{0:"Neng’u ni",1:"Hilawu","-1":"Igolo"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Saa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Dakika",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sekunde",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"bez-TZ",parentLocale:"bez"}),ReactIntl.__addLocaleData({locale:"bg",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"година",relative:{0:"тази година",1:"следващата година","-1":"миналата година"},relativeTime:{future:{one:"след {0} година",other:"след {0} години"},past:{one:"преди {0} година",other:"преди {0} години"}}},month:{displayName:"месец",relative:{0:"този месец",1:"следващият месец","-1":"миналият месец"},relativeTime:{future:{one:"след {0} месец",other:"след {0} месеца"},past:{one:"преди {0} месец",other:"преди {0} месеца"}}},day:{displayName:"ден",relative:{0:"днес",1:"утре",2:"вдругиден","-1":"вчера","-2":"онзи ден"},relativeTime:{future:{one:"след {0} ден",other:"след {0} дни"},past:{one:"преди {0} ден",other:"преди {0} дни"}}},hour:{displayName:"час",relativeTime:{future:{one:"след {0} час",other:"след {0} часа"},past:{one:"преди {0} час",other:"преди {0} часа"}}},minute:{displayName:"минута",relativeTime:{future:{one:"след {0} минута",other:"след {0} минути"},past:{one:"преди {0} минута",other:"преди {0} минути"}}},second:{displayName:"секунда",relative:{0:"сега"},relativeTime:{future:{one:"след {0} секунда",other:"след {0} секунди"},past:{one:"преди {0} секунда",other:"преди {0} секунди"}}}}}),ReactIntl.__addLocaleData({locale:"bg-BG",parentLocale:"bg"}),ReactIntl.__addLocaleData({locale:"bh",pluralRuleFunction:function(a,b){return b?"other":0==a||1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"bm",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"san",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"kalo",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"don",relative:{0:"bi",1:"sini","-1":"kunu"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"lɛrɛ",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"miniti",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"sekondi",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"bm-Latn",parentLocale:"bm"}),ReactIntl.__addLocaleData({locale:"bm-Latn-ML",parentLocale:"bm-Latn"}),ReactIntl.__addLocaleData({locale:"bm-Nkoo",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"bn",pluralRuleFunction:function(a,b){return b?1==a||5==a||7==a||8==a||9==a||10==a?"one":2==a||3==a?"two":4==a?"few":6==a?"many":"other":a>=0&&1>=a?"one":"other"},fields:{year:{displayName:"বছর",relative:{0:"এই বছর",1:"পরের বছর","-1":"গত বছর"},relativeTime:{future:{one:"{0} বছরে",other:"{0} বছরে"},past:{one:"{0} বছর পূর্বে",other:"{0} বছর পূর্বে"}}},month:{displayName:"মাস",relative:{0:"এই মাস",1:"পরের মাস","-1":"গত মাস"},relativeTime:{future:{one:"{0} মাসে",other:"{0} মাসে"},past:{one:"{0} মাস পূর্বে",other:"{0} মাস পূর্বে"}}},day:{displayName:"দিন",relative:{0:"আজ",1:"আগামীকাল",2:"আগামী পরশু","-1":"গতকাল","-2":"গত পরশু"},relativeTime:{future:{one:"{0} দিনের মধ্যে",other:"{0} দিনের মধ্যে"},past:{one:"{0} দিন পূর্বে",other:"{0} দিন পূর্বে"}}},hour:{displayName:"ঘন্টা",relativeTime:{future:{one:"{0} ঘন্টায়",other:"{0} ঘন্টায়"},past:{one:"{0} ঘন্টা আগে",other:"{0} ঘন্টা আগে"}}},minute:{displayName:"মিনিট",relativeTime:{future:{one:"{0} মিনিটে",other:"{0} মিনিটে"},past:{one:"{0} মিনিট পূর্বে",other:"{0} মিনিট পূর্বে"}}},second:{displayName:"সেকেন্ড",relative:{0:"এখন"},relativeTime:{future:{one:"{0} সেকেন্ডে",other:"{0} সেকেন্ডে"},past:{one:"{0} সেকেন্ড পূর্বে",other:"{0} সেকেন্ড পূর্বে"}}}}}),ReactIntl.__addLocaleData({locale:"bn-BD",parentLocale:"bn"}),ReactIntl.__addLocaleData({locale:"bn-IN",parentLocale:"bn"}),ReactIntl.__addLocaleData({locale:"bo",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"ལོ།",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"ཟླ་བ་",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"ཉིན།",relative:{0:"དེ་རིང་",1:"སང་ཉིན་",2:"གནངས་ཉིན་ཀ་","-1":"ཁས་ས་","-2":"ཁས་ཉིན་ཀ་"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"ཆུ་ཙོ་",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"སྐར་མ།",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"སྐར་ཆ།",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"bo-CN",parentLocale:"bo"}),ReactIntl.__addLocaleData({locale:"bo-IN",parentLocale:"bo"}),ReactIntl.__addLocaleData({locale:"br",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=Number(c[0])==a,e=d&&c[0].slice(-1),f=d&&c[0].slice(-2),g=d&&c[0].slice(-6);return b?"other":1==e&&11!=f&&71!=f&&91!=f?"one":2==e&&12!=f&&72!=f&&92!=f?"two":(3==e||4==e||9==e)&&(10>f||f>19)&&(70>f||f>79)&&(90>f||f>99)?"few":0!=a&&d&&0==g?"many":"other"},fields:{year:{displayName:"bloaz",relative:{0:"this year",1:"next year","-1":"warlene"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"miz",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"deiz",relative:{0:"hiziv",1:"warcʼhoazh","-1":"decʼh","-2":"dercʼhent-decʼh"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"eur",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"munut",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"eilenn",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"br-FR",parentLocale:"br"}),ReactIntl.__addLocaleData({locale:"brx",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"बोसोर",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"दान",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"सान",relative:{0:"दिनै",1:"गाबोन","-1":"मैया"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"रिंगा",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"मिनिथ",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"सेखेन्द",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"brx-IN",parentLocale:"brx"}),ReactIntl.__addLocaleData({locale:"bs",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=c[1]||"",f=!c[1],g=d.slice(-1),h=d.slice(-2),i=e.slice(-1),j=e.slice(-2);return b?"other":f&&1==g&&11!=h||1==i&&11!=j?"one":f&&g>=2&&4>=g&&(12>h||h>14)||i>=2&&4>=i&&(12>j||j>14)?"few":"other"},fields:{year:{displayName:"godina",relative:{0:"ove godine",1:"sljedeće godine","-1":"prošle godine"},relativeTime:{future:{one:"za {0} godinu",few:"za {0} godine",other:"za {0} godina"},past:{one:"prije {0} godinu",few:"prije {0} godine",other:"prije {0} godina"}}},month:{displayName:"mjesec",relative:{0:"ovaj mjesec",1:"sljedeći mjesec","-1":"prošli mjesec"},relativeTime:{future:{one:"za {0} mjesec",few:"za {0} mjeseca",other:"za {0} mjeseci"},past:{one:"prije {0} mjesec",few:"prije {0} mjeseca",other:"prije {0} mjeseci"}}},day:{displayName:"dan",relative:{0:"danas",1:"sutra",2:"prekosutra","-1":"juče","-2":"prekjuče"},relativeTime:{future:{one:"za {0} dan",few:"za {0} dana",other:"za {0} dana"},past:{one:"prije {0} dan",few:"prije {0} dana",other:"prije {0} dana"}}},hour:{displayName:"sat",relativeTime:{future:{one:"za {0} sat",few:"za {0} sata",other:"za {0} sati"},past:{one:"prije {0} sat",few:"prije {0} sata",other:"prije {0} sati"}}},minute:{displayName:"minut",relativeTime:{future:{one:"za {0} minutu",few:"za {0} minute",other:"za {0} minuta"},past:{one:"prije {0} minutu",few:"prije {0} minute",other:"prije {0} minuta"}}},second:{displayName:"sekund",relative:{0:"sada"},relativeTime:{future:{one:"za {0} sekundu",few:"za {0} sekunde",other:"za {0} sekundi"},past:{one:"prije {0} sekundu",few:"prije {0} sekunde",other:"prije {0} sekundi"}}}}}),ReactIntl.__addLocaleData({locale:"bs-Cyrl",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"година",relative:{0:"Ове године",1:"Следеће године","-1":"Прошле године"},relativeTime:{future:{one:"за {0} годину",few:"за {0} године",other:"за {0} година"},past:{one:"пре {0} годину",few:"пре {0} године",other:"пре {0} година"}}},month:{displayName:"месец",relative:{0:"Овог месеца",1:"Следећег месеца","-1":"Прошлог месеца"},relativeTime:{future:{one:"за {0} месец",few:"за {0} месеца",other:"за {0} месеци"},past:{one:"пре {0} месец",few:"пре {0} месеца",other:"пре {0} месеци"}}},day:{displayName:"дан",relative:{0:"данас",1:"сутра",2:"прекосутра","-1":"јуче","-2":"прекјуче"},relativeTime:{future:{one:"за {0} дан",few:"за {0} дана",other:"за {0} дана"},past:{one:"пре {0} дан",few:"пре {0} дана",other:"пре {0} дана"}}},hour:{displayName:"час",relativeTime:{future:{one:"за {0} сат",few:"за {0} сата",other:"за {0} сати"},past:{one:"пре {0} сат",few:"пре {0} сата",other:"пре {0} сати"}}},minute:{displayName:"минут",relativeTime:{future:{one:"за {0} минут",few:"за {0} минута",other:"за {0} минута"},past:{one:"пре {0} минут",few:"пре {0} минута",other:"пре {0} минута"}}},second:{displayName:"секунд",relative:{0:"now"},relativeTime:{future:{one:"за {0} секунд",few:"за {0} секунде",other:"за {0} секунди"},past:{one:"пре {0} секунд",few:"пре {0} секунде",other:"пре {0} секунди"}}}}}),ReactIntl.__addLocaleData({locale:"bs-Cyrl-BA",parentLocale:"bs-Cyrl"}),ReactIntl.__addLocaleData({locale:"bs-Latn",parentLocale:"bs"}),ReactIntl.__addLocaleData({locale:"bs-Latn-BA",parentLocale:"bs-Latn"}),ReactIntl.__addLocaleData({locale:"ca",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1];return b?1==a||3==a?"one":2==a?"two":4==a?"few":"other":1==a&&d?"one":"other"},fields:{year:{displayName:"any",relative:{0:"enguany",1:"l’any que ve","-1":"l’any passat"},relativeTime:{future:{one:"d’aquí a {0} any",other:"d’aquí a {0} anys"},past:{one:"fa {0} any",other:"fa {0} anys"}}},month:{displayName:"mes",relative:{0:"aquest mes",1:"el mes que ve","-1":"el mes passat"},relativeTime:{future:{one:"d’aquí a {0} mes",other:"d’aquí a {0} mesos"},past:{one:"fa {0} mes",other:"fa {0} mesos"}}},day:{displayName:"dia",relative:{0:"avui",1:"demà",2:"demà passat","-1":"ahir","-2":"abans-d’ahir"},relativeTime:{future:{one:"d’aquí a {0} dia",other:"d’aquí a {0} dies"},past:{one:"fa {0} dia",other:"fa {0} dies"}}},hour:{displayName:"hora",relativeTime:{future:{one:"d’aquí a {0} hora",other:"d’aquí {0} hores"},past:{one:"fa {0} hora",other:"fa {0} hores"}}},minute:{displayName:"minut",relativeTime:{future:{one:"d’aquí a {0} minut",other:"d’aquí a {0} minuts"},past:{one:"fa {0} minut",other:"fa {0} minuts"}}},second:{displayName:"segon",relative:{0:"ara"},relativeTime:{future:{one:"d’aquí a {0} segon",other:"d’aquí a {0} segons"},past:{one:"fa {0} segon",other:"fa {0} segons"}}}}}),ReactIntl.__addLocaleData({locale:"ca-AD",parentLocale:"ca"}),ReactIntl.__addLocaleData({locale:"ca-ES",parentLocale:"ca"}),ReactIntl.__addLocaleData({locale:"ca-ES-VALENCIA",parentLocale:"ca-ES"}),ReactIntl.__addLocaleData({locale:"ca-FR",parentLocale:"ca"}),ReactIntl.__addLocaleData({locale:"ca-IT",parentLocale:"ca"}),ReactIntl.__addLocaleData({
locale:"cgg",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Omwaka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Omwezi",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Eizooba",relative:{0:"Erizooba",1:"Nyenkyakare","-1":"Nyomwabazyo"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Shaaha",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Edakiika",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Obucweka/Esekendi",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"cgg-UG",parentLocale:"cgg"}),ReactIntl.__addLocaleData({locale:"chr",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"ᏑᏕᏘᏴᏓ",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"ᏏᏅᏓ",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"ᏏᎦ",relative:{0:"ᎪᎯ ᎢᎦ",1:"ᏌᎾᎴᎢ","-1":"ᏒᎯ"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"ᏑᏣᎶᏓ",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"ᎢᏯᏔᏬᏍᏔᏅ",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"ᎠᏎᏢ",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"chr-US",parentLocale:"chr"}),ReactIntl.__addLocaleData({locale:"ckb",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"cs",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=!c[1];return b?"other":1==a&&e?"one":d>=2&&4>=d&&e?"few":e?"other":"many"},fields:{year:{displayName:"Rok",relative:{0:"tento rok",1:"příští rok","-1":"minulý rok"},relativeTime:{future:{one:"za {0} rok",few:"za {0} roky",many:"za {0} roku",other:"za {0} let"},past:{one:"před {0} rokem",few:"před {0} lety",many:"před {0} rokem",other:"před {0} lety"}}},month:{displayName:"Měsíc",relative:{0:"tento měsíc",1:"příští měsíc","-1":"minulý měsíc"},relativeTime:{future:{one:"za {0} měsíc",few:"za {0} měsíce",many:"za {0} měsíce",other:"za {0} měsíců"},past:{one:"před {0} měsícem",few:"před {0} měsíci",many:"před {0} měsícem",other:"před {0} měsíci"}}},day:{displayName:"Den",relative:{0:"dnes",1:"zítra",2:"pozítří","-1":"včera","-2":"předevčírem"},relativeTime:{future:{one:"za {0} den",few:"za {0} dny",many:"za {0} dne",other:"za {0} dní"},past:{one:"před {0} dnem",few:"před {0} dny",many:"před {0} dnem",other:"před {0} dny"}}},hour:{displayName:"Hodina",relativeTime:{future:{one:"za {0} hodinu",few:"za {0} hodiny",many:"za {0} hodiny",other:"za {0} hodin"},past:{one:"před {0} hodinou",few:"před {0} hodinami",many:"před {0} hodinou",other:"před {0} hodinami"}}},minute:{displayName:"Minuta",relativeTime:{future:{one:"za {0} minutu",few:"za {0} minuty",many:"za {0} minuty",other:"za {0} minut"},past:{one:"před {0} minutou",few:"před {0} minutami",many:"před {0} minutou",other:"před {0} minutami"}}},second:{displayName:"Sekunda",relative:{0:"nyní"},relativeTime:{future:{one:"za {0} sekundu",few:"za {0} sekundy",many:"za {0} sekundy",other:"za {0} sekund"},past:{one:"před {0} sekundou",few:"před {0} sekundami",many:"před {0} sekundou",other:"před {0} sekundami"}}}}}),ReactIntl.__addLocaleData({locale:"cs-CZ",parentLocale:"cs"}),ReactIntl.__addLocaleData({locale:"cy",pluralRuleFunction:function(a,b){return b?0==a||7==a||8==a||9==a?"zero":1==a?"one":2==a?"two":3==a||4==a?"few":5==a||6==a?"many":"other":0==a?"zero":1==a?"one":2==a?"two":3==a?"few":6==a?"many":"other"},fields:{year:{displayName:"Blwyddyn",relative:{0:"eleni",1:"blwyddyn nesaf","-1":"llynedd"},relativeTime:{future:{zero:"Ymhen {0} mlynedd",one:"Ymhen blwyddyn",two:"Ymhen {0} flynedd",few:"Ymhen {0} blynedd",many:"Ymhen {0} blynedd",other:"Ymhen {0} mlynedd"},past:{zero:"{0} o flynyddoedd yn ôl",one:"blwyddyn yn ôl",two:"{0} flynedd yn ôl",few:"{0} blynedd yn ôl",many:"{0} blynedd yn ôl",other:"{0} o flynyddoedd yn ôl"}}},month:{displayName:"Mis",relative:{0:"y mis hwn",1:"mis nesaf","-1":"mis diwethaf"},relativeTime:{future:{zero:"Ymhen {0} mis",one:"Ymhen mis",two:"Ymhen deufis",few:"Ymhen {0} mis",many:"Ymhen {0} mis",other:"Ymhen {0} mis"},past:{zero:"{0} mis yn ôl",one:"{0} mis yn ôl",two:"{0} fis yn ôl",few:"{0} mis yn ôl",many:"{0} mis yn ôl",other:"{0} mis yn ôl"}}},day:{displayName:"Dydd",relative:{0:"heddiw",1:"yfory",2:"drennydd","-1":"ddoe","-2":"echdoe"},relativeTime:{future:{zero:"Ymhen {0} diwrnod",one:"Ymhen diwrnod",two:"Ymhen deuddydd",few:"Ymhen tridiau",many:"Ymhen {0} diwrnod",other:"Ymhen {0} diwrnod"},past:{zero:"{0} diwrnod yn ôl",one:"{0} diwrnod yn ôl",two:"{0} ddiwrnod yn ôl",few:"{0} diwrnod yn ôl",many:"{0} diwrnod yn ôl",other:"{0} diwrnod yn ôl"}}},hour:{displayName:"Awr",relativeTime:{future:{zero:"Ymhen {0} awr",one:"Ymhen {0} awr",two:"Ymhen {0} awr",few:"Ymhen {0} awr",many:"Ymhen {0} awr",other:"Ymhen {0} awr"},past:{zero:"{0} awr yn ôl",one:"awr yn ôl",two:"{0} awr yn ôl",few:"{0} awr yn ôl",many:"{0} awr yn ôl",other:"{0} awr yn ôl"}}},minute:{displayName:"Munud",relativeTime:{future:{zero:"Ymhen {0} munud",one:"Ymhen munud",two:"Ymhen {0} funud",few:"Ymhen {0} munud",many:"Ymhen {0} munud",other:"Ymhen {0} munud"},past:{zero:"{0} munud yn ôl",one:"{0} munud yn ôl",two:"{0} funud yn ôl",few:"{0} munud yn ôl",many:"{0} munud yn ôl",other:"{0} munud yn ôl"}}},second:{displayName:"Eiliad",relative:{0:"nawr"},relativeTime:{future:{zero:"Ymhen {0} eiliad",one:"Ymhen eiliad",two:"Ymhen {0} eiliad",few:"Ymhen {0} eiliad",many:"Ymhen {0} eiliad",other:"Ymhen {0} eiliad"},past:{zero:"{0} eiliad yn ôl",one:"eiliad yn ôl",two:"{0} eiliad yn ôl",few:"{0} eiliad yn ôl",many:"{0} eiliad yn ôl",other:"{0} eiliad yn ôl"}}}}}),ReactIntl.__addLocaleData({locale:"cy-GB",parentLocale:"cy"}),ReactIntl.__addLocaleData({locale:"da",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=Number(c[0])==a;return b?"other":1!=a&&(e||0!=d&&1!=d)?"other":"one"},fields:{year:{displayName:"År",relative:{0:"i år",1:"næste år","-1":"sidste år"},relativeTime:{future:{one:"om {0} år",other:"om {0} år"},past:{one:"for {0} år siden",other:"for {0} år siden"}}},month:{displayName:"Måned",relative:{0:"denne måned",1:"næste måned","-1":"sidste måned"},relativeTime:{future:{one:"om {0} måned",other:"om {0} måneder"},past:{one:"for {0} måned siden",other:"for {0} måneder siden"}}},day:{displayName:"Dag",relative:{0:"i dag",1:"i morgen",2:"i overmorgen","-1":"i går","-2":"i forgårs"},relativeTime:{future:{one:"om {0} dag",other:"om {0} dage"},past:{one:"for {0} dag siden",other:"for {0} dage siden"}}},hour:{displayName:"Time",relativeTime:{future:{one:"om {0} time",other:"om {0} timer"},past:{one:"for {0} time siden",other:"for {0} timer siden"}}},minute:{displayName:"Minut",relativeTime:{future:{one:"om {0} minut",other:"om {0} minutter"},past:{one:"for {0} minut siden",other:"for {0} minutter siden"}}},second:{displayName:"Sekund",relative:{0:"nu"},relativeTime:{future:{one:"om {0} sekund",other:"om {0} sekunder"},past:{one:"for {0} sekund siden",other:"for {0} sekunder siden"}}}}}),ReactIntl.__addLocaleData({locale:"da-DK",parentLocale:"da"}),ReactIntl.__addLocaleData({locale:"da-GL",parentLocale:"da"}),ReactIntl.__addLocaleData({locale:"dav",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Mwaka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Mori",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Ituku",relative:{0:"Idime",1:"Kesho","-1":"Iguo"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Saa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Dakika",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sekunde",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"dav-KE",parentLocale:"dav"}),ReactIntl.__addLocaleData({locale:"de",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1];return b?"other":1==a&&d?"one":"other"},fields:{year:{displayName:"Jahr",relative:{0:"dieses Jahr",1:"nächstes Jahr","-1":"letztes Jahr"},relativeTime:{future:{one:"in {0} Jahr",other:"in {0} Jahren"},past:{one:"vor {0} Jahr",other:"vor {0} Jahren"}}},month:{displayName:"Monat",relative:{0:"diesen Monat",1:"nächsten Monat","-1":"letzten Monat"},relativeTime:{future:{one:"in {0} Monat",other:"in {0} Monaten"},past:{one:"vor {0} Monat",other:"vor {0} Monaten"}}},day:{displayName:"Tag",relative:{0:"heute",1:"morgen",2:"übermorgen","-1":"gestern","-2":"vorgestern"},relativeTime:{future:{one:"in {0} Tag",other:"in {0} Tagen"},past:{one:"vor {0} Tag",other:"vor {0} Tagen"}}},hour:{displayName:"Stunde",relativeTime:{future:{one:"in {0} Stunde",other:"in {0} Stunden"},past:{one:"vor {0} Stunde",other:"vor {0} Stunden"}}},minute:{displayName:"Minute",relativeTime:{future:{one:"in {0} Minute",other:"in {0} Minuten"},past:{one:"vor {0} Minute",other:"vor {0} Minuten"}}},second:{displayName:"Sekunde",relative:{0:"jetzt"},relativeTime:{future:{one:"in {0} Sekunde",other:"in {0} Sekunden"},past:{one:"vor {0} Sekunde",other:"vor {0} Sekunden"}}}}}),ReactIntl.__addLocaleData({locale:"de-AT",parentLocale:"de"}),ReactIntl.__addLocaleData({locale:"de-BE",parentLocale:"de"}),ReactIntl.__addLocaleData({locale:"de-CH",parentLocale:"de"}),ReactIntl.__addLocaleData({locale:"de-DE",parentLocale:"de"}),ReactIntl.__addLocaleData({locale:"de-LI",parentLocale:"de"}),ReactIntl.__addLocaleData({locale:"de-LU",parentLocale:"de"}),ReactIntl.__addLocaleData({locale:"dje",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Jiiri",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Handu",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Zaari",relative:{0:"Hõo",1:"Suba","-1":"Bi"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Guuru",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Miniti",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Miti",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"dje-NE",parentLocale:"dje"}),ReactIntl.__addLocaleData({locale:"dsb",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=c[1]||"",f=!c[1],g=d.slice(-2),h=e.slice(-2);return b?"other":f&&1==g||1==h?"one":f&&2==g||2==h?"two":f&&(3==g||4==g)||3==h||4==h?"few":"other"},fields:{year:{displayName:"lěto",relative:{0:"lětosa",1:"znowa","-1":"łoni"},relativeTime:{future:{one:"za {0} lěto",two:"za {0} lěśe",few:"za {0} lěta",other:"za {0} lět"},past:{one:"pśed {0} lětom",two:"pśed {0} lětoma",few:"pśed {0} lětami",other:"pśed {0} lětami"}}},month:{displayName:"mjasec",relative:{0:"ten mjasec",1:"pśiducy mjasec","-1":"slědny mjasec"},relativeTime:{future:{one:"za {0} mjasec",two:"za {0} mjaseca",few:"za {0} mjasecy",other:"za {0} mjasecow"},past:{one:"pśed {0} mjasecom",two:"pśed {0} mjasecoma",few:"pśed {0} mjasecami",other:"pśed {0} mjasecami"}}},day:{displayName:"źeń",relative:{0:"źinsa",1:"witśe","-1":"cora"},relativeTime:{future:{one:"za {0} źeń",two:"za {0} dnja",few:"za {0} dny",other:"za {0} dnjow"},past:{one:"pśed {0} dnjom",two:"pśed {0} dnjoma",few:"pśed {0} dnjami",other:"pśed {0} dnjami"}}},hour:{displayName:"góźina",relativeTime:{future:{one:"za {0} góźinu",two:"za {0} góźinje",few:"za {0} góźiny",other:"za {0} góźin"},past:{one:"pśed {0} góźinu",two:"pśed {0} góźinoma",few:"pśed {0} góźinami",other:"pśed {0} góźinami"}}},minute:{displayName:"minuta",relativeTime:{future:{one:"za {0} minutu",two:"za {0} minuśe",few:"za {0} minuty",other:"za {0} minutow"},past:{one:"pśed {0} minutu",two:"pśed {0} minutoma",few:"pśed {0} minutami",other:"pśed {0} minutami"}}},second:{displayName:"sekunda",relative:{0:"now"},relativeTime:{future:{one:"za {0} sekundu",two:"za {0} sekunźe",few:"za {0} sekundy",other:"za {0} sekundow"},past:{one:"pśed {0} sekundu",two:"pśed {0} sekundoma",few:"pśed {0} sekundami",other:"pśed {0} sekundami"}}}}}),ReactIntl.__addLocaleData({locale:"dsb-DE",parentLocale:"dsb"}),ReactIntl.__addLocaleData({locale:"dua",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"mbú",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"mɔ́di",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"búnyá",relative:{0:"wɛ́ŋgɛ̄",1:"kíɛlɛ","-1":"kíɛlɛ nítómb́í"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"ŋgandɛ",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"ndɔkɔ",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"píndí",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"dua-CM",parentLocale:"dua"}),ReactIntl.__addLocaleData({locale:"dv",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"dyo",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Emit",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Fuleeŋ",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Funak",relative:{0:"Jaat",1:"Kajom","-1":"Fucen"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"dyo-SN",parentLocale:"dyo"}),ReactIntl.__addLocaleData({locale:"dz",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"ལོ",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"ལོ་འཁོར་ {0} ནང་"},past:{other:"ལོ་འཁོར་ {0} ཧེ་མ་"}}},month:{displayName:"ཟླ་ཝ་",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"ཟླཝ་ {0} ནང་"},past:{other:"ཟླཝ་ {0} ཧེ་མ་"}}},day:{displayName:"ཚེས་",relative:{0:"ད་རིས་",1:"ནངས་པ་",2:"གནངས་ཚེ","-1":"ཁ་ཙ་","-2":"ཁ་ཉིམ"},relativeTime:{future:{other:"ཉིནམ་ {0} ནང་"},past:{other:"ཉིནམ་ {0} ཧེ་མ་"}}},hour:{displayName:"ཆུ་ཚོད",relativeTime:{future:{other:"ཆུ་ཚོད་ {0} ནང་"},past:{other:"ཆུ་ཚོད་ {0} ཧེ་མ་"}}},minute:{displayName:"སྐར་མ",relativeTime:{future:{other:"སྐར་མ་ {0} ནང་"},past:{other:"སྐར་མ་ {0} ཧེ་མ་"}}},second:{displayName:"སྐར་ཆཱ་",relative:{0:"now"},relativeTime:{future:{other:"སྐར་ཆ་ {0} ནང་"},past:{other:"སྐར་ཆ་ {0} ཧེ་མ་"}}}}}),ReactIntl.__addLocaleData({locale:"dz-BT",parentLocale:"dz"}),ReactIntl.__addLocaleData({locale:"ebu",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Mwaka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Mweri",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Mũthenya",relative:{0:"Ũmũnthĩ",1:"Rũciũ","-1":"Ĩgoro"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Ithaa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Ndagĩka",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sekondi",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ebu-KE",parentLocale:"ebu"}),ReactIntl.__addLocaleData({locale:"ee",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"ƒe",relative:{0:"ƒe sia",1:"ƒe si gbɔ na","-1":"ƒe si va yi"},relativeTime:{future:{one:"le ƒe {0} me",other:"le ƒe {0} wo me"},past:{one:"ƒe {0} si va yi",other:"ƒe {0} si wo va yi"}}},month:{displayName:"ɣleti",relative:{0:"ɣleti sia",1:"ɣleti si gbɔ na","-1":"ɣleti si va yi"},relativeTime:{future:{one:"le ɣleti {0} me",other:"le ɣleti {0} wo me"},past:{one:"ɣleti {0} si va yi",other:"ɣleti {0} si wo va yi"}}},day:{displayName:"ŋkeke",relative:{0:"egbe",1:"etsɔ si gbɔna",2:"nyitsɔ si gbɔna","-1":"etsɔ si va yi","-2":"nyitsɔ si va yi"},relativeTime:{future:{one:"le ŋkeke {0} me",other:"le ŋkeke {0} wo me"},past:{one:"ŋkeke {0} si va yi",other:"ŋkeke {0} si wo va yi"}}},hour:{displayName:"gaƒoƒo",relativeTime:{future:{one:"le gaƒoƒo {0} me",other:"le gaƒoƒo {0} wo me"},past:{one:"gaƒoƒo {0} si va yi",other:"gaƒoƒo {0} si wo va yi"}}},minute:{displayName:"aɖabaƒoƒo",relativeTime:{future:{one:"le aɖabaƒoƒo {0} me",other:"le aɖabaƒoƒo {0} wo me"},past:{one:"aɖabaƒoƒo {0} si va yi",other:"aɖabaƒoƒo {0} si wo va yi"}}},second:{displayName:"sekend",relative:{0:"fifi"},relativeTime:{future:{one:"le sekend {0} me",other:"le sekend {0} wo me"},past:{one:"sekend {0} si va yi",other:"sekend {0} si wo va yi"}}}}}),ReactIntl.__addLocaleData({locale:"ee-GH",parentLocale:"ee"}),ReactIntl.__addLocaleData({locale:"ee-TG",parentLocale:"ee"}),ReactIntl.__addLocaleData({locale:"el",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Έτος",relative:{0:"φέτος",1:"επόμενο έτος","-1":"προηγούμενο έτος"},relativeTime:{future:{one:"σε {0} έτος",other:"σε {0} έτη"},past:{one:"πριν από {0} έτος",other:"πριν από {0} έτη"}}},month:{displayName:"Μήνας",relative:{0:"τρέχων μήνας",1:"επόμενος μήνας","-1":"προηγούμενος μήνας"},relativeTime:{future:{one:"σε {0} μήνα",other:"σε {0} μήνες"},past:{one:"πριν από {0} μήνα",other:"πριν από {0} μήνες"}}},day:{displayName:"Ημέρα",relative:{0:"σήμερα",1:"αύριο",2:"μεθαύριο","-1":"χθες","-2":"προχθές"},relativeTime:{future:{one:"σε {0} ημέρα",other:"σε {0} ημέρες"},past:{one:"πριν από {0} ημέρα",other:"πριν από {0} ημέρες"}}},hour:{displayName:"Ώρα",relativeTime:{future:{one:"σε {0} ώρα",other:"σε {0} ώρες"},past:{one:"πριν από {0} ώρα",other:"πριν από {0} ώρες"}}},minute:{displayName:"Λεπτό",relativeTime:{future:{one:"σε {0} λεπτό",other:"σε {0} λεπτά"},past:{one:"πριν από {0} λεπτό",other:"πριν από {0} λεπτά"}}},second:{displayName:"Δευτερόλεπτο",relative:{0:"τώρα"},relativeTime:{future:{one:"σε {0} δευτερόλεπτο",other:"σε {0} δευτερόλεπτα"},past:{one:"πριν από {0} δευτερόλεπτο",other:"πριν από {0} δευτερόλεπτα"}}}}}),ReactIntl.__addLocaleData({locale:"el-CY",parentLocale:"el"}),ReactIntl.__addLocaleData({locale:"el-GR",parentLocale:"el"}),ReactIntl.__addLocaleData({locale:"en",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1],e=Number(c[0])==a,f=e&&c[0].slice(-1),g=e&&c[0].slice(-2);return b?1==f&&11!=g?"one":2==f&&12!=g?"two":3==f&&13!=g?"few":"other":1==a&&d?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"Hour",relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},minute:{displayName:"Minute",relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}}}}),ReactIntl.__addLocaleData({locale:"en-001",parentLocale:"en"}),ReactIntl.__addLocaleData({locale:"en-150",parentLocale:"en-GB"}),ReactIntl.__addLocaleData({locale:"en-GB",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-AG",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-AI",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-AS",parentLocale:"en"}),ReactIntl.__addLocaleData({locale:"en-AU",parentLocale:"en-GB",fields:{year:{displayName:"Year",relative:{0:"This year",1:"Next year","-1":"Last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},month:{displayName:"Month",relative:{0:"This month",1:"Next month","-1":"Last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"Hour",relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},minute:{displayName:"Minute",relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}}}}),ReactIntl.__addLocaleData({locale:"en-BB",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-BE",parentLocale:"en-GB"}),ReactIntl.__addLocaleData({locale:"en-BM",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-BS",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-BW",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-BZ",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-CA",parentLocale:"en"}),ReactIntl.__addLocaleData({locale:"en-CC",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-CK",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-CM",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-CX",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-DG",parentLocale:"en-GB"}),ReactIntl.__addLocaleData({locale:"en-DM",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-Dsrt",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"en-ER",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-FJ",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-FK",parentLocale:"en-GB"}),ReactIntl.__addLocaleData({locale:"en-FM",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-GD",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-GG",parentLocale:"en-GB"}),ReactIntl.__addLocaleData({locale:"en-GH",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-GI",parentLocale:"en-GB"}),ReactIntl.__addLocaleData({locale:"en-GM",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-GU",parentLocale:"en"}),ReactIntl.__addLocaleData({locale:"en-GY",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-HK",parentLocale:"en-GB"}),ReactIntl.__addLocaleData({locale:"en-IE",parentLocale:"en-GB"}),ReactIntl.__addLocaleData({locale:"en-IM",parentLocale:"en-GB"}),ReactIntl.__addLocaleData({locale:"en-IN",parentLocale:"en-GB"}),ReactIntl.__addLocaleData({locale:"en-IO",parentLocale:"en-GB"}),ReactIntl.__addLocaleData({locale:"en-JE",parentLocale:"en-GB"}),ReactIntl.__addLocaleData({locale:"en-JM",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-KE",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-KI",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-KN",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-KY",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-LC",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-LR",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-LS",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-MG",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-MH",parentLocale:"en"}),ReactIntl.__addLocaleData({locale:"en-MO",parentLocale:"en-GB"}),ReactIntl.__addLocaleData({locale:"en-MP",parentLocale:"en"}),ReactIntl.__addLocaleData({locale:"en-MS",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-MT",parentLocale:"en-GB"}),ReactIntl.__addLocaleData({locale:"en-MU",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-MW",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-MY",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-NA",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-NF",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-NG",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-NR",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-NU",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-NZ",parentLocale:"en-GB"}),ReactIntl.__addLocaleData({locale:"en-PG",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-PH",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-PK",parentLocale:"en-GB"}),ReactIntl.__addLocaleData({locale:"en-PN",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-PR",parentLocale:"en"}),ReactIntl.__addLocaleData({locale:"en-PW",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-RW",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-SB",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-SC",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-SD",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-SG",parentLocale:"en-GB"}),ReactIntl.__addLocaleData({locale:"en-SH",parentLocale:"en-GB"}),ReactIntl.__addLocaleData({locale:"en-SL",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-SS",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-SX",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-SZ",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-TC",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-TK",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-TO",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-TT",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-TV",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-TZ",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-UG",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-UM",parentLocale:"en"}),ReactIntl.__addLocaleData({locale:"en-US",parentLocale:"en"}),ReactIntl.__addLocaleData({locale:"en-US-POSIX",parentLocale:"en-US"}),ReactIntl.__addLocaleData({locale:"en-VC",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-VG",parentLocale:"en-GB"}),ReactIntl.__addLocaleData({locale:"en-VI",parentLocale:"en"}),ReactIntl.__addLocaleData({locale:"en-VU",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-WS",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-ZA",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-ZM",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"en-ZW",parentLocale:"en-001"}),ReactIntl.__addLocaleData({locale:"eo",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"jaro",relative:{0:"nuna jaro",1:"venonta jaro","-1":"pasinta jaro"},relativeTime:{future:{one:"post {0} jaro",other:"post {0} jaroj"},past:{one:"antaŭ {0} jaro",other:"antaŭ {0} jaroj"}}},month:{displayName:"monato",relative:{0:"nuna monato",1:"venonta monato","-1":"pasinta monato"},relativeTime:{future:{one:"post {0} monato",other:"post {0} monatoj"},past:{one:"antaŭ {0} monato",other:"antaŭ {0} monatoj"}}},day:{displayName:"tago",relative:{0:"hodiaŭ",1:"morgaŭ","-1":"hieraŭ"},relativeTime:{future:{one:"post {0} tago",other:"post {0} tagoj"},past:{one:"antaŭ {0} tago",other:"antaŭ {0} tagoj"}}},hour:{displayName:"horo",relativeTime:{future:{one:"post {0} horo",other:"post {0} horoj"},past:{one:"antaŭ {0} horo",other:"antaŭ {0} horoj"}}},minute:{displayName:"minuto",relativeTime:{future:{one:"post {0} minuto",other:"post {0} minutoj"},past:{one:"antaŭ {0} minuto",other:"antaŭ {0} minutoj"}}},second:{displayName:"sekundo",relative:{0:"now"},relativeTime:{future:{one:"post {0} sekundo",other:"post {0} sekundoj"},past:{one:"antaŭ {0} sekundo",other:"antaŭ {0} sekundoj"}}}}}),ReactIntl.__addLocaleData({locale:"eo-001",parentLocale:"eo"}),ReactIntl.__addLocaleData({locale:"es",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Año",relative:{0:"este año",1:"el próximo año","-1":"el año pasado"},relativeTime:{future:{one:"dentro de {0} año",other:"dentro de {0} años"},past:{one:"hace {0} año",other:"hace {0} años"}}},
month:{displayName:"Mes",relative:{0:"este mes",1:"el próximo mes","-1":"el mes pasado"},relativeTime:{future:{one:"dentro de {0} mes",other:"dentro de {0} meses"},past:{one:"hace {0} mes",other:"hace {0} meses"}}},day:{displayName:"Día",relative:{0:"hoy",1:"mañana",2:"pasado mañana","-1":"ayer","-2":"antes de ayer"},relativeTime:{future:{one:"dentro de {0} día",other:"dentro de {0} días"},past:{one:"hace {0} día",other:"hace {0} días"}}},hour:{displayName:"Hora",relativeTime:{future:{one:"dentro de {0} hora",other:"dentro de {0} horas"},past:{one:"hace {0} hora",other:"hace {0} horas"}}},minute:{displayName:"Minuto",relativeTime:{future:{one:"dentro de {0} minuto",other:"dentro de {0} minutos"},past:{one:"hace {0} minuto",other:"hace {0} minutos"}}},second:{displayName:"Segundo",relative:{0:"ahora"},relativeTime:{future:{one:"dentro de {0} segundo",other:"dentro de {0} segundos"},past:{one:"hace {0} segundo",other:"hace {0} segundos"}}}}}),ReactIntl.__addLocaleData({locale:"es-419",parentLocale:"es",fields:{year:{displayName:"Año",relative:{0:"Este año",1:"Año próximo","-1":"Año pasado"},relativeTime:{future:{one:"En {0} año",other:"En {0} años"},past:{one:"hace {0} año",other:"hace {0} años"}}},month:{displayName:"Mes",relative:{0:"Este mes",1:"Mes próximo","-1":"El mes pasado"},relativeTime:{future:{one:"En {0} mes",other:"En {0} meses"},past:{one:"hace {0} mes",other:"hace {0} meses"}}},day:{displayName:"Día",relative:{0:"hoy",1:"mañana",2:"pasado mañana","-1":"ayer","-2":"antes de ayer"},relativeTime:{future:{one:"En {0} día",other:"En {0} días"},past:{one:"hace {0} día",other:"hace {0} días"}}},hour:{displayName:"Hora",relativeTime:{future:{one:"En {0} hora",other:"En {0} horas"},past:{one:"hace {0} hora",other:"hace {0} horas"}}},minute:{displayName:"Minuto",relativeTime:{future:{one:"En {0} minuto",other:"En {0} minutos"},past:{one:"hace {0} minuto",other:"hace {0} minutos"}}},second:{displayName:"Segundo",relative:{0:"ahora"},relativeTime:{future:{one:"En {0} segundo",other:"En {0} segundos"},past:{one:"hace {0} segundo",other:"hace {0} segundos"}}}}}),ReactIntl.__addLocaleData({locale:"es-AR",parentLocale:"es-419"}),ReactIntl.__addLocaleData({locale:"es-BO",parentLocale:"es-419"}),ReactIntl.__addLocaleData({locale:"es-CL",parentLocale:"es-419"}),ReactIntl.__addLocaleData({locale:"es-CO",parentLocale:"es-419"}),ReactIntl.__addLocaleData({locale:"es-CR",parentLocale:"es-419"}),ReactIntl.__addLocaleData({locale:"es-CU",parentLocale:"es-419"}),ReactIntl.__addLocaleData({locale:"es-DO",parentLocale:"es-419"}),ReactIntl.__addLocaleData({locale:"es-EA",parentLocale:"es"}),ReactIntl.__addLocaleData({locale:"es-EC",parentLocale:"es-419"}),ReactIntl.__addLocaleData({locale:"es-ES",parentLocale:"es"}),ReactIntl.__addLocaleData({locale:"es-GQ",parentLocale:"es"}),ReactIntl.__addLocaleData({locale:"es-GT",parentLocale:"es-419"}),ReactIntl.__addLocaleData({locale:"es-HN",parentLocale:"es-419"}),ReactIntl.__addLocaleData({locale:"es-IC",parentLocale:"es"}),ReactIntl.__addLocaleData({locale:"es-MX",parentLocale:"es-419",fields:{year:{displayName:"Año",relative:{0:"este año",1:"el año próximo","-1":"el año pasado"},relativeTime:{future:{one:"En {0} año",other:"En {0} años"},past:{one:"hace {0} año",other:"hace {0} años"}}},month:{displayName:"Mes",relative:{0:"este mes",1:"el mes próximo","-1":"el mes pasado"},relativeTime:{future:{one:"en {0} mes",other:"en {0} meses"},past:{one:"hace {0} mes",other:"hace {0} meses"}}},day:{displayName:"Día",relative:{0:"hoy",1:"mañana",2:"pasado mañana","-1":"ayer","-2":"antes de ayer"},relativeTime:{future:{one:"En {0} día",other:"En {0} días"},past:{one:"hace {0} día",other:"hace {0} días"}}},hour:{displayName:"Hora",relativeTime:{future:{one:"En {0} hora",other:"En {0} horas"},past:{one:"hace {0} hora",other:"hace {0} horas"}}},minute:{displayName:"Minuto",relativeTime:{future:{one:"En {0} minuto",other:"En {0} minutos"},past:{one:"hace {0} minuto",other:"hace {0} minutos"}}},second:{displayName:"Segundo",relative:{0:"ahora"},relativeTime:{future:{one:"En {0} segundo",other:"En {0} segundos"},past:{one:"hace {0} segundo",other:"hace {0} segundos"}}}}}),ReactIntl.__addLocaleData({locale:"es-NI",parentLocale:"es-419"}),ReactIntl.__addLocaleData({locale:"es-PA",parentLocale:"es-419"}),ReactIntl.__addLocaleData({locale:"es-PE",parentLocale:"es-419"}),ReactIntl.__addLocaleData({locale:"es-PH",parentLocale:"es"}),ReactIntl.__addLocaleData({locale:"es-PR",parentLocale:"es-419"}),ReactIntl.__addLocaleData({locale:"es-PY",parentLocale:"es-419"}),ReactIntl.__addLocaleData({locale:"es-SV",parentLocale:"es-419"}),ReactIntl.__addLocaleData({locale:"es-US",parentLocale:"es-419"}),ReactIntl.__addLocaleData({locale:"es-UY",parentLocale:"es-419"}),ReactIntl.__addLocaleData({locale:"es-VE",parentLocale:"es-419"}),ReactIntl.__addLocaleData({locale:"et",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1];return b?"other":1==a&&d?"one":"other"},fields:{year:{displayName:"aasta",relative:{0:"käesolev aasta",1:"järgmine aasta","-1":"eelmine aasta"},relativeTime:{future:{one:"{0} aasta pärast",other:"{0} aasta pärast"},past:{one:"{0} aasta eest",other:"{0} aasta eest"}}},month:{displayName:"kuu",relative:{0:"käesolev kuu",1:"järgmine kuu","-1":"eelmine kuu"},relativeTime:{future:{one:"{0} kuu pärast",other:"{0} kuu pärast"},past:{one:"{0} kuu eest",other:"{0} kuu eest"}}},day:{displayName:"päev",relative:{0:"täna",1:"homme",2:"ülehomme","-1":"eile","-2":"üleeile"},relativeTime:{future:{one:"{0} päeva pärast",other:"{0} päeva pärast"},past:{one:"{0} päeva eest",other:"{0} päeva eest"}}},hour:{displayName:"tund",relativeTime:{future:{one:"{0} tunni pärast",other:"{0} tunni pärast"},past:{one:"{0} tunni eest",other:"{0} tunni eest"}}},minute:{displayName:"minut",relativeTime:{future:{one:"{0} minuti pärast",other:"{0} minuti pärast"},past:{one:"{0} minuti eest",other:"{0} minuti eest"}}},second:{displayName:"sekund",relative:{0:"nüüd"},relativeTime:{future:{one:"{0} sekundi pärast",other:"{0} sekundi pärast"},past:{one:"{0} sekundi eest",other:"{0} sekundi eest"}}}}}),ReactIntl.__addLocaleData({locale:"et-EE",parentLocale:"et"}),ReactIntl.__addLocaleData({locale:"eu",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Urtea",relative:{0:"aurten",1:"hurrengo urtea","-1":"aurreko urtea"},relativeTime:{future:{one:"{0} urte barru",other:"{0} urte barru"},past:{one:"Duela {0} urte",other:"Duela {0} urte"}}},month:{displayName:"Hilabetea",relative:{0:"hilabete hau",1:"hurrengo hilabetea","-1":"aurreko hilabetea"},relativeTime:{future:{one:"{0} hilabete barru",other:"{0} hilabete barru"},past:{one:"Duela {0} hilabete",other:"Duela {0} hilabete"}}},day:{displayName:"Eguna",relative:{0:"gaur",1:"bihar",2:"etzi","-1":"atzo","-2":"herenegun"},relativeTime:{future:{one:"{0} egun barru",other:"{0} egun barru"},past:{one:"Duela {0} egun",other:"Duela {0} egun"}}},hour:{displayName:"Ordua",relativeTime:{future:{one:"{0} ordu barru",other:"{0} ordu barru"},past:{one:"Duela {0} ordu",other:"Duela {0} ordu"}}},minute:{displayName:"Minutua",relativeTime:{future:{one:"{0} minutu barru",other:"{0} minutu barru"},past:{one:"Duela {0} minutu",other:"Duela {0} minutu"}}},second:{displayName:"Segundoa",relative:{0:"orain"},relativeTime:{future:{one:"{0} segundo barru",other:"{0} segundo barru"},past:{one:"Duela {0} segundo",other:"Duela {0} segundo"}}}}}),ReactIntl.__addLocaleData({locale:"eu-ES",parentLocale:"eu"}),ReactIntl.__addLocaleData({locale:"ewo",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"M̀bú",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Ngɔn",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Amǒs",relative:{0:"Aná",1:"Okírí","-1":"Angogé"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Awola",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Enútɛn",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Akábəga",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ewo-CM",parentLocale:"ewo"}),ReactIntl.__addLocaleData({locale:"fa",pluralRuleFunction:function(a,b){return b?"other":a>=0&&1>=a?"one":"other"},fields:{year:{displayName:"سال",relative:{0:"امسال",1:"سال آینده","-1":"سال گذشته"},relativeTime:{future:{one:"{0} سال بعد",other:"{0} سال بعد"},past:{one:"{0} سال پیش",other:"{0} سال پیش"}}},month:{displayName:"ماه",relative:{0:"این ماه",1:"ماه آینده","-1":"ماه گذشته"},relativeTime:{future:{one:"{0} ماه بعد",other:"{0} ماه بعد"},past:{one:"{0} ماه پیش",other:"{0} ماه پیش"}}},day:{displayName:"روز",relative:{0:"امروز",1:"فردا",2:"پسفردا","-1":"دیروز","-2":"پریروز"},relativeTime:{future:{one:"{0} روز بعد",other:"{0} روز بعد"},past:{one:"{0} روز پیش",other:"{0} روز پیش"}}},hour:{displayName:"ساعت",relativeTime:{future:{one:"{0} ساعت بعد",other:"{0} ساعت بعد"},past:{one:"{0} ساعت پیش",other:"{0} ساعت پیش"}}},minute:{displayName:"دقیقه",relativeTime:{future:{one:"{0} دقیقه بعد",other:"{0} دقیقه بعد"},past:{one:"{0} دقیقه پیش",other:"{0} دقیقه پیش"}}},second:{displayName:"ثانیه",relative:{0:"اکنون"},relativeTime:{future:{one:"{0} ثانیه بعد",other:"{0} ثانیه بعد"},past:{one:"{0} ثانیه پیش",other:"{0} ثانیه پیش"}}}}}),ReactIntl.__addLocaleData({locale:"fa-AF",parentLocale:"fa"}),ReactIntl.__addLocaleData({locale:"fa-IR",parentLocale:"fa"}),ReactIntl.__addLocaleData({locale:"ff",pluralRuleFunction:function(a,b){return b?"other":a>=0&&2>a?"one":"other"},fields:{year:{displayName:"Hitaande",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Lewru",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Ñalnde",relative:{0:"Hannde",1:"Jaŋngo","-1":"Haŋki"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Waktu",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Hoƴom",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Majaango",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ff-CM",parentLocale:"ff"}),ReactIntl.__addLocaleData({locale:"ff-GN",parentLocale:"ff"}),ReactIntl.__addLocaleData({locale:"ff-MR",parentLocale:"ff"}),ReactIntl.__addLocaleData({locale:"ff-SN",parentLocale:"ff"}),ReactIntl.__addLocaleData({locale:"fi",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1];return b?"other":1==a&&d?"one":"other"},fields:{year:{displayName:"vuosi",relative:{0:"tänä vuonna",1:"ensi vuonna","-1":"viime vuonna"},relativeTime:{future:{one:"{0} vuoden päästä",other:"{0} vuoden päästä"},past:{one:"{0} vuosi sitten",other:"{0} vuotta sitten"}}},month:{displayName:"kuukausi",relative:{0:"tässä kuussa",1:"ensi kuussa","-1":"viime kuussa"},relativeTime:{future:{one:"{0} kuukauden päästä",other:"{0} kuukauden päästä"},past:{one:"{0} kuukausi sitten",other:"{0} kuukautta sitten"}}},day:{displayName:"päivä",relative:{0:"tänään",1:"huomenna",2:"ylihuomenna","-1":"eilen","-2":"toissa päivänä"},relativeTime:{future:{one:"{0} päivän päästä",other:"{0} päivän päästä"},past:{one:"{0} päivä sitten",other:"{0} päivää sitten"}}},hour:{displayName:"tunti",relativeTime:{future:{one:"{0} tunnin päästä",other:"{0} tunnin päästä"},past:{one:"{0} tunti sitten",other:"{0} tuntia sitten"}}},minute:{displayName:"minuutti",relativeTime:{future:{one:"{0} minuutin päästä",other:"{0} minuutin päästä"},past:{one:"{0} minuutti sitten",other:"{0} minuuttia sitten"}}},second:{displayName:"sekunti",relative:{0:"nyt"},relativeTime:{future:{one:"{0} sekunnin päästä",other:"{0} sekunnin päästä"},past:{one:"{0} sekunti sitten",other:"{0} sekuntia sitten"}}}}}),ReactIntl.__addLocaleData({locale:"fi-FI",parentLocale:"fi"}),ReactIntl.__addLocaleData({locale:"fil",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=c[1]||"",f=!c[1],g=d.slice(-1),h=e.slice(-1);return b?1==a?"one":"other":f&&(1==d||2==d||3==d)||f&&4!=g&&6!=g&&9!=g||!f&&4!=h&&6!=h&&9!=h?"one":"other"},fields:{year:{displayName:"Taon",relative:{0:"ngayong taon",1:"susunod na taon","-1":"nakaraang taon"},relativeTime:{future:{one:"sa {0} taon",other:"sa {0} (na) taon"},past:{one:"{0} taon ang nakalipas",other:"{0} (na) taon ang nakalipas"}}},month:{displayName:"Buwan",relative:{0:"ngayong buwan",1:"susunod na buwan","-1":"nakaraang buwan"},relativeTime:{future:{one:"sa {0} buwan",other:"sa {0} (na) buwan"},past:{one:"{0} buwan ang nakalipas",other:"{0} (na) buwan ang nakalipas"}}},day:{displayName:"Araw",relative:{0:"ngayong araw",1:"bukas",2:"Samakalawa","-1":"kahapon","-2":"Araw bago ang kahapon"},relativeTime:{future:{one:"sa {0} araw",other:"sa {0} (na) araw"},past:{one:"{0} araw ang nakalipas",other:"{0} (na) araw ang nakalipas"}}},hour:{displayName:"Oras",relativeTime:{future:{one:"sa {0} oras",other:"sa {0} (na) oras"},past:{one:"{0} oras ang nakalipas",other:"{0} (na) oras ang nakalipas"}}},minute:{displayName:"Minuto",relativeTime:{future:{one:"sa {0} minuto",other:"sa {0} (na) minuto"},past:{one:"{0} minuto ang nakalipas",other:"sa {0} (na) minuto"}}},second:{displayName:"Segundo",relative:{0:"ngayon"},relativeTime:{future:{one:"sa {0} segundo",other:"sa {0} (na) segundo"},past:{one:"{0} segundo ang nakalipas",other:"{0} (na) segundo ang nakalipas"}}}}}),ReactIntl.__addLocaleData({locale:"fil-PH",parentLocale:"fil"}),ReactIntl.__addLocaleData({locale:"fo",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"ár",relative:{0:"hetta ár",1:"næstu ár","-1":"síðstu ár"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"mánuður",relative:{0:"henda mánuður",1:"næstu mánuður","-1":"síðstu mánuður"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"dagur",relative:{0:"í dag",1:"á morgunn",2:"á yfirmorgunn","-1":"í gær","-2":"í fyrradag"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"klukkustund",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"mínúta",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"sekund",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"fo-FO",parentLocale:"fo"}),ReactIntl.__addLocaleData({locale:"fr",pluralRuleFunction:function(a,b){return b?1==a?"one":"other":a>=0&&2>a?"one":"other"},fields:{year:{displayName:"année",relative:{0:"cette année",1:"l’année prochaine","-1":"l’année dernière"},relativeTime:{future:{one:"dans {0} an",other:"dans {0} ans"},past:{one:"il y a {0} an",other:"il y a {0} ans"}}},month:{displayName:"mois",relative:{0:"ce mois-ci",1:"le mois prochain","-1":"le mois dernier"},relativeTime:{future:{one:"dans {0} mois",other:"dans {0} mois"},past:{one:"il y a {0} mois",other:"il y a {0} mois"}}},day:{displayName:"jour",relative:{0:"aujourd’hui",1:"demain",2:"après-demain","-1":"hier","-2":"avant-hier"},relativeTime:{future:{one:"dans {0} jour",other:"dans {0} jours"},past:{one:"il y a {0} jour",other:"il y a {0} jours"}}},hour:{displayName:"heure",relativeTime:{future:{one:"dans {0} heure",other:"dans {0} heures"},past:{one:"il y a {0} heure",other:"il y a {0} heures"}}},minute:{displayName:"minute",relativeTime:{future:{one:"dans {0} minute",other:"dans {0} minutes"},past:{one:"il y a {0} minute",other:"il y a {0} minutes"}}},second:{displayName:"seconde",relative:{0:"maintenant"},relativeTime:{future:{one:"dans {0} seconde",other:"dans {0} secondes"},past:{one:"il y a {0} seconde",other:"il y a {0} secondes"}}}}}),ReactIntl.__addLocaleData({locale:"fr-BE",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-BF",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-BI",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-BJ",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-BL",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-CA",parentLocale:"fr",fields:{year:{displayName:"année",relative:{0:"cette année",1:"l’année prochaine","-1":"l’année dernière"},relativeTime:{future:{one:"Dans {0} an",other:"Dans {0} ans"},past:{one:"Il y a {0} an",other:"Il y a {0} ans"}}},month:{displayName:"mois",relative:{0:"ce mois-ci",1:"le mois prochain","-1":"le mois dernier"},relativeTime:{future:{one:"Dans {0} mois",other:"Dans {0} mois"},past:{one:"Il y a {0} mois",other:"Il y a {0} mois"}}},day:{displayName:"jour",relative:{0:"aujourd’hui",1:"demain",2:"après-demain","-1":"hier","-2":"avant-hier"},relativeTime:{future:{one:"Dans {0} jour",other:"Dans {0} jours"},past:{one:"Il y a {0} jour",other:"Il y a {0} jours"}}},hour:{displayName:"heure",relativeTime:{future:{one:"Dans {0} heure",other:"Dans {0} heures"},past:{one:"Il y a {0} heure",other:"Il y a {0} heures"}}},minute:{displayName:"minute",relativeTime:{future:{one:"Dans {0} minute",other:"Dans {0} minutes"},past:{one:"Il y a {0} minute",other:"Il y a {0} minutes"}}},second:{displayName:"seconde",relative:{0:"maintenant"},relativeTime:{future:{one:"Dans {0} seconde",other:"Dans {0} secondes"},past:{one:"Il y a {0} seconde",other:"Il y a {0} secondes"}}}}}),ReactIntl.__addLocaleData({locale:"fr-CD",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-CF",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-CG",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-CH",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-CI",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-CM",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-DJ",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-DZ",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-FR",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-GA",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-GF",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-GN",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-GP",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-GQ",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-HT",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-KM",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-LU",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-MA",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-MC",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-MF",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-MG",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-ML",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-MQ",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-MR",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-MU",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-NC",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-NE",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-PF",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-PM",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-RE",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-RW",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-SC",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-SN",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-SY",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-TD",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-TG",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-TN",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-VU",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-WF",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fr-YT",parentLocale:"fr"}),ReactIntl.__addLocaleData({locale:"fur",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"an",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"ca di {0} an",other:"ca di {0} agns"},past:{one:"{0} an indaûr",other:"{0} agns indaûr"}}},month:{displayName:"mês",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"ca di {0} mês",other:"ca di {0} mês"},past:{one:"{0} mês indaûr",other:"{0} mês indaûr"}}},day:{displayName:"dì",relative:{0:"vuê",1:"doman",2:"passantdoman","-1":"îr","-2":"îr l’altri"},relativeTime:{future:{one:"ca di {0} zornade",other:"ca di {0} zornadis"},past:{one:"{0} zornade indaûr",other:"{0} zornadis indaûr"}}},hour:{displayName:"ore",relativeTime:{future:{one:"ca di {0} ore",other:"ca di {0} oris"},past:{one:"{0} ore indaûr",other:"{0} oris indaûr"}}},minute:{displayName:"minût",relativeTime:{future:{one:"ca di {0} minût",other:"ca di {0} minûts"},past:{one:"{0} minût indaûr",other:"{0} minûts indaûr"}}},second:{displayName:"secont",relative:{0:"now"},relativeTime:{future:{one:"ca di {0} secont",other:"ca di {0} seconts"},past:{one:"{0} secont indaûr",other:"{0} seconts indaûr"}}}}}),ReactIntl.__addLocaleData({locale:"fur-IT",parentLocale:"fur"}),ReactIntl.__addLocaleData({locale:"fy",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1];return b?"other":1==a&&d?"one":"other"},fields:{year:{displayName:"Jier",relative:{0:"dit jier",1:"folgjend jier","-1":"foarich jier"},relativeTime:{future:{one:"Oer {0} jier",other:"Oer {0} jier"},past:{one:"{0} jier lyn",other:"{0} jier lyn"}}},month:{displayName:"Moanne",relative:{0:"dizze moanne",1:"folgjende moanne","-1":"foarige moanne"},relativeTime:{future:{one:"Oer {0} moanne",other:"Oer {0} moannen"},past:{one:"{0} moanne lyn",other:"{0} moannen lyn"}}},day:{displayName:"dei",relative:{0:"vandaag",1:"morgen",2:"Oermorgen","-1":"gisteren","-2":"eergisteren"},relativeTime:{future:{one:"Oer {0} dei",other:"Oer {0} deien"},past:{one:"{0} dei lyn",other:"{0} deien lyn"}}},hour:{displayName:"oere",relativeTime:{future:{one:"Oer {0} oere",other:"Oer {0} oere"},past:{one:"{0} oere lyn",other:"{0} oere lyn"}}},minute:{displayName:"Minút",relativeTime:{future:{one:"Oer {0} minút",other:"Oer {0} minuten"},past:{one:"{0} minút lyn",other:"{0} minuten lyn"}}},second:{displayName:"Sekonde",relative:{0:"nu"},relativeTime:{future:{one:"Oer {0} sekonde",other:"Oer {0} sekonden"},past:{one:"{0} sekonde lyn",other:"{0} sekonden lyn"}}}}}),ReactIntl.__addLocaleData({locale:"fy-NL",parentLocale:"fy"}),ReactIntl.__addLocaleData({locale:"ga",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=Number(c[0])==a;return b?"other":1==a?"one":2==a?"two":d&&a>=3&&6>=a?"few":d&&a>=7&&10>=a?"many":"other"},fields:{year:{displayName:"Bliain",relative:{0:"an bhliain seo",1:"an bhliain seo chugainn","-1":"anuraidh"},relativeTime:{future:{one:"i gceann {0} bhliain",two:"i gceann {0} bhliain",few:"i gceann {0} bliana",many:"i gceann {0} mbliana",other:"i gceann {0} bliain"},past:{one:"{0} bhliain ó shin",two:"{0} bhliain ó shin",few:"{0} bliana ó shin",many:"{0} mbliana ó shin",other:"{0} bliain ó shin"}}},month:{displayName:"Mí",relative:{0:"an mhí seo",1:"an mhí seo chugainn","-1":"an mhí seo caite"},relativeTime:{future:{one:"i gceann {0} mhí",two:"i gceann {0} mhí",few:"i gceann {0} mhí",many:"i gceann {0} mí",other:"i gceann {0} mí"},past:{one:"{0} mhí ó shin",two:"{0} mhí ó shin",few:"{0} mhí ó shin",many:"{0} mí ó shin",other:"{0} mí ó shin"}}},day:{displayName:"Lá",relative:{0:"inniu",1:"amárach",2:"arú amárach","-1":"inné","-2":"arú inné"},relativeTime:{future:{one:"i gceann {0} lá",two:"i gceann {0} lá",few:"i gceann {0} lá",many:"i gceann {0} lá",other:"i gceann {0} lá"},past:{one:"{0} lá ó shin",two:"{0} lá ó shin",few:"{0} lá ó shin",many:"{0} lá ó shin",other:"{0} lá ó shin"}}},hour:{displayName:"Uair",relativeTime:{future:{one:"i gceann {0} uair an chloig",two:"i gceann {0} uair an chloig",few:"i gceann {0} huaire an chloig",many:"i gceann {0} n-uaire an chloig",other:"i gceann {0} uair an chloig"},past:{one:"{0} uair an chloig ó shin",two:"{0} uair an chloig ó shin",few:"{0} huaire an chloig ó shin",many:"{0} n-uaire an chloig ó shin",other:"{0} uair an chloig ó shin"}}},minute:{displayName:"Nóiméad",relativeTime:{future:{one:"i gceann {0} nóiméad",two:"i gceann {0} nóiméad",few:"i gceann {0} nóiméad",many:"i gceann {0} nóiméad",other:"i gceann {0} nóiméad"},past:{one:"{0} nóiméad ó shin",two:"{0} nóiméad ó shin",few:"{0} nóiméad ó shin",many:"{0} nóiméad ó shin",other:"{0} nóiméad ó shin"}}},second:{displayName:"Soicind",relative:{0:"now"},relativeTime:{future:{one:"i gceann {0} soicind",two:"i gceann {0} shoicind",few:"i gceann {0} shoicind",many:"i gceann {0} soicind",other:"i gceann {0} soicind"},past:{one:"{0} soicind ó shin",two:"{0} shoicind ó shin",few:"{0} shoicind ó shin",many:"{0} soicind ó shin",other:"{0} soicind ó shin"}}}}}),ReactIntl.__addLocaleData({locale:"ga-IE",parentLocale:"ga"}),ReactIntl.__addLocaleData({locale:"gd",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=Number(c[0])==a;return b?"other":1==a||11==a?"one":2==a||12==a?"two":d&&a>=3&&10>=a||d&&a>=13&&19>=a?"few":"other"},fields:{year:{displayName:"bliadhna",relative:{0:"am bliadhna",1:"an ath-bhliadhna","-1":"an-uiridh","-2":"a-bhòn-uiridh"},relativeTime:{future:{one:"an ceann {0} bhliadhna",two:"an ceann {0} bhliadhna",few:"an ceann {0} bliadhnaichean",other:"an ceann {0} bliadhna"},past:{one:"o chionn {0} bhliadhna",two:"o chionn {0} bhliadhna",few:"o chionn {0} bliadhnaichean",other:"o chionn {0} bliadhna"}}},month:{displayName:"mìos",relative:{0:"am mìos seo",1:"an ath-mhìos","-1":"am mìos seo chaidh"},relativeTime:{future:{one:"an ceann {0} mhìosa",two:"an ceann {0} mhìosa",few:"an ceann {0} mìosan",other:"an ceann {0} mìosa"},past:{one:"o chionn {0} mhìosa",two:"o chionn {0} mhìosa",few:"o chionn {0} mìosan",other:"o chionn {0} mìosa"}}},day:{displayName:"latha",relative:{0:"an-diugh",1:"a-màireach",2:"an-earar",3:"an-eararais","-1":"an-dè","-2":"a-bhòin-dè"},relativeTime:{future:{one:"an ceann {0} latha",two:"an ceann {0} latha",few:"an ceann {0} làithean",other:"an ceann {0} latha"},past:{one:"o chionn {0} latha",two:"o chionn {0} latha",few:"o chionn {0} làithean",other:"o chionn {0} latha"}}},hour:{displayName:"uair a thìde",relativeTime:{future:{one:"an ceann {0} uair a thìde",two:"an ceann {0} uair a thìde",few:"an ceann {0} uairean a thìde",other:"an ceann {0} uair a thìde"},past:{one:"o chionn {0} uair a thìde",two:"o chionn {0} uair a thìde",few:"o chionn {0} uairean a thìde",other:"o chionn {0} uair a thìde"}}},minute:{displayName:"mionaid",relativeTime:{future:{one:"an ceann {0} mhionaid",two:"an ceann {0} mhionaid",few:"an ceann {0} mionaidean",other:"an ceann {0} mionaid"},past:{one:"o chionn {0} mhionaid",two:"o chionn {0} mhionaid",few:"o chionn {0} mionaidean",other:"o chionn {0} mionaid"}}},second:{displayName:"diog",relative:{0:"now"},relativeTime:{future:{one:"an ceann {0} diog",two:"an ceann {0} dhiog",few:"an ceann {0} diogan",other:"an ceann {0} diog"},past:{one:"o chionn {0} diog",two:"o chionn {0} dhiog",few:"o chionn {0} diogan",other:"o chionn {0} diog"}}}}}),ReactIntl.__addLocaleData({locale:"gd-GB",parentLocale:"gd"}),ReactIntl.__addLocaleData({locale:"gl",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1];return b?"other":1==a&&d?"one":"other"},fields:{year:{displayName:"Ano",relative:{0:"este ano",1:"seguinte ano","-1":"ano pasado"},relativeTime:{future:{one:"En {0} ano",other:"En {0} anos"},past:{one:"Hai {0} ano",other:"Hai {0} anos"}}},month:{displayName:"Mes",relative:{0:"este mes",1:"mes seguinte","-1":"mes pasado"},relativeTime:{future:{one:"En {0} mes",other:"En {0} meses"},past:{one:"Hai {0} mes",other:"Hai {0} meses"}}},day:{displayName:"Día",relative:{0:"hoxe",1:"mañá",2:"pasadomañá","-1":"onte","-2":"antonte"},relativeTime:{future:{one:"En {0} día",other:"En {0} días"},past:{one:"Hai {0} día",other:"Hai {0} días"}}},hour:{displayName:"Hora",relativeTime:{future:{one:"En {0} hora",other:"En {0} horas"},past:{one:"Hai {0} hora",other:"Hai {0} horas"}}},minute:{displayName:"Minuto",relativeTime:{future:{one:"En {0} minuto",other:"En {0} minutos"},past:{one:"Hai {0} minuto",other:"Hai {0} minutos"}}},second:{displayName:"Segundo",relative:{0:"agora"},relativeTime:{future:{one:"En {0} segundo",other:"En {0} segundos"},past:{one:"Hai {0} segundo",other:"Hai {0} segundos"}}}}}),ReactIntl.__addLocaleData({locale:"gl-ES",parentLocale:"gl"}),ReactIntl.__addLocaleData({locale:"gsw",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Jaar",relative:{0:"diese Jaar",1:"nächste Jaar","-1":"letzte Jaar"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Monet",relative:{0:"diese Monet",1:"nächste Monet","-1":"letzte Monet"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Tag",relative:{0:"hüt",1:"moorn",2:"übermoorn","-1":"geschter","-2":"vorgeschter"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Schtund",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minuute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sekunde",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"gsw-CH",parentLocale:"gsw"}),ReactIntl.__addLocaleData({locale:"gsw-FR",parentLocale:"gsw"}),ReactIntl.__addLocaleData({locale:"gsw-LI",parentLocale:"gsw"}),ReactIntl.__addLocaleData({locale:"gu",pluralRuleFunction:function(a,b){return b?1==a?"one":2==a||3==a?"two":4==a?"few":6==a?"many":"other":a>=0&&1>=a?"one":"other"},fields:{year:{displayName:"વર્ષ",relative:{0:"આ વર્ષે",1:"આવતા વર્ષે","-1":"ગયા વર્ષે"},relativeTime:{future:{one:"{0} વર્ષમાં",other:"{0} વર્ષમાં"},past:{one:"{0} વર્ષ પહેલા",other:"{0} વર્ષ પહેલા"}}},month:{displayName:"મહિનો",relative:{0:"આ મહિને",1:"આવતા મહિને","-1":"ગયા મહિને"},relativeTime:{future:{one:"{0} મહિનામાં",other:"{0} મહિનામાં"},past:{one:"{0} મહિના પહેલા",other:"{0} મહિના પહેલા"}}},day:{displayName:"દિવસ",relative:{0:"આજે",1:"આવતીકાલે",2:"પરમદિવસે","-1":"ગઈકાલે","-2":"ગયા પરમદિવસે"},relativeTime:{future:{one:"{0} દિવસમાં",other:"{0} દિવસમાં"},past:{one:"{0} દિવસ પહેલા",other:"{0} દિવસ પહેલા"}}},hour:{displayName:"કલાક",relativeTime:{future:{one:"{0} કલાકમાં",other:"{0} કલાકમાં"},past:{one:"{0} કલાક પહેલા",other:"{0} કલાક પહેલા"}}},minute:{displayName:"મિનિટ",relativeTime:{future:{one:"{0} મિનિટમાં",other:"{0} મિનિટમાં"},past:{one:"{0} મિનિટ પહેલા",other:"{0} મિનિટ પહેલા"}}},second:{displayName:"સેકન્ડ",relative:{0:"હમણાં"},relativeTime:{future:{one:"{0} સેકંડમાં",other:"{0} સેકંડમાં"},past:{one:"{0} સેકંડ પહેલા",other:"{0} સેકંડ પહેલા"}}}}}),ReactIntl.__addLocaleData({locale:"gu-IN",parentLocale:"gu"}),ReactIntl.__addLocaleData({locale:"guw",pluralRuleFunction:function(a,b){return b?"other":0==a||1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"guz",pluralRuleFunction:function(a,b){return"other"},fields:{
year:{displayName:"Omwaka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Omotienyi",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Rituko",relative:{0:"Rero",1:"Mambia","-1":"Igoro"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Ensa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Edakika",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Esekendi",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"guz-KE",parentLocale:"guz"}),ReactIntl.__addLocaleData({locale:"gv",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=!c[1],f=d.slice(-1),g=d.slice(-2);return b?"other":e&&1==f?"one":e&&2==f?"two":!e||0!=g&&20!=g&&40!=g&&60!=g&&80!=g?e?"other":"many":"few"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"gv-IM",parentLocale:"gv"}),ReactIntl.__addLocaleData({locale:"ha",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Shekara",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Wata",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Kwana",relative:{0:"Yau",1:"Gobe","-1":"Jiya"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Awa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minti",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Daƙiƙa",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ha-Arab",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ha-Latn",parentLocale:"ha"}),ReactIntl.__addLocaleData({locale:"ha-Latn-GH",parentLocale:"ha-Latn"}),ReactIntl.__addLocaleData({locale:"ha-Latn-NE",parentLocale:"ha-Latn"}),ReactIntl.__addLocaleData({locale:"ha-Latn-NG",parentLocale:"ha-Latn"}),ReactIntl.__addLocaleData({locale:"haw",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"haw-US",parentLocale:"haw"}),ReactIntl.__addLocaleData({locale:"he",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=!c[1],f=Number(c[0])==a,g=f&&c[0].slice(-1);return b?"other":1==a&&e?"one":2==d&&e?"two":e&&(0>a||a>10)&&f&&0==g?"many":"other"},fields:{year:{displayName:"שנה",relative:{0:"השנה",1:"השנה הבאה","-1":"השנה שעברה"},relativeTime:{future:{one:"בעוד שנה",two:"בעוד שנתיים",many:"בעוד {0} שנה",other:"בעוד {0} שנים"},past:{one:"לפני שנה",two:"לפני שנתיים",many:"לפני {0} שנה",other:"לפני {0} שנים"}}},month:{displayName:"חודש",relative:{0:"החודש",1:"החודש הבא","-1":"החודש שעבר"},relativeTime:{future:{one:"בעוד חודש",two:"בעוד חודשיים",many:"בעוד {0} חודשים",other:"בעוד {0} חודשים"},past:{one:"לפני חודש",two:"לפני חודשיים",many:"לפני {0} חודשים",other:"לפני {0} חודשים"}}},day:{displayName:"יום",relative:{0:"היום",1:"מחר",2:"מחרתיים","-1":"אתמול","-2":"שלשום"},relativeTime:{future:{one:"בעוד יום {0}",two:"בעוד יומיים",many:"בעוד {0} ימים",other:"בעוד {0} ימים"},past:{one:"לפני יום {0}",two:"לפני יומיים",many:"לפני {0} ימים",other:"לפני {0} ימים"}}},hour:{displayName:"שעה",relativeTime:{future:{one:"בעוד שעה",two:"בעוד שעתיים",many:"בעוד {0} שעות",other:"בעוד {0} שעות"},past:{one:"לפני שעה",two:"לפני שעתיים",many:"לפני {0} שעות",other:"לפני {0} שעות"}}},minute:{displayName:"דקה",relativeTime:{future:{one:"בעוד דקה",two:"בעוד שתי דקות",many:"בעוד {0} דקות",other:"בעוד {0} דקות"},past:{one:"לפני דקה",two:"לפני שתי דקות",many:"לפני {0} דקות",other:"לפני {0} דקות"}}},second:{displayName:"שנייה",relative:{0:"עכשיו"},relativeTime:{future:{one:"בעוד שנייה",two:"בעוד שתי שניות",many:"בעוד {0} שניות",other:"בעוד {0} שניות"},past:{one:"לפני שנייה",two:"לפני שתי שניות",many:"לפני {0} שניות",other:"לפני {0} שניות"}}}}}),ReactIntl.__addLocaleData({locale:"he-IL",parentLocale:"he"}),ReactIntl.__addLocaleData({locale:"hi",pluralRuleFunction:function(a,b){return b?1==a?"one":2==a||3==a?"two":4==a?"few":6==a?"many":"other":a>=0&&1>=a?"one":"other"},fields:{year:{displayName:"वर्ष",relative:{0:"इस वर्ष",1:"अगला वर्ष","-1":"पिछला वर्ष"},relativeTime:{future:{one:"{0} वर्ष में",other:"{0} वर्ष में"},past:{one:"{0} वर्ष पहले",other:"{0} वर्ष पहले"}}},month:{displayName:"माह",relative:{0:"इस माह",1:"अगला माह","-1":"पिछला माह"},relativeTime:{future:{one:"{0} माह में",other:"{0} माह में"},past:{one:"{0} माह पहले",other:"{0} माह पहले"}}},day:{displayName:"दिन",relative:{0:"आज",1:"कल",2:"परसों","-1":"कल","-2":"बीता परसों"},relativeTime:{future:{one:"{0} दिन में",other:"{0} दिन में"},past:{one:"{0} दिन पहले",other:"{0} दिन पहले"}}},hour:{displayName:"घंटा",relativeTime:{future:{one:"{0} घंटे में",other:"{0} घंटे में"},past:{one:"{0} घंटे पहले",other:"{0} घंटे पहले"}}},minute:{displayName:"मिनट",relativeTime:{future:{one:"{0} मिनट में",other:"{0} मिनट में"},past:{one:"{0} मिनट पहले",other:"{0} मिनट पहले"}}},second:{displayName:"सेकंड",relative:{0:"अब"},relativeTime:{future:{one:"{0} सेकंड में",other:"{0} सेकंड में"},past:{one:"{0} सेकंड पहले",other:"{0} सेकंड पहले"}}}}}),ReactIntl.__addLocaleData({locale:"hi-IN",parentLocale:"hi"}),ReactIntl.__addLocaleData({locale:"hr",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=c[1]||"",f=!c[1],g=d.slice(-1),h=d.slice(-2),i=e.slice(-1),j=e.slice(-2);return b?"other":f&&1==g&&11!=h||1==i&&11!=j?"one":f&&g>=2&&4>=g&&(12>h||h>14)||i>=2&&4>=i&&(12>j||j>14)?"few":"other"},fields:{year:{displayName:"Godina",relative:{0:"ove godine",1:"sljedeće godine","-1":"prošle godine"},relativeTime:{future:{one:"za {0} godinu",few:"za {0} godine",other:"za {0} godina"},past:{one:"prije {0} godinu",few:"prije {0} godine",other:"prije {0} godina"}}},month:{displayName:"Mjesec",relative:{0:"ovaj mjesec",1:"sljedeći mjesec","-1":"prošli mjesec"},relativeTime:{future:{one:"za {0} mjesec",few:"za {0} mjeseca",other:"za {0} mjeseci"},past:{one:"prije {0} mjesec",few:"prije {0} mjeseca",other:"prije {0} mjeseci"}}},day:{displayName:"Dan",relative:{0:"danas",1:"sutra",2:"prekosutra","-1":"jučer","-2":"prekjučer"},relativeTime:{future:{one:"za {0} dan",few:"za {0} dana",other:"za {0} dana"},past:{one:"prije {0} dan",few:"prije {0} dana",other:"prije {0} dana"}}},hour:{displayName:"Sat",relativeTime:{future:{one:"za {0} sat",few:"za {0} sata",other:"za {0} sati"},past:{one:"prije {0} sat",few:"prije {0} sata",other:"prije {0} sati"}}},minute:{displayName:"Minuta",relativeTime:{future:{one:"za {0} minutu",few:"za {0} minute",other:"za {0} minuta"},past:{one:"prije {0} minutu",few:"prije {0} minute",other:"prije {0} minuta"}}},second:{displayName:"Sekunda",relative:{0:"sada"},relativeTime:{future:{one:"za {0} sekundu",few:"za {0} sekunde",other:"za {0} sekundi"},past:{one:"prije {0} sekundu",few:"prije {0} sekunde",other:"prije {0} sekundi"}}}}}),ReactIntl.__addLocaleData({locale:"hr-BA",parentLocale:"hr"}),ReactIntl.__addLocaleData({locale:"hr-HR",parentLocale:"hr"}),ReactIntl.__addLocaleData({locale:"hsb",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=c[1]||"",f=!c[1],g=d.slice(-2),h=e.slice(-2);return b?"other":f&&1==g||1==h?"one":f&&2==g||2==h?"two":f&&(3==g||4==g)||3==h||4==h?"few":"other"},fields:{year:{displayName:"lěto",relative:{0:"lětsa",1:"klětu","-1":"loni"},relativeTime:{future:{one:"za {0} lěto",two:"za {0} lěće",few:"za {0} lěta",other:"za {0} lět"},past:{one:"před {0} lětom",two:"před {0} lětomaj",few:"před {0} lětami",other:"před {0} lětami"}}},month:{displayName:"měsac",relative:{0:"tutón měsac",1:"přichodny měsac","-1":"zašły měsac"},relativeTime:{future:{one:"za {0} měsac",two:"za {0} měsacaj",few:"za {0} měsacy",other:"za {0} měsacow"},past:{one:"před {0} měsacom",two:"před {0} měsacomaj",few:"před {0} měsacami",other:"před {0} měsacami"}}},day:{displayName:"dźeń",relative:{0:"dźensa",1:"jutře","-1":"wčera"},relativeTime:{future:{one:"za {0} dźeń",two:"za {0} dnjej",few:"za {0} dny",other:"za {0} dnjow"},past:{one:"před {0} dnjom",two:"před {0} dnjomaj",few:"před {0} dnjemi",other:"před {0} dnjemi"}}},hour:{displayName:"hodźina",relativeTime:{future:{one:"za {0} hodźinu",two:"za {0} hodźinje",few:"za {0} hodźiny",other:"za {0} hodźin"},past:{one:"před {0} hodźinu",two:"před {0} hodźinomaj",few:"před {0} hodźinami",other:"před {0} hodźinami"}}},minute:{displayName:"minuta",relativeTime:{future:{one:"za {0} minutu",two:"za {0} minuće",few:"za {0} minuty",other:"za {0} minutow"},past:{one:"před {0} minutu",two:"před {0} minutomaj",few:"před {0} minutami",other:"před {0} minutami"}}},second:{displayName:"sekunda",relative:{0:"now"},relativeTime:{future:{one:"za {0} sekundu",two:"za {0} sekundźe",few:"za {0} sekundy",other:"za {0} sekundow"},past:{one:"před {0} sekundu",two:"před {0} sekundomaj",few:"před {0} sekundami",other:"před {0} sekundami"}}}}}),ReactIntl.__addLocaleData({locale:"hsb-DE",parentLocale:"hsb"}),ReactIntl.__addLocaleData({locale:"hu",pluralRuleFunction:function(a,b){return b?1==a||5==a?"one":"other":1==a?"one":"other"},fields:{year:{displayName:"év",relative:{0:"ez az év",1:"következő év","-1":"előző év"},relativeTime:{future:{one:"{0} év múlva",other:"{0} év múlva"},past:{one:"{0} évvel ezelőtt",other:"{0} évvel ezelőtt"}}},month:{displayName:"hónap",relative:{0:"ez a hónap",1:"következő hónap","-1":"előző hónap"},relativeTime:{future:{one:"{0} hónap múlva",other:"{0} hónap múlva"},past:{one:"{0} hónappal ezelőtt",other:"{0} hónappal ezelőtt"}}},day:{displayName:"nap",relative:{0:"ma",1:"holnap",2:"holnapután","-1":"tegnap","-2":"tegnapelőtt"},relativeTime:{future:{one:"{0} nap múlva",other:"{0} nap múlva"},past:{one:"{0} nappal ezelőtt",other:"{0} nappal ezelőtt"}}},hour:{displayName:"óra",relativeTime:{future:{one:"{0} óra múlva",other:"{0} óra múlva"},past:{one:"{0} órával ezelőtt",other:"{0} órával ezelőtt"}}},minute:{displayName:"perc",relativeTime:{future:{one:"{0} perc múlva",other:"{0} perc múlva"},past:{one:"{0} perccel ezelőtt",other:"{0} perccel ezelőtt"}}},second:{displayName:"másodperc",relative:{0:"most"},relativeTime:{future:{one:"{0} másodperc múlva",other:"{0} másodperc múlva"},past:{one:"{0} másodperccel ezelőtt",other:"{0} másodperccel ezelőtt"}}}}}),ReactIntl.__addLocaleData({locale:"hu-HU",parentLocale:"hu"}),ReactIntl.__addLocaleData({locale:"hy",pluralRuleFunction:function(a,b){return b?1==a?"one":"other":a>=0&&2>a?"one":"other"},fields:{year:{displayName:"Տարի",relative:{0:"այս տարի",1:"հաջորդ տարի","-1":"անցյալ տարի"},relativeTime:{future:{one:"{0} տարի անց",other:"{0} տարի անց"},past:{one:"{0} տարի առաջ",other:"{0} տարի առաջ"}}},month:{displayName:"Ամիս",relative:{0:"այս ամիս",1:"հաջորդ ամիս","-1":"անցյալ ամիս"},relativeTime:{future:{one:"{0} ամիս անց",other:"{0} ամիս անց"},past:{one:"{0} ամիս առաջ",other:"{0} ամիս առաջ"}}},day:{displayName:"Օր",relative:{0:"այսօր",1:"վաղը",2:"վաղը չէ մյուս օրը","-1":"երեկ","-2":"երեկ չէ առաջի օրը"},relativeTime:{future:{one:"{0} օր անց",other:"{0} օր անց"},past:{one:"{0} օր առաջ",other:"{0} օր առաջ"}}},hour:{displayName:"Ժամ",relativeTime:{future:{one:"{0} ժամ անց",other:"{0} ժամ անց"},past:{one:"{0} ժամ առաջ",other:"{0} ժամ առաջ"}}},minute:{displayName:"Րոպե",relativeTime:{future:{one:"{0} րոպե անց",other:"{0} րոպե անց"},past:{one:"{0} րոպե առաջ",other:"{0} րոպե առաջ"}}},second:{displayName:"Վայրկյան",relative:{0:"այժմ"},relativeTime:{future:{one:"{0} վայրկյան անց",other:"{0} վայրկյան անց"},past:{one:"{0} վայրկյան առաջ",other:"{0} վայրկյան առաջ"}}}}}),ReactIntl.__addLocaleData({locale:"hy-AM",parentLocale:"hy"}),ReactIntl.__addLocaleData({locale:"ia",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ia-FR",parentLocale:"ia"}),ReactIntl.__addLocaleData({locale:"id",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Tahun",relative:{0:"tahun ini",1:"tahun depan","-1":"tahun lalu"},relativeTime:{future:{other:"Dalam {0} tahun"},past:{other:"{0} tahun yang lalu"}}},month:{displayName:"Bulan",relative:{0:"bulan ini",1:"Bulan berikutnya","-1":"bulan lalu"},relativeTime:{future:{other:"Dalam {0} bulan"},past:{other:"{0} bulan yang lalu"}}},day:{displayName:"Hari",relative:{0:"hari ini",1:"besok",2:"lusa","-1":"kemarin","-2":"kemarin lusa"},relativeTime:{future:{other:"Dalam {0} hari"},past:{other:"{0} hari yang lalu"}}},hour:{displayName:"Jam",relativeTime:{future:{other:"Dalam {0} jam"},past:{other:"{0} jam yang lalu"}}},minute:{displayName:"Menit",relativeTime:{future:{other:"Dalam {0} menit"},past:{other:"{0} menit yang lalu"}}},second:{displayName:"Detik",relative:{0:"sekarang"},relativeTime:{future:{other:"Dalam {0} detik"},past:{other:"{0} detik yang lalu"}}}}}),ReactIntl.__addLocaleData({locale:"id-ID",parentLocale:"id"}),ReactIntl.__addLocaleData({locale:"ig",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Afọ",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Ọnwa",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Ụbọchị",relative:{0:"Taata",1:"Echi","-1":"Nnyaafụ"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Elekere",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Nkeji",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Nkejinta",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ig-NG",parentLocale:"ig"}),ReactIntl.__addLocaleData({locale:"ii",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"ꈎ",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"ꆪ",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"ꑍ",relative:{0:"ꀃꑍ",1:"ꃆꏂꑍ",2:"ꌕꀿꑍ","-1":"ꀋꅔꉈ","-2":"ꎴꂿꋍꑍ"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"ꄮꈉ",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"ꃏ",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"ꇙ",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ii-CN",parentLocale:"ii"}),ReactIntl.__addLocaleData({locale:"in",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"is",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=Number(c[0])==a,f=d.slice(-1),g=d.slice(-2);return b?"other":e&&1==f&&11!=g||!e?"one":"other"},fields:{year:{displayName:"ár",relative:{0:"á þessu ári",1:"á næsta ári","-1":"á síðasta ári"},relativeTime:{future:{one:"eftir {0} ár",other:"eftir {0} ár"},past:{one:"fyrir {0} ári",other:"fyrir {0} árum"}}},month:{displayName:"mánuður",relative:{0:"í þessum mánuði",1:"í næsta mánuði","-1":"í síðasta mánuði"},relativeTime:{future:{one:"eftir {0} mánuð",other:"eftir {0} mánuði"},past:{one:"fyrir {0} mánuði",other:"fyrir {0} mánuðum"}}},day:{displayName:"dagur",relative:{0:"í dag",1:"á morgun",2:"eftir tvo daga","-1":"í gær","-2":"í fyrradag"},relativeTime:{future:{one:"eftir {0} dag",other:"eftir {0} daga"},past:{one:"fyrir {0} degi",other:"fyrir {0} dögum"}}},hour:{displayName:"klukkustund",relativeTime:{future:{one:"eftir {0} klukkustund",other:"eftir {0} klukkustundir"},past:{one:"fyrir {0} klukkustund",other:"fyrir {0} klukkustundum"}}},minute:{displayName:"mínúta",relativeTime:{future:{one:"eftir {0} mínútu",other:"eftir {0} mínútur"},past:{one:"fyrir {0} mínútu",other:"fyrir {0} mínútum"}}},second:{displayName:"sekúnda",relative:{0:"núna"},relativeTime:{future:{one:"eftir {0} sekúndu",other:"eftir {0} sekúndur"},past:{one:"fyrir {0} sekúndu",other:"fyrir {0} sekúndum"}}}}}),ReactIntl.__addLocaleData({locale:"is-IS",parentLocale:"is"}),ReactIntl.__addLocaleData({locale:"it",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1];return b?11==a||8==a||80==a||800==a?"many":"other":1==a&&d?"one":"other"},fields:{year:{displayName:"Anno",relative:{0:"quest’anno",1:"anno prossimo","-1":"anno scorso"},relativeTime:{future:{one:"tra {0} anno",other:"tra {0} anni"},past:{one:"{0} anno fa",other:"{0} anni fa"}}},month:{displayName:"Mese",relative:{0:"questo mese",1:"mese prossimo","-1":"mese scorso"},relativeTime:{future:{one:"tra {0} mese",other:"tra {0} mesi"},past:{one:"{0} mese fa",other:"{0} mesi fa"}}},day:{displayName:"Giorno",relative:{0:"oggi",1:"domani",2:"dopodomani","-1":"ieri","-2":"l’altro ieri"},relativeTime:{future:{one:"tra {0} giorno",other:"tra {0} giorni"},past:{one:"{0} giorno fa",other:"{0} giorni fa"}}},hour:{displayName:"Ora",relativeTime:{future:{one:"tra {0} ora",other:"tra {0} ore"},past:{one:"{0} ora fa",other:"{0} ore fa"}}},minute:{displayName:"Minuto",relativeTime:{future:{one:"tra {0} minuto",other:"tra {0} minuti"},past:{one:"{0} minuto fa",other:"{0} minuti fa"}}},second:{displayName:"Secondo",relative:{0:"ora"},relativeTime:{future:{one:"tra {0} secondo",other:"tra {0} secondi"},past:{one:"{0} secondo fa",other:"{0} secondi fa"}}}}}),ReactIntl.__addLocaleData({locale:"it-CH",parentLocale:"it"}),ReactIntl.__addLocaleData({locale:"it-IT",parentLocale:"it"}),ReactIntl.__addLocaleData({locale:"it-SM",parentLocale:"it"}),ReactIntl.__addLocaleData({locale:"iu",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":2==a?"two":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"iw",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=!c[1],f=Number(c[0])==a,g=f&&c[0].slice(-1);return b?"other":1==a&&e?"one":2==d&&e?"two":e&&(0>a||a>10)&&f&&0==g?"many":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ja",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"年",relative:{0:"今年",1:"翌年","-1":"昨年"},relativeTime:{future:{other:"{0} 年後"},past:{other:"{0} 年前"}}},month:{displayName:"月",relative:{0:"今月",1:"翌月","-1":"先月"},relativeTime:{future:{other:"{0} か月後"},past:{other:"{0} か月前"}}},day:{displayName:"日",relative:{0:"今日",1:"明日",2:"明後日","-1":"昨日","-2":"一昨日"},relativeTime:{future:{other:"{0} 日後"},past:{other:"{0} 日前"}}},hour:{displayName:"時",relativeTime:{future:{other:"{0} 時間後"},past:{other:"{0} 時間前"}}},minute:{displayName:"分",relativeTime:{future:{other:"{0} 分後"},past:{other:"{0} 分前"}}},second:{displayName:"秒",relative:{0:"今すぐ"},relativeTime:{future:{other:"{0} 秒後"},past:{other:"{0} 秒前"}}}}}),ReactIntl.__addLocaleData({locale:"ja-JP",parentLocale:"ja"}),ReactIntl.__addLocaleData({locale:"jbo",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"jgo",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"Nǔu ŋguꞋ {0}",other:"Nǔu ŋguꞋ {0}"},past:{one:"Ɛ́gɛ́ mɔ́ ŋguꞋ {0}",other:"Ɛ́gɛ́ mɔ́ ŋguꞋ {0}"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"Nǔu {0} saŋ",other:"Nǔu {0} saŋ"},past:{one:"ɛ́ gɛ́ mɔ́ pɛsaŋ {0}",other:"ɛ́ gɛ́ mɔ́ pɛsaŋ {0}"}}},day:{displayName:"Day",relative:{0:"lɔꞋɔ",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"Nǔu lɛ́Ꞌ {0}",other:"Nǔu lɛ́Ꞌ {0}"},past:{one:"Ɛ́ gɛ́ mɔ́ lɛ́Ꞌ {0}",other:"Ɛ́ gɛ́ mɔ́ lɛ́Ꞌ {0}"}}},hour:{displayName:"Hour",relativeTime:{future:{one:"nǔu háwa {0}",other:"nǔu háwa {0}"},past:{one:"ɛ́ gɛ mɔ́ {0} háwa",other:"ɛ́ gɛ mɔ́ {0} háwa"}}},minute:{displayName:"Minute",relativeTime:{future:{one:"nǔu {0} minút",other:"nǔu {0} minút"},past:{one:"ɛ́ gɛ́ mɔ́ minút {0}",other:"ɛ́ gɛ́ mɔ́ minút {0}"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"jgo-CM",parentLocale:"jgo"}),ReactIntl.__addLocaleData({locale:"ji",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1];return b?"other":1==a&&d?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"jmc",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Maka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Mori",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Mfiri",relative:{0:"Inu",1:"Ngama","-1":"Ukou"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Saa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Dakyika",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sekunde",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"jmc-TZ",parentLocale:"jmc"}),ReactIntl.__addLocaleData({locale:"jv",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"jw",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ka",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=d.slice(-2);return b?1==d?"one":0==d||e>=2&&20>=e||40==e||60==e||80==e?"many":"other":1==a?"one":"other"},fields:{year:{displayName:"წელი",relative:{0:"ამ წელს",1:"მომავალ წელს","-1":"გასულ წელს"},relativeTime:{future:{one:"{0} წელიწადში",other:"{0} წელიწადში"},past:{one:"{0} წლის წინ",other:"{0} წლის წინ"}}},month:{displayName:"თვე",relative:{0:"ამ თვეში",1:"მომავალ თვეს","-1":"გასულ თვეს"},relativeTime:{future:{one:"{0} თვეში",other:"{0} თვეში"},past:{one:"{0} თვის წინ",other:"{0} თვის წინ"}}},day:{displayName:"დღე",relative:{0:"დღეს",1:"ხვალ",2:"ზეგ","-1":"გუშინ","-2":"გუშინწინ"},relativeTime:{future:{one:"{0} დღეში",other:"{0} დღეში"},past:{one:"{0} დღის წინ",other:"{0} დღის წინ"}}},hour:{displayName:"საათი",relativeTime:{future:{one:"{0} საათში",other:"{0} საათში"},past:{one:"{0} საათის წინ",other:"{0} საათის წინ"}}},minute:{displayName:"წუთი",relativeTime:{future:{one:"{0} წუთში",other:"{0} წუთში"},past:{one:"{0} წუთის წინ",other:"{0} წუთის წინ"}}},second:{displayName:"წამი",relative:{0:"ახლა"},relativeTime:{future:{one:"{0} წამში",other:"{0} წამში"},past:{one:"{0} წამის წინ",other:"{0} წამის წინ"}}}}}),ReactIntl.__addLocaleData({locale:"ka-GE",parentLocale:"ka"}),ReactIntl.__addLocaleData({locale:"kab",pluralRuleFunction:function(a,b){return b?"other":a>=0&&2>a?"one":"other"},fields:{year:{displayName:"Aseggas",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Aggur",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Ass",relative:{0:"Ass-a",1:"Azekka","-1":"Iḍelli"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Tamert",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Tamrect",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Tasint",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"kab-DZ",parentLocale:"kab"}),ReactIntl.__addLocaleData({locale:"kaj",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"
}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"kam",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Mwaka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Mwai",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Mũthenya",relative:{0:"Ũmũnthĩ",1:"Ũnĩ","-1":"Ĩyoo"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Saa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Ndatĩka",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"sekondi",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"kam-KE",parentLocale:"kam"}),ReactIntl.__addLocaleData({locale:"kcg",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"kde",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Mwaka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Mwedi",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Lihiku",relative:{0:"Nelo",1:"Nundu","-1":"Lido"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Saa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Dakika",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sekunde",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"kde-TZ",parentLocale:"kde"}),ReactIntl.__addLocaleData({locale:"kea",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Anu",relative:{0:"es anu li",1:"prósimu anu","-1":"anu pasadu"},relativeTime:{future:{other:"di li {0} anu"},past:{other:"a ten {0} anu"}}},month:{displayName:"Mes",relative:{0:"es mes li",1:"prósimu mes","-1":"mes pasadu"},relativeTime:{future:{other:"di li {0} mes"},past:{other:"a ten {0} mes"}}},day:{displayName:"Dia",relative:{0:"oji",1:"manha","-1":"onti"},relativeTime:{future:{other:"di li {0} dia"},past:{other:"a ten {0} dia"}}},hour:{displayName:"Ora",relativeTime:{future:{other:"di li {0} ora"},past:{other:"a ten {0} ora"}}},minute:{displayName:"Minutu",relativeTime:{future:{other:"di li {0} minutu"},past:{other:"a ten {0} minutu"}}},second:{displayName:"Sigundu",relative:{0:"now"},relativeTime:{future:{other:"di li {0} sigundu"},past:{other:"a ten {0} sigundu"}}}}}),ReactIntl.__addLocaleData({locale:"kea-CV",parentLocale:"kea"}),ReactIntl.__addLocaleData({locale:"khq",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Jiiri",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Handu",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Jaari",relative:{0:"Hõo",1:"Suba","-1":"Bi"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Guuru",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Miniti",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Miti",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"khq-ML",parentLocale:"khq"}),ReactIntl.__addLocaleData({locale:"ki",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Mwaka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Mweri",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Mũthenya",relative:{0:"Ũmũthĩ",1:"Rũciũ","-1":"Ira"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Ithaa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Ndagĩka",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sekunde",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ki-KE",parentLocale:"ki"}),ReactIntl.__addLocaleData({locale:"kk",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=Number(c[0])==a,e=d&&c[0].slice(-1);return b?6==e||9==e||d&&0==e&&0!=a?"many":"other":1==a?"one":"other"},fields:{year:{displayName:"Жыл",relative:{0:"биылғы жыл",1:"келесі жыл","-1":"былтырғы жыл"},relativeTime:{future:{one:"{0} жылдан кейін",other:"{0} жылдан кейін"},past:{one:"{0} жыл бұрын",other:"{0} жыл бұрын"}}},month:{displayName:"Ай",relative:{0:"осы ай",1:"келесі ай","-1":"өткен ай"},relativeTime:{future:{one:"{0} айдан кейін",other:"{0} айдан кейін"},past:{one:"{0} ай бұрын",other:"{0} ай бұрын"}}},day:{displayName:"күн",relative:{0:"бүгін",1:"ертең",2:"арғы күні","-1":"кеше","-2":"алдыңғы күні"},relativeTime:{future:{one:"{0} күннен кейін",other:"{0} күннен кейін"},past:{one:"{0} күн бұрын",other:"{0} күн бұрын"}}},hour:{displayName:"Сағат",relativeTime:{future:{one:"{0} сағаттан кейін",other:"{0} сағаттан кейін"},past:{one:"{0} сағат бұрын",other:"{0} сағат бұрын"}}},minute:{displayName:"Минут",relativeTime:{future:{one:"{0} минуттан кейін",other:"{0} минуттан кейін"},past:{one:"{0} минут бұрын",other:"{0} минут бұрын"}}},second:{displayName:"Секунд",relative:{0:"қазір"},relativeTime:{future:{one:"{0} секундтан кейін",other:"{0} секундтан кейін"},past:{one:"{0} секунд бұрын",other:"{0} секунд бұрын"}}}}}),ReactIntl.__addLocaleData({locale:"kk-Cyrl",parentLocale:"kk"}),ReactIntl.__addLocaleData({locale:"kk-Cyrl-KZ",parentLocale:"kk-Cyrl"}),ReactIntl.__addLocaleData({locale:"kkj",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"muka",1:"nɛmɛnɔ","-1":"kwey"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"kkj-CM",parentLocale:"kkj"}),ReactIntl.__addLocaleData({locale:"kl",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"ukioq",relative:{0:"manna ukioq",1:"tulleq ukioq","-1":"kingulleq ukioq"},relativeTime:{future:{one:"om {0} ukioq",other:"om {0} ukioq"},past:{one:"for {0} ukioq siden",other:"for {0} ukioq siden"}}},month:{displayName:"qaammat",relative:{0:"manna qaammat",1:"tulleq qaammat","-1":"kingulleq qaammat"},relativeTime:{future:{one:"om {0} qaammat",other:"om {0} qaammat"},past:{one:"for {0} qaammat siden",other:"for {0} qaammat siden"}}},day:{displayName:"ulloq",relative:{0:"ullumi",1:"aqagu",2:"aqaguagu","-1":"ippassaq","-2":"ippassaani"},relativeTime:{future:{one:"om {0} ulloq unnuarlu",other:"om {0} ulloq unnuarlu"},past:{one:"for {0} ulloq unnuarlu siden",other:"for {0} ulloq unnuarlu siden"}}},hour:{displayName:"nalunaaquttap-akunnera",relativeTime:{future:{one:"om {0} nalunaaquttap-akunnera",other:"om {0} nalunaaquttap-akunnera"},past:{one:"for {0} nalunaaquttap-akunnera siden",other:"for {0} nalunaaquttap-akunnera siden"}}},minute:{displayName:"minutsi",relativeTime:{future:{one:"om {0} minutsi",other:"om {0} minutsi"},past:{one:"for {0} minutsi siden",other:"for {0} minutsi siden"}}},second:{displayName:"sekundi",relative:{0:"now"},relativeTime:{future:{one:"om {0} sekundi",other:"om {0} sekundi"},past:{one:"for {0} sekundi siden",other:"for {0} sekundi siden"}}}}}),ReactIntl.__addLocaleData({locale:"kl-GL",parentLocale:"kl"}),ReactIntl.__addLocaleData({locale:"kln",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Kenyit",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Arawet",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Betut",relative:{0:"Raini",1:"Mutai","-1":"Amut"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Sait",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minitit",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sekondit",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"kln-KE",parentLocale:"kln"}),ReactIntl.__addLocaleData({locale:"km",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"ឆ្នាំ",relative:{0:"ឆ្នាំនេះ",1:"ឆ្នាំក្រោយ","-1":"ឆ្នាំមុន"},relativeTime:{future:{other:"ក្នុងរយៈពេល {0} ឆ្នាំ"},past:{other:"{0} ឆ្នាំមុន"}}},month:{displayName:"ខែ",relative:{0:"ខែនេះ",1:"ខែក្រោយ","-1":"ខែមុន"},relativeTime:{future:{other:"ក្នុងរយៈពេល {0} ខែ"},past:{other:"{0} ខែមុន"}}},day:{displayName:"ថ្ងៃ",relative:{0:"ថ្ងៃនេះ",1:"ថ្ងៃស្អែក",2:"ខានស្អែក","-1":"ម្សិលមិញ","-2":"ម្សិលម៉្ងៃ"},relativeTime:{future:{other:"ក្នុងរយៈពេល {0} ថ្ងៃ"},past:{other:"{0} ថ្ងៃមុន"}}},hour:{displayName:"ម៉ោង",relativeTime:{future:{other:"ក្នុងរយៈពេល {0} ម៉ោង"},past:{other:"{0} ម៉ោងមុន"}}},minute:{displayName:"នាទី",relativeTime:{future:{other:"ក្នុងរយៈពេល {0} នាទី"},past:{other:"{0} នាទីមុន"}}},second:{displayName:"វិនាទី",relative:{0:"ឥឡូវ"},relativeTime:{future:{other:"ក្នុងរយៈពេល {0} វិនាទី"},past:{other:"{0} វិនាទីមុន"}}}}}),ReactIntl.__addLocaleData({locale:"km-KH",parentLocale:"km"}),ReactIntl.__addLocaleData({locale:"kn",pluralRuleFunction:function(a,b){return b?"other":a>=0&&1>=a?"one":"other"},fields:{year:{displayName:"ವರ್ಷ",relative:{0:"ಈ ವರ್ಷ",1:"ಮುಂದಿನ ವರ್ಷ","-1":"ಕಳೆದ ವರ್ಷ"},relativeTime:{future:{one:"{0} ವರ್ಷದಲ್ಲಿ",other:"{0} ವರ್ಷಗಳಲ್ಲಿ"},past:{one:"{0} ವರ್ಷದ ಹಿಂದೆ",other:"{0} ವರ್ಷಗಳ ಹಿಂದೆ"}}},month:{displayName:"ತಿಂಗಳು",relative:{0:"ಈ ತಿಂಗಳು",1:"ಮುಂದಿನ ತಿಂಗಳು","-1":"ಕಳೆದ ತಿಂಗಳು"},relativeTime:{future:{one:"{0} ತಿಂಗಳಲ್ಲಿ",other:"{0} ತಿಂಗಳುಗಳಲ್ಲಿ"},past:{one:"{0} ತಿಂಗಳುಗಳ ಹಿಂದೆ",other:"{0} ತಿಂಗಳುಗಳ ಹಿಂದೆ"}}},day:{displayName:"ದಿನ",relative:{0:"ಇಂದು",1:"ನಾಳೆ",2:"ನಾಡಿದ್ದು","-1":"ನಿನ್ನೆ","-2":"ಮೊನ್ನೆ"},relativeTime:{future:{one:"{0} ದಿನದಲ್ಲಿ",other:"{0} ದಿನಗಳಲ್ಲಿ"},past:{one:"{0} ದಿನದ ಹಿಂದೆ",other:"{0} ದಿನಗಳ ಹಿಂದೆ"}}},hour:{displayName:"ಗಂಟೆ",relativeTime:{future:{one:"{0} ಗಂಟೆಯಲ್ಲಿ",other:"{0} ಗಂಟೆಗಳಲ್ಲಿ"},past:{one:"{0} ಗಂಟೆ ಹಿಂದೆ",other:"{0} ಗಂಟೆಗಳ ಹಿಂದೆ"}}},minute:{displayName:"ನಿಮಿಷ",relativeTime:{future:{one:"{0} ನಿಮಿಷದಲ್ಲಿ",other:"{0} ನಿಮಿಷಗಳಲ್ಲಿ"},past:{one:"{0} ನಿಮಿಷಗಳ ಹಿಂದೆ",other:"{0} ನಿಮಿಷಗಳ ಹಿಂದೆ"}}},second:{displayName:"ಸೆಕೆಂಡ್",relative:{0:"ಇದೀಗ"},relativeTime:{future:{one:"{0} ಸೆಕೆಂಡ್ನಲ್ಲಿ",other:"{0} ಸೆಕೆಂಡ್ಗಳಲ್ಲಿ"},past:{one:"{0} ಸೆಕೆಂಡ್ ಹಿಂದೆ",other:"{0} ಸೆಕೆಂಡುಗಳ ಹಿಂದೆ"}}}}}),ReactIntl.__addLocaleData({locale:"kn-IN",parentLocale:"kn"}),ReactIntl.__addLocaleData({locale:"ko",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"년",relative:{0:"올해",1:"내년","-1":"작년"},relativeTime:{future:{other:"{0}년 후"},past:{other:"{0}년 전"}}},month:{displayName:"월",relative:{0:"이번 달",1:"다음 달","-1":"지난달"},relativeTime:{future:{other:"{0}개월 후"},past:{other:"{0}개월 전"}}},day:{displayName:"일",relative:{0:"오늘",1:"내일",2:"모레","-1":"어제","-2":"그저께"},relativeTime:{future:{other:"{0}일 후"},past:{other:"{0}일 전"}}},hour:{displayName:"시",relativeTime:{future:{other:"{0}시간 후"},past:{other:"{0}시간 전"}}},minute:{displayName:"분",relativeTime:{future:{other:"{0}분 후"},past:{other:"{0}분 전"}}},second:{displayName:"초",relative:{0:"지금"},relativeTime:{future:{other:"{0}초 후"},past:{other:"{0}초 전"}}}}}),ReactIntl.__addLocaleData({locale:"ko-KP",parentLocale:"ko"}),ReactIntl.__addLocaleData({locale:"ko-KR",parentLocale:"ko"}),ReactIntl.__addLocaleData({locale:"kok",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"kok-IN",parentLocale:"kok"}),ReactIntl.__addLocaleData({locale:"ks",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"ؤری",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"رٮ۪تھ",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"دۄہ",relative:{0:"اَز",1:"پگاہ","-1":"راتھ"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"گٲنٛٹہٕ",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"مِنَٹ",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"سٮ۪کَنڑ",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ks-Arab",parentLocale:"ks"}),ReactIntl.__addLocaleData({locale:"ks-Arab-IN",parentLocale:"ks-Arab"}),ReactIntl.__addLocaleData({locale:"ksb",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Ng’waka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Ng’ezi",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Siku",relative:{0:"Evi eo",1:"Keloi","-1":"Ghuo"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Saa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Dakika",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sekunde",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ksb-TZ",parentLocale:"ksb"}),ReactIntl.__addLocaleData({locale:"ksf",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Bǝk",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Ŋwíí",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Ŋwós",relative:{0:"Gɛ́ɛnǝ",1:"Ridúrǝ́","-1":"Rinkɔɔ́"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Cámɛɛn",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Mǝnít",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Háu",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ksf-CM",parentLocale:"ksf"}),ReactIntl.__addLocaleData({locale:"ksh",pluralRuleFunction:function(a,b){return b?"other":0==a?"zero":1==a?"one":"other"},fields:{year:{displayName:"Johr",relative:{0:"diese Johr",1:"nächste Johr","-1":"läz Johr"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Mohnd",relative:{0:"diese Mohnd",1:"nächste Mohnd","-1":"lätzde Mohnd"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Daach",relative:{0:"hück",1:"morje",2:"övvermorje","-1":"jestere","-2":"vörjestere"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Schtund",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Menutt",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sekond",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ksh-DE",parentLocale:"ksh"}),ReactIntl.__addLocaleData({locale:"ku",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"kw",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":2==a?"two":"other"},fields:{year:{displayName:"Bledhen",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Mis",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Dedh",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Eur",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"kw-GB",parentLocale:"kw"}),ReactIntl.__addLocaleData({locale:"ky",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"жыл",relative:{0:"быйыл",1:"эмдиги жылы","-1":"былтыр"},relativeTime:{future:{one:"{0} жылдан кийин",other:"{0} жылдан кийин"},past:{one:"{0} жыл мурун",other:"{0} жыл мурун"}}},month:{displayName:"ай",relative:{0:"бул айда",1:"эмдиги айда","-1":"өткөн айда"},relativeTime:{future:{one:"{0} айдан кийин",other:"{0} айдан кийин"},past:{one:"{0} ай мурун",other:"{0} ай мурун"}}},day:{displayName:"күн",relative:{0:"бүгүн",1:"эртеӊ",2:"бүрсүгүнү","-1":"кечээ","-2":"мурдагы күнү"},relativeTime:{future:{one:"{0} күндөн кийин",other:"{0} күндөн кийин"},past:{one:"{0} күн мурун",other:"{0} күн мурун"}}},hour:{displayName:"саат",relativeTime:{future:{one:"{0} сааттан кийин",other:"{0} сааттан кийин"},past:{one:"{0} саат мурун",other:"{0} саат мурун"}}},minute:{displayName:"мүнөт",relativeTime:{future:{one:"{0} мүнөттөн кийин",other:"{0} мүнөттөн кийин"},past:{one:"{0} мүнөт мурун",other:"{0} мүнөт мурун"}}},second:{displayName:"секунд",relative:{0:"азыр"},relativeTime:{future:{one:"{0} секунддан кийин",other:"{0} секунддан кийин"},past:{one:"{0} секунд мурун",other:"{0} секунд мурун"}}}}}),ReactIntl.__addLocaleData({locale:"ky-Cyrl",parentLocale:"ky"}),ReactIntl.__addLocaleData({locale:"ky-Cyrl-KG",parentLocale:"ky-Cyrl"}),ReactIntl.__addLocaleData({locale:"lag",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0];return b?"other":0==a?"zero":0!=d&&1!=d||0==a?"other":"one"},fields:{year:{displayName:"Mwaáka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Mweéri",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Sikʉ",relative:{0:"Isikʉ",1:"Lamʉtoondo","-1":"Niijo"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Sáa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Dakíka",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sekúunde",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"lag-TZ",parentLocale:"lag"}),ReactIntl.__addLocaleData({locale:"lb",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Joer",relative:{0:"dëst Joer",1:"nächst Joer","-1":"lescht Joer"},relativeTime:{future:{one:"an {0} Joer",other:"a(n) {0} Joer"},past:{one:"virun {0} Joer",other:"viru(n) {0} Joer"}}},month:{displayName:"Mount",relative:{0:"dëse Mount",1:"nächste Mount","-1":"leschte Mount"},relativeTime:{future:{one:"an {0} Mount",other:"a(n) {0} Méint"},past:{one:"virun {0} Mount",other:"viru(n) {0} Méint"}}},day:{displayName:"Dag",relative:{0:"haut",1:"muer","-1":"gëschter"},relativeTime:{future:{one:"an {0} Dag",other:"a(n) {0} Deeg"},past:{one:"virun {0} Dag",other:"viru(n) {0} Deeg"}}},hour:{displayName:"Stonn",relativeTime:{future:{one:"an {0} Stonn",other:"a(n) {0} Stonnen"},past:{one:"virun {0} Stonn",other:"viru(n) {0} Stonnen"}}},minute:{displayName:"Minutt",relativeTime:{future:{one:"an {0} Minutt",other:"a(n) {0} Minutten"},past:{one:"virun {0} Minutt",other:"viru(n) {0} Minutten"}}},second:{displayName:"Sekonn",relative:{0:"now"},relativeTime:{future:{one:"an {0} Sekonn",other:"a(n) {0} Sekonnen"},past:{one:"virun {0} Sekonn",other:"viru(n) {0} Sekonnen"}}}}}),ReactIntl.__addLocaleData({locale:"lb-LU",parentLocale:"lb"}),ReactIntl.__addLocaleData({locale:"lg",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Mwaka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Mwezi",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Lunaku",relative:{0:"Lwaleero",1:"Nkya","-1":"Ggulo"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Saawa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Dakiika",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Kasikonda",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"lg-UG",parentLocale:"lg"}),ReactIntl.__addLocaleData({locale:"lkt",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Ómakȟa",relative:{0:"Lé ómakȟa kiŋ",1:"Tȟokáta ómakȟa kiŋháŋ","-1":"Ómakȟa kʼuŋ héhaŋ"},relativeTime:{future:{other:"Letáŋhaŋ ómakȟa {0} kiŋháŋ"},past:{other:"Hékta ómakȟa {0} kʼuŋ héhaŋ"}}},month:{displayName:"Wí",relative:{0:"Lé wí kiŋ",1:"Wí kiŋháŋ","-1":"Wí kʼuŋ héhaŋ"},relativeTime:{future:{other:"Letáŋhaŋ wíyawapi {0} kiŋháŋ"},past:{other:"Hékta wíyawapi {0} kʼuŋ héhaŋ"}}},day:{displayName:"Aŋpétu",relative:{0:"Lé aŋpétu kiŋ",1:"Híŋhaŋni kiŋháŋ","-1":"Lé aŋpétu kiŋ"},relativeTime:{future:{other:"Letáŋhaŋ {0}-čháŋ kiŋháŋ"},past:{other:"Hékta {0}-čháŋ k’uŋ héhaŋ"}}},hour:{displayName:"Owápȟe",relativeTime:{future:{other:"Letáŋhaŋ owápȟe {0} kiŋháŋ"},past:{other:"Hékta owápȟe {0} kʼuŋ héhaŋ"}}},minute:{displayName:"Owápȟe oȟʼáŋkȟo",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Okpí",relative:{0:"now"},relativeTime:{future:{other:"Letáŋhaŋ okpí {0} kiŋháŋ"},past:{other:"Hékta okpí {0} k’uŋ héhaŋ"}}}}}),ReactIntl.__addLocaleData({locale:"lkt-US",parentLocale:"lkt"}),ReactIntl.__addLocaleData({locale:"ln",pluralRuleFunction:function(a,b){return b?"other":0==a||1==a?"one":"other"},fields:{year:{displayName:"Mobú",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Sánzá",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Mokɔlɔ",relative:{0:"Lɛlɔ́",1:"Lóbi ekoyâ","-1":"Lóbi elékí"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Ngonga",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Monúti",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sɛkɔ́ndɛ",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ln-AO",parentLocale:"ln"}),ReactIntl.__addLocaleData({locale:"ln-CD",parentLocale:"ln"}),ReactIntl.__addLocaleData({locale:"ln-CF",parentLocale:"ln"}),ReactIntl.__addLocaleData({locale:"ln-CG",parentLocale:"ln"}),ReactIntl.__addLocaleData({locale:"lo",pluralRuleFunction:function(a,b){return b&&1==a?"one":"other"},fields:{year:{displayName:"ປີ",relative:{0:"ປີນີ້",1:"ປີໜ້າ","-1":"ປີກາຍ"},relativeTime:{future:{other:"ໃນອີກ {0} ປີ"},past:{other:"{0} ປີກ່ອນ"}}},month:{displayName:"ເດືອນ",relative:{0:"ເດືອນນີ້",1:"ເດືອນໜ້າ","-1":"ເດືອນແລ້ວ"},relativeTime:{future:{other:"ໃນອີກ {0} ເດືອນ"},past:{other:"{0} ເດືອນກ່ອນ"}}},day:{displayName:"ມື້",relative:{0:"ມື້ນີ້",1:"ມື້ອື່ນ",2:"ມື້ຮື","-1":"ມື້ວານ","-2":"ມື້ກ່ອນ"},relativeTime:{future:{other:"ໃນອີກ {0} ມື້"},past:{other:"{0} ມື້ກ່ອນ"}}},hour:{displayName:"ຊົ່ວໂມງ",relativeTime:{future:{other:"ໃນອີກ {0} ຊົ່ວໂມງ"},past:{other:"{0} ຊົ່ວໂມງກ່ອນ"}}},minute:{displayName:"ນາທີ",relativeTime:{future:{other:"{0} ໃນອີກ 0 ນາທີ"},past:{other:"{0} ນາທີກ່ອນ"}}},second:{displayName:"ວິນາທີ",relative:{0:"ຕອນນີ້"},relativeTime:{future:{other:"ໃນອີກ {0} ວິນາທີ"},past:{other:"{0} ວິນາທີກ່ອນ"}}}}}),ReactIntl.__addLocaleData({locale:"lo-LA",parentLocale:"lo"}),ReactIntl.__addLocaleData({locale:"lt",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[1]||"",e=Number(c[0])==a,f=e&&c[0].slice(-1),g=e&&c[0].slice(-2);return b?"other":1==f&&(11>g||g>19)?"one":f>=2&&9>=f&&(11>g||g>19)?"few":0!=d?"many":"other"},fields:{year:{displayName:"Metai",relative:{0:"šiais metais",1:"kitais metais","-1":"praėjusiais metais"},relativeTime:{future:{one:"po {0} metų",few:"po {0} metų",many:"po {0} metų",other:"po {0} metų"},past:{one:"prieš {0} metus",few:"prieš {0} metus",many:"prieš {0} metų",other:"prieš {0} metų"}}},month:{displayName:"Mėnuo",relative:{0:"šį mėnesį",1:"kitą mėnesį","-1":"praėjusį mėnesį"},relativeTime:{future:{one:"po {0} mėnesio",few:"po {0} mėnesių",many:"po {0} mėnesio",other:"po {0} mėnesių"},past:{one:"prieš {0} mėnesį",few:"prieš {0} mėnesius",many:"prieš {0} mėnesio",other:"prieš {0} mėnesių"}}},day:{displayName:"Diena",relative:{0:"šiandien",1:"rytoj",2:"poryt","-1":"vakar","-2":"užvakar"},relativeTime:{future:{one:"po {0} dienos",few:"po {0} dienų",many:"po {0} dienos",other:"po {0} dienų"},past:{one:"prieš {0} dieną",few:"prieš {0} dienas",many:"prieš {0} dienos",other:"prieš {0} dienų"}}},hour:{displayName:"Valanda",relativeTime:{future:{one:"po {0} valandos",few:"po {0} valandų",many:"po {0} valandos",other:"po {0} valandų"},past:{one:"prieš {0} valandą",few:"prieš {0} valandas",many:"prieš {0} valandos",other:"prieš {0} valandų"}}},minute:{displayName:"Minutė",relativeTime:{future:{one:"po {0} minutės",few:"po {0} minučių",many:"po {0} minutės",other:"po {0} minučių"},past:{one:"prieš {0} minutę",few:"prieš {0} minutes",many:"prieš {0} minutės",other:"prieš {0} minučių"}}},second:{displayName:"Sekundė",relative:{0:"dabar"},relativeTime:{future:{one:"po {0} sekundės",few:"po {0} sekundžių",many:"po {0} sekundės",other:"po {0} sekundžių"},past:{one:"prieš {0} sekundę",few:"prieš {0} sekundes",many:"prieš {0} sekundės",other:"prieš {0} sekundžių"}}}}}),ReactIntl.__addLocaleData({locale:"lt-LT",parentLocale:"lt"}),ReactIntl.__addLocaleData({locale:"lu",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Tshidimu",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Ngondo",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Dituku",relative:{0:"Lelu",1:"Malaba","-1":"Makelela"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Diba",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Kasunsu",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Kasunsukusu",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"lu-CD",parentLocale:"lu"}),ReactIntl.__addLocaleData({locale:"luo",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"higa",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"dwe",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"chieng’",relative:{0:"kawuono",1:"kiny","-1":"nyoro"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"saa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"dakika",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"nyiriri mar saa",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"luo-KE",parentLocale:"luo"}),ReactIntl.__addLocaleData({locale:"luy",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Muhiga",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Mweri",relative:{
0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Ridiku",relative:{0:"Lero",1:"Mgamba","-1":"Mgorova"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Isaa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Idagika",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sekunde",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"luy-KE",parentLocale:"luy"}),ReactIntl.__addLocaleData({locale:"lv",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[1]||"",e=d.length,f=Number(c[0])==a,g=f&&c[0].slice(-1),h=f&&c[0].slice(-2),i=d.slice(-2),j=d.slice(-1);return b?"other":f&&0==g||h>=11&&19>=h||2==e&&i>=11&&19>=i?"zero":1==g&&11!=h||2==e&&1==j&&11!=i||2!=e&&1==j?"one":"other"},fields:{year:{displayName:"Gads",relative:{0:"šajā gadā",1:"nākamajā gadā","-1":"pagājušajā gadā"},relativeTime:{future:{zero:"pēc {0} gadiem",one:"pēc {0} gada",other:"pēc {0} gadiem"},past:{zero:"pirms {0} gadiem",one:"pirms {0} gada",other:"pirms {0} gadiem"}}},month:{displayName:"Mēnesis",relative:{0:"šajā mēnesī",1:"nākamajā mēnesī","-1":"pagājušajā mēnesī"},relativeTime:{future:{zero:"pēc {0} mēnešiem",one:"pēc {0} mēneša",other:"pēc {0} mēnešiem"},past:{zero:"pirms {0} mēnešiem",one:"pirms {0} mēneša",other:"pirms {0} mēnešiem"}}},day:{displayName:"diena",relative:{0:"šodien",1:"rīt",2:"parīt","-1":"vakar","-2":"aizvakar"},relativeTime:{future:{zero:"pēc {0} dienām",one:"pēc {0} dienas",other:"pēc {0} dienām"},past:{zero:"pirms {0} dienām",one:"pirms {0} dienas",other:"pirms {0} dienām"}}},hour:{displayName:"Stundas",relativeTime:{future:{zero:"pēc {0} stundām",one:"pēc {0} stundas",other:"pēc {0} stundām"},past:{zero:"pirms {0} stundām",one:"pirms {0} stundas",other:"pirms {0} stundām"}}},minute:{displayName:"Minūtes",relativeTime:{future:{zero:"pēc {0} minūtēm",one:"pēc {0} minūtes",other:"pēc {0} minūtēm"},past:{zero:"pirms {0} minūtēm",one:"pirms {0} minūtes",other:"pirms {0} minūtēm"}}},second:{displayName:"Sekundes",relative:{0:"tagad"},relativeTime:{future:{zero:"pēc {0} sekundēm",one:"pēc {0} sekundes",other:"pēc {0} sekundēm"},past:{zero:"pirms {0} sekundēm",one:"pirms {0} sekundes",other:"pirms {0} sekundēm"}}}}}),ReactIntl.__addLocaleData({locale:"lv-LV",parentLocale:"lv"}),ReactIntl.__addLocaleData({locale:"mas",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Ɔlárì",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Ɔlápà",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Ɛnkɔlɔ́ŋ",relative:{0:"Táatá",1:"Tááisérè","-1":"Ŋolé"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Ɛ́sáâ",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Oldákikaè",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sekunde",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"mas-KE",parentLocale:"mas"}),ReactIntl.__addLocaleData({locale:"mas-TZ",parentLocale:"mas"}),ReactIntl.__addLocaleData({locale:"mer",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Mwaka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Mweri",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Ntukũ",relative:{0:"Narua",1:"Rũjũ","-1":"Ĩgoro"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Ĩthaa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Ndagika",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sekondi",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"mer-KE",parentLocale:"mer"}),ReactIntl.__addLocaleData({locale:"mfe",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Lane",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Mwa",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Zour",relative:{0:"Zordi",1:"Demin","-1":"Yer"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Ler",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minit",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Segonn",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"mfe-MU",parentLocale:"mfe"}),ReactIntl.__addLocaleData({locale:"mg",pluralRuleFunction:function(a,b){return b?"other":0==a||1==a?"one":"other"},fields:{year:{displayName:"Taona",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Volana",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Andro",relative:{0:"Anio",1:"Rahampitso","-1":"Omaly"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Ora",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minitra",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Segondra",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"mg-MG",parentLocale:"mg"}),ReactIntl.__addLocaleData({locale:"mgh",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"yaka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"mweri",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"nihuku",relative:{0:"lel’lo",1:"me’llo","-1":"n’chana"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"isaa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"idakika",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"isekunde",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"mgh-MZ",parentLocale:"mgh"}),ReactIntl.__addLocaleData({locale:"mgo",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"fituʼ",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"iməg",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"+{0} m",other:"+{0} m"},past:{one:"-{0} m",other:"-{0} m"}}},day:{displayName:"anəg",relative:{0:"tèchɔ̀ŋ",1:"isu",2:"isu ywi","-1":"ikwiri"},relativeTime:{future:{one:"+{0} d",other:"+{0} d"},past:{one:"-{0} d",other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{one:"+{0} h",other:"+{0} h"},past:{one:"-{0} h",other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{one:"+{0} min",other:"+{0} min"},past:{one:"-{0} min",other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{one:"+{0} s",other:"+{0} s"},past:{one:"-{0} s",other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"mgo-CM",parentLocale:"mgo"}),ReactIntl.__addLocaleData({locale:"mk",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=c[1]||"",f=!c[1],g=d.slice(-1),h=d.slice(-2),i=e.slice(-1);return b?1==g&&11!=h?"one":2==g&&12!=h?"two":7!=g&&8!=g||17==h||18==h?"other":"many":f&&1==g||1==i?"one":"other"},fields:{year:{displayName:"година",relative:{0:"оваа година",1:"следната година","-1":"минатата година"},relativeTime:{future:{one:"за {0} година",other:"за {0} години"},past:{one:"пред {0} година",other:"пред {0} години"}}},month:{displayName:"Месец",relative:{0:"овој месец",1:"следниот месец","-1":"минатиот месец"},relativeTime:{future:{one:"за {0} месец",other:"за {0} месеци"},past:{one:"пред {0} месец",other:"пред {0} месеци"}}},day:{displayName:"ден",relative:{0:"денес",1:"утре",2:"задутре","-1":"вчера","-2":"завчера"},relativeTime:{future:{one:"за {0} ден",other:"за {0} дена"},past:{one:"пред {0} ден",other:"пред {0} дена"}}},hour:{displayName:"Час",relativeTime:{future:{one:"за {0} час",other:"за {0} часа"},past:{one:"пред {0} час",other:"пред {0} часа"}}},minute:{displayName:"Минута",relativeTime:{future:{one:"за {0} минута",other:"за {0} минути"},past:{one:"пред {0} минута",other:"пред {0} минути"}}},second:{displayName:"Секунда",relative:{0:"сега"},relativeTime:{future:{one:"за {0} секунда",other:"за {0} секунди"},past:{one:"пред {0} секунда",other:"пред {0} секунди"}}}}}),ReactIntl.__addLocaleData({locale:"mk-MK",parentLocale:"mk"}),ReactIntl.__addLocaleData({locale:"ml",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"വർഷം",relative:{0:"ഈ വർഷം",1:"അടുത്തവർഷം","-1":"കഴിഞ്ഞ വർഷം"},relativeTime:{future:{one:"{0} വർഷത്തിൽ",other:"{0} വർഷത്തിൽ"},past:{one:"{0} വർഷം മുമ്പ്",other:"{0} വർഷം മുമ്പ്"}}},month:{displayName:"മാസം",relative:{0:"ഈ മാസം",1:"അടുത്ത മാസം","-1":"കഴിഞ്ഞ മാസം"},relativeTime:{future:{one:"{0} മാസത്തിൽ",other:"{0} മാസത്തിൽ"},past:{one:"{0} മാസം മുമ്പ്",other:"{0} മാസം മുമ്പ്"}}},day:{displayName:"ദിവസം",relative:{0:"ഇന്ന്",1:"നാളെ",2:"മറ്റന്നാൾ","-1":"ഇന്നലെ","-2":"മിനിഞ്ഞാന്ന്"},relativeTime:{future:{one:"{0} ദിവസത്തിൽ",other:"{0} ദിവസത്തിൽ"},past:{one:"{0} ദിവസം മുമ്പ്",other:"{0} ദിവസം മുമ്പ്"}}},hour:{displayName:"മണിക്കൂർ",relativeTime:{future:{one:"{0} മണിക്കൂറിൽ",other:"{0} മണിക്കൂറിൽ"},past:{one:"{0} മണിക്കൂർ മുമ്പ്",other:"{0} മണിക്കൂർ മുമ്പ്"}}},minute:{displayName:"മിനിട്ട്",relativeTime:{future:{one:"{0} മിനിറ്റിൽ",other:"{0} മിനിറ്റിൽ"},past:{one:"{0} മിനിറ്റ് മുമ്പ്",other:"{0} മിനിറ്റ് മുമ്പ്"}}},second:{displayName:"സെക്കൻറ്",relative:{0:"ഇപ്പോൾ"},relativeTime:{future:{one:"{0} സെക്കൻഡിൽ",other:"{0} സെക്കൻഡിൽ"},past:{one:"{0} സെക്കൻഡ് മുമ്പ്",other:"{0} സെക്കൻഡ് മുമ്പ്"}}}}}),ReactIntl.__addLocaleData({locale:"ml-IN",parentLocale:"ml"}),ReactIntl.__addLocaleData({locale:"mn",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Жил",relative:{0:"энэ жил",1:"ирэх жил","-1":"өнгөрсөн жил"},relativeTime:{future:{one:"{0} жилийн дараа",other:"{0} жилийн дараа"},past:{one:"{0} жилийн өмнө",other:"{0} жилийн өмнө"}}},month:{displayName:"Сар",relative:{0:"энэ сар",1:"ирэх сар","-1":"өнгөрсөн сар"},relativeTime:{future:{one:"{0} сарын дараа",other:"{0} сарын дараа"},past:{one:"{0} сарын өмнө",other:"{0} сарын өмнө"}}},day:{displayName:"Өдөр",relative:{0:"өнөөдөр",1:"маргааш",2:"нөгөөдөр","-1":"өчигдөр","-2":"уржигдар"},relativeTime:{future:{one:"{0} өдрийн дараа",other:"{0} өдрийн дараа"},past:{one:"{0} өдрийн өмнө",other:"{0} өдрийн өмнө"}}},hour:{displayName:"Цаг",relativeTime:{future:{one:"{0} цагийн дараа",other:"{0} цагийн дараа"},past:{one:"{0} цагийн өмнө",other:"{0} цагийн өмнө"}}},minute:{displayName:"Минут",relativeTime:{future:{one:"{0} минутын дараа",other:"{0} минутын дараа"},past:{one:"{0} минутын өмнө",other:"{0} минутын өмнө"}}},second:{displayName:"Секунд",relative:{0:"Одоо"},relativeTime:{future:{one:"{0} секундын дараа",other:"{0} секундын дараа"},past:{one:"{0} секундын өмнө",other:"{0} секундын өмнө"}}}}}),ReactIntl.__addLocaleData({locale:"mn-Cyrl",parentLocale:"mn"}),ReactIntl.__addLocaleData({locale:"mn-Cyrl-MN",parentLocale:"mn-Cyrl"}),ReactIntl.__addLocaleData({locale:"mn-Mong",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"mo",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1],e=Number(c[0])==a,f=e&&c[0].slice(-2);return b?1==a?"one":"other":1==a&&d?"one":!d||0==a||1!=a&&f>=1&&19>=f?"few":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"mr",pluralRuleFunction:function(a,b){return b?1==a?"one":2==a||3==a?"two":4==a?"few":"other":a>=0&&1>=a?"one":"other"},fields:{year:{displayName:"वर्ष",relative:{0:"हे वर्ष",1:"पुढील वर्ष","-1":"मागील वर्ष"},relativeTime:{future:{one:"{0} वर्षामध्ये",other:"{0} वर्षांमध्ये"},past:{one:"{0} वर्षापूर्वी",other:"{0} वर्षांपूर्वी"}}},month:{displayName:"महिना",relative:{0:"हा महिना",1:"पुढील महिना","-1":"मागील महिना"},relativeTime:{future:{one:"{0} महिन्यामध्ये",other:"{0} महिन्यांमध्ये"},past:{one:"{0} महिन्यापूर्वी",other:"{0} महिन्यांपूर्वी"}}},day:{displayName:"दिवस",relative:{0:"आज",1:"उद्या","-1":"काल"},relativeTime:{future:{one:"{0} दिवसामध्ये",other:"{0} दिवसांमध्ये"},past:{one:"{0} दिवसापूर्वी",other:"{0} दिवसांपूर्वी"}}},hour:{displayName:"तास",relativeTime:{future:{one:"{0} तासामध्ये",other:"{0} तासांमध्ये"},past:{one:"{0} तासापूर्वी",other:"{0} तासांपूर्वी"}}},minute:{displayName:"मिनिट",relativeTime:{future:{one:"{0} मिनिटामध्ये",other:"{0} मिनिटांमध्ये"},past:{one:"{0} मिनिटापूर्वी",other:"{0} मिनिटांपूर्वी"}}},second:{displayName:"सेकंद",relative:{0:"आत्ता"},relativeTime:{future:{one:"{0} सेकंदामध्ये",other:"{0} सेकंदांमध्ये"},past:{one:"{0} सेकंदापूर्वी",other:"{0} सेकंदांपूर्वी"}}}}}),ReactIntl.__addLocaleData({locale:"mr-IN",parentLocale:"mr"}),ReactIntl.__addLocaleData({locale:"ms",pluralRuleFunction:function(a,b){return b&&1==a?"one":"other"},fields:{year:{displayName:"Tahun",relative:{0:"tahun ini",1:"tahun depan","-1":"tahun lepas"},relativeTime:{future:{other:"dalam {0} saat"},past:{other:"{0} tahun lalu"}}},month:{displayName:"Bulan",relative:{0:"bulan ini",1:"bulan depan","-1":"bulan lalu"},relativeTime:{future:{other:"dalam {0} bulan"},past:{other:"{0} bulan lalu"}}},day:{displayName:"Hari",relative:{0:"hari ini",1:"esok",2:"lusa","-1":"semalam","-2":"kelmarin"},relativeTime:{future:{other:"dalam {0} hari"},past:{other:"{0} hari lalu"}}},hour:{displayName:"Jam",relativeTime:{future:{other:"dalam {0} jam"},past:{other:"{0} jam yang lalu"}}},minute:{displayName:"Minit",relativeTime:{future:{other:"dalam {0} minit"},past:{other:"{0} minit yang lalu"}}},second:{displayName:"Saat",relative:{0:"sekarang"},relativeTime:{future:{other:"dalam {0} saat"},past:{other:"{0} saat lalu"}}}}}),ReactIntl.__addLocaleData({locale:"ms-Arab",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ms-Latn",parentLocale:"ms"}),ReactIntl.__addLocaleData({locale:"ms-Latn-BN",parentLocale:"ms-Latn"}),ReactIntl.__addLocaleData({locale:"ms-Latn-MY",parentLocale:"ms-Latn"}),ReactIntl.__addLocaleData({locale:"ms-Latn-SG",parentLocale:"ms-Latn"}),ReactIntl.__addLocaleData({locale:"mt",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=Number(c[0])==a,e=d&&c[0].slice(-2);return b?"other":1==a?"one":0==a||e>=2&&10>=e?"few":e>=11&&19>=e?"many":"other"},fields:{year:{displayName:"Sena",relative:{0:"Din is-sena",1:"Is-sena d-dieħla","-1":"Is-sena li għaddiet"},relativeTime:{future:{other:"+{0} y"},past:{one:"{0} sena ilu",few:"{0} snin ilu",many:"{0} snin ilu",other:"{0} snin ilu"}}},month:{displayName:"Xahar",relative:{0:"Dan ix-xahar",1:"Ix-xahar id-dieħel","-1":"Ix-xahar li għadda"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Jum",relative:{0:"Illum",1:"Għada","-1":"Ilbieraħ"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Siegħa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minuta",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sekonda",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"mt-MT",parentLocale:"mt"}),ReactIntl.__addLocaleData({locale:"mua",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Syii",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Fĩi",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Zah’nane/ Comme",relative:{0:"Tǝ’nahko",1:"Tǝ’nane","-1":"Tǝsoo"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Cok comme",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Cok comme ma laŋne",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Cok comme ma laŋ tǝ biŋ",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"mua-CM",parentLocale:"mua"}),ReactIntl.__addLocaleData({locale:"my",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"နှစ်",relative:{0:"ယခုနှစ်",1:"နောက်နှစ်","-1":"ယမန်နှစ်"},relativeTime:{future:{other:"{0}နှစ်အတွင်း"},past:{other:"လွန်ခဲ့သော{0}နှစ်"}}},month:{displayName:"လ",relative:{0:"ယခုလ",1:"နောက်လ","-1":"ယမန်လ"},relativeTime:{future:{other:"{0}လအတွင်း"},past:{other:"လွန်ခဲ့သော{0}လ"}}},day:{displayName:"ရက်",relative:{0:"ယနေ့",1:"မနက်ဖြန်",2:"သဘက်ခါ","-1":"မနေ့က","-2":"တနေ့က"},relativeTime:{future:{other:"{0}ရက်အတွင်း"},past:{other:"လွန်ခဲ့သော{0}ရက်"}}},hour:{displayName:"နာရီ",relativeTime:{future:{other:"{0}နာရီအတွင်း"},past:{other:"လွန်ခဲ့သော{0}နာရီ"}}},minute:{displayName:"မိနစ်",relativeTime:{future:{other:"{0}မိနစ်အတွင်း"},past:{other:"လွန်ခဲ့သော{0}မိနစ်"}}},second:{displayName:"စက္ကန့်",relative:{0:"ယခု"},relativeTime:{future:{other:"{0}စက္ကန့်အတွင်း"},past:{other:"လွန်ခဲ့သော{0}စက္ကန့်"}}}}}),ReactIntl.__addLocaleData({locale:"my-MM",parentLocale:"my"}),ReactIntl.__addLocaleData({locale:"nah",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"naq",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":2==a?"two":"other"},fields:{year:{displayName:"Kurib",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"ǁKhâb",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Tsees",relative:{0:"Neetsee",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Iiri",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Haib",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"ǀGâub",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"naq-NA",parentLocale:"naq"}),ReactIntl.__addLocaleData({locale:"nb",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"År",relative:{0:"i år",1:"neste år","-1":"i fjor"},relativeTime:{future:{one:"om {0} år",other:"om {0} år"},past:{one:"for {0} år siden",other:"for {0} år siden"}}},month:{displayName:"Måned",relative:{0:"denne måneden",1:"neste måned","-1":"forrige måned"},relativeTime:{future:{one:"om {0} måned",other:"om {0} måneder"},past:{one:"for {0} måned siden",other:"for {0} måneder siden"}}},day:{displayName:"Dag",relative:{0:"i dag",1:"i morgen",2:"i overmorgen","-1":"i går","-2":"i forgårs"},relativeTime:{future:{one:"om {0} døgn",other:"om {0} døgn"},past:{one:"for {0} døgn siden",other:"for {0} døgn siden"}}},hour:{displayName:"Time",relativeTime:{future:{one:"om {0} time",other:"om {0} timer"},past:{one:"for {0} time siden",other:"for {0} timer siden"}}},minute:{displayName:"Minutt",relativeTime:{future:{one:"om {0} minutt",other:"om {0} minutter"},past:{one:"for {0} minutt siden",other:"for {0} minutter siden"}}},second:{displayName:"Sekund",relative:{0:"nå"},relativeTime:{future:{one:"om {0} sekund",other:"om {0} sekunder"},past:{one:"for {0} sekund siden",other:"for {0} sekunder siden"}}}}}),ReactIntl.__addLocaleData({locale:"nb-NO",parentLocale:"nb"}),ReactIntl.__addLocaleData({locale:"nb-SJ",parentLocale:"nb"}),ReactIntl.__addLocaleData({locale:"nd",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Umnyaka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Inyangacale",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Ilanga",relative:{0:"Lamuhla",1:"Kusasa","-1":"Izolo"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Ihola",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Umuzuzu",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Isekendi",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"nd-ZW",parentLocale:"nd"}),ReactIntl.__addLocaleData({locale:"ne",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=Number(c[0])==a;return b?d&&a>=1&&4>=a?"one":"other":1==a?"one":"other"},fields:{year:{displayName:"बर्ष",relative:{0:"यो वर्ष",1:"अर्को वर्ष","-1":"पहिलो वर्ष"},relativeTime:{future:{one:"{0} वर्षमा",other:"{0} वर्षमा"},past:{one:"{0} वर्ष अघि",other:"{0} वर्ष अघि"}}},month:{displayName:"महिना",relative:{0:"यो महिना",1:"अर्को महिना","-1":"गएको महिना"},relativeTime:{future:{one:"{0} महिनामा",other:"{0} महिनामा"},past:{one:"{0} महिना पहिले",other:"{0} महिना पहिले"}}},day:{displayName:"बार",relative:{0:"आज",1:"भोली","-1":"हिजो","-2":"अस्ति"},relativeTime:{future:{one:"{0} दिनमा",other:"{0} दिनमा"},past:{one:"{0} दिन पहिले",other:"{0} दिन पहिले"}}},hour:{displayName:"घण्टा",relativeTime:{future:{one:"{0} घण्टामा",other:"{0} घण्टामा"},past:{one:"{0} घण्टा पहिले",other:"{0} घण्टा पहिले"}}},minute:{displayName:"मिनेट",relativeTime:{future:{one:"{0} मिनेटमा",other:"{0} मिनेटमा"},past:{one:"{0} मिनेट पहिले",other:"{0} मिनेट पहिले"}}},second:{displayName:"दोस्रो",relative:{0:"अब"},relativeTime:{future:{one:"{0} सेकेण्डमा",other:"{0} सेकेण्डमा"},past:{one:"{0} सेकेण्ड पहिले",other:"{0} सेकेण्ड पहिले"}}}}}),ReactIntl.__addLocaleData({locale:"ne-IN",parentLocale:"ne",fields:{year:{displayName:"वर्ष",relative:{0:"यो वर्ष",1:"अर्को वर्ष","-1":"पहिलो वर्ष"},relativeTime:{future:{one:"{0} वर्षमा",other:"{0} वर्षमा"},past:{one:"{0} वर्ष अघि",other:"{0} वर्ष अघि"}}},month:{displayName:"महिना",relative:{0:"यो महिना",1:"अर्को महिना","-1":"गएको महिना"},relativeTime:{future:{one:"{0} महिनामा",other:"{0} महिनामा"},past:{one:"{0} महिना पहिले",other:"{0} महिना पहिले"}}},day:{displayName:"वार",relative:{0:"आज",1:"भोली",2:"पर्सि","-1":"हिजो","-2":"अस्ति"},relativeTime:{future:{one:"{0} दिनमा",other:"{0} दिनमा"},past:{one:"{0} दिन पहिले",other:"{0} दिन पहिले"}}},hour:{displayName:"घण्टा",relativeTime:{future:{one:"{0} घण्टामा",other:"{0} घण्टामा"},past:{one:"{0} घण्टा पहिले",other:"{0} घण्टा पहिले"}}},minute:{displayName:"मिनेट",relativeTime:{future:{one:"{0} मिनेटमा",other:"{0} मिनेटमा"},past:{one:"{0} मिनेट पहिले",other:"{0} मिनेट पहिले"}}},second:{displayName:"सेकेन्ड",relative:{0:"अब"},relativeTime:{future:{one:"{0} सेकेण्डमा",other:"{0} सेकेण्डमा"},past:{one:"{0} सेकेण्ड पहिले",other:"{0} सेकेण्ड पहिले"}}}}}),ReactIntl.__addLocaleData({locale:"ne-NP",parentLocale:"ne"}),ReactIntl.__addLocaleData({locale:"nl",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1];return b?"other":1==a&&d?"one":"other"},fields:{year:{displayName:"Jaar",relative:{0:"dit jaar",1:"volgend jaar","-1":"vorig jaar"},relativeTime:{future:{one:"over {0} jaar",other:"over {0} jaar"},past:{one:"{0} jaar geleden",other:"{0} jaar geleden"}}},month:{displayName:"Maand",relative:{0:"deze maand",1:"volgende maand","-1":"vorige maand"},relativeTime:{future:{one:"over {0} maand",other:"over {0} maanden"},past:{one:"{0} maand geleden",other:"{0} maanden geleden"}}},day:{displayName:"Dag",relative:{0:"vandaag",1:"morgen",2:"overmorgen","-1":"gisteren","-2":"eergisteren"},relativeTime:{future:{one:"over {0} dag",other:"over {0} dagen"},past:{one:"{0} dag geleden",other:"{0} dagen geleden"}}},hour:{displayName:"Uur",relativeTime:{future:{one:"over {0} uur",other:"over {0} uur"},past:{one:"{0} uur geleden",other:"{0} uur geleden"}}},minute:{displayName:"Minuut",relativeTime:{future:{one:"over {0} minuut",other:"over {0} minuten"},past:{one:"{0} minuut geleden",other:"{0} minuten geleden"}}},second:{displayName:"Seconde",relative:{0:"nu"},relativeTime:{future:{one:"over {0} seconde",other:"over {0} seconden"},past:{one:"{0} seconde geleden",other:"{0} seconden geleden"}}}}}),ReactIntl.__addLocaleData({locale:"nl-AW",parentLocale:"nl"}),ReactIntl.__addLocaleData({locale:"nl-BE",parentLocale:"nl"}),ReactIntl.__addLocaleData({locale:"nl-BQ",parentLocale:"nl"}),ReactIntl.__addLocaleData({locale:"nl-CW",parentLocale:"nl"}),ReactIntl.__addLocaleData({locale:"nl-NL",parentLocale:"nl"}),ReactIntl.__addLocaleData({locale:"nl-SR",parentLocale:"nl"}),ReactIntl.__addLocaleData({locale:"nl-SX",parentLocale:"nl"}),ReactIntl.__addLocaleData({locale:"nmg",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Mbvu",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Ngwɛn",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Duö",relative:{0:"Dɔl",1:"Namáná","-1":"Nakugú"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Wulā",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Mpálâ",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Nyiɛl",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"nmg-CM",parentLocale:"nmg"}),ReactIntl.__addLocaleData({locale:"nn",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"år",relative:{0:"dette år",1:"neste år","-1":"i fjor"},relativeTime:{future:{one:"om {0} år",other:"om {0} år"},past:{one:"for {0} år siden",other:"for {0} år siden"}}},month:{displayName:"månad",relative:{0:"denne månad",1:"neste månad","-1":"forrige månad"},relativeTime:{future:{one:"om {0} måned",other:"om {0} måneder"},past:{one:"for {0} måned siden",other:"for {0} måneder siden"}}},day:{displayName:"dag",relative:{0:"i dag",1:"i morgon",2:"i overmorgon","-1":"i går","-2":"i forgårs"},relativeTime:{future:{one:"om {0} døgn",other:"om {0} døgn"},past:{one:"for {0} døgn siden",other:"for {0} døgn siden"}}},hour:{displayName:"time",relativeTime:{future:{one:"om {0} time",other:"om {0} timer"},past:{one:"for {0} time siden",other:"for {0} timer siden"}}},minute:{displayName:"minutt",relativeTime:{future:{one:"om {0} minutt",other:"om {0} minutter"},past:{one:"for {0} minutt siden",other:"for {0} minutter siden"}}},second:{displayName:"sekund",relative:{0:"now"},relativeTime:{future:{one:"om {0} sekund",other:"om {0} sekunder"},past:{one:"for {0} sekund siden",other:"for {0} sekunder siden"}}}}}),ReactIntl.__addLocaleData({locale:"nn-NO",parentLocale:"nn"}),ReactIntl.__addLocaleData({locale:"nnh",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"ngùʼ",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"lyɛ̌ʼ",relative:{0:"lyɛ̌ʼɔɔn",1:"jǔɔ gẅie à ne ntóo","-1":"jǔɔ gẅie à ka tɔ̌g"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"fʉ̀ʼ nèm",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"nnh-CM",parentLocale:"nnh"}),ReactIntl.__addLocaleData({locale:"no",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"
}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"nqo",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"nr",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"nr-ZA",parentLocale:"nr"}),ReactIntl.__addLocaleData({locale:"nso",pluralRuleFunction:function(a,b){return b?"other":0==a||1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"nso-ZA",parentLocale:"nso"}),ReactIntl.__addLocaleData({locale:"nus",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Ruɔ̱n",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Pay",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Cäŋ",relative:{0:"Walɛ",1:"Ruun","-1":"Pan"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Thaak",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minit",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Thɛkɛni",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"nus-SD",parentLocale:"nus"}),ReactIntl.__addLocaleData({locale:"ny",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"nyn",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Omwaka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Omwezi",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Eizooba",relative:{0:"Erizooba",1:"Nyenkyakare","-1":"Nyomwabazyo"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Shaaha",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Edakiika",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Obucweka/Esekendi",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"nyn-UG",parentLocale:"nyn"}),ReactIntl.__addLocaleData({locale:"om",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"om-ET",parentLocale:"om"}),ReactIntl.__addLocaleData({locale:"om-KE",parentLocale:"om"}),ReactIntl.__addLocaleData({locale:"or",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"or-IN",parentLocale:"or"}),ReactIntl.__addLocaleData({locale:"os",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Аз",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Мӕй",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Бон",relative:{0:"Абон",1:"Сом",2:"Иннӕбон","-1":"Знон","-2":"Ӕндӕрӕбон"},relativeTime:{future:{one:"{0} боны фӕстӕ",other:"{0} боны фӕстӕ"},past:{one:"{0} бон раздӕр",other:"{0} боны размӕ"}}},hour:{displayName:"Сахат",relativeTime:{future:{one:"{0} сахаты фӕстӕ",other:"{0} сахаты фӕстӕ"},past:{one:"{0} сахаты размӕ",other:"{0} сахаты размӕ"}}},minute:{displayName:"Минут",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Секунд",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"os-GE",parentLocale:"os"}),ReactIntl.__addLocaleData({locale:"os-RU",parentLocale:"os"}),ReactIntl.__addLocaleData({locale:"pa",pluralRuleFunction:function(a,b){return b?"other":0==a||1==a?"one":"other"},fields:{year:{displayName:"ਸਾਲ",relative:{0:"ਇਹ ਸਾਲ",1:"ਅਗਲਾ ਸਾਲ","-1":"ਪਿਛਲਾ ਸਾਲ"},relativeTime:{future:{one:"{0} ਸਾਲ ਵਿੱਚ",other:"{0} ਸਾਲਾਂ ਵਿੱਚ"},past:{one:"{0} ਸਾਲ ਪਹਿਲਾਂ",other:"{0} ਸਾਲ ਪਹਿਲਾਂ"}}},month:{displayName:"ਮਹੀਨਾ",relative:{0:"ਇਹ ਮਹੀਨਾ",1:"ਅਗਲਾ ਮਹੀਨਾ","-1":"ਪਿਛਲਾ ਮਹੀਨਾ"},relativeTime:{future:{one:"{0} ਮਹੀਨੇ ਵਿੱਚ",other:"{0} ਮਹੀਨਿਆਂ ਵਿੱਚ"},past:{one:"{0} ਮਹੀਨੇ ਪਹਿਲਾਂ",other:"{0} ਮਹੀਨੇ ਪਹਿਲਾਂ"}}},day:{displayName:"ਦਿਨ",relative:{0:"ਅੱਜ",1:"ਭਲਕੇ","-1":"ਬੀਤਿਆ ਕੱਲ੍ਹ"},relativeTime:{future:{one:"{0} ਦਿਨ ਵਿੱਚ",other:"{0} ਦਿਨਾਂ ਵਿੱਚ"},past:{one:"{0} ਦਿਨ ਪਹਿਲਾਂ",other:"{0} ਦਿਨ ਪਹਿਲਾਂ"}}},hour:{displayName:"ਘੰਟਾ",relativeTime:{future:{one:"{0} ਘੰਟੇ ਵਿੱਚ",other:"{0} ਘੰਟਿਆਂ ਵਿੱਚ"},past:{one:"{0} ਘੰਟਾ ਪਹਿਲਾਂ",other:"{0} ਘੰਟੇ ਪਹਿਲਾਂ"}}},minute:{displayName:"ਮਿੰਟ",relativeTime:{future:{one:"{0} ਮਿੰਟ ਵਿੱਚ",other:"{0} ਮਿੰਟਾਂ ਵਿੱਚ"},past:{one:"{0} ਮਿੰਟ ਪਹਿਲਾਂ",other:"{0} ਮਿੰਟ ਪਹਿਲਾਂ"}}},second:{displayName:"ਸਕਿੰਟ",relative:{0:"ਹੁਣ"},relativeTime:{future:{one:"{0} ਸਕਿੰਟ ਵਿੱਚ",other:"{0} ਸਕਿੰਟਾਂ ਵਿੱਚ"},past:{one:"{0} ਸਕਿੰਟ ਪਹਿਲਾਂ",other:"{0} ਸਕਿੰਟ ਪਹਿਲਾਂ"}}}}}),ReactIntl.__addLocaleData({locale:"pa-Arab",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"ورھا",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"مہينا",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"دئن",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"گھنٹا",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"منٹ",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"pa-Arab-PK",parentLocale:"pa-Arab"}),ReactIntl.__addLocaleData({locale:"pa-Guru",parentLocale:"pa"}),ReactIntl.__addLocaleData({locale:"pa-Guru-IN",parentLocale:"pa-Guru"}),ReactIntl.__addLocaleData({locale:"pap",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"pl",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=!c[1],f=d.slice(-1),g=d.slice(-2);return b?"other":1==a&&e?"one":e&&f>=2&&4>=f&&(12>g||g>14)?"few":e&&1!=d&&(0==f||1==f)||e&&f>=5&&9>=f||e&&g>=12&&14>=g?"many":"other"},fields:{year:{displayName:"rok",relative:{0:"w tym roku",1:"w przyszłym roku","-1":"w zeszłym roku"},relativeTime:{future:{one:"za {0} rok",few:"za {0} lata",many:"za {0} lat",other:"za {0} roku"},past:{one:"{0} rok temu",few:"{0} lata temu",many:"{0} lat temu",other:"{0} roku temu"}}},month:{displayName:"miesiąc",relative:{0:"w tym miesiącu",1:"w przyszłym miesiącu","-1":"w zeszłym miesiącu"},relativeTime:{future:{one:"za {0} miesiąc",few:"za {0} miesiące",many:"za {0} miesięcy",other:"za {0} miesiąca"},past:{one:"{0} miesiąc temu",few:"{0} miesiące temu",many:"{0} miesięcy temu",other:"{0} miesiąca temu"}}},day:{displayName:"dzień",relative:{0:"dzisiaj",1:"jutro",2:"pojutrze","-1":"wczoraj","-2":"przedwczoraj"},relativeTime:{future:{one:"za {0} dzień",few:"za {0} dni",many:"za {0} dni",other:"za {0} dnia"},past:{one:"{0} dzień temu",few:"{0} dni temu",many:"{0} dni temu",other:"{0} dnia temu"}}},hour:{displayName:"godzina",relativeTime:{future:{one:"za {0} godzinę",few:"za {0} godziny",many:"za {0} godzin",other:"za {0} godziny"},past:{one:"{0} godzinę temu",few:"{0} godziny temu",many:"{0} godzin temu",other:"{0} godziny temu"}}},minute:{displayName:"minuta",relativeTime:{future:{one:"za {0} minutę",few:"za {0} minuty",many:"za {0} minut",other:"za {0} minuty"},past:{one:"{0} minutę temu",few:"{0} minuty temu",many:"{0} minut temu",other:"{0} minuty temu"}}},second:{displayName:"sekunda",relative:{0:"teraz"},relativeTime:{future:{one:"za {0} sekundę",few:"za {0} sekundy",many:"za {0} sekund",other:"za {0} sekundy"},past:{one:"{0} sekundę temu",few:"{0} sekundy temu",many:"{0} sekund temu",other:"{0} sekundy temu"}}}}}),ReactIntl.__addLocaleData({locale:"pl-PL",parentLocale:"pl"}),ReactIntl.__addLocaleData({locale:"prg",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[1]||"",e=d.length,f=Number(c[0])==a,g=f&&c[0].slice(-1),h=f&&c[0].slice(-2),i=d.slice(-2),j=d.slice(-1);return b?"other":f&&0==g||h>=11&&19>=h||2==e&&i>=11&&19>=i?"zero":1==g&&11!=h||2==e&&1==j&&11!=i||2!=e&&1==j?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ps",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ps-AF",parentLocale:"ps"}),ReactIntl.__addLocaleData({locale:"pt",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=Number(c[0])==a;return b?"other":d&&a>=0&&2>=a&&2!=a?"one":"other"},fields:{year:{displayName:"Ano",relative:{0:"este ano",1:"próximo ano","-1":"ano passado"},relativeTime:{future:{one:"Dentro de {0} ano",other:"Dentro de {0} anos"},past:{one:"Há {0} ano",other:"Há {0} anos"}}},month:{displayName:"Mês",relative:{0:"este mês",1:"próximo mês","-1":"mês passado"},relativeTime:{future:{one:"Dentro de {0} mês",other:"Dentro de {0} meses"},past:{one:"Há {0} mês",other:"Há {0} meses"}}},day:{displayName:"Dia",relative:{0:"hoje",1:"amanhã",2:"depois de amanhã","-1":"ontem","-2":"anteontem"},relativeTime:{future:{one:"Dentro de {0} dia",other:"Dentro de {0} dias"},past:{one:"Há {0} dia",other:"Há {0} dias"}}},hour:{displayName:"Hora",relativeTime:{future:{one:"Dentro de {0} hora",other:"Dentro de {0} horas"},past:{one:"Há {0} hora",other:"Há {0} horas"}}},minute:{displayName:"Minuto",relativeTime:{future:{one:"Dentro de {0} minuto",other:"Dentro de {0} minutos"},past:{one:"Há {0} minuto",other:"Há {0} minutos"}}},second:{displayName:"Segundo",relative:{0:"agora"},relativeTime:{future:{one:"Dentro de {0} segundo",other:"Dentro de {0} segundos"},past:{one:"Há {0} segundo",other:"Há {0} segundos"}}}}}),ReactIntl.__addLocaleData({locale:"pt-AO",parentLocale:"pt-PT"}),ReactIntl.__addLocaleData({locale:"pt-PT",parentLocale:"pt",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1];return b?"other":1==a&&d?"one":"other"},fields:{year:{displayName:"Ano",relative:{0:"este ano",1:"próximo ano","-1":"ano passado"},relativeTime:{future:{one:"dentro de {0} ano",other:"dentro de {0} anos"},past:{one:"há {0} ano",other:"há {0} anos"}}},month:{displayName:"Mês",relative:{0:"este mês",1:"próximo mês","-1":"mês passado"},relativeTime:{future:{one:"dentro de {0} mês",other:"dentro de {0} meses"},past:{one:"há {0} mês",other:"há {0} meses"}}},day:{displayName:"Dia",relative:{0:"hoje",1:"amanhã",2:"depois de amanhã","-1":"ontem","-2":"anteontem"},relativeTime:{future:{one:"dentro de {0} dia",other:"dentro de {0} dias"},past:{one:"há {0} dia",other:"há {0} dias"}}},hour:{displayName:"Hora",relativeTime:{future:{one:"dentro de {0} hora",other:"dentro de {0} horas"},past:{one:"há {0} hora",other:"há {0} horas"}}},minute:{displayName:"Minuto",relativeTime:{future:{one:"dentro de {0} minuto",other:"dentro de {0} minutos"},past:{one:"há {0} minuto",other:"há {0} minutos"}}},second:{displayName:"Segundo",relative:{0:"agora"},relativeTime:{future:{one:"dentro de {0} segundo",other:"dentro de {0} segundos"},past:{one:"há {0} segundo",other:"há {0} segundos"}}}}}),ReactIntl.__addLocaleData({locale:"pt-BR",parentLocale:"pt"}),ReactIntl.__addLocaleData({locale:"pt-CV",parentLocale:"pt-PT"}),ReactIntl.__addLocaleData({locale:"pt-GW",parentLocale:"pt-PT"}),ReactIntl.__addLocaleData({locale:"pt-MO",parentLocale:"pt-PT"}),ReactIntl.__addLocaleData({locale:"pt-MZ",parentLocale:"pt-PT"}),ReactIntl.__addLocaleData({locale:"pt-ST",parentLocale:"pt-PT"}),ReactIntl.__addLocaleData({locale:"pt-TL",parentLocale:"pt-PT"}),ReactIntl.__addLocaleData({locale:"qu",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"qu-BO",parentLocale:"qu"}),ReactIntl.__addLocaleData({locale:"qu-EC",parentLocale:"qu"}),ReactIntl.__addLocaleData({locale:"qu-PE",parentLocale:"qu"}),ReactIntl.__addLocaleData({locale:"rm",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"onn",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"mais",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Tag",relative:{0:"oz",1:"damaun",2:"puschmaun","-1":"ier","-2":"stersas"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"ura",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"minuta",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"secunda",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"rm-CH",parentLocale:"rm"}),ReactIntl.__addLocaleData({locale:"rn",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Umwaka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Ukwezi",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Umusi",relative:{0:"Uyu musi",1:"Ejo (hazoza)","-1":"Ejo (haheze)"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Isaha",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Umunota",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Isegonda",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"rn-BI",parentLocale:"rn"}),ReactIntl.__addLocaleData({locale:"ro",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1],e=Number(c[0])==a,f=e&&c[0].slice(-2);return b?1==a?"one":"other":1==a&&d?"one":!d||0==a||1!=a&&f>=1&&19>=f?"few":"other"},fields:{year:{displayName:"An",relative:{0:"anul acesta",1:"anul viitor","-1":"anul trecut"},relativeTime:{future:{one:"peste {0} an",few:"peste {0} ani",other:"peste {0} de ani"},past:{one:"acum {0} an",few:"acum {0} ani",other:"acum {0} de ani"}}},month:{displayName:"Lună",relative:{0:"luna aceasta",1:"luna viitoare","-1":"luna trecută"},relativeTime:{future:{one:"peste {0} lună",few:"peste {0} luni",other:"peste {0} de luni"},past:{one:"acum {0} lună",few:"acum {0} luni",other:"acum {0} de luni"}}},day:{displayName:"Zi",relative:{0:"azi",1:"mâine",2:"poimâine","-1":"ieri","-2":"alaltăieri"},relativeTime:{future:{one:"peste {0} zi",few:"peste {0} zile",other:"peste {0} de zile"},past:{one:"acum {0} zi",few:"acum {0} zile",other:"acum {0} de zile"}}},hour:{displayName:"Oră",relativeTime:{future:{one:"peste {0} oră",few:"peste {0} ore",other:"peste {0} de ore"},past:{one:"acum {0} oră",few:"acum {0} ore",other:"acum {0} de ore"}}},minute:{displayName:"Minut",relativeTime:{future:{one:"peste {0} minut",few:"peste {0} minute",other:"peste {0} de minute"},past:{one:"acum {0} minut",few:"acum {0} minute",other:"acum {0} de minute"}}},second:{displayName:"Secundă",relative:{0:"acum"},relativeTime:{future:{one:"peste {0} secundă",few:"peste {0} secunde",other:"peste {0} de secunde"},past:{one:"acum {0} secundă",few:"acum {0} secunde",other:"acum {0} de secunde"}}}}}),ReactIntl.__addLocaleData({locale:"ro-MD",parentLocale:"ro"}),ReactIntl.__addLocaleData({locale:"ro-RO",parentLocale:"ro"}),ReactIntl.__addLocaleData({locale:"rof",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Muaka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Mweri",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Mfiri",relative:{0:"Linu",1:"Ng’ama","-1":"Hiyo"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Isaa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Dakika",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sekunde",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"rof-TZ",parentLocale:"rof"}),ReactIntl.__addLocaleData({locale:"ru",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=!c[1],f=d.slice(-1),g=d.slice(-2);return b?"other":e&&1==f&&11!=g?"one":e&&f>=2&&4>=f&&(12>g||g>14)?"few":e&&0==f||e&&f>=5&&9>=f||e&&g>=11&&14>=g?"many":"other"},fields:{year:{displayName:"Год",relative:{0:"в этому году",1:"в следующем году","-1":"в прошлом году"},relativeTime:{future:{one:"через {0} год",few:"через {0} года",many:"через {0} лет",other:"через {0} года"},past:{one:"{0} год назад",few:"{0} года назад",many:"{0} лет назад",other:"{0} года назад"}}},month:{displayName:"Месяц",relative:{0:"в этом месяце",1:"в следующем месяце","-1":"в прошлом месяце"},relativeTime:{future:{one:"через {0} месяц",few:"через {0} месяца",many:"через {0} месяцев",other:"через {0} месяца"},past:{one:"{0} месяц назад",few:"{0} месяца назад",many:"{0} месяцев назад",other:"{0} месяца назад"}}},day:{displayName:"День",relative:{0:"сегодня",1:"завтра",2:"послезавтра","-1":"вчера","-2":"позавчера"},relativeTime:{future:{one:"через {0} день",few:"через {0} дня",many:"через {0} дней",other:"через {0} дней"},past:{one:"{0} день назад",few:"{0} дня назад",many:"{0} дней назад",other:"{0} дня назад"}}},hour:{displayName:"Час",relativeTime:{future:{one:"через {0} час",few:"через {0} часа",many:"через {0} часов",other:"через {0} часа"},past:{one:"{0} час назад",few:"{0} часа назад",many:"{0} часов назад",other:"{0} часа назад"}}},minute:{displayName:"Минута",relativeTime:{future:{one:"через {0} минуту",few:"через {0} минуты",many:"через {0} минут",other:"через {0} минуты"},past:{one:"{0} минуту назад",few:"{0} минуты назад",many:"{0} минут назад",other:"{0} минуты назад"}}},second:{displayName:"Секунда",relative:{0:"сейчас"},relativeTime:{future:{one:"через {0} секунду",few:"через {0} секунды",many:"через {0} секунд",other:"через {0} секунды"},past:{one:"{0} секунду назад",few:"{0} секунды назад",many:"{0} секунд назад",other:"{0} секунды назад"}}}}}),ReactIntl.__addLocaleData({locale:"ru-BY",parentLocale:"ru"}),ReactIntl.__addLocaleData({locale:"ru-KG",parentLocale:"ru"}),ReactIntl.__addLocaleData({locale:"ru-KZ",parentLocale:"ru"}),ReactIntl.__addLocaleData({locale:"ru-MD",parentLocale:"ru"}),ReactIntl.__addLocaleData({locale:"ru-RU",parentLocale:"ru"}),ReactIntl.__addLocaleData({locale:"ru-UA",parentLocale:"ru"}),ReactIntl.__addLocaleData({locale:"rw",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"rw-RW",parentLocale:"rw"}),ReactIntl.__addLocaleData({locale:"rwk",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Maka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Mori",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Mfiri",relative:{0:"Inu",1:"Ngama","-1":"Ukou"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Saa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Dakyika",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sekunde",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"rwk-TZ",parentLocale:"rwk"}),ReactIntl.__addLocaleData({locale:"sah",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Сыл",relative:{0:"бу сыл",1:"кэлэр сыл","-1":"ааспыт сыл"},relativeTime:{future:{other:"{0} сылынан"},past:{other:"{0} сыл ынараа өттүгэр"}}},month:{displayName:"Ый",relative:{0:"бу ый",1:"аныгыскы ый","-1":"ааспыт ый"},relativeTime:{future:{other:"{0} ыйынан"},past:{other:"{0} ый ынараа өттүгэр"}}},day:{displayName:"Күн",relative:{0:"Бүгүн",1:"Сарсын",2:"Өйүүн","-1":"Бэҕэһээ","-2":"Иллэрээ күн"},relativeTime:{future:{other:"{0} күнүнэн"},past:{other:"{0} күн ынараа өттүгэр"}}},hour:{displayName:"Чаас",relativeTime:{future:{other:"{0} чааһынан"},past:{other:"{0} чаас ынараа өттүгэр"}}},minute:{displayName:"Мүнүүтэ",relativeTime:{future:{other:"{0} мүнүүтэннэн"},past:{other:"{0} мүнүүтэ ынараа өттүгэр"}}},second:{displayName:"Сөкүүндэ",relative:{0:"now"},relativeTime:{future:{other:"{0} сөкүүндэннэн"},past:{other:"{0} сөкүүндэ ынараа өттүгэр"}}}}}),ReactIntl.__addLocaleData({locale:"sah-RU",parentLocale:"sah"}),ReactIntl.__addLocaleData({locale:"saq",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Lari",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Lapa",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Mpari",relative:{0:"Duo",1:"Taisere","-1":"Ng’ole"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Saai",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Idakika",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Isekondi",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"saq-KE",parentLocale:"saq"}),ReactIntl.__addLocaleData({locale:"sbp",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Mwakha",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Mwesi",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Lusiku",relative:{0:"Ineng’uni",1:"Pamulaawu","-1":"Imehe"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Ilisala",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Idakika",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Isekunde",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"sbp-TZ",parentLocale:"sbp"}),ReactIntl.__addLocaleData({locale:"se",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":2==a?"two":"other"},fields:{year:{displayName:"jáhki",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"{0} jahki maŋŋilit",two:"{0} jahkki maŋŋilit",other:"{0} jahkki maŋŋilit"},past:{one:"{0} jahki árat",two:"{0} jahkki árat",other:"{0} jahkki árat"}}},month:{displayName:"mánnu",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"{0} mánotbadji maŋŋilit",two:"{0} mánotbadji maŋŋilit",other:"{0} mánotbadji maŋŋilit"},past:{one:"{0} mánotbadji árat",two:"{0} mánotbadji árat",other:"{0} mánotbadji árat"}}},day:{displayName:"beaivi",relative:{0:"odne",1:"ihttin",2:"paijeelittáá","-1":"ikte","-2":"oovdebpeivvi"
},relativeTime:{future:{one:"{0} jándor maŋŋilit",two:"{0} jándor amaŋŋilit",other:"{0} jándora maŋŋilit"},past:{one:"{0} jándor árat",two:"{0} jándora árat",other:"{0} jándora árat"}}},hour:{displayName:"diibmu",relativeTime:{future:{one:"{0} diibmu maŋŋilit",two:"{0} diibmur maŋŋilit",other:"{0} diibmur maŋŋilit"},past:{one:"{0} diibmu árat",two:"{0} diibmur árat",other:"{0} diibmur árat"}}},minute:{displayName:"minuhtta",relativeTime:{future:{one:"{0} minuhta maŋŋilit",two:"{0} minuhtta maŋŋilit",other:"{0} minuhtta maŋŋilit"},past:{one:"{0} minuhta árat",two:"{0} minuhtta árat",other:"{0} minuhtta árat"}}},second:{displayName:"sekunda",relative:{0:"now"},relativeTime:{future:{one:"{0} sekunda maŋŋilit",two:"{0} sekundda maŋŋilit",other:"{0} sekundda maŋŋilit"},past:{one:"{0} sekunda árat",two:"{0} sekundda árat",other:"{0} sekundda árat"}}}}}),ReactIntl.__addLocaleData({locale:"se-FI",parentLocale:"se",fields:{year:{displayName:"jahki",relative:{0:"dán jagi",1:"boahtte jagi","-1":"mannan jagi"},relativeTime:{future:{one:"{0} jagi siste",two:"{0} jagi siste",other:"{0} jagi siste"},past:{one:"{0} jagi árat",two:"{0} jagi árat",other:"{0} jagi árat"}}},month:{displayName:"mánnu",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"{0} mánotbadji maŋŋilit",two:"{0} mánotbadji maŋŋilit",other:"{0} mánotbadji maŋŋilit"},past:{one:"{0} mánotbadji árat",two:"{0} mánotbadji árat",other:"{0} mánotbadji árat"}}},day:{displayName:"beaivi",relative:{0:"odne",1:"ihttin",2:"paijeelittáá","-1":"ikte","-2":"oovdebpeivvi"},relativeTime:{future:{one:"{0} jándor maŋŋilit",two:"{0} jándor amaŋŋilit",other:"{0} jándora maŋŋilit"},past:{one:"{0} jándor árat",two:"{0} jándora árat",other:"{0} jándora árat"}}},hour:{displayName:"diibmu",relativeTime:{future:{one:"{0} diibmu maŋŋilit",two:"{0} diibmur maŋŋilit",other:"{0} diibmur maŋŋilit"},past:{one:"{0} diibmu árat",two:"{0} diibmur árat",other:"{0} diibmur árat"}}},minute:{displayName:"minuhtta",relativeTime:{future:{one:"{0} minuhta maŋŋilit",two:"{0} minuhtta maŋŋilit",other:"{0} minuhtta maŋŋilit"},past:{one:"{0} minuhta árat",two:"{0} minuhtta árat",other:"{0} minuhtta árat"}}},second:{displayName:"sekunda",relative:{0:"now"},relativeTime:{future:{one:"{0} sekunda maŋŋilit",two:"{0} sekundda maŋŋilit",other:"{0} sekundda maŋŋilit"},past:{one:"{0} sekunda árat",two:"{0} sekundda árat",other:"{0} sekundda árat"}}}}}),ReactIntl.__addLocaleData({locale:"se-NO",parentLocale:"se"}),ReactIntl.__addLocaleData({locale:"se-SE",parentLocale:"se"}),ReactIntl.__addLocaleData({locale:"seh",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Chaka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Mwezi",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Ntsiku",relative:{0:"Lero",1:"Manguana","-1":"Zuro"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hora",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minuto",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Segundo",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"seh-MZ",parentLocale:"seh"}),ReactIntl.__addLocaleData({locale:"ses",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Jiiri",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Handu",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Zaari",relative:{0:"Hõo",1:"Suba","-1":"Bi"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Guuru",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Miniti",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Miti",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ses-ML",parentLocale:"ses"}),ReactIntl.__addLocaleData({locale:"sg",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Ngû",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Nze",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Lâ",relative:{0:"Lâsô",1:"Kêkerêke","-1":"Bîrï"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Ngbonga",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Ndurü ngbonga",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Nzîna ngbonga",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"sg-CF",parentLocale:"sg"}),ReactIntl.__addLocaleData({locale:"sh",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=c[1]||"",f=!c[1],g=d.slice(-1),h=d.slice(-2),i=e.slice(-1),j=e.slice(-2);return b?"other":f&&1==g&&11!=h||1==i&&11!=j?"one":f&&g>=2&&4>=g&&(12>h||h>14)||i>=2&&4>=i&&(12>j||j>14)?"few":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"shi",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=Number(c[0])==a;return b?"other":a>=0&&1>=a?"one":d&&a>=2&&10>=a?"few":"other"},fields:{year:{displayName:"ⴰⵙⴳⴳⵯⴰⵙ",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"ⴰⵢⵢⵓⵔ",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"ⴰⵙⵙ",relative:{0:"ⴰⵙⵙⴰ",1:"ⴰⵙⴽⴽⴰ","-1":"ⵉⴹⵍⵍⵉ"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"ⵜⴰⵙⵔⴰⴳⵜ",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"ⵜⵓⵙⴷⵉⴷⵜ",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"ⵜⴰⵙⵉⵏⵜ",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"shi-Latn",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"asggʷas",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"ayyur",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"ass",relative:{0:"assa",1:"askka","-1":"iḍlli"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"tasragt",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"tusdidt",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"tasint",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"shi-Latn-MA",parentLocale:"shi-Latn"}),ReactIntl.__addLocaleData({locale:"shi-Tfng",parentLocale:"shi"}),ReactIntl.__addLocaleData({locale:"shi-Tfng-MA",parentLocale:"shi-Tfng"}),ReactIntl.__addLocaleData({locale:"si",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=c[1]||"";return b?"other":0==a||1==a||0==d&&1==e?"one":"other"},fields:{year:{displayName:"වර්ෂය",relative:{0:"මෙම වසර",1:"ඊළඟ වසර","-1":"පසුගිය වසර"},relativeTime:{future:{one:"වසර {0} කින්",other:"වසර {0} කින්"},past:{one:"වසර {0}ට පෙර",other:"වසර {0}ට පෙර"}}},month:{displayName:"මාසය",relative:{0:"මෙම මාසය",1:"ඊළඟ මාසය","-1":"පසුගිය මාසය"},relativeTime:{future:{one:"මාස {0}කින්",other:"මාස {0}කින්"},past:{one:"මාස {0}කට පෙර",other:"මාස {0}කට පෙර"}}},day:{displayName:"දිනය",relative:{0:"අද",1:"හෙට",2:"අනිද්දා","-1":"ඊයේ","-2":"පෙරේදා"},relativeTime:{future:{one:"දින {0}න්",other:"දින {0}න්"},past:{one:"දින {0} ට පෙර",other:"දින {0} ට පෙර"}}},hour:{displayName:"පැය",relativeTime:{future:{one:"පැය {0} කින්",other:"පැය {0} කින්"},past:{one:"පැය {0}ට පෙර",other:"පැය {0}ට පෙර"}}},minute:{displayName:"මිනිත්තුව",relativeTime:{future:{one:"මිනිත්තු {0} කින්",other:"මිනිත්තු {0} කින්"},past:{one:"මිනිත්තු {0}ට පෙර",other:"මිනිත්තු {0}ට පෙර"}}},second:{displayName:"තත්පරය",relative:{0:"දැන්"},relativeTime:{future:{one:"තත්පර {0} කින්",other:"තත්පර {0} කින්"},past:{one:"තත්පර {0}කට පෙර",other:"තත්පර {0}කට පෙර"}}}}}),ReactIntl.__addLocaleData({locale:"si-LK",parentLocale:"si"}),ReactIntl.__addLocaleData({locale:"sk",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=!c[1];return b?"other":1==a&&e?"one":d>=2&&4>=d&&e?"few":e?"other":"many"},fields:{year:{displayName:"rok",relative:{0:"tento rok",1:"budúci rok","-1":"minulý rok"},relativeTime:{future:{one:"o {0} rok",few:"o {0} roky",many:"o {0} roka",other:"o {0} rokov"},past:{one:"pred {0} rokom",few:"pred {0} rokmi",many:"pred {0} rokom",other:"pred {0} rokmi"}}},month:{displayName:"mesiac",relative:{0:"tento mesiac",1:"budúci mesiac","-1":"minulý mesiac"},relativeTime:{future:{one:"o {0} mesiac",few:"o {0} mesiace",many:"o {0} mesiaca",other:"o {0} mesiacov"},past:{one:"pred {0} mesiacom",few:"pred {0} mesiacmi",many:"pred {0} mesiacom",other:"pred {0} mesiacmi"}}},day:{displayName:"deň",relative:{0:"dnes",1:"zajtra",2:"pozajtra","-1":"včera","-2":"predvčerom"},relativeTime:{future:{one:"o {0} deň",few:"o {0} dni",many:"o {0} dňa",other:"o {0} dní"},past:{one:"pred {0} dňom",few:"pred {0} dňami",many:"pred {0} dňom",other:"pred {0} dňami"}}},hour:{displayName:"hodina",relativeTime:{future:{one:"o {0} hodinu",few:"o {0} hodiny",many:"o {0} hodiny",other:"o {0} hodín"},past:{one:"pred {0} hodinou",few:"pred {0} hodinami",many:"pred {0} hodinou",other:"pred {0} hodinami"}}},minute:{displayName:"minúta",relativeTime:{future:{one:"o {0} minútu",few:"o {0} minúty",many:"o {0} minúty",other:"o {0} minút"},past:{one:"pred {0} minútou",few:"pred {0} minútami",many:"pred {0} minútou",other:"pred {0} minútami"}}},second:{displayName:"sekunda",relative:{0:"teraz"},relativeTime:{future:{one:"o {0} sekundu",few:"o {0} sekundy",many:"o {0} sekundy",other:"o {0} sekúnd"},past:{one:"pred {0} sekundou",few:"pred {0} sekundami",many:"Pred {0} sekundami",other:"pred {0} sekundami"}}}}}),ReactIntl.__addLocaleData({locale:"sk-SK",parentLocale:"sk"}),ReactIntl.__addLocaleData({locale:"sl",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=!c[1],f=d.slice(-2);return b?"other":e&&1==f?"one":e&&2==f?"two":e&&(3==f||4==f)||!e?"few":"other"},fields:{year:{displayName:"Leto",relative:{0:"letos",1:"naslednje leto","-1":"lani"},relativeTime:{future:{one:"čez {0} leto",two:"čez {0} leti",few:"čez {0} leta",other:"čez {0} let"},past:{one:"pred {0} letom",two:"pred {0} letoma",few:"pred {0} leti",other:"pred {0} leti"}}},month:{displayName:"Mesec",relative:{0:"ta mesec",1:"naslednji mesec","-1":"prejšnji mesec"},relativeTime:{future:{one:"čez {0} mesec",two:"čez {0} meseca",few:"čez {0} mesece",other:"čez {0} mesecev"},past:{one:"pred {0} mesecem",two:"pred {0} mesecema",few:"pred {0} meseci",other:"pred {0} meseci"}}},day:{displayName:"Dan",relative:{0:"danes",1:"jutri",2:"pojutrišnjem","-1":"včeraj","-2":"predvčerajšnjim"},relativeTime:{future:{one:"čez {0} dan",two:"čez {0} dneva",few:"čez {0} dni",other:"čez {0} dni"},past:{one:"pred {0} dnevom",two:"pred {0} dnevoma",few:"pred {0} dnevi",other:"pred {0} dnevi"}}},hour:{displayName:"Ura",relativeTime:{future:{one:"čez {0} h",two:"čez {0} h",few:"čez {0} h",other:"čez {0} h"},past:{one:"pred {0} h",two:"pred {0} h",few:"pred {0} h",other:"pred {0} h"}}},minute:{displayName:"Minuta",relativeTime:{future:{one:"čez {0} min.",two:"čez {0} min.",few:"čez {0} min.",other:"čez {0} min."},past:{one:"pred {0} min.",two:"pred {0} min.",few:"pred {0} min.",other:"pred {0} min."}}},second:{displayName:"Sekunda",relative:{0:"zdaj"},relativeTime:{future:{one:"čez {0} sekundo",two:"čez {0} sekundi",few:"čez {0} sekunde",other:"čez {0} sekund"},past:{one:"pred {0} sekundo",two:"pred {0} sekundama",few:"pred {0} sekundami",other:"pred {0} sekundami"}}}}}),ReactIntl.__addLocaleData({locale:"sl-SI",parentLocale:"sl"}),ReactIntl.__addLocaleData({locale:"sma",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":2==a?"two":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"smi",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":2==a?"two":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"smj",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":2==a?"two":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"smn",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":2==a?"two":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"smn-FI",parentLocale:"smn"}),ReactIntl.__addLocaleData({locale:"sms",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":2==a?"two":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"sn",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Gore",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Mwedzi",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Zuva",relative:{0:"Nhasi",1:"Mangwana","-1":"Nezuro"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Awa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Mineti",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sekondi",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"sn-ZW",parentLocale:"sn"}),ReactIntl.__addLocaleData({locale:"so",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Sanad",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Bil",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Maalin",relative:{0:"Maanta",1:"Berri","-1":"Shalay"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Saacad",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Daqiiqad",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Il biriqsi",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"so-DJ",parentLocale:"so"}),ReactIntl.__addLocaleData({locale:"so-ET",parentLocale:"so"}),ReactIntl.__addLocaleData({locale:"so-KE",parentLocale:"so"}),ReactIntl.__addLocaleData({locale:"so-SO",parentLocale:"so"}),ReactIntl.__addLocaleData({locale:"sq",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=Number(c[0])==a,e=d&&c[0].slice(-1),f=d&&c[0].slice(-2);return b?1==a?"one":4==e&&14!=f?"many":"other":1==a?"one":"other"},fields:{year:{displayName:"vit",relative:{0:"këtë vit",1:"vitin e ardhshëm","-1":"vitin e kaluar"},relativeTime:{future:{one:"pas {0} viti",other:"pas {0} vjetësh"},past:{one:"para {0} viti",other:"para {0} vjetësh"}}},month:{displayName:"muaj",relative:{0:"këtë muaj",1:"muajin e ardhshëm","-1":"muajin e kaluar"},relativeTime:{future:{one:"pas {0} muaji",other:"pas {0} muajsh"},past:{one:"para {0} muaji",other:"para {0} muajsh"}}},day:{displayName:"ditë",relative:{0:"sot",1:"nesër","-1":"dje"},relativeTime:{future:{one:"pas {0} dite",other:"pas {0} ditësh"},past:{one:"para {0} dite",other:"para {0} ditësh"}}},hour:{displayName:"orë",relativeTime:{future:{one:"pas {0} ore",other:"pas {0} orësh"},past:{one:"para {0} ore",other:"para {0} orësh"}}},minute:{displayName:"minutë",relativeTime:{future:{one:"pas {0} minute",other:"pas {0} minutash"},past:{one:"para {0} minute",other:"para {0} minutash"}}},second:{displayName:"sekondë",relative:{0:"tani"},relativeTime:{future:{one:"pas {0} sekonde",other:"pas {0} sekondash"},past:{one:"para {0} sekonde",other:"para {0} sekondash"}}}}}),ReactIntl.__addLocaleData({locale:"sq-AL",parentLocale:"sq"}),ReactIntl.__addLocaleData({locale:"sq-MK",parentLocale:"sq"}),ReactIntl.__addLocaleData({locale:"sq-XK",parentLocale:"sq"}),ReactIntl.__addLocaleData({locale:"sr",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=c[1]||"",f=!c[1],g=d.slice(-1),h=d.slice(-2),i=e.slice(-1),j=e.slice(-2);return b?"other":f&&1==g&&11!=h||1==i&&11!=j?"one":f&&g>=2&&4>=g&&(12>h||h>14)||i>=2&&4>=i&&(12>j||j>14)?"few":"other"},fields:{year:{displayName:"година",relative:{0:"ове године",1:"следеће године","-1":"прошле године"},relativeTime:{future:{one:"за {0} годину",few:"за {0} године",other:"за {0} година"},past:{one:"пре {0} године",few:"пре {0} године",other:"пре {0} година"}}},month:{displayName:"месец",relative:{0:"овог месеца",1:"следећег месеца","-1":"прошлог месеца"},relativeTime:{future:{one:"за {0} месец",few:"за {0} месеца",other:"за {0} месеци"},past:{one:"пре {0} месеца",few:"пре {0} месеца",other:"пре {0} месеци"}}},day:{displayName:"дан",relative:{0:"данас",1:"сутра",2:"прекосутра","-1":"јуче","-2":"прекјуче"},relativeTime:{future:{one:"за {0} дан",few:"за {0} дана",other:"за {0} дана"},past:{one:"пре {0} дана",few:"пре {0} дана",other:"пре {0} дана"}}},hour:{displayName:"сат",relativeTime:{future:{one:"за {0} сат",few:"за {0} сата",other:"за {0} сати"},past:{one:"пре {0} сата",few:"пре {0} сата",other:"пре {0} сати"}}},minute:{displayName:"минут",relativeTime:{future:{one:"за {0} минут",few:"за {0} минута",other:"за {0} минута"},past:{one:"пре {0} минута",few:"пре {0} минута",other:"пре {0} минута"}}},second:{displayName:"секунд",relative:{0:"сада"},relativeTime:{future:{one:"за {0} секунду",few:"за {0} секунде",other:"за {0} секунди"},past:{one:"пре {0} секунде",few:"пре {0} секунде",other:"пре {0} секунди"}}}}}),ReactIntl.__addLocaleData({locale:"sr-Cyrl",parentLocale:"sr"}),ReactIntl.__addLocaleData({locale:"sr-Cyrl-BA",parentLocale:"sr-Cyrl"}),ReactIntl.__addLocaleData({locale:"sr-Cyrl-ME",parentLocale:"sr-Cyrl"}),ReactIntl.__addLocaleData({locale:"sr-Cyrl-RS",parentLocale:"sr-Cyrl"}),ReactIntl.__addLocaleData({locale:"sr-Cyrl-XK",parentLocale:"sr-Cyrl"}),ReactIntl.__addLocaleData({locale:"sr-Latn",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"godina",relative:{0:"ove godine",1:"sledeće godine","-1":"prošle godine"},relativeTime:{future:{one:"za {0} godinu",few:"za {0} godine",other:"za {0} godina"},past:{one:"pre {0} godine",few:"pre {0} godine",other:"pre {0} godina"}}},month:{displayName:"mesec",relative:{0:"ovog meseca",1:"sledećeg meseca","-1":"prošlog meseca"},relativeTime:{future:{one:"za {0} mesec",few:"za {0} meseca",other:"za {0} meseci"},past:{one:"pre {0} meseca",few:"pre {0} meseca",other:"pre {0} meseci"}}},day:{displayName:"dan",relative:{0:"danas",1:"sutra",2:"prekosutra","-1":"juče","-2":"prekjuče"},relativeTime:{future:{one:"za {0} dan",few:"za {0} dana",other:"za {0} dana"},past:{one:"pre {0} dana",few:"pre {0} dana",other:"pre {0} dana"}}},hour:{displayName:"sat",relativeTime:{future:{one:"za {0} sat",few:"za {0} sata",other:"za {0} sati"},past:{one:"pre {0} sata",few:"pre {0} sata",other:"pre {0} sati"}}},minute:{displayName:"minut",relativeTime:{future:{one:"za {0} minut",few:"za {0} minuta",other:"za {0} minuta"},past:{one:"pre {0} minuta",few:"pre {0} minuta",other:"pre {0} minuta"}}},second:{displayName:"sekund",relative:{0:"sada"},relativeTime:{future:{one:"za {0} sekundu",few:"za {0} sekunde",other:"za {0} sekundi"},past:{one:"pre {0} sekunde",few:"pre {0} sekunde",other:"pre {0} sekundi"}}}}}),ReactIntl.__addLocaleData({locale:"sr-Latn-BA",parentLocale:"sr-Latn"}),ReactIntl.__addLocaleData({locale:"sr-Latn-ME",parentLocale:"sr-Latn"}),ReactIntl.__addLocaleData({locale:"sr-Latn-RS",parentLocale:"sr-Latn"}),ReactIntl.__addLocaleData({locale:"sr-Latn-XK",parentLocale:"sr-Latn"}),ReactIntl.__addLocaleData({locale:"ss",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ss-SZ",parentLocale:"ss"}),ReactIntl.__addLocaleData({locale:"ss-ZA",parentLocale:"ss"}),ReactIntl.__addLocaleData({locale:"ssy",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ssy-ER",parentLocale:"ssy"}),ReactIntl.__addLocaleData({locale:"st",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"sv",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1],e=Number(c[0])==a,f=e&&c[0].slice(-1),g=e&&c[0].slice(-2);return b?1!=f&&2!=f||11==g||12==g?"other":"one":1==a&&d?"one":"other"},fields:{year:{displayName:"År",relative:{0:"i år",1:"nästa år","-1":"i fjol"},relativeTime:{future:{one:"om {0} år",other:"om {0} år"},past:{one:"för {0} år sedan",other:"för {0} år sedan"}}},month:{displayName:"Månad",relative:{0:"denna månad",1:"nästa månad","-1":"förra månaden"},relativeTime:{future:{one:"om {0} månad",other:"om {0} månader"},past:{one:"för {0} månad sedan",other:"för {0} månader sedan"}}},day:{displayName:"Dag",relative:{0:"i dag",1:"i morgon",2:"i övermorgon","-1":"i går","-2":"i förrgår"},relativeTime:{future:{one:"om {0} dag",other:"om {0} dagar"},past:{one:"för {0} dag sedan",other:"för {0} dagar sedan"}}},hour:{displayName:"Timme",relativeTime:{future:{one:"om {0} timme",other:"om {0} timmar"},past:{one:"för {0} timme sedan",other:"för {0} timmar sedan"}}},minute:{displayName:"Minut",relativeTime:{future:{one:"om {0} minut",other:"om {0} minuter"},past:{one:"för {0} minut sedan",other:"för {0} minuter sedan"}}},second:{displayName:"Sekund",relative:{0:"nu"},relativeTime:{future:{one:"om {0} sekund",other:"om {0} sekunder"},past:{one:"för {0} sekund sedan",other:"för {0} sekunder sedan"}}}}}),ReactIntl.__addLocaleData({locale:"sv-AX",parentLocale:"sv"}),ReactIntl.__addLocaleData({locale:"sv-FI",parentLocale:"sv",fields:{year:{displayName:"år",relative:{0:"i år",1:"nästa år","-1":"i fjol"},relativeTime:{future:{one:"om {0} år",other:"om {0} år"},past:{one:"för {0} år sedan",other:"för {0} år sedan"}}},month:{displayName:"månad",relative:{0:"denna månad",1:"nästa månad","-1":"förra månaden"},relativeTime:{future:{one:"om {0} månad",other:"om {0} månader"},past:{one:"för {0} månad sedan",other:"för {0} månader sedan"}}},day:{displayName:"dag",relative:{0:"i dag",1:"i morgon",2:"i övermorgon","-1":"i går","-2":"i förrgår"},relativeTime:{future:{one:"om {0} dag",other:"om {0} dagar"},past:{one:"för {0} dag sedan",other:"för {0} dagar sedan"}}},hour:{displayName:"Timme",relativeTime:{future:{one:"om {0} timme",other:"om {0} timmar"},past:{one:"för {0} timme sedan",other:"för {0} timmar sedan"}}},minute:{displayName:"minut",relativeTime:{future:{one:"om {0} minut",other:"om {0} minuter"},past:{one:"för {0} minut sedan",other:"för {0} minuter sedan"}}},second:{displayName:"sekund",relative:{0:"nu"},relativeTime:{future:{one:"om {0} sekund",other:"om {0} sekunder"},past:{one:"för {0} sekund sedan",other:"för {0} sekunder sedan"}}}}}),ReactIntl.__addLocaleData({locale:"sv-SE",parentLocale:"sv"}),ReactIntl.__addLocaleData({locale:"sw",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1];return b?"other":1==a&&d?"one":"other"},fields:{year:{displayName:"Mwaka",relative:{0:"mwaka huu",1:"mwaka ujao","-1":"mwaka uliopita"},relativeTime:{future:{one:"baada ya mwaka {0}",other:"baada ya miaka {0}"},past:{one:"mwaka {0} uliopita",other:"miaka {0} iliyopita"}}},month:{displayName:"Mwezi",relative:{0:"mwezi huu",1:"mwezi ujao","-1":"mwezi uliopita"},relativeTime:{future:{one:"baada ya mwezi {0}",other:"baada ya miezi {0}"},past:{one:"mwezi {0} uliopita",other:"miezi {0} iliyopita"}}},day:{displayName:"Siku",relative:{0:"leo",1:"kesho",2:"kesho kutwa","-1":"jana","-2":"juzi"},relativeTime:{future:{one:"baada ya siku {0}",other:"baada ya siku {0}"},past:{one:"siku {0} iliyopita",other:"siku {0} zilizopita"}}},hour:{displayName:"Saa",relativeTime:{future:{one:"baada ya saa {0}",other:"baada ya saa {0}"},past:{one:"saa {0} iliyopita",other:"saa {0} zilizopita"}}},minute:{displayName:"Dakika",relativeTime:{future:{one:"baada ya dakika {0}",other:"baada ya dakika {0}"},past:{one:"dakika {0} iliyopita",other:"dakika {0} zilizopita"}}},second:{displayName:"Sekunde",relative:{0:"sasa"},relativeTime:{future:{one:"baada ya sekunde {0}",other:"baada ya sekunde {0}"},past:{one:"Sekunde {0} iliyopita",other:"Sekunde {0} zilizopita"}}}}}),ReactIntl.__addLocaleData({locale:"sw-KE",parentLocale:"sw"}),ReactIntl.__addLocaleData({locale:"sw-TZ",parentLocale:"sw"}),ReactIntl.__addLocaleData({locale:"sw-UG",parentLocale:"sw"}),ReactIntl.__addLocaleData({locale:"swc",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Mwaka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Mwezi",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{
other:"-{0} m"}}},day:{displayName:"Siku",relative:{0:"Leo",1:"Kesho","-1":"Jana"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Saa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Dakika",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sekunde",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"swc-CD",parentLocale:"swc"}),ReactIntl.__addLocaleData({locale:"syr",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ta",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"ஆண்டு",relative:{0:"இந்த ஆண்டு",1:"அடுத்த ஆண்டு","-1":"கடந்த ஆண்டு"},relativeTime:{future:{one:"{0} ஆண்டில்",other:"{0} ஆண்டுகளில்"},past:{one:"{0} ஆண்டிற்கு முன்",other:"{0} ஆண்டுகளுக்கு முன்"}}},month:{displayName:"மாதம்",relative:{0:"இந்த மாதம்",1:"அடுத்த மாதம்","-1":"கடந்த மாதம்"},relativeTime:{future:{one:"{0} மாதத்தில்",other:"{0} மாதங்களில்"},past:{one:"{0} மாதத்துக்கு முன்",other:"{0} மாதங்களுக்கு முன்"}}},day:{displayName:"நாள்",relative:{0:"இன்று",1:"நாளை",2:"நாளை மறுநாள்","-1":"நேற்று","-2":"நேற்று முன் தினம்"},relativeTime:{future:{one:"{0} நாளில்",other:"{0} நாட்களில்"},past:{one:"{0} நாளைக்கு முன்",other:"{0} நாட்களுக்கு முன்"}}},hour:{displayName:"மணி",relativeTime:{future:{one:"{0} மணிநேரத்தில்",other:"{0} மணிநேரத்தில்"},past:{one:"{0} மணிநேரம் முன்",other:"{0} மணிநேரம் முன்"}}},minute:{displayName:"நிமிடம்",relativeTime:{future:{one:"{0} நிமிடத்தில்",other:"{0} நிமிடங்களில்"},past:{one:"{0} நிமிடத்திற்கு முன்",other:"{0} நிமிடங்களுக்கு முன்"}}},second:{displayName:"விநாடி",relative:{0:"இப்போது"},relativeTime:{future:{one:"{0} விநாடியில்",other:"{0} விநாடிகளில்"},past:{one:"{0} விநாடிக்கு முன்",other:"{0} விநாடிகளுக்கு முன்"}}}}}),ReactIntl.__addLocaleData({locale:"ta-IN",parentLocale:"ta"}),ReactIntl.__addLocaleData({locale:"ta-LK",parentLocale:"ta"}),ReactIntl.__addLocaleData({locale:"ta-MY",parentLocale:"ta"}),ReactIntl.__addLocaleData({locale:"ta-SG",parentLocale:"ta"}),ReactIntl.__addLocaleData({locale:"te",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"సంవత్సరం",relative:{0:"ఈ సంవత్సరం",1:"తదుపరి సంవత్సరం","-1":"గత సంవత్సరం"},relativeTime:{future:{one:"{0} సంవత్సరంలో",other:"{0} సంవత్సరాల్లో"},past:{one:"{0} సంవత్సరం క్రితం",other:"{0} సంవత్సరాల క్రితం"}}},month:{displayName:"నెల",relative:{0:"ఈ నెల",1:"తదుపరి నెల","-1":"గత నెల"},relativeTime:{future:{one:"{0} నెలలో",other:"{0} నెలల్లో"},past:{one:"{0} నెల క్రితం",other:"{0} నెలల క్రితం"}}},day:{displayName:"దినం",relative:{0:"ఈ రోజు",1:"రేపు",2:"ఎల్లుండి","-1":"నిన్న","-2":"మొన్న"},relativeTime:{future:{one:"{0} రోజులో",other:"{0} రోజుల్లో"},past:{one:"{0} రోజు క్రితం",other:"{0} రోజుల క్రితం"}}},hour:{displayName:"గంట",relativeTime:{future:{one:"{0} గంటలో",other:"{0} గంటల్లో"},past:{one:"{0} గంట క్రితం",other:"{0} గంటల క్రితం"}}},minute:{displayName:"నిమిషము",relativeTime:{future:{one:"{0} నిమిషంలో",other:"{0} నిమిషాల్లో"},past:{one:"{0} నిమిషం క్రితం",other:"{0} నిమిషాల క్రితం"}}},second:{displayName:"క్షణం",relative:{0:"ప్రస్తుతం"},relativeTime:{future:{one:"{0} సెకన్లో",other:"{0} సెకన్లలో"},past:{one:"{0} సెకను క్రితం",other:"{0} సెకన్ల క్రితం"}}}}}),ReactIntl.__addLocaleData({locale:"te-IN",parentLocale:"te"}),ReactIntl.__addLocaleData({locale:"teo",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Ekan",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Elap",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Aparan",relative:{0:"Lolo",1:"Moi","-1":"Jaan"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Esaa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Idakika",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Isekonde",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"teo-KE",parentLocale:"teo"}),ReactIntl.__addLocaleData({locale:"teo-UG",parentLocale:"teo"}),ReactIntl.__addLocaleData({locale:"th",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"ปี",relative:{0:"ปีนี้",1:"ปีหน้า","-1":"ปีที่แล้ว"},relativeTime:{future:{other:"ในอีก {0} ปี"},past:{other:"{0} ปีที่แล้ว"}}},month:{displayName:"เดือน",relative:{0:"เดือนนี้",1:"เดือนหน้า","-1":"เดือนที่แล้ว"},relativeTime:{future:{other:"ในอีก {0} เดือน"},past:{other:"{0} เดือนที่ผ่านมา"}}},day:{displayName:"วัน",relative:{0:"วันนี้",1:"พรุ่งนี้",2:"มะรืนนี้","-1":"เมื่อวาน","-2":"เมื่อวานซืน"},relativeTime:{future:{other:"ในอีก {0} วัน"},past:{other:"{0} วันที่ผ่านมา"}}},hour:{displayName:"ชั่วโมง",relativeTime:{future:{other:"ในอีก {0} ชั่วโมง"},past:{other:"{0} ชั่วโมงที่ผ่านมา"}}},minute:{displayName:"นาที",relativeTime:{future:{other:"ในอีก {0} นาที"},past:{other:"{0} นาทีที่ผ่านมา"}}},second:{displayName:"วินาที",relative:{0:"ขณะนี้"},relativeTime:{future:{other:"ในอีก {0} วินาที"},past:{other:"{0} วินาทีที่ผ่านมา"}}}}}),ReactIntl.__addLocaleData({locale:"th-TH",parentLocale:"th"}),ReactIntl.__addLocaleData({locale:"ti",pluralRuleFunction:function(a,b){return b?"other":0==a||1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ti-ER",parentLocale:"ti"}),ReactIntl.__addLocaleData({locale:"ti-ET",parentLocale:"ti"}),ReactIntl.__addLocaleData({locale:"tig",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"tk",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"tl",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=c[1]||"",f=!c[1],g=d.slice(-1),h=e.slice(-1);return b?1==a?"one":"other":f&&(1==d||2==d||3==d)||f&&4!=g&&6!=g&&9!=g||!f&&4!=h&&6!=h&&9!=h?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"tn",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"tn-BW",parentLocale:"tn"}),ReactIntl.__addLocaleData({locale:"tn-ZA",parentLocale:"tn"}),ReactIntl.__addLocaleData({locale:"to",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"taʻu",relative:{0:"taʻú ni",1:"taʻu kahaʻu","-1":"taʻu kuoʻosi"},relativeTime:{future:{other:"ʻi he taʻu ʻe {0}"},past:{other:"taʻu ʻe {0} kuoʻosi"}}},month:{displayName:"māhina",relative:{0:"māhiná ni",1:"māhina kahaʻu","-1":"māhina kuoʻosi"},relativeTime:{future:{other:"ʻi he māhina ʻe {0}"},past:{other:"māhina ʻe {0} kuoʻosi"}}},day:{displayName:"ʻaho",relative:{0:"ʻahó ni",1:"ʻapongipongi",2:"ʻahepongipongi","-1":"ʻaneafi","-2":"ʻaneheafi"},relativeTime:{future:{other:"ʻi he ʻaho ʻe {0}"},past:{other:"ʻaho ʻe {0} kuoʻosi"}}},hour:{displayName:"houa",relativeTime:{future:{other:"ʻi he houa ʻe {0}"},past:{other:"houa ʻe {0} kuoʻosi"}}},minute:{displayName:"miniti",relativeTime:{future:{other:"ʻi he miniti ʻe {0}"},past:{other:"miniti ʻe {0} kuoʻosi"}}},second:{displayName:"sekoni",relative:{0:"taimiʻni"},relativeTime:{future:{other:"ʻi he sekoni ʻe {0}"},past:{other:"sekoni ʻe {0} kuoʻosi"}}}}}),ReactIntl.__addLocaleData({locale:"to-TO",parentLocale:"to"}),ReactIntl.__addLocaleData({locale:"tr",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Yıl",relative:{0:"bu yıl",1:"gelecek yıl","-1":"geçen yıl"},relativeTime:{future:{one:"{0} yıl sonra",other:"{0} yıl sonra"},past:{one:"{0} yıl önce",other:"{0} yıl önce"}}},month:{displayName:"Ay",relative:{0:"bu ay",1:"gelecek ay","-1":"geçen ay"},relativeTime:{future:{one:"{0} ay sonra",other:"{0} ay sonra"},past:{one:"{0} ay önce",other:"{0} ay önce"}}},day:{displayName:"Gün",relative:{0:"bugün",1:"yarın",2:"öbür gün","-1":"dün","-2":"evvelsi gün"},relativeTime:{future:{one:"{0} gün sonra",other:"{0} gün sonra"},past:{one:"{0} gün önce",other:"{0} gün önce"}}},hour:{displayName:"Saat",relativeTime:{future:{one:"{0} saat sonra",other:"{0} saat sonra"},past:{one:"{0} saat önce",other:"{0} saat önce"}}},minute:{displayName:"Dakika",relativeTime:{future:{one:"{0} dakika sonra",other:"{0} dakika sonra"},past:{one:"{0} dakika önce",other:"{0} dakika önce"}}},second:{displayName:"Saniye",relative:{0:"şimdi"},relativeTime:{future:{one:"{0} saniye sonra",other:"{0} saniye sonra"},past:{one:"{0} saniye önce",other:"{0} saniye önce"}}}}}),ReactIntl.__addLocaleData({locale:"tr-CY",parentLocale:"tr"}),ReactIntl.__addLocaleData({locale:"tr-TR",parentLocale:"tr"}),ReactIntl.__addLocaleData({locale:"ts",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ts-ZA",parentLocale:"ts"}),ReactIntl.__addLocaleData({locale:"twq",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Jiiri",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Handu",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Zaari",relative:{0:"Hõo",1:"Suba","-1":"Bi"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Guuru",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Miniti",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Miti",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"twq-NE",parentLocale:"twq"}),ReactIntl.__addLocaleData({locale:"tzm",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=Number(c[0])==a;return b?"other":0==a||1==a||d&&a>=11&&99>=a?"one":"other"},fields:{year:{displayName:"Asseggas",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Ayur",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Ass",relative:{0:"Assa",1:"Asekka","-1":"Assenaṭ"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Tasragt",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Tusdat",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Tusnat",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"tzm-Latn",parentLocale:"tzm"}),ReactIntl.__addLocaleData({locale:"tzm-Latn-MA",parentLocale:"tzm-Latn"}),ReactIntl.__addLocaleData({locale:"ug",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"يىل",relative:{0:"بۇ يىل",1:"كېلەر يىل","-1":"ئۆتكەن يىل"},relativeTime:{future:{one:"{0} يىلدىن كېيىن",other:"{0} يىلدىن كېيىن"},past:{one:"{0} يىل ئىلگىرى",other:"{0} يىل ئىلگىرى"}}},month:{displayName:"ئاي",relative:{0:"بۇ ئاي",1:"كېلەر ئاي","-1":"ئۆتكەن ئاي"},relativeTime:{future:{one:"{0} ئايدىن كېيىن",other:"{0} ئايدىن كېيىن"},past:{one:"{0} ئاي ئىلگىرى",other:"{0} ئاي ئىلگىرى"}}},day:{displayName:"كۈن",relative:{0:"بۈگۈن",1:"ئەتە","-1":"تۈنۈگۈن"},relativeTime:{future:{one:"{0} كۈندىن كېيىن",other:"{0} كۈندىن كېيىن"},past:{one:"{0} كۈن ئىلگىرى",other:"{0} كۈن ئىلگىرى"}}},hour:{displayName:"سائەت",relativeTime:{future:{one:"{0} سائەتتىن كېيىن",other:"{0} سائەتتىن كېيىن"},past:{one:"{0} سائەت ئىلگىرى",other:"{0} سائەت ئىلگىرى"}}},minute:{displayName:"مىنۇت",relativeTime:{future:{one:"{0} مىنۇتتىن كېيىن",other:"{0} مىنۇتتىن كېيىن"},past:{one:"{0} مىنۇت ئىلگىرى",other:"{0} مىنۇت ئىلگىرى"}}},second:{displayName:"سېكۇنت",relative:{0:"now"},relativeTime:{future:{one:"{0} سېكۇنتتىن كېيىن",other:"{0} سېكۇنتتىن كېيىن"},past:{one:"{0} سېكۇنت ئىلگىرى",other:"{0} سېكۇنت ئىلگىرى"}}}}}),ReactIntl.__addLocaleData({locale:"ug-Arab",parentLocale:"ug"}),ReactIntl.__addLocaleData({locale:"ug-Arab-CN",parentLocale:"ug-Arab"}),ReactIntl.__addLocaleData({locale:"uk",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=c[0],e=!c[1],f=Number(c[0])==a,g=f&&c[0].slice(-1),h=f&&c[0].slice(-2),i=d.slice(-1),j=d.slice(-2);return b?3==g&&13!=h?"few":"other":e&&1==i&&11!=j?"one":e&&i>=2&&4>=i&&(12>j||j>14)?"few":e&&0==i||e&&i>=5&&9>=i||e&&j>=11&&14>=j?"many":"other"},fields:{year:{displayName:"Рік",relative:{0:"цього року",1:"наступного року","-1":"торік"},relativeTime:{future:{one:"через {0} рік",few:"через {0} роки",many:"через {0} років",other:"через {0} року"},past:{one:"{0} рік тому",few:"{0} роки тому",many:"{0} років тому",other:"{0} року тому"}}},month:{displayName:"Місяць",relative:{0:"цього місяця",1:"наступного місяця","-1":"минулого місяця"},relativeTime:{future:{one:"через {0} місяць",few:"через {0} місяці",many:"через {0} місяців",other:"через {0} місяця"},past:{one:"{0} місяць тому",few:"{0} місяці тому",many:"{0} місяців тому",other:"{0} місяця тому"}}},day:{displayName:"День",relative:{0:"сьогодні",1:"завтра",2:"післязавтра","-1":"учора","-2":"позавчора"},relativeTime:{future:{one:"через {0} день",few:"через {0} дні",many:"через {0} днів",other:"через {0} дня"},past:{one:"{0} день тому",few:"{0} дні тому",many:"{0} днів тому",other:"{0} дня тому"}}},hour:{displayName:"Година",relativeTime:{future:{one:"через {0} годину",few:"через {0} години",many:"через {0} годин",other:"через {0} години"},past:{one:"{0} годину тому",few:"{0} години тому",many:"{0} годин тому",other:"{0} години тому"}}},minute:{displayName:"Хвилина",relativeTime:{future:{one:"через {0} хвилину",few:"через {0} хвилини",many:"через {0} хвилин",other:"через {0} хвилини"},past:{one:"{0} хвилину тому",few:"{0} хвилини тому",many:"{0} хвилин тому",other:"{0} хвилини тому"}}},second:{displayName:"Секунда",relative:{0:"зараз"},relativeTime:{future:{one:"через {0} секунду",few:"через {0} секунди",many:"через {0} секунд",other:"через {0} секунди"},past:{one:"{0} секунду тому",few:"{0} секунди тому",many:"{0} секунд тому",other:"{0} секунди тому"}}}}}),ReactIntl.__addLocaleData({locale:"uk-UA",parentLocale:"uk"}),ReactIntl.__addLocaleData({locale:"ur",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1];return b?"other":1==a&&d?"one":"other"},fields:{year:{displayName:"سال",relative:{0:"اس سال",1:"اگلے سال","-1":"گزشتہ سال"},relativeTime:{future:{one:"{0} سال میں",other:"{0} سال میں"},past:{one:"{0} سال پہلے",other:"{0} سال پہلے"}}},month:{displayName:"مہینہ",relative:{0:"اس مہینہ",1:"اگلے مہینہ","-1":"پچھلے مہینہ"},relativeTime:{future:{one:"{0} مہینہ میں",other:"{0} مہینے میں"},past:{one:"{0} مہینہ پہلے",other:"{0} مہینے پہلے"}}},day:{displayName:"دن",relative:{0:"آج",1:"آئندہ کل",2:"آنے والا پرسوں","-1":"گزشتہ کل","-2":"گزشتہ پرسوں"},relativeTime:{future:{one:"{0} دن میں",other:"{0} دنوں میں"},past:{one:"{0} دن پہلے",other:"{0} دنوں پہلے"}}},hour:{displayName:"گھنٹہ",relativeTime:{future:{one:"{0} گھنٹہ میں",other:"{0} گھنٹے میں"},past:{one:"{0} گھنٹہ پہلے",other:"{0} گھنٹے پہلے"}}},minute:{displayName:"منٹ",relativeTime:{future:{one:"{0} منٹ میں",other:"{0} منٹ میں"},past:{one:"{0} منٹ پہلے",other:"{0} منٹ پہلے"}}},second:{displayName:"سیکنڈ",relative:{0:"اب"},relativeTime:{future:{one:"{0} سیکنڈ میں",other:"{0} سیکنڈ میں"},past:{one:"{0} سیکنڈ پہلے",other:"{0} سیکنڈ پہلے"}}}}}),ReactIntl.__addLocaleData({locale:"ur-IN",parentLocale:"ur",fields:{year:{displayName:"سال",relative:{0:"اس سال",1:"اگلے سال","-1":"گزشتہ سال"},relativeTime:{future:{one:"{0} سال میں",other:"{0} سالوں میں"},past:{one:"{0} سال پہلے",other:"{0} سالوں پہلے"}}},month:{displayName:"مہینہ",relative:{0:"اس ماہ",1:"اگلے ماہ","-1":"گزشتہ ماہ"},relativeTime:{future:{one:"{0} ماہ میں",other:"{0} ماہ میں"},past:{one:"{0} ماہ قبل",other:"{0} ماہ قبل"}}},day:{displayName:"دن",relative:{0:"آج",1:"کل",2:"آنے والا پرسوں","-1":"کل","-2":"گزشتہ پرسوں"},relativeTime:{future:{one:"{0} دن میں",other:"{0} دنوں میں"},past:{one:"{0} دن پہلے",other:"{0} دنوں پہلے"}}},hour:{displayName:"گھنٹہ",relativeTime:{future:{one:"{0} گھنٹہ میں",other:"{0} گھنٹے میں"},past:{one:"{0} گھنٹہ پہلے",other:"{0} گھنٹے پہلے"}}},minute:{displayName:"منٹ",relativeTime:{future:{one:"{0} منٹ میں",other:"{0} منٹ میں"},past:{one:"{0} منٹ قبل",other:"{0} منٹ قبل"}}},second:{displayName:"سیکنڈ",relative:{0:"اب"},relativeTime:{future:{one:"{0} سیکنڈ میں",other:"{0} سیکنڈ میں"},past:{one:"{0} سیکنڈ قبل",other:"{0} سیکنڈ قبل"}}}}}),ReactIntl.__addLocaleData({locale:"ur-PK",parentLocale:"ur"}),ReactIntl.__addLocaleData({locale:"uz",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Yil",relative:{0:"bu yil",1:"keyingi yil","-1":"oʻtgan yil"},relativeTime:{future:{one:"{0} yildan soʻng",other:"{0} yildan soʻng"},past:{one:"{0} yil avval",other:"{0} yil avval"}}},month:{displayName:"Oy",relative:{0:"bu oy",1:"keyingi oy","-1":"oʻtgan oy"},relativeTime:{future:{one:"{0} oydan soʻng",other:"{0} oydan soʻng"},past:{one:"{0} oy avval",other:"{0} oy avval"}}},day:{displayName:"Kun",relative:{0:"bugun",1:"ertaga","-1":"kecha"},relativeTime:{future:{one:"{0} kundan soʻng",other:"{0} kundan soʻng"},past:{one:"{0} kun oldin",other:"{0} kun oldin"}}},hour:{displayName:"Soat",relativeTime:{future:{one:"{0} soatdan soʻng",other:"{0} soatdan soʻng"},past:{one:"{0} soat oldin",other:"{0} soat oldin"}}},minute:{displayName:"Daqiqa",relativeTime:{future:{one:"{0} daqiqadan soʻng",other:"{0} daqiqadan soʻng"},past:{one:"{0} daqiqa oldin",other:"{0} daqiqa oldin"}}},second:{displayName:"Soniya",relative:{0:"hozir"},relativeTime:{future:{one:"{0} soniyadan soʻng",other:"{0} soniyadan soʻng"},past:{one:"{0} soniya oldin",other:"{0} soniya oldin"}}}}}),ReactIntl.__addLocaleData({locale:"uz-Arab",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"uz-Arab-AF",parentLocale:"uz-Arab"}),ReactIntl.__addLocaleData({locale:"uz-Cyrl",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Йил",relative:{0:"бу йил",1:"кейинги йил","-1":"ўтган йил"},relativeTime:{future:{one:"{0} йилдан сўнг",other:"{0} йилдан сўнг"},past:{one:"{0} йил аввал",other:"{0} йил аввал"}}},month:{displayName:"Ой",relative:{0:"бу ой",1:"кейинги ой","-1":"ўтган ой"},relativeTime:{future:{one:"{0} ойдан сўнг",other:"{0} ойдан сўнг"},past:{one:"{0} ой аввал",other:"{0} ой аввал"}}},day:{displayName:"Кун",relative:{0:"бугун",1:"эртага","-1":"кеча"},relativeTime:{future:{one:"{0} кундан сўнг",other:"{0} кундан сўнг"},past:{one:"{0} кун олдин",other:"{0} кун олдин"}}},hour:{displayName:"Соат",relativeTime:{future:{one:"{0} соатдан сўнг",other:"{0} соатдан сўнг"},past:{one:"{0} соат олдин",other:"{0} соат олдин"}}},minute:{displayName:"Дақиқа",relativeTime:{future:{one:"{0} дақиқадан сўнг",other:"{0} дақиқадан сўнг"},past:{one:"{0} дақиқа олдин",other:"{0} дақиқа олдин"}}},second:{displayName:"Сония",relative:{0:"ҳозир"},relativeTime:{future:{one:"{0} сониядан сўнг",other:"{0} сониядан сўнг"},past:{one:"{0} сония олдин",other:"{0} сония олдин"}}}}}),ReactIntl.__addLocaleData({locale:"uz-Cyrl-UZ",parentLocale:"uz-Cyrl"}),ReactIntl.__addLocaleData({locale:"uz-Latn",parentLocale:"uz"}),ReactIntl.__addLocaleData({locale:"uz-Latn-UZ",parentLocale:"uz-Latn"}),ReactIntl.__addLocaleData({locale:"vai",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"ꕢꘋ",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"ꕪꖃ",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"ꔎꔒ",relative:{0:"ꗦꗷ",1:"ꔻꕯ","-1":"ꖴꖸ"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"ꕌꕎ",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"ꕆꕇ",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"ꕧꕃꕧꕪ",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"vai-Latn",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"saŋ",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"kalo",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"tele",relative:{0:"wɛlɛ",1:"sina","-1":"kunu"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"hawa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"mini",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"jaki-jaka",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"vai-Latn-LR",parentLocale:"vai-Latn"}),ReactIntl.__addLocaleData({locale:"vai-Vaii",parentLocale:"vai"}),ReactIntl.__addLocaleData({locale:"vai-Vaii-LR",parentLocale:"vai-Vaii"}),ReactIntl.__addLocaleData({locale:"ve",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"ve-ZA",parentLocale:"ve"}),ReactIntl.__addLocaleData({locale:"vi",pluralRuleFunction:function(a,b){return b&&1==a?"one":"other"},fields:{year:{displayName:"Năm",relative:{0:"năm nay",1:"năm sau","-1":"năm ngoái"},relativeTime:{future:{other:"trong {0} năm nữa"},past:{other:"{0} năm trước"}}},month:{displayName:"Tháng",relative:{0:"tháng này",1:"tháng sau","-1":"tháng trước"},relativeTime:{future:{other:"trong {0} tháng nữa"},past:{other:"{0} tháng trước"}}},day:{displayName:"Ngày",relative:{0:"hôm nay",1:"ngày mai",2:"ngày kia","-1":"hôm qua","-2":"hôm kia"},relativeTime:{future:{other:"trong {0} ngày nữa"},past:{other:"{0} ngày trước"}}},hour:{displayName:"Giờ",relativeTime:{future:{other:"trong {0} giờ nữa"},past:{other:"{0} giờ trước"}}},minute:{displayName:"Phút",relativeTime:{future:{other:"trong {0} phút nữa"},past:{other:"{0} phút trước"}}},second:{displayName:"Giây",relative:{0:"bây giờ"},relativeTime:{future:{other:"trong {0} giây nữa"},past:{other:"{0} giây trước"}}}}}),ReactIntl.__addLocaleData({locale:"vi-VN",parentLocale:"vi"}),ReactIntl.__addLocaleData({locale:"vo",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"yel",relative:{0:"ayelo",1:"oyelo","-1":"äyelo"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"mul",relative:{0:"amulo",1:"omulo","-1":"ämulo"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Tag",relative:{0:"adelo",1:"odelo",2:"udelo","-1":"ädelo","-2":"edelo"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"düp",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"minut",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"sekun",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"vo-001",parentLocale:"vo"}),ReactIntl.__addLocaleData({locale:"vun",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Maka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Mori",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Mfiri",relative:{0:"Inu",1:"Ngama","-1":"Ukou"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Saa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Dakyika",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Sekunde",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"vun-TZ",parentLocale:"vun"}),ReactIntl.__addLocaleData({locale:"wa",pluralRuleFunction:function(a,b){return b?"other":0==a||1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"wae",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Jár",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"I {0} jár",other:"I {0} jár"},past:{one:"vor {0} jár",other:"cor {0} jár"}}},month:{displayName:"Mánet",relative:{0:"this month",1:"next month",
"-1":"last month"},relativeTime:{future:{one:"I {0} mánet",other:"I {0} mánet"},past:{one:"vor {0} mánet",other:"vor {0} mánet"}}},day:{displayName:"Tag",relative:{0:"Hitte",1:"Móre",2:"Ubermóre","-1":"Gešter","-2":"Vorgešter"},relativeTime:{future:{one:"i {0} tag",other:"i {0} täg"},past:{one:"vor {0} tag",other:"vor {0} täg"}}},hour:{displayName:"Schtund",relativeTime:{future:{one:"i {0} stund",other:"i {0} stunde"},past:{one:"vor {0} stund",other:"vor {0} stunde"}}},minute:{displayName:"Mínütta",relativeTime:{future:{one:"i {0} minüta",other:"i {0} minüte"},past:{one:"vor {0} minüta",other:"vor {0} minüte"}}},second:{displayName:"Sekunda",relative:{0:"now"},relativeTime:{future:{one:"i {0} sekund",other:"i {0} sekunde"},past:{one:"vor {0} sekund",other:"vor {0} sekunde"}}}}}),ReactIntl.__addLocaleData({locale:"wae-CH",parentLocale:"wae"}),ReactIntl.__addLocaleData({locale:"wo",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"xh",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"xog",pluralRuleFunction:function(a,b){return b?"other":1==a?"one":"other"},fields:{year:{displayName:"Omwaka",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Omwezi",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Olunaku",relative:{0:"Olwaleelo (leelo)",1:"Enkyo","-1":"Edho"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Essawa",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Edakiika",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Obutikitiki",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"xog-UG",parentLocale:"xog"}),ReactIntl.__addLocaleData({locale:"yav",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"yɔɔŋ",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"oóli",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"puɔ́sɛ́",relative:{0:"ínaan",1:"nakinyám","-1":"púyoó"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"kisikɛl,",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"minít",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"síkɛn",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"yav-CM",parentLocale:"yav"}),ReactIntl.__addLocaleData({locale:"yi",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1];return b?"other":1==a&&d?"one":"other"},fields:{year:{displayName:"יאָהר",relative:{0:"הײַ יאָר",1:"איבער א יאָר","-1":"פֿאַראַיאָר"},relativeTime:{future:{one:"איבער {0} יאָר",other:"איבער {0} יאָר"},past:{one:"פֿאַר {0} יאָר",other:"פֿאַר {0} יאָר"}}},month:{displayName:"מאנאַט",relative:{0:"דעם חודש",1:"קומענדיקן חודש","-1":"פֿאַרגאנגענעם חודש"},relativeTime:{future:{one:"איבער {0} חודש",other:"איבער {0} חדשים"},past:{one:"פֿאַר {0} חודש",other:"פֿאַר {0} חדשים"}}},day:{displayName:"טאג",relative:{0:"היינט",1:"מארגן","-1":"נעכטן"},relativeTime:{future:{one:"אין {0} טאָג אַרום",other:"אין {0} טעג אַרום"},past:{other:"-{0} d"}}},hour:{displayName:"שעה",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"מינוט",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"סעקונדע",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"yi-001",parentLocale:"yi"}),ReactIntl.__addLocaleData({locale:"yo",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"Ọdún",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Osù",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Ọjọ́",relative:{0:"Òní",1:"Ọ̀la",2:"òtúùnla","-1":"Àná","-2":"íjẹta"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"wákàtí",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Ìsẹ́jú",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Ìsẹ́jú Ààyá",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"yo-BJ",parentLocale:"yo",fields:{year:{displayName:"Ɔdún",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Osù",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Ɔjɔ́",relative:{0:"Òní",1:"Ɔ̀la",2:"òtúùnla","-1":"Àná","-2":"íjɛta"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"wákàtí",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Ìsɛ́jú",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Ìsɛ́jú Ààyá",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"yo-NG",parentLocale:"yo"}),ReactIntl.__addLocaleData({locale:"zgh",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"ⴰⵙⴳⴳⵯⴰⵙ",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"ⴰⵢⵢⵓⵔ",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"ⴰⵙⵙ",relative:{0:"ⴰⵙⵙⴰ",1:"ⴰⵙⴽⴽⴰ","-1":"ⵉⴹⵍⵍⵉ"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"ⵜⴰⵙⵔⴰⴳⵜ",relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"ⵜⵓⵙⴷⵉⴷⵜ",relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"ⵜⴰⵙⵉⵏⵜ",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}}),ReactIntl.__addLocaleData({locale:"zgh-MA",parentLocale:"zgh"}),ReactIntl.__addLocaleData({locale:"zh",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"年",relative:{0:"今年",1:"明年","-1":"去年"},relativeTime:{future:{other:"{0}年后"},past:{other:"{0}年前"}}},month:{displayName:"月",relative:{0:"本月",1:"下个月","-1":"上个月"},relativeTime:{future:{other:"{0}个月后"},past:{other:"{0}个月前"}}},day:{displayName:"日",relative:{0:"今天",1:"明天",2:"后天","-1":"昨天","-2":"前天"},relativeTime:{future:{other:"{0}天后"},past:{other:"{0}天前"}}},hour:{displayName:"小时",relativeTime:{future:{other:"{0}小时后"},past:{other:"{0}小时前"}}},minute:{displayName:"分钟",relativeTime:{future:{other:"{0}分钟后"},past:{other:"{0}分钟前"}}},second:{displayName:"秒钟",relative:{0:"现在"},relativeTime:{future:{other:"{0}秒钟后"},past:{other:"{0}秒钟前"}}}}}),ReactIntl.__addLocaleData({locale:"zh-Hans",parentLocale:"zh"}),ReactIntl.__addLocaleData({locale:"zh-Hans-CN",parentLocale:"zh-Hans"}),ReactIntl.__addLocaleData({locale:"zh-Hans-HK",parentLocale:"zh-Hans",fields:{year:{displayName:"年",relative:{0:"今年",1:"明年","-1":"去年"},relativeTime:{future:{other:"{0}年后"},past:{other:"{0}年前"}}},month:{displayName:"月",relative:{0:"本月",1:"下个月","-1":"上个月"},relativeTime:{future:{other:"{0}个月后"},past:{other:"{0}个月前"}}},day:{displayName:"日",relative:{0:"今天",1:"明天",2:"后天","-1":"昨天","-2":"前天"},relativeTime:{future:{other:"{0}天后"},past:{other:"{0}天前"}}},hour:{displayName:"小时",relativeTime:{future:{other:"{0}小时后"},past:{other:"{0}小时前"}}},minute:{displayName:"分钟",relativeTime:{future:{other:"{0}分钟后"},past:{other:"{0}分钟前"}}},second:{displayName:"秒钟",relative:{0:"现在"},relativeTime:{future:{other:"{0}秒后"},past:{other:"{0}秒前"}}}}}),ReactIntl.__addLocaleData({locale:"zh-Hans-MO",parentLocale:"zh-Hans",fields:{year:{displayName:"年",relative:{0:"今年",1:"明年","-1":"去年"},relativeTime:{future:{other:"{0}年后"},past:{other:"{0}年前"}}},month:{displayName:"月",relative:{0:"本月",1:"下个月","-1":"上个月"},relativeTime:{future:{other:"{0}个月后"},past:{other:"{0}个月前"}}},day:{displayName:"天",relative:{0:"今天",1:"明天",2:"后天","-1":"昨天","-2":"前天"},relativeTime:{future:{other:"{0}天后"},past:{other:"{0}天前"}}},hour:{displayName:"小时",relativeTime:{future:{other:"{0}小时后"},past:{other:"{0}小时前"}}},minute:{displayName:"分钟",relativeTime:{future:{other:"{0}分钟后"},past:{other:"{0}分钟前"}}},second:{displayName:"秒钟",relative:{0:"现在"},relativeTime:{future:{other:"{0}秒后"},past:{other:"{0}秒前"}}}}}),ReactIntl.__addLocaleData({locale:"zh-Hans-SG",parentLocale:"zh-Hans",fields:{year:{displayName:"年",relative:{0:"今年",1:"明年","-1":"去年"},relativeTime:{future:{other:"{0}年后"},past:{other:"{0}年前"}}},month:{displayName:"月",relative:{0:"本月",1:"下个月","-1":"上个月"},relativeTime:{future:{other:"{0}个月后"},past:{other:"{0}个月前"}}},day:{displayName:"日",relative:{0:"今天",1:"明天",2:"后天","-1":"昨天","-2":"前天"},relativeTime:{future:{other:"{0}天后"},past:{other:"{0}天前"}}},hour:{displayName:"小时",relativeTime:{future:{other:"{0}小时后"},past:{other:"{0}小时前"}}},minute:{displayName:"分钟",relativeTime:{future:{other:"{0}分钟后"},past:{other:"{0}分钟前"}}},second:{displayName:"秒钟",relative:{0:"现在"},relativeTime:{future:{other:"{0}秒后"},past:{other:"{0}秒前"}}}}}),ReactIntl.__addLocaleData({locale:"zh-Hant",pluralRuleFunction:function(a,b){return"other"},fields:{year:{displayName:"年",relative:{0:"今年",1:"明年","-1":"去年"},relativeTime:{future:{other:"{0} 年後"},past:{other:"{0} 年前"}}},month:{displayName:"月",relative:{0:"本月",1:"下個月","-1":"上個月"},relativeTime:{future:{other:"{0} 個月後"},past:{other:"{0} 個月前"}}},day:{displayName:"日",relative:{0:"今天",1:"明天",2:"後天","-1":"昨天","-2":"前天"},relativeTime:{future:{other:"{0} 天後"},past:{other:"{0} 天前"}}},hour:{displayName:"小時",relativeTime:{future:{other:"{0} 小時後"},past:{other:"{0} 小時前"}}},minute:{displayName:"分鐘",relativeTime:{future:{other:"{0} 分鐘後"},past:{other:"{0} 分鐘前"}}},second:{displayName:"秒",relative:{0:"現在"},relativeTime:{future:{other:"{0} 秒後"},past:{other:"{0} 秒前"}}}}}),ReactIntl.__addLocaleData({locale:"zh-Hant-HK",parentLocale:"zh-Hant",fields:{year:{displayName:"年",relative:{0:"今年",1:"明年","-1":"去年"},relativeTime:{future:{other:"{0} 年後"},past:{other:"{0} 年前"}}},month:{displayName:"月",relative:{0:"本月",1:"下個月","-1":"上個月"},relativeTime:{future:{other:"{0} 個月後"},past:{other:"{0} 個月前"}}},day:{displayName:"日",relative:{0:"今日",1:"明日",2:"後日","-1":"昨日","-2":"前日"},relativeTime:{future:{other:"{0} 日後"},past:{other:"{0} 日前"}}},hour:{displayName:"小時",relativeTime:{future:{other:"{0} 小時後"},past:{other:"{0} 小時前"}}},minute:{displayName:"分鐘",relativeTime:{future:{other:"{0} 分鐘後"},past:{other:"{0} 分鐘前"}}},second:{displayName:"秒",relative:{0:"現在"},relativeTime:{future:{other:"{0} 秒後"},past:{other:"{0} 秒前"}}}}}),ReactIntl.__addLocaleData({locale:"zh-Hant-MO",parentLocale:"zh-Hant-HK"}),ReactIntl.__addLocaleData({locale:"zh-Hant-TW",parentLocale:"zh-Hant"}),ReactIntl.__addLocaleData({locale:"zu",pluralRuleFunction:function(a,b){return b?"other":a>=0&&1>=a?"one":"other"},fields:{year:{displayName:"Unyaka",relative:{0:"kulo nyaka",1:"unyaka ozayo","-1":"onyakeni odlule"},relativeTime:{future:{one:"onyakeni ongu-{0}",other:"Eminyakeni engu-{0}"},past:{one:"{0} unyaka odlule",other:"{0} iminyaka edlule"}}},month:{displayName:"Inyanga",relative:{0:"le nyanga",1:"inyanga ezayo","-1":"inyanga edlule"},relativeTime:{future:{one:"Enyangeni engu-{0}",other:"Ezinyangeni ezingu-{0}"},past:{one:"{0} inyanga edlule",other:"{0} izinyanga ezedlule"}}},day:{displayName:"usuku",relative:{0:"namhlanje",1:"kusasa",2:"Usuku olulandela olakusasa","-1":"izolo","-2":"Usuku olwandulela olwayizolo"},relativeTime:{future:{one:"Osukwini olungu-{0}",other:"Ezinsukwini ezingu-{0}"},past:{one:"osukwini olungu-{0} olwedlule",other:"ezinsukwini ezingu-{0} ezedlule."}}},hour:{displayName:"Ihora",relativeTime:{future:{one:"Ehoreni elingu-{0}",other:"Emahoreni angu-{0}"},past:{one:"ehoreni eligu-{0} eledluli",other:"emahoreni angu-{0} edlule"}}},minute:{displayName:"Iminithi",relativeTime:{future:{one:"Kumunithi engu-{0}",other:"Emaminithini angu-{0}"},past:{one:"eminithini elingu-{0} eledlule",other:"amaminithi angu-{0} adlule"}}},second:{displayName:"Isekhondi",relative:{0:"manje"},relativeTime:{future:{one:"Kusekhondi elingu-{0}",other:"Kumasekhondi angu-{0}"},past:{one:"isekhondi elingu-{0} eledlule",other:"amasekhondi angu-{0} adlule"}}}}}),ReactIntl.__addLocaleData({locale:"zu-ZA",parentLocale:"zu"});
//# sourceMappingURL=react-intl-with-locales.min.js.map
|
ajax/libs/react-native-web/0.11.4/cjs/vendor/react-native/ListView/index.min.js
|
cdnjs/cdnjs
|
"use strict";exports.__esModule=!0,exports.default=void 0;var _ListViewDataSource=_interopRequireDefault(require("./ListViewDataSource")),_Platform=_interopRequireDefault(require("../../../exports/Platform")),_react=_interopRequireDefault(require("react")),_propTypes=_interopRequireDefault(require("prop-types")),_findNodeHandle=_interopRequireDefault(require("../../../exports/findNodeHandle")),_NativeModules=_interopRequireDefault(require("../../../exports/NativeModules")),_ScrollView=_interopRequireDefault(require("../../../exports/ScrollView")),_ScrollResponder=_interopRequireDefault(require("../../../modules/ScrollResponder")),_StaticRenderer=_interopRequireDefault(require("../StaticRenderer")),_reactTimerMixin=_interopRequireDefault(require("react-timer-mixin")),_View=_interopRequireDefault(require("../../../exports/View")),_cloneReferencedElement=_interopRequireDefault(require("./cloneReferencedElement")),_createReactClass=_interopRequireDefault(require("create-react-class")),_isEmpty=_interopRequireDefault(require("../isEmpty"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};for(var o,r={},n=Object.keys(e),i=0;i<n.length;i++)o=n[i],0<=t.indexOf(o)||(r[o]=e[o]);return r}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},r=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable}))),r.forEach(function(e){_defineProperty(t,e,o[e])})}return t}function _defineProperty(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var merge=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return Object.assign.apply(Object,[{}].concat(t))},RCTScrollViewManager=_NativeModules.default.ScrollViewManager,DEFAULT_PAGE_SIZE=1,DEFAULT_INITIAL_ROWS=10,DEFAULT_SCROLL_RENDER_AHEAD=1e3,DEFAULT_END_REACHED_THRESHOLD=1e3,DEFAULT_SCROLL_CALLBACK_THROTTLE=50,ListView=(0,_createReactClass.default)({displayName:"ListView",_childFrames:[],_sentEndForContentLength:null,_scrollComponent:null,_prevRenderedRowsCount:0,_visibleRows:{},scrollProperties:{},mixins:[_ScrollResponder.default.Mixin,_reactTimerMixin.default],statics:{DataSource:_ListViewDataSource.default},propTypes:_objectSpread({},_ScrollView.default.propTypes,{dataSource:_propTypes.default.instanceOf(_ListViewDataSource.default).isRequired,renderSeparator:_propTypes.default.func,renderRow:_propTypes.default.func.isRequired,initialListSize:_propTypes.default.number.isRequired,onEndReached:_propTypes.default.func,onEndReachedThreshold:_propTypes.default.number.isRequired,pageSize:_propTypes.default.number.isRequired,renderFooter:_propTypes.default.func,renderHeader:_propTypes.default.func,renderSectionHeader:_propTypes.default.func,renderScrollComponent:_propTypes.default.func.isRequired,scrollRenderAheadDistance:_propTypes.default.number.isRequired,onChangeVisibleRows:_propTypes.default.func,removeClippedSubviews:_propTypes.default.bool,stickySectionHeadersEnabled:_propTypes.default.bool,stickyHeaderIndices:_propTypes.default.arrayOf(_propTypes.default.number).isRequired,enableEmptySections:_propTypes.default.bool}),getMetrics:function(){return{contentLength:this.scrollProperties.contentLength,totalRows:this.props.enableEmptySections?this.props.dataSource.getRowAndSectionCount():this.props.dataSource.getRowCount(),renderedRows:this.state.curRenderedRowsCount,visibleRows:Object.keys(this._visibleRows).length}},getScrollResponder:function(){if(this._scrollComponent&&this._scrollComponent.getScrollResponder)return this._scrollComponent.getScrollResponder()},getScrollableNode:function(){return this._scrollComponent&&this._scrollComponent.getScrollableNode?this._scrollComponent.getScrollableNode():(0,_findNodeHandle.default)(this._scrollComponent)},scrollTo:function(){var e;this._scrollComponent&&this._scrollComponent.scrollTo&&(e=this._scrollComponent).scrollTo.apply(e,arguments)},scrollToEnd:function(e){this._scrollComponent&&(this._scrollComponent.scrollToEnd?this._scrollComponent.scrollToEnd(e):console.warn("The scroll component used by the ListView does not support scrollToEnd. Check the renderScrollComponent prop of your ListView."))},flashScrollIndicators:function(){this._scrollComponent&&this._scrollComponent.flashScrollIndicators&&this._scrollComponent.flashScrollIndicators()},setNativeProps:function(e){this._scrollComponent&&this._scrollComponent.setNativeProps(e)},getDefaultProps:function(){return{initialListSize:DEFAULT_INITIAL_ROWS,pageSize:DEFAULT_PAGE_SIZE,renderScrollComponent:function(e){return _react.default.createElement(_ScrollView.default,e)},scrollRenderAheadDistance:DEFAULT_SCROLL_RENDER_AHEAD,onEndReachedThreshold:DEFAULT_END_REACHED_THRESHOLD,stickySectionHeadersEnabled:"ios"===_Platform.default.OS||"web"===_Platform.default.OS,stickyHeaderIndices:[]}},getInitialState:function(){return{curRenderedRowsCount:this.props.initialListSize,highlightedRow:{}}},getInnerViewNode:function(){return this._scrollComponent.getInnerViewNode()},UNSAFE_componentWillMount:function(){this.scrollProperties={visibleLength:null,contentLength:null,offset:0},this._childFrames=[],this._visibleRows={},this._prevRenderedRowsCount=0,this._sentEndForContentLength=null},componentDidMount:function(){var e=this;this.requestAnimationFrame(function(){e._measureAndUpdateScrollProps()})},UNSAFE_componentWillReceiveProps:function(e){var o=this;this.props.dataSource===e.dataSource&&this.props.initialListSize===e.initialListSize||this.setState(function(e,t){return o._prevRenderedRowsCount=0,{curRenderedRowsCount:Math.min(Math.max(e.curRenderedRowsCount,t.initialListSize),t.enableEmptySections?t.dataSource.getRowAndSectionCount():t.dataSource.getRowCount())}},function(){return o._renderMoreRowsIfNeeded()})},componentDidUpdate:function(){var e=this;this.requestAnimationFrame(function(){e._measureAndUpdateScrollProps()})},_onRowHighlighted:function(e,t){this.setState({highlightedRow:{sectionID:e,rowID:t}})},render:function(){for(var e=[],t=this.props.dataSource,o=t.rowIdentities,r=0,n=[],i=this.props.renderSectionHeader,s=this.props.renderHeader&&this.props.renderHeader(),l=this.props.renderFooter&&this.props.renderFooter(),a=s?1:0,d=0;d<o.length;d++){var p,c=t.sectionIdentities[d],u=o[d];if(0===u.length){if(void 0===this.props.enableEmptySections){require("fbjs/lib/warning")(!1,"In next release empty section headers will be rendered. In this release you can use 'enableEmptySections' flag to render empty section headers.");continue}require("fbjs/lib/invariant")(this.props.enableEmptySections,"In next release 'enableEmptySections' flag will be deprecated, empty section headers will always be rendered. If empty section headers are not desirable their indices should be excluded from sectionIDs object. In this release 'enableEmptySections' may only have value 'true' to allow empty section headers rendering.")}!i||(p=i(t.getSectionHeaderData(d),c))&&(e.push(_react.default.cloneElement(p,{key:"s_"+c})),this.props.stickySectionHeadersEnabled&&n.push(a),a++);for(var h=0;h<u.length;h++){var _,f,R=u[h],S=c+"_"+R,w=r>=this._prevRenderedRowsCount&&t.rowShouldUpdate(d,h),g=_react.default.createElement(_StaticRenderer.default,{key:"r_"+S,shouldUpdate:!!w,render:this.props.renderRow.bind(null,t.getRowData(d,h),c,R,this._onRowHighlighted)});if(e.push(g),a++,!this.props.renderSeparator||h===u.length-1&&d!==o.length-1||(_=this.state.highlightedRow.sectionID===c&&(this.state.highlightedRow.rowID===R||this.state.highlightedRow.rowID===u[h+1]),(f=this.props.renderSeparator(c,R,_))&&(e.push(_react.default.createElement(_View.default,{key:"s_"+S},f)),a++)),++r===this.state.curRenderedRowsCount)break}if(r>=this.state.curRenderedRowsCount)break}var m=this.props,C=m.renderScrollComponent,b=_objectWithoutPropertiesLoose(m,["renderScrollComponent"]);return b.scrollEventThrottle||(b.scrollEventThrottle=DEFAULT_SCROLL_CALLBACK_THROTTLE),void 0===b.removeClippedSubviews&&(b.removeClippedSubviews=!0),Object.assign(b,{onScroll:this._onScroll,stickyHeaderIndices:this.props.stickyHeaderIndices.concat(n),onKeyboardWillShow:void 0,onKeyboardWillHide:void 0,onKeyboardDidShow:void 0,onKeyboardDidHide:void 0}),(0,_cloneReferencedElement.default)(C(b),{ref:this._setScrollComponentRef,onContentSizeChange:this._onContentSizeChange,onLayout:this._onLayout,DEPRECATED_sendUpdatedChildFrames:(b.onChangeVisibleRows,!0)},s,e,l)},_measureAndUpdateScrollProps:function(){var e=this.getScrollResponder();e&&e.getInnerViewNode&&RCTScrollViewManager&&RCTScrollViewManager.calculateChildFrames&&RCTScrollViewManager.calculateChildFrames((0,_findNodeHandle.default)(e),this._updateVisibleRows)},_setScrollComponentRef:function(e){this._scrollComponent=e},_onContentSizeChange:function(e,t){var o=this.props.horizontal?e:t;o!==this.scrollProperties.contentLength&&(this.scrollProperties.contentLength=o,this._updateVisibleRows(),this._renderMoreRowsIfNeeded()),this.props.onContentSizeChange&&this.props.onContentSizeChange(e,t)},_onLayout:function(e){var t=e.nativeEvent.layout,o=t.width,r=t.height,n=this.props.horizontal?o:r;n!==this.scrollProperties.visibleLength&&(this.scrollProperties.visibleLength=n,this._updateVisibleRows(),this._renderMoreRowsIfNeeded()),this.props.onLayout&&this.props.onLayout(e)},_maybeCallOnEndReached:function(e){return!!(this.props.onEndReached&&this.scrollProperties.contentLength!==this._sentEndForContentLength&&this._getDistanceFromEnd(this.scrollProperties)<this.props.onEndReachedThreshold&&this.state.curRenderedRowsCount===(this.props.enableEmptySections?this.props.dataSource.getRowAndSectionCount():this.props.dataSource.getRowCount()))&&(this._sentEndForContentLength=this.scrollProperties.contentLength,this.props.onEndReached(e),!0)},_renderMoreRowsIfNeeded:function(){null!==this.scrollProperties.contentLength&&null!==this.scrollProperties.visibleLength&&this.state.curRenderedRowsCount!==(this.props.enableEmptySections?this.props.dataSource.getRowAndSectionCount():this.props.dataSource.getRowCount())?this._getDistanceFromEnd(this.scrollProperties)<this.props.scrollRenderAheadDistance&&this._pageInNewRows():this._maybeCallOnEndReached()},_pageInNewRows:function(){var r=this;this.setState(function(e,t){var o=Math.min(e.curRenderedRowsCount+t.pageSize,t.enableEmptySections?t.dataSource.getRowAndSectionCount():t.dataSource.getRowCount());return r._prevRenderedRowsCount=e.curRenderedRowsCount,{curRenderedRowsCount:o}},function(){r._measureAndUpdateScrollProps(),r._prevRenderedRowsCount=r.state.curRenderedRowsCount})},_getDistanceFromEnd:function(e){return e.contentLength-e.visibleLength-e.offset},_updateVisibleRows:function(e){var t=this;if(this.props.onChangeVisibleRows){e&&e.forEach(function(e){t._childFrames[e.index]=merge(e)});for(var o=!this.props.horizontal,r=this.props.dataSource,n=this.scrollProperties.offset,i=n+this.scrollProperties.visibleLength,s=r.rowIdentities,l=this.props.renderHeader&&this.props.renderHeader()?1:0,a=!1,d={},p=0;p<s.length;p++){var c=s[p];if(0!==c.length){var u=r.sectionIdentities[p];this.props.renderSectionHeader&&l++;for(var h=(h=this._visibleRows[u])||{},_=0;_<c.length;_++){var f=c[_],R=this._childFrames[l];if(l++,!this.props.renderSeparator||_===c.length-1&&p!==s.length-1||l++,!R)break;var S=h[f],w=o?R.y:R.x,g=w+(o?R.height:R.width);if(!w&&!g||w===g)break;i<w||g<n?S&&(a=!0,delete h[f],d[u]||(d[u]={}),d[u][f]=!1):S||(a=!0,h[f]=!0,d[u]||(d[u]={}),d[u][f]=!0)}(0,_isEmpty.default)(h)?this._visibleRows[u]&&delete this._visibleRows[u]:this._visibleRows[u]=h}}a&&this.props.onChangeVisibleRows(this._visibleRows,d)}},_onScroll:function(e){var t=!this.props.horizontal;this.scrollProperties.visibleLength=e.nativeEvent.layoutMeasurement[t?"height":"width"],this.scrollProperties.contentLength=e.nativeEvent.contentSize[t?"height":"width"],this.scrollProperties.offset=e.nativeEvent.contentOffset[t?"y":"x"],this._updateVisibleRows(e.nativeEvent.updatedChildFrames),this._maybeCallOnEndReached(e)||this._renderMoreRowsIfNeeded(),this.props.onEndReached&&this._getDistanceFromEnd(this.scrollProperties)>this.props.onEndReachedThreshold&&(this._sentEndForContentLength=null),this.props.onScroll&&this.props.onScroll(e)}}),_default=ListView;exports.default=ListView,module.exports=exports.default;
|
packages/material-ui/src/internal/svg-icons/CheckBoxOutlineBlank.js
|
allanalexandre/material-ui
|
import React from 'react';
import createSvgIcon from './createSvgIcon';
/**
* @ignore - internal component.
*/
export default createSvgIcon(
<path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" />,
'CheckBoxOutlineBlank',
);
|
src/js/components/docker/partial/DeveloperTools.js
|
ajainsyn/project
|
import React from 'react';
import javaIcon from '../../../../assets/images/java_icon.png';
import azureIcon from '../../../../assets/images/azure_icon.png';
import dockerIcon from '../../../../assets/images/docker.png';
import cfIcon from '../../../../assets/images/cf_icon.png';
import synbaasLogo from '../../../../assets/images/synbaas_logo.png';
import nodejsLogo from '../../../../assets/images/nodejs-logo.png';
const DeveloperTools = () => (
<section className="section" id="devTools">
<div className="container">
<h2 className="title">Deveoper Tools</h2>
<p>To run the Email notification microservice you need to make sure having these developer tools installed to feel the better perfornamce.</p>
<div className="devToolsLogos">
<a href="https://java.com/download" target="_blank"><img src={javaIcon} alt="JAVA" /></a>
<a href="https://nodejs.org/en/" target="_blank"><img src={nodejsLogo} alt="node" /></a>
<a href="/" target="_blank" className="logo-synbaas"><img src={synbaasLogo} alt="SynBaaS" /></a>
<a href="https://azure.microsoft.com/" target="_blank" className="logo-azure"><img src={azureIcon} alt="Azure" /></a>
<a href="https://www.docker.com/" target="_blank"><img src={dockerIcon} alt="Docker" /></a>
<a href="https://www.cloudfoundry.org/" target="_blank"><img src={cfIcon} alt="Cloud Foundry" /></a>
</div>
</div>
</section>
);
export default DeveloperTools;
|
app/pages/reservation/PaymentSuccess.js
|
fastmonkeys/respa-ui
|
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { injectIntl } from 'react-intl';
import flow from 'lodash/flow';
import get from 'lodash/get';
import isPlainObject from 'lodash/isPlainObject';
import { currentUserSelector } from '../../state/selectors/authSelectors';
import ReservationConfirmation from './reservation-confirmation/ReservationConfirmation';
const translateEntity = (entity, locale) => (
Object
.entries(entity)
.reduce((acc, [key, value]) => {
const localizedValue = get(value, locale, value);
acc[key] = isPlainObject(localizedValue) ? null : localizedValue;
return acc;
}, {})
);
function PaymentSuccess({
reservation,
resource,
user,
intl: { locale },
}) {
const translatedReservation = translateEntity(reservation, locale);
const translatedResource = translateEntity(resource, locale);
return (
<div>
<ReservationConfirmation
reservation={translatedReservation}
resource={translatedResource}
user={user}
/>
</div>
);
}
PaymentSuccess.propTypes = {
reservation: PropTypes.object,
resource: PropTypes.object,
user: PropTypes.object,
intl: PropTypes.object,
};
export default flow(
connect(
state => ({
user: currentUserSelector(state),
}),
),
injectIntl,
)(PaymentSuccess);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.